From e72c6649c20570b4c6c66c307257c1c2ba1ccc57 Mon Sep 17 00:00:00 2001 From: PasteBar PR Bot Date: Tue, 11 Jun 2024 22:33:49 +0000 Subject: [PATCH 1/2] Updated Changelog --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 601efd87..4759f94e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # pastebar-app +## 0.2.2 + +### Patch Changes + +- React compiler added to build frontend ui + ## 0.2.1 ### Patch Changes diff --git a/package.json b/package.json index 75b02759..107afe4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pastebar-app", - "version": "0.2.1", + "version": "0.2.2", "private": true, "scripts": { "dev": "tauri dev --config src-tauri/tauri.dev.conf.json", From 55c8fb2b8064136b7abf6141e7c1020b10d1c3eb Mon Sep 17 00:00:00 2001 From: PasteBar PR Bot Date: Tue, 11 Jun 2024 22:33:49 +0000 Subject: [PATCH 2/2] Update built UI artifacts --- dist-ui/assets/{apl-vbWlWQex.js => apl-DPc8-0kw.js} | 2 +- .../{asciiarmor-CFH81i6x.js => asciiarmor-4dWN3q2R.js} | 2 +- .../assets/{asn.1-D8_bNa5v.js => asn.1-DpZucftO.js} | 2 +- .../{asterisk-C1zcJqpz.js => asterisk-BqfbvXfk.js} | 2 +- .../{brainfuck-DzW0LHCQ.js => brainfuck-4gkQrtps.js} | 2 +- .../assets/{clike-BOEQ2M-s.js => clike-sVYb-QDY.js} | 2 +- .../{clojure-DuvyDseK.js => clojure-_p1sPkR2.js} | 2 +- .../assets/{cmake-Da6fUSVt.js => cmake-DHzx6wpn.js} | 2 +- .../assets/{cobol-DmPFhTxe.js => cobol-CMUPkVPk.js} | 2 +- ...ffeescript-DH2pDx43.js => coffeescript-DBSS_8nW.js} | 2 +- .../{commonlisp-CvF5qUNJ.js => commonlisp-B_RZ0L8A.js} | 2 +- .../{crystal-C3YOX7T5.js => crystal-DFfCpls_.js} | 2 +- dist-ui/assets/{css-B4l1-bAT.js => css-DjQyQoVX.js} | 2 +- .../assets/{cypher-Dw5r3gO8.js => cypher-B7-rmFXs.js} | 2 +- dist-ui/assets/{d-TVEmGsIx.js => d-0fwle5r1.js} | 2 +- dist-ui/assets/{dart-BLNr9Ovl.js => dart-BmTPStMN.js} | 2 +- dist-ui/assets/{diff-CqXLXcio.js => diff-BK1zMhyk.js} | 2 +- .../assets/{django-Dp5JQfVx.js => django-zZkj-Hqi.js} | 2 +- .../{dockerfile-Dvpg_F3g.js => dockerfile-C1rxoPFN.js} | 2 +- dist-ui/assets/{dtd-CVkG5wRq.js => dtd-DbN8nk9s.js} | 2 +- .../assets/{dylan-BWZlyZb4.js => dylan-CaT5sunF.js} | 2 +- dist-ui/assets/{ebnf-CE4Kd6SC.js => ebnf-t_2f6tWn.js} | 2 +- dist-ui/assets/{ecl-DNeqOLX3.js => ecl-CUfKsVWv.js} | 2 +- .../assets/{eiffel-CNcgPpub.js => eiffel-Dke9VK8D.js} | 2 +- dist-ui/assets/{elm-g9IQLo-i.js => elm-_2cYor_-.js} | 2 +- ...-D9L2XWJL.js => emoji-picker-react.esm-GaxrAwgC.js} | 2 +- .../assets/{erlang-BzVSqQvZ.js => erlang-DlGJpPOA.js} | 2 +- .../assets/{factor-BRJPtv5j.js => factor-Du1swcsl.js} | 2 +- dist-ui/assets/{fcl-C2-vcOIF.js => fcl-7ZBgVnY8.js} | 2 +- .../assets/{forth-DipmwzLv.js => forth-wn3wzAUB.js} | 2 +- .../{fortran-B7Q5kQUa.js => fortran-ve-4AZ2-.js} | 2 +- dist-ui/assets/{gas-BBAAeptq.js => gas-DtawV3pS.js} | 2 +- dist-ui/assets/{gfm-C-arbaYn.js => gfm-CjkhhYnD.js} | 2 +- .../{gherkin-DRcg385F.js => gherkin-Da6_ljSx.js} | 2 +- dist-ui/assets/{go-DmGc6dBE.js => go-Dgi7Lbsk.js} | 2 +- .../assets/{groovy-CFngObt1.js => groovy-BCKYlnUy.js} | 2 +- dist-ui/assets/{haml-Bt2f_Nrm.js => haml-C5Q82PRH.js} | 2 +- .../{handlebars-Cje9LvyI.js => handlebars-Ccn22PqS.js} | 2 +- .../{haskell-FqRRGASE.js => haskell-WHZByqiW.js} | 2 +- ...terate-O7J5RTx8.js => haskell-literate-CnpdECF_.js} | 2 +- dist-ui/assets/{haxe-NFZ3yuef.js => haxe-QFJb03Ax.js} | 2 +- ...mlembedded-CPJgkSix.js => htmlembedded-BowV9kW5.js} | 2 +- .../{htmlmixed-D5WYNkec.js => htmlmixed-B3bg9pWJ.js} | 2 +- .../{htmlmixed-Dv1q6FP3.js => htmlmixed-CnSFGeVC.js} | 2 +- dist-ui/assets/{http-BNLE6Hp5.js => http-CaRpA_in.js} | 2 +- dist-ui/assets/{idl-BSjDVZnx.js => idl-5bPmP5bV.js} | 2 +- .../assets/{index-CFELAGmQ.js => index-F8NPuhC5.js} | 10 +++++----- .../assets/{jinja2-adCpaZ7l.js => jinja2-ChULB2Fk.js} | 2 +- dist-ui/assets/{jsx-ClkCV7Y-.js => jsx-Dgyo4MRd.js} | 2 +- .../assets/{julia-DLqN_-yd.js => julia-zuaQ18y_.js} | 2 +- .../{livescript-Vxln-grF.js => livescript-Cdi6oIhP.js} | 2 +- dist-ui/assets/{lua-ewWAGPom.js => lua-nnFKfH7P.js} | 2 +- .../{markdown-9_ZwbeT-.js => markdown-CYPtsbJZ.js} | 2 +- .../{markdown-UVY52jYi.js => markdown-DpnrNzok.js} | 2 +- ...mathematica-DZ9dm3LF.js => mathematica-hWuwYCTp.js} | 2 +- dist-ui/assets/{mbox-BfR5b6CK.js => mbox-B_c5i4tT.js} | 2 +- dist-ui/assets/{mirc-DC86U8XC.js => mirc-Bo5BSnbu.js} | 2 +- .../assets/{mllike-Bprdg3DF.js => mllike-v65ZXsXL.js} | 2 +- .../{modelica-DRAnqeau.js => modelica-lS_WypKi.js} | 2 +- .../assets/{mscgen-Dmtop0oN.js => mscgen-B_GzFF_Z.js} | 2 +- .../{multiplex-CFyEzHyQ.js => multiplex-C8wCGfI5.js} | 2 +- .../assets/{mumps-nnSrE32F.js => mumps-DMUKVayQ.js} | 2 +- .../assets/{nginx-BnakU_6z.js => nginx-CffsXSm0.js} | 2 +- dist-ui/assets/{nsis-CUnpq3M4.js => nsis-Dt-oCaGG.js} | 2 +- .../{ntriples-HIut5vCN.js => ntriples-DLcALhbn.js} | 2 +- .../assets/{octave-BiCIAta_.js => octave-imH2yerB.js} | 2 +- .../{overlay-0t06YMiN.js => overlay-DMs7bKVk.js} | 2 +- dist-ui/assets/{oz-CEFLLuMw.js => oz-DI7An-ct.js} | 2 +- .../assets/{pascal-D0O88NVj.js => pascal-BjHxOUZ0.js} | 2 +- .../assets/{pegjs-DZXOYIHw.js => pegjs-Cgw_0Smi.js} | 2 +- dist-ui/assets/{perl-CWHlqxh1.js => perl-m4lN82wh.js} | 2 +- dist-ui/assets/{php-D7hQD33F.js => php-P11_atJ4.js} | 2 +- dist-ui/assets/{pig-CaL67Oog.js => pig-DvZFIZiC.js} | 2 +- .../{powershell-CbaGTq83.js => powershell-DLyBGlUV.js} | 2 +- .../{properties-XjQosx_y.js => properties-Bs9Ekzv_.js} | 2 +- .../{protobuf-D4yqdkut.js => protobuf-D7aM91TC.js} | 2 +- dist-ui/assets/{pug-CRVKTuYC.js => pug-Bb9DWsBH.js} | 2 +- .../assets/{puppet-BEs-TqvF.js => puppet-BwYp0v8r.js} | 2 +- .../assets/{python-CoovIKZV.js => python-Dj4em9Dm.js} | 2 +- dist-ui/assets/{q-CbtkgoeH.js => q-CVjXuXgv.js} | 2 +- dist-ui/assets/{r-D8JmdW1x.js => r-CfIsJawz.js} | 2 +- dist-ui/assets/{rpm-3ihONuWC.js => rpm-O5fC39Z0.js} | 2 +- dist-ui/assets/{rst-BCEzRi9A.js => rst-CyVqi5D5.js} | 2 +- dist-ui/assets/{ruby-DIgqUQO1.js => ruby-D5w_YFnv.js} | 2 +- dist-ui/assets/{ruby-ByJpm16K.js => ruby-pfYNpgKz.js} | 2 +- dist-ui/assets/{rust-lngZNREB.js => rust--P7FyHZ0.js} | 2 +- dist-ui/assets/{sas-DlUPW5JL.js => sas-C058GQZJ.js} | 2 +- dist-ui/assets/{sass-Bem8n1Mc.js => sass-NOE7V4J8.js} | 2 +- .../assets/{scheme-Cxeeuh63.js => scheme-CCKduSqe.js} | 2 +- .../assets/{shell-C4ZQSEjP.js => shell-BKUVH7-H.js} | 2 +- .../assets/{sieve-C3Fykc7i.js => sieve-Chdq9iGs.js} | 2 +- dist-ui/assets/{slim-DWjt4ndT.js => slim-DrhHX8Fp.js} | 2 +- .../{smalltalk-BEYwcsYK.js => smalltalk-BtLZNwU-.js} | 2 +- .../assets/{smarty-D4NxUHxc.js => smarty-D0_e_fu2.js} | 2 +- dist-ui/assets/{solr-ERAvZC4b.js => solr-TffWdyfX.js} | 2 +- dist-ui/assets/{soy-OpLLWLYS.js => soy-CaLVNzhZ.js} | 2 +- .../assets/{sparql-Brmr4Q5h.js => sparql-J2HZEfJm.js} | 2 +- ...spreadsheet-CnCG9elR.js => spreadsheet-De_UeHev.js} | 2 +- dist-ui/assets/{sql-eOeqwll8.js => sql-3T6ibqDq.js} | 2 +- dist-ui/assets/{stex-5aBROWT3.js => stex-DSKMaE3f.js} | 2 +- dist-ui/assets/{stex-BoK3GK_-.js => stex-DV4pK8k6.js} | 2 +- .../assets/{stylus-DtmEzL5k.js => stylus-DWX0hVte.js} | 2 +- .../assets/{swift-TiucVwxg.js => swift-zp1xtzap.js} | 2 +- dist-ui/assets/{tcl-MbiWHS-F.js => tcl-6Xgq87Zw.js} | 2 +- .../{textile-DFexsl9c.js => textile-B2k0xri9.js} | 2 +- .../{tiddlywiki-DeaBHtaJ.js => tiddlywiki-CEI5uSZ_.js} | 2 +- dist-ui/assets/{tiki-Dw5H3nSr.js => tiki-C91OnUZ5.js} | 2 +- dist-ui/assets/{toml-Bw9ZtC4x.js => toml-Czp5aboK.js} | 2 +- .../{tornado-GlNJ_SrA.js => tornado-C7GjWIPK.js} | 2 +- .../assets/{troff-NC__n46a.js => troff-BxVgEYLN.js} | 2 +- dist-ui/assets/{ttcn-Cw8P6tgB.js => ttcn-C8KYqKVj.js} | 2 +- .../{ttcn-cfg-DyazUgGj.js => ttcn-cfg-DZ-9-vM3.js} | 2 +- .../assets/{turtle-B1BYQzZE.js => turtle-CJGN0gCa.js} | 2 +- dist-ui/assets/{twig-Bn-PQroe.js => twig-CYDhqQXR.js} | 2 +- dist-ui/assets/{vb-B0_NIpfn.js => vb-j42w1Tl7.js} | 2 +- .../{vbscript-BWhXQrG-.js => vbscript-BsewLBA_.js} | 2 +- .../{velocity-B6MaZAkd.js => velocity-Psz-M91k.js} | 2 +- .../{verilog-6V47m65h.js => verilog-934pOG4C.js} | 2 +- dist-ui/assets/{vhdl-D5SeExP5.js => vhdl-DT6DHhYu.js} | 2 +- dist-ui/assets/{vue-DBY3U5Kv.js => vue-CTgTb5mC.js} | 2 +- dist-ui/assets/{wast-DIERJQig.js => wast-C0T_jfne.js} | 2 +- .../assets/{webidl-DROfhoxv.js => webidl-q-n5uYHd.js} | 2 +- .../assets/{xquery-BAotSwcC.js => xquery-DdKRFITW.js} | 2 +- .../assets/{yacas-Bs3ZmOP9.js => yacas-A827DJ-h.js} | 2 +- dist-ui/assets/{yaml-DW5bDHnz.js => yaml-C7gffGpj.js} | 2 +- ...matter-BYPLutKI.js => yaml-frontmatter-dNkK8CMx.js} | 2 +- dist-ui/assets/{z80-eNlRilBV.js => z80-CAimCid_.js} | 2 +- dist-ui/index.html | 2 +- 128 files changed, 132 insertions(+), 132 deletions(-) rename dist-ui/assets/{apl-vbWlWQex.js => apl-DPc8-0kw.js} (97%) rename dist-ui/assets/{asciiarmor-CFH81i6x.js => asciiarmor-4dWN3q2R.js} (95%) rename dist-ui/assets/{asn.1-D8_bNa5v.js => asn.1-DpZucftO.js} (98%) rename dist-ui/assets/{asterisk-C1zcJqpz.js => asterisk-BqfbvXfk.js} (98%) rename dist-ui/assets/{brainfuck-DzW0LHCQ.js => brainfuck-4gkQrtps.js} (94%) rename dist-ui/assets/{clike-BOEQ2M-s.js => clike-sVYb-QDY.js} (99%) rename dist-ui/assets/{clojure-DuvyDseK.js => clojure-_p1sPkR2.js} (99%) rename dist-ui/assets/{cmake-Da6fUSVt.js => cmake-DHzx6wpn.js} (95%) rename dist-ui/assets/{cobol-DmPFhTxe.js => cobol-CMUPkVPk.js} (99%) rename dist-ui/assets/{coffeescript-DH2pDx43.js => coffeescript-DBSS_8nW.js} (98%) rename dist-ui/assets/{commonlisp-CvF5qUNJ.js => commonlisp-B_RZ0L8A.js} (97%) rename dist-ui/assets/{crystal-C3YOX7T5.js => crystal-DFfCpls_.js} (98%) rename dist-ui/assets/{css-B4l1-bAT.js => css-DjQyQoVX.js} (99%) rename dist-ui/assets/{cypher-Dw5r3gO8.js => cypher-B7-rmFXs.js} (98%) rename dist-ui/assets/{d-TVEmGsIx.js => d-0fwle5r1.js} (98%) rename dist-ui/assets/{dart-BLNr9Ovl.js => dart-BmTPStMN.js} (95%) rename dist-ui/assets/{diff-CqXLXcio.js => diff-BK1zMhyk.js} (92%) rename dist-ui/assets/{django-Dp5JQfVx.js => django-zZkj-Hqi.js} (97%) rename dist-ui/assets/{dockerfile-Dvpg_F3g.js => dockerfile-C1rxoPFN.js} (97%) rename dist-ui/assets/{dtd-CVkG5wRq.js => dtd-DbN8nk9s.js} (97%) rename dist-ui/assets/{dylan-BWZlyZb4.js => dylan-CaT5sunF.js} (98%) rename dist-ui/assets/{ebnf-CE4Kd6SC.js => ebnf-t_2f6tWn.js} (97%) rename dist-ui/assets/{ecl-DNeqOLX3.js => ecl-CUfKsVWv.js} (98%) rename dist-ui/assets/{eiffel-CNcgPpub.js => eiffel-Dke9VK8D.js} (97%) rename dist-ui/assets/{elm-g9IQLo-i.js => elm-_2cYor_-.js} (97%) rename dist-ui/assets/{emoji-picker-react.esm-D9L2XWJL.js => emoji-picker-react.esm-GaxrAwgC.js} (99%) rename dist-ui/assets/{erlang-BzVSqQvZ.js => erlang-DlGJpPOA.js} (99%) rename dist-ui/assets/{factor-BRJPtv5j.js => factor-Du1swcsl.js} (97%) rename dist-ui/assets/{fcl-C2-vcOIF.js => fcl-7ZBgVnY8.js} (97%) rename dist-ui/assets/{forth-DipmwzLv.js => forth-wn3wzAUB.js} (98%) rename dist-ui/assets/{fortran-B7Q5kQUa.js => fortran-ve-4AZ2-.js} (98%) rename dist-ui/assets/{gas-BBAAeptq.js => gas-DtawV3pS.js} (98%) rename dist-ui/assets/{gfm-C-arbaYn.js => gfm-CjkhhYnD.js} (95%) rename dist-ui/assets/{gherkin-DRcg385F.js => gherkin-Da6_ljSx.js} (99%) rename dist-ui/assets/{go-DmGc6dBE.js => go-Dgi7Lbsk.js} (98%) rename dist-ui/assets/{groovy-CFngObt1.js => groovy-BCKYlnUy.js} (98%) rename dist-ui/assets/{haml-Bt2f_Nrm.js => haml-C5Q82PRH.js} (95%) rename dist-ui/assets/{handlebars-Cje9LvyI.js => handlebars-Ccn22PqS.js} (92%) rename dist-ui/assets/{haskell-FqRRGASE.js => haskell-WHZByqiW.js} (98%) rename dist-ui/assets/{haskell-literate-O7J5RTx8.js => haskell-literate-CnpdECF_.js} (87%) rename dist-ui/assets/{haxe-NFZ3yuef.js => haxe-QFJb03Ax.js} (99%) rename dist-ui/assets/{htmlembedded-CPJgkSix.js => htmlembedded-BowV9kW5.js} (90%) rename dist-ui/assets/{htmlmixed-D5WYNkec.js => htmlmixed-B3bg9pWJ.js} (95%) rename dist-ui/assets/{htmlmixed-Dv1q6FP3.js => htmlmixed-CnSFGeVC.js} (74%) rename dist-ui/assets/{http-BNLE6Hp5.js => http-CaRpA_in.js} (95%) rename dist-ui/assets/{idl-BSjDVZnx.js => idl-5bPmP5bV.js} (99%) rename dist-ui/assets/{index-CFELAGmQ.js => index-F8NPuhC5.js} (99%) rename dist-ui/assets/{jinja2-adCpaZ7l.js => jinja2-ChULB2Fk.js} (97%) rename dist-ui/assets/{jsx-ClkCV7Y-.js => jsx-Dgyo4MRd.js} (97%) rename dist-ui/assets/{julia-DLqN_-yd.js => julia-zuaQ18y_.js} (98%) rename dist-ui/assets/{livescript-Vxln-grF.js => livescript-Cdi6oIhP.js} (98%) rename dist-ui/assets/{lua-ewWAGPom.js => lua-nnFKfH7P.js} (98%) rename dist-ui/assets/{markdown-9_ZwbeT-.js => markdown-CYPtsbJZ.js} (99%) rename dist-ui/assets/{markdown-UVY52jYi.js => markdown-DpnrNzok.js} (74%) rename dist-ui/assets/{mathematica-DZ9dm3LF.js => mathematica-hWuwYCTp.js} (97%) rename dist-ui/assets/{mbox-BfR5b6CK.js => mbox-B_c5i4tT.js} (96%) rename dist-ui/assets/{mirc-DC86U8XC.js => mirc-Bo5BSnbu.js} (99%) rename dist-ui/assets/{mllike-Bprdg3DF.js => mllike-v65ZXsXL.js} (98%) rename dist-ui/assets/{modelica-DRAnqeau.js => modelica-lS_WypKi.js} (98%) rename dist-ui/assets/{mscgen-Dmtop0oN.js => mscgen-B_GzFF_Z.js} (98%) rename dist-ui/assets/{multiplex-CFyEzHyQ.js => multiplex-C8wCGfI5.js} (97%) rename dist-ui/assets/{mumps-nnSrE32F.js => mumps-DMUKVayQ.js} (97%) rename dist-ui/assets/{nginx-BnakU_6z.js => nginx-CffsXSm0.js} (99%) rename dist-ui/assets/{nsis-CUnpq3M4.js => nsis-Dt-oCaGG.js} (99%) rename dist-ui/assets/{ntriples-HIut5vCN.js => ntriples-DLcALhbn.js} (97%) rename dist-ui/assets/{octave-BiCIAta_.js => octave-imH2yerB.js} (97%) rename dist-ui/assets/{overlay-0t06YMiN.js => overlay-DMs7bKVk.js} (94%) rename dist-ui/assets/{oz-CEFLLuMw.js => oz-DI7An-ct.js} (98%) rename dist-ui/assets/{pascal-D0O88NVj.js => pascal-BjHxOUZ0.js} (97%) rename dist-ui/assets/{pegjs-DZXOYIHw.js => pegjs-Cgw_0Smi.js} (96%) rename dist-ui/assets/{perl-CWHlqxh1.js => perl-m4lN82wh.js} (99%) rename dist-ui/assets/{php-D7hQD33F.js => php-P11_atJ4.js} (99%) rename dist-ui/assets/{pig-CaL67Oog.js => pig-DvZFIZiC.js} (98%) rename dist-ui/assets/{powershell-CbaGTq83.js => powershell-DLyBGlUV.js} (99%) rename dist-ui/assets/{properties-XjQosx_y.js => properties-Bs9Ekzv_.js} (95%) rename dist-ui/assets/{protobuf-D4yqdkut.js => protobuf-D7aM91TC.js} (95%) rename dist-ui/assets/{pug-CRVKTuYC.js => pug-Bb9DWsBH.js} (97%) rename dist-ui/assets/{puppet-BEs-TqvF.js => puppet-BwYp0v8r.js} (97%) rename dist-ui/assets/{python-CoovIKZV.js => python-Dj4em9Dm.js} (99%) rename dist-ui/assets/{q-CbtkgoeH.js => q-CVjXuXgv.js} (98%) rename dist-ui/assets/{r-D8JmdW1x.js => r-CfIsJawz.js} (98%) rename dist-ui/assets/{rpm-3ihONuWC.js => rpm-O5fC39Z0.js} (97%) rename dist-ui/assets/{rst-BCEzRi9A.js => rst-CyVqi5D5.js} (97%) rename dist-ui/assets/{ruby-DIgqUQO1.js => ruby-D5w_YFnv.js} (74%) rename dist-ui/assets/{ruby-ByJpm16K.js => ruby-pfYNpgKz.js} (98%) rename dist-ui/assets/{rust-lngZNREB.js => rust--P7FyHZ0.js} (97%) rename dist-ui/assets/{sas-DlUPW5JL.js => sas-C058GQZJ.js} (99%) rename dist-ui/assets/{sass-Bem8n1Mc.js => sass-NOE7V4J8.js} (97%) rename dist-ui/assets/{scheme-Cxeeuh63.js => scheme-CCKduSqe.js} (99%) rename dist-ui/assets/{shell-C4ZQSEjP.js => shell-BKUVH7-H.js} (97%) rename dist-ui/assets/{sieve-C3Fykc7i.js => sieve-Chdq9iGs.js} (97%) rename dist-ui/assets/{slim-DWjt4ndT.js => slim-DrhHX8Fp.js} (97%) rename dist-ui/assets/{smalltalk-BEYwcsYK.js => smalltalk-BtLZNwU-.js} (97%) rename dist-ui/assets/{smarty-D4NxUHxc.js => smarty-D0_e_fu2.js} (98%) rename dist-ui/assets/{solr-ERAvZC4b.js => solr-TffWdyfX.js} (95%) rename dist-ui/assets/{soy-OpLLWLYS.js => soy-CaLVNzhZ.js} (98%) rename dist-ui/assets/{sparql-Brmr4Q5h.js => sparql-J2HZEfJm.js} (98%) rename dist-ui/assets/{spreadsheet-CnCG9elR.js => spreadsheet-De_UeHev.js} (96%) rename dist-ui/assets/{sql-eOeqwll8.js => sql-3T6ibqDq.js} (99%) rename dist-ui/assets/{stex-5aBROWT3.js => stex-DSKMaE3f.js} (74%) rename dist-ui/assets/{stex-BoK3GK_-.js => stex-DV4pK8k6.js} (98%) rename dist-ui/assets/{stylus-DtmEzL5k.js => stylus-DWX0hVte.js} (99%) rename dist-ui/assets/{swift-TiucVwxg.js => swift-zp1xtzap.js} (98%) rename dist-ui/assets/{tcl-MbiWHS-F.js => tcl-6Xgq87Zw.js} (97%) rename dist-ui/assets/{textile-DFexsl9c.js => textile-B2k0xri9.js} (99%) rename dist-ui/assets/{tiddlywiki-DeaBHtaJ.js => tiddlywiki-CEI5uSZ_.js} (98%) rename dist-ui/assets/{tiki-Dw5H3nSr.js => tiki-C91OnUZ5.js} (98%) rename dist-ui/assets/{toml-Bw9ZtC4x.js => toml-Czp5aboK.js} (96%) rename dist-ui/assets/{tornado-GlNJ_SrA.js => tornado-C7GjWIPK.js} (92%) rename dist-ui/assets/{troff-NC__n46a.js => troff-BxVgEYLN.js} (96%) rename dist-ui/assets/{ttcn-Cw8P6tgB.js => ttcn-C8KYqKVj.js} (98%) rename dist-ui/assets/{ttcn-cfg-DyazUgGj.js => ttcn-cfg-DZ-9-vM3.js} (98%) rename dist-ui/assets/{turtle-B1BYQzZE.js => turtle-CJGN0gCa.js} (97%) rename dist-ui/assets/{twig-Bn-PQroe.js => twig-CYDhqQXR.js} (94%) rename dist-ui/assets/{vb-B0_NIpfn.js => vb-j42w1Tl7.js} (98%) rename dist-ui/assets/{vbscript-BWhXQrG-.js => vbscript-BsewLBA_.js} (99%) rename dist-ui/assets/{velocity-B6MaZAkd.js => velocity-Psz-M91k.js} (98%) rename dist-ui/assets/{verilog-6V47m65h.js => verilog-934pOG4C.js} (99%) rename dist-ui/assets/{vhdl-D5SeExP5.js => vhdl-DT6DHhYu.js} (98%) rename dist-ui/assets/{vue-DBY3U5Kv.js => vue-CTgTb5mC.js} (81%) rename dist-ui/assets/{wast-DIERJQig.js => wast-C0T_jfne.js} (98%) rename dist-ui/assets/{webidl-DROfhoxv.js => webidl-q-n5uYHd.js} (97%) rename dist-ui/assets/{xquery-BAotSwcC.js => xquery-DdKRFITW.js} (99%) rename dist-ui/assets/{yacas-Bs3ZmOP9.js => yacas-A827DJ-h.js} (97%) rename dist-ui/assets/{yaml-DW5bDHnz.js => yaml-C7gffGpj.js} (96%) rename dist-ui/assets/{yaml-frontmatter-BYPLutKI.js => yaml-frontmatter-dNkK8CMx.js} (91%) rename dist-ui/assets/{z80-eNlRilBV.js => z80-CAimCid_.js} (97%) diff --git a/dist-ui/assets/apl-vbWlWQex.js b/dist-ui/assets/apl-DPc8-0kw.js similarity index 97% rename from dist-ui/assets/apl-vbWlWQex.js rename to dist-ui/assets/apl-DPc8-0kw.js index 0d9f6a38..2bb96ab8 100644 --- a/dist-ui/assets/apl-vbWlWQex.js +++ b/dist-ui/assets/apl-DPc8-0kw.js @@ -1 +1 @@ -import{g as x,c as h}from"./index-CFELAGmQ.js";function m(u,s){for(var l=0;li[t]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(u,s){(function(l){l(h)})(function(l){l.defineMode("apl",function(){var i={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},a=/[\.\/⌿⍀¨⍣]/,c=/⍬/,p=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,d=/←/,v=/[⍝#].*$/,g=function(n){var r;return r=!1,function(e){return r=e,e===n?r==="\\":!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(n,r){var e,o;return n.eatSpace()?null:(e=n.next(),e==='"'||e==="'"?(n.eatWhile(g(e)),n.next(),r.prev=!0,"string"):/[\[{\(]/.test(e)?(r.prev=!1,null):/[\]}\)]/.test(e)?(r.prev=!0,null):c.test(e)?(r.prev=!1,"niladic"):/[¯\d]/.test(e)?(r.func?(r.func=!1,r.prev=!1):r.prev=!0,n.eatWhile(/[\w\.]/),"number"):a.test(e)?"operator apl-"+i[e]:d.test(e)?"apl-arrow":p.test(e)?(o="apl-",t[e]!=null&&(r.prev?o+=t[e][1]:o+=t[e][0]),r.func=!0,r.prev=!1,"function "+o):v.test(e)?(n.skipToEnd(),"comment"):e==="∘"&&n.peek()==="."?(n.next(),"function jot-dot"):(n.eatWhile(/[\w\$_]/),r.prev=!0,"keyword"))}}}),l.defineMIME("text/apl","apl")})})();var f=O.exports;const b=x(f),y=m({__proto__:null,default:b},[f]);export{y as a}; +import{g as x,c as h}from"./index-F8NPuhC5.js";function m(u,s){for(var l=0;li[t]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(u,s){(function(l){l(h)})(function(l){l.defineMode("apl",function(){var i={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},a=/[\.\/⌿⍀¨⍣]/,c=/⍬/,p=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,d=/←/,v=/[⍝#].*$/,g=function(n){var r;return r=!1,function(e){return r=e,e===n?r==="\\":!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(n,r){var e,o;return n.eatSpace()?null:(e=n.next(),e==='"'||e==="'"?(n.eatWhile(g(e)),n.next(),r.prev=!0,"string"):/[\[{\(]/.test(e)?(r.prev=!1,null):/[\]}\)]/.test(e)?(r.prev=!0,null):c.test(e)?(r.prev=!1,"niladic"):/[¯\d]/.test(e)?(r.func?(r.func=!1,r.prev=!1):r.prev=!0,n.eatWhile(/[\w\.]/),"number"):a.test(e)?"operator apl-"+i[e]:d.test(e)?"apl-arrow":p.test(e)?(o="apl-",t[e]!=null&&(r.prev?o+=t[e][1]:o+=t[e][0]),r.func=!0,r.prev=!1,"function "+o):v.test(e)?(n.skipToEnd(),"comment"):e==="∘"&&n.peek()==="."?(n.next(),"function jot-dot"):(n.eatWhile(/[\w\$_]/),r.prev=!0,"keyword"))}}}),l.defineMIME("text/apl","apl")})})();var f=O.exports;const b=x(f),y=m({__proto__:null,default:b},[f]);export{y as a}; diff --git a/dist-ui/assets/asciiarmor-CFH81i6x.js b/dist-ui/assets/asciiarmor-4dWN3q2R.js similarity index 95% rename from dist-ui/assets/asciiarmor-CFH81i6x.js rename to dist-ui/assets/asciiarmor-4dWN3q2R.js index c6a69834..5380958d 100644 --- a/dist-ui/assets/asciiarmor-CFH81i6x.js +++ b/dist-ui/assets/asciiarmor-4dWN3q2R.js @@ -1 +1 @@ -import{g as p,c as s}from"./index-CFELAGmQ.js";function u(i,a){for(var t=0;tn[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(i,a){(function(t){t(s)})(function(t){function n(e){var r=e.match(/^\s*\S/);return e.skipToEnd(),r?"error":null}t.defineMode("asciiarmor",function(){return{token:function(e,r){var o;if(r.state=="top")return e.sol()&&(o=e.match(/^-----BEGIN (.*)?-----\s*$/))?(r.state="headers",r.type=o[1],"tag"):n(e);if(r.state=="headers"){if(e.sol()&&e.match(/^\w+:/))return r.state="header","atom";var c=n(e);return c&&(r.state="body"),c}else{if(r.state=="header")return e.skipToEnd(),r.state="headers","string";if(r.state=="body")return e.sol()&&(o=e.match(/^-----END (.*)?-----\s*$/))?o[1]!=r.type?"error":(r.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error");if(r.state=="end")return n(e)}},blankLine:function(e){e.state=="headers"&&(e.state="body")},startState:function(){return{state:"top",type:null}}}}),t.defineMIME("application/pgp","asciiarmor"),t.defineMIME("application/pgp-encrypted","asciiarmor"),t.defineMIME("application/pgp-keys","asciiarmor"),t.defineMIME("application/pgp-signature","asciiarmor")})})();var f=l.exports;const d=p(f),y=u({__proto__:null,default:d},[f]);export{y as a}; +import{g as p,c as s}from"./index-F8NPuhC5.js";function u(i,a){for(var t=0;tn[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(i,a){(function(t){t(s)})(function(t){function n(e){var r=e.match(/^\s*\S/);return e.skipToEnd(),r?"error":null}t.defineMode("asciiarmor",function(){return{token:function(e,r){var o;if(r.state=="top")return e.sol()&&(o=e.match(/^-----BEGIN (.*)?-----\s*$/))?(r.state="headers",r.type=o[1],"tag"):n(e);if(r.state=="headers"){if(e.sol()&&e.match(/^\w+:/))return r.state="header","atom";var c=n(e);return c&&(r.state="body"),c}else{if(r.state=="header")return e.skipToEnd(),r.state="headers","string";if(r.state=="body")return e.sol()&&(o=e.match(/^-----END (.*)?-----\s*$/))?o[1]!=r.type?"error":(r.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error");if(r.state=="end")return n(e)}},blankLine:function(e){e.state=="headers"&&(e.state="body")},startState:function(){return{state:"top",type:null}}}}),t.defineMIME("application/pgp","asciiarmor"),t.defineMIME("application/pgp-encrypted","asciiarmor"),t.defineMIME("application/pgp-keys","asciiarmor"),t.defineMIME("application/pgp-signature","asciiarmor")})})();var f=l.exports;const d=p(f),y=u({__proto__:null,default:d},[f]);export{y as a}; diff --git a/dist-ui/assets/asn.1-D8_bNa5v.js b/dist-ui/assets/asn.1-DpZucftO.js similarity index 98% rename from dist-ui/assets/asn.1-D8_bNa5v.js rename to dist-ui/assets/asn.1-DpZucftO.js index 10ad251b..73627496 100644 --- a/dist-ui/assets/asn.1-D8_bNa5v.js +++ b/dist-ui/assets/asn.1-DpZucftO.js @@ -1 +1 @@ -import{g as x,c as v}from"./index-CFELAGmQ.js";function h(a,f){for(var s=0;so[u]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var G={exports:{}};(function(a,f){(function(s){s(v)})(function(s){s.defineMode("asn.1",function(u,i){var S=u.indentUnit,T=i.keywords||{},m=i.cmipVerbs||{},y=i.compareTypes||{},C=i.status||{},g=i.tags||{},R=i.storage||{},D=i.modifier||{},b=i.accessTypes||{},L=i.multiLineStrings,P=i.indentStatements!==!1,A=/[\|\^]/,E;function M(e,t){var n=e.next();if(n=='"'||n=="'")return t.tokenize=U(n),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(n))return E=n,"punctuation";if(n=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if(A.test(n))return e.eatWhile(A),"operator";e.eatWhile(/[\w\-]/);var r=e.current();return T.propertyIsEnumerable(r)?"keyword":m.propertyIsEnumerable(r)?"variable cmipVerbs":y.propertyIsEnumerable(r)?"atom compareTypes":C.propertyIsEnumerable(r)?"comment status":g.propertyIsEnumerable(r)?"variable-3 tags":R.propertyIsEnumerable(r)?"builtin storage":D.propertyIsEnumerable(r)?"string-2 modifier":b.propertyIsEnumerable(r)?"atom accessTypes":"variable"}function U(e){return function(t,n){for(var r=!1,c,O=!1;(c=t.next())!=null;){if(c==e&&!r){var I=t.peek();I&&(I=I.toLowerCase(),(I=="b"||I=="h"||I=="o")&&t.next()),O=!0;break}r=!r&&c=="\\"}return(O||!(r||L))&&(n.tokenize=null),"string"}}function d(e,t,n,r,c){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=c}function p(e,t,n){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function l(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new d((e||0)-S,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;E=null;var r=(t.tokenize||M)(e,t);if(r=="comment")return r;if(n.align==null&&(n.align=!0),(E==";"||E==":"||E==",")&&n.type=="statement")l(t);else if(E=="{")p(t,e.column(),"}");else if(E=="[")p(t,e.column(),"]");else if(E=="(")p(t,e.column(),")");else if(E=="}"){for(;n.type=="statement";)n=l(t);for(n.type=="}"&&(n=l(t));n.type=="statement";)n=l(t)}else E==n.type?l(t):P&&((n.type=="}"||n.type=="top")&&E!=";"||n.type=="statement"&&E=="newstatement")&&p(t,e.column(),"statement");return t.startOfLine=!1,r},electricChars:"{}",lineComment:"--",fold:"brace"}});function o(u){for(var i={},S=u.split(" "),T=0;To[u]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var G={exports:{}};(function(a,f){(function(s){s(v)})(function(s){s.defineMode("asn.1",function(u,i){var S=u.indentUnit,T=i.keywords||{},m=i.cmipVerbs||{},y=i.compareTypes||{},C=i.status||{},g=i.tags||{},R=i.storage||{},D=i.modifier||{},b=i.accessTypes||{},L=i.multiLineStrings,P=i.indentStatements!==!1,A=/[\|\^]/,E;function M(e,t){var n=e.next();if(n=='"'||n=="'")return t.tokenize=U(n),t.tokenize(e,t);if(/[\[\]\(\){}:=,;]/.test(n))return E=n,"punctuation";if(n=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if(A.test(n))return e.eatWhile(A),"operator";e.eatWhile(/[\w\-]/);var r=e.current();return T.propertyIsEnumerable(r)?"keyword":m.propertyIsEnumerable(r)?"variable cmipVerbs":y.propertyIsEnumerable(r)?"atom compareTypes":C.propertyIsEnumerable(r)?"comment status":g.propertyIsEnumerable(r)?"variable-3 tags":R.propertyIsEnumerable(r)?"builtin storage":D.propertyIsEnumerable(r)?"string-2 modifier":b.propertyIsEnumerable(r)?"atom accessTypes":"variable"}function U(e){return function(t,n){for(var r=!1,c,O=!1;(c=t.next())!=null;){if(c==e&&!r){var I=t.peek();I&&(I=I.toLowerCase(),(I=="b"||I=="h"||I=="o")&&t.next()),O=!0;break}r=!r&&c=="\\"}return(O||!(r||L))&&(n.tokenize=null),"string"}}function d(e,t,n,r,c){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=c}function p(e,t,n){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function l(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new d((e||0)-S,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;E=null;var r=(t.tokenize||M)(e,t);if(r=="comment")return r;if(n.align==null&&(n.align=!0),(E==";"||E==":"||E==",")&&n.type=="statement")l(t);else if(E=="{")p(t,e.column(),"}");else if(E=="[")p(t,e.column(),"]");else if(E=="(")p(t,e.column(),")");else if(E=="}"){for(;n.type=="statement";)n=l(t);for(n.type=="}"&&(n=l(t));n.type=="statement";)n=l(t)}else E==n.type?l(t):P&&((n.type=="}"||n.type=="top")&&E!=";"||n.type=="statement"&&E=="newstatement")&&p(t,e.column(),"statement");return t.startOfLine=!1,r},electricChars:"{}",lineComment:"--",fold:"brace"}});function o(u){for(var i={},S=u.split(" "),T=0;Tr[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(s,l){(function(t){t(f)})(function(t){t.defineMode("asterisk",function(){var r=["exten","same","include","ignorepat","switch"],o=["#include","#exec"],c=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function d(e,n){var i="",a=e.next();if(n.blockComment)return a=="-"&&e.match("-;",!0)?n.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),n.blockComment=!1):e.skipToEnd(),"comment";if(a==";")return e.match("--",!0)&&!e.match("-",!1)?(n.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if(a=="[")return e.skipTo("]"),e.eat("]"),"header";if(a=='"')return e.skipTo('"'),"string";if(a=="'")return e.skipTo("'"),"string-2";if(a=="#"&&(e.eatWhile(/\w/),i=e.current(),o.indexOf(i)!==-1))return e.skipToEnd(),"strong";if(a=="$"){var p=e.peek();if(p=="{")return e.skipTo("}"),e.eat("}"),"variable-3"}if(e.eatWhile(/\w/),i=e.current(),r.indexOf(i)!==-1){switch(n.extenStart=!0,i){case"same":n.extenSame=!0;break;case"include":case"switch":case"ignorepat":n.extenInclude=!0;break}return"atom"}}return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,n){var i="";if(e.eatSpace())return null;if(n.extenStart)return e.eatWhile(/[^\s]/),i=e.current(),/^=>?$/.test(i)?(n.extenExten=!0,n.extenStart=!1,"strong"):(n.extenStart=!1,e.skipToEnd(),"error");if(n.extenExten)return n.extenExten=!1,n.extenPriority=!0,e.eatWhile(/[^,]/),n.extenInclude&&(e.skipToEnd(),n.extenPriority=!1,n.extenInclude=!1),n.extenSame&&(n.extenPriority=!1,n.extenSame=!1,n.extenApplication=!0),"tag";if(n.extenPriority)return n.extenPriority=!1,n.extenApplication=!0,e.next(),n.extenSame?null:(e.eatWhile(/[^,]/),"number");if(n.extenApplication){if(e.eatWhile(/,/),i=e.current(),i===",")return null;if(e.eatWhile(/\w/),i=e.current().toLowerCase(),n.extenApplication=!1,c.indexOf(i)!==-1)return"def strong"}else return d(e,n);return null},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}}),t.defineMIME("text/x-asterisk","asterisk")})})();var u=g.exports;const h=m(u),k=x({__proto__:null,default:h},[u]);export{k as a}; +import{g as m,c as f}from"./index-F8NPuhC5.js";function x(s,l){for(var t=0;tr[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(s,l){(function(t){t(f)})(function(t){t.defineMode("asterisk",function(){var r=["exten","same","include","ignorepat","switch"],o=["#include","#exec"],c=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function d(e,n){var i="",a=e.next();if(n.blockComment)return a=="-"&&e.match("-;",!0)?n.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),n.blockComment=!1):e.skipToEnd(),"comment";if(a==";")return e.match("--",!0)&&!e.match("-",!1)?(n.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if(a=="[")return e.skipTo("]"),e.eat("]"),"header";if(a=='"')return e.skipTo('"'),"string";if(a=="'")return e.skipTo("'"),"string-2";if(a=="#"&&(e.eatWhile(/\w/),i=e.current(),o.indexOf(i)!==-1))return e.skipToEnd(),"strong";if(a=="$"){var p=e.peek();if(p=="{")return e.skipTo("}"),e.eat("}"),"variable-3"}if(e.eatWhile(/\w/),i=e.current(),r.indexOf(i)!==-1){switch(n.extenStart=!0,i){case"same":n.extenSame=!0;break;case"include":case"switch":case"ignorepat":n.extenInclude=!0;break}return"atom"}}return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,n){var i="";if(e.eatSpace())return null;if(n.extenStart)return e.eatWhile(/[^\s]/),i=e.current(),/^=>?$/.test(i)?(n.extenExten=!0,n.extenStart=!1,"strong"):(n.extenStart=!1,e.skipToEnd(),"error");if(n.extenExten)return n.extenExten=!1,n.extenPriority=!0,e.eatWhile(/[^,]/),n.extenInclude&&(e.skipToEnd(),n.extenPriority=!1,n.extenInclude=!1),n.extenSame&&(n.extenPriority=!1,n.extenSame=!1,n.extenApplication=!0),"tag";if(n.extenPriority)return n.extenPriority=!1,n.extenApplication=!0,e.next(),n.extenSame?null:(e.eatWhile(/[^,]/),"number");if(n.extenApplication){if(e.eatWhile(/,/),i=e.current(),i===",")return null;if(e.eatWhile(/\w/),i=e.current().toLowerCase(),n.extenApplication=!1,c.indexOf(i)!==-1)return"def strong"}else return d(e,n);return null},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}}),t.defineMIME("text/x-asterisk","asterisk")})})();var u=g.exports;const h=m(u),k=x({__proto__:null,default:h},[u]);export{k as a}; diff --git a/dist-ui/assets/brainfuck-DzW0LHCQ.js b/dist-ui/assets/brainfuck-4gkQrtps.js similarity index 94% rename from dist-ui/assets/brainfuck-DzW0LHCQ.js rename to dist-ui/assets/brainfuck-4gkQrtps.js index 6bc9affa..b550cb59 100644 --- a/dist-ui/assets/brainfuck-DzW0LHCQ.js +++ b/dist-ui/assets/brainfuck-4gkQrtps.js @@ -1 +1 @@ -import{g as u,c as l}from"./index-CFELAGmQ.js";function a(f,i){for(var t=0;to[e]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(f,i){(function(t){t(l)})(function(t){var o="><+-.,[]".split("");t.defineMode("brainfuck",function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();if(o.indexOf(r)!==-1){if(n.commentLine===!0)return e.eol()&&(n.commentLine=!1),"comment";if(r==="]"||r==="[")return r==="["?n.left++:n.right++,"bracket";if(r==="+"||r==="-")return"keyword";if(r==="<"||r===">")return"atom";if(r==="."||r===",")return"def"}else return n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment";e.eol()&&(n.commentLine=!1)}}}),t.defineMIME("text/x-brainfuck","brainfuck")})})();var c=m.exports;const s=u(c),b=a({__proto__:null,default:s},[c]);export{b}; +import{g as u,c as l}from"./index-F8NPuhC5.js";function a(f,i){for(var t=0;to[e]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(f,i){(function(t){t(l)})(function(t){var o="><+-.,[]".split("");t.defineMode("brainfuck",function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();if(o.indexOf(r)!==-1){if(n.commentLine===!0)return e.eol()&&(n.commentLine=!1),"comment";if(r==="]"||r==="[")return r==="["?n.left++:n.right++,"bracket";if(r==="+"||r==="-")return"keyword";if(r==="<"||r===">")return"atom";if(r==="."||r===",")return"def"}else return n.commentLine=!0,e.eol()&&(n.commentLine=!1),"comment";e.eol()&&(n.commentLine=!1)}}}),t.defineMIME("text/x-brainfuck","brainfuck")})})();var c=m.exports;const s=u(c),b=a({__proto__:null,default:s},[c]);export{b}; diff --git a/dist-ui/assets/clike-BOEQ2M-s.js b/dist-ui/assets/clike-sVYb-QDY.js similarity index 99% rename from dist-ui/assets/clike-BOEQ2M-s.js rename to dist-ui/assets/clike-sVYb-QDY.js index 32b0c3c3..901eebde 100644 --- a/dist-ui/assets/clike-BOEQ2M-s.js +++ b/dist-ui/assets/clike-sVYb-QDY.js @@ -1 +1 @@ -import{g as me,c as ge}from"./index-CFELAGmQ.js";function ke(N,z){for(var y=0;yg[m]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}var be={exports:{}};(function(N,z){(function(y){y(ge)})(function(y){function g(e,t,n,l,u,d){this.indented=e,this.column=t,this.type=n,this.info=l,this.align=u,this.prev=d}function m(e,t,n,l){var u=e.indented;return e.context&&e.context.type=="statement"&&n!="statement"&&(u=e.context.indented),e.context=new g(u,t,n,l,null,e.context)}function k(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function R(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||t.typeAtEndOfLine&&e.column()==e.indentation())return!0}function O(e){for(;;){if(!e||e.type=="top")return!0;if(e.type=="}"&&e.prev.info!="namespace")return!1;e=e.prev}}y.defineMode("clike",function(e,t){var n=e.indentUnit,l=t.statementIndentUnit||n,u=t.dontAlignCalls,d=t.keywords||{},M=t.types||{},oe=t.builtin||{},G=t.blockKeywords||{},ae=t.defKeywords||{},le=t.atoms||{},v=t.hooks||{},ce=t.multiLineStrings,se=t.indentStatements!==!1,ue=t.indentSwitch!==!1,H=t.namespaceSeparator,fe=t.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,de=t.numberStart||/[\d\.]/,pe=t.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Q=t.isOperatorChar||/[+\-*&%=<>!?|\/]/,X=t.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Y=t.isReservedIdentifier||!1,p,F;function Z(o,a){var i=o.next();if(v[i]){var c=v[i](o,a);if(c!==!1)return c}if(i=='"'||i=="'")return a.tokenize=he(i),a.tokenize(o,a);if(de.test(i)){if(o.backUp(1),o.match(pe))return"number";o.next()}if(fe.test(i))return p=i,null;if(i=="/"){if(o.eat("*"))return a.tokenize=J,J(o,a);if(o.eat("/"))return o.skipToEnd(),"comment"}if(Q.test(i)){for(;!o.match(/^\/[\/*]/,!1)&&o.eat(Q););return"operator"}if(o.eatWhile(X),H)for(;o.match(H);)o.eatWhile(X);var f=o.current();return b(d,f)?(b(G,f)&&(p="newstatement"),b(ae,f)&&(F=!0),"keyword"):b(M,f)?"type":b(oe,f)||Y&&Y(f)?(b(G,f)&&(p="newstatement"),"builtin"):b(le,f)?"atom":"variable"}function he(o){return function(a,i){for(var c=!1,f,I=!1;(f=a.next())!=null;){if(f==o&&!c){I=!0;break}c=!c&&f=="\\"}return(I||!(c||ce))&&(i.tokenize=null),"string"}}function J(o,a){for(var i=!1,c;c=o.next();){if(c=="/"&&i){a.tokenize=null;break}i=c=="*"}return"comment"}function ee(o,a){t.typeFirstDefinitions&&o.eol()&&O(a.context)&&(a.typeAtEndOfLine=R(o,a,o.pos))}return{startState:function(o){return{tokenize:null,context:new g((o||0)-n,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(o,a){var i=a.context;if(o.sol()&&(i.align==null&&(i.align=!1),a.indented=o.indentation(),a.startOfLine=!0),o.eatSpace())return ee(o,a),null;p=F=null;var c=(a.tokenize||Z)(o,a);if(c=="comment"||c=="meta")return c;if(i.align==null&&(i.align=!0),p==";"||p==":"||p==","&&o.match(/^\s*(?:\/\/.*)?$/,!1))for(;a.context.type=="statement";)k(a);else if(p=="{")m(a,o.column(),"}");else if(p=="[")m(a,o.column(),"]");else if(p=="(")m(a,o.column(),")");else if(p=="}"){for(;i.type=="statement";)i=k(a);for(i.type=="}"&&(i=k(a));i.type=="statement";)i=k(a)}else p==i.type?k(a):se&&((i.type=="}"||i.type=="top")&&p!=";"||i.type=="statement"&&p=="newstatement")&&m(a,o.column(),"statement",o.current());if(c=="variable"&&(a.prevToken=="def"||t.typeFirstDefinitions&&R(o,a,o.start)&&O(a.context)&&o.match(/^\s*\(/,!1))&&(c="def"),v.token){var f=v.token(o,a,c);f!==void 0&&(c=f)}return c=="def"&&t.styleDefs===!1&&(c="variable"),a.startOfLine=!1,a.prevToken=F?"def":c||p,ee(o,a),c},indent:function(o,a){if(o.tokenize!=Z&&o.tokenize!=null||o.typeAtEndOfLine&&O(o.context))return y.Pass;var i=o.context,c=a&&a.charAt(0),f=c==i.type;if(i.type=="statement"&&c=="}"&&(i=i.prev),t.dontIndentStatements)for(;i.type=="statement"&&t.dontIndentStatements.test(i.info);)i=i.prev;if(v.indent){var I=v.indent(o,i,a,n);if(typeof I=="number")return I}var ye=i.prev&&i.prev.info=="switch";if(t.allmanIndentation&&/[{(]/.test(c)){for(;i.type!="top"&&i.type!="}";)i=i.prev;return i.indented}return i.type=="statement"?i.indented+(c=="{"?0:l):i.align&&(!u||i.type!=")")?i.column+(f?0:1):i.type==")"&&!f?i.indented+l:i.indented+(f?0:n)+(!f&&ye&&!/^(?:case|default)\b/.test(a)?n:0)},electricInput:ue?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function r(e){for(var t={},n=e.split(" "),l=0;l!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return e.match('""')?(t.tokenize=V,t.tokenize(e,t)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return n.type=="}"&&n.align&&e.eat(">")?(t.context=new g(n.indented,n.column,n.type,n.info,null,n.prev),"operator"):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=E(1),t.tokenize(e,t)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function ie(e){return function(t,n){for(var l=!1,u,d=!1;!t.eol();){if(!e&&!l&&t.match('"')){d=!0;break}if(e&&t.match('"""')){d=!0;break}u=t.next(),!l&&u=="$"&&t.match("{")&&t.skipTo("}"),l=!l&&u=="\\"&&!e}return(d||!e)&&(n.tokenize=null),"string"}}h("text/x-kotlin",{name:"clike",keywords:r("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:r("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:r("catch class do else finally for if where try while enum"),defKeywords:r("class val var object interface fun"),atoms:r("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return t.prevToken=="."?"variable":"operator"},'"':function(e,t){return t.tokenize=ie(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return e.eat("*")?(t.tokenize=E(1),t.tokenize(e,t)):!1},indent:function(e,t,n,l){var u=n&&n.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&n=="")return e.indented;if(e.prevToken=="operator"&&n!="}"&&e.context.type!="}"||e.prevToken=="variable"&&u=="."||(e.prevToken=="}"||e.prevToken==")")&&u==".")return l*2+t.indented;if(t.align&&t.type=="}")return t.indented+(e.context.type==(n||"").charAt(0)?0:l)}},modeProps:{closeBrackets:{triples:'"'}}}),h(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:r("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:r("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:r("for while do if else struct"),builtin:r("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:r("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":w},modeProps:{fold:["brace","include"]}}),h("text/x-nesc",{name:"clike",keywords:r(_+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:S,blockKeywords:r(T),atoms:r("null true false"),hooks:{"#":w},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec",{name:"clike",keywords:r(_+" "+U),types:A,builtin:r(B),blockKeywords:r(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:r(L+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:P,hooks:{"#":w,"*":D},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec++",{name:"clike",keywords:r(_+" "+U+" "+j),types:A,builtin:r(B),blockKeywords:r(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:r(L+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:P,hooks:{"#":w,"*":D,u:x,U:x,L:x,R:x,0:s,1:s,2:s,3:s,4:s,5:s,6:s,7:s,8:s,9:s,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&K(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),h("text/x-squirrel",{name:"clike",keywords:r("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:S,blockKeywords:r("case catch class else for foreach if switch try while"),defKeywords:r("function local class"),typeFirstDefinitions:!0,atoms:r("true false null"),hooks:{"#":w},modeProps:{fold:["brace","include"]}});var C=null;function W(e){return function(t,n){for(var l=!1,u,d=!1;!t.eol();){if(!l&&t.match('"')&&(e=="single"||t.match('""'))){d=!0;break}if(!l&&t.match("``")){C=W(e),d=!0;break}u=t.next(),l=e=="single"&&!l&&u=="\\"}return d&&(n.tokenize=null),"string"}}h("text/x-ceylon",{name:"clike",keywords:r("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:r("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:r("class dynamic function interface module object package value"),builtin:r("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:r("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=W(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!C||!e.match("`")?!1:(t.tokenize=C,C=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();var te=be.exports;const we=me(te),ve=ke({__proto__:null,default:we},[te]);export{te as a,ve as c}; +import{g as me,c as ge}from"./index-F8NPuhC5.js";function ke(N,z){for(var y=0;yg[m]})}}}return Object.freeze(Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}))}var be={exports:{}};(function(N,z){(function(y){y(ge)})(function(y){function g(e,t,n,l,u,d){this.indented=e,this.column=t,this.type=n,this.info=l,this.align=u,this.prev=d}function m(e,t,n,l){var u=e.indented;return e.context&&e.context.type=="statement"&&n!="statement"&&(u=e.context.indented),e.context=new g(u,t,n,l,null,e.context)}function k(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function R(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||t.typeAtEndOfLine&&e.column()==e.indentation())return!0}function O(e){for(;;){if(!e||e.type=="top")return!0;if(e.type=="}"&&e.prev.info!="namespace")return!1;e=e.prev}}y.defineMode("clike",function(e,t){var n=e.indentUnit,l=t.statementIndentUnit||n,u=t.dontAlignCalls,d=t.keywords||{},M=t.types||{},oe=t.builtin||{},G=t.blockKeywords||{},ae=t.defKeywords||{},le=t.atoms||{},v=t.hooks||{},ce=t.multiLineStrings,se=t.indentStatements!==!1,ue=t.indentSwitch!==!1,H=t.namespaceSeparator,fe=t.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,de=t.numberStart||/[\d\.]/,pe=t.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Q=t.isOperatorChar||/[+\-*&%=<>!?|\/]/,X=t.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Y=t.isReservedIdentifier||!1,p,F;function Z(o,a){var i=o.next();if(v[i]){var c=v[i](o,a);if(c!==!1)return c}if(i=='"'||i=="'")return a.tokenize=he(i),a.tokenize(o,a);if(de.test(i)){if(o.backUp(1),o.match(pe))return"number";o.next()}if(fe.test(i))return p=i,null;if(i=="/"){if(o.eat("*"))return a.tokenize=J,J(o,a);if(o.eat("/"))return o.skipToEnd(),"comment"}if(Q.test(i)){for(;!o.match(/^\/[\/*]/,!1)&&o.eat(Q););return"operator"}if(o.eatWhile(X),H)for(;o.match(H);)o.eatWhile(X);var f=o.current();return b(d,f)?(b(G,f)&&(p="newstatement"),b(ae,f)&&(F=!0),"keyword"):b(M,f)?"type":b(oe,f)||Y&&Y(f)?(b(G,f)&&(p="newstatement"),"builtin"):b(le,f)?"atom":"variable"}function he(o){return function(a,i){for(var c=!1,f,I=!1;(f=a.next())!=null;){if(f==o&&!c){I=!0;break}c=!c&&f=="\\"}return(I||!(c||ce))&&(i.tokenize=null),"string"}}function J(o,a){for(var i=!1,c;c=o.next();){if(c=="/"&&i){a.tokenize=null;break}i=c=="*"}return"comment"}function ee(o,a){t.typeFirstDefinitions&&o.eol()&&O(a.context)&&(a.typeAtEndOfLine=R(o,a,o.pos))}return{startState:function(o){return{tokenize:null,context:new g((o||0)-n,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(o,a){var i=a.context;if(o.sol()&&(i.align==null&&(i.align=!1),a.indented=o.indentation(),a.startOfLine=!0),o.eatSpace())return ee(o,a),null;p=F=null;var c=(a.tokenize||Z)(o,a);if(c=="comment"||c=="meta")return c;if(i.align==null&&(i.align=!0),p==";"||p==":"||p==","&&o.match(/^\s*(?:\/\/.*)?$/,!1))for(;a.context.type=="statement";)k(a);else if(p=="{")m(a,o.column(),"}");else if(p=="[")m(a,o.column(),"]");else if(p=="(")m(a,o.column(),")");else if(p=="}"){for(;i.type=="statement";)i=k(a);for(i.type=="}"&&(i=k(a));i.type=="statement";)i=k(a)}else p==i.type?k(a):se&&((i.type=="}"||i.type=="top")&&p!=";"||i.type=="statement"&&p=="newstatement")&&m(a,o.column(),"statement",o.current());if(c=="variable"&&(a.prevToken=="def"||t.typeFirstDefinitions&&R(o,a,o.start)&&O(a.context)&&o.match(/^\s*\(/,!1))&&(c="def"),v.token){var f=v.token(o,a,c);f!==void 0&&(c=f)}return c=="def"&&t.styleDefs===!1&&(c="variable"),a.startOfLine=!1,a.prevToken=F?"def":c||p,ee(o,a),c},indent:function(o,a){if(o.tokenize!=Z&&o.tokenize!=null||o.typeAtEndOfLine&&O(o.context))return y.Pass;var i=o.context,c=a&&a.charAt(0),f=c==i.type;if(i.type=="statement"&&c=="}"&&(i=i.prev),t.dontIndentStatements)for(;i.type=="statement"&&t.dontIndentStatements.test(i.info);)i=i.prev;if(v.indent){var I=v.indent(o,i,a,n);if(typeof I=="number")return I}var ye=i.prev&&i.prev.info=="switch";if(t.allmanIndentation&&/[{(]/.test(c)){for(;i.type!="top"&&i.type!="}";)i=i.prev;return i.indented}return i.type=="statement"?i.indented+(c=="{"?0:l):i.align&&(!u||i.type!=")")?i.column+(f?0:1):i.type==")"&&!f?i.indented+l:i.indented+(f?0:n)+(!f&&ye&&!/^(?:case|default)\b/.test(a)?n:0)},electricInput:ue?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function r(e){for(var t={},n=e.split(" "),l=0;l!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return e.match('""')?(t.tokenize=V,t.tokenize(e,t)):!1},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return n.type=="}"&&n.align&&e.eat(">")?(t.context=new g(n.indented,n.column,n.type,n.info,null,n.prev),"operator"):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=E(1),t.tokenize(e,t)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function ie(e){return function(t,n){for(var l=!1,u,d=!1;!t.eol();){if(!e&&!l&&t.match('"')){d=!0;break}if(e&&t.match('"""')){d=!0;break}u=t.next(),!l&&u=="$"&&t.match("{")&&t.skipTo("}"),l=!l&&u=="\\"&&!e}return(d||!e)&&(n.tokenize=null),"string"}}h("text/x-kotlin",{name:"clike",keywords:r("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:r("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:r("catch class do else finally for if where try while enum"),defKeywords:r("class val var object interface fun"),atoms:r("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return t.prevToken=="."?"variable":"operator"},'"':function(e,t){return t.tokenize=ie(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return e.eat("*")?(t.tokenize=E(1),t.tokenize(e,t)):!1},indent:function(e,t,n,l){var u=n&&n.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&n=="")return e.indented;if(e.prevToken=="operator"&&n!="}"&&e.context.type!="}"||e.prevToken=="variable"&&u=="."||(e.prevToken=="}"||e.prevToken==")")&&u==".")return l*2+t.indented;if(t.align&&t.type=="}")return t.indented+(e.context.type==(n||"").charAt(0)?0:l)}},modeProps:{closeBrackets:{triples:'"'}}}),h(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:r("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:r("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:r("for while do if else struct"),builtin:r("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:r("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":w},modeProps:{fold:["brace","include"]}}),h("text/x-nesc",{name:"clike",keywords:r(_+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:S,blockKeywords:r(T),atoms:r("null true false"),hooks:{"#":w},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec",{name:"clike",keywords:r(_+" "+U),types:A,builtin:r(B),blockKeywords:r(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:r(L+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:P,hooks:{"#":w,"*":D},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec++",{name:"clike",keywords:r(_+" "+U+" "+j),types:A,builtin:r(B),blockKeywords:r(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:r(L+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:r("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:P,hooks:{"#":w,"*":D,u:x,U:x,L:x,R:x,0:s,1:s,2:s,3:s,4:s,5:s,6:s,7:s,8:s,9:s,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&K(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),h("text/x-squirrel",{name:"clike",keywords:r("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:S,blockKeywords:r("case catch class else for foreach if switch try while"),defKeywords:r("function local class"),typeFirstDefinitions:!0,atoms:r("true false null"),hooks:{"#":w},modeProps:{fold:["brace","include"]}});var C=null;function W(e){return function(t,n){for(var l=!1,u,d=!1;!t.eol();){if(!l&&t.match('"')&&(e=="single"||t.match('""'))){d=!0;break}if(!l&&t.match("``")){C=W(e),d=!0;break}u=t.next(),l=e=="single"&&!l&&u=="\\"}return d&&(n.tokenize=null),"string"}}h("text/x-ceylon",{name:"clike",keywords:r("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:r("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:r("class dynamic function interface module object package value"),builtin:r("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:r("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=W(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!C||!e.match("`")?!1:(t.tokenize=C,C=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();var te=be.exports;const we=me(te),ve=ke({__proto__:null,default:we},[te]);export{te as a,ve as c}; diff --git a/dist-ui/assets/clojure-DuvyDseK.js b/dist-ui/assets/clojure-_p1sPkR2.js similarity index 99% rename from dist-ui/assets/clojure-DuvyDseK.js rename to dist-ui/assets/clojure-_p1sPkR2.js index 006f70ee..9d0ce847 100644 --- a/dist-ui/assets/clojure-DuvyDseK.js +++ b/dist-ui/assets/clojure-_p1sPkR2.js @@ -1 +1 @@ -import{g as S,c as A}from"./index-CFELAGmQ.js";function M(d,u){for(var o=0;oi[a]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(d,u){(function(o){o(A)})(function(o){o.defineMode("clojure",function(i){var a=["false","nil","true"],s=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],m=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],b=["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"];o.registerHelper("hintWords","clojure",[].concat(a,s,m));var v=l(a),g=l(s),x=l(m),k=l(b),w=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,q=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,j=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,T=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(t,e){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(q))return[null,"number"];if(t.match(j))return[null,"string-2"];if(t.eat(/^"/))return(e.tokenize=z)(t,e);if(t.eat(/^[(\[{]/))return["open","bracket"];if(t.eat(/^[)\]}]/))return["close","bracket"];if(t.eat(/^;/))return t.skipToEnd(),["space","comment"];if(t.eat(/^[#'@^`~]/))return[null,"meta"];var r=t.match(T),n=r&&r[0];return n?n==="comment"&&e.lastToken==="("?(e.tokenize=E)(t,e):c(n,v)||n.charAt(0)===":"?["symbol","atom"]:c(n,g)||c(n,x)?["symbol","keyword"]:e.lastToken==="("?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(f){return!c(f,w)}),[null,"error"])}function z(t,e){for(var r=!1,n;n=t.next();){if(n==='"'&&!r){e.tokenize=p;break}r=!r&&n==="\\"}return[null,"string"]}function E(t,e){for(var r=1,n;n=t.next();)if(n===")"&&r--,n==="("&&r++,r===0){t.backUp(1),e.tokenize=p;break}return["space","comment"]}function l(t){for(var e={},r=0;ri[a]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(d,u){(function(o){o(A)})(function(o){o.defineMode("clojure",function(i){var a=["false","nil","true"],s=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],m=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],b=["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"];o.registerHelper("hintWords","clojure",[].concat(a,s,m));var v=l(a),g=l(s),x=l(m),k=l(b),w=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,q=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,j=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,T=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function p(t,e){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(q))return[null,"number"];if(t.match(j))return[null,"string-2"];if(t.eat(/^"/))return(e.tokenize=z)(t,e);if(t.eat(/^[(\[{]/))return["open","bracket"];if(t.eat(/^[)\]}]/))return["close","bracket"];if(t.eat(/^;/))return t.skipToEnd(),["space","comment"];if(t.eat(/^[#'@^`~]/))return[null,"meta"];var r=t.match(T),n=r&&r[0];return n?n==="comment"&&e.lastToken==="("?(e.tokenize=E)(t,e):c(n,v)||n.charAt(0)===":"?["symbol","atom"]:c(n,g)||c(n,x)?["symbol","keyword"]:e.lastToken==="("?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(f){return!c(f,w)}),[null,"error"])}function z(t,e){for(var r=!1,n;n=t.next();){if(n==='"'&&!r){e.tokenize=p;break}r=!r&&n==="\\"}return[null,"string"]}function E(t,e){for(var r=1,n;n=t.next();)if(n===")"&&r--,n==="("&&r++,r===0){t.backUp(1),e.tokenize=p;break}return["space","comment"]}function l(t){for(var e={},r=0;ro[i]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(f,u){(function(t){t(d)})(function(t){t.defineMode("cmake",function(){var o=/({)?[a-zA-Z0-9_]+(})?/;function i(e,r){for(var n,a,l=!1;!e.eol()&&(n=e.next())!=r.pending;){if(n==="$"&&a!="\\"&&r.pending=='"'){l=!0;break}a=n}return l&&e.backUp(1),n==r.pending?r.continueString=!1:r.continueString=!0,"string"}function c(e,r){var n=e.next();return n==="$"?e.match(o)?"variable-2":"variable":r.continueString?(e.backUp(1),i(e,r)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):n=="#"?(e.skipToEnd(),"comment"):n=="'"||n=='"'?(r.pending=n,i(e,r)):n=="("||n==")"?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,r){return e.eatSpace()?null:c(e,r)}}}),t.defineMIME("text/x-cmake","cmake")})})();var p=b.exports;const s=g(p),x=k({__proto__:null,default:s},[p]);export{x as c}; +import{g,c as d}from"./index-F8NPuhC5.js";function k(f,u){for(var t=0;to[i]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(f,u){(function(t){t(d)})(function(t){t.defineMode("cmake",function(){var o=/({)?[a-zA-Z0-9_]+(})?/;function i(e,r){for(var n,a,l=!1;!e.eol()&&(n=e.next())!=r.pending;){if(n==="$"&&a!="\\"&&r.pending=='"'){l=!0;break}a=n}return l&&e.backUp(1),n==r.pending?r.continueString=!1:r.continueString=!0,"string"}function c(e,r){var n=e.next();return n==="$"?e.match(o)?"variable-2":"variable":r.continueString?(e.backUp(1),i(e,r)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):n=="#"?(e.skipToEnd(),"comment"):n=="'"||n=='"'?(r.pending=n,i(e,r)):n=="("||n==")"?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,r){return e.eatSpace()?null:c(e,r)}}}),t.defineMIME("text/x-cmake","cmake")})})();var p=b.exports;const s=g(p),x=k({__proto__:null,default:s},[p]);export{x as c}; diff --git a/dist-ui/assets/cobol-DmPFhTxe.js b/dist-ui/assets/cobol-CMUPkVPk.js similarity index 99% rename from dist-ui/assets/cobol-DmPFhTxe.js rename to dist-ui/assets/cobol-CMUPkVPk.js index 75c885f9..d539d4d5 100644 --- a/dist-ui/assets/cobol-DmPFhTxe.js +++ b/dist-ui/assets/cobol-CMUPkVPk.js @@ -1 +1 @@ -import{g as u,c as Y}from"./index-CFELAGmQ.js";function d(U,e){for(var R=0;RO[A]})}}}return Object.freeze(Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(U,e){(function(R){R(Y)})(function(R){R.defineMode("cobol",function(){var O="builtin",A="comment",D="string",M="atom",o="number",r="keyword",B="header",l="def",F="link";function P(E){for(var T={},I=E.split(" "),L=0;L >= "),N={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function f(E,T){return E==="0"&&T.eat(/x/i)?(T.eatWhile(N.hex),!0):((E=="+"||E=="-")&&N.digit.test(T.peek())&&(T.eat(N.sign),E=T.next()),N.digit.test(E)?(T.eat(E),T.eatWhile(N.digit),T.peek()=="."&&(T.eat("."),T.eatWhile(N.digit)),T.eat(N.exponent)&&(T.eat(N.sign),T.eatWhile(N.digit)),!0):!1)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,T){if(T.indentStack==null&&E.sol()&&(T.indentation=6),E.eatSpace())return null;var I=null;switch(T.mode){case"string":for(var L=!1;(L=E.next())!=null;)if((L=='"'||L=="'")&&!E.match(/['"]/,!1)){T.mode=!1;break}I=D;break;default:var S=E.next(),C=E.column();if(C>=0&&C<=5)I=l;else if(C>=72&&C<=79)E.skipToEnd(),I=B;else if(S=="*"&&C==6)E.skipToEnd(),I=A;else if(S=='"'||S=="'")T.mode="string",I=D;else if(S=="'"&&!N.digit_or_colon.test(E.peek()))I=M;else if(S==".")I=F;else if(f(S,E))I=o;else{if(E.current().match(N.symbol))for(;C<71&&E.eat(N.symbol)!==void 0;)C++;t&&t.propertyIsEnumerable(E.current().toUpperCase())?I=r:i&&i.propertyIsEnumerable(E.current().toUpperCase())?I=O:n&&n.propertyIsEnumerable(E.current().toUpperCase())?I=M:I=null}}return I},indent:function(E){return E.indentStack==null?E.indentation:E.indentStack.indent}}}),R.defineMIME("text/x-cobol","cobol")})})();var G=H.exports;const a=u(G),p=d({__proto__:null,default:a},[G]);export{p as c}; +import{g as u,c as Y}from"./index-F8NPuhC5.js";function d(U,e){for(var R=0;RO[A]})}}}return Object.freeze(Object.defineProperty(U,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(U,e){(function(R){R(Y)})(function(R){R.defineMode("cobol",function(){var O="builtin",A="comment",D="string",M="atom",o="number",r="keyword",B="header",l="def",F="link";function P(E){for(var T={},I=E.split(" "),L=0;L >= "),N={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function f(E,T){return E==="0"&&T.eat(/x/i)?(T.eatWhile(N.hex),!0):((E=="+"||E=="-")&&N.digit.test(T.peek())&&(T.eat(N.sign),E=T.next()),N.digit.test(E)?(T.eat(E),T.eatWhile(N.digit),T.peek()=="."&&(T.eat("."),T.eatWhile(N.digit)),T.eat(N.exponent)&&(T.eat(N.sign),T.eatWhile(N.digit)),!0):!1)}return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(E,T){if(T.indentStack==null&&E.sol()&&(T.indentation=6),E.eatSpace())return null;var I=null;switch(T.mode){case"string":for(var L=!1;(L=E.next())!=null;)if((L=='"'||L=="'")&&!E.match(/['"]/,!1)){T.mode=!1;break}I=D;break;default:var S=E.next(),C=E.column();if(C>=0&&C<=5)I=l;else if(C>=72&&C<=79)E.skipToEnd(),I=B;else if(S=="*"&&C==6)E.skipToEnd(),I=A;else if(S=='"'||S=="'")T.mode="string",I=D;else if(S=="'"&&!N.digit_or_colon.test(E.peek()))I=M;else if(S==".")I=F;else if(f(S,E))I=o;else{if(E.current().match(N.symbol))for(;C<71&&E.eat(N.symbol)!==void 0;)C++;t&&t.propertyIsEnumerable(E.current().toUpperCase())?I=r:i&&i.propertyIsEnumerable(E.current().toUpperCase())?I=O:n&&n.propertyIsEnumerable(E.current().toUpperCase())?I=M:I=null}}return I},indent:function(E){return E.indentStack==null?E.indentation:E.indentStack.indent}}}),R.defineMIME("text/x-cobol","cobol")})})();var G=H.exports;const a=u(G),p=d({__proto__:null,default:a},[G]);export{p as c}; diff --git a/dist-ui/assets/coffeescript-DH2pDx43.js b/dist-ui/assets/coffeescript-DBSS_8nW.js similarity index 98% rename from dist-ui/assets/coffeescript-DH2pDx43.js rename to dist-ui/assets/coffeescript-DBSS_8nW.js index 664952ca..fd011c4b 100644 --- a/dist-ui/assets/coffeescript-DH2pDx43.js +++ b/dist-ui/assets/coffeescript-DBSS_8nW.js @@ -1 +1 @@ -import{g as Z,c as N}from"./index-CFELAGmQ.js";function T(v,a){for(var c=0;cp[u]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var U={exports:{}};(function(v,a){(function(c){c(N)})(function(c){c.defineMode("coffeescript",function(p,u){var l="error";function h(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var z=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,s=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,x=/^[_A-Za-z$][_A-Za-z$0-9]*/,E=/^@[_A-Za-z$][_A-Za-z$0-9]*/,A=h(["and","or","not","is","isnt","in","instanceof","typeof"]),g=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],O=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],_=h(g.concat(O));g=h(g);var S=/^('{3}|\"{3}|['\"])/,j=/^(\/{3}|\/)/,P=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],$=h(P);function d(e,n){if(e.sol()){n.scope.align===null&&(n.scope.align=!1);var r=n.scope.offset;if(e.eatSpace()){var f=e.indentation();return f>r&&n.scope.type=="coffee"?"indent":f0&&y(e,n)}if(e.eatSpace())return null;var i=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=M,n.tokenize(e,n);if(i==="#")return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var t=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(t=!0),e.match(/^-?\d+\.\d*/)&&(t=!0),e.match(/^-?\.\d+/)&&(t=!0),t)return e.peek()=="."&&e.backUp(1),"number";var o=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(o=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(o=!0),e.match(/^-?0(?![\dx])/i)&&(o=!0),o)return"number"}if(e.match(S))return n.tokenize=b(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(j)){if(e.current()!="/"||e.match(/^.*\//,!1))return n.tokenize=b(e.current(),!0,"string-2"),n.tokenize(e,n);e.backUp(1)}return e.match(z)||e.match(A)?"operator":e.match(s)?"punctuation":e.match($)?"atom":e.match(E)||n.prop&&e.match(x)?"property":e.match(_)?"keyword":e.match(x)?"variable":(e.next(),l)}function b(e,n,r){return function(f,i){for(;!f.eol();)if(f.eatWhile(/[^'"\/\\]/),f.eat("\\")){if(f.next(),n&&f.eol())return r}else{if(f.match(e))return i.tokenize=d,r;f.eat(/['"\/]/)}return n&&(u.singleLineStringErrors?r=l:i.tokenize=d),r}}function M(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=d;break}e.eatWhile("#")}return"comment"}function k(e,n,r){r=r||"coffee";for(var f=0,i=!1,t=null,o=n.scope;o;o=o.prev)if(o.type==="coffee"||o.type=="}"){f=o.offset+p.indentUnit;break}r!=="coffee"?(i=null,t=e.column()+e.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:f,type:r,prev:n.scope,align:i,alignOffset:t}}function y(e,n){if(n.scope.prev)if(n.scope.type==="coffee"){for(var r=e.indentation(),f=!1,i=n.scope;i;i=i.prev)if(r===i.offset){f=!0;break}if(!f)return!0;for(;n.scope.prev&&n.scope.offset!==r;)n.scope=n.scope.prev;return!1}else return n.scope=n.scope.prev,!1}function R(e,n){var r=n.tokenize(e,n),f=e.current();f==="return"&&(n.dedent=!0),((f==="->"||f==="=>")&&e.eol()||r==="indent")&&k(e,n);var i="[({".indexOf(f);if(i!==-1&&k(e,n,"])}".slice(i,i+1)),g.exec(f)&&k(e,n),f=="then"&&y(e,n),r==="dedent"&&y(e,n))return l;if(i="])}".indexOf(f),i!==-1){for(;n.scope.type=="coffee"&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==f&&(n.scope=n.scope.prev)}return n.dedent&&e.eol()&&(n.scope.type=="coffee"&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),r}var I={startState:function(e){return{tokenize:d,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var r=n.scope.align===null&&n.scope;r&&e.sol()&&(r.align=!1);var f=R(e,n);return f&&f!="comment"&&(r&&(r.align=!0),n.prop=f=="punctuation"&&e.current()=="."),f},indent:function(e,n){if(e.tokenize!=d)return 0;var r=e.scope,f=n&&"])}".indexOf(n.charAt(0))>-1;if(f)for(;r.type=="coffee"&&r.prev;)r=r.prev;var i=f&&r.type===n.charAt(0);return r.align?r.alignOffset-(i?1:0):(i?r.prev:r).offset},lineComment:"#",fold:"indent"};return I}),c.defineMIME("application/vnd.coffeescript","coffeescript"),c.defineMIME("text/x-coffeescript","coffeescript"),c.defineMIME("text/coffeescript","coffeescript")})})();var w=U.exports;const W=Z(w),D=T({__proto__:null,default:W},[w]);export{w as a,D as c}; +import{g as Z,c as N}from"./index-F8NPuhC5.js";function T(v,a){for(var c=0;cp[u]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var U={exports:{}};(function(v,a){(function(c){c(N)})(function(c){c.defineMode("coffeescript",function(p,u){var l="error";function h(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var z=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,s=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,x=/^[_A-Za-z$][_A-Za-z$0-9]*/,E=/^@[_A-Za-z$][_A-Za-z$0-9]*/,A=h(["and","or","not","is","isnt","in","instanceof","typeof"]),g=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],O=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],_=h(g.concat(O));g=h(g);var S=/^('{3}|\"{3}|['\"])/,j=/^(\/{3}|\/)/,P=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],$=h(P);function d(e,n){if(e.sol()){n.scope.align===null&&(n.scope.align=!1);var r=n.scope.offset;if(e.eatSpace()){var f=e.indentation();return f>r&&n.scope.type=="coffee"?"indent":f0&&y(e,n)}if(e.eatSpace())return null;var i=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return n.tokenize=M,n.tokenize(e,n);if(i==="#")return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var t=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(t=!0),e.match(/^-?\d+\.\d*/)&&(t=!0),e.match(/^-?\.\d+/)&&(t=!0),t)return e.peek()=="."&&e.backUp(1),"number";var o=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(o=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(o=!0),e.match(/^-?0(?![\dx])/i)&&(o=!0),o)return"number"}if(e.match(S))return n.tokenize=b(e.current(),!1,"string"),n.tokenize(e,n);if(e.match(j)){if(e.current()!="/"||e.match(/^.*\//,!1))return n.tokenize=b(e.current(),!0,"string-2"),n.tokenize(e,n);e.backUp(1)}return e.match(z)||e.match(A)?"operator":e.match(s)?"punctuation":e.match($)?"atom":e.match(E)||n.prop&&e.match(x)?"property":e.match(_)?"keyword":e.match(x)?"variable":(e.next(),l)}function b(e,n,r){return function(f,i){for(;!f.eol();)if(f.eatWhile(/[^'"\/\\]/),f.eat("\\")){if(f.next(),n&&f.eol())return r}else{if(f.match(e))return i.tokenize=d,r;f.eat(/['"\/]/)}return n&&(u.singleLineStringErrors?r=l:i.tokenize=d),r}}function M(e,n){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){n.tokenize=d;break}e.eatWhile("#")}return"comment"}function k(e,n,r){r=r||"coffee";for(var f=0,i=!1,t=null,o=n.scope;o;o=o.prev)if(o.type==="coffee"||o.type=="}"){f=o.offset+p.indentUnit;break}r!=="coffee"?(i=null,t=e.column()+e.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:f,type:r,prev:n.scope,align:i,alignOffset:t}}function y(e,n){if(n.scope.prev)if(n.scope.type==="coffee"){for(var r=e.indentation(),f=!1,i=n.scope;i;i=i.prev)if(r===i.offset){f=!0;break}if(!f)return!0;for(;n.scope.prev&&n.scope.offset!==r;)n.scope=n.scope.prev;return!1}else return n.scope=n.scope.prev,!1}function R(e,n){var r=n.tokenize(e,n),f=e.current();f==="return"&&(n.dedent=!0),((f==="->"||f==="=>")&&e.eol()||r==="indent")&&k(e,n);var i="[({".indexOf(f);if(i!==-1&&k(e,n,"])}".slice(i,i+1)),g.exec(f)&&k(e,n),f=="then"&&y(e,n),r==="dedent"&&y(e,n))return l;if(i="])}".indexOf(f),i!==-1){for(;n.scope.type=="coffee"&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==f&&(n.scope=n.scope.prev)}return n.dedent&&e.eol()&&(n.scope.type=="coffee"&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),r}var I={startState:function(e){return{tokenize:d,scope:{offset:e||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,n){var r=n.scope.align===null&&n.scope;r&&e.sol()&&(r.align=!1);var f=R(e,n);return f&&f!="comment"&&(r&&(r.align=!0),n.prop=f=="punctuation"&&e.current()=="."),f},indent:function(e,n){if(e.tokenize!=d)return 0;var r=e.scope,f=n&&"])}".indexOf(n.charAt(0))>-1;if(f)for(;r.type=="coffee"&&r.prev;)r=r.prev;var i=f&&r.type===n.charAt(0);return r.align?r.alignOffset-(i?1:0):(i?r.prev:r).offset},lineComment:"#",fold:"indent"};return I}),c.defineMIME("application/vnd.coffeescript","coffeescript"),c.defineMIME("text/x-coffeescript","coffeescript"),c.defineMIME("text/coffeescript","coffeescript")})})();var w=U.exports;const W=Z(w),D=T({__proto__:null,default:W},[w]);export{w as a,D as c}; diff --git a/dist-ui/assets/commonlisp-CvF5qUNJ.js b/dist-ui/assets/commonlisp-B_RZ0L8A.js similarity index 97% rename from dist-ui/assets/commonlisp-CvF5qUNJ.js rename to dist-ui/assets/commonlisp-B_RZ0L8A.js index d7702543..ea5b4cfd 100644 --- a/dist-ui/assets/commonlisp-CvF5qUNJ.js +++ b/dist-ui/assets/commonlisp-B_RZ0L8A.js @@ -1 +1 @@ -import{g as y,c as k}from"./index-CFELAGmQ.js";function g(f,p){for(var i=0;il[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(f,p){(function(i){i(k)})(function(i){i.defineMode("commonlisp",function(l){var c=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,u=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,b=/[^\s'`,@()\[\]";]/,o;function s(e){for(var n;n=e.next();)if(n=="\\")e.next();else if(!b.test(n)){e.backUp(1);break}return e.current()}function d(e,n){if(e.eatSpace())return o="ws",null;if(e.match(a))return"number";var t=e.next();if(t=="\\"&&(t=e.next()),t=='"')return(n.tokenize=m)(e,n);if(t=="(")return o="open","bracket";if(t==")"||t=="]")return o="close","bracket";if(t==";")return e.skipToEnd(),o="ws","comment";if(/['`,@]/.test(t))return null;if(t=="|")return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if(t=="#"){var t=e.next();return t=="("?(o="open","bracket"):/[+\-=\.']/.test(t)||/\d/.test(t)&&e.match(/^\d*#/)?null:t=="|"?(n.tokenize=v)(e,n):t==":"?(s(e),"meta"):t=="\\"?(e.next(),s(e),"string-2"):"error"}else{var r=s(e);return r=="."?null:(o="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":n.lastType=="open"&&(c.test(r)||u.test(r))?"keyword":r.charAt(0)=="&"?"variable-2":"variable")}}function m(e,n){for(var t=!1,r;r=e.next();){if(r=='"'&&!t){n.tokenize=d;break}t=!t&&r=="\\"}return"string"}function v(e,n){for(var t,r;t=e.next();){if(t=="#"&&r=="|"){n.tokenize=d;break}r=t}return o="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:d}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!="number"&&(n.ctx.indentTo=n.ctx.start+1),o=null;var t=n.tokenize(e,n);return o!="ws"&&(n.ctx.indentTo==null?o=="symbol"&&u.test(e.current())?n.ctx.indentTo=n.ctx.start+l.indentUnit:n.ctx.indentTo="next":n.ctx.indentTo=="next"&&(n.ctx.indentTo=e.column()),n.lastType=o),o=="open"?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:o=="close"&&(n.ctx=n.ctx.prev||n.ctx),t},indent:function(e,n){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}}),i.defineMIME("text/x-common-lisp","commonlisp")})})();var x=h.exports;const T=y(x),$=g({__proto__:null,default:T},[x]);export{$ as c}; +import{g as y,c as k}from"./index-F8NPuhC5.js";function g(f,p){for(var i=0;il[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(f,p){(function(i){i(k)})(function(i){i.defineMode("commonlisp",function(l){var c=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,u=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,b=/[^\s'`,@()\[\]";]/,o;function s(e){for(var n;n=e.next();)if(n=="\\")e.next();else if(!b.test(n)){e.backUp(1);break}return e.current()}function d(e,n){if(e.eatSpace())return o="ws",null;if(e.match(a))return"number";var t=e.next();if(t=="\\"&&(t=e.next()),t=='"')return(n.tokenize=m)(e,n);if(t=="(")return o="open","bracket";if(t==")"||t=="]")return o="close","bracket";if(t==";")return e.skipToEnd(),o="ws","comment";if(/['`,@]/.test(t))return null;if(t=="|")return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if(t=="#"){var t=e.next();return t=="("?(o="open","bracket"):/[+\-=\.']/.test(t)||/\d/.test(t)&&e.match(/^\d*#/)?null:t=="|"?(n.tokenize=v)(e,n):t==":"?(s(e),"meta"):t=="\\"?(e.next(),s(e),"string-2"):"error"}else{var r=s(e);return r=="."?null:(o="symbol",r=="nil"||r=="t"||r.charAt(0)==":"?"atom":n.lastType=="open"&&(c.test(r)||u.test(r))?"keyword":r.charAt(0)=="&"?"variable-2":"variable")}}function m(e,n){for(var t=!1,r;r=e.next();){if(r=='"'&&!t){n.tokenize=d;break}t=!t&&r=="\\"}return"string"}function v(e,n){for(var t,r;t=e.next();){if(t=="#"&&r=="|"){n.tokenize=d;break}r=t}return o="ws","comment"}return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:d}},token:function(e,n){e.sol()&&typeof n.ctx.indentTo!="number"&&(n.ctx.indentTo=n.ctx.start+1),o=null;var t=n.tokenize(e,n);return o!="ws"&&(n.ctx.indentTo==null?o=="symbol"&&u.test(e.current())?n.ctx.indentTo=n.ctx.start+l.indentUnit:n.ctx.indentTo="next":n.ctx.indentTo=="next"&&(n.ctx.indentTo=e.column()),n.lastType=o),o=="open"?n.ctx={prev:n.ctx,start:e.column(),indentTo:null}:o=="close"&&(n.ctx=n.ctx.prev||n.ctx),t},indent:function(e,n){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}}),i.defineMIME("text/x-common-lisp","commonlisp")})})();var x=h.exports;const T=y(x),$=g({__proto__:null,default:T},[x]);export{$ as c}; diff --git a/dist-ui/assets/crystal-C3YOX7T5.js b/dist-ui/assets/crystal-DFfCpls_.js similarity index 98% rename from dist-ui/assets/crystal-C3YOX7T5.js rename to dist-ui/assets/crystal-DFfCpls_.js index 377a0e12..d2da4bc3 100644 --- a/dist-ui/assets/crystal-C3YOX7T5.js +++ b/dist-ui/assets/crystal-DFfCpls_.js @@ -1 +1 @@ -import{g as L,c as q}from"./index-CFELAGmQ.js";function U(v,y){for(var f=0;fl[i]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var B={exports:{}};(function(v,y){(function(f){f(q)})(function(f){f.defineMode("crystal",function(l){function i(n,e){return new RegExp((e?"":"^")+"(?:"+n.join("|")+")"+(e?"$":"\\b"))}function c(n,e,r){return r.tokenize.push(n),n(e,r)}var _=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,z=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,x=/^(?:\[\][?=]?)/,O=/^(?:\.(?:\.{2})?|->|[?:])/,h=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,F=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,T=i(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),j=i(["true","false","nil","self"]),P=["def","fun","macro","class","module","struct","lib","enum","union","do","for"],D=i(P),K=["if","unless","case","while","until","begin","then"],M=i(K),b=["end","else","elsif","rescue","ensure"],N=i(b),I=["\\)","\\}","\\]"],Z=new RegExp("^(?:"+I.join("|")+")$"),E={def:S,fun:S,macro:$,class:p,module:p,struct:p,lib:p,enum:p,union:p},s={"[":"]","{":"}","(":")","<":">"};function g(n,e){if(n.eatSpace())return null;if(e.lastToken!="\\"&&n.match("{%",!1))return c(a("%","%"),n,e);if(e.lastToken!="\\"&&n.match("{{",!1))return c(a("{","}"),n,e);if(n.peek()=="#")return n.skipToEnd(),"comment";var r;if(n.match(h))return n.eat(/[?!]/),r=n.current(),n.eat(":")?"atom":e.lastToken=="."?"property":T.test(r)?(D.test(r)?!(r=="fun"&&e.blocks.indexOf("lib")>=0)&&!(r=="def"&&e.lastToken=="abstract")&&(e.blocks.push(r),e.currentIndent+=1):(e.lastStyle=="operator"||!e.lastStyle)&&M.test(r)?(e.blocks.push(r),e.currentIndent+=1):r=="end"&&(e.blocks.pop(),e.currentIndent-=1),E.hasOwnProperty(r)&&e.tokenize.push(E[r]),"keyword"):j.test(r)?"atom":"variable";if(n.eat("@"))return n.peek()=="["?c(d("[","]","meta"),n,e):(n.eat("@"),n.match(h)||n.match(F),"variable-2");if(n.match(F))return"tag";if(n.eat(":"))return n.eat('"')?c(w('"',"atom",!1),n,e):n.match(h)||n.match(F)||n.match(_)||n.match(z)||n.match(x)?"atom":(n.eat(":"),"operator");if(n.eat('"'))return c(w('"',"string",!0),n,e);if(n.peek()=="%"){var u="string",t=!0,o;if(n.match("%r"))u="string-2",o=n.next();else if(n.match("%w"))t=!1,o=n.next();else if(n.match("%q"))t=!1,o=n.next();else if(o=n.match(/^%([^\w\s=])/))o=o[1];else{if(n.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(n.eat("%"))return"operator"}return s.hasOwnProperty(o)&&(o=s[o]),c(w(o,u,t),n,e)}return(r=n.match(/^<<-('?)([A-Z]\w*)\1/))?c(R(r[2],!r[1]),n,e):n.eat("'")?(n.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),n.eat("'"),"atom"):n.eat("0")?(n.eat("x")?n.match(/^[0-9a-fA-F_]+/):n.eat("o")?n.match(/^[0-7_]+/):n.eat("b")&&n.match(/^[01_]+/),"number"):n.eat(/^\d/)?(n.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):n.match(_)?(n.eat("="),"operator"):n.match(z)||n.match(O)?"operator":(r=n.match(/[({[]/,!1))?(r=r[0],c(d(r,s[r],null),n,e)):n.eat("\\")?(n.next(),"meta"):(n.next(),null)}function d(n,e,r,u){return function(t,o){if(!u&&t.match(n))return o.tokenize[o.tokenize.length-1]=d(n,e,r,!0),o.currentIndent+=1,r;var k=g(t,o);return t.current()===e&&(o.tokenize.pop(),o.currentIndent-=1,k=r),k}}function a(n,e,r){return function(u,t){return!r&&u.match("{"+n)?(t.currentIndent+=1,t.tokenize[t.tokenize.length-1]=a(n,e,!0),"meta"):u.match(e+"}")?(t.currentIndent-=1,t.tokenize.pop(),"meta"):g(u,t)}}function $(n,e){if(n.eatSpace())return null;var r;if(r=n.match(h)){if(r=="def")return"keyword";n.eat(/[?!]/)}return e.tokenize.pop(),"def"}function S(n,e){return n.eatSpace()?null:(n.match(h)?n.eat(/[!?]/):n.match(_)||n.match(z)||n.match(x),e.tokenize.pop(),"def")}function p(n,e){return n.eatSpace()?null:(n.match(F),e.tokenize.pop(),"def")}function w(n,e,r){return function(u,t){for(var o=!1;u.peek();)if(o)u.next(),o=!1;else{if(u.match("{%",!1))return t.tokenize.push(a("%","%")),e;if(u.match("{{",!1))return t.tokenize.push(a("{","}")),e;if(r&&u.match("#{",!1))return t.tokenize.push(d("#{","}","meta")),e;var k=u.next();if(k==n)return t.tokenize.pop(),e;o=r&&k=="\\"}return e}}function R(n,e){return function(r,u){if(r.sol()&&(r.eatSpace(),r.match(n)))return u.tokenize.pop(),"string";for(var t=!1;r.peek();)if(t)r.next(),t=!1;else{if(r.match("{%",!1))return u.tokenize.push(a("%","%")),"string";if(r.match("{{",!1))return u.tokenize.push(a("{","}")),"string";if(e&&r.match("#{",!1))return u.tokenize.push(d("#{","}","meta")),"string";t=e&&r.next()=="\\"}return"string"}}return{startState:function(){return{tokenize:[g],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(n,e){var r=e.tokenize[e.tokenize.length-1](n,e),u=n.current();return r&&r!="comment"&&(e.lastToken=u,e.lastStyle=r),r},indent:function(n,e){return e=e.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),N.test(e)||Z.test(e)?l.indentUnit*(n.currentIndent-1):l.indentUnit*n.currentIndent},fold:"indent",electricInput:i(I.concat(b),!0),lineComment:"#"}}),f.defineMIME("text/x-crystal","crystal")})})();var A=B.exports;const C=L(A),Q=U({__proto__:null,default:C},[A]);export{Q as c}; +import{g as L,c as q}from"./index-F8NPuhC5.js";function U(v,y){for(var f=0;fl[i]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var B={exports:{}};(function(v,y){(function(f){f(q)})(function(f){f.defineMode("crystal",function(l){function i(n,e){return new RegExp((e?"":"^")+"(?:"+n.join("|")+")"+(e?"$":"\\b"))}function c(n,e,r){return r.tokenize.push(n),n(e,r)}var _=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,z=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,x=/^(?:\[\][?=]?)/,O=/^(?:\.(?:\.{2})?|->|[?:])/,h=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,F=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,T=i(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),j=i(["true","false","nil","self"]),P=["def","fun","macro","class","module","struct","lib","enum","union","do","for"],D=i(P),K=["if","unless","case","while","until","begin","then"],M=i(K),b=["end","else","elsif","rescue","ensure"],N=i(b),I=["\\)","\\}","\\]"],Z=new RegExp("^(?:"+I.join("|")+")$"),E={def:S,fun:S,macro:$,class:p,module:p,struct:p,lib:p,enum:p,union:p},s={"[":"]","{":"}","(":")","<":">"};function g(n,e){if(n.eatSpace())return null;if(e.lastToken!="\\"&&n.match("{%",!1))return c(a("%","%"),n,e);if(e.lastToken!="\\"&&n.match("{{",!1))return c(a("{","}"),n,e);if(n.peek()=="#")return n.skipToEnd(),"comment";var r;if(n.match(h))return n.eat(/[?!]/),r=n.current(),n.eat(":")?"atom":e.lastToken=="."?"property":T.test(r)?(D.test(r)?!(r=="fun"&&e.blocks.indexOf("lib")>=0)&&!(r=="def"&&e.lastToken=="abstract")&&(e.blocks.push(r),e.currentIndent+=1):(e.lastStyle=="operator"||!e.lastStyle)&&M.test(r)?(e.blocks.push(r),e.currentIndent+=1):r=="end"&&(e.blocks.pop(),e.currentIndent-=1),E.hasOwnProperty(r)&&e.tokenize.push(E[r]),"keyword"):j.test(r)?"atom":"variable";if(n.eat("@"))return n.peek()=="["?c(d("[","]","meta"),n,e):(n.eat("@"),n.match(h)||n.match(F),"variable-2");if(n.match(F))return"tag";if(n.eat(":"))return n.eat('"')?c(w('"',"atom",!1),n,e):n.match(h)||n.match(F)||n.match(_)||n.match(z)||n.match(x)?"atom":(n.eat(":"),"operator");if(n.eat('"'))return c(w('"',"string",!0),n,e);if(n.peek()=="%"){var u="string",t=!0,o;if(n.match("%r"))u="string-2",o=n.next();else if(n.match("%w"))t=!1,o=n.next();else if(n.match("%q"))t=!1,o=n.next();else if(o=n.match(/^%([^\w\s=])/))o=o[1];else{if(n.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(n.eat("%"))return"operator"}return s.hasOwnProperty(o)&&(o=s[o]),c(w(o,u,t),n,e)}return(r=n.match(/^<<-('?)([A-Z]\w*)\1/))?c(R(r[2],!r[1]),n,e):n.eat("'")?(n.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),n.eat("'"),"atom"):n.eat("0")?(n.eat("x")?n.match(/^[0-9a-fA-F_]+/):n.eat("o")?n.match(/^[0-7_]+/):n.eat("b")&&n.match(/^[01_]+/),"number"):n.eat(/^\d/)?(n.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):n.match(_)?(n.eat("="),"operator"):n.match(z)||n.match(O)?"operator":(r=n.match(/[({[]/,!1))?(r=r[0],c(d(r,s[r],null),n,e)):n.eat("\\")?(n.next(),"meta"):(n.next(),null)}function d(n,e,r,u){return function(t,o){if(!u&&t.match(n))return o.tokenize[o.tokenize.length-1]=d(n,e,r,!0),o.currentIndent+=1,r;var k=g(t,o);return t.current()===e&&(o.tokenize.pop(),o.currentIndent-=1,k=r),k}}function a(n,e,r){return function(u,t){return!r&&u.match("{"+n)?(t.currentIndent+=1,t.tokenize[t.tokenize.length-1]=a(n,e,!0),"meta"):u.match(e+"}")?(t.currentIndent-=1,t.tokenize.pop(),"meta"):g(u,t)}}function $(n,e){if(n.eatSpace())return null;var r;if(r=n.match(h)){if(r=="def")return"keyword";n.eat(/[?!]/)}return e.tokenize.pop(),"def"}function S(n,e){return n.eatSpace()?null:(n.match(h)?n.eat(/[!?]/):n.match(_)||n.match(z)||n.match(x),e.tokenize.pop(),"def")}function p(n,e){return n.eatSpace()?null:(n.match(F),e.tokenize.pop(),"def")}function w(n,e,r){return function(u,t){for(var o=!1;u.peek();)if(o)u.next(),o=!1;else{if(u.match("{%",!1))return t.tokenize.push(a("%","%")),e;if(u.match("{{",!1))return t.tokenize.push(a("{","}")),e;if(r&&u.match("#{",!1))return t.tokenize.push(d("#{","}","meta")),e;var k=u.next();if(k==n)return t.tokenize.pop(),e;o=r&&k=="\\"}return e}}function R(n,e){return function(r,u){if(r.sol()&&(r.eatSpace(),r.match(n)))return u.tokenize.pop(),"string";for(var t=!1;r.peek();)if(t)r.next(),t=!1;else{if(r.match("{%",!1))return u.tokenize.push(a("%","%")),"string";if(r.match("{{",!1))return u.tokenize.push(a("{","}")),"string";if(e&&r.match("#{",!1))return u.tokenize.push(d("#{","}","meta")),"string";t=e&&r.next()=="\\"}return"string"}}return{startState:function(){return{tokenize:[g],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(n,e){var r=e.tokenize[e.tokenize.length-1](n,e),u=n.current();return r&&r!="comment"&&(e.lastToken=u,e.lastStyle=r),r},indent:function(n,e){return e=e.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),N.test(e)||Z.test(e)?l.indentUnit*(n.currentIndent-1):l.indentUnit*n.currentIndent},fold:"indent",electricInput:i(I.concat(b),!0),lineComment:"#"}}),f.defineMIME("text/x-crystal","crystal")})})();var A=B.exports;const C=L(A),Q=U({__proto__:null,default:C},[A]);export{Q as c}; diff --git a/dist-ui/assets/css-B4l1-bAT.js b/dist-ui/assets/css-DjQyQoVX.js similarity index 99% rename from dist-ui/assets/css-B4l1-bAT.js rename to dist-ui/assets/css-DjQyQoVX.js index 2a477e96..e36206bf 100644 --- a/dist-ui/assets/css-B4l1-bAT.js +++ b/dist-ui/assets/css-DjQyQoVX.js @@ -1 +1 @@ -import{g as de,c as ue}from"./index-CFELAGmQ.js";function pe(x,O){for(var u=0;ud[g]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var me={exports:{}};(function(x,O){(function(u){u(ue)})(function(u){u.defineMode("css",function(t,i){var f=i.inline;i.propertyKeywords||(i=u.resolveMode("text/css"));var w=t.indentUnit,L=i.tokenHooks,ee=i.documentTypes||{},re=i.mediaTypes||{},oe=i.mediaFeatures||{},te=i.mediaValueKeywords||{},N=i.propertyKeywords||{},M=i.nonStandardPropertyKeywords||{},ie=i.fontProperties||{},ne=i.counterDescriptors||{},C=i.colorKeywords||{},I=i.valueKeywords||{},y=i.allowNested,ae=i.lineComment,le=i.supportsAtComponent===!0,X=t.highlightNonStandardPropertyKeywords!==!1,B,n;function c(e,o){return B=o,e}function se(e,o){var r=e.next();if(L[r]){var a=L[r](e,o);if(a!==!1)return a}if(r=="@")return e.eatWhile(/[\w\\\-]/),c("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return c(null,"compare");if(r=='"'||r=="'")return o.tokenize=Y(r),o.tokenize(e,o);if(r=="#")return e.eatWhile(/[\w\\\-]/),c("atom","hash");if(r=="!")return e.match(/^\s*\w*/),c("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),c("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),c("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?c("variable-2","variable-definition"):c("variable-2","variable");if(e.match(/^\w+-/))return c("meta","meta")}else return/[,+>*\/]/.test(r)?c(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?c("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?c(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(o.tokenize=ce),c("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),c("property","word")):c(null,null)}function Y(e){return function(o,r){for(var a=!1,p;(p=o.next())!=null;){if(p==e&&!a){e==")"&&o.backUp(1);break}a=!a&&p=="\\"}return(p==e||!a&&e!=")")&&(r.tokenize=null),c("string","string")}}function ce(e,o){return e.next(),e.match(/^\s*[\"\')]/,!1)?o.tokenize=null:o.tokenize=Y(")"),c(null,"(")}function U(e,o,r){this.type=e,this.indent=o,this.prev=r}function s(e,o,r,a){return e.context=new U(r,o.indentation()+(a===!1?0:w),e.context),r}function m(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function v(e,o,r){return l[r.context.type](e,o,r)}function b(e,o,r,a){for(var p=a||1;p>0;p--)r.context=r.context.prev;return v(e,o,r)}function Z(e){var o=e.current().toLowerCase();I.hasOwnProperty(o)?n="atom":C.hasOwnProperty(o)?n="keyword":n="variable"}var l={};return l.top=function(e,o,r){if(e=="{")return s(r,o,"block");if(e=="}"&&r.context.prev)return m(r);if(le&&/@component/i.test(e))return s(r,o,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,o,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,o,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return s(r,o,"at");if(e=="hash")n="builtin";else if(e=="word")n="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return s(r,o,"interpolation");if(e==":")return"pseudo";if(y&&e=="(")return s(r,o,"parens")}return r.context.type},l.block=function(e,o,r){if(e=="word"){var a=o.current().toLowerCase();return N.hasOwnProperty(a)?(n="property","maybeprop"):M.hasOwnProperty(a)?(n=X?"string-2":"property","maybeprop"):y?(n=o.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")}else return e=="meta"?"block":!y&&(e=="hash"||e=="qualifier")?(n="error","block"):l.top(e,o,r)},l.maybeprop=function(e,o,r){return e==":"?s(r,o,"prop"):v(e,o,r)},l.prop=function(e,o,r){if(e==";")return m(r);if(e=="{"&&y)return s(r,o,"propBlock");if(e=="}"||e=="{")return b(e,o,r);if(e=="(")return s(r,o,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o.current()))n+=" error";else if(e=="word")Z(o);else if(e=="interpolation")return s(r,o,"interpolation");return"prop"},l.propBlock=function(e,o,r){return e=="}"?m(r):e=="word"?(n="property","maybeprop"):r.context.type},l.parens=function(e,o,r){return e=="{"||e=="}"?b(e,o,r):e==")"?m(r):e=="("?s(r,o,"parens"):e=="interpolation"?s(r,o,"interpolation"):(e=="word"&&Z(o),"parens")},l.pseudo=function(e,o,r){return e=="meta"?"pseudo":e=="word"?(n="variable-3",r.context.type):v(e,o,r)},l.documentTypes=function(e,o,r){return e=="word"&&ee.hasOwnProperty(o.current())?(n="tag",r.context.type):l.atBlock(e,o,r)},l.atBlock=function(e,o,r){if(e=="(")return s(r,o,"atBlock_parens");if(e=="}"||e==";")return b(e,o,r);if(e=="{")return m(r)&&s(r,o,y?"block":"top");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word"){var a=o.current().toLowerCase();a=="only"||a=="not"||a=="and"||a=="or"?n="keyword":re.hasOwnProperty(a)?n="attribute":oe.hasOwnProperty(a)?n="property":te.hasOwnProperty(a)?n="keyword":N.hasOwnProperty(a)?n="property":M.hasOwnProperty(a)?n=X?"string-2":"property":I.hasOwnProperty(a)?n="atom":C.hasOwnProperty(a)?n="keyword":n="error"}return r.context.type},l.atComponentBlock=function(e,o,r){return e=="}"?b(e,o,r):e=="{"?m(r)&&s(r,o,y?"block":"top",!1):(e=="word"&&(n="error"),r.context.type)},l.atBlock_parens=function(e,o,r){return e==")"?m(r):e=="{"||e=="}"?b(e,o,r,2):l.atBlock(e,o,r)},l.restricted_atBlock_before=function(e,o,r){return e=="{"?s(r,o,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(n="variable","restricted_atBlock_before"):v(e,o,r)},l.restricted_atBlock=function(e,o,r){return e=="}"?(r.stateArg=null,m(r)):e=="word"?(r.stateArg=="@font-face"&&!ie.hasOwnProperty(o.current().toLowerCase())||r.stateArg=="@counter-style"&&!ne.hasOwnProperty(o.current().toLowerCase())?n="error":n="property","maybeprop"):"restricted_atBlock"},l.keyframes=function(e,o,r){return e=="word"?(n="variable","keyframes"):e=="{"?s(r,o,"top"):v(e,o,r)},l.at=function(e,o,r){return e==";"?m(r):e=="{"||e=="}"?b(e,o,r):(e=="word"?n="tag":e=="hash"&&(n="builtin"),"at")},l.interpolation=function(e,o,r){return e=="}"?m(r):e=="{"||e==";"?b(e,o,r):(e=="word"?n="variable":e!="variable"&&e!="("&&e!=")"&&(n="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:f?"block":"top",stateArg:null,context:new U(f?"block":"top",e||0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var r=(o.tokenize||se)(e,o);return r&&typeof r=="object"&&(B=r[1],r=r[0]),n=r,B!="comment"&&(o.state=l[o.state](B,e,o)),n},indent:function(e,o){var r=e.context,a=o&&o.charAt(0),p=r.indent;return r.type=="prop"&&(a=="}"||a==")")&&(r=r.prev),r.prev&&(a=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,p=r.indent):(a==")"&&(r.type=="parens"||r.type=="atBlock_parens")||a=="{"&&(r.type=="at"||r.type=="atBlock"))&&(p=Math.max(0,r.indent-w))),p},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ae,fold:"brace"}});function d(t){for(var i={},f=0;fd[g]})}}}return Object.freeze(Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}))}var me={exports:{}};(function(x,O){(function(u){u(ue)})(function(u){u.defineMode("css",function(t,i){var f=i.inline;i.propertyKeywords||(i=u.resolveMode("text/css"));var w=t.indentUnit,L=i.tokenHooks,ee=i.documentTypes||{},re=i.mediaTypes||{},oe=i.mediaFeatures||{},te=i.mediaValueKeywords||{},N=i.propertyKeywords||{},M=i.nonStandardPropertyKeywords||{},ie=i.fontProperties||{},ne=i.counterDescriptors||{},C=i.colorKeywords||{},I=i.valueKeywords||{},y=i.allowNested,ae=i.lineComment,le=i.supportsAtComponent===!0,X=t.highlightNonStandardPropertyKeywords!==!1,B,n;function c(e,o){return B=o,e}function se(e,o){var r=e.next();if(L[r]){var a=L[r](e,o);if(a!==!1)return a}if(r=="@")return e.eatWhile(/[\w\\\-]/),c("def",e.current());if(r=="="||(r=="~"||r=="|")&&e.eat("="))return c(null,"compare");if(r=='"'||r=="'")return o.tokenize=Y(r),o.tokenize(e,o);if(r=="#")return e.eatWhile(/[\w\\\-]/),c("atom","hash");if(r=="!")return e.match(/^\s*\w*/),c("keyword","important");if(/\d/.test(r)||r=="."&&e.eat(/\d/))return e.eatWhile(/[\w.%]/),c("number","unit");if(r==="-"){if(/[\d.]/.test(e.peek()))return e.eatWhile(/[\w.%]/),c("number","unit");if(e.match(/^-[\w\\\-]*/))return e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?c("variable-2","variable-definition"):c("variable-2","variable");if(e.match(/^\w+-/))return c("meta","meta")}else return/[,+>*\/]/.test(r)?c(null,"select-op"):r=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?c("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?c(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(o.tokenize=ce),c("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),c("property","word")):c(null,null)}function Y(e){return function(o,r){for(var a=!1,p;(p=o.next())!=null;){if(p==e&&!a){e==")"&&o.backUp(1);break}a=!a&&p=="\\"}return(p==e||!a&&e!=")")&&(r.tokenize=null),c("string","string")}}function ce(e,o){return e.next(),e.match(/^\s*[\"\')]/,!1)?o.tokenize=null:o.tokenize=Y(")"),c(null,"(")}function U(e,o,r){this.type=e,this.indent=o,this.prev=r}function s(e,o,r,a){return e.context=new U(r,o.indentation()+(a===!1?0:w),e.context),r}function m(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function v(e,o,r){return l[r.context.type](e,o,r)}function b(e,o,r,a){for(var p=a||1;p>0;p--)r.context=r.context.prev;return v(e,o,r)}function Z(e){var o=e.current().toLowerCase();I.hasOwnProperty(o)?n="atom":C.hasOwnProperty(o)?n="keyword":n="variable"}var l={};return l.top=function(e,o,r){if(e=="{")return s(r,o,"block");if(e=="}"&&r.context.prev)return m(r);if(le&&/@component/i.test(e))return s(r,o,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return s(r,o,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return s(r,o,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&e.charAt(0)=="@")return s(r,o,"at");if(e=="hash")n="builtin";else if(e=="word")n="tag";else{if(e=="variable-definition")return"maybeprop";if(e=="interpolation")return s(r,o,"interpolation");if(e==":")return"pseudo";if(y&&e=="(")return s(r,o,"parens")}return r.context.type},l.block=function(e,o,r){if(e=="word"){var a=o.current().toLowerCase();return N.hasOwnProperty(a)?(n="property","maybeprop"):M.hasOwnProperty(a)?(n=X?"string-2":"property","maybeprop"):y?(n=o.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n+=" error","maybeprop")}else return e=="meta"?"block":!y&&(e=="hash"||e=="qualifier")?(n="error","block"):l.top(e,o,r)},l.maybeprop=function(e,o,r){return e==":"?s(r,o,"prop"):v(e,o,r)},l.prop=function(e,o,r){if(e==";")return m(r);if(e=="{"&&y)return s(r,o,"propBlock");if(e=="}"||e=="{")return b(e,o,r);if(e=="(")return s(r,o,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(o.current()))n+=" error";else if(e=="word")Z(o);else if(e=="interpolation")return s(r,o,"interpolation");return"prop"},l.propBlock=function(e,o,r){return e=="}"?m(r):e=="word"?(n="property","maybeprop"):r.context.type},l.parens=function(e,o,r){return e=="{"||e=="}"?b(e,o,r):e==")"?m(r):e=="("?s(r,o,"parens"):e=="interpolation"?s(r,o,"interpolation"):(e=="word"&&Z(o),"parens")},l.pseudo=function(e,o,r){return e=="meta"?"pseudo":e=="word"?(n="variable-3",r.context.type):v(e,o,r)},l.documentTypes=function(e,o,r){return e=="word"&&ee.hasOwnProperty(o.current())?(n="tag",r.context.type):l.atBlock(e,o,r)},l.atBlock=function(e,o,r){if(e=="(")return s(r,o,"atBlock_parens");if(e=="}"||e==";")return b(e,o,r);if(e=="{")return m(r)&&s(r,o,y?"block":"top");if(e=="interpolation")return s(r,o,"interpolation");if(e=="word"){var a=o.current().toLowerCase();a=="only"||a=="not"||a=="and"||a=="or"?n="keyword":re.hasOwnProperty(a)?n="attribute":oe.hasOwnProperty(a)?n="property":te.hasOwnProperty(a)?n="keyword":N.hasOwnProperty(a)?n="property":M.hasOwnProperty(a)?n=X?"string-2":"property":I.hasOwnProperty(a)?n="atom":C.hasOwnProperty(a)?n="keyword":n="error"}return r.context.type},l.atComponentBlock=function(e,o,r){return e=="}"?b(e,o,r):e=="{"?m(r)&&s(r,o,y?"block":"top",!1):(e=="word"&&(n="error"),r.context.type)},l.atBlock_parens=function(e,o,r){return e==")"?m(r):e=="{"||e=="}"?b(e,o,r,2):l.atBlock(e,o,r)},l.restricted_atBlock_before=function(e,o,r){return e=="{"?s(r,o,"restricted_atBlock"):e=="word"&&r.stateArg=="@counter-style"?(n="variable","restricted_atBlock_before"):v(e,o,r)},l.restricted_atBlock=function(e,o,r){return e=="}"?(r.stateArg=null,m(r)):e=="word"?(r.stateArg=="@font-face"&&!ie.hasOwnProperty(o.current().toLowerCase())||r.stateArg=="@counter-style"&&!ne.hasOwnProperty(o.current().toLowerCase())?n="error":n="property","maybeprop"):"restricted_atBlock"},l.keyframes=function(e,o,r){return e=="word"?(n="variable","keyframes"):e=="{"?s(r,o,"top"):v(e,o,r)},l.at=function(e,o,r){return e==";"?m(r):e=="{"||e=="}"?b(e,o,r):(e=="word"?n="tag":e=="hash"&&(n="builtin"),"at")},l.interpolation=function(e,o,r){return e=="}"?m(r):e=="{"||e==";"?b(e,o,r):(e=="word"?n="variable":e!="variable"&&e!="("&&e!=")"&&(n="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:f?"block":"top",stateArg:null,context:new U(f?"block":"top",e||0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var r=(o.tokenize||se)(e,o);return r&&typeof r=="object"&&(B=r[1],r=r[0]),n=r,B!="comment"&&(o.state=l[o.state](B,e,o)),n},indent:function(e,o){var r=e.context,a=o&&o.charAt(0),p=r.indent;return r.type=="prop"&&(a=="}"||a==")")&&(r=r.prev),r.prev&&(a=="}"&&(r.type=="block"||r.type=="top"||r.type=="interpolation"||r.type=="restricted_atBlock")?(r=r.prev,p=r.indent):(a==")"&&(r.type=="parens"||r.type=="atBlock_parens")||a=="{"&&(r.type=="at"||r.type=="atBlock"))&&(p=Math.max(0,r.indent-w))),p},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ae,fold:"brace"}});function d(t){for(var i={},f=0;fl[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(u,d){(function(c){c(k)})(function(c){var l=function(r){return new RegExp("^(?:"+r.join("|")+")$","i")};c.defineMode("cypher",function(r){var i=function(n){s=null;var e=n.next();if(e==='"')return n.match(/^[^"]*"/),"string";if(e==="'")return n.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(e))return s=e,"node";if(e==="/"&&n.eat("/"))return n.skipToEnd(),"comment";if(f.test(e))return n.eatWhile(f),null;if(n.eatWhile(/[_\w\d]/),n.eat(":"))return n.eatWhile(/[\w\d_\-]/),"atom";var t=n.current();return y.test(t)?"builtin":v.test(t)?"def":m.test(t)||b.test(t)?"keyword":"variable"},a=function(n,e,t){return n.context={prev:n.context,indent:n.indent,col:t,type:e}},p=function(n){return n.indent=n.context.indent,n.context=n.context.prev},g=r.indentUnit,s,y=l(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),v=l(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),m=l(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),b=l(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),s==="(")a(e,")",n.column());else if(s==="[")a(e,"]",n.column());else if(s==="{")a(e,"}",n.column());else if(/[\]\}\)]/.test(s)){for(;e.context&&e.context.type==="pattern";)p(e);e.context&&s===e.context.type&&p(e)}else s==="."&&e.context&&e.context.type==="pattern"?p(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?a(e,"pattern",n.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),o=n.context;if(/[\]\}]/.test(t))for(;o&&o.type==="pattern";)o=o.prev;var h=o&&t===o.type;return o?o.type==="keywords"?c.commands.newlineAndIndent:o.align?o.col+(h?0:1):o.indent+(h?0:g):0}}}),c.modeExtensions.cypher={autoFormatLineBreaks:function(r){for(var i,a,p,a=r.split("\n"),p=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,i=0;il[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(u,d){(function(c){c(k)})(function(c){var l=function(r){return new RegExp("^(?:"+r.join("|")+")$","i")};c.defineMode("cypher",function(r){var i=function(n){s=null;var e=n.next();if(e==='"')return n.match(/^[^"]*"/),"string";if(e==="'")return n.match(/^[^']*'/),"string";if(/[{}\(\),\.;\[\]]/.test(e))return s=e,"node";if(e==="/"&&n.eat("/"))return n.skipToEnd(),"comment";if(f.test(e))return n.eatWhile(f),null;if(n.eatWhile(/[_\w\d]/),n.eat(":"))return n.eatWhile(/[\w\d_\-]/),"atom";var t=n.current();return y.test(t)?"builtin":v.test(t)?"def":m.test(t)||b.test(t)?"keyword":"variable"},a=function(n,e,t){return n.context={prev:n.context,indent:n.indent,col:t,type:e}},p=function(n){return n.indent=n.context.indent,n.context=n.context.prev},g=r.indentUnit,s,y=l(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),v=l(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),m=l(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),b=l(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),f=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:i,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!=="comment"&&e.context&&e.context.align==null&&e.context.type!=="pattern"&&(e.context.align=!0),s==="(")a(e,")",n.column());else if(s==="[")a(e,"]",n.column());else if(s==="{")a(e,"}",n.column());else if(/[\]\}\)]/.test(s)){for(;e.context&&e.context.type==="pattern";)p(e);e.context&&s===e.context.type&&p(e)}else s==="."&&e.context&&e.context.type==="pattern"?p(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?a(e,"pattern",n.column()):e.context.type==="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),o=n.context;if(/[\]\}]/.test(t))for(;o&&o.type==="pattern";)o=o.prev;var h=o&&t===o.type;return o?o.type==="keywords"?c.commands.newlineAndIndent:o.align?o.col+(h?0:1):o.indent+(h?0:g):0}}}),c.modeExtensions.cypher={autoFormatLineBreaks:function(r){for(var i,a,p,a=r.split("\n"),p=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,i=0;iu[f]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var U={exports:{}};(function(m,h){(function(c){c(P)})(function(c){c.defineMode("d",function(a,l){var d=a.indentUnit,s=l.statementIndentUnit||d,I=l.keywords||{},O=l.builtin||{},b=l.blockKeywords||{},S=l.atoms||{},k=l.hooks||{},L=l.multiLineStrings,x=/[+\-*&%=<>!?|\/]/,i;function v(e,n){var t=e.next();if(k[t]){var r=k[t](e,n);if(r!==!1)return r}if(t=='"'||t=="'"||t=="`")return n.tokenize=j(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"){if(e.eat("+"))return n.tokenize=_,_(e,n);if(e.eat("*"))return n.tokenize=w,w(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(t))return e.eatWhile(x),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return I.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"keyword"):O.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"builtin"):S.propertyIsEnumerable(o)?"atom":"variable"}function j(e){return function(n,t){for(var r=!1,o,z=!1;(o=n.next())!=null;){if(o==e&&!r){z=!0;break}r=!r&&o=="\\"}return(z||!(r||L))&&(t.tokenize=null),"string"}}function w(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="*"}return"comment"}function _(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="+"}return"comment"}function g(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}function y(e,n,t){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new g(r,n,t,null,e.context)}function p(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-d,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;i=null;var r=(n.tokenize||v)(e,n);if(r=="comment"||r=="meta")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":"||i==",")&&t.type=="statement")p(n);else if(i=="{")y(n,e.column(),"}");else if(i=="[")y(n,e.column(),"]");else if(i=="(")y(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=p(n);for(t.type=="}"&&(t=p(n));t.type=="statement";)t=p(n)}else i==t.type?p(n):((t.type=="}"||t.type=="top")&&i!=";"||t.type=="statement"&&i=="newstatement")&&y(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=v&&e.tokenize!=null)return c.Pass;var t=e.context,r=n&&n.charAt(0);t.type=="statement"&&r=="}"&&(t=t.prev);var o=r==t.type;return t.type=="statement"?t.indented+(r=="{"?0:s):t.align?t.column+(o?0:1):t.indented+(o?0:d)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function u(a){for(var l={},d=a.split(" "),s=0;su[f]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var U={exports:{}};(function(m,h){(function(c){c(P)})(function(c){c.defineMode("d",function(a,l){var d=a.indentUnit,s=l.statementIndentUnit||d,I=l.keywords||{},O=l.builtin||{},b=l.blockKeywords||{},S=l.atoms||{},k=l.hooks||{},L=l.multiLineStrings,x=/[+\-*&%=<>!?|\/]/,i;function v(e,n){var t=e.next();if(k[t]){var r=k[t](e,n);if(r!==!1)return r}if(t=='"'||t=="'"||t=="`")return n.tokenize=j(t),n.tokenize(e,n);if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(t=="/"){if(e.eat("+"))return n.tokenize=_,_(e,n);if(e.eat("*"))return n.tokenize=w,w(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(t))return e.eatWhile(x),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return I.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"keyword"):O.propertyIsEnumerable(o)?(b.propertyIsEnumerable(o)&&(i="newstatement"),"builtin"):S.propertyIsEnumerable(o)?"atom":"variable"}function j(e){return function(n,t){for(var r=!1,o,z=!1;(o=n.next())!=null;){if(o==e&&!r){z=!0;break}r=!r&&o=="\\"}return(z||!(r||L))&&(t.tokenize=null),"string"}}function w(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="*"}return"comment"}function _(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=null;break}t=r=="+"}return"comment"}function g(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}function y(e,n,t){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new g(r,n,t,null,e.context)}function p(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new g((e||0)-d,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;i=null;var r=(n.tokenize||v)(e,n);if(r=="comment"||r=="meta")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":"||i==",")&&t.type=="statement")p(n);else if(i=="{")y(n,e.column(),"}");else if(i=="[")y(n,e.column(),"]");else if(i=="(")y(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=p(n);for(t.type=="}"&&(t=p(n));t.type=="statement";)t=p(n)}else i==t.type?p(n):((t.type=="}"||t.type=="top")&&i!=";"||t.type=="statement"&&i=="newstatement")&&y(n,e.column(),"statement");return n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=v&&e.tokenize!=null)return c.Pass;var t=e.context,r=n&&n.charAt(0);t.type=="statement"&&r=="}"&&(t=t.prev);var o=r==t.type;return t.type=="statement"?t.indented+(r=="{"?0:s):t.align?t.column+(o?0:1):t.indented+(o?0:d)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function u(a){for(var l={},d=a.split(" "),s=0;si[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(c,s){(function(r){r(I,j)})(function(r){var i="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when".split(" "),a="try catch finally do else for if switch while".split(" "),l="true false null".split(" "),v="void bool num int double dynamic var String Null Never".split(" ");function u(e){for(var n={},t=0;t0?(n.tokenize=g(n),null):!1},"/":function(e,n){return e.eat("*")?(n.tokenize=d(1),n.tokenize(e,n)):!1},token:function(e,n,t){if(t=="variable"){var o=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(o.test(e.current()))return"variable-2"}}}});function k(e,n,t,o){var b=!1;if(n.eat(e))if(n.eat(e))b=!0;else return"string";function y(f,h){for(var p=!1;!f.eol();){if(!o&&!p&&f.peek()=="$")return x(h),h.tokenize=S,"string";var w=f.next();if(w==e&&!p&&(!b||f.match(e+e))){h.tokenize=null;break}p=!o&&!p&&w=="\\"}return"string"}return t.tokenize=y,y(n,t)}function S(e,n){return e.eat("$"),e.eat("{")?n.tokenize=null:n.tokenize=_,null}function _(e,n){return e.eatWhile(/[\w_]/),n.tokenize=g(n),"variable"}function d(e){return function(n,t){for(var o;o=n.next();)if(o=="*"&&n.eat("/"))if(e==1){t.tokenize=null;break}else return t.tokenize=d(e-1),t.tokenize(n,t);else if(o=="/"&&n.eat("*"))return t.tokenize=d(e+1),t.tokenize(n,t);return"comment"}}r.registerHelper("hintWords","application/dart",i.concat(l).concat(v)),r.defineMode("dart",function(e){return r.getMode(e,"application/dart")},"clike")})})();var z=O.exports;const A=$(z),W=E({__proto__:null,default:A},[z]);export{W as d}; +import{g as $,c as I}from"./index-F8NPuhC5.js";import{a as j}from"./clike-sVYb-QDY.js";function E(c,s){for(var r=0;ri[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(c,s){(function(r){r(I,j)})(function(r){var i="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when".split(" "),a="try catch finally do else for if switch while".split(" "),l="true false null".split(" "),v="void bool num int double dynamic var String Null Never".split(" ");function u(e){for(var n={},t=0;t0?(n.tokenize=g(n),null):!1},"/":function(e,n){return e.eat("*")?(n.tokenize=d(1),n.tokenize(e,n)):!1},token:function(e,n,t){if(t=="variable"){var o=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(o.test(e.current()))return"variable-2"}}}});function k(e,n,t,o){var b=!1;if(n.eat(e))if(n.eat(e))b=!0;else return"string";function y(f,h){for(var p=!1;!f.eol();){if(!o&&!p&&f.peek()=="$")return x(h),h.tokenize=S,"string";var w=f.next();if(w==e&&!p&&(!b||f.match(e+e))){h.tokenize=null;break}p=!o&&!p&&w=="\\"}return"string"}return t.tokenize=y,y(n,t)}function S(e,n){return e.eat("$"),e.eat("{")?n.tokenize=null:n.tokenize=_,null}function _(e,n){return e.eatWhile(/[\w_]/),n.tokenize=g(n),"variable"}function d(e){return function(n,t){for(var o;o=n.next();)if(o=="*"&&n.eat("/"))if(e==1){t.tokenize=null;break}else return t.tokenize=d(e-1),t.tokenize(n,t);else if(o=="/"&&n.eat("*"))return t.tokenize=d(e+1),t.tokenize(n,t);return"comment"}}r.registerHelper("hintWords","application/dart",i.concat(l).concat(v)),r.defineMode("dart",function(e){return r.getMode(e,"application/dart")},"clike")})})();var z=O.exports;const A=$(z),W=E({__proto__:null,default:A},[z]);export{W as d}; diff --git a/dist-ui/assets/diff-CqXLXcio.js b/dist-ui/assets/diff-BK1zMhyk.js similarity index 92% rename from dist-ui/assets/diff-CqXLXcio.js rename to dist-ui/assets/diff-BK1zMhyk.js index 11233dfe..54a0550e 100644 --- a/dist-ui/assets/diff-CqXLXcio.js +++ b/dist-ui/assets/diff-BK1zMhyk.js @@ -1 +1 @@ -import{g as s,c}from"./index-CFELAGmQ.js";function d(n,f){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(n,f){(function(t){t(c)})(function(t){t.defineMode("diff",function(){var r={"+":"positive","-":"negative","@":"meta"};return{token:function(e){var o=e.string.search(/[\t ]+?$/);if(!e.sol()||o===0)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var p=r[e.peek()]||e.skipToEnd();return o===-1?e.skipToEnd():e.pos=o,p}}}),t.defineMIME("text/x-diff","diff")})})();var i=u.exports;const a=s(i),g=d({__proto__:null,default:a},[i]);export{g as d}; +import{g as s,c}from"./index-F8NPuhC5.js";function d(n,f){for(var t=0;tr[e]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(n,f){(function(t){t(c)})(function(t){t.defineMode("diff",function(){var r={"+":"positive","-":"negative","@":"meta"};return{token:function(e){var o=e.string.search(/[\t ]+?$/);if(!e.sol()||o===0)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var p=r[e.peek()]||e.skipToEnd();return o===-1?e.skipToEnd():e.pos=o,p}}}),t.defineMIME("text/x-diff","diff")})})();var i=u.exports;const a=s(i),g=d({__proto__:null,default:a},[i]);export{g as d}; diff --git a/dist-ui/assets/django-Dp5JQfVx.js b/dist-ui/assets/django-zZkj-Hqi.js similarity index 97% rename from dist-ui/assets/django-Dp5JQfVx.js rename to dist-ui/assets/django-zZkj-Hqi.js index fbdb6892..1f0722e0 100644 --- a/dist-ui/assets/django-Dp5JQfVx.js +++ b/dist-ui/assets/django-zZkj-Hqi.js @@ -1 +1 @@ -import{g as s,c as y}from"./index-CFELAGmQ.js";import{r as x}from"./htmlmixed-D5WYNkec.js";import{r as z}from"./overlay-0t06YMiN.js";function j(f,p){for(var n=0;ni[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(f,p){(function(n){n(y,x(),z())})(function(n){n.defineMode("django:inner",function(){var i=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],o=["==","!=","<",">","<=",">="],d=["in","not","or","and"];i=new RegExp("^\\b("+i.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),o=new RegExp("^\\b("+o.join("|")+")\\b"),d=new RegExp("^\\b("+d.join("|")+")\\b");function a(r,e){if(r.match("{{"))return e.tokenize=g,"tag";if(r.match("{%"))return e.tokenize=w,"tag";if(r.match("{#"))return e.tokenize=h,"comment";for(;r.next()!=null&&!r.match(/\{[{%#]/,!1););return null}function c(r,e){return function(l,u){if(!u.escapeNext&&l.eat(r))u.tokenize=e;else{u.escapeNext&&(u.escapeNext=!1);var k=l.next();k=="\\"&&(u.escapeNext=!0)}return"string"}}function g(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/))?(e.waitDot=!0,e.waitPipe=!0,"property"):e.waitFilter&&(e.waitFilter=!1,r.match(t))?"variable-2":r.eatSpace()?(e.waitProperty=!1,"null"):r.match(/\b\d+(\.\d+)?\b/)?"number":r.match("'")?(e.tokenize=c("'",e.tokenize),"string"):r.match('"')?(e.tokenize=c('"',e.tokenize),"string"):r.match(/\b(\w+)\b/)&&!e.foundVariable?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("}}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.tokenize=a,"tag"):(r.next(),"null")}function w(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/)))return e.waitDot=!0,e.waitPipe=!0,"property";if(e.waitFilter&&(e.waitFilter=!1,r.match(t)))return"variable-2";if(r.eatSpace())return e.waitProperty=!1,"null";if(r.match(/\b\d+(\.\d+)?\b/))return"number";if(r.match("'"))return e.tokenize=c("'",e.tokenize),"string";if(r.match('"'))return e.tokenize=c('"',e.tokenize),"string";if(r.match(o))return"operator";if(r.match(d))return"keyword";var l=r.match(i);return l?(l[0]=="comment"&&(e.blockCommentTag=!0),"keyword"):r.match(/\b(\w+)\b/)?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("%}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.blockCommentTag?(e.blockCommentTag=!1,e.tokenize=b):e.tokenize=a,"tag"):(r.next(),"null")}function h(r,e){return r.match(/^.*?#\}/)?e.tokenize=a:r.skipToEnd(),"comment"}function b(r,e){return r.match(/\{%\s*endcomment\s*%\}/,!1)?(e.tokenize=w,r.match("{%"),"tag"):(r.next(),"comment")}return{startState:function(){return{tokenize:a}},token:function(r,e){return e.tokenize(r,e)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}}),n.defineMode("django",function(i){var t=n.getMode(i,"text/html"),o=n.getMode(i,"django:inner");return n.overlayMode(t,o)}),n.defineMIME("text/x-django","django")})})();var m=P.exports;const v=s(m),F=j({__proto__:null,default:v},[m]);export{F as d}; +import{g as s,c as y}from"./index-F8NPuhC5.js";import{r as x}from"./htmlmixed-B3bg9pWJ.js";import{r as z}from"./overlay-DMs7bKVk.js";function j(f,p){for(var n=0;ni[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(f,p){(function(n){n(y,x(),z())})(function(n){n.defineMode("django:inner",function(){var i=["block","endblock","for","endfor","true","false","filter","endfilter","loop","none","self","super","if","elif","endif","as","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","comment","endcomment","empty","url","static","trans","blocktrans","endblocktrans","now","regroup","lorem","ifchanged","endifchanged","firstof","debug","cycle","csrf_token","autoescape","endautoescape","spaceless","endspaceless","ssi","templatetag","verbatim","endverbatim","widthratio"],t=["add","addslashes","capfirst","center","cut","date","default","default_if_none","dictsort","dictsortreversed","divisibleby","escape","escapejs","filesizeformat","first","floatformat","force_escape","get_digit","iriencode","join","last","length","length_is","linebreaks","linebreaksbr","linenumbers","ljust","lower","make_list","phone2numeric","pluralize","pprint","random","removetags","rjust","safe","safeseq","slice","slugify","stringformat","striptags","time","timesince","timeuntil","title","truncatechars","truncatechars_html","truncatewords","truncatewords_html","unordered_list","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap","yesno"],o=["==","!=","<",">","<=",">="],d=["in","not","or","and"];i=new RegExp("^\\b("+i.join("|")+")\\b"),t=new RegExp("^\\b("+t.join("|")+")\\b"),o=new RegExp("^\\b("+o.join("|")+")\\b"),d=new RegExp("^\\b("+d.join("|")+")\\b");function a(r,e){if(r.match("{{"))return e.tokenize=g,"tag";if(r.match("{%"))return e.tokenize=w,"tag";if(r.match("{#"))return e.tokenize=h,"comment";for(;r.next()!=null&&!r.match(/\{[{%#]/,!1););return null}function c(r,e){return function(l,u){if(!u.escapeNext&&l.eat(r))u.tokenize=e;else{u.escapeNext&&(u.escapeNext=!1);var k=l.next();k=="\\"&&(u.escapeNext=!0)}return"string"}}function g(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}return e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/))?(e.waitDot=!0,e.waitPipe=!0,"property"):e.waitFilter&&(e.waitFilter=!1,r.match(t))?"variable-2":r.eatSpace()?(e.waitProperty=!1,"null"):r.match(/\b\d+(\.\d+)?\b/)?"number":r.match("'")?(e.tokenize=c("'",e.tokenize),"string"):r.match('"')?(e.tokenize=c('"',e.tokenize),"string"):r.match(/\b(\w+)\b/)&&!e.foundVariable?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("}}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.tokenize=a,"tag"):(r.next(),"null")}function w(r,e){if(e.waitDot){if(e.waitDot=!1,r.peek()!=".")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("."))return e.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.")}if(e.waitPipe){if(e.waitPipe=!1,r.peek()!="|")return"null";if(r.match(/\.\W+/))return"error";if(r.eat("|"))return e.waitFilter=!0,"null";throw Error("Unexpected error while waiting for filter.")}if(e.waitProperty&&(e.waitProperty=!1,r.match(/\b(\w+)\b/)))return e.waitDot=!0,e.waitPipe=!0,"property";if(e.waitFilter&&(e.waitFilter=!1,r.match(t)))return"variable-2";if(r.eatSpace())return e.waitProperty=!1,"null";if(r.match(/\b\d+(\.\d+)?\b/))return"number";if(r.match("'"))return e.tokenize=c("'",e.tokenize),"string";if(r.match('"'))return e.tokenize=c('"',e.tokenize),"string";if(r.match(o))return"operator";if(r.match(d))return"keyword";var l=r.match(i);return l?(l[0]=="comment"&&(e.blockCommentTag=!0),"keyword"):r.match(/\b(\w+)\b/)?(e.waitDot=!0,e.waitPipe=!0,"variable"):r.match("%}")?(e.waitProperty=null,e.waitFilter=null,e.waitDot=null,e.waitPipe=null,e.blockCommentTag?(e.blockCommentTag=!1,e.tokenize=b):e.tokenize=a,"tag"):(r.next(),"null")}function h(r,e){return r.match(/^.*?#\}/)?e.tokenize=a:r.skipToEnd(),"comment"}function b(r,e){return r.match(/\{%\s*endcomment\s*%\}/,!1)?(e.tokenize=w,r.match("{%"),"tag"):(r.next(),"comment")}return{startState:function(){return{tokenize:a}},token:function(r,e){return e.tokenize(r,e)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}}),n.defineMode("django",function(i){var t=n.getMode(i,"text/html"),o=n.getMode(i,"django:inner");return n.overlayMode(t,o)}),n.defineMIME("text/x-django","django")})})();var m=P.exports;const v=s(m),F=j({__proto__:null,default:v},[m]);export{F as d}; diff --git a/dist-ui/assets/dockerfile-Dvpg_F3g.js b/dist-ui/assets/dockerfile-C1rxoPFN.js similarity index 97% rename from dist-ui/assets/dockerfile-Dvpg_F3g.js rename to dist-ui/assets/dockerfile-C1rxoPFN.js index ec0f8be2..38226175 100644 --- a/dist-ui/assets/dockerfile-Dvpg_F3g.js +++ b/dist-ui/assets/dockerfile-C1rxoPFN.js @@ -1 +1 @@ -import{g as d,c as f,b as m}from"./index-CFELAGmQ.js";function y(o,s){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(o,s){(function(e){e(f,m())})(function(e){var t="from",r=new RegExp("^(\\s*)\\b("+t+")\\b","i"),n=["run","cmd","entrypoint","shell"],u=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),l="expose",i=new RegExp("^(\\s*)("+l+")(\\s+)","i"),a=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],k=[t,l].concat(n).concat(a),x="("+k.join("|")+")",c=new RegExp("^(\\s*)"+x+"(\\s*)(#.*)?$","i"),p=new RegExp("^(\\s*)"+x+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:r,token:[null,"keyword"],sol:!0,next:"from"},{regex:c,token:[null,"keyword",null,"error"],sol:!0},{regex:u,token:[null,"keyword",null],sol:!0,next:"array"},{regex:i,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:p,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")})})();var g=b.exports;const v=d(g),$=y({__proto__:null,default:v},[g]);export{$ as d}; +import{g as d,c as f,b as m}from"./index-F8NPuhC5.js";function y(o,s){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(o,s){(function(e){e(f,m())})(function(e){var t="from",r=new RegExp("^(\\s*)\\b("+t+")\\b","i"),n=["run","cmd","entrypoint","shell"],u=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),l="expose",i=new RegExp("^(\\s*)("+l+")(\\s+)","i"),a=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],k=[t,l].concat(n).concat(a),x="("+k.join("|")+")",c=new RegExp("^(\\s*)"+x+"(\\s*)(#.*)?$","i"),p=new RegExp("^(\\s*)"+x+"(\\s+)","i");e.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:r,token:[null,"keyword"],sol:!0,next:"from"},{regex:c,token:[null,"keyword",null,"error"],sol:!0},{regex:u,token:[null,"keyword",null],sol:!0,next:"array"},{regex:i,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:p,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),e.defineMIME("text/x-dockerfile","dockerfile")})})();var g=b.exports;const v=d(g),$=y({__proto__:null,default:v},[g]);export{$ as d}; diff --git a/dist-ui/assets/dtd-CVkG5wRq.js b/dist-ui/assets/dtd-DbN8nk9s.js similarity index 97% rename from dist-ui/assets/dtd-CVkG5wRq.js rename to dist-ui/assets/dtd-DbN8nk9s.js index 34031888..dac47b54 100644 --- a/dist-ui/assets/dtd-CVkG5wRq.js +++ b/dist-ui/assets/dtd-DbN8nk9s.js @@ -1 +1 @@ -import{g as b,c as v}from"./index-CFELAGmQ.js";function y(f,d){for(var o=0;ou[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,d){(function(o){o(v)})(function(o){o.defineMode("dtd",function(u){var c=u.indentUnit,r;function l(i,e){return r=e,i}function a(i,e){var n=i.next();if(n=="<"&&i.eat("!")){if(i.eatWhile(/[\-]/))return e.tokenize=k,k(i,e);if(i.eatWhile(/[\w]/))return l("keyword","doindent")}else{if(n=="<"&&i.eat("?"))return e.tokenize=p("meta","?>"),l("meta",n);if(n=="#"&&i.eatWhile(/[\w]/))return l("atom","tag");if(n=="|")return l("keyword","separator");if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return l(null,n);if(n.match(/[\[\]]/))return l("rule",n);if(n=='"'||n=="'")return e.tokenize=h(n),e.tokenize(i,e);if(i.eatWhile(/[a-zA-Z\?\+\d]/)){var t=i.current();return t.substr(t.length-1,t.length).match(/\?|\+/)!==null&&i.backUp(1),l("tag","tag")}else return n=="%"||n=="*"?l("number","number"):(i.eatWhile(/[\w\\\-_%.{,]/),l(null,null))}}function k(i,e){for(var n=0,t;(t=i.next())!=null;){if(n>=2&&t==">"){e.tokenize=a;break}n=t=="-"?n+1:0}return l("comment","comment")}function h(i){return function(e,n){for(var t=!1,s;(s=e.next())!=null;){if(s==i&&!t){n.tokenize=a;break}t=!t&&s=="\\"}return l("string","tag")}}function p(i,e){return function(n,t){for(;!n.eol();){if(n.match(e)){t.tokenize=a;break}n.next()}return i}}return{startState:function(i){return{tokenize:a,baseIndent:i||0,stack:[]}},token:function(i,e){if(i.eatSpace())return null;var n=e.tokenize(i,e),t=e.stack[e.stack.length-1];return i.current()=="["||r==="doindent"||r=="["?e.stack.push("rule"):r==="endtag"?e.stack[e.stack.length-1]="endtag":i.current()=="]"||r=="]"||r==">"&&t=="rule"?e.stack.pop():r=="["&&e.stack.push("["),n},indent:function(i,e){var n=i.stack.length;return e.charAt(0)==="]"?n--:e.substr(e.length-1,e.length)===">"&&(e.substr(0,1)==="<"||r=="doindent"&&e.length>1||(r=="doindent"?n--:r==">"&&e.length>1||r=="tag"&&e!==">"||(r=="tag"&&i.stack[i.stack.length-1]=="rule"?n--:r=="tag"?n++:e===">"&&i.stack[i.stack.length-1]=="rule"&&r===">"?n--:e===">"&&i.stack[i.stack.length-1]=="rule"||(e.substr(0,1)!=="<"&&e.substr(0,1)===">"?n=n-1:e===">"||(n=n-1)))),(r==null||r=="]")&&n--),i.baseIndent+n*c},electricChars:"]>"}}),o.defineMIME("application/xml-dtd","dtd")})})();var g=z.exports;const w=b(g),S=y({__proto__:null,default:w},[g]);export{S as d}; +import{g as b,c as v}from"./index-F8NPuhC5.js";function y(f,d){for(var o=0;ou[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,d){(function(o){o(v)})(function(o){o.defineMode("dtd",function(u){var c=u.indentUnit,r;function l(i,e){return r=e,i}function a(i,e){var n=i.next();if(n=="<"&&i.eat("!")){if(i.eatWhile(/[\-]/))return e.tokenize=k,k(i,e);if(i.eatWhile(/[\w]/))return l("keyword","doindent")}else{if(n=="<"&&i.eat("?"))return e.tokenize=p("meta","?>"),l("meta",n);if(n=="#"&&i.eatWhile(/[\w]/))return l("atom","tag");if(n=="|")return l("keyword","separator");if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return l(null,n);if(n.match(/[\[\]]/))return l("rule",n);if(n=='"'||n=="'")return e.tokenize=h(n),e.tokenize(i,e);if(i.eatWhile(/[a-zA-Z\?\+\d]/)){var t=i.current();return t.substr(t.length-1,t.length).match(/\?|\+/)!==null&&i.backUp(1),l("tag","tag")}else return n=="%"||n=="*"?l("number","number"):(i.eatWhile(/[\w\\\-_%.{,]/),l(null,null))}}function k(i,e){for(var n=0,t;(t=i.next())!=null;){if(n>=2&&t==">"){e.tokenize=a;break}n=t=="-"?n+1:0}return l("comment","comment")}function h(i){return function(e,n){for(var t=!1,s;(s=e.next())!=null;){if(s==i&&!t){n.tokenize=a;break}t=!t&&s=="\\"}return l("string","tag")}}function p(i,e){return function(n,t){for(;!n.eol();){if(n.match(e)){t.tokenize=a;break}n.next()}return i}}return{startState:function(i){return{tokenize:a,baseIndent:i||0,stack:[]}},token:function(i,e){if(i.eatSpace())return null;var n=e.tokenize(i,e),t=e.stack[e.stack.length-1];return i.current()=="["||r==="doindent"||r=="["?e.stack.push("rule"):r==="endtag"?e.stack[e.stack.length-1]="endtag":i.current()=="]"||r=="]"||r==">"&&t=="rule"?e.stack.pop():r=="["&&e.stack.push("["),n},indent:function(i,e){var n=i.stack.length;return e.charAt(0)==="]"?n--:e.substr(e.length-1,e.length)===">"&&(e.substr(0,1)==="<"||r=="doindent"&&e.length>1||(r=="doindent"?n--:r==">"&&e.length>1||r=="tag"&&e!==">"||(r=="tag"&&i.stack[i.stack.length-1]=="rule"?n--:r=="tag"?n++:e===">"&&i.stack[i.stack.length-1]=="rule"&&r===">"?n--:e===">"&&i.stack[i.stack.length-1]=="rule"||(e.substr(0,1)!=="<"&&e.substr(0,1)===">"?n=n-1:e===">"||(n=n-1)))),(r==null||r=="]")&&n--),i.baseIndent+n*c},electricChars:"]>"}}),o.defineMIME("application/xml-dtd","dtd")})})();var g=z.exports;const w=b(g),S=y({__proto__:null,default:w},[g]);export{S as d}; diff --git a/dist-ui/assets/dylan-BWZlyZb4.js b/dist-ui/assets/dylan-CaT5sunF.js similarity index 98% rename from dist-ui/assets/dylan-BWZlyZb4.js rename to dist-ui/assets/dylan-CaT5sunF.js index 8156eb84..0c445405 100644 --- a/dist-ui/assets/dylan-BWZlyZb4.js +++ b/dist-ui/assets/dylan-CaT5sunF.js @@ -1 +1 @@ -import{g as S,c as E}from"./index-CFELAGmQ.js";function O(b,y){for(var f=0;fu[s]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(b,y){(function(f){f(E)})(function(f){function u(a,t){for(var r=0;r",symbolGlobal:"\\*"+r+"\\*",symbolConstant:"\\$"+r},z={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var h in c)c.hasOwnProperty(h)&&(c[h]=new RegExp("^"+c[h]));c.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var p={};p.keyword="keyword",p.definition="def",p.simpleDefinition="def",p.signalingCalls="builtin";var v={},g={};u(["keyword","definition","simpleDefinition","signalingCalls"],function(e){u(t[e],function(i){v[i]=e,g[i]=p[e]})});function x(e,i,n){return i.tokenize=n,n(e,i)}function k(e,i){var n=e.peek();if(n=="'"||n=='"')return e.next(),x(e,i,m(n,"string"));if(n=="/"){if(e.next(),e.eat("*"))return x(e,i,P);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if(n=="#")return e.next(),n=e.peek(),n=='"'?(e.next(),x(e,i,m('"',"string"))):n=="b"?(e.next(),e.eatWhile(/[01]/),"number"):n=="x"?(e.next(),e.eatWhile(/[\da-f]/i),"number"):n=="o"?(e.next(),e.eatWhile(/[0-7]/),"number"):n=="#"?(e.next(),"punctuation"):n=="["||n=="("?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if(n=="~")return e.next(),n=e.peek(),n=="="?(e.next(),n=e.peek(),n=="="&&e.next(),"operator"):"operator";if(n==":"){if(e.next(),n=e.peek(),n=="=")return e.next(),"operator";if(n==":")return e.next(),"punctuation"}else{if("[](){}".indexOf(n)!=-1)return e.next(),"bracket";if(".,".indexOf(n)!=-1)return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var d in c)if(c.hasOwnProperty(d)){var o=c[d];if(o instanceof Array&&s(o,function(l){return e.match(l)})||e.match(o))return z[d]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),v.hasOwnProperty(e.current())?g[e.current()]:e.current().match(C)?"variable":(e.next(),"variable-2"))}function P(e,i){for(var n=!1,d=!1,o=0,l;l=e.next();){if(l=="/"&&n)if(o>0)o--;else{i.tokenize=k;break}else l=="*"&&d&&o++;n=l=="*",d=l=="/"}return"comment"}function m(e,i){return function(n,d){for(var o=!1,l,w=!1;(l=n.next())!=null;){if(l==e&&!o){w=!0;break}o=!o&&l=="\\"}return(w||!o)&&(d.tokenize=k),i}}return{startState:function(){return{tokenize:k,currentIndent:0}},token:function(e,i){if(e.eatSpace())return null;var n=i.tokenize(e,i);return n},blockCommentStart:"/*",blockCommentEnd:"*/"}}),f.defineMIME("text/x-dylan","dylan")})})();var D=_.exports;const A=S(D),W=O({__proto__:null,default:A},[D]);export{W as d}; +import{g as S,c as E}from"./index-F8NPuhC5.js";function O(b,y){for(var f=0;fu[s]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(b,y){(function(f){f(E)})(function(f){function u(a,t){for(var r=0;r",symbolGlobal:"\\*"+r+"\\*",symbolConstant:"\\$"+r},z={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var h in c)c.hasOwnProperty(h)&&(c[h]=new RegExp("^"+c[h]));c.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var p={};p.keyword="keyword",p.definition="def",p.simpleDefinition="def",p.signalingCalls="builtin";var v={},g={};u(["keyword","definition","simpleDefinition","signalingCalls"],function(e){u(t[e],function(i){v[i]=e,g[i]=p[e]})});function x(e,i,n){return i.tokenize=n,n(e,i)}function k(e,i){var n=e.peek();if(n=="'"||n=='"')return e.next(),x(e,i,m(n,"string"));if(n=="/"){if(e.next(),e.eat("*"))return x(e,i,P);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if(n=="#")return e.next(),n=e.peek(),n=='"'?(e.next(),x(e,i,m('"',"string"))):n=="b"?(e.next(),e.eatWhile(/[01]/),"number"):n=="x"?(e.next(),e.eatWhile(/[\da-f]/i),"number"):n=="o"?(e.next(),e.eatWhile(/[0-7]/),"number"):n=="#"?(e.next(),"punctuation"):n=="["||n=="("?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if(n=="~")return e.next(),n=e.peek(),n=="="?(e.next(),n=e.peek(),n=="="&&e.next(),"operator"):"operator";if(n==":"){if(e.next(),n=e.peek(),n=="=")return e.next(),"operator";if(n==":")return e.next(),"punctuation"}else{if("[](){}".indexOf(n)!=-1)return e.next(),"bracket";if(".,".indexOf(n)!=-1)return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var d in c)if(c.hasOwnProperty(d)){var o=c[d];if(o instanceof Array&&s(o,function(l){return e.match(l)})||e.match(o))return z[d]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),v.hasOwnProperty(e.current())?g[e.current()]:e.current().match(C)?"variable":(e.next(),"variable-2"))}function P(e,i){for(var n=!1,d=!1,o=0,l;l=e.next();){if(l=="/"&&n)if(o>0)o--;else{i.tokenize=k;break}else l=="*"&&d&&o++;n=l=="*",d=l=="/"}return"comment"}function m(e,i){return function(n,d){for(var o=!1,l,w=!1;(l=n.next())!=null;){if(l==e&&!o){w=!0;break}o=!o&&l=="\\"}return(w||!o)&&(d.tokenize=k),i}}return{startState:function(){return{tokenize:k,currentIndent:0}},token:function(e,i){if(e.eatSpace())return null;var n=i.tokenize(e,i);return n},blockCommentStart:"/*",blockCommentEnd:"*/"}}),f.defineMIME("text/x-dylan","dylan")})})();var D=_.exports;const A=S(D),W=O({__proto__:null,default:A},[D]);export{W as d}; diff --git a/dist-ui/assets/ebnf-CE4Kd6SC.js b/dist-ui/assets/ebnf-t_2f6tWn.js similarity index 97% rename from dist-ui/assets/ebnf-CE4Kd6SC.js rename to dist-ui/assets/ebnf-t_2f6tWn.js index f9106bab..baf78b67 100644 --- a/dist-ui/assets/ebnf-CE4Kd6SC.js +++ b/dist-ui/assets/ebnf-t_2f6tWn.js @@ -1 +1 @@ -import{g as b,c as k}from"./index-CFELAGmQ.js";function d(f,u){for(var r=0;ri[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(f,u){(function(r){r(k)})(function(r){r.defineMode("ebnf",function(i){var t={slash:0,parenthesis:1},c={comment:0,_string:1,characterClass:2},l=null;return i.bracesMode&&(l=r.getMode(i,i.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,n){if(e){switch(n.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(n.stringType=e.peek(),e.next(),n.stack.unshift(c._string)):e.match("/*")?(n.stack.unshift(c.comment),n.commentType=t.slash):e.match("(*")&&(n.stack.unshift(c.comment),n.commentType=t.parenthesis)),n.stack[0]){case c._string:for(;n.stack[0]===c._string&&!e.eol();)e.peek()===n.stringType?(e.next(),n.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string";case c.comment:for(;n.stack[0]===c.comment&&!e.eol();)n.commentType===t.slash&&e.match("*/")||n.commentType===t.parenthesis&&e.match("*)")?(n.stack.shift(),n.commentType=null):e.match(/^.[^\*]*/);return"comment";case c.characterClass:for(;n.stack[0]===c.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||n.stack.shift();return"operator"}var h=e.peek();if(l!==null&&(n.braced||h==="{")){n.localState===null&&(n.localState=r.startState(l));var a=l.token(e,n.localState),p=e.current();if(!a)for(var o=0;o>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":["[","]","(",")"].indexOf(e.peek())!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}),r.defineMIME("text/x-ebnf","ebnf")})})();var s=g.exports;const y=b(s),x=d({__proto__:null,default:y},[s]);export{x as e}; +import{g as b,c as k}from"./index-F8NPuhC5.js";function d(f,u){for(var r=0;ri[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(f,u){(function(r){r(k)})(function(r){r.defineMode("ebnf",function(i){var t={slash:0,parenthesis:1},c={comment:0,_string:1,characterClass:2},l=null;return i.bracesMode&&(l=r.getMode(i,i.bracesMode)),{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,n){if(e){switch(n.stack.length===0&&(e.peek()=='"'||e.peek()=="'"?(n.stringType=e.peek(),e.next(),n.stack.unshift(c._string)):e.match("/*")?(n.stack.unshift(c.comment),n.commentType=t.slash):e.match("(*")&&(n.stack.unshift(c.comment),n.commentType=t.parenthesis)),n.stack[0]){case c._string:for(;n.stack[0]===c._string&&!e.eol();)e.peek()===n.stringType?(e.next(),n.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string";case c.comment:for(;n.stack[0]===c.comment&&!e.eol();)n.commentType===t.slash&&e.match("*/")||n.commentType===t.parenthesis&&e.match("*)")?(n.stack.shift(),n.commentType=null):e.match(/^.[^\*]*/);return"comment";case c.characterClass:for(;n.stack[0]===c.characterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||n.stack.shift();return"operator"}var h=e.peek();if(l!==null&&(n.braced||h==="{")){n.localState===null&&(n.localState=r.startState(l));var a=l.token(e,n.localState),p=e.current();if(!a)for(var o=0;o>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variable-2":["[","]","(",")"].indexOf(e.peek())!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}),r.defineMIME("text/x-ebnf","ebnf")})})();var s=g.exports;const y=b(s),x=d({__proto__:null,default:y},[s]);export{x as e}; diff --git a/dist-ui/assets/ecl-DNeqOLX3.js b/dist-ui/assets/ecl-CUfKsVWv.js similarity index 98% rename from dist-ui/assets/ecl-DNeqOLX3.js rename to dist-ui/assets/ecl-CUfKsVWv.js index e0d6824a..5f54553b 100644 --- a/dist-ui/assets/ecl-DNeqOLX3.js +++ b/dist-ui/assets/ecl-CUfKsVWv.js @@ -1 +1 @@ -import{g as L,c as S}from"./index-CFELAGmQ.js";function P(d,v){for(var c=0;cs[a]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(d,v){(function(c){c(S)})(function(c){c.defineMode("ecl",function(s){function a(n){for(var t={},e=n.split(" "),r=0;r!?|\/]/,i;function m(n,t){var e=n.next();if(g[e]){var r=g[e](n,t);if(r!==!1)return r}if(e=='"'||e=="'")return t.tokenize=q(e),t.tokenize(n,t);if(/[\[\]{}\(\),;\:\.]/.test(e))return i=e,null;if(/\d/.test(e))return n.eatWhile(/[\w\.]/),"number";if(e=="/"){if(n.eat("*"))return t.tokenize=w,w(n,t);if(n.eat("/"))return n.skipToEnd(),"comment"}if(x.test(e))return n.eatWhile(x),"operator";n.eatWhile(/[\w\$_]/);var o=n.current().toLowerCase();if(I.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"keyword";if(_.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable";if(j.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable-2";if(b.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable-3";if(O.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"builtin";for(var l=o.length-1;l>=0&&(!isNaN(o[l])||o[l]=="_");)--l;if(l>0){var E=o.substr(0,l+1);if(b.propertyIsEnumerable(E))return u.propertyIsEnumerable(E)&&(i="newstatement"),"variable-3"}return C.propertyIsEnumerable(o)?"atom":null}function q(n){return function(t,e){for(var r=!1,o,l=!1;(o=t.next())!=null;){if(o==n&&!r){l=!0;break}r=!r&&o=="\\"}return(l||!r)&&(e.tokenize=m),"string"}}function w(n,t){for(var e=!1,r;r=n.next();){if(r=="/"&&e){t.tokenize=m;break}e=r=="*"}return"comment"}function k(n,t,e,r,o){this.indented=n,this.column=t,this.type=e,this.align=r,this.prev=o}function h(n,t,e){return n.context=new k(n.indented,t,e,null,n.context)}function p(n){var t=n.context.type;return(t==")"||t=="]"||t=="}")&&(n.indented=n.context.indented),n.context=n.context.prev}return{startState:function(n){return{tokenize:null,context:new k((n||0)-y,0,"top",!1),indented:0,startOfLine:!0}},token:function(n,t){var e=t.context;if(n.sol()&&(e.align==null&&(e.align=!1),t.indented=n.indentation(),t.startOfLine=!0),n.eatSpace())return null;i=null;var r=(t.tokenize||m)(n,t);if(r=="comment"||r=="meta")return r;if(e.align==null&&(e.align=!0),(i==";"||i==":")&&e.type=="statement")p(t);else if(i=="{")h(t,n.column(),"}");else if(i=="[")h(t,n.column(),"]");else if(i=="(")h(t,n.column(),")");else if(i=="}"){for(;e.type=="statement";)e=p(t);for(e.type=="}"&&(e=p(t));e.type=="statement";)e=p(t)}else i==e.type?p(t):(e.type=="}"||e.type=="top"||e.type=="statement"&&i=="newstatement")&&h(t,n.column(),"statement");return t.startOfLine=!1,r},indent:function(n,t){if(n.tokenize!=m&&n.tokenize!=null)return 0;var e=n.context,r=t&&t.charAt(0);e.type=="statement"&&r=="}"&&(e=e.prev);var o=r==e.type;return e.type=="statement"?e.indented+(r=="{"?0:y):e.align?e.column+(o?0:1):e.indented+(o?0:y)},electricChars:"{}"}}),c.defineMIME("text/x-ecl","ecl")})})();var z=M.exports;const N=L(z),W=P({__proto__:null,default:N},[z]);export{W as e}; +import{g as L,c as S}from"./index-F8NPuhC5.js";function P(d,v){for(var c=0;cs[a]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(d,v){(function(c){c(S)})(function(c){c.defineMode("ecl",function(s){function a(n){for(var t={},e=n.split(" "),r=0;r!?|\/]/,i;function m(n,t){var e=n.next();if(g[e]){var r=g[e](n,t);if(r!==!1)return r}if(e=='"'||e=="'")return t.tokenize=q(e),t.tokenize(n,t);if(/[\[\]{}\(\),;\:\.]/.test(e))return i=e,null;if(/\d/.test(e))return n.eatWhile(/[\w\.]/),"number";if(e=="/"){if(n.eat("*"))return t.tokenize=w,w(n,t);if(n.eat("/"))return n.skipToEnd(),"comment"}if(x.test(e))return n.eatWhile(x),"operator";n.eatWhile(/[\w\$_]/);var o=n.current().toLowerCase();if(I.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"keyword";if(_.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable";if(j.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable-2";if(b.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"variable-3";if(O.propertyIsEnumerable(o))return u.propertyIsEnumerable(o)&&(i="newstatement"),"builtin";for(var l=o.length-1;l>=0&&(!isNaN(o[l])||o[l]=="_");)--l;if(l>0){var E=o.substr(0,l+1);if(b.propertyIsEnumerable(E))return u.propertyIsEnumerable(E)&&(i="newstatement"),"variable-3"}return C.propertyIsEnumerable(o)?"atom":null}function q(n){return function(t,e){for(var r=!1,o,l=!1;(o=t.next())!=null;){if(o==n&&!r){l=!0;break}r=!r&&o=="\\"}return(l||!r)&&(e.tokenize=m),"string"}}function w(n,t){for(var e=!1,r;r=n.next();){if(r=="/"&&e){t.tokenize=m;break}e=r=="*"}return"comment"}function k(n,t,e,r,o){this.indented=n,this.column=t,this.type=e,this.align=r,this.prev=o}function h(n,t,e){return n.context=new k(n.indented,t,e,null,n.context)}function p(n){var t=n.context.type;return(t==")"||t=="]"||t=="}")&&(n.indented=n.context.indented),n.context=n.context.prev}return{startState:function(n){return{tokenize:null,context:new k((n||0)-y,0,"top",!1),indented:0,startOfLine:!0}},token:function(n,t){var e=t.context;if(n.sol()&&(e.align==null&&(e.align=!1),t.indented=n.indentation(),t.startOfLine=!0),n.eatSpace())return null;i=null;var r=(t.tokenize||m)(n,t);if(r=="comment"||r=="meta")return r;if(e.align==null&&(e.align=!0),(i==";"||i==":")&&e.type=="statement")p(t);else if(i=="{")h(t,n.column(),"}");else if(i=="[")h(t,n.column(),"]");else if(i=="(")h(t,n.column(),")");else if(i=="}"){for(;e.type=="statement";)e=p(t);for(e.type=="}"&&(e=p(t));e.type=="statement";)e=p(t)}else i==e.type?p(t):(e.type=="}"||e.type=="top"||e.type=="statement"&&i=="newstatement")&&h(t,n.column(),"statement");return t.startOfLine=!1,r},indent:function(n,t){if(n.tokenize!=m&&n.tokenize!=null)return 0;var e=n.context,r=t&&t.charAt(0);e.type=="statement"&&r=="}"&&(e=e.prev);var o=r==e.type;return e.type=="statement"?e.indented+(r=="{"?0:y):e.align?e.column+(o?0:1):e.indented+(o?0:y)},electricChars:"{}"}}),c.defineMIME("text/x-ecl","ecl")})})();var z=M.exports;const N=L(z),W=P({__proto__:null,default:N},[z]);export{W as e}; diff --git a/dist-ui/assets/eiffel-CNcgPpub.js b/dist-ui/assets/eiffel-Dke9VK8D.js similarity index 97% rename from dist-ui/assets/eiffel-CNcgPpub.js rename to dist-ui/assets/eiffel-Dke9VK8D.js index 396a8513..b87362ce 100644 --- a/dist-ui/assets/eiffel-CNcgPpub.js +++ b/dist-ui/assets/eiffel-Dke9VK8D.js @@ -1 +1 @@ -import{g as h,c as v}from"./index-CFELAGmQ.js";function k(f,l){for(var i=0;io[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(f,l){(function(i){i(v)})(function(i){i.defineMode("eiffel",function(){function o(e){for(var r={},t=0,n=e.length;t>"]);function d(e,r,t){return t.tokenize.push(e),e(r,t)}function g(e,r){if(e.eatSpace())return null;var t=e.next();return t=='"'||t=="'"?d(b(t,"string"),e,r):t=="-"&&e.eat("-")?(e.skipToEnd(),"comment"):t==":"&&e.eat("=")?"operator":/[0-9]/.test(t)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(t)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(t)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function b(e,r,t){return function(n,x){for(var c=!1,s;(s=n.next())!=null;){if(s==e&&(t||!c)){x.tokenize.pop();break}c=!c&&s=="%"}return r}}return{startState:function(){return{tokenize:[g]}},token:function(e,r){var t=r.tokenize[r.tokenize.length-1](e,r);if(t=="ident"){var n=e.current();t=u.propertyIsEnumerable(e.current())?"keyword":a.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)||/^0[cC][0-7]+$/g.test(n)||/^0[xX][a-fA-F0-9]+$/g.test(n)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)||/^[0-9]+$/g.test(n)?"number":"variable"}return t},lineComment:"--"}}),i.defineMIME("text/x-eiffel","eiffel")})})();var p=y.exports;const m=h(p),_=k({__proto__:null,default:m},[p]);export{_ as e}; +import{g as h,c as v}from"./index-F8NPuhC5.js";function k(f,l){for(var i=0;io[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(f,l){(function(i){i(v)})(function(i){i.defineMode("eiffel",function(){function o(e){for(var r={},t=0,n=e.length;t>"]);function d(e,r,t){return t.tokenize.push(e),e(r,t)}function g(e,r){if(e.eatSpace())return null;var t=e.next();return t=='"'||t=="'"?d(b(t,"string"),e,r):t=="-"&&e.eat("-")?(e.skipToEnd(),"comment"):t==":"&&e.eat("=")?"operator":/[0-9]/.test(t)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(t)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(t)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function b(e,r,t){return function(n,x){for(var c=!1,s;(s=n.next())!=null;){if(s==e&&(t||!c)){x.tokenize.pop();break}c=!c&&s=="%"}return r}}return{startState:function(){return{tokenize:[g]}},token:function(e,r){var t=r.tokenize[r.tokenize.length-1](e,r);if(t=="ident"){var n=e.current();t=u.propertyIsEnumerable(e.current())?"keyword":a.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)||/^0[cC][0-7]+$/g.test(n)||/^0[xX][a-fA-F0-9]+$/g.test(n)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)||/^[0-9]+$/g.test(n)?"number":"variable"}return t},lineComment:"--"}}),i.defineMIME("text/x-eiffel","eiffel")})})();var p=y.exports;const m=h(p),_=k({__proto__:null,default:m},[p]);export{_ as e}; diff --git a/dist-ui/assets/elm-g9IQLo-i.js b/dist-ui/assets/elm-_2cYor_-.js similarity index 97% rename from dist-ui/assets/elm-g9IQLo-i.js rename to dist-ui/assets/elm-_2cYor_-.js index b73bb78e..764d1367 100644 --- a/dist-ui/assets/elm-g9IQLo-i.js +++ b/dist-ui/assets/elm-_2cYor_-.js @@ -1 +1 @@ -import{g as _,c as O}from"./index-CFELAGmQ.js";function j(p,h){for(var a=0;ar[f]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(p,h){(function(a){a(O)})(function(a){a.defineMode("elm",function(){function r(t,n,e){return n(e),e(t,n)}var f=/[a-z]/,o=/[A-Z]/,u=/[a-zA-Z0-9_]/,m=/[0-9]/,d=/[0-9A-Fa-f]/,g=/[-&*+.\\/<>=?^|:]/,w=/[(),[\]{}]/,E=/[ \v\f]/;function i(){return function(t,n){if(t.eatWhile(E))return null;var e=t.next();if(w.test(e))return e==="{"&&t.eat("-")?r(t,n,v(1)):e==="["&&t.match("glsl|")?r(t,n,W):"builtin";if(e==="'")return r(t,n,k);if(e==='"')return t.eat('"')?t.eat('"')?r(t,n,y):"string":r(t,n,b);if(o.test(e))return t.eatWhile(u),"variable-2";if(f.test(e)){var l=t.pos===1;return t.eatWhile(u),l?"def":"variable"}if(m.test(e)){if(e==="0"){if(t.eat(/[xX]/))return t.eatWhile(d),"number"}else t.eatWhile(m);return t.eat(".")&&t.eatWhile(m),t.eat(/[eE]/)&&(t.eat(/[-+]/),t.eatWhile(m)),"number"}return g.test(e)?e==="-"&&t.eat("-")?(t.skipToEnd(),"comment"):(t.eatWhile(g),"keyword"):e==="_"?"keyword":"error"}}function v(t){return t==0?i():function(n,e){for(;!n.eol();){var l=n.next();if(l=="{"&&n.eat("-"))++t;else if(l=="-"&&n.eat("}")&&(--t,t===0))return e(i()),"comment"}return e(v(t)),"comment"}}function y(t,n){for(;!t.eol();){var e=t.next();if(e==='"'&&t.eat('"')&&t.eat('"'))return n(i()),"string"}return"string"}function b(t,n){for(;t.skipTo('\\"');)t.next(),t.next();return t.skipTo('"')?(t.next(),n(i()),"string"):(t.skipToEnd(),n(i()),"error")}function k(t,n){for(;t.skipTo("\\'");)t.next(),t.next();return t.skipTo("'")?(t.next(),n(i()),"string"):(t.skipToEnd(),n(i()),"error")}function W(t,n){for(;!t.eol();){var e=t.next();if(e==="|"&&t.eat("]"))return n(i()),"string"}return"string"}var R={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:i()}},copyState:function(t){return{f:t.f}},lineComment:"--",token:function(t,n){var e=n.f(t,function(T){n.f=T}),l=t.current();return R.hasOwnProperty(l)?"keyword":e}}}),a.defineMIME("text/x-elm","elm")})})();var x=A.exports;const M=_(x),P=j({__proto__:null,default:M},[x]);export{P as e}; +import{g as _,c as O}from"./index-F8NPuhC5.js";function j(p,h){for(var a=0;ar[f]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var A={exports:{}};(function(p,h){(function(a){a(O)})(function(a){a.defineMode("elm",function(){function r(t,n,e){return n(e),e(t,n)}var f=/[a-z]/,o=/[A-Z]/,u=/[a-zA-Z0-9_]/,m=/[0-9]/,d=/[0-9A-Fa-f]/,g=/[-&*+.\\/<>=?^|:]/,w=/[(),[\]{}]/,E=/[ \v\f]/;function i(){return function(t,n){if(t.eatWhile(E))return null;var e=t.next();if(w.test(e))return e==="{"&&t.eat("-")?r(t,n,v(1)):e==="["&&t.match("glsl|")?r(t,n,W):"builtin";if(e==="'")return r(t,n,k);if(e==='"')return t.eat('"')?t.eat('"')?r(t,n,y):"string":r(t,n,b);if(o.test(e))return t.eatWhile(u),"variable-2";if(f.test(e)){var l=t.pos===1;return t.eatWhile(u),l?"def":"variable"}if(m.test(e)){if(e==="0"){if(t.eat(/[xX]/))return t.eatWhile(d),"number"}else t.eatWhile(m);return t.eat(".")&&t.eatWhile(m),t.eat(/[eE]/)&&(t.eat(/[-+]/),t.eatWhile(m)),"number"}return g.test(e)?e==="-"&&t.eat("-")?(t.skipToEnd(),"comment"):(t.eatWhile(g),"keyword"):e==="_"?"keyword":"error"}}function v(t){return t==0?i():function(n,e){for(;!n.eol();){var l=n.next();if(l=="{"&&n.eat("-"))++t;else if(l=="-"&&n.eat("}")&&(--t,t===0))return e(i()),"comment"}return e(v(t)),"comment"}}function y(t,n){for(;!t.eol();){var e=t.next();if(e==='"'&&t.eat('"')&&t.eat('"'))return n(i()),"string"}return"string"}function b(t,n){for(;t.skipTo('\\"');)t.next(),t.next();return t.skipTo('"')?(t.next(),n(i()),"string"):(t.skipToEnd(),n(i()),"error")}function k(t,n){for(;t.skipTo("\\'");)t.next(),t.next();return t.skipTo("'")?(t.next(),n(i()),"string"):(t.skipToEnd(),n(i()),"error")}function W(t,n){for(;!t.eol();){var e=t.next();if(e==="|"&&t.eat("]"))return n(i()),"string"}return"string"}var R={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:i()}},copyState:function(t){return{f:t.f}},lineComment:"--",token:function(t,n){var e=n.f(t,function(T){n.f=T}),l=t.current();return R.hasOwnProperty(l)?"keyword":e}}}),a.defineMIME("text/x-elm","elm")})})();var x=A.exports;const M=_(x),P=j({__proto__:null,default:M},[x]);export{P as e}; diff --git a/dist-ui/assets/emoji-picker-react.esm-D9L2XWJL.js b/dist-ui/assets/emoji-picker-react.esm-GaxrAwgC.js similarity index 99% rename from dist-ui/assets/emoji-picker-react.esm-D9L2XWJL.js rename to dist-ui/assets/emoji-picker-react.esm-GaxrAwgC.js index bcf51165..e73da746 100644 --- a/dist-ui/assets/emoji-picker-react.esm-D9L2XWJL.js +++ b/dist-ui/assets/emoji-picker-react.esm-GaxrAwgC.js @@ -1 +1 @@ -import{e as o,R as gf}from"./index-CFELAGmQ.js";var b;(function(f){f.hiddenOnSearch="epr-hidden-on-search",f.searchActive="epr-search-active",f.hidden="epr-hidden",f.visible="epr-visible",f.active="epr-active",f.emoji="epr-emoji",f.category="epr-emoji-category",f.label="epr-emoji-category-label",f.categoryContent="epr-emoji-category-content",f.emojiHasVariations="epr-emoji-has-variations",f.scrollBody="epr-body",f.emojiList="epr-emoji-list",f.external="__EmojiPicker__",f.emojiPicker="EmojiPickerReact",f.open="epr-open",f.vertical="epr-vertical",f.horizontal="epr-horizontal",f.variationPicker="epr-emoji-variation-picker",f.darkTheme="epr-dark-theme",f.autoTheme="epr-auto-theme"})(b||(b={}));function x(){for(var f=arguments.length,e=new Array(f),a=0;a=0)&&(a[r]=f[r]);return a}function g1(f,e){if(f){if(typeof f=="string")return Zf(f,e);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Zf(f,e)}}function Zf(f,e){(e==null||e>f.length)&&(e=f.length);for(var a=0,n=new Array(e);a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var af;(function(f){f.RECENT="recent",f.FREQUENT="frequent"})(af||(af={}));var S;(function(f){f.NATIVE="native",f.APPLE="apple",f.TWITTER="twitter",f.GOOGLE="google",f.FACEBOOK="facebook"})(S||(S={}));var nf;(function(f){f.DARK="dark",f.LIGHT="light",f.AUTO="auto"})(nf||(nf={}));var _;(function(f){f.NEUTRAL="neutral",f.LIGHT="1f3fb",f.MEDIUM_LIGHT="1f3fc",f.MEDIUM="1f3fd",f.MEDIUM_DARK="1f3fe",f.DARK="1f3ff"})(_||(_={}));var m;(function(f){f.SUGGESTED="suggested",f.CUSTOM="custom",f.SMILEYS_PEOPLE="smileys_people",f.ANIMALS_NATURE="animals_nature",f.FOOD_DRINK="food_drink",f.TRAVEL_PLACES="travel_places",f.ACTIVITIES="activities",f.OBJECTS="objects",f.SYMBOLS="symbols",f.FLAGS="flags"})(m||(m={}));var K;(function(f){f.SEARCH="SEARCH",f.PREVIEW="PREVIEW"})(K||(K={}));var T,m1=[m.SUGGESTED,m.CUSTOM,m.SMILEYS_PEOPLE,m.ANIMALS_NATURE,m.FOOD_DRINK,m.TRAVEL_PLACES,m.ACTIVITIES,m.OBJECTS,m.SYMBOLS,m.FLAGS],p1={name:"Recently Used",category:m.SUGGESTED},pe=(T={},T[m.SUGGESTED]={category:m.SUGGESTED,name:"Frequently Used"},T[m.CUSTOM]={category:m.CUSTOM,name:"Custom Emojis"},T[m.SMILEYS_PEOPLE]={category:m.SMILEYS_PEOPLE,name:"Smileys & People"},T[m.ANIMALS_NATURE]={category:m.ANIMALS_NATURE,name:"Animals & Nature"},T[m.FOOD_DRINK]={category:m.FOOD_DRINK,name:"Food & Drink"},T[m.TRAVEL_PLACES]={category:m.TRAVEL_PLACES,name:"Travel & Places"},T[m.ACTIVITIES]={category:m.ACTIVITIES,name:"Activities"},T[m.OBJECTS]={category:m.OBJECTS,name:"Objects"},T[m.SYMBOLS]={category:m.SYMBOLS,name:"Symbols"},T[m.FLAGS]={category:m.FLAGS,name:"Flags"},T);function he(f){return m1.map(function(e){return B({},pe[e],f&&f[e]&&f[e])})}function _f(f){return f.category}function ve(f){return f.name}function h1(f,e){var a;f===void 0&&(f=[]),e===void 0&&(e={});var n={};e.suggestionMode===af.RECENT&&(n[m.SUGGESTED]=p1);var r=he(n);return(a=f)!=null&&a.length?f.map(function(i){return typeof i=="string"?Qf(i,n[i]):B({},Qf(i.category,n[i.category]),i)}):r}function Qf(f,e){return e===void 0&&(e={}),Object.assign(pe[f],e)}var v1="https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/",k1="https://cdn.jsdelivr.net/npm/emoji-datasource-facebook/img/facebook/64/",w1="https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/",y1="https://cdn.jsdelivr.net/npm/emoji-datasource-google/img/google/64/";function E1(f){switch(f){case S.TWITTER:return w1;case S.GOOGLE:return y1;case S.FACEBOOK:return k1;case S.APPLE:default:return v1}}var j1=[],C1=[{n:["grinning","grinning face"],u:"1f600",a:"1.0"},{n:["smiley","smiling face with open mouth"],u:"1f603",a:"0.6"},{n:["smile","smiling face with open mouth and smiling eyes"],u:"1f604",a:"0.6"},{n:["grin","grinning face with smiling eyes"],u:"1f601",a:"0.6"},{n:["laughing","satisfied","smiling face with open mouth and tightly-closed eyes"],u:"1f606",a:"0.6"},{n:["sweat smile","smiling face with open mouth and cold sweat"],u:"1f605",a:"0.6"},{n:["rolling on the floor laughing"],u:"1f923",a:"3.0"},{n:["joy","face with tears of joy"],u:"1f602",a:"0.6"},{n:["slightly smiling face"],u:"1f642",a:"1.0"},{n:["upside-down face","upside down face"],u:"1f643",a:"1.0"},{n:["melting face"],u:"1fae0",a:"14.0"},{n:["wink","winking face"],u:"1f609",a:"0.6"},{n:["blush","smiling face with smiling eyes"],u:"1f60a",a:"0.6"},{n:["innocent","smiling face with halo"],u:"1f607",a:"1.0"},{n:["smiling face with 3 hearts","smiling face with smiling eyes and three hearts"],u:"1f970",a:"11.0"},{n:["heart eyes","smiling face with heart-shaped eyes"],u:"1f60d",a:"0.6"},{n:["star-struck","grinning face with star eyes"],u:"1f929",a:"5.0"},{n:["kissing heart","face throwing a kiss"],u:"1f618",a:"0.6"},{n:["kissing","kissing face"],u:"1f617",a:"1.0"},{n:["relaxed","white smiling face"],u:"263a-fe0f",a:"0.6"},{n:["kissing closed eyes","kissing face with closed eyes"],u:"1f61a",a:"0.6"},{n:["kissing smiling eyes","kissing face with smiling eyes"],u:"1f619",a:"1.0"},{n:["smiling face with tear"],u:"1f972",a:"13.0"},{n:["yum","face savouring delicious food"],u:"1f60b",a:"0.6"},{n:["stuck out tongue","face with stuck-out tongue"],u:"1f61b",a:"1.0"},{n:["stuck out tongue winking eye","face with stuck-out tongue and winking eye"],u:"1f61c",a:"0.6"},{n:["zany face","grinning face with one large and one small eye"],u:"1f92a",a:"5.0"},{n:["stuck out tongue closed eyes","face with stuck-out tongue and tightly-closed eyes"],u:"1f61d",a:"0.6"},{n:["money-mouth face","money mouth face"],u:"1f911",a:"1.0"},{n:["hugging face"],u:"1f917",a:"1.0"},{n:["face with hand over mouth","smiling face with smiling eyes and hand covering mouth"],u:"1f92d",a:"5.0"},{n:["face with open eyes and hand over mouth"],u:"1fae2",a:"14.0"},{n:["face with peeking eye"],u:"1fae3",a:"14.0"},{n:["shushing face","face with finger covering closed lips"],u:"1f92b",a:"5.0"},{n:["thinking face"],u:"1f914",a:"1.0"},{n:["saluting face"],u:"1fae1",a:"14.0"},{n:["zipper-mouth face","zipper mouth face"],u:"1f910",a:"1.0"},{n:["face with raised eyebrow","face with one eyebrow raised"],u:"1f928",a:"5.0"},{n:["neutral face"],u:"1f610",a:"0.7"},{n:["expressionless","expressionless face"],u:"1f611",a:"1.0"},{n:["no mouth","face without mouth"],u:"1f636",a:"1.0"},{n:["dotted line face"],u:"1fae5",a:"14.0"},{n:["face in clouds"],u:"1f636-200d-1f32b-fe0f",a:"13.1"},{n:["smirk","smirking face"],u:"1f60f",a:"0.6"},{n:["unamused","unamused face"],u:"1f612",a:"0.6"},{n:["face with rolling eyes"],u:"1f644",a:"1.0"},{n:["grimacing","grimacing face"],u:"1f62c",a:"1.0"},{n:["face exhaling"],u:"1f62e-200d-1f4a8",a:"13.1"},{n:["lying face"],u:"1f925",a:"3.0"},{n:["relieved","relieved face"],u:"1f60c",a:"0.6"},{n:["pensive","pensive face"],u:"1f614",a:"0.6"},{n:["sleepy","sleepy face"],u:"1f62a",a:"0.6"},{n:["drooling face"],u:"1f924",a:"3.0"},{n:["sleeping","sleeping face"],u:"1f634",a:"1.0"},{n:["mask","face with medical mask"],u:"1f637",a:"0.6"},{n:["face with thermometer"],u:"1f912",a:"1.0"},{n:["face with head-bandage","face with head bandage"],u:"1f915",a:"1.0"},{n:["nauseated face"],u:"1f922",a:"3.0"},{n:["face vomiting","face with open mouth vomiting"],u:"1f92e",a:"5.0"},{n:["sneezing face"],u:"1f927",a:"3.0"},{n:["hot face","overheated face"],u:"1f975",a:"11.0"},{n:["cold face","freezing face"],u:"1f976",a:"11.0"},{n:["woozy face","face with uneven eyes and wavy mouth"],u:"1f974",a:"11.0"},{n:["dizzy face"],u:"1f635",a:"0.6"},{n:["face with spiral eyes"],u:"1f635-200d-1f4ab",a:"13.1"},{n:["exploding head","shocked face with exploding head"],u:"1f92f",a:"5.0"},{n:["face with cowboy hat"],u:"1f920",a:"3.0"},{n:["partying face","face with party horn and party hat"],u:"1f973",a:"11.0"},{n:["disguised face"],u:"1f978",a:"13.0"},{n:["sunglasses","smiling face with sunglasses"],u:"1f60e",a:"1.0"},{n:["nerd face"],u:"1f913",a:"1.0"},{n:["face with monocle"],u:"1f9d0",a:"5.0"},{n:["confused","confused face"],u:"1f615",a:"1.0"},{n:["face with diagonal mouth"],u:"1fae4",a:"14.0"},{n:["worried","worried face"],u:"1f61f",a:"1.0"},{n:["slightly frowning face"],u:"1f641",a:"1.0"},{n:["frowning face","white frowning face"],u:"2639-fe0f",a:"0.7"},{n:["open mouth","face with open mouth"],u:"1f62e",a:"1.0"},{n:["hushed","hushed face"],u:"1f62f",a:"1.0"},{n:["astonished","astonished face"],u:"1f632",a:"0.6"},{n:["flushed","flushed face"],u:"1f633",a:"0.6"},{n:["pleading face","face with pleading eyes"],u:"1f97a",a:"11.0"},{n:["face holding back tears"],u:"1f979",a:"14.0"},{n:["frowning","frowning face with open mouth"],u:"1f626",a:"1.0"},{n:["anguished","anguished face"],u:"1f627",a:"1.0"},{n:["fearful","fearful face"],u:"1f628",a:"0.6"},{n:["cold sweat","face with open mouth and cold sweat"],u:"1f630",a:"0.6"},{n:["disappointed relieved","disappointed but relieved face"],u:"1f625",a:"0.6"},{n:["cry","crying face"],u:"1f622",a:"0.6"},{n:["sob","loudly crying face"],u:"1f62d",a:"0.6"},{n:["scream","face screaming in fear"],u:"1f631",a:"0.6"},{n:["confounded","confounded face"],u:"1f616",a:"0.6"},{n:["persevere","persevering face"],u:"1f623",a:"0.6"},{n:["disappointed","disappointed face"],u:"1f61e",a:"0.6"},{n:["sweat","face with cold sweat"],u:"1f613",a:"0.6"},{n:["weary","weary face"],u:"1f629",a:"0.6"},{n:["tired face"],u:"1f62b",a:"0.6"},{n:["yawning face"],u:"1f971",a:"12.0"},{n:["triumph","face with look of triumph"],u:"1f624",a:"0.6"},{n:["rage","pouting face"],u:"1f621",a:"0.6"},{n:["angry","angry face"],u:"1f620",a:"0.6"},{n:["face with symbols on mouth","serious face with symbols covering mouth"],u:"1f92c",a:"5.0"},{n:["smiling imp","smiling face with horns"],u:"1f608",a:"1.0"},{n:["imp"],u:"1f47f",a:"0.6"},{n:["skull"],u:"1f480",a:"0.6"},{n:["skull and crossbones"],u:"2620-fe0f",a:"1.0"},{n:["poop","shit","hankey","pile of poo"],u:"1f4a9",a:"0.6"},{n:["clown face"],u:"1f921",a:"3.0"},{n:["japanese ogre"],u:"1f479",a:"0.6"},{n:["japanese goblin"],u:"1f47a",a:"0.6"},{n:["ghost"],u:"1f47b",a:"0.6"},{n:["alien","extraterrestrial alien"],u:"1f47d",a:"0.6"},{n:["alien monster","space invader"],u:"1f47e",a:"0.6"},{n:["robot face"],u:"1f916",a:"1.0"},{n:["smiley cat","smiling cat face with open mouth"],u:"1f63a",a:"0.6"},{n:["smile cat","grinning cat face with smiling eyes"],u:"1f638",a:"0.6"},{n:["joy cat","cat face with tears of joy"],u:"1f639",a:"0.6"},{n:["heart eyes cat","smiling cat face with heart-shaped eyes"],u:"1f63b",a:"0.6"},{n:["smirk cat","cat face with wry smile"],u:"1f63c",a:"0.6"},{n:["kissing cat","kissing cat face with closed eyes"],u:"1f63d",a:"0.6"},{n:["scream cat","weary cat face"],u:"1f640",a:"0.6"},{n:["crying cat face"],u:"1f63f",a:"0.6"},{n:["pouting cat","pouting cat face"],u:"1f63e",a:"0.6"},{n:["see no evil","see-no-evil monkey"],u:"1f648",a:"0.6"},{n:["hear no evil","hear-no-evil monkey"],u:"1f649",a:"0.6"},{n:["speak no evil","speak-no-evil monkey"],u:"1f64a",a:"0.6"},{n:["kiss","kiss mark"],u:"1f48b",a:"0.6"},{n:["love letter"],u:"1f48c",a:"0.6"},{n:["cupid","heart with arrow"],u:"1f498",a:"0.6"},{n:["gift heart","heart with ribbon"],u:"1f49d",a:"0.6"},{n:["sparkling heart"],u:"1f496",a:"0.6"},{n:["heartpulse","growing heart"],u:"1f497",a:"0.6"},{n:["heartbeat","beating heart"],u:"1f493",a:"0.6"},{n:["revolving hearts"],u:"1f49e",a:"0.6"},{n:["two hearts"],u:"1f495",a:"0.6"},{n:["heart decoration"],u:"1f49f",a:"0.6"},{n:["heart exclamation","heavy heart exclamation mark ornament"],u:"2763-fe0f",a:"1.0"},{n:["broken heart"],u:"1f494",a:"0.6"},{n:["heart on fire"],u:"2764-fe0f-200d-1f525",a:"13.1"},{n:["mending heart"],u:"2764-fe0f-200d-1fa79",a:"13.1"},{n:["heart","heavy black heart"],u:"2764-fe0f",a:"0.6"},{n:["orange heart"],u:"1f9e1",a:"5.0"},{n:["yellow heart"],u:"1f49b",a:"0.6"},{n:["green heart"],u:"1f49a",a:"0.6"},{n:["blue heart"],u:"1f499",a:"0.6"},{n:["purple heart"],u:"1f49c",a:"0.6"},{n:["brown heart"],u:"1f90e",a:"12.0"},{n:["black heart"],u:"1f5a4",a:"3.0"},{n:["white heart"],u:"1f90d",a:"12.0"},{n:["100","hundred points symbol"],u:"1f4af",a:"0.6"},{n:["anger","anger symbol"],u:"1f4a2",a:"0.6"},{n:["boom","collision","collision symbol"],u:"1f4a5",a:"0.6"},{n:["dizzy","dizzy symbol"],u:"1f4ab",a:"0.6"},{n:["sweat drops","splashing sweat symbol"],u:"1f4a6",a:"0.6"},{n:["dash","dash symbol"],u:"1f4a8",a:"0.6"},{n:["hole"],u:"1f573-fe0f",a:"0.7"},{n:["bomb"],u:"1f4a3",a:"0.6"},{n:["speech balloon"],u:"1f4ac",a:"0.6"},{n:["eye in speech bubble","eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f",a:"2.0"},{n:["left speech bubble"],u:"1f5e8-fe0f",a:"2.0"},{n:["right anger bubble"],u:"1f5ef-fe0f",a:"0.7"},{n:["thought balloon"],u:"1f4ad",a:"1.0"},{n:["zzz","sleeping symbol"],u:"1f4a4",a:"0.6"},{n:["wave","waving hand sign"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"],a:"0.6"},{n:["raised back of hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"],a:"3.0"},{n:["hand with fingers splayed","raised hand with fingers splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"],a:"0.7"},{n:["hand","raised hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"],a:"0.6"},{n:["spock-hand","raised hand with part between middle and ring fingers"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"],a:"1.0"},{n:["rightwards hand"],u:"1faf1",v:["1faf1-1f3fb","1faf1-1f3fc","1faf1-1f3fd","1faf1-1f3fe","1faf1-1f3ff"],a:"14.0"},{n:["leftwards hand"],u:"1faf2",v:["1faf2-1f3fb","1faf2-1f3fc","1faf2-1f3fd","1faf2-1f3fe","1faf2-1f3ff"],a:"14.0"},{n:["palm down hand"],u:"1faf3",v:["1faf3-1f3fb","1faf3-1f3fc","1faf3-1f3fd","1faf3-1f3fe","1faf3-1f3ff"],a:"14.0"},{n:["palm up hand"],u:"1faf4",v:["1faf4-1f3fb","1faf4-1f3fc","1faf4-1f3fd","1faf4-1f3fe","1faf4-1f3ff"],a:"14.0"},{n:["ok hand","ok hand sign"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"],a:"0.6"},{n:["pinched fingers"],u:"1f90c",v:["1f90c-1f3fb","1f90c-1f3fc","1f90c-1f3fd","1f90c-1f3fe","1f90c-1f3ff"],a:"13.0"},{n:["pinching hand"],u:"1f90f",v:["1f90f-1f3fb","1f90f-1f3fc","1f90f-1f3fd","1f90f-1f3fe","1f90f-1f3ff"],a:"12.0"},{n:["v","victory hand"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"],a:"0.6"},{n:["crossed fingers","hand with index and middle fingers crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"],a:"3.0"},{n:["hand with index finger and thumb crossed"],u:"1faf0",v:["1faf0-1f3fb","1faf0-1f3fc","1faf0-1f3fd","1faf0-1f3fe","1faf0-1f3ff"],a:"14.0"},{n:["i love you hand sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"],a:"5.0"},{n:["the horns","sign of the horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"],a:"1.0"},{n:["call me hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"],a:"3.0"},{n:["point left","white left pointing backhand index"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"],a:"0.6"},{n:["point right","white right pointing backhand index"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"],a:"0.6"},{n:["point up 2","white up pointing backhand index"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"],a:"0.6"},{n:["middle finger","reversed hand with middle finger extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"],a:"1.0"},{n:["point down","white down pointing backhand index"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"],a:"0.6"},{n:["point up","white up pointing index"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"],a:"0.6"},{n:["index pointing at the viewer"],u:"1faf5",v:["1faf5-1f3fb","1faf5-1f3fc","1faf5-1f3fd","1faf5-1f3fe","1faf5-1f3ff"],a:"14.0"},{n:["+1","thumbsup","thumbs up sign"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"],a:"0.6"},{n:["-1","thumbsdown","thumbs down sign"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"],a:"0.6"},{n:["fist","raised fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"],a:"0.6"},{n:["punch","facepunch","fisted hand sign"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"],a:"0.6"},{n:["left-facing fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"],a:"3.0"},{n:["right-facing fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"],a:"3.0"},{n:["clap","clapping hands sign"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"],a:"0.6"},{n:["raised hands","person raising both hands in celebration"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"],a:"0.6"},{n:["heart hands"],u:"1faf6",v:["1faf6-1f3fb","1faf6-1f3fc","1faf6-1f3fd","1faf6-1f3fe","1faf6-1f3ff"],a:"14.0"},{n:["open hands","open hands sign"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"],a:"0.6"},{n:["palms up together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"],a:"5.0"},{n:["handshake"],u:"1f91d",v:["1f91d-1f3fb","1f91d-1f3fc","1f91d-1f3fd","1f91d-1f3fe","1f91d-1f3ff","1faf1-1f3fb-200d-1faf2-1f3fc","1faf1-1f3fb-200d-1faf2-1f3fd","1faf1-1f3fb-200d-1faf2-1f3fe","1faf1-1f3fb-200d-1faf2-1f3ff","1faf1-1f3fc-200d-1faf2-1f3fb","1faf1-1f3fc-200d-1faf2-1f3fd","1faf1-1f3fc-200d-1faf2-1f3fe","1faf1-1f3fc-200d-1faf2-1f3ff","1faf1-1f3fd-200d-1faf2-1f3fb","1faf1-1f3fd-200d-1faf2-1f3fc","1faf1-1f3fd-200d-1faf2-1f3fe","1faf1-1f3fd-200d-1faf2-1f3ff","1faf1-1f3fe-200d-1faf2-1f3fb","1faf1-1f3fe-200d-1faf2-1f3fc","1faf1-1f3fe-200d-1faf2-1f3fd","1faf1-1f3fe-200d-1faf2-1f3ff","1faf1-1f3ff-200d-1faf2-1f3fb","1faf1-1f3ff-200d-1faf2-1f3fc","1faf1-1f3ff-200d-1faf2-1f3fd","1faf1-1f3ff-200d-1faf2-1f3fe"],a:"3.0"},{n:["pray","person with folded hands"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"],a:"0.6"},{n:["writing hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"],a:"0.7"},{n:["nail care","nail polish"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"],a:"0.6"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"],a:"3.0"},{n:["muscle","flexed biceps"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"],a:"0.6"},{n:["mechanical arm"],u:"1f9be",a:"12.0"},{n:["mechanical leg"],u:"1f9bf",a:"12.0"},{n:["leg"],u:"1f9b5",v:["1f9b5-1f3fb","1f9b5-1f3fc","1f9b5-1f3fd","1f9b5-1f3fe","1f9b5-1f3ff"],a:"11.0"},{n:["foot"],u:"1f9b6",v:["1f9b6-1f3fb","1f9b6-1f3fc","1f9b6-1f3fd","1f9b6-1f3fe","1f9b6-1f3ff"],a:"11.0"},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"],a:"0.6"},{n:["ear with hearing aid"],u:"1f9bb",v:["1f9bb-1f3fb","1f9bb-1f3fc","1f9bb-1f3fd","1f9bb-1f3fe","1f9bb-1f3ff"],a:"12.0"},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"],a:"0.6"},{n:["brain"],u:"1f9e0",a:"5.0"},{n:["anatomical heart"],u:"1fac0",a:"13.0"},{n:["lungs"],u:"1fac1",a:"13.0"},{n:["tooth"],u:"1f9b7",a:"11.0"},{n:["bone"],u:"1f9b4",a:"11.0"},{n:["eyes"],u:"1f440",a:"0.6"},{n:["eye"],u:"1f441-fe0f",a:"0.7"},{n:["tongue"],u:"1f445",a:"0.6"},{n:["lips","mouth"],u:"1f444",a:"0.6"},{n:["biting lip"],u:"1fae6",a:"14.0"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"],a:"0.6"},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"],a:"5.0"},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"],a:"0.6"},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"],a:"0.6"},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"],a:"5.0"},{n:["person with blond hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"],a:"0.6"},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"],a:"0.6"},{n:["bearded person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"],a:"5.0"},{n:["man: beard","man with beard"],u:"1f9d4-200d-2642-fe0f",v:["1f9d4-1f3fb-200d-2642-fe0f","1f9d4-1f3fc-200d-2642-fe0f","1f9d4-1f3fd-200d-2642-fe0f","1f9d4-1f3fe-200d-2642-fe0f","1f9d4-1f3ff-200d-2642-fe0f"],a:"13.1"},{n:["woman: beard","woman with beard"],u:"1f9d4-200d-2640-fe0f",v:["1f9d4-1f3fb-200d-2640-fe0f","1f9d4-1f3fc-200d-2640-fe0f","1f9d4-1f3fd-200d-2640-fe0f","1f9d4-1f3fe-200d-2640-fe0f","1f9d4-1f3ff-200d-2640-fe0f"],a:"13.1"},{n:["man: red hair","red haired man"],u:"1f468-200d-1f9b0",v:["1f468-1f3fb-200d-1f9b0","1f468-1f3fc-200d-1f9b0","1f468-1f3fd-200d-1f9b0","1f468-1f3fe-200d-1f9b0","1f468-1f3ff-200d-1f9b0"],a:"11.0"},{n:["man: curly hair","curly haired man"],u:"1f468-200d-1f9b1",v:["1f468-1f3fb-200d-1f9b1","1f468-1f3fc-200d-1f9b1","1f468-1f3fd-200d-1f9b1","1f468-1f3fe-200d-1f9b1","1f468-1f3ff-200d-1f9b1"],a:"11.0"},{n:["man: white hair","white haired man"],u:"1f468-200d-1f9b3",v:["1f468-1f3fb-200d-1f9b3","1f468-1f3fc-200d-1f9b3","1f468-1f3fd-200d-1f9b3","1f468-1f3fe-200d-1f9b3","1f468-1f3ff-200d-1f9b3"],a:"11.0"},{n:["bald man","man: bald"],u:"1f468-200d-1f9b2",v:["1f468-1f3fb-200d-1f9b2","1f468-1f3fc-200d-1f9b2","1f468-1f3fd-200d-1f9b2","1f468-1f3fe-200d-1f9b2","1f468-1f3ff-200d-1f9b2"],a:"11.0"},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"],a:"0.6"},{n:["woman: red hair","red haired woman"],u:"1f469-200d-1f9b0",v:["1f469-1f3fb-200d-1f9b0","1f469-1f3fc-200d-1f9b0","1f469-1f3fd-200d-1f9b0","1f469-1f3fe-200d-1f9b0","1f469-1f3ff-200d-1f9b0"],a:"11.0"},{n:["person: red hair","red haired person"],u:"1f9d1-200d-1f9b0",v:["1f9d1-1f3fb-200d-1f9b0","1f9d1-1f3fc-200d-1f9b0","1f9d1-1f3fd-200d-1f9b0","1f9d1-1f3fe-200d-1f9b0","1f9d1-1f3ff-200d-1f9b0"],a:"12.1"},{n:["woman: curly hair","curly haired woman"],u:"1f469-200d-1f9b1",v:["1f469-1f3fb-200d-1f9b1","1f469-1f3fc-200d-1f9b1","1f469-1f3fd-200d-1f9b1","1f469-1f3fe-200d-1f9b1","1f469-1f3ff-200d-1f9b1"],a:"11.0"},{n:["person: curly hair","curly haired person"],u:"1f9d1-200d-1f9b1",v:["1f9d1-1f3fb-200d-1f9b1","1f9d1-1f3fc-200d-1f9b1","1f9d1-1f3fd-200d-1f9b1","1f9d1-1f3fe-200d-1f9b1","1f9d1-1f3ff-200d-1f9b1"],a:"12.1"},{n:["woman: white hair","white haired woman"],u:"1f469-200d-1f9b3",v:["1f469-1f3fb-200d-1f9b3","1f469-1f3fc-200d-1f9b3","1f469-1f3fd-200d-1f9b3","1f469-1f3fe-200d-1f9b3","1f469-1f3ff-200d-1f9b3"],a:"11.0"},{n:["person: white hair","white haired person"],u:"1f9d1-200d-1f9b3",v:["1f9d1-1f3fb-200d-1f9b3","1f9d1-1f3fc-200d-1f9b3","1f9d1-1f3fd-200d-1f9b3","1f9d1-1f3fe-200d-1f9b3","1f9d1-1f3ff-200d-1f9b3"],a:"12.1"},{n:["bald woman","woman: bald"],u:"1f469-200d-1f9b2",v:["1f469-1f3fb-200d-1f9b2","1f469-1f3fc-200d-1f9b2","1f469-1f3fd-200d-1f9b2","1f469-1f3fe-200d-1f9b2","1f469-1f3ff-200d-1f9b2"],a:"11.0"},{n:["bald person","person: bald"],u:"1f9d1-200d-1f9b2",v:["1f9d1-1f3fb-200d-1f9b2","1f9d1-1f3fc-200d-1f9b2","1f9d1-1f3fd-200d-1f9b2","1f9d1-1f3fe-200d-1f9b2","1f9d1-1f3ff-200d-1f9b2"],a:"12.1"},{n:["woman: blond hair","blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man: blond hair","blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["older adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"],a:"5.0"},{n:["older man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"],a:"0.6"},{n:["older woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"],a:"0.6"},{n:["person frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"],a:"0.6"},{n:["man frowning","man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman frowning","woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with pouting face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"],a:"0.6"},{n:["man pouting","man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman pouting","woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["no good","face with no good gesture"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"],a:"0.6"},{n:["man gesturing no","man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing no","woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ok woman","face with ok gesture"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"],a:"0.6"},{n:["man gesturing ok","man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing ok","woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["information desk person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"],a:"0.6"},{n:["man tipping hand","man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman tipping hand","woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["raising hand","happy person raising one hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"],a:"0.6"},{n:["man raising hand","man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman raising hand","woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["deaf person"],u:"1f9cf",v:["1f9cf-1f3fb","1f9cf-1f3fc","1f9cf-1f3fd","1f9cf-1f3fe","1f9cf-1f3ff"],a:"12.0"},{n:["deaf man"],u:"1f9cf-200d-2642-fe0f",v:["1f9cf-1f3fb-200d-2642-fe0f","1f9cf-1f3fc-200d-2642-fe0f","1f9cf-1f3fd-200d-2642-fe0f","1f9cf-1f3fe-200d-2642-fe0f","1f9cf-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["deaf woman"],u:"1f9cf-200d-2640-fe0f",v:["1f9cf-1f3fb-200d-2640-fe0f","1f9cf-1f3fc-200d-2640-fe0f","1f9cf-1f3fd-200d-2640-fe0f","1f9cf-1f3fe-200d-2640-fe0f","1f9cf-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["bow","person bowing deeply"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"],a:"0.6"},{n:["man bowing","man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bowing","woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["face palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"],a:"3.0"},{n:["man facepalming","man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman facepalming","woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"],a:"3.0"},{n:["man shrugging","man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman shrugging","woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["health worker"],u:"1f9d1-200d-2695-fe0f",v:["1f9d1-1f3fb-200d-2695-fe0f","1f9d1-1f3fc-200d-2695-fe0f","1f9d1-1f3fd-200d-2695-fe0f","1f9d1-1f3fe-200d-2695-fe0f","1f9d1-1f3ff-200d-2695-fe0f"],a:"12.1"},{n:["male-doctor","man health worker"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["female-doctor","woman health worker"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["student"],u:"1f9d1-200d-1f393",v:["1f9d1-1f3fb-200d-1f393","1f9d1-1f3fc-200d-1f393","1f9d1-1f3fd-200d-1f393","1f9d1-1f3fe-200d-1f393","1f9d1-1f3ff-200d-1f393"],a:"12.1"},{n:["man student","male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"],a:"4.0"},{n:["woman student","female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"],a:"4.0"},{n:["teacher"],u:"1f9d1-200d-1f3eb",v:["1f9d1-1f3fb-200d-1f3eb","1f9d1-1f3fc-200d-1f3eb","1f9d1-1f3fd-200d-1f3eb","1f9d1-1f3fe-200d-1f3eb","1f9d1-1f3ff-200d-1f3eb"],a:"12.1"},{n:["man teacher","male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"],a:"4.0"},{n:["woman teacher","female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"],a:"4.0"},{n:["judge"],u:"1f9d1-200d-2696-fe0f",v:["1f9d1-1f3fb-200d-2696-fe0f","1f9d1-1f3fc-200d-2696-fe0f","1f9d1-1f3fd-200d-2696-fe0f","1f9d1-1f3fe-200d-2696-fe0f","1f9d1-1f3ff-200d-2696-fe0f"],a:"12.1"},{n:["man judge","male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["woman judge","female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["farmer"],u:"1f9d1-200d-1f33e",v:["1f9d1-1f3fb-200d-1f33e","1f9d1-1f3fc-200d-1f33e","1f9d1-1f3fd-200d-1f33e","1f9d1-1f3fe-200d-1f33e","1f9d1-1f3ff-200d-1f33e"],a:"12.1"},{n:["man farmer","male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"],a:"4.0"},{n:["woman farmer","female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"],a:"4.0"},{n:["cook"],u:"1f9d1-200d-1f373",v:["1f9d1-1f3fb-200d-1f373","1f9d1-1f3fc-200d-1f373","1f9d1-1f3fd-200d-1f373","1f9d1-1f3fe-200d-1f373","1f9d1-1f3ff-200d-1f373"],a:"12.1"},{n:["man cook","male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"],a:"4.0"},{n:["woman cook","female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"],a:"4.0"},{n:["mechanic"],u:"1f9d1-200d-1f527",v:["1f9d1-1f3fb-200d-1f527","1f9d1-1f3fc-200d-1f527","1f9d1-1f3fd-200d-1f527","1f9d1-1f3fe-200d-1f527","1f9d1-1f3ff-200d-1f527"],a:"12.1"},{n:["man mechanic","male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"],a:"4.0"},{n:["woman mechanic","female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"],a:"4.0"},{n:["factory worker"],u:"1f9d1-200d-1f3ed",v:["1f9d1-1f3fb-200d-1f3ed","1f9d1-1f3fc-200d-1f3ed","1f9d1-1f3fd-200d-1f3ed","1f9d1-1f3fe-200d-1f3ed","1f9d1-1f3ff-200d-1f3ed"],a:"12.1"},{n:["man factory worker","male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"],a:"4.0"},{n:["woman factory worker","female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"],a:"4.0"},{n:["office worker"],u:"1f9d1-200d-1f4bc",v:["1f9d1-1f3fb-200d-1f4bc","1f9d1-1f3fc-200d-1f4bc","1f9d1-1f3fd-200d-1f4bc","1f9d1-1f3fe-200d-1f4bc","1f9d1-1f3ff-200d-1f4bc"],a:"12.1"},{n:["man office worker","male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"],a:"4.0"},{n:["woman office worker","female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"],a:"4.0"},{n:["scientist"],u:"1f9d1-200d-1f52c",v:["1f9d1-1f3fb-200d-1f52c","1f9d1-1f3fc-200d-1f52c","1f9d1-1f3fd-200d-1f52c","1f9d1-1f3fe-200d-1f52c","1f9d1-1f3ff-200d-1f52c"],a:"12.1"},{n:["man scientist","male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"],a:"4.0"},{n:["woman scientist","female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"],a:"4.0"},{n:["technologist"],u:"1f9d1-200d-1f4bb",v:["1f9d1-1f3fb-200d-1f4bb","1f9d1-1f3fc-200d-1f4bb","1f9d1-1f3fd-200d-1f4bb","1f9d1-1f3fe-200d-1f4bb","1f9d1-1f3ff-200d-1f4bb"],a:"12.1"},{n:["man technologist","male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"],a:"4.0"},{n:["woman technologist","female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"],a:"4.0"},{n:["singer"],u:"1f9d1-200d-1f3a4",v:["1f9d1-1f3fb-200d-1f3a4","1f9d1-1f3fc-200d-1f3a4","1f9d1-1f3fd-200d-1f3a4","1f9d1-1f3fe-200d-1f3a4","1f9d1-1f3ff-200d-1f3a4"],a:"12.1"},{n:["man singer","male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"],a:"4.0"},{n:["woman singer","female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"],a:"4.0"},{n:["artist"],u:"1f9d1-200d-1f3a8",v:["1f9d1-1f3fb-200d-1f3a8","1f9d1-1f3fc-200d-1f3a8","1f9d1-1f3fd-200d-1f3a8","1f9d1-1f3fe-200d-1f3a8","1f9d1-1f3ff-200d-1f3a8"],a:"12.1"},{n:["man artist","male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"],a:"4.0"},{n:["woman artist","female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"],a:"4.0"},{n:["pilot"],u:"1f9d1-200d-2708-fe0f",v:["1f9d1-1f3fb-200d-2708-fe0f","1f9d1-1f3fc-200d-2708-fe0f","1f9d1-1f3fd-200d-2708-fe0f","1f9d1-1f3fe-200d-2708-fe0f","1f9d1-1f3ff-200d-2708-fe0f"],a:"12.1"},{n:["man pilot","male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["woman pilot","female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["astronaut"],u:"1f9d1-200d-1f680",v:["1f9d1-1f3fb-200d-1f680","1f9d1-1f3fc-200d-1f680","1f9d1-1f3fd-200d-1f680","1f9d1-1f3fe-200d-1f680","1f9d1-1f3ff-200d-1f680"],a:"12.1"},{n:["man astronaut","male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"],a:"4.0"},{n:["woman astronaut","female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"],a:"4.0"},{n:["firefighter"],u:"1f9d1-200d-1f692",v:["1f9d1-1f3fb-200d-1f692","1f9d1-1f3fc-200d-1f692","1f9d1-1f3fd-200d-1f692","1f9d1-1f3fe-200d-1f692","1f9d1-1f3ff-200d-1f692"],a:"12.1"},{n:["man firefighter","male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"],a:"4.0"},{n:["woman firefighter","female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"],a:"4.0"},{n:["cop","police officer"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"],a:"0.6"},{n:["man police officer","male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman police officer","female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["detective","sleuth or spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"],a:"0.7"},{n:["man detective","male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman detective","female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"],a:"0.6"},{n:["man guard","male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman guard","female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ninja"],u:"1f977",v:["1f977-1f3fb","1f977-1f3fc","1f977-1f3fd","1f977-1f3fe","1f977-1f3ff"],a:"13.0"},{n:["construction worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"],a:"0.6"},{n:["man construction worker","male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman construction worker","female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with crown"],u:"1fac5",v:["1fac5-1f3fb","1fac5-1f3fc","1fac5-1f3fd","1fac5-1f3fe","1fac5-1f3ff"],a:"14.0"},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"],a:"3.0"},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"],a:"0.6"},{n:["man with turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"],a:"0.6"},{n:["man wearing turban","man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman wearing turban","woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man with gua pi mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"],a:"0.6"},{n:["person with headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"],a:"5.0"},{n:["man in tuxedo","person in tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"],a:"3.0"},{n:["man in tuxedo"],u:"1f935-200d-2642-fe0f",v:["1f935-1f3fb-200d-2642-fe0f","1f935-1f3fc-200d-2642-fe0f","1f935-1f3fd-200d-2642-fe0f","1f935-1f3fe-200d-2642-fe0f","1f935-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman in tuxedo"],u:"1f935-200d-2640-fe0f",v:["1f935-1f3fb-200d-2640-fe0f","1f935-1f3fc-200d-2640-fe0f","1f935-1f3fd-200d-2640-fe0f","1f935-1f3fe-200d-2640-fe0f","1f935-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["bride with veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"],a:"0.6"},{n:["man with veil"],u:"1f470-200d-2642-fe0f",v:["1f470-1f3fb-200d-2642-fe0f","1f470-1f3fc-200d-2642-fe0f","1f470-1f3fd-200d-2642-fe0f","1f470-1f3fe-200d-2642-fe0f","1f470-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman with veil"],u:"1f470-200d-2640-fe0f",v:["1f470-1f3fb-200d-2640-fe0f","1f470-1f3fc-200d-2640-fe0f","1f470-1f3fd-200d-2640-fe0f","1f470-1f3fe-200d-2640-fe0f","1f470-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["pregnant woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"],a:"3.0"},{n:["pregnant man"],u:"1fac3",v:["1fac3-1f3fb","1fac3-1f3fc","1fac3-1f3fd","1fac3-1f3fe","1fac3-1f3ff"],a:"14.0"},{n:["pregnant person"],u:"1fac4",v:["1fac4-1f3fb","1fac4-1f3fc","1fac4-1f3fd","1fac4-1f3fe","1fac4-1f3ff"],a:"14.0"},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"],a:"5.0"},{n:["woman feeding baby"],u:"1f469-200d-1f37c",v:["1f469-1f3fb-200d-1f37c","1f469-1f3fc-200d-1f37c","1f469-1f3fd-200d-1f37c","1f469-1f3fe-200d-1f37c","1f469-1f3ff-200d-1f37c"],a:"13.0"},{n:["man feeding baby"],u:"1f468-200d-1f37c",v:["1f468-1f3fb-200d-1f37c","1f468-1f3fc-200d-1f37c","1f468-1f3fd-200d-1f37c","1f468-1f3fe-200d-1f37c","1f468-1f3ff-200d-1f37c"],a:"13.0"},{n:["person feeding baby"],u:"1f9d1-200d-1f37c",v:["1f9d1-1f3fb-200d-1f37c","1f9d1-1f3fc-200d-1f37c","1f9d1-1f3fd-200d-1f37c","1f9d1-1f3fe-200d-1f37c","1f9d1-1f3ff-200d-1f37c"],a:"13.0"},{n:["angel","baby angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"],a:"0.6"},{n:["santa","father christmas"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"],a:"0.6"},{n:["mrs claus","mother christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"],a:"3.0"},{n:["mx claus"],u:"1f9d1-200d-1f384",v:["1f9d1-1f3fb-200d-1f384","1f9d1-1f3fc-200d-1f384","1f9d1-1f3fd-200d-1f384","1f9d1-1f3fe-200d-1f384","1f9d1-1f3ff-200d-1f384"],a:"13.0"},{n:["superhero"],u:"1f9b8",v:["1f9b8-1f3fb","1f9b8-1f3fc","1f9b8-1f3fd","1f9b8-1f3fe","1f9b8-1f3ff"],a:"11.0"},{n:["man superhero","male superhero"],u:"1f9b8-200d-2642-fe0f",v:["1f9b8-1f3fb-200d-2642-fe0f","1f9b8-1f3fc-200d-2642-fe0f","1f9b8-1f3fd-200d-2642-fe0f","1f9b8-1f3fe-200d-2642-fe0f","1f9b8-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman superhero","female superhero"],u:"1f9b8-200d-2640-fe0f",v:["1f9b8-1f3fb-200d-2640-fe0f","1f9b8-1f3fc-200d-2640-fe0f","1f9b8-1f3fd-200d-2640-fe0f","1f9b8-1f3fe-200d-2640-fe0f","1f9b8-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["supervillain"],u:"1f9b9",v:["1f9b9-1f3fb","1f9b9-1f3fc","1f9b9-1f3fd","1f9b9-1f3fe","1f9b9-1f3ff"],a:"11.0"},{n:["man supervillain","male supervillain"],u:"1f9b9-200d-2642-fe0f",v:["1f9b9-1f3fb-200d-2642-fe0f","1f9b9-1f3fc-200d-2642-fe0f","1f9b9-1f3fd-200d-2642-fe0f","1f9b9-1f3fe-200d-2642-fe0f","1f9b9-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman supervillain","female supervillain"],u:"1f9b9-200d-2640-fe0f",v:["1f9b9-1f3fb-200d-2640-fe0f","1f9b9-1f3fc-200d-2640-fe0f","1f9b9-1f3fd-200d-2640-fe0f","1f9b9-1f3fe-200d-2640-fe0f","1f9b9-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"],a:"5.0"},{n:["man mage","male mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman mage","female mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"],a:"5.0"},{n:["man fairy","male fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman fairy","female fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"],a:"5.0"},{n:["man vampire","male vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman vampire","female vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"],a:"5.0"},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"],a:"5.0"},{n:["man elf","male elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman elf","female elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["genie"],u:"1f9de",a:"5.0"},{n:["man genie","male genie"],u:"1f9de-200d-2642-fe0f",a:"5.0"},{n:["woman genie","female genie"],u:"1f9de-200d-2640-fe0f",a:"5.0"},{n:["zombie"],u:"1f9df",a:"5.0"},{n:["man zombie","male zombie"],u:"1f9df-200d-2642-fe0f",a:"5.0"},{n:["woman zombie","female zombie"],u:"1f9df-200d-2640-fe0f",a:"5.0"},{n:["troll"],u:"1f9cc",a:"14.0"},{n:["massage","face massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"],a:"0.6"},{n:["man getting massage","man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting massage","woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"],a:"0.6"},{n:["man getting haircut","man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting haircut","woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["walking","pedestrian"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"],a:"0.6"},{n:["man walking","man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman walking","woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["standing person"],u:"1f9cd",v:["1f9cd-1f3fb","1f9cd-1f3fc","1f9cd-1f3fd","1f9cd-1f3fe","1f9cd-1f3ff"],a:"12.0"},{n:["man standing"],u:"1f9cd-200d-2642-fe0f",v:["1f9cd-1f3fb-200d-2642-fe0f","1f9cd-1f3fc-200d-2642-fe0f","1f9cd-1f3fd-200d-2642-fe0f","1f9cd-1f3fe-200d-2642-fe0f","1f9cd-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman standing"],u:"1f9cd-200d-2640-fe0f",v:["1f9cd-1f3fb-200d-2640-fe0f","1f9cd-1f3fc-200d-2640-fe0f","1f9cd-1f3fd-200d-2640-fe0f","1f9cd-1f3fe-200d-2640-fe0f","1f9cd-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["kneeling person"],u:"1f9ce",v:["1f9ce-1f3fb","1f9ce-1f3fc","1f9ce-1f3fd","1f9ce-1f3fe","1f9ce-1f3ff"],a:"12.0"},{n:["man kneeling"],u:"1f9ce-200d-2642-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f","1f9ce-1f3fc-200d-2642-fe0f","1f9ce-1f3fd-200d-2642-fe0f","1f9ce-1f3fe-200d-2642-fe0f","1f9ce-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman kneeling"],u:"1f9ce-200d-2640-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f","1f9ce-1f3fc-200d-2640-fe0f","1f9ce-1f3fd-200d-2640-fe0f","1f9ce-1f3fe-200d-2640-fe0f","1f9ce-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["person with white cane","person with probing cane"],u:"1f9d1-200d-1f9af",v:["1f9d1-1f3fb-200d-1f9af","1f9d1-1f3fc-200d-1f9af","1f9d1-1f3fd-200d-1f9af","1f9d1-1f3fe-200d-1f9af","1f9d1-1f3ff-200d-1f9af"],a:"12.1"},{n:["man with white cane","man with probing cane"],u:"1f468-200d-1f9af",v:["1f468-1f3fb-200d-1f9af","1f468-1f3fc-200d-1f9af","1f468-1f3fd-200d-1f9af","1f468-1f3fe-200d-1f9af","1f468-1f3ff-200d-1f9af"],a:"12.0"},{n:["woman with white cane","woman with probing cane"],u:"1f469-200d-1f9af",v:["1f469-1f3fb-200d-1f9af","1f469-1f3fc-200d-1f9af","1f469-1f3fd-200d-1f9af","1f469-1f3fe-200d-1f9af","1f469-1f3ff-200d-1f9af"],a:"12.0"},{n:["person in motorized wheelchair"],u:"1f9d1-200d-1f9bc",v:["1f9d1-1f3fb-200d-1f9bc","1f9d1-1f3fc-200d-1f9bc","1f9d1-1f3fd-200d-1f9bc","1f9d1-1f3fe-200d-1f9bc","1f9d1-1f3ff-200d-1f9bc"],a:"12.1"},{n:["man in motorized wheelchair"],u:"1f468-200d-1f9bc",v:["1f468-1f3fb-200d-1f9bc","1f468-1f3fc-200d-1f9bc","1f468-1f3fd-200d-1f9bc","1f468-1f3fe-200d-1f9bc","1f468-1f3ff-200d-1f9bc"],a:"12.0"},{n:["woman in motorized wheelchair"],u:"1f469-200d-1f9bc",v:["1f469-1f3fb-200d-1f9bc","1f469-1f3fc-200d-1f9bc","1f469-1f3fd-200d-1f9bc","1f469-1f3fe-200d-1f9bc","1f469-1f3ff-200d-1f9bc"],a:"12.0"},{n:["person in manual wheelchair"],u:"1f9d1-200d-1f9bd",v:["1f9d1-1f3fb-200d-1f9bd","1f9d1-1f3fc-200d-1f9bd","1f9d1-1f3fd-200d-1f9bd","1f9d1-1f3fe-200d-1f9bd","1f9d1-1f3ff-200d-1f9bd"],a:"12.1"},{n:["man in manual wheelchair"],u:"1f468-200d-1f9bd",v:["1f468-1f3fb-200d-1f9bd","1f468-1f3fc-200d-1f9bd","1f468-1f3fd-200d-1f9bd","1f468-1f3fe-200d-1f9bd","1f468-1f3ff-200d-1f9bd"],a:"12.0"},{n:["woman in manual wheelchair"],u:"1f469-200d-1f9bd",v:["1f469-1f3fb-200d-1f9bd","1f469-1f3fc-200d-1f9bd","1f469-1f3fd-200d-1f9bd","1f469-1f3fe-200d-1f9bd","1f469-1f3ff-200d-1f9bd"],a:"12.0"},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"],a:"0.6"},{n:["man running","man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman running","woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"],a:"0.6"},{n:["man dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"],a:"3.0"},{n:["person in suit levitating","man in business suit levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"],a:"0.7"},{n:["dancers","woman with bunny ears"],u:"1f46f",a:"0.6"},{n:["men with bunny ears","men-with-bunny-ears-partying","man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f",a:"4.0"},{n:["women with bunny ears","women-with-bunny-ears-partying","woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f",a:"4.0"},{n:["person in steamy room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"],a:"5.0"},{n:["man in steamy room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in steamy room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["person climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"],a:"5.0"},{n:["man climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fencer"],u:"1f93a",a:"3.0"},{n:["horse racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"],a:"1.0"},{n:["skier"],u:"26f7-fe0f",a:"0.7"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"],a:"0.6"},{n:["golfer","person golfing"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"],a:"0.7"},{n:["man golfing","man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman golfing","woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"],a:"0.6"},{n:["man surfing","man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman surfing","woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"],a:"1.0"},{n:["man rowing boat","man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman rowing boat","woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"],a:"0.6"},{n:["man swimming","man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman swimming","woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with ball","person bouncing ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"],a:"0.7"},{n:["man bouncing ball","man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bouncing ball","woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["weight lifter","person lifting weights"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"],a:"0.7"},{n:["man lifting weights","man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman lifting weights","woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"],a:"1.0"},{n:["man biking","man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman biking","woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["mountain bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"],a:"1.0"},{n:["man mountain biking","man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman mountain biking","woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person doing cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"],a:"3.0"},{n:["man cartwheeling","man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman cartwheeling","woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["wrestlers"],u:"1f93c",a:"3.0"},{n:["men wrestling","man-wrestling"],u:"1f93c-200d-2642-fe0f",a:"4.0"},{n:["women wrestling","woman-wrestling"],u:"1f93c-200d-2640-fe0f",a:"4.0"},{n:["water polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"],a:"3.0"},{n:["man playing water polo","man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing water polo","woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"],a:"3.0"},{n:["man playing handball","man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing handball","woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"],a:"3.0"},{n:["man juggling","man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman juggling","woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person in lotus position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"],a:"5.0"},{n:["man in lotus position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in lotus position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"],a:"0.6"},{n:["sleeping accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"],a:"1.0"},{n:["people holding hands"],u:"1f9d1-200d-1f91d-200d-1f9d1",v:["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff"],a:"12.0"},{n:["women holding hands","two women holding hands"],u:"1f46d",v:["1f46d-1f3fb","1f46d-1f3fc","1f46d-1f3fd","1f46d-1f3fe","1f46d-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe"],a:"1.0"},{n:["couple","man and woman holding hands","woman and man holding hands"],u:"1f46b",v:["1f46b-1f3fb","1f46b-1f3fc","1f46b-1f3fd","1f46b-1f3fe","1f46b-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"0.6"},{n:["men holding hands","two men holding hands"],u:"1f46c",v:["1f46c-1f3fb","1f46c-1f3fc","1f46c-1f3fd","1f46c-1f3fe","1f46c-1f3ff","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"1.0"},{n:["kiss","couplekiss"],u:"1f48f",v:["1f48f-1f3fb","1f48f-1f3fc","1f48f-1f3fd","1f48f-1f3fe","1f48f-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-kiss-man","kiss: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["man-kiss-man","kiss: man, man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-kiss-woman","kiss: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff"],a:"2.0"},{n:["couple with heart"],u:"1f491",v:["1f491-1f3fb","1f491-1f3fc","1f491-1f3fd","1f491-1f3fe","1f491-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-heart-man","couple with heart: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["man-heart-man","couple with heart: man, man"],u:"1f468-200d-2764-fe0f-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-heart-woman","couple with heart: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff"],a:"2.0"},{n:["family"],u:"1f46a",a:"0.6"},{n:["man-woman-boy","family: man, woman, boy"],u:"1f468-200d-1f469-200d-1f466",a:"2.0"},{n:["man-woman-girl","family: man, woman, girl"],u:"1f468-200d-1f469-200d-1f467",a:"2.0"},{n:["man-woman-girl-boy","family: man, woman, girl, boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["man-woman-boy-boy","family: man, woman, boy, boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["man-woman-girl-girl","family: man, woman, girl, girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-man-boy","family: man, man, boy"],u:"1f468-200d-1f468-200d-1f466",a:"2.0"},{n:["man-man-girl","family: man, man, girl"],u:"1f468-200d-1f468-200d-1f467",a:"2.0"},{n:["man-man-girl-boy","family: man, man, girl, boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466",a:"2.0"},{n:["man-man-boy-boy","family: man, man, boy, boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466",a:"2.0"},{n:["man-man-girl-girl","family: man, man, girl, girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467",a:"2.0"},{n:["woman-woman-boy","family: woman, woman, boy"],u:"1f469-200d-1f469-200d-1f466",a:"2.0"},{n:["woman-woman-girl","family: woman, woman, girl"],u:"1f469-200d-1f469-200d-1f467",a:"2.0"},{n:["woman-woman-girl-boy","family: woman, woman, girl, boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["woman-woman-boy-boy","family: woman, woman, boy, boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["woman-woman-girl-girl","family: woman, woman, girl, girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-boy","family: man, boy"],u:"1f468-200d-1f466",a:"4.0"},{n:["man-boy-boy","family: man, boy, boy"],u:"1f468-200d-1f466-200d-1f466",a:"4.0"},{n:["man-girl","family: man, girl"],u:"1f468-200d-1f467",a:"4.0"},{n:["man-girl-boy","family: man, girl, boy"],u:"1f468-200d-1f467-200d-1f466",a:"4.0"},{n:["man-girl-girl","family: man, girl, girl"],u:"1f468-200d-1f467-200d-1f467",a:"4.0"},{n:["woman-boy","family: woman, boy"],u:"1f469-200d-1f466",a:"4.0"},{n:["woman-boy-boy","family: woman, boy, boy"],u:"1f469-200d-1f466-200d-1f466",a:"4.0"},{n:["woman-girl","family: woman, girl"],u:"1f469-200d-1f467",a:"4.0"},{n:["woman-girl-boy","family: woman, girl, boy"],u:"1f469-200d-1f467-200d-1f466",a:"4.0"},{n:["woman-girl-girl","family: woman, girl, girl"],u:"1f469-200d-1f467-200d-1f467",a:"4.0"},{n:["speaking head","speaking head in silhouette"],u:"1f5e3-fe0f",a:"0.7"},{n:["bust in silhouette"],u:"1f464",a:"0.6"},{n:["busts in silhouette"],u:"1f465",a:"1.0"},{n:["people hugging"],u:"1fac2",a:"13.0"},{n:["footprints"],u:"1f463",a:"0.6"}],x1=[{n:["monkey face"],u:"1f435",a:"0.6"},{n:["monkey"],u:"1f412",a:"0.6"},{n:["gorilla"],u:"1f98d",a:"3.0"},{n:["orangutan"],u:"1f9a7",a:"12.0"},{n:["dog","dog face"],u:"1f436",a:"0.6"},{n:["dog","dog2"],u:"1f415",a:"0.7"},{n:["guide dog"],u:"1f9ae",a:"12.0"},{n:["service dog"],u:"1f415-200d-1f9ba",a:"12.0"},{n:["poodle"],u:"1f429",a:"0.6"},{n:["wolf","wolf face"],u:"1f43a",a:"0.6"},{n:["fox face"],u:"1f98a",a:"3.0"},{n:["raccoon"],u:"1f99d",a:"11.0"},{n:["cat","cat face"],u:"1f431",a:"0.6"},{n:["cat","cat2"],u:"1f408",a:"0.7"},{n:["black cat"],u:"1f408-200d-2b1b",a:"13.0"},{n:["lion face"],u:"1f981",a:"1.0"},{n:["tiger","tiger face"],u:"1f42f",a:"0.6"},{n:["tiger","tiger2"],u:"1f405",a:"1.0"},{n:["leopard"],u:"1f406",a:"1.0"},{n:["horse","horse face"],u:"1f434",a:"0.6"},{n:["horse","racehorse"],u:"1f40e",a:"0.6"},{n:["unicorn face"],u:"1f984",a:"1.0"},{n:["zebra face"],u:"1f993",a:"5.0"},{n:["deer"],u:"1f98c",a:"3.0"},{n:["bison"],u:"1f9ac",a:"13.0"},{n:["cow","cow face"],u:"1f42e",a:"0.6"},{n:["ox"],u:"1f402",a:"1.0"},{n:["water buffalo"],u:"1f403",a:"1.0"},{n:["cow","cow2"],u:"1f404",a:"1.0"},{n:["pig","pig face"],u:"1f437",a:"0.6"},{n:["pig","pig2"],u:"1f416",a:"1.0"},{n:["boar"],u:"1f417",a:"0.6"},{n:["pig nose"],u:"1f43d",a:"0.6"},{n:["ram"],u:"1f40f",a:"1.0"},{n:["sheep"],u:"1f411",a:"0.6"},{n:["goat"],u:"1f410",a:"1.0"},{n:["dromedary camel"],u:"1f42a",a:"1.0"},{n:["camel","bactrian camel"],u:"1f42b",a:"0.6"},{n:["llama"],u:"1f999",a:"11.0"},{n:["giraffe face"],u:"1f992",a:"5.0"},{n:["elephant"],u:"1f418",a:"0.6"},{n:["mammoth"],u:"1f9a3",a:"13.0"},{n:["rhinoceros"],u:"1f98f",a:"3.0"},{n:["hippopotamus"],u:"1f99b",a:"11.0"},{n:["mouse","mouse face"],u:"1f42d",a:"0.6"},{n:["mouse","mouse2"],u:"1f401",a:"1.0"},{n:["rat"],u:"1f400",a:"1.0"},{n:["hamster","hamster face"],u:"1f439",a:"0.6"},{n:["rabbit","rabbit face"],u:"1f430",a:"0.6"},{n:["rabbit","rabbit2"],u:"1f407",a:"1.0"},{n:["chipmunk"],u:"1f43f-fe0f",a:"0.7"},{n:["beaver"],u:"1f9ab",a:"13.0"},{n:["hedgehog"],u:"1f994",a:"5.0"},{n:["bat"],u:"1f987",a:"3.0"},{n:["bear","bear face"],u:"1f43b",a:"0.6"},{n:["polar bear"],u:"1f43b-200d-2744-fe0f",a:"13.0"},{n:["koala"],u:"1f428",a:"0.6"},{n:["panda face"],u:"1f43c",a:"0.6"},{n:["sloth"],u:"1f9a5",a:"12.0"},{n:["otter"],u:"1f9a6",a:"12.0"},{n:["skunk"],u:"1f9a8",a:"12.0"},{n:["kangaroo"],u:"1f998",a:"11.0"},{n:["badger"],u:"1f9a1",a:"11.0"},{n:["feet","paw prints"],u:"1f43e",a:"0.6"},{n:["turkey"],u:"1f983",a:"1.0"},{n:["chicken"],u:"1f414",a:"0.6"},{n:["rooster"],u:"1f413",a:"1.0"},{n:["hatching chick"],u:"1f423",a:"0.6"},{n:["baby chick"],u:"1f424",a:"0.6"},{n:["hatched chick","front-facing baby chick"],u:"1f425",a:"0.6"},{n:["bird"],u:"1f426",a:"0.6"},{n:["penguin"],u:"1f427",a:"0.6"},{n:["dove","dove of peace"],u:"1f54a-fe0f",a:"0.7"},{n:["eagle"],u:"1f985",a:"3.0"},{n:["duck"],u:"1f986",a:"3.0"},{n:["swan"],u:"1f9a2",a:"11.0"},{n:["owl"],u:"1f989",a:"3.0"},{n:["dodo"],u:"1f9a4",a:"13.0"},{n:["feather"],u:"1fab6",a:"13.0"},{n:["flamingo"],u:"1f9a9",a:"12.0"},{n:["peacock"],u:"1f99a",a:"11.0"},{n:["parrot"],u:"1f99c",a:"11.0"},{n:["frog","frog face"],u:"1f438",a:"0.6"},{n:["crocodile"],u:"1f40a",a:"1.0"},{n:["turtle"],u:"1f422",a:"0.6"},{n:["lizard"],u:"1f98e",a:"3.0"},{n:["snake"],u:"1f40d",a:"0.6"},{n:["dragon face"],u:"1f432",a:"0.6"},{n:["dragon"],u:"1f409",a:"1.0"},{n:["sauropod"],u:"1f995",a:"5.0"},{n:["t-rex"],u:"1f996",a:"5.0"},{n:["whale","spouting whale"],u:"1f433",a:"0.6"},{n:["whale","whale2"],u:"1f40b",a:"1.0"},{n:["dolphin","flipper"],u:"1f42c",a:"0.6"},{n:["seal"],u:"1f9ad",a:"13.0"},{n:["fish"],u:"1f41f",a:"0.6"},{n:["tropical fish"],u:"1f420",a:"0.6"},{n:["blowfish"],u:"1f421",a:"0.6"},{n:["shark"],u:"1f988",a:"3.0"},{n:["octopus"],u:"1f419",a:"0.6"},{n:["shell","spiral shell"],u:"1f41a",a:"0.6"},{n:["coral"],u:"1fab8",a:"14.0"},{n:["snail"],u:"1f40c",a:"0.6"},{n:["butterfly"],u:"1f98b",a:"3.0"},{n:["bug"],u:"1f41b",a:"0.6"},{n:["ant"],u:"1f41c",a:"0.6"},{n:["bee","honeybee"],u:"1f41d",a:"0.6"},{n:["beetle"],u:"1fab2",a:"13.0"},{n:["ladybug","lady beetle"],u:"1f41e",a:"0.6"},{n:["cricket"],u:"1f997",a:"5.0"},{n:["cockroach"],u:"1fab3",a:"13.0"},{n:["spider"],u:"1f577-fe0f",a:"0.7"},{n:["spider web"],u:"1f578-fe0f",a:"0.7"},{n:["scorpion"],u:"1f982",a:"1.0"},{n:["mosquito"],u:"1f99f",a:"11.0"},{n:["fly"],u:"1fab0",a:"13.0"},{n:["worm"],u:"1fab1",a:"13.0"},{n:["microbe"],u:"1f9a0",a:"11.0"},{n:["bouquet"],u:"1f490",a:"0.6"},{n:["cherry blossom"],u:"1f338",a:"0.6"},{n:["white flower"],u:"1f4ae",a:"0.6"},{n:["lotus"],u:"1fab7",a:"14.0"},{n:["rosette"],u:"1f3f5-fe0f",a:"0.7"},{n:["rose"],u:"1f339",a:"0.6"},{n:["wilted flower"],u:"1f940",a:"3.0"},{n:["hibiscus"],u:"1f33a",a:"0.6"},{n:["sunflower"],u:"1f33b",a:"0.6"},{n:["blossom"],u:"1f33c",a:"0.6"},{n:["tulip"],u:"1f337",a:"0.6"},{n:["seedling"],u:"1f331",a:"0.6"},{n:["potted plant"],u:"1fab4",a:"13.0"},{n:["evergreen tree"],u:"1f332",a:"1.0"},{n:["deciduous tree"],u:"1f333",a:"1.0"},{n:["palm tree"],u:"1f334",a:"0.6"},{n:["cactus"],u:"1f335",a:"0.6"},{n:["ear of rice"],u:"1f33e",a:"0.6"},{n:["herb"],u:"1f33f",a:"0.6"},{n:["shamrock"],u:"2618-fe0f",a:"1.0"},{n:["four leaf clover"],u:"1f340",a:"0.6"},{n:["maple leaf"],u:"1f341",a:"0.6"},{n:["fallen leaf"],u:"1f342",a:"0.6"},{n:["leaves","leaf fluttering in wind"],u:"1f343",a:"0.6"},{n:["empty nest"],u:"1fab9",a:"14.0"},{n:["nest with eggs"],u:"1faba",a:"14.0"}],S1=[{n:["grapes"],u:"1f347",a:"0.6"},{n:["melon"],u:"1f348",a:"0.6"},{n:["watermelon"],u:"1f349",a:"0.6"},{n:["tangerine"],u:"1f34a",a:"0.6"},{n:["lemon"],u:"1f34b",a:"1.0"},{n:["banana"],u:"1f34c",a:"0.6"},{n:["pineapple"],u:"1f34d",a:"0.6"},{n:["mango"],u:"1f96d",a:"11.0"},{n:["apple","red apple"],u:"1f34e",a:"0.6"},{n:["green apple"],u:"1f34f",a:"0.6"},{n:["pear"],u:"1f350",a:"1.0"},{n:["peach"],u:"1f351",a:"0.6"},{n:["cherries"],u:"1f352",a:"0.6"},{n:["strawberry"],u:"1f353",a:"0.6"},{n:["blueberries"],u:"1fad0",a:"13.0"},{n:["kiwifruit"],u:"1f95d",a:"3.0"},{n:["tomato"],u:"1f345",a:"0.6"},{n:["olive"],u:"1fad2",a:"13.0"},{n:["coconut"],u:"1f965",a:"5.0"},{n:["avocado"],u:"1f951",a:"3.0"},{n:["eggplant","aubergine"],u:"1f346",a:"0.6"},{n:["potato"],u:"1f954",a:"3.0"},{n:["carrot"],u:"1f955",a:"3.0"},{n:["corn","ear of maize"],u:"1f33d",a:"0.6"},{n:["hot pepper"],u:"1f336-fe0f",a:"0.7"},{n:["bell pepper"],u:"1fad1",a:"13.0"},{n:["cucumber"],u:"1f952",a:"3.0"},{n:["leafy green"],u:"1f96c",a:"11.0"},{n:["broccoli"],u:"1f966",a:"5.0"},{n:["garlic"],u:"1f9c4",a:"12.0"},{n:["onion"],u:"1f9c5",a:"12.0"},{n:["mushroom"],u:"1f344",a:"0.6"},{n:["peanuts"],u:"1f95c",a:"3.0"},{n:["beans"],u:"1fad8",a:"14.0"},{n:["chestnut"],u:"1f330",a:"0.6"},{n:["bread"],u:"1f35e",a:"0.6"},{n:["croissant"],u:"1f950",a:"3.0"},{n:["baguette bread"],u:"1f956",a:"3.0"},{n:["flatbread"],u:"1fad3",a:"13.0"},{n:["pretzel"],u:"1f968",a:"5.0"},{n:["bagel"],u:"1f96f",a:"11.0"},{n:["pancakes"],u:"1f95e",a:"3.0"},{n:["waffle"],u:"1f9c7",a:"12.0"},{n:["cheese wedge"],u:"1f9c0",a:"1.0"},{n:["meat on bone"],u:"1f356",a:"0.6"},{n:["poultry leg"],u:"1f357",a:"0.6"},{n:["cut of meat"],u:"1f969",a:"5.0"},{n:["bacon"],u:"1f953",a:"3.0"},{n:["hamburger"],u:"1f354",a:"0.6"},{n:["fries","french fries"],u:"1f35f",a:"0.6"},{n:["pizza","slice of pizza"],u:"1f355",a:"0.6"},{n:["hotdog","hot dog"],u:"1f32d",a:"1.0"},{n:["sandwich"],u:"1f96a",a:"5.0"},{n:["taco"],u:"1f32e",a:"1.0"},{n:["burrito"],u:"1f32f",a:"1.0"},{n:["tamale"],u:"1fad4",a:"13.0"},{n:["stuffed flatbread"],u:"1f959",a:"3.0"},{n:["falafel"],u:"1f9c6",a:"12.0"},{n:["egg"],u:"1f95a",a:"3.0"},{n:["cooking","fried egg"],u:"1f373",a:"0.6"},{n:["shallow pan of food"],u:"1f958",a:"3.0"},{n:["stew","pot of food"],u:"1f372",a:"0.6"},{n:["fondue"],u:"1fad5",a:"13.0"},{n:["bowl with spoon"],u:"1f963",a:"5.0"},{n:["green salad"],u:"1f957",a:"3.0"},{n:["popcorn"],u:"1f37f",a:"1.0"},{n:["butter"],u:"1f9c8",a:"12.0"},{n:["salt","salt shaker"],u:"1f9c2",a:"11.0"},{n:["canned food"],u:"1f96b",a:"5.0"},{n:["bento","bento box"],u:"1f371",a:"0.6"},{n:["rice cracker"],u:"1f358",a:"0.6"},{n:["rice ball"],u:"1f359",a:"0.6"},{n:["rice","cooked rice"],u:"1f35a",a:"0.6"},{n:["curry","curry and rice"],u:"1f35b",a:"0.6"},{n:["ramen","steaming bowl"],u:"1f35c",a:"0.6"},{n:["spaghetti"],u:"1f35d",a:"0.6"},{n:["sweet potato","roasted sweet potato"],u:"1f360",a:"0.6"},{n:["oden"],u:"1f362",a:"0.6"},{n:["sushi"],u:"1f363",a:"0.6"},{n:["fried shrimp"],u:"1f364",a:"0.6"},{n:["fish cake","fish cake with swirl design"],u:"1f365",a:"0.6"},{n:["moon cake"],u:"1f96e",a:"11.0"},{n:["dango"],u:"1f361",a:"0.6"},{n:["dumpling"],u:"1f95f",a:"5.0"},{n:["fortune cookie"],u:"1f960",a:"5.0"},{n:["takeout box"],u:"1f961",a:"5.0"},{n:["crab"],u:"1f980",a:"1.0"},{n:["lobster"],u:"1f99e",a:"11.0"},{n:["shrimp"],u:"1f990",a:"3.0"},{n:["squid"],u:"1f991",a:"3.0"},{n:["oyster"],u:"1f9aa",a:"12.0"},{n:["icecream","soft ice cream"],u:"1f366",a:"0.6"},{n:["shaved ice"],u:"1f367",a:"0.6"},{n:["ice cream"],u:"1f368",a:"0.6"},{n:["doughnut"],u:"1f369",a:"0.6"},{n:["cookie"],u:"1f36a",a:"0.6"},{n:["birthday","birthday cake"],u:"1f382",a:"0.6"},{n:["cake","shortcake"],u:"1f370",a:"0.6"},{n:["cupcake"],u:"1f9c1",a:"11.0"},{n:["pie"],u:"1f967",a:"5.0"},{n:["chocolate bar"],u:"1f36b",a:"0.6"},{n:["candy"],u:"1f36c",a:"0.6"},{n:["lollipop"],u:"1f36d",a:"0.6"},{n:["custard"],u:"1f36e",a:"0.6"},{n:["honey pot"],u:"1f36f",a:"0.6"},{n:["baby bottle"],u:"1f37c",a:"1.0"},{n:["glass of milk"],u:"1f95b",a:"3.0"},{n:["coffee","hot beverage"],u:"2615",a:"0.6"},{n:["teapot"],u:"1fad6",a:"13.0"},{n:["tea","teacup without handle"],u:"1f375",a:"0.6"},{n:["sake","sake bottle and cup"],u:"1f376",a:"0.6"},{n:["champagne","bottle with popping cork"],u:"1f37e",a:"1.0"},{n:["wine glass"],u:"1f377",a:"0.6"},{n:["cocktail","cocktail glass"],u:"1f378",a:"0.6"},{n:["tropical drink"],u:"1f379",a:"0.6"},{n:["beer","beer mug"],u:"1f37a",a:"0.6"},{n:["beers","clinking beer mugs"],u:"1f37b",a:"0.6"},{n:["clinking glasses"],u:"1f942",a:"3.0"},{n:["tumbler glass"],u:"1f943",a:"3.0"},{n:["pouring liquid"],u:"1fad7",a:"14.0"},{n:["cup with straw"],u:"1f964",a:"5.0"},{n:["bubble tea"],u:"1f9cb",a:"13.0"},{n:["beverage box"],u:"1f9c3",a:"12.0"},{n:["mate drink"],u:"1f9c9",a:"12.0"},{n:["ice cube"],u:"1f9ca",a:"12.0"},{n:["chopsticks"],u:"1f962",a:"5.0"},{n:["knife fork plate","fork and knife with plate"],u:"1f37d-fe0f",a:"0.7"},{n:["fork and knife"],u:"1f374",a:"0.6"},{n:["spoon"],u:"1f944",a:"3.0"},{n:["hocho","knife"],u:"1f52a",a:"0.6"},{n:["jar"],u:"1fad9",a:"14.0"},{n:["amphora"],u:"1f3fa",a:"1.0"}],R1=[{n:["earth africa","earth globe europe-africa"],u:"1f30d",a:"0.7"},{n:["earth americas","earth globe americas"],u:"1f30e",a:"0.7"},{n:["earth asia","earth globe asia-australia"],u:"1f30f",a:"0.6"},{n:["globe with meridians"],u:"1f310",a:"1.0"},{n:["world map"],u:"1f5fa-fe0f",a:"0.7"},{n:["japan","silhouette of japan"],u:"1f5fe",a:"0.6"},{n:["compass"],u:"1f9ed",a:"11.0"},{n:["snow-capped mountain","snow capped mountain"],u:"1f3d4-fe0f",a:"0.7"},{n:["mountain"],u:"26f0-fe0f",a:"0.7"},{n:["volcano"],u:"1f30b",a:"0.6"},{n:["mount fuji"],u:"1f5fb",a:"0.6"},{n:["camping"],u:"1f3d5-fe0f",a:"0.7"},{n:["beach with umbrella"],u:"1f3d6-fe0f",a:"0.7"},{n:["desert"],u:"1f3dc-fe0f",a:"0.7"},{n:["desert island"],u:"1f3dd-fe0f",a:"0.7"},{n:["national park"],u:"1f3de-fe0f",a:"0.7"},{n:["stadium"],u:"1f3df-fe0f",a:"0.7"},{n:["classical building"],u:"1f3db-fe0f",a:"0.7"},{n:["building construction"],u:"1f3d7-fe0f",a:"0.7"},{n:["brick","bricks"],u:"1f9f1",a:"11.0"},{n:["rock"],u:"1faa8",a:"13.0"},{n:["wood"],u:"1fab5",a:"13.0"},{n:["hut"],u:"1f6d6",a:"13.0"},{n:["houses","house buildings"],u:"1f3d8-fe0f",a:"0.7"},{n:["derelict house","derelict house building"],u:"1f3da-fe0f",a:"0.7"},{n:["house","house building"],u:"1f3e0",a:"0.6"},{n:["house with garden"],u:"1f3e1",a:"0.6"},{n:["office","office building"],u:"1f3e2",a:"0.6"},{n:["post office","japanese post office"],u:"1f3e3",a:"0.6"},{n:["european post office"],u:"1f3e4",a:"1.0"},{n:["hospital"],u:"1f3e5",a:"0.6"},{n:["bank"],u:"1f3e6",a:"0.6"},{n:["hotel"],u:"1f3e8",a:"0.6"},{n:["love hotel"],u:"1f3e9",a:"0.6"},{n:["convenience store"],u:"1f3ea",a:"0.6"},{n:["school"],u:"1f3eb",a:"0.6"},{n:["department store"],u:"1f3ec",a:"0.6"},{n:["factory"],u:"1f3ed",a:"0.6"},{n:["japanese castle"],u:"1f3ef",a:"0.6"},{n:["european castle"],u:"1f3f0",a:"0.6"},{n:["wedding"],u:"1f492",a:"0.6"},{n:["tokyo tower"],u:"1f5fc",a:"0.6"},{n:["statue of liberty"],u:"1f5fd",a:"0.6"},{n:["church"],u:"26ea",a:"0.6"},{n:["mosque"],u:"1f54c",a:"1.0"},{n:["hindu temple"],u:"1f6d5",a:"12.0"},{n:["synagogue"],u:"1f54d",a:"1.0"},{n:["shinto shrine"],u:"26e9-fe0f",a:"0.7"},{n:["kaaba"],u:"1f54b",a:"1.0"},{n:["fountain"],u:"26f2",a:"0.6"},{n:["tent"],u:"26fa",a:"0.6"},{n:["foggy"],u:"1f301",a:"0.6"},{n:["night with stars"],u:"1f303",a:"0.6"},{n:["cityscape"],u:"1f3d9-fe0f",a:"0.7"},{n:["sunrise over mountains"],u:"1f304",a:"0.6"},{n:["sunrise"],u:"1f305",a:"0.6"},{n:["city sunset","cityscape at dusk"],u:"1f306",a:"0.6"},{n:["city sunrise","sunset over buildings"],u:"1f307",a:"0.6"},{n:["bridge at night"],u:"1f309",a:"0.6"},{n:["hotsprings","hot springs"],u:"2668-fe0f",a:"0.6"},{n:["carousel horse"],u:"1f3a0",a:"0.6"},{n:["playground slide"],u:"1f6dd",a:"14.0"},{n:["ferris wheel"],u:"1f3a1",a:"0.6"},{n:["roller coaster"],u:"1f3a2",a:"0.6"},{n:["barber","barber pole"],u:"1f488",a:"0.6"},{n:["circus tent"],u:"1f3aa",a:"0.6"},{n:["steam locomotive"],u:"1f682",a:"1.0"},{n:["railway car"],u:"1f683",a:"0.6"},{n:["high-speed train","bullettrain side"],u:"1f684",a:"0.6"},{n:["bullettrain front","high-speed train with bullet nose"],u:"1f685",a:"0.6"},{n:["train","train2"],u:"1f686",a:"1.0"},{n:["metro"],u:"1f687",a:"0.6"},{n:["light rail"],u:"1f688",a:"1.0"},{n:["station"],u:"1f689",a:"0.6"},{n:["tram"],u:"1f68a",a:"1.0"},{n:["monorail"],u:"1f69d",a:"1.0"},{n:["mountain railway"],u:"1f69e",a:"1.0"},{n:["train","tram car"],u:"1f68b",a:"1.0"},{n:["bus"],u:"1f68c",a:"0.6"},{n:["oncoming bus"],u:"1f68d",a:"0.7"},{n:["trolleybus"],u:"1f68e",a:"1.0"},{n:["minibus"],u:"1f690",a:"1.0"},{n:["ambulance"],u:"1f691",a:"0.6"},{n:["fire engine"],u:"1f692",a:"0.6"},{n:["police car"],u:"1f693",a:"0.6"},{n:["oncoming police car"],u:"1f694",a:"0.7"},{n:["taxi"],u:"1f695",a:"0.6"},{n:["oncoming taxi"],u:"1f696",a:"1.0"},{n:["car","red car","automobile"],u:"1f697",a:"0.6"},{n:["oncoming automobile"],u:"1f698",a:"0.7"},{n:["blue car","recreational vehicle"],u:"1f699",a:"0.6"},{n:["pickup truck"],u:"1f6fb",a:"13.0"},{n:["truck","delivery truck"],u:"1f69a",a:"0.6"},{n:["articulated lorry"],u:"1f69b",a:"1.0"},{n:["tractor"],u:"1f69c",a:"1.0"},{n:["racing car"],u:"1f3ce-fe0f",a:"0.7"},{n:["motorcycle","racing motorcycle"],u:"1f3cd-fe0f",a:"0.7"},{n:["motor scooter"],u:"1f6f5",a:"3.0"},{n:["manual wheelchair"],u:"1f9bd",a:"12.0"},{n:["motorized wheelchair"],u:"1f9bc",a:"12.0"},{n:["auto rickshaw"],u:"1f6fa",a:"12.0"},{n:["bike","bicycle"],u:"1f6b2",a:"0.6"},{n:["scooter"],u:"1f6f4",a:"3.0"},{n:["skateboard"],u:"1f6f9",a:"11.0"},{n:["roller skate"],u:"1f6fc",a:"13.0"},{n:["busstop","bus stop"],u:"1f68f",a:"0.6"},{n:["motorway"],u:"1f6e3-fe0f",a:"0.7"},{n:["railway track"],u:"1f6e4-fe0f",a:"0.7"},{n:["oil drum"],u:"1f6e2-fe0f",a:"0.7"},{n:["fuelpump","fuel pump"],u:"26fd",a:"0.6"},{n:["wheel"],u:"1f6de",a:"14.0"},{n:["rotating light","police cars revolving light"],u:"1f6a8",a:"0.6"},{n:["traffic light","horizontal traffic light"],u:"1f6a5",a:"0.6"},{n:["vertical traffic light"],u:"1f6a6",a:"1.0"},{n:["octagonal sign"],u:"1f6d1",a:"3.0"},{n:["construction","construction sign"],u:"1f6a7",a:"0.6"},{n:["anchor"],u:"2693",a:"0.6"},{n:["ring buoy"],u:"1f6df",a:"14.0"},{n:["boat","sailboat"],u:"26f5",a:"0.6"},{n:["canoe"],u:"1f6f6",a:"3.0"},{n:["speedboat"],u:"1f6a4",a:"0.6"},{n:["passenger ship"],u:"1f6f3-fe0f",a:"0.7"},{n:["ferry"],u:"26f4-fe0f",a:"0.7"},{n:["motor boat"],u:"1f6e5-fe0f",a:"0.7"},{n:["ship"],u:"1f6a2",a:"0.6"},{n:["airplane"],u:"2708-fe0f",a:"0.6"},{n:["small airplane"],u:"1f6e9-fe0f",a:"0.7"},{n:["airplane departure"],u:"1f6eb",a:"1.0"},{n:["airplane arriving"],u:"1f6ec",a:"1.0"},{n:["parachute"],u:"1fa82",a:"12.0"},{n:["seat"],u:"1f4ba",a:"0.6"},{n:["helicopter"],u:"1f681",a:"1.0"},{n:["suspension railway"],u:"1f69f",a:"1.0"},{n:["mountain cableway"],u:"1f6a0",a:"1.0"},{n:["aerial tramway"],u:"1f6a1",a:"1.0"},{n:["satellite"],u:"1f6f0-fe0f",a:"0.7"},{n:["rocket"],u:"1f680",a:"0.6"},{n:["flying saucer"],u:"1f6f8",a:"5.0"},{n:["bellhop bell"],u:"1f6ce-fe0f",a:"0.7"},{n:["luggage"],u:"1f9f3",a:"11.0"},{n:["hourglass"],u:"231b",a:"0.6"},{n:["hourglass flowing sand","hourglass with flowing sand"],u:"23f3",a:"0.6"},{n:["watch"],u:"231a",a:"0.6"},{n:["alarm clock"],u:"23f0",a:"0.6"},{n:["stopwatch"],u:"23f1-fe0f",a:"1.0"},{n:["timer clock"],u:"23f2-fe0f",a:"1.0"},{n:["mantelpiece clock"],u:"1f570-fe0f",a:"0.7"},{n:["clock12","clock face twelve oclock"],u:"1f55b",a:"0.6"},{n:["clock1230","clock face twelve-thirty"],u:"1f567",a:"0.7"},{n:["clock1","clock face one oclock"],u:"1f550",a:"0.6"},{n:["clock130","clock face one-thirty"],u:"1f55c",a:"0.7"},{n:["clock2","clock face two oclock"],u:"1f551",a:"0.6"},{n:["clock230","clock face two-thirty"],u:"1f55d",a:"0.7"},{n:["clock3","clock face three oclock"],u:"1f552",a:"0.6"},{n:["clock330","clock face three-thirty"],u:"1f55e",a:"0.7"},{n:["clock4","clock face four oclock"],u:"1f553",a:"0.6"},{n:["clock430","clock face four-thirty"],u:"1f55f",a:"0.7"},{n:["clock5","clock face five oclock"],u:"1f554",a:"0.6"},{n:["clock530","clock face five-thirty"],u:"1f560",a:"0.7"},{n:["clock6","clock face six oclock"],u:"1f555",a:"0.6"},{n:["clock630","clock face six-thirty"],u:"1f561",a:"0.7"},{n:["clock7","clock face seven oclock"],u:"1f556",a:"0.6"},{n:["clock730","clock face seven-thirty"],u:"1f562",a:"0.7"},{n:["clock8","clock face eight oclock"],u:"1f557",a:"0.6"},{n:["clock830","clock face eight-thirty"],u:"1f563",a:"0.7"},{n:["clock9","clock face nine oclock"],u:"1f558",a:"0.6"},{n:["clock930","clock face nine-thirty"],u:"1f564",a:"0.7"},{n:["clock10","clock face ten oclock"],u:"1f559",a:"0.6"},{n:["clock1030","clock face ten-thirty"],u:"1f565",a:"0.7"},{n:["clock11","clock face eleven oclock"],u:"1f55a",a:"0.6"},{n:["clock1130","clock face eleven-thirty"],u:"1f566",a:"0.7"},{n:["new moon","new moon symbol"],u:"1f311",a:"0.6"},{n:["waxing crescent moon","waxing crescent moon symbol"],u:"1f312",a:"1.0"},{n:["first quarter moon","first quarter moon symbol"],u:"1f313",a:"0.6"},{n:["moon","waxing gibbous moon","waxing gibbous moon symbol"],u:"1f314",a:"0.6"},{n:["full moon","full moon symbol"],u:"1f315",a:"0.6"},{n:["waning gibbous moon","waning gibbous moon symbol"],u:"1f316",a:"1.0"},{n:["last quarter moon","last quarter moon symbol"],u:"1f317",a:"1.0"},{n:["waning crescent moon","waning crescent moon symbol"],u:"1f318",a:"1.0"},{n:["crescent moon"],u:"1f319",a:"0.6"},{n:["new moon with face"],u:"1f31a",a:"1.0"},{n:["first quarter moon with face"],u:"1f31b",a:"0.6"},{n:["last quarter moon with face"],u:"1f31c",a:"0.7"},{n:["thermometer"],u:"1f321-fe0f",a:"0.7"},{n:["sunny","black sun with rays"],u:"2600-fe0f",a:"0.6"},{n:["full moon with face"],u:"1f31d",a:"1.0"},{n:["sun with face"],u:"1f31e",a:"1.0"},{n:["ringed planet"],u:"1fa90",a:"12.0"},{n:["star","white medium star"],u:"2b50",a:"0.6"},{n:["star2","glowing star"],u:"1f31f",a:"0.6"},{n:["stars","shooting star"],u:"1f320",a:"0.6"},{n:["milky way"],u:"1f30c",a:"0.6"},{n:["cloud"],u:"2601-fe0f",a:"0.6"},{n:["partly sunny","sun behind cloud"],u:"26c5",a:"0.6"},{n:["thunder cloud and rain","cloud with lightning and rain"],u:"26c8-fe0f",a:"0.7"},{n:["mostly sunny","sun small cloud","sun behind small cloud"],u:"1f324-fe0f",a:"0.7"},{n:["barely sunny","sun behind cloud","sun behind large cloud"],u:"1f325-fe0f",a:"0.7"},{n:["partly sunny rain","sun behind rain cloud"],u:"1f326-fe0f",a:"0.7"},{n:["rain cloud","cloud with rain"],u:"1f327-fe0f",a:"0.7"},{n:["snow cloud","cloud with snow"],u:"1f328-fe0f",a:"0.7"},{n:["lightning","lightning cloud","cloud with lightning"],u:"1f329-fe0f",a:"0.7"},{n:["tornado","tornado cloud"],u:"1f32a-fe0f",a:"0.7"},{n:["fog"],u:"1f32b-fe0f",a:"0.7"},{n:["wind face","wind blowing face"],u:"1f32c-fe0f",a:"0.7"},{n:["cyclone"],u:"1f300",a:"0.6"},{n:["rainbow"],u:"1f308",a:"0.6"},{n:["closed umbrella"],u:"1f302",a:"0.6"},{n:["umbrella"],u:"2602-fe0f",a:"0.7"},{n:["umbrella with rain drops"],u:"2614",a:"0.6"},{n:["umbrella on ground"],u:"26f1-fe0f",a:"0.7"},{n:["zap","high voltage sign"],u:"26a1",a:"0.6"},{n:["snowflake"],u:"2744-fe0f",a:"0.6"},{n:["snowman"],u:"2603-fe0f",a:"0.7"},{n:["snowman without snow"],u:"26c4",a:"0.6"},{n:["comet"],u:"2604-fe0f",a:"1.0"},{n:["fire"],u:"1f525",a:"0.6"},{n:["droplet"],u:"1f4a7",a:"0.6"},{n:["ocean","water wave"],u:"1f30a",a:"0.6"}],z1=[{n:["jack-o-lantern","jack o lantern"],u:"1f383",a:"0.6"},{n:["christmas tree"],u:"1f384",a:"0.6"},{n:["fireworks"],u:"1f386",a:"0.6"},{n:["sparkler","firework sparkler"],u:"1f387",a:"0.6"},{n:["firecracker"],u:"1f9e8",a:"11.0"},{n:["sparkles"],u:"2728",a:"0.6"},{n:["balloon"],u:"1f388",a:"0.6"},{n:["tada","party popper"],u:"1f389",a:"0.6"},{n:["confetti ball"],u:"1f38a",a:"0.6"},{n:["tanabata tree"],u:"1f38b",a:"0.6"},{n:["bamboo","pine decoration"],u:"1f38d",a:"0.6"},{n:["dolls","japanese dolls"],u:"1f38e",a:"0.6"},{n:["flags","carp streamer"],u:"1f38f",a:"0.6"},{n:["wind chime"],u:"1f390",a:"0.6"},{n:["rice scene","moon viewing ceremony"],u:"1f391",a:"0.6"},{n:["red envelope","red gift envelope"],u:"1f9e7",a:"11.0"},{n:["ribbon"],u:"1f380",a:"0.6"},{n:["gift","wrapped present"],u:"1f381",a:"0.6"},{n:["reminder ribbon"],u:"1f397-fe0f",a:"0.7"},{n:["admission tickets"],u:"1f39f-fe0f",a:"0.7"},{n:["ticket"],u:"1f3ab",a:"0.6"},{n:["medal","military medal"],u:"1f396-fe0f",a:"0.7"},{n:["trophy"],u:"1f3c6",a:"0.6"},{n:["sports medal"],u:"1f3c5",a:"1.0"},{n:["first place medal"],u:"1f947",a:"3.0"},{n:["second place medal"],u:"1f948",a:"3.0"},{n:["third place medal"],u:"1f949",a:"3.0"},{n:["soccer","soccer ball"],u:"26bd",a:"0.6"},{n:["baseball"],u:"26be",a:"0.6"},{n:["softball"],u:"1f94e",a:"11.0"},{n:["basketball","basketball and hoop"],u:"1f3c0",a:"0.6"},{n:["volleyball"],u:"1f3d0",a:"1.0"},{n:["football","american football"],u:"1f3c8",a:"0.6"},{n:["rugby football"],u:"1f3c9",a:"1.0"},{n:["tennis","tennis racquet and ball"],u:"1f3be",a:"0.6"},{n:["flying disc"],u:"1f94f",a:"11.0"},{n:["bowling"],u:"1f3b3",a:"0.6"},{n:["cricket bat and ball"],u:"1f3cf",a:"1.0"},{n:["field hockey stick and ball"],u:"1f3d1",a:"1.0"},{n:["ice hockey stick and puck"],u:"1f3d2",a:"1.0"},{n:["lacrosse","lacrosse stick and ball"],u:"1f94d",a:"11.0"},{n:["table tennis paddle and ball"],u:"1f3d3",a:"1.0"},{n:["badminton racquet and shuttlecock"],u:"1f3f8",a:"1.0"},{n:["boxing glove"],u:"1f94a",a:"3.0"},{n:["martial arts uniform"],u:"1f94b",a:"3.0"},{n:["goal net"],u:"1f945",a:"3.0"},{n:["golf","flag in hole"],u:"26f3",a:"0.6"},{n:["ice skate"],u:"26f8-fe0f",a:"0.7"},{n:["fishing pole and fish"],u:"1f3a3",a:"0.6"},{n:["diving mask"],u:"1f93f",a:"12.0"},{n:["running shirt with sash"],u:"1f3bd",a:"0.6"},{n:["ski","ski and ski boot"],u:"1f3bf",a:"0.6"},{n:["sled"],u:"1f6f7",a:"5.0"},{n:["curling stone"],u:"1f94c",a:"5.0"},{n:["dart","direct hit"],u:"1f3af",a:"0.6"},{n:["yo-yo"],u:"1fa80",a:"12.0"},{n:["kite"],u:"1fa81",a:"12.0"},{n:["8ball","billiards"],u:"1f3b1",a:"0.6"},{n:["crystal ball"],u:"1f52e",a:"0.6"},{n:["magic wand"],u:"1fa84",a:"13.0"},{n:["nazar amulet"],u:"1f9ff",a:"11.0"},{n:["hamsa"],u:"1faac",a:"14.0"},{n:["video game"],u:"1f3ae",a:"0.6"},{n:["joystick"],u:"1f579-fe0f",a:"0.7"},{n:["slot machine"],u:"1f3b0",a:"0.6"},{n:["game die"],u:"1f3b2",a:"0.6"},{n:["jigsaw","jigsaw puzzle piece"],u:"1f9e9",a:"11.0"},{n:["teddy bear"],u:"1f9f8",a:"11.0"},{n:["pinata"],u:"1fa85",a:"13.0"},{n:["mirror ball"],u:"1faa9",a:"14.0"},{n:["nesting dolls"],u:"1fa86",a:"13.0"},{n:["spades","black spade suit"],u:"2660-fe0f",a:"0.6"},{n:["hearts","black heart suit"],u:"2665-fe0f",a:"0.6"},{n:["diamonds","black diamond suit"],u:"2666-fe0f",a:"0.6"},{n:["clubs","black club suit"],u:"2663-fe0f",a:"0.6"},{n:["chess pawn"],u:"265f-fe0f",a:"11.0"},{n:["black joker","playing card black joker"],u:"1f0cf",a:"0.6"},{n:["mahjong","mahjong tile red dragon"],u:"1f004",a:"0.6"},{n:["flower playing cards"],u:"1f3b4",a:"0.6"},{n:["performing arts"],u:"1f3ad",a:"0.6"},{n:["framed picture","frame with picture"],u:"1f5bc-fe0f",a:"0.7"},{n:["art","artist palette"],u:"1f3a8",a:"0.6"},{n:["thread","spool of thread"],u:"1f9f5",a:"11.0"},{n:["sewing needle"],u:"1faa1",a:"13.0"},{n:["yarn","ball of yarn"],u:"1f9f6",a:"11.0"},{n:["knot"],u:"1faa2",a:"13.0"}],P1=[{n:["eyeglasses"],u:"1f453",a:"0.6"},{n:["sunglasses","dark sunglasses"],u:"1f576-fe0f",a:"0.7"},{n:["goggles"],u:"1f97d",a:"11.0"},{n:["lab coat"],u:"1f97c",a:"11.0"},{n:["safety vest"],u:"1f9ba",a:"12.0"},{n:["necktie"],u:"1f454",a:"0.6"},{n:["shirt","tshirt","t-shirt"],u:"1f455",a:"0.6"},{n:["jeans"],u:"1f456",a:"0.6"},{n:["scarf"],u:"1f9e3",a:"5.0"},{n:["gloves"],u:"1f9e4",a:"5.0"},{n:["coat"],u:"1f9e5",a:"5.0"},{n:["socks"],u:"1f9e6",a:"5.0"},{n:["dress"],u:"1f457",a:"0.6"},{n:["kimono"],u:"1f458",a:"0.6"},{n:["sari"],u:"1f97b",a:"12.0"},{n:["one-piece swimsuit"],u:"1fa71",a:"12.0"},{n:["briefs"],u:"1fa72",a:"12.0"},{n:["shorts"],u:"1fa73",a:"12.0"},{n:["bikini"],u:"1f459",a:"0.6"},{n:["womans clothes"],u:"1f45a",a:"0.6"},{n:["purse"],u:"1f45b",a:"0.6"},{n:["handbag"],u:"1f45c",a:"0.6"},{n:["pouch"],u:"1f45d",a:"0.6"},{n:["shopping bags"],u:"1f6cd-fe0f",a:"0.7"},{n:["school satchel"],u:"1f392",a:"0.6"},{n:["thong sandal"],u:"1fa74",a:"13.0"},{n:["shoe","mans shoe"],u:"1f45e",a:"0.6"},{n:["athletic shoe"],u:"1f45f",a:"0.6"},{n:["hiking boot"],u:"1f97e",a:"11.0"},{n:["flat shoe","womans flat shoe"],u:"1f97f",a:"11.0"},{n:["high heel","high-heeled shoe"],u:"1f460",a:"0.6"},{n:["sandal","womans sandal"],u:"1f461",a:"0.6"},{n:["ballet shoes"],u:"1fa70",a:"12.0"},{n:["boot","womans boots"],u:"1f462",a:"0.6"},{n:["crown"],u:"1f451",a:"0.6"},{n:["womans hat"],u:"1f452",a:"0.6"},{n:["tophat","top hat"],u:"1f3a9",a:"0.6"},{n:["mortar board","graduation cap"],u:"1f393",a:"0.6"},{n:["billed cap"],u:"1f9e2",a:"5.0"},{n:["military helmet"],u:"1fa96",a:"13.0"},{n:["rescue worker’s helmet","helmet with white cross"],u:"26d1-fe0f",a:"0.7"},{n:["prayer beads"],u:"1f4ff",a:"1.0"},{n:["lipstick"],u:"1f484",a:"0.6"},{n:["ring"],u:"1f48d",a:"0.6"},{n:["gem","gem stone"],u:"1f48e",a:"0.6"},{n:["mute","speaker with cancellation stroke"],u:"1f507",a:"1.0"},{n:["speaker"],u:"1f508",a:"0.7"},{n:["sound","speaker with one sound wave"],u:"1f509",a:"1.0"},{n:["loud sound","speaker with three sound waves"],u:"1f50a",a:"0.6"},{n:["loudspeaker","public address loudspeaker"],u:"1f4e2",a:"0.6"},{n:["mega","cheering megaphone"],u:"1f4e3",a:"0.6"},{n:["postal horn"],u:"1f4ef",a:"1.0"},{n:["bell"],u:"1f514",a:"0.6"},{n:["no bell","bell with cancellation stroke"],u:"1f515",a:"1.0"},{n:["musical score"],u:"1f3bc",a:"0.6"},{n:["musical note"],u:"1f3b5",a:"0.6"},{n:["notes","multiple musical notes"],u:"1f3b6",a:"0.6"},{n:["studio microphone"],u:"1f399-fe0f",a:"0.7"},{n:["level slider"],u:"1f39a-fe0f",a:"0.7"},{n:["control knobs"],u:"1f39b-fe0f",a:"0.7"},{n:["microphone"],u:"1f3a4",a:"0.6"},{n:["headphone","headphones"],u:"1f3a7",a:"0.6"},{n:["radio"],u:"1f4fb",a:"0.6"},{n:["saxophone"],u:"1f3b7",a:"0.6"},{n:["accordion"],u:"1fa97",a:"13.0"},{n:["guitar"],u:"1f3b8",a:"0.6"},{n:["musical keyboard"],u:"1f3b9",a:"0.6"},{n:["trumpet"],u:"1f3ba",a:"0.6"},{n:["violin"],u:"1f3bb",a:"0.6"},{n:["banjo"],u:"1fa95",a:"12.0"},{n:["drum with drumsticks"],u:"1f941",a:"3.0"},{n:["long drum"],u:"1fa98",a:"13.0"},{n:["iphone","mobile phone"],u:"1f4f1",a:"0.6"},{n:["calling","mobile phone with rightwards arrow at left"],u:"1f4f2",a:"0.6"},{n:["phone","telephone","black telephone"],u:"260e-fe0f",a:"0.6"},{n:["telephone receiver"],u:"1f4de",a:"0.6"},{n:["pager"],u:"1f4df",a:"0.6"},{n:["fax","fax machine"],u:"1f4e0",a:"0.6"},{n:["battery"],u:"1f50b",a:"0.6"},{n:["low battery"],u:"1faab",a:"14.0"},{n:["electric plug"],u:"1f50c",a:"0.6"},{n:["computer","personal computer"],u:"1f4bb",a:"0.6"},{n:["desktop computer"],u:"1f5a5-fe0f",a:"0.7"},{n:["printer"],u:"1f5a8-fe0f",a:"0.7"},{n:["keyboard"],u:"2328-fe0f",a:"1.0"},{n:["computer mouse","three button mouse"],u:"1f5b1-fe0f",a:"0.7"},{n:["trackball"],u:"1f5b2-fe0f",a:"0.7"},{n:["minidisc"],u:"1f4bd",a:"0.6"},{n:["floppy disk"],u:"1f4be",a:"0.6"},{n:["cd","optical disc"],u:"1f4bf",a:"0.6"},{n:["dvd"],u:"1f4c0",a:"0.6"},{n:["abacus"],u:"1f9ee",a:"11.0"},{n:["movie camera"],u:"1f3a5",a:"0.6"},{n:["film frames"],u:"1f39e-fe0f",a:"0.7"},{n:["film projector"],u:"1f4fd-fe0f",a:"0.7"},{n:["clapper","clapper board"],u:"1f3ac",a:"0.6"},{n:["tv","television"],u:"1f4fa",a:"0.6"},{n:["camera"],u:"1f4f7",a:"0.6"},{n:["camera with flash"],u:"1f4f8",a:"1.0"},{n:["video camera"],u:"1f4f9",a:"0.6"},{n:["vhs","videocassette"],u:"1f4fc",a:"0.6"},{n:["mag","left-pointing magnifying glass"],u:"1f50d",a:"0.6"},{n:["mag right","right-pointing magnifying glass"],u:"1f50e",a:"0.6"},{n:["candle"],u:"1f56f-fe0f",a:"0.7"},{n:["bulb","electric light bulb"],u:"1f4a1",a:"0.6"},{n:["flashlight","electric torch"],u:"1f526",a:"0.6"},{n:["lantern","izakaya lantern"],u:"1f3ee",a:"0.6"},{n:["diya lamp"],u:"1fa94",a:"12.0"},{n:["notebook with decorative cover"],u:"1f4d4",a:"0.6"},{n:["closed book"],u:"1f4d5",a:"0.6"},{n:["book","open book"],u:"1f4d6",a:"0.6"},{n:["green book"],u:"1f4d7",a:"0.6"},{n:["blue book"],u:"1f4d8",a:"0.6"},{n:["orange book"],u:"1f4d9",a:"0.6"},{n:["books"],u:"1f4da",a:"0.6"},{n:["notebook"],u:"1f4d3",a:"0.6"},{n:["ledger"],u:"1f4d2",a:"0.6"},{n:["page with curl"],u:"1f4c3",a:"0.6"},{n:["scroll"],u:"1f4dc",a:"0.6"},{n:["page facing up"],u:"1f4c4",a:"0.6"},{n:["newspaper"],u:"1f4f0",a:"0.6"},{n:["rolled-up newspaper","rolled up newspaper"],u:"1f5de-fe0f",a:"0.7"},{n:["bookmark tabs"],u:"1f4d1",a:"0.6"},{n:["bookmark"],u:"1f516",a:"0.6"},{n:["label"],u:"1f3f7-fe0f",a:"0.7"},{n:["moneybag","money bag"],u:"1f4b0",a:"0.6"},{n:["coin"],u:"1fa99",a:"13.0"},{n:["yen","banknote with yen sign"],u:"1f4b4",a:"0.6"},{n:["dollar","banknote with dollar sign"],u:"1f4b5",a:"0.6"},{n:["euro","banknote with euro sign"],u:"1f4b6",a:"1.0"},{n:["pound","banknote with pound sign"],u:"1f4b7",a:"1.0"},{n:["money with wings"],u:"1f4b8",a:"0.6"},{n:["credit card"],u:"1f4b3",a:"0.6"},{n:["receipt"],u:"1f9fe",a:"11.0"},{n:["chart","chart with upwards trend and yen sign"],u:"1f4b9",a:"0.6"},{n:["email","envelope"],u:"2709-fe0f",a:"0.6"},{n:["e-mail","e-mail symbol"],u:"1f4e7",a:"0.6"},{n:["incoming envelope"],u:"1f4e8",a:"0.6"},{n:["envelope with arrow","envelope with downwards arrow above"],u:"1f4e9",a:"0.6"},{n:["outbox tray"],u:"1f4e4",a:"0.6"},{n:["inbox tray"],u:"1f4e5",a:"0.6"},{n:["package"],u:"1f4e6",a:"0.6"},{n:["mailbox","closed mailbox with raised flag"],u:"1f4eb",a:"0.6"},{n:["mailbox closed","closed mailbox with lowered flag"],u:"1f4ea",a:"0.6"},{n:["mailbox with mail","open mailbox with raised flag"],u:"1f4ec",a:"0.7"},{n:["mailbox with no mail","open mailbox with lowered flag"],u:"1f4ed",a:"0.7"},{n:["postbox"],u:"1f4ee",a:"0.6"},{n:["ballot box with ballot"],u:"1f5f3-fe0f",a:"0.7"},{n:["pencil","pencil2"],u:"270f-fe0f",a:"0.6"},{n:["black nib"],u:"2712-fe0f",a:"0.6"},{n:["fountain pen","lower left fountain pen"],u:"1f58b-fe0f",a:"0.7"},{n:["pen","lower left ballpoint pen"],u:"1f58a-fe0f",a:"0.7"},{n:["paintbrush","lower left paintbrush"],u:"1f58c-fe0f",a:"0.7"},{n:["crayon","lower left crayon"],u:"1f58d-fe0f",a:"0.7"},{n:["memo","pencil"],u:"1f4dd",a:"0.6"},{n:["briefcase"],u:"1f4bc",a:"0.6"},{n:["file folder"],u:"1f4c1",a:"0.6"},{n:["open file folder"],u:"1f4c2",a:"0.6"},{n:["card index dividers"],u:"1f5c2-fe0f",a:"0.7"},{n:["date","calendar"],u:"1f4c5",a:"0.6"},{n:["calendar","tear-off calendar"],u:"1f4c6",a:"0.6"},{n:["spiral notepad","spiral note pad"],u:"1f5d2-fe0f",a:"0.7"},{n:["spiral calendar","spiral calendar pad"],u:"1f5d3-fe0f",a:"0.7"},{n:["card index"],u:"1f4c7",a:"0.6"},{n:["chart with upwards trend"],u:"1f4c8",a:"0.6"},{n:["chart with downwards trend"],u:"1f4c9",a:"0.6"},{n:["bar chart"],u:"1f4ca",a:"0.6"},{n:["clipboard"],u:"1f4cb",a:"0.6"},{n:["pushpin"],u:"1f4cc",a:"0.6"},{n:["round pushpin"],u:"1f4cd",a:"0.6"},{n:["paperclip"],u:"1f4ce",a:"0.6"},{n:["linked paperclips"],u:"1f587-fe0f",a:"0.7"},{n:["straight ruler"],u:"1f4cf",a:"0.6"},{n:["triangular ruler"],u:"1f4d0",a:"0.6"},{n:["scissors","black scissors"],u:"2702-fe0f",a:"0.6"},{n:["card file box"],u:"1f5c3-fe0f",a:"0.7"},{n:["file cabinet"],u:"1f5c4-fe0f",a:"0.7"},{n:["wastebasket"],u:"1f5d1-fe0f",a:"0.7"},{n:["lock"],u:"1f512",a:"0.6"},{n:["unlock","open lock"],u:"1f513",a:"0.6"},{n:["lock with ink pen"],u:"1f50f",a:"0.6"},{n:["closed lock with key"],u:"1f510",a:"0.6"},{n:["key"],u:"1f511",a:"0.6"},{n:["old key"],u:"1f5dd-fe0f",a:"0.7"},{n:["hammer"],u:"1f528",a:"0.6"},{n:["axe"],u:"1fa93",a:"12.0"},{n:["pick"],u:"26cf-fe0f",a:"0.7"},{n:["hammer and pick"],u:"2692-fe0f",a:"1.0"},{n:["hammer and wrench"],u:"1f6e0-fe0f",a:"0.7"},{n:["dagger","dagger knife"],u:"1f5e1-fe0f",a:"0.7"},{n:["crossed swords"],u:"2694-fe0f",a:"1.0"},{n:["gun","pistol"],u:"1f52b",a:"0.6"},{n:["boomerang"],u:"1fa83",a:"13.0"},{n:["bow and arrow"],u:"1f3f9",a:"1.0"},{n:["shield"],u:"1f6e1-fe0f",a:"0.7"},{n:["carpentry saw"],u:"1fa9a",a:"13.0"},{n:["wrench"],u:"1f527",a:"0.6"},{n:["screwdriver"],u:"1fa9b",a:"13.0"},{n:["nut and bolt"],u:"1f529",a:"0.6"},{n:["gear"],u:"2699-fe0f",a:"1.0"},{n:["clamp","compression"],u:"1f5dc-fe0f",a:"0.7"},{n:["scales","balance scale"],u:"2696-fe0f",a:"1.0"},{n:["probing cane"],u:"1f9af",a:"12.0"},{n:["link","link symbol"],u:"1f517",a:"0.6"},{n:["chains"],u:"26d3-fe0f",a:"0.7"},{n:["hook"],u:"1fa9d",a:"13.0"},{n:["toolbox"],u:"1f9f0",a:"11.0"},{n:["magnet"],u:"1f9f2",a:"11.0"},{n:["ladder"],u:"1fa9c",a:"13.0"},{n:["alembic"],u:"2697-fe0f",a:"1.0"},{n:["test tube"],u:"1f9ea",a:"11.0"},{n:["petri dish"],u:"1f9eb",a:"11.0"},{n:["dna","dna double helix"],u:"1f9ec",a:"11.0"},{n:["microscope"],u:"1f52c",a:"1.0"},{n:["telescope"],u:"1f52d",a:"1.0"},{n:["satellite antenna"],u:"1f4e1",a:"0.6"},{n:["syringe"],u:"1f489",a:"0.6"},{n:["drop of blood"],u:"1fa78",a:"12.0"},{n:["pill"],u:"1f48a",a:"0.6"},{n:["adhesive bandage"],u:"1fa79",a:"12.0"},{n:["crutch"],u:"1fa7c",a:"14.0"},{n:["stethoscope"],u:"1fa7a",a:"12.0"},{n:["x-ray"],u:"1fa7b",a:"14.0"},{n:["door"],u:"1f6aa",a:"0.6"},{n:["elevator"],u:"1f6d7",a:"13.0"},{n:["mirror"],u:"1fa9e",a:"13.0"},{n:["window"],u:"1fa9f",a:"13.0"},{n:["bed"],u:"1f6cf-fe0f",a:"0.7"},{n:["couch and lamp"],u:"1f6cb-fe0f",a:"0.7"},{n:["chair"],u:"1fa91",a:"12.0"},{n:["toilet"],u:"1f6bd",a:"0.6"},{n:["plunger"],u:"1faa0",a:"13.0"},{n:["shower"],u:"1f6bf",a:"1.0"},{n:["bathtub"],u:"1f6c1",a:"1.0"},{n:["mouse trap"],u:"1faa4",a:"13.0"},{n:["razor"],u:"1fa92",a:"12.0"},{n:["lotion bottle"],u:"1f9f4",a:"11.0"},{n:["safety pin"],u:"1f9f7",a:"11.0"},{n:["broom"],u:"1f9f9",a:"11.0"},{n:["basket"],u:"1f9fa",a:"11.0"},{n:["roll of paper"],u:"1f9fb",a:"11.0"},{n:["bucket"],u:"1faa3",a:"13.0"},{n:["soap","bar of soap"],u:"1f9fc",a:"11.0"},{n:["bubbles"],u:"1fae7",a:"14.0"},{n:["toothbrush"],u:"1faa5",a:"13.0"},{n:["sponge"],u:"1f9fd",a:"11.0"},{n:["fire extinguisher"],u:"1f9ef",a:"11.0"},{n:["shopping trolley"],u:"1f6d2",a:"3.0"},{n:["smoking","smoking symbol"],u:"1f6ac",a:"0.6"},{n:["coffin"],u:"26b0-fe0f",a:"1.0"},{n:["headstone"],u:"1faa6",a:"13.0"},{n:["funeral urn"],u:"26b1-fe0f",a:"1.0"},{n:["moyai"],u:"1f5ff",a:"0.6"},{n:["placard"],u:"1faa7",a:"13.0"},{n:["identification card"],u:"1faaa",a:"14.0"}],T1=[{n:["atm","automated teller machine"],u:"1f3e7",a:"0.6"},{n:["put litter in its place","put litter in its place symbol"],u:"1f6ae",a:"1.0"},{n:["potable water","potable water symbol"],u:"1f6b0",a:"1.0"},{n:["wheelchair","wheelchair symbol"],u:"267f",a:"0.6"},{n:["mens","mens symbol"],u:"1f6b9",a:"0.6"},{n:["womens","womens symbol"],u:"1f6ba",a:"0.6"},{n:["restroom"],u:"1f6bb",a:"0.6"},{n:["baby symbol"],u:"1f6bc",a:"0.6"},{n:["wc","water closet"],u:"1f6be",a:"0.6"},{n:["passport control"],u:"1f6c2",a:"1.0"},{n:["customs"],u:"1f6c3",a:"1.0"},{n:["baggage claim"],u:"1f6c4",a:"1.0"},{n:["left luggage"],u:"1f6c5",a:"1.0"},{n:["warning","warning sign"],u:"26a0-fe0f",a:"0.6"},{n:["children crossing"],u:"1f6b8",a:"1.0"},{n:["no entry"],u:"26d4",a:"0.6"},{n:["no entry sign"],u:"1f6ab",a:"0.6"},{n:["no bicycles"],u:"1f6b3",a:"1.0"},{n:["no smoking","no smoking symbol"],u:"1f6ad",a:"0.6"},{n:["do not litter","do not litter symbol"],u:"1f6af",a:"1.0"},{n:["non-potable water","non-potable water symbol"],u:"1f6b1",a:"1.0"},{n:["no pedestrians"],u:"1f6b7",a:"1.0"},{n:["no mobile phones"],u:"1f4f5",a:"1.0"},{n:["underage","no one under eighteen symbol"],u:"1f51e",a:"0.6"},{n:["radioactive","radioactive sign"],u:"2622-fe0f",a:"1.0"},{n:["biohazard","biohazard sign"],u:"2623-fe0f",a:"1.0"},{n:["arrow up","upwards black arrow"],u:"2b06-fe0f",a:"0.6"},{n:["north east arrow","arrow upper right"],u:"2197-fe0f",a:"0.6"},{n:["arrow right","black rightwards arrow"],u:"27a1-fe0f",a:"0.6"},{n:["south east arrow","arrow lower right"],u:"2198-fe0f",a:"0.6"},{n:["arrow down","downwards black arrow"],u:"2b07-fe0f",a:"0.6"},{n:["south west arrow","arrow lower left"],u:"2199-fe0f",a:"0.6"},{n:["arrow left","leftwards black arrow"],u:"2b05-fe0f",a:"0.6"},{n:["north west arrow","arrow upper left"],u:"2196-fe0f",a:"0.6"},{n:["up down arrow","arrow up down"],u:"2195-fe0f",a:"0.6"},{n:["left right arrow"],u:"2194-fe0f",a:"0.6"},{n:["leftwards arrow with hook"],u:"21a9-fe0f",a:"0.6"},{n:["arrow right hook","rightwards arrow with hook"],u:"21aa-fe0f",a:"0.6"},{n:["arrow heading up","arrow pointing rightwards then curving upwards"],u:"2934-fe0f",a:"0.6"},{n:["arrow heading down","arrow pointing rightwards then curving downwards"],u:"2935-fe0f",a:"0.6"},{n:["arrows clockwise","clockwise downwards and upwards open circle arrows"],u:"1f503",a:"0.6"},{n:["arrows counterclockwise","anticlockwise downwards and upwards open circle arrows"],u:"1f504",a:"1.0"},{n:["back","back with leftwards arrow above"],u:"1f519",a:"0.6"},{n:["end","end with leftwards arrow above"],u:"1f51a",a:"0.6"},{n:["on","on with exclamation mark with left right arrow above"],u:"1f51b",a:"0.6"},{n:["soon","soon with rightwards arrow above"],u:"1f51c",a:"0.6"},{n:["top","top with upwards arrow above"],u:"1f51d",a:"0.6"},{n:["place of worship"],u:"1f6d0",a:"1.0"},{n:["atom symbol"],u:"269b-fe0f",a:"1.0"},{n:["om","om symbol"],u:"1f549-fe0f",a:"0.7"},{n:["star of david"],u:"2721-fe0f",a:"0.7"},{n:["wheel of dharma"],u:"2638-fe0f",a:"0.7"},{n:["yin yang"],u:"262f-fe0f",a:"0.7"},{n:["latin cross"],u:"271d-fe0f",a:"0.7"},{n:["orthodox cross"],u:"2626-fe0f",a:"1.0"},{n:["star and crescent"],u:"262a-fe0f",a:"0.7"},{n:["peace symbol"],u:"262e-fe0f",a:"1.0"},{n:["menorah with nine branches"],u:"1f54e",a:"1.0"},{n:["six pointed star","six pointed star with middle dot"],u:"1f52f",a:"0.6"},{n:["aries"],u:"2648",a:"0.6"},{n:["taurus"],u:"2649",a:"0.6"},{n:["gemini"],u:"264a",a:"0.6"},{n:["cancer"],u:"264b",a:"0.6"},{n:["leo"],u:"264c",a:"0.6"},{n:["virgo"],u:"264d",a:"0.6"},{n:["libra"],u:"264e",a:"0.6"},{n:["scorpius"],u:"264f",a:"0.6"},{n:["sagittarius"],u:"2650",a:"0.6"},{n:["capricorn"],u:"2651",a:"0.6"},{n:["aquarius"],u:"2652",a:"0.6"},{n:["pisces"],u:"2653",a:"0.6"},{n:["ophiuchus"],u:"26ce",a:"0.6"},{n:["twisted rightwards arrows"],u:"1f500",a:"1.0"},{n:["repeat","clockwise rightwards and leftwards open circle arrows"],u:"1f501",a:"1.0"},{n:["repeat one","clockwise rightwards and leftwards open circle arrows with circled one overlay"],u:"1f502",a:"1.0"},{n:["arrow forward","black right-pointing triangle"],u:"25b6-fe0f",a:"0.6"},{n:["fast forward","black right-pointing double triangle"],u:"23e9",a:"0.6"},{n:["next track button","black right pointing double triangle with vertical bar"],u:"23ed-fe0f",a:"0.7"},{n:["play or pause button","black right pointing triangle with double vertical bar"],u:"23ef-fe0f",a:"1.0"},{n:["arrow backward","black left-pointing triangle"],u:"25c0-fe0f",a:"0.6"},{n:["rewind","black left-pointing double triangle"],u:"23ea",a:"0.6"},{n:["last track button","black left pointing double triangle with vertical bar"],u:"23ee-fe0f",a:"0.7"},{n:["arrow up small","up-pointing small red triangle"],u:"1f53c",a:"0.6"},{n:["arrow double up","black up-pointing double triangle"],u:"23eb",a:"0.6"},{n:["arrow down small","down-pointing small red triangle"],u:"1f53d",a:"0.6"},{n:["arrow double down","black down-pointing double triangle"],u:"23ec",a:"0.6"},{n:["pause button","double vertical bar"],u:"23f8-fe0f",a:"0.7"},{n:["stop button","black square for stop"],u:"23f9-fe0f",a:"0.7"},{n:["record button","black circle for record"],u:"23fa-fe0f",a:"0.7"},{n:["eject","eject button"],u:"23cf-fe0f",a:"1.0"},{n:["cinema"],u:"1f3a6",a:"0.6"},{n:["low brightness","low brightness symbol"],u:"1f505",a:"1.0"},{n:["high brightness","high brightness symbol"],u:"1f506",a:"1.0"},{n:["signal strength","antenna with bars"],u:"1f4f6",a:"0.6"},{n:["vibration mode"],u:"1f4f3",a:"0.6"},{n:["mobile phone off"],u:"1f4f4",a:"0.6"},{n:["female sign"],u:"2640-fe0f",a:"4.0"},{n:["male sign"],u:"2642-fe0f",a:"4.0"},{n:["transgender symbol"],u:"26a7-fe0f",a:"13.0"},{n:["heavy multiplication x"],u:"2716-fe0f",a:"0.6"},{n:["heavy plus sign"],u:"2795",a:"0.6"},{n:["heavy minus sign"],u:"2796",a:"0.6"},{n:["heavy division sign"],u:"2797",a:"0.6"},{n:["heavy equals sign"],u:"1f7f0",a:"14.0"},{n:["infinity"],u:"267e-fe0f",a:"11.0"},{n:["bangbang","double exclamation mark"],u:"203c-fe0f",a:"0.6"},{n:["interrobang","exclamation question mark"],u:"2049-fe0f",a:"0.6"},{n:["question","black question mark ornament"],u:"2753",a:"0.6"},{n:["grey question","white question mark ornament"],u:"2754",a:"0.6"},{n:["grey exclamation","white exclamation mark ornament"],u:"2755",a:"0.6"},{n:["exclamation","heavy exclamation mark","heavy exclamation mark symbol"],u:"2757",a:"0.6"},{n:["wavy dash"],u:"3030-fe0f",a:"0.6"},{n:["currency exchange"],u:"1f4b1",a:"0.6"},{n:["heavy dollar sign"],u:"1f4b2",a:"0.6"},{n:["medical symbol","staff of aesculapius"],u:"2695-fe0f",a:"4.0"},{n:["recycle","black universal recycling symbol"],u:"267b-fe0f",a:"0.6"},{n:["fleur-de-lis","fleur de lis"],u:"269c-fe0f",a:"1.0"},{n:["trident","trident emblem"],u:"1f531",a:"0.6"},{n:["name badge"],u:"1f4db",a:"0.6"},{n:["beginner","japanese symbol for beginner"],u:"1f530",a:"0.6"},{n:["o","heavy large circle"],u:"2b55",a:"0.6"},{n:["white check mark","white heavy check mark"],u:"2705",a:"0.6"},{n:["ballot box with check"],u:"2611-fe0f",a:"0.6"},{n:["heavy check mark"],u:"2714-fe0f",a:"0.6"},{n:["x","cross mark"],u:"274c",a:"0.6"},{n:["negative squared cross mark"],u:"274e",a:"0.6"},{n:["curly loop"],u:"27b0",a:"0.6"},{n:["loop","double curly loop"],u:"27bf",a:"1.0"},{n:["part alternation mark"],u:"303d-fe0f",a:"0.6"},{n:["eight spoked asterisk"],u:"2733-fe0f",a:"0.6"},{n:["eight pointed black star"],u:"2734-fe0f",a:"0.6"},{n:["sparkle"],u:"2747-fe0f",a:"0.6"},{n:["copyright","copyright sign"],u:"00a9-fe0f",a:"0.6"},{n:["registered","registered sign"],u:"00ae-fe0f",a:"0.6"},{n:["tm","trade mark sign"],u:"2122-fe0f",a:"0.6"},{n:["hash","hash key"],u:"0023-fe0f-20e3",a:"0.6"},{n:["keycap: *","keycap star"],u:"002a-fe0f-20e3",a:"2.0"},{n:["zero","keycap 0"],u:"0030-fe0f-20e3",a:"0.6"},{n:["one","keycap 1"],u:"0031-fe0f-20e3",a:"0.6"},{n:["two","keycap 2"],u:"0032-fe0f-20e3",a:"0.6"},{n:["three","keycap 3"],u:"0033-fe0f-20e3",a:"0.6"},{n:["four","keycap 4"],u:"0034-fe0f-20e3",a:"0.6"},{n:["five","keycap 5"],u:"0035-fe0f-20e3",a:"0.6"},{n:["six","keycap 6"],u:"0036-fe0f-20e3",a:"0.6"},{n:["seven","keycap 7"],u:"0037-fe0f-20e3",a:"0.6"},{n:["eight","keycap 8"],u:"0038-fe0f-20e3",a:"0.6"},{n:["nine","keycap 9"],u:"0039-fe0f-20e3",a:"0.6"},{n:["keycap ten"],u:"1f51f",a:"0.6"},{n:["capital abcd","input symbol for latin capital letters"],u:"1f520",a:"0.6"},{n:["abcd","input symbol for latin small letters"],u:"1f521",a:"0.6"},{n:["1234","input symbol for numbers"],u:"1f522",a:"0.6"},{n:["symbols","input symbol for symbols"],u:"1f523",a:"0.6"},{n:["abc","input symbol for latin letters"],u:"1f524",a:"0.6"},{n:["a","negative squared latin capital letter a"],u:"1f170-fe0f",a:"0.6"},{n:["ab","negative squared ab"],u:"1f18e",a:"0.6"},{n:["b","negative squared latin capital letter b"],u:"1f171-fe0f",a:"0.6"},{n:["cl","squared cl"],u:"1f191",a:"0.6"},{n:["cool","squared cool"],u:"1f192",a:"0.6"},{n:["free","squared free"],u:"1f193",a:"0.6"},{n:["information source"],u:"2139-fe0f",a:"0.6"},{n:["id","squared id"],u:"1f194",a:"0.6"},{n:["m","circled latin capital letter m"],u:"24c2-fe0f",a:"0.6"},{n:["new","squared new"],u:"1f195",a:"0.6"},{n:["ng","squared ng"],u:"1f196",a:"0.6"},{n:["o2","negative squared latin capital letter o"],u:"1f17e-fe0f",a:"0.6"},{n:["ok","squared ok"],u:"1f197",a:"0.6"},{n:["parking","negative squared latin capital letter p"],u:"1f17f-fe0f",a:"0.6"},{n:["sos","squared sos"],u:"1f198",a:"0.6"},{n:["up","squared up with exclamation mark"],u:"1f199",a:"0.6"},{n:["vs","squared vs"],u:"1f19a",a:"0.6"},{n:["koko","squared katakana koko"],u:"1f201",a:"0.6"},{n:["sa","squared katakana sa"],u:"1f202-fe0f",a:"0.6"},{n:["u6708","squared cjk unified ideograph-6708"],u:"1f237-fe0f",a:"0.6"},{n:["u6709","squared cjk unified ideograph-6709"],u:"1f236",a:"0.6"},{n:["u6307","squared cjk unified ideograph-6307"],u:"1f22f",a:"0.6"},{n:["ideograph advantage","circled ideograph advantage"],u:"1f250",a:"0.6"},{n:["u5272","squared cjk unified ideograph-5272"],u:"1f239",a:"0.6"},{n:["u7121","squared cjk unified ideograph-7121"],u:"1f21a",a:"0.6"},{n:["u7981","squared cjk unified ideograph-7981"],u:"1f232",a:"0.6"},{n:["accept","circled ideograph accept"],u:"1f251",a:"0.6"},{n:["u7533","squared cjk unified ideograph-7533"],u:"1f238",a:"0.6"},{n:["u5408","squared cjk unified ideograph-5408"],u:"1f234",a:"0.6"},{n:["u7a7a","squared cjk unified ideograph-7a7a"],u:"1f233",a:"0.6"},{n:["congratulations","circled ideograph congratulation"],u:"3297-fe0f",a:"0.6"},{n:["secret","circled ideograph secret"],u:"3299-fe0f",a:"0.6"},{n:["u55b6","squared cjk unified ideograph-55b6"],u:"1f23a",a:"0.6"},{n:["u6e80","squared cjk unified ideograph-6e80"],u:"1f235",a:"0.6"},{n:["red circle","large red circle"],u:"1f534",a:"0.6"},{n:["large orange circle"],u:"1f7e0",a:"12.0"},{n:["large yellow circle"],u:"1f7e1",a:"12.0"},{n:["large green circle"],u:"1f7e2",a:"12.0"},{n:["large blue circle"],u:"1f535",a:"0.6"},{n:["large purple circle"],u:"1f7e3",a:"12.0"},{n:["large brown circle"],u:"1f7e4",a:"12.0"},{n:["black circle","medium black circle"],u:"26ab",a:"0.6"},{n:["white circle","medium white circle"],u:"26aa",a:"0.6"},{n:["large red square"],u:"1f7e5",a:"12.0"},{n:["large orange square"],u:"1f7e7",a:"12.0"},{n:["large yellow square"],u:"1f7e8",a:"12.0"},{n:["large green square"],u:"1f7e9",a:"12.0"},{n:["large blue square"],u:"1f7e6",a:"12.0"},{n:["large purple square"],u:"1f7ea",a:"12.0"},{n:["large brown square"],u:"1f7eb",a:"12.0"},{n:["black large square"],u:"2b1b",a:"0.6"},{n:["white large square"],u:"2b1c",a:"0.6"},{n:["black medium square"],u:"25fc-fe0f",a:"0.6"},{n:["white medium square"],u:"25fb-fe0f",a:"0.6"},{n:["black medium small square"],u:"25fe",a:"0.6"},{n:["white medium small square"],u:"25fd",a:"0.6"},{n:["black small square"],u:"25aa-fe0f",a:"0.6"},{n:["white small square"],u:"25ab-fe0f",a:"0.6"},{n:["large orange diamond"],u:"1f536",a:"0.6"},{n:["large blue diamond"],u:"1f537",a:"0.6"},{n:["small orange diamond"],u:"1f538",a:"0.6"},{n:["small blue diamond"],u:"1f539",a:"0.6"},{n:["small red triangle","up-pointing red triangle"],u:"1f53a",a:"0.6"},{n:["small red triangle down","down-pointing red triangle"],u:"1f53b",a:"0.6"},{n:["diamond shape with a dot inside"],u:"1f4a0",a:"0.6"},{n:["radio button"],u:"1f518",a:"0.6"},{n:["white square button"],u:"1f533",a:"0.6"},{n:["black square button"],u:"1f532",a:"0.6"}],A1=[{n:["chequered flag","checkered flag"],u:"1f3c1",a:"0.6"},{n:["triangular flag on post"],u:"1f6a9",a:"0.6"},{n:["crossed flags"],u:"1f38c",a:"0.6"},{n:["waving black flag"],u:"1f3f4",a:"1.0"},{n:["white flag","waving white flag"],u:"1f3f3-fe0f",a:"0.7"},{n:["rainbow flag","rainbow-flag"],u:"1f3f3-fe0f-200d-1f308",a:"4.0"},{n:["transgender flag"],u:"1f3f3-fe0f-200d-26a7-fe0f",a:"13.0"},{n:["pirate flag"],u:"1f3f4-200d-2620-fe0f",a:"11.0"},{n:["flag-ac","ascension island flag"],u:"1f1e6-1f1e8",a:"2.0"},{n:["flag-ad","andorra flag"],u:"1f1e6-1f1e9",a:"2.0"},{n:["flag-ae","united arab emirates flag"],u:"1f1e6-1f1ea",a:"2.0"},{n:["flag-af","afghanistan flag"],u:"1f1e6-1f1eb",a:"2.0"},{n:["flag-ag","antigua & barbuda flag"],u:"1f1e6-1f1ec",a:"2.0"},{n:["flag-ai","anguilla flag"],u:"1f1e6-1f1ee",a:"2.0"},{n:["flag-al","albania flag"],u:"1f1e6-1f1f1",a:"2.0"},{n:["flag-am","armenia flag"],u:"1f1e6-1f1f2",a:"2.0"},{n:["flag-ao","angola flag"],u:"1f1e6-1f1f4",a:"2.0"},{n:["flag-aq","antarctica flag"],u:"1f1e6-1f1f6",a:"2.0"},{n:["flag-ar","argentina flag"],u:"1f1e6-1f1f7",a:"2.0"},{n:["flag-as","american samoa flag"],u:"1f1e6-1f1f8",a:"2.0"},{n:["flag-at","austria flag"],u:"1f1e6-1f1f9",a:"2.0"},{n:["flag-au","australia flag"],u:"1f1e6-1f1fa",a:"2.0"},{n:["flag-aw","aruba flag"],u:"1f1e6-1f1fc",a:"2.0"},{n:["flag-ax","åland islands flag"],u:"1f1e6-1f1fd",a:"2.0"},{n:["flag-az","azerbaijan flag"],u:"1f1e6-1f1ff",a:"2.0"},{n:["flag-ba","bosnia & herzegovina flag"],u:"1f1e7-1f1e6",a:"2.0"},{n:["flag-bb","barbados flag"],u:"1f1e7-1f1e7",a:"2.0"},{n:["flag-bd","bangladesh flag"],u:"1f1e7-1f1e9",a:"2.0"},{n:["flag-be","belgium flag"],u:"1f1e7-1f1ea",a:"2.0"},{n:["flag-bf","burkina faso flag"],u:"1f1e7-1f1eb",a:"2.0"},{n:["flag-bg","bulgaria flag"],u:"1f1e7-1f1ec",a:"2.0"},{n:["flag-bh","bahrain flag"],u:"1f1e7-1f1ed",a:"2.0"},{n:["flag-bi","burundi flag"],u:"1f1e7-1f1ee",a:"2.0"},{n:["flag-bj","benin flag"],u:"1f1e7-1f1ef",a:"2.0"},{n:["flag-bl","st. barthélemy flag"],u:"1f1e7-1f1f1",a:"2.0"},{n:["flag-bm","bermuda flag"],u:"1f1e7-1f1f2",a:"2.0"},{n:["flag-bn","brunei flag"],u:"1f1e7-1f1f3",a:"2.0"},{n:["flag-bo","bolivia flag"],u:"1f1e7-1f1f4",a:"2.0"},{n:["flag-bq","caribbean netherlands flag"],u:"1f1e7-1f1f6",a:"2.0"},{n:["flag-br","brazil flag"],u:"1f1e7-1f1f7",a:"2.0"},{n:["flag-bs","bahamas flag"],u:"1f1e7-1f1f8",a:"2.0"},{n:["flag-bt","bhutan flag"],u:"1f1e7-1f1f9",a:"2.0"},{n:["flag-bv","bouvet island flag"],u:"1f1e7-1f1fb",a:"2.0"},{n:["flag-bw","botswana flag"],u:"1f1e7-1f1fc",a:"2.0"},{n:["flag-by","belarus flag"],u:"1f1e7-1f1fe",a:"2.0"},{n:["flag-bz","belize flag"],u:"1f1e7-1f1ff",a:"2.0"},{n:["flag-ca","canada flag"],u:"1f1e8-1f1e6",a:"2.0"},{n:["flag-cc","cocos (keeling) islands flag"],u:"1f1e8-1f1e8",a:"2.0"},{n:["flag-cd","congo - kinshasa flag"],u:"1f1e8-1f1e9",a:"2.0"},{n:["flag-cf","central african republic flag"],u:"1f1e8-1f1eb",a:"2.0"},{n:["flag-cg","congo - brazzaville flag"],u:"1f1e8-1f1ec",a:"2.0"},{n:["flag-ch","switzerland flag"],u:"1f1e8-1f1ed",a:"2.0"},{n:["flag-ci","côte d’ivoire flag"],u:"1f1e8-1f1ee",a:"2.0"},{n:["flag-ck","cook islands flag"],u:"1f1e8-1f1f0",a:"2.0"},{n:["flag-cl","chile flag"],u:"1f1e8-1f1f1",a:"2.0"},{n:["flag-cm","cameroon flag"],u:"1f1e8-1f1f2",a:"2.0"},{n:["cn","flag-cn","china flag"],u:"1f1e8-1f1f3",a:"0.6"},{n:["flag-co","colombia flag"],u:"1f1e8-1f1f4",a:"2.0"},{n:["flag-cp","clipperton island flag"],u:"1f1e8-1f1f5",a:"2.0"},{n:["flag-cr","costa rica flag"],u:"1f1e8-1f1f7",a:"2.0"},{n:["flag-cu","cuba flag"],u:"1f1e8-1f1fa",a:"2.0"},{n:["flag-cv","cape verde flag"],u:"1f1e8-1f1fb",a:"2.0"},{n:["flag-cw","curaçao flag"],u:"1f1e8-1f1fc",a:"2.0"},{n:["flag-cx","christmas island flag"],u:"1f1e8-1f1fd",a:"2.0"},{n:["flag-cy","cyprus flag"],u:"1f1e8-1f1fe",a:"2.0"},{n:["flag-cz","czechia flag"],u:"1f1e8-1f1ff",a:"2.0"},{n:["de","flag-de","germany flag"],u:"1f1e9-1f1ea",a:"0.6"},{n:["flag-dg","diego garcia flag"],u:"1f1e9-1f1ec",a:"2.0"},{n:["flag-dj","djibouti flag"],u:"1f1e9-1f1ef",a:"2.0"},{n:["flag-dk","denmark flag"],u:"1f1e9-1f1f0",a:"2.0"},{n:["flag-dm","dominica flag"],u:"1f1e9-1f1f2",a:"2.0"},{n:["flag-do","dominican republic flag"],u:"1f1e9-1f1f4",a:"2.0"},{n:["flag-dz","algeria flag"],u:"1f1e9-1f1ff",a:"2.0"},{n:["flag-ea","ceuta & melilla flag"],u:"1f1ea-1f1e6",a:"2.0"},{n:["flag-ec","ecuador flag"],u:"1f1ea-1f1e8",a:"2.0"},{n:["flag-ee","estonia flag"],u:"1f1ea-1f1ea",a:"2.0"},{n:["flag-eg","egypt flag"],u:"1f1ea-1f1ec",a:"2.0"},{n:["flag-eh","western sahara flag"],u:"1f1ea-1f1ed",a:"2.0"},{n:["flag-er","eritrea flag"],u:"1f1ea-1f1f7",a:"2.0"},{n:["es","flag-es","spain flag"],u:"1f1ea-1f1f8",a:"0.6"},{n:["flag-et","ethiopia flag"],u:"1f1ea-1f1f9",a:"2.0"},{n:["flag-eu","european union flag"],u:"1f1ea-1f1fa",a:"2.0"},{n:["flag-fi","finland flag"],u:"1f1eb-1f1ee",a:"2.0"},{n:["flag-fj","fiji flag"],u:"1f1eb-1f1ef",a:"2.0"},{n:["flag-fk","falkland islands flag"],u:"1f1eb-1f1f0",a:"2.0"},{n:["flag-fm","micronesia flag"],u:"1f1eb-1f1f2",a:"2.0"},{n:["flag-fo","faroe islands flag"],u:"1f1eb-1f1f4",a:"2.0"},{n:["fr","flag-fr","france flag"],u:"1f1eb-1f1f7",a:"0.6"},{n:["flag-ga","gabon flag"],u:"1f1ec-1f1e6",a:"2.0"},{n:["gb","uk","flag-gb","united kingdom flag"],u:"1f1ec-1f1e7",a:"0.6"},{n:["flag-gd","grenada flag"],u:"1f1ec-1f1e9",a:"2.0"},{n:["flag-ge","georgia flag"],u:"1f1ec-1f1ea",a:"2.0"},{n:["flag-gf","french guiana flag"],u:"1f1ec-1f1eb",a:"2.0"},{n:["flag-gg","guernsey flag"],u:"1f1ec-1f1ec",a:"2.0"},{n:["flag-gh","ghana flag"],u:"1f1ec-1f1ed",a:"2.0"},{n:["flag-gi","gibraltar flag"],u:"1f1ec-1f1ee",a:"2.0"},{n:["flag-gl","greenland flag"],u:"1f1ec-1f1f1",a:"2.0"},{n:["flag-gm","gambia flag"],u:"1f1ec-1f1f2",a:"2.0"},{n:["flag-gn","guinea flag"],u:"1f1ec-1f1f3",a:"2.0"},{n:["flag-gp","guadeloupe flag"],u:"1f1ec-1f1f5",a:"2.0"},{n:["flag-gq","equatorial guinea flag"],u:"1f1ec-1f1f6",a:"2.0"},{n:["flag-gr","greece flag"],u:"1f1ec-1f1f7",a:"2.0"},{n:["flag-gs","south georgia & south sandwich islands flag"],u:"1f1ec-1f1f8",a:"2.0"},{n:["flag-gt","guatemala flag"],u:"1f1ec-1f1f9",a:"2.0"},{n:["flag-gu","guam flag"],u:"1f1ec-1f1fa",a:"2.0"},{n:["flag-gw","guinea-bissau flag"],u:"1f1ec-1f1fc",a:"2.0"},{n:["flag-gy","guyana flag"],u:"1f1ec-1f1fe",a:"2.0"},{n:["flag-hk","hong kong sar china flag"],u:"1f1ed-1f1f0",a:"2.0"},{n:["flag-hm","heard & mcdonald islands flag"],u:"1f1ed-1f1f2",a:"2.0"},{n:["flag-hn","honduras flag"],u:"1f1ed-1f1f3",a:"2.0"},{n:["flag-hr","croatia flag"],u:"1f1ed-1f1f7",a:"2.0"},{n:["flag-ht","haiti flag"],u:"1f1ed-1f1f9",a:"2.0"},{n:["flag-hu","hungary flag"],u:"1f1ed-1f1fa",a:"2.0"},{n:["flag-ic","canary islands flag"],u:"1f1ee-1f1e8",a:"2.0"},{n:["flag-id","indonesia flag"],u:"1f1ee-1f1e9",a:"2.0"},{n:["flag-ie","ireland flag"],u:"1f1ee-1f1ea",a:"2.0"},{n:["flag-il","israel flag"],u:"1f1ee-1f1f1",a:"2.0"},{n:["flag-im","isle of man flag"],u:"1f1ee-1f1f2",a:"2.0"},{n:["flag-in","india flag"],u:"1f1ee-1f1f3",a:"2.0"},{n:["flag-io","british indian ocean territory flag"],u:"1f1ee-1f1f4",a:"2.0"},{n:["flag-iq","iraq flag"],u:"1f1ee-1f1f6",a:"2.0"},{n:["flag-ir","iran flag"],u:"1f1ee-1f1f7",a:"2.0"},{n:["flag-is","iceland flag"],u:"1f1ee-1f1f8",a:"2.0"},{n:["it","flag-it","italy flag"],u:"1f1ee-1f1f9",a:"0.6"},{n:["flag-je","jersey flag"],u:"1f1ef-1f1ea",a:"2.0"},{n:["flag-jm","jamaica flag"],u:"1f1ef-1f1f2",a:"2.0"},{n:["flag-jo","jordan flag"],u:"1f1ef-1f1f4",a:"2.0"},{n:["jp","flag-jp","japan flag"],u:"1f1ef-1f1f5",a:"0.6"},{n:["flag-ke","kenya flag"],u:"1f1f0-1f1ea",a:"2.0"},{n:["flag-kg","kyrgyzstan flag"],u:"1f1f0-1f1ec",a:"2.0"},{n:["flag-kh","cambodia flag"],u:"1f1f0-1f1ed",a:"2.0"},{n:["flag-ki","kiribati flag"],u:"1f1f0-1f1ee",a:"2.0"},{n:["flag-km","comoros flag"],u:"1f1f0-1f1f2",a:"2.0"},{n:["flag-kn","st. kitts & nevis flag"],u:"1f1f0-1f1f3",a:"2.0"},{n:["flag-kp","north korea flag"],u:"1f1f0-1f1f5",a:"2.0"},{n:["kr","flag-kr","south korea flag"],u:"1f1f0-1f1f7",a:"0.6"},{n:["flag-kw","kuwait flag"],u:"1f1f0-1f1fc",a:"2.0"},{n:["flag-ky","cayman islands flag"],u:"1f1f0-1f1fe",a:"2.0"},{n:["flag-kz","kazakhstan flag"],u:"1f1f0-1f1ff",a:"2.0"},{n:["flag-la","laos flag"],u:"1f1f1-1f1e6",a:"2.0"},{n:["flag-lb","lebanon flag"],u:"1f1f1-1f1e7",a:"2.0"},{n:["flag-lc","st. lucia flag"],u:"1f1f1-1f1e8",a:"2.0"},{n:["flag-li","liechtenstein flag"],u:"1f1f1-1f1ee",a:"2.0"},{n:["flag-lk","sri lanka flag"],u:"1f1f1-1f1f0",a:"2.0"},{n:["flag-lr","liberia flag"],u:"1f1f1-1f1f7",a:"2.0"},{n:["flag-ls","lesotho flag"],u:"1f1f1-1f1f8",a:"2.0"},{n:["flag-lt","lithuania flag"],u:"1f1f1-1f1f9",a:"2.0"},{n:["flag-lu","luxembourg flag"],u:"1f1f1-1f1fa",a:"2.0"},{n:["flag-lv","latvia flag"],u:"1f1f1-1f1fb",a:"2.0"},{n:["flag-ly","libya flag"],u:"1f1f1-1f1fe",a:"2.0"},{n:["flag-ma","morocco flag"],u:"1f1f2-1f1e6",a:"2.0"},{n:["flag-mc","monaco flag"],u:"1f1f2-1f1e8",a:"2.0"},{n:["flag-md","moldova flag"],u:"1f1f2-1f1e9",a:"2.0"},{n:["flag-me","montenegro flag"],u:"1f1f2-1f1ea",a:"2.0"},{n:["flag-mf","st. martin flag"],u:"1f1f2-1f1eb",a:"2.0"},{n:["flag-mg","madagascar flag"],u:"1f1f2-1f1ec",a:"2.0"},{n:["flag-mh","marshall islands flag"],u:"1f1f2-1f1ed",a:"2.0"},{n:["flag-mk","north macedonia flag"],u:"1f1f2-1f1f0",a:"2.0"},{n:["flag-ml","mali flag"],u:"1f1f2-1f1f1",a:"2.0"},{n:["flag-mm","myanmar (burma) flag"],u:"1f1f2-1f1f2",a:"2.0"},{n:["flag-mn","mongolia flag"],u:"1f1f2-1f1f3",a:"2.0"},{n:["flag-mo","macao sar china flag"],u:"1f1f2-1f1f4",a:"2.0"},{n:["flag-mp","northern mariana islands flag"],u:"1f1f2-1f1f5",a:"2.0"},{n:["flag-mq","martinique flag"],u:"1f1f2-1f1f6",a:"2.0"},{n:["flag-mr","mauritania flag"],u:"1f1f2-1f1f7",a:"2.0"},{n:["flag-ms","montserrat flag"],u:"1f1f2-1f1f8",a:"2.0"},{n:["flag-mt","malta flag"],u:"1f1f2-1f1f9",a:"2.0"},{n:["flag-mu","mauritius flag"],u:"1f1f2-1f1fa",a:"2.0"},{n:["flag-mv","maldives flag"],u:"1f1f2-1f1fb",a:"2.0"},{n:["flag-mw","malawi flag"],u:"1f1f2-1f1fc",a:"2.0"},{n:["flag-mx","mexico flag"],u:"1f1f2-1f1fd",a:"2.0"},{n:["flag-my","malaysia flag"],u:"1f1f2-1f1fe",a:"2.0"},{n:["flag-mz","mozambique flag"],u:"1f1f2-1f1ff",a:"2.0"},{n:["flag-na","namibia flag"],u:"1f1f3-1f1e6",a:"2.0"},{n:["flag-nc","new caledonia flag"],u:"1f1f3-1f1e8",a:"2.0"},{n:["flag-ne","niger flag"],u:"1f1f3-1f1ea",a:"2.0"},{n:["flag-nf","norfolk island flag"],u:"1f1f3-1f1eb",a:"2.0"},{n:["flag-ng","nigeria flag"],u:"1f1f3-1f1ec",a:"2.0"},{n:["flag-ni","nicaragua flag"],u:"1f1f3-1f1ee",a:"2.0"},{n:["flag-nl","netherlands flag"],u:"1f1f3-1f1f1",a:"2.0"},{n:["flag-no","norway flag"],u:"1f1f3-1f1f4",a:"2.0"},{n:["flag-np","nepal flag"],u:"1f1f3-1f1f5",a:"2.0"},{n:["flag-nr","nauru flag"],u:"1f1f3-1f1f7",a:"2.0"},{n:["flag-nu","niue flag"],u:"1f1f3-1f1fa",a:"2.0"},{n:["flag-nz","new zealand flag"],u:"1f1f3-1f1ff",a:"2.0"},{n:["flag-om","oman flag"],u:"1f1f4-1f1f2",a:"2.0"},{n:["flag-pa","panama flag"],u:"1f1f5-1f1e6",a:"2.0"},{n:["flag-pe","peru flag"],u:"1f1f5-1f1ea",a:"2.0"},{n:["flag-pf","french polynesia flag"],u:"1f1f5-1f1eb",a:"2.0"},{n:["flag-pg","papua new guinea flag"],u:"1f1f5-1f1ec",a:"2.0"},{n:["flag-ph","philippines flag"],u:"1f1f5-1f1ed",a:"2.0"},{n:["flag-pk","pakistan flag"],u:"1f1f5-1f1f0",a:"2.0"},{n:["flag-pl","poland flag"],u:"1f1f5-1f1f1",a:"2.0"},{n:["flag-pm","st. pierre & miquelon flag"],u:"1f1f5-1f1f2",a:"2.0"},{n:["flag-pn","pitcairn islands flag"],u:"1f1f5-1f1f3",a:"2.0"},{n:["flag-pr","puerto rico flag"],u:"1f1f5-1f1f7",a:"2.0"},{n:["flag-ps","palestinian territories flag"],u:"1f1f5-1f1f8",a:"2.0"},{n:["flag-pt","portugal flag"],u:"1f1f5-1f1f9",a:"2.0"},{n:["flag-pw","palau flag"],u:"1f1f5-1f1fc",a:"2.0"},{n:["flag-py","paraguay flag"],u:"1f1f5-1f1fe",a:"2.0"},{n:["flag-qa","qatar flag"],u:"1f1f6-1f1e6",a:"2.0"},{n:["flag-re","réunion flag"],u:"1f1f7-1f1ea",a:"2.0"},{n:["flag-ro","romania flag"],u:"1f1f7-1f1f4",a:"2.0"},{n:["flag-rs","serbia flag"],u:"1f1f7-1f1f8",a:"2.0"},{n:["ru","flag-ru","russia flag"],u:"1f1f7-1f1fa",a:"0.6"},{n:["flag-rw","rwanda flag"],u:"1f1f7-1f1fc",a:"2.0"},{n:["flag-sa","saudi arabia flag"],u:"1f1f8-1f1e6",a:"2.0"},{n:["flag-sb","solomon islands flag"],u:"1f1f8-1f1e7",a:"2.0"},{n:["flag-sc","seychelles flag"],u:"1f1f8-1f1e8",a:"2.0"},{n:["flag-sd","sudan flag"],u:"1f1f8-1f1e9",a:"2.0"},{n:["flag-se","sweden flag"],u:"1f1f8-1f1ea",a:"2.0"},{n:["flag-sg","singapore flag"],u:"1f1f8-1f1ec",a:"2.0"},{n:["flag-sh","st. helena flag"],u:"1f1f8-1f1ed",a:"2.0"},{n:["flag-si","slovenia flag"],u:"1f1f8-1f1ee",a:"2.0"},{n:["flag-sj","svalbard & jan mayen flag"],u:"1f1f8-1f1ef",a:"2.0"},{n:["flag-sk","slovakia flag"],u:"1f1f8-1f1f0",a:"2.0"},{n:["flag-sl","sierra leone flag"],u:"1f1f8-1f1f1",a:"2.0"},{n:["flag-sm","san marino flag"],u:"1f1f8-1f1f2",a:"2.0"},{n:["flag-sn","senegal flag"],u:"1f1f8-1f1f3",a:"2.0"},{n:["flag-so","somalia flag"],u:"1f1f8-1f1f4",a:"2.0"},{n:["flag-sr","suriname flag"],u:"1f1f8-1f1f7",a:"2.0"},{n:["flag-ss","south sudan flag"],u:"1f1f8-1f1f8",a:"2.0"},{n:["flag-st","são tomé & príncipe flag"],u:"1f1f8-1f1f9",a:"2.0"},{n:["flag-sv","el salvador flag"],u:"1f1f8-1f1fb",a:"2.0"},{n:["flag-sx","sint maarten flag"],u:"1f1f8-1f1fd",a:"2.0"},{n:["flag-sy","syria flag"],u:"1f1f8-1f1fe",a:"2.0"},{n:["flag-sz","eswatini flag"],u:"1f1f8-1f1ff",a:"2.0"},{n:["flag-ta","tristan da cunha flag"],u:"1f1f9-1f1e6",a:"2.0"},{n:["flag-tc","turks & caicos islands flag"],u:"1f1f9-1f1e8",a:"2.0"},{n:["flag-td","chad flag"],u:"1f1f9-1f1e9",a:"2.0"},{n:["flag-tf","french southern territories flag"],u:"1f1f9-1f1eb",a:"2.0"},{n:["flag-tg","togo flag"],u:"1f1f9-1f1ec",a:"2.0"},{n:["flag-th","thailand flag"],u:"1f1f9-1f1ed",a:"2.0"},{n:["flag-tj","tajikistan flag"],u:"1f1f9-1f1ef",a:"2.0"},{n:["flag-tk","tokelau flag"],u:"1f1f9-1f1f0",a:"2.0"},{n:["flag-tl","timor-leste flag"],u:"1f1f9-1f1f1",a:"2.0"},{n:["flag-tm","turkmenistan flag"],u:"1f1f9-1f1f2",a:"2.0"},{n:["flag-tn","tunisia flag"],u:"1f1f9-1f1f3",a:"2.0"},{n:["flag-to","tonga flag"],u:"1f1f9-1f1f4",a:"2.0"},{n:["flag-tr","turkey flag"],u:"1f1f9-1f1f7",a:"2.0"},{n:["flag-tt","trinidad & tobago flag"],u:"1f1f9-1f1f9",a:"2.0"},{n:["flag-tv","tuvalu flag"],u:"1f1f9-1f1fb",a:"2.0"},{n:["flag-tw","taiwan flag"],u:"1f1f9-1f1fc",a:"2.0"},{n:["flag-tz","tanzania flag"],u:"1f1f9-1f1ff",a:"2.0"},{n:["flag-ua","ukraine flag"],u:"1f1fa-1f1e6",a:"2.0"},{n:["flag-ug","uganda flag"],u:"1f1fa-1f1ec",a:"2.0"},{n:["flag-um","u.s. outlying islands flag"],u:"1f1fa-1f1f2",a:"2.0"},{n:["flag-un","united nations flag"],u:"1f1fa-1f1f3",a:"4.0"},{n:["us","flag-us","united states flag"],u:"1f1fa-1f1f8",a:"0.6"},{n:["flag-uy","uruguay flag"],u:"1f1fa-1f1fe",a:"2.0"},{n:["flag-uz","uzbekistan flag"],u:"1f1fa-1f1ff",a:"2.0"},{n:["flag-va","vatican city flag"],u:"1f1fb-1f1e6",a:"2.0"},{n:["flag-vc","st. vincent & grenadines flag"],u:"1f1fb-1f1e8",a:"2.0"},{n:["flag-ve","venezuela flag"],u:"1f1fb-1f1ea",a:"2.0"},{n:["flag-vg","british virgin islands flag"],u:"1f1fb-1f1ec",a:"2.0"},{n:["flag-vi","u.s. virgin islands flag"],u:"1f1fb-1f1ee",a:"2.0"},{n:["flag-vn","vietnam flag"],u:"1f1fb-1f1f3",a:"2.0"},{n:["flag-vu","vanuatu flag"],u:"1f1fb-1f1fa",a:"2.0"},{n:["flag-wf","wallis & futuna flag"],u:"1f1fc-1f1eb",a:"2.0"},{n:["flag-ws","samoa flag"],u:"1f1fc-1f1f8",a:"2.0"},{n:["flag-xk","kosovo flag"],u:"1f1fd-1f1f0",a:"2.0"},{n:["flag-ye","yemen flag"],u:"1f1fe-1f1ea",a:"2.0"},{n:["flag-yt","mayotte flag"],u:"1f1fe-1f1f9",a:"2.0"},{n:["flag-za","south africa flag"],u:"1f1ff-1f1e6",a:"2.0"},{n:["flag-zm","zambia flag"],u:"1f1ff-1f1f2",a:"2.0"},{n:["flag-zw","zimbabwe flag"],u:"1f1ff-1f1fc",a:"2.0"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",a:"5.0"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",a:"5.0"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",a:"5.0"}],rf={custom:j1,smileys_people:C1,animals_nature:x1,food_drink:S1,travel_places:R1,activities:z1,objects:P1,symbols:T1,flags:A1},bf=[_.NEUTRAL,_.LIGHT,_.MEDIUM_LIGHT,_.MEDIUM,_.MEDIUM_DARK,_.DARK],M1=Object.entries(_).reduce(function(f,e){var a=e[0],n=e[1];return f[n]=a,f},{}),D1=bf.reduce(function(f,e){var a;return Object.assign(f,(a={},a[e]=e,a))},{}),A;(function(f){f.name="n",f.unified="u",f.variations="v",f.added_in="a",f.imgUrl="imgUrl"})(A||(A={}));var ef={};setTimeout(function(){kf.reduce(function(f,e){return ke(e),f},ef)});function ke(f){var e=uf(f).flat().join("").toLowerCase().replace(/[^a-zA-Z\d]/g,"").split("");e.forEach(function(a){var n;ef[a]=(n=ef[a])!=null?n:{},ef[a][C(f)]=f})}function uf(f){var e;return(e=f[A.name])!=null?e:[]}function L1(f){return parseFloat(f[A.added_in])}function Tf(f){return f?uf(f)[0]:""}function Of(f){var e=f.split("-"),a=e.splice(1,1),n=a[0];return D1[n]?e.join("-"):f}function C(f,e){var a,n=f[A.unified];return!e||!Y(f)?n:(a=O1(f,e))!=null?a:n}function _1(f){var e;return(e=rf==null?void 0:rf[f])!=null?e:[]}function we(f,e){return""+E1(e)+f+".png"}function lf(f){var e;return(e=f[A.variations])!=null?e:[]}function Y(f){return lf(f).length>0}function O1(f,e){return e?lf(f).find(function(a){return a.includes(e)}):C(f)}function of(f){if(f){if($[f])return $[f];var e=Of(f);return $[e]}}var kf=Object.values(rf).flat();function F1(f){rf[m.CUSTOM].length=0,f.forEach(function(e){var a=B1(e);rf[m.CUSTOM].push(a),!$[a[A.unified]]&&(kf.push(a),$[a[A.unified]]=a,ke(a))})}function B1(f){var e;return e={},e[A.name]=f.names.map(function(a){return a.toLowerCase()}),e[A.unified]=f.id.toLowerCase(),e[A.added_in]="0",e[A.imgUrl]=f.imgUrl,e}var $={};setTimeout(function(){kf.reduce(function(f,e){return f[C(e)]=e,Y(e)&&lf(e).forEach(function(a){f[a]=e}),f},$)});function I1(f){var e=f.split("-"),a=e[1];return bf.includes(a)?a:null}var U1=["2640-fe0f","2642-fe0f","2695-fe0f"],mf="Search",N1="No results found",ye=" found. Use up and down arrow keys to navigate.",V1="1 result"+ye,q1="%n results"+ye;function Xf(f){var e,a;f===void 0&&(f={});var n=Ee(),r=Object.assign(n.previewConfig,(e=f.previewConfig)!=null?e:{}),i=Object.assign(n,f),t=h1(f.categories,{suggestionMode:i.suggestedEmojisMode});F1((a=i.customEmojis)!=null?a:[]);var d=i.searchDisabled?K.PREVIEW:i.skinTonePickerLocation;return B({},i,{categories:t,previewConfig:r,skinTonePickerLocation:d})}function Ee(){return{autoFocusSearch:!0,categories:he(),customEmojis:[],defaultSkinTone:_.NEUTRAL,emojiStyle:S.APPLE,emojiVersion:null,getEmojiUrl:we,height:450,lazyLoadEmojis:!1,previewConfig:B({},H1),searchDisabled:!1,searchPlaceHolder:mf,searchPlaceholder:mf,skinTonePickerLocation:K.SEARCH,skinTonesDisabled:!1,suggestedEmojisMode:af.FREQUENT,theme:nf.LIGHT,unicodeToHide:new Set(U1),width:350}}var H1={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},$1=["children"],je=o.createContext(Ee());function G1(f){var e=f.children,a=s1(f,$1),n=K1(a);return o.createElement(je.Provider,{value:n},e)}function K1(f){var e,a=o.useState(function(){return Xf(f)}),n=a[0],r=a[1];return o.useEffect(function(){var i,t;((i=f.customEmojis)==null?void 0:i.length)!==((t=n.customEmojis)==null?void 0:t.length)&&r(Xf(f))},[(e=f.customEmojis)==null?void 0:e.length]),n}function E(){return o.useContext(je)}var Ce=gf.createContext({});function W1(){var f=gf.useContext(Ce);return f}function Y1(f){var e=gf.useRef({onEmojiClick:f.onEmojiClick||fe});return gf.useEffect(function(){e.current.onEmojiClick=f.onEmojiClick||fe},[f.onEmojiClick]),e}function fe(){}function J1(){var f,e=E(),a=e.searchPlaceHolder,n=e.searchPlaceholder;return(f=[a,n].find(function(r){return r!==mf}))!=null?f:mf}function Z1(){var f=E(),e=f.defaultSkinTone;return e}function xe(){var f=E(),e=f.skinTonesDisabled;return e}function J(){var f=E(),e=f.emojiStyle;return e}function Q1(){var f=E(),e=f.autoFocusSearch;return e}function Se(){var f=E(),e=f.categories;return e}function X1(){var f=E(),e=f.customEmojis;return e}function fa(){var f=W1(),e=f.current;return e.onEmojiClick||function(){}}function Re(){var f=E(),e=f.previewConfig;return e}function ea(){var f=E(),e=f.theme;return e}function aa(){var f=E(),e=f.suggestedEmojisMode;return e}function na(){var f=E(),e=f.lazyLoadEmojis;return e}function ra(){var f=E(),e=f.height,a=f.width;return{height:ee(e),width:ee(a)}}function ia(){var f=E(),e=f.emojiVersion;return e}function ze(){var f=E(),e=f.searchDisabled;return e}function Pe(){var f=E(),e=f.skinTonePickerLocation;return e}function oa(){var f=E(),e=f.unicodeToHide;return e}function Z(){var f=E(),e=f.getEmojiUrl;return e}function ee(f){return typeof f=="number"?f+"px":f}function ta(f){var e=f>0,a=f>1;return e?a?q1.replace("%n",f.toString()):V1:N1}function ae(f,e){e===void 0&&(e=0);var a=o.useState(f),n=a[0],r=a[1],i=o.useRef(null);function t(d){return new Promise(function(c){var l;i.current&&clearTimeout(i.current),i.current=(l=window)==null?void 0:l.setTimeout(function(){r(d),c(d)},e)})}return[n,t]}function da(){var f=oa();return function(e){return f.has(e)}}function Te(){var f=o.useRef({}),e=ia();return o.useMemo(function(){var a=parseFloat(""+e);return!e||Number.isNaN(a)?f.current:kf.reduce(function(n,r){return ua(r,a)&&(n[C(r)]=!0),n},f.current)},[e])}function ca(){var f=Te(),e=da();return function(n){var r=Of(C(n));return!!(f[r]||e(r))}}function ua(f,e){return L1(f)>e}function la(f){o.useEffect(function(){f(!0)},[f])}function sa(f){var e=f.children,a=Te(),n=Z1(),r=o.useRef(ef),i=o.useRef(!1),t=o.useRef(!1),d=o.useRef(a),c=ae(Date.now(),200),l=ae("",100),u=o.useState(!1),s=o.useState(n),g=o.useState(null),p=o.useState(new Set),y=o.useState(null),v=o.useState(!1),w=v[0],h=v[1];return la(h),o.createElement(F.Provider,{value:{activeCategoryState:g,activeSkinTone:s,disallowClickRef:i,disallowMouseRef:t,disallowedEmojisRef:d,emojiVariationPickerState:y,emojisThatFailedToLoadState:p,filterRef:r,isPastInitialLoad:w,searchTerm:l,skinToneFanOpenState:u,suggestedUpdateState:c}},e)}var F=o.createContext({activeCategoryState:[null,function(){}],activeSkinTone:[_.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise(function(){})}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}]});function Ff(){var f=o.useContext(F),e=f.filterRef;return e}function ga(){var f=o.useContext(F),e=f.disallowClickRef;return e}function Bf(){var f=o.useContext(F),e=f.disallowMouseRef;return e}function wf(){var f=o.useContext(F),e=f.searchTerm;return e}function If(){var f=o.useContext(F),e=f.activeSkinTone;return e}function Ae(){var f=o.useContext(F),e=f.emojisThatFailedToLoadState;return e}function ba(){var f=o.useContext(F),e=f.isPastInitialLoad;return e}function Q(){var f=o.useContext(F),e=f.emojiVariationPickerState;return e}function sf(){var f=o.useContext(F),e=f.skinToneFanOpenState;return e}function Me(){var f=o.useContext(F),e=f.suggestedUpdateState,a=e[0],n=e[1];return[a,function(){n(Date.now())}]}function ma(){var f=Bf();return function(){f.current=!0}}function De(){var f=Bf();return function(){f.current=!1}}function Le(){var f=Bf();return function(){return f.current}}function pa(){var f=M(),e=De(),a=Le();o.useEffect(function(){var n=f.current;n==null||n.addEventListener("mousemove",r,{passive:!0});function r(){a()&&e()}return function(){n==null||n.removeEventListener("mousemove",r)}},[f,e,a])}function _e(f,e){if(!f||!e)return 0;var a=f.getBoundingClientRect().width,n=e.getBoundingClientRect().width;return Math.floor(a/n)}function Oe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().width,n=e.getBoundingClientRect().left,r=f.getBoundingClientRect().left;return Math.floor((n-r)/a)}function Fe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top;return Math.round((n-r)/a)}function ha(f,e){if(!f||!e)return!1;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top,i=f.getBoundingClientRect().height;return Math.round(n-r+a)f.length?[]:Uf(f,n,a)}function Be(f,e,a,n){var r=Uf(f,e,a);return r[n]||r[r.length-1]||null}function ka(f,e,a,n){var r=va(f,e,a);return r[n]||r[r.length-1]||null}function wa(f,e,a,n){var r=Uf(f,e-1,a);return r[n]||r[r.length-1]||null}function ya(f,e){if(!f||!e.length)return null;var a=f.getBoundingClientRect().top,n=f.getBoundingClientRect().bottom,r=e.find(function(i){var t=i.getBoundingClientRect().top,d=i.getBoundingClientRect().bottom;return t>=a&&t<=n||d>=a&&d<=n});return r||null}function Ea(f){return!!f.nextElementSibling}var pf="button"+x(b.emoji),ja=[pf,x(b.visible),":not("+x(b.hidden)+")"].join("");function O(f){var e;return(e=f==null?void 0:f.closest(pf))!=null?e:null}function Nf(f){var e=qe(f),a=qf(f);if(!e)return[];var n=of(a!=null?a:e);return n?[n,a]:[]}function Ca(f){var e;return!!(f!=null&&f.matches(pf)||!(f==null||(e=f.parentElement)==null)&&e.matches(pf))}function ne(f){var e;return(e=f==null?void 0:f.clientHeight)!=null?e:0}function Ie(f){if(!f)return 0;var e=O(f),a=N(e),n=Vf(a);return re(e)+re(a)+n}function Vf(f){var e,a;if(!f)return 0;var n=f.querySelector(x(b.categoryContent));return((e=f==null?void 0:f.clientHeight)!=null?e:0)-((a=n==null?void 0:n.clientHeight)!=null?a:0)}function xa(f){return f?Ne(f)0?[]:_1(e);p.length>0&&n.current++;var y=0,v=p.map(function(w){var h=C(w,l),P=r(w),D=P.failedToLoad,L=P.filteredOut,I=P.hidden,X=u(w);return(I||X)&&y++,X?null:o.createElement(Wf,{showVariations:g,key:h,emoji:w,unified:h,hidden:D,hiddenOnSearch:L,emojiStyle:t,lazyLoad:i,getEmojiUrl:s})});return o.createElement(n1,{categoryConfig:a,hidden:y===v.length},v)}function xf(f){var e=Gf(f);R(e),jf(e)}function en(f){var e=Gf(f);R(e),e==null||e.click()}function an(f){R($e(f))}function nn(f){if(f){var e=Ge(f);if(!e)return xf(Ef(f));R(e),jf(e)}}function rn(f){if(f){var e=$f(f);if(!e)return an(yf(f));R(e),jf(e)}}function on(f,e){if(f){var a=dn(f);if(!a)return e();R(a),jf(a)}}function tn(f){if(f){var e=cn(f);return R(e)}}function dn(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(r===0){var t=yf(a);return t?Be(W(t),-1,i,n):null}return wa(W(e),r,i,n)}function cn(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(!ha(e,f)){var t=Ef(a);return t?Be(W(t),0,i,n):null}var d=ka(W(e),r,i,n);return d}var un=".EmojiPickerReact .epr-emoji-variation-picker{align-items:center;background:var(--epr-emoji-variation-picker-bg-color);border:1px solid var(--epr-picker-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.2);display:flex;height:0;height:var(--epr-emoji-variation-picker-height);justify-content:space-around;left:15px;opacity:0;padding:5px;pointer-events:none;position:absolute;right:15px;top:0;top:-100%;transform:scale(.9);transition:transform .1s ease-out,opacity .2s ease-out;visibility:hidden;z-index:var(--epr-skin-variation-picker-z-index)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up{transform:scale(.9);transform-origin:center 0}.EmojiPickerReact .epr-emoji-variation-picker.visible{opacity:1;pointer-events:all;transform:scale(1);visibility:visible}.EmojiPickerReact .epr-emoji-variation-picker .EmojiPickerReact .epr-emoji-variation-picker button.epr-emoji:hover{background:none}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='15' xml:space='preserve'%3E%3Cg stroke-miterlimit='10'%3E%3Cpath fill='%23FFF' stroke='%23E8E7E7' d='m1.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L23.66-.43'/%3E%3Cpath fill='%23010202' stroke='%23151617' d='m26.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L48.66-.43'/%3E%3C/g%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:50px 15px;content:\"\";height:15px;position:absolute;top:-10px;width:25px}.EmojiPickerReact.epr-dark-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{top:100%;transform:translateX(-18px)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up .epr-emoji-pointer{top:0;transform:rotate(180deg) translateY(100%) translateX(18px)}";z(un);var G;(function(f){f[f.Up=0]="Up",f[f.Down=1]="Down"})(G||(G={}));function ln(){var f=vf(),e=u1(),a=Q(),n=a[0],r=J(),i=gn(e),t=i.getTop,d=i.getMenuDirection,c=me(),l=sn(e),u=Z(),s=O(f.current),g=n&&s&&Y(n)&&s.classList.contains(b.emojiHasVariations);o.useEffect(function(){g&&xf(e.current)},[e,g,f]);var p,y;return!g&&f.current?c(null):(p=t(),y=l()),o.createElement("div",{ref:e,className:j(b.variationPicker,{visible:g,"pointing-up":d()===G.Down}),style:{top:p}},g&&n?[C(n)].concat(lf(n)).slice(0,6).map(function(v){return o.createElement(Wf,{key:v,emoji:n,unified:v,emojiStyle:r,showVariations:!1,getEmojiUrl:u})}):null,o.createElement("div",{className:"epr-emoji-pointer",style:y}))}function sn(f){var e=vf();return function(){var n={};if(!f.current)return n;if(e.current){var r=O(e.current),i=Sa(r);if(!r)return n;n.left=i+(r==null?void 0:r.clientWidth)/2}return n}}function gn(f){var e=vf(),a=M(),n=G.Up;return{getMenuDirection:r,getTop:i};function r(){return n}function i(){n=G.Up;var t=0;if(!f.current)return 0;var d=ne(f.current);if(e.current){var c,l=a.current,u=O(e.current),s=ne(u);t=Ie(u);var g=(c=l==null?void 0:l.scrollTop)!=null?c:0;g>t-d&&(n=G.Down,t+=s+d)}return t-d}}var bn=".EmojiPickerReact .epr-body{flex:1;overflow-x:hidden;overflow-y:scroll;position:relative}";z(bn);function mn(){var f=M();return Da(f),Aa(f),pa(),o.createElement("div",{className:b.scrollBody,ref:f},o.createElement(ln,null),o.createElement(Xa,null))}function pn(f,e){var a=M(),n=Le(),r=De();o.useEffect(function(){if(!f)return;var i=a.current;i==null||i.addEventListener("keydown",c,{passive:!0}),i==null||i.addEventListener("mouseover",l,!0),i==null||i.addEventListener("focus",t,!0),i==null||i.addEventListener("mouseout",d,{passive:!0}),i==null||i.addEventListener("blur",d,!0);function t(u){var s=O(u.target);if(!s)return d();var g=qf(s),p=qe(s);if(!g||!p)return d();e({unified:g,originalUnified:p})}function d(u){if(u){var s=u.relatedTarget;if(!O(s))return e(null)}e(null)}function c(u){u.key==="Escape"&&e(null)}function l(u){if(!n()){var s=O(u.target);s&&R(s)}}return function(){i==null||i.removeEventListener("mouseover",l),i==null||i.removeEventListener("mouseout",d),i==null||i.removeEventListener("focus",t,!0),i==null||i.removeEventListener("blur",d,!0),i==null||i.removeEventListener("keydown",c)}},[a,f,e,n,r])}function Yf(){var f=Pe();return f===K.SEARCH}function r1(){var f=Pe();return f===K.PREVIEW}var hn=".EmojiPickerReact .Flex{display:flex}.EmojiPickerReact .Flex.FlexRow{flex-direction:row}.EmojiPickerReact .Flex.FlexColumn{flex-direction:column}";z(hn);var Mf;(function(f){f.ROW="FlexRow",f.COLUMN="FlexColumn"})(Mf||(Mf={}));function i1(f){var e=f.children,a=f.className,n=f.style,r=n===void 0?{}:n,i=f.direction,t=i===void 0?Mf.ROW:i;return o.createElement("div",{style:B({},r),className:j("Flex",a,t)},e)}function vn(f){var e=f.className,a=f.style,n=a===void 0?{}:a;return o.createElement("div",{style:B({flex:1},n),className:j(e)})}var kn=".EmojiPickerReact .epr-preview{align-items:center;border-top:1px solid var(--epr-preview-border-color);height:var(--epr-preview-height);padding:0 var(--epr-horizontal-padding);position:relative;z-index:1;z-index:var(--epr-preview-z-index)}.EmojiPickerReact .epr-preview .epr-preview-emoji-label{color:var(--epr-preview-text-color);font-size:var(--epr-preview-text-size);padding:var(--epr-preview-text-padding);text-transform:capitalize}";z(kn);function wn(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"absolute"}),className:a},e)}function Sf(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"relative"}),className:a},e)}var yn='.EmojiPickerReact .epr-skin-tones{--epr-skin-tone-size:15px;align-items:center;display:flex;justify-content:flex-end;padding:10px 0;transition:all .3s ease-in-out}.EmojiPickerReact .epr-skin-tones.epr-vertical{align-items:flex-end;border:1px solid var(--epr-bg-color);border-radius:6px;flex-direction:column;padding:5px}.EmojiPickerReact .epr-skin-tones.epr-vertical.epr-open{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:var(--epr-skin-tone-picker-menu-color);border:1px solid var(--epr-picker-border-color)}.EmojiPickerReact .epr-skin-tone-select{height:var(--epr-skin-tone-size);position:relative;width:var(--epr-skin-tone-size)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-tone{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.EmojiPickerReact .epr-skin-tones:not(.epr-open) .epr-tone{opacity:0;z-index:0}.EmojiPickerReact .epr-skin-tones .epr-tone{border-radius:4px;box-shadow:0 0 0 0 var(--epr-active-skin-hover-color);cursor:pointer;display:block;height:var(--epr-skin-tone-size);position:absolute;right:0;transition:transform .3s ease-in-out,opacity .5s ease-in-out;width:var(--epr-skin-tone-size);z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone:hover{box-shadow:0 0 0 3px var(--epr-active-skin-hover-color)}.EmojiPickerReact .epr-skin-tones .epr-tone:focus{box-shadow:0 0 0 3px var(--epr-focus-bg-color)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-skin-tone-select .epr-tone.epr-active:after{border:1px solid var(--epr-active-skin-tone-indicator-border-color);border-radius:5px;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-active{opacity:1;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-neutral{background-color:#ffd225}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fb{background-color:#ffdfbd}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fc{background-color:#e9c197}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fd{background-color:#c88e62}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fe{background-color:#a86637}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3ff{background-color:#60463a}';z(yn);var ff=28;function En(){return o.createElement(Sf,{style:{height:ff}},o.createElement(wn,{style:{bottom:0,right:0}},o.createElement(o1,{direction:tf.VERTICAL})))}function o1(f){var e,a=f.direction,n=a===void 0?tf.HORIZONTAL:a,r=Df(),i=xe(),t=sf(),d=t[0],c=t[1],l=If(),u=l[0],s=l[1],g=q(),p=H();if(i)return null;var y=ff*bf.length+"px",v=d?y:ff+"px",w=n===tf.VERTICAL;return o.createElement(Sf,{className:j("epr-skin-tones",n,(e={},e[b.open]=d,e)),style:w?{flexBasis:v,height:v}:{flexBasis:v}},o.createElement("div",{className:"epr-skin-tone-select",ref:r},bf.map(function(h,P){var D,L=h===u;return o.createElement(Cf,{style:{transform:j(w?"translateY(-"+P*(d?ff:0)+"px)":"translateX(-"+P*(d?ff:0)+"px)",d&&L&&"scale(1.3)")},onClick:function(){d?(s(h),p()):c(!0),g()},key:h,className:j("epr-tone-"+h,"epr-tone",(D={},D[b.active]=L,D)),tabIndex:d?0:-1,"aria-pressed":L,"aria-label":"Skin tone "+M1[h]})})))}var tf;(function(f){f.VERTICAL="epr-vertical",f.HORIZONTAL="epr-horizontal"})(tf||(tf={}));function jn(){var f=Re(),e=r1();return f.showPreview?o.createElement(i1,{className:"epr-preview"},o.createElement(Cn,null),o.createElement(vn,null),e?o.createElement(En,null):null):null}function Cn(){var f,e=Re(),a=o.useState(null),n=a[0],r=a[1],i=J(),t=Q(),d=t[0],c=Z();pn(e.showPreview,r);var l=of((f=n==null?void 0:n.unified)!=null?f:n==null?void 0:n.originalUnified),u=l!=null&&n!=null;return o.createElement(s,null);function s(){var g=d!=null?d:of(e.defaultEmoji);if(!g)return null;var p=d?Tf(d):e.defaultCaption;return o.createElement(o.Fragment,null,o.createElement("div",null,u?o.createElement(hf,{unified:n==null?void 0:n.unified,emoji:l,emojiStyle:i,size:45,getEmojiUrl:c}):g?o.createElement(hf,{unified:C(g),emoji:g,emojiStyle:i,size:45,getEmojiUrl:c}):null),u?o.createElement("div",{className:"epr-preview-emoji-label"},Tf(l)):o.createElement("div",{className:"epr-preview-emoji-label"},p))}}var xn=".EmojiPickerReact .epr-category-nav{display:flex;flex-direction:row;justify-content:space-around;padding:var(--epr-header-padding)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-size:calc(var(--epr-category-navigation-button-size)*10);display:inline-block;height:var(--epr-category-navigation-button-size);outline:none;position:relative;transition:opacity .2s ease-in-out;width:var(--epr-category-navigation-button-size)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{border:2px solid var(--epr-category-icon-active-color);border-radius:50%;bottom:-2px;content:\"\";left:-2px;position:absolute;right:-2px;top:-2px}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}.EmojiPickerReact.epr-search-active .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' xml:space='preserve'%3E%3Cg fill='%233371B7' stroke='%233371B7' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 29.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 23c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3Cpath d='M14.6 31.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 34.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M64.1 33.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M65.5 23.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%233371B7' cx='66.2' cy='30.9' rx='.9' ry='1'/%3E%3Cellipse fill='%233371B7' cx='73.8' cy='30.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath d='M96.4 30c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 28.6v.1c-.9.1-2.9.1-4.6-1.1-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.1-.1-.2.5-.1 1.2-.2 2-.1 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.2.3.6.4.9zM84 32.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath stroke-linecap='round' d='m116.3 26.8-1.4 2-.8-.8-.6-.6v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.6-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 27.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 34.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%233371B7'/%3E%3Cg fill='%233371B7'%3E%3Cpath d='M170.8 23.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 27.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6 0-.4-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M186.2 23.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%233371B7' cx='186' cy='28.9' r='.7'/%3E%3Ccircle fill='%233371B7' cx='194' cy='26.7' r='.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m186 33.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%233371B7' stroke='%233371B7' stroke-width='.25' stroke-miterlimit='10' d='M156 24.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M48.1 23.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 28.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m43.5 30.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 32.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 33.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%233371B7' cx='51.6' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='25' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='27.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='54.3' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='50.9' cy='25' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%233371B7' d='M24.2 31v-7.6c.1.1.8.9 2.8 3.1 2.5-1.6 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m21.2 30 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 30l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%233371B7' d='m29.5 32.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m32.4 32.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%233371B7' cx='27.6' cy='29.7' r='.7'/%3E%3Ccircle fill='%233371B7' cx='32.4' cy='29.7' r='.7'/%3E%3Cg fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 49.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm1.8 3.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 54.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 43c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M64.1 53.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M65.5 43.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%23C0C0BF' cx='66.2' cy='50.9' rx='.9' ry='1'/%3E%3Cellipse fill='%23C0C0BF' cx='73.8' cy='50.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath d='M96.4 50c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 48.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.4.3.8.4 1.1zM84 52.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath stroke-linecap='round' d='m116.3 46.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 47.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 54.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%23C0C0BF'/%3E%3Cg fill='%23C0C0BF'%3E%3Cpath d='M170.8 43.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 47.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M186.2 43.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23C0C0BF' cx='186' cy='48.9' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='194' cy='46.7' r='.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m186 53.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.25' stroke-miterlimit='10' d='M156 44.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M48.1 43.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 48.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m43.5 50.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 52.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 53.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23C0C0BF' cx='51.6' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='45' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='47.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='54.3' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='50.9' cy='45' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M24.2 51v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m21.2 50 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 50l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='m29.5 52.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m32.4 52.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23C0C0BF' cx='27.6' cy='49.7' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='32.4' cy='49.7' r='.7'/%3E%3Cg fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M14.6 71.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 74.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm2.8-4.6c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm-5.6 1.5c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 63c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M64.1 73.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4V76c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M65.5 63.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%236AA9DD' cx='66.2' cy='70.9' r='.9'/%3E%3Ccircle fill='%236AA9DD' cx='73.8' cy='70.9' r='.9'/%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath d='M96.4 70c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 68.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 72.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.9-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath stroke-linecap='round' d='m116.3 66.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 67.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 74.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%236AA9DD'/%3E%3Cg fill='%236AA9DD'%3E%3Cpath d='M170.8 63.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 67.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.7-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M186.2 63.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%236AA9DD' cx='186' cy='68.9' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='194' cy='66.7' r='.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m186 73.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.25' stroke-miterlimit='10' d='M156 64.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M48.1 63.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 68.8c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m43.5 70.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2-.1l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 72.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 73.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%236AA9DD' cx='51.6' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='65' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='67.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='54.3' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='50.9' cy='65' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M24.2 71v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m21.2 70.1 5.4 1.2m-5.4 2.8 5.4-1.2m12.2-2.8-5.4 1.2m5.4 2.8-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%236AA9DD' d='m29.5 72.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5.2-.1.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m32.4 72.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%236AA9DD' cx='27.6' cy='69.7' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='32.4' cy='69.7' r='.7'/%3E%3Cg fill='%23868686' stroke='%23868686' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 9.5c.6 0 1.1-.5 1.1-1.2 0-.6-.5-1.1-1.1-1.1-.6 0-1.2.5-1.2 1.1s.6 1.2 1.2 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zM7.2 9.5c.6 0 1.2-.5 1.2-1.2 0-.6-.5-1.1-1.2-1.1-.6 0-1.1.5-1.1 1.1s.5 1.2 1.1 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zm7.4 3.3c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.2.1-.3 0-.4zM10 14.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2z'/%3E%3Cpath d='M10 3c-3.8 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2S6.6 3.8 10 3.8s6.2 2.8 6.2 6.2-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M64.1 13.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4 0h2.4c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.2.2-.4.4-.4zm-9.8-5h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23868686' d='M65.5 3.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7V5.5c0-1.1.8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%23868686' cx='66.2' cy='10.9' r='.9'/%3E%3Ccircle fill='%23868686' cx='73.8' cy='10.9' r='.9'/%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath d='M96.4 10c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 8.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 12.1V12c.9-.2 2.9-.4 4.7.6 1.1.6 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8-1.1-.6-1.9-1.6-2.4-2.5-.3-.4-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath stroke-linecap='round' d='m116.3 6.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 7.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 14.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9M126.8 3.5h10.8v2.7h-10.8V3.5z' fill='none' stroke='%23868686'/%3E%3Cg fill='%23868686'%3E%3Cpath d='M170.8 3.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.3c-.2 3.8 2.6 7.1 6.3 7.4 3.9.4 7.3-2.6 7.6-6.5.3-3.6-2.5-6.9-6.1-7.3z'/%3E%3Cpath d='M170.3 7.4c0-.3-.3-.6-.6-.6s-.7.3-.7.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M186.2 3.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7V6.1c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23868686' cx='186' cy='8.9' r='.7'/%3E%3Ccircle fill='%23868686' cx='194' cy='6.7' r='.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m186 13.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23868686' stroke='%23868686' stroke-width='.25' stroke-miterlimit='10' d='M156 4.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.1s-2.4-.1-3.8-.6c-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4V4.7c-.3-.2-.4-.3-.5-.4zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1V4.7c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23868686' d='M48.1 3.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 8.7c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m43.5 10.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.1.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.1 1.2-.1l.2-.1c.3-.2.8-.1 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.4.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 12.1c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 13.3c0 .5.6 2.4 1.3 2.6 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23868686' cx='51.6' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='4.9' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='7.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='54.3' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='50.9' cy='4.9' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23868686' d='M24.2 11V3.5c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.7-.6-1.7-.6-2.6z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m21.2 10 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 10l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='m29.5 12.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.6 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m32.4 12.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23868686' cx='27.6' cy='9.7' r='.7'/%3E%3Ccircle fill='%23868686' cx='32.4' cy='9.7' r='.7'/%3E%3C/svg%3E\");background-position:0 0}.EmojiPickerReact.epr-dark-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}aside.EmojiPickerReact.epr-main:has(input:-moz-placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}aside.EmojiPickerReact.epr-main:has(input:placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}}.EmojiPickerReact button.epr-cat-btn.epr-icn-suggested{background-position-x:calc(var(--epr-category-navigation-button-size)*-8)}.EmojiPickerReact button.epr-cat-btn.epr-icn-custom{background-position-x:calc(var(--epr-category-navigation-button-size)*-9)}.EmojiPickerReact button.epr-cat-btn.epr-icn-activities{background-position-x:calc(var(--epr-category-navigation-button-size)*-4)}.EmojiPickerReact button.epr-cat-btn.epr-icn-animals_nature{background-position-x:calc(var(--epr-category-navigation-button-size)*-1)}.EmojiPickerReact button.epr-cat-btn.epr-icn-flags{background-position-x:calc(var(--epr-category-navigation-button-size)*-7)}.EmojiPickerReact button.epr-cat-btn.epr-icn-food_drink{background-position-x:calc(var(--epr-category-navigation-button-size)*-2)}.EmojiPickerReact button.epr-cat-btn.epr-icn-objects{background-position-x:calc(var(--epr-category-navigation-button-size)*-5)}.EmojiPickerReact button.epr-cat-btn.epr-icn-smileys_people{background-position-x:0}.EmojiPickerReact button.epr-cat-btn.epr-icn-symbols{background-position-x:calc(var(--epr-category-navigation-button-size)*-6)}.EmojiPickerReact button.epr-cat-btn.epr-icn-travel_places{background-position-x:calc(var(--epr-category-navigation-button-size)*-3)}";z(xn);function Sn(f){var e;return(e=f==null?void 0:f.getAttribute("data-name"))!=null?e:null}function Rn(f){var e=M();o.useEffect(function(){var a=new Map,n=e.current,r=new IntersectionObserver(function(i){if(n){for(var t=b1(i),d;!(d=t()).done;){var c=d.value,l=Sn(c.target);a.set(l,c.intersectionRatio)}var u=Array.from(a),s=u[u.length-1];if(s[1]==1)return f(s[0]);for(var g=0,p=u;g=0)&&(a[r]=f[r]);return a}function g1(f,e){if(f){if(typeof f=="string")return Zf(f,e);var a=Object.prototype.toString.call(f).slice(8,-1);if(a==="Object"&&f.constructor&&(a=f.constructor.name),a==="Map"||a==="Set")return Array.from(f);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Zf(f,e)}}function Zf(f,e){(e==null||e>f.length)&&(e=f.length);for(var a=0,n=new Array(e);a=f.length?{done:!0}:{done:!1,value:f[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var af;(function(f){f.RECENT="recent",f.FREQUENT="frequent"})(af||(af={}));var S;(function(f){f.NATIVE="native",f.APPLE="apple",f.TWITTER="twitter",f.GOOGLE="google",f.FACEBOOK="facebook"})(S||(S={}));var nf;(function(f){f.DARK="dark",f.LIGHT="light",f.AUTO="auto"})(nf||(nf={}));var _;(function(f){f.NEUTRAL="neutral",f.LIGHT="1f3fb",f.MEDIUM_LIGHT="1f3fc",f.MEDIUM="1f3fd",f.MEDIUM_DARK="1f3fe",f.DARK="1f3ff"})(_||(_={}));var m;(function(f){f.SUGGESTED="suggested",f.CUSTOM="custom",f.SMILEYS_PEOPLE="smileys_people",f.ANIMALS_NATURE="animals_nature",f.FOOD_DRINK="food_drink",f.TRAVEL_PLACES="travel_places",f.ACTIVITIES="activities",f.OBJECTS="objects",f.SYMBOLS="symbols",f.FLAGS="flags"})(m||(m={}));var K;(function(f){f.SEARCH="SEARCH",f.PREVIEW="PREVIEW"})(K||(K={}));var T,m1=[m.SUGGESTED,m.CUSTOM,m.SMILEYS_PEOPLE,m.ANIMALS_NATURE,m.FOOD_DRINK,m.TRAVEL_PLACES,m.ACTIVITIES,m.OBJECTS,m.SYMBOLS,m.FLAGS],p1={name:"Recently Used",category:m.SUGGESTED},pe=(T={},T[m.SUGGESTED]={category:m.SUGGESTED,name:"Frequently Used"},T[m.CUSTOM]={category:m.CUSTOM,name:"Custom Emojis"},T[m.SMILEYS_PEOPLE]={category:m.SMILEYS_PEOPLE,name:"Smileys & People"},T[m.ANIMALS_NATURE]={category:m.ANIMALS_NATURE,name:"Animals & Nature"},T[m.FOOD_DRINK]={category:m.FOOD_DRINK,name:"Food & Drink"},T[m.TRAVEL_PLACES]={category:m.TRAVEL_PLACES,name:"Travel & Places"},T[m.ACTIVITIES]={category:m.ACTIVITIES,name:"Activities"},T[m.OBJECTS]={category:m.OBJECTS,name:"Objects"},T[m.SYMBOLS]={category:m.SYMBOLS,name:"Symbols"},T[m.FLAGS]={category:m.FLAGS,name:"Flags"},T);function he(f){return m1.map(function(e){return B({},pe[e],f&&f[e]&&f[e])})}function _f(f){return f.category}function ve(f){return f.name}function h1(f,e){var a;f===void 0&&(f=[]),e===void 0&&(e={});var n={};e.suggestionMode===af.RECENT&&(n[m.SUGGESTED]=p1);var r=he(n);return(a=f)!=null&&a.length?f.map(function(i){return typeof i=="string"?Qf(i,n[i]):B({},Qf(i.category,n[i.category]),i)}):r}function Qf(f,e){return e===void 0&&(e={}),Object.assign(pe[f],e)}var v1="https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/",k1="https://cdn.jsdelivr.net/npm/emoji-datasource-facebook/img/facebook/64/",w1="https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/",y1="https://cdn.jsdelivr.net/npm/emoji-datasource-google/img/google/64/";function E1(f){switch(f){case S.TWITTER:return w1;case S.GOOGLE:return y1;case S.FACEBOOK:return k1;case S.APPLE:default:return v1}}var j1=[],C1=[{n:["grinning","grinning face"],u:"1f600",a:"1.0"},{n:["smiley","smiling face with open mouth"],u:"1f603",a:"0.6"},{n:["smile","smiling face with open mouth and smiling eyes"],u:"1f604",a:"0.6"},{n:["grin","grinning face with smiling eyes"],u:"1f601",a:"0.6"},{n:["laughing","satisfied","smiling face with open mouth and tightly-closed eyes"],u:"1f606",a:"0.6"},{n:["sweat smile","smiling face with open mouth and cold sweat"],u:"1f605",a:"0.6"},{n:["rolling on the floor laughing"],u:"1f923",a:"3.0"},{n:["joy","face with tears of joy"],u:"1f602",a:"0.6"},{n:["slightly smiling face"],u:"1f642",a:"1.0"},{n:["upside-down face","upside down face"],u:"1f643",a:"1.0"},{n:["melting face"],u:"1fae0",a:"14.0"},{n:["wink","winking face"],u:"1f609",a:"0.6"},{n:["blush","smiling face with smiling eyes"],u:"1f60a",a:"0.6"},{n:["innocent","smiling face with halo"],u:"1f607",a:"1.0"},{n:["smiling face with 3 hearts","smiling face with smiling eyes and three hearts"],u:"1f970",a:"11.0"},{n:["heart eyes","smiling face with heart-shaped eyes"],u:"1f60d",a:"0.6"},{n:["star-struck","grinning face with star eyes"],u:"1f929",a:"5.0"},{n:["kissing heart","face throwing a kiss"],u:"1f618",a:"0.6"},{n:["kissing","kissing face"],u:"1f617",a:"1.0"},{n:["relaxed","white smiling face"],u:"263a-fe0f",a:"0.6"},{n:["kissing closed eyes","kissing face with closed eyes"],u:"1f61a",a:"0.6"},{n:["kissing smiling eyes","kissing face with smiling eyes"],u:"1f619",a:"1.0"},{n:["smiling face with tear"],u:"1f972",a:"13.0"},{n:["yum","face savouring delicious food"],u:"1f60b",a:"0.6"},{n:["stuck out tongue","face with stuck-out tongue"],u:"1f61b",a:"1.0"},{n:["stuck out tongue winking eye","face with stuck-out tongue and winking eye"],u:"1f61c",a:"0.6"},{n:["zany face","grinning face with one large and one small eye"],u:"1f92a",a:"5.0"},{n:["stuck out tongue closed eyes","face with stuck-out tongue and tightly-closed eyes"],u:"1f61d",a:"0.6"},{n:["money-mouth face","money mouth face"],u:"1f911",a:"1.0"},{n:["hugging face"],u:"1f917",a:"1.0"},{n:["face with hand over mouth","smiling face with smiling eyes and hand covering mouth"],u:"1f92d",a:"5.0"},{n:["face with open eyes and hand over mouth"],u:"1fae2",a:"14.0"},{n:["face with peeking eye"],u:"1fae3",a:"14.0"},{n:["shushing face","face with finger covering closed lips"],u:"1f92b",a:"5.0"},{n:["thinking face"],u:"1f914",a:"1.0"},{n:["saluting face"],u:"1fae1",a:"14.0"},{n:["zipper-mouth face","zipper mouth face"],u:"1f910",a:"1.0"},{n:["face with raised eyebrow","face with one eyebrow raised"],u:"1f928",a:"5.0"},{n:["neutral face"],u:"1f610",a:"0.7"},{n:["expressionless","expressionless face"],u:"1f611",a:"1.0"},{n:["no mouth","face without mouth"],u:"1f636",a:"1.0"},{n:["dotted line face"],u:"1fae5",a:"14.0"},{n:["face in clouds"],u:"1f636-200d-1f32b-fe0f",a:"13.1"},{n:["smirk","smirking face"],u:"1f60f",a:"0.6"},{n:["unamused","unamused face"],u:"1f612",a:"0.6"},{n:["face with rolling eyes"],u:"1f644",a:"1.0"},{n:["grimacing","grimacing face"],u:"1f62c",a:"1.0"},{n:["face exhaling"],u:"1f62e-200d-1f4a8",a:"13.1"},{n:["lying face"],u:"1f925",a:"3.0"},{n:["relieved","relieved face"],u:"1f60c",a:"0.6"},{n:["pensive","pensive face"],u:"1f614",a:"0.6"},{n:["sleepy","sleepy face"],u:"1f62a",a:"0.6"},{n:["drooling face"],u:"1f924",a:"3.0"},{n:["sleeping","sleeping face"],u:"1f634",a:"1.0"},{n:["mask","face with medical mask"],u:"1f637",a:"0.6"},{n:["face with thermometer"],u:"1f912",a:"1.0"},{n:["face with head-bandage","face with head bandage"],u:"1f915",a:"1.0"},{n:["nauseated face"],u:"1f922",a:"3.0"},{n:["face vomiting","face with open mouth vomiting"],u:"1f92e",a:"5.0"},{n:["sneezing face"],u:"1f927",a:"3.0"},{n:["hot face","overheated face"],u:"1f975",a:"11.0"},{n:["cold face","freezing face"],u:"1f976",a:"11.0"},{n:["woozy face","face with uneven eyes and wavy mouth"],u:"1f974",a:"11.0"},{n:["dizzy face"],u:"1f635",a:"0.6"},{n:["face with spiral eyes"],u:"1f635-200d-1f4ab",a:"13.1"},{n:["exploding head","shocked face with exploding head"],u:"1f92f",a:"5.0"},{n:["face with cowboy hat"],u:"1f920",a:"3.0"},{n:["partying face","face with party horn and party hat"],u:"1f973",a:"11.0"},{n:["disguised face"],u:"1f978",a:"13.0"},{n:["sunglasses","smiling face with sunglasses"],u:"1f60e",a:"1.0"},{n:["nerd face"],u:"1f913",a:"1.0"},{n:["face with monocle"],u:"1f9d0",a:"5.0"},{n:["confused","confused face"],u:"1f615",a:"1.0"},{n:["face with diagonal mouth"],u:"1fae4",a:"14.0"},{n:["worried","worried face"],u:"1f61f",a:"1.0"},{n:["slightly frowning face"],u:"1f641",a:"1.0"},{n:["frowning face","white frowning face"],u:"2639-fe0f",a:"0.7"},{n:["open mouth","face with open mouth"],u:"1f62e",a:"1.0"},{n:["hushed","hushed face"],u:"1f62f",a:"1.0"},{n:["astonished","astonished face"],u:"1f632",a:"0.6"},{n:["flushed","flushed face"],u:"1f633",a:"0.6"},{n:["pleading face","face with pleading eyes"],u:"1f97a",a:"11.0"},{n:["face holding back tears"],u:"1f979",a:"14.0"},{n:["frowning","frowning face with open mouth"],u:"1f626",a:"1.0"},{n:["anguished","anguished face"],u:"1f627",a:"1.0"},{n:["fearful","fearful face"],u:"1f628",a:"0.6"},{n:["cold sweat","face with open mouth and cold sweat"],u:"1f630",a:"0.6"},{n:["disappointed relieved","disappointed but relieved face"],u:"1f625",a:"0.6"},{n:["cry","crying face"],u:"1f622",a:"0.6"},{n:["sob","loudly crying face"],u:"1f62d",a:"0.6"},{n:["scream","face screaming in fear"],u:"1f631",a:"0.6"},{n:["confounded","confounded face"],u:"1f616",a:"0.6"},{n:["persevere","persevering face"],u:"1f623",a:"0.6"},{n:["disappointed","disappointed face"],u:"1f61e",a:"0.6"},{n:["sweat","face with cold sweat"],u:"1f613",a:"0.6"},{n:["weary","weary face"],u:"1f629",a:"0.6"},{n:["tired face"],u:"1f62b",a:"0.6"},{n:["yawning face"],u:"1f971",a:"12.0"},{n:["triumph","face with look of triumph"],u:"1f624",a:"0.6"},{n:["rage","pouting face"],u:"1f621",a:"0.6"},{n:["angry","angry face"],u:"1f620",a:"0.6"},{n:["face with symbols on mouth","serious face with symbols covering mouth"],u:"1f92c",a:"5.0"},{n:["smiling imp","smiling face with horns"],u:"1f608",a:"1.0"},{n:["imp"],u:"1f47f",a:"0.6"},{n:["skull"],u:"1f480",a:"0.6"},{n:["skull and crossbones"],u:"2620-fe0f",a:"1.0"},{n:["poop","shit","hankey","pile of poo"],u:"1f4a9",a:"0.6"},{n:["clown face"],u:"1f921",a:"3.0"},{n:["japanese ogre"],u:"1f479",a:"0.6"},{n:["japanese goblin"],u:"1f47a",a:"0.6"},{n:["ghost"],u:"1f47b",a:"0.6"},{n:["alien","extraterrestrial alien"],u:"1f47d",a:"0.6"},{n:["alien monster","space invader"],u:"1f47e",a:"0.6"},{n:["robot face"],u:"1f916",a:"1.0"},{n:["smiley cat","smiling cat face with open mouth"],u:"1f63a",a:"0.6"},{n:["smile cat","grinning cat face with smiling eyes"],u:"1f638",a:"0.6"},{n:["joy cat","cat face with tears of joy"],u:"1f639",a:"0.6"},{n:["heart eyes cat","smiling cat face with heart-shaped eyes"],u:"1f63b",a:"0.6"},{n:["smirk cat","cat face with wry smile"],u:"1f63c",a:"0.6"},{n:["kissing cat","kissing cat face with closed eyes"],u:"1f63d",a:"0.6"},{n:["scream cat","weary cat face"],u:"1f640",a:"0.6"},{n:["crying cat face"],u:"1f63f",a:"0.6"},{n:["pouting cat","pouting cat face"],u:"1f63e",a:"0.6"},{n:["see no evil","see-no-evil monkey"],u:"1f648",a:"0.6"},{n:["hear no evil","hear-no-evil monkey"],u:"1f649",a:"0.6"},{n:["speak no evil","speak-no-evil monkey"],u:"1f64a",a:"0.6"},{n:["kiss","kiss mark"],u:"1f48b",a:"0.6"},{n:["love letter"],u:"1f48c",a:"0.6"},{n:["cupid","heart with arrow"],u:"1f498",a:"0.6"},{n:["gift heart","heart with ribbon"],u:"1f49d",a:"0.6"},{n:["sparkling heart"],u:"1f496",a:"0.6"},{n:["heartpulse","growing heart"],u:"1f497",a:"0.6"},{n:["heartbeat","beating heart"],u:"1f493",a:"0.6"},{n:["revolving hearts"],u:"1f49e",a:"0.6"},{n:["two hearts"],u:"1f495",a:"0.6"},{n:["heart decoration"],u:"1f49f",a:"0.6"},{n:["heart exclamation","heavy heart exclamation mark ornament"],u:"2763-fe0f",a:"1.0"},{n:["broken heart"],u:"1f494",a:"0.6"},{n:["heart on fire"],u:"2764-fe0f-200d-1f525",a:"13.1"},{n:["mending heart"],u:"2764-fe0f-200d-1fa79",a:"13.1"},{n:["heart","heavy black heart"],u:"2764-fe0f",a:"0.6"},{n:["orange heart"],u:"1f9e1",a:"5.0"},{n:["yellow heart"],u:"1f49b",a:"0.6"},{n:["green heart"],u:"1f49a",a:"0.6"},{n:["blue heart"],u:"1f499",a:"0.6"},{n:["purple heart"],u:"1f49c",a:"0.6"},{n:["brown heart"],u:"1f90e",a:"12.0"},{n:["black heart"],u:"1f5a4",a:"3.0"},{n:["white heart"],u:"1f90d",a:"12.0"},{n:["100","hundred points symbol"],u:"1f4af",a:"0.6"},{n:["anger","anger symbol"],u:"1f4a2",a:"0.6"},{n:["boom","collision","collision symbol"],u:"1f4a5",a:"0.6"},{n:["dizzy","dizzy symbol"],u:"1f4ab",a:"0.6"},{n:["sweat drops","splashing sweat symbol"],u:"1f4a6",a:"0.6"},{n:["dash","dash symbol"],u:"1f4a8",a:"0.6"},{n:["hole"],u:"1f573-fe0f",a:"0.7"},{n:["bomb"],u:"1f4a3",a:"0.6"},{n:["speech balloon"],u:"1f4ac",a:"0.6"},{n:["eye in speech bubble","eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f",a:"2.0"},{n:["left speech bubble"],u:"1f5e8-fe0f",a:"2.0"},{n:["right anger bubble"],u:"1f5ef-fe0f",a:"0.7"},{n:["thought balloon"],u:"1f4ad",a:"1.0"},{n:["zzz","sleeping symbol"],u:"1f4a4",a:"0.6"},{n:["wave","waving hand sign"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"],a:"0.6"},{n:["raised back of hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"],a:"3.0"},{n:["hand with fingers splayed","raised hand with fingers splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"],a:"0.7"},{n:["hand","raised hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"],a:"0.6"},{n:["spock-hand","raised hand with part between middle and ring fingers"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"],a:"1.0"},{n:["rightwards hand"],u:"1faf1",v:["1faf1-1f3fb","1faf1-1f3fc","1faf1-1f3fd","1faf1-1f3fe","1faf1-1f3ff"],a:"14.0"},{n:["leftwards hand"],u:"1faf2",v:["1faf2-1f3fb","1faf2-1f3fc","1faf2-1f3fd","1faf2-1f3fe","1faf2-1f3ff"],a:"14.0"},{n:["palm down hand"],u:"1faf3",v:["1faf3-1f3fb","1faf3-1f3fc","1faf3-1f3fd","1faf3-1f3fe","1faf3-1f3ff"],a:"14.0"},{n:["palm up hand"],u:"1faf4",v:["1faf4-1f3fb","1faf4-1f3fc","1faf4-1f3fd","1faf4-1f3fe","1faf4-1f3ff"],a:"14.0"},{n:["ok hand","ok hand sign"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"],a:"0.6"},{n:["pinched fingers"],u:"1f90c",v:["1f90c-1f3fb","1f90c-1f3fc","1f90c-1f3fd","1f90c-1f3fe","1f90c-1f3ff"],a:"13.0"},{n:["pinching hand"],u:"1f90f",v:["1f90f-1f3fb","1f90f-1f3fc","1f90f-1f3fd","1f90f-1f3fe","1f90f-1f3ff"],a:"12.0"},{n:["v","victory hand"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"],a:"0.6"},{n:["crossed fingers","hand with index and middle fingers crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"],a:"3.0"},{n:["hand with index finger and thumb crossed"],u:"1faf0",v:["1faf0-1f3fb","1faf0-1f3fc","1faf0-1f3fd","1faf0-1f3fe","1faf0-1f3ff"],a:"14.0"},{n:["i love you hand sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"],a:"5.0"},{n:["the horns","sign of the horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"],a:"1.0"},{n:["call me hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"],a:"3.0"},{n:["point left","white left pointing backhand index"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"],a:"0.6"},{n:["point right","white right pointing backhand index"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"],a:"0.6"},{n:["point up 2","white up pointing backhand index"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"],a:"0.6"},{n:["middle finger","reversed hand with middle finger extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"],a:"1.0"},{n:["point down","white down pointing backhand index"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"],a:"0.6"},{n:["point up","white up pointing index"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"],a:"0.6"},{n:["index pointing at the viewer"],u:"1faf5",v:["1faf5-1f3fb","1faf5-1f3fc","1faf5-1f3fd","1faf5-1f3fe","1faf5-1f3ff"],a:"14.0"},{n:["+1","thumbsup","thumbs up sign"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"],a:"0.6"},{n:["-1","thumbsdown","thumbs down sign"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"],a:"0.6"},{n:["fist","raised fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"],a:"0.6"},{n:["punch","facepunch","fisted hand sign"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"],a:"0.6"},{n:["left-facing fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"],a:"3.0"},{n:["right-facing fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"],a:"3.0"},{n:["clap","clapping hands sign"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"],a:"0.6"},{n:["raised hands","person raising both hands in celebration"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"],a:"0.6"},{n:["heart hands"],u:"1faf6",v:["1faf6-1f3fb","1faf6-1f3fc","1faf6-1f3fd","1faf6-1f3fe","1faf6-1f3ff"],a:"14.0"},{n:["open hands","open hands sign"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"],a:"0.6"},{n:["palms up together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"],a:"5.0"},{n:["handshake"],u:"1f91d",v:["1f91d-1f3fb","1f91d-1f3fc","1f91d-1f3fd","1f91d-1f3fe","1f91d-1f3ff","1faf1-1f3fb-200d-1faf2-1f3fc","1faf1-1f3fb-200d-1faf2-1f3fd","1faf1-1f3fb-200d-1faf2-1f3fe","1faf1-1f3fb-200d-1faf2-1f3ff","1faf1-1f3fc-200d-1faf2-1f3fb","1faf1-1f3fc-200d-1faf2-1f3fd","1faf1-1f3fc-200d-1faf2-1f3fe","1faf1-1f3fc-200d-1faf2-1f3ff","1faf1-1f3fd-200d-1faf2-1f3fb","1faf1-1f3fd-200d-1faf2-1f3fc","1faf1-1f3fd-200d-1faf2-1f3fe","1faf1-1f3fd-200d-1faf2-1f3ff","1faf1-1f3fe-200d-1faf2-1f3fb","1faf1-1f3fe-200d-1faf2-1f3fc","1faf1-1f3fe-200d-1faf2-1f3fd","1faf1-1f3fe-200d-1faf2-1f3ff","1faf1-1f3ff-200d-1faf2-1f3fb","1faf1-1f3ff-200d-1faf2-1f3fc","1faf1-1f3ff-200d-1faf2-1f3fd","1faf1-1f3ff-200d-1faf2-1f3fe"],a:"3.0"},{n:["pray","person with folded hands"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"],a:"0.6"},{n:["writing hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"],a:"0.7"},{n:["nail care","nail polish"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"],a:"0.6"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"],a:"3.0"},{n:["muscle","flexed biceps"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"],a:"0.6"},{n:["mechanical arm"],u:"1f9be",a:"12.0"},{n:["mechanical leg"],u:"1f9bf",a:"12.0"},{n:["leg"],u:"1f9b5",v:["1f9b5-1f3fb","1f9b5-1f3fc","1f9b5-1f3fd","1f9b5-1f3fe","1f9b5-1f3ff"],a:"11.0"},{n:["foot"],u:"1f9b6",v:["1f9b6-1f3fb","1f9b6-1f3fc","1f9b6-1f3fd","1f9b6-1f3fe","1f9b6-1f3ff"],a:"11.0"},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"],a:"0.6"},{n:["ear with hearing aid"],u:"1f9bb",v:["1f9bb-1f3fb","1f9bb-1f3fc","1f9bb-1f3fd","1f9bb-1f3fe","1f9bb-1f3ff"],a:"12.0"},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"],a:"0.6"},{n:["brain"],u:"1f9e0",a:"5.0"},{n:["anatomical heart"],u:"1fac0",a:"13.0"},{n:["lungs"],u:"1fac1",a:"13.0"},{n:["tooth"],u:"1f9b7",a:"11.0"},{n:["bone"],u:"1f9b4",a:"11.0"},{n:["eyes"],u:"1f440",a:"0.6"},{n:["eye"],u:"1f441-fe0f",a:"0.7"},{n:["tongue"],u:"1f445",a:"0.6"},{n:["lips","mouth"],u:"1f444",a:"0.6"},{n:["biting lip"],u:"1fae6",a:"14.0"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"],a:"0.6"},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"],a:"5.0"},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"],a:"0.6"},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"],a:"0.6"},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"],a:"5.0"},{n:["person with blond hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"],a:"0.6"},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"],a:"0.6"},{n:["bearded person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"],a:"5.0"},{n:["man: beard","man with beard"],u:"1f9d4-200d-2642-fe0f",v:["1f9d4-1f3fb-200d-2642-fe0f","1f9d4-1f3fc-200d-2642-fe0f","1f9d4-1f3fd-200d-2642-fe0f","1f9d4-1f3fe-200d-2642-fe0f","1f9d4-1f3ff-200d-2642-fe0f"],a:"13.1"},{n:["woman: beard","woman with beard"],u:"1f9d4-200d-2640-fe0f",v:["1f9d4-1f3fb-200d-2640-fe0f","1f9d4-1f3fc-200d-2640-fe0f","1f9d4-1f3fd-200d-2640-fe0f","1f9d4-1f3fe-200d-2640-fe0f","1f9d4-1f3ff-200d-2640-fe0f"],a:"13.1"},{n:["man: red hair","red haired man"],u:"1f468-200d-1f9b0",v:["1f468-1f3fb-200d-1f9b0","1f468-1f3fc-200d-1f9b0","1f468-1f3fd-200d-1f9b0","1f468-1f3fe-200d-1f9b0","1f468-1f3ff-200d-1f9b0"],a:"11.0"},{n:["man: curly hair","curly haired man"],u:"1f468-200d-1f9b1",v:["1f468-1f3fb-200d-1f9b1","1f468-1f3fc-200d-1f9b1","1f468-1f3fd-200d-1f9b1","1f468-1f3fe-200d-1f9b1","1f468-1f3ff-200d-1f9b1"],a:"11.0"},{n:["man: white hair","white haired man"],u:"1f468-200d-1f9b3",v:["1f468-1f3fb-200d-1f9b3","1f468-1f3fc-200d-1f9b3","1f468-1f3fd-200d-1f9b3","1f468-1f3fe-200d-1f9b3","1f468-1f3ff-200d-1f9b3"],a:"11.0"},{n:["bald man","man: bald"],u:"1f468-200d-1f9b2",v:["1f468-1f3fb-200d-1f9b2","1f468-1f3fc-200d-1f9b2","1f468-1f3fd-200d-1f9b2","1f468-1f3fe-200d-1f9b2","1f468-1f3ff-200d-1f9b2"],a:"11.0"},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"],a:"0.6"},{n:["woman: red hair","red haired woman"],u:"1f469-200d-1f9b0",v:["1f469-1f3fb-200d-1f9b0","1f469-1f3fc-200d-1f9b0","1f469-1f3fd-200d-1f9b0","1f469-1f3fe-200d-1f9b0","1f469-1f3ff-200d-1f9b0"],a:"11.0"},{n:["person: red hair","red haired person"],u:"1f9d1-200d-1f9b0",v:["1f9d1-1f3fb-200d-1f9b0","1f9d1-1f3fc-200d-1f9b0","1f9d1-1f3fd-200d-1f9b0","1f9d1-1f3fe-200d-1f9b0","1f9d1-1f3ff-200d-1f9b0"],a:"12.1"},{n:["woman: curly hair","curly haired woman"],u:"1f469-200d-1f9b1",v:["1f469-1f3fb-200d-1f9b1","1f469-1f3fc-200d-1f9b1","1f469-1f3fd-200d-1f9b1","1f469-1f3fe-200d-1f9b1","1f469-1f3ff-200d-1f9b1"],a:"11.0"},{n:["person: curly hair","curly haired person"],u:"1f9d1-200d-1f9b1",v:["1f9d1-1f3fb-200d-1f9b1","1f9d1-1f3fc-200d-1f9b1","1f9d1-1f3fd-200d-1f9b1","1f9d1-1f3fe-200d-1f9b1","1f9d1-1f3ff-200d-1f9b1"],a:"12.1"},{n:["woman: white hair","white haired woman"],u:"1f469-200d-1f9b3",v:["1f469-1f3fb-200d-1f9b3","1f469-1f3fc-200d-1f9b3","1f469-1f3fd-200d-1f9b3","1f469-1f3fe-200d-1f9b3","1f469-1f3ff-200d-1f9b3"],a:"11.0"},{n:["person: white hair","white haired person"],u:"1f9d1-200d-1f9b3",v:["1f9d1-1f3fb-200d-1f9b3","1f9d1-1f3fc-200d-1f9b3","1f9d1-1f3fd-200d-1f9b3","1f9d1-1f3fe-200d-1f9b3","1f9d1-1f3ff-200d-1f9b3"],a:"12.1"},{n:["bald woman","woman: bald"],u:"1f469-200d-1f9b2",v:["1f469-1f3fb-200d-1f9b2","1f469-1f3fc-200d-1f9b2","1f469-1f3fd-200d-1f9b2","1f469-1f3fe-200d-1f9b2","1f469-1f3ff-200d-1f9b2"],a:"11.0"},{n:["bald person","person: bald"],u:"1f9d1-200d-1f9b2",v:["1f9d1-1f3fb-200d-1f9b2","1f9d1-1f3fc-200d-1f9b2","1f9d1-1f3fd-200d-1f9b2","1f9d1-1f3fe-200d-1f9b2","1f9d1-1f3ff-200d-1f9b2"],a:"12.1"},{n:["woman: blond hair","blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man: blond hair","blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["older adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"],a:"5.0"},{n:["older man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"],a:"0.6"},{n:["older woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"],a:"0.6"},{n:["person frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"],a:"0.6"},{n:["man frowning","man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman frowning","woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with pouting face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"],a:"0.6"},{n:["man pouting","man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman pouting","woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["no good","face with no good gesture"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"],a:"0.6"},{n:["man gesturing no","man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing no","woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ok woman","face with ok gesture"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"],a:"0.6"},{n:["man gesturing ok","man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing ok","woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["information desk person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"],a:"0.6"},{n:["man tipping hand","man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman tipping hand","woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["raising hand","happy person raising one hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"],a:"0.6"},{n:["man raising hand","man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman raising hand","woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["deaf person"],u:"1f9cf",v:["1f9cf-1f3fb","1f9cf-1f3fc","1f9cf-1f3fd","1f9cf-1f3fe","1f9cf-1f3ff"],a:"12.0"},{n:["deaf man"],u:"1f9cf-200d-2642-fe0f",v:["1f9cf-1f3fb-200d-2642-fe0f","1f9cf-1f3fc-200d-2642-fe0f","1f9cf-1f3fd-200d-2642-fe0f","1f9cf-1f3fe-200d-2642-fe0f","1f9cf-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["deaf woman"],u:"1f9cf-200d-2640-fe0f",v:["1f9cf-1f3fb-200d-2640-fe0f","1f9cf-1f3fc-200d-2640-fe0f","1f9cf-1f3fd-200d-2640-fe0f","1f9cf-1f3fe-200d-2640-fe0f","1f9cf-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["bow","person bowing deeply"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"],a:"0.6"},{n:["man bowing","man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bowing","woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["face palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"],a:"3.0"},{n:["man facepalming","man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman facepalming","woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"],a:"3.0"},{n:["man shrugging","man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman shrugging","woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["health worker"],u:"1f9d1-200d-2695-fe0f",v:["1f9d1-1f3fb-200d-2695-fe0f","1f9d1-1f3fc-200d-2695-fe0f","1f9d1-1f3fd-200d-2695-fe0f","1f9d1-1f3fe-200d-2695-fe0f","1f9d1-1f3ff-200d-2695-fe0f"],a:"12.1"},{n:["male-doctor","man health worker"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["female-doctor","woman health worker"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["student"],u:"1f9d1-200d-1f393",v:["1f9d1-1f3fb-200d-1f393","1f9d1-1f3fc-200d-1f393","1f9d1-1f3fd-200d-1f393","1f9d1-1f3fe-200d-1f393","1f9d1-1f3ff-200d-1f393"],a:"12.1"},{n:["man student","male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"],a:"4.0"},{n:["woman student","female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"],a:"4.0"},{n:["teacher"],u:"1f9d1-200d-1f3eb",v:["1f9d1-1f3fb-200d-1f3eb","1f9d1-1f3fc-200d-1f3eb","1f9d1-1f3fd-200d-1f3eb","1f9d1-1f3fe-200d-1f3eb","1f9d1-1f3ff-200d-1f3eb"],a:"12.1"},{n:["man teacher","male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"],a:"4.0"},{n:["woman teacher","female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"],a:"4.0"},{n:["judge"],u:"1f9d1-200d-2696-fe0f",v:["1f9d1-1f3fb-200d-2696-fe0f","1f9d1-1f3fc-200d-2696-fe0f","1f9d1-1f3fd-200d-2696-fe0f","1f9d1-1f3fe-200d-2696-fe0f","1f9d1-1f3ff-200d-2696-fe0f"],a:"12.1"},{n:["man judge","male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["woman judge","female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["farmer"],u:"1f9d1-200d-1f33e",v:["1f9d1-1f3fb-200d-1f33e","1f9d1-1f3fc-200d-1f33e","1f9d1-1f3fd-200d-1f33e","1f9d1-1f3fe-200d-1f33e","1f9d1-1f3ff-200d-1f33e"],a:"12.1"},{n:["man farmer","male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"],a:"4.0"},{n:["woman farmer","female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"],a:"4.0"},{n:["cook"],u:"1f9d1-200d-1f373",v:["1f9d1-1f3fb-200d-1f373","1f9d1-1f3fc-200d-1f373","1f9d1-1f3fd-200d-1f373","1f9d1-1f3fe-200d-1f373","1f9d1-1f3ff-200d-1f373"],a:"12.1"},{n:["man cook","male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"],a:"4.0"},{n:["woman cook","female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"],a:"4.0"},{n:["mechanic"],u:"1f9d1-200d-1f527",v:["1f9d1-1f3fb-200d-1f527","1f9d1-1f3fc-200d-1f527","1f9d1-1f3fd-200d-1f527","1f9d1-1f3fe-200d-1f527","1f9d1-1f3ff-200d-1f527"],a:"12.1"},{n:["man mechanic","male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"],a:"4.0"},{n:["woman mechanic","female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"],a:"4.0"},{n:["factory worker"],u:"1f9d1-200d-1f3ed",v:["1f9d1-1f3fb-200d-1f3ed","1f9d1-1f3fc-200d-1f3ed","1f9d1-1f3fd-200d-1f3ed","1f9d1-1f3fe-200d-1f3ed","1f9d1-1f3ff-200d-1f3ed"],a:"12.1"},{n:["man factory worker","male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"],a:"4.0"},{n:["woman factory worker","female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"],a:"4.0"},{n:["office worker"],u:"1f9d1-200d-1f4bc",v:["1f9d1-1f3fb-200d-1f4bc","1f9d1-1f3fc-200d-1f4bc","1f9d1-1f3fd-200d-1f4bc","1f9d1-1f3fe-200d-1f4bc","1f9d1-1f3ff-200d-1f4bc"],a:"12.1"},{n:["man office worker","male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"],a:"4.0"},{n:["woman office worker","female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"],a:"4.0"},{n:["scientist"],u:"1f9d1-200d-1f52c",v:["1f9d1-1f3fb-200d-1f52c","1f9d1-1f3fc-200d-1f52c","1f9d1-1f3fd-200d-1f52c","1f9d1-1f3fe-200d-1f52c","1f9d1-1f3ff-200d-1f52c"],a:"12.1"},{n:["man scientist","male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"],a:"4.0"},{n:["woman scientist","female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"],a:"4.0"},{n:["technologist"],u:"1f9d1-200d-1f4bb",v:["1f9d1-1f3fb-200d-1f4bb","1f9d1-1f3fc-200d-1f4bb","1f9d1-1f3fd-200d-1f4bb","1f9d1-1f3fe-200d-1f4bb","1f9d1-1f3ff-200d-1f4bb"],a:"12.1"},{n:["man technologist","male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"],a:"4.0"},{n:["woman technologist","female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"],a:"4.0"},{n:["singer"],u:"1f9d1-200d-1f3a4",v:["1f9d1-1f3fb-200d-1f3a4","1f9d1-1f3fc-200d-1f3a4","1f9d1-1f3fd-200d-1f3a4","1f9d1-1f3fe-200d-1f3a4","1f9d1-1f3ff-200d-1f3a4"],a:"12.1"},{n:["man singer","male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"],a:"4.0"},{n:["woman singer","female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"],a:"4.0"},{n:["artist"],u:"1f9d1-200d-1f3a8",v:["1f9d1-1f3fb-200d-1f3a8","1f9d1-1f3fc-200d-1f3a8","1f9d1-1f3fd-200d-1f3a8","1f9d1-1f3fe-200d-1f3a8","1f9d1-1f3ff-200d-1f3a8"],a:"12.1"},{n:["man artist","male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"],a:"4.0"},{n:["woman artist","female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"],a:"4.0"},{n:["pilot"],u:"1f9d1-200d-2708-fe0f",v:["1f9d1-1f3fb-200d-2708-fe0f","1f9d1-1f3fc-200d-2708-fe0f","1f9d1-1f3fd-200d-2708-fe0f","1f9d1-1f3fe-200d-2708-fe0f","1f9d1-1f3ff-200d-2708-fe0f"],a:"12.1"},{n:["man pilot","male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["woman pilot","female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["astronaut"],u:"1f9d1-200d-1f680",v:["1f9d1-1f3fb-200d-1f680","1f9d1-1f3fc-200d-1f680","1f9d1-1f3fd-200d-1f680","1f9d1-1f3fe-200d-1f680","1f9d1-1f3ff-200d-1f680"],a:"12.1"},{n:["man astronaut","male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"],a:"4.0"},{n:["woman astronaut","female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"],a:"4.0"},{n:["firefighter"],u:"1f9d1-200d-1f692",v:["1f9d1-1f3fb-200d-1f692","1f9d1-1f3fc-200d-1f692","1f9d1-1f3fd-200d-1f692","1f9d1-1f3fe-200d-1f692","1f9d1-1f3ff-200d-1f692"],a:"12.1"},{n:["man firefighter","male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"],a:"4.0"},{n:["woman firefighter","female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"],a:"4.0"},{n:["cop","police officer"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"],a:"0.6"},{n:["man police officer","male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman police officer","female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["detective","sleuth or spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"],a:"0.7"},{n:["man detective","male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman detective","female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"],a:"0.6"},{n:["man guard","male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman guard","female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ninja"],u:"1f977",v:["1f977-1f3fb","1f977-1f3fc","1f977-1f3fd","1f977-1f3fe","1f977-1f3ff"],a:"13.0"},{n:["construction worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"],a:"0.6"},{n:["man construction worker","male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman construction worker","female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with crown"],u:"1fac5",v:["1fac5-1f3fb","1fac5-1f3fc","1fac5-1f3fd","1fac5-1f3fe","1fac5-1f3ff"],a:"14.0"},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"],a:"3.0"},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"],a:"0.6"},{n:["man with turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"],a:"0.6"},{n:["man wearing turban","man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman wearing turban","woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man with gua pi mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"],a:"0.6"},{n:["person with headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"],a:"5.0"},{n:["man in tuxedo","person in tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"],a:"3.0"},{n:["man in tuxedo"],u:"1f935-200d-2642-fe0f",v:["1f935-1f3fb-200d-2642-fe0f","1f935-1f3fc-200d-2642-fe0f","1f935-1f3fd-200d-2642-fe0f","1f935-1f3fe-200d-2642-fe0f","1f935-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman in tuxedo"],u:"1f935-200d-2640-fe0f",v:["1f935-1f3fb-200d-2640-fe0f","1f935-1f3fc-200d-2640-fe0f","1f935-1f3fd-200d-2640-fe0f","1f935-1f3fe-200d-2640-fe0f","1f935-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["bride with veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"],a:"0.6"},{n:["man with veil"],u:"1f470-200d-2642-fe0f",v:["1f470-1f3fb-200d-2642-fe0f","1f470-1f3fc-200d-2642-fe0f","1f470-1f3fd-200d-2642-fe0f","1f470-1f3fe-200d-2642-fe0f","1f470-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman with veil"],u:"1f470-200d-2640-fe0f",v:["1f470-1f3fb-200d-2640-fe0f","1f470-1f3fc-200d-2640-fe0f","1f470-1f3fd-200d-2640-fe0f","1f470-1f3fe-200d-2640-fe0f","1f470-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["pregnant woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"],a:"3.0"},{n:["pregnant man"],u:"1fac3",v:["1fac3-1f3fb","1fac3-1f3fc","1fac3-1f3fd","1fac3-1f3fe","1fac3-1f3ff"],a:"14.0"},{n:["pregnant person"],u:"1fac4",v:["1fac4-1f3fb","1fac4-1f3fc","1fac4-1f3fd","1fac4-1f3fe","1fac4-1f3ff"],a:"14.0"},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"],a:"5.0"},{n:["woman feeding baby"],u:"1f469-200d-1f37c",v:["1f469-1f3fb-200d-1f37c","1f469-1f3fc-200d-1f37c","1f469-1f3fd-200d-1f37c","1f469-1f3fe-200d-1f37c","1f469-1f3ff-200d-1f37c"],a:"13.0"},{n:["man feeding baby"],u:"1f468-200d-1f37c",v:["1f468-1f3fb-200d-1f37c","1f468-1f3fc-200d-1f37c","1f468-1f3fd-200d-1f37c","1f468-1f3fe-200d-1f37c","1f468-1f3ff-200d-1f37c"],a:"13.0"},{n:["person feeding baby"],u:"1f9d1-200d-1f37c",v:["1f9d1-1f3fb-200d-1f37c","1f9d1-1f3fc-200d-1f37c","1f9d1-1f3fd-200d-1f37c","1f9d1-1f3fe-200d-1f37c","1f9d1-1f3ff-200d-1f37c"],a:"13.0"},{n:["angel","baby angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"],a:"0.6"},{n:["santa","father christmas"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"],a:"0.6"},{n:["mrs claus","mother christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"],a:"3.0"},{n:["mx claus"],u:"1f9d1-200d-1f384",v:["1f9d1-1f3fb-200d-1f384","1f9d1-1f3fc-200d-1f384","1f9d1-1f3fd-200d-1f384","1f9d1-1f3fe-200d-1f384","1f9d1-1f3ff-200d-1f384"],a:"13.0"},{n:["superhero"],u:"1f9b8",v:["1f9b8-1f3fb","1f9b8-1f3fc","1f9b8-1f3fd","1f9b8-1f3fe","1f9b8-1f3ff"],a:"11.0"},{n:["man superhero","male superhero"],u:"1f9b8-200d-2642-fe0f",v:["1f9b8-1f3fb-200d-2642-fe0f","1f9b8-1f3fc-200d-2642-fe0f","1f9b8-1f3fd-200d-2642-fe0f","1f9b8-1f3fe-200d-2642-fe0f","1f9b8-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman superhero","female superhero"],u:"1f9b8-200d-2640-fe0f",v:["1f9b8-1f3fb-200d-2640-fe0f","1f9b8-1f3fc-200d-2640-fe0f","1f9b8-1f3fd-200d-2640-fe0f","1f9b8-1f3fe-200d-2640-fe0f","1f9b8-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["supervillain"],u:"1f9b9",v:["1f9b9-1f3fb","1f9b9-1f3fc","1f9b9-1f3fd","1f9b9-1f3fe","1f9b9-1f3ff"],a:"11.0"},{n:["man supervillain","male supervillain"],u:"1f9b9-200d-2642-fe0f",v:["1f9b9-1f3fb-200d-2642-fe0f","1f9b9-1f3fc-200d-2642-fe0f","1f9b9-1f3fd-200d-2642-fe0f","1f9b9-1f3fe-200d-2642-fe0f","1f9b9-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman supervillain","female supervillain"],u:"1f9b9-200d-2640-fe0f",v:["1f9b9-1f3fb-200d-2640-fe0f","1f9b9-1f3fc-200d-2640-fe0f","1f9b9-1f3fd-200d-2640-fe0f","1f9b9-1f3fe-200d-2640-fe0f","1f9b9-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"],a:"5.0"},{n:["man mage","male mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman mage","female mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"],a:"5.0"},{n:["man fairy","male fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman fairy","female fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"],a:"5.0"},{n:["man vampire","male vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman vampire","female vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"],a:"5.0"},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"],a:"5.0"},{n:["man elf","male elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman elf","female elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["genie"],u:"1f9de",a:"5.0"},{n:["man genie","male genie"],u:"1f9de-200d-2642-fe0f",a:"5.0"},{n:["woman genie","female genie"],u:"1f9de-200d-2640-fe0f",a:"5.0"},{n:["zombie"],u:"1f9df",a:"5.0"},{n:["man zombie","male zombie"],u:"1f9df-200d-2642-fe0f",a:"5.0"},{n:["woman zombie","female zombie"],u:"1f9df-200d-2640-fe0f",a:"5.0"},{n:["troll"],u:"1f9cc",a:"14.0"},{n:["massage","face massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"],a:"0.6"},{n:["man getting massage","man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting massage","woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"],a:"0.6"},{n:["man getting haircut","man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting haircut","woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["walking","pedestrian"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"],a:"0.6"},{n:["man walking","man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman walking","woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["standing person"],u:"1f9cd",v:["1f9cd-1f3fb","1f9cd-1f3fc","1f9cd-1f3fd","1f9cd-1f3fe","1f9cd-1f3ff"],a:"12.0"},{n:["man standing"],u:"1f9cd-200d-2642-fe0f",v:["1f9cd-1f3fb-200d-2642-fe0f","1f9cd-1f3fc-200d-2642-fe0f","1f9cd-1f3fd-200d-2642-fe0f","1f9cd-1f3fe-200d-2642-fe0f","1f9cd-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman standing"],u:"1f9cd-200d-2640-fe0f",v:["1f9cd-1f3fb-200d-2640-fe0f","1f9cd-1f3fc-200d-2640-fe0f","1f9cd-1f3fd-200d-2640-fe0f","1f9cd-1f3fe-200d-2640-fe0f","1f9cd-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["kneeling person"],u:"1f9ce",v:["1f9ce-1f3fb","1f9ce-1f3fc","1f9ce-1f3fd","1f9ce-1f3fe","1f9ce-1f3ff"],a:"12.0"},{n:["man kneeling"],u:"1f9ce-200d-2642-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f","1f9ce-1f3fc-200d-2642-fe0f","1f9ce-1f3fd-200d-2642-fe0f","1f9ce-1f3fe-200d-2642-fe0f","1f9ce-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman kneeling"],u:"1f9ce-200d-2640-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f","1f9ce-1f3fc-200d-2640-fe0f","1f9ce-1f3fd-200d-2640-fe0f","1f9ce-1f3fe-200d-2640-fe0f","1f9ce-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["person with white cane","person with probing cane"],u:"1f9d1-200d-1f9af",v:["1f9d1-1f3fb-200d-1f9af","1f9d1-1f3fc-200d-1f9af","1f9d1-1f3fd-200d-1f9af","1f9d1-1f3fe-200d-1f9af","1f9d1-1f3ff-200d-1f9af"],a:"12.1"},{n:["man with white cane","man with probing cane"],u:"1f468-200d-1f9af",v:["1f468-1f3fb-200d-1f9af","1f468-1f3fc-200d-1f9af","1f468-1f3fd-200d-1f9af","1f468-1f3fe-200d-1f9af","1f468-1f3ff-200d-1f9af"],a:"12.0"},{n:["woman with white cane","woman with probing cane"],u:"1f469-200d-1f9af",v:["1f469-1f3fb-200d-1f9af","1f469-1f3fc-200d-1f9af","1f469-1f3fd-200d-1f9af","1f469-1f3fe-200d-1f9af","1f469-1f3ff-200d-1f9af"],a:"12.0"},{n:["person in motorized wheelchair"],u:"1f9d1-200d-1f9bc",v:["1f9d1-1f3fb-200d-1f9bc","1f9d1-1f3fc-200d-1f9bc","1f9d1-1f3fd-200d-1f9bc","1f9d1-1f3fe-200d-1f9bc","1f9d1-1f3ff-200d-1f9bc"],a:"12.1"},{n:["man in motorized wheelchair"],u:"1f468-200d-1f9bc",v:["1f468-1f3fb-200d-1f9bc","1f468-1f3fc-200d-1f9bc","1f468-1f3fd-200d-1f9bc","1f468-1f3fe-200d-1f9bc","1f468-1f3ff-200d-1f9bc"],a:"12.0"},{n:["woman in motorized wheelchair"],u:"1f469-200d-1f9bc",v:["1f469-1f3fb-200d-1f9bc","1f469-1f3fc-200d-1f9bc","1f469-1f3fd-200d-1f9bc","1f469-1f3fe-200d-1f9bc","1f469-1f3ff-200d-1f9bc"],a:"12.0"},{n:["person in manual wheelchair"],u:"1f9d1-200d-1f9bd",v:["1f9d1-1f3fb-200d-1f9bd","1f9d1-1f3fc-200d-1f9bd","1f9d1-1f3fd-200d-1f9bd","1f9d1-1f3fe-200d-1f9bd","1f9d1-1f3ff-200d-1f9bd"],a:"12.1"},{n:["man in manual wheelchair"],u:"1f468-200d-1f9bd",v:["1f468-1f3fb-200d-1f9bd","1f468-1f3fc-200d-1f9bd","1f468-1f3fd-200d-1f9bd","1f468-1f3fe-200d-1f9bd","1f468-1f3ff-200d-1f9bd"],a:"12.0"},{n:["woman in manual wheelchair"],u:"1f469-200d-1f9bd",v:["1f469-1f3fb-200d-1f9bd","1f469-1f3fc-200d-1f9bd","1f469-1f3fd-200d-1f9bd","1f469-1f3fe-200d-1f9bd","1f469-1f3ff-200d-1f9bd"],a:"12.0"},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"],a:"0.6"},{n:["man running","man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman running","woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"],a:"0.6"},{n:["man dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"],a:"3.0"},{n:["person in suit levitating","man in business suit levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"],a:"0.7"},{n:["dancers","woman with bunny ears"],u:"1f46f",a:"0.6"},{n:["men with bunny ears","men-with-bunny-ears-partying","man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f",a:"4.0"},{n:["women with bunny ears","women-with-bunny-ears-partying","woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f",a:"4.0"},{n:["person in steamy room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"],a:"5.0"},{n:["man in steamy room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in steamy room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["person climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"],a:"5.0"},{n:["man climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fencer"],u:"1f93a",a:"3.0"},{n:["horse racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"],a:"1.0"},{n:["skier"],u:"26f7-fe0f",a:"0.7"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"],a:"0.6"},{n:["golfer","person golfing"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"],a:"0.7"},{n:["man golfing","man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman golfing","woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"],a:"0.6"},{n:["man surfing","man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman surfing","woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"],a:"1.0"},{n:["man rowing boat","man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman rowing boat","woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"],a:"0.6"},{n:["man swimming","man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman swimming","woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with ball","person bouncing ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"],a:"0.7"},{n:["man bouncing ball","man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bouncing ball","woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["weight lifter","person lifting weights"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"],a:"0.7"},{n:["man lifting weights","man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman lifting weights","woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"],a:"1.0"},{n:["man biking","man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman biking","woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["mountain bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"],a:"1.0"},{n:["man mountain biking","man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman mountain biking","woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person doing cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"],a:"3.0"},{n:["man cartwheeling","man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman cartwheeling","woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["wrestlers"],u:"1f93c",a:"3.0"},{n:["men wrestling","man-wrestling"],u:"1f93c-200d-2642-fe0f",a:"4.0"},{n:["women wrestling","woman-wrestling"],u:"1f93c-200d-2640-fe0f",a:"4.0"},{n:["water polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"],a:"3.0"},{n:["man playing water polo","man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing water polo","woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"],a:"3.0"},{n:["man playing handball","man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing handball","woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"],a:"3.0"},{n:["man juggling","man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman juggling","woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person in lotus position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"],a:"5.0"},{n:["man in lotus position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in lotus position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"],a:"0.6"},{n:["sleeping accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"],a:"1.0"},{n:["people holding hands"],u:"1f9d1-200d-1f91d-200d-1f9d1",v:["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff"],a:"12.0"},{n:["women holding hands","two women holding hands"],u:"1f46d",v:["1f46d-1f3fb","1f46d-1f3fc","1f46d-1f3fd","1f46d-1f3fe","1f46d-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe"],a:"1.0"},{n:["couple","man and woman holding hands","woman and man holding hands"],u:"1f46b",v:["1f46b-1f3fb","1f46b-1f3fc","1f46b-1f3fd","1f46b-1f3fe","1f46b-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"0.6"},{n:["men holding hands","two men holding hands"],u:"1f46c",v:["1f46c-1f3fb","1f46c-1f3fc","1f46c-1f3fd","1f46c-1f3fe","1f46c-1f3ff","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"1.0"},{n:["kiss","couplekiss"],u:"1f48f",v:["1f48f-1f3fb","1f48f-1f3fc","1f48f-1f3fd","1f48f-1f3fe","1f48f-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-kiss-man","kiss: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["man-kiss-man","kiss: man, man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-kiss-woman","kiss: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff"],a:"2.0"},{n:["couple with heart"],u:"1f491",v:["1f491-1f3fb","1f491-1f3fc","1f491-1f3fd","1f491-1f3fe","1f491-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-heart-man","couple with heart: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["man-heart-man","couple with heart: man, man"],u:"1f468-200d-2764-fe0f-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-heart-woman","couple with heart: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff"],a:"2.0"},{n:["family"],u:"1f46a",a:"0.6"},{n:["man-woman-boy","family: man, woman, boy"],u:"1f468-200d-1f469-200d-1f466",a:"2.0"},{n:["man-woman-girl","family: man, woman, girl"],u:"1f468-200d-1f469-200d-1f467",a:"2.0"},{n:["man-woman-girl-boy","family: man, woman, girl, boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["man-woman-boy-boy","family: man, woman, boy, boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["man-woman-girl-girl","family: man, woman, girl, girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-man-boy","family: man, man, boy"],u:"1f468-200d-1f468-200d-1f466",a:"2.0"},{n:["man-man-girl","family: man, man, girl"],u:"1f468-200d-1f468-200d-1f467",a:"2.0"},{n:["man-man-girl-boy","family: man, man, girl, boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466",a:"2.0"},{n:["man-man-boy-boy","family: man, man, boy, boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466",a:"2.0"},{n:["man-man-girl-girl","family: man, man, girl, girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467",a:"2.0"},{n:["woman-woman-boy","family: woman, woman, boy"],u:"1f469-200d-1f469-200d-1f466",a:"2.0"},{n:["woman-woman-girl","family: woman, woman, girl"],u:"1f469-200d-1f469-200d-1f467",a:"2.0"},{n:["woman-woman-girl-boy","family: woman, woman, girl, boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["woman-woman-boy-boy","family: woman, woman, boy, boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["woman-woman-girl-girl","family: woman, woman, girl, girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-boy","family: man, boy"],u:"1f468-200d-1f466",a:"4.0"},{n:["man-boy-boy","family: man, boy, boy"],u:"1f468-200d-1f466-200d-1f466",a:"4.0"},{n:["man-girl","family: man, girl"],u:"1f468-200d-1f467",a:"4.0"},{n:["man-girl-boy","family: man, girl, boy"],u:"1f468-200d-1f467-200d-1f466",a:"4.0"},{n:["man-girl-girl","family: man, girl, girl"],u:"1f468-200d-1f467-200d-1f467",a:"4.0"},{n:["woman-boy","family: woman, boy"],u:"1f469-200d-1f466",a:"4.0"},{n:["woman-boy-boy","family: woman, boy, boy"],u:"1f469-200d-1f466-200d-1f466",a:"4.0"},{n:["woman-girl","family: woman, girl"],u:"1f469-200d-1f467",a:"4.0"},{n:["woman-girl-boy","family: woman, girl, boy"],u:"1f469-200d-1f467-200d-1f466",a:"4.0"},{n:["woman-girl-girl","family: woman, girl, girl"],u:"1f469-200d-1f467-200d-1f467",a:"4.0"},{n:["speaking head","speaking head in silhouette"],u:"1f5e3-fe0f",a:"0.7"},{n:["bust in silhouette"],u:"1f464",a:"0.6"},{n:["busts in silhouette"],u:"1f465",a:"1.0"},{n:["people hugging"],u:"1fac2",a:"13.0"},{n:["footprints"],u:"1f463",a:"0.6"}],x1=[{n:["monkey face"],u:"1f435",a:"0.6"},{n:["monkey"],u:"1f412",a:"0.6"},{n:["gorilla"],u:"1f98d",a:"3.0"},{n:["orangutan"],u:"1f9a7",a:"12.0"},{n:["dog","dog face"],u:"1f436",a:"0.6"},{n:["dog","dog2"],u:"1f415",a:"0.7"},{n:["guide dog"],u:"1f9ae",a:"12.0"},{n:["service dog"],u:"1f415-200d-1f9ba",a:"12.0"},{n:["poodle"],u:"1f429",a:"0.6"},{n:["wolf","wolf face"],u:"1f43a",a:"0.6"},{n:["fox face"],u:"1f98a",a:"3.0"},{n:["raccoon"],u:"1f99d",a:"11.0"},{n:["cat","cat face"],u:"1f431",a:"0.6"},{n:["cat","cat2"],u:"1f408",a:"0.7"},{n:["black cat"],u:"1f408-200d-2b1b",a:"13.0"},{n:["lion face"],u:"1f981",a:"1.0"},{n:["tiger","tiger face"],u:"1f42f",a:"0.6"},{n:["tiger","tiger2"],u:"1f405",a:"1.0"},{n:["leopard"],u:"1f406",a:"1.0"},{n:["horse","horse face"],u:"1f434",a:"0.6"},{n:["horse","racehorse"],u:"1f40e",a:"0.6"},{n:["unicorn face"],u:"1f984",a:"1.0"},{n:["zebra face"],u:"1f993",a:"5.0"},{n:["deer"],u:"1f98c",a:"3.0"},{n:["bison"],u:"1f9ac",a:"13.0"},{n:["cow","cow face"],u:"1f42e",a:"0.6"},{n:["ox"],u:"1f402",a:"1.0"},{n:["water buffalo"],u:"1f403",a:"1.0"},{n:["cow","cow2"],u:"1f404",a:"1.0"},{n:["pig","pig face"],u:"1f437",a:"0.6"},{n:["pig","pig2"],u:"1f416",a:"1.0"},{n:["boar"],u:"1f417",a:"0.6"},{n:["pig nose"],u:"1f43d",a:"0.6"},{n:["ram"],u:"1f40f",a:"1.0"},{n:["sheep"],u:"1f411",a:"0.6"},{n:["goat"],u:"1f410",a:"1.0"},{n:["dromedary camel"],u:"1f42a",a:"1.0"},{n:["camel","bactrian camel"],u:"1f42b",a:"0.6"},{n:["llama"],u:"1f999",a:"11.0"},{n:["giraffe face"],u:"1f992",a:"5.0"},{n:["elephant"],u:"1f418",a:"0.6"},{n:["mammoth"],u:"1f9a3",a:"13.0"},{n:["rhinoceros"],u:"1f98f",a:"3.0"},{n:["hippopotamus"],u:"1f99b",a:"11.0"},{n:["mouse","mouse face"],u:"1f42d",a:"0.6"},{n:["mouse","mouse2"],u:"1f401",a:"1.0"},{n:["rat"],u:"1f400",a:"1.0"},{n:["hamster","hamster face"],u:"1f439",a:"0.6"},{n:["rabbit","rabbit face"],u:"1f430",a:"0.6"},{n:["rabbit","rabbit2"],u:"1f407",a:"1.0"},{n:["chipmunk"],u:"1f43f-fe0f",a:"0.7"},{n:["beaver"],u:"1f9ab",a:"13.0"},{n:["hedgehog"],u:"1f994",a:"5.0"},{n:["bat"],u:"1f987",a:"3.0"},{n:["bear","bear face"],u:"1f43b",a:"0.6"},{n:["polar bear"],u:"1f43b-200d-2744-fe0f",a:"13.0"},{n:["koala"],u:"1f428",a:"0.6"},{n:["panda face"],u:"1f43c",a:"0.6"},{n:["sloth"],u:"1f9a5",a:"12.0"},{n:["otter"],u:"1f9a6",a:"12.0"},{n:["skunk"],u:"1f9a8",a:"12.0"},{n:["kangaroo"],u:"1f998",a:"11.0"},{n:["badger"],u:"1f9a1",a:"11.0"},{n:["feet","paw prints"],u:"1f43e",a:"0.6"},{n:["turkey"],u:"1f983",a:"1.0"},{n:["chicken"],u:"1f414",a:"0.6"},{n:["rooster"],u:"1f413",a:"1.0"},{n:["hatching chick"],u:"1f423",a:"0.6"},{n:["baby chick"],u:"1f424",a:"0.6"},{n:["hatched chick","front-facing baby chick"],u:"1f425",a:"0.6"},{n:["bird"],u:"1f426",a:"0.6"},{n:["penguin"],u:"1f427",a:"0.6"},{n:["dove","dove of peace"],u:"1f54a-fe0f",a:"0.7"},{n:["eagle"],u:"1f985",a:"3.0"},{n:["duck"],u:"1f986",a:"3.0"},{n:["swan"],u:"1f9a2",a:"11.0"},{n:["owl"],u:"1f989",a:"3.0"},{n:["dodo"],u:"1f9a4",a:"13.0"},{n:["feather"],u:"1fab6",a:"13.0"},{n:["flamingo"],u:"1f9a9",a:"12.0"},{n:["peacock"],u:"1f99a",a:"11.0"},{n:["parrot"],u:"1f99c",a:"11.0"},{n:["frog","frog face"],u:"1f438",a:"0.6"},{n:["crocodile"],u:"1f40a",a:"1.0"},{n:["turtle"],u:"1f422",a:"0.6"},{n:["lizard"],u:"1f98e",a:"3.0"},{n:["snake"],u:"1f40d",a:"0.6"},{n:["dragon face"],u:"1f432",a:"0.6"},{n:["dragon"],u:"1f409",a:"1.0"},{n:["sauropod"],u:"1f995",a:"5.0"},{n:["t-rex"],u:"1f996",a:"5.0"},{n:["whale","spouting whale"],u:"1f433",a:"0.6"},{n:["whale","whale2"],u:"1f40b",a:"1.0"},{n:["dolphin","flipper"],u:"1f42c",a:"0.6"},{n:["seal"],u:"1f9ad",a:"13.0"},{n:["fish"],u:"1f41f",a:"0.6"},{n:["tropical fish"],u:"1f420",a:"0.6"},{n:["blowfish"],u:"1f421",a:"0.6"},{n:["shark"],u:"1f988",a:"3.0"},{n:["octopus"],u:"1f419",a:"0.6"},{n:["shell","spiral shell"],u:"1f41a",a:"0.6"},{n:["coral"],u:"1fab8",a:"14.0"},{n:["snail"],u:"1f40c",a:"0.6"},{n:["butterfly"],u:"1f98b",a:"3.0"},{n:["bug"],u:"1f41b",a:"0.6"},{n:["ant"],u:"1f41c",a:"0.6"},{n:["bee","honeybee"],u:"1f41d",a:"0.6"},{n:["beetle"],u:"1fab2",a:"13.0"},{n:["ladybug","lady beetle"],u:"1f41e",a:"0.6"},{n:["cricket"],u:"1f997",a:"5.0"},{n:["cockroach"],u:"1fab3",a:"13.0"},{n:["spider"],u:"1f577-fe0f",a:"0.7"},{n:["spider web"],u:"1f578-fe0f",a:"0.7"},{n:["scorpion"],u:"1f982",a:"1.0"},{n:["mosquito"],u:"1f99f",a:"11.0"},{n:["fly"],u:"1fab0",a:"13.0"},{n:["worm"],u:"1fab1",a:"13.0"},{n:["microbe"],u:"1f9a0",a:"11.0"},{n:["bouquet"],u:"1f490",a:"0.6"},{n:["cherry blossom"],u:"1f338",a:"0.6"},{n:["white flower"],u:"1f4ae",a:"0.6"},{n:["lotus"],u:"1fab7",a:"14.0"},{n:["rosette"],u:"1f3f5-fe0f",a:"0.7"},{n:["rose"],u:"1f339",a:"0.6"},{n:["wilted flower"],u:"1f940",a:"3.0"},{n:["hibiscus"],u:"1f33a",a:"0.6"},{n:["sunflower"],u:"1f33b",a:"0.6"},{n:["blossom"],u:"1f33c",a:"0.6"},{n:["tulip"],u:"1f337",a:"0.6"},{n:["seedling"],u:"1f331",a:"0.6"},{n:["potted plant"],u:"1fab4",a:"13.0"},{n:["evergreen tree"],u:"1f332",a:"1.0"},{n:["deciduous tree"],u:"1f333",a:"1.0"},{n:["palm tree"],u:"1f334",a:"0.6"},{n:["cactus"],u:"1f335",a:"0.6"},{n:["ear of rice"],u:"1f33e",a:"0.6"},{n:["herb"],u:"1f33f",a:"0.6"},{n:["shamrock"],u:"2618-fe0f",a:"1.0"},{n:["four leaf clover"],u:"1f340",a:"0.6"},{n:["maple leaf"],u:"1f341",a:"0.6"},{n:["fallen leaf"],u:"1f342",a:"0.6"},{n:["leaves","leaf fluttering in wind"],u:"1f343",a:"0.6"},{n:["empty nest"],u:"1fab9",a:"14.0"},{n:["nest with eggs"],u:"1faba",a:"14.0"}],S1=[{n:["grapes"],u:"1f347",a:"0.6"},{n:["melon"],u:"1f348",a:"0.6"},{n:["watermelon"],u:"1f349",a:"0.6"},{n:["tangerine"],u:"1f34a",a:"0.6"},{n:["lemon"],u:"1f34b",a:"1.0"},{n:["banana"],u:"1f34c",a:"0.6"},{n:["pineapple"],u:"1f34d",a:"0.6"},{n:["mango"],u:"1f96d",a:"11.0"},{n:["apple","red apple"],u:"1f34e",a:"0.6"},{n:["green apple"],u:"1f34f",a:"0.6"},{n:["pear"],u:"1f350",a:"1.0"},{n:["peach"],u:"1f351",a:"0.6"},{n:["cherries"],u:"1f352",a:"0.6"},{n:["strawberry"],u:"1f353",a:"0.6"},{n:["blueberries"],u:"1fad0",a:"13.0"},{n:["kiwifruit"],u:"1f95d",a:"3.0"},{n:["tomato"],u:"1f345",a:"0.6"},{n:["olive"],u:"1fad2",a:"13.0"},{n:["coconut"],u:"1f965",a:"5.0"},{n:["avocado"],u:"1f951",a:"3.0"},{n:["eggplant","aubergine"],u:"1f346",a:"0.6"},{n:["potato"],u:"1f954",a:"3.0"},{n:["carrot"],u:"1f955",a:"3.0"},{n:["corn","ear of maize"],u:"1f33d",a:"0.6"},{n:["hot pepper"],u:"1f336-fe0f",a:"0.7"},{n:["bell pepper"],u:"1fad1",a:"13.0"},{n:["cucumber"],u:"1f952",a:"3.0"},{n:["leafy green"],u:"1f96c",a:"11.0"},{n:["broccoli"],u:"1f966",a:"5.0"},{n:["garlic"],u:"1f9c4",a:"12.0"},{n:["onion"],u:"1f9c5",a:"12.0"},{n:["mushroom"],u:"1f344",a:"0.6"},{n:["peanuts"],u:"1f95c",a:"3.0"},{n:["beans"],u:"1fad8",a:"14.0"},{n:["chestnut"],u:"1f330",a:"0.6"},{n:["bread"],u:"1f35e",a:"0.6"},{n:["croissant"],u:"1f950",a:"3.0"},{n:["baguette bread"],u:"1f956",a:"3.0"},{n:["flatbread"],u:"1fad3",a:"13.0"},{n:["pretzel"],u:"1f968",a:"5.0"},{n:["bagel"],u:"1f96f",a:"11.0"},{n:["pancakes"],u:"1f95e",a:"3.0"},{n:["waffle"],u:"1f9c7",a:"12.0"},{n:["cheese wedge"],u:"1f9c0",a:"1.0"},{n:["meat on bone"],u:"1f356",a:"0.6"},{n:["poultry leg"],u:"1f357",a:"0.6"},{n:["cut of meat"],u:"1f969",a:"5.0"},{n:["bacon"],u:"1f953",a:"3.0"},{n:["hamburger"],u:"1f354",a:"0.6"},{n:["fries","french fries"],u:"1f35f",a:"0.6"},{n:["pizza","slice of pizza"],u:"1f355",a:"0.6"},{n:["hotdog","hot dog"],u:"1f32d",a:"1.0"},{n:["sandwich"],u:"1f96a",a:"5.0"},{n:["taco"],u:"1f32e",a:"1.0"},{n:["burrito"],u:"1f32f",a:"1.0"},{n:["tamale"],u:"1fad4",a:"13.0"},{n:["stuffed flatbread"],u:"1f959",a:"3.0"},{n:["falafel"],u:"1f9c6",a:"12.0"},{n:["egg"],u:"1f95a",a:"3.0"},{n:["cooking","fried egg"],u:"1f373",a:"0.6"},{n:["shallow pan of food"],u:"1f958",a:"3.0"},{n:["stew","pot of food"],u:"1f372",a:"0.6"},{n:["fondue"],u:"1fad5",a:"13.0"},{n:["bowl with spoon"],u:"1f963",a:"5.0"},{n:["green salad"],u:"1f957",a:"3.0"},{n:["popcorn"],u:"1f37f",a:"1.0"},{n:["butter"],u:"1f9c8",a:"12.0"},{n:["salt","salt shaker"],u:"1f9c2",a:"11.0"},{n:["canned food"],u:"1f96b",a:"5.0"},{n:["bento","bento box"],u:"1f371",a:"0.6"},{n:["rice cracker"],u:"1f358",a:"0.6"},{n:["rice ball"],u:"1f359",a:"0.6"},{n:["rice","cooked rice"],u:"1f35a",a:"0.6"},{n:["curry","curry and rice"],u:"1f35b",a:"0.6"},{n:["ramen","steaming bowl"],u:"1f35c",a:"0.6"},{n:["spaghetti"],u:"1f35d",a:"0.6"},{n:["sweet potato","roasted sweet potato"],u:"1f360",a:"0.6"},{n:["oden"],u:"1f362",a:"0.6"},{n:["sushi"],u:"1f363",a:"0.6"},{n:["fried shrimp"],u:"1f364",a:"0.6"},{n:["fish cake","fish cake with swirl design"],u:"1f365",a:"0.6"},{n:["moon cake"],u:"1f96e",a:"11.0"},{n:["dango"],u:"1f361",a:"0.6"},{n:["dumpling"],u:"1f95f",a:"5.0"},{n:["fortune cookie"],u:"1f960",a:"5.0"},{n:["takeout box"],u:"1f961",a:"5.0"},{n:["crab"],u:"1f980",a:"1.0"},{n:["lobster"],u:"1f99e",a:"11.0"},{n:["shrimp"],u:"1f990",a:"3.0"},{n:["squid"],u:"1f991",a:"3.0"},{n:["oyster"],u:"1f9aa",a:"12.0"},{n:["icecream","soft ice cream"],u:"1f366",a:"0.6"},{n:["shaved ice"],u:"1f367",a:"0.6"},{n:["ice cream"],u:"1f368",a:"0.6"},{n:["doughnut"],u:"1f369",a:"0.6"},{n:["cookie"],u:"1f36a",a:"0.6"},{n:["birthday","birthday cake"],u:"1f382",a:"0.6"},{n:["cake","shortcake"],u:"1f370",a:"0.6"},{n:["cupcake"],u:"1f9c1",a:"11.0"},{n:["pie"],u:"1f967",a:"5.0"},{n:["chocolate bar"],u:"1f36b",a:"0.6"},{n:["candy"],u:"1f36c",a:"0.6"},{n:["lollipop"],u:"1f36d",a:"0.6"},{n:["custard"],u:"1f36e",a:"0.6"},{n:["honey pot"],u:"1f36f",a:"0.6"},{n:["baby bottle"],u:"1f37c",a:"1.0"},{n:["glass of milk"],u:"1f95b",a:"3.0"},{n:["coffee","hot beverage"],u:"2615",a:"0.6"},{n:["teapot"],u:"1fad6",a:"13.0"},{n:["tea","teacup without handle"],u:"1f375",a:"0.6"},{n:["sake","sake bottle and cup"],u:"1f376",a:"0.6"},{n:["champagne","bottle with popping cork"],u:"1f37e",a:"1.0"},{n:["wine glass"],u:"1f377",a:"0.6"},{n:["cocktail","cocktail glass"],u:"1f378",a:"0.6"},{n:["tropical drink"],u:"1f379",a:"0.6"},{n:["beer","beer mug"],u:"1f37a",a:"0.6"},{n:["beers","clinking beer mugs"],u:"1f37b",a:"0.6"},{n:["clinking glasses"],u:"1f942",a:"3.0"},{n:["tumbler glass"],u:"1f943",a:"3.0"},{n:["pouring liquid"],u:"1fad7",a:"14.0"},{n:["cup with straw"],u:"1f964",a:"5.0"},{n:["bubble tea"],u:"1f9cb",a:"13.0"},{n:["beverage box"],u:"1f9c3",a:"12.0"},{n:["mate drink"],u:"1f9c9",a:"12.0"},{n:["ice cube"],u:"1f9ca",a:"12.0"},{n:["chopsticks"],u:"1f962",a:"5.0"},{n:["knife fork plate","fork and knife with plate"],u:"1f37d-fe0f",a:"0.7"},{n:["fork and knife"],u:"1f374",a:"0.6"},{n:["spoon"],u:"1f944",a:"3.0"},{n:["hocho","knife"],u:"1f52a",a:"0.6"},{n:["jar"],u:"1fad9",a:"14.0"},{n:["amphora"],u:"1f3fa",a:"1.0"}],R1=[{n:["earth africa","earth globe europe-africa"],u:"1f30d",a:"0.7"},{n:["earth americas","earth globe americas"],u:"1f30e",a:"0.7"},{n:["earth asia","earth globe asia-australia"],u:"1f30f",a:"0.6"},{n:["globe with meridians"],u:"1f310",a:"1.0"},{n:["world map"],u:"1f5fa-fe0f",a:"0.7"},{n:["japan","silhouette of japan"],u:"1f5fe",a:"0.6"},{n:["compass"],u:"1f9ed",a:"11.0"},{n:["snow-capped mountain","snow capped mountain"],u:"1f3d4-fe0f",a:"0.7"},{n:["mountain"],u:"26f0-fe0f",a:"0.7"},{n:["volcano"],u:"1f30b",a:"0.6"},{n:["mount fuji"],u:"1f5fb",a:"0.6"},{n:["camping"],u:"1f3d5-fe0f",a:"0.7"},{n:["beach with umbrella"],u:"1f3d6-fe0f",a:"0.7"},{n:["desert"],u:"1f3dc-fe0f",a:"0.7"},{n:["desert island"],u:"1f3dd-fe0f",a:"0.7"},{n:["national park"],u:"1f3de-fe0f",a:"0.7"},{n:["stadium"],u:"1f3df-fe0f",a:"0.7"},{n:["classical building"],u:"1f3db-fe0f",a:"0.7"},{n:["building construction"],u:"1f3d7-fe0f",a:"0.7"},{n:["brick","bricks"],u:"1f9f1",a:"11.0"},{n:["rock"],u:"1faa8",a:"13.0"},{n:["wood"],u:"1fab5",a:"13.0"},{n:["hut"],u:"1f6d6",a:"13.0"},{n:["houses","house buildings"],u:"1f3d8-fe0f",a:"0.7"},{n:["derelict house","derelict house building"],u:"1f3da-fe0f",a:"0.7"},{n:["house","house building"],u:"1f3e0",a:"0.6"},{n:["house with garden"],u:"1f3e1",a:"0.6"},{n:["office","office building"],u:"1f3e2",a:"0.6"},{n:["post office","japanese post office"],u:"1f3e3",a:"0.6"},{n:["european post office"],u:"1f3e4",a:"1.0"},{n:["hospital"],u:"1f3e5",a:"0.6"},{n:["bank"],u:"1f3e6",a:"0.6"},{n:["hotel"],u:"1f3e8",a:"0.6"},{n:["love hotel"],u:"1f3e9",a:"0.6"},{n:["convenience store"],u:"1f3ea",a:"0.6"},{n:["school"],u:"1f3eb",a:"0.6"},{n:["department store"],u:"1f3ec",a:"0.6"},{n:["factory"],u:"1f3ed",a:"0.6"},{n:["japanese castle"],u:"1f3ef",a:"0.6"},{n:["european castle"],u:"1f3f0",a:"0.6"},{n:["wedding"],u:"1f492",a:"0.6"},{n:["tokyo tower"],u:"1f5fc",a:"0.6"},{n:["statue of liberty"],u:"1f5fd",a:"0.6"},{n:["church"],u:"26ea",a:"0.6"},{n:["mosque"],u:"1f54c",a:"1.0"},{n:["hindu temple"],u:"1f6d5",a:"12.0"},{n:["synagogue"],u:"1f54d",a:"1.0"},{n:["shinto shrine"],u:"26e9-fe0f",a:"0.7"},{n:["kaaba"],u:"1f54b",a:"1.0"},{n:["fountain"],u:"26f2",a:"0.6"},{n:["tent"],u:"26fa",a:"0.6"},{n:["foggy"],u:"1f301",a:"0.6"},{n:["night with stars"],u:"1f303",a:"0.6"},{n:["cityscape"],u:"1f3d9-fe0f",a:"0.7"},{n:["sunrise over mountains"],u:"1f304",a:"0.6"},{n:["sunrise"],u:"1f305",a:"0.6"},{n:["city sunset","cityscape at dusk"],u:"1f306",a:"0.6"},{n:["city sunrise","sunset over buildings"],u:"1f307",a:"0.6"},{n:["bridge at night"],u:"1f309",a:"0.6"},{n:["hotsprings","hot springs"],u:"2668-fe0f",a:"0.6"},{n:["carousel horse"],u:"1f3a0",a:"0.6"},{n:["playground slide"],u:"1f6dd",a:"14.0"},{n:["ferris wheel"],u:"1f3a1",a:"0.6"},{n:["roller coaster"],u:"1f3a2",a:"0.6"},{n:["barber","barber pole"],u:"1f488",a:"0.6"},{n:["circus tent"],u:"1f3aa",a:"0.6"},{n:["steam locomotive"],u:"1f682",a:"1.0"},{n:["railway car"],u:"1f683",a:"0.6"},{n:["high-speed train","bullettrain side"],u:"1f684",a:"0.6"},{n:["bullettrain front","high-speed train with bullet nose"],u:"1f685",a:"0.6"},{n:["train","train2"],u:"1f686",a:"1.0"},{n:["metro"],u:"1f687",a:"0.6"},{n:["light rail"],u:"1f688",a:"1.0"},{n:["station"],u:"1f689",a:"0.6"},{n:["tram"],u:"1f68a",a:"1.0"},{n:["monorail"],u:"1f69d",a:"1.0"},{n:["mountain railway"],u:"1f69e",a:"1.0"},{n:["train","tram car"],u:"1f68b",a:"1.0"},{n:["bus"],u:"1f68c",a:"0.6"},{n:["oncoming bus"],u:"1f68d",a:"0.7"},{n:["trolleybus"],u:"1f68e",a:"1.0"},{n:["minibus"],u:"1f690",a:"1.0"},{n:["ambulance"],u:"1f691",a:"0.6"},{n:["fire engine"],u:"1f692",a:"0.6"},{n:["police car"],u:"1f693",a:"0.6"},{n:["oncoming police car"],u:"1f694",a:"0.7"},{n:["taxi"],u:"1f695",a:"0.6"},{n:["oncoming taxi"],u:"1f696",a:"1.0"},{n:["car","red car","automobile"],u:"1f697",a:"0.6"},{n:["oncoming automobile"],u:"1f698",a:"0.7"},{n:["blue car","recreational vehicle"],u:"1f699",a:"0.6"},{n:["pickup truck"],u:"1f6fb",a:"13.0"},{n:["truck","delivery truck"],u:"1f69a",a:"0.6"},{n:["articulated lorry"],u:"1f69b",a:"1.0"},{n:["tractor"],u:"1f69c",a:"1.0"},{n:["racing car"],u:"1f3ce-fe0f",a:"0.7"},{n:["motorcycle","racing motorcycle"],u:"1f3cd-fe0f",a:"0.7"},{n:["motor scooter"],u:"1f6f5",a:"3.0"},{n:["manual wheelchair"],u:"1f9bd",a:"12.0"},{n:["motorized wheelchair"],u:"1f9bc",a:"12.0"},{n:["auto rickshaw"],u:"1f6fa",a:"12.0"},{n:["bike","bicycle"],u:"1f6b2",a:"0.6"},{n:["scooter"],u:"1f6f4",a:"3.0"},{n:["skateboard"],u:"1f6f9",a:"11.0"},{n:["roller skate"],u:"1f6fc",a:"13.0"},{n:["busstop","bus stop"],u:"1f68f",a:"0.6"},{n:["motorway"],u:"1f6e3-fe0f",a:"0.7"},{n:["railway track"],u:"1f6e4-fe0f",a:"0.7"},{n:["oil drum"],u:"1f6e2-fe0f",a:"0.7"},{n:["fuelpump","fuel pump"],u:"26fd",a:"0.6"},{n:["wheel"],u:"1f6de",a:"14.0"},{n:["rotating light","police cars revolving light"],u:"1f6a8",a:"0.6"},{n:["traffic light","horizontal traffic light"],u:"1f6a5",a:"0.6"},{n:["vertical traffic light"],u:"1f6a6",a:"1.0"},{n:["octagonal sign"],u:"1f6d1",a:"3.0"},{n:["construction","construction sign"],u:"1f6a7",a:"0.6"},{n:["anchor"],u:"2693",a:"0.6"},{n:["ring buoy"],u:"1f6df",a:"14.0"},{n:["boat","sailboat"],u:"26f5",a:"0.6"},{n:["canoe"],u:"1f6f6",a:"3.0"},{n:["speedboat"],u:"1f6a4",a:"0.6"},{n:["passenger ship"],u:"1f6f3-fe0f",a:"0.7"},{n:["ferry"],u:"26f4-fe0f",a:"0.7"},{n:["motor boat"],u:"1f6e5-fe0f",a:"0.7"},{n:["ship"],u:"1f6a2",a:"0.6"},{n:["airplane"],u:"2708-fe0f",a:"0.6"},{n:["small airplane"],u:"1f6e9-fe0f",a:"0.7"},{n:["airplane departure"],u:"1f6eb",a:"1.0"},{n:["airplane arriving"],u:"1f6ec",a:"1.0"},{n:["parachute"],u:"1fa82",a:"12.0"},{n:["seat"],u:"1f4ba",a:"0.6"},{n:["helicopter"],u:"1f681",a:"1.0"},{n:["suspension railway"],u:"1f69f",a:"1.0"},{n:["mountain cableway"],u:"1f6a0",a:"1.0"},{n:["aerial tramway"],u:"1f6a1",a:"1.0"},{n:["satellite"],u:"1f6f0-fe0f",a:"0.7"},{n:["rocket"],u:"1f680",a:"0.6"},{n:["flying saucer"],u:"1f6f8",a:"5.0"},{n:["bellhop bell"],u:"1f6ce-fe0f",a:"0.7"},{n:["luggage"],u:"1f9f3",a:"11.0"},{n:["hourglass"],u:"231b",a:"0.6"},{n:["hourglass flowing sand","hourglass with flowing sand"],u:"23f3",a:"0.6"},{n:["watch"],u:"231a",a:"0.6"},{n:["alarm clock"],u:"23f0",a:"0.6"},{n:["stopwatch"],u:"23f1-fe0f",a:"1.0"},{n:["timer clock"],u:"23f2-fe0f",a:"1.0"},{n:["mantelpiece clock"],u:"1f570-fe0f",a:"0.7"},{n:["clock12","clock face twelve oclock"],u:"1f55b",a:"0.6"},{n:["clock1230","clock face twelve-thirty"],u:"1f567",a:"0.7"},{n:["clock1","clock face one oclock"],u:"1f550",a:"0.6"},{n:["clock130","clock face one-thirty"],u:"1f55c",a:"0.7"},{n:["clock2","clock face two oclock"],u:"1f551",a:"0.6"},{n:["clock230","clock face two-thirty"],u:"1f55d",a:"0.7"},{n:["clock3","clock face three oclock"],u:"1f552",a:"0.6"},{n:["clock330","clock face three-thirty"],u:"1f55e",a:"0.7"},{n:["clock4","clock face four oclock"],u:"1f553",a:"0.6"},{n:["clock430","clock face four-thirty"],u:"1f55f",a:"0.7"},{n:["clock5","clock face five oclock"],u:"1f554",a:"0.6"},{n:["clock530","clock face five-thirty"],u:"1f560",a:"0.7"},{n:["clock6","clock face six oclock"],u:"1f555",a:"0.6"},{n:["clock630","clock face six-thirty"],u:"1f561",a:"0.7"},{n:["clock7","clock face seven oclock"],u:"1f556",a:"0.6"},{n:["clock730","clock face seven-thirty"],u:"1f562",a:"0.7"},{n:["clock8","clock face eight oclock"],u:"1f557",a:"0.6"},{n:["clock830","clock face eight-thirty"],u:"1f563",a:"0.7"},{n:["clock9","clock face nine oclock"],u:"1f558",a:"0.6"},{n:["clock930","clock face nine-thirty"],u:"1f564",a:"0.7"},{n:["clock10","clock face ten oclock"],u:"1f559",a:"0.6"},{n:["clock1030","clock face ten-thirty"],u:"1f565",a:"0.7"},{n:["clock11","clock face eleven oclock"],u:"1f55a",a:"0.6"},{n:["clock1130","clock face eleven-thirty"],u:"1f566",a:"0.7"},{n:["new moon","new moon symbol"],u:"1f311",a:"0.6"},{n:["waxing crescent moon","waxing crescent moon symbol"],u:"1f312",a:"1.0"},{n:["first quarter moon","first quarter moon symbol"],u:"1f313",a:"0.6"},{n:["moon","waxing gibbous moon","waxing gibbous moon symbol"],u:"1f314",a:"0.6"},{n:["full moon","full moon symbol"],u:"1f315",a:"0.6"},{n:["waning gibbous moon","waning gibbous moon symbol"],u:"1f316",a:"1.0"},{n:["last quarter moon","last quarter moon symbol"],u:"1f317",a:"1.0"},{n:["waning crescent moon","waning crescent moon symbol"],u:"1f318",a:"1.0"},{n:["crescent moon"],u:"1f319",a:"0.6"},{n:["new moon with face"],u:"1f31a",a:"1.0"},{n:["first quarter moon with face"],u:"1f31b",a:"0.6"},{n:["last quarter moon with face"],u:"1f31c",a:"0.7"},{n:["thermometer"],u:"1f321-fe0f",a:"0.7"},{n:["sunny","black sun with rays"],u:"2600-fe0f",a:"0.6"},{n:["full moon with face"],u:"1f31d",a:"1.0"},{n:["sun with face"],u:"1f31e",a:"1.0"},{n:["ringed planet"],u:"1fa90",a:"12.0"},{n:["star","white medium star"],u:"2b50",a:"0.6"},{n:["star2","glowing star"],u:"1f31f",a:"0.6"},{n:["stars","shooting star"],u:"1f320",a:"0.6"},{n:["milky way"],u:"1f30c",a:"0.6"},{n:["cloud"],u:"2601-fe0f",a:"0.6"},{n:["partly sunny","sun behind cloud"],u:"26c5",a:"0.6"},{n:["thunder cloud and rain","cloud with lightning and rain"],u:"26c8-fe0f",a:"0.7"},{n:["mostly sunny","sun small cloud","sun behind small cloud"],u:"1f324-fe0f",a:"0.7"},{n:["barely sunny","sun behind cloud","sun behind large cloud"],u:"1f325-fe0f",a:"0.7"},{n:["partly sunny rain","sun behind rain cloud"],u:"1f326-fe0f",a:"0.7"},{n:["rain cloud","cloud with rain"],u:"1f327-fe0f",a:"0.7"},{n:["snow cloud","cloud with snow"],u:"1f328-fe0f",a:"0.7"},{n:["lightning","lightning cloud","cloud with lightning"],u:"1f329-fe0f",a:"0.7"},{n:["tornado","tornado cloud"],u:"1f32a-fe0f",a:"0.7"},{n:["fog"],u:"1f32b-fe0f",a:"0.7"},{n:["wind face","wind blowing face"],u:"1f32c-fe0f",a:"0.7"},{n:["cyclone"],u:"1f300",a:"0.6"},{n:["rainbow"],u:"1f308",a:"0.6"},{n:["closed umbrella"],u:"1f302",a:"0.6"},{n:["umbrella"],u:"2602-fe0f",a:"0.7"},{n:["umbrella with rain drops"],u:"2614",a:"0.6"},{n:["umbrella on ground"],u:"26f1-fe0f",a:"0.7"},{n:["zap","high voltage sign"],u:"26a1",a:"0.6"},{n:["snowflake"],u:"2744-fe0f",a:"0.6"},{n:["snowman"],u:"2603-fe0f",a:"0.7"},{n:["snowman without snow"],u:"26c4",a:"0.6"},{n:["comet"],u:"2604-fe0f",a:"1.0"},{n:["fire"],u:"1f525",a:"0.6"},{n:["droplet"],u:"1f4a7",a:"0.6"},{n:["ocean","water wave"],u:"1f30a",a:"0.6"}],z1=[{n:["jack-o-lantern","jack o lantern"],u:"1f383",a:"0.6"},{n:["christmas tree"],u:"1f384",a:"0.6"},{n:["fireworks"],u:"1f386",a:"0.6"},{n:["sparkler","firework sparkler"],u:"1f387",a:"0.6"},{n:["firecracker"],u:"1f9e8",a:"11.0"},{n:["sparkles"],u:"2728",a:"0.6"},{n:["balloon"],u:"1f388",a:"0.6"},{n:["tada","party popper"],u:"1f389",a:"0.6"},{n:["confetti ball"],u:"1f38a",a:"0.6"},{n:["tanabata tree"],u:"1f38b",a:"0.6"},{n:["bamboo","pine decoration"],u:"1f38d",a:"0.6"},{n:["dolls","japanese dolls"],u:"1f38e",a:"0.6"},{n:["flags","carp streamer"],u:"1f38f",a:"0.6"},{n:["wind chime"],u:"1f390",a:"0.6"},{n:["rice scene","moon viewing ceremony"],u:"1f391",a:"0.6"},{n:["red envelope","red gift envelope"],u:"1f9e7",a:"11.0"},{n:["ribbon"],u:"1f380",a:"0.6"},{n:["gift","wrapped present"],u:"1f381",a:"0.6"},{n:["reminder ribbon"],u:"1f397-fe0f",a:"0.7"},{n:["admission tickets"],u:"1f39f-fe0f",a:"0.7"},{n:["ticket"],u:"1f3ab",a:"0.6"},{n:["medal","military medal"],u:"1f396-fe0f",a:"0.7"},{n:["trophy"],u:"1f3c6",a:"0.6"},{n:["sports medal"],u:"1f3c5",a:"1.0"},{n:["first place medal"],u:"1f947",a:"3.0"},{n:["second place medal"],u:"1f948",a:"3.0"},{n:["third place medal"],u:"1f949",a:"3.0"},{n:["soccer","soccer ball"],u:"26bd",a:"0.6"},{n:["baseball"],u:"26be",a:"0.6"},{n:["softball"],u:"1f94e",a:"11.0"},{n:["basketball","basketball and hoop"],u:"1f3c0",a:"0.6"},{n:["volleyball"],u:"1f3d0",a:"1.0"},{n:["football","american football"],u:"1f3c8",a:"0.6"},{n:["rugby football"],u:"1f3c9",a:"1.0"},{n:["tennis","tennis racquet and ball"],u:"1f3be",a:"0.6"},{n:["flying disc"],u:"1f94f",a:"11.0"},{n:["bowling"],u:"1f3b3",a:"0.6"},{n:["cricket bat and ball"],u:"1f3cf",a:"1.0"},{n:["field hockey stick and ball"],u:"1f3d1",a:"1.0"},{n:["ice hockey stick and puck"],u:"1f3d2",a:"1.0"},{n:["lacrosse","lacrosse stick and ball"],u:"1f94d",a:"11.0"},{n:["table tennis paddle and ball"],u:"1f3d3",a:"1.0"},{n:["badminton racquet and shuttlecock"],u:"1f3f8",a:"1.0"},{n:["boxing glove"],u:"1f94a",a:"3.0"},{n:["martial arts uniform"],u:"1f94b",a:"3.0"},{n:["goal net"],u:"1f945",a:"3.0"},{n:["golf","flag in hole"],u:"26f3",a:"0.6"},{n:["ice skate"],u:"26f8-fe0f",a:"0.7"},{n:["fishing pole and fish"],u:"1f3a3",a:"0.6"},{n:["diving mask"],u:"1f93f",a:"12.0"},{n:["running shirt with sash"],u:"1f3bd",a:"0.6"},{n:["ski","ski and ski boot"],u:"1f3bf",a:"0.6"},{n:["sled"],u:"1f6f7",a:"5.0"},{n:["curling stone"],u:"1f94c",a:"5.0"},{n:["dart","direct hit"],u:"1f3af",a:"0.6"},{n:["yo-yo"],u:"1fa80",a:"12.0"},{n:["kite"],u:"1fa81",a:"12.0"},{n:["8ball","billiards"],u:"1f3b1",a:"0.6"},{n:["crystal ball"],u:"1f52e",a:"0.6"},{n:["magic wand"],u:"1fa84",a:"13.0"},{n:["nazar amulet"],u:"1f9ff",a:"11.0"},{n:["hamsa"],u:"1faac",a:"14.0"},{n:["video game"],u:"1f3ae",a:"0.6"},{n:["joystick"],u:"1f579-fe0f",a:"0.7"},{n:["slot machine"],u:"1f3b0",a:"0.6"},{n:["game die"],u:"1f3b2",a:"0.6"},{n:["jigsaw","jigsaw puzzle piece"],u:"1f9e9",a:"11.0"},{n:["teddy bear"],u:"1f9f8",a:"11.0"},{n:["pinata"],u:"1fa85",a:"13.0"},{n:["mirror ball"],u:"1faa9",a:"14.0"},{n:["nesting dolls"],u:"1fa86",a:"13.0"},{n:["spades","black spade suit"],u:"2660-fe0f",a:"0.6"},{n:["hearts","black heart suit"],u:"2665-fe0f",a:"0.6"},{n:["diamonds","black diamond suit"],u:"2666-fe0f",a:"0.6"},{n:["clubs","black club suit"],u:"2663-fe0f",a:"0.6"},{n:["chess pawn"],u:"265f-fe0f",a:"11.0"},{n:["black joker","playing card black joker"],u:"1f0cf",a:"0.6"},{n:["mahjong","mahjong tile red dragon"],u:"1f004",a:"0.6"},{n:["flower playing cards"],u:"1f3b4",a:"0.6"},{n:["performing arts"],u:"1f3ad",a:"0.6"},{n:["framed picture","frame with picture"],u:"1f5bc-fe0f",a:"0.7"},{n:["art","artist palette"],u:"1f3a8",a:"0.6"},{n:["thread","spool of thread"],u:"1f9f5",a:"11.0"},{n:["sewing needle"],u:"1faa1",a:"13.0"},{n:["yarn","ball of yarn"],u:"1f9f6",a:"11.0"},{n:["knot"],u:"1faa2",a:"13.0"}],P1=[{n:["eyeglasses"],u:"1f453",a:"0.6"},{n:["sunglasses","dark sunglasses"],u:"1f576-fe0f",a:"0.7"},{n:["goggles"],u:"1f97d",a:"11.0"},{n:["lab coat"],u:"1f97c",a:"11.0"},{n:["safety vest"],u:"1f9ba",a:"12.0"},{n:["necktie"],u:"1f454",a:"0.6"},{n:["shirt","tshirt","t-shirt"],u:"1f455",a:"0.6"},{n:["jeans"],u:"1f456",a:"0.6"},{n:["scarf"],u:"1f9e3",a:"5.0"},{n:["gloves"],u:"1f9e4",a:"5.0"},{n:["coat"],u:"1f9e5",a:"5.0"},{n:["socks"],u:"1f9e6",a:"5.0"},{n:["dress"],u:"1f457",a:"0.6"},{n:["kimono"],u:"1f458",a:"0.6"},{n:["sari"],u:"1f97b",a:"12.0"},{n:["one-piece swimsuit"],u:"1fa71",a:"12.0"},{n:["briefs"],u:"1fa72",a:"12.0"},{n:["shorts"],u:"1fa73",a:"12.0"},{n:["bikini"],u:"1f459",a:"0.6"},{n:["womans clothes"],u:"1f45a",a:"0.6"},{n:["purse"],u:"1f45b",a:"0.6"},{n:["handbag"],u:"1f45c",a:"0.6"},{n:["pouch"],u:"1f45d",a:"0.6"},{n:["shopping bags"],u:"1f6cd-fe0f",a:"0.7"},{n:["school satchel"],u:"1f392",a:"0.6"},{n:["thong sandal"],u:"1fa74",a:"13.0"},{n:["shoe","mans shoe"],u:"1f45e",a:"0.6"},{n:["athletic shoe"],u:"1f45f",a:"0.6"},{n:["hiking boot"],u:"1f97e",a:"11.0"},{n:["flat shoe","womans flat shoe"],u:"1f97f",a:"11.0"},{n:["high heel","high-heeled shoe"],u:"1f460",a:"0.6"},{n:["sandal","womans sandal"],u:"1f461",a:"0.6"},{n:["ballet shoes"],u:"1fa70",a:"12.0"},{n:["boot","womans boots"],u:"1f462",a:"0.6"},{n:["crown"],u:"1f451",a:"0.6"},{n:["womans hat"],u:"1f452",a:"0.6"},{n:["tophat","top hat"],u:"1f3a9",a:"0.6"},{n:["mortar board","graduation cap"],u:"1f393",a:"0.6"},{n:["billed cap"],u:"1f9e2",a:"5.0"},{n:["military helmet"],u:"1fa96",a:"13.0"},{n:["rescue worker’s helmet","helmet with white cross"],u:"26d1-fe0f",a:"0.7"},{n:["prayer beads"],u:"1f4ff",a:"1.0"},{n:["lipstick"],u:"1f484",a:"0.6"},{n:["ring"],u:"1f48d",a:"0.6"},{n:["gem","gem stone"],u:"1f48e",a:"0.6"},{n:["mute","speaker with cancellation stroke"],u:"1f507",a:"1.0"},{n:["speaker"],u:"1f508",a:"0.7"},{n:["sound","speaker with one sound wave"],u:"1f509",a:"1.0"},{n:["loud sound","speaker with three sound waves"],u:"1f50a",a:"0.6"},{n:["loudspeaker","public address loudspeaker"],u:"1f4e2",a:"0.6"},{n:["mega","cheering megaphone"],u:"1f4e3",a:"0.6"},{n:["postal horn"],u:"1f4ef",a:"1.0"},{n:["bell"],u:"1f514",a:"0.6"},{n:["no bell","bell with cancellation stroke"],u:"1f515",a:"1.0"},{n:["musical score"],u:"1f3bc",a:"0.6"},{n:["musical note"],u:"1f3b5",a:"0.6"},{n:["notes","multiple musical notes"],u:"1f3b6",a:"0.6"},{n:["studio microphone"],u:"1f399-fe0f",a:"0.7"},{n:["level slider"],u:"1f39a-fe0f",a:"0.7"},{n:["control knobs"],u:"1f39b-fe0f",a:"0.7"},{n:["microphone"],u:"1f3a4",a:"0.6"},{n:["headphone","headphones"],u:"1f3a7",a:"0.6"},{n:["radio"],u:"1f4fb",a:"0.6"},{n:["saxophone"],u:"1f3b7",a:"0.6"},{n:["accordion"],u:"1fa97",a:"13.0"},{n:["guitar"],u:"1f3b8",a:"0.6"},{n:["musical keyboard"],u:"1f3b9",a:"0.6"},{n:["trumpet"],u:"1f3ba",a:"0.6"},{n:["violin"],u:"1f3bb",a:"0.6"},{n:["banjo"],u:"1fa95",a:"12.0"},{n:["drum with drumsticks"],u:"1f941",a:"3.0"},{n:["long drum"],u:"1fa98",a:"13.0"},{n:["iphone","mobile phone"],u:"1f4f1",a:"0.6"},{n:["calling","mobile phone with rightwards arrow at left"],u:"1f4f2",a:"0.6"},{n:["phone","telephone","black telephone"],u:"260e-fe0f",a:"0.6"},{n:["telephone receiver"],u:"1f4de",a:"0.6"},{n:["pager"],u:"1f4df",a:"0.6"},{n:["fax","fax machine"],u:"1f4e0",a:"0.6"},{n:["battery"],u:"1f50b",a:"0.6"},{n:["low battery"],u:"1faab",a:"14.0"},{n:["electric plug"],u:"1f50c",a:"0.6"},{n:["computer","personal computer"],u:"1f4bb",a:"0.6"},{n:["desktop computer"],u:"1f5a5-fe0f",a:"0.7"},{n:["printer"],u:"1f5a8-fe0f",a:"0.7"},{n:["keyboard"],u:"2328-fe0f",a:"1.0"},{n:["computer mouse","three button mouse"],u:"1f5b1-fe0f",a:"0.7"},{n:["trackball"],u:"1f5b2-fe0f",a:"0.7"},{n:["minidisc"],u:"1f4bd",a:"0.6"},{n:["floppy disk"],u:"1f4be",a:"0.6"},{n:["cd","optical disc"],u:"1f4bf",a:"0.6"},{n:["dvd"],u:"1f4c0",a:"0.6"},{n:["abacus"],u:"1f9ee",a:"11.0"},{n:["movie camera"],u:"1f3a5",a:"0.6"},{n:["film frames"],u:"1f39e-fe0f",a:"0.7"},{n:["film projector"],u:"1f4fd-fe0f",a:"0.7"},{n:["clapper","clapper board"],u:"1f3ac",a:"0.6"},{n:["tv","television"],u:"1f4fa",a:"0.6"},{n:["camera"],u:"1f4f7",a:"0.6"},{n:["camera with flash"],u:"1f4f8",a:"1.0"},{n:["video camera"],u:"1f4f9",a:"0.6"},{n:["vhs","videocassette"],u:"1f4fc",a:"0.6"},{n:["mag","left-pointing magnifying glass"],u:"1f50d",a:"0.6"},{n:["mag right","right-pointing magnifying glass"],u:"1f50e",a:"0.6"},{n:["candle"],u:"1f56f-fe0f",a:"0.7"},{n:["bulb","electric light bulb"],u:"1f4a1",a:"0.6"},{n:["flashlight","electric torch"],u:"1f526",a:"0.6"},{n:["lantern","izakaya lantern"],u:"1f3ee",a:"0.6"},{n:["diya lamp"],u:"1fa94",a:"12.0"},{n:["notebook with decorative cover"],u:"1f4d4",a:"0.6"},{n:["closed book"],u:"1f4d5",a:"0.6"},{n:["book","open book"],u:"1f4d6",a:"0.6"},{n:["green book"],u:"1f4d7",a:"0.6"},{n:["blue book"],u:"1f4d8",a:"0.6"},{n:["orange book"],u:"1f4d9",a:"0.6"},{n:["books"],u:"1f4da",a:"0.6"},{n:["notebook"],u:"1f4d3",a:"0.6"},{n:["ledger"],u:"1f4d2",a:"0.6"},{n:["page with curl"],u:"1f4c3",a:"0.6"},{n:["scroll"],u:"1f4dc",a:"0.6"},{n:["page facing up"],u:"1f4c4",a:"0.6"},{n:["newspaper"],u:"1f4f0",a:"0.6"},{n:["rolled-up newspaper","rolled up newspaper"],u:"1f5de-fe0f",a:"0.7"},{n:["bookmark tabs"],u:"1f4d1",a:"0.6"},{n:["bookmark"],u:"1f516",a:"0.6"},{n:["label"],u:"1f3f7-fe0f",a:"0.7"},{n:["moneybag","money bag"],u:"1f4b0",a:"0.6"},{n:["coin"],u:"1fa99",a:"13.0"},{n:["yen","banknote with yen sign"],u:"1f4b4",a:"0.6"},{n:["dollar","banknote with dollar sign"],u:"1f4b5",a:"0.6"},{n:["euro","banknote with euro sign"],u:"1f4b6",a:"1.0"},{n:["pound","banknote with pound sign"],u:"1f4b7",a:"1.0"},{n:["money with wings"],u:"1f4b8",a:"0.6"},{n:["credit card"],u:"1f4b3",a:"0.6"},{n:["receipt"],u:"1f9fe",a:"11.0"},{n:["chart","chart with upwards trend and yen sign"],u:"1f4b9",a:"0.6"},{n:["email","envelope"],u:"2709-fe0f",a:"0.6"},{n:["e-mail","e-mail symbol"],u:"1f4e7",a:"0.6"},{n:["incoming envelope"],u:"1f4e8",a:"0.6"},{n:["envelope with arrow","envelope with downwards arrow above"],u:"1f4e9",a:"0.6"},{n:["outbox tray"],u:"1f4e4",a:"0.6"},{n:["inbox tray"],u:"1f4e5",a:"0.6"},{n:["package"],u:"1f4e6",a:"0.6"},{n:["mailbox","closed mailbox with raised flag"],u:"1f4eb",a:"0.6"},{n:["mailbox closed","closed mailbox with lowered flag"],u:"1f4ea",a:"0.6"},{n:["mailbox with mail","open mailbox with raised flag"],u:"1f4ec",a:"0.7"},{n:["mailbox with no mail","open mailbox with lowered flag"],u:"1f4ed",a:"0.7"},{n:["postbox"],u:"1f4ee",a:"0.6"},{n:["ballot box with ballot"],u:"1f5f3-fe0f",a:"0.7"},{n:["pencil","pencil2"],u:"270f-fe0f",a:"0.6"},{n:["black nib"],u:"2712-fe0f",a:"0.6"},{n:["fountain pen","lower left fountain pen"],u:"1f58b-fe0f",a:"0.7"},{n:["pen","lower left ballpoint pen"],u:"1f58a-fe0f",a:"0.7"},{n:["paintbrush","lower left paintbrush"],u:"1f58c-fe0f",a:"0.7"},{n:["crayon","lower left crayon"],u:"1f58d-fe0f",a:"0.7"},{n:["memo","pencil"],u:"1f4dd",a:"0.6"},{n:["briefcase"],u:"1f4bc",a:"0.6"},{n:["file folder"],u:"1f4c1",a:"0.6"},{n:["open file folder"],u:"1f4c2",a:"0.6"},{n:["card index dividers"],u:"1f5c2-fe0f",a:"0.7"},{n:["date","calendar"],u:"1f4c5",a:"0.6"},{n:["calendar","tear-off calendar"],u:"1f4c6",a:"0.6"},{n:["spiral notepad","spiral note pad"],u:"1f5d2-fe0f",a:"0.7"},{n:["spiral calendar","spiral calendar pad"],u:"1f5d3-fe0f",a:"0.7"},{n:["card index"],u:"1f4c7",a:"0.6"},{n:["chart with upwards trend"],u:"1f4c8",a:"0.6"},{n:["chart with downwards trend"],u:"1f4c9",a:"0.6"},{n:["bar chart"],u:"1f4ca",a:"0.6"},{n:["clipboard"],u:"1f4cb",a:"0.6"},{n:["pushpin"],u:"1f4cc",a:"0.6"},{n:["round pushpin"],u:"1f4cd",a:"0.6"},{n:["paperclip"],u:"1f4ce",a:"0.6"},{n:["linked paperclips"],u:"1f587-fe0f",a:"0.7"},{n:["straight ruler"],u:"1f4cf",a:"0.6"},{n:["triangular ruler"],u:"1f4d0",a:"0.6"},{n:["scissors","black scissors"],u:"2702-fe0f",a:"0.6"},{n:["card file box"],u:"1f5c3-fe0f",a:"0.7"},{n:["file cabinet"],u:"1f5c4-fe0f",a:"0.7"},{n:["wastebasket"],u:"1f5d1-fe0f",a:"0.7"},{n:["lock"],u:"1f512",a:"0.6"},{n:["unlock","open lock"],u:"1f513",a:"0.6"},{n:["lock with ink pen"],u:"1f50f",a:"0.6"},{n:["closed lock with key"],u:"1f510",a:"0.6"},{n:["key"],u:"1f511",a:"0.6"},{n:["old key"],u:"1f5dd-fe0f",a:"0.7"},{n:["hammer"],u:"1f528",a:"0.6"},{n:["axe"],u:"1fa93",a:"12.0"},{n:["pick"],u:"26cf-fe0f",a:"0.7"},{n:["hammer and pick"],u:"2692-fe0f",a:"1.0"},{n:["hammer and wrench"],u:"1f6e0-fe0f",a:"0.7"},{n:["dagger","dagger knife"],u:"1f5e1-fe0f",a:"0.7"},{n:["crossed swords"],u:"2694-fe0f",a:"1.0"},{n:["gun","pistol"],u:"1f52b",a:"0.6"},{n:["boomerang"],u:"1fa83",a:"13.0"},{n:["bow and arrow"],u:"1f3f9",a:"1.0"},{n:["shield"],u:"1f6e1-fe0f",a:"0.7"},{n:["carpentry saw"],u:"1fa9a",a:"13.0"},{n:["wrench"],u:"1f527",a:"0.6"},{n:["screwdriver"],u:"1fa9b",a:"13.0"},{n:["nut and bolt"],u:"1f529",a:"0.6"},{n:["gear"],u:"2699-fe0f",a:"1.0"},{n:["clamp","compression"],u:"1f5dc-fe0f",a:"0.7"},{n:["scales","balance scale"],u:"2696-fe0f",a:"1.0"},{n:["probing cane"],u:"1f9af",a:"12.0"},{n:["link","link symbol"],u:"1f517",a:"0.6"},{n:["chains"],u:"26d3-fe0f",a:"0.7"},{n:["hook"],u:"1fa9d",a:"13.0"},{n:["toolbox"],u:"1f9f0",a:"11.0"},{n:["magnet"],u:"1f9f2",a:"11.0"},{n:["ladder"],u:"1fa9c",a:"13.0"},{n:["alembic"],u:"2697-fe0f",a:"1.0"},{n:["test tube"],u:"1f9ea",a:"11.0"},{n:["petri dish"],u:"1f9eb",a:"11.0"},{n:["dna","dna double helix"],u:"1f9ec",a:"11.0"},{n:["microscope"],u:"1f52c",a:"1.0"},{n:["telescope"],u:"1f52d",a:"1.0"},{n:["satellite antenna"],u:"1f4e1",a:"0.6"},{n:["syringe"],u:"1f489",a:"0.6"},{n:["drop of blood"],u:"1fa78",a:"12.0"},{n:["pill"],u:"1f48a",a:"0.6"},{n:["adhesive bandage"],u:"1fa79",a:"12.0"},{n:["crutch"],u:"1fa7c",a:"14.0"},{n:["stethoscope"],u:"1fa7a",a:"12.0"},{n:["x-ray"],u:"1fa7b",a:"14.0"},{n:["door"],u:"1f6aa",a:"0.6"},{n:["elevator"],u:"1f6d7",a:"13.0"},{n:["mirror"],u:"1fa9e",a:"13.0"},{n:["window"],u:"1fa9f",a:"13.0"},{n:["bed"],u:"1f6cf-fe0f",a:"0.7"},{n:["couch and lamp"],u:"1f6cb-fe0f",a:"0.7"},{n:["chair"],u:"1fa91",a:"12.0"},{n:["toilet"],u:"1f6bd",a:"0.6"},{n:["plunger"],u:"1faa0",a:"13.0"},{n:["shower"],u:"1f6bf",a:"1.0"},{n:["bathtub"],u:"1f6c1",a:"1.0"},{n:["mouse trap"],u:"1faa4",a:"13.0"},{n:["razor"],u:"1fa92",a:"12.0"},{n:["lotion bottle"],u:"1f9f4",a:"11.0"},{n:["safety pin"],u:"1f9f7",a:"11.0"},{n:["broom"],u:"1f9f9",a:"11.0"},{n:["basket"],u:"1f9fa",a:"11.0"},{n:["roll of paper"],u:"1f9fb",a:"11.0"},{n:["bucket"],u:"1faa3",a:"13.0"},{n:["soap","bar of soap"],u:"1f9fc",a:"11.0"},{n:["bubbles"],u:"1fae7",a:"14.0"},{n:["toothbrush"],u:"1faa5",a:"13.0"},{n:["sponge"],u:"1f9fd",a:"11.0"},{n:["fire extinguisher"],u:"1f9ef",a:"11.0"},{n:["shopping trolley"],u:"1f6d2",a:"3.0"},{n:["smoking","smoking symbol"],u:"1f6ac",a:"0.6"},{n:["coffin"],u:"26b0-fe0f",a:"1.0"},{n:["headstone"],u:"1faa6",a:"13.0"},{n:["funeral urn"],u:"26b1-fe0f",a:"1.0"},{n:["moyai"],u:"1f5ff",a:"0.6"},{n:["placard"],u:"1faa7",a:"13.0"},{n:["identification card"],u:"1faaa",a:"14.0"}],T1=[{n:["atm","automated teller machine"],u:"1f3e7",a:"0.6"},{n:["put litter in its place","put litter in its place symbol"],u:"1f6ae",a:"1.0"},{n:["potable water","potable water symbol"],u:"1f6b0",a:"1.0"},{n:["wheelchair","wheelchair symbol"],u:"267f",a:"0.6"},{n:["mens","mens symbol"],u:"1f6b9",a:"0.6"},{n:["womens","womens symbol"],u:"1f6ba",a:"0.6"},{n:["restroom"],u:"1f6bb",a:"0.6"},{n:["baby symbol"],u:"1f6bc",a:"0.6"},{n:["wc","water closet"],u:"1f6be",a:"0.6"},{n:["passport control"],u:"1f6c2",a:"1.0"},{n:["customs"],u:"1f6c3",a:"1.0"},{n:["baggage claim"],u:"1f6c4",a:"1.0"},{n:["left luggage"],u:"1f6c5",a:"1.0"},{n:["warning","warning sign"],u:"26a0-fe0f",a:"0.6"},{n:["children crossing"],u:"1f6b8",a:"1.0"},{n:["no entry"],u:"26d4",a:"0.6"},{n:["no entry sign"],u:"1f6ab",a:"0.6"},{n:["no bicycles"],u:"1f6b3",a:"1.0"},{n:["no smoking","no smoking symbol"],u:"1f6ad",a:"0.6"},{n:["do not litter","do not litter symbol"],u:"1f6af",a:"1.0"},{n:["non-potable water","non-potable water symbol"],u:"1f6b1",a:"1.0"},{n:["no pedestrians"],u:"1f6b7",a:"1.0"},{n:["no mobile phones"],u:"1f4f5",a:"1.0"},{n:["underage","no one under eighteen symbol"],u:"1f51e",a:"0.6"},{n:["radioactive","radioactive sign"],u:"2622-fe0f",a:"1.0"},{n:["biohazard","biohazard sign"],u:"2623-fe0f",a:"1.0"},{n:["arrow up","upwards black arrow"],u:"2b06-fe0f",a:"0.6"},{n:["north east arrow","arrow upper right"],u:"2197-fe0f",a:"0.6"},{n:["arrow right","black rightwards arrow"],u:"27a1-fe0f",a:"0.6"},{n:["south east arrow","arrow lower right"],u:"2198-fe0f",a:"0.6"},{n:["arrow down","downwards black arrow"],u:"2b07-fe0f",a:"0.6"},{n:["south west arrow","arrow lower left"],u:"2199-fe0f",a:"0.6"},{n:["arrow left","leftwards black arrow"],u:"2b05-fe0f",a:"0.6"},{n:["north west arrow","arrow upper left"],u:"2196-fe0f",a:"0.6"},{n:["up down arrow","arrow up down"],u:"2195-fe0f",a:"0.6"},{n:["left right arrow"],u:"2194-fe0f",a:"0.6"},{n:["leftwards arrow with hook"],u:"21a9-fe0f",a:"0.6"},{n:["arrow right hook","rightwards arrow with hook"],u:"21aa-fe0f",a:"0.6"},{n:["arrow heading up","arrow pointing rightwards then curving upwards"],u:"2934-fe0f",a:"0.6"},{n:["arrow heading down","arrow pointing rightwards then curving downwards"],u:"2935-fe0f",a:"0.6"},{n:["arrows clockwise","clockwise downwards and upwards open circle arrows"],u:"1f503",a:"0.6"},{n:["arrows counterclockwise","anticlockwise downwards and upwards open circle arrows"],u:"1f504",a:"1.0"},{n:["back","back with leftwards arrow above"],u:"1f519",a:"0.6"},{n:["end","end with leftwards arrow above"],u:"1f51a",a:"0.6"},{n:["on","on with exclamation mark with left right arrow above"],u:"1f51b",a:"0.6"},{n:["soon","soon with rightwards arrow above"],u:"1f51c",a:"0.6"},{n:["top","top with upwards arrow above"],u:"1f51d",a:"0.6"},{n:["place of worship"],u:"1f6d0",a:"1.0"},{n:["atom symbol"],u:"269b-fe0f",a:"1.0"},{n:["om","om symbol"],u:"1f549-fe0f",a:"0.7"},{n:["star of david"],u:"2721-fe0f",a:"0.7"},{n:["wheel of dharma"],u:"2638-fe0f",a:"0.7"},{n:["yin yang"],u:"262f-fe0f",a:"0.7"},{n:["latin cross"],u:"271d-fe0f",a:"0.7"},{n:["orthodox cross"],u:"2626-fe0f",a:"1.0"},{n:["star and crescent"],u:"262a-fe0f",a:"0.7"},{n:["peace symbol"],u:"262e-fe0f",a:"1.0"},{n:["menorah with nine branches"],u:"1f54e",a:"1.0"},{n:["six pointed star","six pointed star with middle dot"],u:"1f52f",a:"0.6"},{n:["aries"],u:"2648",a:"0.6"},{n:["taurus"],u:"2649",a:"0.6"},{n:["gemini"],u:"264a",a:"0.6"},{n:["cancer"],u:"264b",a:"0.6"},{n:["leo"],u:"264c",a:"0.6"},{n:["virgo"],u:"264d",a:"0.6"},{n:["libra"],u:"264e",a:"0.6"},{n:["scorpius"],u:"264f",a:"0.6"},{n:["sagittarius"],u:"2650",a:"0.6"},{n:["capricorn"],u:"2651",a:"0.6"},{n:["aquarius"],u:"2652",a:"0.6"},{n:["pisces"],u:"2653",a:"0.6"},{n:["ophiuchus"],u:"26ce",a:"0.6"},{n:["twisted rightwards arrows"],u:"1f500",a:"1.0"},{n:["repeat","clockwise rightwards and leftwards open circle arrows"],u:"1f501",a:"1.0"},{n:["repeat one","clockwise rightwards and leftwards open circle arrows with circled one overlay"],u:"1f502",a:"1.0"},{n:["arrow forward","black right-pointing triangle"],u:"25b6-fe0f",a:"0.6"},{n:["fast forward","black right-pointing double triangle"],u:"23e9",a:"0.6"},{n:["next track button","black right pointing double triangle with vertical bar"],u:"23ed-fe0f",a:"0.7"},{n:["play or pause button","black right pointing triangle with double vertical bar"],u:"23ef-fe0f",a:"1.0"},{n:["arrow backward","black left-pointing triangle"],u:"25c0-fe0f",a:"0.6"},{n:["rewind","black left-pointing double triangle"],u:"23ea",a:"0.6"},{n:["last track button","black left pointing double triangle with vertical bar"],u:"23ee-fe0f",a:"0.7"},{n:["arrow up small","up-pointing small red triangle"],u:"1f53c",a:"0.6"},{n:["arrow double up","black up-pointing double triangle"],u:"23eb",a:"0.6"},{n:["arrow down small","down-pointing small red triangle"],u:"1f53d",a:"0.6"},{n:["arrow double down","black down-pointing double triangle"],u:"23ec",a:"0.6"},{n:["pause button","double vertical bar"],u:"23f8-fe0f",a:"0.7"},{n:["stop button","black square for stop"],u:"23f9-fe0f",a:"0.7"},{n:["record button","black circle for record"],u:"23fa-fe0f",a:"0.7"},{n:["eject","eject button"],u:"23cf-fe0f",a:"1.0"},{n:["cinema"],u:"1f3a6",a:"0.6"},{n:["low brightness","low brightness symbol"],u:"1f505",a:"1.0"},{n:["high brightness","high brightness symbol"],u:"1f506",a:"1.0"},{n:["signal strength","antenna with bars"],u:"1f4f6",a:"0.6"},{n:["vibration mode"],u:"1f4f3",a:"0.6"},{n:["mobile phone off"],u:"1f4f4",a:"0.6"},{n:["female sign"],u:"2640-fe0f",a:"4.0"},{n:["male sign"],u:"2642-fe0f",a:"4.0"},{n:["transgender symbol"],u:"26a7-fe0f",a:"13.0"},{n:["heavy multiplication x"],u:"2716-fe0f",a:"0.6"},{n:["heavy plus sign"],u:"2795",a:"0.6"},{n:["heavy minus sign"],u:"2796",a:"0.6"},{n:["heavy division sign"],u:"2797",a:"0.6"},{n:["heavy equals sign"],u:"1f7f0",a:"14.0"},{n:["infinity"],u:"267e-fe0f",a:"11.0"},{n:["bangbang","double exclamation mark"],u:"203c-fe0f",a:"0.6"},{n:["interrobang","exclamation question mark"],u:"2049-fe0f",a:"0.6"},{n:["question","black question mark ornament"],u:"2753",a:"0.6"},{n:["grey question","white question mark ornament"],u:"2754",a:"0.6"},{n:["grey exclamation","white exclamation mark ornament"],u:"2755",a:"0.6"},{n:["exclamation","heavy exclamation mark","heavy exclamation mark symbol"],u:"2757",a:"0.6"},{n:["wavy dash"],u:"3030-fe0f",a:"0.6"},{n:["currency exchange"],u:"1f4b1",a:"0.6"},{n:["heavy dollar sign"],u:"1f4b2",a:"0.6"},{n:["medical symbol","staff of aesculapius"],u:"2695-fe0f",a:"4.0"},{n:["recycle","black universal recycling symbol"],u:"267b-fe0f",a:"0.6"},{n:["fleur-de-lis","fleur de lis"],u:"269c-fe0f",a:"1.0"},{n:["trident","trident emblem"],u:"1f531",a:"0.6"},{n:["name badge"],u:"1f4db",a:"0.6"},{n:["beginner","japanese symbol for beginner"],u:"1f530",a:"0.6"},{n:["o","heavy large circle"],u:"2b55",a:"0.6"},{n:["white check mark","white heavy check mark"],u:"2705",a:"0.6"},{n:["ballot box with check"],u:"2611-fe0f",a:"0.6"},{n:["heavy check mark"],u:"2714-fe0f",a:"0.6"},{n:["x","cross mark"],u:"274c",a:"0.6"},{n:["negative squared cross mark"],u:"274e",a:"0.6"},{n:["curly loop"],u:"27b0",a:"0.6"},{n:["loop","double curly loop"],u:"27bf",a:"1.0"},{n:["part alternation mark"],u:"303d-fe0f",a:"0.6"},{n:["eight spoked asterisk"],u:"2733-fe0f",a:"0.6"},{n:["eight pointed black star"],u:"2734-fe0f",a:"0.6"},{n:["sparkle"],u:"2747-fe0f",a:"0.6"},{n:["copyright","copyright sign"],u:"00a9-fe0f",a:"0.6"},{n:["registered","registered sign"],u:"00ae-fe0f",a:"0.6"},{n:["tm","trade mark sign"],u:"2122-fe0f",a:"0.6"},{n:["hash","hash key"],u:"0023-fe0f-20e3",a:"0.6"},{n:["keycap: *","keycap star"],u:"002a-fe0f-20e3",a:"2.0"},{n:["zero","keycap 0"],u:"0030-fe0f-20e3",a:"0.6"},{n:["one","keycap 1"],u:"0031-fe0f-20e3",a:"0.6"},{n:["two","keycap 2"],u:"0032-fe0f-20e3",a:"0.6"},{n:["three","keycap 3"],u:"0033-fe0f-20e3",a:"0.6"},{n:["four","keycap 4"],u:"0034-fe0f-20e3",a:"0.6"},{n:["five","keycap 5"],u:"0035-fe0f-20e3",a:"0.6"},{n:["six","keycap 6"],u:"0036-fe0f-20e3",a:"0.6"},{n:["seven","keycap 7"],u:"0037-fe0f-20e3",a:"0.6"},{n:["eight","keycap 8"],u:"0038-fe0f-20e3",a:"0.6"},{n:["nine","keycap 9"],u:"0039-fe0f-20e3",a:"0.6"},{n:["keycap ten"],u:"1f51f",a:"0.6"},{n:["capital abcd","input symbol for latin capital letters"],u:"1f520",a:"0.6"},{n:["abcd","input symbol for latin small letters"],u:"1f521",a:"0.6"},{n:["1234","input symbol for numbers"],u:"1f522",a:"0.6"},{n:["symbols","input symbol for symbols"],u:"1f523",a:"0.6"},{n:["abc","input symbol for latin letters"],u:"1f524",a:"0.6"},{n:["a","negative squared latin capital letter a"],u:"1f170-fe0f",a:"0.6"},{n:["ab","negative squared ab"],u:"1f18e",a:"0.6"},{n:["b","negative squared latin capital letter b"],u:"1f171-fe0f",a:"0.6"},{n:["cl","squared cl"],u:"1f191",a:"0.6"},{n:["cool","squared cool"],u:"1f192",a:"0.6"},{n:["free","squared free"],u:"1f193",a:"0.6"},{n:["information source"],u:"2139-fe0f",a:"0.6"},{n:["id","squared id"],u:"1f194",a:"0.6"},{n:["m","circled latin capital letter m"],u:"24c2-fe0f",a:"0.6"},{n:["new","squared new"],u:"1f195",a:"0.6"},{n:["ng","squared ng"],u:"1f196",a:"0.6"},{n:["o2","negative squared latin capital letter o"],u:"1f17e-fe0f",a:"0.6"},{n:["ok","squared ok"],u:"1f197",a:"0.6"},{n:["parking","negative squared latin capital letter p"],u:"1f17f-fe0f",a:"0.6"},{n:["sos","squared sos"],u:"1f198",a:"0.6"},{n:["up","squared up with exclamation mark"],u:"1f199",a:"0.6"},{n:["vs","squared vs"],u:"1f19a",a:"0.6"},{n:["koko","squared katakana koko"],u:"1f201",a:"0.6"},{n:["sa","squared katakana sa"],u:"1f202-fe0f",a:"0.6"},{n:["u6708","squared cjk unified ideograph-6708"],u:"1f237-fe0f",a:"0.6"},{n:["u6709","squared cjk unified ideograph-6709"],u:"1f236",a:"0.6"},{n:["u6307","squared cjk unified ideograph-6307"],u:"1f22f",a:"0.6"},{n:["ideograph advantage","circled ideograph advantage"],u:"1f250",a:"0.6"},{n:["u5272","squared cjk unified ideograph-5272"],u:"1f239",a:"0.6"},{n:["u7121","squared cjk unified ideograph-7121"],u:"1f21a",a:"0.6"},{n:["u7981","squared cjk unified ideograph-7981"],u:"1f232",a:"0.6"},{n:["accept","circled ideograph accept"],u:"1f251",a:"0.6"},{n:["u7533","squared cjk unified ideograph-7533"],u:"1f238",a:"0.6"},{n:["u5408","squared cjk unified ideograph-5408"],u:"1f234",a:"0.6"},{n:["u7a7a","squared cjk unified ideograph-7a7a"],u:"1f233",a:"0.6"},{n:["congratulations","circled ideograph congratulation"],u:"3297-fe0f",a:"0.6"},{n:["secret","circled ideograph secret"],u:"3299-fe0f",a:"0.6"},{n:["u55b6","squared cjk unified ideograph-55b6"],u:"1f23a",a:"0.6"},{n:["u6e80","squared cjk unified ideograph-6e80"],u:"1f235",a:"0.6"},{n:["red circle","large red circle"],u:"1f534",a:"0.6"},{n:["large orange circle"],u:"1f7e0",a:"12.0"},{n:["large yellow circle"],u:"1f7e1",a:"12.0"},{n:["large green circle"],u:"1f7e2",a:"12.0"},{n:["large blue circle"],u:"1f535",a:"0.6"},{n:["large purple circle"],u:"1f7e3",a:"12.0"},{n:["large brown circle"],u:"1f7e4",a:"12.0"},{n:["black circle","medium black circle"],u:"26ab",a:"0.6"},{n:["white circle","medium white circle"],u:"26aa",a:"0.6"},{n:["large red square"],u:"1f7e5",a:"12.0"},{n:["large orange square"],u:"1f7e7",a:"12.0"},{n:["large yellow square"],u:"1f7e8",a:"12.0"},{n:["large green square"],u:"1f7e9",a:"12.0"},{n:["large blue square"],u:"1f7e6",a:"12.0"},{n:["large purple square"],u:"1f7ea",a:"12.0"},{n:["large brown square"],u:"1f7eb",a:"12.0"},{n:["black large square"],u:"2b1b",a:"0.6"},{n:["white large square"],u:"2b1c",a:"0.6"},{n:["black medium square"],u:"25fc-fe0f",a:"0.6"},{n:["white medium square"],u:"25fb-fe0f",a:"0.6"},{n:["black medium small square"],u:"25fe",a:"0.6"},{n:["white medium small square"],u:"25fd",a:"0.6"},{n:["black small square"],u:"25aa-fe0f",a:"0.6"},{n:["white small square"],u:"25ab-fe0f",a:"0.6"},{n:["large orange diamond"],u:"1f536",a:"0.6"},{n:["large blue diamond"],u:"1f537",a:"0.6"},{n:["small orange diamond"],u:"1f538",a:"0.6"},{n:["small blue diamond"],u:"1f539",a:"0.6"},{n:["small red triangle","up-pointing red triangle"],u:"1f53a",a:"0.6"},{n:["small red triangle down","down-pointing red triangle"],u:"1f53b",a:"0.6"},{n:["diamond shape with a dot inside"],u:"1f4a0",a:"0.6"},{n:["radio button"],u:"1f518",a:"0.6"},{n:["white square button"],u:"1f533",a:"0.6"},{n:["black square button"],u:"1f532",a:"0.6"}],A1=[{n:["chequered flag","checkered flag"],u:"1f3c1",a:"0.6"},{n:["triangular flag on post"],u:"1f6a9",a:"0.6"},{n:["crossed flags"],u:"1f38c",a:"0.6"},{n:["waving black flag"],u:"1f3f4",a:"1.0"},{n:["white flag","waving white flag"],u:"1f3f3-fe0f",a:"0.7"},{n:["rainbow flag","rainbow-flag"],u:"1f3f3-fe0f-200d-1f308",a:"4.0"},{n:["transgender flag"],u:"1f3f3-fe0f-200d-26a7-fe0f",a:"13.0"},{n:["pirate flag"],u:"1f3f4-200d-2620-fe0f",a:"11.0"},{n:["flag-ac","ascension island flag"],u:"1f1e6-1f1e8",a:"2.0"},{n:["flag-ad","andorra flag"],u:"1f1e6-1f1e9",a:"2.0"},{n:["flag-ae","united arab emirates flag"],u:"1f1e6-1f1ea",a:"2.0"},{n:["flag-af","afghanistan flag"],u:"1f1e6-1f1eb",a:"2.0"},{n:["flag-ag","antigua & barbuda flag"],u:"1f1e6-1f1ec",a:"2.0"},{n:["flag-ai","anguilla flag"],u:"1f1e6-1f1ee",a:"2.0"},{n:["flag-al","albania flag"],u:"1f1e6-1f1f1",a:"2.0"},{n:["flag-am","armenia flag"],u:"1f1e6-1f1f2",a:"2.0"},{n:["flag-ao","angola flag"],u:"1f1e6-1f1f4",a:"2.0"},{n:["flag-aq","antarctica flag"],u:"1f1e6-1f1f6",a:"2.0"},{n:["flag-ar","argentina flag"],u:"1f1e6-1f1f7",a:"2.0"},{n:["flag-as","american samoa flag"],u:"1f1e6-1f1f8",a:"2.0"},{n:["flag-at","austria flag"],u:"1f1e6-1f1f9",a:"2.0"},{n:["flag-au","australia flag"],u:"1f1e6-1f1fa",a:"2.0"},{n:["flag-aw","aruba flag"],u:"1f1e6-1f1fc",a:"2.0"},{n:["flag-ax","åland islands flag"],u:"1f1e6-1f1fd",a:"2.0"},{n:["flag-az","azerbaijan flag"],u:"1f1e6-1f1ff",a:"2.0"},{n:["flag-ba","bosnia & herzegovina flag"],u:"1f1e7-1f1e6",a:"2.0"},{n:["flag-bb","barbados flag"],u:"1f1e7-1f1e7",a:"2.0"},{n:["flag-bd","bangladesh flag"],u:"1f1e7-1f1e9",a:"2.0"},{n:["flag-be","belgium flag"],u:"1f1e7-1f1ea",a:"2.0"},{n:["flag-bf","burkina faso flag"],u:"1f1e7-1f1eb",a:"2.0"},{n:["flag-bg","bulgaria flag"],u:"1f1e7-1f1ec",a:"2.0"},{n:["flag-bh","bahrain flag"],u:"1f1e7-1f1ed",a:"2.0"},{n:["flag-bi","burundi flag"],u:"1f1e7-1f1ee",a:"2.0"},{n:["flag-bj","benin flag"],u:"1f1e7-1f1ef",a:"2.0"},{n:["flag-bl","st. barthélemy flag"],u:"1f1e7-1f1f1",a:"2.0"},{n:["flag-bm","bermuda flag"],u:"1f1e7-1f1f2",a:"2.0"},{n:["flag-bn","brunei flag"],u:"1f1e7-1f1f3",a:"2.0"},{n:["flag-bo","bolivia flag"],u:"1f1e7-1f1f4",a:"2.0"},{n:["flag-bq","caribbean netherlands flag"],u:"1f1e7-1f1f6",a:"2.0"},{n:["flag-br","brazil flag"],u:"1f1e7-1f1f7",a:"2.0"},{n:["flag-bs","bahamas flag"],u:"1f1e7-1f1f8",a:"2.0"},{n:["flag-bt","bhutan flag"],u:"1f1e7-1f1f9",a:"2.0"},{n:["flag-bv","bouvet island flag"],u:"1f1e7-1f1fb",a:"2.0"},{n:["flag-bw","botswana flag"],u:"1f1e7-1f1fc",a:"2.0"},{n:["flag-by","belarus flag"],u:"1f1e7-1f1fe",a:"2.0"},{n:["flag-bz","belize flag"],u:"1f1e7-1f1ff",a:"2.0"},{n:["flag-ca","canada flag"],u:"1f1e8-1f1e6",a:"2.0"},{n:["flag-cc","cocos (keeling) islands flag"],u:"1f1e8-1f1e8",a:"2.0"},{n:["flag-cd","congo - kinshasa flag"],u:"1f1e8-1f1e9",a:"2.0"},{n:["flag-cf","central african republic flag"],u:"1f1e8-1f1eb",a:"2.0"},{n:["flag-cg","congo - brazzaville flag"],u:"1f1e8-1f1ec",a:"2.0"},{n:["flag-ch","switzerland flag"],u:"1f1e8-1f1ed",a:"2.0"},{n:["flag-ci","côte d’ivoire flag"],u:"1f1e8-1f1ee",a:"2.0"},{n:["flag-ck","cook islands flag"],u:"1f1e8-1f1f0",a:"2.0"},{n:["flag-cl","chile flag"],u:"1f1e8-1f1f1",a:"2.0"},{n:["flag-cm","cameroon flag"],u:"1f1e8-1f1f2",a:"2.0"},{n:["cn","flag-cn","china flag"],u:"1f1e8-1f1f3",a:"0.6"},{n:["flag-co","colombia flag"],u:"1f1e8-1f1f4",a:"2.0"},{n:["flag-cp","clipperton island flag"],u:"1f1e8-1f1f5",a:"2.0"},{n:["flag-cr","costa rica flag"],u:"1f1e8-1f1f7",a:"2.0"},{n:["flag-cu","cuba flag"],u:"1f1e8-1f1fa",a:"2.0"},{n:["flag-cv","cape verde flag"],u:"1f1e8-1f1fb",a:"2.0"},{n:["flag-cw","curaçao flag"],u:"1f1e8-1f1fc",a:"2.0"},{n:["flag-cx","christmas island flag"],u:"1f1e8-1f1fd",a:"2.0"},{n:["flag-cy","cyprus flag"],u:"1f1e8-1f1fe",a:"2.0"},{n:["flag-cz","czechia flag"],u:"1f1e8-1f1ff",a:"2.0"},{n:["de","flag-de","germany flag"],u:"1f1e9-1f1ea",a:"0.6"},{n:["flag-dg","diego garcia flag"],u:"1f1e9-1f1ec",a:"2.0"},{n:["flag-dj","djibouti flag"],u:"1f1e9-1f1ef",a:"2.0"},{n:["flag-dk","denmark flag"],u:"1f1e9-1f1f0",a:"2.0"},{n:["flag-dm","dominica flag"],u:"1f1e9-1f1f2",a:"2.0"},{n:["flag-do","dominican republic flag"],u:"1f1e9-1f1f4",a:"2.0"},{n:["flag-dz","algeria flag"],u:"1f1e9-1f1ff",a:"2.0"},{n:["flag-ea","ceuta & melilla flag"],u:"1f1ea-1f1e6",a:"2.0"},{n:["flag-ec","ecuador flag"],u:"1f1ea-1f1e8",a:"2.0"},{n:["flag-ee","estonia flag"],u:"1f1ea-1f1ea",a:"2.0"},{n:["flag-eg","egypt flag"],u:"1f1ea-1f1ec",a:"2.0"},{n:["flag-eh","western sahara flag"],u:"1f1ea-1f1ed",a:"2.0"},{n:["flag-er","eritrea flag"],u:"1f1ea-1f1f7",a:"2.0"},{n:["es","flag-es","spain flag"],u:"1f1ea-1f1f8",a:"0.6"},{n:["flag-et","ethiopia flag"],u:"1f1ea-1f1f9",a:"2.0"},{n:["flag-eu","european union flag"],u:"1f1ea-1f1fa",a:"2.0"},{n:["flag-fi","finland flag"],u:"1f1eb-1f1ee",a:"2.0"},{n:["flag-fj","fiji flag"],u:"1f1eb-1f1ef",a:"2.0"},{n:["flag-fk","falkland islands flag"],u:"1f1eb-1f1f0",a:"2.0"},{n:["flag-fm","micronesia flag"],u:"1f1eb-1f1f2",a:"2.0"},{n:["flag-fo","faroe islands flag"],u:"1f1eb-1f1f4",a:"2.0"},{n:["fr","flag-fr","france flag"],u:"1f1eb-1f1f7",a:"0.6"},{n:["flag-ga","gabon flag"],u:"1f1ec-1f1e6",a:"2.0"},{n:["gb","uk","flag-gb","united kingdom flag"],u:"1f1ec-1f1e7",a:"0.6"},{n:["flag-gd","grenada flag"],u:"1f1ec-1f1e9",a:"2.0"},{n:["flag-ge","georgia flag"],u:"1f1ec-1f1ea",a:"2.0"},{n:["flag-gf","french guiana flag"],u:"1f1ec-1f1eb",a:"2.0"},{n:["flag-gg","guernsey flag"],u:"1f1ec-1f1ec",a:"2.0"},{n:["flag-gh","ghana flag"],u:"1f1ec-1f1ed",a:"2.0"},{n:["flag-gi","gibraltar flag"],u:"1f1ec-1f1ee",a:"2.0"},{n:["flag-gl","greenland flag"],u:"1f1ec-1f1f1",a:"2.0"},{n:["flag-gm","gambia flag"],u:"1f1ec-1f1f2",a:"2.0"},{n:["flag-gn","guinea flag"],u:"1f1ec-1f1f3",a:"2.0"},{n:["flag-gp","guadeloupe flag"],u:"1f1ec-1f1f5",a:"2.0"},{n:["flag-gq","equatorial guinea flag"],u:"1f1ec-1f1f6",a:"2.0"},{n:["flag-gr","greece flag"],u:"1f1ec-1f1f7",a:"2.0"},{n:["flag-gs","south georgia & south sandwich islands flag"],u:"1f1ec-1f1f8",a:"2.0"},{n:["flag-gt","guatemala flag"],u:"1f1ec-1f1f9",a:"2.0"},{n:["flag-gu","guam flag"],u:"1f1ec-1f1fa",a:"2.0"},{n:["flag-gw","guinea-bissau flag"],u:"1f1ec-1f1fc",a:"2.0"},{n:["flag-gy","guyana flag"],u:"1f1ec-1f1fe",a:"2.0"},{n:["flag-hk","hong kong sar china flag"],u:"1f1ed-1f1f0",a:"2.0"},{n:["flag-hm","heard & mcdonald islands flag"],u:"1f1ed-1f1f2",a:"2.0"},{n:["flag-hn","honduras flag"],u:"1f1ed-1f1f3",a:"2.0"},{n:["flag-hr","croatia flag"],u:"1f1ed-1f1f7",a:"2.0"},{n:["flag-ht","haiti flag"],u:"1f1ed-1f1f9",a:"2.0"},{n:["flag-hu","hungary flag"],u:"1f1ed-1f1fa",a:"2.0"},{n:["flag-ic","canary islands flag"],u:"1f1ee-1f1e8",a:"2.0"},{n:["flag-id","indonesia flag"],u:"1f1ee-1f1e9",a:"2.0"},{n:["flag-ie","ireland flag"],u:"1f1ee-1f1ea",a:"2.0"},{n:["flag-il","israel flag"],u:"1f1ee-1f1f1",a:"2.0"},{n:["flag-im","isle of man flag"],u:"1f1ee-1f1f2",a:"2.0"},{n:["flag-in","india flag"],u:"1f1ee-1f1f3",a:"2.0"},{n:["flag-io","british indian ocean territory flag"],u:"1f1ee-1f1f4",a:"2.0"},{n:["flag-iq","iraq flag"],u:"1f1ee-1f1f6",a:"2.0"},{n:["flag-ir","iran flag"],u:"1f1ee-1f1f7",a:"2.0"},{n:["flag-is","iceland flag"],u:"1f1ee-1f1f8",a:"2.0"},{n:["it","flag-it","italy flag"],u:"1f1ee-1f1f9",a:"0.6"},{n:["flag-je","jersey flag"],u:"1f1ef-1f1ea",a:"2.0"},{n:["flag-jm","jamaica flag"],u:"1f1ef-1f1f2",a:"2.0"},{n:["flag-jo","jordan flag"],u:"1f1ef-1f1f4",a:"2.0"},{n:["jp","flag-jp","japan flag"],u:"1f1ef-1f1f5",a:"0.6"},{n:["flag-ke","kenya flag"],u:"1f1f0-1f1ea",a:"2.0"},{n:["flag-kg","kyrgyzstan flag"],u:"1f1f0-1f1ec",a:"2.0"},{n:["flag-kh","cambodia flag"],u:"1f1f0-1f1ed",a:"2.0"},{n:["flag-ki","kiribati flag"],u:"1f1f0-1f1ee",a:"2.0"},{n:["flag-km","comoros flag"],u:"1f1f0-1f1f2",a:"2.0"},{n:["flag-kn","st. kitts & nevis flag"],u:"1f1f0-1f1f3",a:"2.0"},{n:["flag-kp","north korea flag"],u:"1f1f0-1f1f5",a:"2.0"},{n:["kr","flag-kr","south korea flag"],u:"1f1f0-1f1f7",a:"0.6"},{n:["flag-kw","kuwait flag"],u:"1f1f0-1f1fc",a:"2.0"},{n:["flag-ky","cayman islands flag"],u:"1f1f0-1f1fe",a:"2.0"},{n:["flag-kz","kazakhstan flag"],u:"1f1f0-1f1ff",a:"2.0"},{n:["flag-la","laos flag"],u:"1f1f1-1f1e6",a:"2.0"},{n:["flag-lb","lebanon flag"],u:"1f1f1-1f1e7",a:"2.0"},{n:["flag-lc","st. lucia flag"],u:"1f1f1-1f1e8",a:"2.0"},{n:["flag-li","liechtenstein flag"],u:"1f1f1-1f1ee",a:"2.0"},{n:["flag-lk","sri lanka flag"],u:"1f1f1-1f1f0",a:"2.0"},{n:["flag-lr","liberia flag"],u:"1f1f1-1f1f7",a:"2.0"},{n:["flag-ls","lesotho flag"],u:"1f1f1-1f1f8",a:"2.0"},{n:["flag-lt","lithuania flag"],u:"1f1f1-1f1f9",a:"2.0"},{n:["flag-lu","luxembourg flag"],u:"1f1f1-1f1fa",a:"2.0"},{n:["flag-lv","latvia flag"],u:"1f1f1-1f1fb",a:"2.0"},{n:["flag-ly","libya flag"],u:"1f1f1-1f1fe",a:"2.0"},{n:["flag-ma","morocco flag"],u:"1f1f2-1f1e6",a:"2.0"},{n:["flag-mc","monaco flag"],u:"1f1f2-1f1e8",a:"2.0"},{n:["flag-md","moldova flag"],u:"1f1f2-1f1e9",a:"2.0"},{n:["flag-me","montenegro flag"],u:"1f1f2-1f1ea",a:"2.0"},{n:["flag-mf","st. martin flag"],u:"1f1f2-1f1eb",a:"2.0"},{n:["flag-mg","madagascar flag"],u:"1f1f2-1f1ec",a:"2.0"},{n:["flag-mh","marshall islands flag"],u:"1f1f2-1f1ed",a:"2.0"},{n:["flag-mk","north macedonia flag"],u:"1f1f2-1f1f0",a:"2.0"},{n:["flag-ml","mali flag"],u:"1f1f2-1f1f1",a:"2.0"},{n:["flag-mm","myanmar (burma) flag"],u:"1f1f2-1f1f2",a:"2.0"},{n:["flag-mn","mongolia flag"],u:"1f1f2-1f1f3",a:"2.0"},{n:["flag-mo","macao sar china flag"],u:"1f1f2-1f1f4",a:"2.0"},{n:["flag-mp","northern mariana islands flag"],u:"1f1f2-1f1f5",a:"2.0"},{n:["flag-mq","martinique flag"],u:"1f1f2-1f1f6",a:"2.0"},{n:["flag-mr","mauritania flag"],u:"1f1f2-1f1f7",a:"2.0"},{n:["flag-ms","montserrat flag"],u:"1f1f2-1f1f8",a:"2.0"},{n:["flag-mt","malta flag"],u:"1f1f2-1f1f9",a:"2.0"},{n:["flag-mu","mauritius flag"],u:"1f1f2-1f1fa",a:"2.0"},{n:["flag-mv","maldives flag"],u:"1f1f2-1f1fb",a:"2.0"},{n:["flag-mw","malawi flag"],u:"1f1f2-1f1fc",a:"2.0"},{n:["flag-mx","mexico flag"],u:"1f1f2-1f1fd",a:"2.0"},{n:["flag-my","malaysia flag"],u:"1f1f2-1f1fe",a:"2.0"},{n:["flag-mz","mozambique flag"],u:"1f1f2-1f1ff",a:"2.0"},{n:["flag-na","namibia flag"],u:"1f1f3-1f1e6",a:"2.0"},{n:["flag-nc","new caledonia flag"],u:"1f1f3-1f1e8",a:"2.0"},{n:["flag-ne","niger flag"],u:"1f1f3-1f1ea",a:"2.0"},{n:["flag-nf","norfolk island flag"],u:"1f1f3-1f1eb",a:"2.0"},{n:["flag-ng","nigeria flag"],u:"1f1f3-1f1ec",a:"2.0"},{n:["flag-ni","nicaragua flag"],u:"1f1f3-1f1ee",a:"2.0"},{n:["flag-nl","netherlands flag"],u:"1f1f3-1f1f1",a:"2.0"},{n:["flag-no","norway flag"],u:"1f1f3-1f1f4",a:"2.0"},{n:["flag-np","nepal flag"],u:"1f1f3-1f1f5",a:"2.0"},{n:["flag-nr","nauru flag"],u:"1f1f3-1f1f7",a:"2.0"},{n:["flag-nu","niue flag"],u:"1f1f3-1f1fa",a:"2.0"},{n:["flag-nz","new zealand flag"],u:"1f1f3-1f1ff",a:"2.0"},{n:["flag-om","oman flag"],u:"1f1f4-1f1f2",a:"2.0"},{n:["flag-pa","panama flag"],u:"1f1f5-1f1e6",a:"2.0"},{n:["flag-pe","peru flag"],u:"1f1f5-1f1ea",a:"2.0"},{n:["flag-pf","french polynesia flag"],u:"1f1f5-1f1eb",a:"2.0"},{n:["flag-pg","papua new guinea flag"],u:"1f1f5-1f1ec",a:"2.0"},{n:["flag-ph","philippines flag"],u:"1f1f5-1f1ed",a:"2.0"},{n:["flag-pk","pakistan flag"],u:"1f1f5-1f1f0",a:"2.0"},{n:["flag-pl","poland flag"],u:"1f1f5-1f1f1",a:"2.0"},{n:["flag-pm","st. pierre & miquelon flag"],u:"1f1f5-1f1f2",a:"2.0"},{n:["flag-pn","pitcairn islands flag"],u:"1f1f5-1f1f3",a:"2.0"},{n:["flag-pr","puerto rico flag"],u:"1f1f5-1f1f7",a:"2.0"},{n:["flag-ps","palestinian territories flag"],u:"1f1f5-1f1f8",a:"2.0"},{n:["flag-pt","portugal flag"],u:"1f1f5-1f1f9",a:"2.0"},{n:["flag-pw","palau flag"],u:"1f1f5-1f1fc",a:"2.0"},{n:["flag-py","paraguay flag"],u:"1f1f5-1f1fe",a:"2.0"},{n:["flag-qa","qatar flag"],u:"1f1f6-1f1e6",a:"2.0"},{n:["flag-re","réunion flag"],u:"1f1f7-1f1ea",a:"2.0"},{n:["flag-ro","romania flag"],u:"1f1f7-1f1f4",a:"2.0"},{n:["flag-rs","serbia flag"],u:"1f1f7-1f1f8",a:"2.0"},{n:["ru","flag-ru","russia flag"],u:"1f1f7-1f1fa",a:"0.6"},{n:["flag-rw","rwanda flag"],u:"1f1f7-1f1fc",a:"2.0"},{n:["flag-sa","saudi arabia flag"],u:"1f1f8-1f1e6",a:"2.0"},{n:["flag-sb","solomon islands flag"],u:"1f1f8-1f1e7",a:"2.0"},{n:["flag-sc","seychelles flag"],u:"1f1f8-1f1e8",a:"2.0"},{n:["flag-sd","sudan flag"],u:"1f1f8-1f1e9",a:"2.0"},{n:["flag-se","sweden flag"],u:"1f1f8-1f1ea",a:"2.0"},{n:["flag-sg","singapore flag"],u:"1f1f8-1f1ec",a:"2.0"},{n:["flag-sh","st. helena flag"],u:"1f1f8-1f1ed",a:"2.0"},{n:["flag-si","slovenia flag"],u:"1f1f8-1f1ee",a:"2.0"},{n:["flag-sj","svalbard & jan mayen flag"],u:"1f1f8-1f1ef",a:"2.0"},{n:["flag-sk","slovakia flag"],u:"1f1f8-1f1f0",a:"2.0"},{n:["flag-sl","sierra leone flag"],u:"1f1f8-1f1f1",a:"2.0"},{n:["flag-sm","san marino flag"],u:"1f1f8-1f1f2",a:"2.0"},{n:["flag-sn","senegal flag"],u:"1f1f8-1f1f3",a:"2.0"},{n:["flag-so","somalia flag"],u:"1f1f8-1f1f4",a:"2.0"},{n:["flag-sr","suriname flag"],u:"1f1f8-1f1f7",a:"2.0"},{n:["flag-ss","south sudan flag"],u:"1f1f8-1f1f8",a:"2.0"},{n:["flag-st","são tomé & príncipe flag"],u:"1f1f8-1f1f9",a:"2.0"},{n:["flag-sv","el salvador flag"],u:"1f1f8-1f1fb",a:"2.0"},{n:["flag-sx","sint maarten flag"],u:"1f1f8-1f1fd",a:"2.0"},{n:["flag-sy","syria flag"],u:"1f1f8-1f1fe",a:"2.0"},{n:["flag-sz","eswatini flag"],u:"1f1f8-1f1ff",a:"2.0"},{n:["flag-ta","tristan da cunha flag"],u:"1f1f9-1f1e6",a:"2.0"},{n:["flag-tc","turks & caicos islands flag"],u:"1f1f9-1f1e8",a:"2.0"},{n:["flag-td","chad flag"],u:"1f1f9-1f1e9",a:"2.0"},{n:["flag-tf","french southern territories flag"],u:"1f1f9-1f1eb",a:"2.0"},{n:["flag-tg","togo flag"],u:"1f1f9-1f1ec",a:"2.0"},{n:["flag-th","thailand flag"],u:"1f1f9-1f1ed",a:"2.0"},{n:["flag-tj","tajikistan flag"],u:"1f1f9-1f1ef",a:"2.0"},{n:["flag-tk","tokelau flag"],u:"1f1f9-1f1f0",a:"2.0"},{n:["flag-tl","timor-leste flag"],u:"1f1f9-1f1f1",a:"2.0"},{n:["flag-tm","turkmenistan flag"],u:"1f1f9-1f1f2",a:"2.0"},{n:["flag-tn","tunisia flag"],u:"1f1f9-1f1f3",a:"2.0"},{n:["flag-to","tonga flag"],u:"1f1f9-1f1f4",a:"2.0"},{n:["flag-tr","turkey flag"],u:"1f1f9-1f1f7",a:"2.0"},{n:["flag-tt","trinidad & tobago flag"],u:"1f1f9-1f1f9",a:"2.0"},{n:["flag-tv","tuvalu flag"],u:"1f1f9-1f1fb",a:"2.0"},{n:["flag-tw","taiwan flag"],u:"1f1f9-1f1fc",a:"2.0"},{n:["flag-tz","tanzania flag"],u:"1f1f9-1f1ff",a:"2.0"},{n:["flag-ua","ukraine flag"],u:"1f1fa-1f1e6",a:"2.0"},{n:["flag-ug","uganda flag"],u:"1f1fa-1f1ec",a:"2.0"},{n:["flag-um","u.s. outlying islands flag"],u:"1f1fa-1f1f2",a:"2.0"},{n:["flag-un","united nations flag"],u:"1f1fa-1f1f3",a:"4.0"},{n:["us","flag-us","united states flag"],u:"1f1fa-1f1f8",a:"0.6"},{n:["flag-uy","uruguay flag"],u:"1f1fa-1f1fe",a:"2.0"},{n:["flag-uz","uzbekistan flag"],u:"1f1fa-1f1ff",a:"2.0"},{n:["flag-va","vatican city flag"],u:"1f1fb-1f1e6",a:"2.0"},{n:["flag-vc","st. vincent & grenadines flag"],u:"1f1fb-1f1e8",a:"2.0"},{n:["flag-ve","venezuela flag"],u:"1f1fb-1f1ea",a:"2.0"},{n:["flag-vg","british virgin islands flag"],u:"1f1fb-1f1ec",a:"2.0"},{n:["flag-vi","u.s. virgin islands flag"],u:"1f1fb-1f1ee",a:"2.0"},{n:["flag-vn","vietnam flag"],u:"1f1fb-1f1f3",a:"2.0"},{n:["flag-vu","vanuatu flag"],u:"1f1fb-1f1fa",a:"2.0"},{n:["flag-wf","wallis & futuna flag"],u:"1f1fc-1f1eb",a:"2.0"},{n:["flag-ws","samoa flag"],u:"1f1fc-1f1f8",a:"2.0"},{n:["flag-xk","kosovo flag"],u:"1f1fd-1f1f0",a:"2.0"},{n:["flag-ye","yemen flag"],u:"1f1fe-1f1ea",a:"2.0"},{n:["flag-yt","mayotte flag"],u:"1f1fe-1f1f9",a:"2.0"},{n:["flag-za","south africa flag"],u:"1f1ff-1f1e6",a:"2.0"},{n:["flag-zm","zambia flag"],u:"1f1ff-1f1f2",a:"2.0"},{n:["flag-zw","zimbabwe flag"],u:"1f1ff-1f1fc",a:"2.0"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",a:"5.0"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",a:"5.0"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",a:"5.0"}],rf={custom:j1,smileys_people:C1,animals_nature:x1,food_drink:S1,travel_places:R1,activities:z1,objects:P1,symbols:T1,flags:A1},bf=[_.NEUTRAL,_.LIGHT,_.MEDIUM_LIGHT,_.MEDIUM,_.MEDIUM_DARK,_.DARK],M1=Object.entries(_).reduce(function(f,e){var a=e[0],n=e[1];return f[n]=a,f},{}),D1=bf.reduce(function(f,e){var a;return Object.assign(f,(a={},a[e]=e,a))},{}),A;(function(f){f.name="n",f.unified="u",f.variations="v",f.added_in="a",f.imgUrl="imgUrl"})(A||(A={}));var ef={};setTimeout(function(){kf.reduce(function(f,e){return ke(e),f},ef)});function ke(f){var e=uf(f).flat().join("").toLowerCase().replace(/[^a-zA-Z\d]/g,"").split("");e.forEach(function(a){var n;ef[a]=(n=ef[a])!=null?n:{},ef[a][C(f)]=f})}function uf(f){var e;return(e=f[A.name])!=null?e:[]}function L1(f){return parseFloat(f[A.added_in])}function Tf(f){return f?uf(f)[0]:""}function Of(f){var e=f.split("-"),a=e.splice(1,1),n=a[0];return D1[n]?e.join("-"):f}function C(f,e){var a,n=f[A.unified];return!e||!Y(f)?n:(a=O1(f,e))!=null?a:n}function _1(f){var e;return(e=rf==null?void 0:rf[f])!=null?e:[]}function we(f,e){return""+E1(e)+f+".png"}function lf(f){var e;return(e=f[A.variations])!=null?e:[]}function Y(f){return lf(f).length>0}function O1(f,e){return e?lf(f).find(function(a){return a.includes(e)}):C(f)}function of(f){if(f){if($[f])return $[f];var e=Of(f);return $[e]}}var kf=Object.values(rf).flat();function F1(f){rf[m.CUSTOM].length=0,f.forEach(function(e){var a=B1(e);rf[m.CUSTOM].push(a),!$[a[A.unified]]&&(kf.push(a),$[a[A.unified]]=a,ke(a))})}function B1(f){var e;return e={},e[A.name]=f.names.map(function(a){return a.toLowerCase()}),e[A.unified]=f.id.toLowerCase(),e[A.added_in]="0",e[A.imgUrl]=f.imgUrl,e}var $={};setTimeout(function(){kf.reduce(function(f,e){return f[C(e)]=e,Y(e)&&lf(e).forEach(function(a){f[a]=e}),f},$)});function I1(f){var e=f.split("-"),a=e[1];return bf.includes(a)?a:null}var U1=["2640-fe0f","2642-fe0f","2695-fe0f"],mf="Search",N1="No results found",ye=" found. Use up and down arrow keys to navigate.",V1="1 result"+ye,q1="%n results"+ye;function Xf(f){var e,a;f===void 0&&(f={});var n=Ee(),r=Object.assign(n.previewConfig,(e=f.previewConfig)!=null?e:{}),i=Object.assign(n,f),t=h1(f.categories,{suggestionMode:i.suggestedEmojisMode});F1((a=i.customEmojis)!=null?a:[]);var d=i.searchDisabled?K.PREVIEW:i.skinTonePickerLocation;return B({},i,{categories:t,previewConfig:r,skinTonePickerLocation:d})}function Ee(){return{autoFocusSearch:!0,categories:he(),customEmojis:[],defaultSkinTone:_.NEUTRAL,emojiStyle:S.APPLE,emojiVersion:null,getEmojiUrl:we,height:450,lazyLoadEmojis:!1,previewConfig:B({},H1),searchDisabled:!1,searchPlaceHolder:mf,searchPlaceholder:mf,skinTonePickerLocation:K.SEARCH,skinTonesDisabled:!1,suggestedEmojisMode:af.FREQUENT,theme:nf.LIGHT,unicodeToHide:new Set(U1),width:350}}var H1={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},$1=["children"],je=o.createContext(Ee());function G1(f){var e=f.children,a=s1(f,$1),n=K1(a);return o.createElement(je.Provider,{value:n},e)}function K1(f){var e,a=o.useState(function(){return Xf(f)}),n=a[0],r=a[1];return o.useEffect(function(){var i,t;((i=f.customEmojis)==null?void 0:i.length)!==((t=n.customEmojis)==null?void 0:t.length)&&r(Xf(f))},[(e=f.customEmojis)==null?void 0:e.length]),n}function E(){return o.useContext(je)}var Ce=gf.createContext({});function W1(){var f=gf.useContext(Ce);return f}function Y1(f){var e=gf.useRef({onEmojiClick:f.onEmojiClick||fe});return gf.useEffect(function(){e.current.onEmojiClick=f.onEmojiClick||fe},[f.onEmojiClick]),e}function fe(){}function J1(){var f,e=E(),a=e.searchPlaceHolder,n=e.searchPlaceholder;return(f=[a,n].find(function(r){return r!==mf}))!=null?f:mf}function Z1(){var f=E(),e=f.defaultSkinTone;return e}function xe(){var f=E(),e=f.skinTonesDisabled;return e}function J(){var f=E(),e=f.emojiStyle;return e}function Q1(){var f=E(),e=f.autoFocusSearch;return e}function Se(){var f=E(),e=f.categories;return e}function X1(){var f=E(),e=f.customEmojis;return e}function fa(){var f=W1(),e=f.current;return e.onEmojiClick||function(){}}function Re(){var f=E(),e=f.previewConfig;return e}function ea(){var f=E(),e=f.theme;return e}function aa(){var f=E(),e=f.suggestedEmojisMode;return e}function na(){var f=E(),e=f.lazyLoadEmojis;return e}function ra(){var f=E(),e=f.height,a=f.width;return{height:ee(e),width:ee(a)}}function ia(){var f=E(),e=f.emojiVersion;return e}function ze(){var f=E(),e=f.searchDisabled;return e}function Pe(){var f=E(),e=f.skinTonePickerLocation;return e}function oa(){var f=E(),e=f.unicodeToHide;return e}function Z(){var f=E(),e=f.getEmojiUrl;return e}function ee(f){return typeof f=="number"?f+"px":f}function ta(f){var e=f>0,a=f>1;return e?a?q1.replace("%n",f.toString()):V1:N1}function ae(f,e){e===void 0&&(e=0);var a=o.useState(f),n=a[0],r=a[1],i=o.useRef(null);function t(d){return new Promise(function(c){var l;i.current&&clearTimeout(i.current),i.current=(l=window)==null?void 0:l.setTimeout(function(){r(d),c(d)},e)})}return[n,t]}function da(){var f=oa();return function(e){return f.has(e)}}function Te(){var f=o.useRef({}),e=ia();return o.useMemo(function(){var a=parseFloat(""+e);return!e||Number.isNaN(a)?f.current:kf.reduce(function(n,r){return ua(r,a)&&(n[C(r)]=!0),n},f.current)},[e])}function ca(){var f=Te(),e=da();return function(n){var r=Of(C(n));return!!(f[r]||e(r))}}function ua(f,e){return L1(f)>e}function la(f){o.useEffect(function(){f(!0)},[f])}function sa(f){var e=f.children,a=Te(),n=Z1(),r=o.useRef(ef),i=o.useRef(!1),t=o.useRef(!1),d=o.useRef(a),c=ae(Date.now(),200),l=ae("",100),u=o.useState(!1),s=o.useState(n),g=o.useState(null),p=o.useState(new Set),y=o.useState(null),v=o.useState(!1),w=v[0],h=v[1];return la(h),o.createElement(F.Provider,{value:{activeCategoryState:g,activeSkinTone:s,disallowClickRef:i,disallowMouseRef:t,disallowedEmojisRef:d,emojiVariationPickerState:y,emojisThatFailedToLoadState:p,filterRef:r,isPastInitialLoad:w,searchTerm:l,skinToneFanOpenState:u,suggestedUpdateState:c}},e)}var F=o.createContext({activeCategoryState:[null,function(){}],activeSkinTone:[_.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise(function(){})}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}]});function Ff(){var f=o.useContext(F),e=f.filterRef;return e}function ga(){var f=o.useContext(F),e=f.disallowClickRef;return e}function Bf(){var f=o.useContext(F),e=f.disallowMouseRef;return e}function wf(){var f=o.useContext(F),e=f.searchTerm;return e}function If(){var f=o.useContext(F),e=f.activeSkinTone;return e}function Ae(){var f=o.useContext(F),e=f.emojisThatFailedToLoadState;return e}function ba(){var f=o.useContext(F),e=f.isPastInitialLoad;return e}function Q(){var f=o.useContext(F),e=f.emojiVariationPickerState;return e}function sf(){var f=o.useContext(F),e=f.skinToneFanOpenState;return e}function Me(){var f=o.useContext(F),e=f.suggestedUpdateState,a=e[0],n=e[1];return[a,function(){n(Date.now())}]}function ma(){var f=Bf();return function(){f.current=!0}}function De(){var f=Bf();return function(){f.current=!1}}function Le(){var f=Bf();return function(){return f.current}}function pa(){var f=M(),e=De(),a=Le();o.useEffect(function(){var n=f.current;n==null||n.addEventListener("mousemove",r,{passive:!0});function r(){a()&&e()}return function(){n==null||n.removeEventListener("mousemove",r)}},[f,e,a])}function _e(f,e){if(!f||!e)return 0;var a=f.getBoundingClientRect().width,n=e.getBoundingClientRect().width;return Math.floor(a/n)}function Oe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().width,n=e.getBoundingClientRect().left,r=f.getBoundingClientRect().left;return Math.floor((n-r)/a)}function Fe(f,e){if(!f||!e)return 0;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top;return Math.round((n-r)/a)}function ha(f,e){if(!f||!e)return!1;var a=e.getBoundingClientRect().height,n=e.getBoundingClientRect().top,r=f.getBoundingClientRect().top,i=f.getBoundingClientRect().height;return Math.round(n-r+a)f.length?[]:Uf(f,n,a)}function Be(f,e,a,n){var r=Uf(f,e,a);return r[n]||r[r.length-1]||null}function ka(f,e,a,n){var r=va(f,e,a);return r[n]||r[r.length-1]||null}function wa(f,e,a,n){var r=Uf(f,e-1,a);return r[n]||r[r.length-1]||null}function ya(f,e){if(!f||!e.length)return null;var a=f.getBoundingClientRect().top,n=f.getBoundingClientRect().bottom,r=e.find(function(i){var t=i.getBoundingClientRect().top,d=i.getBoundingClientRect().bottom;return t>=a&&t<=n||d>=a&&d<=n});return r||null}function Ea(f){return!!f.nextElementSibling}var pf="button"+x(b.emoji),ja=[pf,x(b.visible),":not("+x(b.hidden)+")"].join("");function O(f){var e;return(e=f==null?void 0:f.closest(pf))!=null?e:null}function Nf(f){var e=qe(f),a=qf(f);if(!e)return[];var n=of(a!=null?a:e);return n?[n,a]:[]}function Ca(f){var e;return!!(f!=null&&f.matches(pf)||!(f==null||(e=f.parentElement)==null)&&e.matches(pf))}function ne(f){var e;return(e=f==null?void 0:f.clientHeight)!=null?e:0}function Ie(f){if(!f)return 0;var e=O(f),a=N(e),n=Vf(a);return re(e)+re(a)+n}function Vf(f){var e,a;if(!f)return 0;var n=f.querySelector(x(b.categoryContent));return((e=f==null?void 0:f.clientHeight)!=null?e:0)-((a=n==null?void 0:n.clientHeight)!=null?a:0)}function xa(f){return f?Ne(f)0?[]:_1(e);p.length>0&&n.current++;var y=0,v=p.map(function(w){var h=C(w,l),P=r(w),D=P.failedToLoad,L=P.filteredOut,I=P.hidden,X=u(w);return(I||X)&&y++,X?null:o.createElement(Wf,{showVariations:g,key:h,emoji:w,unified:h,hidden:D,hiddenOnSearch:L,emojiStyle:t,lazyLoad:i,getEmojiUrl:s})});return o.createElement(n1,{categoryConfig:a,hidden:y===v.length},v)}function xf(f){var e=Gf(f);R(e),jf(e)}function en(f){var e=Gf(f);R(e),e==null||e.click()}function an(f){R($e(f))}function nn(f){if(f){var e=Ge(f);if(!e)return xf(Ef(f));R(e),jf(e)}}function rn(f){if(f){var e=$f(f);if(!e)return an(yf(f));R(e),jf(e)}}function on(f,e){if(f){var a=dn(f);if(!a)return e();R(a),jf(a)}}function tn(f){if(f){var e=cn(f);return R(e)}}function dn(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(r===0){var t=yf(a);return t?Be(W(t),-1,i,n):null}return wa(W(e),r,i,n)}function cn(f){if(!f)return null;var e=Ke(f),a=N(e),n=Oe(e,f),r=Fe(e,f),i=_e(e,f);if(!ha(e,f)){var t=Ef(a);return t?Be(W(t),0,i,n):null}var d=ka(W(e),r,i,n);return d}var un=".EmojiPickerReact .epr-emoji-variation-picker{align-items:center;background:var(--epr-emoji-variation-picker-bg-color);border:1px solid var(--epr-picker-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.2);display:flex;height:0;height:var(--epr-emoji-variation-picker-height);justify-content:space-around;left:15px;opacity:0;padding:5px;pointer-events:none;position:absolute;right:15px;top:0;top:-100%;transform:scale(.9);transition:transform .1s ease-out,opacity .2s ease-out;visibility:hidden;z-index:var(--epr-skin-variation-picker-z-index)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up{transform:scale(.9);transform-origin:center 0}.EmojiPickerReact .epr-emoji-variation-picker.visible{opacity:1;pointer-events:all;transform:scale(1);visibility:visible}.EmojiPickerReact .epr-emoji-variation-picker .EmojiPickerReact .epr-emoji-variation-picker button.epr-emoji:hover{background:none}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='15' xml:space='preserve'%3E%3Cg stroke-miterlimit='10'%3E%3Cpath fill='%23FFF' stroke='%23E8E7E7' d='m1.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L23.66-.43'/%3E%3Cpath fill='%23010202' stroke='%23151617' d='m26.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L48.66-.43'/%3E%3C/g%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:50px 15px;content:\"\";height:15px;position:absolute;top:-10px;width:25px}.EmojiPickerReact.epr-dark-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{top:100%;transform:translateX(-18px)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up .epr-emoji-pointer{top:0;transform:rotate(180deg) translateY(100%) translateX(18px)}";z(un);var G;(function(f){f[f.Up=0]="Up",f[f.Down=1]="Down"})(G||(G={}));function ln(){var f=vf(),e=u1(),a=Q(),n=a[0],r=J(),i=gn(e),t=i.getTop,d=i.getMenuDirection,c=me(),l=sn(e),u=Z(),s=O(f.current),g=n&&s&&Y(n)&&s.classList.contains(b.emojiHasVariations);o.useEffect(function(){g&&xf(e.current)},[e,g,f]);var p,y;return!g&&f.current?c(null):(p=t(),y=l()),o.createElement("div",{ref:e,className:j(b.variationPicker,{visible:g,"pointing-up":d()===G.Down}),style:{top:p}},g&&n?[C(n)].concat(lf(n)).slice(0,6).map(function(v){return o.createElement(Wf,{key:v,emoji:n,unified:v,emojiStyle:r,showVariations:!1,getEmojiUrl:u})}):null,o.createElement("div",{className:"epr-emoji-pointer",style:y}))}function sn(f){var e=vf();return function(){var n={};if(!f.current)return n;if(e.current){var r=O(e.current),i=Sa(r);if(!r)return n;n.left=i+(r==null?void 0:r.clientWidth)/2}return n}}function gn(f){var e=vf(),a=M(),n=G.Up;return{getMenuDirection:r,getTop:i};function r(){return n}function i(){n=G.Up;var t=0;if(!f.current)return 0;var d=ne(f.current);if(e.current){var c,l=a.current,u=O(e.current),s=ne(u);t=Ie(u);var g=(c=l==null?void 0:l.scrollTop)!=null?c:0;g>t-d&&(n=G.Down,t+=s+d)}return t-d}}var bn=".EmojiPickerReact .epr-body{flex:1;overflow-x:hidden;overflow-y:scroll;position:relative}";z(bn);function mn(){var f=M();return Da(f),Aa(f),pa(),o.createElement("div",{className:b.scrollBody,ref:f},o.createElement(ln,null),o.createElement(Xa,null))}function pn(f,e){var a=M(),n=Le(),r=De();o.useEffect(function(){if(!f)return;var i=a.current;i==null||i.addEventListener("keydown",c,{passive:!0}),i==null||i.addEventListener("mouseover",l,!0),i==null||i.addEventListener("focus",t,!0),i==null||i.addEventListener("mouseout",d,{passive:!0}),i==null||i.addEventListener("blur",d,!0);function t(u){var s=O(u.target);if(!s)return d();var g=qf(s),p=qe(s);if(!g||!p)return d();e({unified:g,originalUnified:p})}function d(u){if(u){var s=u.relatedTarget;if(!O(s))return e(null)}e(null)}function c(u){u.key==="Escape"&&e(null)}function l(u){if(!n()){var s=O(u.target);s&&R(s)}}return function(){i==null||i.removeEventListener("mouseover",l),i==null||i.removeEventListener("mouseout",d),i==null||i.removeEventListener("focus",t,!0),i==null||i.removeEventListener("blur",d,!0),i==null||i.removeEventListener("keydown",c)}},[a,f,e,n,r])}function Yf(){var f=Pe();return f===K.SEARCH}function r1(){var f=Pe();return f===K.PREVIEW}var hn=".EmojiPickerReact .Flex{display:flex}.EmojiPickerReact .Flex.FlexRow{flex-direction:row}.EmojiPickerReact .Flex.FlexColumn{flex-direction:column}";z(hn);var Mf;(function(f){f.ROW="FlexRow",f.COLUMN="FlexColumn"})(Mf||(Mf={}));function i1(f){var e=f.children,a=f.className,n=f.style,r=n===void 0?{}:n,i=f.direction,t=i===void 0?Mf.ROW:i;return o.createElement("div",{style:B({},r),className:j("Flex",a,t)},e)}function vn(f){var e=f.className,a=f.style,n=a===void 0?{}:a;return o.createElement("div",{style:B({flex:1},n),className:j(e)})}var kn=".EmojiPickerReact .epr-preview{align-items:center;border-top:1px solid var(--epr-preview-border-color);height:var(--epr-preview-height);padding:0 var(--epr-horizontal-padding);position:relative;z-index:1;z-index:var(--epr-preview-z-index)}.EmojiPickerReact .epr-preview .epr-preview-emoji-label{color:var(--epr-preview-text-color);font-size:var(--epr-preview-text-size);padding:var(--epr-preview-text-padding);text-transform:capitalize}";z(kn);function wn(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"absolute"}),className:a},e)}function Sf(f){var e=f.children,a=f.className,n=f.style;return o.createElement("div",{style:B({},n,{position:"relative"}),className:a},e)}var yn='.EmojiPickerReact .epr-skin-tones{--epr-skin-tone-size:15px;align-items:center;display:flex;justify-content:flex-end;padding:10px 0;transition:all .3s ease-in-out}.EmojiPickerReact .epr-skin-tones.epr-vertical{align-items:flex-end;border:1px solid var(--epr-bg-color);border-radius:6px;flex-direction:column;padding:5px}.EmojiPickerReact .epr-skin-tones.epr-vertical.epr-open{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:var(--epr-skin-tone-picker-menu-color);border:1px solid var(--epr-picker-border-color)}.EmojiPickerReact .epr-skin-tone-select{height:var(--epr-skin-tone-size);position:relative;width:var(--epr-skin-tone-size)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-tone{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.EmojiPickerReact .epr-skin-tones:not(.epr-open) .epr-tone{opacity:0;z-index:0}.EmojiPickerReact .epr-skin-tones .epr-tone{border-radius:4px;box-shadow:0 0 0 0 var(--epr-active-skin-hover-color);cursor:pointer;display:block;height:var(--epr-skin-tone-size);position:absolute;right:0;transition:transform .3s ease-in-out,opacity .5s ease-in-out;width:var(--epr-skin-tone-size);z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone:hover{box-shadow:0 0 0 3px var(--epr-active-skin-hover-color)}.EmojiPickerReact .epr-skin-tones .epr-tone:focus{box-shadow:0 0 0 3px var(--epr-focus-bg-color)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-skin-tone-select .epr-tone.epr-active:after{border:1px solid var(--epr-active-skin-tone-indicator-border-color);border-radius:5px;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-active{opacity:1;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-neutral{background-color:#ffd225}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fb{background-color:#ffdfbd}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fc{background-color:#e9c197}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fd{background-color:#c88e62}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fe{background-color:#a86637}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3ff{background-color:#60463a}';z(yn);var ff=28;function En(){return o.createElement(Sf,{style:{height:ff}},o.createElement(wn,{style:{bottom:0,right:0}},o.createElement(o1,{direction:tf.VERTICAL})))}function o1(f){var e,a=f.direction,n=a===void 0?tf.HORIZONTAL:a,r=Df(),i=xe(),t=sf(),d=t[0],c=t[1],l=If(),u=l[0],s=l[1],g=q(),p=H();if(i)return null;var y=ff*bf.length+"px",v=d?y:ff+"px",w=n===tf.VERTICAL;return o.createElement(Sf,{className:j("epr-skin-tones",n,(e={},e[b.open]=d,e)),style:w?{flexBasis:v,height:v}:{flexBasis:v}},o.createElement("div",{className:"epr-skin-tone-select",ref:r},bf.map(function(h,P){var D,L=h===u;return o.createElement(Cf,{style:{transform:j(w?"translateY(-"+P*(d?ff:0)+"px)":"translateX(-"+P*(d?ff:0)+"px)",d&&L&&"scale(1.3)")},onClick:function(){d?(s(h),p()):c(!0),g()},key:h,className:j("epr-tone-"+h,"epr-tone",(D={},D[b.active]=L,D)),tabIndex:d?0:-1,"aria-pressed":L,"aria-label":"Skin tone "+M1[h]})})))}var tf;(function(f){f.VERTICAL="epr-vertical",f.HORIZONTAL="epr-horizontal"})(tf||(tf={}));function jn(){var f=Re(),e=r1();return f.showPreview?o.createElement(i1,{className:"epr-preview"},o.createElement(Cn,null),o.createElement(vn,null),e?o.createElement(En,null):null):null}function Cn(){var f,e=Re(),a=o.useState(null),n=a[0],r=a[1],i=J(),t=Q(),d=t[0],c=Z();pn(e.showPreview,r);var l=of((f=n==null?void 0:n.unified)!=null?f:n==null?void 0:n.originalUnified),u=l!=null&&n!=null;return o.createElement(s,null);function s(){var g=d!=null?d:of(e.defaultEmoji);if(!g)return null;var p=d?Tf(d):e.defaultCaption;return o.createElement(o.Fragment,null,o.createElement("div",null,u?o.createElement(hf,{unified:n==null?void 0:n.unified,emoji:l,emojiStyle:i,size:45,getEmojiUrl:c}):g?o.createElement(hf,{unified:C(g),emoji:g,emojiStyle:i,size:45,getEmojiUrl:c}):null),u?o.createElement("div",{className:"epr-preview-emoji-label"},Tf(l)):o.createElement("div",{className:"epr-preview-emoji-label"},p))}}var xn=".EmojiPickerReact .epr-category-nav{display:flex;flex-direction:row;justify-content:space-around;padding:var(--epr-header-padding)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-size:calc(var(--epr-category-navigation-button-size)*10);display:inline-block;height:var(--epr-category-navigation-button-size);outline:none;position:relative;transition:opacity .2s ease-in-out;width:var(--epr-category-navigation-button-size)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{border:2px solid var(--epr-category-icon-active-color);border-radius:50%;bottom:-2px;content:\"\";left:-2px;position:absolute;right:-2px;top:-2px}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}.EmojiPickerReact.epr-search-active .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' xml:space='preserve'%3E%3Cg fill='%233371B7' stroke='%233371B7' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 29.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 23c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3Cpath d='M14.6 31.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 34.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M64.1 33.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M65.5 23.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%233371B7' cx='66.2' cy='30.9' rx='.9' ry='1'/%3E%3Cellipse fill='%233371B7' cx='73.8' cy='30.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath d='M96.4 30c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 28.6v.1c-.9.1-2.9.1-4.6-1.1-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.1-.1-.2.5-.1 1.2-.2 2-.1 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.2.3.6.4.9zM84 32.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath stroke-linecap='round' d='m116.3 26.8-1.4 2-.8-.8-.6-.6v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.6-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 27.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 34.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%233371B7'/%3E%3Cg fill='%233371B7'%3E%3Cpath d='M170.8 23.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 27.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6 0-.4-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M186.2 23.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%233371B7' cx='186' cy='28.9' r='.7'/%3E%3Ccircle fill='%233371B7' cx='194' cy='26.7' r='.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m186 33.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%233371B7' stroke='%233371B7' stroke-width='.25' stroke-miterlimit='10' d='M156 24.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M48.1 23.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 28.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m43.5 30.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 32.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 33.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%233371B7' cx='51.6' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='25' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='27.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='54.3' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='50.9' cy='25' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%233371B7' d='M24.2 31v-7.6c.1.1.8.9 2.8 3.1 2.5-1.6 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m21.2 30 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 30l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%233371B7' d='m29.5 32.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m32.4 32.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%233371B7' cx='27.6' cy='29.7' r='.7'/%3E%3Ccircle fill='%233371B7' cx='32.4' cy='29.7' r='.7'/%3E%3Cg fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 49.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm1.8 3.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 54.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 43c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M64.1 53.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M65.5 43.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%23C0C0BF' cx='66.2' cy='50.9' rx='.9' ry='1'/%3E%3Cellipse fill='%23C0C0BF' cx='73.8' cy='50.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath d='M96.4 50c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 48.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.4.3.8.4 1.1zM84 52.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23C0C0BF'%3E%3Cpath stroke-linecap='round' d='m116.3 46.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 47.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 54.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%23C0C0BF'/%3E%3Cg fill='%23C0C0BF'%3E%3Cpath d='M170.8 43.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 47.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M186.2 43.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23C0C0BF' cx='186' cy='48.9' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='194' cy='46.7' r='.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m186 53.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.25' stroke-miterlimit='10' d='M156 44.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M48.1 43.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 48.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m43.5 50.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 52.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 53.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23C0C0BF' cx='51.6' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='45' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='47.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='54.3' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='50.9' cy='45' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M24.2 51v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m21.2 50 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 50l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='m29.5 52.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m32.4 52.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23C0C0BF' cx='27.6' cy='49.7' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='32.4' cy='49.7' r='.7'/%3E%3Cg fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M14.6 71.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 74.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm2.8-4.6c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm-5.6 1.5c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 63c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M64.1 73.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4V76c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M65.5 63.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%236AA9DD' cx='66.2' cy='70.9' r='.9'/%3E%3Ccircle fill='%236AA9DD' cx='73.8' cy='70.9' r='.9'/%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath d='M96.4 70c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 68.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 72.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.9-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath stroke-linecap='round' d='m116.3 66.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 67.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 74.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%236AA9DD'/%3E%3Cg fill='%236AA9DD'%3E%3Cpath d='M170.8 63.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 67.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.7-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M186.2 63.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%236AA9DD' cx='186' cy='68.9' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='194' cy='66.7' r='.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m186 73.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.25' stroke-miterlimit='10' d='M156 64.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M48.1 63.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 68.8c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m43.5 70.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2-.1l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 72.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 73.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%236AA9DD' cx='51.6' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='65' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='67.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='54.3' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='50.9' cy='65' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M24.2 71v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m21.2 70.1 5.4 1.2m-5.4 2.8 5.4-1.2m12.2-2.8-5.4 1.2m5.4 2.8-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%236AA9DD' d='m29.5 72.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5.2-.1.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m32.4 72.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%236AA9DD' cx='27.6' cy='69.7' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='32.4' cy='69.7' r='.7'/%3E%3Cg fill='%23868686' stroke='%23868686' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 9.5c.6 0 1.1-.5 1.1-1.2 0-.6-.5-1.1-1.1-1.1-.6 0-1.2.5-1.2 1.1s.6 1.2 1.2 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zM7.2 9.5c.6 0 1.2-.5 1.2-1.2 0-.6-.5-1.1-1.2-1.1-.6 0-1.1.5-1.1 1.1s.5 1.2 1.1 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zm7.4 3.3c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.2.1-.3 0-.4zM10 14.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2z'/%3E%3Cpath d='M10 3c-3.8 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2S6.6 3.8 10 3.8s6.2 2.8 6.2 6.2-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M64.1 13.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4 0h2.4c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.2.2-.4.4-.4zm-9.8-5h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23868686' d='M65.5 3.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7V5.5c0-1.1.8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%23868686' cx='66.2' cy='10.9' r='.9'/%3E%3Ccircle fill='%23868686' cx='73.8' cy='10.9' r='.9'/%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath d='M96.4 10c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 8.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 12.1V12c.9-.2 2.9-.4 4.7.6 1.1.6 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8-1.1-.6-1.9-1.6-2.4-2.5-.3-.4-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath stroke-linecap='round' d='m116.3 6.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 7.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 14.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9M126.8 3.5h10.8v2.7h-10.8V3.5z' fill='none' stroke='%23868686'/%3E%3Cg fill='%23868686'%3E%3Cpath d='M170.8 3.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.3c-.2 3.8 2.6 7.1 6.3 7.4 3.9.4 7.3-2.6 7.6-6.5.3-3.6-2.5-6.9-6.1-7.3z'/%3E%3Cpath d='M170.3 7.4c0-.3-.3-.6-.6-.6s-.7.3-.7.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M186.2 3.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7V6.1c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23868686' cx='186' cy='8.9' r='.7'/%3E%3Ccircle fill='%23868686' cx='194' cy='6.7' r='.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m186 13.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23868686' stroke='%23868686' stroke-width='.25' stroke-miterlimit='10' d='M156 4.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.1s-2.4-.1-3.8-.6c-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4V4.7c-.3-.2-.4-.3-.5-.4zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1V4.7c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23868686' d='M48.1 3.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 8.7c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m43.5 10.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.1.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.1 1.2-.1l.2-.1c.3-.2.8-.1 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.4.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 12.1c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 13.3c0 .5.6 2.4 1.3 2.6 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23868686' cx='51.6' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='4.9' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='7.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='54.3' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='50.9' cy='4.9' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23868686' d='M24.2 11V3.5c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.7-.6-1.7-.6-2.6z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m21.2 10 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 10l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='m29.5 12.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.6 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m32.4 12.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23868686' cx='27.6' cy='9.7' r='.7'/%3E%3Ccircle fill='%23868686' cx='32.4' cy='9.7' r='.7'/%3E%3C/svg%3E\");background-position:0 0}.EmojiPickerReact.epr-dark-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}aside.EmojiPickerReact.epr-main:has(input:-moz-placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}aside.EmojiPickerReact.epr-main:has(input:placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}@media (prefers-color-scheme:dark){.EmojiPickerReact.epr-auto-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-auto-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}}.EmojiPickerReact button.epr-cat-btn.epr-icn-suggested{background-position-x:calc(var(--epr-category-navigation-button-size)*-8)}.EmojiPickerReact button.epr-cat-btn.epr-icn-custom{background-position-x:calc(var(--epr-category-navigation-button-size)*-9)}.EmojiPickerReact button.epr-cat-btn.epr-icn-activities{background-position-x:calc(var(--epr-category-navigation-button-size)*-4)}.EmojiPickerReact button.epr-cat-btn.epr-icn-animals_nature{background-position-x:calc(var(--epr-category-navigation-button-size)*-1)}.EmojiPickerReact button.epr-cat-btn.epr-icn-flags{background-position-x:calc(var(--epr-category-navigation-button-size)*-7)}.EmojiPickerReact button.epr-cat-btn.epr-icn-food_drink{background-position-x:calc(var(--epr-category-navigation-button-size)*-2)}.EmojiPickerReact button.epr-cat-btn.epr-icn-objects{background-position-x:calc(var(--epr-category-navigation-button-size)*-5)}.EmojiPickerReact button.epr-cat-btn.epr-icn-smileys_people{background-position-x:0}.EmojiPickerReact button.epr-cat-btn.epr-icn-symbols{background-position-x:calc(var(--epr-category-navigation-button-size)*-6)}.EmojiPickerReact button.epr-cat-btn.epr-icn-travel_places{background-position-x:calc(var(--epr-category-navigation-button-size)*-3)}";z(xn);function Sn(f){var e;return(e=f==null?void 0:f.getAttribute("data-name"))!=null?e:null}function Rn(f){var e=M();o.useEffect(function(){var a=new Map,n=e.current,r=new IntersectionObserver(function(i){if(n){for(var t=b1(i),d;!(d=t()).done;){var c=d.value,l=Sn(c.target);a.set(l,c.intersectionRatio)}var u=Array.from(a),s=u[u.length-1];if(s[1]==1)return f(s[0]);for(var g=0,p=u;g_[p]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var ee={exports:{}};(function(g,h){(function(a){a(Y)})(function(a){a.defineMIME("text/x-erlang","erlang"),a.defineMode("erlang",function(_){var p=["-type","-spec","-export_type","-opaque"],s=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],A=/[\->,;]/,R=["->",";",","],U=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],j=/[\+\-\*\/<>=\|:!]/,O=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],Z=/[<\(\[\{]/,y=["<<","(","[","{"],q=/[>\)\]\}]/,x=["}","]",")",">>"],$=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],D=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],v=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,I=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function Q(e,n){if(n.in_string)return n.in_string=!E(e),o(n,e,"string");if(n.in_atom)return n.in_atom=!z(e),o(n,e,"atom");if(e.eatSpace())return o(n,e,"whitespace");if(!b(n)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return u(e.current(),p)?o(n,e,"type"):o(n,e,"attribute");var r=e.next();if(r=="%")return e.skipToEnd(),o(n,e,"comment");if(r==":")return o(n,e,"colon");if(r=="?")return e.eatSpace(),e.eatWhile(v),o(n,e,"macro");if(r=="#")return e.eatSpace(),e.eatWhile(v),o(n,e,"record");if(r=="$")return e.next()=="\\"&&!e.match(I)?o(n,e,"error"):o(n,e,"number");if(r==".")return o(n,e,"dot");if(r=="'"){if(!(n.in_atom=!z(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),o(n,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return o(n,e,"function")}return o(n,e,"atom")}if(r=='"')return n.in_string=!E(e),o(n,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(v),o(n,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(v),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),o(n,e,"fun");var t=e.current();return u(t,s)?o(n,e,"keyword"):u(t,U)?o(n,e,"operator"):e.match(/\s*\(/,!1)?u(t,D)&&(b(n).token!=":"||b(n,2).token=="erlang")?o(n,e,"builtin"):u(t,$)?o(n,e,"guard"):o(n,e,"function"):F(e)==":"?t=="erlang"?o(n,e,"builtin"):o(n,e,"function"):u(t,["true","false"])?o(n,e,"boolean"):o(n,e,"atom")}var c=/[0-9]/,i=/[0-9a-zA-Z]/;return c.test(r)?(e.eatWhile(c),e.eat("#")?e.eatWhile(i)||e.backUp(1):e.eat(".")&&(e.eatWhile(c)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(c)||e.backUp(2):e.eatWhile(c)||e.backUp(1)):e.backUp(1)),o(n,e,"number")):S(e,Z,y)?o(n,e,"open_paren"):S(e,q,x)?o(n,e,"close_paren"):W(e,A,R)?o(n,e,"separator"):W(e,j,O)?o(n,e,"operator"):o(n,e,null)}function S(e,n,r){if(e.current().length==1&&n.test(e.current())){for(e.backUp(1);n.test(e.peek());)if(e.next(),u(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function W(e,n,r){if(e.current().length==1&&n.test(e.current())){for(;n.test(e.peek());)e.next();for(;01&&e[n].type==="fun"&&e[n-1].token==="fun")return e.slice(0,n-1);switch(e[n].token){case"}":return f(e,{g:["{"]});case"]":return f(e,{i:["["]});case")":return f(e,{i:["("]});case">>":return f(e,{i:["<<"]});case"end":return f(e,{i:["begin","case","fun","if","receive","try"]});case",":return f(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return f(e,{r:["when"],m:["try","if","case","receive"]});case";":return f(e,{E:["case","fun","if","receive","try","when"]});case"catch":return f(e,{e:["try"]});case"of":return f(e,{e:["case"]});case"after":return f(e,{e:["receive","try"]});default:return e}}function f(e,n){for(var r in n)for(var t=e.length-1,c=n[r],i=t-1;-1"?u(l.token,["receive","case","if","try"])?l.column+t+t:l.column+t:u(i.token,y)?i.column+i.token.length:(r=V(e),d(r)?r.column+t:0):0}function L(e){var n=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return d(n)&&n.index===0?n[0]:""}function M(e){var n=e.tokenStack.slice(0,-1),r=k(n,"type",["open_paren"]);return d(n[r])?n[r]:!1}function V(e){var n=e.tokenStack,r=k(n,"type",["open_paren","separator","keyword"]),t=k(n,"type",["operator"]);return d(r)&&d(t)&&r_[p]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var ee={exports:{}};(function(g,h){(function(a){a(Y)})(function(a){a.defineMIME("text/x-erlang","erlang"),a.defineMode("erlang",function(_){var p=["-type","-spec","-export_type","-opaque"],s=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],A=/[\->,;]/,R=["->",";",","],U=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],j=/[\+\-\*\/<>=\|:!]/,O=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],Z=/[<\(\[\{]/,y=["<<","(","[","{"],q=/[>\)\]\}]/,x=["}","]",")",">>"],$=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],D=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],v=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,I=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function Q(e,n){if(n.in_string)return n.in_string=!E(e),o(n,e,"string");if(n.in_atom)return n.in_atom=!z(e),o(n,e,"atom");if(e.eatSpace())return o(n,e,"whitespace");if(!b(n)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return u(e.current(),p)?o(n,e,"type"):o(n,e,"attribute");var r=e.next();if(r=="%")return e.skipToEnd(),o(n,e,"comment");if(r==":")return o(n,e,"colon");if(r=="?")return e.eatSpace(),e.eatWhile(v),o(n,e,"macro");if(r=="#")return e.eatSpace(),e.eatWhile(v),o(n,e,"record");if(r=="$")return e.next()=="\\"&&!e.match(I)?o(n,e,"error"):o(n,e,"number");if(r==".")return o(n,e,"dot");if(r=="'"){if(!(n.in_atom=!z(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),o(n,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return o(n,e,"function")}return o(n,e,"atom")}if(r=='"')return n.in_string=!E(e),o(n,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(v),o(n,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(v),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),o(n,e,"fun");var t=e.current();return u(t,s)?o(n,e,"keyword"):u(t,U)?o(n,e,"operator"):e.match(/\s*\(/,!1)?u(t,D)&&(b(n).token!=":"||b(n,2).token=="erlang")?o(n,e,"builtin"):u(t,$)?o(n,e,"guard"):o(n,e,"function"):F(e)==":"?t=="erlang"?o(n,e,"builtin"):o(n,e,"function"):u(t,["true","false"])?o(n,e,"boolean"):o(n,e,"atom")}var c=/[0-9]/,i=/[0-9a-zA-Z]/;return c.test(r)?(e.eatWhile(c),e.eat("#")?e.eatWhile(i)||e.backUp(1):e.eat(".")&&(e.eatWhile(c)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(c)||e.backUp(2):e.eatWhile(c)||e.backUp(1)):e.backUp(1)),o(n,e,"number")):S(e,Z,y)?o(n,e,"open_paren"):S(e,q,x)?o(n,e,"close_paren"):W(e,A,R)?o(n,e,"separator"):W(e,j,O)?o(n,e,"operator"):o(n,e,null)}function S(e,n,r){if(e.current().length==1&&n.test(e.current())){for(e.backUp(1);n.test(e.peek());)if(e.next(),u(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function W(e,n,r){if(e.current().length==1&&n.test(e.current())){for(;n.test(e.peek());)e.next();for(;01&&e[n].type==="fun"&&e[n-1].token==="fun")return e.slice(0,n-1);switch(e[n].token){case"}":return f(e,{g:["{"]});case"]":return f(e,{i:["["]});case")":return f(e,{i:["("]});case">>":return f(e,{i:["<<"]});case"end":return f(e,{i:["begin","case","fun","if","receive","try"]});case",":return f(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return f(e,{r:["when"],m:["try","if","case","receive"]});case";":return f(e,{E:["case","fun","if","receive","try","when"]});case"catch":return f(e,{e:["try"]});case"of":return f(e,{e:["case"]});case"after":return f(e,{e:["receive","try"]});default:return e}}function f(e,n){for(var r in n)for(var t=e.length-1,c=n[r],i=t-1;-1"?u(l.token,["receive","case","if","try"])?l.column+t+t:l.column+t:u(i.token,y)?i.column+i.token.length:(r=V(e),d(r)?r.column+t:0):0}function L(e){var n=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return d(n)&&n.index===0?n[0]:""}function M(e){var n=e.tokenStack.slice(0,-1),r=k(n,"type",["open_paren"]);return d(n[r])?n[r]:!1}function V(e){var n=e.tokenStack,r=k(n,"type",["open_paren","separator","keyword"]),t=k(n,"type",["operator"]);return d(r)&&d(t)&&rt[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(n,o){(function(e){e(x,k())})(function(e){e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:"!"}}),e.defineMIME("text/x-factor","factor")})})();var g=l.exports;const c=a(g),u=i({__proto__:null,default:c},[g]);export{u as f}; +import{g as a,c as x,b as k}from"./index-F8NPuhC5.js";function i(n,o){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(n,o){(function(e){e(x,k())})(function(e){e.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:"!"}}),e.defineMIME("text/x-factor","factor")})})();var g=l.exports;const c=a(g),u=i({__proto__:null,default:c},[g]);export{u as f}; diff --git a/dist-ui/assets/fcl-C2-vcOIF.js b/dist-ui/assets/fcl-7ZBgVnY8.js similarity index 97% rename from dist-ui/assets/fcl-C2-vcOIF.js rename to dist-ui/assets/fcl-7ZBgVnY8.js index daa5982c..38c8aa43 100644 --- a/dist-ui/assets/fcl-C2-vcOIF.js +++ b/dist-ui/assets/fcl-7ZBgVnY8.js @@ -1 +1 @@ -import{g,c as _}from"./index-CFELAGmQ.js";function E(c,a){for(var o=0;oi[u]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(c,a){(function(o){o(_)})(function(o){o.defineMode("fcl",function(i){var u=i.indentUnit,f={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},s={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},d={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},k={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},x=/[+\-*&^%:=<>!|\/]/;function p(e,n){var t=e.next();if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(t=="/"||t=="("){if(e.eat("*"))return n.tokenize=b,b(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(t))return e.eatWhile(x),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return f.propertyIsEnumerable(r)||s.propertyIsEnumerable(r)||d.propertyIsEnumerable(r)?"keyword":k.propertyIsEnumerable(r)?"atom":"variable"}function b(e,n){for(var t=!1,r;r=e.next();){if((r=="/"||r==")")&&t){n.tokenize=p;break}t=r=="*"}return"comment"}function m(e,n,t,r,l){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=l}function y(e,n,t){return e.context=new m(e.indented,n,t,null,e.context)}function h(e){if(e.context.prev){var n=e.context.type;return n=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new m((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var r=(n.tokenize||p)(e,n);if(r=="comment")return r;t.align==null&&(t.align=!0);var l=e.current().toLowerCase();return s.propertyIsEnumerable(l)?y(n,e.column(),"end_block"):d.propertyIsEnumerable(l)&&h(n),n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=p&&e.tokenize!=null)return 0;var t=e.context,r=d.propertyIsEnumerable(n);return t.align?t.column+(r?0:1):t.indented+(r?0:u)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),o.defineMIME("text/x-fcl","fcl")})})();var v=z.exports;const C=g(v),O=E({__proto__:null,default:C},[v]);export{O as f}; +import{g,c as _}from"./index-F8NPuhC5.js";function E(c,a){for(var o=0;oi[u]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(c,a){(function(o){o(_)})(function(o){o.defineMode("fcl",function(i){var u=i.indentUnit,f={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},s={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},d={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},k={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},x=/[+\-*&^%:=<>!|\/]/;function p(e,n){var t=e.next();if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(t=="/"||t=="("){if(e.eat("*"))return n.tokenize=b,b(e,n);if(e.eat("/"))return e.skipToEnd(),"comment"}if(x.test(t))return e.eatWhile(x),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current().toLowerCase();return f.propertyIsEnumerable(r)||s.propertyIsEnumerable(r)||d.propertyIsEnumerable(r)?"keyword":k.propertyIsEnumerable(r)?"atom":"variable"}function b(e,n){for(var t=!1,r;r=e.next();){if((r=="/"||r==")")&&t){n.tokenize=p;break}t=r=="*"}return"comment"}function m(e,n,t,r,l){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=l}function y(e,n,t){return e.context=new m(e.indented,n,t,null,e.context)}function h(e){if(e.context.prev){var n=e.context.type;return n=="end_block"&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new m((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var r=(n.tokenize||p)(e,n);if(r=="comment")return r;t.align==null&&(t.align=!0);var l=e.current().toLowerCase();return s.propertyIsEnumerable(l)?y(n,e.column(),"end_block"):d.propertyIsEnumerable(l)&&h(n),n.startOfLine=!1,r},indent:function(e,n){if(e.tokenize!=p&&e.tokenize!=null)return 0;var t=e.context,r=d.propertyIsEnumerable(n);return t.align?t.column+(r?0:1):t.indented+(r?0:u)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}}),o.defineMIME("text/x-fcl","fcl")})})();var v=z.exports;const C=g(v),O=E({__proto__:null,default:C},[v]);export{O as f}; diff --git a/dist-ui/assets/forth-DipmwzLv.js b/dist-ui/assets/forth-wn3wzAUB.js similarity index 98% rename from dist-ui/assets/forth-DipmwzLv.js rename to dist-ui/assets/forth-wn3wzAUB.js index 363eb839..5c7997fd 100644 --- a/dist-ui/assets/forth-DipmwzLv.js +++ b/dist-ui/assets/forth-wn3wzAUB.js @@ -1 +1 @@ -import{g as S,c as T}from"./index-CFELAGmQ.js";function A(O,a){for(var E=0;En[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(O,a){(function(E){E(T)})(function(E){function n(f){var r=[];return f.split(" ").forEach(function(e){r.push({name:e})}),r}var i=n("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),o=n("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");E.defineMode("forth",function(){function f(r,e){var t;for(t=r.length-1;t>=0;t--)if(r[t].name===e.toUpperCase())return r[t]}return{startState:function(){return{state:"",base:10,coreWordList:i,immediateWordList:o,wordList:[]}},token:function(r,e){var t;if(r.eatSpace())return null;if(e.state===""){if(r.match(/^(\]|:NONAME)(\s|$)/i))return e.state=" compilation","builtin compilation";if(t=r.match(/^(\:)\s+(\S+)(\s|$)+/),t)return e.wordList.push({name:t[2].toUpperCase()}),e.state=" compilation","def"+e.state;if(t=r.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i),t)return e.wordList.push({name:t[2].toUpperCase()}),"def"+e.state;if(t=r.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/),t)return"builtin"+e.state}else{if(r.match(/^(\;|\[)(\s)/))return e.state="",r.backUp(1),"builtin compilation";if(r.match(/^(\;|\[)($)/))return e.state="","builtin compilation";if(r.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}if(t=r.match(/^(\S+)(\s+|$)/),t)return f(e.wordList,t[1])!==void 0?"variable"+e.state:t[1]==="\\"?(r.skipToEnd(),"comment"+e.state):f(e.coreWordList,t[1])!==void 0?"builtin"+e.state:f(e.immediateWordList,t[1])!==void 0?"keyword"+e.state:t[1]==="("?(r.eatWhile(function(R){return R!==")"}),r.eat(")"),"comment"+e.state):t[1]===".("?(r.eatWhile(function(R){return R!==")"}),r.eat(")"),"string"+e.state):t[1]==='S"'||t[1]==='."'||t[1]==='C"'?(r.eatWhile(function(R){return R!=='"'}),r.eat('"'),"string"+e.state):t[1]-68719476735?"number"+e.state:"atom"+e.state}}}),E.defineMIME("text/x-forth","forth")})})();var u=L.exports;const D=S(u),c=A({__proto__:null,default:D},[u]);export{c as f}; +import{g as S,c as T}from"./index-F8NPuhC5.js";function A(O,a){for(var E=0;En[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var L={exports:{}};(function(O,a){(function(E){E(T)})(function(E){function n(f){var r=[];return f.split(" ").forEach(function(e){r.push({name:e})}),r}var i=n("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),o=n("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");E.defineMode("forth",function(){function f(r,e){var t;for(t=r.length-1;t>=0;t--)if(r[t].name===e.toUpperCase())return r[t]}return{startState:function(){return{state:"",base:10,coreWordList:i,immediateWordList:o,wordList:[]}},token:function(r,e){var t;if(r.eatSpace())return null;if(e.state===""){if(r.match(/^(\]|:NONAME)(\s|$)/i))return e.state=" compilation","builtin compilation";if(t=r.match(/^(\:)\s+(\S+)(\s|$)+/),t)return e.wordList.push({name:t[2].toUpperCase()}),e.state=" compilation","def"+e.state;if(t=r.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i),t)return e.wordList.push({name:t[2].toUpperCase()}),"def"+e.state;if(t=r.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/),t)return"builtin"+e.state}else{if(r.match(/^(\;|\[)(\s)/))return e.state="",r.backUp(1),"builtin compilation";if(r.match(/^(\;|\[)($)/))return e.state="","builtin compilation";if(r.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}if(t=r.match(/^(\S+)(\s+|$)/),t)return f(e.wordList,t[1])!==void 0?"variable"+e.state:t[1]==="\\"?(r.skipToEnd(),"comment"+e.state):f(e.coreWordList,t[1])!==void 0?"builtin"+e.state:f(e.immediateWordList,t[1])!==void 0?"keyword"+e.state:t[1]==="("?(r.eatWhile(function(R){return R!==")"}),r.eat(")"),"comment"+e.state):t[1]===".("?(r.eatWhile(function(R){return R!==")"}),r.eat(")"),"string"+e.state):t[1]==='S"'||t[1]==='."'||t[1]==='C"'?(r.eatWhile(function(R){return R!=='"'}),r.eat('"'),"string"+e.state):t[1]-68719476735?"number"+e.state:"atom"+e.state}}}),E.defineMIME("text/x-forth","forth")})})();var u=L.exports;const D=S(u),c=A({__proto__:null,default:D},[u]);export{c as f}; diff --git a/dist-ui/assets/fortran-B7Q5kQUa.js b/dist-ui/assets/fortran-ve-4AZ2-.js similarity index 98% rename from dist-ui/assets/fortran-B7Q5kQUa.js rename to dist-ui/assets/fortran-ve-4AZ2-.js index 8ca92d56..5bb58b95 100644 --- a/dist-ui/assets/fortran-B7Q5kQUa.js +++ b/dist-ui/assets/fortran-ve-4AZ2-.js @@ -1 +1 @@ -import{g as h,c as x}from"./index-CFELAGmQ.js";function y(s,l){for(var i=0;ir[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(s,l){(function(i){i(x)})(function(i){i.defineMode("fortran",function(){function r(t){for(var n={},e=0;e\/\:]/,m=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function g(t,n){if(t.match(m))return"operator";var e=t.next();if(e=="!")return t.skipToEnd(),"comment";if(e=='"'||e=="'")return n.tokenize=b(e),n.tokenize(t,n);if(/[\[\]\(\),]/.test(e))return null;if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(_.test(e))return t.eatWhile(_),"operator";t.eatWhile(/[\w\$_]/);var a=t.current().toLowerCase();return o.hasOwnProperty(a)?"keyword":c.hasOwnProperty(a)||p.hasOwnProperty(a)?"builtin":"variable"}function b(t){return function(n,e){for(var a=!1,d,u=!1;(d=n.next())!=null;){if(d==t&&!a){u=!0;break}a=!a&&d=="\\"}return(u||!a)&&(e.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(t,n){if(t.eatSpace())return null;var e=(n.tokenize||g)(t,n);return e=="comment"||e=="meta",e}}}),i.defineMIME("text/x-fortran","fortran")})})();var f=v.exports;const k=h(f),z=y({__proto__:null,default:k},[f]);export{z as f}; +import{g as h,c as x}from"./index-F8NPuhC5.js";function y(s,l){for(var i=0;ir[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var v={exports:{}};(function(s,l){(function(i){i(x)})(function(i){i.defineMode("fortran",function(){function r(t){for(var n={},e=0;e\/\:]/,m=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function g(t,n){if(t.match(m))return"operator";var e=t.next();if(e=="!")return t.skipToEnd(),"comment";if(e=='"'||e=="'")return n.tokenize=b(e),n.tokenize(t,n);if(/[\[\]\(\),]/.test(e))return null;if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(_.test(e))return t.eatWhile(_),"operator";t.eatWhile(/[\w\$_]/);var a=t.current().toLowerCase();return o.hasOwnProperty(a)?"keyword":c.hasOwnProperty(a)||p.hasOwnProperty(a)?"builtin":"variable"}function b(t){return function(n,e){for(var a=!1,d,u=!1;(d=n.next())!=null;){if(d==t&&!a){u=!0;break}a=!a&&d=="\\"}return(u||!a)&&(e.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(t,n){if(t.eatSpace())return null;var e=(n.tokenize||g)(t,n);return e=="comment"||e=="meta",e}}}),i.defineMIME("text/x-fortran","fortran")})})();var f=v.exports;const k=h(f),z=y({__proto__:null,default:k},[f]);export{z as f}; diff --git a/dist-ui/assets/gas-BBAAeptq.js b/dist-ui/assets/gas-DtawV3pS.js similarity index 98% rename from dist-ui/assets/gas-BBAAeptq.js rename to dist-ui/assets/gas-DtawV3pS.js index b6c0fc2e..2683b721 100644 --- a/dist-ui/assets/gas-BBAAeptq.js +++ b/dist-ui/assets/gas-DtawV3pS.js @@ -1 +1 @@ -import{g as w,c as y}from"./index-CFELAGmQ.js";function _(c,s){for(var b=0;bo[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(c,s){(function(b){b(y)})(function(b){b.defineMode("gas",function(o,a){var u=[],v="",p={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function m(l){v="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variable-2",i.rax="variable-3",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variable-2",i.rbx="variable-3",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variable-2",i.rcx="variable-3",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variable-2",i.rdx="variable-3",i.si="variable",i.esi="variable-2",i.rsi="variable-3",i.di="variable",i.edi="variable-2",i.rdi="variable-3",i.sp="variable",i.esp="variable-2",i.rsp="variable-3",i.bp="variable",i.ebp="variable-2",i.rbp="variable-3",i.ip="variable",i.eip="variable-2",i.rip="variable-3",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"}function k(l){v="@",p.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variable-2",i.lr="variable-2",i.pc="variable-2",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,u.push(function(t,e){if(t==="#")return e.eatWhile(/\w/),"number"})}var f=(a.architecture||"x86").toLowerCase();f==="x86"?m():(f==="arm"||f==="armv6")&&k();function h(l,t){for(var e=!1,n;(n=l.next())!=null;){if(n===t&&!e)return!1;e=!e&&n==="\\"}return e}function g(l,t){for(var e=!1,n;(n=l.next())!=null;){if(n==="/"&&e){t.tokenize=null;break}e=n==="*"}return"comment"}return{startState:function(){return{tokenize:null}},token:function(l,t){if(t.tokenize)return t.tokenize(l,t);if(l.eatSpace())return null;var e,n,r=l.next();if(r==="/"&&l.eat("*"))return t.tokenize=g,g(l,t);if(r===v)return l.skipToEnd(),"comment";if(r==='"')return h(l,'"'),"string";if(r===".")return l.eatWhile(/\w/),n=l.current().toLowerCase(),e=p[n],e||null;if(r==="=")return l.eatWhile(/\w/),"tag";if(r==="{"||r==="}")return"bracket";if(/\d/.test(r))return r==="0"&&l.eat("x")?(l.eatWhile(/[0-9a-fA-F]/),"number"):(l.eatWhile(/\d/),"number");if(/\w/.test(r))return l.eatWhile(/\w/),l.eat(":")?"tag":(n=l.current().toLowerCase(),e=i[n],e||null);for(var d=0;do[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(c,s){(function(b){b(y)})(function(b){b.defineMode("gas",function(o,a){var u=[],v="",p={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function m(l){v="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variable-2",i.rax="variable-3",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variable-2",i.rbx="variable-3",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variable-2",i.rcx="variable-3",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variable-2",i.rdx="variable-3",i.si="variable",i.esi="variable-2",i.rsi="variable-3",i.di="variable",i.edi="variable-2",i.rdi="variable-3",i.sp="variable",i.esp="variable-2",i.rsp="variable-3",i.bp="variable",i.ebp="variable-2",i.rbp="variable-3",i.ip="variable",i.eip="variable-2",i.rip="variable-3",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"}function k(l){v="@",p.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variable-2",i.lr="variable-2",i.pc="variable-2",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,u.push(function(t,e){if(t==="#")return e.eatWhile(/\w/),"number"})}var f=(a.architecture||"x86").toLowerCase();f==="x86"?m():(f==="arm"||f==="armv6")&&k();function h(l,t){for(var e=!1,n;(n=l.next())!=null;){if(n===t&&!e)return!1;e=!e&&n==="\\"}return e}function g(l,t){for(var e=!1,n;(n=l.next())!=null;){if(n==="/"&&e){t.tokenize=null;break}e=n==="*"}return"comment"}return{startState:function(){return{tokenize:null}},token:function(l,t){if(t.tokenize)return t.tokenize(l,t);if(l.eatSpace())return null;var e,n,r=l.next();if(r==="/"&&l.eat("*"))return t.tokenize=g,g(l,t);if(r===v)return l.skipToEnd(),"comment";if(r==='"')return h(l,'"'),"string";if(r===".")return l.eatWhile(/\w/),n=l.current().toLowerCase(),e=p[n],e||null;if(r==="=")return l.eatWhile(/\w/),"tag";if(r==="{"||r==="}")return"bracket";if(/\d/.test(r))return r==="0"&&l.eat("x")?(l.eatWhile(/[0-9a-fA-F]/),"number"):(l.eatWhile(/\d/),"number");if(/\w/.test(r))return l.eatWhile(/\w/),l.eat(":")?"tag":(n=l.current().toLowerCase(),e=i[n],e||null);for(var d=0;do[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(a,c){(function(t){t(b,v(),h())})(function(t){var o=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(r,i){var p=0;function d(e){return e.code=!1,null}var m={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if(e.peek()==="`"){e.next();var g=e.pos;e.eatWhile("`");var f=1+e.pos-g;return n.code?f===p&&(n.code=!1):(p=f,n.code=!0),null}else if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,i.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(o)&&e.string.slice(e.start-2,e.start)!="]("&&(e.start==0||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:d},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in i)s[l]=i[l];return s.name="markdown",t.overlayMode(t.getMode(r,s),m)},"markdown"),t.defineMIME("text/x-gfm","gfm")})})();var u=y.exports;const w=k(u),_=x({__proto__:null,default:w},[u]);export{_ as g}; +import{g as k,c as b}from"./index-F8NPuhC5.js";import{r as v}from"./markdown-CYPtsbJZ.js";import{r as h}from"./overlay-DMs7bKVk.js";function x(a,c){for(var t=0;to[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(a,c){(function(t){t(b,v(),h())})(function(t){var o=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(r,i){var p=0;function d(e){return e.code=!1,null}var m={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if(e.peek()==="`"){e.next();var g=e.pos;e.eatWhile("`");var f=1+e.pos-g;return n.code?f===p&&(n.code=!1):(p=f,n.code=!0),null}else if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,i.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(o)&&e.string.slice(e.start-2,e.start)!="]("&&(e.start==0||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:d},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in i)s[l]=i[l];return s.name="markdown",t.overlayMode(t.getMode(r,s),m)},"markdown"),t.defineMIME("text/x-gfm","gfm")})})();var u=y.exports;const w=k(u),_=x({__proto__:null,default:w},[u]);export{_ as g}; diff --git a/dist-ui/assets/gherkin-DRcg385F.js b/dist-ui/assets/gherkin-Da6_ljSx.js similarity index 99% rename from dist-ui/assets/gherkin-DRcg385F.js rename to dist-ui/assets/gherkin-Da6_ljSx.js index 23c644e2..1361779e 100644 --- a/dist-ui/assets/gherkin-DRcg385F.js +++ b/dist-ui/assets/gherkin-Da6_ljSx.js @@ -1 +1 @@ -import{g as t,c as u}from"./index-CFELAGmQ.js";function d(i,r){for(var a=0;an[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(i,r){(function(a){a(u)})(function(a){a.defineMode("gherkin",function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(n,e){if(n.sol()&&(e.lineNumber++,e.inKeywordLine=!1,e.inMultilineTable&&(e.tableHeaderLine=!1,n.match(/\s*\|/,!1)||(e.allowMultilineArgument=!1,e.inMultilineTable=!1))),n.eatSpace(),e.allowMultilineArgument){if(e.inMultilineString)return n.match('"""')?(e.inMultilineString=!1,e.allowMultilineArgument=!1):n.match(/.*/),"string";if(e.inMultilineTable)return n.match(/\|\s*/)?"bracket":(n.match(/[^\|]*/),e.tableHeaderLine?"header":"string");if(n.match('"""'))return e.inMultilineString=!0,"string";if(n.match("|"))return e.inMultilineTable=!0,e.tableHeaderLine=!0,"bracket"}return n.match(/#.*/)?"comment":!e.inKeywordLine&&n.match(/@\S+/)?"tag":!e.inKeywordLine&&e.allowFeature&&n.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(e.allowScenario=!0,e.allowBackground=!0,e.allowPlaceholders=!1,e.allowSteps=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowBackground&&n.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowScenario&&n.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(e.allowPlaceholders=!0,e.allowSteps=!0,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):e.allowScenario&&n.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!0,"keyword"):!e.inKeywordLine&&e.allowScenario&&n.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowSteps&&n.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(e.inStep=!0,e.allowPlaceholders=!0,e.allowMultilineArgument=!0,e.inKeywordLine=!0,"keyword"):n.match(/"[^"]*"?/)?"string":e.allowPlaceholders&&n.match(/<[^>]*>?/)?"variable":(n.next(),n.eatWhile(/[^@"<#]/),null)}}}),a.defineMIME("text/x-feature","gherkin")})})();var o=c.exports;const s=t(o),h=d({__proto__:null,default:s},[o]);export{h as g}; +import{g as t,c as u}from"./index-F8NPuhC5.js";function d(i,r){for(var a=0;an[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(i,r){(function(a){a(u)})(function(a){a.defineMode("gherkin",function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(n,e){if(n.sol()&&(e.lineNumber++,e.inKeywordLine=!1,e.inMultilineTable&&(e.tableHeaderLine=!1,n.match(/\s*\|/,!1)||(e.allowMultilineArgument=!1,e.inMultilineTable=!1))),n.eatSpace(),e.allowMultilineArgument){if(e.inMultilineString)return n.match('"""')?(e.inMultilineString=!1,e.allowMultilineArgument=!1):n.match(/.*/),"string";if(e.inMultilineTable)return n.match(/\|\s*/)?"bracket":(n.match(/[^\|]*/),e.tableHeaderLine?"header":"string");if(n.match('"""'))return e.inMultilineString=!0,"string";if(n.match("|"))return e.inMultilineTable=!0,e.tableHeaderLine=!0,"bracket"}return n.match(/#.*/)?"comment":!e.inKeywordLine&&n.match(/@\S+/)?"tag":!e.inKeywordLine&&e.allowFeature&&n.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(e.allowScenario=!0,e.allowBackground=!0,e.allowPlaceholders=!1,e.allowSteps=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowBackground&&n.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowScenario&&n.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(e.allowPlaceholders=!0,e.allowSteps=!0,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):e.allowScenario&&n.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!0,"keyword"):!e.inKeywordLine&&e.allowScenario&&n.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(e.allowPlaceholders=!1,e.allowSteps=!0,e.allowBackground=!1,e.allowMultilineArgument=!1,e.inKeywordLine=!0,"keyword"):!e.inKeywordLine&&e.allowSteps&&n.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(e.inStep=!0,e.allowPlaceholders=!0,e.allowMultilineArgument=!0,e.inKeywordLine=!0,"keyword"):n.match(/"[^"]*"?/)?"string":e.allowPlaceholders&&n.match(/<[^>]*>?/)?"variable":(n.next(),n.eatWhile(/[^@"<#]/),null)}}}),a.defineMIME("text/x-feature","gherkin")})})();var o=c.exports;const s=t(o),h=d({__proto__:null,default:s},[o]);export{h as g}; diff --git a/dist-ui/assets/go-DmGc6dBE.js b/dist-ui/assets/go-Dgi7Lbsk.js similarity index 98% rename from dist-ui/assets/go-DmGc6dBE.js rename to dist-ui/assets/go-Dgi7Lbsk.js index 9d98b24f..3a29a91e 100644 --- a/dist-ui/assets/go-DmGc6dBE.js +++ b/dist-ui/assets/go-Dgi7Lbsk.js @@ -1 +1 @@ -import{g as _,c as E}from"./index-CFELAGmQ.js";function w(a,d){for(var u=0;ul[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(a,d){(function(u){u(E)})(function(u){u.defineMode("go",function(l){var o=l.indentUnit,f={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},v={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},g=/[+\-*&^%:=<>!|\/]/,i;function p(e,r){var t=e.next();if(t=='"'||t=="'"||t=="`")return r.tokenize=b(t),r.tokenize(e,r);if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9_]+([eE][\-+]?[0-9_]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F_]+/)||e.match(/^[0-7_]+/):e.match(/^[0-9_]*\.?[0-9_]*([eE][\-+]?[0-9_]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(t=="/"){if(e.eat("*"))return r.tokenize=x,x(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(g.test(t))return e.eatWhile(g),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return f.propertyIsEnumerable(n)?((n=="case"||n=="default")&&(i="case"),"keyword"):v.propertyIsEnumerable(n)?"atom":"variable"}function b(e){return function(r,t){for(var n=!1,c,h=!1;(c=r.next())!=null;){if(c==e&&!n){h=!0;break}n=!n&&e!="`"&&c=="\\"}return(h||!(n||e=="`"))&&(t.tokenize=p),"string"}}function x(e,r){for(var t=!1,n;n=e.next();){if(n=="/"&&t){r.tokenize=p;break}t=n=="*"}return"comment"}function m(e,r,t,n,c){this.indented=e,this.column=r,this.type=t,this.align=n,this.prev=c}function s(e,r,t){return e.context=new m(e.indented,r,t,null,e.context)}function y(e){if(e.context.prev){var r=e.context.type;return(r==")"||r=="]"||r=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new m((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,r){var t=r.context;if(e.sol()&&(t.align==null&&(t.align=!1),r.indented=e.indentation(),r.startOfLine=!0,t.type=="case"&&(t.type="}")),e.eatSpace())return null;i=null;var n=(r.tokenize||p)(e,r);return n=="comment"||(t.align==null&&(t.align=!0),i=="{"?s(r,e.column(),"}"):i=="["?s(r,e.column(),"]"):i=="("?s(r,e.column(),")"):i=="case"?t.type="case":(i=="}"&&t.type=="}"||i==t.type)&&y(r),r.startOfLine=!1),n},indent:function(e,r){if(e.tokenize!=p&&e.tokenize!=null)return u.Pass;var t=e.context,n=r&&r.charAt(0);if(t.type=="case"&&/^(?:case|default)\b/.test(r))return e.context.type="}",t.indented;var c=n==t.type;return t.align?t.column+(c?0:1):t.indented+(c?0:o)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),u.defineMIME("text/x-go","go")})})();var k=z.exports;const C=_(k),S=w({__proto__:null,default:C},[k]);export{S as g}; +import{g as _,c as E}from"./index-F8NPuhC5.js";function w(a,d){for(var u=0;ul[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(a,d){(function(u){u(E)})(function(u){u.defineMode("go",function(l){var o=l.indentUnit,f={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},v={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},g=/[+\-*&^%:=<>!|\/]/,i;function p(e,r){var t=e.next();if(t=='"'||t=="'"||t=="`")return r.tokenize=b(t),r.tokenize(e,r);if(/[\d\.]/.test(t))return t=="."?e.match(/^[0-9_]+([eE][\-+]?[0-9_]+)?/):t=="0"?e.match(/^[xX][0-9a-fA-F_]+/)||e.match(/^[0-7_]+/):e.match(/^[0-9_]*\.?[0-9_]*([eE][\-+]?[0-9_]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(t))return i=t,null;if(t=="/"){if(e.eat("*"))return r.tokenize=x,x(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(g.test(t))return e.eatWhile(g),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var n=e.current();return f.propertyIsEnumerable(n)?((n=="case"||n=="default")&&(i="case"),"keyword"):v.propertyIsEnumerable(n)?"atom":"variable"}function b(e){return function(r,t){for(var n=!1,c,h=!1;(c=r.next())!=null;){if(c==e&&!n){h=!0;break}n=!n&&e!="`"&&c=="\\"}return(h||!(n||e=="`"))&&(t.tokenize=p),"string"}}function x(e,r){for(var t=!1,n;n=e.next();){if(n=="/"&&t){r.tokenize=p;break}t=n=="*"}return"comment"}function m(e,r,t,n,c){this.indented=e,this.column=r,this.type=t,this.align=n,this.prev=c}function s(e,r,t){return e.context=new m(e.indented,r,t,null,e.context)}function y(e){if(e.context.prev){var r=e.context.type;return(r==")"||r=="]"||r=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}}return{startState:function(e){return{tokenize:null,context:new m((e||0)-o,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,r){var t=r.context;if(e.sol()&&(t.align==null&&(t.align=!1),r.indented=e.indentation(),r.startOfLine=!0,t.type=="case"&&(t.type="}")),e.eatSpace())return null;i=null;var n=(r.tokenize||p)(e,r);return n=="comment"||(t.align==null&&(t.align=!0),i=="{"?s(r,e.column(),"}"):i=="["?s(r,e.column(),"]"):i=="("?s(r,e.column(),")"):i=="case"?t.type="case":(i=="}"&&t.type=="}"||i==t.type)&&y(r),r.startOfLine=!1),n},indent:function(e,r){if(e.tokenize!=p&&e.tokenize!=null)return u.Pass;var t=e.context,n=r&&r.charAt(0);if(t.type=="case"&&/^(?:case|default)\b/.test(r))return e.context.type="}",t.indented;var c=n==t.type;return t.align?t.column+(c?0:1):t.indented+(c?0:o)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),u.defineMIME("text/x-go","go")})})();var k=z.exports;const C=_(k),S=w({__proto__:null,default:C},[k]);export{S as g}; diff --git a/dist-ui/assets/groovy-CFngObt1.js b/dist-ui/assets/groovy-BCKYlnUy.js similarity index 98% rename from dist-ui/assets/groovy-CFngObt1.js rename to dist-ui/assets/groovy-BCKYlnUy.js index 87de6cde..30b1841a 100644 --- a/dist-ui/assets/groovy-CFngObt1.js +++ b/dist-ui/assets/groovy-BCKYlnUy.js @@ -1 +1 @@ -import{g as j,c as S}from"./index-CFELAGmQ.js";function $(a,k){for(var l=0;lf[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var I={exports:{}};(function(a,k){(function(l){l(S)})(function(l){l.defineMode("groovy",function(f){function o(e){for(var n={},t=e.split(" "),r=0;r"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(t))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),t=="@")return e.eatWhile(/[\w\$_\.]/),"meta";if(n.lastToken==".")return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return T.propertyIsEnumerable(r)?"atom":p.propertyIsEnumerable(r)?(C.propertyIsEnumerable(r)?i="newstatement":O.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}v.isBase=!0;function x(e,n,t){var r=!1;if(e!="/"&&n.eat(e))if(n.eat(e))r=!0;else return"string";function c(s,b){for(var y=!1,h,z=!r;(h=s.next())!=null;){if(h==e&&!y){if(!r)break;if(s.match(e+e)){z=!0;break}}if(e=='"'&&h=="$"&&!y){if(s.eat("{"))return b.tokenize.push(_()),"string";if(s.match(/^\w/,!1))return b.tokenize.push(B),"string"}y=!y&&h=="\\"}return z&&b.tokenize.pop(),"string"}return t.tokenize.push(c),c(n,t)}function _(){var e=1;function n(t,r){if(t.peek()=="}"){if(e--,e==0)return r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r)}else t.peek()=="{"&&e++;return v(t,r)}return n.isBase=!0,n}function B(e,n){var t=e.match(/^(\.|[\w\$_]+)/);return t?t[0]=="."?null:"variable":(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](e,n))}function w(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize.pop();break}t=r=="*"}return"comment"}function g(e,n){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!n}function m(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}function d(e,n,t){return e.context=new m(e.indented,n,t,null,e.context)}function u(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:[v],context:new m((e||0)-f.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0,t.type=="statement"&&!g(n.lastToken,!0)&&(u(n),t=n.context)),e.eatSpace())return null;i=null;var r=n.tokenize[n.tokenize.length-1](e,n);if(r=="comment")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":")&&t.type=="statement")u(n);else if(i=="->"&&t.type=="statement"&&t.prev.type=="}")u(n),n.context.align=!1;else if(i=="{")d(n,e.column(),"}");else if(i=="[")d(n,e.column(),"]");else if(i=="(")d(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=u(n);for(t.type=="}"&&(t=u(n));t.type=="statement";)t=u(n)}else i==t.type?u(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&i=="newstatement")&&d(n,e.column(),"statement");return n.startOfLine=!1,n.lastToken=i||r,r},indent:function(e,n){if(!e.tokenize[e.tokenize.length-1].isBase)return l.Pass;var t=n&&n.charAt(0),r=e.context;r.type=="statement"&&!g(e.lastToken,!0)&&(r=r.prev);var c=t==r.type;return r.type=="statement"?r.indented+(t=="{"?0:f.indentUnit):r.align?r.column+(c?0:1):r.indented+(c?0:f.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),l.defineMIME("text/x-groovy","groovy")})})();var E=I.exports;const P=j(E),U=$({__proto__:null,default:P},[E]);export{U as g}; +import{g as j,c as S}from"./index-F8NPuhC5.js";function $(a,k){for(var l=0;lf[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var I={exports:{}};(function(a,k){(function(l){l(S)})(function(l){l.defineMode("groovy",function(f){function o(e){for(var n={},t=e.split(" "),r=0;r"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(t))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),t=="@")return e.eatWhile(/[\w\$_\.]/),"meta";if(n.lastToken==".")return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return T.propertyIsEnumerable(r)?"atom":p.propertyIsEnumerable(r)?(C.propertyIsEnumerable(r)?i="newstatement":O.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}v.isBase=!0;function x(e,n,t){var r=!1;if(e!="/"&&n.eat(e))if(n.eat(e))r=!0;else return"string";function c(s,b){for(var y=!1,h,z=!r;(h=s.next())!=null;){if(h==e&&!y){if(!r)break;if(s.match(e+e)){z=!0;break}}if(e=='"'&&h=="$"&&!y){if(s.eat("{"))return b.tokenize.push(_()),"string";if(s.match(/^\w/,!1))return b.tokenize.push(B),"string"}y=!y&&h=="\\"}return z&&b.tokenize.pop(),"string"}return t.tokenize.push(c),c(n,t)}function _(){var e=1;function n(t,r){if(t.peek()=="}"){if(e--,e==0)return r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r)}else t.peek()=="{"&&e++;return v(t,r)}return n.isBase=!0,n}function B(e,n){var t=e.match(/^(\.|[\w\$_]+)/);return t?t[0]=="."?null:"variable":(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](e,n))}function w(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize.pop();break}t=r=="*"}return"comment"}function g(e,n){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!n}function m(e,n,t,r,c){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=c}function d(e,n,t){return e.context=new m(e.indented,n,t,null,e.context)}function u(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:[v],context:new m((e||0)-f.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0,t.type=="statement"&&!g(n.lastToken,!0)&&(u(n),t=n.context)),e.eatSpace())return null;i=null;var r=n.tokenize[n.tokenize.length-1](e,n);if(r=="comment")return r;if(t.align==null&&(t.align=!0),(i==";"||i==":")&&t.type=="statement")u(n);else if(i=="->"&&t.type=="statement"&&t.prev.type=="}")u(n),n.context.align=!1;else if(i=="{")d(n,e.column(),"}");else if(i=="[")d(n,e.column(),"]");else if(i=="(")d(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=u(n);for(t.type=="}"&&(t=u(n));t.type=="statement";)t=u(n)}else i==t.type?u(n):(t.type=="}"||t.type=="top"||t.type=="statement"&&i=="newstatement")&&d(n,e.column(),"statement");return n.startOfLine=!1,n.lastToken=i||r,r},indent:function(e,n){if(!e.tokenize[e.tokenize.length-1].isBase)return l.Pass;var t=n&&n.charAt(0),r=e.context;r.type=="statement"&&!g(e.lastToken,!0)&&(r=r.prev);var c=t==r.type;return r.type=="statement"?r.indented+(t=="{"?0:f.indentUnit):r.align?r.column+(c?0:1):r.indented+(c?0:f.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),l.defineMIME("text/x-groovy","groovy")})})();var E=I.exports;const P=j(E),U=$({__proto__:null,default:P},[E]);export{U as g}; diff --git a/dist-ui/assets/haml-Bt2f_Nrm.js b/dist-ui/assets/haml-C5Q82PRH.js similarity index 95% rename from dist-ui/assets/haml-Bt2f_Nrm.js rename to dist-ui/assets/haml-C5Q82PRH.js index 7a1f28b1..3e29a920 100644 --- a/dist-ui/assets/haml-Bt2f_Nrm.js +++ b/dist-ui/assets/haml-C5Q82PRH.js @@ -1 +1 @@ -import{g as d,c as a}from"./index-CFELAGmQ.js";import{r as y}from"./htmlmixed-D5WYNkec.js";import{r as b}from"./ruby-ByJpm16K.js";function T(l,p){for(var i=0;ir[o]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(l,p){(function(i){i(a,y(),b())})(function(i){i.defineMode("haml",function(r){var o=i.getMode(r,{name:"htmlmixed"}),u=i.getMode(r,"ruby");function k(n){return function(e,t){var c=e.peek();return c==n&&t.rubyState.tokenize.length==1?(e.next(),t.tokenize=m,"closeAttributeTag"):f(e,t)}}function f(n,e){return n.match("-#")?(n.skipToEnd(),"comment"):u.token(n,e.rubyState)}function m(n,e){var t=n.peek();if(e.previousToken.style=="comment"&&e.indented>e.previousToken.indented)return n.skipToEnd(),"commentLine";if(e.startOfLine){if(t=="!"&&n.match("!!"))return n.skipToEnd(),"tag";if(n.match(/^%[\w:#\.]+=/))return e.tokenize=f,"hamlTag";if(n.match(/^%[\w:]+/))return"hamlTag";if(t=="/")return n.skipToEnd(),"comment"}if((e.startOfLine||e.previousToken.style=="hamlTag")&&(t=="#"||t=="."))return n.match(/[\w-#\.]*/),"hamlAttribute";if(e.startOfLine&&!n.match("-->",!1)&&(t=="="||t=="-"))return e.tokenize=f,e.tokenize(n,e);if(e.previousToken.style=="hamlTag"||e.previousToken.style=="closeAttributeTag"||e.previousToken.style=="hamlAttribute"){if(t=="(")return e.tokenize=k(")"),e.tokenize(n,e);if(t=="{"&&!n.match(/^\{%.*/))return e.tokenize=k("}"),e.tokenize(n,e)}return o.token(n,e.htmlState)}return{startState:function(){var n=i.startState(o),e=i.startState(u);return{htmlState:n,rubyState:e,indented:0,previousToken:{style:null,indented:0},tokenize:m}},copyState:function(n){return{htmlState:i.copyState(o,n.htmlState),rubyState:i.copyState(u,n.rubyState),indented:n.indented,previousToken:n.previousToken,tokenize:n.tokenize}},token:function(n,e){if(n.sol()&&(e.indented=n.indentation(),e.startOfLine=!0),n.eatSpace())return null;var t=e.tokenize(n,e);if(e.startOfLine=!1,t&&t!="commentLine"&&(e.previousToken={style:t,indented:e.indented}),n.eol()&&e.tokenize==f){n.backUp(1);var c=n.peek();n.next(),c&&c!=","&&(e.tokenize=m)}return t=="hamlTag"?t="tag":t=="commentLine"?t="comment":t=="hamlAttribute"?t="attribute":t=="closeAttributeTag"&&(t=null),t}}},"htmlmixed","ruby"),i.defineMIME("text/x-haml","haml")})})();var h=g.exports;const v=d(h),O=T({__proto__:null,default:v},[h]);export{O as h}; +import{g as d,c as a}from"./index-F8NPuhC5.js";import{r as y}from"./htmlmixed-B3bg9pWJ.js";import{r as b}from"./ruby-pfYNpgKz.js";function T(l,p){for(var i=0;ir[o]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(l,p){(function(i){i(a,y(),b())})(function(i){i.defineMode("haml",function(r){var o=i.getMode(r,{name:"htmlmixed"}),u=i.getMode(r,"ruby");function k(n){return function(e,t){var c=e.peek();return c==n&&t.rubyState.tokenize.length==1?(e.next(),t.tokenize=m,"closeAttributeTag"):f(e,t)}}function f(n,e){return n.match("-#")?(n.skipToEnd(),"comment"):u.token(n,e.rubyState)}function m(n,e){var t=n.peek();if(e.previousToken.style=="comment"&&e.indented>e.previousToken.indented)return n.skipToEnd(),"commentLine";if(e.startOfLine){if(t=="!"&&n.match("!!"))return n.skipToEnd(),"tag";if(n.match(/^%[\w:#\.]+=/))return e.tokenize=f,"hamlTag";if(n.match(/^%[\w:]+/))return"hamlTag";if(t=="/")return n.skipToEnd(),"comment"}if((e.startOfLine||e.previousToken.style=="hamlTag")&&(t=="#"||t=="."))return n.match(/[\w-#\.]*/),"hamlAttribute";if(e.startOfLine&&!n.match("-->",!1)&&(t=="="||t=="-"))return e.tokenize=f,e.tokenize(n,e);if(e.previousToken.style=="hamlTag"||e.previousToken.style=="closeAttributeTag"||e.previousToken.style=="hamlAttribute"){if(t=="(")return e.tokenize=k(")"),e.tokenize(n,e);if(t=="{"&&!n.match(/^\{%.*/))return e.tokenize=k("}"),e.tokenize(n,e)}return o.token(n,e.htmlState)}return{startState:function(){var n=i.startState(o),e=i.startState(u);return{htmlState:n,rubyState:e,indented:0,previousToken:{style:null,indented:0},tokenize:m}},copyState:function(n){return{htmlState:i.copyState(o,n.htmlState),rubyState:i.copyState(u,n.rubyState),indented:n.indented,previousToken:n.previousToken,tokenize:n.tokenize}},token:function(n,e){if(n.sol()&&(e.indented=n.indentation(),e.startOfLine=!0),n.eatSpace())return null;var t=e.tokenize(n,e);if(e.startOfLine=!1,t&&t!="commentLine"&&(e.previousToken={style:t,indented:e.indented}),n.eol()&&e.tokenize==f){n.backUp(1);var c=n.peek();n.next(),c&&c!=","&&(e.tokenize=m)}return t=="hamlTag"?t="tag":t=="commentLine"?t="comment":t=="hamlAttribute"?t="attribute":t=="closeAttributeTag"&&(t=null),t}}},"htmlmixed","ruby"),i.defineMIME("text/x-haml","haml")})})();var h=g.exports;const v=d(h),O=T({__proto__:null,default:v},[h]);export{O as h}; diff --git a/dist-ui/assets/handlebars-Cje9LvyI.js b/dist-ui/assets/handlebars-Ccn22PqS.js similarity index 92% rename from dist-ui/assets/handlebars-Cje9LvyI.js rename to dist-ui/assets/handlebars-Ccn22PqS.js index b9d21ff3..8c057700 100644 --- a/dist-ui/assets/handlebars-Cje9LvyI.js +++ b/dist-ui/assets/handlebars-Ccn22PqS.js @@ -1 +1 @@ -import{g as m,c as l,b as g}from"./index-CFELAGmQ.js";import{r as p}from"./multiplex-CFyEzHyQ.js";function d(a,o){for(var e=0;er[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(a,o){(function(e){e(l,g(),p())})(function(e){e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",function(r,t){var n=e.getMode(r,"handlebars-tags");return!t||!t.base?n:e.multiplexingMode(e.getMode(r,t.base),{open:"{{",close:/\}\}\}?/,mode:n,parseDelimiters:!0})}),e.defineMIME("text/x-handlebars-template","handlebars")})})();var s=u.exports;const c=m(s),i=d({__proto__:null,default:c},[s]);export{s as a,i as h}; +import{g as m,c as l,b as g}from"./index-F8NPuhC5.js";import{r as p}from"./multiplex-C8wCGfI5.js";function d(a,o){for(var e=0;er[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(a,o){(function(e){e(l,g(),p())})(function(e){e.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),e.defineMode("handlebars",function(r,t){var n=e.getMode(r,"handlebars-tags");return!t||!t.base?n:e.multiplexingMode(e.getMode(r,t.base),{open:"{{",close:/\}\}\}?/,mode:n,parseDelimiters:!0})}),e.defineMIME("text/x-handlebars-template","handlebars")})})();var s=u.exports;const c=m(s),i=d({__proto__:null,default:c},[s]);export{s as a,i as h}; diff --git a/dist-ui/assets/haskell-FqRRGASE.js b/dist-ui/assets/haskell-WHZByqiW.js similarity index 98% rename from dist-ui/assets/haskell-FqRRGASE.js rename to dist-ui/assets/haskell-WHZByqiW.js index aec894a8..6a2034d9 100644 --- a/dist-ui/assets/haskell-FqRRGASE.js +++ b/dist-ui/assets/haskell-WHZByqiW.js @@ -1 +1 @@ -import{g as W,c as I}from"./index-CFELAGmQ.js";function T(d,m){for(var a=0;af[o]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(d,m){(function(a){a(I)})(function(a){a.defineMode("haskell",function(f,o){function l(e,r,t){return r(t),t(e,r)}var b=/[a-z_]/,y=/[A-Z]/,h=/\d/,F=/[0-9A-Fa-f]/,R=/[0-7]/,c=/[a-z_A-Z0-9'\xa1-\uffff]/,p=/[-!#$%&*+.\/<=>?@\\^|~:]/,k=/[(),;[\]`{}]/,g=/[ \t\v\f]/;function u(e,r){if(e.eatWhile(g))return null;var t=e.next();if(k.test(t)){if(t=="{"&&e.eat("-")){var n="comment";return e.eat("#")&&(n="meta"),l(e,r,v(n,1))}return null}if(t=="'")return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if(t=='"')return l(e,r,w);if(y.test(t))return e.eatWhile(c),e.eat(".")?"qualifier":"variable-2";if(b.test(t))return e.eatWhile(c),"variable";if(h.test(t)){if(t=="0"){if(e.eat(/[xX]/))return e.eatWhile(F),"integer";if(e.eat(/[oO]/))return e.eatWhile(R),"number"}e.eatWhile(h);var n="number";return e.match(/^\.\d+/)&&(n="number"),e.eat(/[eE]/)&&(n="number",e.eat(/[-+]/),e.eatWhile(h)),n}if(t=="."&&e.eat("."))return"keyword";if(p.test(t)){if(t=="-"&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(p)))return e.skipToEnd(),"comment";var n="variable";return t==":"&&(n="variable-2"),e.eatWhile(p),n}return"error"}function v(e,r){return r==0?u:function(t,n){for(var i=r;!t.eol();){var s=t.next();if(s=="{"&&t.eat("-"))++i;else if(s=="-"&&t.eat("}")&&(--i,i==0))return n(u),e}return n(v(e,i)),e}}function w(e,r){for(;!e.eol();){var t=e.next();if(t=='"')return r(u),"string";if(t=="\\"){if(e.eol()||e.eat(g))return r(O),"string";e.eat("&")||e.next()}}return r(u),"string error"}function O(e,r){return e.eat("\\")?l(e,r,w):(e.next(),r(u),"error")}var x=function(){var e={};function r(i){return function(){for(var s=0;s","@","~","=>"),r("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),r("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),r("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var t=o.overrideKeywords;if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}();return{startState:function(){return{f:u}},copyState:function(e){return{f:e.f}},token:function(e,r){var t=r.f(e,function(i){r.f=i}),n=e.current();return x.hasOwnProperty(n)?x[n]:t},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),a.defineMIME("text/x-haskell","haskell")})})();var E=_.exports;const z=W(E),C=T({__proto__:null,default:z},[E]);export{E as a,C as h}; +import{g as W,c as I}from"./index-F8NPuhC5.js";function T(d,m){for(var a=0;af[o]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(d,m){(function(a){a(I)})(function(a){a.defineMode("haskell",function(f,o){function l(e,r,t){return r(t),t(e,r)}var b=/[a-z_]/,y=/[A-Z]/,h=/\d/,F=/[0-9A-Fa-f]/,R=/[0-7]/,c=/[a-z_A-Z0-9'\xa1-\uffff]/,p=/[-!#$%&*+.\/<=>?@\\^|~:]/,k=/[(),;[\]`{}]/,g=/[ \t\v\f]/;function u(e,r){if(e.eatWhile(g))return null;var t=e.next();if(k.test(t)){if(t=="{"&&e.eat("-")){var n="comment";return e.eat("#")&&(n="meta"),l(e,r,v(n,1))}return null}if(t=="'")return e.eat("\\"),e.next(),e.eat("'")?"string":"string error";if(t=='"')return l(e,r,w);if(y.test(t))return e.eatWhile(c),e.eat(".")?"qualifier":"variable-2";if(b.test(t))return e.eatWhile(c),"variable";if(h.test(t)){if(t=="0"){if(e.eat(/[xX]/))return e.eatWhile(F),"integer";if(e.eat(/[oO]/))return e.eatWhile(R),"number"}e.eatWhile(h);var n="number";return e.match(/^\.\d+/)&&(n="number"),e.eat(/[eE]/)&&(n="number",e.eat(/[-+]/),e.eatWhile(h)),n}if(t=="."&&e.eat("."))return"keyword";if(p.test(t)){if(t=="-"&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(p)))return e.skipToEnd(),"comment";var n="variable";return t==":"&&(n="variable-2"),e.eatWhile(p),n}return"error"}function v(e,r){return r==0?u:function(t,n){for(var i=r;!t.eol();){var s=t.next();if(s=="{"&&t.eat("-"))++i;else if(s=="-"&&t.eat("}")&&(--i,i==0))return n(u),e}return n(v(e,i)),e}}function w(e,r){for(;!e.eol();){var t=e.next();if(t=='"')return r(u),"string";if(t=="\\"){if(e.eol()||e.eat(g))return r(O),"string";e.eat("&")||e.next()}}return r(u),"string error"}function O(e,r){return e.eat("\\")?l(e,r,w):(e.next(),r(u),"error")}var x=function(){var e={};function r(i){return function(){for(var s=0;s","@","~","=>"),r("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),r("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),r("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var t=o.overrideKeywords;if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}();return{startState:function(){return{f:u}},copyState:function(e){return{f:e.f}},token:function(e,r){var t=r.f(e,function(i){r.f=i}),n=e.current();return x.hasOwnProperty(n)?x[n]:t},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),a.defineMIME("text/x-haskell","haskell")})})();var E=_.exports;const z=W(E),C=T({__proto__:null,default:z},[E]);export{E as a,C as h}; diff --git a/dist-ui/assets/haskell-literate-O7J5RTx8.js b/dist-ui/assets/haskell-literate-CnpdECF_.js similarity index 87% rename from dist-ui/assets/haskell-literate-O7J5RTx8.js rename to dist-ui/assets/haskell-literate-CnpdECF_.js index 82559668..474109a5 100644 --- a/dist-ui/assets/haskell-literate-O7J5RTx8.js +++ b/dist-ui/assets/haskell-literate-CnpdECF_.js @@ -1 +1 @@ -import{g as f,c as u}from"./index-CFELAGmQ.js";import{a as c}from"./haskell-FqRRGASE.js";function d(a,l){for(var e=0;er[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};(function(a,l){(function(e){e(u,c)})(function(e){e.defineMode("haskell-literate",function(r,t){var n=e.getMode(r,t&&t.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(n)}},token:function(o,s){return o.sol()&&(s.inCode=o.eat(">"))?"meta":s.inCode?n.token(o,s.baseState):(o.skipToEnd(),"comment")},innerMode:function(o){return o.inCode?{state:o.baseState,mode:n}:null}}},"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")})})();var i=p.exports;const k=f(i),m=d({__proto__:null,default:k},[i]);export{m as h}; +import{g as f,c as u}from"./index-F8NPuhC5.js";import{a as c}from"./haskell-WHZByqiW.js";function d(a,l){for(var e=0;er[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};(function(a,l){(function(e){e(u,c)})(function(e){e.defineMode("haskell-literate",function(r,t){var n=e.getMode(r,t&&t.base||"haskell");return{startState:function(){return{inCode:!1,baseState:e.startState(n)}},token:function(o,s){return o.sol()&&(s.inCode=o.eat(">"))?"meta":s.inCode?n.token(o,s.baseState):(o.skipToEnd(),"comment")},innerMode:function(o){return o.inCode?{state:o.baseState,mode:n}:null}}},"haskell"),e.defineMIME("text/x-literate-haskell","haskell-literate")})})();var i=p.exports;const k=f(i),m=d({__proto__:null,default:k},[i]);export{m as h}; diff --git a/dist-ui/assets/haxe-NFZ3yuef.js b/dist-ui/assets/haxe-QFJb03Ax.js similarity index 99% rename from dist-ui/assets/haxe-NFZ3yuef.js rename to dist-ui/assets/haxe-QFJb03Ax.js index c4623bf4..f17f9635 100644 --- a/dist-ui/assets/haxe-NFZ3yuef.js +++ b/dist-ui/assets/haxe-QFJb03Ax.js @@ -1 +1 @@ -import{g as ve,c as me}from"./index-CFELAGmQ.js";function ke(E,j){for(var m=0;mu[c]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var ge={exports:{}};(function(E,j){(function(m){m(me)})(function(m){m.defineMode("haxe",function(u,c){var v=u.indentUnit;function a(e){return{type:e,style:"keyword"}}var y=a("keyword a"),P=a("keyword b"),A=a("keyword c"),ee=a("operator"),D={type:"atom",style:"atom"},O={type:"attribute",style:"attribute"},s=a("typedef"),C={if:y,while:y,else:P,do:P,try:P,return:A,break:A,continue:A,new:A,throw:A,var:a("var"),inline:O,static:O,using:a("import"),public:O,private:O,cast:a("cast"),import:a("import"),macro:a("macro"),function:a("function"),catch:a("catch"),untyped:a("untyped"),callback:a("cb"),for:a("for"),switch:a("switch"),case:a("case"),default:a("default"),in:ee,never:a("property_access"),trace:a("trace"),class:s,abstract:s,enum:s,interface:s,typedef:s,extends:s,implements:s,dynamic:s,true:D,false:D,null:D},Z=/[+\-*&%=<>!?|]/;function F(e,r,t){return r.tokenize=t,t(e,r)}function H(e,r){for(var t=!1,i;(i=e.next())!=null;){if(i==r&&!t)return!0;t=!t&&i=="\\"}}var s,L;function p(e,r,t){return s=e,L=t,r}function T(e,r){var t=e.next();if(t=='"'||t=="'")return F(e,r,re(t));if(/[\[\]{}\(\),;\:\.]/.test(t))return p(t);if(t=="0"&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),p("number","number");if(/\d/.test(t)||t=="-"&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),p("number","number");if(r.reAllowed&&t=="~"&&e.eat(/\//))return H(e,"/"),e.eatWhile(/[gimsu]/),p("regexp","string-2");if(t=="/")return e.eat("*")?F(e,r,te):e.eat("/")?(e.skipToEnd(),p("comment","comment")):(e.eatWhile(Z),p("operator",null,e.current()));if(t=="#")return e.skipToEnd(),p("conditional","meta");if(t=="@")return e.eat(/:/),e.eatWhile(/[\w_]/),p("metadata","meta");if(Z.test(t))return e.eatWhile(Z),p("operator",null,e.current());var i;if(/[A-Z]/.test(t))return e.eatWhile(/[\w_<>]/),i=e.current(),p("type","variable-3",i);e.eatWhile(/[\w_]/);var i=e.current(),x=C.propertyIsEnumerable(i)&&C[i];return x&&r.kwAllowed?p(x.type,x.style,i):p("variable","variable",i)}function re(e){return function(r,t){return H(r,e)&&(t.tokenize=T),p("string","string")}}function te(e,r){for(var t=!1,i;i=e.next();){if(i=="/"&&t){r.tokenize=T;break}t=i=="*"}return p("comment","comment")}var N={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function q(e,r,t,i,x,h){this.indented=e,this.column=r,this.type=t,this.prev=x,this.info=h,i!=null&&(this.align=i)}function ne(e,r){for(var t=e.localVars;t;t=t.next)if(t.name==r)return!0}function ie(e,r,t,i,x){var h=e.cc;for(o.state=e,o.stream=x,o.marked=null,o.cc=h,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var be=h.length?h.pop():w;if(be(t,i)){for(;h.length&&h[h.length-1].lex;)h.pop()();return o.marked?o.marked:t=="variable"&&ne(e,i)?"variable-2":t=="variable"&&ue(e,i)?"variable-3":r}}}function ue(e,r){if(/[a-z]/.test(r.charAt(0)))return!1;for(var t=e.importedtypes.length,i=0;i=0;e--)o.cc.push(arguments[e])}function n(){return g.apply(null,arguments),!0}function J(e,r){for(var t=r;t;t=t.next)if(t.name==e)return!0;return!1}function _(e){var r=o.state;if(r.context){if(o.marked="def",J(e,r.localVars))return;r.localVars={name:e,next:r.localVars}}else if(r.globalVars){if(J(e,r.globalVars))return;r.globalVars={name:e,next:r.globalVars}}}var ae={name:"this",next:null};function I(){o.state.context||(o.state.localVars=ae),o.state.context={prev:o.state.context,vars:o.state.localVars}}function z(){o.state.localVars=o.state.context.vars,o.state.context=o.state.context.prev}z.lex=!0;function l(e,r){var t=function(){var i=o.state;i.lexical=new q(i.indented,o.stream.column(),e,null,i.lexical,r)};return t.lex=!0,t}function f(){var e=o.state;e.lexical.prev&&(e.lexical.type==")"&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}f.lex=!0;function d(e){function r(t){return t==e?n():e==";"?g():n(r)}return r}function w(e){return e=="@"?n(B):e=="var"?n(l("vardef"),$,d(";"),f):e=="keyword a"?n(l("form"),b,w,f):e=="keyword b"?n(l("form"),w,f):e=="{"?n(l("}"),I,U,f,z):e==";"?n():e=="attribute"?n(K):e=="function"?n(S):e=="for"?n(l("form"),d("("),l(")"),de,d(")"),f,w,f):e=="variable"?n(l("stat"),le):e=="switch"?n(l("form"),b,l("}","switch"),d("{"),U,f,f):e=="case"?n(b,d(":")):e=="default"?n(d(":")):e=="catch"?n(l("form"),I,d("("),X,d(")"),w,f,z):e=="import"?n(Q,d(";")):e=="typedef"?n(fe):g(l("stat"),b,d(";"),f)}function b(e){return N.hasOwnProperty(e)||e=="type"?n(k):e=="function"?n(S):e=="keyword c"?n(M):e=="("?n(l(")"),M,d(")"),f,k):e=="operator"?n(b):e=="["?n(l("]"),V(M,"]"),f,k):e=="{"?n(l("}"),V(se,"}"),f,k):n()}function M(e){return e.match(/[;\}\)\],]/)?g():g(b)}function k(e,r){if(e=="operator"&&/\+\+|--/.test(r))return n(k);if(e=="operator"||e==":")return n(b);if(e!=";"){if(e=="(")return n(l(")"),V(b,")"),f,k);if(e==".")return n(ce,k);if(e=="[")return n(l("]"),b,d("]"),f,k)}}function K(e){if(e=="attribute")return n(K);if(e=="function")return n(S);if(e=="var")return n($)}function B(e){if(e==":"||e=="variable")return n(B);if(e=="(")return n(l(")"),V(oe,")"),f,w)}function oe(e){if(e=="variable")return n()}function Q(e,r){if(e=="variable"&&/[A-Z]/.test(r.charAt(0)))return G(r),n();if(e=="variable"||e=="property"||e=="."||r=="*")return n(Q)}function fe(e,r){if(e=="variable"&&/[A-Z]/.test(r.charAt(0)))return G(r),n();if(e=="type"&&/[A-Z]/.test(r.charAt(0)))return n()}function le(e){return e==":"?n(f,w):g(k,d(";"),f)}function ce(e){if(e=="variable")return o.marked="property",n()}function se(e){if(e=="variable"&&(o.marked="property"),N.hasOwnProperty(e))return n(d(":"),b)}function V(e,r){function t(i){return i==","?n(e,t):i==r?n():n(d(r))}return function(i){return i==r?n():g(e,t)}}function U(e){return e=="}"?n():g(w,U)}function $(e,r){return e=="variable"?(_(r),n(W,R)):n()}function R(e,r){if(r=="=")return n(b,R);if(e==",")return n($)}function de(e,r){return e=="variable"?(_(r),n(pe,b)):g()}function pe(e,r){if(r=="in")return n()}function S(e,r){if(e=="variable"||e=="type")return _(r),n(S);if(r=="new")return n(S);if(e=="(")return n(l(")"),I,V(X,")"),f,W,w,z)}function W(e){if(e==":")return n(xe)}function xe(e){if(e=="type"||e=="variable")return n();if(e=="{")return n(l("}"),V(he,"}"),f)}function he(e){if(e=="variable")return n(W)}function X(e,r){if(e=="variable")return _(r),n(W)}return{startState:function(e){var r=["Int","Float","String","Void","Std","Bool","Dynamic","Array"],t={tokenize:T,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new q((e||0)-v,0,"block",!1),localVars:c.localVars,importedtypes:r,context:c.localVars&&{vars:c.localVars},indented:0};return c.globalVars&&typeof c.globalVars=="object"&&(t.globalVars=c.globalVars),t},token:function(e,r){if(e.sol()&&(r.lexical.hasOwnProperty("align")||(r.lexical.align=!1),r.indented=e.indentation()),e.eatSpace())return null;var t=r.tokenize(e,r);return s=="comment"?t:(r.reAllowed=!!(s=="operator"||s=="keyword c"||s.match(/^[\[{}\(,;:]$/)),r.kwAllowed=s!=".",ie(r,t,s,L,e))},indent:function(e,r){if(e.tokenize!=T)return 0;var t=r&&r.charAt(0),i=e.lexical;i.type=="stat"&&t=="}"&&(i=i.prev);var x=i.type,h=t==x;return x=="vardef"?i.indented+4:x=="form"&&t=="{"?i.indented:x=="stat"||x=="form"?i.indented+v:i.info=="switch"&&!h?i.indented+(/^(?:case|default)\b/.test(r)?v:2*v):i.align?i.column+(h?0:1):i.indented+(h?0:v)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),m.defineMIME("text/x-haxe","haxe"),m.defineMode("hxml",function(){return{startState:function(){return{define:!1,inString:!1}},token:function(u,c){var y=u.peek(),v=u.sol();if(y=="#")return u.skipToEnd(),"comment";if(v&&y=="-"){var a="variable-2";return u.eat(/-/),u.peek()=="-"&&(u.eat(/-/),a="keyword a"),u.peek()=="D"&&(u.eat(/[D]/),a="keyword c",c.define=!0),u.eatWhile(/[A-Z]/i),a}var y=u.peek();return c.inString==!1&&y=="'"&&(c.inString=!0,u.next()),c.inString==!0?(u.skipTo("'")||u.skipToEnd(),u.peek()=="'"&&(u.next(),c.inString=!1),"string"):(u.next(),null)},lineComment:"#"}}),m.defineMIME("text/x-hxml","hxml")})})();var Y=ge.exports;const we=ve(Y),Ve=ke({__proto__:null,default:we},[Y]);export{Ve as h}; +import{g as ve,c as me}from"./index-F8NPuhC5.js";function ke(E,j){for(var m=0;mu[c]})}}}return Object.freeze(Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}))}var ge={exports:{}};(function(E,j){(function(m){m(me)})(function(m){m.defineMode("haxe",function(u,c){var v=u.indentUnit;function a(e){return{type:e,style:"keyword"}}var y=a("keyword a"),P=a("keyword b"),A=a("keyword c"),ee=a("operator"),D={type:"atom",style:"atom"},O={type:"attribute",style:"attribute"},s=a("typedef"),C={if:y,while:y,else:P,do:P,try:P,return:A,break:A,continue:A,new:A,throw:A,var:a("var"),inline:O,static:O,using:a("import"),public:O,private:O,cast:a("cast"),import:a("import"),macro:a("macro"),function:a("function"),catch:a("catch"),untyped:a("untyped"),callback:a("cb"),for:a("for"),switch:a("switch"),case:a("case"),default:a("default"),in:ee,never:a("property_access"),trace:a("trace"),class:s,abstract:s,enum:s,interface:s,typedef:s,extends:s,implements:s,dynamic:s,true:D,false:D,null:D},Z=/[+\-*&%=<>!?|]/;function F(e,r,t){return r.tokenize=t,t(e,r)}function H(e,r){for(var t=!1,i;(i=e.next())!=null;){if(i==r&&!t)return!0;t=!t&&i=="\\"}}var s,L;function p(e,r,t){return s=e,L=t,r}function T(e,r){var t=e.next();if(t=='"'||t=="'")return F(e,r,re(t));if(/[\[\]{}\(\),;\:\.]/.test(t))return p(t);if(t=="0"&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),p("number","number");if(/\d/.test(t)||t=="-"&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),p("number","number");if(r.reAllowed&&t=="~"&&e.eat(/\//))return H(e,"/"),e.eatWhile(/[gimsu]/),p("regexp","string-2");if(t=="/")return e.eat("*")?F(e,r,te):e.eat("/")?(e.skipToEnd(),p("comment","comment")):(e.eatWhile(Z),p("operator",null,e.current()));if(t=="#")return e.skipToEnd(),p("conditional","meta");if(t=="@")return e.eat(/:/),e.eatWhile(/[\w_]/),p("metadata","meta");if(Z.test(t))return e.eatWhile(Z),p("operator",null,e.current());var i;if(/[A-Z]/.test(t))return e.eatWhile(/[\w_<>]/),i=e.current(),p("type","variable-3",i);e.eatWhile(/[\w_]/);var i=e.current(),x=C.propertyIsEnumerable(i)&&C[i];return x&&r.kwAllowed?p(x.type,x.style,i):p("variable","variable",i)}function re(e){return function(r,t){return H(r,e)&&(t.tokenize=T),p("string","string")}}function te(e,r){for(var t=!1,i;i=e.next();){if(i=="/"&&t){r.tokenize=T;break}t=i=="*"}return p("comment","comment")}var N={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function q(e,r,t,i,x,h){this.indented=e,this.column=r,this.type=t,this.prev=x,this.info=h,i!=null&&(this.align=i)}function ne(e,r){for(var t=e.localVars;t;t=t.next)if(t.name==r)return!0}function ie(e,r,t,i,x){var h=e.cc;for(o.state=e,o.stream=x,o.marked=null,o.cc=h,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var be=h.length?h.pop():w;if(be(t,i)){for(;h.length&&h[h.length-1].lex;)h.pop()();return o.marked?o.marked:t=="variable"&&ne(e,i)?"variable-2":t=="variable"&&ue(e,i)?"variable-3":r}}}function ue(e,r){if(/[a-z]/.test(r.charAt(0)))return!1;for(var t=e.importedtypes.length,i=0;i=0;e--)o.cc.push(arguments[e])}function n(){return g.apply(null,arguments),!0}function J(e,r){for(var t=r;t;t=t.next)if(t.name==e)return!0;return!1}function _(e){var r=o.state;if(r.context){if(o.marked="def",J(e,r.localVars))return;r.localVars={name:e,next:r.localVars}}else if(r.globalVars){if(J(e,r.globalVars))return;r.globalVars={name:e,next:r.globalVars}}}var ae={name:"this",next:null};function I(){o.state.context||(o.state.localVars=ae),o.state.context={prev:o.state.context,vars:o.state.localVars}}function z(){o.state.localVars=o.state.context.vars,o.state.context=o.state.context.prev}z.lex=!0;function l(e,r){var t=function(){var i=o.state;i.lexical=new q(i.indented,o.stream.column(),e,null,i.lexical,r)};return t.lex=!0,t}function f(){var e=o.state;e.lexical.prev&&(e.lexical.type==")"&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}f.lex=!0;function d(e){function r(t){return t==e?n():e==";"?g():n(r)}return r}function w(e){return e=="@"?n(B):e=="var"?n(l("vardef"),$,d(";"),f):e=="keyword a"?n(l("form"),b,w,f):e=="keyword b"?n(l("form"),w,f):e=="{"?n(l("}"),I,U,f,z):e==";"?n():e=="attribute"?n(K):e=="function"?n(S):e=="for"?n(l("form"),d("("),l(")"),de,d(")"),f,w,f):e=="variable"?n(l("stat"),le):e=="switch"?n(l("form"),b,l("}","switch"),d("{"),U,f,f):e=="case"?n(b,d(":")):e=="default"?n(d(":")):e=="catch"?n(l("form"),I,d("("),X,d(")"),w,f,z):e=="import"?n(Q,d(";")):e=="typedef"?n(fe):g(l("stat"),b,d(";"),f)}function b(e){return N.hasOwnProperty(e)||e=="type"?n(k):e=="function"?n(S):e=="keyword c"?n(M):e=="("?n(l(")"),M,d(")"),f,k):e=="operator"?n(b):e=="["?n(l("]"),V(M,"]"),f,k):e=="{"?n(l("}"),V(se,"}"),f,k):n()}function M(e){return e.match(/[;\}\)\],]/)?g():g(b)}function k(e,r){if(e=="operator"&&/\+\+|--/.test(r))return n(k);if(e=="operator"||e==":")return n(b);if(e!=";"){if(e=="(")return n(l(")"),V(b,")"),f,k);if(e==".")return n(ce,k);if(e=="[")return n(l("]"),b,d("]"),f,k)}}function K(e){if(e=="attribute")return n(K);if(e=="function")return n(S);if(e=="var")return n($)}function B(e){if(e==":"||e=="variable")return n(B);if(e=="(")return n(l(")"),V(oe,")"),f,w)}function oe(e){if(e=="variable")return n()}function Q(e,r){if(e=="variable"&&/[A-Z]/.test(r.charAt(0)))return G(r),n();if(e=="variable"||e=="property"||e=="."||r=="*")return n(Q)}function fe(e,r){if(e=="variable"&&/[A-Z]/.test(r.charAt(0)))return G(r),n();if(e=="type"&&/[A-Z]/.test(r.charAt(0)))return n()}function le(e){return e==":"?n(f,w):g(k,d(";"),f)}function ce(e){if(e=="variable")return o.marked="property",n()}function se(e){if(e=="variable"&&(o.marked="property"),N.hasOwnProperty(e))return n(d(":"),b)}function V(e,r){function t(i){return i==","?n(e,t):i==r?n():n(d(r))}return function(i){return i==r?n():g(e,t)}}function U(e){return e=="}"?n():g(w,U)}function $(e,r){return e=="variable"?(_(r),n(W,R)):n()}function R(e,r){if(r=="=")return n(b,R);if(e==",")return n($)}function de(e,r){return e=="variable"?(_(r),n(pe,b)):g()}function pe(e,r){if(r=="in")return n()}function S(e,r){if(e=="variable"||e=="type")return _(r),n(S);if(r=="new")return n(S);if(e=="(")return n(l(")"),I,V(X,")"),f,W,w,z)}function W(e){if(e==":")return n(xe)}function xe(e){if(e=="type"||e=="variable")return n();if(e=="{")return n(l("}"),V(he,"}"),f)}function he(e){if(e=="variable")return n(W)}function X(e,r){if(e=="variable")return _(r),n(W)}return{startState:function(e){var r=["Int","Float","String","Void","Std","Bool","Dynamic","Array"],t={tokenize:T,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new q((e||0)-v,0,"block",!1),localVars:c.localVars,importedtypes:r,context:c.localVars&&{vars:c.localVars},indented:0};return c.globalVars&&typeof c.globalVars=="object"&&(t.globalVars=c.globalVars),t},token:function(e,r){if(e.sol()&&(r.lexical.hasOwnProperty("align")||(r.lexical.align=!1),r.indented=e.indentation()),e.eatSpace())return null;var t=r.tokenize(e,r);return s=="comment"?t:(r.reAllowed=!!(s=="operator"||s=="keyword c"||s.match(/^[\[{}\(,;:]$/)),r.kwAllowed=s!=".",ie(r,t,s,L,e))},indent:function(e,r){if(e.tokenize!=T)return 0;var t=r&&r.charAt(0),i=e.lexical;i.type=="stat"&&t=="}"&&(i=i.prev);var x=i.type,h=t==x;return x=="vardef"?i.indented+4:x=="form"&&t=="{"?i.indented:x=="stat"||x=="form"?i.indented+v:i.info=="switch"&&!h?i.indented+(/^(?:case|default)\b/.test(r)?v:2*v):i.align?i.column+(h?0:1):i.indented+(h?0:v)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),m.defineMIME("text/x-haxe","haxe"),m.defineMode("hxml",function(){return{startState:function(){return{define:!1,inString:!1}},token:function(u,c){var y=u.peek(),v=u.sol();if(y=="#")return u.skipToEnd(),"comment";if(v&&y=="-"){var a="variable-2";return u.eat(/-/),u.peek()=="-"&&(u.eat(/-/),a="keyword a"),u.peek()=="D"&&(u.eat(/[D]/),a="keyword c",c.define=!0),u.eatWhile(/[A-Z]/i),a}var y=u.peek();return c.inString==!1&&y=="'"&&(c.inString=!0,u.next()),c.inString==!0?(u.skipTo("'")||u.skipToEnd(),u.peek()=="'"&&(u.next(),c.inString=!1),"string"):(u.next(),null)},lineComment:"#"}}),m.defineMIME("text/x-hxml","hxml")})})();var Y=ge.exports;const we=ve(Y),Ve=ke({__proto__:null,default:we},[Y]);export{Ve as h}; diff --git a/dist-ui/assets/htmlembedded-CPJgkSix.js b/dist-ui/assets/htmlembedded-BowV9kW5.js similarity index 90% rename from dist-ui/assets/htmlembedded-CPJgkSix.js rename to dist-ui/assets/htmlembedded-BowV9kW5.js index 87bae2b6..fbf3f8ff 100644 --- a/dist-ui/assets/htmlembedded-CPJgkSix.js +++ b/dist-ui/assets/htmlembedded-BowV9kW5.js @@ -1 +1 @@ -import{g as i,c as l}from"./index-CFELAGmQ.js";import{r as s}from"./htmlmixed-D5WYNkec.js";import{r}from"./multiplex-CFyEzHyQ.js";function a(o,d){for(var e=0;em[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(o,d){(function(e){e(l,s(),r())})(function(e){e.defineMode("htmlembedded",function(m,t){var n=t.closeComment||"--%>";return e.multiplexingMode(e.getMode(m,"htmlmixed"),{open:t.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(c){return c.skipTo(n)||c.skipToEnd(),"comment"}}},{open:t.open||t.scriptStartRegex||"<%",close:t.close||t.scriptEndRegex||"%>",mode:e.getMode(m,t.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})})})();var p=u.exports;const x=i(p),g=a({__proto__:null,default:x},[p]);export{g as h}; +import{g as i,c as l}from"./index-F8NPuhC5.js";import{r as s}from"./htmlmixed-B3bg9pWJ.js";import{r}from"./multiplex-C8wCGfI5.js";function a(o,d){for(var e=0;em[t]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(o,d){(function(e){e(l,s(),r())})(function(e){e.defineMode("htmlembedded",function(m,t){var n=t.closeComment||"--%>";return e.multiplexingMode(e.getMode(m,"htmlmixed"),{open:t.openComment||"<%--",close:n,delimStyle:"comment",mode:{token:function(c){return c.skipTo(n)||c.skipToEnd(),"comment"}}},{open:t.open||t.scriptStartRegex||"<%",close:t.close||t.scriptEndRegex||"%>",mode:e.getMode(m,t.scriptingModeSpec)})},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})})})();var p=u.exports;const x=i(p),g=a({__proto__:null,default:x},[p]);export{g as h}; diff --git a/dist-ui/assets/htmlmixed-D5WYNkec.js b/dist-ui/assets/htmlmixed-B3bg9pWJ.js similarity index 95% rename from dist-ui/assets/htmlmixed-D5WYNkec.js rename to dist-ui/assets/htmlmixed-B3bg9pWJ.js index 051285b1..b4324986 100644 --- a/dist-ui/assets/htmlmixed-D5WYNkec.js +++ b/dist-ui/assets/htmlmixed-B3bg9pWJ.js @@ -1 +1 @@ -import{c as q,r as I,a as P}from"./index-CFELAGmQ.js";import{a as F}from"./css-B4l1-bAT.js";var M={exports:{}},y;function L(){return y||(y=1,function(H,U){(function(i){i(q,I(),P(),F)})(function(i){var k={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function $(n,l,a){var c=n.current(),o=c.search(l);return o>-1?n.backUp(c.length-o):c.match(/<\/?$/)&&(n.backUp(c.length),n.match(l,!1)||n.match(c)),a}var d={};function b(n){var l=d[n];return l||(d[n]=new RegExp("\\s+"+n+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function j(n,l){var a=n.match(b(l));return a?/^\s*(.*?)\s*$/.exec(a[2])[1]:""}function p(n,l){return new RegExp((l?"^":"")+"","i")}function v(n,l){for(var a in n)for(var c=l[a]||(l[a]=[]),o=n[a],r=o.length-1;r>=0;r--)c.unshift(o[r])}function w(n,l){for(var a=0;a=0;f--)c.script.unshift(["type",r[f].matches,r[f].mode]);function x(t,e){var u=a.token(t,e.htmlState),S=/\btag\b/.test(u),s;if(S&&!/[<>\s\/]/.test(t.current())&&(s=e.htmlState.tagName&&e.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))e.inTag=s+" ";else if(e.inTag&&S&&/>$/.test(t.current())){var g=/^([\S]+) (.*)/.exec(e.inTag);e.inTag=null;var R=t.current()==">"&&w(c[g[1]],g[2]),T=i.getMode(n,R),E=p(g[1],!0),N=p(g[1],!1);e.token=function(h,m){return h.match(E,!1)?(m.token=x,m.localState=m.localMode=null,null):$(h,N,m.localMode.token(h,m.localState))},e.localMode=T,e.localState=i.startState(T,a.indent(e.htmlState,"",""))}else e.inTag&&(e.inTag+=t.current(),t.eol()&&(e.inTag+=" "));return u}return{startState:function(){var t=i.startState(a);return{token:x,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var e;return t.localState&&(e=i.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:e,htmlState:i.copyState(a,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e,u){return!t.localMode||/^\s*<\//.test(e)?a.indent(t.htmlState,e,u):t.localMode.indent?t.localMode.indent(t.localState,e,u):i.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||a}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})}()),M.exports}export{L as r}; +import{c as q,r as I,a as P}from"./index-F8NPuhC5.js";import{a as F}from"./css-DjQyQoVX.js";var M={exports:{}},y;function L(){return y||(y=1,function(H,U){(function(i){i(q,I(),P(),F)})(function(i){var k={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function $(n,l,a){var c=n.current(),o=c.search(l);return o>-1?n.backUp(c.length-o):c.match(/<\/?$/)&&(n.backUp(c.length),n.match(l,!1)||n.match(c)),a}var d={};function b(n){var l=d[n];return l||(d[n]=new RegExp("\\s+"+n+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function j(n,l){var a=n.match(b(l));return a?/^\s*(.*?)\s*$/.exec(a[2])[1]:""}function p(n,l){return new RegExp((l?"^":"")+"","i")}function v(n,l){for(var a in n)for(var c=l[a]||(l[a]=[]),o=n[a],r=o.length-1;r>=0;r--)c.unshift(o[r])}function w(n,l){for(var a=0;a=0;f--)c.script.unshift(["type",r[f].matches,r[f].mode]);function x(t,e){var u=a.token(t,e.htmlState),S=/\btag\b/.test(u),s;if(S&&!/[<>\s\/]/.test(t.current())&&(s=e.htmlState.tagName&&e.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))e.inTag=s+" ";else if(e.inTag&&S&&/>$/.test(t.current())){var g=/^([\S]+) (.*)/.exec(e.inTag);e.inTag=null;var R=t.current()==">"&&w(c[g[1]],g[2]),T=i.getMode(n,R),E=p(g[1],!0),N=p(g[1],!1);e.token=function(h,m){return h.match(E,!1)?(m.token=x,m.localState=m.localMode=null,null):$(h,N,m.localMode.token(h,m.localState))},e.localMode=T,e.localState=i.startState(T,a.indent(e.htmlState,"",""))}else e.inTag&&(e.inTag+=t.current(),t.eol()&&(e.inTag+=" "));return u}return{startState:function(){var t=i.startState(a);return{token:x,inTag:null,localMode:null,localState:null,htmlState:t}},copyState:function(t){var e;return t.localState&&(e=i.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:e,htmlState:i.copyState(a,t.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(t,e,u){return!t.localMode||/^\s*<\//.test(e)?a.indent(t.htmlState,e,u):t.localMode.indent?t.localMode.indent(t.localState,e,u):i.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||a}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})}()),M.exports}export{L as r}; diff --git a/dist-ui/assets/htmlmixed-Dv1q6FP3.js b/dist-ui/assets/htmlmixed-CnSFGeVC.js similarity index 74% rename from dist-ui/assets/htmlmixed-Dv1q6FP3.js rename to dist-ui/assets/htmlmixed-CnSFGeVC.js index 557e9075..315719da 100644 --- a/dist-ui/assets/htmlmixed-Dv1q6FP3.js +++ b/dist-ui/assets/htmlmixed-CnSFGeVC.js @@ -1 +1 @@ -import{g as a}from"./index-CFELAGmQ.js";import{r as f}from"./htmlmixed-D5WYNkec.js";function s(r,m){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n=f();const l=a(n),u=s({__proto__:null,default:l},[n]);export{u as h}; +import{g as a}from"./index-F8NPuhC5.js";import{r as f}from"./htmlmixed-B3bg9pWJ.js";function s(r,m){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n=f();const l=a(n),u=s({__proto__:null,default:l},[n]);export{u as h}; diff --git a/dist-ui/assets/http-BNLE6Hp5.js b/dist-ui/assets/http-CaRpA_in.js similarity index 95% rename from dist-ui/assets/http-BNLE6Hp5.js rename to dist-ui/assets/http-CaRpA_in.js index 25069003..20a03462 100644 --- a/dist-ui/assets/http-BNLE6Hp5.js +++ b/dist-ui/assets/http-CaRpA_in.js @@ -1 +1 @@ -import{g as v,c as k}from"./index-CFELAGmQ.js";function y(f,l){for(var o=0;on[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(f,l){(function(o){o(k)})(function(o){o.defineMode("http",function(){function n(e,r){return e.skipToEnd(),r.cur=s,"error"}function u(e,r){return e.match(/^HTTP\/\d\.\d/)?(r.cur=c,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(r.cur=h,"keyword"):n(e,r)}function c(e,r){var i=e.match(/^\d+/);if(!i)return n(e,r);r.cur=d;var t=Number(i[0]);return t>=100&&t<200?"positive informational":t>=200&&t<300?"positive success":t>=300&&t<400?"positive redirect":t>=400&&t<500?"negative client-error":t>=500&&t<600?"negative server-error":"error"}function d(e,r){return e.skipToEnd(),r.cur=s,null}function h(e,r){return e.eatWhile(/\S/),r.cur=g,"string-2"}function g(e,r){return e.match(/^HTTP\/\d\.\d$/)?(r.cur=s,"keyword"):n(e,r)}function s(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function p(e){return e.skipToEnd(),null}return{token:function(e,r){var i=r.cur;return i!=s&&i!=p&&e.eatSpace()?null:i(e,r)},blankLine:function(e){e.cur=p},startState:function(){return{cur:u}}}}),o.defineMIME("message/http","http")})})();var a=T.exports;const b=v(a),x=y({__proto__:null,default:b},[a]);export{x as h}; +import{g as v,c as k}from"./index-F8NPuhC5.js";function y(f,l){for(var o=0;on[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(f,l){(function(o){o(k)})(function(o){o.defineMode("http",function(){function n(e,r){return e.skipToEnd(),r.cur=s,"error"}function u(e,r){return e.match(/^HTTP\/\d\.\d/)?(r.cur=c,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(r.cur=h,"keyword"):n(e,r)}function c(e,r){var i=e.match(/^\d+/);if(!i)return n(e,r);r.cur=d;var t=Number(i[0]);return t>=100&&t<200?"positive informational":t>=200&&t<300?"positive success":t>=300&&t<400?"positive redirect":t>=400&&t<500?"negative client-error":t>=500&&t<600?"negative server-error":"error"}function d(e,r){return e.skipToEnd(),r.cur=s,null}function h(e,r){return e.eatWhile(/\S/),r.cur=g,"string-2"}function g(e,r){return e.match(/^HTTP\/\d\.\d$/)?(r.cur=s,"keyword"):n(e,r)}function s(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function p(e){return e.skipToEnd(),null}return{token:function(e,r){var i=r.cur;return i!=s&&i!=p&&e.eatSpace()?null:i(e,r)},blankLine:function(e){e.cur=p},startState:function(){return{cur:u}}}}),o.defineMIME("message/http","http")})})();var a=T.exports;const b=v(a),x=y({__proto__:null,default:b},[a]);export{x as h}; diff --git a/dist-ui/assets/idl-BSjDVZnx.js b/dist-ui/assets/idl-5bPmP5bV.js similarity index 99% rename from dist-ui/assets/idl-BSjDVZnx.js rename to dist-ui/assets/idl-5bPmP5bV.js index cd8eaf66..4ba632ad 100644 --- a/dist-ui/assets/idl-BSjDVZnx.js +++ b/dist-ui/assets/idl-5bPmP5bV.js @@ -1 +1 @@ -import{g as f,c as u}from"./index-CFELAGmQ.js";function g(o,_){for(var t=0;t<_.length;t++){const r=_[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in o)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(o,_){(function(t){t(u)})(function(t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],a=r(i),l=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],n=r(l);t.registerHelper("hintWords","idl",i.concat(l));var d=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),c=/[+\-*&=<>\/@#~$]/,p=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function m(e){return e.eatSpace()?null:e.match(";")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(a)?"builtin":e.match(d)?"variable":e.match(c)||e.match(p)?"operator":(e.next(),null)}t.defineMode("idl",function(){return{token:function(e){return m(e)}}}),t.defineMIME("text/x-idl","idl")})})();var s=w.exports;const h=f(s),b=g({__proto__:null,default:h},[s]);export{b as i}; +import{g as f,c as u}from"./index-F8NPuhC5.js";function g(o,_){for(var t=0;t<_.length;t++){const r=_[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in o)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(o,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(o,_){(function(t){t(u)})(function(t){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],a=r(i),l=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],n=r(l);t.registerHelper("hintWords","idl",i.concat(l));var d=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),c=/[+\-*&=<>\/@#~$]/,p=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function m(e){return e.eatSpace()?null:e.match(";")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(n)?"keyword":e.match(a)?"builtin":e.match(d)?"variable":e.match(c)||e.match(p)?"operator":(e.next(),null)}t.defineMode("idl",function(){return{token:function(e){return m(e)}}}),t.defineMIME("text/x-idl","idl")})})();var s=w.exports;const h=f(s),b=g({__proto__:null,default:h},[s]);export{b as i}; diff --git a/dist-ui/assets/index-CFELAGmQ.js b/dist-ui/assets/index-F8NPuhC5.js similarity index 99% rename from dist-ui/assets/index-CFELAGmQ.js rename to dist-ui/assets/index-F8NPuhC5.js index 68ce3d56..3256571b 100644 --- a/dist-ui/assets/index-CFELAGmQ.js +++ b/dist-ui/assets/index-F8NPuhC5.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/dart-BLNr9Ovl.js","assets/clike-BOEQ2M-s.js","assets/django-Dp5JQfVx.js","assets/htmlmixed-D5WYNkec.js","assets/css-B4l1-bAT.js","assets/overlay-0t06YMiN.js","assets/gfm-C-arbaYn.js","assets/markdown-9_ZwbeT-.js","assets/haml-Bt2f_Nrm.js","assets/ruby-ByJpm16K.js","assets/handlebars-Cje9LvyI.js","assets/multiplex-CFyEzHyQ.js","assets/haskell-literate-O7J5RTx8.js","assets/haskell-FqRRGASE.js","assets/htmlembedded-CPJgkSix.js","assets/htmlmixed-Dv1q6FP3.js","assets/markdown-UVY52jYi.js","assets/php-D7hQD33F.js","assets/pug-CRVKTuYC.js","assets/rst-BCEzRi9A.js","assets/python-CoovIKZV.js","assets/stex-BoK3GK_-.js","assets/ruby-DIgqUQO1.js","assets/sass-Bem8n1Mc.js","assets/slim-DWjt4ndT.js","assets/soy-OpLLWLYS.js","assets/stex-5aBROWT3.js","assets/tornado-GlNJ_SrA.js","assets/twig-Bn-PQroe.js","assets/vue-DBY3U5Kv.js","assets/coffeescript-DH2pDx43.js","assets/stylus-DtmEzL5k.js","assets/yaml-frontmatter-BYPLutKI.js","assets/yaml-DW5bDHnz.js"] + __vite__mapDeps.viteFileDeps = ["assets/dart-BmTPStMN.js","assets/clike-sVYb-QDY.js","assets/django-zZkj-Hqi.js","assets/htmlmixed-B3bg9pWJ.js","assets/css-DjQyQoVX.js","assets/overlay-DMs7bKVk.js","assets/gfm-CjkhhYnD.js","assets/markdown-CYPtsbJZ.js","assets/haml-C5Q82PRH.js","assets/ruby-pfYNpgKz.js","assets/handlebars-Ccn22PqS.js","assets/multiplex-C8wCGfI5.js","assets/haskell-literate-CnpdECF_.js","assets/haskell-WHZByqiW.js","assets/htmlembedded-BowV9kW5.js","assets/htmlmixed-CnSFGeVC.js","assets/markdown-DpnrNzok.js","assets/php-P11_atJ4.js","assets/pug-Bb9DWsBH.js","assets/rst-CyVqi5D5.js","assets/python-Dj4em9Dm.js","assets/stex-DV4pK8k6.js","assets/ruby-D5w_YFnv.js","assets/sass-NOE7V4J8.js","assets/slim-DrhHX8Fp.js","assets/soy-CaLVNzhZ.js","assets/stex-DSKMaE3f.js","assets/tornado-C7GjWIPK.js","assets/twig-CYDhqQXR.js","assets/vue-CTgTb5mC.js","assets/coffeescript-DBSS_8nW.js","assets/stylus-DWX0hVte.js","assets/yaml-frontmatter-dNkK8CMx.js","assets/yaml-C7gffGpj.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -52,7 +52,7 @@ var xG=Object.defineProperty,yG=Object.defineProperties;var bG=Object.getOwnProp * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sQ=Symbol.for("react.fragment");QO.Fragment=sQ;QO.jsxDEV=void 0;var aQ=[],oQ=Symbol.for("react.element"),TT=function(){},Lf,JO=Symbol.dispose||Symbol.for("Symbol.dispose");function X3(t,e){var n=e.effect.S();return Lf=e,iQ.bind(e,t,n)}function iQ(t,e){e(),Lf=t}var PT,Q3;(PT={u:0,effect:{s:void 0,c:function(){},S:function(){return TT},d:function(){}},subscribe:function(){return TT},getSnapshot:function(){return 0},S:function(){},f:function(){}})[JO]=function(){};var lQ=Promise.prototype.then.bind(Promise.resolve());function cQ(){Q3||(Q3=lQ(function(){var t;Q3=void 0,(t=Lf)==null||t.f()}))}function e$(t){t===void 0&&(t=0),cQ();var e=v.useRef();e.current==null&&(e.current=function(r){var s,a,i,l,c=0,d=GO(function(){a=this});return a.c=function(){c=c+1|0,l&&l()},(s={u:r,effect:a,subscribe:function(p){return l=p,function(){c=c+1|0,l=void 0,d()}},getSnapshot:function(){return c},S:function(){if(Lf!=null){var p=Lf.u,f=this.u;p==0&&f==0||p==0&&f==1?(Lf.f(),i=X3(void 0,this)):p==1&&f==0||p==2&&f==0||(i=X3(Lf,this))}else i=X3(void 0,this)},f:function(){i==null||i(),i=void 0}})[JO]=function(){this.f()},s}(t));var n=e.current;return XO.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot),n.S(),n}Object.defineProperties(Na.prototype,{$$typeof:{configurable:!0,value:oQ},type:{configurable:!0,value:function(t){var e=t.data,n=e$(1);try{return e.value}finally{n.f()}}},props:{configurable:!0,get:function(){return{data:this}}},ref:{configurable:!0,value:null}});function sn(t){return e$(t)}function As(t){return v.useMemo(function(){return Rt(t)},aQ)}function at(){return at=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(n=>uQ(n,e))}function tr(...t){return v.useCallback(i5(...t),t)}const Fd=v.forwardRef((t,e)=>{const i=t,{children:n}=i,r=Ne(i,["children"]),s=v.Children.toArray(n),a=s.find(dQ);if(a){const l=a.props.children,c=s.map(d=>d===a?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:d);return v.createElement(BS,at({},r,{ref:e}),v.isValidElement(l)?v.cloneElement(l,void 0,c):null)}return v.createElement(BS,at({},r,{ref:e}),n)});Fd.displayName="Slot";const BS=v.forwardRef((t,e)=>{const s=t,{children:n}=s,r=Ne(s,["children"]);return v.isValidElement(n)?v.cloneElement(n,ae(R({},fQ(r,n.props)),{ref:e?i5(e,n.ref):n.ref})):v.Children.count(n)>1?v.Children.only(null):null});BS.displayName="SlotClone";const t$=({children:t})=>v.createElement(v.Fragment,null,t);function dQ(t){return v.isValidElement(t)&&t.type===t$}function fQ(t,e){const n=R({},e);for(const r in e){const s=t[r],a=e[r];/^on[A-Z]/.test(r)?s&&a?n[r]=(...l)=>{a(...l),s(...l)}:s&&(n[r]=s):r==="style"?n[r]=R(R({},s),a):r==="className"&&(n[r]=[s,a].filter(Boolean).join(" "))}return R(R({},t),n)}const hQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],_n=hQ.reduce((t,e)=>{const n=v.forwardRef((r,s)=>{const c=r,{asChild:a}=c,i=Ne(c,["asChild"]),l=a?Fd:e;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(l,at({},i,{ref:s}))});return n.displayName="Primitive.".concat(e),ae(R({},t),{[e]:n})},{});function I8(t,e){t&&ra.flushSync(()=>t.dispatchEvent(e))}const du=v.forwardRef((t,e)=>{var n;const a=t,{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body}=a,s=Ne(a,["container"]);return r?LO.createPortal(v.createElement(_n.div,at({},s,{ref:e})),r):null});function pQ(){for(var t=arguments.length,e=new Array(t),n=0;nr=>{e.forEach(s=>s(r))},e)}const l5=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function C0(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function A8(t){return"nodeType"in t}function Qa(t){var e,n;return t?C0(t)?t:A8(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function L8(t){const{Document:e}=Qa(t);return t instanceof e}function ix(t){return C0(t)?!1:t instanceof Qa(t).HTMLElement}function n$(t){return t instanceof Qa(t).SVGElement}function S0(t){return t?C0(t)?t.document:A8(t)?L8(t)?t:ix(t)||n$(t)?t.ownerDocument:document:document:document}const Ni=l5?v.useLayoutEffect:v.useEffect;function c5(t){const e=v.useRef(t);return Ni(()=>{e.current=t}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s{t.current=setInterval(r,s)},[]),n=v.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function dv(t,e){e===void 0&&(e=[t]);const n=v.useRef(t);return Ni(()=>{n.current!==t&&(n.current=t)},e),n}function lx(t,e){const n=v.useRef();return v.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function E2(t){const e=c5(t),n=v.useRef(null),r=v.useCallback(s=>{s!==n.current&&(e==null||e(s,n.current)),n.current=s},[]);return[n,r]}function N2(t){const e=v.useRef();return v.useEffect(()=>{e.current=t},[t]),e.current}let J3={};function cx(t,e){return v.useMemo(()=>{if(e)return e;const n=J3[t]==null?0:J3[t]+1;return J3[t]=n,t+"-"+n},[t,e])}function r$(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s{const l=Object.entries(i);for(const[c,d]of l){const p=a[c];p!=null&&(a[c]=p+t*d)}return a},R({},e))}}const km=r$(1),_2=r$(-1);function gQ(t){return"clientX"in t&&"clientY"in t}function u5(t){if(!t)return!1;const{KeyboardEvent:e}=Qa(t.target);return e&&t instanceof e}function vQ(t){if(!t)return!1;const{TouchEvent:e}=Qa(t.target);return e&&t instanceof e}function T2(t){if(vQ(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return gQ(t)?{x:t.clientX,y:t.clientY}:null}const Yo=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[Yo.Translate.toString(t),Yo.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),MT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function xQ(t){return t.matches(MT)?t:t.querySelector(MT)}const yQ={display:"none"};function bQ(t){let{id:e,value:n}=t;return Vt.createElement("div",{id:e,style:yQ},n)}function wQ(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;const s={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Vt.createElement("div",{id:e,style:s,role:"status","aria-live":r,"aria-atomic":!0},n)}function kQ(){const[t,e]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const s$=v.createContext(null);function CQ(t){const e=v.useContext(s$);v.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(t)},[t,e])}function SQ(){const[t]=v.useState(()=>new Set),e=v.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[v.useCallback(r=>{let{type:s,event:a}=r;t.forEach(i=>{var l;return(l=i[s])==null?void 0:l.call(i,a)})},[t]),e]}const jQ={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},EQ={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function NQ(t){let{announcements:e=EQ,container:n,hiddenTextDescribedById:r,screenReaderInstructions:s=jQ}=t;const{announce:a,announcement:i}=kQ(),l=cx("DndLiveRegion"),[c,d]=v.useState(!1);if(v.useEffect(()=>{d(!0)},[]),CQ(v.useMemo(()=>({onDragStart(f){let{active:m}=f;a(e.onDragStart({active:m}))},onDragMove(f){let{active:m,over:b}=f;e.onDragMove&&a(e.onDragMove({active:m,over:b}))},onDragOver(f){let{active:m,over:b}=f;a(e.onDragOver({active:m,over:b}))},onDragEnd(f){let{active:m,over:b}=f;a(e.onDragEnd({active:m,over:b}))},onDragCancel(f){let{active:m,over:b}=f;a(e.onDragCancel({active:m,over:b}))}}),[a,e])),!c)return null;const p=Vt.createElement(Vt.Fragment,null,Vt.createElement(bQ,{id:r,value:s.draggable}),Vt.createElement(wQ,{id:l,announcement:i}));return n?ra.createPortal(p,n):p}var Ts;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Ts||(Ts={}));function P2(){}function rm(t,e){return v.useMemo(()=>({sensor:t,options:e!=null?e:{}}),[t,e])}function US(){for(var t=arguments.length,e=new Array(t),n=0;n[...e].filter(r=>r!=null),[...e])}const hl=Object.freeze({x:0,y:0});function R8(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _Q(t,e){const n=T2(t);if(!n)return"0 0";const r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function O8(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function TQ(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function WS(t){let{left:e,top:n,height:r,width:s}=t;return[{x:e,y:n},{x:e+s,y:n},{x:e,y:n+r},{x:e+s,y:n+r}]}function $8(t,e){if(!t||t.length===0)return null;const[n]=t;return e?n[e]:n}function DT(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const a$=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=DT(e,e.left,e.top),a=[];for(const i of r){const{id:l}=i,c=n.get(l);if(c){const d=R8(DT(c),s);a.push({id:l,data:{droppableContainer:i,value:d}})}}return a.sort(O8)},PQ=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=WS(e),a=[];for(const i of r){const{id:l}=i,c=n.get(l);if(c){const d=WS(c),p=s.reduce((m,b,C)=>m+R8(d[C],b),0),f=Number((p/4).toFixed(4));a.push({id:l,data:{droppableContainer:i,value:f}})}}return a.sort(O8)};function MQ(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),s=Math.min(e.left+e.width,t.left+t.width),a=Math.min(e.top+e.height,t.top+t.height),i=s-r,l=a-n;if(r{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=[];for(const a of r){const{id:i}=a,l=n.get(i);if(l){const c=MQ(l,e);c>0&&s.push({id:i,data:{droppableContainer:a,value:c}})}}return s.sort(TQ)};function DQ(t,e){const{top:n,left:r,bottom:s,right:a}=e;return n<=t.y&&t.y<=s&&r<=t.x&&t.x<=a}const IQ=t=>{let{droppableContainers:e,droppableRects:n,pointerCoordinates:r}=t;if(!r)return[];const s=[];for(const a of e){const{id:i}=a,l=n.get(i);if(l&&DQ(r,l)){const d=WS(l).reduce((f,m)=>f+R8(r,m),0),p=Number((d/4).toFixed(4));s.push({id:i,data:{droppableContainer:a,value:p}})}}return s.sort(O8)};function AQ(t,e,n){return ae(R({},t),{scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1})}function o$(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:hl}function LQ(t){return function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;aae(R({},i),{top:i.top+t*l.y,bottom:i.bottom+t*l.y,left:i.left+t*l.x,right:i.right+t*l.x}),R({},n))}}const RQ=LQ(1);function i$(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function OQ(t,e,n){const r=i$(e);if(!r)return t;const{scaleX:s,scaleY:a,x:i,y:l}=r,c=t.left-i-(1-s)*parseFloat(n),d=t.top-l-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),p=s?t.width/s:t.width,f=a?t.height/a:t.height;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c}}const $Q={ignoreTransform:!1};function j0(t,e){e===void 0&&(e=$Q);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:d,transformOrigin:p}=Qa(t).getComputedStyle(t);d&&(n=OQ(n,d,p))}const{top:r,left:s,width:a,height:i,bottom:l,right:c}=n;return{top:r,left:s,width:a,height:i,bottom:l,right:c}}function IT(t){return j0(t,{ignoreTransform:!0})}function zQ(t){const e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}function FQ(t,e){return e===void 0&&(e=Qa(t).getComputedStyle(t)),e.position==="fixed"}function HQ(t,e){e===void 0&&(e=Qa(t).getComputedStyle(t));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(s=>{const a=e[s];return typeof a=="string"?n.test(a):!1})}function F8(t,e){const n=[];function r(s){if(e!=null&&n.length>=e||!s)return n;if(L8(s)&&s.scrollingElement!=null&&!n.includes(s.scrollingElement))return n.push(s.scrollingElement),n;if(!ix(s)||n$(s)||n.includes(s))return n;const a=Qa(t).getComputedStyle(s);return s!==t&&HQ(s,a)&&n.push(s),FQ(s,a)?n:r(s.parentNode)}return t?r(t):n}function l$(t){const[e]=F8(t,1);return e!=null?e:null}function eC(t){return!l5||!t?null:C0(t)?t:A8(t)?L8(t)||t===S0(t).scrollingElement?window:ix(t)?t:null:null}function c$(t){return C0(t)?t.scrollX:t.scrollLeft}function u$(t){return C0(t)?t.scrollY:t.scrollTop}function VS(t){return{x:c$(t),y:u$(t)}}var Us;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Us||(Us={}));function d$(t){return!l5||!t?!1:t===document.scrollingElement}function f$(t){const e={x:0,y:0},n=d$(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},s=t.scrollTop<=e.y,a=t.scrollLeft<=e.x,i=t.scrollTop>=r.y,l=t.scrollLeft>=r.x;return{isTop:s,isLeft:a,isBottom:i,isRight:l,maxScroll:r,minScroll:e}}const BQ={x:.2,y:.2};function UQ(t,e,n,r,s){let{top:a,left:i,right:l,bottom:c}=n;r===void 0&&(r=10),s===void 0&&(s=BQ);const{isTop:d,isBottom:p,isLeft:f,isRight:m}=f$(t),b={x:0,y:0},C={x:0,y:0},g={height:e.height*s.y,width:e.width*s.x};return!d&&a<=e.top+g.height?(b.y=Us.Backward,C.y=r*Math.abs((e.top+g.height-a)/g.height)):!p&&c>=e.bottom-g.height&&(b.y=Us.Forward,C.y=r*Math.abs((e.bottom-g.height-c)/g.height)),!m&&l>=e.right-g.width?(b.x=Us.Forward,C.x=r*Math.abs((e.right-g.width-l)/g.width)):!f&&i<=e.left+g.width&&(b.x=Us.Backward,C.x=r*Math.abs((e.left+g.width-i)/g.width)),{direction:b,speed:C}}function WQ(t){if(t===document.scrollingElement){const{innerWidth:a,innerHeight:i}=window;return{top:0,left:0,right:a,bottom:i,width:a,height:i}}const{top:e,left:n,right:r,bottom:s}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:s,width:t.clientWidth,height:t.clientHeight}}function h$(t){return t.reduce((e,n)=>km(e,VS(n)),hl)}function VQ(t){return t.reduce((e,n)=>e+c$(n),0)}function qQ(t){return t.reduce((e,n)=>e+u$(n),0)}function p$(t,e){if(e===void 0&&(e=j0),!t)return;const{top:n,left:r,bottom:s,right:a}=e(t);l$(t)&&(s<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const KQ=[["x",["left","right"],VQ],["y",["top","bottom"],qQ]];class H8{constructor(e,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=F8(n),s=h$(r);this.rect=R({},e),this.width=e.width,this.height=e.height;for(const[a,i,l]of KQ)for(const c of i)Object.defineProperty(this,c,{get:()=>{const d=l(r),p=s[a]-d;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class N1{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=e}add(e,n,r){var s;(s=this.target)==null||s.addEventListener(e,n,r),this.listeners.push([e,n,r])}}function GQ(t){const{EventTarget:e}=Qa(t);return t instanceof e?t:S0(t)}function tC(t,e){const n=Math.abs(t.x),r=Math.abs(t.y);return typeof e=="number"?Math.sqrt(kg(n,2)+kg(r,2))>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e?r>e.y:!1}var hi;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(hi||(hi={}));function AT(t){t.preventDefault()}function YQ(t){t.stopPropagation()}var qn;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter"})(qn||(qn={}));const m$={start:[qn.Space,qn.Enter],cancel:[qn.Esc],end:[qn.Space,qn.Enter]},ZQ=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case qn.Right:return ae(R({},n),{x:n.x+25});case qn.Left:return ae(R({},n),{x:n.x-25});case qn.Down:return ae(R({},n),{y:n.y+25});case qn.Up:return ae(R({},n),{y:n.y-25})}};class fv{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new N1(S0(n)),this.windowListeners=new N1(Qa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hi.Resize,this.handleCancel),this.windowListeners.add(hi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,r=e.node.current;r&&p$(r),n(hl)}handleKeyDown(e){if(u5(e)){const{active:n,context:r,options:s}=this.props,{keyboardCodes:a=m$,coordinateGetter:i=ZQ,scrollBehavior:l="smooth"}=s,{code:c}=e;if(a.end.includes(c)){this.handleEnd(e);return}if(a.cancel.includes(c)){this.handleCancel(e);return}const{collisionRect:d}=r.current,p=d?{x:d.left,y:d.top}:hl;this.referenceCoordinates||(this.referenceCoordinates=p);const f=i(e,{active:n,context:r.current,currentCoordinates:p});if(f){const m=_2(f,p),b={x:0,y:0},{scrollableAncestors:C}=r.current;for(const g of C){const w=e.code,{isTop:x,isRight:S,isLeft:E,isBottom:N,maxScroll:_,minScroll:P}=f$(g),I=WQ(g),T={x:Math.min(w===qn.Right?I.right-I.width/2:I.right,Math.max(w===qn.Right?I.left:I.left+I.width/2,f.x)),y:Math.min(w===qn.Down?I.bottom-I.height/2:I.bottom,Math.max(w===qn.Down?I.top:I.top+I.height/2,f.y))},L=w===qn.Right&&!S||w===qn.Left&&!E,A=w===qn.Down&&!N||w===qn.Up&&!x;if(L&&T.x!==f.x){const z=g.scrollLeft+m.x,Y=w===qn.Right&&z<=_.x||w===qn.Left&&z>=P.x;if(Y&&!m.y){g.scrollTo({left:z,behavior:l});return}Y?b.x=g.scrollLeft-z:b.x=w===qn.Right?g.scrollLeft-_.x:g.scrollLeft-P.x,b.x&&g.scrollBy({left:-b.x,behavior:l});break}else if(A&&T.y!==f.y){const z=g.scrollTop+m.y,Y=w===qn.Down&&z<=_.y||w===qn.Up&&z>=P.y;if(Y&&!m.x){g.scrollTo({top:z,behavior:l});return}Y?b.y=g.scrollTop-z:b.y=w===qn.Down?g.scrollTop-_.y:g.scrollTop-P.y,b.y&&g.scrollBy({top:-b.y,behavior:l});break}}this.handleMove(e,km(_2(f,this.referenceCoordinates),b))}}}handleMove(e,n){const{onMove:r}=this.props;e.preventDefault(),r(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}fv.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=m$,onActivation:s}=e,{active:a}=n;const{code:i}=t.nativeEvent;if(r.start.includes(i)){const l=a.activatorNode.current;return l&&t.target!==l?!1:(t.preventDefault(),s==null||s({event:t.nativeEvent}),!0)}return!1}}];function LT(t){return!!(t&&"distance"in t)}function RT(t){return!!(t&&"delay"in t)}class B8{constructor(e,n,r){var s;r===void 0&&(r=GQ(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=n;const{event:a}=e,{target:i}=a;this.props=e,this.events=n,this.document=S0(i),this.documentListeners=new N1(this.document),this.listeners=new N1(r),this.windowListeners=new N1(Qa(i)),this.initialCoordinates=(s=T2(a))!=null?s:hl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(hi.Resize,this.handleCancel),this.windowListeners.add(hi.DragStart,AT),this.windowListeners.add(hi.VisibilityChange,this.handleCancel),this.windowListeners.add(hi.ContextMenu,AT),this.documentListeners.add(hi.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RT(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(LT(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(hi.Click,YQ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hi.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:r,initialCoordinates:s,props:a}=this,{onMove:i,options:{activationConstraint:l}}=a;if(!s)return;const c=(n=T2(e))!=null?n:hl,d=_2(s,c);if(!r&&l){if(LT(l)){if(l.tolerance!=null&&tC(d,l.tolerance))return this.handleCancel();if(tC(d,l.distance))return this.handleStart()}return RT(l)&&tC(d,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===qn.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const XQ={move:{name:"pointermove"},end:{name:"pointerup"}};class hv extends B8{constructor(e){const{event:n}=e,r=S0(n.target);super(e,XQ,r)}}hv.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const QQ={move:{name:"mousemove"},end:{name:"mouseup"}};var qS;(function(t){t[t.RightClick=2]="RightClick"})(qS||(qS={}));class JQ extends B8{constructor(e){super(e,QQ,S0(e.event.target))}}JQ.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button===qS.RightClick?!1:(r==null||r({event:n}),!0)}}];const nC={move:{name:"touchmove"},end:{name:"touchend"}};class eJ extends B8{constructor(e){super(e,nC)}static setup(){return window.addEventListener(nC.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(nC.move.name,e)};function e(){}}}eJ.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;const{touches:s}=n;return s.length>1?!1:(r==null||r({event:n}),!0)}}];var _1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(_1||(_1={}));var M2;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(M2||(M2={}));function tJ(t){let{acceleration:e,activator:n=_1.Pointer,canScroll:r,draggingRect:s,enabled:a,interval:i=5,order:l=M2.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:p,delta:f,threshold:m}=t;const b=rJ({delta:f,disabled:!a}),[C,g]=mQ(),w=v.useRef({x:0,y:0}),x=v.useRef({x:0,y:0}),S=v.useMemo(()=>{switch(n){case _1.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case _1.DraggableRect:return s}},[n,s,c]),E=v.useRef(null),N=v.useCallback(()=>{const P=E.current;if(!P)return;const I=w.current.x*x.current.x,T=w.current.y*x.current.y;P.scrollBy(I,T)},[]),_=v.useMemo(()=>l===M2.TreeOrder?[...d].reverse():d,[l,d]);v.useEffect(()=>{if(!a||!d.length||!S){g();return}for(const P of _){if((r==null?void 0:r(P))===!1)continue;const I=d.indexOf(P),T=p[I];if(!T)continue;const{direction:L,speed:A}=UQ(P,T,S,e,m);for(const z of["x","y"])b[z][L[z]]||(A[z]=0,L[z]=0);if(A.x>0||A.y>0){g(),E.current=P,C(N,i),w.current=A,x.current=L;return}}w.current={x:0,y:0},x.current={x:0,y:0},g()},[e,N,r,g,a,i,JSON.stringify(S),JSON.stringify(b),C,d,_,p,JSON.stringify(m)])}const nJ={x:{[Us.Backward]:!1,[Us.Forward]:!1},y:{[Us.Backward]:!1,[Us.Forward]:!1}};function rJ(t){let{delta:e,disabled:n}=t;const r=N2(e);return lx(s=>{if(n||!r||!s)return nJ;const a={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Us.Backward]:s.x[Us.Backward]||a.x===-1,[Us.Forward]:s.x[Us.Forward]||a.x===1},y:{[Us.Backward]:s.y[Us.Backward]||a.y===-1,[Us.Forward]:s.y[Us.Forward]||a.y===1}}},[n,e,r])}function sJ(t,e){const n=e!==null?t.get(e):void 0,r=n?n.node.current:null;return lx(s=>{var a;return e===null?null:(a=r!=null?r:s)!=null?a:null},[r,e])}function aJ(t,e){return v.useMemo(()=>t.reduce((n,r)=>{const{sensor:s}=r,a=s.activators.map(i=>({eventName:i.eventName,handler:e(i.handler,r)}));return[...n,...a]},[]),[t,e])}var yh;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(yh||(yh={}));var KS;(function(t){t.Optimized="optimized"})(KS||(KS={}));const OT=new Map;function oJ(t,e){let{dragging:n,dependencies:r,config:s}=e;const[a,i]=v.useState(null),{frequency:l,measure:c,strategy:d}=s,p=v.useRef(t),f=w(),m=dv(f),b=v.useCallback(function(x){x===void 0&&(x=[]),!m.current&&i(S=>S===null?x:S.concat(x.filter(E=>!S.includes(E))))},[m]),C=v.useRef(null),g=lx(x=>{if(f&&!n)return OT;if(!x||x===OT||p.current!==t||a!=null){const S=new Map;for(let E of t){if(!E)continue;if(a&&a.length>0&&!a.includes(E.id)&&E.rect.current){S.set(E.id,E.rect.current);continue}const N=E.node.current,_=N?new H8(c(N),N):null;E.rect.current=_,_&&S.set(E.id,_)}return S}return x},[t,a,n,f,c]);return v.useEffect(()=>{p.current=t},[t]),v.useEffect(()=>{f||b()},[n,f]),v.useEffect(()=>{a&&a.length>0&&i(null)},[JSON.stringify(a)]),v.useEffect(()=>{f||typeof l!="number"||C.current!==null||(C.current=setTimeout(()=>{b(),C.current=null},l))},[l,f,b,...r]),{droppableRects:g,measureDroppableContainers:b,measuringScheduled:a!=null};function w(){switch(d){case yh.Always:return!1;case yh.BeforeDragging:return n;default:return!n}}}function U8(t,e){return lx(n=>t?n||(typeof e=="function"?e(t):t):null,[e,t])}function iJ(t,e){return U8(t,e)}function lJ(t){let{callback:e,disabled:n}=t;const r=c5(e),s=v.useMemo(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return v.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function d5(t){let{callback:e,disabled:n}=t;const r=c5(e),s=v.useMemo(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return v.useEffect(()=>()=>s==null?void 0:s.disconnect(),[s]),s}function cJ(t){return new H8(j0(t),t)}function $T(t,e,n){e===void 0&&(e=cJ);const[r,s]=v.useReducer(l,null),a=lJ({callback(c){if(t)for(const d of c){const{type:p,target:f}=d;if(p==="childList"&&f instanceof HTMLElement&&f.contains(t)){s();break}}}}),i=d5({callback:s});return Ni(()=>{s(),t?(i==null||i.observe(t),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),a==null||a.disconnect())},[t]),r;function l(c){if(!t)return null;if(t.isConnected===!1){var d;return(d=c!=null?c:n)!=null?d:null}const p=e(t);return JSON.stringify(c)===JSON.stringify(p)?c:p}}function uJ(t){const e=U8(t);return o$(t,e)}const zT=[];function dJ(t){const e=v.useRef(t),n=lx(r=>t?r&&r!==zT&&t&&e.current&&t.parentNode===e.current.parentNode?r:F8(t):zT,[t]);return v.useEffect(()=>{e.current=t},[t]),n}function fJ(t){const[e,n]=v.useState(null),r=v.useRef(t),s=v.useCallback(a=>{const i=eC(a.target);i&&n(l=>l?(l.set(i,VS(i)),new Map(l)):null)},[]);return v.useEffect(()=>{const a=r.current;if(t!==a){i(a);const l=t.map(c=>{const d=eC(c);return d?(d.addEventListener("scroll",s,{passive:!0}),[d,VS(d)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=t}return()=>{i(t),i(a)};function i(l){l.forEach(c=>{const d=eC(c);d==null||d.removeEventListener("scroll",s)})}},[s,t]),v.useMemo(()=>t.length?e?Array.from(e.values()).reduce((a,i)=>km(a,i),hl):h$(t):hl,[t,e])}function FT(t,e){e===void 0&&(e=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},e),v.useEffect(()=>{const r=t!==hl;r&&!n.current&&(n.current=t),!r&&n.current&&(n.current=null)},[t]),n.current?_2(t,n.current):hl}function hJ(t){v.useEffect(()=>{if(!l5)return;const e=t.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of e)n==null||n()}},t.map(e=>{let{sensor:n}=e;return n}))}function pJ(t,e){return v.useMemo(()=>t.reduce((n,r)=>{let{eventName:s,handler:a}=r;return n[s]=i=>{a(i,e)},n},{}),[t,e])}function g$(t){return v.useMemo(()=>t?zQ(t):null,[t])}const rC=[];function mJ(t,e){e===void 0&&(e=j0);const[n]=t,r=g$(n?Qa(n):null),[s,a]=v.useReducer(l,rC),i=d5({callback:a});return t.length>0&&s===rC&&a(),Ni(()=>{t.length?t.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),a())},[t]),s;function l(){return t.length?t.map(c=>d$(c)?r:new H8(e(c),c)):rC}}function v$(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return ix(e)?e:t}function gJ(t){let{measure:e}=t;const[n,r]=v.useState(null),s=v.useCallback(d=>{for(const{target:p}of d)if(ix(p)){r(f=>{const m=e(p);return f?ae(R({},f),{width:m.width,height:m.height}):m});break}},[e]),a=d5({callback:s}),i=v.useCallback(d=>{const p=v$(d);a==null||a.disconnect(),p&&(a==null||a.observe(p)),r(p?e(p):null)},[e,a]),[l,c]=E2(i);return v.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const vJ=[{sensor:hv,options:{}},{sensor:fv,options:{}}],xJ={current:{}},Db={draggable:{measure:IT},droppable:{measure:IT,strategy:yh.WhileDragging,frequency:KS.Optimized},dragOverlay:{measure:j0}};class T1 extends Map{get(e){var n;return e!=null&&(n=super.get(e))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,r;return(n=(r=this.get(e))==null?void 0:r.node.current)!=null?n:void 0}}const yJ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new T1,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:P2},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Db,measureDroppableContainers:P2,windowRect:null,measuringScheduled:!1},x$={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:P2,draggableNodes:new Map,over:null,measureDroppableContainers:P2},ux=v.createContext(x$),y$=v.createContext(yJ);function bJ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new T1}}}function wJ(t,e){switch(e.type){case Ts.DragStart:return ae(R({},t),{draggable:ae(R({},t.draggable),{initialCoordinates:e.initialCoordinates,active:e.active})});case Ts.DragMove:return t.draggable.active?ae(R({},t),{draggable:ae(R({},t.draggable),{translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}})}):t;case Ts.DragEnd:case Ts.DragCancel:return ae(R({},t),{draggable:ae(R({},t.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Ts.RegisterDroppable:{const{element:n}=e,{id:r}=n,s=new T1(t.droppable.containers);return s.set(r,n),ae(R({},t),{droppable:ae(R({},t.droppable),{containers:s})})}case Ts.SetDroppableDisabled:{const{id:n,key:r,disabled:s}=e,a=t.droppable.containers.get(n);if(!a||r!==a.key)return t;const i=new T1(t.droppable.containers);return i.set(n,ae(R({},a),{disabled:s})),ae(R({},t),{droppable:ae(R({},t.droppable),{containers:i})})}case Ts.UnregisterDroppable:{const{id:n,key:r}=e,s=t.droppable.containers.get(n);if(!s||r!==s.key)return t;const a=new T1(t.droppable.containers);return a.delete(n),ae(R({},t),{droppable:ae(R({},t.droppable),{containers:a})})}default:return t}}function kJ(t){let{disabled:e}=t;const{active:n,activatorEvent:r,draggableNodes:s}=v.useContext(ux),a=N2(r),i=N2(n==null?void 0:n.id);return v.useEffect(()=>{if(!e&&!r&&a&&i!=null){if(!u5(a)||document.activeElement===a.target)return;const l=s.get(i);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[c.current,d.current]){if(!p)continue;const f=xQ(p);if(f){f.focus();break}}})}},[r,e,s,i,a]),null}function b$(t,e){let s=e,{transform:n}=s,r=Ne(s,["transform"]);return t!=null&&t.length?t.reduce((a,i)=>i(R({transform:a},r)),n):n}function CJ(t){return v.useMemo(()=>({draggable:R(R({},Db.draggable),t==null?void 0:t.draggable),droppable:R(R({},Db.droppable),t==null?void 0:t.droppable),dragOverlay:R(R({},Db.dragOverlay),t==null?void 0:t.dragOverlay)}),[t==null?void 0:t.draggable,t==null?void 0:t.droppable,t==null?void 0:t.dragOverlay])}function SJ(t){let{activeNode:e,measure:n,initialRect:r,config:s=!0}=t;const a=v.useRef(!1),{x:i,y:l}=typeof s=="boolean"?{x:s,y:s}:s;Ni(()=>{if(!i&&!l||!e){a.current=!1;return}if(a.current||!r)return;const d=e==null?void 0:e.node.current;if(!d||d.isConnected===!1)return;const p=n(d),f=o$(p,r);if(i||(f.x=0),l||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const m=l$(d);m&&m.scrollBy({top:f.y,left:f.x})}},[e,i,l,r,n])}const f5=v.createContext(ae(R({},hl),{scaleX:1,scaleY:1}));var Xu;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Xu||(Xu={}));const W8=v.memo(function(e){var n,r,s,a;let we=e,{id:i,accessibility:l,autoScroll:c=!0,children:d,sensors:p=vJ,collisionDetection:f=z8,measuring:m,modifiers:b}=we,C=Ne(we,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const g=v.useReducer(wJ,void 0,bJ),[w,x]=g,[S,E]=SQ(),[N,_]=v.useState(Xu.Uninitialized),P=N===Xu.Initialized,{draggable:{active:I,nodes:T,translate:L},droppable:{containers:A}}=w,z=I?T.get(I):null,Y=v.useRef({initial:null,translated:null}),O=v.useMemo(()=>{var Se;return I!=null?{id:I,data:(Se=z==null?void 0:z.data)!=null?Se:xJ,rect:Y}:null},[I,z]),$=v.useRef(null),[M,W]=v.useState(null),[V,U]=v.useState(null),J=dv(C,Object.values(C)),H=cx("DndDescribedBy",i),F=v.useMemo(()=>A.getEnabled(),[A]),q=CJ(m),{droppableRects:X,measureDroppableContainers:te,measuringScheduled:ee}=oJ(F,{dragging:P,dependencies:[L.x,L.y],config:q.droppable}),G=sJ(T,I),Z=v.useMemo(()=>V?T2(V):null,[V]),le=jt(),se=iJ(G,q.draggable.measure);SJ({activeNode:I?T.get(I):null,config:le.layoutShiftCompensation,initialRect:se,measure:q.draggable.measure});const de=$T(G,q.draggable.measure,se),ce=$T(G?G.parentElement:null),ye=v.useRef({activatorEvent:null,active:null,activeNode:G,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:A,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),pe=A.getNodeFor((n=ye.current.over)==null?void 0:n.id),me=gJ({measure:q.dragOverlay.measure}),be=(r=me.nodeRef.current)!=null?r:G,Ee=P?(s=me.rect)!=null?s:de:null,We=!!(me.nodeRef.current&&me.rect),qe=uJ(We?null:de),ot=g$(be?Qa(be):null),Ve=dJ(P?pe!=null?pe:G:null),Ge=mJ(Ve),ft=b$(b,{transform:{x:L.x-qe.x,y:L.y-qe.y,scaleX:1,scaleY:1},activatorEvent:V,active:O,activeNodeRect:de,containerNodeRect:ce,draggingNodeRect:Ee,over:ye.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ve,scrollableAncestorRects:Ge,windowRect:ot}),Ie=Z?km(Z,L):null,Ke=fJ(Ve),ut=FT(Ke),$e=FT(Ke,[de]),ht=km(ft,ut),Fe=Ee?RQ(Ee,ft):null,pt=O&&Fe?f({active:O,collisionRect:Fe,droppableRects:X,droppableContainers:F,pointerCoordinates:Ie}):null,Qe=$8(pt,"id"),[Lt,Ut]=v.useState(null),wt=We?ft:km(ft,$e),Xt=AQ(wt,(a=Lt==null?void 0:Lt.rect)!=null?a:null,de),$t=v.useCallback((Se,De)=>{let{sensor:nt,options:Pe}=De;if($.current==null)return;const gt=T.get($.current);if(!gt)return;const Ze=Se.nativeEvent,Re=new nt({active:$.current,activeNode:gt,event:Ze,options:Pe,context:ye,onStart(et){const Et=$.current;if(Et==null)return;const bt=T.get(Et);if(!bt)return;const{onDragStart:_t}=J.current,Mt={active:{id:Et,data:bt.data,rect:Y}};ra.unstable_batchedUpdates(()=>{_t==null||_t(Mt),_(Xu.Initializing),x({type:Ts.DragStart,initialCoordinates:et,active:Et}),S({type:"onDragStart",event:Mt})})},onMove(et){x({type:Ts.DragMove,coordinates:et})},onEnd:Oe(Ts.DragEnd),onCancel:Oe(Ts.DragCancel)});ra.unstable_batchedUpdates(()=>{W(Re),U(Se.nativeEvent)});function Oe(et){return function(){return ge(this,null,function*(){const{active:bt,collisions:_t,over:Mt,scrollAdjustedTranslate:an}=ye.current;let dn=null;if(bt&&an){const{cancelDrop:fn}=J.current;dn={activatorEvent:Ze,active:bt,collisions:_t,delta:an,over:Mt},et===Ts.DragEnd&&typeof fn=="function"&&(yield Promise.resolve(fn(dn)))&&(et=Ts.DragCancel)}$.current=null,ra.unstable_batchedUpdates(()=>{x({type:et}),_(Xu.Uninitialized),Ut(null),W(null),U(null);const fn=et===Ts.DragEnd?"onDragEnd":"onDragCancel";if(dn){const mn=J.current[fn];mn==null||mn(dn),S({type:fn,event:dn})}})})}}},[T]),tn=v.useCallback((Se,De)=>(nt,Pe)=>{const gt=nt.nativeEvent,Ze=T.get(Pe);if($.current!==null||!Ze||gt.dndKit||gt.defaultPrevented)return;const Re={active:Ze};Se(nt,De.options,Re)===!0&&(gt.dndKit={capturedBy:De.sensor},$.current=Pe,$t(nt,De))},[T,$t]),Pt=aJ(p,tn);hJ(p),Ni(()=>{de&&N===Xu.Initializing&&_(Xu.Initialized)},[de,N]),v.useEffect(()=>{const{onDragMove:Se}=J.current,{active:De,activatorEvent:nt,collisions:Pe,over:gt}=ye.current;if(!De||!nt)return;const Ze={active:De,activatorEvent:nt,collisions:Pe,delta:{x:ht.x,y:ht.y},over:gt};ra.unstable_batchedUpdates(()=>{Se==null||Se(Ze),S({type:"onDragMove",event:Ze})})},[ht.x,ht.y]),v.useEffect(()=>{const{active:Se,activatorEvent:De,collisions:nt,droppableContainers:Pe,scrollAdjustedTranslate:gt}=ye.current;if(!Se||$.current==null||!De||!gt)return;const{onDragOver:Ze}=J.current,Re=Pe.get(Qe),Oe=Re&&Re.rect.current?{id:Re.id,rect:Re.rect.current,data:Re.data,disabled:Re.disabled}:null,et={active:Se,activatorEvent:De,collisions:nt,delta:{x:gt.x,y:gt.y},over:Oe};ra.unstable_batchedUpdates(()=>{Ut(Oe),Ze==null||Ze(et),S({type:"onDragOver",event:et})})},[Qe]),Ni(()=>{ye.current={activatorEvent:V,active:O,activeNode:G,collisionRect:Fe,collisions:pt,droppableRects:X,draggableNodes:T,draggingNode:be,draggingNodeRect:Ee,droppableContainers:A,over:Lt,scrollableAncestors:Ve,scrollAdjustedTranslate:ht},Y.current={initial:Ee,translated:Fe}},[O,G,pt,Fe,T,be,Ee,X,A,Lt,Ve,ht]),tJ(ae(R({},le),{delta:L,draggingRect:Fe,pointerCoordinates:Ie,scrollableAncestors:Ve,scrollableAncestorRects:Ge}));const Ue=v.useMemo(()=>({active:O,activeNode:G,activeNodeRect:de,activatorEvent:V,collisions:pt,containerNodeRect:ce,dragOverlay:me,draggableNodes:T,droppableContainers:A,droppableRects:X,over:Lt,measureDroppableContainers:te,scrollableAncestors:Ve,scrollableAncestorRects:Ge,measuringConfiguration:q,measuringScheduled:ee,windowRect:ot}),[O,G,de,V,pt,ce,me,T,A,X,Lt,te,Ve,Ge,q,ee,ot]),Je=v.useMemo(()=>({activatorEvent:V,activators:Pt,active:O,activeNodeRect:de,ariaDescribedById:{draggable:H},dispatch:x,draggableNodes:T,over:Lt,measureDroppableContainers:te}),[V,Pt,O,de,x,H,T,Lt,te]);return Vt.createElement(s$.Provider,{value:E},Vt.createElement(ux.Provider,{value:Je},Vt.createElement(y$.Provider,{value:Ue},Vt.createElement(f5.Provider,{value:Xt},d)),Vt.createElement(kJ,{disabled:(l==null?void 0:l.restoreFocus)===!1})),Vt.createElement(NQ,ae(R({},l),{hiddenTextDescribedById:H})));function jt(){const Se=(M==null?void 0:M.autoScrollEnabled)===!1,De=typeof c=="object"?c.enabled===!1:c===!1,nt=P&&!Se&&!De;return typeof c=="object"?ae(R({},c),{enabled:nt}):{enabled:nt}}}),jJ=v.createContext(null),HT="button",EJ="Droppable";function w$(t){let{id:e,data:n,disabled:r=!1,attributes:s}=t;const a=cx(EJ),{activators:i,activatorEvent:l,active:c,activeNodeRect:d,ariaDescribedById:p,draggableNodes:f,over:m}=v.useContext(ux),{role:b=HT,roleDescription:C="draggable",tabIndex:g=0}=s!=null?s:{},w=(c==null?void 0:c.id)===e,x=v.useContext(w?f5:jJ),[S,E]=E2(),[N,_]=E2(),P=pJ(i,e),I=dv(n);Ni(()=>(f.set(e,{id:e,key:a,node:S,activatorNode:N,data:I}),()=>{const L=f.get(e);L&&L.key===a&&f.delete(e)}),[f,e]);const T=v.useMemo(()=>({role:b,tabIndex:g,"aria-disabled":r,"aria-pressed":w&&b===HT?!0:void 0,"aria-roledescription":C,"aria-describedby":p.draggable}),[r,b,g,w,C,p.draggable]);return{active:c,activatorEvent:l,activeNodeRect:d,attributes:T,isDragging:w,listeners:r?void 0:P,node:S,over:m,setNodeRef:E,setActivatorNodeRef:_,transform:x}}function k$(){return v.useContext(y$)}const NJ="Droppable",_J={timeout:25};function h5(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:s}=t;const a=cx(NJ),{active:i,dispatch:l,over:c,measureDroppableContainers:d}=v.useContext(ux),p=v.useRef({disabled:n}),f=v.useRef(!1),m=v.useRef(null),b=v.useRef(null),{disabled:C,updateMeasurementsFor:g,timeout:w}=R(R({},_J),s),x=dv(g!=null?g:r),S=v.useCallback(()=>{if(!f.current){f.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{d(Array.isArray(x.current)?x.current:[x.current]),b.current=null},w)},[w]),E=d5({callback:S,disabled:C||!i}),N=v.useCallback((T,L)=>{E&&(L&&(E.unobserve(L),f.current=!1),T&&E.observe(T))},[E]),[_,P]=E2(N),I=dv(e);return v.useEffect(()=>{!E||!_.current||(E.disconnect(),f.current=!1,E.observe(_.current))},[_,E]),Ni(()=>(l({type:Ts.RegisterDroppable,element:{id:r,key:a,disabled:n,node:_,rect:m,data:I}}),()=>l({type:Ts.UnregisterDroppable,key:a,id:r})),[r]),v.useEffect(()=>{n!==p.current.disabled&&(l({type:Ts.SetDroppableDisabled,id:r,key:a,disabled:n}),p.current.disabled=n)},[r,a,n,l]),{active:i,rect:m,isOver:(c==null?void 0:c.id)===r,node:_,over:c,setNodeRef:P}}function TJ(t){let{animation:e,children:n}=t;const[r,s]=v.useState(null),[a,i]=v.useState(null),l=N2(n);return!n&&!r&&l&&s(l),Ni(()=>{if(!a)return;const c=r==null?void 0:r.key,d=r==null?void 0:r.props.id;if(c==null||d==null){s(null);return}Promise.resolve(e(d,a)).then(()=>{s(null)})},[e,r,a]),Vt.createElement(Vt.Fragment,null,n,r?v.cloneElement(r,{ref:i}):null)}const PJ={x:0,y:0,scaleX:1,scaleY:1};function MJ(t){let{children:e}=t;return Vt.createElement(ux.Provider,{value:x$},Vt.createElement(f5.Provider,{value:PJ},e))}const DJ={position:"fixed",touchAction:"none"},IJ=t=>u5(t)?"transform 250ms ease":void 0,AJ=v.forwardRef((t,e)=>{let{as:n,activatorEvent:r,adjustScale:s,children:a,className:i,rect:l,style:c,transform:d,transition:p=IJ}=t;if(!l)return null;const f=s?d:ae(R({},d),{scaleX:1,scaleY:1}),m=R(ae(R({},DJ),{width:l.width,height:l.height,top:l.top,left:l.left,transform:Yo.Transform.toString(f),transformOrigin:s&&r?_Q(r,l):void 0,transition:typeof p=="function"?p(r):p}),c);return Vt.createElement(n,{className:i,style:m,ref:e},a)}),LJ=t=>e=>{let{active:n,dragOverlay:r}=e;const s={},{styles:a,className:i}=t;if(a!=null&&a.active)for(const[l,c]of Object.entries(a.active))c!==void 0&&(s[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,c));if(a!=null&&a.dragOverlay)for(const[l,c]of Object.entries(a.dragOverlay))c!==void 0&&r.node.style.setProperty(l,c);return i!=null&&i.active&&n.node.classList.add(i.active),i!=null&&i.dragOverlay&&r.node.classList.add(i.dragOverlay),function(){for(const[c,d]of Object.entries(s))n.node.style.setProperty(c,d);i!=null&&i.active&&n.node.classList.remove(i.active)}},RJ=t=>{let{transform:{initial:e,final:n}}=t;return[{transform:Yo.Transform.toString(e)},{transform:Yo.Transform.toString(n)}]},rh={duration:250,easing:"ease",keyframes:RJ,sideEffects:LJ({styles:{active:{opacity:"0"}}})};function OJ(t){let{config:e,draggableNodes:n,droppableContainers:r,measuringConfiguration:s}=t;return c5((a,i)=>{if(e===null)return;const l=n.get(a);if(!l)return;const c=l.node.current;if(!c)return;const d=v$(i);if(!d)return;const{transform:p}=Qa(i).getComputedStyle(i),f=i$(p);if(!f)return;const m=typeof e=="function"?e:$J(e);return p$(c,s.draggable.measure),m({active:{id:a,data:l.data,node:c,rect:s.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:i,rect:s.dragOverlay.measure(d)},droppableContainers:r,measuringConfiguration:s,transform:f})})}function $J(t){const{duration:e,easing:n,sideEffects:r,keyframes:s}=R(R({},rh),t);return a=>{let S=a,{active:i,dragOverlay:l,transform:c}=S,d=Ne(S,["active","dragOverlay","transform"]);if(!e)return;const p={x:l.rect.left-i.rect.left,y:l.rect.top-i.rect.top},f={scaleX:c.scaleX!==1?i.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?i.rect.height*c.scaleY/l.rect.height:1},m=R({x:c.x-p.x,y:c.y-p.y},f),b=s(ae(R({},d),{active:i,dragOverlay:l,transform:{initial:c,final:m}})),[C]=b,g=b[b.length-1];if(JSON.stringify(C)===JSON.stringify(g))return;const w=r==null?void 0:r(R({active:i,dragOverlay:l},d)),x=l.node.animate(b,{duration:e,easing:n,fill:"forwards"});return new Promise(E=>{x.onfinish=()=>{w==null||w(),E()}})}}let BT=0;function zJ(t){return v.useMemo(()=>{if(t!=null)return BT++,BT},[t])}const C$=Vt.memo(t=>{let{adjustScale:e=!1,children:n,dropAnimation:r,style:s,transition:a,modifiers:i,wrapperElement:l="div",className:c,zIndex:d=999}=t;const{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:b,draggableNodes:C,droppableContainers:g,dragOverlay:w,over:x,measuringConfiguration:S,scrollableAncestors:E,scrollableAncestorRects:N,windowRect:_}=k$(),P=v.useContext(f5),I=zJ(f==null?void 0:f.id),T=b$(i,{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:b,draggingNodeRect:w.rect,over:x,overlayNodeRect:w.rect,scrollableAncestors:E,scrollableAncestorRects:N,transform:P,windowRect:_}),L=U8(m),A=OJ({config:r,draggableNodes:C,droppableContainers:g,measuringConfiguration:S}),z=L?w.setRef:void 0;return Vt.createElement(MJ,null,Vt.createElement(TJ,{animation:A},f&&I?Vt.createElement(AJ,{key:I,id:f.id,ref:z,as:l,activatorEvent:p,adjustScale:e,className:c,transition:a,rect:L,style:R({zIndex:d},s),transform:T},n):null))});function Wr(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}function FJ(t,e){return t.reduce((n,r,s)=>{const a=e.get(r);return a&&(n[s]=a),n},Array(t.length))}function Ny(t){return t!==null&&t>=0}function HJ(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n{var e;let{rects:n,activeNodeRect:r,activeIndex:s,overIndex:a,index:i}=t;const l=(e=n[s])!=null?e:r;if(!l)return null;const c=WJ(n,i,s);if(i===s){const d=n[a];return d?R({x:ss&&i<=a?R({x:-l.width-c,y:0},_y):i=a?R({x:l.width+c,y:0},_y):R({x:0,y:0},_y)};function WJ(t,e,n){const r=t[e],s=t[e-1],a=t[e+1];return!r||!s&&!a?0:n{let{rects:e,activeIndex:n,overIndex:r,index:s}=t;const a=Wr(e,r,n),i=e[s],l=a[s];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}},Ty={scaleX:1,scaleY:1},VJ=t=>{var e;let{activeIndex:n,activeNodeRect:r,index:s,rects:a,overIndex:i}=t;const l=(e=a[n])!=null?e:r;if(!l)return null;if(s===n){const d=a[i];return d?R({x:0,y:nn&&s<=i?R({x:0,y:-l.height-c},Ty):s=i?R({x:0,y:l.height+c},Ty):R({x:0,y:0},Ty)};function qJ(t,e,n){const r=t[e],s=t[e-1],a=t[e+1];return r?nr.map(P=>typeof P=="object"&&"id"in P?P.id:P),[r]),C=i!=null,g=i?b.indexOf(i.id):-1,w=d?b.indexOf(d.id):-1,x=v.useRef(b),S=!HJ(b,x.current),E=w!==-1&&g===-1||S,N=BJ(a);Ni(()=>{S&&C&&p(b)},[S,b,C,p]),v.useEffect(()=>{x.current=b},[b]);const _=v.useMemo(()=>({activeIndex:g,containerId:f,disabled:N,disableTransforms:E,items:b,overIndex:w,useDragOverlay:m,sortedRects:FJ(b,c),strategy:s}),[g,f,N.draggable,N.droppable,E,b,w,c,m,s]);return Vt.createElement(E$.Provider,{value:_},e)}const KJ=t=>{let{id:e,items:n,activeIndex:r,overIndex:s}=t;return Wr(n,r,s).indexOf(e)},GJ=t=>{let{containerId:e,isSorting:n,wasDragging:r,index:s,items:a,newIndex:i,previousItems:l,previousContainerId:c,transition:d}=t;return!d||!r||l!==a&&s===i?!1:n?!0:i!==s&&e===c},YJ={duration:200,easing:"ease"},N$="transform",ZJ=Yo.Transition.toString({property:N$,duration:0,easing:"linear"}),XJ={roleDescription:"sortable"};function QJ(t){let{disabled:e,index:n,node:r,rect:s}=t;const[a,i]=v.useState(null),l=v.useRef(n);return Ni(()=>{if(!e&&n!==l.current&&r.current){const c=s.current;if(c){const d=j0(r.current,{ignoreTransform:!0}),p={x:c.left-d.left,y:c.top-d.top,scaleX:c.width/d.width,scaleY:c.height/d.height};(p.x||p.y)&&i(p)}}n!==l.current&&(l.current=n)},[e,n,r,s]),v.useEffect(()=>{a&&i(null)},[a]),a}function p5(t){let{animateLayoutChanges:e=GJ,attributes:n,disabled:r,data:s,getNewIndex:a=KJ,id:i,strategy:l,resizeObserverConfig:c,transition:d=YJ}=t;const{items:p,containerId:f,activeIndex:m,disabled:b,disableTransforms:C,sortedRects:g,overIndex:w,useDragOverlay:x,strategy:S}=v.useContext(E$),E=JJ(r,b),N=p.indexOf(i),_=v.useMemo(()=>R({sortable:{containerId:f,index:N,items:p}},s),[f,s,N,p]),P=v.useMemo(()=>p.slice(p.indexOf(i)),[p,i]),{rect:I,node:T,isOver:L,setNodeRef:A}=h5({id:i,data:_,disabled:E.droppable,resizeObserverConfig:R({updateMeasurementsFor:P},c)}),{active:z,activatorEvent:Y,activeNodeRect:O,attributes:$,setNodeRef:M,listeners:W,isDragging:V,over:U,setActivatorNodeRef:J,transform:H}=w$({id:i,data:_,attributes:R(R({},XJ),n),disabled:E.draggable}),F=pQ(A,M),q=!!z,X=q&&!C&&Ny(m)&&Ny(w),te=!x&&V,ee=te&&X?H:null,G=l!=null?l:S,Z=X?ee!=null?ee:G({rects:g,activeNodeRect:O,activeIndex:m,overIndex:w,index:N}):null,le=Ny(m)&&Ny(w)?a({id:i,items:p,activeIndex:m,overIndex:w}):N,se=z==null?void 0:z.id,de=v.useRef({activeId:se,items:p,newIndex:le,containerId:f}),ce=p!==de.current.items,ye=e({active:z,containerId:f,isDragging:V,isSorting:q,id:i,index:N,items:p,newIndex:de.current.newIndex,previousItems:de.current.items,previousContainerId:de.current.containerId,transition:d,wasDragging:de.current.activeId!=null}),pe=QJ({disabled:!ye,index:N,node:T,rect:I});return v.useEffect(()=>{q&&de.current.newIndex!==le&&(de.current.newIndex=le),f!==de.current.containerId&&(de.current.containerId=f),p!==de.current.items&&(de.current.items=p)},[q,le,f,p]),v.useEffect(()=>{if(se===de.current.activeId)return;if(se&&!de.current.activeId){de.current.activeId=se;return}const be=setTimeout(()=>{de.current.activeId=se},50);return()=>clearTimeout(be)},[se]),{active:z,activeIndex:m,attributes:$,data:_,rect:I,index:N,newIndex:le,items:p,isOver:L,isSorting:q,isDragging:V,listeners:W,node:T,overIndex:w,over:U,setNodeRef:F,setActivatorNodeRef:J,setDroppableNodeRef:A,setDraggableNodeRef:M,transform:pe!=null?pe:Z,transition:me()};function me(){if(pe||ce&&de.current.newIndex===N)return ZJ;if(!(te&&!u5(Y)||!d)&&(q||ye))return Yo.Transition.toString(ae(R({},d),{property:N$}))}}function JJ(t,e){var n,r;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(n=t==null?void 0:t.draggable)!=null?n:e.draggable,droppable:(r=t==null?void 0:t.droppable)!=null?r:e.droppable}}qn.Down,qn.Right,qn.Up,qn.Left;function fs(t,e,n){const r=s=>t.filter(a=>a.parentId===s&&a.tabId===e).map(a=>ae(R({},a),{id:a.itemId.toString(),children:[],type:a.isBoard?Ys:a.isClip?qo:void 0})).sort((a,i)=>a.orderNumber-i.orderNumber).map(a=>{const i=a;return"isBoard"in i&&i.isBoard&&i.type===Ys&&(i.children=r(i.id.toString()),i.children.length===0&&delete i.children),i});return r(n||null)}function _$(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;en};return typeof t=="function"?r.read=t:(r.init=t,r.read=function(s){return s(this)},r.write=function(s,a,i){return a(this,typeof i=="function"?i(s(this)):i)}),e&&(r.write=e),r}const sC=t=>"init"in t,aC=t=>!!t.write,I2=new WeakMap,tee=(t,e)=>{I2.set(t,e),t.catch(()=>{}).finally(()=>I2.delete(t))},WT=(t,e)=>{const n=I2.get(t);n&&(I2.delete(t),n(e))},VT=(t,e)=>{t.status="fulfilled",t.value=e},qT=(t,e)=>{t.status="rejected",t.reason=e},nee=t=>typeof(t==null?void 0:t.then)=="function",Mg=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),KT=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),pp=t=>!!t&&"v"in t&&t.v instanceof Promise,ree=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,Py=t=>{if("e"in t)throw t.e;return t.v},see=()=>{const t=new WeakMap,e=new WeakMap,n=new Map;let r,s;(ws?"production":void 0)!=="production"&&(r=new Set,s=new Set);const a=T=>t.get(T),i=(T,L)=>{(ws?"production":void 0)!=="production"&&Object.freeze(L);const A=t.get(T);if(t.set(T,L),n.has(T)||n.set(T,A),pp(A)){const z="v"in L?L.v instanceof Promise?L.v:Promise.resolve(L.v):Promise.reject(L.e);A.v!==z&&WT(A.v,z)}},l=(T,L,A)=>{const z=new Map;let Y=!1;A.forEach((O,$)=>{!O&&$===T&&(O=L),O?(z.set($,O),L.d.get($)!==O&&(Y=!0)):(ws?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(Y||L.d.size!==z.size)&&(L.d=z)},c=(T,L,A)=>{const z=a(T),Y={d:(z==null?void 0:z.d)||new Map,v:L};if(A&&l(T,Y,A),Mg(z,Y)&&z.d===Y.d)return z;if(pp(z)&&pp(Y)&&ree(z,Y)){if(z.d===Y.d)return z;Y.v=z.v}return i(T,Y),Y},d=(T,L,A,z)=>{if(nee(L)){let Y;const O=()=>{const M=a(T);if(!pp(M)||M.v!==$)return;const W=c(T,$,A);e.has(T)&&M.d!==W.d&&_(T,W,M.d)},$=new Promise((M,W)=>{let V=!1;L.then(U=>{V||(V=!0,VT($,U),M(U),O())},U=>{V||(V=!0,qT($,U),W(U),O())}),Y=U=>{V||(V=!0,U.then(J=>VT($,J),J=>qT($,J)),M(U))}});return $.orig=L,$.status="pending",tee($,M=>{M&&Y(M),z==null||z()}),c(T,$,A)}return c(T,L,A)},p=(T,L,A)=>{const z=a(T),Y={d:(z==null?void 0:z.d)||new Map,e:L};return A&&l(T,Y,A),KT(z,Y)&&z.d===Y.d?z:(i(T,Y),Y)},f=(T,L)=>{const A=a(T);if(!L&&A&&(e.has(T)||Array.from(A.d).every(([V,U])=>{if(V===T)return!0;const J=f(V);return J===U||Mg(J,U)})))return A;const z=new Map;let Y=!0;const O=V=>{if(V===T){const J=a(V);if(J)return z.set(V,J),Py(J);if(sC(V))return z.set(V,void 0),V.init;throw new Error("no atom init")}const U=f(V);return z.set(V,U),Py(U)};let $,M;const W={get signal(){return $||($=new AbortController),$.signal},get setSelf(){return(ws?"production":void 0)!=="production"&&!aC(T)&&console.warn("setSelf function cannot be used with read-only atom"),!M&&aC(T)&&(M=(...V)=>{if((ws?"production":void 0)!=="production"&&Y&&console.warn("setSelf function cannot be called in sync"),!Y)return S(T,...V)}),M}};try{const V=T.read(O,W);return d(T,V,z,()=>$==null?void 0:$.abort())}catch(V){return p(T,V,z)}finally{Y=!1}},m=T=>Py(f(T)),b=T=>{let L=e.get(T);return L||(L=E(T)),L},C=(T,L)=>!L.l.size&&(!L.t.size||L.t.size===1&&L.t.has(T)),g=T=>{const L=e.get(T);L&&C(T,L)&&N(T)},w=T=>{const L=new Map,A=new WeakMap,z=$=>{var M;const W=new Set((M=e.get($))==null?void 0:M.t);return n.forEach((V,U)=>{var J;(J=a(U))!=null&&J.d.has($)&&W.add(U)}),W},Y=$=>{z($).forEach(M=>{M!==$&&(L.set(M,(L.get(M)||new Set).add($)),A.set(M,(A.get(M)||0)+1),Y(M))})};Y(T);const O=$=>{z($).forEach(M=>{var W;if(M!==$){let V=A.get(M);if(V&&A.set(M,--V),!V){let U=!!((W=L.get(M))!=null&&W.size);if(U){const J=a(M),H=f(M,!0);U=!Mg(J,H)}U||L.forEach(J=>J.delete(M))}O(M)}})};O(T)},x=(T,...L)=>{let A=!0;const z=$=>Py(f($)),Y=($,...M)=>{let W;if($===T){if(!sC($))throw new Error("atom not writable");const V=a($),U=d($,M[0]);Mg(V,U)||w($)}else W=x($,...M);if(!A){const V=P();(ws?"production":void 0)!=="production"&&r.forEach(U=>U({type:"async-write",flushed:V}))}return W},O=T.write(z,Y,...L);return A=!1,O},S=(T,...L)=>{const A=x(T,...L),z=P();return(ws?"production":void 0)!=="production"&&r.forEach(Y=>Y({type:"write",flushed:z})),A},E=(T,L,A)=>{var z;const Y=A||[];(z=a(T))==null||z.d.forEach(($,M)=>{const W=e.get(M);W?W.t.add(T):M!==T&&E(M,T,Y)}),f(T);const O={t:new Set(L&&[L]),l:new Set};if(e.set(T,O),(ws?"production":void 0)!=="production"&&s.add(T),aC(T)&&T.onMount){const{onMount:$}=T;Y.push(()=>{const M=$((...W)=>S(T,...W));M&&(O.u=M)})}return A||Y.forEach($=>$()),O},N=T=>{var L;const A=(L=e.get(T))==null?void 0:L.u;A&&A(),e.delete(T),(ws?"production":void 0)!=="production"&&s.delete(T);const z=a(T);z?(pp(z)&&WT(z.v),z.d.forEach((Y,O)=>{if(O!==T){const $=e.get(O);$&&($.t.delete(T),C(O,$)&&N(O))}})):(ws?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",T)},_=(T,L,A)=>{const z=new Set(L.d.keys());A==null||A.forEach((Y,O)=>{if(z.has(O)){z.delete(O);return}const $=e.get(O);$&&($.t.delete(T),C(O,$)&&N(O))}),z.forEach(Y=>{const O=e.get(Y);O?O.t.add(T):e.has(T)&&E(Y,T)})},P=()=>{let T;for((ws?"production":void 0)!=="production"&&(T=new Set);n.size;){const L=Array.from(n);n.clear(),L.forEach(([A,z])=>{const Y=a(A);if(Y){const O=e.get(A);O&&Y.d!==(z==null?void 0:z.d)&&_(A,Y,z==null?void 0:z.d),O&&!(!pp(z)&&(Mg(z,Y)||KT(z,Y)))&&(O.l.forEach($=>$()),(ws?"production":void 0)!=="production"&&T.add(A))}else(ws?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((ws?"production":void 0)!=="production")return T},I=(T,L)=>{const A=b(T),z=P(),Y=A.l;return Y.add(L),(ws?"production":void 0)!=="production"&&r.forEach(O=>O({type:"sub",flushed:z})),()=>{Y.delete(L),g(T),(ws?"production":void 0)!=="production"&&r.forEach(O=>O({type:"unsub"}))}};return(ws?"production":void 0)!=="production"?{get:m,set:S,sub:I,dev_subscribe_store:(T,L)=>{if(L!==2)throw new Error("The current StoreListener revision is 2.");return r.add(T),()=>{r.delete(T)}},dev_get_mounted_atoms:()=>s.values(),dev_get_atom_state:T=>t.get(T),dev_get_mounted:T=>e.get(T),dev_restore_atoms:T=>{for(const[A,z]of T)sC(A)&&(d(A,z),w(A));const L=P();r.forEach(A=>A({type:"restore",flushed:L}))}}:{get:m,set:S,sub:I}};let oC;(ws?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const aee=()=>(oC||((ws?"production":void 0)!=="production"&&globalThis.__NUMBER_OF_JOTAI_INSTANCES__!==1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),oC=see()),oC),oee=v.createContext(void 0),iee=t=>{const e=v.useContext(oee);return(t==null?void 0:t.store)||e||aee()},lee=t=>typeof(t==null?void 0:t.then)=="function",cee=Vt.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t)});function Tt(t,e){const n=iee(e),[[r,s,a],i]=v.useReducer(d=>{const p=n.get(t);return Object.is(d[0],p)&&d[1]===n&&d[2]===t?d:[p,n,t]},void 0,()=>[n.get(t),n,t]);let l=r;(s!==n||a!==t)&&(i(),l=n.get(t));const c=e==null?void 0:e.delay;return v.useEffect(()=>{const d=n.sub(t,()=>{if(typeof c=="number"){setTimeout(i,c);return}i()});return i(),d},[n,t,c]),v.useDebugValue(l),lee(l)?cee(l):l}const V8="-";function uee(t){const e=fee(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(i){const l=i.split(V8);return l[0]===""&&l.length!==1&&l.shift(),T$(l,e)||dee(i)}function a(i,l){const c=n[i]||[];return l&&r[i]?[...c,...r[i]]:c}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function T$(t,e){var i;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?T$(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(V8);return(i=e.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId}const GT=/^\[(.+)\]$/;function dee(t){if(GT.test(t)){const e=GT.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function fee(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return pee(Object.entries(t.classGroups),n).forEach(([a,i])=>{GS(i,r,a,e)}),r}function GS(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:YT(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(hee(s)){GS(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,i])=>{GS(i,YT(e,a),n,r)})})}function YT(t,e){let n=t;return e.split(V8).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function hee(t){return t.isThemeGetter}function pee(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,l])=>[e+i,l])):a);return[n,s]}):t}function mee(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,i){n.set(a,i),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return s(a,i),i},set(a,i){n.has(a)?n.set(a,i):s(a,i)}}}const P$="!";function gee(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(i){const l=[];let c=0,d=0,p;for(let g=0;gd?p-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:C}}}function vee(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function xee(t){return R({cache:mee(t.cacheSize),splitModifiers:gee(t)},uee(t))}const yee=/\s+/;function bee(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(yee).map(i=>{const{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:p}=n(i);let f=r(p?d.substring(0,p):d),m=!!p;if(!f){if(!p)return{isTailwindClass:!1,originalClassName:i};if(f=r(d),!f)return{isTailwindClass:!1,originalClassName:i};m=!1}const b=vee(l).join(":");return{isTailwindClass:!0,modifierId:c?b+P$:b,classGroupId:f,originalClassName:i,hasPostfixModifier:m}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:l,classGroupId:c,hasPostfixModifier:d}=i,p=l+c;return a.has(p)?!1:(a.add(p),s(c,d).forEach(f=>a.add(l+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function wee(){let t=0,e,n,r="";for(;tf(p),t());return n=xee(d),r=n.cache.get,s=n.cache.set,a=l,l(c)}function l(c){const d=r(c);if(d)return d;const p=bee(c,n);return s(c,p),p}return function(){return a(wee.apply(null,arguments))}}function Nr(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const D$=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cee=/^\d+\/\d+$/,See=new Set(["px","full","screen"]),jee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Eee=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nee=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_ee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Hi(t){return Rf(t)||See.has(t)||Cee.test(t)}function $u(t){return E0(t,"length",Ree)}function Rf(t){return!!t&&!Number.isNaN(Number(t))}function My(t){return E0(t,"number",Rf)}function Dg(t){return!!t&&Number.isInteger(Number(t))}function Tee(t){return t.endsWith("%")&&Rf(t.slice(0,-1))}function Fn(t){return D$.test(t)}function zu(t){return jee.test(t)}const Pee=new Set(["length","size","percentage"]);function Mee(t){return E0(t,Pee,I$)}function Dee(t){return E0(t,"position",I$)}const Iee=new Set(["image","url"]);function Aee(t){return E0(t,Iee,$ee)}function Lee(t){return E0(t,"",Oee)}function Ig(){return!0}function E0(t,e,n){const r=D$.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function Ree(t){return Eee.test(t)}function I$(){return!1}function Oee(t){return Nee.test(t)}function $ee(t){return _ee.test(t)}function zee(){const t=Nr("colors"),e=Nr("spacing"),n=Nr("blur"),r=Nr("brightness"),s=Nr("borderColor"),a=Nr("borderRadius"),i=Nr("borderSpacing"),l=Nr("borderWidth"),c=Nr("contrast"),d=Nr("grayscale"),p=Nr("hueRotate"),f=Nr("invert"),m=Nr("gap"),b=Nr("gradientColorStops"),C=Nr("gradientColorStopPositions"),g=Nr("inset"),w=Nr("margin"),x=Nr("opacity"),S=Nr("padding"),E=Nr("saturate"),N=Nr("scale"),_=Nr("sepia"),P=Nr("skew"),I=Nr("space"),T=Nr("translate"),L=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Fn,e],Y=()=>[Fn,e],O=()=>["",Hi,$u],$=()=>["auto",Rf,Fn],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],U=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",Fn],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[Rf,My],q=()=>[Rf,Fn];return{cacheSize:500,separator:":",theme:{colors:[Ig],spacing:[Hi,$u],blur:["none","",zu,Fn],brightness:F(),borderColor:[t],borderRadius:["none","","full",zu,Fn],borderSpacing:Y(),borderWidth:O(),contrast:F(),grayscale:J(),hueRotate:q(),invert:J(),gap:Y(),gradientColorStops:[t],gradientColorStopPositions:[Tee,$u],inset:z(),margin:z(),opacity:F(),padding:Y(),saturate:F(),scale:F(),sepia:J(),skew:q(),space:Y(),translate:Y()},classGroups:{aspect:[{aspect:["auto","square","video",Fn]}],container:["container"],columns:[{columns:[zu]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),Fn]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dg,Fn]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Fn]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",Dg,Fn]}],"grid-cols":[{"grid-cols":[Ig]}],"col-start-end":[{col:["auto",{span:["full",Dg,Fn]},Fn]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Ig]}],"row-start-end":[{row:["auto",{span:[Dg,Fn]},Fn]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Fn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Fn]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",Fn,e]}],"min-w":[{"min-w":["min","max","fit",Fn,Hi]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[zu]},zu,Fn]}],h:[{h:[Fn,e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",Hi,Fn]}],"max-h":[{"max-h":[Fn,e,"min","max","fit"]}],"font-size":[{text:["base",zu,$u]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",My]}],"font-family":[{font:[Ig]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Fn]}],"line-clamp":[{"line-clamp":["none",Rf,My]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Hi,Fn]}],"list-image":[{"list-image":["none",Fn]}],"list-style-type":[{list:["none","disc","decimal",Fn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Hi,$u]}],"underline-offset":[{"underline-offset":["auto",Hi,Fn]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),Dee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Aee]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[Hi,Fn]}],"outline-w":[{outline:[Hi,$u]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Hi,$u]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",zu,Lee]}],"shadow-color":[{shadow:[Ig]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",zu,Fn]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[f]}],saturate:[{saturate:[E]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Fn]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",Fn]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",Fn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Dg,Fn]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Fn]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Fn]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Fn]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Hi,$u,My]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Fee=kee(zee);function qc(t){if(!t&&typeof t!="string")return!1;const e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return/^https?:\/\//.test(t)?!1:e.test(t)}function Hee(t){return/^\d+\.\d+\.\d+$/.test(t)}function Bee(t,e){if(!t||!Hee(t))return-1;const n=t.split("."),r=e.split(".");for(let s=0;si)return 1;if(a=M?$:""+Array(M+1-V.length).join(W)+$},N={s:E,z:function($){var M=-$.utcOffset(),W=Math.abs(M),V=Math.floor(W/60),U=W%60;return(M<=0?"+":"-")+E(V,2,"0")+":"+E(U,2,"0")},m:function $(M,W){if(M.date()1)return $(H[0])}else{var F=M.name;P[F]=M,U=F}return!V&&U&&(_=U),U||!V&&_},A=function($,M){if(T($))return $.clone();var W=typeof M=="object"?M:{};return W.date=$,W.args=arguments,new Y(W)},z=N;z.l=L,z.i=T,z.w=function($,M){return A($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var Y=function(){function $(W){this.$L=L(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[I]=!0}var M=$.prototype;return M.parse=function(W){this.$d=function(V){var U=V.date,J=V.utc;if(U===null)return new Date(NaN);if(z.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var H=U.match(w);if(H){var F=H[2]-1||0,q=(H[7]||"0").substring(0,3);return J?new Date(Date.UTC(H[1],F,H[3]||1,H[4]||0,H[5]||0,H[6]||0,q)):new Date(H[1],F,H[3]||1,H[4]||0,H[5]||0,H[6]||0,q)}}return new Date(U)}(W),this.init()},M.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},M.$utils=function(){return z},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(W,V){var U=A(W);return this.startOf(V)<=U&&U<=this.endOf(V)},M.isAfter=function(W,V){return A(W){const r=()=>{n(t.getState())},s=t.subscribe(r);return r(),s},UT(n=>n(e),(n,r,s)=>{const a=typeof s=="function"?s(n(e)):s;t.setState(a,!0)})}var Wee={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ZT=t=>{let e;const n=new Set,r=(c,d)=>{const p=typeof c=="function"?c(e):c;if(!Object.is(p,e)){const f=e;e=(d!=null?d:typeof p!="object")?p:Object.assign({},e,p),n.forEach(m=>m(e,f))}},s=()=>e,l={setState:r,getState:s,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(Wee?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return e=t(r,s,l),l},_0=t=>t?ZT(t):ZT,XT=Rt(null),Qi=Rt(!1),Br=Rt(0),zp=Rt(0),Of=Rt(!1),Ga=Rt(!1),YS=Rt(!1),ZS=Rt(!1),rr=Rt(null),id=Rt(null),A2=Rt(!1),$f=Rt(null),uo=Rt(null),rl=Rt(null),Wi=Rt(null),Qu=Rt(null),Ef=Rt(null),$a=Rt(null),sm=Rt(!1),ll=Rt(!1),cl=Rt(null),zf=Rt(!1),am=Rt(!1),Ib=Rt(!1),Ab=Rt(!1),c1=Rt(null),pi=Rt(null),XS=Rt(null),_c=Rt(!1),Nf=Rt(null),Ms=Rt(null),ld=Rt(null),Ws=Rt(null),xa=Rt(null),bh=Rt(null),Wa=Rt(null),Bl=Rt(null),u1=Rt(null),Rd=Rt(null),t0=Rt(null),pv=Rt(null),Tc=Rt(null),Dy=Rt(null),iC=Rt(null),Ju=Rt(null),Va=Rt(null),zo=Rt(!1),Lb=Rt(!1),Dc=Rt(!1),Qr=Rt(!1),lC=Rt(null),Iy=Rt(null),Vee=Rt(null),_f=Rt(null),Ji=Rt(null),cd=Rt(null),Vu=Rt(null),ud=Rt(null),Tf=Rt(null),lo=Rt(null),ho=Rt(!1),Hs=Rt(null),Vi=Rt(!1),ul=Rt(!1),dd=Rt(!1),qee=Rt(!1);function Ff(){pi.value=null,pv.value=null,c1.value=null,bh.value=null,Wa.value=null,Ms.value=null,am.value=!1,ld.value=null,Dc.value=!1,Qr.value=!1,Rd.value=null,Bl.value=null,t0.value=null}function sh(){Vu.value=null,Ji.value=null,Vi.value=!1,lo.value=null,Vee.value=null,Hs.value=null,ul.value=!1,dd.value=!1,qee.value=!1,(ud.value||Tf.value)&&(ho.value=!1)}const Tn=Rt(!1),Gi=Rt(null),L2=Rt(null),Ay=Rt(null),R2=Rt(null),O2=Rt(!1),Pf=Rt(!1),Al=Rt(!1),Lc=Rt(!1),om=Rt(!1),ao=Rt(!1),n0=Rt(!1);var Kee={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const QT={appLastUpdateVersion:"0.0.1",appLastUpdateDate:"",isAppReady:!1,appDataDir:"",isHistoryEnabled:!0,isFirstRun:!0,historyDetectLanguagesEnabledList:[],appToursCompletedList:[],appToursSkippedList:[],historyDetectLanguagesPrioritizedList:[],historyExclusionList:"",isExclusionListEnabled:!1,isAutoClearSettingsEnabled:!1,isAutoMaskWordsListEnabled:!1,isNotTourCompletedOrSkipped:()=>!1,autoMaskWordsList:"",isHistoryDetectLanguageEnabled:!0,historyDetectLanguageMinLines:3,autoClearSettingsDuration:1,autoClearSettingsDurationType:"months",copyPasteDelay:0,copyPasteSequencePinnedDelay:3,copyPasteSequenceIsReversOrder:!1,pasteSequenceEachSeparator:"",isSearchNameOrLabelOnly:!0,isAutoCloseOnCopyPaste:!1,isAutoPreviewLinkCardsEnabled:!0,isAutoFavoriteOnDoubleCopyEnabled:!0,isShowCollectionNameOnNavBar:!0,isShowDisabledCollectionsOnNavBarMenu:!0,isClipNotesHoverCardsEnabled:!0,clipNotesHoverCardsDelayMS:2e3,clipNotesMaxWidth:220,clipNotesMaxHeight:120,isSkipAutoStartPrompt:!1,userSelectedLanguage:"",isHistoryAutoUpdateOnCaputureEnabled:!0,isIdleScreenAutoLockEnabled:!1,idleScreenAutoLockTimeInMinutes:null,isShowHistoryCaptureOnLockedScreen:!1,screenLockPassCode:null,screenLockPassCodeLength:0,screenLockRecoveryPasswordMasked:null,isAppLocked:!1,isScreenLockPassCodeRequireOnStart:!1,licenseKey:null,isFirstRunAfterUpdate:!1,CONST:{APP_DETECT_LANGUAGES_SUPPORTED:[]},setClipNotesMaxWidth:()=>{},setClipNotesMaxHeight:()=>{},setIsHistoryEnabled:()=>{},setCopyPasteDelay:()=>{},setCopyPasteSequencePinnedDelay:()=>{},setCopyPasteSequenceIsReversOrder:()=>{},setPasteSequenceEachSeparator:()=>{},setIsExclusionListEnabled:()=>{},setHistoryDetectLanguageMinLines:()=>{},setAutoClearSettingsDuration:()=>{},setAutoClearSettingsDurationType:()=>{},setIsHistoryDetectLanguageEnabled:()=>{},setHistoryExclusionList:()=>{},setIsHistoryAutoUpdateOnCaputureEnabled:()=>{},setHistoryDetectLanguagesEnabledList:()=>{},setAppToursCompletedList:()=>{},setAppToursSkippedList:()=>{},setHistoryDetectLanguagesPrioritizedList:()=>{},setIsAutoClearSettingsEnabled:()=>{},setIsAutoMaskWordsListEnabled:()=>{},setIsAutoCloseOnCopyPaste:()=>{},setIsAutoPreviewLinkCardsEnabled:()=>{},setIsAutoFavoriteOnDoubleCopyEnabled:()=>{},setIsSearchNameOrLabelOnly:()=>{},setAutoMaskWordsList:()=>{},setIsShowCollectionNameOnNavBar:()=>{},setIsShowDisabledCollectionsOnNavBarMenu:()=>{},setIsSkipAutoStartPrompt:()=>{},setIdleScreenAutoLockTimeInMinutes:()=>{},setIsIdleScreenAutoLockEnabled:()=>{},setIsShowHistoryCaptureOnLockedScreen:()=>{},setScreenLockPassCode:()=>{},setScreenLockPassCodeLength:()=>{},setScreenLockResetTempPassCode:()=>{},setScreenLockRecoveryPasswordMasked:()=>{},setIsAppLocked:()=>{},setClipNotesHoverCardsDelayMS:()=>{},setIsClipNotesHoverCardsEnabled:()=>{},setIsScreenLockPassCodeRequireOnStart:()=>{},setLicenseKey:()=>{},setIsFirstRunAfterUpdate:()=>{},initConstants:()=>{},setAppDataDir:()=>{},updateSetting:()=>{},setIsFirstRun:()=>{},setAppLastUpdateVersion:()=>{},setAppLastUpdateDate:()=>{},setUserSelectedLanguage:()=>{},initSettings:()=>{},checkForUpdate:()=>{},resetCheckForUpdate:()=>{},shouldSkipVersionCheck:()=>!1,setUpdaterRemindLater:()=>{},setUpdaterSkipVersion:()=>{},relaunchApp:()=>{HO()},installUpdate:()=>{},hashPassword:t=>On("hash_password",{password:t}),storePassword:(t,e)=>On("store_os_password",{name:t,password:e}),getStoredPassword:t=>{try{return On("get_stored_os_password",{name:t})}catch(e){return Promise.resolve(null)}},verifyStoredPassword:(t,e)=>On("verify_os_password",{name:t,password:e}),deleteStoredPassword:t=>On("delete_os_password",{name:t}),verifyPassword:(t,e)=>On("verify_password",{password:t,hash:e})},Cm=_0()((t,e)=>ae(R({},QT),{updateSetting:(n,r)=>ge(void 0,null,function*(){let s;typeof r=="boolean"?s={valueBool:r}:typeof r=="string"?s={valueText:r}:typeof r=="number"?s={valueInt:r}:s={valueInt:null,valueText:null,valueBool:null};try{return yield On("update_setting",{setting:R({name:n},s)}),(n==="isHistoryEnabled"||n==="userSelectedLanguage"||n==="isAppLocked")&&On("build_system_menu"),t(n==="historyDetectLanguagesEnabledList"&&typeof r=="string"?()=>({historyDetectLanguagesEnabledList:r.split(",")}):n==="appToursCompletedList"&&typeof r=="string"?()=>({appToursCompletedList:r.split(",")}):n==="appToursSkippedList"&&typeof r=="string"?()=>({appToursSkippedList:r.split(",")}):n==="historyDetectLanguagesPrioritizedList"&&typeof r=="string"?()=>({historyDetectLanguagesPrioritizedList:r.split(",")}):()=>({[n]:r}))}catch(a){console.error(a)}}),setIsHistoryAutoUpdateOnCaputureEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isHistoryAutoUpdateOnCaputureEnabled",n)}),setIsHistoryEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isHistoryEnabled",n)}),setIsHistoryDetectLanguageEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isHistoryDetectLanguageEnabled",n)}),setHistoryDetectLanguageMinLines:n=>ge(void 0,null,function*(){return e().updateSetting("historyDetectLanguageMinLines",n)}),setHistoryExclusionList:n=>ge(void 0,null,function*(){return e().updateSetting("historyExclusionList",n)}),setAutoMaskWordsList:n=>ge(void 0,null,function*(){return e().updateSetting("autoMaskWordsList",n)}),setUserSelectedLanguage:n=>ge(void 0,null,function*(){return e().updateSetting("userSelectedLanguage",n)}),setAutoClearSettingsDuration:n=>ge(void 0,null,function*(){return e().updateSetting("autoClearSettingsDuration",n)}),setAutoClearSettingsDurationType:n=>ge(void 0,null,function*(){return e().updateSetting("autoClearSettingsDurationType",n)}),setIsAutoMaskWordsListEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isAutoMaskWordsListEnabled",n)}),setIsAutoCloseOnCopyPaste:n=>ge(void 0,null,function*(){return e().updateSetting("isAutoCloseOnCopyPaste",n)}),setIsSearchNameOrLabelOnly:n=>ge(void 0,null,function*(){return e().updateSetting("isSearchNameOrLabelOnly",n)}),setIsAutoClearSettingsEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isAutoClearSettingsEnabled",n)}),setIsAutoPreviewLinkCardsEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isAutoPreviewLinkCardsEnabled",n)}),setIsAutoFavoriteOnDoubleCopyEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isAutoFavoriteOnDoubleCopyEnabled",n)}),setIsExclusionListEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isExclusionListEnabled",n)}),setIsShowCollectionNameOnNavBar:n=>ge(void 0,null,function*(){return e().updateSetting("isShowCollectionNameOnNavBar",n)}),setIsSkipAutoStartPrompt:n=>ge(void 0,null,function*(){return e().updateSetting("isSkipAutoStartPrompt",n)}),setIsShowDisabledCollectionsOnNavBarMenu:n=>ge(void 0,null,function*(){return e().updateSetting("isShowDisabledCollectionsOnNavBarMenu",n)}),setHistoryDetectLanguagesEnabledList:n=>ge(void 0,null,function*(){return e().updateSetting("historyDetectLanguagesEnabledList",n.filter(Boolean).join())}),setAppToursCompletedList:n=>ge(void 0,null,function*(){return e().updateSetting("appToursCompletedList",n.filter(Boolean).join())}),setAppToursSkippedList:n=>ge(void 0,null,function*(){return e().updateSetting("appToursSkippedList",n.filter(Boolean).join())}),setHistoryDetectLanguagesPrioritizedList:n=>ge(void 0,null,function*(){return e().updateSetting("historyDetectLanguagesPrioritizedList",n.filter(Boolean).join())}),setIsClipNotesHoverCardsEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isClipNotesHoverCardsEnabled",n)}),setClipNotesHoverCardsDelayMS:n=>ge(void 0,null,function*(){return e().updateSetting("clipNotesHoverCardsDelayMS",n)}),setClipNotesMaxHeight:n=>ge(void 0,null,function*(){return e().updateSetting("clipNotesMaxHeight",n)}),setClipNotesMaxWidth:n=>ge(void 0,null,function*(){return e().updateSetting("clipNotesMaxWidth",n)}),setCopyPasteDelay:n=>ge(void 0,null,function*(){return e().updateSetting("copyPasteDelay",n)}),setCopyPasteSequencePinnedDelay:n=>ge(void 0,null,function*(){return e().updateSetting("copyPasteSequencePinnedDelay",n)}),setCopyPasteSequenceIsReversOrder:n=>ge(void 0,null,function*(){return e().updateSetting("copyPasteSequenceIsReversOrder",n)}),setPasteSequenceEachSeparator:n=>ge(void 0,null,function*(){return e().updateSetting("pasteSequenceEachSeparator",n)}),setIsIdleScreenAutoLockEnabled:n=>ge(void 0,null,function*(){return e().updateSetting("isIdleScreenAutoLockEnabled",n)}),setIdleScreenAutoLockTimeInMinutes:n=>ge(void 0,null,function*(){return e().updateSetting("idleScreenAutoLockTimeInMinutes",n)}),setIsShowHistoryCaptureOnLockedScreen:n=>ge(void 0,null,function*(){return e().updateSetting("isShowHistoryCaptureOnLockedScreen",n)}),setScreenLockPassCode:n=>ge(void 0,null,function*(){return e().updateSetting("screenLockPassCode",n||null)}),setScreenLockPassCodeLength:n=>ge(void 0,null,function*(){return e().updateSetting("screenLockPassCodeLength",n)}),setScreenLockRecoveryPasswordMasked:n=>ge(void 0,null,function*(){return e().updateSetting("screenLockRecoveryPasswordMasked",n)}),setIsAppLocked:n=>ge(void 0,null,function*(){return e().updateSetting("isAppLocked",n)}),setIsScreenLockPassCodeRequireOnStart:n=>ge(void 0,null,function*(){return e().updateSetting("isScreenLockPassCodeRequireOnStart",n)}),setLicenseKey:n=>ge(void 0,null,function*(){return e().updateSetting("licenseKey",n)}),setIsFirstRunAfterUpdate:n=>ge(void 0,null,function*(){return e().updateSetting("isFirstRunAfterUpdate",n)}),setIsFirstRun:n=>e().updateSetting("isFirstRun",n),isNotTourCompletedOrSkipped:n=>{const{appToursCompletedList:r,appToursSkippedList:s}=e();return!r.includes(n)&&!s.includes(n)},installUpdate:()=>ge(void 0,null,function*(){om.value=!0,Lc.value=!1;try{yield VX(),om.value=!1,ao.value=!0,e().setIsFirstRunAfterUpdate(!0),Gi.value&&e().setAppLastUpdateVersion(Gi.value),Ay.value&&e().setAppLastUpdateDate(Ay.value),setTimeout(()=>{HO()},600)}catch(n){console.error("Install Update Error:",n),om.value=!1,Lc.value=!0}}),checkForUpdate:n=>ge(void 0,null,function*(){var r,s,a;Al.value=!0,console.log("isManualCheck",n),console.log("showUpdateChecking.value",Al.value);try{const{shouldUpdate:i,manifest:l}=yield qX();if(yield new Promise(c=>setTimeout(c,1e3)),i&&(l!=null&&l.version)&&!e().shouldSkipVersionCheck(l==null?void 0:l.version,n)){if(Gi.value=(r=l==null?void 0:l.version)!=null?r:null,R2.value=(s=l==null?void 0:l.body.split("\n"))!=null?s:null,l!=null&&l.date){const c=(a=l==null?void 0:l.date.split(" ")[0])!=null?a:null;L2.value=Mr(c).format("DD MMMM, YYYY"),Ay.value=Mr(c).format("YYYY-MM-DD")}O2.value=!0,Al.value=!1}else n?(Pf.value=!0,setTimeout(()=>{Pf.value=!1,Al.value=!1},3e3)):Al.value=!1}catch(i){console.error("Check Update Error:",i),n?(console.log("in isManualCheck",n),Al.value=!1,Pf.value=!0,setTimeout(()=>{Pf.value=!1,Al.value=!1},3e3)):Al.value=!1}n&&(e().setUpdaterRemindLater(!0),e().setUpdaterSkipVersion(null))}),shouldSkipVersionCheck:(n,r)=>{if(r)return!1;const s=localStorage.getItem("updaterRemindLater");if(s&&Mr().isBefore(s))return!0;const a=localStorage.getItem("updaterSkipVersion");return!!(a&&(a===n||Bee(a,n)>=0))},setUpdaterRemindLater:n=>{if(n){localStorage.removeItem("updaterRemindLater");return}localStorage.setItem("updaterRemindLater",Mr().add(3,"day").format("YYYY-MM-DD")),e().resetCheckForUpdate()},setUpdaterSkipVersion:n=>{if(n===null){localStorage.removeItem("updaterSkipVersion");return}localStorage.setItem("updaterSkipVersion",n),e().resetCheckForUpdate()},resetCheckForUpdate:()=>{O2.value=!1,Pf.value=!1,ao.value=!1,om.value=!1,Lc.value=!1,Gi.value=null,R2.value=null,L2.value=null,Ay.value=null},initConstants:n=>t(()=>({CONST:n})),setAppDataDir:n=>t(()=>({appDataDir:n})),setAppLastUpdateVersion:n=>e().updateSetting("appLastUpdateVersion",n),setAppLastUpdateDate:n=>e().updateSetting("appLastUpdateDate",n),initSettings:n=>{const r=Object.keys(QT).reduce((s,a)=>(typeof n[a]!="undefined"&&n[a]!==null&&(s[a]=n[a]),s),{});t(s=>R(R({},s),r))}})),Cr=N0(Cm);Kee.TAURI_DEBUG&&(window.settingsStore=Cm);const Gee=(t,e={enabled:!0})=>(n,r,s)=>{return e.enabled,t(n,r,s);const a=t(n,r,s),i=a.actions;if(i&&typeof i=="object"){const l=Object.fromEntries(Object.entries(i).map(([c,d])=>{let p=d;return typeof d=="function"&&(p=(...f)=>{var b;const m=d(...f);return(b=e.logger)==null||b.call(e,c,f),m}),[c,p]}));return ae(R({},a),{actions:l})}return a};var Yee={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function m5(t,e){let n;try{n=t()}catch(s){return}return{getItem:s=>{var a;const i=c=>c===null?null:JSON.parse(c,e==null?void 0:e.reviver),l=(a=n.getItem(s))!=null?a:null;return l instanceof Promise?l.then(i):i(l)},setItem:(s,a)=>n.setItem(s,JSON.stringify(a,e==null?void 0:e.replacer)),removeItem:s=>n.removeItem(s)}}const mv=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return mv(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return mv(r)(n)}}}},Zee=(t,e)=>(n,r,s)=>{let a=R({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:w=>w,version:0,merge:(w,x)=>R(R({},x),w)},e),i=!1;const l=new Set,c=new Set;let d;try{d=a.getStorage()}catch(w){}if(!d)return t((...w)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(a.name,"', the given storage is currently unavailable.")),n(...w)},r,s);const p=mv(a.serialize),f=()=>{const w=a.partialize(R({},r()));let x;const S=p({state:w,version:a.version}).then(E=>d.setItem(a.name,E)).catch(E=>{x=E});if(x)throw x;return S},m=s.setState;s.setState=(w,x)=>{m(w,x),f()};const b=t((...w)=>{n(...w),f()},r,s);let C;const g=()=>{var w;if(!d)return;i=!1,l.forEach(S=>S(r()));const x=((w=a.onRehydrateStorage)==null?void 0:w.call(a,r()))||void 0;return mv(d.getItem.bind(d))(a.name).then(S=>{if(S)return a.deserialize(S)}).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return a.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var E;return C=a.merge(S,(E=r())!=null?E:b),n(C,!0),f()}).then(()=>{x==null||x(C,void 0),i=!0,c.forEach(S=>S(C))}).catch(S=>{x==null||x(void 0,S)})};return s.persist={setOptions:w=>{a=R(R({},a),w),w.getStorage&&(d=w.getStorage())},clearStorage:()=>{d==null||d.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>i,onHydrate:w=>(l.add(w),()=>{l.delete(w)}),onFinishHydration:w=>(c.add(w),()=>{c.delete(w)})},g(),C||b},Xee=(t,e)=>(n,r,s)=>{let a=R({storage:m5(()=>localStorage),partialize:g=>g,version:0,merge:(g,w)=>R(R({},w),g)},e),i=!1;const l=new Set,c=new Set;let d=a.storage;if(!d)return t((...g)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(a.name,"', the given storage is currently unavailable.")),n(...g)},r,s);const p=()=>{const g=a.partialize(R({},r()));return d.setItem(a.name,{state:g,version:a.version})},f=s.setState;s.setState=(g,w)=>{f(g,w),p()};const m=t((...g)=>{n(...g),p()},r,s);let b;const C=()=>{var g,w;if(!d)return;i=!1,l.forEach(S=>{var E;return S((E=r())!=null?E:m)});const x=((w=a.onRehydrateStorage)==null?void 0:w.call(a,(g=r())!=null?g:m))||void 0;return mv(d.getItem.bind(d))(a.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return a.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var E;return b=a.merge(S,(E=r())!=null?E:m),n(b,!0),p()}).then(()=>{x==null||x(b,void 0),b=r(),i=!0,c.forEach(S=>S(b))}).catch(S=>{x==null||x(void 0,S)})};return s.persist={setOptions:g=>{a=R(R({},a),g),g.storage&&(d=g.storage)},clearStorage:()=>{d==null||d.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>C(),hasHydrated:()=>i,onHydrate:g=>(l.add(g),()=>{l.delete(g)}),onFinishHydration:g=>(c.add(g),()=>{c.delete(g)})},a.skipHydration||C(),b||m},Qee=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((Yee?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Zee(t,e)):Xee(t,e),q8=Qee,Jee={avatar:"",userName:"",email:"",authority:[]},ete=_0()(q8(Gee(t=>({user:R({},Jee),signedIn:!1,token:null,setUser:e=>t(n=>ae(R({},n),{user:ae(R({},n.user),{avatar:e.avatar,email:e.email,userName:e.userName,authority:e.authority})})),signInSuccess:e=>t(()=>({signedIn:!0,token:e})),signOutSuccess:()=>t(()=>({signedIn:!1,token:null}))}),{enabled:!0}),{name:"auth-store",storage:m5(()=>localStorage)}));N0(ete);const tte=350,nte=320,rte=["slate","sky","stone","teal","indigo","green","yellow","blue","purple","rose","lime","emerald","amber","cyan","fuchsia","pink"],Fp=["85%","90%","95%","100%","105%","110%","120%","125%"],ste=[300,500,800,1e3,1500,2e3,2500,3e3,3500,5e3],cC=[{title:"Small",width:220,iconSize:15,height:120},{title:"Medium",width:320,iconSize:18,height:160},{title:"Large",width:420,iconSize:21,height:220}],ate={fontSize:"100%",isWindows:!1,isSwapPanels:!1,panelSize:320,isShowPinned:!0,isShowHistoryPinned:!0,isMacOSX:!0,isLinux:!1,isScrolling:!1,returnRoute:"/menu",setIsShowPinned:()=>{},getDefaultPanelWidth:()=>320,setIsShowHistoryPinned:()=>{},setReturnRoute:()=>{},setIsSwapPanels:()=>{},setIsScrolling:()=>{},setOSType:()=>{},resetFontSize:()=>{},increaseFontSize:()=>{},setFontSize:()=>{},setPanelSize:()=>{},decreaseFontSize:()=>{},setAppDataDir:()=>{}},L$=_0()(q8((t,e)=>ae(R({},ate),{setIsShowPinned:n=>t(()=>({isShowPinned:n})),setIsShowHistoryPinned:n=>t(()=>({isShowHistoryPinned:n})),setIsSwapPanels:n=>t(()=>({isSwapPanels:n})),resetFontSize:()=>{t(()=>({fontSize:"100%"}))},setIsScrolling(n){t(()=>({isScrolling:n}))},setOSType:n=>{t(()=>({isWindows:n==="Windows_NT",isMacOSX:n==="Darwin",isLinux:n==="Linux"}))},getDefaultPanelWidth:()=>e().isMacOSX?tte:nte,setFontSize:n=>{t(()=>({fontSize:n}))},setPanelSize:n=>{t(()=>({panelSize:n}))},increaseFontSize:()=>{t(n=>{const r=Fp.indexOf(n.fontSize),s=Math.min(Fp.length-1,r+1);return{fontSize:Fp[s]}})},decreaseFontSize:()=>{t(n=>{const r=Fp.indexOf(n.fontSize),s=Math.max(0,r-1);return{fontSize:Fp[s]}})},setReturnRoute:n=>{t(()=>({returnRoute:n}))}}),{name:"ui-store",storage:m5(()=>localStorage)})),Ls=N0(L$),ote={direction:"ltr",mode:"system",systemTheme:"light",deviceId:"",themeDark:()=>!1,setDeviceId:()=>{},setSystemTheme:()=>{},setDirection:()=>{},setMode:()=>{}},ite=_0()(q8((t,e)=>ae(R({},ote),{themeDark:()=>{const{mode:n,systemTheme:r}=e();return n==="system"?r==="dark":n==="dark"},setSystemTheme:n=>{t({systemTheme:n})},setDeviceId:n=>{t(()=>({deviceId:n}))},setMode:n=>{t({mode:n})}}),{name:"theme-store",storage:m5(()=>localStorage),partialize:t=>({mode:t.mode,deviceId:t.deviceId,direction:t.direction})})),bo=N0(ite);var lte=typeof global=="object"&&global&&global.Object===Object&&global,cte=typeof self=="object"&&self&&self.Object===Object&&self,R$=lte||cte||Function("return this")(),$2=R$.Symbol,O$=Object.prototype,ute=O$.hasOwnProperty,dte=O$.toString,Ag=$2?$2.toStringTag:void 0;function fte(t){var e=ute.call(t,Ag),n=t[Ag];try{t[Ag]=void 0;var r=!0}catch(a){}var s=dte.call(t);return r&&(e?t[Ag]=n:delete t[Ag]),s}var hte=Object.prototype,pte=hte.toString;function mte(t){return pte.call(t)}var gte="[object Null]",vte="[object Undefined]",JT=$2?$2.toStringTag:void 0;function xte(t){return t==null?t===void 0?vte:gte:JT&&JT in Object(t)?fte(t):mte(t)}function yte(t){return t!=null&&typeof t=="object"}var bte="[object Symbol]";function wte(t){return typeof t=="symbol"||yte(t)&&xte(t)==bte}var kte=/\s/;function Cte(t){for(var e=t.length;e--&&kte.test(t.charAt(e)););return e}var Ste=/^\s+/;function jte(t){return t&&t.slice(0,Cte(t)+1).replace(Ste,"")}function z2(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var eP=NaN,Ete=/^[-+]0x[0-9a-f]+$/i,Nte=/^0b[01]+$/i,_te=/^0o[0-7]+$/i,Tte=parseInt;function tP(t){if(typeof t=="number")return t;if(wte(t))return eP;if(z2(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=z2(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=jte(t);var n=Nte.test(t);return n||_te.test(t)?Tte(t.slice(2),n?2:8):Ete.test(t)?eP:+t}var uC=function(){return R$.Date.now()},Pte="Expected a function",Mte=Math.max,Dte=Math.min;function Hf(t,e,n){var r,s,a,i,l,c,d=0,p=!1,f=!1,m=!0;if(typeof t!="function")throw new TypeError(Pte);e=tP(e)||0,z2(n)&&(p=!!n.leading,f="maxWait"in n,a=f?Mte(tP(n.maxWait)||0,e):a,m="trailing"in n?!!n.trailing:m);function b(P){var I=r,T=s;return r=s=void 0,d=P,i=t.apply(T,I),i}function C(P){return d=P,l=setTimeout(x,e),p?b(P):i}function g(P){var I=P-c,T=P-d,L=e-I;return f?Dte(L,a-T):L}function w(P){var I=P-c,T=P-d;return c===void 0||I>=e||I<0||f&&T>=a}function x(){var P=uC();if(w(P))return S(P);l=setTimeout(x,g(P))}function S(P){return l=void 0,m&&r?b(P):(r=s=void 0,i)}function E(){l!==void 0&&clearTimeout(l),d=0,r=c=s=l=void 0}function N(){return l===void 0?i:S(uC())}function _(){var P=uC(),I=w(P);if(r=arguments,s=this,c=P,I){if(l===void 0)return C(c);if(f)return clearTimeout(l),l=setTimeout(x,e),b(c)}return l===void 0&&(l=setTimeout(x,e)),i}return _.cancel=E,_.flush=N,_}var Ite="Expected a function";function $$(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(Ite);return z2(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Hf(t,e,{leading:r,maxWait:e,trailing:s})}var Ate={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const z$=_0()((t,e)=>({collections:[],tabs:[],tabsLoaded:!1,isMenuLoaded:!1,pinnedClips:[],currentCollectionId:null,currentTab:"",menuItems:[],clipItems:[],getTabLastBorderIndex:n=>{var i;const{clipItems:r}=e(),s=r.filter(l=>l.isBoard&&l.tabId===n);return((i=s.reduce((l,c)=>l.orderNumber>c.orderNumber?l:c,s[0]))==null?void 0:i.orderNumber)||0},setIsMenuLoaded:n=>{t(()=>({isMenuLoaded:n}))},getCurrentTab:()=>{var n;return e().currentTab||((n=e().tabs[0])==null?void 0:n.tabId)},setClipItemsDebounced:Hf(n=>{t(()=>({pinnedClips:n.filter(r=>r.isPinned&&r.isClip).sort((r,s)=>r.pinnedOrderNumber-s.pinnedOrderNumber).map(r=>{var s,a,i;return{id:r.itemId,name:r.name,parentId:r.parentId,orderNumber:r.orderNumber,pinnedOrderNumber:r.pinnedOrderNumber,isPinned:r.isPinned,createdAt:r.createdAt,isFavorite:r.isFavorite,color:(i=(a=r.color)!=null?a:(s=n.find(l=>l.itemId===r.parentId))==null?void 0:s.color)!=null?i:"slate",borderWidth:r.borderWidth,value:r.value,tabId:r.tabId,type:"clip"}}),clipItems:n}))},300,{leading:!0}),setMenuItems:n=>{t(()=>({isMenuLoaded:!0,menuItems:n}))},setClipItems:n=>{t(()=>({pinnedClips:n.filter(r=>r.isPinned&&r.isClip).sort((r,s)=>r.pinnedOrderNumber-s.pinnedOrderNumber).map(r=>{var s,a,i;return{id:r.itemId,name:r.name,parentId:r.parentId,orderNumber:r.orderNumber,createdAt:r.createdAt,isPinned:r.isPinned,isFavorite:r.isFavorite,color:(i=(a=r.color)!=null?a:(s=n.find(l=>l.itemId===r.parentId))==null?void 0:s.color)!=null?i:"slate",borderWidth:r.borderWidth,value:r.value,tabId:r.tabId,type:"clip"}}),clipItems:n}))},isBoardHasChildren:n=>{const{clipItems:r}=e();return r.some(s=>s.parentId===n)},tabHasBoards:n=>{const{clipItems:r}=e();return r.some(s=>s.tabId===n&&s.isBoard)},setTabsByOrder:n=>{t({tabs:n.sort((r,s)=>r.tabOrderNumber-s.tabOrderNumber)})},setTabs:n=>{var p,f,m;const r=e().currentCollectionId,s=localStorage.getItem("currentTabs"),a=s!=null&&s.startsWith(r+":::")?s.split(":::")[1]:"",i=(p=n.find(b=>b.tabId===a))==null?void 0:p.tabId,c=((f=n.find(b=>b.tabId===e().currentTab))==null?void 0:f.tabId)||i||((m=n[0])==null?void 0:m.tabId),d=n.sort((b,C)=>b.tabOrderNumber-C.tabOrderNumber);t({currentTab:c,tabsLoaded:!0,tabs:d})},setCurrentTab:n=>{const r=e().currentCollectionId;Va.value&&(Va.value=null,zo.value=!1),r&&localStorage.setItem("currentTabs","".concat(r,":::").concat(n)),t(()=>({currentTab:n}))},getCurrentCollectionTitle:()=>{var s;const{collections:n,currentCollectionId:r}=e();return(s=n.find(a=>a.collectionId===r))==null?void 0:s.title},setCollections:n=>{const r=n.find(s=>s.isSelected);t(()=>({collections:n,currentCollectionId:(r==null?void 0:r.collectionId)||null}))}})),Ar=N0(z$);Ate.TAURI_DEBUG&&(window.collectionsStore=z$);var F$={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Vn,function(){return function(n,r,s){var a=r.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,m,b,C,g){var w=f.name?f:f.$locale(),x=i(w[m]),S=i(w[b]),E=x||S.map(function(_){return _.slice(0,C)});if(!g)return E;var N=w.weekStart;return E.map(function(_,P){return E[(P+(N||0))%7]})},c=function(){return s.Ls[s.locale()]},d=function(f,m){return f.formats[m]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,g,w){return g||w.slice(1)})}(f.formats[m.toUpperCase()])},p=function(){var f=this;return{months:function(m){return m?m.format("MMMM"):l(f,"months")},monthsShort:function(m){return m?m.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):l(f,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return d(f.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return p.bind(this)()},s.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return s.weekdays()},weekdaysShort:function(){return s.weekdaysShort()},weekdaysMin:function(){return s.weekdaysMin()},months:function(){return s.months()},monthsShort:function(){return s.monthsShort()},longDateFormat:function(m){return d(f,m)},meridiem:f.meridiem,ordinal:f.ordinal}},s.months=function(){return l(c(),"months")},s.monthsShort=function(){return l(c(),"monthsShort","months",3)},s.weekdays=function(f){return l(c(),"weekdays",null,null,f)},s.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},s.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}})})(F$);var Lte=F$.exports;const Rte=cu(Lte),Ote={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class F2{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Ote,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r{this.observers[r]||(this.observers[r]=new Map);const s=this.observers[r].get(n)||0;this.observers[r].set(n,s+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s{let[l,c]=i;for(let d=0;d{let[l,c]=i;for(let d=0;d{t=r,e=s});return n.resolve=t,n.reject=e,n}function nP(t){return t==null?"":""+t}function $te(t,e,n){t.forEach(r=>{e[r]&&(n[r]=e[r])})}const zte=/###/g;function P1(t,e,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(zte,"."):l}function s(){return!t||typeof t=="string"}const a=typeof e!="string"?e:e.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function Ute(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>Bte[e]):t}class Wte{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const Vte=[" ",",","?","!",";"],qte=new Wte(20);function Kte(t,e,n){e=e||"",n=n||"";const r=Vte.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const s=qte.getRegExp("(".concat(r.map(i=>i==="?"?"\\?":i).join("|"),")"));let a=!s.test(t);if(!a){const i=t.indexOf(n);i>0&&!s.test(t.substring(0,i))&&(a=!0)}return a}function QS(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let s=t;for(let a=0;a-1&&c0?t.replace("_","-"):t}class sP extends g5{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&a?l.push(...r.split(a)):l.push(r)));const c=H2(this.data,l);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=l[0],n=l[1],r=l.slice(2).join(".")),c||!i||typeof r!="string"?c:QS(this.data&&this.data[e]&&this.data[e][n],r,a)}addResource(e,n,r,s){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[e,n];r&&(l=l.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(l=e.split("."),s=n,n=l[1]),this.addNamespaces(n),rP(this.data,l,s),a.silent||this.emit("added",e,n,r,s)}addResources(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const a in r)(typeof r[a]=="string"||Object.prototype.toString.apply(r[a])==="[object Array]")&&this.addResource(e,n,a,r[a],{silent:!0});s.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,s,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let c=H2(this.data,l)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),s?H$(c,r,a):c=R(R({},c),r),rP(this.data,l,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?R({},this.getResource(e,n)):this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var B$={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,s){return t.forEach(a=>{this.processors[a]&&(e=this.processors[a].process(e,n,r,s))}),e}};const aP={};class U2 extends g5{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$te(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vl.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Kte(e,r,s);if(i&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:a};const d=e.split(r);(r!==s||r===s&&this.options.ns.indexOf(d[0])>-1)&&(a=d.shift()),e=d.join(s)}return typeof a=="string"&&(a=[a]),{key:e,namespaces:a}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n=R({},n)),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(e[e.length-1],n),c=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&d.toLowerCase()==="cimode"){if(p){const N=n.nsSeparator||this.options.nsSeparator;return s?{res:"".concat(c).concat(N).concat(i),usedKey:i,exactUsedKey:i,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:"".concat(c).concat(N).concat(i)}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(e,n);let m=f&&f.res;const b=f&&f.usedKey||i,C=f&&f.exactUsedKey||i,g=Object.prototype.toString.apply(m),w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&m&&(typeof m!="string"&&typeof m!="boolean"&&typeof m!="number")&&w.indexOf(g)<0&&!(typeof x=="string"&&g==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,m,ae(R({},n),{ns:l})):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");return s?(f.res=N,f.usedParams=this.getUsedParamsDetails(n),f):N}if(a){const N=g==="[object Array]",_=N?[]:{},P=N?C:b;for(const I in m)if(Object.prototype.hasOwnProperty.call(m,I)){const T="".concat(P).concat(a).concat(I);_[I]=this.translate(T,ae(R({},n),{joinArrays:!1,ns:l})),_[I]===T&&(_[I]=m[I])}m=_}}else if(S&&typeof x=="string"&&g==="[object Array]")m=m.join(x),m&&(m=this.extendTranslation(m,e,n,r));else{let N=!1,_=!1;const P=n.count!==void 0&&typeof n.count!="string",I=U2.hasDefaultValue(n),T=P?this.pluralResolver.getSuffix(d,n.count,n):"",L=n.ordinal&&P?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",A=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),z=A&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]||n["defaultValue".concat(T)]||n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(m)&&I&&(N=!0,m=z),this.isValidLookup(m)||(_=!0,m=i);const O=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&_?void 0:m,$=I&&z!==m&&this.options.updateMissing;if(_||N||$){if(this.logger.log($?"updateKey":"missingKey",d,c,i,$?z:m),a){const U=this.resolve(i,ae(R({},n),{keySeparator:!1}));U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const W=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&W&&W[0])for(let U=0;U{const F=I&&H!==m?H:O;this.options.missingKeyHandler?this.options.missingKeyHandler(U,c,J,F,$,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,c,J,F,$,n),this.emit("missingKey",U,c,J,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?M.forEach(U=>{const J=this.pluralResolver.getSuffixes(U,n);A&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]&&J.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&J.push("".concat(this.options.pluralSeparator,"zero")),J.forEach(H=>{V([U],i+H,n["defaultValue".concat(H)]||z)})}):V(M,i,z))}m=this.extendTranslation(m,e,n,f,r),_&&m===i&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(i)),(_||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(i):i,N?m:void 0):m=this.options.parseMissingKeyHandler(m))}return s?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(e,n,r,s,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,R(R({},this.options.interpolation.defaultVariables),r),r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(ae(R({},r),{interpolation:R(R({},this.options.interpolation),r.interpolation)}));const d=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const m=e.match(this.interpolator.nestingRegexp);p=m&&m.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f=R(R({},this.options.interpolation.defaultVariables),f)),e=this.interpolator.interpolate(e,f,r.lng||this.language,r),d){const m=e.match(this.interpolator.nestingRegexp),b=m&&m.length;p1&&arguments[1]!==void 0?arguments[1]:{},r,s,a,i,l;return typeof e=="string"&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),p=d.key;s=p;let f=d.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const m=n.count!==void 0&&typeof n.count!="string",b=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),C=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(w=>{this.isValidLookup(r)||(l=w,!aP["".concat(g[0],"-").concat(w)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(aP["".concat(g[0],"-").concat(w)]=!0,this.logger.warn('key "'.concat(s,'" for languages "').concat(g.join(", "),'" won\'t get resolved as namespace "').concat(l,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(x=>{if(this.isValidLookup(r))return;i=x;const S=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,p,x,w,n);else{let N;m&&(N=this.pluralResolver.getSuffix(x,n.count,n));const _="".concat(this.options.pluralSeparator,"zero"),P="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(m&&(S.push(p+N),n.ordinal&&N.indexOf(P)===0&&S.push(p+N.replace(P,this.options.pluralSeparator)),b&&S.push(p+_)),C){const I="".concat(p).concat(this.options.contextSeparator).concat(n.context);S.push(I),m&&(S.push(I+N),n.ordinal&&N.indexOf(P)===0&&S.push(I+N.replace(P,this.options.pluralSeparator)),b&&S.push(I+_))}}let E;for(;E=S.pop();)this.isValidLookup(r)||(a=E,r=this.getResource(x,w,E,n))}))})}),{res:r,usedKey:s,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,s):this.resourceStore.getResource(e,n,r,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&typeof e.replace!="string";let s=r?e.replace:e;if(r&&typeof e.count!="undefined"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s=R(R({},this.options.interpolation.defaultVariables),s)),!r){s=R({},s);for(const a of n)delete s[a]}return s}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}function dC(t){return t.charAt(0).toUpperCase()+t.slice(1)}class oP{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vl.create("languageUtils")}getScriptPartFromCode(e){if(e=B2(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=B2(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=dC(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=dC(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=dC(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(a=>{if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&a.indexOf(s)===0)return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),s=[],a=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(i)))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),r.forEach(i=>{s.indexOf(i)<0&&a(this.formatLanguageCode(i))}),s}}let Gte=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Yte={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const Zte=["v1","v2","v3"],Xte=["v4"],iP={zero:0,one:1,two:2,few:3,many:4,other:5};function Qte(){const t={};return Gte.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:Yte[e.fc]}})}),t}class Jte{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Vl.create("pluralResolver"),(!this.options.compatibilityJSON||Xte.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Qte()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(B2(e==="dev"?"en":e),{type:n.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(s=>"".concat(n).concat(s))}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((s,a)=>iP[s]-iP[a]).map(s=>"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(s)):r.numbers.map(s=>this.getSuffix(e,s,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,r);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.ordinal?"ordinal".concat(this.options.prepend):"").concat(s.select(n)):this.getSuffixRetroCompatible(s,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let s=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const a=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Zte.includes(this.options.compatibilityJSON)}}function lP(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Hte(t,e,n);return!a&&s&&typeof n=="string"&&(a=QS(t,n,r),a===void 0&&(a=QS(e,n,r))),a}class ene{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vl.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Ute,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?mp(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?mp(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?mp(n.nestingPrefix):n.nestingPrefixEscaped||mp("$t("),this.nestingSuffix=n.nestingSuffix?mp(n.nestingSuffix):n.nestingSuffixEscaped||mp(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,n,r,s){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(C){return C.replace(/\$/g,"$$$$")}const p=C=>{if(C.indexOf(this.formatSeparator)<0){const S=lP(n,c,C,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,ae(R(R({},s),n),{interpolationkey:C})):S}const g=C.split(this.formatSeparator),w=g.shift().trim(),x=g.join(this.formatSeparator).trim();return this.format(lP(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,ae(R(R({},s),n),{interpolationkey:w}))};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,m=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:C=>d(C)},{regex:this.regexp,safeValue:C=>this.escapeValue?d(this.escape(C)):d(C)}].forEach(C=>{for(l=0;a=C.regex.exec(e);){const g=a[1].trim();if(i=p(g),i===void 0)if(typeof f=="function"){const x=f(e,a,s);i=typeof x=="string"?x:""}else if(s&&Object.prototype.hasOwnProperty.call(s,g))i="";else if(m){i=a[0];continue}else this.logger.warn("missed to pass in variable ".concat(g," for interpolating ").concat(e)),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=nP(i));const w=C.safeValue(i);if(e=e.replace(a[0],w),m?(C.regex.lastIndex+=i.length,C.regex.lastIndex-=a[0].length):C.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,i;function l(c,d){const p=this.nestingOptionsSeparator;if(c.indexOf(p)<0)return c;const f=c.split(new RegExp("".concat(p,"[ ]*{")));let m="{".concat(f[1]);c=f[0],m=this.interpolate(m,i);const b=m.match(/'/g),C=m.match(/"/g);(b&&b.length%2===0&&!C||C.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),d&&(i=R(R({},d),i))}catch(g){return this.logger.warn("failed parsing options string in nesting for key ".concat(c),g),"".concat(c).concat(p).concat(m)}return delete i.defaultValue,c}for(;s=this.nestingRegexp.exec(e);){let c=[];i=R({},r),i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const p=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=p.shift(),c=p,d=!0}if(a=n(l.call(this,s[1].trim(),i),i),a&&s[0]===e&&typeof a!="string")return a;typeof a!="string"&&(a=nP(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(e)),a=""),d&&(a=c.reduce((p,f)=>this.format(p,f,r.lng,ae(R({},r),{interpolationkey:s[1].trim()})),a.trim())),e=e.replace(s[0],a),this.regexp.lastIndex=0}return e}}function tne(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);e==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(i=>{if(!i)return;const[l,...c]=i.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=d),d==="false"&&(n[l.trim()]=!1),d==="true"&&(n[l.trim()]=!0),isNaN(d)||(n[l.trim()]=parseInt(d,10))})}return{formatName:e,formatOptions:n}}function gp(t){const e={};return function(r,s,a){const i=s+JSON.stringify(a);let l=e[i];return l||(l=t(B2(s),a),e[i]=l),l(r)}}class nne{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vl.create("formatter"),this.options=e,this.formats={number:gp((n,r)=>{const s=new Intl.NumberFormat(n,R({},r));return a=>s.format(a)}),currency:gp((n,r)=>{const s=new Intl.NumberFormat(n,ae(R({},r),{style:"currency"}));return a=>s.format(a)}),datetime:gp((n,r)=>{const s=new Intl.DateTimeFormat(n,R({},r));return a=>s.format(a)}),relativetime:gp((n,r)=>{const s=new Intl.RelativeTimeFormat(n,R({},r));return a=>s.format(a,r.range||"day")}),list:gp((n,r)=>{const s=new Intl.ListFormat(n,R({},r));return a=>s.format(a)})},this.init(e)}init(e){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=gp(n)}format(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{const{formatName:d,formatOptions:p}=tne(c);if(this.formats[d]){let f=l;try{const m=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},b=m.locale||m.lng||s.locale||s.lng||r;f=this.formats[d](l,b,R(R(R({},p),s),m))}catch(m){this.logger.warn(m)}return f}else this.logger.warn("there was no format function for ".concat(d));return l},e)}}function rne(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class sne extends g5{constructor(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=s,this.logger=Vl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(e,n,r,s){const a={},i={},l={},c={};return e.forEach(d=>{let p=!0;n.forEach(f=>{const m="".concat(d,"|").concat(f);!r.reload&&this.store.hasResourceBundle(d,f)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,p=!1,i[m]===void 0&&(i[m]=!0),a[m]===void 0&&(a[m]=!0),c[f]===void 0&&(c[f]=!0)))}),p||(l[d]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const s=e.split("|"),a=s[0],i=s[1];n&&this.emit("failedLoading",a,i,n),r&&this.store.addResourceBundle(a,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2;const l={};this.queue.forEach(c=>{Fte(c.loaded,[a],i),rne(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const p=c.loaded[d];p.length&&p.forEach(f=>{l[d][f]===void 0&&(l[d][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:s,wait:a,callback:i});return}this.readingCalls++;const l=(d,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(d&&p&&s{this.read.call(this,e,n,r,s+1,a*2,i)},a);return}i(d,p)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(e,n);d&&typeof d.then=="function"?d.then(p=>l(null,p)).catch(l):l(null,d)}catch(d){l(d)}return}return c(e,n,l)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const a=this.queueLoad(e,n,r,s);if(!a.toLoad.length)return a.pending.length||s(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),s=r[0],a=r[1];this.read(s,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(s," failed"),i),!i&&l&&this.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(s),l),this.loaded(e,i,l)})}saveMissing(e,n,r,s,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c=ae(R({},i),{isUpdate:a}),d=this.backend.create.bind(this.backend);if(d.length<6)try{let p;d.length===5?p=d(e,n,r,s,c):p=d(e,n,r,s),p&&typeof p.then=="function"?p.then(f=>l(null,f)).catch(l):l(null,p)}catch(p){l(p)}else d(e,n,r,s,l,c)}!e||!e[0]||this.store.addResource(e[0],n,r,s)}}}function cP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function uP(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Ly(){}function ane(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class gv extends g5{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=uP(e),this.services={},this.logger=Vl,this.modules={external:[]},ane(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const s=cP();this.options=R(R(R({},s),this.options),uP(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=R(R({},s.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function a(p){return p?typeof p=="function"?new p:p:null}if(!this.options.isClone){this.modules.logger?Vl.init(a(this.modules.logger),this.options):Vl.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl!="undefined"&&(p=nne);const f=new oP(this.options);this.store=new sP(this.options.resources,this.options);const m=this.services;m.logger=Vl,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new Jte(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(m.formatter=a(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new ene(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new sne(a(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(b){for(var C=arguments.length,g=new Array(C>1?C-1:0),w=1;w1?C-1:0),w=1;w{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ly),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const c=Lg(),d=()=>{const p=(f,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(m),r(f,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ly;const s=typeof e=="string"?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(d=>{d!=="cimode"&&a.indexOf(d)<0&&a.push(d)})};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(e,n,r){const s=Lg();return e||(e=this.languages),n||(n=this.options.ns),r||(r=Ly),this.services.backendConnector.reload(e,n,a=>{s.resolve(),r(a)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&B$.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const s=Lg();this.emit("languageChanging",e);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,d)=>{d?(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},l=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const d=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);d&&(this.language||a(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(d)),this.loadResources(d,p=>{i(p,d)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,n,r){var s=this;const a=function(i,l){let c;if(typeof l!="object"){for(var d=arguments.length,p=new Array(d>2?d-2:0),f=2;f"".concat(c.keyPrefix).concat(m).concat(C)):b=c.keyPrefix?"".concat(c.keyPrefix).concat(m).concat(i):i,s.t(b,c)};return typeof e=="string"?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=r,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const d=this.services.backendConnector.state["".concat(l,"|").concat(c)];return d===-1||d===2};if(n.precheck){const l=n.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!s||i(a,e)))}loadNamespaces(e,n){const r=Lg();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Lg();typeof e=="string"&&(e=[e]);const s=this.options.preload||[],a=e.filter(i=>s.indexOf(i)<0);return a.length?(this.options.preload=s.concat(a),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new oP(cP());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new gv(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ly;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const s=ae(R(R({},this.options),e),{isClone:!0}),a=new gv(s);return(e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services=R({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sP(this.store.data,s),a.services.resourceStore=a.store),a.translator=new U2(a.services,s),a.translator.on("*",function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p0){var l=s.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(l))}if(s.domain){if(!fP.test(s.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(s.domain)}if(s.path){if(!fP.test(s.path))throw new TypeError("option path is invalid");i+="; Path=".concat(s.path)}if(s.expires){if(typeof s.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+="; Expires=".concat(s.expires.toUTCString())}if(s.httpOnly&&(i+="; HttpOnly"),s.secure&&(i+="; Secure"),s.sameSite){var c=typeof s.sameSite=="string"?s.sameSite.toLowerCase():s.sameSite;switch(c){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i},hP={create:function(e,n,r,s){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+r*60*1e3)),s&&(a.domain=s),document.cookie=hne(e,encodeURIComponent(n),a)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),s=0;s-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var s=r.substring(1),a=s.split("&"),i=0;i0){var c=a[i].substring(0,l);c===e.lookupQuerystring&&(n=a[i].substring(l+1))}}}return n}},Rg=null,pP=function(){if(Rg!==null)return Rg;try{Rg=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(n){Rg=!1}return Rg},gne={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&pP()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&pP()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Og=null,mP=function(){if(Og!==null)return Og;try{Og=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(n){Og=!1}return Og},vne={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&mP()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&mP()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},xne={name:"navigator",lookup:function(e){var n=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var r=0;r0?n:void 0}},yne={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},bne={name:"path",lookup:function(e){var n;if(typeof window!="undefined"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},wne={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window!="undefined"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function kne(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var W$=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};one(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return cne(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=fne(r,this.options||{},kne()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(a){return a.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=s,this.addDetector(pne),this.addDetector(mne),this.addDetector(gne),this.addDetector(vne),this.addDetector(xne),this.addDetector(yne),this.addDetector(bne),this.addDetector(wne)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var s=[];return n.forEach(function(a){if(r.detectors[a]){var i=r.detectors[a].lookup(r.options);i&&typeof i=="string"&&(i=[i]),i&&(s=s.concat(i))}}),s=s.map(function(a){return r.options.convertDetectedLanguage(a)}),this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var s=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(a){s.detectors[a]&&s.detectors[a].cacheUserLanguage(n,s.options)}))}}]),t}();W$.type="languageDetector";var V$="en",K8={},JS={};function q$(){return V$}function Cne(t){V$=t}function Sne(t){return K8[t]}function jne(t){if(!t)throw new Error("No locale data passed");K8[t.locale]=t,JS[t.locale.toLowerCase()]=t.locale}function gP(t){if(K8[t])return t;if(JS[t.toLowerCase()])return JS[t.toLowerCase()]}function K$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.localeMatcher||"lookup";switch(n){case"lookup":return vP(t);case"best fit":return vP(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function vP(t){var e=gP(t);if(e)return e;for(var n=t.split("-");t.length>1;){n.pop(),t=n.join("-");var r=gP(t);if(r)return r}}var Be={af:function(e){return e==1?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var n=String(e).split("."),r=Number(n[0])==e,s=r&&n[0].slice(-2);return e==0?"zero":e==1?"one":e==2?"two":s>=3&&s<=10?"few":s>=11&&s<=99?"many":"other"},ast:function(e){var n=String(e).split("."),r=!n[1];return e==1&&r?"one":"other"},be:function(e){var n=String(e).split("."),r=Number(n[0])==e,s=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return s==1&&a!=11?"one":s>=2&&s<=4&&(a<12||a>14)?"few":r&&s==0||s>=5&&s<=9||a>=11&&a<=14?"many":"other"},br:function(e){var n=String(e).split("."),r=Number(n[0])==e,s=r&&n[0].slice(-1),a=r&&n[0].slice(-2),i=r&&n[0].slice(-6);return s==1&&a!=11&&a!=71&&a!=91?"one":s==2&&a!=12&&a!=72&&a!=92?"two":(s==3||s==4||s==9)&&(a<10||a>19)&&(a<70||a>79)&&(a<90||a>99)?"few":e!=0&&r&&i==0?"many":"other"},bs:function(e){var n=String(e).split("."),r=n[0],s=n[1]||"",a=!n[1],i=r.slice(-1),l=r.slice(-2),c=s.slice(-1),d=s.slice(-2);return a&&i==1&&l!=11||c==1&&d!=11?"one":a&&i>=2&&i<=4&&(l<12||l>14)||c>=2&&c<=4&&(d<12||d>14)?"few":"other"},ca:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-6);return e==1&&s?"one":r!=0&&a==0&&s?"many":"other"},ceb:function(e){var n=String(e).split("."),r=n[0],s=n[1]||"",a=!n[1],i=r.slice(-1),l=s.slice(-1);return a&&(r==1||r==2||r==3)||a&&i!=4&&i!=6&&i!=9||!a&&l!=4&&l!=6&&l!=9?"one":"other"},cs:function(e){var n=String(e).split("."),r=n[0],s=!n[1];return e==1&&s?"one":r>=2&&r<=4&&s?"few":s?"other":"many"},cy:function(e){return e==0?"zero":e==1?"one":e==2?"two":e==3?"few":e==6?"many":"other"},da:function(e){var n=String(e).split("."),r=n[0],s=Number(n[0])==e;return e==1||!s&&(r==0||r==1)?"one":"other"},dsb:function(e){var n=String(e).split("."),r=n[0],s=n[1]||"",a=!n[1],i=r.slice(-2),l=s.slice(-2);return a&&i==1||l==1?"one":a&&i==2||l==2?"two":a&&(i==3||i==4)||l==3||l==4?"few":"other"},dz:function(e){return"other"},es:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-6);return e==1?"one":r!=0&&a==0&&s?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-6);return e>=0&&e<2?"one":r!=0&&a==0&&s?"many":"other"},ga:function(e){var n=String(e).split("."),r=Number(n[0])==e;return e==1?"one":e==2?"two":r&&e>=3&&e<=6?"few":r&&e>=7&&e<=10?"many":"other"},gd:function(e){var n=String(e).split("."),r=Number(n[0])==e;return e==1||e==11?"one":e==2||e==12?"two":r&&e>=3&&e<=10||r&&e>=13&&e<=19?"few":"other"},he:function(e){var n=String(e).split("."),r=n[0],s=!n[1];return r==1&&s||r==0&&!s?"one":r==2&&s?"two":"other"},is:function(e){var n=String(e).split("."),r=n[0],s=(n[1]||"").replace(/0+$/,""),a=Number(n[0])==e,i=r.slice(-1),l=r.slice(-2);return a&&i==1&&l!=11||s%10==1&&s%100!=11?"one":"other"},ksh:function(e){return e==0?"zero":e==1?"one":"other"},lt:function(e){var n=String(e).split("."),r=n[1]||"",s=Number(n[0])==e,a=s&&n[0].slice(-1),i=s&&n[0].slice(-2);return a==1&&(i<11||i>19)?"one":a>=2&&a<=9&&(i<11||i>19)?"few":r!=0?"many":"other"},lv:function(e){var n=String(e).split("."),r=n[1]||"",s=r.length,a=Number(n[0])==e,i=a&&n[0].slice(-1),l=a&&n[0].slice(-2),c=r.slice(-2),d=r.slice(-1);return a&&i==0||l>=11&&l<=19||s==2&&c>=11&&c<=19?"zero":i==1&&l!=11||s==2&&d==1&&c!=11||s!=2&&d==1?"one":"other"},mk:function(e){var n=String(e).split("."),r=n[0],s=n[1]||"",a=!n[1],i=r.slice(-1),l=r.slice(-2),c=s.slice(-1),d=s.slice(-2);return a&&i==1&&l!=11||c==1&&d!=11?"one":"other"},mt:function(e){var n=String(e).split("."),r=Number(n[0])==e,s=r&&n[0].slice(-2);return e==1?"one":e==2?"two":e==0||s>=3&&s<=10?"few":s>=11&&s<=19?"many":"other"},pa:function(e){return e==0||e==1?"one":"other"},pl:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-1),i=r.slice(-2);return e==1&&s?"one":s&&a>=2&&a<=4&&(i<12||i>14)?"few":s&&r!=1&&(a==0||a==1)||s&&a>=5&&a<=9||s&&i>=12&&i<=14?"many":"other"},pt:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-6);return r==0||r==1?"one":r!=0&&a==0&&s?"many":"other"},ro:function(e){var n=String(e).split("."),r=!n[1],s=Number(n[0])==e,a=s&&n[0].slice(-2);return e==1&&r?"one":!r||e==0||e!=1&&a>=1&&a<=19?"few":"other"},ru:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-1),i=r.slice(-2);return s&&a==1&&i!=11?"one":s&&a>=2&&a<=4&&(i<12||i>14)?"few":s&&a==0||s&&a>=5&&a<=9||s&&i>=11&&i<=14?"many":"other"},se:function(e){return e==1?"one":e==2?"two":"other"},si:function(e){var n=String(e).split("."),r=n[0],s=n[1]||"";return e==0||e==1||r==0&&s==1?"one":"other"},sl:function(e){var n=String(e).split("."),r=n[0],s=!n[1],a=r.slice(-2);return s&&a==1?"one":s&&a==2?"two":s&&(a==3||a==4)||!s?"few":"other"}};Be.as=Be.am;Be.az=Be.af;Be.bg=Be.af;Be.bn=Be.am;Be.brx=Be.af;Be.ce=Be.af;Be.chr=Be.af;Be.de=Be.ast;Be.ee=Be.af;Be.el=Be.af;Be.en=Be.ast;Be.et=Be.ast;Be.eu=Be.af;Be.fa=Be.am;Be.fi=Be.ast;Be.fil=Be.ceb;Be.fo=Be.af;Be.fur=Be.af;Be.fy=Be.ast;Be.gl=Be.ast;Be.gu=Be.am;Be.ha=Be.af;Be.hi=Be.am;Be.hr=Be.bs;Be.hsb=Be.dsb;Be.hu=Be.af;Be.hy=Be.ff;Be.ia=Be.ast;Be.id=Be.dz;Be.ig=Be.dz;Be.it=Be.ca;Be.ja=Be.dz;Be.jgo=Be.af;Be.jv=Be.dz;Be.ka=Be.af;Be.kea=Be.dz;Be.kk=Be.af;Be.kl=Be.af;Be.km=Be.dz;Be.kn=Be.am;Be.ko=Be.dz;Be.ks=Be.af;Be.ku=Be.af;Be.ky=Be.af;Be.lb=Be.af;Be.lkt=Be.dz;Be.lo=Be.dz;Be.ml=Be.af;Be.mn=Be.af;Be.mr=Be.af;Be.ms=Be.dz;Be.my=Be.dz;Be.nb=Be.af;Be.ne=Be.af;Be.nl=Be.ast;Be.nn=Be.af;Be.no=Be.af;Be.or=Be.af;Be.pcm=Be.am;Be.ps=Be.af;Be.rm=Be.af;Be.sah=Be.dz;Be.sc=Be.ast;Be.sd=Be.af;Be.sk=Be.cs;Be.so=Be.af;Be.sq=Be.af;Be.sr=Be.bs;Be.su=Be.dz;Be.sv=Be.ast;Be.sw=Be.ast;Be.ta=Be.af;Be.te=Be.af;Be.th=Be.dz;Be.ti=Be.pa;Be.tk=Be.af;Be.to=Be.dz;Be.tr=Be.af;Be.ug=Be.af;Be.uk=Be.ru;Be.ur=Be.ast;Be.uz=Be.af;Be.vi=Be.dz;Be.wae=Be.af;Be.wo=Be.dz;Be.xh=Be.af;Be.yi=Be.ast;Be.yo=Be.dz;Be.yue=Be.dz;Be.zh=Be.dz;Be.zu=Be.am;const xP=Be;function yP(t){return t==="pt-PT"?t:Nne(t)}var Ene=/^([a-z0-9]+)/i;function Nne(t){var e=t.match(Ene);if(!e)throw new TypeError("Invalid locale: ".concat(t));return e[1]}function _ne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bP(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lne(this,t);var r=n.numeric,s=n.style,a=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if($ne.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(s!==void 0){if(zne.indexOf(s)<0)throw new RangeError('Invalid "style" option: '.concat(s));this.style=s}if(a!==void 0){if(Fne.indexOf(a)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(a));this.localeMatcher=a}if(typeof e=="string"&&(e=[e]),e.push(q$()),this.locale=t.supportedLocalesOf(e,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");e6.supportedLocalesOf(this.locale).length>0?this.pluralRules=new e6(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl!="undefined"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=K$(this.locale,{localeMatcher:this.localeMatcher})}return Rne(t,[{key:"format",value:function(){var n=EP(arguments),r=CP(n,2),s=r[0],a=r[1];return this.getRule(s,a).replace("{0}",this.formatNumber(Math.abs(s)))}},{key:"formatToParts",value:function(){var n=EP(arguments),r=CP(n,2),s=r[0],a=r[1],i=this.getRule(s,a),l=i.indexOf("{0}");if(l<0)return[{type:"literal",value:i}];var c=[];return l>0&&c.push({type:"literal",value:i.slice(0,l)}),c=c.concat(this.formatNumberToParts(Math.abs(s)).map(function(d){return kP(kP({},d),{},{unit:a})})),l+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string")t=[t];else if(!Array.isArray(t))throw new TypeError('Invalid "locales" argument');return t.filter(function(n){return K$(n,e)})};Hd.addLocale=jne;Hd.setDefaultLocale=Cne;Hd.getDefaultLocale=q$;Hd.PluralRules=e6;var fC='Invalid "unit" argument';function Hne(t){if(t6(t)==="symbol")throw new TypeError(fC);if(typeof t!="string")throw new RangeError("".concat(fC,": ").concat(t));if(t[t.length-1]==="s"&&(t=t.slice(0,t.length-1)),One.indexOf(t)<0)throw new RangeError("".concat(fC,": ").concat(t));return t}var Bne='Invalid "number" argument';function Une(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat(Bne,": ").concat(t));return t}function Wne(t){return 1/t===-1/0}function Vne(t){return t<0||t===0&&Wne(t)}function EP(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[Une(t[0]),Hne(t[1])]}function W2(t){"@babel/helpers - typeof";return W2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W2(t)}function qne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NP(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yne(t,e){if(t){if(typeof t=="string")return TP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TP(t,e)}}function TP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;)if(a.pop(),s=a.join("-"),e(s))return s}throw new Error("No locale data has been registered for any of the locales: ".concat(t.join(", ")))}function Xne(){var t=(typeof Intl=="undefined"?"undefined":n6(Intl))==="object";return t&&typeof Intl.DateTimeFormat=="function"}function r6(t){"@babel/helpers - typeof";return r6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r6(t)}function Qne(t){return ere(t)&&(Array.isArray(t.steps)||Array.isArray(t.gradation)||Array.isArray(t.flavour)||typeof t.flavour=="string"||Array.isArray(t.labels)||typeof t.labels=="string"||Array.isArray(t.units)||typeof t.custom=="function")}var Jne={}.constructor;function ere(t){return r6(t)!==void 0&&t!==null&&t.constructor===Jne}var Rc=60,V2=60*Rc,ah=24*V2,s6=7*ah,a6=30.44*ah,G$=146097/400*ah;function Sm(t){switch(t){case"second":return 1;case"minute":return Rc;case"hour":return V2;case"day":return ah;case"week":return s6;case"month":return a6;case"year":return G$}}function Y$(t){return t.factor!==void 0?t.factor:Sm(t.unit||t.formatAs)||1}function vv(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function G8(t){switch(t){case"floor":return 1;default:return .5}}function o6(t){"@babel/helpers - typeof";return o6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o6(t)}function Z$(t,e){var n=e.prevStep,r=e.timestamp,s=e.now,a=e.future,i=e.round,l;return n&&(n.id||n.unit)&&(l=t["threshold_for_".concat(n.id||n.unit)]),l===void 0&&t.threshold!==void 0&&(l=t.threshold,typeof l=="function"&&(l=l(s,a))),l===void 0&&(l=t.minTime),o6(l)==="object"&&(n&&n.id&&l[n.id]!==void 0?l=l[n.id]:l=l.default),typeof l=="function"&&(l=l(r,{future:a,getMinTimeForUnit:function(d,p){return PP(d,p||n&&n.formatAs,{round:i})}})),l===void 0&&t.test&&(t.test(r,{now:s,future:a})?l=0:l=9007199254740991),l===void 0&&(n?t.formatAs&&n.formatAs&&(l=PP(t.formatAs,n.formatAs,{round:i})):l=0),l===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(t,null,2)),l}function PP(t,e,n){var r=n.round,s=Sm(t),a;if(e==="now"?a=Sm(t):a=Sm(e),s!==void 0&&a!==void 0)return s-a*(1-G8(r))}function MP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function tre(t){for(var e=1;e0)return t[i-1]}return l}}}function X$(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=Z$(t[r],tre({prevStep:t[r-1],timestamp:n.now-e*1e3},n));return s===void 0||Math.abs(e)=0:!0})}function ore(t,e,n){var r=n.now,s=n.round;if(Sm(t)){var a=Sm(t)*1e3,i=e>r,l=Math.abs(e-r),c=vv(s)(l/a)*a;return i?c>0?l-c+lre(s,a):l-c+1:-(l-c)+ire(s,a)}}function ire(t,e){return G8(t)*e}function lre(t,e){return(1-G8(t))*e+1}var cre=365*24*60*60*1e3,Q$=1e3*cre;function ure(t,e,n){var r=n.prevStep,s=n.nextStep,a=n.now,i=n.future,l=n.round,c=t.getTime?t.getTime():t,d=function(C){return ore(C,c,{now:a,round:l})},p=fre(i?e:s,c,{future:i,now:a,round:l,prevStep:i?r:e});if(p!==void 0){var f;if(e&&(e.getTimeToNextUpdate&&(f=e.getTimeToNextUpdate(c,{getTimeToNextUpdateForUnit:d,getRoundFunction:vv,now:a,future:i,round:l})),f===void 0)){var m=e.unit||e.formatAs;m&&(f=d(m))}return f===void 0?p:Math.min(f,p)}}function dre(t,e,n){var r=n.now,s=n.future,a=n.round,i=n.prevStep,l=Z$(t,{timestamp:e,now:r,future:s,round:a,prevStep:i});if(l!==void 0)return s?e-l*1e3+1:l===0&&e===r?Q$:e+l*1e3}function fre(t,e,n){var r=n.now,s=n.future,a=n.round,i=n.prevStep;if(t){var l=dre(t,e,{now:r,future:s,round:a,prevStep:i});return l===void 0?void 0:l-r}else return s?e-r+1:Q$}var J$={};function im(t){return J$[t]}function ez(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");J$[t.locale]=t}const hre=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],i6={steps:hre,labels:"long"};function DP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function IP(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dre(t,e){return Lre(t)||Are(t,e)||rz(t,e)||Ire()}function Ire(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rz(t,e){if(t){if(typeof t=="string")return GP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GP(t,e)}}function GP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;Rre(this,t),typeof e=="string"&&(e=[e]),this.locale=Zne(e.concat(t.getDefaultLocale()),im),typeof Intl!="undefined"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Hd,this.IntlPluralRules=Hd.PluralRules),this.relativeTimeFormatCache=new _P,this.pluralRulesCache=new _P}return Ore(t,[{key:"format",value:function(n,r,s){s||(r&&!Bre(r)?(s=r,r=void 0):s={}),r||(r=l6),typeof r=="string"&&(r=Pre(r));var a=$re(n),i=this.getLabels(r.flavour||r.labels),l=i.labels,c=i.labelsType,d;r.now!==void 0&&(d=r.now),d===void 0&&s.now!==void 0&&(d=s.now),d===void 0&&(d=Date.now());var p=(d-a)/1e3,f=s.future||p<0,m=Hre(l,im(this.locale).now,im(this.locale).long,f);if(r.custom){var b=r.custom({now:d,date:new Date(a),time:a,elapsed:p,locale:this.locale});if(b!==void 0)return b}var C=Fre(r.units,l,m),g=s.round||r.round,w=rre(r.gradation||r.steps||l6.steps,p,{now:d,units:C,round:g,future:f,getNextStep:!0}),x=Dre(w,3),S=x[0],E=x[1],N=x[2],_=this.formatDateForStep(a,E,p,{labels:l,labelsType:c,nowLabel:m,now:d,future:f,round:g})||"";if(s.getTimeToNextUpdate){var P=ure(a,E,{nextStep:N,prevStep:S,now:d,future:f,round:g});return[_,P]}return _}},{key:"formatDateForStep",value:function(n,r,s,a){var i=this,l=a.labels,c=a.labelsType,d=a.nowLabel,p=a.now,f=a.future,m=a.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(x,S){return i.formatValue(S,x,{labels:l,future:f})},now:p,future:f});var b=r.unit||r.formatAs;if(!b)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(b==="now")return d;var C=Math.abs(s)/Y$(r);r.granularity&&(C=vv(m)(C/r.granularity)*r.granularity);var g=-1*Math.sign(s)*vv(m)(C);switch(g===0&&(f?g=0:g=-0),c){case"long":case"short":case"narrow":return this.getFormatter(c).format(g,b);default:return this.formatValue(g,b,{labels:l,future:f})}}}},{key:"formatValue",value:function(n,r,s){var a=s.labels,i=s.future;return this.getFormattingRule(a,r,n,{future:i}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,s,a){var i=a.future;if(this.locale,n=n[r],typeof n=="string")return n;var l=s===0?i?"future":"past":s<0?"past":"future",c=n[l]||n;if(typeof c=="string")return c;var d=this.getPluralRules().select(Math.abs(s));return c[d]||c.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(l){switch(l){case"tiny":case"mini-time":return"mini";default:return l}}),n=n.concat("long");for(var r=im(this.locale),s=Mre(n),a;!(a=s()).done;){var i=a.value;if(r[i])return{labelsType:i,labels:r[i]}}}}]),t}(),sz="en";oa.getDefaultLocale=function(){return sz};oa.setDefaultLocale=function(t){return sz=t};oa.addDefaultLocale=function(t){if(ZP)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");ZP=!0,oa.setDefaultLocale(t.locale),oa.addLocale(t)};var ZP;oa.addLocale=function(t){ez(t),Hd.addLocale(t)};oa.locale=oa.addLocale;oa.addLabels=function(t,e,n){var r=im(t);r||(ez({locale:t}),r=im(t)),r[e]=n};function $re(t){if(t.constructor===Date||zre(t))return t.getTime();if(typeof t=="number")return t;throw new Error("Unsupported relative time formatter input: ".concat(q2(t),", ").concat(t))}function zre(t){return q2(t)==="object"&&typeof t.getTime=="function"}function Fre(t,e,n){var r=Object.keys(e);return n&&r.push("now"),t&&(r=t.filter(function(s){return s==="now"||r.indexOf(s)>=0})),r}function Hre(t,e,n,r){var s=t.now||e&&e.now;if(s)return typeof s=="string"?s:r?s.future:s.past;if(n&&n.second&&n.second.current)return n.second.current}function Bre(t){return typeof t=="string"||Qne(t)}const Ure={locale:"de",long:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:{one:"vor {0} Quartal",other:"vor {0} Quartalen"},future:{one:"in {0} Quartal",other:"in {0} Quartalen"}},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:{one:"vor {0} Stunde",other:"vor {0} Stunden"},future:{one:"in {0} Stunde",other:"in {0} Stunden"}},minute:{current:"in dieser Minute",past:{one:"vor {0} Minute",other:"vor {0} Minuten"},future:{one:"in {0} Minute",other:"in {0} Minuten"}},second:{current:"jetzt",past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"},future:{one:"in {0} Sekunde",other:"in {0} Sekunden"}}},short:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Quart.",future:"in {0} Quart."},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} Min.",future:"in {0} Min."},second:{current:"jetzt",past:"vor {0} Sek.",future:"in {0} Sek."}},narrow:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Q",future:"in {0} Q"},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:"vor {0} Wo.",future:"in {0} Wo."},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} m",future:"in {0} m"},second:{current:"jetzt",past:"vor {0} s",future:"in {0} s"}},now:{now:{current:"jetzt",future:"in einem Moment",past:"gerade jetzt"}},mini:{year:"{0} J.",month:"{0} Mt.",week:"{0} Wo.",day:"{0} T.",hour:"{0} Std.",minute:"{0} Min.",second:"{0} s",now:"jetzt"},"long-time":{year:{one:"{0} Jahr",other:"{0} Jahre"},month:{one:"{0} Monat",other:"{0} Monate"},week:{one:"{0} Woche",other:"{0} Wochen"},day:{one:"{0} Tag",other:"{0} Tage"},hour:{one:"{0} Stunde",other:"{0} Stunden"},minute:{one:"{0} Minute",other:"{0} Minuten"},second:{one:"{0} Sekunde",other:"{0} Sekunden"}}},Wre={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},Vre={locale:"es",long:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:{one:"hace {0} año",other:"hace {0} años"},future:{one:"dentro de {0} año",other:"dentro de {0} años"}},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:{one:"hace {0} trimestre",other:"hace {0} trimestres"},future:{one:"dentro de {0} trimestre",other:"dentro de {0} trimestres"}},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:{one:"hace {0} mes",other:"hace {0} meses"},future:{one:"dentro de {0} mes",other:"dentro de {0} meses"}},week:{previous:"la semana pasada",current:"esta semana",next:"la próxima semana",past:{one:"hace {0} semana",other:"hace {0} semanas"},future:{one:"dentro de {0} semana",other:"dentro de {0} semanas"}},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:{one:"hace {0} día",other:"hace {0} días"},future:{one:"dentro de {0} día",other:"dentro de {0} días"}},hour:{current:"esta hora",past:{one:"hace {0} hora",other:"hace {0} horas"},future:{one:"dentro de {0} hora",other:"dentro de {0} horas"}},minute:{current:"este minuto",past:{one:"hace {0} minuto",other:"hace {0} minutos"},future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"}},second:{current:"ahora",past:{one:"hace {0} segundo",other:"hace {0} segundos"},future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"}}},short:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},narrow:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},now:{now:{current:"ahora",future:"enseguida",past:"ahora mismo"}},mini:{year:{one:"{0} año",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:"{0} sem.",day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:"{0} min.",second:"{0} seg.",now:"ahora"},"long-time":{year:{one:"{0} año",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:{one:"{0} semana",other:"{0} semanas"},day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:{one:"{0} minuto",other:"{0} minutos"},second:{one:"{0} segundo",other:"{0} segundos"}}},qre={locale:"fr",long:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:{one:"il y a {0} an",other:"il y a {0} ans"},future:{one:"dans {0} an",other:"dans {0} ans"}},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"},future:{one:"dans {0} trimestre",other:"dans {0} trimestres"}},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} mois",future:"dans {0} mois"},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:{one:"il y a {0} semaine",other:"il y a {0} semaines"},future:{one:"dans {0} semaine",other:"dans {0} semaines"}},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:{one:"il y a {0} jour",other:"il y a {0} jours"},future:{one:"dans {0} jour",other:"dans {0} jours"}},hour:{current:"cette heure-ci",past:{one:"il y a {0} heure",other:"il y a {0} heures"},future:{one:"dans {0} heure",other:"dans {0} heures"}},minute:{current:"cette minute-ci",past:{one:"il y a {0} minute",other:"il y a {0} minutes"},future:{one:"dans {0} minute",other:"dans {0} minutes"}},second:{current:"maintenant",past:{one:"il y a {0} seconde",other:"il y a {0} secondes"},future:{one:"dans {0} seconde",other:"dans {0} secondes"}}},short:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:"il y a {0} a",future:"dans {0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"il y a {0} trim.",future:"dans {0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} m.",future:"dans {0} m."},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:"il y a {0} sem.",future:"dans {0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:"il y a {0} j",future:"dans {0} j"},hour:{current:"cette heure-ci",past:"il y a {0} h",future:"dans {0} h"},minute:{current:"cette minute-ci",past:"il y a {0} min",future:"dans {0} min"},second:{current:"maintenant",past:"il y a {0} s",future:"dans {0} s"}},narrow:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:"-{0} a",future:"+{0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"-{0} m.",future:"+{0} m."},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:"-{0} j",future:"+{0} j"},hour:{current:"cette heure-ci",past:"-{0} h",future:"+{0} h"},minute:{current:"cette minute-ci",past:"-{0} min",future:"+{0} min"},second:{current:"maintenant",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"maintenant",future:"dans un instant",past:"à l'instant"}},mini:{year:{one:"{0} an",other:"{0} ans"},month:"{0} mois",week:"{0} sem.",day:{one:"{0} jour",other:"{0} jours"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"maintenant"},"long-time":{year:{one:"{0} an",other:"{0} ans"},month:{one:"{0} mois",other:"{0} mois"},week:{one:"{0} semaine",other:"{0} semaines"},day:{one:"{0} jour",other:"{0} jours"},hour:{one:"{0} heure",other:"{0} heures"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} seconde",other:"{0} secondes"}}},Kre={locale:"ru",long:{year:{previous:"в прошлом году",current:"в этом году",next:"в следующем году",past:{one:"{0} год назад",many:"{0} лет назад",other:"{0} года назад"},future:{one:"через {0} год",many:"через {0} лет",other:"через {0} года"}},quarter:{previous:"в прошлом квартале",current:"в текущем квартале",next:"в следующем квартале",past:{one:"{0} квартал назад",many:"{0} кварталов назад",other:"{0} квартала назад"},future:{one:"через {0} квартал",many:"через {0} кварталов",other:"через {0} квартала"}},month:{previous:"в прошлом месяце",current:"в этом месяце",next:"в следующем месяце",past:{one:"{0} месяц назад",many:"{0} месяцев назад",other:"{0} месяца назад"},future:{one:"через {0} месяц",many:"через {0} месяцев",other:"через {0} месяца"}},week:{previous:"на прошлой неделе",current:"на этой неделе",next:"на следующей неделе",past:{one:"{0} неделю назад",many:"{0} недель назад",other:"{0} недели назад"},future:{one:"через {0} неделю",many:"через {0} недель",other:"через {0} недели"}},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:{one:"{0} день назад",many:"{0} дней назад",other:"{0} дня назад"},future:{one:"через {0} день",many:"через {0} дней",other:"через {0} дня"}},hour:{current:"в этот час",past:{one:"{0} час назад",many:"{0} часов назад",other:"{0} часа назад"},future:{one:"через {0} час",many:"через {0} часов",other:"через {0} часа"}},minute:{current:"в эту минуту",past:{one:"{0} минуту назад",many:"{0} минут назад",other:"{0} минуты назад"},future:{one:"через {0} минуту",many:"через {0} минут",other:"через {0} минуты"}},second:{current:"сейчас",past:{one:"{0} секунду назад",many:"{0} секунд назад",other:"{0} секунды назад"},future:{one:"через {0} секунду",many:"через {0} секунд",other:"через {0} секунды"}}},short:{year:{previous:"в прошлом г.",current:"в этом г.",next:"в след. г.",past:{many:"{0} л. назад",other:"{0} г. назад"},future:{many:"через {0} л.",other:"через {0} г."}},quarter:{previous:"последний кв.",current:"текущий кв.",next:"следующий кв.",past:"{0} кв. назад",future:"через {0} кв."},month:{previous:"в прошлом мес.",current:"в этом мес.",next:"в следующем мес.",past:"{0} мес. назад",future:"через {0} мес."},week:{previous:"на прошлой нед.",current:"на этой нед.",next:"на следующей нед.",past:"{0} нед. назад",future:"через {0} нед."},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:"{0} дн. назад",future:"через {0} дн."},hour:{current:"в этот час",past:"{0} ч назад",future:"через {0} ч"},minute:{current:"в эту минуту",past:"{0} мин. назад",future:"через {0} мин."},second:{current:"сейчас",past:"{0} сек. назад",future:"через {0} сек."}},narrow:{year:{previous:"в пр. г.",current:"в эт. г.",next:"в сл. г.",past:{many:"-{0} л.",other:"-{0} г."},future:{many:"+{0} л.",other:"+{0} г."}},quarter:{previous:"посл. кв.",current:"тек. кв.",next:"след. кв.",past:"-{0} кв.",future:"+{0} кв."},month:{previous:"в пр. мес.",current:"в эт. мес.",next:"в след. мес.",past:"-{0} мес.",future:"+{0} мес."},week:{previous:"на пр. нед.",current:"на эт. нед.",next:"на след. нед.",past:"-{0} нед.",future:"+{0} нед."},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:"-{0} дн.",future:"+{0} дн."},hour:{current:"в этот час",past:"-{0} ч",future:"+{0} ч"},minute:{current:"в эту минуту",past:"-{0} мин",future:"+{0} мин"},second:{current:"сейчас",past:"-{0} с",future:"+{0} с"}},now:{now:{current:"сейчас",past:"только что",future:"сейчас"}},mini:{year:{many:"{0} л",other:"{0} г"},month:"{0} мес",week:"{0} нед",day:"{0} д",hour:"{0} ч",minute:"{0} мин",second:"{0} с",now:"сейчас"},"short-time":{year:{many:"{0} л.",other:"{0} г."},month:"{0} мес.",week:"{0} нед.",day:{one:"{0} д.",other:"{0} дн."},hour:"{0} ч.",minute:"{0} мин.",second:"{0} сек."},"long-time":{year:{one:"{0} год",many:"{0} лет",other:"{0} года"},month:{one:"{0} месяц",many:"{0} месяцев",other:"{0} месяца"},week:{one:"{0} неделю",many:"{0} недель",other:"{0} недели"},day:{one:"{0} день",few:"{0} дня",other:"{0} дней"},hour:{one:"{0} час",many:"{0} часов",other:"{0} часа"},minute:{one:"{0} минута",many:"{0} минут",other:"{0} минуты"},second:{one:"{0} секунда",many:"{0} секунд",other:"{0} секунды"}}},Gre={locale:"uk",long:{year:{previous:"минулого року",current:"цього року",next:"наступного року",past:{one:"{0} рік тому",few:"{0} роки тому",many:"{0} років тому",other:"{0} року тому"},future:{one:"через {0} рік",few:"через {0} роки",many:"через {0} років",other:"через {0} року"}},quarter:{previous:"минулого кварталу",current:"цього кварталу",next:"наступного кварталу",past:{one:"{0} квартал тому",few:"{0} квартали тому",many:"{0} кварталів тому",other:"{0} кварталу тому"},future:{one:"через {0} квартал",few:"через {0} квартали",many:"через {0} кварталів",other:"через {0} кварталу"}},month:{previous:"минулого місяця",current:"цього місяця",next:"наступного місяця",past:{one:"{0} місяць тому",few:"{0} місяці тому",many:"{0} місяців тому",other:"{0} місяця тому"},future:{one:"через {0} місяць",few:"через {0} місяці",many:"через {0} місяців",other:"через {0} місяця"}},week:{previous:"минулого тижня",current:"цього тижня",next:"наступного тижня",past:{one:"{0} тиждень тому",few:"{0} тижні тому",many:"{0} тижнів тому",other:"{0} тижня тому"},future:{one:"через {0} тиждень",few:"через {0} тижні",many:"через {0} тижнів",other:"через {0} тижня"}},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:{one:"{0} день тому",few:"{0} дні тому",many:"{0} днів тому",other:"{0} дня тому"},future:{one:"через {0} день",few:"через {0} дні",many:"через {0} днів",other:"через {0} дня"}},hour:{current:"цієї години",past:{one:"{0} годину тому",many:"{0} годин тому",other:"{0} години тому"},future:{one:"через {0} годину",many:"через {0} годин",other:"через {0} години"}},minute:{current:"цієї хвилини",past:{one:"{0} хвилину тому",many:"{0} хвилин тому",other:"{0} хвилини тому"},future:{one:"через {0} хвилину",many:"через {0} хвилин",other:"через {0} хвилини"}},second:{current:"зараз",past:{one:"{0} секунду тому",many:"{0} секунд тому",other:"{0} секунди тому"},future:{one:"через {0} секунду",many:"через {0} секунд",other:"через {0} секунди"}}},short:{year:{previous:"торік",current:"цьогоріч",next:"наст. року",past:"{0} р. тому",future:"через {0} р."},quarter:{previous:"минулого кв.",current:"цього кв.",next:"наступного кв.",past:"{0} кв. тому",future:"через {0} кв."},month:{previous:"минулого місяця",current:"цього місяця",next:"наступного місяця",past:"{0} міс. тому",future:"через {0} міс."},week:{previous:"мин. тижня",current:"цього тижня",next:"наст. тижня",past:"{0} тиж. тому",future:"через {0} тиж."},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:"{0} дн. тому",future:"через {0} дн."},hour:{current:"цієї години",past:"{0} год тому",future:"через {0} год"},minute:{current:"цієї хвилини",past:"{0} хв тому",future:"через {0} хв"},second:{current:"зараз",past:"{0} с тому",future:"через {0} с"}},narrow:{year:{previous:"торік",current:"цього року",next:"наст. р.",past:"{0} р. тому",future:"за {0} р."},quarter:{previous:"минулого кв.",current:"цього кв.",next:"наступного кв.",past:"{0} кв. тому",future:"за {0} кв."},month:{previous:"мин. міс.",current:"цього міс.",next:"наст. міс.",past:"{0} міс. тому",future:"за {0} міс."},week:{previous:"минулого тижня",current:"цього тижня",next:"наступного тижня",past:"{0} тиж. тому",future:"за {0} тиж."},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:"{0} дн. тому",future:"за {0} д."},hour:{current:"цієї години",past:"{0} год тому",future:"за {0} год"},minute:{current:"цієї хвилини",past:"{0} хв тому",future:"за {0} хв"},second:{current:"зараз",past:"{0} с тому",future:"за {0} с"}}};var Yre={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const Zre=cu(Yre);var Xre=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function XP(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(Zre[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var s=new RegExp(Xre),a=null;(a=s.exec(t))!==null;)if(a[0].trim())if(a[1]){var i=a[1].trim(),l=[i,""];i.indexOf("=")>-1&&(l=i.split("=")),e.attrs[l[0]]=l[1],s.lastIndex--}else a[2]&&(e.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return e}var Qre=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Jre=/^\s*$/,ese=Object.create(null);function az(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var r=[];for(var s in n)r.push(s+'="'+n[s]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(az,"")+"";case"comment":return t+""}}var tse={parse:function(t,e){e||(e={}),e.components||(e.components=ese);var n,r=[],s=[],a=-1,i=!1;if(t.indexOf("<")!==0){var l=t.indexOf("<");r.push({type:"text",content:l===-1?t:t.substring(0,l)})}return t.replace(Qre,function(c,d){if(i){if(c!=="")return;i=!1}var p,f=c.charAt(1)!=="/",m=c.startsWith("");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var s=new RegExp(Xre),a=null;(a=s.exec(t))!==null;)if(a[0].trim())if(a[1]){var i=a[1].trim(),l=[i,""];i.indexOf("=")>-1&&(l=i.split("=")),e.attrs[l[0]]=l[1],s.lastIndex--}else a[2]&&(e.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return e}var Qre=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Jre=/^\s*$/,ese=Object.create(null);function az(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(n){var r=[];for(var s in n)r.push(s+'="'+n[s]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(az,"")+"";case"comment":return t+""}}var tse={parse:function(t,e){e||(e={}),e.components||(e.components=ese);var n,r=[],s=[],a=-1,i=!1;if(t.indexOf("<")!==0){var l=t.indexOf("<");r.push({type:"text",content:l===-1?t:t.substring(0,l)})}return t.replace(Qre,function(c,d){if(i){if(c!=="")return;i=!1}var p,f=c.charAt(1)!=="/",m=c.startsWith(""),typeof ct!="string"&&!mn(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw Bg("dirty is not a string, aborting")}else throw Bg("toString is not a function");if(!e.isSupported)return ct;if(me||gt(xe),e.removed=[],typeof ct=="string"&&(Ie=!1),Ie){if(ct.nodeName){const Ht=we(ct.nodeName);if(!H[Ht]||ee[Ht])throw Bg("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof l)Ye=an(""),dt=Ye.ownerDocument.importNode(ct,!0),dt.nodeType===yf.element&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?Ye=dt:Ye.appendChild(dt);else{if(!Ee&&!ce&&!pe&&ct.indexOf("<")===-1)return E&&qe?E.createHTML(ct):ct;if(Ye=an(ct),!Ye)return Ee?null:qe?N:""}Ye&&be&&_t(Ye.firstChild);const It=dn(Ie?ct:Ye);for(;mt=It.nextNode();){if(nn(mt))continue;const Ht=S(mt);mt.nodeType===yf.element&&(Ht&&Ht.__depth?mt.__depth=(mt.__removalCount||0)+Ht.__depth+1:mt.__depth=1),(mt.__depth>=De||mt.__depth<0||RD(mt.__depth))&&_t(mt),mt.content instanceof a&&(mt.content.__depth=mt.__depth,rn(mt.content)),pn(mt)}if(Ie)return ct;if(Ee){if(We)for(xt=I.call(Ye.ownerDocument);Ye.firstChild;)xt.appendChild(Ye.firstChild);else xt=Ye;return(q.shadowroot||q.shadowrootmode)&&(xt=L.call(r,xt,!0)),xt}let At=pe?Ye.outerHTML:Ye.innerHTML;return pe&&H["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&Oa(IU,Ye.ownerDocument.doctype.name)&&(At="\n"+At),ce&&rb([z,Y,O],Ht=>{At=Hg(At,Ht," ")}),E&&qe?E.createHTML(At):At},e.setConfig=function(){let ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(ct),me=!0},e.clearConfig=function(){Se=null,me=!1},e.isValidAttribute=function(ct,xe,Ye){Se||gt({});const dt=we(ct),mt=we(xe);return on(dt,mt,Ye)},e.addHook=function(ct,xe){typeof xe=="function"&&(A[ct]=A[ct]||[],Fg(A[ct],xe))},e.removeHook=function(ct){if(A[ct])return AD(A[ct])},e.removeHooks=function(ct){A[ct]&&(A[ct]=[])},e.removeAllHooks=function(){A={}},e}var Th=AU();Th.addHook("afterSanitizeAttributes",function(t){"target"in t&&(t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"))});const ww=E=>{var N=E,{children:t,text:e,open:n,isDisabled:r,isDark:s,defaultOpen:a,onOpenChange:i,delayDuration:l,noPortal:c=!1,align:d="center",alignOffset:p=0,sideOffset:f=4,maxHeight:m=120,maxWidth:b=220,className:C,classNameTrigger:g,side:w,onClick:x}=N,S=Ne(N,["children","text","open","isDisabled","isDark","defaultOpen","onOpenChange","delayDuration","noPortal","align","alignOffset","sideOffset","maxHeight","maxWidth","className","classNameTrigger","side","onClick"]);var _=sn(1);try{const P=c?v.Fragment:kU,I=it("");return v.useEffect(()=>{window.markdown.ready.then(T=>{try{const L=T.parse(e);I.value=Th.sanitize(L,{USE_PROFILES:{html:!0}})}catch(L){I.value=Th.sanitize(e,{USE_PROFILES:{html:!0}})}})},[e]),r?o.jsx("span",{className:g,children:t}):o.jsx(C7,{delayDuration:l,children:o.jsxs(S7,{open:n,defaultOpen:a,onOpenChange:i,delayDuration:l,children:[o.jsx(j7,{onClick:x,asChild:!0,children:o.jsx("span",{className:g,children:t})}),o.jsx(P,{children:o.jsx(ak,ae(R({side:w!=null?w:"top",sideOffset:f,alignOffset:p,align:d,className:Pn("z-50 overflow-hidden rounded-md border bg-popover px-2.5 py-1.5 text-[13px] text-popover-foreground shadow-sm animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",C)},S),{style:ae(R({},S.style),{maxWidth:b}),children:o.jsx("div",{className:"max-w-[".concat(b,"px]"),children:o.jsx(Nh,{options:{scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:m,maxWidth:"100%"},children:o.jsx("div",{dangerouslySetInnerHTML:{__html:I.value},className:"note-content"})})})}))})]})})}finally{_.f()}},jo=(t,e)=>{const n=Te(4),[r,s]=v.useState(t);let a,i;return n[0]!==t||n[1]!==e?(a=()=>{const l=setTimeout(()=>{s(t)},e);return()=>{clearTimeout(l)}},i=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=i):(a=n[2],i=n[3]),v.useEffect(a,i),r};function Oxe(){return function(t){let e;function n(){e=setTimeout(()=>{t()},1e3)}function r(){e&&clearTimeout(e)}return{onMouseDown:n,onTouchStart:n,onMouseUp:r,onMouseLeave:r,onTouchMove:r,onTouchEnd:r}}}function f0(t){var c,d;const e=Te(6),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M 3 8.992 L 19.686 8.988"}),a=o.jsx("polyline",{points:"16 16.992000579833984"}),i=o.jsx("line",{x1:"3",x2:"13.406",y1:"14.992",y2:"14.992"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r?(l=o.jsxs("svg",{viewBox:"0 0 24 24",width:n,height:r,fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=l):l=e[5],l}function h0(t){var c,d;const e=Te(6),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M 3 8.992 L 18 8.992 C 20.309 8.992 21.753 11.492 20.598 13.492 C 20.062 14.42 19.072 14.992 18 14.992 L 14 14.992"}),a=o.jsx("polyline",{points:"16 12.992 14 14.992 16 16.992"}),i=o.jsx("line",{x1:"3",x2:"10",y1:"14.992",y2:"14.992"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r?(l=o.jsxs("svg",{viewBox:"0 0 24 24",width:n,height:r,fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=l):l=e[5],l}const z1="/assets/image-not-found-Cx6NJXh5.png",uh="/assets/no-image-CF2LzJv7.png";function eo(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function $xe(t){return eo(1,arguments),t instanceof Date||wh(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sc(t){eo(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||wh(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function zxe(t){if(eo(1,arguments),!$xe(t)&&typeof t!="number")return!1;var e=sc(t);return!isNaN(Number(e))}function Ph(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Fxe(t,e){eo(2,arguments);var n=sc(t).getTime(),r=Ph(e);return new Date(n+r)}function Hxe(t,e){eo(2,arguments);var n=Ph(e);return Fxe(t,-n)}var Bxe=864e5;function Uxe(t){eo(1,arguments);var e=sc(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),s=n-r;return Math.floor(s/Bxe)+1}function kw(t){eo(1,arguments);var e=1,n=sc(t),r=n.getUTCDay(),s=(r=s.getTime()?n+1:e.getTime()>=i.getTime()?n:n-1}function Wxe(t){eo(1,arguments);var e=LU(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=kw(n);return r}var Vxe=6048e5;function qxe(t){eo(1,arguments);var e=sc(t),n=kw(e).getTime()-Wxe(e).getTime();return Math.round(n/Vxe)+1}var Kxe={};function uk(){return Kxe}function Cw(t,e){var n,r,s,a,i,l,c,d;eo(1,arguments);var p=uk(),f=Ph((n=(r=(s=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(i=e.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&s!==void 0?s:p.weekStartsOn)!==null&&r!==void 0?r:(c=p.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=sc(t),b=m.getUTCDay(),C=(b=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=new Date(0);C.setUTCFullYear(f+1,0,b),C.setUTCHours(0,0,0,0);var g=Cw(C,e),w=new Date(0);w.setUTCFullYear(f,0,b),w.setUTCHours(0,0,0,0);var x=Cw(w,e);return p.getTime()>=g.getTime()?f+1:p.getTime()>=x.getTime()?f:f-1}function Gxe(t,e){var n,r,s,a,i,l,c,d;eo(1,arguments);var p=uk(),f=Ph((n=(r=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(i=e.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:p.firstWeekContainsDate)!==null&&r!==void 0?r:(c=p.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),m=RU(t,e),b=new Date(0);b.setUTCFullYear(m,0,f),b.setUTCHours(0,0,0,0);var C=Cw(b,e);return C}var Yxe=6048e5;function Zxe(t,e){eo(1,arguments);var n=sc(t),r=Cw(n,e).getTime()-Gxe(n,e).getTime();return Math.round(r/Yxe)+1}function hr(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return hr(n==="yy"?s%100:s,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):hr(r+1,2)},d:function(e,n){return hr(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return hr(e.getUTCHours()%12||12,n.length)},H:function(e,n){return hr(e.getUTCHours(),n.length)},m:function(e,n){return hr(e.getUTCMinutes(),n.length)},s:function(e,n){return hr(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,s=e.getUTCMilliseconds(),a=Math.floor(s*Math.pow(10,r-3));return hr(a,n.length)}};const Uu=Xxe;var Tp={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qxe={G:function(e,n,r){var s=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var s=e.getUTCFullYear(),a=s>0?s:1-s;return r.ordinalNumber(a,{unit:"year"})}return Uu.y(e,n)},Y:function(e,n,r,s){var a=RU(e,s),i=a>0?a:1-a;if(n==="YY"){var l=i%100;return hr(l,2)}return n==="Yo"?r.ordinalNumber(i,{unit:"year"}):hr(i,n.length)},R:function(e,n){var r=LU(e);return hr(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return hr(r,n.length)},Q:function(e,n,r){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return hr(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,n,r){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return hr(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,n,r){var s=e.getUTCMonth();switch(n){case"M":case"MM":return Uu.M(e,n);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(e,n,r){var s=e.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return hr(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(e,n,r,s){var a=Zxe(e,s);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):hr(a,n.length)},I:function(e,n,r){var s=qxe(e);return n==="Io"?r.ordinalNumber(s,{unit:"week"}):hr(s,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Uu.d(e,n)},D:function(e,n,r){var s=Uxe(e);return n==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):hr(s,n.length)},E:function(e,n,r){var s=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(e,n,r,s){var a=e.getUTCDay(),i=(a-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return hr(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,s){var a=e.getUTCDay(),i=(a-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return hr(i,n.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var s=e.getUTCDay(),a=s===0?7:s;switch(n){case"i":return String(a);case"ii":return hr(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(e,n,r){var s=e.getUTCHours(),a=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,n,r){var s=e.getUTCHours(),a;switch(s===12?a=Tp.noon:s===0?a=Tp.midnight:a=s/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,n,r){var s=e.getUTCHours(),a;switch(s>=17?a=Tp.evening:s>=12?a=Tp.afternoon:s>=4?a=Tp.morning:a=Tp.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var s=e.getUTCHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return Uu.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Uu.H(e,n)},K:function(e,n,r){var s=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(s,{unit:"hour"}):hr(s,n.length)},k:function(e,n,r){var s=e.getUTCHours();return s===0&&(s=24),n==="ko"?r.ordinalNumber(s,{unit:"hour"}):hr(s,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Uu.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Uu.s(e,n)},S:function(e,n){return Uu.S(e,n)},X:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return UD(i);case"XXXX":case"XX":return Sf(i);case"XXXXX":case"XXX":default:return Sf(i,":")}},x:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"x":return UD(i);case"xxxx":case"xx":return Sf(i);case"xxxxx":case"xxx":default:return Sf(i,":")}},O:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+BD(i,":");case"OOOO":default:return"GMT"+Sf(i,":")}},z:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+BD(i,":");case"zzzz":default:return"GMT"+Sf(i,":")}},t:function(e,n,r,s){var a=s._originalDate||e,i=Math.floor(a.getTime()/1e3);return hr(i,n.length)},T:function(e,n,r,s){var a=s._originalDate||e,i=a.getTime();return hr(i,n.length)}};function BD(t,e){var n=t>0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),a=r%60;if(a===0)return n+String(s);var i=e||"";return n+String(s)+i+hr(a,2)}function UD(t,e){if(t%60===0){var n=t>0?"-":"+";return n+hr(Math.abs(t)/60,2)}return Sf(t,e)}function Sf(t,e){var n=e||"",r=t>0?"-":"+",s=Math.abs(t),a=hr(Math.floor(s/60),2),i=hr(s%60,2);return r+a+n+i}var WD=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},OU=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Jxe=function(e,n){var r=e.match(/(P+)(p+)?/)||[],s=r[1],a=r[2];if(!a)return WD(e,n);var i;switch(s){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",WD(s,n)).replace("{{time}}",OU(a,n))},eye={p:OU,P:Jxe};function tye(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var nye=["D","DD"],rye=["YY","YYYY"];function sye(t){return nye.indexOf(t)!==-1}function aye(t){return rye.indexOf(t)!==-1}function VD(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iye=function(e,n,r){var s,a=oye[e];return typeof a=="string"?s=a:n===1?s=a.one:s=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};const lye=iye;function KC(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var cye={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fye={date:KC({formats:cye,defaultWidth:"full"}),time:KC({formats:uye,defaultWidth:"full"}),dateTime:KC({formats:dye,defaultWidth:"full"})};const hye=fye;var pye={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mye=function(e,n,r,s){return pye[e]};const gye=mye;function Ug(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):a;s=t.formattingValues[i]||t.formattingValues[a]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[c]||t.values[l]}var d=t.argumentCallback?t.argumentCallback(e):e;return s[d]}}var vye={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xye={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cye=function(e,n){var r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Sye={ordinalNumber:Cye,era:Ug({values:vye,defaultWidth:"wide"}),quarter:Ug({values:xye,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ug({values:yye,defaultWidth:"wide"}),day:Ug({values:bye,defaultWidth:"wide"}),dayPeriod:Ug({values:wye,defaultWidth:"wide",formattingValues:kye,defaultFormattingWidth:"wide"})};const jye=Sye;function Wg(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;var i=a[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Nye(l,function(f){return f.test(i)}):Eye(l,function(f){return f.test(i)}),d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;var p=e.slice(i.length);return{value:d,rest:p}}}function Eye(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Nye(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var s=r[0],a=e.match(t.parsePattern);if(!a)return null;var i=t.valueCallback?t.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var l=e.slice(s.length);return{value:i,rest:l}}}var Tye=/^(\d+)(th|st|nd|rd)?/i,Pye=/\d+/i,Mye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dye={any:[/^b/i,/^(a|c)/i]},Iye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Aye={any:[/1/i,/2/i,/3/i,/4/i]},Lye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Oye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$ye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zye={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fye={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Hye={ordinalNumber:_ye({matchPattern:Tye,parsePattern:Pye,valueCallback:function(e){return parseInt(e,10)}}),era:Wg({matchPatterns:Mye,defaultMatchWidth:"wide",parsePatterns:Dye,defaultParseWidth:"any"}),quarter:Wg({matchPatterns:Iye,defaultMatchWidth:"wide",parsePatterns:Aye,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wg({matchPatterns:Lye,defaultMatchWidth:"wide",parsePatterns:Rye,defaultParseWidth:"any"}),day:Wg({matchPatterns:Oye,defaultMatchWidth:"wide",parsePatterns:$ye,defaultParseWidth:"any"}),dayPeriod:Wg({matchPatterns:zye,defaultMatchWidth:"any",parsePatterns:Fye,defaultParseWidth:"any"})};const Bye=Hye;var Uye={code:"en-US",formatDistance:lye,formatLong:hye,formatRelative:gye,localize:jye,match:Bye,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Wye=Uye;var Vye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kye=/^'([^]*?)'?$/,Gye=/''/g,Yye=/[a-zA-Z]/;function Mh(t,e,n){var r,s,a,i,l,c,d,p,f,m,b,C,g,w,x,S,E,N;eo(2,arguments);var _=String(e),P=uk(),I=(r=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:P.locale)!==null&&r!==void 0?r:Wye,T=Ph((a=(i=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&l!==void 0?l:P.firstWeekContainsDate)!==null&&i!==void 0?i:(f=P.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=Ph((b=(C=(g=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(x=n.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:P.weekStartsOn)!==null&&C!==void 0?C:(E=P.locale)===null||E===void 0||(N=E.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var A=sc(t);if(!zxe(A))throw new RangeError("Invalid time value");var z=tye(A),Y=Hxe(A,z),O={firstWeekContainsDate:T,weekStartsOn:L,locale:I,_originalDate:A},$=_.match(qye).map(function(M){var W=M[0];if(W==="p"||W==="P"){var V=eye[W];return V(M,I.formatLong)}return M}).join("").match(Vye).map(function(M){if(M==="''")return"'";var W=M[0];if(W==="'")return Zye(M);var V=Qxe[W];if(V)return!(n!=null&&n.useAdditionalWeekYearTokens)&&aye(M)&&VD(M,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&sye(M)&&VD(M,e,String(t)),V(Y,M,I.localize,O);if(W.match(Yye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return M}).join("");return $}function Zye(t){var e=t.match(Kye);return e?e[1].replace(Gye,"'"):t}var Xye=Object.create,dk=Object.defineProperty,Qye=Object.defineProperties,Jye=Object.getOwnPropertyDescriptor,ebe=Object.getOwnPropertyDescriptors,$U=Object.getOwnPropertyNames,Sw=Object.getOwnPropertySymbols,tbe=Object.getPrototypeOf,M7=Object.prototype.hasOwnProperty,zU=Object.prototype.propertyIsEnumerable,qD=(t,e,n)=>e in t?dk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ql=(t,e)=>{for(var n in e||(e={}))M7.call(e,n)&&qD(t,n,e[n]);if(Sw)for(var n of Sw(e))zU.call(e,n)&&qD(t,n,e[n]);return t},fk=(t,e)=>Qye(t,ebe(e)),FU=(t,e)=>{var n={};for(var r in t)M7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Sw)for(var r of Sw(t))e.indexOf(r)<0&&zU.call(t,r)&&(n[r]=t[r]);return n},nbe=(t,e)=>function(){return e||(0,t[$U(t)[0]])((e={exports:{}}).exports,e),e.exports},rbe=(t,e)=>{for(var n in e)dk(t,n,{get:e[n],enumerable:!0})},sbe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $U(e))!M7.call(t,s)&&s!==n&&dk(t,s,{get:()=>e[s],enumerable:!(r=Jye(e,s))||r.enumerable});return t},abe=(t,e,n)=>(n=t!=null?Xye(tbe(t)):{},sbe(e||!t||!t.__esModule?dk(n,"default",{value:t,enumerable:!0}):n,t)),obe=nbe({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,e){var n=function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},i={util:{encode:function C(g){return g instanceof l?new l(g.type,C(g.content),g.alias):Array.isArray(g)?g.map(C):g.replace(/&/g,"&").replace(/"+S.content+""};function c(C,g,w,x){C.lastIndex=g;var S=C.exec(w);if(S&&x&&S[1]){var E=S[1].length;S.index+=E,S[0]=S[0].slice(E)}return S}function d(C,g,w,x,S,E){for(var N in w)if(!(!w.hasOwnProperty(N)||!w[N])){var _=w[N];_=Array.isArray(_)?_:[_];for(var P=0;P<_.length;++P){if(E&&E.cause==N+","+P)return;var I=_[P],T=I.inside,L=!!I.lookbehind,A=!!I.greedy,z=I.alias;if(A&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var O=I.pattern||I,$=x.next,M=S;$!==g.tail&&!(E&&M>=E.reach);M+=$.value.length,$=$.next){var W=$.value;if(g.length>C.length)return;if(!(W instanceof l)){var V=1,U;if(A){if(U=c(O,M,C,L),!U||U.index>=C.length)break;var q=U.index,J=U.index+U[0].length,H=M;for(H+=$.value.length;q>=H;)$=$.next,H+=$.value.length;if(H-=$.value.length,M=H,$.value instanceof l)continue;for(var F=$;F!==g.tail&&(HE.reach&&(E.reach=G);var Z=$.prev;te&&(Z=f(g,Z,te),M+=te.length),m(g,Z,V);var le=new l(N,T?i.tokenize(X,T):X,z,X);if($=f(g,Z,le),ee&&f(g,$,ee),V>1){var se={cause:N+","+P,reach:G};d(C,g,w,$.prev,M,se),E&&se.reach>E.reach&&(E.reach=se.reach)}}}}}}function p(){var C={value:null,prev:null,next:null},g={value:null,prev:C,next:null};C.next=g,this.head=C,this.tail=g,this.length=0}function f(C,g,w){var x=g.next,S={value:w,prev:g,next:x};return g.next=S,x.prev=S,C.length++,S}function m(C,g,w){for(var x=g.next,S=0;S/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},yt.languages.markup.tag.inside["attr-value"].inside.entity=yt.languages.markup.entity,yt.languages.markup.doctype.inside["internal-subset"].inside=yt.languages.markup,yt.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(yt.languages.markup.tag,"addInlined",{value:function(t,r){var n={},n=(n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:yt.languages[r]},n.cdata=/^$/i,{"included-cdata":{pattern://i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:yt.languages[r]},{});r[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},yt.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(yt.languages.markup.tag,"addAttribute",{value:function(t,e){yt.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:yt.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),yt.languages.html=yt.languages.markup,yt.languages.mathml=yt.languages.markup,yt.languages.svg=yt.languages.markup,yt.languages.xml=yt.languages.extend("markup",{}),yt.languages.ssml=yt.languages.xml,yt.languages.atom=yt.languages.xml,yt.languages.rss=yt.languages.xml,function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},yt.languages.javascript=yt.languages.extend("clike",{"class-name":[yt.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),yt.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,yt.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:yt.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:yt.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:yt.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:yt.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:yt.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),yt.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:yt.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),yt.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),yt.languages.markup&&(yt.languages.markup.tag.addInlined("script","javascript"),yt.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),yt.languages.js=yt.languages.javascript,yt.languages.actionscript=yt.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),yt.languages.actionscript["class-name"].alias="function",delete yt.languages.actionscript.parameter,delete yt.languages.actionscript["literal-property"],yt.languages.markup&&yt.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:yt.languages.markup}}),function(t){var e=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:e,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:e,interpolation:n}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(yt),function(t){var e=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(s){var a=function(f){f.inside||(f.inside={}),f.inside.rest=r},i="doc-comment";if(l=t.languages[s]){var l,c=l[i];if((c=c||(l=t.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(c=l[i]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=e,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:e,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:e,number:n})}(yt),function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+n.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return l});return RegExp(d,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+s+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(yt),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(//g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+a+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+a+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(t.languages.markdown[d].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||function p(f){if(f&&typeof f!="string")for(var m=0,b=f.length;m",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(yt),yt.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:yt.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},yt.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var e=t.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.javascript["template-string"],n=e.pattern.source,r=e.inside.interpolation,s=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(f,m){if(t.languages[f])return{pattern:RegExp("((?:"+m+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:f}}}}function l(f,m,b){return f={code:f,grammar:m,language:b},t.hooks.run("before-tokenize",f),f.tokens=t.tokenize(f.code,f.grammar),t.hooks.run("after-tokenize",f),f.tokens}function c(f,m,b){var w=t.tokenize(f,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),C=0,g={},w=l(w.map(function(S){if(typeof S=="string")return S;for(var E,N,S=S.content;f.indexOf((N=C++,E="___"+b.toUpperCase()+"_"+N+"___"))!==-1;);return g[E]=S,E}).join(""),m,b),x=Object.keys(g);return C=0,function S(E){for(var N=0;N=x.length)return;var _,P,I,T,L,A,z,Y=E[N];typeof Y=="string"||typeof Y.content=="string"?(_=x[C],(z=(A=typeof Y=="string"?Y:Y.content).indexOf(_))!==-1&&(++C,P=A.substring(0,z),L=g[_],I=void 0,(T={})["interpolation-punctuation"]=s,(T=t.tokenize(L,T)).length===3&&((I=[1,1]).push.apply(I,l(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,I)),I=new t.Token("interpolation",T,r.alias,L),T=A.substring(z+_.length),L=[],P&&L.push(P),L.push(I),T&&(S(A=[T]),L.push.apply(L,A)),typeof Y=="string"?(E.splice.apply(E,[N,1].concat(L)),N+=L.length-1):Y.content=L)):(z=Y.content,Array.isArray(z)?S(z):S([z]))}}(w),new t.Token(b,w,"language-"+b,f)}t.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),e].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(f){return typeof f=="string"?f:Array.isArray(f)?f.map(p).join(""):p(f.content)}t.hooks.add("after-tokenize",function(f){f.language in d&&function m(b){for(var C=0,g=b.length;C]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(yt),function(t){var e=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:e,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:e.string,number:e.number,boolean:e.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:e,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(yt),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(yt),yt.languages.n4js=yt.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),yt.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),yt.languages.n4jsd=yt.languages.n4js,function(t){function e(i,l){return RegExp(i.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(c,d){return c=c.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return s}),RegExp(c,d)}s=a(s).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function i(c){for(var d=[],p=0;p"&&d.push({tagName:l(f.content[0].content[1]),openedBraces:0}):0]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},yt.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=yt.languages.swift}),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var e={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:e},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:e},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(yt),yt.languages.c=yt.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),yt.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),yt.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},yt.languages.c.string],char:yt.languages.c.char,comment:yt.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:yt.languages.c}}}}),yt.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete yt.languages.c.boolean,yt.languages.objectivec=yt.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete yt.languages.objectivec["class-name"],yt.languages.objc=yt.languages.objectivec,yt.languages.reason=yt.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),yt.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete yt.languages.reason.function,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)e=e.replace(//g,function(){return e});e=e.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(yt),yt.languages.go=yt.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),yt.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete yt.languages.go["class-name"],function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(yt),yt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},yt.languages.python["string-interpolation"].inside.interpolation.inside.rest=yt.languages.python,yt.languages.py=yt.languages.python;var gl={};rbe(gl,{dracula:()=>lbe,duotoneDark:()=>ube,duotoneLight:()=>fbe,github:()=>pbe,jettwaveDark:()=>Lbe,jettwaveLight:()=>Obe,nightOwl:()=>gbe,nightOwlLight:()=>xbe,oceanicNext:()=>bbe,okaidia:()=>kbe,oneDark:()=>zbe,oneLight:()=>Hbe,palenight:()=>Sbe,shadesOfPurple:()=>Ebe,synthwave84:()=>_be,ultramin:()=>Pbe,vsDark:()=>HU,vsLight:()=>Ibe});var ibe={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},lbe=ibe,cbe={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},ube=cbe,dbe={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},fbe=dbe,hbe={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},pbe=hbe,mbe={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},gbe=mbe,vbe={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},xbe=vbe,Do={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},ybe={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Do.keyword}},{types:["attr-value"],style:{color:Do.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Do.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Do.primitive}},{types:["boolean"],style:{color:Do.boolean}},{types:["tag"],style:{color:Do.tag}},{types:["string"],style:{color:Do.string}},{types:["punctuation"],style:{color:Do.string}},{types:["selector","char","builtin","inserted"],style:{color:Do.char}},{types:["function"],style:{color:Do.function}},{types:["operator","entity","url","variable"],style:{color:Do.variable}},{types:["keyword"],style:{color:Do.keyword}},{types:["atrule","class-name"],style:{color:Do.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},bbe=ybe,wbe={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},kbe=wbe,Cbe={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Sbe=Cbe,jbe={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Ebe=jbe,Nbe={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},_be=Nbe,Tbe={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Pbe=Tbe,Mbe={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},HU=Mbe,Dbe={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Ibe=Dbe,Abe={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Lbe=Abe,Rbe={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Obe=Rbe,$be={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},zbe=$be,Fbe={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Hbe=Fbe,Bbe=(t,e)=>{const{plain:n}=t,r=t.styles.reduce((s,a)=>{const{languages:i,style:l}=a;return i&&!i.includes(e)||a.types.forEach(c=>{const d=Ql(Ql({},s[c]),l);s[c]=d}),s},{});return r.root=n,r.plain=fk(Ql({},n),{backgroundColor:void 0}),r},KD=Bbe,Ube=(t,e)=>{const[n,r]=v.useState(KD(e,t)),s=v.useRef(),a=v.useRef();return v.useEffect(()=>{(e!==s.current||t!==a.current)&&(s.current=e,a.current=t,r(KD(e,t)))},[t,e]),n},Wbe=t=>v.useCallback(e=>{var n=e,{className:r,style:s,line:a}=n,i=FU(n,["className","style","line"]);const l=fk(Ql({},i),{className:Pn("token-line",r)});return typeof t=="object"&&"plain"in t&&(l.style=t.plain),typeof s=="object"&&(l.style=Ql(Ql({},l.style||{}),s)),l},[t]),Vbe=t=>{const e=v.useCallback(({types:n,empty:r})=>{if(t!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return t[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(s=>t[s]))}},[t]);return v.useCallback(n=>{var r=n,{token:s,className:a,style:i}=r,l=FU(r,["token","className","style"]);const c=fk(Ql({},l),{className:Pn("token",...s.types,a),children:s.content,style:e(s)});return i!=null&&(c.style=Ql(Ql({},c.style||{}),i)),c},[e])},qbe=/\r\n|\r|\n/,GD=t=>{t.length===0?t.push({types:["plain"],content:"\n",empty:!0}):t.length===1&&t[0].content===""&&(t[0].content="\n",t[0].empty=!0)},YD=(t,e)=>{const n=t.length;return n>0&&t[n-1]===e?t:t.concat(e)},Kbe=t=>{const e=[[]],n=[t],r=[0],s=[t.length];let a=0,i=0,l=[];const c=[l];for(;i>-1;){for(;(a=r[i]++)0?p:["plain"],d=m):(p=YD(p,m.type),m.alias&&(p=YD(p,m.alias)),d=m.content),typeof d!="string"){i++,e.push(p),n.push(d),r.push(0),s.push(d.length);continue}const b=d.split(qbe),C=b.length;l.push({types:p,content:b[0]});for(let g=1;g{const s=v.useRef(t);return v.useMemo(()=>{if(n==null)return ZD([e]);const a={code:e,grammar:n,language:r,tokens:[]};return s.current.hooks.run("before-tokenize",a),a.tokens=s.current.tokenize(e,n),s.current.hooks.run("after-tokenize",a),ZD(a.tokens)},[e,n,r])},Ybe=({children:t,language:e,code:n,theme:r,prism:s})=>{const a=e.toLowerCase(),i=Ube(a,r),l=Wbe(i),c=Vbe(i),d=s.languages[a],p=Gbe({prism:s,language:a,code:n,grammar:d});return t({tokens:p,className:"prism-code language-".concat(a),style:i!=null?i.root:{},getLineProps:l,getTokenProps:c})},Tx=t=>v.createElement(Ybe,fk(Ql({},t),{prism:t.prism||yt,theme:t.theme||HU,code:t.code,language:t.language}));/*! Bundled license information: + */const sl=(t,e)=>{const{o:n,u:r,_:s}=t;let a=n,i;const l=(p,f)=>{const m=a,b=p,C=f||(r?!r(m,b):m!==b);return(C||s)&&(a=b,i=m),[a,C,i]};return[e?p=>l(e(a,i),p):l,p=>[a,!!p,i]]},c7=typeof window!="undefined",zB=c7&&Node.ELEMENT_NODE,{toString:Pge,hasOwnProperty:AC}=Object.prototype,Mge=/^\[object (.+)\]$/,af=t=>t===void 0,Z5=t=>t===null,Dge=t=>af(t)||Z5(t)?"".concat(t):Pge.call(t).replace(Mge,"$1").toLowerCase(),Xl=t=>typeof t=="number",Ex=t=>typeof t=="string",FB=t=>typeof t=="boolean",rc=t=>typeof t=="function",Mi=t=>Array.isArray(t),Tv=t=>typeof t=="object"&&!Mi(t)&&!Z5(t),X5=t=>{const e=!!t&&t.length,n=Xl(e)&&e>-1&&e%1==0;return Mi(t)||!rc(t)&&n?e>0&&Tv(t)?e-1 in t:!0:!1},iw=t=>{if(!t||!Tv(t)||Dge(t)!=="object")return!1;let e;const n="constructor",r=t[n],s=r&&r.prototype,a=AC.call(t,n),i=s&&AC.call(s,"isPrototypeOf");if(r&&!a&&!i)return!1;for(e in t);return af(e)||AC.call(t,e)},L1=t=>{const e=HTMLElement;return t?e?t instanceof e:t.nodeType===zB:!1},Q5=t=>{const e=Element;return t?e?t instanceof e:t.nodeType===zB:!1};function xr(t,e){if(X5(t))for(let n=0;ne(t[n],n,t));return t}const J5=(t,e)=>t.indexOf(e)>=0,jd=(t,e)=>t.concat(e),gr=(t,e,n)=>(!n&&!Ex(e)&&X5(e)?Array.prototype.push.apply(t,e):t.push(e),t),U0=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach(r=>{gr(n,r)}):xr(t,r=>{gr(n,r)}),n)},lw=t=>!!t&&!t.length,eD=t=>U0(new Set(t)),Di=(t,e,n)=>{xr(t,s=>s&&s.apply(void 0,e||[])),!n&&(t.length=0)},ek=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),au=t=>t?Object.keys(t):[],ur=(t,e,n,r,s,a,i)=>{const l=[e,n,r,s,a,i];return(typeof t!="object"||Z5(t))&&!rc(t)&&(t={}),xr(l,c=>{xr(c,(d,p)=>{const f=c[p];if(t===f)return!0;const m=Mi(f);if(f&&iw(f)){const b=t[p];let C=b;m&&!Mi(b)?C=[]:!m&&!iw(b)&&(C={}),t[p]=ur(C,f)}else t[p]=m?f.slice():f})}),t},HB=(t,e)=>xr(ur({},t),(n,r,s)=>{n===void 0?delete s[r]:e&&n&&iw(n)&&(s[r]=HB(n,e))}),u7=t=>{for(const e in t)return!1;return!0},Ua=(t,e,n)=>{if(af(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},BB=(t,e)=>new Set((Ua(t,e)||"").split(" ")),oo=(t,e)=>{t&&t.removeAttribute(e)},lh=(t,e,n,r)=>{if(n){const s=BB(t,e);s[r?"add":"delete"](n);const a=U0(s).join(" ").trim();Ua(t,e,a)}},Ige=(t,e,n)=>BB(t,e).has(n),H6=c7&&Element.prototype,UB=(t,e)=>{const n=[],r=e?Q5(e)&&e:document;return r?gr(n,r.querySelectorAll(t)):n},Age=(t,e)=>{const n=e?Q5(e)&&e:document;return n?n.querySelector(t):null},cw=(t,e)=>Q5(t)?(H6.matches||H6.msMatchesSelector).call(t,e):!1,B6=t=>t?U0(t.childNodes):[],Gc=t=>t&&t.parentElement,dm=(t,e)=>{if(Q5(t)){const n=H6.closest;if(n)return n.call(t,e);do{if(cw(t,e))return t;t=Gc(t)}while(t)}},Lge=(t,e,n)=>{const r=dm(t,e),s=t&&Age(n,r),a=dm(s,e)===r;return r&&s?r===t||s===t||a&&dm(dm(t,n),e)!==r:!1},ki=()=>{},Yc=t=>{if(X5(t))xr(U0(t),e=>Yc(e));else if(t){const e=Gc(t);e&&e.removeChild(t)}},d7=(t,e,n)=>{if(n&&t){let r=e,s;return X5(n)?(s=document.createDocumentFragment(),xr(n,a=>{a===r&&(r=a.previousSibling),s.appendChild(a)})):s=n,e&&(r?r!==e&&(r=r.nextSibling):r=t.firstChild),t.insertBefore(s,r||null),()=>Yc(n)}return ki},xi=(t,e)=>d7(t,null,e),Rge=(t,e)=>d7(Gc(t),t,e),tD=(t,e)=>d7(Gc(t),t&&t.nextSibling,e),ch=t=>{const e=document.createElement("div");return Ua(e,"class",t),e},WB=t=>{const e=ch();return e.innerHTML=t.trim(),xr(B6(e),n=>Yc(n))},wo=c7?window:{},R1=Math.max,Oge=Math.min,Pv=Math.round,VB=wo.cancelAnimationFrame,qB=wo.requestAnimationFrame,uw=wo.setTimeout,U6=wo.clearTimeout,W6=t=>t.charAt(0).toUpperCase()+t.slice(1),$ge=()=>ch().style,zge=["-webkit-","-moz-","-o-","-ms-"],Fge=["WebKit","Moz","O","MS","webkit","moz","o","ms"],LC={},RC={},Hge=t=>{let e=RC[t];if(ek(RC,t))return e;const n=W6(t),r=$ge();return xr(zge,s=>{const a=s.replace(/-/g,"");return!(e=[t,s+t,a+n,W6(a)+n].find(l=>r[l]!==void 0))}),RC[t]=e||""},tk=t=>{let e=LC[t]||wo[t];return ek(LC,t)||(xr(Fge,n=>(e=e||wo[n+W6(t)],!e)),LC[t]=e),e},Bge=tk("MutationObserver"),nD=tk("IntersectionObserver"),dw=tk("ResizeObserver"),V6=tk("ScrollTimeline"),Nn=(t,...e)=>t.bind(0,...e),ed=t=>{let e;const n=t?uw:qB,r=t?U6:VB;return[s=>{r(e),e=n(s,rc(t)?t():t)},()=>r(e)]},KB=(t,e)=>{let n,r,s,a=ki;const{v:i,p:l,g:c}=e||{},d=function(C){a(),U6(n),n=r=void 0,a=ki,t.apply(this,C)},p=b=>c&&r?c(r,b):b,f=()=>{a!==ki&&d(p(s)||s)},m=function(){const C=U0(arguments),g=rc(i)?i():i;if(Xl(g)&&g>=0){const x=rc(l)?l():l,S=Xl(x)&&x>=0,E=g>0?uw:qB,N=g>0?U6:VB,P=p(C)||C,I=d.bind(0,P);a();const T=E(I,g);a=()=>N(T),S&&!n&&(n=uw(f,x)),r=s=P}else d(C)};return m.m=f,m},Uge=/[^\x20\t\r\n\f]+/g,GB=(t,e,n)=>{const r=t&&t.classList;let s,a=0,i=!1;if(r&&e&&Ex(e)){const l=e.match(Uge)||[];for(i=l.length>0;s=l[a++];)i=!!n(r,s)&&i}return i},f7=(t,e)=>{GB(t,e,(n,r)=>n.remove(r))},Gd=(t,e)=>(GB(t,e,(n,r)=>n.add(r)),Nn(f7,t,e)),Wge={opacity:1,zIndex:1},Jy=(t,e)=>{const n=t||"",r=e?parseFloat(n):parseInt(n,10);return r===r?r:0},Vge=(t,e)=>!Wge[t]&&Xl(e)?"".concat(e,"px"):e,rD=(t,e,n)=>String((e!=null?e[n]||e.getPropertyValue(n):t.style[n])||""),qge=(t,e,n)=>{try{const{style:r}=t;af(r[e])?r.setProperty(e,n):r[e]=Vge(e,n)}catch(r){}},YB=t=>{const e=t||0;return isFinite(e)?e:0};function ka(t,e){const n=Ex(e);if(Mi(e)||n){let s=n?"":{};if(t){const a=wo.getComputedStyle(t,null);s=n?rD(t,a,e):e.reduce((i,l)=>(i[l]=rD(t,a,l),i),s)}return s}t&&xr(e,(s,a)=>qge(t,a,e[a]))}const Mv=t=>ka(t,"direction")==="rtl",sD=(t,e,n)=>{const r=e?"".concat(e,"-"):"",s=n?"-".concat(n):"",a="".concat(r,"top").concat(s),i="".concat(r,"right").concat(s),l="".concat(r,"bottom").concat(s),c="".concat(r,"left").concat(s),d=ka(t,[a,i,l,c]);return{t:Jy(d[a],!0),r:Jy(d[i],!0),b:Jy(d[l],!0),l:Jy(d[c],!0)}},_p=(t,e)=>"translate".concat(Tv(t)?"(".concat(t.x,",").concat(t.y,")"):"".concat(e?"X":"Y","(").concat(t,")")),eb=t=>"".concat((YB(t)*100).toFixed(3),"%"),tb=t=>"".concat(YB(t),"px"),ZB="paddingTop",h7="paddingRight",p7="paddingLeft",fw="paddingBottom",hw="marginLeft",pw="marginRight",O1="marginBottom",h1="overflowX",p1="overflowY",ou="width",iu="height",c0="hidden",Kge={w:0,h:0},nk=(t,e)=>e?{w:e["".concat(t,"Width")],h:e["".concat(t,"Height")]}:Kge,Gge=t=>nk("inner",t||wo),$1=Nn(nk,"offset"),Fb=Nn(nk,"client"),mw=Nn(nk,"scroll"),gw=t=>{const e=parseFloat(ka(t,ou))||0,n=parseFloat(ka(t,iu))||0;return{w:e-Pv(e),h:n-Pv(n)}},ql=t=>t.getBoundingClientRect(),q6=t=>!!(t&&(t[iu]||t[ou])),XB=(t,e)=>{const n=q6(t);return!q6(e)&&n},rk=(t,e,n,r)=>{if(t&&e){let s=!0;return xr(n,a=>{const i=r?r(t[a]):t[a],l=r?r(e[a]):e[a];i!==l&&(s=!1)}),s}return!1},QB=(t,e)=>rk(t,e,["w","h"]),JB=(t,e)=>rk(t,e,["x","y"]),Yge=(t,e)=>rk(t,e,["t","r","b","l"]),aD=(t,e,n)=>rk(t,e,[ou,iu],n&&(r=>Pv(r)));let nb;const oD="passive",Zge=()=>{if(af(nb)){nb=!1;try{wo.addEventListener(oD,ki,Object.defineProperty({},oD,{get(){nb=!0}}))}catch(t){}}return nb},eU=t=>t.split(" "),iD=(t,e,n,r)=>{xr(eU(e),s=>{t.removeEventListener(s,n,r)})},Jr=(t,e,n,r)=>{var s;const a=Zge(),i=(s=a&&r&&r.S)!=null?s:a,l=r&&r.$||!1,c=r&&r.O||!1,d=a?{passive:i,capture:l}:l;return Nn(Di,eU(e).map(p=>{const f=c?m=>{iD(t,p,f,l),n(m)}:n;return t.addEventListener(p,f,d),Nn(iD,t,p,f,l)}))},tU=t=>t.stopPropagation(),lD=t=>t.preventDefault(),Xge={x:0,y:0},OC=t=>{const e=t&&ql(t);return e?{x:e.left+wo.pageYOffset,y:e.top+wo.pageXOffset}:Xge},nU=(t,e,n)=>n?n.n?-t:n.i?e-t:t:t,Qge=(t,e)=>[e&&e.i?t:0,nU(t,t,e)],Yd=(t,e)=>{const{x:n,y:r}=Xl(e)?{x:e,y:e}:e||{};Xl(n)&&(t.scrollLeft=n),Xl(r)&&(t.scrollTop=r)},u0=t=>({x:t.scrollLeft,y:t.scrollTop}),cD=(t,e)=>{xr(Mi(e)?e:[e],t)},K6=t=>{const e=new Map,n=(a,i)=>{if(a){const l=e.get(a);cD(c=>{l&&l[c?"delete":"clear"](c)},i)}else e.forEach(l=>{l.clear()}),e.clear()},r=(a,i)=>{if(Ex(a)){const d=e.get(a)||new Set;return e.set(a,d),cD(p=>{rc(p)&&d.add(p)},i),Nn(n,a,i)}FB(i)&&i&&n();const l=au(a),c=[];return xr(l,d=>{const p=a[d];p&&gr(c,r(d,p))}),Nn(Di,c)},s=(a,i)=>{xr(U0(e.get(a)),l=>{i&&!lw(i)?l.apply(0,i):l()})};return r(t||{}),[r,n,s]},uD=t=>JSON.stringify(t,(e,n)=>{if(rc(n))throw 0;return n}),dD=(t,e)=>t?"".concat(e).split(".").reduce((n,r)=>n&&ek(n,r)?n[r]:void 0,t):void 0,Jge={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},rU=(t,e)=>{const n={},r=jd(au(e),au(t));return xr(r,s=>{const a=t[s],i=e[s];if(Tv(a)&&Tv(i))ur(n[s]={},rU(a,i)),u7(n[s])&&delete n[s];else if(ek(e,s)&&i!==a){let l=!0;if(Mi(a)||Mi(i))try{uD(a)===uD(i)&&(l=!1)}catch(c){}l&&(n[s]=i)}}),n},e1e=(t,e,n)=>r=>[dD(t,r),n||dD(e,r)!==void 0],Nx="data-overlayscrollbars",sU="os-environment",aU="".concat(sU,"-flexbox-glue"),t1e="".concat(aU,"-max"),oU="os-scrollbar-hidden",$C="".concat(Nx,"-initialize"),al=Nx,iU="".concat(al,"-overflow-x"),lU="".concat(al,"-overflow-y"),Em="overflowVisible",n1e="scrollbarHidden",fD="scrollbarPressed",vw="updating",td="".concat(Nx,"-viewport"),zC="arrange",cU="scrollbarHidden",Nm=Em,G6="".concat(Nx,"-padding"),r1e=Nm,hD="".concat(Nx,"-content"),m7="os-size-observer",s1e="".concat(m7,"-appear"),a1e="".concat(m7,"-listener"),o1e="os-trinsic-observer",i1e="os-no-css-vars",l1e="os-theme-none",To="os-scrollbar",c1e="".concat(To,"-rtl"),u1e="".concat(To,"-horizontal"),d1e="".concat(To,"-vertical"),uU="".concat(To,"-track"),g7="".concat(To,"-handle"),f1e="".concat(To,"-visible"),h1e="".concat(To,"-cornerless"),pD="".concat(To,"-transitionless"),mD="".concat(To,"-interaction"),gD="".concat(To,"-unusable"),Y6="".concat(To,"-auto-hide"),vD="".concat(Y6,"-hidden"),xD="".concat(To,"-wheel"),p1e="".concat(uU,"-interactive"),m1e="".concat(g7,"-interactive"),dU={},fU={},g1e=t=>{xr(t,e=>xr(e,(n,r)=>{dU[r]=e[r]}))},hU=(t,e,n)=>au(t).map(r=>{const{static:s,instance:a}=t[r],[i,l,c]=n||[],d=n?a:s;if(d){const p=n?d(i,l,e):d(e);return(c||fU)[r]=p}}),W0=t=>fU[t],v1e="__osOptionsValidationPlugin",x1e="__osSizeObserverPlugin",v7="__osScrollbarsHidingPlugin",y1e="__osClickScrollPlugin";let FC;const yD=(t,e,n,r)=>{xi(t,e);const s=Fb(e),a=$1(e),i=gw(n);return r&&Yc(e),{x:a.h-s.h+i.h,y:a.w-s.w+i.w}},b1e=t=>{let e=!1;const n=Gd(t,oU);try{e=ka(t,Hge("scrollbar-width"))==="none"||wo.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch(r){}return n(),e},w1e=(t,e)=>{ka(t,{[h1]:c0,[p1]:c0,direction:"rtl"}),Yd(t,{x:0});const n=OC(t),r=OC(e);Yd(t,{x:-999});const s=OC(e);return{i:n.x===r.x,n:r.x!==s.x}},k1e=(t,e)=>{const n=Gd(t,aU),r=ql(t),s=ql(e),a=aD(s,r,!0),i=Gd(t,t1e),l=ql(t),c=ql(e),d=aD(c,l,!0);return n(),i(),a&&d},C1e=()=>{const{body:t}=document,n=WB('
'))[0],r=n.firstChild,[s,,a]=K6(),[i,l]=sl({o:yD(t,n,r),u:JB},Nn(yD,t,n,r,!0)),[c]=l(),d=b1e(n),p={x:c.x===0,y:c.y===0},f={elements:{host:null,padding:!d,viewport:w=>d&&w===w.ownerDocument.body&&w,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},m=ur({},Jge),b=Nn(ur,{},m),C=Nn(ur,{},f),g={P:c,I:p,H:d,A:ka(n,"zIndex")==="-1",L:!!V6,V:w1e(n,r),U:k1e(n,r),B:Nn(s,"r"),j:C,N:w=>ur(f,w)&&C(),G:b,q:w=>ur(m,w)&&b(),F:ur({},f),W:ur({},m)};return oo(n,"style"),Yc(n),wo.addEventListener("resize",()=>{let w;if(!d&&(!p.x||!p.y)){const x=W0(v7);w=!!(x?x.R():ki)(g,i)}a("r",[w])}),g},ko=()=>(FC||(FC=C1e()),FC),x7=(t,e)=>rc(e)?e.apply(0,t):e,S1e=(t,e,n,r)=>{const s=af(r)?n:r;return x7(t,s)||e.apply(0,t)},pU=(t,e,n,r)=>{const s=af(r)?n:r,a=x7(t,s);return!!a&&(L1(a)?a:e.apply(0,t))},j1e=(t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{I:s,H:a,j:i}=ko(),{nativeScrollbarsOverlaid:l,body:c}=i().cancel,d=n!=null?n:l,p=af(r)?c:r,f=(s.x||s.y)&&d,m=t&&(Z5(p)?!a:p);return!!f||!!m},y7=new WeakMap,E1e=(t,e)=>{y7.set(t,e)},N1e=t=>{y7.delete(t)},mU=t=>y7.get(t),_1e=(t,e,n)=>{let r=!1;const s=n?new WeakMap:!1,a=()=>{r=!0},i=l=>{if(s&&n){const c=n.map(d=>{const[p,f]=d||[];return[f&&p?(l||UB)(p,t):[],f]});xr(c,d=>xr(d[0],p=>{const f=d[1],m=s.get(p)||[];if(t.contains(p)&&f){const C=Jr(p,f.trim(),g=>{r?(C(),s.delete(p)):e(g)});s.set(p,gr(m,C))}else Di(m),s.delete(p)}))}};return i(),[a,i]},bD=(t,e,n,r)=>{let s=!1;const{X:a,Y:i,J:l,K:c,Z:d,tt:p}=r||{},f=KB(()=>s&&n(!0),{v:33,p:99}),[m,b]=_1e(t,f,l),C=a||[],g=i||[],w=jd(C,g),x=(E,N)=>{if(!lw(N)){const _=d||ki,P=p||ki,I=[],T=[];let L=!1,A=!1;if(xr(N,z=>{const{attributeName:Y,target:O,type:$,oldValue:M,addedNodes:W,removedNodes:V}=z,U=$==="attributes",J=$==="childList",H=t===O,F=U&&Y,q=F?Ua(O,Y||""):null,X=F&&M!==q,te=J5(g,Y)&&X;if(e&&(J||!H)){const ee=U&&X,G=ee&&c&&cw(O,c),le=(G?!_(O,Y,M,q):!U||ee)&&!P(z,!!G,t,r);xr(W,se=>gr(I,se)),xr(V,se=>gr(I,se)),A=A||le}!e&&H&&X&&!_(O,Y,M,q)&&(gr(T,Y),L=L||te)}),b(z=>eD(I).reduce((Y,O)=>(gr(Y,UB(z,O)),cw(O,z)?gr(Y,O):Y),[])),e)return!E&&A&&n(!1),[!1];if(!lw(T)||L){const z=[eD(T),L];return!E&&n.apply(0,z),z}}},S=new Bge(Nn(x,!1));return[()=>(S.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:w,subtree:e,childList:e,characterData:e}),s=!0,()=>{s&&(m(),S.disconnect(),s=!1)}),()=>{if(s)return f.m(),x(!0,S.takeRecords())}]},gU=(t,e,n)=>{const{nt:s,ot:a}=n||{},i=W0(x1e),{V:l}=ko(),c=Nn(Mv,t),[d]=sl({o:!1,_:!0});return()=>{const p=[],m=WB('
'))[0],b=m.firstChild,C=g=>{const w=g instanceof ResizeObserverEntry,x=!w&&Mi(g);let S=!1,E=!1,N=!0;if(w){const[_,,P]=d(g.contentRect),I=q6(_),T=XB(_,P);E=!P||T,S=!E&&!I,N=!S}else x?[,N]=g:E=g===!0;if(s&&N){const _=x?g[0]:Mv(m);Yd(m,{x:nU(3333333,3333333,_&&l),y:3333333})}S||e({st:x?g:void 0,et:!x,ot:E})};if(dw){const g=new dw(w=>C(w.pop()));g.observe(b),gr(p,()=>{g.disconnect()})}else if(i){const[g,w]=i(b,C,a);gr(p,jd([Gd(m,s1e),Jr(m,"animationstart",g)],w))}else return ki;if(s){const[g]=sl({o:void 0},c);gr(p,Jr(m,"scroll",w=>{const x=g(),[S,E,N]=x;E&&(f7(b,"ltr rtl"),Gd(b,S?"rtl":"ltr"),C([!!S,E,N])),tU(w)}))}return Nn(Di,gr(p,xi(t,m)))}},T1e=(t,e)=>{let n;const r=c=>c.h===0||c.isIntersecting||c.intersectionRatio>0,s=ch(o1e),[a]=sl({o:!1}),i=(c,d)=>{if(c){const p=a(r(c)),[,f]=p;return f&&!d&&e(p)&&[p]}},l=(c,d)=>i(d.pop(),c);return[()=>{const c=[];if(nD)n=new nD(Nn(l,!1),{root:t}),n.observe(s),gr(c,()=>{n.disconnect()});else{const d=()=>{const p=$1(s);i(p)};gr(c,gU(s,d)()),d()}return Nn(Di,gr(c,xi(t,s)))},()=>n&&l(!0,n.takeRecords())]},P1e=(t,e)=>{let n,r,s,a,i;const{H:l}=ko(),c="[".concat(al,"]"),d="[".concat(td,"]"),p=["tabindex"],f=["wrap","cols","rows"],m=["id","class","style","open"],b={ct:!1,rt:Mv(t.lt)},{lt:C,it:g,ut:w,ft:x,_t:S,dt:E,vt:N}=t,{U:_,B:P}=ko(),[I]=sl({u:QB,o:{w:0,h:0}},()=>{const F=E(Nm,Em),q=E(zC,""),X=q&&u0(g);N(Nm,Em),N(zC,""),N("",vw,!0);const te=mw(w),ee=mw(g),G=gw(g);return N(Nm,Em,F),N(zC,"",q),N("",vw),Yd(g,X),{w:ee.w+te.w+G.w,h:ee.h+te.h+G.h}}),T=x?f:jd(m,f),L=KB(e,{v:()=>n,p:()=>r,g(F,q){const[X]=F,[te]=q;return[jd(au(X),au(te)).reduce((ee,G)=>(ee[G]=X[G]||te[G],ee),{})]}}),A=F=>{xr(F||p,q=>{if(J5(p,q)){const X=Ua(C,q);Ex(X)?Ua(g,q,X):oo(g,q)}})},z=(F,q)=>{const[X,te]=F,ee={ht:te};return ur(b,{ct:X}),!q&&e(ee),ee},Y=({et:F,st:q,ot:X})=>{const ee=!(F&&!X&&!q)&&l?L:e,[G,Z]=q||[];q&&ur(b,{rt:G}),ee({et:F||X,ot:X,gt:Z})},O=(F,q)=>{const[,X]=I(),te={bt:X};return X&&!q&&(F?e:L)(te),te},$=(F,q,X)=>{const te={wt:q};return q&&!X?L(te):S||A(F),te},[M,W]=w||!_?T1e(C,z):[],V=!S&&gU(C,Y,{ot:!0,nt:!0}),[U,J]=bD(C,!1,$,{Y:m,X:jd(m,p)}),H=S&&dw&&new dw(F=>{const q=F[F.length-1].contentRect;Y({et:!0,ot:XB(q,i)}),i=q});return[()=>{A(),H&&H.observe(C);const F=V&&V(),q=M&&M(),X=U(),te=P(ee=>{const[,G]=I();L({yt:ee,bt:G})});return()=>{H&&H.disconnect(),F&&F(),q&&q(),a&&a(),X(),te()}},({St:F,$t:q,xt:X})=>{const te={},[ee]=F("update.ignoreMutation"),[G,Z]=F("update.attributes"),[le,se]=F("update.elementEvents"),[de,ce]=F("update.debounce"),ye=se||Z,pe=q||X,me=be=>rc(ee)&&ee(be);if(ye){s&&s(),a&&a();const[be,Ee]=bD(w||g,!0,O,{X:jd(T,G||[]),J:le,K:c,tt:(We,qe)=>{const{target:ot,attributeName:Ve}=We;return(!qe&&Ve&&!S?Lge(ot,c,d):!1)||!!dm(ot,".".concat(To))||!!me(We)}});a=be(),s=Ee}if(ce)if(L.m(),Mi(de)){const be=de[0],Ee=de[1];n=Xl(be)&&be,r=Xl(Ee)&&Ee}else Xl(de)?(n=de,r=!1):(n=!1,r=!1);if(pe){const be=J(),Ee=W&&W(),We=s&&s();be&&ur(te,$(be[0],be[1],pe)),Ee&&ur(te,z(Ee[0],pe)),We&&ur(te,O(We[0],pe))}return te},b]},Z6=(t,e,n)=>R1(t,Oge(e,n)),M1e=(t,e,n)=>{const r=Pv(e),[s,a]=Qge(r,n),i=(a-t)/a,l=t/s,c=t/a,d=n?n.n?i:n.i?l:c:c;return Z6(0,1,d)},vU=(t,e,n)=>{if(n){const c=e?ou:iu,{Ot:d,Ct:p}=n,f=ql(p)[c],m=ql(d)[c];return Z6(0,1,f/m)}const r=e?"x":"y",{Ht:s,zt:a}=t,i=a[r],l=s[r];return Z6(0,1,i/(i+l))},wD=(t,e,n,r)=>{const s=vU(t,r,e);return 1/s*(1-s)*n},D1e=(t,e,n,r)=>{const{j:s,A:a}=ko(),{scrollbars:i}=s(),{slot:l}=i,{It:c,lt:d,it:p,At:f,Et:m,Tt:b,_t:C}=e,{scrollbars:g}=f?{}:t,{slot:w}=g||{},x=new Map,S=G=>V6&&new V6({source:m,axis:G}),E=S("x"),N=S("y"),_=pU([c,d,p],()=>C&&b?c:d,l,w),P=G=>C&&!b&&Gc(G)===p,I=G=>{x.forEach((Z,le)=>{(G?J5(Mi(G)?G:[G],le):!0)&&((Z||[]).forEach(de=>{de&&de.cancel()}),x.delete(le))})},T=(G,Z,le)=>{const se=le?Gd:f7;xr(G,de=>{se(de.Dt,Z)})},L=(G,Z)=>{xr(G,le=>{const[se,de]=Z(le);ka(se,de)})},A=(G,Z,le,se)=>Z&&G.animate(le,{timeline:Z,composite:se}),z=(G,Z)=>{L(G,le=>{const{Ct:se}=le;return[se,{[Z?ou:iu]:eb(vU(n,Z))}]})},Y=(G,Z)=>{E&&N?G.forEach(le=>{const{Dt:se,Ct:de}=le,ce=Nn(wD,n,le),ye=Z&&Mv(se),pe=ce(ye?1:0,Z),me=ce(ye?0:1,Z);I(de),x.set(de,[A(de,Z?E:N,ur({transform:[_p(eb(pe),Z),_p(eb(me),Z)]},ye?{clear:["left"]}:{}))])}):L(G,le=>{const{Ct:se,Dt:de}=le,{V:ce}=ko(),ye=Z?"x":"y",{Ht:pe}=n,me=Mv(de),be=wD(n,le,M1e(u0(m)[ye],pe[ye],Z&&me&&ce),Z);return[se,{transform:_p(eb(be),Z)}]})},O=G=>{const{Dt:Z}=G,le=P(Z)&&Z,{x:se,y:de}=u0(m);return[le,{transform:le?_p({x:tb(se),y:tb(de)}):""}]},$=(G,Z,le,se)=>A(G,Z,{transform:[_p(tb(0),se),_p(tb(R1(0,le-.5)),se)]},"add"),M=[],W=[],V=[],U=(G,Z,le)=>{const se=FB(le),de=se?le:!0,ce=se?!le:!0;de&&T(W,G,Z),ce&&T(V,G,Z)},J=()=>{z(W,!0),z(V)},H=()=>{Y(W,!0),Y(V)},F=()=>{if(C)if(N&&N){const{Ht:G}=n;jd(V,W).forEach(({Dt:Z})=>{I(Z),P(Z)&&x.set(Z,[$(Z,E,G.x,!0),$(Z,N,G.y)])})}else L(W,O),L(V,O)},q=G=>{const Z=G?u1e:d1e,le=G?W:V,se=lw(le)?pD:"",de=ch("".concat(To," ").concat(Z," ").concat(se)),ce=ch(uU),ye=ch(g7),pe={Dt:de,Ot:ce,Ct:ye};return a||Gd(de,i1e),gr(le,pe),gr(M,[xi(de,ce),xi(ce,ye),Nn(Yc,de),I,r(pe,U,Y,G)]),pe},X=Nn(q,!0),te=Nn(q,!1),ee=()=>(xi(_,W[0].Dt),xi(_,V[0].Dt),uw(()=>{U(pD)},300),Nn(Di,M));return X(),te(),[{kt:J,Mt:H,Rt:F,Pt:U,Lt:{L:E,Vt:W,Ut:X,Bt:Nn(L,W)},jt:{L:N,Vt:V,Ut:te,Bt:Nn(L,V)}},ee]},I1e=(t,e,n)=>{const{lt:r,Et:s,Nt:a}=e;return(i,l,c,d)=>{const{Dt:p,Ot:f,Ct:m}=i,[b,C]=ed(333),[g,w]=ed(),x=Nn(c,[i],d),S=!!s.scrollBy,E="client".concat(d?"X":"Y"),N=d?ou:iu,_=d?"left":"top",P=d?"w":"h",I=d?"x":"y",T=z=>z.propertyName.indexOf(N)>-1,L=()=>{const z="pointerup pointerleave pointercancel lostpointercapture",Y=(O,$)=>M=>{const{Ht:W}=n,V=$1(f)[P]-$1(m)[P],J=$*M/V*W[I];Yd(s,{[I]:O+J})};return Jr(f,"pointerdown",O=>{const $=dm(O.target,".".concat(g7))===m,M=$?m:f,W=t.scrollbars,{button:V,isPrimary:U,pointerType:J}=O,{pointers:H}=W,F=V===0&&U&&W[$?"dragScroll":"clickScroll"]&&(H||[]).includes(J);if(lh(r,al,fD,!0),F){const q=!$&&O.shiftKey,X=Nn(ql,m),te=Nn(ql,f),ee=(We,qe)=>(We||X())[_]-(qe||te())[_],G=Pv(ql(s)[N])/$1(s)[P]||1,Z=Y(u0(s)[I]||0,1/G),le=O[E],se=X(),de=te(),ce=se[N],ye=ee(se,de)+ce/2,pe=le-de[_],me=$?0:pe-ye,be=We=>{Di(Ee),M.releasePointerCapture(We.pointerId)},Ee=[Nn(lh,r,al,fD),Jr(a,z,be),Jr(a,"selectstart",We=>lD(We),{S:!1}),Jr(f,z,be),Jr(f,"pointermove",We=>{const qe=We[E]-le;($||q)&&Z(me+qe)})];if(q)Z(me);else if(!$){const We=W0(y1e);We&&gr(Ee,We(Z,ee,me,ce,pe))}M.setPointerCapture(O.pointerId)}})};let A=!0;return Nn(Di,[Jr(p,"pointerenter",()=>{l(mD,!0)}),Jr(p,"pointerleave pointercancel",()=>{l(mD,!1)}),Jr(p,"wheel",z=>{const{deltaX:Y,deltaY:O,deltaMode:$}=z;S&&A&&$===0&&Gc(p)===r&&s.scrollBy({left:Y,top:O,behavior:"smooth"}),A=!1,l(xD,!0),b(()=>{A=!0,l(xD)}),lD(z)},{S:!1,$:!0}),Jr(m,"transitionstart",z=>{if(T(z)){const Y=()=>{x(),g(Y)};Y()}}),Jr(m,"transitionend transitioncancel",z=>{T(z)&&(w(),x())}),Jr(p,"mousedown",Nn(Jr,a,"click",tU,{O:!0,$:!0}),{$:!0}),L(),C,w])}},A1e=(t,e,n,r,s,a)=>{let i,l,c,d,p,f=ki,m=0;const[b,C]=ed(),[g,w]=ed(),[x,S]=ed(100),[E,N]=ed(100),[_,P]=ed(100),[I,T]=ed(()=>m),[L,A]=D1e(t,s,r,I1e(e,s,r)),{lt:z,Gt:Y,Tt:O}=s,{Pt:$,kt:M,Mt:W,Rt:V}=L,U=X=>{$(Y6,X,!0),$(Y6,X,!1)},J=(X,te)=>{if(T(),X)$(vD);else{const ee=Nn($,vD,!0);m>0&&!te?I(ee):ee()}},H=X=>X.pointerType==="mouse",F=X=>{H(X)&&(d=l,d&&J(!0))},q=[S,T,N,P,w,C,()=>f(),Jr(z,"pointerover",F,{O:!0}),Jr(z,"pointerenter",F),Jr(z,"pointerleave",X=>{H(X)&&(d=!1,l&&J(!1))}),Jr(z,"pointermove",X=>{H(X)&&i&&b(()=>{S(),J(!0),E(()=>{i&&J(!1)})})}),Jr(Y,"scroll",X=>{g(()=>{W(),c&&J(!0),x(()=>{c&&!d&&J(!1)})}),a(X),V()})];return[()=>Nn(Di,gr(q,A())),({St:X,xt:te,qt:ee,Ft:G})=>{const{Wt:Z,Xt:le,Yt:se}=G||{},{gt:de,ot:ce}=ee||{},{rt:ye}=n,{I:pe}=ko(),{Ht:me,Jt:be,Kt:Ee}=r,[We,qe]=X("showNativeOverlaidScrollbars"),[ot,Ve]=X("scrollbars.theme"),[Ge,ft]=X("scrollbars.visibility"),[Ie,Ke]=X("scrollbars.autoHide"),[ut,$e]=X("scrollbars.autoHideSuspend"),[ht]=X("scrollbars.autoHideDelay"),[Fe,pt]=X("scrollbars.dragScroll"),[Qe,Lt]=X("scrollbars.clickScroll"),Ut=ce&&!te,wt=Ee.x||Ee.y,Xt=Z||le||de||te,$t=se||ft,tn=We&&pe.x&&pe.y,Pt=(Ue,Je)=>{const jt=Ge==="visible"||Ge==="auto"&&Ue==="scroll";return $(f1e,jt,Je),jt};if(m=ht,Ut&&(ut&&wt?(U(!1),f(),_(()=>{f=Jr(Y,"scroll",Nn(U,!0),{O:!0})})):U(!0)),qe&&$(l1e,tn),Ve&&($(p),$(ot,!0),p=ot),$e&&!ut&&U(!0),Ke&&(i=Ie==="move",l=Ie==="leave",c=Ie!=="never",J(!c,!0)),pt&&$(m1e,Fe),Lt&&$(p1e,Qe),$t){const Ue=Pt(be.x,!0),Je=Pt(be.y,!1);$(h1e,!(Ue&&Je))}Xt&&(M(),W(),V(),$(gD,!me.x,!0),$(gD,!me.y,!1),$(c1e,ye&&!O))},{},L]},L1e=t=>{const e=ko(),{j:n,H:r}=e,s=W0(v7),a=s&&s.C,{elements:i}=n(),{host:l,padding:c,viewport:d,content:p}=i,f=L1(t),m=f?{}:t,{elements:b}=m,{host:C,padding:g,viewport:w,content:x}=b||{},S=f?t:m.target,E=cw(S,"textarea"),N=S.ownerDocument,_=N.documentElement,P=S===N.body,I=N.defaultView,T=Nn(S1e,[S]),L=Nn(pU,[S]),A=Nn(x7,[S]),z=Nn(ch,""),Y=Nn(T,z,d),O=Nn(L,z,p),$=Y(w),M=$===S,W=M&&P,V=!M&&O(x),U=!M&&L1($)&&$===V,J=U&&!!A(p),H=J?Y():$,F=J?V:O(),X=W?_:U?H:$,te=E?T(z,l,C):S,ee=W?X:te,G=U?F:V,Z=N.activeElement,le=!M&&I.top===I&&Z===S,se={It:S,lt:ee,it:X,Zt:!M&&L(z,c,g),ut:G,Qt:!M&&!r&&a&&a(e),Et:W?_:X,Gt:W?N:X,tn:I,Nt:N,ft:E,Tt:P,At:f,_t:M,nn:U,dt:(Ke,ut)=>Ige(X,M?al:td,M?ut:Ke),vt:(Ke,ut,$e)=>lh(X,M?al:td,M?ut:Ke,$e)},de=au(se).reduce((Ke,ut)=>{const $e=se[ut];return gr(Ke,$e&&L1($e)&&!Gc($e)?$e:!1)},[]),ce=Ke=>Ke?J5(de,Ke):null,{It:ye,lt:pe,Zt:me,it:be,ut:Ee,Qt:We}=se,qe=[()=>{oo(pe,al),oo(pe,$C),oo(ye,$C),P&&(oo(_,al),oo(_,$C))}],ot=E&&ce(pe);let Ve=E?ye:B6([Ee,be,me,pe,ye].find(Ke=>ce(Ke)===!1));const Ge=W?ye:Ee||be,ft=Nn(Di,qe);return[se,()=>{Ua(pe,al,M?"viewport":"host"),Ua(me,G6,""),Ua(Ee,hD,""),M||Ua(be,td,"");const Ke=P&&!M?Gd(Gc(S),oU):ki,ut=$e=>{xi(Gc($e),B6($e)),Yc($e)};if(ot&&(tD(ye,pe),gr(qe,()=>{tD(pe,ye),Yc(pe)})),xi(Ge,Ve),xi(pe,me),xi(me||pe,!M&&be),xi(be,Ee),gr(qe,()=>{Ke(),oo(me,G6),oo(Ee,hD),oo(be,iU),oo(be,lU),oo(be,td),ce(Ee)&&ut(Ee),ce(be)&&ut(be),ce(me)&&ut(me)}),r&&!M&&(lh(be,td,cU,!0),gr(qe,Nn(oo,be,td))),We&&(Rge(be,We),gr(qe,Nn(Yc,We))),le){const $e="tabindex",ht=Ua(be,$e);Ua(be,$e,"-1"),be.focus();const Fe=()=>ht?Ua(be,$e,ht):oo(be,$e),pt=Jr(N,"pointerdown keydown",()=>{Fe(),pt()});gr(qe,[Fe,pt])}else Z&&Z.focus&&Z.focus();return Ve=0,ft},ft]},R1e=({ut:t})=>({qt:e,sn:n,xt:r})=>{const{U:s}=ko(),{ht:a}=e||{},{ct:i}=n;(t||!s)&&(a||r)&&ka(t,{[iu]:i?"":"100%"})},O1e=({lt:t,Zt:e,it:n,_t:r},s)=>{const[a,i]=sl({u:Yge,o:sD()},Nn(sD,t,"padding",""));return({St:l,qt:c,sn:d,xt:p})=>{let[f,m]=i(p);const{H:b,U:C}=ko(),{et:g,bt:w,gt:x}=c||{},{rt:S}=d,[E,N]=l("paddingAbsolute");(g||m||(p||!C&&w))&&([f,m]=a(p));const P=!r&&(N||x||m);if(P){const I=!E||!e&&!b,T=f.r+f.l,L=f.t+f.b,A={[pw]:I&&!S?-T:0,[O1]:I?-L:0,[hw]:I&&S?-T:0,top:I?-f.t:0,right:I?S?-f.r:"auto":0,left:I?S?"auto":-f.l:0,[ou]:I?"calc(100% + ".concat(T,"px)"):""},z={[ZB]:I?f.t:0,[h7]:I?f.r:0,[fw]:I?f.b:0,[p7]:I?f.l:0};ka(e||n,A),ka(n,z),ur(s,{Zt:f,en:!I,D:e?z:ur({},A,z)})}return{cn:P}}},$1e=({lt:t,Zt:e,it:n,Qt:r,_t:s,vt:a,Tt:i,tn:l},c)=>{const d=Nn(R1,0),p="visible",f=42,m={u:QB,o:{w:0,h:0}},b={u:JB,o:{x:c0,y:c0}},C=(q,X)=>{const te=wo.devicePixelRatio%1!==0?1:0,ee={w:d(q.w-X.w),h:d(q.h-X.h)};return{w:ee.w>te?ee.w:0,h:ee.h>te?ee.h:0}},g=q=>q.indexOf(p)===0,{P:w,U:x,H:S,I:E}=ko(),N=W0(v7),_=!s&&!S&&(E.x||E.y),P=i&&s,[I,T]=sl(m,Nn(gw,n)),[L,A]=sl(m,Nn(mw,n)),[z,Y]=sl(m),[O,$]=sl(m),[M]=sl(b),W=(q,X)=>{if(ka(n,{[iu]:""}),X){const{en:te,Zt:ee}=c,{rn:G,k:Z}=q,le=gw(t),se=Fb(t),de=ka(n,"boxSizing")==="content-box",ce=te||de?ee.b+ee.t:0,ye=!(E.x&&de);ka(n,{[iu]:se.h+le.h+(G.x&&ye?Z.x:0)-ce})}},V=(q,X)=>{const te=!S&&!q?f:0,ee=(me,be,Ee)=>{const We=ka(n,me),ot=(X?X[me]:We)==="scroll";return[We,ot,ot&&!S?be?te:Ee:0,be&&!!te]},[G,Z,le,se]=ee(h1,E.x,w.x),[de,ce,ye,pe]=ee(p1,E.y,w.y);return{Jt:{x:G,y:de},rn:{x:Z,y:ce},k:{x:le,y:ye},M:{x:se,y:pe}}},U=(q,X,te,ee)=>{const G=(ce,ye)=>{const pe=g(ce),me=ye&&pe&&ce.replace("".concat(p,"-"),"")||"";return[ye&&!pe?ce:"",g(me)?"hidden":me]},[Z,le]=G(te.x,X.x),[se,de]=G(te.y,X.y);return ee[h1]=le&&se?le:Z,ee[p1]=de&&Z?de:se,V(q,ee)},J=(q,X,te,ee)=>{const{k:G,M:Z}=q,{x:le,y:se}=Z,{x:de,y:ce}=G,{D:ye}=c,pe=X?hw:pw,me=X?p7:h7,be=ye[pe],Ee=ye[O1],We=ye[me],qe=ye[fw];ee[ou]="calc(100% + ".concat(ce+be*-1,"px)"),ee[pe]=-ce+be,ee[O1]=-de+Ee,te&&(ee[me]=We+(se?ce:0),ee[fw]=qe+(le?de:0))},[H,F]=N?N.T(_,x,n,r,c,V,J):[()=>_,()=>[ki]];return({St:q,qt:X,sn:te,xt:ee},{cn:G})=>{const{et:Z,wt:le,bt:se,ht:de,gt:ce,yt:ye}=X||{},{ct:pe,rt:me}=te,[be,Ee]=q("showNativeOverlaidScrollbars"),[We,qe]=q("overflow"),ot=be&&E.x&&E.y,Ve=!s&&!x&&(Z||se||le||Ee||de),Ge=Z||G||se||ce||ye||Ee,ft=g(We.x),Ie=g(We.y),Ke=ft||Ie;let ut=T(ee),$e=A(ee),ht=Y(ee),Fe=$(ee),pt;if(Ee&&S&&a(cU,n1e,!ot),Ve&&(pt=V(ot),W(pt,pe)),Ge){Ke&&a(Nm,Em,!1);const[De,nt]=F(ot,me,pt),[Pe,gt]=ut=I(ee),[Ze,Re]=$e=L(ee),Oe=Fb(n);let et=Ze,Et=Oe;De(),(Re||gt||Ee)&&nt&&!ot&&H(nt,Ze,Pe,me)&&(Et=Fb(n),et=mw(n));const bt=Gge(l),_t={w:d(R1(Ze.w,et.w)+Pe.w),h:d(R1(Ze.h,et.h)+Pe.h)},Mt={w:d((P?bt.w:Et.w+d(Oe.w-Ze.w))+Pe.w),h:d((P?bt.h:Et.h+d(Oe.h-Ze.h))+Pe.h)};Fe=O(Mt),ht=z(C(_t,Mt),ee)}const[Qe,Lt]=Fe,[Ut,wt]=ht,[Xt,$t]=$e,[tn,Pt]=ut,Ue={x:Ut.w>0,y:Ut.h>0},Je=ft&&Ie&&(Ue.x||Ue.y)||ft&&Ue.x&&!Ue.y||Ie&&Ue.y&&!Ue.x;if(G||ce||ye||Pt||$t||Lt||wt||qe||Ee||Ve||Ge){const De={[pw]:0,[O1]:0,[hw]:0,[ou]:"",[h1]:"",[p1]:""},nt=U(ot,Ue,We,De),Pe=H(nt,Xt,tn,me);s||J(nt,me,Pe,De),Ve&&W(nt,pe),s?(Ua(t,iU,De[h1]),Ua(t,lU,De[p1])):ka(n,De)}lh(t,al,Em,Je),lh(e,G6,r1e,Je),s||lh(n,td,Nm,Ke);const[we,Se]=M(V(ot).Jt);return ur(c,{Jt:we,zt:{x:Qe.w,y:Qe.h},Ht:{x:Ut.w,y:Ut.h},Kt:Ue}),{Yt:Se,Wt:Lt,Xt:wt}}},z1e=t=>{const[e,n,r]=L1e(t),s={Zt:{t:0,r:0,b:0,l:0},en:!1,D:{[pw]:0,[O1]:0,[hw]:0,[ZB]:0,[h7]:0,[fw]:0,[p7]:0},zt:{x:0,y:0},Ht:{x:0,y:0},Jt:{x:c0,y:c0},Kt:{x:!1,y:!1}},{It:a,it:i,vt:l,_t:c}=e,{H:d,I:p,U:f}=ko(),m=!d&&(p.x||p.y),b=[R1e(e),O1e(e,s),$1e(e,s)];return[n,C=>{const g={},x=(m||!f)&&u0(i);return l("",vw,!0),xr(b,S=>{ur(g,S(C,g)||{})}),l("",vw),Yd(i,x),!c&&Yd(a,0),g},s,e,r]},F1e=(t,e,n,r)=>{const[s,a,i,l,c]=z1e(t),[d,p,f]=P1e(l,x=>{w({},x)}),[m,b,,C]=A1e(t,e,f,i,l,r),g=x=>au(x).some(S=>!!x[S]),w=(x,S)=>{const{ln:E,xt:N,$t:_,an:P}=x,I=E||{},T=!!N,L={St:e1e(e,I,T),ln:I,xt:T};if(P)return b(L),!1;const A=S||p(ur({},L,{$t:_})),z=a(ur({},L,{sn:f,qt:A}));b(ur({},L,{qt:A,Ft:z}));const Y=g(A),O=g(z),$=Y||O||!u7(I)||T;return $&&n(x,{qt:A,Ft:z}),$};return[()=>{const{It:x,it:S,Nt:E,Tt:N}=l,_=N?E.documentElement:x,P=u0(_),I=[d(),s(),m()];return Yd(S,P),Nn(Di,I)},w,()=>({un:f,fn:i}),{_n:l,dn:C},c]},Uc=(t,e,n)=>{const{G:r}=ko(),s=L1(t),a=s?t:t.target,i=mU(a);if(e&&!i){let l=!1;const c=[],d={},p=A=>{const z=HB(A,!0),Y=W0(v1e);return Y?Y(z,!0):z},f=ur({},r(),p(e)),[m,b,C]=K6(),[g,w,x]=K6(n),S=(A,z)=>{x(A,z),C(A,z)},[E,N,_,P,I]=F1e(t,f,({ln:A,xt:z},{qt:Y,Ft:O})=>{const{et:$,gt:M,ht:W,bt:V,wt:U,ot:J}=Y,{Wt:H,Xt:F,Yt:q}=O;S("updated",[L,{updateHints:{sizeChanged:!!$,directionChanged:!!M,heightIntrinsicChanged:!!W,overflowEdgeChanged:!!H,overflowAmountChanged:!!F,overflowStyleChanged:!!q,contentMutation:!!V,hostMutation:!!U,appear:!!J},changedOptions:A||{},force:!!z}])},A=>S("scroll",[L,A])),T=A=>{N1e(a),Di(c),l=!0,S("destroyed",[L,A]),b(),w()},L={options(A,z){if(A){const Y=z?r():{},O=rU(f,ur(Y,p(A)));u7(O)||(ur(f,O),N({ln:O}))}return ur({},f)},on:g,off:(A,z)=>{A&&z&&w(A,z)},state(){const{un:A,fn:z}=_(),{rt:Y}=A,{zt:O,Ht:$,Jt:M,Kt:W,Zt:V,en:U}=z;return ur({},{overflowEdge:O,overflowAmount:$,overflowStyle:M,hasOverflow:W,padding:V,paddingAbsolute:U,directionRTL:Y,destroyed:l})},elements(){const{It:A,lt:z,Zt:Y,it:O,ut:$,Et:M,Gt:W}=P._n,{Lt:V,jt:U}=P.dn,J=F=>{const{Ct:q,Ot:X,Dt:te}=F;return{scrollbar:te,track:X,handle:q}},H=F=>{const{Vt:q,Ut:X}=F,te=J(q[0]);return ur({},te,{clone:()=>{const ee=J(X());return N({an:!0}),ee}})};return ur({},{target:A,host:z,padding:Y||O,viewport:O,content:$||O,scrollOffsetElement:M,scrollEventElement:W,scrollbarHorizontal:H(V),scrollbarVertical:H(U)})},update:A=>N({xt:A,$t:!0}),destroy:Nn(T,!1),plugin:A=>d[au(A)[0]]};return gr(c,[I]),E1e(a,L),hU(dU,Uc,[L,m,d]),j1e(P._n.Tt,!s&&t.cancel)?(T(!0),L):(gr(c,E()),S("initialized",[L]),L.update(!0),L)}return i};Uc.plugin=t=>{const e=Mi(t),n=e?t:[t],r=n.map(s=>hU(s,Uc)[0]);return g1e(n),e?r:r[0]};Uc.valid=t=>{const e=t&&t.elements,n=rc(e)&&e();return iw(n)&&!!mU(n.target)};Uc.env=()=>{const{P:t,I:e,H:n,V:r,U:s,A:a,L:i,F:l,W:c,j:d,N:p,G:f,q:m}=ko();return ur({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:s,cssCustomProperties:a,scrollTimeline:i,staticDefaultInitialization:l,staticDefaultOptions:c,getDefaultInitialization:d,setDefaultInitialization:p,getDefaultOptions:f,setDefaultOptions:m})};const H1e=()=>{if(typeof window>"u"){const d=()=>{};return[d,d]}let t,e;const n=window,r=typeof n.requestIdleCallback=="function",s=n.requestAnimationFrame,a=n.cancelAnimationFrame,i=r?n.requestIdleCallback:s,l=r?n.cancelIdleCallback:a,c=()=>{l(t),a(e)};return[(d,p)=>{c(),t=i(r?()=>{c(),e=s(d)}:d,typeof p=="object"?p:{timeout:2233})},c]},B1e=t=>{const{options:e,events:n,defer:r}=t||{},[s,a]=v.useMemo(H1e,[]),i=v.useRef(null),l=v.useRef(r),c=v.useRef(e),d=v.useRef(n);return v.useEffect(()=>{l.current=r},[r]),v.useEffect(()=>{const{current:p}=i;c.current=e,Uc.valid(p)&&p.options(e||{},!0)},[e]),v.useEffect(()=>{const{current:p}=i;d.current=n,Uc.valid(p)&&p.on(n||{},!0)},[n]),v.useEffect(()=>()=>{var p;a(),(p=i.current)==null||p.destroy()},[]),v.useMemo(()=>[p=>{const f=i.current;if(Uc.valid(f))return;const m=l.current,b=c.current||{},C=d.current||{},g=()=>i.current=Uc(p,b,C);m?s(g,m):g()},()=>i.current],[])},U1e=(t,e)=>{const b=t,{element:n="div",options:r,events:s,defer:a,children:i}=b,l=Ne(b,["element","options","events","defer","children"]),c=n,d=v.useRef(null),p=v.useRef(null),[f,m]=B1e({options:r,events:s,defer:a});return v.useEffect(()=>{const{current:C}=d,{current:g}=p;return C&&g&&f({target:C,elements:{viewport:g,content:g}}),()=>{var w;return(w=m())==null?void 0:w.destroy()}},[f,n]),v.useImperativeHandle(e,()=>({osInstance:m,getElement:()=>d.current}),[]),Vt.createElement(c,R({"data-overlayscrollbars-initialize":"",ref:d},l),Vt.createElement("div",{"data-overlayscrollbars-contents":"",ref:p},i))},Nh=v.forwardRef(U1e),xU=t=>{var f;const e=Te(14);let n,r,s;e[0]!==t?(f=t,{size:n,color:r}=f,s=Ne(f,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"20":n,i=r===void 0?"currentColor":r;let l,c,d;e[4]!==i?(l=o.jsx("path",{d:"M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c=o.jsx("path",{d:"M10 6.66669V10",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d=o.jsx("path",{d:"M10 13.3333H10.0088",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l,e[6]=c,e[7]=d):(l=e[5],c=e[6],d=e[7]);let p;return e[8]!==a||e[9]!==s||e[10]!==l||e[11]!==c||e[12]!==d?(p=o.jsxs("svg",ae(R({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[l,c,d]})),e[8]=a,e[9]=s,e[10]=l,e[11]=c,e[12]=d,e[13]=p):p=e[13],p};function ml(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}const[sk,T7e]=_a("Tooltip",[nf]),b7=nf(),W1e="TooltipProvider",V1e=700,X6="tooltip.open",[q1e,w7]=sk(W1e),K1e=t=>{const{__scopeTooltip:e,delayDuration:n=V1e,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:a}=t,[i,l]=v.useState(!0),c=v.useRef(!1),d=v.useRef(0);return v.useEffect(()=>{const p=d.current;return()=>window.clearTimeout(p)},[]),v.createElement(q1e,{scope:e,isOpenDelayed:i,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:v.useCallback(p=>{c.current=p},[]),disableHoverableContent:s},a)},k7="Tooltip",[G1e,_x]=sk(k7),Y1e=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:s=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=t,c=w7(k7,t.__scopeTooltip),d=b7(e),[p,f]=v.useState(null),m=Xs(),b=v.useRef(0),C=i!=null?i:c.disableHoverableContent,g=l!=null?l:c.delayDuration,w=v.useRef(!1),[x=!1,S]=ca({prop:r,defaultProp:s,onChange:I=>{I?(c.onOpen(),document.dispatchEvent(new CustomEvent(X6))):c.onClose(),a==null||a(I)}}),E=v.useMemo(()=>x?w.current?"delayed-open":"instant-open":"closed",[x]),N=v.useCallback(()=>{window.clearTimeout(b.current),w.current=!1,S(!0)},[S]),_=v.useCallback(()=>{window.clearTimeout(b.current),S(!1)},[S]),P=v.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{w.current=!0,S(!0)},g)},[g,S]);return v.useEffect(()=>()=>window.clearTimeout(b.current),[]),v.createElement(xx,d,v.createElement(G1e,{scope:e,contentId:m,open:x,stateAttribute:E,trigger:p,onTriggerChange:f,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayed?P():N()},[c.isOpenDelayed,P,N]),onTriggerLeave:v.useCallback(()=>{C?_():window.clearTimeout(b.current)},[_,C]),onOpen:N,onClose:_,disableHoverableContent:C},n))},kD="TooltipTrigger",Z1e=v.forwardRef((t,e)=>{const m=t,{__scopeTooltip:n}=m,r=Ne(m,["__scopeTooltip"]),s=_x(kD,n),a=w7(kD,n),i=b7(n),l=v.useRef(null),c=tr(e,l,s.onTriggerChange),d=v.useRef(!1),p=v.useRef(!1),f=v.useCallback(()=>d.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),v.createElement(_5,at({asChild:!0},i),v.createElement(_n.button,at({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},r,{ref:c,onPointerMove:Ot(t.onPointerMove,b=>{b.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:Ot(t.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:Ot(t.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Ot(t.onFocus,()=>{d.current||s.onOpen()}),onBlur:Ot(t.onBlur,s.onClose),onClick:Ot(t.onClick,s.onClose)})))}),yU="TooltipPortal",[X1e,Q1e]=sk(yU,{forceMount:void 0}),bU=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:s}=t,a=_x(yU,e);return v.createElement(X1e,{scope:e,forceMount:n},v.createElement(No,{present:n||a.open},v.createElement(du,{asChild:!0,container:s},r)))},Dv="TooltipContent",J1e=v.forwardRef((t,e)=>{const n=Q1e(Dv,t.__scopeTooltip),l=t,{forceMount:r=n.forceMount,side:s="top"}=l,a=Ne(l,["forceMount","side"]),i=_x(Dv,t.__scopeTooltip);return v.createElement(No,{present:r||i.open},i.disableHoverableContent?v.createElement(wU,at({side:s},a,{ref:e})):v.createElement(eve,at({side:s},a,{ref:e})))}),eve=v.forwardRef((t,e)=>{const n=_x(Dv,t.__scopeTooltip),r=w7(Dv,t.__scopeTooltip),s=v.useRef(null),a=tr(e,s),[i,l]=v.useState(null),{trigger:c,onClose:d}=n,p=s.current,{onPointerInTransitChange:f}=r,m=v.useCallback(()=>{l(null),f(!1)},[f]),b=v.useCallback((C,g)=>{const w=C.currentTarget,x={x:C.clientX,y:C.clientY},S=nve(x,w.getBoundingClientRect()),E=rve(x,S),N=sve(g.getBoundingClientRect()),_=ove([...E,...N]);l(_),f(!0)},[f]);return v.useEffect(()=>()=>m(),[m]),v.useEffect(()=>{if(c&&p){const C=w=>b(w,p),g=w=>b(w,c);return c.addEventListener("pointerleave",C),p.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",C),p.removeEventListener("pointerleave",g)}}},[c,p,b,m]),v.useEffect(()=>{if(i){const C=g=>{const w=g.target,x={x:g.clientX,y:g.clientY},S=(c==null?void 0:c.contains(w))||(p==null?void 0:p.contains(w)),E=!ave(x,i);S?m():E&&(m(),d())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[c,p,i,d,m]),v.createElement(wU,at({},t,{ref:a}))}),[tve,P7e]=sk(k7,{isInside:!1}),wU=v.forwardRef((t,e)=>{const f=t,{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:i}=f,l=Ne(f,["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"]),c=_x(Dv,n),d=b7(n),{onClose:p}=c;return v.useEffect(()=>(document.addEventListener(X6,p),()=>document.removeEventListener(X6,p)),[p]),v.useEffect(()=>{if(c.trigger){const m=b=>{const C=b.target;C!=null&&C.contains(c.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,p]),v.createElement(A0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:p},v.createElement(T5,at({"data-state":c.stateAttribute},d,l,{ref:e,style:ae(R({},l.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"})}),v.createElement(t$,null,r),v.createElement(tve,{scope:n,isInside:!0},v.createElement(Hde,{id:c.contentId,role:"tooltip"},s||r))))});function nve(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(n,r,s,a)){case a:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function rve(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function sve(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function ave(t,e){const{x:n,y:r}=t;let s=!1;for(let a=0,i=e.length-1;ar!=p>r&&n<(d-l)*(r-c)/(p-c)+l&&(s=!s)}return s}function ove(t){const e=t.slice();return e.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),ive(e)}function ive(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(s.y-i.y)>=(a.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}const C7=K1e,S7=Y1e,j7=Z1e,kU=bU,ak=J1e,st=t=>{var X;const e=Te(60);let n,r,s,a,i,l,c,d,p,f,m,b,C,g,w,x,S,E,N;e[0]!==t?(X=t,{children:d,text:w,open:x,isCompact:m,showFullText:g,isDisabled:l,defaultOpen:S,onOpenChange:E,delayDuration:N,noPortal:n,align:r,alignOffset:s,sideOffset:a,maxWidth:i,className:b,classNameTrigger:c,side:f,onClick:p}=X,C=Ne(X,["children","text","open","isCompact","showFullText","isDisabled","defaultOpen","onOpenChange","delayDuration","noPortal","align","alignOffset","sideOffset","maxWidth","className","classNameTrigger","side","onClick"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i,e[6]=l,e[7]=c,e[8]=d,e[9]=p,e[10]=f,e[11]=m,e[12]=b,e[13]=C,e[14]=g,e[15]=w,e[16]=x,e[17]=S,e[18]=E,e[19]=N):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5],l=e[6],c=e[7],d=e[8],p=e[9],f=e[10],m=e[11],b=e[12],C=e[13],g=e[14],w=e[15],x=e[16],S=e[17],E=e[18],N=e[19]);const _=n===void 0?!1:n,P=r===void 0?"center":r,I=s===void 0?0:s,T=a===void 0?4:a,L=i===void 0?220:i;if(l){let te;return e[20]!==c||e[21]!==d?(te=o.jsx("span",{className:c,children:d}),e[20]=c,e[21]=d,e[22]=te):te=e[22],te}const A=_?v.Fragment:kU;let z;e[23]!==c||e[24]!==d?(z=o.jsx("span",{className:c,children:d}),e[23]=c,e[24]=d,e[25]=z):z=e[25];let Y;e[26]!==p||e[27]!==z?(Y=o.jsx(j7,{onClick:p,asChild:!0,children:z}),e[26]=p,e[27]=z,e[28]=Y):Y=e[28];const O=f!=null?f:"top",$=m&&"!px-1.5 !py-0.5 text-xs shadow-sm ";let M;e[29]!==$||e[30]!==b?(M=Pn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",$,b),e[29]=$,e[30]=b,e[31]=M):M=e[31];let W;e[32]!==C.style||e[33]!==L?(W=ae(R({},C.style),{maxWidth:L}),e[32]=C.style,e[33]=L,e[34]=W):W=e[34];const V="max-w-[".concat(L,"px] ").concat(g?"whitespace-pre-wrap":"overflow-hidden text-ellipsis line-clamp-4");let U;e[35]!==V||e[36]!==w?(U=o.jsx("div",{className:V,children:w}),e[35]=V,e[36]=w,e[37]=U):U=e[37];let J;e[38]!==O||e[39]!==T||e[40]!==I||e[41]!==P||e[42]!==M||e[43]!==C||e[44]!==W||e[45]!==U?(J=o.jsx(ak,ae(R({side:O,sideOffset:T,alignOffset:I,align:P,className:M},C),{style:W,children:U})),e[38]=O,e[39]=T,e[40]=I,e[41]=P,e[42]=M,e[43]=C,e[44]=W,e[45]=U,e[46]=J):J=e[46];let H;e[47]!==A||e[48]!==J?(H=o.jsx(A,{children:J}),e[47]=A,e[48]=J,e[49]=H):H=e[49];let F;e[50]!==x||e[51]!==S||e[52]!==E||e[53]!==N||e[54]!==Y||e[55]!==H?(F=o.jsxs(S7,{open:x,defaultOpen:S,onOpenChange:E,delayDuration:N,children:[Y,H]}),e[50]=x,e[51]=S,e[52]=E,e[53]=N,e[54]=Y,e[55]=H,e[56]=F):F=e[56];let q;return e[57]!==N||e[58]!==F?(q=o.jsx(C7,{delayDuration:N,children:F}),e[57]=N,e[58]=F,e[59]=q):q=e[59],q},lve=C7,CU=S7,SU=j7,E7=v.forwardRef((t,e)=>{var d;const n=Te(11);let r,s,a;n[0]!==t?(d=t,{className:s,sideOffset:r}=d,a=Ne(d,["className","sideOffset"]),n[0]=t,n[1]=r,n[2]=s,n[3]=a):(r=n[1],s=n[2],a=n[3]);const i=r===void 0?4:r;let l;n[4]!==s?(l=qt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",s),n[4]=s,n[5]=l):l=n[5];let c;return n[6]!==e||n[7]!==i||n[8]!==l||n[9]!==a?(c=o.jsx(ak,R({ref:e,sideOffset:i,className:l},a)),n[6]=e,n[7]=i,n[8]=l,n[9]=a,n[10]=c):c=n[10],c});E7.displayName=ak.displayName;function cve(t){const e=Te(32),{historyId:n,description:r,favicon:s,isPreview:a,image:i,noBorder:l,imageWidth:c,title:d,domain:p,link:f,isDisabled:m}=t,b=l===void 0?!1:l,C=c===void 0?24:c,{t:g}=Gt(),{removeLinkMetaData:w,generateLinkMetaData:x}=Tt(_i),S=Dn(),E="w-full relative max-w-full flex select-none bg-white/80 rounded-md dark:bg-gray-800 border-slate-100 dark:border-slate-700/80 ".concat(b?"":"border"," ").concat(m?"opacity-40 pointer-events-none bg-gray-100 dark:bg-gray-900":"");let N;e[0]!==i||e[1]!==C?(N=i&&o.jsx("div",{className:"h-auto w-".concat(C," flex-none bg-cover text-center overflow-hidden"),style:{backgroundImage:"url('".concat(i,"')")}}),e[0]=i,e[1]=C,e[2]=N):N=e[2];let _;e[3]!==f?(_=()=>{f&&Ei(Ir(f))},e[3]=f,e[4]=_):_=e[4];const P=d!=null?d:"";let I;e[5]!==_||e[6]!==P||e[7]!==d?(I=o.jsx("div",{className:"text-gray-900 dark:text-gray-300 font-semibold text-lg line-clamp-2 leading-tight hover:underline cursor-pointer",onClick:_,title:P,children:d}),e[5]=_,e[6]=P,e[7]=d,e[8]=I):I=e[8];let T;e[9]!==r?(T=r&&o.jsx("p",{className:"text-gray-700 dark:text-gray-400 text-md line-clamp-2 mt-2",title:r,children:r}),e[9]=r,e[10]=T):T=e[10];let L;e[11]!==p||e[12]!==s||e[13]!==g?(L=p&&o.jsxs("div",{className:"flex items-center mt-2",children:[s&&o.jsx("img",{className:"w-[16px] h-[16px] mr-2",src:s}),o.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-sm font-semibold cursor-pointer hover:underline",onClick:()=>{Ei(Ir(p))},title:"".concat(g("Open",{ns:"common"})," ").concat(p),children:p})]}),e[11]=p,e[12]=s,e[13]=g,e[14]=L):L=e[14];let A;e[15]!==a||e[16]!==n||e[17]!==g||e[18]!==x||e[19]!==f||e[20]!==S||e[21]!==w?(A=o.jsx("div",{className:"flex items-center absolute bottom-0 right-0 dark:text-slate-500 cursor-pointer border-0 border-red-200",children:a&&n?o.jsxs(mr,{className:"dark:hover:text-blue-500 text-slate-500 hover:text-blue-600 hover:bg-transparent px-3 py-2",title:g("Add Link Card",{ns:"common"}),onClick:()=>ge(this,null,function*(){yield x(n.toString(),Ir(f)),S.invalidateQueries({queryKey:["get_clipboard_history"]}),S.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})}),children:[o.jsx(Vr,{size:12,className:"mr-[2px]"}),o.jsx(wv,{size:14})]}):n&&o.jsx(mr,{className:"dark:hover:text-red-500 text-slate-300 dark:text-slate-600 hover:text-red-600 hover:bg-transparent px-3 py-2",title:g("Remove Link Card",{ns:"common"}),onClick:()=>ge(this,null,function*(){yield w(n.toString()),S.invalidateQueries({queryKey:["get_clipboard_history"]}),S.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})}),children:o.jsx(In,{size:14})})}),e[15]=a,e[16]=n,e[17]=g,e[18]=x,e[19]=f,e[20]=S,e[21]=w,e[22]=A):A=e[22];let z;e[23]!==I||e[24]!==T||e[25]!==L||e[26]!==A?(z=o.jsxs("div",{className:"px-3 py-2 flex flex-col justify-between leading-normal overflow-clip w-full",children:[I,T,L,A]}),e[23]=I,e[24]=T,e[25]=L,e[26]=A,e[27]=z):z=e[27];let Y;return e[28]!==E||e[29]!==N||e[30]!==z?(Y=o.jsxs("div",{className:E,children:[N,z]}),e[28]=E,e[29]=N,e[30]=z,e[31]=Y):Y=e[31],Y}const V0=v.memo(cve);function uve({itemId:t,historyId:e,generateLinkUrl:n}){var r=sn(1);try{const{generateLinkMetaData:s}=Tt(_i),a=it({linkTitle:null,linkFavicon:null,linkDescription:null,linkUrl:null,linkDomain:null,linkImage:null});return v.useEffect(()=>{var i;n&&a.value.linkTitle===null&&((i=s("previewOnly",Ir(n),!0))==null||i.then(l=>{l&&(a.value=l)}))},[]),!a.value.linkTitle&&!a.value.linkDescription?null:o.jsx(ne,{className:"max-w-md dark:border-slate-900/20 border-transparent border rounded-md",children:o.jsx(V0,{title:a.value.linkTitle,description:a.value.linkDescription,favicon:a.value.linkFavicon,noBorder:!0,link:n,isPreview:!0,historyId:e,itemId:t,image:a.value.linkImage,domain:a.value.linkDomain})})}finally{r.f()}}function Kl(t,e){if(!t)return"";const n=t.split(new RegExp("(".concat(e,")"),"gi"));return o.jsx("span",{children:n.map((r,s)=>r.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:r},s):r)})}function HC(t,e,n=160){if(!t)return"";const r=new RegExp("(".concat(e,")"),"gi"),s=t.split(r),a=s.findIndex(d=>d.toLowerCase()===e.toLowerCase());let i=0;for(a!==-1&&(i=Math.max(s.slice(0,a).join("").length-Math.floor(n/2),0));i>0&&t[i-1]!==" "&&t[i-1]!=="\n";)i--;const l=Math.min(i+n,t.length),c=t.slice(i,l).split(r);return o.jsx("span",{children:c.map((d,p)=>d.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:d},p):d)})}function _h(t,e){return!t||!Array.isArray(e)||!e.length?t:e.reduce((r,s)=>{const a=s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return r.flatMap(i=>typeof i=="string"?i.split(new RegExp("(".concat(a,")"),"g")):i)},[t]).map((r,s)=>e.includes(r)?o.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Ei(Ir(r))},children:r},s):r)}function dve({value:t,links:e,previewLinkCard:n,historyId:r,itemId:s}){return!t||!Array.isArray(e)||!e.length?t:e.reduce((i,l)=>{const c=l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return i.flatMap(d=>typeof d=="string"?d.split(new RegExp("(".concat(c,")"),"g")):d)},[t]).map((i,l)=>e.includes(i)?n?o.jsxs(CU,{children:[o.jsx(SU,{asChild:!0,children:o.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Ei(Ir(i))},children:i})}),o.jsx(bU,{children:o.jsx(E7,{className:"px-0 py-0 duration-300",align:"start",children:o.jsx(uve,{generateLinkUrl:i,itemId:s,historyId:r})})})]},l):o.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Ei(Ir(i))},children:i},l):i)}const N7=v.memo(v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("rounded-lg border bg-card text-card-foreground shadow-sm",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx("div",R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i})),fve=v.memo(v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("flex flex-col space-y-1.5 p-6",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx("div",R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i})),hve=v.memo(t=>{var i;const e=Te(8);let n,r;e[0]!==t?(i=t,{className:n}=i,r=Ne(i,["className"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=qt("flex flex-col space-y-1.5 p-6",n),e[3]=n,e[4]=s):s=e[4];let a;return e[5]!==s||e[6]!==r?(a=o.jsx("div",R({className:s},r)),e[5]=s,e[6]=r,e[7]=a):a=e[7],a});v.memo(t=>{var i;const e=Te(8);let n,r;e[0]!==t?(i=t,{className:n}=i,r=Ne(i,["className"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=qt("text-2xl font-semibold leading-none tracking-tight",n),e[3]=n,e[4]=s):s=e[4];let a;return e[5]!==s||e[6]!==r?(a=o.jsx("h3",R({className:s},r)),e[5]=s,e[6]=r,e[7]=a):a=e[7],a});v.memo(t=>{var i;const e=Te(8);let n,r;e[0]!==t?(i=t,{className:n}=i,r=Ne(i,["className"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=qt("text-sm text-muted-foreground",n),e[3]=n,e[4]=s):s=e[4];let a;return e[5]!==s||e[6]!==r?(a=o.jsx("p",R({className:s},r)),e[5]=s,e[6]=r,e[7]=a):a=e[7],a});const Vh=v.memo(t=>{var i;const e=Te(8);let n,r;e[0]!==t?(i=t,{className:n}=i,r=Ne(i,["className"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=qt("p-6 pt-0",n),e[3]=n,e[4]=s):s=e[4];let a;return e[5]!==s||e[6]!==r?(a=o.jsx("div",R({className:s},r)),e[5]=s,e[6]=r,e[7]=a):a=e[7],a});v.memo(t=>{var i;const e=Te(8);let n,r;e[0]!==t?(i=t,{className:n}=i,r=Ne(i,["className"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;e[3]!==n?(s=qt("flex items-center p-6 pt-0",n),e[3]=n,e[4]=s):s=e[4];let a;return e[5]!==s||e[6]!==r?(a=o.jsx("div",R({className:s},r)),e[5]=s,e[6]=r,e[7]=a):a=e[7],a});function pve({boardName:t,boardId:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),a=it(!1),{currentCollectionId:i,isBoardHasChildren:l}=Tt(Ar),{deleteItemById:c}=Y5();return o.jsxs(Sa,{defaultOpen:!1,open:a.value||s.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{variant:"light",title:r("Delete board",{ns:"dashboard"}),onClick:()=>{l(e)?s.value=!0:a.value=!0},className:"px-2.5 ".concat(l(e)?"text-primary/30 hover:text-primary/50 hover:bg-amber-100 dark:hover:bg-amber-900":"text-red-400 hover:text-red-500 hover:bg-red-100 dark:text-red-600 dark:hover:bg-red-900 opacity-80 hover:opacity-100"," animate-in fade-in bg-gray-50 cursor-pointer"),children:o.jsx(kr,{size:16})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 ".concat(s.value?"bg-amber-100 border-amber-200 dark:bg-yellow-800 dark:border-gray-900":"bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950"," w-60"),onEscapeKeyDown:()=>{a.value=!1,s.value=!1},onPointerDownOutside:()=>{a.value=!1,s.value=!1},children:s.value?o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{justify:"left",size:"md",weight:"bold",color:"waning",children:r("Board is Not Empty",{ns:"dashboard"})}),o.jsx(Ln,{h:1}),o.jsx(re,{color:"black",size:"sm",children:r("You'll need to clear this board of all clips and subboards before it can be deleted.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsx(je,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{s.value=!1},children:r("Got it",{ns:"common"})})]}):a.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center",children:o.jsx(us,{i18nKey:"Are you sure you want to delete {{boardName}} board?",values:{boardName:t},ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{a.value=!1},children:r("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 whitespace-nowrap hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{c({itemId:e,collectionId:i})},children:r("Delete Board",{ns:"dashboard"})})]})]})})]})}finally{n.f()}}var jU=function(t){var e=t!=null?t:{},n=e.ref,r=e.sensitivity,s=r===void 0?6:r,a=e.interval,i=a===void 0?100:a,l=e.timeout,c=l===void 0?0:l,d=v.useRef(null),p=v.useState(!1),f=p[0],m=p[1],b=0,C=0,g=0,w=0,x=0,S=function(I){return x&&clearTimeout(x),m(!1)},E=function(I){b=I.clientX,C=I.clientY},N=function(I){if(x&&clearTimeout(x),Math.abs(g-b)+Math.abs(w-C){const e=Te(6),{size:n}=t,r=n===void 0?"large":n,s=r==="large";let a;e[0]!==s||e[1]!==r?(a=Pn("flex items-center justify-center",{"h-[34px] w-[34px]":s},{"h-[32px] w-[32px]":r==="medium"},{"h-[28px] w-[28px]":r==="small"}),e[0]=s,e[1]=r,e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsxs("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-500",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),o.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),e[3]=i):i=e[3];let l;return e[4]!==a?(l=o.jsx("div",{className:a,children:i}),e[4]=a,e[5]=l):l=e[5],l};function mve({board:t,isNewClip:e,isCreatingClip:n}){const{t:r}=Gt(),{setNodeRef:s,isOver:a}=h5({id:t.id,data:{type:"board",board:t}}),[i,l]=jU({timeout:100,sensitivity:500,interval:100});return o.jsx(N7,{className:"bg-secondary flex flex-col flex-shrink-0 m-2",onClick:()=>{a||e&&(Bl.value=t.id,xa.value=null)},ref:ml(e?l:null),children:o.jsx(Vh,{className:"overflow-hidden m-0 p-0 ",children:o.jsx(ne,{className:"flex flex-grow flex-col gap-3 overflow-hidden p-1",children:o.jsx(ne,{ref:s,className:"flex flex-row items-center justify-center border-2 border-dashed rounded-md w-full h-12 ".concat(i?"cursor-pointer":""," ").concat(a||i?"bg-slate-50/50 dark:bg-slate-700/50 border-blue-400":"bg-slate-50 dark:bg-slate-700 border-slate-200 dark:border-slate-500"),children:n?o.jsx(ok,{}):o.jsx(re,{className:"!text-sm !font-medium !text-blue-500 text-center",children:a?r("Drop To Add",{ns:"dashboard"}):i?r("Click To Add",{ns:"dashboard"}):o.jsx(Vr,{size:23,className:"".concat(a||i?"text-blue-400":"text-slate-400")})})})})})})}const gve=v.memo(mve),vve=t=>{var d;const e=Te(10);let n,r,s;e[0]!==t?(d=t,{size:n,color:r}=d,s=Ne(d,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"16":n,i=r===void 0?"currentColor":r;let l;e[4]!==i?(l=o.jsx("path",{d:"M3.33301 8H12.6663",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l):l=e[5];let c;return e[6]!==a||e[7]!==s||e[8]!==l?(c=o.jsx("svg",ae(R({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:l})),e[6]=a,e[7]=s,e[8]=l,e[9]=c):c=e[9],c},xve=t=>{var p;const e=Te(12);let n,r,s;e[0]!==t?(p=t,{size:n,color:r}=p,s=Ne(p,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"20":n,i=r===void 0?"currentColor":r;let l,c;e[4]!==i?(l=o.jsx("path",{d:"M10 4.16667V15.8333",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c=o.jsx("path",{d:"M4.16699 10H15.8337",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l,e[6]=c):(l=e[5],c=e[6]);let d;return e[7]!==a||e[8]!==s||e[9]!==l||e[10]!==c?(d=o.jsxs("svg",ae(R({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[l,c]})),e[7]=a,e[8]=s,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},yve=t=>{var f;const e=Te(14);let n,r,s;e[0]!==t?(f=t,{size:n,color:r}=f,s=Ne(f,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"16":n,i=r===void 0?"currentColor":r;let l,c,d;e[4]!==i?(l=o.jsx("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c=o.jsx("path",{d:"M8 10.6667V8",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d=o.jsx("path",{d:"M8 5.33331H8.0075",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l,e[6]=c,e[7]=d):(l=e[5],c=e[6],d=e[7]);let p;return e[8]!==a||e[9]!==s||e[10]!==l||e[11]!==c||e[12]!==d?(p=o.jsxs("svg",ae(R({width:a,height:a,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[l,c,d]})),e[8]=a,e[9]=s,e[10]=l,e[11]=c,e[12]=d,e[13]=p):p=e[13],p},bve=t=>{var f;const e=Te(14);let n,r,s;e[0]!==t?(f=t,{size:n,color:r}=f,s=Ne(f,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"24px":n,i=r===void 0?"currentColor":r;let l,c,d;e[4]!==i?(l=o.jsx("path",{d:"M10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c=o.jsx("path",{d:"M12.5 7.5L7.5 12.5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d=o.jsx("path",{d:"M7.5 7.5L12.5 12.5",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l,e[6]=c,e[7]=d):(l=e[5],c=e[6],d=e[7]);let p;return e[8]!==a||e[9]!==s||e[10]!==l||e[11]!==c||e[12]!==d?(p=o.jsxs("svg",ae(R({width:a,height:a,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[l,c,d]})),e[8]=a,e[9]=s,e[10]=l,e[11]=c,e[12]=d,e[13]=p):p=e[13],p},wve=t=>{var m;const e=Te(14);let n,r,s,a;e[0]!==t?(m=t,{type:n,size:r,content:s}=m,a=Ne(m,["type","size","content"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a):(n=e[1],r=e[2],s=e[3],a=e[4]);const i=n===void 0?"info":n,l=r===void 0?16:r;let c;e[5]!==l?(c=b=>{switch(b){case"warning":return o.jsx(xU,{size:l,className:"text-orange-40 flex"});case"error":return o.jsx(bve,{size:l,className:"text-rose-40 flex"});default:return o.jsx(yve,{size:l,className:"text-grey-40 flex"})}},e[5]=l,e[6]=c):c=e[6];const d=c;let p;e[7]!==d||e[8]!==i?(p=d(i),e[7]=d,e[8]=i,e[9]=p):p=e[9];let f;return e[10]!==s||e[11]!==a||e[12]!==p?(f=o.jsx(st,ae(R({content:s},a),{children:p})),e[10]=s,e[11]=a,e[12]=p,e[13]=f):f=e[13],f},_7=t=>{const e=Te(14),{label:n,required:r,tooltipContent:s,tooltip:a,className:i}=t,l=r===void 0?!1:r;let c;e[0]!==i?(c=Pn("inter-small-semibold text-grey-50 flex w-full items-center",i),e[0]=i,e[1]=c):c=e[1];let d;e[2]!==n?(d=o.jsx("label",{children:n}),e[2]=n,e[3]=d):d=e[3];let p;e[4]!==l?(p=l&&o.jsx("div",{className:"text-rose-50 ",children:" *"}),e[4]=l,e[5]=p):p=e[5];let f;e[6]!==a||e[7]!==s?(f=a||s?o.jsx("div",{className:"ml-1.5 flex",children:a||o.jsx(wve,{content:s})}):null,e[6]=a,e[7]=s,e[8]=f):f=e[8];let m;return e[9]!==c||e[10]!==d||e[11]!==p||e[12]!==f?(m=o.jsxs("div",{className:c,children:[d,p,f]}),e[9]=c,e[10]=d,e[11]=p,e[12]=f,e[13]=m):m=e[13],m},wn=v.forwardRef((t,e)=>{var ot;const n=Te(88);let r,s,a,i,l,c,d,p,f,m,b,C,g,w,x,S,E,N,_,P,I,T,L;n[0]!==t?(ot=t,{small:g,placeholder:S,label:c,name:r,autoFocus:s,required:d,deletable:I,numbersOnly:E,onDelete:T,onChange:i,onFocus:N,isPassword:x,showHidePassword:a,tooltipContent:p,tooltip:f,prefix:m,suffix:P,error:b,errorElement:C,props:L,className:l,classNameInput:w}=ot,_=Ne(ot,["small","placeholder","label","name","autoFocus","required","deletable","numbersOnly","onDelete","onChange","onFocus","isPassword","showHidePassword","tooltipContent","tooltip","prefix","suffix","error","errorElement","props","className","classNameInput"]),n[0]=t,n[1]=r,n[2]=s,n[3]=a,n[4]=i,n[5]=l,n[6]=c,n[7]=d,n[8]=p,n[9]=f,n[10]=m,n[11]=b,n[12]=C,n[13]=g,n[14]=w,n[15]=x,n[16]=S,n[17]=E,n[18]=N,n[19]=_,n[20]=P,n[21]=I,n[22]=T,n[23]=L):(r=n[1],s=n[2],a=n[3],i=n[4],l=n[5],c=n[6],d=n[7],p=n[8],f=n[9],m=n[10],b=n[11],C=n[12],g=n[13],w=n[14],x=n[15],S=n[16],E=n[17],N=n[18],_=n[19],P=n[20],I=n[21],T=n[22],L=n[23]);const A=r===void 0?"":r,z=s===void 0?!1:s,Y=a===void 0?!1:a,O=v.useRef(null),[$,M]=v.useState(!1);let W;n[24]===Symbol.for("react.memo_cache_sentinel")?(W=()=>O.current,n[24]=W):W=n[24],v.useImperativeHandle(e,W);let V,U;n[25]!==z?(V=()=>{O.current&&z&&setTimeout(()=>{var Ve;(Ve=O.current)==null||Ve.focus()},200)},U=[z],n[25]=z,n[26]=V,n[27]=U):(V=n[26],U=n[27]),v.useEffect(V,U);let J;n[28]!==i?(J=()=>{var Ve,Ge;(Ve=O.current)==null||Ve.stepUp(),i&&((Ge=O.current)==null||Ge.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))},n[28]=i,n[29]=J):J=n[29];const H=J;let F;n[30]!==i?(F=()=>{var Ve,Ge;(Ve=O.current)==null||Ve.stepDown(),i&&((Ge=O.current)==null||Ge.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))},n[30]=i,n[31]=F):F=n[31];const q=F;let X;n[32]!==l?(X=Pn("w-full",l),n[32]=l,n[33]=X):X=n[33];let te;n[34]!==c||n[35]!==d||n[36]!==p||n[37]!==f?(te=c&&o.jsx(_7,{label:c,required:d,tooltipContent:p,tooltip:f,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),n[34]=c,n[35]=d,n[36]=p,n[37]=f,n[38]=te):te=n[38];let ee;n[39]!==m?(ee=m?o.jsx("span",{className:"text-grey-40 mr-2xsmall",children:m}):null,n[39]=m,n[40]=ee):ee=n[40];const G=b||C;let Z;n[41]!==G||n[42]!==g||n[43]!==Y||n[44]!==w?(Z=Pn("bg-grey-5 border-gray-20 px-small py-xsmall rounded rounded-rounded flex w-full items-center border","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","remove-number-spinner px-3 leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":G},g?"h-8":"h-10",{"!pr-8":Y},{"text-small":g,"pt-[1px]":g},w),n[41]=G,n[42]=g,n[43]=Y,n[44]=w,n[45]=Z):Z=n[45];const le=x&&$?"text":x&&!$?"password":"text",se=S||(c?"".concat(c,"..."):void 0);let de;n[46]!==E||n[47]!==i?(de=Ve=>{E&&(Ve.target.value=Ve.target.value.replace(/\D/g,"")),i&&i(Ve)},n[46]=E,n[47]=i,n[48]=de):de=n[48];let ce;n[49]!==Z||n[50]!==O||n[51]!==le||n[52]!==A||n[53]!==se||n[54]!==de||n[55]!==N||n[56]!==d||n[57]!==_?(ce=o.jsx("input",R({className:Z,ref:O,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:le,name:A,placeholder:se,onChange:de,onFocus:N,required:d},_)),n[49]=Z,n[50]=O,n[51]=le,n[52]=A,n[53]=se,n[54]=de,n[55]=N,n[56]=d,n[57]=_,n[58]=ce):ce=n[58];let ye;n[59]!==P?(ye=P?o.jsx("span",{className:"mx-2xsmall text-grey-40",children:P}):null,n[59]=P,n[60]=ye):ye=n[60];let pe;n[61]!==Y||n[62]!==$?(pe=Y&&o.jsx("button",{tabIndex:-1,className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{M(Ve=>!Ve)},children:$?o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:"currentColor",fillRule:"evenodd"})}):o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd"})})}),n[61]=Y,n[62]=$,n[63]=pe):pe=n[63];let me;n[64]!==I||n[65]!==T?(me=I&&o.jsx("button",{onClick:T,className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft ml-2 flex h-4 w-4 cursor-pointer items-center justify-center pb-px outline-none",type:"button",children:"×"}),n[64]=I,n[65]=T,n[66]=me):me=n[66];let be;n[67]!==_.type||n[68]!==q||n[69]!==H?(be=_.type==="number"&&o.jsxs("div",{className:"h-full self-end absolute right-2.5 top-0 bottom-0 flex items-center justify-center",children:[o.jsx("button",{onClick:q,onMouseDown:Ve=>Ve.preventDefault(),className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft mr-2 h-4 w-4 cursor-pointer outline-none",type:"button",tabIndex:-1,children:o.jsx(vve,{size:16})}),o.jsx("button",{onMouseDown:Ve=>Ve.preventDefault(),onClick:H,className:"text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft h-4 w-4 cursor-pointer outline-none",type:"button",tabIndex:-1,children:o.jsx(xve,{size:16})})]}),n[67]=_.type,n[68]=q,n[69]=H,n[70]=be):be=n[70];let Ee;n[71]!==ee||n[72]!==ce||n[73]!==ye||n[74]!==pe||n[75]!==me||n[76]!==be?(Ee=o.jsxs("div",{className:"relative",children:[ee,ce,ye,pe,me,be]}),n[71]=ee,n[72]=ce,n[73]=ye,n[74]=pe,n[75]=me,n[76]=be,n[77]=Ee):Ee=n[77];let We;n[78]!==b||n[79]!==C||n[80]!==l?(We=b&&!C?o.jsx("div",{className:Pn("text-sm animate fade-in text-red-400",l),children:o.jsx("p",{children:b})}):C&&o.jsx("div",{className:Pn("text-sm animate fade-in",l),children:C}),n[78]=b,n[79]=C,n[80]=l,n[81]=We):We=n[81];let qe;return n[82]!==X||n[83]!==L||n[84]!==te||n[85]!==Ee||n[86]!==We?(qe=o.jsxs("div",ae(R({className:X},L),{children:[te,Ee,We]})),n[82]=X,n[83]=L,n[84]=te,n[85]=Ee,n[86]=We,n[87]=qe):qe=n[87],qe});wn.displayName="InputField";function kve(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a=0)&&(n[s]=t[s]);return n}var Cve=v.useLayoutEffect,Sve=function(e){var n=v.useRef(e);return Cve(function(){n.current=e}),n},CD=function(e,n){if(typeof e=="function"){e(n);return}e.current=n},jve=function(e,n){var r=v.useRef();return v.useCallback(function(s){e.current=s,r.current&&CD(r.current,null),r.current=n,n&&CD(n,s)},[n])},SD={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Eve=function(e){Object.keys(SD).forEach(function(n){e.style.setProperty(n,SD[n],"important")})},jD=Eve,Ra=null,ED=function(e,n){var r=e.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function Nve(t,e,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Ra||(Ra=document.createElement("textarea"),Ra.setAttribute("tabindex","-1"),Ra.setAttribute("aria-hidden","true"),jD(Ra)),Ra.parentNode===null&&document.body.appendChild(Ra);var s=t.paddingSize,a=t.borderSize,i=t.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(m){var b=m;Ra.style[b]=i[b]}),jD(Ra),Ra.value=e;var c=ED(Ra,t);Ra.value=e,c=ED(Ra,t),Ra.value="x";var d=Ra.scrollHeight-s,p=d*n;l==="border-box"&&(p=p+s+a),c=Math.max(p,c);var f=d*r;return l==="border-box"&&(f=f+s+a),c=Math.min(f,c),[c,d]}var ND=function(){},_ve=function(e,n){return e.reduce(function(r,s){return r[s]=n[s],r},{})},Tve=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Pve=!!document.documentElement.currentStyle,Mve=function(e){var n=window.getComputedStyle(e);if(n===null)return null;var r=_ve(Tve,n),s=r.boxSizing;if(s==="")return null;Pve&&s==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:i}},Dve=Mve;function EU(t,e,n){var r=Sve(n);v.useLayoutEffect(function(){var s=function(i){return r.current(i)};if(t)return t.addEventListener(e,s),function(){return t.removeEventListener(e,s)}},[])}var Ive=function(e){EU(window,"resize",e)},Ave=function(e){EU(document.fonts,"loadingdone",e)},Lve=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],Rve=function(e,n){var r=e.cacheMeasurements,s=e.maxRows,a=e.minRows,i=e.onChange,l=i===void 0?ND:i,c=e.onHeightChange,d=c===void 0?ND:c,p=kve(e,Lve),f=p.value!==void 0,m=v.useRef(null),b=jve(m,n),C=v.useRef(0),g=v.useRef(),w=function(){var E=m.current,N=r&&g.current?g.current:Dve(E);if(N){g.current=N;var _=Nve(N,E.value||E.placeholder||"x",a,s),P=_[0],I=_[1];C.current!==P&&(C.current=P,E.style.setProperty("height",P+"px","important"),d(P,{rowHeight:I}))}},x=function(E){f||w(),l(E)};return v.useLayoutEffect(w),Ive(w),Ave(w),v.createElement("textarea",at({},p,{onChange:x,ref:b}))},Ove=v.forwardRef(Rve);const xw=["light","dark"],T7="(prefers-color-scheme: dark)",$ve=typeof window=="undefined",P7=v.createContext(void 0),zve={setTheme:t=>{},themes:[]},ik=()=>{var t;return(t=v.useContext(P7))!==null&&t!==void 0?t:zve},Fve=t=>v.useContext(P7)?Vt.createElement(v.Fragment,null,t.children):Vt.createElement(Bve,t),Hve=["light","dark"],Bve=({forcedTheme:t,disableTransitionOnChange:e=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:s="theme",themes:a=Hve,defaultTheme:i=n?"system":"light",attribute:l="data-theme",value:c,children:d,nonce:p})=>{const[f,m]=v.useState(()=>_D(s,i)),[b,C]=v.useState(()=>_D(s)),g=c?Object.values(c):a,w=v.useCallback(N=>{let _=N;if(!_)return;N==="system"&&n&&(_=TD());const P=c?c[_]:_,I=e?Wve():null,T=document.documentElement;if(l==="class"?(T.classList.remove(...g),P&&T.classList.add(P)):P?T.setAttribute(l,P):T.removeAttribute(l),r){const L=xw.includes(i)?i:null,A=xw.includes(_)?_:L;T.style.colorScheme=A}I==null||I()},[]),x=v.useCallback(N=>{m(N);try{localStorage.setItem(s,N)}catch(_){}},[t]),S=v.useCallback(N=>{const _=TD(N);C(_),f==="system"&&n&&!t&&w("system")},[f,t]);v.useEffect(()=>{const N=window.matchMedia(T7);return N.addListener(S),S(N),()=>N.removeListener(S)},[S]),v.useEffect(()=>{const N=_=>{_.key===s&&x(_.newValue||i)};return window.addEventListener("storage",N),()=>window.removeEventListener("storage",N)},[x]),v.useEffect(()=>{w(t!=null?t:f)},[t,f]);const E=v.useMemo(()=>({theme:f,setTheme:x,forcedTheme:t,resolvedTheme:f==="system"?b:f,themes:n?[...a,"system"]:a,systemTheme:n?b:void 0}),[f,x,t,b,n,a]);return Vt.createElement(P7.Provider,{value:E},Vt.createElement(Uve,{forcedTheme:t,disableTransitionOnChange:e,enableSystem:n,enableColorScheme:r,storageKey:s,themes:a,defaultTheme:i,attribute:l,value:c,children:d,attrs:g,nonce:p}),d)},Uve=v.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:a,value:i,attrs:l,nonce:c})=>{const d=a==="system",p=n==="class"?"var d=document.documentElement,c=d.classList;c.remove(".concat(l.map(C=>"'".concat(C,"'")).join(","),");"):"var d=document.documentElement,n='".concat(n,"',s='setAttribute';"),f=s?xw.includes(a)&&a?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(a,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(C,g=!1,w=!0)=>{const x=i?i[C]:C,S=g?C+"|| ''":"'".concat(x,"'");let E="";return s&&w&&!g&&xw.includes(C)&&(E+="d.style.colorScheme = '".concat(C,"';")),n==="class"?E+=g||x?"c.add(".concat(S,")"):"null":x&&(E+="d[s](n,".concat(S,")")),E},b=t?"!function(){".concat(p).concat(m(t),"}()"):r?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(e,"');if('system'===e||(!e&&").concat(d,")){var t='").concat(T7,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(m("dark"),"}else{").concat(m("light"),"}}else if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(m(i?"x[e]":"e",!0),"}").concat(d?"":"else{"+m(a,!1,!1)+"}").concat(f,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(e,"');if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(m(i?"x[e]":"e",!0),"}else{").concat(m(a,!1,!1),";}").concat(f,"}catch(t){}}();");return Vt.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:b}})},()=>!0),_D=(t,e)=>{if($ve)return;let n;try{n=localStorage.getItem(t)||void 0}catch(r){}return n||e},Wve=()=>{const t=document.createElement("style");return t.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},TD=t=>(t||(t=window.matchMedia(T7)),t.matches?"dark":"light"),Vve=Vt.forwardRef((t,e)=>{var L;const n=Te(33);let r,s,a,i,l,c,d;n[0]!==t?(L=t,{variant:r,size:s,loading:a,spanClassName:c,spinnerConfig:l,children:d}=L,i=Ne(L,["variant","size","loading","spanClassName","spinnerConfig","children"]),n[0]=t,n[1]=r,n[2]=s,n[3]=a,n[4]=i,n[5]=l,n[6]=c,n[7]=d):(r=n[1],s=n[2],a=n[3],i=n[4],l=n[5],c=n[6],d=n[7]);const p=r===void 0?"primary":r,f=s===void 0?"large":s,m=a===void 0?!1:a;let b;n[8]!==m||n[9]!==i?(b=A=>{!m&&i.onClick&&i.onClick(A)},n[8]=m,n[9]=i,n[10]=b):b=n[10];const C=b,g=p==="primary",w=p==="secondary",x=p==="ghost",S=p==="danger",E=p==="nuclear";let N,_;if(n[11]!==g||n[12]!==w||n[13]!==x||n[14]!==S||n[15]!==E||n[16]!==f||n[17]!==i){const A=Pn({"btn-primary":g,"btn-secondary":w,"btn-ghost":x,"btn-danger":S,"btn-nuclear":E}),z=Pn({"btn-large":f==="large","btn-medium":f==="medium","btn-small":f==="small"});N=i,_=Pn("btn",A,z,i.className),n[11]=g,n[12]=w,n[13]=x,n[14]=S,n[15]=E,n[16]=f,n[17]=i,n[18]=N,n[19]=_}else N=n[18],_=n[19];const P=i.disabled||m;let I;n[20]!==m||n[21]!==f||n[22]!==l||n[23]!==c||n[24]!==d?(I=m?o.jsx(ok,R({size:f,variant:"secondary"},l)):v.Children.map(d,(A,z)=>o.jsx("span",{className:Pn("mr-xsmall last:mr-0",c),children:A},z)),n[20]=m,n[21]=f,n[22]=l,n[23]=c,n[24]=d,n[25]=I):I=n[25];let T;return n[26]!==N||n[27]!==_||n[28]!==P||n[29]!==e||n[30]!==C||n[31]!==I?(T=o.jsx("button",ae(R({},N),{className:_,disabled:P,ref:e,onClick:C,children:I})),n[26]=N,n[27]=_,n[28]=P,n[29]=e,n[30]=C,n[31]=I,n[32]=T):T=n[32],T}),qve=t=>{var m;const e=Te(16);let n,r,s;e[0]!==t?(m=t,{size:n,color:r}=m,s=Ne(m,["size","color"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);const a=n===void 0?"24":n,i=r===void 0?"currentColor":r;let l,c,d,p;e[4]!==i?(l=o.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),c=o.jsx("path",{d:"M8 14C8 14 9.5 16 12 16C14.5 16 16 14 16 14",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),d=o.jsx("path",{d:"M9 9H9.01",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p=o.jsx("path",{d:"M15 9H15.01",stroke:i,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e[4]=i,e[5]=l,e[6]=c,e[7]=d,e[8]=p):(l=e[5],c=e[6],d=e[7],p=e[8]);let f;return e[9]!==a||e[10]!==s||e[11]!==l||e[12]!==c||e[13]!==d||e[14]!==p?(f=o.jsxs("svg",ae(R({width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s),{children:[l,c,d,p]})),e[9]=a,e[10]=s,e[11]=l,e[12]=c,e[13]=d,e[14]=p,e[15]=f):f=e[15],f},Kve=v.lazy(()=>ke(()=>import("./emoji-picker-react.esm-GaxrAwgC.js"),[])),PD=t=>{const e=Te(12),{onEmojiClick:n,onCloseAutoFocus:r}=t,{theme:s}=ik();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=m=>{m.stopPropagation()},e[0]=a):a=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=m=>{m.stopPropagation()},e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(mH,{asChild:!0,onClick:a,children:o.jsx(Vve,{variant:"ghost",size:"small",type:"button",onClick:i,className:"text-grey-40 hover:text-violet-60 h-5 w-5 p-0 focus:border-none focus:shadow-none",children:o.jsx(qve,{size:20})})}),e[2]=l):l=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(ok,{size:"small",variant:"primary"}),e[3]=c):c=e[3];let d;e[4]!==n?(d=m=>n(m.emoji),e[4]=n,e[5]=d):d=e[5];let p;e[6]!==d||e[7]!==s?(p=o.jsx(v.Suspense,{fallback:c,children:o.jsx(Kve,{onEmojiClick:d,defaultSkinTone:"NEUTRAL",theme:s,emojiStyle:"native",skinTonesDisabled:!0,searchPlaceHolder:"Emoji..."})}),e[6]=d,e[7]=s,e[8]=p):p=e[8];let f;return e[9]!==r||e[10]!==p?(f=o.jsxs(pH,{children:[l,o.jsx(gH,{children:o.jsx(VE,{onCloseAutoFocus:r,sideOffset:5,className:"z-99 min-w-[200px] min-h-[100px] overflow-hidden text-center flex justify-center items-center",children:p})})]}),e[9]=r,e[10]=p,e[11]=f):f=e[11],f},Co=v.forwardRef(({placeholder:t,label:e,name:n,key:r,value:s,required:a,withTooltip:i=!1,tooltipText:l,tooltipProps:c={},autoFocus:d=!1,containerProps:p,maxLength:f,className:m,classNameArea:b,isDisabled:C=!1,onFocus:g=()=>{},onBlur:w=()=>{},onPaste:x=()=>{},onChange:S=()=>{},onKeyDown:E=()=>{},rows:N=2,maxRows:_=5,enableEmoji:P=!0,enableEmojiInside:I=!1,error:T},L)=>{const A=v.useRef(null);v.useEffect(()=>{A.current&&d&&setTimeout(()=>{var V;(V=A.current)==null||V.focus()},200)},[d]);const z=V=>{if(!A.current||!V)return;const U=new RegExp("\\{{\\s*".concat(V,"\\s*\\}}"),"gi"),J=A.current.value.replaceAll(U,"");A.current.value=J,S&&S({target:{value:J}})},Y=()=>{if(!A.current)return;const V=A.current.value.replace(/\{\{.*?\}\}/g,"");A.current.value=V,S&&S({target:{value:V}})},O=V=>{if(!A.current)return;const U=A.current.selectionStart||0,J=A.current.selectionEnd||0;let H=A.current.value.substring(U,J);V.forEach(q=>{const X=new RegExp("\\[".concat(q,"\\]"),"g"),te=new RegExp("\\[/".concat(q,"\\]"),"g");H=H.replace(X,""),H=H.replace(te,"")});const F="".concat(A.current.value.substring(0,U)).concat(H).concat(A.current.value.substring(J));A.current.value=F,A.current.selectionStart=U,A.current.selectionEnd=U+H.length,A.current.focus(),S&&S({target:{value:F}})},$=V=>{if(!A.current)return;const U=A.current.selectionStart||0,J=A.current.selectionEnd||0,H=A.current.value.substring(U,J),F="[".concat(V,"]"),q="[/".concat(V,"]");let X="";H?X="".concat(A.current.value.substring(0,U)).concat(F).concat(H).concat(q).concat(A.current.value.substring(J)):X="".concat(A.current.value.substring(0,U)).concat(F).concat(q).concat(A.current.value.substring(U)),A.current.value=X;const te=U+F.length;A.current.selectionStart=te,A.current.selectionEnd=te,A.current.focus(),S&&S({target:{value:X}})},M=V=>{if(!A.current)return;const U=A.current.selectionStart||0,J=A.current.selectionStart||0,H=A.current.selectionEnd||0,F=J>0?"".concat(A.current.value.substring(0,J)).concat(V).concat(A.current.value.substring(H)):"".concat(V).concat(A.current.value);A.current.value=F,S&&S({target:{value:F}}),A.current.selectionStart=U+V.length,A.current.selectionEnd=U+V.length,A.current.focus()};v.useImperativeHandle(L,()=>({getInputElement:()=>A.current,handleRemoveBBcodes:O,handleAddText:M,handleRemoveTemplateField:z,handleRemoveAllTemplateFields:Y,handleAddBBcode:$}));const W=()=>{setTimeout(()=>{var V;(V=A==null?void 0:A.current)==null||V.focus()},100)};return o.jsxs("div",ae(R({className:m},p),{children:[e&&o.jsx(_7,{label:e,required:a,withTooltip:i,tooltipText:l,tooltipProps:c,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),o.jsxs("div",{className:"relative",children:[o.jsx(Ove,{maxRows:_,minRows:N,className:Pn("focus-within:shadow-input focus-within:border-violet-60 px-small py-xsmall bg-grey-5 border-grey-20 rounded rounded-rounded flex w-full flex-col border",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":T},"relative bg-inherit outline-none outline-0 focus:overflow-auto","remove-number-spinner leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full font-normal","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","px-3 py-1 pb-2 leading-base text-grey-90",b),ref:A,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",maxLength:f,onFocus:g,onBlur:w,name:n,disabled:C,onChange:S,onKeyDown:E,autoFocus:!1,value:s||"",onPaste:x,placeholder:t||""},r||n),P&&o.jsx("div",{className:"flex justify-start items-center w-full h-8 ml-1",children:o.jsx(PD,{onEmojiClick:M,onCloseAutoFocus:()=>{var U;W();const V={target:{value:(U=A==null?void 0:A.current)==null?void 0:U.value}};S(V)}})}),I&&o.jsx("div",{className:"flex justify-start items-center absolute right-1.5 bottom-1.5",children:o.jsx(PD,{onEmojiClick:M,onCloseAutoFocus:()=>{var U;W();const V={target:{value:(U=A==null?void 0:A.current)==null?void 0:U.value}};S(V)}})})]}),T&&o.jsx("div",{className:Pn("text-sm animate fade-in text-red-400",m),children:o.jsx("p",{children:T})})]}))}),Gve={board:[0,1,2,3],clip:[0,1,2,3,4,5]},lk=({color:t,itemId:e,updateById:n,borderWidth:r,onOpen:s,onBorderWidthChange:a,onColorChange:i,type:l})=>{var c=sn(1);try{const{t:d}=Gt(),p=it(!1);return v.useEffect(()=>{p.value&&s&&s()},[p.value]),o.jsxs(Sa,{defaultOpen:!1,open:p.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{className:"w-[22px] h-[22px] mr-1.5 cursor-pointer ".concat(el(t,"200")," ").concat(Ob(t,"300","600")," border rounded-sm flex items-center justify-center"),title:d("Change color",{ns:"dashboard"}),onClick:()=>{p.value=!p.value},children:o.jsx(Bn,{size:13,className:"text-".concat(t,"-500 dark:text-").concat(t,"-300")})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 pt-0",onEscapeKeyDown:()=>{p.value=!1},onPointerDownOutside:()=>{p.value=!1},children:o.jsxs(ne,{children:[o.jsx(ve,{className:"text-center py-1.5 mt-0.5 uppercase",children:o.jsx(re,{weight:"medium",size:"xs",className:"!text-slate-400",children:d("Select Color",{ns:"dashboard"})})}),o.jsx(ne,{className:"m-auto grid grid-cols-8 gap-3",children:rte.map(f=>o.jsx(ne,{onClick:()=>ge(void 0,null,function*(){e&&n?l===Wl?yield n({updatedTab:{tabColor:f,tabId:e}}):(l===Ys||l===qo)&&(yield n({updatedItem:{color:f,itemId:e}})):i&&i(f),p.value=!1}),className:"bg-".concat(f,"-400 dark:bg-").concat(f,"-700 w-6 h-6 flex justify-center cursor-pointer rounded-sm"),children:f===t&&o.jsx(en,{size:16,strokeWidth:4,className:"w-3 h-3 m-auto text-white"})},f))}),(l===Ys||l===qo)&&o.jsxs(o.Fragment,{children:[o.jsx(ve,{className:"text-center py-1.5 pt-2 uppercase",children:o.jsx(re,{weight:"medium",size:"xs",className:"!text-slate-400",children:d("Border Width",{ns:"dashboard"})})}),o.jsx(ne,{className:"m-auto items-center justify-items-center grid ".concat(l===Ys?"grid-cols-4 px-10":"grid-cols-6 gap-1"),children:Gve[l].map(f=>o.jsx(ne,{onClick:()=>ge(void 0,null,function*(){e&&n?yield n({updatedItem:{borderWidth:f,itemId:e}}):a&&a(f)}),className:"bg-".concat(t,"-50 dark:bg-").concat(t,"-900 w-[28px] h-[26px] flex justify-center cursor-pointer border border-").concat(t,"-200 dark:border-").concat(t,"-700 ").concat(l!==Ys?"border-[".concat(f>0?1:0,"px] border-l-").concat(t,"-500 border-l-[").concat(f,"px]"):"border-[".concat(f,"px]")," rounded-lg "),children:r===f?o.jsx(en,{size:18,strokeWidth:4,className:"w-3 h-3 m-auto text-slate-400"}):o.jsx(re,{size:"xs",className:"text-slate-400 !font-medium",children:f})},f))})]})]})})]})}finally{c.f()}};function Yve({boardName:t,boardSubtitle:e,isNewBoard:n,scrollRef:r,boardId:s,boardColor:a,boardBorderWidth:i}){var l=sn(1);try{const{t:c}=Gt(),d=it(!1),p=it(""),f=it(""),m=it(Dc.value),b=it(!1);if(!t)return null;v.useEffect(()=>{n&&(m.value=!0)},[n]),v.useEffect(()=>{d.value=!1,p.value=t,Dc.value=m.value},[m.value]),v.useEffect(()=>{f.value=e,Dc.value=b.value},[b.value]);const{updateItemById:C}=bl();v.useEffect(()=>{var w;m.value&&((w=r==null?void 0:r.current)==null||w.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[m.value,r==null?void 0:r.current]);const g=m.value||b.value;return o.jsxs(ve,{className:"flex-col w-full",children:[o.jsx(ve,{className:"justify-start w-full",children:m.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:d.value||Qr.value,asChild:!0,text:Qr.value?c("Unsaved title",{ns:"dashboard"}):p.value.length<=X8?c("Too short",{ns:"dashboard"}):c("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:c("Enter board title",{ns:"dashboard"}),onKeyDown:w=>ge(this,null,function*(){w.stopPropagation(),w.key==="Escape"?(Qr.value=!1,m.value=!1):w.key==="Enter"&&(!p.value.length||p.value.length>fd)?d.value=!0:w.key==="Enter"&&(yield C({updatedItem:{name:p.value,itemId:s}}),Qr.value=!1,setTimeout(()=>{m.value=!1},200))}),defaultValue:t,onFocus:w=>{t===c("New Board",{ns:"dashboard"})&&w.target.select()},onChange:w=>{Qr.value&&(Qr.value=!1),d.value&&w.target.value.length<=fd&&d.value&&w.target.value.length>0&&(d.value=!1),p.value=w.target.value}})}),o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){if(!p.value.length||p.value.length>fd){d.value=!0;return}d.value||(yield C({updatedItem:{name:p.value,itemId:s}}),Qr.value=!1,setTimeout(()=>{m.value=!1},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Qr.value=!1,m.value=!1},children:o.jsx(In,{size:18})})})})]}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"min-w-[24px]",children:o.jsx(lk,{color:a,borderWidth:i,type:Ys,itemId:s,updateById:C})}),o.jsx(re,{className:"!font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap border-dashed border-b border-".concat(a||"slate","-400 first-letter:uppercase hover:border-gray-400"),onClick:()=>{if(Dc.value){Qr.value=!0;return}m.value=!0},color:"black",children:t}),o.jsx(ne,{onClick:()=>{if(Dc.value){Qr.value=!0;return}m.value=!0},title:c("Rename",{ns:"dashboard"}),className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(Ud,{size:14})}),!g&&o.jsxs(ve,{className:"items-center justify-center ml-auto pr-1 pl-2 py-0 gap-2",children:[Va.value!==s?o.jsx(ne,{onClick:()=>{Va.value=s},title:c("Expand Edit",{ns:"common"}),className:"text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(dx,{size:16})}):o.jsx(ne,{onClick:()=>{Va.value=null,zo.value=!1},title:c("Close Expand Edit",{ns:"common"}),className:"text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(lE,{size:16})}),o.jsx(ne,{onClick:()=>{Ff()},title:c("Close Edit",{ns:"dashboard"}),className:"text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(bv,{size:18})})]})]})}),o.jsx(ve,{className:"justify-start w-full mt-1 text-gray-500",children:b.value?o.jsxs(ve,{className:"justify-start items-end flex-col mt-1 text-gray-500",children:[o.jsx(st,{open:Qr.value,asChild:!0,text:Qr.value?c("Unsaved subtitle",{ns:"dashboard"}):void 0,side:"top",className:"bg-rose-50 text-red-500 text-base font-semibold border border-rose-100 w-full",children:o.jsx(Co,{tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-2 min-w-[120px]",placeholder:c("Enter board subtitle or description",{ns:"dashboard"}),rows:2,autoFocus:!0,enableEmojiInside:!0,label:"",maxRows:6,value:f.value,onKeyDown:w=>{w.stopPropagation()},onChange:w=>{Qr.value&&(Qr.value=!1),f.value=w.target.value}})}),o.jsxs(ve,{className:"items-start mt-1",children:[o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){yield C({updatedItem:{description:f.value,itemId:s}}),setTimeout(()=>{Qr.value&&(Qr.value=!1),b.value=!1},200)}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Qr.value&&(Qr.value=!1),b.value=!1},children:o.jsx(In,{size:18})})})})]})]}):e?o.jsxs(ne,{className:"!font-normal dark:text-slate-300 text-[12px] hover:underline decoration-1 decoration-gray-400 !decoration-dashed !underline-offset-4",onClick:()=>{if(Dc.value){Qr.value=!0;return}b.value=!0},children:[e,o.jsx(ne,{title:c("Edit subtitle",{ns:"dashboard"}),className:"ml-0.5 pl-1 !inline-flex items-center text-primary/50 cursor-pointer opacity-80 hover:opacity-100",children:o.jsx(Ud,{size:11})})]}):o.jsxs(o.Fragment,{children:[o.jsx(Vr,{size:17}),o.jsx(re,{className:"!text-mute ml-1.5 text-sm border-dashed border-b border-gray-400",onClick:()=>{if(Dc.value){Qr.value=!0;return}b.value=!0},children:c("Subtitle",{ns:"dashboard"})})]})})]})}finally{l.f()}}function yw(t){var c,d;const e=Te(8),n=(c=t.width)!=null?c:"16",r=(d=t.height)!=null?d:"16";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),a=o.jsx("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),i=o.jsx("path",{d:"m9.392 10.005 6.16 3.697-6.16 3.697v-7.394Z"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r||e[5]!==t.className||e[6]!==t.onClick?(l=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=t.className,e[6]=t.onClick,e[7]=l):l=e[7],l}function Zve(t){var i,l;const e=Te(6),n=(i=t.width)!=null?i:"24px",r=(l=t.height)!=null?l:"24px";let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.272 8.567v-6m0 0h-6m6 0L10.87 13.308M9.729 5.432h-2.2c-1.68 0-2.52 0-3.162.327-.564.288-1.023.747-1.311 1.311-.327.642-.327 1.482-.327 3.162v6.4c0 1.68 0 2.52.327 3.162.288.565.747 1.023 1.311 1.311.642.327 1.482.327 3.162.327h6.4c1.68 0 2.52 0 3.162-.327a2.9984 2.9984 0 0 0 1.311-1.311c.327-.642.327-1.482.327-3.162v-2.2"}),e[0]=s):s=e[0];let a;return e[1]!==n||e[2]!==r||e[3]!==t.className||e[4]!==t.onClick?(a=o.jsx("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:s}),e[1]=n,e[2]=r,e[3]=t.className,e[4]=t.onClick,e[5]=a):a=e[5],a}function Xve(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{fillRule:"evenodd",d:"M12.2852 4.057c-4.5443 0-8.2282 3.684-8.2282 8.2282 0 4.5443 3.684 8.2282 8.2282 8.2282 4.5443 0 8.2282-3.6839 8.2282-8.2282S16.8295 4.057 12.2852 4.057ZM2 12.2852C2 6.6049 6.6048 2 12.2852 2s10.2852 4.6048 10.2852 10.2852-4.6048 10.2852-10.2852 10.2852C6.6049 22.5704 2 17.9656 2 12.2852Z",clipRule:"evenodd"}),a=o.jsx("path",{d:"m19.8786 18.3487 5.8043 5.8043c.4228.4228.4228 1.1083 0 1.5311-.4228.4228-1.1083.4228-1.5311 0l-5.8043-5.8043 1.5311-1.5311Z"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 25 27",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.3",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function Qve(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18.953",height:"16",x:"2.524",y:"4",rx:"2"}),a=o.jsx("path",{d:"M10.524 4v4m-8 0h18.953M6.524 4v4"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function Jve(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M14.5 2.693H6c-1.105 0-2 .833-2 1.861v14.891c0 1.028.895 1.861 2 1.861h12c1.105 0 2-.833 2-1.861V7.812l-5.5-5.119Z"}),a=o.jsx("path",{d:"M14 2.693v6h6"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function exe(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M14.5 2.693H6c-1.105 0-2 .833-2 1.861v14.891c0 1.028.895 1.861 2 1.861h12c1.105 0 2-.833 2-1.861V7.812l-5.5-5.119Z"}),a=o.jsx("path",{d:"M14 2.693v6h6M7.998 15.421l2-2-2-2m4 6h4"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function txe(t){var i,l;const e=Te(6),n=(i=t.width)!=null?i:"24px",r=(l=t.height)!=null?l:"24px";let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"m6.391 14.336 1.402-2.71a1.867 1.867 0 0 1 1.626-1.028h10.056c1.223-.002 2.119 1.152 1.813 2.337l-1.439 5.607c-.215.83-.966 1.408-1.823 1.402H4.522c-1.033 0-1.87-.837-1.87-1.869V5.925c0-1.032.837-1.869 1.87-1.869h3.644c.636-.006 1.23.311 1.58.841l.757 1.122c.346.525.932.841 1.561.841h5.542c1.032 0 1.869.837 1.869 1.869v1.869"}),e[0]=s):s=e[0];let a;return e[1]!==n||e[2]!==r||e[3]!==t.className||e[4]!==t.onClick?(a=o.jsx("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:s}),e[1]=n,e[2]=r,e[3]=t.className,e[4]=t.onClick,e[5]=a):a=e[5],a}function d0(){const t=Te(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("div",{className:"flex items-center justify-center h-[16px] w-[16px]",children:o.jsxs("svg",{"aria-hidden":"true",className:"w-full h-full text-gray-200 animate-spin dark:text-gray-600 fill-green-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),o.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}),t[0]=e):e=t[0],e}function NU(t){var i,l;const e=Te(6),n=(i=t.width)!=null?i:"24px",r=(l=t.height)!=null?l:"24px";let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",stroke:"none",d:"M3.564 1.745c-.272.011-.521.142-.688.355C1.311 4.127.456 6.622.456 9.185c0 2.654.906 5.222 2.576 7.286.318.393.894.451 1.288.131.39-.315.449-.887.134-1.279-1.404-1.736-2.168-3.902-2.168-6.138 0-2.158.712-4.258 2.034-5.967.307-.4.234-.971-.164-1.281-.169-.132-.378-.197-.592-.192Zm16.906.005a.8757.8757 0 0 0-.531.187c-.4.304-.474.879-.169 1.281 1.324 1.709 2.035 3.809 2.035 5.967 0 2.236-.763 4.402-2.168 6.138a.9087.9087 0 0 0 .133 1.279c.394.32.97.262 1.286-.131 1.668-2.064 2.574-4.632 2.574-7.286 0-2.563-.845-5.058-2.411-7.085-.149-.19-.366-.315-.603-.344-.05-.006-.097-.011-.146-.006ZM7.092 3.742a.9272.9272 0 0 0-.631.29C5.169 5.436 4.447 7.28 4.447 9.185c0 2.003.792 3.917 2.204 5.345.354.356.935.361 1.293.007.356-.357.359-.933.003-1.287-1.068-1.084-1.674-2.542-1.674-4.065 0-1.447.549-2.848 1.529-3.913.339-.369.313-.945-.055-1.288-.175-.161-.412-.252-.655-.242Zm9.904 0c-.242-.01-.475.081-.654.242-.368.343-.394.919-.055 1.288.982 1.065 1.531 2.466 1.531 3.913 0 1.523-.599 2.981-1.671 4.065-.35.356-.35.93.009 1.287.354.349.931.346 1.286-.007 1.408-1.428 2.202-3.342 2.202-5.345 0-1.905-.723-3.749-2.014-5.153a.9197.9197 0 0 0-.634-.29Zm-4.951 1.71c-2.047 0-3.724 1.684-3.724 3.733 0 1.736 1.203 3.206 2.815 3.61v8.776c0 .509.405.919.909.919.506.002.918-.41.918-.919v-8.776c1.612-.405 2.816-1.874 2.816-3.61 0-2.049-1.687-3.733-3.734-3.733Zm0 1.828c1.063 0 1.906.844 1.906 1.905 0 1.063-.843 1.901-1.906 1.901s-1.899-.838-1.899-1.901c0-1.061.836-1.905 1.899-1.905Z"}),e[0]=s):s=e[0];let a;return e[1]!==n||e[2]!==r||e[3]!==t.className||e[4]!==t.onClick?(a=o.jsx("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"currentColor",strokeWidth:"1.8",children:s}),e[1]=n,e[2]=r,e[3]=t.className,e[4]=t.onClick,e[5]=a):a=e[5],a}function _U(t){var i,l;const e=Te(6),n=(i=t.width)!=null?i:"24px",r=(l=t.height)!=null?l:"24px";let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M12.008 1.666c-7.955 0-12.926 8.613-8.949 15.501 3.977 6.889 13.92 6.889 17.897 0 .907-1.57 1.386-3.352 1.386-5.166 0-5.707-4.627-10.335-10.334-10.335Zm-9.27 10.855h3.169c.035 1.322.263 2.634.675 3.893H3.829a9.1934 9.1934 0 0 1-1.091-3.893Zm9.789-5.973V2.913a8.3791 8.3791 0 0 1 3.375 3.635h-3.375Zm3.817 1.039c.447 1.251.693 2.566.727 3.893h-4.544V7.587h3.817Zm-4.856-4.648v3.609H8.114a8.377 8.377 0 0 1 3.374-3.609Zm0 4.674v3.867H6.944c.035-1.327.28-2.642.728-3.893l3.816.026ZM5.907 11.48H2.738c.07-1.362.443-2.693 1.091-3.893h2.753a13.692 13.692 0 0 0-.675 3.893Zm1.037 1.041h4.544v3.893H7.672a12.5295 12.5295 0 0 1-.728-3.893Zm4.544 4.932v3.635a8.3769 8.3769 0 0 1-3.374-3.635h3.374Zm1.039 3.635v-3.635h3.375a8.3771 8.3771 0 0 1-3.375 3.608v.027Zm0-4.674v-3.893h4.544c-.034 1.327-.28 2.642-.727 3.893h-3.817Zm5.582-3.893h3.169a9.2368 9.2368 0 0 1-1.091 3.893h-2.754c.412-1.259.639-2.571.676-3.893Zm0-1.041a13.7635 13.7635 0 0 0-.676-3.893h2.754a9.2327 9.2327 0 0 1 1.091 3.893h-3.169Zm1.428-4.932h-2.493a9.8857 9.8857 0 0 0-2.543-3.506 9.3305 9.3305 0 0 1 5.01 3.506h.026ZM9.514 3.069A9.9123 9.9123 0 0 0 6.97 6.548H4.504a9.3282 9.3282 0 0 1 5.01-3.479Zm-5.01 14.384h2.493a9.8678 9.8678 0 0 0 2.543 3.505 9.3285 9.3285 0 0 1-5.036-3.505Zm9.997 3.479a9.894 9.894 0 0 0 2.543-3.479h2.493a9.3153 9.3153 0 0 1-5.036 3.479Z"}),e[0]=s):s=e[0];let a;return e[1]!==n||e[2]!==r||e[3]!==t.className||e[4]!==t.onClick?(a=o.jsx("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",strokeWidth:"1.5",children:s}),e[1]=n,e[2]=r,e[3]=t.className,e[4]=t.onClick,e[5]=a):a=e[5],a}const nxe=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rxe=/[\0-\x1F\x7F-\x9F]/,sxe=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,axe=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;function oxe(t){const e={};t=t||{},e.src_Any=nxe.source,e.src_Cc=rxe.source,e.src_Z=axe.source,e.src_P=sxe.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function Q6(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function ck(t){return Object.prototype.toString.call(t)}function ixe(t){return ck(t)==="[object String]"}function lxe(t){return ck(t)==="[object Object]"}function cxe(t){return ck(t)==="[object RegExp]"}function MD(t){return ck(t)==="[object Function]"}function uxe(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const TU={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function dxe(t){return Object.keys(t||{}).reduce(function(e,n){return e||TU.hasOwnProperty(n)},!1)}const fxe={"http:":{validate:function(t,e,n){const r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},hxe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",pxe="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function mxe(t){t.__index__=-1,t.__text_cache__=""}function gxe(t){return function(e,n){const r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function DD(){return function(t,e){e.normalize(t)}}function bw(t){const e=t.re=oxe(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(hxe),n.push(e.src_xn),e.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");const s=[];t.__compiled__={};function a(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){const c=t.__schemas__[l];if(c===null)return;const d={validate:null,link:null};if(t.__compiled__[l]=d,lxe(c)){cxe(c.validate)?d.validate=gxe(c.validate):MD(c.validate)?d.validate=c.validate:a(l,c),MD(c.normalize)?d.normalize=c.normalize:c.normalize?a(l,c):d.normalize=DD();return}if(ixe(c)){s.push(l);return}a(l,c)}),s.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:DD()};const i=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map(uxe).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),mxe(t)}function vxe(t,e){const n=t.__index__,r=t.__last_index__,s=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=s,this.text=s,this.url=s}function J6(t,e){const n=new vxe(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function zr(t,e){if(!(this instanceof zr))return new zr(t,e);e||dxe(t)&&(e=t,t={}),this.__opts__=Q6({},TU,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Q6({},fxe,t),this.__compiled__={},this.__tlds__=pxe,this.__tlds_replaced__=!1,this.re={},bw(this)}zr.prototype.add=function(e,n){return this.__schemas__[e]=n,bw(this),this};zr.prototype.set=function(e){return this.__opts__=Q6(this.__opts__,e),this};zr.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,r,s,a,i,l,c,d,p;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],c.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=e.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d=0&&(s=e.match(this.re.email_fuzzy))!==null&&(i=s.index+s[1].length,l=s.index+s[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=l))),this.__index__>=0};zr.prototype.pretest=function(e){return this.re.pretest.test(e)};zr.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};zr.prototype.match=function(e){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(J6(this,r)),r=this.__last_index__);let s=r?e.slice(r):e;for(;this.test(s);)n.push(J6(this,r)),s=s.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};zr.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const r=this.testSchemaAt(e,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,J6(this,0)):null};zr.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,s,a){return r!==a[s-1]}).reverse(),bw(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,bw(this),this)};zr.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};zr.prototype.onCompile=function(){};/*! @license DOMPurify 3.1.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.3/LICENSE */const{entries:PU,setPrototypeOf:ID,isFrozen:xxe,getPrototypeOf:yxe,getOwnPropertyDescriptor:bxe}=Object;let{freeze:Ya,seal:Ii,create:MU}=Object,{apply:ej,construct:tj}=typeof Reflect!="undefined"&&Reflect;Ya||(Ya=function(e){return e});Ii||(Ii=function(e){return e});ej||(ej=function(e,n,r){return e.apply(n,r)});tj||(tj=function(e,n){return new e(...n)});const rb=So(Array.prototype.forEach),AD=So(Array.prototype.pop),Fg=So(Array.prototype.push),Hb=So(String.prototype.toLowerCase),BC=So(String.prototype.toString),LD=So(String.prototype.match),Hg=So(String.prototype.replace),wxe=So(String.prototype.indexOf),kxe=So(String.prototype.trim),Bi=So(Object.prototype.hasOwnProperty),Oa=So(RegExp.prototype.test),Bg=Cxe(TypeError),RD=So(Number.isNaN);function So(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s2&&arguments[2]!==void 0?arguments[2]:Hb;ID&&ID(t,null);let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const a=n(s);a!==s&&(xxe(e)||(e[r]=a),s=a)}t[s]=!0}return t}function Sxe(t){for(let e=0;e/gm),Txe=Ii(/\${[\w\W]*}/gm),Pxe=Ii(/^data-[\-\w.\u00B7-\uFFFF]/),Mxe=Ii(/^aria-[\-\w]+$/),DU=Ii(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dxe=Ii(/^(?:\w+script|data):/i),Ixe=Ii(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IU=Ii(/^html$/i),Axe=Ii(/^[a-z][.\w]*(-[.\w]+)+$/i);var HD=Object.freeze({__proto__:null,MUSTACHE_EXPR:Nxe,ERB_EXPR:_xe,TMPLIT_EXPR:Txe,DATA_ATTR:Pxe,ARIA_ATTR:Mxe,IS_ALLOWED_URI:DU,IS_SCRIPT_OR_DATA:Dxe,ATTR_WHITESPACE:Ixe,DOCTYPE_NAME:IU,CUSTOM_ELEMENT:Axe});const yf={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lxe=function(){return typeof window=="undefined"?null:window},Rxe=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch(i){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function AU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lxe();const e=ct=>AU(ct);if(e.version="3.1.3",e.removed=[],!t||!t.document||t.document.nodeType!==yf.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,s=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:l,Element:c,NodeFilter:d,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:b}=t,C=c.prototype,g=sb(C,"cloneNode"),w=sb(C,"nextSibling"),x=sb(C,"childNodes"),S=sb(C,"parentNode");if(typeof i=="function"){const ct=n.createElement("template");ct.content&&ct.content.ownerDocument&&(n=ct.content.ownerDocument)}let E,N="";const{implementation:_,createNodeIterator:P,createDocumentFragment:I,getElementsByTagName:T}=n,{importNode:L}=r;let A={};e.isSupported=typeof PU=="function"&&typeof S=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:z,ERB_EXPR:Y,TMPLIT_EXPR:O,DATA_ATTR:$,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:U}=HD;let{IS_ALLOWED_URI:J}=HD,H=null;const F=Zn({},[...OD,...UC,...WC,...VC,...$D]);let q=null;const X=Zn({},[...zD,...qC,...FD,...ab]);let te=Object.seal(MU(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ee=null,G=null,Z=!0,le=!0,se=!1,de=!0,ce=!1,ye=!0,pe=!1,me=!1,be=!1,Ee=!1,We=!1,qe=!1,ot=!0,Ve=!1;const Ge="user-content-";let ft=!0,Ie=!1,Ke={},ut=null;const $e=Zn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ht=null;const Fe=Zn({},["audio","video","img","source","image","track"]);let pt=null;const Qe=Zn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Lt="http://www.w3.org/1998/Math/MathML",Ut="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let Xt=wt,$t=!1,tn=null;const Pt=Zn({},[Lt,Ut,wt],BC);let Ue=null;const Je=["application/xhtml+xml","text/html"],jt="text/html";let we=null,Se=null;const De=255,nt=n.createElement("form"),Pe=function(xe){return xe instanceof RegExp||xe instanceof Function},gt=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Se&&Se===xe)){if((!xe||typeof xe!="object")&&(xe={}),xe=Cf(xe),Ue=Je.indexOf(xe.PARSER_MEDIA_TYPE)===-1?jt:xe.PARSER_MEDIA_TYPE,we=Ue==="application/xhtml+xml"?BC:Hb,H=Bi(xe,"ALLOWED_TAGS")?Zn({},xe.ALLOWED_TAGS,we):F,q=Bi(xe,"ALLOWED_ATTR")?Zn({},xe.ALLOWED_ATTR,we):X,tn=Bi(xe,"ALLOWED_NAMESPACES")?Zn({},xe.ALLOWED_NAMESPACES,BC):Pt,pt=Bi(xe,"ADD_URI_SAFE_ATTR")?Zn(Cf(Qe),xe.ADD_URI_SAFE_ATTR,we):Qe,ht=Bi(xe,"ADD_DATA_URI_TAGS")?Zn(Cf(Fe),xe.ADD_DATA_URI_TAGS,we):Fe,ut=Bi(xe,"FORBID_CONTENTS")?Zn({},xe.FORBID_CONTENTS,we):$e,ee=Bi(xe,"FORBID_TAGS")?Zn({},xe.FORBID_TAGS,we):{},G=Bi(xe,"FORBID_ATTR")?Zn({},xe.FORBID_ATTR,we):{},Ke=Bi(xe,"USE_PROFILES")?xe.USE_PROFILES:!1,Z=xe.ALLOW_ARIA_ATTR!==!1,le=xe.ALLOW_DATA_ATTR!==!1,se=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,de=xe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=xe.SAFE_FOR_TEMPLATES||!1,ye=xe.SAFE_FOR_XML!==!1,pe=xe.WHOLE_DOCUMENT||!1,Ee=xe.RETURN_DOM||!1,We=xe.RETURN_DOM_FRAGMENT||!1,qe=xe.RETURN_TRUSTED_TYPE||!1,be=xe.FORCE_BODY||!1,ot=xe.SANITIZE_DOM!==!1,Ve=xe.SANITIZE_NAMED_PROPS||!1,ft=xe.KEEP_CONTENT!==!1,Ie=xe.IN_PLACE||!1,J=xe.ALLOWED_URI_REGEXP||DU,Xt=xe.NAMESPACE||wt,te=xe.CUSTOM_ELEMENT_HANDLING||{},xe.CUSTOM_ELEMENT_HANDLING&&Pe(xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(te.tagNameCheck=xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&Pe(xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(te.attributeNameCheck=xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&typeof xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(le=!1),We&&(Ee=!0),Ke&&(H=Zn({},$D),q=[],Ke.html===!0&&(Zn(H,OD),Zn(q,zD)),Ke.svg===!0&&(Zn(H,UC),Zn(q,qC),Zn(q,ab)),Ke.svgFilters===!0&&(Zn(H,WC),Zn(q,qC),Zn(q,ab)),Ke.mathMl===!0&&(Zn(H,VC),Zn(q,FD),Zn(q,ab))),xe.ADD_TAGS&&(H===F&&(H=Cf(H)),Zn(H,xe.ADD_TAGS,we)),xe.ADD_ATTR&&(q===X&&(q=Cf(q)),Zn(q,xe.ADD_ATTR,we)),xe.ADD_URI_SAFE_ATTR&&Zn(pt,xe.ADD_URI_SAFE_ATTR,we),xe.FORBID_CONTENTS&&(ut===$e&&(ut=Cf(ut)),Zn(ut,xe.FORBID_CONTENTS,we)),ft&&(H["#text"]=!0),pe&&Zn(H,["html","head","body"]),H.table&&(Zn(H,["tbody"]),delete ee.tbody),xe.TRUSTED_TYPES_POLICY){if(typeof xe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bg('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=xe.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=Rxe(b,s)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));Ya&&Ya(xe),Se=xe}},Ze=Zn({},["mi","mo","mn","ms","mtext"]),Re=Zn({},["foreignobject","annotation-xml"]),Oe=Zn({},["title","style","font","a","script"]),et=Zn({},[...UC,...WC,...jxe]),Et=Zn({},[...VC,...Exe]),bt=function(xe){let Ye=S(xe);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:Xt,tagName:"template"});const dt=Hb(xe.tagName),mt=Hb(Ye.tagName);return tn[xe.namespaceURI]?xe.namespaceURI===Ut?Ye.namespaceURI===wt?dt==="svg":Ye.namespaceURI===Lt?dt==="svg"&&(mt==="annotation-xml"||Ze[mt]):!!et[dt]:xe.namespaceURI===Lt?Ye.namespaceURI===wt?dt==="math":Ye.namespaceURI===Ut?dt==="math"&&Re[mt]:!!Et[dt]:xe.namespaceURI===wt?Ye.namespaceURI===Ut&&!Re[mt]||Ye.namespaceURI===Lt&&!Ze[mt]?!1:!Et[dt]&&(Oe[dt]||!et[dt]):!!(Ue==="application/xhtml+xml"&&tn[xe.namespaceURI]):!1},_t=function(xe){Fg(e.removed,{element:xe});try{xe.parentNode.removeChild(xe)}catch(Ye){xe.remove()}},Mt=function(xe,Ye){try{Fg(e.removed,{attribute:Ye.getAttributeNode(xe),from:Ye})}catch(dt){Fg(e.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(xe),xe==="is"&&!q[xe])if(Ee||We)try{_t(Ye)}catch(dt){}else try{Ye.setAttribute(xe,"")}catch(dt){}},an=function(xe){let Ye=null,dt=null;if(be)xe=""+xe;else{const It=LD(xe,/^[\r\n\t ]+/);dt=It&&It[0]}Ue==="application/xhtml+xml"&&Xt===wt&&(xe=''+xe+"");const mt=E?E.createHTML(xe):xe;if(Xt===wt)try{Ye=new m().parseFromString(mt,Ue)}catch(It){}if(!Ye||!Ye.documentElement){Ye=_.createDocument(Xt,"template",null);try{Ye.documentElement.innerHTML=$t?N:mt}catch(It){}}const xt=Ye.body||Ye.documentElement;return xe&&dt&&xt.insertBefore(n.createTextNode(dt),xt.childNodes[0]||null),Xt===wt?T.call(Ye,pe?"html":"body")[0]:pe?Ye.documentElement:xt},dn=function(xe){return P.call(xe.ownerDocument||xe,xe,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fn=function(xe){return xe instanceof f&&(typeof xe.__depth!="undefined"&&typeof xe.__depth!="number"||typeof xe.__removalCount!="undefined"&&typeof xe.__removalCount!="number"||typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof p)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"||typeof xe.hasChildNodes!="function")},mn=function(xe){return typeof l=="function"&&xe instanceof l},hn=function(xe,Ye,dt){A[xe]&&rb(A[xe],mt=>{mt.call(e,Ye,dt,Se)})},nn=function(xe){let Ye=null;if(hn("beforeSanitizeElements",xe,null),fn(xe))return _t(xe),!0;const dt=we(xe.nodeName);if(hn("uponSanitizeElement",xe,{tagName:dt,allowedTags:H}),xe.hasChildNodes()&&!mn(xe.firstElementChild)&&Oa(/<[/\w]/g,xe.innerHTML)&&Oa(/<[/\w]/g,xe.textContent)||xe.nodeType===yf.progressingInstruction||ye&&xe.nodeType===yf.comment&&Oa(/<[/\w]/g,xe.data))return _t(xe),!0;if(!H[dt]||ee[dt]){if(!ee[dt]&&Sn(dt)&&(te.tagNameCheck instanceof RegExp&&Oa(te.tagNameCheck,dt)||te.tagNameCheck instanceof Function&&te.tagNameCheck(dt)))return!1;if(ft&&!ut[dt]){const mt=S(xe)||xe.parentNode,xt=x(xe)||xe.childNodes;if(xt&&mt){const It=xt.length;for(let At=It-1;At>=0;--At){const Ht=g(xt[At],!0);Ht.__removalCount=(xe.__removalCount||0)+1,mt.insertBefore(Ht,w(xe))}}}return _t(xe),!0}return xe instanceof c&&!bt(xe)||(dt==="noscript"||dt==="noembed"||dt==="noframes")&&Oa(/<\/no(script|embed|frames)/i,xe.innerHTML)?(_t(xe),!0):(ce&&xe.nodeType===yf.text&&(Ye=xe.textContent,rb([z,Y,O],mt=>{Ye=Hg(Ye,mt," ")}),xe.textContent!==Ye&&(Fg(e.removed,{element:xe.cloneNode()}),xe.textContent=Ye)),hn("afterSanitizeElements",xe,null),!1)},on=function(xe,Ye,dt){if(ot&&(Ye==="id"||Ye==="name")&&(dt in n||dt in nt||dt==="__depth"||dt==="__removalCount"))return!1;if(!(le&&!G[Ye]&&Oa($,Ye))){if(!(Z&&Oa(M,Ye))){if(!q[Ye]||G[Ye]){if(!(Sn(xe)&&(te.tagNameCheck instanceof RegExp&&Oa(te.tagNameCheck,xe)||te.tagNameCheck instanceof Function&&te.tagNameCheck(xe))&&(te.attributeNameCheck instanceof RegExp&&Oa(te.attributeNameCheck,Ye)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(Ye))||Ye==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Oa(te.tagNameCheck,dt)||te.tagNameCheck instanceof Function&&te.tagNameCheck(dt))))return!1}else if(!pt[Ye]){if(!Oa(J,Hg(dt,V,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&xe!=="script"&&wxe(dt,"data:")===0&&ht[xe])){if(!(se&&!Oa(W,Hg(dt,V,"")))){if(dt)return!1}}}}}}return!0},Sn=function(xe){return xe!=="annotation-xml"&&LD(xe,U)},pn=function(xe){hn("beforeSanitizeAttributes",xe,null);const{attributes:Ye}=xe;if(!Ye)return;const dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};let mt=Ye.length;for(;mt--;){const xt=Ye[mt],{name:It,namespaceURI:At,value:Ht}=xt,Bt=we(It);let tt=It==="value"?Ht:kxe(Ht);if(dt.attrName=Bt,dt.attrValue=tt,dt.keepAttr=!0,dt.forceKeepAttr=void 0,hn("uponSanitizeAttribute",xe,dt),tt=dt.attrValue,dt.forceKeepAttr||(Mt(It,xe),!dt.keepAttr))continue;if(!de&&Oa(/\/>/i,tt)){Mt(It,xe);continue}if(ye&&Oa(/((--!?|])>)|<\/(style|title)/i,tt)){Mt(It,xe);continue}ce&&rb([z,Y,O],Zt=>{tt=Hg(tt,Zt," ")});const Kt=we(xe.nodeName);if(on(Kt,Bt,tt)){if(Ve&&(Bt==="id"||Bt==="name")&&(Mt(It,xe),tt=Ge+tt),E&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!At)switch(b.getAttributeType(Kt,Bt)){case"TrustedHTML":{tt=E.createHTML(tt);break}case"TrustedScriptURL":{tt=E.createScriptURL(tt);break}}try{At?xe.setAttributeNS(At,It,tt):xe.setAttribute(It,tt),fn(xe)?_t(xe):AD(e.removed)}catch(Zt){}}}hn("afterSanitizeAttributes",xe,null)},rn=function ct(xe){let Ye=null;const dt=dn(xe);for(hn("beforeSanitizeShadowDOM",xe,null);Ye=dt.nextNode();){if(hn("uponSanitizeShadowNode",Ye,null),nn(Ye))continue;const mt=S(Ye);Ye.nodeType===yf.element&&(mt&&mt.__depth?Ye.__depth=(Ye.__removalCount||0)+mt.__depth+1:Ye.__depth=1),(Ye.__depth>=De||Ye.__depth<0||RD(Ye.__depth))&&_t(Ye),Ye.content instanceof a&&(Ye.content.__depth=Ye.__depth,ct(Ye.content)),pn(Ye)}hn("afterSanitizeShadowDOM",xe,null)};return e.sanitize=function(ct){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,dt=null,mt=null,xt=null;if($t=!ct,$t&&(ct=""),typeof ct!="string"&&!mn(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw Bg("dirty is not a string, aborting")}else throw Bg("toString is not a function");if(!e.isSupported)return ct;if(me||gt(xe),e.removed=[],typeof ct=="string"&&(Ie=!1),Ie){if(ct.nodeName){const Ht=we(ct.nodeName);if(!H[Ht]||ee[Ht])throw Bg("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof l)Ye=an(""),dt=Ye.ownerDocument.importNode(ct,!0),dt.nodeType===yf.element&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?Ye=dt:Ye.appendChild(dt);else{if(!Ee&&!ce&&!pe&&ct.indexOf("<")===-1)return E&&qe?E.createHTML(ct):ct;if(Ye=an(ct),!Ye)return Ee?null:qe?N:""}Ye&&be&&_t(Ye.firstChild);const It=dn(Ie?ct:Ye);for(;mt=It.nextNode();){if(nn(mt))continue;const Ht=S(mt);mt.nodeType===yf.element&&(Ht&&Ht.__depth?mt.__depth=(mt.__removalCount||0)+Ht.__depth+1:mt.__depth=1),(mt.__depth>=De||mt.__depth<0||RD(mt.__depth))&&_t(mt),mt.content instanceof a&&(mt.content.__depth=mt.__depth,rn(mt.content)),pn(mt)}if(Ie)return ct;if(Ee){if(We)for(xt=I.call(Ye.ownerDocument);Ye.firstChild;)xt.appendChild(Ye.firstChild);else xt=Ye;return(q.shadowroot||q.shadowrootmode)&&(xt=L.call(r,xt,!0)),xt}let At=pe?Ye.outerHTML:Ye.innerHTML;return pe&&H["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&Oa(IU,Ye.ownerDocument.doctype.name)&&(At="\n"+At),ce&&rb([z,Y,O],Ht=>{At=Hg(At,Ht," ")}),E&&qe?E.createHTML(At):At},e.setConfig=function(){let ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gt(ct),me=!0},e.clearConfig=function(){Se=null,me=!1},e.isValidAttribute=function(ct,xe,Ye){Se||gt({});const dt=we(ct),mt=we(xe);return on(dt,mt,Ye)},e.addHook=function(ct,xe){typeof xe=="function"&&(A[ct]=A[ct]||[],Fg(A[ct],xe))},e.removeHook=function(ct){if(A[ct])return AD(A[ct])},e.removeHooks=function(ct){A[ct]&&(A[ct]=[])},e.removeAllHooks=function(){A={}},e}var Th=AU();Th.addHook("afterSanitizeAttributes",function(t){"target"in t&&(t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"))});const ww=E=>{var N=E,{children:t,text:e,open:n,isDisabled:r,isDark:s,defaultOpen:a,onOpenChange:i,delayDuration:l,noPortal:c=!1,align:d="center",alignOffset:p=0,sideOffset:f=4,maxHeight:m=120,maxWidth:b=220,className:C,classNameTrigger:g,side:w,onClick:x}=N,S=Ne(N,["children","text","open","isDisabled","isDark","defaultOpen","onOpenChange","delayDuration","noPortal","align","alignOffset","sideOffset","maxHeight","maxWidth","className","classNameTrigger","side","onClick"]);var _=sn(1);try{const P=c?v.Fragment:kU,I=it("");return v.useEffect(()=>{window.markdown.ready.then(T=>{try{const L=T.parse(e);I.value=Th.sanitize(L,{USE_PROFILES:{html:!0}})}catch(L){I.value=Th.sanitize(e,{USE_PROFILES:{html:!0}})}})},[e]),r?o.jsx("span",{className:g,children:t}):o.jsx(C7,{delayDuration:l,children:o.jsxs(S7,{open:n,defaultOpen:a,onOpenChange:i,delayDuration:l,children:[o.jsx(j7,{onClick:x,asChild:!0,children:o.jsx("span",{className:g,children:t})}),o.jsx(P,{children:o.jsx(ak,ae(R({side:w!=null?w:"top",sideOffset:f,alignOffset:p,align:d,className:Pn("z-50 overflow-hidden rounded-md border bg-popover px-2.5 py-1.5 text-[13px] text-popover-foreground shadow-sm animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",C)},S),{style:ae(R({},S.style),{maxWidth:b}),children:o.jsx("div",{className:"max-w-[".concat(b,"px]"),children:o.jsx(Nh,{options:{scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:m,maxWidth:"100%"},children:o.jsx("div",{dangerouslySetInnerHTML:{__html:I.value},className:"note-content"})})})}))})]})})}finally{_.f()}},jo=(t,e)=>{const n=Te(4),[r,s]=v.useState(t);let a,i;return n[0]!==t||n[1]!==e?(a=()=>{const l=setTimeout(()=>{s(t)},e);return()=>{clearTimeout(l)}},i=[t,e],n[0]=t,n[1]=e,n[2]=a,n[3]=i):(a=n[2],i=n[3]),v.useEffect(a,i),r};function Oxe(){return function(t){let e;function n(){e=setTimeout(()=>{t()},1e3)}function r(){e&&clearTimeout(e)}return{onMouseDown:n,onTouchStart:n,onMouseUp:r,onMouseLeave:r,onTouchMove:r,onTouchEnd:r}}}function f0(t){var c,d;const e=Te(6),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M 3 8.992 L 19.686 8.988"}),a=o.jsx("polyline",{points:"16 16.992000579833984"}),i=o.jsx("line",{x1:"3",x2:"13.406",y1:"14.992",y2:"14.992"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r?(l=o.jsxs("svg",{viewBox:"0 0 24 24",width:n,height:r,fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=l):l=e[5],l}function h0(t){var c,d;const e=Te(6),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M 3 8.992 L 18 8.992 C 20.309 8.992 21.753 11.492 20.598 13.492 C 20.062 14.42 19.072 14.992 18 14.992 L 14 14.992"}),a=o.jsx("polyline",{points:"16 12.992 14 14.992 16 16.992"}),i=o.jsx("line",{x1:"3",x2:"10",y1:"14.992",y2:"14.992"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r?(l=o.jsxs("svg",{viewBox:"0 0 24 24",width:n,height:r,fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=l):l=e[5],l}const z1="/assets/image-not-found-Cx6NJXh5.png",uh="/assets/no-image-CF2LzJv7.png";function eo(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function $xe(t){return eo(1,arguments),t instanceof Date||wh(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function sc(t){eo(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||wh(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function zxe(t){if(eo(1,arguments),!$xe(t)&&typeof t!="number")return!1;var e=sc(t);return!isNaN(Number(e))}function Ph(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Fxe(t,e){eo(2,arguments);var n=sc(t).getTime(),r=Ph(e);return new Date(n+r)}function Hxe(t,e){eo(2,arguments);var n=Ph(e);return Fxe(t,-n)}var Bxe=864e5;function Uxe(t){eo(1,arguments);var e=sc(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),s=n-r;return Math.floor(s/Bxe)+1}function kw(t){eo(1,arguments);var e=1,n=sc(t),r=n.getUTCDay(),s=(r=s.getTime()?n+1:e.getTime()>=i.getTime()?n:n-1}function Wxe(t){eo(1,arguments);var e=LU(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=kw(n);return r}var Vxe=6048e5;function qxe(t){eo(1,arguments);var e=sc(t),n=kw(e).getTime()-Wxe(e).getTime();return Math.round(n/Vxe)+1}var Kxe={};function uk(){return Kxe}function Cw(t,e){var n,r,s,a,i,l,c,d;eo(1,arguments);var p=uk(),f=Ph((n=(r=(s=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(i=e.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&s!==void 0?s:p.weekStartsOn)!==null&&r!==void 0?r:(c=p.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=sc(t),b=m.getUTCDay(),C=(b=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=new Date(0);C.setUTCFullYear(f+1,0,b),C.setUTCHours(0,0,0,0);var g=Cw(C,e),w=new Date(0);w.setUTCFullYear(f,0,b),w.setUTCHours(0,0,0,0);var x=Cw(w,e);return p.getTime()>=g.getTime()?f+1:p.getTime()>=x.getTime()?f:f-1}function Gxe(t,e){var n,r,s,a,i,l,c,d;eo(1,arguments);var p=uk(),f=Ph((n=(r=(s=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(i=e.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:p.firstWeekContainsDate)!==null&&r!==void 0?r:(c=p.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),m=RU(t,e),b=new Date(0);b.setUTCFullYear(m,0,f),b.setUTCHours(0,0,0,0);var C=Cw(b,e);return C}var Yxe=6048e5;function Zxe(t,e){eo(1,arguments);var n=sc(t),r=Cw(n,e).getTime()-Gxe(n,e).getTime();return Math.round(r/Yxe)+1}function hr(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return hr(n==="yy"?s%100:s,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):hr(r+1,2)},d:function(e,n){return hr(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return hr(e.getUTCHours()%12||12,n.length)},H:function(e,n){return hr(e.getUTCHours(),n.length)},m:function(e,n){return hr(e.getUTCMinutes(),n.length)},s:function(e,n){return hr(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,s=e.getUTCMilliseconds(),a=Math.floor(s*Math.pow(10,r-3));return hr(a,n.length)}};const Uu=Xxe;var Tp={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qxe={G:function(e,n,r){var s=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var s=e.getUTCFullYear(),a=s>0?s:1-s;return r.ordinalNumber(a,{unit:"year"})}return Uu.y(e,n)},Y:function(e,n,r,s){var a=RU(e,s),i=a>0?a:1-a;if(n==="YY"){var l=i%100;return hr(l,2)}return n==="Yo"?r.ordinalNumber(i,{unit:"year"}):hr(i,n.length)},R:function(e,n){var r=LU(e);return hr(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return hr(r,n.length)},Q:function(e,n,r){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return hr(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,n,r){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return hr(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,n,r){var s=e.getUTCMonth();switch(n){case"M":case"MM":return Uu.M(e,n);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(e,n,r){var s=e.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return hr(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(e,n,r,s){var a=Zxe(e,s);return n==="wo"?r.ordinalNumber(a,{unit:"week"}):hr(a,n.length)},I:function(e,n,r){var s=qxe(e);return n==="Io"?r.ordinalNumber(s,{unit:"week"}):hr(s,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Uu.d(e,n)},D:function(e,n,r){var s=Uxe(e);return n==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):hr(s,n.length)},E:function(e,n,r){var s=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(e,n,r,s){var a=e.getUTCDay(),i=(a-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(i);case"ee":return hr(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,n,r,s){var a=e.getUTCDay(),i=(a-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(i);case"cc":return hr(i,n.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,n,r){var s=e.getUTCDay(),a=s===0?7:s;switch(n){case"i":return String(a);case"ii":return hr(a,n.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(e,n,r){var s=e.getUTCHours(),a=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,n,r){var s=e.getUTCHours(),a;switch(s===12?a=Tp.noon:s===0?a=Tp.midnight:a=s/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,n,r){var s=e.getUTCHours(),a;switch(s>=17?a=Tp.evening:s>=12?a=Tp.afternoon:s>=4?a=Tp.morning:a=Tp.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var s=e.getUTCHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return Uu.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Uu.H(e,n)},K:function(e,n,r){var s=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(s,{unit:"hour"}):hr(s,n.length)},k:function(e,n,r){var s=e.getUTCHours();return s===0&&(s=24),n==="ko"?r.ordinalNumber(s,{unit:"hour"}):hr(s,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Uu.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Uu.s(e,n)},S:function(e,n){return Uu.S(e,n)},X:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();if(i===0)return"Z";switch(n){case"X":return UD(i);case"XXXX":case"XX":return Sf(i);case"XXXXX":case"XXX":default:return Sf(i,":")}},x:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"x":return UD(i);case"xxxx":case"xx":return Sf(i);case"xxxxx":case"xxx":default:return Sf(i,":")}},O:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+BD(i,":");case"OOOO":default:return"GMT"+Sf(i,":")}},z:function(e,n,r,s){var a=s._originalDate||e,i=a.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+BD(i,":");case"zzzz":default:return"GMT"+Sf(i,":")}},t:function(e,n,r,s){var a=s._originalDate||e,i=Math.floor(a.getTime()/1e3);return hr(i,n.length)},T:function(e,n,r,s){var a=s._originalDate||e,i=a.getTime();return hr(i,n.length)}};function BD(t,e){var n=t>0?"-":"+",r=Math.abs(t),s=Math.floor(r/60),a=r%60;if(a===0)return n+String(s);var i=e||"";return n+String(s)+i+hr(a,2)}function UD(t,e){if(t%60===0){var n=t>0?"-":"+";return n+hr(Math.abs(t)/60,2)}return Sf(t,e)}function Sf(t,e){var n=e||"",r=t>0?"-":"+",s=Math.abs(t),a=hr(Math.floor(s/60),2),i=hr(s%60,2);return r+a+n+i}var WD=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},OU=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Jxe=function(e,n){var r=e.match(/(P+)(p+)?/)||[],s=r[1],a=r[2];if(!a)return WD(e,n);var i;switch(s){case"P":i=n.dateTime({width:"short"});break;case"PP":i=n.dateTime({width:"medium"});break;case"PPP":i=n.dateTime({width:"long"});break;case"PPPP":default:i=n.dateTime({width:"full"});break}return i.replace("{{date}}",WD(s,n)).replace("{{time}}",OU(a,n))},eye={p:OU,P:Jxe};function tye(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var nye=["D","DD"],rye=["YY","YYYY"];function sye(t){return nye.indexOf(t)!==-1}function aye(t){return rye.indexOf(t)!==-1}function VD(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iye=function(e,n,r){var s,a=oye[e];return typeof a=="string"?s=a:n===1?s=a.one:s=a.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};const lye=iye;function KC(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var cye={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fye={date:KC({formats:cye,defaultWidth:"full"}),time:KC({formats:uye,defaultWidth:"full"}),dateTime:KC({formats:dye,defaultWidth:"full"})};const hye=fye;var pye={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mye=function(e,n,r,s){return pye[e]};const gye=mye;function Ug(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",s;if(r==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):a;s=t.formattingValues[i]||t.formattingValues[a]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[c]||t.values[l]}var d=t.argumentCallback?t.argumentCallback(e):e;return s[d]}}var vye={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xye={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cye=function(e,n){var r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Sye={ordinalNumber:Cye,era:Ug({values:vye,defaultWidth:"wide"}),quarter:Ug({values:xye,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ug({values:yye,defaultWidth:"wide"}),day:Ug({values:bye,defaultWidth:"wide"}),dayPeriod:Ug({values:wye,defaultWidth:"wide",formattingValues:kye,defaultFormattingWidth:"wide"})};const jye=Sye;function Wg(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;var i=a[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?Nye(l,function(f){return f.test(i)}):Eye(l,function(f){return f.test(i)}),d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;var p=e.slice(i.length);return{value:d,rest:p}}}function Eye(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function Nye(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var s=r[0],a=e.match(t.parsePattern);if(!a)return null;var i=t.valueCallback?t.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;var l=e.slice(s.length);return{value:i,rest:l}}}var Tye=/^(\d+)(th|st|nd|rd)?/i,Pye=/\d+/i,Mye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dye={any:[/^b/i,/^(a|c)/i]},Iye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Aye={any:[/1/i,/2/i,/3/i,/4/i]},Lye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Oye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$ye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zye={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Fye={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Hye={ordinalNumber:_ye({matchPattern:Tye,parsePattern:Pye,valueCallback:function(e){return parseInt(e,10)}}),era:Wg({matchPatterns:Mye,defaultMatchWidth:"wide",parsePatterns:Dye,defaultParseWidth:"any"}),quarter:Wg({matchPatterns:Iye,defaultMatchWidth:"wide",parsePatterns:Aye,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Wg({matchPatterns:Lye,defaultMatchWidth:"wide",parsePatterns:Rye,defaultParseWidth:"any"}),day:Wg({matchPatterns:Oye,defaultMatchWidth:"wide",parsePatterns:$ye,defaultParseWidth:"any"}),dayPeriod:Wg({matchPatterns:zye,defaultMatchWidth:"any",parsePatterns:Fye,defaultParseWidth:"any"})};const Bye=Hye;var Uye={code:"en-US",formatDistance:lye,formatLong:hye,formatRelative:gye,localize:jye,match:Bye,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Wye=Uye;var Vye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Kye=/^'([^]*?)'?$/,Gye=/''/g,Yye=/[a-zA-Z]/;function Mh(t,e,n){var r,s,a,i,l,c,d,p,f,m,b,C,g,w,x,S,E,N;eo(2,arguments);var _=String(e),P=uk(),I=(r=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:P.locale)!==null&&r!==void 0?r:Wye,T=Ph((a=(i=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&l!==void 0?l:P.firstWeekContainsDate)!==null&&i!==void 0?i:(f=P.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=Ph((b=(C=(g=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(x=n.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:P.weekStartsOn)!==null&&C!==void 0?C:(E=P.locale)===null||E===void 0||(N=E.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var A=sc(t);if(!zxe(A))throw new RangeError("Invalid time value");var z=tye(A),Y=Hxe(A,z),O={firstWeekContainsDate:T,weekStartsOn:L,locale:I,_originalDate:A},$=_.match(qye).map(function(M){var W=M[0];if(W==="p"||W==="P"){var V=eye[W];return V(M,I.formatLong)}return M}).join("").match(Vye).map(function(M){if(M==="''")return"'";var W=M[0];if(W==="'")return Zye(M);var V=Qxe[W];if(V)return!(n!=null&&n.useAdditionalWeekYearTokens)&&aye(M)&&VD(M,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&sye(M)&&VD(M,e,String(t)),V(Y,M,I.localize,O);if(W.match(Yye))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return M}).join("");return $}function Zye(t){var e=t.match(Kye);return e?e[1].replace(Gye,"'"):t}var Xye=Object.create,dk=Object.defineProperty,Qye=Object.defineProperties,Jye=Object.getOwnPropertyDescriptor,ebe=Object.getOwnPropertyDescriptors,$U=Object.getOwnPropertyNames,Sw=Object.getOwnPropertySymbols,tbe=Object.getPrototypeOf,M7=Object.prototype.hasOwnProperty,zU=Object.prototype.propertyIsEnumerable,qD=(t,e,n)=>e in t?dk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ql=(t,e)=>{for(var n in e||(e={}))M7.call(e,n)&&qD(t,n,e[n]);if(Sw)for(var n of Sw(e))zU.call(e,n)&&qD(t,n,e[n]);return t},fk=(t,e)=>Qye(t,ebe(e)),FU=(t,e)=>{var n={};for(var r in t)M7.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Sw)for(var r of Sw(t))e.indexOf(r)<0&&zU.call(t,r)&&(n[r]=t[r]);return n},nbe=(t,e)=>function(){return e||(0,t[$U(t)[0]])((e={exports:{}}).exports,e),e.exports},rbe=(t,e)=>{for(var n in e)dk(t,n,{get:e[n],enumerable:!0})},sbe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $U(e))!M7.call(t,s)&&s!==n&&dk(t,s,{get:()=>e[s],enumerable:!(r=Jye(e,s))||r.enumerable});return t},abe=(t,e,n)=>(n=t!=null?Xye(tbe(t)):{},sbe(e||!t||!t.__esModule?dk(n,"default",{value:t,enumerable:!0}):n,t)),obe=nbe({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(t,e){var n=function(){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},i={util:{encode:function C(g){return g instanceof l?new l(g.type,C(g.content),g.alias):Array.isArray(g)?g.map(C):g.replace(/&/g,"&").replace(/"+S.content+""};function c(C,g,w,x){C.lastIndex=g;var S=C.exec(w);if(S&&x&&S[1]){var E=S[1].length;S.index+=E,S[0]=S[0].slice(E)}return S}function d(C,g,w,x,S,E){for(var N in w)if(!(!w.hasOwnProperty(N)||!w[N])){var _=w[N];_=Array.isArray(_)?_:[_];for(var P=0;P<_.length;++P){if(E&&E.cause==N+","+P)return;var I=_[P],T=I.inside,L=!!I.lookbehind,A=!!I.greedy,z=I.alias;if(A&&!I.pattern.global){var Y=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,Y+"g")}for(var O=I.pattern||I,$=x.next,M=S;$!==g.tail&&!(E&&M>=E.reach);M+=$.value.length,$=$.next){var W=$.value;if(g.length>C.length)return;if(!(W instanceof l)){var V=1,U;if(A){if(U=c(O,M,C,L),!U||U.index>=C.length)break;var q=U.index,J=U.index+U[0].length,H=M;for(H+=$.value.length;q>=H;)$=$.next,H+=$.value.length;if(H-=$.value.length,M=H,$.value instanceof l)continue;for(var F=$;F!==g.tail&&(HE.reach&&(E.reach=G);var Z=$.prev;te&&(Z=f(g,Z,te),M+=te.length),m(g,Z,V);var le=new l(N,T?i.tokenize(X,T):X,z,X);if($=f(g,Z,le),ee&&f(g,$,ee),V>1){var se={cause:N+","+P,reach:G};d(C,g,w,$.prev,M,se),E&&se.reach>E.reach&&(E.reach=se.reach)}}}}}}function p(){var C={value:null,prev:null,next:null},g={value:null,prev:C,next:null};C.next=g,this.head=C,this.tail=g,this.length=0}function f(C,g,w){var x=g.next,S={value:w,prev:g,next:x};return g.next=S,x.prev=S,C.length++,S}function m(C,g,w){for(var x=g.next,S=0;S/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},yt.languages.markup.tag.inside["attr-value"].inside.entity=yt.languages.markup.entity,yt.languages.markup.doctype.inside["internal-subset"].inside=yt.languages.markup,yt.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(yt.languages.markup.tag,"addInlined",{value:function(t,r){var n={},n=(n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:yt.languages[r]},n.cdata=/^$/i,{"included-cdata":{pattern://i,inside:n}}),r=(n["language-"+r]={pattern:/[\s\S]+/,inside:yt.languages[r]},{});r[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},yt.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(yt.languages.markup.tag,"addAttribute",{value:function(t,e){yt.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:yt.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),yt.languages.html=yt.languages.markup,yt.languages.mathml=yt.languages.markup,yt.languages.svg=yt.languages.markup,yt.languages.xml=yt.languages.extend("markup",{}),yt.languages.ssml=yt.languages.xml,yt.languages.atom=yt.languages.xml,yt.languages.rss=yt.languages.xml,function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",r=RegExp(r+"-"+r),s={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":s}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},yt.languages.javascript=yt.languages.extend("clike",{"class-name":[yt.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),yt.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,yt.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:yt.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:yt.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:yt.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:yt.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:yt.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),yt.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:yt.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),yt.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),yt.languages.markup&&(yt.languages.markup.tag.addInlined("script","javascript"),yt.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),yt.languages.js=yt.languages.javascript,yt.languages.actionscript=yt.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),yt.languages.actionscript["class-name"].alias="function",delete yt.languages.actionscript.parameter,delete yt.languages.actionscript["literal-property"],yt.languages.markup&&yt.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:yt.languages.markup}}),function(t){var e=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:e,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:e,interpolation:n}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(yt),function(t){var e=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(n,r){(n=typeof n=="string"?[n]:n).forEach(function(s){var a=function(f){f.inside||(f.inside={}),f.inside.rest=r},i="doc-comment";if(l=t.languages[s]){var l,c=l[i];if((c=c||(l=t.languages.insertBefore(s,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(c=l[i]={pattern:c}),Array.isArray(c))for(var d=0,p=c.length;d|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=e,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:e,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:e,number:n})}(yt),function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+n.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(l,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return l});return RegExp(d,c)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+s+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(a),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(yt),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(//g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,i=(t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+a+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+a+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(t.languages.markdown[d].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(d){d.language!=="markdown"&&d.language!=="md"||function p(f){if(f&&typeof f!="string")for(var m=0,b=f.length;m",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(yt),yt.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:yt.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},yt.hooks.add("after-tokenize",function(t){if(t.language==="graphql")for(var e=t.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.javascript["template-string"],n=e.pattern.source,r=e.inside.interpolation,s=r.inside["interpolation-punctuation"],a=r.pattern.source;function i(f,m){if(t.languages[f])return{pattern:RegExp("((?:"+m+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:f}}}}function l(f,m,b){return f={code:f,grammar:m,language:b},t.hooks.run("before-tokenize",f),f.tokens=t.tokenize(f.code,f.grammar),t.hooks.run("after-tokenize",f),f.tokens}function c(f,m,b){var w=t.tokenize(f,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),C=0,g={},w=l(w.map(function(S){if(typeof S=="string")return S;for(var E,N,S=S.content;f.indexOf((N=C++,E="___"+b.toUpperCase()+"_"+N+"___"))!==-1;);return g[E]=S,E}).join(""),m,b),x=Object.keys(g);return C=0,function S(E){for(var N=0;N=x.length)return;var _,P,I,T,L,A,z,Y=E[N];typeof Y=="string"||typeof Y.content=="string"?(_=x[C],(z=(A=typeof Y=="string"?Y:Y.content).indexOf(_))!==-1&&(++C,P=A.substring(0,z),L=g[_],I=void 0,(T={})["interpolation-punctuation"]=s,(T=t.tokenize(L,T)).length===3&&((I=[1,1]).push.apply(I,l(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,I)),I=new t.Token("interpolation",T,r.alias,L),T=A.substring(z+_.length),L=[],P&&L.push(P),L.push(I),T&&(S(A=[T]),L.push.apply(L,A)),typeof Y=="string"?(E.splice.apply(E,[N,1].concat(L)),N+=L.length-1):Y.content=L)):(z=Y.content,Array.isArray(z)?S(z):S([z]))}}(w),new t.Token(b,w,"language-"+b,f)}t.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),e].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(f){return typeof f=="string"?f:Array.isArray(f)?f.map(p).join(""):p(f.content)}t.hooks.add("after-tokenize",function(f){f.language in d&&function m(b){for(var C=0,g=b.length;C]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(yt),function(t){var e=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:e,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:e.string,number:e.number,boolean:e.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:e,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(yt),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(yt),yt.languages.n4js=yt.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),yt.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),yt.languages.n4jsd=yt.languages.n4js,function(t){function e(i,l){return RegExp(i.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),l)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r*\.{3}(?:[^{}]|)*\})/.source;function a(c,d){return c=c.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return s}),RegExp(c,d)}s=a(s).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);function i(c){for(var d=[],p=0;p"&&d.push({tagName:l(f.content[0].content[1]),openedBraces:0}):0]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},yt.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=yt.languages.swift}),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var e={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:e},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:e},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(yt),yt.languages.c=yt.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),yt.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),yt.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},yt.languages.c.string],char:yt.languages.c.char,comment:yt.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:yt.languages.c}}}}),yt.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete yt.languages.c.boolean,yt.languages.objectivec=yt.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete yt.languages.objectivec["class-name"],yt.languages.objc=yt.languages.objectivec,yt.languages.reason=yt.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),yt.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete yt.languages.reason.function,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)e=e.replace(//g,function(){return e});e=e.replace(//g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(yt),yt.languages.go=yt.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),yt.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete yt.languages.go["class-name"],function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(yt),yt.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},yt.languages.python["string-interpolation"].inside.interpolation.inside.rest=yt.languages.python,yt.languages.py=yt.languages.python;var gl={};rbe(gl,{dracula:()=>lbe,duotoneDark:()=>ube,duotoneLight:()=>fbe,github:()=>pbe,jettwaveDark:()=>Lbe,jettwaveLight:()=>Obe,nightOwl:()=>gbe,nightOwlLight:()=>xbe,oceanicNext:()=>bbe,okaidia:()=>kbe,oneDark:()=>zbe,oneLight:()=>Hbe,palenight:()=>Sbe,shadesOfPurple:()=>Ebe,synthwave84:()=>_be,ultramin:()=>Pbe,vsDark:()=>HU,vsLight:()=>Ibe});var ibe={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},lbe=ibe,cbe={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},ube=cbe,dbe={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},fbe=dbe,hbe={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},pbe=hbe,mbe={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},gbe=mbe,vbe={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},xbe=vbe,Do={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",punctuation:"#5FB3B3",tag:"#fc929e",function:"#79b6f2",className:"#FAC863",method:"#6699CC",operator:"#fc929e"},ybe={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Do.keyword}},{types:["attr-value"],style:{color:Do.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Do.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Do.primitive}},{types:["boolean"],style:{color:Do.boolean}},{types:["tag"],style:{color:Do.tag}},{types:["string"],style:{color:Do.string}},{types:["punctuation"],style:{color:Do.string}},{types:["selector","char","builtin","inserted"],style:{color:Do.char}},{types:["function"],style:{color:Do.function}},{types:["operator","entity","url","variable"],style:{color:Do.variable}},{types:["keyword"],style:{color:Do.keyword}},{types:["atrule","class-name"],style:{color:Do.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},bbe=ybe,wbe={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},kbe=wbe,Cbe={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Sbe=Cbe,jbe={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Ebe=jbe,Nbe={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},_be=Nbe,Tbe={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Pbe=Tbe,Mbe={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},HU=Mbe,Dbe={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Ibe=Dbe,Abe={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Lbe=Abe,Rbe={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Obe=Rbe,$be={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},zbe=$be,Fbe={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Hbe=Fbe,Bbe=(t,e)=>{const{plain:n}=t,r=t.styles.reduce((s,a)=>{const{languages:i,style:l}=a;return i&&!i.includes(e)||a.types.forEach(c=>{const d=Ql(Ql({},s[c]),l);s[c]=d}),s},{});return r.root=n,r.plain=fk(Ql({},n),{backgroundColor:void 0}),r},KD=Bbe,Ube=(t,e)=>{const[n,r]=v.useState(KD(e,t)),s=v.useRef(),a=v.useRef();return v.useEffect(()=>{(e!==s.current||t!==a.current)&&(s.current=e,a.current=t,r(KD(e,t)))},[t,e]),n},Wbe=t=>v.useCallback(e=>{var n=e,{className:r,style:s,line:a}=n,i=FU(n,["className","style","line"]);const l=fk(Ql({},i),{className:Pn("token-line",r)});return typeof t=="object"&&"plain"in t&&(l.style=t.plain),typeof s=="object"&&(l.style=Ql(Ql({},l.style||{}),s)),l},[t]),Vbe=t=>{const e=v.useCallback(({types:n,empty:r})=>{if(t!=null){{if(n.length===1&&n[0]==="plain")return r!=null?{display:"inline-block"}:void 0;if(n.length===1&&r!=null)return t[n[0]]}return Object.assign(r!=null?{display:"inline-block"}:{},...n.map(s=>t[s]))}},[t]);return v.useCallback(n=>{var r=n,{token:s,className:a,style:i}=r,l=FU(r,["token","className","style"]);const c=fk(Ql({},l),{className:Pn("token",...s.types,a),children:s.content,style:e(s)});return i!=null&&(c.style=Ql(Ql({},c.style||{}),i)),c},[e])},qbe=/\r\n|\r|\n/,GD=t=>{t.length===0?t.push({types:["plain"],content:"\n",empty:!0}):t.length===1&&t[0].content===""&&(t[0].content="\n",t[0].empty=!0)},YD=(t,e)=>{const n=t.length;return n>0&&t[n-1]===e?t:t.concat(e)},Kbe=t=>{const e=[[]],n=[t],r=[0],s=[t.length];let a=0,i=0,l=[];const c=[l];for(;i>-1;){for(;(a=r[i]++)0?p:["plain"],d=m):(p=YD(p,m.type),m.alias&&(p=YD(p,m.alias)),d=m.content),typeof d!="string"){i++,e.push(p),n.push(d),r.push(0),s.push(d.length);continue}const b=d.split(qbe),C=b.length;l.push({types:p,content:b[0]});for(let g=1;g{const s=v.useRef(t);return v.useMemo(()=>{if(n==null)return ZD([e]);const a={code:e,grammar:n,language:r,tokens:[]};return s.current.hooks.run("before-tokenize",a),a.tokens=s.current.tokenize(e,n),s.current.hooks.run("after-tokenize",a),ZD(a.tokens)},[e,n,r])},Ybe=({children:t,language:e,code:n,theme:r,prism:s})=>{const a=e.toLowerCase(),i=Ube(a,r),l=Wbe(i),c=Vbe(i),d=s.languages[a],p=Gbe({prism:s,language:a,code:n,grammar:d});return t({tokens:p,className:"prism-code language-".concat(a),style:i!=null?i.root:{},getLineProps:l,getTokenProps:c})},Tx=t=>v.createElement(Ybe,fk(Ql({},t),{prism:t.prism||yt,theme:t.theme||HU,code:t.code,language:t.language}));/*! Bundled license information: prismjs/prism.js: (** @@ -1991,7 +1991,7 @@ prismjs/prism.js: * @namespace * @public *) -*/function Zbe(t){var c,d;const e=Te(7),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M40.554 17.082c0-.309-.073-.627-.195-.917-.123-.29-.296-.553-.496-.754-.201-.2-.464-.373-.754-.495-.29-.123-.608-.195-.917-.195-.196 0-.406.03-.609.084-.204.055-.401.134-.571.232-.372.215-.667.541-.869.906-.203.365-.312.769-.312 1.139s.109.774.312 1.139c.202.365.497.692.869.906.371.214.801.307 1.219.299.417-.007.822-.114 1.142-.299.32-.185.616-.482.831-.84.215-.358.35-.776.35-1.205Zm-4.369-2.007c.271-.27.568-.484.9-.627.332-.143.699-.217 1.108-.207.261-.004.503.026.736.09.234.064.458.16.684.29.496.287.85.649 1.082 1.067.231.417.338.889.338 1.394 0 .506-.107.977-.338 1.394-.232.417-.586.779-1.082 1.065-.496.287-.987.414-1.464.405-.477-.008-.939-.151-1.377-.405-.438-.253-.803-.581-1.053-.99-.251-.408-.387-.896-.367-1.469-.01-.409.063-.776.206-1.108.144-.332.357-.629.627-.899Z"}),a=o.jsx("path",{d:"m58.665 30.709-.014-3.279-.014-3.28-.001-.063v-.064l-2.307-3.991-2.306-3.991-1.644 2.858-1.644 2.858c-.075.17-.17.273-.288.333-.118.06-.26.078-.426.078-.166 0-.306-.018-.424-.078-.118-.061-.214-.163-.289-.333l-.891-1.531-.891-1.531-.208-.356-.208-.357-2.424 4.189-2.425 4.189c-.041.086-.085.145-.14.191-.055.047-.121.081-.205.116-.084.036-.154.06-.226.068-.072.007-.145-.002-.236-.031l-.009-.003-.009-.002-.02-.003-.019-.002c-1.888-.219-3.672-.086-5.284.19-1.611.276-3.051.695-4.248 1.047l-.53.153-.529.153v2.472c.01.115.044.248.093.37s.114.234.188.307c.073.074.185.139.307.188.123.049.255.082.37.093h25.943c.115-.011.247-.044.37-.093.122-.049.234-.114.307-.188.074-.073.139-.185.188-.307.049-.122.082-.255.093-.37Zm.383-16.343.169-.177.168-.177c.11-.115.049-.009-.038.126-.088.135-.203.298-.203.298v16.273c.011.215-.023.398-.095.562-.072.165-.182.311-.326.454-.143.143-.289.254-.454.326-.164.072-.346.106-.562.095H31.764c-.215.011-.398-.022-.562-.095-.164-.072-.31-.183-.454-.326-.143-.143-.253-.289-.326-.454-.072-.164-.105-.346-.095-.562V11.713c-.01-.216.023-.399.095-.563.073-.164.183-.31.326-.453.144-.143.29-.254.454-.326.164-.073.347-.106.562-.096h14.394c.024.113.041.193.065.287.025.095.057.205.112.377.024.075 0 .028-.03-.037s-.066-.148-.066-.148H31.764c-.115.011-.247.044-.37.093-.122.049-.233.114-.307.188-.073.073-.138.185-.188.307-.049.123-.082.255-.093.371v16.029l.307-.09.307-.09.156-.046.155-.045c1.256-.369 2.717-.802 4.348-1.083 1.632-.281 3.434-.409 5.371-.166l.157.02.157.02.08-.137.079-.138 2.232-3.878 2.232-3.878c.075-.169.17-.272.288-.333.118-.06.259-.078.425-.078.166 0 .307.018.425.079.117.06.212.163.287.333l1.1 1.902 1.101 1.902.208-.356.208-.357 1.452-2.494 1.452-2.495a.4813.4813 0 0 1 .039-.063c.015-.02.03-.039.048-.058.079-.118.164-.198.265-.247.1-.048.216-.064.357-.053.128-.011.237.005.334.05.098.045.183.117.263.217.026.023.046.044.063.067.017.022.031.047.047.078l1.958 3.389 1.958 3.389v-8.435c.125-.103.234-.197.347-.3.113-.104.229-.217.367-.36l-.17.175-.169.176.004.003Z"}),i=o.jsx("path",{fill:"red",d:"M53.247 6.641c-.374.007-.681.049-.951.119-.271.071-.505.171-.736.294l-.206.112-.207.112-.208.112-.209.112-.039-.039-.039-.04-.045.085-.046.085-.076.042-.076.041.035.036.035.035-.222.418-.223.418c-.152.29-.266.587-.335.919-.068.332-.09.698-.059 1.126.102.666.366 1.272.736 1.776s.846.905 1.372 1.163c.539.22 1.088.327 1.626.314.539-.013 1.067-.146 1.564-.403l.206-.112.206-.112.208-.112.208-.112.048.048.047.048.3-.597.299-.597c.276-.582.394-1.2.375-1.798-.019-.599-.174-1.177-.445-1.677-.309-.495-.754-.94-1.292-1.266-.539-.326-1.17-.532-1.851-.55Zm2.741 6.611-2.864-2.862-2.864-2.863.13-.122.13-.123c.366-.339.798-.588 1.264-.751.466-.163.965-.242 1.464-.242.69 0 1.369.157 1.967.486.598.329 1.116.829 1.484 1.514.214.331.37.676.47 1.021.1.345.144.691.134 1.024-.01.335-.075.671-.182.997-.107.326-.257.641-.437.932a3.872 3.872 0 0 1-.21.359c-.076.114-.156.224-.241.328l-.122.151Zm-5.559-.186c-.377-.36-.669-.779-.865-1.248-.196-.47-.296-.99-.291-1.554-.002-.36.042-.708.132-1.042.09-.333.225-.652.406-.955.065-.129.134-.252.208-.367.075-.116.153-.224.235-.325l.123-.152.122-.152 2.864 2.861 2.863 2.862-.128.123-.129.123c-.333.318-.739.573-1.199.746-.46.173-.974.264-1.525.254-.566.006-1.09-.101-1.563-.302-.473-.202-.894-.499-1.253-.872Z"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==t.className||e[5]!==r?(l=o.jsxs("svg",{width:n,className:t.className,height:r,viewBox:"30.325 6.289 29.119 25.859",xmlns:"http://www.w3.org/2000/svg",stroke:"none",fill:"currentColor",children:[s,a,i]}),e[3]=n,e[4]=t.className,e[5]=r,e[6]=l):l=e[6],l}function Xbe(t){var b;const e=Te(15);let n,r,s,a,i;e[0]!==t?(b=t,{fallback:i,onErrorCallback:n,hasError:r,src:s}=b,a=Ne(b,["fallback","onErrorCallback","hasError","src"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5]);let l;e[6]!==n?(l=n===void 0?()=>{}:n,e[6]=n,e[7]=l):l=e[7];const c=l,d=r===void 0?!1:r,[p,f]=v.useState(!d);let m;return e[8]!==p||e[9]!==d||e[10]!==c||e[11]!==s||e[12]!==a||e[13]!==i?(m=p&&!d?o.jsx("img",R({src:s,onError:()=>{p&&f(!1),c()}},a)):i?o.jsx("img",ae(R({src:i},a),{alt:"404 Not Found"})):o.jsx(st,{text:"404 / broken image link",children:o.jsx(Zbe,{className:"mb-1 text-gray-400",width:"50px",height:"36px"})}),e[8]=p,e[9]=d,e[10]=c,e[11]=s,e[12]=a,e[13]=i,e[14]=m):m=e[14],m}const vl=v.memo(Xbe,(t,e)=>t.src===e.src),D7=t=>{const e=Te(9),{delay:n,onCopied:r}=t,s=n===void 0?800:n;let a;e[0]!==r?(a=r===void 0?()=>{}:r,e[0]=r,e[1]=a):a=e[1];const i=a,[l,c]=v.useState(!1);let d;e[2]!==l||e[3]!==i||e[4]!==s?(d=m=>{(m==null?void 0:m.length)>0&&!l&&(c(!0),setTimeout(()=>{Gs("copy_text",{text:m}).then(b=>{b==="ok"?(requestAnimationFrame(()=>{c(!1)}),i()):(c(!1),console.error("Failed to copy text",b))}).catch(b=>{c(!1),console.error("Failed to copy text",b)})},s))},e[2]=l,e[3]=i,e[4]=s,e[5]=d):d=e[5];const p=d;let f;return e[6]!==l||e[7]!==p?(f=[l,p],e[6]=l,e[7]=p,e[8]=f):f=e[8],f},I7=t=>{const e=Te(21),{delay:n,onPasted:r}=t,s=n===void 0?800:n;let a;e[0]!==r?(a=r===void 0?()=>{}:r,e[0]=r,e[1]=a):a=e[1];const i=a,[l,c]=v.useState(""),[d,p]=v.useState(null),{copyPasteDelay:f}=Tt(Cr),m=v.useRef(0);let b;e[2]!==i?(b=(N,_)=>{Gs("copy_paste",{text:N,delay:_===void 0?0:_}).then(I=>{I==="ok"?requestAnimationFrame(()=>{c(""),i()}):(c(""),console.error("Failed to copy paste text",I))}).catch(I=>{c(""),console.error("Failed to copy paste text",I)})},e[2]=i,e[3]=b):b=e[3];const C=b;let g;e[4]!==d||e[5]!==l||e[6]!==C||e[7]!==s?(g=()=>(d&&d>0?m.current=setInterval(()=>{p(N=>N?N-1:null)},1e3):d===0?(l&&(p(null),setTimeout(()=>{C(l,0)},s)),clearInterval(m.current)):m.current&&clearInterval(m.current),()=>{m.current&&clearInterval(m.current)}),e[4]=d,e[5]=l,e[6]=C,e[7]=s,e[8]=g):g=e[8];let w;e[9]!==d||e[10]!==l?(w=[d,l],e[9]=d,e[10]=l,e[11]=w):w=e[11],v.useEffect(g,w);let x;e[12]!==f||e[13]!==l||e[14]!==C||e[15]!==s?(x=(N,_)=>{_=_!=null?_:f,N&&!l&&(c(N),_>0?p(_):setTimeout(()=>{C(N,_)},s))},e[12]=f,e[13]=l,e[14]=C,e[15]=s,e[16]=x):x=e[16];const S=x;let E;return e[17]!==l||e[18]!==d||e[19]!==S?(E=[l,d,S],e[17]=l,e[18]=d,e[19]=S,e[20]=E):E=e[20],E};class Qbe{constructor(e){kt(this,"codes");this.codes=[],this.setCodes(e)}closeTags(e){let n=e;return this.codes.forEach(({tag:r})=>{const s="[".concat(r,"]"),a="[/".concat(r,"]"),i=[];let l=0;for(;l0;)i.pop(),n+=a}),n}parse(e){let r=[e];for(const{regexp:s,replacement:a}of this.codes)r=r.flatMap((i,l)=>typeof i=="string"?this.replaceText(i,s,a,l):i);return r=r.flatMap(s=>typeof s=="string"?this.linkifyText(s):s),r.length===1?r[0]:o.jsx(o.Fragment,{children:r.map((s,a)=>v.isValidElement(s)?v.cloneElement(s,{key:"element-".concat(a)}):s)})}linkifyText(e){const r=zr().match(e);if(!r)return e;const s=[];let a=0;return r.forEach((i,l)=>{s.push(e.slice(a,i.index)),s.push(o.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Ei(Ir(i.url))},children:i.raw},"link-".concat(l))),a=i.lastIndex}),s.push(e.slice(a)),s}replaceText(e,n,r,s){let a=0;const i=[];return e.replace(n,(l,c,d)=>(d>a&&i.push(e.substring(a,d)),typeof r=="function"?i.push(r(c,Date.now()+s)):i.push(r),a=d+l.length,l)),a{const s=new RegExp("\\[".concat(r,"\\]"),"gi"),a=new RegExp("\\[/".concat(r,"\\]"),"gi");n=n.replace(s,""),n=n.replace(a,"")}),n}setCodes(e){return this.codes=Object.keys(e).map(n=>{const r=e[n],s=n.match(/\\\[(.+?)\\\]/);return{tag:s?s[1]:"unknown",regexp:new RegExp(n,"igms"),replacement:r}}),this}}const BU=t=>{var e=sn(1);try{const n=Te(40),{text:r,copyText:s,id:a,parser:i}=t;let l;n[0]!==i||n[1]!==r?(l=i?i.parse(r):r,n[0]=i,n[1]=r,n[2]=l):l=n[2];const c=l,{t:d}=Gt();let p;n[3]===Symbol.for("react.memo_cache_sentinel")?(p={},n[3]=p):p=n[3];const[f,m]=D7(p);let b;n[4]===Symbol.for("react.memo_cache_sentinel")?(b={},n[4]=b):b=n[4];const[C,g,w]=I7(b),x=f||C;let S;n[5]!==m||n[6]!==i||n[7]!==s||n[8]!==w?(S=Y=>{Y.preventDefault(),Tn.value?w(i?i.remove(s):s):m(i?i.remove(s):s)},n[5]=m,n[6]=i,n[7]=s,n[8]=w,n[9]=S):S=n[9];const E="".concat(x?"dark:!border-green-800":""," inline-flex relative select-none items-center border rounded-md px-1.5 py-[1px] my-[1px] focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:bg-green-100/80 bg-green-50 dark:bg-green-950 border-slate-300 dark:hover:bg-green-900/80 dark:border-slate-600 cursor-pointer");let N;n[10]!==c?(N=o.jsx("span",{children:c}),n[10]=c,n[11]=N):N=n[11];let _;n[12]!==x||n[13]!==g||n[14]!==a||n[15]!==r||n[16]!==f||n[17]!==d||n[18]!==C?(_=x&&!g?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 pointer-events-none px-2 !rounded-md absolute right-0 w-full h-full flex items-center justify-center z-100",children:o.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white",children:[o.jsx(en,{size:14,className:"mr-1"}),(r==null?void 0:r.length)>10&&o.jsx(o.Fragment,{children:f?d("Copied",{ns:"common"}):C?d("Pasted",{ns:"common"}):""})]})},"badge-".concat(a)):x&&g&&g>0&&o.jsx(St,{className:"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !rounded-md pointer-events-none px-2 text-white absolute right-0 w-full h-full flex items-center justify-center",children:d("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:g})}),n[12]=x,n[13]=g,n[14]=a,n[15]=r,n[16]=f,n[17]=d,n[18]=C,n[19]=_):_=n[19];let P;n[20]!==m||n[21]!==i||n[22]!==s||n[23]!==w?(P=Y=>{Y.preventDefault(),Tn.value?w(i?i.remove(s):s):m(i?i.remove(s):s)},n[20]=m,n[21]=i,n[22]=s,n[23]=w,n[24]=P):P=n[24];let I;n[25]!==d?(I=Tn.value?d("Copy and Paste",{ns:"common"}):d("Copy to Clipboard",{ns:"common"}),n[25]=d,n[26]=I):I=n[26];let T;n[27]===Symbol.for("react.memo_cache_sentinel")?(T=Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14}),n[27]=T):T=n[27];let L;n[28]!==I?(L=o.jsx(st,{text:I,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:T}),n[28]=I,n[29]=L):L=n[29];let A;n[30]!==P||n[31]!==L?(A=o.jsx(mr,{className:"ml-1 text-slate-500 h-full py-0.5 hover:text-green-700 hover:bg-transparent",onClick:P,children:L}),n[30]=P,n[31]=L,n[32]=A):A=n[32];let z;return n[33]!==a||n[34]!==S||n[35]!==E||n[36]!==N||n[37]!==_||n[38]!==A?(z=o.jsxs("span",{onDoubleClick:S,className:E,children:[N,_,A]},a),n[33]=a,n[34]=S,n[35]=E,n[36]=N,n[37]=_,n[38]=A,n[39]=z):z=n[39],z}finally{e.f()}},UU=t=>{const e=Te(6),{txt:n,id:r}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>{if(d.length<=1)return d;if(d.length===2)return"".concat(d[0],"•");const p=d[0],f=d[d.length-1],m=d.substring(1,d.length-1).split("").map(()=>"•").join("");return"".concat(p).concat(m).concat(f)},e[0]=s):s=e[0];const a=s;let i;e[1]!==n?(i=typeof n=="string"?n.split(/(\s+)/).map(d=>/\s/.test(d)?d:a(d)).join(""):v.isValidElement(n)?v.cloneElement(n,ae(R({},n.props),{key:"parent-"+Math.random()*1e3}),...v.Children.toArray(n.props.children).map((d,p)=>v.cloneElement(UU({txt:d,id:Math.random()*1e3}),{key:"child-"+p}))):"•",e[1]=n,e[2]=i):i=e[2];const l=i;let c;return e[3]!==r||e[4]!==l?(c=o.jsx("span",{className:"masked-or-blanked",children:l},r),e[3]=r,e[4]=l,e[5]=c):c=e[5],c},WU=t=>{const e=Te(7),{txt:n,id:r}=t;if(typeof n=="string"&&n.length<=2){let l;return e[0]!==n?(l=o.jsx("span",{children:n}),e[0]=n,e[1]=l):l=e[1],l}let s;e[2]!==n?(s=typeof n=="string"?n.split("").map(l=>/\s/.test(l)?l:"█").join(""):v.isValidElement(n)?v.cloneElement(n,ae(R({},n.props),{key:"parent-"+Math.random()*1e3}),...v.Children.toArray(n.props.children).map((l,c)=>v.cloneElement(WU({txt:l,id:Math.random()*1e3}),{key:"child-"+c}))):"█",e[2]=n,e[3]=s):s=e[3];const a=s;let i;return e[4]!==r||e[5]!==a?(i=o.jsx("span",{className:"text-gray-200 dark:text-gray-600 masked-or-blanked",children:a},r),e[4]=r,e[5]=a,e[6]=i):i=e[6],i},Jbe=t=>{const e=Te(3),{text:n,id:r}=t;let s;return e[0]!==r||e[1]!==n?(s=o.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-700 dark:text-slate-100",children:n},r),e[0]=r,e[1]=n,e[2]=s):s=e[2],s},Wc=new Qbe({"\\[copy\\](.+?)\\[/copy\\]":(t,e)=>o.jsx(BU,{text:t,copyText:t.repeat(1),id:e,parser:Wc}),"\\[mask\\](.+?)\\[/mask\\]":(t,e)=>o.jsx(UU,{txt:t,id:e}),"\\[blank\\](.+?)\\[/blank\\]":(t,e)=>o.jsx(WU,{txt:t,id:e}),"\\[hl\\](.+?)\\[/hl\\]":(t,e)=>o.jsx(Jbe,{text:t,id:e}),"\\[h\\](.+?)\\[/h\\]":(t,e)=>o.jsx("span",{className:"text-lg font-semibold",children:t},e),"\\[b\\](.+?)\\[/b\\]":(t,e)=>o.jsx("strong",{children:t},e),"\\[i\\](.+?)\\[/i\\]":(t,e)=>o.jsx("span",{className:"italic",children:t},e)}),VU=(t,e,n)=>{var a;const r=mz(e),s=new RegExp("(".concat(r,")"),"gi");if(typeof t=="string"){const i=t.split(s),l=v.createRef();return i.map((c,d)=>(n.current.push(l),c.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:ml(l),children:c},d):c))}else if(v.isValidElement(t))if((a=t==null?void 0:t.props)!=null&&a.text&&typeof t.props.text=="string"){const i=t.props.text.split(s),l=v.createRef();return v.cloneElement(t,ae(R({},t.props),{text:o.jsx("span",{children:i.map((c,d)=>(n.current.push(l),c.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-yellow-600 search-pulse-animation",ref:ml(l),children:Wc.parse(c)},d):o.jsx("span",{children:Wc.parse(c)})))})}),t.props.children)}else return v.cloneElement(t,t.props,...v.Children.toArray(t.props.children).map(i=>VU(i,e,n)));else return t},hk=({isWrapped:t,searchTerm:e,valuePreview:n,isCode:r,isImage:s,isMasked:a,isLargeView:i,trimmedValue:l,hasLinkCard:c,metadataLinkByItemId:d,metadataLinkImageWidth:p=24,isImageData:f,morePreviewLines:m,isDark:b,isExpanded:C})=>{const g=v.useRef([]),w=v.useMemo(()=>{if(!f&&!r&&!s&&n)return a?Ch(Wc.remove(n)):Wc.parse(n)},[n]),x=v.useMemo(()=>{if(!f&&!r&&!s&&l)return a?Ch(Wc.remove(l)):Wc.parse(l)},[l]),S=v.useMemo(()=>e.length>1?(g.current=[],VU(x,e,g)):C?x:w,[C,e,x,w]);return v.useEffect(()=>{var E;g.current.length>0&&((E=g.current[0].current)==null||E.scrollIntoView({behavior:"smooth",block:"center"}))},[S]),o.jsxs(Nh,{className:"clip-card-text-view ".concat(!C||m==null?"code-scroll-x pb-2":""),options:{scrollbars:{theme:b?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxHeight:i?"calc(100vh - 240px)":C||m==null?200:120,maxWidth:"100%"},children:[c&&o.jsx(ne,{className:"self-start mt-1 mb-1 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(l)!==(d==null?void 0:d.linkUrl),title:d==null?void 0:d.linkTitle,description:d==null?void 0:d.linkDescription,favicon:d==null?void 0:d.linkFavicon,link:d==null?void 0:d.linkUrl,imageWidth:p,image:d==null?void 0:d.linkImage,domain:d==null?void 0:d.linkDomain})}),o.jsxs(Nv,{className:"self-start text-sm font-normal select-text ".concat(t?"whitespace-pre-wrap":"whitespace-pre"," ").concat(C?"!overflow-visible pb-1.5":""),children:[S,!C&&m&&o.jsx("span",{className:"select-none",children:"..."})]})]})};v.memo(hk);var qU={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Vn,function(){var n=navigator.userAgent,r=navigator.platform,s=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),l=/Edge\/(\d+)/.exec(n),c=a||i||l,d=c&&(a?document.documentMode||6:+(l||i)[1]),p=!l&&/WebKit\//.test(n),f=p&&/Qt\/\d+\.\d+/.test(n),m=!l&&/Chrome\/(\d+)/.exec(n),b=m&&+m[1],C=/Opera\//.test(n),g=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),x=/PhantomJS/.test(n),S=g&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),E=/Android/.test(n),N=S||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),_=S||/Mac/.test(r),P=/\bCrOS\b/.test(n),I=/win/i.test(r),T=C&&n.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(C=!1,p=!0);var L=_&&(f||C&&(T==null||T<12.11)),A=s||c&&d>=9;function z(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var Y=function(u,h){var k=u.className,y=z(h).exec(k);if(y){var j=k.slice(y.index+y[0].length);u.className=k.slice(0,y.index)+(j?y[1]+j:"")}};function O(u){for(var h=u.childNodes.length;h>0;--h)u.removeChild(u.firstChild);return u}function $(u,h){return O(u).appendChild(h)}function M(u,h,k,y){var j=document.createElement(u);if(k&&(j.className=k),y&&(j.style.cssText=y),typeof h=="string")j.appendChild(document.createTextNode(h));else if(h)for(var D=0;D=h)return B+(h-D);B+=K-D,B+=k-B%k,D=K+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};de.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},de.prototype.set=function(u,h){this.f=h;var k=+new Date+u;(!this.id||k=h)return y+Math.min(B,h-j);if(j+=D-y,j+=k-j%k,y=D+1,j>=h)return y}}var qe=[""];function ot(u){for(;qe.length<=u;)qe.push(Ve(qe)+" ");return qe[u]}function Ve(u){return u[u.length-1]}function Ge(u,h){for(var k=[],y=0;y"€"&&(u.toUpperCase()!=u.toLowerCase()||ut.test(u))}function ht(u,h){return h?h.source.indexOf("\\w")>-1&&$e(u)?!0:h.test(u):$e(u)}function Fe(u){for(var h in u)if(u.hasOwnProperty(h)&&u[h])return!1;return!0}var pt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(u){return u.charCodeAt(0)>=768&&pt.test(u)}function Lt(u,h,k){for(;(k<0?h>0:hk?-1:1;;){if(h==k)return h;var j=(h+k)/2,D=y<0?Math.ceil(j):Math.floor(j);if(D==h)return u(D)?h:k;u(D)?k=D:h=D+y}}function wt(u,h,k,y){if(!u)return y(h,k,"ltr",0);for(var j=!1,D=0;Dh||h==k&&B.to==h)&&(y(Math.max(B.from,h),Math.min(B.to,k),B.level==1?"rtl":"ltr",D),j=!0)}j||y(h,k,"ltr")}var Xt=null;function $t(u,h,k){var y;Xt=null;for(var j=0;jh)return j;D.to==h&&(D.from!=D.to&&k=="before"?y=j:Xt=j),D.from==h&&(D.from!=D.to&&k!="before"?y=j:Xt=j)}return y!=null?y:Xt}var tn=function(){var u="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",h="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function k(ie){return ie<=247?u.charAt(ie):1424<=ie&&ie<=1524?"R":1536<=ie&&ie<=1785?h.charAt(ie-1536):1774<=ie&&ie<=2220?"r":8192<=ie&&ie<=8203?"w":ie==8204?"b":"L"}var y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,D=/[LRr]/,B=/[Lb1n]/,K=/[1n]/;function Q(ie,he,Ce){this.level=ie,this.from=he,this.to=Ce}return function(ie,he){var Ce=he=="ltr"?"L":"R";if(ie.length==0||he=="ltr"&&!y.test(ie))return!1;for(var ze=ie.length,Le=[],lt=0;lt-1&&(y[h]=j.slice(0,D).concat(j.slice(D+1)))}}}function Se(u,h){var k=jt(u,h);if(k.length)for(var y=Array.prototype.slice.call(arguments,2),j=0;j0}function gt(u){u.prototype.on=function(h,k){Je(this,h,k)},u.prototype.off=function(h,k){we(this,h,k)}}function Ze(u){u.preventDefault?u.preventDefault():u.returnValue=!1}function Re(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=!0}function Oe(u){return u.defaultPrevented!=null?u.defaultPrevented:u.returnValue==!1}function et(u){Ze(u),Re(u)}function Et(u){return u.target||u.srcElement}function bt(u){var h=u.which;return h==null&&(u.button&1?h=1:u.button&2?h=3:u.button&4&&(h=2)),_&&u.ctrlKey&&h==1&&(h=3),h}var _t=function(){if(c&&d<9)return!1;var u=M("div");return"draggable"in u||"dragDrop"in u}(),Mt;function an(u){if(Mt==null){var h=M("span","​");$(u,M("span",[h,document.createTextNode("x")])),u.firstChild.offsetHeight!=0&&(Mt=h.offsetWidth<=1&&h.offsetHeight>2&&!(c&&d<8))}var k=Mt?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return k.setAttribute("cm-text",""),k}var dn;function fn(u){if(dn!=null)return dn;var h=$(u,document.createTextNode("AخA")),k=V(h,0,1).getBoundingClientRect(),y=V(h,1,2).getBoundingClientRect();return O(u),!k||k.left==k.right?!1:dn=y.right-k.right<3}var mn="\n\nb".split(/\n/).length!=3?function(u){for(var h=0,k=[],y=u.length;h<=y;){var j=u.indexOf("\n",h);j==-1&&(j=u.length);var D=u.slice(h,u.charAt(j-1)=="\r"?j-1:j),B=D.indexOf("\r");B!=-1?(k.push(D.slice(0,B)),h+=B+1):(k.push(D),h=j+1)}return k}:function(u){return u.split(/\r\n?|\n/)},hn=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch(h){return!1}}:function(u){var h;try{h=u.ownerDocument.selection.createRange()}catch(k){}return!h||h.parentElement()!=u?!1:h.compareEndPoints("StartToEnd",h)!=0},nn=function(){var u=M("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),on=null;function Sn(u){if(on!=null)return on;var h=$(u,M("span","x")),k=h.getBoundingClientRect(),y=V(h,0,1).getBoundingClientRect();return on=Math.abs(k.left-y.left)>1}var pn={},rn={};function ct(u,h){arguments.length>2&&(h.dependencies=Array.prototype.slice.call(arguments,2)),pn[u]=h}function xe(u,h){rn[u]=h}function Ye(u){if(typeof u=="string"&&rn.hasOwnProperty(u))u=rn[u];else if(u&&typeof u.name=="string"&&rn.hasOwnProperty(u.name)){var h=rn[u.name];typeof h=="string"&&(h={name:h}),u=Ke(h,u),u.name=h.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return Ye("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return Ye("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function dt(u,h){h=Ye(h);var k=pn[h.name];if(!k)return dt(u,"text/plain");var y=k(u,h);if(mt.hasOwnProperty(h.name)){var j=mt[h.name];for(var D in j)j.hasOwnProperty(D)&&(y.hasOwnProperty(D)&&(y["_"+D]=y[D]),y[D]=j[D])}if(y.name=h.name,h.helperType&&(y.helperType=h.helperType),h.modeProps)for(var B in h.modeProps)y[B]=h.modeProps[B];return y}var mt={};function xt(u,h){var k=mt.hasOwnProperty(u)?mt[u]:mt[u]={};le(h,k)}function It(u,h){if(h===!0)return h;if(u.copyState)return u.copyState(h);var k={};for(var y in h){var j=h[y];j instanceof Array&&(j=j.concat([])),k[y]=j}return k}function At(u,h){for(var k;u.innerMode&&(k=u.innerMode(h),!(!k||k.mode==u));)h=k.state,u=k.mode;return k||{mode:u,state:h}}function Ht(u,h,k){return u.startState?u.startState(h,k):!0}var Bt=function(u,h,k){this.pos=this.start=0,this.string=u,this.tabSize=h||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=k};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.posh},Bt.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(u){var h=this.string.indexOf(u,this.pos);if(h>-1)return this.pos=h,!0},Bt.prototype.backUp=function(u){this.pos-=u},Bt.prototype.column=function(){return this.lastColumnPos0?null:(D&&h!==!1&&(this.pos+=D[0].length),D)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(u,h){this.lineStart+=u;try{return h()}finally{this.lineStart-=u}},Bt.prototype.lookAhead=function(u){var h=this.lineOracle;return h&&h.lookAhead(u)},Bt.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function tt(u,h){if(h-=u.first,h<0||h>=u.size)throw new Error("There is no line "+(h+u.first)+" in the document.");for(var k=u;!k.lines;)for(var y=0;;++y){var j=k.children[y],D=j.chunkSize();if(h=u.first&&hk?_e(k,tt(u,k).text.length):Yr(h,tt(u,h.line).text.length)}function Yr(u,h){var k=u.ch;return k==null||k>h?_e(u.line,h):k<0?_e(u.line,0):u}function Ai(u,h){for(var k=[],y=0;ythis.maxLookAhead&&(this.maxLookAhead=u),h},ms.prototype.baseToken=function(u){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=u;)this.baseTokenPos+=2;var h=this.baseTokens[this.baseTokenPos+1];return{type:h&&h.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-u}},ms.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ms.fromSaved=function(u,h,k){return h instanceof Po?new ms(u,It(u.mode,h.state),k,h.lookAhead):new ms(u,It(u.mode,h),k)},ms.prototype.save=function(u){var h=u!==!1?It(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Po(h,this.maxLookAhead):h};function ac(u,h,k,y){var j=[u.state.modeGen],D={};dc(u,h.text,u.doc.mode,k,function(ie,he){return j.push(ie,he)},D,y);for(var B=k.state,K=function(ie){k.baseTokens=j;var he=u.state.overlays[ie],Ce=1,ze=0;k.state=!0,dc(u,h.text,he.mode,k,function(Le,lt){for(var vt=Ce;zeLe&&j.splice(Ce,1,Le,j[Ce+1],Nt),Ce+=2,ze=Math.min(Le,Nt)}if(lt)if(he.opaque)j.splice(vt,Ce-vt,Le,"overlay "+lt),Ce=vt+2;else for(;vtu.options.maxHighlightLength&&It(u.doc.mode,y.state),D=ac(u,h,y);j&&(y.state=j),h.stateAfter=y.save(!j),h.styles=D.styles,D.classes?h.styleClasses=D.classes:h.styleClasses&&(h.styleClasses=null),k===u.doc.highlightFrontier&&(u.doc.modeFrontier=Math.max(u.doc.modeFrontier,++u.doc.highlightFrontier))}return h.styles}function ti(u,h,k){var y=u.doc,j=u.display;if(!y.mode.startState)return new ms(y,!0,h);var D=gu(u,h,k),B=D>y.first&&tt(y,D-1).stateAfter,K=B?ms.fromSaved(y,B,D):new ms(y,Ht(y.mode),D);return y.iter(D,h,function(Q){kl(u,Q.text,K);var ie=K.line;Q.stateAfter=ie==h-1||ie%5==0||ie>=j.viewFrom&&ieh.start)return D}throw new Error("Mode "+u.name+" failed to advance stream.")}var lc=function(u,h,k){this.start=u.start,this.end=u.pos,this.string=u.current(),this.type=h||null,this.state=k};function cc(u,h,k,y){var j=u.doc,D=j.mode,B;h=yn(j,h);var K=tt(j,h.line),Q=ti(u,h.line,k),ie=new Bt(K.text,u.options.tabSize,Q),he;for(y&&(he=[]);(y||ie.posu.options.maxHighlightLength?(K=!1,B&&kl(u,h,y,he.pos),he.pos=h.length,Ce=null):Ce=uc(Cl(k,he,y.state,ze),D),ze){var Le=ze[0].name;Le&&(Ce="m-"+(Ce?Le+" "+Ce:Le))}if(!K||ie!=Ce){for(;QB;--K){if(K<=D.first)return D.first;var Q=tt(D,K-1),ie=Q.stateAfter;if(ie&&(!k||K+(ie instanceof Po?ie.lookAhead:0)<=D.modeFrontier))return K;var he=se(Q.text,null,u.options.tabSize);(j==null||y>he)&&(j=K-1,y=he)}return j}function vu(u,h){if(u.modeFrontier=Math.min(u.modeFrontier,h),!(u.highlightFrontierk;y--){var j=tt(u,y).stateAfter;if(j&&(!(j instanceof Po)||y+j.lookAhead=h:D.to>h);(y||(y=[])).push(new Li(B,D.from,Q?null:D.to))}}return y}function Cu(u,h,k){var y;if(u)for(var j=0;j=h:D.to>h);if(K||D.from==h&&B.type=="bookmark"&&(!k||D.marker.insertLeft)){var Q=D.from==null||(B.inclusiveLeft?D.from<=h:D.from0&&K)for(var Jt=0;Jt0)){var he=[Q,1],Ce=He(ie.from,K.from),ze=He(ie.to,K.to);(Ce<0||!B.inclusiveLeft&&!Ce)&&he.push({from:ie.from,to:K.from}),(ze>0||!B.inclusiveRight&&!ze)&&he.push({from:K.to,to:ie.to}),j.splice.apply(j,he),Q+=he.length-3}}return j}function pc(u){var h=u.markedSpans;if(h){for(var k=0;kh)&&(!y||jl(y,D.marker)<0)&&(y=D.marker)}return y}function of(u,h,k,y,j){var D=tt(u,h),B=da&&D.markedSpans;if(B)for(var K=0;K=0&&Ce<=0||he<=0&&Ce>=0)&&(he<=0&&(Q.marker.inclusiveRight&&j.inclusiveLeft?He(ie.to,k)>=0:He(ie.to,k)>0)||he>=0&&(Q.marker.inclusiveRight&&j.inclusiveLeft?He(ie.from,y)<=0:He(ie.from,y)<0)))return!0}}}function Rs(u){for(var h;h=xc(u);)u=h.find(-1,!0).line;return u}function Eu(u){for(var h;h=yc(u);)u=h.find(1,!0).line;return u}function Nu(u){for(var h,k;h=yc(u);)u=h.find(1,!0).line,(k||(k=[])).push(u);return k}function El(u,h){var k=tt(u,h),y=Rs(k);return k==y?h:oe(y)}function bc(u,h){if(h>u.lastLine())return h;var k=tt(u,h),y;if(!Ta(u,k))return h;for(;y=yc(k);)k=y.find(1,!0).line;return oe(k)+1}function Ta(u,h){var k=da&&h.markedSpans;if(k){for(var y=void 0,j=0;jh.maxLineLength&&(h.maxLineLength=j,h.maxLine=y)})}var si=function(u,h,k){this.text=u,mc(this,h),this.height=k?k(this):1};si.prototype.lineNo=function(){return oe(this)},gt(si);function Ak(u,h,k,y){u.text=h,u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null),u.order!=null&&(u.order=null),pc(u),mc(u,k);var j=y?y(u):1;j!=u.height&&vn(u,j)}function xN(u){u.parent=null,pc(u)}var Ox={},yN={};function bN(u,h){if(!u||/^\s*$/.test(u))return null;var k=h.addModeClass?yN:Ox;return k[u]||(k[u]=u.replace(/\S+/g,"cm-$&"))}function wN(u,h){var k=W("span",null,null,p?"padding-right: .1px":null),y={pre:W("pre",[k],"CodeMirror-line"),content:k,col:0,pos:0,cm:u,trailingSpace:!1,splitSpaces:u.getOption("lineWrapping")};h.measure={};for(var j=0;j<=(h.rest?h.rest.length:0);j++){var D=j?h.rest[j-1]:h.line,B=void 0;y.pos=0,y.addToken=Oq,fn(u.display.measure)&&(B=Pt(D,u.doc.direction))&&(y.addToken=zq(y.addToken,B)),y.map=[];var K=h!=u.display.externalMeasured&&oe(D);Fq(D,y,oc(u,D,K)),D.styleClasses&&(D.styleClasses.bgClass&&(y.bgClass=F(D.styleClasses.bgClass,y.bgClass||"")),D.styleClasses.textClass&&(y.textClass=F(D.styleClasses.textClass,y.textClass||""))),y.map.length==0&&y.map.push(0,0,y.content.appendChild(an(u.display.measure))),j==0?(h.measure.map=y.map,h.measure.cache={}):((h.measure.maps||(h.measure.maps=[])).push(y.map),(h.measure.caches||(h.measure.caches=[])).push({}))}if(p){var Q=y.content.lastChild;(/\bcm-tab\b/.test(Q.className)||Q.querySelector&&Q.querySelector(".cm-tab"))&&(y.content.className="cm-tab-wrap-hack")}return Se(u,"renderLine",u,h.line,y.pre),y.pre.className&&(y.textClass=F(y.pre.className,y.textClass||"")),y}function Rq(u){var h=M("span","•","cm-invalidchar");return h.title="\\u"+u.charCodeAt(0).toString(16),h.setAttribute("aria-label",h.title),h}function Oq(u,h,k,y,j,D,B){if(h){var K=u.splitSpaces?$q(h,u.trailingSpace):h,Q=u.cm.state.specialChars,ie=!1,he;if(!Q.test(h))u.col+=h.length,he=document.createTextNode(K),u.map.push(u.pos,u.pos+h.length,he),c&&d<9&&(ie=!0),u.pos+=h.length;else{he=document.createDocumentFragment();for(var Ce=0;;){Q.lastIndex=Ce;var ze=Q.exec(h),Le=ze?ze.index-Ce:h.length-Ce;if(Le){var lt=document.createTextNode(K.slice(Ce,Ce+Le));c&&d<9?he.appendChild(M("span",[lt])):he.appendChild(lt),u.map.push(u.pos,u.pos+Le,lt),u.col+=Le,u.pos+=Le}if(!ze)break;Ce+=Le+1;var vt=void 0;if(ze[0]==" "){var Nt=u.cm.options.tabSize,zt=Nt-u.col%Nt;vt=he.appendChild(M("span",ot(zt),"cm-tab")),vt.setAttribute("role","presentation"),vt.setAttribute("cm-text"," "),u.col+=zt}else ze[0]=="\r"||ze[0]=="\n"?(vt=he.appendChild(M("span",ze[0]=="\r"?"␍":"␤","cm-invalidchar")),vt.setAttribute("cm-text",ze[0]),u.col+=1):(vt=u.cm.options.specialCharPlaceholder(ze[0]),vt.setAttribute("cm-text",ze[0]),c&&d<9?he.appendChild(M("span",[vt])):he.appendChild(vt),u.col+=1);u.map.push(u.pos,u.pos+1,vt),u.pos++}}if(u.trailingSpace=K.charCodeAt(h.length-1)==32,k||y||j||ie||D||B){var Yt=k||"";y&&(Yt+=y),j&&(Yt+=j);var Ft=M("span",[he],Yt,D);if(B)for(var Jt in B)B.hasOwnProperty(Jt)&&Jt!="style"&&Jt!="class"&&Ft.setAttribute(Jt,B[Jt]);return u.content.appendChild(Ft)}u.content.appendChild(he)}}function $q(u,h){if(u.length>1&&!/ /.test(u))return u;for(var k=h,y="",j=0;jie&&Ce.from<=ie));ze++);if(Ce.to>=he)return u(k,y,j,D,B,K,Q);u(k,y.slice(0,Ce.to-ie),j,D,null,K,Q),D=null,y=y.slice(Ce.to-ie),ie=Ce.to}}}function kN(u,h,k,y){var j=!y&&k.widgetNode;j&&u.map.push(u.pos,u.pos+h,j),!y&&u.cm.display.input.needsContentAttribute&&(j||(j=u.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",k.id)),j&&(u.cm.display.input.setUneditable(j),u.content.appendChild(j)),u.pos+=h,u.trailingSpace=!1}function Fq(u,h,k){var y=u.markedSpans,j=u.text,D=0;if(!y){for(var B=1;BQ||Rn.collapsed&&xn.to==Q&&xn.from==Q)){if(xn.to!=null&&xn.to!=Q&&Le>xn.to&&(Le=xn.to,vt=""),Rn.className&&(lt+=" "+Rn.className),Rn.css&&(ze=(ze?ze+";":"")+Rn.css),Rn.startStyle&&xn.from==Q&&(Nt+=" "+Rn.startStyle),Rn.endStyle&&xn.to==Le&&(Jt||(Jt=[])).push(Rn.endStyle,xn.to),Rn.title&&((Yt||(Yt={})).title=Rn.title),Rn.attributes)for(var yr in Rn.attributes)(Yt||(Yt={}))[yr]=Rn.attributes[yr];Rn.collapsed&&(!zt||jl(zt.marker,Rn)<0)&&(zt=xn)}else xn.from>Q&&Le>xn.from&&(Le=xn.from)}if(Jt)for(var ys=0;ys=K)break;for(var ro=Math.min(K,Le);;){if(he){var Ia=Q+he.length;if(!zt){var rs=Ia>ro?he.slice(0,ro-Q):he;h.addToken(h,rs,Ce?Ce+lt:lt,Nt,Q+rs.length==Le?vt:"",ze,Yt)}if(Ia>=ro){he=he.slice(ro-Q),Q=ro;break}Q=Ia,Nt=""}he=j.slice(D,D=k[ie++]),Ce=bN(k[ie++],h.cm.options)}}}function CN(u,h,k){this.line=h,this.rest=Nu(h),this.size=this.rest?oe(Ve(this.rest))-k+1:1,this.node=this.text=null,this.hidden=Ta(u,h)}function $x(u,h,k){for(var y=[],j,D=h;D2&&D.push((Q.bottom+ie.top)/2-k.top)}}D.push(k.bottom-k.top)}}function PN(u,h,k){if(u.line==h)return{map:u.measure.map,cache:u.measure.cache};if(u.rest){for(var y=0;yk)return{map:u.measure.maps[j],cache:u.measure.caches[j],before:!0}}}function Xq(u,h){h=Rs(h);var k=oe(h),y=u.display.externalMeasured=new CN(u.doc,h,k);y.lineN=k;var j=y.built=wN(u,y);return y.text=j.pre,$(u.display.lineMeasure,j.pre),y}function MN(u,h,k,y){return _l(u,Zh(u,h),k,y)}function $k(u,h){if(h>=u.display.viewFrom&&h=k.lineN&&hh)&&(D=Q-K,j=D-1,h>=Q&&(B="right")),j!=null){if(y=u[ie+2],K==Q&&k==(y.insertLeft?"left":"right")&&(B=k),k=="left"&&j==0)for(;ie&&u[ie-2]==u[ie-3]&&u[ie-1].insertLeft;)y=u[(ie-=3)+2],B="left";if(k=="right"&&j==Q-K)for(;ie=0&&(k=u[j]).left==k.right;j--);return k}function Jq(u,h,k,y){var j=IN(h.map,k,y),D=j.node,B=j.start,K=j.end,Q=j.collapse,ie;if(D.nodeType==3){for(var he=0;he<4;he++){for(;B&&Qe(h.line.text.charAt(j.coverStart+B));)--B;for(;j.coverStart+K0&&(Q=y="right");var Ce;u.options.lineWrapping&&(Ce=D.getClientRects()).length>1?ie=Ce[y=="right"?Ce.length-1:0]:ie=D.getBoundingClientRect()}if(c&&d<9&&!B&&(!ie||!ie.left&&!ie.right)){var ze=D.parentNode.getClientRects()[0];ze?ie={left:ze.left,right:ze.left+Qh(u.display),top:ze.top,bottom:ze.bottom}:ie=DN}for(var Le=ie.top-h.rect.top,lt=ie.bottom-h.rect.top,vt=(Le+lt)/2,Nt=h.view.measure.heights,zt=0;zt=y.text.length?(Q=y.text.length,ie="before"):Q<=0&&(Q=0,ie="after"),!K)return B(ie=="before"?Q-1:Q,ie=="before");function he(lt,vt,Nt){var zt=K[vt],Yt=zt.level==1;return B(Nt?lt-1:lt,Yt!=Nt)}var Ce=$t(K,Q,ie),ze=Xt,Le=he(Q,Ce,ie=="before");return ze!=null&&(Le.other=he(Q,ze,ie!="before")),Le}function zN(u,h){var k=0;h=yn(u.doc,h),u.options.lineWrapping||(k=Qh(u.display)*h.ch);var y=tt(u.doc,h.line),j=Pa(y)+zx(u.display);return{left:k,right:k,top:j,bottom:j+y.height}}function Fk(u,h,k,y,j){var D=_e(u,h,k);return D.xRel=j,y&&(D.outside=y),D}function Hk(u,h,k){var y=u.doc;if(k+=u.display.viewOffset,k<0)return Fk(y.first,0,null,-1,-1);var j=fe(y,k),D=y.first+y.size-1;if(j>D)return Fk(y.first+y.size-1,tt(y,D).text.length,null,1,1);h<0&&(h=0);for(var B=tt(y,j);;){var K=tK(u,B,j,h,k),Q=ju(B,K.ch+(K.xRel>0||K.outside>0?1:0));if(!Q)return K;var ie=Q.find(1);if(ie.line==j)return ie;B=tt(y,j=ie.line)}}function FN(u,h,k,y){y-=zk(h);var j=h.text.length,D=Ut(function(B){return _l(u,k,B-1).bottom<=y},j,0);return j=Ut(function(B){return _l(u,k,B).top>y},D,j),{begin:D,end:j}}function HN(u,h,k,y){k||(k=Zh(u,h));var j=Fx(u,h,_l(u,k,y),"line").top;return FN(u,h,k,j)}function Bk(u,h,k,y){return u.bottom<=k?!1:u.top>k?!0:(y?u.left:u.right)>h}function tK(u,h,k,y,j){j-=Pa(h);var D=Zh(u,h),B=zk(h),K=0,Q=h.text.length,ie=!0,he=Pt(h,u.doc.direction);if(he){var Ce=(u.options.lineWrapping?rK:nK)(u,h,k,D,he,y,j);ie=Ce.level!=1,K=ie?Ce.from:Ce.to-1,Q=ie?Ce.to:Ce.from-1}var ze=null,Le=null,lt=Ut(function(bn){var xn=_l(u,D,bn);return xn.top+=B,xn.bottom+=B,Bk(xn,y,j,!1)?(xn.top<=j&&xn.left<=y&&(ze=bn,Le=xn),!0):!1},K,Q),vt,Nt,zt=!1;if(Le){var Yt=y-Le.left=Jt.bottom?1:0}return lt=Lt(h.text,lt,1),Fk(k,lt,Nt,zt,y-vt)}function nK(u,h,k,y,j,D,B){var K=Ut(function(Ce){var ze=j[Ce],Le=ze.level!=1;return Bk(Oi(u,_e(k,Le?ze.to:ze.from,Le?"before":"after"),"line",h,y),D,B,!0)},0,j.length-1),Q=j[K];if(K>0){var ie=Q.level!=1,he=Oi(u,_e(k,ie?Q.from:Q.to,ie?"after":"before"),"line",h,y);Bk(he,D,B,!0)&&he.top>B&&(Q=j[K-1])}return Q}function rK(u,h,k,y,j,D,B){var K=FN(u,h,y,B),Q=K.begin,ie=K.end;/\s/.test(h.text.charAt(ie-1))&&ie--;for(var he=null,Ce=null,ze=0;ze=ie||Le.to<=Q)){var lt=Le.level!=1,vt=_l(u,y,lt?Math.min(ie,Le.to)-1:Math.max(Q,Le.from)).right,Nt=vtNt)&&(he=Le,Ce=Nt)}}return he||(he=j[j.length-1]),he.fromie&&(he={from:he.from,to:ie,level:he.level}),he}var cf;function Xh(u){if(u.cachedTextHeight!=null)return u.cachedTextHeight;if(cf==null){cf=M("pre",null,"CodeMirror-line-like");for(var h=0;h<49;++h)cf.appendChild(document.createTextNode("x")),cf.appendChild(M("br"));cf.appendChild(document.createTextNode("x"))}$(u.measure,cf);var k=cf.offsetHeight/50;return k>3&&(u.cachedTextHeight=k),O(u.measure),k||1}function Qh(u){if(u.cachedCharWidth!=null)return u.cachedCharWidth;var h=M("span","xxxxxxxxxx"),k=M("pre",[h],"CodeMirror-line-like");$(u.measure,k);var y=h.getBoundingClientRect(),j=(y.right-y.left)/10;return j>2&&(u.cachedCharWidth=j),j||10}function Uk(u){for(var h=u.display,k={},y={},j=h.gutters.clientLeft,D=h.gutters.firstChild,B=0;D;D=D.nextSibling,++B){var K=u.display.gutterSpecs[B].className;k[K]=D.offsetLeft+D.clientLeft+j,y[K]=D.clientWidth}return{fixedPos:Wk(h),gutterTotalWidth:h.gutters.offsetWidth,gutterLeft:k,gutterWidth:y,wrapperWidth:h.wrapper.clientWidth}}function Wk(u){return u.scroller.getBoundingClientRect().left-u.sizer.getBoundingClientRect().left}function BN(u){var h=Xh(u.display),k=u.options.lineWrapping,y=k&&Math.max(5,u.display.scroller.clientWidth/Qh(u.display)-3);return function(j){if(Ta(u.doc,j))return 0;var D=0;if(j.widgets)for(var B=0;B0&&(ie=tt(u.doc,Q.line).text).length==Q.ch){var he=se(ie,ie.length,u.options.tabSize)-ie.length;Q=_e(Q.line,Math.max(0,Math.round((D-TN(u.display).left)/Qh(u.display))-he))}return Q}function df(u,h){if(h>=u.display.viewTo||(h-=u.display.viewFrom,h<0))return null;for(var k=u.display.view,y=0;yh)&&(j.updateLineNumbers=h),u.curOp.viewChanged=!0,h>=j.viewTo)da&&El(u.doc,h)j.viewFrom?Pu(u):(j.viewFrom+=y,j.viewTo+=y);else if(h<=j.viewFrom&&k>=j.viewTo)Pu(u);else if(h<=j.viewFrom){var D=Bx(u,k,k+y,1);D?(j.view=j.view.slice(D.index),j.viewFrom=D.lineN,j.viewTo+=y):Pu(u)}else if(k>=j.viewTo){var B=Bx(u,h,h,-1);B?(j.view=j.view.slice(0,B.index),j.viewTo=B.lineN):Pu(u)}else{var K=Bx(u,h,h,-1),Q=Bx(u,k,k+y,1);K&&Q?(j.view=j.view.slice(0,K.index).concat($x(u,K.lineN,Q.lineN)).concat(j.view.slice(Q.index)),j.viewTo+=y):Pu(u)}var ie=j.externalMeasured;ie&&(k=j.lineN&&h=y.viewTo)){var D=y.view[df(u,h)];if(D.node!=null){var B=D.changes||(D.changes=[]);ce(B,k)==-1&&B.push(k)}}}function Pu(u){u.display.viewFrom=u.display.viewTo=u.doc.first,u.display.view=[],u.display.viewOffset=0}function Bx(u,h,k,y){var j=df(u,h),D,B=u.display.view;if(!da||k==u.doc.first+u.doc.size)return{index:j,lineN:k};for(var K=u.display.viewFrom,Q=0;Q0){if(j==B.length-1)return null;D=K+B[j].size-h,j++}else D=K-h;h+=D,k+=D}for(;El(u.doc,k)!=k;){if(j==(y<0?0:B.length-1))return null;k+=y*B[j-(y<0?1:0)].size,j+=y}return{index:j,lineN:k}}function sK(u,h,k){var y=u.display,j=y.view;j.length==0||h>=y.viewTo||k<=y.viewFrom?(y.view=$x(u,h,k),y.viewFrom=h):(y.viewFrom>h?y.view=$x(u,h,y.viewFrom).concat(y.view):y.viewFromk&&(y.view=y.view.slice(0,df(u,k)))),y.viewTo=k}function UN(u){for(var h=u.display.view,k=0,y=0;y=u.display.viewTo||Q.to().line0?B:u.defaultCharWidth())+"px"}if(y.other){var K=k.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));K.style.display="",K.style.left=y.other.left+"px",K.style.top=y.other.top+"px",K.style.height=(y.other.bottom-y.other.top)*.85+"px"}}function Ux(u,h){return u.top-h.top||u.left-h.left}function aK(u,h,k){var y=u.display,j=u.doc,D=document.createDocumentFragment(),B=TN(u.display),K=B.left,Q=Math.max(y.sizerWidth,lf(u)-y.sizer.offsetLeft)-B.right,ie=j.direction=="ltr";function he(Ft,Jt,bn,xn){Jt<0&&(Jt=0),Jt=Math.round(Jt),xn=Math.round(xn),D.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+Ft+"px;\n top: "+Jt+"px; width: "+(bn==null?Q-Ft:bn)+"px;\n height: "+(xn-Jt)+"px"))}function Ce(Ft,Jt,bn){var xn=tt(j,Ft),Rn=xn.text.length,yr,ys;function Lr(rs,Aa){return Hx(u,_e(Ft,rs),"div",xn,Aa)}function ro(rs,Aa,Os){var ds=HN(u,xn,null,rs),ss=Aa=="ltr"==(Os=="after")?"left":"right",Fr=Os=="after"?ds.begin:ds.end-(/\s/.test(xn.text.charAt(ds.end-1))?2:1);return Lr(Fr,ss)[ss]}var Ia=Pt(xn,j.direction);return wt(Ia,Jt||0,bn==null?Rn:bn,function(rs,Aa,Os,ds){var ss=Os=="ltr",Fr=Lr(rs,ss?"left":"right"),La=Lr(Aa-1,ss?"right":"left"),dp=Jt==null&&rs==0,Ru=bn==null&&Aa==Rn,ea=ds==0,Tl=!Ia||ds==Ia.length-1;if(La.top-Fr.top<=3){var bs=(ie?dp:Ru)&&ea,y3=(ie?Ru:dp)&&Tl,Sc=bs?K:(ss?Fr:La).left,gf=y3?Q:(ss?La:Fr).right;he(Sc,Fr.top,gf-Sc,Fr.bottom)}else{var vf,ha,fp,b3;ss?(vf=ie&&dp&&ea?K:Fr.left,ha=ie?Q:ro(rs,Os,"before"),fp=ie?K:ro(Aa,Os,"after"),b3=ie&&Ru&&Tl?Q:La.right):(vf=ie?ro(rs,Os,"before"):K,ha=!ie&&dp&&ea?Q:Fr.right,fp=!ie&&Ru&&Tl?K:La.left,b3=ie?ro(Aa,Os,"after"):Q),he(vf,Fr.top,ha-vf,Fr.bottom),Fr.bottom0?h.blinker=setInterval(function(){u.hasFocus()||Jh(u),h.cursorDiv.style.visibility=(k=!k)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(h.cursorDiv.style.visibility="hidden")}}function VN(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Yk(u))}function Gk(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Jh(u))},100)}function Yk(u,h){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(Se(u,"focus",u,h),u.state.focused=!0,H(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),p&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),Kk(u))}function Jh(u,h){u.state.delayingBlurEvent||(u.state.focused&&(Se(u,"blur",u,h),u.state.focused=!1,Y(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Wx(u){for(var h=u.display,k=h.lineDiv.offsetTop,y=Math.max(0,h.scroller.getBoundingClientRect().top),j=h.lineDiv.getBoundingClientRect().top,D=0,B=0;B.005||Le<-.005)&&(ju.display.sizerWidth){var vt=Math.ceil(he/Qh(u.display));vt>u.display.maxLineLength&&(u.display.maxLineLength=vt,u.display.maxLine=K.line,u.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(h.scroller.scrollTop+=D)}function qN(u){if(u.widgets)for(var h=0;h=B&&(D=fe(h,Pa(tt(h,Q))-u.wrapper.clientHeight),B=Q)}return{from:D,to:Math.max(B,D+1)}}function oK(u,h){if(!De(u,"scrollCursorIntoView")){var k=u.display,y=k.sizer.getBoundingClientRect(),j=null,D=k.wrapper.ownerDocument;if(h.top+y.top<0?j=!0:h.bottom+y.top>(D.defaultView.innerHeight||D.documentElement.clientHeight)&&(j=!1),j!=null&&!x){var B=M("div","​",null,"position: absolute;\n top: "+(h.top-k.viewOffset-zx(u.display))+"px;\n height: "+(h.bottom-h.top+Nl(u)+k.barHeight)+"px;\n left: "+h.left+"px; width: "+Math.max(2,h.right-h.left)+"px;");u.display.lineSpace.appendChild(B),B.scrollIntoView(j),u.display.lineSpace.removeChild(B)}}}function iK(u,h,k,y){y==null&&(y=0);var j;!u.options.lineWrapping&&h==k&&(k=h.sticky=="before"?_e(h.line,h.ch+1,"before"):h,h=h.ch?_e(h.line,h.sticky=="before"?h.ch-1:h.ch,"after"):h);for(var D=0;D<5;D++){var B=!1,K=Oi(u,h),Q=!k||k==h?K:Oi(u,k);j={left:Math.min(K.left,Q.left),top:Math.min(K.top,Q.top)-y,right:Math.max(K.left,Q.left),bottom:Math.max(K.bottom,Q.bottom)+y};var ie=Zk(u,j),he=u.doc.scrollTop,Ce=u.doc.scrollLeft;if(ie.scrollTop!=null&&(rg(u,ie.scrollTop),Math.abs(u.doc.scrollTop-he)>1&&(B=!0)),ie.scrollLeft!=null&&(ff(u,ie.scrollLeft),Math.abs(u.doc.scrollLeft-Ce)>1&&(B=!0)),!B)break}return j}function lK(u,h){var k=Zk(u,h);k.scrollTop!=null&&rg(u,k.scrollTop),k.scrollLeft!=null&&ff(u,k.scrollLeft)}function Zk(u,h){var k=u.display,y=Xh(u.display);h.top<0&&(h.top=0);var j=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:k.scroller.scrollTop,D=Ok(u),B={};h.bottom-h.top>D&&(h.bottom=h.top+D);var K=u.doc.height+Rk(k),Q=h.topK-y;if(h.topj+D){var he=Math.min(h.top,(ie?K:h.bottom)-D);he!=j&&(B.scrollTop=he)}var Ce=u.options.fixedGutter?0:k.gutters.offsetWidth,ze=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:k.scroller.scrollLeft-Ce,Le=lf(u)-k.gutters.offsetWidth,lt=h.right-h.left>Le;return lt&&(h.right=h.left+Le),h.left<10?B.scrollLeft=0:h.leftLe+ze-3&&(B.scrollLeft=h.right+(lt?0:10)-Le),B}function Xk(u,h){h!=null&&(qx(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+h)}function ep(u){qx(u);var h=u.getCursor();u.curOp.scrollToPos={from:h,to:h,margin:u.options.cursorScrollMargin}}function ng(u,h,k){(h!=null||k!=null)&&qx(u),h!=null&&(u.curOp.scrollLeft=h),k!=null&&(u.curOp.scrollTop=k)}function cK(u,h){qx(u),u.curOp.scrollToPos=h}function qx(u){var h=u.curOp.scrollToPos;if(h){u.curOp.scrollToPos=null;var k=zN(u,h.from),y=zN(u,h.to);KN(u,k,y,h.margin)}}function KN(u,h,k,y){var j=Zk(u,{left:Math.min(h.left,k.left),top:Math.min(h.top,k.top)-y,right:Math.max(h.right,k.right),bottom:Math.max(h.bottom,k.bottom)+y});ng(u,j.scrollLeft,j.scrollTop)}function rg(u,h){Math.abs(u.doc.scrollTop-h)<2||(s||Jk(u,{top:h}),GN(u,h,!0),s&&Jk(u),og(u,100))}function GN(u,h,k){h=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,h)),!(u.display.scroller.scrollTop==h&&!k)&&(u.doc.scrollTop=h,u.display.scrollbars.setScrollTop(h),u.display.scroller.scrollTop!=h&&(u.display.scroller.scrollTop=h))}function ff(u,h,k,y){h=Math.max(0,Math.min(h,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((k?h==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-h)<2)&&!y)&&(u.doc.scrollLeft=h,JN(u),u.display.scroller.scrollLeft!=h&&(u.display.scroller.scrollLeft=h),u.display.scrollbars.setScrollLeft(h))}function sg(u){var h=u.display,k=h.gutters.offsetWidth,y=Math.round(u.doc.height+Rk(u.display));return{clientHeight:h.scroller.clientHeight,viewHeight:h.wrapper.clientHeight,scrollWidth:h.scroller.scrollWidth,clientWidth:h.scroller.clientWidth,viewWidth:h.wrapper.clientWidth,barLeft:u.options.fixedGutter?k:0,docHeight:y,scrollHeight:y+Nl(u)+h.barHeight,nativeBarWidth:h.nativeBarWidth,gutterWidth:k}}var hf=function(u,h,k){this.cm=k;var y=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");y.tabIndex=j.tabIndex=-1,u(y),u(j),Je(y,"scroll",function(){y.clientHeight&&h(y.scrollTop,"vertical")}),Je(j,"scroll",function(){j.clientWidth&&h(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hf.prototype.update=function(u){var h=u.scrollWidth>u.clientWidth+1,k=u.scrollHeight>u.clientHeight+1,y=u.nativeBarWidth;if(k){this.vert.style.display="block",this.vert.style.bottom=h?y+"px":"0";var j=u.viewHeight-(h?y:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+j)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(h){this.horiz.style.display="block",this.horiz.style.right=k?y+"px":"0",this.horiz.style.left=u.barLeft+"px";var D=u.viewWidth-u.barLeft-(k?y:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+D)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(y==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:k?y:0,bottom:h?y:0}},hf.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hf.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hf.prototype.zeroWidthHack=function(){var u=_&&!w?"12px":"18px";this.horiz.style.height=this.vert.style.width=u,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new de,this.disableVert=new de},hf.prototype.enableZeroWidthBar=function(u,h,k){u.style.visibility="";function y(){var j=u.getBoundingClientRect(),D=k=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);D!=u?u.style.visibility="hidden":h.set(1e3,y)}h.set(1e3,y)},hf.prototype.clear=function(){var u=this.horiz.parentNode;u.removeChild(this.horiz),u.removeChild(this.vert)};var ag=function(){};ag.prototype.update=function(){return{bottom:0,right:0}},ag.prototype.setScrollLeft=function(){},ag.prototype.setScrollTop=function(){},ag.prototype.clear=function(){};function tp(u,h){h||(h=sg(u));var k=u.display.barWidth,y=u.display.barHeight;YN(u,h);for(var j=0;j<4&&k!=u.display.barWidth||y!=u.display.barHeight;j++)k!=u.display.barWidth&&u.options.lineWrapping&&Wx(u),YN(u,sg(u)),k=u.display.barWidth,y=u.display.barHeight}function YN(u,h){var k=u.display,y=k.scrollbars.update(h);k.sizer.style.paddingRight=(k.barWidth=y.right)+"px",k.sizer.style.paddingBottom=(k.barHeight=y.bottom)+"px",k.heightForcer.style.borderBottom=y.bottom+"px solid transparent",y.right&&y.bottom?(k.scrollbarFiller.style.display="block",k.scrollbarFiller.style.height=y.bottom+"px",k.scrollbarFiller.style.width=y.right+"px"):k.scrollbarFiller.style.display="",y.bottom&&u.options.coverGutterNextToScrollbar&&u.options.fixedGutter?(k.gutterFiller.style.display="block",k.gutterFiller.style.height=y.bottom+"px",k.gutterFiller.style.width=h.gutterWidth+"px"):k.gutterFiller.style.display=""}var ZN={native:hf,null:ag};function XN(u){u.display.scrollbars&&(u.display.scrollbars.clear(),u.display.scrollbars.addClass&&Y(u.display.wrapper,u.display.scrollbars.addClass)),u.display.scrollbars=new ZN[u.options.scrollbarStyle](function(h){u.display.wrapper.insertBefore(h,u.display.scrollbarFiller),Je(h,"mousedown",function(){u.state.focused&&setTimeout(function(){return u.display.input.focus()},0)}),h.setAttribute("cm-not-content","true")},function(h,k){k=="horizontal"?ff(u,h):rg(u,h)},u),u.display.scrollbars.addClass&&H(u.display.wrapper,u.display.scrollbars.addClass)}var uK=0;function pf(u){u.curOp={cm:u,viewChanged:!1,startHeight:u.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++uK,markArrays:null},Hq(u.curOp)}function mf(u){var h=u.curOp;h&&Uq(h,function(k){for(var y=0;y=k.viewTo)||k.maxLineChanged&&h.options.lineWrapping,u.update=u.mustUpdate&&new Kx(h,u.mustUpdate&&{top:u.scrollTop,ensure:u.scrollToPos},u.forceUpdate)}function hK(u){u.updatedDisplay=u.mustUpdate&&Qk(u.cm,u.update)}function pK(u){var h=u.cm,k=h.display;u.updatedDisplay&&Wx(h),u.barMeasure=sg(h),k.maxLineChanged&&!h.options.lineWrapping&&(u.adjustWidthTo=MN(h,k.maxLine,k.maxLine.text.length).left+3,h.display.sizerWidth=u.adjustWidthTo,u.barMeasure.scrollWidth=Math.max(k.scroller.clientWidth,k.sizer.offsetLeft+u.adjustWidthTo+Nl(h)+h.display.barWidth),u.maxScrollLeft=Math.max(0,k.sizer.offsetLeft+u.adjustWidthTo-lf(h))),(u.updatedDisplay||u.selectionChanged)&&(u.preparedSelection=k.input.prepareSelection())}function mK(u){var h=u.cm;u.adjustWidthTo!=null&&(h.display.sizer.style.minWidth=u.adjustWidthTo+"px",u.maxScrollLeft=u.display.viewTo)){var k=+new Date+u.options.workTime,y=ti(u,h.highlightFrontier),j=[];h.iter(y.line,Math.min(h.first+h.size,u.display.viewTo+500),function(D){if(y.line>=u.display.viewFrom){var B=D.styles,K=D.text.length>u.options.maxHighlightLength?It(h.mode,y.state):null,Q=ac(u,D,y,!0);K&&(y.state=K),D.styles=Q.styles;var ie=D.styleClasses,he=Q.classes;he?D.styleClasses=he:ie&&(D.styleClasses=null);for(var Ce=!B||B.length!=D.styles.length||ie!=he&&(!ie||!he||ie.bgClass!=he.bgClass||ie.textClass!=he.textClass),ze=0;!Ce&&zek)return og(u,u.options.workDelay),!0}),h.highlightFrontier=y.line,h.modeFrontier=Math.max(h.modeFrontier,y.line),j.length&&no(u,function(){for(var D=0;D=k.viewFrom&&h.visible.to<=k.viewTo&&(k.updateLineNumbers==null||k.updateLineNumbers>=k.viewTo)&&k.renderedView==k.view&&UN(u)==0)return!1;e9(u)&&(Pu(u),h.dims=Uk(u));var j=y.first+y.size,D=Math.max(h.visible.from-u.options.viewportMargin,y.first),B=Math.min(j,h.visible.to+u.options.viewportMargin);k.viewFromB&&k.viewTo-B<20&&(B=Math.min(j,k.viewTo)),da&&(D=El(u.doc,D),B=bc(u.doc,B));var K=D!=k.viewFrom||B!=k.viewTo||k.lastWrapHeight!=h.wrapperHeight||k.lastWrapWidth!=h.wrapperWidth;sK(u,D,B),k.viewOffset=Pa(tt(u.doc,k.viewFrom)),u.display.mover.style.top=k.viewOffset+"px";var Q=UN(u);if(!K&&Q==0&&!h.force&&k.renderedView==k.view&&(k.updateLineNumbers==null||k.updateLineNumbers>=k.viewTo))return!1;var ie=yK(u);return Q>4&&(k.lineDiv.style.display="none"),wK(u,k.updateLineNumbers,h.dims),Q>4&&(k.lineDiv.style.display=""),k.renderedView=k.view,bK(ie),O(k.cursorDiv),O(k.selectionDiv),k.gutters.style.height=k.sizer.style.minHeight=0,K&&(k.lastWrapHeight=h.wrapperHeight,k.lastWrapWidth=h.wrapperWidth,og(u,400)),k.updateLineNumbers=null,!0}function QN(u,h){for(var k=h.viewport,y=!0;;y=!1){if(!y||!u.options.lineWrapping||h.oldDisplayWidth==lf(u)){if(k&&k.top!=null&&(k={top:Math.min(u.doc.height+Rk(u.display)-Ok(u),k.top)}),h.visible=Vx(u.display,u.doc,k),h.visible.from>=u.display.viewFrom&&h.visible.to<=u.display.viewTo)break}else y&&(h.visible=Vx(u.display,u.doc,k));if(!Qk(u,h))break;Wx(u);var j=sg(u);tg(u),tp(u,j),t3(u,j),h.force=!1}h.signal(u,"update",u),(u.display.viewFrom!=u.display.reportedViewFrom||u.display.viewTo!=u.display.reportedViewTo)&&(h.signal(u,"viewportChange",u,u.display.viewFrom,u.display.viewTo),u.display.reportedViewFrom=u.display.viewFrom,u.display.reportedViewTo=u.display.viewTo)}function Jk(u,h){var k=new Kx(u,h);if(Qk(u,k)){Wx(u),QN(u,k);var y=sg(u);tg(u),tp(u,y),t3(u,y),k.finish()}}function wK(u,h,k){var y=u.display,j=u.options.lineNumbers,D=y.lineDiv,B=D.firstChild;function K(lt){var vt=lt.nextSibling;return p&&_&&u.display.currentWheelTarget==lt?lt.style.display="none":lt.parentNode.removeChild(lt),vt}for(var Q=y.view,ie=y.viewFrom,he=0;he-1&&(Le=!1),SN(u,Ce,ie,k)),Le&&(O(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(Me(u.options,ie)))),B=Ce.node.nextSibling}ie+=Ce.size}for(;B;)B=K(B)}function e3(u){var h=u.gutters.offsetWidth;u.sizer.style.marginLeft=h+"px",gs(u,"gutterChanged",u)}function t3(u,h){u.display.sizer.style.minHeight=h.docHeight+"px",u.display.heightForcer.style.top=h.docHeight+"px",u.display.gutters.style.height=h.docHeight+u.display.barHeight+Nl(u)+"px"}function JN(u){var h=u.display,k=h.view;if(!(!h.alignWidgets&&(!h.gutters.firstChild||!u.options.fixedGutter))){for(var y=Wk(h)-h.scroller.scrollLeft+u.doc.scrollLeft,j=h.gutters.offsetWidth,D=y+"px",B=0;B=105&&(j.wrapper.style.clipPath="inset(0px)"),j.wrapper.setAttribute("translate","no"),c&&d<8&&(j.gutters.style.zIndex=-1,j.scroller.style.paddingRight=0),!p&&!(s&&N)&&(j.scroller.draggable=!0),u&&(u.appendChild?u.appendChild(j.wrapper):u(j.wrapper)),j.viewFrom=j.viewTo=h.first,j.reportedViewFrom=j.reportedViewTo=h.first,j.view=[],j.renderedView=null,j.externalMeasured=null,j.viewOffset=0,j.lastWrapHeight=j.lastWrapWidth=0,j.updateLineNumbers=null,j.nativeBarWidth=j.barHeight=j.barWidth=0,j.scrollbarsClipped=!1,j.lineNumWidth=j.lineNumInnerWidth=j.lineNumChars=null,j.alignWidgets=!1,j.cachedCharWidth=j.cachedTextHeight=j.cachedPaddingH=null,j.maxLine=null,j.maxLineLength=0,j.maxLineChanged=!1,j.wheelDX=j.wheelDY=j.wheelStartX=j.wheelStartY=null,j.shift=!1,j.selForContextMenu=null,j.activeTouch=null,j.gutterSpecs=n3(y.gutters,y.lineNumbers),t9(j),k.init(j)}var Gx=0,kc=null;c?kc=-.53:s?kc=15:m?kc=-.7:g&&(kc=-1/3);function n9(u){var h=u.wheelDeltaX,k=u.wheelDeltaY;return h==null&&u.detail&&u.axis==u.HORIZONTAL_AXIS&&(h=u.detail),k==null&&u.detail&&u.axis==u.VERTICAL_AXIS?k=u.detail:k==null&&(k=u.wheelDelta),{x:h,y:k}}function CK(u){var h=n9(u);return h.x*=kc,h.y*=kc,h}function r9(u,h){m&&b==102&&(u.display.chromeScrollHack==null?u.display.sizer.style.pointerEvents="none":clearTimeout(u.display.chromeScrollHack),u.display.chromeScrollHack=setTimeout(function(){u.display.chromeScrollHack=null,u.display.sizer.style.pointerEvents=""},100));var k=n9(h),y=k.x,j=k.y,D=kc;h.deltaMode===0&&(y=h.deltaX,j=h.deltaY,D=1);var B=u.display,K=B.scroller,Q=K.scrollWidth>K.clientWidth,ie=K.scrollHeight>K.clientHeight;if(y&&Q||j&&ie){if(j&&_&&p){e:for(var he=h.target,Ce=B.view;he!=K;he=he.parentNode)for(var ze=0;ze=0&&He(u,y.to())<=0)return k}return-1};var nr=function(u,h){this.anchor=u,this.head=h};nr.prototype.from=function(){return Mn(this.anchor,this.head)},nr.prototype.to=function(){return zn(this.anchor,this.head)},nr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $i(u,h,k){var y=u&&u.options.selectionsMayTouch,j=h[k];h.sort(function(ze,Le){return He(ze.from(),Le.from())}),k=ce(h,j);for(var D=1;D0:Q>=0){var ie=Mn(K.from(),B.from()),he=zn(K.to(),B.to()),Ce=K.empty()?B.from()==B.head:K.from()==K.head;D<=k&&--k,h.splice(--D,2,new nr(Ce?he:ie,Ce?ie:he))}}return new Mo(h,k)}function Mu(u,h){return new Mo([new nr(u,h||u)],0)}function Du(u){return u.text?_e(u.from.line+u.text.length-1,Ve(u.text).length+(u.text.length==1?u.from.ch:0)):u.to}function s9(u,h){if(He(u,h.from)<0)return u;if(He(u,h.to)<=0)return Du(h);var k=u.line+h.text.length-(h.to.line-h.from.line)-1,y=u.ch;return u.line==h.to.line&&(y+=Du(h).ch-h.to.ch),_e(k,y)}function r3(u,h){for(var k=[],y=0;y1&&u.remove(K.line+1,lt-1),u.insert(K.line+1,zt)}gs(u,"change",u,h)}function Iu(u,h,k){function y(j,D,B){if(j.linked)for(var K=0;K1&&!u.done[u.done.length-2].ranges)return u.done.pop(),Ve(u.done)}function u9(u,h,k,y){var j=u.history;j.undone.length=0;var D=+new Date,B,K;if((j.lastOp==y||j.lastOrigin==h.origin&&h.origin&&(h.origin.charAt(0)=="+"&&j.lastModTime>D-(u.cm?u.cm.options.historyEventDelay:500)||h.origin.charAt(0)=="*"))&&(B=EK(j,j.lastOp==y)))K=Ve(B.changes),He(h.from,h.to)==0&&He(h.from,K.to)==0?K.to=Du(h):B.changes.push(o3(u,h));else{var Q=Ve(j.done);for((!Q||!Q.ranges)&&Zx(u.sel,j.done),B={changes:[o3(u,h)],generation:j.generation},j.done.push(B);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(k),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=D,j.lastOp=j.lastSelOp=y,j.lastOrigin=j.lastSelOrigin=h.origin,K||Se(u,"historyAdded")}function NK(u,h,k,y){var j=h.charAt(0);return j=="*"||j=="+"&&k.ranges.length==y.ranges.length&&k.somethingSelected()==y.somethingSelected()&&new Date-u.history.lastSelTime<=(u.cm?u.cm.options.historyEventDelay:500)}function _K(u,h,k,y){var j=u.history,D=y&&y.origin;k==j.lastSelOp||D&&j.lastSelOrigin==D&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==D||NK(u,D,Ve(j.done),h))?j.done[j.done.length-1]=h:Zx(h,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=D,j.lastSelOp=k,y&&y.clearRedo!==!1&&c9(j.undone)}function Zx(u,h){var k=Ve(h);k&&k.ranges&&k.equals(u)||h.push(u)}function d9(u,h,k,y){var j=h["spans_"+u.id],D=0;u.iter(Math.max(u.first,k),Math.min(u.first+u.size,y),function(B){B.markedSpans&&((j||(j=h["spans_"+u.id]={}))[D]=B.markedSpans),++D})}function TK(u){if(!u)return null;for(var h,k=0;k-1&&(Ve(K)[Ce]=ie[Ce],delete ie[Ce])}}return y}function i3(u,h,k,y){if(y){var j=u.anchor;if(k){var D=He(h,j)<0;D!=He(k,j)<0?(j=h,h=k):D!=He(h,k)<0&&(h=k)}return new nr(j,h)}else return new nr(k||h,h)}function Xx(u,h,k,y,j){j==null&&(j=u.cm&&(u.cm.display.shift||u.extend)),Js(u,new Mo([i3(u.sel.primary(),h,k,j)],0),y)}function h9(u,h,k){for(var y=[],j=u.cm&&(u.cm.display.shift||u.extend),D=0;D=h.ch:K.to>h.ch))){if(j&&(Se(Q,"beforeCursorEnter"),Q.explicitlyCleared))if(D.markedSpans){--B;continue}else break;if(!Q.atomic)continue;if(k){var Ce=Q.find(y<0?1:-1),ze=void 0;if((y<0?he:ie)&&(Ce=y9(u,Ce,-y,Ce&&Ce.line==h.line?D:null)),Ce&&Ce.line==h.line&&(ze=He(Ce,k))&&(y<0?ze<0:ze>0))return rp(u,Ce,h,y,j)}var Le=Q.find(y<0?-1:1);return(y<0?ie:he)&&(Le=y9(u,Le,y,Le.line==h.line?D:null)),Le?rp(u,Le,h,y,j):null}}return h}function Jx(u,h,k,y,j){var D=y||1,B=rp(u,h,k,D,j)||!j&&rp(u,h,k,D,!0)||rp(u,h,k,-D,j)||!j&&rp(u,h,k,-D,!0);return B||(u.cantEdit=!0,_e(u.first,0))}function y9(u,h,k,y){return k<0&&h.ch==0?h.line>u.first?yn(u,_e(h.line-1)):null:k>0&&h.ch==(y||tt(u,h.line)).text.length?h.line=0;--j)k9(u,{from:y[j].from,to:y[j].to,text:j?[""]:h.text,origin:h.origin});else k9(u,h)}}function k9(u,h){if(!(h.text.length==1&&h.text[0]==""&&He(h.from,h.to)==0)){var k=r3(u,h);u9(u,h,k,u.cm?u.cm.curOp.id:NaN),cg(u,h,k,Sl(u,h));var y=[];Iu(u,function(j,D){!D&&ce(y,j.history)==-1&&(E9(j.history,h),y.push(j.history)),cg(j,h,null,Sl(j,h))})}}function ey(u,h,k){var y=u.cm&&u.cm.state.suppressEdits;if(!(y&&!k)){for(var j=u.history,D,B=u.sel,K=h=="undo"?j.done:j.undone,Q=h=="undo"?j.undone:j.done,ie=0;ie=0;--Le){var lt=ze(Le);if(lt)return lt.v}}}}function C9(u,h){if(h!=0&&(u.first+=h,u.sel=new Mo(Ge(u.sel.ranges,function(j){return new nr(_e(j.anchor.line+h,j.anchor.ch),_e(j.head.line+h,j.head.ch))}),u.sel.primIndex),u.cm)){Ma(u.cm,u.first,u.first-h,h);for(var k=u.cm.display,y=k.viewFrom;yu.lastLine())){if(h.from.lineD&&(h={from:h.from,to:_e(D,tt(u,D).text.length),text:[h.text[0]],origin:h.origin}),h.removed=Kt(u,h.from,h.to),k||(k=r3(u,h)),u.cm?DK(u.cm,h,y):a3(u,h,y),Qx(u,k,me),u.cantEdit&&Jx(u,_e(u.firstLine(),0))&&(u.cantEdit=!1)}}function DK(u,h,k){var y=u.doc,j=u.display,D=h.from,B=h.to,K=!1,Q=D.line;u.options.lineWrapping||(Q=oe(Rs(tt(y,D.line))),y.iter(Q,B.line+1,function(Le){if(Le==j.maxLine)return K=!0,!0})),y.sel.contains(h.from,h.to)>-1&&nt(u),a3(y,h,k,BN(u)),u.options.lineWrapping||(y.iter(Q,D.line+h.text.length,function(Le){var lt=ri(Le);lt>j.maxLineLength&&(j.maxLine=Le,j.maxLineLength=lt,j.maxLineChanged=!0,K=!1)}),K&&(u.curOp.updateMaxLine=!0)),vu(y,D.line),og(u,400);var ie=h.text.length-(B.line-D.line)-1;h.full?Ma(u):D.line==B.line&&h.text.length==1&&!o9(u.doc,h)?Tu(u,D.line,"text"):Ma(u,D.line,B.line+1,ie);var he=Pe(u,"changes"),Ce=Pe(u,"change");if(Ce||he){var ze={from:D,to:B,text:h.text,removed:h.removed,origin:h.origin};Ce&&gs(u,"change",u,ze),he&&(u.curOp.changeObjs||(u.curOp.changeObjs=[])).push(ze)}u.display.selForContextMenu=null}function ap(u,h,k,y,j){var D;y||(y=k),He(y,k)<0&&(D=[y,k],k=D[0],y=D[1]),typeof h=="string"&&(h=u.splitLines(h)),sp(u,{from:k,to:y,text:h,origin:j})}function S9(u,h,k,y){k1||!(this.children[0]instanceof dg))){var K=[];this.collapse(K),this.children=[new dg(K)],this.children[0].parent=this}},collapse:function(u){for(var h=0;h50){for(var B=j.lines.length%25+25,K=B;K10);u.parent.maybeSpill()}},iterN:function(u,h,k){for(var y=0;yu.display.maxLineLength&&(u.display.maxLine=ie,u.display.maxLineLength=he,u.display.maxLineChanged=!0)}y!=null&&u&&this.collapsed&&Ma(u,y,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,u&&v9(u.doc)),u&&gs(u,"markerCleared",u,this,y,j),h&&mf(u),this.parent&&this.parent.clear()}},Au.prototype.find=function(u,h){u==null&&this.type=="bookmark"&&(u=1);for(var k,y,j=0;j0||B==0&&D.clearWhenEmpty!==!1)return D;if(D.replacedWith&&(D.collapsed=!0,D.widgetNode=W("span",[D.replacedWith],"CodeMirror-widget"),y.handleMouseEvents||D.widgetNode.setAttribute("cm-ignore-events","true"),y.insertLeft&&(D.widgetNode.insertLeft=!0)),D.collapsed){if(of(u,h.line,h,k,D)||h.line!=k.line&&of(u,k.line,h,k,D))throw new Error("Inserting collapsed marker partially overlapping an existing one");yu()}D.addToHistory&&u9(u,{from:h,to:k,origin:"markText"},u.sel,NaN);var K=h.line,Q=u.cm,ie;if(u.iter(K,k.line+1,function(Ce){Q&&D.collapsed&&!Q.options.lineWrapping&&Rs(Ce)==Q.display.maxLine&&(ie=!0),D.collapsed&&K!=h.line&&vn(Ce,0),wu(Ce,new Li(D,K==h.line?h.ch:null,K==k.line?k.ch:null),u.cm&&u.cm.curOp),++K}),D.collapsed&&u.iter(h.line,k.line+1,function(Ce){Ta(u,Ce)&&vn(Ce,0)}),D.clearOnEnter&&Je(D,"beforeCursorEnter",function(){return D.clear()}),D.readOnly&&(xu(),(u.history.done.length||u.history.undone.length)&&u.clearHistory()),D.collapsed&&(D.id=++_9,D.atomic=!0),Q){if(ie&&(Q.curOp.updateMaxLine=!0),D.collapsed)Ma(Q,h.line,k.line+1);else if(D.className||D.startStyle||D.endStyle||D.css||D.attributes||D.title)for(var he=h.line;he<=k.line;he++)Tu(Q,he,"text");D.atomic&&v9(Q.doc),gs(Q,"markerAdded",Q,D)}return D}var pg=function(u,h){this.markers=u,this.primary=h;for(var k=0;k=0;Q--)sp(this,y[Q]);K?m9(this,K):this.cm&&ep(this.cm)}),undo:xs(function(){ey(this,"undo")}),redo:xs(function(){ey(this,"redo")}),undoSelection:xs(function(){ey(this,"undo",!0)}),redoSelection:xs(function(){ey(this,"redo",!0)}),setExtending:function(u){this.extend=u},getExtending:function(){return this.extend},historySize:function(){for(var u=this.history,h=0,k=0,y=0;y=u.ch)&&h.push(j.marker.parent||j.marker)}return h},findMarks:function(u,h,k){u=yn(this,u),h=yn(this,h);var y=[],j=u.line;return this.iter(u.line,h.line+1,function(D){var B=D.markedSpans;if(B)for(var K=0;K=Q.to||Q.from==null&&j!=u.line||Q.from!=null&&j==h.line&&Q.from>=h.ch)&&(!k||k(Q.marker))&&y.push(Q.marker.parent||Q.marker)}++j}),y},getAllMarks:function(){var u=[];return this.iter(function(h){var k=h.markedSpans;if(k)for(var y=0;yu)return h=u,!0;u-=D,++k}),yn(this,_e(k,h))},indexFromPos:function(u){u=yn(this,u);var h=u.ch;if(u.lineh&&(h=u.from),u.to!=null&&u.to-1){h.state.draggingText(u),setTimeout(function(){return h.display.input.focus()},20);return}try{var he=u.dataTransfer.getData("Text");if(he){var Ce;if(h.state.draggingText&&!h.state.draggingText.copy&&(Ce=h.listSelections()),Qx(h.doc,Mu(k,k)),Ce)for(var ze=0;ze=0;K--)ap(u.doc,"",y[K].from,y[K].to,"+delete");ep(u)})}function c3(u,h,k){var y=Lt(u.text,h+k,k);return y<0||y>u.text.length?null:y}function u3(u,h,k){var y=c3(u,h.ch,k);return y==null?null:new _e(h.line,y,k<0?"after":"before")}function d3(u,h,k,y,j){if(u){h.doc.direction=="rtl"&&(j=-j);var D=Pt(k,h.doc.direction);if(D){var B=j<0?Ve(D):D[0],K=j<0==(B.level==1),Q=K?"after":"before",ie;if(B.level>0||h.doc.direction=="rtl"){var he=Zh(h,k);ie=j<0?k.text.length-1:0;var Ce=_l(h,he,ie).top;ie=Ut(function(ze){return _l(h,he,ze).top==Ce},j<0==(B.level==1)?B.from:B.to-1,ie),Q=="before"&&(ie=c3(k,ie,1))}else ie=j<0?B.to:B.from;return new _e(y,ie,Q)}}return new _e(y,j<0?k.text.length:0,j<0?"before":"after")}function qK(u,h,k,y){var j=Pt(h,u.doc.direction);if(!j)return u3(h,k,y);k.ch>=h.text.length?(k.ch=h.text.length,k.sticky="before"):k.ch<=0&&(k.ch=0,k.sticky="after");var D=$t(j,k.ch,k.sticky),B=j[D];if(u.doc.direction=="ltr"&&B.level%2==0&&(y>0?B.to>k.ch:B.from=B.from&&ze>=he.begin)){var Le=Ce?"before":"after";return new _e(k.line,ze,Le)}}var lt=function(zt,Yt,Ft){for(var Jt=function(yr,ys){return ys?new _e(k.line,K(yr,1),"before"):new _e(k.line,yr,"after")};zt>=0&&zt0==(bn.level!=1),Rn=xn?Ft.begin:K(Ft.end,-1);if(bn.from<=Rn&&Rn0?he.end:K(he.begin,-1);return Nt!=null&&!(y>0&&Nt==h.text.length)&&(vt=lt(y>0?0:j.length-1,y,ie(Nt)),vt)?vt:null}var vg={selectAll:b9,singleSelection:function(u){return u.setSelection(u.getCursor("anchor"),u.getCursor("head"),me)},killLine:function(u){return lp(u,function(h){if(h.empty()){var k=tt(u.doc,h.head.line).text.length;return h.head.ch==k&&h.head.line0)j=new _e(j.line,j.ch+1),u.replaceRange(D.charAt(j.ch-1)+D.charAt(j.ch-2),_e(j.line,j.ch-2),j,"+transpose");else if(j.line>u.doc.first){var B=tt(u.doc,j.line-1).text;B&&(j=new _e(j.line,1),u.replaceRange(D.charAt(0)+u.doc.lineSeparator()+B.charAt(B.length-1),_e(j.line-1,B.length-1),j,"+transpose"))}}k.push(new nr(j,j))}u.setSelections(k)})},newlineAndIndent:function(u){return no(u,function(){for(var h=u.listSelections(),k=h.length-1;k>=0;k--)u.replaceRange(u.doc.lineSeparator(),h[k].anchor,h[k].head,"+input");h=u.listSelections();for(var y=0;yu&&He(h,this.pos)==0&&k==this.button};var yg,bg;function JK(u,h){var k=+new Date;return bg&&bg.compare(k,u,h)?(yg=bg=null,"triple"):yg&&yg.compare(k,u,h)?(bg=new h3(k,u,h),yg=null,"double"):(yg=new h3(k,u,h),bg=null,"single")}function W9(u){var h=this,k=h.display;if(!(De(h,u)||k.activeTouch&&k.input.supportsTouch())){if(k.input.ensurePolled(),k.shift=u.shiftKey,wc(k,u)){p||(k.scroller.draggable=!1,setTimeout(function(){return k.scroller.draggable=!0},100));return}if(!p3(h,u)){var y=uf(h,u),j=bt(u),D=y?JK(y,j):"single";G(h).focus(),j==1&&h.state.selectingText&&h.state.selectingText(u),!(y&&eG(h,j,y,D,u))&&(j==1?y?nG(h,y,D,u):Et(u)==k.scroller&&Ze(u):j==2?(y&&Xx(h.doc,y),setTimeout(function(){return k.input.focus()},20)):j==3&&(A?h.display.input.onContextMenu(u):Gk(h)))}}}function eG(u,h,k,y,j){var D="Click";return y=="double"?D="Double"+D:y=="triple"&&(D="Triple"+D),D=(h==1?"Left":h==2?"Middle":"Right")+D,xg(u,L9(D,j),j,function(B){if(typeof B=="string"&&(B=vg[B]),!B)return!1;var K=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),K=B(u,k)!=pe}finally{u.state.suppressEdits=!1}return K})}function tG(u,h,k){var y=u.getOption("configureMouse"),j=y?y(u,h,k):{};if(j.unit==null){var D=P?k.shiftKey&&k.metaKey:k.altKey;j.unit=D?"rectangle":h=="single"?"char":h=="double"?"word":"line"}return(j.extend==null||u.doc.extend)&&(j.extend=u.doc.extend||k.shiftKey),j.addNew==null&&(j.addNew=_?k.metaKey:k.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(_?k.altKey:k.ctrlKey)),j}function nG(u,h,k,y){c?setTimeout(Z(VN,u),0):u.curOp.focus=J(te(u));var j=tG(u,k,y),D=u.doc.sel,B;u.options.dragDrop&&_t&&!u.isReadOnly()&&k=="single"&&(B=D.contains(h))>-1&&(He((B=D.ranges[B]).from(),h)<0||h.xRel>0)&&(He(B.to(),h)>0||h.xRel<0)?rG(u,y,h,j):sG(u,y,h,j)}function rG(u,h,k,y){var j=u.display,D=!1,B=vs(u,function(ie){p&&(j.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Gk(u)),we(j.wrapper.ownerDocument,"mouseup",B),we(j.wrapper.ownerDocument,"mousemove",K),we(j.scroller,"dragstart",Q),we(j.scroller,"drop",B),D||(Ze(ie),y.addNew||Xx(u.doc,k,null,null,y.extend),p&&!g||c&&d==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),K=function(ie){D=D||Math.abs(h.clientX-ie.clientX)+Math.abs(h.clientY-ie.clientY)>=10},Q=function(){return D=!0};p&&(j.scroller.draggable=!0),u.state.draggingText=B,B.copy=!y.moveOnDrag,Je(j.wrapper.ownerDocument,"mouseup",B),Je(j.wrapper.ownerDocument,"mousemove",K),Je(j.scroller,"dragstart",Q),Je(j.scroller,"drop",B),u.state.delayingBlurEvent=!0,setTimeout(function(){return j.input.focus()},20),j.scroller.dragDrop&&j.scroller.dragDrop()}function V9(u,h,k){if(k=="char")return new nr(h,h);if(k=="word")return u.findWordAt(h);if(k=="line")return new nr(_e(h.line,0),yn(u.doc,_e(h.line+1,0)));var y=k(u,h);return new nr(y.from,y.to)}function sG(u,h,k,y){c&&Gk(u);var j=u.display,D=u.doc;Ze(h);var B,K,Q=D.sel,ie=Q.ranges;if(y.addNew&&!y.extend?(K=D.sel.contains(k),K>-1?B=ie[K]:B=new nr(k,k)):(B=D.sel.primary(),K=D.sel.primIndex),y.unit=="rectangle")y.addNew||(B=new nr(k,k)),k=uf(u,h,!0,!0),K=-1;else{var he=V9(u,k,y.unit);y.extend?B=i3(B,he.anchor,he.head,y.extend):B=he}y.addNew?K==-1?(K=ie.length,Js(D,$i(u,ie.concat([B]),K),{scroll:!1,origin:"*mouse"})):ie.length>1&&ie[K].empty()&&y.unit=="char"&&!y.extend?(Js(D,$i(u,ie.slice(0,K).concat(ie.slice(K+1)),0),{scroll:!1,origin:"*mouse"}),Q=D.sel):l3(D,K,B,be):(K=0,Js(D,new Mo([B],0),be),Q=D.sel);var Ce=k;function ze(Ft){if(He(Ce,Ft)!=0)if(Ce=Ft,y.unit=="rectangle"){for(var Jt=[],bn=u.options.tabSize,xn=se(tt(D,k.line).text,k.ch,bn),Rn=se(tt(D,Ft.line).text,Ft.ch,bn),yr=Math.min(xn,Rn),ys=Math.max(xn,Rn),Lr=Math.min(k.line,Ft.line),ro=Math.min(u.lastLine(),Math.max(k.line,Ft.line));Lr<=ro;Lr++){var Ia=tt(D,Lr).text,rs=We(Ia,yr,bn);yr==ys?Jt.push(new nr(_e(Lr,rs),_e(Lr,rs))):Ia.length>rs&&Jt.push(new nr(_e(Lr,rs),_e(Lr,We(Ia,ys,bn))))}Jt.length||Jt.push(new nr(k,k)),Js(D,$i(u,Q.ranges.slice(0,K).concat(Jt),K),{origin:"*mouse",scroll:!1}),u.scrollIntoView(Ft)}else{var Aa=B,Os=V9(u,Ft,y.unit),ds=Aa.anchor,ss;He(Os.anchor,ds)>0?(ss=Os.head,ds=Mn(Aa.from(),Os.anchor)):(ss=Os.anchor,ds=zn(Aa.to(),Os.head));var Fr=Q.ranges.slice(0);Fr[K]=aG(u,new nr(yn(D,ds),ss)),Js(D,$i(u,Fr,K),be)}}var Le=j.wrapper.getBoundingClientRect(),lt=0;function vt(Ft){var Jt=++lt,bn=uf(u,Ft,!0,y.unit=="rectangle");if(bn)if(He(bn,Ce)!=0){u.curOp.focus=J(te(u)),ze(bn);var xn=Vx(j,D);(bn.line>=xn.to||bn.lineLe.bottom?20:0;Rn&&setTimeout(vs(u,function(){lt==Jt&&(j.scroller.scrollTop+=Rn,vt(Ft))}),50)}}function Nt(Ft){u.state.selectingText=!1,lt=1/0,Ft&&(Ze(Ft),j.input.focus()),we(j.wrapper.ownerDocument,"mousemove",zt),we(j.wrapper.ownerDocument,"mouseup",Yt),D.history.lastSelOrigin=null}var zt=vs(u,function(Ft){Ft.buttons===0||!bt(Ft)?Nt(Ft):vt(Ft)}),Yt=vs(u,Nt);u.state.selectingText=Yt,Je(j.wrapper.ownerDocument,"mousemove",zt),Je(j.wrapper.ownerDocument,"mouseup",Yt)}function aG(u,h){var k=h.anchor,y=h.head,j=tt(u.doc,k.line);if(He(k,y)==0&&k.sticky==y.sticky)return h;var D=Pt(j);if(!D)return h;var B=$t(D,k.ch,k.sticky),K=D[B];if(K.from!=k.ch&&K.to!=k.ch)return h;var Q=B+(K.from==k.ch==(K.level!=1)?0:1);if(Q==0||Q==D.length)return h;var ie;if(y.line!=k.line)ie=(y.line-k.line)*(u.doc.direction=="ltr"?1:-1)>0;else{var he=$t(D,y.ch,y.sticky),Ce=he-B||(y.ch-k.ch)*(K.level==1?-1:1);he==Q-1||he==Q?ie=Ce<0:ie=Ce>0}var ze=D[Q+(ie?-1:0)],Le=ie==(ze.level==1),lt=Le?ze.from:ze.to,vt=Le?"after":"before";return k.ch==lt&&k.sticky==vt?h:new nr(new _e(k.line,lt,vt),y)}function q9(u,h,k,y){var j,D;if(h.touches)j=h.touches[0].clientX,D=h.touches[0].clientY;else try{j=h.clientX,D=h.clientY}catch(ze){return!1}if(j>=Math.floor(u.display.gutters.getBoundingClientRect().right))return!1;y&&Ze(h);var B=u.display,K=B.lineDiv.getBoundingClientRect();if(D>K.bottom||!Pe(u,k))return Oe(h);D-=K.top-B.viewOffset;for(var Q=0;Q=j){var he=fe(u.doc,D),Ce=u.display.gutterSpecs[Q];return Se(u,k,u,he,Ce.className,h),Oe(h)}}}function p3(u,h){return q9(u,h,"gutterClick",!0)}function K9(u,h){wc(u.display,h)||oG(u,h)||De(u,h,"contextmenu")||A||u.display.input.onContextMenu(h)}function oG(u,h){return Pe(u,"gutterContextMenu")?q9(u,h,"gutterContextMenu",!1):!1}function G9(u){u.display.wrapper.className=u.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+u.options.theme.replace(/(^|\s)\s*/g," cm-s-"),eg(u)}var cp={toString:function(){return"CodeMirror.Init"}},Y9={},sy={};function iG(u){var h=u.optionHandlers;function k(y,j,D,B){u.defaults[y]=j,D&&(h[y]=B?function(K,Q,ie){ie!=cp&&D(K,Q,ie)}:D)}u.defineOption=k,u.Init=cp,k("value","",function(y,j){return y.setValue(j)},!0),k("mode",null,function(y,j){y.doc.modeOption=j,s3(y)},!0),k("indentUnit",2,s3,!0),k("indentWithTabs",!1),k("smartIndent",!0),k("tabSize",4,function(y){lg(y),eg(y),Ma(y)},!0),k("lineSeparator",null,function(y,j){if(y.doc.lineSep=j,!!j){var D=[],B=y.doc.first;y.doc.iter(function(Q){for(var ie=0;;){var he=Q.text.indexOf(j,ie);if(he==-1)break;ie=he+j.length,D.push(_e(B,he))}B++});for(var K=D.length-1;K>=0;K--)ap(y.doc,j,D[K],_e(D[K].line,D[K].ch+j.length))}}),k("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(y,j,D){y.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),D!=cp&&y.refresh()}),k("specialCharPlaceholder",Rq,function(y){return y.refresh()},!0),k("electricChars",!0),k("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),k("spellcheck",!1,function(y,j){return y.getInputField().spellcheck=j},!0),k("autocorrect",!1,function(y,j){return y.getInputField().autocorrect=j},!0),k("autocapitalize",!1,function(y,j){return y.getInputField().autocapitalize=j},!0),k("rtlMoveVisually",!I),k("wholeLineUpdateBefore",!0),k("theme","default",function(y){G9(y),ig(y)},!0),k("keyMap","default",function(y,j,D){var B=ny(j),K=D!=cp&&ny(D);K&&K.detach&&K.detach(y,B),B.attach&&B.attach(y,K||null)}),k("extraKeys",null),k("configureMouse",null),k("lineWrapping",!1,cG,!0),k("gutters",[],function(y,j){y.display.gutterSpecs=n3(j,y.options.lineNumbers),ig(y)},!0),k("fixedGutter",!0,function(y,j){y.display.gutters.style.left=j?Wk(y.display)+"px":"0",y.refresh()},!0),k("coverGutterNextToScrollbar",!1,function(y){return tp(y)},!0),k("scrollbarStyle","native",function(y){XN(y),tp(y),y.display.scrollbars.setScrollTop(y.doc.scrollTop),y.display.scrollbars.setScrollLeft(y.doc.scrollLeft)},!0),k("lineNumbers",!1,function(y,j){y.display.gutterSpecs=n3(y.options.gutters,j),ig(y)},!0),k("firstLineNumber",1,ig,!0),k("lineNumberFormatter",function(y){return y},ig,!0),k("showCursorWhenSelecting",!1,tg,!0),k("resetSelectionOnContextMenu",!0),k("lineWiseCopyCut",!0),k("pasteLinesPerSelection",!0),k("selectionsMayTouch",!1),k("readOnly",!1,function(y,j){j=="nocursor"&&(Jh(y),y.display.input.blur()),y.display.input.readOnlyChanged(j)}),k("screenReaderLabel",null,function(y,j){j=j===""?null:j,y.display.input.screenReaderLabelChanged(j)}),k("disableInput",!1,function(y,j){j||y.display.input.reset()},!0),k("dragDrop",!0,lG),k("allowDropFileTypes",null),k("cursorBlinkRate",530),k("cursorScrollMargin",0),k("cursorHeight",1,tg,!0),k("singleCursorHeightPerLine",!0,tg,!0),k("workTime",100),k("workDelay",100),k("flattenSpans",!0,lg,!0),k("addModeClass",!1,lg,!0),k("pollInterval",100),k("undoDepth",200,function(y,j){return y.doc.history.undoDepth=j}),k("historyEventDelay",1250),k("viewportMargin",10,function(y){return y.refresh()},!0),k("maxHighlightLength",1e4,lg,!0),k("moveInputWithCursor",!0,function(y,j){j||y.display.input.resetPosition()}),k("tabindex",null,function(y,j){return y.display.input.getField().tabIndex=j||""}),k("autofocus",null),k("direction","ltr",function(y,j){return y.doc.setDirection(j)},!0),k("phrases",null)}function lG(u,h,k){var y=k&&k!=cp;if(!h!=!y){var j=u.display.dragFunctions,D=h?Je:we;D(u.display.scroller,"dragstart",j.start),D(u.display.scroller,"dragenter",j.enter),D(u.display.scroller,"dragover",j.over),D(u.display.scroller,"dragleave",j.leave),D(u.display.scroller,"drop",j.drop)}}function cG(u){u.options.lineWrapping?(H(u.display.wrapper,"CodeMirror-wrap"),u.display.sizer.style.minWidth="",u.display.sizerWidth=null):(Y(u.display.wrapper,"CodeMirror-wrap"),Z0(u)),Vk(u),Ma(u),eg(u),setTimeout(function(){return tp(u)},100)}function Er(u,h){var k=this;if(!(this instanceof Er))return new Er(u,h);this.options=h=h?le(h):{},le(Y9,h,!1);var y=h.value;typeof y=="string"?y=new Da(y,h.mode,null,h.lineSeparator,h.direction):h.mode&&(y.modeOption=h.mode),this.doc=y;var j=new Er.inputStyles[h.inputStyle](this),D=this.display=new kK(u,y,j,h);D.wrapper.CodeMirror=this,G9(this),h.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),XN(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new de,keySeq:null,specialChars:null},h.autofocus&&!N&&D.input.focus(),c&&d<11&&setTimeout(function(){return k.display.input.reset(!0)},20),uG(this),HK(),pf(this),this.curOp.forceUpdate=!0,i9(this,y),h.autofocus&&!N||this.hasFocus()?setTimeout(function(){k.hasFocus()&&!k.state.focused&&Yk(k)},20):Jh(this);for(var B in sy)sy.hasOwnProperty(B)&&sy[B](this,h[B],cp);e9(this),h.finishInit&&h.finishInit(this);for(var K=0;K20*20}Je(h.scroller,"touchstart",function(Q){if(!De(u,Q)&&!D(Q)&&!p3(u,Q)){h.input.ensurePolled(),clearTimeout(k);var ie=+new Date;h.activeTouch={start:ie,moved:!1,prev:ie-y.end<=300?y:null},Q.touches.length==1&&(h.activeTouch.left=Q.touches[0].pageX,h.activeTouch.top=Q.touches[0].pageY)}}),Je(h.scroller,"touchmove",function(){h.activeTouch&&(h.activeTouch.moved=!0)}),Je(h.scroller,"touchend",function(Q){var ie=h.activeTouch;if(ie&&!wc(h,Q)&&ie.left!=null&&!ie.moved&&new Date-ie.start<300){var he=u.coordsChar(h.activeTouch,"page"),Ce;!ie.prev||B(ie,ie.prev)?Ce=new nr(he,he):!ie.prev.prev||B(ie,ie.prev.prev)?Ce=u.findWordAt(he):Ce=new nr(_e(he.line,0),yn(u.doc,_e(he.line+1,0))),u.setSelection(Ce.anchor,Ce.head),u.focus(),Ze(Q)}j()}),Je(h.scroller,"touchcancel",j),Je(h.scroller,"scroll",function(){h.scroller.clientHeight&&(rg(u,h.scroller.scrollTop),ff(u,h.scroller.scrollLeft,!0),Se(u,"scroll",u))}),Je(h.scroller,"mousewheel",function(Q){return r9(u,Q)}),Je(h.scroller,"DOMMouseScroll",function(Q){return r9(u,Q)}),Je(h.wrapper,"scroll",function(){return h.wrapper.scrollTop=h.wrapper.scrollLeft=0}),h.dragFunctions={enter:function(Q){De(u,Q)||et(Q)},over:function(Q){De(u,Q)||(FK(u,Q),et(Q))},start:function(Q){return zK(u,Q)},drop:vs(u,$K),leave:function(Q){De(u,Q)||M9(u)}};var K=h.input.getField();Je(K,"keyup",function(Q){return B9.call(u,Q)}),Je(K,"keydown",vs(u,H9)),Je(K,"keypress",vs(u,U9)),Je(K,"focus",function(Q){return Yk(u,Q)}),Je(K,"blur",function(Q){return Jh(u,Q)})}var m3=[];Er.defineInitHook=function(u){return m3.push(u)};function wg(u,h,k,y){var j=u.doc,D;k==null&&(k="add"),k=="smart"&&(j.mode.indent?D=ti(u,h).state:k="prev");var B=u.options.tabSize,K=tt(j,h),Q=se(K.text,null,B);K.stateAfter&&(K.stateAfter=null);var ie=K.text.match(/^\s*/)[0],he;if(!y&&!/\S/.test(K.text))he=0,k="not";else if(k=="smart"&&(he=j.mode.indent(D,K.text.slice(ie.length),K.text),he==pe||he>150)){if(!y)return;k="prev"}k=="prev"?h>j.first?he=se(tt(j,h-1).text,null,B):he=0:k=="add"?he=Q+u.options.indentUnit:k=="subtract"?he=Q-u.options.indentUnit:typeof k=="number"&&(he=Q+k),he=Math.max(0,he);var Ce="",ze=0;if(u.options.indentWithTabs)for(var Le=Math.floor(he/B);Le;--Le)ze+=B,Ce+=" ";if(zeB,Q=mn(h),ie=null;if(K&&y.ranges.length>1)if(zi&&zi.text.join("\n")==h){if(y.ranges.length%zi.text.length==0){ie=[];for(var he=0;he=0;ze--){var Le=y.ranges[ze],lt=Le.from(),vt=Le.to();Le.empty()&&(k&&k>0?lt=_e(lt.line,lt.ch-k):u.state.overwrite&&!K?vt=_e(vt.line,Math.min(tt(D,vt.line).text.length,vt.ch+Ve(Q).length)):K&&zi&&zi.lineWise&&zi.text.join("\n")==Q.join("\n")&&(lt=vt=_e(lt.line,0)));var Nt={from:lt,to:vt,text:ie?ie[ze%ie.length]:Q,origin:j||(K?"paste":u.state.cutIncoming>B?"cut":"+input")};sp(u.doc,Nt),gs(u,"inputRead",u,Nt)}h&&!K&&X9(u,h),ep(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Ce),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Z9(u,h){var k=u.clipboardData&&u.clipboardData.getData("Text");if(k)return u.preventDefault(),!h.isReadOnly()&&!h.options.disableInput&&h.hasFocus()&&no(h,function(){return g3(h,k,0,null,"paste")}),!0}function X9(u,h){if(!(!u.options.electricChars||!u.options.smartIndent))for(var k=u.doc.sel,y=k.ranges.length-1;y>=0;y--){var j=k.ranges[y];if(!(j.head.ch>100||y&&k.ranges[y-1].head.line==j.head.line)){var D=u.getModeAt(j.head),B=!1;if(D.electricChars){for(var K=0;K-1){B=wg(u,j.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(tt(u.doc,j.head.line).text.slice(0,j.head.ch))&&(B=wg(u,j.head.line,"smart"));B&&gs(u,"electricInput",u,j.head.line)}}}function Q9(u){for(var h=[],k=[],y=0;yD&&(wg(this,K.head.line,y,!0),D=K.head.line,B==this.doc.sel.primIndex&&ep(this));else{var Q=K.from(),ie=K.to(),he=Math.max(D,Q.line);D=Math.min(this.lastLine(),ie.line-(ie.ch?0:1))+1;for(var Ce=he;Ce0&&l3(this.doc,B,new nr(Q,ze[B].to()),me)}}}),getTokenAt:function(y,j){return cc(this,y,j)},getLineTokens:function(y,j){return cc(this,_e(y),j,!0)},getTokenTypeAt:function(y){y=yn(this.doc,y);var j=oc(this,tt(this.doc,y.line)),D=0,B=(j.length-1)/2,K=y.ch,Q;if(K==0)Q=j[2];else for(;;){var ie=D+B>>1;if((ie?j[ie*2-1]:0)>=K)B=ie;else if(j[ie*2+1]Q&&(y=Q,B=!0),K=tt(this.doc,y)}else K=y;return Fx(this,K,{top:0,left:0},j||"page",D||B).top+(B?this.doc.height-Pa(K):0)},defaultTextHeight:function(){return Xh(this.display)},defaultCharWidth:function(){return Qh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(y,j,D,B,K){var Q=this.display;y=Oi(this,yn(this.doc,y));var ie=y.bottom,he=y.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Q.sizer.appendChild(j),B=="over")ie=y.top;else if(B=="above"||B=="near"){var Ce=Math.max(Q.wrapper.clientHeight,this.doc.height),ze=Math.max(Q.sizer.clientWidth,Q.lineSpace.clientWidth);(B=="above"||y.bottom+j.offsetHeight>Ce)&&y.top>j.offsetHeight?ie=y.top-j.offsetHeight:y.bottom+j.offsetHeight<=Ce&&(ie=y.bottom),he+j.offsetWidth>ze&&(he=ze-j.offsetWidth)}j.style.top=ie+"px",j.style.left=j.style.right="",K=="right"?(he=Q.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(K=="left"?he=0:K=="middle"&&(he=(Q.sizer.clientWidth-j.offsetWidth)/2),j.style.left=he+"px"),D&&lK(this,{left:he,top:ie,right:he+j.offsetWidth,bottom:ie+j.offsetHeight})},triggerOnKeyDown:fa(H9),triggerOnKeyPress:fa(U9),triggerOnKeyUp:B9,triggerOnMouseDown:fa(W9),execCommand:function(y){if(vg.hasOwnProperty(y))return vg[y].call(null,this)},triggerElectric:fa(function(y){X9(this,y)}),findPosH:function(y,j,D,B){var K=1;j<0&&(K=-1,j=-j);for(var Q=yn(this.doc,y),ie=0;ie0&&he(D.charAt(B-1));)--B;for(;K.5||this.options.lineWrapping)&&Vk(this),Se(this,"refresh",this)}),swapDoc:fa(function(y){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),i9(this,y),eg(this),this.display.input.reset(),ng(this,y.scrollLeft,y.scrollTop),this.curOp.forceScroll=!0,gs(this,"swapDoc",this,j),j}),phrase:function(y){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,y)?j[y]:y},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},gt(u),u.registerHelper=function(y,j,D){k.hasOwnProperty(y)||(k[y]=u[y]={_global:[]}),k[y][j]=D},u.registerGlobalHelper=function(y,j,D,B){u.registerHelper(y,j,B),k[y]._global.push({pred:D,val:B})}}function x3(u,h,k,y,j){var D=h,B=k,K=tt(u,h.line),Q=j&&u.direction=="rtl"?-k:k;function ie(){var Yt=h.line+Q;return Yt=u.first+u.size?!1:(h=new _e(Yt,h.ch,h.sticky),K=tt(u,Yt))}function he(Yt){var Ft;if(y=="codepoint"){var Jt=K.text.charCodeAt(h.ch+(k>0?0:-1));if(isNaN(Jt))Ft=null;else{var bn=k>0?Jt>=55296&&Jt<56320:Jt>=56320&&Jt<57343;Ft=new _e(h.line,Math.max(0,Math.min(K.text.length,h.ch+k*(bn?2:1))),-k)}}else j?Ft=qK(u.cm,K,h,k):Ft=u3(K,h,k);if(Ft==null)if(!Yt&&ie())h=d3(j,u.cm,K,h.line,Q);else return!1;else h=Ft;return!0}if(y=="char"||y=="codepoint")he();else if(y=="column")he(!0);else if(y=="word"||y=="group")for(var Ce=null,ze=y=="group",Le=u.cm&&u.cm.getHelper(h,"wordChars"),lt=!0;!(k<0&&!he(!lt));lt=!1){var vt=K.text.charAt(h.ch)||"\n",Nt=ht(vt,Le)?"w":ze&&vt=="\n"?"n":!ze||/\s/.test(vt)?null:"p";if(ze&&!lt&&!Nt&&(Nt="s"),Ce&&Ce!=Nt){k<0&&(k=1,he(),h.sticky="after");break}if(Nt&&(Ce=Nt),k>0&&!he(!lt))break}var zt=Jx(u,h,D,B,!0);return Ct(D,zt)&&(zt.hitSide=!0),zt}function e_(u,h,k,y){var j=u.doc,D=h.left,B;if(y=="page"){var K=Math.min(u.display.wrapper.clientHeight,G(u).innerHeight||j(u).documentElement.clientHeight),Q=Math.max(K-.5*Xh(u.display),3);B=(k>0?h.bottom:h.top)+k*Q}else y=="line"&&(B=k>0?h.bottom+3:h.top-3);for(var ie;ie=Hk(u,D,B),!!ie.outside;){if(k<0?B<=0:B>=j.height){ie.hitSide=!0;break}B+=k*5}return ie}var fr=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};fr.prototype.init=function(u){var h=this,k=this,y=k.cm,j=k.div=u.lineDiv;j.contentEditable=!0,v3(j,y.options.spellcheck,y.options.autocorrect,y.options.autocapitalize);function D(K){for(var Q=K.target;Q;Q=Q.parentNode){if(Q==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Q.className))break}return!1}Je(j,"paste",function(K){!D(K)||De(y,K)||Z9(K,y)||d<=11&&setTimeout(vs(y,function(){return h.updateFromDOM()}),20)}),Je(j,"compositionstart",function(K){h.composing={data:K.data,done:!1}}),Je(j,"compositionupdate",function(K){h.composing||(h.composing={data:K.data,done:!1})}),Je(j,"compositionend",function(K){h.composing&&(K.data!=h.composing.data&&h.readFromDOMSoon(),h.composing.done=!0)}),Je(j,"touchstart",function(){return k.forceCompositionEnd()}),Je(j,"input",function(){h.composing||h.readFromDOMSoon()});function B(K){if(!(!D(K)||De(y,K))){if(y.somethingSelected())ay({lineWise:!1,text:y.getSelections()}),K.type=="cut"&&y.replaceSelection("",null,"cut");else if(y.options.lineWiseCopyCut){var Q=Q9(y);ay({lineWise:!0,text:Q.text}),K.type=="cut"&&y.operation(function(){y.setSelections(Q.ranges,0,me),y.replaceSelection("",null,"cut")})}else return;if(K.clipboardData){K.clipboardData.clearData();var ie=zi.text.join("\n");if(K.clipboardData.setData("Text",ie),K.clipboardData.getData("Text")==ie){K.preventDefault();return}}var he=J9(),Ce=he.firstChild;v3(Ce),y.display.lineSpace.insertBefore(he,y.display.lineSpace.firstChild),Ce.value=zi.text.join("\n");var ze=J(ee(j));q(Ce),setTimeout(function(){y.display.lineSpace.removeChild(he),ze.focus(),ze==j&&k.showPrimarySelection()},50)}}Je(j,"copy",B),Je(j,"cut",B)},fr.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},fr.prototype.prepareSelection=function(){var u=WN(this.cm,!1);return u.focus=J(ee(this.div))==this.div,u},fr.prototype.showSelection=function(u,h){!u||!this.cm.display.view.length||((u.focus||h)&&this.showPrimarySelection(),this.showMultipleSelections(u))},fr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fr.prototype.showPrimarySelection=function(){var u=this.getSelection(),h=this.cm,k=h.doc.sel.primary(),y=k.from(),j=k.to();if(h.display.viewTo==h.display.viewFrom||y.line>=h.display.viewTo||j.line=h.display.viewFrom&&t_(h,y)||{node:K[0].measure.map[2],offset:0},ie=j.lineu.firstLine()&&(y=_e(y.line-1,tt(u.doc,y.line-1).length)),j.ch==tt(u.doc,j.line).text.length&&j.lineh.viewTo-1)return!1;var D,B,K;y.line==h.viewFrom||(D=df(u,y.line))==0?(B=oe(h.view[0].line),K=h.view[0].node):(B=oe(h.view[D].line),K=h.view[D-1].node.nextSibling);var Q=df(u,j.line),ie,he;if(Q==h.view.length-1?(ie=h.viewTo-1,he=h.lineDiv.lastChild):(ie=oe(h.view[Q+1].line)-1,he=h.view[Q+1].node.previousSibling),!K)return!1;for(var Ce=u.doc.splitLines(hG(u,K,he,B,ie)),ze=Kt(u.doc,_e(B,0),_e(ie,tt(u.doc,ie).text.length));Ce.length>1&&ze.length>1;)if(Ve(Ce)==Ve(ze))Ce.pop(),ze.pop(),ie--;else if(Ce[0]==ze[0])Ce.shift(),ze.shift(),B++;else break;for(var Le=0,lt=0,vt=Ce[0],Nt=ze[0],zt=Math.min(vt.length,Nt.length);Ley.ch&&Yt.charCodeAt(Yt.length-lt-1)==Ft.charCodeAt(Ft.length-lt-1);)Le--,lt++;Ce[Ce.length-1]=Yt.slice(0,Yt.length-lt).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Le).replace(/\u200b+$/,"");var bn=_e(B,Le),xn=_e(ie,ze.length?Ve(ze).length-lt:0);if(Ce.length>1||Ce[0]||He(bn,xn))return ap(u.doc,Ce,bn,xn,"+input"),!0},fr.prototype.ensurePolled=function(){this.forceCompositionEnd()},fr.prototype.reset=function(){this.forceCompositionEnd()},fr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fr.prototype.readFromDOMSoon=function(){var u=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(u.readDOMTimeout=null,u.composing)if(u.composing.done)u.composing=null;else return;u.updateFromDOM()},80))},fr.prototype.updateFromDOM=function(){var u=this;(this.cm.isReadOnly()||!this.pollContent())&&no(this.cm,function(){return Ma(u.cm)})},fr.prototype.setUneditable=function(u){u.contentEditable="false"},fr.prototype.onKeyPress=function(u){u.charCode==0||this.composing||(u.preventDefault(),this.cm.isReadOnly()||vs(this.cm,g3)(this.cm,String.fromCharCode(u.charCode==null?u.keyCode:u.charCode),0))},fr.prototype.readOnlyChanged=function(u){this.div.contentEditable=String(u!="nocursor")},fr.prototype.onContextMenu=function(){},fr.prototype.resetPosition=function(){},fr.prototype.needsContentAttribute=!0;function t_(u,h){var k=$k(u,h.line);if(!k||k.hidden)return null;var y=tt(u.doc,h.line),j=PN(k,y,h.line),D=Pt(y,u.doc.direction),B="left";if(D){var K=$t(D,h.ch);B=K%2?"right":"left"}var Q=IN(j.map,h.ch,B);return Q.offset=Q.collapse=="right"?Q.end:Q.start,Q}function fG(u){for(var h=u;h;h=h.parentNode)if(/CodeMirror-gutter-wrapper/.test(h.className))return!0;return!1}function up(u,h){return h&&(u.bad=!0),u}function hG(u,h,k,y,j){var D="",B=!1,K=u.doc.lineSeparator(),Q=!1;function ie(Le){return function(lt){return lt.id==Le}}function he(){B&&(D+=K,Q&&(D+=K),B=Q=!1)}function Ce(Le){Le&&(he(),D+=Le)}function ze(Le){if(Le.nodeType==1){var lt=Le.getAttribute("cm-text");if(lt){Ce(lt);return}var vt=Le.getAttribute("cm-marker"),Nt;if(vt){var zt=u.findMarks(_e(y,0),_e(j+1,0),ie(+vt));zt.length&&(Nt=zt[0].find(0))&&Ce(Kt(u.doc,Nt.from,Nt.to).join(K));return}if(Le.getAttribute("contenteditable")=="false")return;var Yt=/^(pre|div|p|li|table|br)$/i.test(Le.nodeName);if(!/^br$/i.test(Le.nodeName)&&Le.textContent.length==0)return;Yt&&he();for(var Ft=0;Ft=9&&h.hasSelection&&(h.hasSelection=null),k.poll()}),Je(j,"paste",function(B){De(y,B)||Z9(B,y)||(y.state.pasteIncoming=+new Date,k.fastPoll())});function D(B){if(!De(y,B)){if(y.somethingSelected())ay({lineWise:!1,text:y.getSelections()});else if(y.options.lineWiseCopyCut){var K=Q9(y);ay({lineWise:!0,text:K.text}),B.type=="cut"?y.setSelections(K.ranges,null,me):(k.prevInput="",j.value=K.text.join("\n"),q(j))}else return;B.type=="cut"&&(y.state.cutIncoming=+new Date)}}Je(j,"cut",D),Je(j,"copy",D),Je(u.scroller,"paste",function(B){if(!(wc(u,B)||De(y,B))){if(!j.dispatchEvent){y.state.pasteIncoming=+new Date,k.focus();return}var K=new Event("paste");K.clipboardData=B.clipboardData,j.dispatchEvent(K)}}),Je(u.lineSpace,"selectstart",function(B){wc(u,B)||Ze(B)}),Je(j,"compositionstart",function(){var B=y.getCursor("from");k.composing&&k.composing.range.clear(),k.composing={start:B,range:y.markText(B,y.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(j,"compositionend",function(){k.composing&&(k.poll(),k.composing.range.clear(),k.composing=null)})},Zr.prototype.createField=function(u){this.wrapper=J9(),this.textarea=this.wrapper.firstChild;var h=this.cm.options;v3(this.textarea,h.spellcheck,h.autocorrect,h.autocapitalize)},Zr.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var u=this.cm,h=u.display,k=u.doc,y=WN(u);if(u.options.moveInputWithCursor){var j=Oi(u,k.sel.primary().head,"div"),D=h.wrapper.getBoundingClientRect(),B=h.lineDiv.getBoundingClientRect();y.teTop=Math.max(0,Math.min(h.wrapper.clientHeight-10,j.top+B.top-D.top)),y.teLeft=Math.max(0,Math.min(h.wrapper.clientWidth-10,j.left+B.left-D.left))}return y},Zr.prototype.showSelection=function(u){var h=this.cm,k=h.display;$(k.cursorDiv,u.cursors),$(k.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Zr.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var h=this.cm;if(this.resetting=!0,h.somethingSelected()){this.prevInput="";var k=h.getSelection();this.textarea.value=k,h.state.focused&&q(this.textarea),c&&d>=9&&(this.hasSelection=k)}else u||(this.prevInput=this.textarea.value="",c&&d>=9&&(this.hasSelection=null));this.resetting=!1}},Zr.prototype.getField=function(){return this.textarea},Zr.prototype.supportsTouch=function(){return!1},Zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||J(ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(u){}},Zr.prototype.blur=function(){this.textarea.blur()},Zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zr.prototype.receivedFocus=function(){this.slowPoll()},Zr.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Zr.prototype.fastPoll=function(){var u=!1,h=this;h.pollingFast=!0;function k(){var y=h.poll();!y&&!u?(u=!0,h.polling.set(60,k)):(h.pollingFast=!1,h.slowPoll())}h.polling.set(20,k)},Zr.prototype.poll=function(){var u=this,h=this.cm,k=this.textarea,y=this.prevInput;if(this.contextMenuPending||this.resetting||!h.state.focused||hn(k)&&!y&&!this.composing||h.isReadOnly()||h.options.disableInput||h.state.keySeq)return!1;var j=k.value;if(j==y&&!h.somethingSelected())return!1;if(c&&d>=9&&this.hasSelection===j||_&&/[\uf700-\uf7ff]/.test(j))return h.display.input.reset(),!1;if(h.doc.sel==h.display.selForContextMenu){var D=j.charCodeAt(0);if(D==8203&&!y&&(y="​"),D==8666)return this.reset(),this.cm.execCommand("undo")}for(var B=0,K=Math.min(y.length,j.length);B1e3||j.indexOf("\n")>-1?k.value=u.prevInput="":u.prevInput=j,u.composing&&(u.composing.range.clear(),u.composing.range=h.markText(u.composing.start,h.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zr.prototype.onKeyPress=function(){c&&d>=9&&(this.hasSelection=null),this.fastPoll()},Zr.prototype.onContextMenu=function(u){var h=this,k=h.cm,y=k.display,j=h.textarea;h.contextMenuPending&&h.contextMenuPending();var D=uf(k,u),B=y.scroller.scrollTop;if(!D||C)return;var K=k.options.resetSelectionOnContextMenu;K&&k.doc.sel.contains(D)==-1&&vs(k,Js)(k.doc,Mu(D),me);var Q=j.style.cssText,ie=h.wrapper.style.cssText,he=h.wrapper.offsetParent.getBoundingClientRect();h.wrapper.style.cssText="position: static",j.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(u.clientY-he.top-5)+"px; left: "+(u.clientX-he.left-5)+"px;\n z-index: 1000; background: "+(c?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var Ce;p&&(Ce=j.ownerDocument.defaultView.scrollY),y.input.focus(),p&&j.ownerDocument.defaultView.scrollTo(null,Ce),y.input.reset(),k.somethingSelected()||(j.value=h.prevInput=" "),h.contextMenuPending=Le,y.selForContextMenu=k.doc.sel,clearTimeout(y.detectingSelectAll);function ze(){if(j.selectionStart!=null){var vt=k.somethingSelected(),Nt="​"+(vt?j.value:"");j.value="⇚",j.value=Nt,h.prevInput=vt?"":"​",j.selectionStart=1,j.selectionEnd=Nt.length,y.selForContextMenu=k.doc.sel}}function Le(){if(h.contextMenuPending==Le&&(h.contextMenuPending=!1,h.wrapper.style.cssText=ie,j.style.cssText=Q,c&&d<9&&y.scrollbars.setScrollTop(y.scroller.scrollTop=B),j.selectionStart!=null)){(!c||c&&d<9)&&ze();var vt=0,Nt=function(){y.selForContextMenu==k.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&h.prevInput=="​"?vs(k,b9)(k):vt++<10?y.detectingSelectAll=setTimeout(Nt,500):(y.selForContextMenu=null,y.input.reset())};y.detectingSelectAll=setTimeout(Nt,200)}}if(c&&d>=9&&ze(),A){et(u);var lt=function(){we(window,"mouseup",lt),setTimeout(Le,20)};Je(window,"mouseup",lt)}else setTimeout(Le,50)},Zr.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Zr.prototype.setUneditable=function(){},Zr.prototype.needsContentAttribute=!1;function mG(u,h){if(h=h?le(h):{},h.value=u.value,!h.tabindex&&u.tabIndex&&(h.tabindex=u.tabIndex),!h.placeholder&&u.placeholder&&(h.placeholder=u.placeholder),h.autofocus==null){var k=J(ee(u));h.autofocus=k==u||u.getAttribute("autofocus")!=null&&k==document.body}function y(){u.value=K.getValue()}var j;if(u.form&&(Je(u.form,"submit",y),!h.leaveSubmitMethodAlone)){var D=u.form;j=D.submit;try{var B=D.submit=function(){y(),D.submit=j,D.submit(),D.submit=B}}catch(Q){}}h.finishInit=function(Q){Q.save=y,Q.getTextArea=function(){return u},Q.toTextArea=function(){Q.toTextArea=isNaN,y(),u.parentNode.removeChild(Q.getWrapperElement()),u.style.display="",u.form&&(we(u.form,"submit",y),!h.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=j))}},u.style.display="none";var K=Er(function(Q){return u.parentNode.insertBefore(Q,u.nextSibling)},h);return K}function gG(u){u.off=we,u.on=Je,u.wheelEventPixels=CK,u.Doc=Da,u.splitLines=mn,u.countColumn=se,u.findColumn=We,u.isWordChar=$e,u.Pass=pe,u.signal=Se,u.Line=si,u.changeEnd=Du,u.scrollbarModel=ZN,u.Pos=_e,u.cmpPos=He,u.modes=pn,u.mimeModes=rn,u.resolveMode=Ye,u.getMode=dt,u.modeExtensions=mt,u.extendMode=xt,u.copyState=It,u.startState=Ht,u.innerMode=At,u.commands=vg,u.keyMap=Cc,u.keyName=R9,u.isModifierKey=A9,u.lookupKey=ip,u.normalizeKeyMap=VK,u.StringStream=Bt,u.SharedTextMarker=pg,u.TextMarker=Au,u.LineWidget=hg,u.e_preventDefault=Ze,u.e_stopPropagation=Re,u.e_stop=et,u.addClass=H,u.contains=U,u.rmClass=Y,u.keyNames=Lu}iG(Er),dG(Er);var vG="iter insert remove copy getEditor constructor".split(" ");for(var iy in Da.prototype)Da.prototype.hasOwnProperty(iy)&&ce(vG,iy)<0&&(Er.prototype[iy]=function(u){return function(){return u.apply(this.doc,arguments)}}(Da.prototype[iy]));return gt(Da),Er.inputStyles={textarea:Zr,contenteditable:fr},Er.defineMode=function(u){!Er.defaults.mode&&u!="null"&&(Er.defaults.mode=u),ct.apply(this,arguments)},Er.defineMIME=xe,Er.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),Er.defineMIME("text/plain","null"),Er.defineExtension=function(u,h){Er.prototype[u]=h},Er.defineDocExtension=function(u,h){Da.prototype[u]=h},Er.fromTextArea=mG,gG(Er),Er.version="5.65.16",Er})})(qU);var hu=qU.exports;const F1=cu(hu),e2e=({prefix:t="cm-",isWrapped:e=!1,isDark:n,isLargeView:r,isCommand:s,webRequestMethod:a,autoHideScrollbar:i,searchTerm:l,maxHeight:c,isShowMore:d=!1,language:p,value:f})=>{var m=sn(1);try{const[b,C]=v.useState([]),[g,w]=v.useState(!1),{t:x}=Gt(),S=it("html"),E=v.useRef([]),N=it("");return v.useEffect(()=>{p==="markdown"&&window.markdown.ready.then(_=>{try{const P=_.parse(f);N.value=Th.sanitize(P,{USE_PROFILES:{html:!0}})}catch(P){N.value=Th.sanitize(f,{USE_PROFILES:{html:!0}})}})},[f]),v.useEffect(()=>{ge(void 0,null,function*(){const P=F1.findModeByName(p);try{P&&P.mode&&(P.mode==="dart"&&(yield ke(()=>import("./clike-BOEQ2M-s.js").then(I=>I.c),[])),yield t2e("codemirror/mode/".concat(P.mode,"/").concat(P.mode))),w(!0)}catch(I){console.error("Error loading CodeMirror mode:",I),w(!1)}})},[p]),v.useEffect(()=>{if(!g)return;const _=[];let P=0;const I=T=>{var O;let L="",A=null;const z=($,M)=>{_.push(o.jsx("span",{className:M?"".concat(t).concat(M):"",children:$},P++))},Y=((O=F1.findModeByName(p))==null?void 0:O.mime)||"text/plain";if(p==="json")try{T=JSON.stringify(JSON.parse(T),null,2)}catch($){}F1.runMode(T,Y,($,M)=>{A===M?(L+=$,A=M):(L&&z(L,A),L=$,A=M)}),z(L,A)};if(l&&l.length>1){const T=mz(l),L=new RegExp("(".concat(T,")"),"gi"),A=f.split(L);E.current=[],A.forEach(z=>{if(z.toLowerCase()===l.toLowerCase()){const Y=v.createRef();E.current.push(Y),_.push(o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:ml(Y),children:z},"found-".concat(P++)))}else I(z)})}else I(f);C(_)},[g,p,t,l,f]),v.useEffect(()=>{var _;E.current.length>0&&((_=E.current[0].current)==null||_.scrollIntoView({behavior:"smooth",block:"center"}))},[b]),g?o.jsxs(ne,{className:"relative",children:[o.jsx(Nh,{className:"".concat(d?"code-scroll-x pb-2":""),options:{overflow:{x:d?"scroll":"hidden",y:"scroll"},scrollbars:{theme:n?"os-theme-light":"os-theme-dark",autoHide:i?"move":"never"}},style:{maxHeight:c||(r?"calc(100vh - 250px)":d?200:120),maxWidth:"100%"},children:!N.value||S.value==="markdown"?o.jsxs("code",{className:"".concat(e?"whitespace-pre-wrap":"whitespace-pre"," !bg-transparent ").concat(n?"code-is-dark":"code-is-light"),children:[s&&o.jsx("span",{className:"mr-1 px-1 bg-gray-100 dark:bg-gray-800 text-slate-400 dark:text-slate-200",children:">_"}),a&&o.jsx("span",{className:"mr-1 px-1 bg-gray-100 text-slate-400",children:a}),b,!d&&o.jsx("span",{className:"select-none",children:"..."})]}):o.jsx("div",{dangerouslySetInnerHTML:{__html:N.value},className:"note-content"})}),N.value&&o.jsx(pl,{className:"flex flex-row absolute top-0 right-0 z-100 select-none",value:S.value,onValueChange:_=>{S.value=_==="markdown"?"markdown":"html"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900 opacity-60 hover:opacity-100 animate-in fade-in",children:[o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:"HTML"}),o.jsx(jr,{value:"markdown",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:"Markdown"})]})})]}):null}finally{m.f()}},Ca=v.memo(e2e);function t2e(t){switch(t){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return ke(()=>import("./apl-vbWlWQex.js").then(e=>e.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return ke(()=>import("./asciiarmor-CFH81i6x.js").then(e=>e.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return ke(()=>import("./asn.1-D8_bNa5v.js").then(e=>e.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return ke(()=>import("./asterisk-C1zcJqpz.js").then(e=>e.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return ke(()=>import("./brainfuck-DzW0LHCQ.js").then(e=>e.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return ke(()=>import("./clike-BOEQ2M-s.js").then(e=>e.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return ke(()=>import("./clojure-DuvyDseK.js").then(e=>e.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return ke(()=>import("./cmake-Da6fUSVt.js").then(e=>e.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return ke(()=>import("./cobol-DmPFhTxe.js").then(e=>e.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return ke(()=>import("./coffeescript-DH2pDx43.js").then(e=>e.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return ke(()=>import("./commonlisp-CvF5qUNJ.js").then(e=>e.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return ke(()=>import("./crystal-C3YOX7T5.js").then(e=>e.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return ke(()=>import("./css-B4l1-bAT.js").then(e=>e.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return ke(()=>import("./cypher-Dw5r3gO8.js").then(e=>e.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return ke(()=>import("./d-TVEmGsIx.js").then(e=>e.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return ke(()=>import("./dart-BLNr9Ovl.js").then(e=>e.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return ke(()=>import("./diff-CqXLXcio.js").then(e=>e.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return ke(()=>import("./django-Dp5JQfVx.js").then(e=>e.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return ke(()=>import("./dockerfile-Dvpg_F3g.js").then(e=>e.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return ke(()=>import("./dtd-CVkG5wRq.js").then(e=>e.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return ke(()=>import("./dylan-BWZlyZb4.js").then(e=>e.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return ke(()=>import("./ebnf-CE4Kd6SC.js").then(e=>e.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return ke(()=>import("./ecl-DNeqOLX3.js").then(e=>e.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return ke(()=>import("./eiffel-CNcgPpub.js").then(e=>e.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return ke(()=>import("./elm-g9IQLo-i.js").then(e=>e.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return ke(()=>import("./erlang-BzVSqQvZ.js").then(e=>e.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return ke(()=>import("./factor-BRJPtv5j.js").then(e=>e.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return ke(()=>import("./fcl-C2-vcOIF.js").then(e=>e.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return ke(()=>import("./forth-DipmwzLv.js").then(e=>e.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return ke(()=>import("./fortran-B7Q5kQUa.js").then(e=>e.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return ke(()=>import("./gas-BBAAeptq.js").then(e=>e.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return ke(()=>import("./gfm-C-arbaYn.js").then(e=>e.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return ke(()=>import("./gherkin-DRcg385F.js").then(e=>e.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return ke(()=>import("./go-DmGc6dBE.js").then(e=>e.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return ke(()=>import("./groovy-CFngObt1.js").then(e=>e.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return ke(()=>import("./haml-Bt2f_Nrm.js").then(e=>e.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return ke(()=>import("./handlebars-Cje9LvyI.js").then(e=>e.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return ke(()=>import("./haskell-FqRRGASE.js").then(e=>e.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return ke(()=>import("./haskell-literate-O7J5RTx8.js").then(e=>e.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return ke(()=>import("./haxe-NFZ3yuef.js").then(e=>e.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return ke(()=>import("./htmlembedded-CPJgkSix.js").then(e=>e.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return ke(()=>import("./htmlmixed-Dv1q6FP3.js").then(e=>e.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return ke(()=>import("./http-BNLE6Hp5.js").then(e=>e.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return ke(()=>import("./idl-BSjDVZnx.js").then(e=>e.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return ke(()=>Promise.resolve().then(()=>JU),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return ke(()=>import("./jinja2-adCpaZ7l.js").then(e=>e.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return ke(()=>import("./jsx-ClkCV7Y-.js").then(e=>e.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return ke(()=>import("./julia-DLqN_-yd.js").then(e=>e.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return ke(()=>import("./livescript-Vxln-grF.js").then(e=>e.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return ke(()=>import("./lua-ewWAGPom.js").then(e=>e.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return ke(()=>import("./markdown-UVY52jYi.js").then(e=>e.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return ke(()=>import("./mathematica-DZ9dm3LF.js").then(e=>e.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return ke(()=>import("./mbox-BfR5b6CK.js").then(e=>e.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return ke(()=>import("./mirc-DC86U8XC.js").then(e=>e.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return ke(()=>import("./mllike-Bprdg3DF.js").then(e=>e.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return ke(()=>import("./modelica-DRAnqeau.js").then(e=>e.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return ke(()=>import("./mscgen-Dmtop0oN.js").then(e=>e.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return ke(()=>import("./mumps-nnSrE32F.js").then(e=>e.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return ke(()=>import("./nginx-BnakU_6z.js").then(e=>e.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return ke(()=>import("./nsis-CUnpq3M4.js").then(e=>e.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return ke(()=>import("./ntriples-HIut5vCN.js").then(e=>e.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return ke(()=>import("./octave-BiCIAta_.js").then(e=>e.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return ke(()=>import("./oz-CEFLLuMw.js").then(e=>e.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return ke(()=>import("./pascal-D0O88NVj.js").then(e=>e.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return ke(()=>import("./pegjs-DZXOYIHw.js").then(e=>e.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return ke(()=>import("./perl-CWHlqxh1.js").then(e=>e.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return ke(()=>import("./php-D7hQD33F.js").then(e=>e.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return ke(()=>import("./pig-CaL67Oog.js").then(e=>e.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return ke(()=>import("./powershell-CbaGTq83.js").then(e=>e.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return ke(()=>import("./properties-XjQosx_y.js").then(e=>e.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return ke(()=>import("./protobuf-D4yqdkut.js").then(e=>e.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return ke(()=>import("./pug-CRVKTuYC.js").then(e=>e.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return ke(()=>import("./puppet-BEs-TqvF.js").then(e=>e.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return ke(()=>import("./python-CoovIKZV.js").then(e=>e.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return ke(()=>import("./q-CbtkgoeH.js").then(e=>e.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return ke(()=>import("./r-D8JmdW1x.js").then(e=>e.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return ke(()=>import("./rpm-3ihONuWC.js").then(e=>e.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return ke(()=>import("./rst-BCEzRi9A.js").then(e=>e.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return ke(()=>import("./ruby-DIgqUQO1.js").then(e=>e.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return ke(()=>import("./rust-lngZNREB.js").then(e=>e.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return ke(()=>import("./sas-DlUPW5JL.js").then(e=>e.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return ke(()=>import("./sass-Bem8n1Mc.js").then(e=>e.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return ke(()=>import("./scheme-Cxeeuh63.js").then(e=>e.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return ke(()=>import("./shell-C4ZQSEjP.js").then(e=>e.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return ke(()=>import("./sieve-C3Fykc7i.js").then(e=>e.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return ke(()=>import("./slim-DWjt4ndT.js").then(e=>e.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return ke(()=>import("./smalltalk-BEYwcsYK.js").then(e=>e.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return ke(()=>import("./smarty-D4NxUHxc.js").then(e=>e.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return ke(()=>import("./solr-ERAvZC4b.js").then(e=>e.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return ke(()=>import("./soy-OpLLWLYS.js").then(e=>e.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return ke(()=>import("./sparql-Brmr4Q5h.js").then(e=>e.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return ke(()=>import("./spreadsheet-CnCG9elR.js").then(e=>e.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return ke(()=>import("./sql-eOeqwll8.js").then(e=>e.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return ke(()=>import("./stex-5aBROWT3.js").then(e=>e.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return ke(()=>import("./stylus-DtmEzL5k.js").then(e=>e.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return ke(()=>import("./swift-TiucVwxg.js").then(e=>e.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return ke(()=>import("./tcl-MbiWHS-F.js").then(e=>e.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return ke(()=>import("./textile-DFexsl9c.js").then(e=>e.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return ke(()=>import("./tiddlywiki-DeaBHtaJ.js").then(e=>e.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return ke(()=>import("./tiki-Dw5H3nSr.js").then(e=>e.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return ke(()=>import("./toml-Bw9ZtC4x.js").then(e=>e.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return ke(()=>import("./tornado-GlNJ_SrA.js").then(e=>e.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return ke(()=>import("./troff-NC__n46a.js").then(e=>e.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return ke(()=>import("./ttcn-Cw8P6tgB.js").then(e=>e.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return ke(()=>import("./ttcn-cfg-DyazUgGj.js").then(e=>e.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return ke(()=>import("./turtle-B1BYQzZE.js").then(e=>e.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return ke(()=>import("./twig-Bn-PQroe.js").then(e=>e.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return ke(()=>import("./vb-B0_NIpfn.js").then(e=>e.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return ke(()=>import("./vbscript-BWhXQrG-.js").then(e=>e.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return ke(()=>import("./velocity-B6MaZAkd.js").then(e=>e.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return ke(()=>import("./verilog-6V47m65h.js").then(e=>e.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return ke(()=>import("./vhdl-D5SeExP5.js").then(e=>e.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return ke(()=>import("./vue-DBY3U5Kv.js").then(e=>e.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return ke(()=>import("./wast-DIERJQig.js").then(e=>e.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return ke(()=>import("./webidl-DROfhoxv.js").then(e=>e.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return ke(()=>Promise.resolve().then(()=>tW),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return ke(()=>import("./xquery-BAotSwcC.js").then(e=>e.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return ke(()=>import("./yacas-Bs3ZmOP9.js").then(e=>e.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return ke(()=>import("./yaml-DW5bDHnz.js").then(e=>e.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return ke(()=>import("./yaml-frontmatter-BYPLutKI.js").then(e=>e.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return ke(()=>import("./z80-eNlRilBV.js").then(e=>e.z),[]);default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}const Bb=t=>{if(t){const e=t.replace(/\D/g,"").match(/(\d{0,4})(\d{0,4})(\d{0,4})(\d{0,4})/);return e&&e.length>1?e[2]?"".concat(e[1]," ").concat(e[2]).concat("".concat(e[3]?" ".concat(e[3]):"")).concat("".concat(e[4]?" ".concat(e[4]):"")):e[1]:t}},XD=t=>{var e;return t&&((e=Bb(t))!=null?e:"").replace(/\d(?=(?:\D*\d){4})/g,"•")},Px=v.forwardRef((E,S)=>{var N=E,{small:t,placeholder:e,label:n,name:r="",autoFocus:s=!1,required:a,ccNumber:i,readOnly:l,onInputBlur:c,showHideCCNumber:d=!1,tooltipContent:p,tooltip:f,prefix:m,error:b,props:C,className:g,classNameInput:w}=N,x=Ne(N,["small","placeholder","label","name","autoFocus","required","ccNumber","readOnly","onInputBlur","showHideCCNumber","tooltipContent","tooltip","prefix","error","props","className","classNameInput"]);const _=v.useRef(null),[P,I]=v.useState(!1),[T,L]=v.useState(i);v.useImperativeHandle(S,()=>_.current);const A=()=>{var O;if(!_.current||!_.current.value)return;const z=(O=Bb(_.current.value))!=null?O:"",Y=z.replace(/(\D)/g,"");_.current.value!==z&&(_.current.value=z),L(Y)};return v.useEffect(()=>{var z;if(_.current&&P){const Y=(z=Bb(T))!=null?z:"";_.current.value=Y}},[T]),v.useEffect(()=>{var z,Y;P&&_.current&&T&&(_.current.value=(z=Bb(T))!=null?z:""),!P&&_.current&&(_.current.value=(Y=XD(T))!=null?Y:"")},[P]),v.useEffect(()=>{_.current&&s&&setTimeout(()=>{var z;(z=_.current)==null||z.focus()},200)},[s]),o.jsxs("div",ae(R({className:Pn("w-full",g)},C),{children:[n&&o.jsx(_7,{label:n,required:a,tooltipContent:p,tooltip:f,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),o.jsxs("div",{className:"relative",children:[m?o.jsx("span",{className:"text-grey-40 mr-2xsmall",children:m}):null,o.jsx("input",R({className:Pn("bg-grey-5 border-gray-20 px-small py-xsmall rounded rounded-rounded flex w-full items-center border","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","remove-number-spinner px-3 leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":b},t?"h-8":"h-10",{"!pr-8":d},{"text-small":t,"pt-[1px]":t},w),ref:_,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:"text",name:r,defaultValue:XD(i),placeholder:e||"".concat(n,"...")||"",onChange:A,onFocus:()=>{l||I(!0)},onBlur:()=>{c&&T&&c(T.trim().replaceAll(" ",""))}},x)),o.jsx("button",{className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{I(z=>!z)},children:P?o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:"currentColor",fillRule:"evenodd"})}):o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd"})})})]}),b&&o.jsx("div",{className:Pn("text-sm animate fade-in text-red-400",g),children:o.jsx("p",{children:b})})]}))});Px.displayName="InputCreditCardField";const Vg=t=>{var e=sn(1);try{const n=Te(13),{id:r,isCopiedOrPasted:s,pastedItemCountDown:a,isCopied:i,pastedText:l,copyOrPasteFieldId:c}=t,{t:d}=Gt();if(c.value!==r||!s)return null;let p;if(a){if(a>0){let b;n[7]!==a||n[8]!==d?(b=d("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:a}),n[7]=a,n[8]=d,n[9]=b):b=n[9],p=b}}else{let b;n[0]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(en,{size:14,className:"mr-1"}),n[0]=b):b=n[0];let C;n[1]!==i||n[2]!==d||n[3]!==l?(C=i?d("Copied",{ns:"common"}):l?d("Pasted",{ns:"common"}):"",n[1]=i,n[2]=d,n[3]=l,n[4]=C):C=n[4];let g;n[5]!==C?(g=o.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white pr-1.5 py-0",children:[b,C]}),n[5]=C,n[6]=g):g=n[6],p=g}const f="".concat(a?"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !px-2":"bg-green-700 dark:bg-green-800 dark:text-white"," fade-in-animation py-[2px] whitespace-nowrap");let m;return n[10]!==f||n[11]!==p?(m=o.jsx(ne,{className:"w-full h-full border border-green-700 bg-green-100/80 dark:bg-green-800 absolute right-0 top-0 flex items-center justify-center pointer-events-none px-2 !rounded-md z-100 animate-in fade-in transition-opacity",children:o.jsx(St,{className:f,children:p})}),n[10]=f,n[11]=p,n[12]=m):m=n[12],m}finally{e.f()}},QD={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"};function KU({clipId:t,formTemplateOptions:e}){var r,s;var n=sn(1);try{const{t:a}=Gt(),[i,l]=D7({}),[c,d,p]=I7({}),{updateItemById:f}=bl(),m=it(!1),b=it(null),C=it({templateOptions:[],formOptions:{openUrl:null,fields:[]}});v.useEffect(()=>{if(e)try{C.value=JSON.parse(e)}catch(w){console.error(w)}},[e]),v.useEffect(()=>{m.value&&setTimeout(()=>{m.value=!1},1e3)},[m.value]);const g=!!(i||c);return o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"select-none mb-2",children:[C.value.formOptions.openUrl!=null&&o.jsxs(ve,{className:"text-normal w-full gap-2 py-0.5 mb-1 ".concat(C.value.formOptions.isOpenUrlDisabled?"bg-gray-100 dark:bg-gray-900 opacity-70":""),children:[C.value.formOptions.isOpenUrlDisabled?o.jsx(o.Fragment,{children:o.jsxs(re,{className:"!font-semibold pointer-events-none text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-500 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md line-through gap-1",children:[a("Open",{ns:"common"}),o.jsx("span",{className:"overflow-hidden text-ellipsis p-1",children:Ir(C.value.formOptions.openUrl)})]})}):o.jsx(o.Fragment,{children:o.jsxs(re,{className:"!font-semibold text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-700 dark:hover:text-blue-400 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md gap-1",children:[o.jsx("span",{className:"pointer-events-none",children:a("Open",{ns:"common"})}),o.jsxs("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400 overflow-hidden text-ellipsis relative p-1",title:"".concat(a("Open",{ns:"common"})," ").concat(C.value.formOptions.openUrl),onClick:()=>{Ei(Ir(C.value.formOptions.openUrl))},children:[Ir(C.value.formOptions.openUrl),o.jsx(Vg,{id:C.value.formOptions.openUrl,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]})]})}),o.jsxs(ve,{children:[o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",variant:"ghost",disabled:C.value.formOptions.isOpenUrlDisabled,onClick:w=>{w.preventDefault(),C.value.formOptions.openUrl&&(b.value=C.value.formOptions.openUrl,Tn.value?p(C.value.formOptions.openUrl):l(C.value.formOptions.openUrl))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})}),o.jsx(je,{variant:"ghost",size:"mini",title:a("Enable / Disable URL Open",{ns:"dashboard"}),onClick:()=>ge(this,null,function*(){var x;C.value=ae(R({},C.value),{formOptions:ae(R({},C.value.formOptions),{isOpenUrlDisabled:!((x=C.value.formOptions)!=null&&x.isOpenUrlDisabled)})});const w=JSON.stringify(C.value);try{yield f({updatedItem:{formTemplateOptions:w,itemId:t}}),setTimeout(()=>{m.value=!0},300)}catch(S){console.error(S)}}),className:"pl-1 font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:(r=C.value.formOptions)!=null&&r.isOpenUrlDisabled?o.jsx(wa,{size:14}):o.jsx(qa,{size:14})})]})]}),(s=C.value.formOptions)==null?void 0:s.fields.map((w,x)=>{var P,I,T,L,A;const S=w.isLabelOnTop,E=w.isLabelHidden,N=w.type==="section",_=w.type==="textarea";return o.jsxs(ve,{className:"".concat(w.type!=="section"?"mb-1":"mt-1"," group ").concat(S?"flex-col items-start":"items-center"," ").concat(_?"!mt-2 !mb-1":""),children:[!E&&o.jsx(o.Fragment,{children:w.label&&w.type!=="section"?o.jsx(re,{className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(S?"!justify-start pl-1":"!justify-end"),children:o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(S?"text-left":"text-right max-w-[160px]"),children:w.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"})}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsxs(ve,{className:"w-full gap-1 justify-start",children:[w.isDelayOnly||w.isPressKeysOnly?o.jsxs(ve,{className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[w.isDelayOnly&&o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[a("Delay",{ns:"common"})," ",w.value]}),w.isPressKeysOnly&&w.pressKeysAfterPaste&&o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[a("Press",{ns:"common"})," ",QD[w.pressKeysAfterPaste]]})]}):w.type==="password"||w.type==="passwordCode"?o.jsxs(ve,{children:[o.jsxs("div",{className:"relative w-full",children:[o.jsx(wn,{small:!0,placeholder:a("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:w.isEnable===!1,isPassword:!0,numbersOnly:w.type==="passwordCode",showHidePassword:!0,className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):w.type==="creditcard"?o.jsxs(ve,{children:[o.jsxs("div",{className:"relative w-full",children:[o.jsx(Px,{small:!0,placeholder:a("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none hover:border-gray-400 pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:w.isEnable===!1,className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,ccNumber:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):N?o.jsx("span",{className:"text-sm !font-semibold border-0 nowrap overflow-hidden text-ellipsis !pl-0.5 py-2",children:w.value}):w.type==="textarea"?o.jsxs(ve,{children:[o.jsxs("div",{className:"w-full relative",children:[o.jsx(Co,{placeholder:a("Empty",{ns:"common"}),label:"",className:"text-sm font-semibold border-0 border-transparent hover:border-gray-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:w.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:x===((P=C.value.formOptions.fields)==null?void 0:P.length)-1&&C.value.formOptions.fields[x].value==="",maxRows:2,value:w.value,enableEmoji:!1,readOnly:!0,enableEmojiInside:!1}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):o.jsxs(ve,{children:[o.jsxs("div",{className:"w-full relative",children:[o.jsx(wn,{small:!0,placeholder:a("Empty",{ns:"common"}),autoFocus:x===((I=C.value.formOptions.fields)==null?void 0:I.length)-1&&C.value.formOptions.fields[x].value===""&&C.value.formOptions.fields[x].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:w.isEnable===!1,type:w.type==="number"?"number":"text",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}),w.isDelayOnly||w.isPressKeysOnly||N?o.jsx(o.Fragment,{}):o.jsx(ve,{children:w.pressKeysAfterPaste&&o.jsx(St,{variant:"secondary",className:"p-2 py-0.5 text-slate-500 whitespace-nowrap mr-1",children:QD[w.pressKeysAfterPaste]})})]})}),o.jsx(ve,{className:"gap-1",children:!N&&o.jsx(je,{size:"mini",title:a("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>ge(this,null,function*(){var Y;C.value=ae(R({},C.value),{formOptions:ae(R({},C.value.formOptions),{fields:(Y=C.value.formOptions)==null?void 0:Y.fields.map((O,$)=>$===x?ae(R({},O),{isEnable:!O.isEnable}):O)})});const z=JSON.stringify(C.value);try{yield f({updatedItem:{formTemplateOptions:z,itemId:t}}),setTimeout(()=>{m.value=!0},300)}catch(O){console.error(O)}}),children:(T=C.value.formOptions)!=null&&T.fields&&((A=(L=C.value.formOptions)==null?void 0:L.fields[x])!=null&&A.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})})})]})]},w.id)})]}),m.value&&o.jsx(ne,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:a("Updated",{ns:"common"})})]})}finally{n.f()}}function pk(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("rect",{x:"7.3",y:"7.3",rx:"5",ry:"5",width:"9.3",height:"9.3",className:"opacity-90",stroke:"none",fill:"currentColor"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.onClick||e[5]!==t.className?(i=o.jsxs("svg",{width:n,height:r,onClick:t.onClick,className:t.className,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.onClick,e[5]=t.className,e[6]=i):i=e[6],i}const n2e=(t,e=[],n=[],r=[],s,a=!1)=>{const i=/\{\{\s*(.*?)\s*\}\}/g;return t.split(i).map((c,d)=>{const p=r.find(f=>{var m;return((m=f.label)==null?void 0:m.toLocaleLowerCase())===c.toLocaleLowerCase()});if(p){const f={label:c,isValueMasked:p.isValueMasked,value:c.toLocaleLowerCase()==="clipboard"?s:p.value,isFound:e.includes(c.toLowerCase()),isMissing:n.includes(c.toLowerCase()),isEnable:p.isEnable},m=a&&f.value;return o.jsx(re,{className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-600"," !font-normal inline-flex"),size:"xs",children:m?o.jsx(st,{text:o.jsxs(St,{variant:"outline",className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"dark:!text-gray-300 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),f.label]}),className:"bg-transparent border-0",side:"top",isCompact:!0,asChild:!0,children:o.jsx(St,{variant:"outline",className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100/80 dark:bg-green-900 hover:bg-green-50/80 dark:hover:bg-green-900/70 border-green-100 hover:border-green-200 dark:border-green-800 dark:hover:border-green-700":"dark:!text-gray-600 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-[14px] !font-normal px-1 rounded-sm"),children:f.isValueMasked?Ch(f.value):f.value})}):o.jsx(st,{isDisabled:f.isMissing||!f.value,text:f.value,side:"top",isCompact:!0,asChild:!0,children:o.jsxs(St,{variant:"outline",className:"".concat(f.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),f.label]})})},d)}return c})};function GU({value:t,clipId:e,formTemplateOptions:n}){var s;var r=sn(1);try{const{t:a}=Gt(),i=it(Date.now().toString()),l=it(Date.now().toString()),c=it(!1),d=it([]),p=it([]),f=it("text"),m=it("labels"),b=it("template"),C=it(""),g=it(null),[,w,,]=Uh({}),[,,x]=Wh({}),{updateItemById:S}=bl(),E=it(!1),N=it({templateOptions:[],formOptions:{fields:[]}}),_=jo(l.value,300),P=jo(l.value,1e3),I=v.useCallback(A=>{const z=/{{[^{}]+}}/g;d.value=[],p.value=[];const Y=A.match(z);Y&&Y.forEach((O,$)=>{Y[$]=O.replace(/[\n\r{}]+/g,"").trim(),p.value.push(Y[$].toLocaleLowerCase());const M=N.value.templateOptions.find(W=>{var V;return((V=W.label)==null?void 0:V.toLocaleLowerCase())===Y[$].toLocaleLowerCase()});M?M.isFound=!0:d.value.push(Y[$])})},[N.value.templateOptions]);v.useEffect(()=>{var A;if(n)try{const z=JSON.parse(n);N.value=R(R({},N.value),z),((A=N.value.templateOptions)==null?void 0:A.every(O=>{var $;return(($=N.value.templateOptions)==null?void 0:$.filter(M=>M.label===O.label).length)===1}))||(c.value=!0),I(t)}catch(z){console.log("error",z)}},[n]);const T=v.useCallback(()=>ge(this,null,function*(){try{C.value=yield On("run_template_fill",{templateValue:t,templateOptions:N.value.templateOptions,isPreview:!0})}catch(A){console.error(A)}}),[t,N.value.templateOptions]);v.useEffect(()=>{T()},[N.value.templateOptions,t,_]),v.useEffect(()=>{const A=JSON.stringify(N.value);try{S({updatedItem:{formTemplateOptions:A,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(z){console.error(z)}},[t,P]),v.useEffect(()=>{const A=Xi("clipboard://clipboard-monitor/update",Y=>ge(this,null,function*(){Y.payload==="clipboard update"&&(g.value=yield ET())}));return ge(this,null,function*(){g.value=yield ET()}),()=>{A.then(Y=>{Y()})}},[]),v.useEffect(()=>{E.value&&setTimeout(()=>{E.value=!1},1e3)},[E.value]);const L=v.useMemo(()=>n2e(t,p.value,d.value,N.value.templateOptions.filter(A=>A.label!==void 0).map(({label:A,isEnable:z,value:Y,isValueMasked:O})=>({label:A,isValueMasked:O,value:Y,isEnable:z})),g.value,m.value==="values"),[t,_,p.value,d.value,N.value.templateOptions,g.value,m.value]);return o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"select-none mt-1 pb-1",children:[o.jsx(ne,{className:"mt-1.5 mb-1",children:o.jsxs(ve,{className:"w-full justify-start",children:[o.jsx(je,{variant:"ghost",size:"mini",onClick:()=>{Ms.value=e!=null?e:null},className:"cursor-pointer hover:bg-transparent ",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:a("Edit Template",{ns:"dashboard"})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[a("Fields Value",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{N.value.templateOptions=N.value.templateOptions.map(A=>(A.value="",A)),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]}),i.value=Date.now().toString(),l.value=Date.now().toString()},children:[o.jsx(re,{className:"mr-2",children:a("Clear All Fields",{ns:"dashboard"})}),o.jsx(uE,{size:14,className:"ml-auto text-slate-400"})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{N.value.templateOptions=N.value.templateOptions.map(A=>(A.value=A.defaultValue,A)),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]}),i.value=Date.now().toString(),l.value=Date.now().toString()},children:[o.jsx(re,{className:"mr-2",children:a("Reset to Defaults",{ns:"dashboard"})}),o.jsx(J2,{size:14,className:"ml-auto text-slate-400"})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>ge(this,null,function*(){N.value.templateOptions.forEach(z=>{z.defaultValue=z.value});const A=JSON.stringify(N.value);try{yield S({updatedItem:{formTemplateOptions:A,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(z){console.error(z)}}),children:[o.jsx(re,{className:"mr-2",children:a("Save as Defaults",{ns:"dashboard"})}),o.jsx(Pz,{size:14,className:"ml-auto text-slate-400"})]})]})]})]})}),(s=N.value.templateOptions)==null?void 0:s.map((A,z)=>{var U,J,H,F,q,X,te,ee,G;const Y=A.type==="textarea",O=A.isLabelOnTop,$=(U=A.selectOptions)==null?void 0:U.find(Z=>Z===A.value),M=!((J=A.selectOptions)!=null&&J.length),W=!!(A.label&&p.value.includes((H=A.label)==null?void 0:H.toLowerCase())),V=A.isEnable===!1||!W;return o.jsxs(ve,{className:"mb-1 group ".concat(O?"flex-col items-start":"items-center"," ").concat(Y?"!mt-2 !mb-1":""),children:[A.label?o.jsx(ve,{className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(O?"!justify-start pl-1":"!justify-end"," ").concat(W?"":"!text-amber-800 dark:!text-amber-400 opacity-60"),children:o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(O?"text-left":"text-right max-w-[160px]"),children:A.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsx(ve,{className:"w-full gap-1",children:A.type==="password"||A.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:A.type==="passwordCode"?a("Enter code",{ns:"dashboard"}):a("Enter secret value",{ns:"dashboard"}),autoFocus:z===N.value.templateOptions.length-1&&N.value.templateOptions[z].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,isPassword:!0,numbersOnly:A.type==="passwordCode",showHidePassword:!0,className:"".concat(A.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Z=>{A.value=Z.target.value.trim(),l.value=Date.now().toString()},defaultValue:A.value},i.value):A.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:a("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,autoFocus:z===((F=N.value.templateOptions)==null?void 0:F.length)-1&&N.value.templateOptions[z].value==="",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:Z=>{A.value=Z},ccNumber:A.value},i.value):A.type==="textarea"?o.jsx(Co,{placeholder:a("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:V?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:z===N.value.templateOptions.length-1&&N.value.templateOptions[z].value===""&&!!N.value.templateOptions[z].label,maxRows:2,value:A.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:Z=>{Z.stopPropagation()},onChange:Z=>{A.value=Z.target.value,l.value=Date.now().toString(),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]})}},i.value):A.type==="select"?o.jsx(ve,{className:"justify-start items-center w-full my-1",children:o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:V,className:"rounded-sm font-semibold hover:bg-transparent px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:o.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[o.jsx(re,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:M?a("Select is empty",{ns:"common"}):$||a("Select option",{ns:"common"})}),o.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:o.jsx(Bn,{size:13})})]})})}),o.jsxs(Wn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:M?o.jsx(re,{children:a("Select is empty",{ns:"common"})}):o.jsx(re,{children:a("Select option",{ns:"common"})})}),!M&&o.jsxs(o.Fragment,{children:[o.jsx(kn,{}),(X=(q=N.value.templateOptions[z])==null?void 0:q.selectOptions)==null?void 0:X.map((Z,le)=>o.jsx(Cn,{checked:A.value===Z,onSelect:()=>{A.value=Z,l.value=Date.now().toString(),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]})},children:o.jsx(re,{className:"text-xs ".concat(A.value===Z?"font-semibold":""),children:Z})},le))]})]})]})}):((te=A.label)==null?void 0:te.toLocaleLowerCase())!=="clipboard"?o.jsx(wn,{small:!0,placeholder:a("Enter field value",{ns:"dashboard"}),autoFocus:!!N.value.templateOptions[z].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,type:A.type==="number"?"number":"text",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Z=>{A.value=Z.target.value.trim(),l.value=Date.now().toString()},defaultValue:A.value},i.value):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,value:A.isValueMasked&&g.value?yv(g.value):g.value?g.value:a("This field allows to insert text from clipboard",{ns:"dashboard"}),title:(ee=g.value)!=null?ee:"",autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),o.jsx(st,{isCompact:!0,text:a("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:o.jsx(pk,{width:15,height:15,className:"".concat(A.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var Z;N.value=ae(R({},N.value),{templateOptions:[...(Z=N.value.templateOptions)==null?void 0:Z.map((le,se)=>se===z?ae(R({},le),{isValueMasked:!le.isValueMasked}):le)]})}})})]})})}),o.jsx(ve,{className:"gap-1 ml-0.5",children:W?o.jsx(je,{size:"mini",title:a("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>ge(this,null,function*(){var le;N.value=ae(R({},N.value),{templateOptions:[...(le=N.value.templateOptions)==null?void 0:le.map((se,de)=>de===z?ae(R({},se),{isEnable:!se.isEnable}):se)]});const Z=JSON.stringify(N.value);try{yield S({updatedItem:{formTemplateOptions:Z,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(se){console.error(se)}}),children:N.value.templateOptions&&((G=N.value.templateOptions[z])!=null&&G.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}):o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:a("Not found in the template",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent !text-amber-800 dark:!text-amber-400 opacity-60",children:o.jsx(Ti,{size:14})})}),o.jsx(Wn,{sideOffset:12,align:"center",children:o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onSelect:()=>{var le;N.value=ae(R({},N.value),{templateOptions:[...(le=N.value.templateOptions)==null?void 0:le.filter((se,de)=>de!==z)]});const Z=JSON.stringify(N.value);try{S({updatedItem:{formTemplateOptions:Z,itemId:e}})}catch(se){console.error(se)}},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:a("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})})]})})]})]},z)}),c.value&&o.jsxs(re,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[a("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),o.jsx(In,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{c.value=!1}})]}),d.value.length>0&&o.jsxs(ve,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[o.jsxs(re,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[o.jsx(Ti,{size:13,className:"mr-1"}),a("Found in template but missing from fields definition",{ns:"common"}),":"]}),d==null?void 0:d.value.map((A,z)=>o.jsx(ne,{children:o.jsx(St,{variant:"outline",className:"bg-red-50 !text-red-500 dark:!text-red-400 dark:bg-red-950/80 border-red-100 dark:border-red-900 text-normal px-2",children:A})},z))]}),o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"gap-1 mt-2",children:[o.jsx(je,{size:"mini",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(b.value==="template"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-500 dark:text-slate-400 "," rounded-none px-2 py-0.5"),variant:"ghost",onClick:()=>{b.value="template"},children:a("Template",{ns:"dashboard"})}),C.value&&o.jsx(je,{size:"mini",variant:"ghost",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(b.value==="result"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-400 dark:text-slate-400"," rounded-none px-2 py-0.5"),onClick:()=>{b.value="result",T()},children:a("Result",{ns:"dashboard"})})]}),b.value==="template"?o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative rounded-md text-sm",children:[e&&o.jsx(mr,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{Tn.value?x(e):w(e)},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:15}):o.jsx(ba,{size:15})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:o.jsx(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:L})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:m.value,onValueChange:A=>{m.value=A==="labels"?"labels":"values"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"labels",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Labels",{ns:"dashboard"})}),o.jsx(jr,{value:"values",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Values",{ns:"dashboard"})})]})})]}):b.value==="result"&&C.value&&o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-0 rounded-md text-sm",children:[e&&o.jsx(mr,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{Tn.value?x(e):w(e)},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:15}):o.jsx(ba,{size:15})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:o.jsxs(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:[o.jsx("div",ae(R({},f.value==="html"&&{dangerouslySetInnerHTML:{__html:Th.sanitize(C.value)}}),{className:"font-normal"})),f.value==="text"&&C.value]})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:f.value,onValueChange:A=>{f.value=A==="html"?"html":"text"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Text",{ns:"dashboard"})}),o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("HTML",{ns:"dashboard"})})]})})]})]})]}),E.value&&o.jsx(ne,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:a("Updated",{ns:"common"})})]})}finally{r.f()}}const r2e=[qn.Down,qn.Right,qn.Up,qn.Left];function ob(t){if(!t)return!1;const e=t.data.current;return(e==null?void 0:e.type)===Ys||(e==null?void 0:e.type)===Wl||(e==null?void 0:e.type)===qo}const GC=t=>t.toString().split("::pinned")[0];function A7(t){let e=[];return t.children&&t.children.length>0&&t.children.forEach(n=>{e.push(n.id),e=e.concat(A7(n))}),e}const nj=(t,{context:{active:e,droppableRects:n,droppableContainers:r,collisionRect:s}})=>{if(r2e.includes(t.code)){if(t.preventDefault(),!e||!s)return;const a=[];r.getEnabled().forEach(c=>{var f,m,b;if(!c||c!=null&&c.disabled)return;const d=n.get(c.id);if(!d)return;const p=c.data.current;if(p){const{type:C,children:g}=p;if(C==="Column"&&(g==null?void 0:g.length)>0&&((f=e.data.current)==null?void 0:f.type)!=="Column")return}switch(t.code){case qn.Down:if(((m=e.data.current)==null?void 0:m.type)==="Column")return;s.topd.top&&a.push(c);break;case qn.Left:s.left>=d.left+d.width&&a.push(c);break;case qn.Right:s.left+s.width<=d.left&&a.push(c);break}});const i=PQ({active:e,collisionRect:s,droppableRects:n,droppableContainers:a,pointerCoordinates:null}),l=$8(i,"id");if(l!=null){const c=r.get(l),d=c==null?void 0:c.node.current,p=c==null?void 0:c.rect.current;if(d&&p)return{x:p.left,y:p.top}}}};function L7(t,e=!1,n=!1){if(!t||n)return{valuePreview:e&&t?t.substring(0,200).trim()+"...":(t==null?void 0:t.trim())||"No content",morePreviewLines:null,morePreviewChars:null};const r=t.replace(/\r\n/g,"\n");if(r.split("\n").length>=5&&!e){const i=r.split("\n").slice(0,5).join("\n"),l=r.split("\n").length-5;return{valuePreview:Wc.closeTags(i.trim()),morePreviewLines:l>0?l:null,morePreviewChars:l?null:r.length-160}}if(r.length>60&&!e){const a=r.length-60;return{valuePreview:Wc.closeTags(r.substring(0,60).trim())+"...",morePreviewLines:null,morePreviewChars:a>0?a:null}}else{const a=r.trim(),i=a.split("\n"),l=r.split("\n").length-i.length;return e?{valuePreview:a.substring(0,60)+"...",morePreviewLines:null,morePreviewChars:null}:{valuePreview:a,morePreviewLines:l>0?l:null,morePreviewChars:null}}}const JD=t=>t.isBoard!==void 0&&t.type===Ys,s2e=(t,e)=>{const n=r=>{if(!(!r||!e))for(const s of r){if(s.id===e&&JD(s))return s;if(JD(s)&&s.children){const a=n(s.children);if(a)return a}}};return n(t)};function YU({arrLinks:t=[],clipId:e,isShowLinkedClip:n,detectedLanguage:r,hasEmoji:s,hasMaskedWords:a,imageDataUrl:i,imageHash:l,imagePathFullRes:c,imageScale:d,imageType:p,imageWidthHeight:f,isCode:m,isCommand:b,isWebRequest:C,isWebScraping:g,isExpanded:w,isImage:x,isImageData:S,isLargeView:E,isLink:N,isForm:_,isTemplate:P,isMasked:I,isPath:T,isVideo:L,isMenu:A,isCopyOrPaste:z,isDark:Y,clipName:O,formTemplateOptions:$,commandRequestOutput:M,isCommandRequestRunError:W,commandRequestOutputLastRunAt:V,requestOptions:U,pathType:J,searchTerm:H,value:F=""}){var X,te,ee,G;var q=sn(1);try{const{t:Z}=Gt(),le=As(!1),se=As(!1),de=As(""),ce=v.useRef(null),{metadataLinkByItemId:ye}=Sx(N,e),pe=N&&!!(ye!=null&&ye.linkTitle&&(ye!=null&&ye.linkDomain)),me=As({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:be,morePreviewLines:Ee,morePreviewChars:We}=L7(F,x||S,E||N||T||b||C||g||_||P);v.useEffect(()=>{if(U)try{const Ge=JSON.parse(U);me.value=R(R({},me.value),Ge)}catch(Ge){}},[U]);const qe=F==null?void 0:F.trim();v.useEffect(()=>{w.value&&(se.value=!1)},[w.value]),v.useEffect(()=>{T&&Gs("check_path",{path:qe}).then(()=>{de.value=J}).catch(()=>{de.value="Error"})},[T]),v.useEffect(()=>{H&&(w.value=!0)},[H]);const ot=E?"max-h-[600px]":"max-h-[300px]",Ve=qe.length===0;return v.useEffect(()=>{var Ge;n&&((Ge=ce==null?void 0:ce.current)==null||Ge.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[n,ce==null?void 0:ce.current]),o.jsxs(Vh,{className:Pn(z?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-2 pr-1.5 py-1 mb-0.5 mx-1 text-left flex flex-col rounded-md select-auto relative"),children:[o.jsx(ne,{className:"mb-0.5",ref:ce,children:T?o.jsx(Tx,{theme:Y?gl.vsDark:gl.github,code:qe,language:"path",children:({className:Ge,style:ft,tokens:Ie,getLineProps:Ke,getTokenProps:ut})=>o.jsx("code",{className:"".concat(Ge," ").concat(de.value==="Error"?" line-through decoration-gray-300":""),style:ft,children:Ie.map(($e,ht)=>o.jsx("div",ae(R({},Ke({line:$e})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:$e.map((Fe,pt)=>o.jsx("span",ae(R({},ut({token:Fe})),{className:"".concat(de.value==="Error"?"opacity-60":""," select-text"),children:H?Kl(Fe.content,H):Fe.content}),pt))}),ht))})}):S?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:qe,hasError:le.value,onErrorCallback:()=>{le.value=!0},draggable:!1,decoding:"async",className:"".concat(ot," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:be})]}):N&&x?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(qe),hasError:le.value,onErrorCallback:()=>{le.value=!0},draggable:!1,decoding:"async",className:"".concat(ot," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:_h(qe,t)})]}):x?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards select-none",children:[E?o.jsx("img",{decoding:"async",srcSet:c&&i?"".concat(nh(c),"?").concat(l," ").concat(d,"x"):!i&&!c?uh:z1,src:c&&i?"".concat(nh(c),"?").concat(l):!i&&!c?uh:z1,className:"rounded-md shadow-sm border border-slate-100 dark:border-slate-600 object-scale-down"},e):o.jsx("img",{src:c&&(p==="webp"||p==="gif")?"".concat(nh(c),"?").concat(l):i&&c?i:!i&&!c?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:Z("Image size in pixels",{ns:"common"}),children:[f," ",p]})})]}):r&&m&&be?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isShowMore:w.value||Ee==null,isWrapped:se.value,value:w.value?qe:be,language:r})}):b&&be?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isCommand:!0,isShowMore:!0,isWrapped:se.value,autoHideScrollbar:!0,value:qe,language:"shell"}),M&&o.jsxs(ne,{className:"".concat(W?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border-0"),children:[o.jsx(Ca,{isDark:Y,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:M,language:"shell"}),V&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(Z("Last run",{ns:"dashboard"}),": ").concat(Mh(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(V,"mini-minute-now",{round:"floor"})})})]})]}):(C||g)&&be?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isShowMore:!0,isWrapped:se.value,value:qe,autoHideScrollbar:!0,webRequestMethod:C?me.value.method:"URL",language:"shell"}),M&&o.jsxs(ne,{className:"".concat(W?"bg-red-50 border-red-100":"bg-green-50 border-green-100"," ").concat(E?"py-1":"py-0"," rounded-md px-3 relative mb-1 border"),children:[o.jsx(Ca,{isDark:Y,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:M,language:W?"text":"json"}),V&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(Z("Last run",{ns:"dashboard"}),": ").concat(Mh(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(V,"mini-minute-now",{round:"floor"})})})]})]}):_?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(KU,{formTemplateOptions:$,clipId:e})}):P?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(GU,{formTemplateOptions:$,clipId:e,value:F})}):Ve?o.jsx("code",{className:"text-gray-300",children:O}):o.jsx(hk,{isExpanded:w.value,isWrapped:(X=se.value)!=null?X:!1,isImageData:S,isMasked:I,isLargeView:E,isCode:m,hasLinkCard:pe,metadataLinkByItemId:ye,isImage:x,trimmedValue:qe,valuePreview:be,morePreviewLines:Ee,isDark:Y,searchTerm:H})}),o.jsxs(ve,{className:"justify-between select-none",children:[!(C||b||g)&&M||E?o.jsx(ne,{className:"flex flex-row items-center rounded",children:o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:o.jsx(st,{text:se.value?Z("No Wrap",{ns:"common"}):Z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})}):Ee||We?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{w.value=!w.value},children:o.jsx(st,{text:w.value?"":Z("Show all",{ns:"common"}),isCompact:!0,isDisabled:w.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:w.value?o.jsxs(o.Fragment,{children:["- ",Z("show less",{ns:"common"})]}):We?o.jsxs(o.Fragment,{children:["+",We," ",Z("chars",{ns:"common"})]}):Ee&&o.jsxs(o.Fragment,{children:["+",Ee," ",Z("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:o.jsx(st,{text:se.value?Z("No Wrap",{ns:"common"}):Z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):o.jsx(ne,{}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[b&&o.jsx(ne,{className:"".concat(W?"bg-red-300 dark:bg-red-800 dark:text-slate-300 text-red-800":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:W?Z("Command error",{ns:"dashboard"}):Z("Type:::Command",{ns:"dashboard"})}),(C||g)&&o.jsxs(ve,{className:"gap-1",children:[o.jsxs(ne,{className:"".concat(W?"bg-red-300 dark:bg-red-600 dark:text-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[C&&o.jsx("span",{children:W?Z("Request error",{ns:"dashboard"}):Z("Type:::Request",{ns:"dashboard"})}),g&&o.jsx("span",{children:W?Z("Error",{ns:"dashboard"}):Z("Type:::Scraper",{ns:"dashboard"})})]}),g&&me.value.scrapingRules&&((te=me.value.scrapingRules)==null?void 0:te.filter(Ge=>Ge.isEnable).length)>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.headers.filter(Ge=>Ge.isEnable).length})]}),C&&me.value.headers.filter(Ge=>Ge.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.headers.filter(Ge=>Ge.isEnable).length})]}),C&&((ee=me.value.auth)==null?void 0:ee.isEnable)&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(G=me.value.auth)==null?void 0:G.type}),C&&me.value.filters.filter(Ge=>Ge.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Filters",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.filters.filter(Ge=>Ge.isEnable).length})]})]}),(I||a)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(a?"px-0.5":"px-1.5"),children:I?Z("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}),r&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r}),N&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:L?Z("Type:::Video",{ns:"common"}):qc(qe)?Z("Type:::Email",{ns:"common"}):Z("Type:::Link",{ns:"common"})}),T&&de.value&&o.jsx(ne,{className:"".concat(de.value==="Error"?"bg-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:de.value==="Error"?o.jsx(st,{text:Z("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:de.value}):de.value}),s&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Emoji",{ns:"common"})}),Ve&&!_&&!x&&o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:Z("Type:::Empty",{ns:"common"})}),S&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Image Base64",{ns:"common"})}),_&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Auto Fill",{ns:"common"})}),A&&o.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Type:::Menu",{ns:"common"}),o.jsx(px,{size:11,className:"ml-1"})]})]})]})]})}finally{q.f()}}v.memo(YU);function eI({clipId:t,color:e,isEditOnly:n,isLargeView:r,description:s,borderWidth:a,name:i}){var l=sn(1);try{const{t:c}=Gt(),d=it(!1),p=it(""),f=it(""),{themeDark:m}=Tt(bo),b=m(),{updateItemById:C}=bl(),g=it(am.value),w=it(!1);return v.useEffect(()=>{d.value=!1,p.value=i!=null?i:"",am.value=g.value},[g.value]),v.useEffect(()=>{i===c("New Clip",{ns:"dashboard"})&&(g.value=!0)},[i]),v.useEffect(()=>{f.value=s!=null?s:"",am.value=w.value},[w.value]),v.useEffect(()=>{n&&(g.value=!0)},[n]),v.useEffect(()=>{d.value?Ab.value=!0:Ab.value=!1},[d.value]),v.useEffect(()=>{if(Ib.value){if(Ib.value=!1,Ab.value=!1,!g.value&&!w.value)return;if(!p.value.length||p.value.length>fd){d.value=!0;return}w.value&&(C({updatedItem:{description:f.value,itemId:t}}),setTimeout(()=>{w.value=!1},200)),d.value||(C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1},200))}},[Ib.value]),o.jsx(ve,{className:"justify-start w-full",children:g.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:d.value,asChild:!0,classNameTrigger:"w-full",text:p.value.length<=X8?c("Too short",{ns:"dashboard"}):c("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold w-full min-w-[120px]",placeholder:c("Enter clip name",{ns:"dashboard"}),onBlur:()=>ge(this,null,function*(){(!p.value.length||p.value.length>fd)&&(d.value=!0)}),onKeyDown:x=>ge(this,null,function*(){x.stopPropagation(),x.key==="Escape"?g.value=!1:x.key==="Enter"&&(!p.value.length||p.value.length>fd)?d.value=!0:x.key==="Enter"&&(yield C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1,n&&Ff()},300))}),defaultValue:i,onFocus:x=>{i===c("New Clip",{ns:"dashboard"})&&x.target.select()},onChange:x=>{d.value&&x.target.value.length<=fd&&d.value&&x.target.value.length>0&&(d.value=!1),p.value=x.target.value}})}),o.jsxs(ve,{className:"ml-1",children:[o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){if(!p.value.length||p.value.length>fd){d.value=!0;return}d.value||(yield C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1,n&&Ff()},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{g.value=!1,n&&Ff()},children:o.jsx(In,{size:18})})})})]})]}):o.jsxs(ve,{className:"justify-start mr-1 w-full",children:[!w.value&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"min-w-[24px]",children:o.jsx(lk,{color:e!=null?e:null,borderWidth:a,type:qo,itemId:t,updateById:C})}),o.jsx(re,{className:"text-sm text-ellipsis pl-1 overflow-hidden whitespace-nowrap border-dashed border-b min-w-[40px] border-".concat(e||"slate","-400 hover:border-gray-400"),onClick:()=>{g.value=!0},color:"black",children:i}),o.jsx(ne,{onClick:()=>{g.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:c("Rename",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(Ud,{size:14})})})]}),o.jsx(ne,{title:s&&!w.value?c("Edit Note",{ns:"dashboard"}):void 0,className:"".concat(w.value?"":"ml-1"," pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100"),children:s?o.jsx(ww,{text:w.value?f.value:s,side:"right",isDark:b,align:"end",alignOffset:130,maxWidth:320,sideOffset:-10,asChild:!0,children:o.jsx(Mz,{size:16,onClick:()=>{w.value=!0}})}):o.jsx(st,{text:c("Add note",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:w.value,children:o.jsx(rle,{size:16,onClick:()=>{w.value=!0}})})}),!am.value&&o.jsxs(ve,{className:"ml-auto px-1.5 items-center justify-center",children:[o.jsx(mr,{className:"hover:bg-transparent mr-1.5",onClick:()=>{Ws.value=r?null:t},children:o.jsx(st,{text:c("Close Expand Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(dx,{size:13})})}),o.jsx(mr,{className:"hover:bg-transparent",onClick:()=>{Ff()},children:o.jsx(st,{text:c("Close Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})]}),w.value&&o.jsxs(ve,{className:"w-full justify-start items-center",children:[o.jsx(Co,{tabIndex:0,enableEmoji:!1,className:"bg-white w-full ml-2 rounded-md text-sm min-w-[120px]",classNameArea:"!pb-1",placeholder:c("Enter clip note",{ns:"dashboard"}),rows:1,autoFocus:!0,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:5,value:f.value,onKeyDown:x=>ge(this,null,function*(){x.stopPropagation(),x.key==="Escape"&&(w.value=!1)}),defaultValue:s!=null?s:"",onChange:x=>{f.value=x.target.value}}),o.jsxs(ve,{className:"ml-2",children:[o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){yield C({updatedItem:{description:f.value,itemId:t}}),setTimeout(()=>{w.value=!1},200)}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{w.value=!1},children:o.jsx(In,{size:18})})})})]})]})]})})}finally{l.f()}}function ZU(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("rect",{x:"6.881",y:"6.83",width:"10.2",height:"10.2",className:"opacity-50",stroke:"none",fill:"currentColor"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function XU(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("path",{fill:"currentColor",stroke:"none",d:"m18.4044 17.0597-1.3474 1.3474H8.2988l1.3474-1.3474h8.7582ZM14.52 5.0053l3.811 3.811-.5695.7343-1.0281 1.3106-.6031.7568-.5374.6632-.3597.436-.4222.4997-.2734.3133-.2364.2606-.1994.2081-.4734.4683-.9742.9883-.514.5288-.1854-.0092-.1944-.003c-.3311 0-.699.0257-1.1035.077l-.2536.0356-.2478.0408-.237.0439-.3247.067-.6212.1496-2.021 1.0105-1.3475.3369.3369-1.3474 1.0105-2.0211.032-.076.0564-.1558.0474-.1502.0516-.187a6.8003 6.8003 0 0 0 .1495-.7784 10.6177 10.6177 0 0 0 .088-1.797l.1045-.1176.1065-.1134.497-.5086 1.1954-1.1882.3684-.3535.4097-.3752.3575-.3158.3839-.3296.4103-.3434.4366-.3573.4631-.3711.7442-.5827.529-.4057.5556-.4196.5819-.4335ZM8.7067 12.357a11.8664 11.8664 0 0 1-.036.4396l-.0472.4013a8.6212 8.6212 0 0 1-.112.649l-.1351.572.5888.5408.5814-.0902c.3209-.0649.6365-.1185.9407-.157.1784-.0227.3517-.041.52-.055L8.7067 12.357Zm5.6858-5.5734-.19.144-.7708.5933-.4798.3773-.4525.3626-.425.3476-.3975.3325-.3696.3172-.3416.3015-.4179.383-.3182.3058-.8657.8602 2.861 2.861.1762-.1794.5993-.5981.1285-.1254.174-.181.2194-.2415.2594-.297.412-.4874.3522-.4267.5305-.655.5967-.7486.8638-1.1014-2.1444-2.1445Z"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,viewBox:"0 0 24 24",onClick:t.onClick,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}(function(t,e){(function(n){n(hu)})(function(n){function r(i,l,c){this.orientation=l,this.scroll=c,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=i+"-"+l,this.inner=this.node.appendChild(document.createElement("div"));var d=this;n.on(this.inner,"mousedown",function(f){if(f.which!=1)return;n.e_preventDefault(f);var m=d.orientation=="horizontal"?"pageX":"pageY",b=f[m],C=d.pos;function g(){n.off(document,"mousemove",w),n.off(document,"mouseup",g)}function w(x){if(x.which!=1)return g();d.moveTo(C+(x[m]-b)*(d.total/d.size))}n.on(document,"mousemove",w),n.on(document,"mouseup",g)}),n.on(this.node,"click",function(f){n.e_preventDefault(f);var m=d.inner.getBoundingClientRect(),b;d.orientation=="horizontal"?b=f.clientXm.right?1:0:b=f.clientYm.bottom?1:0,d.moveTo(d.pos+b*d.screen)});function p(f){var m=n.wheelEventPixels(f)[d.orientation=="horizontal"?"x":"y"],b=d.pos;d.moveTo(d.pos+m),d.pos!=b&&n.e_preventDefault(f)}n.on(this.node,"mousewheel",p),n.on(this.node,"DOMMouseScroll",p)}r.prototype.setPos=function(i,l){return i<0&&(i=0),i>this.total-this.screen&&(i=this.total-this.screen),!l&&i==this.pos?!1:(this.pos=i,this.inner.style[this.orientation=="horizontal"?"left":"top"]=i*(this.size/this.total)+"px",!0)},r.prototype.moveTo=function(i){this.setPos(i)&&this.scroll(i,this.orientation)};var s=10;r.prototype.update=function(i,l,c){var d=this.screen!=l||this.total!=i||this.size!=c;d&&(this.screen=l,this.total=i,this.size=c);var p=this.screen*(this.size/this.total);pi.clientWidth+1,p=i.scrollHeight>i.clientHeight+1;return this.vert.node.style.display=p?"block":"none",this.horiz.node.style.display=d?"block":"none",p&&(this.vert.update(i.scrollHeight,i.clientHeight,i.viewHeight-(d?c:0)),this.vert.node.style.bottom=d?c+"px":"0"),d&&(this.horiz.update(i.scrollWidth,i.clientWidth,i.viewWidth-(p?c:0)-i.barLeft),this.horiz.node.style.right=p?c+"px":"0",this.horiz.node.style.left=i.barLeft+"px"),{right:p?c:0,bottom:d?c:0}},a.prototype.setScrollTop=function(i){this.vert.setPos(i)},a.prototype.setScrollLeft=function(i){this.horiz.setPos(i)},a.prototype.clear=function(){var i=this.horiz.node.parentNode;i.removeChild(this.horiz.node),i.removeChild(this.vert.node)},n.scrollbarModel.simple=function(i,l){return new a("CodeMirror-simplescroll",i,l)},n.scrollbarModel.overlay=function(i,l){return new a("CodeMirror-overlayscroll",i,l)}})})();var tI={exports:{}},nI;function a2e(){return nI||(nI=1,function(t,e){(function(n){n(hu)})(function(n){n.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var r=0;r-1&&a.substring(c+1,a.length);if(d)return n.findModeByExtension(d)},n.findModeByName=function(a){a=a.toLowerCase();for(var i=0;i!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(oe){for(var fe=!1,Xe,Me=!1;(Xe=oe.next())!=null;){if(!fe){if(Xe=="/"&&!Me)return;Xe=="["?Me=!0:Me&&Xe=="]"&&(Me=!1)}fe=!fe&&Xe=="\\"}}var w,x;function S(oe,fe,Xe){return w=oe,x=Xe,fe}function E(oe,fe){var Xe=oe.next();if(Xe=='"'||Xe=="'")return fe.tokenize=N(Xe),fe.tokenize(oe,fe);if(Xe=="."&&oe.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(Xe=="."&&oe.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Xe))return S(Xe);if(Xe=="="&&oe.eat(">"))return S("=>","operator");if(Xe=="0"&&oe.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(Xe))return oe.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(Xe=="/")return oe.eat("*")?(fe.tokenize=_,_(oe,fe)):oe.eat("/")?(oe.skipToEnd(),S("comment","comment")):vn(oe,fe,1)?(g(oe),oe.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(oe.eat("="),S("operator","operator",oe.current()));if(Xe=="`")return fe.tokenize=P,P(oe,fe);if(Xe=="#"&&oe.peek()=="!")return oe.skipToEnd(),S("meta","meta");if(Xe=="#"&&oe.eatWhile(f))return S("variable","property");if(Xe=="<"&&oe.match("!--")||Xe=="-"&&oe.match("->")&&!/\S/.test(oe.string.slice(0,oe.start)))return oe.skipToEnd(),S("comment","comment");if(b.test(Xe))return(Xe!=">"||!fe.lexical||fe.lexical.type!=">")&&(oe.eat("=")?(Xe=="!"||Xe=="=")&&oe.eat("="):/[<>*+\-|&?]/.test(Xe)&&(oe.eat(Xe),Xe==">"&&oe.eat(Xe))),Xe=="?"&&oe.eat(".")?S("."):S("operator","operator",oe.current());if(f.test(Xe)){oe.eatWhile(f);var Me=oe.current();if(fe.lastType!="."){if(m.propertyIsEnumerable(Me)){var _e=m[Me];return S(_e.type,_e.style,Me)}if(Me=="async"&&oe.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",Me)}return S("variable","variable",Me)}}function N(oe){return function(fe,Xe){var Me=!1,_e;if(l&&fe.peek()=="@"&&fe.match(C))return Xe.tokenize=E,S("jsonld-keyword","meta");for(;(_e=fe.next())!=null&&!(_e==oe&&!Me);)Me=!Me&&_e=="\\";return Me||(Xe.tokenize=E),S("string","string")}}function _(oe,fe){for(var Xe=!1,Me;Me=oe.next();){if(Me=="/"&&Xe){fe.tokenize=E;break}Xe=Me=="*"}return S("comment","comment")}function P(oe,fe){for(var Xe=!1,Me;(Me=oe.next())!=null;){if(!Xe&&(Me=="`"||Me=="$"&&oe.eat("{"))){fe.tokenize=E;break}Xe=!Xe&&Me=="\\"}return S("quasi","string-2",oe.current())}var I="([{}])";function T(oe,fe){fe.fatArrowAt&&(fe.fatArrowAt=null);var Xe=oe.string.indexOf("=>",oe.start);if(!(Xe<0)){if(p){var Me=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(oe.string.slice(oe.start,Xe));Me&&(Xe=Me.index)}for(var _e=0,He=!1,Ct=Xe-1;Ct>=0;--Ct){var cn=oe.string.charAt(Ct),zn=I.indexOf(cn);if(zn>=0&&zn<3){if(!_e){++Ct;break}if(--_e==0){cn=="("&&(He=!0);break}}else if(zn>=3&&zn<6)++_e;else if(f.test(cn))He=!0;else if(/["'\/`]/.test(cn))for(;;--Ct){if(Ct==0)return;var Mn=oe.string.charAt(Ct-1);if(Mn==cn&&oe.string.charAt(Ct-2)!="\\"){Ct--;break}}else if(He&&!_e){++Ct;break}}He&&!_e&&(fe.fatArrowAt=Ct)}}var L={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(oe,fe,Xe,Me,_e,He){this.indented=oe,this.column=fe,this.type=Xe,this.prev=_e,this.info=He,Me!=null&&(this.align=Me)}function z(oe,fe){if(!d)return!1;for(var Xe=oe.localVars;Xe;Xe=Xe.next)if(Xe.name==fe)return!0;for(var Me=oe.context;Me;Me=Me.prev)for(var Xe=Me.vars;Xe;Xe=Xe.next)if(Xe.name==fe)return!0}function Y(oe,fe,Xe,Me,_e){var He=oe.cc;for(O.state=oe,O.stream=_e,O.marked=null,O.cc=He,O.style=fe,oe.lexical.hasOwnProperty("align")||(oe.lexical.align=!0);;){var Ct=He.length?He.pop():c?ce:se;if(Ct(Xe,Me)){for(;He.length&&He[He.length-1].lex;)He.pop()();return O.marked?O.marked:Xe=="variable"&&z(oe,Me)?"variable-2":fe}}}var O={state:null,column:null,marked:null,cc:null};function $(){for(var oe=arguments.length-1;oe>=0;oe--)O.cc.push(arguments[oe])}function M(){return $.apply(null,arguments),!0}function W(oe,fe){for(var Xe=fe;Xe;Xe=Xe.next)if(Xe.name==oe)return!0;return!1}function V(oe){var fe=O.state;if(O.marked="def",!!d){if(fe.context){if(fe.lexical.info=="var"&&fe.context&&fe.context.block){var Xe=U(oe,fe.context);if(Xe!=null){fe.context=Xe;return}}else if(!W(oe,fe.localVars)){fe.localVars=new F(oe,fe.localVars);return}}s.globalVars&&!W(oe,fe.globalVars)&&(fe.globalVars=new F(oe,fe.globalVars))}}function U(oe,fe){if(fe)if(fe.block){var Xe=U(oe,fe.prev);return Xe?Xe==fe.prev?fe:new H(Xe,fe.vars,!0):null}else return W(oe,fe.vars)?fe:new H(fe.prev,new F(oe,fe.vars),!1);else return null}function J(oe){return oe=="public"||oe=="private"||oe=="protected"||oe=="abstract"||oe=="readonly"}function H(oe,fe,Xe){this.prev=oe,this.vars=fe,this.block=Xe}function F(oe,fe){this.name=oe,this.next=fe}var q=new F("this",new F("arguments",null));function X(){O.state.context=new H(O.state.context,O.state.localVars,!1),O.state.localVars=q}function te(){O.state.context=new H(O.state.context,O.state.localVars,!0),O.state.localVars=null}X.lex=te.lex=!0;function ee(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}ee.lex=!0;function G(oe,fe){var Xe=function(){var Me=O.state,_e=Me.indented;if(Me.lexical.type=="stat")_e=Me.lexical.indented;else for(var He=Me.lexical;He&&He.type==")"&&He.align;He=He.prev)_e=He.indented;Me.lexical=new A(_e,O.stream.column(),oe,null,Me.lexical,fe)};return Xe.lex=!0,Xe}function Z(){var oe=O.state;oe.lexical.prev&&(oe.lexical.type==")"&&(oe.indented=oe.lexical.indented),oe.lexical=oe.lexical.prev)}Z.lex=!0;function le(oe){function fe(Xe){return Xe==oe?M():oe==";"||Xe=="}"||Xe==")"||Xe=="]"?$():M(fe)}return fe}function se(oe,fe){return oe=="var"?M(G("vardef",fe),Re,le(";"),Z):oe=="keyword a"?M(G("form"),pe,se,Z):oe=="keyword b"?M(G("form"),se,Z):oe=="keyword d"?O.stream.match(/^\s*$/,!1)?M():M(G("stat"),be,le(";"),Z):oe=="debugger"?M(le(";")):oe=="{"?M(G("}"),te,Ut,Z,ee):oe==";"?M():oe=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==Z&&O.state.cc.pop()(),M(G("form"),pe,se,Z,Mt)):oe=="function"?M(mn):oe=="for"?M(G("form"),te,an,se,ee,Z):oe=="class"||p&&fe=="interface"?(O.marked="keyword",M(G("form",oe=="class"?oe:fe),pn,Z)):oe=="variable"?p&&fe=="declare"?(O.marked="keyword",M(se)):p&&(fe=="module"||fe=="enum"||fe=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",fe=="enum"?M(tt):fe=="type"?M(nn,le("operator"),Pt,le(";")):M(G("form"),Oe,le("{"),G("}"),Ut,Z,Z)):p&&fe=="namespace"?(O.marked="keyword",M(G("form"),ce,se,Z)):p&&fe=="abstract"?(O.marked="keyword",M(se)):M(G("stat"),ut):oe=="switch"?M(G("form"),pe,le("{"),G("}","switch"),te,Ut,Z,Z,ee):oe=="case"?M(ce,le(":")):oe=="default"?M(le(":")):oe=="catch"?M(G("form"),X,de,se,Z,ee):oe=="export"?M(G("stat"),Ye,Z):oe=="import"?M(G("stat"),mt,Z):oe=="async"?M(se):fe=="@"?M(ce,se):$(G("stat"),ce,le(";"),Z)}function de(oe){if(oe=="(")return M(on,le(")"))}function ce(oe,fe){return me(oe,fe,!1)}function ye(oe,fe){return me(oe,fe,!0)}function pe(oe){return oe!="("?$():M(G(")"),be,le(")"),Z)}function me(oe,fe,Xe){if(O.state.fatArrowAt==O.stream.start){var Me=Xe?Ge:Ve;if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,le("=>"),Me,ee);if(oe=="variable")return $(X,Oe,le("=>"),Me,ee)}var _e=Xe?We:Ee;return L.hasOwnProperty(oe)?M(_e):oe=="function"?M(mn,_e):oe=="class"||p&&fe=="interface"?(O.marked="keyword",M(G("form"),Sn,Z)):oe=="keyword c"||oe=="async"?M(Xe?ye:ce):oe=="("?M(G(")"),be,le(")"),Z,_e):oe=="operator"||oe=="spread"?M(Xe?ye:ce):oe=="["?M(G("]"),Bt,Z,_e):oe=="{"?Lt(ht,"}",null,_e):oe=="quasi"?$(qe,_e):oe=="new"?M(ft(Xe)):M()}function be(oe){return oe.match(/[;\}\)\],]/)?$():$(ce)}function Ee(oe,fe){return oe==","?M(be):We(oe,fe,!1)}function We(oe,fe,Xe){var Me=Xe==!1?Ee:We,_e=Xe==!1?ce:ye;if(oe=="=>")return M(X,Xe?Ge:Ve,ee);if(oe=="operator")return/\+\+|--/.test(fe)||p&&fe=="!"?M(Me):p&&fe=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?M(G(">"),Qe(Pt,">"),Z,Me):fe=="?"?M(ce,le(":"),_e):M(_e);if(oe=="quasi")return $(qe,Me);if(oe!=";"){if(oe=="(")return Lt(ye,")","call",Me);if(oe==".")return M($e,Me);if(oe=="[")return M(G("]"),be,le("]"),Z,Me);if(p&&fe=="as")return O.marked="keyword",M(Pt,Me);if(oe=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),M(_e)}}function qe(oe,fe){return oe!="quasi"?$():fe.slice(fe.length-2)!="${"?M(qe):M(be,ot)}function ot(oe){if(oe=="}")return O.marked="string-2",O.state.tokenize=P,M(qe)}function Ve(oe){return T(O.stream,O.state),$(oe=="{"?se:ce)}function Ge(oe){return T(O.stream,O.state),$(oe=="{"?se:ye)}function ft(oe){return function(fe){return fe=="."?M(oe?Ke:Ie):fe=="variable"&&p?M(Pe,oe?We:Ee):$(oe?ye:ce)}}function Ie(oe,fe){if(fe=="target")return O.marked="keyword",M(Ee)}function Ke(oe,fe){if(fe=="target")return O.marked="keyword",M(We)}function ut(oe){return oe==":"?M(Z,se):$(Ee,le(";"),Z)}function $e(oe){if(oe=="variable")return O.marked="property",M()}function ht(oe,fe){if(oe=="async")return O.marked="property",M(ht);if(oe=="variable"||O.style=="keyword"){if(O.marked="property",fe=="get"||fe=="set")return M(Fe);var Xe;return p&&O.state.fatArrowAt==O.stream.start&&(Xe=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+Xe[0].length),M(pt)}else{if(oe=="number"||oe=="string")return O.marked=l?"property":O.style+" property",M(pt);if(oe=="jsonld-keyword")return M(pt);if(p&&J(fe))return O.marked="keyword",M(ht);if(oe=="[")return M(ce,wt,le("]"),pt);if(oe=="spread")return M(ye,pt);if(fe=="*")return O.marked="keyword",M(ht);if(oe==":")return $(pt)}}function Fe(oe){return oe!="variable"?$(pt):(O.marked="property",M(mn))}function pt(oe){if(oe==":")return M(ye);if(oe=="(")return $(mn)}function Qe(oe,fe,Xe){function Me(_e,He){if(Xe?Xe.indexOf(_e)>-1:_e==","){var Ct=O.state.lexical;return Ct.info=="call"&&(Ct.pos=(Ct.pos||0)+1),M(function(cn,zn){return cn==fe||zn==fe?$():$(oe)},Me)}return _e==fe||He==fe?M():Xe&&Xe.indexOf(";")>-1?$(oe):M(le(fe))}return function(_e,He){return _e==fe||He==fe?M():$(oe,Me)}}function Lt(oe,fe,Xe){for(var Me=3;Me"),Pt);if(oe=="quasi")return $(we,nt)}function Ue(oe){if(oe=="=>")return M(Pt)}function Je(oe){return oe.match(/[\}\)\]]/)?M():oe==","||oe==";"?M(Je):$(jt,Je)}function jt(oe,fe){if(oe=="variable"||O.style=="keyword")return O.marked="property",M(jt);if(fe=="?"||oe=="number"||oe=="string")return M(jt);if(oe==":")return M(Pt);if(oe=="[")return M(le("variable"),Xt,le("]"),jt);if(oe=="(")return $(hn,jt);if(!oe.match(/[;\}\)\],]/))return M()}function we(oe,fe){return oe!="quasi"?$():fe.slice(fe.length-2)!="${"?M(we):M(Pt,Se)}function Se(oe){if(oe=="}")return O.marked="string-2",O.state.tokenize=P,M(we)}function De(oe,fe){return oe=="variable"&&O.stream.match(/^\s*[?:]/,!1)||fe=="?"?M(De):oe==":"?M(Pt):oe=="spread"?M(De):$(Pt)}function nt(oe,fe){if(fe=="<")return M(G(">"),Qe(Pt,">"),Z,nt);if(fe=="|"||oe=="."||fe=="&")return M(Pt);if(oe=="[")return M(Pt,le("]"),nt);if(fe=="extends"||fe=="implements")return O.marked="keyword",M(Pt);if(fe=="?")return M(Pt,le(":"),Pt)}function Pe(oe,fe){if(fe=="<")return M(G(">"),Qe(Pt,">"),Z,nt)}function gt(){return $(Pt,Ze)}function Ze(oe,fe){if(fe=="=")return M(Pt)}function Re(oe,fe){return fe=="enum"?(O.marked="keyword",M(tt)):$(Oe,wt,bt,_t)}function Oe(oe,fe){if(p&&J(fe))return O.marked="keyword",M(Oe);if(oe=="variable")return V(fe),M();if(oe=="spread")return M(Oe);if(oe=="[")return Lt(Et,"]");if(oe=="{")return Lt(et,"}")}function et(oe,fe){return oe=="variable"&&!O.stream.match(/^\s*:/,!1)?(V(fe),M(bt)):(oe=="variable"&&(O.marked="property"),oe=="spread"?M(Oe):oe=="}"?$():oe=="["?M(ce,le("]"),le(":"),et):M(le(":"),Oe,bt))}function Et(){return $(Oe,bt)}function bt(oe,fe){if(fe=="=")return M(ye)}function _t(oe){if(oe==",")return M(Re)}function Mt(oe,fe){if(oe=="keyword b"&&fe=="else")return M(G("form","else"),se,Z)}function an(oe,fe){if(fe=="await")return M(an);if(oe=="(")return M(G(")"),dn,Z)}function dn(oe){return oe=="var"?M(Re,fn):oe=="variable"?M(fn):$(fn)}function fn(oe,fe){return oe==")"?M():oe==";"?M(fn):fe=="in"||fe=="of"?(O.marked="keyword",M(ce,fn)):$(ce,fn)}function mn(oe,fe){if(fe=="*")return O.marked="keyword",M(mn);if(oe=="variable")return V(fe),M(mn);if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,$t,se,ee);if(p&&fe=="<")return M(G(">"),Qe(gt,">"),Z,mn)}function hn(oe,fe){if(fe=="*")return O.marked="keyword",M(hn);if(oe=="variable")return V(fe),M(hn);if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,$t,ee);if(p&&fe=="<")return M(G(">"),Qe(gt,">"),Z,hn)}function nn(oe,fe){if(oe=="keyword"||oe=="variable")return O.marked="type",M(nn);if(fe=="<")return M(G(">"),Qe(gt,">"),Z)}function on(oe,fe){return fe=="@"&&M(ce,on),oe=="spread"?M(on):p&&J(fe)?(O.marked="keyword",M(on)):p&&oe=="this"?M(wt,bt):$(Oe,wt,bt)}function Sn(oe,fe){return oe=="variable"?pn(oe,fe):rn(oe,fe)}function pn(oe,fe){if(oe=="variable")return V(fe),M(rn)}function rn(oe,fe){if(fe=="<")return M(G(">"),Qe(gt,">"),Z,rn);if(fe=="extends"||fe=="implements"||p&&oe==",")return fe=="implements"&&(O.marked="keyword"),M(p?Pt:ce,rn);if(oe=="{")return M(G("}"),ct,Z)}function ct(oe,fe){if(oe=="async"||oe=="variable"&&(fe=="static"||fe=="get"||fe=="set"||p&&J(fe))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",M(ct);if(oe=="variable"||O.style=="keyword")return O.marked="property",M(xe,ct);if(oe=="number"||oe=="string")return M(xe,ct);if(oe=="[")return M(ce,wt,le("]"),xe,ct);if(fe=="*")return O.marked="keyword",M(ct);if(p&&oe=="(")return $(hn,ct);if(oe==";"||oe==",")return M(ct);if(oe=="}")return M();if(fe=="@")return M(ce,ct)}function xe(oe,fe){if(fe=="!"||fe=="?")return M(xe);if(oe==":")return M(Pt,bt);if(fe=="=")return M(ye);var Xe=O.state.lexical.prev,Me=Xe&&Xe.info=="interface";return $(Me?hn:mn)}function Ye(oe,fe){return fe=="*"?(O.marked="keyword",M(Ht,le(";"))):fe=="default"?(O.marked="keyword",M(ce,le(";"))):oe=="{"?M(Qe(dt,"}"),Ht,le(";")):$(se)}function dt(oe,fe){if(fe=="as")return O.marked="keyword",M(le("variable"));if(oe=="variable")return $(ye,dt)}function mt(oe){return oe=="string"?M():oe=="("?$(ce):oe=="."?$(Ee):$(xt,It,Ht)}function xt(oe,fe){return oe=="{"?Lt(xt,"}"):(oe=="variable"&&V(fe),fe=="*"&&(O.marked="keyword"),M(At))}function It(oe){if(oe==",")return M(xt,It)}function At(oe,fe){if(fe=="as")return O.marked="keyword",M(xt)}function Ht(oe,fe){if(fe=="from")return O.marked="keyword",M(ce)}function Bt(oe){return oe=="]"?M():$(Qe(ye,"]"))}function tt(){return $(G("form"),Oe,le("{"),G("}"),Qe(Kt,"}"),Z,Z)}function Kt(){return $(Oe,bt)}function Zt(oe,fe){return oe.lastType=="operator"||oe.lastType==","||b.test(fe.charAt(0))||/[,.]/.test(fe.charAt(0))}function vn(oe,fe,Xe){return fe.tokenize==E&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(fe.lastType)||fe.lastType=="quasi"&&/\{\s*$/.test(oe.string.slice(0,oe.pos-(Xe||0)))}return{startState:function(oe){var fe={tokenize:E,lastType:"sof",cc:[],lexical:new A((oe||0)-a,0,"block",!1),localVars:s.localVars,context:s.localVars&&new H(null,null,!1),indented:oe||0};return s.globalVars&&typeof s.globalVars=="object"&&(fe.globalVars=s.globalVars),fe},token:function(oe,fe){if(oe.sol()&&(fe.lexical.hasOwnProperty("align")||(fe.lexical.align=!1),fe.indented=oe.indentation(),T(oe,fe)),fe.tokenize!=_&&oe.eatSpace())return null;var Xe=fe.tokenize(oe,fe);return w=="comment"?Xe:(fe.lastType=w=="operator"&&(x=="++"||x=="--")?"incdec":w,Y(fe,Xe,w,x,oe))},indent:function(oe,fe){if(oe.tokenize==_||oe.tokenize==P)return n.Pass;if(oe.tokenize!=E)return 0;var Xe=fe&&fe.charAt(0),Me=oe.lexical,_e;if(!/^\s*else\b/.test(fe))for(var He=oe.cc.length-1;He>=0;--He){var Ct=oe.cc[He];if(Ct==Z)Me=Me.prev;else if(Ct!=Mt&&Ct!=ee)break}for(;(Me.type=="stat"||Me.type=="form")&&(Xe=="}"||(_e=oe.cc[oe.cc.length-1])&&(_e==Ee||_e==We)&&!/^[,\.=+\-*:?[\(]/.test(fe));)Me=Me.prev;i&&Me.type==")"&&Me.prev.type=="stat"&&(Me=Me.prev);var cn=Me.type,zn=Xe==cn;return cn=="vardef"?Me.indented+(oe.lastType=="operator"||oe.lastType==","?Me.info.length+1:0):cn=="form"&&Xe=="{"?Me.indented:cn=="form"?Me.indented+a:cn=="stat"?Me.indented+(Zt(oe,fe)?i||a:0):Me.info=="switch"&&!zn&&s.doubleIndentSwitch!=!1?Me.indented+(/^(?:case|default)\b/.test(fe)?a:2*a):Me.align?Me.column+(zn?0:1):Me.indented+(zn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:l,jsonMode:c,expressionAllowed:vn,skipExpression:function(oe){Y(oe,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),rI.exports}var QU=o2e();const i2e=cu(QU),JU=Bw({__proto__:null,default:i2e},[QU]);var aI={exports:{}},oI;function l2e(){return oI||(oI=1,function(t,e){(function(n){n(hu)})(function(n){var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(a,i){var l=a.indentUnit,c={},d=i.htmlMode?r:s;for(var p in d)c[p]=d[p];for(var p in i)c[p]=i[p];var f,m;function b(M,W){function V(H){return W.tokenize=H,H(M,W)}var U=M.next();if(U=="<")return M.eat("!")?M.eat("[")?M.match("CDATA[")?V(w("atom","]]>")):null:M.match("--")?V(w("comment","-->")):M.match("DOCTYPE",!0,!0)?(M.eatWhile(/[\w\._\-]/),V(x(1))):null:M.eat("?")?(M.eatWhile(/[\w\._\-]/),W.tokenize=w("meta","?>"),"meta"):(f=M.eat("/")?"closeTag":"openTag",W.tokenize=C,"tag bracket");if(U=="&"){var J;return M.eat("#")?M.eat("x")?J=M.eatWhile(/[a-fA-F\d]/)&&M.eat(";"):J=M.eatWhile(/[\d]/)&&M.eat(";"):J=M.eatWhile(/[\w\.\-:]/)&&M.eat(";"),J?"atom":"error"}else return M.eatWhile(/[^&<]/),null}b.isInText=!0;function C(M,W){var V=M.next();if(V==">"||V=="/"&&M.eat(">"))return W.tokenize=b,f=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return f="equals",null;if(V=="<"){W.tokenize=b,W.state=P,W.tagName=W.tagStart=null;var U=W.tokenize(M,W);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(V)?(W.tokenize=g(V),W.stringStartCol=M.column(),W.tokenize(M,W)):(M.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(M){var W=function(V,U){for(;!V.eol();)if(V.next()==M){U.tokenize=C;break}return"string"};return W.isInAttribute=!0,W}function w(M,W){return function(V,U){for(;!V.eol();){if(V.match(W)){U.tokenize=b;break}V.next()}return M}}function x(M){return function(W,V){for(var U;(U=W.next())!=null;){if(U=="<")return V.tokenize=x(M+1),V.tokenize(W,V);if(U==">")if(M==1){V.tokenize=b;break}else return V.tokenize=x(M-1),V.tokenize(W,V)}return"meta"}}function S(M){return M&&M.toLowerCase()}function E(M,W,V){this.prev=M.context,this.tagName=W||"",this.indent=M.indented,this.startOfLine=V,(c.doNotIndent.hasOwnProperty(W)||M.context&&M.context.noIndent)&&(this.noIndent=!0)}function N(M){M.context&&(M.context=M.context.prev)}function _(M,W){for(var V;;){if(!M.context||(V=M.context.tagName,!c.contextGrabbers.hasOwnProperty(S(V))||!c.contextGrabbers[S(V)].hasOwnProperty(S(W))))return;N(M)}}function P(M,W,V){return M=="openTag"?(V.tagStart=W.column(),I):M=="closeTag"?T:P}function I(M,W,V){return M=="word"?(V.tagName=W.current(),m="tag",z):c.allowMissingTagName&&M=="endTag"?(m="tag bracket",z(M,W,V)):(m="error",I)}function T(M,W,V){if(M=="word"){var U=W.current();return V.context&&V.context.tagName!=U&&c.implicitlyClosed.hasOwnProperty(S(V.context.tagName))&&N(V),V.context&&V.context.tagName==U||c.matchClosing===!1?(m="tag",L):(m="tag error",A)}else return c.allowMissingTagName&&M=="endTag"?(m="tag bracket",L(M,W,V)):(m="error",A)}function L(M,W,V){return M!="endTag"?(m="error",L):(N(V),P)}function A(M,W,V){return m="error",L(M,W,V)}function z(M,W,V){if(M=="word")return m="attribute",Y;if(M=="endTag"||M=="selfcloseTag"){var U=V.tagName,J=V.tagStart;return V.tagName=V.tagStart=null,M=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(S(U))?_(V,U):(_(V,U),V.context=new E(V,U,J==V.indented)),P}return m="error",z}function Y(M,W,V){return M=="equals"?O:(c.allowMissing||(m="error"),z(M,W,V))}function O(M,W,V){return M=="string"?$:M=="word"&&c.allowUnquoted?(m="string",z):(m="error",z(M,W,V))}function $(M,W,V){return M=="string"?$:z(M,W,V)}return{startState:function(M){var W={tokenize:b,state:P,indented:M||0,tagName:null,tagStart:null,context:null};return M!=null&&(W.baseIndent=M),W},token:function(M,W){if(!W.tagName&&M.sol()&&(W.indented=M.indentation()),M.eatSpace())return null;f=null;var V=W.tokenize(M,W);return(V||f)&&V!="comment"&&(m=null,W.state=W.state(f||V,M,W),m&&(V=m=="error"?V+" error":m)),V},indent:function(M,W,V){var U=M.context;if(M.tokenize.isInAttribute)return M.tagStart==M.indented?M.stringStartCol+1:M.indented+l;if(U&&U.noIndent)return n.Pass;if(M.tokenize!=C&&M.tokenize!=b)return V?V.match(/^(\s*)/)[0].length:0;if(M.tagName)return c.multilineTagIndentPastTag!==!1?M.tagStart+M.tagName.length+2:M.tagStart+l*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(M){M.state==O&&(M.state=z)},xmlCurrentTag:function(M){return M.tagName?{name:M.tagName,close:M.type=="closeTag"}:null},xmlCurrentContext:function(M){for(var W=[],V=M.context;V;V=V.prev)W.push(V.tagName);return W.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),aI.exports}var eW=l2e();const c2e=cu(eW),tW=Bw({__proto__:null,default:c2e},[eW]);(function(t,e){(function(n){n(hu)})(function(n){var r="CodeMirror-activeline",s="CodeMirror-activeline-background",a="CodeMirror-activeline-gutter";n.defineOption("styleActiveLine",!1,function(p,f,m){var b=m==n.Init?!1:m;f!=b&&(b&&(p.off("beforeSelectionChange",d),i(p),delete p.state.activeLines),f&&(p.state.activeLines=[],c(p,p.listSelections()),p.on("beforeSelectionChange",d)))});function i(p){for(var f=0;f2&&_.token&&typeof _.token!="string"){for(var T=2;T-1)return n.Pass;var x=C.indent.length-1,S=m[C.state];e:for(;;){for(var E=0;E{var S;const{options:n={},value:r="",width:s="100%",height:a="100%",isDark:i=!1,isCmd:l=!1,autofocus:c=!0,lineWrapping:d,lineNumbers:p=!0,lazyLoadMode:f=!0}=t,m=v.useRef(null),b=v.useRef(null),C=v.useRef(t),g={tabSize:2,scrollbarStyle:"simple",lineNumbers:p,viewportMargin:1/0,styleActiveLine:!0,lineWrapping:d,autofocus:c,lineNumberFormatter:E=>l?">_":"".concat(E),showCursorWhenSelecting:!0};v.useImperativeHandle(e,()=>({editor:m,textarea:b.current})),C.current=t;function w(){const N=Object.keys(t).filter(P=>/^on+/.test(P)),_={};return N.forEach(P=>{const I=P.slice(2);I&&I[0]&&(_[P]=I.replace(I[0],I[0].toLowerCase()))}),_}function x(_){return ge(this,arguments,function*(E,N={}){if(typeof N=="object"&&window){const P=F1.findModeByName(N.mode||"");f&&P&&P.mode&&(P.mode==="dart"&&(yield ke(()=>import("./clike-BOEQ2M-s.js").then(I=>I.c),[])),yield d2e("codemirror/mode/".concat(P.mode,"/").concat(P.mode))),P&&(N.mode=P.mime),Object.keys(N).forEach(I=>{(N[I]||N[I]===!1)&&JSON.stringify(N[I])&&E.setOption(I,N[I])})}})}return v.useEffect(()=>{if(!m.current&&b.current){const E=hu.fromTextArea(b.current,R(R({},g),n)),N=w();Object.keys(N).forEach(_=>{E.on(N[_],(...P)=>C.current[_](...P))}),(s||a)&&E.setSize(s,a),m.current=E,x(E,R(R({},g),n))}return()=>{m.current&&(m.current.toTextArea(),m.current=null)}},[b.current]),v.useMemo(()=>{if(!m.current)return;const E=m.current.getValue();r!==void 0&&r!==E&&m.current.setValue(r)},[r,m]),v.useMemo(()=>{m.current&&m.current.setSize(s,a)},[s,a,m]),v.useMemo(()=>{m.current&&x(m.current,R(R({},g),n))},[m,n]),o.jsxs("div",{className:"".concat(i?"code-is-dark":"code-is-light"," w-full"),children:[o.jsx("textarea",{ref:b,defaultValue:r,className:"hidden"}),o.jsx(ve,{className:"absolute w-full items-end justify-end h-0",children:o.jsx("div",{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5 relative top-[-16px] right-[36px] select-none",children:(S=n.mode)==null?void 0:S.toString()})})]})});function d2e(t){switch(t){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return ke(()=>import("./apl-vbWlWQex.js").then(e=>e.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return ke(()=>import("./asciiarmor-CFH81i6x.js").then(e=>e.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return ke(()=>import("./asn.1-D8_bNa5v.js").then(e=>e.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return ke(()=>import("./asterisk-C1zcJqpz.js").then(e=>e.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return ke(()=>import("./brainfuck-DzW0LHCQ.js").then(e=>e.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return ke(()=>import("./clike-BOEQ2M-s.js").then(e=>e.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return ke(()=>import("./clojure-DuvyDseK.js").then(e=>e.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return ke(()=>import("./cmake-Da6fUSVt.js").then(e=>e.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return ke(()=>import("./cobol-DmPFhTxe.js").then(e=>e.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return ke(()=>import("./coffeescript-DH2pDx43.js").then(e=>e.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return ke(()=>import("./commonlisp-CvF5qUNJ.js").then(e=>e.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return ke(()=>import("./crystal-C3YOX7T5.js").then(e=>e.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return ke(()=>import("./css-B4l1-bAT.js").then(e=>e.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return ke(()=>import("./cypher-Dw5r3gO8.js").then(e=>e.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return ke(()=>import("./d-TVEmGsIx.js").then(e=>e.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return ke(()=>import("./dart-BLNr9Ovl.js").then(e=>e.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return ke(()=>import("./diff-CqXLXcio.js").then(e=>e.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return ke(()=>import("./django-Dp5JQfVx.js").then(e=>e.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return ke(()=>import("./dockerfile-Dvpg_F3g.js").then(e=>e.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return ke(()=>import("./dtd-CVkG5wRq.js").then(e=>e.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return ke(()=>import("./dylan-BWZlyZb4.js").then(e=>e.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return ke(()=>import("./ebnf-CE4Kd6SC.js").then(e=>e.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return ke(()=>import("./ecl-DNeqOLX3.js").then(e=>e.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return ke(()=>import("./eiffel-CNcgPpub.js").then(e=>e.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return ke(()=>import("./elm-g9IQLo-i.js").then(e=>e.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return ke(()=>import("./erlang-BzVSqQvZ.js").then(e=>e.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return ke(()=>import("./factor-BRJPtv5j.js").then(e=>e.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return ke(()=>import("./fcl-C2-vcOIF.js").then(e=>e.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return ke(()=>import("./forth-DipmwzLv.js").then(e=>e.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return ke(()=>import("./fortran-B7Q5kQUa.js").then(e=>e.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return ke(()=>import("./gas-BBAAeptq.js").then(e=>e.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return ke(()=>import("./gfm-C-arbaYn.js").then(e=>e.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return ke(()=>import("./gherkin-DRcg385F.js").then(e=>e.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return ke(()=>import("./go-DmGc6dBE.js").then(e=>e.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return ke(()=>import("./groovy-CFngObt1.js").then(e=>e.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return ke(()=>import("./haml-Bt2f_Nrm.js").then(e=>e.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return ke(()=>import("./handlebars-Cje9LvyI.js").then(e=>e.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return ke(()=>import("./haskell-FqRRGASE.js").then(e=>e.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return ke(()=>import("./haskell-literate-O7J5RTx8.js").then(e=>e.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return ke(()=>import("./haxe-NFZ3yuef.js").then(e=>e.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return ke(()=>import("./htmlembedded-CPJgkSix.js").then(e=>e.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return ke(()=>import("./htmlmixed-Dv1q6FP3.js").then(e=>e.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return ke(()=>import("./http-BNLE6Hp5.js").then(e=>e.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return ke(()=>import("./idl-BSjDVZnx.js").then(e=>e.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return ke(()=>Promise.resolve().then(()=>JU),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return ke(()=>import("./jinja2-adCpaZ7l.js").then(e=>e.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return ke(()=>import("./jsx-ClkCV7Y-.js").then(e=>e.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return ke(()=>import("./julia-DLqN_-yd.js").then(e=>e.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return ke(()=>import("./livescript-Vxln-grF.js").then(e=>e.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return ke(()=>import("./lua-ewWAGPom.js").then(e=>e.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return ke(()=>import("./markdown-UVY52jYi.js").then(e=>e.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return ke(()=>import("./mathematica-DZ9dm3LF.js").then(e=>e.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return ke(()=>import("./mbox-BfR5b6CK.js").then(e=>e.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return ke(()=>import("./mirc-DC86U8XC.js").then(e=>e.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return ke(()=>import("./mllike-Bprdg3DF.js").then(e=>e.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return ke(()=>import("./modelica-DRAnqeau.js").then(e=>e.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return ke(()=>import("./mscgen-Dmtop0oN.js").then(e=>e.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return ke(()=>import("./mumps-nnSrE32F.js").then(e=>e.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return ke(()=>import("./nginx-BnakU_6z.js").then(e=>e.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return ke(()=>import("./nsis-CUnpq3M4.js").then(e=>e.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return ke(()=>import("./ntriples-HIut5vCN.js").then(e=>e.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return ke(()=>import("./octave-BiCIAta_.js").then(e=>e.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return ke(()=>import("./oz-CEFLLuMw.js").then(e=>e.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return ke(()=>import("./pascal-D0O88NVj.js").then(e=>e.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return ke(()=>import("./pegjs-DZXOYIHw.js").then(e=>e.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return ke(()=>import("./perl-CWHlqxh1.js").then(e=>e.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return ke(()=>import("./php-D7hQD33F.js").then(e=>e.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return ke(()=>import("./pig-CaL67Oog.js").then(e=>e.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return ke(()=>import("./powershell-CbaGTq83.js").then(e=>e.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return ke(()=>import("./properties-XjQosx_y.js").then(e=>e.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return ke(()=>import("./protobuf-D4yqdkut.js").then(e=>e.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return ke(()=>import("./pug-CRVKTuYC.js").then(e=>e.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return ke(()=>import("./puppet-BEs-TqvF.js").then(e=>e.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return ke(()=>import("./python-CoovIKZV.js").then(e=>e.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return ke(()=>import("./q-CbtkgoeH.js").then(e=>e.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return ke(()=>import("./r-D8JmdW1x.js").then(e=>e.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return ke(()=>import("./rpm-3ihONuWC.js").then(e=>e.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return ke(()=>import("./rst-BCEzRi9A.js").then(e=>e.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return ke(()=>import("./ruby-DIgqUQO1.js").then(e=>e.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return ke(()=>import("./rust-lngZNREB.js").then(e=>e.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return ke(()=>import("./sas-DlUPW5JL.js").then(e=>e.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return ke(()=>import("./sass-Bem8n1Mc.js").then(e=>e.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return ke(()=>import("./scheme-Cxeeuh63.js").then(e=>e.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return ke(()=>import("./shell-C4ZQSEjP.js").then(e=>e.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return ke(()=>import("./sieve-C3Fykc7i.js").then(e=>e.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return ke(()=>import("./slim-DWjt4ndT.js").then(e=>e.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return ke(()=>import("./smalltalk-BEYwcsYK.js").then(e=>e.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return ke(()=>import("./smarty-D4NxUHxc.js").then(e=>e.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return ke(()=>import("./solr-ERAvZC4b.js").then(e=>e.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return ke(()=>import("./soy-OpLLWLYS.js").then(e=>e.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return ke(()=>import("./sparql-Brmr4Q5h.js").then(e=>e.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return ke(()=>import("./spreadsheet-CnCG9elR.js").then(e=>e.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return ke(()=>import("./sql-eOeqwll8.js").then(e=>e.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return ke(()=>import("./stex-5aBROWT3.js").then(e=>e.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return ke(()=>import("./stylus-DtmEzL5k.js").then(e=>e.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return ke(()=>import("./swift-TiucVwxg.js").then(e=>e.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return ke(()=>import("./tcl-MbiWHS-F.js").then(e=>e.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return ke(()=>import("./textile-DFexsl9c.js").then(e=>e.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return ke(()=>import("./tiddlywiki-DeaBHtaJ.js").then(e=>e.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return ke(()=>import("./tiki-Dw5H3nSr.js").then(e=>e.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return ke(()=>import("./toml-Bw9ZtC4x.js").then(e=>e.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return ke(()=>import("./tornado-GlNJ_SrA.js").then(e=>e.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return ke(()=>import("./troff-NC__n46a.js").then(e=>e.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return ke(()=>import("./ttcn-Cw8P6tgB.js").then(e=>e.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return ke(()=>import("./ttcn-cfg-DyazUgGj.js").then(e=>e.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return ke(()=>import("./turtle-B1BYQzZE.js").then(e=>e.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return ke(()=>import("./twig-Bn-PQroe.js").then(e=>e.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return ke(()=>import("./vb-B0_NIpfn.js").then(e=>e.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return ke(()=>import("./vbscript-BWhXQrG-.js").then(e=>e.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return ke(()=>import("./velocity-B6MaZAkd.js").then(e=>e.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return ke(()=>import("./verilog-6V47m65h.js").then(e=>e.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return ke(()=>import("./vhdl-D5SeExP5.js").then(e=>e.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return ke(()=>import("./vue-DBY3U5Kv.js").then(e=>e.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return ke(()=>import("./wast-DIERJQig.js").then(e=>e.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return ke(()=>import("./webidl-DROfhoxv.js").then(e=>e.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return ke(()=>Promise.resolve().then(()=>tW),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return ke(()=>import("./xquery-BAotSwcC.js").then(e=>e.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return ke(()=>import("./yacas-Bs3ZmOP9.js").then(e=>e.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return ke(()=>import("./yaml-DW5bDHnz.js").then(e=>e.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return ke(()=>import("./yaml-frontmatter-BYPLutKI.js").then(e=>e.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return ke(()=>import("./z80-eNlRilBV.js").then(e=>e.z),[]);default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}const f2e="p",h2e="r",p2e="o",m2e="b",g2e="e",v2e="t",x2e="a",Un=Rt(null),q0=p2e+h2e+f2e,Mx=x2e+v2e+g2e+m2e;function y2e(){return Un.value&&Un.value.expires&&Mr().isAfter(Mr(Un.value.expires))}function Dx(){return Un.value&&Un.value.expires&&Mr(1718144516487).isAfter(Mr(Un.value.expires),"day")}function nW(){var r;const t=Un.value?Mr(Un.value.expires).diff(Mr(),"days"):null,e=(r=Un.value)!=null&&r.expires?Mr().diff(Mr(Un.value.expires),"days"):null,n=Un.value&&Un.value.expires?Mr(Un.value.expires).format("DD MMMM, YYYY"):"";return{licenseExpInDays:t,licenseExpiresDate:n,licenseExpiredDaysAgo:e}}function b2e(){var n,r;const t=(n=Un.value)!=null&&n.issued?Mr().diff(Mr(Un.value.issued),"days"):null,e=(r=Un.value)!=null&&r.issued?Mr(Un.value.issued).format("DD MMMM, YYYY"):"";return{licenseIssuedDaysAgo:t>0?t:null,licenseIssuedDate:e}}(function(t,e){const n=jw,r=t();for(;;)try{if(parseInt(n(453))/1+parseInt(n(463))/2+-parseInt(n(455))/3*(-parseInt(n(452))/4)+-parseInt(n(456))/5+parseInt(n(457))/6*(parseInt(n(465))/7)+-parseInt(n(451))/8+-parseInt(n(462))/9===e)break;r.push(r.shift())}catch(s){r.push(r.shift())}})(Ew,740283);function w2e(t){const e=jw,n=t[e(458)]("")[e(454)]()[e(464)](""),r=Un[e(461)];return r!=null&&r.id&&(r!=null&&r[e(460)])&&Array.isArray(r.features)?r.features[e(459)](n):!1}function jw(t,e){const n=Ew();return jw=function(r,s){return r=r-451,n[r]},jw(t,e)}function Ew(){const t=["value","19224396aNppYF","989064IhZSmn","join","7LPwpzD","1028336fHlCyR","221084cjBjJp","931447iSDAoO","reverse","39litIBm","1170430ScfMYR","6566718isVFIu","split","includes","features"];return Ew=function(){return t},Ew()}function qh(){const t=xl(q0),e=xl(Mx),n=Ix();let r;e:if(t&&!e){if(n){r=!Dx();break e}r=!0}else r=!!(e&&!n);return r}function xl(t){var e=sn(2);try{return v.useMemo(()=>w2e(t),[Un.value])}finally{e.f()}}function rW(){var e;let t;return t=(e=Un==null?void 0:Un.value)==null?void 0:e.language,t}function Ix(){const t=Te(1);let e,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=y2e(),t[0]=n):n=t[0],e=n,e}const Jl=t=>{const e=Te(4),{className:n}=t,r=n===void 0?"":n,s=qh(),{t:a}=Gt();let i;return e[0]!==s||e[1]!==r||e[2]!==a?(i=!s&&o.jsx(St,{className:"ml-2 ".concat(r),variant:"pro",children:a("Pro",{ns:"common"})}),e[0]=s,e[1]=r,e[2]=a,e[3]=i):i=e[3],i};function sW({id:t}){var e=sn(1);try{const{t:n}=Gt(),r=it(!1),{addImageToItemById:s}=pge(),{uploadImageToItemById:a,uploadImageToItemReset:i}=mge(),l=v.useRef(null),c=v.useRef(null),d=it(!1);v.useEffect(()=>{var g,w,x,S,E,N;const f=_=>{var P;(P=c.current)==null||P.classList.add("bg-blue-50","!border-blue-400"),_.preventDefault(),_.stopPropagation()},m=_=>{var P;(P=c.current)==null||P.classList.remove("bg-blue-50","!border-blue-400"),_.preventDefault(),_.stopPropagation()},b=_=>{var I;_.preventDefault(),_.stopPropagation();const P=(I=_.dataTransfer)==null?void 0:I.files[0];if(!P)i();else{const T=new FileReader,L=P.type;T.readAsArrayBuffer(P),T.onload=A=>ge(this,null,function*(){var Y,O;const z=(Y=A.target)==null?void 0:Y.result;if(z){const $=Array.from(new Uint8Array(z));d.value=!0,requestAnimationFrame(()=>ge(this,null,function*(){try{yield a({itemId:t,buffer:$,fileType:L})}catch(M){console.error("Error during file upload",M)}d.value=!1}))}i(),r.value=!1,(O=l.current)==null||O.close()})}};if(!c.current)return;(g=c.current)==null||g.addEventListener("dragenter",f),(w=c.current)==null||w.addEventListener("dragleave",m),(x=c.current)==null||x.addEventListener("dragover",f),(S=c.current)==null||S.addEventListener("drop",b);const C=(N=(E=c.current)==null?void 0:E.children)!=null?N:[];for(const _ of C)_.addEventListener("dragover",f),_.addEventListener("dragenter",f),_.addEventListener("dragleave",m),_.addEventListener("drop",b);return()=>{var P,I,T,L,A,z;(P=c.current)==null||P.removeEventListener("dragenter",f),(I=c.current)==null||I.removeEventListener("dragleave",m),(T=c.current)==null||T.removeEventListener("dragover",f),(L=c.current)==null||L.removeEventListener("drop",b);const _=(z=(A=c.current)==null?void 0:A.children)!=null?z:[];for(const Y of _)Y.removeEventListener("dragover",f),Y.removeEventListener("dragenter",f),Y.removeEventListener("dragleave",m),Y.removeEventListener("drop",b)}},[c.current]),v.useEffect(()=>{const f=Xi("tauri://file-drop",m=>{var b,C;((b=m.payload)==null?void 0:b.length)>0&&(s({itemId:t,imagePath:m.payload[0]}),r.value=!1,(C=l.current)==null||C.close())});return()=>{f.then(m=>{m()})}},[]);const p=()=>{var f;r.value=!1,i(),(f=l.current)==null||f.close()};return o.jsxs(Sa,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:f=>{var m;f||(m=l.current)==null||m.close()},children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:n("Add image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-slate-100 flex items-center justify-center hover:bg-slate-50/100 text-slate-400 hover:text-slate-500",onClick:()=>{r.value=!0},children:o.jsx($z,{size:26,className:"cursor-pointer"})})})})}),o.jsx(ia,{sideOffset:16,align:"center",autoFocus:!0,onOpenAutoFocus:()=>{setTimeout(()=>{var f,m;(f=c.current)==null||f.focus(),(m=c.current)==null||m.click()},300)},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-72 shadow-xl z-100",onEscapeKeyDown:()=>{p()},onPointerDownOutside:()=>{p()},children:r.value&&o.jsxs(ve,{className:"flex-col drop-zone p-1.5 border-2 border-slate-300 border-dashed rounded-md",ref:c,children:[o.jsx(Ln,{h:2}),d.value?o.jsx(ok,{size:"large"}):o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone",children:n("Drop image file here, or use a separate window for drag and drop.",{ns:"dashboard"})}),o.jsx(Ln,{h:5,className:"drop-zone"}),o.jsxs(ve,{className:"drop-zone",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 drop-zone hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{p()},children:n("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 drop-zone hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const f=new vh("drop-image",{skipTaskbar:!0,title:n("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-image.html?"+dr.language});f.once(Ns.WINDOW_CLOSE_REQUESTED,function(){var m;r.value=!1,(m=l==null?void 0:l.current)==null||m.close()}),f.once("tauri://created",function(){f.setCursorVisible(!1),f.setFocus(),f.setSize(new uv(260,260)),f.center(),f.show()}),f.once("tauri://error",function(){var m;(m=l==null?void 0:l.current)==null||m.close()}),l.current=f},children:n("Open Window",{ns:"common"})})]}),o.jsx(Ln,{h:2})]})})]})}finally{e.f()}}function k2e(t){var c,d;const e=Te(8),n=(c=t.width)!=null?c:"24px",r=(d=t.height)!=null?d:"24px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"m6.033 4.294-.007 7.865M21.25 10.12v-3c0-1.16-.84-2-2-2h-7m-9 9v2c0 1.05.95 2 2 2h3"}),a=o.jsx("rect",{width:"10",height:"7",x:"11.75",y:"12.707",ry:"2"}),i=o.jsx("path",{d:"m2.25 8.089 7.928.007"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r||e[5]!==t.className||e[6]!==t.onClick?(l=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=t.className,e[6]=t.onClick,e[7]=l):l=e[7],l}function aW({onCallBack:t}){var e=sn(1);try{const{t:n}=Gt(),r=it(!1),s=v.useRef(null),a=v.useRef(null);v.useEffect(()=>{const l=Xi("tauri://file-drop",c=>{var d,p;((d=c.payload)==null?void 0:d.length)>0&&(t(c.payload[0]),r.value=!1,(p=a.current)==null||p.close())});return()=>{l.then(c=>{c()})}},[]);const i=()=>{var l;r.value=!1,(l=a.current)==null||l.close()};return o.jsxs(Sa,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:l=>{var c;l||(c=a.current)==null||c.close()},children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:n("Drag & Drop Path",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-10 w-10 text-slate-400 border-0 hover:text-blue-400 cl",onClick:()=>{r.value=!0},children:o.jsx(k2e,{width:22,height:23,className:"scale-y-[-1]"})})})})})}),o.jsx(ia,{sideOffset:10,align:"center",onOpenAutoFocus:()=>{setTimeout(()=>{var l,c;(l=s.current)==null||l.focus(),(c=s.current)==null||c.click()},300)},className:"bg-gray-100 w-72 shadow-xl p-2",onEscapeKeyDown:()=>{i()},onPointerDownOutside:()=>{i()},children:r.value&&o.jsxs(ve,{className:"flex-col p-1 rounded-md",ref:s,children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold",children:n("We need to open a new window where you can drag & drop file, path or application.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{i()},children:n("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const l=new vh("drop-path",{skipTaskbar:!0,title:n("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-path.html?"+dr.language});l.once(Ns.WINDOW_CLOSE_REQUESTED,function(){var c;r.value=!1,(c=a==null?void 0:a.current)==null||c.close()}),l.once("tauri://created",function(){l.setCursorVisible(!1),l.setFocus(),l.setSize(new uv(260,260)),l.center(),l.show()}),l.once("tauri://error",function(){var c;(c=a==null?void 0:a.current)==null||c.close()}),a.current=l},children:n("Open Window",{ns:"common"})})]})]})})]})}finally{e.f()}}const Ml={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isTemplate:!1,isLink:!1,isPath:!1,detectedLanguage:""},C2e=t=>{const e=Te(182),{itemId:n,isCode:r,isImage:s,isText:a,isForm:i,isLink:l,isCommand:c,isWebRequest:d,isTemplate:p,isWebScraping:f,isPath:m,detectedLanguage:b,children:C}=t,{t:g}=Gt(),{CONST:w}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:x}=w,{updateItemById:S}=bl();let E;e[0]!==C?(E=o.jsx(Gn,{asChild:!0,children:C}),e[0]=C,e[1]=E):E=e[1];let N;e[2]!==g?(N=g("TypeMenu:::Clip Type",{ns:"common"}),e[2]=g,e[3]=N):N=e[3];let _;e[4]!==N?(_=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:N})}),e[4]=N,e[5]=_):_=e[5];let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx(kn,{}),e[6]=P):P=e[6];const I=!!a;let T;e[7]!==S||e[8]!==n?(T=()=>{S({updatedItem:ae(R({},Ml),{isText:!0,itemId:n})})},e[7]=S,e[8]=n,e[9]=T):T=e[9];const L="".concat(a?"font-semibold":"");let A;e[10]!==g?(A=g("TypeMenu:::Plain Text",{ns:"common"}),e[10]=g,e[11]=A):A=e[11];let z;e[12]!==L||e[13]!==A?(z=o.jsx(re,{className:L,children:A}),e[12]=L,e[13]=A,e[14]=z):z=e[14];let Y;e[15]!==I||e[16]!==T||e[17]!==z?(Y=o.jsx(Cn,{checked:I,onClick:T,children:z}),e[15]=I,e[16]=T,e[17]=z,e[18]=Y):Y=e[18];const O=!!l;let $;e[19]!==S||e[20]!==n?($=()=>{S({updatedItem:ae(R({},Ml),{isLink:!0,itemId:n})})},e[19]=S,e[20]=n,e[21]=$):$=e[21];const M="".concat(l?"font-semibold":"");let W;e[22]!==g?(W=g("TypeMenu:::Link or Email",{ns:"common"}),e[22]=g,e[23]=W):W=e[23];let V;e[24]!==M||e[25]!==W?(V=o.jsx(re,{className:M,children:W}),e[24]=M,e[25]=W,e[26]=V):V=e[26];let U;e[27]!==O||e[28]!==$||e[29]!==V?(U=o.jsx(Cn,{checked:O,onClick:$,children:V}),e[27]=O,e[28]=$,e[29]=V,e[30]=U):U=e[30];const J=!!s;let H;e[31]!==S||e[32]!==n?(H=()=>{S({updatedItem:ae(R({},Ml),{isImage:!0,itemId:n})})},e[31]=S,e[32]=n,e[33]=H):H=e[33];const F="".concat(s?"font-semibold":"");let q;e[34]!==g?(q=g("TypeMenu:::Image",{ns:"common"}),e[34]=g,e[35]=q):q=e[35];let X;e[36]!==F||e[37]!==q?(X=o.jsx(re,{className:F,children:q}),e[36]=F,e[37]=q,e[38]=X):X=e[38];let te;e[39]!==J||e[40]!==H||e[41]!==X?(te=o.jsx(Cn,{checked:J,onClick:H,children:X}),e[39]=J,e[40]=H,e[41]=X,e[42]=te):te=e[42];const ee=!!m;let G;e[43]!==S||e[44]!==n?(G=()=>{S({updatedItem:ae(R({},Ml),{isPath:!0,itemId:n})})},e[43]=S,e[44]=n,e[45]=G):G=e[45];const Z="".concat(m?"font-semibold":"");let le;e[46]!==g?(le=g("TypeMenu:::File, Path or App",{ns:"common"}),e[46]=g,e[47]=le):le=e[47];let se;e[48]!==Z||e[49]!==le?(se=o.jsx(re,{className:Z,children:le}),e[48]=Z,e[49]=le,e[50]=se):se=e[50];let de;e[51]!==ee||e[52]!==G||e[53]!==se?(de=o.jsx(Cn,{checked:ee,onClick:G,children:se}),e[51]=ee,e[52]=G,e[53]=se,e[54]=de):de=e[54];let ce;e[55]!==r?(ce=r?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[55]=r,e[56]=ce):ce=e[56];const ye="".concat(r?"!font-semibold":"");let pe;e[57]!==g?(pe=g("TypeMenu:::Code Snippet",{ns:"common"}),e[57]=g,e[58]=pe):pe=e[58];let me;e[59]!==ye||e[60]!==pe?(me=o.jsxs(re,{className:ye,children:[pe," ..."]}),e[59]=ye,e[60]=pe,e[61]=me):me=e[61];let be;e[62]!==ce||e[63]!==me?(be=o.jsxs(qs,{children:[ce,me]}),e[62]=ce,e[63]=me,e[64]=be):be=e[64];let Ee;e[65]!==b||e[66]!==g?(Ee=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:b?o.jsx(re,{children:cI(b)}):o.jsx(re,{children:g("TypeMenu:::Select Language",{ns:"common"})})}),e[65]=b,e[66]=g,e[67]=Ee):Ee=e[67];let We;e[68]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsx(kn,{}),e[68]=We):We=e[68];let qe;e[69]===Symbol.for("react.memo_cache_sentinel")?(qe={height:"auto",maxHeight:"290px"},e[69]=qe):qe=e[69];let ot;if(e[70]!==b||e[71]!==S||e[72]!==n||e[73]!==x){let ct;e[75]!==b||e[76]!==S||e[77]!==n?(ct=xe=>o.jsx(Cn,{checked:b===xe,className:"".concat(b===xe?"font-semibold ":""),onClick:()=>{S({updatedItem:ae(R({},Ml),{isCode:!0,detectedLanguage:xe,itemId:n})})},children:cI(xe)},xe),e[75]=b,e[76]=S,e[77]=n,e[78]=ct):ct=e[78],ot=x.map(ct),e[70]=b,e[71]=S,e[72]=n,e[73]=x,e[74]=ot}else ot=e[74];let Ve;e[79]!==ot?(Ve=o.jsx(or,{className:"code-filter",style:qe,autoHide:!1,children:ot}),e[79]=ot,e[80]=Ve):Ve=e[80];let Ge;e[81]!==Ee||e[82]!==Ve?(Ge=o.jsxs(Ks,{className:"w-40",children:[Ee,We,Ve]}),e[81]=Ee,e[82]=Ve,e[83]=Ge):Ge=e[83];let ft;e[84]!==be||e[85]!==Ge?(ft=o.jsxs(sa,{children:[be,Ge]}),e[84]=be,e[85]=Ge,e[86]=ft):ft=e[86];const Ie=!!p;let Ke;e[87]!==S||e[88]!==n?(Ke=()=>{S({updatedItem:ae(R({},Ml),{isTemplate:!0,itemId:n})})},e[87]=S,e[88]=n,e[89]=Ke):Ke=e[89];const ut="".concat(p?"font-semibold":"");let $e;e[90]!==g?($e=g("TypeMenu:::Template Fill",{ns:"common"}),e[90]=g,e[91]=$e):$e=e[91];let ht;e[92]===Symbol.for("react.memo_cache_sentinel")?(ht=o.jsx(Jl,{}),e[92]=ht):ht=e[92];let Fe;e[93]!==ut||e[94]!==$e?(Fe=o.jsxs(re,{className:ut,children:[$e,ht]}),e[93]=ut,e[94]=$e,e[95]=Fe):Fe=e[95];let pt;e[96]!==Ie||e[97]!==Ke||e[98]!==Fe?(pt=o.jsx(Cn,{checked:Ie,onClick:Ke,children:Fe}),e[96]=Ie,e[97]=Ke,e[98]=Fe,e[99]=pt):pt=e[99];const Qe=!!i;let Lt;e[100]!==S||e[101]!==n?(Lt=()=>{S({updatedItem:ae(R({},Ml),{isForm:!0,itemId:n})})},e[100]=S,e[101]=n,e[102]=Lt):Lt=e[102];const Ut="".concat(i?"font-semibold":"");let wt;e[103]!==g?(wt=g("TypeMenu:::Form Auto Fill",{ns:"common"}),e[103]=g,e[104]=wt):wt=e[104];let Xt;e[105]===Symbol.for("react.memo_cache_sentinel")?(Xt=o.jsx(Jl,{}),e[105]=Xt):Xt=e[105];let $t;e[106]!==Ut||e[107]!==wt?($t=o.jsxs(re,{className:Ut,children:[wt,Xt]}),e[106]=Ut,e[107]=wt,e[108]=$t):$t=e[108];let tn;e[109]!==Qe||e[110]!==Lt||e[111]!==$t?(tn=o.jsx(Cn,{checked:Qe,onClick:Lt,children:$t}),e[109]=Qe,e[110]=Lt,e[111]=$t,e[112]=tn):tn=e[112];let Pt;e[113]!==c||e[114]!==d||e[115]!==f?(Pt=c||d||f?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[113]=c,e[114]=d,e[115]=f,e[116]=Pt):Pt=e[116];const Ue="".concat(c||d||f?"!font-semibold":"");let Je;e[117]!==g?(Je=g("TypeMenu:::Run, Execute",{ns:"common"}),e[117]=g,e[118]=Je):Je=e[118];let jt;e[119]===Symbol.for("react.memo_cache_sentinel")?(jt=o.jsx(Jl,{}),e[119]=jt):jt=e[119];let we;e[120]!==Ue||e[121]!==Je?(we=o.jsxs(re,{className:Ue,children:[Je,jt]}),e[120]=Ue,e[121]=Je,e[122]=we):we=e[122];let Se;e[123]!==Pt||e[124]!==we?(Se=o.jsxs(qs,{children:[Pt,we]}),e[123]=Pt,e[124]=we,e[125]=Se):Se=e[125];const De=!!c;let nt;e[126]!==S||e[127]!==n?(nt=()=>{S({updatedItem:ae(R({},Ml),{isCommand:!0,itemId:n})})},e[126]=S,e[127]=n,e[128]=nt):nt=e[128];const Pe="".concat(c?"font-semibold":"");let gt;e[129]!==g?(gt=g("TypeMenu:::Shell Command",{ns:"common"}),e[129]=g,e[130]=gt):gt=e[130];let Ze;e[131]!==Pe||e[132]!==gt?(Ze=o.jsx(re,{className:Pe,children:gt}),e[131]=Pe,e[132]=gt,e[133]=Ze):Ze=e[133];let Re;e[134]!==De||e[135]!==nt||e[136]!==Ze?(Re=o.jsx(Cn,{checked:De,onClick:nt,children:Ze}),e[134]=De,e[135]=nt,e[136]=Ze,e[137]=Re):Re=e[137];const Oe=!!d;let et;e[138]!==S||e[139]!==n?(et=()=>{S({updatedItem:ae(R({},Ml),{isWebRequest:!0,itemId:n})})},e[138]=S,e[139]=n,e[140]=et):et=e[140];const Et="".concat(d?"font-semibold":"");let bt;e[141]!==g?(bt=g("TypeMenu:::Web Request (HTTP)",{ns:"common"}),e[141]=g,e[142]=bt):bt=e[142];let _t;e[143]!==Et||e[144]!==bt?(_t=o.jsx(re,{className:Et,children:bt}),e[143]=Et,e[144]=bt,e[145]=_t):_t=e[145];let Mt;e[146]!==Oe||e[147]!==et||e[148]!==_t?(Mt=o.jsx(Cn,{checked:Oe,onClick:et,children:_t}),e[146]=Oe,e[147]=et,e[148]=_t,e[149]=Mt):Mt=e[149];const an=!!f;let dn;e[150]!==S||e[151]!==n?(dn=()=>{S({updatedItem:ae(R({},Ml),{isWebScraping:!0,itemId:n})})},e[150]=S,e[151]=n,e[152]=dn):dn=e[152];const fn="".concat(f?"font-semibold":"");let mn;e[153]!==g?(mn=g("TypeMenu:::Web Scraper / Parser",{ns:"common"}),e[153]=g,e[154]=mn):mn=e[154];let hn;e[155]!==fn||e[156]!==mn?(hn=o.jsx(re,{className:fn,children:mn}),e[155]=fn,e[156]=mn,e[157]=hn):hn=e[157];let nn;e[158]!==an||e[159]!==dn||e[160]!==hn?(nn=o.jsx(Cn,{checked:an,onClick:dn,children:hn}),e[158]=an,e[159]=dn,e[160]=hn,e[161]=nn):nn=e[161];let on;e[162]!==Re||e[163]!==Mt||e[164]!==nn?(on=o.jsxs(Ks,{className:"w-52",children:[Re,Mt,nn]}),e[162]=Re,e[163]=Mt,e[164]=nn,e[165]=on):on=e[165];let Sn;e[166]!==Se||e[167]!==on?(Sn=o.jsxs(sa,{children:[Se,on]}),e[166]=Se,e[167]=on,e[168]=Sn):Sn=e[168];let pn;e[169]!==_||e[170]!==Y||e[171]!==U||e[172]!==te||e[173]!==de||e[174]!==ft||e[175]!==pt||e[176]!==tn||e[177]!==Sn?(pn=o.jsxs(Wn,{sideOffset:12,align:"center",children:[_,P,Y,U,te,de,ft,pt,tn,Sn]}),e[169]=_,e[170]=Y,e[171]=U,e[172]=te,e[173]=de,e[174]=ft,e[175]=pt,e[176]=tn,e[177]=Sn,e[178]=pn):pn=e[178];let rn;return e[179]!==E||e[180]!==pn?(rn=o.jsxs(Kn,{children:[E,pn]}),e[179]=E,e[180]=pn,e[181]=rn):rn=e[181],rn};function cI(t){return t.charAt(0).toUpperCase()+t.slice(1)}function S2e({clipId:t,onComplete:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),a=()=>{s.value=!1,pi.value=null};v.useEffect(()=>()=>{a()},[]);const{currentCollectionId:i}=Tt(Ar),{deleteItemById:l}=Y5();return o.jsxs(Sa,{defaultOpen:!1,open:s.value,children:[o.jsx(ja,{asChild:!0,children:o.jsxs(je,{variant:"ghost",title:r("Delete Clip",{ns:"dashboard"}),onClick:()=>{s.value=!0,pi.value=t},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[o.jsx(kr,{size:16}),o.jsx(re,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:r("Delete",{ns:"common"})})]})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:s.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block",children:r("Are you sure you want to delete?",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{a()},children:r("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{l({itemId:t,collectionId:i}),e()},children:r("Delete Clip",{ns:"dashboard"})})]})]})})]})}finally{n.f()}}function j2e(t){const e=Te(12),{isOver:n}=t,{t:r}=Gt(),s=v.useRef(null);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{var f;(f=s.current)==null||f.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"})},e[0]=a):a=e[0];let i;e[1]!==s?(i=[s],e[1]=s,e[2]=i):i=e[2],v.useEffect(a,i);const l="flex flex-row items-center justify-center border-2 my-2 border-dashed rounded-md w-full h-16 ".concat(n?"bg-slate-50/50 dark:bg-slate-700/50 border-blue-400":"bg-slate-50 dark:bg-slate-700 border-slate-200 dark:border-slate-500");let c;e[3]!==n||e[4]!==r?(c=n?r("Drop To Add",{ns:"common"}):o.jsx(Vr,{size:23,className:"".concat(n?"text-blue-400":"text-slate-400")}),e[3]=n,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==c?(d=o.jsx(re,{className:"!text-sm !font-medium !text-blue-500 text-center",children:c}),e[6]=c,e[7]=d):d=e[7];let p;return e[8]!==s||e[9]!==l||e[10]!==d?(p=o.jsx(ne,{ref:s,className:l,children:d}),e[8]=s,e[9]=l,e[10]=d,e[11]=p):p=e[11],p}const E2e=v.memo(j2e),uI=["Tab","Enter","TabTab","TabEnter"],qg={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"},dI=["1s","2s","3s","4s","5s"],oW=["Email","Login","Username","Password","Title","Textarea","Phone","Website","Date","Name","First Name","Last Name","Company","Address","City","State","Zip","Country","Province","Text","Number","Credit Card","CVV Code","Exp. Date","Secret","License Key","Occupation","Gender","Age","Description","Birthdate","API Key","SSN","Custom"];function N2e({showLinkValidationError:t,localOptions:e}){var r,s,a,i,l,c,d,p;var n=sn(1);try{const{t:f}=Gt(),m=it(void 0),b=it(null),C=jo(m.value,300);return v.useEffect(()=>{if(C){if(t.value&&(t.value=void 0),C.length>5){const w=zr().match(C);!w||w.length>1?t.value=!0:t.value=!1}e.value.formOptions||(e.value.formOptions={fields:[],openUrl:null}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:C})})}},[C]),o.jsxs(ne,{className:"select-none mt-1",children:[e.value.formOptions.openUrl!=null&&o.jsxs(ve,{className:"text-normal",children:[o.jsx(st,{asChild:!0,text:f("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 dark:text-slate-200 border font-semibold text-xs bg-slate-100 dark:bg-slate-700/80 group hover:text-blue-500 mr-1 flex items-center ".concat(((r=e.value.formOptions)==null?void 0:r.isOpenUrlDisabled)===!0?"opacity-70 line-through":""),children:o.jsx("span",{children:f("Open",{ns:"dashboard"})})})}),o.jsx(wn,{defaultValue:(a=(s=e.value.formOptions)==null?void 0:s.openUrl)!=null?a:"",placeholder:f("Enter URL",{ns:"dashboard"}),disabled:(i=e.value.formOptions)==null?void 0:i.isOpenUrlDisabled,classNameInput:"pr-7 text-sm focus:border- ".concat(t.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(t.value===!1?"!border-green-600 !focus:border-green-600":""," ").concat(((l=e.value.formOptions)==null?void 0:l.isOpenUrlDisabled)===!0?"!bg-gray-100 dark:!bg-gray-700 opacity-70":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:t.value?o.jsx(st,{text:f("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):t.value===!1&&o.jsx(st,{text:f("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:g=>{m.value=g.target.value}}),o.jsx(je,{variant:"ghost",size:"mini",title:f("Open URL Disable / Enable",{ns:"dashboard"}),onClick:()=>{var g;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{isOpenUrlDisabled:!((g=e.value.formOptions)!=null&&g.isOpenUrlDisabled)})})},className:"".concat((c=e.value.formOptions)!=null&&c.isOpenUrlDisabled?"opacity-70":""," pl-2 h-8 flex items-center hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500"),children:(d=e.value.formOptions)!=null&&d.isOpenUrlDisabled?o.jsx(wa,{size:14}):o.jsx(qa,{size:14})}),o.jsx(je,{variant:"ghost",size:"mini",title:f("Remove Open URL",{ns:"dashboard"}),onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:null,isOpenUrlDisabled:!1})})},className:"pl-3 h-10 text-sm font-semibold hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),o.jsx(ne,{className:"my-2",children:o.jsxs(ve,{className:"gap-3 w-full justify-start",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Add Form Field",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,e.value.formOptions||(e.value.formOptions={fields:[]});const g=[...e.value.formOptions.fields];g.push({id:Date.now().toString(),type:"section",pressKeysAfterPaste:QC[0],isEnable:!0,value:""}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:g})})},children:[o.jsx(Vr,{size:12,className:"mr-1"}),f("Add Section",{ns:"dashboard"})]}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Form Fields",{ns:"dashboard"})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:oW.map(g=>o.jsx(rt,{className:"text-xs",onClick:()=>{var S;e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields],x=g==="Text"?"text":g==="Number"?"number":g==="Password"||g==="Secret"||g==="API Key"||g==="License Key"||g==="SSN"?"password":g==="CVV Code"?"passwordCode":g==="Textarea"?"textarea":g==="Credit Card"?"creditcard":"text";w.push({id:Date.now().toString(),label:g,type:x,pressKeysAfterPaste:QC[0],isEnable:!0,value:""}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})}),g==="Custom"&&(b.value=(S=w[w.length-1].id)!=null?S:null)},children:g},g))})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Key Press",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Add Key Press",{ns:"dashboard"})})}),o.jsx(kn,{}),QC.map(g=>o.jsx(rt,{className:"text-xs",onClick:()=>{e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields];w.push({id:Date.now().toString(),isPressKeysOnly:!0,isEnable:!0,pressKeysAfterPaste:g}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})})},children:qg[g]},g))]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Delay",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Add Delay Time",{ns:"dashboard"})})}),o.jsx(kn,{}),dI.map(g=>o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields];w.push({id:Date.now().toString(),isDelayOnly:!0,value:g,isEnable:!0}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})})},children:[g==="1s"&&"1 ".concat(f("Second",{ns:"common"})),g==="2s"&&"2 ".concat(f("Seconds",{ns:"common"})),g==="3s"&&"3 ".concat(f("Seconds",{ns:"common"})),g==="4s"&&"4 ".concat(f("Seconds",{ns:"common"})),g==="5s"&&"5 ".concat(f("Seconds",{ns:"common"}))]},g))]})]}),e.value.formOptions.openUrl==null&&o.jsx(re,{className:"!text-blue-500 hover:underline cursor-pointer text-center",size:"xs",onClick:()=>{e.value.formOptions||(e.value.formOptions={fields:[]}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:"",isOpenUrlDisabled:!1})})},children:f("Add Open URL",{ns:"dashboard"})})]})}),(p=e.value.formOptions)==null?void 0:p.fields.map((g,w)=>{var P,I,T,L,A,z,Y,O;const x=g.isLabelOnTop,S=g.isLabelHidden,E=g.type==="section",N=g.id===b.value,_=g.type==="textarea";return o.jsxs(ve,{className:"".concat(g.type!=="section"?"mb-1":"mt-1"," group ").concat(x?"flex-col items-start":"items-center"," ").concat(_?"!mt-2 !mb-1":""),children:[!S&&o.jsx(o.Fragment,{children:(g.label||N)&&g.type!=="section"?o.jsx(re,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(x?"!justify-start pl-1":"!justify-end"),children:N?o.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[o.jsx(wn,{defaultValue:g.label,small:!0,placeholder:f("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:$=>{($.key==="Enter"||$.key==="Escape")&&(b.value=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)}))},onChange:$=>{g.label=$.target.value.trim()}}),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{b.value=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},title:f("Done Edit",{ns:"common"}),children:o.jsx(en,{size:18})})]}):o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(x?"text-left":"text-right max-w-[160px]"),children:g.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"})}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsxs(ve,{className:"w-full gap-1",children:[g.isDelayOnly||g.isPressKeysOnly?o.jsxs(ve,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[g.isDelayOnly&&o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[f("Delay",{ns:"dashboard"})," ",g.value,o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:f("Delay",{ns:"dashboard"})}),o.jsx(kn,{}),dI.map($=>o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,g.value=$,e.value=R({},e.value)},children:[$==="1s"&&"1 Second",$==="2s"&&"2 Seconds",$==="3s"&&"3 Seconds",$==="4s"&&"4 Seconds",$==="5s"&&"5 Seconds"]},$))]})]}),g.isPressKeysOnly&&g.pressKeysAfterPaste&&o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:g.isEnable===!1,title:f("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[f("Press",{ns:"dashboard"})," ",qg[g.pressKeysAfterPaste],o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Key Press",{ns:"dashboard"})})}),o.jsx(kn,{}),uI.map($=>o.jsx(rt,{className:"text-xs",onClick:()=>{g.pressKeysAfterPaste=$,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:qg[$]},$)),o.jsx(kn,{}),o.jsxs(rt,{className:"text-xs text-red-400",onClick:()=>{e.value.formOptions.fields=e.value.formOptions.fields.filter($=>$.id!==g.id),e.value=R({},e.value)},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})]}):g.type==="password"||g.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:g.type==="passwordCode"?f("Enter code",{ns:"dashboard"}):f("Enter secret value",{ns:"dashboard"}),autoFocus:w===((P=e.value.formOptions.fields)==null?void 0:P.length)-1&&e.value.formOptions.fields[w].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,isPassword:!0,numbersOnly:g.type==="passwordCode",showHidePassword:!0,className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}):g.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:f("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,autoFocus:w===((I=e.value.formOptions.fields)==null?void 0:I.length)-1&&e.value.formOptions.fields[w].value==="",className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:$=>{g.value=$},ccNumber:g.value}):E?o.jsx(wn,{small:!0,placeholder:f("Enter section label",{ns:"dashboard"}),classNameInput:"text-sm font-semibold border-b border-0 border-transparent hover:border-gray-200 focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis pl-1.5 dark:!text-slate-300 dark:bg-slate-900",autoFocus:w===((T=e.value.formOptions.fields)==null?void 0:T.length)-1&&e.value.formOptions.fields[w].value==="",onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}):g.type==="textarea"?o.jsx(Co,{placeholder:f("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:g.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:w===((L=e.value.formOptions.fields)==null?void 0:L.length)-1&&e.value.formOptions.fields[w].value==="",maxRows:2,value:g.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:$=>{$.stopPropagation()},onChange:$=>{g.value=$.target.value,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})}}):o.jsx(wn,{small:!0,placeholder:f("Enter field value",{ns:"dashboard"}),autoFocus:w===((A=e.value.formOptions.fields)==null?void 0:A.length)-1&&e.value.formOptions.fields[w].value===""&&e.value.formOptions.fields[w].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,type:g.type==="number"?"number":"text",className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}),g.isDelayOnly||g.isPressKeysOnly||E?o.jsx(o.Fragment,{}):o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:g.isEnable===!1,title:f("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:g.pressKeysAfterPaste?o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[qg[g.pressKeysAfterPaste],o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]}):o.jsxs(St,{variant:"secondary",className:"pl-1 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[o.jsx(Vr,{size:13,className:"ml-0.5 mr-0"}),o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Key Press After",{ns:"dashboard"})})}),o.jsx(kn,{}),uI.map($=>o.jsx(rt,{className:"text-xs",onClick:()=>{g.pressKeysAfterPaste=$,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:qg[$]},$)),o.jsx(kn,{}),o.jsxs(rt,{className:"text-xs text-red-400",onClick:()=>{g.pressKeysAfterPaste=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})})]})}),o.jsxs(ve,{className:"gap-1 ml-0.5",children:[g.type!=="section"&&o.jsx(je,{size:"mini",title:f("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isEnable:!M.isEnable}):M)})})},children:(z=e.value.formOptions)!=null&&z.fields&&((O=(Y=e.value.formOptions)==null?void 0:Y.fields[w])!=null&&O.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:f("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w-1)})})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:w===0,onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w-1)})})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:f("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:e.value.formOptions.fields?w===e.value.formOptions.fields.length-1:!1,onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w+1)})})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:f("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsx(kn,{}),!E&&!S&&o.jsxs(rt,{onClick:()=>{var $;N?b.value=null:b.value=($=g.id)!=null?$:null},children:[N?o.jsx(re,{size:"xs",children:f("Done Edit",{ns:"common"})}):o.jsx(re,{size:"xs",children:f("Edit Label",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(J2,{size:13})})]}),g.type!=="section"&&o.jsx(o.Fragment,{children:g.isLabelOnTop?o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1,isLabelOnTop:!1}):M)})})},children:[o.jsx(re,{size:"xs",children:f("Label Left",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1,isLabelOnTop:!0}):M)})})},children:[o.jsx(re,{size:"xs",children:f("Label Top",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(xz,{size:13})})]})}),S?o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1}):M)})})},children:[E?o.jsx(re,{size:"xs",children:f("Label Offset",{ns:"dashboard"})}):o.jsx(re,{size:"xs",children:f("Show Label",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var $;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!0}):M)})})},children:[E?o.jsx(re,{size:"xs",children:f("Label on Left",{ns:"dashboard"})}):o.jsx(re,{size:"xs",children:f("Hide Label",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(Q8,{size:13})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var $,M;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:(M=($=e.value.formOptions)==null?void 0:$.fields)==null?void 0:M.filter((W,V)=>V!==w)})})},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]})]},g.id)})]})}finally{n.f()}}function _2e({clipValue:t,templateMissingFields:e,templateFoundFields:n,checkForTemplateFieldsCallback:r,isLargeView:s,localOptions:a}){var l;var i=sn(1);try{const{t:c}=Gt(),d=it(null),p=it(null),f=it(null),m=it(null),b=v.useRef(null),C=it(!1),g=it(Date.now().toString()),w=["text","textarea","select"];return o.jsxs(ne,{className:"select-none mt-1",children:[o.jsx(ne,{className:"my-2",children:o.jsxs(ve,{className:"gap-3 w-full justify-start",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[c("Add Template Field",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("General Fields",{ns:"dashboard"})})}),o.jsx(kn,{}),w.map(x=>o.jsxs(rt,{className:"text-xs",onClick:()=>{var E;d.value=null,a.value.templateOptions||(a.value.templateOptions=[]);const S=a.value.templateOptions.map(N=>{var _,P,I;return(_=N.label)!=null&&_.trim()||(N.label="".concat(N.type&&((P=N.type)==null?void 0:P.charAt(0).toUpperCase())+((I=N.type)==null?void 0:I.slice(1))," ").concat(c("Field",{ns:"dashboard"}))),N});S.push({id:Date.now().toString(),type:x,label:"".concat(x.charAt(0).toUpperCase()+x.slice(1)),isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:[...S]}),d.value=(E=S[S.length-1].id)!=null?E:null},children:[o.jsx(Vr,{size:12,className:"mr-1"}),c("{{type}} Field",{ns:"dashboard",type:x.charAt(0).toUpperCase()+x.slice(1)})]},x)),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("Common Fields",{ns:"dashboard"})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:oW.map(x=>o.jsx(rt,{className:"text-xs",onClick:()=>{var P,I;a.value.templateOptions||(a.value.templateOptions=[]),C.value=!1;const S=[...a.value.templateOptions],E=x==="Text"?"text":x==="Number"?"number":x==="Password"||x==="Secret"||x==="API Key"||x==="License Key"||x==="SSN"?"password":x==="CVV Code"?"passwordCode":x==="Textarea"?"textarea":x==="Credit Card"?"creditcard":"text",N=(P=a.value.templateOptions)==null?void 0:P.every(T=>T.label!==x);N||(C.value=!0);const _=N?x:"".concat(x," ").concat(a.value.templateOptions.length+1);S.push({id:Date.now().toString(),label:_,type:E,isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:S}),x==="Custom"&&(d.value=(I=S[S.length-1].id)!=null?I:null)},children:x},x))}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("Special Field",{ns:"dashboard"})})}),o.jsxs(rt,{className:"text-xs",onClick:()=>{var E;if(d.value=null,a.value.templateOptions||(a.value.templateOptions=[]),(E=a.value.templateOptions)==null?void 0:E.some(N=>N.label==="Clipboard")){a.value.templateOptions=a.value.templateOptions.map(N=>(N.label==="Clipboard"&&(N.isEnable=!0),N));return}const S=a.value.templateOptions.map(N=>N);S.push({id:Date.now().toString(),type:"text",label:"Clipboard",isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:[...S]})},children:[o.jsx(Vr,{size:12,className:"mr-1"}),c("Clipboard",{ns:"dashboard"})]})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[c("Fields Value",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})})}),o.jsx(Wn,{sideOffset:12,align:"center",children:o.jsxs(rt,{className:"text-center items-center justify-center py-1 text-xs",onSelect:()=>{a.value.templateOptions=a.value.templateOptions.map(x=>(x.value="",x)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),g.value=Date.now().toString()},children:[o.jsx(re,{children:c("Clear All Fields",{ns:"dashboard"})}),o.jsx(uE,{size:14,className:"ml-1 text-slate-400"})]})})]})]})}),(l=a.value.templateOptions)==null?void 0:l.map((x,S)=>{var T,L,A,z,Y,O,$,M;const E=x.id===d.value,N=x.type==="textarea",_=x.isLabelOnTop,P=(T=x.selectOptions)==null?void 0:T.find(W=>W===x.value),I=!((L=x.selectOptions)!=null&&L.length);return o.jsxs(ve,{className:"mb-1 group ".concat(_?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[x.label||E?o.jsx(ve,{className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(_?"!justify-start pl-1":"!justify-end"),children:E?o.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[o.jsx(wn,{defaultValue:x.label,small:!0,placeholder:c("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:W=>{var V;(W.key==="Enter"||W.key==="Escape")&&(d.value=null,C.value=!1,(V=a.value.templateOptions)!=null&&V.every((J,H)=>H!==S?J.label!==x.label:!0)||(x.label="".concat(x.label," ").concat(S+1)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}))},onChange:W=>{x.label=W.target.value.trim()}}),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{d.value=null,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})},title:c("Done Edit",{ns:"common"}),children:o.jsx(en,{size:18})})]}):o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(_?"text-left":"text-right max-w-[160px]"),children:x.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsx(ve,{className:"w-full gap-1",children:x.type==="password"||x.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:x.type==="passwordCode"?c("Enter code",{ns:"dashboard"}):c("Enter secret value",{ns:"dashboard"}),autoFocus:S===a.value.templateOptions.length-1&&a.value.templateOptions[S].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,isPassword:!0,numbersOnly:x.type==="passwordCode",showHidePassword:!0,className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:W=>{x.value=W.target.value.trim()},defaultValue:x.value},g.value):x.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:c("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,autoFocus:S===((A=a.value.templateOptions)==null?void 0:A.length)-1&&a.value.templateOptions[S].value==="",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:W=>{x.value=W},ccNumber:x.value},g.value):x.type==="textarea"?o.jsx(Co,{placeholder:c("Enter default value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:x.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:S===a.value.templateOptions.length-1&&a.value.templateOptions[S].value===""&&a.value.templateOptions[S].label!=="Textarea",maxRows:2,value:x.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:W=>{W.stopPropagation()},onChange:W=>{x.value=W.target.value,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})}},g.value):x.type==="select"?o.jsx(ve,{className:"justify-start items-center w-full my-1",children:p.value!==x.id&&f.value!==x.id?o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:x.isEnable===!1,className:"rounded-sm font-semibold hover:bg-transparent ml-0 px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:o.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[o.jsx(re,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:I?c("Select is empty",{ns:"common"}):P||c("Select default",{ns:"common"})}),o.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:o.jsx(Bn,{size:13})})]})})}),o.jsxs(Wn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:I?o.jsx(re,{children:c("Select is empty",{ns:"common"})}):o.jsx(re,{children:c("Select Default Option",{ns:"dashboard"})})}),!I&&o.jsxs(o.Fragment,{children:[o.jsx(kn,{}),(Y=(z=a.value.templateOptions[S])==null?void 0:z.selectOptions)==null?void 0:Y.map((W,V)=>o.jsxs(Cn,{checked:x.value===W,onSelect:()=>{x.value=W,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})},children:[o.jsx(re,{className:"text-xs ".concat(x.value===W?"font-semibold":""),children:W}),x.value===W&&o.jsxs(ve,{className:"ml-auto gap-2 pl-2 opacity-60 hover:opacity-100",children:[o.jsx(J2,{size:13,className:"cursor-pointer hover:text-blue-500 dark:hover:text-blue-400",onClick:()=>{var U;f.value=null,m.value=W,p.value=(U=x.id)!=null?U:null}}),o.jsx(v6,{size:13,className:"cursor-pointer hover:text-red-500 dark:hover:text-red-400",onClick:U=>{var H,F,q,X,te;U.stopPropagation();const J=(F=(H=x.selectOptions)==null?void 0:H.indexOf(W))!=null?F:-1;if(x.selectOptions=(q=x.selectOptions)==null?void 0:q.filter(ee=>ee!==W),J!==-1){const ee=(X=x.selectOptions)==null?void 0:X[J-1],G=(te=x.selectOptions)==null?void 0:te[J];x.value=ee||G||void 0}a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})}})]})]},V))]}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",onClick:()=>{var W;I&&(x.selectOptions=[]),m.value=null,p.value=null,f.value=(W=x.id)!=null?W:null},children:o.jsxs(re,{size:"xs",className:"!text-blue-500 dark:!text-blue-400",children:[o.jsx(Vr,{size:13}),I?c("Add First Option",{ns:"common"}):c("Add Option",{ns:"common"})]})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:c("Enter select option",{ns:"dashboard"}),autoFocus:!!a.value.templateOptions[S].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,type:"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),onKeyDown:W=>{var V,U,J;W.key==="Escape"?(m.value&&(x.value=m.value),p.value=null,m.value=null,f.value=null):W.key==="Enter"&&(m.value&&p.value===x.id?x.selectOptions=(V=x.selectOptions)==null?void 0:V.map(H=>H===m.value&&x.value||H):f.value===x.id&&x.value&&!((U=x.selectOptions)!=null&&U.includes(x.value))&&((J=x.selectOptions)==null||J.push(x.value)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),m.value=null,p.value=null,f.value=null)},onChange:W=>{x.value=W.target.value.trim()},defaultValue:f.value===x.id?"":x.value},g.value),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{var W,V,U;m.value&&p.value===x.id?x.selectOptions=(W=x.selectOptions)==null?void 0:W.map(J=>J===m.value&&x.value||J):f.value===x.id&&x.value&&!((V=x.selectOptions)!=null&&V.includes(x.value))&&((U=x.selectOptions)==null||U.push(x.value)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),m.value=null,p.value=null,f.value=null},title:f.value===x.id?c("Add Option",{ns:"common"}):c("Done Edit",{ns:"common"}),children:f.value===x.id?o.jsx(Vr,{size:18}):p.value===x.id&&o.jsx(en,{size:18})}),o.jsx(je,{size:"mini",variant:"ghost",className:"h-8 w-8 text-slate-400 dark:bg-transparent",onClick:()=>{m.value&&(x.value=m.value),p.value=null,m.value=null,f.value=null},title:c("Cancel",{ns:"common"}),children:o.jsx(In,{size:15})})]})}):((O=x.label)==null?void 0:O.toLocaleLowerCase())!=="clipboard"?o.jsx(wn,{small:!0,placeholder:c("Enter default value",{ns:"dashboard"}),autoFocus:a.value.templateOptions[S].label!=="Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,type:x.type==="number"?"number":"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:W=>{x.value=W.target.value.trim()},defaultValue:x.value},g.value):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,value:x.isValueMasked?yv(c("This field allows to insert text from clipboard",{ns:"dashboard"})):c("This field allows to insert text from clipboard",{ns:"dashboard"}),title:c("This field allows to insert text from clipboard",{ns:"dashboard"}),autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 opacity-100 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),o.jsx(st,{isCompact:!0,text:c("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:o.jsx(pk,{width:15,height:15,className:"".concat(x.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var W;a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isValueMasked:!V.isValueMasked}):V)]})}})})]})})}),o.jsxs(ve,{className:"gap-1 ml-0.5",children:[x.type!=="section"&&o.jsx(je,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isEnable:!V.isEnable}):V)]})},children:a.value.templateOptions&&(($=a.value.templateOptions[S])!=null&&$.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:c("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S-1)]})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:S===0,onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S-1)]})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:c("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:a.value.templateOptions?S===a.value.templateOptions.length-1:!1,onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S+1)]})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:c("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsx(kn,{}),((M=x.label)==null?void 0:M.toLocaleLowerCase())!=="clipboard"&&o.jsxs(rt,{onClick:()=>{var W;E?d.value=null:d.value=(W=x.id)!=null?W:null},children:[E?o.jsx(re,{size:"xs",children:c("Done Edit",{ns:"common"})}):o.jsx(re,{size:"xs",children:c("Edit Label",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(J2,{size:13})})]}),x.isLabelOnTop?o.jsxs(rt,{onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isLabelOnTop:!1}):V)]})},children:[o.jsx(re,{size:"xs",children:c("Label Left",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isLabelOnTop:!0}):V)]})},children:[o.jsx(re,{size:"xs",children:c("Label Top",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(xz,{size:13})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var W;a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.filter((V,U)=>U!==S)]}),r()},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:c("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]})]},S)}),C.value&&o.jsxs(re,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[c("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),o.jsx(In,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{C.value=!1}})]}),e.value.length>0&&o.jsxs(ve,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[o.jsxs(re,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[o.jsx(Ti,{size:13,className:"mr-1"}),c("Found in template but missing from fields definition",{ns:"common"}),":"]}),e==null?void 0:e.value.map((x,S)=>o.jsx(ne,{className:"cursor-pointer",onClick:()=>{var P;a.value.templateOptions||(a.value.templateOptions=[]),C.value=!1;const E=[...a.value.templateOptions],N=(P=a.value.templateOptions)==null?void 0:P.every(I=>I.label!==x);N||(C.value=!0);const _=N?x:"".concat(x," ").concat(a.value.templateOptions.length+1);E.push({id:Date.now().toString(),label:_,type:"text",isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:E}),r()},children:o.jsxs(St,{variant:"outline",className:"bg-red-50 dark:bg-red-950/80 hover:bg-blue-50 dark:hover:bg-blue-950/80 border-red-100 dark:border-red-900 hover:border-blue-100 dark:hover:border-blue-800 group text-normal pr-2.5",children:[o.jsx(st,{text:c("Add to template fields",{ns:"common"}),sideOffset:5,isCompact:!0,side:"bottom",children:o.jsxs(ve,{className:"group !text-red-500 dark:!text-red-400 hover:!text-blue-500 dark:hover:!text-blue-400 font-semibold mr-0.5",children:[o.jsx(v5,{size:12,className:"mr-0.5 group-hover:block hidden"}),o.jsx(Vr,{size:12,className:"mr-0.5 group-hover:hidden"}),x]})}),o.jsx(st,{text:c("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:o.jsx(In,{onClick:E=>{var N;E.preventDefault(),E.stopPropagation(),(N=b.current)==null||N.handleRemoveTemplateField(x)},size:12,className:"ml-0.5 mr-0 hover:!text-red-600 dark:hover:!text-red-500 group-hover:text-blue-300 dark:group-hover:text-blue-400 text-red-300 dark:text-red-400 cursor-pointer"})},S)]})},S))]}),o.jsxs(o.Fragment,{children:[a.value.templateOptions.length>0&&o.jsxs(ve,{className:"gap-2 my-3 items-start justify-start flex-wrap",children:[a.value.templateOptions.map((x,S)=>{var E;return!x.label||!x.label.length?null:x.label&&(n!=null&&n.value.includes((E=x.label)==null?void 0:E.toLocaleLowerCase()))?o.jsx(st,{text:x.isEnable?x.label==="Clipboard"?o.jsx(us,{i18nKey:"Field {{Clipboard}} has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):o.jsx(us,{i18nKey:"Field {{{{name}}}} has been found in the template",ns:"dashboard",values:{name:x.label}}):o.jsx(us,{i18nKey:"Disabled field {{{{name}}}} has been found in the template",ns:"dashboard",values:{name:x.label}}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"".concat(x.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-500"," !font-normal group"),size:"xs",children:o.jsxs(St,{variant:"outline",className:"".concat(x.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100/70 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800/70 hover:bg-gray-100/70 dark:hover:bg-gray-700/70 border-gray-200 dark:border-gray-700"," text-normal pr-2.5 group-hover:pr-1.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),x.label,o.jsx(st,{text:c("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:o.jsx(In,{onClick:()=>{var N;(N=b.current)==null||N.handleRemoveTemplateField(x.label)},size:12,className:"".concat(x.isEnable?"text-green-600 dark:text-green-400":"text-gray-400 dark:text-gray-500"," ml-1 hover:!text-red-600 dark:hover:!text-red-300 group-hover:block animate-in fade-in hidden cursor-pointer")})})]})})},S):o.jsx(st,{text:x.isEnable?x.label==="Clipboard"?o.jsx(us,{i18nKey:"Add {{Clipboard}} field to template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):o.jsx(us,{i18nKey:"Add field {{{{name}}}} into the template",ns:"dashboard",values:{name:x.label}}):o.jsx(us,{i18nKey:"Disabled field {{{{name}}}}",ns:"dashboard",values:{name:x.label}}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"".concat(x.isEnable?"!text-slate-500 dark:!text-slate-600 hover:!text-blue-500 dark:hover:!text-blue-700 cursor-pointer":"!text-gray-300 dark:!text-gray-600 "," group !font-normal"),size:"xs",onClick:()=>{var N;x.isEnable&&((N=b==null?void 0:b.current)==null||N.handleAddText("{{".concat(x.label,"}}")))},children:o.jsxs(St,{variant:"outline",className:"".concat(x.isEnable?"bg-white dark:bg-slate-300/90 hover:bg-blue-50 dark:hover:bg-blue-300 border-slate-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800":"bg-gray-50 dark:bg-gray-800/80 hover:bg-gray-50 dark:hover:bg-gray-800 border-gray-100 dark:border-gray-700"," text-normal pr-2.5"),children:[x.isEnable?o.jsxs(o.Fragment,{children:[o.jsx(Sh,{size:12,className:"mr-0.5 group-hover:block hidden"}),o.jsx(Vr,{size:12,className:"mr-0.5 group-hover:hidden"})]}):o.jsx(wa,{size:12,className:"mr-0.5 hover:text-blue-500 cursor-pointer",onClick:N=>{var _;N.preventDefault(),N.stopPropagation(),a.value=ae(R({},a.value),{templateOptions:[...(_=a.value.templateOptions)==null?void 0:_.map((P,I)=>I===S?ae(R({},P),{isEnable:!0}):P)]})}}),x.label]})})},S)}),a.value.templateOptions.length>1&&n.value.length>0&&o.jsx(st,{text:c("Remove all fields from template",{ns:"common"}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"!text-slate-300 dark:!text-slate-500 hover:!text-red-500 dark:hover:!text-red-500 cursor-pointer !font-normal group",size:"xs",onClick:()=>{var x;(x=b==null?void 0:b.current)==null||x.handleRemoveAllTemplateFields()},children:o.jsx(St,{variant:"outline",className:"dark:bg-slate-300/90 dark:hover:bg-red-100 dark:border-slate-700 dark:hover:border-blue-800 bg-white hover:bg-red-50 border-slate-200 hover:border-red-200 text-normal px-2.5 py-[3px]",children:o.jsx(v6,{size:13})})})})]}),o.jsx(Co,{ref:b,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"".concat(c("Enter template or drag from history",{ns:"dashboard"}),". ").concat(c("Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.",{ns:"dashboard"})),rows:2,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:s?12:6,value:t.value,onKeyDown:x=>{x.stopPropagation()},onChange:x=>{t.value=x.target.value}})]})]})}finally{i.f()}}function T2e({clipId:t,clipValue:e,showLinkValidationError:n,isLargeView:r,isDark:s,webrequestTestOutputObject:a,webrequestLocalOptions:i}){var c,d,p,f,m,b,C,g,w,x,S,E,N,_,P,I,T,L,A,z,Y,O,$,M,W,V;var l=sn(1);try{const{t:U}=Gt(),J=it(!1),H=it(!1),F=it(!1),q=it(!1),{updateItemById:X}=bl(),te={dotpathjson:U("FILTERED_TYPES:::Dot Path",{ns:"dashboard"}),jsonpath:U("FILTERED_TYPES:::JSON Path",{ns:"dashboard"}),regex:U("FILTERED_TYPES:::RegEx",{ns:"dashboard"}),regexreplace:U("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"}),removequotes:U("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})},ee=G=>ge(this,null,function*(){const{headers:Z,body:le,filters:se}=i.value,de={headers:Z,body:le,filters:se,method:G};yield X({updatedItem:{requestOptions:JSON.stringify({headers:Z,body:le,method:G}),itemId:t}}),i.value=R({},de)});return v.useEffect(()=>{i.value.body||(q.value=!1)},[a.value.body]),o.jsxs(ne,{className:"select-none mt-1",children:[o.jsxs(ve,{className:"text-normal",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"px-2 pr-1 h-10 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{children:i.value.method}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{ee("GET")},children:o.jsx(re,{className:"".concat(i.value.method==="GET"&&"font-semibold"),children:"GET"})}),o.jsx(rt,{textValue:"POST",onClick:()=>{ee("POST")},children:o.jsx(re,{className:"".concat(i.value.method==="POST"&&"font-semibold"),children:"POST"})}),o.jsx(rt,{onClick:()=>{ee("PUT")},children:o.jsx(re,{className:"".concat(i.value.method==="PUT"&&"font-semibold"),children:"PUT"})}),o.jsx(rt,{onClick:()=>{ee("DELETE")},children:o.jsx(re,{className:"".concat(i.value.method==="DELETE"&&"font-semibold"),children:"DELETE"})}),o.jsx(rt,{onClick:()=>{ee("HEAD")},children:o.jsx(re,{className:"".concat(i.value.method==="HEAD"&&"!font-semibold"),children:"HEAD"})})]})]}),o.jsx(wn,{defaultValue:e.value,placeholder:"Enter request url...",classNameInput:"pr-7 text-sm focus:border- ".concat(n.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(n.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:n.value?o.jsx(st,{text:U("Request url might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):n.value===!1&&o.jsx(st,{text:U("Request url is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:G=>{if(n.value&&(n.value=void 0),G.target.value.length>5){const le=zr().match(G.target.value);!le||le.length>1?n.value=!0:n.value=!1}e.value=G.target.value}})]}),o.jsx(ne,{className:"mt-2",children:o.jsxs(ve,{className:"gap-4 w-full justify-start",children:[o.jsx(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",onClick:()=>{const G=[...i.value.headers];G.unshift({id:Date.now().toString(),name:"",isEnable:!0,value:""}),i.value=ae(R({},i.value),{headers:G})},title:U("Add Request Header",{ns:"dashboard"}),children:U("Add Header",{ns:"dashboard"})}),o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[U("Add Auth",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Basic Password",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"Basic Password",basicPassword:"",basicUsername:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((c=i.value.auth)==null?void 0:c.type)==="Basic Password"&&"font-semibold"),children:U("Basic Auth",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Bearer Token",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"Bearer Token",bearerToken:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((d=i.value.auth)==null?void 0:d.type)==="Bearer Token"&&"font-semibold"),children:U("Bearer Token",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="API Key",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"API Key",apiKey:"",apiValue:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((p=i.value.auth)==null?void 0:p.type)==="API Key"&&"font-semibold"),children:U("API Key",{ns:"dashboard"})})})]})]})}),o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[U("Add Response Filter",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"dotpathjson",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::Dot Path",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"jsonpath",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::JSON Path",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"regex",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::RegEx",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"regexreplace",isEnable:!0,replace:"",value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"removequotes",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})})})]})]})})]})}),i.value.headers.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Headers",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:i.value.headers.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:J.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{J.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{J.value=!1},onPointerDownOutside:()=>{J.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove headers",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{J.value=!1},children:U("Cancel",{ns:"common"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{headers:[]}),J.value=!1},children:[U("Remove",{ns:"common"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.headers.length})]})]})]})})]})]}),i.value.headers.map((G,Z)=>{var le;return o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:G.name,disabled:G.isEnable===!1,onChange:se=>{G.name=se.target.value.trim()},placeholder:U("Name",{ns:"dashboard"}),autoFocus:Z===0,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,placeholder:U("Value",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:se=>{G.value=se.target.value.trim()},defaultValue:G.value,required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value=ae(R({},i.value),{headers:i.value.headers.map((se,de)=>de===Z?ae(R({},se),{isEnable:!se.isEnable}):se)})},children:(le=i.value.headers[Z])!=null&&le.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{headers:i.value.headers.filter((se,de)=>de!==Z)})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]},G.id)})]}),((f=i.value.auth)==null?void 0:f.type)&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Auth",{ns:"dashboard"})," (",(m=i.value.auth)==null?void 0:m.type,")"]}),o.jsxs(Sa,{defaultOpen:!1,open:H.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{H.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-52",onEscapeKeyDown:()=>{H.value=!1},onPointerDownOutside:()=>{H.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove Auth",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{H.value=!1},children:U("Cancel",{ns:"common"})}),o.jsx(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{auth:{}}),H.value=!1},children:U("Remove",{ns:"common"})})]})]})})]})]}),((b=i.value.auth)==null?void 0:b.type)==="Bearer Token"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,isPassword:!0,showHidePassword:!0,defaultValue:(C=i.value.auth)==null?void 0:C.bearerToken,disabled:((g=i.value.auth)==null?void 0:g.isEnable)===!1,onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.bearerToken=G.target.value.trim()},className:"".concat(((w=i.value.auth)==null?void 0:w.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:U("Bearer Token",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(x=i.value.auth)!=null&&x.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),((S=i.value.auth)==null?void 0:S.type)==="API Key"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:(E=i.value.auth)==null?void 0:E.apiKey,disabled:((N=i.value.auth)==null?void 0:N.isEnable)===!1,className:"".concat(((_=i.value.auth)==null?void 0:_.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.apiKey=G.target.value.trim()},placeholder:U("API Key",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,defaultValue:(P=i.value.auth)==null?void 0:P.apiValue,disabled:((I=i.value.auth)==null?void 0:I.isEnable)===!1,className:"".concat(((T=i.value.auth)==null?void 0:T.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.apiValue=G.target.value.trim()},placeholder:U("API Key's Value",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(L=i.value.auth)!=null&&L.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),((A=i.value.auth)==null?void 0:A.type)==="Basic Password"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:(z=i.value.auth)==null?void 0:z.basicUsername,disabled:((Y=i.value.auth)==null?void 0:Y.isEnable)===!1,className:"".concat(((O=i.value.auth)==null?void 0:O.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.basicUsername=G.target.value.trim()},placeholder:U("Basic Username",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,defaultValue:($=i.value.auth)==null?void 0:$.basicPassword,disabled:((M=i.value.auth)==null?void 0:M.isEnable)===!1,className:"".concat(((W=i.value.auth)==null?void 0:W.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.basicPassword=G.target.value.trim()},placeholder:U("Basic Password",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(V=i.value.auth)!=null&&V.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}),i.value.filters.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Response Filters",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:i.value.filters.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:F.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{F.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{F.value=!1},onPointerDownOutside:()=>{F.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove filters",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{F.value=!1},children:U("Cancel",{ns:"common"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{filters:[]}),F.value=!1},children:[U("Remove",{ns:"common"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.filters.length})]})]})]})})]})]}),i.value.filters.map((G,Z)=>{var se;const le=te[G.filterType];return o.jsxs(ve,{className:"gap-1 mb-1",children:[o.jsx(re,{title:"".concat(U("Filter Type",{ns:"dashboard"}),": ").concat(le),className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end"),children:o.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[Z+1,". ",le]})}),G.filterType==="removequotes"?o.jsx(wn,{small:!0,autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 !text-slate-600",disabled:!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," "),readOnly:!0,defaultValue:U("Remove all double quotes",{ns:"dashboard"})}):o.jsx(wn,{small:!0,placeholder:U("Filter's Value",{ns:"dashboard"}),autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:de=>{G.value=de.target.value.trim()},defaultValue:G.value}),G.filterType==="regexreplace"&&o.jsx(wn,{small:!0,placeholder:U("Replace Value",{ns:"dashboard"}),autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:de=>{G.replace=de.target.value.trim()},defaultValue:G.replace}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value=ae(R({},i.value),{filters:i.value.filters.map((de,ce)=>ce===Z?ae(R({},de),{isEnable:!de.isEnable}):de)})},children:(se=i.value.filters[Z])!=null&&se.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z-1)})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:Z===0,onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z-1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:U("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:Z===i.value.filters.length-1,onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z+1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:U("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsxs(rt,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{i.value=ae(R({},i.value),{filters:i.value.filters.filter((de,ce)=>ce!==Z)})},children:[o.jsx(re,{className:"!text-red-500",children:U("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]},G.id)})]}),(a.value.body||a.value.status)&&o.jsxs(ne,{className:"".concat(a.value.status&&a.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(r?"py-1":"py-0"," rounded-md px-3 relative mt-2 pt-1 pb-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[a.value.body&&a.value.filteredBody&&o.jsx(pl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:q.value?"fullBody":"filteredBody",onValueChange:G=>{q.value=G==="fullBody"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[o.jsx(jr,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:U("Full Body Response",{ns:"dashboard"}),children:U("Full",{ns:"dashboard"})}),o.jsx(jr,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:U("Filtered Response",{ns:"dashboard"}),children:U("Filtered",{ns:"dashboard"})})]})}),o.jsx(Ca,{isDark:s,maxHeight:r?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:a.value.filteredBody&&!q.value?a.value.filteredBody:a.value.body||U("No body returned for response",{ns:"dashboard"}),language:a.value.contentType&&a.value.body&&aM[a.value.contentType.split(";")[0]]||"text"}),o.jsxs(ve,{className:"justify-between py-1 pb-1",children:[o.jsx(ne,{className:"text-xs rounded-sm px-1.5 select-none bg-slate-300 text-slate-600",children:a.value.contentType&&aM[a.value.contentType.split(";")[0]]}),o.jsx(ne,{className:"".concat(a.value.status&&a.value.status>=400?"bg-red-300 text-red-700":"bg-green-300 text-green-700"," text-xs rounded-sm px-1.5 select-none"),children:a.value.status&&a.value.status>=400?"".concat(a.value.hasFiltersError?"filters":a.value.status," error"):"".concat(a.value.status)})]})]})]})}finally{l.f()}}function P2e({clipValue:t,showLinkValidationError:e,isLargeView:n,isDark:r,testOutputObject:s,localOptions:a}){var l,c,d,p,f,m,b,C,g,w,x,S,E,N,_,P,I,T,L,A,z,Y,O,$,M,W,V,U,J,H,F,q,X,te;var i=sn(1);try{const{t:ee}=Gt(),G=it(!1),Z=it(!1),le={cssselector:ee("RULES_TYPES:::CSS Selector",{ns:"dashboard"}),regexfind:ee("RULES_TYPES:::RegEx Find",{ns:"dashboard"}),regexmatch:ee("RULES_TYPES:::RegEx Match",{ns:"dashboard"}),regexmatchfoundgroup:ee("RULES_TYPES:::RegEx Group Match",{ns:"dashboard"}),regexreplace:ee("RULES_TYPES:::RegEx Replace",{ns:"dashboard"})},se={comma:ee("SEPARATOR_TYPES:::Comma (,)",{ns:"dashboard"}),semicolon:ee("SEPARATOR_TYPES:::Semicolon (;)",{ns:"dashboard"}),space:ee("SEPARATOR_TYPES:::Space (' ')",{ns:"dashboard"}),newline:ee("SEPARATOR_TYPES:::New Line (\\n)",{ns:"dashboard"}),tab:ee("SEPARATOR_TYPES:::Tab (\\t)",{ns:"dashboard"}),pipe:ee("SEPARATOR_TYPES:::Pipe (|)",{ns:"dashboard"})},de={first:ee("RETURN_POSITION_TYPES:::First Only",{ns:"dashboard"}),last:ee("RETURN_POSITION_TYPES:::Last Only",{ns:"dashboard"})};return o.jsxs(ne,{className:"select-none mt-1",children:[o.jsxs(ve,{className:"text-normal",children:[o.jsx(st,{asChild:!0,text:ee("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:o.jsx("span",{children:ee("URL",{ns:"dashboard"})})})}),o.jsx(wn,{defaultValue:t.value,placeholder:ee("Enter request url",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(e.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(e.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:e.value?o.jsx(st,{text:ee("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):e.value===!1&&o.jsx(st,{text:ee("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:ce=>{if(e.value&&(e.value=void 0),ce.target.value.length>5){const pe=zr().match(ce.target.value);!pe||pe.length>1?e.value=!0:e.value=!1}t.value=ce.target.value}})]}),o.jsx(ne,{className:"mt-2",children:o.jsx(ve,{className:"gap-4 w-full justify-start",children:o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[ee("Add Scraping Rule",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"cssselector",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("CSS Selector",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexfind",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Find",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatch",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Match",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatchfoundgroup",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Match Group",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexreplace",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Replace",{ns:"dashboard"})})})]})]})})})}),a.value.scrapingRules&&a.value.scrapingRules.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[ee("Scrapping Rules",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:a.value.scrapingRules.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:G.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:ee("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{G.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{G.value=!1},onPointerDownOutside:()=>{G.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:ee("Confirm to remove rules",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{G.value=!1},children:ee("Cancel",{ns:"dashboard"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:[]}),G.value=!1},children:[ee("Remove",{ns:"dashboard"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:a.value.scrapingRules.length})]})]})]})})]})]}),a.value.scrapingRules.map((ce,ye)=>{var me,be;const pe=le[ce.ruleType];return o.jsxs(ve,{className:"mb-1 mt-2 items-center",children:[o.jsx(re,{title:"".concat(ee("Rule Type",{ns:"common"}),": ").concat(pe),className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end pb-2"),children:o.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[ye+1,". ",pe]})}),o.jsxs(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),children:[o.jsx(ve,{className:"w-full gap-1",children:o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:ce.ruleType==="cssselector"?"Selector":"Rule's Value",autoFocus:a.value.scrapingRules?ye===((me=a.value.scrapingRules)==null?void 0:me.length)-1:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:Ee=>{ce.value=Ee.target.value.trim()},defaultValue:ce.value}),ce.ruleType==="cssselector"&&o.jsx(wn,{small:!0,placeholder:"Find Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.filterText=Ee.target.value.trim()},defaultValue:ce.filterText})]})}),o.jsxs(ve,{className:"gap-1 mb-1",children:[ce.ruleType==="regexreplace"&&o.jsx(wn,{small:!0,placeholder:"Replace Value",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.replace=Ee.target.value.trim()},defaultValue:ce.replace}),ce.ruleType==="cssselector"&&o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:"Attribute Name",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.returnAttribute=Ee.target.value.trim()},defaultValue:ce.returnAttribute}),o.jsx(wn,{small:!0,placeholder:"Attribute Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.returnAttributeText=Ee.target.value.trim()},defaultValue:ce.returnAttributeText})]})]})]}),o.jsxs(ve,{className:"gap-1 mb-1 mt-[-12px] ml-2",children:[o.jsx(je,{size:"mini",title:ee("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ee;a.value=ae(R({},a.value),{scrapingRules:(Ee=a.value.scrapingRules)==null?void 0:Ee.map((We,qe)=>qe===ye?ae(R({},We),{isEnable:!We.isEnable}):We)})},children:a.value.scrapingRules&&((be=a.value.scrapingRules[ye])!=null&&be.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:ee("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye-1)})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:ye===0,onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye-1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:ee("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:a.value.scrapingRules?ye===a.value.scrapingRules.length-1:!1,onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye+1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:ee("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsxs(rt,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{var Ee;a.value=ae(R({},a.value),{scrapingRules:(Ee=a.value.scrapingRules)==null?void 0:Ee.filter((We,qe)=>qe!==ye)})},children:[o.jsx(re,{className:"!text-red-500",children:ee("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]},ce.id)}),a.value.scrapingRules&&a.value.scrapingRules.length>0&&o.jsxs(ve,{className:"mt-2 justify-start",children:[o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-[13px] text-slate-500 border-0 font-semibold mr-2 flex items-center",children:o.jsx("span",{className:"whitespace-nowrap",children:ee("Return Result As",{ns:"dashboard"})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Return Type",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{className:"whitespace-nowrap",children:(l=a.value.scrapingOptions)==null?void 0:l.returnType}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Return Type",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((c=a.value.scrapingOptions)==null?void 0:c.returnType)==="Text",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnType:"Text"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((d=a.value.scrapingOptions)==null?void 0:d.returnType)==="Text"&&"font-semibold"),children:ee("ReturnType:::Text",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((p=a.value.scrapingOptions)==null?void 0:p.returnType)==="Array",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnType:"Array"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((f=a.value.scrapingOptions)==null?void 0:f.returnType)==="Array"&&"font-semibold"),children:ee("ReturnType:::Array",{ns:"dashboard"})})})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Return Count Limit",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsxs("span",{className:"whitespace-nowrap",children:[ee("Limit",{ns:"dashboard"}),":",o.jsx("span",{className:"ml-1",children:(m=a.value.scrapingOptions)!=null&&m.returnCount&&a.value.scrapingOptions.returnPosition==null&&a.value.scrapingOptions.returnCount>0?(b=a.value.scrapingOptions)==null?void 0:b.returnCount:((C=a.value.scrapingOptions)==null?void 0:C.returnPosition)!==null?de[(g=a.value.scrapingOptions)==null?void 0:g.returnPosition]:ee("RETURN_POSITION_TYPES:::All",{ns:"dashboard"})})]}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Return Count Limit",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((w=a.value.scrapingOptions)==null?void 0:w.returnCount)==null&&((x=a.value.scrapingOptions)==null?void 0:x.returnPosition)==null,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:null});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((S=a.value.scrapingOptions)==null?void 0:S.returnCount)==null&&((E=a.value.scrapingOptions)==null?void 0:E.returnPosition)==null&&"font-semibold"),children:ee("All (No Limit)",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((N=a.value.scrapingOptions)==null?void 0:N.returnPosition)=="first",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnCount:null,returnPosition:"first"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((_=a.value.scrapingOptions)==null?void 0:_.returnPosition)=="first"&&"font-semibold"),children:ee("First Only",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((P=a.value.scrapingOptions)==null?void 0:P.returnPosition)=="last",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnCount:null,returnPosition:"last"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((I=a.value.scrapingOptions)==null?void 0:I.returnPosition)=="last"&&"font-semibold"),children:ee("Last Only",{ns:"dashboard"})})}),[...Array(5)].map((ce,ye)=>{var me,be;const pe=ye+1;return o.jsx(Cn,{checked:((me=a.value.scrapingOptions)==null?void 0:me.returnCount)===pe,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const Ee=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:pe});a.value=ae(R({},a.value),{scrapingOptions:Ee})},children:o.jsx(re,{className:"".concat(((be=a.value.scrapingOptions)==null?void 0:be.returnCount)===pe&&"font-semibold"),children:pe})},pe)}),[10,20].map(ce=>{var ye,pe;return o.jsx(Cn,{checked:((ye=a.value.scrapingOptions)==null?void 0:ye.returnCount)===ce,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const me=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:ce});a.value=ae(R({},a.value),{scrapingOptions:me})},children:o.jsx(re,{className:"".concat(((pe=a.value.scrapingOptions)==null?void 0:pe.returnCount)===ce&&"font-semibold"),children:ce})},ce)})]})]}),((T=a.value.scrapingOptions)==null?void 0:T.returnType)!=="Array"&&((L=a.value.scrapingOptions)==null?void 0:L.returnPosition)==null&&(((A=a.value.scrapingOptions)==null?void 0:A.returnCount)==null||((z=a.value.scrapingOptions)==null?void 0:z.returnCount)!==1)&&o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Text Separator",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{className:"whitespace-nowrap",children:se[(Y=a.value.scrapingOptions)==null?void 0:Y.returnSeparator]}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Text Separator",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((O=a.value.scrapingOptions)==null?void 0:O.returnSeparator)==="newline",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"newline"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat((($=a.value.scrapingOptions)==null?void 0:$.returnSeparator)==="newline"&&"font-semibold"),children:[ee("ReturnSeparator:::New Line",{ns:"dashboard"})," (\\n)"]})}),o.jsx(Cn,{checked:((M=a.value.scrapingOptions)==null?void 0:M.returnSeparator)==="tab",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"tab"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((W=a.value.scrapingOptions)==null?void 0:W.returnSeparator)==="tab"&&"font-semibold"),children:[ee("ReturnSeparator:::Tab",{ns:"dashboard"})," (\\t)"]})}),o.jsx(Cn,{checked:((V=a.value.scrapingOptions)==null?void 0:V.returnSeparator)==="comma",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"comma"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((U=a.value.scrapingOptions)==null?void 0:U.returnSeparator)==="comma"&&"font-semibold"),children:[ee("ReturnSeparator:::Comma",{ns:"dashboard"})," (,)"]})}),o.jsx(Cn,{checked:((J=a.value.scrapingOptions)==null?void 0:J.returnSeparator)==="semicolon",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"semicolon"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((H=a.value.scrapingOptions)==null?void 0:H.returnSeparator)==="semicolon"&&"font-semibold"),children:[ee("ReturnSeparator:::Semicolon",{ns:"dashboard"})," (;)"]})}),o.jsx(Cn,{checked:((F=a.value.scrapingOptions)==null?void 0:F.returnSeparator)==="pipe",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"pipe"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((q=a.value.scrapingOptions)==null?void 0:q.returnSeparator)==="pipe"&&"font-semibold"),children:[ee("ReturnSeparator:::Pipe",{ns:"dashboard"})," (|)"]})}),o.jsx(Cn,{checked:((X=a.value.scrapingOptions)==null?void 0:X.returnSeparator)==="space",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"space"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((te=a.value.scrapingOptions)==null?void 0:te.returnSeparator)==="space"&&"font-semibold"),children:[ee("ReturnSeparator:::Space",{ns:"dashboard"})," (' ')"]})})]})]})]})]}),(s.value.body||s.value.status)&&o.jsxs(ne,{className:"".concat(s.value.status&&s.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(n?"!pb-3 mb-1 !py-3":"py-0 pb-2"," rounded-md px-3 relative mt-2 pt-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[s.value.body&&s.value.scrappedBody&&o.jsx(pl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:Z.value?"fullBody":"filteredBody",onValueChange:ce=>{Z.value=ce==="fullBody"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[o.jsx(jr,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:ee("Full Body Response",{ns:"dashboard"}),children:ee("Full",{ns:"dashboard"})}),o.jsx(jr,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:ee("Filtered Response",{ns:"dashboard"}),children:s.value.foundCount&&s.value.foundCount>1?ee("Found {{foundCount}} results",{ns:"dashboard",foundCount:s.value.foundCount}):ee("Found",{ns:"common"})})]})}),o.jsx(Ca,{isDark:r,maxHeight:n?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:s.value.scrappedBody&&!Z.value?s.value.scrappedBody:s.value.body||ee("No body returned for response",{ns:"dashboard"}),language:s.value.body&&Z.value?"html":"text"}),a.value.scrapingRules&&a.value.scrapingRules.length===0&&o.jsxs(re,{className:"text-xs text-yellow-600",children:[ee("You have no rules added",{ns:"dashboard"}),"."]}),s.value.status&&s.value.status>=400&&o.jsx(ve,{className:"justify-between py-1 pb-1",children:o.jsxs(ne,{className:"text-xs rounded-sm px-1.5 select-none bg-red-300 text-red-700",children:[s.value.status," error"]})})]})]})}finally{i.f()}}function iW({id:t,isMenu:e}){var n=sn(1);try{const r=it(!1),{t:s}=Gt(),a=()=>{r.value=!1,XS.value=null},{deleteClipImageByItemId:i}=Cge();return o.jsxs(Sa,{defaultOpen:!1,open:r.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:s("Remove image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-red-50/80 flex items-center justify-center hover:bg-red-50/100",onClick:()=>{r.value=!0,XS.value=t},children:o.jsx(kr,{size:20,className:"text-red-600 cursor-pointer"})})})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:r.value&&o.jsxs(ve,{className:"flex-col",children:[e?o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:s("Are you sure you want to remove image from the menu?",{ns:"menus"})}):o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:s("Are you sure you want to remove image from the clip?",{ns:"dashboard"})}),o.jsx(re,{color:"black",size:"sm",className:"italic text-center",children:s("This action cannot be undone.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{a()},children:s("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{i({itemId:t}),a()},children:s("Remove",{ns:"common"})})]})]})})]})}finally{n.f()}}function M2e({clipId:t,isOver:e,value:n,isCode:r,isText:s,isTemplate:a,isForm:i,isImage:l,isDelete:c,isMasked:d,hasEmoji:p,isVideo:f,isCommand:m,isWebRequest:b,isWebScraping:C,isPath:g,isLink:w,isLargeView:x,imageDataUrl:S,isPinned:E,isFavorite:N,requestOptions:_,isShowLinkedClip:P,formTemplateOptions:I,isNewlyCreated:T,isDark:L,detectedLanguage:A,isHistoryDragActive:z,onCancel:Y}){var $,M,W,V,U,J,H,F,q,X,te,ee;var O=sn(1);try{const{t:G}=Gt(),Z=v.useRef(null),le=it(""),se=it({method:"GET",headers:[],body:"",scrapingRules:[],scrapingOptions:{returnType:"Text",returnSeparator:null,returnCount:null},filters:[],auth:{}}),de=it({templateOptions:[],formOptions:{fields:[]}}),ce=it(""),ye=it(""),pe=it("text"),me=it({body:null,status:null,hasFiltersError:null,foundCount:null,filteredBody:null,contentType:null}),{metadataLinkByItemId:be,invalidateLinkMetadataByItemId:Ee}=Sx(w,t),We=(be==null?void 0:be.linkTitle)&&(be==null?void 0:be.linkDomain),qe=qh(),ot=it(!1),Ve=it([]),Ge=it([]),ft=it(Date.now()),Ie=it(!1),Ke=it(void 0),ut=it(void 0),$e=it(void 0),ht=it(void 0),{updateItemById:Fe}=bl(),pt=v.useRef(null),Qe=jo(le.value,300),Lt=jo(le.value,600),Ut=x?"max-h-[600px]":"max-h-[300px]",wt=it(!1);v.useEffect(()=>{if(_)try{const Ue=JSON.parse(_);se.value=R(R({},se.value),Ue)}catch(Ue){console.log("error",Ue)}},[_]),v.useEffect(()=>{if(I)try{const Ue=JSON.parse(I);de.value=R(R({},de.value),Ue)}catch(Ue){console.log("error",Ue)}},[I]),v.useEffect(()=>{le.value=n!=null?n:""},[n]);const Xt=v.useMemo(()=>r?G("Type:::Code Snippet",{ns:"common"}):l?G("Type:::Image",{ns:"common"}):m?G("Type:::Shell Command",{ns:"common"}):b?G("Type:::Web Request (HTTP)",{ns:"common"}):C?G("Type:::Web Scraper / Parser",{ns:"common"}):w?G("Type:::Link or Email",{ns:"common"}):g?G("Type:::File, Path or App",{ns:"common"}):i?G("Type:::Form Auto Fill",{ns:"common"}):a?G("Type:::Template Fill",{ns:"common"}):G("Type:::Plain Text",{ns:"common"}),[r,l,m,b,w,g,i,a,C]);v.useEffect(()=>{if(w){const Je=zr().match(le.value);!Je||Je.length>1?Ke.value=!0:Ke.value=!1}},[w]);const $t=v.useCallback(Ue=>ge(this,null,function*(){const jt=n===le.value?n:Ue;g&&jt.length>5&&On("check_path",{path:jt}).then(()=>{ut.value=!1}).catch(()=>{ut.value=!0})}),[g]),tn=v.useCallback(Ue=>{const Je=/{{[^{}]+}}/g;Ve.value=[],Ge.value=[];const jt=Ue.match(Je);jt&&jt.forEach((we,Se)=>{jt[Se]=we.replace(/[\n\r{}]+/g,"").trim(),Ge.value.push(jt[Se].toLocaleLowerCase());const De=de.value.templateOptions.find(nt=>{var Pe;return((Pe=nt.label)==null?void 0:Pe.toLocaleLowerCase())===jt[Se].toLocaleLowerCase()});De?De.isFound=!0:jt[Se].toLocaleLowerCase()==="clipboard"?Ve.value.push("Clipboard"):Ve.value.push(jt[Se])}),Ve.value=[...new Set(Ve.value)],!jt||jt.length===0||Ve.value.length>0?ht.value=!0:ht.value=!1},[a,de.value.templateOptions]);v.useEffect(()=>{g&&Qe.length>5&&$t(Qe)},[g,Qe]),v.useEffect(()=>{a&&Lt.length>5&&tn(le.value)},[Lt]),v.useEffect(()=>{(Ke.value||ut.value||ht.value||$e.value)&&Ie.value&&(ot.value=!0)},[Ke.value,ut.value,$e.value,ht.value,Ie.value]),v.useEffect(()=>{me.value.status&&me.value.status>=400&&Ie.value&&(ot.value=!0)},[me.value.status,Ie.value]);const Pt=(Ue=!1)=>ge(this,null,function*(){var we,Se,De,nt,Pe,gt;if(am.value&&(Ib.value=!0,yield new Promise(Ze=>setTimeout(Ze,200))),Ab.value)return;let Je=null;ot.value=!1,Ie.value=!0,Ke.value=void 0,ut.value=void 0,me.value={};const jt=le.value.trim();if(Ue)Je=g?"Error":null;else{if(a)if(tn(le.value),Ve.value.length>0||Ge.value.length===0){ht.value=!0;return}else ht.value=!1;if(i&&((we=de.value.formOptions)!=null&&we.openUrl)&&!((Se=de.value.formOptions)!=null&&Se.isOpenUrlDisabled)){const Re=zr().match((De=de.value.formOptions)==null?void 0:De.openUrl);if(!Re||Re.length>1){Ke.value=!0;return}}if(w){const Re=zr().match(jt);if(!Re||Re.length>1){Ke.value=!0;return}}if(g)try{Je=yield On("path_type_check",{path:jt})}catch(Ze){Je="Error",ut.value=!0;return}else if(m)try{if(yield On("run_shell_command",{execCmd:jt}),(nt=se.value.outputTemplate)!=null&&nt.id&&!((gt=(Pe=se.value.outputTemplate)==null?void 0:Pe.value)!=null&>.includes("{{output}}"))){ht.value=!0;return}}catch(Ze){ce.value=Ze,$e.value=!0;return}else if(b)try{const Ze=yield On("run_web_request",{request:{url:jt,method:se.value.method,headers:se.value.headers,filters:se.value.filters,body:se.value.body,auth:se.value.auth}});if(me.value={},Ze.status&&Ze.status>=400){me.value={body:Ze.body,filteredBody:Ze.filteredBody,hasFiltersError:Ze.hasFiltersError,status:Ze.status,contentType:Ze.contentType};return}}catch(Ze){me.value={body:Ze,status:500,contentType:null};return}else if(C)try{const Ze=yield On("run_web_scraping",{request:{url:jt,method:"GET",scrapingRules:se.value.scrapingRules,scrapingOptions:se.value.scrapingOptions}});if(me.value={},Ze.status&&Ze.status>=400){me.value={body:Ze.body,filteredBody:Ze.scrappedBody,hasFiltersError:Ze.hasRulesError,status:Ze.status};return}}catch(Ze){me.value={body:Ze,status:500,contentType:null};return}}(i||a)&&(a&&de.value.templateOptions.forEach(Ze=>{Ze.defaultValue=Ze.value}),I=JSON.stringify(de.value),yield Fe({updatedItem:{formTemplateOptions:I,isForm:!!i,isTemplate:!!a,itemId:t}})),(b||C||m)&&(_=JSON.stringify(se.value),yield Fe({updatedItem:{requestOptions:_,itemId:t}})),yield Fe({updatedItem:ae(R(R(R(R({value:jt},m?{isCommand:!0}:{}),b?{isWebRequest:!0}:{}),C?{isWebScraping:!0}:{}),Je&&g?{pathType:Je}:{}),{itemId:t})}),setTimeout(()=>{Ie.value=!1,Y()},200)});return v.useEffect(()=>{var Ue;P&&((Ue=Z==null?void 0:Z.current)==null||Ue.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[P,Z==null?void 0:Z.current]),o.jsx(Vh,{className:Pn("px-2 pr-1.5 py-2 m-0.5 mt-0 pt-0 mx-1 text-left flex flex-row rounded-md select-auto",c&&"bg-red-50 dark:bg-red-900"),children:o.jsxs(ne,{className:"w-full mt-0",ref:Z,children:[!z||l&&S?r||A||l||m||w||b||a||C||i||g?g?o.jsxs(ve,{className:"relative text-normal",children:[o.jsx(wn,{defaultValue:le.value,placeholder:G("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(ut.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(ut.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-4",children:ut.value?o.jsx(st,{text:G("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):ut.value===!1&&o.jsx(st,{text:G("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ue=>{le.value=Ue.target.value}},ft.value),o.jsx(aW,{onCallBack:Ue=>{ft.value=Date.now(),le.value=Ue}})]}):w?o.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[o.jsx(wn,{defaultValue:le.value,placeholder:G("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(Ke.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(Ke.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:Ke.value?o.jsx(st,{text:G("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):Ke.value===!1&&o.jsx(st,{text:G("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ue=>{if(Ke.value&&(Ke.value=void 0),Ue.target.value.length>5){const jt=zr().match(Ue.target.value);!jt||jt.length>1?Ke.value=!0:Ke.value=!1}le.value=Ue.target.value}}),We&&o.jsx(ne,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(($=le.value)==null?void 0:$.trim())!==((M=be==null?void 0:be.linkUrl)==null?void 0:M.trim()),title:be==null?void 0:be.linkTitle,description:be==null?void 0:be.linkDescription,favicon:be==null?void 0:be.linkFavicon,link:be==null?void 0:be.linkUrl,image:be==null?void 0:be.linkImage,domain:be==null?void 0:be.linkDomain})}),l?!qc(le.value)&&!Ke.value&&o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(le.value),hasError:wt.value,onErrorCallback:()=>{wt.value=!0},draggable:!1,decoding:"async",className:"".concat(Ut," min-h-10")})}):o.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[qc(le.value)||Ke.value||le.value.length<3?!qc(le.value)&&o.jsx(je,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:We?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),"!",G("Update Link Card",{ns:"dashboard"}),"!"]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),G("Add Link Card",{ns:"dashboard"})]})}):o.jsx(je,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("fetch_link_metadata",{url:Ir(le.value),itemId:t}),Ee()}),children:We?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),G("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),G("Add Link Card",{ns:"dashboard"})]})}),We&&o.jsx(je,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("delete_link_metadata",{itemId:t}),Ee()}),children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[G("Remove",{ns:"common"}),o.jsx(bv,{size:14,className:"ml-1"})]})})]})]}):r?o.jsx(rj,{value:le.value,height:x?"calc(100vh - 280px)":"200px",isDark:L,options:{mode:A!=null?A:"javascript"},onChange:Ue=>{le.value=Ue.getValue()}},"code-editor"):l?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[o.jsx("img",{src:S||uh,draggable:!1,decoding:"async",height:"auto",className:"".concat(XS.value===t?"!border-red-400 opacity-70":""," max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400")}),o.jsx(ne,{className:"absolute",children:S?o.jsx(iW,{id:t}):o.jsx(sW,{id:t})})]}):m?o.jsxs(ne,{className:"mt-0.5",children:[o.jsx(rj,{value:le.value,height:x?"260px":"70px",isDark:L,isCmd:!0,lineWrapping:!0,options:{mode:"shell"},onChange:Ue=>{le.value=Ue.getValue(),ce.value="",$e.value=void 0}},"code-editor"),(W=se.value.outputRegexFilter)!=null&&W.id?o.jsxs(ne,{className:"mt-2",children:[o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:G("Regex Match Group Filter",{ns:"dashboard"})})}),o.jsxs(ve,{className:"gap-2 mb-2",children:[o.jsx(wn,{small:!0,defaultValue:(V=se.value.outputRegexFilter)==null?void 0:V.value,disabled:((U=se.value.outputRegexFilter)==null?void 0:U.isEnable)===!1,onChange:Ue=>{se.value.outputRegexFilter||(se.value.outputRegexFilter={}),se.value.outputRegexFilter.value=Ue.target.value.trim()},className:"".concat(((J=se.value.outputRegexFilter)==null?void 0:J.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:G("Enter regex for output filer",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:G("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ue;se.value=ae(R({},se.value),{outputRegexFilter:ae(R({},se.value.outputRegexFilter),{isEnable:!((Ue=se.value.outputRegexFilter)!=null&&Ue.isEnable)})})},children:(H=se.value.outputRegexFilter)!=null&&H.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:G("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{se.value=ae(R({},se.value),{outputRegexFilter:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}):o.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ue,Je,jt;se.value.outputRegexFilter||(se.value.outputRegexFilter={}),se.value=ae(R({},se.value),{outputRegexFilter:{id:(Ue=se.value.outputRegexFilter.id)!=null?Ue:Date.now().toString(),value:(Je=se.value.outputRegexFilter.value)!=null?Je:"",isEnable:(jt=se.value.outputRegexFilter.isEnable)!=null?jt:!0}})},children:G("Add Regex Match Group Filter",{ns:"dashboard"})})}),(F=se.value.outputTemplate)!=null&&F.id?o.jsxs(ne,{className:"mt-2",children:[o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:G("Output Template",{ns:"dashboard"})})}),ht.value&&o.jsx(re,{className:"!text-yellow-600 text-xs mt-2",children:o.jsx(us,{i18nKey:"Template should have⠀{{output}}⠀placeholder.",ns:"dashboard"})}),o.jsxs(ve,{className:"gap-2 mb-2",children:[o.jsx(wn,{small:!0,defaultValue:(q=se.value.outputTemplate)==null?void 0:q.value,disabled:((X=se.value.outputTemplate)==null?void 0:X.isEnable)===!1,onChange:Ue=>{se.value.outputTemplate||(se.value.outputTemplate={}),se.value.outputTemplate.value=Ue.target.value.trim()},className:"".concat(((te=se.value.outputTemplate)==null?void 0:te.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:G("Wrap output using {{output}} placeholder",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:G("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ue;se.value=ae(R({},se.value),{outputTemplate:ae(R({},se.value.outputTemplate),{isEnable:!((Ue=se.value.outputTemplate)!=null&&Ue.isEnable)})})},children:(ee=se.value.outputTemplate)!=null&&ee.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:G("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{se.value=ae(R({},se.value),{outputTemplate:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}):o.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ue,Je,jt;se.value.outputTemplate||(se.value.outputTemplate={}),se.value=ae(R({},se.value),{outputTemplate:{id:(Ue=se.value.outputTemplate.id)!=null?Ue:Date.now().toString(),value:(Je=se.value.outputTemplate.value)!=null?Je:"",isEnable:(jt=se.value.outputTemplate.isEnable)!=null?jt:!0}})},children:G("Add Output Template",{ns:"dashboard"})})}),ce.value&&o.jsxs(ne,{className:"".concat($e.value?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," ").concat(x?"py-1":"py-0"," rounded-md px-3 relative"),children:[o.jsx(Ca,{isDark:L,maxHeight:x?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:ce.value,language:"shell"}),o.jsx(ne,{className:"".concat($e.value?"bg-red-300 dark:bg-red-800":"bg-green-300 dark:bg-green-800"," text-xs rounded-sm px-1.5 absolute right-2 bottom-2 select-none"),children:$e.value?G("Command:::error",{ns:"dashboard"}):G("Command:::output",{ns:"dashboard"})})]})]}):b?o.jsx(T2e,{isLargeView:x,clipId:t,clipValue:le,webrequestTestOutputObject:me,webrequestLocalOptions:se,showLinkValidationError:Ke,isDark:L,requestOptions:_}):C?o.jsx(P2e,{isLargeView:x,clipValue:le,testOutputObject:me,localOptions:se,showLinkValidationError:Ke,isDark:L,requestOptions:_}):a?o.jsxs(ne,{children:[o.jsx(_2e,{clipValue:le,isLargeView:x,checkForTemplateFieldsCallback:()=>{tn(le.value)},templateMissingFields:Ve,templateFoundFields:Ge,localOptions:de}),ye.value&&o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-2 rounded-md text-sm",children:[o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsxs(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8",children:[o.jsx("div",ae(R({},pe.value==="html"&&{dangerouslySetInnerHTML:{__html:Th.sanitize(ye.value)}}),{className:"font-normal"})),pe.value==="text"&&ye.value]})}),o.jsx(In,{size:16,className:"absolute right-2 top-2 cursor-pointer opacity-30 hover:opacity-100",onClick:()=>{ye.value=""}}),o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-900 text-xs rounded-sm px-1.5 absolute left-2 bottom-2 select-none",children:G("filled template",{ns:"dashboard"})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:pe.value,onValueChange:Ue=>{pe.value=Ue==="html"?"html":"text"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:G("Text",{ns:"dashboard"})}),o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:G("HTML",{ns:"dashboard"})})]})})]})]}):i&&o.jsx(N2e,{isLargeView:x,showLinkValidationError:Ke,localOptions:de}):o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[o.jsx(st,{isCompact:!0,text:G("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:o.jsx(Sz,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("copy")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Masked Text Formatting",{ns:"common"}),children:o.jsx(pk,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("mask")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Blank Text Formatting",{ns:"common"}),children:o.jsx(ZU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("blank")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:o.jsx(XU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("hl")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Header Formatting",{ns:"common"}),children:o.jsx(hie,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("h")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Bold Formatting",{ns:"common"}),children:o.jsx(lae,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("b")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Italic Formatting",{ns:"common"}),children:o.jsx(Cie,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("i")}})}),o.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:o.jsx(st,{isCompact:!0,text:G("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:o.jsx(Az,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),o.jsx(Co,{ref:pt,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:G("Enter value or drag from history",{ns:"dashboard"}),rows:2,autoFocus:T,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:x?12:6,value:le.value,onKeyDown:Ue=>{Ue.stopPropagation()},onChange:Ue=>{le.value=Ue.target.value}})]}):o.jsx(E2e,{isOver:e}),o.jsx(or,{style:{minWidth:"100%"},forceVisible:!0,className:"dashboard-tabs",children:o.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[o.jsxs(ve,{className:"items-start mt-2",children:[o.jsx(C2e,{isCode:r,isCommand:m,isWebRequest:b,isWebScraping:C,isLink:w,isPath:g,isText:s,isTemplate:a,isForm:i,isImage:l,itemId:t,detectedLanguage:A,children:o.jsx(ne,{children:o.jsx(st,{text:Xt,isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-900/70 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:r?o.jsxs(o.Fragment,{children:[o.jsx(nE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Code",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):l?o.jsxs(o.Fragment,{children:[o.jsx(X2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Image",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):g?o.jsxs(o.Fragment,{children:[o.jsx(aE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Path",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):b?o.jsxs(o.Fragment,{children:[o.jsx(NU,{width:16,height:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Request",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):C?o.jsxs(o.Fragment,{children:[o.jsx(_U,{width:16,height:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Scraper",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):m?o.jsxs(o.Fragment,{children:[o.jsx(zz,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Command",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):w?o.jsxs(o.Fragment,{children:[o.jsx(P0,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Link",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):i?o.jsxs(o.Fragment,{children:[o.jsx(Hz,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::AutoFill",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):a?o.jsxs(o.Fragment,{children:[o.jsx(sE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Template",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):o.jsxs(o.Fragment,{children:[o.jsx(Z2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Text",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]})})})})})}),m?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){var Ue,Je,jt,we,Se;try{ce.value=yield On("run_shell_command",{execCmd:le.value,outputTemplate:(Ue=se.value.outputTemplate)!=null&&Ue.id?se.value.outputTemplate:null,outputRegexFilter:(Je=se.value.outputRegexFilter)!=null&&Je.id?se.value.outputRegexFilter:null}),$e.value=!1,ht.value=!!((jt=se.value.outputTemplate)!=null&&jt.id&&!((Se=(we=se.value.outputTemplate)==null?void 0:we.value)!=null&&Se.includes("{{output}}")))}catch(De){ce.value=De,$e.value=!0}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):b?o.jsx(st,{text:G("Test Request",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){me.value={};try{me.value=yield On("run_web_request",{request:{url:le.value,method:se.value.method,headers:se.value.headers,filters:se.value.filters,body:se.value.body,auth:se.value.auth}})}catch(Ue){me.value={body:Ue,status:500,contentType:null}}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):i?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){yield On("run_form_fill",{formOptions:de.value.formOptions,firstDelay:1})}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):a?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){try{ye.value=yield On("run_template_fill",{templateValue:le.value,templateOptions:de.value.templateOptions,isPreview:!0})}catch(Ue){console.error(Ue)}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):C&&o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){me.value={};try{me.value=yield On("run_web_scraping",{request:{url:le.value,method:"GET",scrapingRules:se.value.scrapingRules,scrapingOptions:se.value.scrapingOptions}})}catch(Ue){me.value={body:Ue,status:500,contentType:null}}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(st,{text:G("Clip Options",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500",children:o.jsx(zh,{size:16})})})})}),o.jsxs(Wn,{className:"",sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:G("Clip Options",{ns:"dashboard"})})}),o.jsx(kn,{}),E?o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isPinned:!1,itemId:t}})},children:[G("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isPinned:!0,itemId:t}})},children:[G("Pin",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(tu,{size:15})})]}),N?o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isFavorite:!1,itemId:t}})},children:[G("Remove Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(w5,{size:15,className:"fill-transparent"})})]}):o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isFavorite:!0,itemId:t}})},children:[G("Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Fh,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:d?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{isMasked:!d,itemId:t}})},children:[G("Type:::Secret",{ns:"common"}),d&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:f?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{isVideo:!f,itemId:t}})},children:[G("Type:::Video",{ns:"common"}),f&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:p?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{hasEmoji:!p,itemId:t}})},children:[G("Type:::Emoji",{ns:"common"}),p&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsx(S2e,{clipId:t,onComplete:Y})]})]})]}),o.jsxs(ve,{className:"items-end ml-auto mt-1",children:[o.jsx(st,{text:G("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Y()},children:o.jsx(In,{size:18})})})}),o.jsxs(Sa,{defaultOpen:!1,open:ot.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{!qe&&(m||b||C||a||i)?Ga.value=!0:Pt()},children:[o.jsx(en,{size:18,className:"mr-1"}),G("Save",{ns:"common"}),(m||b||C||a||i)&&o.jsx(Jl,{})]})})}),o.jsx(ia,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{ot.value=!1,Ie.value=!1},onPointerDownOutside:()=>{ot.value=!1,Ie.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:o.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:Ke.value?G("Errors:::Please verify your link for any errors, or confirm to save as is.",{ns:"dashboard"}):ut.value?G("Errors:::Please verify your path for any errors, or confirm to save as is.",{ns:"dashboard"}):$e.value?G("Errors:::Your command runs with errors, confirm you want to save as is.",{ns:"dashboard"}):me.value.status&&!me.value.hasFiltersError&&me.value.status>=400?G("Errors:::Your request runs with errors, confirm you want to save as is.",{ns:"dashboard"}):me.value.status&&me.value.hasFiltersError&&me.value.status>=400?G("Errors:::Your request has filters error, confirm you want to save as is.",{ns:"dashboard"}):ht.value?Ge.value.length===0?G("Errors:::No fields found in the template.",{ns:"dashboard"})+" "+G("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):Ve.value.length>0?G("{{count}} fields found in template but missing from fields definition.",{ns:"dashboard",count:Ve.value.length})+" "+G("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):G("Errors:::Your template has errors, confirm you want to save as is.",{ns:"dashboard"}):G("Please confirm to save as is.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{className:"mb-1",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{ot.value=!1,Ie.value=!1},children:G("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{Pt(!0)},children:G("Save It!",{ns:"common"})})]})]})})]})]})]})})]})})}finally{O.f()}}const R7=["post","page","media","creditcard","tiktok","kanbanSquare","arrowRight","twitter","facebook","linkedin","twitch","youtube","instagram","slack","dribbble","trello","chrome","codePen","codesandbox","figma","send","check","check2","copy","help","pin","copyDone","star","list","list2","list3","list5","listmusic","listchecks","listCollapse","listOrdered","listTree","listToDo","scrollText","audioLines","audioWaveform","mic","mails","atSign","mail","inbox","archive","container","sendHorizontal","contact","contact2","userRound","circleUser","userSquare","squareUser","userRound2","user","baby","notebook","paperclip","bookUser","nfc","smartphoneNfc","smartphone","graduationCap","apple2","appWindows","alertTriangle","alertCircle","alarmClock","alertOctagon","voicemail","calendarClock","calendarDays","calendarHeart","angry","annoyed","frown","meh","smile","eye","fan","handMetal","heartHandshake","heart","leafyGreen","ribbon","ralad","crown","camera","fingerprint","flame","database","dog","cat","bird","rabbit","fish","fishSymbol","carrot","candy","cherry","dice","biohazard","satellite","satelliteDish","radioTower","radio","wifi","router","bitcoin","dollarSign","circleDollarSign","euro","drum","medal","beer","beef","bell","draftingCompass","trophy","gaugeCircle","gauge","bike","award","trafficCone","tramFront","truck","plane","car","dumbbell","parkingCircle","parkingSquare","msquare","partyPopper","conciergeBell","aperture","areaChart","armchair","arrowUpRightSquare","asteriskSquare","asterisk","keySquare","key","lockKeyhole","lock","shieldCheck","shield","compass","shieldHalf","presentation","folder","folderHeart","folderTree","folderDot","folderGit","folderGit2","folderKey","folderLock","folderKanban","file","fileCode","fileText","fileCode2","fileJson","fileJson2","fileTerminal","fileVideo","fileVideo2","fileVolume","fileHeart","fileImage","fileLock2","fileLock","fileSpreadsheet","fileCog","fileMusic","filePieChart","filePen","fileSearch","fileLineChart","fileSymlink","driveDownload","driveUpload","imageDown","import","music","sheet","pieChart","packageOpen","package","gamepad2","joystick","hammer","lampDesk","lamp","bookOpen","airplay","code2","code","codeSquare","functionSquare","arrowDownCircle","arrowUpCircle","arrowLeftCircle","arrowRightCircle","gem","ghost","rocket","skull","sparkles","puzzle","messageWarning","messageWarning2","dessert","pizza","venetianMask","wand","toyBrick","mountain","milestone","feather","flaskRound","goal","hourglass","axe","gitlab","github2","sprayCcan","gift","swords","fileAudio2","downloadCloud","uploadCloud","upload","download","globe","globe2","hash","highlighter","infinity","lifeBuoy","locateFixed","mapPin","map","magnet","martini","mountainSnow","mousePointer","move3d","network","newspaper","notebook2","notepadText","megaphone","ganttChartSquare","personStanding","plug2","play","plug","plugZap2","plugZap","radiation","quote","tag","speech","spade","shoppingCart","slidersHorizontal","discord","gitHub","npm","pnpm","node","react","tailwind","google","apple","paypal"],Ho={logo:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),{children:o.jsx("circle",{cx:"12",cy:"12",r:"10"})})),close:In,spinner:Hie,chevronLeft:Cae,chevronRight:T0,trash:kr,post:Z2,page:lM,media:X2,settings:zh,ellipsis:yl,add:Vr,warning:Ti,arrowRight:Vse,help:Lae,twitter:zce,check:en,check2:wae,copy:tE,pin:tu,pinoff:Od,copyDone:Cz,sun:Tce,moon:lle,facebook:hoe,linkedin:Die,twitch:$ce,youtube:Yce,instagram:kie,slack:lce,dribbble:ioe,trello:Lce,star:Fh,chrome:_ae,codePen:qae,codesandbox:Kae,figma:goe,image:X2,list:x5,list2:Fie,list3:vz,list4:Ase,list5:Ise,listmusic:Lie,listchecks:iE,listCollapse:Iie,listOrdered:Rie,listTree:zie,listToDo:$ie,scrollText:Xle,scroll:Qle,audioLines:Gse,audioWaveform:Yse,mic:ole,mails:Kie,atSign:Kse,mail:qie,inbox:bie,archive:Hse,container:Qae,sendHorizontal:Jle,send:ece,contact:Xae,contact2:Zae,userRound:$ae,circleUser:zae,userSquare:Nce,squareUser:_ce,userRound2:Hce,user:Bce,baby:Qse,notebook:xle,paperclip:Nle,bookUser:uae,nfc:vle,smartphoneNfc:uce,smartphone:dce,graduationCap:oie,apple2:Fse,appWindows:zse,aLargeSmall:Pse,alertTriangle:Ti,alertCircle:kz,alarmClock:Dse,alertOctagon:wle,voicemail:Wce,calendarClock:fae,calendarDays:hae,calendarHeart:pae,angry:Rse,annoyed:Ose,frown:Zoe,meh:ele,smile:fce,eye:M0,fan:poe,handMetal:uie,heartHandshake:pie,heart:m6,leafyGreen:Pie,ribbon:Vle,ralad:Gle,crown:eoe,camera:gae,fingerprint:Loe,flame:$oe,database:toe,dog:soe,cat:bae,bird:oae,rabbit:Hle,fish:Ooe,fishSymbol:Roe,carrot:yae,candy:vae,cherry:kae,dice:roe,biohazard:aae,satellite:Zle,satelliteDish:Yle,radioTower:Ule,radio:Wle,wifi:Kce,router:qle,bitcoin:iae,dollarSign:aoe,circleDollarSign:Iae,euro:foe,drum:loe,medal:Qie,beer:eae,beef:Jse,bell:rae,draftingCompass:ooe,trophy:Rce,gaugeCircle:Aae,gauge:Qoe,bike:sae,award:Zse,trafficCone:Ice,tramFront:Ace,truck:Oce,plane:Dle,car:xae,dumbbell:coe,parkingCircle:Rae,parkingSquare:Ece,msquare:Cce,partyPopper:_le,conciergeBell:Yae,aperture:$se,areaChart:Bse,armchair:Use,arrowUpRightSquare:vce,asteriskSquare:Lz,asterisk:qse,keySquare:jie,key:Eie,lockKeyhole:Uie,lock:Wie,shieldCheck:nce,shield:sce,compass:Gae,shieldHalf:rce,presentation:$le,folder:r0,folderHeart:Woe,folderTree:Yoe,folderDot:Hoe,folderGit:Uoe,folderGit2:Boe,folderKey:qoe,folderLock:Koe,folderKanban:Voe,file:lM,fileCode:xoe,fileText:Z2,fileCode2:nE,fileJson:koe,fileJson2:woe,fileTerminal:Moe,fileVideo:Ioe,fileVideo2:Doe,fileVolume:Aoe,fileHeart:yoe,fileImage:boe,fileLock2:Soe,fileLock:joe,fileSpreadsheet:Poe,fileCog:rE,fileMusic:Eoe,filePieChart:_oe,filePen:Noe,fileSearch:Toe,fileLineChart:Coe,fileSymlink:aE,driveDownload:die,driveUpload:Pz,imageDown:xie,import:yie,music:ple,sheet:tce,pieChart:Ple,packageOpen:kle,package:Cle,gamepad2:Xoe,joystick:Sie,hammer:cie,lampDesk:Nie,lamp:_ie,bookOpen:cae,airplay:Mse,code2:Wae,code:Vae,codeSquare:xce,functionSquare:Oz,arrowDownCircle:Tae,arrowUpCircle:Dae,arrowLeftCircle:Pae,arrowRightCircle:Mae,gem:Joe,ghost:eie,rocket:cm,skull:ice,sparkles:pce,puzzle:zle,messageWarning:tle,messageWarning2:sle,dessert:noe,pizza:Mle,venetianMask:Uce,wand:Vce,toyBrick:Dce,mountain:ule,milestone:ile,feather:moe,flaskRound:zoe,goal:aie,hourglass:vie,axe:Xse,gitlab:rie,github2:nie,sprayCcan:gce,gift:tie,swords:Pce,fileAudio2:voe,downloadCloud:Bae,uploadCloud:Uae,upload:Fce,download:Nz,globe:sie,globe2:uoe,hash:fie,highlighter:mie,infinity:wie,lifeBuoy:Mie,locateFixed:Bie,mapPin:Gie,map:Yie,magnet:Vie,martini:Zie,mountainSnow:cle,mousePointer:jce,move3d:dle,network:mle,newspaper:gle,notebook2:yle,notepadText:ble,megaphone:Jie,ganttChartSquare:bce,personStanding:Tle,plug2:Ale,play:Ile,plug:Ole,plugZap2:Lle,plugZap:Rle,radiation:Ble,quote:Fle,tag:Mce,speech:mce,spade:hce,shoppingCart:ace,slidersHorizontal:cce,kanbanSquare:wce,creditcard:t=>o.jsxs("svg",ae(R({viewBox:"0 0 24 24",fill:"currentColor",width:t.size,height:t.size},t),{children:[o.jsx("path",{d:"M21.278 3.054H2.722c-.614.003-1.202.249-1.636.683-.434.434-.68 1.022-.683 1.636v13.254c.003.614.249 1.202.683 1.636.434.434 1.022.68 1.636.683h18.556a2.3306 2.3306 0 0 0 1.636-.683c.434-.434.68-1.022.683-1.636V5.373a2.3306 2.3306 0 0 0-.683-1.636 2.3306 2.3306 0 0 0-1.636-.683ZM2.722 5.042h18.556c.088 0 .172.035.234.097.062.062.097.146.097.234v2.982H2.391V5.373c0-.088.035-.172.097-.234a.3307.3307 0 0 1 .234-.097Zm18.556 13.916H2.722a.3307.3307 0 0 1-.234-.097.3307.3307 0 0 1-.097-.234v-8.284h19.218v8.284c0 .088-.035.172-.097.234a.3307.3307 0 0 1-.234.097Z"}),o.jsx("path",{d:"M8.055 14.438H6.204c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Zm4.6 0h-1.851c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Z"})]})),discord:t=>o.jsx("svg",ae(R({viewBox:"0 0 127.14 96.36",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})),gitHub:t=>o.jsx("svg",ae(R({viewBox:"0 0 438.549 438.549",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})})),npm:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"})})),tiktok:t=>o.jsxs("svg",ae(R({viewBox:"0 0 25 25",width:t.size,height:t.size},t),{fill:"none",stroke:"currentColor",children:[o.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M23.078 7.077v9.846c0 3.399-2.756 6.155-6.155 6.155H7.077c-3.399 0-6.155-2.756-6.155-6.155V7.077C.922 3.678 3.678.922 7.077.922h9.846c3.399 0 6.155 2.756 6.155 6.155Z"}),o.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M9.538 12c-2.039 0-3.692 1.653-3.692 3.693 0 2.039 1.653 3.692 3.692 3.692 2.04 0 3.693-1.653 3.693-3.692V4.615c.41 1.231 1.969 3.692 4.923 3.692"})]})),pnpm:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"})})),node:t=>o.jsx("svg",ae(R({viewBox:"0 0 16 16",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M 8 1.0234375 C 7.736875 1.0234375 7.4742344 1.0924687 7.2402344 1.2304688 L 2.7402344 3.8789062 C 2.2832344 4.1469063 2 4.642875 2 5.171875 L 2 11.005859 C 2 11.554859 2.29925 12.059266 2.78125 12.322266 L 4.2558594 13.126953 C 4.4828594 13.250953 4.7286094 13.310547 4.9746094 13.310547 C 5.2386094 13.310547 5.4992812 13.239609 5.7382812 13.099609 C 6.1982812 12.826609 6.4726562 12.344594 6.4726562 11.808594 L 6.4726562 5.4648438 L 5.4726562 5.4648438 L 5.4726562 11.808594 C 5.4726562 12.065594 5.3025156 12.195281 5.2285156 12.238281 C 5.1555156 12.281281 4.959375 12.371047 4.734375 12.248047 L 3.2617188 11.445312 C 3.1007187 11.357312 3 11.188859 3 11.005859 L 3 5.171875 C 3 4.995875 3.0940938 4.8302344 3.2460938 4.7402344 L 7.7460938 2.0917969 C 7.9020937 1.9997969 8.0979062 2.0007969 8.2539062 2.0917969 L 12.753906 4.7402344 C 12.904906 4.8302344 13 4.995875 13 5.171875 L 13 11.009766 C 13 11.189766 12.900234 11.359219 12.740234 11.449219 L 8.2402344 13.900391 C 8.0902344 13.980391 7.9097656 13.980391 7.7597656 13.900391 L 6.8808594 13.419922 C 6.7108594 13.629922 6.5 13.810937 6.25 13.960938 C 6.17 14.010938 6.0897656 14.050078 6.0097656 14.080078 L 7.2792969 14.779297 C 7.5092969 14.899297 7.75 14.960938 8 14.960938 C 8.25 14.960938 8.4907031 14.899297 8.7207031 14.779297 L 13.220703 12.320312 C 13.700703 12.060313 14 11.559766 14 11.009766 L 14 5.171875 C 14 4.642875 13.717719 4.1469062 13.261719 3.8789062 L 8.7617188 1.2304688 C 8.5272187 1.0924688 8.263125 1.0234375 8 1.0234375 z M 9.4511719 5.3183594 C 7.8711719 5.3183594 7.0703125 5.8690781 7.0703125 6.9550781 C 7.0703125 8.1850781 8.4869687 8.3680781 9.1679688 8.4550781 C 9.2659688 8.4680781 9.352875 8.4791875 9.421875 8.4921875 L 9.7207031 8.5449219 C 10.760703 8.7189219 11 8.836875 11 9.171875 C 11 9.333875 10.999172 9.8242188 9.4511719 9.8242188 C 8.1381719 9.8242188 7.8691406 9.4346094 7.8691406 8.8496094 L 6.8691406 8.8496094 C 6.8691406 9.7516094 7.3171719 10.824219 9.4511719 10.824219 C 11.557172 10.824219 12 9.925875 12 9.171875 C 12 7.913875 10.777719 7.7076406 9.8867188 7.5566406 L 9.5996094 7.5078125 C 9.5166094 7.4928125 9.4119219 7.4788438 9.2949219 7.4648438 C 8.6589219 7.3828438 8.0703125 7.2650312 8.0703125 6.9570312 C 8.0703125 6.7340313 8.0691719 6.3193594 9.4511719 6.3183594 C 10.370172 6.3183594 10.837891 6.6207969 10.837891 7.2167969 L 11.837891 7.2167969 C 11.837891 6.2997969 11.209172 5.3183594 9.4511719 5.3183594 z"})})),react:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})})),tailwind:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z"})})),google:t=>o.jsx("svg",ae(R({role:"img",viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})})),apple:t=>o.jsx("svg",ae(R({role:"img",viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})})),paypal:t=>o.jsx("svg",ae(R({viewBox:"0 0 48 48",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M 12.841797 3.9980469 C 11.545957 3.9980469 10.408459 4.9201856 10.140625 6.1875 A 1.50015 1.50015 0 0 0 10.140625 6.1894531 L 4.3105469 33.863281 A 1.50015 1.50015 0 0 0 4.3105469 33.865234 C 3.9778831 35.447651 5.2380138 37 6.8554688 37 L 13.125 37 L 12.310547 40.865234 C 11.976672 42.448822 13.234312 44 14.853516 44 L 22.5 44 A 1.50015 1.50015 0 0 0 23.96875 42.808594 L 26.140625 32.5 L 32.230469 32.5 C 37.754148 32.5 42.547425 28.631159 43.714844 23.232422 L 43.876953 22.478516 C 45.063149 16.990425 41.185502 11.734909 35.767578 11.072266 C 34.701026 7.0840748 31.068127 3.9980469 26.613281 3.9980469 L 21.273438 3.9980469 L 17.820312 3.9980469 L 12.841797 3.9980469 z M 13.035156 6.9980469 L 17.820312 6.9980469 L 21.273438 6.9980469 L 26.613281 6.9980469 C 29.385425 6.9980469 31.656541 8.678134 32.609375 11 L 19.820312 11 A 1.50015 1.50015 0 0 0 18.351562 12.191406 L 15.996094 23.371094 A 1.50015 1.50015 0 0 0 15.855469 24.035156 L 13.757812 34 L 7.3476562 34 L 13.035156 6.9980469 z M 21.037109 14 L 33.068359 14 C 33.044325 14.280128 33.006713 14.561571 32.945312 14.845703 L 32.78125 15.599609 C 31.908668 19.634872 28.35879 22.5 24.230469 22.5 L 19.246094 22.5 L 21.037109 14 z M 36.056641 14.160156 C 39.449348 14.913351 41.718962 18.266313 40.945312 21.845703 L 40.78125 22.599609 C 39.908668 26.634872 36.35879 29.5 32.230469 29.5 L 24.923828 29.5 A 1.50015 1.50015 0 0 0 23.455078 30.691406 L 21.283203 41 L 15.347656 41 L 16.443359 35.796875 L 16.449219 35.775391 A 1.50015 1.50015 0 0 0 16.451172 35.767578 L 18.613281 25.5 L 24.230469 25.5 C 29.754148 25.5 34.547425 21.631159 35.714844 16.232422 L 35.876953 15.478516 C 35.972548 15.036146 36.024967 14.597251 36.056641 14.160156 z"})})),sunmoon:t=>o.jsxs("svg",ae(R({viewBox:"10.9 10.9 78.2 78.2"},t),{xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{fill:"currentColor",d:"M50,89.1c21.56,0,39.1-17.54,39.1-39.1S71.56,10.9,50,10.9c-21.56,0-39.1,17.54-39.1,39.1S28.44,89.1,50,89.1z M50,15.26 c19.16,0,34.74,15.58,34.74,34.74S69.16,84.74,50,84.74S15.26,69.16,15.26,50S30.84,15.26,50,15.26z"}),o.jsx("path",{fill:"currentColor",d:"M80.39,50c0-16.76-13.63-30.39-30.38-30.39v60.77C66.76,80.39,80.39,66.76,80.39,50z"})]})),minimize:t=>o.jsx("svg",ae(R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),{children:o.jsx("path",{fill:"currentColor",d:"M480 480H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h448c17.7 0 32 14.3 32 32s-14.3 32-32 32z"})}))},p0=t=>{const e=Te(7),{name:n,size:r,className:s}=t;if(R7.indexOf(n)===-1){let l;return e[0]!==r||e[1]!==s?(l=o.jsx(dae,{size:r,className:s}),e[0]=r,e[1]=s,e[2]=l):l=e[2],l}const a=Ho[n];let i;return e[3]!==a||e[4]!==r||e[5]!==s?(i=o.jsx(a,{size:r,className:s}),e[3]=a,e[4]=r,e[5]=s,e[6]=i):i=e[6],i},Pc=t=>{const e=Te(20),{iconVisibility:n,isBoard:r,className:s,description:a,color:i,size:l,icon:c,pathType:d,children:p}=t,f=r===void 0?!1:r,m=i===void 0?"text-slate-500 dark:text-slate-400":i,b=l===void 0?16:l,C=p===void 0?null:p;if(n==="none")return null;if((n==="always"||!n)&&!f){const g="".concat(m);let w;e[0]!==c||e[1]!==m||e[2]!==C?(w=c?o.jsx(p0,{size:16,name:c,className:"".concat(m)}):C,e[0]=c,e[1]=m,e[2]=C,e[3]=w):w=e[3];let x;return e[4]!==g||e[5]!==w?(x=o.jsx("span",{className:g,children:w}),e[4]=g,e[5]=w,e[6]=x):x=e[6],x}if(n==="always"||f){const g="".concat(m),w=a||d,x=!d&&!a;let S;e[7]!==c||e[8]!==m||e[9]!==s||e[10]!==b||e[11]!==C?(S=c?o.jsx(p0,{size:b,name:c,className:"".concat(m," ").concat(s)}):C,e[7]=c,e[8]=m,e[9]=s,e[10]=b,e[11]=C,e[12]=S):S=e[12];let E;e[13]!==w||e[14]!==x||e[15]!==S?(E=o.jsx(st,{isCompact:!0,text:w,isDisabled:x,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:S}),e[13]=w,e[14]=x,e[15]=S,e[16]=E):E=e[16];let N;return e[17]!==g||e[18]!==E?(N=o.jsx("span",{className:g,children:E}),e[17]=g,e[18]=E,e[19]=N):N=e[19],N}return null};/** +*/function Zbe(t){var c,d;const e=Te(7),n=(c=t.width)!=null?c:"14px",r=(d=t.height)!=null?d:"14px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M40.554 17.082c0-.309-.073-.627-.195-.917-.123-.29-.296-.553-.496-.754-.201-.2-.464-.373-.754-.495-.29-.123-.608-.195-.917-.195-.196 0-.406.03-.609.084-.204.055-.401.134-.571.232-.372.215-.667.541-.869.906-.203.365-.312.769-.312 1.139s.109.774.312 1.139c.202.365.497.692.869.906.371.214.801.307 1.219.299.417-.007.822-.114 1.142-.299.32-.185.616-.482.831-.84.215-.358.35-.776.35-1.205Zm-4.369-2.007c.271-.27.568-.484.9-.627.332-.143.699-.217 1.108-.207.261-.004.503.026.736.09.234.064.458.16.684.29.496.287.85.649 1.082 1.067.231.417.338.889.338 1.394 0 .506-.107.977-.338 1.394-.232.417-.586.779-1.082 1.065-.496.287-.987.414-1.464.405-.477-.008-.939-.151-1.377-.405-.438-.253-.803-.581-1.053-.99-.251-.408-.387-.896-.367-1.469-.01-.409.063-.776.206-1.108.144-.332.357-.629.627-.899Z"}),a=o.jsx("path",{d:"m58.665 30.709-.014-3.279-.014-3.28-.001-.063v-.064l-2.307-3.991-2.306-3.991-1.644 2.858-1.644 2.858c-.075.17-.17.273-.288.333-.118.06-.26.078-.426.078-.166 0-.306-.018-.424-.078-.118-.061-.214-.163-.289-.333l-.891-1.531-.891-1.531-.208-.356-.208-.357-2.424 4.189-2.425 4.189c-.041.086-.085.145-.14.191-.055.047-.121.081-.205.116-.084.036-.154.06-.226.068-.072.007-.145-.002-.236-.031l-.009-.003-.009-.002-.02-.003-.019-.002c-1.888-.219-3.672-.086-5.284.19-1.611.276-3.051.695-4.248 1.047l-.53.153-.529.153v2.472c.01.115.044.248.093.37s.114.234.188.307c.073.074.185.139.307.188.123.049.255.082.37.093h25.943c.115-.011.247-.044.37-.093.122-.049.234-.114.307-.188.074-.073.139-.185.188-.307.049-.122.082-.255.093-.37Zm.383-16.343.169-.177.168-.177c.11-.115.049-.009-.038.126-.088.135-.203.298-.203.298v16.273c.011.215-.023.398-.095.562-.072.165-.182.311-.326.454-.143.143-.289.254-.454.326-.164.072-.346.106-.562.095H31.764c-.215.011-.398-.022-.562-.095-.164-.072-.31-.183-.454-.326-.143-.143-.253-.289-.326-.454-.072-.164-.105-.346-.095-.562V11.713c-.01-.216.023-.399.095-.563.073-.164.183-.31.326-.453.144-.143.29-.254.454-.326.164-.073.347-.106.562-.096h14.394c.024.113.041.193.065.287.025.095.057.205.112.377.024.075 0 .028-.03-.037s-.066-.148-.066-.148H31.764c-.115.011-.247.044-.37.093-.122.049-.233.114-.307.188-.073.073-.138.185-.188.307-.049.123-.082.255-.093.371v16.029l.307-.09.307-.09.156-.046.155-.045c1.256-.369 2.717-.802 4.348-1.083 1.632-.281 3.434-.409 5.371-.166l.157.02.157.02.08-.137.079-.138 2.232-3.878 2.232-3.878c.075-.169.17-.272.288-.333.118-.06.259-.078.425-.078.166 0 .307.018.425.079.117.06.212.163.287.333l1.1 1.902 1.101 1.902.208-.356.208-.357 1.452-2.494 1.452-2.495a.4813.4813 0 0 1 .039-.063c.015-.02.03-.039.048-.058.079-.118.164-.198.265-.247.1-.048.216-.064.357-.053.128-.011.237.005.334.05.098.045.183.117.263.217.026.023.046.044.063.067.017.022.031.047.047.078l1.958 3.389 1.958 3.389v-8.435c.125-.103.234-.197.347-.3.113-.104.229-.217.367-.36l-.17.175-.169.176.004.003Z"}),i=o.jsx("path",{fill:"red",d:"M53.247 6.641c-.374.007-.681.049-.951.119-.271.071-.505.171-.736.294l-.206.112-.207.112-.208.112-.209.112-.039-.039-.039-.04-.045.085-.046.085-.076.042-.076.041.035.036.035.035-.222.418-.223.418c-.152.29-.266.587-.335.919-.068.332-.09.698-.059 1.126.102.666.366 1.272.736 1.776s.846.905 1.372 1.163c.539.22 1.088.327 1.626.314.539-.013 1.067-.146 1.564-.403l.206-.112.206-.112.208-.112.208-.112.048.048.047.048.3-.597.299-.597c.276-.582.394-1.2.375-1.798-.019-.599-.174-1.177-.445-1.677-.309-.495-.754-.94-1.292-1.266-.539-.326-1.17-.532-1.851-.55Zm2.741 6.611-2.864-2.862-2.864-2.863.13-.122.13-.123c.366-.339.798-.588 1.264-.751.466-.163.965-.242 1.464-.242.69 0 1.369.157 1.967.486.598.329 1.116.829 1.484 1.514.214.331.37.676.47 1.021.1.345.144.691.134 1.024-.01.335-.075.671-.182.997-.107.326-.257.641-.437.932a3.872 3.872 0 0 1-.21.359c-.076.114-.156.224-.241.328l-.122.151Zm-5.559-.186c-.377-.36-.669-.779-.865-1.248-.196-.47-.296-.99-.291-1.554-.002-.36.042-.708.132-1.042.09-.333.225-.652.406-.955.065-.129.134-.252.208-.367.075-.116.153-.224.235-.325l.123-.152.122-.152 2.864 2.861 2.863 2.862-.128.123-.129.123c-.333.318-.739.573-1.199.746-.46.173-.974.264-1.525.254-.566.006-1.09-.101-1.563-.302-.473-.202-.894-.499-1.253-.872Z"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==t.className||e[5]!==r?(l=o.jsxs("svg",{width:n,className:t.className,height:r,viewBox:"30.325 6.289 29.119 25.859",xmlns:"http://www.w3.org/2000/svg",stroke:"none",fill:"currentColor",children:[s,a,i]}),e[3]=n,e[4]=t.className,e[5]=r,e[6]=l):l=e[6],l}function Xbe(t){var b;const e=Te(15);let n,r,s,a,i;e[0]!==t?(b=t,{fallback:i,onErrorCallback:n,hasError:r,src:s}=b,a=Ne(b,["fallback","onErrorCallback","hasError","src"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5]);let l;e[6]!==n?(l=n===void 0?()=>{}:n,e[6]=n,e[7]=l):l=e[7];const c=l,d=r===void 0?!1:r,[p,f]=v.useState(!d);let m;return e[8]!==p||e[9]!==d||e[10]!==c||e[11]!==s||e[12]!==a||e[13]!==i?(m=p&&!d?o.jsx("img",R({src:s,onError:()=>{p&&f(!1),c()}},a)):i?o.jsx("img",ae(R({src:i},a),{alt:"404 Not Found"})):o.jsx(st,{text:"404 / broken image link",children:o.jsx(Zbe,{className:"mb-1 text-gray-400",width:"50px",height:"36px"})}),e[8]=p,e[9]=d,e[10]=c,e[11]=s,e[12]=a,e[13]=i,e[14]=m):m=e[14],m}const vl=v.memo(Xbe,(t,e)=>t.src===e.src),D7=t=>{const e=Te(9),{delay:n,onCopied:r}=t,s=n===void 0?800:n;let a;e[0]!==r?(a=r===void 0?()=>{}:r,e[0]=r,e[1]=a):a=e[1];const i=a,[l,c]=v.useState(!1);let d;e[2]!==l||e[3]!==i||e[4]!==s?(d=m=>{(m==null?void 0:m.length)>0&&!l&&(c(!0),setTimeout(()=>{Gs("copy_text",{text:m}).then(b=>{b==="ok"?(requestAnimationFrame(()=>{c(!1)}),i()):(c(!1),console.error("Failed to copy text",b))}).catch(b=>{c(!1),console.error("Failed to copy text",b)})},s))},e[2]=l,e[3]=i,e[4]=s,e[5]=d):d=e[5];const p=d;let f;return e[6]!==l||e[7]!==p?(f=[l,p],e[6]=l,e[7]=p,e[8]=f):f=e[8],f},I7=t=>{const e=Te(21),{delay:n,onPasted:r}=t,s=n===void 0?800:n;let a;e[0]!==r?(a=r===void 0?()=>{}:r,e[0]=r,e[1]=a):a=e[1];const i=a,[l,c]=v.useState(""),[d,p]=v.useState(null),{copyPasteDelay:f}=Tt(Cr),m=v.useRef(0);let b;e[2]!==i?(b=(N,_)=>{Gs("copy_paste",{text:N,delay:_===void 0?0:_}).then(I=>{I==="ok"?requestAnimationFrame(()=>{c(""),i()}):(c(""),console.error("Failed to copy paste text",I))}).catch(I=>{c(""),console.error("Failed to copy paste text",I)})},e[2]=i,e[3]=b):b=e[3];const C=b;let g;e[4]!==d||e[5]!==l||e[6]!==C||e[7]!==s?(g=()=>(d&&d>0?m.current=setInterval(()=>{p(N=>N?N-1:null)},1e3):d===0?(l&&(p(null),setTimeout(()=>{C(l,0)},s)),clearInterval(m.current)):m.current&&clearInterval(m.current),()=>{m.current&&clearInterval(m.current)}),e[4]=d,e[5]=l,e[6]=C,e[7]=s,e[8]=g):g=e[8];let w;e[9]!==d||e[10]!==l?(w=[d,l],e[9]=d,e[10]=l,e[11]=w):w=e[11],v.useEffect(g,w);let x;e[12]!==f||e[13]!==l||e[14]!==C||e[15]!==s?(x=(N,_)=>{_=_!=null?_:f,N&&!l&&(c(N),_>0?p(_):setTimeout(()=>{C(N,_)},s))},e[12]=f,e[13]=l,e[14]=C,e[15]=s,e[16]=x):x=e[16];const S=x;let E;return e[17]!==l||e[18]!==d||e[19]!==S?(E=[l,d,S],e[17]=l,e[18]=d,e[19]=S,e[20]=E):E=e[20],E};class Qbe{constructor(e){kt(this,"codes");this.codes=[],this.setCodes(e)}closeTags(e){let n=e;return this.codes.forEach(({tag:r})=>{const s="[".concat(r,"]"),a="[/".concat(r,"]"),i=[];let l=0;for(;l0;)i.pop(),n+=a}),n}parse(e){let r=[e];for(const{regexp:s,replacement:a}of this.codes)r=r.flatMap((i,l)=>typeof i=="string"?this.replaceText(i,s,a,l):i);return r=r.flatMap(s=>typeof s=="string"?this.linkifyText(s):s),r.length===1?r[0]:o.jsx(o.Fragment,{children:r.map((s,a)=>v.isValidElement(s)?v.cloneElement(s,{key:"element-".concat(a)}):s)})}linkifyText(e){const r=zr().match(e);if(!r)return e;const s=[];let a=0;return r.forEach((i,l)=>{s.push(e.slice(a,i.index)),s.push(o.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{Ei(Ir(i.url))},children:i.raw},"link-".concat(l))),a=i.lastIndex}),s.push(e.slice(a)),s}replaceText(e,n,r,s){let a=0;const i=[];return e.replace(n,(l,c,d)=>(d>a&&i.push(e.substring(a,d)),typeof r=="function"?i.push(r(c,Date.now()+s)):i.push(r),a=d+l.length,l)),a{const s=new RegExp("\\[".concat(r,"\\]"),"gi"),a=new RegExp("\\[/".concat(r,"\\]"),"gi");n=n.replace(s,""),n=n.replace(a,"")}),n}setCodes(e){return this.codes=Object.keys(e).map(n=>{const r=e[n],s=n.match(/\\\[(.+?)\\\]/);return{tag:s?s[1]:"unknown",regexp:new RegExp(n,"igms"),replacement:r}}),this}}const BU=t=>{var e=sn(1);try{const n=Te(40),{text:r,copyText:s,id:a,parser:i}=t;let l;n[0]!==i||n[1]!==r?(l=i?i.parse(r):r,n[0]=i,n[1]=r,n[2]=l):l=n[2];const c=l,{t:d}=Gt();let p;n[3]===Symbol.for("react.memo_cache_sentinel")?(p={},n[3]=p):p=n[3];const[f,m]=D7(p);let b;n[4]===Symbol.for("react.memo_cache_sentinel")?(b={},n[4]=b):b=n[4];const[C,g,w]=I7(b),x=f||C;let S;n[5]!==m||n[6]!==i||n[7]!==s||n[8]!==w?(S=Y=>{Y.preventDefault(),Tn.value?w(i?i.remove(s):s):m(i?i.remove(s):s)},n[5]=m,n[6]=i,n[7]=s,n[8]=w,n[9]=S):S=n[9];const E="".concat(x?"dark:!border-green-800":""," inline-flex relative select-none items-center border rounded-md px-1.5 py-[1px] my-[1px] focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:bg-green-100/80 bg-green-50 dark:bg-green-950 border-slate-300 dark:hover:bg-green-900/80 dark:border-slate-600 cursor-pointer");let N;n[10]!==c?(N=o.jsx("span",{children:c}),n[10]=c,n[11]=N):N=n[11];let _;n[12]!==x||n[13]!==g||n[14]!==a||n[15]!==r||n[16]!==f||n[17]!==d||n[18]!==C?(_=x&&!g?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 pointer-events-none px-2 !rounded-md absolute right-0 w-full h-full flex items-center justify-center z-100",children:o.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white",children:[o.jsx(en,{size:14,className:"mr-1"}),(r==null?void 0:r.length)>10&&o.jsx(o.Fragment,{children:f?d("Copied",{ns:"common"}):C?d("Pasted",{ns:"common"}):""})]})},"badge-".concat(a)):x&&g&&g>0&&o.jsx(St,{className:"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !rounded-md pointer-events-none px-2 text-white absolute right-0 w-full h-full flex items-center justify-center",children:d("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:g})}),n[12]=x,n[13]=g,n[14]=a,n[15]=r,n[16]=f,n[17]=d,n[18]=C,n[19]=_):_=n[19];let P;n[20]!==m||n[21]!==i||n[22]!==s||n[23]!==w?(P=Y=>{Y.preventDefault(),Tn.value?w(i?i.remove(s):s):m(i?i.remove(s):s)},n[20]=m,n[21]=i,n[22]=s,n[23]=w,n[24]=P):P=n[24];let I;n[25]!==d?(I=Tn.value?d("Copy and Paste",{ns:"common"}):d("Copy to Clipboard",{ns:"common"}),n[25]=d,n[26]=I):I=n[26];let T;n[27]===Symbol.for("react.memo_cache_sentinel")?(T=Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14}),n[27]=T):T=n[27];let L;n[28]!==I?(L=o.jsx(st,{text:I,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:T}),n[28]=I,n[29]=L):L=n[29];let A;n[30]!==P||n[31]!==L?(A=o.jsx(mr,{className:"ml-1 text-slate-500 h-full py-0.5 hover:text-green-700 hover:bg-transparent",onClick:P,children:L}),n[30]=P,n[31]=L,n[32]=A):A=n[32];let z;return n[33]!==a||n[34]!==S||n[35]!==E||n[36]!==N||n[37]!==_||n[38]!==A?(z=o.jsxs("span",{onDoubleClick:S,className:E,children:[N,_,A]},a),n[33]=a,n[34]=S,n[35]=E,n[36]=N,n[37]=_,n[38]=A,n[39]=z):z=n[39],z}finally{e.f()}},UU=t=>{const e=Te(6),{txt:n,id:r}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>{if(d.length<=1)return d;if(d.length===2)return"".concat(d[0],"•");const p=d[0],f=d[d.length-1],m=d.substring(1,d.length-1).split("").map(()=>"•").join("");return"".concat(p).concat(m).concat(f)},e[0]=s):s=e[0];const a=s;let i;e[1]!==n?(i=typeof n=="string"?n.split(/(\s+)/).map(d=>/\s/.test(d)?d:a(d)).join(""):v.isValidElement(n)?v.cloneElement(n,ae(R({},n.props),{key:"parent-"+Math.random()*1e3}),...v.Children.toArray(n.props.children).map((d,p)=>v.cloneElement(UU({txt:d,id:Math.random()*1e3}),{key:"child-"+p}))):"•",e[1]=n,e[2]=i):i=e[2];const l=i;let c;return e[3]!==r||e[4]!==l?(c=o.jsx("span",{className:"masked-or-blanked",children:l},r),e[3]=r,e[4]=l,e[5]=c):c=e[5],c},WU=t=>{const e=Te(7),{txt:n,id:r}=t;if(typeof n=="string"&&n.length<=2){let l;return e[0]!==n?(l=o.jsx("span",{children:n}),e[0]=n,e[1]=l):l=e[1],l}let s;e[2]!==n?(s=typeof n=="string"?n.split("").map(l=>/\s/.test(l)?l:"█").join(""):v.isValidElement(n)?v.cloneElement(n,ae(R({},n.props),{key:"parent-"+Math.random()*1e3}),...v.Children.toArray(n.props.children).map((l,c)=>v.cloneElement(WU({txt:l,id:Math.random()*1e3}),{key:"child-"+c}))):"█",e[2]=n,e[3]=s):s=e[3];const a=s;let i;return e[4]!==r||e[5]!==a?(i=o.jsx("span",{className:"text-gray-200 dark:text-gray-600 masked-or-blanked",children:a},r),e[4]=r,e[5]=a,e[6]=i):i=e[6],i},Jbe=t=>{const e=Te(3),{text:n,id:r}=t;let s;return e[0]!==r||e[1]!==n?(s=o.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-700 dark:text-slate-100",children:n},r),e[0]=r,e[1]=n,e[2]=s):s=e[2],s},Wc=new Qbe({"\\[copy\\](.+?)\\[/copy\\]":(t,e)=>o.jsx(BU,{text:t,copyText:t.repeat(1),id:e,parser:Wc}),"\\[mask\\](.+?)\\[/mask\\]":(t,e)=>o.jsx(UU,{txt:t,id:e}),"\\[blank\\](.+?)\\[/blank\\]":(t,e)=>o.jsx(WU,{txt:t,id:e}),"\\[hl\\](.+?)\\[/hl\\]":(t,e)=>o.jsx(Jbe,{text:t,id:e}),"\\[h\\](.+?)\\[/h\\]":(t,e)=>o.jsx("span",{className:"text-lg font-semibold",children:t},e),"\\[b\\](.+?)\\[/b\\]":(t,e)=>o.jsx("strong",{children:t},e),"\\[i\\](.+?)\\[/i\\]":(t,e)=>o.jsx("span",{className:"italic",children:t},e)}),VU=(t,e,n)=>{var a;const r=mz(e),s=new RegExp("(".concat(r,")"),"gi");if(typeof t=="string"){const i=t.split(s),l=v.createRef();return i.map((c,d)=>(n.current.push(l),c.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:ml(l),children:c},d):c))}else if(v.isValidElement(t))if((a=t==null?void 0:t.props)!=null&&a.text&&typeof t.props.text=="string"){const i=t.props.text.split(s),l=v.createRef();return v.cloneElement(t,ae(R({},t.props),{text:o.jsx("span",{children:i.map((c,d)=>(n.current.push(l),c.toLowerCase()===e.toLowerCase()?o.jsx("span",{className:"bg-yellow-300 dark:bg-yellow-600 search-pulse-animation",ref:ml(l),children:Wc.parse(c)},d):o.jsx("span",{children:Wc.parse(c)})))})}),t.props.children)}else return v.cloneElement(t,t.props,...v.Children.toArray(t.props.children).map(i=>VU(i,e,n)));else return t},hk=({isWrapped:t,searchTerm:e,valuePreview:n,isCode:r,isImage:s,isMasked:a,isLargeView:i,trimmedValue:l,hasLinkCard:c,metadataLinkByItemId:d,metadataLinkImageWidth:p=24,isImageData:f,morePreviewLines:m,isDark:b,isExpanded:C})=>{const g=v.useRef([]),w=v.useMemo(()=>{if(!f&&!r&&!s&&n)return a?Ch(Wc.remove(n)):Wc.parse(n)},[n]),x=v.useMemo(()=>{if(!f&&!r&&!s&&l)return a?Ch(Wc.remove(l)):Wc.parse(l)},[l]),S=v.useMemo(()=>e.length>1?(g.current=[],VU(x,e,g)):C?x:w,[C,e,x,w]);return v.useEffect(()=>{var E;g.current.length>0&&((E=g.current[0].current)==null||E.scrollIntoView({behavior:"smooth",block:"center"}))},[S]),o.jsxs(Nh,{className:"clip-card-text-view ".concat(!C||m==null?"code-scroll-x pb-2":""),options:{scrollbars:{theme:b?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxHeight:i?"calc(100vh - 240px)":C||m==null?200:120,maxWidth:"100%"},children:[c&&o.jsx(ne,{className:"self-start mt-1 mb-1 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(l)!==(d==null?void 0:d.linkUrl),title:d==null?void 0:d.linkTitle,description:d==null?void 0:d.linkDescription,favicon:d==null?void 0:d.linkFavicon,link:d==null?void 0:d.linkUrl,imageWidth:p,image:d==null?void 0:d.linkImage,domain:d==null?void 0:d.linkDomain})}),o.jsxs(Nv,{className:"self-start text-sm font-normal select-text ".concat(t?"whitespace-pre-wrap":"whitespace-pre"," ").concat(C?"!overflow-visible pb-1.5":""),children:[S,!C&&m&&o.jsx("span",{className:"select-none",children:"..."})]})]})};v.memo(hk);var qU={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Vn,function(){var n=navigator.userAgent,r=navigator.platform,s=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),l=/Edge\/(\d+)/.exec(n),c=a||i||l,d=c&&(a?document.documentMode||6:+(l||i)[1]),p=!l&&/WebKit\//.test(n),f=p&&/Qt\/\d+\.\d+/.test(n),m=!l&&/Chrome\/(\d+)/.exec(n),b=m&&+m[1],C=/Opera\//.test(n),g=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),x=/PhantomJS/.test(n),S=g&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),E=/Android/.test(n),N=S||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),_=S||/Mac/.test(r),P=/\bCrOS\b/.test(n),I=/win/i.test(r),T=C&&n.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(C=!1,p=!0);var L=_&&(f||C&&(T==null||T<12.11)),A=s||c&&d>=9;function z(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var Y=function(u,h){var k=u.className,y=z(h).exec(k);if(y){var j=k.slice(y.index+y[0].length);u.className=k.slice(0,y.index)+(j?y[1]+j:"")}};function O(u){for(var h=u.childNodes.length;h>0;--h)u.removeChild(u.firstChild);return u}function $(u,h){return O(u).appendChild(h)}function M(u,h,k,y){var j=document.createElement(u);if(k&&(j.className=k),y&&(j.style.cssText=y),typeof h=="string")j.appendChild(document.createTextNode(h));else if(h)for(var D=0;D=h)return B+(h-D);B+=K-D,B+=k-B%k,D=K+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};de.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},de.prototype.set=function(u,h){this.f=h;var k=+new Date+u;(!this.id||k=h)return y+Math.min(B,h-j);if(j+=D-y,j+=k-j%k,y=D+1,j>=h)return y}}var qe=[""];function ot(u){for(;qe.length<=u;)qe.push(Ve(qe)+" ");return qe[u]}function Ve(u){return u[u.length-1]}function Ge(u,h){for(var k=[],y=0;y"€"&&(u.toUpperCase()!=u.toLowerCase()||ut.test(u))}function ht(u,h){return h?h.source.indexOf("\\w")>-1&&$e(u)?!0:h.test(u):$e(u)}function Fe(u){for(var h in u)if(u.hasOwnProperty(h)&&u[h])return!1;return!0}var pt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qe(u){return u.charCodeAt(0)>=768&&pt.test(u)}function Lt(u,h,k){for(;(k<0?h>0:hk?-1:1;;){if(h==k)return h;var j=(h+k)/2,D=y<0?Math.ceil(j):Math.floor(j);if(D==h)return u(D)?h:k;u(D)?k=D:h=D+y}}function wt(u,h,k,y){if(!u)return y(h,k,"ltr",0);for(var j=!1,D=0;Dh||h==k&&B.to==h)&&(y(Math.max(B.from,h),Math.min(B.to,k),B.level==1?"rtl":"ltr",D),j=!0)}j||y(h,k,"ltr")}var Xt=null;function $t(u,h,k){var y;Xt=null;for(var j=0;jh)return j;D.to==h&&(D.from!=D.to&&k=="before"?y=j:Xt=j),D.from==h&&(D.from!=D.to&&k!="before"?y=j:Xt=j)}return y!=null?y:Xt}var tn=function(){var u="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",h="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function k(ie){return ie<=247?u.charAt(ie):1424<=ie&&ie<=1524?"R":1536<=ie&&ie<=1785?h.charAt(ie-1536):1774<=ie&&ie<=2220?"r":8192<=ie&&ie<=8203?"w":ie==8204?"b":"L"}var y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,D=/[LRr]/,B=/[Lb1n]/,K=/[1n]/;function Q(ie,he,Ce){this.level=ie,this.from=he,this.to=Ce}return function(ie,he){var Ce=he=="ltr"?"L":"R";if(ie.length==0||he=="ltr"&&!y.test(ie))return!1;for(var ze=ie.length,Le=[],lt=0;lt-1&&(y[h]=j.slice(0,D).concat(j.slice(D+1)))}}}function Se(u,h){var k=jt(u,h);if(k.length)for(var y=Array.prototype.slice.call(arguments,2),j=0;j0}function gt(u){u.prototype.on=function(h,k){Je(this,h,k)},u.prototype.off=function(h,k){we(this,h,k)}}function Ze(u){u.preventDefault?u.preventDefault():u.returnValue=!1}function Re(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=!0}function Oe(u){return u.defaultPrevented!=null?u.defaultPrevented:u.returnValue==!1}function et(u){Ze(u),Re(u)}function Et(u){return u.target||u.srcElement}function bt(u){var h=u.which;return h==null&&(u.button&1?h=1:u.button&2?h=3:u.button&4&&(h=2)),_&&u.ctrlKey&&h==1&&(h=3),h}var _t=function(){if(c&&d<9)return!1;var u=M("div");return"draggable"in u||"dragDrop"in u}(),Mt;function an(u){if(Mt==null){var h=M("span","​");$(u,M("span",[h,document.createTextNode("x")])),u.firstChild.offsetHeight!=0&&(Mt=h.offsetWidth<=1&&h.offsetHeight>2&&!(c&&d<8))}var k=Mt?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return k.setAttribute("cm-text",""),k}var dn;function fn(u){if(dn!=null)return dn;var h=$(u,document.createTextNode("AخA")),k=V(h,0,1).getBoundingClientRect(),y=V(h,1,2).getBoundingClientRect();return O(u),!k||k.left==k.right?!1:dn=y.right-k.right<3}var mn="\n\nb".split(/\n/).length!=3?function(u){for(var h=0,k=[],y=u.length;h<=y;){var j=u.indexOf("\n",h);j==-1&&(j=u.length);var D=u.slice(h,u.charAt(j-1)=="\r"?j-1:j),B=D.indexOf("\r");B!=-1?(k.push(D.slice(0,B)),h+=B+1):(k.push(D),h=j+1)}return k}:function(u){return u.split(/\r\n?|\n/)},hn=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch(h){return!1}}:function(u){var h;try{h=u.ownerDocument.selection.createRange()}catch(k){}return!h||h.parentElement()!=u?!1:h.compareEndPoints("StartToEnd",h)!=0},nn=function(){var u=M("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),on=null;function Sn(u){if(on!=null)return on;var h=$(u,M("span","x")),k=h.getBoundingClientRect(),y=V(h,0,1).getBoundingClientRect();return on=Math.abs(k.left-y.left)>1}var pn={},rn={};function ct(u,h){arguments.length>2&&(h.dependencies=Array.prototype.slice.call(arguments,2)),pn[u]=h}function xe(u,h){rn[u]=h}function Ye(u){if(typeof u=="string"&&rn.hasOwnProperty(u))u=rn[u];else if(u&&typeof u.name=="string"&&rn.hasOwnProperty(u.name)){var h=rn[u.name];typeof h=="string"&&(h={name:h}),u=Ke(h,u),u.name=h.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return Ye("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return Ye("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function dt(u,h){h=Ye(h);var k=pn[h.name];if(!k)return dt(u,"text/plain");var y=k(u,h);if(mt.hasOwnProperty(h.name)){var j=mt[h.name];for(var D in j)j.hasOwnProperty(D)&&(y.hasOwnProperty(D)&&(y["_"+D]=y[D]),y[D]=j[D])}if(y.name=h.name,h.helperType&&(y.helperType=h.helperType),h.modeProps)for(var B in h.modeProps)y[B]=h.modeProps[B];return y}var mt={};function xt(u,h){var k=mt.hasOwnProperty(u)?mt[u]:mt[u]={};le(h,k)}function It(u,h){if(h===!0)return h;if(u.copyState)return u.copyState(h);var k={};for(var y in h){var j=h[y];j instanceof Array&&(j=j.concat([])),k[y]=j}return k}function At(u,h){for(var k;u.innerMode&&(k=u.innerMode(h),!(!k||k.mode==u));)h=k.state,u=k.mode;return k||{mode:u,state:h}}function Ht(u,h,k){return u.startState?u.startState(h,k):!0}var Bt=function(u,h,k){this.pos=this.start=0,this.string=u,this.tabSize=h||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=k};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.posh},Bt.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(u){var h=this.string.indexOf(u,this.pos);if(h>-1)return this.pos=h,!0},Bt.prototype.backUp=function(u){this.pos-=u},Bt.prototype.column=function(){return this.lastColumnPos0?null:(D&&h!==!1&&(this.pos+=D[0].length),D)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(u,h){this.lineStart+=u;try{return h()}finally{this.lineStart-=u}},Bt.prototype.lookAhead=function(u){var h=this.lineOracle;return h&&h.lookAhead(u)},Bt.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function tt(u,h){if(h-=u.first,h<0||h>=u.size)throw new Error("There is no line "+(h+u.first)+" in the document.");for(var k=u;!k.lines;)for(var y=0;;++y){var j=k.children[y],D=j.chunkSize();if(h=u.first&&hk?_e(k,tt(u,k).text.length):Yr(h,tt(u,h.line).text.length)}function Yr(u,h){var k=u.ch;return k==null||k>h?_e(u.line,h):k<0?_e(u.line,0):u}function Ai(u,h){for(var k=[],y=0;ythis.maxLookAhead&&(this.maxLookAhead=u),h},ms.prototype.baseToken=function(u){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=u;)this.baseTokenPos+=2;var h=this.baseTokens[this.baseTokenPos+1];return{type:h&&h.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-u}},ms.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ms.fromSaved=function(u,h,k){return h instanceof Po?new ms(u,It(u.mode,h.state),k,h.lookAhead):new ms(u,It(u.mode,h),k)},ms.prototype.save=function(u){var h=u!==!1?It(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Po(h,this.maxLookAhead):h};function ac(u,h,k,y){var j=[u.state.modeGen],D={};dc(u,h.text,u.doc.mode,k,function(ie,he){return j.push(ie,he)},D,y);for(var B=k.state,K=function(ie){k.baseTokens=j;var he=u.state.overlays[ie],Ce=1,ze=0;k.state=!0,dc(u,h.text,he.mode,k,function(Le,lt){for(var vt=Ce;zeLe&&j.splice(Ce,1,Le,j[Ce+1],Nt),Ce+=2,ze=Math.min(Le,Nt)}if(lt)if(he.opaque)j.splice(vt,Ce-vt,Le,"overlay "+lt),Ce=vt+2;else for(;vtu.options.maxHighlightLength&&It(u.doc.mode,y.state),D=ac(u,h,y);j&&(y.state=j),h.stateAfter=y.save(!j),h.styles=D.styles,D.classes?h.styleClasses=D.classes:h.styleClasses&&(h.styleClasses=null),k===u.doc.highlightFrontier&&(u.doc.modeFrontier=Math.max(u.doc.modeFrontier,++u.doc.highlightFrontier))}return h.styles}function ti(u,h,k){var y=u.doc,j=u.display;if(!y.mode.startState)return new ms(y,!0,h);var D=gu(u,h,k),B=D>y.first&&tt(y,D-1).stateAfter,K=B?ms.fromSaved(y,B,D):new ms(y,Ht(y.mode),D);return y.iter(D,h,function(Q){kl(u,Q.text,K);var ie=K.line;Q.stateAfter=ie==h-1||ie%5==0||ie>=j.viewFrom&&ieh.start)return D}throw new Error("Mode "+u.name+" failed to advance stream.")}var lc=function(u,h,k){this.start=u.start,this.end=u.pos,this.string=u.current(),this.type=h||null,this.state=k};function cc(u,h,k,y){var j=u.doc,D=j.mode,B;h=yn(j,h);var K=tt(j,h.line),Q=ti(u,h.line,k),ie=new Bt(K.text,u.options.tabSize,Q),he;for(y&&(he=[]);(y||ie.posu.options.maxHighlightLength?(K=!1,B&&kl(u,h,y,he.pos),he.pos=h.length,Ce=null):Ce=uc(Cl(k,he,y.state,ze),D),ze){var Le=ze[0].name;Le&&(Ce="m-"+(Ce?Le+" "+Ce:Le))}if(!K||ie!=Ce){for(;QB;--K){if(K<=D.first)return D.first;var Q=tt(D,K-1),ie=Q.stateAfter;if(ie&&(!k||K+(ie instanceof Po?ie.lookAhead:0)<=D.modeFrontier))return K;var he=se(Q.text,null,u.options.tabSize);(j==null||y>he)&&(j=K-1,y=he)}return j}function vu(u,h){if(u.modeFrontier=Math.min(u.modeFrontier,h),!(u.highlightFrontierk;y--){var j=tt(u,y).stateAfter;if(j&&(!(j instanceof Po)||y+j.lookAhead=h:D.to>h);(y||(y=[])).push(new Li(B,D.from,Q?null:D.to))}}return y}function Cu(u,h,k){var y;if(u)for(var j=0;j=h:D.to>h);if(K||D.from==h&&B.type=="bookmark"&&(!k||D.marker.insertLeft)){var Q=D.from==null||(B.inclusiveLeft?D.from<=h:D.from0&&K)for(var Jt=0;Jt0)){var he=[Q,1],Ce=He(ie.from,K.from),ze=He(ie.to,K.to);(Ce<0||!B.inclusiveLeft&&!Ce)&&he.push({from:ie.from,to:K.from}),(ze>0||!B.inclusiveRight&&!ze)&&he.push({from:K.to,to:ie.to}),j.splice.apply(j,he),Q+=he.length-3}}return j}function pc(u){var h=u.markedSpans;if(h){for(var k=0;kh)&&(!y||jl(y,D.marker)<0)&&(y=D.marker)}return y}function of(u,h,k,y,j){var D=tt(u,h),B=da&&D.markedSpans;if(B)for(var K=0;K=0&&Ce<=0||he<=0&&Ce>=0)&&(he<=0&&(Q.marker.inclusiveRight&&j.inclusiveLeft?He(ie.to,k)>=0:He(ie.to,k)>0)||he>=0&&(Q.marker.inclusiveRight&&j.inclusiveLeft?He(ie.from,y)<=0:He(ie.from,y)<0)))return!0}}}function Rs(u){for(var h;h=xc(u);)u=h.find(-1,!0).line;return u}function Eu(u){for(var h;h=yc(u);)u=h.find(1,!0).line;return u}function Nu(u){for(var h,k;h=yc(u);)u=h.find(1,!0).line,(k||(k=[])).push(u);return k}function El(u,h){var k=tt(u,h),y=Rs(k);return k==y?h:oe(y)}function bc(u,h){if(h>u.lastLine())return h;var k=tt(u,h),y;if(!Ta(u,k))return h;for(;y=yc(k);)k=y.find(1,!0).line;return oe(k)+1}function Ta(u,h){var k=da&&h.markedSpans;if(k){for(var y=void 0,j=0;jh.maxLineLength&&(h.maxLineLength=j,h.maxLine=y)})}var si=function(u,h,k){this.text=u,mc(this,h),this.height=k?k(this):1};si.prototype.lineNo=function(){return oe(this)},gt(si);function Ak(u,h,k,y){u.text=h,u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null),u.order!=null&&(u.order=null),pc(u),mc(u,k);var j=y?y(u):1;j!=u.height&&vn(u,j)}function xN(u){u.parent=null,pc(u)}var Ox={},yN={};function bN(u,h){if(!u||/^\s*$/.test(u))return null;var k=h.addModeClass?yN:Ox;return k[u]||(k[u]=u.replace(/\S+/g,"cm-$&"))}function wN(u,h){var k=W("span",null,null,p?"padding-right: .1px":null),y={pre:W("pre",[k],"CodeMirror-line"),content:k,col:0,pos:0,cm:u,trailingSpace:!1,splitSpaces:u.getOption("lineWrapping")};h.measure={};for(var j=0;j<=(h.rest?h.rest.length:0);j++){var D=j?h.rest[j-1]:h.line,B=void 0;y.pos=0,y.addToken=Oq,fn(u.display.measure)&&(B=Pt(D,u.doc.direction))&&(y.addToken=zq(y.addToken,B)),y.map=[];var K=h!=u.display.externalMeasured&&oe(D);Fq(D,y,oc(u,D,K)),D.styleClasses&&(D.styleClasses.bgClass&&(y.bgClass=F(D.styleClasses.bgClass,y.bgClass||"")),D.styleClasses.textClass&&(y.textClass=F(D.styleClasses.textClass,y.textClass||""))),y.map.length==0&&y.map.push(0,0,y.content.appendChild(an(u.display.measure))),j==0?(h.measure.map=y.map,h.measure.cache={}):((h.measure.maps||(h.measure.maps=[])).push(y.map),(h.measure.caches||(h.measure.caches=[])).push({}))}if(p){var Q=y.content.lastChild;(/\bcm-tab\b/.test(Q.className)||Q.querySelector&&Q.querySelector(".cm-tab"))&&(y.content.className="cm-tab-wrap-hack")}return Se(u,"renderLine",u,h.line,y.pre),y.pre.className&&(y.textClass=F(y.pre.className,y.textClass||"")),y}function Rq(u){var h=M("span","•","cm-invalidchar");return h.title="\\u"+u.charCodeAt(0).toString(16),h.setAttribute("aria-label",h.title),h}function Oq(u,h,k,y,j,D,B){if(h){var K=u.splitSpaces?$q(h,u.trailingSpace):h,Q=u.cm.state.specialChars,ie=!1,he;if(!Q.test(h))u.col+=h.length,he=document.createTextNode(K),u.map.push(u.pos,u.pos+h.length,he),c&&d<9&&(ie=!0),u.pos+=h.length;else{he=document.createDocumentFragment();for(var Ce=0;;){Q.lastIndex=Ce;var ze=Q.exec(h),Le=ze?ze.index-Ce:h.length-Ce;if(Le){var lt=document.createTextNode(K.slice(Ce,Ce+Le));c&&d<9?he.appendChild(M("span",[lt])):he.appendChild(lt),u.map.push(u.pos,u.pos+Le,lt),u.col+=Le,u.pos+=Le}if(!ze)break;Ce+=Le+1;var vt=void 0;if(ze[0]==" "){var Nt=u.cm.options.tabSize,zt=Nt-u.col%Nt;vt=he.appendChild(M("span",ot(zt),"cm-tab")),vt.setAttribute("role","presentation"),vt.setAttribute("cm-text"," "),u.col+=zt}else ze[0]=="\r"||ze[0]=="\n"?(vt=he.appendChild(M("span",ze[0]=="\r"?"␍":"␤","cm-invalidchar")),vt.setAttribute("cm-text",ze[0]),u.col+=1):(vt=u.cm.options.specialCharPlaceholder(ze[0]),vt.setAttribute("cm-text",ze[0]),c&&d<9?he.appendChild(M("span",[vt])):he.appendChild(vt),u.col+=1);u.map.push(u.pos,u.pos+1,vt),u.pos++}}if(u.trailingSpace=K.charCodeAt(h.length-1)==32,k||y||j||ie||D||B){var Yt=k||"";y&&(Yt+=y),j&&(Yt+=j);var Ft=M("span",[he],Yt,D);if(B)for(var Jt in B)B.hasOwnProperty(Jt)&&Jt!="style"&&Jt!="class"&&Ft.setAttribute(Jt,B[Jt]);return u.content.appendChild(Ft)}u.content.appendChild(he)}}function $q(u,h){if(u.length>1&&!/ /.test(u))return u;for(var k=h,y="",j=0;jie&&Ce.from<=ie));ze++);if(Ce.to>=he)return u(k,y,j,D,B,K,Q);u(k,y.slice(0,Ce.to-ie),j,D,null,K,Q),D=null,y=y.slice(Ce.to-ie),ie=Ce.to}}}function kN(u,h,k,y){var j=!y&&k.widgetNode;j&&u.map.push(u.pos,u.pos+h,j),!y&&u.cm.display.input.needsContentAttribute&&(j||(j=u.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",k.id)),j&&(u.cm.display.input.setUneditable(j),u.content.appendChild(j)),u.pos+=h,u.trailingSpace=!1}function Fq(u,h,k){var y=u.markedSpans,j=u.text,D=0;if(!y){for(var B=1;BQ||Rn.collapsed&&xn.to==Q&&xn.from==Q)){if(xn.to!=null&&xn.to!=Q&&Le>xn.to&&(Le=xn.to,vt=""),Rn.className&&(lt+=" "+Rn.className),Rn.css&&(ze=(ze?ze+";":"")+Rn.css),Rn.startStyle&&xn.from==Q&&(Nt+=" "+Rn.startStyle),Rn.endStyle&&xn.to==Le&&(Jt||(Jt=[])).push(Rn.endStyle,xn.to),Rn.title&&((Yt||(Yt={})).title=Rn.title),Rn.attributes)for(var yr in Rn.attributes)(Yt||(Yt={}))[yr]=Rn.attributes[yr];Rn.collapsed&&(!zt||jl(zt.marker,Rn)<0)&&(zt=xn)}else xn.from>Q&&Le>xn.from&&(Le=xn.from)}if(Jt)for(var ys=0;ys=K)break;for(var ro=Math.min(K,Le);;){if(he){var Ia=Q+he.length;if(!zt){var rs=Ia>ro?he.slice(0,ro-Q):he;h.addToken(h,rs,Ce?Ce+lt:lt,Nt,Q+rs.length==Le?vt:"",ze,Yt)}if(Ia>=ro){he=he.slice(ro-Q),Q=ro;break}Q=Ia,Nt=""}he=j.slice(D,D=k[ie++]),Ce=bN(k[ie++],h.cm.options)}}}function CN(u,h,k){this.line=h,this.rest=Nu(h),this.size=this.rest?oe(Ve(this.rest))-k+1:1,this.node=this.text=null,this.hidden=Ta(u,h)}function $x(u,h,k){for(var y=[],j,D=h;D2&&D.push((Q.bottom+ie.top)/2-k.top)}}D.push(k.bottom-k.top)}}function PN(u,h,k){if(u.line==h)return{map:u.measure.map,cache:u.measure.cache};if(u.rest){for(var y=0;yk)return{map:u.measure.maps[j],cache:u.measure.caches[j],before:!0}}}function Xq(u,h){h=Rs(h);var k=oe(h),y=u.display.externalMeasured=new CN(u.doc,h,k);y.lineN=k;var j=y.built=wN(u,y);return y.text=j.pre,$(u.display.lineMeasure,j.pre),y}function MN(u,h,k,y){return _l(u,Zh(u,h),k,y)}function $k(u,h){if(h>=u.display.viewFrom&&h=k.lineN&&hh)&&(D=Q-K,j=D-1,h>=Q&&(B="right")),j!=null){if(y=u[ie+2],K==Q&&k==(y.insertLeft?"left":"right")&&(B=k),k=="left"&&j==0)for(;ie&&u[ie-2]==u[ie-3]&&u[ie-1].insertLeft;)y=u[(ie-=3)+2],B="left";if(k=="right"&&j==Q-K)for(;ie=0&&(k=u[j]).left==k.right;j--);return k}function Jq(u,h,k,y){var j=IN(h.map,k,y),D=j.node,B=j.start,K=j.end,Q=j.collapse,ie;if(D.nodeType==3){for(var he=0;he<4;he++){for(;B&&Qe(h.line.text.charAt(j.coverStart+B));)--B;for(;j.coverStart+K0&&(Q=y="right");var Ce;u.options.lineWrapping&&(Ce=D.getClientRects()).length>1?ie=Ce[y=="right"?Ce.length-1:0]:ie=D.getBoundingClientRect()}if(c&&d<9&&!B&&(!ie||!ie.left&&!ie.right)){var ze=D.parentNode.getClientRects()[0];ze?ie={left:ze.left,right:ze.left+Qh(u.display),top:ze.top,bottom:ze.bottom}:ie=DN}for(var Le=ie.top-h.rect.top,lt=ie.bottom-h.rect.top,vt=(Le+lt)/2,Nt=h.view.measure.heights,zt=0;zt=y.text.length?(Q=y.text.length,ie="before"):Q<=0&&(Q=0,ie="after"),!K)return B(ie=="before"?Q-1:Q,ie=="before");function he(lt,vt,Nt){var zt=K[vt],Yt=zt.level==1;return B(Nt?lt-1:lt,Yt!=Nt)}var Ce=$t(K,Q,ie),ze=Xt,Le=he(Q,Ce,ie=="before");return ze!=null&&(Le.other=he(Q,ze,ie!="before")),Le}function zN(u,h){var k=0;h=yn(u.doc,h),u.options.lineWrapping||(k=Qh(u.display)*h.ch);var y=tt(u.doc,h.line),j=Pa(y)+zx(u.display);return{left:k,right:k,top:j,bottom:j+y.height}}function Fk(u,h,k,y,j){var D=_e(u,h,k);return D.xRel=j,y&&(D.outside=y),D}function Hk(u,h,k){var y=u.doc;if(k+=u.display.viewOffset,k<0)return Fk(y.first,0,null,-1,-1);var j=fe(y,k),D=y.first+y.size-1;if(j>D)return Fk(y.first+y.size-1,tt(y,D).text.length,null,1,1);h<0&&(h=0);for(var B=tt(y,j);;){var K=tK(u,B,j,h,k),Q=ju(B,K.ch+(K.xRel>0||K.outside>0?1:0));if(!Q)return K;var ie=Q.find(1);if(ie.line==j)return ie;B=tt(y,j=ie.line)}}function FN(u,h,k,y){y-=zk(h);var j=h.text.length,D=Ut(function(B){return _l(u,k,B-1).bottom<=y},j,0);return j=Ut(function(B){return _l(u,k,B).top>y},D,j),{begin:D,end:j}}function HN(u,h,k,y){k||(k=Zh(u,h));var j=Fx(u,h,_l(u,k,y),"line").top;return FN(u,h,k,j)}function Bk(u,h,k,y){return u.bottom<=k?!1:u.top>k?!0:(y?u.left:u.right)>h}function tK(u,h,k,y,j){j-=Pa(h);var D=Zh(u,h),B=zk(h),K=0,Q=h.text.length,ie=!0,he=Pt(h,u.doc.direction);if(he){var Ce=(u.options.lineWrapping?rK:nK)(u,h,k,D,he,y,j);ie=Ce.level!=1,K=ie?Ce.from:Ce.to-1,Q=ie?Ce.to:Ce.from-1}var ze=null,Le=null,lt=Ut(function(bn){var xn=_l(u,D,bn);return xn.top+=B,xn.bottom+=B,Bk(xn,y,j,!1)?(xn.top<=j&&xn.left<=y&&(ze=bn,Le=xn),!0):!1},K,Q),vt,Nt,zt=!1;if(Le){var Yt=y-Le.left=Jt.bottom?1:0}return lt=Lt(h.text,lt,1),Fk(k,lt,Nt,zt,y-vt)}function nK(u,h,k,y,j,D,B){var K=Ut(function(Ce){var ze=j[Ce],Le=ze.level!=1;return Bk(Oi(u,_e(k,Le?ze.to:ze.from,Le?"before":"after"),"line",h,y),D,B,!0)},0,j.length-1),Q=j[K];if(K>0){var ie=Q.level!=1,he=Oi(u,_e(k,ie?Q.from:Q.to,ie?"after":"before"),"line",h,y);Bk(he,D,B,!0)&&he.top>B&&(Q=j[K-1])}return Q}function rK(u,h,k,y,j,D,B){var K=FN(u,h,y,B),Q=K.begin,ie=K.end;/\s/.test(h.text.charAt(ie-1))&&ie--;for(var he=null,Ce=null,ze=0;ze=ie||Le.to<=Q)){var lt=Le.level!=1,vt=_l(u,y,lt?Math.min(ie,Le.to)-1:Math.max(Q,Le.from)).right,Nt=vtNt)&&(he=Le,Ce=Nt)}}return he||(he=j[j.length-1]),he.fromie&&(he={from:he.from,to:ie,level:he.level}),he}var cf;function Xh(u){if(u.cachedTextHeight!=null)return u.cachedTextHeight;if(cf==null){cf=M("pre",null,"CodeMirror-line-like");for(var h=0;h<49;++h)cf.appendChild(document.createTextNode("x")),cf.appendChild(M("br"));cf.appendChild(document.createTextNode("x"))}$(u.measure,cf);var k=cf.offsetHeight/50;return k>3&&(u.cachedTextHeight=k),O(u.measure),k||1}function Qh(u){if(u.cachedCharWidth!=null)return u.cachedCharWidth;var h=M("span","xxxxxxxxxx"),k=M("pre",[h],"CodeMirror-line-like");$(u.measure,k);var y=h.getBoundingClientRect(),j=(y.right-y.left)/10;return j>2&&(u.cachedCharWidth=j),j||10}function Uk(u){for(var h=u.display,k={},y={},j=h.gutters.clientLeft,D=h.gutters.firstChild,B=0;D;D=D.nextSibling,++B){var K=u.display.gutterSpecs[B].className;k[K]=D.offsetLeft+D.clientLeft+j,y[K]=D.clientWidth}return{fixedPos:Wk(h),gutterTotalWidth:h.gutters.offsetWidth,gutterLeft:k,gutterWidth:y,wrapperWidth:h.wrapper.clientWidth}}function Wk(u){return u.scroller.getBoundingClientRect().left-u.sizer.getBoundingClientRect().left}function BN(u){var h=Xh(u.display),k=u.options.lineWrapping,y=k&&Math.max(5,u.display.scroller.clientWidth/Qh(u.display)-3);return function(j){if(Ta(u.doc,j))return 0;var D=0;if(j.widgets)for(var B=0;B0&&(ie=tt(u.doc,Q.line).text).length==Q.ch){var he=se(ie,ie.length,u.options.tabSize)-ie.length;Q=_e(Q.line,Math.max(0,Math.round((D-TN(u.display).left)/Qh(u.display))-he))}return Q}function df(u,h){if(h>=u.display.viewTo||(h-=u.display.viewFrom,h<0))return null;for(var k=u.display.view,y=0;yh)&&(j.updateLineNumbers=h),u.curOp.viewChanged=!0,h>=j.viewTo)da&&El(u.doc,h)j.viewFrom?Pu(u):(j.viewFrom+=y,j.viewTo+=y);else if(h<=j.viewFrom&&k>=j.viewTo)Pu(u);else if(h<=j.viewFrom){var D=Bx(u,k,k+y,1);D?(j.view=j.view.slice(D.index),j.viewFrom=D.lineN,j.viewTo+=y):Pu(u)}else if(k>=j.viewTo){var B=Bx(u,h,h,-1);B?(j.view=j.view.slice(0,B.index),j.viewTo=B.lineN):Pu(u)}else{var K=Bx(u,h,h,-1),Q=Bx(u,k,k+y,1);K&&Q?(j.view=j.view.slice(0,K.index).concat($x(u,K.lineN,Q.lineN)).concat(j.view.slice(Q.index)),j.viewTo+=y):Pu(u)}var ie=j.externalMeasured;ie&&(k=j.lineN&&h=y.viewTo)){var D=y.view[df(u,h)];if(D.node!=null){var B=D.changes||(D.changes=[]);ce(B,k)==-1&&B.push(k)}}}function Pu(u){u.display.viewFrom=u.display.viewTo=u.doc.first,u.display.view=[],u.display.viewOffset=0}function Bx(u,h,k,y){var j=df(u,h),D,B=u.display.view;if(!da||k==u.doc.first+u.doc.size)return{index:j,lineN:k};for(var K=u.display.viewFrom,Q=0;Q0){if(j==B.length-1)return null;D=K+B[j].size-h,j++}else D=K-h;h+=D,k+=D}for(;El(u.doc,k)!=k;){if(j==(y<0?0:B.length-1))return null;k+=y*B[j-(y<0?1:0)].size,j+=y}return{index:j,lineN:k}}function sK(u,h,k){var y=u.display,j=y.view;j.length==0||h>=y.viewTo||k<=y.viewFrom?(y.view=$x(u,h,k),y.viewFrom=h):(y.viewFrom>h?y.view=$x(u,h,y.viewFrom).concat(y.view):y.viewFromk&&(y.view=y.view.slice(0,df(u,k)))),y.viewTo=k}function UN(u){for(var h=u.display.view,k=0,y=0;y=u.display.viewTo||Q.to().line0?B:u.defaultCharWidth())+"px"}if(y.other){var K=k.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));K.style.display="",K.style.left=y.other.left+"px",K.style.top=y.other.top+"px",K.style.height=(y.other.bottom-y.other.top)*.85+"px"}}function Ux(u,h){return u.top-h.top||u.left-h.left}function aK(u,h,k){var y=u.display,j=u.doc,D=document.createDocumentFragment(),B=TN(u.display),K=B.left,Q=Math.max(y.sizerWidth,lf(u)-y.sizer.offsetLeft)-B.right,ie=j.direction=="ltr";function he(Ft,Jt,bn,xn){Jt<0&&(Jt=0),Jt=Math.round(Jt),xn=Math.round(xn),D.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+Ft+"px;\n top: "+Jt+"px; width: "+(bn==null?Q-Ft:bn)+"px;\n height: "+(xn-Jt)+"px"))}function Ce(Ft,Jt,bn){var xn=tt(j,Ft),Rn=xn.text.length,yr,ys;function Lr(rs,Aa){return Hx(u,_e(Ft,rs),"div",xn,Aa)}function ro(rs,Aa,Os){var ds=HN(u,xn,null,rs),ss=Aa=="ltr"==(Os=="after")?"left":"right",Fr=Os=="after"?ds.begin:ds.end-(/\s/.test(xn.text.charAt(ds.end-1))?2:1);return Lr(Fr,ss)[ss]}var Ia=Pt(xn,j.direction);return wt(Ia,Jt||0,bn==null?Rn:bn,function(rs,Aa,Os,ds){var ss=Os=="ltr",Fr=Lr(rs,ss?"left":"right"),La=Lr(Aa-1,ss?"right":"left"),dp=Jt==null&&rs==0,Ru=bn==null&&Aa==Rn,ea=ds==0,Tl=!Ia||ds==Ia.length-1;if(La.top-Fr.top<=3){var bs=(ie?dp:Ru)&&ea,y3=(ie?Ru:dp)&&Tl,Sc=bs?K:(ss?Fr:La).left,gf=y3?Q:(ss?La:Fr).right;he(Sc,Fr.top,gf-Sc,Fr.bottom)}else{var vf,ha,fp,b3;ss?(vf=ie&&dp&&ea?K:Fr.left,ha=ie?Q:ro(rs,Os,"before"),fp=ie?K:ro(Aa,Os,"after"),b3=ie&&Ru&&Tl?Q:La.right):(vf=ie?ro(rs,Os,"before"):K,ha=!ie&&dp&&ea?Q:Fr.right,fp=!ie&&Ru&&Tl?K:La.left,b3=ie?ro(Aa,Os,"after"):Q),he(vf,Fr.top,ha-vf,Fr.bottom),Fr.bottom0?h.blinker=setInterval(function(){u.hasFocus()||Jh(u),h.cursorDiv.style.visibility=(k=!k)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(h.cursorDiv.style.visibility="hidden")}}function VN(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Yk(u))}function Gk(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Jh(u))},100)}function Yk(u,h){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(Se(u,"focus",u,h),u.state.focused=!0,H(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),p&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),Kk(u))}function Jh(u,h){u.state.delayingBlurEvent||(u.state.focused&&(Se(u,"blur",u,h),u.state.focused=!1,Y(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Wx(u){for(var h=u.display,k=h.lineDiv.offsetTop,y=Math.max(0,h.scroller.getBoundingClientRect().top),j=h.lineDiv.getBoundingClientRect().top,D=0,B=0;B.005||Le<-.005)&&(ju.display.sizerWidth){var vt=Math.ceil(he/Qh(u.display));vt>u.display.maxLineLength&&(u.display.maxLineLength=vt,u.display.maxLine=K.line,u.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(h.scroller.scrollTop+=D)}function qN(u){if(u.widgets)for(var h=0;h=B&&(D=fe(h,Pa(tt(h,Q))-u.wrapper.clientHeight),B=Q)}return{from:D,to:Math.max(B,D+1)}}function oK(u,h){if(!De(u,"scrollCursorIntoView")){var k=u.display,y=k.sizer.getBoundingClientRect(),j=null,D=k.wrapper.ownerDocument;if(h.top+y.top<0?j=!0:h.bottom+y.top>(D.defaultView.innerHeight||D.documentElement.clientHeight)&&(j=!1),j!=null&&!x){var B=M("div","​",null,"position: absolute;\n top: "+(h.top-k.viewOffset-zx(u.display))+"px;\n height: "+(h.bottom-h.top+Nl(u)+k.barHeight)+"px;\n left: "+h.left+"px; width: "+Math.max(2,h.right-h.left)+"px;");u.display.lineSpace.appendChild(B),B.scrollIntoView(j),u.display.lineSpace.removeChild(B)}}}function iK(u,h,k,y){y==null&&(y=0);var j;!u.options.lineWrapping&&h==k&&(k=h.sticky=="before"?_e(h.line,h.ch+1,"before"):h,h=h.ch?_e(h.line,h.sticky=="before"?h.ch-1:h.ch,"after"):h);for(var D=0;D<5;D++){var B=!1,K=Oi(u,h),Q=!k||k==h?K:Oi(u,k);j={left:Math.min(K.left,Q.left),top:Math.min(K.top,Q.top)-y,right:Math.max(K.left,Q.left),bottom:Math.max(K.bottom,Q.bottom)+y};var ie=Zk(u,j),he=u.doc.scrollTop,Ce=u.doc.scrollLeft;if(ie.scrollTop!=null&&(rg(u,ie.scrollTop),Math.abs(u.doc.scrollTop-he)>1&&(B=!0)),ie.scrollLeft!=null&&(ff(u,ie.scrollLeft),Math.abs(u.doc.scrollLeft-Ce)>1&&(B=!0)),!B)break}return j}function lK(u,h){var k=Zk(u,h);k.scrollTop!=null&&rg(u,k.scrollTop),k.scrollLeft!=null&&ff(u,k.scrollLeft)}function Zk(u,h){var k=u.display,y=Xh(u.display);h.top<0&&(h.top=0);var j=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:k.scroller.scrollTop,D=Ok(u),B={};h.bottom-h.top>D&&(h.bottom=h.top+D);var K=u.doc.height+Rk(k),Q=h.topK-y;if(h.topj+D){var he=Math.min(h.top,(ie?K:h.bottom)-D);he!=j&&(B.scrollTop=he)}var Ce=u.options.fixedGutter?0:k.gutters.offsetWidth,ze=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:k.scroller.scrollLeft-Ce,Le=lf(u)-k.gutters.offsetWidth,lt=h.right-h.left>Le;return lt&&(h.right=h.left+Le),h.left<10?B.scrollLeft=0:h.leftLe+ze-3&&(B.scrollLeft=h.right+(lt?0:10)-Le),B}function Xk(u,h){h!=null&&(qx(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+h)}function ep(u){qx(u);var h=u.getCursor();u.curOp.scrollToPos={from:h,to:h,margin:u.options.cursorScrollMargin}}function ng(u,h,k){(h!=null||k!=null)&&qx(u),h!=null&&(u.curOp.scrollLeft=h),k!=null&&(u.curOp.scrollTop=k)}function cK(u,h){qx(u),u.curOp.scrollToPos=h}function qx(u){var h=u.curOp.scrollToPos;if(h){u.curOp.scrollToPos=null;var k=zN(u,h.from),y=zN(u,h.to);KN(u,k,y,h.margin)}}function KN(u,h,k,y){var j=Zk(u,{left:Math.min(h.left,k.left),top:Math.min(h.top,k.top)-y,right:Math.max(h.right,k.right),bottom:Math.max(h.bottom,k.bottom)+y});ng(u,j.scrollLeft,j.scrollTop)}function rg(u,h){Math.abs(u.doc.scrollTop-h)<2||(s||Jk(u,{top:h}),GN(u,h,!0),s&&Jk(u),og(u,100))}function GN(u,h,k){h=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,h)),!(u.display.scroller.scrollTop==h&&!k)&&(u.doc.scrollTop=h,u.display.scrollbars.setScrollTop(h),u.display.scroller.scrollTop!=h&&(u.display.scroller.scrollTop=h))}function ff(u,h,k,y){h=Math.max(0,Math.min(h,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((k?h==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-h)<2)&&!y)&&(u.doc.scrollLeft=h,JN(u),u.display.scroller.scrollLeft!=h&&(u.display.scroller.scrollLeft=h),u.display.scrollbars.setScrollLeft(h))}function sg(u){var h=u.display,k=h.gutters.offsetWidth,y=Math.round(u.doc.height+Rk(u.display));return{clientHeight:h.scroller.clientHeight,viewHeight:h.wrapper.clientHeight,scrollWidth:h.scroller.scrollWidth,clientWidth:h.scroller.clientWidth,viewWidth:h.wrapper.clientWidth,barLeft:u.options.fixedGutter?k:0,docHeight:y,scrollHeight:y+Nl(u)+h.barHeight,nativeBarWidth:h.nativeBarWidth,gutterWidth:k}}var hf=function(u,h,k){this.cm=k;var y=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");y.tabIndex=j.tabIndex=-1,u(y),u(j),Je(y,"scroll",function(){y.clientHeight&&h(y.scrollTop,"vertical")}),Je(j,"scroll",function(){j.clientWidth&&h(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hf.prototype.update=function(u){var h=u.scrollWidth>u.clientWidth+1,k=u.scrollHeight>u.clientHeight+1,y=u.nativeBarWidth;if(k){this.vert.style.display="block",this.vert.style.bottom=h?y+"px":"0";var j=u.viewHeight-(h?y:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+j)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(h){this.horiz.style.display="block",this.horiz.style.right=k?y+"px":"0",this.horiz.style.left=u.barLeft+"px";var D=u.viewWidth-u.barLeft-(k?y:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+D)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(y==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:k?y:0,bottom:h?y:0}},hf.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hf.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hf.prototype.zeroWidthHack=function(){var u=_&&!w?"12px":"18px";this.horiz.style.height=this.vert.style.width=u,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new de,this.disableVert=new de},hf.prototype.enableZeroWidthBar=function(u,h,k){u.style.visibility="";function y(){var j=u.getBoundingClientRect(),D=k=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);D!=u?u.style.visibility="hidden":h.set(1e3,y)}h.set(1e3,y)},hf.prototype.clear=function(){var u=this.horiz.parentNode;u.removeChild(this.horiz),u.removeChild(this.vert)};var ag=function(){};ag.prototype.update=function(){return{bottom:0,right:0}},ag.prototype.setScrollLeft=function(){},ag.prototype.setScrollTop=function(){},ag.prototype.clear=function(){};function tp(u,h){h||(h=sg(u));var k=u.display.barWidth,y=u.display.barHeight;YN(u,h);for(var j=0;j<4&&k!=u.display.barWidth||y!=u.display.barHeight;j++)k!=u.display.barWidth&&u.options.lineWrapping&&Wx(u),YN(u,sg(u)),k=u.display.barWidth,y=u.display.barHeight}function YN(u,h){var k=u.display,y=k.scrollbars.update(h);k.sizer.style.paddingRight=(k.barWidth=y.right)+"px",k.sizer.style.paddingBottom=(k.barHeight=y.bottom)+"px",k.heightForcer.style.borderBottom=y.bottom+"px solid transparent",y.right&&y.bottom?(k.scrollbarFiller.style.display="block",k.scrollbarFiller.style.height=y.bottom+"px",k.scrollbarFiller.style.width=y.right+"px"):k.scrollbarFiller.style.display="",y.bottom&&u.options.coverGutterNextToScrollbar&&u.options.fixedGutter?(k.gutterFiller.style.display="block",k.gutterFiller.style.height=y.bottom+"px",k.gutterFiller.style.width=h.gutterWidth+"px"):k.gutterFiller.style.display=""}var ZN={native:hf,null:ag};function XN(u){u.display.scrollbars&&(u.display.scrollbars.clear(),u.display.scrollbars.addClass&&Y(u.display.wrapper,u.display.scrollbars.addClass)),u.display.scrollbars=new ZN[u.options.scrollbarStyle](function(h){u.display.wrapper.insertBefore(h,u.display.scrollbarFiller),Je(h,"mousedown",function(){u.state.focused&&setTimeout(function(){return u.display.input.focus()},0)}),h.setAttribute("cm-not-content","true")},function(h,k){k=="horizontal"?ff(u,h):rg(u,h)},u),u.display.scrollbars.addClass&&H(u.display.wrapper,u.display.scrollbars.addClass)}var uK=0;function pf(u){u.curOp={cm:u,viewChanged:!1,startHeight:u.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++uK,markArrays:null},Hq(u.curOp)}function mf(u){var h=u.curOp;h&&Uq(h,function(k){for(var y=0;y=k.viewTo)||k.maxLineChanged&&h.options.lineWrapping,u.update=u.mustUpdate&&new Kx(h,u.mustUpdate&&{top:u.scrollTop,ensure:u.scrollToPos},u.forceUpdate)}function hK(u){u.updatedDisplay=u.mustUpdate&&Qk(u.cm,u.update)}function pK(u){var h=u.cm,k=h.display;u.updatedDisplay&&Wx(h),u.barMeasure=sg(h),k.maxLineChanged&&!h.options.lineWrapping&&(u.adjustWidthTo=MN(h,k.maxLine,k.maxLine.text.length).left+3,h.display.sizerWidth=u.adjustWidthTo,u.barMeasure.scrollWidth=Math.max(k.scroller.clientWidth,k.sizer.offsetLeft+u.adjustWidthTo+Nl(h)+h.display.barWidth),u.maxScrollLeft=Math.max(0,k.sizer.offsetLeft+u.adjustWidthTo-lf(h))),(u.updatedDisplay||u.selectionChanged)&&(u.preparedSelection=k.input.prepareSelection())}function mK(u){var h=u.cm;u.adjustWidthTo!=null&&(h.display.sizer.style.minWidth=u.adjustWidthTo+"px",u.maxScrollLeft=u.display.viewTo)){var k=+new Date+u.options.workTime,y=ti(u,h.highlightFrontier),j=[];h.iter(y.line,Math.min(h.first+h.size,u.display.viewTo+500),function(D){if(y.line>=u.display.viewFrom){var B=D.styles,K=D.text.length>u.options.maxHighlightLength?It(h.mode,y.state):null,Q=ac(u,D,y,!0);K&&(y.state=K),D.styles=Q.styles;var ie=D.styleClasses,he=Q.classes;he?D.styleClasses=he:ie&&(D.styleClasses=null);for(var Ce=!B||B.length!=D.styles.length||ie!=he&&(!ie||!he||ie.bgClass!=he.bgClass||ie.textClass!=he.textClass),ze=0;!Ce&&zek)return og(u,u.options.workDelay),!0}),h.highlightFrontier=y.line,h.modeFrontier=Math.max(h.modeFrontier,y.line),j.length&&no(u,function(){for(var D=0;D=k.viewFrom&&h.visible.to<=k.viewTo&&(k.updateLineNumbers==null||k.updateLineNumbers>=k.viewTo)&&k.renderedView==k.view&&UN(u)==0)return!1;e9(u)&&(Pu(u),h.dims=Uk(u));var j=y.first+y.size,D=Math.max(h.visible.from-u.options.viewportMargin,y.first),B=Math.min(j,h.visible.to+u.options.viewportMargin);k.viewFromB&&k.viewTo-B<20&&(B=Math.min(j,k.viewTo)),da&&(D=El(u.doc,D),B=bc(u.doc,B));var K=D!=k.viewFrom||B!=k.viewTo||k.lastWrapHeight!=h.wrapperHeight||k.lastWrapWidth!=h.wrapperWidth;sK(u,D,B),k.viewOffset=Pa(tt(u.doc,k.viewFrom)),u.display.mover.style.top=k.viewOffset+"px";var Q=UN(u);if(!K&&Q==0&&!h.force&&k.renderedView==k.view&&(k.updateLineNumbers==null||k.updateLineNumbers>=k.viewTo))return!1;var ie=yK(u);return Q>4&&(k.lineDiv.style.display="none"),wK(u,k.updateLineNumbers,h.dims),Q>4&&(k.lineDiv.style.display=""),k.renderedView=k.view,bK(ie),O(k.cursorDiv),O(k.selectionDiv),k.gutters.style.height=k.sizer.style.minHeight=0,K&&(k.lastWrapHeight=h.wrapperHeight,k.lastWrapWidth=h.wrapperWidth,og(u,400)),k.updateLineNumbers=null,!0}function QN(u,h){for(var k=h.viewport,y=!0;;y=!1){if(!y||!u.options.lineWrapping||h.oldDisplayWidth==lf(u)){if(k&&k.top!=null&&(k={top:Math.min(u.doc.height+Rk(u.display)-Ok(u),k.top)}),h.visible=Vx(u.display,u.doc,k),h.visible.from>=u.display.viewFrom&&h.visible.to<=u.display.viewTo)break}else y&&(h.visible=Vx(u.display,u.doc,k));if(!Qk(u,h))break;Wx(u);var j=sg(u);tg(u),tp(u,j),t3(u,j),h.force=!1}h.signal(u,"update",u),(u.display.viewFrom!=u.display.reportedViewFrom||u.display.viewTo!=u.display.reportedViewTo)&&(h.signal(u,"viewportChange",u,u.display.viewFrom,u.display.viewTo),u.display.reportedViewFrom=u.display.viewFrom,u.display.reportedViewTo=u.display.viewTo)}function Jk(u,h){var k=new Kx(u,h);if(Qk(u,k)){Wx(u),QN(u,k);var y=sg(u);tg(u),tp(u,y),t3(u,y),k.finish()}}function wK(u,h,k){var y=u.display,j=u.options.lineNumbers,D=y.lineDiv,B=D.firstChild;function K(lt){var vt=lt.nextSibling;return p&&_&&u.display.currentWheelTarget==lt?lt.style.display="none":lt.parentNode.removeChild(lt),vt}for(var Q=y.view,ie=y.viewFrom,he=0;he-1&&(Le=!1),SN(u,Ce,ie,k)),Le&&(O(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(Me(u.options,ie)))),B=Ce.node.nextSibling}ie+=Ce.size}for(;B;)B=K(B)}function e3(u){var h=u.gutters.offsetWidth;u.sizer.style.marginLeft=h+"px",gs(u,"gutterChanged",u)}function t3(u,h){u.display.sizer.style.minHeight=h.docHeight+"px",u.display.heightForcer.style.top=h.docHeight+"px",u.display.gutters.style.height=h.docHeight+u.display.barHeight+Nl(u)+"px"}function JN(u){var h=u.display,k=h.view;if(!(!h.alignWidgets&&(!h.gutters.firstChild||!u.options.fixedGutter))){for(var y=Wk(h)-h.scroller.scrollLeft+u.doc.scrollLeft,j=h.gutters.offsetWidth,D=y+"px",B=0;B=105&&(j.wrapper.style.clipPath="inset(0px)"),j.wrapper.setAttribute("translate","no"),c&&d<8&&(j.gutters.style.zIndex=-1,j.scroller.style.paddingRight=0),!p&&!(s&&N)&&(j.scroller.draggable=!0),u&&(u.appendChild?u.appendChild(j.wrapper):u(j.wrapper)),j.viewFrom=j.viewTo=h.first,j.reportedViewFrom=j.reportedViewTo=h.first,j.view=[],j.renderedView=null,j.externalMeasured=null,j.viewOffset=0,j.lastWrapHeight=j.lastWrapWidth=0,j.updateLineNumbers=null,j.nativeBarWidth=j.barHeight=j.barWidth=0,j.scrollbarsClipped=!1,j.lineNumWidth=j.lineNumInnerWidth=j.lineNumChars=null,j.alignWidgets=!1,j.cachedCharWidth=j.cachedTextHeight=j.cachedPaddingH=null,j.maxLine=null,j.maxLineLength=0,j.maxLineChanged=!1,j.wheelDX=j.wheelDY=j.wheelStartX=j.wheelStartY=null,j.shift=!1,j.selForContextMenu=null,j.activeTouch=null,j.gutterSpecs=n3(y.gutters,y.lineNumbers),t9(j),k.init(j)}var Gx=0,kc=null;c?kc=-.53:s?kc=15:m?kc=-.7:g&&(kc=-1/3);function n9(u){var h=u.wheelDeltaX,k=u.wheelDeltaY;return h==null&&u.detail&&u.axis==u.HORIZONTAL_AXIS&&(h=u.detail),k==null&&u.detail&&u.axis==u.VERTICAL_AXIS?k=u.detail:k==null&&(k=u.wheelDelta),{x:h,y:k}}function CK(u){var h=n9(u);return h.x*=kc,h.y*=kc,h}function r9(u,h){m&&b==102&&(u.display.chromeScrollHack==null?u.display.sizer.style.pointerEvents="none":clearTimeout(u.display.chromeScrollHack),u.display.chromeScrollHack=setTimeout(function(){u.display.chromeScrollHack=null,u.display.sizer.style.pointerEvents=""},100));var k=n9(h),y=k.x,j=k.y,D=kc;h.deltaMode===0&&(y=h.deltaX,j=h.deltaY,D=1);var B=u.display,K=B.scroller,Q=K.scrollWidth>K.clientWidth,ie=K.scrollHeight>K.clientHeight;if(y&&Q||j&&ie){if(j&&_&&p){e:for(var he=h.target,Ce=B.view;he!=K;he=he.parentNode)for(var ze=0;ze=0&&He(u,y.to())<=0)return k}return-1};var nr=function(u,h){this.anchor=u,this.head=h};nr.prototype.from=function(){return Mn(this.anchor,this.head)},nr.prototype.to=function(){return zn(this.anchor,this.head)},nr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $i(u,h,k){var y=u&&u.options.selectionsMayTouch,j=h[k];h.sort(function(ze,Le){return He(ze.from(),Le.from())}),k=ce(h,j);for(var D=1;D0:Q>=0){var ie=Mn(K.from(),B.from()),he=zn(K.to(),B.to()),Ce=K.empty()?B.from()==B.head:K.from()==K.head;D<=k&&--k,h.splice(--D,2,new nr(Ce?he:ie,Ce?ie:he))}}return new Mo(h,k)}function Mu(u,h){return new Mo([new nr(u,h||u)],0)}function Du(u){return u.text?_e(u.from.line+u.text.length-1,Ve(u.text).length+(u.text.length==1?u.from.ch:0)):u.to}function s9(u,h){if(He(u,h.from)<0)return u;if(He(u,h.to)<=0)return Du(h);var k=u.line+h.text.length-(h.to.line-h.from.line)-1,y=u.ch;return u.line==h.to.line&&(y+=Du(h).ch-h.to.ch),_e(k,y)}function r3(u,h){for(var k=[],y=0;y1&&u.remove(K.line+1,lt-1),u.insert(K.line+1,zt)}gs(u,"change",u,h)}function Iu(u,h,k){function y(j,D,B){if(j.linked)for(var K=0;K1&&!u.done[u.done.length-2].ranges)return u.done.pop(),Ve(u.done)}function u9(u,h,k,y){var j=u.history;j.undone.length=0;var D=+new Date,B,K;if((j.lastOp==y||j.lastOrigin==h.origin&&h.origin&&(h.origin.charAt(0)=="+"&&j.lastModTime>D-(u.cm?u.cm.options.historyEventDelay:500)||h.origin.charAt(0)=="*"))&&(B=EK(j,j.lastOp==y)))K=Ve(B.changes),He(h.from,h.to)==0&&He(h.from,K.to)==0?K.to=Du(h):B.changes.push(o3(u,h));else{var Q=Ve(j.done);for((!Q||!Q.ranges)&&Zx(u.sel,j.done),B={changes:[o3(u,h)],generation:j.generation},j.done.push(B);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(k),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=D,j.lastOp=j.lastSelOp=y,j.lastOrigin=j.lastSelOrigin=h.origin,K||Se(u,"historyAdded")}function NK(u,h,k,y){var j=h.charAt(0);return j=="*"||j=="+"&&k.ranges.length==y.ranges.length&&k.somethingSelected()==y.somethingSelected()&&new Date-u.history.lastSelTime<=(u.cm?u.cm.options.historyEventDelay:500)}function _K(u,h,k,y){var j=u.history,D=y&&y.origin;k==j.lastSelOp||D&&j.lastSelOrigin==D&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==D||NK(u,D,Ve(j.done),h))?j.done[j.done.length-1]=h:Zx(h,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=D,j.lastSelOp=k,y&&y.clearRedo!==!1&&c9(j.undone)}function Zx(u,h){var k=Ve(h);k&&k.ranges&&k.equals(u)||h.push(u)}function d9(u,h,k,y){var j=h["spans_"+u.id],D=0;u.iter(Math.max(u.first,k),Math.min(u.first+u.size,y),function(B){B.markedSpans&&((j||(j=h["spans_"+u.id]={}))[D]=B.markedSpans),++D})}function TK(u){if(!u)return null;for(var h,k=0;k-1&&(Ve(K)[Ce]=ie[Ce],delete ie[Ce])}}return y}function i3(u,h,k,y){if(y){var j=u.anchor;if(k){var D=He(h,j)<0;D!=He(k,j)<0?(j=h,h=k):D!=He(h,k)<0&&(h=k)}return new nr(j,h)}else return new nr(k||h,h)}function Xx(u,h,k,y,j){j==null&&(j=u.cm&&(u.cm.display.shift||u.extend)),Js(u,new Mo([i3(u.sel.primary(),h,k,j)],0),y)}function h9(u,h,k){for(var y=[],j=u.cm&&(u.cm.display.shift||u.extend),D=0;D=h.ch:K.to>h.ch))){if(j&&(Se(Q,"beforeCursorEnter"),Q.explicitlyCleared))if(D.markedSpans){--B;continue}else break;if(!Q.atomic)continue;if(k){var Ce=Q.find(y<0?1:-1),ze=void 0;if((y<0?he:ie)&&(Ce=y9(u,Ce,-y,Ce&&Ce.line==h.line?D:null)),Ce&&Ce.line==h.line&&(ze=He(Ce,k))&&(y<0?ze<0:ze>0))return rp(u,Ce,h,y,j)}var Le=Q.find(y<0?-1:1);return(y<0?ie:he)&&(Le=y9(u,Le,y,Le.line==h.line?D:null)),Le?rp(u,Le,h,y,j):null}}return h}function Jx(u,h,k,y,j){var D=y||1,B=rp(u,h,k,D,j)||!j&&rp(u,h,k,D,!0)||rp(u,h,k,-D,j)||!j&&rp(u,h,k,-D,!0);return B||(u.cantEdit=!0,_e(u.first,0))}function y9(u,h,k,y){return k<0&&h.ch==0?h.line>u.first?yn(u,_e(h.line-1)):null:k>0&&h.ch==(y||tt(u,h.line)).text.length?h.line=0;--j)k9(u,{from:y[j].from,to:y[j].to,text:j?[""]:h.text,origin:h.origin});else k9(u,h)}}function k9(u,h){if(!(h.text.length==1&&h.text[0]==""&&He(h.from,h.to)==0)){var k=r3(u,h);u9(u,h,k,u.cm?u.cm.curOp.id:NaN),cg(u,h,k,Sl(u,h));var y=[];Iu(u,function(j,D){!D&&ce(y,j.history)==-1&&(E9(j.history,h),y.push(j.history)),cg(j,h,null,Sl(j,h))})}}function ey(u,h,k){var y=u.cm&&u.cm.state.suppressEdits;if(!(y&&!k)){for(var j=u.history,D,B=u.sel,K=h=="undo"?j.done:j.undone,Q=h=="undo"?j.undone:j.done,ie=0;ie=0;--Le){var lt=ze(Le);if(lt)return lt.v}}}}function C9(u,h){if(h!=0&&(u.first+=h,u.sel=new Mo(Ge(u.sel.ranges,function(j){return new nr(_e(j.anchor.line+h,j.anchor.ch),_e(j.head.line+h,j.head.ch))}),u.sel.primIndex),u.cm)){Ma(u.cm,u.first,u.first-h,h);for(var k=u.cm.display,y=k.viewFrom;yu.lastLine())){if(h.from.lineD&&(h={from:h.from,to:_e(D,tt(u,D).text.length),text:[h.text[0]],origin:h.origin}),h.removed=Kt(u,h.from,h.to),k||(k=r3(u,h)),u.cm?DK(u.cm,h,y):a3(u,h,y),Qx(u,k,me),u.cantEdit&&Jx(u,_e(u.firstLine(),0))&&(u.cantEdit=!1)}}function DK(u,h,k){var y=u.doc,j=u.display,D=h.from,B=h.to,K=!1,Q=D.line;u.options.lineWrapping||(Q=oe(Rs(tt(y,D.line))),y.iter(Q,B.line+1,function(Le){if(Le==j.maxLine)return K=!0,!0})),y.sel.contains(h.from,h.to)>-1&&nt(u),a3(y,h,k,BN(u)),u.options.lineWrapping||(y.iter(Q,D.line+h.text.length,function(Le){var lt=ri(Le);lt>j.maxLineLength&&(j.maxLine=Le,j.maxLineLength=lt,j.maxLineChanged=!0,K=!1)}),K&&(u.curOp.updateMaxLine=!0)),vu(y,D.line),og(u,400);var ie=h.text.length-(B.line-D.line)-1;h.full?Ma(u):D.line==B.line&&h.text.length==1&&!o9(u.doc,h)?Tu(u,D.line,"text"):Ma(u,D.line,B.line+1,ie);var he=Pe(u,"changes"),Ce=Pe(u,"change");if(Ce||he){var ze={from:D,to:B,text:h.text,removed:h.removed,origin:h.origin};Ce&&gs(u,"change",u,ze),he&&(u.curOp.changeObjs||(u.curOp.changeObjs=[])).push(ze)}u.display.selForContextMenu=null}function ap(u,h,k,y,j){var D;y||(y=k),He(y,k)<0&&(D=[y,k],k=D[0],y=D[1]),typeof h=="string"&&(h=u.splitLines(h)),sp(u,{from:k,to:y,text:h,origin:j})}function S9(u,h,k,y){k1||!(this.children[0]instanceof dg))){var K=[];this.collapse(K),this.children=[new dg(K)],this.children[0].parent=this}},collapse:function(u){for(var h=0;h50){for(var B=j.lines.length%25+25,K=B;K10);u.parent.maybeSpill()}},iterN:function(u,h,k){for(var y=0;yu.display.maxLineLength&&(u.display.maxLine=ie,u.display.maxLineLength=he,u.display.maxLineChanged=!0)}y!=null&&u&&this.collapsed&&Ma(u,y,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,u&&v9(u.doc)),u&&gs(u,"markerCleared",u,this,y,j),h&&mf(u),this.parent&&this.parent.clear()}},Au.prototype.find=function(u,h){u==null&&this.type=="bookmark"&&(u=1);for(var k,y,j=0;j0||B==0&&D.clearWhenEmpty!==!1)return D;if(D.replacedWith&&(D.collapsed=!0,D.widgetNode=W("span",[D.replacedWith],"CodeMirror-widget"),y.handleMouseEvents||D.widgetNode.setAttribute("cm-ignore-events","true"),y.insertLeft&&(D.widgetNode.insertLeft=!0)),D.collapsed){if(of(u,h.line,h,k,D)||h.line!=k.line&&of(u,k.line,h,k,D))throw new Error("Inserting collapsed marker partially overlapping an existing one");yu()}D.addToHistory&&u9(u,{from:h,to:k,origin:"markText"},u.sel,NaN);var K=h.line,Q=u.cm,ie;if(u.iter(K,k.line+1,function(Ce){Q&&D.collapsed&&!Q.options.lineWrapping&&Rs(Ce)==Q.display.maxLine&&(ie=!0),D.collapsed&&K!=h.line&&vn(Ce,0),wu(Ce,new Li(D,K==h.line?h.ch:null,K==k.line?k.ch:null),u.cm&&u.cm.curOp),++K}),D.collapsed&&u.iter(h.line,k.line+1,function(Ce){Ta(u,Ce)&&vn(Ce,0)}),D.clearOnEnter&&Je(D,"beforeCursorEnter",function(){return D.clear()}),D.readOnly&&(xu(),(u.history.done.length||u.history.undone.length)&&u.clearHistory()),D.collapsed&&(D.id=++_9,D.atomic=!0),Q){if(ie&&(Q.curOp.updateMaxLine=!0),D.collapsed)Ma(Q,h.line,k.line+1);else if(D.className||D.startStyle||D.endStyle||D.css||D.attributes||D.title)for(var he=h.line;he<=k.line;he++)Tu(Q,he,"text");D.atomic&&v9(Q.doc),gs(Q,"markerAdded",Q,D)}return D}var pg=function(u,h){this.markers=u,this.primary=h;for(var k=0;k=0;Q--)sp(this,y[Q]);K?m9(this,K):this.cm&&ep(this.cm)}),undo:xs(function(){ey(this,"undo")}),redo:xs(function(){ey(this,"redo")}),undoSelection:xs(function(){ey(this,"undo",!0)}),redoSelection:xs(function(){ey(this,"redo",!0)}),setExtending:function(u){this.extend=u},getExtending:function(){return this.extend},historySize:function(){for(var u=this.history,h=0,k=0,y=0;y=u.ch)&&h.push(j.marker.parent||j.marker)}return h},findMarks:function(u,h,k){u=yn(this,u),h=yn(this,h);var y=[],j=u.line;return this.iter(u.line,h.line+1,function(D){var B=D.markedSpans;if(B)for(var K=0;K=Q.to||Q.from==null&&j!=u.line||Q.from!=null&&j==h.line&&Q.from>=h.ch)&&(!k||k(Q.marker))&&y.push(Q.marker.parent||Q.marker)}++j}),y},getAllMarks:function(){var u=[];return this.iter(function(h){var k=h.markedSpans;if(k)for(var y=0;yu)return h=u,!0;u-=D,++k}),yn(this,_e(k,h))},indexFromPos:function(u){u=yn(this,u);var h=u.ch;if(u.lineh&&(h=u.from),u.to!=null&&u.to-1){h.state.draggingText(u),setTimeout(function(){return h.display.input.focus()},20);return}try{var he=u.dataTransfer.getData("Text");if(he){var Ce;if(h.state.draggingText&&!h.state.draggingText.copy&&(Ce=h.listSelections()),Qx(h.doc,Mu(k,k)),Ce)for(var ze=0;ze=0;K--)ap(u.doc,"",y[K].from,y[K].to,"+delete");ep(u)})}function c3(u,h,k){var y=Lt(u.text,h+k,k);return y<0||y>u.text.length?null:y}function u3(u,h,k){var y=c3(u,h.ch,k);return y==null?null:new _e(h.line,y,k<0?"after":"before")}function d3(u,h,k,y,j){if(u){h.doc.direction=="rtl"&&(j=-j);var D=Pt(k,h.doc.direction);if(D){var B=j<0?Ve(D):D[0],K=j<0==(B.level==1),Q=K?"after":"before",ie;if(B.level>0||h.doc.direction=="rtl"){var he=Zh(h,k);ie=j<0?k.text.length-1:0;var Ce=_l(h,he,ie).top;ie=Ut(function(ze){return _l(h,he,ze).top==Ce},j<0==(B.level==1)?B.from:B.to-1,ie),Q=="before"&&(ie=c3(k,ie,1))}else ie=j<0?B.to:B.from;return new _e(y,ie,Q)}}return new _e(y,j<0?k.text.length:0,j<0?"before":"after")}function qK(u,h,k,y){var j=Pt(h,u.doc.direction);if(!j)return u3(h,k,y);k.ch>=h.text.length?(k.ch=h.text.length,k.sticky="before"):k.ch<=0&&(k.ch=0,k.sticky="after");var D=$t(j,k.ch,k.sticky),B=j[D];if(u.doc.direction=="ltr"&&B.level%2==0&&(y>0?B.to>k.ch:B.from=B.from&&ze>=he.begin)){var Le=Ce?"before":"after";return new _e(k.line,ze,Le)}}var lt=function(zt,Yt,Ft){for(var Jt=function(yr,ys){return ys?new _e(k.line,K(yr,1),"before"):new _e(k.line,yr,"after")};zt>=0&&zt0==(bn.level!=1),Rn=xn?Ft.begin:K(Ft.end,-1);if(bn.from<=Rn&&Rn0?he.end:K(he.begin,-1);return Nt!=null&&!(y>0&&Nt==h.text.length)&&(vt=lt(y>0?0:j.length-1,y,ie(Nt)),vt)?vt:null}var vg={selectAll:b9,singleSelection:function(u){return u.setSelection(u.getCursor("anchor"),u.getCursor("head"),me)},killLine:function(u){return lp(u,function(h){if(h.empty()){var k=tt(u.doc,h.head.line).text.length;return h.head.ch==k&&h.head.line0)j=new _e(j.line,j.ch+1),u.replaceRange(D.charAt(j.ch-1)+D.charAt(j.ch-2),_e(j.line,j.ch-2),j,"+transpose");else if(j.line>u.doc.first){var B=tt(u.doc,j.line-1).text;B&&(j=new _e(j.line,1),u.replaceRange(D.charAt(0)+u.doc.lineSeparator()+B.charAt(B.length-1),_e(j.line-1,B.length-1),j,"+transpose"))}}k.push(new nr(j,j))}u.setSelections(k)})},newlineAndIndent:function(u){return no(u,function(){for(var h=u.listSelections(),k=h.length-1;k>=0;k--)u.replaceRange(u.doc.lineSeparator(),h[k].anchor,h[k].head,"+input");h=u.listSelections();for(var y=0;yu&&He(h,this.pos)==0&&k==this.button};var yg,bg;function JK(u,h){var k=+new Date;return bg&&bg.compare(k,u,h)?(yg=bg=null,"triple"):yg&&yg.compare(k,u,h)?(bg=new h3(k,u,h),yg=null,"double"):(yg=new h3(k,u,h),bg=null,"single")}function W9(u){var h=this,k=h.display;if(!(De(h,u)||k.activeTouch&&k.input.supportsTouch())){if(k.input.ensurePolled(),k.shift=u.shiftKey,wc(k,u)){p||(k.scroller.draggable=!1,setTimeout(function(){return k.scroller.draggable=!0},100));return}if(!p3(h,u)){var y=uf(h,u),j=bt(u),D=y?JK(y,j):"single";G(h).focus(),j==1&&h.state.selectingText&&h.state.selectingText(u),!(y&&eG(h,j,y,D,u))&&(j==1?y?nG(h,y,D,u):Et(u)==k.scroller&&Ze(u):j==2?(y&&Xx(h.doc,y),setTimeout(function(){return k.input.focus()},20)):j==3&&(A?h.display.input.onContextMenu(u):Gk(h)))}}}function eG(u,h,k,y,j){var D="Click";return y=="double"?D="Double"+D:y=="triple"&&(D="Triple"+D),D=(h==1?"Left":h==2?"Middle":"Right")+D,xg(u,L9(D,j),j,function(B){if(typeof B=="string"&&(B=vg[B]),!B)return!1;var K=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),K=B(u,k)!=pe}finally{u.state.suppressEdits=!1}return K})}function tG(u,h,k){var y=u.getOption("configureMouse"),j=y?y(u,h,k):{};if(j.unit==null){var D=P?k.shiftKey&&k.metaKey:k.altKey;j.unit=D?"rectangle":h=="single"?"char":h=="double"?"word":"line"}return(j.extend==null||u.doc.extend)&&(j.extend=u.doc.extend||k.shiftKey),j.addNew==null&&(j.addNew=_?k.metaKey:k.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(_?k.altKey:k.ctrlKey)),j}function nG(u,h,k,y){c?setTimeout(Z(VN,u),0):u.curOp.focus=J(te(u));var j=tG(u,k,y),D=u.doc.sel,B;u.options.dragDrop&&_t&&!u.isReadOnly()&&k=="single"&&(B=D.contains(h))>-1&&(He((B=D.ranges[B]).from(),h)<0||h.xRel>0)&&(He(B.to(),h)>0||h.xRel<0)?rG(u,y,h,j):sG(u,y,h,j)}function rG(u,h,k,y){var j=u.display,D=!1,B=vs(u,function(ie){p&&(j.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Gk(u)),we(j.wrapper.ownerDocument,"mouseup",B),we(j.wrapper.ownerDocument,"mousemove",K),we(j.scroller,"dragstart",Q),we(j.scroller,"drop",B),D||(Ze(ie),y.addNew||Xx(u.doc,k,null,null,y.extend),p&&!g||c&&d==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),K=function(ie){D=D||Math.abs(h.clientX-ie.clientX)+Math.abs(h.clientY-ie.clientY)>=10},Q=function(){return D=!0};p&&(j.scroller.draggable=!0),u.state.draggingText=B,B.copy=!y.moveOnDrag,Je(j.wrapper.ownerDocument,"mouseup",B),Je(j.wrapper.ownerDocument,"mousemove",K),Je(j.scroller,"dragstart",Q),Je(j.scroller,"drop",B),u.state.delayingBlurEvent=!0,setTimeout(function(){return j.input.focus()},20),j.scroller.dragDrop&&j.scroller.dragDrop()}function V9(u,h,k){if(k=="char")return new nr(h,h);if(k=="word")return u.findWordAt(h);if(k=="line")return new nr(_e(h.line,0),yn(u.doc,_e(h.line+1,0)));var y=k(u,h);return new nr(y.from,y.to)}function sG(u,h,k,y){c&&Gk(u);var j=u.display,D=u.doc;Ze(h);var B,K,Q=D.sel,ie=Q.ranges;if(y.addNew&&!y.extend?(K=D.sel.contains(k),K>-1?B=ie[K]:B=new nr(k,k)):(B=D.sel.primary(),K=D.sel.primIndex),y.unit=="rectangle")y.addNew||(B=new nr(k,k)),k=uf(u,h,!0,!0),K=-1;else{var he=V9(u,k,y.unit);y.extend?B=i3(B,he.anchor,he.head,y.extend):B=he}y.addNew?K==-1?(K=ie.length,Js(D,$i(u,ie.concat([B]),K),{scroll:!1,origin:"*mouse"})):ie.length>1&&ie[K].empty()&&y.unit=="char"&&!y.extend?(Js(D,$i(u,ie.slice(0,K).concat(ie.slice(K+1)),0),{scroll:!1,origin:"*mouse"}),Q=D.sel):l3(D,K,B,be):(K=0,Js(D,new Mo([B],0),be),Q=D.sel);var Ce=k;function ze(Ft){if(He(Ce,Ft)!=0)if(Ce=Ft,y.unit=="rectangle"){for(var Jt=[],bn=u.options.tabSize,xn=se(tt(D,k.line).text,k.ch,bn),Rn=se(tt(D,Ft.line).text,Ft.ch,bn),yr=Math.min(xn,Rn),ys=Math.max(xn,Rn),Lr=Math.min(k.line,Ft.line),ro=Math.min(u.lastLine(),Math.max(k.line,Ft.line));Lr<=ro;Lr++){var Ia=tt(D,Lr).text,rs=We(Ia,yr,bn);yr==ys?Jt.push(new nr(_e(Lr,rs),_e(Lr,rs))):Ia.length>rs&&Jt.push(new nr(_e(Lr,rs),_e(Lr,We(Ia,ys,bn))))}Jt.length||Jt.push(new nr(k,k)),Js(D,$i(u,Q.ranges.slice(0,K).concat(Jt),K),{origin:"*mouse",scroll:!1}),u.scrollIntoView(Ft)}else{var Aa=B,Os=V9(u,Ft,y.unit),ds=Aa.anchor,ss;He(Os.anchor,ds)>0?(ss=Os.head,ds=Mn(Aa.from(),Os.anchor)):(ss=Os.anchor,ds=zn(Aa.to(),Os.head));var Fr=Q.ranges.slice(0);Fr[K]=aG(u,new nr(yn(D,ds),ss)),Js(D,$i(u,Fr,K),be)}}var Le=j.wrapper.getBoundingClientRect(),lt=0;function vt(Ft){var Jt=++lt,bn=uf(u,Ft,!0,y.unit=="rectangle");if(bn)if(He(bn,Ce)!=0){u.curOp.focus=J(te(u)),ze(bn);var xn=Vx(j,D);(bn.line>=xn.to||bn.lineLe.bottom?20:0;Rn&&setTimeout(vs(u,function(){lt==Jt&&(j.scroller.scrollTop+=Rn,vt(Ft))}),50)}}function Nt(Ft){u.state.selectingText=!1,lt=1/0,Ft&&(Ze(Ft),j.input.focus()),we(j.wrapper.ownerDocument,"mousemove",zt),we(j.wrapper.ownerDocument,"mouseup",Yt),D.history.lastSelOrigin=null}var zt=vs(u,function(Ft){Ft.buttons===0||!bt(Ft)?Nt(Ft):vt(Ft)}),Yt=vs(u,Nt);u.state.selectingText=Yt,Je(j.wrapper.ownerDocument,"mousemove",zt),Je(j.wrapper.ownerDocument,"mouseup",Yt)}function aG(u,h){var k=h.anchor,y=h.head,j=tt(u.doc,k.line);if(He(k,y)==0&&k.sticky==y.sticky)return h;var D=Pt(j);if(!D)return h;var B=$t(D,k.ch,k.sticky),K=D[B];if(K.from!=k.ch&&K.to!=k.ch)return h;var Q=B+(K.from==k.ch==(K.level!=1)?0:1);if(Q==0||Q==D.length)return h;var ie;if(y.line!=k.line)ie=(y.line-k.line)*(u.doc.direction=="ltr"?1:-1)>0;else{var he=$t(D,y.ch,y.sticky),Ce=he-B||(y.ch-k.ch)*(K.level==1?-1:1);he==Q-1||he==Q?ie=Ce<0:ie=Ce>0}var ze=D[Q+(ie?-1:0)],Le=ie==(ze.level==1),lt=Le?ze.from:ze.to,vt=Le?"after":"before";return k.ch==lt&&k.sticky==vt?h:new nr(new _e(k.line,lt,vt),y)}function q9(u,h,k,y){var j,D;if(h.touches)j=h.touches[0].clientX,D=h.touches[0].clientY;else try{j=h.clientX,D=h.clientY}catch(ze){return!1}if(j>=Math.floor(u.display.gutters.getBoundingClientRect().right))return!1;y&&Ze(h);var B=u.display,K=B.lineDiv.getBoundingClientRect();if(D>K.bottom||!Pe(u,k))return Oe(h);D-=K.top-B.viewOffset;for(var Q=0;Q=j){var he=fe(u.doc,D),Ce=u.display.gutterSpecs[Q];return Se(u,k,u,he,Ce.className,h),Oe(h)}}}function p3(u,h){return q9(u,h,"gutterClick",!0)}function K9(u,h){wc(u.display,h)||oG(u,h)||De(u,h,"contextmenu")||A||u.display.input.onContextMenu(h)}function oG(u,h){return Pe(u,"gutterContextMenu")?q9(u,h,"gutterContextMenu",!1):!1}function G9(u){u.display.wrapper.className=u.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+u.options.theme.replace(/(^|\s)\s*/g," cm-s-"),eg(u)}var cp={toString:function(){return"CodeMirror.Init"}},Y9={},sy={};function iG(u){var h=u.optionHandlers;function k(y,j,D,B){u.defaults[y]=j,D&&(h[y]=B?function(K,Q,ie){ie!=cp&&D(K,Q,ie)}:D)}u.defineOption=k,u.Init=cp,k("value","",function(y,j){return y.setValue(j)},!0),k("mode",null,function(y,j){y.doc.modeOption=j,s3(y)},!0),k("indentUnit",2,s3,!0),k("indentWithTabs",!1),k("smartIndent",!0),k("tabSize",4,function(y){lg(y),eg(y),Ma(y)},!0),k("lineSeparator",null,function(y,j){if(y.doc.lineSep=j,!!j){var D=[],B=y.doc.first;y.doc.iter(function(Q){for(var ie=0;;){var he=Q.text.indexOf(j,ie);if(he==-1)break;ie=he+j.length,D.push(_e(B,he))}B++});for(var K=D.length-1;K>=0;K--)ap(y.doc,j,D[K],_e(D[K].line,D[K].ch+j.length))}}),k("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(y,j,D){y.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),D!=cp&&y.refresh()}),k("specialCharPlaceholder",Rq,function(y){return y.refresh()},!0),k("electricChars",!0),k("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),k("spellcheck",!1,function(y,j){return y.getInputField().spellcheck=j},!0),k("autocorrect",!1,function(y,j){return y.getInputField().autocorrect=j},!0),k("autocapitalize",!1,function(y,j){return y.getInputField().autocapitalize=j},!0),k("rtlMoveVisually",!I),k("wholeLineUpdateBefore",!0),k("theme","default",function(y){G9(y),ig(y)},!0),k("keyMap","default",function(y,j,D){var B=ny(j),K=D!=cp&&ny(D);K&&K.detach&&K.detach(y,B),B.attach&&B.attach(y,K||null)}),k("extraKeys",null),k("configureMouse",null),k("lineWrapping",!1,cG,!0),k("gutters",[],function(y,j){y.display.gutterSpecs=n3(j,y.options.lineNumbers),ig(y)},!0),k("fixedGutter",!0,function(y,j){y.display.gutters.style.left=j?Wk(y.display)+"px":"0",y.refresh()},!0),k("coverGutterNextToScrollbar",!1,function(y){return tp(y)},!0),k("scrollbarStyle","native",function(y){XN(y),tp(y),y.display.scrollbars.setScrollTop(y.doc.scrollTop),y.display.scrollbars.setScrollLeft(y.doc.scrollLeft)},!0),k("lineNumbers",!1,function(y,j){y.display.gutterSpecs=n3(y.options.gutters,j),ig(y)},!0),k("firstLineNumber",1,ig,!0),k("lineNumberFormatter",function(y){return y},ig,!0),k("showCursorWhenSelecting",!1,tg,!0),k("resetSelectionOnContextMenu",!0),k("lineWiseCopyCut",!0),k("pasteLinesPerSelection",!0),k("selectionsMayTouch",!1),k("readOnly",!1,function(y,j){j=="nocursor"&&(Jh(y),y.display.input.blur()),y.display.input.readOnlyChanged(j)}),k("screenReaderLabel",null,function(y,j){j=j===""?null:j,y.display.input.screenReaderLabelChanged(j)}),k("disableInput",!1,function(y,j){j||y.display.input.reset()},!0),k("dragDrop",!0,lG),k("allowDropFileTypes",null),k("cursorBlinkRate",530),k("cursorScrollMargin",0),k("cursorHeight",1,tg,!0),k("singleCursorHeightPerLine",!0,tg,!0),k("workTime",100),k("workDelay",100),k("flattenSpans",!0,lg,!0),k("addModeClass",!1,lg,!0),k("pollInterval",100),k("undoDepth",200,function(y,j){return y.doc.history.undoDepth=j}),k("historyEventDelay",1250),k("viewportMargin",10,function(y){return y.refresh()},!0),k("maxHighlightLength",1e4,lg,!0),k("moveInputWithCursor",!0,function(y,j){j||y.display.input.resetPosition()}),k("tabindex",null,function(y,j){return y.display.input.getField().tabIndex=j||""}),k("autofocus",null),k("direction","ltr",function(y,j){return y.doc.setDirection(j)},!0),k("phrases",null)}function lG(u,h,k){var y=k&&k!=cp;if(!h!=!y){var j=u.display.dragFunctions,D=h?Je:we;D(u.display.scroller,"dragstart",j.start),D(u.display.scroller,"dragenter",j.enter),D(u.display.scroller,"dragover",j.over),D(u.display.scroller,"dragleave",j.leave),D(u.display.scroller,"drop",j.drop)}}function cG(u){u.options.lineWrapping?(H(u.display.wrapper,"CodeMirror-wrap"),u.display.sizer.style.minWidth="",u.display.sizerWidth=null):(Y(u.display.wrapper,"CodeMirror-wrap"),Z0(u)),Vk(u),Ma(u),eg(u),setTimeout(function(){return tp(u)},100)}function Er(u,h){var k=this;if(!(this instanceof Er))return new Er(u,h);this.options=h=h?le(h):{},le(Y9,h,!1);var y=h.value;typeof y=="string"?y=new Da(y,h.mode,null,h.lineSeparator,h.direction):h.mode&&(y.modeOption=h.mode),this.doc=y;var j=new Er.inputStyles[h.inputStyle](this),D=this.display=new kK(u,y,j,h);D.wrapper.CodeMirror=this,G9(this),h.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),XN(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new de,keySeq:null,specialChars:null},h.autofocus&&!N&&D.input.focus(),c&&d<11&&setTimeout(function(){return k.display.input.reset(!0)},20),uG(this),HK(),pf(this),this.curOp.forceUpdate=!0,i9(this,y),h.autofocus&&!N||this.hasFocus()?setTimeout(function(){k.hasFocus()&&!k.state.focused&&Yk(k)},20):Jh(this);for(var B in sy)sy.hasOwnProperty(B)&&sy[B](this,h[B],cp);e9(this),h.finishInit&&h.finishInit(this);for(var K=0;K20*20}Je(h.scroller,"touchstart",function(Q){if(!De(u,Q)&&!D(Q)&&!p3(u,Q)){h.input.ensurePolled(),clearTimeout(k);var ie=+new Date;h.activeTouch={start:ie,moved:!1,prev:ie-y.end<=300?y:null},Q.touches.length==1&&(h.activeTouch.left=Q.touches[0].pageX,h.activeTouch.top=Q.touches[0].pageY)}}),Je(h.scroller,"touchmove",function(){h.activeTouch&&(h.activeTouch.moved=!0)}),Je(h.scroller,"touchend",function(Q){var ie=h.activeTouch;if(ie&&!wc(h,Q)&&ie.left!=null&&!ie.moved&&new Date-ie.start<300){var he=u.coordsChar(h.activeTouch,"page"),Ce;!ie.prev||B(ie,ie.prev)?Ce=new nr(he,he):!ie.prev.prev||B(ie,ie.prev.prev)?Ce=u.findWordAt(he):Ce=new nr(_e(he.line,0),yn(u.doc,_e(he.line+1,0))),u.setSelection(Ce.anchor,Ce.head),u.focus(),Ze(Q)}j()}),Je(h.scroller,"touchcancel",j),Je(h.scroller,"scroll",function(){h.scroller.clientHeight&&(rg(u,h.scroller.scrollTop),ff(u,h.scroller.scrollLeft,!0),Se(u,"scroll",u))}),Je(h.scroller,"mousewheel",function(Q){return r9(u,Q)}),Je(h.scroller,"DOMMouseScroll",function(Q){return r9(u,Q)}),Je(h.wrapper,"scroll",function(){return h.wrapper.scrollTop=h.wrapper.scrollLeft=0}),h.dragFunctions={enter:function(Q){De(u,Q)||et(Q)},over:function(Q){De(u,Q)||(FK(u,Q),et(Q))},start:function(Q){return zK(u,Q)},drop:vs(u,$K),leave:function(Q){De(u,Q)||M9(u)}};var K=h.input.getField();Je(K,"keyup",function(Q){return B9.call(u,Q)}),Je(K,"keydown",vs(u,H9)),Je(K,"keypress",vs(u,U9)),Je(K,"focus",function(Q){return Yk(u,Q)}),Je(K,"blur",function(Q){return Jh(u,Q)})}var m3=[];Er.defineInitHook=function(u){return m3.push(u)};function wg(u,h,k,y){var j=u.doc,D;k==null&&(k="add"),k=="smart"&&(j.mode.indent?D=ti(u,h).state:k="prev");var B=u.options.tabSize,K=tt(j,h),Q=se(K.text,null,B);K.stateAfter&&(K.stateAfter=null);var ie=K.text.match(/^\s*/)[0],he;if(!y&&!/\S/.test(K.text))he=0,k="not";else if(k=="smart"&&(he=j.mode.indent(D,K.text.slice(ie.length),K.text),he==pe||he>150)){if(!y)return;k="prev"}k=="prev"?h>j.first?he=se(tt(j,h-1).text,null,B):he=0:k=="add"?he=Q+u.options.indentUnit:k=="subtract"?he=Q-u.options.indentUnit:typeof k=="number"&&(he=Q+k),he=Math.max(0,he);var Ce="",ze=0;if(u.options.indentWithTabs)for(var Le=Math.floor(he/B);Le;--Le)ze+=B,Ce+=" ";if(zeB,Q=mn(h),ie=null;if(K&&y.ranges.length>1)if(zi&&zi.text.join("\n")==h){if(y.ranges.length%zi.text.length==0){ie=[];for(var he=0;he=0;ze--){var Le=y.ranges[ze],lt=Le.from(),vt=Le.to();Le.empty()&&(k&&k>0?lt=_e(lt.line,lt.ch-k):u.state.overwrite&&!K?vt=_e(vt.line,Math.min(tt(D,vt.line).text.length,vt.ch+Ve(Q).length)):K&&zi&&zi.lineWise&&zi.text.join("\n")==Q.join("\n")&&(lt=vt=_e(lt.line,0)));var Nt={from:lt,to:vt,text:ie?ie[ze%ie.length]:Q,origin:j||(K?"paste":u.state.cutIncoming>B?"cut":"+input")};sp(u.doc,Nt),gs(u,"inputRead",u,Nt)}h&&!K&&X9(u,h),ep(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Ce),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Z9(u,h){var k=u.clipboardData&&u.clipboardData.getData("Text");if(k)return u.preventDefault(),!h.isReadOnly()&&!h.options.disableInput&&h.hasFocus()&&no(h,function(){return g3(h,k,0,null,"paste")}),!0}function X9(u,h){if(!(!u.options.electricChars||!u.options.smartIndent))for(var k=u.doc.sel,y=k.ranges.length-1;y>=0;y--){var j=k.ranges[y];if(!(j.head.ch>100||y&&k.ranges[y-1].head.line==j.head.line)){var D=u.getModeAt(j.head),B=!1;if(D.electricChars){for(var K=0;K-1){B=wg(u,j.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(tt(u.doc,j.head.line).text.slice(0,j.head.ch))&&(B=wg(u,j.head.line,"smart"));B&&gs(u,"electricInput",u,j.head.line)}}}function Q9(u){for(var h=[],k=[],y=0;yD&&(wg(this,K.head.line,y,!0),D=K.head.line,B==this.doc.sel.primIndex&&ep(this));else{var Q=K.from(),ie=K.to(),he=Math.max(D,Q.line);D=Math.min(this.lastLine(),ie.line-(ie.ch?0:1))+1;for(var Ce=he;Ce0&&l3(this.doc,B,new nr(Q,ze[B].to()),me)}}}),getTokenAt:function(y,j){return cc(this,y,j)},getLineTokens:function(y,j){return cc(this,_e(y),j,!0)},getTokenTypeAt:function(y){y=yn(this.doc,y);var j=oc(this,tt(this.doc,y.line)),D=0,B=(j.length-1)/2,K=y.ch,Q;if(K==0)Q=j[2];else for(;;){var ie=D+B>>1;if((ie?j[ie*2-1]:0)>=K)B=ie;else if(j[ie*2+1]Q&&(y=Q,B=!0),K=tt(this.doc,y)}else K=y;return Fx(this,K,{top:0,left:0},j||"page",D||B).top+(B?this.doc.height-Pa(K):0)},defaultTextHeight:function(){return Xh(this.display)},defaultCharWidth:function(){return Qh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(y,j,D,B,K){var Q=this.display;y=Oi(this,yn(this.doc,y));var ie=y.bottom,he=y.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Q.sizer.appendChild(j),B=="over")ie=y.top;else if(B=="above"||B=="near"){var Ce=Math.max(Q.wrapper.clientHeight,this.doc.height),ze=Math.max(Q.sizer.clientWidth,Q.lineSpace.clientWidth);(B=="above"||y.bottom+j.offsetHeight>Ce)&&y.top>j.offsetHeight?ie=y.top-j.offsetHeight:y.bottom+j.offsetHeight<=Ce&&(ie=y.bottom),he+j.offsetWidth>ze&&(he=ze-j.offsetWidth)}j.style.top=ie+"px",j.style.left=j.style.right="",K=="right"?(he=Q.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(K=="left"?he=0:K=="middle"&&(he=(Q.sizer.clientWidth-j.offsetWidth)/2),j.style.left=he+"px"),D&&lK(this,{left:he,top:ie,right:he+j.offsetWidth,bottom:ie+j.offsetHeight})},triggerOnKeyDown:fa(H9),triggerOnKeyPress:fa(U9),triggerOnKeyUp:B9,triggerOnMouseDown:fa(W9),execCommand:function(y){if(vg.hasOwnProperty(y))return vg[y].call(null,this)},triggerElectric:fa(function(y){X9(this,y)}),findPosH:function(y,j,D,B){var K=1;j<0&&(K=-1,j=-j);for(var Q=yn(this.doc,y),ie=0;ie0&&he(D.charAt(B-1));)--B;for(;K.5||this.options.lineWrapping)&&Vk(this),Se(this,"refresh",this)}),swapDoc:fa(function(y){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),i9(this,y),eg(this),this.display.input.reset(),ng(this,y.scrollLeft,y.scrollTop),this.curOp.forceScroll=!0,gs(this,"swapDoc",this,j),j}),phrase:function(y){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,y)?j[y]:y},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},gt(u),u.registerHelper=function(y,j,D){k.hasOwnProperty(y)||(k[y]=u[y]={_global:[]}),k[y][j]=D},u.registerGlobalHelper=function(y,j,D,B){u.registerHelper(y,j,B),k[y]._global.push({pred:D,val:B})}}function x3(u,h,k,y,j){var D=h,B=k,K=tt(u,h.line),Q=j&&u.direction=="rtl"?-k:k;function ie(){var Yt=h.line+Q;return Yt=u.first+u.size?!1:(h=new _e(Yt,h.ch,h.sticky),K=tt(u,Yt))}function he(Yt){var Ft;if(y=="codepoint"){var Jt=K.text.charCodeAt(h.ch+(k>0?0:-1));if(isNaN(Jt))Ft=null;else{var bn=k>0?Jt>=55296&&Jt<56320:Jt>=56320&&Jt<57343;Ft=new _e(h.line,Math.max(0,Math.min(K.text.length,h.ch+k*(bn?2:1))),-k)}}else j?Ft=qK(u.cm,K,h,k):Ft=u3(K,h,k);if(Ft==null)if(!Yt&&ie())h=d3(j,u.cm,K,h.line,Q);else return!1;else h=Ft;return!0}if(y=="char"||y=="codepoint")he();else if(y=="column")he(!0);else if(y=="word"||y=="group")for(var Ce=null,ze=y=="group",Le=u.cm&&u.cm.getHelper(h,"wordChars"),lt=!0;!(k<0&&!he(!lt));lt=!1){var vt=K.text.charAt(h.ch)||"\n",Nt=ht(vt,Le)?"w":ze&&vt=="\n"?"n":!ze||/\s/.test(vt)?null:"p";if(ze&&!lt&&!Nt&&(Nt="s"),Ce&&Ce!=Nt){k<0&&(k=1,he(),h.sticky="after");break}if(Nt&&(Ce=Nt),k>0&&!he(!lt))break}var zt=Jx(u,h,D,B,!0);return Ct(D,zt)&&(zt.hitSide=!0),zt}function e_(u,h,k,y){var j=u.doc,D=h.left,B;if(y=="page"){var K=Math.min(u.display.wrapper.clientHeight,G(u).innerHeight||j(u).documentElement.clientHeight),Q=Math.max(K-.5*Xh(u.display),3);B=(k>0?h.bottom:h.top)+k*Q}else y=="line"&&(B=k>0?h.bottom+3:h.top-3);for(var ie;ie=Hk(u,D,B),!!ie.outside;){if(k<0?B<=0:B>=j.height){ie.hitSide=!0;break}B+=k*5}return ie}var fr=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};fr.prototype.init=function(u){var h=this,k=this,y=k.cm,j=k.div=u.lineDiv;j.contentEditable=!0,v3(j,y.options.spellcheck,y.options.autocorrect,y.options.autocapitalize);function D(K){for(var Q=K.target;Q;Q=Q.parentNode){if(Q==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Q.className))break}return!1}Je(j,"paste",function(K){!D(K)||De(y,K)||Z9(K,y)||d<=11&&setTimeout(vs(y,function(){return h.updateFromDOM()}),20)}),Je(j,"compositionstart",function(K){h.composing={data:K.data,done:!1}}),Je(j,"compositionupdate",function(K){h.composing||(h.composing={data:K.data,done:!1})}),Je(j,"compositionend",function(K){h.composing&&(K.data!=h.composing.data&&h.readFromDOMSoon(),h.composing.done=!0)}),Je(j,"touchstart",function(){return k.forceCompositionEnd()}),Je(j,"input",function(){h.composing||h.readFromDOMSoon()});function B(K){if(!(!D(K)||De(y,K))){if(y.somethingSelected())ay({lineWise:!1,text:y.getSelections()}),K.type=="cut"&&y.replaceSelection("",null,"cut");else if(y.options.lineWiseCopyCut){var Q=Q9(y);ay({lineWise:!0,text:Q.text}),K.type=="cut"&&y.operation(function(){y.setSelections(Q.ranges,0,me),y.replaceSelection("",null,"cut")})}else return;if(K.clipboardData){K.clipboardData.clearData();var ie=zi.text.join("\n");if(K.clipboardData.setData("Text",ie),K.clipboardData.getData("Text")==ie){K.preventDefault();return}}var he=J9(),Ce=he.firstChild;v3(Ce),y.display.lineSpace.insertBefore(he,y.display.lineSpace.firstChild),Ce.value=zi.text.join("\n");var ze=J(ee(j));q(Ce),setTimeout(function(){y.display.lineSpace.removeChild(he),ze.focus(),ze==j&&k.showPrimarySelection()},50)}}Je(j,"copy",B),Je(j,"cut",B)},fr.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},fr.prototype.prepareSelection=function(){var u=WN(this.cm,!1);return u.focus=J(ee(this.div))==this.div,u},fr.prototype.showSelection=function(u,h){!u||!this.cm.display.view.length||((u.focus||h)&&this.showPrimarySelection(),this.showMultipleSelections(u))},fr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fr.prototype.showPrimarySelection=function(){var u=this.getSelection(),h=this.cm,k=h.doc.sel.primary(),y=k.from(),j=k.to();if(h.display.viewTo==h.display.viewFrom||y.line>=h.display.viewTo||j.line=h.display.viewFrom&&t_(h,y)||{node:K[0].measure.map[2],offset:0},ie=j.lineu.firstLine()&&(y=_e(y.line-1,tt(u.doc,y.line-1).length)),j.ch==tt(u.doc,j.line).text.length&&j.lineh.viewTo-1)return!1;var D,B,K;y.line==h.viewFrom||(D=df(u,y.line))==0?(B=oe(h.view[0].line),K=h.view[0].node):(B=oe(h.view[D].line),K=h.view[D-1].node.nextSibling);var Q=df(u,j.line),ie,he;if(Q==h.view.length-1?(ie=h.viewTo-1,he=h.lineDiv.lastChild):(ie=oe(h.view[Q+1].line)-1,he=h.view[Q+1].node.previousSibling),!K)return!1;for(var Ce=u.doc.splitLines(hG(u,K,he,B,ie)),ze=Kt(u.doc,_e(B,0),_e(ie,tt(u.doc,ie).text.length));Ce.length>1&&ze.length>1;)if(Ve(Ce)==Ve(ze))Ce.pop(),ze.pop(),ie--;else if(Ce[0]==ze[0])Ce.shift(),ze.shift(),B++;else break;for(var Le=0,lt=0,vt=Ce[0],Nt=ze[0],zt=Math.min(vt.length,Nt.length);Ley.ch&&Yt.charCodeAt(Yt.length-lt-1)==Ft.charCodeAt(Ft.length-lt-1);)Le--,lt++;Ce[Ce.length-1]=Yt.slice(0,Yt.length-lt).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(Le).replace(/\u200b+$/,"");var bn=_e(B,Le),xn=_e(ie,ze.length?Ve(ze).length-lt:0);if(Ce.length>1||Ce[0]||He(bn,xn))return ap(u.doc,Ce,bn,xn,"+input"),!0},fr.prototype.ensurePolled=function(){this.forceCompositionEnd()},fr.prototype.reset=function(){this.forceCompositionEnd()},fr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fr.prototype.readFromDOMSoon=function(){var u=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(u.readDOMTimeout=null,u.composing)if(u.composing.done)u.composing=null;else return;u.updateFromDOM()},80))},fr.prototype.updateFromDOM=function(){var u=this;(this.cm.isReadOnly()||!this.pollContent())&&no(this.cm,function(){return Ma(u.cm)})},fr.prototype.setUneditable=function(u){u.contentEditable="false"},fr.prototype.onKeyPress=function(u){u.charCode==0||this.composing||(u.preventDefault(),this.cm.isReadOnly()||vs(this.cm,g3)(this.cm,String.fromCharCode(u.charCode==null?u.keyCode:u.charCode),0))},fr.prototype.readOnlyChanged=function(u){this.div.contentEditable=String(u!="nocursor")},fr.prototype.onContextMenu=function(){},fr.prototype.resetPosition=function(){},fr.prototype.needsContentAttribute=!0;function t_(u,h){var k=$k(u,h.line);if(!k||k.hidden)return null;var y=tt(u.doc,h.line),j=PN(k,y,h.line),D=Pt(y,u.doc.direction),B="left";if(D){var K=$t(D,h.ch);B=K%2?"right":"left"}var Q=IN(j.map,h.ch,B);return Q.offset=Q.collapse=="right"?Q.end:Q.start,Q}function fG(u){for(var h=u;h;h=h.parentNode)if(/CodeMirror-gutter-wrapper/.test(h.className))return!0;return!1}function up(u,h){return h&&(u.bad=!0),u}function hG(u,h,k,y,j){var D="",B=!1,K=u.doc.lineSeparator(),Q=!1;function ie(Le){return function(lt){return lt.id==Le}}function he(){B&&(D+=K,Q&&(D+=K),B=Q=!1)}function Ce(Le){Le&&(he(),D+=Le)}function ze(Le){if(Le.nodeType==1){var lt=Le.getAttribute("cm-text");if(lt){Ce(lt);return}var vt=Le.getAttribute("cm-marker"),Nt;if(vt){var zt=u.findMarks(_e(y,0),_e(j+1,0),ie(+vt));zt.length&&(Nt=zt[0].find(0))&&Ce(Kt(u.doc,Nt.from,Nt.to).join(K));return}if(Le.getAttribute("contenteditable")=="false")return;var Yt=/^(pre|div|p|li|table|br)$/i.test(Le.nodeName);if(!/^br$/i.test(Le.nodeName)&&Le.textContent.length==0)return;Yt&&he();for(var Ft=0;Ft=9&&h.hasSelection&&(h.hasSelection=null),k.poll()}),Je(j,"paste",function(B){De(y,B)||Z9(B,y)||(y.state.pasteIncoming=+new Date,k.fastPoll())});function D(B){if(!De(y,B)){if(y.somethingSelected())ay({lineWise:!1,text:y.getSelections()});else if(y.options.lineWiseCopyCut){var K=Q9(y);ay({lineWise:!0,text:K.text}),B.type=="cut"?y.setSelections(K.ranges,null,me):(k.prevInput="",j.value=K.text.join("\n"),q(j))}else return;B.type=="cut"&&(y.state.cutIncoming=+new Date)}}Je(j,"cut",D),Je(j,"copy",D),Je(u.scroller,"paste",function(B){if(!(wc(u,B)||De(y,B))){if(!j.dispatchEvent){y.state.pasteIncoming=+new Date,k.focus();return}var K=new Event("paste");K.clipboardData=B.clipboardData,j.dispatchEvent(K)}}),Je(u.lineSpace,"selectstart",function(B){wc(u,B)||Ze(B)}),Je(j,"compositionstart",function(){var B=y.getCursor("from");k.composing&&k.composing.range.clear(),k.composing={start:B,range:y.markText(B,y.getCursor("to"),{className:"CodeMirror-composing"})}}),Je(j,"compositionend",function(){k.composing&&(k.poll(),k.composing.range.clear(),k.composing=null)})},Zr.prototype.createField=function(u){this.wrapper=J9(),this.textarea=this.wrapper.firstChild;var h=this.cm.options;v3(this.textarea,h.spellcheck,h.autocorrect,h.autocapitalize)},Zr.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var u=this.cm,h=u.display,k=u.doc,y=WN(u);if(u.options.moveInputWithCursor){var j=Oi(u,k.sel.primary().head,"div"),D=h.wrapper.getBoundingClientRect(),B=h.lineDiv.getBoundingClientRect();y.teTop=Math.max(0,Math.min(h.wrapper.clientHeight-10,j.top+B.top-D.top)),y.teLeft=Math.max(0,Math.min(h.wrapper.clientWidth-10,j.left+B.left-D.left))}return y},Zr.prototype.showSelection=function(u){var h=this.cm,k=h.display;$(k.cursorDiv,u.cursors),$(k.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Zr.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var h=this.cm;if(this.resetting=!0,h.somethingSelected()){this.prevInput="";var k=h.getSelection();this.textarea.value=k,h.state.focused&&q(this.textarea),c&&d>=9&&(this.hasSelection=k)}else u||(this.prevInput=this.textarea.value="",c&&d>=9&&(this.hasSelection=null));this.resetting=!1}},Zr.prototype.getField=function(){return this.textarea},Zr.prototype.supportsTouch=function(){return!1},Zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||J(ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(u){}},Zr.prototype.blur=function(){this.textarea.blur()},Zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zr.prototype.receivedFocus=function(){this.slowPoll()},Zr.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Zr.prototype.fastPoll=function(){var u=!1,h=this;h.pollingFast=!0;function k(){var y=h.poll();!y&&!u?(u=!0,h.polling.set(60,k)):(h.pollingFast=!1,h.slowPoll())}h.polling.set(20,k)},Zr.prototype.poll=function(){var u=this,h=this.cm,k=this.textarea,y=this.prevInput;if(this.contextMenuPending||this.resetting||!h.state.focused||hn(k)&&!y&&!this.composing||h.isReadOnly()||h.options.disableInput||h.state.keySeq)return!1;var j=k.value;if(j==y&&!h.somethingSelected())return!1;if(c&&d>=9&&this.hasSelection===j||_&&/[\uf700-\uf7ff]/.test(j))return h.display.input.reset(),!1;if(h.doc.sel==h.display.selForContextMenu){var D=j.charCodeAt(0);if(D==8203&&!y&&(y="​"),D==8666)return this.reset(),this.cm.execCommand("undo")}for(var B=0,K=Math.min(y.length,j.length);B1e3||j.indexOf("\n")>-1?k.value=u.prevInput="":u.prevInput=j,u.composing&&(u.composing.range.clear(),u.composing.range=h.markText(u.composing.start,h.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zr.prototype.onKeyPress=function(){c&&d>=9&&(this.hasSelection=null),this.fastPoll()},Zr.prototype.onContextMenu=function(u){var h=this,k=h.cm,y=k.display,j=h.textarea;h.contextMenuPending&&h.contextMenuPending();var D=uf(k,u),B=y.scroller.scrollTop;if(!D||C)return;var K=k.options.resetSelectionOnContextMenu;K&&k.doc.sel.contains(D)==-1&&vs(k,Js)(k.doc,Mu(D),me);var Q=j.style.cssText,ie=h.wrapper.style.cssText,he=h.wrapper.offsetParent.getBoundingClientRect();h.wrapper.style.cssText="position: static",j.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(u.clientY-he.top-5)+"px; left: "+(u.clientX-he.left-5)+"px;\n z-index: 1000; background: "+(c?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var Ce;p&&(Ce=j.ownerDocument.defaultView.scrollY),y.input.focus(),p&&j.ownerDocument.defaultView.scrollTo(null,Ce),y.input.reset(),k.somethingSelected()||(j.value=h.prevInput=" "),h.contextMenuPending=Le,y.selForContextMenu=k.doc.sel,clearTimeout(y.detectingSelectAll);function ze(){if(j.selectionStart!=null){var vt=k.somethingSelected(),Nt="​"+(vt?j.value:"");j.value="⇚",j.value=Nt,h.prevInput=vt?"":"​",j.selectionStart=1,j.selectionEnd=Nt.length,y.selForContextMenu=k.doc.sel}}function Le(){if(h.contextMenuPending==Le&&(h.contextMenuPending=!1,h.wrapper.style.cssText=ie,j.style.cssText=Q,c&&d<9&&y.scrollbars.setScrollTop(y.scroller.scrollTop=B),j.selectionStart!=null)){(!c||c&&d<9)&&ze();var vt=0,Nt=function(){y.selForContextMenu==k.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&h.prevInput=="​"?vs(k,b9)(k):vt++<10?y.detectingSelectAll=setTimeout(Nt,500):(y.selForContextMenu=null,y.input.reset())};y.detectingSelectAll=setTimeout(Nt,200)}}if(c&&d>=9&&ze(),A){et(u);var lt=function(){we(window,"mouseup",lt),setTimeout(Le,20)};Je(window,"mouseup",lt)}else setTimeout(Le,50)},Zr.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Zr.prototype.setUneditable=function(){},Zr.prototype.needsContentAttribute=!1;function mG(u,h){if(h=h?le(h):{},h.value=u.value,!h.tabindex&&u.tabIndex&&(h.tabindex=u.tabIndex),!h.placeholder&&u.placeholder&&(h.placeholder=u.placeholder),h.autofocus==null){var k=J(ee(u));h.autofocus=k==u||u.getAttribute("autofocus")!=null&&k==document.body}function y(){u.value=K.getValue()}var j;if(u.form&&(Je(u.form,"submit",y),!h.leaveSubmitMethodAlone)){var D=u.form;j=D.submit;try{var B=D.submit=function(){y(),D.submit=j,D.submit(),D.submit=B}}catch(Q){}}h.finishInit=function(Q){Q.save=y,Q.getTextArea=function(){return u},Q.toTextArea=function(){Q.toTextArea=isNaN,y(),u.parentNode.removeChild(Q.getWrapperElement()),u.style.display="",u.form&&(we(u.form,"submit",y),!h.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=j))}},u.style.display="none";var K=Er(function(Q){return u.parentNode.insertBefore(Q,u.nextSibling)},h);return K}function gG(u){u.off=we,u.on=Je,u.wheelEventPixels=CK,u.Doc=Da,u.splitLines=mn,u.countColumn=se,u.findColumn=We,u.isWordChar=$e,u.Pass=pe,u.signal=Se,u.Line=si,u.changeEnd=Du,u.scrollbarModel=ZN,u.Pos=_e,u.cmpPos=He,u.modes=pn,u.mimeModes=rn,u.resolveMode=Ye,u.getMode=dt,u.modeExtensions=mt,u.extendMode=xt,u.copyState=It,u.startState=Ht,u.innerMode=At,u.commands=vg,u.keyMap=Cc,u.keyName=R9,u.isModifierKey=A9,u.lookupKey=ip,u.normalizeKeyMap=VK,u.StringStream=Bt,u.SharedTextMarker=pg,u.TextMarker=Au,u.LineWidget=hg,u.e_preventDefault=Ze,u.e_stopPropagation=Re,u.e_stop=et,u.addClass=H,u.contains=U,u.rmClass=Y,u.keyNames=Lu}iG(Er),dG(Er);var vG="iter insert remove copy getEditor constructor".split(" ");for(var iy in Da.prototype)Da.prototype.hasOwnProperty(iy)&&ce(vG,iy)<0&&(Er.prototype[iy]=function(u){return function(){return u.apply(this.doc,arguments)}}(Da.prototype[iy]));return gt(Da),Er.inputStyles={textarea:Zr,contenteditable:fr},Er.defineMode=function(u){!Er.defaults.mode&&u!="null"&&(Er.defaults.mode=u),ct.apply(this,arguments)},Er.defineMIME=xe,Er.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),Er.defineMIME("text/plain","null"),Er.defineExtension=function(u,h){Er.prototype[u]=h},Er.defineDocExtension=function(u,h){Da.prototype[u]=h},Er.fromTextArea=mG,gG(Er),Er.version="5.65.16",Er})})(qU);var hu=qU.exports;const F1=cu(hu),e2e=({prefix:t="cm-",isWrapped:e=!1,isDark:n,isLargeView:r,isCommand:s,webRequestMethod:a,autoHideScrollbar:i,searchTerm:l,maxHeight:c,isShowMore:d=!1,language:p,value:f})=>{var m=sn(1);try{const[b,C]=v.useState([]),[g,w]=v.useState(!1),{t:x}=Gt(),S=it("html"),E=v.useRef([]),N=it("");return v.useEffect(()=>{p==="markdown"&&window.markdown.ready.then(_=>{try{const P=_.parse(f);N.value=Th.sanitize(P,{USE_PROFILES:{html:!0}})}catch(P){N.value=Th.sanitize(f,{USE_PROFILES:{html:!0}})}})},[f]),v.useEffect(()=>{ge(void 0,null,function*(){const P=F1.findModeByName(p);try{P&&P.mode&&(P.mode==="dart"&&(yield ke(()=>import("./clike-sVYb-QDY.js").then(I=>I.c),[])),yield t2e("codemirror/mode/".concat(P.mode,"/").concat(P.mode))),w(!0)}catch(I){console.error("Error loading CodeMirror mode:",I),w(!1)}})},[p]),v.useEffect(()=>{if(!g)return;const _=[];let P=0;const I=T=>{var O;let L="",A=null;const z=($,M)=>{_.push(o.jsx("span",{className:M?"".concat(t).concat(M):"",children:$},P++))},Y=((O=F1.findModeByName(p))==null?void 0:O.mime)||"text/plain";if(p==="json")try{T=JSON.stringify(JSON.parse(T),null,2)}catch($){}F1.runMode(T,Y,($,M)=>{A===M?(L+=$,A=M):(L&&z(L,A),L=$,A=M)}),z(L,A)};if(l&&l.length>1){const T=mz(l),L=new RegExp("(".concat(T,")"),"gi"),A=f.split(L);E.current=[],A.forEach(z=>{if(z.toLowerCase()===l.toLowerCase()){const Y=v.createRef();E.current.push(Y),_.push(o.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:ml(Y),children:z},"found-".concat(P++)))}else I(z)})}else I(f);C(_)},[g,p,t,l,f]),v.useEffect(()=>{var _;E.current.length>0&&((_=E.current[0].current)==null||_.scrollIntoView({behavior:"smooth",block:"center"}))},[b]),g?o.jsxs(ne,{className:"relative",children:[o.jsx(Nh,{className:"".concat(d?"code-scroll-x pb-2":""),options:{overflow:{x:d?"scroll":"hidden",y:"scroll"},scrollbars:{theme:n?"os-theme-light":"os-theme-dark",autoHide:i?"move":"never"}},style:{maxHeight:c||(r?"calc(100vh - 250px)":d?200:120),maxWidth:"100%"},children:!N.value||S.value==="markdown"?o.jsxs("code",{className:"".concat(e?"whitespace-pre-wrap":"whitespace-pre"," !bg-transparent ").concat(n?"code-is-dark":"code-is-light"),children:[s&&o.jsx("span",{className:"mr-1 px-1 bg-gray-100 dark:bg-gray-800 text-slate-400 dark:text-slate-200",children:">_"}),a&&o.jsx("span",{className:"mr-1 px-1 bg-gray-100 text-slate-400",children:a}),b,!d&&o.jsx("span",{className:"select-none",children:"..."})]}):o.jsx("div",{dangerouslySetInnerHTML:{__html:N.value},className:"note-content"})}),N.value&&o.jsx(pl,{className:"flex flex-row absolute top-0 right-0 z-100 select-none",value:S.value,onValueChange:_=>{S.value=_==="markdown"?"markdown":"html"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900 opacity-60 hover:opacity-100 animate-in fade-in",children:[o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:"HTML"}),o.jsx(jr,{value:"markdown",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:"Markdown"})]})})]}):null}finally{m.f()}},Ca=v.memo(e2e);function t2e(t){switch(t){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return ke(()=>import("./apl-DPc8-0kw.js").then(e=>e.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return ke(()=>import("./asciiarmor-4dWN3q2R.js").then(e=>e.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return ke(()=>import("./asn.1-DpZucftO.js").then(e=>e.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return ke(()=>import("./asterisk-BqfbvXfk.js").then(e=>e.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return ke(()=>import("./brainfuck-4gkQrtps.js").then(e=>e.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return ke(()=>import("./clike-sVYb-QDY.js").then(e=>e.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return ke(()=>import("./clojure-_p1sPkR2.js").then(e=>e.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return ke(()=>import("./cmake-DHzx6wpn.js").then(e=>e.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return ke(()=>import("./cobol-CMUPkVPk.js").then(e=>e.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return ke(()=>import("./coffeescript-DBSS_8nW.js").then(e=>e.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return ke(()=>import("./commonlisp-B_RZ0L8A.js").then(e=>e.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return ke(()=>import("./crystal-DFfCpls_.js").then(e=>e.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return ke(()=>import("./css-DjQyQoVX.js").then(e=>e.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return ke(()=>import("./cypher-B7-rmFXs.js").then(e=>e.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return ke(()=>import("./d-0fwle5r1.js").then(e=>e.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return ke(()=>import("./dart-BmTPStMN.js").then(e=>e.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return ke(()=>import("./diff-BK1zMhyk.js").then(e=>e.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return ke(()=>import("./django-zZkj-Hqi.js").then(e=>e.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return ke(()=>import("./dockerfile-C1rxoPFN.js").then(e=>e.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return ke(()=>import("./dtd-DbN8nk9s.js").then(e=>e.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return ke(()=>import("./dylan-CaT5sunF.js").then(e=>e.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return ke(()=>import("./ebnf-t_2f6tWn.js").then(e=>e.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return ke(()=>import("./ecl-CUfKsVWv.js").then(e=>e.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return ke(()=>import("./eiffel-Dke9VK8D.js").then(e=>e.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return ke(()=>import("./elm-_2cYor_-.js").then(e=>e.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return ke(()=>import("./erlang-DlGJpPOA.js").then(e=>e.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return ke(()=>import("./factor-Du1swcsl.js").then(e=>e.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return ke(()=>import("./fcl-7ZBgVnY8.js").then(e=>e.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return ke(()=>import("./forth-wn3wzAUB.js").then(e=>e.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return ke(()=>import("./fortran-ve-4AZ2-.js").then(e=>e.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return ke(()=>import("./gas-DtawV3pS.js").then(e=>e.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return ke(()=>import("./gfm-CjkhhYnD.js").then(e=>e.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return ke(()=>import("./gherkin-Da6_ljSx.js").then(e=>e.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return ke(()=>import("./go-Dgi7Lbsk.js").then(e=>e.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return ke(()=>import("./groovy-BCKYlnUy.js").then(e=>e.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return ke(()=>import("./haml-C5Q82PRH.js").then(e=>e.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return ke(()=>import("./handlebars-Ccn22PqS.js").then(e=>e.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return ke(()=>import("./haskell-WHZByqiW.js").then(e=>e.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return ke(()=>import("./haskell-literate-CnpdECF_.js").then(e=>e.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return ke(()=>import("./haxe-QFJb03Ax.js").then(e=>e.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return ke(()=>import("./htmlembedded-BowV9kW5.js").then(e=>e.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return ke(()=>import("./htmlmixed-CnSFGeVC.js").then(e=>e.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return ke(()=>import("./http-CaRpA_in.js").then(e=>e.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return ke(()=>import("./idl-5bPmP5bV.js").then(e=>e.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return ke(()=>Promise.resolve().then(()=>JU),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return ke(()=>import("./jinja2-ChULB2Fk.js").then(e=>e.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return ke(()=>import("./jsx-Dgyo4MRd.js").then(e=>e.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return ke(()=>import("./julia-zuaQ18y_.js").then(e=>e.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return ke(()=>import("./livescript-Cdi6oIhP.js").then(e=>e.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return ke(()=>import("./lua-nnFKfH7P.js").then(e=>e.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return ke(()=>import("./markdown-DpnrNzok.js").then(e=>e.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return ke(()=>import("./mathematica-hWuwYCTp.js").then(e=>e.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return ke(()=>import("./mbox-B_c5i4tT.js").then(e=>e.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return ke(()=>import("./mirc-Bo5BSnbu.js").then(e=>e.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return ke(()=>import("./mllike-v65ZXsXL.js").then(e=>e.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return ke(()=>import("./modelica-lS_WypKi.js").then(e=>e.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return ke(()=>import("./mscgen-B_GzFF_Z.js").then(e=>e.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return ke(()=>import("./mumps-DMUKVayQ.js").then(e=>e.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return ke(()=>import("./nginx-CffsXSm0.js").then(e=>e.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return ke(()=>import("./nsis-Dt-oCaGG.js").then(e=>e.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return ke(()=>import("./ntriples-DLcALhbn.js").then(e=>e.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return ke(()=>import("./octave-imH2yerB.js").then(e=>e.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return ke(()=>import("./oz-DI7An-ct.js").then(e=>e.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return ke(()=>import("./pascal-BjHxOUZ0.js").then(e=>e.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return ke(()=>import("./pegjs-Cgw_0Smi.js").then(e=>e.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return ke(()=>import("./perl-m4lN82wh.js").then(e=>e.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return ke(()=>import("./php-P11_atJ4.js").then(e=>e.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return ke(()=>import("./pig-DvZFIZiC.js").then(e=>e.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return ke(()=>import("./powershell-DLyBGlUV.js").then(e=>e.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return ke(()=>import("./properties-Bs9Ekzv_.js").then(e=>e.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return ke(()=>import("./protobuf-D7aM91TC.js").then(e=>e.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return ke(()=>import("./pug-Bb9DWsBH.js").then(e=>e.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return ke(()=>import("./puppet-BwYp0v8r.js").then(e=>e.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return ke(()=>import("./python-Dj4em9Dm.js").then(e=>e.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return ke(()=>import("./q-CVjXuXgv.js").then(e=>e.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return ke(()=>import("./r-CfIsJawz.js").then(e=>e.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return ke(()=>import("./rpm-O5fC39Z0.js").then(e=>e.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return ke(()=>import("./rst-CyVqi5D5.js").then(e=>e.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return ke(()=>import("./ruby-D5w_YFnv.js").then(e=>e.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return ke(()=>import("./rust--P7FyHZ0.js").then(e=>e.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return ke(()=>import("./sas-C058GQZJ.js").then(e=>e.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return ke(()=>import("./sass-NOE7V4J8.js").then(e=>e.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return ke(()=>import("./scheme-CCKduSqe.js").then(e=>e.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return ke(()=>import("./shell-BKUVH7-H.js").then(e=>e.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return ke(()=>import("./sieve-Chdq9iGs.js").then(e=>e.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return ke(()=>import("./slim-DrhHX8Fp.js").then(e=>e.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return ke(()=>import("./smalltalk-BtLZNwU-.js").then(e=>e.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return ke(()=>import("./smarty-D0_e_fu2.js").then(e=>e.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return ke(()=>import("./solr-TffWdyfX.js").then(e=>e.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return ke(()=>import("./soy-CaLVNzhZ.js").then(e=>e.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return ke(()=>import("./sparql-J2HZEfJm.js").then(e=>e.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return ke(()=>import("./spreadsheet-De_UeHev.js").then(e=>e.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return ke(()=>import("./sql-3T6ibqDq.js").then(e=>e.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return ke(()=>import("./stex-DSKMaE3f.js").then(e=>e.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return ke(()=>import("./stylus-DWX0hVte.js").then(e=>e.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return ke(()=>import("./swift-zp1xtzap.js").then(e=>e.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return ke(()=>import("./tcl-6Xgq87Zw.js").then(e=>e.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return ke(()=>import("./textile-B2k0xri9.js").then(e=>e.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return ke(()=>import("./tiddlywiki-CEI5uSZ_.js").then(e=>e.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return ke(()=>import("./tiki-C91OnUZ5.js").then(e=>e.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return ke(()=>import("./toml-Czp5aboK.js").then(e=>e.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return ke(()=>import("./tornado-C7GjWIPK.js").then(e=>e.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return ke(()=>import("./troff-BxVgEYLN.js").then(e=>e.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return ke(()=>import("./ttcn-C8KYqKVj.js").then(e=>e.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return ke(()=>import("./ttcn-cfg-DZ-9-vM3.js").then(e=>e.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return ke(()=>import("./turtle-CJGN0gCa.js").then(e=>e.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return ke(()=>import("./twig-CYDhqQXR.js").then(e=>e.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return ke(()=>import("./vb-j42w1Tl7.js").then(e=>e.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return ke(()=>import("./vbscript-BsewLBA_.js").then(e=>e.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return ke(()=>import("./velocity-Psz-M91k.js").then(e=>e.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return ke(()=>import("./verilog-934pOG4C.js").then(e=>e.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return ke(()=>import("./vhdl-DT6DHhYu.js").then(e=>e.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return ke(()=>import("./vue-CTgTb5mC.js").then(e=>e.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return ke(()=>import("./wast-C0T_jfne.js").then(e=>e.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return ke(()=>import("./webidl-q-n5uYHd.js").then(e=>e.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return ke(()=>Promise.resolve().then(()=>tW),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return ke(()=>import("./xquery-DdKRFITW.js").then(e=>e.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return ke(()=>import("./yacas-A827DJ-h.js").then(e=>e.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return ke(()=>import("./yaml-C7gffGpj.js").then(e=>e.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return ke(()=>import("./yaml-frontmatter-dNkK8CMx.js").then(e=>e.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return ke(()=>import("./z80-CAimCid_.js").then(e=>e.z),[]);default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}const Bb=t=>{if(t){const e=t.replace(/\D/g,"").match(/(\d{0,4})(\d{0,4})(\d{0,4})(\d{0,4})/);return e&&e.length>1?e[2]?"".concat(e[1]," ").concat(e[2]).concat("".concat(e[3]?" ".concat(e[3]):"")).concat("".concat(e[4]?" ".concat(e[4]):"")):e[1]:t}},XD=t=>{var e;return t&&((e=Bb(t))!=null?e:"").replace(/\d(?=(?:\D*\d){4})/g,"•")},Px=v.forwardRef((E,S)=>{var N=E,{small:t,placeholder:e,label:n,name:r="",autoFocus:s=!1,required:a,ccNumber:i,readOnly:l,onInputBlur:c,showHideCCNumber:d=!1,tooltipContent:p,tooltip:f,prefix:m,error:b,props:C,className:g,classNameInput:w}=N,x=Ne(N,["small","placeholder","label","name","autoFocus","required","ccNumber","readOnly","onInputBlur","showHideCCNumber","tooltipContent","tooltip","prefix","error","props","className","classNameInput"]);const _=v.useRef(null),[P,I]=v.useState(!1),[T,L]=v.useState(i);v.useImperativeHandle(S,()=>_.current);const A=()=>{var O;if(!_.current||!_.current.value)return;const z=(O=Bb(_.current.value))!=null?O:"",Y=z.replace(/(\D)/g,"");_.current.value!==z&&(_.current.value=z),L(Y)};return v.useEffect(()=>{var z;if(_.current&&P){const Y=(z=Bb(T))!=null?z:"";_.current.value=Y}},[T]),v.useEffect(()=>{var z,Y;P&&_.current&&T&&(_.current.value=(z=Bb(T))!=null?z:""),!P&&_.current&&(_.current.value=(Y=XD(T))!=null?Y:"")},[P]),v.useEffect(()=>{_.current&&s&&setTimeout(()=>{var z;(z=_.current)==null||z.focus()},200)},[s]),o.jsxs("div",ae(R({className:Pn("w-full",g)},C),{children:[n&&o.jsx(_7,{label:n,required:a,tooltipContent:p,tooltip:f,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),o.jsxs("div",{className:"relative",children:[m?o.jsx("span",{className:"text-grey-40 mr-2xsmall",children:m}):null,o.jsx("input",R({className:Pn("bg-grey-5 border-gray-20 px-small py-xsmall rounded rounded-rounded flex w-full items-center border","focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500","remove-number-spinner px-3 leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",{"focus:ring-red-500 focus:border-red-500 border-red-400 dark:focus:ring-red-500 dark:focus:border-red-500 dark:border-red-400":b},t?"h-8":"h-10",{"!pr-8":d},{"text-small":t,"pt-[1px]":t},w),ref:_,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:"text",name:r,defaultValue:XD(i),placeholder:e||"".concat(n,"...")||"",onChange:A,onFocus:()=>{l||I(!0)},onBlur:()=>{c&&T&&c(T.trim().replaceAll(" ",""))}},x)),o.jsx("button",{className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{I(z=>!z)},children:P?o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:"currentColor",fillRule:"evenodd"})}):o.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:o.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd"})})})]}),b&&o.jsx("div",{className:Pn("text-sm animate fade-in text-red-400",g),children:o.jsx("p",{children:b})})]}))});Px.displayName="InputCreditCardField";const Vg=t=>{var e=sn(1);try{const n=Te(13),{id:r,isCopiedOrPasted:s,pastedItemCountDown:a,isCopied:i,pastedText:l,copyOrPasteFieldId:c}=t,{t:d}=Gt();if(c.value!==r||!s)return null;let p;if(a){if(a>0){let b;n[7]!==a||n[8]!==d?(b=d("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:a}),n[7]=a,n[8]=d,n[9]=b):b=n[9],p=b}}else{let b;n[0]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(en,{size:14,className:"mr-1"}),n[0]=b):b=n[0];let C;n[1]!==i||n[2]!==d||n[3]!==l?(C=i?d("Copied",{ns:"common"}):l?d("Pasted",{ns:"common"}):"",n[1]=i,n[2]=d,n[3]=l,n[4]=C):C=n[4];let g;n[5]!==C?(g=o.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white pr-1.5 py-0",children:[b,C]}),n[5]=C,n[6]=g):g=n[6],p=g}const f="".concat(a?"ml-1 bg-green-700 dark:bg-green-800 dark:text-white !px-2":"bg-green-700 dark:bg-green-800 dark:text-white"," fade-in-animation py-[2px] whitespace-nowrap");let m;return n[10]!==f||n[11]!==p?(m=o.jsx(ne,{className:"w-full h-full border border-green-700 bg-green-100/80 dark:bg-green-800 absolute right-0 top-0 flex items-center justify-center pointer-events-none px-2 !rounded-md z-100 animate-in fade-in transition-opacity",children:o.jsx(St,{className:f,children:p})}),n[10]=f,n[11]=p,n[12]=m):m=n[12],m}finally{e.f()}},QD={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"};function KU({clipId:t,formTemplateOptions:e}){var r,s;var n=sn(1);try{const{t:a}=Gt(),[i,l]=D7({}),[c,d,p]=I7({}),{updateItemById:f}=bl(),m=it(!1),b=it(null),C=it({templateOptions:[],formOptions:{openUrl:null,fields:[]}});v.useEffect(()=>{if(e)try{C.value=JSON.parse(e)}catch(w){console.error(w)}},[e]),v.useEffect(()=>{m.value&&setTimeout(()=>{m.value=!1},1e3)},[m.value]);const g=!!(i||c);return o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"select-none mb-2",children:[C.value.formOptions.openUrl!=null&&o.jsxs(ve,{className:"text-normal w-full gap-2 py-0.5 mb-1 ".concat(C.value.formOptions.isOpenUrlDisabled?"bg-gray-100 dark:bg-gray-900 opacity-70":""),children:[C.value.formOptions.isOpenUrlDisabled?o.jsx(o.Fragment,{children:o.jsxs(re,{className:"!font-semibold pointer-events-none text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-500 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md line-through gap-1",children:[a("Open",{ns:"common"}),o.jsx("span",{className:"overflow-hidden text-ellipsis p-1",children:Ir(C.value.formOptions.openUrl)})]})}):o.jsx(o.Fragment,{children:o.jsxs(re,{className:"!font-semibold text-slate-500 dark:text-slate-200 border dark:bg-slate-700/80 group hover:text-blue-700 dark:hover:text-blue-400 flex items-center bg-gray-200 !text-xs px-2 py-1 rounded-md gap-1",children:[o.jsx("span",{className:"pointer-events-none",children:a("Open",{ns:"common"})}),o.jsxs("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400 overflow-hidden text-ellipsis relative p-1",title:"".concat(a("Open",{ns:"common"})," ").concat(C.value.formOptions.openUrl),onClick:()=>{Ei(Ir(C.value.formOptions.openUrl))},children:[Ir(C.value.formOptions.openUrl),o.jsx(Vg,{id:C.value.formOptions.openUrl,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]})]})}),o.jsxs(ve,{children:[o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",variant:"ghost",disabled:C.value.formOptions.isOpenUrlDisabled,onClick:w=>{w.preventDefault(),C.value.formOptions.openUrl&&(b.value=C.value.formOptions.openUrl,Tn.value?p(C.value.formOptions.openUrl):l(C.value.formOptions.openUrl))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})}),o.jsx(je,{variant:"ghost",size:"mini",title:a("Enable / Disable URL Open",{ns:"dashboard"}),onClick:()=>ge(this,null,function*(){var x;C.value=ae(R({},C.value),{formOptions:ae(R({},C.value.formOptions),{isOpenUrlDisabled:!((x=C.value.formOptions)!=null&&x.isOpenUrlDisabled)})});const w=JSON.stringify(C.value);try{yield f({updatedItem:{formTemplateOptions:w,itemId:t}}),setTimeout(()=>{m.value=!0},300)}catch(S){console.error(S)}}),className:"pl-1 font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:(r=C.value.formOptions)!=null&&r.isOpenUrlDisabled?o.jsx(wa,{size:14}):o.jsx(qa,{size:14})})]})]}),(s=C.value.formOptions)==null?void 0:s.fields.map((w,x)=>{var P,I,T,L,A;const S=w.isLabelOnTop,E=w.isLabelHidden,N=w.type==="section",_=w.type==="textarea";return o.jsxs(ve,{className:"".concat(w.type!=="section"?"mb-1":"mt-1"," group ").concat(S?"flex-col items-start":"items-center"," ").concat(_?"!mt-2 !mb-1":""),children:[!E&&o.jsx(o.Fragment,{children:w.label&&w.type!=="section"?o.jsx(re,{className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(S?"!justify-start pl-1":"!justify-end"),children:o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(S?"text-left":"text-right max-w-[160px]"),children:w.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"})}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsxs(ve,{className:"w-full gap-1 justify-start",children:[w.isDelayOnly||w.isPressKeysOnly?o.jsxs(ve,{className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[w.isDelayOnly&&o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[a("Delay",{ns:"common"})," ",w.value]}),w.isPressKeysOnly&&w.pressKeysAfterPaste&&o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[a("Press",{ns:"common"})," ",QD[w.pressKeysAfterPaste]]})]}):w.type==="password"||w.type==="passwordCode"?o.jsxs(ve,{children:[o.jsxs("div",{className:"relative w-full",children:[o.jsx(wn,{small:!0,placeholder:a("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:w.isEnable===!1,isPassword:!0,numbersOnly:w.type==="passwordCode",showHidePassword:!0,className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):w.type==="creditcard"?o.jsxs(ve,{children:[o.jsxs("div",{className:"relative w-full",children:[o.jsx(Px,{small:!0,placeholder:a("Empty",{ns:"common"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none hover:border-gray-400 pl-1.5 nowrap overflow-hidden text-ellipsis",disabled:w.isEnable===!1,className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,ccNumber:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):N?o.jsx("span",{className:"text-sm !font-semibold border-0 nowrap overflow-hidden text-ellipsis !pl-0.5 py-2",children:w.value}):w.type==="textarea"?o.jsxs(ve,{children:[o.jsxs("div",{className:"w-full relative",children:[o.jsx(Co,{placeholder:a("Empty",{ns:"common"}),label:"",className:"text-sm font-semibold border-0 border-transparent hover:border-gray-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:w.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:x===((P=C.value.formOptions.fields)==null?void 0:P.length)-1&&C.value.formOptions.fields[x].value==="",maxRows:2,value:w.value,enableEmoji:!1,readOnly:!0,enableEmojiInside:!1}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}):o.jsxs(ve,{children:[o.jsxs("div",{className:"w-full relative",children:[o.jsx(wn,{small:!0,placeholder:a("Empty",{ns:"common"}),autoFocus:x===((I=C.value.formOptions.fields)==null?void 0:I.length)-1&&C.value.formOptions.fields[x].value===""&&C.value.formOptions.fields[x].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 hover:border-gray-400 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:w.isEnable===!1,type:w.type==="number"?"number":"text",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:w.value}),o.jsx(Vg,{id:w.id,isCopiedOrPasted:g,pastedItemCountDown:d,isCopied:i,pastedText:c,copyOrPasteFieldId:b})]}),!N&&!w.isDelayOnly&&!w.isPressKeysOnly&&o.jsx(je,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:w.isEnable===!1||!w.value,variant:"ghost",onClick:z=>{z.preventDefault(),w.value&&(b.value=w.id||null,Tn.value?p(w.value):l(w.value))},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:14}):o.jsx(ba,{size:14})})})]}),w.isDelayOnly||w.isPressKeysOnly||N?o.jsx(o.Fragment,{}):o.jsx(ve,{children:w.pressKeysAfterPaste&&o.jsx(St,{variant:"secondary",className:"p-2 py-0.5 text-slate-500 whitespace-nowrap mr-1",children:QD[w.pressKeysAfterPaste]})})]})}),o.jsx(ve,{className:"gap-1",children:!N&&o.jsx(je,{size:"mini",title:a("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>ge(this,null,function*(){var Y;C.value=ae(R({},C.value),{formOptions:ae(R({},C.value.formOptions),{fields:(Y=C.value.formOptions)==null?void 0:Y.fields.map((O,$)=>$===x?ae(R({},O),{isEnable:!O.isEnable}):O)})});const z=JSON.stringify(C.value);try{yield f({updatedItem:{formTemplateOptions:z,itemId:t}}),setTimeout(()=>{m.value=!0},300)}catch(O){console.error(O)}}),children:(T=C.value.formOptions)!=null&&T.fields&&((A=(L=C.value.formOptions)==null?void 0:L.fields[x])!=null&&A.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})})})]})]},w.id)})]}),m.value&&o.jsx(ne,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:a("Updated",{ns:"common"})})]})}finally{n.f()}}function pk(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("rect",{x:"7.3",y:"7.3",rx:"5",ry:"5",width:"9.3",height:"9.3",className:"opacity-90",stroke:"none",fill:"currentColor"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.onClick||e[5]!==t.className?(i=o.jsxs("svg",{width:n,height:r,onClick:t.onClick,className:t.className,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.onClick,e[5]=t.className,e[6]=i):i=e[6],i}const n2e=(t,e=[],n=[],r=[],s,a=!1)=>{const i=/\{\{\s*(.*?)\s*\}\}/g;return t.split(i).map((c,d)=>{const p=r.find(f=>{var m;return((m=f.label)==null?void 0:m.toLocaleLowerCase())===c.toLocaleLowerCase()});if(p){const f={label:c,isValueMasked:p.isValueMasked,value:c.toLocaleLowerCase()==="clipboard"?s:p.value,isFound:e.includes(c.toLowerCase()),isMissing:n.includes(c.toLowerCase()),isEnable:p.isEnable},m=a&&f.value;return o.jsx(re,{className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-600"," !font-normal inline-flex"),size:"xs",children:m?o.jsx(st,{text:o.jsxs(St,{variant:"outline",className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"dark:!text-gray-300 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),f.label]}),className:"bg-transparent border-0",side:"top",isCompact:!0,asChild:!0,children:o.jsx(St,{variant:"outline",className:"".concat(f.isEnable?"!text-green-600 dark:!text-green-400 bg-green-100/80 dark:bg-green-900 hover:bg-green-50/80 dark:hover:bg-green-900/70 border-green-100 hover:border-green-200 dark:border-green-800 dark:hover:border-green-700":"dark:!text-gray-600 text-gray-400 bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-[14px] !font-normal px-1 rounded-sm"),children:f.isValueMasked?Ch(f.value):f.value})}):o.jsx(st,{isDisabled:f.isMissing||!f.value,text:f.value,side:"top",isCompact:!0,asChild:!0,children:o.jsxs(St,{variant:"outline",className:"".concat(f.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-800 border-gray-200/80 dark:border-gray-700/80"," text-normal pr-2.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),f.label]})})},d)}return c})};function GU({value:t,clipId:e,formTemplateOptions:n}){var s;var r=sn(1);try{const{t:a}=Gt(),i=it(Date.now().toString()),l=it(Date.now().toString()),c=it(!1),d=it([]),p=it([]),f=it("text"),m=it("labels"),b=it("template"),C=it(""),g=it(null),[,w,,]=Uh({}),[,,x]=Wh({}),{updateItemById:S}=bl(),E=it(!1),N=it({templateOptions:[],formOptions:{fields:[]}}),_=jo(l.value,300),P=jo(l.value,1e3),I=v.useCallback(A=>{const z=/{{[^{}]+}}/g;d.value=[],p.value=[];const Y=A.match(z);Y&&Y.forEach((O,$)=>{Y[$]=O.replace(/[\n\r{}]+/g,"").trim(),p.value.push(Y[$].toLocaleLowerCase());const M=N.value.templateOptions.find(W=>{var V;return((V=W.label)==null?void 0:V.toLocaleLowerCase())===Y[$].toLocaleLowerCase()});M?M.isFound=!0:d.value.push(Y[$])})},[N.value.templateOptions]);v.useEffect(()=>{var A;if(n)try{const z=JSON.parse(n);N.value=R(R({},N.value),z),((A=N.value.templateOptions)==null?void 0:A.every(O=>{var $;return(($=N.value.templateOptions)==null?void 0:$.filter(M=>M.label===O.label).length)===1}))||(c.value=!0),I(t)}catch(z){console.log("error",z)}},[n]);const T=v.useCallback(()=>ge(this,null,function*(){try{C.value=yield On("run_template_fill",{templateValue:t,templateOptions:N.value.templateOptions,isPreview:!0})}catch(A){console.error(A)}}),[t,N.value.templateOptions]);v.useEffect(()=>{T()},[N.value.templateOptions,t,_]),v.useEffect(()=>{const A=JSON.stringify(N.value);try{S({updatedItem:{formTemplateOptions:A,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(z){console.error(z)}},[t,P]),v.useEffect(()=>{const A=Xi("clipboard://clipboard-monitor/update",Y=>ge(this,null,function*(){Y.payload==="clipboard update"&&(g.value=yield ET())}));return ge(this,null,function*(){g.value=yield ET()}),()=>{A.then(Y=>{Y()})}},[]),v.useEffect(()=>{E.value&&setTimeout(()=>{E.value=!1},1e3)},[E.value]);const L=v.useMemo(()=>n2e(t,p.value,d.value,N.value.templateOptions.filter(A=>A.label!==void 0).map(({label:A,isEnable:z,value:Y,isValueMasked:O})=>({label:A,isValueMasked:O,value:Y,isEnable:z})),g.value,m.value==="values"),[t,_,p.value,d.value,N.value.templateOptions,g.value,m.value]);return o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"select-none mt-1 pb-1",children:[o.jsx(ne,{className:"mt-1.5 mb-1",children:o.jsxs(ve,{className:"w-full justify-start",children:[o.jsx(je,{variant:"ghost",size:"mini",onClick:()=>{Ms.value=e!=null?e:null},className:"cursor-pointer hover:bg-transparent ",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:a("Edit Template",{ns:"dashboard"})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[a("Fields Value",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{N.value.templateOptions=N.value.templateOptions.map(A=>(A.value="",A)),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]}),i.value=Date.now().toString(),l.value=Date.now().toString()},children:[o.jsx(re,{className:"mr-2",children:a("Clear All Fields",{ns:"dashboard"})}),o.jsx(uE,{size:14,className:"ml-auto text-slate-400"})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{N.value.templateOptions=N.value.templateOptions.map(A=>(A.value=A.defaultValue,A)),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]}),i.value=Date.now().toString(),l.value=Date.now().toString()},children:[o.jsx(re,{className:"mr-2",children:a("Reset to Defaults",{ns:"dashboard"})}),o.jsx(J2,{size:14,className:"ml-auto text-slate-400"})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>ge(this,null,function*(){N.value.templateOptions.forEach(z=>{z.defaultValue=z.value});const A=JSON.stringify(N.value);try{yield S({updatedItem:{formTemplateOptions:A,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(z){console.error(z)}}),children:[o.jsx(re,{className:"mr-2",children:a("Save as Defaults",{ns:"dashboard"})}),o.jsx(Pz,{size:14,className:"ml-auto text-slate-400"})]})]})]})]})}),(s=N.value.templateOptions)==null?void 0:s.map((A,z)=>{var U,J,H,F,q,X,te,ee,G;const Y=A.type==="textarea",O=A.isLabelOnTop,$=(U=A.selectOptions)==null?void 0:U.find(Z=>Z===A.value),M=!((J=A.selectOptions)!=null&&J.length),W=!!(A.label&&p.value.includes((H=A.label)==null?void 0:H.toLowerCase())),V=A.isEnable===!1||!W;return o.jsxs(ve,{className:"mb-1 group ".concat(O?"flex-col items-start":"items-center"," ").concat(Y?"!mt-2 !mb-1":""),children:[A.label?o.jsx(ve,{className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(O?"!justify-start pl-1":"!justify-end"," ").concat(W?"":"!text-amber-800 dark:!text-amber-400 opacity-60"),children:o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(O?"text-left":"text-right max-w-[160px]"),children:A.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsx(ve,{className:"w-full gap-1",children:A.type==="password"||A.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:A.type==="passwordCode"?a("Enter code",{ns:"dashboard"}):a("Enter secret value",{ns:"dashboard"}),autoFocus:z===N.value.templateOptions.length-1&&N.value.templateOptions[z].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,isPassword:!0,numbersOnly:A.type==="passwordCode",showHidePassword:!0,className:"".concat(A.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Z=>{A.value=Z.target.value.trim(),l.value=Date.now().toString()},defaultValue:A.value},i.value):A.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:a("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,autoFocus:z===((F=N.value.templateOptions)==null?void 0:F.length)-1&&N.value.templateOptions[z].value==="",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:Z=>{A.value=Z},ccNumber:A.value},i.value):A.type==="textarea"?o.jsx(Co,{placeholder:a("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:V?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:z===N.value.templateOptions.length-1&&N.value.templateOptions[z].value===""&&!!N.value.templateOptions[z].label,maxRows:2,value:A.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:Z=>{Z.stopPropagation()},onChange:Z=>{A.value=Z.target.value,l.value=Date.now().toString(),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]})}},i.value):A.type==="select"?o.jsx(ve,{className:"justify-start items-center w-full my-1",children:o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:V,className:"rounded-sm font-semibold hover:bg-transparent px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:o.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[o.jsx(re,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:M?a("Select is empty",{ns:"common"}):$||a("Select option",{ns:"common"})}),o.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:o.jsx(Bn,{size:13})})]})})}),o.jsxs(Wn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:M?o.jsx(re,{children:a("Select is empty",{ns:"common"})}):o.jsx(re,{children:a("Select option",{ns:"common"})})}),!M&&o.jsxs(o.Fragment,{children:[o.jsx(kn,{}),(X=(q=N.value.templateOptions[z])==null?void 0:q.selectOptions)==null?void 0:X.map((Z,le)=>o.jsx(Cn,{checked:A.value===Z,onSelect:()=>{A.value=Z,l.value=Date.now().toString(),N.value=ae(R({},N.value),{templateOptions:[...N.value.templateOptions]})},children:o.jsx(re,{className:"text-xs ".concat(A.value===Z?"font-semibold":""),children:Z})},le))]})]})]})}):((te=A.label)==null?void 0:te.toLocaleLowerCase())!=="clipboard"?o.jsx(wn,{small:!0,placeholder:a("Enter field value",{ns:"dashboard"}),autoFocus:!!N.value.templateOptions[z].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:V,type:A.type==="number"?"number":"text",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:Z=>{A.value=Z.target.value.trim(),l.value=Date.now().toString()},defaultValue:A.value},i.value):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,value:A.isValueMasked&&g.value?yv(g.value):g.value?g.value:a("This field allows to insert text from clipboard",{ns:"dashboard"}),title:(ee=g.value)!=null?ee:"",autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(V?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),o.jsx(st,{isCompact:!0,text:a("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:o.jsx(pk,{width:15,height:15,className:"".concat(A.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var Z;N.value=ae(R({},N.value),{templateOptions:[...(Z=N.value.templateOptions)==null?void 0:Z.map((le,se)=>se===z?ae(R({},le),{isValueMasked:!le.isValueMasked}):le)]})}})})]})})}),o.jsx(ve,{className:"gap-1 ml-0.5",children:W?o.jsx(je,{size:"mini",title:a("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>ge(this,null,function*(){var le;N.value=ae(R({},N.value),{templateOptions:[...(le=N.value.templateOptions)==null?void 0:le.map((se,de)=>de===z?ae(R({},se),{isEnable:!se.isEnable}):se)]});const Z=JSON.stringify(N.value);try{yield S({updatedItem:{formTemplateOptions:Z,itemId:e}}),setTimeout(()=>{E.value=!0},300)}catch(se){console.error(se)}}),children:N.value.templateOptions&&((G=N.value.templateOptions[z])!=null&&G.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}):o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:a("Not found in the template",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent !text-amber-800 dark:!text-amber-400 opacity-60",children:o.jsx(Ti,{size:14})})}),o.jsx(Wn,{sideOffset:12,align:"center",children:o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onSelect:()=>{var le;N.value=ae(R({},N.value),{templateOptions:[...(le=N.value.templateOptions)==null?void 0:le.filter((se,de)=>de!==z)]});const Z=JSON.stringify(N.value);try{S({updatedItem:{formTemplateOptions:Z,itemId:e}})}catch(se){console.error(se)}},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:a("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})})]})})]})]},z)}),c.value&&o.jsxs(re,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[a("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),o.jsx(In,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{c.value=!1}})]}),d.value.length>0&&o.jsxs(ve,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[o.jsxs(re,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[o.jsx(Ti,{size:13,className:"mr-1"}),a("Found in template but missing from fields definition",{ns:"common"}),":"]}),d==null?void 0:d.value.map((A,z)=>o.jsx(ne,{children:o.jsx(St,{variant:"outline",className:"bg-red-50 !text-red-500 dark:!text-red-400 dark:bg-red-950/80 border-red-100 dark:border-red-900 text-normal px-2",children:A})},z))]}),o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"gap-1 mt-2",children:[o.jsx(je,{size:"mini",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(b.value==="template"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-500 dark:text-slate-400 "," rounded-none px-2 py-0.5"),variant:"ghost",onClick:()=>{b.value="template"},children:a("Template",{ns:"dashboard"})}),C.value&&o.jsx(je,{size:"mini",variant:"ghost",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(b.value==="result"?"border-blue-500 dark:border-blue-400 text-blue-500 dark:text-blue-400":"border-transparent text-slate-400 dark:text-slate-400"," rounded-none px-2 py-0.5"),onClick:()=>{b.value="result",T()},children:a("Result",{ns:"dashboard"})})]}),b.value==="template"?o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative rounded-md text-sm",children:[e&&o.jsx(mr,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{Tn.value?x(e):w(e)},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:15}):o.jsx(ba,{size:15})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:o.jsx(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:L})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:m.value,onValueChange:A=>{m.value=A==="labels"?"labels":"values"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"labels",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Labels",{ns:"dashboard"})}),o.jsx(jr,{value:"values",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Values",{ns:"dashboard"})})]})})]}):b.value==="result"&&C.value&&o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-0 rounded-md text-sm",children:[e&&o.jsx(mr,{className:"hover:bg-transparent rounded-md dark:text-slate-400 hover:text-green-600 hover:dark:text-green-600 top-3 right-3 absolute z-10",onClick:()=>{Tn.value?x(e):w(e)},children:o.jsx(st,{text:Tn.value?a("Copy and Paste",{ns:"common"}):a("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:15}):o.jsx(ba,{size:15})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:o.jsxs(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:[o.jsx("div",ae(R({},f.value==="html"&&{dangerouslySetInnerHTML:{__html:Th.sanitize(C.value)}}),{className:"font-normal"})),f.value==="text"&&C.value]})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:f.value,onValueChange:A=>{f.value=A==="html"?"html":"text"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("Text",{ns:"dashboard"})}),o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:a("HTML",{ns:"dashboard"})})]})})]})]})]}),E.value&&o.jsx(ne,{className:"bg-blue-200 dark:bg-blue-800 text-xs rounded-sm px-1.5 absolute left-1 bottom-1",children:a("Updated",{ns:"common"})})]})}finally{r.f()}}const r2e=[qn.Down,qn.Right,qn.Up,qn.Left];function ob(t){if(!t)return!1;const e=t.data.current;return(e==null?void 0:e.type)===Ys||(e==null?void 0:e.type)===Wl||(e==null?void 0:e.type)===qo}const GC=t=>t.toString().split("::pinned")[0];function A7(t){let e=[];return t.children&&t.children.length>0&&t.children.forEach(n=>{e.push(n.id),e=e.concat(A7(n))}),e}const nj=(t,{context:{active:e,droppableRects:n,droppableContainers:r,collisionRect:s}})=>{if(r2e.includes(t.code)){if(t.preventDefault(),!e||!s)return;const a=[];r.getEnabled().forEach(c=>{var f,m,b;if(!c||c!=null&&c.disabled)return;const d=n.get(c.id);if(!d)return;const p=c.data.current;if(p){const{type:C,children:g}=p;if(C==="Column"&&(g==null?void 0:g.length)>0&&((f=e.data.current)==null?void 0:f.type)!=="Column")return}switch(t.code){case qn.Down:if(((m=e.data.current)==null?void 0:m.type)==="Column")return;s.topd.top&&a.push(c);break;case qn.Left:s.left>=d.left+d.width&&a.push(c);break;case qn.Right:s.left+s.width<=d.left&&a.push(c);break}});const i=PQ({active:e,collisionRect:s,droppableRects:n,droppableContainers:a,pointerCoordinates:null}),l=$8(i,"id");if(l!=null){const c=r.get(l),d=c==null?void 0:c.node.current,p=c==null?void 0:c.rect.current;if(d&&p)return{x:p.left,y:p.top}}}};function L7(t,e=!1,n=!1){if(!t||n)return{valuePreview:e&&t?t.substring(0,200).trim()+"...":(t==null?void 0:t.trim())||"No content",morePreviewLines:null,morePreviewChars:null};const r=t.replace(/\r\n/g,"\n");if(r.split("\n").length>=5&&!e){const i=r.split("\n").slice(0,5).join("\n"),l=r.split("\n").length-5;return{valuePreview:Wc.closeTags(i.trim()),morePreviewLines:l>0?l:null,morePreviewChars:l?null:r.length-160}}if(r.length>60&&!e){const a=r.length-60;return{valuePreview:Wc.closeTags(r.substring(0,60).trim())+"...",morePreviewLines:null,morePreviewChars:a>0?a:null}}else{const a=r.trim(),i=a.split("\n"),l=r.split("\n").length-i.length;return e?{valuePreview:a.substring(0,60)+"...",morePreviewLines:null,morePreviewChars:null}:{valuePreview:a,morePreviewLines:l>0?l:null,morePreviewChars:null}}}const JD=t=>t.isBoard!==void 0&&t.type===Ys,s2e=(t,e)=>{const n=r=>{if(!(!r||!e))for(const s of r){if(s.id===e&&JD(s))return s;if(JD(s)&&s.children){const a=n(s.children);if(a)return a}}};return n(t)};function YU({arrLinks:t=[],clipId:e,isShowLinkedClip:n,detectedLanguage:r,hasEmoji:s,hasMaskedWords:a,imageDataUrl:i,imageHash:l,imagePathFullRes:c,imageScale:d,imageType:p,imageWidthHeight:f,isCode:m,isCommand:b,isWebRequest:C,isWebScraping:g,isExpanded:w,isImage:x,isImageData:S,isLargeView:E,isLink:N,isForm:_,isTemplate:P,isMasked:I,isPath:T,isVideo:L,isMenu:A,isCopyOrPaste:z,isDark:Y,clipName:O,formTemplateOptions:$,commandRequestOutput:M,isCommandRequestRunError:W,commandRequestOutputLastRunAt:V,requestOptions:U,pathType:J,searchTerm:H,value:F=""}){var X,te,ee,G;var q=sn(1);try{const{t:Z}=Gt(),le=As(!1),se=As(!1),de=As(""),ce=v.useRef(null),{metadataLinkByItemId:ye}=Sx(N,e),pe=N&&!!(ye!=null&&ye.linkTitle&&(ye!=null&&ye.linkDomain)),me=As({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:be,morePreviewLines:Ee,morePreviewChars:We}=L7(F,x||S,E||N||T||b||C||g||_||P);v.useEffect(()=>{if(U)try{const Ge=JSON.parse(U);me.value=R(R({},me.value),Ge)}catch(Ge){}},[U]);const qe=F==null?void 0:F.trim();v.useEffect(()=>{w.value&&(se.value=!1)},[w.value]),v.useEffect(()=>{T&&Gs("check_path",{path:qe}).then(()=>{de.value=J}).catch(()=>{de.value="Error"})},[T]),v.useEffect(()=>{H&&(w.value=!0)},[H]);const ot=E?"max-h-[600px]":"max-h-[300px]",Ve=qe.length===0;return v.useEffect(()=>{var Ge;n&&((Ge=ce==null?void 0:ce.current)==null||Ge.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[n,ce==null?void 0:ce.current]),o.jsxs(Vh,{className:Pn(z?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-2 pr-1.5 py-1 mb-0.5 mx-1 text-left flex flex-col rounded-md select-auto relative"),children:[o.jsx(ne,{className:"mb-0.5",ref:ce,children:T?o.jsx(Tx,{theme:Y?gl.vsDark:gl.github,code:qe,language:"path",children:({className:Ge,style:ft,tokens:Ie,getLineProps:Ke,getTokenProps:ut})=>o.jsx("code",{className:"".concat(Ge," ").concat(de.value==="Error"?" line-through decoration-gray-300":""),style:ft,children:Ie.map(($e,ht)=>o.jsx("div",ae(R({},Ke({line:$e})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:$e.map((Fe,pt)=>o.jsx("span",ae(R({},ut({token:Fe})),{className:"".concat(de.value==="Error"?"opacity-60":""," select-text"),children:H?Kl(Fe.content,H):Fe.content}),pt))}),ht))})}):S?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:qe,hasError:le.value,onErrorCallback:()=>{le.value=!0},draggable:!1,decoding:"async",className:"".concat(ot," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:be})]}):N&&x?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(qe),hasError:le.value,onErrorCallback:()=>{le.value=!0},draggable:!1,decoding:"async",className:"".concat(ot," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:_h(qe,t)})]}):x?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards select-none",children:[E?o.jsx("img",{decoding:"async",srcSet:c&&i?"".concat(nh(c),"?").concat(l," ").concat(d,"x"):!i&&!c?uh:z1,src:c&&i?"".concat(nh(c),"?").concat(l):!i&&!c?uh:z1,className:"rounded-md shadow-sm border border-slate-100 dark:border-slate-600 object-scale-down"},e):o.jsx("img",{src:c&&(p==="webp"||p==="gif")?"".concat(nh(c),"?").concat(l):i&&c?i:!i&&!c?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:Z("Image size in pixels",{ns:"common"}),children:[f," ",p]})})]}):r&&m&&be?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isShowMore:w.value||Ee==null,isWrapped:se.value,value:w.value?qe:be,language:r})}):b&&be?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isCommand:!0,isShowMore:!0,isWrapped:se.value,autoHideScrollbar:!0,value:qe,language:"shell"}),M&&o.jsxs(ne,{className:"".concat(W?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border-0"),children:[o.jsx(Ca,{isDark:Y,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:M,language:"shell"}),V&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(Z("Last run",{ns:"dashboard"}),": ").concat(Mh(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(V,"mini-minute-now",{round:"floor"})})})]})]}):(C||g)&&be?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:Y,searchTerm:H,isLargeView:E,isShowMore:!0,isWrapped:se.value,value:qe,autoHideScrollbar:!0,webRequestMethod:C?me.value.method:"URL",language:"shell"}),M&&o.jsxs(ne,{className:"".concat(W?"bg-red-50 border-red-100":"bg-green-50 border-green-100"," ").concat(E?"py-1":"py-0"," rounded-md px-3 relative mb-1 border"),children:[o.jsx(Ca,{isDark:Y,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:M,language:W?"text":"json"}),V&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(Z("Last run",{ns:"dashboard"}),": ").concat(Mh(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(V,"mini-minute-now",{round:"floor"})})})]})]}):_?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(KU,{formTemplateOptions:$,clipId:e})}):P?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(GU,{formTemplateOptions:$,clipId:e,value:F})}):Ve?o.jsx("code",{className:"text-gray-300",children:O}):o.jsx(hk,{isExpanded:w.value,isWrapped:(X=se.value)!=null?X:!1,isImageData:S,isMasked:I,isLargeView:E,isCode:m,hasLinkCard:pe,metadataLinkByItemId:ye,isImage:x,trimmedValue:qe,valuePreview:be,morePreviewLines:Ee,isDark:Y,searchTerm:H})}),o.jsxs(ve,{className:"justify-between select-none",children:[!(C||b||g)&&M||E?o.jsx(ne,{className:"flex flex-row items-center rounded",children:o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:o.jsx(st,{text:se.value?Z("No Wrap",{ns:"common"}):Z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})}):Ee||We?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{w.value=!w.value},children:o.jsx(st,{text:w.value?"":Z("Show all",{ns:"common"}),isCompact:!0,isDisabled:w.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:w.value?o.jsxs(o.Fragment,{children:["- ",Z("show less",{ns:"common"})]}):We?o.jsxs(o.Fragment,{children:["+",We," ",Z("chars",{ns:"common"})]}):Ee&&o.jsxs(o.Fragment,{children:["+",Ee," ",Z("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:o.jsx(st,{text:se.value?Z("No Wrap",{ns:"common"}):Z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):o.jsx(ne,{}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[b&&o.jsx(ne,{className:"".concat(W?"bg-red-300 dark:bg-red-800 dark:text-slate-300 text-red-800":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:W?Z("Command error",{ns:"dashboard"}):Z("Type:::Command",{ns:"dashboard"})}),(C||g)&&o.jsxs(ve,{className:"gap-1",children:[o.jsxs(ne,{className:"".concat(W?"bg-red-300 dark:bg-red-600 dark:text-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[C&&o.jsx("span",{children:W?Z("Request error",{ns:"dashboard"}):Z("Type:::Request",{ns:"dashboard"})}),g&&o.jsx("span",{children:W?Z("Error",{ns:"dashboard"}):Z("Type:::Scraper",{ns:"dashboard"})})]}),g&&me.value.scrapingRules&&((te=me.value.scrapingRules)==null?void 0:te.filter(Ge=>Ge.isEnable).length)>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.headers.filter(Ge=>Ge.isEnable).length})]}),C&&me.value.headers.filter(Ge=>Ge.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.headers.filter(Ge=>Ge.isEnable).length})]}),C&&((ee=me.value.auth)==null?void 0:ee.isEnable)&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(G=me.value.auth)==null?void 0:G.type}),C&&me.value.filters.filter(Ge=>Ge.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Filters",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:me.value.filters.filter(Ge=>Ge.isEnable).length})]})]}),(I||a)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(a?"px-0.5":"px-1.5"),children:I?Z("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}),r&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r}),N&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:L?Z("Type:::Video",{ns:"common"}):qc(qe)?Z("Type:::Email",{ns:"common"}):Z("Type:::Link",{ns:"common"})}),T&&de.value&&o.jsx(ne,{className:"".concat(de.value==="Error"?"bg-red-300":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:de.value==="Error"?o.jsx(st,{text:Z("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:de.value}):de.value}),s&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Emoji",{ns:"common"})}),Ve&&!_&&!x&&o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:Z("Type:::Empty",{ns:"common"})}),S&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Image Base64",{ns:"common"})}),_&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Z("Type:::Auto Fill",{ns:"common"})}),A&&o.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[Z("Type:::Menu",{ns:"common"}),o.jsx(px,{size:11,className:"ml-1"})]})]})]})]})}finally{q.f()}}v.memo(YU);function eI({clipId:t,color:e,isEditOnly:n,isLargeView:r,description:s,borderWidth:a,name:i}){var l=sn(1);try{const{t:c}=Gt(),d=it(!1),p=it(""),f=it(""),{themeDark:m}=Tt(bo),b=m(),{updateItemById:C}=bl(),g=it(am.value),w=it(!1);return v.useEffect(()=>{d.value=!1,p.value=i!=null?i:"",am.value=g.value},[g.value]),v.useEffect(()=>{i===c("New Clip",{ns:"dashboard"})&&(g.value=!0)},[i]),v.useEffect(()=>{f.value=s!=null?s:"",am.value=w.value},[w.value]),v.useEffect(()=>{n&&(g.value=!0)},[n]),v.useEffect(()=>{d.value?Ab.value=!0:Ab.value=!1},[d.value]),v.useEffect(()=>{if(Ib.value){if(Ib.value=!1,Ab.value=!1,!g.value&&!w.value)return;if(!p.value.length||p.value.length>fd){d.value=!0;return}w.value&&(C({updatedItem:{description:f.value,itemId:t}}),setTimeout(()=>{w.value=!1},200)),d.value||(C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1},200))}},[Ib.value]),o.jsx(ve,{className:"justify-start w-full",children:g.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:d.value,asChild:!0,classNameTrigger:"w-full",text:p.value.length<=X8?c("Too short",{ns:"dashboard"}):c("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold w-full min-w-[120px]",placeholder:c("Enter clip name",{ns:"dashboard"}),onBlur:()=>ge(this,null,function*(){(!p.value.length||p.value.length>fd)&&(d.value=!0)}),onKeyDown:x=>ge(this,null,function*(){x.stopPropagation(),x.key==="Escape"?g.value=!1:x.key==="Enter"&&(!p.value.length||p.value.length>fd)?d.value=!0:x.key==="Enter"&&(yield C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1,n&&Ff()},300))}),defaultValue:i,onFocus:x=>{i===c("New Clip",{ns:"dashboard"})&&x.target.select()},onChange:x=>{d.value&&x.target.value.length<=fd&&d.value&&x.target.value.length>0&&(d.value=!1),p.value=x.target.value}})}),o.jsxs(ve,{className:"ml-1",children:[o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){if(!p.value.length||p.value.length>fd){d.value=!0;return}d.value||(yield C({updatedItem:{name:p.value,itemId:t}}),setTimeout(()=>{g.value=!1,n&&Ff()},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{g.value=!1,n&&Ff()},children:o.jsx(In,{size:18})})})})]})]}):o.jsxs(ve,{className:"justify-start mr-1 w-full",children:[!w.value&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"min-w-[24px]",children:o.jsx(lk,{color:e!=null?e:null,borderWidth:a,type:qo,itemId:t,updateById:C})}),o.jsx(re,{className:"text-sm text-ellipsis pl-1 overflow-hidden whitespace-nowrap border-dashed border-b min-w-[40px] border-".concat(e||"slate","-400 hover:border-gray-400"),onClick:()=>{g.value=!0},color:"black",children:i}),o.jsx(ne,{onClick:()=>{g.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:c("Rename",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(Ud,{size:14})})})]}),o.jsx(ne,{title:s&&!w.value?c("Edit Note",{ns:"dashboard"}):void 0,className:"".concat(w.value?"":"ml-1"," pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100"),children:s?o.jsx(ww,{text:w.value?f.value:s,side:"right",isDark:b,align:"end",alignOffset:130,maxWidth:320,sideOffset:-10,asChild:!0,children:o.jsx(Mz,{size:16,onClick:()=>{w.value=!0}})}):o.jsx(st,{text:c("Add note",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:w.value,children:o.jsx(rle,{size:16,onClick:()=>{w.value=!0}})})}),!am.value&&o.jsxs(ve,{className:"ml-auto px-1.5 items-center justify-center",children:[o.jsx(mr,{className:"hover:bg-transparent mr-1.5",onClick:()=>{Ws.value=r?null:t},children:o.jsx(st,{text:c("Close Expand Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(dx,{size:13})})}),o.jsx(mr,{className:"hover:bg-transparent",onClick:()=>{Ff()},children:o.jsx(st,{text:c("Close Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})]}),w.value&&o.jsxs(ve,{className:"w-full justify-start items-center",children:[o.jsx(Co,{tabIndex:0,enableEmoji:!1,className:"bg-white w-full ml-2 rounded-md text-sm min-w-[120px]",classNameArea:"!pb-1",placeholder:c("Enter clip note",{ns:"dashboard"}),rows:1,autoFocus:!0,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:5,value:f.value,onKeyDown:x=>ge(this,null,function*(){x.stopPropagation(),x.key==="Escape"&&(w.value=!1)}),defaultValue:s!=null?s:"",onChange:x=>{f.value=x.target.value}}),o.jsxs(ve,{className:"ml-2",children:[o.jsx(st,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){yield C({updatedItem:{description:f.value,itemId:t}}),setTimeout(()=>{w.value=!1},200)}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{w.value=!1},children:o.jsx(In,{size:18})})})})]})]})]})})}finally{l.f()}}function ZU(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("rect",{x:"6.881",y:"6.83",width:"10.2",height:"10.2",className:"opacity-50",stroke:"none",fill:"currentColor"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}function XU(t){var l,c;const e=Te(7),n=(l=t.width)!=null?l:"24px",r=(c=t.height)!=null?c:"24px";let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),a=o.jsx("path",{fill:"currentColor",stroke:"none",d:"m18.4044 17.0597-1.3474 1.3474H8.2988l1.3474-1.3474h8.7582ZM14.52 5.0053l3.811 3.811-.5695.7343-1.0281 1.3106-.6031.7568-.5374.6632-.3597.436-.4222.4997-.2734.3133-.2364.2606-.1994.2081-.4734.4683-.9742.9883-.514.5288-.1854-.0092-.1944-.003c-.3311 0-.699.0257-1.1035.077l-.2536.0356-.2478.0408-.237.0439-.3247.067-.6212.1496-2.021 1.0105-1.3475.3369.3369-1.3474 1.0105-2.0211.032-.076.0564-.1558.0474-.1502.0516-.187a6.8003 6.8003 0 0 0 .1495-.7784 10.6177 10.6177 0 0 0 .088-1.797l.1045-.1176.1065-.1134.497-.5086 1.1954-1.1882.3684-.3535.4097-.3752.3575-.3158.3839-.3296.4103-.3434.4366-.3573.4631-.3711.7442-.5827.529-.4057.5556-.4196.5819-.4335ZM8.7067 12.357a11.8664 11.8664 0 0 1-.036.4396l-.0472.4013a8.6212 8.6212 0 0 1-.112.649l-.1351.572.5888.5408.5814-.0902c.3209-.0649.6365-.1185.9407-.157.1784-.0227.3517-.041.52-.055L8.7067 12.357Zm5.6858-5.5734-.19.144-.7708.5933-.4798.3773-.4525.3626-.425.3476-.3975.3325-.3696.3172-.3416.3015-.4179.383-.3182.3058-.8657.8602 2.861 2.861.1762-.1794.5993-.5981.1285-.1254.174-.181.2194-.2415.2594-.297.412-.4874.3522-.4267.5305-.655.5967-.7486.8638-1.1014-2.1444-2.1445Z"}),e[0]=s,e[1]=a):(s=e[0],a=e[1]);let i;return e[2]!==n||e[3]!==r||e[4]!==t.className||e[5]!==t.onClick?(i=o.jsxs("svg",{width:n,height:r,className:t.className,viewBox:"0 0 24 24",onClick:t.onClick,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[s,a]}),e[2]=n,e[3]=r,e[4]=t.className,e[5]=t.onClick,e[6]=i):i=e[6],i}(function(t,e){(function(n){n(hu)})(function(n){function r(i,l,c){this.orientation=l,this.scroll=c,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=i+"-"+l,this.inner=this.node.appendChild(document.createElement("div"));var d=this;n.on(this.inner,"mousedown",function(f){if(f.which!=1)return;n.e_preventDefault(f);var m=d.orientation=="horizontal"?"pageX":"pageY",b=f[m],C=d.pos;function g(){n.off(document,"mousemove",w),n.off(document,"mouseup",g)}function w(x){if(x.which!=1)return g();d.moveTo(C+(x[m]-b)*(d.total/d.size))}n.on(document,"mousemove",w),n.on(document,"mouseup",g)}),n.on(this.node,"click",function(f){n.e_preventDefault(f);var m=d.inner.getBoundingClientRect(),b;d.orientation=="horizontal"?b=f.clientXm.right?1:0:b=f.clientYm.bottom?1:0,d.moveTo(d.pos+b*d.screen)});function p(f){var m=n.wheelEventPixels(f)[d.orientation=="horizontal"?"x":"y"],b=d.pos;d.moveTo(d.pos+m),d.pos!=b&&n.e_preventDefault(f)}n.on(this.node,"mousewheel",p),n.on(this.node,"DOMMouseScroll",p)}r.prototype.setPos=function(i,l){return i<0&&(i=0),i>this.total-this.screen&&(i=this.total-this.screen),!l&&i==this.pos?!1:(this.pos=i,this.inner.style[this.orientation=="horizontal"?"left":"top"]=i*(this.size/this.total)+"px",!0)},r.prototype.moveTo=function(i){this.setPos(i)&&this.scroll(i,this.orientation)};var s=10;r.prototype.update=function(i,l,c){var d=this.screen!=l||this.total!=i||this.size!=c;d&&(this.screen=l,this.total=i,this.size=c);var p=this.screen*(this.size/this.total);pi.clientWidth+1,p=i.scrollHeight>i.clientHeight+1;return this.vert.node.style.display=p?"block":"none",this.horiz.node.style.display=d?"block":"none",p&&(this.vert.update(i.scrollHeight,i.clientHeight,i.viewHeight-(d?c:0)),this.vert.node.style.bottom=d?c+"px":"0"),d&&(this.horiz.update(i.scrollWidth,i.clientWidth,i.viewWidth-(p?c:0)-i.barLeft),this.horiz.node.style.right=p?c+"px":"0",this.horiz.node.style.left=i.barLeft+"px"),{right:p?c:0,bottom:d?c:0}},a.prototype.setScrollTop=function(i){this.vert.setPos(i)},a.prototype.setScrollLeft=function(i){this.horiz.setPos(i)},a.prototype.clear=function(){var i=this.horiz.node.parentNode;i.removeChild(this.horiz.node),i.removeChild(this.vert.node)},n.scrollbarModel.simple=function(i,l){return new a("CodeMirror-simplescroll",i,l)},n.scrollbarModel.overlay=function(i,l){return new a("CodeMirror-overlayscroll",i,l)}})})();var tI={exports:{}},nI;function a2e(){return nI||(nI=1,function(t,e){(function(n){n(hu)})(function(n){n.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var r=0;r-1&&a.substring(c+1,a.length);if(d)return n.findModeByExtension(d)},n.findModeByName=function(a){a=a.toLowerCase();for(var i=0;i!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(oe){for(var fe=!1,Xe,Me=!1;(Xe=oe.next())!=null;){if(!fe){if(Xe=="/"&&!Me)return;Xe=="["?Me=!0:Me&&Xe=="]"&&(Me=!1)}fe=!fe&&Xe=="\\"}}var w,x;function S(oe,fe,Xe){return w=oe,x=Xe,fe}function E(oe,fe){var Xe=oe.next();if(Xe=='"'||Xe=="'")return fe.tokenize=N(Xe),fe.tokenize(oe,fe);if(Xe=="."&&oe.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return S("number","number");if(Xe=="."&&oe.match(".."))return S("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Xe))return S(Xe);if(Xe=="="&&oe.eat(">"))return S("=>","operator");if(Xe=="0"&&oe.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return S("number","number");if(/\d/.test(Xe))return oe.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),S("number","number");if(Xe=="/")return oe.eat("*")?(fe.tokenize=_,_(oe,fe)):oe.eat("/")?(oe.skipToEnd(),S("comment","comment")):vn(oe,fe,1)?(g(oe),oe.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),S("regexp","string-2")):(oe.eat("="),S("operator","operator",oe.current()));if(Xe=="`")return fe.tokenize=P,P(oe,fe);if(Xe=="#"&&oe.peek()=="!")return oe.skipToEnd(),S("meta","meta");if(Xe=="#"&&oe.eatWhile(f))return S("variable","property");if(Xe=="<"&&oe.match("!--")||Xe=="-"&&oe.match("->")&&!/\S/.test(oe.string.slice(0,oe.start)))return oe.skipToEnd(),S("comment","comment");if(b.test(Xe))return(Xe!=">"||!fe.lexical||fe.lexical.type!=">")&&(oe.eat("=")?(Xe=="!"||Xe=="=")&&oe.eat("="):/[<>*+\-|&?]/.test(Xe)&&(oe.eat(Xe),Xe==">"&&oe.eat(Xe))),Xe=="?"&&oe.eat(".")?S("."):S("operator","operator",oe.current());if(f.test(Xe)){oe.eatWhile(f);var Me=oe.current();if(fe.lastType!="."){if(m.propertyIsEnumerable(Me)){var _e=m[Me];return S(_e.type,_e.style,Me)}if(Me=="async"&&oe.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return S("async","keyword",Me)}return S("variable","variable",Me)}}function N(oe){return function(fe,Xe){var Me=!1,_e;if(l&&fe.peek()=="@"&&fe.match(C))return Xe.tokenize=E,S("jsonld-keyword","meta");for(;(_e=fe.next())!=null&&!(_e==oe&&!Me);)Me=!Me&&_e=="\\";return Me||(Xe.tokenize=E),S("string","string")}}function _(oe,fe){for(var Xe=!1,Me;Me=oe.next();){if(Me=="/"&&Xe){fe.tokenize=E;break}Xe=Me=="*"}return S("comment","comment")}function P(oe,fe){for(var Xe=!1,Me;(Me=oe.next())!=null;){if(!Xe&&(Me=="`"||Me=="$"&&oe.eat("{"))){fe.tokenize=E;break}Xe=!Xe&&Me=="\\"}return S("quasi","string-2",oe.current())}var I="([{}])";function T(oe,fe){fe.fatArrowAt&&(fe.fatArrowAt=null);var Xe=oe.string.indexOf("=>",oe.start);if(!(Xe<0)){if(p){var Me=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(oe.string.slice(oe.start,Xe));Me&&(Xe=Me.index)}for(var _e=0,He=!1,Ct=Xe-1;Ct>=0;--Ct){var cn=oe.string.charAt(Ct),zn=I.indexOf(cn);if(zn>=0&&zn<3){if(!_e){++Ct;break}if(--_e==0){cn=="("&&(He=!0);break}}else if(zn>=3&&zn<6)++_e;else if(f.test(cn))He=!0;else if(/["'\/`]/.test(cn))for(;;--Ct){if(Ct==0)return;var Mn=oe.string.charAt(Ct-1);if(Mn==cn&&oe.string.charAt(Ct-2)!="\\"){Ct--;break}}else if(He&&!_e){++Ct;break}}He&&!_e&&(fe.fatArrowAt=Ct)}}var L={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(oe,fe,Xe,Me,_e,He){this.indented=oe,this.column=fe,this.type=Xe,this.prev=_e,this.info=He,Me!=null&&(this.align=Me)}function z(oe,fe){if(!d)return!1;for(var Xe=oe.localVars;Xe;Xe=Xe.next)if(Xe.name==fe)return!0;for(var Me=oe.context;Me;Me=Me.prev)for(var Xe=Me.vars;Xe;Xe=Xe.next)if(Xe.name==fe)return!0}function Y(oe,fe,Xe,Me,_e){var He=oe.cc;for(O.state=oe,O.stream=_e,O.marked=null,O.cc=He,O.style=fe,oe.lexical.hasOwnProperty("align")||(oe.lexical.align=!0);;){var Ct=He.length?He.pop():c?ce:se;if(Ct(Xe,Me)){for(;He.length&&He[He.length-1].lex;)He.pop()();return O.marked?O.marked:Xe=="variable"&&z(oe,Me)?"variable-2":fe}}}var O={state:null,column:null,marked:null,cc:null};function $(){for(var oe=arguments.length-1;oe>=0;oe--)O.cc.push(arguments[oe])}function M(){return $.apply(null,arguments),!0}function W(oe,fe){for(var Xe=fe;Xe;Xe=Xe.next)if(Xe.name==oe)return!0;return!1}function V(oe){var fe=O.state;if(O.marked="def",!!d){if(fe.context){if(fe.lexical.info=="var"&&fe.context&&fe.context.block){var Xe=U(oe,fe.context);if(Xe!=null){fe.context=Xe;return}}else if(!W(oe,fe.localVars)){fe.localVars=new F(oe,fe.localVars);return}}s.globalVars&&!W(oe,fe.globalVars)&&(fe.globalVars=new F(oe,fe.globalVars))}}function U(oe,fe){if(fe)if(fe.block){var Xe=U(oe,fe.prev);return Xe?Xe==fe.prev?fe:new H(Xe,fe.vars,!0):null}else return W(oe,fe.vars)?fe:new H(fe.prev,new F(oe,fe.vars),!1);else return null}function J(oe){return oe=="public"||oe=="private"||oe=="protected"||oe=="abstract"||oe=="readonly"}function H(oe,fe,Xe){this.prev=oe,this.vars=fe,this.block=Xe}function F(oe,fe){this.name=oe,this.next=fe}var q=new F("this",new F("arguments",null));function X(){O.state.context=new H(O.state.context,O.state.localVars,!1),O.state.localVars=q}function te(){O.state.context=new H(O.state.context,O.state.localVars,!0),O.state.localVars=null}X.lex=te.lex=!0;function ee(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}ee.lex=!0;function G(oe,fe){var Xe=function(){var Me=O.state,_e=Me.indented;if(Me.lexical.type=="stat")_e=Me.lexical.indented;else for(var He=Me.lexical;He&&He.type==")"&&He.align;He=He.prev)_e=He.indented;Me.lexical=new A(_e,O.stream.column(),oe,null,Me.lexical,fe)};return Xe.lex=!0,Xe}function Z(){var oe=O.state;oe.lexical.prev&&(oe.lexical.type==")"&&(oe.indented=oe.lexical.indented),oe.lexical=oe.lexical.prev)}Z.lex=!0;function le(oe){function fe(Xe){return Xe==oe?M():oe==";"||Xe=="}"||Xe==")"||Xe=="]"?$():M(fe)}return fe}function se(oe,fe){return oe=="var"?M(G("vardef",fe),Re,le(";"),Z):oe=="keyword a"?M(G("form"),pe,se,Z):oe=="keyword b"?M(G("form"),se,Z):oe=="keyword d"?O.stream.match(/^\s*$/,!1)?M():M(G("stat"),be,le(";"),Z):oe=="debugger"?M(le(";")):oe=="{"?M(G("}"),te,Ut,Z,ee):oe==";"?M():oe=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==Z&&O.state.cc.pop()(),M(G("form"),pe,se,Z,Mt)):oe=="function"?M(mn):oe=="for"?M(G("form"),te,an,se,ee,Z):oe=="class"||p&&fe=="interface"?(O.marked="keyword",M(G("form",oe=="class"?oe:fe),pn,Z)):oe=="variable"?p&&fe=="declare"?(O.marked="keyword",M(se)):p&&(fe=="module"||fe=="enum"||fe=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",fe=="enum"?M(tt):fe=="type"?M(nn,le("operator"),Pt,le(";")):M(G("form"),Oe,le("{"),G("}"),Ut,Z,Z)):p&&fe=="namespace"?(O.marked="keyword",M(G("form"),ce,se,Z)):p&&fe=="abstract"?(O.marked="keyword",M(se)):M(G("stat"),ut):oe=="switch"?M(G("form"),pe,le("{"),G("}","switch"),te,Ut,Z,Z,ee):oe=="case"?M(ce,le(":")):oe=="default"?M(le(":")):oe=="catch"?M(G("form"),X,de,se,Z,ee):oe=="export"?M(G("stat"),Ye,Z):oe=="import"?M(G("stat"),mt,Z):oe=="async"?M(se):fe=="@"?M(ce,se):$(G("stat"),ce,le(";"),Z)}function de(oe){if(oe=="(")return M(on,le(")"))}function ce(oe,fe){return me(oe,fe,!1)}function ye(oe,fe){return me(oe,fe,!0)}function pe(oe){return oe!="("?$():M(G(")"),be,le(")"),Z)}function me(oe,fe,Xe){if(O.state.fatArrowAt==O.stream.start){var Me=Xe?Ge:Ve;if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,le("=>"),Me,ee);if(oe=="variable")return $(X,Oe,le("=>"),Me,ee)}var _e=Xe?We:Ee;return L.hasOwnProperty(oe)?M(_e):oe=="function"?M(mn,_e):oe=="class"||p&&fe=="interface"?(O.marked="keyword",M(G("form"),Sn,Z)):oe=="keyword c"||oe=="async"?M(Xe?ye:ce):oe=="("?M(G(")"),be,le(")"),Z,_e):oe=="operator"||oe=="spread"?M(Xe?ye:ce):oe=="["?M(G("]"),Bt,Z,_e):oe=="{"?Lt(ht,"}",null,_e):oe=="quasi"?$(qe,_e):oe=="new"?M(ft(Xe)):M()}function be(oe){return oe.match(/[;\}\)\],]/)?$():$(ce)}function Ee(oe,fe){return oe==","?M(be):We(oe,fe,!1)}function We(oe,fe,Xe){var Me=Xe==!1?Ee:We,_e=Xe==!1?ce:ye;if(oe=="=>")return M(X,Xe?Ge:Ve,ee);if(oe=="operator")return/\+\+|--/.test(fe)||p&&fe=="!"?M(Me):p&&fe=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?M(G(">"),Qe(Pt,">"),Z,Me):fe=="?"?M(ce,le(":"),_e):M(_e);if(oe=="quasi")return $(qe,Me);if(oe!=";"){if(oe=="(")return Lt(ye,")","call",Me);if(oe==".")return M($e,Me);if(oe=="[")return M(G("]"),be,le("]"),Z,Me);if(p&&fe=="as")return O.marked="keyword",M(Pt,Me);if(oe=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),M(_e)}}function qe(oe,fe){return oe!="quasi"?$():fe.slice(fe.length-2)!="${"?M(qe):M(be,ot)}function ot(oe){if(oe=="}")return O.marked="string-2",O.state.tokenize=P,M(qe)}function Ve(oe){return T(O.stream,O.state),$(oe=="{"?se:ce)}function Ge(oe){return T(O.stream,O.state),$(oe=="{"?se:ye)}function ft(oe){return function(fe){return fe=="."?M(oe?Ke:Ie):fe=="variable"&&p?M(Pe,oe?We:Ee):$(oe?ye:ce)}}function Ie(oe,fe){if(fe=="target")return O.marked="keyword",M(Ee)}function Ke(oe,fe){if(fe=="target")return O.marked="keyword",M(We)}function ut(oe){return oe==":"?M(Z,se):$(Ee,le(";"),Z)}function $e(oe){if(oe=="variable")return O.marked="property",M()}function ht(oe,fe){if(oe=="async")return O.marked="property",M(ht);if(oe=="variable"||O.style=="keyword"){if(O.marked="property",fe=="get"||fe=="set")return M(Fe);var Xe;return p&&O.state.fatArrowAt==O.stream.start&&(Xe=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+Xe[0].length),M(pt)}else{if(oe=="number"||oe=="string")return O.marked=l?"property":O.style+" property",M(pt);if(oe=="jsonld-keyword")return M(pt);if(p&&J(fe))return O.marked="keyword",M(ht);if(oe=="[")return M(ce,wt,le("]"),pt);if(oe=="spread")return M(ye,pt);if(fe=="*")return O.marked="keyword",M(ht);if(oe==":")return $(pt)}}function Fe(oe){return oe!="variable"?$(pt):(O.marked="property",M(mn))}function pt(oe){if(oe==":")return M(ye);if(oe=="(")return $(mn)}function Qe(oe,fe,Xe){function Me(_e,He){if(Xe?Xe.indexOf(_e)>-1:_e==","){var Ct=O.state.lexical;return Ct.info=="call"&&(Ct.pos=(Ct.pos||0)+1),M(function(cn,zn){return cn==fe||zn==fe?$():$(oe)},Me)}return _e==fe||He==fe?M():Xe&&Xe.indexOf(";")>-1?$(oe):M(le(fe))}return function(_e,He){return _e==fe||He==fe?M():$(oe,Me)}}function Lt(oe,fe,Xe){for(var Me=3;Me"),Pt);if(oe=="quasi")return $(we,nt)}function Ue(oe){if(oe=="=>")return M(Pt)}function Je(oe){return oe.match(/[\}\)\]]/)?M():oe==","||oe==";"?M(Je):$(jt,Je)}function jt(oe,fe){if(oe=="variable"||O.style=="keyword")return O.marked="property",M(jt);if(fe=="?"||oe=="number"||oe=="string")return M(jt);if(oe==":")return M(Pt);if(oe=="[")return M(le("variable"),Xt,le("]"),jt);if(oe=="(")return $(hn,jt);if(!oe.match(/[;\}\)\],]/))return M()}function we(oe,fe){return oe!="quasi"?$():fe.slice(fe.length-2)!="${"?M(we):M(Pt,Se)}function Se(oe){if(oe=="}")return O.marked="string-2",O.state.tokenize=P,M(we)}function De(oe,fe){return oe=="variable"&&O.stream.match(/^\s*[?:]/,!1)||fe=="?"?M(De):oe==":"?M(Pt):oe=="spread"?M(De):$(Pt)}function nt(oe,fe){if(fe=="<")return M(G(">"),Qe(Pt,">"),Z,nt);if(fe=="|"||oe=="."||fe=="&")return M(Pt);if(oe=="[")return M(Pt,le("]"),nt);if(fe=="extends"||fe=="implements")return O.marked="keyword",M(Pt);if(fe=="?")return M(Pt,le(":"),Pt)}function Pe(oe,fe){if(fe=="<")return M(G(">"),Qe(Pt,">"),Z,nt)}function gt(){return $(Pt,Ze)}function Ze(oe,fe){if(fe=="=")return M(Pt)}function Re(oe,fe){return fe=="enum"?(O.marked="keyword",M(tt)):$(Oe,wt,bt,_t)}function Oe(oe,fe){if(p&&J(fe))return O.marked="keyword",M(Oe);if(oe=="variable")return V(fe),M();if(oe=="spread")return M(Oe);if(oe=="[")return Lt(Et,"]");if(oe=="{")return Lt(et,"}")}function et(oe,fe){return oe=="variable"&&!O.stream.match(/^\s*:/,!1)?(V(fe),M(bt)):(oe=="variable"&&(O.marked="property"),oe=="spread"?M(Oe):oe=="}"?$():oe=="["?M(ce,le("]"),le(":"),et):M(le(":"),Oe,bt))}function Et(){return $(Oe,bt)}function bt(oe,fe){if(fe=="=")return M(ye)}function _t(oe){if(oe==",")return M(Re)}function Mt(oe,fe){if(oe=="keyword b"&&fe=="else")return M(G("form","else"),se,Z)}function an(oe,fe){if(fe=="await")return M(an);if(oe=="(")return M(G(")"),dn,Z)}function dn(oe){return oe=="var"?M(Re,fn):oe=="variable"?M(fn):$(fn)}function fn(oe,fe){return oe==")"?M():oe==";"?M(fn):fe=="in"||fe=="of"?(O.marked="keyword",M(ce,fn)):$(ce,fn)}function mn(oe,fe){if(fe=="*")return O.marked="keyword",M(mn);if(oe=="variable")return V(fe),M(mn);if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,$t,se,ee);if(p&&fe=="<")return M(G(">"),Qe(gt,">"),Z,mn)}function hn(oe,fe){if(fe=="*")return O.marked="keyword",M(hn);if(oe=="variable")return V(fe),M(hn);if(oe=="(")return M(X,G(")"),Qe(on,")"),Z,$t,ee);if(p&&fe=="<")return M(G(">"),Qe(gt,">"),Z,hn)}function nn(oe,fe){if(oe=="keyword"||oe=="variable")return O.marked="type",M(nn);if(fe=="<")return M(G(">"),Qe(gt,">"),Z)}function on(oe,fe){return fe=="@"&&M(ce,on),oe=="spread"?M(on):p&&J(fe)?(O.marked="keyword",M(on)):p&&oe=="this"?M(wt,bt):$(Oe,wt,bt)}function Sn(oe,fe){return oe=="variable"?pn(oe,fe):rn(oe,fe)}function pn(oe,fe){if(oe=="variable")return V(fe),M(rn)}function rn(oe,fe){if(fe=="<")return M(G(">"),Qe(gt,">"),Z,rn);if(fe=="extends"||fe=="implements"||p&&oe==",")return fe=="implements"&&(O.marked="keyword"),M(p?Pt:ce,rn);if(oe=="{")return M(G("}"),ct,Z)}function ct(oe,fe){if(oe=="async"||oe=="variable"&&(fe=="static"||fe=="get"||fe=="set"||p&&J(fe))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",M(ct);if(oe=="variable"||O.style=="keyword")return O.marked="property",M(xe,ct);if(oe=="number"||oe=="string")return M(xe,ct);if(oe=="[")return M(ce,wt,le("]"),xe,ct);if(fe=="*")return O.marked="keyword",M(ct);if(p&&oe=="(")return $(hn,ct);if(oe==";"||oe==",")return M(ct);if(oe=="}")return M();if(fe=="@")return M(ce,ct)}function xe(oe,fe){if(fe=="!"||fe=="?")return M(xe);if(oe==":")return M(Pt,bt);if(fe=="=")return M(ye);var Xe=O.state.lexical.prev,Me=Xe&&Xe.info=="interface";return $(Me?hn:mn)}function Ye(oe,fe){return fe=="*"?(O.marked="keyword",M(Ht,le(";"))):fe=="default"?(O.marked="keyword",M(ce,le(";"))):oe=="{"?M(Qe(dt,"}"),Ht,le(";")):$(se)}function dt(oe,fe){if(fe=="as")return O.marked="keyword",M(le("variable"));if(oe=="variable")return $(ye,dt)}function mt(oe){return oe=="string"?M():oe=="("?$(ce):oe=="."?$(Ee):$(xt,It,Ht)}function xt(oe,fe){return oe=="{"?Lt(xt,"}"):(oe=="variable"&&V(fe),fe=="*"&&(O.marked="keyword"),M(At))}function It(oe){if(oe==",")return M(xt,It)}function At(oe,fe){if(fe=="as")return O.marked="keyword",M(xt)}function Ht(oe,fe){if(fe=="from")return O.marked="keyword",M(ce)}function Bt(oe){return oe=="]"?M():$(Qe(ye,"]"))}function tt(){return $(G("form"),Oe,le("{"),G("}"),Qe(Kt,"}"),Z,Z)}function Kt(){return $(Oe,bt)}function Zt(oe,fe){return oe.lastType=="operator"||oe.lastType==","||b.test(fe.charAt(0))||/[,.]/.test(fe.charAt(0))}function vn(oe,fe,Xe){return fe.tokenize==E&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(fe.lastType)||fe.lastType=="quasi"&&/\{\s*$/.test(oe.string.slice(0,oe.pos-(Xe||0)))}return{startState:function(oe){var fe={tokenize:E,lastType:"sof",cc:[],lexical:new A((oe||0)-a,0,"block",!1),localVars:s.localVars,context:s.localVars&&new H(null,null,!1),indented:oe||0};return s.globalVars&&typeof s.globalVars=="object"&&(fe.globalVars=s.globalVars),fe},token:function(oe,fe){if(oe.sol()&&(fe.lexical.hasOwnProperty("align")||(fe.lexical.align=!1),fe.indented=oe.indentation(),T(oe,fe)),fe.tokenize!=_&&oe.eatSpace())return null;var Xe=fe.tokenize(oe,fe);return w=="comment"?Xe:(fe.lastType=w=="operator"&&(x=="++"||x=="--")?"incdec":w,Y(fe,Xe,w,x,oe))},indent:function(oe,fe){if(oe.tokenize==_||oe.tokenize==P)return n.Pass;if(oe.tokenize!=E)return 0;var Xe=fe&&fe.charAt(0),Me=oe.lexical,_e;if(!/^\s*else\b/.test(fe))for(var He=oe.cc.length-1;He>=0;--He){var Ct=oe.cc[He];if(Ct==Z)Me=Me.prev;else if(Ct!=Mt&&Ct!=ee)break}for(;(Me.type=="stat"||Me.type=="form")&&(Xe=="}"||(_e=oe.cc[oe.cc.length-1])&&(_e==Ee||_e==We)&&!/^[,\.=+\-*:?[\(]/.test(fe));)Me=Me.prev;i&&Me.type==")"&&Me.prev.type=="stat"&&(Me=Me.prev);var cn=Me.type,zn=Xe==cn;return cn=="vardef"?Me.indented+(oe.lastType=="operator"||oe.lastType==","?Me.info.length+1:0):cn=="form"&&Xe=="{"?Me.indented:cn=="form"?Me.indented+a:cn=="stat"?Me.indented+(Zt(oe,fe)?i||a:0):Me.info=="switch"&&!zn&&s.doubleIndentSwitch!=!1?Me.indented+(/^(?:case|default)\b/.test(fe)?a:2*a):Me.align?Me.column+(zn?0:1):Me.indented+(zn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:l,jsonMode:c,expressionAllowed:vn,skipExpression:function(oe){Y(oe,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),rI.exports}var QU=o2e();const i2e=cu(QU),JU=Bw({__proto__:null,default:i2e},[QU]);var aI={exports:{}},oI;function l2e(){return oI||(oI=1,function(t,e){(function(n){n(hu)})(function(n){var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(a,i){var l=a.indentUnit,c={},d=i.htmlMode?r:s;for(var p in d)c[p]=d[p];for(var p in i)c[p]=i[p];var f,m;function b(M,W){function V(H){return W.tokenize=H,H(M,W)}var U=M.next();if(U=="<")return M.eat("!")?M.eat("[")?M.match("CDATA[")?V(w("atom","]]>")):null:M.match("--")?V(w("comment","-->")):M.match("DOCTYPE",!0,!0)?(M.eatWhile(/[\w\._\-]/),V(x(1))):null:M.eat("?")?(M.eatWhile(/[\w\._\-]/),W.tokenize=w("meta","?>"),"meta"):(f=M.eat("/")?"closeTag":"openTag",W.tokenize=C,"tag bracket");if(U=="&"){var J;return M.eat("#")?M.eat("x")?J=M.eatWhile(/[a-fA-F\d]/)&&M.eat(";"):J=M.eatWhile(/[\d]/)&&M.eat(";"):J=M.eatWhile(/[\w\.\-:]/)&&M.eat(";"),J?"atom":"error"}else return M.eatWhile(/[^&<]/),null}b.isInText=!0;function C(M,W){var V=M.next();if(V==">"||V=="/"&&M.eat(">"))return W.tokenize=b,f=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return f="equals",null;if(V=="<"){W.tokenize=b,W.state=P,W.tagName=W.tagStart=null;var U=W.tokenize(M,W);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(V)?(W.tokenize=g(V),W.stringStartCol=M.column(),W.tokenize(M,W)):(M.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(M){var W=function(V,U){for(;!V.eol();)if(V.next()==M){U.tokenize=C;break}return"string"};return W.isInAttribute=!0,W}function w(M,W){return function(V,U){for(;!V.eol();){if(V.match(W)){U.tokenize=b;break}V.next()}return M}}function x(M){return function(W,V){for(var U;(U=W.next())!=null;){if(U=="<")return V.tokenize=x(M+1),V.tokenize(W,V);if(U==">")if(M==1){V.tokenize=b;break}else return V.tokenize=x(M-1),V.tokenize(W,V)}return"meta"}}function S(M){return M&&M.toLowerCase()}function E(M,W,V){this.prev=M.context,this.tagName=W||"",this.indent=M.indented,this.startOfLine=V,(c.doNotIndent.hasOwnProperty(W)||M.context&&M.context.noIndent)&&(this.noIndent=!0)}function N(M){M.context&&(M.context=M.context.prev)}function _(M,W){for(var V;;){if(!M.context||(V=M.context.tagName,!c.contextGrabbers.hasOwnProperty(S(V))||!c.contextGrabbers[S(V)].hasOwnProperty(S(W))))return;N(M)}}function P(M,W,V){return M=="openTag"?(V.tagStart=W.column(),I):M=="closeTag"?T:P}function I(M,W,V){return M=="word"?(V.tagName=W.current(),m="tag",z):c.allowMissingTagName&&M=="endTag"?(m="tag bracket",z(M,W,V)):(m="error",I)}function T(M,W,V){if(M=="word"){var U=W.current();return V.context&&V.context.tagName!=U&&c.implicitlyClosed.hasOwnProperty(S(V.context.tagName))&&N(V),V.context&&V.context.tagName==U||c.matchClosing===!1?(m="tag",L):(m="tag error",A)}else return c.allowMissingTagName&&M=="endTag"?(m="tag bracket",L(M,W,V)):(m="error",A)}function L(M,W,V){return M!="endTag"?(m="error",L):(N(V),P)}function A(M,W,V){return m="error",L(M,W,V)}function z(M,W,V){if(M=="word")return m="attribute",Y;if(M=="endTag"||M=="selfcloseTag"){var U=V.tagName,J=V.tagStart;return V.tagName=V.tagStart=null,M=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(S(U))?_(V,U):(_(V,U),V.context=new E(V,U,J==V.indented)),P}return m="error",z}function Y(M,W,V){return M=="equals"?O:(c.allowMissing||(m="error"),z(M,W,V))}function O(M,W,V){return M=="string"?$:M=="word"&&c.allowUnquoted?(m="string",z):(m="error",z(M,W,V))}function $(M,W,V){return M=="string"?$:z(M,W,V)}return{startState:function(M){var W={tokenize:b,state:P,indented:M||0,tagName:null,tagStart:null,context:null};return M!=null&&(W.baseIndent=M),W},token:function(M,W){if(!W.tagName&&M.sol()&&(W.indented=M.indentation()),M.eatSpace())return null;f=null;var V=W.tokenize(M,W);return(V||f)&&V!="comment"&&(m=null,W.state=W.state(f||V,M,W),m&&(V=m=="error"?V+" error":m)),V},indent:function(M,W,V){var U=M.context;if(M.tokenize.isInAttribute)return M.tagStart==M.indented?M.stringStartCol+1:M.indented+l;if(U&&U.noIndent)return n.Pass;if(M.tokenize!=C&&M.tokenize!=b)return V?V.match(/^(\s*)/)[0].length:0;if(M.tagName)return c.multilineTagIndentPastTag!==!1?M.tagStart+M.tagName.length+2:M.tagStart+l*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(M){M.state==O&&(M.state=z)},xmlCurrentTag:function(M){return M.tagName?{name:M.tagName,close:M.type=="closeTag"}:null},xmlCurrentContext:function(M){for(var W=[],V=M.context;V;V=V.prev)W.push(V.tagName);return W.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),aI.exports}var eW=l2e();const c2e=cu(eW),tW=Bw({__proto__:null,default:c2e},[eW]);(function(t,e){(function(n){n(hu)})(function(n){var r="CodeMirror-activeline",s="CodeMirror-activeline-background",a="CodeMirror-activeline-gutter";n.defineOption("styleActiveLine",!1,function(p,f,m){var b=m==n.Init?!1:m;f!=b&&(b&&(p.off("beforeSelectionChange",d),i(p),delete p.state.activeLines),f&&(p.state.activeLines=[],c(p,p.listSelections()),p.on("beforeSelectionChange",d)))});function i(p){for(var f=0;f2&&_.token&&typeof _.token!="string"){for(var T=2;T-1)return n.Pass;var x=C.indent.length-1,S=m[C.state];e:for(;;){for(var E=0;E{var S;const{options:n={},value:r="",width:s="100%",height:a="100%",isDark:i=!1,isCmd:l=!1,autofocus:c=!0,lineWrapping:d,lineNumbers:p=!0,lazyLoadMode:f=!0}=t,m=v.useRef(null),b=v.useRef(null),C=v.useRef(t),g={tabSize:2,scrollbarStyle:"simple",lineNumbers:p,viewportMargin:1/0,styleActiveLine:!0,lineWrapping:d,autofocus:c,lineNumberFormatter:E=>l?">_":"".concat(E),showCursorWhenSelecting:!0};v.useImperativeHandle(e,()=>({editor:m,textarea:b.current})),C.current=t;function w(){const N=Object.keys(t).filter(P=>/^on+/.test(P)),_={};return N.forEach(P=>{const I=P.slice(2);I&&I[0]&&(_[P]=I.replace(I[0],I[0].toLowerCase()))}),_}function x(_){return ge(this,arguments,function*(E,N={}){if(typeof N=="object"&&window){const P=F1.findModeByName(N.mode||"");f&&P&&P.mode&&(P.mode==="dart"&&(yield ke(()=>import("./clike-sVYb-QDY.js").then(I=>I.c),[])),yield d2e("codemirror/mode/".concat(P.mode,"/").concat(P.mode))),P&&(N.mode=P.mime),Object.keys(N).forEach(I=>{(N[I]||N[I]===!1)&&JSON.stringify(N[I])&&E.setOption(I,N[I])})}})}return v.useEffect(()=>{if(!m.current&&b.current){const E=hu.fromTextArea(b.current,R(R({},g),n)),N=w();Object.keys(N).forEach(_=>{E.on(N[_],(...P)=>C.current[_](...P))}),(s||a)&&E.setSize(s,a),m.current=E,x(E,R(R({},g),n))}return()=>{m.current&&(m.current.toTextArea(),m.current=null)}},[b.current]),v.useMemo(()=>{if(!m.current)return;const E=m.current.getValue();r!==void 0&&r!==E&&m.current.setValue(r)},[r,m]),v.useMemo(()=>{m.current&&m.current.setSize(s,a)},[s,a,m]),v.useMemo(()=>{m.current&&x(m.current,R(R({},g),n))},[m,n]),o.jsxs("div",{className:"".concat(i?"code-is-dark":"code-is-light"," w-full"),children:[o.jsx("textarea",{ref:b,defaultValue:r,className:"hidden"}),o.jsx(ve,{className:"absolute w-full items-end justify-end h-0",children:o.jsx("div",{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5 relative top-[-16px] right-[36px] select-none",children:(S=n.mode)==null?void 0:S.toString()})})]})});function d2e(t){switch(t){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return ke(()=>import("./apl-DPc8-0kw.js").then(e=>e.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return ke(()=>import("./asciiarmor-4dWN3q2R.js").then(e=>e.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return ke(()=>import("./asn.1-DpZucftO.js").then(e=>e.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return ke(()=>import("./asterisk-BqfbvXfk.js").then(e=>e.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return ke(()=>import("./brainfuck-4gkQrtps.js").then(e=>e.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return ke(()=>import("./clike-sVYb-QDY.js").then(e=>e.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return ke(()=>import("./clojure-_p1sPkR2.js").then(e=>e.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return ke(()=>import("./cmake-DHzx6wpn.js").then(e=>e.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return ke(()=>import("./cobol-CMUPkVPk.js").then(e=>e.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return ke(()=>import("./coffeescript-DBSS_8nW.js").then(e=>e.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return ke(()=>import("./commonlisp-B_RZ0L8A.js").then(e=>e.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return ke(()=>import("./crystal-DFfCpls_.js").then(e=>e.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return ke(()=>import("./css-DjQyQoVX.js").then(e=>e.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return ke(()=>import("./cypher-B7-rmFXs.js").then(e=>e.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return ke(()=>import("./d-0fwle5r1.js").then(e=>e.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return ke(()=>import("./dart-BmTPStMN.js").then(e=>e.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return ke(()=>import("./diff-BK1zMhyk.js").then(e=>e.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return ke(()=>import("./django-zZkj-Hqi.js").then(e=>e.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return ke(()=>import("./dockerfile-C1rxoPFN.js").then(e=>e.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return ke(()=>import("./dtd-DbN8nk9s.js").then(e=>e.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return ke(()=>import("./dylan-CaT5sunF.js").then(e=>e.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return ke(()=>import("./ebnf-t_2f6tWn.js").then(e=>e.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return ke(()=>import("./ecl-CUfKsVWv.js").then(e=>e.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return ke(()=>import("./eiffel-Dke9VK8D.js").then(e=>e.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return ke(()=>import("./elm-_2cYor_-.js").then(e=>e.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return ke(()=>import("./erlang-DlGJpPOA.js").then(e=>e.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return ke(()=>import("./factor-Du1swcsl.js").then(e=>e.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return ke(()=>import("./fcl-7ZBgVnY8.js").then(e=>e.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return ke(()=>import("./forth-wn3wzAUB.js").then(e=>e.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return ke(()=>import("./fortran-ve-4AZ2-.js").then(e=>e.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return ke(()=>import("./gas-DtawV3pS.js").then(e=>e.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return ke(()=>import("./gfm-CjkhhYnD.js").then(e=>e.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return ke(()=>import("./gherkin-Da6_ljSx.js").then(e=>e.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return ke(()=>import("./go-Dgi7Lbsk.js").then(e=>e.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return ke(()=>import("./groovy-BCKYlnUy.js").then(e=>e.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return ke(()=>import("./haml-C5Q82PRH.js").then(e=>e.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return ke(()=>import("./handlebars-Ccn22PqS.js").then(e=>e.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return ke(()=>import("./haskell-WHZByqiW.js").then(e=>e.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return ke(()=>import("./haskell-literate-CnpdECF_.js").then(e=>e.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return ke(()=>import("./haxe-QFJb03Ax.js").then(e=>e.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return ke(()=>import("./htmlembedded-BowV9kW5.js").then(e=>e.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return ke(()=>import("./htmlmixed-CnSFGeVC.js").then(e=>e.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return ke(()=>import("./http-CaRpA_in.js").then(e=>e.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return ke(()=>import("./idl-5bPmP5bV.js").then(e=>e.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return ke(()=>Promise.resolve().then(()=>JU),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return ke(()=>import("./jinja2-ChULB2Fk.js").then(e=>e.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return ke(()=>import("./jsx-Dgyo4MRd.js").then(e=>e.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return ke(()=>import("./julia-zuaQ18y_.js").then(e=>e.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return ke(()=>import("./livescript-Cdi6oIhP.js").then(e=>e.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return ke(()=>import("./lua-nnFKfH7P.js").then(e=>e.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return ke(()=>import("./markdown-DpnrNzok.js").then(e=>e.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return ke(()=>import("./mathematica-hWuwYCTp.js").then(e=>e.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return ke(()=>import("./mbox-B_c5i4tT.js").then(e=>e.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return ke(()=>import("./mirc-Bo5BSnbu.js").then(e=>e.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return ke(()=>import("./mllike-v65ZXsXL.js").then(e=>e.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return ke(()=>import("./modelica-lS_WypKi.js").then(e=>e.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return ke(()=>import("./mscgen-B_GzFF_Z.js").then(e=>e.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return ke(()=>import("./mumps-DMUKVayQ.js").then(e=>e.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return ke(()=>import("./nginx-CffsXSm0.js").then(e=>e.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return ke(()=>import("./nsis-Dt-oCaGG.js").then(e=>e.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return ke(()=>import("./ntriples-DLcALhbn.js").then(e=>e.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return ke(()=>import("./octave-imH2yerB.js").then(e=>e.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return ke(()=>import("./oz-DI7An-ct.js").then(e=>e.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return ke(()=>import("./pascal-BjHxOUZ0.js").then(e=>e.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return ke(()=>import("./pegjs-Cgw_0Smi.js").then(e=>e.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return ke(()=>import("./perl-m4lN82wh.js").then(e=>e.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return ke(()=>import("./php-P11_atJ4.js").then(e=>e.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return ke(()=>import("./pig-DvZFIZiC.js").then(e=>e.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return ke(()=>import("./powershell-DLyBGlUV.js").then(e=>e.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return ke(()=>import("./properties-Bs9Ekzv_.js").then(e=>e.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return ke(()=>import("./protobuf-D7aM91TC.js").then(e=>e.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return ke(()=>import("./pug-Bb9DWsBH.js").then(e=>e.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return ke(()=>import("./puppet-BwYp0v8r.js").then(e=>e.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return ke(()=>import("./python-Dj4em9Dm.js").then(e=>e.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return ke(()=>import("./q-CVjXuXgv.js").then(e=>e.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return ke(()=>import("./r-CfIsJawz.js").then(e=>e.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return ke(()=>import("./rpm-O5fC39Z0.js").then(e=>e.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return ke(()=>import("./rst-CyVqi5D5.js").then(e=>e.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return ke(()=>import("./ruby-D5w_YFnv.js").then(e=>e.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return ke(()=>import("./rust--P7FyHZ0.js").then(e=>e.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return ke(()=>import("./sas-C058GQZJ.js").then(e=>e.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return ke(()=>import("./sass-NOE7V4J8.js").then(e=>e.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return ke(()=>import("./scheme-CCKduSqe.js").then(e=>e.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return ke(()=>import("./shell-BKUVH7-H.js").then(e=>e.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return ke(()=>import("./sieve-Chdq9iGs.js").then(e=>e.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return ke(()=>import("./slim-DrhHX8Fp.js").then(e=>e.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return ke(()=>import("./smalltalk-BtLZNwU-.js").then(e=>e.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return ke(()=>import("./smarty-D0_e_fu2.js").then(e=>e.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return ke(()=>import("./solr-TffWdyfX.js").then(e=>e.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return ke(()=>import("./soy-CaLVNzhZ.js").then(e=>e.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return ke(()=>import("./sparql-J2HZEfJm.js").then(e=>e.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return ke(()=>import("./spreadsheet-De_UeHev.js").then(e=>e.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return ke(()=>import("./sql-3T6ibqDq.js").then(e=>e.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return ke(()=>import("./stex-DSKMaE3f.js").then(e=>e.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return ke(()=>import("./stylus-DWX0hVte.js").then(e=>e.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return ke(()=>import("./swift-zp1xtzap.js").then(e=>e.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return ke(()=>import("./tcl-6Xgq87Zw.js").then(e=>e.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return ke(()=>import("./textile-B2k0xri9.js").then(e=>e.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return ke(()=>import("./tiddlywiki-CEI5uSZ_.js").then(e=>e.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return ke(()=>import("./tiki-C91OnUZ5.js").then(e=>e.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return ke(()=>import("./toml-Czp5aboK.js").then(e=>e.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return ke(()=>import("./tornado-C7GjWIPK.js").then(e=>e.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return ke(()=>import("./troff-BxVgEYLN.js").then(e=>e.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return ke(()=>import("./ttcn-C8KYqKVj.js").then(e=>e.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return ke(()=>import("./ttcn-cfg-DZ-9-vM3.js").then(e=>e.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return ke(()=>import("./turtle-CJGN0gCa.js").then(e=>e.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return ke(()=>import("./twig-CYDhqQXR.js").then(e=>e.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return ke(()=>import("./vb-j42w1Tl7.js").then(e=>e.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return ke(()=>import("./vbscript-BsewLBA_.js").then(e=>e.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return ke(()=>import("./velocity-Psz-M91k.js").then(e=>e.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return ke(()=>import("./verilog-934pOG4C.js").then(e=>e.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return ke(()=>import("./vhdl-DT6DHhYu.js").then(e=>e.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return ke(()=>import("./vue-CTgTb5mC.js").then(e=>e.v),__vite__mapDeps([29,5,30,4,23,31,18,3,10,11]));case"codemirror/mode/wast/wast":case"codemirror/mode/wast/wast.js":return ke(()=>import("./wast-C0T_jfne.js").then(e=>e.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return ke(()=>import("./webidl-q-n5uYHd.js").then(e=>e.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return ke(()=>Promise.resolve().then(()=>tW),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return ke(()=>import("./xquery-DdKRFITW.js").then(e=>e.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return ke(()=>import("./yacas-A827DJ-h.js").then(e=>e.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return ke(()=>import("./yaml-C7gffGpj.js").then(e=>e.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return ke(()=>import("./yaml-frontmatter-dNkK8CMx.js").then(e=>e.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return ke(()=>import("./z80-CAimCid_.js").then(e=>e.z),[]);default:return new Promise(function(e,n){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))})}}const f2e="p",h2e="r",p2e="o",m2e="b",g2e="e",v2e="t",x2e="a",Un=Rt(null),q0=p2e+h2e+f2e,Mx=x2e+v2e+g2e+m2e;function y2e(){return Un.value&&Un.value.expires&&Mr().isAfter(Mr(Un.value.expires))}function Dx(){return Un.value&&Un.value.expires&&Mr(1718145195920).isAfter(Mr(Un.value.expires),"day")}function nW(){var r;const t=Un.value?Mr(Un.value.expires).diff(Mr(),"days"):null,e=(r=Un.value)!=null&&r.expires?Mr().diff(Mr(Un.value.expires),"days"):null,n=Un.value&&Un.value.expires?Mr(Un.value.expires).format("DD MMMM, YYYY"):"";return{licenseExpInDays:t,licenseExpiresDate:n,licenseExpiredDaysAgo:e}}function b2e(){var n,r;const t=(n=Un.value)!=null&&n.issued?Mr().diff(Mr(Un.value.issued),"days"):null,e=(r=Un.value)!=null&&r.issued?Mr(Un.value.issued).format("DD MMMM, YYYY"):"";return{licenseIssuedDaysAgo:t>0?t:null,licenseIssuedDate:e}}(function(t,e){const n=jw,r=t();for(;;)try{if(parseInt(n(453))/1+parseInt(n(463))/2+-parseInt(n(455))/3*(-parseInt(n(452))/4)+-parseInt(n(456))/5+parseInt(n(457))/6*(parseInt(n(465))/7)+-parseInt(n(451))/8+-parseInt(n(462))/9===e)break;r.push(r.shift())}catch(s){r.push(r.shift())}})(Ew,740283);function w2e(t){const e=jw,n=t[e(458)]("")[e(454)]()[e(464)](""),r=Un[e(461)];return r!=null&&r.id&&(r!=null&&r[e(460)])&&Array.isArray(r.features)?r.features[e(459)](n):!1}function jw(t,e){const n=Ew();return jw=function(r,s){return r=r-451,n[r]},jw(t,e)}function Ew(){const t=["value","19224396aNppYF","989064IhZSmn","join","7LPwpzD","1028336fHlCyR","221084cjBjJp","931447iSDAoO","reverse","39litIBm","1170430ScfMYR","6566718isVFIu","split","includes","features"];return Ew=function(){return t},Ew()}function qh(){const t=xl(q0),e=xl(Mx),n=Ix();let r;e:if(t&&!e){if(n){r=!Dx();break e}r=!0}else r=!!(e&&!n);return r}function xl(t){var e=sn(2);try{return v.useMemo(()=>w2e(t),[Un.value])}finally{e.f()}}function rW(){var e;let t;return t=(e=Un==null?void 0:Un.value)==null?void 0:e.language,t}function Ix(){const t=Te(1);let e,n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=y2e(),t[0]=n):n=t[0],e=n,e}const Jl=t=>{const e=Te(4),{className:n}=t,r=n===void 0?"":n,s=qh(),{t:a}=Gt();let i;return e[0]!==s||e[1]!==r||e[2]!==a?(i=!s&&o.jsx(St,{className:"ml-2 ".concat(r),variant:"pro",children:a("Pro",{ns:"common"})}),e[0]=s,e[1]=r,e[2]=a,e[3]=i):i=e[3],i};function sW({id:t}){var e=sn(1);try{const{t:n}=Gt(),r=it(!1),{addImageToItemById:s}=pge(),{uploadImageToItemById:a,uploadImageToItemReset:i}=mge(),l=v.useRef(null),c=v.useRef(null),d=it(!1);v.useEffect(()=>{var g,w,x,S,E,N;const f=_=>{var P;(P=c.current)==null||P.classList.add("bg-blue-50","!border-blue-400"),_.preventDefault(),_.stopPropagation()},m=_=>{var P;(P=c.current)==null||P.classList.remove("bg-blue-50","!border-blue-400"),_.preventDefault(),_.stopPropagation()},b=_=>{var I;_.preventDefault(),_.stopPropagation();const P=(I=_.dataTransfer)==null?void 0:I.files[0];if(!P)i();else{const T=new FileReader,L=P.type;T.readAsArrayBuffer(P),T.onload=A=>ge(this,null,function*(){var Y,O;const z=(Y=A.target)==null?void 0:Y.result;if(z){const $=Array.from(new Uint8Array(z));d.value=!0,requestAnimationFrame(()=>ge(this,null,function*(){try{yield a({itemId:t,buffer:$,fileType:L})}catch(M){console.error("Error during file upload",M)}d.value=!1}))}i(),r.value=!1,(O=l.current)==null||O.close()})}};if(!c.current)return;(g=c.current)==null||g.addEventListener("dragenter",f),(w=c.current)==null||w.addEventListener("dragleave",m),(x=c.current)==null||x.addEventListener("dragover",f),(S=c.current)==null||S.addEventListener("drop",b);const C=(N=(E=c.current)==null?void 0:E.children)!=null?N:[];for(const _ of C)_.addEventListener("dragover",f),_.addEventListener("dragenter",f),_.addEventListener("dragleave",m),_.addEventListener("drop",b);return()=>{var P,I,T,L,A,z;(P=c.current)==null||P.removeEventListener("dragenter",f),(I=c.current)==null||I.removeEventListener("dragleave",m),(T=c.current)==null||T.removeEventListener("dragover",f),(L=c.current)==null||L.removeEventListener("drop",b);const _=(z=(A=c.current)==null?void 0:A.children)!=null?z:[];for(const Y of _)Y.removeEventListener("dragover",f),Y.removeEventListener("dragenter",f),Y.removeEventListener("dragleave",m),Y.removeEventListener("drop",b)}},[c.current]),v.useEffect(()=>{const f=Xi("tauri://file-drop",m=>{var b,C;((b=m.payload)==null?void 0:b.length)>0&&(s({itemId:t,imagePath:m.payload[0]}),r.value=!1,(C=l.current)==null||C.close())});return()=>{f.then(m=>{m()})}},[]);const p=()=>{var f;r.value=!1,i(),(f=l.current)==null||f.close()};return o.jsxs(Sa,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:f=>{var m;f||(m=l.current)==null||m.close()},children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:n("Add image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-slate-100 flex items-center justify-center hover:bg-slate-50/100 text-slate-400 hover:text-slate-500",onClick:()=>{r.value=!0},children:o.jsx($z,{size:26,className:"cursor-pointer"})})})})}),o.jsx(ia,{sideOffset:16,align:"center",autoFocus:!0,onOpenAutoFocus:()=>{setTimeout(()=>{var f,m;(f=c.current)==null||f.focus(),(m=c.current)==null||m.click()},300)},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-72 shadow-xl z-100",onEscapeKeyDown:()=>{p()},onPointerDownOutside:()=>{p()},children:r.value&&o.jsxs(ve,{className:"flex-col drop-zone p-1.5 border-2 border-slate-300 border-dashed rounded-md",ref:c,children:[o.jsx(Ln,{h:2}),d.value?o.jsx(ok,{size:"large"}):o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone",children:n("Drop image file here, or use a separate window for drag and drop.",{ns:"dashboard"})}),o.jsx(Ln,{h:5,className:"drop-zone"}),o.jsxs(ve,{className:"drop-zone",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 drop-zone hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{p()},children:n("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 drop-zone hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const f=new vh("drop-image",{skipTaskbar:!0,title:n("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-image.html?"+dr.language});f.once(Ns.WINDOW_CLOSE_REQUESTED,function(){var m;r.value=!1,(m=l==null?void 0:l.current)==null||m.close()}),f.once("tauri://created",function(){f.setCursorVisible(!1),f.setFocus(),f.setSize(new uv(260,260)),f.center(),f.show()}),f.once("tauri://error",function(){var m;(m=l==null?void 0:l.current)==null||m.close()}),l.current=f},children:n("Open Window",{ns:"common"})})]}),o.jsx(Ln,{h:2})]})})]})}finally{e.f()}}function k2e(t){var c,d;const e=Te(8),n=(c=t.width)!=null?c:"24px",r=(d=t.height)!=null?d:"24px";let s,a,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"m6.033 4.294-.007 7.865M21.25 10.12v-3c0-1.16-.84-2-2-2h-7m-9 9v2c0 1.05.95 2 2 2h3"}),a=o.jsx("rect",{width:"10",height:"7",x:"11.75",y:"12.707",ry:"2"}),i=o.jsx("path",{d:"m2.25 8.089 7.928.007"}),e[0]=s,e[1]=a,e[2]=i):(s=e[0],a=e[1],i=e[2]);let l;return e[3]!==n||e[4]!==r||e[5]!==t.className||e[6]!==t.onClick?(l=o.jsxs("svg",{width:n,height:r,className:t.className,onClick:t.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s,a,i]}),e[3]=n,e[4]=r,e[5]=t.className,e[6]=t.onClick,e[7]=l):l=e[7],l}function aW({onCallBack:t}){var e=sn(1);try{const{t:n}=Gt(),r=it(!1),s=v.useRef(null),a=v.useRef(null);v.useEffect(()=>{const l=Xi("tauri://file-drop",c=>{var d,p;((d=c.payload)==null?void 0:d.length)>0&&(t(c.payload[0]),r.value=!1,(p=a.current)==null||p.close())});return()=>{l.then(c=>{c()})}},[]);const i=()=>{var l;r.value=!1,(l=a.current)==null||l.close()};return o.jsxs(Sa,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:l=>{var c;l||(c=a.current)==null||c.close()},children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:n("Drag & Drop Path",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-10 w-10 text-slate-400 border-0 hover:text-blue-400 cl",onClick:()=>{r.value=!0},children:o.jsx(k2e,{width:22,height:23,className:"scale-y-[-1]"})})})})})}),o.jsx(ia,{sideOffset:10,align:"center",onOpenAutoFocus:()=>{setTimeout(()=>{var l,c;(l=s.current)==null||l.focus(),(c=s.current)==null||c.click()},300)},className:"bg-gray-100 w-72 shadow-xl p-2",onEscapeKeyDown:()=>{i()},onPointerDownOutside:()=>{i()},children:r.value&&o.jsxs(ve,{className:"flex-col p-1 rounded-md",ref:s,children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold",children:n("We need to open a new window where you can drag & drop file, path or application.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{i()},children:n("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200",onClick:()=>{const l=new vh("drop-path",{skipTaskbar:!0,title:n("Drop Zone",{ns:"common"}),alwaysOnTop:!0,fileDropEnabled:!0,decorations:!0,resizable:!1,minimizable:!1,visible:!1,center:!0,titleBarStyle:"visible",url:"drop-path.html?"+dr.language});l.once(Ns.WINDOW_CLOSE_REQUESTED,function(){var c;r.value=!1,(c=a==null?void 0:a.current)==null||c.close()}),l.once("tauri://created",function(){l.setCursorVisible(!1),l.setFocus(),l.setSize(new uv(260,260)),l.center(),l.show()}),l.once("tauri://error",function(){var c;(c=a==null?void 0:a.current)==null||c.close()}),a.current=l},children:n("Open Window",{ns:"common"})})]})]})})]})}finally{e.f()}}const Ml={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isTemplate:!1,isLink:!1,isPath:!1,detectedLanguage:""},C2e=t=>{const e=Te(182),{itemId:n,isCode:r,isImage:s,isText:a,isForm:i,isLink:l,isCommand:c,isWebRequest:d,isTemplate:p,isWebScraping:f,isPath:m,detectedLanguage:b,children:C}=t,{t:g}=Gt(),{CONST:w}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:x}=w,{updateItemById:S}=bl();let E;e[0]!==C?(E=o.jsx(Gn,{asChild:!0,children:C}),e[0]=C,e[1]=E):E=e[1];let N;e[2]!==g?(N=g("TypeMenu:::Clip Type",{ns:"common"}),e[2]=g,e[3]=N):N=e[3];let _;e[4]!==N?(_=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:N})}),e[4]=N,e[5]=_):_=e[5];let P;e[6]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx(kn,{}),e[6]=P):P=e[6];const I=!!a;let T;e[7]!==S||e[8]!==n?(T=()=>{S({updatedItem:ae(R({},Ml),{isText:!0,itemId:n})})},e[7]=S,e[8]=n,e[9]=T):T=e[9];const L="".concat(a?"font-semibold":"");let A;e[10]!==g?(A=g("TypeMenu:::Plain Text",{ns:"common"}),e[10]=g,e[11]=A):A=e[11];let z;e[12]!==L||e[13]!==A?(z=o.jsx(re,{className:L,children:A}),e[12]=L,e[13]=A,e[14]=z):z=e[14];let Y;e[15]!==I||e[16]!==T||e[17]!==z?(Y=o.jsx(Cn,{checked:I,onClick:T,children:z}),e[15]=I,e[16]=T,e[17]=z,e[18]=Y):Y=e[18];const O=!!l;let $;e[19]!==S||e[20]!==n?($=()=>{S({updatedItem:ae(R({},Ml),{isLink:!0,itemId:n})})},e[19]=S,e[20]=n,e[21]=$):$=e[21];const M="".concat(l?"font-semibold":"");let W;e[22]!==g?(W=g("TypeMenu:::Link or Email",{ns:"common"}),e[22]=g,e[23]=W):W=e[23];let V;e[24]!==M||e[25]!==W?(V=o.jsx(re,{className:M,children:W}),e[24]=M,e[25]=W,e[26]=V):V=e[26];let U;e[27]!==O||e[28]!==$||e[29]!==V?(U=o.jsx(Cn,{checked:O,onClick:$,children:V}),e[27]=O,e[28]=$,e[29]=V,e[30]=U):U=e[30];const J=!!s;let H;e[31]!==S||e[32]!==n?(H=()=>{S({updatedItem:ae(R({},Ml),{isImage:!0,itemId:n})})},e[31]=S,e[32]=n,e[33]=H):H=e[33];const F="".concat(s?"font-semibold":"");let q;e[34]!==g?(q=g("TypeMenu:::Image",{ns:"common"}),e[34]=g,e[35]=q):q=e[35];let X;e[36]!==F||e[37]!==q?(X=o.jsx(re,{className:F,children:q}),e[36]=F,e[37]=q,e[38]=X):X=e[38];let te;e[39]!==J||e[40]!==H||e[41]!==X?(te=o.jsx(Cn,{checked:J,onClick:H,children:X}),e[39]=J,e[40]=H,e[41]=X,e[42]=te):te=e[42];const ee=!!m;let G;e[43]!==S||e[44]!==n?(G=()=>{S({updatedItem:ae(R({},Ml),{isPath:!0,itemId:n})})},e[43]=S,e[44]=n,e[45]=G):G=e[45];const Z="".concat(m?"font-semibold":"");let le;e[46]!==g?(le=g("TypeMenu:::File, Path or App",{ns:"common"}),e[46]=g,e[47]=le):le=e[47];let se;e[48]!==Z||e[49]!==le?(se=o.jsx(re,{className:Z,children:le}),e[48]=Z,e[49]=le,e[50]=se):se=e[50];let de;e[51]!==ee||e[52]!==G||e[53]!==se?(de=o.jsx(Cn,{checked:ee,onClick:G,children:se}),e[51]=ee,e[52]=G,e[53]=se,e[54]=de):de=e[54];let ce;e[55]!==r?(ce=r?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[55]=r,e[56]=ce):ce=e[56];const ye="".concat(r?"!font-semibold":"");let pe;e[57]!==g?(pe=g("TypeMenu:::Code Snippet",{ns:"common"}),e[57]=g,e[58]=pe):pe=e[58];let me;e[59]!==ye||e[60]!==pe?(me=o.jsxs(re,{className:ye,children:[pe," ..."]}),e[59]=ye,e[60]=pe,e[61]=me):me=e[61];let be;e[62]!==ce||e[63]!==me?(be=o.jsxs(qs,{children:[ce,me]}),e[62]=ce,e[63]=me,e[64]=be):be=e[64];let Ee;e[65]!==b||e[66]!==g?(Ee=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:b?o.jsx(re,{children:cI(b)}):o.jsx(re,{children:g("TypeMenu:::Select Language",{ns:"common"})})}),e[65]=b,e[66]=g,e[67]=Ee):Ee=e[67];let We;e[68]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsx(kn,{}),e[68]=We):We=e[68];let qe;e[69]===Symbol.for("react.memo_cache_sentinel")?(qe={height:"auto",maxHeight:"290px"},e[69]=qe):qe=e[69];let ot;if(e[70]!==b||e[71]!==S||e[72]!==n||e[73]!==x){let ct;e[75]!==b||e[76]!==S||e[77]!==n?(ct=xe=>o.jsx(Cn,{checked:b===xe,className:"".concat(b===xe?"font-semibold ":""),onClick:()=>{S({updatedItem:ae(R({},Ml),{isCode:!0,detectedLanguage:xe,itemId:n})})},children:cI(xe)},xe),e[75]=b,e[76]=S,e[77]=n,e[78]=ct):ct=e[78],ot=x.map(ct),e[70]=b,e[71]=S,e[72]=n,e[73]=x,e[74]=ot}else ot=e[74];let Ve;e[79]!==ot?(Ve=o.jsx(or,{className:"code-filter",style:qe,autoHide:!1,children:ot}),e[79]=ot,e[80]=Ve):Ve=e[80];let Ge;e[81]!==Ee||e[82]!==Ve?(Ge=o.jsxs(Ks,{className:"w-40",children:[Ee,We,Ve]}),e[81]=Ee,e[82]=Ve,e[83]=Ge):Ge=e[83];let ft;e[84]!==be||e[85]!==Ge?(ft=o.jsxs(sa,{children:[be,Ge]}),e[84]=be,e[85]=Ge,e[86]=ft):ft=e[86];const Ie=!!p;let Ke;e[87]!==S||e[88]!==n?(Ke=()=>{S({updatedItem:ae(R({},Ml),{isTemplate:!0,itemId:n})})},e[87]=S,e[88]=n,e[89]=Ke):Ke=e[89];const ut="".concat(p?"font-semibold":"");let $e;e[90]!==g?($e=g("TypeMenu:::Template Fill",{ns:"common"}),e[90]=g,e[91]=$e):$e=e[91];let ht;e[92]===Symbol.for("react.memo_cache_sentinel")?(ht=o.jsx(Jl,{}),e[92]=ht):ht=e[92];let Fe;e[93]!==ut||e[94]!==$e?(Fe=o.jsxs(re,{className:ut,children:[$e,ht]}),e[93]=ut,e[94]=$e,e[95]=Fe):Fe=e[95];let pt;e[96]!==Ie||e[97]!==Ke||e[98]!==Fe?(pt=o.jsx(Cn,{checked:Ie,onClick:Ke,children:Fe}),e[96]=Ie,e[97]=Ke,e[98]=Fe,e[99]=pt):pt=e[99];const Qe=!!i;let Lt;e[100]!==S||e[101]!==n?(Lt=()=>{S({updatedItem:ae(R({},Ml),{isForm:!0,itemId:n})})},e[100]=S,e[101]=n,e[102]=Lt):Lt=e[102];const Ut="".concat(i?"font-semibold":"");let wt;e[103]!==g?(wt=g("TypeMenu:::Form Auto Fill",{ns:"common"}),e[103]=g,e[104]=wt):wt=e[104];let Xt;e[105]===Symbol.for("react.memo_cache_sentinel")?(Xt=o.jsx(Jl,{}),e[105]=Xt):Xt=e[105];let $t;e[106]!==Ut||e[107]!==wt?($t=o.jsxs(re,{className:Ut,children:[wt,Xt]}),e[106]=Ut,e[107]=wt,e[108]=$t):$t=e[108];let tn;e[109]!==Qe||e[110]!==Lt||e[111]!==$t?(tn=o.jsx(Cn,{checked:Qe,onClick:Lt,children:$t}),e[109]=Qe,e[110]=Lt,e[111]=$t,e[112]=tn):tn=e[112];let Pt;e[113]!==c||e[114]!==d||e[115]!==f?(Pt=c||d||f?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[113]=c,e[114]=d,e[115]=f,e[116]=Pt):Pt=e[116];const Ue="".concat(c||d||f?"!font-semibold":"");let Je;e[117]!==g?(Je=g("TypeMenu:::Run, Execute",{ns:"common"}),e[117]=g,e[118]=Je):Je=e[118];let jt;e[119]===Symbol.for("react.memo_cache_sentinel")?(jt=o.jsx(Jl,{}),e[119]=jt):jt=e[119];let we;e[120]!==Ue||e[121]!==Je?(we=o.jsxs(re,{className:Ue,children:[Je,jt]}),e[120]=Ue,e[121]=Je,e[122]=we):we=e[122];let Se;e[123]!==Pt||e[124]!==we?(Se=o.jsxs(qs,{children:[Pt,we]}),e[123]=Pt,e[124]=we,e[125]=Se):Se=e[125];const De=!!c;let nt;e[126]!==S||e[127]!==n?(nt=()=>{S({updatedItem:ae(R({},Ml),{isCommand:!0,itemId:n})})},e[126]=S,e[127]=n,e[128]=nt):nt=e[128];const Pe="".concat(c?"font-semibold":"");let gt;e[129]!==g?(gt=g("TypeMenu:::Shell Command",{ns:"common"}),e[129]=g,e[130]=gt):gt=e[130];let Ze;e[131]!==Pe||e[132]!==gt?(Ze=o.jsx(re,{className:Pe,children:gt}),e[131]=Pe,e[132]=gt,e[133]=Ze):Ze=e[133];let Re;e[134]!==De||e[135]!==nt||e[136]!==Ze?(Re=o.jsx(Cn,{checked:De,onClick:nt,children:Ze}),e[134]=De,e[135]=nt,e[136]=Ze,e[137]=Re):Re=e[137];const Oe=!!d;let et;e[138]!==S||e[139]!==n?(et=()=>{S({updatedItem:ae(R({},Ml),{isWebRequest:!0,itemId:n})})},e[138]=S,e[139]=n,e[140]=et):et=e[140];const Et="".concat(d?"font-semibold":"");let bt;e[141]!==g?(bt=g("TypeMenu:::Web Request (HTTP)",{ns:"common"}),e[141]=g,e[142]=bt):bt=e[142];let _t;e[143]!==Et||e[144]!==bt?(_t=o.jsx(re,{className:Et,children:bt}),e[143]=Et,e[144]=bt,e[145]=_t):_t=e[145];let Mt;e[146]!==Oe||e[147]!==et||e[148]!==_t?(Mt=o.jsx(Cn,{checked:Oe,onClick:et,children:_t}),e[146]=Oe,e[147]=et,e[148]=_t,e[149]=Mt):Mt=e[149];const an=!!f;let dn;e[150]!==S||e[151]!==n?(dn=()=>{S({updatedItem:ae(R({},Ml),{isWebScraping:!0,itemId:n})})},e[150]=S,e[151]=n,e[152]=dn):dn=e[152];const fn="".concat(f?"font-semibold":"");let mn;e[153]!==g?(mn=g("TypeMenu:::Web Scraper / Parser",{ns:"common"}),e[153]=g,e[154]=mn):mn=e[154];let hn;e[155]!==fn||e[156]!==mn?(hn=o.jsx(re,{className:fn,children:mn}),e[155]=fn,e[156]=mn,e[157]=hn):hn=e[157];let nn;e[158]!==an||e[159]!==dn||e[160]!==hn?(nn=o.jsx(Cn,{checked:an,onClick:dn,children:hn}),e[158]=an,e[159]=dn,e[160]=hn,e[161]=nn):nn=e[161];let on;e[162]!==Re||e[163]!==Mt||e[164]!==nn?(on=o.jsxs(Ks,{className:"w-52",children:[Re,Mt,nn]}),e[162]=Re,e[163]=Mt,e[164]=nn,e[165]=on):on=e[165];let Sn;e[166]!==Se||e[167]!==on?(Sn=o.jsxs(sa,{children:[Se,on]}),e[166]=Se,e[167]=on,e[168]=Sn):Sn=e[168];let pn;e[169]!==_||e[170]!==Y||e[171]!==U||e[172]!==te||e[173]!==de||e[174]!==ft||e[175]!==pt||e[176]!==tn||e[177]!==Sn?(pn=o.jsxs(Wn,{sideOffset:12,align:"center",children:[_,P,Y,U,te,de,ft,pt,tn,Sn]}),e[169]=_,e[170]=Y,e[171]=U,e[172]=te,e[173]=de,e[174]=ft,e[175]=pt,e[176]=tn,e[177]=Sn,e[178]=pn):pn=e[178];let rn;return e[179]!==E||e[180]!==pn?(rn=o.jsxs(Kn,{children:[E,pn]}),e[179]=E,e[180]=pn,e[181]=rn):rn=e[181],rn};function cI(t){return t.charAt(0).toUpperCase()+t.slice(1)}function S2e({clipId:t,onComplete:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),a=()=>{s.value=!1,pi.value=null};v.useEffect(()=>()=>{a()},[]);const{currentCollectionId:i}=Tt(Ar),{deleteItemById:l}=Y5();return o.jsxs(Sa,{defaultOpen:!1,open:s.value,children:[o.jsx(ja,{asChild:!0,children:o.jsxs(je,{variant:"ghost",title:r("Delete Clip",{ns:"dashboard"}),onClick:()=>{s.value=!0,pi.value=t},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[o.jsx(kr,{size:16}),o.jsx(re,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:r("Delete",{ns:"common"})})]})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:s.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block",children:r("Are you sure you want to delete?",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{a()},children:r("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{l({itemId:t,collectionId:i}),e()},children:r("Delete Clip",{ns:"dashboard"})})]})]})})]})}finally{n.f()}}function j2e(t){const e=Te(12),{isOver:n}=t,{t:r}=Gt(),s=v.useRef(null);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{var f;(f=s.current)==null||f.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"})},e[0]=a):a=e[0];let i;e[1]!==s?(i=[s],e[1]=s,e[2]=i):i=e[2],v.useEffect(a,i);const l="flex flex-row items-center justify-center border-2 my-2 border-dashed rounded-md w-full h-16 ".concat(n?"bg-slate-50/50 dark:bg-slate-700/50 border-blue-400":"bg-slate-50 dark:bg-slate-700 border-slate-200 dark:border-slate-500");let c;e[3]!==n||e[4]!==r?(c=n?r("Drop To Add",{ns:"common"}):o.jsx(Vr,{size:23,className:"".concat(n?"text-blue-400":"text-slate-400")}),e[3]=n,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==c?(d=o.jsx(re,{className:"!text-sm !font-medium !text-blue-500 text-center",children:c}),e[6]=c,e[7]=d):d=e[7];let p;return e[8]!==s||e[9]!==l||e[10]!==d?(p=o.jsx(ne,{ref:s,className:l,children:d}),e[8]=s,e[9]=l,e[10]=d,e[11]=p):p=e[11],p}const E2e=v.memo(j2e),uI=["Tab","Enter","TabTab","TabEnter"],qg={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"},dI=["1s","2s","3s","4s","5s"],oW=["Email","Login","Username","Password","Title","Textarea","Phone","Website","Date","Name","First Name","Last Name","Company","Address","City","State","Zip","Country","Province","Text","Number","Credit Card","CVV Code","Exp. Date","Secret","License Key","Occupation","Gender","Age","Description","Birthdate","API Key","SSN","Custom"];function N2e({showLinkValidationError:t,localOptions:e}){var r,s,a,i,l,c,d,p;var n=sn(1);try{const{t:f}=Gt(),m=it(void 0),b=it(null),C=jo(m.value,300);return v.useEffect(()=>{if(C){if(t.value&&(t.value=void 0),C.length>5){const w=zr().match(C);!w||w.length>1?t.value=!0:t.value=!1}e.value.formOptions||(e.value.formOptions={fields:[],openUrl:null}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:C})})}},[C]),o.jsxs(ne,{className:"select-none mt-1",children:[e.value.formOptions.openUrl!=null&&o.jsxs(ve,{className:"text-normal",children:[o.jsx(st,{asChild:!0,text:f("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 dark:text-slate-200 border font-semibold text-xs bg-slate-100 dark:bg-slate-700/80 group hover:text-blue-500 mr-1 flex items-center ".concat(((r=e.value.formOptions)==null?void 0:r.isOpenUrlDisabled)===!0?"opacity-70 line-through":""),children:o.jsx("span",{children:f("Open",{ns:"dashboard"})})})}),o.jsx(wn,{defaultValue:(a=(s=e.value.formOptions)==null?void 0:s.openUrl)!=null?a:"",placeholder:f("Enter URL",{ns:"dashboard"}),disabled:(i=e.value.formOptions)==null?void 0:i.isOpenUrlDisabled,classNameInput:"pr-7 text-sm focus:border- ".concat(t.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(t.value===!1?"!border-green-600 !focus:border-green-600":""," ").concat(((l=e.value.formOptions)==null?void 0:l.isOpenUrlDisabled)===!0?"!bg-gray-100 dark:!bg-gray-700 opacity-70":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:t.value?o.jsx(st,{text:f("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):t.value===!1&&o.jsx(st,{text:f("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:g=>{m.value=g.target.value}}),o.jsx(je,{variant:"ghost",size:"mini",title:f("Open URL Disable / Enable",{ns:"dashboard"}),onClick:()=>{var g;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{isOpenUrlDisabled:!((g=e.value.formOptions)!=null&&g.isOpenUrlDisabled)})})},className:"".concat((c=e.value.formOptions)!=null&&c.isOpenUrlDisabled?"opacity-70":""," pl-2 h-8 flex items-center hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500"),children:(d=e.value.formOptions)!=null&&d.isOpenUrlDisabled?o.jsx(wa,{size:14}):o.jsx(qa,{size:14})}),o.jsx(je,{variant:"ghost",size:"mini",title:f("Remove Open URL",{ns:"dashboard"}),onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:null,isOpenUrlDisabled:!1})})},className:"pl-3 h-10 text-sm font-semibold hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),o.jsx(ne,{className:"my-2",children:o.jsxs(ve,{className:"gap-3 w-full justify-start",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Add Form Field",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,e.value.formOptions||(e.value.formOptions={fields:[]});const g=[...e.value.formOptions.fields];g.push({id:Date.now().toString(),type:"section",pressKeysAfterPaste:QC[0],isEnable:!0,value:""}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:g})})},children:[o.jsx(Vr,{size:12,className:"mr-1"}),f("Add Section",{ns:"dashboard"})]}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Form Fields",{ns:"dashboard"})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:oW.map(g=>o.jsx(rt,{className:"text-xs",onClick:()=>{var S;e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields],x=g==="Text"?"text":g==="Number"?"number":g==="Password"||g==="Secret"||g==="API Key"||g==="License Key"||g==="SSN"?"password":g==="CVV Code"?"passwordCode":g==="Textarea"?"textarea":g==="Credit Card"?"creditcard":"text";w.push({id:Date.now().toString(),label:g,type:x,pressKeysAfterPaste:QC[0],isEnable:!0,value:""}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})}),g==="Custom"&&(b.value=(S=w[w.length-1].id)!=null?S:null)},children:g},g))})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Key Press",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Add Key Press",{ns:"dashboard"})})}),o.jsx(kn,{}),QC.map(g=>o.jsx(rt,{className:"text-xs",onClick:()=>{e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields];w.push({id:Date.now().toString(),isPressKeysOnly:!0,isEnable:!0,pressKeysAfterPaste:g}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})})},children:qg[g]},g))]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[f("Delay",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Add Delay Time",{ns:"dashboard"})})}),o.jsx(kn,{}),dI.map(g=>o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,e.value.formOptions||(e.value.formOptions={fields:[]});const w=[...e.value.formOptions.fields];w.push({id:Date.now().toString(),isDelayOnly:!0,value:g,isEnable:!0}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:w})})},children:[g==="1s"&&"1 ".concat(f("Second",{ns:"common"})),g==="2s"&&"2 ".concat(f("Seconds",{ns:"common"})),g==="3s"&&"3 ".concat(f("Seconds",{ns:"common"})),g==="4s"&&"4 ".concat(f("Seconds",{ns:"common"})),g==="5s"&&"5 ".concat(f("Seconds",{ns:"common"}))]},g))]})]}),e.value.formOptions.openUrl==null&&o.jsx(re,{className:"!text-blue-500 hover:underline cursor-pointer text-center",size:"xs",onClick:()=>{e.value.formOptions||(e.value.formOptions={fields:[]}),e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{openUrl:"",isOpenUrlDisabled:!1})})},children:f("Add Open URL",{ns:"dashboard"})})]})}),(p=e.value.formOptions)==null?void 0:p.fields.map((g,w)=>{var P,I,T,L,A,z,Y,O;const x=g.isLabelOnTop,S=g.isLabelHidden,E=g.type==="section",N=g.id===b.value,_=g.type==="textarea";return o.jsxs(ve,{className:"".concat(g.type!=="section"?"mb-1":"mt-1"," group ").concat(x?"flex-col items-start":"items-center"," ").concat(_?"!mt-2 !mb-1":""),children:[!S&&o.jsx(o.Fragment,{children:(g.label||N)&&g.type!=="section"?o.jsx(re,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(x?"!justify-start pl-1":"!justify-end"),children:N?o.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[o.jsx(wn,{defaultValue:g.label,small:!0,placeholder:f("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:$=>{($.key==="Enter"||$.key==="Escape")&&(b.value=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)}))},onChange:$=>{g.label=$.target.value.trim()}}),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{b.value=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},title:f("Done Edit",{ns:"common"}),children:o.jsx(en,{size:18})})]}):o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(x?"text-left":"text-right max-w-[160px]"),children:g.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"})}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsxs(ve,{className:"w-full gap-1",children:[g.isDelayOnly||g.isPressKeysOnly?o.jsxs(ve,{className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[g.isDelayOnly&&o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[f("Delay",{ns:"dashboard"})," ",g.value,o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:f("Delay",{ns:"dashboard"})}),o.jsx(kn,{}),dI.map($=>o.jsxs(rt,{className:"text-xs",onClick:()=>{b.value=null,g.value=$,e.value=R({},e.value)},children:[$==="1s"&&"1 Second",$==="2s"&&"2 Seconds",$==="3s"&&"3 Seconds",$==="4s"&&"4 Seconds",$==="5s"&&"5 Seconds"]},$))]})]}),g.isPressKeysOnly&&g.pressKeysAfterPaste&&o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:g.isEnable===!1,title:f("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[f("Press",{ns:"dashboard"})," ",qg[g.pressKeysAfterPaste],o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Key Press",{ns:"dashboard"})})}),o.jsx(kn,{}),uI.map($=>o.jsx(rt,{className:"text-xs",onClick:()=>{g.pressKeysAfterPaste=$,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:qg[$]},$)),o.jsx(kn,{}),o.jsxs(rt,{className:"text-xs text-red-400",onClick:()=>{e.value.formOptions.fields=e.value.formOptions.fields.filter($=>$.id!==g.id),e.value=R({},e.value)},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})]}):g.type==="password"||g.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:g.type==="passwordCode"?f("Enter code",{ns:"dashboard"}):f("Enter secret value",{ns:"dashboard"}),autoFocus:w===((P=e.value.formOptions.fields)==null?void 0:P.length)-1&&e.value.formOptions.fields[w].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,isPassword:!0,numbersOnly:g.type==="passwordCode",showHidePassword:!0,className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}):g.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:f("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,autoFocus:w===((I=e.value.formOptions.fields)==null?void 0:I.length)-1&&e.value.formOptions.fields[w].value==="",className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:$=>{g.value=$},ccNumber:g.value}):E?o.jsx(wn,{small:!0,placeholder:f("Enter section label",{ns:"dashboard"}),classNameInput:"text-sm font-semibold border-b border-0 border-transparent hover:border-gray-200 focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis pl-1.5 dark:!text-slate-300 dark:bg-slate-900",autoFocus:w===((T=e.value.formOptions.fields)==null?void 0:T.length)-1&&e.value.formOptions.fields[w].value==="",onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}):g.type==="textarea"?o.jsx(Co,{placeholder:f("Enter field value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:g.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:w===((L=e.value.formOptions.fields)==null?void 0:L.length)-1&&e.value.formOptions.fields[w].value==="",maxRows:2,value:g.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:$=>{$.stopPropagation()},onChange:$=>{g.value=$.target.value,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})}}):o.jsx(wn,{small:!0,placeholder:f("Enter field value",{ns:"dashboard"}),autoFocus:w===((A=e.value.formOptions.fields)==null?void 0:A.length)-1&&e.value.formOptions.fields[w].value===""&&e.value.formOptions.fields[w].label!=="Custom",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:g.isEnable===!1,type:g.type==="number"?"number":"text",className:"".concat(g.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:$=>{g.value=$.target.value.trim()},defaultValue:g.value}),g.isDelayOnly||g.isPressKeysOnly||E?o.jsx(o.Fragment,{}):o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:g.isEnable===!1,title:f("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:g.pressKeysAfterPaste?o.jsxs(St,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[qg[g.pressKeysAfterPaste],o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]}):o.jsxs(St,{variant:"secondary",className:"pl-1 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[o.jsx(Vr,{size:13,className:"ml-0.5 mr-0"}),o.jsx(Bn,{size:13,className:"ml-0.5 mr-0"})]})})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:f("Key Press After",{ns:"dashboard"})})}),o.jsx(kn,{}),uI.map($=>o.jsx(rt,{className:"text-xs",onClick:()=>{g.pressKeysAfterPaste=$,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:qg[$]},$)),o.jsx(kn,{}),o.jsxs(rt,{className:"text-xs text-red-400",onClick:()=>{g.pressKeysAfterPaste=null,e.value=ae(R({},e.value),{formOptions:R({},e.value.formOptions)})},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})})]})}),o.jsxs(ve,{className:"gap-1 ml-0.5",children:[g.type!=="section"&&o.jsx(je,{size:"mini",title:f("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isEnable:!M.isEnable}):M)})})},children:(z=e.value.formOptions)!=null&&z.fields&&((O=(Y=e.value.formOptions)==null?void 0:Y.fields[w])!=null&&O.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:f("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w-1)})})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:w===0,onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w-1)})})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:f("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:e.value.formOptions.fields?w===e.value.formOptions.fields.length-1:!1,onClick:()=>{e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:Wr(e.value.formOptions.fields||[],w,w+1)})})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:f("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsx(kn,{}),!E&&!S&&o.jsxs(rt,{onClick:()=>{var $;N?b.value=null:b.value=($=g.id)!=null?$:null},children:[N?o.jsx(re,{size:"xs",children:f("Done Edit",{ns:"common"})}):o.jsx(re,{size:"xs",children:f("Edit Label",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(J2,{size:13})})]}),g.type!=="section"&&o.jsx(o.Fragment,{children:g.isLabelOnTop?o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1,isLabelOnTop:!1}):M)})})},children:[o.jsx(re,{size:"xs",children:f("Label Left",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1,isLabelOnTop:!0}):M)})})},children:[o.jsx(re,{size:"xs",children:f("Label Top",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(xz,{size:13})})]})}),S?o.jsxs(rt,{onClick:()=>{var $;b.value=null,e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!1}):M)})})},children:[E?o.jsx(re,{size:"xs",children:f("Label Offset",{ns:"dashboard"})}):o.jsx(re,{size:"xs",children:f("Show Label",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var $;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:($=e.value.formOptions)==null?void 0:$.fields.map((M,W)=>W===w?ae(R({},M),{isLabelHidden:!0}):M)})})},children:[E?o.jsx(re,{size:"xs",children:f("Label on Left",{ns:"dashboard"})}):o.jsx(re,{size:"xs",children:f("Hide Label",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(Q8,{size:13})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var $,M;e.value=ae(R({},e.value),{formOptions:ae(R({},e.value.formOptions),{fields:(M=($=e.value.formOptions)==null?void 0:$.fields)==null?void 0:M.filter((W,V)=>V!==w)})})},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:f("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]})]},g.id)})]})}finally{n.f()}}function _2e({clipValue:t,templateMissingFields:e,templateFoundFields:n,checkForTemplateFieldsCallback:r,isLargeView:s,localOptions:a}){var l;var i=sn(1);try{const{t:c}=Gt(),d=it(null),p=it(null),f=it(null),m=it(null),b=v.useRef(null),C=it(!1),g=it(Date.now().toString()),w=["text","textarea","select"];return o.jsxs(ne,{className:"select-none mt-1",children:[o.jsx(ne,{className:"my-2",children:o.jsxs(ve,{className:"gap-3 w-full justify-start",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[c("Add Template Field",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("General Fields",{ns:"dashboard"})})}),o.jsx(kn,{}),w.map(x=>o.jsxs(rt,{className:"text-xs",onClick:()=>{var E;d.value=null,a.value.templateOptions||(a.value.templateOptions=[]);const S=a.value.templateOptions.map(N=>{var _,P,I;return(_=N.label)!=null&&_.trim()||(N.label="".concat(N.type&&((P=N.type)==null?void 0:P.charAt(0).toUpperCase())+((I=N.type)==null?void 0:I.slice(1))," ").concat(c("Field",{ns:"dashboard"}))),N});S.push({id:Date.now().toString(),type:x,label:"".concat(x.charAt(0).toUpperCase()+x.slice(1)),isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:[...S]}),d.value=(E=S[S.length-1].id)!=null?E:null},children:[o.jsx(Vr,{size:12,className:"mr-1"}),c("{{type}} Field",{ns:"dashboard",type:x.charAt(0).toUpperCase()+x.slice(1)})]},x)),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("Common Fields",{ns:"dashboard"})})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:oW.map(x=>o.jsx(rt,{className:"text-xs",onClick:()=>{var P,I;a.value.templateOptions||(a.value.templateOptions=[]),C.value=!1;const S=[...a.value.templateOptions],E=x==="Text"?"text":x==="Number"?"number":x==="Password"||x==="Secret"||x==="API Key"||x==="License Key"||x==="SSN"?"password":x==="CVV Code"?"passwordCode":x==="Textarea"?"textarea":x==="Credit Card"?"creditcard":"text",N=(P=a.value.templateOptions)==null?void 0:P.every(T=>T.label!==x);N||(C.value=!0);const _=N?x:"".concat(x," ").concat(a.value.templateOptions.length+1);S.push({id:Date.now().toString(),label:_,type:E,isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:S}),x==="Custom"&&(d.value=(I=S[S.length-1].id)!=null?I:null)},children:x},x))}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:o.jsx(re,{children:c("Special Field",{ns:"dashboard"})})}),o.jsxs(rt,{className:"text-xs",onClick:()=>{var E;if(d.value=null,a.value.templateOptions||(a.value.templateOptions=[]),(E=a.value.templateOptions)==null?void 0:E.some(N=>N.label==="Clipboard")){a.value.templateOptions=a.value.templateOptions.map(N=>(N.label==="Clipboard"&&(N.isEnable=!0),N));return}const S=a.value.templateOptions.map(N=>N);S.push({id:Date.now().toString(),type:"text",label:"Clipboard",isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:[...S]})},children:[o.jsx(Vr,{size:12,className:"mr-1"}),c("Clipboard",{ns:"dashboard"})]})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[c("Fields Value",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})})}),o.jsx(Wn,{sideOffset:12,align:"center",children:o.jsxs(rt,{className:"text-center items-center justify-center py-1 text-xs",onSelect:()=>{a.value.templateOptions=a.value.templateOptions.map(x=>(x.value="",x)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),g.value=Date.now().toString()},children:[o.jsx(re,{children:c("Clear All Fields",{ns:"dashboard"})}),o.jsx(uE,{size:14,className:"ml-1 text-slate-400"})]})})]})]})}),(l=a.value.templateOptions)==null?void 0:l.map((x,S)=>{var T,L,A,z,Y,O,$,M;const E=x.id===d.value,N=x.type==="textarea",_=x.isLabelOnTop,P=(T=x.selectOptions)==null?void 0:T.find(W=>W===x.value),I=!((L=x.selectOptions)!=null&&L.length);return o.jsxs(ve,{className:"mb-1 group ".concat(_?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[x.label||E?o.jsx(ve,{className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(_?"!justify-start pl-1":"!justify-end"),children:E?o.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[o.jsx(wn,{defaultValue:x.label,small:!0,placeholder:c("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:W=>{var V;(W.key==="Enter"||W.key==="Escape")&&(d.value=null,C.value=!1,(V=a.value.templateOptions)!=null&&V.every((J,H)=>H!==S?J.label!==x.label:!0)||(x.label="".concat(x.label," ").concat(S+1)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}))},onChange:W=>{x.label=W.target.value.trim()}}),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{d.value=null,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})},title:c("Done Edit",{ns:"common"}),children:o.jsx(en,{size:18})})]}):o.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(_?"text-left":"text-right max-w-[160px]"),children:x.label})}):o.jsx("div",{className:"pr-1 min-w-[80px]"}),o.jsxs(ve,{className:"w-full",children:[o.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:o.jsx(ve,{className:"w-full gap-1",children:x.type==="password"||x.type==="passwordCode"?o.jsx(wn,{small:!0,placeholder:x.type==="passwordCode"?c("Enter code",{ns:"dashboard"}):c("Enter secret value",{ns:"dashboard"}),autoFocus:S===a.value.templateOptions.length-1&&a.value.templateOptions[S].value==="",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,isPassword:!0,numbersOnly:x.type==="passwordCode",showHidePassword:!0,className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:W=>{x.value=W.target.value.trim()},defaultValue:x.value},g.value):x.type==="creditcard"?o.jsx(Px,{small:!0,placeholder:c("Enter credit card number",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,autoFocus:S===((A=a.value.templateOptions)==null?void 0:A.length)-1&&a.value.templateOptions[S].value==="",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:W=>{x.value=W},ccNumber:x.value},g.value):x.type==="textarea"?o.jsx(Co,{placeholder:c("Enter default value",{ns:"dashboard"}),label:"",className:"text-sm font-semibold border-0 border-transparent focus:border-blue-400 rounded-none nowrap overflow-hidden text-ellipsis !pl-0.5 w-full",classNameArea:x.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:S===a.value.templateOptions.length-1&&a.value.templateOptions[S].value===""&&a.value.templateOptions[S].label!=="Textarea",maxRows:2,value:x.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:W=>{W.stopPropagation()},onChange:W=>{x.value=W.target.value,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})}},g.value):x.type==="select"?o.jsx(ve,{className:"justify-start items-center w-full my-1",children:p.value!==x.id&&f.value!==x.id?o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",variant:"ghost",disabled:x.isEnable===!1,className:"rounded-sm font-semibold hover:bg-transparent ml-0 px-2 py-1 w-full border border-slate-300 hover:border-blue-500 dark:border-slate-800 dark:hover:border-blue-500 dark:bg-slate-900 dark:hover:bg-slate-900 dark:text-slate-300 dark:hover:text-blue-500",children:o.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[o.jsx(re,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:I?c("Select is empty",{ns:"common"}):P||c("Select default",{ns:"common"})}),o.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:o.jsx(Bn,{size:13})})]})})}),o.jsxs(Wn,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:I?o.jsx(re,{children:c("Select is empty",{ns:"common"})}):o.jsx(re,{children:c("Select Default Option",{ns:"dashboard"})})}),!I&&o.jsxs(o.Fragment,{children:[o.jsx(kn,{}),(Y=(z=a.value.templateOptions[S])==null?void 0:z.selectOptions)==null?void 0:Y.map((W,V)=>o.jsxs(Cn,{checked:x.value===W,onSelect:()=>{x.value=W,a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})},children:[o.jsx(re,{className:"text-xs ".concat(x.value===W?"font-semibold":""),children:W}),x.value===W&&o.jsxs(ve,{className:"ml-auto gap-2 pl-2 opacity-60 hover:opacity-100",children:[o.jsx(J2,{size:13,className:"cursor-pointer hover:text-blue-500 dark:hover:text-blue-400",onClick:()=>{var U;f.value=null,m.value=W,p.value=(U=x.id)!=null?U:null}}),o.jsx(v6,{size:13,className:"cursor-pointer hover:text-red-500 dark:hover:text-red-400",onClick:U=>{var H,F,q,X,te;U.stopPropagation();const J=(F=(H=x.selectOptions)==null?void 0:H.indexOf(W))!=null?F:-1;if(x.selectOptions=(q=x.selectOptions)==null?void 0:q.filter(ee=>ee!==W),J!==-1){const ee=(X=x.selectOptions)==null?void 0:X[J-1],G=(te=x.selectOptions)==null?void 0:te[J];x.value=ee||G||void 0}a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]})}})]})]},V))]}),o.jsx(kn,{}),o.jsx(rt,{className:"text-center items-center justify-center py-0.5 text-xs",onClick:()=>{var W;I&&(x.selectOptions=[]),m.value=null,p.value=null,f.value=(W=x.id)!=null?W:null},children:o.jsxs(re,{size:"xs",className:"!text-blue-500 dark:!text-blue-400",children:[o.jsx(Vr,{size:13}),I?c("Add First Option",{ns:"common"}):c("Add Option",{ns:"common"})]})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:c("Enter select option",{ns:"dashboard"}),autoFocus:!!a.value.templateOptions[S].label,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,type:"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),onKeyDown:W=>{var V,U,J;W.key==="Escape"?(m.value&&(x.value=m.value),p.value=null,m.value=null,f.value=null):W.key==="Enter"&&(m.value&&p.value===x.id?x.selectOptions=(V=x.selectOptions)==null?void 0:V.map(H=>H===m.value&&x.value||H):f.value===x.id&&x.value&&!((U=x.selectOptions)!=null&&U.includes(x.value))&&((J=x.selectOptions)==null||J.push(x.value)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),m.value=null,p.value=null,f.value=null)},onChange:W=>{x.value=W.target.value.trim()},defaultValue:f.value===x.id?"":x.value},g.value),o.jsx(je,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{var W,V,U;m.value&&p.value===x.id?x.selectOptions=(W=x.selectOptions)==null?void 0:W.map(J=>J===m.value&&x.value||J):f.value===x.id&&x.value&&!((V=x.selectOptions)!=null&&V.includes(x.value))&&((U=x.selectOptions)==null||U.push(x.value)),a.value=ae(R({},a.value),{templateOptions:[...a.value.templateOptions]}),m.value=null,p.value=null,f.value=null},title:f.value===x.id?c("Add Option",{ns:"common"}):c("Done Edit",{ns:"common"}),children:f.value===x.id?o.jsx(Vr,{size:18}):p.value===x.id&&o.jsx(en,{size:18})}),o.jsx(je,{size:"mini",variant:"ghost",className:"h-8 w-8 text-slate-400 dark:bg-transparent",onClick:()=>{m.value&&(x.value=m.value),p.value=null,m.value=null,f.value=null},title:c("Cancel",{ns:"common"}),children:o.jsx(In,{size:15})})]})}):((O=x.label)==null?void 0:O.toLocaleLowerCase())!=="clipboard"?o.jsx(wn,{small:!0,placeholder:c("Enter default value",{ns:"dashboard"}),autoFocus:a.value.templateOptions[S].label!=="Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 dark:bg-slate-900",disabled:x.isEnable===!1,type:x.type==="number"?"number":"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:W=>{x.value=W.target.value.trim()},defaultValue:x.value},g.value):o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,value:x.isValueMasked?yv(c("This field allows to insert text from clipboard",{ns:"dashboard"})):c("This field allows to insert text from clipboard",{ns:"dashboard"}),title:c("This field allows to insert text from clipboard",{ns:"dashboard"}),autoFocus:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 nowrap overflow-hidden text-ellipsis dark:!text-slate-300 opacity-100 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(x.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),o.jsx(st,{isCompact:!0,text:c("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:o.jsx(pk,{width:15,height:15,className:"".concat(x.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var W;a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isValueMasked:!V.isValueMasked}):V)]})}})})]})})}),o.jsxs(ve,{className:"gap-1 ml-0.5",children:[x.type!=="section"&&o.jsx(je,{size:"mini",title:c("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isEnable:!V.isEnable}):V)]})},children:a.value.templateOptions&&(($=a.value.templateOptions[S])!=null&&$.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:c("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S-1)]})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:S===0,onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S-1)]})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:c("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:a.value.templateOptions?S===a.value.templateOptions.length-1:!1,onClick:()=>{a.value=ae(R({},a.value),{templateOptions:[...Wr(a.value.templateOptions||[],S,S+1)]})},className:"text-[13px] py-1",children:[o.jsx(re,{size:"xs",children:c("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsx(kn,{}),((M=x.label)==null?void 0:M.toLocaleLowerCase())!=="clipboard"&&o.jsxs(rt,{onClick:()=>{var W;E?d.value=null:d.value=(W=x.id)!=null?W:null},children:[E?o.jsx(re,{size:"xs",children:c("Done Edit",{ns:"common"})}):o.jsx(re,{size:"xs",children:c("Edit Label",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(J2,{size:13})})]}),x.isLabelOnTop?o.jsxs(rt,{onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isLabelOnTop:!1}):V)]})},children:[o.jsx(re,{size:"xs",children:c("Label Left",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gz,{size:13})})]}):o.jsxs(rt,{onClick:()=>{var W;d.value=null,a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.map((V,U)=>U===S?ae(R({},V),{isLabelOnTop:!0}):V)]})},children:[o.jsx(re,{size:"xs",children:c("Label Top",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(xz,{size:13})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var W;a.value=ae(R({},a.value),{templateOptions:[...(W=a.value.templateOptions)==null?void 0:W.filter((V,U)=>U!==S)]}),r()},children:[o.jsx(re,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:c("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]})]},S)}),C.value&&o.jsxs(re,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[c("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),o.jsx(In,{className:"absolute top-0 right-0 m-2 bg-yellow-50 dark:bg-yellow-900 z-10 cursor-pointer hover:bg-yellow-100 dark:hover:bg-yellow-800",size:14,onClick:()=>{C.value=!1}})]}),e.value.length>0&&o.jsxs(ve,{className:"rounded-md gap-2 my-3 items-start justify-start flex-wrap !text-amber-800 dark:!text-amber-400 text-[13px] bg-yellow-50 dark:bg-amber-950 p-2",children:[o.jsxs(re,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[o.jsx(Ti,{size:13,className:"mr-1"}),c("Found in template but missing from fields definition",{ns:"common"}),":"]}),e==null?void 0:e.value.map((x,S)=>o.jsx(ne,{className:"cursor-pointer",onClick:()=>{var P;a.value.templateOptions||(a.value.templateOptions=[]),C.value=!1;const E=[...a.value.templateOptions],N=(P=a.value.templateOptions)==null?void 0:P.every(I=>I.label!==x);N||(C.value=!0);const _=N?x:"".concat(x," ").concat(a.value.templateOptions.length+1);E.push({id:Date.now().toString(),label:_,type:"text",isEnable:!0,value:""}),a.value=ae(R({},a.value),{templateOptions:E}),r()},children:o.jsxs(St,{variant:"outline",className:"bg-red-50 dark:bg-red-950/80 hover:bg-blue-50 dark:hover:bg-blue-950/80 border-red-100 dark:border-red-900 hover:border-blue-100 dark:hover:border-blue-800 group text-normal pr-2.5",children:[o.jsx(st,{text:c("Add to template fields",{ns:"common"}),sideOffset:5,isCompact:!0,side:"bottom",children:o.jsxs(ve,{className:"group !text-red-500 dark:!text-red-400 hover:!text-blue-500 dark:hover:!text-blue-400 font-semibold mr-0.5",children:[o.jsx(v5,{size:12,className:"mr-0.5 group-hover:block hidden"}),o.jsx(Vr,{size:12,className:"mr-0.5 group-hover:hidden"}),x]})}),o.jsx(st,{text:c("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:o.jsx(In,{onClick:E=>{var N;E.preventDefault(),E.stopPropagation(),(N=b.current)==null||N.handleRemoveTemplateField(x)},size:12,className:"ml-0.5 mr-0 hover:!text-red-600 dark:hover:!text-red-500 group-hover:text-blue-300 dark:group-hover:text-blue-400 text-red-300 dark:text-red-400 cursor-pointer"})},S)]})},S))]}),o.jsxs(o.Fragment,{children:[a.value.templateOptions.length>0&&o.jsxs(ve,{className:"gap-2 my-3 items-start justify-start flex-wrap",children:[a.value.templateOptions.map((x,S)=>{var E;return!x.label||!x.label.length?null:x.label&&(n!=null&&n.value.includes((E=x.label)==null?void 0:E.toLocaleLowerCase()))?o.jsx(st,{text:x.isEnable?x.label==="Clipboard"?o.jsx(us,{i18nKey:"Field {{Clipboard}} has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):o.jsx(us,{i18nKey:"Field {{{{name}}}} has been found in the template",ns:"dashboard",values:{name:x.label}}):o.jsx(us,{i18nKey:"Disabled field {{{{name}}}} has been found in the template",ns:"dashboard",values:{name:x.label}}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"".concat(x.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-500"," !font-normal group"),size:"xs",children:o.jsxs(St,{variant:"outline",className:"".concat(x.isEnable?"bg-green-100 dark:bg-green-900 hover:bg-green-100/70 dark:hover:bg-green-900 border-green-200 dark:border-green-800":"bg-gray-100 dark:bg-gray-800/70 hover:bg-gray-100/70 dark:hover:bg-gray-700/70 border-gray-200 dark:border-gray-700"," text-normal pr-2.5 group-hover:pr-1.5"),children:[o.jsx(en,{size:12,className:"mr-0.5"}),x.label,o.jsx(st,{text:c("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:o.jsx(In,{onClick:()=>{var N;(N=b.current)==null||N.handleRemoveTemplateField(x.label)},size:12,className:"".concat(x.isEnable?"text-green-600 dark:text-green-400":"text-gray-400 dark:text-gray-500"," ml-1 hover:!text-red-600 dark:hover:!text-red-300 group-hover:block animate-in fade-in hidden cursor-pointer")})})]})})},S):o.jsx(st,{text:x.isEnable?x.label==="Clipboard"?o.jsx(us,{i18nKey:"Add {{Clipboard}} field to template. This allows you to copy text to the clipboard, and it will be inserted into the template",ns:"common"}):o.jsx(us,{i18nKey:"Add field {{{{name}}}} into the template",ns:"dashboard",values:{name:x.label}}):o.jsx(us,{i18nKey:"Disabled field {{{{name}}}}",ns:"dashboard",values:{name:x.label}}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"".concat(x.isEnable?"!text-slate-500 dark:!text-slate-600 hover:!text-blue-500 dark:hover:!text-blue-700 cursor-pointer":"!text-gray-300 dark:!text-gray-600 "," group !font-normal"),size:"xs",onClick:()=>{var N;x.isEnable&&((N=b==null?void 0:b.current)==null||N.handleAddText("{{".concat(x.label,"}}")))},children:o.jsxs(St,{variant:"outline",className:"".concat(x.isEnable?"bg-white dark:bg-slate-300/90 hover:bg-blue-50 dark:hover:bg-blue-300 border-slate-200 dark:border-slate-700 hover:border-blue-200 dark:hover:border-blue-800":"bg-gray-50 dark:bg-gray-800/80 hover:bg-gray-50 dark:hover:bg-gray-800 border-gray-100 dark:border-gray-700"," text-normal pr-2.5"),children:[x.isEnable?o.jsxs(o.Fragment,{children:[o.jsx(Sh,{size:12,className:"mr-0.5 group-hover:block hidden"}),o.jsx(Vr,{size:12,className:"mr-0.5 group-hover:hidden"})]}):o.jsx(wa,{size:12,className:"mr-0.5 hover:text-blue-500 cursor-pointer",onClick:N=>{var _;N.preventDefault(),N.stopPropagation(),a.value=ae(R({},a.value),{templateOptions:[...(_=a.value.templateOptions)==null?void 0:_.map((P,I)=>I===S?ae(R({},P),{isEnable:!0}):P)]})}}),x.label]})})},S)}),a.value.templateOptions.length>1&&n.value.length>0&&o.jsx(st,{text:c("Remove all fields from template",{ns:"common"}),isCompact:!0,side:"bottom",children:o.jsx(re,{className:"!text-slate-300 dark:!text-slate-500 hover:!text-red-500 dark:hover:!text-red-500 cursor-pointer !font-normal group",size:"xs",onClick:()=>{var x;(x=b==null?void 0:b.current)==null||x.handleRemoveAllTemplateFields()},children:o.jsx(St,{variant:"outline",className:"dark:bg-slate-300/90 dark:hover:bg-red-100 dark:border-slate-700 dark:hover:border-blue-800 bg-white hover:bg-red-50 border-slate-200 hover:border-red-200 text-normal px-2.5 py-[3px]",children:o.jsx(v6,{size:13})})})})]}),o.jsx(Co,{ref:b,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"".concat(c("Enter template or drag from history",{ns:"dashboard"}),". ").concat(c("Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.",{ns:"dashboard"})),rows:2,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:s?12:6,value:t.value,onKeyDown:x=>{x.stopPropagation()},onChange:x=>{t.value=x.target.value}})]})]})}finally{i.f()}}function T2e({clipId:t,clipValue:e,showLinkValidationError:n,isLargeView:r,isDark:s,webrequestTestOutputObject:a,webrequestLocalOptions:i}){var c,d,p,f,m,b,C,g,w,x,S,E,N,_,P,I,T,L,A,z,Y,O,$,M,W,V;var l=sn(1);try{const{t:U}=Gt(),J=it(!1),H=it(!1),F=it(!1),q=it(!1),{updateItemById:X}=bl(),te={dotpathjson:U("FILTERED_TYPES:::Dot Path",{ns:"dashboard"}),jsonpath:U("FILTERED_TYPES:::JSON Path",{ns:"dashboard"}),regex:U("FILTERED_TYPES:::RegEx",{ns:"dashboard"}),regexreplace:U("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"}),removequotes:U("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})},ee=G=>ge(this,null,function*(){const{headers:Z,body:le,filters:se}=i.value,de={headers:Z,body:le,filters:se,method:G};yield X({updatedItem:{requestOptions:JSON.stringify({headers:Z,body:le,method:G}),itemId:t}}),i.value=R({},de)});return v.useEffect(()=>{i.value.body||(q.value=!1)},[a.value.body]),o.jsxs(ne,{className:"select-none mt-1",children:[o.jsxs(ve,{className:"text-normal",children:[o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"px-2 pr-1 h-10 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{children:i.value.method}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{ee("GET")},children:o.jsx(re,{className:"".concat(i.value.method==="GET"&&"font-semibold"),children:"GET"})}),o.jsx(rt,{textValue:"POST",onClick:()=>{ee("POST")},children:o.jsx(re,{className:"".concat(i.value.method==="POST"&&"font-semibold"),children:"POST"})}),o.jsx(rt,{onClick:()=>{ee("PUT")},children:o.jsx(re,{className:"".concat(i.value.method==="PUT"&&"font-semibold"),children:"PUT"})}),o.jsx(rt,{onClick:()=>{ee("DELETE")},children:o.jsx(re,{className:"".concat(i.value.method==="DELETE"&&"font-semibold"),children:"DELETE"})}),o.jsx(rt,{onClick:()=>{ee("HEAD")},children:o.jsx(re,{className:"".concat(i.value.method==="HEAD"&&"!font-semibold"),children:"HEAD"})})]})]}),o.jsx(wn,{defaultValue:e.value,placeholder:"Enter request url...",classNameInput:"pr-7 text-sm focus:border- ".concat(n.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(n.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:n.value?o.jsx(st,{text:U("Request url might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):n.value===!1&&o.jsx(st,{text:U("Request url is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:G=>{if(n.value&&(n.value=void 0),G.target.value.length>5){const le=zr().match(G.target.value);!le||le.length>1?n.value=!0:n.value=!1}e.value=G.target.value}})]}),o.jsx(ne,{className:"mt-2",children:o.jsxs(ve,{className:"gap-4 w-full justify-start",children:[o.jsx(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",onClick:()=>{const G=[...i.value.headers];G.unshift({id:Date.now().toString(),name:"",isEnable:!0,value:""}),i.value=ae(R({},i.value),{headers:G})},title:U("Add Request Header",{ns:"dashboard"}),children:U("Add Header",{ns:"dashboard"})}),o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[U("Add Auth",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Basic Password",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"Basic Password",basicPassword:"",basicUsername:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((c=i.value.auth)==null?void 0:c.type)==="Basic Password"&&"font-semibold"),children:U("Basic Auth",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Bearer Token",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"Bearer Token",bearerToken:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((d=i.value.auth)==null?void 0:d.type)==="Bearer Token"&&"font-semibold"),children:U("Bearer Token",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="API Key",i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{type:"API Key",apiKey:"",apiValue:"",isEnable:!0})})},children:o.jsx(re,{className:"".concat(((p=i.value.auth)==null?void 0:p.type)==="API Key"&&"font-semibold"),children:U("API Key",{ns:"dashboard"})})})]})]})}),o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[U("Add Response Filter",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"dotpathjson",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::Dot Path",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"jsonpath",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::JSON Path",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"regex",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::RegEx",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"regexreplace",isEnable:!0,replace:"",value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{i.value.filters||(i.value.filters=[]);const G=[...i.value.filters];G.push({id:Date.now().toString(),filterType:"removequotes",isEnable:!0,value:""}),i.value=ae(R({},i.value),{filters:G})},children:o.jsx(re,{children:U("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})})})]})]})})]})}),i.value.headers.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Headers",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:i.value.headers.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:J.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{J.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{J.value=!1},onPointerDownOutside:()=>{J.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove headers",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{J.value=!1},children:U("Cancel",{ns:"common"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{headers:[]}),J.value=!1},children:[U("Remove",{ns:"common"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.headers.length})]})]})]})})]})]}),i.value.headers.map((G,Z)=>{var le;return o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:G.name,disabled:G.isEnable===!1,onChange:se=>{G.name=se.target.value.trim()},placeholder:U("Name",{ns:"dashboard"}),autoFocus:Z===0,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,placeholder:U("Value",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:se=>{G.value=se.target.value.trim()},defaultValue:G.value,required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value=ae(R({},i.value),{headers:i.value.headers.map((se,de)=>de===Z?ae(R({},se),{isEnable:!se.isEnable}):se)})},children:(le=i.value.headers[Z])!=null&&le.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{headers:i.value.headers.filter((se,de)=>de!==Z)})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]},G.id)})]}),((f=i.value.auth)==null?void 0:f.type)&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Auth",{ns:"dashboard"})," (",(m=i.value.auth)==null?void 0:m.type,")"]}),o.jsxs(Sa,{defaultOpen:!1,open:H.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{H.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-52",onEscapeKeyDown:()=>{H.value=!1},onPointerDownOutside:()=>{H.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove Auth",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{H.value=!1},children:U("Cancel",{ns:"common"})}),o.jsx(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{auth:{}}),H.value=!1},children:U("Remove",{ns:"common"})})]})]})})]})]}),((b=i.value.auth)==null?void 0:b.type)==="Bearer Token"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,isPassword:!0,showHidePassword:!0,defaultValue:(C=i.value.auth)==null?void 0:C.bearerToken,disabled:((g=i.value.auth)==null?void 0:g.isEnable)===!1,onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.bearerToken=G.target.value.trim()},className:"".concat(((w=i.value.auth)==null?void 0:w.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:U("Bearer Token",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(x=i.value.auth)!=null&&x.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),((S=i.value.auth)==null?void 0:S.type)==="API Key"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:(E=i.value.auth)==null?void 0:E.apiKey,disabled:((N=i.value.auth)==null?void 0:N.isEnable)===!1,className:"".concat(((_=i.value.auth)==null?void 0:_.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.apiKey=G.target.value.trim()},placeholder:U("API Key",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,defaultValue:(P=i.value.auth)==null?void 0:P.apiValue,disabled:((I=i.value.auth)==null?void 0:I.isEnable)===!1,className:"".concat(((T=i.value.auth)==null?void 0:T.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.apiValue=G.target.value.trim()},placeholder:U("API Key's Value",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(L=i.value.auth)!=null&&L.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]}),((A=i.value.auth)==null?void 0:A.type)==="Basic Password"&&o.jsxs(ve,{className:"gap-2 mb-1",children:[o.jsx(wn,{small:!0,defaultValue:(z=i.value.auth)==null?void 0:z.basicUsername,disabled:((Y=i.value.auth)==null?void 0:Y.isEnable)===!1,className:"".concat(((O=i.value.auth)==null?void 0:O.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.basicUsername=G.target.value.trim()},placeholder:U("Basic Username",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(wn,{small:!0,defaultValue:($=i.value.auth)==null?void 0:$.basicPassword,disabled:((M=i.value.auth)==null?void 0:M.isEnable)===!1,className:"".concat(((W=i.value.auth)==null?void 0:W.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:G=>{i.value.auth||(i.value.auth={}),i.value.auth.basicPassword=G.target.value.trim()},placeholder:U("Basic Password",{ns:"dashboard"}),isPassword:!0,showHidePassword:!0,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var G;i.value=ae(R({},i.value),{auth:ae(R({},i.value.auth),{isEnable:!((G=i.value.auth)!=null&&G.isEnable)})})},children:(V=i.value.auth)!=null&&V.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{auth:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}),i.value.filters.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[U("Response Filters",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:i.value.filters.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:F.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{F.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{F.value=!1},onPointerDownOutside:()=>{F.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:U("Confirm to remove filters",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{F.value=!1},children:U("Cancel",{ns:"common"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=ae(R({},i.value),{filters:[]}),F.value=!1},children:[U("Remove",{ns:"common"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.filters.length})]})]})]})})]})]}),i.value.filters.map((G,Z)=>{var se;const le=te[G.filterType];return o.jsxs(ve,{className:"gap-1 mb-1",children:[o.jsx(re,{title:"".concat(U("Filter Type",{ns:"dashboard"}),": ").concat(le),className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end"),children:o.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[Z+1,". ",le]})}),G.filterType==="removequotes"?o.jsx(wn,{small:!0,autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5 !text-slate-600",disabled:!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," "),readOnly:!0,defaultValue:U("Remove all double quotes",{ns:"dashboard"})}):o.jsx(wn,{small:!0,placeholder:U("Filter's Value",{ns:"dashboard"}),autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:de=>{G.value=de.target.value.trim()},defaultValue:G.value}),G.filterType==="regexreplace"&&o.jsx(wn,{small:!0,placeholder:U("Replace Value",{ns:"dashboard"}),autoFocus:Z===i.value.filters.length-1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:G.isEnable===!1,className:"".concat(G.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:de=>{G.replace=de.target.value.trim()},defaultValue:G.replace}),o.jsx(je,{size:"mini",title:U("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{i.value=ae(R({},i.value),{filters:i.value.filters.map((de,ce)=>ce===Z?ae(R({},de),{isEnable:!de.isEnable}):de)})},children:(se=i.value.filters[Z])!=null&&se.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:U("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z-1)})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:Z===0,onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z-1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:U("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:Z===i.value.filters.length-1,onClick:()=>{i.value=ae(R({},i.value),{filters:Wr(i.value.filters,Z,Z+1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:U("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsxs(rt,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{i.value=ae(R({},i.value),{filters:i.value.filters.filter((de,ce)=>ce!==Z)})},children:[o.jsx(re,{className:"!text-red-500",children:U("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]},G.id)})]}),(a.value.body||a.value.status)&&o.jsxs(ne,{className:"".concat(a.value.status&&a.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(r?"py-1":"py-0"," rounded-md px-3 relative mt-2 pt-1 pb-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[a.value.body&&a.value.filteredBody&&o.jsx(pl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:q.value?"fullBody":"filteredBody",onValueChange:G=>{q.value=G==="fullBody"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[o.jsx(jr,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:U("Full Body Response",{ns:"dashboard"}),children:U("Full",{ns:"dashboard"})}),o.jsx(jr,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:U("Filtered Response",{ns:"dashboard"}),children:U("Filtered",{ns:"dashboard"})})]})}),o.jsx(Ca,{isDark:s,maxHeight:r?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:a.value.filteredBody&&!q.value?a.value.filteredBody:a.value.body||U("No body returned for response",{ns:"dashboard"}),language:a.value.contentType&&a.value.body&&aM[a.value.contentType.split(";")[0]]||"text"}),o.jsxs(ve,{className:"justify-between py-1 pb-1",children:[o.jsx(ne,{className:"text-xs rounded-sm px-1.5 select-none bg-slate-300 text-slate-600",children:a.value.contentType&&aM[a.value.contentType.split(";")[0]]}),o.jsx(ne,{className:"".concat(a.value.status&&a.value.status>=400?"bg-red-300 text-red-700":"bg-green-300 text-green-700"," text-xs rounded-sm px-1.5 select-none"),children:a.value.status&&a.value.status>=400?"".concat(a.value.hasFiltersError?"filters":a.value.status," error"):"".concat(a.value.status)})]})]})]})}finally{l.f()}}function P2e({clipValue:t,showLinkValidationError:e,isLargeView:n,isDark:r,testOutputObject:s,localOptions:a}){var l,c,d,p,f,m,b,C,g,w,x,S,E,N,_,P,I,T,L,A,z,Y,O,$,M,W,V,U,J,H,F,q,X,te;var i=sn(1);try{const{t:ee}=Gt(),G=it(!1),Z=it(!1),le={cssselector:ee("RULES_TYPES:::CSS Selector",{ns:"dashboard"}),regexfind:ee("RULES_TYPES:::RegEx Find",{ns:"dashboard"}),regexmatch:ee("RULES_TYPES:::RegEx Match",{ns:"dashboard"}),regexmatchfoundgroup:ee("RULES_TYPES:::RegEx Group Match",{ns:"dashboard"}),regexreplace:ee("RULES_TYPES:::RegEx Replace",{ns:"dashboard"})},se={comma:ee("SEPARATOR_TYPES:::Comma (,)",{ns:"dashboard"}),semicolon:ee("SEPARATOR_TYPES:::Semicolon (;)",{ns:"dashboard"}),space:ee("SEPARATOR_TYPES:::Space (' ')",{ns:"dashboard"}),newline:ee("SEPARATOR_TYPES:::New Line (\\n)",{ns:"dashboard"}),tab:ee("SEPARATOR_TYPES:::Tab (\\t)",{ns:"dashboard"}),pipe:ee("SEPARATOR_TYPES:::Pipe (|)",{ns:"dashboard"})},de={first:ee("RETURN_POSITION_TYPES:::First Only",{ns:"dashboard"}),last:ee("RETURN_POSITION_TYPES:::Last Only",{ns:"dashboard"})};return o.jsxs(ne,{className:"select-none mt-1",children:[o.jsxs(ve,{className:"text-normal",children:[o.jsx(st,{asChild:!0,text:ee("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-10 pointer-events-none text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:o.jsx("span",{children:ee("URL",{ns:"dashboard"})})})}),o.jsx(wn,{defaultValue:t.value,placeholder:ee("Enter request url",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(e.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(e.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:e.value?o.jsx(st,{text:ee("Website URL might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):e.value===!1&&o.jsx(st,{text:ee("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:ce=>{if(e.value&&(e.value=void 0),ce.target.value.length>5){const pe=zr().match(ce.target.value);!pe||pe.length>1?e.value=!0:e.value=!1}t.value=ce.target.value}})]}),o.jsx(ne,{className:"mt-2",children:o.jsx(ve,{className:"gap-4 w-full justify-start",children:o.jsx(ve,{children:o.jsxs(Kn,{children:[o.jsx(Gn,{children:o.jsxs(re,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[ee("Add Scraping Rule",{ns:"dashboard"}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"cssselector",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("CSS Selector",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexfind",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Find",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatch",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Match",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatchfoundgroup",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Match Group",{ns:"dashboard"})})}),o.jsx(rt,{onClick:()=>{a.value.scrapingRules||(a.value.scrapingRules=[]);const ce=[...a.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexreplace",isEnable:!0,value:""}),a.value=ae(R({},a.value),{scrapingRules:ce})},children:o.jsx(re,{children:ee("RegEx Replace",{ns:"dashboard"})})})]})]})})})}),a.value.scrapingRules&&a.value.scrapingRules.length>0&&o.jsxs(ne,{className:"mt-2",children:[o.jsxs(ve,{className:"gap-1 w-full justify-start",children:[o.jsxs(re,{className:"font-semibold",size:"sm",children:[ee("Scrapping Rules",{ns:"dashboard"}),o.jsx(St,{className:"ml-1 py-0",variant:"secondary",children:a.value.scrapingRules.length})]}),o.jsxs(Sa,{defaultOpen:!1,open:G.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(je,{size:"mini",title:ee("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{G.value=!0},children:o.jsx(In,{size:16})})}),o.jsx(ia,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{G.value=!1},onPointerDownOutside:()=>{G.value=!1},children:o.jsxs(ve,{className:"flex-col gap-3",children:[o.jsx(re,{color:"black",size:"sm",children:ee("Confirm to remove rules",{ns:"dashboard"})}),o.jsxs(ve,{children:[o.jsx(je,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{G.value=!1},children:ee("Cancel",{ns:"dashboard"})}),o.jsxs(je,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:[]}),G.value=!1},children:[ee("Remove",{ns:"dashboard"}),o.jsx(St,{variant:"destructive",className:"ml-1 py-[1px]",children:a.value.scrapingRules.length})]})]})]})})]})]}),a.value.scrapingRules.map((ce,ye)=>{var me,be;const pe=le[ce.ruleType];return o.jsxs(ve,{className:"mb-1 mt-2 items-center",children:[o.jsx(re,{title:"".concat(ee("Rule Type",{ns:"common"}),": ").concat(pe),className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end pb-2"),children:o.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[ye+1,". ",pe]})}),o.jsxs(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),children:[o.jsx(ve,{className:"w-full gap-1",children:o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:ce.ruleType==="cssselector"?"Selector":"Rule's Value",autoFocus:a.value.scrapingRules?ye===((me=a.value.scrapingRules)==null?void 0:me.length)-1:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:Ee=>{ce.value=Ee.target.value.trim()},defaultValue:ce.value}),ce.ruleType==="cssselector"&&o.jsx(wn,{small:!0,placeholder:"Find Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.filterText=Ee.target.value.trim()},defaultValue:ce.filterText})]})}),o.jsxs(ve,{className:"gap-1 mb-1",children:[ce.ruleType==="regexreplace"&&o.jsx(wn,{small:!0,placeholder:"Replace Value",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.replace=Ee.target.value.trim()},defaultValue:ce.replace}),ce.ruleType==="cssselector"&&o.jsxs(o.Fragment,{children:[o.jsx(wn,{small:!0,placeholder:"Attribute Name",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.returnAttribute=Ee.target.value.trim()},defaultValue:ce.returnAttribute}),o.jsx(wn,{small:!0,placeholder:"Attribute Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:Ee=>{ce.returnAttributeText=Ee.target.value.trim()},defaultValue:ce.returnAttributeText})]})]})]}),o.jsxs(ve,{className:"gap-1 mb-1 mt-[-12px] ml-2",children:[o.jsx(je,{size:"mini",title:ee("Enable / Disable",{ns:"common"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ee;a.value=ae(R({},a.value),{scrapingRules:(Ee=a.value.scrapingRules)==null?void 0:Ee.map((We,qe)=>qe===ye?ae(R({},We),{isEnable:!We.isEnable}):We)})},children:a.value.scrapingRules&&((be=a.value.scrapingRules[ye])!=null&&be.isEnable)?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(je,{size:"mini",title:ee("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye-1)})},className:"text-sm font-semibold rounded-none hover:bg-transparent w-5 dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",children:o.jsx(yl,{size:14})})}),o.jsxs(Wn,{align:"end",children:[o.jsxs(rt,{disabled:ye===0,onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye-1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:ee("Move Up",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(gx,{size:13})})]}),o.jsxs(rt,{disabled:a.value.scrapingRules?ye===a.value.scrapingRules.length-1:!1,onClick:()=>{a.value=ae(R({},a.value),{scrapingRules:Wr(a.value.scrapingRules||[],ye,ye+1)})},className:"text-[13px] py-1",children:[o.jsx(re,{children:ee("Move Down",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(mx,{size:13})})]}),o.jsxs(rt,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{var Ee;a.value=ae(R({},a.value),{scrapingRules:(Ee=a.value.scrapingRules)==null?void 0:Ee.filter((We,qe)=>qe!==ye)})},children:[o.jsx(re,{className:"!text-red-500",children:ee("Remove",{ns:"common"})}),o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{size:13})})]})]})]})]})]},ce.id)}),a.value.scrapingRules&&a.value.scrapingRules.length>0&&o.jsxs(ve,{className:"mt-2 justify-start",children:[o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-[13px] text-slate-500 border-0 font-semibold mr-2 flex items-center",children:o.jsx("span",{className:"whitespace-nowrap",children:ee("Return Result As",{ns:"dashboard"})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Return Type",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{className:"whitespace-nowrap",children:(l=a.value.scrapingOptions)==null?void 0:l.returnType}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Return Type",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((c=a.value.scrapingOptions)==null?void 0:c.returnType)==="Text",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnType:"Text"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((d=a.value.scrapingOptions)==null?void 0:d.returnType)==="Text"&&"font-semibold"),children:ee("ReturnType:::Text",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((p=a.value.scrapingOptions)==null?void 0:p.returnType)==="Array",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnType:"Array"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((f=a.value.scrapingOptions)==null?void 0:f.returnType)==="Array"&&"font-semibold"),children:ee("ReturnType:::Array",{ns:"dashboard"})})})]})]}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Return Count Limit",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsxs("span",{className:"whitespace-nowrap",children:[ee("Limit",{ns:"dashboard"}),":",o.jsx("span",{className:"ml-1",children:(m=a.value.scrapingOptions)!=null&&m.returnCount&&a.value.scrapingOptions.returnPosition==null&&a.value.scrapingOptions.returnCount>0?(b=a.value.scrapingOptions)==null?void 0:b.returnCount:((C=a.value.scrapingOptions)==null?void 0:C.returnPosition)!==null?de[(g=a.value.scrapingOptions)==null?void 0:g.returnPosition]:ee("RETURN_POSITION_TYPES:::All",{ns:"dashboard"})})]}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Return Count Limit",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((w=a.value.scrapingOptions)==null?void 0:w.returnCount)==null&&((x=a.value.scrapingOptions)==null?void 0:x.returnPosition)==null,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:null});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((S=a.value.scrapingOptions)==null?void 0:S.returnCount)==null&&((E=a.value.scrapingOptions)==null?void 0:E.returnPosition)==null&&"font-semibold"),children:ee("All (No Limit)",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((N=a.value.scrapingOptions)==null?void 0:N.returnPosition)=="first",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnCount:null,returnPosition:"first"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((_=a.value.scrapingOptions)==null?void 0:_.returnPosition)=="first"&&"font-semibold"),children:ee("First Only",{ns:"dashboard"})})}),o.jsx(Cn,{checked:((P=a.value.scrapingOptions)==null?void 0:P.returnPosition)=="last",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnCount:null,returnPosition:"last"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsx(re,{className:"".concat(((I=a.value.scrapingOptions)==null?void 0:I.returnPosition)=="last"&&"font-semibold"),children:ee("Last Only",{ns:"dashboard"})})}),[...Array(5)].map((ce,ye)=>{var me,be;const pe=ye+1;return o.jsx(Cn,{checked:((me=a.value.scrapingOptions)==null?void 0:me.returnCount)===pe,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const Ee=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:pe});a.value=ae(R({},a.value),{scrapingOptions:Ee})},children:o.jsx(re,{className:"".concat(((be=a.value.scrapingOptions)==null?void 0:be.returnCount)===pe&&"font-semibold"),children:pe})},pe)}),[10,20].map(ce=>{var ye,pe;return o.jsx(Cn,{checked:((ye=a.value.scrapingOptions)==null?void 0:ye.returnCount)===ce,onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const me=ae(R({},a.value.scrapingOptions),{returnPosition:null,returnCount:ce});a.value=ae(R({},a.value),{scrapingOptions:me})},children:o.jsx(re,{className:"".concat(((pe=a.value.scrapingOptions)==null?void 0:pe.returnCount)===ce&&"font-semibold"),children:ce})},ce)})]})]}),((T=a.value.scrapingOptions)==null?void 0:T.returnType)!=="Array"&&((L=a.value.scrapingOptions)==null?void 0:L.returnPosition)==null&&(((A=a.value.scrapingOptions)==null?void 0:A.returnCount)==null||((z=a.value.scrapingOptions)==null?void 0:z.returnCount)!==1)&&o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"outline",size:"mini",title:ee("Text Separator",{ns:"dashboard"}),className:"px-2 pr-1 h-8 text-slate-500 border font-semibold text-xs bg-slate-100 _text-sm group hover:text-blue-500 mr-1 flex items-center",children:[o.jsx("span",{className:"whitespace-nowrap",children:se[(Y=a.value.scrapingOptions)==null?void 0:Y.returnSeparator]}),o.jsx(Bn,{size:12,className:"ml-1"})]})}),o.jsxs(Wn,{sideOffset:12,align:"center",children:[o.jsx(rt,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:o.jsx(re,{children:ee("Text Separator",{ns:"dashboard"})})}),o.jsx(kn,{}),o.jsx(Cn,{checked:((O=a.value.scrapingOptions)==null?void 0:O.returnSeparator)==="newline",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"newline"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat((($=a.value.scrapingOptions)==null?void 0:$.returnSeparator)==="newline"&&"font-semibold"),children:[ee("ReturnSeparator:::New Line",{ns:"dashboard"})," (\\n)"]})}),o.jsx(Cn,{checked:((M=a.value.scrapingOptions)==null?void 0:M.returnSeparator)==="tab",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"tab"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((W=a.value.scrapingOptions)==null?void 0:W.returnSeparator)==="tab"&&"font-semibold"),children:[ee("ReturnSeparator:::Tab",{ns:"dashboard"})," (\\t)"]})}),o.jsx(Cn,{checked:((V=a.value.scrapingOptions)==null?void 0:V.returnSeparator)==="comma",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"comma"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((U=a.value.scrapingOptions)==null?void 0:U.returnSeparator)==="comma"&&"font-semibold"),children:[ee("ReturnSeparator:::Comma",{ns:"dashboard"})," (,)"]})}),o.jsx(Cn,{checked:((J=a.value.scrapingOptions)==null?void 0:J.returnSeparator)==="semicolon",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"semicolon"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((H=a.value.scrapingOptions)==null?void 0:H.returnSeparator)==="semicolon"&&"font-semibold"),children:[ee("ReturnSeparator:::Semicolon",{ns:"dashboard"})," (;)"]})}),o.jsx(Cn,{checked:((F=a.value.scrapingOptions)==null?void 0:F.returnSeparator)==="pipe",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"pipe"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((q=a.value.scrapingOptions)==null?void 0:q.returnSeparator)==="pipe"&&"font-semibold"),children:[ee("ReturnSeparator:::Pipe",{ns:"dashboard"})," (|)"]})}),o.jsx(Cn,{checked:((X=a.value.scrapingOptions)==null?void 0:X.returnSeparator)==="space",onClick:()=>{a.value.scrapingOptions||(a.value.scrapingOptions={});const ce=ae(R({},a.value.scrapingOptions),{returnSeparator:"space"});a.value=ae(R({},a.value),{scrapingOptions:ce})},children:o.jsxs(re,{className:"".concat(((te=a.value.scrapingOptions)==null?void 0:te.returnSeparator)==="space"&&"font-semibold"),children:[ee("ReturnSeparator:::Space",{ns:"dashboard"})," (' ')"]})})]})]})]})]}),(s.value.body||s.value.status)&&o.jsxs(ne,{className:"".concat(s.value.status&&s.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(n?"!pb-3 mb-1 !py-3":"py-0 pb-2"," rounded-md px-3 relative mt-2 pt-1 select-text min-h-[0px] fade-in animate-in duration-500"),children:[s.value.body&&s.value.scrappedBody&&o.jsx(pl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:Z.value?"fullBody":"filteredBody",onValueChange:ce=>{Z.value=ce==="fullBody"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[o.jsx(jr,{value:"fullBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:ee("Full Body Response",{ns:"dashboard"}),children:ee("Full",{ns:"dashboard"})}),o.jsx(jr,{value:"filteredBody",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",title:ee("Filtered Response",{ns:"dashboard"}),children:s.value.foundCount&&s.value.foundCount>1?ee("Found {{foundCount}} results",{ns:"dashboard",foundCount:s.value.foundCount}):ee("Found",{ns:"common"})})]})}),o.jsx(Ca,{isDark:r,maxHeight:n?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:s.value.scrappedBody&&!Z.value?s.value.scrappedBody:s.value.body||ee("No body returned for response",{ns:"dashboard"}),language:s.value.body&&Z.value?"html":"text"}),a.value.scrapingRules&&a.value.scrapingRules.length===0&&o.jsxs(re,{className:"text-xs text-yellow-600",children:[ee("You have no rules added",{ns:"dashboard"}),"."]}),s.value.status&&s.value.status>=400&&o.jsx(ve,{className:"justify-between py-1 pb-1",children:o.jsxs(ne,{className:"text-xs rounded-sm px-1.5 select-none bg-red-300 text-red-700",children:[s.value.status," error"]})})]})]})}finally{i.f()}}function iW({id:t,isMenu:e}){var n=sn(1);try{const r=it(!1),{t:s}=Gt(),a=()=>{r.value=!1,XS.value=null},{deleteClipImageByItemId:i}=Cge();return o.jsxs(Sa,{defaultOpen:!1,open:r.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,className:"focus:outline-none",children:o.jsx(st,{text:s("Remove image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"p-1.5 border-0 bg-red-50/80 flex items-center justify-center hover:bg-red-50/100",onClick:()=>{r.value=!0,XS.value=t},children:o.jsx(kr,{size:20,className:"text-red-600 cursor-pointer"})})})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:r.value&&o.jsxs(ve,{className:"flex-col",children:[e?o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:s("Are you sure you want to remove image from the menu?",{ns:"menus"})}):o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:s("Are you sure you want to remove image from the clip?",{ns:"dashboard"})}),o.jsx(re,{color:"black",size:"sm",className:"italic text-center",children:s("This action cannot be undone.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{a()},children:s("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200",onClick:()=>{i({itemId:t}),a()},children:s("Remove",{ns:"common"})})]})]})})]})}finally{n.f()}}function M2e({clipId:t,isOver:e,value:n,isCode:r,isText:s,isTemplate:a,isForm:i,isImage:l,isDelete:c,isMasked:d,hasEmoji:p,isVideo:f,isCommand:m,isWebRequest:b,isWebScraping:C,isPath:g,isLink:w,isLargeView:x,imageDataUrl:S,isPinned:E,isFavorite:N,requestOptions:_,isShowLinkedClip:P,formTemplateOptions:I,isNewlyCreated:T,isDark:L,detectedLanguage:A,isHistoryDragActive:z,onCancel:Y}){var $,M,W,V,U,J,H,F,q,X,te,ee;var O=sn(1);try{const{t:G}=Gt(),Z=v.useRef(null),le=it(""),se=it({method:"GET",headers:[],body:"",scrapingRules:[],scrapingOptions:{returnType:"Text",returnSeparator:null,returnCount:null},filters:[],auth:{}}),de=it({templateOptions:[],formOptions:{fields:[]}}),ce=it(""),ye=it(""),pe=it("text"),me=it({body:null,status:null,hasFiltersError:null,foundCount:null,filteredBody:null,contentType:null}),{metadataLinkByItemId:be,invalidateLinkMetadataByItemId:Ee}=Sx(w,t),We=(be==null?void 0:be.linkTitle)&&(be==null?void 0:be.linkDomain),qe=qh(),ot=it(!1),Ve=it([]),Ge=it([]),ft=it(Date.now()),Ie=it(!1),Ke=it(void 0),ut=it(void 0),$e=it(void 0),ht=it(void 0),{updateItemById:Fe}=bl(),pt=v.useRef(null),Qe=jo(le.value,300),Lt=jo(le.value,600),Ut=x?"max-h-[600px]":"max-h-[300px]",wt=it(!1);v.useEffect(()=>{if(_)try{const Ue=JSON.parse(_);se.value=R(R({},se.value),Ue)}catch(Ue){console.log("error",Ue)}},[_]),v.useEffect(()=>{if(I)try{const Ue=JSON.parse(I);de.value=R(R({},de.value),Ue)}catch(Ue){console.log("error",Ue)}},[I]),v.useEffect(()=>{le.value=n!=null?n:""},[n]);const Xt=v.useMemo(()=>r?G("Type:::Code Snippet",{ns:"common"}):l?G("Type:::Image",{ns:"common"}):m?G("Type:::Shell Command",{ns:"common"}):b?G("Type:::Web Request (HTTP)",{ns:"common"}):C?G("Type:::Web Scraper / Parser",{ns:"common"}):w?G("Type:::Link or Email",{ns:"common"}):g?G("Type:::File, Path or App",{ns:"common"}):i?G("Type:::Form Auto Fill",{ns:"common"}):a?G("Type:::Template Fill",{ns:"common"}):G("Type:::Plain Text",{ns:"common"}),[r,l,m,b,w,g,i,a,C]);v.useEffect(()=>{if(w){const Je=zr().match(le.value);!Je||Je.length>1?Ke.value=!0:Ke.value=!1}},[w]);const $t=v.useCallback(Ue=>ge(this,null,function*(){const jt=n===le.value?n:Ue;g&&jt.length>5&&On("check_path",{path:jt}).then(()=>{ut.value=!1}).catch(()=>{ut.value=!0})}),[g]),tn=v.useCallback(Ue=>{const Je=/{{[^{}]+}}/g;Ve.value=[],Ge.value=[];const jt=Ue.match(Je);jt&&jt.forEach((we,Se)=>{jt[Se]=we.replace(/[\n\r{}]+/g,"").trim(),Ge.value.push(jt[Se].toLocaleLowerCase());const De=de.value.templateOptions.find(nt=>{var Pe;return((Pe=nt.label)==null?void 0:Pe.toLocaleLowerCase())===jt[Se].toLocaleLowerCase()});De?De.isFound=!0:jt[Se].toLocaleLowerCase()==="clipboard"?Ve.value.push("Clipboard"):Ve.value.push(jt[Se])}),Ve.value=[...new Set(Ve.value)],!jt||jt.length===0||Ve.value.length>0?ht.value=!0:ht.value=!1},[a,de.value.templateOptions]);v.useEffect(()=>{g&&Qe.length>5&&$t(Qe)},[g,Qe]),v.useEffect(()=>{a&&Lt.length>5&&tn(le.value)},[Lt]),v.useEffect(()=>{(Ke.value||ut.value||ht.value||$e.value)&&Ie.value&&(ot.value=!0)},[Ke.value,ut.value,$e.value,ht.value,Ie.value]),v.useEffect(()=>{me.value.status&&me.value.status>=400&&Ie.value&&(ot.value=!0)},[me.value.status,Ie.value]);const Pt=(Ue=!1)=>ge(this,null,function*(){var we,Se,De,nt,Pe,gt;if(am.value&&(Ib.value=!0,yield new Promise(Ze=>setTimeout(Ze,200))),Ab.value)return;let Je=null;ot.value=!1,Ie.value=!0,Ke.value=void 0,ut.value=void 0,me.value={};const jt=le.value.trim();if(Ue)Je=g?"Error":null;else{if(a)if(tn(le.value),Ve.value.length>0||Ge.value.length===0){ht.value=!0;return}else ht.value=!1;if(i&&((we=de.value.formOptions)!=null&&we.openUrl)&&!((Se=de.value.formOptions)!=null&&Se.isOpenUrlDisabled)){const Re=zr().match((De=de.value.formOptions)==null?void 0:De.openUrl);if(!Re||Re.length>1){Ke.value=!0;return}}if(w){const Re=zr().match(jt);if(!Re||Re.length>1){Ke.value=!0;return}}if(g)try{Je=yield On("path_type_check",{path:jt})}catch(Ze){Je="Error",ut.value=!0;return}else if(m)try{if(yield On("run_shell_command",{execCmd:jt}),(nt=se.value.outputTemplate)!=null&&nt.id&&!((gt=(Pe=se.value.outputTemplate)==null?void 0:Pe.value)!=null&>.includes("{{output}}"))){ht.value=!0;return}}catch(Ze){ce.value=Ze,$e.value=!0;return}else if(b)try{const Ze=yield On("run_web_request",{request:{url:jt,method:se.value.method,headers:se.value.headers,filters:se.value.filters,body:se.value.body,auth:se.value.auth}});if(me.value={},Ze.status&&Ze.status>=400){me.value={body:Ze.body,filteredBody:Ze.filteredBody,hasFiltersError:Ze.hasFiltersError,status:Ze.status,contentType:Ze.contentType};return}}catch(Ze){me.value={body:Ze,status:500,contentType:null};return}else if(C)try{const Ze=yield On("run_web_scraping",{request:{url:jt,method:"GET",scrapingRules:se.value.scrapingRules,scrapingOptions:se.value.scrapingOptions}});if(me.value={},Ze.status&&Ze.status>=400){me.value={body:Ze.body,filteredBody:Ze.scrappedBody,hasFiltersError:Ze.hasRulesError,status:Ze.status};return}}catch(Ze){me.value={body:Ze,status:500,contentType:null};return}}(i||a)&&(a&&de.value.templateOptions.forEach(Ze=>{Ze.defaultValue=Ze.value}),I=JSON.stringify(de.value),yield Fe({updatedItem:{formTemplateOptions:I,isForm:!!i,isTemplate:!!a,itemId:t}})),(b||C||m)&&(_=JSON.stringify(se.value),yield Fe({updatedItem:{requestOptions:_,itemId:t}})),yield Fe({updatedItem:ae(R(R(R(R({value:jt},m?{isCommand:!0}:{}),b?{isWebRequest:!0}:{}),C?{isWebScraping:!0}:{}),Je&&g?{pathType:Je}:{}),{itemId:t})}),setTimeout(()=>{Ie.value=!1,Y()},200)});return v.useEffect(()=>{var Ue;P&&((Ue=Z==null?void 0:Z.current)==null||Ue.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[P,Z==null?void 0:Z.current]),o.jsx(Vh,{className:Pn("px-2 pr-1.5 py-2 m-0.5 mt-0 pt-0 mx-1 text-left flex flex-row rounded-md select-auto",c&&"bg-red-50 dark:bg-red-900"),children:o.jsxs(ne,{className:"w-full mt-0",ref:Z,children:[!z||l&&S?r||A||l||m||w||b||a||C||i||g?g?o.jsxs(ve,{className:"relative text-normal",children:[o.jsx(wn,{defaultValue:le.value,placeholder:G("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(ut.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(ut.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-4",children:ut.value?o.jsx(st,{text:G("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):ut.value===!1&&o.jsx(st,{text:G("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ue=>{le.value=Ue.target.value}},ft.value),o.jsx(aW,{onCallBack:Ue=>{ft.value=Date.now(),le.value=Ue}})]}):w?o.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[o.jsx(wn,{defaultValue:le.value,placeholder:G("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(Ke.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(Ke.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:Ke.value?o.jsx(st,{text:G("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):Ke.value===!1&&o.jsx(st,{text:G("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Ue=>{if(Ke.value&&(Ke.value=void 0),Ue.target.value.length>5){const jt=zr().match(Ue.target.value);!jt||jt.length>1?Ke.value=!0:Ke.value=!1}le.value=Ue.target.value}}),We&&o.jsx(ne,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(($=le.value)==null?void 0:$.trim())!==((M=be==null?void 0:be.linkUrl)==null?void 0:M.trim()),title:be==null?void 0:be.linkTitle,description:be==null?void 0:be.linkDescription,favicon:be==null?void 0:be.linkFavicon,link:be==null?void 0:be.linkUrl,image:be==null?void 0:be.linkImage,domain:be==null?void 0:be.linkDomain})}),l?!qc(le.value)&&!Ke.value&&o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(le.value),hasError:wt.value,onErrorCallback:()=>{wt.value=!0},draggable:!1,decoding:"async",className:"".concat(Ut," min-h-10")})}):o.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[qc(le.value)||Ke.value||le.value.length<3?!qc(le.value)&&o.jsx(je,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:We?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),"!",G("Update Link Card",{ns:"dashboard"}),"!"]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),G("Add Link Card",{ns:"dashboard"})]})}):o.jsx(je,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("fetch_link_metadata",{url:Ir(le.value),itemId:t}),Ee()}),children:We?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),G("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),G("Add Link Card",{ns:"dashboard"})]})}),We&&o.jsx(je,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("delete_link_metadata",{itemId:t}),Ee()}),children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[G("Remove",{ns:"common"}),o.jsx(bv,{size:14,className:"ml-1"})]})})]})]}):r?o.jsx(rj,{value:le.value,height:x?"calc(100vh - 280px)":"200px",isDark:L,options:{mode:A!=null?A:"javascript"},onChange:Ue=>{le.value=Ue.getValue()}},"code-editor"):l?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[o.jsx("img",{src:S||uh,draggable:!1,decoding:"async",height:"auto",className:"".concat(XS.value===t?"!border-red-400 opacity-70":""," max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400")}),o.jsx(ne,{className:"absolute",children:S?o.jsx(iW,{id:t}):o.jsx(sW,{id:t})})]}):m?o.jsxs(ne,{className:"mt-0.5",children:[o.jsx(rj,{value:le.value,height:x?"260px":"70px",isDark:L,isCmd:!0,lineWrapping:!0,options:{mode:"shell"},onChange:Ue=>{le.value=Ue.getValue(),ce.value="",$e.value=void 0}},"code-editor"),(W=se.value.outputRegexFilter)!=null&&W.id?o.jsxs(ne,{className:"mt-2",children:[o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:G("Regex Match Group Filter",{ns:"dashboard"})})}),o.jsxs(ve,{className:"gap-2 mb-2",children:[o.jsx(wn,{small:!0,defaultValue:(V=se.value.outputRegexFilter)==null?void 0:V.value,disabled:((U=se.value.outputRegexFilter)==null?void 0:U.isEnable)===!1,onChange:Ue=>{se.value.outputRegexFilter||(se.value.outputRegexFilter={}),se.value.outputRegexFilter.value=Ue.target.value.trim()},className:"".concat(((J=se.value.outputRegexFilter)==null?void 0:J.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:G("Enter regex for output filer",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:G("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ue;se.value=ae(R({},se.value),{outputRegexFilter:ae(R({},se.value.outputRegexFilter),{isEnable:!((Ue=se.value.outputRegexFilter)!=null&&Ue.isEnable)})})},children:(H=se.value.outputRegexFilter)!=null&&H.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:G("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{se.value=ae(R({},se.value),{outputRegexFilter:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}):o.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ue,Je,jt;se.value.outputRegexFilter||(se.value.outputRegexFilter={}),se.value=ae(R({},se.value),{outputRegexFilter:{id:(Ue=se.value.outputRegexFilter.id)!=null?Ue:Date.now().toString(),value:(Je=se.value.outputRegexFilter.value)!=null?Je:"",isEnable:(jt=se.value.outputRegexFilter.isEnable)!=null?jt:!0}})},children:G("Add Regex Match Group Filter",{ns:"dashboard"})})}),(F=se.value.outputTemplate)!=null&&F.id?o.jsxs(ne,{className:"mt-2",children:[o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:G("Output Template",{ns:"dashboard"})})}),ht.value&&o.jsx(re,{className:"!text-yellow-600 text-xs mt-2",children:o.jsx(us,{i18nKey:"Template should have⠀{{output}}⠀placeholder.",ns:"dashboard"})}),o.jsxs(ve,{className:"gap-2 mb-2",children:[o.jsx(wn,{small:!0,defaultValue:(q=se.value.outputTemplate)==null?void 0:q.value,disabled:((X=se.value.outputTemplate)==null?void 0:X.isEnable)===!1,onChange:Ue=>{se.value.outputTemplate||(se.value.outputTemplate={}),se.value.outputTemplate.value=Ue.target.value.trim()},className:"".concat(((te=se.value.outputTemplate)==null?void 0:te.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:G("Wrap output using {{output}} placeholder",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),o.jsx(je,{size:"mini",title:G("Enable / Disable",{ns:"dashboard"}),variant:"ghost",className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-blue-400 text-slate-600 hover:text-blue-500",onClick:()=>{var Ue;se.value=ae(R({},se.value),{outputTemplate:ae(R({},se.value.outputTemplate),{isEnable:!((Ue=se.value.outputTemplate)!=null&&Ue.isEnable)})})},children:(ee=se.value.outputTemplate)!=null&&ee.isEnable?o.jsx(qa,{size:14}):o.jsx(wa,{size:14})}),o.jsx(je,{size:"mini",title:G("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{se.value=ae(R({},se.value),{outputTemplate:{}})},className:"text-sm font-semibold w-6 h-6 hover:bg-transparent dark:text-slate-400 dark:hover:text-red-500 text-slate-600 hover:text-red-500",children:o.jsx(kr,{size:14})})]})]}):o.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:o.jsx(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Ue,Je,jt;se.value.outputTemplate||(se.value.outputTemplate={}),se.value=ae(R({},se.value),{outputTemplate:{id:(Ue=se.value.outputTemplate.id)!=null?Ue:Date.now().toString(),value:(Je=se.value.outputTemplate.value)!=null?Je:"",isEnable:(jt=se.value.outputTemplate.isEnable)!=null?jt:!0}})},children:G("Add Output Template",{ns:"dashboard"})})}),ce.value&&o.jsxs(ne,{className:"".concat($e.value?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," ").concat(x?"py-1":"py-0"," rounded-md px-3 relative"),children:[o.jsx(Ca,{isDark:L,maxHeight:x?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:ce.value,language:"shell"}),o.jsx(ne,{className:"".concat($e.value?"bg-red-300 dark:bg-red-800":"bg-green-300 dark:bg-green-800"," text-xs rounded-sm px-1.5 absolute right-2 bottom-2 select-none"),children:$e.value?G("Command:::error",{ns:"dashboard"}):G("Command:::output",{ns:"dashboard"})})]})]}):b?o.jsx(T2e,{isLargeView:x,clipId:t,clipValue:le,webrequestTestOutputObject:me,webrequestLocalOptions:se,showLinkValidationError:Ke,isDark:L,requestOptions:_}):C?o.jsx(P2e,{isLargeView:x,clipValue:le,testOutputObject:me,localOptions:se,showLinkValidationError:Ke,isDark:L,requestOptions:_}):a?o.jsxs(ne,{children:[o.jsx(_2e,{clipValue:le,isLargeView:x,checkForTemplateFieldsCallback:()=>{tn(le.value)},templateMissingFields:Ve,templateFoundFields:Ge,localOptions:de}),ye.value&&o.jsxs(ne,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-2 rounded-md text-sm",children:[o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsxs(ne,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8",children:[o.jsx("div",ae(R({},pe.value==="html"&&{dangerouslySetInnerHTML:{__html:Th.sanitize(ye.value)}}),{className:"font-normal"})),pe.value==="text"&&ye.value]})}),o.jsx(In,{size:16,className:"absolute right-2 top-2 cursor-pointer opacity-30 hover:opacity-100",onClick:()=>{ye.value=""}}),o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-900 text-xs rounded-sm px-1.5 absolute left-2 bottom-2 select-none",children:G("filled template",{ns:"dashboard"})}),o.jsx(pl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:pe.value,onValueChange:Ue=>{pe.value=Ue==="html"?"html":"text"},children:o.jsxs(Xo,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[o.jsx(jr,{value:"text",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:G("Text",{ns:"dashboard"})}),o.jsx(jr,{value:"html",className:"!text-xs py-0.5 data-[state=active]:text-slate-500 dark:data-[state=active]:text-slate-200 text-slate-400 dark:text-slate-500 hover:text-blue-400 dark:hover:text-slate-200 data-[state=active]:hover:text-slate-500",children:G("HTML",{ns:"dashboard"})})]})})]})]}):i&&o.jsx(N2e,{isLargeView:x,showLinkValidationError:Ke,localOptions:de}):o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[o.jsx(st,{isCompact:!0,text:G("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:o.jsx(Sz,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("copy")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Masked Text Formatting",{ns:"common"}),children:o.jsx(pk,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("mask")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Blank Text Formatting",{ns:"common"}),children:o.jsx(ZU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("blank")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:o.jsx(XU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("hl")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Header Formatting",{ns:"common"}),children:o.jsx(hie,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("h")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Bold Formatting",{ns:"common"}),children:o.jsx(lae,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("b")}})}),o.jsx(st,{isCompact:!0,text:G("Toolbar:::Italic Formatting",{ns:"common"}),children:o.jsx(Cie,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleAddBBcode("i")}})}),o.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:o.jsx(st,{isCompact:!0,text:G("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:o.jsx(Az,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var Ue;(Ue=pt==null?void 0:pt.current)==null||Ue.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),o.jsx(Co,{ref:pt,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:G("Enter value or drag from history",{ns:"dashboard"}),rows:2,autoFocus:T,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:x?12:6,value:le.value,onKeyDown:Ue=>{Ue.stopPropagation()},onChange:Ue=>{le.value=Ue.target.value}})]}):o.jsx(E2e,{isOver:e}),o.jsx(or,{style:{minWidth:"100%"},forceVisible:!0,className:"dashboard-tabs",children:o.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[o.jsxs(ve,{className:"items-start mt-2",children:[o.jsx(C2e,{isCode:r,isCommand:m,isWebRequest:b,isWebScraping:C,isLink:w,isPath:g,isText:s,isTemplate:a,isForm:i,isImage:l,itemId:t,detectedLanguage:A,children:o.jsx(ne,{children:o.jsx(st,{text:Xt,isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-900/70 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:r?o.jsxs(o.Fragment,{children:[o.jsx(nE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Code",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):l?o.jsxs(o.Fragment,{children:[o.jsx(X2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Image",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):g?o.jsxs(o.Fragment,{children:[o.jsx(aE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Path",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):b?o.jsxs(o.Fragment,{children:[o.jsx(NU,{width:16,height:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Request",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):C?o.jsxs(o.Fragment,{children:[o.jsx(_U,{width:16,height:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Scraper",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):m?o.jsxs(o.Fragment,{children:[o.jsx(zz,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Command",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):w?o.jsxs(o.Fragment,{children:[o.jsx(P0,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Link",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):i?o.jsxs(o.Fragment,{children:[o.jsx(Hz,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::AutoFill",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):a?o.jsxs(o.Fragment,{children:[o.jsx(sE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Template",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):o.jsxs(o.Fragment,{children:[o.jsx(Z2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:G("Type:::Text",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]})})})})})}),m?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){var Ue,Je,jt,we,Se;try{ce.value=yield On("run_shell_command",{execCmd:le.value,outputTemplate:(Ue=se.value.outputTemplate)!=null&&Ue.id?se.value.outputTemplate:null,outputRegexFilter:(Je=se.value.outputRegexFilter)!=null&&Je.id?se.value.outputRegexFilter:null}),$e.value=!1,ht.value=!!((jt=se.value.outputTemplate)!=null&&jt.id&&!((Se=(we=se.value.outputTemplate)==null?void 0:we.value)!=null&&Se.includes("{{output}}")))}catch(De){ce.value=De,$e.value=!0}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):b?o.jsx(st,{text:G("Test Request",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){me.value={};try{me.value=yield On("run_web_request",{request:{url:le.value,method:se.value.method,headers:se.value.headers,filters:se.value.filters,body:se.value.body,auth:se.value.auth}})}catch(Ue){me.value={body:Ue,status:500,contentType:null}}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):i?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){yield On("run_form_fill",{formOptions:de.value.formOptions,firstDelay:1})}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):a?o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){try{ye.value=yield On("run_template_fill",{templateValue:le.value,templateOptions:de.value.templateOptions,isPreview:!0})}catch(Ue){console.error(Ue)}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}):C&&o.jsx(st,{text:G("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>ge(this,null,function*(){me.value={};try{me.value=yield On("run_web_scraping",{request:{url:le.value,method:"GET",scrapingRules:se.value.scrapingRules,scrapingOptions:se.value.scrapingOptions}})}catch(Ue){me.value={body:Ue,status:500,contentType:null}}}),children:o.jsx(ve,{className:"font-medium text-sm gap-1",children:o.jsx($g,{size:16,className:"text-gray-500"})})})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(st,{text:G("Clip Options",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500",children:o.jsx(zh,{size:16})})})})}),o.jsxs(Wn,{className:"",sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:G("Clip Options",{ns:"dashboard"})})}),o.jsx(kn,{}),E?o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isPinned:!1,itemId:t}})},children:[G("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isPinned:!0,itemId:t}})},children:[G("Pin",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(tu,{size:15})})]}),N?o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isFavorite:!1,itemId:t}})},children:[G("Remove Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(w5,{size:15,className:"fill-transparent"})})]}):o.jsxs(rt,{onClick:()=>{Fe({updatedItem:{isFavorite:!0,itemId:t}})},children:[G("Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Fh,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsxs(rt,{className:d?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{isMasked:!d,itemId:t}})},children:[G("Type:::Secret",{ns:"common"}),d&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:f?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{isVideo:!f,itemId:t}})},children:[G("Type:::Video",{ns:"common"}),f&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:p?"font-semibold":"",onClick:Ue=>{Ue.preventDefault(),Fe({updatedItem:{hasEmoji:!p,itemId:t}})},children:[G("Type:::Emoji",{ns:"common"}),p&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsx(S2e,{clipId:t,onComplete:Y})]})]})]}),o.jsxs(ve,{className:"items-end ml-auto mt-1",children:[o.jsx(st,{text:G("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{Y()},children:o.jsx(In,{size:18})})})}),o.jsxs(Sa,{defaultOpen:!1,open:ot.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{!qe&&(m||b||C||a||i)?Ga.value=!0:Pt()},children:[o.jsx(en,{size:18,className:"mr-1"}),G("Save",{ns:"common"}),(m||b||C||a||i)&&o.jsx(Jl,{})]})})}),o.jsx(ia,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{ot.value=!1,Ie.value=!1},onPointerDownOutside:()=>{ot.value=!1,Ie.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:o.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:Ke.value?G("Errors:::Please verify your link for any errors, or confirm to save as is.",{ns:"dashboard"}):ut.value?G("Errors:::Please verify your path for any errors, or confirm to save as is.",{ns:"dashboard"}):$e.value?G("Errors:::Your command runs with errors, confirm you want to save as is.",{ns:"dashboard"}):me.value.status&&!me.value.hasFiltersError&&me.value.status>=400?G("Errors:::Your request runs with errors, confirm you want to save as is.",{ns:"dashboard"}):me.value.status&&me.value.hasFiltersError&&me.value.status>=400?G("Errors:::Your request has filters error, confirm you want to save as is.",{ns:"dashboard"}):ht.value?Ge.value.length===0?G("Errors:::No fields found in the template.",{ns:"dashboard"})+" "+G("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):Ve.value.length>0?G("{{count}} fields found in template but missing from fields definition.",{ns:"dashboard",count:Ve.value.length})+" "+G("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):G("Errors:::Your template has errors, confirm you want to save as is.",{ns:"dashboard"}):G("Please confirm to save as is.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{className:"mb-1",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{ot.value=!1,Ie.value=!1},children:G("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{Pt(!0)},children:G("Save It!",{ns:"common"})})]})]})})]})]})]})})]})})}finally{O.f()}}const R7=["post","page","media","creditcard","tiktok","kanbanSquare","arrowRight","twitter","facebook","linkedin","twitch","youtube","instagram","slack","dribbble","trello","chrome","codePen","codesandbox","figma","send","check","check2","copy","help","pin","copyDone","star","list","list2","list3","list5","listmusic","listchecks","listCollapse","listOrdered","listTree","listToDo","scrollText","audioLines","audioWaveform","mic","mails","atSign","mail","inbox","archive","container","sendHorizontal","contact","contact2","userRound","circleUser","userSquare","squareUser","userRound2","user","baby","notebook","paperclip","bookUser","nfc","smartphoneNfc","smartphone","graduationCap","apple2","appWindows","alertTriangle","alertCircle","alarmClock","alertOctagon","voicemail","calendarClock","calendarDays","calendarHeart","angry","annoyed","frown","meh","smile","eye","fan","handMetal","heartHandshake","heart","leafyGreen","ribbon","ralad","crown","camera","fingerprint","flame","database","dog","cat","bird","rabbit","fish","fishSymbol","carrot","candy","cherry","dice","biohazard","satellite","satelliteDish","radioTower","radio","wifi","router","bitcoin","dollarSign","circleDollarSign","euro","drum","medal","beer","beef","bell","draftingCompass","trophy","gaugeCircle","gauge","bike","award","trafficCone","tramFront","truck","plane","car","dumbbell","parkingCircle","parkingSquare","msquare","partyPopper","conciergeBell","aperture","areaChart","armchair","arrowUpRightSquare","asteriskSquare","asterisk","keySquare","key","lockKeyhole","lock","shieldCheck","shield","compass","shieldHalf","presentation","folder","folderHeart","folderTree","folderDot","folderGit","folderGit2","folderKey","folderLock","folderKanban","file","fileCode","fileText","fileCode2","fileJson","fileJson2","fileTerminal","fileVideo","fileVideo2","fileVolume","fileHeart","fileImage","fileLock2","fileLock","fileSpreadsheet","fileCog","fileMusic","filePieChart","filePen","fileSearch","fileLineChart","fileSymlink","driveDownload","driveUpload","imageDown","import","music","sheet","pieChart","packageOpen","package","gamepad2","joystick","hammer","lampDesk","lamp","bookOpen","airplay","code2","code","codeSquare","functionSquare","arrowDownCircle","arrowUpCircle","arrowLeftCircle","arrowRightCircle","gem","ghost","rocket","skull","sparkles","puzzle","messageWarning","messageWarning2","dessert","pizza","venetianMask","wand","toyBrick","mountain","milestone","feather","flaskRound","goal","hourglass","axe","gitlab","github2","sprayCcan","gift","swords","fileAudio2","downloadCloud","uploadCloud","upload","download","globe","globe2","hash","highlighter","infinity","lifeBuoy","locateFixed","mapPin","map","magnet","martini","mountainSnow","mousePointer","move3d","network","newspaper","notebook2","notepadText","megaphone","ganttChartSquare","personStanding","plug2","play","plug","plugZap2","plugZap","radiation","quote","tag","speech","spade","shoppingCart","slidersHorizontal","discord","gitHub","npm","pnpm","node","react","tailwind","google","apple","paypal"],Ho={logo:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t),{children:o.jsx("circle",{cx:"12",cy:"12",r:"10"})})),close:In,spinner:Hie,chevronLeft:Cae,chevronRight:T0,trash:kr,post:Z2,page:lM,media:X2,settings:zh,ellipsis:yl,add:Vr,warning:Ti,arrowRight:Vse,help:Lae,twitter:zce,check:en,check2:wae,copy:tE,pin:tu,pinoff:Od,copyDone:Cz,sun:Tce,moon:lle,facebook:hoe,linkedin:Die,twitch:$ce,youtube:Yce,instagram:kie,slack:lce,dribbble:ioe,trello:Lce,star:Fh,chrome:_ae,codePen:qae,codesandbox:Kae,figma:goe,image:X2,list:x5,list2:Fie,list3:vz,list4:Ase,list5:Ise,listmusic:Lie,listchecks:iE,listCollapse:Iie,listOrdered:Rie,listTree:zie,listToDo:$ie,scrollText:Xle,scroll:Qle,audioLines:Gse,audioWaveform:Yse,mic:ole,mails:Kie,atSign:Kse,mail:qie,inbox:bie,archive:Hse,container:Qae,sendHorizontal:Jle,send:ece,contact:Xae,contact2:Zae,userRound:$ae,circleUser:zae,userSquare:Nce,squareUser:_ce,userRound2:Hce,user:Bce,baby:Qse,notebook:xle,paperclip:Nle,bookUser:uae,nfc:vle,smartphoneNfc:uce,smartphone:dce,graduationCap:oie,apple2:Fse,appWindows:zse,aLargeSmall:Pse,alertTriangle:Ti,alertCircle:kz,alarmClock:Dse,alertOctagon:wle,voicemail:Wce,calendarClock:fae,calendarDays:hae,calendarHeart:pae,angry:Rse,annoyed:Ose,frown:Zoe,meh:ele,smile:fce,eye:M0,fan:poe,handMetal:uie,heartHandshake:pie,heart:m6,leafyGreen:Pie,ribbon:Vle,ralad:Gle,crown:eoe,camera:gae,fingerprint:Loe,flame:$oe,database:toe,dog:soe,cat:bae,bird:oae,rabbit:Hle,fish:Ooe,fishSymbol:Roe,carrot:yae,candy:vae,cherry:kae,dice:roe,biohazard:aae,satellite:Zle,satelliteDish:Yle,radioTower:Ule,radio:Wle,wifi:Kce,router:qle,bitcoin:iae,dollarSign:aoe,circleDollarSign:Iae,euro:foe,drum:loe,medal:Qie,beer:eae,beef:Jse,bell:rae,draftingCompass:ooe,trophy:Rce,gaugeCircle:Aae,gauge:Qoe,bike:sae,award:Zse,trafficCone:Ice,tramFront:Ace,truck:Oce,plane:Dle,car:xae,dumbbell:coe,parkingCircle:Rae,parkingSquare:Ece,msquare:Cce,partyPopper:_le,conciergeBell:Yae,aperture:$se,areaChart:Bse,armchair:Use,arrowUpRightSquare:vce,asteriskSquare:Lz,asterisk:qse,keySquare:jie,key:Eie,lockKeyhole:Uie,lock:Wie,shieldCheck:nce,shield:sce,compass:Gae,shieldHalf:rce,presentation:$le,folder:r0,folderHeart:Woe,folderTree:Yoe,folderDot:Hoe,folderGit:Uoe,folderGit2:Boe,folderKey:qoe,folderLock:Koe,folderKanban:Voe,file:lM,fileCode:xoe,fileText:Z2,fileCode2:nE,fileJson:koe,fileJson2:woe,fileTerminal:Moe,fileVideo:Ioe,fileVideo2:Doe,fileVolume:Aoe,fileHeart:yoe,fileImage:boe,fileLock2:Soe,fileLock:joe,fileSpreadsheet:Poe,fileCog:rE,fileMusic:Eoe,filePieChart:_oe,filePen:Noe,fileSearch:Toe,fileLineChart:Coe,fileSymlink:aE,driveDownload:die,driveUpload:Pz,imageDown:xie,import:yie,music:ple,sheet:tce,pieChart:Ple,packageOpen:kle,package:Cle,gamepad2:Xoe,joystick:Sie,hammer:cie,lampDesk:Nie,lamp:_ie,bookOpen:cae,airplay:Mse,code2:Wae,code:Vae,codeSquare:xce,functionSquare:Oz,arrowDownCircle:Tae,arrowUpCircle:Dae,arrowLeftCircle:Pae,arrowRightCircle:Mae,gem:Joe,ghost:eie,rocket:cm,skull:ice,sparkles:pce,puzzle:zle,messageWarning:tle,messageWarning2:sle,dessert:noe,pizza:Mle,venetianMask:Uce,wand:Vce,toyBrick:Dce,mountain:ule,milestone:ile,feather:moe,flaskRound:zoe,goal:aie,hourglass:vie,axe:Xse,gitlab:rie,github2:nie,sprayCcan:gce,gift:tie,swords:Pce,fileAudio2:voe,downloadCloud:Bae,uploadCloud:Uae,upload:Fce,download:Nz,globe:sie,globe2:uoe,hash:fie,highlighter:mie,infinity:wie,lifeBuoy:Mie,locateFixed:Bie,mapPin:Gie,map:Yie,magnet:Vie,martini:Zie,mountainSnow:cle,mousePointer:jce,move3d:dle,network:mle,newspaper:gle,notebook2:yle,notepadText:ble,megaphone:Jie,ganttChartSquare:bce,personStanding:Tle,plug2:Ale,play:Ile,plug:Ole,plugZap2:Lle,plugZap:Rle,radiation:Ble,quote:Fle,tag:Mce,speech:mce,spade:hce,shoppingCart:ace,slidersHorizontal:cce,kanbanSquare:wce,creditcard:t=>o.jsxs("svg",ae(R({viewBox:"0 0 24 24",fill:"currentColor",width:t.size,height:t.size},t),{children:[o.jsx("path",{d:"M21.278 3.054H2.722c-.614.003-1.202.249-1.636.683-.434.434-.68 1.022-.683 1.636v13.254c.003.614.249 1.202.683 1.636.434.434 1.022.68 1.636.683h18.556a2.3306 2.3306 0 0 0 1.636-.683c.434-.434.68-1.022.683-1.636V5.373a2.3306 2.3306 0 0 0-.683-1.636 2.3306 2.3306 0 0 0-1.636-.683ZM2.722 5.042h18.556c.088 0 .172.035.234.097.062.062.097.146.097.234v2.982H2.391V5.373c0-.088.035-.172.097-.234a.3307.3307 0 0 1 .234-.097Zm18.556 13.916H2.722a.3307.3307 0 0 1-.234-.097.3307.3307 0 0 1-.097-.234v-8.284h19.218v8.284c0 .088-.035.172-.097.234a.3307.3307 0 0 1-.234.097Z"}),o.jsx("path",{d:"M8.055 14.438H6.204c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Zm4.6 0h-1.851c-.245 0-.48.097-.654.271a.9266.9266 0 0 0-.271.654c0 .245.098.481.271.654.174.174.409.271.654.271h1.851c.246 0 .481-.097.655-.271.173-.173.27-.409.27-.654 0-.245-.097-.481-.27-.654a.9247.9247 0 0 0-.655-.271Z"})]})),discord:t=>o.jsx("svg",ae(R({viewBox:"0 0 127.14 96.36",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})),gitHub:t=>o.jsx("svg",ae(R({viewBox:"0 0 438.549 438.549",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"})})),npm:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z"})})),tiktok:t=>o.jsxs("svg",ae(R({viewBox:"0 0 25 25",width:t.size,height:t.size},t),{fill:"none",stroke:"currentColor",children:[o.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M23.078 7.077v9.846c0 3.399-2.756 6.155-6.155 6.155H7.077c-3.399 0-6.155-2.756-6.155-6.155V7.077C.922 3.678 3.678.922 7.077.922h9.846c3.399 0 6.155 2.756 6.155 6.155Z"}),o.jsx("path",{stroke:"currentColor",strokeWidth:"1.8",d:"M9.538 12c-2.039 0-3.692 1.653-3.692 3.693 0 2.039 1.653 3.692 3.692 3.692 2.04 0 3.693-1.653 3.693-3.692V4.615c.41 1.231 1.969 3.692 4.923 3.692"})]})),pnpm:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z"})})),node:t=>o.jsx("svg",ae(R({viewBox:"0 0 16 16",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M 8 1.0234375 C 7.736875 1.0234375 7.4742344 1.0924687 7.2402344 1.2304688 L 2.7402344 3.8789062 C 2.2832344 4.1469063 2 4.642875 2 5.171875 L 2 11.005859 C 2 11.554859 2.29925 12.059266 2.78125 12.322266 L 4.2558594 13.126953 C 4.4828594 13.250953 4.7286094 13.310547 4.9746094 13.310547 C 5.2386094 13.310547 5.4992812 13.239609 5.7382812 13.099609 C 6.1982812 12.826609 6.4726562 12.344594 6.4726562 11.808594 L 6.4726562 5.4648438 L 5.4726562 5.4648438 L 5.4726562 11.808594 C 5.4726562 12.065594 5.3025156 12.195281 5.2285156 12.238281 C 5.1555156 12.281281 4.959375 12.371047 4.734375 12.248047 L 3.2617188 11.445312 C 3.1007187 11.357312 3 11.188859 3 11.005859 L 3 5.171875 C 3 4.995875 3.0940938 4.8302344 3.2460938 4.7402344 L 7.7460938 2.0917969 C 7.9020937 1.9997969 8.0979062 2.0007969 8.2539062 2.0917969 L 12.753906 4.7402344 C 12.904906 4.8302344 13 4.995875 13 5.171875 L 13 11.009766 C 13 11.189766 12.900234 11.359219 12.740234 11.449219 L 8.2402344 13.900391 C 8.0902344 13.980391 7.9097656 13.980391 7.7597656 13.900391 L 6.8808594 13.419922 C 6.7108594 13.629922 6.5 13.810937 6.25 13.960938 C 6.17 14.010938 6.0897656 14.050078 6.0097656 14.080078 L 7.2792969 14.779297 C 7.5092969 14.899297 7.75 14.960938 8 14.960938 C 8.25 14.960938 8.4907031 14.899297 8.7207031 14.779297 L 13.220703 12.320312 C 13.700703 12.060313 14 11.559766 14 11.009766 L 14 5.171875 C 14 4.642875 13.717719 4.1469062 13.261719 3.8789062 L 8.7617188 1.2304688 C 8.5272187 1.0924688 8.263125 1.0234375 8 1.0234375 z M 9.4511719 5.3183594 C 7.8711719 5.3183594 7.0703125 5.8690781 7.0703125 6.9550781 C 7.0703125 8.1850781 8.4869687 8.3680781 9.1679688 8.4550781 C 9.2659688 8.4680781 9.352875 8.4791875 9.421875 8.4921875 L 9.7207031 8.5449219 C 10.760703 8.7189219 11 8.836875 11 9.171875 C 11 9.333875 10.999172 9.8242188 9.4511719 9.8242188 C 8.1381719 9.8242188 7.8691406 9.4346094 7.8691406 8.8496094 L 6.8691406 8.8496094 C 6.8691406 9.7516094 7.3171719 10.824219 9.4511719 10.824219 C 11.557172 10.824219 12 9.925875 12 9.171875 C 12 7.913875 10.777719 7.7076406 9.8867188 7.5566406 L 9.5996094 7.5078125 C 9.5166094 7.4928125 9.4119219 7.4788438 9.2949219 7.4648438 C 8.6589219 7.3828438 8.0703125 7.2650312 8.0703125 6.9570312 C 8.0703125 6.7340313 8.0691719 6.3193594 9.4511719 6.3183594 C 10.370172 6.3183594 10.837891 6.6207969 10.837891 7.2167969 L 11.837891 7.2167969 C 11.837891 6.2997969 11.209172 5.3183594 9.4511719 5.3183594 z"})})),react:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"})})),tailwind:t=>o.jsx("svg",ae(R({viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z"})})),google:t=>o.jsx("svg",ae(R({role:"img",viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"})})),apple:t=>o.jsx("svg",ae(R({role:"img",viewBox:"0 0 24 24",width:t.size,height:t.size},t),{children:o.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})})),paypal:t=>o.jsx("svg",ae(R({viewBox:"0 0 48 48",width:t.size,height:t.size},t),{children:o.jsx("path",{fill:"currentColor",d:"M 12.841797 3.9980469 C 11.545957 3.9980469 10.408459 4.9201856 10.140625 6.1875 A 1.50015 1.50015 0 0 0 10.140625 6.1894531 L 4.3105469 33.863281 A 1.50015 1.50015 0 0 0 4.3105469 33.865234 C 3.9778831 35.447651 5.2380138 37 6.8554688 37 L 13.125 37 L 12.310547 40.865234 C 11.976672 42.448822 13.234312 44 14.853516 44 L 22.5 44 A 1.50015 1.50015 0 0 0 23.96875 42.808594 L 26.140625 32.5 L 32.230469 32.5 C 37.754148 32.5 42.547425 28.631159 43.714844 23.232422 L 43.876953 22.478516 C 45.063149 16.990425 41.185502 11.734909 35.767578 11.072266 C 34.701026 7.0840748 31.068127 3.9980469 26.613281 3.9980469 L 21.273438 3.9980469 L 17.820312 3.9980469 L 12.841797 3.9980469 z M 13.035156 6.9980469 L 17.820312 6.9980469 L 21.273438 6.9980469 L 26.613281 6.9980469 C 29.385425 6.9980469 31.656541 8.678134 32.609375 11 L 19.820312 11 A 1.50015 1.50015 0 0 0 18.351562 12.191406 L 15.996094 23.371094 A 1.50015 1.50015 0 0 0 15.855469 24.035156 L 13.757812 34 L 7.3476562 34 L 13.035156 6.9980469 z M 21.037109 14 L 33.068359 14 C 33.044325 14.280128 33.006713 14.561571 32.945312 14.845703 L 32.78125 15.599609 C 31.908668 19.634872 28.35879 22.5 24.230469 22.5 L 19.246094 22.5 L 21.037109 14 z M 36.056641 14.160156 C 39.449348 14.913351 41.718962 18.266313 40.945312 21.845703 L 40.78125 22.599609 C 39.908668 26.634872 36.35879 29.5 32.230469 29.5 L 24.923828 29.5 A 1.50015 1.50015 0 0 0 23.455078 30.691406 L 21.283203 41 L 15.347656 41 L 16.443359 35.796875 L 16.449219 35.775391 A 1.50015 1.50015 0 0 0 16.451172 35.767578 L 18.613281 25.5 L 24.230469 25.5 C 29.754148 25.5 34.547425 21.631159 35.714844 16.232422 L 35.876953 15.478516 C 35.972548 15.036146 36.024967 14.597251 36.056641 14.160156 z"})})),sunmoon:t=>o.jsxs("svg",ae(R({viewBox:"10.9 10.9 78.2 78.2"},t),{xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{fill:"currentColor",d:"M50,89.1c21.56,0,39.1-17.54,39.1-39.1S71.56,10.9,50,10.9c-21.56,0-39.1,17.54-39.1,39.1S28.44,89.1,50,89.1z M50,15.26 c19.16,0,34.74,15.58,34.74,34.74S69.16,84.74,50,84.74S15.26,69.16,15.26,50S30.84,15.26,50,15.26z"}),o.jsx("path",{fill:"currentColor",d:"M80.39,50c0-16.76-13.63-30.39-30.38-30.39v60.77C66.76,80.39,80.39,66.76,80.39,50z"})]})),minimize:t=>o.jsx("svg",ae(R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t),{children:o.jsx("path",{fill:"currentColor",d:"M480 480H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h448c17.7 0 32 14.3 32 32s-14.3 32-32 32z"})}))},p0=t=>{const e=Te(7),{name:n,size:r,className:s}=t;if(R7.indexOf(n)===-1){let l;return e[0]!==r||e[1]!==s?(l=o.jsx(dae,{size:r,className:s}),e[0]=r,e[1]=s,e[2]=l):l=e[2],l}const a=Ho[n];let i;return e[3]!==a||e[4]!==r||e[5]!==s?(i=o.jsx(a,{size:r,className:s}),e[3]=a,e[4]=r,e[5]=s,e[6]=i):i=e[6],i},Pc=t=>{const e=Te(20),{iconVisibility:n,isBoard:r,className:s,description:a,color:i,size:l,icon:c,pathType:d,children:p}=t,f=r===void 0?!1:r,m=i===void 0?"text-slate-500 dark:text-slate-400":i,b=l===void 0?16:l,C=p===void 0?null:p;if(n==="none")return null;if((n==="always"||!n)&&!f){const g="".concat(m);let w;e[0]!==c||e[1]!==m||e[2]!==C?(w=c?o.jsx(p0,{size:16,name:c,className:"".concat(m)}):C,e[0]=c,e[1]=m,e[2]=C,e[3]=w):w=e[3];let x;return e[4]!==g||e[5]!==w?(x=o.jsx("span",{className:g,children:w}),e[4]=g,e[5]=w,e[6]=x):x=e[6],x}if(n==="always"||f){const g="".concat(m),w=a||d,x=!d&&!a;let S;e[7]!==c||e[8]!==m||e[9]!==s||e[10]!==b||e[11]!==C?(S=c?o.jsx(p0,{size:b,name:c,className:"".concat(m," ").concat(s)}):C,e[7]=c,e[8]=m,e[9]=s,e[10]=b,e[11]=C,e[12]=S):S=e[12];let E;e[13]!==w||e[14]!==x||e[15]!==S?(E=o.jsx(st,{isCompact:!0,text:w,isDisabled:x,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:S}),e[13]=w,e[14]=x,e[15]=S,e[16]=E):E=e[16];let N;return e[17]!==g||e[18]!==E?(N=o.jsx("span",{className:g,children:E}),e[17]=g,e[18]=E,e[19]=N):N=e[19],N}return null};/** * @remix-run/router v1.13.0 * * Copyright (c) Remix Software Inc. @@ -2018,4 +2018,4 @@ prismjs/prism.js: * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function m0(){return m0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[s]=t[s]);return n}function Fwe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Hwe(t,e){return t.button===0&&(!e||e==="_self")&&!Fwe(t)}const Bwe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Uwe=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function Wwe(t,e){return cwe({basename:e==null?void 0:e.basename,future:m0({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:D2e({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||Vwe(),routes:t,mapRouteProperties:zwe,window:e==null?void 0:e.window}).initialize()}function Vwe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=m0({},e,{errors:qwe(e.errors)})),e}function qwe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,s]of e)if(s&&s.__type==="RouteErrorResponse")n[r]=new O7(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let a=window[s.__subType];if(typeof a=="function")try{let i=new a(s.message);i.stack="",n[r]=i}catch(i){}}if(n[r]==null){let a=new Error(s.message);a.stack="",n[r]=a}}else n[r]=s;return n}const CW=v.createContext({isTransitioning:!1}),Kwe=v.createContext(new Map),Gwe="startTransition",EI=Ww[Gwe],Ywe="flushSync",NI=AX[Ywe];function Zwe(t){EI?EI(t):t()}function Xg(t){NI?NI(t):t()}class Xwe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Qwe(t){let{fallbackElement:e,router:n,future:r}=t,[s,a]=v.useState(n.state),[i,l]=v.useState(),[c,d]=v.useState({isTransitioning:!1}),[p,f]=v.useState(),[m,b]=v.useState(),[C,g]=v.useState(),w=v.useRef(new Map),{v7_startTransition:x}=r||{},S=v.useCallback(I=>{x?Zwe(I):I()},[x]),E=v.useCallback((I,T)=>{let{deletedFetchers:L,unstable_flushSync:A,unstable_viewTransitionOpts:z}=T;L.forEach(O=>w.current.delete(O)),I.fetchers.forEach((O,$)=>{O.data!==void 0&&w.current.set($,O.data)});let Y=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||Y){A?Xg(()=>a(I)):S(()=>a(I));return}if(A){Xg(()=>{m&&(p&&p.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let O=n.window.document.startViewTransition(()=>{Xg(()=>a(I))});O.finished.finally(()=>{Xg(()=>{f(void 0),b(void 0),l(void 0),d({isTransitioning:!1})})}),Xg(()=>b(O));return}m?(p&&p.resolve(),m.skipTransition(),g({state:I,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(I),d({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,p,w,S]);v.useLayoutEffect(()=>n.subscribe(E),[n,E]),v.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new Xwe)},[c]),v.useEffect(()=>{if(p&&i&&n.window){let I=i,T=p.promise,L=n.window.document.startViewTransition(()=>ge(this,null,function*(){S(()=>a(I)),yield T}));L.finished.finally(()=>{f(void 0),b(void 0),l(void 0),d({isTransitioning:!1})}),b(L)}},[S,i,p,n.window]),v.useEffect(()=>{p&&i&&s.location.key===i.location.key&&p.resolve()},[p,m,s.location,i]),v.useEffect(()=>{!c.isTransitioning&&C&&(l(C.state),d({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),g(void 0))},[c.isTransitioning,C]);let N=v.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,T,L)=>n.navigate(I,{state:T,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(I,T,L)=>n.navigate(I,{replace:!0,state:T,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),_=n.basename||"/",P=v.useMemo(()=>({router:n,navigator:N,static:!1,basename:_}),[n,N,_]);return v.createElement(v.Fragment,null,v.createElement(Ax.Provider,{value:P},v.createElement(z7.Provider,{value:s},v.createElement(Kwe.Provider,{value:w.current},v.createElement(CW.Provider,{value:c},v.createElement($we,{basename:_,location:s.location,navigationType:s.historyAction,navigator:N},s.initialized?v.createElement(Jwe,{routes:n.routes,state:s}):e))))),null)}function Jwe(t){let{routes:e,state:n}=t;return Ewe(e,void 0,n)}const e5e=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",t5e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lu=v.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:a,replace:i,state:l,target:c,to:d,preventScrollReset:p,unstable_viewTransition:f}=e,m=kW(e,Bwe),{basename:b}=v.useContext(Kh),C,g=!1;if(typeof d=="string"&&t5e.test(d)&&(C=d,e5e))try{let E=new URL(window.location.href),N=d.startsWith("//")?new URL(E.protocol+d):new URL(d),_=Zd(N.pathname,b);N.origin===E.origin&&_!=null?d=_+N.search+N.hash:g=!0}catch(E){}let w=kwe(d,{relative:s}),x=r5e(d,{replace:i,state:l,target:c,preventScrollReset:p,relative:s,unstable_viewTransition:f});function S(E){r&&r(E),E.defaultPrevented||x(E)}return v.createElement("a",m0({},m,{href:C||w,onClick:g||a?r:S,ref:n,target:c}))}),Pp=v.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:s=!1,className:a="",end:i=!1,style:l,to:c,unstable_viewTransition:d,children:p}=e,f=kW(e,Uwe),m=xk(c,{relative:f.relative}),b=wl(),C=v.useContext(z7),{navigator:g}=v.useContext(Kh),w=C!=null&&s5e(m)&&d===!0,x=g.encodeLocation?g.encodeLocation(m).pathname:m.pathname,S=b.pathname,E=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;s||(S=S.toLowerCase(),E=E?E.toLowerCase():null,x=x.toLowerCase());const N=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let _=S===x||!i&&S.startsWith(x)&&S.charAt(N)==="/",P=E!=null&&(E===x||!i&&E.startsWith(x)&&E.charAt(x.length)==="/"),I={isActive:_,isPending:P,isTransitioning:w},T=_?r:void 0,L;typeof a=="function"?L=a(I):L=[a,_?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let A=typeof l=="function"?l(I):l;return v.createElement(lu,m0({},f,{"aria-current":T,className:L,ref:n,style:A,to:c,unstable_viewTransition:d}),typeof p=="function"?p(I):p)});var cj;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(cj||(cj={}));var _I;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(_I||(_I={}));function n5e(t){let e=v.useContext(Ax);return e||Hn(!1),e}function r5e(t,e){let{target:n,replace:r,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:l}=e===void 0?{}:e,c=ua(),d=wl(),p=xk(t,{relative:i});return v.useCallback(f=>{if(Hwe(f,n)){f.preventDefault();let m=r!==void 0?r:Ih(d)===Ih(p);c(t,{replace:m,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[d,c,p,r,s,n,t,a,i,l])}function s5e(t,e){e===void 0&&(e={});let n=v.useContext(CW);n==null&&Hn(!1);let{basename:r}=n5e(cj.useViewTransitionState),s=xk(t,{relative:e.relative});if(!n.isTransitioning)return!1;let a=Zd(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Zd(n.nextLocation.pathname,r)||n.nextLocation.pathname;return aj(s.pathname,i)!=null||aj(s.pathname,a)!=null}function a5e({itemId:t,setShowDetails:e,isLargeView:n,isShowDetails:r,isSelected:s,isPinned:a,isMenu:i,icon:l,iconVisibility:c,isPinnedBoard:d,isFavorite:p,boardId:f,tabId:m,setSelectedItemId:b}){var C=sn(1);try{const{t:g}=Gt(),{updateMovedClips:w}=K5(),{duplicateItem:x}=bge(),{deleteItemById:S}=Y5(),{updateItemById:E}=bl(),{updatePinnedClipsByIds:N}=OB(),{setIsShowPinned:_,isShowPinned:P}=Tt(Ls),{createNewItem:I}=G5(),T=ua(),{clipItems:L,tabs:A,currentTab:z,setCurrentTab:Y,currentCollectionId:O}=Tt(Ar),$=v.useCallback(()=>fs(L,z).filter(H=>H.id!==t),[L,z,t]),M=v.useCallback(()=>fs(L,z,f==null?void 0:f.toString()).filter(H=>H.id!==t).sort((H,F)=>H.orderNumber-F.orderNumber),[L,z,t,f]),W=function(H,F=!1){return ge(this,null,function*(){var ee,G;if(!O||!H||!f)return;const q=H.toString(),X=fs(L,q);let te=(ee=X.find(Z=>Z.name===g("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:ee.id;if(!te){const Z=(G=A.find(ce=>ce.tabId===q))==null?void 0:G.tabColor,le={name:g("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:q,color:Z,description:g("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:O,orderNumber:0},se=yield I({item:le});X.sort((ce,ye)=>ce.orderNumber-ye.orderNumber).unshift(ae(R({},le),{id:se,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const de=X.map((ce,ye)=>({itemId:ce.id,parentId:null,tabId:ce.tabId,collectionId:O,orderNumber:ye}));w({updatedMoveClips:de}),te=se}if(te){const Z=te.toString(),le=F?t:yield x({itemId:t,boardId:Z,tabId:q,collectionId:O});Rd.value=Z;const se=fs(L,q.toString(),Z==null?void 0:Z.toString());se.sort((ce,ye)=>ce.orderNumber-ye.orderNumber).unshift({parentId:Z,tabId:q,id:le,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const de=se.map((ce,ye)=>({itemId:ce.id,parentId:ce.parentId,tabId:ce.tabId,collectionId:O,orderNumber:ye}));Y(q),F?yield w({updatedMoveClips:de}):setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:de}),Wa.value=le}),300)}})},V=function(H,F=!1){return ge(this,null,function*(){if(!O||!H)return;const q=H.toString(),X=z.toString(),te=F?t:yield x({itemId:t,boardId:q,tabId:X,collectionId:O});Rd.value=q;const ee=fs(L,X.toString(),q==null?void 0:q.toString());ee.sort((Z,le)=>Z.orderNumber-le.orderNumber).unshift({parentId:q,tabId:X,id:te,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const G=ee.map((Z,le)=>({itemId:Z.id,parentId:Z.parentId,tabId:Z.tabId,collectionId:O,orderNumber:le}));Y(X),F?yield w({updatedMoveClips:G}):setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:G}),Wa.value=te}),300)})},U=function(ee){return ge(this,arguments,function*({isLast:H,isFirst:F,isAfterItemId:q,moveUp:X,moveDown:te}){const G=z.toString(),Z=fs(L,G,f==null?void 0:f.toString()).sort((ce,ye)=>ce.orderNumber-ye.orderNumber),le=Z.findIndex(ce=>ce.id===t);if(le===-1)return;let se;if(X)se=Math.max(0,le-1);else if(te)se=Math.min(Z.length-1,le+1);else if(q){const ce=Z.findIndex(ye=>ye.id===q);if(ce===-1)return;se=le>ce?ce+1:ce}else se=F?0:H?Z.length:0;const de=Wr(Z,le,se);if(de&&de.length){const ce=de.map((ye,pe)=>({itemId:ye.id,parentId:ye.parentId,tabId:ye.tabId,collectionId:O,orderNumber:pe}));yield w({updatedMoveClips:ce})}})},J=v.memo(({board:H,itemId:F,level:q,onSelect:X})=>{var te;return"isBoard"in H&&q<1&&((te=H.children)!=null&&te.some(ee=>"isBoard"in ee&&ee.isBoard&&ee.id!==F))?o.jsxs(Hr,{children:[o.jsx(Rr,{onClick:()=>{X(H.id)},children:o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:H.name})}),o.jsx(Or,{children:H.children.filter(ee=>ee.id!==F).filter(ee=>ee.type===Ys).map(ee=>o.jsx(J,{board:ee,itemId:F,level:q+1,onSelect:X},ee.id))})]}):o.jsx(Wt,{onSelect:()=>{X(H.id)},children:o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:H.name})},H.id)});return t==null?null:o.jsx(Cx,{children:o.jsxs(H0,{children:[n?o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{onClick:()=>{Ws.value=null},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(bv,{size:14})})]}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[r?o.jsxs(Wt,{onClick:()=>{e(null)},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Sle,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{e(t)},children:[g("Open",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(jle,{size:15})})]}),Ws.value!==t?o.jsxs(Wt,{onClick:()=>{Ws.value=t},children:[g("View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(dx,{size:14})})]}):o.jsxs(Wt,{onClick:()=>{Ws.value=null},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(bv,{size:14})})]}),s?o.jsxs(Wt,{onClick:()=>{b(t)},children:[g("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Hae,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{b(t)},children:[g("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Cz,{size:15})})]}),o.jsx(Qn,{})]}),Ms.value!==t?o.jsxs(Wt,{className:"gap-2",onClick:()=>{ld.value=null,Ms.value=t},children:[g("Edit Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{Ms.value=null,ld.value=null},children:[g("Close Edit",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15,className:"ml-1"})})]}),ld.value!==t?o.jsxs(Wt,{className:"gap-2",onClick:()=>{Ms.value=null,ld.value=t},children:[g("Rename",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:13})})]}):o.jsxs(Wt,{onClick:()=>{Ms.value=null,ld.value=null},children:[g("Close Rename",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:13,className:"ml-1"})})]}),o.jsx(Qn,{}),d?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[g("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsx(o.Fragment,{children:a?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[g("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{!a&&!P&&_(!0),N({itemIds:[t],isPinned:!0})},children:[g("Pin",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(tu,{size:15})})]})}),p?o.jsxs(Wt,{onClick:()=>{E({updatedItem:{isFavorite:!1,itemId:t}})},children:[g("Remove Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(w5,{size:15,className:"fill-transparent"})})]}):o.jsxs(Wt,{onClick:()=>{E({updatedItem:{isFavorite:!0,itemId:t}})},children:[g("Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Fh,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),i?o.jsxs(Wt,{onClick:()=>{T("/menu",{replace:!0}),setTimeout(()=>{cd.value=t.toString()},300)},children:[g("Locate Menu",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(y5,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{T("/menu",{replace:!0}),setTimeout(()=>{Tf.value=t,ho.value=!0},300)},children:[g("Add to Menu",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(cE,{size:15})})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Manage",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){if(!O||!m||!f)return;const H=yield x({itemId:t,boardId:f,tabId:m,collectionId:O});Rd.value=f;const F=fs(L,m.toString(),f==null?void 0:f.toString());F.sort((X,te)=>X.orderNumber-te.orderNumber).unshift({parentId:f,tabId:m,id:H,type:"clip",orderNumber:0,createdAt:0,value:"",name:g("Copy Clip",{ns:"dashboard"})});const q=F.map((X,te)=>({itemId:X.id,parentId:X.parentId,tabId:X.tabId,collectionId:O,orderNumber:te}));setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:q}),Wa.value=H}),600)}),children:[g("Duplicate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(tE,{size:15})})]}),o.jsxs(Wt,{onClick:()=>{cl.value=f},children:[g("Organize",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(b5,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Position",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>{U({moveUp:!0})},children:[g("Up",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(wz,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{U({moveDown:!0})},children:[g("Down",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(yz,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),M().length>0&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("After",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:M().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{U({isAfterItemId:F})}},H.id))})]}),o.jsx(Qn,{})]}),o.jsxs(Wt,{onClick:()=>{U({isFirst:!0})},children:[g("Start",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(v5,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{U({isLast:!0})},children:[g("End",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Sh,{size:15,className:"fill-transparent"})})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Copy To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:A.map(({tabId:H,tabName:F,tabOrderNumber:q})=>o.jsx(Wt,{onSelect:()=>{W(H)},children:z===H?o.jsx(re,{className:"font-semibold capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)}):o.jsx("span",{className:"capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)})},H))})]}),fs(L,z).filter(H=>H.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:$().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{V(F)}},H.id))})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Move To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:A.map(({tabId:H,tabName:F,tabOrderNumber:q})=>o.jsx(Wt,{onSelect:()=>{W(H,!0)},children:z===H?o.jsx(re,{className:"font-semibold capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)}):o.jsx("span",{className:"capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)})},H))})]}),fs(L,z).filter(H=>H.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:$().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{V(F,!0)}},H.id))})]})]})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Clip Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsx(Wt,{disabled:!0,className:"text-center items-center justify-center py-0.5",children:o.jsx(re,{children:g("Icon Visibility",{ns:"contextMenus"})})}),o.jsx(Qn,{}),o.jsx(tl,{checked:c==="none",onSelect:()=>{E({updatedItem:{iconVisibility:"none",itemId:t}})},className:c==="none"?"font-semibold":"",children:g("Hide",{ns:"contextMenus"})}),o.jsx(tl,{checked:c==="always",onSelect:()=>{E({updatedItem:{iconVisibility:"always",itemId:t}})},className:c==="always"?"font-semibold":"",children:g("Show",{ns:"contextMenus"})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{className:"flex items-center justify-center",children:[l?o.jsx(p0,{size:16,className:"ml-1 mr-2",name:l}):o.jsx(Q8,{size:16,className:"ml-1 mr-2 opacity-30"}),g("Custom Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{className:"w-64",children:[o.jsxs(Wt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[o.jsx(ne,{className:"w-6"}),o.jsx(re,{children:g("Select Icon",{ns:"contextMenus"})}),o.jsx(je,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{E({updatedItem:{icon:"",iconVisibility:"",itemId:t}})},children:g("RESET",{ns:"contextMenus"})})]}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:R7.map(H=>o.jsx(Wt,{className:"flex items-center justify-center ".concat(l===H?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:F=>{F.preventDefault(),E({updatedItem:{icon:H,iconVisibility:"always",itemId:t}})},children:o.jsx(p0,{name:H,size:16})},H))})})]})]})]})]})]})]}),d?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[o.jsx(re,{className:"!text-orange-600",children:g("UnPin Clip",{ns:"contextMenus"})}),o.jsx("div",{className:"ml-auto ",children:o.jsx(Od,{size:15,className:"!text-orange-600"})})]}):o.jsxs(Wt,{className:pi.value===t?"!bg-red-100 dark:!bg-red-900":"",onClick:H=>{pi.value===t?(S({itemId:t,collectionId:O}),n&&setTimeout(()=>{Ws.value=null},300),pi.value):(H.preventDefault(),pi.value=t,setTimeout(()=>{pi.value=null},3e3))},children:[o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500",children:pi.value!==t?g("Delete Clip",{ns:"contextMenus"}):g("Click to Confirm",{ns:"common"})})}),!pi.value&&o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"text-red-500"})})]})]})})}finally{C.f()}}const QC=["Tab","Enter","TabTab","TabTabTab","TabEnter","TabTabEnter"];function SW({clip:t,boardColor:e,globalSearchTerm:n,isGlobalSearchBoardsOnly:r,isDragPreview:s,isClipNotesHoverCardsEnabled:a,clipNotesHoverCardsDelayMS:i,clipNotesMaxWidth:l,clipNotesMaxHeight:c,isSelected:d,selectedOrder:p,isShowDetails:f,canReorangeItems:m,isClipDelete:b,isHistoryDragActive:C,isClipEdit:g,isClipNameEditing:w,isPinnedBoard:x,isLargeView:S,isShowOrganizeLayoutValue:E,isDisabledPinnedMoveDown:N,isDisabledPinnedMoveUp:_,isDark:P,closeGlobalSearch:I,onMovePinnedUpDown:T=({})=>{},setShowDetailsItem:L=()=>{},setSelectedItemId:A=()=>{}}){var Y,O,$,M,W,V,U,J,H,F;var z=sn(1);try{const{t:q}=Gt(),X=it(!1),te=it(!1),ee=it(!1),G=it(""),{updateItemById:Z}=bl(),le=Oxe(),[se,de,ce,ye]=Uh({}),[pe,me,be]=Wh({}),Ee=jo(G.value,300),We=v.useRef(null),qe=v.useRef(null),ot=(E||m)&&!x,{setNodeRef:Ve,listeners:Ge,isDragging:ft,setActivatorNodeRef:Ie,isOver:Ke}=p5({transition:null,disabled:!!(ot&&g&&w)||s||!1,id:x?"".concat(t.id,"::pinnedzone"):g?"".concat(t.id,"::dropzone"):t.id,animateLayoutChanges:()=>!1,data:{type:g?"clip::dropzone":"clip",clip:t}}),ut=n&&!r?Kl(t.name,n):t.name,$e=b||_c.value&&d,ht=se===t.id,Fe=pe===t.id,pt=ye===t.id,Qe=pe===t.id?me:void 0,Lt=f&&!x&&Ji.value===t.id,Ut=t.createdAt>Math.floor(Date.now())-60*1e3&&!t.isPinned&&!t.isFavorite,wt=t.color?t.color:e||(x?"orange":"slate"),Xt=t.borderWidth&&t.borderWidth>0,$t=Xt?t.borderWidth:1,tn=Xt?"border-l-".concat(wt,"-400 hover:!border-l-").concat(wt,"-500 dark:border-l-").concat(wt,"-600 dark:hover:!border-l-").concat(wt,"-500"):"",Pt=tf("relative clip_tour overflow-hidden p-[2px] px-0 hover:shadow-sm !rounded-lg duration-300 bg-".concat(wt,"-50 dark:bg-").concat(wt,"-950 dark:bg-opacity-80 border-").concat(wt,"-200 dark:border-").concat(wt,"-900 ").concat(tn," hover:bg-white dark:hover:bg-").concat(wt,"-950 dark:hover:bg-opacity-60 ").concat(Xt?"border border-l-[".concat($t,"px] "):"border-0"," ").concat(g?"bg-white":""," ").concat(d?"bg-yellow-50 dark:bg-amber-950/80 border-amber-300 hover:border-yellow-300/80 hover:bg-yellow-50/80 dark:hover:bg-yellow-950/80":""," h-full ").concat($e?"border-red-300 bg-red-100 border hover:!bg-red-100 dark:!bg-red-900 border-l-[".concat($t,"px] "):"").concat(ht||Fe?"!border-green-600 !bg-green-50 dark:!bg-green-900 dark:!border-green-700":""," ").concat(x&&!E?"animate-in fade-in":""," ").concat(Lt?"pulse-clip":""," "),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 min-w-[120px]",overlay:"opacity-80 ml-[-2px] mt-[1px] min-w-[120px]"}}});v.useEffect(()=>{var Pe,gt,Ze,Re,Oe,et;!ot&&Dy.value?(Dy.value=null,iC.value=null):ft&&(Dy.value=(Ze=(gt=(Pe=qe==null?void 0:qe.current)==null?void 0:Pe.firstElementChild)==null?void 0:gt.getBoundingClientRect().height)!=null?Ze:null,iC.value=(et=(Oe=(Re=qe==null?void 0:qe.current)==null?void 0:Re.firstElementChild)==null?void 0:Oe.getBoundingClientRect().width)!=null?et:null)},[ft,ot]);const Ue=v.useMemo(()=>"".concat(t.id,":::").concat(x?"pinned":t.parentId),[t.id,x,t.parentId]),Je=c1.value===Ue||E||m||pt,jt=!g&&!te&&(Ut||t.isPinned||t.isFavorite)?"".concat(Ut?q("New",{ns:"common"}):""," ").concat(t.isPinned?q("Pinned",{ns:"common"}):""," ").concat(t.isFavorite?q("Starred",{ns:"common"}):""):void 0,we=v.useMemo(()=>{if(!t.links)return[];if(t.links)try{t.arrLinks=JSON.parse(t.links)}catch(Pe){t.arrLinks=[]}return t.arrLinks},[t.isLink,t.links]);v.useEffect(()=>{te.value=!1,ee.value=!1},[f]),v.useEffect(()=>{ee.value||(G.value="")},[ee.value]),v.useEffect(()=>{!f||!zf.value||(zf.value&&f&&!ee.value?ee.value=!0:zf.value&&G.value.trim()===""&&(ee.value=!1))},[zf.value]);const Se=w||g,De=ee.value||Se||E||m,nt=v.useMemo(()=>!!(t.description&&!s&&a&&!Se),[t.description,s,a,Se]);return o.jsxs(z0,{onOpenChange:Pe=>{X.value=Pe},children:[o.jsx(F0,{disabled:!Je&&!d||!!n,ref:qe,children:o.jsxs(ne,{className:"relative",children:[d&&!(ht||Fe)&&o.jsx(St,{variant:"outline",className:"bg-yellow-50 fade-in animate-in border-amber-300 dark:bg-amber-900 dark:border-amber-950/80 border cursor-pointer px-1.5 py-[1px] absolute top-[-10px] left-[-4px] z-100",children:o.jsx(re,{className:"font-mono !text-yellow-500 dark:!text-yellow-300 font-semibold",children:p})}),(ht||Fe)&&!Qe?o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:t.isForm?o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[q("Running",{ns:"common"}),"..."]}):o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[o.jsx(en,{size:14,className:"mr-1"}),ht?q("Copied",{ns:"common"}):Fe?q("Pasted",{ns:"common"}):""]})}):Qe&&me>0&&o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:t.isForm?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:q("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:me})}):o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:q("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:me})})}),o.jsxs(N7,{ref:ml(ot||g?Ve:null),style:s?{height:(Y=Dy.value)!=null?Y:"auto",width:(O=iC.value)!=null?O:"auto"}:{},onMouseEnter:()=>{c1.value=Ue},onMouseLeave:()=>{c1.value=null},onClick:()=>{c1.value=Ue},className:Pt({dragging:s?"overlay":ft?"over":void 0}),children:[o.jsxs(fve,ae(R(ae(R({title:jt},le(()=>{g||f||x||(cl.value=t.parentId)})),{onClickCapture:Pe=>{if(Pe.shiftKey){if(Pe.preventDefault(),Pe.stopPropagation(),E||m)return;f?Ws.value===t.id?Ws.value=null:L(null):L(t.id)}},onDoubleClickCapture:Pe=>{if(De||Pe.shiftKey){Pe.preventDefault();return}if(Pe.altKey||Pe.metaKey){if(t.isForm){be(t.id,void 0,!0);return}be(t.id)}else de(t.id)},className:"overflow-hidden px-2.5 pr-1 py-1 break-words whitespace-pre-wrap flex gap-2 items-center justify-start flex-row ".concat(ot?"cursor-grab":"cursor-pointer"," ").concat(S?"min-h-[30px]":"")}),ot?Ge:{}),{children:[g?o.jsx(eI,{clipId:t.id,name:t.name,isLargeView:S,description:(W=t.description)!=null?W:null,color:wt,borderWidth:t.borderWidth?t.borderWidth:0}):ee.value&&(($=t.value)!=null&&$.trim())?o.jsxs(ve,{className:"w-full text-sm",children:[o.jsx(Wd,{placeholder:"".concat(q("Find in clip",{ns:"dashboard"})," ..."),autoFocus:!0,onKeyDown:Pe=>{Pe.key==="Escape"&&G.value.trim()===""&&(ee.value=!1)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full px-[6px] h-6",onChange:Pe=>{G.value=Pe.target.value},className:"text-md ring-offset-0 pl-[6px] pr-[6px] bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8",type:"search"}),o.jsx(mr,{className:"hover:bg-transparent text-slate-500 ml-1.5",children:o.jsx(st,{text:q("Close Find",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18,onClick:()=>{ee.value=!1}})})})]}):o.jsx("div",{className:"text-slate-600 dark:text-slate-300 text-sm line-clamp-3 text-ellipsis ".concat(Ut?"font-semibold":"font-normal"," ").concat(Se||Ut?"w-full":""),children:w?o.jsx(eI,{clipId:t.id,name:t.name,isEditOnly:!0,isLargeView:S,description:(M=t.description)!=null?M:null,color:wt,borderWidth:t.borderWidth?t.borderWidth:0}):o.jsxs(ww,{text:t.description,isDisabled:!nt,side:"right",isDark:P,delayDuration:i,align:"end",classNameTrigger:"inline-flex items-start",sideOffset:10,maxWidth:l,maxHeight:c,asChild:!0,children:[we&&we.length===1&&t.isLink?o.jsx("span",{onClick:Pe=>{if(Pe.shiftKey||De){Pe.preventDefault();return}Ei(Ir(we[0]))},title:we[0],className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):t.isLink&&t.value?o.jsx("span",{onClick:Pe=>{var Re;if(Pe.shiftKey){Pe.preventDefault();return}const Ze=zr().match((Re=t.value)!=null?Re:"");Ze&&Ze.length===1?Ei(Ir(Ze[0].raw)):yo(q("Provided link {{clipValue}} might be invalid!",{ns:"common",clipValue:t.value}),"Warning")},title:t.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):t.isPath&&t.value?o.jsx("span",{onClick:()=>ge(this,null,function*(){try{yield Gs("check_path",{path:t.value}),yield Gs("open_path_or_app",{path:t.value})}catch(Pe){yo(q("Provided path {{clipValue}} might be invalid!",{ns:"common",clipValue:t.value}),"Warning")}}),title:t.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):ut,t.description&&f&&o.jsx(ww,{text:t.description,isDisabled:s,side:"right",isDark:P,delayDuration:300,align:"end",classNameTrigger:"mt-[2px]",sideOffset:10,maxWidth:l,maxHeight:c,asChild:!0,children:o.jsx(Mz,{size:16,className:"opacity-70 hover:opacity-100 ml-1.5 hover:text-yellow-600"})})]})}),!((Je||X.value)&&!Se&&!ee.value)&&!Se&&o.jsxs("div",{className:"text-secondary-foreground/50 flex flex-row ml-auto self-start items-center justify-end w-[40px] h-5 !mt-0 !p-0",children:[t.isFavorite&&o.jsx(Fh,{className:"absolute text-transparent ".concat(t.isPinned?" fill-orange-400":" fill-yellow-400 "," pointer-events-none right-[4px] top-[4px] animate-in fade-in duration-500"),size:11}),t.isPinned&&!t.isFavorite&&!x?o.jsx(tc,{className:"absolute text-orange-400 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28}):Ut&&!t.isFavorite&&o.jsx(tc,{className:"absolute text-green-400 pointer-events-none top-[-5px] right-[-3px] animate-in fade-in duration-500",size:28}),!g&&o.jsx("div",{className:t.isPinned&&!t.isFavorite?"mr-[11px]":Ut?"mr-[14px]":t.isFavorite?"mr-[13px]":"mr-1.5",children:we&&we.length===1&&t.isLink||t.isLink&&t.value?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Link",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(Zve,{className:"ml-1.5",width:15,height:15})}):t.isPath&&t.value?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::".concat(t.pathType),{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:t.pathType==="Folder"?o.jsx(txe,{width:16,height:16}):t.pathType==="File"?o.jsx(Jve,{width:16,height:16}):t.pathType==="App"?o.jsx(Qve,{width:16,height:16}):(((V=t.pathType)==null?void 0:V.includes("Executable"))||((U=t.pathType)==null?void 0:U.includes("Script")))&&o.jsx(exe,{width:16,height:16})}):t.isCommand?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Shell Command",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(zz,{width:16,height:16})}):t.isForm?o.jsx(o.Fragment,{children:o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Form Auto Fill",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(Hz,{width:16,height:16})})}):t.isTemplate?o.jsx(o.Fragment,{children:o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Template",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(sE,{width:16,height:16})})}):t.isWebRequest?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Web Request (HTTP)",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(NU,{width:16,height:16})}):t.isWebScraping?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Web Scraper / Parser",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(_U,{width:16,height:16})}):t.icon&&o.jsx(Pc,{icon:t.icon,description:t.description,iconVisibility:t.iconVisibility,isHover:Je})})]}),(Je||X.value)&&!Se&&(!m&&!s&&!ft&&!ee.value&&!E?o.jsx(o.Fragment,{children:o.jsxs("div",{className:"self-start justify-end text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 ".concat(f?"":"w-[40px]"," items-center justify-center fade-in-init ").concat(Je||X.value?"fade-in-init-hover":""),children:[o.jsx("div",{}),f&&!ee.value&&!t.isImage&&((J=t.value)==null?void 0:J.trim())&&o.jsx(mr,{className:"hover:bg-transparent hover:text-yellow-600 pr-2",onClick:()=>{ee.value=!0},children:o.jsx(st,{text:q("Find in Clip",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(Xve,{width:16,height:16,className:"cursor-pointer"})})}),f&&t.isImage&&S&&o.jsx(mr,{className:"hover:bg-transparent pr-3",onClick:()=>{Z({updatedItem:{itemId:t.id,imageScale:t.imageScale===1?2:1}})},children:o.jsx(st,{text:q("Image Scale {{ImageScale}}x",{ns:"common",ImageScale:t.imageScale}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsxs(ve,{children:[o.jsx(St,{variant:"outline",className:"bg-slate-100 border border-slate-100 cursor-pointer px-1.5 mr-1 py-[1px]",children:o.jsx(re,{className:"font-mono !text-slate-400 font-semibold",children:"".concat(t.imageScale,"x")})}),t.imageScale===1?o.jsx(Xce,{width:16,height:16,className:"cursor-pointer"}):o.jsx(Zce,{width:16,height:16,className:"cursor-pointer"})]})})}),o.jsx(mr,{className:"hover:bg-transparent hover:text-green-600",onClick:()=>{Tn.value?t.isForm?be(t.id,void 0,!0):be(t.id):de(t.id)},children:t.isForm?o.jsx(st,{text:q("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pt||Fe&&!Qe?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):t.isWebRequest||t.isWebScraping||t.isCommand?o.jsx(st,{text:Tn.value?q("Run and Paste Response",{ns:"common"}):q("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):pt?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):o.jsx(st,{text:Tn.value?q("Copy and Paste",{ns:"common"}):q("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):o.jsx(ba,{size:16})})}),n?o.jsx(je,{variant:"ghost",size:"mini",className:"px-1 pr-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{Ji.value=t.id,I==null||I()},ref:We,children:o.jsx(st,{text:q("Locate Clip",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(y5,{size:18})})}):o.jsx(je,{variant:"ghost",size:"mini",className:"px-1 pr-0 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent dark:hover:bg-transparent hover:text-slate-600 hover:dark:text-slate-300",onClick:()=>{var Ze,Re,Oe;const Pe=(Ze=We==null?void 0:We.current)==null?void 0:Ze.getBoundingClientRect().x,gt=(Re=We==null?void 0:We.current)==null?void 0:Re.getBoundingClientRect().y;(Oe=qe==null?void 0:qe.current)==null||Oe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Pe,clientY:gt&>+30}))},ref:We,children:o.jsx(st,{text:q("Clip Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:18})})})]})}):!ee.value&&o.jsx("div",{className:"text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 pr-2 w-[40px] items-center justify-center",children:s?o.jsx(b5,{size:16}):x?o.jsxs(ve,{children:[o.jsx(ne,{className:"".concat(_?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," pr-1 flex items-center justify-center"),children:o.jsx(fle,{size:15,onClick:()=>{_||T({itemId:t.id,moveUp:!0})}})}),o.jsx(ne,{className:"".concat(N?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," flex items-center justify-center"),children:o.jsx(hle,{size:15,onClick:()=>{N||T({itemId:t.id,moveDown:!0})}})})]}):o.jsx(je,ae(R({variant:"ghost",size:"mini"},Ge),{"data-drag-handle":!0,ref:Ie,className:"px-1 text-secondary-foreground/50 ml-auto cursor-grab fade-in animate-in !mt-0 flex hover:bg-transparent",children:o.jsx(st,{text:q("Drag to Move",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(hx,{size:16})})}))}))]})),f&&!g?o.jsx(YU,{isImage:t.isImage,isLink:t.isLink,isShowLinkedClip:Lt,searchTerm:Ee,isVideo:t.isVideo,isPath:t.isPath,isForm:t.isForm,isTemplate:t.isTemplate,isCode:t.isCode,isMenu:t.isMenu,clipName:t.name,isCommand:t.isCommand,isWebRequest:t.isWebRequest,isWebScraping:t.isWebScraping,isExpanded:te,isCopyOrPaste:ht||Fe,isDark:P,arrLinks:t.arrLinks,isMasked:t.isMasked,hasMaskedWords:t.hasMaskedWords,detectedLanguage:t.detectedLanguage,hasEmoji:t.hasEmoji,pathType:t.pathType,isImageData:t.isImageData,imageHash:t.imageHash,imageType:t.imageType,imageScale:t.imageScale,imagePathFullRes:t.imagePathFullRes,imageDataUrl:t.imageDataUrl,isLargeView:S,formTemplateOptions:t.formTemplateOptions,commandRequestOutput:(H=t.commandRequestOutput)==null?void 0:H.replace("[Err]",""),isCommandRequestRunError:!!((F=t.commandRequestOutput)!=null&&F.startsWith("[Err]")),commandRequestOutputLastRunAt:t.commandRequestLastRunAt,requestOptions:t.requestOptions,imageWidthHeight:t.imageWidth?"".concat(t.imageWidth,"x").concat(t.imageHeight):null,clipId:t.id,value:t.value}):g&&o.jsx(M2e,{value:t.value,isOver:Ke,isLargeView:S,isShowLinkedClip:Lt,isNewlyCreated:Ut,isPinned:t.isPinned,isFavorite:t.isFavorite,isDelete:$e,isCode:t.isCode,isImage:t.isImage,isCommand:t.isCommand,isLink:t.isLink,isWebRequest:t.isWebRequest,isWebScraping:t.isWebScraping,requestOptions:t.requestOptions,formTemplateOptions:t.formTemplateOptions,isPath:t.isPath,isVideo:t.isVideo,isMasked:t.isMasked,hasEmoji:t.hasEmoji,imageDataUrl:t.imageDataUrl,isText:t.isText,isTemplate:t.isTemplate,isForm:t.isForm,detectedLanguage:t.detectedLanguage,isDark:P,isHistoryDragActive:C,clipId:t.id,onCancel:()=>{Ff()}})]})]})}),o.jsx(a5e,{itemId:t.id,isSelected:d,isPinnedBoard:x,isShowDetails:f,setShowDetails:L,setSelectedItemId:A,icon:t.icon,iconVisibility:t.iconVisibility,isPinned:t.isPinned,isFavorite:t.isFavorite,isMenu:t.isMenu,isLargeView:S,tabId:t.tabId,boardId:t.parentId})]})}finally{z.f()}}const H7=v.memo(SW),uj=v.memo(t=>{var i;const e=Te(34),{board:n,itemId:r,level:s,onSelect:a}=t;if("isBoard"in n&&s<1&&((i=n.children)!=null&&i.some(l=>"isBoard"in l&&l.isBoard&&l.id!==r))){let l;e[0]!==a||e[1]!==n.id?(l=()=>{a(n.id)},e[0]=a,e[1]=n.id,e[2]=l):l=e[2];let c;e[3]!==n.name?(c=o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:n.name}),e[3]=n.name,e[4]=c):c=e[4];let d;e[5]!==l||e[6]!==c?(d=o.jsx(Rr,{onClick:l,children:c}),e[5]=l,e[6]=c,e[7]=d):d=e[7];let p;if(e[8]!==r||e[9]!==n.children||e[10]!==s||e[11]!==a){let b;e[13]!==r?(b=w=>w.id!==r,e[13]=r,e[14]=b):b=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=w=>w.type===Ys,e[15]=C):C=e[15];let g;e[16]!==r||e[17]!==s||e[18]!==a?(g=w=>o.jsx(uj,{board:w,itemId:r,level:s+1,onSelect:a},w.id),e[16]=r,e[17]=s,e[18]=a,e[19]=g):g=e[19],p=n.children.filter(b).filter(C).map(g),e[8]=r,e[9]=n.children,e[10]=s,e[11]=a,e[12]=p}else p=e[12];let f;e[20]!==p?(f=o.jsx(Or,{children:p}),e[20]=p,e[21]=f):f=e[21];let m;return e[22]!==d||e[23]!==f?(m=o.jsxs(Hr,{children:[d,f]}),e[22]=d,e[23]=f,e[24]=m):m=e[24],m}else{let l;e[25]!==a||e[26]!==n.id?(l=()=>{a(n.id)},e[25]=a,e[26]=n.id,e[27]=l):l=e[27];let c;e[28]!==n.name?(c=o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:n.name}),e[28]=n.name,e[29]=c):c=e[29];let d;return e[30]!==n.id||e[31]!==l||e[32]!==c?(d=o.jsx(Wt,{onSelect:l,children:c},n.id),e[30]=n.id,e[31]=l,e[32]=c,e[33]=d):d=e[33],d}});function o5e({itemId:t,itemParentId:e,onShowDescriptionChange:n,hasDescription:r,isShowDescription:s,isEdit:a,currentTabLayout:i,iconVisibility:l,icon:c,setEditBoard:d}){var p=sn(1);try{const{clipItems:f,tabs:m,currentTab:b,setClipItems:C,currentCollectionId:g,isBoardHasChildren:w}=Tt(Ar),{t:x}=Gt(),{deleteItemById:S}=Y5(),{updateItemById:E}=bl(),{updateMovedClips:N}=K5(),_=v.useMemo(()=>fs(f,b).filter(L=>L.id!==t),[f,b,t]),P=v.useCallback(()=>fs(f,b,e==null?void 0:e.toString()).filter(L=>L.id!==t).sort((L,A)=>L.orderNumber-A.orderNumber),[f,b,t,e]),I=v.useCallback((L,A)=>{const z=f.find(Y=>Y.itemId===t&&Y.isBoard);if(z&&!L&&A){const O=fs(f,b,e==null?void 0:e.toString()).find(F=>F.id===t),$=O?A7(O):[],M=f.filter(F=>F.tabId===A&&F.isBoard&&F.parentId===null).sort((F,q)=>F.orderNumber-q.orderNumber);M.unshift(z);const W=new Map(M.map((F,q)=>[F.itemId,q])),V=new Map($==null?void 0:$.map(F=>[F,!0])),U=[],J=f.map(F=>{const q=W.get(F.itemId);return q!==void 0?(U.push(F.itemId),ae(R({},F),{orderNumber:q,tabId:A,parentId:null})):V!=null&&V.has(F.itemId)?(U.push(F.itemId),ae(R({},F),{tabId:A})):F});C(J);const H=J.filter(F=>U.includes(F.itemId)).map(F=>({itemId:F.itemId,parentId:F.parentId,tabId:F.tabId,collectionId:g,orderNumber:F.orderNumber}));N({updatedMoveClips:H})}else if(z&&L&&!A){const Y=f.filter(W=>W.parentId===L&&W.tabId===b).sort((W,V)=>W.orderNumber-V.orderNumber);Y.unshift(z);const O=new Map(Y.map((W,V)=>[W.itemId,V])),$=f.map(W=>{const V=O.get(W.itemId);return V!==void 0?ae(R({},W),{orderNumber:V,parentId:L.toString()}):W});C($);const M=$.filter(W=>W.parentId===L).map(W=>({itemId:W.itemId,parentId:L,tabId:b,collectionId:g,orderNumber:W.orderNumber}));N({updatedMoveClips:M})}},[t,b]),T=function($){return ge(this,arguments,function*({isLast:L,isFirst:A,isAfterItemId:z,moveUp:Y,moveDown:O}){const M=b.toString(),W=fs(f,M,e==null?void 0:e.toString()).sort((H,F)=>H.orderNumber-F.orderNumber),V=W.findIndex(H=>H.id===t);if(V===-1)return;let U;if(Y)U=Math.max(0,V-1);else if(O)U=Math.min(W.length-1,V+1);else if(z){const H=W.findIndex(F=>F.id===z);if(H===-1)return;U=V>H?H+1:H}else U=A?0:L?W.length:0;const J=Wr(W,V,U);if(J&&J.length){const H=J.map((F,q)=>({itemId:F.id,parentId:F.parentId,tabId:F.tabId,collectionId:g,orderNumber:q}));yield N({updatedMoveClips:H})}})};return t==null?null:o.jsx(Cx,{children:o.jsxs(H0,{className:"min-w-[150px]",children:[o.jsxs(Wt,{onSelect:()=>{Bl.value=t},children:[x("Add Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(oE,{size:16})})]}),o.jsxs(Wt,{onSelect:()=>{u1.value=t},children:[x("Add Board",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:16})})]}),o.jsx(Qn,{}),Va.value!==t?o.jsxs(Wt,{onClick:()=>{Va.value=t,i==="full"&&(zo.value=!0)},children:[x("View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(dx,{size:14})})]}):o.jsxs(Wt,{onClick:()=>{Va.value=null,zo.value=!1},children:[x("Close View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(lE,{size:14})})]}),o.jsx(Qn,{}),!a&&o.jsxs(Wt,{onClick:()=>{d(t)},children:[x("Edit Board",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(sE,{size:15,className:"ml-1"})})]}),o.jsx(Qn,{}),o.jsxs(Wt,{onClick:()=>{cl.value=t},children:[x("Organize",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(b5,{size:15,className:"fill-transparent"})})]}),r&&o.jsx(o.Fragment,{children:s?o.jsxs(Wt,{onClick:()=>{n(t,!1)},children:[x("Hide Subtitle",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(fx,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{n(t,!0)},children:[x("Show Subtitle",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(M0,{size:15})})]})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Board Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsx(tl,{checked:l==="none",onSelect:()=>{E({updatedItem:{iconVisibility:"none",itemId:t}})},className:l==="none"?"font-semibold":"",children:x("Hide",{ns:"contextMenus"})}),o.jsx(tl,{checked:l==="always",onSelect:()=>{E({updatedItem:{iconVisibility:"always",itemId:t}})},className:l==="always"?"font-semibold":"",children:x("Show",{ns:"contextMenus"})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{className:"flex items-center justify-center",children:[c?o.jsx(p0,{size:16,className:"ml-1 mr-2",name:c}):o.jsx(Q8,{size:16,className:"ml-1 mr-2 opacity-30"}),x("Custom Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{className:"w-64",children:[o.jsxs(Wt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[o.jsx(ne,{className:"w-6"}),o.jsx(re,{children:x("Select Icon",{ns:"contextMenus"})}),o.jsx(je,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{E({updatedItem:{icon:"",iconVisibility:"none",itemId:t}})},children:x("RESET",{ns:"contextMenus"})})]}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:R7.map(L=>o.jsx(Wt,{className:"flex items-center justify-center ".concat(c===L?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:A=>{A.preventDefault(),E({updatedItem:{iconVisibility:"always",icon:L,itemId:t}})},children:o.jsx(p0,{name:L,size:16})},L))})})]})]})]})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Position",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>{T({moveUp:!0})},children:[x("Up",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(wz,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{T({moveDown:!0})},children:[x("Down",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(yz,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),P().length>0&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("After",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:P().map(L=>o.jsx(uj,{board:L,level:0,itemId:t,onSelect:A=>{T({isAfterItemId:A})}},L.id))})]}),o.jsx(Qn,{})]}),o.jsxs(Wt,{onClick:()=>{T({isFirst:!0})},children:[x("Start",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(v5,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{T({isLast:!0})},children:[x("End",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Sh,{size:15,className:"fill-transparent"})})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Move To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("MoveTo:::Tab",{ns:"contextMenus"})," ..."]}),o.jsx(Or,{children:m.map(({tabId:L,tabName:A,tabOrderNumber:z})=>o.jsx(Wt,{onSelect:()=>{I(null,L)},children:b===L?o.jsx(re,{className:"font-semibold capitalize",children:A||"".concat(x("Tab",{ns:"dashboard"})," ").concat(z+1)}):o.jsx("span",{className:"capitalize",children:A||"".concat(x("Tab",{ns:"dashboard"})," ").concat(z+1)})},L))})]}),fs(f,b).filter(L=>L.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("MoveTo:::Board",{ns:"contextMenus"})," ..."]}),o.jsx(Or,{children:_.map(L=>o.jsx(uj,{board:L,level:0,itemId:t,onSelect:A=>{I(A)}},L.id))})]})]})]}),!w(t)&&o.jsxs(o.Fragment,{children:[o.jsx(Qn,{}),o.jsxs(Wt,{className:Ju.value===t?"!bg-red-100 dark:!bg-red-900":"",onClick:L=>{Ju.value===t?(S({itemId:t,collectionId:g}),Ju.value):(L.preventDefault(),Ju.value=t,setTimeout(()=>{Ju.value=null},3e3))},children:[o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500",children:Ju.value!==t?x("Delete Board",{ns:"contextMenus"}):x("Click to Confirm",{ns:"common"})})}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"text-red-500"})})]})]})]})})}finally{p.f()}}const i5e="_TopRow_16h0h_1",l5e="_BottomRow_16h0h_5",c5e="_Panel_16h0h_9",u5e="_PanelContent_16h0h_14",d5e="_ResizeHandleOuter_16h0h_24",f5e="_ResizeHandleInner_16h0h_35",h5e="_Button_16h0h_46",p5e="_Icon_16h0h_58",JC={TopRow:i5e,BottomRow:l5e,Panel:c5e,PanelContent:u5e,ResizeHandleOuter:d5e,ResizeHandleInner:f5e,Button:h5e,Icon:p5e};function jW(t){const e=Te(6),{isVertical:n,className:r,id:s}=t,a=n===void 0?!1:n,i=r===void 0?"":r,l="".concat(JC.ResizeHandleOuter," ").concat(i," opacity-0 hover:opacity-100 transition-opacity"),c="".concat(JC.Icon," ").concat(a?"rotate-90":""," text-slate-300 dark:text-slate-500");let d;e[0]!==c?(d=o.jsx("div",{className:JC.ResizeHandleInner,children:o.jsx(Tz,{className:c,type:"resize-vertical"})}),e[0]=c,e[1]=d):d=e[1];let p;return e[2]!==l||e[3]!==s||e[4]!==d?(p=o.jsx(tF,{className:l,id:s,children:d}),e[2]=l,e[3]=s,e[4]=d,e[5]=p):p=e[5],p}function m5e(t){var I;const e=Te(26);let n,r,s,a,i,l,c,d;e[0]!==t?(I=t,{children:c,isLastPanel:n,fixedSize:l,hasPanel:r,hasResizeHandle:s,isVertical:a,isCollapsible:i}=I,d=Ne(I,["children","isLastPanel","fixedSize","hasPanel","hasResizeHandle","isVertical","isCollapsible"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i,e[6]=l,e[7]=c,e[8]=d):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5],l=e[6],c=e[7],d=e[8]);const p=n===void 0?!1:n,f=r===void 0?!0:r,m=s===void 0?!0:s,b=a===void 0?!1:a,C=i===void 0?!1:i,[g,w]=v.useState(l||0);if(!f)return c;const x="".concat(g,"%");let S;e[9]!==x?(S={width:x},e[9]=x,e[10]=S):S=e[10];let E;e[11]!==l?(E=T=>{l||w(T)},e[11]=l,e[12]=E):E=e[12];let N;e[13]!==S||e[14]!==C||e[15]!==E||e[16]!==d||e[17]!==c?(N=o.jsx(ew,ae(R({style:S,collapsible:C,onResize:E},d),{children:c})),e[13]=S,e[14]=C,e[15]=E,e[16]=d,e[17]=c,e[18]=N):N=e[18];let _;e[19]!==p||e[20]!==m||e[21]!==b?(_=!p&&m&&o.jsx(jW,{isVertical:b}),e[19]=p,e[20]=m,e[21]=b,e[22]=_):_=e[22];let P;return e[23]!==N||e[24]!==_?(P=o.jsxs(o.Fragment,{children:[N,_]}),e[23]=N,e[24]=_,e[25]=P):P=e[25],P}const e4=["max-w-min","max-w-xs","max-w-sm","max-w-md","max-w-[50%]","max-w-prose","max-w-full","max-w-fit"];function EW({board:t,boardColor:e,isDragPreview:n,isSubBoard:r,isDark:s,showDragHandle:a,globalSearchTerm:i,isGlobalSearchBoardsOnly:l,isHistoryDragActive:c,dragOverBoardId:d,panelHeight:p,currentTabLayout:f,selectedItemIds:m,showDetailsItem:b,closeGlobalSearch:C,setShowDetailsItem:g,setCurrentTab:w,setSelectedItemId:x}){var E,N,_,P,I,T,L;var S=sn(1);try{const{t:A}=Gt(),z=v.useMemo(()=>{var $e,ht;return(ht=($e=t.children)==null?void 0:$e.map(Fe=>Fe.id))!=null?ht:[]},[t]),{updateItemById:Y,updateItemByIdPending:O}=bl(),{isClipNotesHoverCardsEnabled:$,clipNotesHoverCardsDelayMS:M,clipNotesMaxHeight:W,clipNotesMaxWidth:V}=Tt(Cr),U=it(!1),J=v.useRef(null),H=v.useRef(null),F=it(!1),q=it(!1),{isBoardHasChildren:X}=Tt(Ar),te=v.useRef(null),ee=xa.value===qo,G=lC.value===t.id&&!i,{setNodeRef:Z,listeners:le,isDragging:se}=p5({disabled:c||ee||!!Ms.value||!!Wa.value,id:t.id,data:{type:"board",isSubBoard:r,board:t}}),de=v.useMemo(()=>ll.value,[ll.value]),ce=t.id===bh.value,ye=t.name===A("Moved Clips Panel",{ns:"dashboard"}),pe=t.id===pv.value,me=Ju.value===t.id,be=ce||pe,Ee=t.color||e||"slate",We=t.borderWidth===0?r?"border":"border-none":t.borderWidth===1?"border":"border-[".concat(t.borderWidth,"px]"),qe=((E=t.layout)==null?void 0:E.startsWith("flex"))||!1,ot=t.layout==="flex-nowrap"||!1,Ve=((N=t.layout)==null?void 0:N.startsWith("grid"))||!1,Ge=parseInt((P=(_=t.layout)==null?void 0:_.split("grid-cols-")[1])!=null?P:"",10)||2,ft=cl.value===t.id&&!i,Ie=d===t.id,Ke=Va.value===t.id,ut=tf("".concat(Ie?"bg-blue-200 dark:bg-blue-400 border-blue-300 dark:border-blue-300":"".concat(el(Ee,"200")," ").concat(Ob(Ee,"300","700"))," h-full flex flex-col ").concat(be?"border-2 min-h-[120px]":"border-0 min-h-[100px]"," px-0.5 py-1 bg-opacity-70 dark:bg-opacity-70 rounded-lg overflow-hidden ").concat(me?"border-2 border-red-300 bg-red-100":""," ").concat(ye?"border-2 ".concat(Ob(Ee,"300","700")," border-opacity-70 dark:border-opacity-70"):""," ").concat(r?"border-opacity-50 dark:border-opacity-50":"border-opacity-60 dark:border-opacity-60"," ").concat(We," ").concat(ee?"hover:bg-blue-100":""," ").concat(G?"pulse-clip":""),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 dark:border-blue-500",overlay:"".concat(Ob(Ee,"300","700")," opacity-70 border-2")}}});return v.useEffect(()=>{var $e;G&&(($e=te==null?void 0:te.current)==null||$e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>{lC.value=null},1e3))},[G,te==null?void 0:te.current]),v.useEffect(()=>{se&&r&&(cl.value=t.parentId)},[se,r]),o.jsxs(N7,{ref:ml(te,Ms.value||Wa.value?null:Z),className:ut({dragging:n?"overlay":se?"over":void 0}),children:[o.jsxs(z0,{onOpenChange:$e=>{U.value=$e,Ju.value=null},children:[o.jsx(F0,{disabled:be||ft||a,ref:q.value?H:null,children:o.jsxs(hve,ae(R({onMouseEnter:()=>{q.value=!0},onMouseLeave:()=>{q.value=!1},onClick:()=>{q.value=!0},onDoubleClick:()=>{q.value=!0,!be&&(Va.value!==t.id?(f==="full"&&(zo.value=!0),Va.value=t.id):(Va.value=null,zo.value=!1))},className:"p-1 px-4 pt-2 pb-0 pr-2 flex flex-row relative board-panel-header_tour"},!de&&!be?le:{}),{children:[be?o.jsx(Yve,{boardName:t.name,boardSubtitle:t.description,scrollRef:te,isNewBoard:ce,boardColor:t.color,boardBorderWidth:(I=t.borderWidth)!=null?I:0,boardId:t.id}):o.jsxs("div",{className:"overflow-hidden",children:[o.jsxs("div",{className:"cursor-default flex items-center",children:[o.jsx(Pc,{icon:t.icon,size:17,isBoard:!0,className:"mr-1.5",description:t.showDescription?null:t.description,iconVisibility:t.iconVisibility,isHover:!0,children:ye&&o.jsx(yce,{size:17,className:"mr-1.5"})}),i?o.jsx(re,{color:"black",className:"dark:hover:!text-blue-400 hover:!text-blue-500 cursor-pointer !font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",onClick:()=>{w==null||w(t.tabId),lC.value=t.id,C==null||C()},children:l?Kl(t.name,i):t.name}):o.jsx(re,{color:"black",className:"!font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",children:t.name}),!t.showDescription&&(!t.icon||t.iconVisibility!=="always")&&o.jsx(st,{text:t.description,className:"!px-2 !py-1",delayDuration:300,isCompact:!0,isDisabled:n||!q.value,sideOffset:10,side:"bottom",children:o.jsx("div",{className:"ml-0.5 pl-1 text-primary/50 cursor-pointer hover:opacity-100 ".concat(q.value?"opacity-80":"opacity-0"),children:o.jsx(xU,{size:17})})})]}),t.description&&t.showDescription&&o.jsx("div",{onClick:()=>{F.value=!F.value},className:"!font-light text-xs cursor-default hover:opacity-100 opacity-70 hover:animate-in ".concat(F.value?"":"line-clamp-2"," mt-0.5"),children:t.description})]}),!be&&o.jsx("div",{className:"flex flex-row ml-auto opacity-0 animate-in fade-in ".concat(q.value||U.value||Ke||a||de||ft?"opacity-100":""," !mt-0"),children:n?o.jsx(b5,{size:18}):o.jsx(ve,{className:"flex-row items-start relative",children:de||a?o.jsx(mr,ae(R({},le),{className:"p-1 text-primary/50 h-auto cursor-grab absolute right-0 top-[-3px] hover:".concat(el(t.color,"200")),children:o.jsx(hx,{size:18})})):ft?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 py-0.5 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:A("Done",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:14})})]}):!i&&o.jsxs(ve,{className:"absolute right-0 top-[-3px] gap-2",children:[o.jsx(je,{title:A("Board Menu",{ns:"dashboard"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(el(t.color,"200")," dark:hover:bg-").concat(t.color,"-800 hover:").concat(el(t.color,"200")," bg-opacity-80 cursor-pointer rounded-md flex ").concat(Ke?"opacity-0":""," ").concat(q.value?"opacity-100":""),onClick:()=>{var Fe,pt,Qe;const $e=(Fe=J==null?void 0:J.current)==null?void 0:Fe.getBoundingClientRect().x,ht=(pt=J==null?void 0:J.current)==null?void 0:pt.getBoundingClientRect().y;(Qe=H==null?void 0:H.current)==null||Qe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:$e&&$e+10,clientY:ht&&ht+30}))},ref:J,children:o.jsx(yl,{size:18})}),Ke&&o.jsx(je,{title:A("Close View",{ns:"contextMenus"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(el(t.color,"100")," dark:hover:bg-").concat(t.color,"-800 hover:").concat(el(t.color,"200")," bg-opacity-100 cursor-pointer rounded-md !mt-0 flex"),onClick:()=>{Va.value=null,zo.value=!1},children:o.jsx(In,{size:18})})]})})}),i&&t.tabName&&o.jsx(St,{onClick:()=>{w==null||w(t.tabId),C==null||C()},variant:"secondary",className:"absolute top-0 right-2 rounded-[4px] text-slate-400 hover:text-blue-400 hover:bg-slate-50 cursor-pointer dark:hover:bg-slate-800 dark:text-slate-500 dark:hover:text-blue-500 dark:bg-slate-800",children:t.tabName}),Ke&&o.jsx(tc,{className:"absolute text-".concat(t.color?t.color:"slate","-400 dark:text-").concat(t.color?t.color:"slate","-800 top-[-15px] left-[-5px] animate-in fade-in duration-500"),size:28})]}))}),o.jsx(o5e,{itemId:t.id,itemParentId:t.parentId,icon:t.icon,currentTabLayout:f,iconVisibility:t.iconVisibility,isEdit:pe,isShowDescription:t.showDescription,hasDescription:!!t.description,setEditBoard:$e=>{pv.value=$e},onShowDescriptionChange:($e,ht)=>{Y({updatedItem:{showDescription:ht,itemId:$e}})}})]}),o.jsxs(Vh,{className:"m-0 p-0 pb-2 pr-3 pl-2 relative h-full",children:[o.jsxs(Nh,{defer:!0,options:{overflow:{x:"hidden"},scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:r||f==="auto"?400:t.showDescription&&t.description&&p?p-(be?156:90):p&&p-(be?126:60)},children:[(c||ee)&&!Ms.value&&!Wa.value&&o.jsx(gve,{board:t,isNewClip:ee,isCreatingClip:Rd.value===t.id}),o.jsx(D2,{items:z,strategy:()=>null,disabled:c||ee,children:((T=t.children)==null?void 0:T.length)&&x5e(t.children,t.layoutSplit||1).map(($e,ht)=>$e.length>0&&o.jsxs("div",{children:[ht>0&&o.jsx(GE,{className:"mt-2 mb-1 ml-1",color:Ee}),o.jsx(Nh,{defer:!0,style:{width:"100%"},options:{scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:o.jsx("div",{className:"".concat(qe?"flex":"grid"," ").concat(ot?"flex-nowrap":"flex-wrap"," justify-normal gap-2.5 items-start mt-2.5 mb-2 ml-2 mr-1 ").concat(Ve?t.layout:""),children:$e==null?void 0:$e.map(Fe=>{const pt=Ms.value===Fe.id;return o.jsx("div",{className:"".concat(pt||Wa.value===Fe.id?"min-w-[265px] duration-100 ":"min-w-[140px] "," ").concat(t.layoutItemsMaxWidth?t.layoutItemsMaxWidth:pt||Wa.value===Fe.id?"max-w-full":"max-w-fit"," hover:z-100 ").concat(qe?t.layout:""),children:Fe.type===Ys?o.jsx(Tw,{isHistoryDragActive:c,dragOverBoardId:d,isDark:s,board:Fe,boardColor:Ee,showDragHandle:ft||pe,currentTabLayout:f,isSubBoard:!0,selectedItemIds:m,setSelectedItemId:x,showDetailsItem:b,setShowDetailsItem:g}):Fe.type===qo&&o.jsx(H7,{clip:Fe,boardColor:Ee,isClipNotesHoverCardsEnabled:$&&!de&&!ft,clipNotesHoverCardsDelayMS:M,clipNotesMaxHeight:W,clipNotesMaxWidth:V,globalSearchTerm:i,isGlobalSearchBoardsOnly:l,closeGlobalSearch:C,isDark:s,isClipDelete:pi.value===Fe.id,isClipNameEditing:ld.value===Fe.id,isClipEdit:pt||Wa.value===Fe.id,canReorangeItems:be||ft,isShowOrganizeLayoutValue:de,isHistoryDragActive:c,isShowDetails:b===Fe.id,setShowDetailsItem:g,setSelectedItemId:x,isSelected:m.includes(Fe.id),selectedOrder:m.indexOf(Fe.id)+1})},Fe.id)})})})]},ht))})]}),be&&o.jsxs(o.Fragment,{children:[o.jsx(Ln,{h:11}),o.jsxs(ve,{className:"justify-between w-full pl-2 pr-2 mt-2 absolute bottom-1 left-0",children:[o.jsx(pve,{boardName:t.name,isNewBoard:ce,boardId:t.id}),o.jsx(ve,{className:"w-full scroll-h-tabs-wrap",children:X(t.id)&&o.jsx(or,{style:{minWidth:"100%"},forceVisible:"y",autoHide:!1,children:o.jsx(pl,{className:"min-w-[280px] flex flex-row mt-[2px]",title:A("Change Layout",{ns:"dashboard"}),activationMode:"manual",value:t.layout||"flex-auto",onValueChange:$e=>ge(this,null,function*(){O||(yield Y({updatedItem:{layout:$e,itemId:t.id}}))}),children:o.jsxs(ve,{className:"w-full",children:[o.jsxs(ve,{className:"mr-2",children:[t.layoutSplit>1&&o.jsx(St,{onClick:()=>{Y({updatedItem:{layoutSplit:t.layoutSplit>4?1:t.layoutSplit+1,itemId:t.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:t.layoutSplit})}),o.jsx(je,{variant:"light",title:A("Vertical Split",{ns:"dashboard"}),onClick:()=>{Y({updatedItem:{layoutSplit:t.layoutSplit>4?1:t.layoutSplit+1,itemId:t.id}})},className:"px-1 py-2 bg-gray-50 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 h-8 w-8",children:o.jsx(Foe,{size:18,className:"opacity-70"})})]}),o.jsx(ve,{className:"mr-0.5",children:o.jsx(St,{variant:"outline",title:A("Layout Max Width",{ns:"dashboard"}),onClick:()=>{let $e=e4.findIndex(Fe=>Fe===t.layoutItemsMaxWidth);$e===-1?$e=0:$e=($e+1)%e4.length;const ht=e4[$e];Y({updatedItem:{layoutItemsMaxWidth:ht,itemId:t.id}})},className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-2 py-3 h-6 mr-1",children:o.jsx(re,{className:"text-slate-400 font-semibold text-md uppercase",children:t.layoutItemsMaxWidth?(L=t.layoutItemsMaxWidth)==null?void 0:L.replace("max-w-",""):"fit"})})}),o.jsxs(Xo,{className:"self-center text-primary/40",children:[o.jsx(jr,{value:"flex-auto",className:"text-xs px-2 py-1",children:o.jsx(Fz,{size:18,className:"opacity-70"})}),o.jsx(jr,{value:"flex-1",className:"text-xs px-2 py-1",children:o.jsx(Tie,{size:18,className:"opacity-60 transform -scale-y-100"})}),o.jsx(jr,{value:"flex-nowrap",className:"text-xs px-2 py-1",children:o.jsx(Lse,{size:18,className:"opacity-60"})}),o.jsx(jr,{value:"grid-cols-".concat(Ge),className:"text-xs px-2 py-1",children:o.jsx(g6,{size:18,className:"opacity-60",onClick:$e=>{$e.stopPropagation(),Y({updatedItem:{layout:"grid-cols-".concat(Ge>3?1:Ge+1),itemId:t.id}})}})})]}),Ve&&o.jsx(St,{title:A("Number of columns",{ns:"dashboard"}),onClick:()=>{Y({updatedItem:{layout:"grid-cols-".concat(Ge>3?1:Ge+1),itemId:t.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 ml-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:Ge})})]})})})}),o.jsx(je,{variant:"light",title:"".concat(X(t.id)?A("Done",{ns:"common"}):""),onClick:()=>{if(Dc.value){Qr.value=!0;return}Ff()},className:"px-2 text-blue-500 animate-in fade-in bg-gray-50 hover:bg-grey-100 cursor-pointer opacity-90 hover:opacity-100 hover:text-blue-600",children:X(t.id)?o.jsx(en,{size:19}):o.jsxs(o.Fragment,{children:[o.jsx(en,{size:19,className:"mr-1"}),A("Done",{ns:"common"})]})})]})]})]})]})}finally{S.f()}}const Tw=v.memo(EW);function g5e(t){const e=Te(25),{board:n,isDragPreview:r,isDark:s,isSubBoard:a,isHistoryDragActive:i,dragOverBoardId:l,onResizeCallBack:c,panelHeight:d,currentTabLayout:p,selectedItemIds:f,showDetailsItem:m,setShowDetailsItem:b,order:C,isLastBoard:g,setSelectedItemId:w}=t;let x;e[0]!==n.id?(x=n.id.toString(),e[0]=n.id,e[1]=x):x=e[1];let S;e[2]!==c?(S=P=>{c==null||c(P)},e[2]=c,e[3]=S):S=e[3];const E=!r;let N;e[4]!==n||e[5]!==C||e[6]!==d||e[7]!==i||e[8]!==l||e[9]!==p||e[10]!==a||e[11]!==f||e[12]!==w||e[13]!==m||e[14]!==b||e[15]!==s||e[16]!==r?(N=o.jsx(Tw,{board:n,boardColor:n.color,order:C,panelHeight:d,isHistoryDragActive:i,dragOverBoardId:l,currentTabLayout:p,isSubBoard:a,selectedItemIds:f,setSelectedItemId:w,showDetailsItem:m,setShowDetailsItem:b,isDark:s,isDragPreview:r},n.id),e[4]=n,e[5]=C,e[6]=d,e[7]=i,e[8]=l,e[9]=p,e[10]=a,e[11]=f,e[12]=w,e[13]=m,e[14]=b,e[15]=s,e[16]=r,e[17]=N):N=e[17];let _;return e[18]!==x||e[19]!==C||e[20]!==S||e[21]!==E||e[22]!==g||e[23]!==N?(_=o.jsx(m5e,{defaultSize:50,isCollapsible:!1,collapsedSize:6,minSize:6,id:x,order:C,className:"board-panel_tour",onResize:S,hasResizeHandle:E,isLastPanel:g,children:N}),e[18]=x,e[19]=C,e[20]=S,e[21]=E,e[22]=g,e[23]=N,e[24]=_):_=e[24],_}const TI=v.memo(g5e);function v5e({children:t}){return t}function x5e(t,e){const n=t.length,r=Math.ceil(n/e),s=Array.from({length:e},()=>[]);return t.forEach((a,i)=>{const l=Math.min(Math.floor(i/r),e-1);s[l].push(a)}),s}var ii=(t=>(t.FOLDER="folder",t.SEPARATOR="separator",t.ITEM="item",t.DISABLED="disabled",t))(ii||{}),nl=(t=>(t.TAB="tab",t.BOARD="board",t.CLIP="clip",t))(nl||{});function y5e(t){const e=Te(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.2626 3.26045C7.38219 2.13044 8.33828 1.25 9.5 1.25H14.5C15.6617 1.25 16.6178 2.13044 16.7374 3.26045C17.5005 3.27599 18.1603 3.31546 18.7236 3.41895C19.4816 3.55818 20.1267 3.82342 20.6517 4.34835C21.2536 4.95027 21.5125 5.70814 21.6335 6.60825C21.75 7.47522 21.75 8.57754 21.75 9.94513V16.0549C21.75 17.4225 21.75 18.5248 21.6335 19.3918C21.5125 20.2919 21.2536 21.0497 20.6517 21.6517C20.0497 22.2536 19.2919 22.5125 18.3918 22.6335C17.5248 22.75 16.4225 22.75 15.0549 22.75H8.94513C7.57754 22.75 6.47522 22.75 5.60825 22.6335C4.70814 22.5125 3.95027 22.2536 3.34835 21.6517C2.74643 21.0497 2.48754 20.2919 2.36652 19.3918C2.24996 18.5248 2.24998 17.4225 2.25 16.0549V9.94513C2.24998 8.57754 2.24996 7.47522 2.36652 6.60825C2.48754 5.70814 2.74643 4.95027 3.34835 4.34835C3.87328 3.82342 4.51835 3.55818 5.27635 3.41895C5.83973 3.31546 6.49952 3.27599 7.2626 3.26045ZM7.26496 4.76087C6.54678 4.7762 5.99336 4.81234 5.54735 4.89426C4.98054 4.99838 4.65246 5.16556 4.40901 5.40901C4.13225 5.68577 3.9518 6.07435 3.85315 6.80812C3.75159 7.56347 3.75 8.56458 3.75 10V16C3.75 17.4354 3.75159 18.4365 3.85315 19.1919C3.9518 19.9257 4.13225 20.3142 4.40901 20.591C4.68577 20.8678 5.07435 21.0482 5.80812 21.1469C6.56347 21.2484 7.56458 21.25 9 21.25H15C16.4354 21.25 17.4365 21.2484 18.1919 21.1469C18.9257 21.0482 19.3142 20.8678 19.591 20.591C19.8678 20.3142 20.0482 19.9257 20.1469 19.1919C20.2484 18.4365 20.25 17.4354 20.25 16V10C20.25 8.56458 20.2484 7.56347 20.1469 6.80812C20.0482 6.07434 19.8678 5.68577 19.591 5.40901C19.3475 5.16556 19.0195 4.99838 18.4527 4.89426C18.0066 4.81234 17.4532 4.7762 16.735 4.76087C16.6058 5.88062 15.6544 6.75 14.5 6.75H9.5C8.34559 6.75 7.39424 5.88062 7.26496 4.76087ZM9.5 2.75C9.08579 2.75 8.75 3.08579 8.75 3.5V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H14.5C14.9142 5.25 15.25 4.91421 15.25 4.5V3.5C15.25 3.08579 14.9142 2.75 14.5 2.75H9.5ZM6.25 10.5C6.25 10.0858 6.58579 9.75 7 9.75H17C17.4142 9.75 17.75 10.0858 17.75 10.5C17.75 10.9142 17.4142 11.25 17 11.25H7C6.58579 11.25 6.25 10.9142 6.25 10.5ZM7.25 14C7.25 13.5858 7.58579 13.25 8 13.25H16C16.4142 13.25 16.75 13.5858 16.75 14C16.75 14.4142 16.4142 14.75 16 14.75H8C7.58579 14.75 7.25 14.4142 7.25 14ZM8.25 17.5C8.25 17.0858 8.58579 16.75 9 16.75H15C15.4142 16.75 15.75 17.0858 15.75 17.5C15.75 17.9142 15.4142 18.25 15 18.25H9C8.58579 18.25 8.25 17.9142 8.25 17.5Z",fill:"currentColor"}),e[0]=n):n=e[0];let r;return e[1]!==t.className?(r=o.jsx("svg",{viewBox:"0 0 25 25",className:t.className,xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t.className,e[2]=r):r=e[2],r}const b5e=t=>{var e=sn(1);try{const n=Te(243),{selectedItemIds:r,hasPinnedItemsInSelected:s,hasFavoriteItemsInSelected:a,setSelectedItemIds:i}=t,{deleteItemsByIds:l}=Sge(),{t:c}=Gt();let d;n[0]===Symbol.for("react.memo_cache_sentinel")?(d={},n[0]=d):d=n[0];const[,,,p]=Wh(d);let f;n[1]===Symbol.for("react.memo_cache_sentinel")?(f={},n[1]=f):f=n[1];const[,,m]=Uh(f),{updateItemByIds:b}=vge(),{copyPasteSequencePinnedDelay:C,setCopyPasteSequencePinnedDelay:g,copyPasteSequenceIsReversOrder:w,setCopyPasteSequenceIsReversOrder:x}=Tt(Cr),{currentCollectionId:S}=Tt(Ar);let E;n[2]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(y5e,{className:"w-[24px]",lightingColor:"white"}),n[2]=E):E=n[2];let N;n[3]!==r.length?(N=r.length>0&&o.jsx(St,{variant:"slate",className:"absolute left-[-12px] top-[-12px]",children:r.length}),n[3]=r.length,n[4]=N):N=n[4];let _;n[5]!==N?(_=o.jsx(Gn,{asChild:!0,className:"animate-in fade-in",children:o.jsxs(je,{variant:"ghost",size:"mini",className:"ml-1 mr-0.5 px-1.5 py-1 w-[32px] h-[32px] bg-slate-100 dark:bg-slate-900/90 dark:hover:bg-slate-800 bg-opacity-80 text-secondary-foreground/50 cursor-pointer !mt-0 hover:bg-opacity-100 relative rounded-sm",children:[E,N]})}),n[5]=N,n[6]=_):_=n[6];const P=r.length===0;let I;n[7]!==i?(I=()=>{i([])},n[7]=i,n[8]=I):I=n[8];let T;n[9]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx(eE,{className:"mr-2 h-4 w-4"}),n[9]=T):T=n[9];let L;n[10]!==c?(L=c("Deselect All",{ns:"common"}),n[10]=c,n[11]=L):L=n[11];let A;n[12]!==L?(A=o.jsx(re,{className:"mr-1",children:L}),n[12]=L,n[13]=A):A=n[13];let z;n[14]!==P||n[15]!==I||n[16]!==A?(z=o.jsxs(rt,{disabled:P,onClick:I,children:[T,A]}),n[14]=P,n[15]=I,n[16]=A,n[17]=z):z=n[17];let Y;n[18]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(kn,{}),n[18]=Y):Y=n[18];const O=r.length===0;let $;n[19]!==m||n[20]!==r||n[21]!==i?($=()=>ge(void 0,null,function*(){yield m([...r]),i([])}),n[19]=m,n[20]=r,n[21]=i,n[22]=$):$=n[22];let M;n[23]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx(ba,{className:"mr-2 h-4 w-4"}),n[23]=M):M=n[23];let W;n[24]!==c?(W=c("Sequence Copy",{ns:"common"}),n[24]=c,n[25]=W):W=n[25];let V;n[26]!==W?(V=o.jsx(re,{className:"mr-1",children:W}),n[26]=W,n[27]=V):V=n[27];let U;n[28]!==O||n[29]!==$||n[30]!==V?(U=o.jsxs(rt,{disabled:O,onClick:$,children:[M,V]}),n[28]=O,n[29]=$,n[30]=V,n[31]=U):U=n[31];const J=r.length===0;let H;n[32]!==p||n[33]!==r||n[34]!==i?(H=()=>ge(void 0,null,function*(){yield p([...r]),i([])}),n[32]=p,n[33]=r,n[34]=i,n[35]=H):H=n[35];let F;n[36]===Symbol.for("react.memo_cache_sentinel")?(F=o.jsx(Ds,{className:"mr-2 h-4 w-4"}),n[36]=F):F=n[36];let q;n[37]!==c?(q=c("Sequence Paste",{ns:"common"}),n[37]=c,n[38]=q):q=n[38];let X;n[39]!==q?(X=o.jsx(re,{className:"mr-1",children:q}),n[39]=q,n[40]=X):X=n[40];let te;n[41]!==J||n[42]!==H||n[43]!==X?(te=o.jsxs(rt,{disabled:J,onClick:H,children:[F,X]}),n[41]=J,n[42]=H,n[43]=X,n[44]=te):te=n[44];let ee;n[45]===Symbol.for("react.memo_cache_sentinel")?(ee=o.jsx(qce,{className:"mr-2 h-4 w-4"}),n[45]=ee):ee=n[45];let G;n[46]!==c?(G=c("Next Delay",{ns:"common"}),n[46]=c,n[47]=G):G=n[47];let Z;n[48]!==G?(Z=o.jsx(re,{children:G}),n[48]=G,n[49]=Z):Z=n[49];let le;n[50]!==C?(le=o.jsxs(St,{variant:"slate",className:"ml-auto py-0 bg-slate-200 text-slate-500",children:[C,"s"]}),n[50]=C,n[51]=le):le=n[51];let se;n[52]!==Z||n[53]!==le?(se=o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[ee,Z,le]})}),n[52]=Z,n[53]=le,n[54]=se):se=n[54];let de;n[55]!==c?(de=c("Sequence Next Delay",{ns:"common"}),n[55]=c,n[56]=de):de=n[56];let ce;n[57]!==de?(ce=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:de}),n[57]=de,n[58]=ce):ce=n[58];const ye=C===1;let pe;n[59]!==g?(pe=Mn=>{Mn.preventDefault(),g(1)},n[59]=g,n[60]=pe):pe=n[60];let me;n[61]!==c?(me=c("second",{ns:"common"}),n[61]=c,n[62]=me):me=n[62];let be;n[63]!==me?(be=o.jsxs(re,{children:["1 ",me]}),n[63]=me,n[64]=be):be=n[64];let Ee;n[65]!==ye||n[66]!==pe||n[67]!==be?(Ee=o.jsx(Cn,{checked:ye,onSelect:pe,children:be}),n[65]=ye,n[66]=pe,n[67]=be,n[68]=Ee):Ee=n[68];const We=C===2;let qe;n[69]!==g?(qe=Mn=>{Mn.preventDefault(),g(2)},n[69]=g,n[70]=qe):qe=n[70];let ot;n[71]!==c?(ot=c("seconds",{ns:"common"}),n[71]=c,n[72]=ot):ot=n[72];let Ve;n[73]!==ot?(Ve=o.jsxs(re,{children:["2 ",ot]}),n[73]=ot,n[74]=Ve):Ve=n[74];let Ge;n[75]!==We||n[76]!==qe||n[77]!==Ve?(Ge=o.jsx(Cn,{checked:We,onSelect:qe,children:Ve}),n[75]=We,n[76]=qe,n[77]=Ve,n[78]=Ge):Ge=n[78];const ft=C===3;let Ie;n[79]!==g?(Ie=Mn=>{Mn.preventDefault(),g(3)},n[79]=g,n[80]=Ie):Ie=n[80];let Ke;n[81]!==c?(Ke=c("seconds",{ns:"common"}),n[81]=c,n[82]=Ke):Ke=n[82];let ut;n[83]!==Ke?(ut=o.jsxs(re,{children:["3 ",Ke]}),n[83]=Ke,n[84]=ut):ut=n[84];let $e;n[85]!==ft||n[86]!==Ie||n[87]!==ut?($e=o.jsx(Cn,{checked:ft,onSelect:Ie,children:ut}),n[85]=ft,n[86]=Ie,n[87]=ut,n[88]=$e):$e=n[88];const ht=C===4;let Fe;n[89]!==g?(Fe=Mn=>{Mn.preventDefault(),g(4)},n[89]=g,n[90]=Fe):Fe=n[90];let pt;n[91]!==c?(pt=c("seconds",{ns:"common"}),n[91]=c,n[92]=pt):pt=n[92];let Qe;n[93]!==pt?(Qe=o.jsxs(re,{children:["4 ",pt]}),n[93]=pt,n[94]=Qe):Qe=n[94];let Lt;n[95]!==ht||n[96]!==Fe||n[97]!==Qe?(Lt=o.jsx(Cn,{checked:ht,onSelect:Fe,children:Qe}),n[95]=ht,n[96]=Fe,n[97]=Qe,n[98]=Lt):Lt=n[98];const Ut=C===5;let wt;n[99]!==g?(wt=Mn=>{Mn.preventDefault(),g(5)},n[99]=g,n[100]=wt):wt=n[100];let Xt;n[101]!==c?(Xt=c("seconds",{ns:"common"}),n[101]=c,n[102]=Xt):Xt=n[102];let $t;n[103]!==Xt?($t=o.jsxs(re,{children:["5 ",Xt]}),n[103]=Xt,n[104]=$t):$t=n[104];let tn;n[105]!==Ut||n[106]!==wt||n[107]!==$t?(tn=o.jsx(Cn,{checked:Ut,onSelect:wt,children:$t}),n[105]=Ut,n[106]=wt,n[107]=$t,n[108]=tn):tn=n[108];const Pt=C===10;let Ue;n[109]!==g?(Ue=Mn=>{Mn.preventDefault(),g(10)},n[109]=g,n[110]=Ue):Ue=n[110];let Je;n[111]!==c?(Je=c("seconds",{ns:"common"}),n[111]=c,n[112]=Je):Je=n[112];let jt;n[113]!==Je?(jt=o.jsxs(re,{children:["10 ",Je]}),n[113]=Je,n[114]=jt):jt=n[114];let we;n[115]!==Pt||n[116]!==Ue||n[117]!==jt?(we=o.jsx(Cn,{checked:Pt,onSelect:Ue,children:jt}),n[115]=Pt,n[116]=Ue,n[117]=jt,n[118]=we):we=n[118];let Se;n[119]!==ce||n[120]!==Ee||n[121]!==Ge||n[122]!==$e||n[123]!==Lt||n[124]!==tn||n[125]!==we?(Se=o.jsxs(Ks,{className:"w-48",children:[ce,Ee,Ge,$e,Lt,tn,we]}),n[119]=ce,n[120]=Ee,n[121]=Ge,n[122]=$e,n[123]=Lt,n[124]=tn,n[125]=we,n[126]=Se):Se=n[126];let De;n[127]!==se||n[128]!==Se?(De=o.jsxs(sa,{children:[se,Se]}),n[127]=se,n[128]=Se,n[129]=De):De=n[129];let nt;n[130]===Symbol.for("react.memo_cache_sentinel")?(nt=o.jsx(oce,{className:"mr-2 h-4 w-4"}),n[130]=nt):nt=n[130];let Pe;n[131]!==c?(Pe=c("Reverse Order",{ns:"common"}),n[131]=c,n[132]=Pe):Pe=n[132];let gt;n[133]!==Pe?(gt=o.jsxs(re,{children:[Pe,"..."]}),n[133]=Pe,n[134]=gt):gt=n[134];const Ze=w?"Yes":"No";let Re;n[135]!==Ze?(Re=o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500",variant:"slate",children:Ze}),n[135]=Ze,n[136]=Re):Re=n[136];let Oe;n[137]!==gt||n[138]!==Re?(Oe=o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[nt,gt,Re]})}),n[137]=gt,n[138]=Re,n[139]=Oe):Oe=n[139];let et;n[140]!==c?(et=c("Sequence Reverse Order",{ns:"common"}),n[140]=c,n[141]=et):et=n[141];let Et;n[142]!==et?(Et=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:et})}),n[142]=et,n[143]=Et):Et=n[143];const bt=!w;let _t;n[144]!==x?(_t=Mn=>{Mn.preventDefault(),x(!1)},n[144]=x,n[145]=_t):_t=n[145];let Mt;n[146]!==c?(Mt=c("No",{ns:"common"}),n[146]=c,n[147]=Mt):Mt=n[147];let an;n[148]!==Mt?(an=o.jsx(re,{children:Mt}),n[148]=Mt,n[149]=an):an=n[149];let dn;n[150]!==bt||n[151]!==_t||n[152]!==an?(dn=o.jsx(Cn,{checked:bt,onSelect:_t,children:an}),n[150]=bt,n[151]=_t,n[152]=an,n[153]=dn):dn=n[153];let fn;n[154]!==x?(fn=Mn=>{Mn.preventDefault(),x(!0)},n[154]=x,n[155]=fn):fn=n[155];let mn;n[156]!==c?(mn=c("Yes",{ns:"common"}),n[156]=c,n[157]=mn):mn=n[157];let hn;n[158]!==mn?(hn=o.jsx(re,{children:mn}),n[158]=mn,n[159]=hn):hn=n[159];let nn;n[160]!==w||n[161]!==fn||n[162]!==hn?(nn=o.jsx(Cn,{checked:w,onSelect:fn,children:hn}),n[160]=w,n[161]=fn,n[162]=hn,n[163]=nn):nn=n[163];let on;n[164]!==Et||n[165]!==dn||n[166]!==nn?(on=o.jsxs(Ks,{className:"w-48",children:[Et,dn,nn]}),n[164]=Et,n[165]=dn,n[166]=nn,n[167]=on):on=n[167];let Sn;n[168]!==Oe||n[169]!==on?(Sn=o.jsxs(sa,{children:[Oe,on]}),n[168]=Oe,n[169]=on,n[170]=Sn):Sn=n[170];let pn;n[171]===Symbol.for("react.memo_cache_sentinel")?(pn=o.jsx(kn,{}),n[171]=pn):pn=n[171];let rn;n[172]!==b||n[173]!==r||n[174]!==i?(rn=()=>{b({updatedData:{isPinned:!0},itemIds:r}),i([])},n[172]=b,n[173]=r,n[174]=i,n[175]=rn):rn=n[175];let ct;n[176]===Symbol.for("react.memo_cache_sentinel")?(ct=o.jsx(tu,{className:"mr-2 h-4 w-4"}),n[176]=ct):ct=n[176];let xe;n[177]!==c?(xe=c("Pin Selected",{ns:"common"}),n[177]=c,n[178]=xe):xe=n[178];let Ye;n[179]!==xe?(Ye=o.jsx(re,{children:xe}),n[179]=xe,n[180]=Ye):Ye=n[180];let dt;n[181]!==rn||n[182]!==Ye?(dt=o.jsxs(rt,{onClick:rn,children:[ct,Ye]}),n[181]=rn,n[182]=Ye,n[183]=dt):dt=n[183];let mt;n[184]!==s||n[185]!==b||n[186]!==r||n[187]!==i||n[188]!==c?(mt=s&&o.jsxs(rt,{onClick:()=>{b({updatedData:{isPinned:!1},itemIds:r}),i([])},children:[o.jsx(Od,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("UnPin Selected",{ns:"common"})})]}),n[184]=s,n[185]=b,n[186]=r,n[187]=i,n[188]=c,n[189]=mt):mt=n[189];let xt;n[190]===Symbol.for("react.memo_cache_sentinel")?(xt=o.jsx(kn,{}),n[190]=xt):xt=n[190];let It;n[191]!==b||n[192]!==r||n[193]!==i?(It=()=>{b({updatedData:{isFavorite:!0},itemIds:r}),i([])},n[191]=b,n[192]=r,n[193]=i,n[194]=It):It=n[194];let At;n[195]===Symbol.for("react.memo_cache_sentinel")?(At=o.jsx(Fh,{className:"mr-2 h-4 w-4"}),n[195]=At):At=n[195];let Ht;n[196]!==c?(Ht=c("Star Selected",{ns:"common"}),n[196]=c,n[197]=Ht):Ht=n[197];let Bt;n[198]!==Ht?(Bt=o.jsx(re,{children:Ht}),n[198]=Ht,n[199]=Bt):Bt=n[199];let tt;n[200]!==It||n[201]!==Bt?(tt=o.jsxs(rt,{onClick:It,children:[At,Bt]}),n[200]=It,n[201]=Bt,n[202]=tt):tt=n[202];let Kt;n[203]!==a||n[204]!==b||n[205]!==r||n[206]!==i||n[207]!==c?(Kt=a&&o.jsxs(rt,{onClick:()=>{b({updatedData:{isFavorite:!1},itemIds:r}),i([])},children:[o.jsx(w5,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("Remove Selected Star",{ns:"common"})})]}),n[203]=a,n[204]=b,n[205]=r,n[206]=i,n[207]=c,n[208]=Kt):Kt=n[208];let Zt;n[209]===Symbol.for("react.memo_cache_sentinel")?(Zt=o.jsx(kn,{}),n[209]=Zt):Zt=n[209];const vn=r.length===0;let oe;n[210]!==l||n[211]!==r||n[212]!==S||n[213]!==i?(oe=Mn=>ge(void 0,null,function*(){_c.value?(yield l({itemIds:r,collectionId:S}),setTimeout(()=>{i([]),_c.value=!1},400)):(Mn.preventDefault(),_c.value=!0,setTimeout(()=>{_c.value=!1},3e3))}),n[210]=l,n[211]=r,n[212]=S,n[213]=i,n[214]=oe):oe=n[214];let fe;n[215]===Symbol.for("react.memo_cache_sentinel")?(fe=o.jsx(kr,{className:"mr-2 h-4 w-4 ".concat(_c.value?"text-red-500":"")}),n[215]=fe):fe=n[215];let Xe;n[216]!==c?(Xe=_c.value?c("Click to Confirm",{ns:"common"}):c("Delete",{ns:"common"}),n[216]=c,n[217]=Xe):Xe=n[217];let Me;n[218]!==Xe?(Me=o.jsx(re,{className:"mr-1 ".concat(_c.value?"!text-red-500":""),children:Xe}),n[218]=Xe,n[219]=Me):Me=n[219];let _e;n[220]!==r.length?(_e=r.length>0&&o.jsx(o.Fragment,{children:_c.value?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:r.length}):o.jsx(St,{variant:"secondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:r.length})}),n[220]=r.length,n[221]=_e):_e=n[221];let He;n[222]!==Me||n[223]!==_e?(He=o.jsxs(ve,{className:"text-red-400",children:[Me,_e]}),n[222]=Me,n[223]=_e,n[224]=He):He=n[224];let Ct;n[225]!==vn||n[226]!==oe||n[227]!==He?(Ct=o.jsxs(rt,{disabled:vn,onClick:oe,children:[fe,He]}),n[225]=vn,n[226]=oe,n[227]=He,n[228]=Ct):Ct=n[228];let cn;n[229]!==z||n[230]!==U||n[231]!==te||n[232]!==De||n[233]!==Sn||n[234]!==dt||n[235]!==mt||n[236]!==tt||n[237]!==Kt||n[238]!==Ct?(cn=o.jsxs(Wn,{className:"w-52",sideOffset:10,align:"center",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:[z,Y,U,te,De,Sn,pn,dt,mt,xt,tt,Kt,Zt,Ct]}),n[229]=z,n[230]=U,n[231]=te,n[232]=De,n[233]=Sn,n[234]=dt,n[235]=mt,n[236]=tt,n[237]=Kt,n[238]=Ct,n[239]=cn):cn=n[239];let zn;return n[240]!==_||n[241]!==cn?(zn=o.jsxs(Kn,{children:[_,cn]}),n[240]=_,n[241]=cn,n[242]=zn):zn=n[242],zn}finally{e.f()}};function w5e(t){const e=Te(16),{tabId:n}=t,{t:r}=Gt();if(n==null)return null;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{ll.value=!0},e[0]=s):s=e[0];let a;e[1]!==r?(a=r("Organize Layout",{ns:"contextMenus"}),e[1]=r,e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(Ele,{size:15})}),e[3]=i):i=e[3];let l;e[4]!==a?(l=o.jsxs(Wt,{onClick:s,children:[a,i]}),e[4]=a,e[5]=l):l=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(Qn,{}),e[6]=c):c=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{sm.value=!0},e[7]=d):d=e[7];let p;e[8]!==r?(p=r("Edit Tabs",{ns:"contextMenus"}),e[8]=r,e[9]=p):p=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(Goe,{size:15})}),e[10]=f):f=e[10];let m;e[11]!==p?(m=o.jsxs(Wt,{onClick:d,children:[p,f]}),e[11]=p,e[12]=m):m=e[12];let b;return e[13]!==l||e[14]!==m?(b=o.jsx(Cx,{children:o.jsxs(H0,{children:[l,c,m]})}),e[13]=l,e[14]=m,e[15]=b):b=e[15],b}const{CLIP:k5e,TAB:PI,BOARD:C5e}=nl;function MI(t){const e=Te(27),{totalTabs:n,onCreateNewItemType:r,isFirstTab:s}=t,{t:a}=Gt(),i=qh();let l;e[0]!==s||e[1]!==a?(l=o.jsx(Gn,{className:"mr-1.5 rounded-sm flex",asChild:!0,children:s?o.jsx(ne,{id:"dashboard-tabs-create-button_tour",className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-800/50 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})}):o.jsx(je,{variant:"ghost",id:"dashboard-tabs-create-button_tour",size:"mini",className:"ml-1.5 mr-1 px-1 py-1 w-[30px] bg-slate-100 hover:bg-opacity-100 bg-opacity-80 dark:bg-gray-500/70 dark:hover:bg-slate-500 text-secondary-foreground/50 cursor-pointer !mt-0 flex",children:o.jsx(st,{text:"".concat(a("Add New",{ns:"contextMenus"})," ..."),isDisabled:s,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(Vr,{size:20})})})}),e[0]=s,e[1]=a,e[2]=l):l=e[2];const c=s?"center":"end",d=s?12:8;let p;e[3]!==s||e[4]!==i||e[5]!==n||e[6]!==r||e[7]!==a?(p=!s&&o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{!i&&n&&n>=2?Ga.value=!0:r(PI)},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Tab",{ns:"contextMenus"})}),n&&n>=2&&o.jsx(Jl,{})]}),e[3]=s,e[4]=i,e[5]=n,e[6]=r,e[7]=a,e[8]=p):p=e[8];let f;e[9]!==s||e[10]!==r||e[11]!==a?(f=!s&&o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(C5e)},children:[o.jsx(kv,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Board",{ns:"contextMenus"})})]}),e[9]=s,e[10]=r,e[11]=a,e[12]=f):f=e[12];let m;e[13]!==s||e[14]!==r||e[15]!==a?(m=s?o.jsxs(o.Fragment,{children:[o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:a("Dashboard",{ns:"contextMenus"})}),o.jsx(kn,{}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(PI)},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add First Tab",{ns:"contextMenus"})})]})]}):o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(k5e)},children:[o.jsx(oE,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Clip",{ns:"contextMenus"})})]}),e[13]=s,e[14]=r,e[15]=a,e[16]=m):m=e[16];let b;e[17]!==c||e[18]!==d||e[19]!==p||e[20]!==f||e[21]!==m?(b=o.jsxs(Wn,{align:c,alignOffset:-28,sideOffset:d,children:[p,f,m]}),e[17]=c,e[18]=d,e[19]=p,e[20]=f,e[21]=m,e[22]=b):b=e[22];let C;return e[23]!==s||e[24]!==l||e[25]!==b?(C=o.jsxs(Kn,{defaultOpen:s,modal:!1,children:[l,b]}),e[23]=s,e[24]=l,e[25]=b,e[26]=C):C=e[26],C}const Wf=1,U1=50;function S5e({tabs:t,selectedItemIds:e,setSelectedItemIds:n,pinnedItemIds:r,currentTab:s,setCurrentTab:a}){var l,c;var i=sn(1);try{const{clipboardHistory:d}=Tt(_i),{t:p}=Gt(),{updateTabById:f}=$B(),m=v.useRef(null),b=v.useRef(null),C=it(!1),{updateMovedClips:g}=K5();v.useEffect(()=>{xa.value&&(xa.value=null)},[]);const{createNewItem:w}=G5(Bl.value===null),{currentCollectionId:x,clipItems:S}=Tt(Ar),E=(l=t.find(L=>L.tabId===s))==null?void 0:l.tabColor;function N(L,A=null){return ge(this,null,function*(){if(xa.value=L,L===nl.BOARD){const z=fs(S,s,A?A==null?void 0:A.toString():null),Y={name:p("New Board",{ns:"dashboard"}),isBoard:!0,tabId:s,showDescription:!0,color:E,borderWidth:0,parentId:A,collectionId:x,orderNumber:0},O=yield w({item:Y});z.sort((M,W)=>M.orderNumber-W.orderNumber).unshift(ae(R({},Y),{id:O,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1,description:""}));const $=z.map((M,W)=>({itemId:M.id,parentId:A,tabId:M.tabId,collectionId:x,orderNumber:W}));g({updatedMoveClips:$}),bh.value=O}else L===nl.CLIP&&(xa.value=L)})}function _(L,A=null){return ge(this,null,function*(){return new Promise((z,Y)=>ge(this,null,function*(){var H,F,q,X,te,ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We;A||Y("No board id");const O=L?d.find(qe=>qe.historyId===L):null,$=O==null?void 0:O.isImage,M=(H=S.find(qe=>qe.itemId===A))==null?void 0:H.color,W={historyId:L,name:O!=null&&O.value?O.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():$?"".concat(p("Image size",{ns:"common"})," (").concat(O==null?void 0:O.imageWidth,"x").concat(O==null?void 0:O.imageHeight,")"):p("New Clip",{ns:"dashboard"}),isClip:!0,value:(F=Nf.value)!=null?F:"",description:null,detectedLanguage:(q=O==null?void 0:O.detectedLanguage)!=null?q:null,isImage:(X=O==null?void 0:O.isImage)!=null?X:!1,imageDataUrl:(te=O==null?void 0:O.imageDataUrl)!=null?te:null,imagePathFullRes:(ee=O==null?void 0:O.imagePathFullRes)!=null?ee:null,imageHeight:(G=O==null?void 0:O.imageHeight)!=null?G:null,imageWidth:(Z=O==null?void 0:O.imageWidth)!=null?Z:null,imagePreviewHeight:(le=O==null?void 0:O.imagePreviewHeight)!=null?le:null,isLink:(se=O==null?void 0:O.isLink)!=null?se:!1,links:(de=O==null?void 0:O.links)!=null?de:null,isImageData:(ce=O==null?void 0:O.isImageData)!=null?ce:!1,isMasked:(ye=O==null?void 0:O.isMasked)!=null?ye:!1,isVideo:(pe=O==null?void 0:O.isVideo)!=null?pe:!1,isCode:(me=O==null?void 0:O.isCode)!=null?me:!1,isText:(be=O==null?void 0:O.isText)!=null?be:!1,hasEmoji:(Ee=O==null?void 0:O.hasEmoji)!=null?Ee:!1,hasMaskedWords:(We=O==null?void 0:O.hasMaskedWords)!=null?We:!1,hasMultiLineCopy:!1,tabId:s,showDescription:!1,color:M,borderWidth:2,parentId:A,collectionId:x,createdAt:0,orderNumber:0},V=yield w({item:W});Nf.value&&(Nf.value=null),Rd.value=A;const U=fs(S,s,A==null?void 0:A.toString());U.sort((qe,ot)=>qe.orderNumber-ot.orderNumber).unshift(ae(R({},W),{id:V,type:"clip"}));const J=U.map((qe,ot)=>({itemId:qe.id,parentId:qe.parentId,tabId:qe.tabId,collectionId:x,orderNumber:ot}));setTimeout(()=>ge(this,null,function*(){yield g({updatedMoveClips:J}),z(V)}),600)}))})}v.useEffect(()=>{function L(){return ge(this,null,function*(){var z;let A=null;if(Bl.value&&!Rd.value){for(const Y of(z=t0.value)!=null?z:[null])A=yield _(Y,Bl.value);setTimeout(()=>{Rd.value=null,Bl.value=null,t0.value=null,Nf.value=null,Wa.value=A},300)}})}L()},[Bl.value]),v.useEffect(()=>{function L(){return ge(this,null,function*(){yield N(nl.BOARD,u1.value),Lb.value=!1,u1.value=null})}(u1.value||Lb.value)&&L()},[u1.value,Lb.value]);const{tabLayoutSplit:P,tabLayout:I}=(c=t.find(L=>L.tabId===s))!=null?c:{},T=t.length===0&&!xa.value&&!sm.value;return o.jsxs(o.Fragment,{children:[o.jsxs(pl,{className:"flex ".concat(el(E)," rounded-lg py-0 mx-1.5 ").concat(T?"flex-col items-center justify-center pb-2 mb-1":"mb-3 mr-3"),onValueChange:L=>{a(L)},value:s,children:[o.jsxs(z0,{onOpenChange:L=>{C.value=L},children:[o.jsxs(F0,{ref:b,className:"flex w-full",disabled:T,children:[!T&&o.jsx(ve,{className:"justify-start dashboard-tabs w-full",id:"dashboard-tabs_tour",children:o.jsx(or,{style:{width:"97%"},children:sm.value?o.jsxs(Xo,{className:"bg-transparent pr-0.5",children:[t.map(({tabId:L,tabName:A,tabIsHidden:z,tabColor:Y,tabOrderNumber:O})=>L&&!z&&o.jsx(j5e,{tabColor:Y,tabId:L,tabName:A||"".concat(p("Tab",{ns:"dashboard"})," ").concat(O+1),currentTab:s},L)),xa.value===nl.TAB?o.jsx(DI,{newTabOrderNumber:t.length+1}):o.jsx(je,{variant:"outline",size:"mini",title:p("Add a Tab",{ns:"dashboard"}),className:"px-1.5 ml-1 h-8 border-0 opacity-80 hover:opacity-100 hover:text-gray-500 dark:text-gray-200 bg-gray-100 dark:bg-gray-600",onClick:()=>{N(nl.TAB)},children:o.jsx(Vr,{size:18})})]}):o.jsxs(Xo,{className:"bg-transparent pr-0.5",children:[t.map(({tabId:L,tabName:A,tabIsHidden:z,tabOrderNumber:Y})=>L&&!z&&o.jsx(E5e,{tabId:L,currentTabColor:E!=null?E:"slate",tabOrderNumber:Y,tabName:A||"".concat(p("Tab",{ns:"dashboard"})," ").concat(Y+1),currentTab:s},L)),xa.value===nl.TAB&&o.jsx(DI,{newTabOrderNumber:t.length+1})]})})}),o.jsx(ne,{className:"flex flex-row p-1 !mt-0 mr-0.5",children:ll.value?o.jsxs(o.Fragment,{children:[P&&o.jsxs(ve,{className:"mr-2",children:[P>1&&o.jsx(St,{onClick:()=>{f({updatedTab:{tabLayoutSplit:P>3?1:P+1,tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:P})}),o.jsxs(je,{variant:"light",title:p("Board Layout Split",{ns:"dashboard"}),onClick:()=>{f({updatedTab:{tabLayoutSplit:P>3?1:P+1,tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 ".concat(P===4?"w-12":"w-8"," h-8"),children:[P===1&&o.jsx(Kle,{size:18,className:"opacity-70"}),P===2&&o.jsx(iie,{size:18,className:"opacity-70"}),P===3&&o.jsx(lie,{size:18,className:"opacity-70"}),P===4&&o.jsxs(o.Fragment,{children:[o.jsx(g6,{size:18,className:"opacity-70"}),o.jsx(g6,{size:18,className:"opacity-70 ml-[-2px]"})]})]})]}),o.jsxs(ve,{className:"mr-2",children:[o.jsx(St,{onClick:()=>{f({updatedTab:{tabLayoutSplit:P,tabLayout:I==="full"?"auto":I==="auto"||!I?"full":"auto",tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:I||"auto"})}),o.jsxs(je,{variant:"light",title:p("Board Layout Height",{ns:"dashboard"}),onClick:()=>{f({updatedTab:{tabLayoutSplit:P,tabLayout:I==="full"||!I?"auto":I==="auto"?"full":"auto",tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 w-8 h-8",children:[(I==="auto"||!I)&&o.jsx(Fz,{size:18,className:"opacity-70"}),I==="full"&&o.jsx(wa,{size:18,className:"opacity-70"})]})]}),o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{ll.value=!1,cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Organize",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]})]}):sm.value?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{sm.value=!1,cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit Tabs",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):xa.value===qo?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{xa.value=null,Nf.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Create Clip",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):pv.value!=null||Ms.value!=null?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{pv.value=null,Ms.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsxs(o.Fragment,{children:[e.length>0&&o.jsx(ne,{className:"animate-in fade-in duration-300",children:o.jsx(b5e,{selectedItemIds:e,hasPinnedItemsInSelected:e.some(L=>r.includes(L)),hasFavoriteItemsInSelected:e.some(L=>{var A;return(A=S.find(z=>z.itemId===L))==null?void 0:A.isFavorite}),setSelectedItemIds:n})}),t.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(MI,{totalTabs:t.length,onCreateNewItemType:N,isFirstTab:!1}),o.jsx(je,{variant:"ghost",size:"mini",id:"dashboard-tabs-context-menu_tour",className:"px-1 py-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex w-[30px]",onClick:()=>{var z,Y,O;const L=(z=m==null?void 0:m.current)==null?void 0:z.getBoundingClientRect().x,A=(Y=m==null?void 0:m.current)==null?void 0:Y.getBoundingClientRect().y;(O=b==null?void 0:b.current)==null||O.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:L&&L+20,clientY:A&&A+20}))},ref:m,children:o.jsx(st,{text:p("Tabs Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:20})})})]})]})})]}),o.jsx(w5e,{tabId:s})]}),T&&o.jsx(MI,{onCreateNewItemType:N,isFirstTab:!0})]}),T&&o.jsx(re,{className:"text-sm mt-2 !text-slate-500 items-center justify-center mx-1.5 mr-3",children:p("Create Tab",{ns:"dashboard"})})]})}finally{i.f()}}function DI({newTabOrderNumber:t}){var e=sn(1);try{const{t:n}=Gt(),{createNewTab:r}=_ge(),{currentCollectionId:s}=Tt(Ar),a=it(!1),i=it(""),l=it(null);return o.jsxs(ve,{className:"ml-1.5",children:[o.jsx(ne,{className:"w-[22px] mr-1",children:o.jsx(lk,{color:l.value,type:Wl,itemId:null,onColorChange:c=>{l.value=c}})}),o.jsx(st,{open:a.value,text:i.value.length<=Wf?n("Too short",{ns:"dashboard"}):n("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[140px]",placeholder:n("Enter tab name",{ns:"dashboard"}),onKeyDown:c=>ge(this,null,function*(){c.stopPropagation(),c.key==="Enter"&&(i.value.length<=Wf||i.value.length>U1)?a.value=!0:c.key==="Enter"&&(yield r({tab:{tabName:i.value,tabColor:l.value,collectionId:s,tabOrderNumber:t}}))}),value:i.value,onChange:c=>{(a.value&&c.target.value.length>Wf&&c.target.value.length<=U1||a.value&&c.target.value.length===0)&&(a.value=!1),i.value=c.target.value}})}),o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>ge(this,null,function*(){a.value||(yield r({tab:{tabName:i.value,tabColor:l.value,collectionId:s,tabOrderNumber:t}}))}),children:o.jsx(st,{text:n("Create tab",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(en,{size:18})})}),o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{xa.value=null},children:o.jsx(st,{text:n("Cancel",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})]})}finally{e.f()}}function j5e({tabId:t,tabName:e,tabColor:n,currentTab:r}){var s=sn(1);try{const{t:a}=Gt(),i=it(!1),l=it(""),c=it(!1);if(!e)return null;v.useEffect(()=>{c.value&&(c.value=!1)},[r]);const d=it(!1),p=it(!1),{tabHasBoards:f,setCurrentTab:m}=Tt(Ar),{deleteItemById:b}=Tge(),{updateTabById:C}=$B();return o.jsx(ve,{className:"inline-flex items-center whitespace-nowrap rounded-sm px-1.5 pr-2 ".concat(c.value?"":"py-1.5"," ").concat(r===t&&!c.value?"bg-white dark:bg-gray-900/60":""," ").concat(p.value?"bg-red-100/80 dark:bg-red-900/70":""," ").concat(d.value?"bg-yellow-100/80 dark:bg-yellow-900/70":""," text-sm font-medium ring-offset-background transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:pointer-events-none disabled:opacity-50 justify-start max-w-[260px]"),children:c.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:i.value,asChild:!0,text:l.value.length<=Wf?a("Too short",{ns:"dashboard"}):a("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:a("Enter tab name",{ns:"dashboard"}),onKeyDown:g=>ge(this,null,function*(){g.stopPropagation(),g.key==="Escape"?c.value=!1:g.key==="Enter"&&(l.value.length<=Wf||l.value.length>U1)?i.value=!0:g.key==="Enter"&&(yield C({updatedTab:{tabName:l.value,tabId:t}}),setTimeout(()=>{c.value=!1},200))}),defaultValue:e,onChange:g=>{i.value&&g.target.value.length>Wf&&g.target.value.length<=U1||i.value&&g.target.value.length===0?i.value=!1:(g.target.value.length<=Wf||g.target.value.length>U1)&&(i.value=!0),l.value=g.target.value}})}),o.jsx(st,{text:a("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>ge(this,null,function*(){i.value||(yield C({updatedTab:{tabName:l.value,tabId:t}}),setTimeout(()=>{c.value=!1},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{c.value=!1},children:o.jsx(In,{size:18})})})})]}):o.jsxs(o.Fragment,{children:[o.jsx(lk,{color:n,itemId:t,onOpen:()=>{m(t)},updateById:C,type:Wl}),o.jsx(ne,{className:"text-ellipsis overflow-hidden first-letter:uppercase border-dashed border-b border-gray-400",onClick:g=>{g.preventDefault(),g.stopPropagation,c.value=!0},title:e,children:e}),o.jsx(ne,{onClick:()=>{c.value=!0},title:a("Edit tab name",{ns:"dashboard"}),className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(Ud,{size:14})}),o.jsxs(Sa,{defaultOpen:!1,open:p.value||d.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer opacity-70 hover:opacity-100 hover:text-red-500",title:a("Delete tab",{ns:"dashboard"}),onClick:()=>{f(t)?d.value=!0:p.value=!0},children:o.jsx(kr,{size:14})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 ".concat(d.value?"bg-amber-100 border-amber-200 dark:bg-yellow-800 dark:border-gray-900":"bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950"," w-64"),onEscapeKeyDown:()=>{p.value=!1,d.value=!1},onPointerDownOutside:()=>{p.value=!1,d.value=!1},children:d.value?o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{justify:"left",size:"md",weight:"bold",color:"waning",children:a("Tab is Not Empty",{ns:"dashboard"})}),o.jsx(Ln,{h:1}),o.jsx(re,{color:"black",size:"sm",children:a("You'll need to clear this tab of all boards before it can be deleted.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsx(je,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{d.value=!1},children:a("Got it",{ns:"common"})})]}):p.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center",children:o.jsx(us,{i18nKey:"Are you sure you want to delete {{tabName}} tab?",values:{tabName:e},ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{p.value=!1},children:o.jsx("div",{children:a("Cancel",{ns:"common"})})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200 whitespace-nowrap",onClick:()=>ge(this,null,function*(){yield b({tabId:t}),sm.value=!1,cl.value=null}),children:a("Delete Tab",{ns:"dashboard"})})]})]})})]})]})},t)}finally{s.f()}}function E5e({tabId:t,tabName:e,currentTabColor:n}){var r=sn(1);try{const{setNodeRef:s,listeners:a,transform:i,transition:l,isDragging:c}=p5({id:t,animateLayoutChanges:()=>!1,data:{type:Wl,tabId:t}}),d={transition:l,transform:Yo.Translate.toString(i)},p=n!=="slate"?"dark:data-[state=active]:bg-".concat(n,"-700"):"dark:data-[state=active]:bg-slate-600";return o.jsx(jr,ae(R({value:t,style:d,asChild:c},ll.value?{}:a),{ref:s,className:"".concat(p," data-[state=active]:bg-").concat(n,"-50 ").concat(c||Tc.value===t?"border-2 border-dashed border-blue-400 py-1":"transition-none"),children:o.jsxs(ve,{className:"justify-start max-w-[260px]",children:[o.jsx(ne,{className:"text-ellipsis overflow-hidden first-letter:uppercase",title:e,children:e}),(ll.value||c)&&o.jsx(ne,ae(R({},a),{className:"pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-grab relative",children:c?o.jsx(bz,{size:14}):o.jsx(hx,{size:14})}))]})}),t)}finally{r.f()}}const Ys="board",qo="clip",Wl="tab";function N5e({historyDragActive:t,isDark:e,dragOverBoardId:n}){var s,a,i;var r=sn(1);try{let l=function(Re){if(!ob(Re.active))return;Tc.value&&(Tc.value=null);const Oe=Re.active.data.current;(Oe==null?void 0:Oe.type)===Ys?ht(Oe.board):(Oe==null?void 0:Oe.type)===qo&&pt(Oe.clip)},c=function(Re){var Ye,dt;const{active:Oe,over:et}=Re;if(!et)return;const Et=(et==null?void 0:et.id)==="clips::pinnedzone";if(Oe!=null&&Oe.id&&Et?g(Oe.id):Et||g(null),((Ye=et.data.current)==null?void 0:Ye.type)===Wl&&((dt=Oe==null?void 0:Oe.data.current)==null?void 0:dt.type)!==Wl){const mt=Z.find(({itemId:xt})=>xt===Oe.id);((mt==null?void 0:mt.tabId)!==et.id||pe!==et.id)&&(Tc.value=et.id.toString())}else Tc.value&&(Tc.value=null);if(Et)return;const bt=Oe.id,_t=et.id;if(bt===_t||!ob(Oe)||!ob(et))return;const Mt=Oe.data.current,an=et.data.current,dn=(Mt==null?void 0:Mt.type)===qo,fn=(Mt==null?void 0:Mt.type)===Ys,mn=(an==null?void 0:an.type)===qo,hn=(an==null?void 0:an.type)===Ys;if(!dn&&!fn||dn&&hn&&cl.value===_t)return;if(dn&&hn&&!X){const mt=Mt.clip.parentId,xt=Z.filter(({parentId:tt})=>mt==tt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}else if(dn&&mn){const mt=Mt.clip.parentId,xt=Z.filter(({parentId:tt,isClip:Kt})=>mt==tt&&Kt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}else if(fn&&mn){const mt=an.clip.parentId,xt=Z.filter(({parentId:tt})=>mt==tt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}const nn=Z.find(({itemId:mt,isBoard:xt})=>mt===_t&&xt),on=Z.find(({itemId:mt,isClip:xt})=>mt===_t&&xt),Sn=nn==null?void 0:nn.itemId,pn=on==null?void 0:on.itemId,rn=Z.findIndex(({itemId:mt})=>mt===bt),ct=Z[rn],xe=fn?Z[rn]:null;if(Sn&&ct.parentId!==Sn&&!fn){const mt=Z.filter(({parentId:At})=>Sn==At).sort((At,Ht)=>At.orderNumber-Ht.orderNumber);ct.parentId=Sn,mt.unshift(ct);const xt=new Map(mt.map((At,Ht)=>[At.itemId,Ht])),It=Z.map(At=>{const Ht=xt.get(At.itemId);return Ht!==void 0?ae(R({},At),{orderNumber:Ht}):At});me(It);return}if(pn&&(on!=null&&on.parentId)&&ct.parentId!==on.parentId&&!fn){ct.parentId=on.parentId,ct.orderNumber=on.orderNumber;const mt=Z.filter(({parentId:Ht})=>on.parentId==Ht).sort((Ht,Bt)=>Ht.orderNumber-Bt.orderNumber);mt.unshift(ct);const xt=Wr(mt,0,on.orderNumber),It=new Map(xt.map((Ht,Bt)=>[Ht.itemId,Bt])),At=Z.map(Ht=>{const Bt=It.get(Ht.itemId);return Bt!==void 0?ae(R({},Ht),{orderNumber:Bt}):Ht});me(At);return}if(Sn&&fn&&xe&&(xe==null?void 0:xe.parentId)!==(nn==null?void 0:nn.parentId)&&Mt.isSubBoard){xe.parentId=Sn;const mt=Z.filter(({parentId:At})=>nn.parentId==At).sort((At,Ht)=>At.orderNumber-Ht.orderNumber);mt.unshift(xe);const xt=new Map(mt.map((At,Ht)=>[At.itemId,Ht])),It=Z.map(At=>{const Ht=xt.get(At.itemId);return Ht!==void 0?ae(R({},At),{orderNumber:Ht}):At});me(It)}if(Sn&&fn&&(xe==null?void 0:xe.parentId)===(nn==null?void 0:nn.parentId)){const mt=Z.filter(({parentId:tt,isBoard:Kt,tabId:Zt})=>(nn==null?void 0:nn.parentId)==tt&&Kt&&Zt===pe).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),xt=mt.findIndex(({itemId:tt})=>tt===(xe==null?void 0:xe.itemId)),It=mt.findIndex(({itemId:tt})=>tt===Sn),At=Wr(mt,xt,It),Ht=new Map(At.map((tt,Kt)=>[tt.itemId,Kt])),Bt=Z.map(tt=>{const Kt=Ht.get(tt.itemId);return Kt!==void 0?ae(R({},tt),{orderNumber:Kt}):tt});me(Bt)}};a7();const{t:d}=Gt(),{isShowPinned:p,setIsShowPinned:f}=Tt(Ls),[m,b]=v.useState(null),[C,g]=v.useState(null),[w,x]=v.useState(null),S=v.useRef(null),E=v.useRef(null),{updateTabs:N}=Nge(),{invalidateCollectionWithClips:_,isCollectionWithClipsLoadingFinished:P,isCollectionWithClipsLoading:I}=o7(),{updateMovedClips:T}=K5(),{movePinnedClipUpDown:L}=Ege(),[,,,A]=Wh({}),[,,z]=Uh({}),[Y,O]=v.useState([]),[$,M]=v.useState(!1),W=v.useRef(null),V=it(!1),U=it(!1),J=it(!1),H=it([]);v.useEffect(()=>{try{H.value=JSON.parse(localStorage.getItem("expandedPanels")||"[]")}catch(Re){console.error("Failed to load expanded panels",Re)}},[]),v.useEffect(()=>{try{localStorage.setItem("expandedPanels",JSON.stringify(H.value))}catch(Re){console.error("Failed to save expanded panels",Re)}},[H.value.length]);const F=v.useRef({}),q=v.useMemo(()=>{var Re;return E!=null&&E.current&&((Re=E==null?void 0:E.current)==null?void 0:Re.getSize())===0?!1:U.value||V.value},[V.value,U.value,E==null?void 0:E.current]),X=v.useMemo(()=>Tn.value,[Tn.value]),{createNewItem:te}=G5(),{unPinAllClips:ee}=jge(),{updatePinnedClipsByIds:G}=OB(),{clipItems:Z,pinnedClips:le,tabs:se,tabsLoaded:de,setCurrentTab:ce,setTabsByOrder:ye,currentTab:pe,setClipItemsDebounced:me,setClipItems:be,currentCollectionId:Ee}=Tt(Ar),{copyPasteSequencePinnedDelay:We,setCopyPasteSequencePinnedDelay:qe,copyPasteSequenceIsReversOrder:ot,setCopyPasteSequenceIsReversOrder:Ve,isClipNotesHoverCardsEnabled:Ge,clipNotesHoverCardsDelayMS:ft,clipNotesMaxHeight:Ie,clipNotesMaxWidth:Ke}=Tt(Cr),ut=v.useMemo(()=>Z.filter(({parentId:Re,isBoard:Oe,tabId:et})=>Re===null&&Oe&&et===pe).map(Re=>Re.itemId),[Z]);v.useEffect(()=>{le.length===0&&(V.value=!1,U.value=!1)},[le]),v.useEffect(()=>{var Re,Oe;le.length>0?(Re=E==null?void 0:E.current)==null||Re.expand():(Oe=E==null?void 0:E.current)==null||Oe.collapse()},[le,E]);const[$e,ht]=v.useState(null),[Fe,pt]=v.useState(null),Qe=v.useCallback(c,[X,$e,Fe,Z]),Lt=v.useCallback(Re=>{O(Oe=>Oe.includes(Re)?Oe.filter(Et=>Et!==Re):[...Oe,Re])},[O]),Ut=US(rm(hv,{activationConstraint:{tolerance:100,delay:600}}),rm(fv,{coordinateGetter:nj})),wt=US(rm(hv,{activationConstraint:{tolerance:10,delay:60}}),rm(fv,{coordinateGetter:nj})),Xt=v.useMemo(()=>Y.some(Re=>le.some(Oe=>Oe.id===Re)),[Y,le]),$t=v.useMemo(()=>Z.length>0?fs(Z,pe):[],[Z,pe]),tn={keyframes({transform:Re}){return $||Tc.value||C?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Yo.Transform.toString(Re.initial)},{opacity:0,transform:Yo.Transform.toString(R({},Re.final))}]},easing:"ease-out",duration:$?0:300,sideEffects({active:Re,dragOverlay:Oe}){Fe||Tc.value||C?Oe.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:rh.easing}):Re.node.animate([{opacity:0},{opacity:1}],{duration:rh.duration,easing:rh.easing})}},Pt=v.useMemo(()=>Z.filter(({isClip:Re})=>Re).map(Re=>Re.itemId),[Z,Fe]),Ue=v.useCallback(Re=>{var bt;const Oe=IQ(Re),et=Oe.length>0?Oe:z8(Re);let Et=$8(et,"id");if(Et!=null){if(Et in Pt){const _t=Z.map(Mt=>Mt.parentId===Et&&Mt.itemId);_t.length>0&&(Et=(bt=a$(ae(R({},Re),{droppableContainers:Re.droppableContainers.filter(Mt=>Mt.id!==Et&&_t.includes(Mt.id))}))[0])==null?void 0:bt.id)}return S.current=Et,[{id:Et}]}return S.current?[{id:S.current}]:[]},[$e,Fe,Pt,Z]),Je=v.useMemo(()=>t?v5e:W8,[t]),{tabLayoutSplit:jt=1,tabLayout:we}=(s=se.find(Re=>Re.tabId===pe))!=null?s:{},Se=((a=W==null?void 0:W.current)==null?void 0:a.getSizePixels())||0,De=((i=E==null?void 0:E.current)==null?void 0:i.getSizePixels())||0;v.useEffect(()=>{if(Ji.value||Ms.value){const Re=Ms.value||Ji.value,Oe=Z.find(et=>et.itemId===Re);Oe!=null&&Oe.tabId&&ce(Oe.tabId),Ji.value&&b(Ji.value),setTimeout(()=>{Ji.value=null},2e3)}},[Ji.value,Ms.value]);const nt=Re=>(F.current[Re]||(F.current[Re]=v.createRef()),F.current[Re]),Pe=v.useMemo(()=>s2e($t,Va.value),[Va.value,$t]),gt=v.useMemo(()=>zo.value,[zo.value]);return o.jsxs(Je,{sensors:ll.value?wt:Ut,measuring:{droppable:{strategy:yh.Always}},collisionDetection:Ue,onDragStart:l,onDragCancel:()=>{M(!0),ht(null),pt(null),_(),setTimeout(()=>{M(!1)},300)},onDragEnd:Ze,onDragOver:Qe,children:[o.jsx(D2,{items:ut,strategy:()=>null,children:o.jsxs($b,{autoSaveId:"ClipsDashboard",direction:"vertical",className:"flex pt-4 clips-dashboard-panel_tour",children:[p&&o.jsxs(o.Fragment,{children:[o.jsxs(ew,{collapsible:!0,ref:E,defaultSize:12,id:"pinned-clips",order:1,minSize:4,maxSize:30,className:"flex flex-col ".concat(Fe?C?"bg-orange-200/70 dark:bg-orange-600/70":"bg-orange-100 dark:bg-orange-500/70":"bg-orange-300/40 dark:bg-orange-700/40"," rounded-lg px-2 py-4 pt-3 mx-2 mr-3 relative"),children:[o.jsxs(F6,{id:"clips::pinnedzone",className:"w-full h-full",isActive:!!Fe,children:[Fe&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1.5",children:o.jsx(ne,{className:"border-2 ".concat(C?"border-orange-500 dark:border-orange-400":"border-slate-300/80 dark:border-slate-400/80"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:C?o.jsx(re,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 !font-medium animate-in fade-in duration-300 text-sm",children:d("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 animate-in fade-in duration-300"})})}),o.jsx(D1,{disableWidth:!0,defaultHeight:De-20,children:({height:Re})=>o.jsx(or,{style:{height:Re},onMouseEnter:()=>{V.value=!0},onMouseLeave:()=>{V.value=!1},onClick:()=>{V.value=!0},children:o.jsx(ve,{className:"flex flex-wrap justify-normal gap-2 items-start mt-3 mb-1 ml-1 relative ".concat(Fe?"opacity-20":""),children:le.map((Oe,et)=>o.jsx(H7,{clip:Oe,isDark:e,isClipNotesHoverCardsEnabled:Ge,clipNotesHoverCardsDelayMS:ft,clipNotesMaxHeight:Ie,clipNotesMaxWidth:Ke,isDisabledPinnedMoveUp:et===0,isDisabledPinnedMoveDown:et===le.length-1,onMovePinnedUpDown:Et=>{L(Et)},isShowDetails:w===Oe.id,setShowDetailsItem:x,setSelectedItemId:Lt,isSelected:Y.includes(Oe.id),selectedOrder:Y.indexOf(Oe.id)+1,boardColor:"gray",isShowOrganizeLayoutValue:ll.value||J.value,isPinnedBoard:!0},Oe.id))})})})]}),le.length>0&&!Fe&&o.jsxs(ve,{className:"justify-between absolute right-0 bottom-1 ".concat(J.value?"px-1":"px-2.5"," w-full"),onMouseEnter:()=>{V.value=!0},onMouseLeave:()=>{V.value=!1},onClick:()=>{V.value=!0},children:[p&&!J.value&&!ll.value&&o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(t||C||!q?"opacity-0":""),children:[o.jsx(mr,{className:"group text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:X?d("Sequence Paste",{ns:"common"}):d("Sequence Copy",{ns:"common"}),children:X?o.jsx(Ds,{size:14,onClick:()=>{A(le.map(Re=>Re.id))}}):o.jsx(ba,{size:14,onClick:()=>{z(le.map(Re=>Re.id))}})}),o.jsxs(Kn,{onOpenChange:Re=>{U.value=Re},children:[o.jsx(Gn,{asChild:!0,children:o.jsx(CE,{variant:"outline",title:d("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:o.jsxs(re,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[We,"s"]})})}),o.jsxs(Wn,{className:"w-44",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{size:"xs",children:d("Sequence Copy Paste",{ns:"common"})})}),o.jsx(kn,{}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[d("Delay Next",{ns:"common"}),"..."]}),o.jsxs(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[We,"s"]})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:We===1,onSelect:()=>{qe(1)},children:o.jsxs(re,{size:"xs",children:["1 ",d("second",{ns:"common"})]})}),o.jsx(Cn,{checked:We===2,onSelect:()=>{qe(2)},children:o.jsxs(re,{size:"xs",children:["2 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===3,onSelect:()=>{qe(3)},children:o.jsxs(re,{size:"xs",children:["3 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===4,onSelect:()=>{qe(4)},children:o.jsxs(re,{size:"xs",children:["4 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===5,onSelect:()=>{qe(5)},children:o.jsxs(re,{size:"xs",children:["5 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===10,onSelect:()=>{qe(10)},children:o.jsxs(re,{size:"xs",children:["10 ",d("seconds",{ns:"common"})]})})]})]}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[d("Reverse Order",{ns:"common"}),"..."]}),o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:ot?d("Yes",{ns:"common"}):d("No",{ns:"common"})})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:!ot,onSelect:()=>{Ve(!1)},children:o.jsx(re,{size:"xs",children:d("No",{ns:"common"})})}),o.jsx(Cn,{checked:ot,onSelect:()=>{Ve(!0)},children:o.jsx(re,{size:"xs",children:d("Yes",{ns:"common"})})})]})]})]})]})]}),o.jsxs(ne,{className:"animate-in fade-in duration-300 ".concat(t||C||!q?"opacity-0":""),children:[o.jsx(mr,{title:d("Reorder pinned",{ns:"common"}),onClick:()=>{J.value=!J.value},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(bz,{size:15})}),o.jsx(mr,{title:Xt?d("Deselect pinned",{ns:"common"}):d("Select pinned",{ns:"common"}),onClick:()=>{const Re=Y.filter(Oe=>le.some(et=>et.id===Oe));O(Xt?Y.filter(Oe=>!Re.includes(Oe)):Y.concat(le.map(Oe=>Oe.id)))},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Xt?o.jsx(x5,{size:15}):o.jsx(iE,{size:17})})}),o.jsx(rB,{onOpen:Re=>{U.value=Re},onCancel:()=>{setTimeout(()=>{U.value=!1,V.value=!1},300)},onConfirm:()=>{ee({})},buttonClassName:"group !text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]})]}),J.value&&o.jsxs(je,{onClick:()=>{J.value=!1},className:"!text-orange-600 dark:!text-orange-300 bg-yellow-400 dark:bg-yellow-800 hover:bg-yellow-400/80 dark:hover:bg-yellow-700/80 px-2 pr-1 mr-0 rounded-sm py-0 h-5 flex items-center justify-center ml-auto",children:[o.jsx(re,{size:"xs",className:"!text-orange-600 dark:!text-orange-300 mr-1",children:d("Done Reorder",{ns:"common"})}),o.jsx(en,{size:15})]})]}),P&&!Fe&&o.jsx(mr,{title:d("Hide Pinned Board",{ns:"common"}),onClick:()=>{f(!1)},className:"hover:underline group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent absolute right-1 top-1.5 px-2 pr-1 rounded-sm",children:o.jsxs(ve,{className:"font-medium text-xs gap-1",children:[o.jsxs("span",{children:[le.length>0?le.length:d(" No",{ns:"common"})," ",d("Pinned",{ns:"common",count:le.length})]}),o.jsx(In,{size:14})]})})]}),o.jsx(jW,{isVertical:!0})]}),!I&&de&&o.jsx(D2,{items:se.map(Re=>Re.tabId),disabled:t,strategy:UJ,children:o.jsx(S5e,{tabs:se,selectedItemIds:Y,setSelectedItemIds:O,pinnedItemIds:le.map(Re=>Re.id),currentTab:pe,setCurrentTab:ce})}),o.jsx(ew,{collapsible:!1,order:2,ref:W,id:"boards",children:Se>0&&o.jsx(D1,{disableWidth:!0,defaultHeight:Se-20,children:({height:Re})=>o.jsxs(or,{style:{height:Re},children:[Pe?o.jsx(ne,{className:"relative",children:o.jsxs($b,{style:{height:gt?Re-14:void 0},direction:"horizontal",children:[o.jsx(TI,{board:Pe,isDark:e,panelHeight:Re,isHistoryDragActive:t,dragOverBoardId:n,currentTabLayout:gt?"full":"auto",order:Pe.orderNumber,isLastBoard:!0,showDetailsItem:m,setShowDetailsItem:b,selectedItemIds:Y,setSelectedItemId:Lt},"".concat(pe,"-expanded-").concat(Pe.id)),o.jsx(ve,{className:"absolute right-0 w-full bottom-[-13px] z-100",children:o.jsx(je,{title:zo.value?d("Collapse View",{ns:"contextMenus"}):d("Expand View",{ns:"contextMenus"}),variant:"ghost",size:"mini",className:"px-1.5 py-1 mr-2 text-secondary-foreground/50 ".concat(el(Pe.color,"200")," dark:hover:bg-").concat(Pe.color,"-900 hover:").concat(el(Pe.color,"200")," cursor-pointer rounded-md flex items-center justify-center"),onClick:()=>{zo.value=!zo.value},children:zo.value?o.jsx(Nae,{size:20}):o.jsx(jae,{size:20})})})]},"expaned-board")}):$t.reduce((Oe,et,Et)=>{const bt=Math.floor(Et/jt);return Oe[bt]||(Oe[bt]=[]),Oe[bt].push(et),Oe},[]).map((Oe,et)=>{const Et="".concat(pe,"-").concat(et),bt=nt(Et);return o.jsx($b,{ref:bt,autoSaveId:"".concat(pe,"-panel-group-").concat(et),className:"mb-3",style:{height:we==="full"?Re-12:void 0},direction:"horizontal",children:Oe.map((_t,Mt)=>o.jsx(TI,{board:_t,isDark:e,panelHeight:Re,isHistoryDragActive:t,dragOverBoardId:n,currentTabLayout:we==="full"?"full":"auto",order:_t.orderNumber,isLastBoard:Mt===Oe.length-1,showDetailsItem:m,setShowDetailsItem:b,selectedItemIds:Y,setSelectedItemId:Lt},"".concat(pe,"-").concat(et,"-").concat(Mt)))},Et)}),de&&!($t.length&&se.length)&&o.jsxs(o.Fragment,{children:[!$t.length&&se.length>0&&o.jsx(ve,{className:"flex items-start justify-center w-full absolute top-4",style:{height:Re},children:o.jsxs(ve,{className:"flex-col items-center justify-center",children:[o.jsxs(Kn,{defaultOpen:!0,modal:!1,children:[o.jsx(Gn,{className:"mr-1.5 rounded-sm",asChild:!0,children:o.jsx(ne,{className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),o.jsxs(Wn,{align:"center",sideOffset:8,children:[o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:d("Dashboard",{ns:"dashboard"})}),o.jsx(kn,{}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{Lb.value=!0},children:[o.jsx(kv,{size:16,className:"mr-2"}),o.jsx("span",{children:d("Add First Board",{ns:"dashboard"})})]})]})]}),o.jsx(re,{className:"text-sm mt-4 !text-slate-500",children:d("Create Board",{ns:"dashboard"})})]})}),o.jsx(ve,{className:"flex items-center justify-center w-full h-full",style:{height:Re},children:o.jsx(re,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:se.length?d("No Boards",{ns:"dashboard"}):d("No Tabs or Boards",{ns:"dashboard"})})})]})]})})})]})}),o.jsx(du,{children:o.jsxs(C$,{dropAnimation:tn,children:[$e&&o.jsx(EW,{board:$e,isDragPreview:!0,isDark:e,currentTabLayout:"auto",selectedItemIds:Y,setSelectedItemId:Lt}),Fe&&o.jsx(SW,{clip:Fe,isDragPreview:!0,isClipNotesHoverCardsEnabled:!1,isDark:e})]})})]});function Ze(Re){return ge(this,null,function*(){var _t,Mt,an,dn,fn,mn,hn,nn,on,Sn,pn;ht(null),pt(null),setTimeout(()=>{Tc.value=null},100);const{active:Oe,over:et}=Re;if(!Oe||!ob(Oe))return;const Et=Oe.id;if((Oe==null?void 0:Oe.id)===C&&setTimeout(()=>ge(this,null,function*(){g(null),yield G({itemIds:[Oe.id],isPinned:!0})}),300),((_t=Oe.data.current)==null?void 0:_t.type)===Wl&&((Mt=et==null?void 0:et.data.current)==null?void 0:Mt.type)===Wl){const rn=et==null?void 0:et.id,ct=se.findIndex(({tabId:xt})=>xt===Et),xe=se.findIndex(({tabId:xt})=>xt===rn),Ye=Wr(se,ct,xe),dt=new Map(Ye.map((xt,It)=>[xt.tabId,It])),mt=se.map(xt=>{const It=dt.get(xt.tabId);return It!==void 0&&(xt.tabOrderNumber=It),xt});ye(mt),yield N({updatedTabs:mt});return}if(((an=et==null?void 0:et.data.current)==null?void 0:an.type)===Wl){const rn=et.id,ct=Z.find(Ye=>Ye.itemId===Et&&Ye.isBoard),xe=Z.find(Ye=>Ye.itemId===Et&&Ye.isClip);if((ct==null?void 0:ct.tabId)===rn||(xe==null?void 0:xe.tabId)===rn||!rn)return;if(ct){const Ye=et.id.toString(),dt=(fn=(dn=Oe.data)==null?void 0:dn.current)==null?void 0:fn.isSubBoard,xt=(dt&&((hn=(mn=Oe.data)==null?void 0:mn.current)!=null&&hn.board.parentId)?fs(Z,pe,(on=(nn=Oe.data)==null?void 0:nn.current)==null?void 0:on.board.parentId):fs(Z,pe)).find(Zt=>Zt.id===Et);if(!xt)return;const It=xt?A7(xt):[],At=Z.filter(Zt=>Zt.tabId===Ye&&Zt.isBoard&&Zt.parentId===null).sort((Zt,vn)=>Zt.orderNumber-vn.orderNumber);if(dt)if(At.length===0)At.push(ct);else{const Zt=At[0].itemId.toString(),vn=Z.filter(He=>He.parentId===Zt&&He.tabId===Ye).sort((He,Ct)=>He.orderNumber-Ct.orderNumber);vn.unshift(ct);const oe=new Map(vn.map((He,Ct)=>[He.itemId,Ct])),fe=new Map(It==null?void 0:It.map(He=>[He,!0])),Xe=[],Me=Z.map(He=>{const Ct=oe.get(He.itemId);return Ct!==void 0?(Xe.push(He.itemId),ae(R({},He),{orderNumber:Ct,tabId:Ye,parentId:Zt})):fe!=null&&fe.has(He.itemId)?(Xe.push(He.itemId),ae(R({},He),{tabId:Ye})):He});be(Me);const _e=Me.filter(He=>Xe.includes(He.itemId)).map(He=>({itemId:He.itemId,parentId:He.parentId,tabId:Ye,collectionId:Ee,orderNumber:He.orderNumber}));T({updatedMoveClips:_e}),ce(Ye.toString());return}At.unshift(ct);const Ht=new Map(At.map((Zt,vn)=>[Zt.itemId,vn])),Bt=new Map(It==null?void 0:It.map(Zt=>[Zt,!0])),tt=Z.map(Zt=>{const vn=Ht.get(Zt.itemId);return vn!==void 0?ae(R({},Zt),{orderNumber:vn,tabId:Ye,parentId:null}):Bt!=null&&Bt.has(Zt.itemId)?ae(R({},Zt),{tabId:Ye}):Zt});be(tt);const Kt=tt.filter(Zt=>(Zt.parentId===null||Zt.parentId===Et||Bt.has(Zt.parentId))&&Zt.tabId===Ye).map(Zt=>({itemId:Zt.itemId,parentId:Zt.parentId,tabId:Zt.tabId,collectionId:Ee,orderNumber:Zt.orderNumber}));T({updatedMoveClips:Kt})}else if(xe){const Ye=et.id.toString(),dt=fs(Z,Ye);let mt=(Sn=dt.find(xt=>xt.name===d("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:Sn.id;if(!mt){const xt=(pn=se.find(Bt=>Bt.tabId===Ye))==null?void 0:pn.tabColor,It={name:d("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:Ye,color:xt,description:d("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:Ee,orderNumber:0},At=yield te({item:It});dt.sort((Bt,tt)=>Bt.orderNumber-tt.orderNumber).unshift(ae(R({},It),{id:At,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const Ht=dt.map((Bt,tt)=>({itemId:Bt.id,parentId:null,tabId:Bt.tabId,collectionId:Ee,orderNumber:tt}));T({updatedMoveClips:Ht}),mt=At}if(mt){const xt=mt.toString(),It=Ye.toString(),At=Z.filter(Kt=>Kt.parentId===xt&&Kt.tabId===It).sort((Kt,Zt)=>Kt.orderNumber-Zt.orderNumber);At.unshift(xe);const Ht=new Map(At.map((Kt,Zt)=>[Kt.itemId,Zt])),Bt=Z.map(Kt=>{const Zt=Ht.get(Kt.itemId);return Zt!==void 0?ae(R({},Kt),{orderNumber:Zt,tabId:It,parentId:xt}):Kt});be(Bt);const tt=Bt.filter(Kt=>Kt.parentId===xt).map(Kt=>({itemId:Kt.itemId,parentId:xt,tabId:It,collectionId:Ee,orderNumber:Kt.orderNumber}));T({updatedMoveClips:tt})}}ce(rn.toString());return}let bt=null;for(let rn=0;rnct.parentId===(bt==null?void 0:bt.parentId)).map(ct=>({itemId:ct.itemId,parentId:ct.parentId,tabId:ct.tabId,collectionId:Ee,orderNumber:ct.orderNumber}));T({updatedMoveClips:rn})}})}}finally{r.f()}}const _5e=v.memo(N5e);function II(t,e,n,r=!0,s=!1){const a=f=>n.filter(m=>m.tabId===f),i=f=>t.filter(m=>{var g;if(!(m.parentId===f&&m.isClip))return!1;const b=m.name.toLowerCase().includes(e.toLowerCase()),C=!r&&((g=m.value)==null?void 0:g.toLowerCase().includes(e.toLowerCase()));return b||C}).map(m=>ae(R({},m),{type:qo,id:m.itemId.toString()})),l=f=>t.filter(m=>m.parentId===f&&m.isClip).map(m=>ae(R({},m),{type:qo,id:m.itemId.toString()})).sort((m,b)=>m.orderNumber-b.orderNumber),c=t.filter(f=>f.isBoard);let d=0;const p=s?c.filter(f=>f.name.toLowerCase().includes(e.toLowerCase())).map(f=>{var b;const m=l(f.itemId.toString());return ae(R({},f),{type:Ys,showDescription:!1,tabName:(b=a(f.tabId)[0])==null?void 0:b.tabName,id:f.itemId.toString(),children:m})}):c.map(f=>{var b;const m=i(f.itemId.toString());return m.length>0?(d=d+m.length,ae(R({},f),{type:Ys,showDescription:!1,tabName:(b=a(f.tabId)[0])==null?void 0:b.tabName,id:f.itemId.toString(),children:m})):null}).filter(f=>f!==null);return{results:p,count:s?p.length:d}}function Av(t,e,n=!1){const r=s=>t.map(({itemId:a,name:i,parentId:l,orderNumber:c,isActive:d,isDisabled:p,isDeleted:f,isClip:m,isFolder:b,isSeparator:C})=>({id:a,name:i,parentId:l,orderNumber:c,isActive:d,isDisabled:p,isDeleted:f,isClip:m,isFolder:b,isSeparator:C,children:[]})).filter(a=>a.parentId===s).filter(a=>a.isActive||n&&!a.isActive).sort((a,i)=>a.orderNumber-i.orderNumber).map(a=>(a.children=r(a.id),a.children.length===0&&!a.isFolder&&delete a.children,a));return r(e||null)}function dj(){return dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e'),!0):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var R5e=function(e,n,r){r===void 0&&(r=!1);var s=n.alt,a=n.meta,i=n.mod,l=n.shift,c=n.ctrl,d=n.keys,p=e.key,f=e.code,m=e.ctrlKey,b=e.metaKey,C=e.shiftKey,g=e.altKey,w=Ed(f),x=p.toLowerCase();if(!r){if(s===!g&&x!=="alt"||l===!C&&x!=="shift")return!1;if(i){if(!b&&!m)return!1}else if(a===!b&&x!=="meta"&&x!=="os"||c===!m&&x!=="ctrl"&&x!=="control")return!1}return d&&d.length===1&&(d.includes(x)||d.includes(w))?!0:d?M5e(d):!d},O5e=v.createContext(void 0),$5e=function(){return v.useContext(O5e)};function MW(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,r){return n&&MW(t[r],e[r])},!0):t===e}var z5e=v.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F5e=function(){return v.useContext(z5e)};function H5e(t){var e=v.useRef(void 0);return MW(e.current,t)||(e.current=t),e.current}var AI=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},B5e=typeof window!="undefined"?v.useLayoutEffect:v.useEffect;function Vs(t,e,n,r){var s=v.useRef(null),a=v.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,l=B7(t)?t.join(i==null?void 0:i.splitKey):t,c=n instanceof Array?n:r instanceof Array?r:void 0,d=v.useCallback(e,c!=null?c:[]),p=v.useRef(d);c?p.current=d:p.current=e;var f=H5e(i),m=F5e(),b=m.enabledScopes,C=$5e();return B5e(function(){if(!((f==null?void 0:f.enabled)===!1||!L5e(b,f==null?void 0:f.scopes))){var g=function(N,_){var P;if(_===void 0&&(_=!1),!(A5e(N)&&!PW(N,f==null?void 0:f.enableOnFormTags))&&!(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(N))){if(s.current!==null&&document.activeElement!==s.current&&!s.current.contains(document.activeElement)){AI(N);return}(P=N.target)!=null&&P.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||t4(l,f==null?void 0:f.splitKey).forEach(function(I){var T,L=n4(I,f==null?void 0:f.combinationKey);if(R5e(N,L,f==null?void 0:f.ignoreModifiers)||(T=L.keys)!=null&&T.includes("*")){if(_&&a.current)return;if(D5e(N,L,f==null?void 0:f.preventDefault),!I5e(N,L,f==null?void 0:f.enabled)){AI(N);return}p.current(N,L),_||(a.current=!0)}})}},w=function(N){N.key!==void 0&&(_W(Ed(N.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&g(N))},x=function(N){N.key!==void 0&&(TW(Ed(N.code)),a.current=!1,f!=null&&f.keyup&&g(N,!0))},S=s.current||(i==null?void 0:i.document)||document;return S.addEventListener("keyup",x),S.addEventListener("keydown",w),C&&t4(l,f==null?void 0:f.splitKey).forEach(function(E){return C.addHotkey(n4(E,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){S.removeEventListener("keyup",x),S.removeEventListener("keydown",w),C&&t4(l,f==null?void 0:f.splitKey).forEach(function(E){return C.removeHotkey(n4(E,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[l,f,b]),s}function U5e({id:t,isSelected:e,deletingMenuItemIds:n,itemParentId:r,isDisabled:s,isImage:a,isClip:i,isSeparator:l,isActive:c,isFolder:d,isOpen:p,setOpenItemId:f,itemOrderNumber:m,hasChildren:b,deselectItemById:C,setSelectedItemIds:g,selectItemById:w}){var x=sn(1);try{const{t:S}=Gt(),{duplicateMenuItem:E}=wge(),{deleteMenuItemById:N}=RB(),{updateMenuItemById:_}=jx(),{updateMovedMenuItems:P}=i7(),I=ua(),{menuItems:T,currentCollectionId:L}=Tt(Ar);return o.jsx(Cx,{children:o.jsxs(H0,{className:"w-[150px]",children:[c?i?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Link To Clip",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):d?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Submenu",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):l?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Separator",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Menu",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Menu is Not Active",{ns:"contextMenus"})}),o.jsx(Qn,{}),o.jsxs(Wt,{onClick:()=>{_({updatedItem:{itemId:t,isActive:!0}})},children:[S("Activate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(M0,{size:15,className:"ml-auto"})})]}),o.jsx(Qn,{})]}),e?o.jsxs(Wt,{onClick:()=>{C==null||C(t)},children:[S("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(uE,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{w==null||w(t)},children:[S("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(qa,{size:15})})]}),o.jsx(Qn,{}),Hs.value!==t&&!i&&o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Hs.value=t,ul.value=!0},children:[S("Edit Label",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:14})})]}),!i&&!d&&Hs.value!==t&&o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Hs.value=t},children:[a?S("Edit Image",{ns:"contextMenus"}):S("Edit Value",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}),i&&o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Ms.value=t,Ji.value=t,I("/history",{replace:!0})},children:[S("Edit Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}),o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Ji.value=t,I("/history",{replace:!0})},children:[S("Locate Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(y5,{size:15})})]})]}),o.jsx(Qn,{}),o.jsxs(Wt,{disabled:!c,onClick:()=>ge(this,null,function*(){g&&g([t]),ho.value=!0}),children:[S("Add New Item",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx($z,{size:15})})]}),!i&&o.jsxs(Wt,{disabled:!c,onClick:()=>ge(this,null,function*(){var $;if(!L)return;const A=yield E({itemId:t,parentId:r!=null?r:null,orderNumber:m+2,collectionId:L}),z=Av(T);z.unshift({name:S("Copy of ",{ns:"common"})+(($=z.find(M=>M.id===t))==null?void 0:$.name),parentId:r!=null?r:null,orderNumber:m+2,id:A});const Y=p6(z,r!=null?r:null,[A],m+2),O=Y==null?void 0:Y.map(({id:M,parentId:W,orderNumber:V})=>({itemId:M,parentId:W,tabId:null,collectionId:L,orderNumber:V}));P({updatedMoveMenuItems:O})}),children:[S("Duplicate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(tE,{size:15})})]}),o.jsx(Qn,{}),s?o.jsxs(Wt,{disabled:!c,onClick:()=>{_({updatedItem:{itemId:t,isDisabled:!1}})},children:[S("Make Enabled",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Iz,{size:15,className:"ml-auto"})})]}):o.jsxs(Wt,{disabled:!c,onClick:()=>{_({updatedItem:{itemId:t,isDisabled:!0}}),p&&(f==null||f(null))},children:[S("Make Disabled",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{size:15,className:"ml-auto"})})]}),o.jsx(Qn,{}),c&&o.jsxs(Wt,{onClick:()=>{_({updatedItem:{itemId:t,isActive:!1}}),p&&(f==null||f(null))},children:[S("Make Inactive",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(fx,{size:15,className:"ml-auto"})})]}),o.jsxs(ne,{className:"group",children:[o.jsxs(Wt,{className:Vu.value===t?"!bg-red-100 dark:!bg-red-900":"",disabled:b,onClick:A=>{var z,Y;Vu.value===t?(N({itemId:t,collectionId:L}),n.value=(Y=(z=n.value)==null?void 0:z.filter(O=>O!==t))!=null?Y:[],C==null||C(t),Vu.value):(A.preventDefault(),Vu.value=t,n.value=n.value?[...n.value,t]:[t],setTimeout(()=>{var O,$;Vu.value=null,n.value=($=(O=n.value)==null?void 0:O.filter(M=>M!==t))!=null?$:[]},3e3))},children:[o.jsx(re,{className:"".concat(b?"!text-gray-500":"!text-red-500"),children:Vu.value!==t?S("Delete",{ns:"common"}):S("Click to Confirm",{ns:"common"})}),!Vu.value&&o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"".concat(b?"!text-gray-500":"!text-red-500")})})]}),b&&o.jsx(ve,{className:"p-0.5",children:o.jsx(re,{className:"!text-gray-400/80 text-[11px] group-hover:!text-amber-500",children:S("Remove Submenus First",{ns:"common"})})})]})]})})}finally{x.f()}}function W5e(){const t=Te(4),{data:e}=ef("get_clipboard_history_pinned");let n;t[0]!==e?(n=e===void 0?[]:e,t[0]=e,t[1]=n):n=t[1];const r=n;r.forEach(a=>{if(a.links)try{a.arrLinks=JSON.parse(a.links)}catch(i){a.arrLinks=[]}a.hasEmoji&&(a.hasEmoji=pz(a.value))});let s;return t[2]!==r?(s={pinnedClipboardHistory:r},t[2]=r,t[3]=s):s=t[3],s}function V5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("update_clipboard_history_by_id",n);let s;return t[2]!==r?(s={updateClipboardHistoryById:r},t[2]=r,t[3]=s):s=t[3],s}function DW(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("update_pinned_clipboard_history_by_ids",n);let s;return t[2]!==r?(s={pinnedClipboardHistoryByIds:r},t[2]=r,t[3]=s):s=t[3],s}function q5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("unpin_all_clipboard_history_items",n);let s;return t[2]!==r?(s={unPinAllClipboardHistory:r},t[2]=r,t[3]=s):s=t[3],s}function K5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("move_pinned_item_up_down",n);let s;return t[2]!==r?(s={movePinnedClipboardHistoryUpDown:r},t[2]=r,t[3]=s):s=t[3],s}function IW(){const t=Te(18),e=Dn();let n,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=["get_clipboard_history"],r=w=>{const{pageParam:x}=w,{limit:S,offset:E}=x!=null?x:{};return Gs("get_clipboard_history",{limit:S===void 0?gC:S,offset:E===void 0?0:E})},t[0]=n,t[1]=r):(n=t[0],r=t[1]);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:n,queryFn:r,initialPageParam:{limit:gC,offset:0},getNextPageParam:(w,x)=>{const S=x==null?void 0:x.reduce((E,N)=>{var _;return E+((_=N==null?void 0:N.length)!=null?_:0)},0);return S?{limit:gC,offset:S}:null}},t[2]=s):s=t[2];const{data:a,isLoading:i,isFetched:l,fetchNextPage:c,isFetchingNextPage:d,error:p}=jY(s),{setClipboardHistory:f}=Tt(_i);let m;t[3]!==a||t[4]!==f?(m=()=>{if(Array.isArray(a==null?void 0:a.pages)){const w=!(a!=null&&a.pages.flat().length);f(a==null?void 0:a.pages.flat(),w)}},t[3]=a,t[4]=f,t[5]=m):m=t[5];let b;t[6]!==a?(b=[a],t[6]=a,t[7]=b):b=t[7],v.useEffect(m,b);let C;t[8]!==e?(C=()=>{e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},t[8]=e,t[9]=C):C=t[9];let g;return t[10]!==a||t[11]!==C||t[12]!==i||t[13]!==l||t[14]!==c||t[15]!==d||t[16]!==p?(g={infiniteClipboardHistory:a,invalidateClipboardHistoryQuery:C,isClipboardInfiniteHistoryLoading:i,isClipboardInfiniteHistoryFetched:l,fetchNextClipboardHistoryPage:c,isClipboardHistoryFetchingNextPage:d,isClipboardInfiniteHistoryError:p},t[10]=a,t[11]=C,t[12]=i,t[13]=l,t[14]=c,t[15]=d,t[16]=p,t[17]=g):g=t[17],g}function G5e(t){const e=Te(23),{query:n,filters:r,codeFilters:s}=t,a=n===void 0?"":n;let i;e[0]!==r?(i=r===void 0?[]:r,e[0]=r,e[1]=i):i=e[1];const l=i;let c;e[2]!==s?(c=s===void 0?[]:s,e[2]=s,e[3]=c):c=e[3];const d=c,p=Dn();let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={enabled:!1,refetchOnWindowFocus:!1},e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==l||e[7]!==d?(m={query:a,filters:l,codeFilters:d,useQueryOptions:f},e[5]=a,e[6]=l,e[7]=d,e[8]=m):m=e[8];const{data:b,refetch:C,isLoading:g,isFetched:w,error:x}=ef("find_clipboard_histories_by_value_or_filters",m),{setClipboardHistory:S}=Tt(_i);let E;e[9]!==b||e[10]!==S?(E=()=>{Array.isArray(b)&&S(b,!0,!0)},e[9]=b,e[10]=S,e[11]=E):E=e[11];let N;e[12]!==b?(N=[b],e[12]=b,e[13]=N):N=e[13],v.useEffect(E,N);let _;e[14]!==p?(_=()=>{p.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},e[14]=p,e[15]=_):_=e[15];let P;return e[16]!==b||e[17]!==_||e[18]!==C||e[19]!==g||e[20]!==w||e[21]!==x?(P={foundClipboardHistory:b,invalidateFindClipboardHistoryQuery:_,refetchFindClipboardHistory:C,isFoundClipboardHistoryLoading:g,isFlundClipboardHistoryFetched:w,isFoundClipboardHistoryError:x},e[16]=b,e[17]=_,e[18]=C,e[19]=g,e[20]=w,e[21]=x,e[22]=P):P=e[22],P}function U7(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("delete clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("delete_clipboard_history_by_ids",n);let s;return t[2]!==r?(s={deleteClipboardHistoryByIds:r},t[2]=r,t[3]=s):s=t[3],s}function Y5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("clear clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("clear_clipboard_history_older_than",n);let s;return t[2]!==r?(s={clearClipboardHistoryOlderThan:r},t[2]=r,t[3]=s):s=t[3],s}const{FOLDER:Z5e,ITEM:Mp,SEPARATOR:X5e,DISABLED:Q5e}=ii;function Pw({isCreatingMenuItem:t,currentMenuItemId:e,parentId:n,orderNumber:r,showEditMenuItemId:s,isMainCreateMenu:a,isDark:i,isFistItemsCreateMenu:l}){var c=sn(1);try{let d=function(){sh(),t.value=!1,ud.value=null,Tf.value=null};const{t:p}=Gt(),[f,m]=v.useState(""),[b,C]=v.useState(""),{clipboardHistory:g}=Tt(_i),{fetchNextClipboardHistoryPage:w}=IW(),{collectionWithClips:x,fetchCollectionWithClips:S}=LB(),E=(x==null?void 0:x.clips)||[],N=jo(f,300),_=jo(b,300),P=v.useMemo(()=>N.length<1?E.filter(T=>T.isClip).sort((T,L)=>T.updatedAt&&L.updatedAt?L.updatedAt-T.updatedAt:0).slice(0,50).map(({name:T,itemId:L})=>({name:T.length>50?"".concat(T.substring(0,50),"..."):T,id:L})):E.filter(T=>T.isClip&&T.name.toLowerCase().includes(N.toLowerCase())).sort((T,L)=>T.updatedAt&&L.updatedAt?L.updatedAt-T.updatedAt:0).slice(0,50).map(({name:T,itemId:L})=>({name:T.length>50?"".concat(T.substring(0,50),"..."):T,id:L})),[E,N]),I=v.useMemo(()=>_.length<1?g.sort((T,L)=>L.updatedAt-T.updatedAt).slice(0,50).map(({value:T,historyId:L,isImage:A,imageWidth:z,imageHeight:Y,detectedLanguage:O,isLink:$})=>({isImage:A,isLink:$,detectedLanguage:O,name:T!=null&&T.length&&(T==null?void 0:T.length)>80?"".concat(T==null?void 0:T.substring(0,80),"..."):A?"".concat(p("Image",{ns:"common"})," (").concat(z,"x").concat(Y,")"):T,id:L})):g.filter(T=>{var L;return T!=null&&T.value?(L=T==null?void 0:T.value)==null?void 0:L.toLowerCase().includes(_.toLowerCase()):"Image".toLocaleLowerCase().includes(_.toLowerCase())}).sort((T,L)=>L.updatedAt-T.updatedAt).slice(0,50).map(({value:T,historyId:L,isImage:A,imageWidth:z,imageHeight:Y,detectedLanguage:O,isLink:$})=>({isImage:A,isLink:$,detectedLanguage:O,name:T!=null&&T.length&&(T==null?void 0:T.length)>80?"".concat(T==null?void 0:T.substring(0,80),"..."):A?"".concat(p("Image",{ns:"common"})," (").concat(z,"x").concat(Y,")"):T,value:T,id:L})),[g,_]);return v.useEffect(()=>{g.length||w(),S()},[]),o.jsxs(Kn,{modal:!1,defaultOpen:l,children:[o.jsx(Gn,{asChild:!0,disabled:!!ud.value||!!Tf.value||!!_f.value,children:a?o.jsx(o.Fragment,{children:t.value?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{d()},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Adding",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsx(o.Fragment,{children:s.value?o.jsxs(mr,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{d()},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsx(mr,{className:"bg-slate-200 dark:bg-slate-700 dark:hover:bg-slate-700/80 p-1.5 text-slate-500 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 right-1",id:"add-menu-item__tour",onClick:()=>{t.value=!0},children:o.jsx(st,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:p("Add item",{ns:"menus"}),children:o.jsx(Vr,{size:20,className:"transition-colors group-hover:text-slate-400"})})})})}):o.jsx(ne,{id:"add-menu-item__tour",className:"flex group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300",onClick:()=>{if(!ud.value&&!Tf.value&&!_f.value)return;if(_f.value){lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,text:_f.value},_f.value="";return}const T=g.find(({historyId:A})=>A===ud.value),L=E.find(({itemId:A})=>A===Tf.value);ud.value=null,Tf.value=null,T?lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipboardHistoryItem:T,historyId:T.historyId.toString()}:L&&(lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipId:L.itemId})},children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),o.jsxs(Wn,{align:"center",sideOffset:l?12:0,children:[o.jsx(rt,{disabled:!0,className:"py-0.5 pb-1 flex justify-center border-b border-gray-200 dark:border-gray-600 text-slate-500 dark:text-slate-400",children:l?p("Add First Item",{ns:"menus"}):p("Add Item",{ns:"menus"})}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp}},children:[o.jsx(x5,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Menu Item",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Z5e}},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Submenu",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:X5e}},children:[o.jsx(Dz,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Separator",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Q5e}},children:[o.jsx(s0,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Disabled Item",{ns:"menus"})})]}),(I.length>0||P.length>0)&&o.jsx(kn,{}),I.length>0&&o.jsxs(sa,{children:[o.jsxs(qs,{children:[o.jsx(gie,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Recent History",{ns:"common"})})]}),o.jsxs(Ks,{className:"w-60",children:[o.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:T=>T.stopPropagation(),children:o.jsx(Wd,{placeholder:"".concat(p("Find History",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:T=>{C(T.target.value)},value:b,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:I.map(({name:T,id:L,isImage:A,detectedLanguage:z,isLink:Y},O)=>o.jsx(rt,{onKeyDown:$=>$.stopPropagation(),className:"".concat(O>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipboardHistoryItem:g.find(({historyId:$})=>$===L),historyId:L}},children:z?o.jsxs(ne,{className:"text-sm overflow-hidden text-ellipsis",children:[o.jsx(Ca,{isDark:i,searchTerm:"",isLargeView:!1,isShowMore:!1,isWrapped:!0,value:T!=null?T:"",language:z}),o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:z})]}):o.jsxs(ne,{className:"relative overflow-hidden text-ellipsis",children:[o.jsx("code",{className:"text-sm line-clamp-2",children:T}),A&&o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:p("Type:::Image",{ns:"common"})}),Y&&o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:p("Type:::Link",{ns:"common"})})]})},L))})]})]}),P.length>0&&o.jsxs(sa,{children:[o.jsxs(qs,{children:[o.jsx(Fae,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Link to Clip",{ns:"menus"})})]}),o.jsxs(Ks,{className:"w-52",children:[o.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:T=>T.stopPropagation(),children:o.jsx(Wd,{placeholder:"".concat(p("Find Clip",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:T=>{m(T.target.value)},value:f,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:P.map(({id:T,name:L},A)=>o.jsx(rt,{onKeyDown:z=>z.stopPropagation(),className:"".concat(A>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipId:T}},children:o.jsx("span",{children:L})},T!=null?T:A))})]})]})]})]})}finally{c.f()}}const Qg={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isLink:!1,isPath:!1,detectedLanguage:""},J5e=t=>{const e=Te(97),{itemId:n,isCode:r,isImage:s,isText:a,isLink:i,isPath:l,detectedLanguage:c,children:d}=t,{t:p}=Gt(),{CONST:f}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:m}=f,{updateMenuItemById:b}=jx();let C;e[0]!==d?(C=o.jsx(Gn,{asChild:!0,children:d}),e[0]=d,e[1]=C):C=e[1];let g;e[2]!==p?(g=p("Menu Type",{ns:"menus"}),e[2]=p,e[3]=g):g=e[3];let w;e[4]!==g?(w=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:g})}),e[4]=g,e[5]=w):w=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(kn,{}),e[6]=x):x=e[6];const S=!!a;let E;e[7]!==b||e[8]!==n?(E=()=>{b({updatedItem:ae(R({},Qg),{isText:!0,itemId:n})})},e[7]=b,e[8]=n,e[9]=E):E=e[9];const N="".concat(a?"font-semibold":"");let _;e[10]!==p?(_=p("TypeMenu:::Plain Text",{ns:"common"}),e[10]=p,e[11]=_):_=e[11];let P;e[12]!==N||e[13]!==_?(P=o.jsx(re,{className:N,children:_}),e[12]=N,e[13]=_,e[14]=P):P=e[14];let I;e[15]!==S||e[16]!==E||e[17]!==P?(I=o.jsx(Cn,{checked:S,onClick:E,children:P}),e[15]=S,e[16]=E,e[17]=P,e[18]=I):I=e[18];const T=!!i;let L;e[19]!==b||e[20]!==n?(L=()=>{b({updatedItem:ae(R({},Qg),{isLink:!0,itemId:n})})},e[19]=b,e[20]=n,e[21]=L):L=e[21];const A="".concat(i?"font-semibold":"");let z;e[22]!==p?(z=p("TypeMenu:::Link or Email",{ns:"common"}),e[22]=p,e[23]=z):z=e[23];let Y;e[24]!==A||e[25]!==z?(Y=o.jsx(re,{className:A,children:z}),e[24]=A,e[25]=z,e[26]=Y):Y=e[26];let O;e[27]!==T||e[28]!==L||e[29]!==Y?(O=o.jsx(Cn,{checked:T,onClick:L,children:Y}),e[27]=T,e[28]=L,e[29]=Y,e[30]=O):O=e[30];const $=!!s;let M;e[31]!==b||e[32]!==n?(M=()=>{b({updatedItem:ae(R({},Qg),{isImage:!0,itemId:n})})},e[31]=b,e[32]=n,e[33]=M):M=e[33];const W="".concat(s?"font-semibold":"");let V;e[34]!==p?(V=p("TypeMenu:::Image",{ns:"common"}),e[34]=p,e[35]=V):V=e[35];let U;e[36]!==W||e[37]!==V?(U=o.jsx(re,{className:W,children:V}),e[36]=W,e[37]=V,e[38]=U):U=e[38];let J;e[39]!==$||e[40]!==M||e[41]!==U?(J=o.jsx(Cn,{checked:$,onClick:M,children:U}),e[39]=$,e[40]=M,e[41]=U,e[42]=J):J=e[42];const H=!!l;let F;e[43]!==b||e[44]!==n?(F=()=>{b({updatedItem:ae(R({},Qg),{isPath:!0,itemId:n})})},e[43]=b,e[44]=n,e[45]=F):F=e[45];const q="".concat(l?"font-semibold":"");let X;e[46]!==p?(X=p("TypeMenu:::File, Path or App",{ns:"common"}),e[46]=p,e[47]=X):X=e[47];let te;e[48]!==q||e[49]!==X?(te=o.jsx(re,{className:q,children:X}),e[48]=q,e[49]=X,e[50]=te):te=e[50];let ee;e[51]!==H||e[52]!==F||e[53]!==te?(ee=o.jsx(Cn,{checked:H,onClick:F,children:te}),e[51]=H,e[52]=F,e[53]=te,e[54]=ee):ee=e[54];let G;e[55]!==r?(G=r?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[55]=r,e[56]=G):G=e[56];const Z="".concat(r?"!font-semibold":"");let le;e[57]!==p?(le=p("TypeMenu:::Code Snippet",{ns:"common"}),e[57]=p,e[58]=le):le=e[58];let se;e[59]!==Z||e[60]!==le?(se=o.jsxs(re,{className:Z,children:[le," ..."]}),e[59]=Z,e[60]=le,e[61]=se):se=e[61];let de;e[62]!==G||e[63]!==se?(de=o.jsxs(qs,{children:[G,se]}),e[62]=G,e[63]=se,e[64]=de):de=e[64];let ce;e[65]!==c||e[66]!==p?(ce=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:c?o.jsx(re,{children:LI(c)}):o.jsx(re,{children:p("Select Language",{ns:"common"})})}),e[65]=c,e[66]=p,e[67]=ce):ce=e[67];let ye;e[68]===Symbol.for("react.memo_cache_sentinel")?(ye=o.jsx(kn,{}),e[68]=ye):ye=e[68];let pe;e[69]===Symbol.for("react.memo_cache_sentinel")?(pe={height:"auto",maxHeight:"290px"},e[69]=pe):pe=e[69];let me;if(e[70]!==c||e[71]!==b||e[72]!==n||e[73]!==m){let Ve;e[75]!==c||e[76]!==b||e[77]!==n?(Ve=Ge=>o.jsx(Cn,{checked:c===Ge,className:"".concat(c===Ge?"font-semibold ":""),onClick:()=>{b({updatedItem:ae(R({},Qg),{isCode:!0,detectedLanguage:Ge,itemId:n})})},children:LI(Ge)},Ge),e[75]=c,e[76]=b,e[77]=n,e[78]=Ve):Ve=e[78],me=m.map(Ve),e[70]=c,e[71]=b,e[72]=n,e[73]=m,e[74]=me}else me=e[74];let be;e[79]!==me?(be=o.jsx(or,{className:"code-filter",style:pe,autoHide:!1,children:me}),e[79]=me,e[80]=be):be=e[80];let Ee;e[81]!==ce||e[82]!==be?(Ee=o.jsxs(Ks,{className:"w-40",children:[ce,ye,be]}),e[81]=ce,e[82]=be,e[83]=Ee):Ee=e[83];let We;e[84]!==de||e[85]!==Ee?(We=o.jsxs(sa,{children:[de,Ee]}),e[84]=de,e[85]=Ee,e[86]=We):We=e[86];let qe;e[87]!==w||e[88]!==I||e[89]!==O||e[90]!==J||e[91]!==ee||e[92]!==We?(qe=o.jsxs(Wn,{className:"w-48",sideOffset:12,align:"center",children:[w,x,I,O,J,ee,We]}),e[87]=w,e[88]=I,e[89]=O,e[90]=J,e[91]=ee,e[92]=We,e[93]=qe):qe=e[93];let ot;return e[94]!==C||e[95]!==qe?(ot=o.jsxs(Kn,{children:[C,qe]}),e[94]=C,e[95]=qe,e[96]=ot):ot=e[96],ot};function LI(t){return t.charAt(0).toUpperCase()+t.slice(1)}function eke({itemId:t,deletingMenuItemIds:e,onComplete:n}){var r=sn(1);try{const{t:s}=Gt(),a=it(!1),i=()=>{a.value=!1,e.value=null},{currentCollectionId:l}=Tt(Ar),{deleteMenuItemById:c}=RB();return o.jsxs(Sa,{defaultOpen:!1,open:a.value,children:[o.jsx(ja,{asChild:!0,children:o.jsxs(je,{variant:"ghost",title:s("Delete Clip",{ns:"dashboard"}),onClick:()=>{a.value=!0,e.value=[t]},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[o.jsx(kr,{size:16}),o.jsx(re,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:s("Delete",{ns:"common"})})]})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{i()},onPointerDownOutside:()=>{i()},children:a.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block",children:s("Are you sure you want to delete?",{ns:"common"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{i()},children:s("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200 whitespace-nowrap",onClick:()=>ge(this,null,function*(){yield c({itemId:t,collectionId:l}),n()}),children:s("Delete Menu",{ns:"menus"})})]})]})})]})}finally{r.f()}}function tke({itemId:t,value:e,isCode:n,detectedLanguage:r,isText:s,isClip:a,isMasked:i,isVideo:l,isImage:c,isDelete:d,hasEmoji:p,isPath:f,imageDataUrl:m,isDark:b,deletingMenuItemIds:C,isLink:g,onCancel:w}){var x=sn(1);try{const{t:S}=Gt(),E=it(""),N=it(!1),_=it(Date.now()),P=it(!1),I=it(void 0),T=it(void 0),L=it(void 0),A=it(void 0),{updateMenuItemById:z}=jx(),Y=v.useRef(null),O=jo(E.value,300),{metadataLinkByItemId:$,invalidateLinkMetadataByItemId:M}=Sx(g,t),W=($==null?void 0:$.linkTitle)&&($==null?void 0:$.linkDomain);v.useEffect(()=>{E.value=e!=null?e:""},[e]),v.useEffect(()=>{if(g){const F=zr().match(E.value);!F||F.length>1?I.value=!0:I.value=!1}},[g]);const V=v.useCallback(H=>ge(this,null,function*(){const q=e===E.value?e:H;f&&q.length>5&&On("check_path",{path:q}).then(()=>{T.value=!1}).catch(()=>{T.value=!0})}),[f]);v.useEffect(()=>{f&&O.length>5&&V(O)},[f,O]),v.useEffect(()=>{(I.value||T.value||A.value||L.value)&&P.value&&(N.value=!0)},[I.value,T.value,L.value,A.value,P.value]);const U=(H=!1)=>ge(this,null,function*(){if(ul.value){dd.value=!0;return}let F=null;if(dd.value=!1,N.value=!1,P.value=!0,I.value=void 0,T.value=void 0,H)F=f?"Error":null;else{if(g){const X=zr().match(E.value);if(!X||X.length>1){I.value=!0;return}}if(f)try{F=yield On("path_type_check",{path:E.value})}catch(q){F="Error",T.value=!0;return}}yield z({updatedItem:ae(R({value:E.value},F&&f?{pathType:F}:{}),{itemId:t})}),setTimeout(()=>{P.value=!1,w()},200)}),J=v.useMemo(()=>n?S("TypeMenu:::Code Snippet",{ns:"common"}):c?S("TypeMenu:::Image",{ns:"common"}):g?S("TypeMenu:::Link or Email",{ns:"common"}):f?S("TypeMenu:::Link or File, Path or App",{ns:"common"}):S("TypeMenu:::Plain Text",{ns:"common"}),[n,c,g,f]);return o.jsx(Vh,{className:Pn("px-2 pr-1.5 pb-1.5 m-0.5 mt-0 pt-1 mx-1 text-left flex flex-row rounded-md select-auto",d&&"bg-red-50 dark:bg-red-900"),children:o.jsxs(ne,{className:"w-full mt-0",children:[a?o.jsx(ne,{className:"mt-2",children:o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:S("Clip value can't edit",{ns:"menus"})})})}):o.jsx(o.Fragment,{children:c?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[o.jsx("img",{src:m||uh,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400"}),o.jsx(ne,{className:"absolute",children:m?o.jsx(iW,{id:t,isMenu:!0}):o.jsx(sW,{id:t})})]}):f?o.jsxs(ve,{className:"relative text-normal",children:[o.jsx(wn,{defaultValue:E.value,placeholder:S("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(T.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(T.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-4",children:T.value?o.jsx(st,{text:S("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):T.value===!1&&o.jsx(st,{text:S("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:H=>{E.value=H.target.value}},_.value),o.jsx(aW,{onCallBack:H=>{_.value=Date.now(),E.value=H}})]}):g?o.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[o.jsx(wn,{defaultValue:E.value,placeholder:S("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(I.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(I.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:I.value?o.jsx(st,{text:S("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):I.value===!1&&o.jsx(st,{text:S("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:H=>{if(I.value&&(I.value=void 0),H.target.value.length>5){const q=zr().match(H.target.value);!q||q.length>1?I.value=!0:I.value=!1}E.value=H.target.value}}),W&&o.jsx(ne,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(E.value)!==($==null?void 0:$.linkUrl),title:$==null?void 0:$.linkTitle,description:$==null?void 0:$.linkDescription,favicon:$==null?void 0:$.linkFavicon,link:$==null?void 0:$.linkUrl,image:$==null?void 0:$.linkImage,imageWidth:12,domain:$==null?void 0:$.linkDomain})}),o.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[qc(E.value)||I.value||E.value.length<3?!qc(E.value)&&o.jsx(je,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:W?o.jsxs(re,{className:"!text-grey-500",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),S("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-grey-500",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),S("Add Link Card",{ns:"dashboard"})]})}):o.jsx(je,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("fetch_link_metadata",{url:Ir(E.value),itemId:t}),M()}),children:W?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),S("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),S("Add Link Card",{ns:"dashboard"})]})}),W&&o.jsx(je,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("delete_link_metadata",{itemId:t}),M()}),children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[S("Remove",{ns:"common"}),o.jsx(bv,{size:14,className:"ml-1"})]})})]})]}):n?o.jsx(rj,{value:E.value,height:"200px",isDark:b,options:{mode:r!=null?r:"javascript"},onChange:H=>{E.value=H.getValue()}},"code-editor"):o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[o.jsx(st,{isCompact:!0,text:S("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:o.jsx(Sz,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("copy")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Masked Text Formatting",{ns:"common"}),children:o.jsx(pk,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("mask")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Blank Text Formatting",{ns:"common"}),children:o.jsx(ZU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("blank")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:o.jsx(XU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("hl")}})}),o.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:o.jsx(st,{isCompact:!0,text:S("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:o.jsx(Az,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),o.jsx(Co,{ref:Y,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"Enter paste value",rows:2,autoFocus:!ul.value,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:6,value:E.value,onKeyDown:H=>{H.stopPropagation()},onChange:H=>{E.value=H.target.value}})]})}),o.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[o.jsxs(ve,{className:"items-start mt-2",children:[o.jsx(J5e,{isCode:n,isLink:g,isPath:f,isText:s,isImage:c,itemId:t,detectedLanguage:r,children:o.jsx(ne,{children:o.jsx(st,{text:J,isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-800/80 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:n?o.jsxs(o.Fragment,{children:[o.jsx(nE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Code",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):c?o.jsxs(o.Fragment,{children:[o.jsx(X2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Image",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):f?o.jsxs(o.Fragment,{children:[o.jsx(aE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Path",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):g?o.jsxs(o.Fragment,{children:[o.jsx(P0,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Link",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):o.jsxs(o.Fragment,{children:[o.jsx(Z2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Text",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]})})})})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(st,{text:S("Menu Options",{ns:"menus"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500 dark:group-hover:!text-blue-400",children:o.jsx(zh,{size:16})})})})}),o.jsxs(Wn,{className:"",sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:S("Menu Options",{ns:"menus"})})}),o.jsx(kn,{}),o.jsxs(rt,{className:i?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{isMasked:!i,itemId:t}})},children:[S("Type:::Secret",{ns:"common"}),i&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:l?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{isVideo:!l,itemId:t}})},children:[S("Type:::Video",{ns:"common"}),l&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:p?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{hasEmoji:!p,itemId:t}})},children:[S("Type:::Emoji",{ns:"common"}),p&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsx(eke,{itemId:t,onComplete:w,deletingMenuItemIds:C})]})]})]}),o.jsxs(ve,{className:"items-end ml-auto mt-1",children:[o.jsx(st,{text:S("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{w()},children:o.jsx(In,{size:18})})})}),o.jsxs(Sa,{defaultOpen:!1,open:N.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{U()},children:[o.jsx(en,{size:18,className:"mr-1"}),S("Save",{ns:"common"})]})})}),o.jsx(ia,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{N.value=!1,P.value=!1},onPointerDownOutside:()=>{N.value=!1,P.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:o.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:I.value?"Please verify your link for any errors, or confirm to save as is.":T.value?"Please verify your path for any errors, or confirm to save as is.":L.value?"Please verify your command for any errors, or confirm to save as is.":A.value?"Please verify your command output template for any errors, or confirm to save as is.":"Are you sure you want to save this?"}),o.jsx(Ln,{h:3}),o.jsxs(ve,{className:"mb-1",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{N.value=!1,P.value=!1},children:S("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{U(!0)},children:S("Save It!",{ns:"common"})})]})]})})]})]})]})]})})}finally{x.f()}}function nke({isClip:t,itemId:e,isOpen:n,label:r}){var s=sn(1);try{const{t:a}=Gt(),i=it(!1),l=it(""),{updateMenuItemById:c}=jx(),d=it(ul.value);return v.useEffect(()=>{i.value=!1,l.value=r!=null?r:"",ul.value=d.value,t&&(d.value=!1)},[d.value]),o.jsx(ve,{className:"justify-start w-full",children:d.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:i.value||dd.value,asChild:!0,text:dd.value?a("Unsaved label",{ns:"common"}):l.value.length<=X8?a("Too short",{ns:"common"}):a("Too long",{ns:"common"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:ul.value,className:"bg-white rounded-md text-sm font-semibold w-full",placeholder:a("Enter menu label",{ns:"menus"}),onKeyDown:p=>ge(this,null,function*(){p.stopPropagation(),p.key==="Escape"?d.value=!1:p.key==="Enter"&&(!l.value.length||l.value.length>M1)?i.value=!0:p.key==="Enter"&&(yield c({updatedItem:{name:l.value,itemId:e}}),setTimeout(()=>{d.value=!1,n||sh()},200))}),defaultValue:r,onFocus:p=>{r!=null&&r.startsWith("New ")&&p.target.select()},onChange:p=>{i.value&&p.target.value.length<=M1&&i.value&&p.target.value.length>0&&(i.value=!1),l.value=p.target.value}})}),o.jsxs(ve,{className:"ml-1",children:[o.jsx(st,{text:a("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:dd.value,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){if(dd.value&&(dd.value=!1),!l.value.length||l.value.length>M1){i.value=!0;return}i.value||(yield c({updatedItem:{name:l.value,itemId:e}}),setTimeout(()=>{d.value=!1,n||sh()},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{d.value=!1,n||sh()},children:o.jsx(In,{size:18})})})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(re,{className:"text-ellipsis !block overflow-hidden whitespace-nowrap ".concat(t?"":"border-dashed border-b border-slate-400 hover:border-gray-400"),onClick:()=>{d.value=!0},color:"black",children:r}),t?o.jsx(ne,{className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:a("Menu is a link to Clip. You can't edit the label directly",{ns:"menus"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(px,{size:14})})}):o.jsx(ne,{onClick:()=>{d.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:a("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(Ud,{size:14})})})]})})}finally{s.f()}}function AW({triggerProps:t,contentProps:e,isSelected:n,hasMultipleSelectedItems:r,isCreatingMenuItem:s,isFirstItem:a,isLastItem:i,isForm:l,isWebRequest:c,isWebScraping:d,isCommand:p,isSeparator:f,indent:m=0,item:b,hasChildren:C,isOpen:g,isClip:w,showEditMenuItemId:x,onFolderClose:S,onFolderOpen:E,showMultiSelectItems:N,deletingMenuItemIds:_,isClosedFolder:P,setSelectedItemIds:I,deselectItemById:T,selectItemById:L,setOpenItemId:A,globalSearchTerm:z,isDark:Y,closeGlobalSearch:O,id:$,label:M,children:W}){var V=sn(1);try{const{t:U}=Gt(),{isFolder:J,isDisabled:H,isActive:F}=b,q=v.useMemo(()=>{var Ie,Ke;return(Ke=(Ie=_.value)==null?void 0:Ie.includes($))!=null?Ke:!1},[_.value,$]),X=it(!1),te=s.value&&(a||n&&i),ee=s.value&&(i||n),[G,Z,le,se]=Uh({}),[de,ce,ye]=Wh({}),pe=v.useRef(null),me=v.useRef(null),be=b.createdAt&&b.createdAt>Math.floor(Date.now())-60*1e3,Ee=(Iy.value===$||X.value)&&!N.value,We=!H&&F&&!J&&!f,qe=x.value===$,ot=G===$,Ve=de===$,Ge=se===$,ft=de===$?ce:void 0;return o.jsxs(o.Fragment,{children:[te&&o.jsxs(ve,{className:Pn("flex flex-col justify-center items-center my-1.5 mb-0 animate-in fade-in duration-300 ease-in-out transition-opacity",m>0&&"ml-[".concat(m*30,"px]")),children:[o.jsx(Pw,{isCreatingMenuItem:s,showEditMenuItemId:x,isDark:Y,currentMenuItemId:$,parentId:null,orderNumber:i?b.orderNumber+1:0}),o.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"})]}),o.jsxs(z0,{onOpenChange:Ie=>{X.value=Ie},children:[o.jsx(F0,{ref:me,disabled:!Ee&&!n||!!z,children:o.jsxs(ne,{className:"relative menu-item_tour",children:[(ot||Ve)&&!ft?o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(a?"top-[-6px]":"top-[-10px]"," ").concat(m>0?"ml-[".concat(m*10,"px]"):""),children:l?o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-8px] text-[10px] uppercase font-semibold border-0",children:[U("Running",{ns:"common"}),"..."]}):o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[o.jsx(en,{size:14,className:"mr-1"}),ot?U("Copied",{ns:"common"}):Ve?U("Pasted",{ns:"common"}):""]})}):ft&&ce>0&&o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(a?"top-[-6px]":"top-[-10px]"," ").concat(m>0?"ml-[".concat(m*10,"px]"):""),children:l?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:U("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})}):o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:U("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})})}),o.jsxs(ne,{onMouseEnter:()=>{Iy.value=$!=null?$:null},onMouseLeave:()=>{Iy.value=null},onClick:Ie=>{if(!N.value){if(Ie.stopPropagation(),Iy.value=$!=null?$:null,Ie.shiftKey){if(f)return;if(J){P?E($):S($);return}x.value||A==null||A(g?null:$);return}if(Ie.metaKey||Ie.ctrlKey){n?T==null||T($):L==null||L($);return}I==null||I([$])}},className:Pn("rounded-lg border-2 bg-card text-card-foreground shadow-sm flex flex-col","duration-200 ease-in-out transition-none",m>0&&"ml-[".concat(m*30,"px]"),!ee&&!te?"my-1.5":"",n&&!a&&!i?"mt-1.5":"",a&&te&&!n?"mb-1.5":"",i&&ee&&!n?"mt-1.5":"",n?"border-slate-400/70 dark:border-slate-600":"dark:border-slate-700/80",q&&"!border-red-400 dark:!border-red-800",Vi.value&&n&&!C&&"!border-red-400 dark:!border-red-800",g?"max-w-[340px] min-w-[270px]":"w-[270px]",qe&&"max-w-[340px] min-w-[340px]",(ot||Ve)&&"!border-green-600 dark:!border-green-700","transition-transform",cd.value===$&&"pulse-clip"),children:[o.jsx(mB,{className:"flex",children:o.jsx(e7,ae(R({onDoubleClickCapture:Ie=>{if(qe||Ie.shiftKey||!We||X.value){Ie.preventDefault();return}if(Ie.altKey||Ie.metaKey){if(l){ye($,void 0,!0);return}ye($)}else Z($)}},t),{asChild:!0,className:Pn("group bg-white text-slate-600 dark:text-slate-400 dark:bg-slate-900 flex w-full select-none items-center justify-between rounded-md pl-2 pr-1 py-[6px] text-left text-sm font-medium cursor-pointer","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75 items-center justify-between",(n||g)&&"bg-slate-100/90 dark:bg-slate-950/80 dark:text-slate-300",Ee&&!(n||g)&&"!bg-slate-50/60 dark:!bg-slate-950/60",r&&n&&"bg-amber-50 dark:bg-amber-950/80",q&&"!bg-red-50 dark:!bg-red-950",!F&&"not-active-background bg-slate-100 text-slate-400 line-through dark:bg-slate-900 dark:text-slate-600",Vi.value&&n&&!C&&"!bg-red-50 dark:!bg-red-950/80",(ot||Ve)&&"!bg-green-50 dark:!bg-green-900",t==null?void 0:t.className),children:o.jsxs(ve,{className:"relative",children:[o.jsxs(ve,{className:Pn("mx-1 mr-3 whitespace-nowrap overflow-hidden text-[15px] w-full",N.value&&"ml-0",n||be?"font-semibold":"font-normal",H?"text-gray-500/60":""),children:[N.value&&o.jsx(ne,{className:"flex flex-row items-center pr-2.5 z-100",children:o.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{n?T==null||T($):L==null||L($)},checked:n},$)}),J&&o.jsx(ve,{className:"mr-1.5",children:P?o.jsx(r0,{size:17}):o.jsx(_z,{size:17})}),f?o.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-50 w-full"}):o.jsx(o.Fragment,{children:qe?o.jsx(nke,{label:M,itemId:$,isOpen:g,isClip:w}):o.jsxs(ne,{className:"whitespace-nowrap overflow-hidden text-ellipsis w-full",children:[z?Kl(M,z):M,w&&o.jsx(st,{text:U("Menu is a link to a clip",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(px,{size:13,className:"ml-1.5 inline"})})]})})]}),(Ee||n||g||qe)&&!N.value?o.jsxs(ve,{className:"h-[24px]",children:[f?o.jsx(o.Fragment,{children:o.jsx(ne,{className:"h-[23px]"})}):o.jsx(ve,{className:"gap-1 animate-in fade-in duration-100",children:J?!qe&&o.jsxs(mr,{onClick:()=>{P?E($):S($)},className:Pn("relative w-[24px] h-[24px] mr-1 group-hover:opacity-100 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center",g?"opacity-100":"opacity-20"),children:[o.jsx(T0,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",P?"rotate-0 opacity-1":"rotate-0 opacity-0")}),o.jsx(Bn,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",P?"rotate-[-90deg] opacity-0":"rotate-0 opacity-1")})]}):!qe&&o.jsxs(o.Fragment,{children:[We&&o.jsx(mr,{className:"hover:bg-transparent hover:text-green-600 text-slate-400",onClick:()=>{Tn.value?l?ye($,void 0,!0):ye($):Z($)},children:l?o.jsx(st,{text:U("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Ge||Ve&&!ft?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):c||d||p?o.jsx(st,{text:Tn.value?U("Run and Paste Response",{ns:"common"}):U("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):Ge?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):o.jsx(st,{text:Tn.value?U("Copy and Paste",{ns:"common"}):U("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):o.jsx(ba,{size:16})})}),H?o.jsx(st,{text:U("Disabled Menu",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(s0,{size:16,className:"opacity-50 mr-1.5"})}):o.jsx(o.Fragment,{children:!x.value&&!z&&o.jsxs(mr,{onClick:Ie=>{Ie.stopPropagation(),A==null||A(g?null:$)},className:Pn("relative hover:bg-transparent w-[25px] h-[24px] mr-0 hover:text-slate-500 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center"),children:[o.jsx(Sae,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-1":"rotate-0 opacity-0")}),o.jsx(Eae,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-0":"rotate-0 opacity-1")})]})})]})}),qe?o.jsx(o.Fragment,{children:!ul.value&&o.jsx(mr,{className:"mr-1",onClick:()=>{sh()},children:o.jsx(st,{text:U("Close Edit",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})}):z?o.jsx(je,{variant:"ghost",size:"mini",className:"pl-2 pr-1 text-slate-400 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{cd.value=$,O==null||O()},ref:pe,children:o.jsx(st,{text:U("Locate Menu",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(y5,{size:18})})}):o.jsx(je,{variant:"ghost",size:"mini",className:"pr-0.5 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-slate-600",onClick:Ie=>{var $e,ht,Fe;Ie.stopPropagation();const Ke=($e=pe==null?void 0:pe.current)==null?void 0:$e.getBoundingClientRect().x,ut=(ht=pe==null?void 0:pe.current)==null?void 0:ht.getBoundingClientRect().y;(Fe=me==null?void 0:me.current)==null||Fe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Ke,clientY:ut&&ut+30}))},ref:pe,children:o.jsx(st,{text:U("Options",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:18})})})]}):o.jsx(ne,{className:"h-[24px]"}),be&&o.jsx(tc,{className:"absolute text-green-400 dark:text-green-600 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28})]})}))}),o.jsx(t7,ae(R({},e),{className:Pn("overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",q&&"bg-red-50 dark:bg-red-900"),children:W}))]})]})}),(Ee||n)&&o.jsx(U5e,{id:$,isSelected:n,isDisabled:H,setSelectedItemIds:I,isActive:F,hasChildren:C,isClip:w,isImage:b.isImage,isFolder:J,itemParentId:b.parentId,isSeparator:f,setOpenItemId:A,isOpen:g,itemOrderNumber:b.orderNumber,deletingMenuItemIds:_,deselectItemById:T,selectItemById:L})]}),ee&&o.jsxs(ve,{className:Pn("flex flex-col justify-center items-center mb-2 mt-0 animate-in fade-in duration-300 ease-in-out transition-opacity",m>0&&"ml-[".concat(m*30,"px]")),children:[o.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"}),o.jsx(Pw,{isCreatingMenuItem:s,showEditMenuItemId:x,currentMenuItemId:$,isDark:Y,parentId:J&&!P?$:b.parentId,orderNumber:J&&P||!J?b.orderNumber+2:0})]})]})}finally{V.f()}}const Io={CLIPS:"clips",BOARDS:"boards",MENUS:"menus"};function rke({isDark:t}){var F,q;const{t:e}=Gt(),[n,r]=v.useState(""),[s,a]=v.useState(Io.CLIPS),i=v.useRef(),l=As(null),c=As(null),d=As(!1),p=As(!1),{isWindows:f}=Tt(Ls),{setIsAutoCloseOnCopyPaste:m,isAutoCloseOnCopyPaste:b,setIsSearchNameOrLabelOnly:C,isSearchNameOrLabelOnly:g}=Tt(Cr),[w]=Uh({}),[x]=Wh({}),{clipItems:S,tabs:E,setCurrentTab:N}=Tt(Ar),{collectionWithClips:_,fetchCollectionWithClips:P}=LB(),{collectionWithMenuItems:I,fetchCollectionWithMenuItems:T}=uge(),L=ua(),{menuItems:A}=Tt(Ar),z=jo(n,300),[Y,O]=v.useState(!1),$=X=>{var te;X.preventDefault(),X.stopPropagation(),O(ee=>!ee),(te=i.current)==null||te.focus()},M=v.useMemo(()=>z.length>1,[z]),W=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=A.length>0?A:(I==null?void 0:I.items)||[],te=X.length>0?Av(X,null,!1):[],ee=le=>{var se,de,ce;return le.name.toLowerCase().includes(z.toLowerCase())||(se=le.value)!=null&&se.toLowerCase().includes(z.toLowerCase())&&!g?!0:(ce=(de=le.children)==null?void 0:de.some(ee))!=null?ce:!1},G=(le,se=0)=>{let de=[];return le.forEach(ce=>{var me;const ye=ee(ce),pe=X.find(be=>be.itemId===ce.id);if(pe&&ye){const be=ae(R({},pe),{indent:se,id:ce.id});if(de.push(be),ce.children&&((me=ce.children)==null?void 0:me.length)>0){const Ee=G(ce.children,se+1);de=de.concat(Ee)}}}),de},Z=G(te);return{results:Z,count:Z.length}},[A,z,Y,I==null?void 0:I.items,g]),V=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=S.length>0?S:(_==null?void 0:_.clips)||[];return II(X,z,E,g)},[S,z,Y,_,g]),U=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=S.length>0?S:(_==null?void 0:_.clips)||[];return II(X,z,E,g,!0)},[S,z,Y,_,g]),J=()=>{L("/history",{replace:!0}),O(!1)},H=()=>{L("/menu",{replace:!0}),O(!1)};return v.useEffect(()=>{Y||(XT.value=n,r(""))},[Y]),v.useEffect(()=>{M&&S.length===0&&P(),M&&A.length===0&&T()},[M,P,T]),v.useEffect(()=>{Y||(XT.value=n,r(""))},[Y]),Vs(["meta+k","control+k"],$,{},[]),Vs("/",$,{},[]),v.useEffect(()=>{!M||V.count>0?a(Io.CLIPS):U.count>0?a(Io.BOARDS):W.count>0&&a(Io.MENUS)},[V.count,U.count,M]),v.useEffect(()=>{Y&&(w||x)&&b&&setTimeout(()=>{O(!1)},1e3)},[w,x,Y]),o.jsx(o.Fragment,{children:o.jsxs(Sa,{defaultOpen:!1,modal:!1,open:Y,onOpenChange:()=>{O(!Y)},children:[o.jsx(ja,{asChild:!0,children:o.jsxs(ne,{id:"navbar-search_tour",className:"flex flex-row bg-slate-100 dark:bg-slate-800 rounded-md p-0 items-center relative ml-2",children:[o.jsx(Wd,{placeholder:"".concat(e("GlobalSearch:::Search",{ns:"navbar"})," ..."),type:"search",id:"global-search",value:n,onChange:X=>{r(X.target.value)},ref:ml(i),onFocus:()=>{O(!0)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md min-w-[120px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-800 border-r-0 border-t-0 border-b-0 h-8"}),!Y&&o.jsx(ve,{className:"absolute right-2 text-slate-400/90 animate-in animate-out fade-in-out hover:text-slate-500 cursor-pointer",onClick:()=>{var X;O(!0),(X=i.current)==null||X.focus()},title:e("GlobalSearch:::Press / key to search",{ns:"navbar"}),children:o.jsx("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"rounded-md flex items-center justify-center bg-slate-50 dark:bg-slate-900/60 p-[2px]",children:o.jsx("line",{x1:"16",x2:"8",y1:"5",y2:"18"})})})]})}),o.jsx(ia,{className:"overflow-hidden bg-gray-50 p-4 py-2 pb-3 pt-2 flex items-center flex-col w-fit rounded-md shadow-lg relative dark:bg-slate-800",sideOffset:4,onOpenAutoFocus:X=>{X.preventDefault()},onInteractOutside:X=>{X.preventDefault()},onCloseAutoFocus:X=>{X.preventDefault(),r(""),document.activeElement.blur()},children:o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"esc-key flex opacity-90 hover:opacity-100 hover:bg-opacity-100 justify-end w-[38px] h-[24px] rounded-sm top-2 left-2 absolute z-50 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{O(!1)},title:e("Press ESC key to close",{ns:"common"})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{className:"flex opacity-90 hover:opacity-100 hover:bg-opacity-100 top-2 right-2 absolute z-50 text-slate-400 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{O(!1)},title:e("GlobalSearch:::Search Options",{ns:"navbar"}),children:o.jsx(zh,{size:14})})}),o.jsxs(Wn,{children:[o.jsx(rt,{disabled:!0,className:"p-0 justify-center text-[13px]",children:e("GlobalSearch:::Search Options",{ns:"navbar"})}),o.jsx(kn,{}),o.jsxs(rt,{onClick:X=>{X.preventDefault(),m(!b)},children:[o.jsx(ve,{className:"mr-2",children:o.jsx(re,{className:"!text-[13px] mr-1 !font-medium ".concat(b?"":"text-slate-900/50"),children:e("GlobalSearch:::Auto Close on Copy & Paste",{ns:"navbar"})})}),o.jsx(ns,{checked:b,className:"ml-auto"})]}),o.jsxs(rt,{onClick:X=>{X.preventDefault(),C(!g)},children:[o.jsx(ve,{className:"mr-2",children:o.jsxs(re,{className:"!text-[13px] mr-1 flex-col !items-start !font-medium ".concat(g?"":"text-slate-900/50"),children:[e("GlobalSearch:::Search Name or Label Only",{ns:"navbar"}),o.jsx("span",{className:"text-muted-foreground opacity-70 !text-[12px] block",children:e("GlobalSearch:::Excludes clip or menu values",{ns:"navbar"})})]})}),o.jsx(ns,{checked:g,className:"ml-auto"})]})," "]})]}),M&&o.jsx(pl,{className:"flex flex-row z-10 select-none pb-1.5 mb-1",value:s,onValueChange:X=>{a(X)},children:o.jsxs(Xo,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900",children:[o.jsxs(jr,{value:Io.CLIPS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Clips:::Clips",{ns:"dashboard"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:V.count>99?"99+":V.count})]}),o.jsxs(jr,{value:Io.BOARDS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Boards",{ns:"dashboard"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:U.count>99?"99+":U.count})]}),o.jsxs(jr,{value:Io.MENUS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Menus",{ns:"menus"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:W.count>99?"99+":W.count})]})]})}),o.jsxs(or,{className:"flex-col",style:{height:"auto",maxHeight:"calc(100vh - 200px)",width:420},autoHide:!1,children:[s===Io.CLIPS&&((F=V.results)==null?void 0:F.reduce((X,te,ee)=>{const G=Math.floor(ee/1);return X[G]||(X[G]=[]),X[G].push(te),X},[]).map((X,te)=>o.jsx(ne,{className:"mt-1 mb-2",children:X.map((ee,G)=>o.jsx(Tw,{board:ee,isDark:t,closeGlobalSearch:J,setCurrentTab:N,globalSearchTerm:z,isHistoryDragActive:!1,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:G===X.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(te,"-").concat(G)))},"".concat(te)))),s===Io.BOARDS&&((q=U.results)==null?void 0:q.reduce((X,te,ee)=>{const G=Math.floor(ee/1);return X[G]||(X[G]=[]),X[G].push(te),X},[]).map((X,te)=>o.jsx(ne,{className:"mt-1 mb-2",children:X.map((ee,G)=>o.jsx(Tw,{board:ee,isDark:t,globalSearchTerm:z,setCurrentTab:N,closeGlobalSearch:J,isHistoryDragActive:!1,isGlobalSearchBoardsOnly:!0,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:G===X.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(te,"-").concat(G)))},"".concat(te)))),s===Io.MENUS&&o.jsx(gB,{type:"single",collapsible:!0,className:"flex items-center flex-col",children:W.results.map((X,te)=>o.jsx(n7,{value:X.itemId,children:o.jsx(AW,{label:X.name,globalSearchTerm:z,closeGlobalSearch:H,isLastItem:te===W.results.length-1,deletingMenuItemIds:l,isFirstItem:te===0,isDark:t,showEditMenuItemId:c,hasChildren:X.hasChildren,isSeparator:X.isSeparator,showMultiSelectItems:d,hasSelectedItems:!1,id:X.itemId,item:X,isClip:X.isClip,isForm:X.isForm&&X.isClip,isWebRequest:X.isWebRequest&&X.isClip,isWebScraping:X.isWebScraping&&X.isClip,isCommand:X.isCommand&&X.isClip,isCreatingMenuItem:p,indent:X.indent,onFolderClose:()=>{},onFolderOpen:()=>{},isClosedFolder:!1,isSelected:!1,hasMultipleSelectedItems:!1,isOpen:!1,children:o.jsx(o.Fragment,{})})},"".concat(X.itemId)))}),M?o.jsx(o.Fragment,{children:V.count===0&&U.count===0&&W.count===0?o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in clips, boards or menus.",{ns:"navbar"})}):o.jsxs(o.Fragment,{children:[V.count===0&&s===Io.CLIPS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in clips.",{ns:"navbar"})}),U.count===0&&s===Io.BOARDS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in boards.",{ns:"navbar"})}),W.count===0&&s===Io.MENUS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in menus.",{ns:"navbar"})})]})}):o.jsxs(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-2 mt-2",children:[e("GlobalSearch:::Type what you looking for",{ns:"navbar"}),"..."]})]}),o.jsx(du,{children:o.jsx(ne,{className:"body-overlay bg-black/30 dark:bg-black/70 rounded-lg ".concat(f?"mb-1 mx-1 !mt-[43px]":""),onClick:()=>{O(!1)}})})]})})]})})}const LW=t=>{var e=sn(1);try{const n=Te(11),{className:r,showContactForm:s}=t,a=r===void 0?"":r,i=s===void 0?!0:s,l=dr.language==="ru",{themeDark:c}=Tt(bo),d=c(),p=xl(q0),{id:f}=Un.value||{},m="".concat(p?"https://license.pastebar.app/contact/?pro=true&licenseId=".concat(f,"&"):"https://license.pastebar.app/contact/?","source=app&locale=").concat(dr.language,"&dark=").concat(d?"true":"false"),{t:b}=Gt(),C="flex flex-wrap gap-4 justify-center items-center ".concat(a);let g;n[0]===Symbol.for("react.memo_cache_sentinel")?(g=l?o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://t.me/pastebar_ru",target:"_blank",title:"Telegram",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M 26.070313 3.996094 C 25.734375 4.011719 25.417969 4.109375 25.136719 4.21875 L 25.132813 4.21875 C 24.847656 4.332031 23.492188 4.902344 21.433594 5.765625 C 19.375 6.632813 16.703125 7.757813 14.050781 8.875 C 8.753906 11.105469 3.546875 13.300781 3.546875 13.300781 L 3.609375 13.277344 C 3.609375 13.277344 3.25 13.394531 2.875 13.652344 C 2.683594 13.777344 2.472656 13.949219 2.289063 14.21875 C 2.105469 14.488281 1.957031 14.902344 2.011719 15.328125 C 2.101563 16.050781 2.570313 16.484375 2.90625 16.722656 C 3.246094 16.964844 3.570313 17.078125 3.570313 17.078125 L 3.578125 17.078125 L 8.460938 18.722656 C 8.679688 19.425781 9.949219 23.597656 10.253906 24.558594 C 10.433594 25.132813 10.609375 25.492188 10.828125 25.765625 C 10.933594 25.90625 11.058594 26.023438 11.207031 26.117188 C 11.265625 26.152344 11.328125 26.179688 11.390625 26.203125 C 11.410156 26.214844 11.429688 26.21875 11.453125 26.222656 L 11.402344 26.210938 C 11.417969 26.214844 11.429688 26.226563 11.441406 26.230469 C 11.480469 26.242188 11.507813 26.246094 11.558594 26.253906 C 12.332031 26.488281 12.953125 26.007813 12.953125 26.007813 L 12.988281 25.980469 L 15.871094 23.355469 L 20.703125 27.0625 L 20.8125 27.109375 C 21.820313 27.550781 22.839844 27.304688 23.378906 26.871094 C 23.921875 26.433594 24.132813 25.875 24.132813 25.875 L 24.167969 25.785156 L 27.902344 6.65625 C 28.007813 6.183594 28.035156 5.742188 27.917969 5.3125 C 27.800781 4.882813 27.5 4.480469 27.136719 4.265625 C 26.769531 4.046875 26.40625 3.980469 26.070313 3.996094 Z M 25.96875 6.046875 C 25.964844 6.109375 25.976563 6.101563 25.949219 6.222656 L 25.949219 6.234375 L 22.25 25.164063 C 22.234375 25.191406 22.207031 25.25 22.132813 25.308594 C 22.054688 25.371094 21.992188 25.410156 21.667969 25.28125 L 15.757813 20.75 L 12.1875 24.003906 L 12.9375 19.214844 C 12.9375 19.214844 22.195313 10.585938 22.59375 10.214844 C 22.992188 9.84375 22.859375 9.765625 22.859375 9.765625 C 22.886719 9.3125 22.257813 9.632813 22.257813 9.632813 L 10.082031 17.175781 L 10.078125 17.15625 L 4.242188 15.191406 L 4.242188 15.1875 C 4.238281 15.1875 4.230469 15.183594 4.226563 15.183594 C 4.230469 15.183594 4.257813 15.171875 4.257813 15.171875 L 4.289063 15.15625 L 4.320313 15.144531 C 4.320313 15.144531 9.53125 12.949219 14.828125 10.71875 C 17.480469 9.601563 20.152344 8.476563 22.207031 7.609375 C 24.261719 6.746094 25.78125 6.113281 25.867188 6.078125 C 25.949219 6.046875 25.910156 6.046875 25.96875 6.046875 Z"})})})})}):o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://discord.gg/RW27D63bZ3",target:"_blank",title:"Discord",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 192 192",children:[o.jsx("path",{stroke:"currentColor",strokeWidth:"12",d:"m68 138-8 16c-10.19-4.246-20.742-8.492-31.96-15.8-3.912-2.549-6.284-6.88-6.378-11.548-.488-23.964 5.134-48.056 19.369-73.528 1.863-3.334 4.967-5.778 8.567-7.056C58.186 43.02 64.016 40.664 74 39l6 11s6-2 16-2 16 2 16 2l6-11c9.984 1.664 15.814 4.02 24.402 7.068 3.6 1.278 6.704 3.722 8.567 7.056 14.235 25.472 19.857 49.564 19.37 73.528-.095 4.668-2.467 8.999-6.379 11.548-11.218 7.308-21.769 11.554-31.96 15.8l-8-16m-68-8s20 10 40 10 40-10 40-10"}),o.jsx("ellipse",{cx:"71",cy:"101",fill:"currentColor",rx:"13",ry:"15"}),o.jsx("ellipse",{cx:"121",cy:"101",fill:"currentColor",rx:"13",ry:"15"})]})})})}),n[0]=g):g=n[0];let w;n[1]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://www.facebook.com/PasteBarApp",target:"_blank",title:"Facebook",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 21V13.0001M12 13.0001V10.0001C12 8.02404 13.3537 7.03622 15.5 7.18462M12 13.0001L15 13.0001M12 13.0001H9",stroke:"currentColor",strokeWidth:"1.5"})})})})}),n[1]=w):w=n[1];let x;n[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://twitter.com/PasteBar_App",target:"_blank",title:"Twitter",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M3.50003 4.50005C1.50012 7.99982 2.63692 13.738 7.63684 16.2382C6.52918 17.0001 4.50012 17.9999 2.50012 18.4998C7.00012 20.4999 11.5001 20.9999 16.0001 17.4999C19.4154 14.8436 20.1668 10.1666 20.0001 7.99991L22.5001 5.00023H19.0001C17.5001 3.49991 16.022 3.57155 14.5001 4.00017C12.724 4.50037 11.7934 6.34309 12.0001 8.49991C9.00012 8.99968 6.00012 6.99982 3.50003 4.50005Z",stroke:"currentColor",strokeWidth:"1.5"})})})})}),n[2]=x):x=n[2];let S;n[3]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://github.com/PasteBar",target:"_blank",title:"GitHub",className:"inline-flex flex-col justify-center items-center p-1.5 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-6 h-6",children:o.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:o.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm3.163 21.783h-.093a.513.513 0 0 1-.382-.14.513.513 0 0 1-.14-.372v-1.406c.006-.467.01-.94.01-1.416a3.693 3.693 0 0 0-.151-1.028 1.832 1.832 0 0 0-.542-.875 8.014 8.014 0 0 0 2.038-.471 4.051 4.051 0 0 0 1.466-.964c.407-.427.71-.943.885-1.506a6.77 6.77 0 0 0 .3-2.13 4.138 4.138 0 0 0-.26-1.476 3.892 3.892 0 0 0-.795-1.284 2.81 2.81 0 0 0 .162-.582c.033-.2.05-.402.05-.604 0-.26-.03-.52-.09-.773a5.309 5.309 0 0 0-.221-.763.293.293 0 0 0-.111-.02h-.11c-.23.002-.456.04-.674.111a5.34 5.34 0 0 0-.703.26 6.503 6.503 0 0 0-.661.343c-.215.127-.405.249-.573.362a9.578 9.578 0 0 0-5.143 0 13.507 13.507 0 0 0-.572-.362 6.022 6.022 0 0 0-.672-.342 4.516 4.516 0 0 0-.705-.261 2.203 2.203 0 0 0-.662-.111h-.11a.29.29 0 0 0-.11.02 5.844 5.844 0 0 0-.23.763c-.054.254-.08.513-.081.773 0 .202.017.404.051.604.033.199.086.394.16.582A3.888 3.888 0 0 0 5.702 10a4.142 4.142 0 0 0-.263 1.476 6.871 6.871 0 0 0 .292 2.12c.181.563.483 1.08.884 1.516.415.422.915.75 1.466.964.653.25 1.337.41 2.033.476a1.828 1.828 0 0 0-.452.633 2.99 2.99 0 0 0-.2.744 2.754 2.754 0 0 1-1.175.27 1.788 1.788 0 0 1-1.065-.3 2.904 2.904 0 0 1-.752-.824 3.1 3.1 0 0 0-.292-.382 2.693 2.693 0 0 0-.372-.343 1.841 1.841 0 0 0-.432-.24 1.2 1.2 0 0 0-.481-.101c-.04.001-.08.005-.12.01a.649.649 0 0 0-.162.02.408.408 0 0 0-.13.06.116.116 0 0 0-.06.1.33.33 0 0 0 .14.242c.093.074.17.131.232.171l.03.021c.133.103.261.214.382.333.112.098.213.209.3.33.09.119.168.246.231.381.073.134.15.288.231.463.188.474.522.875.954 1.145.453.243.961.364 1.476.351.174 0 .349-.01.522-.03.172-.028.343-.057.515-.091v1.743a.5.5 0 0 1-.533.521h-.062a10.286 10.286 0 1 1 6.324 0v.005z"})})})})}),n[3]=S):S=n[3];let E;n[4]!==i||n[5]!==b||n[6]!==m?(E=i&&o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:m,target:"_blank",title:b("Contact Form",{ns:"common"}),className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{fill:"currentColor",viewBox:"0 0 32 32",children:o.jsx("path",{d:"M26.2 8.5C24 5.3 20.6 3.3 16.9 3H16c-3.7 0-7.2 1.6-9.7 4.3-2.5 2.7-3.6 6.4-3.2 10.1.7 6 5.5 10.8 11.5 11.4.4.2.9.2 1.4.2 2.6 0 5-.7 7.2-2.2.5-.3.6-.9.3-1.4-.3-.5-.9-.6-1.4-.3-2.2 1.4-4.7 2.1-7.3 1.8-5.1-.5-9.1-4.6-9.7-9.7-.4-3.1.6-6.2 2.7-8.5 2.3-2.5 5.6-3.9 9-3.6 3.2.2 6 1.9 7.8 4.6 1.9 2.9 2.4 6.3 1.3 9.6v.1c-.3 1-1.3 1.7-2.4 1.7-1.4 0-2.5-1.1-2.5-2.5V11c0-.6-.4-1-1-1s-1 .4-1 1c-.8-.6-1.9-1-3-1-2.8 0-5 2.2-5 5v2c0 2.8 2.2 5 5 5 1.4 0 2.6-.6 3.5-1.4.7 1.4 2.2 2.4 4 2.4 1.9 0 3.6-1.2 4.3-3.1v-.1c1.3-3.8.7-7.9-1.6-11.3zM19 17c0 1.7-1.3 3-3 3s-3-1.3-3-3v-2c0-1.7 1.3-3 3-3s3 1.3 3 3v2z"})})})})}),n[4]=i,n[5]=b,n[6]=m,n[7]=E):E=n[7];let N;return n[8]!==C||n[9]!==E?(N=o.jsxs("div",{className:C,children:[g,w,x,S,E]}),n[8]=C,n[9]=E,n[10]=N):N=n[10],N}finally{e.f()}};function ske(){const t=Te(53),{t:e}=Gt(),{setTheme:n,theme:r}=ik(),{mode:s,setMode:a}=Tt(bo);let i;t[0]!==r||t[1]!==s||t[2]!==a?(i=()=>{r!==s&&a(r)},t[0]=r,t[1]=s,t[2]=a,t[3]=i):i=t[3];let l;t[4]!==r?(l=[r],t[4]=r,t[5]=l):l=t[5],v.useEffect(i,l);let c;t[6]!==r?(c=r==="light"?o.jsx(Ho.sun,{size:14,className:"ml-2"}):r==="dark"?o.jsx(Ho.moon,{size:14,className:"ml-2"}):o.jsx(Ho.sunmoon,{width:12,height:12,className:"ml-2"}),t[6]=r,t[7]=c):c=t[7];const d=c;let p;t[8]!==e?(p=e("Color Theme",{ns:"navbar"}),t[8]=e,t[9]=p):p=t[9];let f;t[10]!==p||t[11]!==d?(f=o.jsxs(ks,{children:[p," ",d]}),t[10]=p,t[11]=d,t[12]=f):f=t[12];const m=r==="light";let b;t[13]!==n?(b=()=>n("light"),t[13]=n,t[14]=b):b=t[14];let C;t[15]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.sun,{className:"mr-2",size:17})}),t[15]=C):C=t[15];let g;t[16]!==e?(g=e("Theme:::Light",{ns:"navbar"}),t[16]=e,t[17]=g):g=t[17];let w;t[18]!==g?(w=o.jsx("span",{children:g}),t[18]=g,t[19]=w):w=t[19];let x;t[20]!==m||t[21]!==b||t[22]!==w?(x=o.jsxs(va,{checked:m,onClick:b,children:[C,w]}),t[20]=m,t[21]=b,t[22]=w,t[23]=x):x=t[23];const S=r==="dark";let E;t[24]!==n?(E=()=>n("dark"),t[24]=n,t[25]=E):E=t[25];let N;t[26]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("span",{className:"flex items-end",children:o.jsx(Ho.moon,{className:"mr-2",size:15})}),t[26]=N):N=t[26];let _;t[27]!==e?(_=e("Theme:::Dark",{ns:"navbar"}),t[27]=e,t[28]=_):_=t[28];let P;t[29]!==_?(P=o.jsx("span",{children:_}),t[29]=_,t[30]=P):P=t[30];let I;t[31]!==S||t[32]!==E||t[33]!==P?(I=o.jsxs(va,{checked:S,onClick:E,children:[N,P]}),t[31]=S,t[32]=E,t[33]=P,t[34]=I):I=t[34];const T=r==="system";let L;t[35]!==n?(L=()=>n("system"),t[35]=n,t[36]=L):L=t[36];let A;t[37]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx("span",{className:"flex w-[1.5rem] items-end",children:o.jsx(Ho.sunmoon,{className:"mr-2",width:13,height:13})}),t[37]=A):A=t[37];let z;t[38]!==e?(z=e("Theme:::System",{ns:"navbar"}),t[38]=e,t[39]=z):z=t[39];let Y;t[40]!==z?(Y=o.jsx("span",{children:z}),t[40]=z,t[41]=Y):Y=t[41];let O;t[42]!==T||t[43]!==L||t[44]!==Y?(O=o.jsxs(va,{checked:T,onClick:L,children:[A,Y]}),t[42]=T,t[43]=L,t[44]=Y,t[45]=O):O=t[45];let $;t[46]!==x||t[47]!==I||t[48]!==O?($=o.jsxs(Cs,{children:[x,I,O]}),t[46]=x,t[47]=I,t[48]=O,t[49]=$):$=t[49];let M;return t[50]!==f||t[51]!==$?(M=o.jsxs(zs,{children:[f,$]}),t[50]=f,t[51]=$,t[52]=M):M=t[52],M}const ib=String.fromCharCode,lb={};function yk(t){var e,n;try{const r=cke(t.trim()),s=ake(r);return(n=JSON.parse((e=oke(s))!=null?e:"{}"))!=null?n:{}}catch(r){throw console.error(r),new Error("Error parsing data.")}}(function(t,e){const n=Ah,r=t();for(;;)try{if(-parseInt(n(230))/1*(parseInt(n(233))/2)+-parseInt(n(242))/3+parseInt(n(245))/4*(-parseInt(n(234))/5)+-parseInt(n(238))/6+-parseInt(n(229))/7*(parseInt(n(237))/8)+-parseInt(n(243))/9+-parseInt(n(240))/10*(-parseInt(n(246))/11)===e)break;r.push(r.shift())}catch(s){r.push(r.shift())}})(Mw,744619);function ake(t){const n=Ah,r=Nse+"_1974";let s="";for(let a=0;a>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;switch(m){case 0:for(m=0,C=Math[r(244)](2,8),g=1;g!=C;)b=x[r(231)]&x.position,x.position>>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;w=ib(m);break;case 1:for(m=0,C=Math[r(244)](2,16),g=1;g!=C;)b=x[r(231)]&x[r(227)],x[r(227)]>>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x.index++)),m|=(b>0?1:0)*g,g<<=1;w=ib(m);break;case 2:return""}for(s[3]=w,f=w,d[r(236)](w);;){if(x.index>t)return"";for(m=0,C=Math.pow(2,l),g=1;g!=C;)b=x.val&x[r(227)],x[r(227)]>>=1,x.position==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;switch(w=m){case 0:for(m=0,C=Math[r(244)](2,8),g=1;g!=C;)b=x[r(231)]&x.position,x[r(227)]>>=1,x[r(227)]==0&&(x.position=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;s[i++]=ib(m),w=i-1,a--;break;case 1:for(m=0,C=Math.pow(2,16),g=1;g!=C;)b=x[r(231)]&x.position,x[r(227)]>>=1,x[r(227)]==0&&(x.position=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;s[i++]=ib(m),w=i-1,a--;break;case 2:return d[r(232)]("")}if(a==0&&(a=Math[r(244)](2,l),l++),s[w])c=s[w];else if(w===i)c=f+f.charAt(0);else return null;d[r(236)](c),s[i++]=f+c[r(241)](0),a--,f=c,a==0&&(a=Math[r(244)](2,l),l++)}}function cke(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");const n="=".repeat((4-e.length%4)%4);return e+=n,decodeURIComponent(escape(atob(e)))}function RW(t){const e=Te(5);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("g",{fill:"none",stroke:"#888888",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"matrix(0.166612, 0, 0, 0.166612, 14.40597, 11.442867)"}),e[0]=n):n=e[0];let r,s;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("g",{transform:"matrix(0.764827, 0, 0, 0.764827, 2.823834, 2.82207)",children:o.jsx("path",{d:"M 12.886 0.233 C 14.248 0.233 15.368 1.262 15.514 2.587 L 17.588 2.587 C 18.98 2.587 20.133 3.663 20.229 5.053 L 20.235 5.234 C 20.234 5.673 19.91 6.047 19.474 6.106 L 19.351 6.116 C 18.911 6.116 18.538 5.791 18.479 5.354 L 18.47 5.234 C 18.47 4.794 18.145 4.42 17.707 4.358 L 17.588 4.35 L 15.08 4.35 C 14.588 5.083 13.765 5.52 12.886 5.519 L 8.761 5.519 C 7.881 5.52 7.058 5.083 6.567 4.351 L 4.059 4.35 C 3.617 4.35 3.245 4.677 3.185 5.114 L 3.176 5.234 L 3.176 21.121 C 3.176 21.569 3.508 21.936 3.939 21.995 L 4.059 22.004 L 7.587 22.004 C 8.027 22.004 8.402 22.329 8.463 22.765 L 8.471 22.885 C 8.471 23.372 8.075 23.767 7.587 23.767 L 4.059 23.767 C 2.666 23.768 1.512 22.691 1.418 21.303 L 1.412 21.121 L 1.412 5.234 C 1.412 3.841 2.488 2.687 3.878 2.592 L 4.059 2.587 L 6.133 2.587 C 6.281 1.247 7.412 0.233 8.761 0.233 L 12.886 0.233 Z M 12.886 1.998 L 8.761 1.998 C 8.084 2.023 7.689 2.771 8.048 3.344 C 8.203 3.59 8.47 3.744 8.761 3.754 L 12.886 3.754 C 13.562 3.779 14.011 3.064 13.693 2.465 C 13.535 2.167 13.223 1.986 12.886 1.998 Z",fill:"rgb(255, 193, 49)"})}),s=o.jsx("path",{d:"M 18.086 8.404 C 19.151 8.404 20.034 9.228 20.107 10.289 L 20.111 10.428 L 20.111 18.975 C 20.111 20.04 19.288 20.923 18.224 20.995 L 18.086 21 L 12.238 21 C 11.173 21 10.291 20.176 10.217 19.114 L 10.214 18.975 L 10.214 10.428 C 10.214 9.364 11.037 8.48 12.099 8.408 L 12.238 8.404 L 18.086 8.404 Z M 12.308 12.418 C 12.308 12.418 12.295 12.4 12.318 12.466 C 12.348 12.524 12.407 12.617 12.451 12.661 C 12.49 12.699 12.563 12.743 12.607 12.766 C 12.65 12.78 12.739 12.8 12.794 12.805 L 17.727 12.805 C 17.76 12.804 17.814 12.795 17.848 12.788 C 17.875 12.779 17.93 12.758 17.961 12.743 C 17.992 12.724 18.047 12.685 18.071 12.661 C 18.1 12.632 18.143 12.577 18.163 12.546 C 18.204 12.454 18.253 12.275 18.261 12.177 C 18.248 12.079 18.205 11.926 18.167 11.845 C 18.119 11.778 18.032 11.68 17.968 11.644 C 17.912 11.611 17.801 11.584 17.727 11.578 L 12.794 11.578 C 12.744 11.582 12.663 11.597 12.611 11.615 C 12.563 11.64 12.492 11.686 12.451 11.722 C 12.417 11.758 12.353 11.851 12.317 11.919 C 12.293 11.99 12.267 12.113 12.261 12.19 L 12.308 12.418 Z M 12.308 15.004 C 12.308 15.004 12.295 14.986 12.318 15.052 C 12.348 15.11 12.407 15.203 12.451 15.247 C 12.49 15.285 12.563 15.329 12.607 15.351 C 12.65 15.366 12.739 15.386 12.794 15.39 L 17.727 15.39 C 17.76 15.39 17.814 15.381 17.848 15.374 C 17.875 15.364 17.93 15.344 17.961 15.329 C 17.992 15.309 18.047 15.27 18.071 15.247 C 18.1 15.218 18.143 15.163 18.163 15.132 C 18.204 15.039 18.253 14.86 18.261 14.763 C 18.248 14.665 18.205 14.512 18.167 14.431 C 18.119 14.364 18.032 14.266 17.968 14.229 C 17.912 14.197 17.801 14.17 17.727 14.164 L 12.794 14.164 C 12.744 14.168 12.663 14.183 12.611 14.2 C 12.563 14.226 12.492 14.272 12.451 14.307 C 12.417 14.343 12.353 14.437 12.317 14.505 C 12.293 14.576 12.267 14.699 12.261 14.776 L 12.308 15.004 Z M 12.308 17.589 C 12.308 17.589 12.295 17.571 12.318 17.637 C 12.348 17.695 12.407 17.788 12.451 17.832 C 12.49 17.87 12.563 17.914 12.607 17.937 C 12.65 17.951 12.739 17.971 12.794 17.976 L 17.727 17.976 C 17.76 17.975 17.814 17.966 17.848 17.959 C 17.875 17.95 17.93 17.929 17.961 17.914 C 17.992 17.895 18.047 17.856 18.071 17.832 C 18.1 17.803 18.143 17.748 18.163 17.717 C 18.204 17.625 18.253 17.446 18.261 17.348 C 18.248 17.25 18.205 17.097 18.167 17.016 C 18.119 16.949 18.032 16.851 17.968 16.815 C 17.912 16.782 17.801 16.755 17.727 16.749 L 12.794 16.749 C 12.744 16.753 12.663 16.768 12.611 16.786 C 12.563 16.811 12.492 16.857 12.451 16.893 C 12.417 16.929 12.353 17.022 12.317 17.09 C 12.293 17.161 12.267 17.284 12.261 17.361 L 12.308 17.589 Z",fill:"rgb(36, 200, 219)"}),e[1]=r,e[2]=s):(r=e[1],s=e[2]);let a;return e[3]!==t?(a=o.jsxs("svg",ae(R({color:"accent",height:"8",viewBox:"0 0 24 24"},t),{children:[n,r,s]})),e[3]=t,e[4]=a):a=e[4],a}var uke={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function dke(){var e,n,r;var t=sn(1);try{const{t:s,i18n:a}=Gt(),[i,l]=v.useState(!1),c=ua(),{systemTheme:d}=ik(),{setSystemTheme:p,themeDark:f,deviceId:m}=Tt(bo),{currentCollectionId:b,collections:C}=Tt(Ar),{selectCollectionById:g}=l7(),w=f();v.useEffect(()=>{On("is_autostart_enabled").then(Ke=>{l(!!Ke)});const Ie=P8(({error:Ke,status:ut})=>{uke.TAURI_DEBUG&&(console.log("Updater status",ut),console.log("Updater error",Ke))});return()=>{Ie.then(Ke=>{Ke()})}},[]),v.useEffect(()=>{d&&(On("set_icon",{name:"main",isDark:d==="dark"}),p(d))},[d]);const x=()=>Es==null?void 0:Es.minimize(),S=()=>ge(this,null,function*(){(yield Es==null?void 0:Es.isMaximized())?Es==null||Es.unmaximize():Es==null||Es.maximize()}),E=()=>Es.hide(),N=()=>Es.close(),{pinnedClips:_}=Tt(Ar),{isShowCollectionNameOnNavBar:P,isShowDisabledCollectionsOnNavBarMenu:I,setIsShowCollectionNameOnNavBar:T,copyPasteDelay:L,setCopyPasteDelay:A,setIsHistoryEnabled:z,isHistoryEnabled:Y,setLicenseKey:O,setUpdaterSkipVersion:$,setUpdaterRemindLater:M,licenseKey:W,relaunchApp:V,checkForUpdate:U,installUpdate:J,appToursCompletedList:H,appToursSkippedList:F,setAppToursCompletedList:q,setAppToursSkippedList:X,setIsHistoryAutoUpdateOnCaputureEnabled:te,isHistoryAutoUpdateOnCaputureEnabled:ee,setIsShowDisabledCollectionsOnNavBarMenu:G}=Tt(Cr),{fontSize:Z,decreaseFontSize:le,increaseFontSize:se,resetFontSize:de,setIsSwapPanels:ce,isShowPinned:ye,setIsShowPinned:pe,isSwapPanels:me}=Tt(Ls);Vs(["alt+b"],()=>{c("/history",{replace:!0})}),Vs(["alt+m"],()=>{c("/menu",{replace:!0})}),Vs(["alt+l"],()=>{Qi.value=!0}),Vs(["alt+p"],()=>{ce(!me)}),v.useEffect(()=>{if(W)try{const Ie=yk(W);Ie&&typeof Ie.id=="string"&&Ie.id.length>0&&(Un.value=Ie)}catch(Ie){Un.value=null,O(null)}else Un.value=null},[W]);const be=xl(q0),Ee=xl(Mx),We=Ix(),qe=qh(),ot=rW(),{licenseExpInDays:Ve}=v.useMemo(()=>nW(),[Un.value]),Ge=v.useMemo(()=>Dx(),[Un.value]),ft=Mr(1718144516487).format("MMMM, YYYY");return v.useEffect(()=>{ot&&xh.map(({code:Ie})=>Ie).includes(ot)&&a.language!==ot&&a.changeLanguage(ot)},[ot]),v.useEffect(()=>{window.plausible&&m&&window.plausible("App Start",{props:{deviceId:m,isPro:be,isBeta:Ee,isExpired:We}})},[m,be,We,Ee,window.plausible]),o.jsx("div",{"data-tauri-drag-region":!0,className:"h-[41px] absolute top-0 left-0 w-full",id:"navbar-panel_tour",children:o.jsxs(eB,{className:"border-0 !h-full border-b border-slate-200/50 dark:border-slate-500/50 rounded-b-none bg-gray-50 pl-3 hover:bg-white dark:hover:bg-gray-950 active:cursor-move active:bg-white transform duration-300 dark:bg-gray-900 dark:text-slate-300",children:[o.jsx(Cp,{children:o.jsx("div",{className:"inline-flex h-fit w-fit items-center text-cyan-500",children:o.jsx(RW,{width:28,height:28,"data-tauri-drag-region":!0})})}),o.jsxs(Cp,{children:[o.jsxs(Up,{className:"md m-0 px-2.5 text-sm font-semibold whitespace-nowrap",id:"navbar-pastebar_tour",children:[o.jsx(re,{className:"font-semibold",children:be?Ge?o.jsxs(o.Fragment,{children:[s("PasteBar",{ns:"common"})," ",o.jsx("span",{className:"text-amber-700 dark:text-amber-600 ml-1 opacity-80",children:s("Pro",{ns:"common"})})]}):s("PasteBar Pro",{ns:"common"}):s("PasteBar",{ns:"common"})}),Ee&&o.jsx(re,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),o.jsxs(Wp,{children:[o.jsxs(jn,{onClick:()=>{YS.value=!0},children:[s("About PasteBar",{ns:"common"}),o.jsx(os,{children:o.jsxs(st,{text:s("Build on {{buildDate}}",{ns:"common",buildDate:ft}),isCompact:!0,side:"right",children:["v","0.2.2",Ee?"b":""]})})]}),!be&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsx(jn,{onClick:()=>{c("/app-settings/license/register",{replace:!0})},children:s("Register License",{ns:"common"})})]}),be&&We&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsx(jn,{onClick:()=>{c("/app-settings/license",{replace:!0})},className:"text-amber-700 dark:text-amber-600",children:s("License Expired",{ns:"common"})})]}),O2.value?om.value?o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),J()},children:[s("Installing Update...",{ns:"updater"}),o.jsx(cM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):o.jsx(o.Fragment,{children:be&&We?o.jsxs(zs,{children:[o.jsx(ks,{className:"!font-semibold",children:ao.value?s("Confirm Restart",{ns:"updater"}):s("Confirm Update",{ns:"updater"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),o.jsxs(jn,{onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart",{ns:"updater"})}):o.jsx(re,{children:s("Install Update",{ns:"updater"})}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})]})]}):o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Try Install Again",{ns:"updater"})}):ao.value?s("Restart",{ns:"updater"}):s("Install Update",{ns:"updater"}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})}):o.jsx(jn,{onClick:Ie=>{Ie.preventDefault(),U(!0)},children:Pf.value?s("No Update Available",{ns:"updater"}):Al.value?s("Checking for Update...",{ns:"updater"}):s("Check for Update",{ns:"updater"})}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Settings",{ns:"settings"})," ..."]}),o.jsxs(Cs,{className:"w-[230px] dark:text-slate-300",children:[o.jsxs(jn,{onClick:()=>{c("/app-settings/history",{replace:!0})},children:[s("Clipboard History Settings",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsxs(jn,{onClick:()=>{c("/app-settings/collections",{replace:!0})},children:[s("Manage Collections",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+С"})})]}),o.jsx(jn,{onClick:()=>{c("/app-settings/preferences",{replace:!0})},children:s("User Preferences",{ns:"settings"})}),o.jsx(jn,{onClick:()=>{c("/app-settings/security",{replace:!0})},children:s("Security",{ns:"settings"})}),o.jsxs(jn,{onClick:()=>{c("/app-settings/license",{replace:!0})},children:[s("License",{ns:"settings"}),be&&o.jsx(os,{children:o.jsxs(st,{text:s("Expires on {{licenseExpInDays}}",{ns:"common",licenseExpInDays:Ve}),isCompact:!0,side:"right",children:["Pro",Ee?" (beta)":""]})})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Capture History",{ns:"history"})," ..."]}),o.jsxs(Cs,{className:"dark:text-slate-300 text-slate-800",children:[o.jsxs(va,{checked:Y,onClick:Ie=>{Ie.preventDefault(),z(!Y)},children:[o.jsx(re,{className:"mr-2 ".concat(Y?"text-slate-800":"text-slate-900/50"),children:s("Enable Capture History",{ns:"history"})}),o.jsx(os,{className:"ml-auto",children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsxs(va,{checked:ee,onClick:Ie=>{Ie.preventDefault(),te(!ee)},children:[o.jsx(re,{className:"mr-2 ".concat(ee?"text-slate-800":"text-slate-900/50"),children:s("Auto Update on Capture",{ns:"history"})}),o.jsx(os,{className:"ml-auto",children:o.jsx(po,{keys:"ALT+A"})})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{c("/app-settings/history",{replace:!0})},children:[o.jsx(rE,{className:"mr-2 h-4 w-4"}),s("All History Settings",{ns:"history"})," ..."]})]})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:o.jsxs(o.Fragment,{children:[s("Paste Delay",{ns:"contextMenus"}),"...",L&&o.jsxs(St,{className:"ml-2 py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[L,"s"]})]})}),o.jsxs(Cs,{className:"w-[235px] dark:text-slate-300",children:[o.jsx(va,{checked:L===1,onSelect:()=>{A(1)},children:o.jsxs(re,{children:["1 ",s("second",{ns:"common"})]})}),o.jsx(va,{checked:L===2,onSelect:()=>{A(2)},children:o.jsxs(re,{children:["2 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===3,onSelect:()=>{A(3)},children:o.jsxs(re,{children:["3 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===4,onSelect:()=>{A(4)},children:o.jsxs(re,{children:["4 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===5,onSelect:()=>{A(5)},children:o.jsxs(re,{children:["5 ",s("seconds",{ns:"common"})]})})]})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{window.location.reload()},children:[s("Refresh Application UI",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+R"})})]})]})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{Qi.value=!0},children:[s("Lock App Screen",{ns:"navbar"}),o.jsx(os,{className:"ml-1",children:"⌘L"})]}),o.jsxs(jn,{onClick:E,children:[s("Close Main Window",{ns:"navbar"}),o.jsx(os,{children:"⌘W"})]}),o.jsxs(jn,{onClick:N,children:[s("Quit",{ns:"common"}),o.jsx(os,{children:"⌘Q"})]})]})]}),o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal px-2.5",id:"navbar-view_tour",children:s("View",{ns:"navbar"})}),o.jsxs(Wp,{children:[o.jsxs(jn,{onClick:()=>{c("/history",{replace:!0})},children:[s("Clipboard History",{ns:"common"}),o.jsx(os,{children:"⌘B"})]}),o.jsxs(jn,{onClick:()=>{c("/menu",{replace:!0})},children:[s("Paste Menu",{ns:"common"}),o.jsx(os,{children:"⌘M"})]}),o.jsx(os,{}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Options",{ns:"navbar"})," ..."]}),o.jsxs(Cs,{className:"w-[235px] dark:text-slate-300",children:[o.jsxs(va,{checked:me,onClick:()=>{ce(!me)},children:[s("Swap Panels Layout",{ns:"navbar"}),o.jsx(os,{children:"⌘P"})]}),o.jsx(va,{checked:P,onClick:()=>{T(!P)},children:s("Show Collections Name",{ns:"navbar"})}),o.jsx(va,{checked:I,onClick:()=>{G(!I)},children:s("Show Disabled Collections",{ns:"settings"})}),o.jsx(Xr,{}),o.jsx(va,{checked:i,onClick:()=>ge(this,null,function*(){yield On("autostart",{enabled:!i}),l(!i)}),children:s("Enable Auto Start",{ns:"settings"})})]})]}),o.jsx(ske,{}),o.jsx(Xr,{}),o.jsxs(jn,{disabled:Z==="125%",onClick:Ie=>{Ie.preventDefault(),se()},children:[s("Increase UI Font Size",{ns:"settings"})," ",o.jsx(Vr,{width:"1em",height:"18",className:"ml-auto"})]}),o.jsxs(jn,{disabled:Z==="85%",onClick:Ie=>{Ie.preventDefault(),le()},children:[s("Decrease UI Font Size",{ns:"settings"})," ",o.jsx(Dz,{width:"1em",height:"18",className:"ml-auto"})]}),o.jsx(jn,{disabled:Z==="100%",onClick:Ie=>{Ie.preventDefault(),de()},children:s("Reset Font Size",{ns:"settings"})}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Language",{ns:"navbar"})," ..."]}),o.jsx(Cs,{children:xh.map(({code:Ie,name:Ke,flag:ut})=>o.jsxs(va,{disabled:ot&&Ie!==ot,checked:a.language===Ie,className:"pr-6 ".concat(a.language===Ie?"font-semibold":""),onClick:()=>{a.changeLanguage(Ie)},children:[o.jsx("span",{className:"flags mr-3",children:ut})," ",Ke]},Ie))})]})]})]}),C.length>0&&o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal min-w-fit px-2.5",id:"navbar-collections_tour",children:o.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[o.jsx(kce,{className:"mr-1.5 text-slate-500",size:18}),o.jsx(ne,{className:"overflow-hidden text-ellipsis max-w-[16rem]",children:P?(n=(e=C.find(({collectionId:Ie})=>Ie===b))==null?void 0:e.title)!=null?n:s("Collections",{ns:"collections"}):s("Collections",{ns:"collections"})})]})}),o.jsxs(Wp,{forceMount:!0,children:[o.jsx(jn,{inset:!0,disabled:!0,className:"py-0.5",children:s("Switch collections",{ns:"collections"})}),o.jsx(Xr,{}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:o.jsx(Kme,{value:b!=null?b:"",children:C.filter(({isEnabled:Ie})=>I||Ie).sort((Ie,Ke)=>{if(I){if(Ie.isEnabled&&!Ke.isEnabled)return-1;if(!Ie.isEnabled&&Ke.isEnabled)return 1}return Ie.createdAt-Ke.createdAt}).map(({collectionId:Ie,isEnabled:Ke,isSelected:ut,title:$e})=>o.jsx(tB,{value:Ie,disabled:!Ke,onClick:()=>{g({selectCollection:{collectionId:Ie}})},children:o.jsx("span",{className:ut?"font-semibold":"",children:$e})},Ie))})}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{c("/app-settings/collections",{replace:!0})},children:[o.jsx(zh,{className:"mr-2",size:14}),s("Manage Collections",{ns:"collections"})]}),o.jsxs(jn,{onClick:()=>{qe?c("/app-settings/collections/new",{replace:!0}):Ga.value=!0},children:[o.jsx(Vr,{className:"mr-2",size:15}),s("Add Collection",{ns:"collections"}),o.jsx(Jl,{})]})]})]}),o.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full w-full items-center justify-center",children:[o.jsx(rke,{isDark:w}),ye?o.jsx(je,{onClick:()=>{pe(!1)},id:"navbar-pinned_tour",title:s("Hide Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:o.jsx(Ho.pinoff,{className:"h-4 w-4"})}):o.jsxs(je,{onClick:()=>{pe(!0)},id:"navbar-pinned_tour",title:s("Show Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:[o.jsx(Ho.pin,{className:"h-4 w-4"}),_.length>0&&o.jsx(St,{variant:"outline",className:"bg-orange-100 dark:bg-orange-900/80 dark:border-orange-950 border absolute border-orange-50 cursor-pointer px-1.5 left-[30px] top",children:o.jsx(re,{className:"font-mono !text-orange-400 font-semibold",children:_.length})})]})]}),o.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full justify-end",children:[O2.value?o.jsxs(Cp,{children:[o.jsx(Up,{className:Lc.value?"bg-red-100/70 dark:bg-red-900/70":ao.value?"bg-amber-100/70 dark:bg-amber-900/70":"bg-teal-100/70 dark:bg-teal-900/70",children:o.jsx(st,{text:s("Version {{newVersion}} is available",{ns:"updater",newVersion:Gi.value}),sideOffset:16,side:"left",children:o.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[o.jsx(ne,{className:"overflow-hidden text-ellipsis max-w-[16rem] mr-2 text-[13px]",children:Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart to Finish",{ns:"updater"})}):o.jsx(re,{children:s("Update Available",{ns:"updater"})})}),o.jsx(Nz,{size:15})]})})}),o.jsxs(Wp,{children:[om.value?o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),J()},children:[s("Installing Update...",{ns:"updater"}),o.jsx(cM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):o.jsx(o.Fragment,{children:be&&We?o.jsxs(zs,{children:[o.jsx(ks,{className:"!font-semibold",children:ao.value?s("Confirm Restart",{ns:"updater"}):s("Confirm Update",{ns:"updater"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),o.jsxs(jn,{onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart",{ns:"updater"})}):o.jsx(re,{children:s("Install Update",{ns:"updater"})}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})]})]}):o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[ao.value?s("Restart",{ns:"updater"}):Lc.value?s("Try Install Again",{ns:"updater"}):s("Install Update",{ns:"updater"}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})}),be&&We&&o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Upgrade removes Pro features",{ns:"updater"})}),o.jsx(Xr,{}),((r=R2.value)==null?void 0:r.length)&&o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("View Changes",{ns:"updater"})," ..."]}),o.jsxs(Cs,{className:"w-[230px] dark:text-slate-300",children:[Gi.value&&o.jsx(jn,{disabled:!0,className:"!opacity-60",children:o.jsx(ne,{children:o.jsx(ne,{className:"text-sm",children:L2.value&&s("Release date {{date}}",{ns:"updater",date:L2.value})})})}),o.jsx(Xr,{}),R2.value.map((Ie,Ke)=>o.jsx(jn,{disabled:!0,className:"!opacity-80",children:Ie},Ke))]})]}),o.jsxs(jn,{onClick:()=>{M()},children:[s("Remind Me Later",{ns:"updater"}),o.jsx(os,{className:"ml-auto pl-2",children:o.jsx(nae,{size:14})})]}),be&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{$(Gi.value)},children:[s("Skip This Version",{ns:"updater"}),o.jsx(os,{className:"ml-auto pl-2",children:o.jsx(tae,{size:14})})]})]})]})]}):o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal px-2.5",id:"navbar-help_tour",children:s("Help",{ns:"help"})}),o.jsxs(Wp,{children:[o.jsxs(zs,{children:[o.jsx(ks,{children:s("App Guided Tours",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsxs(jn,{onClick:()=>{rr.value=En.historyPanelTour},children:[s("Clipboard History Tour",{ns:"help"}),H.includes(En.historyPanelTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.historyPanelTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"6"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.dashboardClipsTour},children:[s("Boards and Clips Tour",{ns:"help"}),H.includes(En.dashboardClipsTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.dashboardClipsTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"8"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.menuTour},children:[s("Paste Menu Tour",{ns:"help"}),H.includes(En.menuTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.menuTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"10"})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{rr.value=En.navBarTour},children:[s("Navigation Bar Tour",{ns:"help"}),H.includes(En.navBarTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.navBarTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"8"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.settingsTour},children:[s("PasteBar Settings Tour",{ns:"help"}),H.includes(En.settingsTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.settingsTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"6"})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Guided Tours Options",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{onClick:()=>{const Ie=Object.values(En);q([...Ie])},children:s("Mark All Completed",{ns:"help"})}),o.jsx(jn,{onClick:()=>{q([]),X([])},children:s("Reset All Tours",{ns:"help"})})]})]})]})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Feature Highlights",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsxs(zs,{children:[o.jsx(ks,{children:s("Clipboard History",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.historyPanelTour,{returnObjects:!0,defaultValue:[],lng:"en",ns:"tours"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.historyPanelTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Boards and Clips",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.dashboardClipsTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.dashboardClipsTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Paste Menu",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.menuTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.menuTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Navigation Bar",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.navBarTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.navBarTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("PasteBar Settings",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.settingsTour,{returnObjects:!0,defaultValue:[],lng:"en",ns:"tours"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.settingsTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Support and Feedback",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{onClick:()=>{ZS.value=!0},children:be?s("Priority Support Pro Form",{ns:"help"}):s("Contact Us Form",{ns:"help"})}),!be&&o.jsxs(jn,{onClick:()=>{Ga.value=!0},children:[s("Priority Support",{ns:"help"}),o.jsx(Jl,{})]}),o.jsx(Xr,{}),o.jsx(jn,{disabled:!0,className:"pb-0",children:o.jsxs(re,{className:"text-sm mb-2 flex justify-center items-center w-full",children:[s("Stay in touch",{ns:"common"}),o.jsx(P0,{className:"w-[13px] h-[13px] ml-1"})]})}),o.jsx(jn,{children:o.jsx(LW,{className:"!gap-2 grid grid-cols-4 items-center justify-center w-full",showContactForm:!1})})]})]})]})]})]}),o.jsx(je,{onClick:x,title:s("Window:::Minimize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:o.jsx(Ho.minimize,{className:"h-3 w-3"})}),o.jsx(je,{onClick:S,title:s("Window:::Maximize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:o.jsx(Xie,{className:"h-4 w-4"})}),o.jsx(je,{onClick:E,id:"navbar-close-window_tour",variant:"ghost",className:"h-8 focus:outline-none",title:s("Window:::Close Window",{ns:"navbar"}),children:o.jsx(In,{className:"h-4 w-4"})})]})]})})}finally{t.f()}}function fke(t){var a;const e=Te(6);let n,r;e[0]!==t?(a=t,{children:r}=a,n=Ne(a,["children"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;return e[3]!==n||e[4]!==r?(s=o.jsx(Fve,ae(R({},n),{children:r})),e[3]=n,e[4]=r,e[5]=s):s=e[5],s}function hke(){const t=Te(6);let e;if(t[0]===Symbol.for("react.memo_cache_sentinel")){const f=["Alt","Meta"];e=function(b){return f.includes(b.key)},t[0]=e}else e=t[0];const n=e;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=function(m){n(m)&&(Tn.value=!0)},t[1]=r):r=t[1];const s=r;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=function(m){n(m)&&(Tn.value=!1)},t[2]=a):a=t[2];const i=a;let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=function(){Tn.value=!1},t[3]=l):l=t[3];const c=l;let d,p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>(window.addEventListener("keydown",s),window.addEventListener("keyup",i),window.addEventListener("focus",c),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",i),window.removeEventListener("focus",c)}),p=[],t[4]=d,t[5]=p):(d=t[4],p=t[5]),v.useEffect(d,p),Tn}const pke=1,mke=16e3,Ub=[];let W1={toasts:[]},r4=0;function gke(){return r4=(r4+1)%Number.MAX_VALUE,r4.toString()}const Wb=new Map,RI=t=>{if(Wb.has(t))return;const e=setTimeout(()=>{Wb.delete(t),nd({type:"DISMISS_TOAST",toastId:t,remove:!0})},mke);Wb.set(t,e)},vke=(t,e)=>{switch(e.type){case"ADD_TOAST":return t.toasts.some(r=>r.id===e.toast.id)?t:ae(R({},t),{toasts:[e.toast,...t.toasts].slice(0,pke)});case"UPDATE_TOAST":return ae(R({},t),{toasts:t.toasts.map(r=>r.id===e.toast.id?R(R({},r),e.toast):r)});case"DISMISS_TOAST":{const{toastId:r,remove:s}=e;return s?(Wb.clear(),ae(R({},t),{toasts:[]})):(r?RI(r):t.toasts.forEach(a=>{a.id&&RI(a.id)}),ae(R({},t),{toasts:t.toasts.map(a=>a.id===r||r===void 0?ae(R({},a),{open:!1}):a)}))}default:return t}};function nd(t){W1=vke(W1,t),Ub.forEach(e=>{e(W1)})}function xke(e){var t=Ne(e,[]);const n=(t==null?void 0:t.id)||gke();if(t.id&&W1.toasts.some(i=>i.id===t.id))return nd({type:"UPDATE_TOAST",toast:ae(R({},t),{open:!0})}),{id:t.id,dismiss:()=>nd({type:"DISMISS_TOAST",toastId:t.id}),update:i=>nd({type:"UPDATE_TOAST",toast:ae(R({},i),{id:n})})};const r=a=>nd({type:"UPDATE_TOAST",toast:ae(R({},a),{id:n})}),s=()=>nd({type:"DISMISS_TOAST",toastId:n});return nd({type:"ADD_TOAST",toast:ae(R({},t),{id:n,open:!0,onOpenChange:a=>{a||s()}})}),{id:n,dismiss:s,update:r}}function bk(){const t=Te(6),[e,n]=Vt.useState(W1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>(Ub.push(n),()=>{const l=Ub.indexOf(n);l>-1&&Ub.splice(l,1)}),t[0]=r):r=t[0];let s;t[1]!==e?(s=[e],t[1]=e,t[2]=s):s=t[2],Vt.useEffect(r,s);let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=l=>nd({type:"DISMISS_TOAST",toastId:l}),t[3]=a):a=t[3];let i;return t[4]!==e?(i=ae(R({},e),{toast:xke,dismiss:a}),t[4]=e,t[5]=i):i=t[5],i}const rd=Rt(""),yke=({delay:t=800,onCopied:e=()=>{}})=>{var n=sn(2);try{const{copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:s}=Tt(Cr),a=l=>{l&&!rd.value&&(rd.value=l,setTimeout(()=>{Gs("copy_history_item",{historyId:l}).then(c=>{c==="ok"?requestAnimationFrame(()=>{rd.value="",e()}):(rd.value="",console.error("Failed to copy history item",c))}).catch(c=>{rd.value="",console.error("Failed to copy history item",c)})},t))},i=l=>ge(void 0,null,function*(){s&&(l=l.reverse());for(const c of l)a(c),yield new Promise(d=>setTimeout(d,r*1e3))});return[rd.value,a,i]}finally{n.f()}},sd=Rt(""),Jg=Rt(0),bke=({delay:t=800,onPasted:e=()=>{}})=>{var n=sn(2);try{const{copyPasteDelay:r,copyPasteSequencePinnedDelay:s,copyPasteSequenceIsReversOrder:a}=Tt(Cr),i=v.useRef(),l=(f,m=0)=>new Promise((b,C)=>{Gs("copy_paste_history_item",{historyId:f,delay:m}).then(g=>{g==="ok"?b():(sd.value="",console.error("Failed to copy history item",g),C())}).catch(g=>{sd.value="",console.error("Failed to copy history item",g),C()})}),c=v.useCallback((f,m=1e3)=>(clearInterval(i.current),new Promise(b=>{Jg.value=f,i.current=setInterval(()=>{Jg.value>0?(Jg.value===1&&b(),Jg.value-=1):clearInterval(i.current)},m)})),[sd.value]),d=(f,m)=>new Promise(b=>ge(void 0,null,function*(){m=m!=null?m:r,f?(sd.value=f,m>0&&(yield c(m)),yield l(f),setTimeout(()=>{requestAnimationFrame(()=>{e(),b()})},t)):(sd.value="",b())})),p=f=>ge(void 0,null,function*(){a&&(f=f.reverse());for(const m of f)yield d(m,s)});return[sd.value,Jg.value,d,p]}finally{n.f()}},wke=()=>window.__TAURI_INVOKE__;function kke(){return wke()("app_ready")}var cb={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const OI=["mousemove","keydown","scroll","keypress","mousedown"];function Cke(){var t=sn(1);try{hke();const e=Dn(),n=ua(),r=Tt(Ls),s=it(null),a=Tt(Cr),i=Tt(bo),l=Tt(_i),c=v.useRef(),{i18n:d,t:p}=Gt(),{toast:f}=bk(),m=v.useCallback(Xz(()=>{s.value===null||Qi.value||(Qi.value=!1,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{Qi.value=!0},s.value))},1e3),[s]);v.useEffect(()=>{Qi.value?a.setIsAppLocked(!0):a.setIsAppLocked(!1)},[Qi.value]),v.useEffect(()=>{kke().then(_=>{var P,I,T,L,A,z,Y,O,$,M,W,V,U,J,H,F,q,X,te,ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve,Ge,ft,Ie,Ke,ut,$e,ht,Fe,pt,Qe,Lt,Ut,wt,Xt,$t,tn,Pt,Ue,Je,jt,we,Se,De;if(_!==null)try{const{constants:nt,settings:Pe,permissionstrusted:gt}=JSON.parse(_),{app_dev_data_dir:Ze,app_data_dir:Re,app_detect_languages_supported:Oe}=nt;if((P=Pe.userSelectedLanguage)!=null&&P.valueText&&((I=Pe.userSelectedLanguage)==null?void 0:I.valueText)!==""&&d.language!==((T=Pe.userSelectedLanguage)==null?void 0:T.valueText)&&d.changeLanguage(Pe.userSelectedLanguage.valueText),((L=Pe.userSelectedLanguage)==null?void 0:L.valueText)===""&&d.resolvedLanguage!=="en"&&d.changeLanguage(d.resolvedLanguage),a.initSettings({appDataDir:cb.TAURI_DEBUG?Ze:Re,appLastUpdateVersion:(A=Pe.appLastUpdateVersion)==null?void 0:A.valueText,appLastUpdateDate:(z=Pe.appLastUpdateDate)==null?void 0:z.valueText,isFirstRun:(Y=Pe.isFirstRun)==null?void 0:Y.valueBool,isFirstRunAfterUpdate:(O=Pe.isFirstRunAfterUpdate)==null?void 0:O.valueBool,isHistoryDetectLanguageEnabled:($=Pe.isHistoryDetectLanguageEnabled)==null?void 0:$.valueBool,historyDetectLanguageMinLines:(M=Pe.historyDetectLanguageMinLines)==null?void 0:M.valueInt,historyExclusionList:(W=Pe.historyExclusionList)==null?void 0:W.valueText,isExclusionListEnabled:(V=Pe.isExclusionListEnabled)==null?void 0:V.valueBool,isAutoMaskWordsListEnabled:(U=Pe.isAutoMaskWordsListEnabled)==null?void 0:U.valueBool,autoMaskWordsList:(J=Pe.autoMaskWordsList)==null?void 0:J.valueText,historyDetectLanguagesPrioritizedList:(H=Pe.historyDetectLanguagesPrioritizedList)==null?void 0:H.valueText.split(","),historyDetectLanguagesEnabledList:(F=Pe.historyDetectLanguagesEnabledList)==null?void 0:F.valueText.split(","),appToursCompletedList:(q=Pe.appToursCompletedList)==null?void 0:q.valueText.split(","),appToursSkippedList:(X=Pe.appToursSkippedList)==null?void 0:X.valueText.split(","),isHistoryAutoUpdateOnCaputureEnabled:(te=Pe.isHistoryAutoUpdateOnCaputureEnabled)==null?void 0:te.valueBool,isHistoryEnabled:(ee=Pe.isHistoryEnabled)==null?void 0:ee.valueBool,isAutoClearSettingsEnabled:(G=Pe.isAutoClearSettingsEnabled)==null?void 0:G.valueBool,autoClearSettingsDuration:(Z=Pe.autoClearSettingsDuration)==null?void 0:Z.valueInt,autoClearSettingsDurationType:(le=Pe.autoClearSettingsDurationType)==null?void 0:le.valueText,copyPasteDelay:(se=Pe.copyPasteDelay)==null?void 0:se.valueInt,copyPasteSequencePinnedDelay:(ce=(de=Pe.copyPasteSequencePinnedDelay)==null?void 0:de.valueInt)!=null?ce:3,copyPasteSequenceIsReversOrder:(ye=Pe.copyPasteSequenceIsReversOrder)==null?void 0:ye.valueBool,pasteSequenceEachSeparator:(pe=Pe.pasteSequenceEachSeparator)==null?void 0:pe.valueText,isAutoCloseOnCopyPaste:(me=Pe.isAutoCloseOnCopyPaste)==null?void 0:me.valueBool,isAutoPreviewLinkCardsEnabled:(be=Pe.isAutoPreviewLinkCardsEnabled)==null?void 0:be.valueBool,isClipNotesHoverCardsEnabled:(Ee=Pe.isClipNotesHoverCardsEnabled)==null?void 0:Ee.valueBool,clipNotesHoverCardsDelayMS:(We=Pe.clipNotesHoverCardsDelayMS)==null?void 0:We.valueInt,clipNotesMaxWidth:(qe=Pe.clipNotesMaxWidth)==null?void 0:qe.valueInt,clipNotesMaxHeight:(ot=Pe.clipNotesMaxHeight)==null?void 0:ot.valueInt,isAutoFavoriteOnDoubleCopyEnabled:(Ve=Pe.isAutoFavoriteOnDoubleCopyEnabled)==null?void 0:Ve.valueBool,isIdleScreenAutoLockEnabled:(Ge=Pe.isIdleScreenAutoLockEnabled)==null?void 0:Ge.valueBool,idleScreenAutoLockTimeInMinutes:(ft=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:ft.valueInt,isShowHistoryCaptureOnLockedScreen:(Ie=Pe.isShowHistoryCaptureOnLockedScreen)==null?void 0:Ie.valueBool,screenLockPassCode:(Ke=Pe.screenLockPassCode)==null?void 0:Ke.valueText,screenLockPassCodeLength:(ut=Pe.screenLockPassCodeLength)==null?void 0:ut.valueInt,screenLockRecoveryPasswordMasked:($e=Pe.screenLockRecoveryPasswordMasked)==null?void 0:$e.valueText,isAppLocked:(ht=Pe.isAppLocked)==null?void 0:ht.valueBool,isScreenLockPassCodeRequireOnStart:(Fe=Pe.isScreenLockPassCodeRequireOnStart)==null?void 0:Fe.valueBool,isSearchNameOrLabelOnly:(pt=Pe.isSearchNameOrLabelOnly)==null?void 0:pt.valueBool,isSkipAutoStartPrompt:(Qe=Pe.isSkipAutoStartPrompt)==null?void 0:Qe.valueBool,isShowCollectionNameOnNavBar:(Lt=Pe.isShowCollectionNameOnNavBar)==null?void 0:Lt.valueBool,isShowDisabledCollectionsOnNavBarMenu:(Ut=Pe.isShowDisabledCollectionsOnNavBarMenu)==null?void 0:Ut.valueBool,userSelectedLanguage:(wt=Pe.userSelectedLanguage)==null?void 0:wt.valueText,licenseKey:(Xt=Pe.licenseKey)==null?void 0:Xt.valueText,isAppReady:!0}),a.initConstants({APP_DETECT_LANGUAGES_SUPPORTED:Oe}),CT().then(et=>{var Et;et==="Windows_NT"&&((Et=Pe.copyPasteDelay)==null?void 0:Et.valueInt)===0&&a.updateSetting("copyPasteDelay",2)}),($t=Pe.isFirstRun)!=null&&$t.valueBool&&(Es.setSize(new uv(1105,710)),a.updateSetting("isFirstRun",!1)),(tn=Pe.isIdleScreenAutoLockEnabled)!=null&&tn.valueBool&&((Pt=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:Pt.valueInt)>0&&(OI.forEach(et=>window.addEventListener(et,m)),s.value=((Ue=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:Ue.valueInt)*1e3*60),((Je=Pe.isAppLocked)!=null&&Je.valueBool||(jt=Pe.isScreenLockPassCodeRequireOnStart)!=null&&jt.valueBool)&&(Qi.value=!0),!((we=Pe.appToursCompletedList)!=null&&we.valueText.split(",").includes(En.historyPanelTour))&&!((Se=Pe.appToursSkippedList)!=null&&Se.valueText.split(",").includes(En.historyPanelTour))&>){const et=f({title:"".concat(p("Welcome to PasteBar",{ns:"help"})," 🎉"),id:"welcome-tour",duration:0,description:o.jsxs(o.Fragment,{children:[p("WelcomeDescription",{ns:"help"}),o.jsx(ve,{className:"mt-3",children:p("WelcomeTour",{ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{rr.value=En.historyPanelTour,et==null||et.dismiss()},children:p("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{et==null||et.dismiss()},children:p("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{et==null||et.dismiss();const Et=Object.values(En);a.setAppToursSkippedList([...Et])},children:p("Skip All Tours",{ns:"help"})})]})]})]})})}(De=Pe.isSkipAutoStartPrompt)!=null&&De.valueBool||Gs("is_autostart_enabled").then(et=>ge(this,null,function*(){if(!et&&(yield S2("Start the app at system startup?",{title:"PasteBar auto start",okLabel:"Turn on",cancelLabel:"Later"})))try{yield Gs("autostart",{enabled:!0})}catch(bt){console.error(bt)}})),gt===!1&&(A2.value=!0)}catch(nt){console.error(nt)}}),CT().then(_=>{r.setOSType(_)}),Es.innerSize().then(_=>{const{width:P,height:I}=_;(P<740||I<600)&&Es.setSize(new uv(750,620))}),i.deviceId===""&&Gs("get_device_id").then(_=>{const P=_;i.setDeviceId(P)}),(!cb.TAURI_DEBUG||cb.VITE_ENABLE_DEV_AUTO_UPDATER)&&a.checkForUpdate();const g=Xi("clipboard://clipboard-monitor/update",_=>ge(this,null,function*(){_.payload==="clipboard update"&&(rd.value&&(yield new Promise(P=>setTimeout(P,600)),rd.value=""),sd.value&&(yield new Promise(P=>setTimeout(P,600)),sd.value=""),yield e.invalidateQueries({queryKey:["get_clipboard_history"]}),yield e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}),setTimeout(()=>{l.scrollToTopHistoryList()},100),setTimeout(()=>{e.setQueryData(["get_clipboard_history"],P=>{if(P)return ae(R({},P),{pages:P.pages.slice(0,1),pageParams:P.pageParams.slice(0,1)})})},1e3),Gs("build_system_menu"))})),w=Xi("clips://clips-monitor/update",_=>ge(this,null,function*(){_.payload==="update"&&(yield e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}))})),x=Xi("macosx-permissions-modal",_=>ge(this,null,function*(){_.payload==="show"&&(A2.value=!0)})),S=Xi("setting:update",_=>ge(this,null,function*(){const{name:P,value_bool:I}=_.payload;P==="isHistoryEnabled"&&a.updateSetting("isHistoryEnabled",!!I)})),E=Xi("menu:add_first_menu_item",()=>ge(this,null,function*(){n("/menu",{replace:!0})})),N=Xi("scheme-request-received",_=>{const P=_.payload;if(!P)return;const I=new URL(P);if(I.hostname==="activate-license"||I.pathname.includes("activate-license")){const T=I.searchParams.get("key");let L=null,A=null;try{if(A=yk(T),!A)throw new Error("Invalid license key");if(typeof A.id=="string"&&A.id.length>0)L=null;else throw new Error("Invalid license key")}catch(z){return yo(p("License key validation failed. Please try another key.",{ns:"common"}),{title:p("Activation Error",{ns:"common"}),type:"error"}),L=z,!1}if(A.id&&L===null){const z=p("Do you want to activate license below?"),Y=p("Name: {{name}}",{name:A.name}),O=p("Email: {{email}}",{email:A.email}),$=p("License Key: {{key}}",{key:yv(T,10,10,180)});S2("".concat(z,"\n\n").concat(Y,"\n").concat(O,"\n\n").concat($),{title:p("PasteBar Pro License Activation",{ns:"common"}),okLabel:p("Yes, activate",{ns:"common"}),cancelLabel:p("Cancel",{ns:"common"})}).then(M=>{M&&(n0.value=!1,Ga.value=!1,n("/app-settings/license/register",{replace:!0,state:{ls:T}}))})}}else if(I.hostname==="shared-clip"||I.pathname.includes("shared-clip"))return});return d.on("languageChanged",function(){return ge(this,null,function*(){yield e.invalidateQueries({queryKey:["get_clipboard_history"]})})}),window.addEventListener("contextmenu",_=>{cb.TAURI_DEBUG||_.preventDefault()}),()=>{N.then(_=>{_()}),g.then(_=>{_()}),E.then(_=>{_()}),w.then(_=>{_()}),S.then(_=>{_()}),x.then(_=>{_()}),c.current&&clearTimeout(c.current),OI.forEach(_=>window.removeEventListener(_,m))}},[]);const b=Tt(Ls);return v.useEffect(()=>{document.documentElement.style.fontSize=b.fontSize},[b.fontSize]),o.jsx(o.Fragment,{children:o.jsx(fke,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:o.jsx("div",{className:"bg-transparent ".concat(r.isMacOSX?"p-0":"p-1"," rounded-md"),children:o.jsxs("div",{className:"border rounded-lg shadow-window border-gray-100 dark:border-gray-800 relative bg-slate-100",children:[o.jsx(dke,{}),o.jsx(F7,{})]})})})})}finally{t.f()}}function Ske(){const t=Te(8),{direction:e,setDirection:n}=Tt(bo);let r;t[0]!==n?(r=c=>{n(c)},t[0]=n,t[1]=r):r=t[1];const s=r;let a,i;t[2]!==e?(a=()=>{if(window===void 0)return;window.document.documentElement.setAttribute("dir",e)},i=[e],t[2]=e,t[3]=a,t[4]=i):(a=t[3],i=t[4]),v.useEffect(a,i);let l;return t[5]!==e||t[6]!==s?(l=[e,s],t[5]=e,t[6]=s,t[7]=l):l=t[7],l}const OW="ToastProvider",[W7,jke,Eke]=D0("Toast"),[$W,M7e]=_a("Toast",[Eke]),[Nke,wk]=$W(OW),zW=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=t,[l,c]=v.useState(null),[d,p]=v.useState(0),f=v.useRef(!1),m=v.useRef(!1);return v.createElement(W7.Provider,{scope:e},v.createElement(Nke,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:v.useCallback(()=>p(b=>b+1),[]),onToastRemove:v.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m},i))};zW.propTypes={label(t){if(t.label&&typeof t.label=="string"&&!t.label.trim()){const e="Invalid prop `label` supplied to `".concat(OW,"`. Expected non-empty `string`.");return new Error(e)}return null}};const _ke="ToastViewport",Tke=["F8"],fj="toast.viewportPause",hj="toast.viewportResume",Pke=v.forwardRef((t,e)=>{const w=t,{__scopeToast:n,hotkey:r=Tke,label:s="Notifications ({hotkey})"}=w,a=Ne(w,["__scopeToast","hotkey","label"]),i=wk(_ke,n),l=jke(n),c=v.useRef(null),d=v.useRef(null),p=v.useRef(null),f=v.useRef(null),m=tr(e,f,i.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=i.toastCount>0;v.useEffect(()=>{const x=S=>{var E;r.every(_=>S[_]||S.code===_)&&((E=f.current)===null||E===void 0||E.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{const x=c.current,S=f.current;if(C&&x&&S){const E=()=>{if(!i.isClosePausedRef.current){const I=new CustomEvent(fj);S.dispatchEvent(I),i.isClosePausedRef.current=!0}},N=()=>{if(i.isClosePausedRef.current){const I=new CustomEvent(hj);S.dispatchEvent(I),i.isClosePausedRef.current=!1}},_=I=>{!x.contains(I.relatedTarget)&&N()},P=()=>{x.contains(document.activeElement)||N()};return x.addEventListener("focusin",E),x.addEventListener("focusout",_),x.addEventListener("pointermove",E),x.addEventListener("pointerleave",P),window.addEventListener("blur",E),window.addEventListener("focus",N),()=>{x.removeEventListener("focusin",E),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",E),x.removeEventListener("pointerleave",P),window.removeEventListener("blur",E),window.removeEventListener("focus",N)}}},[C,i.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:x})=>{const E=l().map(N=>{const _=N.ref.current,P=[_,...qke(_)];return x==="forwards"?P:P.reverse()});return(x==="forwards"?E.reverse():E).flat()},[l]);return v.useEffect(()=>{const x=f.current;if(x){const S=E=>{const N=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!N){const L=document.activeElement,A=E.shiftKey;if(E.target===x&&A){var P;(P=d.current)===null||P===void 0||P.focus();return}const O=g({tabbingDirection:A?"backwards":"forwards"}),$=O.findIndex(M=>M===L);if(s4(O.slice($+1)))E.preventDefault();else{var I,T;A?(I=d.current)===null||I===void 0||I.focus():(T=p.current)===null||T===void 0||T.focus()}}};return x.addEventListener("keydown",S),()=>x.removeEventListener("keydown",S)}},[l,g]),v.createElement(Fue,{ref:c,role:"region","aria-label":s.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:C?void 0:"none"}},C&&v.createElement($I,{ref:d,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});s4(x)}}),v.createElement(W7.Slot,{scope:n},v.createElement(_n.ol,at({tabIndex:-1},a,{ref:m}))),C&&v.createElement($I,{ref:p,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});s4(x)}}))}),Mke="ToastFocusProxy",$I=v.forwardRef((t,e)=>{const i=t,{__scopeToast:n,onFocusFromOutsideViewport:r}=i,s=Ne(i,["__scopeToast","onFocusFromOutsideViewport"]),a=wk(Mke,n);return v.createElement(P5,at({"aria-hidden":!0,tabIndex:0},s,{ref:e,style:{position:"fixed"},onFocus:l=>{var c;const d=l.relatedTarget;!((c=a.viewport)!==null&&c!==void 0&&c.contains(d))&&r()}}))}),kk="Toast",Dke="toast.swipeStart",Ike="toast.swipeMove",Ake="toast.swipeCancel",Lke="toast.swipeEnd",Rke=v.forwardRef((t,e)=>{const d=t,{forceMount:n,open:r,defaultOpen:s,onOpenChange:a}=d,i=Ne(d,["forceMount","open","defaultOpen","onOpenChange"]),[l=!0,c]=ca({prop:r,defaultProp:s,onChange:a});return v.createElement(No,{present:n||l},v.createElement(FW,at({open:l},i,{ref:e,onClose:()=>c(!1),onPause:Qs(t.onPause),onResume:Qs(t.onResume),onSwipeStart:Ot(t.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ot(t.onSwipeMove,p=>{const{x:f,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(f,"px")),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(m,"px"))}),onSwipeCancel:Ot(t.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ot(t.onSwipeEnd,p=>{const{x:f,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(f,"px")),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(m,"px")),c(!1)})})))}),[Oke,$ke]=$W(kk,{onClose(){}}),FW=v.forwardRef((t,e)=>{const $=t,{__scopeToast:n,type:r="foreground",duration:s,open:a,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:b}=$,C=Ne($,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),g=wk(kk,n),[w,x]=v.useState(null),S=tr(e,M=>x(M)),E=v.useRef(null),N=v.useRef(null),_=s||g.duration,P=v.useRef(0),I=v.useRef(_),T=v.useRef(0),{onToastAdd:L,onToastRemove:A}=g,z=Qs(()=>{var M;(w==null?void 0:w.contains(document.activeElement))&&((M=g.viewport)===null||M===void 0||M.focus()),i()}),Y=v.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),P.current=new Date().getTime(),T.current=window.setTimeout(z,M))},[z]);v.useEffect(()=>{const M=g.viewport;if(M){const W=()=>{Y(I.current),d==null||d()},V=()=>{const U=new Date().getTime()-P.current;I.current=I.current-U,window.clearTimeout(T.current),c==null||c()};return M.addEventListener(fj,V),M.addEventListener(hj,W),()=>{M.removeEventListener(fj,V),M.removeEventListener(hj,W)}}},[g.viewport,_,c,d,Y]),v.useEffect(()=>{a&&!g.isClosePausedRef.current&&Y(_)},[a,_,g.isClosePausedRef,Y]),v.useEffect(()=>(L(),()=>A()),[L,A]);const O=v.useMemo(()=>w?WW(w):null,[w]);return g.viewport?v.createElement(v.Fragment,null,O&&v.createElement(zke,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),v.createElement(Oke,{scope:n,onClose:z},ra.createPortal(v.createElement(W7.ItemSlot,{scope:n},v.createElement(zue,{asChild:!0,onEscapeKeyDown:Ot(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||z(),g.isFocusedToastEscapeKeyDownRef.current=!1})},v.createElement(_n.li,at({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":g.swipeDirection},C,{ref:S,style:R({userSelect:"none",touchAction:"none"},t.style),onKeyDown:Ot(t.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Ot(t.onPointerDown,M=>{M.button===0&&(E.current={x:M.clientX,y:M.clientY})}),onPointerMove:Ot(t.onPointerMove,M=>{if(!E.current)return;const W=M.clientX-E.current.x,V=M.clientY-E.current.y,U=!!N.current,J=["left","right"].includes(g.swipeDirection),H=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,F=J?H(0,W):0,q=J?0:H(0,V),X=M.pointerType==="touch"?10:2,te={x:F,y:q},ee={originalEvent:M,delta:te};U?(N.current=te,ub(Ike,f,ee,{discrete:!1})):zI(te,g.swipeDirection,X)?(N.current=te,ub(Dke,p,ee,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(W)>X||Math.abs(V)>X)&&(E.current=null)}),onPointerUp:Ot(t.onPointerUp,M=>{const W=N.current,V=M.target;if(V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),N.current=null,E.current=null,W){const U=M.currentTarget,J={originalEvent:M,delta:W};zI(W,g.swipeDirection,g.swipeThreshold)?ub(Lke,b,J,{discrete:!0}):ub(Ake,m,J,{discrete:!0}),U.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})))),g.viewport))):null});FW.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e="Invalid prop `type` supplied to `".concat(kk,"`. Expected `foreground | background`.");return new Error(e)}return null}};const zke=t=>{const d=t,{__scopeToast:e,children:n}=d,r=Ne(d,["__scopeToast","children"]),s=wk(kk,e),[a,i]=v.useState(!1),[l,c]=v.useState(!1);return Wke(()=>i(!0)),v.useEffect(()=>{const p=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(p)},[]),l?null:v.createElement(du,{asChild:!0},v.createElement(P5,r,a&&v.createElement(v.Fragment,null,s.label," ",n)))},Fke=v.forwardRef((t,e)=>{const s=t,{__scopeToast:n}=s,r=Ne(s,["__scopeToast"]);return v.createElement(_n.div,at({},r,{ref:e}))}),Hke=v.forwardRef((t,e)=>{const s=t,{__scopeToast:n}=s,r=Ne(s,["__scopeToast"]);return v.createElement(_n.div,at({},r,{ref:e}))}),Bke="ToastAction",HW=v.forwardRef((t,e)=>{const s=t,{altText:n}=s,r=Ne(s,["altText"]);return n?v.createElement(UW,{altText:n,asChild:!0},v.createElement(BW,at({},r,{ref:e}))):null});HW.propTypes={altText(t){return t.altText?null:new Error("Missing prop `altText` expected on `".concat(Bke,"`"))}};const Uke="ToastClose",BW=v.forwardRef((t,e)=>{const a=t,{__scopeToast:n}=a,r=Ne(a,["__scopeToast"]),s=$ke(Uke,n);return v.createElement(UW,{asChild:!0},v.createElement(_n.button,at({type:"button"},r,{ref:e,onClick:Ot(t.onClick,s.onClose)})))}),UW=v.forwardRef((t,e)=>{const a=t,{__scopeToast:n,altText:r}=a,s=Ne(a,["__scopeToast","altText"]);return v.createElement(_n.div,at({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},s,{ref:e}))});function WW(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),Vke(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...WW(r))}}),e}function ub(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,a=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?I8(s,a):s.dispatchEvent(a)}const zI=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),a=r>s;return e==="left"||e==="right"?a&&r>n:!a&&s>n};function Wke(t=()=>{}){const e=Qs(t);Zo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function Vke(t){return t.nodeType===t.ELEMENT_NODE}function qke(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function s4(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}const Kke=zW,VW=Pke,qW=Rke,KW=Fke,GW=Hke,YW=HW,ZW=BW,Gke=Kke,XW=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("fixed top-14 right-4 z-[100000] flex max-h-screen w-full px-3 py-2 flex-col max-w-[420px]",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(VW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});XW.displayName=VW.displayName;const Yke=tf("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border px-5 py-4 shadow-md transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-10 data-[state=open]:slide-in-from-right-2/3 data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background dark:bg-gray-900 border",success:"bg-green-50 dark:bg-green-950 bg-green-100 dark:bg-green-900",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),QW=v.forwardRef((t,e)=>{var c;const n=Te(11);let r,s,a;n[0]!==t?(c=t,{className:s,variant:r}=c,a=Ne(c,["className","variant"]),n[0]=t,n[1]=r,n[2]=s,n[3]=a):(r=n[1],s=n[2],a=n[3]);let i;n[4]!==r||n[5]!==s?(i=qt(Yke({variant:r}),s),n[4]=r,n[5]=s,n[6]=i):i=n[6];let l;return n[7]!==e||n[8]!==i||n[9]!==a?(l=o.jsx(qW,R({ref:e,className:i},a)),n[7]=e,n[8]=i,n[9]=a,n[10]=l):l=n[10],l});QW.displayName=qW.displayName;const Zke=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-destructive/30 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(YW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});Zke.displayName=YW.displayName;const JW=v.forwardRef((t,e)=>{var c;const n=Te(10);let r,s;n[0]!==t?(c=t,{className:r}=c,s=Ne(c,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),n[3]=r,n[4]=a):a=n[4];let i;n[5]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(In,{className:"h-5 w-5"}),n[5]=i):i=n[5];let l;return n[6]!==e||n[7]!==a||n[8]!==s?(l=o.jsx(ZW,ae(R({ref:e,className:a,"toast-close":""},s),{children:i})),n[6]=e,n[7]=a,n[8]=s,n[9]=l):l=n[9],l});JW.displayName=ZW.displayName;const eV=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("text-base font-semibold",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(KW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});eV.displayName=KW.displayName;const tV=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("text-base",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(GW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});tV.displayName=GW.displayName;function Xke(){const t=Te(29),{toasts:e,dismiss:n}=bk(),[r,s]=v.useState(null);let a,i;t[0]!==e?(a=()=>{e.length>0?s(e[0]):s(null)},i=[e],t[0]=e,t[1]=a,t[2]=i):(a=t[1],i=t[2]),v.useEffect(a,i);let l;t[3]!==r?(l=r||{},t[3]=r,t[4]=l):l=t[4];let c,d,p,f,m;if(t[5]!==l){const _=l,{id:P,title:I,description:T,className:L,action:A}=_,z=Ne(_,["id","title","description","className","action"]);c=P,p=I,f=T,d=L,m=z,t[5]=l,t[6]=c,t[7]=d,t[8]=p,t[9]=f,t[10]=m}else c=t[6],d=t[7],p=t[8],f=t[9],m=t[10];const b="".concat(d," ").concat(!c&&"hidden");let C;t[11]!==p?(C=p&&o.jsx(eV,{children:p}),t[11]=p,t[12]=C):C=t[12];let g;t[13]!==f?(g=f&&o.jsx(tV,{children:f}),t[13]=f,t[14]=g):g=t[14];let w;t[15]!==C||t[16]!==g?(w=o.jsxs("div",{className:"grid gap-1",children:[C,g]}),t[15]=C,t[16]=g,t[17]=w):w=t[17];let x;t[18]!==n||t[19]!==c?(x=o.jsx(JW,{onClick:()=>{n(c)}}),t[18]=n,t[19]=c,t[20]=x):x=t[20];let S;t[21]!==m||t[22]!==b||t[23]!==w||t[24]!==x?(S=o.jsxs(QW,ae(R({},m),{className:b,children:[w,x]})),t[21]=m,t[22]=b,t[23]=w,t[24]=x,t[25]=S):S=t[25];let E;t[26]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(XW,{className:"!max-w-[450px]"}),t[26]=E):E=t[26];let N;return t[27]!==S?(N=o.jsxs(Gke,{duration:12e3,children:[S,E]}),t[27]=S,t[28]=N):N=t[28],N}var nV=A5(),a4=function(){},Ck=v.forwardRef(function(t,e){var n=v.useRef(null),r=v.useState({onScrollCapture:a4,onWheelCapture:a4,onTouchMoveCapture:a4}),s=r[0],a=r[1],i=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,p=t.enabled,f=t.shards,m=t.sideCar,b=t.noIsolation,C=t.inert,g=t.allowPinchZoom,w=t.as,x=w===void 0?"div":w,S=yx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=m,N=I5([n,e]),_=br(br({},S),s);return v.createElement(v.Fragment,null,p&&v.createElement(E,{sideCar:nV,removeScrollBar:d,shards:f,noIsolation:b,inert:C,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),i?v.cloneElement(v.Children.only(l),br(br({},_),{ref:N})):v.createElement(x,br({},_,{className:c,ref:N}),l))});Ck.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ck.classNames={fullWidth:ih,zeroRight:oh};var pj=!1;if(typeof window!="undefined")try{var db=Object.defineProperty({},"passive",{get:function(){return pj=!0,!0}});window.addEventListener("test",db,db),window.removeEventListener("test",db,db)}catch(t){pj=!1}var Dp=pj?{passive:!1}:!1,Qke=function(t){return t.tagName==="TEXTAREA"},rV=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qke(t)&&n[e]==="visible")},Jke=function(t){return rV(t,"overflowY")},e3e=function(t){return rV(t,"overflowX")},FI=function(t,e){var n=e;do{typeof ShadowRoot!="undefined"&&n instanceof ShadowRoot&&(n=n.host);var r=sV(t,n);if(r){var s=aV(t,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},t3e=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},n3e=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},sV=function(t,e){return t==="v"?Jke(e):e3e(e)},aV=function(t,e){return t==="v"?t3e(e):n3e(e)},r3e=function(t,e){return t==="h"&&e==="rtl"?-1:1},s3e=function(t,e,n,r,s){var a=r3e(t,window.getComputedStyle(e).direction),i=a*r,l=n.target,c=e.contains(l),d=!1,p=i>0,f=0,m=0;do{var b=aV(t,l),C=b[0],g=b[1],w=b[2],x=g-w-a*C;(C||x)&&sV(t,l)&&(f+=x,m+=C),l=l.parentNode}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(p&&(s&&f===0||!s&&i>f)||!p&&(s&&m===0||!s&&-i>m))&&(d=!0),d},fb=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},HI=function(t){return[t.deltaX,t.deltaY]},BI=function(t){return t&&"current"in t?t.current:t},a3e=function(t,e){return t[0]===e[0]&&t[1]===e[1]},o3e=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},i3e=0,Ip=[];function l3e(t){var e=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),s=v.useState(i3e++)[0],a=v.useState(function(){return bx()})[0],i=v.useRef(t);v.useEffect(function(){i.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var g=D5([t.lockRef.current],(t.shards||[]).map(BI),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=v.useCallback(function(g,w){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var x=fb(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-x[0],N="deltaY"in g?g.deltaY:S[1]-x[1],_,P=g.target,I=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&I==="h"&&P.type==="range")return!1;var T=FI(I,P);if(!T)return!0;if(T?_=I:(_=I==="v"?"h":"v",T=FI(I,P)),!T)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=_),!_)return!0;var L=r.current||_;return s3e(L,w,g,L==="h"?E:N,!0)},[]),c=v.useCallback(function(g){var w=g;if(!(!Ip.length||Ip[Ip.length-1]!==a)){var x="deltaY"in w?HI(w):fb(w),S=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&a3e(_.delta,x)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(BI).filter(Boolean).filter(function(_){return _.contains(w.target)}),N=E.length>0?l(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),d=v.useCallback(function(g,w,x,S){var E={name:g,delta:w,target:x,should:S};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(N){return N!==E})},1)},[]),p=v.useCallback(function(g){n.current=fb(g),r.current=void 0},[]),f=v.useCallback(function(g){d(g.type,HI(g),g.target,l(g,t.lockRef.current))},[]),m=v.useCallback(function(g){d(g.type,fb(g),g.target,l(g,t.lockRef.current))},[]);v.useEffect(function(){return Ip.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Dp),document.addEventListener("touchmove",c,Dp),document.addEventListener("touchstart",p,Dp),function(){Ip=Ip.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Dp),document.removeEventListener("touchmove",c,Dp),document.removeEventListener("touchstart",p,Dp)}},[]);var b=t.removeScrollBar,C=t.inert;return v.createElement(v.Fragment,null,C?v.createElement(a,{styles:o3e(s)}):null,b?v.createElement(O5,{gapMode:"margin"}):null)}const c3e=L5(nV,l3e);var oV=v.forwardRef(function(t,e){return v.createElement(Ck,br({},t,{ref:e,sideCar:c3e}))});oV.classNames=Ck.classNames;const u3e=oV,iV="Dialog",[lV,D7e]=_a(iV),[d3e,G0]=lV(iV),f3e=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:a,modal:i=!0}=t,l=v.useRef(null),c=v.useRef(null),[d=!1,p]=ca({prop:r,defaultProp:s,onChange:a});return v.createElement(d3e,{scope:e,triggerRef:l,contentRef:c,contentId:Xs(),titleId:Xs(),descriptionId:Xs(),open:d,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(f=>!f),[p]),modal:i},n)},h3e="DialogPortal",[I7e,cV]=lV(h3e,{forceMount:void 0}),mj="DialogOverlay",p3e=v.forwardRef((t,e)=>{const n=cV(mj,t.__scopeDialog),i=t,{forceMount:r=n.forceMount}=i,s=Ne(i,["forceMount"]),a=G0(mj,t.__scopeDialog);return a.modal?v.createElement(No,{present:r||a.open},v.createElement(m3e,at({},s,{ref:e}))):null}),m3e=v.forwardRef((t,e)=>{const a=t,{__scopeDialog:n}=a,r=Ne(a,["__scopeDialog"]),s=G0(mj,n);return v.createElement(u3e,{as:Fd,allowPinchZoom:!0,shards:[s.contentRef]},v.createElement(_n.div,at({"data-state":dV(s.open)},r,{ref:e,style:R({pointerEvents:"auto"},r.style)})))}),Lv="DialogContent",g3e=v.forwardRef((t,e)=>{const n=cV(Lv,t.__scopeDialog),i=t,{forceMount:r=n.forceMount}=i,s=Ne(i,["forceMount"]),a=G0(Lv,t.__scopeDialog);return v.createElement(No,{present:r||a.open},a.modal?v.createElement(v3e,at({},s,{ref:e})):v.createElement(x3e,at({},s,{ref:e})))}),v3e=v.forwardRef((t,e)=>{const n=G0(Lv,t.__scopeDialog),r=v.useRef(null),s=tr(e,n.contentRef,r);return v.useEffect(()=>{const a=r.current;if(a)return M5(a)},[]),v.createElement(uV,at({},t,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ot(t.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Ot(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Ot(t.onFocusOutside,a=>a.preventDefault())}))}),x3e=v.forwardRef((t,e)=>{const n=G0(Lv,t.__scopeDialog),r=v.useRef(!1),s=v.useRef(!1);return v.createElement(uV,at({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=t.onCloseAutoFocus)===null||i===void 0||i.call(t,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,s.current=!1},onInteractOutside:a=>{var i,l;(i=t.onInteractOutside)===null||i===void 0||i.call(t,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(c))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}}))}),uV=v.forwardRef((t,e)=>{const p=t,{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a}=p,i=Ne(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),l=G0(Lv,n),c=v.useRef(null),d=tr(e,c);return S5(),v.createElement(v.Fragment,null,v.createElement(j5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:a},v.createElement(A0,at({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":dV(l.open)},i,{ref:d,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function dV(t){return t?"open":"closed"}const y3e=f3e,b3e=p3e,UI=g3e,fV=()=>{const t=Te(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:window.innerHeight,width:window.innerWidth},t[0]=e):e=t[0];const[n,r]=v.useState(e);let s,a;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{const i=()=>{r({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},a=[],t[1]=s,t[2]=a):(s=t[1],a=t[2]),v.useEffect(s,a),n},Lx=v.createContext({portalRef:void 0,onOutsideClick:()=>{},noFooter:!1,isLargeModal:!0}),w3e=t=>{const e=Te(8),{children:n,isNavVisible:r,outOutsideClick:s}=t,a=r===void 0?!0:r;let i;e[0]!==s?(i=s===void 0?()=>{}:s,e[0]=s,e[1]=i):i=e[1];const l=i;let c;e[2]!==l?(c=()=>{l()},e[2]=l,e[3]=c):c=e[3];const d="bg-slate-900/80 fixed ".concat(a?"top-10":"top-0"," bottom-0 left-0 right-0 z-50 grid place-items-center overflow-y-auto");let p;return e[4]!==c||e[5]!==d||e[6]!==n?(p=o.jsx(b3e,{onClick:c,className:d,children:n}),e[4]=c,e[5]=d,e[6]=n,e[7]=p):p=e[7],p},k3e=t=>{const e=Te(9),{children:n,outOutsideClick:r,isLargeModal:s,canClose:a,noFooter:i,positionTop:l}=t,{height:c}=fV(),d=i?c:c-64;let p;e[0]!==d?(p={maxHeight:d},e[0]=d,e[1]=p):p=e[1];const f=p;let m;return e[2]!==a||e[3]!==s||e[4]!==l||e[5]!==f||e[6]!==n||e[7]!==r?(m=a?o.jsx(UI,{style:f,className:"".concat(s?"-mt-5":"-mt-80"," ").concat(l?"!-mt-[100px]":""," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:n}):o.jsx(UI,{style:f,onPointerDownOutside:b=>{r&&r(),b.preventDefault()},onInteractOutside:b=>{b.preventDefault()},onEscapeKeyDown:b=>{b.preventDefault()},className:"".concat(s?"-mt-5":"-mt-80"," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:n}),e[2]=a,e[3]=s,e[4]=l,e[5]=f,e[6]=n,e[7]=r,e[8]=m):m=e[8],m},Yn=t=>{const e=Te(26),{open:n,handleClose:r,canClose:s,isNavVisible:a,positionTop:i,noFooter:l,isLargeModal:c,onOutsideClick:d,children:p}=t,f=n===void 0?!0:n,m=s===void 0?!0:s,b=a===void 0?!0:a,C=l===void 0?!1:l,g=c===void 0?!1:c;let w;e[0]!==d?(w=d===void 0?()=>{}:d,e[0]=d,e[1]=w):w=e[1];const x=w,S=v.useRef(null);let E;e[2]!==S||e[3]!==g||e[4]!==x||e[5]!==C?(E={portalRef:S,isLargeModal:g,onOutsideClick:x,noFooter:C},e[2]=S,e[3]=g,e[4]=x,e[5]=C,e[6]=E):E=e[6];let N;e[7]!==m||e[8]!==i||e[9]!==x||e[10]!==p?(N=o.jsx(k3e,{canClose:m,positionTop:i,outOutsideClick:x,isLargeModal:!0,noFooter:!0,children:p}),e[7]=m,e[8]=i,e[9]=x,e[10]=p,e[11]=N):N=e[11];let _;e[12]!==b||e[13]!==x||e[14]!==N?(_=o.jsx(w3e,{isNavVisible:b,outOutsideClick:x,children:N}),e[12]=b,e[13]=x,e[14]=N,e[15]=_):_=e[15];let P;e[16]!==E||e[17]!==_?(P=o.jsx(Lx.Provider,{value:E,children:_}),e[16]=E,e[17]=_,e[18]=P):P=e[18];let I;e[19]!==S||e[20]!==P?(I=o.jsx(du,{ref:S,children:P}),e[19]=S,e[20]=P,e[21]=I):I=e[21];let T;return e[22]!==f||e[23]!==r||e[24]!==I?(T=o.jsx(y3e,{open:f,onOpenChange:r,children:I}),e[22]=f,e[23]=r,e[24]=I,e[25]=T):T=e[25],T};Yn.Body=({children:t,className:e,style:n})=>{const{isLargeModal:r,onOutsideClick:s}=v.useContext(Lx);return o.jsx("div",{style:n,className:Pn("h-[full]",e,{"max-w-2xl":r,"max-w-md":!r}),onClick:a=>{s&&s(),a.stopPropagation()},children:t})};Yn.Content=({children:t,className:e})=>{const{isLargeModal:n,onOutsideClick:r,noFooter:s}=v.useContext(Lx),{height:a}=fV(),i={maxHeight:s?a:a-90-141};return o.jsx("div",{"data-tauri-drag-region":!0,onClick:()=>{r&&r()},style:i,className:Pn("overflow-y-auto px-8 pt-6",{"w-largeModal pb-7":n,"pb-5":!n},e),children:t})};Yn.Header=({handleClose:t=void 0,children:e,className:n="",canClose:r=!0,isCenter:s=!1})=>{const{onOutsideClick:a}=v.useContext(Lx);return o.jsxs("div",{"data-tauri-drag-region":!0,className:"flex w-full items-center border-0 px-8 py-6 pb-2 ".concat(n),onClick:i=>{a&&a(),i.stopPropagation()},children:[o.jsx("div",{className:"flex flex-grow ".concat(s?"justify-center":""),children:e}),o.jsx("div",{className:"self-end",children:t&&r&&o.jsx(je,{variant:"ghost",size:"sm",onClick:t,className:"cursor-pointer border-0 p-1.5",children:o.jsx(In,{size:20})})})]})};Yn.Footer=({children:t,className:e})=>{const{isLargeModal:n,onOutsideClick:r}=v.useContext(Lx);return o.jsx("div",{"data-tauri-drag-region":!0,onClick:s=>{r&&r(),s.stopPropagation()},className:Pn("flex w-full px-7 pb-6 pt-2",{"border-grey-20 border-0 pt-4":n},e),children:t})};function C3e({open:t,onClose:e,showUpdateAppIsLatest:n,showUpdateChecking:r}){var s=sn(1);try{const{t:a}=Gt(),{checkForUpdate:i}=Tt(Cr),l=xl(q0),c=xl(Mx),d=Ix(),p=v.useMemo(()=>Dx(),[Un.value]),f=Mr(1718144516487).format("MMMM, YYYY");return console.log("showUpdateChecking.value in about pastebar",r.value),o.jsx(Yn,{open:t,handleClose:e,positionTop:!0,children:o.jsxs(Yn.Body,{className:"min-w-[400px] relative",children:[o.jsx(je,{variant:"link",type:"button",onClick:e,className:"hover:bg-slate-200 px-2 absolute right-1.5 top-1.5 text-slate-400 dark:text-slate-500 hover:text-slate-600 hover:dark:text-slate-400 hover:bg-transparent dark:hover:bg-transparent",children:o.jsx(In,{className:"w-5 h-5"})}),o.jsx(Yn.Content,{children:o.jsxs(ve,{className:"w-full flex-col gap-1 mt-1",children:[o.jsx(ve,{className:"h-fit w-full items-center",children:o.jsx(RW,{width:80,height:80})}),o.jsx(re,{className:"font-semibold text-2xl",children:l?p?o.jsxs(o.Fragment,{children:[a("PasteBar",{ns:"common"})," ",o.jsx("span",{className:"text-amber-700 dark:text-amber-600 ml-1 opacity-80",children:a("Pro",{ns:"common"})})]}):a("PasteBar Pro",{ns:"common"}):a("PasteBar",{ns:"common"})}),o.jsxs(re,{className:"font-light text-center",children:[a("Version",{ns:"common"}),": ","0.2.2",c&&o.jsx("span",{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md !text-slate-600 text-sm ml-1.5 mb-0 py-0",children:"Beta"})]}),o.jsx(re,{className:"font-light text-center",children:a("Build on {{buildDate}}",{ns:"common",buildDate:f})}),o.jsx("a",{href:"https://".concat(a("www.site",{ns:"common"})),target:"_blank",className:"underline !text-blue-600 dark:!text-blue-400 cursor-pointer",children:a("www.site",{ns:"common"})}),o.jsx(Ln,{h:3}),o.jsxs("div",{className:"flex w-full justify-center items-center gap-x-3",children:[!l&&o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e(),Ga.value=!0,n0.value=!0},className:"hover:bg-blue-600 hover:text-white dark:bg-gray-700/50 bg-gray-200/50 dark:hover:bg-blue-600",children:d?a("Renew License",{ns:"settings"}):a("Upgrade to Pro",{ns:"common"})}),o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{i(!0),n.value=!0},className:"hover:bg-blue-600 hover:text-white dark:bg-gray-700/50 bg-gray-200/50 dark:hover:bg-blue-600",children:n.value?a("No Update Available",{ns:"updater"}):r.value?a("Checking for Update...",{ns:"updater"}):a("Check for Update",{ns:"updater"})})]})]})}),o.jsxs(Yn.Footer,{className:"flex-col items-center !pt-0 !pb-5 relative",children:[o.jsxs(re,{className:"text-sm mb-2 opacity-50 flex justify-center items-center ",children:[a("Stay in touch",{ns:"common"}),o.jsx(P0,{className:"w-[13px] h-[13px] ml-1"})]}),o.jsx(LW,{})]})]})})}finally{s.f()}}function S3e(t){const e=Te(55),{open:n,selectedText:r,onClose:s,onConfirmMenu:a,onConfirmClip:i}=t,{t:l}=Gt(),{themeDark:c}=Tt(bo);let d;e[0]!==c?(d=c(),e[0]=c,e[1]=d):d=e[1];const p=d;let f;e[2]!==l?(f=l("Add to Clips or Menu",{ns:"common"}),e[2]=l,e[3]=f):f=e[3];let m;e[4]!==f?(m=o.jsx("h1",{className:"m-0",children:f}),e[4]=f,e[5]=m):m=e[5];let b;e[6]!==s||e[7]!==m?(b=o.jsx(Yn.Header,{handleClose:s,children:m}),e[6]=s,e[7]=m,e[8]=b):b=e[8];let C;e[9]!==p||e[10]!==r?(C=o.jsx(ne,{className:"bg-slate-200/70 dark:bg-slate-900/60 rounded-md border border-slate-200 dark:border-slate-800/70 px-2 pt-1",children:o.jsx(Ca,{isDark:p,maxHeight:350,isLargeView:!0,isShowMore:!0,isWrapped:!0,language:"text",value:r})}),e[9]=p,e[10]=r,e[11]=C):C=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(Ln,{h:4}),e[12]=g):g=e[12];let w;e[13]!==l?(w=l("You can add the selected text to your clips or menu. Please select the option below.",{ns:"collections"}),e[13]=l,e[14]=w):w=e[14];let x;e[15]!==w?(x=o.jsx(re,{className:"font-light",children:w}),e[15]=w,e[16]=x):x=e[16];let S;e[17]!==C||e[18]!==x?(S=o.jsxs(Yn.Content,{className:"!pt-2",children:[C,g,x]}),e[17]=C,e[18]=x,e[19]=S):S=e[19];let E;e[20]!==i||e[21]!==r?(E=()=>{i(r)},e[20]=i,e[21]=r,e[22]=E):E=e[22];let N;e[23]!==l?(N=l("Add Clip",{ns:"common"}),e[23]=l,e[24]=N):N=e[24];let _;e[25]!==E||e[26]!==N?(_=o.jsx(je,{variant:"light",type:"submit",onClick:E,className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:N}),e[25]=E,e[26]=N,e[27]=_):_=e[27];let P;e[28]!==a||e[29]!==r?(P=()=>{a(r)},e[28]=a,e[29]=r,e[30]=P):P=e[30];let I;e[31]!==l?(I=l("Add Menu",{ns:"common"}),e[31]=l,e[32]=I):I=e[32];let T;e[33]!==P||e[34]!==I?(T=o.jsx(je,{variant:"light",type:"submit",onClick:P,className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:I}),e[33]=P,e[34]=I,e[35]=T):T=e[35];let L;e[36]!==_||e[37]!==T?(L=o.jsxs("div",{className:"flex w-full justify-center gap-x-3",children:[_,T]}),e[36]=_,e[37]=T,e[38]=L):L=e[38];let A;e[39]!==l?(A=l("Cancel",{ns:"common"}),e[39]=l,e[40]=A):A=e[40];let z;e[41]!==s||e[42]!==A?(z=o.jsx("div",{className:"flex w-full justify-center mt-3",children:o.jsx(je,{variant:"ghost",type:"button",onClick:s,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:A})}),e[41]=s,e[42]=A,e[43]=z):z=e[43];let Y;e[44]!==L||e[45]!==z?(Y=o.jsxs(Yn.Footer,{className:"flex-col !pt-0 !pb-3",children:[L,z]}),e[44]=L,e[45]=z,e[46]=Y):Y=e[46];let O;e[47]!==b||e[48]!==S||e[49]!==Y?(O=o.jsxs(Yn.Body,{children:[b,S,Y]}),e[47]=b,e[48]=S,e[49]=Y,e[50]=O):O=e[50];let $;return e[51]!==n||e[52]!==s||e[53]!==O?($=o.jsx(Yn,{open:n,handleClose:s,children:O}),e[51]=n,e[52]=s,e[53]=O,e[54]=$):$=e[54],$}function j3e({open:t,onClose:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),{themeDark:a}=Tt(bo),i=a(),{deviceId:l}=Tt(bo),c=xl(q0),{id:d}=Un.value||{},p="".concat(c?"https://license.pastebar.app/contact/?pro=true&deviceId=".concat(l,"&licenseId=").concat(d,"&"):"https://license.pastebar.app/contact/?","source=app&locale=").concat(dr.language,"&dark=").concat(i?"true":"false"),f=()=>{Ei(p)};return o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,noFooter:!0,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 flex flex-col items-start p-0 relative",style:{height:"calc(100vh - 180px)"},children:[o.jsx(Yn.Content,{className:"!pt-3 mb-0 w-full !pb-2 grow !max-h-700",children:o.jsx("iframe",{src:p,className:"rounded-md border-0 bg-transparent dark:border-slate-800/70",style:{width:520,height:"calc(100vh - 210px)"}})}),o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{e()},className:"text-slate-300 dark:hover:bg-slate-700 hover:bg-slate-600 absolute top-[-1 px] right-[-63px] w-14",children:o.jsx(In,{size:26})}),o.jsx(ve,{className:"items-center w-full gap-1 absolute bottom-[-50px] left-0",children:s.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"link",type:"button",onClick:()=>{s.value=!1},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:r("Stay here",{ns:"common"})}),o.jsx(je,{variant:"link",type:"button",onClick:()=>{s.value=!1,e()},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:r("Close modal and continue in browser",{ns:"common"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{e()},className:"text-slate-200 dark:hover:bg-slate-700 hover:bg-slate-600 opacity-70 hover:opacity-100 h-10",children:r("Cancel",{ns:"common"})}),o.jsxs(je,{variant:"link",type:"button",onClick:()=>{f(),s.value=!0},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:[r("Open contact form in browser",{ns:"common"}),o.jsx(P0,{size:16,className:"ml-1.5"})]})]})})]})})}finally{n.f()}}function Dw(t,e){var d;const n=Te(9);let r;n[0]!==t||n[1]!==e?(r=localStorage.getItem(t)?JSON.parse((d=localStorage.getItem(t))!=null?d:"{}"):e,n[0]=t,n[1]=e,n[2]=r):r=n[2];const[s,a]=v.useState(r);let i,l;n[3]!==s||n[4]!==t?(i=()=>{s===null?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(s))},l=[s,t],n[3]=s,n[4]=t,n[5]=i,n[6]=l):(i=n[5],l=n[6]),v.useEffect(i,l);let c;return n[7]!==s?(c=[s,a],n[7]=s,n[8]=c):c=n[8],c}function WI({open:t,title:e="Unlock Application Screen",isLockScreen:n=!1,showPasscode:r=!0,onConfirmSuccess:s,onClose:a=()=>{}}){var i=sn(1);try{const{t:l}=Gt(),c=it(r),d=it(!1),p=it(!1),f=it(!1),m=it(!1),b=it(""),C=it(!1),g=it(!1),w=it(!1),x=ua(),[,S]=Dw("resetPassCodeNextDelayInSeconds",null),[E,N]=Dw("resetPassCodeGlobalUnsuccessfulTries",0),_=it(0),{isHistoryEnabled:P,setIsHistoryEnabled:I}=Tt(Cr),{screenLockPassCode:T,screenLockPassCodeLength:L,screenLockRecoveryPasswordMasked:A,verifyPassword:z,setScreenLockPassCode:Y,isShowHistoryCaptureOnLockedScreen:O,setScreenLockPassCodeLength:$,verifyStoredPassword:M}=Tt(Cr),W=it(new Array(L).fill(void 0)),V=v.useMemo(()=>f.value,[f.value]),U=J=>{const H=document.querySelector("input[name=field-".concat(J,"]"));H!==null&&H.focus()};return v.useEffect(()=>{if(Br.value)Br.value<1?(w.value=!1,W.value=new Array(L).fill(void 0)):w.value=!0;else return},[Br.value]),v.useEffect(()=>{C.value&&setTimeout(()=>{s()},800)},[C.value]),v.useEffect(()=>{C.value=!1;function J(H){return ge(this,null,function*(){var q;if(g.value)return;const F=W.value.join("");if(yield z(F,H))C.value=!0,Br.value=0,zp.value=0,N(0),S(null),g.value=!1;else{if(zp.value=zp.value+1,zp.value===3){const X=(q=parseInt(E,10))!=null?q:0;N(X+1),Br.value=X>0?iM*X:iM}w.value=!0,C.value=!1,g.value=!1,W.value=new Array(L).fill(void 0),U(0)}})}c.value&&T&&!g.value&&W.value.every(H=>H!==void 0)&&setTimeout(()=>{J(T)},100)},[c.value,W.value,T]),v.useEffect(()=>{U(_.value)},[_.value]),o.jsx(Yn,{open:t,onOutsideClick:()=>{W.value[0]||U(0)},handleClose:a,canClose:!n||!T,isNavVisible:!1,children:o.jsxs(Yn.Body,{className:"bg-emerald-100/20 dark:bg-emerald-800/30",children:[o.jsx(Yn.Header,{handleClose:a,canClose:!n||!T,isCenter:n,children:T?o.jsx("h1",{className:"m-1 opacity-90 ".concat(C.value?"!text-green-600 dark:!text-green-500":w.value?"!text-red-600 dark:!text-red-500":""),children:d.value?l("Forgot passcode ?",{ns:"settings"}):l(e,{ns:"common"})}):o.jsx("h1",{className:"opacity-90",children:l("Passcode is not set",{ns:"settings"})})}),o.jsx(Yn.Content,{className:"!pt-2 justify-center items-center flex flex-col !min-w-[390px]",children:c.value&&!d.value&&T?o.jsxs(o.Fragment,{children:[o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-center my-2 flex-row animate-in fade-in duration-700",children:new Array(L).fill(0).map((J,H)=>o.jsx(ne,{className:"text-lg px-2 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-300 dark:bg-slate-800 text-center",children:C.value?o.jsx(ve,{className:"h-[48px] !w-9 !px-0 !text-[34px] pb-[2px] !border-0 !bg-green-100 dark:!bg-green-900/80",children:o.jsx(en,{size:26,className:"text-green-600 dark:text-green-300"})}):o.jsx(wn,{isPassword:!p.value,name:"field-".concat(H),className:"!w-9 !text-xl",ref:()=>{H===0&&!W.value[0]&&U(0)},disabled:Br.value>0,autoComplete:"off",numbersOnly:!0,onKeyDown:F=>{(F.metaKey||F.altKey)&&F.code==="KeyH"?I(!P):F.key==="Backspace"&&F.currentTarget.value===""?_.value=H>0?H-1:0:F.key==="ArrowLeft"?(F.preventDefault(),_.value=H>0?H-1:0):F.key==="ArrowRight"&&(F.preventDefault(),_.value=H(F.preventDefault(),!1),maxLength:2,value:W.value[H]||"",classNameInput:"h-[48px] text-center !px-0 !text-[34px] pb-[2px] !border-0\n ".concat(W.value[H]&&!w.value?"!bg-green-100 dark:!bg-green-900/80":w.value?"dark:!bg-red-900/90 !bg-red-300/90":"dark:!bg-slate-800"),onChange:F=>{var X,te,ee,G;w.value=!1,((te=(X=F.target)==null?void 0:X.value)==null?void 0:te.length)>=1&&(F.target.value=F.target.value[((G=(ee=F.target)==null?void 0:ee.value)==null?void 0:G.length)-1],_.value=Hle===H?q?parseInt(q):void 0:Z)}})},H))}),o.jsx(Ln,{h:4}),o.jsxs(ve,{className:"font-light ".concat(w.value?"!text-red-600 dark:!text-red-500/90":""),children:[w.value?Br.value>0?o.jsx(re,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:l("Passcode verification is locked.",{ns:"settings"})}):o.jsx(re,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:l("Passcode is not valid",{screenLockPassCodeLength:L,ns:"settings"})}):o.jsx(o.Fragment,{children:C.value?o.jsx(re,{className:"!text-green-600 dark:!text-green-500 font-semibold",children:l("Passcode successfully verified",{ns:"settings"})}):o.jsx(re,{children:o.jsx(us,{i18nKey:"Enter your {{screenLockPassCodeLength}} digits passcode",values:{screenLockPassCodeLength:L},ns:"settings"})})}),!C.value&&Br.value===0&&o.jsx(o.Fragment,{children:p.value?o.jsx(fx,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:J=>{J.preventDefault(),p.value=!1,U(_.value)}}):o.jsx(M0,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:J=>{J.preventDefault(),p.value=!0,U(_.value)}})})]}),Br.value>0&&o.jsx(ne,{className:"!text-amber-500 dark:!text-amber-600",children:o.jsx(us,{i18nKey:"Try after {{resetPassCodeNextDelay}} seconds",values:{resetPassCodeNextDelay:Br.value},ns:"settings"})})]}):d.value&&A?o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"mb-3 mt-0 gap-2 items-start justify-start",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,autoFocus:!0,showHidePassword:!0,onKeyDown:J=>{J.key==="Enter"&&!f.value&&b.value.length>=6&&(m.value=!1,f.value=!0,setTimeout(()=>{M("screenLockRecoveryPassword",b.value).then(H=>{H?(d.value=!1,Y(null),$(0),b.value=""):m.value=!0,f.value=!1}).catch(H=>{console.error(H),m.value=!0,f.value=!1})},1e3))},errorElement:b.value.length>=6&&m.value?o.jsxs(o.Fragment,{children:[o.jsx(re,{className:"!text-red-400",children:l("Password is incorrect.",{ns:"settings"})}),o.jsx(re,{className:"mt-1 !text-red-400",children:l("Hint: {{screenLockRecoveryPasswordMasked}}",{ns:"settings",screenLockRecoveryPasswordMasked:A})})]}):"",autoComplete:"off",onPaste:J=>(J.preventDefault(),!1),classNameInput:"h-9",placeholder:l("Enter Password",{ns:"common"}),onChange:J=>{m.value=!1,b.value=J.target.value}}),o.jsx(je,{variant:"secondary",size:"sm",disabled:b.value.length<6,onClick:()=>{!f.value&&b.value.length>=6&&(m.value=!1,f.value=!0,setTimeout(()=>{M("screenLockRecoveryPassword",b.value).then(J=>{J?(d.value=!1,Y(null),$(0),Br.value=0,zp.value=0,N(0),S(null),Wi.value&&(clearInterval(Wi.value),Wi.value=null),b.value=""):m.value=!0,f.value=!1}).catch(J=>{console.error(J),m.value=!0,f.value=!1})},600))},className:"min-w-[80px] mt-0.5 text-sm cursor-pointer whitespace-nowrap bg-blue-500 text-slate-50 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:V?o.jsx(d0,{}):l("Reset",{ns:"common"})})]}),o.jsx(re,{className:"mt-1 text-center",children:l("Enter recovery password to reset passcode.",{ns:"settings"})})]}):o.jsx(re,{className:"mt-1 text-center",children:l("Please set up a Passcode and recovery password in Security Settings to enable Screen Lock and ensure better security.",{ns:"settings"})})}),o.jsxs(Yn.Footer,{className:"flex-row !pt-0 !pb-5 justify-center items-center gap-3 relative",children:[!n&&T?o.jsx(je,{variant:"ghost",size:"sm",onClick:a,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:l("Cancel",{ns:"common"})}):!T&&o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{x("/app-settings/security",{replace:!0}),a()},children:l("Open Security Settings",{ns:"settings"})}),(w.value||d.value)&&A&&T&&o.jsx(o.Fragment,{children:d.value?o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!1,W.value=new Array(L).fill(void 0)},children:l("Back",{ns:"settings"})}):o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!0,m.value=!1,f.value=!1,b.value=""},children:l("Forgot?",{ns:"settings"})})}),O&&o.jsx(o.Fragment,{children:o.jsxs(ve,{className:"dark:bg-slate-950/90 bg-gray-400/90 absolute bottom-[-100px] rounded-md px-2 py-1 cursor-pointer",onClick:J=>{J.preventDefault(),I(!P)},children:[o.jsxs(ve,{className:"mr-1",children:[o.jsx(re,{className:"mr-1 ".concat(P?"!text-slate-800 dark:!text-slate-400":"!text-gray-500 dark:!text-gray-700"),children:l("Capture History",{ns:"history"})}),o.jsx(Zl,{className:P?"opacity-60":"opacity-30",children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsx(ns,{checked:P,className:P?"opacity-100":"!bg-gray-300 dark:!bg-gray-600 opacity-70"})]})})]})]})})}finally{i.f()}}var V7={};Object.defineProperty(V7,"__esModule",{value:!0});function E3e(t,e){return Math.random()*(e-t)+t}var VI=V7.default=E3e,hV={},q7={},K7={},G7={};(function t(e,n,r,s){var a=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),i=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!e.OffscreenCanvas)return!1;var H=new OffscreenCanvas(1,1),F=H.getContext("2d");F.fillRect(0,0,1,1);var q=H.transferToImageBitmap();try{F.createPattern(q,"no-repeat")}catch(X){return!1}return!0}();function c(){}function d(H){var F=n.exports.Promise,q=F!==void 0?F:e.Promise;return typeof q=="function"?new q(H):(H(c,c),null)}var p=function(H,F){return{transform:function(q){if(H)return q;if(F.has(q))return F.get(q);var X=new OffscreenCanvas(q.width,q.height),te=X.getContext("2d");return te.drawImage(q,0,0),F.set(q,X),X},clear:function(){F.clear()}}}(l,new Map),f=function(){var H=Math.floor(16.666666666666668),F,q,X={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(F=function(ee){var G=Math.random();return X[G]=requestAnimationFrame(function Z(le){te===le||te+H-10)&&!(s=r.next()).done;)a.push(s.value)}catch(l){i={error:l}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},V3e=Vn&&Vn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(q7,"__esModule",{value:!0});var pb=B3e(v),q3e=V3e(K7),K3e=function(t){return t};function G3e(t){var e=t.decorateOptions,n=e===void 0?K3e:e,r=t.Conductor,s=t.autorun,a=t.onInit,i=U3e(t,["decorateOptions","Conductor","autorun","onInit"]),l=W3e((0,pb.useState)(),2),c=l[0],d=l[1],p=(0,pb.useCallback)(function(f){var m=f.confetti;d(function(){return m})},[]);return(0,pb.useEffect)(function(){if(c){var f=new r({confetti:c,decorateOptions:n});return s&&f.run(s),a==null||a({confetti:c,conductor:f}),f.stop}},[c]),pb.default.createElement(q3e.default,gj({onInit:p},i))}q7.default=G3e;var Y7={},Z7={};Object.defineProperty(Z7,"__esModule",{value:!0});var Y3e=function(){function t(e){var n=e.confetti,r=e.decorateOptions,s=this;this.interval=null,this.shoot=function(){return s.tickAnimation()},this.run=function(a){var i=a.speed,l=a.delay,c=l===void 0?0:l,d=a.duration;s.interval||setTimeout(function(){s.shoot(),s.interval=setInterval(s.shoot,1e3/Math.min(i,1e3)),d&&setTimeout(s.pause,d)},c)},this.pause=function(){clearInterval(s.interval),s.interval=null},this.stop=function(){s.pause(),s.confetti.reset()},this.confetti=n,this.decorateOptions=r}return t}();Z7.default=Y3e;var Z3e=Vn&&Vn.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X3e=Vn&&Vn.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)a.push(s.value)}catch(l){i={error:l}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Q3e=Vn&&Vn.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,a;r div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=m.head||m.getElementsByTagName("head")[0],g=m.createElement("style");g.id="detectElementResize",g.type="text/css",t!=null&&g.setAttribute("nonce",t),g.styleSheet?g.styleSheet.cssText=b:g.appendChild(m.createTextNode(b)),C.appendChild(g)}};return{addResizeListener:function(m,b){if(c)m.attachEvent("onresize",b);else{if(!m.__resizeTriggers__){const C=m.ownerDocument,g=Ci.getComputedStyle(m);g&&g.position==="static"&&(m.style.position="relative"),d(C),m.__resizeLast__={},m.__resizeListeners__=[],(m.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const w=C.createElement("div");w.className="expand-trigger",w.appendChild(C.createElement("div"));const x=C.createElement("div");x.className="contract-trigger",m.__resizeTriggers__.appendChild(w),m.__resizeTriggers__.appendChild(x),m.appendChild(m.__resizeTriggers__),i(m),m.addEventListener("scroll",l,!0),r&&(m.__resizeTriggers__.__animationListener__=function(E){E.animationName===n&&i(m)},m.__resizeTriggers__.addEventListener(r,m.__resizeTriggers__.__animationListener__))}m.__resizeListeners__.push(b)}},removeResizeListener:function(m,b){if(c)m.detachEvent("onresize",b);else if(m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(b),1),!m.__resizeListeners__.length){m.removeEventListener("scroll",l,!0),m.__resizeTriggers__.__animationListener__&&(m.__resizeTriggers__.removeEventListener(r,m.__resizeTriggers__.__animationListener__),m.__resizeTriggers__.__animationListener__=null);try{m.__resizeTriggers__=!m.removeChild(m.__resizeTriggers__)}catch(C){}}}}}class Lh extends v.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:s}=this.props;if(this._parentNode){var a,i,l,c;const d=window.getComputedStyle(this._parentNode)||{},p=parseFloat((a=d.paddingLeft)!==null&&a!==void 0?a:"0"),f=parseFloat((i=d.paddingRight)!==null&&i!==void 0?i:"0"),m=parseFloat((l=d.paddingTop)!==null&&l!==void 0?l:"0"),b=parseFloat((c=d.paddingBottom)!==null&&c!==void 0?c:"0"),C=this._parentNode.getBoundingClientRect(),g=C.height-m-b,w=C.width-p-f,x=this._parentNode.offsetHeight-m-b,S=this._parentNode.offsetWidth-p-f;(!n&&(this.state.height!==x||this.state.scaledHeight!==g)||!r&&(this.state.width!==S||this.state.scaledWidth!==w))&&(this.setState({height:x,width:S,scaledHeight:g,scaledWidth:w}),typeof s=="function"&&s({height:x,scaledHeight:g,scaledWidth:w,width:S}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver!="undefined"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=oCe(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const S=this.props,{children:e,defaultHeight:n,defaultWidth:r,disableHeight:s=!1,disableWidth:a=!1,nonce:i,onResize:l,style:c={},tagName:d="div"}=S,p=Ne(S,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:f,scaledHeight:m,scaledWidth:b,width:C}=this.state,g={overflow:"visible"},w={};let x=!1;return s||(f===0&&(x=!0),g.height=0,w.height=f,w.scaledHeight=m),a||(C===0&&(x=!0),g.width=0,w.width=C,w.scaledWidth=b),v.createElement(d,R({ref:this._setRef,style:R(R({},g),c)},p),!x&&e(w))}}function ZI({registerLicense:t}){var e=sn(1);try{const n=v.useRef(null),{t:r}=Gt(),{state:s}=wl(),{licenseKey:a,setLicenseKey:i,screenLockPassCode:l}=Tt(Cr),c=xl(q0),d=xl(Mx),p=v.useRef(),{returnRoute:f}=Tt(Ls),m=As(a!=null?a:""),b=As(!1),C=As(!1),g=As(null),w=Un.value,x=({conductor:$})=>{p.current=R({},$)},S=Ix(),E=v.useCallback(()=>{var $;!S&&(($=p==null?void 0:p.current)==null||$.shoot())},[S]),N=$=>ae(R({},$),{drift:VI(.4,.8),startVelocity:VI(15,40),ticks:230}),_=v.useMemo(()=>m.value,[m.value]),P=v.useCallback($=>{if($.length<20){g.value=r("License key is too short.",{ns:"settings"});return}try{const M=yk($);if(!M)return!1;typeof M.id=="string"&&M.id.length>0&&(g.value=null,Un.value=M,m.value!==a&&!Mr().isAfter(Mr(M.expires))&&setTimeout(()=>{E(),setTimeout(()=>{E()},600)},600),i(m.value))}catch(M){return g.value=r("License key is not valid or malformed.",{ns:"settings"}),Un.value=null,console.error("error",M),!1}return!0},[m.value]);v.useEffect(()=>{a&&(m.value=a,P(a))},[a]),v.useEffect(()=>{s!=null&&s.ls&&a!==(s==null?void 0:s.ls)?(m.value=s.ls,P(m.value),yo(r("License key activated successfully.",{ns:"settings"}),{title:r("Activation Success",{ns:"settings"}),type:"info"})):a===(s==null?void 0:s.ls)&&yo(r("License key already activated.",{ns:"settings"}),{title:r("Already Active",{ns:"settings"}),type:"info"})},[s]);const{licenseExpInDays:I,licenseExpiresDate:T,licenseExpiredDaysAgo:L}=v.useMemo(()=>nW(),[Un.value]),{licenseIssuedDate:A,licenseIssuedDaysAgo:z}=v.useMemo(()=>b2e(),[Un.value]),Y=v.useMemo(()=>Dx(),[Un.value]),O=v.useMemo(()=>({name:w==null?void 0:w.name,email:w==null?void 0:w.email,devices:w==null?void 0:w.maxDevices,id:w==null?void 0:w.id}),[w]);return v.useEffect(()=>{(uo.value===Oc.removeLicense&&rl.value===Oc.removeLicense||b.value)&&(i(null),Un.value=null,uo.value=null,rl.value=null,C.value=!1,b.value=!1,m.value="")},[rl.value,uo.value,b.value]),v.useMemo(()=>!0,[b.value,C.value,g.value,Un.value]),o.jsx(Lh,{disableWidth:!0,children:({height:$})=>{var M,W,V,U;return $&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:r("License Settings",{ns:"settings"})}),c?S?o.jsxs(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Renew License",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]}):o.jsxs(je,{size:"sm",onClick:()=>{E(),setTimeout(()=>{E()},600)},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Thank you for using Pro",{ns:"common"}),o.jsx(m6,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 group-hover:animate-pulse group-hover:fill-red-500 group-hover:scale-125 transition-all duration-300"})]}):o.jsxs(je,{size:"sm",onClick:()=>{Ga.value=!0,n0.value=!0},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:$-85},autoHide:!0,children:[!c&&o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:r("Free License",{ns:"settings"})})}),o.jsx(mV,{})]}),o.jsxs(pr,{children:[o.jsxs(re,{className:"text-sm text-muted-foreground mt-1 mb-3",children:[r("Thank you again for using PasteBar.",{ns:"settings"}),o.jsx(m6,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 hover:animate-pulse hover:fill-red-500 hover:scale-125 transition-all duration-300"})]}),o.jsxs(je,{size:"sm",onClick:()=>{Ga.value=!0,n0.value=!0},className:"dark:text-green-950 mt-1 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:[r("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[c?o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[S?d?o.jsx(ne,{className:"text-red-600",children:r("Pro license has expired",{ns:"settings"})}):o.jsx(ne,{children:Y?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-red-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),o.jsxs(ne,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md text-md mb-0 py-1.5 !my-2 !block",children:[r("Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌",{buildDate:Mr(1718144516487).format("DD MMMM, YYYY"),expiredDate:Mr(T).format("DD MMMM, YYYY"),ns:"settings"}),o.jsxs(ne,{className:"mt-2",children:[r("To downgrade, please visit: ",{ns:"settings"}),o.jsx("span",{className:"underline cursor-pointer",onClick:()=>{Ei("https://www.pastebar.app/releases")},children:"https://www.pastebar.app/releases"})]})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-yellow-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),o.jsx(ne,{className:"text-yellow-600 mt-2",children:r("However, you can continue using the current version with access to all available Pro features.",{ns:"settings"})})]})}):o.jsx(ne,{className:"text-green-600",children:r("Pro license is activated",{ns:"settings"})}),d&&o.jsx(re,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),S?d?o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"Your beta license has expired. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.",values:{name:w==null?void 0:w.name},ns:"settings"})}):o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.",values:{name:w==null?void 0:w.name},ns:"settings"})}):o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"Thank you {{name}} for using Pro license. Your license grants you access to all available features, priority support, and free updates until the license expires. Please find the complete details below.",values:{name:w==null?void 0:w.name},ns:"settings"})}),d?o.jsxs(re,{className:"bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md !text-slate-600 text-xs mb-0 py-1.5 !my-2 !block",children:[r("You have a Beta License. Usually, this is a temporary license that grants access to all current and new beta features. After this license expires, you will not have access to Pro features, and you will need to use a regular Pro license or renew your Beta license.",{ns:"settings"}),o.jsx("br",{}),o.jsx("b",{children:r("Thank you for testing! 🙌",{ns:"settings"})})]}):o.jsx(Ln,{h:2}),O.name&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Name",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:O.name})]}),O.email&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Email",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:Cse(O.email)})]}),O.devices&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Maximum devices",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:O.devices})]}),O.id&&o.jsxs(re,{className:"text-sm !mt-2 gap-1",children:[r("License Id",{ns:"settings"}),":",o.jsx(BU,{id:1,text:yv(O.id,3),copyText:(M=O.id)!=null?M:""})]}),!!(w!=null&&w.language)&&o.jsxs(re,{className:"text-sm !mt-2 gap-1",children:[r("UI Language",{ns:"settings"}),":"," ",(W=xh.find(J=>J.code===(w==null?void 0:w.language)))==null?void 0:W.name]}),A&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Issued",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:A}),z&&o.jsx(St,{className:"ml-1.5",variant:"secondary",children:r("{{licenseIssuedDaysAgo}} days ago",{ns:"settings",licenseIssuedDaysAgo:z})})]}),T&&!S&&o.jsxs(re,{className:"text-sm !mt-4",children:[r("License expires",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1 text-green-600",children:T}),o.jsx(St,{className:"ml-1.5 whitespace-nowrap",variant:"pro",children:I===0?r("Tomorrow",{ns:"settings"}):r("in {{licenseExpInDays}} days",{ns:"settings",licenseExpInDays:I})})]}),T&&S&&o.jsxs(re,{className:"text-sm !mt-4",children:[r("License expired",{ns:"settings"}),o.jsx("strong",{className:"ml-1 text-red-600",children:T}),o.jsx(St,{className:"ml-1.5 whitespace-nowrap",variant:"destructive",children:L===0?r("Today",{ns:"settings"}):r("{{licenseExpiredDaysAgo}} days ago",{ns:"settings",licenseExpiredDaysAgo:L})})]}),!!(w!=null&&w.language)&&o.jsx(re,{className:"text-sm text-muted-foreground !mt-3 mb-3",children:r("Please note! Your license has support for a single language: {{language}}. If you require multi-language support, please consider upgrading to a full Pro license.",{ns:"settings",language:(V=xh.find(J=>J.code===(w==null?void 0:w.language)))==null?void 0:V.name})})]}):o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:r("Register a License",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:r('If you have a license key, you can add it here to unlock the Pro version with all available features. Please paste your license below and click "Add License" to upgrade.',{ns:"settings"})})]}),o.jsx(pr,{children:o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col w-full",children:[o.jsx(Co,{className:"text-sm w-full",autoFocus:t,ref:n,label:c?r("License key",{ns:"settings"}):r("Paste your license key below",{ns:"settings"}),isDisabled:c,classNameArea:c?"!border-green-500 dark:!border-green-600 !bg-green-50 dark:!bg-green-950 opacity-80":"",error:(U=g.value)!=null?U:"",rows:3,onChange:J=>{g.value=null,m.value=J.target.value},value:c?yv(_,10,10,100):_,maxRows:3,onPaste:J=>{J.preventDefault(),g.value=null,m.value=J.clipboardData.getData("text"),P(m.value)},enableEmoji:!1}),c?o.jsxs(ve,{className:"gap-4",children:[S&&o.jsxs(je,{size:"sm",className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:[r("Renew License",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]}),o.jsx(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{if(l){Of.value=!0,uo.value=Oc.removeLicense,$f.value=r("license remove",{ns:"settings"});return}C.value?b.value=!0:(C.value=!0,setTimeout(()=>{C.value=!1},3e3))},className:"".concat(C.value?"bg-red-500 text-red-100 hover:bg-red-500/80 dark:bg-red-400 hover:dark:bg-red-400/80 dark:text-slate-800":"bg-red-200 text-red-600 hover:bg-red-300/80 dark:bg-red-900 hover:dark:bg-red-900/80 dark:text-slate-200"," h-9"),children:C.value?r("Confirm Remove",{ns:"common"}):S?r("Remove",{ns:"common"}):r("Remove License",{ns:"common"})})]}):o.jsx(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{P(m.value)},className:"bg-blue-400 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 h-9",children:r("Add License",{ns:"common"})})]})})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:f,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:r("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]}),w&&ra.createPortal(o.jsx(aCe,{onInit:x,decorateOptions:N,style:{position:"fixed",zIndex:9999,pointerEvents:"none",top:40,width:"100%",height:"100%"}}),document.body)]})}})}finally{e.f()}}function mV(){var t=sn(1);try{const{t:e}=Gt(),n=xl(Mx),r=v.useMemo(()=>Dx(),[Un.value]);return o.jsxs(o.Fragment,{children:[r&&!n&&o.jsx(ne,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 text-sm rounded-md mb-0 py-1.5 !my-2 !block",children:e("Your Pro license and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.",{buildDate:Mr(1718144516487).format("DD MMMM, YYYY"),ns:"settings"})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 mb-3",children:e("Thank you for using PasteBar! We hope you're enjoying the free version. If you'd like to unlock all features and support our development, please consider upgrading to Pro version.",{ns:"settings"})}),o.jsxs(ve,{className:"flex flex-col items-start justify-start",children:[o.jsx(re,{className:"text-sm text-muted-foreground my-2 mb-1 !block",children:o.jsx(us,{i18nKey:"By upgrading to PasteBar Pro, you'll gain access to:",ns:"settings"})}),o.jsxs(ne,{className:"list-image-none",children:[o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Collections",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Create an unlimited number of collections to organize your clips and menus.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Tabs per Collection",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Add an unlimited number of tabs within each collection for better organization and easy access.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Auto Lock the Screen on User Inactivity",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Enhance security by automatically locking the application screen after a set period of user inactivity.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Require Screen Unlock at Application Start",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Protect your data by requiring screen unlock authentication whenever the application starts.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Run Terminal or Shell Commands",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Execute Web Requests",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Send HTTP requests to web APIs or services and copy the response data to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Web Scraping and Parsing",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Priority support",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Get priority email support from us to resolve any issues or questions you may have about PasteBar.",{ns:"settings"})})]})]})]})]})}finally{t.f()}}var iCe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function lCe({open:t,onClose:e,showProPayments:n}){var r=sn(1);try{const{t:s}=Gt(),a=ua(),i=Ix(),l=it(!1),c=it(!1),d=it(!1),{themeDark:p}=Tt(bo),f=p(),{deviceId:m}=Tt(bo),b="".concat(iCe.VITE_LICENSE_SERVER_URL,"/pro?deviceId=").concat(m,"&locale=").concat(dr.language,"&dark=").concat(f?"true":"false"),C=()=>{Ei(b)};return v.useEffect(()=>(window.addEventListener("message",g=>{const{data:w}=g;if(!c.value&&w.id==="pro_license_confirmed"&&w.licenseHash){try{const x=yk(w.licenseHash);if(!x)throw new Error("Invalid license key");if(!(typeof x.id=="string"&&x.id.length>0))throw new Error("Invalid license key")}catch(x){return yo(s("License key validation failed. Please try another key.",{ns:"common"}),{title:s("Activation Error",{ns:"common"}),type:"error"}),!1}n.value=!1,Ga.value=!1,c.value=!0,a("/app-settings/license/register",{replace:!0,state:{ls:w.licenseHash}})}}),()=>{window.removeEventListener("message",()=>{})}),[]),o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,noFooter:n.value,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 flex flex-col items-start p-0 relative",style:{height:"calc(100vh - 180px)"},children:[!n.value&&o.jsxs(Yn.Header,{handleClose:e,children:[o.jsx("h1",{className:"mt-0.5",children:s("Unlock Pro features",{ns:"common"})}),o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e(),a("/app-settings/license/register",{replace:!0})},className:"hover:bg-green-300 dark:hover:bg-green-900 h-6 py-4 ml-auto",children:i?s("Renew License",{ns:"settings"}):s("Register License",{ns:"common"})})]}),n.value?o.jsx(o.Fragment,{children:o.jsx(Yn.Content,{className:"!pt-3 mb-0 w-full !pb-2 grow !max-h-700",children:o.jsx("iframe",{src:b,className:"rounded-md border-0 bg-transparent dark:border-slate-800/70",style:{width:520,height:"calc(100vh - 210px)"}})})}):o.jsx(Yn.Content,{className:"!pt-2 w-full !pb-2 grow",children:o.jsx(or,{style:{height:"auto",width:520,maxHeight:"calc(100vh - 330px)"},autoHide:!1,children:o.jsx(mV,{})})}),n.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{n.value=!1,l.value=!1},className:"text-slate-300 dark:hover:bg-slate-700 hover:bg-slate-600 absolute top-[-1 px] right-[-63px] w-14",children:o.jsx(In,{size:26})}),o.jsx(ve,{className:"items-center w-full gap-1 absolute bottom-[-50px] left-0",children:d.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"link",type:"button",onClick:()=>{d.value=!1},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:s("Stay here",{ns:"common"})}),o.jsx(je,{variant:"link",type:"button",onClick:()=>{d.value=!1,n.value=!1,e()},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:s("Close modal and continue in browser",{ns:"common"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{l.value?(n.value=!1,l.value=!1):(l.value=!0,setTimeout(()=>{l.value=!1},3e3))},className:"text-slate-200 dark:hover:bg-slate-700 hover:bg-slate-600 ".concat(l.value?"text-red-400 dark:text-red-500 hover:text-red-500 dark:hover:text-red-400":"opacity-70 hover:opacity-100"," h-10"),children:l.value?s("Are you sure?",{ns:"common"}):s("Cancel",{ns:"common"})}),o.jsxs(je,{variant:"link",type:"button",onClick:()=>{C(),d.value=!0},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:[s("Open payment in browser",{ns:"common"}),o.jsx(P0,{size:16,className:"ml-1.5"})]})]})})]}):o.jsx(Yn.Footer,{className:"flex !pt-0 !pb-3 justify-start relative",children:o.jsxs(ve,{className:"flex w-full justify-center gap-3",children:[o.jsx(je,{variant:"ghost",type:"button",onClick:e,className:"hover:bg-slate-200 dark:hover:bg-slate-900 opacity-70 hover:opacity-100 h-10",children:s("Not Now",{ns:"common"})}),o.jsxs(je,{size:"sm",onClick:()=>{n.value=!0},className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:[i?s("Renew License",{ns:"settings"}):s("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]})]})})]})})}finally{r.f()}}const XI="/assets/pastebar-accessibility-settings-monterey-CdsSxQWR.gif",QI="/assets/pastebar-accessibility-settings-ventura-B5xWaNbv.gif";function cCe({open:t,onClose:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),a=it(!1),i=it(null),l=it(14);return v.useEffect(()=>{OX().then(c=>{c==="darwin"&&$X().then(p=>{l.value=parseInt(p)});const d=setInterval(()=>ge(this,null,function*(){a.value=yield On("check_osx_accessibility_preferences"),a.value&&(i.value=!0,clearInterval(d))}),1e3);return()=>clearInterval(d)})},[]),v.useEffect(()=>{i.value!==null&&i.value&&setTimeout(()=>{e()},2e3)},[i.value]),o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 relative",children:[o.jsx(Yn.Header,{handleClose:e,children:o.jsx("h1",{className:"font-semibold text-center w-full",children:r("Enable PasteBar in Accessibility Settings",{ns:"common"})})}),i.value!==!0?o.jsxs(Yn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[o.jsx(re,{children:r("Please add PasteBar to the list of apps in",{ns:"common"})}),o.jsx(St,{className:"!flex w-fit text-[16px] px-6 my-2 text-center cursor-pointer ".concat(i.value===!1?"hover:bg-red-600 dark:hover:bg-red-700 bg-red-600 dark:bg-red-700":"hover:bg-green-600 dark:hover:bg-green-700"),variant:"slate",onClick:()=>{s.value=!0,i.value=null,On("open_osx_accessibility_preferences")},children:l.value>=13?r("System Settings -> Privacy & Security -> Accessibility",{ns:"common"}):r("System Preferences -> Security & Privacy -> Accessibility",{ns:"common"})}),l.value?o.jsx("img",{src:l.value>=13?QI:XI,draggable:!1,decoding:"async",className:"animate-in fade-in max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"}):o.jsx(ne,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),i.value===!1?o.jsx(re,{className:"text-sm w-[90%]",color:"danger",children:r("Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.",{ns:"common"})}):o.jsx(re,{className:"text-sm w-[90%]",children:r("This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}):o.jsxs(Yn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[o.jsx(re,{children:r("PasteBar was successfuly added to Accessibility settings",{ns:"common"})}),o.jsx(St,{className:"!flex w-fit text-md px-10",variant:"pro",children:r("Success!",{ns:"common"})}),l.value?o.jsxs(ve,{className:"relative",children:[o.jsx(en,{size:"182",className:"text-green-500 z-100 dark:bg-green-50/20 bg-green-300/20 rounded-full p-4 absolute animate-in fade-in duration-1000 dark:text-green-500"}),o.jsx("img",{src:l.value>=13?QI:XI,draggable:!1,decoding:"async",className:"opacity-30 max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"})]}):o.jsx(ne,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),o.jsx(re,{className:"text-sm w-[80%]",children:r("PasteBar application now can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}),o.jsx(Yn.Footer,{className:"flex-col !pt-0 !pb-5",children:i.value?o.jsx("div",{className:"flex w-full justify-center mt-3 gap-3",children:o.jsx(je,{variant:"ghost",type:"button",onClick:()=>ge(this,null,function*(){e()}),className:"h-10 ".concat(s.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:r("Close",{ns:"common"})})}):o.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[o.jsx(je,{size:"sm",autoFocus:!0,onClick:()=>{s.value=!0,i.value=null,On("open_osx_accessibility_preferences")},className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:r("Open Accessibility",{ns:"common"})}),o.jsx(je,{variant:"ghost",type:"button",onClick:()=>ge(this,null,function*(){a.value=yield On("check_osx_accessibility_preferences"),i.value=null,a.value?i.value=!0:i.value=!1,s.value=!1}),className:"h-10 ".concat(s.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:r("Done",{ns:"common"})})]})}),!i.value&&o.jsx(ve,{className:"justify-center items-center bottom-[-45px] absolute w-full",children:o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e()},className:"hover:bg-slate-500 text-slate-400 hover:text-slate-200 dark:text-slate-400 dark:hover:bg-slate-700 h-6 py-4",children:r("Later",{ns:"common"})})})]})})}finally{n.f()}}const uCe="_visible_1g3i7_1",dCe="_arrow_1g3i7_7",l4={visible:uCe,arrow:dCe,"empty-data":"_empty-data_1g3i7_20","shared-container":"_shared-container_1g3i7_28"},fCe=.75,hCe=5,pCe=10,mCe=10,gCe=!0,vCe=!0,xCe=!0,yCe=!1,gV="boarding-popover-item",bCe="boarding-btn-group",vV="boarding-popover-tip",wCe="boarding-popover-title",kCe="boarding-popover-description",CCe="boarding-popover-footer",SCe="boarding-popover-footer-hidden",jCe="boarding-close-btn",ECe="boarding-next-btn",NCe="boarding-prev-btn",_Ce="boarding-navigation-btns",JI="boarding-coutout-svg",eA="boarding-highlighted-element",TCe=!0,c4="boarding-no-pointer-events",u4="boarding-strict-pointer-events",e1="boarding-disabled",tA="boarding-close-only-btn",PCe=(t="")=>{const e=document.createElement("div");e.id=gV,e.className=t+" bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4 w-72 dark:text-gray-200 text-gray-800";const n=document.createElement("div");n.classList.add(vV);const r=document.createElement("div");r.classList.add(wCe),r.innerText="Popover Title";const s=document.createElement("div");s.classList.add(kCe),s.innerText="Popover Description";const a=document.createElement("div");a.classList.add(CCe);const i=document.createElement("button");i.classList.add(jCe),i.innerText="Close";const l=document.createElement("span");l.classList.add(bCe,_Ce);const c=document.createElement("span");c.classList.add("boarding-footer-counter");const d=document.createElement("button");d.classList.add(NCe),d.innerText="← Previous";const p=document.createElement("button");return p.classList.add(ECe),p.innerText="Next →",l.appendChild(d),l.appendChild(p),a.appendChild(i),a.appendChild(c),a.appendChild(l),e.appendChild(n),e.appendChild(r),e.appendChild(s),e.appendChild(a),{popoverWrapper:e,popoverTip:n,popoverTitle:r,popoverDescription:s,popoverFooter:a,popoverPrevBtn:d,popoverNextBtn:p,popoverCloseBtn:i,popoverFooterCounter:c,popoverFooterBtnGroup:l}};function Ap(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function xV(t,e,n){const r=(a,i)=>{const l=a.target;t.contains(l)&&((!n||n(l))&&a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),i==null||i(a))};document.addEventListener("pointerdown",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("pointerup",r,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("click",a=>{r(a,e)},!0)}function MCe(t){(!t||!("nodeType"in t&&t.nodeType===1&&typeof t.nodeName=="string"))&&console.error("Html Element expected")}function jf(t,e){return typeof e=="undefined"?t:e}function Bo(t){t||console.error("Variable was expected to not be falsy, but isntead was: ".concat(t))}function DCe(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function yV(t,e){!t||DCe(t)||t.scrollIntoView(e)}class ICe{constructor({options:e,highlightDomElement:n,popover:r}){kt(this,"options");kt(this,"highlightDomElement");kt(this,"popover");kt(this,"lastKnownDomRect");this.highlightDomElement=n,this.options=e,this.popover=r}isSame(e){return!e||!e.highlightDomElement?!1:e.highlightDomElement===this.highlightDomElement}getElement(){return this.highlightDomElement}getPopover(){return this.popover}getStrictClickHandling(){return this.options.strictClickHandling}onDeselected(){var e,n,r;(e=this.popover)==null||e.hide(),this.getElement().classList.remove(eA),(r=(n=this.options).onDeselected)==null||r.call(n,this)}onBeforeHighlighted(){var e,n;(n=(e=this.options).onBeforeHighlighted)==null||n.call(e,this)}onHighlighted(){var e,n,r;this.options.scrollIntoViewOptions!=="no-scroll"&&yV(this.highlightDomElement,this.options.scrollIntoViewOptions),(e=this.popover)==null||e.show(this),this.getElement().classList.add(eA),(r=(n=this.options).onHighlighted)==null||r.call(n,this)}getCustomPadding(){return this.options.padding}getCustomRadius(){return this.options.radius}onNext(){var e,n;(n=(e=this.options).onNext)==null||n.call(e,this)}onPrevious(){var e,n;(n=(e=this.options).onPrevious)==null||n.call(e,this)}getDOMRect(){const e=this.getElement(),n=e.getBoundingClientRect();return e.isConnected?(this.lastKnownDomRect=n,n):this.lastKnownDomRect||n}}function bV({hightlightBox:t,padding:e=0,radius:n=0}){const r=window.innerWidth,s=window.innerHeight,a=t.width+e*2,i=t.height+e*2,l=Math.min(n,a/2,i/2),c=Math.floor(Math.max(l,0)),d=t.x-e+c,p=t.y-e,f=a-c*2,m=i-c*2;return"M".concat(r,",0L0,0L0,").concat(s,"L").concat(r,",").concat(s,"L").concat(r,",0Z\n M").concat(d,",").concat(p," h").concat(f," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",").concat(c," v").concat(m," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",").concat(c," h-").concat(f," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",-").concat(c," v-").concat(m," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",-").concat(c," z")}function ACe({hightlightBox:t,padding:e=0,fillColor:n="rgb(0,0,0)",opacity:r=1,animated:s=!0}){const a=window.innerWidth,i=window.innerHeight,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add(JI),s&&l.classList.add("".concat(JI,"-animated")),l.setAttribute("viewBox","0 0 ".concat(a," ").concat(i)),l.setAttribute("xmlSpace","preserve"),l.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),l.setAttribute("version","1.1"),l.setAttribute("preserveAspectRatio","xMinYMin slice"),l.style.fillRule="evenodd",l.style.clipRule="evenodd",l.style.strokeLinejoin="round",l.style.strokeMiterlimit="2",l.style.zIndex="10000";const c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",bV({hightlightBox:t,padding:e})),c.style.fill=n,c.style.opacity="".concat(r),c.style.pointerEvents="auto",c.style.cursor="default",l.appendChild(c),l}let LCe=class{constructor(e){kt(this,"options");kt(this,"cutoutSVGElement");kt(this,"currentTransitionInProgress");kt(this,"activeSvgCutoutDefinition");kt(this,"highlightElemRect");kt(this,"currentHighlightedElement");kt(this,"previouslyHighlightedElement");this.options=R({opacity:fCe},e)}highlight(e){e.isSame(this.currentHighlightedElement)||(e.onBeforeHighlighted(),this.currentHighlightedElement&&!this.currentHighlightedElement.isSame(this.previouslyHighlightedElement)&&this.currentHighlightedElement.onDeselected(),this.startElementTracking(this.currentHighlightedElement||e,e),this.previouslyHighlightedElement=this.currentHighlightedElement,this.currentHighlightedElement=e,e.onHighlighted())}clear(e=!1,n){var r,s,a;this.currentHighlightedElement&&((s=(r=this.options).onReset)==null||s.call(r,this.currentHighlightedElement,n)),(a=this.currentHighlightedElement)==null||a.onDeselected(),this.currentHighlightedElement=void 0,this.previouslyHighlightedElement=void 0,this.cancelElementTracking(),this.options.animate&&!e?this.unmountCutoutElement():this.unmountCutoutElement()}startElementTracking(e,n){const s=Date.now(),a=()=>{const i=Date.now()-s;this.currentTransitionInProgress===a&&(this.options.animate&&i<400?this.transitionCutoutToPosition(i,400,e,n):this.trackElementOnScreen(),this.refreshSvgAndPopover(),window.requestAnimationFrame(a))};this.currentTransitionInProgress=a,window.requestAnimationFrame(a)}transitionCutoutToPosition(e,n,r,s){const a=this.activeSvgCutoutDefinition?ae(R({},this.activeSvgCutoutDefinition),{hightlightBox:R({},this.activeSvgCutoutDefinition.hightlightBox)}):{hightlightBox:r.getDOMRect(),padding:r.getCustomPadding(),radius:r.getCustomRadius()},i=s.getDOMRect(),l=jf(this.options.padding,s.getCustomPadding()),c=jf(this.options.radius,s.getCustomRadius()),d=jf(this.options.padding,a.padding),p=jf(this.options.radius,a.radius),f=Ap(e,a.hightlightBox.x,i.x-a.hightlightBox.x,n),m=Ap(e,a.hightlightBox.y,i.y-a.hightlightBox.y,n),b=Ap(e,a.hightlightBox.width,i.width-a.hightlightBox.width,n),C=Ap(e,a.hightlightBox.height,i.height-a.hightlightBox.height,n),g=Ap(e,d,l-d,n),w=Ap(e,p,c-p,n),x={hightlightBox:{x:f,y:m,width:b,height:C},padding:g,radius:w};this.activeSvgCutoutDefinition=x,this.updateCutoutPosition(x)}cancelElementTracking(){this.currentTransitionInProgress=void 0,this.activeSvgCutoutDefinition=void 0,this.highlightElemRect=void 0}trackElementOnScreen(){if(this.currentHighlightedElement){const e=this.currentHighlightedElement.getDOMRect();if(JSON.stringify(e)!==JSON.stringify(this.highlightElemRect)){const n={hightlightBox:{x:e.x,y:e.y,width:e.width,height:e.height},padding:jf(this.options.padding,this.currentHighlightedElement.getCustomPadding()),radius:jf(this.options.radius,this.currentHighlightedElement.getCustomRadius())};this.updateCutoutPosition(n),this.activeSvgCutoutDefinition=n}this.highlightElemRect=e}}refreshSvgAndPopover(){var r;Bo(this.cutoutSVGElement),Bo(this.currentHighlightedElement);const e=window.innerWidth,n=window.innerHeight;this.cutoutSVGElement.setAttribute("viewBox","0 0 ".concat(e," ").concat(n)),(r=this.currentHighlightedElement.getPopover())==null||r.refresh()}getOverlayElement(){return this.cutoutSVGElement}mountCutoutElement(e){if(this.cutoutSVGElement){console.error("Already mounted SVG");return}const n=ACe(e);this.cutoutSVGElement=n,document.body.appendChild(n),xV(this.cutoutSVGElement,r=>{r.target.tagName==="path"&&this.options.onOverlayClick()})}unmountCutoutElement(){this.cutoutSVGElement&&(document.body.removeChild(this.cutoutSVGElement),this.cutoutSVGElement=void 0)}updateCutoutPosition(e){const n={hightlightBox:e.hightlightBox,padding:e.padding,opacity:this.options.opacity,radius:e.radius,animated:this.options.animate};if(!this.cutoutSVGElement)this.mountCutoutElement(n);else{const r=this.cutoutSVGElement.firstElementChild;(r==null?void 0:r.tagName)==="path"?r.setAttribute("d",bV(n)):console.error("No existing path found on SVG but we want one :(")}}};const nA=["top","bottom","left","right"];class RCe{constructor(e,n,r,s){kt(this,"highlightElement");kt(this,"popover");kt(this,"padding");kt(this,"finalOffset");this.highlightElement=e,this.popover=n,this.padding=r,this.finalOffset=r+s}setBestPosition(e,n){var a;const r=this.findOptimalPosition(e,n),s=(a=this.popover.getPopoverElements())==null?void 0:a.popoverWrapper;Bo(s),s.style.left=typeof r.left=="number"?"".concat(r.left,"px"):"auto",s.style.right=typeof r.right=="number"?"".concat(r.right,"px"):"auto",s.style.top=typeof r.top=="number"?"".concat(r.top,"px"):"auto",s.style.bottom=typeof r.bottom=="number"?"".concat(r.bottom,"px"):"auto"}getHighlightElemRect(){return this.highlightElement.getDOMRect()}getPopoverDimensions(){const e=this.popover.getPopoverElements(),n=e==null?void 0:e.popoverWrapper.getBoundingClientRect(),r=e==null?void 0:e.popoverTip.getBoundingClientRect();return Bo(n),Bo(r),{width:n.width+this.finalOffset,height:n.height+this.finalOffset,tipSize:r.width}}checkIfSideOptimal(e){const n=this.getPopoverDimensions(),r=this.getHighlightElemRect();switch(e){case"top":const s=r.top-n.height;return{side:"top",value:s,isOptimal:s>=0};case"bottom":const a=window.innerHeight-(r.bottom+n.height);return{side:"bottom",value:a,isOptimal:a>=0};case"left":const i=r.left-n.width;return{side:"left",value:i,isOptimal:i>=0};case"right":const l=window.innerWidth-(r.right+n.width);return{side:"right",value:l,isOptimal:l>=0}}}findOptimalSide(e=0){const n=nA[e],r=this.checkIfSideOptimal(n);return r.isOptimal?r:e===nA.length-1?"none":this.findOptimalSide(e+1)}normalizeAlignment(e,n,r,s,a,i){switch(e){case"start":return Math.max(Math.min(r-this.padding,s-n-i),i);case"end":return Math.max(Math.min(r-n+a+this.padding,s-n-i),i);case"center":const l=r-n/2+a/2;return Math.min(Math.max(i,l),s-i-n)}}findOptimalPosition(e,n){let r;if(n?(r=this.checkIfSideOptimal(n),r.isOptimal||(r=this.findOptimalSide())):r=this.findOptimalSide(),r==="none"){const s=this.getPopoverDimensions();return this.clearPopoverTipPosition(),{left:window.innerWidth/2-(s.width-this.finalOffset)/2,bottom:10}}else{const s=this.getPopoverDimensions(),a=this.getHighlightElemRect(),i={},l=s.width-this.finalOffset,c=s.height-this.finalOffset;switch(r.side){case"top":i.top=Math.min(r.value,window.innerHeight-c-s.tipSize),i.left=this.normalizeAlignment(e,l,a.left,window.innerWidth,a.width,s.tipSize),this.setPopoverTipPosition(e,r.side,a.left,a.width);break;case"bottom":i.bottom=Math.min(r.value,window.innerHeight-c-s.tipSize),i.left=this.normalizeAlignment(e,l,a.left,window.innerWidth,a.width,s.tipSize),this.setPopoverTipPosition(e,r.side,a.left,a.width);break;case"left":i.left=Math.min(r.value,window.innerWidth-l-s.tipSize),i.top=this.normalizeAlignment(e,c,a.top,window.innerHeight,a.height,s.tipSize),this.setPopoverTipPosition(e,r.side,a.top,a.height);break;case"right":i.right=Math.min(r.value,window.innerWidth-l-s.tipSize),i.top=this.normalizeAlignment(e,c,a.top,window.innerHeight,a.height,s.tipSize),this.setPopoverTipPosition(e,r.side,a.top,a.height);break}return i}}clearPopoverTipPosition(){var n;const e=(n=this.popover.getPopoverElements())==null?void 0:n.popoverTip;Bo(e),e.className=vV+" "}setPopoverTipPosition(e,n,r,s){var p,f;const a=(p=this.popover.getPopoverElements())==null?void 0:p.popoverWrapper,i=(f=this.popover.getPopoverElements())==null?void 0:f.popoverTip;Bo(a),Bo(i);let l=n,c=e;const d=a.getBoundingClientRect();switch(n){case"top":r+s<=0?(l="right",c="end"):r+s-d.width<=0&&(c="start"),r>=window.innerWidth?(l="left",c="end"):r+d.width>=window.innerWidth&&(c="end");break;case"bottom":r+s<=0?(l="right",c="start"):r+s-d.width<=0&&(c="start"),r>=window.innerWidth?(l="left",c="start"):r+d.width>=window.innerWidth&&(c="end");break;case"left":r+s<=0?(l="bottom",c="end"):r+s-d.height<=0&&(c="start"),r>=window.innerHeight?(l="top",c="end"):r+d.height>=window.innerHeight&&(c="end");break;case"right":r+s<=0?(l="bottom",c="start"):r+s-d.height<=0&&(c="start"),r>=window.innerHeight?(l="top",c="start"):r+d.height>=window.innerHeight&&(c="end");break}this.clearPopoverTipPosition(),i.classList.add("boarding-tipside-".concat(l),"boarding-tipalign-".concat(c))}}class OCe{constructor(b){kt(this,"options");kt(this,"popover");kt(this,"highlightElement");var C=b,{showButtons:e=!0,disableButtons:n=[],offset:r=mCe,meta:s={},alignment:a="start",closeBtnText:i="Close",doneBtnText:l="Done",okBtnText:c="Ok",startBtnText:d="Next →",nextBtnText:p="Next →",prevBtnText:f="← Previous"}=C,m=Ne(C,["showButtons","disableButtons","offset","meta","alignment","closeBtnText","doneBtnText","okBtnText","startBtnText","nextBtnText","prevBtnText"]);this.options=R({showButtons:e,disableButtons:n,meta:s,offset:r,alignment:a,closeBtnText:i,doneBtnText:l,startBtnText:d,nextBtnText:p,prevBtnText:f,okBtnText:c},m)}hide(){var e;this.popover&&((e=this.popover.popoverWrapper.parentElement)==null||e.removeChild(this.popover.popoverWrapper))}show(e){this.highlightElement=e,this.attachNode(),Bo(this.popover),Bo(this.highlightElement),this.setInitialState(),this.popover.popoverTitle.innerHTML=this.options.title||"",this.popover.popoverDescription.innerHTML=this.options.description||"",this.renderFooter(),this.setPosition(),this.options.scrollIntoViewOptions!=="no-scroll"&&yV(this.popover.popoverWrapper,this.options.scrollIntoViewOptions)}refresh(){this.highlightElement&&this.setPosition()}getPopoverElements(){return this.popover}getShowButtons(){return this.options.showButtons}getDisabledButtons(){return this.options.disableButtons}setInitialState(){Bo(this.popover),this.popover.popoverWrapper.style.left="0",this.popover.popoverWrapper.style.top="0",this.popover.popoverWrapper.style.bottom="",this.popover.popoverWrapper.style.right=""}setPosition(){Bo(this.highlightElement);const e=this.highlightElement.getCustomPadding();new RCe(this.highlightElement,this,jf(this.options.padding,e),this.options.offset).setBestPosition(this.options.alignment,this.options.prefferedSide)}attachNode(){var f,m,b;this.popover&&((f=this.popover.popoverWrapper.parentElement)==null||f.removeChild(this.popover.popoverWrapper));const e=PCe(this.options.className),{popoverWrapper:n,popoverTip:r,popoverTitle:s,popoverDescription:a,popoverFooter:i,popoverPrevBtn:l,popoverNextBtn:c,popoverFooterCounter:d,popoverCloseBtn:p}=e;this.options.animate&&n.classList.add("".concat(gV,"-animated")),(b=(m=this.options).onPopoverRender)==null||b.call(m,e),document.body.appendChild(n),xV(n,C=>{const g=C.target;c.contains(g)&&this.options.onNextClick(),l.contains(g)&&this.options.onPreviousClick(),p.contains(g)&&this.options.onCloseClick()},C=>!a.contains(C)),this.popover={popoverWrapper:n,popoverTip:r,popoverTitle:s,popoverDescription:a,popoverFooter:i,popoverFooterCounter:d,popoverPrevBtn:l,popoverNextBtn:c,popoverCloseBtn:p}}renderFooter(){var r,s,a;Bo(this.popover),this.popover.popoverPrevBtn.innerHTML=this.options.prevBtnText;const e=this.options.closeBtnText;typeof e=="string"&&e!=="x"?this.popover.popoverCloseBtn.innerHTML=e:this.popover.popoverCloseBtn.innerHTML='';const n=this.options.totalCount&&this.options.totalCount!==1;if(!this.options.showButtons){this.popover.popoverFooter.classList.add(SCe),this.popover.popoverFooter.style.display="none";return}n?(this.popover.popoverNextBtn.style.display="inline-block",this.popover.popoverPrevBtn.style.display="inline-block",this.popover.popoverCloseBtn.classList.remove(tA)):(this.popover.popoverNextBtn.style.display="none",this.popover.popoverPrevBtn.style.display="none",this.popover.popoverCloseBtn.classList.add(tA)),Array.isArray(this.options.showButtons)&&(this.options.showButtons.includes("next")||(this.popover.popoverNextBtn.style.display="none"),this.options.showButtons.includes("previous")||(this.popover.popoverPrevBtn.style.display="none"),this.options.showButtons.includes("close")||(this.popover.popoverCloseBtn.style.display="none")),this.popover.popoverFooter.style.display="flex",this.options.disableButtons.includes("close")&&this.popover.popoverCloseBtn.classList.add(e1),this.options.disableButtons.includes("next")&&this.popover.popoverNextBtn.classList.add(e1),this.options.isFirst&&this.options.totalCount>1?(this.popover.popoverPrevBtn.classList.add(e1),this.popover.popoverFooterCounter.innerHTML="".concat(this.options.currentIndex+1,"/").concat(this.options.totalCount),this.popover.popoverNextBtn.innerHTML="".concat(this.options.nextBtnText)):this.options.isLast||this.options.currentIndex+1===this.options.totalCount?(this.popover.popoverNextBtn.innerHTML=this.options.doneBtnText,this.popover.popoverNextBtn.style.display="inline-block",this.popover.popoverFooterCounter.innerHTML=""):(this.options.disableButtons.includes("previous")?this.popover.popoverPrevBtn.classList.add(e1):this.popover.popoverPrevBtn.classList.remove(e1),this.popover.popoverFooterCounter.innerHTML="".concat(this.options.currentIndex+1,"/").concat(this.options.totalCount),this.popover.popoverNextBtn.innerHTML="".concat(this.options.nextBtnText)),(r=this.popover)!=null&&r.popoverNextBtn&&((a=(s=this.popover)==null?void 0:s.popoverNextBtn)==null||a.focus())}}class $Ce{constructor(e){kt(this,"isActivated");kt(this,"currentStep");kt(this,"options");kt(this,"steps");kt(this,"lastMovementRequested");kt(this,"currentMovePrevented");kt(this,"overlay");const f=R({},e),{strictClickHandling:n=TCe,animate:r=gCe,padding:s=pCe,radius:a=hCe,scrollIntoViewOptions:i={behavior:"auto",block:"center"},allowClose:l=vCe,keyboardControl:c=xCe,overlayClickNext:d=yCe}=f,p=Ne(f,["strictClickHandling","animate","padding","radius","scrollIntoViewOptions","allowClose","keyboardControl","overlayClickNext"]);this.options=R({strictClickHandling:n,animate:r,padding:s,radius:a,scrollIntoViewOptions:i,allowClose:l,keyboardControl:c,overlayClickNext:d},p),this.isActivated=!1,this.steps=[],this.currentStep=0,this.currentMovePrevented=!1,this.overlay=new LCe({animate:this.options.animate,padding:this.options.padding,radius:this.options.radius,onReset:this.options.onReset,opacity:this.options.opacity,onOverlayClick:()=>{if(this.options.overlayClickNext){this.next();return}if(this.options.allowClose){this.reset(!1,"cancel");return}}}),this.onKeyUp=this.onKeyUp.bind(this),this.onClick=this.onClick.bind(this)}start(e=0){var n,r;if(this.lastMovementRequested={movement:0,index:e},!this.steps||this.steps.length===0){console.log("There are no steps defined to iterate");return}(r=(n=this.steps[e]).prepareElement)==null||r.call(n,"init"),!this.currentMovePrevented&&this.handleStart(e)}highlight(e){var r;this.lastMovementRequested={movement:1,selector:e};const n=typeof e=="object"&&"element"in e?e:{element:e};(r=n.prepareElement)==null||r.call(n,"init"),!this.currentMovePrevented&&this.handleHighlight(e)}preventMove(){if(this.lastMovementRequested!==void 0)if(this.currentMovePrevented!==this.lastMovementRequested)if(this.currentMovePrevented)console.warn("Tried to call Boarding.preventMove, but move has already been prevented, and not been continued or reset yet");else{const e=R({},this.lastMovementRequested);this.currentMovePrevented=e,this.lastMovementRequested=e}else console.warn("Boarding.preventMove was called multiple times for the same move, which has no effect.");else console.warn("Tried to call Boarding.preventMove before, but no move was requested so far.")}continue(){return ge(this,null,function*(){setTimeout(()=>{if(this.currentMovePrevented===this.lastMovementRequested)switch(this.currentMovePrevented=!1,this.lastMovementRequested.movement){case 0:this.handleStart(this.lastMovementRequested.index);break;case 1:this.handleHighlight(this.lastMovementRequested.selector);break;case 2:this.handleNext();break;case 3:this.moveNext();break;case 4:this.handlePrevious();break;case 5:this.movePrevious();break}else console.warn("Boarding.continue was probably called too late, since the last preventMove was called from a different step (or never called at all).")},0)})}clearMovePrevented(){this.currentMovePrevented=!1}next(){var e,n;this.currentMovePrevented||(this.lastMovementRequested={movement:2,index:this.currentStep},(n=(e=this.steps[this.currentStep+1])==null?void 0:e.prepareElement)==null||n.call(e,"next"),!this.currentMovePrevented&&this.handleNext())}previous(){var e,n;this.currentMovePrevented||(this.lastMovementRequested={movement:4,index:this.currentStep},(n=(e=this.steps[this.currentStep-1])==null?void 0:e.prepareElement)==null||n.call(e,"prev"),!this.currentMovePrevented&&this.handlePrevious())}hasNextStep(){return!!this.steps[this.currentStep+1]}hasPreviousStep(){return!!this.steps[this.currentStep-1]}reset(e=!1,n="cancel"){this.currentStep=0,this.isActivated=!1,this.overlay.clear(e,n),this.removeEventListeners(),document.body.classList.remove(c4,u4),this.lastMovementRequested=void 0,this.currentMovePrevented=!1}hasHighlightedElement(){return!!this.overlay.currentHighlightedElement}getHighlightedElement(){return this.overlay.currentHighlightedElement}getLastHighlightedElement(){return this.overlay.previouslyHighlightedElement}defineSteps(e){this.steps=e}getSteps(){return this.steps}handleStart(e){var r,s,a,i;const n=this.prepareElementFromStep(e);if(!n){console.log("The step with starting index ".concat(e," could not resolve to an element.")),this.currentStep=0,(s=(r=this.options).onStart)==null||s.call(r,void 0),this.next();return}this.currentStep=e,(i=(a=this.options).onStart)==null||i.call(a,n),this.activateBoarding(n)}handleHighlight(e){const n=typeof e=="object"&&"element"in e?e:{element:e},r=this.prepareElementFromStep(n);if(!r){console.log("The step with element ".concat(n.element," could not resolve to an element.")),this.next();return}this.activateBoarding(r)}handleNext(){this.lastMovementRequested={movement:3,index:this.currentStep};const e=this.prepareElementFromStep(this.currentStep);e||console.log("The step with index ".concat(this.currentStep," could not resolve to an element.")),e==null||e.onNext(),!this.currentMovePrevented&&this.moveNext()}handlePrevious(){this.lastMovementRequested={movement:5,index:this.currentStep};const e=this.prepareElementFromStep(this.currentStep);e==null||e.onPrevious(),!this.currentMovePrevented&&this.movePrevious()}moveNext(){const e=this.prepareElementFromStep(this.currentStep+1);if(!e){if(!this.hasNextStep()){this.reset(!1,"finish");return}this.currentStep+=1,this.next();return}this.setStrictClickHandlingRules(e),this.overlay.highlight(e),this.currentStep+=1}movePrevious(){const e=this.prepareElementFromStep(this.currentStep-1);if(!e){if(!this.hasPreviousStep()){this.currentStep=0,this.next();return}this.currentStep-=1,this.previous();return}this.setStrictClickHandlingRules(e),this.overlay.highlight(e),this.currentStep-=1}activateBoarding(e){this.attachEventListeners(),this.isActivated=!0,this.setStrictClickHandlingRules(e),this.overlay.highlight(e)}setStrictClickHandlingRules(e){const n=e.getStrictClickHandling(),r=n===void 0?this.options.strictClickHandling:n;document.body.classList.remove(c4,u4),r==="block-all"?document.body.classList.add(c4):r&&document.body.classList.add(u4)}attachEventListeners(){window.addEventListener("keyup",this.onKeyUp,!1),"ontouchstart"in document.documentElement?window.addEventListener("touchstart",this.onClick,!1):window.addEventListener("click",this.onClick,!1)}removeEventListeners(){window.removeEventListener("keyup",this.onKeyUp,!1),window.removeEventListener("click",this.onClick,!1),window.removeEventListener("touchstart",this.onClick,!1)}onClick(e){if(!this.overlay.currentHighlightedElement)return;MCe(e.target);const s=!this.overlay.currentHighlightedElement.getElement().contains(e.target);if(this.options.strictClickHandling&&s){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation();return}}onKeyUp(e){if(e.preventDefault(),e.stopPropagation(),!this.isActivated||!this.options.keyboardControl)return;if(e.key==="Escape"&&this.options.allowClose){this.reset(!1,"cancel");return}const n=this.getHighlightedElement(),r=n==null?void 0:n.getPopover(),s=r==null?void 0:r.getShowButtons(),a=r==null?void 0:r.getDisabledButtons();s&&(e.key==="ArrowRight"||e.key==="ArrowDown"?!(a!=null&&a.includes("next"))&&(s===!0||s.includes("next"))&&this.next():(e.key==="ArrowLeft"||e.key==="ArrowUp")&&!(a!=null&&a.includes("previous"))&&(s===!0||s.includes("previous"))&&this.previous())}prepareElementFromStep(e){var l;const n=typeof e=="number"?this.steps[e]:e,r=typeof e=="number"?e:0,s=typeof e=="number"?this.steps.length:1;if(n===void 0)return null;const a=typeof n.element=="string"?document.querySelector(n.element):n.element;if(!a)return console.warn("Element to highlight ".concat(n.element," not found")),null;let i=null;if((l=n.popover)!=null&&l.title){const c=[this.options.className,n.popover.className].filter(d=>d).join(" ");i=new OCe({padding:this.options.padding,offset:this.options.offset,animate:this.options.animate,meta:n.meta,scrollIntoViewOptions:n.scrollIntoViewOptions===void 0?this.options.scrollIntoViewOptions:n.scrollIntoViewOptions,title:n.popover.title,description:n.popover.description,prefferedSide:n.popover.prefferedSide||this.options.prefferedSide,alignment:n.popover.alignment||this.options.alignment,showButtons:n.popover.showButtons===void 0?this.options.showButtons:n.popover.showButtons,disableButtons:n.popover.disableButtons===void 0?this.options.disableButtons:n.popover.disableButtons,onPopoverRender:n.popover.onPopoverRender===void 0?this.options.onPopoverRender:n.popover.onPopoverRender,doneBtnText:n.popover.doneBtnText||this.options.doneBtnText,closeBtnText:n.popover.closeBtnText||this.options.closeBtnText,nextBtnText:n.popover.nextBtnText||this.options.nextBtnText,startBtnText:n.popover.startBtnText||this.options.startBtnText,prevBtnText:n.popover.prevBtnText||this.options.prevBtnText,className:c,totalCount:s,currentIndex:r,isFirst:r===0,isLast:s===0||r===s-1,onNextClick:()=>{this.next()},onPreviousClick:()=>{this.previous()},onCloseClick:()=>{this.reset(!1,"cancel")}})}return new ICe({highlightDomElement:a,options:{scrollIntoViewOptions:n.scrollIntoViewOptions===void 0?this.options.scrollIntoViewOptions:n.scrollIntoViewOptions,onBeforeHighlighted:n.onBeforeHighlighted||this.options.onBeforeHighlighted,onHighlighted:n.onHighlighted||this.options.onHighlighted,onDeselected:n.onDeselected||this.options.onDeselected,onNext:n.onNext||this.options.onNext,onPrevious:n.onPrevious||this.options.onPrevious,strictClickHandling:n.strictClickHandling,padding:n.padding,radius:n.radius},popover:i})}}const zCe=t=>{const e=Te(29),{steps:n,options:r,onStart:s,onNext:a,onPrevious:i,onEnd:l,onHighlighted:c,onBeforeHighlighted:d,onDeselected:p}=t,f=v.useRef(null);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=L=>ge(void 0,null,function*(){return document.getElementById("boardingCSSLink")?Promise.resolve():new Promise((z,Y)=>{const O=document.createElement("link");O.rel="stylesheet",O.id="boardingCSSLink",O.type="text/css",O.href=L,O.onload=()=>{z()},O.onerror=()=>Y(new Error("Failed to load CSS at ".concat(L))),document.head.appendChild(O)})}),e[0]=m):m=e[0];const b=m;let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const L=document.getElementById("boardingCSSLink");L&&L.remove()},e[1]=C):C=e[1];const g=C;let w;e[2]!==l?(w=(L,A)=>{g(),l&&l(L,A)},e[2]=l,e[3]=w):w=e[3];const x=w;let S;e[4]!==n||e[5]!==r||e[6]!==s||e[7]!==a||e[8]!==i||e[9]!==x||e[10]!==c||e[11]!==d||e[12]!==p?(S=()=>{var A;if(f.current){f.current.defineSteps(n),f.current.isActivated||(A=f.current)==null||A.start();return}const L=new $Ce(ae(R({},r),{onStart:s,onNext:a,onPrevious:i,onReset:x,onHighlighted:c,onBeforeHighlighted:d,onDeselected:p}));L.defineSteps(n),f.current=L},e[4]=n,e[5]=r,e[6]=s,e[7]=a,e[8]=i,e[9]=x,e[10]=c,e[11]=d,e[12]=p,e[13]=S):S=e[13];let E;e[14]!==n||e[15]!==r||e[16]!==s||e[17]!==a||e[18]!==i||e[19]!==l||e[20]!==c||e[21]!==d||e[22]!==p?(E=[n,r,s,a,i,l,c,d,p],e[14]=n,e[15]=r,e[16]=s,e[17]=a,e[18]=i,e[19]=l,e[20]=c,e[21]=d,e[22]=p,e[23]=E):E=e[23],v.useEffect(S,E);let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{f.current&&ge(void 0,null,function*(){var A;yield b("/assets/styles/boarding.css"),(A=f.current)==null||A.start()})},e[24]=N):N=e[24];const _=N;let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{g(),f.current&&(f.current.reset(!0),f.current=null)},e[25]=P):P=e[25];const I=P;let T;return e[26]!==_||e[27]!==I?(T={startBoarding:_,resetBoarding:I,boarding:f.current},e[26]=_,e[27]=I,e[28]=T):T=e[28],T},FCe=({tourName:t,element:e,onCompleted:n,onSkipped:r})=>{var a,i;var s=sn(1);try{const{t:l}=Gt(),c=ua(),d=wl(),[p,f]=v.useState([]),[m,b]=v.useState(null),[C,g]=v.useState(null),{appToursCompletedList:w,appToursSkippedList:x,setAppToursSkippedList:S}=Tt(Cr),{toast:E}=bk();v.useEffect(()=>{if(m===t&&!(P!=null&&P.isActivated)){N();return}_();const I=l(t,{returnObjects:!0,defaultValue:[],ns:"tours"}),T=e?I.filter(L=>Array.isArray(e)?e.includes(L.element):e===L.element):I;f(T),b(t)},[t]);const{startBoarding:N,resetBoarding:_,boarding:P}=zCe({steps:p,options:{animate:!0,opacity:.65,padding:8,allowClose:!!e,doneBtnText:e?l("Got It",{ns:"help"}):l("Done",{ns:"help"}),closeBtnText:"x",nextBtnText:l("Next",{ns:"help"}),prevBtnText:l("Previous",{ns:"help"}),showButtons:!0,keyboardControl:!0},onEnd:(I,T)=>{const L=rr.value,Y=Object.values(En).sort(($,M)=>oM.indexOf($)-oM.indexOf(M)).filter($=>!w.includes($)&&$!==L)[0];rr.value=null;const O=T==="finish";if(e)id.value=null;else{if(!O){const M=[...x,L];S(M)}const $=E({id:O?"tour-completed":"tour-skipped",title:O?o.jsxs(ve,{className:"text-green-600 dark:text-green-500 justify-start items-center",children:[l("Tour Completed",{ns:"help"}),o.jsx(en,{className:"h-5 w-5 ml-2"})]}):o.jsx(ne,{className:"text-yellow-600 dark:text-yellow-500",children:l("Tour Skipped",{ns:"help"})}),duration:O?12e3:6e3,description:T==="finish"?Y?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-[14px]",children:o.jsx(us,{i18nKey:"Great job! You have completed this tour. Ready to see more? Click Skip if you want to explore on your own. All tours always available from the Help > App Guided Tours menu in the navbar.",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{autoFocus:!0,className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{$==null||$.dismiss(),rr.value=Y},children:l("Start Next Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{$==null||$.dismiss()},children:l("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{_(),r&&L&&r(L),$==null||$.dismiss()},children:l("Skip",{ns:"help"})})]})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-[14px]",children:o.jsx(us,{i18nKey:"Congratulations! You have finished all the tours and now ready to make the most of PasteBar's features. Remember, all tours always available from the Help > App Guided Tours menu in the navbar.",ns:"help"})}),o.jsx(ve,{className:"justify-between",children:o.jsx(je,{autoFocus:!0,className:"bg-green-500 dark:bg-green-700 dark:hover:bg-green-800 hover:bg-green-600 px-4 mt-3 text-white !outline-none",onClick:()=>{$==null||$.dismiss()},children:l("Let's get started",{ns:"help"})})})]}):o.jsxs(ne,{className:"text-[15px]",children:[o.jsx(us,{i18nKey:"Feel free to explore the app on your own. If you need help or want to access the tours later, you can always find them in the Help > App Guided Tours menu in the navigation bar.",ns:"help"}),o.jsx(ne,{children:o.jsx(je,{variant:"outline",autoFocus:!0,className:"text-gray-800 px-4 mt-3",onClick:()=>{_(),$==null||$.dismiss()},children:l("Got It",{ns:"help"})})})]})});n&&O&&n(t)}},onHighlighted:I=>{g(I)}});return Vs("esc",()=>{rr.value&&(rr.value=null,id.value=null,_())}),v.useEffect(()=>{if(!(P!=null&&P.isActivated)){if(d.pathname!=="/history"&&(rr.value===En.historyPanelTour||rr.value===En.dashboardClipsTour)){c("/history",{replace:!0});return}if(d.pathname!=="/menu"&&rr.value===En.menuTour){c("/menu",{replace:!0});return}if(!d.pathname.startsWith("/app-settings")&&rr.value===En.settingsTour){c("/app-settings/history",{replace:!0});return}rr.value===En.navBarTour&&N()}},[rr.value]),v.useEffect(()=>{if(!(P!=null&&P.isActivated)){if(d.pathname==="/history"&&(rr.value===En.historyPanelTour||rr.value===En.dashboardClipsTour)){N();return}if(d.pathname==="/menu"&&rr.value===En.menuTour){N();return}if(d.pathname.startsWith("/app-settings")&&rr.value===En.settingsTour){N();return}return rr.value===En.navBarTour&&N(),()=>{_()}}},[]),P!=null&&P.isActivated?o.jsx(je,{className:"boarding-highlighted-element fixed bottom-4 z-[10001] ".concat((i=(a=C==null?void 0:C.popover)==null?void 0:a.options.meta)==null?void 0:i.closeTourCssPosition),onClick:()=>{_()},children:e?o.jsx(o.Fragment,{children:o.jsx(In,{className:"h-5 w-5"})}):o.jsx(o.Fragment,{children:l("Skip Tour",{ns:"help"})})}):null}finally{s.f()}},HCe=(t,e)=>{var r;var n=sn(1);try{const{t:s}=Gt(),a=v.useRef(null),i=v.useRef(null),l=wl(),c=v.useRef(null),{isScrolling:d,isSwapPanels:p}=Tt(Ls),{historyListSimpleBar:f,clipboardHistory:m}=Tt(_i),{appToursCompletedList:b,setAppToursCompletedList:C,setAppToursSkippedList:g,isNotTourCompletedOrSkipped:w,appToursSkippedList:x}=Tt(Cr),[S,E]=Dw("resetPassCodeNextDelayInSeconds",null),[,N]=Dw("resetPassCodeGlobalUnsuccessfulTries",0),[_,P]=D7({}),[I,T,L]=I7({}),A=it(!1),z=it(!1),[Y,O]=v.useState({top:0,left:0}),$=v.useRef(I),M=v.useRef(_),W=ua(),{toast:V}=bk(),U=(F,q=0)=>{$.current||M.current||requestAnimationFrame(()=>{const X=a.current?a.current.getBoundingClientRect():new DOMRect(0),te=F.top-X.top,ee=q>0&&F.left+F.width/2-X.left>q?q/2:F.left+F.width/2-X.left;O({top:te,left:ee}),A.value=!0})};v.useEffect(()=>{var F;return S&&(Br.value=(F=parseInt(S,10))!=null?F:0),()=>{Wi.value&&(clearInterval(Wi.value),Wi.value=null),Br.value>0?(E(Br.value),Br.value=0):E(null)}},[]),v.useEffect(()=>{Br.value>0&&Wi.value==null&&(Wi.value=setInterval(()=>{Br.value>0?(E(Br.value),Br.value-=1):(Wi.value&&clearInterval(Wi.value),N(0),E(null),Br.value=0,zp.value=0,Wi.value=null)},1e3))},[Br.value]),v.useEffect(()=>{var F;_||I||(A.value=!1,(F=window.getSelection())==null||F.removeAllRanges())},[p,m,_,I]),v.useEffect(()=>{$.current=I,M.current=_},[I,_]),v.useEffect(()=>{A.value&&(Nf.value=null,_f.value=null)},[A.value]),Vs("esc",()=>{var F;A.value&&(A.value=!1),(F=window.getSelection())==null||F.removeAllRanges()}),Vs(["meta+a","control+a"],F=>{F.preventDefault()}),Vs(["meta+f","control+f"],F=>{zf.value=F.type==="keydown",setTimeout(()=>{zf.value&&(zf.value=!1)},300)},{enableOnFormTags:!0});const J=Hf(F=>{var X,te;const q=qu();if(q.text.trim().length&&((X=q.selection)!=null&&X.containsNode(a.current,!0)))try{const G=q.selection.getRangeAt(0).getBoundingClientRect();let Z=0;(te=f==null?void 0:f.current)!=null&&te.contains(F.target)&&f.current.getBoundingClientRect().width>0&&(Z=L$.getState().isSwapPanels?0:f.current.getBoundingClientRect().width),U(G,Z)}catch(ee){A.value=!1}else A.value=!1},600,{leading:!1}),H=$$(F=>{var q;if(F.target===(c==null?void 0:c.current)||(q=c.current)!=null&&q.contains(F.target))return!1;A.value&&(A.value=!1)},30,{leading:!0});return v.useEffect(()=>{d&&A.value&&(A.value=!1)},[d]),v.useEffect(()=>{var F,q;return(F=a==null?void 0:a.current)==null||F.addEventListener("mouseup",J),(q=a==null?void 0:a.current)==null||q.addEventListener("click",H),()=>{var X,te;(X=a==null?void 0:a.current)==null||X.removeEventListener("mouseup",J),(te=a==null?void 0:a.current)==null||te.removeEventListener("click",H)}},[a.current]),v.useEffect(()=>{var F;rr.value||(l.pathname==="/menu"?w(En.menuTour)&&(i.current=V({title:"".concat(s("Welcome to Paste Menu",{ns:"help"})),id:"menu-tour",duration:3e3,description:o.jsxs(ne,{children:[s("WelcomeTourDescription",{ns:"help"}),o.jsx(ne,{className:"mt-3",children:o.jsx(us,{i18nKey:"WelcomeTourCanSkip",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{var q;rr.value=En.menuTour,(q=i.current)==null||q.dismiss()},children:s("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{var q;(q=i.current)==null||q.dismiss()},children:s("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{var q;(q=i.current)==null||q.dismiss(),g([...x,En.menuTour])},children:s("Skip Tour",{ns:"help"})})]})]})]})})):l.pathname.startsWith("/app-settings")&&w(En.settingsTour)?i.current=V({title:"".concat(s("Welcome to PasteBar Settings",{ns:"help"})),id:"settings-tour",duration:0,description:o.jsxs(ne,{children:[s("WelcomeTourDescription",{ns:"help"}),o.jsx(ne,{className:"mt-3",children:o.jsx(us,{i18nKey:"WelcomeTourCanSkip",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{var q;rr.value=En.settingsTour,(q=i.current)==null||q.dismiss()},children:s("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{var q;(q=i.current)==null||q.dismiss()},children:s("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{var q;(q=i.current)==null||q.dismiss(),g([...x,En.settingsTour])},children:s("Skip Tour",{ns:"help"})})]})]})]})}):(F=i.current)==null||F.dismiss())},[l.pathname]),o.jsxs("div",{ref:ml(e,a),className:"flex flex-col items-center relative",children:[t.children,ra.createPortal(o.jsx(ne,{className:Pn(l4["shared-container"],!A.value&&l4.visible),style:R({zIndex:9999},Y),children:A.value&&o.jsxs("button",{ref:c,onClick:F=>{F.stopPropagation()},children:[o.jsx(ne,{className:"h-8 text-slate-50 flex items-center justify-center gap-1 px-1.5",children:!_&&!I?o.jsxs(o.Fragment,{children:[Tn.value?o.jsx(Ds,{size:18,onClick:()=>{L(qu().text)}}):o.jsx(ba,{size:18,onClick:F=>{!F.altKey&&!F.metaKey?P(qu().text):L(qu().text)}}),o.jsx(st,{isCompact:!0,side:"right",delayDuration:2e3,sideOffset:10,text:s("Add to clip or menu",{ns:"common"}),children:o.jsx(Vr,{size:18,onClick:()=>{z.value=!0,A.value=!1}})})]}):_?o.jsxs(o.Fragment,{children:[o.jsx(en,{size:16}),o.jsx(re,{className:"text-white text-sm pr-1",children:s("Copied",{ns:"common"})})]}):I&&T===null?o.jsxs(o.Fragment,{children:[o.jsx(en,{size:16}),o.jsx(re,{className:"text-white text-sm pr-1",children:s("Pasted",{ns:"common"})})]}):T!==null&&T>0&&o.jsx(o.Fragment,{children:o.jsx(re,{className:"text-white text-sm px-1",children:s("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:T})})})}),o.jsx(ne,{className:l4.arrow})]})}),document.body),z.value&&o.jsx(S3e,{open:((r=qu().text)==null?void 0:r.length)>0,selectedText:qu().text,onClose:()=>{z.value=!1,qu().text?A.value=!0:A.value=!1},onConfirmClip:F=>{W("/history",{replace:!0}),z.value=!1,$a.value&&($a.value=null),setTimeout(()=>{Nf.value=F,xa.value=nl.CLIP},300)},onConfirmMenu:F=>{W("/menu",{replace:!0}),z.value=!1,setTimeout(()=>{_f.value=F,ho.value=!0},300)}}),YS.value&&o.jsx(C3e,{open:!0,showUpdateAppIsLatest:Pf,showUpdateChecking:Al,onClose:()=>{YS.value=!1}}),Of.value&&o.jsx(WI,{title:s("Confirm {{action}}",{ns:"common",action:$f.value}),open:!0,onClose:()=>{Of.value=!1,$f.value=null,rl.value=null,uo.value=null},showPasscode:!0,onConfirmSuccess:()=>{Of.value=!1,$f.value=null,rl.value=uo.value},onConfirmFailed:()=>{Of.value=!1,$f.value=null,rl.value=null,uo.value=null}}),Ga.value&&o.jsx(lCe,{open:!0,showProPayments:n0,onClose:()=>{n0.value||(Ga.value=!1)}}),ZS.value&&o.jsx(j3e,{open:!0,onClose:()=>{ZS.value=!1}}),A2.value&&o.jsx(cCe,{open:!0,onClose:()=>{A2.value=!1}}),Qi.value&&o.jsx(WI,{open:!0,showPasscode:!0,isLockScreen:!0,onClose:()=>{Qi.value=!1},onConfirmSuccess:()=>{Qi.value=!1}}),rr.value&&o.jsx(FCe,{tourName:rr.value,onCompleted:F=>{b.includes(F)||C([...b,F])},onSkipped:F=>{x.includes(F)||g([...x,F])},element:id.value})]})}finally{n.f()}},BCe=()=>{const{isMacOSX:t,isWindows:e}=Tt(Ls);return Ske(),o.jsx("div",{className:"flex flex-col bg-slate-100 dark:bg-slate-700 overflow-hidden rounded-b-md mt-[40px]",children:o.jsxs("div",{"data-tauri-drag-region":!0,className:"".concat(t?"h-calc(100vh-40px) p-[14px]":""," ").concat(e?"h-[calc(100vh-50px)] px-[12px] pt-[10px]":""," "),children:[o.jsx(lve,{children:o.jsx(F7,{})}),o.jsx(Xke,{})]})})},Sk=v.forwardRef(HCe),UCe=Object.freeze(Object.defineProperty({__proto__:null,Component:BCe,MainContainer:Sk},Symbol.toStringTag,{value:"Module"}));function rA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bj(t,e){return bj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},bj(t,e)}function WCe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,bj(t,e)}var sA=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function VCe(t,e){return!!(t===e||sA(t)&&sA(e))}function qCe(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var f4=-1;function iA(t){if(t===void 0&&(t=!1),f4===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),f4=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return f4}var Lp=null;function lA(t){if(t===void 0&&(t=!1),Lp===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),s=r.style;return s.width="100px",s.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Lp="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Lp="negative":Lp="positive-ascending"),document.body.removeChild(e),Lp}return Lp}var YCe=150,ZCe=function(e,n){return e};function wV(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,s=t.getItemSize,a=t.getOffsetForIndexAndAlignment,i=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,c=t.initInstanceProps,d=t.shouldResetStyleCacheOnItemSizeChange,p=t.validateProps;return e=function(f){WCe(m,f);function m(C){var g;return g=f.call(this,C)||this,g._instanceProps=c(g.props,rA(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:rA(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=d4(function(w,x,S,E){return g.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:x,visibleStartIndex:S,visibleStopIndex:E})}),g._callOnScroll=void 0,g._callOnScroll=d4(function(w,x,S){return g.props.onScroll({scrollDirection:w,scrollOffset:x,scrollUpdateWasRequested:S})}),g._getItemStyle=void 0,g._getItemStyle=function(w){var x=g.props,S=x.direction,E=x.itemSize,N=x.layout,_=g._getItemStyleCache(d&&E,d&&N,d&&S),P;if(_.hasOwnProperty(w))P=_[w];else{var I=n(g.props,w,g._instanceProps),T=s(g.props,w,g._instanceProps),L=S==="horizontal"||N==="horizontal",A=S==="rtl",z=L?I:0;_[w]=P={position:"absolute",left:A?void 0:z,right:A?z:void 0,top:L?0:I,height:L?"100%":T,width:L?T:"100%"}}return P},g._getItemStyleCache=void 0,g._getItemStyleCache=d4(function(w,x,S){return{}}),g._onScrollHorizontal=function(w){var x=w.currentTarget,S=x.clientWidth,E=x.scrollLeft,N=x.scrollWidth;g.setState(function(_){if(_.scrollOffset===E)return null;var P=g.props.direction,I=E;if(P==="rtl")switch(lA()){case"negative":I=-E;break;case"positive-descending":I=N-S-E;break}return I=Math.max(0,Math.min(I,N-S)),{isScrolling:!0,scrollDirection:_.scrollOffsetP.clientWidth?iA():0:_=P.scrollHeight>P.clientHeight?iA():0}this.scrollTo(a(this.props,g,w,N,this._instanceProps,_))},b.componentDidMount=function(){var g=this.props,w=g.direction,x=g.initialScrollOffset,S=g.layout;if(typeof x=="number"&&this._outerRef!=null){var E=this._outerRef;w==="horizontal"||S==="horizontal"?E.scrollLeft=x:E.scrollTop=x}this._callPropsCallbacks()},b.componentDidUpdate=function(){var g=this.props,w=g.direction,x=g.layout,S=this.state,E=S.scrollOffset,N=S.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var _=this._outerRef;if(w==="horizontal"||x==="horizontal")if(w==="rtl")switch(lA()){case"negative":_.scrollLeft=-E;break;case"positive-ascending":_.scrollLeft=E;break;default:var P=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-P-E;break}else _.scrollLeft=E;else _.scrollTop=E}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&oA(this._resetIsScrollingTimeoutId)},b.render=function(){var g=this.props,w=g.children,x=g.className,S=g.direction,E=g.height,N=g.innerRef,_=g.innerElementType,P=g.innerTagName,I=g.itemCount,T=g.itemData,L=g.itemKey,A=L===void 0?ZCe:L,z=g.layout,Y=g.outerElementType,O=g.outerTagName,$=g.style,M=g.useIsScrolling,W=g.width,V=this.state.isScrolling,U=S==="horizontal"||z==="horizontal",J=U?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),F=H[0],q=H[1],X=[];if(I>0)for(var te=F;te<=q;te++)X.push(v.createElement(w,{data:T,key:A(te,T),index:te,isScrolling:M?V:void 0,style:this._getItemStyle(te)}));var ee=r(this.props,this._instanceProps);return v.createElement(Y||O||"div",{className:x,onScroll:J,ref:this._outerRefSetter,style:at({position:"relative",height:E,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},$)},v.createElement(_||P||"div",{children:X,ref:N,style:{height:U?"100%":ee,pointerEvents:V?"none":void 0,width:U?ee:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var w=this._getRangeToRender(),x=w[0],S=w[1],E=w[2],N=w[3];this._callOnItemsRendered(x,S,E,N)}}if(typeof this.props.onScroll=="function"){var _=this.state,P=_.scrollDirection,I=_.scrollOffset,T=_.scrollUpdateWasRequested;this._callOnScroll(P,I,T)}},b._getRangeToRender=function(){var g=this.props,w=g.itemCount,x=g.overscanCount,S=this.state,E=S.isScrolling,N=S.scrollDirection,_=S.scrollOffset;if(w===0)return[0,0,0,0];var P=i(this.props,_,this._instanceProps),I=l(this.props,P,_,this._instanceProps),T=!E||N==="backward"?Math.max(1,x):1,L=!E||N==="forward"?Math.max(1,x):1;return[Math.max(0,P-T),Math.max(0,Math.min(w-1,I+L)),P,I]},m}(v.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var XCe=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},QCe=50,hm=function(e,n,r){var s=e,a=s.itemSize,i=r.itemMetadataMap,l=r.lastMeasuredIndex;if(n>l){var c=0;if(l>=0){var d=i[l];c=d.offset+d.size}for(var p=l+1;p<=n;p++){var f=a(p);i[p]={offset:c,size:f},c+=f}r.lastMeasuredIndex=n}return i[n]},JCe=function(e,n,r){var s=n.itemMetadataMap,a=n.lastMeasuredIndex,i=a>0?s[a].offset:0;return i>=r?kV(e,n,a,0,r):e4e(e,n,Math.max(0,a),r)},kV=function(e,n,r,s,a){for(;s<=r;){var i=s+Math.floor((r-s)/2),l=hm(e,i,n).offset;if(l===a)return i;la&&(r=i-1)}return s>0?s-1:0},e4e=function(e,n,r,s){for(var a=e.itemCount,i=1;r=r&&(i=r-1),i>=0){var c=s[i];l=c.offset+c.size}var d=r-i-1,p=d*a;return l+p},t4e=wV({getItemOffset:function(e,n,r){return hm(e,n,r).offset},getItemSize:function(e,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:cA,getOffsetForIndexAndAlignment:function(e,n,r,s,a,i){var l=e.direction,c=e.height,d=e.layout,p=e.width,f=l==="horizontal"||d==="horizontal",m=f?p:c,b=hm(e,n,a),C=cA(e,a),g=Math.max(0,Math.min(C-m,b.offset)),w=Math.max(0,b.offset-m+b.size+i);switch(r==="smart"&&(s>=w-m&&s<=g+m?r="auto":r="center"),r){case"start":return g;case"end":return w;case"center":return Math.round(w+(g-w)/2);case"auto":default:return s>=w&&s<=g?s:s=x-C&&s<=w+C?r="auto":r="center"),r){case"start":return w;case"end":return x;case"center":{var S=Math.round(x+(w-x)/2);return Sg+Math.floor(C/2)?g:S}case"auto":default:return s>=x&&s<=w?s:sn||s0;){var b=i[0]-1;if(!e(b))i[0]=b;else break}return i}var s4e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a4e=function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,s){var a=this.props,i=a.isItemLoaded,l=a.itemCount,c=a.minimumBatchSize,d=c===void 0?10:c,p=a.threshold,f=p===void 0?15:p,m=r4e({isItemLoaded:i,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-f),stopIndex:Math.min(l-1,s+f)});(this._memoizedUnloadedRanges.length!==m.length||this._memoizedUnloadedRanges.some(function(b,C){return m[C]!==b}))&&(this._memoizedUnloadedRanges=m,this._loadUnloadedRanges(m))}},{key:"_loadUnloadedRanges",value:function(r){for(var s=this,a=this.props.loadMoreItems||this.props.loadMoreRows,i=function(d){var p=r[d],f=r[d+1],m=a(p,f);m!=null&&m.then(function(){if(n4e({lastRenderedStartIndex:s._lastRenderedStartIndex,lastRenderedStopIndex:s._lastRenderedStopIndex,startIndex:p,stopIndex:f})){if(s._listRef==null)return;typeof s._listRef.resetAfterIndex=="function"?s._listRef.resetAfterIndex(p,!0):(typeof s._listRef._getItemStyleCache=="function"&&s._listRef._getItemStyleCache(-1),s._listRef.forceUpdate())}})},l=0;l to ensure consistent ids are generated between the client and server.");let n=h4e(!!t),r="react-aria".concat(e.prefix);return t||"".concat(r,"-").concat(n)}function m4e(t){let e=Vt.useId(),[n]=v.useState(b4e()),r=n?"react-aria":"react-aria".concat(Aw.prefix);return t||"".concat(r,"-").concat(e)}const g4e=typeof Vt.useId=="function"?m4e:p4e;function v4e(){return!1}function x4e(){return!0}function y4e(t){return()=>{}}function b4e(){return typeof Vt.useSyncExternalStore=="function"?Vt.useSyncExternalStore(y4e,v4e,x4e):v.useContext(d4e)}const w4e=typeof document!="undefined"?Vt.useLayoutEffect:()=>{};let k4e=!!(typeof window!="undefined"&&window.document&&window.document.createElement),fA=new Map;function C4e(t){let[e,n]=v.useState(t),r=v.useRef(null),s=g4e(e),a=v.useCallback(i=>{r.current=i},[]);return k4e&&fA.set(s,a),w4e(()=>{let i=s;return()=>{fA.delete(i)}},[s]),v.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),s}const S4e=new Set(["id"]),j4e=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),E4e=new Set(["href","target","rel","download","ping","referrerPolicy"]),N4e=/^(data-.*)$/;function Q7(t,e={}){let{labelable:n,isLink:r,propNames:s}=e,a={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(S4e.has(i)||n&&j4e.has(i)||r&&E4e.has(i)||s!=null&&s.has(i)||N4e.test(i))&&(a[i]=t[i]);return a}let t1=new Map,hA=new Set;function pA(){if(typeof window=="undefined")return;let t=n=>{let r=t1.get(n.target);r||(r=new Set,t1.set(n.target,r),n.target.addEventListener("transitioncancel",e)),r.add(n.propertyName)},e=n=>{let r=t1.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",e),t1.delete(n.target)),t1.size===0)){for(let s of hA)s();hA.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document!="undefined"&&(document.readyState!=="loading"?pA():document.addEventListener("DOMContentLoaded",pA));function _4e(t,e){const n=v.useRef(!0),r=v.useRef(null);v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),v.useEffect(()=>{n.current?n.current=!1:(!r.current||e.some((s,a)=>!Object.is(s,r[a])))&&t(),r.current=e},e)}const jV=v.createContext({activity:void 0,id:"",isCollapsed:void 0}),T4e=jV.Provider;function J7(){return v.useContext(jV)}let wj=null,Vf=null;function P4e(t,e){switch(t){case"horizontal":return"ew-resize";case"horizontal-max":return e?"e-resize":"w-resize";case"horizontal-min":return e?"w-resize":"e-resize"}}function M4e(){Vf!==null&&(document.head.removeChild(Vf),wj=null,Vf=null)}function D4e(t,e){if(wj===t)return;wj=t;const n=P4e(t,e);Vf===null&&(Vf=document.createElement("style"),document.head.appendChild(Vf)),Vf.innerHTML="*{cursor: ".concat(n,"!important;}")}const I4e="_PanelGroupWrapper_13ky4_1",A4e="_PanelGroup_13ky4_1",L4e="_Panel_13ky4_1",R4e="_PanelColumn_13ky4_15",O4e="_PanelRow_13ky4_16",$4e="_Centered_13ky4_26",z4e="_ResizeHandle_13ky4_39",F4e="_Overflow_13ky4_42",H4e="_Button_13ky4_53",B4e="_ButtonDisabled_13ky4_54",U4e="_Buttons_13ky4_68",W4e="_Capitalize_13ky4_76",V4e="_WarningBlock_13ky4_80",q4e="_InlineCode_13ky4_87",K4e="_ResizeHandleOuter_13ky4_91",G4e="_ResizeHandleInner_13ky4_104",Y4e="_HorizontalIcon_13ky4_135",Z4e="_VerticalIcon_13ky4_136",X4e={PanelGroupWrapper:I4e,PanelGroup:A4e,Panel:L4e,PanelColumn:R4e,PanelRow:O4e,Centered:$4e,ResizeHandle:z4e,Overflow:F4e,Button:H4e,ButtonDisabled:B4e,Buttons:U4e,Capitalize:W4e,WarningBlock:V4e,InlineCode:q4e,ResizeHandleOuter:K4e,ResizeHandleInner:G4e,HorizontalIcon:Y4e,VerticalIcon:Z4e};function mA(t){try{if(typeof localStorage!="undefined")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}const m1={getItem:t=>(mA(m1),m1.getItem(t)),setItem:(t,e)=>{mA(m1),m1.setItem(t,e)}};function Q4e(t){if(t.sheet)return t.sheet;for(var e=0;e0?na(Y0,--Eo):0,g0--,hs===10&&(g0=1,Ek--),hs}function Ko(){return hs=Eo2||Ov(hs)>3?"":" "}function dSe(t,e){for(;--e&&Ko()&&!(hs<48||hs>102||hs>57&&hs<65||hs>70&&hs<97););return Rx(t,Vb()+(e<6&&ec()==32&&Ko()==32))}function Cj(t){for(;Ko();)switch(hs){case t:return Eo;case 34:case 39:t!==34&&t!==39&&Cj(hs);break;case 40:t===41&&Cj(t);break;case 92:Ko();break}return Eo}function fSe(t,e){for(;Ko()&&t+hs!==57;)if(t+hs===84&&ec()===47)break;return"/*"+Rx(e,Eo-1)+"*"+jk(t===47?t:Ko())}function hSe(t){for(;!Ov(ec());)Ko();return Rx(t,Eo)}function pSe(t){return MV(Kb("",null,null,null,[""],t=PV(t),0,[0],t))}function Kb(t,e,n,r,s,a,i,l,c){for(var d=0,p=0,f=i,m=0,b=0,C=0,g=1,w=1,x=1,S=0,E="",N=s,_=a,P=r,I=E;w;)switch(C=S,S=Ko()){case 40:if(C!=108&&na(I,f-1)==58){kj(I+=lr(qb(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=qb(S);break;case 9:case 10:case 13:case 32:I+=uSe(C);break;case 92:I+=dSe(Vb()-1,7);continue;case 47:switch(ec()){case 42:case 47:mb(mSe(fSe(Ko(),Vb()),e,n),c);break;default:I+="/"}break;case 123*g:l[d++]=zl(I)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+p:x==-1&&(I=lr(I,/\f/g,"")),b>0&&zl(I)-f&&mb(b>32?vA(I+";",r,n,f-1):vA(lr(I," ","")+";",r,n,f-2),c);break;case 59:I+=";";default:if(mb(P=gA(I,e,n,d,p,s,l,E,N=[],_=[],f),a),S===123)if(p===0)Kb(I,e,P,P,N,a,f,l,_);else switch(m===99&&na(I,3)===110?100:m){case 100:case 108:case 109:case 115:Kb(t,P,P,r&&mb(gA(t,P,P,0,0,s,l,E,s,N=[],f),_),s,_,f,l,r?N:_);break;default:Kb(I,P,P,P,[""],_,0,l,_)}}d=p=b=0,g=x=1,E=I="",f=i;break;case 58:f=1+zl(I),b=C;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&cSe()==125)continue}switch(I+=jk(S),S*g){case 38:x=p>0?1:(I+="\f",-1);break;case 44:l[d++]=(zl(I)-1)*x,x=1;break;case 64:ec()===45&&(I+=qb(Ko())),m=ec(),p=f=zl(E=I+=hSe(Vb())),S++;break;case 45:C===45&&zl(I)==2&&(g=0)}}return a}function gA(t,e,n,r,s,a,i,l,c,d,p){for(var f=s-1,m=s===0?a:[""],b=nN(m),C=0,g=0,w=0;C0?m[x]+" "+S:lr(S,/&\f/g,m[x])))&&(c[w++]=E);return Nk(t,e,n,s===0?eN:l,c,d,p)}function mSe(t,e,n){return Nk(t,e,n,EV,jk(lSe()),Rv(t,2,-2),0)}function vA(t,e,n,r){return Nk(t,e,n,tN,Rv(t,0,r),Rv(t,r+1,-1),r)}function Tm(t,e){for(var n="",r=nN(t),s=0;s6)switch(na(t,e+1)){case 109:if(na(t,e+4)!==45)break;case 102:return lr(t,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+Lw+(na(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kj(t,"stretch")?DV(lr(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(na(t,e+1)!==115)break;case 6444:switch(na(t,zl(t)-3-(~kj(t,"!important")&&10))){case 107:return lr(t,":",":"+ir)+t;case 101:return lr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(na(t,14)===45?"inline-":"")+"box$3$1"+ir+"$2$3$1"+ga+"$2box$3")+t}break;case 5936:switch(na(t,e+11)){case 114:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ir+t+ga+t+t}return t}var jSe=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case tN:e.return=DV(e.value,e.length);break;case NV:return Tm([n1(e,{value:lr(e.value,"@","@"+ir)})],s);case eN:if(e.length)return iSe(e.props,function(a){switch(oSe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tm([n1(e,{props:[lr(a,/:(read-\w+)/,":"+Lw+"$1")]})],s);case"::placeholder":return Tm([n1(e,{props:[lr(a,/:(plac\w+)/,":"+ir+"input-$1")]}),n1(e,{props:[lr(a,/:(plac\w+)/,":"+Lw+"$1")]}),n1(e,{props:[lr(a,/:(plac\w+)/,ga+"input-$1")]})],s)}return""})}},ESe=[jSe],NSe=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var w=g.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var s=e.stylisPlugins||ESe,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var w=g.getAttribute("data-emotion").split(" "),x=1;x=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var TSe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},PSe=/[A-Z]|^ms/g,MSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IV=function(e){return e.charCodeAt(1)===45},yA=function(e){return e!=null&&typeof e!="boolean"},p4=ySe(function(t){return IV(t)?t:t.replace(PSe,"-$&").toLowerCase()}),bA=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(MSe,function(r,s,a){return Fl={name:s,styles:a,next:Fl},s})}return TSe[e]!==1&&!IV(e)&&typeof n=="number"&&n!==0?n+"px":n};function $v(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Fl={name:n.name,styles:n.styles,next:Fl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fl={name:r.name,styles:r.styles,next:Fl},r=r.next;var s=n.styles+";";return s}return DSe(t,e,n)}case"function":{if(t!==void 0){var a=Fl,i=n(t);return Fl=a,$v(t,e,i)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function DSe(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},n=e.literal,r=e.overlap,s=n?t:["&"].concat(t);function a(i){if(typeof i!="object"||i==null)return[];if(Array.isArray(i))return i.map(a);var l={},c={},d={};return Object.keys(i).forEach(function(p){var f=i[p];if(!Array.isArray(f)&&n&&(f=[f]),(n||Array.isArray(f))&&p.charCodeAt(0)!==38){var m=void 0;f.forEach(function(b,C){if(!(r&&m===b)&&b!=null)if(m=b,C===0&&!n)d[p]=b;else if(l[s[C]]===void 0){var g;l[s[C]]=(g={},g[p]=b,g)}else l[s[C]][p]=b})}else typeof f=="object"?c[p]=a(f):d[p]=f}),s.forEach(function(p){l[p]&&(d[p]=l[p])}),Object.assign(d,c),d}return function(){for(var i=arguments.length,l=Array(i),c=0;cRw(l,e)).join(", "):"".concat(t," ").concat(i," ").concat(a)+(n?" ".concat(EA(n)):"")}function EA(t){return $Se(t)?"".concat(t,"ms"):co.animation.duration[t]}const BSe="ksv",NA=USe("reset");function USe(t){return"".concat(BSe,":").concat(t)}function _k(...t){let e=SA(t);return e.includes(NA)?e:SA(NA,e)}const zc={mobile:0,tablet:740,desktop:992,wide:1200},Gb=t=>"@media (min-width: ".concat(t,"px)"),g4=t=>"@media (max-width: ".concat(t-1,"px)"),_A={above:{mobile:Gb(zc.tablet),tablet:Gb(zc.desktop),desktop:Gb(zc.wide)},below:{tablet:g4(zc.tablet),desktop:g4(zc.desktop),wide:g4(zc.wide)}},TA=FSe(zc),s_=zc,{mobile:L7e}=s_,WSe=Ne(s_,["mobile"]),VSe=Object.values(WSe).map(Gb),qSe=HSe(VSe);function KSe(t,e){return e==null?null:typeof e=="object"&&!Array.isArray(e)?GSe(t,e):t(e)}function GSe(t,e){const n=[];for(let r=0;re-t);ZSe.map(([,t])=>"(min-width: ".concat(t,"px)"));function XSe(t,e){for(const n of e.split(".")){if(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,n))return;t=t[n]}return t}function Ow(t,e){var n;return typeof e!="string"?e:(t=e.includes(".")?e:"".concat(t,".").concat(e),(n=XSe(co,t))!==null&&n!==void 0?n:e)}function Ao(t,e){return[t,r=>Ow(e,r)]}const QSe=t=>t;function _r(t,e=QSe){return[t,e]}function r1(t){return[t,n=>{const r=Ow("color.border",n);return"".concat(co.size.border.regular," solid ").concat(r)}]}function JSe(t){let[e,n]=t.split(".");return!e||!n?!1:!!co.size[e][n]}function e6e(t){if(typeof t=="number"){if(t===0)return"".concat(t,"px");jA(t)}if(JSe(t)){let[e,n]=t.split(".");return co.size[e][n]}if(t==="auto"||t==="inherit"||t==="100%"||t==="100vh"||t==="100vw")return t;jA(t)}function bf(t){return[t,e6e]}function as(t){return Ao(t,"size.space")}function jc(t){return Ao(t,"size.radius")}const t6e={backgroundColor:Ao("backgroundColor","color.background"),boxShadow:["boxShadow",n6e],height:bf("height"),maxHeight:bf("maxHeight"),minHeight:bf("minHeight"),maxWidth:bf("maxWidth"),minWidth:bf("minWidth"),width:bf("width"),margin:as("margin"),marginStart:as("marginInlineStart"),marginEnd:as("marginInlineEnd"),marginTop:as("marginBlockStart"),marginBottom:as("marginBlockEnd"),marginX:as("marginInline"),marginY:as("marginBlock"),padding:as("padding"),paddingStart:as("paddingInlineStart"),paddingEnd:as("paddingInlineEnd"),paddingTop:as("paddingBlockStart"),paddingBottom:as("paddingBlockEnd"),paddingX:as("paddingInline"),paddingY:as("paddingBlock"),border:r1("border"),borderStart:r1("borderInlineStart"),borderEnd:r1("borderInlineEnd"),borderTop:r1("borderTop"),borderBottom:r1("borderBottom"),borderColor:Ao("borderColor","color.border"),borderStartColor:Ao("borderInlineStartColor","color.border"),borderEndColor:Ao("borderInlineEndColor","color.border"),borderTopColor:Ao("borderTopColor","color.border"),borderBottomColor:Ao("borderBottomColor","color.border"),borderStyle:_r("borderStyle"),borderStartStyle:_r("borderInlineStartStyle"),borderEndStyle:_r("borderInlineEndStyle"),borderTopStyle:_r("borderTopStyle"),borderBottomStyle:_r("borderBottomStyle"),borderWidth:Ao("borderWidth","size.border"),borderStartWidth:Ao("borderInlineStartWidth","size.border"),borderEndWidth:Ao("borderInlineEndWidth","size.border"),borderTopWidth:Ao("borderTopWidth","size.border"),borderBottomWidth:Ao("borderBottomWidth","size.border"),borderRadius:jc("borderRadius"),borderTopStartRadius:jc("borderStartStartRadius"),borderTopEndRadius:jc("borderStartEndRadius"),borderBottomStartRadius:jc("borderEndStartRadius"),borderBottomEndRadius:jc("borderEndEndRadius"),borderTopRadius:jc(["borderStartStartRadius","borderStartEndRadius"]),borderBottomRadius:jc(["borderEndStartRadius","borderEndEndRadius"]),borderStartRadius:jc(["borderStartStartRadius","borderEndStartRadius"]),borderEndRadius:jc(["borderEndEndRadius","borderStartEndRadius"]),inset:as("inset"),insetBottom:as("insetBlockEnd"),insetEnd:as("insetInlineEnd"),insetStart:as("insetInlineStart"),insetTop:as("insetBlockStart"),insetX:as("insetInline"),insetY:as("insetBlock"),position:_r("position"),zIndex:_r("zIndex"),order:_r("order"),alignSelf:_r("alignSelf"),flex:_r("flex",v4),flexBasis:bf("flexBasis"),flexGrow:_r("flexGrow",v4),flexShrink:_r("flexShrink",v4),justifySelf:_r("justifySelf"),gridArea:_r("gridArea"),gridColumn:_r("gridColumn"),gridColumnEnd:_r("gridColumnEnd"),gridColumnStart:_r("gridColumnStart"),gridRow:_r("gridRow"),gridRowEnd:_r("gridRowEnd"),gridRowStart:_r("gridRowStart"),cursor:_r("cursor"),opacity:_r("opacity"),pointerEvents:_r("pointerEvents"),overflow:_r("overflow"),userSelect:_r("userSelect")};function v4(t){return typeof t=="boolean"?t?"1":void 0:""+t}function n6e(t){const e={small:"muted",medium:"regular",large:"emphasis"},[n,r]=t.split(" "),s=Ow("color.shadow",r!=null?r:e[n]),a=Ow("size.shadow",n);return"".concat(a," ").concat(s)}function r6e(t,e){let n={};for(let r in t){let s=e[r];if(!s||t[r]==null)continue;let[a,i]=s,l=KSe(i,t[r]);if(Array.isArray(a))for(let c of a)n[c]=l;else n[a]=l}return n}function rN(t,e={}){let n=R(R({},t6e),e),p=t,{isHidden:r,UNSAFE_className:s,UNSAFE_style:a}=p,i=Ne(p,["isHidden","UNSAFE_className","UNSAFE_style"]),l=r6e(t,n),c=qSe(l);i.className,i.style;let d=[];if(r)if(r===!0)d.push({display:"none"});else{const f={};"above"in r&&(f[_A.above[r.above]]={display:"none"}),"below"in r&&(f[_A.below[r.below]]={display:"none"}),d.push(f)}return{className:_k(v0(c),s,v0(d)),style:a}}function PA(t){return o6e(t)?t.clientX:i6e(t)?t.touches[0].clientX:0}function s6e(t,e,n){return Math.round((t-e)/(n-e)*100)}function sN(t){return"primary-pane-".concat(t)}function RV(t){return"secondary-pane-".concat(t)}function OV(t){return"resize-handle-".concat(t)}function MA(t){return document.getElementById(sN(t))}function a6e(t){return document.getElementById(RV(t))}function DA(t){return document.getElementById(OV(t))}function Rp(t){return"".concat(t,"px")}function o6e(t){return t.type.startsWith("mouse")}function i6e(t){return t.type.startsWith("touch")}const $V="--primary-pane-max-width",l6e="var(".concat($V,")"),zV="--primary-pane-min-width",c6e="var(".concat(zV,")"),Yb="--primary-pane-width",u6e="var(".concat(Yb,")"),d6e=32,f6e=10,h6e={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},p6e=v.forwardRef(function(e,n){const r=Te(12),{activity:s,id:a,isCollapsed:i}=J7();let l;r[0]!==a?(l=sN(a),r[0]=a,r[1]=l):l=r[1];let c;r[2]!==a?(c=OV(a),r[2]=a,r[3]=c):c=r[3];const d=i||void 0;let p;r[4]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Tz,{className:"".concat(X4e.HorizontalIcon," text-slate-300 dark:text-slate-500"),type:"resize-horizontal",width:"16px"}),r[4]=p):p=r[4];let f;return r[5]!==e||r[6]!==n||r[7]!==l||r[8]!==c||r[9]!==s||r[10]!==d?(f=o.jsx("div",ae(R({},e),{ref:n,"aria-controls":l,"aria-label":"Resize","aria-orientation":"vertical",id:c,role:"separator",tabIndex:0,"data-split-view-resize-handle":!0,"data-split-view-activity":s,"data-split-view-collapsed":d,className:"animate-in panel-resize_tour ".concat(v0({backgroundColor:'var("--tw-red-500")',boxSizing:"border-box",cursor:"ew-resize",flexShrink:0,opacity:0,outline:0,position:"relative",touchAction:"none",animationDuration:"0.3s",transition:Rw("opacity"),userSelect:"none",width:18,zIndex:1,"&[data-split-view-collapsed]:not([data-split-view-activity])":h6e,"&::before":{content:'""',position:"absolute",inset:"calc(".concat(co.size.space.small," * -1)")},"&::after":{backgroundColor:co.color.alias.backgroundHovered,content:'""',insetBlock:0,insetInline:"calc(".concat(co.size.border.medium," * -1)"),opacity:0,position:"absolute",transition:Rw("opacity")},"&:hover":{opacity:1,backgroundColor:co.color.border.neutral,transitionDelay:co.animation.duration.regular,"&::after":{opacity:1,transitionDelay:co.animation.duration.regular}},"&[data-split-view-activity]::after":{backgroundColor:co.color.background.accentEmphasis,insetInline:"calc(".concat(co.size.border.regular," * -1)"),opacity:1}})),children:p})),r[5]=e,r[6]=n,r[7]=l,r[8]=c,r[9]=s,r[10]=d,r[11]=f):f=r[11],f});function aN(t){const e=Te(74),{autoSaveId:n,children:r,defaultSize:s,isCollapsed:a,minSize:i,maxSize:l,onCollapseChange:c,onResize:d,swapPanes:p,reversed:f,storage:m}=t,b=m===void 0?m1:m;let C;e[0]!==p||e[1]!==r?(C=p?[r[1],r[0]]:r,e[0]=p,e[1]=r,e[2]=C):C=e[2];const[g,w]=C,x=C4e(t.id),S=rN(t),[E,N]=v.useState(f),[_,P]=v.useState(!1),[I,T]=v.useState(!1);let L;e[3]!==s||e[4]!==n||e[5]!==b?(L=()=>{let pe=s;if(n){const me=b.getItem(n);me&&(pe=Number.parseInt(me))}return pe},e[3]=s,e[4]=n,e[5]=b,e[6]=L):L=e[6];const[A,z]=v.useState(L),Y=v.useRef(null),O=v.useRef(0),$=v.useRef(0);let M,W;e[7]!==x||e[8]!==f?(M=()=>{const pe=DA(x),me=MA(x),be=a6e(x);N(f?(pe==null?void 0:pe.previousElementSibling)===me:(pe==null?void 0:pe.previousElementSibling)===be)},W=[f,x],e[7]=x,e[8]=f,e[9]=M,e[10]=W):(M=e[9],W=e[10]),v.useEffect(M,W);let V;e[11]!==d||e[12]!==A?(V=()=>d==null?void 0:d(A),e[11]=d,e[12]=A,e[13]=V):V=e[13];let U;e[14]!==A?(U=[A],e[14]=A,e[15]=U):U=e[15],_4e(V,U);let J;e[16]!==A||e[17]!==n||e[18]!==b?(J=()=>{var pe;(pe=Y.current)==null||pe.style.setProperty(Yb,Rp(A)),$.current=A,n&&b.setItem(n,Rp(A))},e[16]=A,e[17]=n,e[18]=b,e[19]=J):J=e[19];let H;e[20]!==n||e[21]!==d||e[22]!==A||e[23]!==b?(H=[n,d,A,b],e[20]=n,e[21]=d,e[22]=A,e[23]=b,e[24]=H):H=e[24],v.useEffect(J,H);let F;e[25]!==x||e[26]!==a||e[27]!==E||e[28]!==A||e[29]!==s||e[30]!==i||e[31]!==l||e[32]!==c?(F=()=>{const pe=Y.current,me=DA(x),be=MA(x);if(!pe||!me||!be)return;let Ee;Ee=!1;const We=typeof a=="boolean",qe=Ke=>{Ke.preventDefault();let ut=PA(Ke)-O.current;E&&(ut=ut*-1);let $e=A+ut;Math.abs($e-s)l&&(ht="horizontal-max"),D4e(ht,!!E)},ot=()=>{me.blur(),P(!1),M4e(),Ee?(c==null||c(!a),be.style.removeProperty("width")):z(u4e($.current,i,l)),Ee=!1,document.body.removeEventListener("mousemove",qe),document.body.removeEventListener("touchmove",qe),window.removeEventListener("mouseup",ot),window.removeEventListener("touchend",ot)},Ve=Ke=>{"button"in Ke&&Ke.button!==0||"touches"in Ke&&Ke.touches.length!==1||(P(!0),O.current=PA(Ke),document.body.addEventListener("mousemove",qe),document.body.addEventListener("touchmove",qe),window.addEventListener("mouseup",ot),window.addEventListener("touchend",ot))},Ge=Ke=>{if(Ke.defaultPrevented)return;const ut=Math.round((l-i)/f6e),$e=()=>z(Fe=>Math.min(Fe+ut,l)),ht=()=>z(Fe=>Math.max(Fe-ut,i));e:switch(Ke.key){case"Enter":{We&&(Ke.preventDefault(),c==null||c(!a));break e}case"Home":{Ke.preventDefault(),z(i);break e}case"End":{Ke.preventDefault(),z(l);break e}case"ArrowLeft":{Ke.preventDefault(),E?$e():ht();break e}case"ArrowRight":Ke.preventDefault(),E?ht():$e()}},ft={passive:!0},Ie=Ke=>{Ke.clientX===O.current&&z(s)};return me.addEventListener("contextmenu",ot),me.addEventListener("dblclick",Ie),me.addEventListener("keydown",Ge),me.addEventListener("mousedown",Ve,ft),me.addEventListener("touchstart",Ve,ft),()=>{me.removeEventListener("contextmenu",ot),me.removeEventListener("dblclick",Ie),me.removeEventListener("keydown",Ge),me.removeEventListener("mousedown",Ve),me.removeEventListener("touchstart",Ve)}},e[25]=x,e[26]=a,e[27]=E,e[28]=A,e[29]=s,e[30]=i,e[31]=l,e[32]=c,e[33]=F):F=e[33];let q;e[34]!==l||e[35]!==i||e[36]!==s||e[37]!==x||e[38]!==E||e[39]!==A||e[40]!==c||e[41]!==a||e[42]!==p?(q=[l,i,s,x,E,A,c,a,p],e[34]=l,e[35]=i,e[36]=s,e[37]=x,e[38]=E,e[39]=A,e[40]=c,e[41]=a,e[42]=p,e[43]=q):q=e[43],v.useEffect(F,q);const X=_?"pointer":I?"keyboard":void 0;let te;e[44]!==x||e[45]!==a||e[46]!==X?(te={id:x,isCollapsed:a,activity:X},e[44]=x,e[45]=a,e[46]=X,e[47]=te):te=e[47];let ee;e[48]!==t?(ee=Q7(t),e[48]=t,e[49]=ee):ee=e[49];let G;e[50]!==i||e[51]!==l||e[52]!==s||e[53]!==S.className?(G=_k(v0({display:"flex",height:"100%",width:"100%",overflow:"hidden",[zV]:Rp(i),[$V]:Rp(l),[Yb]:Rp(s)}),S.className),e[50]=i,e[51]=l,e[52]=s,e[53]=S.className,e[54]=G):G=e[54];let Z;e[55]!==A||e[56]!==i||e[57]!==l?(Z=s6e(A,i,l),e[55]=A,e[56]=i,e[57]=l,e[58]=Z):Z=e[58];let le,se;e[59]===Symbol.for("react.memo_cache_sentinel")?(le=()=>T(!1),se=()=>T(!0),e[59]=le,e[60]=se):(le=e[59],se=e[60]);let de;e[61]!==Z?(de=o.jsx(p6e,{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Z,onBlur:le,onFocus:se}),e[61]=Z,e[62]=de):de=e[62];let ce;e[63]!==S||e[64]!==ee||e[65]!==Y||e[66]!==G||e[67]!==g||e[68]!==de||e[69]!==w?(ce=o.jsxs("div",ae(R(R({},S),ee),{ref:Y,className:G,children:[g,de,w]})),e[63]=S,e[64]=ee,e[65]=Y,e[66]=G,e[67]=g,e[68]=de,e[69]=w,e[70]=ce):ce=e[70];let ye;return e[71]!==te||e[72]!==ce?(ye=o.jsx(T4e,{value:te,children:ce}),e[71]=te,e[72]=ce,e[73]=ye):ye=e[73],ye}const oN=v.forwardRef(function(e,n){const r=Te(15),{activity:s,id:a,isCollapsed:i}=J7(),l=rN(e);let c;r[0]!==e?(c=Q7(e),r[0]=e,r[1]=c):c=r[1];let d;r[2]!==a?(d=sN(a),r[2]=a,r[3]=d):d=r[3];const p=i||void 0;let f;r[4]!==l.className?(f=_k(v0({containerType:"inline-size",overflow:"hidden",width:"clamp(".concat(c6e,",").concat(u6e,",").concat(l6e,")"),maxWidth:"calc(100% - 100px)","&[data-split-view-collapsed]":{visibility:"hidden",width:0},"&:not([data-split-view-activity])":{transition:Rw("width")},"&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),l.className),r[4]=l.className,r[5]=f):f=r[5];let m;return r[6]!==l||r[7]!==c||r[8]!==n||r[9]!==d||r[10]!==s||r[11]!==p||r[12]!==f||r[13]!==e.children?(m=o.jsx("div",ae(R(R({},l),c),{ref:n,id:d,"data-split-pane":"primary","data-split-view-activity":s,"data-split-view-collapsed":p,className:f,children:e.children})),r[6]=l,r[7]=c,r[8]=n,r[9]=d,r[10]=s,r[11]=p,r[12]=f,r[13]=e.children,r[14]=m):m=r[14],m}),iN=v.forwardRef(function(e,n){const r=Te(14),{id:s,activity:a}=J7(),i=rN(e);let l;r[0]!==e?(l=Q7(e),r[0]=e,r[1]=l):l=r[1];let c;r[2]!==s?(c=RV(s),r[2]=s,r[3]=c):c=r[3];let d;r[4]!==i.className?(d=_k(v0({containerType:"inline-size",flex:"1 1 0",minWidth:"100px",overflow:"hidden","&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),i.className),r[4]=i.className,r[5]=d):d=r[5];let p;return r[6]!==i||r[7]!==l||r[8]!==n||r[9]!==c||r[10]!==a||r[11]!==d||r[12]!==e.children?(p=o.jsx("div",ae(R(R({},i),l),{ref:n,id:c,"data-split-pane":"secondary","data-split-view-activity":a,className:d,children:e.children})),r[6]=i,r[7]=l,r[8]=n,r[9]=c,r[10]=a,r[11]=d,r[12]=e.children,r[13]=p):p=r[13],p});function m6e(t){const e=Te(8),{id:n}=t;let r;e[0]!==n?(r={id:n},e[0]=n,e[1]=r):r=e[1];const{setNodeRef:s,isOver:a}=h5(r),i="flex flex-row items-center justify-center py-1.5 px-3 border-2 border-dashed rounded-md w-[260px] ".concat(a?"border-red-600":"border-slate-300 dark:border-slate-600");let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(re,{children:" "}),e[2]=l):l=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(kr,{size:15,className:"text-red-400 dark:text-red-700"}),e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(re,{children:" "}),e[4]=d):d=e[4];let p;return e[5]!==s||e[6]!==i?(p=o.jsxs("div",{ref:s,className:i,children:[l,c,d]}),e[5]=s,e[6]=i,e[7]=p):p=e[7],p}function FV(t){var e=sn(1);try{const n=Te(243),{historyId:r,value:s,arrLinks:a,isImage:i,isText:l,isImageData:c,isLargeView:d,isMasked:p,isPinned:f,isFavorite:m,detectedLanguage:b,invalidateClipboardHistoryQuery:C,generateLinkMetaData:g,removeLinkMetaData:w,isSelected:x,hasLinkCard:S,setSavingItem:E,setLargeViewItemId:N,setSelectHistoryItem:_,onCopyPaste:P}=t;let I;n[0]!==C?(I=C===void 0?()=>{}:C,n[0]=C,n[1]=I):I=n[1];const T=I;let L;n[2]!==g?(L=g===void 0?()=>Promise.resolve():g,n[2]=g,n[3]=L):L=n[3];const A=L;let z;n[4]!==w?(z=w===void 0?()=>Promise.resolve():w,n[4]=w,n[5]=z):z=n[5];const Y=z,{t:O}=Gt(),$=Dn(),{copyPasteDelay:M,setCopyPasteDelay:W,historyDetectLanguagesEnabledList:V}=Tt(Cr),{deleteClipboardHistoryItem:U}=Tt(_i),{updateClipboardHistoryById:J}=V5e(),{deleteClipboardHistoryByIds:H}=U7(),{pinnedClipboardHistoryByIds:F}=DW(),q=ua();let X;n[6]!==O?(X=Ct=>{yo(O("Errors:::Something went wrong! {{err}} Please try again.",{ns:"common",err:Ct}),"Error")},n[6]=O,n[7]=X):X=n[7];const te=X;if(r==null)return null;let ee;n[8]!==_||n[9]!==r?(ee=()=>{_(r)},n[8]=_,n[9]=r,n[10]=ee):ee=n[10];let G;n[11]!==x||n[12]!==O?(G=x?o.jsxs(o.Fragment,{children:[O("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Sce,{size:15})})]}):o.jsxs(o.Fragment,{children:[O("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Rz,{size:15})})]}),n[11]=x,n[12]=O,n[13]=G):G=n[13];let Z;n[14]!==ee||n[15]!==G?(Z=o.jsx(Wt,{onClick:ee,children:G}),n[14]=ee,n[15]=G,n[16]=Z):Z=n[16];let le;n[17]!==P||n[18]!==r?(le=()=>{P(r)},n[17]=P,n[18]=r,n[19]=le):le=n[19];let se;n[20]!==O?(se=O("Copy & Paste",{ns:"contextMenus"}),n[20]=O,n[21]=se):se=n[21];const de=M>0?"delay ".concat(M,"s"):"no delay";let ce;n[22]!==de?(ce=o.jsx(ve,{className:"text-gray-800 relative",children:o.jsx(ne,{className:"py-0 px-2 font-normal pr-2",children:o.jsx(re,{className:"text-xs text-gray-400/80",children:de})})}),n[22]=de,n[23]=ce):ce=n[23];let ye;n[24]===Symbol.for("react.memo_cache_sentinel")?(ye=o.jsx(Ds,{size:15}),n[24]=ye):ye=n[24];let pe;n[25]!==ce?(pe=o.jsxs(ve,{className:"ml-auto",children:[ce,ye]}),n[25]=ce,n[26]=pe):pe=n[26];let me;n[27]!==le||n[28]!==se||n[29]!==pe?(me=o.jsxs(Wt,{onClick:le,children:[se,pe]}),n[27]=le,n[28]=se,n[29]=pe,n[30]=me):me=n[30];let be;n[31]!==O?(be=O("Paste Delay",{ns:"contextMenus"}),n[31]=O,n[32]=be):be=n[32];let Ee;n[33]!==be?(Ee=o.jsxs(Rr,{children:[be," ..."]}),n[33]=be,n[34]=Ee):Ee=n[34];const We=M===1;let qe;n[35]!==W||n[36]!==P||n[37]!==r?(qe=()=>{W(1),P(r,1)},n[35]=W,n[36]=P,n[37]=r,n[38]=qe):qe=n[38];let ot;n[39]!==O?(ot=O("second",{ns:"common"}),n[39]=O,n[40]=ot):ot=n[40];let Ve;n[41]!==ot?(Ve=o.jsxs(re,{children:["1 ",ot]}),n[41]=ot,n[42]=Ve):Ve=n[42];let Ge;n[43]!==We||n[44]!==qe||n[45]!==Ve?(Ge=o.jsx(tl,{checked:We,onSelect:qe,children:Ve}),n[43]=We,n[44]=qe,n[45]=Ve,n[46]=Ge):Ge=n[46];const ft=M===2;let Ie;n[47]!==W||n[48]!==P||n[49]!==r?(Ie=()=>{W(2),P(r,2)},n[47]=W,n[48]=P,n[49]=r,n[50]=Ie):Ie=n[50];let Ke;n[51]!==O?(Ke=O("seconds",{ns:"common"}),n[51]=O,n[52]=Ke):Ke=n[52];let ut;n[53]!==Ke?(ut=o.jsxs(re,{children:["2 ",Ke]}),n[53]=Ke,n[54]=ut):ut=n[54];let $e;n[55]!==ft||n[56]!==Ie||n[57]!==ut?($e=o.jsx(tl,{checked:ft,onSelect:Ie,children:ut}),n[55]=ft,n[56]=Ie,n[57]=ut,n[58]=$e):$e=n[58];const ht=M===3;let Fe;n[59]!==W||n[60]!==P||n[61]!==r?(Fe=()=>{W(3),P(r,3)},n[59]=W,n[60]=P,n[61]=r,n[62]=Fe):Fe=n[62];let pt;n[63]!==O?(pt=O("seconds",{ns:"common"}),n[63]=O,n[64]=pt):pt=n[64];let Qe;n[65]!==pt?(Qe=o.jsxs(re,{children:["3 ",pt]}),n[65]=pt,n[66]=Qe):Qe=n[66];let Lt;n[67]!==ht||n[68]!==Fe||n[69]!==Qe?(Lt=o.jsx(tl,{checked:ht,onSelect:Fe,children:Qe}),n[67]=ht,n[68]=Fe,n[69]=Qe,n[70]=Lt):Lt=n[70];const Ut=M===4;let wt;n[71]!==W||n[72]!==P||n[73]!==r?(wt=()=>{W(4),P(r,4)},n[71]=W,n[72]=P,n[73]=r,n[74]=wt):wt=n[74];let Xt;n[75]!==O?(Xt=O("seconds",{ns:"common"}),n[75]=O,n[76]=Xt):Xt=n[76];let $t;n[77]!==Xt?($t=o.jsxs(re,{children:["4 ",Xt]}),n[77]=Xt,n[78]=$t):$t=n[78];let tn;n[79]!==Ut||n[80]!==wt||n[81]!==$t?(tn=o.jsx(tl,{checked:Ut,onSelect:wt,children:$t}),n[79]=Ut,n[80]=wt,n[81]=$t,n[82]=tn):tn=n[82];const Pt=M===5;let Ue;n[83]!==W||n[84]!==P||n[85]!==r?(Ue=()=>{W(5),P(r,5)},n[83]=W,n[84]=P,n[85]=r,n[86]=Ue):Ue=n[86];let Je;n[87]!==O?(Je=O("seconds",{ns:"common"}),n[87]=O,n[88]=Je):Je=n[88];let jt;n[89]!==Je?(jt=o.jsxs(re,{children:["5 ",Je]}),n[89]=Je,n[90]=jt):jt=n[90];let we;n[91]!==Pt||n[92]!==Ue||n[93]!==jt?(we=o.jsx(tl,{checked:Pt,onSelect:Ue,children:jt}),n[91]=Pt,n[92]=Ue,n[93]=jt,n[94]=we):we=n[94];let Se;n[95]!==Ge||n[96]!==$e||n[97]!==Lt||n[98]!==tn||n[99]!==we?(Se=o.jsxs(Or,{children:[Ge,$e,Lt,tn,we]}),n[95]=Ge,n[96]=$e,n[97]=Lt,n[98]=tn,n[99]=we,n[100]=Se):Se=n[100];let De;n[101]!==Ee||n[102]!==Se?(De=o.jsxs(Hr,{children:[Ee,Se]}),n[101]=Ee,n[102]=Se,n[103]=De):De=n[103];let nt;n[104]===Symbol.for("react.memo_cache_sentinel")?(nt=o.jsx(Qn,{}),n[104]=nt):nt=n[104];let Pe;n[105]!==N||n[106]!==d||n[107]!==r?(Pe=()=>{N(d?null:r)},n[105]=N,n[106]=d,n[107]=r,n[108]=Pe):Pe=n[108];let gt;n[109]!==d||n[110]!==O?(gt=d?O("Close",{ns:"contextMenus"}):O("View",{ns:"contextMenus"}),n[109]=d,n[110]=O,n[111]=gt):gt=n[111];let Ze;n[112]!==d?(Ze=o.jsx("div",{className:"ml-auto",children:d?o.jsx(lE,{size:15}):o.jsx(dx,{size:15})}),n[112]=d,n[113]=Ze):Ze=n[113];let Re;n[114]!==Pe||n[115]!==gt||n[116]!==Ze?(Re=o.jsxs(Wt,{onClick:Pe,children:[gt,Ze]}),n[114]=Pe,n[115]=gt,n[116]=Ze,n[117]=Re):Re=n[117];let Oe;n[118]===Symbol.for("react.memo_cache_sentinel")?(Oe=o.jsx(Qn,{}),n[118]=Oe):Oe=n[118];let et;n[119]!==a||n[120]!==s||n[121]!==i||n[122]!==S||n[123]!==A||n[124]!==r||n[125]!==T||n[126]!==O||n[127]!==Y?(et=(a==null?void 0:a.length)>0&&o.jsxs(o.Fragment,{children:[a[0]===s&&!i&&!S&&o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){yield A(r,Ir(a[0])),T()}),children:[O("Add Link Card",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:15})})]}),S&&o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){yield Y(r),T()}),children:[O("Remove Link Card",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:15})})]})]}),n[119]=a,n[120]=s,n[121]=i,n[122]=S,n[123]=A,n[124]=r,n[125]=T,n[126]=O,n[127]=Y,n[128]=et):et=n[128];let Et;n[129]!==F||n[130]!==r||n[131]!==f||n[132]!==$?(Et=()=>ge(this,null,function*(){yield F({historyIds:[r],isPinned:!f}),yield $.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),n[129]=F,n[130]=r,n[131]=f,n[132]=$,n[133]=Et):Et=n[133];let bt;n[134]!==f||n[135]!==O?(bt=f?O("UnPin",{ns:"contextMenus"}):O("Pin",{ns:"contextMenus"}),n[134]=f,n[135]=O,n[136]=bt):bt=n[136];let _t;n[137]!==f?(_t=o.jsx("div",{className:"ml-auto",children:f?o.jsx(Od,{size:15}):o.jsx(tu,{size:15})}),n[137]=f,n[138]=_t):_t=n[138];let Mt;n[139]!==Et||n[140]!==bt||n[141]!==_t?(Mt=o.jsxs(Wt,{onClick:Et,children:[bt,_t]}),n[139]=Et,n[140]=bt,n[141]=_t,n[142]=Mt):Mt=n[142];let an;n[143]!==J||n[144]!==r||n[145]!==m||n[146]!==$?(an=()=>ge(this,null,function*(){yield J({historyId:r,updatedData:{isFavorite:!m,historyId:r}}),yield $.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),n[143]=J,n[144]=r,n[145]=m,n[146]=$,n[147]=an):an=n[147];let dn;n[148]!==m||n[149]!==O?(dn=m?O("Remove Star",{ns:"contextMenus"}):O("Star",{ns:"contextMenus"}),n[148]=m,n[149]=O,n[150]=dn):dn=n[150];let fn;n[151]!==m?(fn=o.jsx("div",{className:"ml-auto",children:m?o.jsx(w5,{size:15}):o.jsx(Fh,{size:15})}),n[151]=m,n[152]=fn):fn=n[152];let mn;n[153]!==an||n[154]!==dn||n[155]!==fn?(mn=o.jsxs(Wt,{onClick:an,children:[dn,fn]}),n[153]=an,n[154]=dn,n[155]=fn,n[156]=mn):mn=n[156];let hn;n[157]===Symbol.for("react.memo_cache_sentinel")?(hn=o.jsx(Qn,{}),n[157]=hn):hn=n[157];let nn;n[158]!==O?(nn=O("Add to",{ns:"contextMenus"}),n[158]=O,n[159]=nn):nn=n[159];let on;n[160]!==nn?(on=o.jsxs(Rr,{children:[nn," ..."]}),n[160]=nn,n[161]=on):on=n[161];let Sn;n[162]!==r?(Sn=()=>{xa.value=nl.CLIP,t0.value=[r]},n[162]=r,n[163]=Sn):Sn=n[163];let pn;n[164]!==O?(pn=O("AddTo:::Clip on Board",{ns:"contextMenus"}),n[164]=O,n[165]=pn):pn=n[165];let rn;n[166]===Symbol.for("react.memo_cache_sentinel")?(rn=o.jsx("div",{className:"ml-auto",children:o.jsx(oE,{size:15})}),n[166]=rn):rn=n[166];let ct;n[167]!==Sn||n[168]!==pn?(ct=o.jsxs(Wt,{onClick:Sn,children:[pn,rn]}),n[167]=Sn,n[168]=pn,n[169]=ct):ct=n[169];let xe;n[170]!==q||n[171]!==r?(xe=()=>{q("/menu",{replace:!0}),setTimeout(()=>{ud.value=r.toString(),ho.value=!0},300)},n[170]=q,n[171]=r,n[172]=xe):xe=n[172];let Ye;n[173]!==O?(Ye=O("AddTo:::Paste Menu",{ns:"contextMenus"}),n[173]=O,n[174]=Ye):Ye=n[174];let dt;n[175]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx("div",{className:"ml-auto",children:o.jsx(cE,{size:15})}),n[175]=dt):dt=n[175];let mt;n[176]!==xe||n[177]!==Ye?(mt=o.jsxs(Wt,{onClick:xe,children:[Ye,dt]}),n[176]=xe,n[177]=Ye,n[178]=mt):mt=n[178];let xt;n[179]!==ct||n[180]!==mt?(xt=o.jsxs(Or,{className:"w-28",children:[ct,mt]}),n[179]=ct,n[180]=mt,n[181]=xt):xt=n[181];let It;n[182]!==on||n[183]!==xt?(It=o.jsxs(Hr,{children:[on,xt]}),n[182]=on,n[183]=xt,n[184]=It):It=n[184];let At;n[185]===Symbol.for("react.memo_cache_sentinel")?(At=o.jsx(Qn,{}),n[185]=At):At=n[185];let Ht;n[186]!==a||n[187]!==b||n[188]!==l||n[189]!==J||n[190]!==r||n[191]!==p||n[192]!==O?(Ht=(a==null?void 0:a.length)>0&&!b||l&&o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{onClick:()=>{J({historyId:r,updatedData:{isMasked:!p,historyId:r}})},children:[p?O("Unmask Secret",{ns:"contextMenus"}):O("Mask Secret",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Lz,{size:15})})]}),o.jsx(Qn,{})]}),n[186]=a,n[187]=b,n[188]=l,n[189]=J,n[190]=r,n[191]=p,n[192]=O,n[193]=Ht):Ht=n[193];let Bt;n[194]!==b||n[195]!==O||n[196]!==J||n[197]!==r||n[198]!==V?(Bt=b&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[O("Detected Language",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[V.map(Ct=>o.jsx(tl,{checked:b===Ct,onSelect:()=>{J({historyId:r,updatedData:{detectedLanguage:Ct,isCode:!0,historyId:r}})},children:o.jsx(re,{children:Ct})},Ct)),o.jsx(Qn,{}),o.jsxs(Wt,{onSelect:()=>{J({historyId:r,updatedData:{isCode:!1,isText:!0,historyId:r}})},children:[o.jsx(doe,{size:16,className:"mr-2"}),o.jsx(re,{children:O("not a code",{ns:"contextMenus"})})]})]})]}),o.jsx(Qn,{})]}),n[194]=b,n[195]=O,n[196]=J,n[197]=r,n[198]=V,n[199]=Bt):Bt=n[199];let tt;n[200]!==i||n[201]!==c||n[202]!==r||n[203]!==E||n[204]!==te||n[205]!==O?(tt=(i||c)&&o.jsxs(Wt,{onClick:()=>{On("save_to_file_history_item",{historyId:r,asImage:!0}).then(Ct=>{Ct==="saved"?(E(r),setTimeout(()=>{E(null)},1600)):Ct!=="cancel"&&(te(O("Errors:::Cant save image file",{ns:"common"})),console.error(O("Errors:::Failed to save image file",{ns:"common"}),Ct))}).catch(()=>{te(O("Errors:::Cant save image file",{ns:"common"}))})},children:[O("Save as Image File",{ns:"contextMenus"})," ...",o.jsx("div",{className:"ml-auto",children:o.jsx(Sh,{size:15})})]}),n[200]=i,n[201]=c,n[202]=r,n[203]=E,n[204]=te,n[205]=O,n[206]=tt):tt=n[206];let Kt;n[207]!==i||n[208]!==a||n[209]!==r||n[210]!==E||n[211]!==te||n[212]!==O?(Kt=!(i&&!(a!=null&&a.length))&&o.jsxs(Wt,{onClick:()=>{On("save_to_file_history_item",{historyId:r}).then(Ct=>{Ct==="saved"?(E(r),setTimeout(()=>{E(null)},1600)):Ct!=="cancel"&&te(O("Errors:::Cant save to file",{ns:"common"}))}).catch(()=>{te(O("Errors:::Cant save to file",{ns:"common"}))})},children:[O("Save as Text File",{ns:"contextMenus"}),"...",o.jsx("div",{className:"ml-auto",children:o.jsx(Sh,{size:15})})]}),n[207]=i,n[208]=a,n[209]=r,n[210]=E,n[211]=te,n[212]=O,n[213]=Kt):Kt=n[213];let Zt;n[214]===Symbol.for("react.memo_cache_sentinel")?(Zt=o.jsx(Qn,{}),n[214]=Zt):Zt=n[214];const vn=Qu.value===r?"!bg-red-100 dark:!bg-red-950":"";let oe;n[215]!==r||n[216]!==H||n[217]!==U?(oe=Ct=>ge(this,null,function*(){Ct.preventDefault(),Qu.value===r?(yield H({historyIds:[r]}),U(r),Qu.value=null):(Ct.preventDefault(),Qu.value=r,setTimeout(()=>{Qu.value=null},3e3))}),n[215]=r,n[216]=H,n[217]=U,n[218]=oe):oe=n[218];let fe;n[219]!==r||n[220]!==O?(fe=Qu.value!==r?O("Delete",{ns:"common"}):O("Click to Confirm",{ns:"common"}),n[219]=r,n[220]=O,n[221]=fe):fe=n[221];let Xe;n[222]!==fe?(Xe=o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500 dark:!text-red-600",children:fe})}),n[222]=fe,n[223]=Xe):Xe=n[223];let Me;n[224]===Symbol.for("react.memo_cache_sentinel")?(Me=o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{className:"h-4 w-4 text-red-500 dark:!text-red-600"})}),n[224]=Me):Me=n[224];let _e;n[225]!==vn||n[226]!==oe||n[227]!==Xe?(_e=o.jsxs(Wt,{className:vn,onClick:oe,children:[Xe,Me]}),n[225]=vn,n[226]=oe,n[227]=Xe,n[228]=_e):_e=n[228];let He;return n[229]!==Z||n[230]!==me||n[231]!==De||n[232]!==Re||n[233]!==et||n[234]!==Mt||n[235]!==mn||n[236]!==It||n[237]!==Ht||n[238]!==Bt||n[239]!==tt||n[240]!==Kt||n[241]!==_e?(He=o.jsx(Cx,{children:o.jsxs(H0,{className:"w-[190px]",children:[Z,me,De,nt,Re,Oe,et,Mt,mn,hn,It,At,Ht,Bt,tt,Kt,Zt,_e]})}),n[229]=Z,n[230]=me,n[231]=De,n[232]=Re,n[233]=et,n[234]=Mt,n[235]=mn,n[236]=It,n[237]=Ht,n[238]=Bt,n[239]=tt,n[240]=Kt,n[241]=_e,n[242]=He):He=n[242],He}finally{e.f()}}function g6e({index:t,style:e,clipboard:n,isDark:r,searchTerm:s,isPinnedTop:a=!1,isPinnedTopFirst:i=!1,isDisabledPinnedMoveUp:l=!1,isDisabledPinnedMoveDown:c=!1,isExpanded:d=!1,isSelected:p=!1,isWrapText:f=!1,isDeleting:m=!1,isOverPinned:b=!1,isLinkCardPreviewEnabled:C=!0,selectedItemsCount:g=0,timeAgo:w=null,showTimeAgo:x=!1,showSelectHistoryItems:S,isCopied:E,isPasted:N,isSaved:_,isLargeView:P=!1,largeViewItemId:I,setSavingItem:T=()=>{},setLargeViewItemId:L=()=>{},pastingCountDown:A,onCopyPaste:z=()=>{},onCopy:Y=()=>{},invalidateClipboardHistoryQuery:O=()=>{},generateLinkMetaData:$,removeLinkMetaData:M=()=>Promise.resolve(),isBrokenImage:W=!1,setExpanded:V=()=>{},onMovePinnedUpDown:U=({})=>{},setWrapText:J=()=>{},setBrokenImageItem:H=()=>{},setSelectHistoryItem:F=()=>{},isDragPreview:q=!1,setRowHeight:X=()=>{}}){var ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve;var te=sn(1);try{const{t:Ge}=Gt(),ft=v.useRef(null),Ie=v.useRef(null),Ke=v.useRef(null),ut=E||N||_,$e=it(!1),ht=it(!1),Fe=a?Ef.value==="".concat(n==null?void 0:n.historyId,"::pinned")&&!q&&!ut||ht.value:Ef.value===(n==null?void 0:n.historyId)&&!ut&&!q||ht.value,{setNodeRef:pt,listeners:Qe,isDragging:Lt}=w$({disabled:q&&!(Fe||p),data:{isPinned:a},id:a?"".concat(n==null?void 0:n.historyId,"::pinned"):(ee=n==null?void 0:n.historyId)!=null?ee:"id"});if(v.useLayoutEffect(()=>{var Ue;(Ue=ft.current)!=null&&Ue.clientHeight&&$e.value&&t!==void 0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{ft!=null&&ft.current&&X(t,(ft==null?void 0:ft.current.clientHeight)+4)})})},[$e.value,(G=ft.current)==null?void 0:G.clientHeight,X,w,x,t]),v.useEffect(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t!==void 0&&(ft!=null&&ft.current)&&X(t,(ft==null?void 0:ft.current.clientHeight)+4)})})},[d,f]),!n)return null;const Ut=v.useMemo(()=>{var Ue,Je,jt;return!n.isFavorite&&!n.isPinned?"":(Ue=ft==null?void 0:ft.current)!=null&&Ue.clientHeight&&(((Je=ft==null?void 0:ft.current)==null?void 0:Je.clientHeight)<=42&&!x||((jt=ft==null?void 0:ft.current)==null?void 0:jt.clientHeight)<=72&&x)?a&&!n.isFavorite?"":"mr-4":""},[(Z=ft==null?void 0:ft.current)==null?void 0:Z.clientHeight,x,a,n.isFavorite,n.isPinned]),wt=(se=(le=n==null?void 0:n.value)==null?void 0:le.trim())!=null?se:"",Xt=(n==null?void 0:n.isLink)&&((de=n==null?void 0:n.linkMetadata)==null?void 0:de.linkTitle)&&((ce=n==null?void 0:n.linkMetadata)==null?void 0:ce.linkDomain),$t=t===0&&n.updatedAt>Date.now()-g_,tn=i?"top-[5px]":"top-[-10px]",Pt="".concat(!a&&b&&!$t?"bg-orange-50 dark:!bg-transparent":m?"bg-red-50 dark:bg-red-950/80":ht.value?"bg-slate-100 dark:bg-slate-900 ".concat($t?"bg-teal-50/80 dark:bg-sky-900/80":""):ut?"dark:bg-green-950/80":_?"dark:bg-sky-950/80":p?"bg-yellow-50 dark:bg-amber-950/80":$t?"bg-teal-50/90 dark:bg-sky-950":"bg-white dark:bg-slate-950/80");return o.jsx(ne,ae(R({style:ae(R({},e),{opacity:(m||b)&&!q?1:Lt||q?.7:void 0}),ref:q&&!(Fe||p)?null:pt},p||Fe?Qe:{}),{children:o.jsxs(ne,{ref:ft,children:[x&&o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs ".concat(t===0?"pt-0":"pt-2"),children:w}),o.jsxs(z0,{onOpenChange:Ue=>{ht.value=Ue,Qu.value=null},children:[o.jsx(F0,{ref:Fe||p?Ke:null,children:o.jsxs(ne,{className:"relative select-none history-item",children:[o.jsx(ne,{className:"rounded-md justify-start duration-300 relative px-3 py-1 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(t===0&&n.updatedAt>Date.now()-g_&&!ut&&!m&&!p?"bg-teal-50 hover:border-slate-300 dark:bg-sky-900/40 dark:hover:border-slate-700 hover:bg-teal-50/90 hover:dark:bg-sky-950":m&&!q?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":ht.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":_&&!q?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 dark:hover:border-sky-800":ut&&!q?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":p?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 hover:border-amber-300/80 dark:hover:border-amber-800 hover:bg-amber-50/80 ".concat(a?"!border dark:!bg-amber-950":""):"hover:bg-white dark:hover:bg-slate-950/80 ".concat(P?"border-slate-500 bg-white dark:bg-slate-950 hover:dark:border-slate-500":"".concat(!a&&b?"border-orange-300 dark:border-orange-400/80 dark:bg-orange-900/80 bg-orange-50":a?"bg-slate-50 dark:!bg-slate-900 dark:hover:!bg-slate-950 hover:!border-orange-300/90 border-orange-300/50 dark:!border-orange-800/60 dark:hover:!border-orange-900":"bg-slate-50 hover:border-slate-300 dark:border-slate-800")," dark:hover:border-slate-700 dark:bg-slate-900 ").concat(q?"dark:border-slate-700":"")),onClickCapture:Ue=>{var Je,jt;Ue.shiftKey?(Ue.preventDefault(),Ue.stopPropagation(),(Je=window.getSelection())==null||Je.removeAllRanges(),L(P?null:n.historyId)):I&&!P?((jt=window.getSelection())==null||jt.removeAllRanges(),L(n.historyId)):Ef.value=a?"".concat(n.historyId,"::pinned"):n.historyId},onMouseEnter:()=>{Ef.value=a?"".concat(n.historyId,"::pinned"):n.historyId},onMouseLeave:()=>{Ef.value=null},onDoubleClickCapture:Ue=>{qu().text.trim()||(Ue.altKey||Ue.metaKey?z(n.historyId):Y(n.historyId))},children:o.jsxs(ne,{className:"".concat(S?"flex flex-row -ml-1":""),children:[S&&!q&&o.jsx(ne,{className:"flex flex-row items-center pr-2 z-100",children:o.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{F(n.historyId)},checked:p})}),n.isImageData?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full _select-text overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center w-full",children:o.jsx(vl,{src:wt,hasError:W,onErrorCallback:()=>{H(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),o.jsx("code",{className:"pb-0.5",children:s?HC(n.value,s):o.jsx("span",{children:n.valuePreview})})]}):n.isLink&&n.isImage?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full _select-text cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center w-full",children:o.jsx(vl,{src:Ir(wt),hasError:W,height:n.imageHeight,onErrorCallback:()=>{H(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),o.jsx("code",{className:"pb-0.5",children:s?HC(wt,s):_h(wt,n.arrLinks)})]}):n.isImage&&n.imageDataUrl?o.jsx(ne,{className:"px-0 py-1.5 flex items-center justify-center w-full",children:o.jsx("img",{src:n.imageDataUrl,draggable:!1,decoding:"async",height:n.imageHeight,onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}):n.detectedLanguage&&n.valuePreview?o.jsxs(ne,{ref:Ue=>{Ue&&($e.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[o.jsx(Tx,{theme:r?gl.vsDark:gl.github,code:d?wt:n.valuePreview.trim(),language:n.detectedLanguage,children:({className:Ue,style:Je,tokens:jt,getLineProps:we,getTokenProps:Se})=>o.jsx("code",{className:"".concat(Ue),style:Je,children:jt.map((De,nt)=>{const Pe=nt===jt.length-1&&n.valueMorePreviewLines&&!d;return o.jsxs("div",ae(R({},we({line:De})),{className:"".concat(f?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:[De.map((gt,Ze)=>o.jsx("span",ae(R({},Se({token:gt})),{className:"_select-text cursor-pointer",children:s?Kl(gt.content,s):gt.content}),Ze)),Pe&&o.jsx("span",{className:"select-none",children:"..."})]}),nt)})})}),n.valueMorePreviewLines&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]}):o.jsxs(ne,{ref:Ue=>{Ue&&($e.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[Xt&&o.jsx(ne,{className:"self-start mt-1.5 mb-1 text-xs w-full overflow-hidden",children:o.jsx(V0,{title:(ye=n.linkMetadata)==null?void 0:ye.linkTitle,description:(pe=n.linkMetadata)==null?void 0:pe.linkDescription,favicon:(me=n.linkMetadata)==null?void 0:me.linkFavicon,link:(Ee=(be=n==null?void 0:n.linkMetadata)==null?void 0:be.linkUrl)!=null?Ee:null,image:(We=n.linkMetadata)==null?void 0:We.linkImage,historyId:n.historyId,domain:(qe=n.linkMetadata)==null?void 0:qe.linkDomain})}),d?o.jsxs("code",{className:"justify-start cursor-pointer",children:[s?Kl(wt,s):_h(wt,n.arrLinks),n.valueMorePreviewChars&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]}):o.jsxs("code",{className:"justify-start cursor-pointer",children:[s?HC(wt!=null?wt:"",s):dve({previewLinkCard:!Xt&&C,value:(Ve=(ot=n.valuePreview)==null?void 0:ot.trim())!=null?Ve:"",links:n.arrLinks,itemId:null,historyId:n.historyId}),n.valueMorePreviewChars&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"select-none",children:"..."}),o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]})]})]}),(n.valueMorePreviewLines||n.valueMorePreviewChars)&&o.jsxs(ne,{className:"absolute left-1 bottom-1 flex flex-row items-center rounded mb-[2px] pl-0.5 ".concat(Pt),children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-1 cursor-pointer",onClick:()=>{V(n.historyId,!d)},children:o.jsx(st,{text:d?"":Ge("Show all",{ns:"common"}),isCompact:!0,isDisabled:d||q,delayDuration:2e3,side:"bottom",sideOffset:10,children:d?o.jsxs(o.Fragment,{children:["- ",Ge("show less",{ns:"common"})]}):n!=null&&n.valueMorePreviewChars?o.jsxs(o.Fragment,{children:["+",n.valueMorePreviewChars," ",Ge("chars",{ns:"common"})]}):o.jsxs(o.Fragment,{children:["+",n.valueMorePreviewLines," ",Ge("lines",{ns:"common"})]})})}),d&&o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 cursor-pointer",onClick:()=>J(n.historyId,!f),children:o.jsx(st,{text:f?Ge("No Wrap",{ns:"common"}):Ge("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:f?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}),n.isImage&&!n.isLink&&o.jsx(ne,{className:"absolute left-1 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5 z-100",children:o.jsxs(ne,{className:"text-xs text-muted-foreground px-1.5 rounded ".concat(Pt),title:Ge("Image size in pixels",{ns:"common"}),children:[n.imageWidth,"x",n.imageHeight]})}),o.jsxs(o.Fragment,{children:[n.isFavorite&&o.jsx(Fh,{className:"absolute text-transparent z-100 ".concat(n.isPinned?"fill-orange-400 dark:fill-orange-500/60":"fill-yellow-400 dark:fill-yellow-500/70"," pointer-events-none right-[4px] top-[3px]"),size:12}),n.isPinned&&!n.isFavorite&&!a&&o.jsx(tc,{className:"absolute text-orange-400 dark:text-orange-500/60 pointer-events-none top-[-5px] right-[-5px] z-auto",size:28})]}),o.jsx(ne,{className:"absolute right-1 bottom-1 flex flex-row gap-1 items-center pb-0 pl-0.5 mb-[2px] rounded",children:Fe||p?o.jsxs("div",{className:"flex ".concat(Pt),children:[a?o.jsxs(ve,{className:"text-xs text-muted-foreground rounded px-1",children:[o.jsx(st,{text:Ge("Move Up",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||l,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"".concat(l?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:o.jsx(gx,{size:14,onClick:()=>{l||U({historyId:n.historyId,moveUp:!0})}})})}),o.jsx(st,{text:Ge("Move Down",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||c,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"".concat(c?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:o.jsx(mx,{size:14,onClick:()=>{c||U({historyId:n.historyId,moveDown:!0})}})})})]}):n.timeAgoShort&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1",children:o.jsx(st,{text:Mh(n.updatedAt,"PPpp"),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:n.timeAgoShort})}),o.jsx(st,{text:Tn.value?Ge("Copy and Paste",{ns:"common"}):Ge("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"text-xs cursor-pointer text-slate-500 hover:text-green-700 px-1 border-0 flex items-center justify-center",children:Tn.value?o.jsx(Ds,{size:14,onClick:()=>{z(n.historyId)}}):o.jsx(ba,{size:14,onClick:()=>{Y(n.historyId)}})})}),o.jsx(st,{text:Ge("Drag",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,ae(R({className:"text-xs cursor-move text-slate-500 px-1 border-0 flex items-center justify-center"},Qe),{children:o.jsx(hx,{size:16})}))}),o.jsx(st,{text:Ge("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,{ref:Ie,className:"text-xs px-1 cursor-pointer text-slate-500 pl-0 pr-0 flex items-center justify-center",children:o.jsx(yl,{size:16,onClick:()=>{var Ue,Je,jt;(jt=Ke==null?void 0:Ke.current)==null||jt.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(Ue=Ie==null?void 0:Ie.current)==null?void 0:Ue.getBoundingClientRect().x,clientY:(Je=Ie==null?void 0:Ie.current)==null?void 0:Je.getBoundingClientRect().y}))}})})})]},"hover-panel"):o.jsxs("div",{className:"".concat(Ut),children:[n.hasMaskedWords&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-0.5",children:o.jsx(tc,{size:16})}),n.isMasked&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Secret",{ns:"common"})}),n.detectedLanguage&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.detectedLanguage}),n.isLink&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.isVideo?Ge("Type:::Video",{ns:"common"}):qc(wt)?Ge("Type:::Email",{ns:"common"}):Ge("Type:::Link",{ns:"common"})}),n.hasEmoji&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Emoji",{ns:"common"})}),n.isImageData&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Image Base64",{ns:"common"})})]},"labels-panel")}),g>1&&o.jsx(ne,{className:"absolute left-[-12px] top-[-12px] flex",children:o.jsx(St,{variant:m?"destructive":"default",children:g})})]})}),_?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center fade-in-animation"),children:o.jsxs(St,{variant:"default",className:"bg-sky-700 dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold",children:[o.jsx(Sh,{size:14,className:"mr-1"}),Ge("Saved",{ns:"common"})]})}):ut&&!A?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center fade-in-animation"),children:o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 _mr-[-6px] text-[10px] uppercase font-semibold",children:[o.jsx(en,{size:14,className:"mr-1"}),E?Ge("Copied",{ns:"common"}):N?Ge("Pasted",{ns:"common"}):""]})}):P?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center"),children:o.jsxs(St,{variant:"default",className:"px-3 dark:bg-slate-600 hover:bg-slate-500/100 pr-2.5",children:[o.jsx(re,{className:"mr-1 bg-slate-500 dark:bg-slate-600 pointer-events-none dark:!text-slate-300",color:"muted",children:Ge("In View",{ns:"common"})}),o.jsx(In,{size:14,className:"cursor-pointer dark:text-slate-300",onClick:()=>{L(null)}})]})}):A&&A>0&&o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center"),children:o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold",children:Ge("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:A})})})]})}),o.jsx(FV,{historyId:n.historyId,isMasked:n.isMasked,setSavingItem:T,value:n.value,isImage:n.isImage,isText:n.isText,isPinned:n.isPinned,isFavorite:n.isFavorite,isImageData:n.isImageData,detectedLanguage:n.detectedLanguage,setLargeViewItemId:L,isLargeView:P,arrLinks:n.arrLinks,hasLinkCard:Xt,isSelected:p,invalidateClipboardHistoryQuery:O,generateLinkMetaData:$,removeLinkMetaData:M,setSelectHistoryItem:F,onCopyPaste:z})]})]})}))}finally{te.f()}}const x4=v.memo(g6e);function v6e({clipboard:t,isDark:e,searchTerm:n,isSelected:r=!1,isDeleting:s=!1,timeAgo:a=null,isCopied:i,isPasted:l,isSaved:c,setSavingItem:d=()=>{},setLargeViewItemId:p=()=>{},pastingCountDown:f=null,onCopyPaste:m=()=>{},onCopy:b=()=>{},invalidateClipboardHistoryQuery:C=()=>{},generateLinkMetaData:g=()=>Promise.resolve(),removeLinkMetaData:w=()=>Promise.resolve(),isBrokenImage:x=!1,setBrokenImageItem:S=()=>{},setSelectHistoryItem:E=()=>{}}){var _,P,I,T,L,A,z,Y,O;var N=sn(1);try{const{t:$}=Gt(),M=it(!1),[W,V]=v.useState(!1),U=v.useRef(null),J=v.useRef(null),H=(P=(_=t==null?void 0:t.value)==null?void 0:_.trim())!=null?P:"",F=(t==null?void 0:t.isLink)&&((I=t==null?void 0:t.linkMetadata)==null?void 0:I.linkTitle)&&((T=t==null?void 0:t.linkMetadata)==null?void 0:T.linkDomain),q=i||l||c;return t?o.jsxs(ne,{className:"max-w-full max-h-full select-none",children:[o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:a}),o.jsxs(z0,{onOpenChange:X=>{M.value=X},children:[o.jsx(F0,{ref:J,children:o.jsxs(ne,{className:"select-none relative",children:[o.jsx(ne,{className:"rounded-md min-w-[300px] dark:border-slate-700 justify-start duration-300 px-2.5 py-1.5 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(s?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":M.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":c?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 hover:border-sky-300/80 dark:hover:border-sky-800":q?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":r?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 dark:hover:border-amber-800 hover:border-amber-300/80 hover:bg-amber-50/80":"bg-white border-slate-300 dark:hover:border-slate-700 dark:bg-slate-900"),children:o.jsxs(ne,{children:[t.isImageData?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:H,hasError:x,decoding:"async",onErrorCallback:()=>{S(t.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},t.historyId)}),o.jsx("code",{className:"pb-0.5",children:n?Kl(t.valuePreview,n):o.jsx("span",{children:t.valuePreview})})]}):t.isLink&&t.isImage?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(H),hasError:x,height:t.imageHeight,decoding:"async",onErrorCallback:()=>{S(t.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},t.historyId)}),o.jsx("code",{className:"pb-0.5",children:n?Kl(H,n):_h(H,t.arrLinks)})]}):t.isImage&&t.imagePathFullRes?o.jsx(ne,{className:"px-0 py-1.5 flex items-center justify-center",children:o.jsx("img",{decoding:"async",srcSet:"".concat(nh(t.imagePathFullRes)," 2x"),src:nh(t.imagePathFullRes),className:"min-h-20 rounded-md shadow-sm border border-slate-100 dark:border-slate-700 object-scale-down animate-in fade-in duration-300"},t.historyId)}):t.detectedLanguage&&t.valuePreview?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full p-1.5 animate-in fade-in",children:o.jsx(Tx,{theme:e?gl.vsDark:gl.github,code:H,language:t.detectedLanguage,children:({className:X,style:te,tokens:ee,getLineProps:G,getTokenProps:Z})=>o.jsx(Nh,{options:{overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:e?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxWidth:"100%"},children:o.jsx("code",{className:"".concat(X),style:te,children:ee.map((le,se)=>o.jsx("div",ae(R({},G({line:le})),{className:"".concat(W?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:le.map((de,ce)=>o.jsx("span",ae(R({},Z({token:de})),{className:"select-text",children:n?Kl(de.content,n):de.content}),ce))}),se))})})})},t.historyId):o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full overflow-hidden animate-in fade-in",children:[F&&o.jsx(ne,{className:"self-start mt-1.5 mb-1 text-xs w-full select-text overflow-hidden",children:o.jsx(V0,{title:(L=t.linkMetadata)==null?void 0:L.linkTitle,description:(A=t.linkMetadata)==null?void 0:A.linkDescription,favicon:(z=t.linkMetadata)==null?void 0:z.linkFavicon,link:t==null?void 0:t.arrLinks[0],image:(Y=t.linkMetadata)==null?void 0:Y.linkImage,domain:(O=t.linkMetadata)==null?void 0:O.linkDomain})}),o.jsxs("code",{className:"justify-start select-text ".concat(W?"whitespace-break-spaces":"whitespace-normal"),children:[n?Kl(H,n):_h(H,t.arrLinks),t.valueMorePreviewChars&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]})]},t.historyId),o.jsx(ne,{className:"flex flex-row gap-1 items-center mt-1",children:o.jsx(ne,{className:"flex flex-row gap-1 items-center pb-1 ml-auto",children:o.jsxs(o.Fragment,{children:[!t.isImage&&o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 ml-1.5 cursor-pointer",onClick:()=>V(!W),children:o.jsx(st,{text:W?$("No Wrap",{ns:"common"}):$("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:W?o.jsx(vz,{width:20,height:20,strokeWidth:1.5}):o.jsx(Gce,{width:20,height:20,strokeWidth:1.5})})}),t.isImage&&!t.isLink&&o.jsxs(ne,{className:"flex flex-row gap-1 rounded items-center",children:[o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Image",{ns:"common"})}),o.jsxs(ne,{className:"text-[11px] text-muted-foreground px-1 pt-0.5",children:[t.imageWidth,"x",t.imageHeight]})]}),(t.isMasked||t.hasMaskedWords)&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(t.hasMaskedWords?"px-1":"px-1.5"),children:t.isMasked?$("Type:::Secret",{ns:"common"}):o.jsx(st,{text:$("Found Masked Words",{ns:"common"}),delayDuration:600,isCompact:!0,side:"bottom",sideOffset:6,children:o.jsx(tc,{size:18})})}),t.detectedLanguage&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:t.detectedLanguage}),t.isLink&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:t.isVideo?$("Type:::Video",{ns:"common"}):$("Type:::Link",{ns:"common"})}),t.hasEmoji&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Emoji",{ns:"common"})}),t.isImageData&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Image Base64",{ns:"common"})}),o.jsx(st,{text:$("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"text-xs cursor-pointer hover:text-green-700 text-slate-500 px-0 ml-1.5 border-0 flex items-center justify-center",children:Tn.value?o.jsx(Ds,{size:18,onClick:()=>{m(t.historyId)}}):o.jsx(ba,{size:18,onClick:()=>{b(t.historyId)}})})}),o.jsx(st,{text:$("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(ne,{ref:U,className:"text-xs cursor-pointer text-slate-500 pl-2 pr-0 flex items-center justify-center",children:o.jsx(yl,{size:18,onClick:()=>{var X,te,ee;(ee=J==null?void 0:J.current)==null||ee.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(X=U==null?void 0:U.current)==null?void 0:X.getBoundingClientRect().x,clientY:(te=U==null?void 0:U.current)==null?void 0:te.getBoundingClientRect().y}))}})})})]})})})]})}),c?o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] flex justify-center animate-in fade-in-500 duration-500",children:o.jsxs(St,{variant:"default",className:"dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2",children:[o.jsx(Sh,{size:14,className:"mr-1"}),$("Saved",{ns:"common"})]})}):q&&f===null?o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] animate-in fade-in-500 duration-500 slide-in-from-bottom-1 flex justify-center",children:o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pr-4",children:[o.jsx(en,{size:14,className:"mr-1"}),i?$("Copied",{ns:"common"}):l?$("Pasted",{ns:"common"}):""]})}):f!==null&&f>0&&o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] slide-in-from-bottom-1 flex justify-center",children:o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pl-3",children:f&&f>0&&$("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:f})})})]})}),o.jsx(FV,{historyId:t.historyId,isPinned:t.isPinned,isFavorite:t.isFavorite,isMasked:t.isMasked,detectedLanguage:t.detectedLanguage,setSavingItem:d,value:t.value,isImage:t.isImage,isText:t.isText,isImageData:t.isImageData,setLargeViewItemId:p,isLargeView:!0,arrLinks:t.arrLinks,hasLinkCard:F,isSelected:r,invalidateClipboardHistoryQuery:C,generateLinkMetaData:g,removeLinkMetaData:w,setSelectHistoryItem:E,onCopyPaste:m})]}),o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:o.jsxs(St,{variant:"outline",className:"bg-slate-100 px-2 pl-2.5 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{p(null),Ws.value=null},children:[$("Close",{ns:"common"}),o.jsx(In,{size:14,className:"ml-1"})]})})]}):null}finally{N.f()}}const x6e=v.memo(v6e);function y6e(t){const e=Te(6);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("path",{fill:"currentColor",d:"M19.14 29.714H8.502a4.27 4.27 0 0 1-4.271-4.271V14.934C.821 13.47.273 8.863 3.247 6.641a4.822 4.822 0 0 1 6.685.892h9.207a4.27 4.27 0 0 1 4.271 4.271v13.639a4.27 4.27 0 0 1-4.27 4.271ZM6.162 6.904c-2.778 0-4.515 3.007-3.125 5.414 1.388 2.405 4.862 2.405 6.251 0a3.622 3.622 0 0 0 .484-1.805 3.614 3.614 0 0 0-3.61-3.609Zm16.029 4.9a3.052 3.052 0 0 0-3.051-3.052h-8.492c1.264 3.166-1.078 6.606-4.486 6.59a4.963 4.963 0 0 1-.71-.07v10.171a3.05 3.05 0 0 0 3.05 3.05H19.14a3.05 3.05 0 0 0 3.051-3.05V11.804ZM18.788 23.24a.609.609 0 0 0-.61-.609H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.61Zm0-4.616a.61.61 0 0 0-.61-.61H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.609Zm0-4.616a.609.609 0 0 0-.61-.609h-5.806a.609.609 0 1 0 0 1.219h5.806a.61.61 0 0 0 .61-.61Zm-12.017-1.7v-1.795a.61.61 0 0 0-.609-.611h-1.32a.611.611 0 0 0 0 1.22h.71v1.186a.61.61 0 0 0 1.219 0Z",transform:"rotate(180 12.364 17.455)"}),e[0]=n):n=e[0];const r="".concat(t.lightingColor||"white");let s;e[1]!==r?(s=o.jsx("path",{stroke:"currentColor",fill:r,d:"M7.992 4.719h5.81c.399 0 .723.323.723.724v1.678a.724.724 0 0 1-.723.724h-5.81a.724.724 0 0 1-.724-.724V5.443c0-.401.323-.724.724-.724Z",transform:"translate(.006 -.486)"}),e[1]=r,e[2]=s):s=e[2];let a;return e[3]!==t.className||e[4]!==s?(a=o.jsxs("svg",{className:t.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0.294 3.317 24.273 26.397",children:[n,s]}),e[3]=t.className,e[4]=s,e[5]=a):a=e[5],a}const b6e=t=>{const e=Te(364),{selectedHistoryItems:n,setShowSelectHistoryItems:r,isDeleting:s,onDelete:a,setIsDeleting:i,isDark:l,setSelectHistoryItem:c,setSelectedHistoryItems:d,showSelectHistoryItems:p}=t,{t:f}=Gt(),{deleteClipboardHistoryByIds:m}=U7(),{clearClipboardHistoryOlderThan:b}=Y5e(),C=ua(),{isHistoryEnabled:g,setIsHistoryEnabled:w,isHistoryAutoUpdateOnCaputureEnabled:x,setIsHistoryAutoUpdateOnCaputureEnabled:S}=Tt(Cr),{deleteClipboardHistoryItems:E}=Tt(_i);let N;e[0]===Symbol.for("react.memo_cache_sentinel")?(N=["alt+s"],e[0]=N):N=e[0];let _;e[1]!==r||e[2]!==p?(_=()=>{r(!p)},e[1]=r,e[2]=p,e[3]=_):_=e[3],Vs(N,_);let P;e[4]===Symbol.for("react.memo_cache_sentinel")?(P=["control+s"],e[4]=P):P=e[4];let I;e[5]!==c?(I=()=>{Ef.value&&c(Ef.value)},e[5]=c,e[6]=I):I=e[6],Vs(P,I);let T;e[7]===Symbol.for("react.memo_cache_sentinel")?(T=["alt+h"],e[7]=T):T=e[7];let L;e[8]!==w||e[9]!==g?(L=()=>{w(!g)},e[8]=w,e[9]=g,e[10]=L):L=e[10],Vs(T,L);let A;e[11]===Symbol.for("react.memo_cache_sentinel")?(A=["alt+a"],e[11]=A):A=e[11];let z;e[12]!==S||e[13]!==x?(z=()=>{S(!x)},e[12]=S,e[13]=x,e[14]=z):z=e[14],Vs(A,z);let Y,O;e[15]===Symbol.for("react.memo_cache_sentinel")?(Y=["alt+u"],O=()=>{Z8.getState().updateClipboardHistory()},e[15]=Y,e[16]=O):(Y=e[15],O=e[16]),Vs(Y,O);let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=["alt+d"],e[17]=$):$=e[17];let M;e[18]!==d?(M=()=>{d([])},e[18]=d,e[19]=M):M=e[19],Vs($,M);let W;e[20]!==f||e[21]!==b||e[22]!==d||e[23]!==r||e[24]!==i||e[25]!==a?(W=(Pa,ri)=>ge(void 0,null,function*(){const Z0={days:ri==="1"?f("Day",{ns:"calendar"}):f("Days",{ns:"calendar"}),weeks:ri==="1"?f("Week",{ns:"calendar"}):f("Weeks",{ns:"calendar"}),months:ri==="1"?f("Month",{ns:"calendar"}):f("Months",{ns:"calendar"}),year:ri==="1"?f("Year",{ns:"calendar"}):f("Years",{ns:"calendar"})},si=ri==="0"&&Pa==="days",Ak=si?f("Do you really want to remove ALL clipboard history items?",{ns:"history"}):f("Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}",{ns:"history",olderThen:ri,durationType:Z0[Pa]});if(yield S2(Ak,{title:f("{{isAll}} Clipboard History",{ns:"history",isAll:si?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),okLabel:f("{{isAll}} Clipboard History",{ns:"history",isAll:si?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),cancelLabel:f("Cancel",{ns:"common"})}))try{if(si&&!(yield S2(f("Please confirm your action!",{ns:"common"}),{title:f("Confirm Clear All History",{ns:"history"}),okLabel:f("Confirm",{ns:"common"}),cancelLabel:f("Cancel",{ns:"common"})})))return;yield b({durationType:Pa,olderThen:ri}),setTimeout(()=>{d([]),r(!1),i(!1),a(si)},400),yield yo(f("All done! History's been cleared.",{ns:"history"}),"Success")}catch(Ox){console.error(Ox),yield yo(f("Something goes wrong! Please try again.",{ns:"common"}),"Error")}}),e[20]=f,e[21]=b,e[22]=d,e[23]=r,e[24]=i,e[25]=a,e[26]=W):W=e[26];const V=W,U=l?"#0f182a":"#f1f5f9";let J;e[27]!==U?(J=o.jsx(y6e,{className:"w-5 max-w-[22px] min-w-[16px] stroke-[1.3px]",lightingColor:U}),e[27]=U,e[28]=J):J=e[28];let H;e[29]!==n.length?(H=n.length>0&&o.jsx(St,{variant:"slate",className:"absolute left-[-10px] top-[-10px]",children:n.length}),e[29]=n.length,e[30]=H):H=e[30];let F;e[31]!==J||e[32]!==H?(F=o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"light",id:"history-menu-button_tour",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[J,H]})}),e[31]=J,e[32]=H,e[33]=F):F=e[33];let q;e[34]!==p||e[35]!==r||e[36]!==f?(q=p?o.jsxs(rt,{onClick:()=>{r(!1)},children:[o.jsx(Ez,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:f("Hide Muli Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}):o.jsxs(rt,{onClick:()=>{r(!0)},children:[o.jsx(jz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:f("Multi Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}),e[34]=p,e[35]=r,e[36]=f,e[37]=q):q=e[37];const X=n.length===0;let te;e[38]!==d?(te=()=>{d([])},e[38]=d,e[39]=te):te=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=o.jsx(eE,{className:"mr-2 h-4 w-4"}),e[40]=ee):ee=e[40];let G;e[41]!==f?(G=f("Deselect All",{ns:"common"}),e[41]=f,e[42]=G):G=e[42];let Z;e[43]!==G?(Z=o.jsx(re,{className:"mr-1",children:G}),e[43]=G,e[44]=Z):Z=e[44];let le;e[45]===Symbol.for("react.memo_cache_sentinel")?(le=o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+D"})}),e[45]=le):le=e[45];let se;e[46]!==X||e[47]!==te||e[48]!==Z?(se=o.jsxs(rt,{disabled:X,onClick:te,children:[ee,Z,le]}),e[46]=X,e[47]=te,e[48]=Z,e[49]=se):se=e[49];let de;e[50]===Symbol.for("react.memo_cache_sentinel")?(de=o.jsx(kn,{}),e[50]=de):de=e[50];const ce=n.length===0;let ye;e[51]!==n||e[52]!==d?(ye=()=>{xa.value=nl.CLIP,t0.value=Array.from(new Set([...n])),setTimeout(()=>{d([])},400)},e[51]=n,e[52]=d,e[53]=ye):ye=e[53];let pe;e[54]===Symbol.for("react.memo_cache_sentinel")?(pe=o.jsx(Jae,{className:"mr-2 h-4 w-4"}),e[54]=pe):pe=e[54];let me;e[55]!==f?(me=f("Add to Board",{ns:"dashboard"}),e[55]=f,e[56]=me):me=e[56];let be;e[57]!==me?(be=o.jsx(re,{children:me}),e[57]=me,e[58]=be):be=e[58];let Ee;e[59]!==ce||e[60]!==ye||e[61]!==be?(Ee=o.jsxs(rt,{disabled:ce,onClick:ye,children:[pe,be]}),e[59]=ce,e[60]=ye,e[61]=be,e[62]=Ee):Ee=e[62];let We;e[63]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsx(kn,{}),e[63]=We):We=e[63];const qe=n.length===0;let ot;e[64]!==s||e[65]!==m||e[66]!==n||e[67]!==a||e[68]!==E||e[69]!==d||e[70]!==r||e[71]!==i?(ot=Pa=>ge(void 0,null,function*(){s?(yield m({historyIds:n}),setTimeout(()=>{a(),E(n),d([]),r(!1),i(!1)},400)):(Pa.preventDefault(),i(!0),setTimeout(()=>{i(!1)},3e3))}),e[64]=s,e[65]=m,e[66]=n,e[67]=a,e[68]=E,e[69]=d,e[70]=r,e[71]=i,e[72]=ot):ot=e[72];const Ve="mr-2 h-4 w-4 ".concat(s?"text-red-500":"");let Ge;e[73]!==Ve?(Ge=o.jsx(kr,{className:Ve}),e[73]=Ve,e[74]=Ge):Ge=e[74];const ft="mr-1 ".concat(s?"!text-red-500":"");let Ie;e[75]!==s||e[76]!==f?(Ie=s?f("Click to Confirm",{ns:"common"}):f("Delete",{ns:"common"}),e[75]=s,e[76]=f,e[77]=Ie):Ie=e[77];let Ke;e[78]!==ft||e[79]!==Ie?(Ke=o.jsx(re,{className:ft,children:Ie}),e[78]=ft,e[79]=Ie,e[80]=Ke):Ke=e[80];let ut;e[81]!==n.length||e[82]!==s?(ut=n.length>0&&o.jsx(o.Fragment,{children:s?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:n.length}):o.jsx(St,{variant:"slateSecondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:n.length})}),e[81]=n.length,e[82]=s,e[83]=ut):ut=e[83];let $e;e[84]!==Ke||e[85]!==ut?($e=o.jsxs(ve,{children:[Ke,ut]}),e[84]=Ke,e[85]=ut,e[86]=$e):$e=e[86];let ht;e[87]!==qe||e[88]!==ot||e[89]!==Ge||e[90]!==$e?(ht=o.jsxs(rt,{disabled:qe,onClick:ot,children:[Ge,$e]}),e[87]=qe,e[88]=ot,e[89]=Ge,e[90]=$e,e[91]=ht):ht=e[91];let Fe;e[92]===Symbol.for("react.memo_cache_sentinel")?(Fe=o.jsx(mae,{className:"mr-2 h-4 w-4"}),e[92]=Fe):Fe=e[92];let pt;e[93]!==f?(pt=f("Clear History",{ns:"history"}),e[93]=f,e[94]=pt):pt=e[94];let Qe;e[95]!==pt?(Qe=o.jsxs(qs,{children:[Fe,o.jsxs(re,{children:[pt," ..."]})]}),e[95]=pt,e[96]=Qe):Qe=e[96];let Lt;e[97]!==f?(Lt=f("Days",{ns:"calendar"}),e[97]=f,e[98]=Lt):Lt=e[98];let Ut;e[99]!==Lt?(Ut=o.jsx(qs,{children:o.jsx(re,{children:Lt})}),e[99]=Lt,e[100]=Ut):Ut=e[100];let wt;e[101]!==V?(wt=()=>{V("days","1")},e[101]=V,e[102]=wt):wt=e[102];let Xt;e[103]!==f?(Xt=f("Day",{ns:"calendar"}),e[103]=f,e[104]=Xt):Xt=e[104];let $t;e[105]!==Xt?($t=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",Xt]}),e[105]=Xt,e[106]=$t):$t=e[106];let tn;e[107]!==f?(tn=f("and older",{ns:"calendar"}),e[107]=f,e[108]=tn):tn=e[108];let Pt;e[109]!==wt||e[110]!==$t||e[111]!==tn?(Pt=o.jsxs(rt,{onClick:wt,children:[$t,tn]}),e[109]=wt,e[110]=$t,e[111]=tn,e[112]=Pt):Pt=e[112];let Ue;e[113]!==V?(Ue=()=>{V("days","3")},e[113]=V,e[114]=Ue):Ue=e[114];let Je;e[115]!==f?(Je=f("Days",{ns:"calendar"}),e[115]=f,e[116]=Je):Je=e[116];let jt;e[117]!==Je?(jt=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Je]}),e[117]=Je,e[118]=jt):jt=e[118];let we;e[119]!==f?(we=f("and older",{ns:"calendar"}),e[119]=f,e[120]=we):we=e[120];let Se;e[121]!==Ue||e[122]!==jt||e[123]!==we?(Se=o.jsxs(rt,{onClick:Ue,children:[jt,we]}),e[121]=Ue,e[122]=jt,e[123]=we,e[124]=Se):Se=e[124];let De;e[125]!==V?(De=()=>{V("days","5")},e[125]=V,e[126]=De):De=e[126];let nt;e[127]!==f?(nt=f("Days",{ns:"calendar"}),e[127]=f,e[128]=nt):nt=e[128];let Pe;e[129]!==nt?(Pe=o.jsxs(re,{className:"font-semibold mr-1",children:["5 ",nt]}),e[129]=nt,e[130]=Pe):Pe=e[130];let gt;e[131]!==f?(gt=f("and older",{ns:"calendar"}),e[131]=f,e[132]=gt):gt=e[132];let Ze;e[133]!==De||e[134]!==Pe||e[135]!==gt?(Ze=o.jsxs(rt,{onClick:De,children:[Pe,gt]}),e[133]=De,e[134]=Pe,e[135]=gt,e[136]=Ze):Ze=e[136];let Re;e[137]!==V?(Re=()=>{V("days","7")},e[137]=V,e[138]=Re):Re=e[138];let Oe;e[139]!==f?(Oe=f("Days",{ns:"calendar"}),e[139]=f,e[140]=Oe):Oe=e[140];let et;e[141]!==Oe?(et=o.jsxs(re,{className:"font-semibold mr-1",children:["7 ",Oe]}),e[141]=Oe,e[142]=et):et=e[142];let Et;e[143]!==f?(Et=f("and older",{ns:"calendar"}),e[143]=f,e[144]=Et):Et=e[144];let bt;e[145]!==Re||e[146]!==et||e[147]!==Et?(bt=o.jsxs(rt,{onClick:Re,children:[et,Et]}),e[145]=Re,e[146]=et,e[147]=Et,e[148]=bt):bt=e[148];let _t;e[149]!==Pt||e[150]!==Se||e[151]!==Ze||e[152]!==bt?(_t=o.jsxs(Ks,{children:[Pt,Se,Ze,bt]}),e[149]=Pt,e[150]=Se,e[151]=Ze,e[152]=bt,e[153]=_t):_t=e[153];let Mt;e[154]!==Ut||e[155]!==_t?(Mt=o.jsxs(sa,{children:[Ut,_t]}),e[154]=Ut,e[155]=_t,e[156]=Mt):Mt=e[156];let an;e[157]!==f?(an=f("Weeks",{ns:"calendar"}),e[157]=f,e[158]=an):an=e[158];let dn;e[159]!==an?(dn=o.jsx(qs,{children:o.jsx(re,{children:an})}),e[159]=an,e[160]=dn):dn=e[160];let fn;e[161]!==V?(fn=()=>{V("weeks","1")},e[161]=V,e[162]=fn):fn=e[162];let mn;e[163]!==f?(mn=f("Week",{ns:"calendar"}),e[163]=f,e[164]=mn):mn=e[164];let hn;e[165]!==mn?(hn=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",mn]}),e[165]=mn,e[166]=hn):hn=e[166];let nn;e[167]!==f?(nn=f("and older",{ns:"calendar"}),e[167]=f,e[168]=nn):nn=e[168];let on;e[169]!==fn||e[170]!==hn||e[171]!==nn?(on=o.jsxs(rt,{onClick:fn,children:[hn,nn]}),e[169]=fn,e[170]=hn,e[171]=nn,e[172]=on):on=e[172];let Sn;e[173]!==V?(Sn=()=>{V("weeks","2")},e[173]=V,e[174]=Sn):Sn=e[174];let pn;e[175]!==f?(pn=f("Weeks",{ns:"calendar"}),e[175]=f,e[176]=pn):pn=e[176];let rn;e[177]!==pn?(rn=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",pn]}),e[177]=pn,e[178]=rn):rn=e[178];let ct;e[179]!==f?(ct=f("and older",{ns:"calendar"}),e[179]=f,e[180]=ct):ct=e[180];let xe;e[181]!==Sn||e[182]!==rn||e[183]!==ct?(xe=o.jsxs(rt,{onClick:Sn,children:[rn,ct]}),e[181]=Sn,e[182]=rn,e[183]=ct,e[184]=xe):xe=e[184];let Ye;e[185]!==V?(Ye=()=>{V("weeks","3")},e[185]=V,e[186]=Ye):Ye=e[186];let dt;e[187]!==f?(dt=f("Weeks",{ns:"calendar"}),e[187]=f,e[188]=dt):dt=e[188];let mt;e[189]!==dt?(mt=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",dt]}),e[189]=dt,e[190]=mt):mt=e[190];let xt;e[191]!==f?(xt=f("and older",{ns:"calendar"}),e[191]=f,e[192]=xt):xt=e[192];let It;e[193]!==Ye||e[194]!==mt||e[195]!==xt?(It=o.jsxs(rt,{onClick:Ye,children:[mt,xt]}),e[193]=Ye,e[194]=mt,e[195]=xt,e[196]=It):It=e[196];let At;e[197]!==V?(At=()=>{V("weeks","4")},e[197]=V,e[198]=At):At=e[198];let Ht;e[199]!==f?(Ht=f("Weeks",{ns:"calendar"}),e[199]=f,e[200]=Ht):Ht=e[200];let Bt;e[201]!==Ht?(Bt=o.jsxs(re,{className:"font-semibold mr-1",children:["4 ",Ht]}),e[201]=Ht,e[202]=Bt):Bt=e[202];let tt;e[203]!==f?(tt=f("and older",{ns:"calendar"}),e[203]=f,e[204]=tt):tt=e[204];let Kt;e[205]!==At||e[206]!==Bt||e[207]!==tt?(Kt=o.jsxs(rt,{onClick:At,children:[Bt,tt]}),e[205]=At,e[206]=Bt,e[207]=tt,e[208]=Kt):Kt=e[208];let Zt;e[209]!==on||e[210]!==xe||e[211]!==It||e[212]!==Kt?(Zt=o.jsxs(Ks,{children:[on,xe,It,Kt]}),e[209]=on,e[210]=xe,e[211]=It,e[212]=Kt,e[213]=Zt):Zt=e[213];let vn;e[214]!==dn||e[215]!==Zt?(vn=o.jsxs(sa,{children:[dn,Zt]}),e[214]=dn,e[215]=Zt,e[216]=vn):vn=e[216];let oe;e[217]!==f?(oe=f("Months",{ns:"calendar"}),e[217]=f,e[218]=oe):oe=e[218];let fe;e[219]!==oe?(fe=o.jsx(qs,{children:o.jsx(re,{children:oe})}),e[219]=oe,e[220]=fe):fe=e[220];let Xe;e[221]!==V?(Xe=()=>{V("months","1")},e[221]=V,e[222]=Xe):Xe=e[222];let Me;e[223]!==f?(Me=f("Month",{ns:"calendar"}),e[223]=f,e[224]=Me):Me=e[224];let _e;e[225]!==Me?(_e=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",Me]}),e[225]=Me,e[226]=_e):_e=e[226];let He;e[227]!==f?(He=f("and older",{ns:"calendar"}),e[227]=f,e[228]=He):He=e[228];let Ct;e[229]!==Xe||e[230]!==_e||e[231]!==He?(Ct=o.jsxs(rt,{onClick:Xe,children:[_e,He]}),e[229]=Xe,e[230]=_e,e[231]=He,e[232]=Ct):Ct=e[232];let cn;e[233]!==V?(cn=()=>{V("months","2")},e[233]=V,e[234]=cn):cn=e[234];let zn;e[235]!==f?(zn=f("Months",{ns:"calendar"}),e[235]=f,e[236]=zn):zn=e[236];let Mn;e[237]!==zn?(Mn=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",zn]}),e[237]=zn,e[238]=Mn):Mn=e[238];let Gr;e[239]!==f?(Gr=f("and older",{ns:"calendar"}),e[239]=f,e[240]=Gr):Gr=e[240];let yn;e[241]!==cn||e[242]!==Mn||e[243]!==Gr?(yn=o.jsxs(rt,{onClick:cn,children:[Mn,Gr]}),e[241]=cn,e[242]=Mn,e[243]=Gr,e[244]=yn):yn=e[244];let Yr;e[245]!==V?(Yr=()=>{V("months","3")},e[245]=V,e[246]=Yr):Yr=e[246];let Ai;e[247]!==f?(Ai=f("Months",{ns:"calendar"}),e[247]=f,e[248]=Ai):Ai=e[248];let Po;e[249]!==Ai?(Po=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Ai]}),e[249]=Ai,e[250]=Po):Po=e[250];let ms;e[251]!==f?(ms=f("and older",{ns:"calendar"}),e[251]=f,e[252]=ms):ms=e[252];let ac;e[253]!==Yr||e[254]!==Po||e[255]!==ms?(ac=o.jsxs(rt,{onClick:Yr,children:[Po,ms]}),e[253]=Yr,e[254]=Po,e[255]=ms,e[256]=ac):ac=e[256];let oc;e[257]!==V?(oc=()=>{V("months","6")},e[257]=V,e[258]=oc):oc=e[258];let ti;e[259]!==f?(ti=f("Months",{ns:"calendar"}),e[259]=f,e[260]=ti):ti=e[260];let kl;e[261]!==ti?(kl=o.jsxs(re,{className:"font-semibold mr-1",children:["6 ",ti]}),e[261]=ti,e[262]=kl):kl=e[262];let ic;e[263]!==f?(ic=f("and older",{ns:"calendar"}),e[263]=f,e[264]=ic):ic=e[264];let Cl;e[265]!==oc||e[266]!==kl||e[267]!==ic?(Cl=o.jsxs(rt,{onClick:oc,children:[kl,ic]}),e[265]=oc,e[266]=kl,e[267]=ic,e[268]=Cl):Cl=e[268];let lc;e[269]!==Ct||e[270]!==yn||e[271]!==ac||e[272]!==Cl?(lc=o.jsxs(Ks,{children:[Ct,yn,ac,Cl]}),e[269]=Ct,e[270]=yn,e[271]=ac,e[272]=Cl,e[273]=lc):lc=e[273];let cc;e[274]!==fe||e[275]!==lc?(cc=o.jsxs(sa,{children:[fe,lc]}),e[274]=fe,e[275]=lc,e[276]=cc):cc=e[276];let uc;e[277]!==f?(uc=f("Years",{ns:"calendar"}),e[277]=f,e[278]=uc):uc=e[278];let dc;e[279]!==uc?(dc=o.jsx(qs,{children:o.jsx(re,{children:uc})}),e[279]=uc,e[280]=dc):dc=e[280];let gu;e[281]!==V?(gu=()=>{V("year","1")},e[281]=V,e[282]=gu):gu=e[282];let vu;e[283]!==f?(vu=f("Year",{ns:"calendar"}),e[283]=f,e[284]=vu):vu=e[284];let fc;e[285]!==vu?(fc=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",vu]}),e[285]=vu,e[286]=fc):fc=e[286];let da;e[287]!==f?(da=f("and older",{ns:"calendar"}),e[287]=f,e[288]=da):da=e[288];let xu;e[289]!==gu||e[290]!==fc||e[291]!==da?(xu=o.jsxs(rt,{onClick:gu,children:[fc,da]}),e[289]=gu,e[290]=fc,e[291]=da,e[292]=xu):xu=e[292];let yu;e[293]!==V?(yu=()=>{V("year","2")},e[293]=V,e[294]=yu):yu=e[294];let Li;e[295]!==f?(Li=f("Years",{ns:"calendar"}),e[295]=f,e[296]=Li):Li=e[296];let ni;e[297]!==Li?(ni=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",Li]}),e[297]=Li,e[298]=ni):ni=e[298];let bu;e[299]!==f?(bu=f("and older",{ns:"calendar"}),e[299]=f,e[300]=bu):bu=e[300];let wu;e[301]!==yu||e[302]!==ni||e[303]!==bu?(wu=o.jsxs(rt,{onClick:yu,children:[ni,bu]}),e[301]=yu,e[302]=ni,e[303]=bu,e[304]=wu):wu=e[304];let ku;e[305]!==V?(ku=()=>{V("year","3")},e[305]=V,e[306]=ku):ku=e[306];let Cu;e[307]!==f?(Cu=f("Years",{ns:"calendar"}),e[307]=f,e[308]=Cu):Cu=e[308];let Sl;e[309]!==Cu?(Sl=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Cu]}),e[309]=Cu,e[310]=Sl):Sl=e[310];let hc;e[311]!==f?(hc=f("and older",{ns:"calendar"}),e[311]=f,e[312]=hc):hc=e[312];let Su;e[313]!==ku||e[314]!==Sl||e[315]!==hc?(Su=o.jsxs(rt,{onClick:ku,children:[Sl,hc]}),e[313]=ku,e[314]=Sl,e[315]=hc,e[316]=Su):Su=e[316];let pc;e[317]!==xu||e[318]!==wu||e[319]!==Su?(pc=o.jsxs(Ks,{children:[xu,wu,Su]}),e[317]=xu,e[318]=wu,e[319]=Su,e[320]=pc):pc=e[320];let mc;e[321]!==dc||e[322]!==pc?(mc=o.jsxs(sa,{children:[dc,pc]}),e[321]=dc,e[322]=pc,e[323]=mc):mc=e[323];let gc;e[324]===Symbol.for("react.memo_cache_sentinel")?(gc=o.jsx(kn,{}),e[324]=gc):gc=e[324];let Ri;e[325]!==V?(Ri=()=>{V("days","0")},e[325]=V,e[326]=Ri):Ri=e[326];let jl;e[327]!==f?(jl=f("Clear All History",{ns:"history"}),e[327]=f,e[328]=jl):jl=e[328];let vc;e[329]!==jl?(vc=o.jsx(re,{className:"font-semibold",children:jl}),e[329]=jl,e[330]=vc):vc=e[330];let xc;e[331]!==Ri||e[332]!==vc?(xc=o.jsx(rt,{onClick:Ri,children:vc}),e[331]=Ri,e[332]=vc,e[333]=xc):xc=e[333];let yc;e[334]===Symbol.for("react.memo_cache_sentinel")?(yc=o.jsx(kn,{}),e[334]=yc):yc=e[334];let ju;e[335]!==C?(ju=()=>{C("/app-settings/history",{replace:!0})},e[335]=C,e[336]=ju):ju=e[336];let of;e[337]===Symbol.for("react.memo_cache_sentinel")?(of=o.jsx(rE,{className:"mr-2 h-4 w-4"}),e[337]=of):of=e[337];let Rs;e[338]!==f?(Rs=f("Auto-Clear Settings",{ns:"history"}),e[338]=f,e[339]=Rs):Rs=e[339];let Eu;e[340]!==Rs?(Eu=o.jsxs(re,{children:[Rs," ..."]}),e[340]=Rs,e[341]=Eu):Eu=e[341];let Nu;e[342]!==ju||e[343]!==Eu?(Nu=o.jsxs(rt,{onClick:ju,children:[of,Eu]}),e[342]=ju,e[343]=Eu,e[344]=Nu):Nu=e[344];let El;e[345]!==Mt||e[346]!==vn||e[347]!==cc||e[348]!==mc||e[349]!==xc||e[350]!==Nu?(El=o.jsxs(Ks,{children:[Mt,vn,cc,mc,gc,xc,yc,Nu]}),e[345]=Mt,e[346]=vn,e[347]=cc,e[348]=mc,e[349]=xc,e[350]=Nu,e[351]=El):El=e[351];let bc;e[352]!==Qe||e[353]!==El?(bc=o.jsxs(sa,{children:[Qe,El]}),e[352]=Qe,e[353]=El,e[354]=bc):bc=e[354];let Ta;e[355]!==q||e[356]!==se||e[357]!==Ee||e[358]!==ht||e[359]!==bc?(Ta=o.jsx(Wn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:o.jsxs(jH,{children:[q,se,de,Ee,We,ht,bc]})}),e[355]=q,e[356]=se,e[357]=Ee,e[358]=ht,e[359]=bc,e[360]=Ta):Ta=e[360];let _u;return e[361]!==F||e[362]!==Ta?(_u=o.jsxs(Kn,{children:[F,Ta]}),e[361]=F,e[362]=Ta,e[363]=_u):_u=e[363],_u},y4={STARRED:"starred",PINNED:"pinned",TEXT:"text",LINK:"link",IMAGE:"image",VIDEO:"video",EMOJI:"emoji",SECRET:"secret",CODE:"code"},w6e=t=>{const e=Te(42),{historyFilters:n,setHistoryFilters:r,codeFilters:s,avaliableCodeLanguages:a,setCodeFilters:i,children:l}=t,{t:c}=Gt();let d;e[0]!==r||e[1]!==n?(d=(A,z)=>{if(z){r([A]);return}n.includes(A)?r(n.filter(Y=>Y!==A)):r([...n,A])},e[0]=r,e[1]=n,e[2]=d):d=e[2];const p=d;let f;e[3]!==i||e[4]!==s?(f=(A,z)=>{if(z){i([A]);return}s.includes(A)?i(s.filter(Y=>Y!==A)):i([...s,A])},e[3]=i,e[4]=s,e[5]=f):f=e[5];const m=f;let b;e[6]!==n||e[7]!==i?(b=()=>{n.includes(y4.CODE)||i([])},e[6]=n,e[7]=i,e[8]=b):b=e[8];let C;e[9]!==n?(C=[n],e[9]=n,e[10]=C):C=e[10],v.useEffect(b,C);const{isSwapPanels:g}=Tt(Ls);let w;e[11]!==l?(w=o.jsx(Gn,{asChild:!0,children:l}),e[11]=l,e[12]=w):w=e[12];const x=!n.length;let S;e[13]!==r?(S=A=>{A.preventDefault(),A.stopPropagation(),r([])},e[13]=r,e[14]=S):S=e[14];let E;e[15]!==n.length||e[16]!==c?(E=n.length?o.jsxs(ve,{className:"justify-between items-center w-full",children:[o.jsx(ne,{className:"w-6 h-4"}),o.jsx(re,{children:c("Filters:::Clear Filters",{ns:"history"})}),o.jsx(In,{className:"w-6 h-4"})]}):o.jsx(re,{children:c("Filters:::Select Filters",{ns:"history"})}),e[15]=n.length,e[16]=c,e[17]=E):E=e[17];let N;e[18]!==x||e[19]!==S||e[20]!==E?(N=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:x,onClick:S,children:E}),e[18]=x,e[19]=S,e[20]=E,e[21]=N):N=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(kn,{}),e[22]=_):_=e[22];let P;e[23]!==p||e[24]!==c||e[25]!==n?(P=Object.values(y4).map((A,z)=>o.jsxs(ne,{children:[z===2&&o.jsx(kn,{},"separator"),o.jsxs(rt,{onClick:Y=>{Y.preventDefault(),p(A)},children:[o.jsx(R6,{label:c("Filters:::".concat(k6e(A)),{ns:"history"}),checked:n.includes(A)}),o.jsx(Zl,{children:o.jsx(ne,{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),p(A,!0)},className:"cursor-pointer hover:underline",children:o.jsx(po,{keys:"only"})})})]})]},A)),e[23]=p,e[24]=c,e[25]=n,e[26]=P):P=e[26];let I;e[27]!==n||e[28]!==c||e[29]!==s||e[30]!==g||e[31]!==i||e[32]!==m||e[33]!==a?(I=n.includes(y4.CODE)&&o.jsxs(sa,{children:[o.jsxs(qs,{noRightIcon:g,disabled:!1,children:[o.jsx(Oz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("Filters:::Language Filters",{ns:"history"})}),s.length>0&&o.jsx(St,{className:"ml-auto py-0",children:s.length})]}),o.jsxs(Ks,{className:"w-48",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!s.length,onClick:A=>{A.preventDefault(),A.stopPropagation(),i([])},children:s.length?o.jsxs(ve,{className:"justify-between items-center w-full",children:[o.jsx(ne,{className:"w-6 h-4"}),o.jsx(re,{children:c("Filters:::Clear Filters",{ns:"history"})}),o.jsx(In,{className:"w-6 h-4"})]}):o.jsx(re,{children:c("Filters:::Language Filters",{ns:"history"})})}),o.jsx(kn,{}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"190px"},autoHide:!1,children:a.map(A=>o.jsxs(rt,{onClick:z=>{z.preventDefault(),m(A)},children:[o.jsx(R6,{label:A,checked:s.includes(A)}),o.jsx(Zl,{children:o.jsx(ne,{onClick:z=>{z.preventDefault(),z.stopPropagation(),m(A,!0)},className:"cursor-pointer hover:underline",children:o.jsx(po,{keys:"only"})})})]},A))})]})]}),e[27]=n,e[28]=c,e[29]=s,e[30]=g,e[31]=i,e[32]=m,e[33]=a,e[34]=I):I=e[34];let T;e[35]!==N||e[36]!==P||e[37]!==I?(T=o.jsxs(Wn,{className:"w-52",sideOffset:12,align:"center",children:[N,_,P,I]}),e[35]=N,e[36]=P,e[37]=I,e[38]=T):T=e[38];let L;return e[39]!==w||e[40]!==T?(L=o.jsxs(Kn,{children:[w,T]}),e[39]=w,e[40]=T,e[41]=L):L=e[41],L};function k6e(t){return t.charAt(0).toUpperCase()+t.slice(1)}function HV({clipId:t,isDark:e,isHistoryDragActive:n}){var s,a,i,l;var r=sn(1);try{o7();const{t:c}=Gt(),{clipItems:d}=Tt(Ar),p=v.useMemo(()=>{if(Ws.value){const b=d.find(({itemId:C})=>C===t);if(b)return b;Ws.value=null}},[t,d]),[f,m]=v.useMemo(()=>{var b,C;return[(p==null?void 0:p.createdAt)&&Bd().format((b=p.createdAt)!=null?b:0,{round:"floor"}),(p==null?void 0:p.updatedAt)&&Bd().format((C=p.updatedAt)!=null?C:0,{round:"floor"})]},[p]);return p==null?null:o.jsx(o.Fragment,{children:o.jsxs(ne,{className:"max-w-full max-h-full ".concat(Ms.value===t&&!p.isCode&&!p.isImage?"min-w-[80%]":""),children:[o.jsxs(ne,{className:"flex justify-center text-gray-400 text-xs my-2 gap-1",children:[o.jsx(st,{text:"".concat(c("Created",{ns:"common"}),": ").concat(Mh((s=p.createdAt)!=null?s:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:f}),m!==f&&o.jsxs(st,{text:"".concat(c("Updated",{ns:"common"}),": ").concat(Mh((a=p.updatedAt)!=null?a:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:["(",m,")"]})]}),o.jsx(ne,{className:"text-gray-400 text-xs mb-1 mt-2",children:o.jsx(H7,{clip:ae(R({},p),{type:"clip",id:t,createdAt:(i=p.createdAt)!=null?i:0,tabId:(l=p.tabId)!=null?l:null}),boardColor:p.color,isDark:e,isClipNameEditing:ld.value===t,isClipDelete:pi.value===t,isClipEdit:Ms.value===t,isShowOrganizeLayoutValue:!1,isHistoryDragActive:n,isShowDetails:!0,isLargeView:!0,isSelected:!1})}),o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:o.jsxs(St,{variant:"outline",className:"bg-slate-100 px-2 pl-2.5 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{Ws.value=null},children:[c("Close",{ns:"common"}),o.jsx(In,{size:14,className:"ml-1"})]})})]})})}finally{r.f()}}v.memo(HV);const IA="trash",C6e=()=>ge(void 0,null,function*(){window.Prism=yt,yield Promise.all([ke(()=>import("./prism-json-xwnKirkR.js"),[]),ke(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),ke(()=>import("./prism-java-Bz0cy7o8.js"),[]),ke(()=>import("./prism-c-BI05wwL9.js"),[]),ke(()=>import("./prism-css-Cp0aSgQ4.js"),[]),ke(()=>import("./prism-csharp-aZJd74Dz.js"),[]),ke(()=>import("./prism-php-Y_bwvUTe.js"),[]),ke(()=>import("./prism-regex-DCddBNSB.js"),[]),ke(()=>import("./prism-ruby-pgU1Zfy6.js"),[]),ke(()=>import("./prism-shell-session-C8ifCaAv.js"),[]),ke(()=>import("./prism-sql-AgAyy5H_.js"),[]),ke(()=>import("./prism-uri-BQNPRq5q.js"),[]),ke(()=>import("./prism-yaml-Chm5ZdEN.js"),[]),ke(()=>import("./prism-markdown-4MKFcK2x.js"),[]),ke(()=>import("./prism-dart-MjriiaMt.js"),[]),ke(()=>import("./prism-path-CC2I6U-X.js"),[])]),yt.languages.shell=yt.languages["shell-session"]});function S6e(){var t=sn(1);try{let e=function(Me){return Sn.current[Me]||60},n=function(Me,_e){var He,Ct;(He=on.current)!=null&&He.resetAfterIndex&&((Ct=on.current)==null||Ct.resetAfterIndex(0)),Sn.current=ae(R({},Sn.current),{[Me]:_e})};const[r,s,a]=yke({}),[i,l,c,d]=bke({}),[p,f]=v.useState(null),{updateItemValueByHistoryId:m}=gge(),{pinnedClipboardHistoryByIds:b}=DW(),{unPinAllClipboardHistory:C}=q5e(),{movePinnedClipboardHistoryUpDown:g}=K5e(),[w,x]=v.useState([]),[S,E]=v.useState([]),N=v.useRef(null),[_,P]=v.useState(!1),I=v.useRef(null),[T,L]=v.useState(null),[A,z]=v.useState([]),[Y,O]=v.useState(null),[$,M]=v.useState(null),[W,V]=v.useState(null),[U,J]=v.useState(null),[H,F]=v.useState([]),[q,X]=v.useState([]),[te,ee]=v.useState([]),[G,Z]=v.useState(!1),[le,se]=v.useState(!1),{setIsScrolling:de,isShowHistoryPinned:ce,setIsShowHistoryPinned:ye,isSwapPanels:pe,panelSize:me,getDefaultPanelWidth:be,setPanelSize:Ee,setReturnRoute:We}=Tt(Ls),{isHistoryEnabled:qe,setIsHistoryEnabled:ot,isHistoryAutoUpdateOnCaputureEnabled:Ve,isAutoPreviewLinkCardsEnabled:Ge,historyDetectLanguagesEnabledList:ft,copyPasteSequencePinnedDelay:Ie,setCopyPasteSequencePinnedDelay:Ke,copyPasteSequenceIsReversOrder:ut,setCopyPasteSequenceIsReversOrder:$e,setIsHistoryAutoUpdateOnCaputureEnabled:ht}=Tt(Cr),{t:Fe}=Gt(),{themeDark:pt}=Tt(bo),{ref:Qe,height:Lt}=c4e(),Ut=it(!1),wt=it(!1),Xt=v.useMemo(()=>wt.value||Ut.value,[Ut.value,wt.value]),{pinnedClipboardHistory:$t}=W5e(),tn=pt(),{setHistoryListSimpleBar:Pt,scrollToTopHistoryList:Ue,updateClipboardHistory:Je,deleteClipboardHistoryItem:jt,deleteClipboardHistoryItems:we,generateLinkMetaData:Se,removeLinkMetaData:De}=Tt(_i),[nt,Pe]=v.useState(!1),gt=wl(),Ze=ua(),{isClipboardInfiniteHistoryLoading:Re,isClipboardHistoryFetchingNextPage:Oe,infiniteClipboardHistory:et,invalidateClipboardHistoryQuery:Et,fetchNextClipboardHistoryPage:bt}=IW(),{deleteClipboardHistoryByIds:_t}=U7(),{clipboardHistory:Mt,newClipboardHistoryCount:an,foundClipboardHistory:dn}=Tt(_i),[fn,mn]=v.useState(""),[hn,nn]=v.useState(""),on=v.useRef(null),Sn=v.useRef({}),pn=v.useRef(null),rn=jo(fn,300),ct=v.useMemo(()=>rn.length>1||w.length>0,[rn,w]),xe=v.useMemo(()=>Tn.value,[Tn.value]),Ye=v.useMemo(()=>te.some(Me=>$t.some(_e=>_e.historyId===Me)),[te,$t]),dt=v.useMemo(()=>i,[i]),mt=v.useMemo(()=>r,[r]),xt=ct?dn:Mt,{refetchFindClipboardHistory:It}=G5e({query:rn,filters:w,codeFilters:S}),At=v.useCallback(()=>{ct&&Ve&&It()},[ct,Ve]);v.useEffect(()=>{const Me=Xi("clipboard://clipboard-monitor/update",_e=>{_e.payload==="clipboard update"&&At()});return()=>{Me.then(_e=>{_e()})}},[At]),v.useEffect(()=>{ud.value=null,cl.value=null;const Me=()=>ge(this,null,function*(){yield C6e()});We(gt.pathname),ll.value=!1,Me(),Pe(!0)},[]),v.useEffect(()=>{r&&te.includes(r)&&ee(Me=>Me.filter(_e=>_e!==r)),i&&te.includes(i)&&ee(Me=>Me.filter(_e=>_e!==i))},[r,i]),v.useEffect(()=>{N&&Pt(N)},[N]),v.useEffect(()=>{$t.length===0&&(Ut.value=!1,wt.value=!1)},[$t]),v.useEffect(()=>{(rn.length>1||w.length>0||S.length>0)&&It()},[rn,w,S]),v.useEffect(()=>{var Me;!((Me=I.current)!=null&&Me.setDisableScroll)||!N.current||(T?(I.current.setDisableScroll(!0),N.current.style.overflow="hidden"):(I.current.setDisableScroll(!1),N.current.style.overflow="visible"))},[T]);const Ht=()=>ge(this,null,function*(){Oe||(yield bt({cancelRefetch:!1}))}),Bt=US(rm(hv,{activationConstraint:{tolerance:10,delay:300}}),rm(fv,{coordinateGetter:nj})),tt={keyframes({transform:Me}){return T&&(Y===T||W||U||$)?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Yo.Transform.toString(Me.initial)},{opacity:0,transform:Yo.Transform.toString(ae(R({},Me.final),{x:Me.final.x+5,y:Me.final.y+5}))}]},easing:"ease-out",duration:300,sideEffects({active:Me,dragOverlay:_e}){T&&(Y===T||W===T||$===T)?_e.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:rh.easing}):Me.node.animate([{opacity:0},{opacity:1}],{duration:rh.duration,easing:rh.easing})}},Kt=v.useCallback(Me=>{ee(_e=>_e.includes(Me)?_e.filter(Ct=>Ct!==Me):[..._e,Me])},[ee]),Zt=v.useCallback(Me=>{z(_e=>_e.includes(Me)?_e.filter(Ct=>Ct!==Me):[..._e,Me])},[z]),vn=v.useCallback((Me,_e)=>{F(He=>_e?[...He,Me]:He.filter(Ct=>Ct!==Me))},[F]),oe=v.useCallback((Me,_e)=>{X(He=>_e?[...He,Me]:He.filter(Ct=>Ct!==Me))},[X]),fe=v.useMemo(()=>{if($a.value){const Me=xt.find(_e=>_e.historyId===$a.value);if(Me)return Ws.value&&(Ws.value=null),Me;$a.value=null}},[$a.value,xt]),Xe=Me=>Me===Qu.value||Me===Y||!!Y&&!!T&&te.includes(Me)||_&&te.includes(Me);return o.jsx(Sk,{children:o.jsx(W8,{sensors:Bt,collisionDetection:z8,autoScroll:{layoutShiftCompensation:!1,acceleration:1},measuring:{droppable:{strategy:yh.Always}},onDragStart:({active:Me})=>{var _e;L(Me.id),se(Me.id&&((_e=Me.data.current)==null?void 0:_e.isPinned))},onDragOver:({active:Me,over:_e})=>{const He=_e==null?void 0:_e.data.current,Ct=(He==null?void 0:He.type)===Ys,cn=(He==null?void 0:He.type)==="clip::dropzone",zn=(_e==null?void 0:_e.id)==="history::pinnedzone";Me!=null&&Me.id&&zn&&!le?M(Me.id):zn||M(null),(_e==null?void 0:_e.id)===IA?O(Me.id):Ct&&(_e!=null&&_e.id)?V(_e==null?void 0:_e.id):cn&&(_e!=null&&_e.id)?J(_e==null?void 0:_e.id):(O(null),V(null),J(null))},onDragCancel:()=>(L(null),O(null),V(null),J(null),!0),onDragEnd:_e=>ge(this,[_e],function*({active:Me}){var Ct;const He=(Ct=Me==null?void 0:Me.data.current)==null?void 0:Ct.isPinned;if((Me==null?void 0:Me.id)===$)setTimeout(()=>ge(this,null,function*(){M(null),ee([]),L(null),!He&&(yield b({historyIds:te.length>0?Array.from(new Set([...te,Me.id])):[Me.id],isPinned:!0}))}),300);else if((Me==null?void 0:Me.id)===Y){const cn=He?GC(Me.id):Me.id;yield _t({historyIds:te.length>0?Array.from(new Set([...te,cn])):[cn]}),setTimeout(()=>{te.length>0?we(Array.from(new Set([...te,cn]))):Array.from(new Set([...te,cn])).forEach(zn=>{jt(zn)}),At(),M(null),O(null),V(null),J(null),ee([]),L(null)},600)}else if(Me!=null&&Me.id&&W){const cn=He?GC(Me.id):Me.id;Bl.value=W,t0.value=te.length>0?Array.from(new Set([...te,cn])):[cn],setTimeout(()=>{V(null),L(null),ee([])},400)}else if(Me!=null&&Me.id&&U){const cn=He?GC(Me.id):Me.id,zn=U.toString().replace("::dropzone",""),Mn=cn?xt.find(Gr=>Gr.historyId===cn):null;zn&&(Mn!=null&&Mn.historyId)&&(yield m({historyId:Mn.historyId,itemId:zn})),setTimeout(()=>{J(null),L(null)},400)}else Bl.value=null,setTimeout(()=>{M(null),V(null),O(null),L(null)},300)}),children:o.jsxs(aN,{minSize:260,maxSize:700,defaultSize:be(),swapPanes:pe,onResize:Ee,autoSaveId:"app-main-panel",children:[o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-6 pt-4 px-3 pr-3",children:o.jsx(D1,{disableWidth:!0,children:({height:Me})=>{var _e;return nt&&Me&&Me>0&&o.jsxs(ne,{className:"flex flex-col h-[calc(100vh-95px)] relative",id:"side-panel_tour",children:[o.jsx(ne,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-3",id:"history-find_tour",children:T&&$t.length===0?o.jsx(F6,{id:"history::pinnedzone",className:"w-full h-full",isActive:!!T,children:o.jsx(ne,{ref:$?null:Qe,className:"".concat($?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?"":"animate-in fade-in"," py-1 bg-orange-50 dark:bg-orange-800/40 mt-0 my-2 rounded-md relative w-full h-full"),children:T&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:o.jsx(ne,{className:"border-2 ".concat($?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:$?o.jsx(re,{className:"!text-orange-400 dark:text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Fe("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})})})}):o.jsxs(o.Fragment,{children:[o.jsx(Wd,{placeholder:"".concat(Fe("Find in history",{ns:"dashboard"}),"..."),autoFocus:fn.length>0,type:"search",onChange:He=>{mn(He.target.value)},value:fn,ref:pn,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"},"search-history"),o.jsx(w6e,{setHistoryFilters:x,historyFilters:w,avaliableCodeLanguages:ft,codeFilters:S,setCodeFilters:E,children:o.jsxs(je,{variant:"ghost",className:"relative cursor-pointer px-1 mr-2",children:[o.jsx(Aie,{size:20,className:"".concat(w.length?"text-blue-500 hover:text-blue-500/70":"text-slate-400 hover:text-slate-400/70"," ")}),w.length>0&&o.jsx(St,{className:"absolute right-[-10px] top-[-10px] bg-blue-500 hover:bg-blue-500",children:w.length})]})})]})}),ct?o.jsx(ne,{className:"cursor-pointer absolute top-[49px] animate-in fade-in fade-out flex justify-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Clear found results and filters",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{var He;mn(""),x([]),E([]),pn!=null&&pn.current&&pn.current.value&&(pn.current.value="",(He=pn==null?void 0:pn.current)==null||He.focus())},sideOffset:10,children:o.jsx(re,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:xt.length?o.jsxs(o.Fragment,{children:[xt.length<100?xt.length:"100+"," ",Fe("found",{ns:"common"})]}):o.jsx(o.Fragment,{children:Fe("Nothing found",{ns:"common"})})})})}):$t.length>0&&o.jsx(F6,{id:"history::pinnedzone",isActive:!!T&&!le,children:o.jsxs(ne,{onMouseEnter:()=>{Ut.value=!0},onMouseLeave:()=>{Ut.value=!1},onClick:()=>{Ut.value=!0},ref:$?null:Qe,className:"".concat($?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?ce?"":"min-h-[32px]":"animate-in fade-in"," ").concat(ce?"py-2":"py-1"," px-2 pb-0 bg-orange-200/70 dark:bg-orange-900/60 mt-0 my-2 rounded-md relative"),children:[T&&!le&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:o.jsx(ne,{className:"border-2 ".concat($?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:$?o.jsx(re,{className:"!text-orange-400 dark:!text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Fe("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})}),o.jsx(Nh,{defer:!0,style:{maxHeight:200},options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:tn?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:o.jsx(ne,{className:"flex flex-col gap-1 relative ".concat(T&&!le?"opacity-20":""),children:ce&&$t.sort((He,Ct)=>He.pinnedOrderNumber-Ct.pinnedOrderNumber).map((He,Ct)=>{const cn=He.historyId;return o.jsx(ne,{children:o.jsx(x4,{isPinnedTop:!0,isPinnedTopFirst:Ct===0,isDisabledPinnedMoveUp:Ct===0,isDisabledPinnedMoveDown:Ct===$t.length-1,onMovePinnedUpDown:zn=>{g(zn)},isLinkCardPreviewEnabled:Ge,isLargeView:cn===$a.value,largeViewItemId:$a.value,setLargeViewItemId:zn=>{$a.value=zn},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:cn===dt?l:void 0,isPasted:cn===dt,isCopied:cn===mt,isSaved:cn===p,setSavingItem:f,isDeleting:Xe(cn),isSelected:te.includes(cn),setBrokenImageItem:Zt,isBrokenImage:A.includes(cn),showTimeAgo:!1,isExpanded:H.includes(cn),isWrapText:q.includes(cn),searchTerm:ct?rn:"",showSelectHistoryItems:G,invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,setWrapText:oe,isDark:tn,setRowHeight:n,clipboard:He,removeLinkMetaData:De,generateLinkMetaData:Se})},cn)})})}),o.jsxs(ve,{className:"justify-between",children:[ce?o.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(T&&!le||!Xt?"opacity-0":""),children:[o.jsx(mr,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:xe?Fe("Sequence Paste",{ns:"common"}):Fe("Sequence Copy",{ns:"common"}),children:xe?o.jsx(Ds,{size:14,onClick:()=>{d($t.map(({historyId:He})=>He))}}):o.jsx(ba,{size:14,onClick:()=>{a($t.map(({historyId:He})=>He))}})}),o.jsxs(Kn,{onOpenChange:He=>{wt.value=He},children:[o.jsx(Gn,{asChild:!0,children:o.jsx(CE,{variant:"outline",title:Fe("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:o.jsxs(re,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[Ie,"s"]})})}),o.jsxs(Wn,{className:"w-44",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{size:"xs",children:Fe("Sequence Copy Paste",{ns:"common"})})}),o.jsx(kn,{}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[Fe("Delay Next",{ns:"common"}),"..."]}),o.jsxs(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[Ie,"s"]})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:Ie===1,onSelect:()=>{Ke(1)},children:o.jsxs(re,{size:"xs",children:["1 ",Fe("second",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===2,onSelect:()=>{Ke(2)},children:o.jsxs(re,{size:"xs",children:["2 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===3,onSelect:()=>{Ke(3)},children:o.jsxs(re,{size:"xs",children:["3 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===4,onSelect:()=>{Ke(4)},children:o.jsxs(re,{size:"xs",children:["4 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===5,onSelect:()=>{Ke(5)},children:o.jsxs(re,{size:"xs",children:["5 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===10,onSelect:()=>{Ke(10)},children:o.jsxs(re,{size:"xs",children:["10 ",Fe("seconds",{ns:"common"})]})})]})]}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[Fe("Reverse Order",{ns:"common"}),"..."]}),o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:ut?Fe("Yes",{ns:"common"}):Fe("No",{ns:"common"})})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:!ut,onSelect:()=>{$e(!1)},children:o.jsx(re,{size:"xs",children:Fe("No",{ns:"common"})})}),o.jsx(Cn,{checked:ut,onSelect:()=>{$e(!0)},children:o.jsx(re,{size:"xs",children:Fe("Yes",{ns:"common"})})})]})]})]})]})]}):o.jsx(ne,{}),!T&&o.jsxs(mr,{className:"hover:underline ".concat(ce?"h-[30px]":"h-[26px]"," group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent ").concat(ce?"":"pb-1"),title:ce?Fe("Hide pinned history",{ns:"history"}):Fe("View pinned history",{ns:"history"}),onClick:()=>{ye(!ce)},children:[o.jsxs(re,{className:"!font-medium text-xs !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 mr-1",children:[$t.length," ",Fe("Pinned",{ns:"common",count:$t.length})]}),ce?o.jsx(v5,{size:13,className:"group-hover:opacity-100 opacity-0"}):o.jsx(Wse,{size:13,className:"group-hover:opacity-100 opacity-0"})]}),ce?o.jsxs(ne,{className:"animate-in fade-in duration-300 ".concat(T&&!le||!Xt?"opacity-0":""),children:[o.jsx(mr,{title:Ye?Fe("Deselect pinned",{ns:"common"}):Fe("Select pinned",{ns:"common"}),className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Ye?o.jsx(x5,{size:15,onClick:()=>{const He=te.filter(Ct=>$t.some(cn=>cn.historyId===Ct));ee(te.filter(Ct=>!He.includes(Ct)))}}):o.jsx(iE,{size:17,onClick:()=>{ee(te.concat($t.map(He=>He.historyId)))}})})}),o.jsx(rB,{onOpen:He=>{wt.value=He},onCancel:()=>{setTimeout(()=>{wt.value=!1,Ut.value=!1},300)},onConfirm:()=>ge(this,null,function*(){yield C({})}),buttonClassName:"group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]}):o.jsx(ne,{})]})]})}),xt.length>0||ct?o.jsx(or,{style:{height:Me-(ct?115:$t.length===0?85:Lt?Lt+103:85)},ref:He=>{I.current=He},onScroll:(He,Ct)=>{de(Ct)},className:"animate-in fade-in mr-[-10px] ".concat(ct?"mt-[20px]":""),children:({scrollableNodeRef:He,contentNodeRef:Ct})=>o.jsxs("div",{className:"pr-[10px] relative h-full",id:"history-list_tour",children:[hn&&o.jsx(ne,{className:"".concat(an>0?"top-9":"top-1"," absolute z-100 animate-in fade-in fade-out duration-300 flex justify-center w-full ml-[-5px] pointer-events-none"),children:o.jsx(st,{text:Fe("Scroll to Top",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"bottom",asChild:!0,sideOffset:10,children:o.jsx(mr,{className:"pointer-events-auto rounded-full bg-slate-300 dark:bg-slate-600 hover:bg-slate-200 hover:dark:bg-slate-700",onClick:()=>{Ue(!0)},children:o.jsx(re,{className:"text-mute text-xs text-center px-3",children:hn})})})}),an>0&&!ct&&o.jsx(ne,{className:"absolute top-2 z-100 ml-[-5px] cursor-pointer animate-in fade-in fade-out duration-300 flex justify-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Update history list",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:3,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{Je()},children:o.jsxs(re,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:["+ ",an," ",Fe("new clips",{ns:"dashboard"})]})})})}),!qe&&!ct&&o.jsxs(ne,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:[o.jsx(st,{text:Fe("Turn on history capture",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:6,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{ot(!0)},children:o.jsx(re,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Fe("History capture is off",{ns:"dashboard"})})})}),xt.length>0&&o.jsxs(re,{className:"text-xs text-center bg-slate-100 dark:bg-slate-700 rounded-full px-3 mt-2",children:[Fe("Last update",{ns:"dashboard"}),":"," ",xt[0].timeAgo]})]}),qe&&!ct&&!Ve&&o.jsx(ne,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Turn On auto update",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:10,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{ht(!0)},children:o.jsx(re,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Fe("Auto update is Off",{ns:"dashboard"})})})})}),o.jsx(i4e,{isItemLoaded:cn=>cno.jsx(t4e,{overscanCount:10,height:Me-(ct?60:85),itemCount:xt.length,width:"100%",itemSize:e,itemKey:Mn=>{var Gr;return(Gr=xt[Mn].historyId)!=null?Gr:"id-${index}"},onItemsRendered:Mn=>{if(Mn.visibleStartIndex>10){const Gr=xt[Mn.visibleStartIndex];Gr!=null&&Gr.timeAgo?hn!==Gr.timeAgo&&nn(Gr.timeAgo):nn("")}else hn&&nn("");!rn&&cn(Mn)},ref:ml(on,zn),outerRef:ml(N,He),innerRef:Ct,children:({index:Mn,style:Gr})=>{const yn=xt[Mn],{historyId:Yr,showTimeAgo:Ai,timeAgo:Po}=yn;return o.jsx(x4,{isLargeView:Yr===$a.value,largeViewItemId:$a.value,isLinkCardPreviewEnabled:Ge,setLargeViewItemId:ms=>{$a.value=ms},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:Yr===dt?l:void 0,isPasted:Yr===dt,isCopied:Yr===mt,isSaved:Yr===p,setSavingItem:f,isDeleting:Xe(Yr),isOverPinned:Yr===$||!!$&&!!T&&te.includes(Yr),isSelected:te.includes(Yr),setBrokenImageItem:Zt,isBrokenImage:A.includes(Yr),showTimeAgo:Ai,timeAgo:Po,isExpanded:H.includes(Yr),isWrapText:q.includes(Yr),searchTerm:ct?rn:"",showSelectHistoryItems:G,invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,setWrapText:oe,isDark:tn,setRowHeight:n,clipboard:yn,removeLinkMetaData:De,generateLinkMetaData:Se,index:Mn,style:Gr},Yr)}})})]})}):!Re&&((_e=et==null?void 0:et.pages)==null?void 0:_e.flat().length)===0&&o.jsx(ve,{style:{height:Me-85},className:"flex items-center flex-col gap-3 justify-center",children:o.jsx(re,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:Fe("No Clipboard History",{ns:"dashboard"})})}),o.jsx(du,{children:o.jsx(C$,{dropAnimation:tt,children:T?o.jsx(x4,{index:1,isWrapText:q.includes(T),isExpanded:H.includes(T),style:{zIndex:999},showSelectHistoryItems:G,setSelectHistoryItem:Kt,isDark:tn,isBrokenImage:A.includes(T),setBrokenImageItem:Zt,isDragPreview:!0,isDeleting:T===Y||!!Y&&te.includes(T),selectedItemsCount:te.length&&te.includes(T)?te.length:te.length+1,clipboard:xt.find(He=>le?He.historyId===T.toString().split("::pinned")[0]:He.historyId===T)}):null})}),o.jsx(ne,{className:"flex-1 mt-2"}),o.jsxs(pl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:gt.pathname,onValueChange:He=>{Ze(He,{replace:!0})},children:[!T&&o.jsx(b6e,{isDeleting:_,isDark:tn,setIsDeleting:P,setSelectHistoryItem:Kt,onDelete:(He=!1)=>{var Ct;He&&(mn(""),x([]),E([]),pn!=null&&pn.current&&pn.current.value&&(pn.current.value="",(Ct=pn==null?void 0:pn.current)==null||Ct.focus())),At()},showSelectHistoryItems:G,setSelectedHistoryItems:ee,setShowSelectHistoryItems:Z,selectedHistoryItems:te}),o.jsx(Xo,{className:"self-center",id:"tabs-history_tour",children:T?o.jsx(jr,{value:"",className:"p-0.5",children:o.jsx(m6e,{id:IA})}):o.jsxs(o.Fragment,{children:[o.jsx(jr,{value:"/history",className:"min-w-[90px]",children:meMe&&Me>0&&o.jsx(ne,{className:"p-2 pt-0 py-4 pr-0 pb-0 m-0 select-none",children:o.jsx(or,{style:{height:Me-20},onScroll:(_e,He)=>{de(He)},children:o.jsx(ve,{style:{height:Me-20},className:"flex items-start flex-col justify-start p-0",children:o.jsx(_5e,{historyDragActive:!!T,isDark:tn,dragOverBoardId:W})})})})})}):o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:o.jsx(D1,{disableWidth:!0,children:({height:Me})=>Me&&Me>0&&o.jsxs(ne,{className:"p-4 py-3 select-auto relative pt-5 mt-3",children:[o.jsx(je,{variant:"ghost",className:"z-10 px-2 absolute top-[-2px] right-[10px] text-slate-400 cursor-pointer hover:bg-slate-100 dark:text-slate-500 hover:dark:bg-slate-700",onClick:()=>{Ws.value=null,$a.value=null},children:o.jsx(In,{size:22})}),o.jsx(or,{style:{height:Me-40},autoHide:!1,onScroll:(_e,He)=>{de(He)},children:o.jsxs(ve,{style:{height:Me-85},children:[Ws.value&&o.jsx(HV,{clipId:Ws.value,isHistoryDragActive:!!T,isDark:tn}),fe&&o.jsx(x6e,{setLargeViewItemId:_e=>{$a.value=_e},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:fe.historyId===dt?l:null,isPasted:fe.historyId===dt,isCopied:fe.historyId===mt,isSaved:fe.historyId===p,setSavingItem:f,isDeleting:fe.historyId===Y||!!Y&&!!T&&te.includes(fe.historyId)||_&&te.includes(fe.historyId),isSelected:te.includes(fe.historyId),setBrokenImageItem:Zt,isBrokenImage:A.includes(fe.historyId),showTimeAgo:fe.showTimeAgo,timeAgo:fe.timeAgo,searchTerm:ct?rn:"",invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,isDark:tn,clipboard:fe,removeLinkMetaData:De,generateLinkMetaData:Se})]})})]})})})})]},pe?"swap":"no-swap")})})}finally{t.f()}}class BV{constructor(e){kt(this,"root");this.root=j6e(e)}get data(){var e,n;return(n=(e=this.root.children)==null?void 0:e.map(r=>r.data))!=null?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const s=this.find(e,r);if(s)return s}return null}return null}}function j6e(t){const e=new UV({id:"ROOT"},null);return e.children=t.map(n=>lN(n,e)),e}function lN(t,e){const n=new UV(t,e);return t.children&&(n.children=t.children.map(r=>lN(r,n))),n}class UV{constructor(e,n){kt(this,"id");kt(this,"children");this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var s,a;const r=lN(e,this);this.children=(s=this.children)!=null?s:[],this.children.splice(n,0,r),this.data.children=(a=this.data.children)!=null?a:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)==null||n.splice(e,1),(r=this.data.children)==null||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(R(R({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let E6e=0;function N6e(t){const[e,n]=v.useState(t),r=v.useMemo(()=>new BV(e),[e]);return[e,{onMove:d=>{for(const p of d.dragIds)r.move({id:p,parentId:d.parentId,index:d.index});n(r.data)},onRename:({name:d,id:p})=>{r.update({id:p,changes:{name:d}}),n(r.data)},onCreate:({parentId:d,index:p,type:f})=>{const m={id:"simple-tree-id-".concat(E6e++),name:""};return f==="internal"&&(m.children=[]),r.create({parentId:d,index:p,data:m}),n(r.data),m},onDelete:d=>{d.ids.forEach(p=>r.drop({id:p})),n(r.data)}}]}function _6e(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error("React Arborist Tree => You passed the initialData prop along with a data handler.\nUse the data prop if you want to provide your own handlers.");if(t.initialData){const[e,n]=N6e(t.initialData);return ae(R(R({},t),n),{data:e})}else return t}const WV=v.createContext({dragDropManager:void 0});function za(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var AA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),b4=function(){return Math.random().toString(36).substring(7).split("").join(".")},$w={INIT:"@@redux/INIT"+b4(),REPLACE:"@@redux/REPLACE"+b4(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b4()}};function T6e(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function cN(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(za(0));if(typeof e=="function"&&typeof n=="undefined"&&(n=e,e=void 0),typeof n!="undefined"){if(typeof n!="function")throw new Error(za(1));return n(cN)(t,e)}if(typeof t!="function")throw new Error(za(2));var s=t,a=e,i=[],l=i,c=!1;function d(){l===i&&(l=i.slice())}function p(){if(c)throw new Error(za(3));return a}function f(g){if(typeof g!="function")throw new Error(za(4));if(c)throw new Error(za(5));var w=!0;return d(),l.push(g),function(){if(w){if(c)throw new Error(za(6));w=!1,d();var S=l.indexOf(g);l.splice(S,1),i=null}}}function m(g){if(!T6e(g))throw new Error(za(7));if(typeof g.type=="undefined")throw new Error(za(8));if(c)throw new Error(za(9));try{c=!0,a=s(a,g)}finally{c=!1}for(var w=i=l,x=0;xr&&r[s]?r[s]:n||null,t)}function I6e(t,e){return t.filter(n=>n!==e)}function VV(t){return typeof t=="object"}function A6e(t,e){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};t.forEach(r),e.forEach(r);const s=[];return n.forEach((a,i)=>{a===1&&s.push(i)}),s}function L6e(t,e){return t.filter(n=>e.indexOf(n)>-1)}const uN="dnd-core/INIT_COORDS",Tk="dnd-core/BEGIN_DRAG",dN="dnd-core/PUBLISH_DRAG_SOURCE",Pk="dnd-core/HOVER",Mk="dnd-core/DROP",Dk="dnd-core/END_DRAG";function RA(t,e){return{type:uN,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const R6e={type:uN,payload:{clientOffset:null,sourceClientOffset:null}};function O6e(t){return function(n=[],r={publishSource:!0}){const{publishSource:s=!0,clientOffset:a,getSourceClientOffset:i}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(RA(a)),$6e(n,l,c);const d=H6e(n,l);if(d==null){t.dispatch(R6e);return}let p=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");z6e(i),p=i(d)}t.dispatch(RA(a,p));const m=c.getSource(d).beginDrag(l,d);if(m==null)return;F6e(m),c.pinSource(d);const b=c.getSourceType(d);return{type:Tk,payload:{itemType:b,item:m,sourceId:d,clientOffset:a||null,sourceClientOffset:p||null,isSourcePublic:!!s}}}}function $6e(t,e,n){$n(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){$n(n.getSource(r),"Expected sourceIds to be registered.")})}function z6e(t){$n(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F6e(t){$n(VV(t),"Item must be an object.")}function H6e(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function B6e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U6e(t){for(var e=1;e{const c=q6e(i,l,s,r),d={type:Mk,payload:{dropResult:U6e({},n,c)}};t.dispatch(d)})}}function V6e(t){$n(t.isDragging(),"Cannot call drop while not dragging."),$n(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function q6e(t,e,n,r){const s=n.getTarget(t);let a=s?s.drop(r,t):void 0;return K6e(a),typeof a=="undefined"&&(a=e===0?{}:r.getDropResult()),a}function K6e(t){$n(typeof t=="undefined"||VV(t),"Drop result must either be an object or undefined.")}function G6e(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function Y6e(t){return function(){const n=t.getMonitor(),r=t.getRegistry();Z6e(n);const s=n.getSourceId();return s!=null&&(r.getSource(s,!0).endDrag(n,s),r.unpinSource()),{type:Dk}}}function Z6e(t){$n(t.isDragging(),"Cannot call endDrag while not dragging.")}function Sj(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function X6e(t){return function(n,{clientOffset:r}={}){Q6e(n);const s=n.slice(0),a=t.getMonitor(),i=t.getRegistry(),l=a.getItemType();return eje(s,i,l),J6e(s,a,i),tje(s,a,i),{type:Pk,payload:{targetIds:s,clientOffset:r||null}}}}function Q6e(t){$n(Array.isArray(t),"Expected targetIds to be an array.")}function J6e(t,e,n){$n(e.isDragging(),"Cannot call hover while not dragging."),$n(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const s=t[r],a=e.getTargetType(s);Sj(a,n)||t.splice(r,1)}}function tje(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function nje(t){return function(){if(t.getMonitor().isDragging())return{type:dN}}}function rje(t){return{beginDrag:O6e(t),publishDragSource:nje(t),hover:X6e(t),drop:W6e(t),endDrag:Y6e(t)}}class sje{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(a){return(...i)=>{const l=a.apply(e,i);typeof l!="undefined"&&n(l)}}const s=rje(this);return Object.keys(s).reduce((a,i)=>{const l=s[i];return a[i]=r(l),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function aje(t,e){return{x:t.x+e.x,y:t.y+e.y}}function qV(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oje(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:qV(aje(e,r),n)}function ije(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:qV(e,n)}const V1=[],fN=[];V1.__IS_NONE__=!0;fN.__IS_ALL__=!0;function lje(t,e){return t===V1?!1:t===fN||typeof e=="undefined"?!0:L6e(e,t).length>0}class cje{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;$n(typeof e=="function","listener must be a function."),$n(typeof r=="undefined"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const a=()=>{const i=this.store.getState(),l=i.stateId;try{l===s||l===s+1&&!lje(i.dirtyHandlerIds,r)||e()}finally{s=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){$n(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const s=this.store.getState().dragOffset;s!==n&&(n=s,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return $n(n,"Expected to find a valid source. sourceId=".concat(e)),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if($n(n,"Expected to find a valid target. targetId=".concat(e)),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),s=this.getItemType();return Sj(r,s)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if($n(n,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),s=this.getItemType();return r!==s?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const s=this.registry.getTargetType(e),a=this.getItemType();if(a&&!Sj(s,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const l=i.indexOf(e);return r?l===i.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return oje(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ije(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const OA=typeof global!="undefined"?global:self,KV=OA.MutationObserver||OA.WebKitMutationObserver;function GV(t){return function(){const n=setTimeout(s,0),r=setInterval(s,50);function s(){clearTimeout(n),clearInterval(r),t()}}}function uje(t){let e=1;const n=new KV(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const dje=typeof KV=="function"?uje:GV;class fje{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let r=0,s=e.length-this.index;r{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=dje(this.flush),this.requestErrorThrow=GV(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class hje{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class pje{create(e){const n=this.freeTasks,r=n.length?n.pop():new hje(this.onError,s=>n[n.length]=s);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const YV=new fje,mje=new pje(YV.registerPendingError);function gje(t){YV.enqueueTask(mje.create(t))}const hN="dnd-core/ADD_SOURCE",pN="dnd-core/ADD_TARGET",mN="dnd-core/REMOVE_SOURCE",Ik="dnd-core/REMOVE_TARGET";function vje(t){return{type:hN,payload:{sourceId:t}}}function xje(t){return{type:pN,payload:{targetId:t}}}function yje(t){return{type:mN,payload:{sourceId:t}}}function bje(t){return{type:Ik,payload:{targetId:t}}}function wje(t){$n(typeof t.canDrag=="function","Expected canDrag to be a function."),$n(typeof t.beginDrag=="function","Expected beginDrag to be a function."),$n(typeof t.endDrag=="function","Expected endDrag to be a function.")}function kje(t){$n(typeof t.canDrop=="function","Expected canDrop to be a function."),$n(typeof t.hover=="function","Expected hover to be a function."),$n(typeof t.drop=="function","Expected beginDrag to be a function.")}function jj(t,e){if(e&&Array.isArray(t)){t.forEach(n=>jj(n,!1));return}$n(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var vi;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(vi||(vi={}));let Cje=0;function Sje(){return Cje++}function jje(t){const e=Sje().toString();switch(t){case vi.SOURCE:return"S".concat(e);case vi.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function $A(t){switch(t[0]){case"S":return vi.SOURCE;case"T":return vi.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(t))}}function zA(t,e){const n=t.entries();let r=!1;do{const{done:s,value:[,a]}=n.next();if(a===e)return!0;r=!!s}while(!r);return!1}class Eje{addSource(e,n){jj(e),wje(n);const r=this.addHandler(vi.SOURCE,e,n);return this.store.dispatch(vje(r)),r}addTarget(e,n){jj(e,!0),kje(n);const r=this.addHandler(vi.TARGET,e,n);return this.store.dispatch(xje(r)),r}containsHandler(e){return zA(this.dragSources,e)||zA(this.dropTargets,e)}getSource(e,n=!1){return $n(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return $n(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return $n(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return $n(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return $A(e)===vi.SOURCE}isTargetId(e){return $A(e)===vi.TARGET}removeSource(e){$n(this.getSource(e),"Expected an existing source."),this.store.dispatch(yje(e)),gje(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){$n(this.getTarget(e),"Expected an existing target."),this.store.dispatch(bje(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);$n(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){$n(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const s=jje(e);return this.types.set(s,n),e===vi.SOURCE?this.dragSources.set(s,r):e===vi.TARGET&&this.dropTargets.set(s,r),s}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Nje=(t,e)=>t===e;function _je(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Tje(t,e,n=Nje){if(t.length!==e.length)return!1;for(let r=0;r0||!Tje(n,r)))return V1;const i=r[r.length-1],l=n[n.length-1];return i!==l&&(i&&s.push(i),l&&s.push(l)),s}function Mje(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dje(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Vje(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a=0)&&(n[s]=t[s]);return n}let HA=0;const Zb=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var qje=v.memo(function(e){var{children:n}=e,r=Wje(e,["children"]);const[s,a]=Kje(r);return v.useEffect(()=>{if(a){const i=ZV();return++HA,()=>{--HA===0&&(i[Zb]=null)}}},[]),o.jsx(WV.Provider,{value:s,children:n})});function Kje(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=Gje(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function Gje(t,e=ZV(),n,r){const s=e;return s[Zb]||(s[Zb]={dragDropManager:Bje(t,e,n,r)}),s[Zb]}function ZV(){return typeof global!="undefined"?global:window}var Yje=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,s,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(s=r;s--!==0;)if(!t(e[s],n[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[s]))return!1;for(s=r;s--!==0;){var i=a[s];if(!t(e[i],n[i]))return!1}return!0}return e!==e&&n!==n};const Zje=cu(Yje),Rh=typeof window!="undefined"?v.useLayoutEffect:v.useEffect;function XV(t,e,n){const[r,s]=v.useState(()=>e(t)),a=v.useCallback(()=>{const i=e(t);Zje(r,i)||(s(i),n&&n())},[r,t,n]);return Rh(a),[r,a]}function Xje(t,e,n){const[r,s]=XV(t,e,n);return Rh(function(){const i=t.getHandlerId();if(i!=null)return t.subscribeToStateChange(s,{handlerIds:[i]})},[t,s]),r}function QV(t,e,n){return Xje(e,t||(()=>({})),()=>n.reconnect())}function JV(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),v.useMemo(()=>typeof t=="function"?t():t,n)}function Qje(t){return v.useMemo(()=>t.hooks.dragSource(),[t])}function Jje(t){return v.useMemo(()=>t.hooks.dragPreview(),[t])}let w4=!1,k4=!1;class e8e{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){$n(!w4,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return w4=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{w4=!1}}isDragging(){if(!this.sourceId)return!1;$n(!k4,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return k4=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{k4=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let C4=!1;class t8e{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;$n(!C4,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return C4=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{C4=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function n8e(t,e,n){const r=n.getRegistry(),s=r.addTarget(t,e);return[s,()=>r.removeTarget(s)]}function r8e(t,e,n){const r=n.getRegistry(),s=r.addSource(t,e);return[s,()=>r.removeSource(s)]}function Ej(t,e,n,r){let s=n?n.call(r,t,e):void 0;if(s!==void 0)return!!s;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),i=Object.keys(e);if(a.length!==i.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c, or turn it into a ")+"drag source or a drop target itself.")}function a8e(t){return(e=null,n=null)=>{if(!v.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return s8e(r),o8e(r,n?a=>t(a,n):t)}}function eq(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const s=a8e(r);e[n]=()=>s}}),e}function BA(t,e){typeof t=="function"?t(e):t.current=e}function o8e(t,e){const n=t.ref;return $n(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?v.cloneElement(t,{ref:r=>{BA(n,r),BA(e,r)}}):v.cloneElement(t,{ref:e})}class i8e{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ej(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ej(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=eq({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Nj(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Nj(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class l8e{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ej(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=eq({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Nj(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Gh(){const{dragDropManager:t}=v.useContext(WV);return $n(t!=null,"Expected drag drop context"),t}function c8e(t,e){const n=Gh(),r=v.useMemo(()=>new i8e(n.getBackend()),[n]);return Rh(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Rh(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function u8e(){const t=Gh();return v.useMemo(()=>new e8e(t),[t])}class d8e{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r!=null?r:null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,s=this.monitor,{isDragging:a}=r;return a?a(s):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:s}=e;s&&s(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function f8e(t,e,n){const r=v.useMemo(()=>new d8e(t,e,n),[e,n]);return v.useEffect(()=>{r.spec=t},[t]),r}function h8e(t){return v.useMemo(()=>{const e=t.type;return $n(e!=null,"spec.type must be defined"),e},[t])}function p8e(t,e,n){const r=Gh(),s=f8e(t,e,n),a=h8e(t);Rh(function(){if(a!=null){const[l,c]=r8e(a,s,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,s,a])}function m8e(t,e){const n=JV(t,e);$n(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=u8e(),s=c8e(n.options,n.previewOptions);return p8e(n,r,s),[QV(n.collect,r,s),Qje(s),Jje(s)]}function g8e(t){const n=Gh().getMonitor(),[r,s]=XV(n,t);return v.useEffect(()=>n.subscribeToOffsetChange(s)),v.useEffect(()=>n.subscribeToStateChange(s)),r}function v8e(t){return v.useMemo(()=>t.hooks.dropTarget(),[t])}function x8e(t){const e=Gh(),n=v.useMemo(()=>new l8e(e.getBackend()),[e]);return Rh(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function y8e(){const t=Gh();return v.useMemo(()=>new t8e(t),[t])}function b8e(t){const{accept:e}=t;return v.useMemo(()=>($n(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class w8e{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function k8e(t,e){const n=v.useMemo(()=>new w8e(t,e),[e]);return v.useEffect(()=>{n.spec=t},[t]),n}function C8e(t,e,n){const r=Gh(),s=k8e(t,e),a=b8e(t);Rh(function(){const[l,c]=n8e(a,s,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,s,n,a.map(i=>i.toString()).join("|")])}function tq(t,e){const n=JV(t,e),r=y8e(),s=x8e(n.options);return C8e(n,r,s),[QV(n.collect,r,s),v8e(s)]}const nq=v.createContext(null);function to(){const t=v.useContext(nq);if(t===null)throw new Error("No Tree Api Provided");return t}const rq=v.createContext(null);function S8e(){const t=v.useContext(rq);if(t===null)throw new Error("Provide a NodesContext");return t}const sq=v.createContext(null);function j8e(){const t=v.useContext(sq);if(t===null)throw new Error("Provide a DnDContext");return t}const aq=v.createContext(0);function gN(){v.useContext(aq)}const E8e={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},N8e=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e,"px, ").concat(n,"px)")}},_8e=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e+10,"px, ").concat(n+10,"px)")}};function oq(t){const e=Te(13),{offset:n,mouse:r,id:s,dragIds:a,isDragging:i}=t;let l;e[0]!==s||e[1]!==a?(l=o.jsx(D8e,{id:s,dragIds:a}),e[0]=s,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==n||e[4]!==l?(c=o.jsx(P8e,{offset:n,children:l}),e[3]=n,e[4]=l,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a.length?(d=o.jsx(M8e,{mouse:r,count:a.length}),e[6]=r,e[7]=a.length,e[8]=d):d=e[8];let p;return e[9]!==i||e[10]!==c||e[11]!==d?(p=o.jsxs(T8e,{isDragging:i,children:[c,d]}),e[9]=i,e[10]=c,e[11]=d,e[12]=p):p=e[12],p}const T8e=v.memo(function(e){const n=Te(2);if(!e.isDragging)return null;let r;return n[0]!==e.children?(r=o.jsx("div",{style:E8e,children:e.children}),n[0]=e.children,n[1]=r):r=n[1],r});function P8e(t){const e=Te(5);let n;e[0]!==t.offset?(n=N8e(t.offset),e[0]=t.offset,e[1]=n):n=e[1];let r;return e[2]!==n||e[3]!==t.children?(r=o.jsx("div",{className:"row preview",style:n,children:t.children}),e[2]=n,e[3]=t.children,e[4]=r):r=e[4],r}function M8e(t){const e=Te(5),{count:n,mouse:r}=t;if(n>1){let s;e[0]!==r?(s=_8e(r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==s||e[3]!==n?(a=o.jsx("div",{className:"selected-count",style:s,children:n}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}else return null}const D8e=v.memo(function(e){const n=Te(9),r=to();let s;n[0]!==r||n[1]!==e.id?(s=r.get(e.id),n[0]=r,n[1]=e.id,n[2]=s):s=n[2];const a=s;if(!a)return null;const i=a.level*r.indent;let l;n[3]!==i?(l={paddingLeft:i,opacity:.5,background:"transparent"},n[3]=i,n[4]=l):l=n[4];let c;return n[5]!==r||n[6]!==a||n[7]!==l?(c=o.jsx(r.renderNode,{preview:!0,node:a,style:l,tree:r}),n[5]=r,n[6]=a,n[7]=l,n[8]=c):c=n[8],c});function I8e(){const t=Te(10),e=to();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=f=>({offset:f.getSourceClientOffset(),mouse:f.getClientOffset(),item:f.getItem(),isDragging:f.isDragging()}),t[0]=n):n=t[0];const{offset:r,mouse:s,item:a,isDragging:i}=g8e(n),l=e.props.renderDragPreview||oq,c=(a==null?void 0:a.id)||null;let d;t[1]!==a?(d=(a==null?void 0:a.dragIds)||[],t[1]=a,t[2]=d):d=t[2];let p;return t[3]!==l||t[4]!==r||t[5]!==s||t[6]!==c||t[7]!==d||t[8]!==i?(p=o.jsx(l,{offset:r,mouse:s,id:c,dragIds:d,isDragging:i}),t[3]=l,t[4]=r,t[5]=s,t[6]=c,t[7]=d,t[8]=i,t[9]=p):p=t[9],p}const zv=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!=null?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,idWillReceiveDrop:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},x0={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function A8e(t=zv().dnd,e){switch(e.type){case"DND_CURSOR":return ae(R({},t),{cursor:e.cursor});case"DND_DRAG_START":return ae(R({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return zv().dnd;case"DND_HOVERING":return ae(R({},t),{parentId:e.parentId,index:e.index});default:return t}}function iq(t,e,n){return Math.max(Math.min(t,n),e)}function lq(t){return t&&t.isLeaf}function cq(t){return t&&t.isInternal&&!t.isOpen}const uq=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},dq=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function L8e(){}function vN(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=vN(n,e);if(r)return r}return null}function zw(t,e){if(e(t),t.children)for(let n of t.children)zw(n,e)}function fq(t){const e=pq(t);let n;for(let r=0;r=0?t[e-1]:t[t.length-1]}function pq(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function g1(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function mq(t){return t===null?null:Mf(t)}function Mf(t){return typeof t=="string"?t:t.id}function $8e(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function gq(t,...e){if(t)return t(...e)}function vq(t){return new Promise((e,n)=>{let r=0;function s(){r+=1,r===100&&n(),t()?e():setTimeout(s,10)}s()})}function xq(t){var n,r;const e=t.focusedNode;return e?e.isOpen?0:e.parent?e.childIndex+1:0:(r=(n=t.root.children)==null?void 0:n.length)!=null?r:0}function yq(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const z8e=Object.freeze(Object.defineProperty({__proto__:null,access:g1,bound:iq,dfs:vN,focusNextElement:fq,focusPrevElement:hq,getInsertIndex:xq,getInsertParentId:yq,identify:Mf,identifyNull:mq,indexOf:dq,isClosed:cq,isDecendent:uq,isItem:lq,mergeRefs:$8e,noop:L8e,safeRun:gq,waitFor:vq,walk:zw},Symbol.toStringTag,{value:"Module"}));function F8e(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),s=e.y-Math.round(n.y),a=n.height,i=sc&&se;)n=n.parent;const r=((a=n.parent)==null?void 0:a.id)||null,s=dq(n)+1;return{parentId:r,index:s}}function bq(t){var l;const e=F8e(t.element,t.offset),{node:n,nextNode:r,prevNode:s}=t,[a,i]=H8e(n,s,r,e);if(n&&n.isInternal&&e.inMiddle)return{drop:S4(n.id,0),cursor:U8e(n.id)};if(!a)return{drop:S4((l=i==null?void 0:i.parent)==null?void 0:l.id,0),cursor:j4(0,0)};if(lq(a)||cq(a)){const c=B8e(e,a,i,t.indent);return{drop:W8e(a,c),cursor:j4(a.rowIndex+1,c)}}return{drop:S4(a==null?void 0:a.id,0),cursor:j4(a.rowIndex+1,a.level+1)}}function V8e(){const t=Te(3),e=to();let n,r;t[0]!==e?(n=()=>({accept:"NODE",canDrop:(a,i)=>i.isOver({shallow:!0})?e.canDrop():!1,hover:(a,i)=>{if(!i.isOver({shallow:!0}))return;const l=i.getClientOffset();if(!e.listEl.current||!l)return;const{cursor:c,drop:d}=bq({element:e.listEl.current,offset:l,indent:e.indent,node:null,prevNode:e.visibleNodes[e.visibleNodes.length-1],nextNode:null});d&&e.dispatch(x0.hovering(d.parentId,d.index)),i.canDrop()?c&&e.showCursor(c):e.hideCursor()}}),r=[e],t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const[,s]=tq(n,r);s(e.listEl)}function q8e(t){return V8e(),t.children}function wq(t){let e=null;return()=>(e==null&&(e=t()),e)}function K8e(t,e){return t.filter(n=>n!==e)}function G8e(t,e){const n=new Set,r=a=>n.add(a);t.forEach(r),e.forEach(r);const s=[];return n.forEach(a=>s.push(a)),s}class Y8e{enter(e){const n=this.entered.length,r=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(e));return this.entered=G8e(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=K8e(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Z8e{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const s=this.config.exposeProperties[r];s!=null&&(n[r]={value:s(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const kq="__NATIVE_FILE__",Cq="__NATIVE_URL__",Sq="__NATIVE_TEXT__",jq="__NATIVE_HTML__",UA=Object.freeze(Object.defineProperty({__proto__:null,FILE:kq,HTML:jq,TEXT:Sq,URL:Cq},Symbol.toStringTag,{value:"Module"}));function E4(t,e,n){const r=e.reduce((s,a)=>s||t.getData(a),"");return r!=null?r:n}const _j={[kq]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[jq]:{exposeProperties:{html:(t,e)=>E4(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[Cq]:{exposeProperties:{urls:(t,e)=>E4(t,e,"").split("\n"),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[Sq]:{exposeProperties:{text:(t,e)=>E4(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function X8e(t,e){const n=_j[t];if(!n)throw new Error("native type ".concat(t," has no configuration"));const r=new Z8e(n);return r.loadDataTransfer(e),r}function N4(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(_j).filter(n=>{const r=_j[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(s=>e.indexOf(s)>-1):!1})[0]||null}const Q8e=wq(()=>/firefox/i.test(navigator.userAgent)),Eq=wq(()=>!!window.safari);class WA{interpolate(e){const{xs:n,ys:r,c1s:s,c2s:a,c3s:i}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,d=i.length-1,p;for(;c<=d;){p=Math.floor(.5*(c+d));const b=n[p];if(be)d=p-1;else return r[p]}l=Math.max(0,d);const f=e-n[l],m=f*f;return r[l]+s[l]*f+a[l]*m+i[l]*f*m}constructor(e,n){const{length:r}=e,s=[];for(let b=0;be[b]{let P=new WA([0,.5,1],[c.y,c.y/p*C,c.y+C-p]).interpolate(m);return Eq()&&a&&(P+=(window.devicePixelRatio-1)*C),P},w=()=>new WA([0,.5,1],[c.x,c.x/d*b,c.x+b-d]).interpolate(f),{offsetX:x,offsetY:S}=s,E=x===0||x,N=S===0||S;return{x:E?x:w(),y:N?S:g()}}class rEe{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function sEe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VA(t){for(var e=1;e{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const s=i=>this.handleDragStart(i,e),a=i=>this.handleSelectStart(i);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",s),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",s),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=i=>this.handleDragEnter(i,e),s=i=>this.handleDragOver(i,e),a=i=>this.handleDrop(i,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",s),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",s),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return VA({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return VA({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(UA).some(n=>UA[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=X8e(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const a=this.sourceNodes.get(s);return a&&Nq(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const i=gb(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:l}=s,c=N4(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const p=this.monitor.getSourceId(),f=this.sourceNodes.get(p),m=this.sourcePreviewNodes.get(p)||f;if(m){const{anchorX:b,anchorY:C,offsetX:g,offsetY:w}=this.getCurrentSourcePreviewNodeOptions(),E=nEe(f,m,i,{anchorX:b,anchorY:C},{offsetX:g,offsetY:w});l.setDragImage(m,E.x,E.y)}}try{l==null||l.setData("application/json",{})}catch(p){}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:l}=s,c=N4(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=s.altKey,a.length>0&&this.actions.hover(a,{clientOffset:gb(s)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=gb(s),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;s.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}else N4(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:gb(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const a=s.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(s.preventDefault(),a.dragDrop()))},this.options=new rEe(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Y8e(this.isNodeInDocument)}}let vb;function oEe(){return vb||(vb=new Image,vb.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),vb}const iEe=function(e,n,r){return new aEe(e,n,r)},_q=v.forwardRef(function(e,n){var m,b,C,g,w;const r=Te(10);let s,a;r[0]!==e?(m=e,{style:s}=m,a=Ne(m,["style"]),r[0]=e,r[1]=s,r[2]=a):(s=r[1],a=r[2]);const i=to(),l=(C=(b=i.props.padding)!=null?b:i.props.paddingTop)!=null?C:0,c=(w=(g=i.props.padding)!=null?g:i.props.paddingBottom)!=null?w:0,d="".concat(parseFloat(s.height)+l+c,"px");let p;r[3]!==s||r[4]!==d?(p=ae(R({},s),{height:d}),r[3]=s,r[4]=d,r[5]=p):p=r[5];let f;return r[6]!==n||r[7]!==p||r[8]!==a?(f=o.jsx("div",R({ref:n,style:p},a)),r[6]=n,r[7]=p,r[8]=a,r[9]=f):f=r[9],f});function lEe(){var p,f;const t=Te(7),e=to(),r=j8e().cursor;if(!r||r.type!=="line")return null;const s=e.indent,a=e.rowHeight*r.index+((f=(p=e.props.padding)!=null?p:e.props.paddingTop)!=null?f:0),i=s*r.level,l=e.renderCursor;let c;t[0]!==a||t[1]!==i||t[2]!==s?(c={top:a,left:i,indent:s},t[0]=a,t[1]=i,t[2]=s,t[3]=c):c=t[3];let d;return t[4]!==l||t[5]!==c?(d=o.jsx(l,R({},c)),t[4]=l,t[5]=c,t[6]=d):d=t[6],d}const Tq=v.forwardRef(function(e,n){var p;const r=Te(11);let s,a;r[0]!==e?(p=e,{children:a}=p,s=Ne(p,["children"]),r[0]=e,r[1]=s,r[2]=a):(s=r[1],a=r[2]);const i=to();let l;r[3]!==i?(l=f=>{f.currentTarget===f.target&&i.deselectAll()},r[3]=i,r[4]=l):l=r[4];let c;r[5]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(cEe,{}),r[5]=c):c=r[5];let d;return r[6]!==n||r[7]!==s||r[8]!==l||r[9]!==a?(d=o.jsxs("div",ae(R({ref:n},s),{onClick:l,children:[c,a]})),r[6]=n,r[7]=s,r[8]=l,r[9]=a,r[10]=d):d=r[10],d}),cEe=()=>{const t=Te(5),e=to(),n=e.visibleNodes.length*e.rowHeight;let r;t[0]!==n?(r={height:n,width:"100%",position:"absolute",left:"0",right:"0"},t[0]=n,t[1]=r):r=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(lEe,{}),t[2]=s):s=t[2];let a;return t[3]!==r?(a=o.jsx("div",{style:r,children:s}),t[3]=r,t[4]=a):a=t[4],a};class Fw{constructor(e){kt(this,"tree");kt(this,"id");kt(this,"data");kt(this,"level");kt(this,"children");kt(this,"parent");kt(this,"isDraggable");kt(this,"rowIndex");kt(this,"handleClick",e=>{e.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():e.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())});this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Fv}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.tree.closedFolderIds.length>0?!this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.tree.closedFolderIds.length>0?this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!((e=this.prev)!=null&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!((e=this.next)!=null&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var n,r;const e=this.childIndex;return(r=(n=this.parent)==null?void 0:n.children[e+1])!=null?r:null}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Fw(R({},this))}edit(){return this.tree.edit(this)}}const Fv="ROOT";function qA(t){var s;function e(a,i,l){const c=t.accessId(a),d=new Fw({tree:t,data:a,level:i,parent:l,id:c,children:null,isDraggable:t.isDraggable(a),rowIndex:null}),p=t.accessChildren(a);return p&&(d.children=p.map(f=>e(f,i+1,d))),d}const n=new Fw({tree:t,id:Fv,data:{id:Fv},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),r=(s=t.props.data)!=null?s:[];return n.children=r.map(a=>e(a,0,n)),n}function uEe(t){const e=Te(11),n=to(),r=n.selectedIds;let s;e[0]!==t.isDraggable||e[1]!==t.id||e[2]!==n||e[3]!==r?(s=()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const f=n.isSelected(t.id)?Array.from(r):[t.id];return n.dispatch(x0.dragStart(t.id,f)),{id:t.id}},end:()=>{n.hideCursor();const{parentId:f,index:m,dragIds:b}=n.state.dnd;n.canDrop()&&(gq(n.props.onMove,{dragIds:b,parentId:f===Fv?null:f,index:m,dragNodes:n.dragNodes,parentNode:n.get(f)}),n.open(f)),n.dispatch(x0.dragEnd())}}),e[0]=t.isDraggable,e[1]=t.id,e[2]=n,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==r||e[6]!==t?(a=[r,t],e[5]=r,e[6]=t,e[7]=a):a=e[7];const[i,l,c]=m8e(s,a);let d,p;return e[8]!==c?(d=()=>{c(oEe())},p=[c],e[8]=c,e[9]=d,e[10]=p):(d=e[9],p=e[10]),v.useEffect(d,p),l}function dEe(t,e){const n=Te(8),r=to();let s;n[0]!==r||n[1]!==t.current||n[2]!==e?(s=()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(c,d)=>{const p=d.getClientOffset();if(!t.current||!p)return;const{cursor:f,drop:m}=bq({element:t.current,offset:p,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});m&&r.dispatch(x0.hovering(m.parentId,m.index)),d.canDrop()?f&&r.showCursor(f):r.hideCursor()},drop:(c,d)=>{if(!d.canDrop())return null}}),n[0]=r,n[1]=t.current,n[2]=e,n[3]=s):s=n[3];let a;n[4]!==e||n[5]!==t.current||n[6]!==r.props?(a=[e,t.current,r.props],n[4]=e,n[5]=t.current,n[6]=r.props,n[7]=a):a=n[7];const[i,l]=tq(s,a);return l}function fEe(t){const e=to(),n=e.at(t);if(!n)throw new Error("Could not find node for index: ".concat(t));return v.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Pq=v.memo(function({index:e,style:n}){gN(),S8e();const r=to(),s=fEe(e),a=v.useRef(null),i=uEe(s),l=dEe(a,s),c=v.useCallback(g=>{a.current=g,l(g)},[l]),d=r.indent*s.level,p=v.useMemo(()=>({paddingLeft:d}),[d]),f=v.useMemo(()=>{var g,w;return ae(R({},n),{top:parseFloat(n.top)+((w=(g=r.props.padding)!=null?g:r.props.paddingTop)!=null?w:0)})},[n,r.props.padding,r.props.paddingTop]),m={role:"treeitem","aria-level":s.level,"aria-selected":s.isSelected,style:f,tabIndex:-1,className:r.props.rowClassName};v.useEffect(()=>{var g;!s.isEditing&&s.isFocused&&((g=a.current)==null||g.focus({preventScroll:!0}))},[s.isEditing,s.isFocused,a.current]);const b=r.renderNode,C=r.renderRow;return o.jsx(C,{node:s,innerRef:c,attrs:m,children:o.jsx(b,{node:s,tree:r,style:p,dragHandle:i})},s.id)});let KA="",GA=null;function Mq(){const t=Te(30);gN();const e=to();let n;t[0]!==e.width?(n={width:e.width,minHeight:0,minWidth:0},t[0]=e.width,t[1]=n):n=t[1];let r,s,a;t[2]!==e?(r=f=>{f.currentTarget.contains(f.relatedTarget)||e.onFocus()},s=f=>{f.currentTarget.contains(f.relatedTarget)||e.onBlur()},a=f=>{var b;if(e.isEditing)return;if(f.key==="Backspace"){if(!e.props.onDelete)return;const C=Array.from(e.selectedIds);if(C.length>1){let g=e.mostRecentNode;for(;g&&g.isSelected;)g=g.nextSibling;g||(g=e.lastNode),e.focus(g,{scroll:!1}),e.delete(Array.from(C))}else{const g=e.focusedNode;if(g){const w=g.nextSibling,x=g.parent;e.focus(w||x,{scroll:!1}),e.delete(g)}}return}if(f.key==="Tab"&&!f.shiftKey){f.preventDefault(),fq(f.currentTarget);return}if(f.key==="Tab"&&f.shiftKey){f.preventDefault(),hq(f.currentTarget);return}if(f.key==="ArrowDown"){f.preventDefault();const C=e.nextNode;if(f.metaKey){e.select(e.focusedNode),e.activate(e.focusedNode);return}else if(!f.shiftKey||e.props.disableMultiSelection){e.focus(C);return}else{if(!C)return;const g=e.focusedNode;g?g.isSelected?e.selectContiguous(C):e.selectMulti(C):e.focus(e.firstNode);return}}if(f.key==="ArrowUp"){f.preventDefault();const C=e.prevNode;if(!f.shiftKey||e.props.disableMultiSelection){e.focus(C);return}else{if(!C)return;const g=e.focusedNode;g?g.isSelected?e.selectContiguous(C):e.selectMulti(C):e.focus(e.lastNode);return}}if(f.key==="ArrowRight"){const C=e.focusedNode;if(!C)return;C.isInternal&&C.isOpen?e.focus(e.nextNode):C.isInternal&&e.open(C.id);return}if(f.key==="ArrowLeft"){const C=e.focusedNode;if(!C||C.isRoot)return;C.isInternal&&C.isOpen?e.close(C.id):(b=C.parent)!=null&&b.isRoot||e.focus(C.parent);return}if(f.key==="a"&&f.metaKey&&!e.props.disableMultiSelection){f.preventDefault(),e.selectAll();return}if(f.key==="a"&&!f.metaKey&&e.props.onCreate){e.createLeaf();return}if(f.key==="A"&&!f.metaKey){if(!e.props.onCreate)return;e.createInternal();return}if(f.key==="Home"){f.preventDefault(),e.focus(e.firstNode);return}if(f.key==="End"){f.preventDefault(),e.focus(e.lastNode);return}if(f.key==="Enter"){const C=e.focusedNode;if(!C||!C.isEditable||!e.props.onRename)return;setTimeout(()=>{C&&e.edit(C)});return}if(f.key===" "){f.preventDefault();const C=e.focusedNode;if(!C)return;C.isLeaf?(C.select(),C.activate()):C.toggle();return}if(f.key==="*"){const C=e.focusedNode;if(!C)return;e.openSiblings(C);return}if(f.key==="PageUp"){f.preventDefault(),e.pageUp();return}f.key==="PageDown"&&(f.preventDefault(),e.pageDown()),clearTimeout(GA),GA=setTimeout(()=>{KA=""},300);const m=e.visibleNodes.find(C=>{const g=C.data.name;return typeof g=="string"?g.toLowerCase().includes(KA.toLowerCase()):!1});m&&e.focus(m.id)},t[2]=e,t[3]=r,t[4]=s,t[5]=a):(r=t[3],s=t[4],a=t[5]);const i=e.visibleNodes.length*e.rowHeight;let l;t[6]!==e.visibleNodes?(l=f=>{var m;return((m=e.visibleNodes[f])==null?void 0:m.id)||f},t[6]=e.visibleNodes,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.onItemsRendered.bind(e),t[8]=e,t[9]=c):c=t[9];let d;t[10]!==e.props.className||t[11]!==e.props.onScroll||t[12]!==e.listEl||t[13]!==e.visibleNodes.length||t[14]!==e.width||t[15]!==e.rowHeight||t[16]!==e.overscanCount||t[17]!==e.list||t[18]!==i||t[19]!==l||t[20]!==c?(d=o.jsx(CV,{className:e.props.className,outerRef:e.listEl,itemCount:e.visibleNodes.length,height:i,width:e.width,itemSize:e.rowHeight,overscanCount:e.overscanCount,itemKey:l,outerElementType:Tq,innerElementType:_q,onScroll:e.props.onScroll,onItemsRendered:c,ref:e.list,children:Pq}),t[10]=e.props.className,t[11]=e.props.onScroll,t[12]=e.listEl,t[13]=e.visibleNodes.length,t[14]=e.width,t[15]=e.rowHeight,t[16]=e.overscanCount,t[17]=e.list,t[18]=i,t[19]=l,t[20]=c,t[21]=d):d=t[21];let p;return t[22]!==n||t[23]!==e.props.onContextMenu||t[24]!==e.props.onClick||t[25]!==r||t[26]!==s||t[27]!==a||t[28]!==d?(p=o.jsx("div",{style:n,onContextMenu:e.props.onContextMenu,onClick:e.props.onClick,tabIndex:0,onFocus:r,onBlur:s,onKeyDown:a,children:d}),t[22]=n,t[23]=e.props.onContextMenu,t[24]=e.props.onClick,t[25]=r,t[26]=s,t[27]=a,t[28]=d,t[29]=p):p=t[29],p}const hEe={display:"flex",alignItems:"center",zIndex:1},pEe={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},mEe={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},gEe=Vt.memo(function(e){const n=Te(10),{top:r,left:s,indent:a}=e,i=r-2+"px",l=s+"px",c=a+"px";let d;n[0]!==i||n[1]!==l||n[2]!==c?(d={position:"absolute",pointerEvents:"none",top:i,left:l,right:c},n[0]=i,n[1]=l,n[2]=c,n[3]=d):d=n[3];const p=d;let f;n[4]!==p?(f=R(R({},hEe),p),n[4]=p,n[5]=f):f=n[5];let m;n[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx("div",{style:R({},mEe)}),n[6]=m):m=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("div",{style:R({},pEe)}),n[7]=b):b=n[7];let C;return n[8]!==f?(C=o.jsxs("div",{style:f,children:[m,b]}),n[8]=f,n[9]=C):C=n[9],C});function vEe(t){const e=Te(12);let n;e[0]!==t.node?(n=l=>{l.stopPropagation(),t.node.toggle()},e[0]=t.node,e[1]=n):n=e[1];const r=t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀";let s;e[2]!==n||e[3]!==r?(s=o.jsx("span",{onClick:n,children:r}),e[2]=n,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==t?(a=t.node.isEditing?o.jsx(yEe,R({},t)):o.jsx(xEe,R({},t)),e[5]=t,e[6]=a):a=e[6];let i;return e[7]!==t.dragHandle||e[8]!==t.style||e[9]!==s||e[10]!==a?(i=o.jsxs("div",{ref:t.dragHandle,style:t.style,children:[s," ",a]}),e[7]=t.dragHandle,e[8]=t.style,e[9]=s,e[10]=a,e[11]=i):i=e[11],i}function xEe(t){const e=Te(2);let n;return e[0]!==t.node.data.name?(n=o.jsx(o.Fragment,{children:o.jsx("span",{children:t.node.data.name})}),e[0]=t.node.data.name,e[1]=n):n=e[1],n}function yEe(t){const e=Te(10),{node:n}=t,r=v.useRef();let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{var d,p;(d=r.current)==null||d.focus(),(p=r.current)==null||p.select()},a=[],e[0]=s,e[1]=a):(s=e[0],a=e[1]),v.useEffect(s,a);let i,l;e[2]!==n?(i=()=>n.reset(),l=d=>{var p;d.key==="Escape"&&n.reset(),d.key==="Enter"&&n.submit(((p=r.current)==null?void 0:p.value)||"")},e[2]=n,e[3]=i,e[4]=l):(i=e[3],l=e[4]);let c;return e[5]!==r||e[6]!==n.data.name||e[7]!==i||e[8]!==l?(c=o.jsx("input",{ref:r,defaultValue:n.data.name,onBlur:i,onKeyDown:l}),e[5]=r,e[6]=n.data.name,e[7]=i,e[8]=l,e[9]=c):c=e[9],c}function bEe(t){const e=Te(6),{node:n,attrs:r,innerRef:s,children:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=c=>c.stopPropagation(),e[0]=i):i=e[0];let l;return e[1]!==r||e[2]!==s||e[3]!==n.handleClick||e[4]!==a?(l=o.jsx("div",ae(R({},r),{ref:s,onFocus:i,onClick:n.handleClick,children:a})),e[1]=r,e[2]=s,e[3]=n.handleClick,e[4]=a,e[5]=l):l=e[5],l}const YA=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});function ZA(t){return t.isFiltered?kEe(t.root,t.isMatch.bind(t)):wEe(t.root)}function wEe(t){const e=[];function n(r){var s;r.level>=0&&e.push(r),r.isOpen&&((s=r.children)==null||s.forEach(n))}return n(t),e.forEach(Dq),e}function kEe(t,e){const n={},r=[];function s(i){if(!i.isRoot&&e(i)){n[i.id]=!0;let c=i.parent;for(;c;)n[c.id]=!0,c=c.parent}if(i.children)for(let c of i.children)s(c)}function a(i){var l;i.level>=0&&n[i.id]&&r.push(i),i.isOpen&&((l=i.children)==null||l.forEach(a))}return s(t),a(t),r.forEach(Dq),r}function Dq(t,e){t.rowIndex=e}function _4(t){return{type:"EDIT",id:t}}function CEe(t={id:null},e){return e.type==="EDIT"?ae(R({},t),{id:e.id}):t}function $p(t){return{type:"FOCUS",id:t}}function SEe(){return{type:"TREE_BLUR"}}function jEe(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?ae(R({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?ae(R({},t),{treeFocused:!1}):t}const Tj={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function XA(t={},e){if(e.type==="VISIBILITY_OPEN")return ae(R({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return ae(R({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return ae(R({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function EEe(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?ae(R({},t),{filtered:XA(t.filtered,e)}):ae(R({},t),{unfiltered:XA(t.unfiltered,e)}):t}const ai={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Mf(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Mf)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Mf)}),set:t=>R({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Mf(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Mf(t)})};function NEe(t=zv().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return ae(R({},t),{ids:new Set});case"SELECTION_ONLY":return ae(R({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),ae(R({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),ae(R({},t),{ids:new Set(n)}));case"SELECTION_SET":return ae(R({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return ae(R({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return ae(R({},t),{anchor:e.id});default:return t}}const{safeRun:$s,identify:Ec,identifyNull:oi}=z8e,pm=class pm{constructor(e,n,r,s){kt(this,"root");kt(this,"visibleNodes");kt(this,"visibleStartIndex",0);kt(this,"visibleStopIndex",0);kt(this,"idToIndex");this.store=e,this.props=n,this.list=r,this.listEl=s,this.root=qA(this),this.visibleNodes=ZA(this),this.idToIndex=YA(this.visibleNodes)}update(e){this.props=e,this.root=qA(this),this.visibleNodes=ZA(this),this.idToIndex=YA(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!=null?e:"100%"}get closedFolderIds(){var e;return(e=this.props.closedFolderItemIds)!=null?e:[]}get height(){var e;return(e=this.props.height)!=null?e:1500}get indent(){var e;return(e=this.props.indent)!=null?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!=null?e:26}get overscanCount(){var e;return(e=this.props.overscanCount)!=null?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var n;const e=(n=this.props.searchMatch)!=null?n:(r,s)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(s.toLocaleLowerCase());return r=>e(r,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=g1(e,n))!=null?r:null}accessId(e){const n=this.props.idAccessor||"id",r=g1(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!=null?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!=null?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!=null?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!=null?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var l;if(e===null||n===null)return[];const r=(l=this.indexOf(e))!=null?l:0,s=this.indexOf(n);if(s===null)return[];const a=Math.min(r,s),i=Math.max(r,s);return this.visibleNodes.slice(a,i+1)}indexOf(e){const n=mq(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return ge(this,arguments,function*(e={}){var i,l;const n=e.parentId===void 0?yq(this):e.parentId,r=(i=e.index)!=null?i:xq(this),s=(l=e.type)!=null?l:"leaf",a=yield $s(this.props.onCreate,{type:s,parentId:n,index:r,parentNode:this.get(n)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return ge(this,null,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ec),s=r.map(a=>this.get(a)).filter(a=>!!a);yield $s(this.props.onDelete,{nodes:s,ids:r})})}edit(e){const n=Ec(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(_4(n)),new Promise(r=>{pm.editPromise=r})}submit(e,n){return ge(this,null,function*(){if(!e)return;const r=Ec(e);yield $s(this.props.onRename,{id:r,name:n,node:this.get(r)}),setTimeout(()=>{this.focus(this.get(r)),this.dispatch(_4(null)),this.resolveEdit({cancelled:!1,value:n}),this.onFocus()},300)})}reset(){this.dispatch(_4(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(oi(e));n&&$s(this.props.onActivate,n)}resolveEdit(e){const n=pm.editPromise;n&&n(e),pm.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch($p(Ec(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&$s(this.props.onFocus,this.focusedNode)))}pageUp(){var a,i;const e=this.visibleStartIndex,r=this.visibleStopIndex-e;let s=(i=(a=this.focusedNode)==null?void 0:a.rowIndex)!=null?i:0;s>e?s=e:s=Math.max(e-r,0),this.focus(this.at(s))}pageDown(){var a,i;const e=this.visibleStartIndex,n=this.visibleStopIndex,r=n-e;let s=(i=(a=this.focusedNode)==null?void 0:a.rowIndex)!=null?i:0;sthis.get(e)).filter(e=>!!e)}canDrop(){var s;const e=(s=this.get(this.state.dnd.parentId))!=null?s:this.root,n=this.dragNodes,r=this.props.disableDrop;for(const a of n)if(!a||!e||a.isInternal&&uq(e,a))return!1;return typeof r=="function"?!r({parentNode:e,dragNodes:this.dragNodes,index:this.state.dnd.index}):typeof r=="string"?!e.data[r]:typeof r=="boolean"?!r:!0}hideCursor(){this.dispatch(x0.cursor({type:"none"}))}showCursor(e){this.dispatch(x0.cursor(e))}open(e){const n=oi(e);n&&(this.isOpen(n)||(this.dispatch(Tj.open(n,this.isFiltered)),$s(this.props.onFolderOpen,n)))}close(e){const n=oi(e);n&&this.isOpen(n)&&(this.dispatch(Tj.close(n,this.isFiltered)),$s(this.props.onFolderClose,n))}toggle(e){const n=oi(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=oi(e);if(!n)return;const r=vN(this.root,n);let s=r==null?void 0:r.parent;for(;s;)this.open(s.id),s=s.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let s of n.children)s.isInternal&&(r?this.close(s.id):this.open(s.id));this.scrollTo(this.focusedNode)}}openAll(){zw(this.root,e=>{e.isInternal&&e.open()})}closeAll(){zw(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ec(e);return this.openParents(r),vq(()=>r in this.idToIndex).then(()=>{var a;const s=this.idToIndex[r];s!==void 0&&((a=this.list.current)==null||a.scrollToItem(s,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!((e=this.props.searchTerm)!=null&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,s,a;if(!e)return!1;if(e===Fv)return!0;const n=(r=this.props.openByDefault)!=null?r:!0;return this.isFiltered?(s=this.state.nodes.open.filtered[e])!=null?s:!0:(a=this.state.nodes.open.unfiltered[e])!=null?a:n}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!g1(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!g1(e,n)}isDragging(e){const n=oi(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=oi(e);return n?n===this.state.nodes.drag.idWillReceiveDrop:!1}onSearchClear(){var e,n;(n=(e=this.props).onSearchClear)==null||n.call(e)}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch($p(e.id))}onBlur(){this.dispatch(SEe())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Mq}get renderRow(){return this.props.renderRow||bEe}get renderNode(){return this.props.children||vEe}get renderDragPreview(){return this.props.renderDragPreview||oq}get renderCursor(){return this.props.renderCursor||gEe}};kt(pm,"editPromise");let Pj=pm;function _Ee(t={id:null,idWillReceiveDrop:null},e){switch(e.type){case"DND_DRAG_START":return ae(R({},t),{id:e.id});case"DND_DRAG_END":return ae(R({},t),{id:null});case"DND_CURSOR":const n=e.cursor;return n.type==="highlight"&&n.id!==t.idWillReceiveDrop?ae(R({},t),{idWillReceiveDrop:n.id}):n.type!=="highlight"&&t.idWillReceiveDrop!==null?ae(R({},t),{idWillReceiveDrop:null}):t;default:return t}}const TEe=LA({nodes:LA({focus:jEe,edit:CEe,open:EEe,selection:NEe,drag:_Ee}),dnd:A8e}),PEe=zv();function MEe({treeProps:t,imperativeHandle:e,children:n}){const r=v.useRef(null),s=v.useRef(null),a=v.useRef(cN(TEe,zv(t))),i=XO.useSyncExternalStore(a.current.subscribe,a.current.getState,()=>PEe),l=v.useMemo(()=>new Pj(a.current,t,r,s),[]),c=v.useRef(0);return v.useMemo(()=>{c.current+=1,l.update(t)},[...Object.values(t),i.nodes.open]),v.useImperativeHandle(e,()=>l),v.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),v.useEffect(()=>{l.props.selectedIds&&l.props.selectedIds.length>0?l.setSelectIds(l.props.selectedIds):l.deselectAll()},[l.props.selectedIds]),v.useEffect(()=>{l.props.searchTerm||a.current.dispatch(Tj.clear(!0))},[l.props.searchTerm]),o.jsx(nq.Provider,{value:l,children:o.jsx(aq.Provider,{value:c.current,children:o.jsx(rq.Provider,{value:i.nodes,children:o.jsx(sq.Provider,{value:i.dnd,children:o.jsx(qje,ae(R({backend:iEe,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager}),{children:n}))})})})})}function DEe(){const t=Te(2),n=to().props.renderContainer||Mq;let r;return t[0]!==n?(r=o.jsx(o.Fragment,{children:o.jsx(n,{})}),t[0]=n,t[1]=r):r=t[1],r}function IEe(t,e){const n=Te(5),r=_6e(t);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(q8e,{children:o.jsx(DEe,{})}),n[0]=s):s=n[0];let a;n[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(I8e,{}),n[1]=a):a=n[1];let i;return n[2]!==r||n[3]!==e?(i=o.jsxs(MEe,{treeProps:r,imperativeHandle:e,children:[s,a]}),n[2]=r,n[3]=e,n[4]=i):i=n[4],i}const AEe=v.forwardRef(IEe);function Iq(){const t=Te(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,r]=v.useState(e);new BV(n);let s;return t[1]!==n?(s={data:n,setData:r},t[1]=n,t[2]=s):s=t[2],s}function QA(t){const e=Te(37),{children:n}=t,{currentCollectionId:r,collections:s}=Tt(Ar),{selectCollectionById:a}=l7(),i=ua(),{t:l}=Gt(),{isShowDisabledCollectionsOnNavBarMenu:c}=Tt(Cr);let d;e[0]!==n?(d=o.jsx(Gn,{className:"flex m-0 p-0",asChild:!0,children:n}),e[0]=n,e[1]=d):d=e[1];let p;e[2]!==l?(p=l("Switch collections",{ns:"collections"}),e[2]=l,e[3]=p):p=e[3];let f;e[4]!==p?(f=o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5",children:p}),e[4]=p,e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(kn,{}),e[6]=m):m=e[6];let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b={height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},e[7]=b):b=e[7];const C=r!=null?r:"";let g;if(e[8]!==c||e[9]!==s||e[10]!==a){let T;e[12]!==c?(T=z=>{const{isEnabled:Y}=z;return c||Y},e[12]=c,e[13]=T):T=e[13];let L;e[14]!==c?(L=(z,Y)=>{if(c){if(z.isEnabled&&!Y.isEnabled)return-1;if(!z.isEnabled&&Y.isEnabled)return 1}return z.createdAt-Y.createdAt},e[14]=c,e[15]=L):L=e[15];let A;e[16]!==a?(A=z=>{const{collectionId:Y,isEnabled:O,title:$,isSelected:M}=z;return o.jsx(EH,{value:Y,disabled:!O,onClick:()=>{a({selectCollection:{collectionId:Y}})},children:o.jsx("span",{className:M?"font-semibold":"",children:$})},Y)},e[16]=a,e[17]=A):A=e[17],g=s.filter(T).sort(L).map(A),e[8]=c,e[9]=s,e[10]=a,e[11]=g}else g=e[11];let w;e[18]!==C||e[19]!==g?(w=o.jsx(or,{className:"code-filter",style:b,autoHide:!1,children:o.jsx(Jpe,{value:C,children:g})}),e[18]=C,e[19]=g,e[20]=w):w=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(kn,{}),e[21]=x):x=e[21];let S;e[22]!==i?(S=()=>{i("/app-settings/collections",{replace:!0})},e[22]=i,e[23]=S):S=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(zh,{className:"mr-2",size:14}),e[24]=E):E=e[24];let N;e[25]!==l?(N=l("Manage Collections",{ns:"collections"}),e[25]=l,e[26]=N):N=e[26];let _;e[27]!==S||e[28]!==N?(_=o.jsxs(rt,{onClick:S,children:[E,N]}),e[27]=S,e[28]=N,e[29]=_):_=e[29];let P;e[30]!==f||e[31]!==w||e[32]!==_?(P=o.jsxs(Wn,{forceMount:!0,sideOffset:8,align:"center",children:[f,m,w,x,_]}),e[30]=f,e[31]=w,e[32]=_,e[33]=P):P=e[33];let I;return e[34]!==d||e[35]!==P?(I=o.jsxs(Kn,{children:[d,P]}),e[34]=d,e[35]=P,e[36]=I):I=e[36],I}const LEe="_node_1usvv_1",REe="_dropCursor_1usvv_55",OEe="_mainContent_1usvv_61",$Ee="_mobileWarning_1usvv_68",zEe="_content_1usvv_83",FEe="_sidebar_1usvv_89",Aq={node:LEe,dropCursor:REe,mainContent:OEe,mobileWarning:$Ee,content:zEe,sidebar:FEe};function HEe(t){const e=Te(4),{top:n,left:r}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Pn(Aq.dropCursor,"border-slate-400 border-dashed border-t-2"),e[0]=s):s=e[0];const a=n-1;let i;return e[1]!==a||e[2]!==r?(i=o.jsx("div",{className:s,style:{top:a,left:r}}),e[1]=a,e[2]=r,e[3]=i):i=e[3],i}const BEe={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},UEe=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e,"px, ").concat(n,"px)")}},WEe=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e+10,"px, ").concat(n+10,"px)")}},VEe=v.memo(function(e){const n=Te(2);if(!e.isDragging)return null;let r;return n[0]!==e.children?(r=o.jsx("div",{style:BEe,children:e.children}),n[0]=e.children,n[1]=r):r=n[1],r});function qEe(t){const e=Te(5);let n;e[0]!==t.offset?(n=UEe(t.offset),e[0]=t.offset,e[1]=n):n=e[1];let r;return e[2]!==n||e[3]!==t.children?(r=o.jsx("div",{className:"row preview",style:n,children:t.children}),e[2]=n,e[3]=t.children,e[4]=r):r=e[4],r}function KEe(t){const e=Te(5),{count:n,mouse:r}=t;if(n>1){let s;e[0]!==r?(s=WEe(r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==s||e[3]!==n?(a=o.jsx("div",{className:"selected-count",style:s,children:n}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}else return null}const GEe=v.memo(function(e){const n=Te(9),r=to();let s;n[0]!==r||n[1]!==e.id?(s=r.get(e.id),n[0]=r,n[1]=e.id,n[2]=s):s=n[2];const a=s;if(!a)return null;const i=a.level*r.indent;let l;n[3]!==i?(l={paddingLeft:i,opacity:.5,background:"transparent"},n[3]=i,n[4]=l):l=n[4];let c;return n[5]!==r||n[6]!==a||n[7]!==l?(c=o.jsx(r.renderNode,{preview:!0,node:a,style:l,tree:r}),n[5]=r,n[6]=a,n[7]=l,n[8]=c):c=n[8],c});function YEe(t){const e=Te(13),{offset:n,mouse:r,id:s,dragIds:a,isDragging:i}=t;let l;e[0]!==s||e[1]!==a?(l=o.jsx(GEe,{id:s,dragIds:a}),e[0]=s,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==n||e[4]!==l?(c=o.jsx(qEe,{offset:n,children:l}),e[3]=n,e[4]=l,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a.length?(d=o.jsx(KEe,{mouse:r,count:a.length}),e[6]=r,e[7]=a.length,e[8]=d):d=e[8];let p;return e[9]!==i||e[10]!==c||e[11]!==d?(p=o.jsxs(VEe,{isDragging:i,children:[c,d]}),e[9]=i,e[10]=c,e[11]=d,e[12]=p):p=e[12],p}function ZEe(t){const e=Te(8),{node:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=l=>l.currentTarget.select(),e[0]=r):r=e[0];let s,a;e[1]!==n?(s=()=>n.reset(),a=l=>{l.key==="Escape"&&n.reset(),l.key==="Enter"&&n.submit(l.currentTarget.value)},e[1]=n,e[2]=s,e[3]=a):(s=e[2],a=e[3]);let i;return e[4]!==n.data.name||e[5]!==s||e[6]!==a?(i=o.jsx(Wd,{autoFocus:!0,type:"text",classNameInput:"border-0 text-[15px] w-full bg-transparent p-0",className:"!justify-start pl-1 border-0",defaultValue:n.data.name,onFocus:r,onBlur:s,onKeyDown:a}),e[4]=n.data.name,e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function XEe(t){const e=Te(27),{node:n,style:r,dragHandle:s}=t,{t:a}=Gt();let i;e[0]!==n.state?(i=Pn(Aq.node,n.state,"flex items-center w-full transition-all duration-100 ease-in"),e[0]=n.state,e[1]=i):i=e[1];let l;e[2]!==n?(l=()=>n.isInternal&&n.toggle(),e[2]=n,e[3]=l):l=e[3];let c;e[4]!==n.level?(c=n.level>0&&o.jsx("div",{}),e[4]=n.level,e[5]=c):c=e[5];let d;e[6]!==n?(d=!n.isLeaf&&!n.isOpen&&o.jsx(r0,{width:17,height:17,className:"mr-2"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==n?(p=!n.isLeaf&&n.isOpen&&o.jsx(_z,{width:17,height:17,className:"mr-2"}),e[8]=n,e[9]=p):p=e[9];let f;e[10]!==d||e[11]!==p?(f=o.jsxs("div",{children:[d,p]}),e[10]=d,e[11]=p,e[12]=f):f=e[12];let m;e[13]!==n||e[14]!==a?(m=o.jsx("div",{className:"flex items-center justify-start w-full overflow-hidden mr-4",children:n.data.isSeparator?o.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-70 w-full"}):o.jsx(o.Fragment,{children:n.isEditing?o.jsx(ZEe,{node:n}):o.jsxs("div",{className:"overflow-hidden overflow-ellipsis text-[15px] ".concat(n.data.isDisabled?"text-gray-500/60":""," "),children:[n.data.name,n.data.isClip&&o.jsx("div",{title:a("Menu is a link to a clip",{ns:"menus"}),className:"inline-block",children:o.jsx(px,{size:13,className:"inline ml-2 mt-[-3px] dark:text-slate-500 text-slate-400"})})]})})}),e[13]=n,e[14]=a,e[15]=m):m=e[15];let b;e[16]!==n?(b=o.jsx(QEe,{node:n}),e[16]=n,e[17]=b):b=e[17];let C;return e[18]!==s||e[19]!==r||e[20]!==i||e[21]!==l||e[22]!==c||e[23]!==f||e[24]!==m||e[25]!==b?(C=o.jsxs("div",{ref:s,style:r,className:i,onClick:l,children:[c,f,m,b]}),e[18]=s,e[19]=r,e[20]=i,e[21]=l,e[22]=c,e[23]=f,e[24]=m,e[25]=b,e[26]=C):C=e[26],C}function QEe(t){const e=Te(3),{node:n}=t;if(n.isLeaf){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{}),e[0]=s):s=e[0],s}let r;return e[1]!==n.isOpen?(r=n.isOpen?o.jsx(Bn,{width:22,className:"mr-3"}):o.jsx(T0,{width:22,className:"mr-3"}),e[1]=n.isOpen,e[2]=r):r=e[2],r}function JEe(t){var e=sn(1);try{const n=Te(18),{node:r,attrs:s,innerRef:a,children:i}=t,l=T4.value===r.id,{t:c}=Gt();let d;n[0]!==r.id?(d=()=>{T4.value=r.id},n[0]=r.id,n[1]=d):d=n[1];let p;n[2]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{T4.value=null},n[2]=p):p=n[2];const f="".concat(l?"bg-slate-100/90 dark:bg-gray-900/90":""," ").concat(r.isEditing?"border border-blue-400 dark:!bg-slate-900":""," ").concat(r.data.isActive?"":"not-active-background ".concat(r.isEditing?"dark:text-slate-800 bg-slate-800":"line-through dark:text-slate-600 text-slate-400"," dark:bg-slate-900 bg-slate-200")," ").concat(r.isSelected&&!r.isEditing?"dark:!bg-slate-600 dark:!text-slate-50":""," transition-all overflow-hidden");let m;n[3]===Symbol.for("react.memo_cache_sentinel")?(m=w=>w.stopPropagation(),n[3]=m):m=n[3];let b,C;n[4]!==r||n[5]!==c?(b=()=>{if(!r.isEditing){if(r.data.isClip){yo(c("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}r.edit()}},C=w=>{if(r.data.isClip){w.stopPropagation(),yo(c("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}w.key==="Enter"&&r.edit()},n[4]=r,n[5]=c,n[6]=b,n[7]=C):(b=n[6],C=n[7]);let g;return n[8]!==s||n[9]!==r.id||n[10]!==r.handleClick||n[11]!==d||n[12]!==a||n[13]!==f||n[14]!==b||n[15]!==C||n[16]!==i?(g=v.createElement("div",ae(R({},s),{key:r.id,onMouseEnter:d,onMouseLeave:p,ref:a,className:f,onFocus:m,onClick:r.handleClick,onDoubleClickCapture:b,onKeyDown:C}),i),n[8]=s,n[9]=r.id,n[10]=r.handleClick,n[11]=d,n[12]=a,n[13]=f,n[14]=b,n[15]=C,n[16]=i,n[17]=g):g=n[17],g}finally{e.f()}}function e7e(){const t=Te(26),{t:e}=Gt();gN();const n=to();let r;t[0]!==n.width?(r={width:n.width,minHeight:0,minWidth:0},t[0]=n.width,t[1]=r):r=t[1];let s;t[2]!==n||t[3]!==e?(s=n.isFiltered&&o.jsx("div",{className:"text-slate-400 text-sm rounded-sm mb-1 mt-1 flex items-center justify-center",children:o.jsx(st,{text:e("Clear found results",{ns:"common"}),className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{n.onSearchClear()},sideOffset:5,children:o.jsx(re,{className:"text-xs text-center bg-blue-200 rounded-full px-3 cursor-pointer pointer-events-auto",children:n.visibleNodes.length?o.jsxs(o.Fragment,{children:[n.visibleNodes.length<100?n.visibleNodes.length:"100+"," ",e("found",{ns:"common"})]}):o.jsx(o.Fragment,{children:e("Nothing found",{ns:"common"})})})})}),t[2]=n,t[3]=e,t[4]=s):s=t[4];const a=n.visibleNodes.length*n.rowHeight;let i;t[5]!==n.visibleNodes?(i=p=>{var f;return((f=n.visibleNodes[p])==null?void 0:f.id)||p},t[5]=n.visibleNodes,t[6]=i):i=t[6];let l;t[7]!==n?(l=n.onItemsRendered.bind(n),t[7]=n,t[8]=l):l=t[8];let c;t[9]!==n.props.className||t[10]!==n.listEl||t[11]!==n.visibleNodes.length||t[12]!==n.width||t[13]!==n.rowHeight||t[14]!==n.overscanCount||t[15]!==n.list||t[16]!==a||t[17]!==i||t[18]!==l?(c=o.jsx(CV,{className:n.props.className,outerRef:n.listEl,itemCount:n.visibleNodes.length,height:a,width:n.width,itemSize:n.rowHeight,overscanCount:n.overscanCount,itemKey:i,outerElementType:Tq,innerElementType:_q,onItemsRendered:l,ref:n.list,children:Pq}),t[9]=n.props.className,t[10]=n.listEl,t[11]=n.visibleNodes.length,t[12]=n.width,t[13]=n.rowHeight,t[14]=n.overscanCount,t[15]=n.list,t[16]=a,t[17]=i,t[18]=l,t[19]=c):c=t[19];let d;return t[20]!==r||t[21]!==n.props.onContextMenu||t[22]!==n.props.onClick||t[23]!==s||t[24]!==c?(d=o.jsxs("div",{style:r,onContextMenu:n.props.onContextMenu,onClick:n.props.onClick,tabIndex:0,children:[s,c]}),t[20]=r,t[21]=n.props.onContextMenu,t[22]=n.props.onClick,t[23]=s,t[24]=c,t[25]=d):d=t[25],d}const T4=Rt(null);function t7e({itemId:t,isExpanded:e,isActive:n,isDisabled:r,isSeparator:s,isCode:a,isImage:i,isImageData:l,isLink:c,isMasked:d,isPath:p,hasMaskedWords:f,hasEmoji:m,isFolder:b,isVideo:C,isDelete:g,detectedLanguage:w,imagePathFullRes:x,imageDataUrl:S,imageHash:E,imageWidthHeight:N,imageType:_,arrLinks:P,isCopyOrPaste:I,pathType:T,menuName:L,isDark:A,value:z=""}){var Y=sn(1);try{const{t:O}=Gt(),$=As(!1),{valuePreview:M,morePreviewLines:W,morePreviewChars:V}=L7(z),U=z==null?void 0:z.trim(),J=As(!1),H=As(""),{metadataLinkByItemId:F}=Sx(c,t),q=c&&!!(F!=null&&F.linkTitle&&(F!=null&&F.linkDomain));v.useEffect(()=>{e.value&&($.value=!1)},[e.value]),v.useEffect(()=>{p&&On("check_path",{path:U}).then(()=>{H.value=T}).catch(()=>{H.value="Error"})},[p]);const X=U.length===0;return o.jsxs(Vh,{className:Pn(I?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900",g&&"!bg-red-50 dark:!bg-red-900","px-3 pr-2 py-1.5 text-left flex flex-col select-auto relative rounded-md"),children:[o.jsx(ne,{className:"mb-0.5 ".concat(n?"":"opacity-40"),children:p?o.jsx(Tx,{theme:A?gl.vsDark:gl.github,code:U,language:"path",children:({className:te,style:ee,tokens:G,getLineProps:Z,getTokenProps:le})=>o.jsx("code",{className:"".concat(te," ").concat(H.value==="Error"?" line-through decoration-gray-300":""),style:ee,children:G.map((se,de)=>o.jsx("div",ae(R({},Z({line:se})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:se.map((ce,ye)=>o.jsx("span",ae(R({},le({token:ce})),{className:"".concat(H.value==="Error"?"opacity-60":""," select-text"),children:ce.content}),ye))}),de))})}):l?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:U,hasError:J.value,onErrorCallback:()=>{J.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),o.jsx("code",{className:"pb-0.5 select-none",children:M})]}):c&&i?o.jsxs(ne,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(U),hasError:J.value,onErrorCallback:()=>{J.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),o.jsx("code",{className:"pb-0.5",children:_h(U,P!=null?P:"")})]}):i?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[o.jsx("img",{src:x&&(_==="webp"||_==="gif")?"".concat(nh(x),"?").concat(E):S&&x?S:!S&&!x?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:O("Image size in pixels",{ns:"common"}),children:[N," ",_]})})]}):w&&a&&M?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:A,isLargeView:!1,isShowMore:e.value||W==null,isWrapped:$.value,value:e.value?U:M,language:w})}):X?o.jsx(ne,{className:"mb-0.5",children:o.jsx(Nv,{className:"self-start text-sm font-normal select-text !text-gray-400",children:L})}):o.jsx(hk,{isExpanded:e.value,isWrapped:$.value,isImageData:l,isLargeView:!1,isCode:a,isMasked:d,isImage:i,isDark:A,trimmedValue:U,valuePreview:M,hasLinkCard:q,metadataLinkByItemId:F,metadataLinkImageWidth:12,morePreviewLines:W,searchTerm:""})}),o.jsxs(ve,{className:"justify-between select-none",children:[(W||V)&&n&&!r?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{e.value=!e.value},children:o.jsx(st,{text:e.value?"":O("Show all",{ns:"common"}),isCompact:!0,isDisabled:e.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:e.value?o.jsxs(o.Fragment,{children:["- ",O("show less",{ns:"common"})]}):V?o.jsxs(o.Fragment,{children:["+",V," ",O("chars",{ns:"common"})]}):W&&o.jsxs(o.Fragment,{children:["+",W," ",O("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{$.value=!$.value},children:o.jsx(st,{text:$.value?O("No Wrap",{ns:"common"}):O("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:$.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):n?r?o.jsx(ne,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:O("Disabled",{ns:"common"})}):o.jsx(ne,{}):o.jsx(ne,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:O("Inactive",{ns:"common"})}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[X&&!s&&!b&&!i?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:O("Type:::Empty",{ns:"common"})}),o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Label",{ns:"common"})})]}):s?o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400v text-xs rounded-sm px-1.5",children:O("Type:::Separator",{ns:"common"})}):b?o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:O("Type:::Submenu",{ns:"common"})}):i?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Image",{ns:"common"})}):w?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:w}):d||f?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(f?"px-0.5":"px-1.5"),children:d?O("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}):l?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Image Base64",{ns:"common"})}):!c&&!p&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Text",{ns:"common"})}),c?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:C?O("Type:::Video",{ns:"common"}):qc(U)?O("Type:::Email",{ns:"common"}):O("Type:::Link",{ns:"common"})}):p&&H.value?o.jsx(ne,{className:"".concat(H.value==="Error"?"bg-red-300 dark:bg-red-800":" text-slate-700 dark:bg-slate-600"," dark:text-slate-300 bg-slate-200 text-xs rounded-sm px-1.5"),children:H.value==="Error"?o.jsx(st,{text:O("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-slate-300 bg-red-50 dark:!bg-red-800 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:H.value}):H.value}):m&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Emoji",{ns:"common"})})]})]})]})}finally{Y.f()}}function Lq({arrLinks:t=[],clipId:e,detectedLanguage:n,hasEmoji:r,hasMaskedWords:s,imageDataUrl:a,imageHash:i,imagePathFullRes:l,imageType:c,imageWidthHeight:d,isCode:p,isCommand:f,isWebRequest:m,isWebScraping:b,isExpanded:C,isImage:g,isImageData:w,isLargeView:x,isLink:S,isForm:E,isTemplate:N,isMasked:_,isPath:P,isVideo:I,isCopyOrPaste:T,isDark:L,isDelete:A,clipName:z,formTemplateOptions:Y,commandRequestOutput:O,isCommandRequestRunError:$,commandRequestOutputLastRunAt:M,requestOptions:W,pathType:V,value:U=""}){var H,F,q;var J=sn(1);try{const{t:X}=Gt(),te=As(!1),ee=As(!1),G=As(""),{metadataLinkByItemId:Z}=Sx(S,e),le=S&&!!(Z!=null&&Z.linkTitle&&(Z!=null&&Z.linkDomain)),se=As({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:de,morePreviewLines:ce,morePreviewChars:ye}=L7(U,g||w,x||S||P||f||m||b);v.useEffect(()=>{if(W)try{const Ee=JSON.parse(W);se.value=R(R({},se.value),Ee)}catch(Ee){}},[W]);const pe=U==null?void 0:U.trim();v.useEffect(()=>{C.value&&(ee.value=!1)},[C.value]),v.useEffect(()=>{P&&Gs("check_path",{path:pe}).then(()=>{G.value=V}).catch(()=>{G.value="Error"})},[P]);const me=x?"max-h-[600px]":"max-h-[300px]",be=pe.length===0;return o.jsxs(Vh,{className:Pn(T?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-3 pr-2 py-1.5 mx-1 text-left flex flex-col select-auto relative rounded-md",A&&"!bg-red-50 dark:!bg-red-900"),children:[o.jsx(ne,{className:"mb-0.5",children:P?o.jsx(Tx,{theme:L?gl.vsDark:gl.github,code:pe,language:"path",children:({className:Ee,style:We,tokens:qe,getLineProps:ot,getTokenProps:Ve})=>o.jsx("code",{className:"".concat(Ee," ").concat(G.value==="Error"?" line-through decoration-gray-300":""),style:We,children:qe.map((Ge,ft)=>o.jsx("div",ae(R({},ot({line:Ge})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:Ge.map((Ie,Ke)=>o.jsx("span",ae(R({},Ve({token:Ie})),{className:"".concat(G.value==="Error"?"opacity-60":""," select-text"),children:Ie.content}),Ke))}),ft))})}):w?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:pe,hasError:te.value,onErrorCallback:()=>{te.value=!0},draggable:!1,decoding:"async",className:"".concat(me," min-h-10")})}),o.jsx("code",{className:"pb-0.5 select-none",children:de})]}):S&&g?o.jsxs(ne,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(pe),hasError:te.value,onErrorCallback:()=>{te.value=!0},draggable:!1,decoding:"async",className:"".concat(me," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:_h(pe,t)})]}):g?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[o.jsx("img",{src:l&&(c==="webp"||c==="gif")?"".concat(nh(l),"?").concat(i):a&&l?a:!a&&!l?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:X("Image size in pixels",{ns:"common"}),children:[d," ",c]})})]}):n&&p&&de?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:L,isLargeView:x,isShowMore:C.value||ce==null,isWrapped:ee.value,value:C.value?pe:de,language:n})}):f&&de?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:L,isLargeView:x,isCommand:!0,isShowMore:!0,isWrapped:ee.value,autoHideScrollbar:!0,value:pe,language:"shell"}),O&&o.jsxs(ne,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border"),children:[o.jsx(Ca,{isDark:L,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:ee.value,value:O,language:"shell"}),M&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(Mh(M,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(M,"mini-minute-now",{round:"floor"})})})]})]}):(m||b)&&de?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:L,isLargeView:x,isShowMore:!0,isWrapped:ee.value,value:pe,autoHideScrollbar:!0,webRequestMethod:m?se.value.method:"URL",language:"shell"}),O&&o.jsxs(ne,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-0 rounded-md px-3 relative mb-1 border"),children:[o.jsx(Ca,{isDark:L,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:ee.value,value:O,language:$?"text":"json"}),M&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(Mh(M,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(M,"mini-minute-now",{round:"floor"})})})]})]}):E?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(KU,{formTemplateOptions:Y,clipId:e})}):N?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(GU,{formTemplateOptions:Y,clipId:e,value:U})}):be?o.jsx("code",{className:"text-gray-300",children:z}):o.jsx(hk,{isExpanded:C.value,isWrapped:ee.value,isImageData:w,isLargeView:x,isCode:p,isMasked:_,isImage:g,trimmedValue:pe,valuePreview:de,isDark:L,hasLinkCard:le,metadataLinkByItemId:Z,metadataLinkImageWidth:12,morePreviewLines:ce,searchTerm:""})}),o.jsxs(ve,{className:"justify-between select-none",children:[(m||f||b)&&O?o.jsx(ne,{className:"flex flex-row items-center rounded",children:o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ee.value=!ee.value},children:o.jsx(st,{text:ee.value?"No Wrap":"Lines Wrap",delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ee.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})}):ce||ye?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{C.value=!C.value},children:o.jsx(st,{text:C.value?"":X("Show all",{ns:"common"}),isCompact:!0,isDisabled:C.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:C.value?o.jsxs(o.Fragment,{children:["- ",X("show less",{ns:"common"})]}):ye?o.jsxs(o.Fragment,{children:["+",ye," ",X("chars",{ns:"common"})]}):ce&&o.jsxs(o.Fragment,{children:["+",ce," ",X("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ee.value=!ee.value},children:o.jsx(st,{text:ee.value?X("No Wrap",{ns:"common"}):X("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ee.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):o.jsx(ne,{}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[f&&o.jsx(ne,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:$?X("Command error",{ns:"dashboard"}):X("Type:::Command",{ns:"dashboard"})}),(m||b)&&o.jsxs(ve,{className:"gap-1",children:[o.jsxs(ne,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[m&&o.jsx("span",{children:$?X("Request error",{ns:"dashboard"}):X("Type:::Request",{ns:"dashboard"})}),b&&o.jsx("span",{children:$?X("Error",{ns:"dashboard"}):X("Type:::Scraper",{ns:"dashboard"})})]}),b&&se.value.scrapingRules&&((H=se.value.scrapingRules)==null?void 0:H.filter(Ee=>Ee.isEnable).length)>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.headers.filter(Ee=>Ee.isEnable).length})]}),m&&se.value.headers.filter(Ee=>Ee.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.headers.filter(Ee=>Ee.isEnable).length})]}),m&&((F=se.value.auth)==null?void 0:F.isEnable)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(q=se.value.auth)==null?void 0:q.type}),m&&se.value.filters.filter(Ee=>Ee.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Filters",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.filters.filter(Ee=>Ee.isEnable).length})]})]}),(_||s)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(s?"px-0.5":"px-1.5"),children:_?X("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}),n&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n}),S&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:I?X("Type:::Video",{ns:"common"}):qc(pe)?X("Type:::Email",{ns:"common"}):X("Type:::Link",{ns:"common"})}),P&&G.value&&o.jsx(ne,{className:"".concat(G.value==="Error"?"bg-red-300":"bg-slate-200"," text-xs rounded-sm px-1.5"),children:G.value==="Error"?o.jsx(st,{text:X("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:G.value}):G.value}),r&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Emoji",{ns:"common"})}),be&&!E&&!g&&o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:X("Type:::Empty",{ns:"common"})}),w&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Image Base64",{ns:"common"})}),E&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Auto Fill",{ns:"common"})}),o.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Type:::Clip",{ns:"common"}),o.jsx(px,{size:11,className:"ml-1"})]})]})]})]})}finally{J.f()}}v.memo(Lq);function n7e({isDisabled:t,isActive:e,isMenuEdit:n,isSeparator:r,isMenu:s,isFolder:a,item:i,menuName:l,isDark:c,deletingMenuItemIds:d,isClip:p}){var m,b,C;var f=sn(1);try{const{clipItems:g}=Tt(Ar),w=it(!1),[x]=Uh({}),[S]=Wh({}),{itemId:E,isImage:N,isImageData:_,isPath:P,isLink:I,isCode:T,isText:L,detectedLanguage:A,imagePathFullRes:z,imageDataUrl:Y,imageHash:O,isMasked:$,isVideo:M,hasMaskedWords:W,hasEmoji:V,imageWidth:U,imageHeight:J,imageType:H,value:F}=i,q=v.useMemo(()=>p?g.find(ee=>ee.itemId===E):null,[p,g,E]),X=v.useMemo(()=>{var ee,G;return(G=(ee=d.value)==null?void 0:ee.includes(E))!=null?G:!1},[d.value,E]),te=v.useMemo(()=>{if(!q||!q.links)return[];let ee=[];if(q.links)try{ee=JSON.parse(q.links)}catch(G){ee=[]}return ee},[q]);return n?o.jsx(tke,{isClip:p,itemId:E,value:F,isCode:T,detectedLanguage:A,isText:L,isMenu:s,isImage:N,isMasked:$,isVideo:M,isDelete:X,hasEmoji:V,imageDataUrl:Y,isDark:c,isPath:P,isLink:I,deletingMenuItemIds:d,onCancel:()=>{sh()}}):p&&(q==null?void 0:q.itemId)===E?o.jsx(Lq,{isImage:q.isImage,isLink:q.isLink,isVideo:q.isVideo,isPath:q.isPath,isForm:q.isForm,isTemplate:q.isTemplate,isCopyOrPaste:x===E||S===E,isCode:q.isCode,clipName:q.name,isCommand:q.isCommand,isWebRequest:q.isWebRequest,isWebScraping:q.isWebScraping,isExpanded:w,isDark:c,arrLinks:te,isMasked:q.isMasked,hasMaskedWords:q.hasMaskedWords,detectedLanguage:q.detectedLanguage,hasEmoji:q.hasEmoji,pathType:q.pathType,isImageData:q.isImageData,imageHash:q.imageHash,imageType:q.imageType,imageScale:q.imageScale,imagePathFullRes:q.imagePathFullRes,imageDataUrl:q.imageDataUrl,isLargeView:!1,isDelete:X,formTemplateOptions:q.formTemplateOptions,commandRequestOutput:(m=q.commandRequestOutput)==null?void 0:m.replace("[Err]",""),isCommandRequestRunError:!!((b=q.commandRequestOutput)!=null&&b.startsWith("[Err]")),commandRequestOutputLastRunAt:q.commandRequestLastRunAt,requestOptions:q.requestOptions,imageWidthHeight:q.imageWidth?"".concat(q.imageWidth,"x").concat(q.imageHeight):null,clipId:E,value:q.value}):o.jsx(t7e,{itemId:E,isDark:c,isDisabled:t,isActive:e,isCopyOrPaste:x===E||S===E,isFolder:a,isImageData:_,isCode:T,isSeparator:r,menuName:l,isExpanded:w,isImage:N,isPath:P,isLink:I,isVideo:M,isDelete:X,isMasked:$,hasMaskedWords:W,hasEmoji:V,pathType:i.pathType,detectedLanguage:A,imagePathFullRes:z,imageDataUrl:Y,imageHash:O,imageWidthHeight:U?"".concat(U,"x").concat(J):null,imageType:H,arrLinks:i.links?(C=JSON.parse(i.links))!=null?C:[]:[],value:F})}finally{f.f()}}const r7e=({menuItems:t,selectedItemIds:e,onDelete:n,showMultiSelectItems:r,collectionId:s,setSelectedItemIds:a})=>{var i=sn(1);try{const{t:l}=Gt(),{deleteMenuItemsByIds:c}=kge(),{updateMenuItemsByIds:d}=xge();Vs(["alt+s"],()=>{r.value=!r.value}),Vs(["alt+d"],()=>{a([])});const p=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&t.filter(({parentId:x})=>x===w.itemId).length===0}),[e,t]),f=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isActive===!1}),[e,t]),m=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isActive===!0}),[e,t]),b=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isDisabled===!1}),[e,t]),C=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isDisabled===!0}),[e,t]);return o.jsxs(Kn,{onOpenChange:()=>{},children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"light",id:"menu-icon-menu-button_tour",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[o.jsx(cE,{className:"stroke-[1.3px]",size:22}),e.length>1&&o.jsx(St,{variant:"slate",className:"absolute right-[-10px] top-[-10px]",children:e.length})]})}),o.jsx(Wn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:o.jsxs(jH,{children:[r.value?o.jsxs(rt,{onClick:()=>{r.value=!1},children:[o.jsx(Ez,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:l("Hide Muli Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}):o.jsxs(rt,{onClick:()=>{r.value=!0},children:[o.jsx(jz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:l("Multi Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}),o.jsxs(rt,{disabled:e.length===0,onClick:()=>{a([])},children:[o.jsx(eE,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Deselect All",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+D"})})]}),o.jsx(kn,{}),o.jsxs(rt,{onClick:()=>{On("build_system_menu")},children:[o.jsx(Oie,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Rebuild Menu",{ns:"common"})})]}),o.jsx(kn,{}),C.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isDisabled:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(Iz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Enabled",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:C.length})]}),b.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(s0,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Disabled",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:b.length})]}),(b.length>0||C.length>0)&&o.jsx(kn,{}),m.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(fx,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Inactive",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:m.length})]}),f.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!0},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(M0,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Active",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:f.length})]}),(f.length>0||m.length>0)&&o.jsx(kn,{}),o.jsxs(rt,{disabled:p.length===0,onClick:g=>ge(void 0,null,function*(){Vi.value?(yield c({itemIds:p,collectionId:s}),setTimeout(()=>{n(),a([]),r.value=!1,Vi.value=!1},400)):(g.preventDefault(),Vi.value=!0,setTimeout(()=>{Vi.value=!1},3e3))}),children:[o.jsx(kr,{className:"mr-2 h-4 w-4 ".concat(Vi.value?"text-red-500 dark:text-red-600":"")}),o.jsxs(ve,{children:[o.jsx(re,{className:"mr-1 ".concat(Vi.value?"!text-red-500 dark:!text-red-600":""),children:Vi.value?l("Click to Confirm",{ns:"common"}):l("Delete",{ns:"common"})}),p.length>0&&o.jsx(o.Fragment,{children:Vi.value?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:p.length}):o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:p.length})})]})]})]})})]})}finally{i.f()}};function s7e(){var t=sn(1);try{a7(),o7();const{t:e}=Gt(),n=wl(),r=ua(),{updateMenuItemById:s}=jx(),{isSwapPanels:a,setReturnRoute:i,setPanelSize:l,panelSize:c,getDefaultPanelWidth:d}=Tt(Ls),{updateMovedMenuItems:p}=i7(),{isCollectionWithItemLoading:f,isCollectionWithItemSuccess:m}=AB(),{currentCollectionId:b,menuItems:C,isMenuLoaded:g,getCurrentCollectionTitle:w}=Tt(Ar),{data:x,setData:S}=Iq(),{themeDark:E}=Tt(bo),[N,_]=v.useState(""),[P,I]=v.useState(null),[T,L]=v.useState([""]),[A,z]=v.useState([""]),{createNewItem:Y}=G5(!1),{linkClipIdToMenuItem:O}=yge(!1),$=jo(N,300),M=it(null),W=it(!1),V=it(!1),U=v.useRef(null),J=v.useRef(null),H=E(),F=v.useMemo(()=>g&&!f&&m,[g,f,m]),q=v.useMemo(()=>V.value,[V.value]),X=v.useMemo(()=>C.filter(G=>G.isActive),[C]);v.useEffect(()=>{i(n.pathname),sh()},[]),v.useEffect(()=>{var G;Hs!=null&&Hs.value&&!((G=C==null?void 0:C.find(({itemId:le})=>le===Hs.value))!=null&&G.isFolder)&&!ul.value&&I(Hs.value)},[Hs==null?void 0:Hs.value,ul.value]),v.useEffect(()=>{S(C.length>0?Av(C,null,q):[])},[C,q]);const te=v.useMemo(()=>C.filter(G=>!G.isActive),[C]),ee=v.useMemo(()=>{const G=le=>{var se,de;return le.name.toLowerCase().includes($.toLowerCase())?!0:(de=(se=le.children)==null?void 0:se.some(G))!=null?de:!1},Z=(le,se=0)=>{let de=[];return le.forEach(ce=>{var me,be;const ye=G(ce),pe=C.find(Ee=>Ee.itemId===ce.id);if(pe&&ye){const Ee=ae(R({},pe),{indent:se,id:ce.id});if(de.push(Ee),ce.children&&((me=ce.children)==null?void 0:me.length)>0&&!A.includes((be=ce.id)!=null?be:"")){const We=Z(ce.children,se+1);de=de.concat(We)}}}),de};return Z(x)},[x,C,A,q,$]);return v.useEffect(()=>{function G(){return ge(this,null,function*(){var Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve,Ge,ft,Ie,Ke;if(lo.value){const{type:ut,parentId:$e,clipId:ht,historyId:Fe,text:pt="",clipboardHistoryItem:Qe,orderNumber:Lt=0}=lo.value,Ut=ut===ii.FOLDER?e("New Submenu",{ns:"menus"}):ut===ii.ITEM?e("New Menu",{ns:"menus"}):ut===ii.DISABLED?e("New Disabled Menu",{ns:"menus"}):"",wt=!!ht,Xt=(Z=ee.filter(({name:we})=>we.startsWith(Ut)).length)!=null?Z:0,$t=Qe==null?void 0:Qe.isImage,tn=Fe&&(Qe!=null&&Qe.historyId)?{historyId:Fe,name:Qe!=null&&Qe.value?Qe.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():$t?"".concat(e("Image size",{ns:"common"})," (").concat(Qe==null?void 0:Qe.imageWidth,"x").concat(Qe==null?void 0:Qe.imageHeight,")"):Xt>0?"".concat(Ut," (").concat(Xt,")"):Ut,isClip:!1,isMenu:!0,value:"",isActive:!0,description:null,detectedLanguage:(le=Qe==null?void 0:Qe.detectedLanguage)!=null?le:null,isImage:(se=Qe==null?void 0:Qe.isImage)!=null?se:!1,imageDataUrl:(de=Qe==null?void 0:Qe.imageDataUrl)!=null?de:null,imagePathFullRes:(ce=Qe==null?void 0:Qe.imagePathFullRes)!=null?ce:null,imageHeight:(ye=Qe==null?void 0:Qe.imageHeight)!=null?ye:null,imageWidth:(pe=Qe==null?void 0:Qe.imageWidth)!=null?pe:null,imagePreviewHeight:(me=Qe==null?void 0:Qe.imagePreviewHeight)!=null?me:null,isLink:(be=Qe==null?void 0:Qe.isLink)!=null?be:!1,links:(Ee=Qe==null?void 0:Qe.links)!=null?Ee:null,isImageData:(We=Qe==null?void 0:Qe.isImageData)!=null?We:!1,isMasked:(qe=Qe==null?void 0:Qe.isMasked)!=null?qe:!1,isVideo:(ot=Qe==null?void 0:Qe.isVideo)!=null?ot:!1,isCode:(Ve=Qe==null?void 0:Qe.isCode)!=null?Ve:!1,isText:(Ge=Qe==null?void 0:Qe.isText)!=null?Ge:!1,hasEmoji:(ft=Qe==null?void 0:Qe.hasEmoji)!=null?ft:!1,hasMaskedWords:(Ie=Qe==null?void 0:Qe.hasMaskedWords)!=null?Ie:!1,hasMultiLineCopy:!1,showDescription:!1,isDeleted:!1,indent:0,parentId:$e!=null?$e:null,tabId:null,collectionId:b,createdAt:0,orderNumber:Lt+1}:{name:Xt>0?"".concat(Ut," (").concat(Xt,")"):Ut,isClip:wt,isMenu:!0,value:pt,description:null,isActive:!0,isFolder:ut===ii.FOLDER,isSeparator:ut===ii.SEPARATOR,isDisabled:ut===ii.DISABLED,isText:!0,isDeleted:!1,indent:0,parentId:$e!=null?$e:null,tabId:null,collectionId:b,createdAt:0,orderNumber:Lt+1},Pt=wt?yield O({clipId:ht,item:tn}):yield Y({item:tn});(Ke=Qe==null?void 0:Qe.linkMetadata)!=null&&Ke.metadataId&&!wt&&(yield On("copy_link_metadata_to_new_item_id",{metadataId:Qe.linkMetadata.metadataId,itemId:Pt}));const Ue=Av(C,null,!0);Ue.unshift(ae(R({},tn),{id:Pt}));const Je=p6(Ue,$e!=null?$e:null,[Pt],$e&&Lt>0?Lt-1:Lt),jt=Je==null?void 0:Je.map(({id:we,parentId:Se,orderNumber:De})=>({itemId:we,parentId:Se,tabId:null,collectionId:b,orderNumber:De}));p({updatedMoveMenuItems:jt}),ho.value=!1,lo.value=null,L([]),ii.FOLDER!==ut&&ii.DISABLED!==ut&&ii.SEPARATOR!==ut&&I(Pt),ii.SEPARATOR!==ut&&!wt&&(Hs.value=Pt,ul.value=!0)}})}G()},[lo.value]),v.useEffect(()=>{cd.value&&(I(cd.value),setTimeout(()=>{cd.value=null},2e3))},[cd.value,J==null?void 0:J.current]),v.useEffect(()=>{var G;J!=null&&J.current&&((G=J==null?void 0:J.current)==null||G.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[J==null?void 0:J.current]),o.jsx(Sk,{children:o.jsxs(aN,{minSize:260,maxSize:700,defaultSize:d(),swapPanes:a,onResize:l,autoSaveId:"app-main-panel",children:[o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-4 pt-4 px-3 pr-3",children:o.jsx(Lh,{disableWidth:!0,children:({height:G})=>G&&G>0&&!f&&b&&o.jsxs(ne,{className:"flex flex-col h-[calc(100vh-95px)] relative",id:"side-panel_tour",children:[x.length>0?o.jsx(ne,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-2",id:"menu-find_tour",children:o.jsx(Wd,{placeholder:"".concat(e("Find in menu",{ns:"menus"}),"..."),type:"search",ref:U,onChange:Z=>{_(Z.target.value)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"})}):F&&C.length===0&&o.jsx(ve,{style:{height:G-85},className:"flex items-center flex-col gap-3 justify-center",children:o.jsx(re,{className:"animate-in fill-mode-forwards fade-in text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:e("No Menu Items",{ns:"menus"})})}),o.jsxs(or,{style:{maxHeight:G-93},autoHide:!0,children:[o.jsx(AEe,{data:x,rowHeight:33,selectedIds:T,closedFolderItemIds:A,renderCursor:HEe,renderContainer:e7e,renderDragPreview:YEe,onMove:({dragIds:Z,index:le,parentId:se})=>{const de=p6(x,se,Z,le),ce=de==null?void 0:de.map(({id:ye,parentId:pe,orderNumber:me})=>({itemId:ye,parentId:pe,tabId:null,collectionId:b,orderNumber:me}));p({updatedMoveMenuItems:ce})},onSelect:Z=>{const le=Z.map(de=>de.id);le.length===T.length&&le.every(de=>T.includes(de))||L(le)},onFolderClose:Z=>{z(le=>[...le,Z])},onFolderOpen:Z=>{z(le=>le.filter(se=>se!==Z))},onRename:se=>ge(this,[se],function*({id:Z,name:le}){var ce;if(le.length<1){yield yo(e("Menu label cannot be empty.",{ns:"menus"}),"PasteBar");return}if(le.length>M1){yield yo("".concat(e("Menu label is too long. Max length is",{ns:"menus"})," ").concat(M1,"."),"PasteBar");return}if((ce=C.find(ye=>ye.itemId===Z))==null?void 0:ce.isClip){yield yo(e("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}yield s({updatedItem:{itemId:Z,name:le}})}),onSearchClear:()=>{var Z;_(""),U!=null&&U.current&&(U.current.value="",(Z=U==null?void 0:U.current)==null||Z.focus())},searchMatch:(Z,le)=>{const se=Z.data.name;return typeof se=="string"?se.toLowerCase().includes(le.toLowerCase()):!1},renderRow:JEe,searchTerm:$,disableDrop:()=>!1,children:XEe}),!$&&X.length>1&&x.length>0&&o.jsx(re,{className:"!text-gray-400/80 border-t border-gray-300/70 dark:border-gray-600/70 !block text-center !text-[12px] mt-2 pt-1 whitespace-nowrap overflow-hidden text-ellipsis",children:e("Drag items to reorder, double click to rename",{ns:"menus"})})]}),o.jsx(ne,{className:"flex-1 mt-3"}),o.jsxs(pl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:n.pathname,onValueChange:Z=>{r(Z,{replace:!0})},children:[o.jsxs(Xo,{className:"self-center",id:"tabs-menu_tour",children:[o.jsx(jr,{value:"/history",className:"min-w-[90px]",children:c{var Z;_(""),U!=null&&U.current&&U.current.value&&(U.current.value="",(Z=U==null?void 0:U.current)==null||Z.focus())},showMultiSelectItems:W,setSelectedItemIds:L,selectedItemIds:T})]})]})})})}),o.jsx(iN,{children:F&&o.jsx(ne,{className:"h-[calc(100vh-70px)] select-none flex flex-col bg-slate-50 border shadow-sm rounded-xl dark:bg-gray-900/60 dark:border-gray-800 dark:shadow-slate-700/[.7]",children:o.jsx(Lh,{disableWidth:!0,children:({height:G})=>G&&o.jsxs(ne,{className:"p-4 py-4 pb-2 select-auto",id:"menu-main-list_tour",children:[o.jsxs(ve,{className:"justify-center relative h-8 pt-2 select-none",children:[te.length>0&&o.jsx(je,{variant:"ghost",id:"toggle-inactive-menu-items_tour",className:"bg-slate-200 p-1.5 text-slate-500 dark:bg-slate-700 dark:hover:bg-slate-700/80 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 left-1",onClick:()=>{V.value=!q},children:o.jsx(st,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:e("Toggle inactive menu items",{ns:"menus"}),children:o.jsxs(ne,{className:"relative",children:[q?o.jsx(fx,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-300/80 dark:text-slate-500"}):o.jsx(M0,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-500 dark:text-slate-300/80"}),o.jsx(St,{className:"absolute right-[-16px] top-[-17px] ".concat(q?"bg-slate-400/80 dark:bg-slate-600 text-slate-100 dark:text-slate-400/80":"bg-slate-300/80 dark:bg-slate-700 dark:text-slate-200/80 text-slate-500"),variant:"".concat(q?"default":"outline"),children:te.length})]})})}),!ho.value||X.length===0?o.jsx(ne,{className:"text-[13px] select-none",children:X.length>0?o.jsxs(re,{className:"gap-1",children:[o.jsx("span",{className:"font-semibold",children:X.length}),o.jsxs("span",{children:[te.length>0?e("active",{ns:"menus"}):""," ",e("menu items in",{ns:"menus"})]}),o.jsx(QA,{children:o.jsx("span",{className:"font-semibold underline cursor-pointer select-none",children:w()})})]}):o.jsxs(re,{className:"gap-1",children:[o.jsx("span",{children:e("No {{hasActive}} menu items in",{ns:"menus",hasActive:te.length>0?e("active",{ns:"menus"}):""})}),o.jsx(QA,{children:o.jsx("span",{className:"font-semibold underline cursor-pointer",children:w()})})]})}):o.jsx(ne,{className:"text-[13px]",children:o.jsx(re,{className:"text-center",children:e("Select item to add a menu after",{ns:"menus"})})}),X.length>0&&o.jsx(Pw,{isMainCreateMenu:!0,isDark:H,showEditMenuItemId:Hs,isCreatingMenuItem:ho})]}),X.length===0&&o.jsx(ve,{className:"mt-6 flex-col select-none",children:o.jsxs(ne,{children:[o.jsx(Pw,{isFistItemsCreateMenu:!0,isDark:H,showEditMenuItemId:Hs,isCreatingMenuItem:ho}),o.jsx(re,{className:"text-sm mt-4 !text-slate-500",children:e("Create Menu",{ns:"menus"})})]})}),o.jsx(Ln,{h:2}),o.jsxs(or,{style:{height:G-75},autoHide:!0,className:"select-none",children:[o.jsx(gB,{type:"single",collapsible:!0,value:P!=null?P:"",className:"flex items-center flex-col select-none",children:ee.map((Z,le)=>Z.itemId&&o.jsx(n7,{ref:cd.value===Z.itemId?J:null,value:Z.itemId,children:o.jsx(AW,{label:Z.name,setOpenItemId:I,setSelectedItemIds:L,isLastItem:le===ee.length-1,deletingMenuItemIds:M,isFirstItem:le===0,showEditMenuItemId:Hs,hasChildren:Z.hasChildren,isSeparator:Z.isSeparator,showMultiSelectItems:W,hasSelectedItems:T.length>0,isDark:H,deselectItemById:se=>{L(T.filter(de=>de!==se))},selectItemById:se=>{L(de=>[...de,se])},id:Z.itemId,item:Z,isClip:Z.isClip,isForm:Z.isForm&&Z.isClip,isWebRequest:Z.isWebRequest&&Z.isClip,isWebScraping:Z.isWebScraping&&Z.isClip,isCommand:Z.isCommand&&Z.isClip,isCreatingMenuItem:ho,indent:Z.indent,onFolderClose:se=>{z(de=>[...de,se])},onFolderOpen:se=>{z(de=>de.filter(ce=>ce!==se))},isClosedFolder:A.includes(Z.itemId),isSelected:T.includes(Z.itemId),hasMultipleSelectedItems:T.length>1,isOpen:P===Z.itemId,children:o.jsx(n7e,{menuName:Z.name,isDisabled:Z.isDisabled,isMenuEdit:Hs.value===Z.itemId,isActive:Z.isActive,isDark:H,isMenu:Z.isMenu,isCode:Z.isCode,isSeparator:Z.isSeparator,isFolder:Z.isFolder,isText:Z.isText,isClip:Z.isClip,deletingMenuItemIds:M,item:Z})})},"".concat(Z.itemId)))}),o.jsx(Ln,{h:3})]})]})})})})]},a?"swap":"no-swap")})}finally{t.f()}}function a7e(){const t=Te(37),{returnRoute:e}=Tt(Ls),{t:n}=Gt();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(zh,{className:"mr-2"}),t[0]=r):r=t[0];let s;t[1]!==n?(s=n("PasteBar Settings",{ns:"settings"}),t[1]=n,t[2]=s):s=t[2];let a;t[3]!==s?(a=o.jsx(ne,{className:"flex flex-rowrounded-md p-0 items-center justify-end pr-5 h-[40px]",children:o.jsxs(re,{className:"text-lg font-semibold text-center flex items-center",children:[r,s]})}),t[3]=s,t[4]=a):a=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(Ln,{h:3}),t[5]=i):i=t[5];let l;t[6]!==n?(l=o.jsx(Pp,{to:"/app-settings/history",replace:!0,id:"app-settings-history_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 py-3 text-lg justify-end text-right items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Clipboard History Settings",{ns:"settings"})})}}),t[6]=n,t[7]=l):l=t[7];let c;t[8]!==n?(c=o.jsx(Pp,{to:"/app-settings/collections",replace:!0,id:"app-settings-collections_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Manage Collections",{ns:"settings"})})}}),t[8]=n,t[9]=c):c=t[9];let d;t[10]!==n?(d=o.jsx(Pp,{to:"/app-settings/preferences",replace:!0,id:"app-settings-preferences_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("User Preferences",{ns:"settings"})})}}),t[10]=n,t[11]=d):d=t[11];let p;t[12]!==n?(p=o.jsx(Pp,{to:"/app-settings/security",replace:!0,id:"app-settings-security_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Security",{ns:"settings"})})}}),t[12]=n,t[13]=p):p=t[13];let f;t[14]!==n?(f=o.jsx(Pp,{to:"/app-settings/license",replace:!0,id:"app-settings-license_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("License",{ns:"settings"})})}}),t[14]=n,t[15]=f):f=t[15];let m;t[16]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Ln,{h:6}),t[16]=m):m=t[16];let b;t[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(ve,{className:"mr-5 justify-end",children:o.jsx(GE,{decorative:!0,className:"bg-gray-300 dark:bg-gray-600"})}),t[17]=b):b=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Ln,{h:6}),t[18]=C):C=t[18];let g;t[19]!==n?(g=n("Back",{ns:"common"}),t[19]=n,t[20]=g):g=t[20];let w;t[21]!==g?(w=o.jsx(ne,{className:"pr-5 font-right text-right py-3 text-md animate fade-in transition-fonts duration-100",children:o.jsx(je,{variant:"secondary",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",children:g})}),t[21]=g,t[22]=w):w=t[22];let x;t[23]!==e||t[24]!==w?(x=o.jsx(Pp,{to:e,replace:!0,id:"app-settings-back_tour",children:w}),t[23]=e,t[24]=w,t[25]=x):x=t[25];let S;t[26]!==a||t[27]!==l||t[28]!==c||t[29]!==d||t[30]!==p||t[31]!==f||t[32]!==x?(S=o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] py-6 px-3 pr-3",children:o.jsxs(ne,{className:"animate-in fade-in",children:[a,i,l,c,d,p,f,m,b,C,x]})})}),t[26]=a,t[27]=l,t[28]=c,t[29]=d,t[30]=p,t[31]=f,t[32]=x,t[33]=S):S=t[33];let E;t[34]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(iN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-50 border-0 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:o.jsx(F7,{})})}),t[34]=E):E=t[34];let N;return t[35]!==S?(N=o.jsx(Sk,{children:o.jsx(ne,{className:"w-full",children:o.jsxs(aN,{minSize:290,maxSize:360,defaultSize:290,autoSaveId:"app-main-panel-settings",children:[S,E]})})}),t[35]=S,t[36]=N):N=t[36],N}function o7e(t){const e=Te(19),{id:n,language:r}=t;let s;e[0]!==n?(s={id:n},e[0]=n,e[1]=s):s=e[1];const{attributes:a,listeners:i,setNodeRef:l,transform:c,transition:d,isDragging:p}=p5(s);let f;e[2]!==c?(f=Yo.Transform.toString(c),e[2]=c,e[3]=f):f=e[3];let m;e[4]!==f||e[5]!==d?(m={transform:f,transition:d},e[4]=f,e[5]=d,e[6]=m):m=e[6];const b=m,C=p?"z-100 opacity-70":"z-auto opacity-100";let g;e[7]!==r?(g=o.jsx(ve,{className:"items-center justify-center ml-2",children:o.jsx(re,{children:r})}),e[7]=r,e[8]=g):g=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(je,{variant:"ghost",size:"sm",className:"opacity-40 hover:opacity-90",children:o.jsx(hx,{size:20})}),e[9]=w):w=e[9];let x;e[10]!==g?(x=o.jsxs(ve,{className:"items-center justify-between p-2 border rounded mb-2 dark:bg-slate-900 bg-slate-50",children:[g,w]}),e[10]=g,e[11]=x):x=e[11];let S;return e[12]!==l||e[13]!==b||e[14]!==a||e[15]!==i||e[16]!==C||e[17]!==x?(S=o.jsx("div",ae(R(R({ref:l,style:b},a),i),{className:C,children:x})),e[12]=l,e[13]=b,e[14]=a,e[15]=i,e[16]=C,e[17]=x,e[18]=S):S=e[18],S}function i7e(){const t=Te(64),{isHistoryEnabled:e,setIsHistoryEnabled:n,isHistoryAutoUpdateOnCaputureEnabled:r,setIsHistoryAutoUpdateOnCaputureEnabled:s,setIsExclusionListEnabled:a,historyExclusionList:i,autoMaskWordsList:l,isExclusionListEnabled:c,setHistoryExclusionList:d,setAutoMaskWordsList:p,isAutoMaskWordsListEnabled:f,isAutoPreviewLinkCardsEnabled:m,setIsAutoPreviewLinkCardsEnabled:b,isAutoFavoriteOnDoubleCopyEnabled:C,setIsAutoFavoriteOnDoubleCopyEnabled:g,setIsAutoMaskWordsListEnabled:w,setHistoryDetectLanguagesEnabledList:x,setHistoryDetectLanguagesPrioritizedList:S,setIsHistoryDetectLanguageEnabled:E,isHistoryDetectLanguageEnabled:N,historyDetectLanguagesEnabledList:_,historyDetectLanguagesPrioritizedList:P,historyDetectLanguageMinLines:I,setHistoryDetectLanguageMinLines:T,isAutoClearSettingsEnabled:L,setIsAutoClearSettingsEnabled:A,autoClearSettingsDuration:z,setAutoClearSettingsDuration:Y,autoClearSettingsDurationType:O,setAutoClearSettingsDurationType:$,isAppReady:M,CONST:W}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:V}=W,{returnRoute:U}=Tt(Ls),{t:J}=Gt(),[H,F]=v.useState(""),[q,X]=v.useState(""),[te,ee]=v.useState(!1),G=jo(H,300),Z=jo(q,300);let le;t[0]===Symbol.for("react.memo_cache_sentinel")?(le=[],t[0]=le):le=t[0];const[se,de]=v.useState(le);let ce,ye;t[1]!==P||t[2]!==_?(ce=()=>{mC(P)&&!mC(_)?de(_):mC(P)||de(P)},ye=[_,P],t[1]=P,t[2]=_,t[3]=ce,t[4]=ye):(ce=t[3],ye=t[4]),v.useEffect(ce,ye);let pe;t[5]!==M||t[6]!==d||t[7]!==G?(pe=()=>{M&&d($y(G))},t[5]=M,t[6]=d,t[7]=G,t[8]=pe):pe=t[8];let me;t[9]!==G||t[10]!==M?(me=[G,M],t[9]=G,t[10]=M,t[11]=me):me=t[11],v.useEffect(pe,me);let be;t[12]!==M||t[13]!==p||t[14]!==Z?(be=()=>{M&&p($y(Z))},t[12]=M,t[13]=p,t[14]=Z,t[15]=be):be=t[15];let Ee;t[16]!==Z||t[17]!==M?(Ee=[Z,M],t[16]=Z,t[17]=M,t[18]=Ee):Ee=t[18],v.useEffect(be,Ee);let We;t[19]!==M||t[20]!==i||t[21]!==l?(We=()=>{M&&(F(i),X(l))},t[19]=M,t[20]=i,t[21]=l,t[22]=We):We=t[22];let qe;t[23]!==M?(qe=[M],t[23]=M,t[24]=qe):qe=t[24],v.useEffect(We,qe);let ot;t[25]===Symbol.for("react.memo_cache_sentinel")?(ot={days:[1,2,3,4,5,6],weeks:[1,2,3],months:[1,3,6,8],year:[1,2]},t[25]=ot):ot=t[25];const Ve=ot;let Ge;t[26]!==J?(Ge=function(ut,$e){const Fe={days:ut===1?J("Day",{ns:"calendar"}):J("Days",{ns:"calendar"}),weeks:ut===1?J("Week",{ns:"calendar"}):J("Weeks",{ns:"calendar"}),months:ut===1?J("Month",{ns:"calendar"}):J("Months",{ns:"calendar"}),year:ut===1?J("Year",{ns:"calendar"}):J("Years",{ns:"calendar"})}[$e];return"".concat(ut," ").concat(Fe)},t[26]=J,t[27]=Ge):Ge=t[27];const ft=Ge;let Ie;return t[28]!==J||t[29]!==U||t[30]!==e||t[31]!==n||t[32]!==r||t[33]!==s||t[34]!==C||t[35]!==g||t[36]!==m||t[37]!==b||t[38]!==c||t[39]!==a||t[40]!==d||t[41]!==H||t[42]!==f||t[43]!==w||t[44]!==p||t[45]!==q||t[46]!==te||t[47]!==N||t[48]!==E||t[49]!==I||t[50]!==T||t[51]!==V||t[52]!==_||t[53]!==x||t[54]!==se||t[55]!==S||t[56]!==L||t[57]!==A||t[58]!==O||t[59]!==$||t[60]!==Y||t[61]!==z||t[62]!==ft?(Ie=o.jsx(Lh,{disableWidth:!0,children:Ke=>{const{height:ut}=Ke;return ut&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:J("Clipboard History Settings",{ns:"settings"})}),o.jsx(lu,{to:U,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:J("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:ut-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl",children:o.jsxs(cr,{className:"".concat(!e&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Capture History",{ns:"settings"})}),o.jsx(ns,{checked:e,className:"ml-auto",onCheckedChange:()=>{n(!e)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable history capture",{ns:"settings"})})})]})}),e&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!r&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Update on Capture",{ns:"settings"})}),o.jsx(ns,{checked:r,className:"ml-auto",onCheckedChange:()=>{s(!r)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable auto update on capture",{ns:"settings"})})})]})}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!C&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Star on Double Copy",{ns:"settings"})}),o.jsx(ns,{checked:C,className:"ml-auto",onCheckedChange:()=>{g(!C)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.",{ns:"settings"})})})]})}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!m&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Preview Link on Hover",{ns:"settings"})}),o.jsx(ns,{checked:m,className:"ml-auto",onCheckedChange:()=>{b(!m)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.",{ns:"settings"})})})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Stop Words List",{ns:"settings"})}),o.jsx(ns,{checked:c,className:"ml-auto",onCheckedChange:()=>{a(!c)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground mb-2",children:J("Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.",{ns:"settings"})}),o.jsx(Co,{className:"text-sm",isDisabled:!c,label:J("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,rows:5,maxRows:15,enableEmoji:!1,onBlur:()=>{d($y(H))},onChange:$e=>{F($e.target.value)},value:H})]})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!f&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto Masking Words List",{ns:"settings"})}),o.jsx(ns,{checked:f,className:"ml-auto",onCheckedChange:()=>{w(!f)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground mb-2",children:J("Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.",{ns:"settings"})}),o.jsx(Co,{className:"text-sm",label:J("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,isDisabled:!f,rows:5,maxRows:15,enableEmoji:!1,onFocus:()=>{ee(!0)},onBlur:()=>{p($y(q)),ee(!1)},onChange:$e=>{X($e.target.value)},value:te?q:Ch(q)})]})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!N&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Programming Language Detection",{ns:"settings"})}),o.jsx(ns,{checked:N,className:"ml-auto",onCheckedChange:()=>{E(!N)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable programming language detection",{ns:"settings"})})})]})})]}),e&&N&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"max-w-xl mt-4 animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Minimum number of lines to trigger detection",{ns:"settings"})})}),o.jsx(pr,{children:o.jsx(wn,{className:"text-md !w-36",error:void 0,small:!0,label:J("Number of lines",{ns:"common"}),value:I,onChange:$e=>{const ht=$e.target.value;if(ht==="")T(0);else{const Fe=parseInt(ht);Fe&&T(Fe)}}})})]})}),o.jsx(ne,{className:"mt-4 max-w-2xl animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full",children:[J("Programming Language Selection",{ns:"settings"}),o.jsx(re,{className:"mt-2 text-sm text-muted-foreground",children:J("To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.",{ns:"settings"})})]})}),o.jsx(pr,{children:o.jsx(ne,{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 py-2",children:V.map(($e,ht)=>o.jsx("button",{className:"flex",onClick:()=>{if(_.length>=7&&!_.includes($e))return;x(_.includes($e)?_.filter(pt=>pt!==$e):_.concat([$e]));const Fe=se.includes($e)?se.filter(pt=>pt!==$e):se.concat([$e]);de(Fe.filter(Boolean)),S(Fe.filter(Boolean))},children:o.jsx(R6,{label:$e,checked:_.includes($e)})},ht))})})]})}),se.length>0&&o.jsx(ne,{className:"mt-4 max-w-2xl animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full",children:[J("Prioritize Language Detection",{ns:"settings"}),o.jsx(re,{className:"mt-2 text-sm text-muted-foreground",children:J("Drag and drop to prioritize languages for detection. The higher a language is in the list, the higher its detection priority.",{ns:"settings"})})]})}),o.jsx(pr,{children:o.jsx(W8,{collisionDetection:a$,onDragEnd:$e=>{const{active:ht,over:Fe}=$e;Fe!=null&&Fe.id&&ht.id!==(Fe==null?void 0:Fe.id)&&de(pt=>{const Qe=pt.indexOf(ht.id.toString()),Lt=pt.indexOf(Fe.id.toString()),Ut=Wr(pt,Qe,Lt);return Sse(pt,Ut)||S(Ut),Ut})},children:o.jsx(D2,{items:se,strategy:VJ,children:se.map($e=>$e&&o.jsx(o7e,{id:$e,language:$e},$e))})})})]})})]}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!L&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Clear Settings",{ns:"settings"})}),o.jsx(ns,{checked:L,className:"ml-auto",onCheckedChange:()=>{A(!L)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Configure settings to automatically delete clipboard history items after a specified duration.",{ns:"settings"})}),L&&o.jsxs(ve,{className:"mt-6 row justify-start",children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Auto-delete clipboard history after",{ns:"settings"})}),o.jsx(ve,{className:"mx-2",children:o.jsxs(BM,{value:O,onValueChange:$e=>{$($e),Y(1)},children:[o.jsx(T6,{children:o.jsx(UM,{placeholder:"Select"})}),o.jsxs(P6,{children:[o.jsx(Bp,{value:"days",children:o.jsx("span",{className:"font-medium",children:J("Days",{ns:"calendar"})})}),o.jsx(Bp,{value:"weeks",children:o.jsx("span",{className:"font-medium",children:J("Weeks",{ns:"calendar"})})}),o.jsx(Bp,{value:"months",children:o.jsx("span",{className:"font-medium",children:J("Months",{ns:"calendar"})})}),o.jsx(Bp,{value:"year",children:o.jsx("span",{className:"font-medium",children:J("Years",{ns:"calendar"})})})]})]})}),o.jsx(ve,{children:o.jsxs(BM,{value:z.toString(),onValueChange:$e=>{Y(Number($e))},children:[o.jsx(T6,{children:o.jsx(UM,{placeholder:"Select"})}),o.jsx(P6,{children:Ve[O].map($e=>o.jsx(Bp,{value:$e.toString(),children:o.jsx("span",{className:"font-medium whitespace-nowrap",children:ft($e,O)})},$e))})]})})]})]})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:U,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:J("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})}}),t[28]=J,t[29]=U,t[30]=e,t[31]=n,t[32]=r,t[33]=s,t[34]=C,t[35]=g,t[36]=m,t[37]=b,t[38]=c,t[39]=a,t[40]=d,t[41]=H,t[42]=f,t[43]=w,t[44]=p,t[45]=q,t[46]=te,t[47]=N,t[48]=E,t[49]=I,t[50]=T,t[51]=V,t[52]=_,t[53]=x,t[54]=se,t[55]=S,t[56]=L,t[57]=A,t[58]=O,t[59]=$,t[60]=Y,t[61]=z,t[62]=ft,t[63]=Ie):Ie=t[63],Ie}function l7e(t){const e=Te(49),{open:n,onClose:r,setIsDeleteAllItemsInCollection:s,onConfirm:a}=t,{t:i}=Gt();let l;e[0]!==i?(l=i("Confirm Delete",{ns:"common"}),e[0]=i,e[1]=l):l=e[1];let c;e[2]!==l?(c=o.jsx("h1",{className:"m-0",children:l}),e[2]=l,e[3]=c):c=e[3];let d;e[4]!==r||e[5]!==c?(d=o.jsx(Yn.Header,{handleClose:r,children:c}),e[4]=r,e[5]=c,e[6]=d):d=e[6];let p;e[7]!==i?(p=i("Are you sure you want to delete this collection?",{ns:"collections"}),e[7]=i,e[8]=p):p=e[8];let f;e[9]!==p?(f=o.jsx(re,{className:"font-semibold",children:p}),e[9]=p,e[10]=f):f=e[10];let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Ln,{h:3}),e[11]=m):m=e[11];let b;e[12]!==i?(b=i("Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.",{ns:"collections"}),e[12]=i,e[13]=b):b=e[13];let C;e[14]!==b?(C=o.jsx(re,{className:"font-light",children:b}),e[14]=b,e[15]=C):C=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(Ln,{h:3}),e[16]=g):g=e[16];let w;e[17]!==s?(w=z=>{s(z)},e[17]=s,e[18]=w):w=e[18];let x;e[19]!==i?(x=i("Delete all menu items within this collection",{ns:"collections"}),e[19]=i,e[20]=x):x=e[20];let S;e[21]!==w||e[22]!==x?(S=o.jsx(pE,{color:"danger",onChange:w,children:x}),e[21]=w,e[22]=x,e[23]=S):S=e[23];let E;e[24]!==f||e[25]!==C||e[26]!==S?(E=o.jsxs(Yn.Content,{children:[f,m,C,g,S]}),e[24]=f,e[25]=C,e[26]=S,e[27]=E):E=e[27];let N;e[28]!==i?(N=i("Cancel",{ns:"common"}),e[28]=i,e[29]=N):N=e[29];let _;e[30]!==r||e[31]!==N?(_=o.jsx(je,{variant:"ghost",type:"button",onClick:r,children:N}),e[30]=r,e[31]=N,e[32]=_):_=e[32];let P;e[33]!==i?(P=i("Delete Collection",{ns:"collections"}),e[33]=i,e[34]=P):P=e[34];let I;e[35]!==a||e[36]!==P?(I=o.jsx(je,{variant:"danger",type:"submit",onClick:a,children:P}),e[35]=a,e[36]=P,e[37]=I):I=e[37];let T;e[38]!==_||e[39]!==I?(T=o.jsx(Yn.Footer,{children:o.jsxs("div",{className:"flex w-full justify-end gap-x-2",children:[_,I]})}),e[38]=_,e[39]=I,e[40]=T):T=e[40];let L;e[41]!==d||e[42]!==E||e[43]!==T?(L=o.jsxs(Yn.Body,{children:[d,E,T]}),e[41]=d,e[42]=E,e[43]=T,e[44]=L):L=e[44];let A;return e[45]!==n||e[46]!==r||e[47]!==L?(A=o.jsx(Yn,{open:n,handleClose:r,children:L}),e[45]=n,e[46]=r,e[47]=L,e[48]=A):A=e[48],A}function c7e(t){const e=Te(20),{showAddNewCollection:n}=t,{t:r}=Gt(),{createNewCollection:s,createNewCollectionSuccess:a}=fge(),[i,l]=v.useState(""),[c,d]=v.useState(!0),[p,f]=v.useState(""),m=ua(),b=qh(),[C,g]=v.useState(n),[w,x]=v.useState(!1);let S;e[0]!==a||e[1]!==m?(S=()=>{a&&(l(""),f(""),g(!1),m("/history",{replace:!0}))},e[0]=a,e[1]=m,e[2]=S):S=e[2];let E;e[3]!==a?(E=[a],e[3]=a,e[4]=E):E=e[4],v.useEffect(S,E);let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{l(""),f(""),d(!0)},e[5]=N):N=e[5];let _;e[6]!==C?(_=[C],e[6]=C,e[7]=_):_=e[7],v.useEffect(N,_);const P="".concat(C?"border-blue-300 border-2":"opacity-80 justify-center items-center bg-transparent border-2 border-dashed border-gray-300 dark:border-gray-700 min-h-[130px]");let I;e[8]!==C||e[9]!==w||e[10]!==r||e[11]!==i||e[12]!==s||e[13]!==p||e[14]!==c||e[15]!==b?(I=C?o.jsxs(o.Fragment,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:o.jsx(ar,{className:"animate-in fade-in text-md w-full",children:o.jsx(wn,{small:!0,autoFocus:!0,error:w?r("Title too short",{ns:"collections"}):void 0,name:"title",maxLength:50,onKeyDown:L=>{if(L.stopPropagation(),L.key==="Enter"){if(i.length<3){x(!0);return}s({createCollection:{title:i,isSelected:!1,description:p}})}},placeholder:r("Enter collection title",{ns:"collections"}),label:r("Collection Title",{ns:"collections"}),value:i,onChange:L=>{w&&L.target.value.length>3&&x(!1),l(L.target.value)}})})}),o.jsxs(pr,{children:[o.jsx(Co,{enableEmojiInside:!0,enableEmoji:!1,placeholder:r("Add a description for your collection",{ns:"collections"}),rows:2,maxRows:4,maxLength:200,label:r("Description",{ns:"collections"}),value:p,onChange:L=>{f(L.target.value)}}),o.jsx(ve,{className:"items-center justify-start mt-2 ml-[-8px]",children:o.jsx(pE,{color:"default",checked:c,classNameLabel:"py-1",onChange:L=>{d(L)},children:o.jsx(Nv,{size:"sm",children:r("Add default menu, tab and board",{ns:"collections"})})})})]}),o.jsxs(SE,{className:"flex flex-row items-center justify-between space-y-0",children:[o.jsx(ne,{}),o.jsxs(ve,{className:"min-h-[30px]",children:[o.jsx(je,{size:"xs",variant:"link",onClick:()=>{g(!1)},children:r("Cancel",{ns:"common"})}),o.jsx(je,{size:"xs",className:"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50",onClick:()=>ge(this,null,function*(){if(i.length<3){x(!0);return}yield s({addDefaultMenuTabBoard:c,createCollection:{title:i,isSelected:!1,description:p}})}),children:r("Create",{ns:"common"})})]})]})]}):o.jsx(ve,{className:"flex-row gap-3",children:o.jsxs(je,{variant:"ghost",className:"rounded-md hover:dark:bg-blue-700/80 hover:bg-blue-200/80",onClick:()=>{b?g(!0):Ga.value=!0},children:[o.jsx(Vr,{width:20,className:"mr-1"}),o.jsx(Nv,{className:"text-[15px] !font-semibold",children:r("Add Collection",{ns:"collections"})}),o.jsx(Jl,{})]})}),e[8]=C,e[9]=w,e[10]=r,e[11]=i,e[12]=s,e[13]=p,e[14]=c,e[15]=b,e[16]=I):I=e[16];let T;return e[17]!==P||e[18]!==I?(T=o.jsx(cr,{className:P,children:I},"new-collection"),e[17]=P,e[18]=I,e[19]=T):T=e[19],T}function P4({showAddNewCollection:t}){const{t:e}=Gt(),{isShowCollectionNameOnNavBar:n,setIsShowCollectionNameOnNavBar:r}=Tt(Cr);a7(),i7(),AB();const{updateCollectionById:s}=dge(),{selectCollectionById:a}=l7(),{deleteCollectionById:i}=hge(),{currentCollectionId:l,menuItems:c,collections:d}=Tt(Ar),{returnRoute:p}=Tt(Ls),f=qh(),[m,b]=jU({timeout:10,sensitivity:10,interval:20}),{setData:C}=Iq(),[g,w]=v.useState(),[x,S]=v.useState(""),[E,N]=v.useState(!1),[_,P]=v.useState(""),I=it(!1),[T,L]=v.useState(null),[A,z]=v.useState(null);return v.useEffect(()=>{var Y;if(T){const O=d.find(({collectionId:$})=>$===T);O&&(S(O.title),P((Y=O.description)!=null?Y:""))}else S(""),z(null),P("")},[T]),v.useEffect(()=>{C(c.length>0?Av(c):[])},[c,c.length]),o.jsx(Lh,{disableWidth:!0,children:({height:Y})=>Y&&o.jsxs(ne,{className:"p-4 py-6 select-auto",children:[o.jsxs(ne,{className:"text-xl my-2 flex items-center justify-between px-2",children:[o.jsx(re,{className:"light",children:e("Manage Collections",{ns:"collections"})}),o.jsx(lu,{to:p,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:Y-85},autoHide:!0,children:[o.jsxs(ne,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in",children:[o.jsx(c7e,{showAddNewCollection:t}),d.map(({collectionId:O,title:$,description:M,isEnabled:W})=>{const V=T===O,U=l===O;return o.jsxs(cr,{className:"".concat(U&&"border-teal-500 border-2"," ").concat(!W&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium",children:V?o.jsx(wn,{className:"text-md",error:g?e("Title too short",{ns:"collections"}):void 0,maxLength:50,small:!0,onKeyDown:J=>{if(J.stopPropagation(),J.key==="Enter"){if(x.length<3){w(!0);return}s({updatedCollection:{collectionId:O,title:x,isEnabled:W,description:_}}),setTimeout(()=>{L(null)},100)}},label:e("Collection Title",{ns:"collections"}),placeholder:e("Enter collection title",{ns:"collections"}),value:x,onChange:J=>{g&&J.target.value.length>3&&w(!1),S(J.target.value)}}):o.jsx(re,{className:"".concat(U?W?"text-teal-600 dark:text-teal-600":"text-slate-500 dark:text-slate-300":"hover:text-slate-500"," !font-medium ").concat(W?"cursor-pointer":"text-muted-foreground"),onClick:()=>{W&&!U&&a({selectCollection:{collectionId:O}})},children:$})}),!V&&W&&o.jsx(o.Fragment,{children:U?o.jsx(st,{text:e("Current Collection",{ns:"collections"}),isCompact:!0,children:o.jsx(Rz,{className:"text-teal-600 h-6",size:20})}):o.jsx(je,{className:"text-sm box",size:"xs",variant:"outline",onClick:()=>{a({selectCollection:{collectionId:O}})},children:e("Select",{ns:"common"})})})]}),o.jsx(pr,{children:V?o.jsx(Co,{className:"text-md",enableEmoji:!1,enableEmojiInside:!0,maxLength:200,rows:2,maxRows:4,label:e("Description",{ns:"collections"}),value:_,onChange:J=>{P(J.target.value)}}):o.jsx(re,{className:"text-sm text-muted-foreground",children:M})}),o.jsxs(SE,{className:"flex flex-row items-center justify-between space-y-0",children:[o.jsx(ne,{children:V?U?o.jsx(st,{isCompact:!0,className:"bg-warning-100 dark:bg-warning-800",text:o.jsx(re,{justify:"center",color:"danger",children:e("You need to select a different collection before deleting the current one.",{ns:"collections"})}),delayDuration:300,maxWidth:190,open:m,sideOffset:16,children:o.jsx(je,{size:"xs",ref:ml(b),variant:"ghost",className:"bg-slate-50 dark:bg-slate-800",children:o.jsx(v6,{size:"16",className:"opacity-20"})})}):o.jsx(je,{size:"xs",variant:"ghost",onClick:()=>{z(O),I.value=!0},className:"".concat(A?"bg-red-100 dark:bg-red-800 hover:bg-red-100 text-red-600 hover:text-color-dark dark:text-red-200":"bg-red-50/50 dark:bg-red-800 text-red-500 hover:bg-red-100 hover:text-color-dark dark:text-red-200"),children:o.jsx(kr,{size:"16"})}):!U&&o.jsxs(CU,{children:[o.jsx(SU,{asChild:!0,children:o.jsx(ne,{children:o.jsx(ns,{checked:W,disabled:U,onCheckedChange:J=>{f?s({updatedCollection:{collectionId:O,isEnabled:J}}):Ga.value=!0}})})}),o.jsx(E7,{children:o.jsx(re,{className:"text-sm",children:W?e("Enabled",{ns:"common"}):e("Disabled",{ns:"common"})})})]})}),o.jsxs(ve,{className:"min-h-[30px]",children:[V&&o.jsx(je,{size:"xs",variant:"link",className:"text-slate-500",onClick:()=>{L(null)},disabled:!W,children:e("Cancel",{ns:"common"})}),W&&o.jsx(je,{size:"xs",variant:V?"default":"light",className:V?"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50":"",onClick:()=>{if(!V)L(O);else{if(x.length<3){w(!0);return}s({updatedCollection:{collectionId:O,title:x,isEnabled:W,description:_}}),setTimeout(()=>{L(null)},100)}},disabled:!W,children:V?e("Save",{ns:"common"}):e("Edit",{ns:"common"})})]})]})]},O)})]}),o.jsx(Ln,{h:5}),o.jsx(re,{className:"light",children:e("Collection Options",{ns:"collections"})}),o.jsx(ne,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Show collection name on the navbar",{ns:"collections"})}),o.jsx(ns,{checked:n,className:"ml-auto",onCheckedChange:()=>{r(!n)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"collections"})})})]})}),o.jsx(Ln,{h:6})]}),o.jsx(l7e,{open:I.value,setIsDeleteAllItemsInCollection:N,onClose:()=>{I.value=!1,N(!1),z(null)},onConfirm:()=>{A&&(i({deleteCollection:{deleteAllItemsInCollection:E,collectionId:A}}),I.value=!1,N(!1),z(null))}})]})})}function u7e(){var t=sn(1);try{const{t:e}=Gt(),{isIdleScreenAutoLockEnabled:n,setIsIdleScreenAutoLockEnabled:r,idleScreenAutoLockTimeInMinutes:s,setIdleScreenAutoLockTimeInMinutes:a,isShowHistoryCaptureOnLockedScreen:i,setIsShowHistoryCaptureOnLockedScreen:l,isScreenLockPassCodeRequireOnStart:c,setIsScreenLockPassCodeRequireOnStart:d,screenLockPassCode:p,setScreenLockPassCode:f,screenLockPassCodeLength:m,setScreenLockPassCodeLength:b,screenLockRecoveryPasswordMasked:C,hashPassword:g,setScreenLockRecoveryPasswordMasked:w,storePassword:x,verifyStoredPassword:S,deleteStoredPassword:E}=Tt(Cr),{returnRoute:N}=Tt(Ls),_=qh(),P=it(""),I=it(""),T=it(""),L=it(""),A=it(""),z=it(!1),Y=it(!1),O=it(!1),$=it(!1),M=it(!1),W=it(!1),V=it(!1),U=it(!1);v.useEffect(()=>{uo.value===Oc.resetPassword&&rl.value===Oc.resetPassword?(w(null),E("screenLockRecoveryPassword"),uo.value=null,rl.value=null):uo.value===Oc.resetPasscode&&rl.value===Oc.resetPasscode&&(f(null),b(0),uo.value=null,rl.value=null)},[rl.value,uo.value]),v.useEffect(()=>{P.value.length!==0&&!p&&P.value===I.value&&g(P.value).then(X=>{f(X),b(P.value.length),z.value=!1,I.value="",P.value=""})},[P.value,I.value]);const J=v.useMemo(()=>O.value,[O.value]),H=v.useMemo(()=>Br.value,[Br.value]);v.useMemo(()=>!0,[I.value,z.value,Y.value,$.value,A.value,M.value,W.value,U.value,V.value]);const F=v.useMemo(()=>T.value.length>=6&&T.value.length<=50&&T.value===L.value,[T.value,L.value]),q=v.useMemo(()=>L.value.length>=T.value.length&&T.value!==L.value,[T.value,L.value]);return o.jsx(Lh,{disableWidth:!0,children:({height:X})=>X&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:e("Security Settings",{ns:"settings"})}),o.jsx(lu,{to:N,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:X-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:e("Lock Screen Passcode",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Set a passcode to unlock the locked screen and protect your data from unauthorized access.",{ns:"settings"})})]}),o.jsxs(pr,{children:[p?o.jsxs(o.Fragment,{children:[o.jsx(ve,{className:"gap-5 justify-start flex-wrap",children:new Array(m).fill(0).map((te,ee)=>o.jsx(ne,{className:"text-lg px-4 py-4 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:"●"},ee))}),o.jsx(ne,{className:"mt-2 text-green-700 dark:text-green-600",children:o.jsx(us,{i18nKey:"{{screenLockPassCodeLength}} digits passcode is set.",values:{screenLockPassCodeLength:m},ns:"settings"})})]}):o.jsxs(o.Fragment,{children:[z.value?o.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[o.jsx(wn,{className:"text-md !w-40",numbersOnly:!0,isPassword:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),autoFocus:!0,placeholder:e("Confirm",{ns:"common"}),label:e("Confirm Passcode",{ns:"common"}),onChange:te=>{const ee=te.target.value;I.value=ee}},"confirm-passcode"),o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{z.value=!1,I.value="",P.value=""},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200 mt-4 h-9",children:e("Cancel",{ns:"common"})})]}):o.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[o.jsx(wn,{className:"text-md !w-40",numbersOnly:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),placeholder:e("Enter Passcode",{ns:"common"}),label:e("Digits Only Passcode",{ns:"common"}),onKeyDown:te=>{te.key==="Enter"&&(P.value.length>3||P.value.length<11)&&(z.value=!0)},onChange:te=>{const ee=te.target.value;P.value=ee}}),o.jsx(je,{variant:"secondary",size:"sm",disabled:P.value.length<4||P.value.length>10,onClick:()=>{z.value=!0},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-4 h-9",children:e("Set",{ns:"common"})})]}),z.value?I.value&&P.value&&o.jsx(o.Fragment,{children:I.value&&P.value.length-I.value.length>0?o.jsxs(re,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode digits remaining",{ns:"settings"}),":",o.jsx("b",{className:"ml-1",children:P.value.length-I.value.length})]}):P.value!==I.value&&o.jsx(re,{size:"sm",className:"!text-red-500 dark:!text-red-400",children:e("Passcode mismatch",{ns:"settings"})})}):o.jsx(o.Fragment,{children:P.value.length>=4&&P.value.length<=10?o.jsxs(re,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode length",{ns:"settings"}),":",o.jsx("b",{className:"ml-1",children:P.value.length})]}):P.value.length>10?o.jsx(re,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Maximum 10 digits",{ns:"settings"})}):P.value.length>0&&P.value.length<4&&o.jsx(re,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Minimal 4 digits",{ns:"settings"})})})]}),p&&o.jsx(o.Fragment,{children:o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{Of.value=!0,uo.value=Oc.resetPasscode,$f.value=e("passcode reset",{ns:"settings"})},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Passcode",{ns:"common"})})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:e("Recovery Password for Lock Screen Passcode",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.",{ns:"settings"})})]}),o.jsx(pr,{children:C?o.jsxs(ne,{children:[o.jsxs(ve,{className:"gap-2 justify-start items-start flex-wrap flex-col my-1",children:[o.jsx(ne,{className:"text-lg px-4 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:o.jsx(re,{className:"text-lg",children:C})}),o.jsx(ne,{className:"mt-1 text-green-700 dark:text-green-600",children:e("Recovery password is set.",{ns:"settings"})})]}),J?o.jsxs(ne,{className:"mt-2",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:te=>{te.key==="Enter"&&!W.value&&A.value.length>=6&&(M.value=!1,W.value=!0,S("screenLockRecoveryPassword",A.value).then(ee=>{ee?(O.value=!1,w(null),E("screenLockRecoveryPassword"),A.value=""):M.value=!0,W.value=!1}).catch(()=>{M.value=!0,W.value=!1}))},error:A.value.length>=6&&M.value?e("Password is incorrect",{ns:"settings"}):"",autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),classNameInput:"h-9",autoFocus:!0,placeholder:e("Enter Password",{ns:"common"}),label:e("Verify Current Password",{ns:"common"}),onChange:te=>{M.value=!1,A.value=te.target.value}},"recovery-reset-password"),o.jsxs(ve,{className:"justify-start items-center gap-2 mt-2",children:[o.jsx(je,{variant:"secondary",size:"sm",disabled:A.value.length<6,onClick:()=>{M.value=!1,W.value=!0,S("screenLockRecoveryPassword",A.value).then(te=>{te?(O.value=!1,w(null),E("screenLockRecoveryPassword"),A.value=""):M.value=!0,W.value=!1}).catch(()=>{M.value=!0,W.value=!1})},className:"w-20 text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:W.value?o.jsx(d0,{}):e("Reset",{ns:"common"})}),p&&o.jsx(je,{variant:"light",size:"sm",onClick:()=>{O.value=!1,Of.value=!0,uo.value=Oc.resetPassword,$f.value=e("password reset",{ns:"settings"})},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200",children:e("Use Passcode",{ns:"common"})}),o.jsx(je,{variant:"secondary",size:"sm",disabled:H>0,onClick:()=>{O.value=!1,M.value=!1,A.value=""},className:"text-sm bg-transparent dark:bg-transparent dark:text-slate-200 hover:dark:bg-slate-800",children:e("Cancel",{ns:"common"})})]})]}):o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{O.value=!0},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Password",{ns:"common"})})]}):o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),showHidePassword:!0,placeholder:e("Recovery Password",{ns:"common"}),label:e("Enter Recovery Password",{ns:"common"}),classNameInput:T.value.length>=6&&T.value.length<=50?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",onChange:te=>{T.value=te.target.value}},"recovery-password"),o.jsx(wn,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:te=>{te.key==="Enter"&&T.value===L.value&&T.value.length>=6&&T.value.length<=50&&x("screenLockRecoveryPassword",T.value).then(()=>{w(Ch(T.value)),T.value="",L.value=""})},error:q?e("Passwords do not match",{ns:"settings"}):"",autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),classNameInput:!q&&F?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",placeholder:e("Confirm Password",{ns:"common"}),label:e("Confirm Password",{ns:"common"}),onChange:te=>{L.value=te.target.value}},"recovery-password-confirmation"),o.jsx(je,{variant:"secondary",size:"sm",disabled:!F,onClick:()=>{T.value===L.value&&x("screenLockRecoveryPassword",T.value).then(()=>{w(Ch(T.value)),T.value="",L.value=""})},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-1 h-9",children:e("Set Password",{ns:"common"})})]})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!i&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsx(ne,{children:e("Show Clipboard History Capture Control on Lock Screen",{ns:"settings"})}),o.jsx(ns,{checked:i,className:"ml-auto",onCheckedChange:()=>{l(!i)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.",{ns:"settings"})})]}),o.jsx(pr,{})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsxs(ne,{children:[e("Auto Lock the Screen on User Inactivity",{ns:"settings"}),o.jsx(Jl,{})]}),o.jsx(ns,{checked:n,className:"ml-auto",onCheckedChange:()=>{!n&&!_?Ga.value=!0:r(!n)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.",{ns:"settings"})})]}),o.jsxs(pr,{children:[o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start my-2",children:Ese.map((te,ee)=>o.jsxs(je,{variant:"ghost",disabled:!n,onClick:()=>{a(te)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(s===te?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 hover:dark:bg-slate-800 px-2 !py-0.5"),children:[te," ",e("minutes",{ns:"common"})]},ee))}),o.jsx(je,{variant:"secondary",size:"sm",disabled:s===15,onClick:()=>{a(15)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsxs(ne,{children:[e("Require Screen Unlock at Application Start",{ns:"settings"}),o.jsx(Jl,{})]}),o.jsx(ns,{checked:c,className:"ml-auto",onCheckedChange:()=>{!c&&!_?Ga.value=!0:d(!c)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.",{ns:"settings"})})]}),o.jsx(pr,{})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:N,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})})}finally{t.f()}}const d7e='### Example\n\nA third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, _and sometimes only one._ A third of the distance across the Beach, the meadow ends and sand begins.\n\nThe outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.\n\n### Subtitle\n\nThis is another fine paragraph\n\n### Smaller subtitle\n\nThis is a paragraph `with` ~style~ *italic* _italic_ **bold** __bold__\n\n*Hello [PasteBar](https://www.pastebar.app/) lol*\n\nHello [*PasteBar*](https://www.pastebar.app/) lol "cat"\n\nHello from *[PasteBar](https://rsms.me/)* to __everyone__ `reading this`\n\n### Embedded HTML\n\nWith default settings, markdown-wasm allows embedded HTML.\n\n> It has been disabled in this demo for safety reasons, by means of setting `ParseFlags.NO_HTML`.\n> Not setting the `NO_HTML` flag allows embedding HTML like this:\n\n\n\n\n### Block Quotes\n\n> You can insert quotes by\n> preceeding each line with `>`.\n>\n> Blockquotes can also contain line\n> breaks.\n\n\n### Lists\n\n#### Unordered lists\n\n- Unordered\n- Lists\n- Hello\n\n#### Ordered lists\n\n1. Ordered\n2. Lists\n4. Numbers are ignored\n1. Ordered\n\n121) Ordered lists can start\n122) with any number and\n123) use . as well as ) as a separator.\n\n#### Task lists\n\n- [ ] Task 1\n- [x] Task 2\n- [ ] Task 3\n- Regular list item\n\n### Tables\n\n| Column 1 | Column 2 | Column 3 | Column 4\n|----------|:---------|:--------:|---------:\n| default | left | center | right\n\n#### Table of image file types\n\n| Header | Mime type | Extensions | Description\n|---------------------------|--------------|------------|-------------\n| `89 50 4E 47 0D 0A 1A 0A` | image/png | png | PNG image\n| `47 49 46 38 39 61` | image/gif | gif | GIF image\n| `FF D8 FF` | image/jpeg | jpg jpeg | JPEG image\n| `4D 4D 00 2B` | image/tiff | tif tiff | TIFF image\n| `42 4D` | image/bmp | bmp | Bitmap image\n| `00 00 01 00` | image/x-icon | ico | Icon image';function f7e(){const t=Te(39),{t:e}=Gt(),n=rW(),{isSkipAutoStartPrompt:r,setIsSkipAutoStartPrompt:s,isShowCollectionNameOnNavBar:a,setIsShowCollectionNameOnNavBar:i,isClipNotesHoverCardsEnabled:l,setIsClipNotesHoverCardsEnabled:c,clipNotesMaxHeight:d,clipNotesMaxWidth:p,setClipNotesMaxHeight:f,setClipNotesMaxWidth:m,clipNotesHoverCardsDelayMS:b,setClipNotesHoverCardsDelayMS:C,isShowDisabledCollectionsOnNavBarMenu:g,setIsShowDisabledCollectionsOnNavBarMenu:w}=Tt(Cr),{setFontSize:x,fontSize:S,setIsSwapPanels:E,isSwapPanels:N}=Tt(Ls),[_,P]=v.useState(!1),{setTheme:I,theme:T}=ik(),{mode:L,setMode:A,themeDark:z}=Tt(bo);let Y;t[0]!==T||t[1]!==L||t[2]!==A?(Y=()=>{T!==L&&A(T)},t[0]=T,t[1]=L,t[2]=A,t[3]=Y):Y=t[3];let O;t[4]!==T?(O=[T],t[4]=T,t[5]=O):O=t[5],v.useEffect(Y,O);let $,M;t[6]===Symbol.for("react.memo_cache_sentinel")?($=()=>{On("is_autostart_enabled").then(q=>{P(!!q)})},M=[],t[6]=$,t[7]=M):($=t[6],M=t[7]),v.useEffect($,M);const{returnRoute:W}=Tt(Ls);let V;t[8]!==z?(V=z(),t[8]=z,t[9]=V):V=t[9];const U=V;let J;t[10]!==e?(J=function(X){const te=X/1e3,ee=Number.isInteger(te)?te.toString():te.toFixed(1),G=te===1?" "+e("second"):" "+e("seconds");return ee+G},t[10]=e,t[11]=J):J=t[11];const H=J;let F;return t[12]!==e||t[13]!==W||t[14]!==_||t[15]!==r||t[16]!==s||t[17]!==x||t[18]!==S||t[19]!==I||t[20]!==T||t[21]!==n||t[22]!==N||t[23]!==E||t[24]!==a||t[25]!==i||t[26]!==g||t[27]!==w||t[28]!==l||t[29]!==c||t[30]!==C||t[31]!==b||t[32]!==H||t[33]!==U||t[34]!==p||t[35]!==d||t[36]!==m||t[37]!==f?(F=o.jsx(Lh,{disableWidth:!0,children:q=>{var te;const{height:X}=q;return X&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:e("User Preferences",{ns:"settings"})}),o.jsx(lu,{to:W,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:X-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl",children:o.jsxs(cr,{className:"".concat(!_&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Application Auto Start",{ns:"settings"})}),o.jsx(ns,{checked:_,className:"ml-auto",onCheckedChange:()=>ge(this,null,function*(){yield On("autostart",{enabled:!_}),P(!_)})})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Enable application auto start on system boot",{ns:"settings"})}),!_&&o.jsx(ve,{className:"items-center justify-start mt-2 ml-[-12px]",children:o.jsx(pE,{color:"default",checked:r,classNameLabel:"py-1",onChange:()=>{s(!r)},children:o.jsx(Nv,{size:"sm",children:e("Skip auto start prompt on app launch",{ns:"settings"})})})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Fonts Scale",{ns:"settings"}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface font size scale",{ns:"settings"})})]}),o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:Fp.map((ee,G)=>o.jsx(je,{variant:"ghost",onClick:()=>{x(ee)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(S===ee?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-2 !py-0.5"),children:ee},G))})]}),o.jsx(pr,{children:o.jsx(je,{variant:"secondary",size:"sm",disabled:S==="100%",onClick:()=>{x("100%")},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsx(cr,{children:o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Color Theme",{ns:"settings"}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface color theme",{ns:"settings"})})]}),o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start",children:[o.jsxs(je,{variant:"ghost",onClick:()=>{I("light")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="light"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.sun,{className:"mr-2",size:18})}),o.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),o.jsxs(je,{variant:"ghost",onClick:()=>{I("dark")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="dark"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.moon,{className:"mr-2",size:17})}),o.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),o.jsxs(je,{variant:"ghost",onClick:()=>{I("system")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="system"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"tems-end flex w-[1.5rem] ",children:o.jsx(Ho.sunmoon,{className:"mr-2",width:14,height:14})}),o.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsx(cr,{children:o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Language",{ns:"settings"}),n?o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Your License is limited to support for a single {{language}} language",{ns:"settings",language:(te=xh.find(ee=>{const{code:G}=ee;return G===n}))==null?void 0:te.name})}):o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface language",{ns:"settings"})})]}),o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:xh.map(ee=>{const{code:G,name:Z,flag:le}=ee;return o.jsxs(je,{variant:"ghost",disabled:n&&G!==n,onClick:()=>{dr.changeLanguage(G)},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(dr.language===G?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flags mr-3",children:le})," ",Z]},G)})})]})})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!N&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Swap Panels Layout",{ns:"common"})}),o.jsx(ns,{checked:N,className:"ml-auto",onCheckedChange:()=>ge(this,null,function*(){E(!N)})})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Switch the layout position of panels in Clipboard History and Paste Menu views",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!a&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Show collection name on the navbar",{ns:"settings"})}),o.jsx(ns,{checked:a,className:"ml-auto",onCheckedChange:()=>{i(!a)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!g&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Show disabled collections on the navbar list",{ns:"settings"})}),o.jsx(ns,{checked:g,className:"ml-auto",onCheckedChange:()=>{w(!g)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display disabled collections name on the navigation bar under collections menu",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!l&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Enable Clip Title Hover Show with Delay",{ns:"settings"})}),o.jsx(ns,{checked:l,className:"ml-auto",onCheckedChange:()=>{c(!l)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("This option lets you control the display and timing of hover notes on clips. You can choose to show notes instantly or with a delay to prevent unintended popups.",{ns:"settings"})}),o.jsx(ve,{className:"gap-2 flex-wrap items-start justify-start mt-4 mb-4",children:ste.map((ee,G)=>o.jsx(je,{variant:"ghost",disabled:!l,onClick:()=>{C(ee)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(b===ee?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-2 !py-0.5"),children:H(ee)},G))}),o.jsx(je,{variant:"secondary",size:"sm",disabled:b===2e3||!l,onClick:()=>{C(2e3)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(ne,{className:"max-w-xl mt-4 animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Clip Notes Popup Maximum Dimensions",{ns:"settings"})})}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.",{ns:"settings"})}),o.jsx(ww,{text:d7e,side:"top",isDark:U,delayDuration:b,classNameTrigger:"inline-flex items-start",sideOffset:0,maxWidth:p,maxHeight:d,asChild:!0,children:o.jsx(re,{className:"text-sm text-muted-foreground mt-3 underline cursor-pointer",children:e("Preview current popup size on hover.",{ns:"settings"})})}),o.jsxs(ve,{className:"gap-2 flex-wrap items-start justify-start mt-4 mb-4",children:[cC.map((ee,G)=>{const Z=ee.width===p&&ee.height===d;return o.jsxs(je,{variant:"ghost",onClick:()=>{m(ee.width),f(ee.height)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(Z?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-4 !py-0.5"),children:[ee.iconSize&&o.jsx(ale,{size:ee.iconSize,className:"mr-2"}),e(ee.title,{ns:"settings"})]},G)}),o.jsxs(je,{variant:"ghost",onClick:()=>{cC.some(ee=>ee.width===p&&ee.height===d)&&(m(440),f(240))},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(cC.some(ee=>ee.width===p&&ee.height===d)?"":"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300"," dark:text-slate-200 px-4 !py-0.5"),children:[o.jsx(nle,{size:21,className:"mr-2"}),e("Custom",{ns:"settings"})]})]}),o.jsxs(ve,{className:"w-full gap-10 my-4 items-start justify-start",children:[o.jsx(wn,{className:"text-md !w-36",type:"number",step:"20",max:800,min:100,error:void 0,small:!0,label:e("Maximum width",{ns:"common"}),value:p,onBlur:()=>{p<100?m(100):p>800&&m(800)},onChange:ee=>{const G=ee.target.value;if(G!==""){const Z=parseInt(G);Z&&m(Z)}}}),o.jsx(wn,{className:"text-md !w-36",type:"number",step:"20",max:600,min:100,error:void 0,small:!0,label:e("Maximum height",{ns:"common"}),value:d,onBlur:()=>{d<100?f(100):d>600&&f(600)},onChange:ee=>{const G=ee.target.value;if(G!==""){const Z=parseInt(G);Z&&f(Z)}}})]}),o.jsx(je,{variant:"secondary",size:"sm",disabled:p===220&&d===120,onClick:()=>{m(220),f(120)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:W,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})}}),t[12]=e,t[13]=W,t[14]=_,t[15]=r,t[16]=s,t[17]=x,t[18]=S,t[19]=I,t[20]=T,t[21]=n,t[22]=N,t[23]=E,t[24]=a,t[25]=i,t[26]=g,t[27]=w,t[28]=l,t[29]=c,t[30]=C,t[31]=b,t[32]=H,t[33]=U,t[34]=p,t[35]=d,t[36]=m,t[37]=f,t[38]=F):F=t[38],F}const h7e=[{index:!0,element:o.jsx(Owe,{to:"history",replace:!0})},{path:"menu",element:o.jsx(s7e,{}),index:!0},{path:"history",element:o.jsx(S6e,{})},{path:"app-settings",element:o.jsx(a7e,{}),children:[{path:"collections",element:o.jsx(P4,{})},{path:"collections/new",element:o.jsx(P4,{showAddNewCollection:!0})},{path:"items",element:o.jsx(P4,{})},{path:"history",element:o.jsx(i7e,{})},{path:"preferences",element:o.jsx(f7e,{})},{path:"security",element:o.jsx(u7e,{})},{path:"license",element:o.jsx(ZI,{})},{path:"license/register",element:o.jsx(ZI,{registerLicense:!0})}]}],p7e=Wwe([{element:o.jsx(Cke,{}),children:[{path:"/",lazy:()=>ke(()=>Promise.resolve().then(()=>UCe),void 0),children:h7e}]}]),m7e=new oY({defaultOptions:{mutations:{networkMode:"always"},queries:{networkMode:"always",gcTime:IL?600:1e3*60*60*1,retry:TY,retryDelay:t=>Math.min(2e3*kg(2,t),3e4)}}});RO(document.getElementById("root")).render(o.jsx(v.StrictMode,{children:o.jsxs(dY,{client:m7e,children:[o.jsx(Qwe,{router:p7e}),IL&&o.jsx(EY,{initialIsOpen:!1,position:"bottom"})]})}));export{Vt as R,o2e as a,u2e as b,hu as c,a2e as d,v as e,cu as g,l2e as r}; + */function m0(){return m0=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[s]=t[s]);return n}function Fwe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Hwe(t,e){return t.button===0&&(!e||e==="_self")&&!Fwe(t)}const Bwe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Uwe=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function Wwe(t,e){return cwe({basename:e==null?void 0:e.basename,future:m0({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:D2e({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||Vwe(),routes:t,mapRouteProperties:zwe,window:e==null?void 0:e.window}).initialize()}function Vwe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=m0({},e,{errors:qwe(e.errors)})),e}function qwe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,s]of e)if(s&&s.__type==="RouteErrorResponse")n[r]=new O7(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let a=window[s.__subType];if(typeof a=="function")try{let i=new a(s.message);i.stack="",n[r]=i}catch(i){}}if(n[r]==null){let a=new Error(s.message);a.stack="",n[r]=a}}else n[r]=s;return n}const CW=v.createContext({isTransitioning:!1}),Kwe=v.createContext(new Map),Gwe="startTransition",EI=Ww[Gwe],Ywe="flushSync",NI=AX[Ywe];function Zwe(t){EI?EI(t):t()}function Xg(t){NI?NI(t):t()}class Xwe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Qwe(t){let{fallbackElement:e,router:n,future:r}=t,[s,a]=v.useState(n.state),[i,l]=v.useState(),[c,d]=v.useState({isTransitioning:!1}),[p,f]=v.useState(),[m,b]=v.useState(),[C,g]=v.useState(),w=v.useRef(new Map),{v7_startTransition:x}=r||{},S=v.useCallback(I=>{x?Zwe(I):I()},[x]),E=v.useCallback((I,T)=>{let{deletedFetchers:L,unstable_flushSync:A,unstable_viewTransitionOpts:z}=T;L.forEach(O=>w.current.delete(O)),I.fetchers.forEach((O,$)=>{O.data!==void 0&&w.current.set($,O.data)});let Y=n.window==null||typeof n.window.document.startViewTransition!="function";if(!z||Y){A?Xg(()=>a(I)):S(()=>a(I));return}if(A){Xg(()=>{m&&(p&&p.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:z.currentLocation,nextLocation:z.nextLocation})});let O=n.window.document.startViewTransition(()=>{Xg(()=>a(I))});O.finished.finally(()=>{Xg(()=>{f(void 0),b(void 0),l(void 0),d({isTransitioning:!1})})}),Xg(()=>b(O));return}m?(p&&p.resolve(),m.skipTransition(),g({state:I,currentLocation:z.currentLocation,nextLocation:z.nextLocation})):(l(I),d({isTransitioning:!0,flushSync:!1,currentLocation:z.currentLocation,nextLocation:z.nextLocation}))},[n.window,m,p,w,S]);v.useLayoutEffect(()=>n.subscribe(E),[n,E]),v.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new Xwe)},[c]),v.useEffect(()=>{if(p&&i&&n.window){let I=i,T=p.promise,L=n.window.document.startViewTransition(()=>ge(this,null,function*(){S(()=>a(I)),yield T}));L.finished.finally(()=>{f(void 0),b(void 0),l(void 0),d({isTransitioning:!1})}),b(L)}},[S,i,p,n.window]),v.useEffect(()=>{p&&i&&s.location.key===i.location.key&&p.resolve()},[p,m,s.location,i]),v.useEffect(()=>{!c.isTransitioning&&C&&(l(C.state),d({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),g(void 0))},[c.isTransitioning,C]);let N=v.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:I=>n.navigate(I),push:(I,T,L)=>n.navigate(I,{state:T,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(I,T,L)=>n.navigate(I,{replace:!0,state:T,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),_=n.basename||"/",P=v.useMemo(()=>({router:n,navigator:N,static:!1,basename:_}),[n,N,_]);return v.createElement(v.Fragment,null,v.createElement(Ax.Provider,{value:P},v.createElement(z7.Provider,{value:s},v.createElement(Kwe.Provider,{value:w.current},v.createElement(CW.Provider,{value:c},v.createElement($we,{basename:_,location:s.location,navigationType:s.historyAction,navigator:N},s.initialized?v.createElement(Jwe,{routes:n.routes,state:s}):e))))),null)}function Jwe(t){let{routes:e,state:n}=t;return Ewe(e,void 0,n)}const e5e=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",t5e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lu=v.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:a,replace:i,state:l,target:c,to:d,preventScrollReset:p,unstable_viewTransition:f}=e,m=kW(e,Bwe),{basename:b}=v.useContext(Kh),C,g=!1;if(typeof d=="string"&&t5e.test(d)&&(C=d,e5e))try{let E=new URL(window.location.href),N=d.startsWith("//")?new URL(E.protocol+d):new URL(d),_=Zd(N.pathname,b);N.origin===E.origin&&_!=null?d=_+N.search+N.hash:g=!0}catch(E){}let w=kwe(d,{relative:s}),x=r5e(d,{replace:i,state:l,target:c,preventScrollReset:p,relative:s,unstable_viewTransition:f});function S(E){r&&r(E),E.defaultPrevented||x(E)}return v.createElement("a",m0({},m,{href:C||w,onClick:g||a?r:S,ref:n,target:c}))}),Pp=v.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:s=!1,className:a="",end:i=!1,style:l,to:c,unstable_viewTransition:d,children:p}=e,f=kW(e,Uwe),m=xk(c,{relative:f.relative}),b=wl(),C=v.useContext(z7),{navigator:g}=v.useContext(Kh),w=C!=null&&s5e(m)&&d===!0,x=g.encodeLocation?g.encodeLocation(m).pathname:m.pathname,S=b.pathname,E=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;s||(S=S.toLowerCase(),E=E?E.toLowerCase():null,x=x.toLowerCase());const N=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let _=S===x||!i&&S.startsWith(x)&&S.charAt(N)==="/",P=E!=null&&(E===x||!i&&E.startsWith(x)&&E.charAt(x.length)==="/"),I={isActive:_,isPending:P,isTransitioning:w},T=_?r:void 0,L;typeof a=="function"?L=a(I):L=[a,_?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let A=typeof l=="function"?l(I):l;return v.createElement(lu,m0({},f,{"aria-current":T,className:L,ref:n,style:A,to:c,unstable_viewTransition:d}),typeof p=="function"?p(I):p)});var cj;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(cj||(cj={}));var _I;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(_I||(_I={}));function n5e(t){let e=v.useContext(Ax);return e||Hn(!1),e}function r5e(t,e){let{target:n,replace:r,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:l}=e===void 0?{}:e,c=ua(),d=wl(),p=xk(t,{relative:i});return v.useCallback(f=>{if(Hwe(f,n)){f.preventDefault();let m=r!==void 0?r:Ih(d)===Ih(p);c(t,{replace:m,state:s,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[d,c,p,r,s,n,t,a,i,l])}function s5e(t,e){e===void 0&&(e={});let n=v.useContext(CW);n==null&&Hn(!1);let{basename:r}=n5e(cj.useViewTransitionState),s=xk(t,{relative:e.relative});if(!n.isTransitioning)return!1;let a=Zd(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=Zd(n.nextLocation.pathname,r)||n.nextLocation.pathname;return aj(s.pathname,i)!=null||aj(s.pathname,a)!=null}function a5e({itemId:t,setShowDetails:e,isLargeView:n,isShowDetails:r,isSelected:s,isPinned:a,isMenu:i,icon:l,iconVisibility:c,isPinnedBoard:d,isFavorite:p,boardId:f,tabId:m,setSelectedItemId:b}){var C=sn(1);try{const{t:g}=Gt(),{updateMovedClips:w}=K5(),{duplicateItem:x}=bge(),{deleteItemById:S}=Y5(),{updateItemById:E}=bl(),{updatePinnedClipsByIds:N}=OB(),{setIsShowPinned:_,isShowPinned:P}=Tt(Ls),{createNewItem:I}=G5(),T=ua(),{clipItems:L,tabs:A,currentTab:z,setCurrentTab:Y,currentCollectionId:O}=Tt(Ar),$=v.useCallback(()=>fs(L,z).filter(H=>H.id!==t),[L,z,t]),M=v.useCallback(()=>fs(L,z,f==null?void 0:f.toString()).filter(H=>H.id!==t).sort((H,F)=>H.orderNumber-F.orderNumber),[L,z,t,f]),W=function(H,F=!1){return ge(this,null,function*(){var ee,G;if(!O||!H||!f)return;const q=H.toString(),X=fs(L,q);let te=(ee=X.find(Z=>Z.name===g("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:ee.id;if(!te){const Z=(G=A.find(ce=>ce.tabId===q))==null?void 0:G.tabColor,le={name:g("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:q,color:Z,description:g("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:O,orderNumber:0},se=yield I({item:le});X.sort((ce,ye)=>ce.orderNumber-ye.orderNumber).unshift(ae(R({},le),{id:se,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const de=X.map((ce,ye)=>({itemId:ce.id,parentId:null,tabId:ce.tabId,collectionId:O,orderNumber:ye}));w({updatedMoveClips:de}),te=se}if(te){const Z=te.toString(),le=F?t:yield x({itemId:t,boardId:Z,tabId:q,collectionId:O});Rd.value=Z;const se=fs(L,q.toString(),Z==null?void 0:Z.toString());se.sort((ce,ye)=>ce.orderNumber-ye.orderNumber).unshift({parentId:Z,tabId:q,id:le,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const de=se.map((ce,ye)=>({itemId:ce.id,parentId:ce.parentId,tabId:ce.tabId,collectionId:O,orderNumber:ye}));Y(q),F?yield w({updatedMoveClips:de}):setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:de}),Wa.value=le}),300)}})},V=function(H,F=!1){return ge(this,null,function*(){if(!O||!H)return;const q=H.toString(),X=z.toString(),te=F?t:yield x({itemId:t,boardId:q,tabId:X,collectionId:O});Rd.value=q;const ee=fs(L,X.toString(),q==null?void 0:q.toString());ee.sort((Z,le)=>Z.orderNumber-le.orderNumber).unshift({parentId:q,tabId:X,id:te,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const G=ee.map((Z,le)=>({itemId:Z.id,parentId:Z.parentId,tabId:Z.tabId,collectionId:O,orderNumber:le}));Y(X),F?yield w({updatedMoveClips:G}):setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:G}),Wa.value=te}),300)})},U=function(ee){return ge(this,arguments,function*({isLast:H,isFirst:F,isAfterItemId:q,moveUp:X,moveDown:te}){const G=z.toString(),Z=fs(L,G,f==null?void 0:f.toString()).sort((ce,ye)=>ce.orderNumber-ye.orderNumber),le=Z.findIndex(ce=>ce.id===t);if(le===-1)return;let se;if(X)se=Math.max(0,le-1);else if(te)se=Math.min(Z.length-1,le+1);else if(q){const ce=Z.findIndex(ye=>ye.id===q);if(ce===-1)return;se=le>ce?ce+1:ce}else se=F?0:H?Z.length:0;const de=Wr(Z,le,se);if(de&&de.length){const ce=de.map((ye,pe)=>({itemId:ye.id,parentId:ye.parentId,tabId:ye.tabId,collectionId:O,orderNumber:pe}));yield w({updatedMoveClips:ce})}})},J=v.memo(({board:H,itemId:F,level:q,onSelect:X})=>{var te;return"isBoard"in H&&q<1&&((te=H.children)!=null&&te.some(ee=>"isBoard"in ee&&ee.isBoard&&ee.id!==F))?o.jsxs(Hr,{children:[o.jsx(Rr,{onClick:()=>{X(H.id)},children:o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:H.name})}),o.jsx(Or,{children:H.children.filter(ee=>ee.id!==F).filter(ee=>ee.type===Ys).map(ee=>o.jsx(J,{board:ee,itemId:F,level:q+1,onSelect:X},ee.id))})]}):o.jsx(Wt,{onSelect:()=>{X(H.id)},children:o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:H.name})},H.id)});return t==null?null:o.jsx(Cx,{children:o.jsxs(H0,{children:[n?o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{onClick:()=>{Ws.value=null},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(bv,{size:14})})]}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[r?o.jsxs(Wt,{onClick:()=>{e(null)},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Sle,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{e(t)},children:[g("Open",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(jle,{size:15})})]}),Ws.value!==t?o.jsxs(Wt,{onClick:()=>{Ws.value=t},children:[g("View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(dx,{size:14})})]}):o.jsxs(Wt,{onClick:()=>{Ws.value=null},children:[g("Close",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(bv,{size:14})})]}),s?o.jsxs(Wt,{onClick:()=>{b(t)},children:[g("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Hae,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{b(t)},children:[g("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Cz,{size:15})})]}),o.jsx(Qn,{})]}),Ms.value!==t?o.jsxs(Wt,{className:"gap-2",onClick:()=>{ld.value=null,Ms.value=t},children:[g("Edit Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{Ms.value=null,ld.value=null},children:[g("Close Edit",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15,className:"ml-1"})})]}),ld.value!==t?o.jsxs(Wt,{className:"gap-2",onClick:()=>{Ms.value=null,ld.value=t},children:[g("Rename",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:13})})]}):o.jsxs(Wt,{onClick:()=>{Ms.value=null,ld.value=null},children:[g("Close Rename",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:13,className:"ml-1"})})]}),o.jsx(Qn,{}),d?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[g("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsx(o.Fragment,{children:a?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[g("UnPin Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Od,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{!a&&!P&&_(!0),N({itemIds:[t],isPinned:!0})},children:[g("Pin",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(tu,{size:15})})]})}),p?o.jsxs(Wt,{onClick:()=>{E({updatedItem:{isFavorite:!1,itemId:t}})},children:[g("Remove Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(w5,{size:15,className:"fill-transparent"})})]}):o.jsxs(Wt,{onClick:()=>{E({updatedItem:{isFavorite:!0,itemId:t}})},children:[g("Star",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Fh,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),i?o.jsxs(Wt,{onClick:()=>{T("/menu",{replace:!0}),setTimeout(()=>{cd.value=t.toString()},300)},children:[g("Locate Menu",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(y5,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{T("/menu",{replace:!0}),setTimeout(()=>{Tf.value=t,ho.value=!0},300)},children:[g("Add to Menu",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(cE,{size:15})})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Manage",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){if(!O||!m||!f)return;const H=yield x({itemId:t,boardId:f,tabId:m,collectionId:O});Rd.value=f;const F=fs(L,m.toString(),f==null?void 0:f.toString());F.sort((X,te)=>X.orderNumber-te.orderNumber).unshift({parentId:f,tabId:m,id:H,type:"clip",orderNumber:0,createdAt:0,value:"",name:g("Copy Clip",{ns:"dashboard"})});const q=F.map((X,te)=>({itemId:X.id,parentId:X.parentId,tabId:X.tabId,collectionId:O,orderNumber:te}));setTimeout(()=>ge(this,null,function*(){yield w({updatedMoveClips:q}),Wa.value=H}),600)}),children:[g("Duplicate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(tE,{size:15})})]}),o.jsxs(Wt,{onClick:()=>{cl.value=f},children:[g("Organize",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(b5,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Position",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>{U({moveUp:!0})},children:[g("Up",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(wz,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{U({moveDown:!0})},children:[g("Down",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(yz,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),M().length>0&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("After",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:M().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{U({isAfterItemId:F})}},H.id))})]}),o.jsx(Qn,{})]}),o.jsxs(Wt,{onClick:()=>{U({isFirst:!0})},children:[g("Start",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(v5,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{U({isLast:!0})},children:[g("End",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Sh,{size:15,className:"fill-transparent"})})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Copy To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:A.map(({tabId:H,tabName:F,tabOrderNumber:q})=>o.jsx(Wt,{onSelect:()=>{W(H)},children:z===H?o.jsx(re,{className:"font-semibold capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)}):o.jsx("span",{className:"capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)})},H))})]}),fs(L,z).filter(H=>H.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:$().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{V(F)}},H.id))})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Move To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:A.map(({tabId:H,tabName:F,tabOrderNumber:q})=>o.jsx(Wt,{onSelect:()=>{W(H,!0)},children:z===H?o.jsx(re,{className:"font-semibold capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)}):o.jsx("span",{className:"capitalize",children:F||"".concat(g("Tab",{ns:"dashboard"})," ").concat(q+1)})},H))})]}),fs(L,z).filter(H=>H.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:$().map(H=>o.jsx(J,{board:H,level:0,itemId:t,onSelect:F=>{V(F,!0)}},H.id))})]})]})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[g("Clip Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsx(Wt,{disabled:!0,className:"text-center items-center justify-center py-0.5",children:o.jsx(re,{children:g("Icon Visibility",{ns:"contextMenus"})})}),o.jsx(Qn,{}),o.jsx(tl,{checked:c==="none",onSelect:()=>{E({updatedItem:{iconVisibility:"none",itemId:t}})},className:c==="none"?"font-semibold":"",children:g("Hide",{ns:"contextMenus"})}),o.jsx(tl,{checked:c==="always",onSelect:()=>{E({updatedItem:{iconVisibility:"always",itemId:t}})},className:c==="always"?"font-semibold":"",children:g("Show",{ns:"contextMenus"})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{className:"flex items-center justify-center",children:[l?o.jsx(p0,{size:16,className:"ml-1 mr-2",name:l}):o.jsx(Q8,{size:16,className:"ml-1 mr-2 opacity-30"}),g("Custom Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{className:"w-64",children:[o.jsxs(Wt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[o.jsx(ne,{className:"w-6"}),o.jsx(re,{children:g("Select Icon",{ns:"contextMenus"})}),o.jsx(je,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{E({updatedItem:{icon:"",iconVisibility:"",itemId:t}})},children:g("RESET",{ns:"contextMenus"})})]}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:R7.map(H=>o.jsx(Wt,{className:"flex items-center justify-center ".concat(l===H?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:F=>{F.preventDefault(),E({updatedItem:{icon:H,iconVisibility:"always",itemId:t}})},children:o.jsx(p0,{name:H,size:16})},H))})})]})]})]})]})]})]}),d?o.jsxs(Wt,{onClick:()=>{N({itemIds:[t],isPinned:!1})},children:[o.jsx(re,{className:"!text-orange-600",children:g("UnPin Clip",{ns:"contextMenus"})}),o.jsx("div",{className:"ml-auto ",children:o.jsx(Od,{size:15,className:"!text-orange-600"})})]}):o.jsxs(Wt,{className:pi.value===t?"!bg-red-100 dark:!bg-red-900":"",onClick:H=>{pi.value===t?(S({itemId:t,collectionId:O}),n&&setTimeout(()=>{Ws.value=null},300),pi.value):(H.preventDefault(),pi.value=t,setTimeout(()=>{pi.value=null},3e3))},children:[o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500",children:pi.value!==t?g("Delete Clip",{ns:"contextMenus"}):g("Click to Confirm",{ns:"common"})})}),!pi.value&&o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"text-red-500"})})]})]})})}finally{C.f()}}const QC=["Tab","Enter","TabTab","TabTabTab","TabEnter","TabTabEnter"];function SW({clip:t,boardColor:e,globalSearchTerm:n,isGlobalSearchBoardsOnly:r,isDragPreview:s,isClipNotesHoverCardsEnabled:a,clipNotesHoverCardsDelayMS:i,clipNotesMaxWidth:l,clipNotesMaxHeight:c,isSelected:d,selectedOrder:p,isShowDetails:f,canReorangeItems:m,isClipDelete:b,isHistoryDragActive:C,isClipEdit:g,isClipNameEditing:w,isPinnedBoard:x,isLargeView:S,isShowOrganizeLayoutValue:E,isDisabledPinnedMoveDown:N,isDisabledPinnedMoveUp:_,isDark:P,closeGlobalSearch:I,onMovePinnedUpDown:T=({})=>{},setShowDetailsItem:L=()=>{},setSelectedItemId:A=()=>{}}){var Y,O,$,M,W,V,U,J,H,F;var z=sn(1);try{const{t:q}=Gt(),X=it(!1),te=it(!1),ee=it(!1),G=it(""),{updateItemById:Z}=bl(),le=Oxe(),[se,de,ce,ye]=Uh({}),[pe,me,be]=Wh({}),Ee=jo(G.value,300),We=v.useRef(null),qe=v.useRef(null),ot=(E||m)&&!x,{setNodeRef:Ve,listeners:Ge,isDragging:ft,setActivatorNodeRef:Ie,isOver:Ke}=p5({transition:null,disabled:!!(ot&&g&&w)||s||!1,id:x?"".concat(t.id,"::pinnedzone"):g?"".concat(t.id,"::dropzone"):t.id,animateLayoutChanges:()=>!1,data:{type:g?"clip::dropzone":"clip",clip:t}}),ut=n&&!r?Kl(t.name,n):t.name,$e=b||_c.value&&d,ht=se===t.id,Fe=pe===t.id,pt=ye===t.id,Qe=pe===t.id?me:void 0,Lt=f&&!x&&Ji.value===t.id,Ut=t.createdAt>Math.floor(Date.now())-60*1e3&&!t.isPinned&&!t.isFavorite,wt=t.color?t.color:e||(x?"orange":"slate"),Xt=t.borderWidth&&t.borderWidth>0,$t=Xt?t.borderWidth:1,tn=Xt?"border-l-".concat(wt,"-400 hover:!border-l-").concat(wt,"-500 dark:border-l-").concat(wt,"-600 dark:hover:!border-l-").concat(wt,"-500"):"",Pt=tf("relative clip_tour overflow-hidden p-[2px] px-0 hover:shadow-sm !rounded-lg duration-300 bg-".concat(wt,"-50 dark:bg-").concat(wt,"-950 dark:bg-opacity-80 border-").concat(wt,"-200 dark:border-").concat(wt,"-900 ").concat(tn," hover:bg-white dark:hover:bg-").concat(wt,"-950 dark:hover:bg-opacity-60 ").concat(Xt?"border border-l-[".concat($t,"px] "):"border-0"," ").concat(g?"bg-white":""," ").concat(d?"bg-yellow-50 dark:bg-amber-950/80 border-amber-300 hover:border-yellow-300/80 hover:bg-yellow-50/80 dark:hover:bg-yellow-950/80":""," h-full ").concat($e?"border-red-300 bg-red-100 border hover:!bg-red-100 dark:!bg-red-900 border-l-[".concat($t,"px] "):"").concat(ht||Fe?"!border-green-600 !bg-green-50 dark:!bg-green-900 dark:!border-green-700":""," ").concat(x&&!E?"animate-in fade-in":""," ").concat(Lt?"pulse-clip":""," "),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 min-w-[120px]",overlay:"opacity-80 ml-[-2px] mt-[1px] min-w-[120px]"}}});v.useEffect(()=>{var Pe,gt,Ze,Re,Oe,et;!ot&&Dy.value?(Dy.value=null,iC.value=null):ft&&(Dy.value=(Ze=(gt=(Pe=qe==null?void 0:qe.current)==null?void 0:Pe.firstElementChild)==null?void 0:gt.getBoundingClientRect().height)!=null?Ze:null,iC.value=(et=(Oe=(Re=qe==null?void 0:qe.current)==null?void 0:Re.firstElementChild)==null?void 0:Oe.getBoundingClientRect().width)!=null?et:null)},[ft,ot]);const Ue=v.useMemo(()=>"".concat(t.id,":::").concat(x?"pinned":t.parentId),[t.id,x,t.parentId]),Je=c1.value===Ue||E||m||pt,jt=!g&&!te&&(Ut||t.isPinned||t.isFavorite)?"".concat(Ut?q("New",{ns:"common"}):""," ").concat(t.isPinned?q("Pinned",{ns:"common"}):""," ").concat(t.isFavorite?q("Starred",{ns:"common"}):""):void 0,we=v.useMemo(()=>{if(!t.links)return[];if(t.links)try{t.arrLinks=JSON.parse(t.links)}catch(Pe){t.arrLinks=[]}return t.arrLinks},[t.isLink,t.links]);v.useEffect(()=>{te.value=!1,ee.value=!1},[f]),v.useEffect(()=>{ee.value||(G.value="")},[ee.value]),v.useEffect(()=>{!f||!zf.value||(zf.value&&f&&!ee.value?ee.value=!0:zf.value&&G.value.trim()===""&&(ee.value=!1))},[zf.value]);const Se=w||g,De=ee.value||Se||E||m,nt=v.useMemo(()=>!!(t.description&&!s&&a&&!Se),[t.description,s,a,Se]);return o.jsxs(z0,{onOpenChange:Pe=>{X.value=Pe},children:[o.jsx(F0,{disabled:!Je&&!d||!!n,ref:qe,children:o.jsxs(ne,{className:"relative",children:[d&&!(ht||Fe)&&o.jsx(St,{variant:"outline",className:"bg-yellow-50 fade-in animate-in border-amber-300 dark:bg-amber-900 dark:border-amber-950/80 border cursor-pointer px-1.5 py-[1px] absolute top-[-10px] left-[-4px] z-100",children:o.jsx(re,{className:"font-mono !text-yellow-500 dark:!text-yellow-300 font-semibold",children:p})}),(ht||Fe)&&!Qe?o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:t.isForm?o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[q("Running",{ns:"common"}),"..."]}):o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[o.jsx(en,{size:14,className:"mr-1"}),ht?q("Copied",{ns:"common"}):Fe?q("Pasted",{ns:"common"}):""]})}):Qe&&me>0&&o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:t.isForm?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:q("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:me})}):o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:q("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:me})})}),o.jsxs(N7,{ref:ml(ot||g?Ve:null),style:s?{height:(Y=Dy.value)!=null?Y:"auto",width:(O=iC.value)!=null?O:"auto"}:{},onMouseEnter:()=>{c1.value=Ue},onMouseLeave:()=>{c1.value=null},onClick:()=>{c1.value=Ue},className:Pt({dragging:s?"overlay":ft?"over":void 0}),children:[o.jsxs(fve,ae(R(ae(R({title:jt},le(()=>{g||f||x||(cl.value=t.parentId)})),{onClickCapture:Pe=>{if(Pe.shiftKey){if(Pe.preventDefault(),Pe.stopPropagation(),E||m)return;f?Ws.value===t.id?Ws.value=null:L(null):L(t.id)}},onDoubleClickCapture:Pe=>{if(De||Pe.shiftKey){Pe.preventDefault();return}if(Pe.altKey||Pe.metaKey){if(t.isForm){be(t.id,void 0,!0);return}be(t.id)}else de(t.id)},className:"overflow-hidden px-2.5 pr-1 py-1 break-words whitespace-pre-wrap flex gap-2 items-center justify-start flex-row ".concat(ot?"cursor-grab":"cursor-pointer"," ").concat(S?"min-h-[30px]":"")}),ot?Ge:{}),{children:[g?o.jsx(eI,{clipId:t.id,name:t.name,isLargeView:S,description:(W=t.description)!=null?W:null,color:wt,borderWidth:t.borderWidth?t.borderWidth:0}):ee.value&&(($=t.value)!=null&&$.trim())?o.jsxs(ve,{className:"w-full text-sm",children:[o.jsx(Wd,{placeholder:"".concat(q("Find in clip",{ns:"dashboard"})," ..."),autoFocus:!0,onKeyDown:Pe=>{Pe.key==="Escape"&&G.value.trim()===""&&(ee.value=!1)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full px-[6px] h-6",onChange:Pe=>{G.value=Pe.target.value},className:"text-md ring-offset-0 pl-[6px] pr-[6px] bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8",type:"search"}),o.jsx(mr,{className:"hover:bg-transparent text-slate-500 ml-1.5",children:o.jsx(st,{text:q("Close Find",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18,onClick:()=>{ee.value=!1}})})})]}):o.jsx("div",{className:"text-slate-600 dark:text-slate-300 text-sm line-clamp-3 text-ellipsis ".concat(Ut?"font-semibold":"font-normal"," ").concat(Se||Ut?"w-full":""),children:w?o.jsx(eI,{clipId:t.id,name:t.name,isEditOnly:!0,isLargeView:S,description:(M=t.description)!=null?M:null,color:wt,borderWidth:t.borderWidth?t.borderWidth:0}):o.jsxs(ww,{text:t.description,isDisabled:!nt,side:"right",isDark:P,delayDuration:i,align:"end",classNameTrigger:"inline-flex items-start",sideOffset:10,maxWidth:l,maxHeight:c,asChild:!0,children:[we&&we.length===1&&t.isLink?o.jsx("span",{onClick:Pe=>{if(Pe.shiftKey||De){Pe.preventDefault();return}Ei(Ir(we[0]))},title:we[0],className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):t.isLink&&t.value?o.jsx("span",{onClick:Pe=>{var Re;if(Pe.shiftKey){Pe.preventDefault();return}const Ze=zr().match((Re=t.value)!=null?Re:"");Ze&&Ze.length===1?Ei(Ir(Ze[0].raw)):yo(q("Provided link {{clipValue}} might be invalid!",{ns:"common",clipValue:t.value}),"Warning")},title:t.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):t.isPath&&t.value?o.jsx("span",{onClick:()=>ge(this,null,function*(){try{yield Gs("check_path",{path:t.value}),yield Gs("open_path_or_app",{path:t.value})}catch(Pe){yo(q("Provided path {{clipValue}} might be invalid!",{ns:"common",clipValue:t.value}),"Warning")}}),title:t.value,className:"underline decoration-slate-400 hover:decoration-blue-700 hover:text-blue-700 dark:hover:decoration-blue-400 dark:hover:text-blue-400 cursor-pointer",children:ut}):ut,t.description&&f&&o.jsx(ww,{text:t.description,isDisabled:s,side:"right",isDark:P,delayDuration:300,align:"end",classNameTrigger:"mt-[2px]",sideOffset:10,maxWidth:l,maxHeight:c,asChild:!0,children:o.jsx(Mz,{size:16,className:"opacity-70 hover:opacity-100 ml-1.5 hover:text-yellow-600"})})]})}),!((Je||X.value)&&!Se&&!ee.value)&&!Se&&o.jsxs("div",{className:"text-secondary-foreground/50 flex flex-row ml-auto self-start items-center justify-end w-[40px] h-5 !mt-0 !p-0",children:[t.isFavorite&&o.jsx(Fh,{className:"absolute text-transparent ".concat(t.isPinned?" fill-orange-400":" fill-yellow-400 "," pointer-events-none right-[4px] top-[4px] animate-in fade-in duration-500"),size:11}),t.isPinned&&!t.isFavorite&&!x?o.jsx(tc,{className:"absolute text-orange-400 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28}):Ut&&!t.isFavorite&&o.jsx(tc,{className:"absolute text-green-400 pointer-events-none top-[-5px] right-[-3px] animate-in fade-in duration-500",size:28}),!g&&o.jsx("div",{className:t.isPinned&&!t.isFavorite?"mr-[11px]":Ut?"mr-[14px]":t.isFavorite?"mr-[13px]":"mr-1.5",children:we&&we.length===1&&t.isLink||t.isLink&&t.value?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Link",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(Zve,{className:"ml-1.5",width:15,height:15})}):t.isPath&&t.value?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::".concat(t.pathType),{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:t.pathType==="Folder"?o.jsx(txe,{width:16,height:16}):t.pathType==="File"?o.jsx(Jve,{width:16,height:16}):t.pathType==="App"?o.jsx(Qve,{width:16,height:16}):(((V=t.pathType)==null?void 0:V.includes("Executable"))||((U=t.pathType)==null?void 0:U.includes("Script")))&&o.jsx(exe,{width:16,height:16})}):t.isCommand?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Shell Command",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(zz,{width:16,height:16})}):t.isForm?o.jsx(o.Fragment,{children:o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Form Auto Fill",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(Hz,{width:16,height:16})})}):t.isTemplate?o.jsx(o.Fragment,{children:o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Template",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(sE,{width:16,height:16})})}):t.isWebRequest?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Web Request (HTTP)",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(NU,{width:16,height:16})}):t.isWebScraping?o.jsx(Pc,{icon:t.icon,description:t.description,pathType:q("Type:::Web Scraper / Parser",{ns:"common"}),iconVisibility:t.iconVisibility,isHover:Je,children:o.jsx(_U,{width:16,height:16})}):t.icon&&o.jsx(Pc,{icon:t.icon,description:t.description,iconVisibility:t.iconVisibility,isHover:Je})})]}),(Je||X.value)&&!Se&&(!m&&!s&&!ft&&!ee.value&&!E?o.jsx(o.Fragment,{children:o.jsxs("div",{className:"self-start justify-end text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 ".concat(f?"":"w-[40px]"," items-center justify-center fade-in-init ").concat(Je||X.value?"fade-in-init-hover":""),children:[o.jsx("div",{}),f&&!ee.value&&!t.isImage&&((J=t.value)==null?void 0:J.trim())&&o.jsx(mr,{className:"hover:bg-transparent hover:text-yellow-600 pr-2",onClick:()=>{ee.value=!0},children:o.jsx(st,{text:q("Find in Clip",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(Xve,{width:16,height:16,className:"cursor-pointer"})})}),f&&t.isImage&&S&&o.jsx(mr,{className:"hover:bg-transparent pr-3",onClick:()=>{Z({updatedItem:{itemId:t.id,imageScale:t.imageScale===1?2:1}})},children:o.jsx(st,{text:q("Image Scale {{ImageScale}}x",{ns:"common",ImageScale:t.imageScale}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsxs(ve,{children:[o.jsx(St,{variant:"outline",className:"bg-slate-100 border border-slate-100 cursor-pointer px-1.5 mr-1 py-[1px]",children:o.jsx(re,{className:"font-mono !text-slate-400 font-semibold",children:"".concat(t.imageScale,"x")})}),t.imageScale===1?o.jsx(Xce,{width:16,height:16,className:"cursor-pointer"}):o.jsx(Zce,{width:16,height:16,className:"cursor-pointer"})]})})}),o.jsx(mr,{className:"hover:bg-transparent hover:text-green-600",onClick:()=>{Tn.value?t.isForm?be(t.id,void 0,!0):be(t.id):de(t.id)},children:t.isForm?o.jsx(st,{text:q("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pt||Fe&&!Qe?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):t.isWebRequest||t.isWebScraping||t.isCommand?o.jsx(st,{text:Tn.value?q("Run and Paste Response",{ns:"common"}):q("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):pt?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):o.jsx(st,{text:Tn.value?q("Copy and Paste",{ns:"common"}):q("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):o.jsx(ba,{size:16})})}),n?o.jsx(je,{variant:"ghost",size:"mini",className:"px-1 pr-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{Ji.value=t.id,I==null||I()},ref:We,children:o.jsx(st,{text:q("Locate Clip",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(y5,{size:18})})}):o.jsx(je,{variant:"ghost",size:"mini",className:"px-1 pr-0 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent dark:hover:bg-transparent hover:text-slate-600 hover:dark:text-slate-300",onClick:()=>{var Ze,Re,Oe;const Pe=(Ze=We==null?void 0:We.current)==null?void 0:Ze.getBoundingClientRect().x,gt=(Re=We==null?void 0:We.current)==null?void 0:Re.getBoundingClientRect().y;(Oe=qe==null?void 0:qe.current)==null||Oe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Pe,clientY:gt&>+30}))},ref:We,children:o.jsx(st,{text:q("Clip Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:18})})})]})}):!ee.value&&o.jsx("div",{className:"text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 pr-2 w-[40px] items-center justify-center",children:s?o.jsx(b5,{size:16}):x?o.jsxs(ve,{children:[o.jsx(ne,{className:"".concat(_?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," pr-1 flex items-center justify-center"),children:o.jsx(fle,{size:15,onClick:()=>{_||T({itemId:t.id,moveUp:!0})}})}),o.jsx(ne,{className:"".concat(N?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," flex items-center justify-center"),children:o.jsx(hle,{size:15,onClick:()=>{N||T({itemId:t.id,moveDown:!0})}})})]}):o.jsx(je,ae(R({variant:"ghost",size:"mini"},Ge),{"data-drag-handle":!0,ref:Ie,className:"px-1 text-secondary-foreground/50 ml-auto cursor-grab fade-in animate-in !mt-0 flex hover:bg-transparent",children:o.jsx(st,{text:q("Drag to Move",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(hx,{size:16})})}))}))]})),f&&!g?o.jsx(YU,{isImage:t.isImage,isLink:t.isLink,isShowLinkedClip:Lt,searchTerm:Ee,isVideo:t.isVideo,isPath:t.isPath,isForm:t.isForm,isTemplate:t.isTemplate,isCode:t.isCode,isMenu:t.isMenu,clipName:t.name,isCommand:t.isCommand,isWebRequest:t.isWebRequest,isWebScraping:t.isWebScraping,isExpanded:te,isCopyOrPaste:ht||Fe,isDark:P,arrLinks:t.arrLinks,isMasked:t.isMasked,hasMaskedWords:t.hasMaskedWords,detectedLanguage:t.detectedLanguage,hasEmoji:t.hasEmoji,pathType:t.pathType,isImageData:t.isImageData,imageHash:t.imageHash,imageType:t.imageType,imageScale:t.imageScale,imagePathFullRes:t.imagePathFullRes,imageDataUrl:t.imageDataUrl,isLargeView:S,formTemplateOptions:t.formTemplateOptions,commandRequestOutput:(H=t.commandRequestOutput)==null?void 0:H.replace("[Err]",""),isCommandRequestRunError:!!((F=t.commandRequestOutput)!=null&&F.startsWith("[Err]")),commandRequestOutputLastRunAt:t.commandRequestLastRunAt,requestOptions:t.requestOptions,imageWidthHeight:t.imageWidth?"".concat(t.imageWidth,"x").concat(t.imageHeight):null,clipId:t.id,value:t.value}):g&&o.jsx(M2e,{value:t.value,isOver:Ke,isLargeView:S,isShowLinkedClip:Lt,isNewlyCreated:Ut,isPinned:t.isPinned,isFavorite:t.isFavorite,isDelete:$e,isCode:t.isCode,isImage:t.isImage,isCommand:t.isCommand,isLink:t.isLink,isWebRequest:t.isWebRequest,isWebScraping:t.isWebScraping,requestOptions:t.requestOptions,formTemplateOptions:t.formTemplateOptions,isPath:t.isPath,isVideo:t.isVideo,isMasked:t.isMasked,hasEmoji:t.hasEmoji,imageDataUrl:t.imageDataUrl,isText:t.isText,isTemplate:t.isTemplate,isForm:t.isForm,detectedLanguage:t.detectedLanguage,isDark:P,isHistoryDragActive:C,clipId:t.id,onCancel:()=>{Ff()}})]})]})}),o.jsx(a5e,{itemId:t.id,isSelected:d,isPinnedBoard:x,isShowDetails:f,setShowDetails:L,setSelectedItemId:A,icon:t.icon,iconVisibility:t.iconVisibility,isPinned:t.isPinned,isFavorite:t.isFavorite,isMenu:t.isMenu,isLargeView:S,tabId:t.tabId,boardId:t.parentId})]})}finally{z.f()}}const H7=v.memo(SW),uj=v.memo(t=>{var i;const e=Te(34),{board:n,itemId:r,level:s,onSelect:a}=t;if("isBoard"in n&&s<1&&((i=n.children)!=null&&i.some(l=>"isBoard"in l&&l.isBoard&&l.id!==r))){let l;e[0]!==a||e[1]!==n.id?(l=()=>{a(n.id)},e[0]=a,e[1]=n.id,e[2]=l):l=e[2];let c;e[3]!==n.name?(c=o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:n.name}),e[3]=n.name,e[4]=c):c=e[4];let d;e[5]!==l||e[6]!==c?(d=o.jsx(Rr,{onClick:l,children:c}),e[5]=l,e[6]=c,e[7]=d):d=e[7];let p;if(e[8]!==r||e[9]!==n.children||e[10]!==s||e[11]!==a){let b;e[13]!==r?(b=w=>w.id!==r,e[13]=r,e[14]=b):b=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=w=>w.type===Ys,e[15]=C):C=e[15];let g;e[16]!==r||e[17]!==s||e[18]!==a?(g=w=>o.jsx(uj,{board:w,itemId:r,level:s+1,onSelect:a},w.id),e[16]=r,e[17]=s,e[18]=a,e[19]=g):g=e[19],p=n.children.filter(b).filter(C).map(g),e[8]=r,e[9]=n.children,e[10]=s,e[11]=a,e[12]=p}else p=e[12];let f;e[20]!==p?(f=o.jsx(Or,{children:p}),e[20]=p,e[21]=f):f=e[21];let m;return e[22]!==d||e[23]!==f?(m=o.jsxs(Hr,{children:[d,f]}),e[22]=d,e[23]=f,e[24]=m):m=e[24],m}else{let l;e[25]!==a||e[26]!==n.id?(l=()=>{a(n.id)},e[25]=a,e[26]=n.id,e[27]=l):l=e[27];let c;e[28]!==n.name?(c=o.jsx("span",{className:"capitalize !block max-w-md overflow-hidden text-ellipsis whitespace-nowrap",children:n.name}),e[28]=n.name,e[29]=c):c=e[29];let d;return e[30]!==n.id||e[31]!==l||e[32]!==c?(d=o.jsx(Wt,{onSelect:l,children:c},n.id),e[30]=n.id,e[31]=l,e[32]=c,e[33]=d):d=e[33],d}});function o5e({itemId:t,itemParentId:e,onShowDescriptionChange:n,hasDescription:r,isShowDescription:s,isEdit:a,currentTabLayout:i,iconVisibility:l,icon:c,setEditBoard:d}){var p=sn(1);try{const{clipItems:f,tabs:m,currentTab:b,setClipItems:C,currentCollectionId:g,isBoardHasChildren:w}=Tt(Ar),{t:x}=Gt(),{deleteItemById:S}=Y5(),{updateItemById:E}=bl(),{updateMovedClips:N}=K5(),_=v.useMemo(()=>fs(f,b).filter(L=>L.id!==t),[f,b,t]),P=v.useCallback(()=>fs(f,b,e==null?void 0:e.toString()).filter(L=>L.id!==t).sort((L,A)=>L.orderNumber-A.orderNumber),[f,b,t,e]),I=v.useCallback((L,A)=>{const z=f.find(Y=>Y.itemId===t&&Y.isBoard);if(z&&!L&&A){const O=fs(f,b,e==null?void 0:e.toString()).find(F=>F.id===t),$=O?A7(O):[],M=f.filter(F=>F.tabId===A&&F.isBoard&&F.parentId===null).sort((F,q)=>F.orderNumber-q.orderNumber);M.unshift(z);const W=new Map(M.map((F,q)=>[F.itemId,q])),V=new Map($==null?void 0:$.map(F=>[F,!0])),U=[],J=f.map(F=>{const q=W.get(F.itemId);return q!==void 0?(U.push(F.itemId),ae(R({},F),{orderNumber:q,tabId:A,parentId:null})):V!=null&&V.has(F.itemId)?(U.push(F.itemId),ae(R({},F),{tabId:A})):F});C(J);const H=J.filter(F=>U.includes(F.itemId)).map(F=>({itemId:F.itemId,parentId:F.parentId,tabId:F.tabId,collectionId:g,orderNumber:F.orderNumber}));N({updatedMoveClips:H})}else if(z&&L&&!A){const Y=f.filter(W=>W.parentId===L&&W.tabId===b).sort((W,V)=>W.orderNumber-V.orderNumber);Y.unshift(z);const O=new Map(Y.map((W,V)=>[W.itemId,V])),$=f.map(W=>{const V=O.get(W.itemId);return V!==void 0?ae(R({},W),{orderNumber:V,parentId:L.toString()}):W});C($);const M=$.filter(W=>W.parentId===L).map(W=>({itemId:W.itemId,parentId:L,tabId:b,collectionId:g,orderNumber:W.orderNumber}));N({updatedMoveClips:M})}},[t,b]),T=function($){return ge(this,arguments,function*({isLast:L,isFirst:A,isAfterItemId:z,moveUp:Y,moveDown:O}){const M=b.toString(),W=fs(f,M,e==null?void 0:e.toString()).sort((H,F)=>H.orderNumber-F.orderNumber),V=W.findIndex(H=>H.id===t);if(V===-1)return;let U;if(Y)U=Math.max(0,V-1);else if(O)U=Math.min(W.length-1,V+1);else if(z){const H=W.findIndex(F=>F.id===z);if(H===-1)return;U=V>H?H+1:H}else U=A?0:L?W.length:0;const J=Wr(W,V,U);if(J&&J.length){const H=J.map((F,q)=>({itemId:F.id,parentId:F.parentId,tabId:F.tabId,collectionId:g,orderNumber:q}));yield N({updatedMoveClips:H})}})};return t==null?null:o.jsx(Cx,{children:o.jsxs(H0,{className:"min-w-[150px]",children:[o.jsxs(Wt,{onSelect:()=>{Bl.value=t},children:[x("Add Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(oE,{size:16})})]}),o.jsxs(Wt,{onSelect:()=>{u1.value=t},children:[x("Add Board",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:16})})]}),o.jsx(Qn,{}),Va.value!==t?o.jsxs(Wt,{onClick:()=>{Va.value=t,i==="full"&&(zo.value=!0)},children:[x("View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(dx,{size:14})})]}):o.jsxs(Wt,{onClick:()=>{Va.value=null,zo.value=!1},children:[x("Close View",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(lE,{size:14})})]}),o.jsx(Qn,{}),!a&&o.jsxs(Wt,{onClick:()=>{d(t)},children:[x("Edit Board",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(sE,{size:15,className:"ml-1"})})]}),o.jsx(Qn,{}),o.jsxs(Wt,{onClick:()=>{cl.value=t},children:[x("Organize",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(b5,{size:15,className:"fill-transparent"})})]}),r&&o.jsx(o.Fragment,{children:s?o.jsxs(Wt,{onClick:()=>{n(t,!1)},children:[x("Hide Subtitle",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(fx,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{n(t,!0)},children:[x("Show Subtitle",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(M0,{size:15})})]})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Board Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsx(tl,{checked:l==="none",onSelect:()=>{E({updatedItem:{iconVisibility:"none",itemId:t}})},className:l==="none"?"font-semibold":"",children:x("Hide",{ns:"contextMenus"})}),o.jsx(tl,{checked:l==="always",onSelect:()=>{E({updatedItem:{iconVisibility:"always",itemId:t}})},className:l==="always"?"font-semibold":"",children:x("Show",{ns:"contextMenus"})}),o.jsxs(Hr,{children:[o.jsxs(Rr,{className:"flex items-center justify-center",children:[c?o.jsx(p0,{size:16,className:"ml-1 mr-2",name:c}):o.jsx(Q8,{size:16,className:"ml-1 mr-2 opacity-30"}),x("Custom Icon",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{className:"w-64",children:[o.jsxs(Wt,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[o.jsx(ne,{className:"w-6"}),o.jsx(re,{children:x("Select Icon",{ns:"contextMenus"})}),o.jsx(je,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{E({updatedItem:{icon:"",iconVisibility:"none",itemId:t}})},children:x("RESET",{ns:"contextMenus"})})]}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:o.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:R7.map(L=>o.jsx(Wt,{className:"flex items-center justify-center ".concat(c===L?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:A=>{A.preventDefault(),E({updatedItem:{iconVisibility:"always",icon:L,itemId:t}})},children:o.jsx(p0,{name:L,size:16})},L))})})]})]})]})]}),o.jsx(Qn,{}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Position",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Wt,{onClick:()=>{T({moveUp:!0})},children:[x("Up",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(wz,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{T({moveDown:!0})},children:[x("Down",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(yz,{size:15,className:"fill-transparent"})})]}),o.jsx(Qn,{}),P().length>0&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("After",{ns:"contextMenus"}),"..."]}),o.jsx(Or,{children:P().map(L=>o.jsx(uj,{board:L,level:0,itemId:t,onSelect:A=>{T({isAfterItemId:A})}},L.id))})]}),o.jsx(Qn,{})]}),o.jsxs(Wt,{onClick:()=>{T({isFirst:!0})},children:[x("Start",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(v5,{size:15,className:"fill-transparent"})})]}),o.jsxs(Wt,{onClick:()=>{T({isLast:!0})},children:[x("End",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(Sh,{size:15,className:"fill-transparent"})})]})]})]}),o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("Move To",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("MoveTo:::Tab",{ns:"contextMenus"})," ..."]}),o.jsx(Or,{children:m.map(({tabId:L,tabName:A,tabOrderNumber:z})=>o.jsx(Wt,{onSelect:()=>{I(null,L)},children:b===L?o.jsx(re,{className:"font-semibold capitalize",children:A||"".concat(x("Tab",{ns:"dashboard"})," ").concat(z+1)}):o.jsx("span",{className:"capitalize",children:A||"".concat(x("Tab",{ns:"dashboard"})," ").concat(z+1)})},L))})]}),fs(f,b).filter(L=>L.id!==t).length>0&&o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[x("MoveTo:::Board",{ns:"contextMenus"})," ..."]}),o.jsx(Or,{children:_.map(L=>o.jsx(uj,{board:L,level:0,itemId:t,onSelect:A=>{I(A)}},L.id))})]})]})]}),!w(t)&&o.jsxs(o.Fragment,{children:[o.jsx(Qn,{}),o.jsxs(Wt,{className:Ju.value===t?"!bg-red-100 dark:!bg-red-900":"",onClick:L=>{Ju.value===t?(S({itemId:t,collectionId:g}),Ju.value):(L.preventDefault(),Ju.value=t,setTimeout(()=>{Ju.value=null},3e3))},children:[o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500",children:Ju.value!==t?x("Delete Board",{ns:"contextMenus"}):x("Click to Confirm",{ns:"common"})})}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"text-red-500"})})]})]})]})})}finally{p.f()}}const i5e="_TopRow_16h0h_1",l5e="_BottomRow_16h0h_5",c5e="_Panel_16h0h_9",u5e="_PanelContent_16h0h_14",d5e="_ResizeHandleOuter_16h0h_24",f5e="_ResizeHandleInner_16h0h_35",h5e="_Button_16h0h_46",p5e="_Icon_16h0h_58",JC={TopRow:i5e,BottomRow:l5e,Panel:c5e,PanelContent:u5e,ResizeHandleOuter:d5e,ResizeHandleInner:f5e,Button:h5e,Icon:p5e};function jW(t){const e=Te(6),{isVertical:n,className:r,id:s}=t,a=n===void 0?!1:n,i=r===void 0?"":r,l="".concat(JC.ResizeHandleOuter," ").concat(i," opacity-0 hover:opacity-100 transition-opacity"),c="".concat(JC.Icon," ").concat(a?"rotate-90":""," text-slate-300 dark:text-slate-500");let d;e[0]!==c?(d=o.jsx("div",{className:JC.ResizeHandleInner,children:o.jsx(Tz,{className:c,type:"resize-vertical"})}),e[0]=c,e[1]=d):d=e[1];let p;return e[2]!==l||e[3]!==s||e[4]!==d?(p=o.jsx(tF,{className:l,id:s,children:d}),e[2]=l,e[3]=s,e[4]=d,e[5]=p):p=e[5],p}function m5e(t){var I;const e=Te(26);let n,r,s,a,i,l,c,d;e[0]!==t?(I=t,{children:c,isLastPanel:n,fixedSize:l,hasPanel:r,hasResizeHandle:s,isVertical:a,isCollapsible:i}=I,d=Ne(I,["children","isLastPanel","fixedSize","hasPanel","hasResizeHandle","isVertical","isCollapsible"]),e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=a,e[5]=i,e[6]=l,e[7]=c,e[8]=d):(n=e[1],r=e[2],s=e[3],a=e[4],i=e[5],l=e[6],c=e[7],d=e[8]);const p=n===void 0?!1:n,f=r===void 0?!0:r,m=s===void 0?!0:s,b=a===void 0?!1:a,C=i===void 0?!1:i,[g,w]=v.useState(l||0);if(!f)return c;const x="".concat(g,"%");let S;e[9]!==x?(S={width:x},e[9]=x,e[10]=S):S=e[10];let E;e[11]!==l?(E=T=>{l||w(T)},e[11]=l,e[12]=E):E=e[12];let N;e[13]!==S||e[14]!==C||e[15]!==E||e[16]!==d||e[17]!==c?(N=o.jsx(ew,ae(R({style:S,collapsible:C,onResize:E},d),{children:c})),e[13]=S,e[14]=C,e[15]=E,e[16]=d,e[17]=c,e[18]=N):N=e[18];let _;e[19]!==p||e[20]!==m||e[21]!==b?(_=!p&&m&&o.jsx(jW,{isVertical:b}),e[19]=p,e[20]=m,e[21]=b,e[22]=_):_=e[22];let P;return e[23]!==N||e[24]!==_?(P=o.jsxs(o.Fragment,{children:[N,_]}),e[23]=N,e[24]=_,e[25]=P):P=e[25],P}const e4=["max-w-min","max-w-xs","max-w-sm","max-w-md","max-w-[50%]","max-w-prose","max-w-full","max-w-fit"];function EW({board:t,boardColor:e,isDragPreview:n,isSubBoard:r,isDark:s,showDragHandle:a,globalSearchTerm:i,isGlobalSearchBoardsOnly:l,isHistoryDragActive:c,dragOverBoardId:d,panelHeight:p,currentTabLayout:f,selectedItemIds:m,showDetailsItem:b,closeGlobalSearch:C,setShowDetailsItem:g,setCurrentTab:w,setSelectedItemId:x}){var E,N,_,P,I,T,L;var S=sn(1);try{const{t:A}=Gt(),z=v.useMemo(()=>{var $e,ht;return(ht=($e=t.children)==null?void 0:$e.map(Fe=>Fe.id))!=null?ht:[]},[t]),{updateItemById:Y,updateItemByIdPending:O}=bl(),{isClipNotesHoverCardsEnabled:$,clipNotesHoverCardsDelayMS:M,clipNotesMaxHeight:W,clipNotesMaxWidth:V}=Tt(Cr),U=it(!1),J=v.useRef(null),H=v.useRef(null),F=it(!1),q=it(!1),{isBoardHasChildren:X}=Tt(Ar),te=v.useRef(null),ee=xa.value===qo,G=lC.value===t.id&&!i,{setNodeRef:Z,listeners:le,isDragging:se}=p5({disabled:c||ee||!!Ms.value||!!Wa.value,id:t.id,data:{type:"board",isSubBoard:r,board:t}}),de=v.useMemo(()=>ll.value,[ll.value]),ce=t.id===bh.value,ye=t.name===A("Moved Clips Panel",{ns:"dashboard"}),pe=t.id===pv.value,me=Ju.value===t.id,be=ce||pe,Ee=t.color||e||"slate",We=t.borderWidth===0?r?"border":"border-none":t.borderWidth===1?"border":"border-[".concat(t.borderWidth,"px]"),qe=((E=t.layout)==null?void 0:E.startsWith("flex"))||!1,ot=t.layout==="flex-nowrap"||!1,Ve=((N=t.layout)==null?void 0:N.startsWith("grid"))||!1,Ge=parseInt((P=(_=t.layout)==null?void 0:_.split("grid-cols-")[1])!=null?P:"",10)||2,ft=cl.value===t.id&&!i,Ie=d===t.id,Ke=Va.value===t.id,ut=tf("".concat(Ie?"bg-blue-200 dark:bg-blue-400 border-blue-300 dark:border-blue-300":"".concat(el(Ee,"200")," ").concat(Ob(Ee,"300","700"))," h-full flex flex-col ").concat(be?"border-2 min-h-[120px]":"border-0 min-h-[100px]"," px-0.5 py-1 bg-opacity-70 dark:bg-opacity-70 rounded-lg overflow-hidden ").concat(me?"border-2 border-red-300 bg-red-100":""," ").concat(ye?"border-2 ".concat(Ob(Ee,"300","700")," border-opacity-70 dark:border-opacity-70"):""," ").concat(r?"border-opacity-50 dark:border-opacity-50":"border-opacity-60 dark:border-opacity-60"," ").concat(We," ").concat(ee?"hover:bg-blue-100":""," ").concat(G?"pulse-clip":""),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 dark:border-blue-500",overlay:"".concat(Ob(Ee,"300","700")," opacity-70 border-2")}}});return v.useEffect(()=>{var $e;G&&(($e=te==null?void 0:te.current)==null||$e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>{lC.value=null},1e3))},[G,te==null?void 0:te.current]),v.useEffect(()=>{se&&r&&(cl.value=t.parentId)},[se,r]),o.jsxs(N7,{ref:ml(te,Ms.value||Wa.value?null:Z),className:ut({dragging:n?"overlay":se?"over":void 0}),children:[o.jsxs(z0,{onOpenChange:$e=>{U.value=$e,Ju.value=null},children:[o.jsx(F0,{disabled:be||ft||a,ref:q.value?H:null,children:o.jsxs(hve,ae(R({onMouseEnter:()=>{q.value=!0},onMouseLeave:()=>{q.value=!1},onClick:()=>{q.value=!0},onDoubleClick:()=>{q.value=!0,!be&&(Va.value!==t.id?(f==="full"&&(zo.value=!0),Va.value=t.id):(Va.value=null,zo.value=!1))},className:"p-1 px-4 pt-2 pb-0 pr-2 flex flex-row relative board-panel-header_tour"},!de&&!be?le:{}),{children:[be?o.jsx(Yve,{boardName:t.name,boardSubtitle:t.description,scrollRef:te,isNewBoard:ce,boardColor:t.color,boardBorderWidth:(I=t.borderWidth)!=null?I:0,boardId:t.id}):o.jsxs("div",{className:"overflow-hidden",children:[o.jsxs("div",{className:"cursor-default flex items-center",children:[o.jsx(Pc,{icon:t.icon,size:17,isBoard:!0,className:"mr-1.5",description:t.showDescription?null:t.description,iconVisibility:t.iconVisibility,isHover:!0,children:ye&&o.jsx(yce,{size:17,className:"mr-1.5"})}),i?o.jsx(re,{color:"black",className:"dark:hover:!text-blue-400 hover:!text-blue-500 cursor-pointer !font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",onClick:()=>{w==null||w(t.tabId),lC.value=t.id,C==null||C()},children:l?Kl(t.name,i):t.name}):o.jsx(re,{color:"black",className:"!font-medium text-sm text-ellipsis !block overflow-hidden whitespace-nowrap first-letter:uppercase",children:t.name}),!t.showDescription&&(!t.icon||t.iconVisibility!=="always")&&o.jsx(st,{text:t.description,className:"!px-2 !py-1",delayDuration:300,isCompact:!0,isDisabled:n||!q.value,sideOffset:10,side:"bottom",children:o.jsx("div",{className:"ml-0.5 pl-1 text-primary/50 cursor-pointer hover:opacity-100 ".concat(q.value?"opacity-80":"opacity-0"),children:o.jsx(xU,{size:17})})})]}),t.description&&t.showDescription&&o.jsx("div",{onClick:()=>{F.value=!F.value},className:"!font-light text-xs cursor-default hover:opacity-100 opacity-70 hover:animate-in ".concat(F.value?"":"line-clamp-2"," mt-0.5"),children:t.description})]}),!be&&o.jsx("div",{className:"flex flex-row ml-auto opacity-0 animate-in fade-in ".concat(q.value||U.value||Ke||a||de||ft?"opacity-100":""," !mt-0"),children:n?o.jsx(b5,{size:18}):o.jsx(ve,{className:"flex-row items-start relative",children:de||a?o.jsx(mr,ae(R({},le),{className:"p-1 text-primary/50 h-auto cursor-grab absolute right-0 top-[-3px] hover:".concat(el(t.color,"200")),children:o.jsx(hx,{size:18})})):ft?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 py-0.5 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:A("Done",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:14})})]}):!i&&o.jsxs(ve,{className:"absolute right-0 top-[-3px] gap-2",children:[o.jsx(je,{title:A("Board Menu",{ns:"dashboard"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(el(t.color,"200")," dark:hover:bg-").concat(t.color,"-800 hover:").concat(el(t.color,"200")," bg-opacity-80 cursor-pointer rounded-md flex ").concat(Ke?"opacity-0":""," ").concat(q.value?"opacity-100":""),onClick:()=>{var Fe,pt,Qe;const $e=(Fe=J==null?void 0:J.current)==null?void 0:Fe.getBoundingClientRect().x,ht=(pt=J==null?void 0:J.current)==null?void 0:pt.getBoundingClientRect().y;(Qe=H==null?void 0:H.current)==null||Qe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:$e&&$e+10,clientY:ht&&ht+30}))},ref:J,children:o.jsx(yl,{size:18})}),Ke&&o.jsx(je,{title:A("Close View",{ns:"contextMenus"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(el(t.color,"100")," dark:hover:bg-").concat(t.color,"-800 hover:").concat(el(t.color,"200")," bg-opacity-100 cursor-pointer rounded-md !mt-0 flex"),onClick:()=>{Va.value=null,zo.value=!1},children:o.jsx(In,{size:18})})]})})}),i&&t.tabName&&o.jsx(St,{onClick:()=>{w==null||w(t.tabId),C==null||C()},variant:"secondary",className:"absolute top-0 right-2 rounded-[4px] text-slate-400 hover:text-blue-400 hover:bg-slate-50 cursor-pointer dark:hover:bg-slate-800 dark:text-slate-500 dark:hover:text-blue-500 dark:bg-slate-800",children:t.tabName}),Ke&&o.jsx(tc,{className:"absolute text-".concat(t.color?t.color:"slate","-400 dark:text-").concat(t.color?t.color:"slate","-800 top-[-15px] left-[-5px] animate-in fade-in duration-500"),size:28})]}))}),o.jsx(o5e,{itemId:t.id,itemParentId:t.parentId,icon:t.icon,currentTabLayout:f,iconVisibility:t.iconVisibility,isEdit:pe,isShowDescription:t.showDescription,hasDescription:!!t.description,setEditBoard:$e=>{pv.value=$e},onShowDescriptionChange:($e,ht)=>{Y({updatedItem:{showDescription:ht,itemId:$e}})}})]}),o.jsxs(Vh,{className:"m-0 p-0 pb-2 pr-3 pl-2 relative h-full",children:[o.jsxs(Nh,{defer:!0,options:{overflow:{x:"hidden"},scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:r||f==="auto"?400:t.showDescription&&t.description&&p?p-(be?156:90):p&&p-(be?126:60)},children:[(c||ee)&&!Ms.value&&!Wa.value&&o.jsx(gve,{board:t,isNewClip:ee,isCreatingClip:Rd.value===t.id}),o.jsx(D2,{items:z,strategy:()=>null,disabled:c||ee,children:((T=t.children)==null?void 0:T.length)&&x5e(t.children,t.layoutSplit||1).map(($e,ht)=>$e.length>0&&o.jsxs("div",{children:[ht>0&&o.jsx(GE,{className:"mt-2 mb-1 ml-1",color:Ee}),o.jsx(Nh,{defer:!0,style:{width:"100%"},options:{scrollbars:{theme:s?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:o.jsx("div",{className:"".concat(qe?"flex":"grid"," ").concat(ot?"flex-nowrap":"flex-wrap"," justify-normal gap-2.5 items-start mt-2.5 mb-2 ml-2 mr-1 ").concat(Ve?t.layout:""),children:$e==null?void 0:$e.map(Fe=>{const pt=Ms.value===Fe.id;return o.jsx("div",{className:"".concat(pt||Wa.value===Fe.id?"min-w-[265px] duration-100 ":"min-w-[140px] "," ").concat(t.layoutItemsMaxWidth?t.layoutItemsMaxWidth:pt||Wa.value===Fe.id?"max-w-full":"max-w-fit"," hover:z-100 ").concat(qe?t.layout:""),children:Fe.type===Ys?o.jsx(Tw,{isHistoryDragActive:c,dragOverBoardId:d,isDark:s,board:Fe,boardColor:Ee,showDragHandle:ft||pe,currentTabLayout:f,isSubBoard:!0,selectedItemIds:m,setSelectedItemId:x,showDetailsItem:b,setShowDetailsItem:g}):Fe.type===qo&&o.jsx(H7,{clip:Fe,boardColor:Ee,isClipNotesHoverCardsEnabled:$&&!de&&!ft,clipNotesHoverCardsDelayMS:M,clipNotesMaxHeight:W,clipNotesMaxWidth:V,globalSearchTerm:i,isGlobalSearchBoardsOnly:l,closeGlobalSearch:C,isDark:s,isClipDelete:pi.value===Fe.id,isClipNameEditing:ld.value===Fe.id,isClipEdit:pt||Wa.value===Fe.id,canReorangeItems:be||ft,isShowOrganizeLayoutValue:de,isHistoryDragActive:c,isShowDetails:b===Fe.id,setShowDetailsItem:g,setSelectedItemId:x,isSelected:m.includes(Fe.id),selectedOrder:m.indexOf(Fe.id)+1})},Fe.id)})})})]},ht))})]}),be&&o.jsxs(o.Fragment,{children:[o.jsx(Ln,{h:11}),o.jsxs(ve,{className:"justify-between w-full pl-2 pr-2 mt-2 absolute bottom-1 left-0",children:[o.jsx(pve,{boardName:t.name,isNewBoard:ce,boardId:t.id}),o.jsx(ve,{className:"w-full scroll-h-tabs-wrap",children:X(t.id)&&o.jsx(or,{style:{minWidth:"100%"},forceVisible:"y",autoHide:!1,children:o.jsx(pl,{className:"min-w-[280px] flex flex-row mt-[2px]",title:A("Change Layout",{ns:"dashboard"}),activationMode:"manual",value:t.layout||"flex-auto",onValueChange:$e=>ge(this,null,function*(){O||(yield Y({updatedItem:{layout:$e,itemId:t.id}}))}),children:o.jsxs(ve,{className:"w-full",children:[o.jsxs(ve,{className:"mr-2",children:[t.layoutSplit>1&&o.jsx(St,{onClick:()=>{Y({updatedItem:{layoutSplit:t.layoutSplit>4?1:t.layoutSplit+1,itemId:t.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:t.layoutSplit})}),o.jsx(je,{variant:"light",title:A("Vertical Split",{ns:"dashboard"}),onClick:()=>{Y({updatedItem:{layoutSplit:t.layoutSplit>4?1:t.layoutSplit+1,itemId:t.id}})},className:"px-1 py-2 bg-gray-50 hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 h-8 w-8",children:o.jsx(Foe,{size:18,className:"opacity-70"})})]}),o.jsx(ve,{className:"mr-0.5",children:o.jsx(St,{variant:"outline",title:A("Layout Max Width",{ns:"dashboard"}),onClick:()=>{let $e=e4.findIndex(Fe=>Fe===t.layoutItemsMaxWidth);$e===-1?$e=0:$e=($e+1)%e4.length;const ht=e4[$e];Y({updatedItem:{layoutItemsMaxWidth:ht,itemId:t.id}})},className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-2 py-3 h-6 mr-1",children:o.jsx(re,{className:"text-slate-400 font-semibold text-md uppercase",children:t.layoutItemsMaxWidth?(L=t.layoutItemsMaxWidth)==null?void 0:L.replace("max-w-",""):"fit"})})}),o.jsxs(Xo,{className:"self-center text-primary/40",children:[o.jsx(jr,{value:"flex-auto",className:"text-xs px-2 py-1",children:o.jsx(Fz,{size:18,className:"opacity-70"})}),o.jsx(jr,{value:"flex-1",className:"text-xs px-2 py-1",children:o.jsx(Tie,{size:18,className:"opacity-60 transform -scale-y-100"})}),o.jsx(jr,{value:"flex-nowrap",className:"text-xs px-2 py-1",children:o.jsx(Lse,{size:18,className:"opacity-60"})}),o.jsx(jr,{value:"grid-cols-".concat(Ge),className:"text-xs px-2 py-1",children:o.jsx(g6,{size:18,className:"opacity-60",onClick:$e=>{$e.stopPropagation(),Y({updatedItem:{layout:"grid-cols-".concat(Ge>3?1:Ge+1),itemId:t.id}})}})})]}),Ve&&o.jsx(St,{title:A("Number of columns",{ns:"dashboard"}),onClick:()=>{Y({updatedItem:{layout:"grid-cols-".concat(Ge>3?1:Ge+1),itemId:t.id}})},variant:"outline",className:"bg-white border border-white dark:border-slate-600 dark:bg-slate-600 cursor-pointer px-1.5 ml-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:Ge})})]})})})}),o.jsx(je,{variant:"light",title:"".concat(X(t.id)?A("Done",{ns:"common"}):""),onClick:()=>{if(Dc.value){Qr.value=!0;return}Ff()},className:"px-2 text-blue-500 animate-in fade-in bg-gray-50 hover:bg-grey-100 cursor-pointer opacity-90 hover:opacity-100 hover:text-blue-600",children:X(t.id)?o.jsx(en,{size:19}):o.jsxs(o.Fragment,{children:[o.jsx(en,{size:19,className:"mr-1"}),A("Done",{ns:"common"})]})})]})]})]})]})}finally{S.f()}}const Tw=v.memo(EW);function g5e(t){const e=Te(25),{board:n,isDragPreview:r,isDark:s,isSubBoard:a,isHistoryDragActive:i,dragOverBoardId:l,onResizeCallBack:c,panelHeight:d,currentTabLayout:p,selectedItemIds:f,showDetailsItem:m,setShowDetailsItem:b,order:C,isLastBoard:g,setSelectedItemId:w}=t;let x;e[0]!==n.id?(x=n.id.toString(),e[0]=n.id,e[1]=x):x=e[1];let S;e[2]!==c?(S=P=>{c==null||c(P)},e[2]=c,e[3]=S):S=e[3];const E=!r;let N;e[4]!==n||e[5]!==C||e[6]!==d||e[7]!==i||e[8]!==l||e[9]!==p||e[10]!==a||e[11]!==f||e[12]!==w||e[13]!==m||e[14]!==b||e[15]!==s||e[16]!==r?(N=o.jsx(Tw,{board:n,boardColor:n.color,order:C,panelHeight:d,isHistoryDragActive:i,dragOverBoardId:l,currentTabLayout:p,isSubBoard:a,selectedItemIds:f,setSelectedItemId:w,showDetailsItem:m,setShowDetailsItem:b,isDark:s,isDragPreview:r},n.id),e[4]=n,e[5]=C,e[6]=d,e[7]=i,e[8]=l,e[9]=p,e[10]=a,e[11]=f,e[12]=w,e[13]=m,e[14]=b,e[15]=s,e[16]=r,e[17]=N):N=e[17];let _;return e[18]!==x||e[19]!==C||e[20]!==S||e[21]!==E||e[22]!==g||e[23]!==N?(_=o.jsx(m5e,{defaultSize:50,isCollapsible:!1,collapsedSize:6,minSize:6,id:x,order:C,className:"board-panel_tour",onResize:S,hasResizeHandle:E,isLastPanel:g,children:N}),e[18]=x,e[19]=C,e[20]=S,e[21]=E,e[22]=g,e[23]=N,e[24]=_):_=e[24],_}const TI=v.memo(g5e);function v5e({children:t}){return t}function x5e(t,e){const n=t.length,r=Math.ceil(n/e),s=Array.from({length:e},()=>[]);return t.forEach((a,i)=>{const l=Math.min(Math.floor(i/r),e-1);s[l].push(a)}),s}var ii=(t=>(t.FOLDER="folder",t.SEPARATOR="separator",t.ITEM="item",t.DISABLED="disabled",t))(ii||{}),nl=(t=>(t.TAB="tab",t.BOARD="board",t.CLIP="clip",t))(nl||{});function y5e(t){const e=Te(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.2626 3.26045C7.38219 2.13044 8.33828 1.25 9.5 1.25H14.5C15.6617 1.25 16.6178 2.13044 16.7374 3.26045C17.5005 3.27599 18.1603 3.31546 18.7236 3.41895C19.4816 3.55818 20.1267 3.82342 20.6517 4.34835C21.2536 4.95027 21.5125 5.70814 21.6335 6.60825C21.75 7.47522 21.75 8.57754 21.75 9.94513V16.0549C21.75 17.4225 21.75 18.5248 21.6335 19.3918C21.5125 20.2919 21.2536 21.0497 20.6517 21.6517C20.0497 22.2536 19.2919 22.5125 18.3918 22.6335C17.5248 22.75 16.4225 22.75 15.0549 22.75H8.94513C7.57754 22.75 6.47522 22.75 5.60825 22.6335C4.70814 22.5125 3.95027 22.2536 3.34835 21.6517C2.74643 21.0497 2.48754 20.2919 2.36652 19.3918C2.24996 18.5248 2.24998 17.4225 2.25 16.0549V9.94513C2.24998 8.57754 2.24996 7.47522 2.36652 6.60825C2.48754 5.70814 2.74643 4.95027 3.34835 4.34835C3.87328 3.82342 4.51835 3.55818 5.27635 3.41895C5.83973 3.31546 6.49952 3.27599 7.2626 3.26045ZM7.26496 4.76087C6.54678 4.7762 5.99336 4.81234 5.54735 4.89426C4.98054 4.99838 4.65246 5.16556 4.40901 5.40901C4.13225 5.68577 3.9518 6.07435 3.85315 6.80812C3.75159 7.56347 3.75 8.56458 3.75 10V16C3.75 17.4354 3.75159 18.4365 3.85315 19.1919C3.9518 19.9257 4.13225 20.3142 4.40901 20.591C4.68577 20.8678 5.07435 21.0482 5.80812 21.1469C6.56347 21.2484 7.56458 21.25 9 21.25H15C16.4354 21.25 17.4365 21.2484 18.1919 21.1469C18.9257 21.0482 19.3142 20.8678 19.591 20.591C19.8678 20.3142 20.0482 19.9257 20.1469 19.1919C20.2484 18.4365 20.25 17.4354 20.25 16V10C20.25 8.56458 20.2484 7.56347 20.1469 6.80812C20.0482 6.07434 19.8678 5.68577 19.591 5.40901C19.3475 5.16556 19.0195 4.99838 18.4527 4.89426C18.0066 4.81234 17.4532 4.7762 16.735 4.76087C16.6058 5.88062 15.6544 6.75 14.5 6.75H9.5C8.34559 6.75 7.39424 5.88062 7.26496 4.76087ZM9.5 2.75C9.08579 2.75 8.75 3.08579 8.75 3.5V4.5C8.75 4.91421 9.08579 5.25 9.5 5.25H14.5C14.9142 5.25 15.25 4.91421 15.25 4.5V3.5C15.25 3.08579 14.9142 2.75 14.5 2.75H9.5ZM6.25 10.5C6.25 10.0858 6.58579 9.75 7 9.75H17C17.4142 9.75 17.75 10.0858 17.75 10.5C17.75 10.9142 17.4142 11.25 17 11.25H7C6.58579 11.25 6.25 10.9142 6.25 10.5ZM7.25 14C7.25 13.5858 7.58579 13.25 8 13.25H16C16.4142 13.25 16.75 13.5858 16.75 14C16.75 14.4142 16.4142 14.75 16 14.75H8C7.58579 14.75 7.25 14.4142 7.25 14ZM8.25 17.5C8.25 17.0858 8.58579 16.75 9 16.75H15C15.4142 16.75 15.75 17.0858 15.75 17.5C15.75 17.9142 15.4142 18.25 15 18.25H9C8.58579 18.25 8.25 17.9142 8.25 17.5Z",fill:"currentColor"}),e[0]=n):n=e[0];let r;return e[1]!==t.className?(r=o.jsx("svg",{viewBox:"0 0 25 25",className:t.className,xmlns:"http://www.w3.org/2000/svg",children:n}),e[1]=t.className,e[2]=r):r=e[2],r}const b5e=t=>{var e=sn(1);try{const n=Te(243),{selectedItemIds:r,hasPinnedItemsInSelected:s,hasFavoriteItemsInSelected:a,setSelectedItemIds:i}=t,{deleteItemsByIds:l}=Sge(),{t:c}=Gt();let d;n[0]===Symbol.for("react.memo_cache_sentinel")?(d={},n[0]=d):d=n[0];const[,,,p]=Wh(d);let f;n[1]===Symbol.for("react.memo_cache_sentinel")?(f={},n[1]=f):f=n[1];const[,,m]=Uh(f),{updateItemByIds:b}=vge(),{copyPasteSequencePinnedDelay:C,setCopyPasteSequencePinnedDelay:g,copyPasteSequenceIsReversOrder:w,setCopyPasteSequenceIsReversOrder:x}=Tt(Cr),{currentCollectionId:S}=Tt(Ar);let E;n[2]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(y5e,{className:"w-[24px]",lightingColor:"white"}),n[2]=E):E=n[2];let N;n[3]!==r.length?(N=r.length>0&&o.jsx(St,{variant:"slate",className:"absolute left-[-12px] top-[-12px]",children:r.length}),n[3]=r.length,n[4]=N):N=n[4];let _;n[5]!==N?(_=o.jsx(Gn,{asChild:!0,className:"animate-in fade-in",children:o.jsxs(je,{variant:"ghost",size:"mini",className:"ml-1 mr-0.5 px-1.5 py-1 w-[32px] h-[32px] bg-slate-100 dark:bg-slate-900/90 dark:hover:bg-slate-800 bg-opacity-80 text-secondary-foreground/50 cursor-pointer !mt-0 hover:bg-opacity-100 relative rounded-sm",children:[E,N]})}),n[5]=N,n[6]=_):_=n[6];const P=r.length===0;let I;n[7]!==i?(I=()=>{i([])},n[7]=i,n[8]=I):I=n[8];let T;n[9]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx(eE,{className:"mr-2 h-4 w-4"}),n[9]=T):T=n[9];let L;n[10]!==c?(L=c("Deselect All",{ns:"common"}),n[10]=c,n[11]=L):L=n[11];let A;n[12]!==L?(A=o.jsx(re,{className:"mr-1",children:L}),n[12]=L,n[13]=A):A=n[13];let z;n[14]!==P||n[15]!==I||n[16]!==A?(z=o.jsxs(rt,{disabled:P,onClick:I,children:[T,A]}),n[14]=P,n[15]=I,n[16]=A,n[17]=z):z=n[17];let Y;n[18]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(kn,{}),n[18]=Y):Y=n[18];const O=r.length===0;let $;n[19]!==m||n[20]!==r||n[21]!==i?($=()=>ge(void 0,null,function*(){yield m([...r]),i([])}),n[19]=m,n[20]=r,n[21]=i,n[22]=$):$=n[22];let M;n[23]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx(ba,{className:"mr-2 h-4 w-4"}),n[23]=M):M=n[23];let W;n[24]!==c?(W=c("Sequence Copy",{ns:"common"}),n[24]=c,n[25]=W):W=n[25];let V;n[26]!==W?(V=o.jsx(re,{className:"mr-1",children:W}),n[26]=W,n[27]=V):V=n[27];let U;n[28]!==O||n[29]!==$||n[30]!==V?(U=o.jsxs(rt,{disabled:O,onClick:$,children:[M,V]}),n[28]=O,n[29]=$,n[30]=V,n[31]=U):U=n[31];const J=r.length===0;let H;n[32]!==p||n[33]!==r||n[34]!==i?(H=()=>ge(void 0,null,function*(){yield p([...r]),i([])}),n[32]=p,n[33]=r,n[34]=i,n[35]=H):H=n[35];let F;n[36]===Symbol.for("react.memo_cache_sentinel")?(F=o.jsx(Ds,{className:"mr-2 h-4 w-4"}),n[36]=F):F=n[36];let q;n[37]!==c?(q=c("Sequence Paste",{ns:"common"}),n[37]=c,n[38]=q):q=n[38];let X;n[39]!==q?(X=o.jsx(re,{className:"mr-1",children:q}),n[39]=q,n[40]=X):X=n[40];let te;n[41]!==J||n[42]!==H||n[43]!==X?(te=o.jsxs(rt,{disabled:J,onClick:H,children:[F,X]}),n[41]=J,n[42]=H,n[43]=X,n[44]=te):te=n[44];let ee;n[45]===Symbol.for("react.memo_cache_sentinel")?(ee=o.jsx(qce,{className:"mr-2 h-4 w-4"}),n[45]=ee):ee=n[45];let G;n[46]!==c?(G=c("Next Delay",{ns:"common"}),n[46]=c,n[47]=G):G=n[47];let Z;n[48]!==G?(Z=o.jsx(re,{children:G}),n[48]=G,n[49]=Z):Z=n[49];let le;n[50]!==C?(le=o.jsxs(St,{variant:"slate",className:"ml-auto py-0 bg-slate-200 text-slate-500",children:[C,"s"]}),n[50]=C,n[51]=le):le=n[51];let se;n[52]!==Z||n[53]!==le?(se=o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[ee,Z,le]})}),n[52]=Z,n[53]=le,n[54]=se):se=n[54];let de;n[55]!==c?(de=c("Sequence Next Delay",{ns:"common"}),n[55]=c,n[56]=de):de=n[56];let ce;n[57]!==de?(ce=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:de}),n[57]=de,n[58]=ce):ce=n[58];const ye=C===1;let pe;n[59]!==g?(pe=Mn=>{Mn.preventDefault(),g(1)},n[59]=g,n[60]=pe):pe=n[60];let me;n[61]!==c?(me=c("second",{ns:"common"}),n[61]=c,n[62]=me):me=n[62];let be;n[63]!==me?(be=o.jsxs(re,{children:["1 ",me]}),n[63]=me,n[64]=be):be=n[64];let Ee;n[65]!==ye||n[66]!==pe||n[67]!==be?(Ee=o.jsx(Cn,{checked:ye,onSelect:pe,children:be}),n[65]=ye,n[66]=pe,n[67]=be,n[68]=Ee):Ee=n[68];const We=C===2;let qe;n[69]!==g?(qe=Mn=>{Mn.preventDefault(),g(2)},n[69]=g,n[70]=qe):qe=n[70];let ot;n[71]!==c?(ot=c("seconds",{ns:"common"}),n[71]=c,n[72]=ot):ot=n[72];let Ve;n[73]!==ot?(Ve=o.jsxs(re,{children:["2 ",ot]}),n[73]=ot,n[74]=Ve):Ve=n[74];let Ge;n[75]!==We||n[76]!==qe||n[77]!==Ve?(Ge=o.jsx(Cn,{checked:We,onSelect:qe,children:Ve}),n[75]=We,n[76]=qe,n[77]=Ve,n[78]=Ge):Ge=n[78];const ft=C===3;let Ie;n[79]!==g?(Ie=Mn=>{Mn.preventDefault(),g(3)},n[79]=g,n[80]=Ie):Ie=n[80];let Ke;n[81]!==c?(Ke=c("seconds",{ns:"common"}),n[81]=c,n[82]=Ke):Ke=n[82];let ut;n[83]!==Ke?(ut=o.jsxs(re,{children:["3 ",Ke]}),n[83]=Ke,n[84]=ut):ut=n[84];let $e;n[85]!==ft||n[86]!==Ie||n[87]!==ut?($e=o.jsx(Cn,{checked:ft,onSelect:Ie,children:ut}),n[85]=ft,n[86]=Ie,n[87]=ut,n[88]=$e):$e=n[88];const ht=C===4;let Fe;n[89]!==g?(Fe=Mn=>{Mn.preventDefault(),g(4)},n[89]=g,n[90]=Fe):Fe=n[90];let pt;n[91]!==c?(pt=c("seconds",{ns:"common"}),n[91]=c,n[92]=pt):pt=n[92];let Qe;n[93]!==pt?(Qe=o.jsxs(re,{children:["4 ",pt]}),n[93]=pt,n[94]=Qe):Qe=n[94];let Lt;n[95]!==ht||n[96]!==Fe||n[97]!==Qe?(Lt=o.jsx(Cn,{checked:ht,onSelect:Fe,children:Qe}),n[95]=ht,n[96]=Fe,n[97]=Qe,n[98]=Lt):Lt=n[98];const Ut=C===5;let wt;n[99]!==g?(wt=Mn=>{Mn.preventDefault(),g(5)},n[99]=g,n[100]=wt):wt=n[100];let Xt;n[101]!==c?(Xt=c("seconds",{ns:"common"}),n[101]=c,n[102]=Xt):Xt=n[102];let $t;n[103]!==Xt?($t=o.jsxs(re,{children:["5 ",Xt]}),n[103]=Xt,n[104]=$t):$t=n[104];let tn;n[105]!==Ut||n[106]!==wt||n[107]!==$t?(tn=o.jsx(Cn,{checked:Ut,onSelect:wt,children:$t}),n[105]=Ut,n[106]=wt,n[107]=$t,n[108]=tn):tn=n[108];const Pt=C===10;let Ue;n[109]!==g?(Ue=Mn=>{Mn.preventDefault(),g(10)},n[109]=g,n[110]=Ue):Ue=n[110];let Je;n[111]!==c?(Je=c("seconds",{ns:"common"}),n[111]=c,n[112]=Je):Je=n[112];let jt;n[113]!==Je?(jt=o.jsxs(re,{children:["10 ",Je]}),n[113]=Je,n[114]=jt):jt=n[114];let we;n[115]!==Pt||n[116]!==Ue||n[117]!==jt?(we=o.jsx(Cn,{checked:Pt,onSelect:Ue,children:jt}),n[115]=Pt,n[116]=Ue,n[117]=jt,n[118]=we):we=n[118];let Se;n[119]!==ce||n[120]!==Ee||n[121]!==Ge||n[122]!==$e||n[123]!==Lt||n[124]!==tn||n[125]!==we?(Se=o.jsxs(Ks,{className:"w-48",children:[ce,Ee,Ge,$e,Lt,tn,we]}),n[119]=ce,n[120]=Ee,n[121]=Ge,n[122]=$e,n[123]=Lt,n[124]=tn,n[125]=we,n[126]=Se):Se=n[126];let De;n[127]!==se||n[128]!==Se?(De=o.jsxs(sa,{children:[se,Se]}),n[127]=se,n[128]=Se,n[129]=De):De=n[129];let nt;n[130]===Symbol.for("react.memo_cache_sentinel")?(nt=o.jsx(oce,{className:"mr-2 h-4 w-4"}),n[130]=nt):nt=n[130];let Pe;n[131]!==c?(Pe=c("Reverse Order",{ns:"common"}),n[131]=c,n[132]=Pe):Pe=n[132];let gt;n[133]!==Pe?(gt=o.jsxs(re,{children:[Pe,"..."]}),n[133]=Pe,n[134]=gt):gt=n[134];const Ze=w?"Yes":"No";let Re;n[135]!==Ze?(Re=o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500",variant:"slate",children:Ze}),n[135]=Ze,n[136]=Re):Re=n[136];let Oe;n[137]!==gt||n[138]!==Re?(Oe=o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[nt,gt,Re]})}),n[137]=gt,n[138]=Re,n[139]=Oe):Oe=n[139];let et;n[140]!==c?(et=c("Sequence Reverse Order",{ns:"common"}),n[140]=c,n[141]=et):et=n[141];let Et;n[142]!==et?(Et=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:et})}),n[142]=et,n[143]=Et):Et=n[143];const bt=!w;let _t;n[144]!==x?(_t=Mn=>{Mn.preventDefault(),x(!1)},n[144]=x,n[145]=_t):_t=n[145];let Mt;n[146]!==c?(Mt=c("No",{ns:"common"}),n[146]=c,n[147]=Mt):Mt=n[147];let an;n[148]!==Mt?(an=o.jsx(re,{children:Mt}),n[148]=Mt,n[149]=an):an=n[149];let dn;n[150]!==bt||n[151]!==_t||n[152]!==an?(dn=o.jsx(Cn,{checked:bt,onSelect:_t,children:an}),n[150]=bt,n[151]=_t,n[152]=an,n[153]=dn):dn=n[153];let fn;n[154]!==x?(fn=Mn=>{Mn.preventDefault(),x(!0)},n[154]=x,n[155]=fn):fn=n[155];let mn;n[156]!==c?(mn=c("Yes",{ns:"common"}),n[156]=c,n[157]=mn):mn=n[157];let hn;n[158]!==mn?(hn=o.jsx(re,{children:mn}),n[158]=mn,n[159]=hn):hn=n[159];let nn;n[160]!==w||n[161]!==fn||n[162]!==hn?(nn=o.jsx(Cn,{checked:w,onSelect:fn,children:hn}),n[160]=w,n[161]=fn,n[162]=hn,n[163]=nn):nn=n[163];let on;n[164]!==Et||n[165]!==dn||n[166]!==nn?(on=o.jsxs(Ks,{className:"w-48",children:[Et,dn,nn]}),n[164]=Et,n[165]=dn,n[166]=nn,n[167]=on):on=n[167];let Sn;n[168]!==Oe||n[169]!==on?(Sn=o.jsxs(sa,{children:[Oe,on]}),n[168]=Oe,n[169]=on,n[170]=Sn):Sn=n[170];let pn;n[171]===Symbol.for("react.memo_cache_sentinel")?(pn=o.jsx(kn,{}),n[171]=pn):pn=n[171];let rn;n[172]!==b||n[173]!==r||n[174]!==i?(rn=()=>{b({updatedData:{isPinned:!0},itemIds:r}),i([])},n[172]=b,n[173]=r,n[174]=i,n[175]=rn):rn=n[175];let ct;n[176]===Symbol.for("react.memo_cache_sentinel")?(ct=o.jsx(tu,{className:"mr-2 h-4 w-4"}),n[176]=ct):ct=n[176];let xe;n[177]!==c?(xe=c("Pin Selected",{ns:"common"}),n[177]=c,n[178]=xe):xe=n[178];let Ye;n[179]!==xe?(Ye=o.jsx(re,{children:xe}),n[179]=xe,n[180]=Ye):Ye=n[180];let dt;n[181]!==rn||n[182]!==Ye?(dt=o.jsxs(rt,{onClick:rn,children:[ct,Ye]}),n[181]=rn,n[182]=Ye,n[183]=dt):dt=n[183];let mt;n[184]!==s||n[185]!==b||n[186]!==r||n[187]!==i||n[188]!==c?(mt=s&&o.jsxs(rt,{onClick:()=>{b({updatedData:{isPinned:!1},itemIds:r}),i([])},children:[o.jsx(Od,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("UnPin Selected",{ns:"common"})})]}),n[184]=s,n[185]=b,n[186]=r,n[187]=i,n[188]=c,n[189]=mt):mt=n[189];let xt;n[190]===Symbol.for("react.memo_cache_sentinel")?(xt=o.jsx(kn,{}),n[190]=xt):xt=n[190];let It;n[191]!==b||n[192]!==r||n[193]!==i?(It=()=>{b({updatedData:{isFavorite:!0},itemIds:r}),i([])},n[191]=b,n[192]=r,n[193]=i,n[194]=It):It=n[194];let At;n[195]===Symbol.for("react.memo_cache_sentinel")?(At=o.jsx(Fh,{className:"mr-2 h-4 w-4"}),n[195]=At):At=n[195];let Ht;n[196]!==c?(Ht=c("Star Selected",{ns:"common"}),n[196]=c,n[197]=Ht):Ht=n[197];let Bt;n[198]!==Ht?(Bt=o.jsx(re,{children:Ht}),n[198]=Ht,n[199]=Bt):Bt=n[199];let tt;n[200]!==It||n[201]!==Bt?(tt=o.jsxs(rt,{onClick:It,children:[At,Bt]}),n[200]=It,n[201]=Bt,n[202]=tt):tt=n[202];let Kt;n[203]!==a||n[204]!==b||n[205]!==r||n[206]!==i||n[207]!==c?(Kt=a&&o.jsxs(rt,{onClick:()=>{b({updatedData:{isFavorite:!1},itemIds:r}),i([])},children:[o.jsx(w5,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("Remove Selected Star",{ns:"common"})})]}),n[203]=a,n[204]=b,n[205]=r,n[206]=i,n[207]=c,n[208]=Kt):Kt=n[208];let Zt;n[209]===Symbol.for("react.memo_cache_sentinel")?(Zt=o.jsx(kn,{}),n[209]=Zt):Zt=n[209];const vn=r.length===0;let oe;n[210]!==l||n[211]!==r||n[212]!==S||n[213]!==i?(oe=Mn=>ge(void 0,null,function*(){_c.value?(yield l({itemIds:r,collectionId:S}),setTimeout(()=>{i([]),_c.value=!1},400)):(Mn.preventDefault(),_c.value=!0,setTimeout(()=>{_c.value=!1},3e3))}),n[210]=l,n[211]=r,n[212]=S,n[213]=i,n[214]=oe):oe=n[214];let fe;n[215]===Symbol.for("react.memo_cache_sentinel")?(fe=o.jsx(kr,{className:"mr-2 h-4 w-4 ".concat(_c.value?"text-red-500":"")}),n[215]=fe):fe=n[215];let Xe;n[216]!==c?(Xe=_c.value?c("Click to Confirm",{ns:"common"}):c("Delete",{ns:"common"}),n[216]=c,n[217]=Xe):Xe=n[217];let Me;n[218]!==Xe?(Me=o.jsx(re,{className:"mr-1 ".concat(_c.value?"!text-red-500":""),children:Xe}),n[218]=Xe,n[219]=Me):Me=n[219];let _e;n[220]!==r.length?(_e=r.length>0&&o.jsx(o.Fragment,{children:_c.value?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:r.length}):o.jsx(St,{variant:"secondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:r.length})}),n[220]=r.length,n[221]=_e):_e=n[221];let He;n[222]!==Me||n[223]!==_e?(He=o.jsxs(ve,{className:"text-red-400",children:[Me,_e]}),n[222]=Me,n[223]=_e,n[224]=He):He=n[224];let Ct;n[225]!==vn||n[226]!==oe||n[227]!==He?(Ct=o.jsxs(rt,{disabled:vn,onClick:oe,children:[fe,He]}),n[225]=vn,n[226]=oe,n[227]=He,n[228]=Ct):Ct=n[228];let cn;n[229]!==z||n[230]!==U||n[231]!==te||n[232]!==De||n[233]!==Sn||n[234]!==dt||n[235]!==mt||n[236]!==tt||n[237]!==Kt||n[238]!==Ct?(cn=o.jsxs(Wn,{className:"w-52",sideOffset:10,align:"center",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:[z,Y,U,te,De,Sn,pn,dt,mt,xt,tt,Kt,Zt,Ct]}),n[229]=z,n[230]=U,n[231]=te,n[232]=De,n[233]=Sn,n[234]=dt,n[235]=mt,n[236]=tt,n[237]=Kt,n[238]=Ct,n[239]=cn):cn=n[239];let zn;return n[240]!==_||n[241]!==cn?(zn=o.jsxs(Kn,{children:[_,cn]}),n[240]=_,n[241]=cn,n[242]=zn):zn=n[242],zn}finally{e.f()}};function w5e(t){const e=Te(16),{tabId:n}=t,{t:r}=Gt();if(n==null)return null;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{ll.value=!0},e[0]=s):s=e[0];let a;e[1]!==r?(a=r("Organize Layout",{ns:"contextMenus"}),e[1]=r,e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(Ele,{size:15})}),e[3]=i):i=e[3];let l;e[4]!==a?(l=o.jsxs(Wt,{onClick:s,children:[a,i]}),e[4]=a,e[5]=l):l=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(Qn,{}),e[6]=c):c=e[6];let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{sm.value=!0},e[7]=d):d=e[7];let p;e[8]!==r?(p=r("Edit Tabs",{ns:"contextMenus"}),e[8]=r,e[9]=p):p=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(Goe,{size:15})}),e[10]=f):f=e[10];let m;e[11]!==p?(m=o.jsxs(Wt,{onClick:d,children:[p,f]}),e[11]=p,e[12]=m):m=e[12];let b;return e[13]!==l||e[14]!==m?(b=o.jsx(Cx,{children:o.jsxs(H0,{children:[l,c,m]})}),e[13]=l,e[14]=m,e[15]=b):b=e[15],b}const{CLIP:k5e,TAB:PI,BOARD:C5e}=nl;function MI(t){const e=Te(27),{totalTabs:n,onCreateNewItemType:r,isFirstTab:s}=t,{t:a}=Gt(),i=qh();let l;e[0]!==s||e[1]!==a?(l=o.jsx(Gn,{className:"mr-1.5 rounded-sm flex",asChild:!0,children:s?o.jsx(ne,{id:"dashboard-tabs-create-button_tour",className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-800/50 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})}):o.jsx(je,{variant:"ghost",id:"dashboard-tabs-create-button_tour",size:"mini",className:"ml-1.5 mr-1 px-1 py-1 w-[30px] bg-slate-100 hover:bg-opacity-100 bg-opacity-80 dark:bg-gray-500/70 dark:hover:bg-slate-500 text-secondary-foreground/50 cursor-pointer !mt-0 flex",children:o.jsx(st,{text:"".concat(a("Add New",{ns:"contextMenus"})," ..."),isDisabled:s,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(Vr,{size:20})})})}),e[0]=s,e[1]=a,e[2]=l):l=e[2];const c=s?"center":"end",d=s?12:8;let p;e[3]!==s||e[4]!==i||e[5]!==n||e[6]!==r||e[7]!==a?(p=!s&&o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{!i&&n&&n>=2?Ga.value=!0:r(PI)},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Tab",{ns:"contextMenus"})}),n&&n>=2&&o.jsx(Jl,{})]}),e[3]=s,e[4]=i,e[5]=n,e[6]=r,e[7]=a,e[8]=p):p=e[8];let f;e[9]!==s||e[10]!==r||e[11]!==a?(f=!s&&o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(C5e)},children:[o.jsx(kv,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Board",{ns:"contextMenus"})})]}),e[9]=s,e[10]=r,e[11]=a,e[12]=f):f=e[12];let m;e[13]!==s||e[14]!==r||e[15]!==a?(m=s?o.jsxs(o.Fragment,{children:[o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:a("Dashboard",{ns:"contextMenus"})}),o.jsx(kn,{}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(PI)},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add First Tab",{ns:"contextMenus"})})]})]}):o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{r(k5e)},children:[o.jsx(oE,{size:16,className:"mr-2"}),o.jsx("span",{children:a("Add Clip",{ns:"contextMenus"})})]}),e[13]=s,e[14]=r,e[15]=a,e[16]=m):m=e[16];let b;e[17]!==c||e[18]!==d||e[19]!==p||e[20]!==f||e[21]!==m?(b=o.jsxs(Wn,{align:c,alignOffset:-28,sideOffset:d,children:[p,f,m]}),e[17]=c,e[18]=d,e[19]=p,e[20]=f,e[21]=m,e[22]=b):b=e[22];let C;return e[23]!==s||e[24]!==l||e[25]!==b?(C=o.jsxs(Kn,{defaultOpen:s,modal:!1,children:[l,b]}),e[23]=s,e[24]=l,e[25]=b,e[26]=C):C=e[26],C}const Wf=1,U1=50;function S5e({tabs:t,selectedItemIds:e,setSelectedItemIds:n,pinnedItemIds:r,currentTab:s,setCurrentTab:a}){var l,c;var i=sn(1);try{const{clipboardHistory:d}=Tt(_i),{t:p}=Gt(),{updateTabById:f}=$B(),m=v.useRef(null),b=v.useRef(null),C=it(!1),{updateMovedClips:g}=K5();v.useEffect(()=>{xa.value&&(xa.value=null)},[]);const{createNewItem:w}=G5(Bl.value===null),{currentCollectionId:x,clipItems:S}=Tt(Ar),E=(l=t.find(L=>L.tabId===s))==null?void 0:l.tabColor;function N(L,A=null){return ge(this,null,function*(){if(xa.value=L,L===nl.BOARD){const z=fs(S,s,A?A==null?void 0:A.toString():null),Y={name:p("New Board",{ns:"dashboard"}),isBoard:!0,tabId:s,showDescription:!0,color:E,borderWidth:0,parentId:A,collectionId:x,orderNumber:0},O=yield w({item:Y});z.sort((M,W)=>M.orderNumber-W.orderNumber).unshift(ae(R({},Y),{id:O,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1,description:""}));const $=z.map((M,W)=>({itemId:M.id,parentId:A,tabId:M.tabId,collectionId:x,orderNumber:W}));g({updatedMoveClips:$}),bh.value=O}else L===nl.CLIP&&(xa.value=L)})}function _(L,A=null){return ge(this,null,function*(){return new Promise((z,Y)=>ge(this,null,function*(){var H,F,q,X,te,ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We;A||Y("No board id");const O=L?d.find(qe=>qe.historyId===L):null,$=O==null?void 0:O.isImage,M=(H=S.find(qe=>qe.itemId===A))==null?void 0:H.color,W={historyId:L,name:O!=null&&O.value?O.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():$?"".concat(p("Image size",{ns:"common"})," (").concat(O==null?void 0:O.imageWidth,"x").concat(O==null?void 0:O.imageHeight,")"):p("New Clip",{ns:"dashboard"}),isClip:!0,value:(F=Nf.value)!=null?F:"",description:null,detectedLanguage:(q=O==null?void 0:O.detectedLanguage)!=null?q:null,isImage:(X=O==null?void 0:O.isImage)!=null?X:!1,imageDataUrl:(te=O==null?void 0:O.imageDataUrl)!=null?te:null,imagePathFullRes:(ee=O==null?void 0:O.imagePathFullRes)!=null?ee:null,imageHeight:(G=O==null?void 0:O.imageHeight)!=null?G:null,imageWidth:(Z=O==null?void 0:O.imageWidth)!=null?Z:null,imagePreviewHeight:(le=O==null?void 0:O.imagePreviewHeight)!=null?le:null,isLink:(se=O==null?void 0:O.isLink)!=null?se:!1,links:(de=O==null?void 0:O.links)!=null?de:null,isImageData:(ce=O==null?void 0:O.isImageData)!=null?ce:!1,isMasked:(ye=O==null?void 0:O.isMasked)!=null?ye:!1,isVideo:(pe=O==null?void 0:O.isVideo)!=null?pe:!1,isCode:(me=O==null?void 0:O.isCode)!=null?me:!1,isText:(be=O==null?void 0:O.isText)!=null?be:!1,hasEmoji:(Ee=O==null?void 0:O.hasEmoji)!=null?Ee:!1,hasMaskedWords:(We=O==null?void 0:O.hasMaskedWords)!=null?We:!1,hasMultiLineCopy:!1,tabId:s,showDescription:!1,color:M,borderWidth:2,parentId:A,collectionId:x,createdAt:0,orderNumber:0},V=yield w({item:W});Nf.value&&(Nf.value=null),Rd.value=A;const U=fs(S,s,A==null?void 0:A.toString());U.sort((qe,ot)=>qe.orderNumber-ot.orderNumber).unshift(ae(R({},W),{id:V,type:"clip"}));const J=U.map((qe,ot)=>({itemId:qe.id,parentId:qe.parentId,tabId:qe.tabId,collectionId:x,orderNumber:ot}));setTimeout(()=>ge(this,null,function*(){yield g({updatedMoveClips:J}),z(V)}),600)}))})}v.useEffect(()=>{function L(){return ge(this,null,function*(){var z;let A=null;if(Bl.value&&!Rd.value){for(const Y of(z=t0.value)!=null?z:[null])A=yield _(Y,Bl.value);setTimeout(()=>{Rd.value=null,Bl.value=null,t0.value=null,Nf.value=null,Wa.value=A},300)}})}L()},[Bl.value]),v.useEffect(()=>{function L(){return ge(this,null,function*(){yield N(nl.BOARD,u1.value),Lb.value=!1,u1.value=null})}(u1.value||Lb.value)&&L()},[u1.value,Lb.value]);const{tabLayoutSplit:P,tabLayout:I}=(c=t.find(L=>L.tabId===s))!=null?c:{},T=t.length===0&&!xa.value&&!sm.value;return o.jsxs(o.Fragment,{children:[o.jsxs(pl,{className:"flex ".concat(el(E)," rounded-lg py-0 mx-1.5 ").concat(T?"flex-col items-center justify-center pb-2 mb-1":"mb-3 mr-3"),onValueChange:L=>{a(L)},value:s,children:[o.jsxs(z0,{onOpenChange:L=>{C.value=L},children:[o.jsxs(F0,{ref:b,className:"flex w-full",disabled:T,children:[!T&&o.jsx(ve,{className:"justify-start dashboard-tabs w-full",id:"dashboard-tabs_tour",children:o.jsx(or,{style:{width:"97%"},children:sm.value?o.jsxs(Xo,{className:"bg-transparent pr-0.5",children:[t.map(({tabId:L,tabName:A,tabIsHidden:z,tabColor:Y,tabOrderNumber:O})=>L&&!z&&o.jsx(j5e,{tabColor:Y,tabId:L,tabName:A||"".concat(p("Tab",{ns:"dashboard"})," ").concat(O+1),currentTab:s},L)),xa.value===nl.TAB?o.jsx(DI,{newTabOrderNumber:t.length+1}):o.jsx(je,{variant:"outline",size:"mini",title:p("Add a Tab",{ns:"dashboard"}),className:"px-1.5 ml-1 h-8 border-0 opacity-80 hover:opacity-100 hover:text-gray-500 dark:text-gray-200 bg-gray-100 dark:bg-gray-600",onClick:()=>{N(nl.TAB)},children:o.jsx(Vr,{size:18})})]}):o.jsxs(Xo,{className:"bg-transparent pr-0.5",children:[t.map(({tabId:L,tabName:A,tabIsHidden:z,tabOrderNumber:Y})=>L&&!z&&o.jsx(E5e,{tabId:L,currentTabColor:E!=null?E:"slate",tabOrderNumber:Y,tabName:A||"".concat(p("Tab",{ns:"dashboard"})," ").concat(Y+1),currentTab:s},L)),xa.value===nl.TAB&&o.jsx(DI,{newTabOrderNumber:t.length+1})]})})}),o.jsx(ne,{className:"flex flex-row p-1 !mt-0 mr-0.5",children:ll.value?o.jsxs(o.Fragment,{children:[P&&o.jsxs(ve,{className:"mr-2",children:[P>1&&o.jsx(St,{onClick:()=>{f({updatedTab:{tabLayoutSplit:P>3?1:P+1,tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:P})}),o.jsxs(je,{variant:"light",title:p("Board Layout Split",{ns:"dashboard"}),onClick:()=>{f({updatedTab:{tabLayoutSplit:P>3?1:P+1,tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 ".concat(P===4?"w-12":"w-8"," h-8"),children:[P===1&&o.jsx(Kle,{size:18,className:"opacity-70"}),P===2&&o.jsx(iie,{size:18,className:"opacity-70"}),P===3&&o.jsx(lie,{size:18,className:"opacity-70"}),P===4&&o.jsxs(o.Fragment,{children:[o.jsx(g6,{size:18,className:"opacity-70"}),o.jsx(g6,{size:18,className:"opacity-70 ml-[-2px]"})]})]})]}),o.jsxs(ve,{className:"mr-2",children:[o.jsx(St,{onClick:()=>{f({updatedTab:{tabLayoutSplit:P,tabLayout:I==="full"?"auto":I==="auto"||!I?"full":"auto",tabId:s}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:o.jsx(re,{className:"font-mono text-slate-400 font-semibold",children:I||"auto"})}),o.jsxs(je,{variant:"light",title:p("Board Layout Height",{ns:"dashboard"}),onClick:()=>{f({updatedTab:{tabLayoutSplit:P,tabLayout:I==="full"||!I?"auto":I==="auto"?"full":"auto",tabId:s}})},className:"px-1 py-2 bg-gray-50 dark:bg-slate-600/90 cursor-pointer opacity-80 hover:opacity-100 hover:text-grey-500 w-8 h-8",children:[(I==="auto"||!I)&&o.jsx(Fz,{size:18,className:"opacity-70"}),I==="full"&&o.jsx(wa,{size:18,className:"opacity-70"})]})]}),o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{ll.value=!1,cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Organize",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]})]}):sm.value?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{sm.value=!1,cl.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit Tabs",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):xa.value===qo?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{xa.value=null,Nf.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Create Clip",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):pv.value!=null||Ms.value!=null?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80",onClick:()=>{pv.value=null,Ms.value=null},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit",{ns:"dashboard"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsxs(o.Fragment,{children:[e.length>0&&o.jsx(ne,{className:"animate-in fade-in duration-300",children:o.jsx(b5e,{selectedItemIds:e,hasPinnedItemsInSelected:e.some(L=>r.includes(L)),hasFavoriteItemsInSelected:e.some(L=>{var A;return(A=S.find(z=>z.itemId===L))==null?void 0:A.isFavorite}),setSelectedItemIds:n})}),t.length>0&&o.jsxs(o.Fragment,{children:[o.jsx(MI,{totalTabs:t.length,onCreateNewItemType:N,isFirstTab:!1}),o.jsx(je,{variant:"ghost",size:"mini",id:"dashboard-tabs-context-menu_tour",className:"px-1 py-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex w-[30px]",onClick:()=>{var z,Y,O;const L=(z=m==null?void 0:m.current)==null?void 0:z.getBoundingClientRect().x,A=(Y=m==null?void 0:m.current)==null?void 0:Y.getBoundingClientRect().y;(O=b==null?void 0:b.current)==null||O.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:L&&L+20,clientY:A&&A+20}))},ref:m,children:o.jsx(st,{text:p("Tabs Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:20})})})]})]})})]}),o.jsx(w5e,{tabId:s})]}),T&&o.jsx(MI,{onCreateNewItemType:N,isFirstTab:!0})]}),T&&o.jsx(re,{className:"text-sm mt-2 !text-slate-500 items-center justify-center mx-1.5 mr-3",children:p("Create Tab",{ns:"dashboard"})})]})}finally{i.f()}}function DI({newTabOrderNumber:t}){var e=sn(1);try{const{t:n}=Gt(),{createNewTab:r}=_ge(),{currentCollectionId:s}=Tt(Ar),a=it(!1),i=it(""),l=it(null);return o.jsxs(ve,{className:"ml-1.5",children:[o.jsx(ne,{className:"w-[22px] mr-1",children:o.jsx(lk,{color:l.value,type:Wl,itemId:null,onColorChange:c=>{l.value=c}})}),o.jsx(st,{open:a.value,text:i.value.length<=Wf?n("Too short",{ns:"dashboard"}):n("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[140px]",placeholder:n("Enter tab name",{ns:"dashboard"}),onKeyDown:c=>ge(this,null,function*(){c.stopPropagation(),c.key==="Enter"&&(i.value.length<=Wf||i.value.length>U1)?a.value=!0:c.key==="Enter"&&(yield r({tab:{tabName:i.value,tabColor:l.value,collectionId:s,tabOrderNumber:t}}))}),value:i.value,onChange:c=>{(a.value&&c.target.value.length>Wf&&c.target.value.length<=U1||a.value&&c.target.value.length===0)&&(a.value=!1),i.value=c.target.value}})}),o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>ge(this,null,function*(){a.value||(yield r({tab:{tabName:i.value,tabColor:l.value,collectionId:s,tabOrderNumber:t}}))}),children:o.jsx(st,{text:n("Create tab",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(en,{size:18})})}),o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{xa.value=null},children:o.jsx(st,{text:n("Cancel",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})]})}finally{e.f()}}function j5e({tabId:t,tabName:e,tabColor:n,currentTab:r}){var s=sn(1);try{const{t:a}=Gt(),i=it(!1),l=it(""),c=it(!1);if(!e)return null;v.useEffect(()=>{c.value&&(c.value=!1)},[r]);const d=it(!1),p=it(!1),{tabHasBoards:f,setCurrentTab:m}=Tt(Ar),{deleteItemById:b}=Tge(),{updateTabById:C}=$B();return o.jsx(ve,{className:"inline-flex items-center whitespace-nowrap rounded-sm px-1.5 pr-2 ".concat(c.value?"":"py-1.5"," ").concat(r===t&&!c.value?"bg-white dark:bg-gray-900/60":""," ").concat(p.value?"bg-red-100/80 dark:bg-red-900/70":""," ").concat(d.value?"bg-yellow-100/80 dark:bg-yellow-900/70":""," text-sm font-medium ring-offset-background transition-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset disabled:pointer-events-none disabled:opacity-50 justify-start max-w-[260px]"),children:c.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:i.value,asChild:!0,text:l.value.length<=Wf?a("Too short",{ns:"dashboard"}):a("Too long",{ns:"dashboard"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:a("Enter tab name",{ns:"dashboard"}),onKeyDown:g=>ge(this,null,function*(){g.stopPropagation(),g.key==="Escape"?c.value=!1:g.key==="Enter"&&(l.value.length<=Wf||l.value.length>U1)?i.value=!0:g.key==="Enter"&&(yield C({updatedTab:{tabName:l.value,tabId:t}}),setTimeout(()=>{c.value=!1},200))}),defaultValue:e,onChange:g=>{i.value&&g.target.value.length>Wf&&g.target.value.length<=U1||i.value&&g.target.value.length===0?i.value=!1:(g.target.value.length<=Wf||g.target.value.length>U1)&&(i.value=!0),l.value=g.target.value}})}),o.jsx(st,{text:a("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>ge(this,null,function*(){i.value||(yield C({updatedTab:{tabName:l.value,tabId:t}}),setTimeout(()=>{c.value=!1},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{c.value=!1},children:o.jsx(In,{size:18})})})})]}):o.jsxs(o.Fragment,{children:[o.jsx(lk,{color:n,itemId:t,onOpen:()=>{m(t)},updateById:C,type:Wl}),o.jsx(ne,{className:"text-ellipsis overflow-hidden first-letter:uppercase border-dashed border-b border-gray-400",onClick:g=>{g.preventDefault(),g.stopPropagation,c.value=!0},title:e,children:e}),o.jsx(ne,{onClick:()=>{c.value=!0},title:a("Edit tab name",{ns:"dashboard"}),className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(Ud,{size:14})}),o.jsxs(Sa,{defaultOpen:!1,open:p.value||d.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{className:"ml-0.5 pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-pointer opacity-70 hover:opacity-100 hover:text-red-500",title:a("Delete tab",{ns:"dashboard"}),onClick:()=>{f(t)?d.value=!0:p.value=!0},children:o.jsx(kr,{size:14})})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 ".concat(d.value?"bg-amber-100 border-amber-200 dark:bg-yellow-800 dark:border-gray-900":"bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950"," w-64"),onEscapeKeyDown:()=>{p.value=!1,d.value=!1},onPointerDownOutside:()=>{p.value=!1,d.value=!1},children:d.value?o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{justify:"left",size:"md",weight:"bold",color:"waning",children:a("Tab is Not Empty",{ns:"dashboard"})}),o.jsx(Ln,{h:1}),o.jsx(re,{color:"black",size:"sm",children:a("You'll need to clear this tab of all boards before it can be deleted.",{ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsx(je,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{d.value=!1},children:a("Got it",{ns:"common"})})]}):p.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center",children:o.jsx(us,{i18nKey:"Are you sure you want to delete {{tabName}} tab?",values:{tabName:e},ns:"dashboard"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{p.value=!1},children:o.jsx("div",{children:a("Cancel",{ns:"common"})})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200 whitespace-nowrap",onClick:()=>ge(this,null,function*(){yield b({tabId:t}),sm.value=!1,cl.value=null}),children:a("Delete Tab",{ns:"dashboard"})})]})]})})]})]})},t)}finally{s.f()}}function E5e({tabId:t,tabName:e,currentTabColor:n}){var r=sn(1);try{const{setNodeRef:s,listeners:a,transform:i,transition:l,isDragging:c}=p5({id:t,animateLayoutChanges:()=>!1,data:{type:Wl,tabId:t}}),d={transition:l,transform:Yo.Translate.toString(i)},p=n!=="slate"?"dark:data-[state=active]:bg-".concat(n,"-700"):"dark:data-[state=active]:bg-slate-600";return o.jsx(jr,ae(R({value:t,style:d,asChild:c},ll.value?{}:a),{ref:s,className:"".concat(p," data-[state=active]:bg-").concat(n,"-50 ").concat(c||Tc.value===t?"border-2 border-dashed border-blue-400 py-1":"transition-none"),children:o.jsxs(ve,{className:"justify-start max-w-[260px]",children:[o.jsx(ne,{className:"text-ellipsis overflow-hidden first-letter:uppercase",title:e,children:e}),(ll.value||c)&&o.jsx(ne,ae(R({},a),{className:"pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-grab relative",children:c?o.jsx(bz,{size:14}):o.jsx(hx,{size:14})}))]})}),t)}finally{r.f()}}const Ys="board",qo="clip",Wl="tab";function N5e({historyDragActive:t,isDark:e,dragOverBoardId:n}){var s,a,i;var r=sn(1);try{let l=function(Re){if(!ob(Re.active))return;Tc.value&&(Tc.value=null);const Oe=Re.active.data.current;(Oe==null?void 0:Oe.type)===Ys?ht(Oe.board):(Oe==null?void 0:Oe.type)===qo&&pt(Oe.clip)},c=function(Re){var Ye,dt;const{active:Oe,over:et}=Re;if(!et)return;const Et=(et==null?void 0:et.id)==="clips::pinnedzone";if(Oe!=null&&Oe.id&&Et?g(Oe.id):Et||g(null),((Ye=et.data.current)==null?void 0:Ye.type)===Wl&&((dt=Oe==null?void 0:Oe.data.current)==null?void 0:dt.type)!==Wl){const mt=Z.find(({itemId:xt})=>xt===Oe.id);((mt==null?void 0:mt.tabId)!==et.id||pe!==et.id)&&(Tc.value=et.id.toString())}else Tc.value&&(Tc.value=null);if(Et)return;const bt=Oe.id,_t=et.id;if(bt===_t||!ob(Oe)||!ob(et))return;const Mt=Oe.data.current,an=et.data.current,dn=(Mt==null?void 0:Mt.type)===qo,fn=(Mt==null?void 0:Mt.type)===Ys,mn=(an==null?void 0:an.type)===qo,hn=(an==null?void 0:an.type)===Ys;if(!dn&&!fn||dn&&hn&&cl.value===_t)return;if(dn&&hn&&!X){const mt=Mt.clip.parentId,xt=Z.filter(({parentId:tt})=>mt==tt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}else if(dn&&mn){const mt=Mt.clip.parentId,xt=Z.filter(({parentId:tt,isClip:Kt})=>mt==tt&&Kt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}else if(fn&&mn){const mt=an.clip.parentId,xt=Z.filter(({parentId:tt})=>mt==tt).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),It=xt.findIndex(({itemId:tt})=>tt===bt),At=xt.findIndex(({itemId:tt})=>tt===_t),Ht=xt[It],Bt=xt[At];if(Ht&&Bt&&Ht.parentId===Bt.parentId){const tt=Wr(xt,It,At),Kt=new Map(tt.map((vn,oe)=>[vn.itemId,oe])),Zt=Z.map(vn=>{const oe=Kt.get(vn.itemId);return oe!==void 0&&(vn.orderNumber=oe),vn});me(Zt);return}}const nn=Z.find(({itemId:mt,isBoard:xt})=>mt===_t&&xt),on=Z.find(({itemId:mt,isClip:xt})=>mt===_t&&xt),Sn=nn==null?void 0:nn.itemId,pn=on==null?void 0:on.itemId,rn=Z.findIndex(({itemId:mt})=>mt===bt),ct=Z[rn],xe=fn?Z[rn]:null;if(Sn&&ct.parentId!==Sn&&!fn){const mt=Z.filter(({parentId:At})=>Sn==At).sort((At,Ht)=>At.orderNumber-Ht.orderNumber);ct.parentId=Sn,mt.unshift(ct);const xt=new Map(mt.map((At,Ht)=>[At.itemId,Ht])),It=Z.map(At=>{const Ht=xt.get(At.itemId);return Ht!==void 0?ae(R({},At),{orderNumber:Ht}):At});me(It);return}if(pn&&(on!=null&&on.parentId)&&ct.parentId!==on.parentId&&!fn){ct.parentId=on.parentId,ct.orderNumber=on.orderNumber;const mt=Z.filter(({parentId:Ht})=>on.parentId==Ht).sort((Ht,Bt)=>Ht.orderNumber-Bt.orderNumber);mt.unshift(ct);const xt=Wr(mt,0,on.orderNumber),It=new Map(xt.map((Ht,Bt)=>[Ht.itemId,Bt])),At=Z.map(Ht=>{const Bt=It.get(Ht.itemId);return Bt!==void 0?ae(R({},Ht),{orderNumber:Bt}):Ht});me(At);return}if(Sn&&fn&&xe&&(xe==null?void 0:xe.parentId)!==(nn==null?void 0:nn.parentId)&&Mt.isSubBoard){xe.parentId=Sn;const mt=Z.filter(({parentId:At})=>nn.parentId==At).sort((At,Ht)=>At.orderNumber-Ht.orderNumber);mt.unshift(xe);const xt=new Map(mt.map((At,Ht)=>[At.itemId,Ht])),It=Z.map(At=>{const Ht=xt.get(At.itemId);return Ht!==void 0?ae(R({},At),{orderNumber:Ht}):At});me(It)}if(Sn&&fn&&(xe==null?void 0:xe.parentId)===(nn==null?void 0:nn.parentId)){const mt=Z.filter(({parentId:tt,isBoard:Kt,tabId:Zt})=>(nn==null?void 0:nn.parentId)==tt&&Kt&&Zt===pe).sort((tt,Kt)=>tt.orderNumber-Kt.orderNumber),xt=mt.findIndex(({itemId:tt})=>tt===(xe==null?void 0:xe.itemId)),It=mt.findIndex(({itemId:tt})=>tt===Sn),At=Wr(mt,xt,It),Ht=new Map(At.map((tt,Kt)=>[tt.itemId,Kt])),Bt=Z.map(tt=>{const Kt=Ht.get(tt.itemId);return Kt!==void 0?ae(R({},tt),{orderNumber:Kt}):tt});me(Bt)}};a7();const{t:d}=Gt(),{isShowPinned:p,setIsShowPinned:f}=Tt(Ls),[m,b]=v.useState(null),[C,g]=v.useState(null),[w,x]=v.useState(null),S=v.useRef(null),E=v.useRef(null),{updateTabs:N}=Nge(),{invalidateCollectionWithClips:_,isCollectionWithClipsLoadingFinished:P,isCollectionWithClipsLoading:I}=o7(),{updateMovedClips:T}=K5(),{movePinnedClipUpDown:L}=Ege(),[,,,A]=Wh({}),[,,z]=Uh({}),[Y,O]=v.useState([]),[$,M]=v.useState(!1),W=v.useRef(null),V=it(!1),U=it(!1),J=it(!1),H=it([]);v.useEffect(()=>{try{H.value=JSON.parse(localStorage.getItem("expandedPanels")||"[]")}catch(Re){console.error("Failed to load expanded panels",Re)}},[]),v.useEffect(()=>{try{localStorage.setItem("expandedPanels",JSON.stringify(H.value))}catch(Re){console.error("Failed to save expanded panels",Re)}},[H.value.length]);const F=v.useRef({}),q=v.useMemo(()=>{var Re;return E!=null&&E.current&&((Re=E==null?void 0:E.current)==null?void 0:Re.getSize())===0?!1:U.value||V.value},[V.value,U.value,E==null?void 0:E.current]),X=v.useMemo(()=>Tn.value,[Tn.value]),{createNewItem:te}=G5(),{unPinAllClips:ee}=jge(),{updatePinnedClipsByIds:G}=OB(),{clipItems:Z,pinnedClips:le,tabs:se,tabsLoaded:de,setCurrentTab:ce,setTabsByOrder:ye,currentTab:pe,setClipItemsDebounced:me,setClipItems:be,currentCollectionId:Ee}=Tt(Ar),{copyPasteSequencePinnedDelay:We,setCopyPasteSequencePinnedDelay:qe,copyPasteSequenceIsReversOrder:ot,setCopyPasteSequenceIsReversOrder:Ve,isClipNotesHoverCardsEnabled:Ge,clipNotesHoverCardsDelayMS:ft,clipNotesMaxHeight:Ie,clipNotesMaxWidth:Ke}=Tt(Cr),ut=v.useMemo(()=>Z.filter(({parentId:Re,isBoard:Oe,tabId:et})=>Re===null&&Oe&&et===pe).map(Re=>Re.itemId),[Z]);v.useEffect(()=>{le.length===0&&(V.value=!1,U.value=!1)},[le]),v.useEffect(()=>{var Re,Oe;le.length>0?(Re=E==null?void 0:E.current)==null||Re.expand():(Oe=E==null?void 0:E.current)==null||Oe.collapse()},[le,E]);const[$e,ht]=v.useState(null),[Fe,pt]=v.useState(null),Qe=v.useCallback(c,[X,$e,Fe,Z]),Lt=v.useCallback(Re=>{O(Oe=>Oe.includes(Re)?Oe.filter(Et=>Et!==Re):[...Oe,Re])},[O]),Ut=US(rm(hv,{activationConstraint:{tolerance:100,delay:600}}),rm(fv,{coordinateGetter:nj})),wt=US(rm(hv,{activationConstraint:{tolerance:10,delay:60}}),rm(fv,{coordinateGetter:nj})),Xt=v.useMemo(()=>Y.some(Re=>le.some(Oe=>Oe.id===Re)),[Y,le]),$t=v.useMemo(()=>Z.length>0?fs(Z,pe):[],[Z,pe]),tn={keyframes({transform:Re}){return $||Tc.value||C?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Yo.Transform.toString(Re.initial)},{opacity:0,transform:Yo.Transform.toString(R({},Re.final))}]},easing:"ease-out",duration:$?0:300,sideEffects({active:Re,dragOverlay:Oe}){Fe||Tc.value||C?Oe.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:rh.easing}):Re.node.animate([{opacity:0},{opacity:1}],{duration:rh.duration,easing:rh.easing})}},Pt=v.useMemo(()=>Z.filter(({isClip:Re})=>Re).map(Re=>Re.itemId),[Z,Fe]),Ue=v.useCallback(Re=>{var bt;const Oe=IQ(Re),et=Oe.length>0?Oe:z8(Re);let Et=$8(et,"id");if(Et!=null){if(Et in Pt){const _t=Z.map(Mt=>Mt.parentId===Et&&Mt.itemId);_t.length>0&&(Et=(bt=a$(ae(R({},Re),{droppableContainers:Re.droppableContainers.filter(Mt=>Mt.id!==Et&&_t.includes(Mt.id))}))[0])==null?void 0:bt.id)}return S.current=Et,[{id:Et}]}return S.current?[{id:S.current}]:[]},[$e,Fe,Pt,Z]),Je=v.useMemo(()=>t?v5e:W8,[t]),{tabLayoutSplit:jt=1,tabLayout:we}=(s=se.find(Re=>Re.tabId===pe))!=null?s:{},Se=((a=W==null?void 0:W.current)==null?void 0:a.getSizePixels())||0,De=((i=E==null?void 0:E.current)==null?void 0:i.getSizePixels())||0;v.useEffect(()=>{if(Ji.value||Ms.value){const Re=Ms.value||Ji.value,Oe=Z.find(et=>et.itemId===Re);Oe!=null&&Oe.tabId&&ce(Oe.tabId),Ji.value&&b(Ji.value),setTimeout(()=>{Ji.value=null},2e3)}},[Ji.value,Ms.value]);const nt=Re=>(F.current[Re]||(F.current[Re]=v.createRef()),F.current[Re]),Pe=v.useMemo(()=>s2e($t,Va.value),[Va.value,$t]),gt=v.useMemo(()=>zo.value,[zo.value]);return o.jsxs(Je,{sensors:ll.value?wt:Ut,measuring:{droppable:{strategy:yh.Always}},collisionDetection:Ue,onDragStart:l,onDragCancel:()=>{M(!0),ht(null),pt(null),_(),setTimeout(()=>{M(!1)},300)},onDragEnd:Ze,onDragOver:Qe,children:[o.jsx(D2,{items:ut,strategy:()=>null,children:o.jsxs($b,{autoSaveId:"ClipsDashboard",direction:"vertical",className:"flex pt-4 clips-dashboard-panel_tour",children:[p&&o.jsxs(o.Fragment,{children:[o.jsxs(ew,{collapsible:!0,ref:E,defaultSize:12,id:"pinned-clips",order:1,minSize:4,maxSize:30,className:"flex flex-col ".concat(Fe?C?"bg-orange-200/70 dark:bg-orange-600/70":"bg-orange-100 dark:bg-orange-500/70":"bg-orange-300/40 dark:bg-orange-700/40"," rounded-lg px-2 py-4 pt-3 mx-2 mr-3 relative"),children:[o.jsxs(F6,{id:"clips::pinnedzone",className:"w-full h-full",isActive:!!Fe,children:[Fe&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1.5",children:o.jsx(ne,{className:"border-2 ".concat(C?"border-orange-500 dark:border-orange-400":"border-slate-300/80 dark:border-slate-400/80"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:C?o.jsx(re,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 !font-medium animate-in fade-in duration-300 text-sm",children:d("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 animate-in fade-in duration-300"})})}),o.jsx(D1,{disableWidth:!0,defaultHeight:De-20,children:({height:Re})=>o.jsx(or,{style:{height:Re},onMouseEnter:()=>{V.value=!0},onMouseLeave:()=>{V.value=!1},onClick:()=>{V.value=!0},children:o.jsx(ve,{className:"flex flex-wrap justify-normal gap-2 items-start mt-3 mb-1 ml-1 relative ".concat(Fe?"opacity-20":""),children:le.map((Oe,et)=>o.jsx(H7,{clip:Oe,isDark:e,isClipNotesHoverCardsEnabled:Ge,clipNotesHoverCardsDelayMS:ft,clipNotesMaxHeight:Ie,clipNotesMaxWidth:Ke,isDisabledPinnedMoveUp:et===0,isDisabledPinnedMoveDown:et===le.length-1,onMovePinnedUpDown:Et=>{L(Et)},isShowDetails:w===Oe.id,setShowDetailsItem:x,setSelectedItemId:Lt,isSelected:Y.includes(Oe.id),selectedOrder:Y.indexOf(Oe.id)+1,boardColor:"gray",isShowOrganizeLayoutValue:ll.value||J.value,isPinnedBoard:!0},Oe.id))})})})]}),le.length>0&&!Fe&&o.jsxs(ve,{className:"justify-between absolute right-0 bottom-1 ".concat(J.value?"px-1":"px-2.5"," w-full"),onMouseEnter:()=>{V.value=!0},onMouseLeave:()=>{V.value=!1},onClick:()=>{V.value=!0},children:[p&&!J.value&&!ll.value&&o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(t||C||!q?"opacity-0":""),children:[o.jsx(mr,{className:"group text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:X?d("Sequence Paste",{ns:"common"}):d("Sequence Copy",{ns:"common"}),children:X?o.jsx(Ds,{size:14,onClick:()=>{A(le.map(Re=>Re.id))}}):o.jsx(ba,{size:14,onClick:()=>{z(le.map(Re=>Re.id))}})}),o.jsxs(Kn,{onOpenChange:Re=>{U.value=Re},children:[o.jsx(Gn,{asChild:!0,children:o.jsx(CE,{variant:"outline",title:d("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:o.jsxs(re,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[We,"s"]})})}),o.jsxs(Wn,{className:"w-44",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{size:"xs",children:d("Sequence Copy Paste",{ns:"common"})})}),o.jsx(kn,{}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[d("Delay Next",{ns:"common"}),"..."]}),o.jsxs(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[We,"s"]})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:We===1,onSelect:()=>{qe(1)},children:o.jsxs(re,{size:"xs",children:["1 ",d("second",{ns:"common"})]})}),o.jsx(Cn,{checked:We===2,onSelect:()=>{qe(2)},children:o.jsxs(re,{size:"xs",children:["2 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===3,onSelect:()=>{qe(3)},children:o.jsxs(re,{size:"xs",children:["3 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===4,onSelect:()=>{qe(4)},children:o.jsxs(re,{size:"xs",children:["4 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===5,onSelect:()=>{qe(5)},children:o.jsxs(re,{size:"xs",children:["5 ",d("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:We===10,onSelect:()=>{qe(10)},children:o.jsxs(re,{size:"xs",children:["10 ",d("seconds",{ns:"common"})]})})]})]}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[d("Reverse Order",{ns:"common"}),"..."]}),o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:ot?d("Yes",{ns:"common"}):d("No",{ns:"common"})})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:!ot,onSelect:()=>{Ve(!1)},children:o.jsx(re,{size:"xs",children:d("No",{ns:"common"})})}),o.jsx(Cn,{checked:ot,onSelect:()=>{Ve(!0)},children:o.jsx(re,{size:"xs",children:d("Yes",{ns:"common"})})})]})]})]})]})]}),o.jsxs(ne,{className:"animate-in fade-in duration-300 ".concat(t||C||!q?"opacity-0":""),children:[o.jsx(mr,{title:d("Reorder pinned",{ns:"common"}),onClick:()=>{J.value=!J.value},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(bz,{size:15})}),o.jsx(mr,{title:Xt?d("Deselect pinned",{ns:"common"}):d("Select pinned",{ns:"common"}),onClick:()=>{const Re=Y.filter(Oe=>le.some(et=>et.id===Oe));O(Xt?Y.filter(Oe=>!Re.includes(Oe)):Y.concat(le.map(Oe=>Oe.id)))},className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Xt?o.jsx(x5,{size:15}):o.jsx(iE,{size:17})})}),o.jsx(rB,{onOpen:Re=>{U.value=Re},onCancel:()=>{setTimeout(()=>{U.value=!1,V.value=!1},300)},onConfirm:()=>{ee({})},buttonClassName:"group !text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]})]}),J.value&&o.jsxs(je,{onClick:()=>{J.value=!1},className:"!text-orange-600 dark:!text-orange-300 bg-yellow-400 dark:bg-yellow-800 hover:bg-yellow-400/80 dark:hover:bg-yellow-700/80 px-2 pr-1 mr-0 rounded-sm py-0 h-5 flex items-center justify-center ml-auto",children:[o.jsx(re,{size:"xs",className:"!text-orange-600 dark:!text-orange-300 mr-1",children:d("Done Reorder",{ns:"common"})}),o.jsx(en,{size:15})]})]}),P&&!Fe&&o.jsx(mr,{title:d("Hide Pinned Board",{ns:"common"}),onClick:()=>{f(!1)},className:"hover:underline group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent absolute right-1 top-1.5 px-2 pr-1 rounded-sm",children:o.jsxs(ve,{className:"font-medium text-xs gap-1",children:[o.jsxs("span",{children:[le.length>0?le.length:d(" No",{ns:"common"})," ",d("Pinned",{ns:"common",count:le.length})]}),o.jsx(In,{size:14})]})})]}),o.jsx(jW,{isVertical:!0})]}),!I&&de&&o.jsx(D2,{items:se.map(Re=>Re.tabId),disabled:t,strategy:UJ,children:o.jsx(S5e,{tabs:se,selectedItemIds:Y,setSelectedItemIds:O,pinnedItemIds:le.map(Re=>Re.id),currentTab:pe,setCurrentTab:ce})}),o.jsx(ew,{collapsible:!1,order:2,ref:W,id:"boards",children:Se>0&&o.jsx(D1,{disableWidth:!0,defaultHeight:Se-20,children:({height:Re})=>o.jsxs(or,{style:{height:Re},children:[Pe?o.jsx(ne,{className:"relative",children:o.jsxs($b,{style:{height:gt?Re-14:void 0},direction:"horizontal",children:[o.jsx(TI,{board:Pe,isDark:e,panelHeight:Re,isHistoryDragActive:t,dragOverBoardId:n,currentTabLayout:gt?"full":"auto",order:Pe.orderNumber,isLastBoard:!0,showDetailsItem:m,setShowDetailsItem:b,selectedItemIds:Y,setSelectedItemId:Lt},"".concat(pe,"-expanded-").concat(Pe.id)),o.jsx(ve,{className:"absolute right-0 w-full bottom-[-13px] z-100",children:o.jsx(je,{title:zo.value?d("Collapse View",{ns:"contextMenus"}):d("Expand View",{ns:"contextMenus"}),variant:"ghost",size:"mini",className:"px-1.5 py-1 mr-2 text-secondary-foreground/50 ".concat(el(Pe.color,"200")," dark:hover:bg-").concat(Pe.color,"-900 hover:").concat(el(Pe.color,"200")," cursor-pointer rounded-md flex items-center justify-center"),onClick:()=>{zo.value=!zo.value},children:zo.value?o.jsx(Nae,{size:20}):o.jsx(jae,{size:20})})})]},"expaned-board")}):$t.reduce((Oe,et,Et)=>{const bt=Math.floor(Et/jt);return Oe[bt]||(Oe[bt]=[]),Oe[bt].push(et),Oe},[]).map((Oe,et)=>{const Et="".concat(pe,"-").concat(et),bt=nt(Et);return o.jsx($b,{ref:bt,autoSaveId:"".concat(pe,"-panel-group-").concat(et),className:"mb-3",style:{height:we==="full"?Re-12:void 0},direction:"horizontal",children:Oe.map((_t,Mt)=>o.jsx(TI,{board:_t,isDark:e,panelHeight:Re,isHistoryDragActive:t,dragOverBoardId:n,currentTabLayout:we==="full"?"full":"auto",order:_t.orderNumber,isLastBoard:Mt===Oe.length-1,showDetailsItem:m,setShowDetailsItem:b,selectedItemIds:Y,setSelectedItemId:Lt},"".concat(pe,"-").concat(et,"-").concat(Mt)))},Et)}),de&&!($t.length&&se.length)&&o.jsxs(o.Fragment,{children:[!$t.length&&se.length>0&&o.jsx(ve,{className:"flex items-start justify-center w-full absolute top-4",style:{height:Re},children:o.jsxs(ve,{className:"flex-col items-center justify-center",children:[o.jsxs(Kn,{defaultOpen:!0,modal:!1,children:[o.jsx(Gn,{className:"mr-1.5 rounded-sm",asChild:!0,children:o.jsx(ne,{className:"flex w-20 group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300 border-slate-300",children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),o.jsxs(Wn,{align:"center",sideOffset:8,children:[o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:d("Dashboard",{ns:"dashboard"})}),o.jsx(kn,{}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{Lb.value=!0},children:[o.jsx(kv,{size:16,className:"mr-2"}),o.jsx("span",{children:d("Add First Board",{ns:"dashboard"})})]})]})]}),o.jsx(re,{className:"text-sm mt-4 !text-slate-500",children:d("Create Board",{ns:"dashboard"})})]})}),o.jsx(ve,{className:"flex items-center justify-center w-full h-full",style:{height:Re},children:o.jsx(re,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:se.length?d("No Boards",{ns:"dashboard"}):d("No Tabs or Boards",{ns:"dashboard"})})})]})]})})})]})}),o.jsx(du,{children:o.jsxs(C$,{dropAnimation:tn,children:[$e&&o.jsx(EW,{board:$e,isDragPreview:!0,isDark:e,currentTabLayout:"auto",selectedItemIds:Y,setSelectedItemId:Lt}),Fe&&o.jsx(SW,{clip:Fe,isDragPreview:!0,isClipNotesHoverCardsEnabled:!1,isDark:e})]})})]});function Ze(Re){return ge(this,null,function*(){var _t,Mt,an,dn,fn,mn,hn,nn,on,Sn,pn;ht(null),pt(null),setTimeout(()=>{Tc.value=null},100);const{active:Oe,over:et}=Re;if(!Oe||!ob(Oe))return;const Et=Oe.id;if((Oe==null?void 0:Oe.id)===C&&setTimeout(()=>ge(this,null,function*(){g(null),yield G({itemIds:[Oe.id],isPinned:!0})}),300),((_t=Oe.data.current)==null?void 0:_t.type)===Wl&&((Mt=et==null?void 0:et.data.current)==null?void 0:Mt.type)===Wl){const rn=et==null?void 0:et.id,ct=se.findIndex(({tabId:xt})=>xt===Et),xe=se.findIndex(({tabId:xt})=>xt===rn),Ye=Wr(se,ct,xe),dt=new Map(Ye.map((xt,It)=>[xt.tabId,It])),mt=se.map(xt=>{const It=dt.get(xt.tabId);return It!==void 0&&(xt.tabOrderNumber=It),xt});ye(mt),yield N({updatedTabs:mt});return}if(((an=et==null?void 0:et.data.current)==null?void 0:an.type)===Wl){const rn=et.id,ct=Z.find(Ye=>Ye.itemId===Et&&Ye.isBoard),xe=Z.find(Ye=>Ye.itemId===Et&&Ye.isClip);if((ct==null?void 0:ct.tabId)===rn||(xe==null?void 0:xe.tabId)===rn||!rn)return;if(ct){const Ye=et.id.toString(),dt=(fn=(dn=Oe.data)==null?void 0:dn.current)==null?void 0:fn.isSubBoard,xt=(dt&&((hn=(mn=Oe.data)==null?void 0:mn.current)!=null&&hn.board.parentId)?fs(Z,pe,(on=(nn=Oe.data)==null?void 0:nn.current)==null?void 0:on.board.parentId):fs(Z,pe)).find(Zt=>Zt.id===Et);if(!xt)return;const It=xt?A7(xt):[],At=Z.filter(Zt=>Zt.tabId===Ye&&Zt.isBoard&&Zt.parentId===null).sort((Zt,vn)=>Zt.orderNumber-vn.orderNumber);if(dt)if(At.length===0)At.push(ct);else{const Zt=At[0].itemId.toString(),vn=Z.filter(He=>He.parentId===Zt&&He.tabId===Ye).sort((He,Ct)=>He.orderNumber-Ct.orderNumber);vn.unshift(ct);const oe=new Map(vn.map((He,Ct)=>[He.itemId,Ct])),fe=new Map(It==null?void 0:It.map(He=>[He,!0])),Xe=[],Me=Z.map(He=>{const Ct=oe.get(He.itemId);return Ct!==void 0?(Xe.push(He.itemId),ae(R({},He),{orderNumber:Ct,tabId:Ye,parentId:Zt})):fe!=null&&fe.has(He.itemId)?(Xe.push(He.itemId),ae(R({},He),{tabId:Ye})):He});be(Me);const _e=Me.filter(He=>Xe.includes(He.itemId)).map(He=>({itemId:He.itemId,parentId:He.parentId,tabId:Ye,collectionId:Ee,orderNumber:He.orderNumber}));T({updatedMoveClips:_e}),ce(Ye.toString());return}At.unshift(ct);const Ht=new Map(At.map((Zt,vn)=>[Zt.itemId,vn])),Bt=new Map(It==null?void 0:It.map(Zt=>[Zt,!0])),tt=Z.map(Zt=>{const vn=Ht.get(Zt.itemId);return vn!==void 0?ae(R({},Zt),{orderNumber:vn,tabId:Ye,parentId:null}):Bt!=null&&Bt.has(Zt.itemId)?ae(R({},Zt),{tabId:Ye}):Zt});be(tt);const Kt=tt.filter(Zt=>(Zt.parentId===null||Zt.parentId===Et||Bt.has(Zt.parentId))&&Zt.tabId===Ye).map(Zt=>({itemId:Zt.itemId,parentId:Zt.parentId,tabId:Zt.tabId,collectionId:Ee,orderNumber:Zt.orderNumber}));T({updatedMoveClips:Kt})}else if(xe){const Ye=et.id.toString(),dt=fs(Z,Ye);let mt=(Sn=dt.find(xt=>xt.name===d("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:Sn.id;if(!mt){const xt=(pn=se.find(Bt=>Bt.tabId===Ye))==null?void 0:pn.tabColor,It={name:d("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:Ye,color:xt,description:d("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:Ee,orderNumber:0},At=yield te({item:It});dt.sort((Bt,tt)=>Bt.orderNumber-tt.orderNumber).unshift(ae(R({},It),{id:At,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const Ht=dt.map((Bt,tt)=>({itemId:Bt.id,parentId:null,tabId:Bt.tabId,collectionId:Ee,orderNumber:tt}));T({updatedMoveClips:Ht}),mt=At}if(mt){const xt=mt.toString(),It=Ye.toString(),At=Z.filter(Kt=>Kt.parentId===xt&&Kt.tabId===It).sort((Kt,Zt)=>Kt.orderNumber-Zt.orderNumber);At.unshift(xe);const Ht=new Map(At.map((Kt,Zt)=>[Kt.itemId,Zt])),Bt=Z.map(Kt=>{const Zt=Ht.get(Kt.itemId);return Zt!==void 0?ae(R({},Kt),{orderNumber:Zt,tabId:It,parentId:xt}):Kt});be(Bt);const tt=Bt.filter(Kt=>Kt.parentId===xt).map(Kt=>({itemId:Kt.itemId,parentId:xt,tabId:It,collectionId:Ee,orderNumber:Kt.orderNumber}));T({updatedMoveClips:tt})}}ce(rn.toString());return}let bt=null;for(let rn=0;rnct.parentId===(bt==null?void 0:bt.parentId)).map(ct=>({itemId:ct.itemId,parentId:ct.parentId,tabId:ct.tabId,collectionId:Ee,orderNumber:ct.orderNumber}));T({updatedMoveClips:rn})}})}}finally{r.f()}}const _5e=v.memo(N5e);function II(t,e,n,r=!0,s=!1){const a=f=>n.filter(m=>m.tabId===f),i=f=>t.filter(m=>{var g;if(!(m.parentId===f&&m.isClip))return!1;const b=m.name.toLowerCase().includes(e.toLowerCase()),C=!r&&((g=m.value)==null?void 0:g.toLowerCase().includes(e.toLowerCase()));return b||C}).map(m=>ae(R({},m),{type:qo,id:m.itemId.toString()})),l=f=>t.filter(m=>m.parentId===f&&m.isClip).map(m=>ae(R({},m),{type:qo,id:m.itemId.toString()})).sort((m,b)=>m.orderNumber-b.orderNumber),c=t.filter(f=>f.isBoard);let d=0;const p=s?c.filter(f=>f.name.toLowerCase().includes(e.toLowerCase())).map(f=>{var b;const m=l(f.itemId.toString());return ae(R({},f),{type:Ys,showDescription:!1,tabName:(b=a(f.tabId)[0])==null?void 0:b.tabName,id:f.itemId.toString(),children:m})}):c.map(f=>{var b;const m=i(f.itemId.toString());return m.length>0?(d=d+m.length,ae(R({},f),{type:Ys,showDescription:!1,tabName:(b=a(f.tabId)[0])==null?void 0:b.tabName,id:f.itemId.toString(),children:m})):null}).filter(f=>f!==null);return{results:p,count:s?p.length:d}}function Av(t,e,n=!1){const r=s=>t.map(({itemId:a,name:i,parentId:l,orderNumber:c,isActive:d,isDisabled:p,isDeleted:f,isClip:m,isFolder:b,isSeparator:C})=>({id:a,name:i,parentId:l,orderNumber:c,isActive:d,isDisabled:p,isDeleted:f,isClip:m,isFolder:b,isSeparator:C,children:[]})).filter(a=>a.parentId===s).filter(a=>a.isActive||n&&!a.isActive).sort((a,i)=>a.orderNumber-i.orderNumber).map(a=>(a.children=r(a.id),a.children.length===0&&!a.isFolder&&delete a.children,a));return r(e||null)}function dj(){return dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e'),!0):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var R5e=function(e,n,r){r===void 0&&(r=!1);var s=n.alt,a=n.meta,i=n.mod,l=n.shift,c=n.ctrl,d=n.keys,p=e.key,f=e.code,m=e.ctrlKey,b=e.metaKey,C=e.shiftKey,g=e.altKey,w=Ed(f),x=p.toLowerCase();if(!r){if(s===!g&&x!=="alt"||l===!C&&x!=="shift")return!1;if(i){if(!b&&!m)return!1}else if(a===!b&&x!=="meta"&&x!=="os"||c===!m&&x!=="ctrl"&&x!=="control")return!1}return d&&d.length===1&&(d.includes(x)||d.includes(w))?!0:d?M5e(d):!d},O5e=v.createContext(void 0),$5e=function(){return v.useContext(O5e)};function MW(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,r){return n&&MW(t[r],e[r])},!0):t===e}var z5e=v.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F5e=function(){return v.useContext(z5e)};function H5e(t){var e=v.useRef(void 0);return MW(e.current,t)||(e.current=t),e.current}var AI=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},B5e=typeof window!="undefined"?v.useLayoutEffect:v.useEffect;function Vs(t,e,n,r){var s=v.useRef(null),a=v.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,l=B7(t)?t.join(i==null?void 0:i.splitKey):t,c=n instanceof Array?n:r instanceof Array?r:void 0,d=v.useCallback(e,c!=null?c:[]),p=v.useRef(d);c?p.current=d:p.current=e;var f=H5e(i),m=F5e(),b=m.enabledScopes,C=$5e();return B5e(function(){if(!((f==null?void 0:f.enabled)===!1||!L5e(b,f==null?void 0:f.scopes))){var g=function(N,_){var P;if(_===void 0&&(_=!1),!(A5e(N)&&!PW(N,f==null?void 0:f.enableOnFormTags))&&!(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(N))){if(s.current!==null&&document.activeElement!==s.current&&!s.current.contains(document.activeElement)){AI(N);return}(P=N.target)!=null&&P.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||t4(l,f==null?void 0:f.splitKey).forEach(function(I){var T,L=n4(I,f==null?void 0:f.combinationKey);if(R5e(N,L,f==null?void 0:f.ignoreModifiers)||(T=L.keys)!=null&&T.includes("*")){if(_&&a.current)return;if(D5e(N,L,f==null?void 0:f.preventDefault),!I5e(N,L,f==null?void 0:f.enabled)){AI(N);return}p.current(N,L),_||(a.current=!0)}})}},w=function(N){N.key!==void 0&&(_W(Ed(N.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&g(N))},x=function(N){N.key!==void 0&&(TW(Ed(N.code)),a.current=!1,f!=null&&f.keyup&&g(N,!0))},S=s.current||(i==null?void 0:i.document)||document;return S.addEventListener("keyup",x),S.addEventListener("keydown",w),C&&t4(l,f==null?void 0:f.splitKey).forEach(function(E){return C.addHotkey(n4(E,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){S.removeEventListener("keyup",x),S.removeEventListener("keydown",w),C&&t4(l,f==null?void 0:f.splitKey).forEach(function(E){return C.removeHotkey(n4(E,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[l,f,b]),s}function U5e({id:t,isSelected:e,deletingMenuItemIds:n,itemParentId:r,isDisabled:s,isImage:a,isClip:i,isSeparator:l,isActive:c,isFolder:d,isOpen:p,setOpenItemId:f,itemOrderNumber:m,hasChildren:b,deselectItemById:C,setSelectedItemIds:g,selectItemById:w}){var x=sn(1);try{const{t:S}=Gt(),{duplicateMenuItem:E}=wge(),{deleteMenuItemById:N}=RB(),{updateMenuItemById:_}=jx(),{updateMovedMenuItems:P}=i7(),I=ua(),{menuItems:T,currentCollectionId:L}=Tt(Ar);return o.jsx(Cx,{children:o.jsxs(H0,{className:"w-[150px]",children:[c?i?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Link To Clip",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):d?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Submenu",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):l?o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Separator",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Menu",{ns:"contextMenus"})}),o.jsx(Qn,{})]}):o.jsxs(o.Fragment,{children:[o.jsx(Wt,{disabled:!0,className:"flex justify-center py-0",children:S("Menu is Not Active",{ns:"contextMenus"})}),o.jsx(Qn,{}),o.jsxs(Wt,{onClick:()=>{_({updatedItem:{itemId:t,isActive:!0}})},children:[S("Activate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(M0,{size:15,className:"ml-auto"})})]}),o.jsx(Qn,{})]}),e?o.jsxs(Wt,{onClick:()=>{C==null||C(t)},children:[S("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(uE,{size:15})})]}):o.jsxs(Wt,{onClick:()=>{w==null||w(t)},children:[S("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(qa,{size:15})})]}),o.jsx(Qn,{}),Hs.value!==t&&!i&&o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Hs.value=t,ul.value=!0},children:[S("Edit Label",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Ud,{size:14})})]}),!i&&!d&&Hs.value!==t&&o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Hs.value=t},children:[a?S("Edit Image",{ns:"contextMenus"}):S("Edit Value",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}),i&&o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Ms.value=t,Ji.value=t,I("/history",{replace:!0})},children:[S("Edit Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Y2,{size:15})})]}),o.jsxs(Wt,{disabled:!c||ho.value,onClick:()=>{Ji.value=t,I("/history",{replace:!0})},children:[S("Locate Clip",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(y5,{size:15})})]})]}),o.jsx(Qn,{}),o.jsxs(Wt,{disabled:!c,onClick:()=>ge(this,null,function*(){g&&g([t]),ho.value=!0}),children:[S("Add New Item",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx($z,{size:15})})]}),!i&&o.jsxs(Wt,{disabled:!c,onClick:()=>ge(this,null,function*(){var $;if(!L)return;const A=yield E({itemId:t,parentId:r!=null?r:null,orderNumber:m+2,collectionId:L}),z=Av(T);z.unshift({name:S("Copy of ",{ns:"common"})+(($=z.find(M=>M.id===t))==null?void 0:$.name),parentId:r!=null?r:null,orderNumber:m+2,id:A});const Y=p6(z,r!=null?r:null,[A],m+2),O=Y==null?void 0:Y.map(({id:M,parentId:W,orderNumber:V})=>({itemId:M,parentId:W,tabId:null,collectionId:L,orderNumber:V}));P({updatedMoveMenuItems:O})}),children:[S("Duplicate",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(tE,{size:15})})]}),o.jsx(Qn,{}),s?o.jsxs(Wt,{disabled:!c,onClick:()=>{_({updatedItem:{itemId:t,isDisabled:!1}})},children:[S("Make Enabled",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Iz,{size:15,className:"ml-auto"})})]}):o.jsxs(Wt,{disabled:!c,onClick:()=>{_({updatedItem:{itemId:t,isDisabled:!0}}),p&&(f==null||f(null))},children:[S("Make Disabled",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(s0,{size:15,className:"ml-auto"})})]}),o.jsx(Qn,{}),c&&o.jsxs(Wt,{onClick:()=>{_({updatedItem:{itemId:t,isActive:!1}}),p&&(f==null||f(null))},children:[S("Make Inactive",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(fx,{size:15,className:"ml-auto"})})]}),o.jsxs(ne,{className:"group",children:[o.jsxs(Wt,{className:Vu.value===t?"!bg-red-100 dark:!bg-red-900":"",disabled:b,onClick:A=>{var z,Y;Vu.value===t?(N({itemId:t,collectionId:L}),n.value=(Y=(z=n.value)==null?void 0:z.filter(O=>O!==t))!=null?Y:[],C==null||C(t),Vu.value):(A.preventDefault(),Vu.value=t,n.value=n.value?[...n.value,t]:[t],setTimeout(()=>{var O,$;Vu.value=null,n.value=($=(O=n.value)==null?void 0:O.filter(M=>M!==t))!=null?$:[]},3e3))},children:[o.jsx(re,{className:"".concat(b?"!text-gray-500":"!text-red-500"),children:Vu.value!==t?S("Delete",{ns:"common"}):S("Click to Confirm",{ns:"common"})}),!Vu.value&&o.jsx("div",{className:"ml-auto pl-3",children:o.jsx(kr,{size:15,className:"".concat(b?"!text-gray-500":"!text-red-500")})})]}),b&&o.jsx(ve,{className:"p-0.5",children:o.jsx(re,{className:"!text-gray-400/80 text-[11px] group-hover:!text-amber-500",children:S("Remove Submenus First",{ns:"common"})})})]})]})})}finally{x.f()}}function W5e(){const t=Te(4),{data:e}=ef("get_clipboard_history_pinned");let n;t[0]!==e?(n=e===void 0?[]:e,t[0]=e,t[1]=n):n=t[1];const r=n;r.forEach(a=>{if(a.links)try{a.arrLinks=JSON.parse(a.links)}catch(i){a.arrLinks=[]}a.hasEmoji&&(a.hasEmoji=pz(a.value))});let s;return t[2]!==r?(s={pinnedClipboardHistory:r},t[2]=r,t[3]=s):s=t[3],s}function V5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("update_clipboard_history_by_id",n);let s;return t[2]!==r?(s={updateClipboardHistoryById:r},t[2]=r,t[3]=s):s=t[3],s}function DW(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("update_pinned_clipboard_history_by_ids",n);let s;return t[2]!==r?(s={pinnedClipboardHistoryByIds:r},t[2]=r,t[3]=s):s=t[3],s}function q5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("unpin_all_clipboard_history_items",n);let s;return t[2]!==r?(s={unPinAllClipboardHistory:r},t[2]=r,t[3]=s):s=t[3],s}function K5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}):console.log("update clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("move_pinned_item_up_down",n);let s;return t[2]!==r?(s={movePinnedClipboardHistoryUpDown:r},t[2]=r,t[3]=s):s=t[3],s}function IW(){const t=Te(18),e=Dn();let n,r;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=["get_clipboard_history"],r=w=>{const{pageParam:x}=w,{limit:S,offset:E}=x!=null?x:{};return Gs("get_clipboard_history",{limit:S===void 0?gC:S,offset:E===void 0?0:E})},t[0]=n,t[1]=r):(n=t[0],r=t[1]);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:n,queryFn:r,initialPageParam:{limit:gC,offset:0},getNextPageParam:(w,x)=>{const S=x==null?void 0:x.reduce((E,N)=>{var _;return E+((_=N==null?void 0:N.length)!=null?_:0)},0);return S?{limit:gC,offset:S}:null}},t[2]=s):s=t[2];const{data:a,isLoading:i,isFetched:l,fetchNextPage:c,isFetchingNextPage:d,error:p}=jY(s),{setClipboardHistory:f}=Tt(_i);let m;t[3]!==a||t[4]!==f?(m=()=>{if(Array.isArray(a==null?void 0:a.pages)){const w=!(a!=null&&a.pages.flat().length);f(a==null?void 0:a.pages.flat(),w)}},t[3]=a,t[4]=f,t[5]=m):m=t[5];let b;t[6]!==a?(b=[a],t[6]=a,t[7]=b):b=t[7],v.useEffect(m,b);let C;t[8]!==e?(C=()=>{e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},t[8]=e,t[9]=C):C=t[9];let g;return t[10]!==a||t[11]!==C||t[12]!==i||t[13]!==l||t[14]!==c||t[15]!==d||t[16]!==p?(g={infiniteClipboardHistory:a,invalidateClipboardHistoryQuery:C,isClipboardInfiniteHistoryLoading:i,isClipboardInfiniteHistoryFetched:l,fetchNextClipboardHistoryPage:c,isClipboardHistoryFetchingNextPage:d,isClipboardInfiniteHistoryError:p},t[10]=a,t[11]=C,t[12]=i,t[13]=l,t[14]=c,t[15]=d,t[16]=p,t[17]=g):g=t[17],g}function G5e(t){const e=Te(23),{query:n,filters:r,codeFilters:s}=t,a=n===void 0?"":n;let i;e[0]!==r?(i=r===void 0?[]:r,e[0]=r,e[1]=i):i=e[1];const l=i;let c;e[2]!==s?(c=s===void 0?[]:s,e[2]=s,e[3]=c):c=e[3];const d=c,p=Dn();let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={enabled:!1,refetchOnWindowFocus:!1},e[4]=f):f=e[4];let m;e[5]!==a||e[6]!==l||e[7]!==d?(m={query:a,filters:l,codeFilters:d,useQueryOptions:f},e[5]=a,e[6]=l,e[7]=d,e[8]=m):m=e[8];const{data:b,refetch:C,isLoading:g,isFetched:w,error:x}=ef("find_clipboard_histories_by_value_or_filters",m),{setClipboardHistory:S}=Tt(_i);let E;e[9]!==b||e[10]!==S?(E=()=>{Array.isArray(b)&&S(b,!0,!0)},e[9]=b,e[10]=S,e[11]=E):E=e[11];let N;e[12]!==b?(N=[b],e[12]=b,e[13]=N):N=e[13],v.useEffect(E,N);let _;e[14]!==p?(_=()=>{p.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},e[14]=p,e[15]=_):_=e[15];let P;return e[16]!==b||e[17]!==_||e[18]!==C||e[19]!==g||e[20]!==w||e[21]!==x?(P={foundClipboardHistory:b,invalidateFindClipboardHistoryQuery:_,refetchFindClipboardHistory:C,isFoundClipboardHistoryLoading:g,isFlundClipboardHistoryFetched:w,isFoundClipboardHistoryError:x},e[16]=b,e[17]=_,e[18]=C,e[19]=g,e[20]=w,e[21]=x,e[22]=P):P=e[22],P}function U7(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("delete clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("delete_clipboard_history_by_ids",n);let s;return t[2]!==r?(s={deleteClipboardHistoryByIds:r},t[2]=r,t[3]=s):s=t[3],s}function Y5e(){const t=Te(4),e=Dn();let n;t[0]!==e?(n={onSuccess:a=>{a==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("clear clipboard error",a)}},t[0]=e,t[1]=n):n=t[1];const{mutate:r}=Jn("clear_clipboard_history_older_than",n);let s;return t[2]!==r?(s={clearClipboardHistoryOlderThan:r},t[2]=r,t[3]=s):s=t[3],s}const{FOLDER:Z5e,ITEM:Mp,SEPARATOR:X5e,DISABLED:Q5e}=ii;function Pw({isCreatingMenuItem:t,currentMenuItemId:e,parentId:n,orderNumber:r,showEditMenuItemId:s,isMainCreateMenu:a,isDark:i,isFistItemsCreateMenu:l}){var c=sn(1);try{let d=function(){sh(),t.value=!1,ud.value=null,Tf.value=null};const{t:p}=Gt(),[f,m]=v.useState(""),[b,C]=v.useState(""),{clipboardHistory:g}=Tt(_i),{fetchNextClipboardHistoryPage:w}=IW(),{collectionWithClips:x,fetchCollectionWithClips:S}=LB(),E=(x==null?void 0:x.clips)||[],N=jo(f,300),_=jo(b,300),P=v.useMemo(()=>N.length<1?E.filter(T=>T.isClip).sort((T,L)=>T.updatedAt&&L.updatedAt?L.updatedAt-T.updatedAt:0).slice(0,50).map(({name:T,itemId:L})=>({name:T.length>50?"".concat(T.substring(0,50),"..."):T,id:L})):E.filter(T=>T.isClip&&T.name.toLowerCase().includes(N.toLowerCase())).sort((T,L)=>T.updatedAt&&L.updatedAt?L.updatedAt-T.updatedAt:0).slice(0,50).map(({name:T,itemId:L})=>({name:T.length>50?"".concat(T.substring(0,50),"..."):T,id:L})),[E,N]),I=v.useMemo(()=>_.length<1?g.sort((T,L)=>L.updatedAt-T.updatedAt).slice(0,50).map(({value:T,historyId:L,isImage:A,imageWidth:z,imageHeight:Y,detectedLanguage:O,isLink:$})=>({isImage:A,isLink:$,detectedLanguage:O,name:T!=null&&T.length&&(T==null?void 0:T.length)>80?"".concat(T==null?void 0:T.substring(0,80),"..."):A?"".concat(p("Image",{ns:"common"})," (").concat(z,"x").concat(Y,")"):T,id:L})):g.filter(T=>{var L;return T!=null&&T.value?(L=T==null?void 0:T.value)==null?void 0:L.toLowerCase().includes(_.toLowerCase()):"Image".toLocaleLowerCase().includes(_.toLowerCase())}).sort((T,L)=>L.updatedAt-T.updatedAt).slice(0,50).map(({value:T,historyId:L,isImage:A,imageWidth:z,imageHeight:Y,detectedLanguage:O,isLink:$})=>({isImage:A,isLink:$,detectedLanguage:O,name:T!=null&&T.length&&(T==null?void 0:T.length)>80?"".concat(T==null?void 0:T.substring(0,80),"..."):A?"".concat(p("Image",{ns:"common"})," (").concat(z,"x").concat(Y,")"):T,value:T,id:L})),[g,_]);return v.useEffect(()=>{g.length||w(),S()},[]),o.jsxs(Kn,{modal:!1,defaultOpen:l,children:[o.jsx(Gn,{asChild:!0,disabled:!!ud.value||!!Tf.value||!!_f.value,children:a?o.jsx(o.Fragment,{children:t.value?o.jsxs(je,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{d()},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Adding",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsx(o.Fragment,{children:s.value?o.jsxs(mr,{variant:"light",size:"mini",className:"px-3 bg-yellow-200 hover:bg-yellow-200/80 dark:bg-yellow-700 dark:hover:bg-yellow-700/80 py-1.5 absolute top-1 right-1 rounded-sm",onClick:()=>{d()},children:[o.jsx(re,{className:"whitespace-nowrap",children:p("Done Edit",{ns:"common"})}),o.jsx("div",{className:"ml-auto pl-1.5",children:o.jsx(en,{size:15})})]}):o.jsx(mr,{className:"bg-slate-200 dark:bg-slate-700 dark:hover:bg-slate-700/80 p-1.5 text-slate-500 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 right-1",id:"add-menu-item__tour",onClick:()=>{t.value=!0},children:o.jsx(st,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:p("Add item",{ns:"menus"}),children:o.jsx(Vr,{size:20,className:"transition-colors group-hover:text-slate-400"})})})})}):o.jsx(ne,{id:"add-menu-item__tour",className:"flex group flex-row items-center cursor-pointer justify-center border-2 border-dashed rounded-md p-1.5 hover:border-blue-400 hover:dark:border-blue-500 bg-slate-100 dark:bg-slate-700 text-slate-500 dark:border-slate-500 dark:text-slate-300",onClick:()=>{if(!ud.value&&!Tf.value&&!_f.value)return;if(_f.value){lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,text:_f.value},_f.value="";return}const T=g.find(({historyId:A})=>A===ud.value),L=E.find(({itemId:A})=>A===Tf.value);ud.value=null,Tf.value=null,T?lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipboardHistoryItem:T,historyId:T.historyId.toString()}:L&&(lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipId:L.itemId})},children:o.jsx(Vr,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),o.jsxs(Wn,{align:"center",sideOffset:l?12:0,children:[o.jsx(rt,{disabled:!0,className:"py-0.5 pb-1 flex justify-center border-b border-gray-200 dark:border-gray-600 text-slate-500 dark:text-slate-400",children:l?p("Add First Item",{ns:"menus"}):p("Add Item",{ns:"menus"})}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp}},children:[o.jsx(x5,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Menu Item",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Z5e}},children:[o.jsx(r0,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Submenu",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:X5e}},children:[o.jsx(Dz,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Separator",{ns:"menus"})})]}),o.jsxs(rt,{className:"outline-none flex items-center",onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Q5e}},children:[o.jsx(s0,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Disabled Item",{ns:"menus"})})]}),(I.length>0||P.length>0)&&o.jsx(kn,{}),I.length>0&&o.jsxs(sa,{children:[o.jsxs(qs,{children:[o.jsx(gie,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Recent History",{ns:"common"})})]}),o.jsxs(Ks,{className:"w-60",children:[o.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:T=>T.stopPropagation(),children:o.jsx(Wd,{placeholder:"".concat(p("Find History",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:T=>{C(T.target.value)},value:b,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:I.map(({name:T,id:L,isImage:A,detectedLanguage:z,isLink:Y},O)=>o.jsx(rt,{onKeyDown:$=>$.stopPropagation(),className:"".concat(O>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipboardHistoryItem:g.find(({historyId:$})=>$===L),historyId:L}},children:z?o.jsxs(ne,{className:"text-sm overflow-hidden text-ellipsis",children:[o.jsx(Ca,{isDark:i,searchTerm:"",isLargeView:!1,isShowMore:!1,isWrapped:!0,value:T!=null?T:"",language:z}),o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:z})]}):o.jsxs(ne,{className:"relative overflow-hidden text-ellipsis",children:[o.jsx("code",{className:"text-sm line-clamp-2",children:T}),A&&o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:p("Type:::Image",{ns:"common"})}),Y&&o.jsx(St,{variant:"secondary",className:"absolute right-1 bottom-1",children:p("Type:::Link",{ns:"common"})})]})},L))})]})]}),P.length>0&&o.jsxs(sa,{children:[o.jsxs(qs,{children:[o.jsx(Fae,{size:16,className:"mr-2"}),o.jsx("span",{children:p("Link to Clip",{ns:"menus"})})]}),o.jsxs(Ks,{className:"w-52",children:[o.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:T=>T.stopPropagation(),children:o.jsx(Wd,{placeholder:"".concat(p("Find Clip",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:T=>{m(T.target.value)},value:f,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md w-[260px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0 h-8"})}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:P.map(({id:T,name:L},A)=>o.jsx(rt,{onKeyDown:z=>z.stopPropagation(),className:"".concat(A>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{lo.value={orderNumber:r,currentMenuItemId:e,parentId:n,type:Mp,clipId:T}},children:o.jsx("span",{children:L})},T!=null?T:A))})]})]})]})]})}finally{c.f()}}const Qg={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isLink:!1,isPath:!1,detectedLanguage:""},J5e=t=>{const e=Te(97),{itemId:n,isCode:r,isImage:s,isText:a,isLink:i,isPath:l,detectedLanguage:c,children:d}=t,{t:p}=Gt(),{CONST:f}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:m}=f,{updateMenuItemById:b}=jx();let C;e[0]!==d?(C=o.jsx(Gn,{asChild:!0,children:d}),e[0]=d,e[1]=C):C=e[1];let g;e[2]!==p?(g=p("Menu Type",{ns:"menus"}),e[2]=p,e[3]=g):g=e[3];let w;e[4]!==g?(w=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:g})}),e[4]=g,e[5]=w):w=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(kn,{}),e[6]=x):x=e[6];const S=!!a;let E;e[7]!==b||e[8]!==n?(E=()=>{b({updatedItem:ae(R({},Qg),{isText:!0,itemId:n})})},e[7]=b,e[8]=n,e[9]=E):E=e[9];const N="".concat(a?"font-semibold":"");let _;e[10]!==p?(_=p("TypeMenu:::Plain Text",{ns:"common"}),e[10]=p,e[11]=_):_=e[11];let P;e[12]!==N||e[13]!==_?(P=o.jsx(re,{className:N,children:_}),e[12]=N,e[13]=_,e[14]=P):P=e[14];let I;e[15]!==S||e[16]!==E||e[17]!==P?(I=o.jsx(Cn,{checked:S,onClick:E,children:P}),e[15]=S,e[16]=E,e[17]=P,e[18]=I):I=e[18];const T=!!i;let L;e[19]!==b||e[20]!==n?(L=()=>{b({updatedItem:ae(R({},Qg),{isLink:!0,itemId:n})})},e[19]=b,e[20]=n,e[21]=L):L=e[21];const A="".concat(i?"font-semibold":"");let z;e[22]!==p?(z=p("TypeMenu:::Link or Email",{ns:"common"}),e[22]=p,e[23]=z):z=e[23];let Y;e[24]!==A||e[25]!==z?(Y=o.jsx(re,{className:A,children:z}),e[24]=A,e[25]=z,e[26]=Y):Y=e[26];let O;e[27]!==T||e[28]!==L||e[29]!==Y?(O=o.jsx(Cn,{checked:T,onClick:L,children:Y}),e[27]=T,e[28]=L,e[29]=Y,e[30]=O):O=e[30];const $=!!s;let M;e[31]!==b||e[32]!==n?(M=()=>{b({updatedItem:ae(R({},Qg),{isImage:!0,itemId:n})})},e[31]=b,e[32]=n,e[33]=M):M=e[33];const W="".concat(s?"font-semibold":"");let V;e[34]!==p?(V=p("TypeMenu:::Image",{ns:"common"}),e[34]=p,e[35]=V):V=e[35];let U;e[36]!==W||e[37]!==V?(U=o.jsx(re,{className:W,children:V}),e[36]=W,e[37]=V,e[38]=U):U=e[38];let J;e[39]!==$||e[40]!==M||e[41]!==U?(J=o.jsx(Cn,{checked:$,onClick:M,children:U}),e[39]=$,e[40]=M,e[41]=U,e[42]=J):J=e[42];const H=!!l;let F;e[43]!==b||e[44]!==n?(F=()=>{b({updatedItem:ae(R({},Qg),{isPath:!0,itemId:n})})},e[43]=b,e[44]=n,e[45]=F):F=e[45];const q="".concat(l?"font-semibold":"");let X;e[46]!==p?(X=p("TypeMenu:::File, Path or App",{ns:"common"}),e[46]=p,e[47]=X):X=e[47];let te;e[48]!==q||e[49]!==X?(te=o.jsx(re,{className:q,children:X}),e[48]=q,e[49]=X,e[50]=te):te=e[50];let ee;e[51]!==H||e[52]!==F||e[53]!==te?(ee=o.jsx(Cn,{checked:H,onClick:F,children:te}),e[51]=H,e[52]=F,e[53]=te,e[54]=ee):ee=e[54];let G;e[55]!==r?(G=r?o.jsx(en,{className:"mr-2 h-4 w-4"}):o.jsx(ne,{className:"mr-2 h-4 w-4"}),e[55]=r,e[56]=G):G=e[56];const Z="".concat(r?"!font-semibold":"");let le;e[57]!==p?(le=p("TypeMenu:::Code Snippet",{ns:"common"}),e[57]=p,e[58]=le):le=e[58];let se;e[59]!==Z||e[60]!==le?(se=o.jsxs(re,{className:Z,children:[le," ..."]}),e[59]=Z,e[60]=le,e[61]=se):se=e[61];let de;e[62]!==G||e[63]!==se?(de=o.jsxs(qs,{children:[G,se]}),e[62]=G,e[63]=se,e[64]=de):de=e[64];let ce;e[65]!==c||e[66]!==p?(ce=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:c?o.jsx(re,{children:LI(c)}):o.jsx(re,{children:p("Select Language",{ns:"common"})})}),e[65]=c,e[66]=p,e[67]=ce):ce=e[67];let ye;e[68]===Symbol.for("react.memo_cache_sentinel")?(ye=o.jsx(kn,{}),e[68]=ye):ye=e[68];let pe;e[69]===Symbol.for("react.memo_cache_sentinel")?(pe={height:"auto",maxHeight:"290px"},e[69]=pe):pe=e[69];let me;if(e[70]!==c||e[71]!==b||e[72]!==n||e[73]!==m){let Ve;e[75]!==c||e[76]!==b||e[77]!==n?(Ve=Ge=>o.jsx(Cn,{checked:c===Ge,className:"".concat(c===Ge?"font-semibold ":""),onClick:()=>{b({updatedItem:ae(R({},Qg),{isCode:!0,detectedLanguage:Ge,itemId:n})})},children:LI(Ge)},Ge),e[75]=c,e[76]=b,e[77]=n,e[78]=Ve):Ve=e[78],me=m.map(Ve),e[70]=c,e[71]=b,e[72]=n,e[73]=m,e[74]=me}else me=e[74];let be;e[79]!==me?(be=o.jsx(or,{className:"code-filter",style:pe,autoHide:!1,children:me}),e[79]=me,e[80]=be):be=e[80];let Ee;e[81]!==ce||e[82]!==be?(Ee=o.jsxs(Ks,{className:"w-40",children:[ce,ye,be]}),e[81]=ce,e[82]=be,e[83]=Ee):Ee=e[83];let We;e[84]!==de||e[85]!==Ee?(We=o.jsxs(sa,{children:[de,Ee]}),e[84]=de,e[85]=Ee,e[86]=We):We=e[86];let qe;e[87]!==w||e[88]!==I||e[89]!==O||e[90]!==J||e[91]!==ee||e[92]!==We?(qe=o.jsxs(Wn,{className:"w-48",sideOffset:12,align:"center",children:[w,x,I,O,J,ee,We]}),e[87]=w,e[88]=I,e[89]=O,e[90]=J,e[91]=ee,e[92]=We,e[93]=qe):qe=e[93];let ot;return e[94]!==C||e[95]!==qe?(ot=o.jsxs(Kn,{children:[C,qe]}),e[94]=C,e[95]=qe,e[96]=ot):ot=e[96],ot};function LI(t){return t.charAt(0).toUpperCase()+t.slice(1)}function eke({itemId:t,deletingMenuItemIds:e,onComplete:n}){var r=sn(1);try{const{t:s}=Gt(),a=it(!1),i=()=>{a.value=!1,e.value=null},{currentCollectionId:l}=Tt(Ar),{deleteMenuItemById:c}=RB();return o.jsxs(Sa,{defaultOpen:!1,open:a.value,children:[o.jsx(ja,{asChild:!0,children:o.jsxs(je,{variant:"ghost",title:s("Delete Clip",{ns:"dashboard"}),onClick:()=>{a.value=!0,e.value=[t]},className:"px-2 h-7 w-full py-0 text-red-500 dark:!text-red-600 hover:text-red-500 bg-transparent hover:bg-red-100 opacity-80 hover:opacity-100",children:[o.jsx(kr,{size:16}),o.jsx(re,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:s("Delete",{ns:"common"})})]})}),o.jsx(ia,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{i()},onPointerDownOutside:()=>{i()},children:a.value&&o.jsxs(ve,{className:"flex-col",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block",children:s("Are you sure you want to delete?",{ns:"common"})}),o.jsx(Ln,{h:3}),o.jsxs(ve,{children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{i()},children:s("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-red-100 hover:bg-opacity-80 hover:bg-red-200 text-red-500 hover:text-red-600 border-red-200 dark:bg-red-900 dark:border-red-900 dark:hover:border-red-900 dark:hover:bg-red-800 dark:text-red-300 dark:hover:text-red-200 whitespace-nowrap",onClick:()=>ge(this,null,function*(){yield c({itemId:t,collectionId:l}),n()}),children:s("Delete Menu",{ns:"menus"})})]})]})})]})}finally{r.f()}}function tke({itemId:t,value:e,isCode:n,detectedLanguage:r,isText:s,isClip:a,isMasked:i,isVideo:l,isImage:c,isDelete:d,hasEmoji:p,isPath:f,imageDataUrl:m,isDark:b,deletingMenuItemIds:C,isLink:g,onCancel:w}){var x=sn(1);try{const{t:S}=Gt(),E=it(""),N=it(!1),_=it(Date.now()),P=it(!1),I=it(void 0),T=it(void 0),L=it(void 0),A=it(void 0),{updateMenuItemById:z}=jx(),Y=v.useRef(null),O=jo(E.value,300),{metadataLinkByItemId:$,invalidateLinkMetadataByItemId:M}=Sx(g,t),W=($==null?void 0:$.linkTitle)&&($==null?void 0:$.linkDomain);v.useEffect(()=>{E.value=e!=null?e:""},[e]),v.useEffect(()=>{if(g){const F=zr().match(E.value);!F||F.length>1?I.value=!0:I.value=!1}},[g]);const V=v.useCallback(H=>ge(this,null,function*(){const q=e===E.value?e:H;f&&q.length>5&&On("check_path",{path:q}).then(()=>{T.value=!1}).catch(()=>{T.value=!0})}),[f]);v.useEffect(()=>{f&&O.length>5&&V(O)},[f,O]),v.useEffect(()=>{(I.value||T.value||A.value||L.value)&&P.value&&(N.value=!0)},[I.value,T.value,L.value,A.value,P.value]);const U=(H=!1)=>ge(this,null,function*(){if(ul.value){dd.value=!0;return}let F=null;if(dd.value=!1,N.value=!1,P.value=!0,I.value=void 0,T.value=void 0,H)F=f?"Error":null;else{if(g){const X=zr().match(E.value);if(!X||X.length>1){I.value=!0;return}}if(f)try{F=yield On("path_type_check",{path:E.value})}catch(q){F="Error",T.value=!0;return}}yield z({updatedItem:ae(R({value:E.value},F&&f?{pathType:F}:{}),{itemId:t})}),setTimeout(()=>{P.value=!1,w()},200)}),J=v.useMemo(()=>n?S("TypeMenu:::Code Snippet",{ns:"common"}):c?S("TypeMenu:::Image",{ns:"common"}):g?S("TypeMenu:::Link or Email",{ns:"common"}):f?S("TypeMenu:::Link or File, Path or App",{ns:"common"}):S("TypeMenu:::Plain Text",{ns:"common"}),[n,c,g,f]);return o.jsx(Vh,{className:Pn("px-2 pr-1.5 pb-1.5 m-0.5 mt-0 pt-1 mx-1 text-left flex flex-row rounded-md select-auto",d&&"bg-red-50 dark:bg-red-900"),children:o.jsxs(ne,{className:"w-full mt-0",children:[a?o.jsx(ne,{className:"mt-2",children:o.jsx(ve,{className:"gap-1 w-full justify-start",children:o.jsx(re,{className:"font-semibold",size:"sm",children:S("Clip value can't edit",{ns:"menus"})})})}):o.jsx(o.Fragment,{children:c?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[o.jsx("img",{src:m||uh,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-400"}),o.jsx(ne,{className:"absolute",children:m?o.jsx(iW,{id:t,isMenu:!0}):o.jsx(sW,{id:t})})]}):f?o.jsxs(ve,{className:"relative text-normal",children:[o.jsx(wn,{defaultValue:E.value,placeholder:S("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(T.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(T.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-4",children:T.value?o.jsx(st,{text:S("File, folder or app path might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):T.value===!1&&o.jsx(st,{text:S("File, folder or app path is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:H=>{E.value=H.target.value}},_.value),o.jsx(aW,{onCallBack:H=>{_.value=Date.now(),E.value=H}})]}):g?o.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[o.jsx(wn,{defaultValue:E.value,placeholder:S("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(I.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(I.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:o.jsx(ne,{className:"absolute top-3 right-2",children:I.value?o.jsx(st,{text:S("Web Link or Email might not be valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-yellow-50 dark:bg-yellow-900 dark:text-slate-200 text-yellow-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(Ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):I.value===!1&&o.jsx(st,{text:S("Web or Email link is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 dark:bg-green-900 dark:text-slate-200 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:o.jsx(en,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:H=>{if(I.value&&(I.value=void 0),H.target.value.length>5){const q=zr().match(H.target.value);!q||q.length>1?I.value=!0:I.value=!1}E.value=H.target.value}}),W&&o.jsx(ne,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:o.jsx(V0,{isDisabled:Ir(E.value)!==($==null?void 0:$.linkUrl),title:$==null?void 0:$.linkTitle,description:$==null?void 0:$.linkDescription,favicon:$==null?void 0:$.linkFavicon,link:$==null?void 0:$.linkUrl,image:$==null?void 0:$.linkImage,imageWidth:12,domain:$==null?void 0:$.linkDomain})}),o.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[qc(E.value)||I.value||E.value.length<3?!qc(E.value)&&o.jsx(je,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:W?o.jsxs(re,{className:"!text-grey-500",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),S("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-grey-500",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),S("Add Link Card",{ns:"dashboard"})]})}):o.jsx(je,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("fetch_link_metadata",{url:Ir(E.value),itemId:t}),M()}),children:W?o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(Q2,{size:13,className:"mr-1"}),S("Update Link Card",{ns:"dashboard"})]}):o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[o.jsx(wv,{size:13,className:"mr-1"}),S("Add Link Card",{ns:"dashboard"})]})}),W&&o.jsx(je,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>ge(this,null,function*(){yield On("delete_link_metadata",{itemId:t}),M()}),children:o.jsxs(re,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[S("Remove",{ns:"common"}),o.jsx(bv,{size:14,className:"ml-1"})]})})]})]}):n?o.jsx(rj,{value:E.value,height:"200px",isDark:b,options:{mode:r!=null?r:"javascript"},onChange:H=>{E.value=H.getValue()}},"code-editor"):o.jsxs(o.Fragment,{children:[o.jsxs(ne,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[o.jsx(st,{isCompact:!0,text:S("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:o.jsx(Sz,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("copy")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Masked Text Formatting",{ns:"common"}),children:o.jsx(pk,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("mask")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Blank Text Formatting",{ns:"common"}),children:o.jsx(ZU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("blank")}})}),o.jsx(st,{isCompact:!0,text:S("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:o.jsx(XU,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleAddBBcode("hl")}})}),o.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:o.jsx(st,{isCompact:!0,text:S("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:o.jsx(Az,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var H;(H=Y==null?void 0:Y.current)==null||H.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),o.jsx(Co,{ref:Y,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"Enter paste value",rows:2,autoFocus:!ul.value,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:6,value:E.value,onKeyDown:H=>{H.stopPropagation()},onChange:H=>{E.value=H.target.value}})]})}),o.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[o.jsxs(ve,{className:"items-start mt-2",children:[o.jsx(J5e,{isCode:n,isLink:g,isPath:f,isText:s,isImage:c,itemId:t,detectedLanguage:r,children:o.jsx(ne,{children:o.jsx(st,{text:J,isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-2 h-8 text-slate-500 border-0 dark:hover:bg-slate-800/80 bg-slate-200 dark:bg-slate-800 text-sm group hover:text-blue-500 dark:hover:!text-blue-600",children:n?o.jsxs(o.Fragment,{children:[o.jsx(nE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Code",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):c?o.jsxs(o.Fragment,{children:[o.jsx(X2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Image",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):f?o.jsxs(o.Fragment,{children:[o.jsx(aE,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Path",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):g?o.jsxs(o.Fragment,{children:[o.jsx(P0,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Link",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]}):o.jsxs(o.Fragment,{children:[o.jsx(Z2,{size:16}),o.jsx(re,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:S("Type:::Text",{ns:"common"})}),o.jsx(Bn,{size:12,className:"ml-1"})]})})})})})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(st,{text:S("Menu Options",{ns:"menus"}),isCompact:!0,side:"bottom",asChild:!0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500 dark:group-hover:!text-blue-400",children:o.jsx(zh,{size:16})})})})}),o.jsxs(Wn,{className:"",sideOffset:12,align:"center",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{children:S("Menu Options",{ns:"menus"})})}),o.jsx(kn,{}),o.jsxs(rt,{className:i?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{isMasked:!i,itemId:t}})},children:[S("Type:::Secret",{ns:"common"}),i&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:l?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{isVideo:!l,itemId:t}})},children:[S("Type:::Video",{ns:"common"}),l&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsxs(rt,{className:p?"font-semibold":"",onClick:H=>{H.preventDefault(),z({updatedItem:{hasEmoji:!p,itemId:t}})},children:[S("Type:::Emoji",{ns:"common"}),p&&o.jsx("div",{className:"ml-auto pl-2",children:o.jsx(en,{size:15,className:"fill-transparent"})})]}),o.jsx(kn,{}),o.jsx(eke,{itemId:t,onComplete:w,deletingMenuItemIds:C})]})]})]}),o.jsxs(ve,{className:"items-end ml-auto mt-1",children:[o.jsx(st,{text:S("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{w()},children:o.jsx(In,{size:18})})})}),o.jsxs(Sa,{defaultOpen:!1,open:N.value,children:[o.jsx(ja,{asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsxs(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>{U()},children:[o.jsx(en,{size:18,className:"mr-1"}),S("Save",{ns:"common"})]})})}),o.jsx(ia,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{N.value=!1,P.value=!1},onPointerDownOutside:()=>{N.value=!1,P.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:o.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[o.jsx(re,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:I.value?"Please verify your link for any errors, or confirm to save as is.":T.value?"Please verify your path for any errors, or confirm to save as is.":L.value?"Please verify your command for any errors, or confirm to save as is.":A.value?"Please verify your command output template for any errors, or confirm to save as is.":"Are you sure you want to save this?"}),o.jsx(Ln,{h:3}),o.jsxs(ve,{className:"mb-1",children:[o.jsx(je,{variant:"outline",size:"sm",className:"text-gray-500 dark:hover:text-gray-400 hover:text-gray-600 mr-3 border-gray-100 hover:border-gray-200 dark:bg-gray-900 dark:border-gray-900 dark:hover:border-gray-900 dark:hover:bg-gray-800",onClick:()=>{N.value=!1,P.value=!1},children:S("Cancel",{ns:"common"})}),o.jsx(je,{variant:"outline",size:"sm",className:"bg-slate-200 hover:bg-opacity-80 hover:bg-slate-200 text-slate-500 hover:text-slate-600 border-slate-200 whitespace-nowrap",onClick:()=>{U(!0)},children:S("Save It!",{ns:"common"})})]})]})})]})]})]})]})})}finally{x.f()}}function nke({isClip:t,itemId:e,isOpen:n,label:r}){var s=sn(1);try{const{t:a}=Gt(),i=it(!1),l=it(""),{updateMenuItemById:c}=jx(),d=it(ul.value);return v.useEffect(()=>{i.value=!1,l.value=r!=null?r:"",ul.value=d.value,t&&(d.value=!1)},[d.value]),o.jsx(ve,{className:"justify-start w-full",children:d.value?o.jsxs(o.Fragment,{children:[o.jsx(st,{open:i.value||dd.value,asChild:!0,text:dd.value?a("Unsaved label",{ns:"common"}):l.value.length<=X8?a("Too short",{ns:"common"}):a("Too long",{ns:"common"}),side:"bottom",className:"bg-rose-50 text-red-500 dark:bg-rose-900 dark:text-red-50 border-rose-100 dark:border-rose-950 text-base font-semibold border !px-2 !py-1.5",children:o.jsx(wn,{small:!0,autoFocus:ul.value,className:"bg-white rounded-md text-sm font-semibold w-full",placeholder:a("Enter menu label",{ns:"menus"}),onKeyDown:p=>ge(this,null,function*(){p.stopPropagation(),p.key==="Escape"?d.value=!1:p.key==="Enter"&&(!l.value.length||l.value.length>M1)?i.value=!0:p.key==="Enter"&&(yield c({updatedItem:{name:l.value,itemId:e}}),setTimeout(()=>{d.value=!1,n||sh()},200))}),defaultValue:r,onFocus:p=>{r!=null&&r.startsWith("New ")&&p.target.select()},onChange:p=>{i.value&&p.target.value.length<=M1&&i.value&&p.target.value.length>0&&(i.value=!1),l.value=p.target.value}})}),o.jsxs(ve,{className:"ml-1",children:[o.jsx(st,{text:a("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:dd.value,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"px-1.5 h-8 text-blue-500 dark:!text-blue-400 hover:bg-blue-100 dark:hover:bg-blue-700 dark:hover:!text-blue-300 border-0",onClick:()=>ge(this,null,function*(){if(dd.value&&(dd.value=!1),!l.value.length||l.value.length>M1){i.value=!0;return}i.value||(yield c({updatedItem:{name:l.value,itemId:e}}),setTimeout(()=>{d.value=!1,n||sh()},200))}),children:o.jsx(en,{size:18})})})}),o.jsx(st,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(ne,{tabIndex:0,children:o.jsx(je,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{d.value=!1,n||sh()},children:o.jsx(In,{size:18})})})})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(re,{className:"text-ellipsis !block overflow-hidden whitespace-nowrap ".concat(t?"":"border-dashed border-b border-slate-400 hover:border-gray-400"),onClick:()=>{d.value=!0},color:"black",children:r}),t?o.jsx(ne,{className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:a("Menu is a link to Clip. You can't edit the label directly",{ns:"menus"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(px,{size:14})})}):o.jsx(ne,{onClick:()=>{d.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:o.jsx(st,{text:a("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:o.jsx(Ud,{size:14})})})]})})}finally{s.f()}}function AW({triggerProps:t,contentProps:e,isSelected:n,hasMultipleSelectedItems:r,isCreatingMenuItem:s,isFirstItem:a,isLastItem:i,isForm:l,isWebRequest:c,isWebScraping:d,isCommand:p,isSeparator:f,indent:m=0,item:b,hasChildren:C,isOpen:g,isClip:w,showEditMenuItemId:x,onFolderClose:S,onFolderOpen:E,showMultiSelectItems:N,deletingMenuItemIds:_,isClosedFolder:P,setSelectedItemIds:I,deselectItemById:T,selectItemById:L,setOpenItemId:A,globalSearchTerm:z,isDark:Y,closeGlobalSearch:O,id:$,label:M,children:W}){var V=sn(1);try{const{t:U}=Gt(),{isFolder:J,isDisabled:H,isActive:F}=b,q=v.useMemo(()=>{var Ie,Ke;return(Ke=(Ie=_.value)==null?void 0:Ie.includes($))!=null?Ke:!1},[_.value,$]),X=it(!1),te=s.value&&(a||n&&i),ee=s.value&&(i||n),[G,Z,le,se]=Uh({}),[de,ce,ye]=Wh({}),pe=v.useRef(null),me=v.useRef(null),be=b.createdAt&&b.createdAt>Math.floor(Date.now())-60*1e3,Ee=(Iy.value===$||X.value)&&!N.value,We=!H&&F&&!J&&!f,qe=x.value===$,ot=G===$,Ve=de===$,Ge=se===$,ft=de===$?ce:void 0;return o.jsxs(o.Fragment,{children:[te&&o.jsxs(ve,{className:Pn("flex flex-col justify-center items-center my-1.5 mb-0 animate-in fade-in duration-300 ease-in-out transition-opacity",m>0&&"ml-[".concat(m*30,"px]")),children:[o.jsx(Pw,{isCreatingMenuItem:s,showEditMenuItemId:x,isDark:Y,currentMenuItemId:$,parentId:null,orderNumber:i?b.orderNumber+1:0}),o.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"})]}),o.jsxs(z0,{onOpenChange:Ie=>{X.value=Ie},children:[o.jsx(F0,{ref:me,disabled:!Ee&&!n||!!z,children:o.jsxs(ne,{className:"relative menu-item_tour",children:[(ot||Ve)&&!ft?o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(a?"top-[-6px]":"top-[-10px]"," ").concat(m>0?"ml-[".concat(m*10,"px]"):""),children:l?o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] mr-[-8px] text-[10px] uppercase font-semibold border-0",children:[U("Running",{ns:"common"}),"..."]}):o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold border-0",children:[o.jsx(en,{size:14,className:"mr-1"}),ot?U("Copied",{ns:"common"}):Ve?U("Pasted",{ns:"common"}):""]})}):ft&&ce>0&&o.jsx(ne,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(a?"top-[-6px]":"top-[-10px]"," ").concat(m>0?"ml-[".concat(m*10,"px]"):""),children:l?o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:U("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})}):o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold border-0",children:U("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})})}),o.jsxs(ne,{onMouseEnter:()=>{Iy.value=$!=null?$:null},onMouseLeave:()=>{Iy.value=null},onClick:Ie=>{if(!N.value){if(Ie.stopPropagation(),Iy.value=$!=null?$:null,Ie.shiftKey){if(f)return;if(J){P?E($):S($);return}x.value||A==null||A(g?null:$);return}if(Ie.metaKey||Ie.ctrlKey){n?T==null||T($):L==null||L($);return}I==null||I([$])}},className:Pn("rounded-lg border-2 bg-card text-card-foreground shadow-sm flex flex-col","duration-200 ease-in-out transition-none",m>0&&"ml-[".concat(m*30,"px]"),!ee&&!te?"my-1.5":"",n&&!a&&!i?"mt-1.5":"",a&&te&&!n?"mb-1.5":"",i&&ee&&!n?"mt-1.5":"",n?"border-slate-400/70 dark:border-slate-600":"dark:border-slate-700/80",q&&"!border-red-400 dark:!border-red-800",Vi.value&&n&&!C&&"!border-red-400 dark:!border-red-800",g?"max-w-[340px] min-w-[270px]":"w-[270px]",qe&&"max-w-[340px] min-w-[340px]",(ot||Ve)&&"!border-green-600 dark:!border-green-700","transition-transform",cd.value===$&&"pulse-clip"),children:[o.jsx(mB,{className:"flex",children:o.jsx(e7,ae(R({onDoubleClickCapture:Ie=>{if(qe||Ie.shiftKey||!We||X.value){Ie.preventDefault();return}if(Ie.altKey||Ie.metaKey){if(l){ye($,void 0,!0);return}ye($)}else Z($)}},t),{asChild:!0,className:Pn("group bg-white text-slate-600 dark:text-slate-400 dark:bg-slate-900 flex w-full select-none items-center justify-between rounded-md pl-2 pr-1 py-[6px] text-left text-sm font-medium cursor-pointer","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75 items-center justify-between",(n||g)&&"bg-slate-100/90 dark:bg-slate-950/80 dark:text-slate-300",Ee&&!(n||g)&&"!bg-slate-50/60 dark:!bg-slate-950/60",r&&n&&"bg-amber-50 dark:bg-amber-950/80",q&&"!bg-red-50 dark:!bg-red-950",!F&&"not-active-background bg-slate-100 text-slate-400 line-through dark:bg-slate-900 dark:text-slate-600",Vi.value&&n&&!C&&"!bg-red-50 dark:!bg-red-950/80",(ot||Ve)&&"!bg-green-50 dark:!bg-green-900",t==null?void 0:t.className),children:o.jsxs(ve,{className:"relative",children:[o.jsxs(ve,{className:Pn("mx-1 mr-3 whitespace-nowrap overflow-hidden text-[15px] w-full",N.value&&"ml-0",n||be?"font-semibold":"font-normal",H?"text-gray-500/60":""),children:[N.value&&o.jsx(ne,{className:"flex flex-row items-center pr-2.5 z-100",children:o.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{n?T==null||T($):L==null||L($)},checked:n},$)}),J&&o.jsx(ve,{className:"mr-1.5",children:P?o.jsx(r0,{size:17}):o.jsx(_z,{size:17})}),f?o.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-50 w-full"}):o.jsx(o.Fragment,{children:qe?o.jsx(nke,{label:M,itemId:$,isOpen:g,isClip:w}):o.jsxs(ne,{className:"whitespace-nowrap overflow-hidden text-ellipsis w-full",children:[z?Kl(M,z):M,w&&o.jsx(st,{text:U("Menu is a link to a clip",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(px,{size:13,className:"ml-1.5 inline"})})]})})]}),(Ee||n||g||qe)&&!N.value?o.jsxs(ve,{className:"h-[24px]",children:[f?o.jsx(o.Fragment,{children:o.jsx(ne,{className:"h-[23px]"})}):o.jsx(ve,{className:"gap-1 animate-in fade-in duration-100",children:J?!qe&&o.jsxs(mr,{onClick:()=>{P?E($):S($)},className:Pn("relative w-[24px] h-[24px] mr-1 group-hover:opacity-100 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center",g?"opacity-100":"opacity-20"),children:[o.jsx(T0,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",P?"rotate-0 opacity-1":"rotate-0 opacity-0")}),o.jsx(Bn,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",P?"rotate-[-90deg] opacity-0":"rotate-0 opacity-1")})]}):!qe&&o.jsxs(o.Fragment,{children:[We&&o.jsx(mr,{className:"hover:bg-transparent hover:text-green-600 text-slate-400",onClick:()=>{Tn.value?l?ye($,void 0,!0):ye($):Z($)},children:l?o.jsx(st,{text:U("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Ge||Ve&&!ft?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):c||d||p?o.jsx(st,{text:Tn.value?U("Run and Paste Response",{ns:"common"}):U("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):Ge?o.jsx(d0,{}):o.jsx(yw,{width:16,height:16})}):o.jsx(st,{text:Tn.value?U("Copy and Paste",{ns:"common"}):U("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Tn.value?o.jsx(Ds,{size:16}):o.jsx(ba,{size:16})})}),H?o.jsx(st,{text:U("Disabled Menu",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(s0,{size:16,className:"opacity-50 mr-1.5"})}):o.jsx(o.Fragment,{children:!x.value&&!z&&o.jsxs(mr,{onClick:Ie=>{Ie.stopPropagation(),A==null||A(g?null:$)},className:Pn("relative hover:bg-transparent w-[25px] h-[24px] mr-0 hover:text-slate-500 rounded-md transition-opacity text-slate-400 cursor-pointer flex items-center justify-center"),children:[o.jsx(Sae,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-1":"rotate-0 opacity-0")}),o.jsx(Eae,{size:"18px",className:Pn("absolute transform duration-300 ease-in-out",g?"rotate-180 opacity-0":"rotate-0 opacity-1")})]})})]})}),qe?o.jsx(o.Fragment,{children:!ul.value&&o.jsx(mr,{className:"mr-1",onClick:()=>{sh()},children:o.jsx(st,{text:U("Close Edit",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(In,{size:18})})})}):z?o.jsx(je,{variant:"ghost",size:"mini",className:"pl-2 pr-1 text-slate-400 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-blue-500",onClick:()=>{cd.value=$,O==null||O()},ref:pe,children:o.jsx(st,{text:U("Locate Menu",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(y5,{size:18})})}):o.jsx(je,{variant:"ghost",size:"mini",className:"pr-0.5 text-secondary-foreground/50 cursor-pointer !mt-0 flex hover:bg-transparent hover:text-slate-600",onClick:Ie=>{var $e,ht,Fe;Ie.stopPropagation();const Ke=($e=pe==null?void 0:pe.current)==null?void 0:$e.getBoundingClientRect().x,ut=(ht=pe==null?void 0:pe.current)==null?void 0:ht.getBoundingClientRect().y;(Fe=me==null?void 0:me.current)==null||Fe.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Ke,clientY:ut&&ut+30}))},ref:pe,children:o.jsx(st,{text:U("Options",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(yl,{size:18})})})]}):o.jsx(ne,{className:"h-[24px]"}),be&&o.jsx(tc,{className:"absolute text-green-400 dark:text-green-600 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28})]})}))}),o.jsx(t7,ae(R({},e),{className:Pn("overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",q&&"bg-red-50 dark:bg-red-900"),children:W}))]})]})}),(Ee||n)&&o.jsx(U5e,{id:$,isSelected:n,isDisabled:H,setSelectedItemIds:I,isActive:F,hasChildren:C,isClip:w,isImage:b.isImage,isFolder:J,itemParentId:b.parentId,isSeparator:f,setOpenItemId:A,isOpen:g,itemOrderNumber:b.orderNumber,deletingMenuItemIds:_,deselectItemById:T,selectItemById:L})]}),ee&&o.jsxs(ve,{className:Pn("flex flex-col justify-center items-center mb-2 mt-0 animate-in fade-in duration-300 ease-in-out transition-opacity",m>0&&"ml-[".concat(m*30,"px]")),children:[o.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"}),o.jsx(Pw,{isCreatingMenuItem:s,showEditMenuItemId:x,currentMenuItemId:$,isDark:Y,parentId:J&&!P?$:b.parentId,orderNumber:J&&P||!J?b.orderNumber+2:0})]})]})}finally{V.f()}}const Io={CLIPS:"clips",BOARDS:"boards",MENUS:"menus"};function rke({isDark:t}){var F,q;const{t:e}=Gt(),[n,r]=v.useState(""),[s,a]=v.useState(Io.CLIPS),i=v.useRef(),l=As(null),c=As(null),d=As(!1),p=As(!1),{isWindows:f}=Tt(Ls),{setIsAutoCloseOnCopyPaste:m,isAutoCloseOnCopyPaste:b,setIsSearchNameOrLabelOnly:C,isSearchNameOrLabelOnly:g}=Tt(Cr),[w]=Uh({}),[x]=Wh({}),{clipItems:S,tabs:E,setCurrentTab:N}=Tt(Ar),{collectionWithClips:_,fetchCollectionWithClips:P}=LB(),{collectionWithMenuItems:I,fetchCollectionWithMenuItems:T}=uge(),L=ua(),{menuItems:A}=Tt(Ar),z=jo(n,300),[Y,O]=v.useState(!1),$=X=>{var te;X.preventDefault(),X.stopPropagation(),O(ee=>!ee),(te=i.current)==null||te.focus()},M=v.useMemo(()=>z.length>1,[z]),W=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=A.length>0?A:(I==null?void 0:I.items)||[],te=X.length>0?Av(X,null,!1):[],ee=le=>{var se,de,ce;return le.name.toLowerCase().includes(z.toLowerCase())||(se=le.value)!=null&&se.toLowerCase().includes(z.toLowerCase())&&!g?!0:(ce=(de=le.children)==null?void 0:de.some(ee))!=null?ce:!1},G=(le,se=0)=>{let de=[];return le.forEach(ce=>{var me;const ye=ee(ce),pe=X.find(be=>be.itemId===ce.id);if(pe&&ye){const be=ae(R({},pe),{indent:se,id:ce.id});if(de.push(be),ce.children&&((me=ce.children)==null?void 0:me.length)>0){const Ee=G(ce.children,se+1);de=de.concat(Ee)}}}),de},Z=G(te);return{results:Z,count:Z.length}},[A,z,Y,I==null?void 0:I.items,g]),V=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=S.length>0?S:(_==null?void 0:_.clips)||[];return II(X,z,E,g)},[S,z,Y,_,g]),U=v.useMemo(()=>{if(z.length<=1||!Y)return{results:[],count:0};const X=S.length>0?S:(_==null?void 0:_.clips)||[];return II(X,z,E,g,!0)},[S,z,Y,_,g]),J=()=>{L("/history",{replace:!0}),O(!1)},H=()=>{L("/menu",{replace:!0}),O(!1)};return v.useEffect(()=>{Y||(XT.value=n,r(""))},[Y]),v.useEffect(()=>{M&&S.length===0&&P(),M&&A.length===0&&T()},[M,P,T]),v.useEffect(()=>{Y||(XT.value=n,r(""))},[Y]),Vs(["meta+k","control+k"],$,{},[]),Vs("/",$,{},[]),v.useEffect(()=>{!M||V.count>0?a(Io.CLIPS):U.count>0?a(Io.BOARDS):W.count>0&&a(Io.MENUS)},[V.count,U.count,M]),v.useEffect(()=>{Y&&(w||x)&&b&&setTimeout(()=>{O(!1)},1e3)},[w,x,Y]),o.jsx(o.Fragment,{children:o.jsxs(Sa,{defaultOpen:!1,modal:!1,open:Y,onOpenChange:()=>{O(!Y)},children:[o.jsx(ja,{asChild:!0,children:o.jsxs(ne,{id:"navbar-search_tour",className:"flex flex-row bg-slate-100 dark:bg-slate-800 rounded-md p-0 items-center relative ml-2",children:[o.jsx(Wd,{placeholder:"".concat(e("GlobalSearch:::Search",{ns:"navbar"})," ..."),type:"search",id:"global-search",value:n,onChange:X=>{r(X.target.value)},ref:ml(i),onFocus:()=>{O(!0)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0 h-7",className:"text-md min-w-[120px] ring-offset-0 py-1 bg-slate-100 dark:bg-slate-800 border-r-0 border-t-0 border-b-0 h-8"}),!Y&&o.jsx(ve,{className:"absolute right-2 text-slate-400/90 animate-in animate-out fade-in-out hover:text-slate-500 cursor-pointer",onClick:()=>{var X;O(!0),(X=i.current)==null||X.focus()},title:e("GlobalSearch:::Press / key to search",{ns:"navbar"}),children:o.jsx("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"rounded-md flex items-center justify-center bg-slate-50 dark:bg-slate-900/60 p-[2px]",children:o.jsx("line",{x1:"16",x2:"8",y1:"5",y2:"18"})})})]})}),o.jsx(ia,{className:"overflow-hidden bg-gray-50 p-4 py-2 pb-3 pt-2 flex items-center flex-col w-fit rounded-md shadow-lg relative dark:bg-slate-800",sideOffset:4,onOpenAutoFocus:X=>{X.preventDefault()},onInteractOutside:X=>{X.preventDefault()},onCloseAutoFocus:X=>{X.preventDefault(),r(""),document.activeElement.blur()},children:o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"esc-key flex opacity-90 hover:opacity-100 hover:bg-opacity-100 justify-end w-[38px] h-[24px] rounded-sm top-2 left-2 absolute z-50 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{O(!1)},title:e("Press ESC key to close",{ns:"common"})}),o.jsxs(Kn,{children:[o.jsx(Gn,{asChild:!0,children:o.jsx(ne,{className:"flex opacity-90 hover:opacity-100 hover:bg-opacity-100 top-2 right-2 absolute z-50 text-slate-400 bg-slate-100/90 dark:bg-slate-900/90 cursor-pointer",onClick:()=>{O(!1)},title:e("GlobalSearch:::Search Options",{ns:"navbar"}),children:o.jsx(zh,{size:14})})}),o.jsxs(Wn,{children:[o.jsx(rt,{disabled:!0,className:"p-0 justify-center text-[13px]",children:e("GlobalSearch:::Search Options",{ns:"navbar"})}),o.jsx(kn,{}),o.jsxs(rt,{onClick:X=>{X.preventDefault(),m(!b)},children:[o.jsx(ve,{className:"mr-2",children:o.jsx(re,{className:"!text-[13px] mr-1 !font-medium ".concat(b?"":"text-slate-900/50"),children:e("GlobalSearch:::Auto Close on Copy & Paste",{ns:"navbar"})})}),o.jsx(ns,{checked:b,className:"ml-auto"})]}),o.jsxs(rt,{onClick:X=>{X.preventDefault(),C(!g)},children:[o.jsx(ve,{className:"mr-2",children:o.jsxs(re,{className:"!text-[13px] mr-1 flex-col !items-start !font-medium ".concat(g?"":"text-slate-900/50"),children:[e("GlobalSearch:::Search Name or Label Only",{ns:"navbar"}),o.jsx("span",{className:"text-muted-foreground opacity-70 !text-[12px] block",children:e("GlobalSearch:::Excludes clip or menu values",{ns:"navbar"})})]})}),o.jsx(ns,{checked:g,className:"ml-auto"})]})," "]})]}),M&&o.jsx(pl,{className:"flex flex-row z-10 select-none pb-1.5 mb-1",value:s,onValueChange:X=>{a(X)},children:o.jsxs(Xo,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900",children:[o.jsxs(jr,{value:Io.CLIPS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Clips:::Clips",{ns:"dashboard"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:V.count>99?"99+":V.count})]}),o.jsxs(jr,{value:Io.BOARDS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Boards",{ns:"dashboard"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:U.count>99?"99+":U.count})]}),o.jsxs(jr,{value:Io.MENUS,className:"!text-xs py-1 data-[state=active]:text-slate-300 text-gray-400 hover:text-blue-400 data-[state=active]:hover:text-slate-300 dark:data-[state=active]:bg-slate-600",children:[e("Menus",{ns:"menus"}),o.jsx(St,{variant:"outline",className:"text-[12px] ml-1 py-0.5 bg-slate-100 text-gray-400 dark:bg-slate-700 dark:text-gray-400 !font-mono border-0",children:W.count>99?"99+":W.count})]})]})}),o.jsxs(or,{className:"flex-col",style:{height:"auto",maxHeight:"calc(100vh - 200px)",width:420},autoHide:!1,children:[s===Io.CLIPS&&((F=V.results)==null?void 0:F.reduce((X,te,ee)=>{const G=Math.floor(ee/1);return X[G]||(X[G]=[]),X[G].push(te),X},[]).map((X,te)=>o.jsx(ne,{className:"mt-1 mb-2",children:X.map((ee,G)=>o.jsx(Tw,{board:ee,isDark:t,closeGlobalSearch:J,setCurrentTab:N,globalSearchTerm:z,isHistoryDragActive:!1,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:G===X.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(te,"-").concat(G)))},"".concat(te)))),s===Io.BOARDS&&((q=U.results)==null?void 0:q.reduce((X,te,ee)=>{const G=Math.floor(ee/1);return X[G]||(X[G]=[]),X[G].push(te),X},[]).map((X,te)=>o.jsx(ne,{className:"mt-1 mb-2",children:X.map((ee,G)=>o.jsx(Tw,{board:ee,isDark:t,globalSearchTerm:z,setCurrentTab:N,closeGlobalSearch:J,isHistoryDragActive:!1,isGlobalSearchBoardsOnly:!0,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:G===X.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(te,"-").concat(G)))},"".concat(te)))),s===Io.MENUS&&o.jsx(gB,{type:"single",collapsible:!0,className:"flex items-center flex-col",children:W.results.map((X,te)=>o.jsx(n7,{value:X.itemId,children:o.jsx(AW,{label:X.name,globalSearchTerm:z,closeGlobalSearch:H,isLastItem:te===W.results.length-1,deletingMenuItemIds:l,isFirstItem:te===0,isDark:t,showEditMenuItemId:c,hasChildren:X.hasChildren,isSeparator:X.isSeparator,showMultiSelectItems:d,hasSelectedItems:!1,id:X.itemId,item:X,isClip:X.isClip,isForm:X.isForm&&X.isClip,isWebRequest:X.isWebRequest&&X.isClip,isWebScraping:X.isWebScraping&&X.isClip,isCommand:X.isCommand&&X.isClip,isCreatingMenuItem:p,indent:X.indent,onFolderClose:()=>{},onFolderOpen:()=>{},isClosedFolder:!1,isSelected:!1,hasMultipleSelectedItems:!1,isOpen:!1,children:o.jsx(o.Fragment,{})})},"".concat(X.itemId)))}),M?o.jsx(o.Fragment,{children:V.count===0&&U.count===0&&W.count===0?o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in clips, boards or menus.",{ns:"navbar"})}):o.jsxs(o.Fragment,{children:[V.count===0&&s===Io.CLIPS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in clips.",{ns:"navbar"})}),U.count===0&&s===Io.BOARDS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in boards.",{ns:"navbar"})}),W.count===0&&s===Io.MENUS&&o.jsx(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:e("GlobalSearch:::Nothing found in menus.",{ns:"navbar"})})]})}):o.jsxs(ne,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-2 mt-2",children:[e("GlobalSearch:::Type what you looking for",{ns:"navbar"}),"..."]})]}),o.jsx(du,{children:o.jsx(ne,{className:"body-overlay bg-black/30 dark:bg-black/70 rounded-lg ".concat(f?"mb-1 mx-1 !mt-[43px]":""),onClick:()=>{O(!1)}})})]})})]})})}const LW=t=>{var e=sn(1);try{const n=Te(11),{className:r,showContactForm:s}=t,a=r===void 0?"":r,i=s===void 0?!0:s,l=dr.language==="ru",{themeDark:c}=Tt(bo),d=c(),p=xl(q0),{id:f}=Un.value||{},m="".concat(p?"https://license.pastebar.app/contact/?pro=true&licenseId=".concat(f,"&"):"https://license.pastebar.app/contact/?","source=app&locale=").concat(dr.language,"&dark=").concat(d?"true":"false"),{t:b}=Gt(),C="flex flex-wrap gap-4 justify-center items-center ".concat(a);let g;n[0]===Symbol.for("react.memo_cache_sentinel")?(g=l?o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://t.me/pastebar_ru",target:"_blank",title:"Telegram",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M 26.070313 3.996094 C 25.734375 4.011719 25.417969 4.109375 25.136719 4.21875 L 25.132813 4.21875 C 24.847656 4.332031 23.492188 4.902344 21.433594 5.765625 C 19.375 6.632813 16.703125 7.757813 14.050781 8.875 C 8.753906 11.105469 3.546875 13.300781 3.546875 13.300781 L 3.609375 13.277344 C 3.609375 13.277344 3.25 13.394531 2.875 13.652344 C 2.683594 13.777344 2.472656 13.949219 2.289063 14.21875 C 2.105469 14.488281 1.957031 14.902344 2.011719 15.328125 C 2.101563 16.050781 2.570313 16.484375 2.90625 16.722656 C 3.246094 16.964844 3.570313 17.078125 3.570313 17.078125 L 3.578125 17.078125 L 8.460938 18.722656 C 8.679688 19.425781 9.949219 23.597656 10.253906 24.558594 C 10.433594 25.132813 10.609375 25.492188 10.828125 25.765625 C 10.933594 25.90625 11.058594 26.023438 11.207031 26.117188 C 11.265625 26.152344 11.328125 26.179688 11.390625 26.203125 C 11.410156 26.214844 11.429688 26.21875 11.453125 26.222656 L 11.402344 26.210938 C 11.417969 26.214844 11.429688 26.226563 11.441406 26.230469 C 11.480469 26.242188 11.507813 26.246094 11.558594 26.253906 C 12.332031 26.488281 12.953125 26.007813 12.953125 26.007813 L 12.988281 25.980469 L 15.871094 23.355469 L 20.703125 27.0625 L 20.8125 27.109375 C 21.820313 27.550781 22.839844 27.304688 23.378906 26.871094 C 23.921875 26.433594 24.132813 25.875 24.132813 25.875 L 24.167969 25.785156 L 27.902344 6.65625 C 28.007813 6.183594 28.035156 5.742188 27.917969 5.3125 C 27.800781 4.882813 27.5 4.480469 27.136719 4.265625 C 26.769531 4.046875 26.40625 3.980469 26.070313 3.996094 Z M 25.96875 6.046875 C 25.964844 6.109375 25.976563 6.101563 25.949219 6.222656 L 25.949219 6.234375 L 22.25 25.164063 C 22.234375 25.191406 22.207031 25.25 22.132813 25.308594 C 22.054688 25.371094 21.992188 25.410156 21.667969 25.28125 L 15.757813 20.75 L 12.1875 24.003906 L 12.9375 19.214844 C 12.9375 19.214844 22.195313 10.585938 22.59375 10.214844 C 22.992188 9.84375 22.859375 9.765625 22.859375 9.765625 C 22.886719 9.3125 22.257813 9.632813 22.257813 9.632813 L 10.082031 17.175781 L 10.078125 17.15625 L 4.242188 15.191406 L 4.242188 15.1875 C 4.238281 15.1875 4.230469 15.183594 4.226563 15.183594 C 4.230469 15.183594 4.257813 15.171875 4.257813 15.171875 L 4.289063 15.15625 L 4.320313 15.144531 C 4.320313 15.144531 9.53125 12.949219 14.828125 10.71875 C 17.480469 9.601563 20.152344 8.476563 22.207031 7.609375 C 24.261719 6.746094 25.78125 6.113281 25.867188 6.078125 C 25.949219 6.046875 25.910156 6.046875 25.96875 6.046875 Z"})})})})}):o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://discord.gg/RW27D63bZ3",target:"_blank",title:"Discord",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 192 192",children:[o.jsx("path",{stroke:"currentColor",strokeWidth:"12",d:"m68 138-8 16c-10.19-4.246-20.742-8.492-31.96-15.8-3.912-2.549-6.284-6.88-6.378-11.548-.488-23.964 5.134-48.056 19.369-73.528 1.863-3.334 4.967-5.778 8.567-7.056C58.186 43.02 64.016 40.664 74 39l6 11s6-2 16-2 16 2 16 2l6-11c9.984 1.664 15.814 4.02 24.402 7.068 3.6 1.278 6.704 3.722 8.567 7.056 14.235 25.472 19.857 49.564 19.37 73.528-.095 4.668-2.467 8.999-6.379 11.548-11.218 7.308-21.769 11.554-31.96 15.8l-8-16m-68-8s20 10 40 10 40-10 40-10"}),o.jsx("ellipse",{cx:"71",cy:"101",fill:"currentColor",rx:"13",ry:"15"}),o.jsx("ellipse",{cx:"121",cy:"101",fill:"currentColor",rx:"13",ry:"15"})]})})})}),n[0]=g):g=n[0];let w;n[1]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://www.facebook.com/PasteBarApp",target:"_blank",title:"Facebook",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 21V13.0001M12 13.0001V10.0001C12 8.02404 13.3537 7.03622 15.5 7.18462M12 13.0001L15 13.0001M12 13.0001H9",stroke:"currentColor",strokeWidth:"1.5"})})})})}),n[1]=w):w=n[1];let x;n[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://twitter.com/PasteBar_App",target:"_blank",title:"Twitter",className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M3.50003 4.50005C1.50012 7.99982 2.63692 13.738 7.63684 16.2382C6.52918 17.0001 4.50012 17.9999 2.50012 18.4998C7.00012 20.4999 11.5001 20.9999 16.0001 17.4999C19.4154 14.8436 20.1668 10.1666 20.0001 7.99991L22.5001 5.00023H19.0001C17.5001 3.49991 16.022 3.57155 14.5001 4.00017C12.724 4.50037 11.7934 6.34309 12.0001 8.49991C9.00012 8.99968 6.00012 6.99982 3.50003 4.50005Z",stroke:"currentColor",strokeWidth:"1.5"})})})})}),n[2]=x):x=n[2];let S;n[3]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:"https://github.com/PasteBar",target:"_blank",title:"GitHub",className:"inline-flex flex-col justify-center items-center p-1.5 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-6 h-6",children:o.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:o.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm3.163 21.783h-.093a.513.513 0 0 1-.382-.14.513.513 0 0 1-.14-.372v-1.406c.006-.467.01-.94.01-1.416a3.693 3.693 0 0 0-.151-1.028 1.832 1.832 0 0 0-.542-.875 8.014 8.014 0 0 0 2.038-.471 4.051 4.051 0 0 0 1.466-.964c.407-.427.71-.943.885-1.506a6.77 6.77 0 0 0 .3-2.13 4.138 4.138 0 0 0-.26-1.476 3.892 3.892 0 0 0-.795-1.284 2.81 2.81 0 0 0 .162-.582c.033-.2.05-.402.05-.604 0-.26-.03-.52-.09-.773a5.309 5.309 0 0 0-.221-.763.293.293 0 0 0-.111-.02h-.11c-.23.002-.456.04-.674.111a5.34 5.34 0 0 0-.703.26 6.503 6.503 0 0 0-.661.343c-.215.127-.405.249-.573.362a9.578 9.578 0 0 0-5.143 0 13.507 13.507 0 0 0-.572-.362 6.022 6.022 0 0 0-.672-.342 4.516 4.516 0 0 0-.705-.261 2.203 2.203 0 0 0-.662-.111h-.11a.29.29 0 0 0-.11.02 5.844 5.844 0 0 0-.23.763c-.054.254-.08.513-.081.773 0 .202.017.404.051.604.033.199.086.394.16.582A3.888 3.888 0 0 0 5.702 10a4.142 4.142 0 0 0-.263 1.476 6.871 6.871 0 0 0 .292 2.12c.181.563.483 1.08.884 1.516.415.422.915.75 1.466.964.653.25 1.337.41 2.033.476a1.828 1.828 0 0 0-.452.633 2.99 2.99 0 0 0-.2.744 2.754 2.754 0 0 1-1.175.27 1.788 1.788 0 0 1-1.065-.3 2.904 2.904 0 0 1-.752-.824 3.1 3.1 0 0 0-.292-.382 2.693 2.693 0 0 0-.372-.343 1.841 1.841 0 0 0-.432-.24 1.2 1.2 0 0 0-.481-.101c-.04.001-.08.005-.12.01a.649.649 0 0 0-.162.02.408.408 0 0 0-.13.06.116.116 0 0 0-.06.1.33.33 0 0 0 .14.242c.093.074.17.131.232.171l.03.021c.133.103.261.214.382.333.112.098.213.209.3.33.09.119.168.246.231.381.073.134.15.288.231.463.188.474.522.875.954 1.145.453.243.961.364 1.476.351.174 0 .349-.01.522-.03.172-.028.343-.057.515-.091v1.743a.5.5 0 0 1-.533.521h-.062a10.286 10.286 0 1 1 6.324 0v.005z"})})})})}),n[3]=S):S=n[3];let E;n[4]!==i||n[5]!==b||n[6]!==m?(E=i&&o.jsx("div",{className:"flex justify-center",children:o.jsx("a",{href:m,target:"_blank",title:b("Contact Form",{ns:"common"}),className:"inline-flex flex-col justify-center items-center p-1 rounded-md hover:bg-blue-600 dark:hover:bg-blue-600 hover:text-white",children:o.jsx("span",{className:"w-7 h-7",children:o.jsx("svg",{fill:"currentColor",viewBox:"0 0 32 32",children:o.jsx("path",{d:"M26.2 8.5C24 5.3 20.6 3.3 16.9 3H16c-3.7 0-7.2 1.6-9.7 4.3-2.5 2.7-3.6 6.4-3.2 10.1.7 6 5.5 10.8 11.5 11.4.4.2.9.2 1.4.2 2.6 0 5-.7 7.2-2.2.5-.3.6-.9.3-1.4-.3-.5-.9-.6-1.4-.3-2.2 1.4-4.7 2.1-7.3 1.8-5.1-.5-9.1-4.6-9.7-9.7-.4-3.1.6-6.2 2.7-8.5 2.3-2.5 5.6-3.9 9-3.6 3.2.2 6 1.9 7.8 4.6 1.9 2.9 2.4 6.3 1.3 9.6v.1c-.3 1-1.3 1.7-2.4 1.7-1.4 0-2.5-1.1-2.5-2.5V11c0-.6-.4-1-1-1s-1 .4-1 1c-.8-.6-1.9-1-3-1-2.8 0-5 2.2-5 5v2c0 2.8 2.2 5 5 5 1.4 0 2.6-.6 3.5-1.4.7 1.4 2.2 2.4 4 2.4 1.9 0 3.6-1.2 4.3-3.1v-.1c1.3-3.8.7-7.9-1.6-11.3zM19 17c0 1.7-1.3 3-3 3s-3-1.3-3-3v-2c0-1.7 1.3-3 3-3s3 1.3 3 3v2z"})})})})}),n[4]=i,n[5]=b,n[6]=m,n[7]=E):E=n[7];let N;return n[8]!==C||n[9]!==E?(N=o.jsxs("div",{className:C,children:[g,w,x,S,E]}),n[8]=C,n[9]=E,n[10]=N):N=n[10],N}finally{e.f()}};function ske(){const t=Te(53),{t:e}=Gt(),{setTheme:n,theme:r}=ik(),{mode:s,setMode:a}=Tt(bo);let i;t[0]!==r||t[1]!==s||t[2]!==a?(i=()=>{r!==s&&a(r)},t[0]=r,t[1]=s,t[2]=a,t[3]=i):i=t[3];let l;t[4]!==r?(l=[r],t[4]=r,t[5]=l):l=t[5],v.useEffect(i,l);let c;t[6]!==r?(c=r==="light"?o.jsx(Ho.sun,{size:14,className:"ml-2"}):r==="dark"?o.jsx(Ho.moon,{size:14,className:"ml-2"}):o.jsx(Ho.sunmoon,{width:12,height:12,className:"ml-2"}),t[6]=r,t[7]=c):c=t[7];const d=c;let p;t[8]!==e?(p=e("Color Theme",{ns:"navbar"}),t[8]=e,t[9]=p):p=t[9];let f;t[10]!==p||t[11]!==d?(f=o.jsxs(ks,{children:[p," ",d]}),t[10]=p,t[11]=d,t[12]=f):f=t[12];const m=r==="light";let b;t[13]!==n?(b=()=>n("light"),t[13]=n,t[14]=b):b=t[14];let C;t[15]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.sun,{className:"mr-2",size:17})}),t[15]=C):C=t[15];let g;t[16]!==e?(g=e("Theme:::Light",{ns:"navbar"}),t[16]=e,t[17]=g):g=t[17];let w;t[18]!==g?(w=o.jsx("span",{children:g}),t[18]=g,t[19]=w):w=t[19];let x;t[20]!==m||t[21]!==b||t[22]!==w?(x=o.jsxs(va,{checked:m,onClick:b,children:[C,w]}),t[20]=m,t[21]=b,t[22]=w,t[23]=x):x=t[23];const S=r==="dark";let E;t[24]!==n?(E=()=>n("dark"),t[24]=n,t[25]=E):E=t[25];let N;t[26]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("span",{className:"flex items-end",children:o.jsx(Ho.moon,{className:"mr-2",size:15})}),t[26]=N):N=t[26];let _;t[27]!==e?(_=e("Theme:::Dark",{ns:"navbar"}),t[27]=e,t[28]=_):_=t[28];let P;t[29]!==_?(P=o.jsx("span",{children:_}),t[29]=_,t[30]=P):P=t[30];let I;t[31]!==S||t[32]!==E||t[33]!==P?(I=o.jsxs(va,{checked:S,onClick:E,children:[N,P]}),t[31]=S,t[32]=E,t[33]=P,t[34]=I):I=t[34];const T=r==="system";let L;t[35]!==n?(L=()=>n("system"),t[35]=n,t[36]=L):L=t[36];let A;t[37]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx("span",{className:"flex w-[1.5rem] items-end",children:o.jsx(Ho.sunmoon,{className:"mr-2",width:13,height:13})}),t[37]=A):A=t[37];let z;t[38]!==e?(z=e("Theme:::System",{ns:"navbar"}),t[38]=e,t[39]=z):z=t[39];let Y;t[40]!==z?(Y=o.jsx("span",{children:z}),t[40]=z,t[41]=Y):Y=t[41];let O;t[42]!==T||t[43]!==L||t[44]!==Y?(O=o.jsxs(va,{checked:T,onClick:L,children:[A,Y]}),t[42]=T,t[43]=L,t[44]=Y,t[45]=O):O=t[45];let $;t[46]!==x||t[47]!==I||t[48]!==O?($=o.jsxs(Cs,{children:[x,I,O]}),t[46]=x,t[47]=I,t[48]=O,t[49]=$):$=t[49];let M;return t[50]!==f||t[51]!==$?(M=o.jsxs(zs,{children:[f,$]}),t[50]=f,t[51]=$,t[52]=M):M=t[52],M}const ib=String.fromCharCode,lb={};function yk(t){var e,n;try{const r=cke(t.trim()),s=ake(r);return(n=JSON.parse((e=oke(s))!=null?e:"{}"))!=null?n:{}}catch(r){throw console.error(r),new Error("Error parsing data.")}}(function(t,e){const n=Ah,r=t();for(;;)try{if(-parseInt(n(230))/1*(parseInt(n(233))/2)+-parseInt(n(242))/3+parseInt(n(245))/4*(-parseInt(n(234))/5)+-parseInt(n(238))/6+-parseInt(n(229))/7*(parseInt(n(237))/8)+-parseInt(n(243))/9+-parseInt(n(240))/10*(-parseInt(n(246))/11)===e)break;r.push(r.shift())}catch(s){r.push(r.shift())}})(Mw,744619);function ake(t){const n=Ah,r=Nse+"_1974";let s="";for(let a=0;a>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;switch(m){case 0:for(m=0,C=Math[r(244)](2,8),g=1;g!=C;)b=x[r(231)]&x.position,x.position>>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;w=ib(m);break;case 1:for(m=0,C=Math[r(244)](2,16),g=1;g!=C;)b=x[r(231)]&x[r(227)],x[r(227)]>>=1,x[r(227)]==0&&(x[r(227)]=e,x[r(231)]=n(x.index++)),m|=(b>0?1:0)*g,g<<=1;w=ib(m);break;case 2:return""}for(s[3]=w,f=w,d[r(236)](w);;){if(x.index>t)return"";for(m=0,C=Math.pow(2,l),g=1;g!=C;)b=x.val&x[r(227)],x[r(227)]>>=1,x.position==0&&(x[r(227)]=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;switch(w=m){case 0:for(m=0,C=Math[r(244)](2,8),g=1;g!=C;)b=x[r(231)]&x.position,x[r(227)]>>=1,x[r(227)]==0&&(x.position=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;s[i++]=ib(m),w=i-1,a--;break;case 1:for(m=0,C=Math.pow(2,16),g=1;g!=C;)b=x[r(231)]&x.position,x[r(227)]>>=1,x[r(227)]==0&&(x.position=e,x[r(231)]=n(x[r(226)]++)),m|=(b>0?1:0)*g,g<<=1;s[i++]=ib(m),w=i-1,a--;break;case 2:return d[r(232)]("")}if(a==0&&(a=Math[r(244)](2,l),l++),s[w])c=s[w];else if(w===i)c=f+f.charAt(0);else return null;d[r(236)](c),s[i++]=f+c[r(241)](0),a--,f=c,a==0&&(a=Math[r(244)](2,l),l++)}}function cke(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");const n="=".repeat((4-e.length%4)%4);return e+=n,decodeURIComponent(escape(atob(e)))}function RW(t){const e=Te(5);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("g",{fill:"none",stroke:"#888888",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"matrix(0.166612, 0, 0, 0.166612, 14.40597, 11.442867)"}),e[0]=n):n=e[0];let r,s;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("g",{transform:"matrix(0.764827, 0, 0, 0.764827, 2.823834, 2.82207)",children:o.jsx("path",{d:"M 12.886 0.233 C 14.248 0.233 15.368 1.262 15.514 2.587 L 17.588 2.587 C 18.98 2.587 20.133 3.663 20.229 5.053 L 20.235 5.234 C 20.234 5.673 19.91 6.047 19.474 6.106 L 19.351 6.116 C 18.911 6.116 18.538 5.791 18.479 5.354 L 18.47 5.234 C 18.47 4.794 18.145 4.42 17.707 4.358 L 17.588 4.35 L 15.08 4.35 C 14.588 5.083 13.765 5.52 12.886 5.519 L 8.761 5.519 C 7.881 5.52 7.058 5.083 6.567 4.351 L 4.059 4.35 C 3.617 4.35 3.245 4.677 3.185 5.114 L 3.176 5.234 L 3.176 21.121 C 3.176 21.569 3.508 21.936 3.939 21.995 L 4.059 22.004 L 7.587 22.004 C 8.027 22.004 8.402 22.329 8.463 22.765 L 8.471 22.885 C 8.471 23.372 8.075 23.767 7.587 23.767 L 4.059 23.767 C 2.666 23.768 1.512 22.691 1.418 21.303 L 1.412 21.121 L 1.412 5.234 C 1.412 3.841 2.488 2.687 3.878 2.592 L 4.059 2.587 L 6.133 2.587 C 6.281 1.247 7.412 0.233 8.761 0.233 L 12.886 0.233 Z M 12.886 1.998 L 8.761 1.998 C 8.084 2.023 7.689 2.771 8.048 3.344 C 8.203 3.59 8.47 3.744 8.761 3.754 L 12.886 3.754 C 13.562 3.779 14.011 3.064 13.693 2.465 C 13.535 2.167 13.223 1.986 12.886 1.998 Z",fill:"rgb(255, 193, 49)"})}),s=o.jsx("path",{d:"M 18.086 8.404 C 19.151 8.404 20.034 9.228 20.107 10.289 L 20.111 10.428 L 20.111 18.975 C 20.111 20.04 19.288 20.923 18.224 20.995 L 18.086 21 L 12.238 21 C 11.173 21 10.291 20.176 10.217 19.114 L 10.214 18.975 L 10.214 10.428 C 10.214 9.364 11.037 8.48 12.099 8.408 L 12.238 8.404 L 18.086 8.404 Z M 12.308 12.418 C 12.308 12.418 12.295 12.4 12.318 12.466 C 12.348 12.524 12.407 12.617 12.451 12.661 C 12.49 12.699 12.563 12.743 12.607 12.766 C 12.65 12.78 12.739 12.8 12.794 12.805 L 17.727 12.805 C 17.76 12.804 17.814 12.795 17.848 12.788 C 17.875 12.779 17.93 12.758 17.961 12.743 C 17.992 12.724 18.047 12.685 18.071 12.661 C 18.1 12.632 18.143 12.577 18.163 12.546 C 18.204 12.454 18.253 12.275 18.261 12.177 C 18.248 12.079 18.205 11.926 18.167 11.845 C 18.119 11.778 18.032 11.68 17.968 11.644 C 17.912 11.611 17.801 11.584 17.727 11.578 L 12.794 11.578 C 12.744 11.582 12.663 11.597 12.611 11.615 C 12.563 11.64 12.492 11.686 12.451 11.722 C 12.417 11.758 12.353 11.851 12.317 11.919 C 12.293 11.99 12.267 12.113 12.261 12.19 L 12.308 12.418 Z M 12.308 15.004 C 12.308 15.004 12.295 14.986 12.318 15.052 C 12.348 15.11 12.407 15.203 12.451 15.247 C 12.49 15.285 12.563 15.329 12.607 15.351 C 12.65 15.366 12.739 15.386 12.794 15.39 L 17.727 15.39 C 17.76 15.39 17.814 15.381 17.848 15.374 C 17.875 15.364 17.93 15.344 17.961 15.329 C 17.992 15.309 18.047 15.27 18.071 15.247 C 18.1 15.218 18.143 15.163 18.163 15.132 C 18.204 15.039 18.253 14.86 18.261 14.763 C 18.248 14.665 18.205 14.512 18.167 14.431 C 18.119 14.364 18.032 14.266 17.968 14.229 C 17.912 14.197 17.801 14.17 17.727 14.164 L 12.794 14.164 C 12.744 14.168 12.663 14.183 12.611 14.2 C 12.563 14.226 12.492 14.272 12.451 14.307 C 12.417 14.343 12.353 14.437 12.317 14.505 C 12.293 14.576 12.267 14.699 12.261 14.776 L 12.308 15.004 Z M 12.308 17.589 C 12.308 17.589 12.295 17.571 12.318 17.637 C 12.348 17.695 12.407 17.788 12.451 17.832 C 12.49 17.87 12.563 17.914 12.607 17.937 C 12.65 17.951 12.739 17.971 12.794 17.976 L 17.727 17.976 C 17.76 17.975 17.814 17.966 17.848 17.959 C 17.875 17.95 17.93 17.929 17.961 17.914 C 17.992 17.895 18.047 17.856 18.071 17.832 C 18.1 17.803 18.143 17.748 18.163 17.717 C 18.204 17.625 18.253 17.446 18.261 17.348 C 18.248 17.25 18.205 17.097 18.167 17.016 C 18.119 16.949 18.032 16.851 17.968 16.815 C 17.912 16.782 17.801 16.755 17.727 16.749 L 12.794 16.749 C 12.744 16.753 12.663 16.768 12.611 16.786 C 12.563 16.811 12.492 16.857 12.451 16.893 C 12.417 16.929 12.353 17.022 12.317 17.09 C 12.293 17.161 12.267 17.284 12.261 17.361 L 12.308 17.589 Z",fill:"rgb(36, 200, 219)"}),e[1]=r,e[2]=s):(r=e[1],s=e[2]);let a;return e[3]!==t?(a=o.jsxs("svg",ae(R({color:"accent",height:"8",viewBox:"0 0 24 24"},t),{children:[n,r,s]})),e[3]=t,e[4]=a):a=e[4],a}var uke={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function dke(){var e,n,r;var t=sn(1);try{const{t:s,i18n:a}=Gt(),[i,l]=v.useState(!1),c=ua(),{systemTheme:d}=ik(),{setSystemTheme:p,themeDark:f,deviceId:m}=Tt(bo),{currentCollectionId:b,collections:C}=Tt(Ar),{selectCollectionById:g}=l7(),w=f();v.useEffect(()=>{On("is_autostart_enabled").then(Ke=>{l(!!Ke)});const Ie=P8(({error:Ke,status:ut})=>{uke.TAURI_DEBUG&&(console.log("Updater status",ut),console.log("Updater error",Ke))});return()=>{Ie.then(Ke=>{Ke()})}},[]),v.useEffect(()=>{d&&(On("set_icon",{name:"main",isDark:d==="dark"}),p(d))},[d]);const x=()=>Es==null?void 0:Es.minimize(),S=()=>ge(this,null,function*(){(yield Es==null?void 0:Es.isMaximized())?Es==null||Es.unmaximize():Es==null||Es.maximize()}),E=()=>Es.hide(),N=()=>Es.close(),{pinnedClips:_}=Tt(Ar),{isShowCollectionNameOnNavBar:P,isShowDisabledCollectionsOnNavBarMenu:I,setIsShowCollectionNameOnNavBar:T,copyPasteDelay:L,setCopyPasteDelay:A,setIsHistoryEnabled:z,isHistoryEnabled:Y,setLicenseKey:O,setUpdaterSkipVersion:$,setUpdaterRemindLater:M,licenseKey:W,relaunchApp:V,checkForUpdate:U,installUpdate:J,appToursCompletedList:H,appToursSkippedList:F,setAppToursCompletedList:q,setAppToursSkippedList:X,setIsHistoryAutoUpdateOnCaputureEnabled:te,isHistoryAutoUpdateOnCaputureEnabled:ee,setIsShowDisabledCollectionsOnNavBarMenu:G}=Tt(Cr),{fontSize:Z,decreaseFontSize:le,increaseFontSize:se,resetFontSize:de,setIsSwapPanels:ce,isShowPinned:ye,setIsShowPinned:pe,isSwapPanels:me}=Tt(Ls);Vs(["alt+b"],()=>{c("/history",{replace:!0})}),Vs(["alt+m"],()=>{c("/menu",{replace:!0})}),Vs(["alt+l"],()=>{Qi.value=!0}),Vs(["alt+p"],()=>{ce(!me)}),v.useEffect(()=>{if(W)try{const Ie=yk(W);Ie&&typeof Ie.id=="string"&&Ie.id.length>0&&(Un.value=Ie)}catch(Ie){Un.value=null,O(null)}else Un.value=null},[W]);const be=xl(q0),Ee=xl(Mx),We=Ix(),qe=qh(),ot=rW(),{licenseExpInDays:Ve}=v.useMemo(()=>nW(),[Un.value]),Ge=v.useMemo(()=>Dx(),[Un.value]),ft=Mr(1718145195920).format("MMMM, YYYY");return v.useEffect(()=>{ot&&xh.map(({code:Ie})=>Ie).includes(ot)&&a.language!==ot&&a.changeLanguage(ot)},[ot]),v.useEffect(()=>{window.plausible&&m&&window.plausible("App Start",{props:{deviceId:m,isPro:be,isBeta:Ee,isExpired:We}})},[m,be,We,Ee,window.plausible]),o.jsx("div",{"data-tauri-drag-region":!0,className:"h-[41px] absolute top-0 left-0 w-full",id:"navbar-panel_tour",children:o.jsxs(eB,{className:"border-0 !h-full border-b border-slate-200/50 dark:border-slate-500/50 rounded-b-none bg-gray-50 pl-3 hover:bg-white dark:hover:bg-gray-950 active:cursor-move active:bg-white transform duration-300 dark:bg-gray-900 dark:text-slate-300",children:[o.jsx(Cp,{children:o.jsx("div",{className:"inline-flex h-fit w-fit items-center text-cyan-500",children:o.jsx(RW,{width:28,height:28,"data-tauri-drag-region":!0})})}),o.jsxs(Cp,{children:[o.jsxs(Up,{className:"md m-0 px-2.5 text-sm font-semibold whitespace-nowrap",id:"navbar-pastebar_tour",children:[o.jsx(re,{className:"font-semibold",children:be?Ge?o.jsxs(o.Fragment,{children:[s("PasteBar",{ns:"common"})," ",o.jsx("span",{className:"text-amber-700 dark:text-amber-600 ml-1 opacity-80",children:s("Pro",{ns:"common"})})]}):s("PasteBar Pro",{ns:"common"}):s("PasteBar",{ns:"common"})}),Ee&&o.jsx(re,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),o.jsxs(Wp,{children:[o.jsxs(jn,{onClick:()=>{YS.value=!0},children:[s("About PasteBar",{ns:"common"}),o.jsx(os,{children:o.jsxs(st,{text:s("Build on {{buildDate}}",{ns:"common",buildDate:ft}),isCompact:!0,side:"right",children:["v","0.2.2",Ee?"b":""]})})]}),!be&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsx(jn,{onClick:()=>{c("/app-settings/license/register",{replace:!0})},children:s("Register License",{ns:"common"})})]}),be&&We&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsx(jn,{onClick:()=>{c("/app-settings/license",{replace:!0})},className:"text-amber-700 dark:text-amber-600",children:s("License Expired",{ns:"common"})})]}),O2.value?om.value?o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),J()},children:[s("Installing Update...",{ns:"updater"}),o.jsx(cM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):o.jsx(o.Fragment,{children:be&&We?o.jsxs(zs,{children:[o.jsx(ks,{className:"!font-semibold",children:ao.value?s("Confirm Restart",{ns:"updater"}):s("Confirm Update",{ns:"updater"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),o.jsxs(jn,{onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart",{ns:"updater"})}):o.jsx(re,{children:s("Install Update",{ns:"updater"})}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})]})]}):o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Try Install Again",{ns:"updater"})}):ao.value?s("Restart",{ns:"updater"}):s("Install Update",{ns:"updater"}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})}):o.jsx(jn,{onClick:Ie=>{Ie.preventDefault(),U(!0)},children:Pf.value?s("No Update Available",{ns:"updater"}):Al.value?s("Checking for Update...",{ns:"updater"}):s("Check for Update",{ns:"updater"})}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Settings",{ns:"settings"})," ..."]}),o.jsxs(Cs,{className:"w-[230px] dark:text-slate-300",children:[o.jsxs(jn,{onClick:()=>{c("/app-settings/history",{replace:!0})},children:[s("Clipboard History Settings",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsxs(jn,{onClick:()=>{c("/app-settings/collections",{replace:!0})},children:[s("Manage Collections",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+С"})})]}),o.jsx(jn,{onClick:()=>{c("/app-settings/preferences",{replace:!0})},children:s("User Preferences",{ns:"settings"})}),o.jsx(jn,{onClick:()=>{c("/app-settings/security",{replace:!0})},children:s("Security",{ns:"settings"})}),o.jsxs(jn,{onClick:()=>{c("/app-settings/license",{replace:!0})},children:[s("License",{ns:"settings"}),be&&o.jsx(os,{children:o.jsxs(st,{text:s("Expires on {{licenseExpInDays}}",{ns:"common",licenseExpInDays:Ve}),isCompact:!0,side:"right",children:["Pro",Ee?" (beta)":""]})})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Capture History",{ns:"history"})," ..."]}),o.jsxs(Cs,{className:"dark:text-slate-300 text-slate-800",children:[o.jsxs(va,{checked:Y,onClick:Ie=>{Ie.preventDefault(),z(!Y)},children:[o.jsx(re,{className:"mr-2 ".concat(Y?"text-slate-800":"text-slate-900/50"),children:s("Enable Capture History",{ns:"history"})}),o.jsx(os,{className:"ml-auto",children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsxs(va,{checked:ee,onClick:Ie=>{Ie.preventDefault(),te(!ee)},children:[o.jsx(re,{className:"mr-2 ".concat(ee?"text-slate-800":"text-slate-900/50"),children:s("Auto Update on Capture",{ns:"history"})}),o.jsx(os,{className:"ml-auto",children:o.jsx(po,{keys:"ALT+A"})})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{c("/app-settings/history",{replace:!0})},children:[o.jsx(rE,{className:"mr-2 h-4 w-4"}),s("All History Settings",{ns:"history"})," ..."]})]})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:o.jsxs(o.Fragment,{children:[s("Paste Delay",{ns:"contextMenus"}),"...",L&&o.jsxs(St,{className:"ml-2 py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[L,"s"]})]})}),o.jsxs(Cs,{className:"w-[235px] dark:text-slate-300",children:[o.jsx(va,{checked:L===1,onSelect:()=>{A(1)},children:o.jsxs(re,{children:["1 ",s("second",{ns:"common"})]})}),o.jsx(va,{checked:L===2,onSelect:()=>{A(2)},children:o.jsxs(re,{children:["2 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===3,onSelect:()=>{A(3)},children:o.jsxs(re,{children:["3 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===4,onSelect:()=>{A(4)},children:o.jsxs(re,{children:["4 ",s("seconds",{ns:"common"})]})}),o.jsx(va,{checked:L===5,onSelect:()=>{A(5)},children:o.jsxs(re,{children:["5 ",s("seconds",{ns:"common"})]})})]})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{window.location.reload()},children:[s("Refresh Application UI",{ns:"settings"}),o.jsx(os,{children:o.jsx(po,{keys:"ALT+R"})})]})]})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{Qi.value=!0},children:[s("Lock App Screen",{ns:"navbar"}),o.jsx(os,{className:"ml-1",children:"⌘L"})]}),o.jsxs(jn,{onClick:E,children:[s("Close Main Window",{ns:"navbar"}),o.jsx(os,{children:"⌘W"})]}),o.jsxs(jn,{onClick:N,children:[s("Quit",{ns:"common"}),o.jsx(os,{children:"⌘Q"})]})]})]}),o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal px-2.5",id:"navbar-view_tour",children:s("View",{ns:"navbar"})}),o.jsxs(Wp,{children:[o.jsxs(jn,{onClick:()=>{c("/history",{replace:!0})},children:[s("Clipboard History",{ns:"common"}),o.jsx(os,{children:"⌘B"})]}),o.jsxs(jn,{onClick:()=>{c("/menu",{replace:!0})},children:[s("Paste Menu",{ns:"common"}),o.jsx(os,{children:"⌘M"})]}),o.jsx(os,{}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Options",{ns:"navbar"})," ..."]}),o.jsxs(Cs,{className:"w-[235px] dark:text-slate-300",children:[o.jsxs(va,{checked:me,onClick:()=>{ce(!me)},children:[s("Swap Panels Layout",{ns:"navbar"}),o.jsx(os,{children:"⌘P"})]}),o.jsx(va,{checked:P,onClick:()=>{T(!P)},children:s("Show Collections Name",{ns:"navbar"})}),o.jsx(va,{checked:I,onClick:()=>{G(!I)},children:s("Show Disabled Collections",{ns:"settings"})}),o.jsx(Xr,{}),o.jsx(va,{checked:i,onClick:()=>ge(this,null,function*(){yield On("autostart",{enabled:!i}),l(!i)}),children:s("Enable Auto Start",{ns:"settings"})})]})]}),o.jsx(ske,{}),o.jsx(Xr,{}),o.jsxs(jn,{disabled:Z==="125%",onClick:Ie=>{Ie.preventDefault(),se()},children:[s("Increase UI Font Size",{ns:"settings"})," ",o.jsx(Vr,{width:"1em",height:"18",className:"ml-auto"})]}),o.jsxs(jn,{disabled:Z==="85%",onClick:Ie=>{Ie.preventDefault(),le()},children:[s("Decrease UI Font Size",{ns:"settings"})," ",o.jsx(Dz,{width:"1em",height:"18",className:"ml-auto"})]}),o.jsx(jn,{disabled:Z==="100%",onClick:Ie=>{Ie.preventDefault(),de()},children:s("Reset Font Size",{ns:"settings"})}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("Language",{ns:"navbar"})," ..."]}),o.jsx(Cs,{children:xh.map(({code:Ie,name:Ke,flag:ut})=>o.jsxs(va,{disabled:ot&&Ie!==ot,checked:a.language===Ie,className:"pr-6 ".concat(a.language===Ie?"font-semibold":""),onClick:()=>{a.changeLanguage(Ie)},children:[o.jsx("span",{className:"flags mr-3",children:ut})," ",Ke]},Ie))})]})]})]}),C.length>0&&o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal min-w-fit px-2.5",id:"navbar-collections_tour",children:o.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[o.jsx(kce,{className:"mr-1.5 text-slate-500",size:18}),o.jsx(ne,{className:"overflow-hidden text-ellipsis max-w-[16rem]",children:P?(n=(e=C.find(({collectionId:Ie})=>Ie===b))==null?void 0:e.title)!=null?n:s("Collections",{ns:"collections"}):s("Collections",{ns:"collections"})})]})}),o.jsxs(Wp,{forceMount:!0,children:[o.jsx(jn,{inset:!0,disabled:!0,className:"py-0.5",children:s("Switch collections",{ns:"collections"})}),o.jsx(Xr,{}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:o.jsx(Kme,{value:b!=null?b:"",children:C.filter(({isEnabled:Ie})=>I||Ie).sort((Ie,Ke)=>{if(I){if(Ie.isEnabled&&!Ke.isEnabled)return-1;if(!Ie.isEnabled&&Ke.isEnabled)return 1}return Ie.createdAt-Ke.createdAt}).map(({collectionId:Ie,isEnabled:Ke,isSelected:ut,title:$e})=>o.jsx(tB,{value:Ie,disabled:!Ke,onClick:()=>{g({selectCollection:{collectionId:Ie}})},children:o.jsx("span",{className:ut?"font-semibold":"",children:$e})},Ie))})}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{c("/app-settings/collections",{replace:!0})},children:[o.jsx(zh,{className:"mr-2",size:14}),s("Manage Collections",{ns:"collections"})]}),o.jsxs(jn,{onClick:()=>{qe?c("/app-settings/collections/new",{replace:!0}):Ga.value=!0},children:[o.jsx(Vr,{className:"mr-2",size:15}),s("Add Collection",{ns:"collections"}),o.jsx(Jl,{})]})]})]}),o.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full w-full items-center justify-center",children:[o.jsx(rke,{isDark:w}),ye?o.jsx(je,{onClick:()=>{pe(!1)},id:"navbar-pinned_tour",title:s("Hide Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:o.jsx(Ho.pinoff,{className:"h-4 w-4"})}):o.jsxs(je,{onClick:()=>{pe(!0)},id:"navbar-pinned_tour",title:s("Show Pinned",{ns:"pinned"}),variant:"ghost",className:"relative h-7 focus:outline-none px-2 mx-2 !bg-slate-50 text-slate-400 dark:!bg-slate-900 dark:hover:!bg-slate-800 hover:text-slate-600 dark:text-slate-400",children:[o.jsx(Ho.pin,{className:"h-4 w-4"}),_.length>0&&o.jsx(St,{variant:"outline",className:"bg-orange-100 dark:bg-orange-900/80 dark:border-orange-950 border absolute border-orange-50 cursor-pointer px-1.5 left-[30px] top",children:o.jsx(re,{className:"font-mono !text-orange-400 font-semibold",children:_.length})})]})]}),o.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full justify-end",children:[O2.value?o.jsxs(Cp,{children:[o.jsx(Up,{className:Lc.value?"bg-red-100/70 dark:bg-red-900/70":ao.value?"bg-amber-100/70 dark:bg-amber-900/70":"bg-teal-100/70 dark:bg-teal-900/70",children:o.jsx(st,{text:s("Version {{newVersion}} is available",{ns:"updater",newVersion:Gi.value}),sideOffset:16,side:"left",children:o.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[o.jsx(ne,{className:"overflow-hidden text-ellipsis max-w-[16rem] mr-2 text-[13px]",children:Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart to Finish",{ns:"updater"})}):o.jsx(re,{children:s("Update Available",{ns:"updater"})})}),o.jsx(Nz,{size:15})]})})}),o.jsxs(Wp,{children:[om.value?o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),J()},children:[s("Installing Update...",{ns:"updater"}),o.jsx(cM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):o.jsx(o.Fragment,{children:be&&We?o.jsxs(zs,{children:[o.jsx(ks,{className:"!font-semibold",children:ao.value?s("Confirm Restart",{ns:"updater"}):s("Confirm Update",{ns:"updater"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),o.jsxs(jn,{onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[Lc.value?o.jsx(re,{children:s("Update Install Error",{ns:"updater"})}):ao.value?o.jsx(re,{children:s("Restart",{ns:"updater"})}):o.jsx(re,{children:s("Install Update",{ns:"updater"})}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})]})]}):o.jsxs(jn,{className:"!font-semibold",onClick:Ie=>{Ie.preventDefault(),ao.value?V():J()},children:[ao.value?s("Restart",{ns:"updater"}):Lc.value?s("Try Install Again",{ns:"updater"}):s("Install Update",{ns:"updater"}),o.jsxs(os,{className:"ml-auto pl-2",children:["v",Gi.value]})]})}),be&&We&&o.jsx(jn,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ie=>{Ie.preventDefault(),c("/app-settings/license",{replace:!0})},children:s("Upgrade removes Pro features",{ns:"updater"})}),o.jsx(Xr,{}),((r=R2.value)==null?void 0:r.length)&&o.jsxs(zs,{children:[o.jsxs(ks,{children:[s("View Changes",{ns:"updater"})," ..."]}),o.jsxs(Cs,{className:"w-[230px] dark:text-slate-300",children:[Gi.value&&o.jsx(jn,{disabled:!0,className:"!opacity-60",children:o.jsx(ne,{children:o.jsx(ne,{className:"text-sm",children:L2.value&&s("Release date {{date}}",{ns:"updater",date:L2.value})})})}),o.jsx(Xr,{}),R2.value.map((Ie,Ke)=>o.jsx(jn,{disabled:!0,className:"!opacity-80",children:Ie},Ke))]})]}),o.jsxs(jn,{onClick:()=>{M()},children:[s("Remind Me Later",{ns:"updater"}),o.jsx(os,{className:"ml-auto pl-2",children:o.jsx(nae,{size:14})})]}),be&&o.jsxs(o.Fragment,{children:[o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{$(Gi.value)},children:[s("Skip This Version",{ns:"updater"}),o.jsx(os,{className:"ml-auto pl-2",children:o.jsx(tae,{size:14})})]})]})]})]}):o.jsxs(Cp,{children:[o.jsx(Up,{className:"font-normal px-2.5",id:"navbar-help_tour",children:s("Help",{ns:"help"})}),o.jsxs(Wp,{children:[o.jsxs(zs,{children:[o.jsx(ks,{children:s("App Guided Tours",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsxs(jn,{onClick:()=>{rr.value=En.historyPanelTour},children:[s("Clipboard History Tour",{ns:"help"}),H.includes(En.historyPanelTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.historyPanelTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"6"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.dashboardClipsTour},children:[s("Boards and Clips Tour",{ns:"help"}),H.includes(En.dashboardClipsTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.dashboardClipsTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"8"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.menuTour},children:[s("Paste Menu Tour",{ns:"help"}),H.includes(En.menuTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.menuTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"10"})]}),o.jsx(Xr,{}),o.jsxs(jn,{onClick:()=>{rr.value=En.navBarTour},children:[s("Navigation Bar Tour",{ns:"help"}),H.includes(En.navBarTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.navBarTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"8"})]}),o.jsxs(jn,{onClick:()=>{rr.value=En.settingsTour},children:[s("PasteBar Settings Tour",{ns:"help"}),H.includes(En.settingsTour)?o.jsx(St,{variant:"outline",title:s("Tour completed",{ns:"help"}),className:"ml-1.5 !font-normal bg-green-50 border-green-200 text-green-600 dark:bg-green-900 dark:border-green-800 dark:text-green-200",children:o.jsx(en,{className:"w-3 h-3"})}):F.includes(En.settingsTour)?o.jsx(St,{variant:"outline",title:s("Tour skipped",{ns:"help"}),className:"ml-1.5 !font-normal bg-yellow-50 border-yellow-400 text-yellow-600 dark:bg-yellow-900 dark:border-yellow-800 dark:text-yellow-200",children:o.jsx(In,{className:"w-3 h-3"})}):o.jsx(St,{variant:"outline",className:"ml-1.5 !font-normal",children:"6"})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Guided Tours Options",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{onClick:()=>{const Ie=Object.values(En);q([...Ie])},children:s("Mark All Completed",{ns:"help"})}),o.jsx(jn,{onClick:()=>{q([]),X([])},children:s("Reset All Tours",{ns:"help"})})]})]})]})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Feature Highlights",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsxs(zs,{children:[o.jsx(ks,{children:s("Clipboard History",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.historyPanelTour,{returnObjects:!0,defaultValue:[],lng:"en",ns:"tours"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.historyPanelTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Boards and Clips",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.dashboardClipsTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.dashboardClipsTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Paste Menu",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.menuTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.menuTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Navigation Bar",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.navBarTour,{returnObjects:!0,defaultValue:[],ns:"tours",lng:"en"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.navBarTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("PasteBar Settings",{ns:"help"})}),o.jsx(Cs,{className:"dark:text-slate-300",children:s(En.settingsTour,{returnObjects:!0,defaultValue:[],lng:"en",ns:"tours"}).map((Ie,Ke)=>o.jsx(jn,{onClick:()=>{rr.value=En.settingsTour,id.value=Ie.element},children:s(Ie.popover.title,{ns:"help"})},Ke))})]})]}),o.jsx(Xr,{}),o.jsxs(zs,{children:[o.jsx(ks,{children:s("Support and Feedback",{ns:"help"})}),o.jsxs(Cs,{className:"dark:text-slate-300",children:[o.jsx(jn,{onClick:()=>{ZS.value=!0},children:be?s("Priority Support Pro Form",{ns:"help"}):s("Contact Us Form",{ns:"help"})}),!be&&o.jsxs(jn,{onClick:()=>{Ga.value=!0},children:[s("Priority Support",{ns:"help"}),o.jsx(Jl,{})]}),o.jsx(Xr,{}),o.jsx(jn,{disabled:!0,className:"pb-0",children:o.jsxs(re,{className:"text-sm mb-2 flex justify-center items-center w-full",children:[s("Stay in touch",{ns:"common"}),o.jsx(P0,{className:"w-[13px] h-[13px] ml-1"})]})}),o.jsx(jn,{children:o.jsx(LW,{className:"!gap-2 grid grid-cols-4 items-center justify-center w-full",showContactForm:!1})})]})]})]})]})]}),o.jsx(je,{onClick:x,title:s("Window:::Minimize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:o.jsx(Ho.minimize,{className:"h-3 w-3"})}),o.jsx(je,{onClick:S,title:s("Window:::Maximize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:o.jsx(Xie,{className:"h-4 w-4"})}),o.jsx(je,{onClick:E,id:"navbar-close-window_tour",variant:"ghost",className:"h-8 focus:outline-none",title:s("Window:::Close Window",{ns:"navbar"}),children:o.jsx(In,{className:"h-4 w-4"})})]})]})})}finally{t.f()}}function fke(t){var a;const e=Te(6);let n,r;e[0]!==t?(a=t,{children:r}=a,n=Ne(a,["children"]),e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let s;return e[3]!==n||e[4]!==r?(s=o.jsx(Fve,ae(R({},n),{children:r})),e[3]=n,e[4]=r,e[5]=s):s=e[5],s}function hke(){const t=Te(6);let e;if(t[0]===Symbol.for("react.memo_cache_sentinel")){const f=["Alt","Meta"];e=function(b){return f.includes(b.key)},t[0]=e}else e=t[0];const n=e;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=function(m){n(m)&&(Tn.value=!0)},t[1]=r):r=t[1];const s=r;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=function(m){n(m)&&(Tn.value=!1)},t[2]=a):a=t[2];const i=a;let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=function(){Tn.value=!1},t[3]=l):l=t[3];const c=l;let d,p;return t[4]===Symbol.for("react.memo_cache_sentinel")?(d=()=>(window.addEventListener("keydown",s),window.addEventListener("keyup",i),window.addEventListener("focus",c),()=>{window.removeEventListener("keydown",s),window.removeEventListener("keyup",i),window.removeEventListener("focus",c)}),p=[],t[4]=d,t[5]=p):(d=t[4],p=t[5]),v.useEffect(d,p),Tn}const pke=1,mke=16e3,Ub=[];let W1={toasts:[]},r4=0;function gke(){return r4=(r4+1)%Number.MAX_VALUE,r4.toString()}const Wb=new Map,RI=t=>{if(Wb.has(t))return;const e=setTimeout(()=>{Wb.delete(t),nd({type:"DISMISS_TOAST",toastId:t,remove:!0})},mke);Wb.set(t,e)},vke=(t,e)=>{switch(e.type){case"ADD_TOAST":return t.toasts.some(r=>r.id===e.toast.id)?t:ae(R({},t),{toasts:[e.toast,...t.toasts].slice(0,pke)});case"UPDATE_TOAST":return ae(R({},t),{toasts:t.toasts.map(r=>r.id===e.toast.id?R(R({},r),e.toast):r)});case"DISMISS_TOAST":{const{toastId:r,remove:s}=e;return s?(Wb.clear(),ae(R({},t),{toasts:[]})):(r?RI(r):t.toasts.forEach(a=>{a.id&&RI(a.id)}),ae(R({},t),{toasts:t.toasts.map(a=>a.id===r||r===void 0?ae(R({},a),{open:!1}):a)}))}default:return t}};function nd(t){W1=vke(W1,t),Ub.forEach(e=>{e(W1)})}function xke(e){var t=Ne(e,[]);const n=(t==null?void 0:t.id)||gke();if(t.id&&W1.toasts.some(i=>i.id===t.id))return nd({type:"UPDATE_TOAST",toast:ae(R({},t),{open:!0})}),{id:t.id,dismiss:()=>nd({type:"DISMISS_TOAST",toastId:t.id}),update:i=>nd({type:"UPDATE_TOAST",toast:ae(R({},i),{id:n})})};const r=a=>nd({type:"UPDATE_TOAST",toast:ae(R({},a),{id:n})}),s=()=>nd({type:"DISMISS_TOAST",toastId:n});return nd({type:"ADD_TOAST",toast:ae(R({},t),{id:n,open:!0,onOpenChange:a=>{a||s()}})}),{id:n,dismiss:s,update:r}}function bk(){const t=Te(6),[e,n]=Vt.useState(W1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>(Ub.push(n),()=>{const l=Ub.indexOf(n);l>-1&&Ub.splice(l,1)}),t[0]=r):r=t[0];let s;t[1]!==e?(s=[e],t[1]=e,t[2]=s):s=t[2],Vt.useEffect(r,s);let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=l=>nd({type:"DISMISS_TOAST",toastId:l}),t[3]=a):a=t[3];let i;return t[4]!==e?(i=ae(R({},e),{toast:xke,dismiss:a}),t[4]=e,t[5]=i):i=t[5],i}const rd=Rt(""),yke=({delay:t=800,onCopied:e=()=>{}})=>{var n=sn(2);try{const{copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:s}=Tt(Cr),a=l=>{l&&!rd.value&&(rd.value=l,setTimeout(()=>{Gs("copy_history_item",{historyId:l}).then(c=>{c==="ok"?requestAnimationFrame(()=>{rd.value="",e()}):(rd.value="",console.error("Failed to copy history item",c))}).catch(c=>{rd.value="",console.error("Failed to copy history item",c)})},t))},i=l=>ge(void 0,null,function*(){s&&(l=l.reverse());for(const c of l)a(c),yield new Promise(d=>setTimeout(d,r*1e3))});return[rd.value,a,i]}finally{n.f()}},sd=Rt(""),Jg=Rt(0),bke=({delay:t=800,onPasted:e=()=>{}})=>{var n=sn(2);try{const{copyPasteDelay:r,copyPasteSequencePinnedDelay:s,copyPasteSequenceIsReversOrder:a}=Tt(Cr),i=v.useRef(),l=(f,m=0)=>new Promise((b,C)=>{Gs("copy_paste_history_item",{historyId:f,delay:m}).then(g=>{g==="ok"?b():(sd.value="",console.error("Failed to copy history item",g),C())}).catch(g=>{sd.value="",console.error("Failed to copy history item",g),C()})}),c=v.useCallback((f,m=1e3)=>(clearInterval(i.current),new Promise(b=>{Jg.value=f,i.current=setInterval(()=>{Jg.value>0?(Jg.value===1&&b(),Jg.value-=1):clearInterval(i.current)},m)})),[sd.value]),d=(f,m)=>new Promise(b=>ge(void 0,null,function*(){m=m!=null?m:r,f?(sd.value=f,m>0&&(yield c(m)),yield l(f),setTimeout(()=>{requestAnimationFrame(()=>{e(),b()})},t)):(sd.value="",b())})),p=f=>ge(void 0,null,function*(){a&&(f=f.reverse());for(const m of f)yield d(m,s)});return[sd.value,Jg.value,d,p]}finally{n.f()}},wke=()=>window.__TAURI_INVOKE__;function kke(){return wke()("app_ready")}var cb={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const OI=["mousemove","keydown","scroll","keypress","mousedown"];function Cke(){var t=sn(1);try{hke();const e=Dn(),n=ua(),r=Tt(Ls),s=it(null),a=Tt(Cr),i=Tt(bo),l=Tt(_i),c=v.useRef(),{i18n:d,t:p}=Gt(),{toast:f}=bk(),m=v.useCallback(Xz(()=>{s.value===null||Qi.value||(Qi.value=!1,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{Qi.value=!0},s.value))},1e3),[s]);v.useEffect(()=>{Qi.value?a.setIsAppLocked(!0):a.setIsAppLocked(!1)},[Qi.value]),v.useEffect(()=>{kke().then(_=>{var P,I,T,L,A,z,Y,O,$,M,W,V,U,J,H,F,q,X,te,ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve,Ge,ft,Ie,Ke,ut,$e,ht,Fe,pt,Qe,Lt,Ut,wt,Xt,$t,tn,Pt,Ue,Je,jt,we,Se,De;if(_!==null)try{const{constants:nt,settings:Pe,permissionstrusted:gt}=JSON.parse(_),{app_dev_data_dir:Ze,app_data_dir:Re,app_detect_languages_supported:Oe}=nt;if((P=Pe.userSelectedLanguage)!=null&&P.valueText&&((I=Pe.userSelectedLanguage)==null?void 0:I.valueText)!==""&&d.language!==((T=Pe.userSelectedLanguage)==null?void 0:T.valueText)&&d.changeLanguage(Pe.userSelectedLanguage.valueText),((L=Pe.userSelectedLanguage)==null?void 0:L.valueText)===""&&d.resolvedLanguage!=="en"&&d.changeLanguage(d.resolvedLanguage),a.initSettings({appDataDir:cb.TAURI_DEBUG?Ze:Re,appLastUpdateVersion:(A=Pe.appLastUpdateVersion)==null?void 0:A.valueText,appLastUpdateDate:(z=Pe.appLastUpdateDate)==null?void 0:z.valueText,isFirstRun:(Y=Pe.isFirstRun)==null?void 0:Y.valueBool,isFirstRunAfterUpdate:(O=Pe.isFirstRunAfterUpdate)==null?void 0:O.valueBool,isHistoryDetectLanguageEnabled:($=Pe.isHistoryDetectLanguageEnabled)==null?void 0:$.valueBool,historyDetectLanguageMinLines:(M=Pe.historyDetectLanguageMinLines)==null?void 0:M.valueInt,historyExclusionList:(W=Pe.historyExclusionList)==null?void 0:W.valueText,isExclusionListEnabled:(V=Pe.isExclusionListEnabled)==null?void 0:V.valueBool,isAutoMaskWordsListEnabled:(U=Pe.isAutoMaskWordsListEnabled)==null?void 0:U.valueBool,autoMaskWordsList:(J=Pe.autoMaskWordsList)==null?void 0:J.valueText,historyDetectLanguagesPrioritizedList:(H=Pe.historyDetectLanguagesPrioritizedList)==null?void 0:H.valueText.split(","),historyDetectLanguagesEnabledList:(F=Pe.historyDetectLanguagesEnabledList)==null?void 0:F.valueText.split(","),appToursCompletedList:(q=Pe.appToursCompletedList)==null?void 0:q.valueText.split(","),appToursSkippedList:(X=Pe.appToursSkippedList)==null?void 0:X.valueText.split(","),isHistoryAutoUpdateOnCaputureEnabled:(te=Pe.isHistoryAutoUpdateOnCaputureEnabled)==null?void 0:te.valueBool,isHistoryEnabled:(ee=Pe.isHistoryEnabled)==null?void 0:ee.valueBool,isAutoClearSettingsEnabled:(G=Pe.isAutoClearSettingsEnabled)==null?void 0:G.valueBool,autoClearSettingsDuration:(Z=Pe.autoClearSettingsDuration)==null?void 0:Z.valueInt,autoClearSettingsDurationType:(le=Pe.autoClearSettingsDurationType)==null?void 0:le.valueText,copyPasteDelay:(se=Pe.copyPasteDelay)==null?void 0:se.valueInt,copyPasteSequencePinnedDelay:(ce=(de=Pe.copyPasteSequencePinnedDelay)==null?void 0:de.valueInt)!=null?ce:3,copyPasteSequenceIsReversOrder:(ye=Pe.copyPasteSequenceIsReversOrder)==null?void 0:ye.valueBool,pasteSequenceEachSeparator:(pe=Pe.pasteSequenceEachSeparator)==null?void 0:pe.valueText,isAutoCloseOnCopyPaste:(me=Pe.isAutoCloseOnCopyPaste)==null?void 0:me.valueBool,isAutoPreviewLinkCardsEnabled:(be=Pe.isAutoPreviewLinkCardsEnabled)==null?void 0:be.valueBool,isClipNotesHoverCardsEnabled:(Ee=Pe.isClipNotesHoverCardsEnabled)==null?void 0:Ee.valueBool,clipNotesHoverCardsDelayMS:(We=Pe.clipNotesHoverCardsDelayMS)==null?void 0:We.valueInt,clipNotesMaxWidth:(qe=Pe.clipNotesMaxWidth)==null?void 0:qe.valueInt,clipNotesMaxHeight:(ot=Pe.clipNotesMaxHeight)==null?void 0:ot.valueInt,isAutoFavoriteOnDoubleCopyEnabled:(Ve=Pe.isAutoFavoriteOnDoubleCopyEnabled)==null?void 0:Ve.valueBool,isIdleScreenAutoLockEnabled:(Ge=Pe.isIdleScreenAutoLockEnabled)==null?void 0:Ge.valueBool,idleScreenAutoLockTimeInMinutes:(ft=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:ft.valueInt,isShowHistoryCaptureOnLockedScreen:(Ie=Pe.isShowHistoryCaptureOnLockedScreen)==null?void 0:Ie.valueBool,screenLockPassCode:(Ke=Pe.screenLockPassCode)==null?void 0:Ke.valueText,screenLockPassCodeLength:(ut=Pe.screenLockPassCodeLength)==null?void 0:ut.valueInt,screenLockRecoveryPasswordMasked:($e=Pe.screenLockRecoveryPasswordMasked)==null?void 0:$e.valueText,isAppLocked:(ht=Pe.isAppLocked)==null?void 0:ht.valueBool,isScreenLockPassCodeRequireOnStart:(Fe=Pe.isScreenLockPassCodeRequireOnStart)==null?void 0:Fe.valueBool,isSearchNameOrLabelOnly:(pt=Pe.isSearchNameOrLabelOnly)==null?void 0:pt.valueBool,isSkipAutoStartPrompt:(Qe=Pe.isSkipAutoStartPrompt)==null?void 0:Qe.valueBool,isShowCollectionNameOnNavBar:(Lt=Pe.isShowCollectionNameOnNavBar)==null?void 0:Lt.valueBool,isShowDisabledCollectionsOnNavBarMenu:(Ut=Pe.isShowDisabledCollectionsOnNavBarMenu)==null?void 0:Ut.valueBool,userSelectedLanguage:(wt=Pe.userSelectedLanguage)==null?void 0:wt.valueText,licenseKey:(Xt=Pe.licenseKey)==null?void 0:Xt.valueText,isAppReady:!0}),a.initConstants({APP_DETECT_LANGUAGES_SUPPORTED:Oe}),CT().then(et=>{var Et;et==="Windows_NT"&&((Et=Pe.copyPasteDelay)==null?void 0:Et.valueInt)===0&&a.updateSetting("copyPasteDelay",2)}),($t=Pe.isFirstRun)!=null&&$t.valueBool&&(Es.setSize(new uv(1105,710)),a.updateSetting("isFirstRun",!1)),(tn=Pe.isIdleScreenAutoLockEnabled)!=null&&tn.valueBool&&((Pt=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:Pt.valueInt)>0&&(OI.forEach(et=>window.addEventListener(et,m)),s.value=((Ue=Pe.idleScreenAutoLockTimeInMinutes)==null?void 0:Ue.valueInt)*1e3*60),((Je=Pe.isAppLocked)!=null&&Je.valueBool||(jt=Pe.isScreenLockPassCodeRequireOnStart)!=null&&jt.valueBool)&&(Qi.value=!0),!((we=Pe.appToursCompletedList)!=null&&we.valueText.split(",").includes(En.historyPanelTour))&&!((Se=Pe.appToursSkippedList)!=null&&Se.valueText.split(",").includes(En.historyPanelTour))&>){const et=f({title:"".concat(p("Welcome to PasteBar",{ns:"help"})," 🎉"),id:"welcome-tour",duration:0,description:o.jsxs(o.Fragment,{children:[p("WelcomeDescription",{ns:"help"}),o.jsx(ve,{className:"mt-3",children:p("WelcomeTour",{ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{rr.value=En.historyPanelTour,et==null||et.dismiss()},children:p("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{et==null||et.dismiss()},children:p("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{et==null||et.dismiss();const Et=Object.values(En);a.setAppToursSkippedList([...Et])},children:p("Skip All Tours",{ns:"help"})})]})]})]})})}(De=Pe.isSkipAutoStartPrompt)!=null&&De.valueBool||Gs("is_autostart_enabled").then(et=>ge(this,null,function*(){if(!et&&(yield S2("Start the app at system startup?",{title:"PasteBar auto start",okLabel:"Turn on",cancelLabel:"Later"})))try{yield Gs("autostart",{enabled:!0})}catch(bt){console.error(bt)}})),gt===!1&&(A2.value=!0)}catch(nt){console.error(nt)}}),CT().then(_=>{r.setOSType(_)}),Es.innerSize().then(_=>{const{width:P,height:I}=_;(P<740||I<600)&&Es.setSize(new uv(750,620))}),i.deviceId===""&&Gs("get_device_id").then(_=>{const P=_;i.setDeviceId(P)}),(!cb.TAURI_DEBUG||cb.VITE_ENABLE_DEV_AUTO_UPDATER)&&a.checkForUpdate();const g=Xi("clipboard://clipboard-monitor/update",_=>ge(this,null,function*(){_.payload==="clipboard update"&&(rd.value&&(yield new Promise(P=>setTimeout(P,600)),rd.value=""),sd.value&&(yield new Promise(P=>setTimeout(P,600)),sd.value=""),yield e.invalidateQueries({queryKey:["get_clipboard_history"]}),yield e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}),setTimeout(()=>{l.scrollToTopHistoryList()},100),setTimeout(()=>{e.setQueryData(["get_clipboard_history"],P=>{if(P)return ae(R({},P),{pages:P.pages.slice(0,1),pageParams:P.pageParams.slice(0,1)})})},1e3),Gs("build_system_menu"))})),w=Xi("clips://clips-monitor/update",_=>ge(this,null,function*(){_.payload==="update"&&(yield e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}))})),x=Xi("macosx-permissions-modal",_=>ge(this,null,function*(){_.payload==="show"&&(A2.value=!0)})),S=Xi("setting:update",_=>ge(this,null,function*(){const{name:P,value_bool:I}=_.payload;P==="isHistoryEnabled"&&a.updateSetting("isHistoryEnabled",!!I)})),E=Xi("menu:add_first_menu_item",()=>ge(this,null,function*(){n("/menu",{replace:!0})})),N=Xi("scheme-request-received",_=>{const P=_.payload;if(!P)return;const I=new URL(P);if(I.hostname==="activate-license"||I.pathname.includes("activate-license")){const T=I.searchParams.get("key");let L=null,A=null;try{if(A=yk(T),!A)throw new Error("Invalid license key");if(typeof A.id=="string"&&A.id.length>0)L=null;else throw new Error("Invalid license key")}catch(z){return yo(p("License key validation failed. Please try another key.",{ns:"common"}),{title:p("Activation Error",{ns:"common"}),type:"error"}),L=z,!1}if(A.id&&L===null){const z=p("Do you want to activate license below?"),Y=p("Name: {{name}}",{name:A.name}),O=p("Email: {{email}}",{email:A.email}),$=p("License Key: {{key}}",{key:yv(T,10,10,180)});S2("".concat(z,"\n\n").concat(Y,"\n").concat(O,"\n\n").concat($),{title:p("PasteBar Pro License Activation",{ns:"common"}),okLabel:p("Yes, activate",{ns:"common"}),cancelLabel:p("Cancel",{ns:"common"})}).then(M=>{M&&(n0.value=!1,Ga.value=!1,n("/app-settings/license/register",{replace:!0,state:{ls:T}}))})}}else if(I.hostname==="shared-clip"||I.pathname.includes("shared-clip"))return});return d.on("languageChanged",function(){return ge(this,null,function*(){yield e.invalidateQueries({queryKey:["get_clipboard_history"]})})}),window.addEventListener("contextmenu",_=>{cb.TAURI_DEBUG||_.preventDefault()}),()=>{N.then(_=>{_()}),g.then(_=>{_()}),E.then(_=>{_()}),w.then(_=>{_()}),S.then(_=>{_()}),x.then(_=>{_()}),c.current&&clearTimeout(c.current),OI.forEach(_=>window.removeEventListener(_,m))}},[]);const b=Tt(Ls);return v.useEffect(()=>{document.documentElement.style.fontSize=b.fontSize},[b.fontSize]),o.jsx(o.Fragment,{children:o.jsx(fke,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:o.jsx("div",{className:"bg-transparent ".concat(r.isMacOSX?"p-0":"p-1"," rounded-md"),children:o.jsxs("div",{className:"border rounded-lg shadow-window border-gray-100 dark:border-gray-800 relative bg-slate-100",children:[o.jsx(dke,{}),o.jsx(F7,{})]})})})})}finally{t.f()}}function Ske(){const t=Te(8),{direction:e,setDirection:n}=Tt(bo);let r;t[0]!==n?(r=c=>{n(c)},t[0]=n,t[1]=r):r=t[1];const s=r;let a,i;t[2]!==e?(a=()=>{if(window===void 0)return;window.document.documentElement.setAttribute("dir",e)},i=[e],t[2]=e,t[3]=a,t[4]=i):(a=t[3],i=t[4]),v.useEffect(a,i);let l;return t[5]!==e||t[6]!==s?(l=[e,s],t[5]=e,t[6]=s,t[7]=l):l=t[7],l}const OW="ToastProvider",[W7,jke,Eke]=D0("Toast"),[$W,M7e]=_a("Toast",[Eke]),[Nke,wk]=$W(OW),zW=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:i}=t,[l,c]=v.useState(null),[d,p]=v.useState(0),f=v.useRef(!1),m=v.useRef(!1);return v.createElement(W7.Provider,{scope:e},v.createElement(Nke,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:a,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:v.useCallback(()=>p(b=>b+1),[]),onToastRemove:v.useCallback(()=>p(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m},i))};zW.propTypes={label(t){if(t.label&&typeof t.label=="string"&&!t.label.trim()){const e="Invalid prop `label` supplied to `".concat(OW,"`. Expected non-empty `string`.");return new Error(e)}return null}};const _ke="ToastViewport",Tke=["F8"],fj="toast.viewportPause",hj="toast.viewportResume",Pke=v.forwardRef((t,e)=>{const w=t,{__scopeToast:n,hotkey:r=Tke,label:s="Notifications ({hotkey})"}=w,a=Ne(w,["__scopeToast","hotkey","label"]),i=wk(_ke,n),l=jke(n),c=v.useRef(null),d=v.useRef(null),p=v.useRef(null),f=v.useRef(null),m=tr(e,f,i.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=i.toastCount>0;v.useEffect(()=>{const x=S=>{var E;r.every(_=>S[_]||S.code===_)&&((E=f.current)===null||E===void 0||E.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),v.useEffect(()=>{const x=c.current,S=f.current;if(C&&x&&S){const E=()=>{if(!i.isClosePausedRef.current){const I=new CustomEvent(fj);S.dispatchEvent(I),i.isClosePausedRef.current=!0}},N=()=>{if(i.isClosePausedRef.current){const I=new CustomEvent(hj);S.dispatchEvent(I),i.isClosePausedRef.current=!1}},_=I=>{!x.contains(I.relatedTarget)&&N()},P=()=>{x.contains(document.activeElement)||N()};return x.addEventListener("focusin",E),x.addEventListener("focusout",_),x.addEventListener("pointermove",E),x.addEventListener("pointerleave",P),window.addEventListener("blur",E),window.addEventListener("focus",N),()=>{x.removeEventListener("focusin",E),x.removeEventListener("focusout",_),x.removeEventListener("pointermove",E),x.removeEventListener("pointerleave",P),window.removeEventListener("blur",E),window.removeEventListener("focus",N)}}},[C,i.isClosePausedRef]);const g=v.useCallback(({tabbingDirection:x})=>{const E=l().map(N=>{const _=N.ref.current,P=[_,...qke(_)];return x==="forwards"?P:P.reverse()});return(x==="forwards"?E.reverse():E).flat()},[l]);return v.useEffect(()=>{const x=f.current;if(x){const S=E=>{const N=E.altKey||E.ctrlKey||E.metaKey;if(E.key==="Tab"&&!N){const L=document.activeElement,A=E.shiftKey;if(E.target===x&&A){var P;(P=d.current)===null||P===void 0||P.focus();return}const O=g({tabbingDirection:A?"backwards":"forwards"}),$=O.findIndex(M=>M===L);if(s4(O.slice($+1)))E.preventDefault();else{var I,T;A?(I=d.current)===null||I===void 0||I.focus():(T=p.current)===null||T===void 0||T.focus()}}};return x.addEventListener("keydown",S),()=>x.removeEventListener("keydown",S)}},[l,g]),v.createElement(Fue,{ref:c,role:"region","aria-label":s.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:C?void 0:"none"}},C&&v.createElement($I,{ref:d,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"forwards"});s4(x)}}),v.createElement(W7.Slot,{scope:n},v.createElement(_n.ol,at({tabIndex:-1},a,{ref:m}))),C&&v.createElement($I,{ref:p,onFocusFromOutsideViewport:()=>{const x=g({tabbingDirection:"backwards"});s4(x)}}))}),Mke="ToastFocusProxy",$I=v.forwardRef((t,e)=>{const i=t,{__scopeToast:n,onFocusFromOutsideViewport:r}=i,s=Ne(i,["__scopeToast","onFocusFromOutsideViewport"]),a=wk(Mke,n);return v.createElement(P5,at({"aria-hidden":!0,tabIndex:0},s,{ref:e,style:{position:"fixed"},onFocus:l=>{var c;const d=l.relatedTarget;!((c=a.viewport)!==null&&c!==void 0&&c.contains(d))&&r()}}))}),kk="Toast",Dke="toast.swipeStart",Ike="toast.swipeMove",Ake="toast.swipeCancel",Lke="toast.swipeEnd",Rke=v.forwardRef((t,e)=>{const d=t,{forceMount:n,open:r,defaultOpen:s,onOpenChange:a}=d,i=Ne(d,["forceMount","open","defaultOpen","onOpenChange"]),[l=!0,c]=ca({prop:r,defaultProp:s,onChange:a});return v.createElement(No,{present:n||l},v.createElement(FW,at({open:l},i,{ref:e,onClose:()=>c(!1),onPause:Qs(t.onPause),onResume:Qs(t.onResume),onSwipeStart:Ot(t.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ot(t.onSwipeMove,p=>{const{x:f,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(f,"px")),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(m,"px"))}),onSwipeCancel:Ot(t.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ot(t.onSwipeEnd,p=>{const{x:f,y:m}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(f,"px")),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(m,"px")),c(!1)})})))}),[Oke,$ke]=$W(kk,{onClose(){}}),FW=v.forwardRef((t,e)=>{const $=t,{__scopeToast:n,type:r="foreground",duration:s,open:a,onClose:i,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:p,onSwipeMove:f,onSwipeCancel:m,onSwipeEnd:b}=$,C=Ne($,["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onPause","onResume","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"]),g=wk(kk,n),[w,x]=v.useState(null),S=tr(e,M=>x(M)),E=v.useRef(null),N=v.useRef(null),_=s||g.duration,P=v.useRef(0),I=v.useRef(_),T=v.useRef(0),{onToastAdd:L,onToastRemove:A}=g,z=Qs(()=>{var M;(w==null?void 0:w.contains(document.activeElement))&&((M=g.viewport)===null||M===void 0||M.focus()),i()}),Y=v.useCallback(M=>{!M||M===1/0||(window.clearTimeout(T.current),P.current=new Date().getTime(),T.current=window.setTimeout(z,M))},[z]);v.useEffect(()=>{const M=g.viewport;if(M){const W=()=>{Y(I.current),d==null||d()},V=()=>{const U=new Date().getTime()-P.current;I.current=I.current-U,window.clearTimeout(T.current),c==null||c()};return M.addEventListener(fj,V),M.addEventListener(hj,W),()=>{M.removeEventListener(fj,V),M.removeEventListener(hj,W)}}},[g.viewport,_,c,d,Y]),v.useEffect(()=>{a&&!g.isClosePausedRef.current&&Y(_)},[a,_,g.isClosePausedRef,Y]),v.useEffect(()=>(L(),()=>A()),[L,A]);const O=v.useMemo(()=>w?WW(w):null,[w]);return g.viewport?v.createElement(v.Fragment,null,O&&v.createElement(zke,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},O),v.createElement(Oke,{scope:n,onClose:z},ra.createPortal(v.createElement(W7.ItemSlot,{scope:n},v.createElement(zue,{asChild:!0,onEscapeKeyDown:Ot(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||z(),g.isFocusedToastEscapeKeyDownRef.current=!1})},v.createElement(_n.li,at({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":g.swipeDirection},C,{ref:S,style:R({userSelect:"none",touchAction:"none"},t.style),onKeyDown:Ot(t.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Ot(t.onPointerDown,M=>{M.button===0&&(E.current={x:M.clientX,y:M.clientY})}),onPointerMove:Ot(t.onPointerMove,M=>{if(!E.current)return;const W=M.clientX-E.current.x,V=M.clientY-E.current.y,U=!!N.current,J=["left","right"].includes(g.swipeDirection),H=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,F=J?H(0,W):0,q=J?0:H(0,V),X=M.pointerType==="touch"?10:2,te={x:F,y:q},ee={originalEvent:M,delta:te};U?(N.current=te,ub(Ike,f,ee,{discrete:!1})):zI(te,g.swipeDirection,X)?(N.current=te,ub(Dke,p,ee,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(W)>X||Math.abs(V)>X)&&(E.current=null)}),onPointerUp:Ot(t.onPointerUp,M=>{const W=N.current,V=M.target;if(V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),N.current=null,E.current=null,W){const U=M.currentTarget,J={originalEvent:M,delta:W};zI(W,g.swipeDirection,g.swipeThreshold)?ub(Lke,b,J,{discrete:!0}):ub(Ake,m,J,{discrete:!0}),U.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})))),g.viewport))):null});FW.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e="Invalid prop `type` supplied to `".concat(kk,"`. Expected `foreground | background`.");return new Error(e)}return null}};const zke=t=>{const d=t,{__scopeToast:e,children:n}=d,r=Ne(d,["__scopeToast","children"]),s=wk(kk,e),[a,i]=v.useState(!1),[l,c]=v.useState(!1);return Wke(()=>i(!0)),v.useEffect(()=>{const p=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(p)},[]),l?null:v.createElement(du,{asChild:!0},v.createElement(P5,r,a&&v.createElement(v.Fragment,null,s.label," ",n)))},Fke=v.forwardRef((t,e)=>{const s=t,{__scopeToast:n}=s,r=Ne(s,["__scopeToast"]);return v.createElement(_n.div,at({},r,{ref:e}))}),Hke=v.forwardRef((t,e)=>{const s=t,{__scopeToast:n}=s,r=Ne(s,["__scopeToast"]);return v.createElement(_n.div,at({},r,{ref:e}))}),Bke="ToastAction",HW=v.forwardRef((t,e)=>{const s=t,{altText:n}=s,r=Ne(s,["altText"]);return n?v.createElement(UW,{altText:n,asChild:!0},v.createElement(BW,at({},r,{ref:e}))):null});HW.propTypes={altText(t){return t.altText?null:new Error("Missing prop `altText` expected on `".concat(Bke,"`"))}};const Uke="ToastClose",BW=v.forwardRef((t,e)=>{const a=t,{__scopeToast:n}=a,r=Ne(a,["__scopeToast"]),s=$ke(Uke,n);return v.createElement(UW,{asChild:!0},v.createElement(_n.button,at({type:"button"},r,{ref:e,onClick:Ot(t.onClick,s.onClose)})))}),UW=v.forwardRef((t,e)=>{const a=t,{__scopeToast:n,altText:r}=a,s=Ne(a,["__scopeToast","altText"]);return v.createElement(_n.div,at({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},s,{ref:e}))});function WW(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),Vke(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",a=r.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const i=r.dataset.radixToastAnnounceAlt;i&&e.push(i)}else e.push(...WW(r))}}),e}function ub(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,a=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?I8(s,a):s.dispatchEvent(a)}const zI=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),a=r>s;return e==="left"||e==="right"?a&&r>n:!a&&s>n};function Wke(t=()=>{}){const e=Qs(t);Zo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function Vke(t){return t.nodeType===t.ELEMENT_NODE}function qke(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function s4(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}const Kke=zW,VW=Pke,qW=Rke,KW=Fke,GW=Hke,YW=HW,ZW=BW,Gke=Kke,XW=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("fixed top-14 right-4 z-[100000] flex max-h-screen w-full px-3 py-2 flex-col max-w-[420px]",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(VW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});XW.displayName=VW.displayName;const Yke=tf("data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border px-5 py-4 shadow-md transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-10 data-[state=open]:slide-in-from-right-2/3 data-[state=closed]:slide-out-to-right-full",{variants:{variant:{default:"bg-background dark:bg-gray-900 border",success:"bg-green-50 dark:bg-green-950 bg-green-100 dark:bg-green-900",destructive:"group destructive border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),QW=v.forwardRef((t,e)=>{var c;const n=Te(11);let r,s,a;n[0]!==t?(c=t,{className:s,variant:r}=c,a=Ne(c,["className","variant"]),n[0]=t,n[1]=r,n[2]=s,n[3]=a):(r=n[1],s=n[2],a=n[3]);let i;n[4]!==r||n[5]!==s?(i=qt(Yke({variant:r}),s),n[4]=r,n[5]=s,n[6]=i):i=n[6];let l;return n[7]!==e||n[8]!==i||n[9]!==a?(l=o.jsx(qW,R({ref:e,className:i},a)),n[7]=e,n[8]=i,n[9]=a,n[10]=l):l=n[10],l});QW.displayName=qW.displayName;const Zke=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-destructive/30 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(YW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});Zke.displayName=YW.displayName;const JW=v.forwardRef((t,e)=>{var c;const n=Te(10);let r,s;n[0]!==t?(c=t,{className:r}=c,s=Ne(c,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),n[3]=r,n[4]=a):a=n[4];let i;n[5]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(In,{className:"h-5 w-5"}),n[5]=i):i=n[5];let l;return n[6]!==e||n[7]!==a||n[8]!==s?(l=o.jsx(ZW,ae(R({ref:e,className:a,"toast-close":""},s),{children:i})),n[6]=e,n[7]=a,n[8]=s,n[9]=l):l=n[9],l});JW.displayName=ZW.displayName;const eV=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("text-base font-semibold",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(KW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});eV.displayName=KW.displayName;const tV=v.forwardRef((t,e)=>{var l;const n=Te(9);let r,s;n[0]!==t?(l=t,{className:r}=l,s=Ne(l,["className"]),n[0]=t,n[1]=r,n[2]=s):(r=n[1],s=n[2]);let a;n[3]!==r?(a=qt("text-base",r),n[3]=r,n[4]=a):a=n[4];let i;return n[5]!==e||n[6]!==a||n[7]!==s?(i=o.jsx(GW,R({ref:e,className:a},s)),n[5]=e,n[6]=a,n[7]=s,n[8]=i):i=n[8],i});tV.displayName=GW.displayName;function Xke(){const t=Te(29),{toasts:e,dismiss:n}=bk(),[r,s]=v.useState(null);let a,i;t[0]!==e?(a=()=>{e.length>0?s(e[0]):s(null)},i=[e],t[0]=e,t[1]=a,t[2]=i):(a=t[1],i=t[2]),v.useEffect(a,i);let l;t[3]!==r?(l=r||{},t[3]=r,t[4]=l):l=t[4];let c,d,p,f,m;if(t[5]!==l){const _=l,{id:P,title:I,description:T,className:L,action:A}=_,z=Ne(_,["id","title","description","className","action"]);c=P,p=I,f=T,d=L,m=z,t[5]=l,t[6]=c,t[7]=d,t[8]=p,t[9]=f,t[10]=m}else c=t[6],d=t[7],p=t[8],f=t[9],m=t[10];const b="".concat(d," ").concat(!c&&"hidden");let C;t[11]!==p?(C=p&&o.jsx(eV,{children:p}),t[11]=p,t[12]=C):C=t[12];let g;t[13]!==f?(g=f&&o.jsx(tV,{children:f}),t[13]=f,t[14]=g):g=t[14];let w;t[15]!==C||t[16]!==g?(w=o.jsxs("div",{className:"grid gap-1",children:[C,g]}),t[15]=C,t[16]=g,t[17]=w):w=t[17];let x;t[18]!==n||t[19]!==c?(x=o.jsx(JW,{onClick:()=>{n(c)}}),t[18]=n,t[19]=c,t[20]=x):x=t[20];let S;t[21]!==m||t[22]!==b||t[23]!==w||t[24]!==x?(S=o.jsxs(QW,ae(R({},m),{className:b,children:[w,x]})),t[21]=m,t[22]=b,t[23]=w,t[24]=x,t[25]=S):S=t[25];let E;t[26]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(XW,{className:"!max-w-[450px]"}),t[26]=E):E=t[26];let N;return t[27]!==S?(N=o.jsxs(Gke,{duration:12e3,children:[S,E]}),t[27]=S,t[28]=N):N=t[28],N}var nV=A5(),a4=function(){},Ck=v.forwardRef(function(t,e){var n=v.useRef(null),r=v.useState({onScrollCapture:a4,onWheelCapture:a4,onTouchMoveCapture:a4}),s=r[0],a=r[1],i=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,p=t.enabled,f=t.shards,m=t.sideCar,b=t.noIsolation,C=t.inert,g=t.allowPinchZoom,w=t.as,x=w===void 0?"div":w,S=yx(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=m,N=I5([n,e]),_=br(br({},S),s);return v.createElement(v.Fragment,null,p&&v.createElement(E,{sideCar:nV,removeScrollBar:d,shards:f,noIsolation:b,inert:C,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),i?v.cloneElement(v.Children.only(l),br(br({},_),{ref:N})):v.createElement(x,br({},_,{className:c,ref:N}),l))});Ck.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ck.classNames={fullWidth:ih,zeroRight:oh};var pj=!1;if(typeof window!="undefined")try{var db=Object.defineProperty({},"passive",{get:function(){return pj=!0,!0}});window.addEventListener("test",db,db),window.removeEventListener("test",db,db)}catch(t){pj=!1}var Dp=pj?{passive:!1}:!1,Qke=function(t){return t.tagName==="TEXTAREA"},rV=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qke(t)&&n[e]==="visible")},Jke=function(t){return rV(t,"overflowY")},e3e=function(t){return rV(t,"overflowX")},FI=function(t,e){var n=e;do{typeof ShadowRoot!="undefined"&&n instanceof ShadowRoot&&(n=n.host);var r=sV(t,n);if(r){var s=aV(t,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},t3e=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},n3e=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},sV=function(t,e){return t==="v"?Jke(e):e3e(e)},aV=function(t,e){return t==="v"?t3e(e):n3e(e)},r3e=function(t,e){return t==="h"&&e==="rtl"?-1:1},s3e=function(t,e,n,r,s){var a=r3e(t,window.getComputedStyle(e).direction),i=a*r,l=n.target,c=e.contains(l),d=!1,p=i>0,f=0,m=0;do{var b=aV(t,l),C=b[0],g=b[1],w=b[2],x=g-w-a*C;(C||x)&&sV(t,l)&&(f+=x,m+=C),l=l.parentNode}while(!c&&l!==document.body||c&&(e.contains(l)||e===l));return(p&&(s&&f===0||!s&&i>f)||!p&&(s&&m===0||!s&&-i>m))&&(d=!0),d},fb=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},HI=function(t){return[t.deltaX,t.deltaY]},BI=function(t){return t&&"current"in t?t.current:t},a3e=function(t,e){return t[0]===e[0]&&t[1]===e[1]},o3e=function(t){return"\n .block-interactivity-".concat(t," {pointer-events: none;}\n .allow-interactivity-").concat(t," {pointer-events: all;}\n")},i3e=0,Ip=[];function l3e(t){var e=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),s=v.useState(i3e++)[0],a=v.useState(function(){return bx()})[0],i=v.useRef(t);v.useEffect(function(){i.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var g=D5([t.lockRef.current],(t.shards||[]).map(BI),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var l=v.useCallback(function(g,w){if("touches"in g&&g.touches.length===2)return!i.current.allowPinchZoom;var x=fb(g),S=n.current,E="deltaX"in g?g.deltaX:S[0]-x[0],N="deltaY"in g?g.deltaY:S[1]-x[1],_,P=g.target,I=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in g&&I==="h"&&P.type==="range")return!1;var T=FI(I,P);if(!T)return!0;if(T?_=I:(_=I==="v"?"h":"v",T=FI(I,P)),!T)return!1;if(!r.current&&"changedTouches"in g&&(E||N)&&(r.current=_),!_)return!0;var L=r.current||_;return s3e(L,w,g,L==="h"?E:N,!0)},[]),c=v.useCallback(function(g){var w=g;if(!(!Ip.length||Ip[Ip.length-1]!==a)){var x="deltaY"in w?HI(w):fb(w),S=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&a3e(_.delta,x)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(BI).filter(Boolean).filter(function(_){return _.contains(w.target)}),N=E.length>0?l(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),d=v.useCallback(function(g,w,x,S){var E={name:g,delta:w,target:x,should:S};e.current.push(E),setTimeout(function(){e.current=e.current.filter(function(N){return N!==E})},1)},[]),p=v.useCallback(function(g){n.current=fb(g),r.current=void 0},[]),f=v.useCallback(function(g){d(g.type,HI(g),g.target,l(g,t.lockRef.current))},[]),m=v.useCallback(function(g){d(g.type,fb(g),g.target,l(g,t.lockRef.current))},[]);v.useEffect(function(){return Ip.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Dp),document.addEventListener("touchmove",c,Dp),document.addEventListener("touchstart",p,Dp),function(){Ip=Ip.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Dp),document.removeEventListener("touchmove",c,Dp),document.removeEventListener("touchstart",p,Dp)}},[]);var b=t.removeScrollBar,C=t.inert;return v.createElement(v.Fragment,null,C?v.createElement(a,{styles:o3e(s)}):null,b?v.createElement(O5,{gapMode:"margin"}):null)}const c3e=L5(nV,l3e);var oV=v.forwardRef(function(t,e){return v.createElement(Ck,br({},t,{ref:e,sideCar:c3e}))});oV.classNames=Ck.classNames;const u3e=oV,iV="Dialog",[lV,D7e]=_a(iV),[d3e,G0]=lV(iV),f3e=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:a,modal:i=!0}=t,l=v.useRef(null),c=v.useRef(null),[d=!1,p]=ca({prop:r,defaultProp:s,onChange:a});return v.createElement(d3e,{scope:e,triggerRef:l,contentRef:c,contentId:Xs(),titleId:Xs(),descriptionId:Xs(),open:d,onOpenChange:p,onOpenToggle:v.useCallback(()=>p(f=>!f),[p]),modal:i},n)},h3e="DialogPortal",[I7e,cV]=lV(h3e,{forceMount:void 0}),mj="DialogOverlay",p3e=v.forwardRef((t,e)=>{const n=cV(mj,t.__scopeDialog),i=t,{forceMount:r=n.forceMount}=i,s=Ne(i,["forceMount"]),a=G0(mj,t.__scopeDialog);return a.modal?v.createElement(No,{present:r||a.open},v.createElement(m3e,at({},s,{ref:e}))):null}),m3e=v.forwardRef((t,e)=>{const a=t,{__scopeDialog:n}=a,r=Ne(a,["__scopeDialog"]),s=G0(mj,n);return v.createElement(u3e,{as:Fd,allowPinchZoom:!0,shards:[s.contentRef]},v.createElement(_n.div,at({"data-state":dV(s.open)},r,{ref:e,style:R({pointerEvents:"auto"},r.style)})))}),Lv="DialogContent",g3e=v.forwardRef((t,e)=>{const n=cV(Lv,t.__scopeDialog),i=t,{forceMount:r=n.forceMount}=i,s=Ne(i,["forceMount"]),a=G0(Lv,t.__scopeDialog);return v.createElement(No,{present:r||a.open},a.modal?v.createElement(v3e,at({},s,{ref:e})):v.createElement(x3e,at({},s,{ref:e})))}),v3e=v.forwardRef((t,e)=>{const n=G0(Lv,t.__scopeDialog),r=v.useRef(null),s=tr(e,n.contentRef,r);return v.useEffect(()=>{const a=r.current;if(a)return M5(a)},[]),v.createElement(uV,at({},t,{ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ot(t.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Ot(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Ot(t.onFocusOutside,a=>a.preventDefault())}))}),x3e=v.forwardRef((t,e)=>{const n=G0(Lv,t.__scopeDialog),r=v.useRef(!1),s=v.useRef(!1);return v.createElement(uV,at({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i;if((i=t.onCloseAutoFocus)===null||i===void 0||i.call(t,a),!a.defaultPrevented){var l;r.current||(l=n.triggerRef.current)===null||l===void 0||l.focus(),a.preventDefault()}r.current=!1,s.current=!1},onInteractOutside:a=>{var i,l;(i=t.onInteractOutside)===null||i===void 0||i.call(t,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=a.target;((l=n.triggerRef.current)===null||l===void 0?void 0:l.contains(c))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}}))}),uV=v.forwardRef((t,e)=>{const p=t,{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a}=p,i=Ne(p,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),l=G0(Lv,n),c=v.useRef(null),d=tr(e,c);return S5(),v.createElement(v.Fragment,null,v.createElement(j5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:a},v.createElement(A0,at({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":dV(l.open)},i,{ref:d,onDismiss:()=>l.onOpenChange(!1)}))),!1)});function dV(t){return t?"open":"closed"}const y3e=f3e,b3e=p3e,UI=g3e,fV=()=>{const t=Te(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:window.innerHeight,width:window.innerWidth},t[0]=e):e=t[0];const[n,r]=v.useState(e);let s,a;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{const i=()=>{r({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},a=[],t[1]=s,t[2]=a):(s=t[1],a=t[2]),v.useEffect(s,a),n},Lx=v.createContext({portalRef:void 0,onOutsideClick:()=>{},noFooter:!1,isLargeModal:!0}),w3e=t=>{const e=Te(8),{children:n,isNavVisible:r,outOutsideClick:s}=t,a=r===void 0?!0:r;let i;e[0]!==s?(i=s===void 0?()=>{}:s,e[0]=s,e[1]=i):i=e[1];const l=i;let c;e[2]!==l?(c=()=>{l()},e[2]=l,e[3]=c):c=e[3];const d="bg-slate-900/80 fixed ".concat(a?"top-10":"top-0"," bottom-0 left-0 right-0 z-50 grid place-items-center overflow-y-auto");let p;return e[4]!==c||e[5]!==d||e[6]!==n?(p=o.jsx(b3e,{onClick:c,className:d,children:n}),e[4]=c,e[5]=d,e[6]=n,e[7]=p):p=e[7],p},k3e=t=>{const e=Te(9),{children:n,outOutsideClick:r,isLargeModal:s,canClose:a,noFooter:i,positionTop:l}=t,{height:c}=fV(),d=i?c:c-64;let p;e[0]!==d?(p={maxHeight:d},e[0]=d,e[1]=p):p=e[1];const f=p;let m;return e[2]!==a||e[3]!==s||e[4]!==l||e[5]!==f||e[6]!==n||e[7]!==r?(m=a?o.jsx(UI,{style:f,className:"".concat(s?"-mt-5":"-mt-80"," ").concat(l?"!-mt-[100px]":""," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:n}):o.jsx(UI,{style:f,onPointerDownOutside:b=>{r&&r(),b.preventDefault()},onInteractOutside:b=>{b.preventDefault()},onEscapeKeyDown:b=>{b.preventDefault()},className:"".concat(s?"-mt-5":"-mt-80"," min-w-modal rounded-lg outline-none bg-slate-100 dark:bg-slate-800 animate-in fade-in slide-in-from-top-10 duration-300 top-10"),children:n}),e[2]=a,e[3]=s,e[4]=l,e[5]=f,e[6]=n,e[7]=r,e[8]=m):m=e[8],m},Yn=t=>{const e=Te(26),{open:n,handleClose:r,canClose:s,isNavVisible:a,positionTop:i,noFooter:l,isLargeModal:c,onOutsideClick:d,children:p}=t,f=n===void 0?!0:n,m=s===void 0?!0:s,b=a===void 0?!0:a,C=l===void 0?!1:l,g=c===void 0?!1:c;let w;e[0]!==d?(w=d===void 0?()=>{}:d,e[0]=d,e[1]=w):w=e[1];const x=w,S=v.useRef(null);let E;e[2]!==S||e[3]!==g||e[4]!==x||e[5]!==C?(E={portalRef:S,isLargeModal:g,onOutsideClick:x,noFooter:C},e[2]=S,e[3]=g,e[4]=x,e[5]=C,e[6]=E):E=e[6];let N;e[7]!==m||e[8]!==i||e[9]!==x||e[10]!==p?(N=o.jsx(k3e,{canClose:m,positionTop:i,outOutsideClick:x,isLargeModal:!0,noFooter:!0,children:p}),e[7]=m,e[8]=i,e[9]=x,e[10]=p,e[11]=N):N=e[11];let _;e[12]!==b||e[13]!==x||e[14]!==N?(_=o.jsx(w3e,{isNavVisible:b,outOutsideClick:x,children:N}),e[12]=b,e[13]=x,e[14]=N,e[15]=_):_=e[15];let P;e[16]!==E||e[17]!==_?(P=o.jsx(Lx.Provider,{value:E,children:_}),e[16]=E,e[17]=_,e[18]=P):P=e[18];let I;e[19]!==S||e[20]!==P?(I=o.jsx(du,{ref:S,children:P}),e[19]=S,e[20]=P,e[21]=I):I=e[21];let T;return e[22]!==f||e[23]!==r||e[24]!==I?(T=o.jsx(y3e,{open:f,onOpenChange:r,children:I}),e[22]=f,e[23]=r,e[24]=I,e[25]=T):T=e[25],T};Yn.Body=({children:t,className:e,style:n})=>{const{isLargeModal:r,onOutsideClick:s}=v.useContext(Lx);return o.jsx("div",{style:n,className:Pn("h-[full]",e,{"max-w-2xl":r,"max-w-md":!r}),onClick:a=>{s&&s(),a.stopPropagation()},children:t})};Yn.Content=({children:t,className:e})=>{const{isLargeModal:n,onOutsideClick:r,noFooter:s}=v.useContext(Lx),{height:a}=fV(),i={maxHeight:s?a:a-90-141};return o.jsx("div",{"data-tauri-drag-region":!0,onClick:()=>{r&&r()},style:i,className:Pn("overflow-y-auto px-8 pt-6",{"w-largeModal pb-7":n,"pb-5":!n},e),children:t})};Yn.Header=({handleClose:t=void 0,children:e,className:n="",canClose:r=!0,isCenter:s=!1})=>{const{onOutsideClick:a}=v.useContext(Lx);return o.jsxs("div",{"data-tauri-drag-region":!0,className:"flex w-full items-center border-0 px-8 py-6 pb-2 ".concat(n),onClick:i=>{a&&a(),i.stopPropagation()},children:[o.jsx("div",{className:"flex flex-grow ".concat(s?"justify-center":""),children:e}),o.jsx("div",{className:"self-end",children:t&&r&&o.jsx(je,{variant:"ghost",size:"sm",onClick:t,className:"cursor-pointer border-0 p-1.5",children:o.jsx(In,{size:20})})})]})};Yn.Footer=({children:t,className:e})=>{const{isLargeModal:n,onOutsideClick:r}=v.useContext(Lx);return o.jsx("div",{"data-tauri-drag-region":!0,onClick:s=>{r&&r(),s.stopPropagation()},className:Pn("flex w-full px-7 pb-6 pt-2",{"border-grey-20 border-0 pt-4":n},e),children:t})};function C3e({open:t,onClose:e,showUpdateAppIsLatest:n,showUpdateChecking:r}){var s=sn(1);try{const{t:a}=Gt(),{checkForUpdate:i}=Tt(Cr),l=xl(q0),c=xl(Mx),d=Ix(),p=v.useMemo(()=>Dx(),[Un.value]),f=Mr(1718145195920).format("MMMM, YYYY");return console.log("showUpdateChecking.value in about pastebar",r.value),o.jsx(Yn,{open:t,handleClose:e,positionTop:!0,children:o.jsxs(Yn.Body,{className:"min-w-[400px] relative",children:[o.jsx(je,{variant:"link",type:"button",onClick:e,className:"hover:bg-slate-200 px-2 absolute right-1.5 top-1.5 text-slate-400 dark:text-slate-500 hover:text-slate-600 hover:dark:text-slate-400 hover:bg-transparent dark:hover:bg-transparent",children:o.jsx(In,{className:"w-5 h-5"})}),o.jsx(Yn.Content,{children:o.jsxs(ve,{className:"w-full flex-col gap-1 mt-1",children:[o.jsx(ve,{className:"h-fit w-full items-center",children:o.jsx(RW,{width:80,height:80})}),o.jsx(re,{className:"font-semibold text-2xl",children:l?p?o.jsxs(o.Fragment,{children:[a("PasteBar",{ns:"common"})," ",o.jsx("span",{className:"text-amber-700 dark:text-amber-600 ml-1 opacity-80",children:a("Pro",{ns:"common"})})]}):a("PasteBar Pro",{ns:"common"}):a("PasteBar",{ns:"common"})}),o.jsxs(re,{className:"font-light text-center",children:[a("Version",{ns:"common"}),": ","0.2.2",c&&o.jsx("span",{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md !text-slate-600 text-sm ml-1.5 mb-0 py-0",children:"Beta"})]}),o.jsx(re,{className:"font-light text-center",children:a("Build on {{buildDate}}",{ns:"common",buildDate:f})}),o.jsx("a",{href:"https://".concat(a("www.site",{ns:"common"})),target:"_blank",className:"underline !text-blue-600 dark:!text-blue-400 cursor-pointer",children:a("www.site",{ns:"common"})}),o.jsx(Ln,{h:3}),o.jsxs("div",{className:"flex w-full justify-center items-center gap-x-3",children:[!l&&o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e(),Ga.value=!0,n0.value=!0},className:"hover:bg-blue-600 hover:text-white dark:bg-gray-700/50 bg-gray-200/50 dark:hover:bg-blue-600",children:d?a("Renew License",{ns:"settings"}):a("Upgrade to Pro",{ns:"common"})}),o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{i(!0),n.value=!0},className:"hover:bg-blue-600 hover:text-white dark:bg-gray-700/50 bg-gray-200/50 dark:hover:bg-blue-600",children:n.value?a("No Update Available",{ns:"updater"}):r.value?a("Checking for Update...",{ns:"updater"}):a("Check for Update",{ns:"updater"})})]})]})}),o.jsxs(Yn.Footer,{className:"flex-col items-center !pt-0 !pb-5 relative",children:[o.jsxs(re,{className:"text-sm mb-2 opacity-50 flex justify-center items-center ",children:[a("Stay in touch",{ns:"common"}),o.jsx(P0,{className:"w-[13px] h-[13px] ml-1"})]}),o.jsx(LW,{})]})]})})}finally{s.f()}}function S3e(t){const e=Te(55),{open:n,selectedText:r,onClose:s,onConfirmMenu:a,onConfirmClip:i}=t,{t:l}=Gt(),{themeDark:c}=Tt(bo);let d;e[0]!==c?(d=c(),e[0]=c,e[1]=d):d=e[1];const p=d;let f;e[2]!==l?(f=l("Add to Clips or Menu",{ns:"common"}),e[2]=l,e[3]=f):f=e[3];let m;e[4]!==f?(m=o.jsx("h1",{className:"m-0",children:f}),e[4]=f,e[5]=m):m=e[5];let b;e[6]!==s||e[7]!==m?(b=o.jsx(Yn.Header,{handleClose:s,children:m}),e[6]=s,e[7]=m,e[8]=b):b=e[8];let C;e[9]!==p||e[10]!==r?(C=o.jsx(ne,{className:"bg-slate-200/70 dark:bg-slate-900/60 rounded-md border border-slate-200 dark:border-slate-800/70 px-2 pt-1",children:o.jsx(Ca,{isDark:p,maxHeight:350,isLargeView:!0,isShowMore:!0,isWrapped:!0,language:"text",value:r})}),e[9]=p,e[10]=r,e[11]=C):C=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(Ln,{h:4}),e[12]=g):g=e[12];let w;e[13]!==l?(w=l("You can add the selected text to your clips or menu. Please select the option below.",{ns:"collections"}),e[13]=l,e[14]=w):w=e[14];let x;e[15]!==w?(x=o.jsx(re,{className:"font-light",children:w}),e[15]=w,e[16]=x):x=e[16];let S;e[17]!==C||e[18]!==x?(S=o.jsxs(Yn.Content,{className:"!pt-2",children:[C,g,x]}),e[17]=C,e[18]=x,e[19]=S):S=e[19];let E;e[20]!==i||e[21]!==r?(E=()=>{i(r)},e[20]=i,e[21]=r,e[22]=E):E=e[22];let N;e[23]!==l?(N=l("Add Clip",{ns:"common"}),e[23]=l,e[24]=N):N=e[24];let _;e[25]!==E||e[26]!==N?(_=o.jsx(je,{variant:"light",type:"submit",onClick:E,className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:N}),e[25]=E,e[26]=N,e[27]=_):_=e[27];let P;e[28]!==a||e[29]!==r?(P=()=>{a(r)},e[28]=a,e[29]=r,e[30]=P):P=e[30];let I;e[31]!==l?(I=l("Add Menu",{ns:"common"}),e[31]=l,e[32]=I):I=e[32];let T;e[33]!==P||e[34]!==I?(T=o.jsx(je,{variant:"light",type:"submit",onClick:P,className:"w-full bg-blue-300 hover:bg-blue-500 hover:text-white dark:bg-blue-700 dark:hover:bg-blue-600",children:I}),e[33]=P,e[34]=I,e[35]=T):T=e[35];let L;e[36]!==_||e[37]!==T?(L=o.jsxs("div",{className:"flex w-full justify-center gap-x-3",children:[_,T]}),e[36]=_,e[37]=T,e[38]=L):L=e[38];let A;e[39]!==l?(A=l("Cancel",{ns:"common"}),e[39]=l,e[40]=A):A=e[40];let z;e[41]!==s||e[42]!==A?(z=o.jsx("div",{className:"flex w-full justify-center mt-3",children:o.jsx(je,{variant:"ghost",type:"button",onClick:s,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:A})}),e[41]=s,e[42]=A,e[43]=z):z=e[43];let Y;e[44]!==L||e[45]!==z?(Y=o.jsxs(Yn.Footer,{className:"flex-col !pt-0 !pb-3",children:[L,z]}),e[44]=L,e[45]=z,e[46]=Y):Y=e[46];let O;e[47]!==b||e[48]!==S||e[49]!==Y?(O=o.jsxs(Yn.Body,{children:[b,S,Y]}),e[47]=b,e[48]=S,e[49]=Y,e[50]=O):O=e[50];let $;return e[51]!==n||e[52]!==s||e[53]!==O?($=o.jsx(Yn,{open:n,handleClose:s,children:O}),e[51]=n,e[52]=s,e[53]=O,e[54]=$):$=e[54],$}function j3e({open:t,onClose:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),{themeDark:a}=Tt(bo),i=a(),{deviceId:l}=Tt(bo),c=xl(q0),{id:d}=Un.value||{},p="".concat(c?"https://license.pastebar.app/contact/?pro=true&deviceId=".concat(l,"&licenseId=").concat(d,"&"):"https://license.pastebar.app/contact/?","source=app&locale=").concat(dr.language,"&dark=").concat(i?"true":"false"),f=()=>{Ei(p)};return o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,noFooter:!0,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 flex flex-col items-start p-0 relative",style:{height:"calc(100vh - 180px)"},children:[o.jsx(Yn.Content,{className:"!pt-3 mb-0 w-full !pb-2 grow !max-h-700",children:o.jsx("iframe",{src:p,className:"rounded-md border-0 bg-transparent dark:border-slate-800/70",style:{width:520,height:"calc(100vh - 210px)"}})}),o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{e()},className:"text-slate-300 dark:hover:bg-slate-700 hover:bg-slate-600 absolute top-[-1 px] right-[-63px] w-14",children:o.jsx(In,{size:26})}),o.jsx(ve,{className:"items-center w-full gap-1 absolute bottom-[-50px] left-0",children:s.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"link",type:"button",onClick:()=>{s.value=!1},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:r("Stay here",{ns:"common"})}),o.jsx(je,{variant:"link",type:"button",onClick:()=>{s.value=!1,e()},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:r("Close modal and continue in browser",{ns:"common"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{e()},className:"text-slate-200 dark:hover:bg-slate-700 hover:bg-slate-600 opacity-70 hover:opacity-100 h-10",children:r("Cancel",{ns:"common"})}),o.jsxs(je,{variant:"link",type:"button",onClick:()=>{f(),s.value=!0},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:[r("Open contact form in browser",{ns:"common"}),o.jsx(P0,{size:16,className:"ml-1.5"})]})]})})]})})}finally{n.f()}}function Dw(t,e){var d;const n=Te(9);let r;n[0]!==t||n[1]!==e?(r=localStorage.getItem(t)?JSON.parse((d=localStorage.getItem(t))!=null?d:"{}"):e,n[0]=t,n[1]=e,n[2]=r):r=n[2];const[s,a]=v.useState(r);let i,l;n[3]!==s||n[4]!==t?(i=()=>{s===null?localStorage.removeItem(t):localStorage.setItem(t,JSON.stringify(s))},l=[s,t],n[3]=s,n[4]=t,n[5]=i,n[6]=l):(i=n[5],l=n[6]),v.useEffect(i,l);let c;return n[7]!==s?(c=[s,a],n[7]=s,n[8]=c):c=n[8],c}function WI({open:t,title:e="Unlock Application Screen",isLockScreen:n=!1,showPasscode:r=!0,onConfirmSuccess:s,onClose:a=()=>{}}){var i=sn(1);try{const{t:l}=Gt(),c=it(r),d=it(!1),p=it(!1),f=it(!1),m=it(!1),b=it(""),C=it(!1),g=it(!1),w=it(!1),x=ua(),[,S]=Dw("resetPassCodeNextDelayInSeconds",null),[E,N]=Dw("resetPassCodeGlobalUnsuccessfulTries",0),_=it(0),{isHistoryEnabled:P,setIsHistoryEnabled:I}=Tt(Cr),{screenLockPassCode:T,screenLockPassCodeLength:L,screenLockRecoveryPasswordMasked:A,verifyPassword:z,setScreenLockPassCode:Y,isShowHistoryCaptureOnLockedScreen:O,setScreenLockPassCodeLength:$,verifyStoredPassword:M}=Tt(Cr),W=it(new Array(L).fill(void 0)),V=v.useMemo(()=>f.value,[f.value]),U=J=>{const H=document.querySelector("input[name=field-".concat(J,"]"));H!==null&&H.focus()};return v.useEffect(()=>{if(Br.value)Br.value<1?(w.value=!1,W.value=new Array(L).fill(void 0)):w.value=!0;else return},[Br.value]),v.useEffect(()=>{C.value&&setTimeout(()=>{s()},800)},[C.value]),v.useEffect(()=>{C.value=!1;function J(H){return ge(this,null,function*(){var q;if(g.value)return;const F=W.value.join("");if(yield z(F,H))C.value=!0,Br.value=0,zp.value=0,N(0),S(null),g.value=!1;else{if(zp.value=zp.value+1,zp.value===3){const X=(q=parseInt(E,10))!=null?q:0;N(X+1),Br.value=X>0?iM*X:iM}w.value=!0,C.value=!1,g.value=!1,W.value=new Array(L).fill(void 0),U(0)}})}c.value&&T&&!g.value&&W.value.every(H=>H!==void 0)&&setTimeout(()=>{J(T)},100)},[c.value,W.value,T]),v.useEffect(()=>{U(_.value)},[_.value]),o.jsx(Yn,{open:t,onOutsideClick:()=>{W.value[0]||U(0)},handleClose:a,canClose:!n||!T,isNavVisible:!1,children:o.jsxs(Yn.Body,{className:"bg-emerald-100/20 dark:bg-emerald-800/30",children:[o.jsx(Yn.Header,{handleClose:a,canClose:!n||!T,isCenter:n,children:T?o.jsx("h1",{className:"m-1 opacity-90 ".concat(C.value?"!text-green-600 dark:!text-green-500":w.value?"!text-red-600 dark:!text-red-500":""),children:d.value?l("Forgot passcode ?",{ns:"settings"}):l(e,{ns:"common"})}):o.jsx("h1",{className:"opacity-90",children:l("Passcode is not set",{ns:"settings"})})}),o.jsx(Yn.Content,{className:"!pt-2 justify-center items-center flex flex-col !min-w-[390px]",children:c.value&&!d.value&&T?o.jsxs(o.Fragment,{children:[o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-center my-2 flex-row animate-in fade-in duration-700",children:new Array(L).fill(0).map((J,H)=>o.jsx(ne,{className:"text-lg px-2 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-300 dark:bg-slate-800 text-center",children:C.value?o.jsx(ve,{className:"h-[48px] !w-9 !px-0 !text-[34px] pb-[2px] !border-0 !bg-green-100 dark:!bg-green-900/80",children:o.jsx(en,{size:26,className:"text-green-600 dark:text-green-300"})}):o.jsx(wn,{isPassword:!p.value,name:"field-".concat(H),className:"!w-9 !text-xl",ref:()=>{H===0&&!W.value[0]&&U(0)},disabled:Br.value>0,autoComplete:"off",numbersOnly:!0,onKeyDown:F=>{(F.metaKey||F.altKey)&&F.code==="KeyH"?I(!P):F.key==="Backspace"&&F.currentTarget.value===""?_.value=H>0?H-1:0:F.key==="ArrowLeft"?(F.preventDefault(),_.value=H>0?H-1:0):F.key==="ArrowRight"&&(F.preventDefault(),_.value=H(F.preventDefault(),!1),maxLength:2,value:W.value[H]||"",classNameInput:"h-[48px] text-center !px-0 !text-[34px] pb-[2px] !border-0\n ".concat(W.value[H]&&!w.value?"!bg-green-100 dark:!bg-green-900/80":w.value?"dark:!bg-red-900/90 !bg-red-300/90":"dark:!bg-slate-800"),onChange:F=>{var X,te,ee,G;w.value=!1,((te=(X=F.target)==null?void 0:X.value)==null?void 0:te.length)>=1&&(F.target.value=F.target.value[((G=(ee=F.target)==null?void 0:ee.value)==null?void 0:G.length)-1],_.value=Hle===H?q?parseInt(q):void 0:Z)}})},H))}),o.jsx(Ln,{h:4}),o.jsxs(ve,{className:"font-light ".concat(w.value?"!text-red-600 dark:!text-red-500/90":""),children:[w.value?Br.value>0?o.jsx(re,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:l("Passcode verification is locked.",{ns:"settings"})}):o.jsx(re,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:l("Passcode is not valid",{screenLockPassCodeLength:L,ns:"settings"})}):o.jsx(o.Fragment,{children:C.value?o.jsx(re,{className:"!text-green-600 dark:!text-green-500 font-semibold",children:l("Passcode successfully verified",{ns:"settings"})}):o.jsx(re,{children:o.jsx(us,{i18nKey:"Enter your {{screenLockPassCodeLength}} digits passcode",values:{screenLockPassCodeLength:L},ns:"settings"})})}),!C.value&&Br.value===0&&o.jsx(o.Fragment,{children:p.value?o.jsx(fx,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:J=>{J.preventDefault(),p.value=!1,U(_.value)}}):o.jsx(M0,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:J=>{J.preventDefault(),p.value=!0,U(_.value)}})})]}),Br.value>0&&o.jsx(ne,{className:"!text-amber-500 dark:!text-amber-600",children:o.jsx(us,{i18nKey:"Try after {{resetPassCodeNextDelay}} seconds",values:{resetPassCodeNextDelay:Br.value},ns:"settings"})})]}):d.value&&A?o.jsxs(o.Fragment,{children:[o.jsxs(ve,{className:"mb-3 mt-0 gap-2 items-start justify-start",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,autoFocus:!0,showHidePassword:!0,onKeyDown:J=>{J.key==="Enter"&&!f.value&&b.value.length>=6&&(m.value=!1,f.value=!0,setTimeout(()=>{M("screenLockRecoveryPassword",b.value).then(H=>{H?(d.value=!1,Y(null),$(0),b.value=""):m.value=!0,f.value=!1}).catch(H=>{console.error(H),m.value=!0,f.value=!1})},1e3))},errorElement:b.value.length>=6&&m.value?o.jsxs(o.Fragment,{children:[o.jsx(re,{className:"!text-red-400",children:l("Password is incorrect.",{ns:"settings"})}),o.jsx(re,{className:"mt-1 !text-red-400",children:l("Hint: {{screenLockRecoveryPasswordMasked}}",{ns:"settings",screenLockRecoveryPasswordMasked:A})})]}):"",autoComplete:"off",onPaste:J=>(J.preventDefault(),!1),classNameInput:"h-9",placeholder:l("Enter Password",{ns:"common"}),onChange:J=>{m.value=!1,b.value=J.target.value}}),o.jsx(je,{variant:"secondary",size:"sm",disabled:b.value.length<6,onClick:()=>{!f.value&&b.value.length>=6&&(m.value=!1,f.value=!0,setTimeout(()=>{M("screenLockRecoveryPassword",b.value).then(J=>{J?(d.value=!1,Y(null),$(0),Br.value=0,zp.value=0,N(0),S(null),Wi.value&&(clearInterval(Wi.value),Wi.value=null),b.value=""):m.value=!0,f.value=!1}).catch(J=>{console.error(J),m.value=!0,f.value=!1})},600))},className:"min-w-[80px] mt-0.5 text-sm cursor-pointer whitespace-nowrap bg-blue-500 text-slate-50 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:V?o.jsx(d0,{}):l("Reset",{ns:"common"})})]}),o.jsx(re,{className:"mt-1 text-center",children:l("Enter recovery password to reset passcode.",{ns:"settings"})})]}):o.jsx(re,{className:"mt-1 text-center",children:l("Please set up a Passcode and recovery password in Security Settings to enable Screen Lock and ensure better security.",{ns:"settings"})})}),o.jsxs(Yn.Footer,{className:"flex-row !pt-0 !pb-5 justify-center items-center gap-3 relative",children:[!n&&T?o.jsx(je,{variant:"ghost",size:"sm",onClick:a,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:l("Cancel",{ns:"common"})}):!T&&o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{x("/app-settings/security",{replace:!0}),a()},children:l("Open Security Settings",{ns:"settings"})}),(w.value||d.value)&&A&&T&&o.jsx(o.Fragment,{children:d.value?o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!1,W.value=new Array(L).fill(void 0)},children:l("Back",{ns:"settings"})}):o.jsx(je,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!0,m.value=!1,f.value=!1,b.value=""},children:l("Forgot?",{ns:"settings"})})}),O&&o.jsx(o.Fragment,{children:o.jsxs(ve,{className:"dark:bg-slate-950/90 bg-gray-400/90 absolute bottom-[-100px] rounded-md px-2 py-1 cursor-pointer",onClick:J=>{J.preventDefault(),I(!P)},children:[o.jsxs(ve,{className:"mr-1",children:[o.jsx(re,{className:"mr-1 ".concat(P?"!text-slate-800 dark:!text-slate-400":"!text-gray-500 dark:!text-gray-700"),children:l("Capture History",{ns:"history"})}),o.jsx(Zl,{className:P?"opacity-60":"opacity-30",children:o.jsx(po,{keys:"ALT+H"})})]}),o.jsx(ns,{checked:P,className:P?"opacity-100":"!bg-gray-300 dark:!bg-gray-600 opacity-70"})]})})]})]})})}finally{i.f()}}var V7={};Object.defineProperty(V7,"__esModule",{value:!0});function E3e(t,e){return Math.random()*(e-t)+t}var VI=V7.default=E3e,hV={},q7={},K7={},G7={};(function t(e,n,r,s){var a=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),i=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!e.OffscreenCanvas)return!1;var H=new OffscreenCanvas(1,1),F=H.getContext("2d");F.fillRect(0,0,1,1);var q=H.transferToImageBitmap();try{F.createPattern(q,"no-repeat")}catch(X){return!1}return!0}();function c(){}function d(H){var F=n.exports.Promise,q=F!==void 0?F:e.Promise;return typeof q=="function"?new q(H):(H(c,c),null)}var p=function(H,F){return{transform:function(q){if(H)return q;if(F.has(q))return F.get(q);var X=new OffscreenCanvas(q.width,q.height),te=X.getContext("2d");return te.drawImage(q,0,0),F.set(q,X),X},clear:function(){F.clear()}}}(l,new Map),f=function(){var H=Math.floor(16.666666666666668),F,q,X={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(F=function(ee){var G=Math.random();return X[G]=requestAnimationFrame(function Z(le){te===le||te+H-10)&&!(s=r.next()).done;)a.push(s.value)}catch(l){i={error:l}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},V3e=Vn&&Vn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(q7,"__esModule",{value:!0});var pb=B3e(v),q3e=V3e(K7),K3e=function(t){return t};function G3e(t){var e=t.decorateOptions,n=e===void 0?K3e:e,r=t.Conductor,s=t.autorun,a=t.onInit,i=U3e(t,["decorateOptions","Conductor","autorun","onInit"]),l=W3e((0,pb.useState)(),2),c=l[0],d=l[1],p=(0,pb.useCallback)(function(f){var m=f.confetti;d(function(){return m})},[]);return(0,pb.useEffect)(function(){if(c){var f=new r({confetti:c,decorateOptions:n});return s&&f.run(s),a==null||a({confetti:c,conductor:f}),f.stop}},[c]),pb.default.createElement(q3e.default,gj({onInit:p},i))}q7.default=G3e;var Y7={},Z7={};Object.defineProperty(Z7,"__esModule",{value:!0});var Y3e=function(){function t(e){var n=e.confetti,r=e.decorateOptions,s=this;this.interval=null,this.shoot=function(){return s.tickAnimation()},this.run=function(a){var i=a.speed,l=a.delay,c=l===void 0?0:l,d=a.duration;s.interval||setTimeout(function(){s.shoot(),s.interval=setInterval(s.shoot,1e3/Math.min(i,1e3)),d&&setTimeout(s.pause,d)},c)},this.pause=function(){clearInterval(s.interval),s.interval=null},this.stop=function(){s.pause(),s.confetti.reset()},this.confetti=n,this.decorateOptions=r}return t}();Z7.default=Y3e;var Z3e=Vn&&Vn.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(r[a]=s[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),X3e=Vn&&Vn.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),s,a=[],i;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)a.push(s.value)}catch(l){i={error:l}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Q3e=Vn&&Vn.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,a;r div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=m.head||m.getElementsByTagName("head")[0],g=m.createElement("style");g.id="detectElementResize",g.type="text/css",t!=null&&g.setAttribute("nonce",t),g.styleSheet?g.styleSheet.cssText=b:g.appendChild(m.createTextNode(b)),C.appendChild(g)}};return{addResizeListener:function(m,b){if(c)m.attachEvent("onresize",b);else{if(!m.__resizeTriggers__){const C=m.ownerDocument,g=Ci.getComputedStyle(m);g&&g.position==="static"&&(m.style.position="relative"),d(C),m.__resizeLast__={},m.__resizeListeners__=[],(m.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const w=C.createElement("div");w.className="expand-trigger",w.appendChild(C.createElement("div"));const x=C.createElement("div");x.className="contract-trigger",m.__resizeTriggers__.appendChild(w),m.__resizeTriggers__.appendChild(x),m.appendChild(m.__resizeTriggers__),i(m),m.addEventListener("scroll",l,!0),r&&(m.__resizeTriggers__.__animationListener__=function(E){E.animationName===n&&i(m)},m.__resizeTriggers__.addEventListener(r,m.__resizeTriggers__.__animationListener__))}m.__resizeListeners__.push(b)}},removeResizeListener:function(m,b){if(c)m.detachEvent("onresize",b);else if(m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(b),1),!m.__resizeListeners__.length){m.removeEventListener("scroll",l,!0),m.__resizeTriggers__.__animationListener__&&(m.__resizeTriggers__.removeEventListener(r,m.__resizeTriggers__.__animationListener__),m.__resizeTriggers__.__animationListener__=null);try{m.__resizeTriggers__=!m.removeChild(m.__resizeTriggers__)}catch(C){}}}}}class Lh extends v.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:s}=this.props;if(this._parentNode){var a,i,l,c;const d=window.getComputedStyle(this._parentNode)||{},p=parseFloat((a=d.paddingLeft)!==null&&a!==void 0?a:"0"),f=parseFloat((i=d.paddingRight)!==null&&i!==void 0?i:"0"),m=parseFloat((l=d.paddingTop)!==null&&l!==void 0?l:"0"),b=parseFloat((c=d.paddingBottom)!==null&&c!==void 0?c:"0"),C=this._parentNode.getBoundingClientRect(),g=C.height-m-b,w=C.width-p-f,x=this._parentNode.offsetHeight-m-b,S=this._parentNode.offsetWidth-p-f;(!n&&(this.state.height!==x||this.state.scaledHeight!==g)||!r&&(this.state.width!==S||this.state.scaledWidth!==w))&&(this.setState({height:x,width:S,scaledHeight:g,scaledWidth:w}),typeof s=="function"&&s({height:x,scaledHeight:g,scaledWidth:w,width:S}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver!="undefined"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=oCe(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const S=this.props,{children:e,defaultHeight:n,defaultWidth:r,disableHeight:s=!1,disableWidth:a=!1,nonce:i,onResize:l,style:c={},tagName:d="div"}=S,p=Ne(S,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:f,scaledHeight:m,scaledWidth:b,width:C}=this.state,g={overflow:"visible"},w={};let x=!1;return s||(f===0&&(x=!0),g.height=0,w.height=f,w.scaledHeight=m),a||(C===0&&(x=!0),g.width=0,w.width=C,w.scaledWidth=b),v.createElement(d,R({ref:this._setRef,style:R(R({},g),c)},p),!x&&e(w))}}function ZI({registerLicense:t}){var e=sn(1);try{const n=v.useRef(null),{t:r}=Gt(),{state:s}=wl(),{licenseKey:a,setLicenseKey:i,screenLockPassCode:l}=Tt(Cr),c=xl(q0),d=xl(Mx),p=v.useRef(),{returnRoute:f}=Tt(Ls),m=As(a!=null?a:""),b=As(!1),C=As(!1),g=As(null),w=Un.value,x=({conductor:$})=>{p.current=R({},$)},S=Ix(),E=v.useCallback(()=>{var $;!S&&(($=p==null?void 0:p.current)==null||$.shoot())},[S]),N=$=>ae(R({},$),{drift:VI(.4,.8),startVelocity:VI(15,40),ticks:230}),_=v.useMemo(()=>m.value,[m.value]),P=v.useCallback($=>{if($.length<20){g.value=r("License key is too short.",{ns:"settings"});return}try{const M=yk($);if(!M)return!1;typeof M.id=="string"&&M.id.length>0&&(g.value=null,Un.value=M,m.value!==a&&!Mr().isAfter(Mr(M.expires))&&setTimeout(()=>{E(),setTimeout(()=>{E()},600)},600),i(m.value))}catch(M){return g.value=r("License key is not valid or malformed.",{ns:"settings"}),Un.value=null,console.error("error",M),!1}return!0},[m.value]);v.useEffect(()=>{a&&(m.value=a,P(a))},[a]),v.useEffect(()=>{s!=null&&s.ls&&a!==(s==null?void 0:s.ls)?(m.value=s.ls,P(m.value),yo(r("License key activated successfully.",{ns:"settings"}),{title:r("Activation Success",{ns:"settings"}),type:"info"})):a===(s==null?void 0:s.ls)&&yo(r("License key already activated.",{ns:"settings"}),{title:r("Already Active",{ns:"settings"}),type:"info"})},[s]);const{licenseExpInDays:I,licenseExpiresDate:T,licenseExpiredDaysAgo:L}=v.useMemo(()=>nW(),[Un.value]),{licenseIssuedDate:A,licenseIssuedDaysAgo:z}=v.useMemo(()=>b2e(),[Un.value]),Y=v.useMemo(()=>Dx(),[Un.value]),O=v.useMemo(()=>({name:w==null?void 0:w.name,email:w==null?void 0:w.email,devices:w==null?void 0:w.maxDevices,id:w==null?void 0:w.id}),[w]);return v.useEffect(()=>{(uo.value===Oc.removeLicense&&rl.value===Oc.removeLicense||b.value)&&(i(null),Un.value=null,uo.value=null,rl.value=null,C.value=!1,b.value=!1,m.value="")},[rl.value,uo.value,b.value]),v.useMemo(()=>!0,[b.value,C.value,g.value,Un.value]),o.jsx(Lh,{disableWidth:!0,children:({height:$})=>{var M,W,V,U;return $&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:r("License Settings",{ns:"settings"})}),c?S?o.jsxs(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Renew License",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]}):o.jsxs(je,{size:"sm",onClick:()=>{E(),setTimeout(()=>{E()},600)},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Thank you for using Pro",{ns:"common"}),o.jsx(m6,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 group-hover:animate-pulse group-hover:fill-red-500 group-hover:scale-125 transition-all duration-300"})]}):o.jsxs(je,{size:"sm",onClick:()=>{Ga.value=!0,n0.value=!0},className:"dark:text-green-500 dark:border-green-600 mt-1 text-green-600 border-green-500 dark:bg-green-950 border whitespace-nowrap bg-green-50 hover:bg-green-50/50 dark:hover:bg-green-900/50 h-9 group",children:[r("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:$-85},autoHide:!0,children:[!c&&o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:r("Free License",{ns:"settings"})})}),o.jsx(mV,{})]}),o.jsxs(pr,{children:[o.jsxs(re,{className:"text-sm text-muted-foreground mt-1 mb-3",children:[r("Thank you again for using PasteBar.",{ns:"settings"}),o.jsx(m6,{size:18,className:"text-red-400 dark:text-red-600 ml-1 fill-red-500 hover:animate-pulse hover:fill-red-500 hover:scale-125 transition-all duration-300"})]}),o.jsxs(je,{size:"sm",onClick:()=>{Ga.value=!0,n0.value=!0},className:"dark:text-green-950 mt-1 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:[r("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[c?o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[S?d?o.jsx(ne,{className:"text-red-600",children:r("Pro license has expired",{ns:"settings"})}):o.jsx(ne,{children:Y?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-red-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),o.jsxs(ne,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md text-md mb-0 py-1.5 !my-2 !block",children:[r("Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌",{buildDate:Mr(1718145195920).format("DD MMMM, YYYY"),expiredDate:Mr(T).format("DD MMMM, YYYY"),ns:"settings"}),o.jsxs(ne,{className:"mt-2",children:[r("To downgrade, please visit: ",{ns:"settings"}),o.jsx("span",{className:"underline cursor-pointer",onClick:()=>{Ei("https://www.pastebar.app/releases")},children:"https://www.pastebar.app/releases"})]})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-yellow-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),o.jsx(ne,{className:"text-yellow-600 mt-2",children:r("However, you can continue using the current version with access to all available Pro features.",{ns:"settings"})})]})}):o.jsx(ne,{className:"text-green-600",children:r("Pro license is activated",{ns:"settings"})}),d&&o.jsx(re,{className:"bg-slate-200/90 dark:bg-slate-600/90 dark:!text-slate-300 px-1.5 rounded-md !text-slate-600 text-xs ml-1.5 mb-0 py-0.5",children:"beta"})]}),S?d?o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"Your beta license has expired. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.",values:{name:w==null?void 0:w.name},ns:"settings"})}):o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.",values:{name:w==null?void 0:w.name},ns:"settings"})}):o.jsx(re,{className:"text-sm !block",children:o.jsx(us,{i18nKey:"Thank you {{name}} for using Pro license. Your license grants you access to all available features, priority support, and free updates until the license expires. Please find the complete details below.",values:{name:w==null?void 0:w.name},ns:"settings"})}),d?o.jsxs(re,{className:"bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md !text-slate-600 text-xs mb-0 py-1.5 !my-2 !block",children:[r("You have a Beta License. Usually, this is a temporary license that grants access to all current and new beta features. After this license expires, you will not have access to Pro features, and you will need to use a regular Pro license or renew your Beta license.",{ns:"settings"}),o.jsx("br",{}),o.jsx("b",{children:r("Thank you for testing! 🙌",{ns:"settings"})})]}):o.jsx(Ln,{h:2}),O.name&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Name",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:O.name})]}),O.email&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Email",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:Cse(O.email)})]}),O.devices&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Maximum devices",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:O.devices})]}),O.id&&o.jsxs(re,{className:"text-sm !mt-2 gap-1",children:[r("License Id",{ns:"settings"}),":",o.jsx(BU,{id:1,text:yv(O.id,3),copyText:(M=O.id)!=null?M:""})]}),!!(w!=null&&w.language)&&o.jsxs(re,{className:"text-sm !mt-2 gap-1",children:[r("UI Language",{ns:"settings"}),":"," ",(W=xh.find(J=>J.code===(w==null?void 0:w.language)))==null?void 0:W.name]}),A&&o.jsxs(re,{className:"text-sm !mt-2",children:[r("Issued",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1",children:A}),z&&o.jsx(St,{className:"ml-1.5",variant:"secondary",children:r("{{licenseIssuedDaysAgo}} days ago",{ns:"settings",licenseIssuedDaysAgo:z})})]}),T&&!S&&o.jsxs(re,{className:"text-sm !mt-4",children:[r("License expires",{ns:"settings"}),":",o.jsx("strong",{className:"ml-1 text-green-600",children:T}),o.jsx(St,{className:"ml-1.5 whitespace-nowrap",variant:"pro",children:I===0?r("Tomorrow",{ns:"settings"}):r("in {{licenseExpInDays}} days",{ns:"settings",licenseExpInDays:I})})]}),T&&S&&o.jsxs(re,{className:"text-sm !mt-4",children:[r("License expired",{ns:"settings"}),o.jsx("strong",{className:"ml-1 text-red-600",children:T}),o.jsx(St,{className:"ml-1.5 whitespace-nowrap",variant:"destructive",children:L===0?r("Today",{ns:"settings"}):r("{{licenseExpiredDaysAgo}} days ago",{ns:"settings",licenseExpiredDaysAgo:L})})]}),!!(w!=null&&w.language)&&o.jsx(re,{className:"text-sm text-muted-foreground !mt-3 mb-3",children:r("Please note! Your license has support for a single language: {{language}}. If you require multi-language support, please consider upgrading to a full Pro license.",{ns:"settings",language:(V=xh.find(J=>J.code===(w==null?void 0:w.language)))==null?void 0:V.name})})]}):o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:r("Register a License",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:r('If you have a license key, you can add it here to unlock the Pro version with all available features. Please paste your license below and click "Add License" to upgrade.',{ns:"settings"})})]}),o.jsx(pr,{children:o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col w-full",children:[o.jsx(Co,{className:"text-sm w-full",autoFocus:t,ref:n,label:c?r("License key",{ns:"settings"}):r("Paste your license key below",{ns:"settings"}),isDisabled:c,classNameArea:c?"!border-green-500 dark:!border-green-600 !bg-green-50 dark:!bg-green-950 opacity-80":"",error:(U=g.value)!=null?U:"",rows:3,onChange:J=>{g.value=null,m.value=J.target.value},value:c?yv(_,10,10,100):_,maxRows:3,onPaste:J=>{J.preventDefault(),g.value=null,m.value=J.clipboardData.getData("text"),P(m.value)},enableEmoji:!1}),c?o.jsxs(ve,{className:"gap-4",children:[S&&o.jsxs(je,{size:"sm",className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-9",children:[r("Renew License",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]}),o.jsx(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{if(l){Of.value=!0,uo.value=Oc.removeLicense,$f.value=r("license remove",{ns:"settings"});return}C.value?b.value=!0:(C.value=!0,setTimeout(()=>{C.value=!1},3e3))},className:"".concat(C.value?"bg-red-500 text-red-100 hover:bg-red-500/80 dark:bg-red-400 hover:dark:bg-red-400/80 dark:text-slate-800":"bg-red-200 text-red-600 hover:bg-red-300/80 dark:bg-red-900 hover:dark:bg-red-900/80 dark:text-slate-200"," h-9"),children:C.value?r("Confirm Remove",{ns:"common"}):S?r("Remove",{ns:"common"}):r("Remove License",{ns:"common"})})]}):o.jsx(je,{variant:"secondary",size:"sm",disabled:_.length<10,onClick:()=>{P(m.value)},className:"bg-blue-400 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 h-9",children:r("Add License",{ns:"common"})})]})})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:f,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:r("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]}),w&&ra.createPortal(o.jsx(aCe,{onInit:x,decorateOptions:N,style:{position:"fixed",zIndex:9999,pointerEvents:"none",top:40,width:"100%",height:"100%"}}),document.body)]})}})}finally{e.f()}}function mV(){var t=sn(1);try{const{t:e}=Gt(),n=xl(Mx),r=v.useMemo(()=>Dx(),[Un.value]);return o.jsxs(o.Fragment,{children:[r&&!n&&o.jsx(ne,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 text-sm rounded-md mb-0 py-1.5 !my-2 !block",children:e("Your Pro license and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.",{buildDate:Mr(1718145195920).format("DD MMMM, YYYY"),ns:"settings"})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 mb-3",children:e("Thank you for using PasteBar! We hope you're enjoying the free version. If you'd like to unlock all features and support our development, please consider upgrading to Pro version.",{ns:"settings"})}),o.jsxs(ve,{className:"flex flex-col items-start justify-start",children:[o.jsx(re,{className:"text-sm text-muted-foreground my-2 mb-1 !block",children:o.jsx(us,{i18nKey:"By upgrading to PasteBar Pro, you'll gain access to:",ns:"settings"})}),o.jsxs(ne,{className:"list-image-none",children:[o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Collections",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Create an unlimited number of collections to organize your clips and menus.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Unlimited Tabs per Collection",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Add an unlimited number of tabs within each collection for better organization and easy access.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Auto Lock the Screen on User Inactivity",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Enhance security by automatically locking the application screen after a set period of user inactivity.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Require Screen Unlock at Application Start",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Protect your data by requiring screen unlock authentication whenever the application starts.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Run Terminal or Shell Commands",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Execute Web Requests",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Send HTTP requests to web APIs or services and copy the response data to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Web Scraping and Parsing",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.",{ns:"settings"})})]}),o.jsxs(ne,{children:[o.jsxs(ve,{className:"justify-start items-center",children:[o.jsx(en,{size:18,className:"text-green-600 dark:text-green-500"}),o.jsx(re,{className:"text-sm text-muted-foreground font-semibold mt-1 ml-1 !text-green-600 dark:!text-green-500",children:e("Priority support",{ns:"settings"})})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-1 ml-6",children:e("Get priority email support from us to resolve any issues or questions you may have about PasteBar.",{ns:"settings"})})]})]})]})]})}finally{t.f()}}var iCe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function lCe({open:t,onClose:e,showProPayments:n}){var r=sn(1);try{const{t:s}=Gt(),a=ua(),i=Ix(),l=it(!1),c=it(!1),d=it(!1),{themeDark:p}=Tt(bo),f=p(),{deviceId:m}=Tt(bo),b="".concat(iCe.VITE_LICENSE_SERVER_URL,"/pro?deviceId=").concat(m,"&locale=").concat(dr.language,"&dark=").concat(f?"true":"false"),C=()=>{Ei(b)};return v.useEffect(()=>(window.addEventListener("message",g=>{const{data:w}=g;if(!c.value&&w.id==="pro_license_confirmed"&&w.licenseHash){try{const x=yk(w.licenseHash);if(!x)throw new Error("Invalid license key");if(!(typeof x.id=="string"&&x.id.length>0))throw new Error("Invalid license key")}catch(x){return yo(s("License key validation failed. Please try another key.",{ns:"common"}),{title:s("Activation Error",{ns:"common"}),type:"error"}),!1}n.value=!1,Ga.value=!1,c.value=!0,a("/app-settings/license/register",{replace:!0,state:{ls:w.licenseHash}})}}),()=>{window.removeEventListener("message",()=>{})}),[]),o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,noFooter:n.value,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 flex flex-col items-start p-0 relative",style:{height:"calc(100vh - 180px)"},children:[!n.value&&o.jsxs(Yn.Header,{handleClose:e,children:[o.jsx("h1",{className:"mt-0.5",children:s("Unlock Pro features",{ns:"common"})}),o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e(),a("/app-settings/license/register",{replace:!0})},className:"hover:bg-green-300 dark:hover:bg-green-900 h-6 py-4 ml-auto",children:i?s("Renew License",{ns:"settings"}):s("Register License",{ns:"common"})})]}),n.value?o.jsx(o.Fragment,{children:o.jsx(Yn.Content,{className:"!pt-3 mb-0 w-full !pb-2 grow !max-h-700",children:o.jsx("iframe",{src:b,className:"rounded-md border-0 bg-transparent dark:border-slate-800/70",style:{width:520,height:"calc(100vh - 210px)"}})})}):o.jsx(Yn.Content,{className:"!pt-2 w-full !pb-2 grow",children:o.jsx(or,{style:{height:"auto",width:520,maxHeight:"calc(100vh - 330px)"},autoHide:!1,children:o.jsx(mV,{})})}),n.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{n.value=!1,l.value=!1},className:"text-slate-300 dark:hover:bg-slate-700 hover:bg-slate-600 absolute top-[-1 px] right-[-63px] w-14",children:o.jsx(In,{size:26})}),o.jsx(ve,{className:"items-center w-full gap-1 absolute bottom-[-50px] left-0",children:d.value?o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"link",type:"button",onClick:()=>{d.value=!1},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:s("Stay here",{ns:"common"})}),o.jsx(je,{variant:"link",type:"button",onClick:()=>{d.value=!1,n.value=!1,e()},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:s("Close modal and continue in browser",{ns:"common"})})]}):o.jsxs(o.Fragment,{children:[o.jsx(je,{variant:"ghost",type:"button",onClick:()=>{l.value?(n.value=!1,l.value=!1):(l.value=!0,setTimeout(()=>{l.value=!1},3e3))},className:"text-slate-200 dark:hover:bg-slate-700 hover:bg-slate-600 ".concat(l.value?"text-red-400 dark:text-red-500 hover:text-red-500 dark:hover:text-red-400":"opacity-70 hover:opacity-100"," h-10"),children:l.value?s("Are you sure?",{ns:"common"}):s("Cancel",{ns:"common"})}),o.jsxs(je,{variant:"link",type:"button",onClick:()=>{C(),d.value=!0},className:"h-10 text-slate-300 opacity-80 hover:opacity-100",children:[s("Open payment in browser",{ns:"common"}),o.jsx(P0,{size:16,className:"ml-1.5"})]})]})})]}):o.jsx(Yn.Footer,{className:"flex !pt-0 !pb-3 justify-start relative",children:o.jsxs(ve,{className:"flex w-full justify-center gap-3",children:[o.jsx(je,{variant:"ghost",type:"button",onClick:e,className:"hover:bg-slate-200 dark:hover:bg-slate-900 opacity-70 hover:opacity-100 h-10",children:s("Not Now",{ns:"common"})}),o.jsxs(je,{size:"sm",onClick:()=>{n.value=!0},className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:[i?s("Renew License",{ns:"settings"}):s("Upgrade to Pro",{ns:"common"}),o.jsx(cm,{size:16,className:"ml-1.5"})]})]})})]})})}finally{r.f()}}const XI="/assets/pastebar-accessibility-settings-monterey-CdsSxQWR.gif",QI="/assets/pastebar-accessibility-settings-ventura-B5xWaNbv.gif";function cCe({open:t,onClose:e}){var n=sn(1);try{const{t:r}=Gt(),s=it(!1),a=it(!1),i=it(null),l=it(14);return v.useEffect(()=>{OX().then(c=>{c==="darwin"&&$X().then(p=>{l.value=parseInt(p)});const d=setInterval(()=>ge(this,null,function*(){a.value=yield On("check_osx_accessibility_preferences"),a.value&&(i.value=!0,clearInterval(d))}),1e3);return()=>clearInterval(d)})},[]),v.useEffect(()=>{i.value!==null&&i.value&&setTimeout(()=>{e()},2e3)},[i.value]),o.jsx(Yn,{open:t,handleClose:e,isLargeModal:!0,children:o.jsxs(Yn.Body,{className:"dark:bg-green-950/30 bg-green-50/30 relative",children:[o.jsx(Yn.Header,{handleClose:e,children:o.jsx("h1",{className:"font-semibold text-center w-full",children:r("Enable PasteBar in Accessibility Settings",{ns:"common"})})}),i.value!==!0?o.jsxs(Yn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[o.jsx(re,{children:r("Please add PasteBar to the list of apps in",{ns:"common"})}),o.jsx(St,{className:"!flex w-fit text-[16px] px-6 my-2 text-center cursor-pointer ".concat(i.value===!1?"hover:bg-red-600 dark:hover:bg-red-700 bg-red-600 dark:bg-red-700":"hover:bg-green-600 dark:hover:bg-green-700"),variant:"slate",onClick:()=>{s.value=!0,i.value=null,On("open_osx_accessibility_preferences")},children:l.value>=13?r("System Settings -> Privacy & Security -> Accessibility",{ns:"common"}):r("System Preferences -> Security & Privacy -> Accessibility",{ns:"common"})}),l.value?o.jsx("img",{src:l.value>=13?QI:XI,draggable:!1,decoding:"async",className:"animate-in fade-in max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"}):o.jsx(ne,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),i.value===!1?o.jsx(re,{className:"text-sm w-[90%]",color:"danger",children:r("Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.",{ns:"common"})}):o.jsx(re,{className:"text-sm w-[90%]",children:r("This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}):o.jsxs(Yn.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[o.jsx(re,{children:r("PasteBar was successfuly added to Accessibility settings",{ns:"common"})}),o.jsx(St,{className:"!flex w-fit text-md px-10",variant:"pro",children:r("Success!",{ns:"common"})}),l.value?o.jsxs(ve,{className:"relative",children:[o.jsx(en,{size:"182",className:"text-green-500 z-100 dark:bg-green-50/20 bg-green-300/20 rounded-full p-4 absolute animate-in fade-in duration-1000 dark:text-green-500"}),o.jsx("img",{src:l.value>=13?QI:XI,draggable:!1,decoding:"async",className:"opacity-30 max-w-full max-h-[380px] rounded-xl shadow-sm border border-slate-100 dark:border-slate-700"})]}):o.jsx(ne,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),o.jsx(re,{className:"text-sm w-[80%]",children:r("PasteBar application now can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}),o.jsx(Yn.Footer,{className:"flex-col !pt-0 !pb-5",children:i.value?o.jsx("div",{className:"flex w-full justify-center mt-3 gap-3",children:o.jsx(je,{variant:"ghost",type:"button",onClick:()=>ge(this,null,function*(){e()}),className:"h-10 ".concat(s.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:r("Close",{ns:"common"})})}):o.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[o.jsx(je,{size:"sm",autoFocus:!0,onClick:()=>{s.value=!0,i.value=null,On("open_osx_accessibility_preferences")},className:"dark:text-green-950 text-white bg-green-500 dark:bg-green-600 hover:bg-green-600 dark:hover:bg-green-700 h-10",children:r("Open Accessibility",{ns:"common"})}),o.jsx(je,{variant:"ghost",type:"button",onClick:()=>ge(this,null,function*(){a.value=yield On("check_osx_accessibility_preferences"),i.value=null,a.value?i.value=!0:i.value=!1,s.value=!1}),className:"h-10 ".concat(s.value?"dark:text-green-950 text-white bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700":"hover:bg-slate-200 dark:hover:bg-slate-900"),children:r("Done",{ns:"common"})})]})}),!i.value&&o.jsx(ve,{className:"justify-center items-center bottom-[-45px] absolute w-full",children:o.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{e()},className:"hover:bg-slate-500 text-slate-400 hover:text-slate-200 dark:text-slate-400 dark:hover:bg-slate-700 h-6 py-4",children:r("Later",{ns:"common"})})})]})})}finally{n.f()}}const uCe="_visible_1g3i7_1",dCe="_arrow_1g3i7_7",l4={visible:uCe,arrow:dCe,"empty-data":"_empty-data_1g3i7_20","shared-container":"_shared-container_1g3i7_28"},fCe=.75,hCe=5,pCe=10,mCe=10,gCe=!0,vCe=!0,xCe=!0,yCe=!1,gV="boarding-popover-item",bCe="boarding-btn-group",vV="boarding-popover-tip",wCe="boarding-popover-title",kCe="boarding-popover-description",CCe="boarding-popover-footer",SCe="boarding-popover-footer-hidden",jCe="boarding-close-btn",ECe="boarding-next-btn",NCe="boarding-prev-btn",_Ce="boarding-navigation-btns",JI="boarding-coutout-svg",eA="boarding-highlighted-element",TCe=!0,c4="boarding-no-pointer-events",u4="boarding-strict-pointer-events",e1="boarding-disabled",tA="boarding-close-only-btn",PCe=(t="")=>{const e=document.createElement("div");e.id=gV,e.className=t+" bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-lg shadow-lg p-4 w-72 dark:text-gray-200 text-gray-800";const n=document.createElement("div");n.classList.add(vV);const r=document.createElement("div");r.classList.add(wCe),r.innerText="Popover Title";const s=document.createElement("div");s.classList.add(kCe),s.innerText="Popover Description";const a=document.createElement("div");a.classList.add(CCe);const i=document.createElement("button");i.classList.add(jCe),i.innerText="Close";const l=document.createElement("span");l.classList.add(bCe,_Ce);const c=document.createElement("span");c.classList.add("boarding-footer-counter");const d=document.createElement("button");d.classList.add(NCe),d.innerText="← Previous";const p=document.createElement("button");return p.classList.add(ECe),p.innerText="Next →",l.appendChild(d),l.appendChild(p),a.appendChild(i),a.appendChild(c),a.appendChild(l),e.appendChild(n),e.appendChild(r),e.appendChild(s),e.appendChild(a),{popoverWrapper:e,popoverTip:n,popoverTitle:r,popoverDescription:s,popoverFooter:a,popoverPrevBtn:d,popoverNextBtn:p,popoverCloseBtn:i,popoverFooterCounter:c,popoverFooterBtnGroup:l}};function Ap(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}function xV(t,e,n){const r=(a,i)=>{const l=a.target;t.contains(l)&&((!n||n(l))&&a.preventDefault(),a.stopPropagation(),a.stopImmediatePropagation(),i==null||i(a))};document.addEventListener("pointerdown",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("pointerup",r,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("click",a=>{r(a,e)},!0)}function MCe(t){(!t||!("nodeType"in t&&t.nodeType===1&&typeof t.nodeName=="string"))&&console.error("Html Element expected")}function jf(t,e){return typeof e=="undefined"?t:e}function Bo(t){t||console.error("Variable was expected to not be falsy, but isntead was: ".concat(t))}function DCe(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function yV(t,e){!t||DCe(t)||t.scrollIntoView(e)}class ICe{constructor({options:e,highlightDomElement:n,popover:r}){kt(this,"options");kt(this,"highlightDomElement");kt(this,"popover");kt(this,"lastKnownDomRect");this.highlightDomElement=n,this.options=e,this.popover=r}isSame(e){return!e||!e.highlightDomElement?!1:e.highlightDomElement===this.highlightDomElement}getElement(){return this.highlightDomElement}getPopover(){return this.popover}getStrictClickHandling(){return this.options.strictClickHandling}onDeselected(){var e,n,r;(e=this.popover)==null||e.hide(),this.getElement().classList.remove(eA),(r=(n=this.options).onDeselected)==null||r.call(n,this)}onBeforeHighlighted(){var e,n;(n=(e=this.options).onBeforeHighlighted)==null||n.call(e,this)}onHighlighted(){var e,n,r;this.options.scrollIntoViewOptions!=="no-scroll"&&yV(this.highlightDomElement,this.options.scrollIntoViewOptions),(e=this.popover)==null||e.show(this),this.getElement().classList.add(eA),(r=(n=this.options).onHighlighted)==null||r.call(n,this)}getCustomPadding(){return this.options.padding}getCustomRadius(){return this.options.radius}onNext(){var e,n;(n=(e=this.options).onNext)==null||n.call(e,this)}onPrevious(){var e,n;(n=(e=this.options).onPrevious)==null||n.call(e,this)}getDOMRect(){const e=this.getElement(),n=e.getBoundingClientRect();return e.isConnected?(this.lastKnownDomRect=n,n):this.lastKnownDomRect||n}}function bV({hightlightBox:t,padding:e=0,radius:n=0}){const r=window.innerWidth,s=window.innerHeight,a=t.width+e*2,i=t.height+e*2,l=Math.min(n,a/2,i/2),c=Math.floor(Math.max(l,0)),d=t.x-e+c,p=t.y-e,f=a-c*2,m=i-c*2;return"M".concat(r,",0L0,0L0,").concat(s,"L").concat(r,",").concat(s,"L").concat(r,",0Z\n M").concat(d,",").concat(p," h").concat(f," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",").concat(c," v").concat(m," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",").concat(c," h-").concat(f," a").concat(c,",").concat(c," 0 0 1 -").concat(c,",-").concat(c," v-").concat(m," a").concat(c,",").concat(c," 0 0 1 ").concat(c,",-").concat(c," z")}function ACe({hightlightBox:t,padding:e=0,fillColor:n="rgb(0,0,0)",opacity:r=1,animated:s=!0}){const a=window.innerWidth,i=window.innerHeight,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add(JI),s&&l.classList.add("".concat(JI,"-animated")),l.setAttribute("viewBox","0 0 ".concat(a," ").concat(i)),l.setAttribute("xmlSpace","preserve"),l.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),l.setAttribute("version","1.1"),l.setAttribute("preserveAspectRatio","xMinYMin slice"),l.style.fillRule="evenodd",l.style.clipRule="evenodd",l.style.strokeLinejoin="round",l.style.strokeMiterlimit="2",l.style.zIndex="10000";const c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",bV({hightlightBox:t,padding:e})),c.style.fill=n,c.style.opacity="".concat(r),c.style.pointerEvents="auto",c.style.cursor="default",l.appendChild(c),l}let LCe=class{constructor(e){kt(this,"options");kt(this,"cutoutSVGElement");kt(this,"currentTransitionInProgress");kt(this,"activeSvgCutoutDefinition");kt(this,"highlightElemRect");kt(this,"currentHighlightedElement");kt(this,"previouslyHighlightedElement");this.options=R({opacity:fCe},e)}highlight(e){e.isSame(this.currentHighlightedElement)||(e.onBeforeHighlighted(),this.currentHighlightedElement&&!this.currentHighlightedElement.isSame(this.previouslyHighlightedElement)&&this.currentHighlightedElement.onDeselected(),this.startElementTracking(this.currentHighlightedElement||e,e),this.previouslyHighlightedElement=this.currentHighlightedElement,this.currentHighlightedElement=e,e.onHighlighted())}clear(e=!1,n){var r,s,a;this.currentHighlightedElement&&((s=(r=this.options).onReset)==null||s.call(r,this.currentHighlightedElement,n)),(a=this.currentHighlightedElement)==null||a.onDeselected(),this.currentHighlightedElement=void 0,this.previouslyHighlightedElement=void 0,this.cancelElementTracking(),this.options.animate&&!e?this.unmountCutoutElement():this.unmountCutoutElement()}startElementTracking(e,n){const s=Date.now(),a=()=>{const i=Date.now()-s;this.currentTransitionInProgress===a&&(this.options.animate&&i<400?this.transitionCutoutToPosition(i,400,e,n):this.trackElementOnScreen(),this.refreshSvgAndPopover(),window.requestAnimationFrame(a))};this.currentTransitionInProgress=a,window.requestAnimationFrame(a)}transitionCutoutToPosition(e,n,r,s){const a=this.activeSvgCutoutDefinition?ae(R({},this.activeSvgCutoutDefinition),{hightlightBox:R({},this.activeSvgCutoutDefinition.hightlightBox)}):{hightlightBox:r.getDOMRect(),padding:r.getCustomPadding(),radius:r.getCustomRadius()},i=s.getDOMRect(),l=jf(this.options.padding,s.getCustomPadding()),c=jf(this.options.radius,s.getCustomRadius()),d=jf(this.options.padding,a.padding),p=jf(this.options.radius,a.radius),f=Ap(e,a.hightlightBox.x,i.x-a.hightlightBox.x,n),m=Ap(e,a.hightlightBox.y,i.y-a.hightlightBox.y,n),b=Ap(e,a.hightlightBox.width,i.width-a.hightlightBox.width,n),C=Ap(e,a.hightlightBox.height,i.height-a.hightlightBox.height,n),g=Ap(e,d,l-d,n),w=Ap(e,p,c-p,n),x={hightlightBox:{x:f,y:m,width:b,height:C},padding:g,radius:w};this.activeSvgCutoutDefinition=x,this.updateCutoutPosition(x)}cancelElementTracking(){this.currentTransitionInProgress=void 0,this.activeSvgCutoutDefinition=void 0,this.highlightElemRect=void 0}trackElementOnScreen(){if(this.currentHighlightedElement){const e=this.currentHighlightedElement.getDOMRect();if(JSON.stringify(e)!==JSON.stringify(this.highlightElemRect)){const n={hightlightBox:{x:e.x,y:e.y,width:e.width,height:e.height},padding:jf(this.options.padding,this.currentHighlightedElement.getCustomPadding()),radius:jf(this.options.radius,this.currentHighlightedElement.getCustomRadius())};this.updateCutoutPosition(n),this.activeSvgCutoutDefinition=n}this.highlightElemRect=e}}refreshSvgAndPopover(){var r;Bo(this.cutoutSVGElement),Bo(this.currentHighlightedElement);const e=window.innerWidth,n=window.innerHeight;this.cutoutSVGElement.setAttribute("viewBox","0 0 ".concat(e," ").concat(n)),(r=this.currentHighlightedElement.getPopover())==null||r.refresh()}getOverlayElement(){return this.cutoutSVGElement}mountCutoutElement(e){if(this.cutoutSVGElement){console.error("Already mounted SVG");return}const n=ACe(e);this.cutoutSVGElement=n,document.body.appendChild(n),xV(this.cutoutSVGElement,r=>{r.target.tagName==="path"&&this.options.onOverlayClick()})}unmountCutoutElement(){this.cutoutSVGElement&&(document.body.removeChild(this.cutoutSVGElement),this.cutoutSVGElement=void 0)}updateCutoutPosition(e){const n={hightlightBox:e.hightlightBox,padding:e.padding,opacity:this.options.opacity,radius:e.radius,animated:this.options.animate};if(!this.cutoutSVGElement)this.mountCutoutElement(n);else{const r=this.cutoutSVGElement.firstElementChild;(r==null?void 0:r.tagName)==="path"?r.setAttribute("d",bV(n)):console.error("No existing path found on SVG but we want one :(")}}};const nA=["top","bottom","left","right"];class RCe{constructor(e,n,r,s){kt(this,"highlightElement");kt(this,"popover");kt(this,"padding");kt(this,"finalOffset");this.highlightElement=e,this.popover=n,this.padding=r,this.finalOffset=r+s}setBestPosition(e,n){var a;const r=this.findOptimalPosition(e,n),s=(a=this.popover.getPopoverElements())==null?void 0:a.popoverWrapper;Bo(s),s.style.left=typeof r.left=="number"?"".concat(r.left,"px"):"auto",s.style.right=typeof r.right=="number"?"".concat(r.right,"px"):"auto",s.style.top=typeof r.top=="number"?"".concat(r.top,"px"):"auto",s.style.bottom=typeof r.bottom=="number"?"".concat(r.bottom,"px"):"auto"}getHighlightElemRect(){return this.highlightElement.getDOMRect()}getPopoverDimensions(){const e=this.popover.getPopoverElements(),n=e==null?void 0:e.popoverWrapper.getBoundingClientRect(),r=e==null?void 0:e.popoverTip.getBoundingClientRect();return Bo(n),Bo(r),{width:n.width+this.finalOffset,height:n.height+this.finalOffset,tipSize:r.width}}checkIfSideOptimal(e){const n=this.getPopoverDimensions(),r=this.getHighlightElemRect();switch(e){case"top":const s=r.top-n.height;return{side:"top",value:s,isOptimal:s>=0};case"bottom":const a=window.innerHeight-(r.bottom+n.height);return{side:"bottom",value:a,isOptimal:a>=0};case"left":const i=r.left-n.width;return{side:"left",value:i,isOptimal:i>=0};case"right":const l=window.innerWidth-(r.right+n.width);return{side:"right",value:l,isOptimal:l>=0}}}findOptimalSide(e=0){const n=nA[e],r=this.checkIfSideOptimal(n);return r.isOptimal?r:e===nA.length-1?"none":this.findOptimalSide(e+1)}normalizeAlignment(e,n,r,s,a,i){switch(e){case"start":return Math.max(Math.min(r-this.padding,s-n-i),i);case"end":return Math.max(Math.min(r-n+a+this.padding,s-n-i),i);case"center":const l=r-n/2+a/2;return Math.min(Math.max(i,l),s-i-n)}}findOptimalPosition(e,n){let r;if(n?(r=this.checkIfSideOptimal(n),r.isOptimal||(r=this.findOptimalSide())):r=this.findOptimalSide(),r==="none"){const s=this.getPopoverDimensions();return this.clearPopoverTipPosition(),{left:window.innerWidth/2-(s.width-this.finalOffset)/2,bottom:10}}else{const s=this.getPopoverDimensions(),a=this.getHighlightElemRect(),i={},l=s.width-this.finalOffset,c=s.height-this.finalOffset;switch(r.side){case"top":i.top=Math.min(r.value,window.innerHeight-c-s.tipSize),i.left=this.normalizeAlignment(e,l,a.left,window.innerWidth,a.width,s.tipSize),this.setPopoverTipPosition(e,r.side,a.left,a.width);break;case"bottom":i.bottom=Math.min(r.value,window.innerHeight-c-s.tipSize),i.left=this.normalizeAlignment(e,l,a.left,window.innerWidth,a.width,s.tipSize),this.setPopoverTipPosition(e,r.side,a.left,a.width);break;case"left":i.left=Math.min(r.value,window.innerWidth-l-s.tipSize),i.top=this.normalizeAlignment(e,c,a.top,window.innerHeight,a.height,s.tipSize),this.setPopoverTipPosition(e,r.side,a.top,a.height);break;case"right":i.right=Math.min(r.value,window.innerWidth-l-s.tipSize),i.top=this.normalizeAlignment(e,c,a.top,window.innerHeight,a.height,s.tipSize),this.setPopoverTipPosition(e,r.side,a.top,a.height);break}return i}}clearPopoverTipPosition(){var n;const e=(n=this.popover.getPopoverElements())==null?void 0:n.popoverTip;Bo(e),e.className=vV+" "}setPopoverTipPosition(e,n,r,s){var p,f;const a=(p=this.popover.getPopoverElements())==null?void 0:p.popoverWrapper,i=(f=this.popover.getPopoverElements())==null?void 0:f.popoverTip;Bo(a),Bo(i);let l=n,c=e;const d=a.getBoundingClientRect();switch(n){case"top":r+s<=0?(l="right",c="end"):r+s-d.width<=0&&(c="start"),r>=window.innerWidth?(l="left",c="end"):r+d.width>=window.innerWidth&&(c="end");break;case"bottom":r+s<=0?(l="right",c="start"):r+s-d.width<=0&&(c="start"),r>=window.innerWidth?(l="left",c="start"):r+d.width>=window.innerWidth&&(c="end");break;case"left":r+s<=0?(l="bottom",c="end"):r+s-d.height<=0&&(c="start"),r>=window.innerHeight?(l="top",c="end"):r+d.height>=window.innerHeight&&(c="end");break;case"right":r+s<=0?(l="bottom",c="start"):r+s-d.height<=0&&(c="start"),r>=window.innerHeight?(l="top",c="start"):r+d.height>=window.innerHeight&&(c="end");break}this.clearPopoverTipPosition(),i.classList.add("boarding-tipside-".concat(l),"boarding-tipalign-".concat(c))}}class OCe{constructor(b){kt(this,"options");kt(this,"popover");kt(this,"highlightElement");var C=b,{showButtons:e=!0,disableButtons:n=[],offset:r=mCe,meta:s={},alignment:a="start",closeBtnText:i="Close",doneBtnText:l="Done",okBtnText:c="Ok",startBtnText:d="Next →",nextBtnText:p="Next →",prevBtnText:f="← Previous"}=C,m=Ne(C,["showButtons","disableButtons","offset","meta","alignment","closeBtnText","doneBtnText","okBtnText","startBtnText","nextBtnText","prevBtnText"]);this.options=R({showButtons:e,disableButtons:n,meta:s,offset:r,alignment:a,closeBtnText:i,doneBtnText:l,startBtnText:d,nextBtnText:p,prevBtnText:f,okBtnText:c},m)}hide(){var e;this.popover&&((e=this.popover.popoverWrapper.parentElement)==null||e.removeChild(this.popover.popoverWrapper))}show(e){this.highlightElement=e,this.attachNode(),Bo(this.popover),Bo(this.highlightElement),this.setInitialState(),this.popover.popoverTitle.innerHTML=this.options.title||"",this.popover.popoverDescription.innerHTML=this.options.description||"",this.renderFooter(),this.setPosition(),this.options.scrollIntoViewOptions!=="no-scroll"&&yV(this.popover.popoverWrapper,this.options.scrollIntoViewOptions)}refresh(){this.highlightElement&&this.setPosition()}getPopoverElements(){return this.popover}getShowButtons(){return this.options.showButtons}getDisabledButtons(){return this.options.disableButtons}setInitialState(){Bo(this.popover),this.popover.popoverWrapper.style.left="0",this.popover.popoverWrapper.style.top="0",this.popover.popoverWrapper.style.bottom="",this.popover.popoverWrapper.style.right=""}setPosition(){Bo(this.highlightElement);const e=this.highlightElement.getCustomPadding();new RCe(this.highlightElement,this,jf(this.options.padding,e),this.options.offset).setBestPosition(this.options.alignment,this.options.prefferedSide)}attachNode(){var f,m,b;this.popover&&((f=this.popover.popoverWrapper.parentElement)==null||f.removeChild(this.popover.popoverWrapper));const e=PCe(this.options.className),{popoverWrapper:n,popoverTip:r,popoverTitle:s,popoverDescription:a,popoverFooter:i,popoverPrevBtn:l,popoverNextBtn:c,popoverFooterCounter:d,popoverCloseBtn:p}=e;this.options.animate&&n.classList.add("".concat(gV,"-animated")),(b=(m=this.options).onPopoverRender)==null||b.call(m,e),document.body.appendChild(n),xV(n,C=>{const g=C.target;c.contains(g)&&this.options.onNextClick(),l.contains(g)&&this.options.onPreviousClick(),p.contains(g)&&this.options.onCloseClick()},C=>!a.contains(C)),this.popover={popoverWrapper:n,popoverTip:r,popoverTitle:s,popoverDescription:a,popoverFooter:i,popoverFooterCounter:d,popoverPrevBtn:l,popoverNextBtn:c,popoverCloseBtn:p}}renderFooter(){var r,s,a;Bo(this.popover),this.popover.popoverPrevBtn.innerHTML=this.options.prevBtnText;const e=this.options.closeBtnText;typeof e=="string"&&e!=="x"?this.popover.popoverCloseBtn.innerHTML=e:this.popover.popoverCloseBtn.innerHTML='';const n=this.options.totalCount&&this.options.totalCount!==1;if(!this.options.showButtons){this.popover.popoverFooter.classList.add(SCe),this.popover.popoverFooter.style.display="none";return}n?(this.popover.popoverNextBtn.style.display="inline-block",this.popover.popoverPrevBtn.style.display="inline-block",this.popover.popoverCloseBtn.classList.remove(tA)):(this.popover.popoverNextBtn.style.display="none",this.popover.popoverPrevBtn.style.display="none",this.popover.popoverCloseBtn.classList.add(tA)),Array.isArray(this.options.showButtons)&&(this.options.showButtons.includes("next")||(this.popover.popoverNextBtn.style.display="none"),this.options.showButtons.includes("previous")||(this.popover.popoverPrevBtn.style.display="none"),this.options.showButtons.includes("close")||(this.popover.popoverCloseBtn.style.display="none")),this.popover.popoverFooter.style.display="flex",this.options.disableButtons.includes("close")&&this.popover.popoverCloseBtn.classList.add(e1),this.options.disableButtons.includes("next")&&this.popover.popoverNextBtn.classList.add(e1),this.options.isFirst&&this.options.totalCount>1?(this.popover.popoverPrevBtn.classList.add(e1),this.popover.popoverFooterCounter.innerHTML="".concat(this.options.currentIndex+1,"/").concat(this.options.totalCount),this.popover.popoverNextBtn.innerHTML="".concat(this.options.nextBtnText)):this.options.isLast||this.options.currentIndex+1===this.options.totalCount?(this.popover.popoverNextBtn.innerHTML=this.options.doneBtnText,this.popover.popoverNextBtn.style.display="inline-block",this.popover.popoverFooterCounter.innerHTML=""):(this.options.disableButtons.includes("previous")?this.popover.popoverPrevBtn.classList.add(e1):this.popover.popoverPrevBtn.classList.remove(e1),this.popover.popoverFooterCounter.innerHTML="".concat(this.options.currentIndex+1,"/").concat(this.options.totalCount),this.popover.popoverNextBtn.innerHTML="".concat(this.options.nextBtnText)),(r=this.popover)!=null&&r.popoverNextBtn&&((a=(s=this.popover)==null?void 0:s.popoverNextBtn)==null||a.focus())}}class $Ce{constructor(e){kt(this,"isActivated");kt(this,"currentStep");kt(this,"options");kt(this,"steps");kt(this,"lastMovementRequested");kt(this,"currentMovePrevented");kt(this,"overlay");const f=R({},e),{strictClickHandling:n=TCe,animate:r=gCe,padding:s=pCe,radius:a=hCe,scrollIntoViewOptions:i={behavior:"auto",block:"center"},allowClose:l=vCe,keyboardControl:c=xCe,overlayClickNext:d=yCe}=f,p=Ne(f,["strictClickHandling","animate","padding","radius","scrollIntoViewOptions","allowClose","keyboardControl","overlayClickNext"]);this.options=R({strictClickHandling:n,animate:r,padding:s,radius:a,scrollIntoViewOptions:i,allowClose:l,keyboardControl:c,overlayClickNext:d},p),this.isActivated=!1,this.steps=[],this.currentStep=0,this.currentMovePrevented=!1,this.overlay=new LCe({animate:this.options.animate,padding:this.options.padding,radius:this.options.radius,onReset:this.options.onReset,opacity:this.options.opacity,onOverlayClick:()=>{if(this.options.overlayClickNext){this.next();return}if(this.options.allowClose){this.reset(!1,"cancel");return}}}),this.onKeyUp=this.onKeyUp.bind(this),this.onClick=this.onClick.bind(this)}start(e=0){var n,r;if(this.lastMovementRequested={movement:0,index:e},!this.steps||this.steps.length===0){console.log("There are no steps defined to iterate");return}(r=(n=this.steps[e]).prepareElement)==null||r.call(n,"init"),!this.currentMovePrevented&&this.handleStart(e)}highlight(e){var r;this.lastMovementRequested={movement:1,selector:e};const n=typeof e=="object"&&"element"in e?e:{element:e};(r=n.prepareElement)==null||r.call(n,"init"),!this.currentMovePrevented&&this.handleHighlight(e)}preventMove(){if(this.lastMovementRequested!==void 0)if(this.currentMovePrevented!==this.lastMovementRequested)if(this.currentMovePrevented)console.warn("Tried to call Boarding.preventMove, but move has already been prevented, and not been continued or reset yet");else{const e=R({},this.lastMovementRequested);this.currentMovePrevented=e,this.lastMovementRequested=e}else console.warn("Boarding.preventMove was called multiple times for the same move, which has no effect.");else console.warn("Tried to call Boarding.preventMove before, but no move was requested so far.")}continue(){return ge(this,null,function*(){setTimeout(()=>{if(this.currentMovePrevented===this.lastMovementRequested)switch(this.currentMovePrevented=!1,this.lastMovementRequested.movement){case 0:this.handleStart(this.lastMovementRequested.index);break;case 1:this.handleHighlight(this.lastMovementRequested.selector);break;case 2:this.handleNext();break;case 3:this.moveNext();break;case 4:this.handlePrevious();break;case 5:this.movePrevious();break}else console.warn("Boarding.continue was probably called too late, since the last preventMove was called from a different step (or never called at all).")},0)})}clearMovePrevented(){this.currentMovePrevented=!1}next(){var e,n;this.currentMovePrevented||(this.lastMovementRequested={movement:2,index:this.currentStep},(n=(e=this.steps[this.currentStep+1])==null?void 0:e.prepareElement)==null||n.call(e,"next"),!this.currentMovePrevented&&this.handleNext())}previous(){var e,n;this.currentMovePrevented||(this.lastMovementRequested={movement:4,index:this.currentStep},(n=(e=this.steps[this.currentStep-1])==null?void 0:e.prepareElement)==null||n.call(e,"prev"),!this.currentMovePrevented&&this.handlePrevious())}hasNextStep(){return!!this.steps[this.currentStep+1]}hasPreviousStep(){return!!this.steps[this.currentStep-1]}reset(e=!1,n="cancel"){this.currentStep=0,this.isActivated=!1,this.overlay.clear(e,n),this.removeEventListeners(),document.body.classList.remove(c4,u4),this.lastMovementRequested=void 0,this.currentMovePrevented=!1}hasHighlightedElement(){return!!this.overlay.currentHighlightedElement}getHighlightedElement(){return this.overlay.currentHighlightedElement}getLastHighlightedElement(){return this.overlay.previouslyHighlightedElement}defineSteps(e){this.steps=e}getSteps(){return this.steps}handleStart(e){var r,s,a,i;const n=this.prepareElementFromStep(e);if(!n){console.log("The step with starting index ".concat(e," could not resolve to an element.")),this.currentStep=0,(s=(r=this.options).onStart)==null||s.call(r,void 0),this.next();return}this.currentStep=e,(i=(a=this.options).onStart)==null||i.call(a,n),this.activateBoarding(n)}handleHighlight(e){const n=typeof e=="object"&&"element"in e?e:{element:e},r=this.prepareElementFromStep(n);if(!r){console.log("The step with element ".concat(n.element," could not resolve to an element.")),this.next();return}this.activateBoarding(r)}handleNext(){this.lastMovementRequested={movement:3,index:this.currentStep};const e=this.prepareElementFromStep(this.currentStep);e||console.log("The step with index ".concat(this.currentStep," could not resolve to an element.")),e==null||e.onNext(),!this.currentMovePrevented&&this.moveNext()}handlePrevious(){this.lastMovementRequested={movement:5,index:this.currentStep};const e=this.prepareElementFromStep(this.currentStep);e==null||e.onPrevious(),!this.currentMovePrevented&&this.movePrevious()}moveNext(){const e=this.prepareElementFromStep(this.currentStep+1);if(!e){if(!this.hasNextStep()){this.reset(!1,"finish");return}this.currentStep+=1,this.next();return}this.setStrictClickHandlingRules(e),this.overlay.highlight(e),this.currentStep+=1}movePrevious(){const e=this.prepareElementFromStep(this.currentStep-1);if(!e){if(!this.hasPreviousStep()){this.currentStep=0,this.next();return}this.currentStep-=1,this.previous();return}this.setStrictClickHandlingRules(e),this.overlay.highlight(e),this.currentStep-=1}activateBoarding(e){this.attachEventListeners(),this.isActivated=!0,this.setStrictClickHandlingRules(e),this.overlay.highlight(e)}setStrictClickHandlingRules(e){const n=e.getStrictClickHandling(),r=n===void 0?this.options.strictClickHandling:n;document.body.classList.remove(c4,u4),r==="block-all"?document.body.classList.add(c4):r&&document.body.classList.add(u4)}attachEventListeners(){window.addEventListener("keyup",this.onKeyUp,!1),"ontouchstart"in document.documentElement?window.addEventListener("touchstart",this.onClick,!1):window.addEventListener("click",this.onClick,!1)}removeEventListeners(){window.removeEventListener("keyup",this.onKeyUp,!1),window.removeEventListener("click",this.onClick,!1),window.removeEventListener("touchstart",this.onClick,!1)}onClick(e){if(!this.overlay.currentHighlightedElement)return;MCe(e.target);const s=!this.overlay.currentHighlightedElement.getElement().contains(e.target);if(this.options.strictClickHandling&&s){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation();return}}onKeyUp(e){if(e.preventDefault(),e.stopPropagation(),!this.isActivated||!this.options.keyboardControl)return;if(e.key==="Escape"&&this.options.allowClose){this.reset(!1,"cancel");return}const n=this.getHighlightedElement(),r=n==null?void 0:n.getPopover(),s=r==null?void 0:r.getShowButtons(),a=r==null?void 0:r.getDisabledButtons();s&&(e.key==="ArrowRight"||e.key==="ArrowDown"?!(a!=null&&a.includes("next"))&&(s===!0||s.includes("next"))&&this.next():(e.key==="ArrowLeft"||e.key==="ArrowUp")&&!(a!=null&&a.includes("previous"))&&(s===!0||s.includes("previous"))&&this.previous())}prepareElementFromStep(e){var l;const n=typeof e=="number"?this.steps[e]:e,r=typeof e=="number"?e:0,s=typeof e=="number"?this.steps.length:1;if(n===void 0)return null;const a=typeof n.element=="string"?document.querySelector(n.element):n.element;if(!a)return console.warn("Element to highlight ".concat(n.element," not found")),null;let i=null;if((l=n.popover)!=null&&l.title){const c=[this.options.className,n.popover.className].filter(d=>d).join(" ");i=new OCe({padding:this.options.padding,offset:this.options.offset,animate:this.options.animate,meta:n.meta,scrollIntoViewOptions:n.scrollIntoViewOptions===void 0?this.options.scrollIntoViewOptions:n.scrollIntoViewOptions,title:n.popover.title,description:n.popover.description,prefferedSide:n.popover.prefferedSide||this.options.prefferedSide,alignment:n.popover.alignment||this.options.alignment,showButtons:n.popover.showButtons===void 0?this.options.showButtons:n.popover.showButtons,disableButtons:n.popover.disableButtons===void 0?this.options.disableButtons:n.popover.disableButtons,onPopoverRender:n.popover.onPopoverRender===void 0?this.options.onPopoverRender:n.popover.onPopoverRender,doneBtnText:n.popover.doneBtnText||this.options.doneBtnText,closeBtnText:n.popover.closeBtnText||this.options.closeBtnText,nextBtnText:n.popover.nextBtnText||this.options.nextBtnText,startBtnText:n.popover.startBtnText||this.options.startBtnText,prevBtnText:n.popover.prevBtnText||this.options.prevBtnText,className:c,totalCount:s,currentIndex:r,isFirst:r===0,isLast:s===0||r===s-1,onNextClick:()=>{this.next()},onPreviousClick:()=>{this.previous()},onCloseClick:()=>{this.reset(!1,"cancel")}})}return new ICe({highlightDomElement:a,options:{scrollIntoViewOptions:n.scrollIntoViewOptions===void 0?this.options.scrollIntoViewOptions:n.scrollIntoViewOptions,onBeforeHighlighted:n.onBeforeHighlighted||this.options.onBeforeHighlighted,onHighlighted:n.onHighlighted||this.options.onHighlighted,onDeselected:n.onDeselected||this.options.onDeselected,onNext:n.onNext||this.options.onNext,onPrevious:n.onPrevious||this.options.onPrevious,strictClickHandling:n.strictClickHandling,padding:n.padding,radius:n.radius},popover:i})}}const zCe=t=>{const e=Te(29),{steps:n,options:r,onStart:s,onNext:a,onPrevious:i,onEnd:l,onHighlighted:c,onBeforeHighlighted:d,onDeselected:p}=t,f=v.useRef(null);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=L=>ge(void 0,null,function*(){return document.getElementById("boardingCSSLink")?Promise.resolve():new Promise((z,Y)=>{const O=document.createElement("link");O.rel="stylesheet",O.id="boardingCSSLink",O.type="text/css",O.href=L,O.onload=()=>{z()},O.onerror=()=>Y(new Error("Failed to load CSS at ".concat(L))),document.head.appendChild(O)})}),e[0]=m):m=e[0];const b=m;let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{const L=document.getElementById("boardingCSSLink");L&&L.remove()},e[1]=C):C=e[1];const g=C;let w;e[2]!==l?(w=(L,A)=>{g(),l&&l(L,A)},e[2]=l,e[3]=w):w=e[3];const x=w;let S;e[4]!==n||e[5]!==r||e[6]!==s||e[7]!==a||e[8]!==i||e[9]!==x||e[10]!==c||e[11]!==d||e[12]!==p?(S=()=>{var A;if(f.current){f.current.defineSteps(n),f.current.isActivated||(A=f.current)==null||A.start();return}const L=new $Ce(ae(R({},r),{onStart:s,onNext:a,onPrevious:i,onReset:x,onHighlighted:c,onBeforeHighlighted:d,onDeselected:p}));L.defineSteps(n),f.current=L},e[4]=n,e[5]=r,e[6]=s,e[7]=a,e[8]=i,e[9]=x,e[10]=c,e[11]=d,e[12]=p,e[13]=S):S=e[13];let E;e[14]!==n||e[15]!==r||e[16]!==s||e[17]!==a||e[18]!==i||e[19]!==l||e[20]!==c||e[21]!==d||e[22]!==p?(E=[n,r,s,a,i,l,c,d,p],e[14]=n,e[15]=r,e[16]=s,e[17]=a,e[18]=i,e[19]=l,e[20]=c,e[21]=d,e[22]=p,e[23]=E):E=e[23],v.useEffect(S,E);let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{f.current&&ge(void 0,null,function*(){var A;yield b("/assets/styles/boarding.css"),(A=f.current)==null||A.start()})},e[24]=N):N=e[24];const _=N;let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{g(),f.current&&(f.current.reset(!0),f.current=null)},e[25]=P):P=e[25];const I=P;let T;return e[26]!==_||e[27]!==I?(T={startBoarding:_,resetBoarding:I,boarding:f.current},e[26]=_,e[27]=I,e[28]=T):T=e[28],T},FCe=({tourName:t,element:e,onCompleted:n,onSkipped:r})=>{var a,i;var s=sn(1);try{const{t:l}=Gt(),c=ua(),d=wl(),[p,f]=v.useState([]),[m,b]=v.useState(null),[C,g]=v.useState(null),{appToursCompletedList:w,appToursSkippedList:x,setAppToursSkippedList:S}=Tt(Cr),{toast:E}=bk();v.useEffect(()=>{if(m===t&&!(P!=null&&P.isActivated)){N();return}_();const I=l(t,{returnObjects:!0,defaultValue:[],ns:"tours"}),T=e?I.filter(L=>Array.isArray(e)?e.includes(L.element):e===L.element):I;f(T),b(t)},[t]);const{startBoarding:N,resetBoarding:_,boarding:P}=zCe({steps:p,options:{animate:!0,opacity:.65,padding:8,allowClose:!!e,doneBtnText:e?l("Got It",{ns:"help"}):l("Done",{ns:"help"}),closeBtnText:"x",nextBtnText:l("Next",{ns:"help"}),prevBtnText:l("Previous",{ns:"help"}),showButtons:!0,keyboardControl:!0},onEnd:(I,T)=>{const L=rr.value,Y=Object.values(En).sort(($,M)=>oM.indexOf($)-oM.indexOf(M)).filter($=>!w.includes($)&&$!==L)[0];rr.value=null;const O=T==="finish";if(e)id.value=null;else{if(!O){const M=[...x,L];S(M)}const $=E({id:O?"tour-completed":"tour-skipped",title:O?o.jsxs(ve,{className:"text-green-600 dark:text-green-500 justify-start items-center",children:[l("Tour Completed",{ns:"help"}),o.jsx(en,{className:"h-5 w-5 ml-2"})]}):o.jsx(ne,{className:"text-yellow-600 dark:text-yellow-500",children:l("Tour Skipped",{ns:"help"})}),duration:O?12e3:6e3,description:T==="finish"?Y?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-[14px]",children:o.jsx(us,{i18nKey:"Great job! You have completed this tour. Ready to see more? Click Skip if you want to explore on your own. All tours always available from the Help > App Guided Tours menu in the navbar.",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{autoFocus:!0,className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{$==null||$.dismiss(),rr.value=Y},children:l("Start Next Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{$==null||$.dismiss()},children:l("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{_(),r&&L&&r(L),$==null||$.dismiss()},children:l("Skip",{ns:"help"})})]})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"text-[14px]",children:o.jsx(us,{i18nKey:"Congratulations! You have finished all the tours and now ready to make the most of PasteBar's features. Remember, all tours always available from the Help > App Guided Tours menu in the navbar.",ns:"help"})}),o.jsx(ve,{className:"justify-between",children:o.jsx(je,{autoFocus:!0,className:"bg-green-500 dark:bg-green-700 dark:hover:bg-green-800 hover:bg-green-600 px-4 mt-3 text-white !outline-none",onClick:()=>{$==null||$.dismiss()},children:l("Let's get started",{ns:"help"})})})]}):o.jsxs(ne,{className:"text-[15px]",children:[o.jsx(us,{i18nKey:"Feel free to explore the app on your own. If you need help or want to access the tours later, you can always find them in the Help > App Guided Tours menu in the navigation bar.",ns:"help"}),o.jsx(ne,{children:o.jsx(je,{variant:"outline",autoFocus:!0,className:"text-gray-800 px-4 mt-3",onClick:()=>{_(),$==null||$.dismiss()},children:l("Got It",{ns:"help"})})})]})});n&&O&&n(t)}},onHighlighted:I=>{g(I)}});return Vs("esc",()=>{rr.value&&(rr.value=null,id.value=null,_())}),v.useEffect(()=>{if(!(P!=null&&P.isActivated)){if(d.pathname!=="/history"&&(rr.value===En.historyPanelTour||rr.value===En.dashboardClipsTour)){c("/history",{replace:!0});return}if(d.pathname!=="/menu"&&rr.value===En.menuTour){c("/menu",{replace:!0});return}if(!d.pathname.startsWith("/app-settings")&&rr.value===En.settingsTour){c("/app-settings/history",{replace:!0});return}rr.value===En.navBarTour&&N()}},[rr.value]),v.useEffect(()=>{if(!(P!=null&&P.isActivated)){if(d.pathname==="/history"&&(rr.value===En.historyPanelTour||rr.value===En.dashboardClipsTour)){N();return}if(d.pathname==="/menu"&&rr.value===En.menuTour){N();return}if(d.pathname.startsWith("/app-settings")&&rr.value===En.settingsTour){N();return}return rr.value===En.navBarTour&&N(),()=>{_()}}},[]),P!=null&&P.isActivated?o.jsx(je,{className:"boarding-highlighted-element fixed bottom-4 z-[10001] ".concat((i=(a=C==null?void 0:C.popover)==null?void 0:a.options.meta)==null?void 0:i.closeTourCssPosition),onClick:()=>{_()},children:e?o.jsx(o.Fragment,{children:o.jsx(In,{className:"h-5 w-5"})}):o.jsx(o.Fragment,{children:l("Skip Tour",{ns:"help"})})}):null}finally{s.f()}},HCe=(t,e)=>{var r;var n=sn(1);try{const{t:s}=Gt(),a=v.useRef(null),i=v.useRef(null),l=wl(),c=v.useRef(null),{isScrolling:d,isSwapPanels:p}=Tt(Ls),{historyListSimpleBar:f,clipboardHistory:m}=Tt(_i),{appToursCompletedList:b,setAppToursCompletedList:C,setAppToursSkippedList:g,isNotTourCompletedOrSkipped:w,appToursSkippedList:x}=Tt(Cr),[S,E]=Dw("resetPassCodeNextDelayInSeconds",null),[,N]=Dw("resetPassCodeGlobalUnsuccessfulTries",0),[_,P]=D7({}),[I,T,L]=I7({}),A=it(!1),z=it(!1),[Y,O]=v.useState({top:0,left:0}),$=v.useRef(I),M=v.useRef(_),W=ua(),{toast:V}=bk(),U=(F,q=0)=>{$.current||M.current||requestAnimationFrame(()=>{const X=a.current?a.current.getBoundingClientRect():new DOMRect(0),te=F.top-X.top,ee=q>0&&F.left+F.width/2-X.left>q?q/2:F.left+F.width/2-X.left;O({top:te,left:ee}),A.value=!0})};v.useEffect(()=>{var F;return S&&(Br.value=(F=parseInt(S,10))!=null?F:0),()=>{Wi.value&&(clearInterval(Wi.value),Wi.value=null),Br.value>0?(E(Br.value),Br.value=0):E(null)}},[]),v.useEffect(()=>{Br.value>0&&Wi.value==null&&(Wi.value=setInterval(()=>{Br.value>0?(E(Br.value),Br.value-=1):(Wi.value&&clearInterval(Wi.value),N(0),E(null),Br.value=0,zp.value=0,Wi.value=null)},1e3))},[Br.value]),v.useEffect(()=>{var F;_||I||(A.value=!1,(F=window.getSelection())==null||F.removeAllRanges())},[p,m,_,I]),v.useEffect(()=>{$.current=I,M.current=_},[I,_]),v.useEffect(()=>{A.value&&(Nf.value=null,_f.value=null)},[A.value]),Vs("esc",()=>{var F;A.value&&(A.value=!1),(F=window.getSelection())==null||F.removeAllRanges()}),Vs(["meta+a","control+a"],F=>{F.preventDefault()}),Vs(["meta+f","control+f"],F=>{zf.value=F.type==="keydown",setTimeout(()=>{zf.value&&(zf.value=!1)},300)},{enableOnFormTags:!0});const J=Hf(F=>{var X,te;const q=qu();if(q.text.trim().length&&((X=q.selection)!=null&&X.containsNode(a.current,!0)))try{const G=q.selection.getRangeAt(0).getBoundingClientRect();let Z=0;(te=f==null?void 0:f.current)!=null&&te.contains(F.target)&&f.current.getBoundingClientRect().width>0&&(Z=L$.getState().isSwapPanels?0:f.current.getBoundingClientRect().width),U(G,Z)}catch(ee){A.value=!1}else A.value=!1},600,{leading:!1}),H=$$(F=>{var q;if(F.target===(c==null?void 0:c.current)||(q=c.current)!=null&&q.contains(F.target))return!1;A.value&&(A.value=!1)},30,{leading:!0});return v.useEffect(()=>{d&&A.value&&(A.value=!1)},[d]),v.useEffect(()=>{var F,q;return(F=a==null?void 0:a.current)==null||F.addEventListener("mouseup",J),(q=a==null?void 0:a.current)==null||q.addEventListener("click",H),()=>{var X,te;(X=a==null?void 0:a.current)==null||X.removeEventListener("mouseup",J),(te=a==null?void 0:a.current)==null||te.removeEventListener("click",H)}},[a.current]),v.useEffect(()=>{var F;rr.value||(l.pathname==="/menu"?w(En.menuTour)&&(i.current=V({title:"".concat(s("Welcome to Paste Menu",{ns:"help"})),id:"menu-tour",duration:3e3,description:o.jsxs(ne,{children:[s("WelcomeTourDescription",{ns:"help"}),o.jsx(ne,{className:"mt-3",children:o.jsx(us,{i18nKey:"WelcomeTourCanSkip",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{var q;rr.value=En.menuTour,(q=i.current)==null||q.dismiss()},children:s("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{var q;(q=i.current)==null||q.dismiss()},children:s("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{var q;(q=i.current)==null||q.dismiss(),g([...x,En.menuTour])},children:s("Skip Tour",{ns:"help"})})]})]})]})})):l.pathname.startsWith("/app-settings")&&w(En.settingsTour)?i.current=V({title:"".concat(s("Welcome to PasteBar Settings",{ns:"help"})),id:"settings-tour",duration:0,description:o.jsxs(ne,{children:[s("WelcomeTourDescription",{ns:"help"}),o.jsx(ne,{className:"mt-3",children:o.jsx(us,{i18nKey:"WelcomeTourCanSkip",ns:"help"})}),o.jsxs(ve,{className:"justify-between",children:[o.jsx(je,{className:"bg-blue-500 dark:bg-blue-700 dark:hover:bg-blue-800 hover:bg-blue-600 px-4 mt-3 text-white",onClick:()=>{var q;rr.value=En.settingsTour,(q=i.current)==null||q.dismiss()},children:s("Start Tour",{ns:"help"})}),o.jsxs(ve,{className:"gap-3",children:[o.jsx(je,{variant:"light",className:"text-gray-800 px-4 mt-3 dark:bg-slate-800 dark:text-gray-400 hover:dark:text-gray-300",onClick:()=>{var q;(q=i.current)==null||q.dismiss()},children:s("Later",{ns:"help"})}),o.jsx(je,{variant:"outline",className:"text-gray-800 px-4 mt-3",onClick:()=>{var q;(q=i.current)==null||q.dismiss(),g([...x,En.settingsTour])},children:s("Skip Tour",{ns:"help"})})]})]})]})}):(F=i.current)==null||F.dismiss())},[l.pathname]),o.jsxs("div",{ref:ml(e,a),className:"flex flex-col items-center relative",children:[t.children,ra.createPortal(o.jsx(ne,{className:Pn(l4["shared-container"],!A.value&&l4.visible),style:R({zIndex:9999},Y),children:A.value&&o.jsxs("button",{ref:c,onClick:F=>{F.stopPropagation()},children:[o.jsx(ne,{className:"h-8 text-slate-50 flex items-center justify-center gap-1 px-1.5",children:!_&&!I?o.jsxs(o.Fragment,{children:[Tn.value?o.jsx(Ds,{size:18,onClick:()=>{L(qu().text)}}):o.jsx(ba,{size:18,onClick:F=>{!F.altKey&&!F.metaKey?P(qu().text):L(qu().text)}}),o.jsx(st,{isCompact:!0,side:"right",delayDuration:2e3,sideOffset:10,text:s("Add to clip or menu",{ns:"common"}),children:o.jsx(Vr,{size:18,onClick:()=>{z.value=!0,A.value=!1}})})]}):_?o.jsxs(o.Fragment,{children:[o.jsx(en,{size:16}),o.jsx(re,{className:"text-white text-sm pr-1",children:s("Copied",{ns:"common"})})]}):I&&T===null?o.jsxs(o.Fragment,{children:[o.jsx(en,{size:16}),o.jsx(re,{className:"text-white text-sm pr-1",children:s("Pasted",{ns:"common"})})]}):T!==null&&T>0&&o.jsx(o.Fragment,{children:o.jsx(re,{className:"text-white text-sm px-1",children:s("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:T})})})}),o.jsx(ne,{className:l4.arrow})]})}),document.body),z.value&&o.jsx(S3e,{open:((r=qu().text)==null?void 0:r.length)>0,selectedText:qu().text,onClose:()=>{z.value=!1,qu().text?A.value=!0:A.value=!1},onConfirmClip:F=>{W("/history",{replace:!0}),z.value=!1,$a.value&&($a.value=null),setTimeout(()=>{Nf.value=F,xa.value=nl.CLIP},300)},onConfirmMenu:F=>{W("/menu",{replace:!0}),z.value=!1,setTimeout(()=>{_f.value=F,ho.value=!0},300)}}),YS.value&&o.jsx(C3e,{open:!0,showUpdateAppIsLatest:Pf,showUpdateChecking:Al,onClose:()=>{YS.value=!1}}),Of.value&&o.jsx(WI,{title:s("Confirm {{action}}",{ns:"common",action:$f.value}),open:!0,onClose:()=>{Of.value=!1,$f.value=null,rl.value=null,uo.value=null},showPasscode:!0,onConfirmSuccess:()=>{Of.value=!1,$f.value=null,rl.value=uo.value},onConfirmFailed:()=>{Of.value=!1,$f.value=null,rl.value=null,uo.value=null}}),Ga.value&&o.jsx(lCe,{open:!0,showProPayments:n0,onClose:()=>{n0.value||(Ga.value=!1)}}),ZS.value&&o.jsx(j3e,{open:!0,onClose:()=>{ZS.value=!1}}),A2.value&&o.jsx(cCe,{open:!0,onClose:()=>{A2.value=!1}}),Qi.value&&o.jsx(WI,{open:!0,showPasscode:!0,isLockScreen:!0,onClose:()=>{Qi.value=!1},onConfirmSuccess:()=>{Qi.value=!1}}),rr.value&&o.jsx(FCe,{tourName:rr.value,onCompleted:F=>{b.includes(F)||C([...b,F])},onSkipped:F=>{x.includes(F)||g([...x,F])},element:id.value})]})}finally{n.f()}},BCe=()=>{const{isMacOSX:t,isWindows:e}=Tt(Ls);return Ske(),o.jsx("div",{className:"flex flex-col bg-slate-100 dark:bg-slate-700 overflow-hidden rounded-b-md mt-[40px]",children:o.jsxs("div",{"data-tauri-drag-region":!0,className:"".concat(t?"h-calc(100vh-40px) p-[14px]":""," ").concat(e?"h-[calc(100vh-50px)] px-[12px] pt-[10px]":""," "),children:[o.jsx(lve,{children:o.jsx(F7,{})}),o.jsx(Xke,{})]})})},Sk=v.forwardRef(HCe),UCe=Object.freeze(Object.defineProperty({__proto__:null,Component:BCe,MainContainer:Sk},Symbol.toStringTag,{value:"Module"}));function rA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bj(t,e){return bj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},bj(t,e)}function WCe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,bj(t,e)}var sA=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function VCe(t,e){return!!(t===e||sA(t)&&sA(e))}function qCe(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):s.id=requestAnimationFrame(r)}var s={id:requestAnimationFrame(r)};return s}var f4=-1;function iA(t){if(t===void 0&&(t=!1),f4===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),f4=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return f4}var Lp=null;function lA(t){if(t===void 0&&(t=!1),Lp===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),s=r.style;return s.width="100px",s.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Lp="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Lp="negative":Lp="positive-ascending"),document.body.removeChild(e),Lp}return Lp}var YCe=150,ZCe=function(e,n){return e};function wV(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,s=t.getItemSize,a=t.getOffsetForIndexAndAlignment,i=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,c=t.initInstanceProps,d=t.shouldResetStyleCacheOnItemSizeChange,p=t.validateProps;return e=function(f){WCe(m,f);function m(C){var g;return g=f.call(this,C)||this,g._instanceProps=c(g.props,rA(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:rA(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=d4(function(w,x,S,E){return g.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:x,visibleStartIndex:S,visibleStopIndex:E})}),g._callOnScroll=void 0,g._callOnScroll=d4(function(w,x,S){return g.props.onScroll({scrollDirection:w,scrollOffset:x,scrollUpdateWasRequested:S})}),g._getItemStyle=void 0,g._getItemStyle=function(w){var x=g.props,S=x.direction,E=x.itemSize,N=x.layout,_=g._getItemStyleCache(d&&E,d&&N,d&&S),P;if(_.hasOwnProperty(w))P=_[w];else{var I=n(g.props,w,g._instanceProps),T=s(g.props,w,g._instanceProps),L=S==="horizontal"||N==="horizontal",A=S==="rtl",z=L?I:0;_[w]=P={position:"absolute",left:A?void 0:z,right:A?z:void 0,top:L?0:I,height:L?"100%":T,width:L?T:"100%"}}return P},g._getItemStyleCache=void 0,g._getItemStyleCache=d4(function(w,x,S){return{}}),g._onScrollHorizontal=function(w){var x=w.currentTarget,S=x.clientWidth,E=x.scrollLeft,N=x.scrollWidth;g.setState(function(_){if(_.scrollOffset===E)return null;var P=g.props.direction,I=E;if(P==="rtl")switch(lA()){case"negative":I=-E;break;case"positive-descending":I=N-S-E;break}return I=Math.max(0,Math.min(I,N-S)),{isScrolling:!0,scrollDirection:_.scrollOffsetP.clientWidth?iA():0:_=P.scrollHeight>P.clientHeight?iA():0}this.scrollTo(a(this.props,g,w,N,this._instanceProps,_))},b.componentDidMount=function(){var g=this.props,w=g.direction,x=g.initialScrollOffset,S=g.layout;if(typeof x=="number"&&this._outerRef!=null){var E=this._outerRef;w==="horizontal"||S==="horizontal"?E.scrollLeft=x:E.scrollTop=x}this._callPropsCallbacks()},b.componentDidUpdate=function(){var g=this.props,w=g.direction,x=g.layout,S=this.state,E=S.scrollOffset,N=S.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var _=this._outerRef;if(w==="horizontal"||x==="horizontal")if(w==="rtl")switch(lA()){case"negative":_.scrollLeft=-E;break;case"positive-ascending":_.scrollLeft=E;break;default:var P=_.clientWidth,I=_.scrollWidth;_.scrollLeft=I-P-E;break}else _.scrollLeft=E;else _.scrollTop=E}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&oA(this._resetIsScrollingTimeoutId)},b.render=function(){var g=this.props,w=g.children,x=g.className,S=g.direction,E=g.height,N=g.innerRef,_=g.innerElementType,P=g.innerTagName,I=g.itemCount,T=g.itemData,L=g.itemKey,A=L===void 0?ZCe:L,z=g.layout,Y=g.outerElementType,O=g.outerTagName,$=g.style,M=g.useIsScrolling,W=g.width,V=this.state.isScrolling,U=S==="horizontal"||z==="horizontal",J=U?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),F=H[0],q=H[1],X=[];if(I>0)for(var te=F;te<=q;te++)X.push(v.createElement(w,{data:T,key:A(te,T),index:te,isScrolling:M?V:void 0,style:this._getItemStyle(te)}));var ee=r(this.props,this._instanceProps);return v.createElement(Y||O||"div",{className:x,onScroll:J,ref:this._outerRefSetter,style:at({position:"relative",height:E,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},$)},v.createElement(_||P||"div",{children:X,ref:N,style:{height:U?"100%":ee,pointerEvents:V?"none":void 0,width:U?ee:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var w=this._getRangeToRender(),x=w[0],S=w[1],E=w[2],N=w[3];this._callOnItemsRendered(x,S,E,N)}}if(typeof this.props.onScroll=="function"){var _=this.state,P=_.scrollDirection,I=_.scrollOffset,T=_.scrollUpdateWasRequested;this._callOnScroll(P,I,T)}},b._getRangeToRender=function(){var g=this.props,w=g.itemCount,x=g.overscanCount,S=this.state,E=S.isScrolling,N=S.scrollDirection,_=S.scrollOffset;if(w===0)return[0,0,0,0];var P=i(this.props,_,this._instanceProps),I=l(this.props,P,_,this._instanceProps),T=!E||N==="backward"?Math.max(1,x):1,L=!E||N==="forward"?Math.max(1,x):1;return[Math.max(0,P-T),Math.max(0,Math.min(w-1,I+L)),P,I]},m}(v.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var XCe=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},QCe=50,hm=function(e,n,r){var s=e,a=s.itemSize,i=r.itemMetadataMap,l=r.lastMeasuredIndex;if(n>l){var c=0;if(l>=0){var d=i[l];c=d.offset+d.size}for(var p=l+1;p<=n;p++){var f=a(p);i[p]={offset:c,size:f},c+=f}r.lastMeasuredIndex=n}return i[n]},JCe=function(e,n,r){var s=n.itemMetadataMap,a=n.lastMeasuredIndex,i=a>0?s[a].offset:0;return i>=r?kV(e,n,a,0,r):e4e(e,n,Math.max(0,a),r)},kV=function(e,n,r,s,a){for(;s<=r;){var i=s+Math.floor((r-s)/2),l=hm(e,i,n).offset;if(l===a)return i;la&&(r=i-1)}return s>0?s-1:0},e4e=function(e,n,r,s){for(var a=e.itemCount,i=1;r=r&&(i=r-1),i>=0){var c=s[i];l=c.offset+c.size}var d=r-i-1,p=d*a;return l+p},t4e=wV({getItemOffset:function(e,n,r){return hm(e,n,r).offset},getItemSize:function(e,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:cA,getOffsetForIndexAndAlignment:function(e,n,r,s,a,i){var l=e.direction,c=e.height,d=e.layout,p=e.width,f=l==="horizontal"||d==="horizontal",m=f?p:c,b=hm(e,n,a),C=cA(e,a),g=Math.max(0,Math.min(C-m,b.offset)),w=Math.max(0,b.offset-m+b.size+i);switch(r==="smart"&&(s>=w-m&&s<=g+m?r="auto":r="center"),r){case"start":return g;case"end":return w;case"center":return Math.round(w+(g-w)/2);case"auto":default:return s>=w&&s<=g?s:s=x-C&&s<=w+C?r="auto":r="center"),r){case"start":return w;case"end":return x;case"center":{var S=Math.round(x+(w-x)/2);return Sg+Math.floor(C/2)?g:S}case"auto":default:return s>=x&&s<=w?s:sn||s0;){var b=i[0]-1;if(!e(b))i[0]=b;else break}return i}var s4e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a4e=function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,s){var a=this.props,i=a.isItemLoaded,l=a.itemCount,c=a.minimumBatchSize,d=c===void 0?10:c,p=a.threshold,f=p===void 0?15:p,m=r4e({isItemLoaded:i,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-f),stopIndex:Math.min(l-1,s+f)});(this._memoizedUnloadedRanges.length!==m.length||this._memoizedUnloadedRanges.some(function(b,C){return m[C]!==b}))&&(this._memoizedUnloadedRanges=m,this._loadUnloadedRanges(m))}},{key:"_loadUnloadedRanges",value:function(r){for(var s=this,a=this.props.loadMoreItems||this.props.loadMoreRows,i=function(d){var p=r[d],f=r[d+1],m=a(p,f);m!=null&&m.then(function(){if(n4e({lastRenderedStartIndex:s._lastRenderedStartIndex,lastRenderedStopIndex:s._lastRenderedStopIndex,startIndex:p,stopIndex:f})){if(s._listRef==null)return;typeof s._listRef.resetAfterIndex=="function"?s._listRef.resetAfterIndex(p,!0):(typeof s._listRef._getItemStyleCache=="function"&&s._listRef._getItemStyleCache(-1),s._listRef.forceUpdate())}})},l=0;l to ensure consistent ids are generated between the client and server.");let n=h4e(!!t),r="react-aria".concat(e.prefix);return t||"".concat(r,"-").concat(n)}function m4e(t){let e=Vt.useId(),[n]=v.useState(b4e()),r=n?"react-aria":"react-aria".concat(Aw.prefix);return t||"".concat(r,"-").concat(e)}const g4e=typeof Vt.useId=="function"?m4e:p4e;function v4e(){return!1}function x4e(){return!0}function y4e(t){return()=>{}}function b4e(){return typeof Vt.useSyncExternalStore=="function"?Vt.useSyncExternalStore(y4e,v4e,x4e):v.useContext(d4e)}const w4e=typeof document!="undefined"?Vt.useLayoutEffect:()=>{};let k4e=!!(typeof window!="undefined"&&window.document&&window.document.createElement),fA=new Map;function C4e(t){let[e,n]=v.useState(t),r=v.useRef(null),s=g4e(e),a=v.useCallback(i=>{r.current=i},[]);return k4e&&fA.set(s,a),w4e(()=>{let i=s;return()=>{fA.delete(i)}},[s]),v.useEffect(()=>{let i=r.current;i&&(r.current=null,n(i))}),s}const S4e=new Set(["id"]),j4e=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),E4e=new Set(["href","target","rel","download","ping","referrerPolicy"]),N4e=/^(data-.*)$/;function Q7(t,e={}){let{labelable:n,isLink:r,propNames:s}=e,a={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(S4e.has(i)||n&&j4e.has(i)||r&&E4e.has(i)||s!=null&&s.has(i)||N4e.test(i))&&(a[i]=t[i]);return a}let t1=new Map,hA=new Set;function pA(){if(typeof window=="undefined")return;let t=n=>{let r=t1.get(n.target);r||(r=new Set,t1.set(n.target,r),n.target.addEventListener("transitioncancel",e)),r.add(n.propertyName)},e=n=>{let r=t1.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",e),t1.delete(n.target)),t1.size===0)){for(let s of hA)s();hA.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document!="undefined"&&(document.readyState!=="loading"?pA():document.addEventListener("DOMContentLoaded",pA));function _4e(t,e){const n=v.useRef(!0),r=v.useRef(null);v.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),v.useEffect(()=>{n.current?n.current=!1:(!r.current||e.some((s,a)=>!Object.is(s,r[a])))&&t(),r.current=e},e)}const jV=v.createContext({activity:void 0,id:"",isCollapsed:void 0}),T4e=jV.Provider;function J7(){return v.useContext(jV)}let wj=null,Vf=null;function P4e(t,e){switch(t){case"horizontal":return"ew-resize";case"horizontal-max":return e?"e-resize":"w-resize";case"horizontal-min":return e?"w-resize":"e-resize"}}function M4e(){Vf!==null&&(document.head.removeChild(Vf),wj=null,Vf=null)}function D4e(t,e){if(wj===t)return;wj=t;const n=P4e(t,e);Vf===null&&(Vf=document.createElement("style"),document.head.appendChild(Vf)),Vf.innerHTML="*{cursor: ".concat(n,"!important;}")}const I4e="_PanelGroupWrapper_13ky4_1",A4e="_PanelGroup_13ky4_1",L4e="_Panel_13ky4_1",R4e="_PanelColumn_13ky4_15",O4e="_PanelRow_13ky4_16",$4e="_Centered_13ky4_26",z4e="_ResizeHandle_13ky4_39",F4e="_Overflow_13ky4_42",H4e="_Button_13ky4_53",B4e="_ButtonDisabled_13ky4_54",U4e="_Buttons_13ky4_68",W4e="_Capitalize_13ky4_76",V4e="_WarningBlock_13ky4_80",q4e="_InlineCode_13ky4_87",K4e="_ResizeHandleOuter_13ky4_91",G4e="_ResizeHandleInner_13ky4_104",Y4e="_HorizontalIcon_13ky4_135",Z4e="_VerticalIcon_13ky4_136",X4e={PanelGroupWrapper:I4e,PanelGroup:A4e,Panel:L4e,PanelColumn:R4e,PanelRow:O4e,Centered:$4e,ResizeHandle:z4e,Overflow:F4e,Button:H4e,ButtonDisabled:B4e,Buttons:U4e,Capitalize:W4e,WarningBlock:V4e,InlineCode:q4e,ResizeHandleOuter:K4e,ResizeHandleInner:G4e,HorizontalIcon:Y4e,VerticalIcon:Z4e};function mA(t){try{if(typeof localStorage!="undefined")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}const m1={getItem:t=>(mA(m1),m1.getItem(t)),setItem:(t,e)=>{mA(m1),m1.setItem(t,e)}};function Q4e(t){if(t.sheet)return t.sheet;for(var e=0;e0?na(Y0,--Eo):0,g0--,hs===10&&(g0=1,Ek--),hs}function Ko(){return hs=Eo2||Ov(hs)>3?"":" "}function dSe(t,e){for(;--e&&Ko()&&!(hs<48||hs>102||hs>57&&hs<65||hs>70&&hs<97););return Rx(t,Vb()+(e<6&&ec()==32&&Ko()==32))}function Cj(t){for(;Ko();)switch(hs){case t:return Eo;case 34:case 39:t!==34&&t!==39&&Cj(hs);break;case 40:t===41&&Cj(t);break;case 92:Ko();break}return Eo}function fSe(t,e){for(;Ko()&&t+hs!==57;)if(t+hs===84&&ec()===47)break;return"/*"+Rx(e,Eo-1)+"*"+jk(t===47?t:Ko())}function hSe(t){for(;!Ov(ec());)Ko();return Rx(t,Eo)}function pSe(t){return MV(Kb("",null,null,null,[""],t=PV(t),0,[0],t))}function Kb(t,e,n,r,s,a,i,l,c){for(var d=0,p=0,f=i,m=0,b=0,C=0,g=1,w=1,x=1,S=0,E="",N=s,_=a,P=r,I=E;w;)switch(C=S,S=Ko()){case 40:if(C!=108&&na(I,f-1)==58){kj(I+=lr(qb(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=qb(S);break;case 9:case 10:case 13:case 32:I+=uSe(C);break;case 92:I+=dSe(Vb()-1,7);continue;case 47:switch(ec()){case 42:case 47:mb(mSe(fSe(Ko(),Vb()),e,n),c);break;default:I+="/"}break;case 123*g:l[d++]=zl(I)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+p:x==-1&&(I=lr(I,/\f/g,"")),b>0&&zl(I)-f&&mb(b>32?vA(I+";",r,n,f-1):vA(lr(I," ","")+";",r,n,f-2),c);break;case 59:I+=";";default:if(mb(P=gA(I,e,n,d,p,s,l,E,N=[],_=[],f),a),S===123)if(p===0)Kb(I,e,P,P,N,a,f,l,_);else switch(m===99&&na(I,3)===110?100:m){case 100:case 108:case 109:case 115:Kb(t,P,P,r&&mb(gA(t,P,P,0,0,s,l,E,s,N=[],f),_),s,_,f,l,r?N:_);break;default:Kb(I,P,P,P,[""],_,0,l,_)}}d=p=b=0,g=x=1,E=I="",f=i;break;case 58:f=1+zl(I),b=C;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&cSe()==125)continue}switch(I+=jk(S),S*g){case 38:x=p>0?1:(I+="\f",-1);break;case 44:l[d++]=(zl(I)-1)*x,x=1;break;case 64:ec()===45&&(I+=qb(Ko())),m=ec(),p=f=zl(E=I+=hSe(Vb())),S++;break;case 45:C===45&&zl(I)==2&&(g=0)}}return a}function gA(t,e,n,r,s,a,i,l,c,d,p){for(var f=s-1,m=s===0?a:[""],b=nN(m),C=0,g=0,w=0;C0?m[x]+" "+S:lr(S,/&\f/g,m[x])))&&(c[w++]=E);return Nk(t,e,n,s===0?eN:l,c,d,p)}function mSe(t,e,n){return Nk(t,e,n,EV,jk(lSe()),Rv(t,2,-2),0)}function vA(t,e,n,r){return Nk(t,e,n,tN,Rv(t,0,r),Rv(t,r+1,-1),r)}function Tm(t,e){for(var n="",r=nN(t),s=0;s6)switch(na(t,e+1)){case 109:if(na(t,e+4)!==45)break;case 102:return lr(t,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+Lw+(na(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~kj(t,"stretch")?DV(lr(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(na(t,e+1)!==115)break;case 6444:switch(na(t,zl(t)-3-(~kj(t,"!important")&&10))){case 107:return lr(t,":",":"+ir)+t;case 101:return lr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(na(t,14)===45?"inline-":"")+"box$3$1"+ir+"$2$3$1"+ga+"$2box$3")+t}break;case 5936:switch(na(t,e+11)){case 114:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ir+t+ga+lr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ir+t+ga+t+t}return t}var jSe=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case tN:e.return=DV(e.value,e.length);break;case NV:return Tm([n1(e,{value:lr(e.value,"@","@"+ir)})],s);case eN:if(e.length)return iSe(e.props,function(a){switch(oSe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tm([n1(e,{props:[lr(a,/:(read-\w+)/,":"+Lw+"$1")]})],s);case"::placeholder":return Tm([n1(e,{props:[lr(a,/:(plac\w+)/,":"+ir+"input-$1")]}),n1(e,{props:[lr(a,/:(plac\w+)/,":"+Lw+"$1")]}),n1(e,{props:[lr(a,/:(plac\w+)/,ga+"input-$1")]})],s)}return""})}},ESe=[jSe],NSe=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var w=g.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var s=e.stylisPlugins||ESe,a={},i,l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var w=g.getAttribute("data-emotion").split(" "),x=1;x=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var TSe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},PSe=/[A-Z]|^ms/g,MSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,IV=function(e){return e.charCodeAt(1)===45},yA=function(e){return e!=null&&typeof e!="boolean"},p4=ySe(function(t){return IV(t)?t:t.replace(PSe,"-$&").toLowerCase()}),bA=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(MSe,function(r,s,a){return Fl={name:s,styles:a,next:Fl},s})}return TSe[e]!==1&&!IV(e)&&typeof n=="number"&&n!==0?n+"px":n};function $v(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Fl={name:n.name,styles:n.styles,next:Fl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fl={name:r.name,styles:r.styles,next:Fl},r=r.next;var s=n.styles+";";return s}return DSe(t,e,n)}case"function":{if(t!==void 0){var a=Fl,i=n(t);return Fl=a,$v(t,e,i)}break}}if(e==null)return n;var l=e[n];return l!==void 0?l:n}function DSe(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},n=e.literal,r=e.overlap,s=n?t:["&"].concat(t);function a(i){if(typeof i!="object"||i==null)return[];if(Array.isArray(i))return i.map(a);var l={},c={},d={};return Object.keys(i).forEach(function(p){var f=i[p];if(!Array.isArray(f)&&n&&(f=[f]),(n||Array.isArray(f))&&p.charCodeAt(0)!==38){var m=void 0;f.forEach(function(b,C){if(!(r&&m===b)&&b!=null)if(m=b,C===0&&!n)d[p]=b;else if(l[s[C]]===void 0){var g;l[s[C]]=(g={},g[p]=b,g)}else l[s[C]][p]=b})}else typeof f=="object"?c[p]=a(f):d[p]=f}),s.forEach(function(p){l[p]&&(d[p]=l[p])}),Object.assign(d,c),d}return function(){for(var i=arguments.length,l=Array(i),c=0;cRw(l,e)).join(", "):"".concat(t," ").concat(i," ").concat(a)+(n?" ".concat(EA(n)):"")}function EA(t){return $Se(t)?"".concat(t,"ms"):co.animation.duration[t]}const BSe="ksv",NA=USe("reset");function USe(t){return"".concat(BSe,":").concat(t)}function _k(...t){let e=SA(t);return e.includes(NA)?e:SA(NA,e)}const zc={mobile:0,tablet:740,desktop:992,wide:1200},Gb=t=>"@media (min-width: ".concat(t,"px)"),g4=t=>"@media (max-width: ".concat(t-1,"px)"),_A={above:{mobile:Gb(zc.tablet),tablet:Gb(zc.desktop),desktop:Gb(zc.wide)},below:{tablet:g4(zc.tablet),desktop:g4(zc.desktop),wide:g4(zc.wide)}},TA=FSe(zc),s_=zc,{mobile:L7e}=s_,WSe=Ne(s_,["mobile"]),VSe=Object.values(WSe).map(Gb),qSe=HSe(VSe);function KSe(t,e){return e==null?null:typeof e=="object"&&!Array.isArray(e)?GSe(t,e):t(e)}function GSe(t,e){const n=[];for(let r=0;re-t);ZSe.map(([,t])=>"(min-width: ".concat(t,"px)"));function XSe(t,e){for(const n of e.split(".")){if(typeof t!="object"||t===null||!Object.prototype.hasOwnProperty.call(t,n))return;t=t[n]}return t}function Ow(t,e){var n;return typeof e!="string"?e:(t=e.includes(".")?e:"".concat(t,".").concat(e),(n=XSe(co,t))!==null&&n!==void 0?n:e)}function Ao(t,e){return[t,r=>Ow(e,r)]}const QSe=t=>t;function _r(t,e=QSe){return[t,e]}function r1(t){return[t,n=>{const r=Ow("color.border",n);return"".concat(co.size.border.regular," solid ").concat(r)}]}function JSe(t){let[e,n]=t.split(".");return!e||!n?!1:!!co.size[e][n]}function e6e(t){if(typeof t=="number"){if(t===0)return"".concat(t,"px");jA(t)}if(JSe(t)){let[e,n]=t.split(".");return co.size[e][n]}if(t==="auto"||t==="inherit"||t==="100%"||t==="100vh"||t==="100vw")return t;jA(t)}function bf(t){return[t,e6e]}function as(t){return Ao(t,"size.space")}function jc(t){return Ao(t,"size.radius")}const t6e={backgroundColor:Ao("backgroundColor","color.background"),boxShadow:["boxShadow",n6e],height:bf("height"),maxHeight:bf("maxHeight"),minHeight:bf("minHeight"),maxWidth:bf("maxWidth"),minWidth:bf("minWidth"),width:bf("width"),margin:as("margin"),marginStart:as("marginInlineStart"),marginEnd:as("marginInlineEnd"),marginTop:as("marginBlockStart"),marginBottom:as("marginBlockEnd"),marginX:as("marginInline"),marginY:as("marginBlock"),padding:as("padding"),paddingStart:as("paddingInlineStart"),paddingEnd:as("paddingInlineEnd"),paddingTop:as("paddingBlockStart"),paddingBottom:as("paddingBlockEnd"),paddingX:as("paddingInline"),paddingY:as("paddingBlock"),border:r1("border"),borderStart:r1("borderInlineStart"),borderEnd:r1("borderInlineEnd"),borderTop:r1("borderTop"),borderBottom:r1("borderBottom"),borderColor:Ao("borderColor","color.border"),borderStartColor:Ao("borderInlineStartColor","color.border"),borderEndColor:Ao("borderInlineEndColor","color.border"),borderTopColor:Ao("borderTopColor","color.border"),borderBottomColor:Ao("borderBottomColor","color.border"),borderStyle:_r("borderStyle"),borderStartStyle:_r("borderInlineStartStyle"),borderEndStyle:_r("borderInlineEndStyle"),borderTopStyle:_r("borderTopStyle"),borderBottomStyle:_r("borderBottomStyle"),borderWidth:Ao("borderWidth","size.border"),borderStartWidth:Ao("borderInlineStartWidth","size.border"),borderEndWidth:Ao("borderInlineEndWidth","size.border"),borderTopWidth:Ao("borderTopWidth","size.border"),borderBottomWidth:Ao("borderBottomWidth","size.border"),borderRadius:jc("borderRadius"),borderTopStartRadius:jc("borderStartStartRadius"),borderTopEndRadius:jc("borderStartEndRadius"),borderBottomStartRadius:jc("borderEndStartRadius"),borderBottomEndRadius:jc("borderEndEndRadius"),borderTopRadius:jc(["borderStartStartRadius","borderStartEndRadius"]),borderBottomRadius:jc(["borderEndStartRadius","borderEndEndRadius"]),borderStartRadius:jc(["borderStartStartRadius","borderEndStartRadius"]),borderEndRadius:jc(["borderEndEndRadius","borderStartEndRadius"]),inset:as("inset"),insetBottom:as("insetBlockEnd"),insetEnd:as("insetInlineEnd"),insetStart:as("insetInlineStart"),insetTop:as("insetBlockStart"),insetX:as("insetInline"),insetY:as("insetBlock"),position:_r("position"),zIndex:_r("zIndex"),order:_r("order"),alignSelf:_r("alignSelf"),flex:_r("flex",v4),flexBasis:bf("flexBasis"),flexGrow:_r("flexGrow",v4),flexShrink:_r("flexShrink",v4),justifySelf:_r("justifySelf"),gridArea:_r("gridArea"),gridColumn:_r("gridColumn"),gridColumnEnd:_r("gridColumnEnd"),gridColumnStart:_r("gridColumnStart"),gridRow:_r("gridRow"),gridRowEnd:_r("gridRowEnd"),gridRowStart:_r("gridRowStart"),cursor:_r("cursor"),opacity:_r("opacity"),pointerEvents:_r("pointerEvents"),overflow:_r("overflow"),userSelect:_r("userSelect")};function v4(t){return typeof t=="boolean"?t?"1":void 0:""+t}function n6e(t){const e={small:"muted",medium:"regular",large:"emphasis"},[n,r]=t.split(" "),s=Ow("color.shadow",r!=null?r:e[n]),a=Ow("size.shadow",n);return"".concat(a," ").concat(s)}function r6e(t,e){let n={};for(let r in t){let s=e[r];if(!s||t[r]==null)continue;let[a,i]=s,l=KSe(i,t[r]);if(Array.isArray(a))for(let c of a)n[c]=l;else n[a]=l}return n}function rN(t,e={}){let n=R(R({},t6e),e),p=t,{isHidden:r,UNSAFE_className:s,UNSAFE_style:a}=p,i=Ne(p,["isHidden","UNSAFE_className","UNSAFE_style"]),l=r6e(t,n),c=qSe(l);i.className,i.style;let d=[];if(r)if(r===!0)d.push({display:"none"});else{const f={};"above"in r&&(f[_A.above[r.above]]={display:"none"}),"below"in r&&(f[_A.below[r.below]]={display:"none"}),d.push(f)}return{className:_k(v0(c),s,v0(d)),style:a}}function PA(t){return o6e(t)?t.clientX:i6e(t)?t.touches[0].clientX:0}function s6e(t,e,n){return Math.round((t-e)/(n-e)*100)}function sN(t){return"primary-pane-".concat(t)}function RV(t){return"secondary-pane-".concat(t)}function OV(t){return"resize-handle-".concat(t)}function MA(t){return document.getElementById(sN(t))}function a6e(t){return document.getElementById(RV(t))}function DA(t){return document.getElementById(OV(t))}function Rp(t){return"".concat(t,"px")}function o6e(t){return t.type.startsWith("mouse")}function i6e(t){return t.type.startsWith("touch")}const $V="--primary-pane-max-width",l6e="var(".concat($V,")"),zV="--primary-pane-min-width",c6e="var(".concat(zV,")"),Yb="--primary-pane-width",u6e="var(".concat(Yb,")"),d6e=32,f6e=10,h6e={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},p6e=v.forwardRef(function(e,n){const r=Te(12),{activity:s,id:a,isCollapsed:i}=J7();let l;r[0]!==a?(l=sN(a),r[0]=a,r[1]=l):l=r[1];let c;r[2]!==a?(c=OV(a),r[2]=a,r[3]=c):c=r[3];const d=i||void 0;let p;r[4]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Tz,{className:"".concat(X4e.HorizontalIcon," text-slate-300 dark:text-slate-500"),type:"resize-horizontal",width:"16px"}),r[4]=p):p=r[4];let f;return r[5]!==e||r[6]!==n||r[7]!==l||r[8]!==c||r[9]!==s||r[10]!==d?(f=o.jsx("div",ae(R({},e),{ref:n,"aria-controls":l,"aria-label":"Resize","aria-orientation":"vertical",id:c,role:"separator",tabIndex:0,"data-split-view-resize-handle":!0,"data-split-view-activity":s,"data-split-view-collapsed":d,className:"animate-in panel-resize_tour ".concat(v0({backgroundColor:'var("--tw-red-500")',boxSizing:"border-box",cursor:"ew-resize",flexShrink:0,opacity:0,outline:0,position:"relative",touchAction:"none",animationDuration:"0.3s",transition:Rw("opacity"),userSelect:"none",width:18,zIndex:1,"&[data-split-view-collapsed]:not([data-split-view-activity])":h6e,"&::before":{content:'""',position:"absolute",inset:"calc(".concat(co.size.space.small," * -1)")},"&::after":{backgroundColor:co.color.alias.backgroundHovered,content:'""',insetBlock:0,insetInline:"calc(".concat(co.size.border.medium," * -1)"),opacity:0,position:"absolute",transition:Rw("opacity")},"&:hover":{opacity:1,backgroundColor:co.color.border.neutral,transitionDelay:co.animation.duration.regular,"&::after":{opacity:1,transitionDelay:co.animation.duration.regular}},"&[data-split-view-activity]::after":{backgroundColor:co.color.background.accentEmphasis,insetInline:"calc(".concat(co.size.border.regular," * -1)"),opacity:1}})),children:p})),r[5]=e,r[6]=n,r[7]=l,r[8]=c,r[9]=s,r[10]=d,r[11]=f):f=r[11],f});function aN(t){const e=Te(74),{autoSaveId:n,children:r,defaultSize:s,isCollapsed:a,minSize:i,maxSize:l,onCollapseChange:c,onResize:d,swapPanes:p,reversed:f,storage:m}=t,b=m===void 0?m1:m;let C;e[0]!==p||e[1]!==r?(C=p?[r[1],r[0]]:r,e[0]=p,e[1]=r,e[2]=C):C=e[2];const[g,w]=C,x=C4e(t.id),S=rN(t),[E,N]=v.useState(f),[_,P]=v.useState(!1),[I,T]=v.useState(!1);let L;e[3]!==s||e[4]!==n||e[5]!==b?(L=()=>{let pe=s;if(n){const me=b.getItem(n);me&&(pe=Number.parseInt(me))}return pe},e[3]=s,e[4]=n,e[5]=b,e[6]=L):L=e[6];const[A,z]=v.useState(L),Y=v.useRef(null),O=v.useRef(0),$=v.useRef(0);let M,W;e[7]!==x||e[8]!==f?(M=()=>{const pe=DA(x),me=MA(x),be=a6e(x);N(f?(pe==null?void 0:pe.previousElementSibling)===me:(pe==null?void 0:pe.previousElementSibling)===be)},W=[f,x],e[7]=x,e[8]=f,e[9]=M,e[10]=W):(M=e[9],W=e[10]),v.useEffect(M,W);let V;e[11]!==d||e[12]!==A?(V=()=>d==null?void 0:d(A),e[11]=d,e[12]=A,e[13]=V):V=e[13];let U;e[14]!==A?(U=[A],e[14]=A,e[15]=U):U=e[15],_4e(V,U);let J;e[16]!==A||e[17]!==n||e[18]!==b?(J=()=>{var pe;(pe=Y.current)==null||pe.style.setProperty(Yb,Rp(A)),$.current=A,n&&b.setItem(n,Rp(A))},e[16]=A,e[17]=n,e[18]=b,e[19]=J):J=e[19];let H;e[20]!==n||e[21]!==d||e[22]!==A||e[23]!==b?(H=[n,d,A,b],e[20]=n,e[21]=d,e[22]=A,e[23]=b,e[24]=H):H=e[24],v.useEffect(J,H);let F;e[25]!==x||e[26]!==a||e[27]!==E||e[28]!==A||e[29]!==s||e[30]!==i||e[31]!==l||e[32]!==c?(F=()=>{const pe=Y.current,me=DA(x),be=MA(x);if(!pe||!me||!be)return;let Ee;Ee=!1;const We=typeof a=="boolean",qe=Ke=>{Ke.preventDefault();let ut=PA(Ke)-O.current;E&&(ut=ut*-1);let $e=A+ut;Math.abs($e-s)l&&(ht="horizontal-max"),D4e(ht,!!E)},ot=()=>{me.blur(),P(!1),M4e(),Ee?(c==null||c(!a),be.style.removeProperty("width")):z(u4e($.current,i,l)),Ee=!1,document.body.removeEventListener("mousemove",qe),document.body.removeEventListener("touchmove",qe),window.removeEventListener("mouseup",ot),window.removeEventListener("touchend",ot)},Ve=Ke=>{"button"in Ke&&Ke.button!==0||"touches"in Ke&&Ke.touches.length!==1||(P(!0),O.current=PA(Ke),document.body.addEventListener("mousemove",qe),document.body.addEventListener("touchmove",qe),window.addEventListener("mouseup",ot),window.addEventListener("touchend",ot))},Ge=Ke=>{if(Ke.defaultPrevented)return;const ut=Math.round((l-i)/f6e),$e=()=>z(Fe=>Math.min(Fe+ut,l)),ht=()=>z(Fe=>Math.max(Fe-ut,i));e:switch(Ke.key){case"Enter":{We&&(Ke.preventDefault(),c==null||c(!a));break e}case"Home":{Ke.preventDefault(),z(i);break e}case"End":{Ke.preventDefault(),z(l);break e}case"ArrowLeft":{Ke.preventDefault(),E?$e():ht();break e}case"ArrowRight":Ke.preventDefault(),E?ht():$e()}},ft={passive:!0},Ie=Ke=>{Ke.clientX===O.current&&z(s)};return me.addEventListener("contextmenu",ot),me.addEventListener("dblclick",Ie),me.addEventListener("keydown",Ge),me.addEventListener("mousedown",Ve,ft),me.addEventListener("touchstart",Ve,ft),()=>{me.removeEventListener("contextmenu",ot),me.removeEventListener("dblclick",Ie),me.removeEventListener("keydown",Ge),me.removeEventListener("mousedown",Ve),me.removeEventListener("touchstart",Ve)}},e[25]=x,e[26]=a,e[27]=E,e[28]=A,e[29]=s,e[30]=i,e[31]=l,e[32]=c,e[33]=F):F=e[33];let q;e[34]!==l||e[35]!==i||e[36]!==s||e[37]!==x||e[38]!==E||e[39]!==A||e[40]!==c||e[41]!==a||e[42]!==p?(q=[l,i,s,x,E,A,c,a,p],e[34]=l,e[35]=i,e[36]=s,e[37]=x,e[38]=E,e[39]=A,e[40]=c,e[41]=a,e[42]=p,e[43]=q):q=e[43],v.useEffect(F,q);const X=_?"pointer":I?"keyboard":void 0;let te;e[44]!==x||e[45]!==a||e[46]!==X?(te={id:x,isCollapsed:a,activity:X},e[44]=x,e[45]=a,e[46]=X,e[47]=te):te=e[47];let ee;e[48]!==t?(ee=Q7(t),e[48]=t,e[49]=ee):ee=e[49];let G;e[50]!==i||e[51]!==l||e[52]!==s||e[53]!==S.className?(G=_k(v0({display:"flex",height:"100%",width:"100%",overflow:"hidden",[zV]:Rp(i),[$V]:Rp(l),[Yb]:Rp(s)}),S.className),e[50]=i,e[51]=l,e[52]=s,e[53]=S.className,e[54]=G):G=e[54];let Z;e[55]!==A||e[56]!==i||e[57]!==l?(Z=s6e(A,i,l),e[55]=A,e[56]=i,e[57]=l,e[58]=Z):Z=e[58];let le,se;e[59]===Symbol.for("react.memo_cache_sentinel")?(le=()=>T(!1),se=()=>T(!0),e[59]=le,e[60]=se):(le=e[59],se=e[60]);let de;e[61]!==Z?(de=o.jsx(p6e,{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Z,onBlur:le,onFocus:se}),e[61]=Z,e[62]=de):de=e[62];let ce;e[63]!==S||e[64]!==ee||e[65]!==Y||e[66]!==G||e[67]!==g||e[68]!==de||e[69]!==w?(ce=o.jsxs("div",ae(R(R({},S),ee),{ref:Y,className:G,children:[g,de,w]})),e[63]=S,e[64]=ee,e[65]=Y,e[66]=G,e[67]=g,e[68]=de,e[69]=w,e[70]=ce):ce=e[70];let ye;return e[71]!==te||e[72]!==ce?(ye=o.jsx(T4e,{value:te,children:ce}),e[71]=te,e[72]=ce,e[73]=ye):ye=e[73],ye}const oN=v.forwardRef(function(e,n){const r=Te(15),{activity:s,id:a,isCollapsed:i}=J7(),l=rN(e);let c;r[0]!==e?(c=Q7(e),r[0]=e,r[1]=c):c=r[1];let d;r[2]!==a?(d=sN(a),r[2]=a,r[3]=d):d=r[3];const p=i||void 0;let f;r[4]!==l.className?(f=_k(v0({containerType:"inline-size",overflow:"hidden",width:"clamp(".concat(c6e,",").concat(u6e,",").concat(l6e,")"),maxWidth:"calc(100% - 100px)","&[data-split-view-collapsed]":{visibility:"hidden",width:0},"&:not([data-split-view-activity])":{transition:Rw("width")},"&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),l.className),r[4]=l.className,r[5]=f):f=r[5];let m;return r[6]!==l||r[7]!==c||r[8]!==n||r[9]!==d||r[10]!==s||r[11]!==p||r[12]!==f||r[13]!==e.children?(m=o.jsx("div",ae(R(R({},l),c),{ref:n,id:d,"data-split-pane":"primary","data-split-view-activity":s,"data-split-view-collapsed":p,className:f,children:e.children})),r[6]=l,r[7]=c,r[8]=n,r[9]=d,r[10]=s,r[11]=p,r[12]=f,r[13]=e.children,r[14]=m):m=r[14],m}),iN=v.forwardRef(function(e,n){const r=Te(14),{id:s,activity:a}=J7(),i=rN(e);let l;r[0]!==e?(l=Q7(e),r[0]=e,r[1]=l):l=r[1];let c;r[2]!==s?(c=RV(s),r[2]=s,r[3]=c):c=r[3];let d;r[4]!==i.className?(d=_k(v0({containerType:"inline-size",flex:"1 1 0",minWidth:"100px",overflow:"hidden","&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),i.className),r[4]=i.className,r[5]=d):d=r[5];let p;return r[6]!==i||r[7]!==l||r[8]!==n||r[9]!==c||r[10]!==a||r[11]!==d||r[12]!==e.children?(p=o.jsx("div",ae(R(R({},i),l),{ref:n,id:c,"data-split-pane":"secondary","data-split-view-activity":a,className:d,children:e.children})),r[6]=i,r[7]=l,r[8]=n,r[9]=c,r[10]=a,r[11]=d,r[12]=e.children,r[13]=p):p=r[13],p});function m6e(t){const e=Te(8),{id:n}=t;let r;e[0]!==n?(r={id:n},e[0]=n,e[1]=r):r=e[1];const{setNodeRef:s,isOver:a}=h5(r),i="flex flex-row items-center justify-center py-1.5 px-3 border-2 border-dashed rounded-md w-[260px] ".concat(a?"border-red-600":"border-slate-300 dark:border-slate-600");let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(re,{children:" "}),e[2]=l):l=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(kr,{size:15,className:"text-red-400 dark:text-red-700"}),e[3]=c):c=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(re,{children:" "}),e[4]=d):d=e[4];let p;return e[5]!==s||e[6]!==i?(p=o.jsxs("div",{ref:s,className:i,children:[l,c,d]}),e[5]=s,e[6]=i,e[7]=p):p=e[7],p}function FV(t){var e=sn(1);try{const n=Te(243),{historyId:r,value:s,arrLinks:a,isImage:i,isText:l,isImageData:c,isLargeView:d,isMasked:p,isPinned:f,isFavorite:m,detectedLanguage:b,invalidateClipboardHistoryQuery:C,generateLinkMetaData:g,removeLinkMetaData:w,isSelected:x,hasLinkCard:S,setSavingItem:E,setLargeViewItemId:N,setSelectHistoryItem:_,onCopyPaste:P}=t;let I;n[0]!==C?(I=C===void 0?()=>{}:C,n[0]=C,n[1]=I):I=n[1];const T=I;let L;n[2]!==g?(L=g===void 0?()=>Promise.resolve():g,n[2]=g,n[3]=L):L=n[3];const A=L;let z;n[4]!==w?(z=w===void 0?()=>Promise.resolve():w,n[4]=w,n[5]=z):z=n[5];const Y=z,{t:O}=Gt(),$=Dn(),{copyPasteDelay:M,setCopyPasteDelay:W,historyDetectLanguagesEnabledList:V}=Tt(Cr),{deleteClipboardHistoryItem:U}=Tt(_i),{updateClipboardHistoryById:J}=V5e(),{deleteClipboardHistoryByIds:H}=U7(),{pinnedClipboardHistoryByIds:F}=DW(),q=ua();let X;n[6]!==O?(X=Ct=>{yo(O("Errors:::Something went wrong! {{err}} Please try again.",{ns:"common",err:Ct}),"Error")},n[6]=O,n[7]=X):X=n[7];const te=X;if(r==null)return null;let ee;n[8]!==_||n[9]!==r?(ee=()=>{_(r)},n[8]=_,n[9]=r,n[10]=ee):ee=n[10];let G;n[11]!==x||n[12]!==O?(G=x?o.jsxs(o.Fragment,{children:[O("Deselect",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Sce,{size:15})})]}):o.jsxs(o.Fragment,{children:[O("Select",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Rz,{size:15})})]}),n[11]=x,n[12]=O,n[13]=G):G=n[13];let Z;n[14]!==ee||n[15]!==G?(Z=o.jsx(Wt,{onClick:ee,children:G}),n[14]=ee,n[15]=G,n[16]=Z):Z=n[16];let le;n[17]!==P||n[18]!==r?(le=()=>{P(r)},n[17]=P,n[18]=r,n[19]=le):le=n[19];let se;n[20]!==O?(se=O("Copy & Paste",{ns:"contextMenus"}),n[20]=O,n[21]=se):se=n[21];const de=M>0?"delay ".concat(M,"s"):"no delay";let ce;n[22]!==de?(ce=o.jsx(ve,{className:"text-gray-800 relative",children:o.jsx(ne,{className:"py-0 px-2 font-normal pr-2",children:o.jsx(re,{className:"text-xs text-gray-400/80",children:de})})}),n[22]=de,n[23]=ce):ce=n[23];let ye;n[24]===Symbol.for("react.memo_cache_sentinel")?(ye=o.jsx(Ds,{size:15}),n[24]=ye):ye=n[24];let pe;n[25]!==ce?(pe=o.jsxs(ve,{className:"ml-auto",children:[ce,ye]}),n[25]=ce,n[26]=pe):pe=n[26];let me;n[27]!==le||n[28]!==se||n[29]!==pe?(me=o.jsxs(Wt,{onClick:le,children:[se,pe]}),n[27]=le,n[28]=se,n[29]=pe,n[30]=me):me=n[30];let be;n[31]!==O?(be=O("Paste Delay",{ns:"contextMenus"}),n[31]=O,n[32]=be):be=n[32];let Ee;n[33]!==be?(Ee=o.jsxs(Rr,{children:[be," ..."]}),n[33]=be,n[34]=Ee):Ee=n[34];const We=M===1;let qe;n[35]!==W||n[36]!==P||n[37]!==r?(qe=()=>{W(1),P(r,1)},n[35]=W,n[36]=P,n[37]=r,n[38]=qe):qe=n[38];let ot;n[39]!==O?(ot=O("second",{ns:"common"}),n[39]=O,n[40]=ot):ot=n[40];let Ve;n[41]!==ot?(Ve=o.jsxs(re,{children:["1 ",ot]}),n[41]=ot,n[42]=Ve):Ve=n[42];let Ge;n[43]!==We||n[44]!==qe||n[45]!==Ve?(Ge=o.jsx(tl,{checked:We,onSelect:qe,children:Ve}),n[43]=We,n[44]=qe,n[45]=Ve,n[46]=Ge):Ge=n[46];const ft=M===2;let Ie;n[47]!==W||n[48]!==P||n[49]!==r?(Ie=()=>{W(2),P(r,2)},n[47]=W,n[48]=P,n[49]=r,n[50]=Ie):Ie=n[50];let Ke;n[51]!==O?(Ke=O("seconds",{ns:"common"}),n[51]=O,n[52]=Ke):Ke=n[52];let ut;n[53]!==Ke?(ut=o.jsxs(re,{children:["2 ",Ke]}),n[53]=Ke,n[54]=ut):ut=n[54];let $e;n[55]!==ft||n[56]!==Ie||n[57]!==ut?($e=o.jsx(tl,{checked:ft,onSelect:Ie,children:ut}),n[55]=ft,n[56]=Ie,n[57]=ut,n[58]=$e):$e=n[58];const ht=M===3;let Fe;n[59]!==W||n[60]!==P||n[61]!==r?(Fe=()=>{W(3),P(r,3)},n[59]=W,n[60]=P,n[61]=r,n[62]=Fe):Fe=n[62];let pt;n[63]!==O?(pt=O("seconds",{ns:"common"}),n[63]=O,n[64]=pt):pt=n[64];let Qe;n[65]!==pt?(Qe=o.jsxs(re,{children:["3 ",pt]}),n[65]=pt,n[66]=Qe):Qe=n[66];let Lt;n[67]!==ht||n[68]!==Fe||n[69]!==Qe?(Lt=o.jsx(tl,{checked:ht,onSelect:Fe,children:Qe}),n[67]=ht,n[68]=Fe,n[69]=Qe,n[70]=Lt):Lt=n[70];const Ut=M===4;let wt;n[71]!==W||n[72]!==P||n[73]!==r?(wt=()=>{W(4),P(r,4)},n[71]=W,n[72]=P,n[73]=r,n[74]=wt):wt=n[74];let Xt;n[75]!==O?(Xt=O("seconds",{ns:"common"}),n[75]=O,n[76]=Xt):Xt=n[76];let $t;n[77]!==Xt?($t=o.jsxs(re,{children:["4 ",Xt]}),n[77]=Xt,n[78]=$t):$t=n[78];let tn;n[79]!==Ut||n[80]!==wt||n[81]!==$t?(tn=o.jsx(tl,{checked:Ut,onSelect:wt,children:$t}),n[79]=Ut,n[80]=wt,n[81]=$t,n[82]=tn):tn=n[82];const Pt=M===5;let Ue;n[83]!==W||n[84]!==P||n[85]!==r?(Ue=()=>{W(5),P(r,5)},n[83]=W,n[84]=P,n[85]=r,n[86]=Ue):Ue=n[86];let Je;n[87]!==O?(Je=O("seconds",{ns:"common"}),n[87]=O,n[88]=Je):Je=n[88];let jt;n[89]!==Je?(jt=o.jsxs(re,{children:["5 ",Je]}),n[89]=Je,n[90]=jt):jt=n[90];let we;n[91]!==Pt||n[92]!==Ue||n[93]!==jt?(we=o.jsx(tl,{checked:Pt,onSelect:Ue,children:jt}),n[91]=Pt,n[92]=Ue,n[93]=jt,n[94]=we):we=n[94];let Se;n[95]!==Ge||n[96]!==$e||n[97]!==Lt||n[98]!==tn||n[99]!==we?(Se=o.jsxs(Or,{children:[Ge,$e,Lt,tn,we]}),n[95]=Ge,n[96]=$e,n[97]=Lt,n[98]=tn,n[99]=we,n[100]=Se):Se=n[100];let De;n[101]!==Ee||n[102]!==Se?(De=o.jsxs(Hr,{children:[Ee,Se]}),n[101]=Ee,n[102]=Se,n[103]=De):De=n[103];let nt;n[104]===Symbol.for("react.memo_cache_sentinel")?(nt=o.jsx(Qn,{}),n[104]=nt):nt=n[104];let Pe;n[105]!==N||n[106]!==d||n[107]!==r?(Pe=()=>{N(d?null:r)},n[105]=N,n[106]=d,n[107]=r,n[108]=Pe):Pe=n[108];let gt;n[109]!==d||n[110]!==O?(gt=d?O("Close",{ns:"contextMenus"}):O("View",{ns:"contextMenus"}),n[109]=d,n[110]=O,n[111]=gt):gt=n[111];let Ze;n[112]!==d?(Ze=o.jsx("div",{className:"ml-auto",children:d?o.jsx(lE,{size:15}):o.jsx(dx,{size:15})}),n[112]=d,n[113]=Ze):Ze=n[113];let Re;n[114]!==Pe||n[115]!==gt||n[116]!==Ze?(Re=o.jsxs(Wt,{onClick:Pe,children:[gt,Ze]}),n[114]=Pe,n[115]=gt,n[116]=Ze,n[117]=Re):Re=n[117];let Oe;n[118]===Symbol.for("react.memo_cache_sentinel")?(Oe=o.jsx(Qn,{}),n[118]=Oe):Oe=n[118];let et;n[119]!==a||n[120]!==s||n[121]!==i||n[122]!==S||n[123]!==A||n[124]!==r||n[125]!==T||n[126]!==O||n[127]!==Y?(et=(a==null?void 0:a.length)>0&&o.jsxs(o.Fragment,{children:[a[0]===s&&!i&&!S&&o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){yield A(r,Ir(a[0])),T()}),children:[O("Add Link Card",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:15})})]}),S&&o.jsxs(Wt,{onClick:()=>ge(this,null,function*(){yield Y(r),T()}),children:[O("Remove Link Card",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(kv,{size:15})})]})]}),n[119]=a,n[120]=s,n[121]=i,n[122]=S,n[123]=A,n[124]=r,n[125]=T,n[126]=O,n[127]=Y,n[128]=et):et=n[128];let Et;n[129]!==F||n[130]!==r||n[131]!==f||n[132]!==$?(Et=()=>ge(this,null,function*(){yield F({historyIds:[r],isPinned:!f}),yield $.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),n[129]=F,n[130]=r,n[131]=f,n[132]=$,n[133]=Et):Et=n[133];let bt;n[134]!==f||n[135]!==O?(bt=f?O("UnPin",{ns:"contextMenus"}):O("Pin",{ns:"contextMenus"}),n[134]=f,n[135]=O,n[136]=bt):bt=n[136];let _t;n[137]!==f?(_t=o.jsx("div",{className:"ml-auto",children:f?o.jsx(Od,{size:15}):o.jsx(tu,{size:15})}),n[137]=f,n[138]=_t):_t=n[138];let Mt;n[139]!==Et||n[140]!==bt||n[141]!==_t?(Mt=o.jsxs(Wt,{onClick:Et,children:[bt,_t]}),n[139]=Et,n[140]=bt,n[141]=_t,n[142]=Mt):Mt=n[142];let an;n[143]!==J||n[144]!==r||n[145]!==m||n[146]!==$?(an=()=>ge(this,null,function*(){yield J({historyId:r,updatedData:{isFavorite:!m,historyId:r}}),yield $.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),n[143]=J,n[144]=r,n[145]=m,n[146]=$,n[147]=an):an=n[147];let dn;n[148]!==m||n[149]!==O?(dn=m?O("Remove Star",{ns:"contextMenus"}):O("Star",{ns:"contextMenus"}),n[148]=m,n[149]=O,n[150]=dn):dn=n[150];let fn;n[151]!==m?(fn=o.jsx("div",{className:"ml-auto",children:m?o.jsx(w5,{size:15}):o.jsx(Fh,{size:15})}),n[151]=m,n[152]=fn):fn=n[152];let mn;n[153]!==an||n[154]!==dn||n[155]!==fn?(mn=o.jsxs(Wt,{onClick:an,children:[dn,fn]}),n[153]=an,n[154]=dn,n[155]=fn,n[156]=mn):mn=n[156];let hn;n[157]===Symbol.for("react.memo_cache_sentinel")?(hn=o.jsx(Qn,{}),n[157]=hn):hn=n[157];let nn;n[158]!==O?(nn=O("Add to",{ns:"contextMenus"}),n[158]=O,n[159]=nn):nn=n[159];let on;n[160]!==nn?(on=o.jsxs(Rr,{children:[nn," ..."]}),n[160]=nn,n[161]=on):on=n[161];let Sn;n[162]!==r?(Sn=()=>{xa.value=nl.CLIP,t0.value=[r]},n[162]=r,n[163]=Sn):Sn=n[163];let pn;n[164]!==O?(pn=O("AddTo:::Clip on Board",{ns:"contextMenus"}),n[164]=O,n[165]=pn):pn=n[165];let rn;n[166]===Symbol.for("react.memo_cache_sentinel")?(rn=o.jsx("div",{className:"ml-auto",children:o.jsx(oE,{size:15})}),n[166]=rn):rn=n[166];let ct;n[167]!==Sn||n[168]!==pn?(ct=o.jsxs(Wt,{onClick:Sn,children:[pn,rn]}),n[167]=Sn,n[168]=pn,n[169]=ct):ct=n[169];let xe;n[170]!==q||n[171]!==r?(xe=()=>{q("/menu",{replace:!0}),setTimeout(()=>{ud.value=r.toString(),ho.value=!0},300)},n[170]=q,n[171]=r,n[172]=xe):xe=n[172];let Ye;n[173]!==O?(Ye=O("AddTo:::Paste Menu",{ns:"contextMenus"}),n[173]=O,n[174]=Ye):Ye=n[174];let dt;n[175]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx("div",{className:"ml-auto",children:o.jsx(cE,{size:15})}),n[175]=dt):dt=n[175];let mt;n[176]!==xe||n[177]!==Ye?(mt=o.jsxs(Wt,{onClick:xe,children:[Ye,dt]}),n[176]=xe,n[177]=Ye,n[178]=mt):mt=n[178];let xt;n[179]!==ct||n[180]!==mt?(xt=o.jsxs(Or,{className:"w-28",children:[ct,mt]}),n[179]=ct,n[180]=mt,n[181]=xt):xt=n[181];let It;n[182]!==on||n[183]!==xt?(It=o.jsxs(Hr,{children:[on,xt]}),n[182]=on,n[183]=xt,n[184]=It):It=n[184];let At;n[185]===Symbol.for("react.memo_cache_sentinel")?(At=o.jsx(Qn,{}),n[185]=At):At=n[185];let Ht;n[186]!==a||n[187]!==b||n[188]!==l||n[189]!==J||n[190]!==r||n[191]!==p||n[192]!==O?(Ht=(a==null?void 0:a.length)>0&&!b||l&&o.jsxs(o.Fragment,{children:[o.jsxs(Wt,{onClick:()=>{J({historyId:r,updatedData:{isMasked:!p,historyId:r}})},children:[p?O("Unmask Secret",{ns:"contextMenus"}):O("Mask Secret",{ns:"contextMenus"}),o.jsx("div",{className:"ml-auto",children:o.jsx(Lz,{size:15})})]}),o.jsx(Qn,{})]}),n[186]=a,n[187]=b,n[188]=l,n[189]=J,n[190]=r,n[191]=p,n[192]=O,n[193]=Ht):Ht=n[193];let Bt;n[194]!==b||n[195]!==O||n[196]!==J||n[197]!==r||n[198]!==V?(Bt=b&&o.jsxs(o.Fragment,{children:[o.jsxs(Hr,{children:[o.jsxs(Rr,{children:[O("Detected Language",{ns:"contextMenus"})," ..."]}),o.jsxs(Or,{children:[V.map(Ct=>o.jsx(tl,{checked:b===Ct,onSelect:()=>{J({historyId:r,updatedData:{detectedLanguage:Ct,isCode:!0,historyId:r}})},children:o.jsx(re,{children:Ct})},Ct)),o.jsx(Qn,{}),o.jsxs(Wt,{onSelect:()=>{J({historyId:r,updatedData:{isCode:!1,isText:!0,historyId:r}})},children:[o.jsx(doe,{size:16,className:"mr-2"}),o.jsx(re,{children:O("not a code",{ns:"contextMenus"})})]})]})]}),o.jsx(Qn,{})]}),n[194]=b,n[195]=O,n[196]=J,n[197]=r,n[198]=V,n[199]=Bt):Bt=n[199];let tt;n[200]!==i||n[201]!==c||n[202]!==r||n[203]!==E||n[204]!==te||n[205]!==O?(tt=(i||c)&&o.jsxs(Wt,{onClick:()=>{On("save_to_file_history_item",{historyId:r,asImage:!0}).then(Ct=>{Ct==="saved"?(E(r),setTimeout(()=>{E(null)},1600)):Ct!=="cancel"&&(te(O("Errors:::Cant save image file",{ns:"common"})),console.error(O("Errors:::Failed to save image file",{ns:"common"}),Ct))}).catch(()=>{te(O("Errors:::Cant save image file",{ns:"common"}))})},children:[O("Save as Image File",{ns:"contextMenus"})," ...",o.jsx("div",{className:"ml-auto",children:o.jsx(Sh,{size:15})})]}),n[200]=i,n[201]=c,n[202]=r,n[203]=E,n[204]=te,n[205]=O,n[206]=tt):tt=n[206];let Kt;n[207]!==i||n[208]!==a||n[209]!==r||n[210]!==E||n[211]!==te||n[212]!==O?(Kt=!(i&&!(a!=null&&a.length))&&o.jsxs(Wt,{onClick:()=>{On("save_to_file_history_item",{historyId:r}).then(Ct=>{Ct==="saved"?(E(r),setTimeout(()=>{E(null)},1600)):Ct!=="cancel"&&te(O("Errors:::Cant save to file",{ns:"common"}))}).catch(()=>{te(O("Errors:::Cant save to file",{ns:"common"}))})},children:[O("Save as Text File",{ns:"contextMenus"}),"...",o.jsx("div",{className:"ml-auto",children:o.jsx(Sh,{size:15})})]}),n[207]=i,n[208]=a,n[209]=r,n[210]=E,n[211]=te,n[212]=O,n[213]=Kt):Kt=n[213];let Zt;n[214]===Symbol.for("react.memo_cache_sentinel")?(Zt=o.jsx(Qn,{}),n[214]=Zt):Zt=n[214];const vn=Qu.value===r?"!bg-red-100 dark:!bg-red-950":"";let oe;n[215]!==r||n[216]!==H||n[217]!==U?(oe=Ct=>ge(this,null,function*(){Ct.preventDefault(),Qu.value===r?(yield H({historyIds:[r]}),U(r),Qu.value=null):(Ct.preventDefault(),Qu.value=r,setTimeout(()=>{Qu.value=null},3e3))}),n[215]=r,n[216]=H,n[217]=U,n[218]=oe):oe=n[218];let fe;n[219]!==r||n[220]!==O?(fe=Qu.value!==r?O("Delete",{ns:"common"}):O("Click to Confirm",{ns:"common"}),n[219]=r,n[220]=O,n[221]=fe):fe=n[221];let Xe;n[222]!==fe?(Xe=o.jsx(ve,{children:o.jsx(re,{className:"!text-red-500 dark:!text-red-600",children:fe})}),n[222]=fe,n[223]=Xe):Xe=n[223];let Me;n[224]===Symbol.for("react.memo_cache_sentinel")?(Me=o.jsx("div",{className:"ml-auto",children:o.jsx(kr,{className:"h-4 w-4 text-red-500 dark:!text-red-600"})}),n[224]=Me):Me=n[224];let _e;n[225]!==vn||n[226]!==oe||n[227]!==Xe?(_e=o.jsxs(Wt,{className:vn,onClick:oe,children:[Xe,Me]}),n[225]=vn,n[226]=oe,n[227]=Xe,n[228]=_e):_e=n[228];let He;return n[229]!==Z||n[230]!==me||n[231]!==De||n[232]!==Re||n[233]!==et||n[234]!==Mt||n[235]!==mn||n[236]!==It||n[237]!==Ht||n[238]!==Bt||n[239]!==tt||n[240]!==Kt||n[241]!==_e?(He=o.jsx(Cx,{children:o.jsxs(H0,{className:"w-[190px]",children:[Z,me,De,nt,Re,Oe,et,Mt,mn,hn,It,At,Ht,Bt,tt,Kt,Zt,_e]})}),n[229]=Z,n[230]=me,n[231]=De,n[232]=Re,n[233]=et,n[234]=Mt,n[235]=mn,n[236]=It,n[237]=Ht,n[238]=Bt,n[239]=tt,n[240]=Kt,n[241]=_e,n[242]=He):He=n[242],He}finally{e.f()}}function g6e({index:t,style:e,clipboard:n,isDark:r,searchTerm:s,isPinnedTop:a=!1,isPinnedTopFirst:i=!1,isDisabledPinnedMoveUp:l=!1,isDisabledPinnedMoveDown:c=!1,isExpanded:d=!1,isSelected:p=!1,isWrapText:f=!1,isDeleting:m=!1,isOverPinned:b=!1,isLinkCardPreviewEnabled:C=!0,selectedItemsCount:g=0,timeAgo:w=null,showTimeAgo:x=!1,showSelectHistoryItems:S,isCopied:E,isPasted:N,isSaved:_,isLargeView:P=!1,largeViewItemId:I,setSavingItem:T=()=>{},setLargeViewItemId:L=()=>{},pastingCountDown:A,onCopyPaste:z=()=>{},onCopy:Y=()=>{},invalidateClipboardHistoryQuery:O=()=>{},generateLinkMetaData:$,removeLinkMetaData:M=()=>Promise.resolve(),isBrokenImage:W=!1,setExpanded:V=()=>{},onMovePinnedUpDown:U=({})=>{},setWrapText:J=()=>{},setBrokenImageItem:H=()=>{},setSelectHistoryItem:F=()=>{},isDragPreview:q=!1,setRowHeight:X=()=>{}}){var ee,G,Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve;var te=sn(1);try{const{t:Ge}=Gt(),ft=v.useRef(null),Ie=v.useRef(null),Ke=v.useRef(null),ut=E||N||_,$e=it(!1),ht=it(!1),Fe=a?Ef.value==="".concat(n==null?void 0:n.historyId,"::pinned")&&!q&&!ut||ht.value:Ef.value===(n==null?void 0:n.historyId)&&!ut&&!q||ht.value,{setNodeRef:pt,listeners:Qe,isDragging:Lt}=w$({disabled:q&&!(Fe||p),data:{isPinned:a},id:a?"".concat(n==null?void 0:n.historyId,"::pinned"):(ee=n==null?void 0:n.historyId)!=null?ee:"id"});if(v.useLayoutEffect(()=>{var Ue;(Ue=ft.current)!=null&&Ue.clientHeight&&$e.value&&t!==void 0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{ft!=null&&ft.current&&X(t,(ft==null?void 0:ft.current.clientHeight)+4)})})},[$e.value,(G=ft.current)==null?void 0:G.clientHeight,X,w,x,t]),v.useEffect(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t!==void 0&&(ft!=null&&ft.current)&&X(t,(ft==null?void 0:ft.current.clientHeight)+4)})})},[d,f]),!n)return null;const Ut=v.useMemo(()=>{var Ue,Je,jt;return!n.isFavorite&&!n.isPinned?"":(Ue=ft==null?void 0:ft.current)!=null&&Ue.clientHeight&&(((Je=ft==null?void 0:ft.current)==null?void 0:Je.clientHeight)<=42&&!x||((jt=ft==null?void 0:ft.current)==null?void 0:jt.clientHeight)<=72&&x)?a&&!n.isFavorite?"":"mr-4":""},[(Z=ft==null?void 0:ft.current)==null?void 0:Z.clientHeight,x,a,n.isFavorite,n.isPinned]),wt=(se=(le=n==null?void 0:n.value)==null?void 0:le.trim())!=null?se:"",Xt=(n==null?void 0:n.isLink)&&((de=n==null?void 0:n.linkMetadata)==null?void 0:de.linkTitle)&&((ce=n==null?void 0:n.linkMetadata)==null?void 0:ce.linkDomain),$t=t===0&&n.updatedAt>Date.now()-g_,tn=i?"top-[5px]":"top-[-10px]",Pt="".concat(!a&&b&&!$t?"bg-orange-50 dark:!bg-transparent":m?"bg-red-50 dark:bg-red-950/80":ht.value?"bg-slate-100 dark:bg-slate-900 ".concat($t?"bg-teal-50/80 dark:bg-sky-900/80":""):ut?"dark:bg-green-950/80":_?"dark:bg-sky-950/80":p?"bg-yellow-50 dark:bg-amber-950/80":$t?"bg-teal-50/90 dark:bg-sky-950":"bg-white dark:bg-slate-950/80");return o.jsx(ne,ae(R({style:ae(R({},e),{opacity:(m||b)&&!q?1:Lt||q?.7:void 0}),ref:q&&!(Fe||p)?null:pt},p||Fe?Qe:{}),{children:o.jsxs(ne,{ref:ft,children:[x&&o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs ".concat(t===0?"pt-0":"pt-2"),children:w}),o.jsxs(z0,{onOpenChange:Ue=>{ht.value=Ue,Qu.value=null},children:[o.jsx(F0,{ref:Fe||p?Ke:null,children:o.jsxs(ne,{className:"relative select-none history-item",children:[o.jsx(ne,{className:"rounded-md justify-start duration-300 relative px-3 py-1 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(t===0&&n.updatedAt>Date.now()-g_&&!ut&&!m&&!p?"bg-teal-50 hover:border-slate-300 dark:bg-sky-900/40 dark:hover:border-slate-700 hover:bg-teal-50/90 hover:dark:bg-sky-950":m&&!q?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":ht.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":_&&!q?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 dark:hover:border-sky-800":ut&&!q?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":p?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 hover:border-amber-300/80 dark:hover:border-amber-800 hover:bg-amber-50/80 ".concat(a?"!border dark:!bg-amber-950":""):"hover:bg-white dark:hover:bg-slate-950/80 ".concat(P?"border-slate-500 bg-white dark:bg-slate-950 hover:dark:border-slate-500":"".concat(!a&&b?"border-orange-300 dark:border-orange-400/80 dark:bg-orange-900/80 bg-orange-50":a?"bg-slate-50 dark:!bg-slate-900 dark:hover:!bg-slate-950 hover:!border-orange-300/90 border-orange-300/50 dark:!border-orange-800/60 dark:hover:!border-orange-900":"bg-slate-50 hover:border-slate-300 dark:border-slate-800")," dark:hover:border-slate-700 dark:bg-slate-900 ").concat(q?"dark:border-slate-700":"")),onClickCapture:Ue=>{var Je,jt;Ue.shiftKey?(Ue.preventDefault(),Ue.stopPropagation(),(Je=window.getSelection())==null||Je.removeAllRanges(),L(P?null:n.historyId)):I&&!P?((jt=window.getSelection())==null||jt.removeAllRanges(),L(n.historyId)):Ef.value=a?"".concat(n.historyId,"::pinned"):n.historyId},onMouseEnter:()=>{Ef.value=a?"".concat(n.historyId,"::pinned"):n.historyId},onMouseLeave:()=>{Ef.value=null},onDoubleClickCapture:Ue=>{qu().text.trim()||(Ue.altKey||Ue.metaKey?z(n.historyId):Y(n.historyId))},children:o.jsxs(ne,{className:"".concat(S?"flex flex-row -ml-1":""),children:[S&&!q&&o.jsx(ne,{className:"flex flex-row items-center pr-2 z-100",children:o.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{F(n.historyId)},checked:p})}),n.isImageData?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full _select-text overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center w-full",children:o.jsx(vl,{src:wt,hasError:W,onErrorCallback:()=>{H(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),o.jsx("code",{className:"pb-0.5",children:s?HC(n.value,s):o.jsx("span",{children:n.valuePreview})})]}):n.isLink&&n.isImage?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full _select-text cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center w-full",children:o.jsx(vl,{src:Ir(wt),hasError:W,height:n.imageHeight,onErrorCallback:()=>{H(n.historyId)},draggable:!1,decoding:"async",onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),o.jsx("code",{className:"pb-0.5",children:s?HC(wt,s):_h(wt,n.arrLinks)})]}):n.isImage&&n.imageDataUrl?o.jsx(ne,{className:"px-0 py-1.5 flex items-center justify-center w-full",children:o.jsx("img",{src:n.imageDataUrl,draggable:!1,decoding:"async",height:n.imageHeight,onLoad:()=>{$e.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}):n.detectedLanguage&&n.valuePreview?o.jsxs(ne,{ref:Ue=>{Ue&&($e.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[o.jsx(Tx,{theme:r?gl.vsDark:gl.github,code:d?wt:n.valuePreview.trim(),language:n.detectedLanguage,children:({className:Ue,style:Je,tokens:jt,getLineProps:we,getTokenProps:Se})=>o.jsx("code",{className:"".concat(Ue),style:Je,children:jt.map((De,nt)=>{const Pe=nt===jt.length-1&&n.valueMorePreviewLines&&!d;return o.jsxs("div",ae(R({},we({line:De})),{className:"".concat(f?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:[De.map((gt,Ze)=>o.jsx("span",ae(R({},Se({token:gt})),{className:"_select-text cursor-pointer",children:s?Kl(gt.content,s):gt.content}),Ze)),Pe&&o.jsx("span",{className:"select-none",children:"..."})]}),nt)})})}),n.valueMorePreviewLines&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]}):o.jsxs(ne,{ref:Ue=>{Ue&&($e.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[Xt&&o.jsx(ne,{className:"self-start mt-1.5 mb-1 text-xs w-full overflow-hidden",children:o.jsx(V0,{title:(ye=n.linkMetadata)==null?void 0:ye.linkTitle,description:(pe=n.linkMetadata)==null?void 0:pe.linkDescription,favicon:(me=n.linkMetadata)==null?void 0:me.linkFavicon,link:(Ee=(be=n==null?void 0:n.linkMetadata)==null?void 0:be.linkUrl)!=null?Ee:null,image:(We=n.linkMetadata)==null?void 0:We.linkImage,historyId:n.historyId,domain:(qe=n.linkMetadata)==null?void 0:qe.linkDomain})}),d?o.jsxs("code",{className:"justify-start cursor-pointer",children:[s?Kl(wt,s):_h(wt,n.arrLinks),n.valueMorePreviewChars&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]}):o.jsxs("code",{className:"justify-start cursor-pointer",children:[s?HC(wt!=null?wt:"",s):dve({previewLinkCard:!Xt&&C,value:(Ve=(ot=n.valuePreview)==null?void 0:ot.trim())!=null?Ve:"",links:n.arrLinks,itemId:null,historyId:n.historyId}),n.valueMorePreviewChars&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"select-none",children:"..."}),o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]})]})]}),(n.valueMorePreviewLines||n.valueMorePreviewChars)&&o.jsxs(ne,{className:"absolute left-1 bottom-1 flex flex-row items-center rounded mb-[2px] pl-0.5 ".concat(Pt),children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-1 cursor-pointer",onClick:()=>{V(n.historyId,!d)},children:o.jsx(st,{text:d?"":Ge("Show all",{ns:"common"}),isCompact:!0,isDisabled:d||q,delayDuration:2e3,side:"bottom",sideOffset:10,children:d?o.jsxs(o.Fragment,{children:["- ",Ge("show less",{ns:"common"})]}):n!=null&&n.valueMorePreviewChars?o.jsxs(o.Fragment,{children:["+",n.valueMorePreviewChars," ",Ge("chars",{ns:"common"})]}):o.jsxs(o.Fragment,{children:["+",n.valueMorePreviewLines," ",Ge("lines",{ns:"common"})]})})}),d&&o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 cursor-pointer",onClick:()=>J(n.historyId,!f),children:o.jsx(st,{text:f?Ge("No Wrap",{ns:"common"}):Ge("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:f?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}),n.isImage&&!n.isLink&&o.jsx(ne,{className:"absolute left-1 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5 z-100",children:o.jsxs(ne,{className:"text-xs text-muted-foreground px-1.5 rounded ".concat(Pt),title:Ge("Image size in pixels",{ns:"common"}),children:[n.imageWidth,"x",n.imageHeight]})}),o.jsxs(o.Fragment,{children:[n.isFavorite&&o.jsx(Fh,{className:"absolute text-transparent z-100 ".concat(n.isPinned?"fill-orange-400 dark:fill-orange-500/60":"fill-yellow-400 dark:fill-yellow-500/70"," pointer-events-none right-[4px] top-[3px]"),size:12}),n.isPinned&&!n.isFavorite&&!a&&o.jsx(tc,{className:"absolute text-orange-400 dark:text-orange-500/60 pointer-events-none top-[-5px] right-[-5px] z-auto",size:28})]}),o.jsx(ne,{className:"absolute right-1 bottom-1 flex flex-row gap-1 items-center pb-0 pl-0.5 mb-[2px] rounded",children:Fe||p?o.jsxs("div",{className:"flex ".concat(Pt),children:[a?o.jsxs(ve,{className:"text-xs text-muted-foreground rounded px-1",children:[o.jsx(st,{text:Ge("Move Up",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||l,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"".concat(l?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:o.jsx(gx,{size:14,onClick:()=>{l||U({historyId:n.historyId,moveUp:!0})}})})}),o.jsx(st,{text:Ge("Move Down",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||c,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"".concat(c?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:o.jsx(mx,{size:14,onClick:()=>{c||U({historyId:n.historyId,moveDown:!0})}})})})]}):n.timeAgoShort&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1",children:o.jsx(st,{text:Mh(n.updatedAt,"PPpp"),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:n.timeAgoShort})}),o.jsx(st,{text:Tn.value?Ge("Copy and Paste",{ns:"common"}):Ge("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"text-xs cursor-pointer text-slate-500 hover:text-green-700 px-1 border-0 flex items-center justify-center",children:Tn.value?o.jsx(Ds,{size:14,onClick:()=>{z(n.historyId)}}):o.jsx(ba,{size:14,onClick:()=>{Y(n.historyId)}})})}),o.jsx(st,{text:Ge("Drag",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,ae(R({className:"text-xs cursor-move text-slate-500 px-1 border-0 flex items-center justify-center"},Qe),{children:o.jsx(hx,{size:16})}))}),o.jsx(st,{text:Ge("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:o.jsx(ne,{ref:Ie,className:"text-xs px-1 cursor-pointer text-slate-500 pl-0 pr-0 flex items-center justify-center",children:o.jsx(yl,{size:16,onClick:()=>{var Ue,Je,jt;(jt=Ke==null?void 0:Ke.current)==null||jt.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(Ue=Ie==null?void 0:Ie.current)==null?void 0:Ue.getBoundingClientRect().x,clientY:(Je=Ie==null?void 0:Ie.current)==null?void 0:Je.getBoundingClientRect().y}))}})})})]},"hover-panel"):o.jsxs("div",{className:"".concat(Ut),children:[n.hasMaskedWords&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-0.5",children:o.jsx(tc,{size:16})}),n.isMasked&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Secret",{ns:"common"})}),n.detectedLanguage&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.detectedLanguage}),n.isLink&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n.isVideo?Ge("Type:::Video",{ns:"common"}):qc(wt)?Ge("Type:::Email",{ns:"common"}):Ge("Type:::Link",{ns:"common"})}),n.hasEmoji&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Emoji",{ns:"common"})}),n.isImageData&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:Ge("Type:::Image Base64",{ns:"common"})})]},"labels-panel")}),g>1&&o.jsx(ne,{className:"absolute left-[-12px] top-[-12px] flex",children:o.jsx(St,{variant:m?"destructive":"default",children:g})})]})}),_?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center fade-in-animation"),children:o.jsxs(St,{variant:"default",className:"bg-sky-700 dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2 py-[1.5px] pr-4 mr-[-6px] text-[10px] uppercase font-semibold",children:[o.jsx(Sh,{size:14,className:"mr-1"}),Ge("Saved",{ns:"common"})]})}):ut&&!A?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center fade-in-animation"),children:o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 py-[1.5px] pr-4 _mr-[-6px] text-[10px] uppercase font-semibold",children:[o.jsx(en,{size:14,className:"mr-1"}),E?Ge("Copied",{ns:"common"}):N?Ge("Pasted",{ns:"common"}):""]})}):P?o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center"),children:o.jsxs(St,{variant:"default",className:"px-3 dark:bg-slate-600 hover:bg-slate-500/100 pr-2.5",children:[o.jsx(re,{className:"mr-1 bg-slate-500 dark:bg-slate-600 pointer-events-none dark:!text-slate-300",color:"muted",children:Ge("In View",{ns:"common"})}),o.jsx(In,{size:14,className:"cursor-pointer dark:text-slate-300",onClick:()=>{L(null)}})]})}):A&&A>0&&o.jsx(ne,{className:"absolute z-50 w-full ".concat(tn," flex justify-center"),children:o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white px-3 py-[1.5px] pr-4 mr-[-6px] text-[10px] font-semibold",children:Ge("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:A})})})]})}),o.jsx(FV,{historyId:n.historyId,isMasked:n.isMasked,setSavingItem:T,value:n.value,isImage:n.isImage,isText:n.isText,isPinned:n.isPinned,isFavorite:n.isFavorite,isImageData:n.isImageData,detectedLanguage:n.detectedLanguage,setLargeViewItemId:L,isLargeView:P,arrLinks:n.arrLinks,hasLinkCard:Xt,isSelected:p,invalidateClipboardHistoryQuery:O,generateLinkMetaData:$,removeLinkMetaData:M,setSelectHistoryItem:F,onCopyPaste:z})]})]})}))}finally{te.f()}}const x4=v.memo(g6e);function v6e({clipboard:t,isDark:e,searchTerm:n,isSelected:r=!1,isDeleting:s=!1,timeAgo:a=null,isCopied:i,isPasted:l,isSaved:c,setSavingItem:d=()=>{},setLargeViewItemId:p=()=>{},pastingCountDown:f=null,onCopyPaste:m=()=>{},onCopy:b=()=>{},invalidateClipboardHistoryQuery:C=()=>{},generateLinkMetaData:g=()=>Promise.resolve(),removeLinkMetaData:w=()=>Promise.resolve(),isBrokenImage:x=!1,setBrokenImageItem:S=()=>{},setSelectHistoryItem:E=()=>{}}){var _,P,I,T,L,A,z,Y,O;var N=sn(1);try{const{t:$}=Gt(),M=it(!1),[W,V]=v.useState(!1),U=v.useRef(null),J=v.useRef(null),H=(P=(_=t==null?void 0:t.value)==null?void 0:_.trim())!=null?P:"",F=(t==null?void 0:t.isLink)&&((I=t==null?void 0:t.linkMetadata)==null?void 0:I.linkTitle)&&((T=t==null?void 0:t.linkMetadata)==null?void 0:T.linkDomain),q=i||l||c;return t?o.jsxs(ne,{className:"max-w-full max-h-full select-none",children:[o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:a}),o.jsxs(z0,{onOpenChange:X=>{M.value=X},children:[o.jsx(F0,{ref:J,children:o.jsxs(ne,{className:"select-none relative",children:[o.jsx(ne,{className:"rounded-md min-w-[300px] dark:border-slate-700 justify-start duration-300 px-2.5 py-1.5 hover:shadow-sm shadow-none border-2 flex flex-col ".concat(s?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":M.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":c?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 hover:border-sky-300/80 dark:hover:border-sky-800":q?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":r?"bg-amber-50 border-amber-300 dark:bg-amber-950/80 dark:border-amber-900/80 dark:hover:border-amber-800 hover:border-amber-300/80 hover:bg-amber-50/80":"bg-white border-slate-300 dark:hover:border-slate-700 dark:bg-slate-900"),children:o.jsxs(ne,{children:[t.isImageData?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:H,hasError:x,decoding:"async",onErrorCallback:()=>{S(t.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},t.historyId)}),o.jsx("code",{className:"pb-0.5",children:n?Kl(t.valuePreview,n):o.jsx("span",{children:t.valuePreview})})]}):t.isLink&&t.isImage?o.jsxs(ne,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(H),hasError:x,height:t.imageHeight,decoding:"async",onErrorCallback:()=>{S(t.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},t.historyId)}),o.jsx("code",{className:"pb-0.5",children:n?Kl(H,n):_h(H,t.arrLinks)})]}):t.isImage&&t.imagePathFullRes?o.jsx(ne,{className:"px-0 py-1.5 flex items-center justify-center",children:o.jsx("img",{decoding:"async",srcSet:"".concat(nh(t.imagePathFullRes)," 2x"),src:nh(t.imagePathFullRes),className:"min-h-20 rounded-md shadow-sm border border-slate-100 dark:border-slate-700 object-scale-down animate-in fade-in duration-300"},t.historyId)}):t.detectedLanguage&&t.valuePreview?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full p-1.5 animate-in fade-in",children:o.jsx(Tx,{theme:e?gl.vsDark:gl.github,code:H,language:t.detectedLanguage,children:({className:X,style:te,tokens:ee,getLineProps:G,getTokenProps:Z})=>o.jsx(Nh,{options:{overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:e?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxWidth:"100%"},children:o.jsx("code",{className:"".concat(X),style:te,children:ee.map((le,se)=>o.jsx("div",ae(R({},G({line:le})),{className:"".concat(W?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:le.map((de,ce)=>o.jsx("span",ae(R({},Z({token:de})),{className:"select-text",children:n?Kl(de.content,n):de.content}),ce))}),se))})})})},t.historyId):o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full overflow-hidden animate-in fade-in",children:[F&&o.jsx(ne,{className:"self-start mt-1.5 mb-1 text-xs w-full select-text overflow-hidden",children:o.jsx(V0,{title:(L=t.linkMetadata)==null?void 0:L.linkTitle,description:(A=t.linkMetadata)==null?void 0:A.linkDescription,favicon:(z=t.linkMetadata)==null?void 0:z.linkFavicon,link:t==null?void 0:t.arrLinks[0],image:(Y=t.linkMetadata)==null?void 0:Y.linkImage,domain:(O=t.linkMetadata)==null?void 0:O.linkDomain})}),o.jsxs("code",{className:"justify-start select-text ".concat(W?"whitespace-break-spaces":"whitespace-normal"),children:[n?Kl(H,n):_h(H,t.arrLinks),t.valueMorePreviewChars&&o.jsxs(ne,{className:"select-none",children:[" "," "," "]})]})]},t.historyId),o.jsx(ne,{className:"flex flex-row gap-1 items-center mt-1",children:o.jsx(ne,{className:"flex flex-row gap-1 items-center pb-1 ml-auto",children:o.jsxs(o.Fragment,{children:[!t.isImage&&o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 ml-1.5 cursor-pointer",onClick:()=>V(!W),children:o.jsx(st,{text:W?$("No Wrap",{ns:"common"}):$("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:W?o.jsx(vz,{width:20,height:20,strokeWidth:1.5}):o.jsx(Gce,{width:20,height:20,strokeWidth:1.5})})}),t.isImage&&!t.isLink&&o.jsxs(ne,{className:"flex flex-row gap-1 rounded items-center",children:[o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Image",{ns:"common"})}),o.jsxs(ne,{className:"text-[11px] text-muted-foreground px-1 pt-0.5",children:[t.imageWidth,"x",t.imageHeight]})]}),(t.isMasked||t.hasMaskedWords)&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(t.hasMaskedWords?"px-1":"px-1.5"),children:t.isMasked?$("Type:::Secret",{ns:"common"}):o.jsx(st,{text:$("Found Masked Words",{ns:"common"}),delayDuration:600,isCompact:!0,side:"bottom",sideOffset:6,children:o.jsx(tc,{size:18})})}),t.detectedLanguage&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:t.detectedLanguage}),t.isLink&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:t.isVideo?$("Type:::Video",{ns:"common"}):$("Type:::Link",{ns:"common"})}),t.hasEmoji&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Emoji",{ns:"common"})}),t.isImageData&&o.jsx(ne,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:$("Type:::Image Base64",{ns:"common"})}),o.jsx(st,{text:$("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(ne,{className:"text-xs cursor-pointer hover:text-green-700 text-slate-500 px-0 ml-1.5 border-0 flex items-center justify-center",children:Tn.value?o.jsx(Ds,{size:18,onClick:()=>{m(t.historyId)}}):o.jsx(ba,{size:18,onClick:()=>{b(t.historyId)}})})}),o.jsx(st,{text:$("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:o.jsx(ne,{ref:U,className:"text-xs cursor-pointer text-slate-500 pl-2 pr-0 flex items-center justify-center",children:o.jsx(yl,{size:18,onClick:()=>{var X,te,ee;(ee=J==null?void 0:J.current)==null||ee.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(X=U==null?void 0:U.current)==null?void 0:X.getBoundingClientRect().x,clientY:(te=U==null?void 0:U.current)==null?void 0:te.getBoundingClientRect().y}))}})})})]})})})]})}),c?o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] flex justify-center animate-in fade-in-500 duration-500",children:o.jsxs(St,{variant:"default",className:"dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2",children:[o.jsx(Sh,{size:14,className:"mr-1"}),$("Saved",{ns:"common"})]})}):q&&f===null?o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] animate-in fade-in-500 duration-500 slide-in-from-bottom-1 flex justify-center",children:o.jsxs(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pr-4",children:[o.jsx(en,{size:14,className:"mr-1"}),i?$("Copied",{ns:"common"}):l?$("Pasted",{ns:"common"}):""]})}):f!==null&&f>0&&o.jsx(ne,{className:"absolute z-50 w-full top-[-13px] slide-in-from-bottom-1 flex justify-center",children:o.jsx(St,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pl-3",children:f&&f>0&&$("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:f})})})]})}),o.jsx(FV,{historyId:t.historyId,isPinned:t.isPinned,isFavorite:t.isFavorite,isMasked:t.isMasked,detectedLanguage:t.detectedLanguage,setSavingItem:d,value:t.value,isImage:t.isImage,isText:t.isText,isImageData:t.isImageData,setLargeViewItemId:p,isLargeView:!0,arrLinks:t.arrLinks,hasLinkCard:F,isSelected:r,invalidateClipboardHistoryQuery:C,generateLinkMetaData:g,removeLinkMetaData:w,setSelectHistoryItem:E,onCopyPaste:m})]}),o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:o.jsxs(St,{variant:"outline",className:"bg-slate-100 px-2 pl-2.5 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{p(null),Ws.value=null},children:[$("Close",{ns:"common"}),o.jsx(In,{size:14,className:"ml-1"})]})})]}):null}finally{N.f()}}const x6e=v.memo(v6e);function y6e(t){const e=Te(6);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("path",{fill:"currentColor",d:"M19.14 29.714H8.502a4.27 4.27 0 0 1-4.271-4.271V14.934C.821 13.47.273 8.863 3.247 6.641a4.822 4.822 0 0 1 6.685.892h9.207a4.27 4.27 0 0 1 4.271 4.271v13.639a4.27 4.27 0 0 1-4.27 4.271ZM6.162 6.904c-2.778 0-4.515 3.007-3.125 5.414 1.388 2.405 4.862 2.405 6.251 0a3.622 3.622 0 0 0 .484-1.805 3.614 3.614 0 0 0-3.61-3.609Zm16.029 4.9a3.052 3.052 0 0 0-3.051-3.052h-8.492c1.264 3.166-1.078 6.606-4.486 6.59a4.963 4.963 0 0 1-.71-.07v10.171a3.05 3.05 0 0 0 3.05 3.05H19.14a3.05 3.05 0 0 0 3.051-3.05V11.804ZM18.788 23.24a.609.609 0 0 0-.61-.609H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.61Zm0-4.616a.61.61 0 0 0-.61-.61H9.465a.61.61 0 0 0 0 1.219h8.713a.61.61 0 0 0 .61-.609Zm0-4.616a.609.609 0 0 0-.61-.609h-5.806a.609.609 0 1 0 0 1.219h5.806a.61.61 0 0 0 .61-.61Zm-12.017-1.7v-1.795a.61.61 0 0 0-.609-.611h-1.32a.611.611 0 0 0 0 1.22h.71v1.186a.61.61 0 0 0 1.219 0Z",transform:"rotate(180 12.364 17.455)"}),e[0]=n):n=e[0];const r="".concat(t.lightingColor||"white");let s;e[1]!==r?(s=o.jsx("path",{stroke:"currentColor",fill:r,d:"M7.992 4.719h5.81c.399 0 .723.323.723.724v1.678a.724.724 0 0 1-.723.724h-5.81a.724.724 0 0 1-.724-.724V5.443c0-.401.323-.724.724-.724Z",transform:"translate(.006 -.486)"}),e[1]=r,e[2]=s):s=e[2];let a;return e[3]!==t.className||e[4]!==s?(a=o.jsxs("svg",{className:t.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0.294 3.317 24.273 26.397",children:[n,s]}),e[3]=t.className,e[4]=s,e[5]=a):a=e[5],a}const b6e=t=>{const e=Te(364),{selectedHistoryItems:n,setShowSelectHistoryItems:r,isDeleting:s,onDelete:a,setIsDeleting:i,isDark:l,setSelectHistoryItem:c,setSelectedHistoryItems:d,showSelectHistoryItems:p}=t,{t:f}=Gt(),{deleteClipboardHistoryByIds:m}=U7(),{clearClipboardHistoryOlderThan:b}=Y5e(),C=ua(),{isHistoryEnabled:g,setIsHistoryEnabled:w,isHistoryAutoUpdateOnCaputureEnabled:x,setIsHistoryAutoUpdateOnCaputureEnabled:S}=Tt(Cr),{deleteClipboardHistoryItems:E}=Tt(_i);let N;e[0]===Symbol.for("react.memo_cache_sentinel")?(N=["alt+s"],e[0]=N):N=e[0];let _;e[1]!==r||e[2]!==p?(_=()=>{r(!p)},e[1]=r,e[2]=p,e[3]=_):_=e[3],Vs(N,_);let P;e[4]===Symbol.for("react.memo_cache_sentinel")?(P=["control+s"],e[4]=P):P=e[4];let I;e[5]!==c?(I=()=>{Ef.value&&c(Ef.value)},e[5]=c,e[6]=I):I=e[6],Vs(P,I);let T;e[7]===Symbol.for("react.memo_cache_sentinel")?(T=["alt+h"],e[7]=T):T=e[7];let L;e[8]!==w||e[9]!==g?(L=()=>{w(!g)},e[8]=w,e[9]=g,e[10]=L):L=e[10],Vs(T,L);let A;e[11]===Symbol.for("react.memo_cache_sentinel")?(A=["alt+a"],e[11]=A):A=e[11];let z;e[12]!==S||e[13]!==x?(z=()=>{S(!x)},e[12]=S,e[13]=x,e[14]=z):z=e[14],Vs(A,z);let Y,O;e[15]===Symbol.for("react.memo_cache_sentinel")?(Y=["alt+u"],O=()=>{Z8.getState().updateClipboardHistory()},e[15]=Y,e[16]=O):(Y=e[15],O=e[16]),Vs(Y,O);let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=["alt+d"],e[17]=$):$=e[17];let M;e[18]!==d?(M=()=>{d([])},e[18]=d,e[19]=M):M=e[19],Vs($,M);let W;e[20]!==f||e[21]!==b||e[22]!==d||e[23]!==r||e[24]!==i||e[25]!==a?(W=(Pa,ri)=>ge(void 0,null,function*(){const Z0={days:ri==="1"?f("Day",{ns:"calendar"}):f("Days",{ns:"calendar"}),weeks:ri==="1"?f("Week",{ns:"calendar"}):f("Weeks",{ns:"calendar"}),months:ri==="1"?f("Month",{ns:"calendar"}):f("Months",{ns:"calendar"}),year:ri==="1"?f("Year",{ns:"calendar"}):f("Years",{ns:"calendar"})},si=ri==="0"&&Pa==="days",Ak=si?f("Do you really want to remove ALL clipboard history items?",{ns:"history"}):f("Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}",{ns:"history",olderThen:ri,durationType:Z0[Pa]});if(yield S2(Ak,{title:f("{{isAll}} Clipboard History",{ns:"history",isAll:si?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),okLabel:f("{{isAll}} Clipboard History",{ns:"history",isAll:si?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),cancelLabel:f("Cancel",{ns:"common"})}))try{if(si&&!(yield S2(f("Please confirm your action!",{ns:"common"}),{title:f("Confirm Clear All History",{ns:"history"}),okLabel:f("Confirm",{ns:"common"}),cancelLabel:f("Cancel",{ns:"common"})})))return;yield b({durationType:Pa,olderThen:ri}),setTimeout(()=>{d([]),r(!1),i(!1),a(si)},400),yield yo(f("All done! History's been cleared.",{ns:"history"}),"Success")}catch(Ox){console.error(Ox),yield yo(f("Something goes wrong! Please try again.",{ns:"common"}),"Error")}}),e[20]=f,e[21]=b,e[22]=d,e[23]=r,e[24]=i,e[25]=a,e[26]=W):W=e[26];const V=W,U=l?"#0f182a":"#f1f5f9";let J;e[27]!==U?(J=o.jsx(y6e,{className:"w-5 max-w-[22px] min-w-[16px] stroke-[1.3px]",lightingColor:U}),e[27]=U,e[28]=J):J=e[28];let H;e[29]!==n.length?(H=n.length>0&&o.jsx(St,{variant:"slate",className:"absolute left-[-10px] top-[-10px]",children:n.length}),e[29]=n.length,e[30]=H):H=e[30];let F;e[31]!==J||e[32]!==H?(F=o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"light",id:"history-menu-button_tour",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[J,H]})}),e[31]=J,e[32]=H,e[33]=F):F=e[33];let q;e[34]!==p||e[35]!==r||e[36]!==f?(q=p?o.jsxs(rt,{onClick:()=>{r(!1)},children:[o.jsx(Ez,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:f("Hide Muli Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}):o.jsxs(rt,{onClick:()=>{r(!0)},children:[o.jsx(jz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:f("Multi Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}),e[34]=p,e[35]=r,e[36]=f,e[37]=q):q=e[37];const X=n.length===0;let te;e[38]!==d?(te=()=>{d([])},e[38]=d,e[39]=te):te=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=o.jsx(eE,{className:"mr-2 h-4 w-4"}),e[40]=ee):ee=e[40];let G;e[41]!==f?(G=f("Deselect All",{ns:"common"}),e[41]=f,e[42]=G):G=e[42];let Z;e[43]!==G?(Z=o.jsx(re,{className:"mr-1",children:G}),e[43]=G,e[44]=Z):Z=e[44];let le;e[45]===Symbol.for("react.memo_cache_sentinel")?(le=o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+D"})}),e[45]=le):le=e[45];let se;e[46]!==X||e[47]!==te||e[48]!==Z?(se=o.jsxs(rt,{disabled:X,onClick:te,children:[ee,Z,le]}),e[46]=X,e[47]=te,e[48]=Z,e[49]=se):se=e[49];let de;e[50]===Symbol.for("react.memo_cache_sentinel")?(de=o.jsx(kn,{}),e[50]=de):de=e[50];const ce=n.length===0;let ye;e[51]!==n||e[52]!==d?(ye=()=>{xa.value=nl.CLIP,t0.value=Array.from(new Set([...n])),setTimeout(()=>{d([])},400)},e[51]=n,e[52]=d,e[53]=ye):ye=e[53];let pe;e[54]===Symbol.for("react.memo_cache_sentinel")?(pe=o.jsx(Jae,{className:"mr-2 h-4 w-4"}),e[54]=pe):pe=e[54];let me;e[55]!==f?(me=f("Add to Board",{ns:"dashboard"}),e[55]=f,e[56]=me):me=e[56];let be;e[57]!==me?(be=o.jsx(re,{children:me}),e[57]=me,e[58]=be):be=e[58];let Ee;e[59]!==ce||e[60]!==ye||e[61]!==be?(Ee=o.jsxs(rt,{disabled:ce,onClick:ye,children:[pe,be]}),e[59]=ce,e[60]=ye,e[61]=be,e[62]=Ee):Ee=e[62];let We;e[63]===Symbol.for("react.memo_cache_sentinel")?(We=o.jsx(kn,{}),e[63]=We):We=e[63];const qe=n.length===0;let ot;e[64]!==s||e[65]!==m||e[66]!==n||e[67]!==a||e[68]!==E||e[69]!==d||e[70]!==r||e[71]!==i?(ot=Pa=>ge(void 0,null,function*(){s?(yield m({historyIds:n}),setTimeout(()=>{a(),E(n),d([]),r(!1),i(!1)},400)):(Pa.preventDefault(),i(!0),setTimeout(()=>{i(!1)},3e3))}),e[64]=s,e[65]=m,e[66]=n,e[67]=a,e[68]=E,e[69]=d,e[70]=r,e[71]=i,e[72]=ot):ot=e[72];const Ve="mr-2 h-4 w-4 ".concat(s?"text-red-500":"");let Ge;e[73]!==Ve?(Ge=o.jsx(kr,{className:Ve}),e[73]=Ve,e[74]=Ge):Ge=e[74];const ft="mr-1 ".concat(s?"!text-red-500":"");let Ie;e[75]!==s||e[76]!==f?(Ie=s?f("Click to Confirm",{ns:"common"}):f("Delete",{ns:"common"}),e[75]=s,e[76]=f,e[77]=Ie):Ie=e[77];let Ke;e[78]!==ft||e[79]!==Ie?(Ke=o.jsx(re,{className:ft,children:Ie}),e[78]=ft,e[79]=Ie,e[80]=Ke):Ke=e[80];let ut;e[81]!==n.length||e[82]!==s?(ut=n.length>0&&o.jsx(o.Fragment,{children:s?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:n.length}):o.jsx(St,{variant:"slateSecondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:n.length})}),e[81]=n.length,e[82]=s,e[83]=ut):ut=e[83];let $e;e[84]!==Ke||e[85]!==ut?($e=o.jsxs(ve,{children:[Ke,ut]}),e[84]=Ke,e[85]=ut,e[86]=$e):$e=e[86];let ht;e[87]!==qe||e[88]!==ot||e[89]!==Ge||e[90]!==$e?(ht=o.jsxs(rt,{disabled:qe,onClick:ot,children:[Ge,$e]}),e[87]=qe,e[88]=ot,e[89]=Ge,e[90]=$e,e[91]=ht):ht=e[91];let Fe;e[92]===Symbol.for("react.memo_cache_sentinel")?(Fe=o.jsx(mae,{className:"mr-2 h-4 w-4"}),e[92]=Fe):Fe=e[92];let pt;e[93]!==f?(pt=f("Clear History",{ns:"history"}),e[93]=f,e[94]=pt):pt=e[94];let Qe;e[95]!==pt?(Qe=o.jsxs(qs,{children:[Fe,o.jsxs(re,{children:[pt," ..."]})]}),e[95]=pt,e[96]=Qe):Qe=e[96];let Lt;e[97]!==f?(Lt=f("Days",{ns:"calendar"}),e[97]=f,e[98]=Lt):Lt=e[98];let Ut;e[99]!==Lt?(Ut=o.jsx(qs,{children:o.jsx(re,{children:Lt})}),e[99]=Lt,e[100]=Ut):Ut=e[100];let wt;e[101]!==V?(wt=()=>{V("days","1")},e[101]=V,e[102]=wt):wt=e[102];let Xt;e[103]!==f?(Xt=f("Day",{ns:"calendar"}),e[103]=f,e[104]=Xt):Xt=e[104];let $t;e[105]!==Xt?($t=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",Xt]}),e[105]=Xt,e[106]=$t):$t=e[106];let tn;e[107]!==f?(tn=f("and older",{ns:"calendar"}),e[107]=f,e[108]=tn):tn=e[108];let Pt;e[109]!==wt||e[110]!==$t||e[111]!==tn?(Pt=o.jsxs(rt,{onClick:wt,children:[$t,tn]}),e[109]=wt,e[110]=$t,e[111]=tn,e[112]=Pt):Pt=e[112];let Ue;e[113]!==V?(Ue=()=>{V("days","3")},e[113]=V,e[114]=Ue):Ue=e[114];let Je;e[115]!==f?(Je=f("Days",{ns:"calendar"}),e[115]=f,e[116]=Je):Je=e[116];let jt;e[117]!==Je?(jt=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Je]}),e[117]=Je,e[118]=jt):jt=e[118];let we;e[119]!==f?(we=f("and older",{ns:"calendar"}),e[119]=f,e[120]=we):we=e[120];let Se;e[121]!==Ue||e[122]!==jt||e[123]!==we?(Se=o.jsxs(rt,{onClick:Ue,children:[jt,we]}),e[121]=Ue,e[122]=jt,e[123]=we,e[124]=Se):Se=e[124];let De;e[125]!==V?(De=()=>{V("days","5")},e[125]=V,e[126]=De):De=e[126];let nt;e[127]!==f?(nt=f("Days",{ns:"calendar"}),e[127]=f,e[128]=nt):nt=e[128];let Pe;e[129]!==nt?(Pe=o.jsxs(re,{className:"font-semibold mr-1",children:["5 ",nt]}),e[129]=nt,e[130]=Pe):Pe=e[130];let gt;e[131]!==f?(gt=f("and older",{ns:"calendar"}),e[131]=f,e[132]=gt):gt=e[132];let Ze;e[133]!==De||e[134]!==Pe||e[135]!==gt?(Ze=o.jsxs(rt,{onClick:De,children:[Pe,gt]}),e[133]=De,e[134]=Pe,e[135]=gt,e[136]=Ze):Ze=e[136];let Re;e[137]!==V?(Re=()=>{V("days","7")},e[137]=V,e[138]=Re):Re=e[138];let Oe;e[139]!==f?(Oe=f("Days",{ns:"calendar"}),e[139]=f,e[140]=Oe):Oe=e[140];let et;e[141]!==Oe?(et=o.jsxs(re,{className:"font-semibold mr-1",children:["7 ",Oe]}),e[141]=Oe,e[142]=et):et=e[142];let Et;e[143]!==f?(Et=f("and older",{ns:"calendar"}),e[143]=f,e[144]=Et):Et=e[144];let bt;e[145]!==Re||e[146]!==et||e[147]!==Et?(bt=o.jsxs(rt,{onClick:Re,children:[et,Et]}),e[145]=Re,e[146]=et,e[147]=Et,e[148]=bt):bt=e[148];let _t;e[149]!==Pt||e[150]!==Se||e[151]!==Ze||e[152]!==bt?(_t=o.jsxs(Ks,{children:[Pt,Se,Ze,bt]}),e[149]=Pt,e[150]=Se,e[151]=Ze,e[152]=bt,e[153]=_t):_t=e[153];let Mt;e[154]!==Ut||e[155]!==_t?(Mt=o.jsxs(sa,{children:[Ut,_t]}),e[154]=Ut,e[155]=_t,e[156]=Mt):Mt=e[156];let an;e[157]!==f?(an=f("Weeks",{ns:"calendar"}),e[157]=f,e[158]=an):an=e[158];let dn;e[159]!==an?(dn=o.jsx(qs,{children:o.jsx(re,{children:an})}),e[159]=an,e[160]=dn):dn=e[160];let fn;e[161]!==V?(fn=()=>{V("weeks","1")},e[161]=V,e[162]=fn):fn=e[162];let mn;e[163]!==f?(mn=f("Week",{ns:"calendar"}),e[163]=f,e[164]=mn):mn=e[164];let hn;e[165]!==mn?(hn=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",mn]}),e[165]=mn,e[166]=hn):hn=e[166];let nn;e[167]!==f?(nn=f("and older",{ns:"calendar"}),e[167]=f,e[168]=nn):nn=e[168];let on;e[169]!==fn||e[170]!==hn||e[171]!==nn?(on=o.jsxs(rt,{onClick:fn,children:[hn,nn]}),e[169]=fn,e[170]=hn,e[171]=nn,e[172]=on):on=e[172];let Sn;e[173]!==V?(Sn=()=>{V("weeks","2")},e[173]=V,e[174]=Sn):Sn=e[174];let pn;e[175]!==f?(pn=f("Weeks",{ns:"calendar"}),e[175]=f,e[176]=pn):pn=e[176];let rn;e[177]!==pn?(rn=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",pn]}),e[177]=pn,e[178]=rn):rn=e[178];let ct;e[179]!==f?(ct=f("and older",{ns:"calendar"}),e[179]=f,e[180]=ct):ct=e[180];let xe;e[181]!==Sn||e[182]!==rn||e[183]!==ct?(xe=o.jsxs(rt,{onClick:Sn,children:[rn,ct]}),e[181]=Sn,e[182]=rn,e[183]=ct,e[184]=xe):xe=e[184];let Ye;e[185]!==V?(Ye=()=>{V("weeks","3")},e[185]=V,e[186]=Ye):Ye=e[186];let dt;e[187]!==f?(dt=f("Weeks",{ns:"calendar"}),e[187]=f,e[188]=dt):dt=e[188];let mt;e[189]!==dt?(mt=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",dt]}),e[189]=dt,e[190]=mt):mt=e[190];let xt;e[191]!==f?(xt=f("and older",{ns:"calendar"}),e[191]=f,e[192]=xt):xt=e[192];let It;e[193]!==Ye||e[194]!==mt||e[195]!==xt?(It=o.jsxs(rt,{onClick:Ye,children:[mt,xt]}),e[193]=Ye,e[194]=mt,e[195]=xt,e[196]=It):It=e[196];let At;e[197]!==V?(At=()=>{V("weeks","4")},e[197]=V,e[198]=At):At=e[198];let Ht;e[199]!==f?(Ht=f("Weeks",{ns:"calendar"}),e[199]=f,e[200]=Ht):Ht=e[200];let Bt;e[201]!==Ht?(Bt=o.jsxs(re,{className:"font-semibold mr-1",children:["4 ",Ht]}),e[201]=Ht,e[202]=Bt):Bt=e[202];let tt;e[203]!==f?(tt=f("and older",{ns:"calendar"}),e[203]=f,e[204]=tt):tt=e[204];let Kt;e[205]!==At||e[206]!==Bt||e[207]!==tt?(Kt=o.jsxs(rt,{onClick:At,children:[Bt,tt]}),e[205]=At,e[206]=Bt,e[207]=tt,e[208]=Kt):Kt=e[208];let Zt;e[209]!==on||e[210]!==xe||e[211]!==It||e[212]!==Kt?(Zt=o.jsxs(Ks,{children:[on,xe,It,Kt]}),e[209]=on,e[210]=xe,e[211]=It,e[212]=Kt,e[213]=Zt):Zt=e[213];let vn;e[214]!==dn||e[215]!==Zt?(vn=o.jsxs(sa,{children:[dn,Zt]}),e[214]=dn,e[215]=Zt,e[216]=vn):vn=e[216];let oe;e[217]!==f?(oe=f("Months",{ns:"calendar"}),e[217]=f,e[218]=oe):oe=e[218];let fe;e[219]!==oe?(fe=o.jsx(qs,{children:o.jsx(re,{children:oe})}),e[219]=oe,e[220]=fe):fe=e[220];let Xe;e[221]!==V?(Xe=()=>{V("months","1")},e[221]=V,e[222]=Xe):Xe=e[222];let Me;e[223]!==f?(Me=f("Month",{ns:"calendar"}),e[223]=f,e[224]=Me):Me=e[224];let _e;e[225]!==Me?(_e=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",Me]}),e[225]=Me,e[226]=_e):_e=e[226];let He;e[227]!==f?(He=f("and older",{ns:"calendar"}),e[227]=f,e[228]=He):He=e[228];let Ct;e[229]!==Xe||e[230]!==_e||e[231]!==He?(Ct=o.jsxs(rt,{onClick:Xe,children:[_e,He]}),e[229]=Xe,e[230]=_e,e[231]=He,e[232]=Ct):Ct=e[232];let cn;e[233]!==V?(cn=()=>{V("months","2")},e[233]=V,e[234]=cn):cn=e[234];let zn;e[235]!==f?(zn=f("Months",{ns:"calendar"}),e[235]=f,e[236]=zn):zn=e[236];let Mn;e[237]!==zn?(Mn=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",zn]}),e[237]=zn,e[238]=Mn):Mn=e[238];let Gr;e[239]!==f?(Gr=f("and older",{ns:"calendar"}),e[239]=f,e[240]=Gr):Gr=e[240];let yn;e[241]!==cn||e[242]!==Mn||e[243]!==Gr?(yn=o.jsxs(rt,{onClick:cn,children:[Mn,Gr]}),e[241]=cn,e[242]=Mn,e[243]=Gr,e[244]=yn):yn=e[244];let Yr;e[245]!==V?(Yr=()=>{V("months","3")},e[245]=V,e[246]=Yr):Yr=e[246];let Ai;e[247]!==f?(Ai=f("Months",{ns:"calendar"}),e[247]=f,e[248]=Ai):Ai=e[248];let Po;e[249]!==Ai?(Po=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Ai]}),e[249]=Ai,e[250]=Po):Po=e[250];let ms;e[251]!==f?(ms=f("and older",{ns:"calendar"}),e[251]=f,e[252]=ms):ms=e[252];let ac;e[253]!==Yr||e[254]!==Po||e[255]!==ms?(ac=o.jsxs(rt,{onClick:Yr,children:[Po,ms]}),e[253]=Yr,e[254]=Po,e[255]=ms,e[256]=ac):ac=e[256];let oc;e[257]!==V?(oc=()=>{V("months","6")},e[257]=V,e[258]=oc):oc=e[258];let ti;e[259]!==f?(ti=f("Months",{ns:"calendar"}),e[259]=f,e[260]=ti):ti=e[260];let kl;e[261]!==ti?(kl=o.jsxs(re,{className:"font-semibold mr-1",children:["6 ",ti]}),e[261]=ti,e[262]=kl):kl=e[262];let ic;e[263]!==f?(ic=f("and older",{ns:"calendar"}),e[263]=f,e[264]=ic):ic=e[264];let Cl;e[265]!==oc||e[266]!==kl||e[267]!==ic?(Cl=o.jsxs(rt,{onClick:oc,children:[kl,ic]}),e[265]=oc,e[266]=kl,e[267]=ic,e[268]=Cl):Cl=e[268];let lc;e[269]!==Ct||e[270]!==yn||e[271]!==ac||e[272]!==Cl?(lc=o.jsxs(Ks,{children:[Ct,yn,ac,Cl]}),e[269]=Ct,e[270]=yn,e[271]=ac,e[272]=Cl,e[273]=lc):lc=e[273];let cc;e[274]!==fe||e[275]!==lc?(cc=o.jsxs(sa,{children:[fe,lc]}),e[274]=fe,e[275]=lc,e[276]=cc):cc=e[276];let uc;e[277]!==f?(uc=f("Years",{ns:"calendar"}),e[277]=f,e[278]=uc):uc=e[278];let dc;e[279]!==uc?(dc=o.jsx(qs,{children:o.jsx(re,{children:uc})}),e[279]=uc,e[280]=dc):dc=e[280];let gu;e[281]!==V?(gu=()=>{V("year","1")},e[281]=V,e[282]=gu):gu=e[282];let vu;e[283]!==f?(vu=f("Year",{ns:"calendar"}),e[283]=f,e[284]=vu):vu=e[284];let fc;e[285]!==vu?(fc=o.jsxs(re,{className:"font-semibold mr-1",children:["1 ",vu]}),e[285]=vu,e[286]=fc):fc=e[286];let da;e[287]!==f?(da=f("and older",{ns:"calendar"}),e[287]=f,e[288]=da):da=e[288];let xu;e[289]!==gu||e[290]!==fc||e[291]!==da?(xu=o.jsxs(rt,{onClick:gu,children:[fc,da]}),e[289]=gu,e[290]=fc,e[291]=da,e[292]=xu):xu=e[292];let yu;e[293]!==V?(yu=()=>{V("year","2")},e[293]=V,e[294]=yu):yu=e[294];let Li;e[295]!==f?(Li=f("Years",{ns:"calendar"}),e[295]=f,e[296]=Li):Li=e[296];let ni;e[297]!==Li?(ni=o.jsxs(re,{className:"font-semibold mr-1",children:["2 ",Li]}),e[297]=Li,e[298]=ni):ni=e[298];let bu;e[299]!==f?(bu=f("and older",{ns:"calendar"}),e[299]=f,e[300]=bu):bu=e[300];let wu;e[301]!==yu||e[302]!==ni||e[303]!==bu?(wu=o.jsxs(rt,{onClick:yu,children:[ni,bu]}),e[301]=yu,e[302]=ni,e[303]=bu,e[304]=wu):wu=e[304];let ku;e[305]!==V?(ku=()=>{V("year","3")},e[305]=V,e[306]=ku):ku=e[306];let Cu;e[307]!==f?(Cu=f("Years",{ns:"calendar"}),e[307]=f,e[308]=Cu):Cu=e[308];let Sl;e[309]!==Cu?(Sl=o.jsxs(re,{className:"font-semibold mr-1",children:["3 ",Cu]}),e[309]=Cu,e[310]=Sl):Sl=e[310];let hc;e[311]!==f?(hc=f("and older",{ns:"calendar"}),e[311]=f,e[312]=hc):hc=e[312];let Su;e[313]!==ku||e[314]!==Sl||e[315]!==hc?(Su=o.jsxs(rt,{onClick:ku,children:[Sl,hc]}),e[313]=ku,e[314]=Sl,e[315]=hc,e[316]=Su):Su=e[316];let pc;e[317]!==xu||e[318]!==wu||e[319]!==Su?(pc=o.jsxs(Ks,{children:[xu,wu,Su]}),e[317]=xu,e[318]=wu,e[319]=Su,e[320]=pc):pc=e[320];let mc;e[321]!==dc||e[322]!==pc?(mc=o.jsxs(sa,{children:[dc,pc]}),e[321]=dc,e[322]=pc,e[323]=mc):mc=e[323];let gc;e[324]===Symbol.for("react.memo_cache_sentinel")?(gc=o.jsx(kn,{}),e[324]=gc):gc=e[324];let Ri;e[325]!==V?(Ri=()=>{V("days","0")},e[325]=V,e[326]=Ri):Ri=e[326];let jl;e[327]!==f?(jl=f("Clear All History",{ns:"history"}),e[327]=f,e[328]=jl):jl=e[328];let vc;e[329]!==jl?(vc=o.jsx(re,{className:"font-semibold",children:jl}),e[329]=jl,e[330]=vc):vc=e[330];let xc;e[331]!==Ri||e[332]!==vc?(xc=o.jsx(rt,{onClick:Ri,children:vc}),e[331]=Ri,e[332]=vc,e[333]=xc):xc=e[333];let yc;e[334]===Symbol.for("react.memo_cache_sentinel")?(yc=o.jsx(kn,{}),e[334]=yc):yc=e[334];let ju;e[335]!==C?(ju=()=>{C("/app-settings/history",{replace:!0})},e[335]=C,e[336]=ju):ju=e[336];let of;e[337]===Symbol.for("react.memo_cache_sentinel")?(of=o.jsx(rE,{className:"mr-2 h-4 w-4"}),e[337]=of):of=e[337];let Rs;e[338]!==f?(Rs=f("Auto-Clear Settings",{ns:"history"}),e[338]=f,e[339]=Rs):Rs=e[339];let Eu;e[340]!==Rs?(Eu=o.jsxs(re,{children:[Rs," ..."]}),e[340]=Rs,e[341]=Eu):Eu=e[341];let Nu;e[342]!==ju||e[343]!==Eu?(Nu=o.jsxs(rt,{onClick:ju,children:[of,Eu]}),e[342]=ju,e[343]=Eu,e[344]=Nu):Nu=e[344];let El;e[345]!==Mt||e[346]!==vn||e[347]!==cc||e[348]!==mc||e[349]!==xc||e[350]!==Nu?(El=o.jsxs(Ks,{children:[Mt,vn,cc,mc,gc,xc,yc,Nu]}),e[345]=Mt,e[346]=vn,e[347]=cc,e[348]=mc,e[349]=xc,e[350]=Nu,e[351]=El):El=e[351];let bc;e[352]!==Qe||e[353]!==El?(bc=o.jsxs(sa,{children:[Qe,El]}),e[352]=Qe,e[353]=El,e[354]=bc):bc=e[354];let Ta;e[355]!==q||e[356]!==se||e[357]!==Ee||e[358]!==ht||e[359]!==bc?(Ta=o.jsx(Wn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:o.jsxs(jH,{children:[q,se,de,Ee,We,ht,bc]})}),e[355]=q,e[356]=se,e[357]=Ee,e[358]=ht,e[359]=bc,e[360]=Ta):Ta=e[360];let _u;return e[361]!==F||e[362]!==Ta?(_u=o.jsxs(Kn,{children:[F,Ta]}),e[361]=F,e[362]=Ta,e[363]=_u):_u=e[363],_u},y4={STARRED:"starred",PINNED:"pinned",TEXT:"text",LINK:"link",IMAGE:"image",VIDEO:"video",EMOJI:"emoji",SECRET:"secret",CODE:"code"},w6e=t=>{const e=Te(42),{historyFilters:n,setHistoryFilters:r,codeFilters:s,avaliableCodeLanguages:a,setCodeFilters:i,children:l}=t,{t:c}=Gt();let d;e[0]!==r||e[1]!==n?(d=(A,z)=>{if(z){r([A]);return}n.includes(A)?r(n.filter(Y=>Y!==A)):r([...n,A])},e[0]=r,e[1]=n,e[2]=d):d=e[2];const p=d;let f;e[3]!==i||e[4]!==s?(f=(A,z)=>{if(z){i([A]);return}s.includes(A)?i(s.filter(Y=>Y!==A)):i([...s,A])},e[3]=i,e[4]=s,e[5]=f):f=e[5];const m=f;let b;e[6]!==n||e[7]!==i?(b=()=>{n.includes(y4.CODE)||i([])},e[6]=n,e[7]=i,e[8]=b):b=e[8];let C;e[9]!==n?(C=[n],e[9]=n,e[10]=C):C=e[10],v.useEffect(b,C);const{isSwapPanels:g}=Tt(Ls);let w;e[11]!==l?(w=o.jsx(Gn,{asChild:!0,children:l}),e[11]=l,e[12]=w):w=e[12];const x=!n.length;let S;e[13]!==r?(S=A=>{A.preventDefault(),A.stopPropagation(),r([])},e[13]=r,e[14]=S):S=e[14];let E;e[15]!==n.length||e[16]!==c?(E=n.length?o.jsxs(ve,{className:"justify-between items-center w-full",children:[o.jsx(ne,{className:"w-6 h-4"}),o.jsx(re,{children:c("Filters:::Clear Filters",{ns:"history"})}),o.jsx(In,{className:"w-6 h-4"})]}):o.jsx(re,{children:c("Filters:::Select Filters",{ns:"history"})}),e[15]=n.length,e[16]=c,e[17]=E):E=e[17];let N;e[18]!==x||e[19]!==S||e[20]!==E?(N=o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:x,onClick:S,children:E}),e[18]=x,e[19]=S,e[20]=E,e[21]=N):N=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(kn,{}),e[22]=_):_=e[22];let P;e[23]!==p||e[24]!==c||e[25]!==n?(P=Object.values(y4).map((A,z)=>o.jsxs(ne,{children:[z===2&&o.jsx(kn,{},"separator"),o.jsxs(rt,{onClick:Y=>{Y.preventDefault(),p(A)},children:[o.jsx(R6,{label:c("Filters:::".concat(k6e(A)),{ns:"history"}),checked:n.includes(A)}),o.jsx(Zl,{children:o.jsx(ne,{onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),p(A,!0)},className:"cursor-pointer hover:underline",children:o.jsx(po,{keys:"only"})})})]})]},A)),e[23]=p,e[24]=c,e[25]=n,e[26]=P):P=e[26];let I;e[27]!==n||e[28]!==c||e[29]!==s||e[30]!==g||e[31]!==i||e[32]!==m||e[33]!==a?(I=n.includes(y4.CODE)&&o.jsxs(sa,{children:[o.jsxs(qs,{noRightIcon:g,disabled:!1,children:[o.jsx(Oz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:c("Filters:::Language Filters",{ns:"history"})}),s.length>0&&o.jsx(St,{className:"ml-auto py-0",children:s.length})]}),o.jsxs(Ks,{className:"w-48",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!s.length,onClick:A=>{A.preventDefault(),A.stopPropagation(),i([])},children:s.length?o.jsxs(ve,{className:"justify-between items-center w-full",children:[o.jsx(ne,{className:"w-6 h-4"}),o.jsx(re,{children:c("Filters:::Clear Filters",{ns:"history"})}),o.jsx(In,{className:"w-6 h-4"})]}):o.jsx(re,{children:c("Filters:::Language Filters",{ns:"history"})})}),o.jsx(kn,{}),o.jsx(or,{className:"code-filter",style:{height:"auto",maxHeight:"190px"},autoHide:!1,children:a.map(A=>o.jsxs(rt,{onClick:z=>{z.preventDefault(),m(A)},children:[o.jsx(R6,{label:A,checked:s.includes(A)}),o.jsx(Zl,{children:o.jsx(ne,{onClick:z=>{z.preventDefault(),z.stopPropagation(),m(A,!0)},className:"cursor-pointer hover:underline",children:o.jsx(po,{keys:"only"})})})]},A))})]})]}),e[27]=n,e[28]=c,e[29]=s,e[30]=g,e[31]=i,e[32]=m,e[33]=a,e[34]=I):I=e[34];let T;e[35]!==N||e[36]!==P||e[37]!==I?(T=o.jsxs(Wn,{className:"w-52",sideOffset:12,align:"center",children:[N,_,P,I]}),e[35]=N,e[36]=P,e[37]=I,e[38]=T):T=e[38];let L;return e[39]!==w||e[40]!==T?(L=o.jsxs(Kn,{children:[w,T]}),e[39]=w,e[40]=T,e[41]=L):L=e[41],L};function k6e(t){return t.charAt(0).toUpperCase()+t.slice(1)}function HV({clipId:t,isDark:e,isHistoryDragActive:n}){var s,a,i,l;var r=sn(1);try{o7();const{t:c}=Gt(),{clipItems:d}=Tt(Ar),p=v.useMemo(()=>{if(Ws.value){const b=d.find(({itemId:C})=>C===t);if(b)return b;Ws.value=null}},[t,d]),[f,m]=v.useMemo(()=>{var b,C;return[(p==null?void 0:p.createdAt)&&Bd().format((b=p.createdAt)!=null?b:0,{round:"floor"}),(p==null?void 0:p.updatedAt)&&Bd().format((C=p.updatedAt)!=null?C:0,{round:"floor"})]},[p]);return p==null?null:o.jsx(o.Fragment,{children:o.jsxs(ne,{className:"max-w-full max-h-full ".concat(Ms.value===t&&!p.isCode&&!p.isImage?"min-w-[80%]":""),children:[o.jsxs(ne,{className:"flex justify-center text-gray-400 text-xs my-2 gap-1",children:[o.jsx(st,{text:"".concat(c("Created",{ns:"common"}),": ").concat(Mh((s=p.createdAt)!=null?s:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:f}),m!==f&&o.jsxs(st,{text:"".concat(c("Updated",{ns:"common"}),": ").concat(Mh((a=p.updatedAt)!=null?a:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:["(",m,")"]})]}),o.jsx(ne,{className:"text-gray-400 text-xs mb-1 mt-2",children:o.jsx(H7,{clip:ae(R({},p),{type:"clip",id:t,createdAt:(i=p.createdAt)!=null?i:0,tabId:(l=p.tabId)!=null?l:null}),boardColor:p.color,isDark:e,isClipNameEditing:ld.value===t,isClipDelete:pi.value===t,isClipEdit:Ms.value===t,isShowOrganizeLayoutValue:!1,isHistoryDragActive:n,isShowDetails:!0,isLargeView:!0,isSelected:!1})}),o.jsx(ne,{className:"flex justify-center text-gray-400 text-xs my-2",children:o.jsxs(St,{variant:"outline",className:"bg-slate-100 px-2 pl-2.5 text-slate-400 cursor-pointer hover:bg-slate-300 dark:bg-slate-500 dark:text-slate-800 hover:dark:bg-slate-400",onClick:()=>{Ws.value=null},children:[c("Close",{ns:"common"}),o.jsx(In,{size:14,className:"ml-1"})]})})]})})}finally{r.f()}}v.memo(HV);const IA="trash",C6e=()=>ge(void 0,null,function*(){window.Prism=yt,yield Promise.all([ke(()=>import("./prism-json-xwnKirkR.js"),[]),ke(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),ke(()=>import("./prism-java-Bz0cy7o8.js"),[]),ke(()=>import("./prism-c-BI05wwL9.js"),[]),ke(()=>import("./prism-css-Cp0aSgQ4.js"),[]),ke(()=>import("./prism-csharp-aZJd74Dz.js"),[]),ke(()=>import("./prism-php-Y_bwvUTe.js"),[]),ke(()=>import("./prism-regex-DCddBNSB.js"),[]),ke(()=>import("./prism-ruby-pgU1Zfy6.js"),[]),ke(()=>import("./prism-shell-session-C8ifCaAv.js"),[]),ke(()=>import("./prism-sql-AgAyy5H_.js"),[]),ke(()=>import("./prism-uri-BQNPRq5q.js"),[]),ke(()=>import("./prism-yaml-Chm5ZdEN.js"),[]),ke(()=>import("./prism-markdown-4MKFcK2x.js"),[]),ke(()=>import("./prism-dart-MjriiaMt.js"),[]),ke(()=>import("./prism-path-CC2I6U-X.js"),[])]),yt.languages.shell=yt.languages["shell-session"]});function S6e(){var t=sn(1);try{let e=function(Me){return Sn.current[Me]||60},n=function(Me,_e){var He,Ct;(He=on.current)!=null&&He.resetAfterIndex&&((Ct=on.current)==null||Ct.resetAfterIndex(0)),Sn.current=ae(R({},Sn.current),{[Me]:_e})};const[r,s,a]=yke({}),[i,l,c,d]=bke({}),[p,f]=v.useState(null),{updateItemValueByHistoryId:m}=gge(),{pinnedClipboardHistoryByIds:b}=DW(),{unPinAllClipboardHistory:C}=q5e(),{movePinnedClipboardHistoryUpDown:g}=K5e(),[w,x]=v.useState([]),[S,E]=v.useState([]),N=v.useRef(null),[_,P]=v.useState(!1),I=v.useRef(null),[T,L]=v.useState(null),[A,z]=v.useState([]),[Y,O]=v.useState(null),[$,M]=v.useState(null),[W,V]=v.useState(null),[U,J]=v.useState(null),[H,F]=v.useState([]),[q,X]=v.useState([]),[te,ee]=v.useState([]),[G,Z]=v.useState(!1),[le,se]=v.useState(!1),{setIsScrolling:de,isShowHistoryPinned:ce,setIsShowHistoryPinned:ye,isSwapPanels:pe,panelSize:me,getDefaultPanelWidth:be,setPanelSize:Ee,setReturnRoute:We}=Tt(Ls),{isHistoryEnabled:qe,setIsHistoryEnabled:ot,isHistoryAutoUpdateOnCaputureEnabled:Ve,isAutoPreviewLinkCardsEnabled:Ge,historyDetectLanguagesEnabledList:ft,copyPasteSequencePinnedDelay:Ie,setCopyPasteSequencePinnedDelay:Ke,copyPasteSequenceIsReversOrder:ut,setCopyPasteSequenceIsReversOrder:$e,setIsHistoryAutoUpdateOnCaputureEnabled:ht}=Tt(Cr),{t:Fe}=Gt(),{themeDark:pt}=Tt(bo),{ref:Qe,height:Lt}=c4e(),Ut=it(!1),wt=it(!1),Xt=v.useMemo(()=>wt.value||Ut.value,[Ut.value,wt.value]),{pinnedClipboardHistory:$t}=W5e(),tn=pt(),{setHistoryListSimpleBar:Pt,scrollToTopHistoryList:Ue,updateClipboardHistory:Je,deleteClipboardHistoryItem:jt,deleteClipboardHistoryItems:we,generateLinkMetaData:Se,removeLinkMetaData:De}=Tt(_i),[nt,Pe]=v.useState(!1),gt=wl(),Ze=ua(),{isClipboardInfiniteHistoryLoading:Re,isClipboardHistoryFetchingNextPage:Oe,infiniteClipboardHistory:et,invalidateClipboardHistoryQuery:Et,fetchNextClipboardHistoryPage:bt}=IW(),{deleteClipboardHistoryByIds:_t}=U7(),{clipboardHistory:Mt,newClipboardHistoryCount:an,foundClipboardHistory:dn}=Tt(_i),[fn,mn]=v.useState(""),[hn,nn]=v.useState(""),on=v.useRef(null),Sn=v.useRef({}),pn=v.useRef(null),rn=jo(fn,300),ct=v.useMemo(()=>rn.length>1||w.length>0,[rn,w]),xe=v.useMemo(()=>Tn.value,[Tn.value]),Ye=v.useMemo(()=>te.some(Me=>$t.some(_e=>_e.historyId===Me)),[te,$t]),dt=v.useMemo(()=>i,[i]),mt=v.useMemo(()=>r,[r]),xt=ct?dn:Mt,{refetchFindClipboardHistory:It}=G5e({query:rn,filters:w,codeFilters:S}),At=v.useCallback(()=>{ct&&Ve&&It()},[ct,Ve]);v.useEffect(()=>{const Me=Xi("clipboard://clipboard-monitor/update",_e=>{_e.payload==="clipboard update"&&At()});return()=>{Me.then(_e=>{_e()})}},[At]),v.useEffect(()=>{ud.value=null,cl.value=null;const Me=()=>ge(this,null,function*(){yield C6e()});We(gt.pathname),ll.value=!1,Me(),Pe(!0)},[]),v.useEffect(()=>{r&&te.includes(r)&&ee(Me=>Me.filter(_e=>_e!==r)),i&&te.includes(i)&&ee(Me=>Me.filter(_e=>_e!==i))},[r,i]),v.useEffect(()=>{N&&Pt(N)},[N]),v.useEffect(()=>{$t.length===0&&(Ut.value=!1,wt.value=!1)},[$t]),v.useEffect(()=>{(rn.length>1||w.length>0||S.length>0)&&It()},[rn,w,S]),v.useEffect(()=>{var Me;!((Me=I.current)!=null&&Me.setDisableScroll)||!N.current||(T?(I.current.setDisableScroll(!0),N.current.style.overflow="hidden"):(I.current.setDisableScroll(!1),N.current.style.overflow="visible"))},[T]);const Ht=()=>ge(this,null,function*(){Oe||(yield bt({cancelRefetch:!1}))}),Bt=US(rm(hv,{activationConstraint:{tolerance:10,delay:300}}),rm(fv,{coordinateGetter:nj})),tt={keyframes({transform:Me}){return T&&(Y===T||W||U||$)?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:Yo.Transform.toString(Me.initial)},{opacity:0,transform:Yo.Transform.toString(ae(R({},Me.final),{x:Me.final.x+5,y:Me.final.y+5}))}]},easing:"ease-out",duration:300,sideEffects({active:Me,dragOverlay:_e}){T&&(Y===T||W===T||$===T)?_e.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:rh.easing}):Me.node.animate([{opacity:0},{opacity:1}],{duration:rh.duration,easing:rh.easing})}},Kt=v.useCallback(Me=>{ee(_e=>_e.includes(Me)?_e.filter(Ct=>Ct!==Me):[..._e,Me])},[ee]),Zt=v.useCallback(Me=>{z(_e=>_e.includes(Me)?_e.filter(Ct=>Ct!==Me):[..._e,Me])},[z]),vn=v.useCallback((Me,_e)=>{F(He=>_e?[...He,Me]:He.filter(Ct=>Ct!==Me))},[F]),oe=v.useCallback((Me,_e)=>{X(He=>_e?[...He,Me]:He.filter(Ct=>Ct!==Me))},[X]),fe=v.useMemo(()=>{if($a.value){const Me=xt.find(_e=>_e.historyId===$a.value);if(Me)return Ws.value&&(Ws.value=null),Me;$a.value=null}},[$a.value,xt]),Xe=Me=>Me===Qu.value||Me===Y||!!Y&&!!T&&te.includes(Me)||_&&te.includes(Me);return o.jsx(Sk,{children:o.jsx(W8,{sensors:Bt,collisionDetection:z8,autoScroll:{layoutShiftCompensation:!1,acceleration:1},measuring:{droppable:{strategy:yh.Always}},onDragStart:({active:Me})=>{var _e;L(Me.id),se(Me.id&&((_e=Me.data.current)==null?void 0:_e.isPinned))},onDragOver:({active:Me,over:_e})=>{const He=_e==null?void 0:_e.data.current,Ct=(He==null?void 0:He.type)===Ys,cn=(He==null?void 0:He.type)==="clip::dropzone",zn=(_e==null?void 0:_e.id)==="history::pinnedzone";Me!=null&&Me.id&&zn&&!le?M(Me.id):zn||M(null),(_e==null?void 0:_e.id)===IA?O(Me.id):Ct&&(_e!=null&&_e.id)?V(_e==null?void 0:_e.id):cn&&(_e!=null&&_e.id)?J(_e==null?void 0:_e.id):(O(null),V(null),J(null))},onDragCancel:()=>(L(null),O(null),V(null),J(null),!0),onDragEnd:_e=>ge(this,[_e],function*({active:Me}){var Ct;const He=(Ct=Me==null?void 0:Me.data.current)==null?void 0:Ct.isPinned;if((Me==null?void 0:Me.id)===$)setTimeout(()=>ge(this,null,function*(){M(null),ee([]),L(null),!He&&(yield b({historyIds:te.length>0?Array.from(new Set([...te,Me.id])):[Me.id],isPinned:!0}))}),300);else if((Me==null?void 0:Me.id)===Y){const cn=He?GC(Me.id):Me.id;yield _t({historyIds:te.length>0?Array.from(new Set([...te,cn])):[cn]}),setTimeout(()=>{te.length>0?we(Array.from(new Set([...te,cn]))):Array.from(new Set([...te,cn])).forEach(zn=>{jt(zn)}),At(),M(null),O(null),V(null),J(null),ee([]),L(null)},600)}else if(Me!=null&&Me.id&&W){const cn=He?GC(Me.id):Me.id;Bl.value=W,t0.value=te.length>0?Array.from(new Set([...te,cn])):[cn],setTimeout(()=>{V(null),L(null),ee([])},400)}else if(Me!=null&&Me.id&&U){const cn=He?GC(Me.id):Me.id,zn=U.toString().replace("::dropzone",""),Mn=cn?xt.find(Gr=>Gr.historyId===cn):null;zn&&(Mn!=null&&Mn.historyId)&&(yield m({historyId:Mn.historyId,itemId:zn})),setTimeout(()=>{J(null),L(null)},400)}else Bl.value=null,setTimeout(()=>{M(null),V(null),O(null),L(null)},300)}),children:o.jsxs(aN,{minSize:260,maxSize:700,defaultSize:be(),swapPanes:pe,onResize:Ee,autoSaveId:"app-main-panel",children:[o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-6 pt-4 px-3 pr-3",children:o.jsx(D1,{disableWidth:!0,children:({height:Me})=>{var _e;return nt&&Me&&Me>0&&o.jsxs(ne,{className:"flex flex-col h-[calc(100vh-95px)] relative",id:"side-panel_tour",children:[o.jsx(ne,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-3",id:"history-find_tour",children:T&&$t.length===0?o.jsx(F6,{id:"history::pinnedzone",className:"w-full h-full",isActive:!!T,children:o.jsx(ne,{ref:$?null:Qe,className:"".concat($?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?"":"animate-in fade-in"," py-1 bg-orange-50 dark:bg-orange-800/40 mt-0 my-2 rounded-md relative w-full h-full"),children:T&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:o.jsx(ne,{className:"border-2 ".concat($?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:$?o.jsx(re,{className:"!text-orange-400 dark:text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Fe("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})})})}):o.jsxs(o.Fragment,{children:[o.jsx(Wd,{placeholder:"".concat(Fe("Find in history",{ns:"dashboard"}),"..."),autoFocus:fn.length>0,type:"search",onChange:He=>{mn(He.target.value)},value:fn,ref:pn,iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"},"search-history"),o.jsx(w6e,{setHistoryFilters:x,historyFilters:w,avaliableCodeLanguages:ft,codeFilters:S,setCodeFilters:E,children:o.jsxs(je,{variant:"ghost",className:"relative cursor-pointer px-1 mr-2",children:[o.jsx(Aie,{size:20,className:"".concat(w.length?"text-blue-500 hover:text-blue-500/70":"text-slate-400 hover:text-slate-400/70"," ")}),w.length>0&&o.jsx(St,{className:"absolute right-[-10px] top-[-10px] bg-blue-500 hover:bg-blue-500",children:w.length})]})})]})}),ct?o.jsx(ne,{className:"cursor-pointer absolute top-[49px] animate-in fade-in fade-out flex justify-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Clear found results and filters",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{var He;mn(""),x([]),E([]),pn!=null&&pn.current&&pn.current.value&&(pn.current.value="",(He=pn==null?void 0:pn.current)==null||He.focus())},sideOffset:10,children:o.jsx(re,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:xt.length?o.jsxs(o.Fragment,{children:[xt.length<100?xt.length:"100+"," ",Fe("found",{ns:"common"})]}):o.jsx(o.Fragment,{children:Fe("Nothing found",{ns:"common"})})})})}):$t.length>0&&o.jsx(F6,{id:"history::pinnedzone",isActive:!!T&&!le,children:o.jsxs(ne,{onMouseEnter:()=>{Ut.value=!0},onMouseLeave:()=>{Ut.value=!1},onClick:()=>{Ut.value=!0},ref:$?null:Qe,className:"".concat($?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(T?ce?"":"min-h-[32px]":"animate-in fade-in"," ").concat(ce?"py-2":"py-1"," px-2 pb-0 bg-orange-200/70 dark:bg-orange-900/60 mt-0 my-2 rounded-md relative"),children:[T&&!le&&o.jsx(ne,{className:"z-100 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 h-full w-full flex items-center justify-center p-1",children:o.jsx(ne,{className:"border-2 ".concat($?"border-orange-400 dark:border-orange-500":"border-slate-200 dark:border-slate-500"," border-dashed rounded-md flex items-center justify-center h-full w-full"),children:$?o.jsx(re,{className:"!text-orange-400 dark:!text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Fe("Drop to Pin",{ns:"dashboard"})}):o.jsx(tu,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})}),o.jsx(Nh,{defer:!0,style:{maxHeight:200},options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:tn?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:o.jsx(ne,{className:"flex flex-col gap-1 relative ".concat(T&&!le?"opacity-20":""),children:ce&&$t.sort((He,Ct)=>He.pinnedOrderNumber-Ct.pinnedOrderNumber).map((He,Ct)=>{const cn=He.historyId;return o.jsx(ne,{children:o.jsx(x4,{isPinnedTop:!0,isPinnedTopFirst:Ct===0,isDisabledPinnedMoveUp:Ct===0,isDisabledPinnedMoveDown:Ct===$t.length-1,onMovePinnedUpDown:zn=>{g(zn)},isLinkCardPreviewEnabled:Ge,isLargeView:cn===$a.value,largeViewItemId:$a.value,setLargeViewItemId:zn=>{$a.value=zn},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:cn===dt?l:void 0,isPasted:cn===dt,isCopied:cn===mt,isSaved:cn===p,setSavingItem:f,isDeleting:Xe(cn),isSelected:te.includes(cn),setBrokenImageItem:Zt,isBrokenImage:A.includes(cn),showTimeAgo:!1,isExpanded:H.includes(cn),isWrapText:q.includes(cn),searchTerm:ct?rn:"",showSelectHistoryItems:G,invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,setWrapText:oe,isDark:tn,setRowHeight:n,clipboard:He,removeLinkMetaData:De,generateLinkMetaData:Se})},cn)})})}),o.jsxs(ve,{className:"justify-between",children:[ce?o.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(T&&!le||!Xt?"opacity-0":""),children:[o.jsx(mr,{className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent pl-0.5 pr-1 pt-0 ",title:xe?Fe("Sequence Paste",{ns:"common"}):Fe("Sequence Copy",{ns:"common"}),children:xe?o.jsx(Ds,{size:14,onClick:()=>{d($t.map(({historyId:He})=>He))}}):o.jsx(ba,{size:14,onClick:()=>{a($t.map(({historyId:He})=>He))}})}),o.jsxs(Kn,{onOpenChange:He=>{wt.value=He},children:[o.jsx(Gn,{asChild:!0,children:o.jsx(CE,{variant:"outline",title:Fe("Sequence Delay Next",{ns:"common"}),className:"bg-orange-300/20 border-orange-300/50 dark:bg-orange-900/70 dark:border-orange-800/50 border h-[18px] cursor-pointer px-1.5 ml-1",children:o.jsxs(re,{className:"font-mono !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent font-semibold",children:[Ie,"s"]})})}),o.jsxs(Wn,{className:"w-44",children:[o.jsx(rt,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o.jsx(re,{size:"xs",children:Fe("Sequence Copy Paste",{ns:"common"})})}),o.jsx(kn,{}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[Fe("Delay Next",{ns:"common"}),"..."]}),o.jsxs(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[Ie,"s"]})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:Ie===1,onSelect:()=>{Ke(1)},children:o.jsxs(re,{size:"xs",children:["1 ",Fe("second",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===2,onSelect:()=>{Ke(2)},children:o.jsxs(re,{size:"xs",children:["2 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===3,onSelect:()=>{Ke(3)},children:o.jsxs(re,{size:"xs",children:["3 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===4,onSelect:()=>{Ke(4)},children:o.jsxs(re,{size:"xs",children:["4 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===5,onSelect:()=>{Ke(5)},children:o.jsxs(re,{size:"xs",children:["5 ",Fe("seconds",{ns:"common"})]})}),o.jsx(Cn,{checked:Ie===10,onSelect:()=>{Ke(10)},children:o.jsxs(re,{size:"xs",children:["10 ",Fe("seconds",{ns:"common"})]})})]})]}),o.jsxs(sa,{children:[o.jsx(qs,{children:o.jsxs(ve,{className:"flex w-full",children:[o.jsxs(re,{size:"xs",children:[Fe("Reverse Order",{ns:"common"}),"..."]}),o.jsx(St,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:ut?Fe("Yes",{ns:"common"}):Fe("No",{ns:"common"})})]})}),o.jsxs(Ks,{children:[o.jsx(Cn,{checked:!ut,onSelect:()=>{$e(!1)},children:o.jsx(re,{size:"xs",children:Fe("No",{ns:"common"})})}),o.jsx(Cn,{checked:ut,onSelect:()=>{$e(!0)},children:o.jsx(re,{size:"xs",children:Fe("Yes",{ns:"common"})})})]})]})]})]})]}):o.jsx(ne,{}),!T&&o.jsxs(mr,{className:"hover:underline ".concat(ce?"h-[30px]":"h-[26px]"," group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent ").concat(ce?"":"pb-1"),title:ce?Fe("Hide pinned history",{ns:"history"}):Fe("View pinned history",{ns:"history"}),onClick:()=>{ye(!ce)},children:[o.jsxs(re,{className:"!font-medium text-xs !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 mr-1",children:[$t.length," ",Fe("Pinned",{ns:"common",count:$t.length})]}),ce?o.jsx(v5,{size:13,className:"group-hover:opacity-100 opacity-0"}):o.jsx(Wse,{size:13,className:"group-hover:opacity-100 opacity-0"})]}),ce?o.jsxs(ne,{className:"animate-in fade-in duration-300 ".concat(T&&!le||!Xt?"opacity-0":""),children:[o.jsx(mr,{title:Ye?Fe("Deselect pinned",{ns:"common"}):Fe("Select pinned",{ns:"common"}),className:"!text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0 rounded-sm py-0 h-5",children:o.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Ye?o.jsx(x5,{size:15,onClick:()=>{const He=te.filter(Ct=>$t.some(cn=>cn.historyId===Ct));ee(te.filter(Ct=>!He.includes(Ct)))}}):o.jsx(iE,{size:17,onClick:()=>{ee(te.concat($t.map(He=>He.historyId)))}})})}),o.jsx(rB,{onOpen:He=>{wt.value=He},onCancel:()=>{setTimeout(()=>{wt.value=!1,Ut.value=!1},300)},onConfirm:()=>ge(this,null,function*(){yield C({})}),buttonClassName:"group !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]}):o.jsx(ne,{})]})]})}),xt.length>0||ct?o.jsx(or,{style:{height:Me-(ct?115:$t.length===0?85:Lt?Lt+103:85)},ref:He=>{I.current=He},onScroll:(He,Ct)=>{de(Ct)},className:"animate-in fade-in mr-[-10px] ".concat(ct?"mt-[20px]":""),children:({scrollableNodeRef:He,contentNodeRef:Ct})=>o.jsxs("div",{className:"pr-[10px] relative h-full",id:"history-list_tour",children:[hn&&o.jsx(ne,{className:"".concat(an>0?"top-9":"top-1"," absolute z-100 animate-in fade-in fade-out duration-300 flex justify-center w-full ml-[-5px] pointer-events-none"),children:o.jsx(st,{text:Fe("Scroll to Top",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"bottom",asChild:!0,sideOffset:10,children:o.jsx(mr,{className:"pointer-events-auto rounded-full bg-slate-300 dark:bg-slate-600 hover:bg-slate-200 hover:dark:bg-slate-700",onClick:()=>{Ue(!0)},children:o.jsx(re,{className:"text-mute text-xs text-center px-3",children:hn})})})}),an>0&&!ct&&o.jsx(ne,{className:"absolute top-2 z-100 ml-[-5px] cursor-pointer animate-in fade-in fade-out duration-300 flex justify-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Update history list",{ns:"common"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:3,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{Je()},children:o.jsxs(re,{className:"text-xs text-center dark:text-slate-800 bg-blue-200 dark:bg-blue-400 rounded-full px-3 cursor-pointer pointer-events-auto",children:["+ ",an," ",Fe("new clips",{ns:"dashboard"})]})})})}),!qe&&!ct&&o.jsxs(ne,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:[o.jsx(st,{text:Fe("Turn on history capture",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:6,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{ot(!0)},children:o.jsx(re,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Fe("History capture is off",{ns:"dashboard"})})})}),xt.length>0&&o.jsxs(re,{className:"text-xs text-center bg-slate-100 dark:bg-slate-700 rounded-full px-3 mt-2",children:[Fe("Last update",{ns:"dashboard"}),":"," ",xt[0].timeAgo]})]}),qe&&!ct&&!Ve&&o.jsx(ne,{className:"absolute bottom-2 z-100 ml-[-5px] animate-in fade-in fade-out duration-300 flex flex-col justify-center items-center w-full pointer-events-none",children:o.jsx(st,{text:Fe("Turn On auto update",{ns:"dashboard"}),isDisabled:!!T,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:10,children:o.jsx(mr,{className:"pointer-events-auto",onClick:()=>{ht(!0)},children:o.jsx(re,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Fe("Auto update is Off",{ns:"dashboard"})})})})}),o.jsx(i4e,{isItemLoaded:cn=>cno.jsx(t4e,{overscanCount:10,height:Me-(ct?60:85),itemCount:xt.length,width:"100%",itemSize:e,itemKey:Mn=>{var Gr;return(Gr=xt[Mn].historyId)!=null?Gr:"id-${index}"},onItemsRendered:Mn=>{if(Mn.visibleStartIndex>10){const Gr=xt[Mn.visibleStartIndex];Gr!=null&&Gr.timeAgo?hn!==Gr.timeAgo&&nn(Gr.timeAgo):nn("")}else hn&&nn("");!rn&&cn(Mn)},ref:ml(on,zn),outerRef:ml(N,He),innerRef:Ct,children:({index:Mn,style:Gr})=>{const yn=xt[Mn],{historyId:Yr,showTimeAgo:Ai,timeAgo:Po}=yn;return o.jsx(x4,{isLargeView:Yr===$a.value,largeViewItemId:$a.value,isLinkCardPreviewEnabled:Ge,setLargeViewItemId:ms=>{$a.value=ms},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:Yr===dt?l:void 0,isPasted:Yr===dt,isCopied:Yr===mt,isSaved:Yr===p,setSavingItem:f,isDeleting:Xe(Yr),isOverPinned:Yr===$||!!$&&!!T&&te.includes(Yr),isSelected:te.includes(Yr),setBrokenImageItem:Zt,isBrokenImage:A.includes(Yr),showTimeAgo:Ai,timeAgo:Po,isExpanded:H.includes(Yr),isWrapText:q.includes(Yr),searchTerm:ct?rn:"",showSelectHistoryItems:G,invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,setWrapText:oe,isDark:tn,setRowHeight:n,clipboard:yn,removeLinkMetaData:De,generateLinkMetaData:Se,index:Mn,style:Gr},Yr)}})})]})}):!Re&&((_e=et==null?void 0:et.pages)==null?void 0:_e.flat().length)===0&&o.jsx(ve,{style:{height:Me-85},className:"flex items-center flex-col gap-3 justify-center",children:o.jsx(re,{className:"animate-in fade-in duration-600 text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:Fe("No Clipboard History",{ns:"dashboard"})})}),o.jsx(du,{children:o.jsx(C$,{dropAnimation:tt,children:T?o.jsx(x4,{index:1,isWrapText:q.includes(T),isExpanded:H.includes(T),style:{zIndex:999},showSelectHistoryItems:G,setSelectHistoryItem:Kt,isDark:tn,isBrokenImage:A.includes(T),setBrokenImageItem:Zt,isDragPreview:!0,isDeleting:T===Y||!!Y&&te.includes(T),selectedItemsCount:te.length&&te.includes(T)?te.length:te.length+1,clipboard:xt.find(He=>le?He.historyId===T.toString().split("::pinned")[0]:He.historyId===T)}):null})}),o.jsx(ne,{className:"flex-1 mt-2"}),o.jsxs(pl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:gt.pathname,onValueChange:He=>{Ze(He,{replace:!0})},children:[!T&&o.jsx(b6e,{isDeleting:_,isDark:tn,setIsDeleting:P,setSelectHistoryItem:Kt,onDelete:(He=!1)=>{var Ct;He&&(mn(""),x([]),E([]),pn!=null&&pn.current&&pn.current.value&&(pn.current.value="",(Ct=pn==null?void 0:pn.current)==null||Ct.focus())),At()},showSelectHistoryItems:G,setSelectedHistoryItems:ee,setShowSelectHistoryItems:Z,selectedHistoryItems:te}),o.jsx(Xo,{className:"self-center",id:"tabs-history_tour",children:T?o.jsx(jr,{value:"",className:"p-0.5",children:o.jsx(m6e,{id:IA})}):o.jsxs(o.Fragment,{children:[o.jsx(jr,{value:"/history",className:"min-w-[90px]",children:meMe&&Me>0&&o.jsx(ne,{className:"p-2 pt-0 py-4 pr-0 pb-0 m-0 select-none",children:o.jsx(or,{style:{height:Me-20},onScroll:(_e,He)=>{de(He)},children:o.jsx(ve,{style:{height:Me-20},className:"flex items-start flex-col justify-start p-0",children:o.jsx(_5e,{historyDragActive:!!T,isDark:tn,dragOverBoardId:W})})})})})}):o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:o.jsx(D1,{disableWidth:!0,children:({height:Me})=>Me&&Me>0&&o.jsxs(ne,{className:"p-4 py-3 select-auto relative pt-5 mt-3",children:[o.jsx(je,{variant:"ghost",className:"z-10 px-2 absolute top-[-2px] right-[10px] text-slate-400 cursor-pointer hover:bg-slate-100 dark:text-slate-500 hover:dark:bg-slate-700",onClick:()=>{Ws.value=null,$a.value=null},children:o.jsx(In,{size:22})}),o.jsx(or,{style:{height:Me-40},autoHide:!1,onScroll:(_e,He)=>{de(He)},children:o.jsxs(ve,{style:{height:Me-85},children:[Ws.value&&o.jsx(HV,{clipId:Ws.value,isHistoryDragActive:!!T,isDark:tn}),fe&&o.jsx(x6e,{setLargeViewItemId:_e=>{$a.value=_e},setSelectHistoryItem:Kt,onCopy:s,onCopyPaste:c,pastingCountDown:fe.historyId===dt?l:null,isPasted:fe.historyId===dt,isCopied:fe.historyId===mt,isSaved:fe.historyId===p,setSavingItem:f,isDeleting:fe.historyId===Y||!!Y&&!!T&&te.includes(fe.historyId)||_&&te.includes(fe.historyId),isSelected:te.includes(fe.historyId),setBrokenImageItem:Zt,isBrokenImage:A.includes(fe.historyId),showTimeAgo:fe.showTimeAgo,timeAgo:fe.timeAgo,searchTerm:ct?rn:"",invalidateClipboardHistoryQuery:()=>{Et(),At()},setExpanded:vn,isDark:tn,clipboard:fe,removeLinkMetaData:De,generateLinkMetaData:Se})]})})]})})})})]},pe?"swap":"no-swap")})})}finally{t.f()}}class BV{constructor(e){kt(this,"root");this.root=j6e(e)}get data(){var e,n;return(n=(e=this.root.children)==null?void 0:e.map(r=>r.data))!=null?n:[]}create(e){const n=e.parentId?this.find(e.parentId):this.root;if(!n)return null;n.addChild(e.data,e.index)}move(e){const n=this.find(e.id),r=e.parentId?this.find(e.parentId):this.root;!n||!r||(r.addChild(n.data,e.index),n.drop())}update(e){const n=this.find(e.id);n&&n.update(e.changes)}drop(e){const n=this.find(e.id);n&&n.drop()}find(e,n=this.root){if(!n)return null;if(n.id===e)return n;if(n.children){for(let r of n.children){const s=this.find(e,r);if(s)return s}return null}return null}}function j6e(t){const e=new UV({id:"ROOT"},null);return e.children=t.map(n=>lN(n,e)),e}function lN(t,e){const n=new UV(t,e);return t.children&&(n.children=t.children.map(r=>lN(r,n))),n}class UV{constructor(e,n){kt(this,"id");kt(this,"children");this.data=e,this.parent=n,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,n){var s,a;const r=lN(e,this);this.children=(s=this.children)!=null?s:[],this.children.splice(n,0,r),this.data.children=(a=this.data.children)!=null?a:[],this.data.children.splice(n,0,e)}removeChild(e){var n,r;(n=this.children)==null||n.splice(e,1),(r=this.data.children)==null||r.splice(e,1)}update(e){if(this.hasParent()){const n=this.childIndex;this.parent.addChild(R(R({},this.data),e),n),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let E6e=0;function N6e(t){const[e,n]=v.useState(t),r=v.useMemo(()=>new BV(e),[e]);return[e,{onMove:d=>{for(const p of d.dragIds)r.move({id:p,parentId:d.parentId,index:d.index});n(r.data)},onRename:({name:d,id:p})=>{r.update({id:p,changes:{name:d}}),n(r.data)},onCreate:({parentId:d,index:p,type:f})=>{const m={id:"simple-tree-id-".concat(E6e++),name:""};return f==="internal"&&(m.children=[]),r.create({parentId:d,index:p,data:m}),n(r.data),m},onDelete:d=>{d.ids.forEach(p=>r.drop({id:p})),n(r.data)}}]}function _6e(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error("React Arborist Tree => You passed the initialData prop along with a data handler.\nUse the data prop if you want to provide your own handlers.");if(t.initialData){const[e,n]=N6e(t.initialData);return ae(R(R({},t),n),{data:e})}else return t}const WV=v.createContext({dragDropManager:void 0});function za(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var AA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),b4=function(){return Math.random().toString(36).substring(7).split("").join(".")},$w={INIT:"@@redux/INIT"+b4(),REPLACE:"@@redux/REPLACE"+b4(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b4()}};function T6e(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function cN(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(za(0));if(typeof e=="function"&&typeof n=="undefined"&&(n=e,e=void 0),typeof n!="undefined"){if(typeof n!="function")throw new Error(za(1));return n(cN)(t,e)}if(typeof t!="function")throw new Error(za(2));var s=t,a=e,i=[],l=i,c=!1;function d(){l===i&&(l=i.slice())}function p(){if(c)throw new Error(za(3));return a}function f(g){if(typeof g!="function")throw new Error(za(4));if(c)throw new Error(za(5));var w=!0;return d(),l.push(g),function(){if(w){if(c)throw new Error(za(6));w=!1,d();var S=l.indexOf(g);l.splice(S,1),i=null}}}function m(g){if(!T6e(g))throw new Error(za(7));if(typeof g.type=="undefined")throw new Error(za(8));if(c)throw new Error(za(9));try{c=!0,a=s(a,g)}finally{c=!1}for(var w=i=l,x=0;xr&&r[s]?r[s]:n||null,t)}function I6e(t,e){return t.filter(n=>n!==e)}function VV(t){return typeof t=="object"}function A6e(t,e){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};t.forEach(r),e.forEach(r);const s=[];return n.forEach((a,i)=>{a===1&&s.push(i)}),s}function L6e(t,e){return t.filter(n=>e.indexOf(n)>-1)}const uN="dnd-core/INIT_COORDS",Tk="dnd-core/BEGIN_DRAG",dN="dnd-core/PUBLISH_DRAG_SOURCE",Pk="dnd-core/HOVER",Mk="dnd-core/DROP",Dk="dnd-core/END_DRAG";function RA(t,e){return{type:uN,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const R6e={type:uN,payload:{clientOffset:null,sourceClientOffset:null}};function O6e(t){return function(n=[],r={publishSource:!0}){const{publishSource:s=!0,clientOffset:a,getSourceClientOffset:i}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(RA(a)),$6e(n,l,c);const d=H6e(n,l);if(d==null){t.dispatch(R6e);return}let p=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");z6e(i),p=i(d)}t.dispatch(RA(a,p));const m=c.getSource(d).beginDrag(l,d);if(m==null)return;F6e(m),c.pinSource(d);const b=c.getSourceType(d);return{type:Tk,payload:{itemType:b,item:m,sourceId:d,clientOffset:a||null,sourceClientOffset:p||null,isSourcePublic:!!s}}}}function $6e(t,e,n){$n(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){$n(n.getSource(r),"Expected sourceIds to be registered.")})}function z6e(t){$n(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F6e(t){$n(VV(t),"Item must be an object.")}function H6e(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function B6e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U6e(t){for(var e=1;e{const c=q6e(i,l,s,r),d={type:Mk,payload:{dropResult:U6e({},n,c)}};t.dispatch(d)})}}function V6e(t){$n(t.isDragging(),"Cannot call drop while not dragging."),$n(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function q6e(t,e,n,r){const s=n.getTarget(t);let a=s?s.drop(r,t):void 0;return K6e(a),typeof a=="undefined"&&(a=e===0?{}:r.getDropResult()),a}function K6e(t){$n(typeof t=="undefined"||VV(t),"Drop result must either be an object or undefined.")}function G6e(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function Y6e(t){return function(){const n=t.getMonitor(),r=t.getRegistry();Z6e(n);const s=n.getSourceId();return s!=null&&(r.getSource(s,!0).endDrag(n,s),r.unpinSource()),{type:Dk}}}function Z6e(t){$n(t.isDragging(),"Cannot call endDrag while not dragging.")}function Sj(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function X6e(t){return function(n,{clientOffset:r}={}){Q6e(n);const s=n.slice(0),a=t.getMonitor(),i=t.getRegistry(),l=a.getItemType();return eje(s,i,l),J6e(s,a,i),tje(s,a,i),{type:Pk,payload:{targetIds:s,clientOffset:r||null}}}}function Q6e(t){$n(Array.isArray(t),"Expected targetIds to be an array.")}function J6e(t,e,n){$n(e.isDragging(),"Cannot call hover while not dragging."),$n(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r=0;r--){const s=t[r],a=e.getTargetType(s);Sj(a,n)||t.splice(r,1)}}function tje(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function nje(t){return function(){if(t.getMonitor().isDragging())return{type:dN}}}function rje(t){return{beginDrag:O6e(t),publishDragSource:nje(t),hover:X6e(t),drop:W6e(t),endDrag:Y6e(t)}}class sje{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(a){return(...i)=>{const l=a.apply(e,i);typeof l!="undefined"&&n(l)}}const s=rje(this);return Object.keys(s).reduce((a,i)=>{const l=s[i];return a[i]=r(l),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function aje(t,e){return{x:t.x+e.x,y:t.y+e.y}}function qV(t,e){return{x:t.x-e.x,y:t.y-e.y}}function oje(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:qV(aje(e,r),n)}function ije(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:qV(e,n)}const V1=[],fN=[];V1.__IS_NONE__=!0;fN.__IS_ALL__=!0;function lje(t,e){return t===V1?!1:t===fN||typeof e=="undefined"?!0:L6e(e,t).length>0}class cje{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;$n(typeof e=="function","listener must be a function."),$n(typeof r=="undefined"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let s=this.store.getState().stateId;const a=()=>{const i=this.store.getState(),l=i.stateId;try{l===s||l===s+1&&!lje(i.dirtyHandlerIds,r)||e()}finally{s=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){$n(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const s=this.store.getState().dragOffset;s!==n&&(n=s,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return $n(n,"Expected to find a valid source. sourceId=".concat(e)),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if($n(n,"Expected to find a valid target. targetId=".concat(e)),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),s=this.getItemType();return Sj(r,s)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if($n(n,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),s=this.getItemType();return r!==s?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const s=this.registry.getTargetType(e),a=this.getItemType();if(a&&!Sj(s,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const l=i.indexOf(e);return r?l===i.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return oje(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ije(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const OA=typeof global!="undefined"?global:self,KV=OA.MutationObserver||OA.WebKitMutationObserver;function GV(t){return function(){const n=setTimeout(s,0),r=setInterval(s,50);function s(){clearTimeout(n),clearInterval(r),t()}}}function uje(t){let e=1;const n=new KV(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const dje=typeof KV=="function"?uje:GV;class fje{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let r=0,s=e.length-this.index;r{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=dje(this.flush),this.requestErrorThrow=GV(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class hje{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class pje{create(e){const n=this.freeTasks,r=n.length?n.pop():new hje(this.onError,s=>n[n.length]=s);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const YV=new fje,mje=new pje(YV.registerPendingError);function gje(t){YV.enqueueTask(mje.create(t))}const hN="dnd-core/ADD_SOURCE",pN="dnd-core/ADD_TARGET",mN="dnd-core/REMOVE_SOURCE",Ik="dnd-core/REMOVE_TARGET";function vje(t){return{type:hN,payload:{sourceId:t}}}function xje(t){return{type:pN,payload:{targetId:t}}}function yje(t){return{type:mN,payload:{sourceId:t}}}function bje(t){return{type:Ik,payload:{targetId:t}}}function wje(t){$n(typeof t.canDrag=="function","Expected canDrag to be a function."),$n(typeof t.beginDrag=="function","Expected beginDrag to be a function."),$n(typeof t.endDrag=="function","Expected endDrag to be a function.")}function kje(t){$n(typeof t.canDrop=="function","Expected canDrop to be a function."),$n(typeof t.hover=="function","Expected hover to be a function."),$n(typeof t.drop=="function","Expected beginDrag to be a function.")}function jj(t,e){if(e&&Array.isArray(t)){t.forEach(n=>jj(n,!1));return}$n(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var vi;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(vi||(vi={}));let Cje=0;function Sje(){return Cje++}function jje(t){const e=Sje().toString();switch(t){case vi.SOURCE:return"S".concat(e);case vi.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function $A(t){switch(t[0]){case"S":return vi.SOURCE;case"T":return vi.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(t))}}function zA(t,e){const n=t.entries();let r=!1;do{const{done:s,value:[,a]}=n.next();if(a===e)return!0;r=!!s}while(!r);return!1}class Eje{addSource(e,n){jj(e),wje(n);const r=this.addHandler(vi.SOURCE,e,n);return this.store.dispatch(vje(r)),r}addTarget(e,n){jj(e,!0),kje(n);const r=this.addHandler(vi.TARGET,e,n);return this.store.dispatch(xje(r)),r}containsHandler(e){return zA(this.dragSources,e)||zA(this.dropTargets,e)}getSource(e,n=!1){return $n(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return $n(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return $n(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return $n(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return $A(e)===vi.SOURCE}isTargetId(e){return $A(e)===vi.TARGET}removeSource(e){$n(this.getSource(e),"Expected an existing source."),this.store.dispatch(yje(e)),gje(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){$n(this.getTarget(e),"Expected an existing target."),this.store.dispatch(bje(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);$n(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){$n(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const s=jje(e);return this.types.set(s,n),e===vi.SOURCE?this.dragSources.set(s,r):e===vi.TARGET&&this.dropTargets.set(s,r),s}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Nje=(t,e)=>t===e;function _je(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Tje(t,e,n=Nje){if(t.length!==e.length)return!1;for(let r=0;r0||!Tje(n,r)))return V1;const i=r[r.length-1],l=n[n.length-1];return i!==l&&(i&&s.push(i),l&&s.push(l)),s}function Mje(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dje(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Vje(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a=0)&&(n[s]=t[s]);return n}let HA=0;const Zb=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var qje=v.memo(function(e){var{children:n}=e,r=Wje(e,["children"]);const[s,a]=Kje(r);return v.useEffect(()=>{if(a){const i=ZV();return++HA,()=>{--HA===0&&(i[Zb]=null)}}},[]),o.jsx(WV.Provider,{value:s,children:n})});function Kje(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=Gje(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function Gje(t,e=ZV(),n,r){const s=e;return s[Zb]||(s[Zb]={dragDropManager:Bje(t,e,n,r)}),s[Zb]}function ZV(){return typeof global!="undefined"?global:window}var Yje=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,s,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(s=r;s--!==0;)if(!t(e[s],n[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[s]))return!1;for(s=r;s--!==0;){var i=a[s];if(!t(e[i],n[i]))return!1}return!0}return e!==e&&n!==n};const Zje=cu(Yje),Rh=typeof window!="undefined"?v.useLayoutEffect:v.useEffect;function XV(t,e,n){const[r,s]=v.useState(()=>e(t)),a=v.useCallback(()=>{const i=e(t);Zje(r,i)||(s(i),n&&n())},[r,t,n]);return Rh(a),[r,a]}function Xje(t,e,n){const[r,s]=XV(t,e,n);return Rh(function(){const i=t.getHandlerId();if(i!=null)return t.subscribeToStateChange(s,{handlerIds:[i]})},[t,s]),r}function QV(t,e,n){return Xje(e,t||(()=>({})),()=>n.reconnect())}function JV(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),v.useMemo(()=>typeof t=="function"?t():t,n)}function Qje(t){return v.useMemo(()=>t.hooks.dragSource(),[t])}function Jje(t){return v.useMemo(()=>t.hooks.dragPreview(),[t])}let w4=!1,k4=!1;class e8e{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){$n(!w4,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return w4=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{w4=!1}}isDragging(){if(!this.sourceId)return!1;$n(!k4,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return k4=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{k4=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let C4=!1;class t8e{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;$n(!C4,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return C4=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{C4=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function n8e(t,e,n){const r=n.getRegistry(),s=r.addTarget(t,e);return[s,()=>r.removeTarget(s)]}function r8e(t,e,n){const r=n.getRegistry(),s=r.addSource(t,e);return[s,()=>r.removeSource(s)]}function Ej(t,e,n,r){let s=n?n.call(r,t,e):void 0;if(s!==void 0)return!!s;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),i=Object.keys(e);if(a.length!==i.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c, or turn it into a ")+"drag source or a drop target itself.")}function a8e(t){return(e=null,n=null)=>{if(!v.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return s8e(r),o8e(r,n?a=>t(a,n):t)}}function eq(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const s=a8e(r);e[n]=()=>s}}),e}function BA(t,e){typeof t=="function"?t(e):t.current=e}function o8e(t,e){const n=t.ref;return $n(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?v.cloneElement(t,{ref:r=>{BA(n,r),BA(e,r)}}):v.cloneElement(t,{ref:e})}class i8e{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ej(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ej(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=eq({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Nj(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Nj(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class l8e{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ej(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=eq({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Nj(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Gh(){const{dragDropManager:t}=v.useContext(WV);return $n(t!=null,"Expected drag drop context"),t}function c8e(t,e){const n=Gh(),r=v.useMemo(()=>new i8e(n.getBackend()),[n]);return Rh(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Rh(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function u8e(){const t=Gh();return v.useMemo(()=>new e8e(t),[t])}class d8e{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r!=null?r:null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,s=this.monitor,{isDragging:a}=r;return a?a(s):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:s}=e;s&&s(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function f8e(t,e,n){const r=v.useMemo(()=>new d8e(t,e,n),[e,n]);return v.useEffect(()=>{r.spec=t},[t]),r}function h8e(t){return v.useMemo(()=>{const e=t.type;return $n(e!=null,"spec.type must be defined"),e},[t])}function p8e(t,e,n){const r=Gh(),s=f8e(t,e,n),a=h8e(t);Rh(function(){if(a!=null){const[l,c]=r8e(a,s,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,s,a])}function m8e(t,e){const n=JV(t,e);$n(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=u8e(),s=c8e(n.options,n.previewOptions);return p8e(n,r,s),[QV(n.collect,r,s),Qje(s),Jje(s)]}function g8e(t){const n=Gh().getMonitor(),[r,s]=XV(n,t);return v.useEffect(()=>n.subscribeToOffsetChange(s)),v.useEffect(()=>n.subscribeToStateChange(s)),r}function v8e(t){return v.useMemo(()=>t.hooks.dropTarget(),[t])}function x8e(t){const e=Gh(),n=v.useMemo(()=>new l8e(e.getBackend()),[e]);return Rh(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function y8e(){const t=Gh();return v.useMemo(()=>new t8e(t),[t])}function b8e(t){const{accept:e}=t;return v.useMemo(()=>($n(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class w8e{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function k8e(t,e){const n=v.useMemo(()=>new w8e(t,e),[e]);return v.useEffect(()=>{n.spec=t},[t]),n}function C8e(t,e,n){const r=Gh(),s=k8e(t,e),a=b8e(t);Rh(function(){const[l,c]=n8e(a,s,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,s,n,a.map(i=>i.toString()).join("|")])}function tq(t,e){const n=JV(t,e),r=y8e(),s=x8e(n.options);return C8e(n,r,s),[QV(n.collect,r,s),v8e(s)]}const nq=v.createContext(null);function to(){const t=v.useContext(nq);if(t===null)throw new Error("No Tree Api Provided");return t}const rq=v.createContext(null);function S8e(){const t=v.useContext(rq);if(t===null)throw new Error("Provide a NodesContext");return t}const sq=v.createContext(null);function j8e(){const t=v.useContext(sq);if(t===null)throw new Error("Provide a DnDContext");return t}const aq=v.createContext(0);function gN(){v.useContext(aq)}const E8e={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},N8e=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e,"px, ").concat(n,"px)")}},_8e=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e+10,"px, ").concat(n+10,"px)")}};function oq(t){const e=Te(13),{offset:n,mouse:r,id:s,dragIds:a,isDragging:i}=t;let l;e[0]!==s||e[1]!==a?(l=o.jsx(D8e,{id:s,dragIds:a}),e[0]=s,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==n||e[4]!==l?(c=o.jsx(P8e,{offset:n,children:l}),e[3]=n,e[4]=l,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a.length?(d=o.jsx(M8e,{mouse:r,count:a.length}),e[6]=r,e[7]=a.length,e[8]=d):d=e[8];let p;return e[9]!==i||e[10]!==c||e[11]!==d?(p=o.jsxs(T8e,{isDragging:i,children:[c,d]}),e[9]=i,e[10]=c,e[11]=d,e[12]=p):p=e[12],p}const T8e=v.memo(function(e){const n=Te(2);if(!e.isDragging)return null;let r;return n[0]!==e.children?(r=o.jsx("div",{style:E8e,children:e.children}),n[0]=e.children,n[1]=r):r=n[1],r});function P8e(t){const e=Te(5);let n;e[0]!==t.offset?(n=N8e(t.offset),e[0]=t.offset,e[1]=n):n=e[1];let r;return e[2]!==n||e[3]!==t.children?(r=o.jsx("div",{className:"row preview",style:n,children:t.children}),e[2]=n,e[3]=t.children,e[4]=r):r=e[4],r}function M8e(t){const e=Te(5),{count:n,mouse:r}=t;if(n>1){let s;e[0]!==r?(s=_8e(r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==s||e[3]!==n?(a=o.jsx("div",{className:"selected-count",style:s,children:n}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}else return null}const D8e=v.memo(function(e){const n=Te(9),r=to();let s;n[0]!==r||n[1]!==e.id?(s=r.get(e.id),n[0]=r,n[1]=e.id,n[2]=s):s=n[2];const a=s;if(!a)return null;const i=a.level*r.indent;let l;n[3]!==i?(l={paddingLeft:i,opacity:.5,background:"transparent"},n[3]=i,n[4]=l):l=n[4];let c;return n[5]!==r||n[6]!==a||n[7]!==l?(c=o.jsx(r.renderNode,{preview:!0,node:a,style:l,tree:r}),n[5]=r,n[6]=a,n[7]=l,n[8]=c):c=n[8],c});function I8e(){const t=Te(10),e=to();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=f=>({offset:f.getSourceClientOffset(),mouse:f.getClientOffset(),item:f.getItem(),isDragging:f.isDragging()}),t[0]=n):n=t[0];const{offset:r,mouse:s,item:a,isDragging:i}=g8e(n),l=e.props.renderDragPreview||oq,c=(a==null?void 0:a.id)||null;let d;t[1]!==a?(d=(a==null?void 0:a.dragIds)||[],t[1]=a,t[2]=d):d=t[2];let p;return t[3]!==l||t[4]!==r||t[5]!==s||t[6]!==c||t[7]!==d||t[8]!==i?(p=o.jsx(l,{offset:r,mouse:s,id:c,dragIds:d,isDragging:i}),t[3]=l,t[4]=r,t[5]=s,t[6]=c,t[7]=d,t[8]=i,t[9]=p):p=t[9],p}const zv=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t==null?void 0:t.initialOpenState)!=null?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,idWillReceiveDrop:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},x0={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function A8e(t=zv().dnd,e){switch(e.type){case"DND_CURSOR":return ae(R({},t),{cursor:e.cursor});case"DND_DRAG_START":return ae(R({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return zv().dnd;case"DND_HOVERING":return ae(R({},t),{parentId:e.parentId,index:e.index});default:return t}}function iq(t,e,n){return Math.max(Math.min(t,n),e)}function lq(t){return t&&t.isLeaf}function cq(t){return t&&t.isInternal&&!t.isOpen}const uq=(t,e)=>{let n=t;for(;n;){if(n.id===e.id)return!0;n=n.parent}return!1},dq=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function L8e(){}function vN(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let n of t.children){const r=vN(n,e);if(r)return r}return null}function zw(t,e){if(e(t),t.children)for(let n of t.children)zw(n,e)}function fq(t){const e=pq(t);let n;for(let r=0;r=0?t[e-1]:t[t.length-1]}function pq(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function g1(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function mq(t){return t===null?null:Mf(t)}function Mf(t){return typeof t=="string"?t:t.id}function $8e(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}function gq(t,...e){if(t)return t(...e)}function vq(t){return new Promise((e,n)=>{let r=0;function s(){r+=1,r===100&&n(),t()?e():setTimeout(s,10)}s()})}function xq(t){var n,r;const e=t.focusedNode;return e?e.isOpen?0:e.parent?e.childIndex+1:0:(r=(n=t.root.children)==null?void 0:n.length)!=null?r:0}function yq(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const z8e=Object.freeze(Object.defineProperty({__proto__:null,access:g1,bound:iq,dfs:vN,focusNextElement:fq,focusPrevElement:hq,getInsertIndex:xq,getInsertParentId:yq,identify:Mf,identifyNull:mq,indexOf:dq,isClosed:cq,isDecendent:uq,isItem:lq,mergeRefs:$8e,noop:L8e,safeRun:gq,waitFor:vq,walk:zw},Symbol.toStringTag,{value:"Module"}));function F8e(t,e){const n=t.getBoundingClientRect(),r=e.x-Math.round(n.x),s=e.y-Math.round(n.y),a=n.height,i=sc&&se;)n=n.parent;const r=((a=n.parent)==null?void 0:a.id)||null,s=dq(n)+1;return{parentId:r,index:s}}function bq(t){var l;const e=F8e(t.element,t.offset),{node:n,nextNode:r,prevNode:s}=t,[a,i]=H8e(n,s,r,e);if(n&&n.isInternal&&e.inMiddle)return{drop:S4(n.id,0),cursor:U8e(n.id)};if(!a)return{drop:S4((l=i==null?void 0:i.parent)==null?void 0:l.id,0),cursor:j4(0,0)};if(lq(a)||cq(a)){const c=B8e(e,a,i,t.indent);return{drop:W8e(a,c),cursor:j4(a.rowIndex+1,c)}}return{drop:S4(a==null?void 0:a.id,0),cursor:j4(a.rowIndex+1,a.level+1)}}function V8e(){const t=Te(3),e=to();let n,r;t[0]!==e?(n=()=>({accept:"NODE",canDrop:(a,i)=>i.isOver({shallow:!0})?e.canDrop():!1,hover:(a,i)=>{if(!i.isOver({shallow:!0}))return;const l=i.getClientOffset();if(!e.listEl.current||!l)return;const{cursor:c,drop:d}=bq({element:e.listEl.current,offset:l,indent:e.indent,node:null,prevNode:e.visibleNodes[e.visibleNodes.length-1],nextNode:null});d&&e.dispatch(x0.hovering(d.parentId,d.index)),i.canDrop()?c&&e.showCursor(c):e.hideCursor()}}),r=[e],t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const[,s]=tq(n,r);s(e.listEl)}function q8e(t){return V8e(),t.children}function wq(t){let e=null;return()=>(e==null&&(e=t()),e)}function K8e(t,e){return t.filter(n=>n!==e)}function G8e(t,e){const n=new Set,r=a=>n.add(a);t.forEach(r),e.forEach(r);const s=[];return n.forEach(a=>s.push(a)),s}class Y8e{enter(e){const n=this.entered.length,r=s=>this.isNodeInDocument(s)&&(!s.contains||s.contains(e));return this.entered=G8e(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=K8e(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Z8e{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const s=this.config.exposeProperties[r];s!=null&&(n[r]={value:s(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const kq="__NATIVE_FILE__",Cq="__NATIVE_URL__",Sq="__NATIVE_TEXT__",jq="__NATIVE_HTML__",UA=Object.freeze(Object.defineProperty({__proto__:null,FILE:kq,HTML:jq,TEXT:Sq,URL:Cq},Symbol.toStringTag,{value:"Module"}));function E4(t,e,n){const r=e.reduce((s,a)=>s||t.getData(a),"");return r!=null?r:n}const _j={[kq]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[jq]:{exposeProperties:{html:(t,e)=>E4(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[Cq]:{exposeProperties:{urls:(t,e)=>E4(t,e,"").split("\n"),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[Sq]:{exposeProperties:{text:(t,e)=>E4(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function X8e(t,e){const n=_j[t];if(!n)throw new Error("native type ".concat(t," has no configuration"));const r=new Z8e(n);return r.loadDataTransfer(e),r}function N4(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(_j).filter(n=>{const r=_j[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(s=>e.indexOf(s)>-1):!1})[0]||null}const Q8e=wq(()=>/firefox/i.test(navigator.userAgent)),Eq=wq(()=>!!window.safari);class WA{interpolate(e){const{xs:n,ys:r,c1s:s,c2s:a,c3s:i}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,d=i.length-1,p;for(;c<=d;){p=Math.floor(.5*(c+d));const b=n[p];if(be)d=p-1;else return r[p]}l=Math.max(0,d);const f=e-n[l],m=f*f;return r[l]+s[l]*f+a[l]*m+i[l]*f*m}constructor(e,n){const{length:r}=e,s=[];for(let b=0;be[b]{let P=new WA([0,.5,1],[c.y,c.y/p*C,c.y+C-p]).interpolate(m);return Eq()&&a&&(P+=(window.devicePixelRatio-1)*C),P},w=()=>new WA([0,.5,1],[c.x,c.x/d*b,c.x+b-d]).interpolate(f),{offsetX:x,offsetY:S}=s,E=x===0||x,N=S===0||S;return{x:E?x:w(),y:N?S:g()}}class rEe{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function sEe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VA(t){for(var e=1;e{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const s=i=>this.handleDragStart(i,e),a=i=>this.handleSelectStart(i);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",s),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",s),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=i=>this.handleDragEnter(i,e),s=i=>this.handleDragOver(i,e),a=i=>this.handleDrop(i,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",s),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",s),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return VA({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return VA({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(UA).some(n=>UA[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=X8e(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=s=>{const a=this.sourceNodes.get(s);return a&&Nq(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=s=>!!(s&&this.document&&this.document.body&&this.document.body.contains(s)),this.endDragIfSourceWasRemovedFromDOM=()=>{const s=this.currentDragSourceNode;s==null||this.isNodeInDocument(s)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=s=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(s||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=s=>{if(s.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const i=gb(s);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:l}=s,c=N4(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const p=this.monitor.getSourceId(),f=this.sourceNodes.get(p),m=this.sourcePreviewNodes.get(p)||f;if(m){const{anchorX:b,anchorY:C,offsetX:g,offsetY:w}=this.getCurrentSourcePreviewNodeOptions(),E=nEe(f,m,i,{anchorX:b,anchorY:C},{offsetX:g,offsetY:w});l.setDragImage(m,E.x,E.y)}}try{l==null||l.setData("application/json",{})}catch(p){}this.setCurrentDragSourceNode(s.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(s.target&&!s.target.hasAttribute||!s.target.hasAttribute("draggable")))return;s.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=s=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}if(!this.enterLeaveCounter.enter(s.target)||this.monitor.isDragging())return;const{dataTransfer:l}=s,c=N4(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=s=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=s.altKey,a.length>0&&this.actions.hover(a,{clientOffset:gb(s)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=s=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}},this.handleTopDragOver=s=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none");return}this.altKeyPressed=s.altKey,this.lastClientOffset=gb(s),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?s.preventDefault():(s.preventDefault(),s.dataTransfer&&(s.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=s=>{this.isDraggingNativeItem()&&s.preventDefault(),this.enterLeaveCounter.leave(s.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=s=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;s.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(s.dataTransfer)}else N4(s.dataTransfer)&&s.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=s=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:gb(s)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=s=>{const a=s.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(s.preventDefault(),a.dragDrop()))},this.options=new rEe(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Y8e(this.isNodeInDocument)}}let vb;function oEe(){return vb||(vb=new Image,vb.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),vb}const iEe=function(e,n,r){return new aEe(e,n,r)},_q=v.forwardRef(function(e,n){var m,b,C,g,w;const r=Te(10);let s,a;r[0]!==e?(m=e,{style:s}=m,a=Ne(m,["style"]),r[0]=e,r[1]=s,r[2]=a):(s=r[1],a=r[2]);const i=to(),l=(C=(b=i.props.padding)!=null?b:i.props.paddingTop)!=null?C:0,c=(w=(g=i.props.padding)!=null?g:i.props.paddingBottom)!=null?w:0,d="".concat(parseFloat(s.height)+l+c,"px");let p;r[3]!==s||r[4]!==d?(p=ae(R({},s),{height:d}),r[3]=s,r[4]=d,r[5]=p):p=r[5];let f;return r[6]!==n||r[7]!==p||r[8]!==a?(f=o.jsx("div",R({ref:n,style:p},a)),r[6]=n,r[7]=p,r[8]=a,r[9]=f):f=r[9],f});function lEe(){var p,f;const t=Te(7),e=to(),r=j8e().cursor;if(!r||r.type!=="line")return null;const s=e.indent,a=e.rowHeight*r.index+((f=(p=e.props.padding)!=null?p:e.props.paddingTop)!=null?f:0),i=s*r.level,l=e.renderCursor;let c;t[0]!==a||t[1]!==i||t[2]!==s?(c={top:a,left:i,indent:s},t[0]=a,t[1]=i,t[2]=s,t[3]=c):c=t[3];let d;return t[4]!==l||t[5]!==c?(d=o.jsx(l,R({},c)),t[4]=l,t[5]=c,t[6]=d):d=t[6],d}const Tq=v.forwardRef(function(e,n){var p;const r=Te(11);let s,a;r[0]!==e?(p=e,{children:a}=p,s=Ne(p,["children"]),r[0]=e,r[1]=s,r[2]=a):(s=r[1],a=r[2]);const i=to();let l;r[3]!==i?(l=f=>{f.currentTarget===f.target&&i.deselectAll()},r[3]=i,r[4]=l):l=r[4];let c;r[5]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(cEe,{}),r[5]=c):c=r[5];let d;return r[6]!==n||r[7]!==s||r[8]!==l||r[9]!==a?(d=o.jsxs("div",ae(R({ref:n},s),{onClick:l,children:[c,a]})),r[6]=n,r[7]=s,r[8]=l,r[9]=a,r[10]=d):d=r[10],d}),cEe=()=>{const t=Te(5),e=to(),n=e.visibleNodes.length*e.rowHeight;let r;t[0]!==n?(r={height:n,width:"100%",position:"absolute",left:"0",right:"0"},t[0]=n,t[1]=r):r=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(lEe,{}),t[2]=s):s=t[2];let a;return t[3]!==r?(a=o.jsx("div",{style:r,children:s}),t[3]=r,t[4]=a):a=t[4],a};class Fw{constructor(e){kt(this,"tree");kt(this,"id");kt(this,"data");kt(this,"level");kt(this,"children");kt(this,"parent");kt(this,"isDraggable");kt(this,"rowIndex");kt(this,"handleClick",e=>{e.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():e.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())});this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===Fv}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.tree.closedFolderIds.length>0?!this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.tree.closedFolderIds.length>0?this.tree.closedFolderIds.includes(this.id):this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!((e=this.prev)!=null&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!((e=this.next)!=null&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var n,r;const e=this.childIndex;return(r=(n=this.parent)==null?void 0:n.children[e+1])!=null?r:null}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new Fw(R({},this))}edit(){return this.tree.edit(this)}}const Fv="ROOT";function qA(t){var s;function e(a,i,l){const c=t.accessId(a),d=new Fw({tree:t,data:a,level:i,parent:l,id:c,children:null,isDraggable:t.isDraggable(a),rowIndex:null}),p=t.accessChildren(a);return p&&(d.children=p.map(f=>e(f,i+1,d))),d}const n=new Fw({tree:t,id:Fv,data:{id:Fv},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),r=(s=t.props.data)!=null?s:[];return n.children=r.map(a=>e(a,0,n)),n}function uEe(t){const e=Te(11),n=to(),r=n.selectedIds;let s;e[0]!==t.isDraggable||e[1]!==t.id||e[2]!==n||e[3]!==r?(s=()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const f=n.isSelected(t.id)?Array.from(r):[t.id];return n.dispatch(x0.dragStart(t.id,f)),{id:t.id}},end:()=>{n.hideCursor();const{parentId:f,index:m,dragIds:b}=n.state.dnd;n.canDrop()&&(gq(n.props.onMove,{dragIds:b,parentId:f===Fv?null:f,index:m,dragNodes:n.dragNodes,parentNode:n.get(f)}),n.open(f)),n.dispatch(x0.dragEnd())}}),e[0]=t.isDraggable,e[1]=t.id,e[2]=n,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==r||e[6]!==t?(a=[r,t],e[5]=r,e[6]=t,e[7]=a):a=e[7];const[i,l,c]=m8e(s,a);let d,p;return e[8]!==c?(d=()=>{c(oEe())},p=[c],e[8]=c,e[9]=d,e[10]=p):(d=e[9],p=e[10]),v.useEffect(d,p),l}function dEe(t,e){const n=Te(8),r=to();let s;n[0]!==r||n[1]!==t.current||n[2]!==e?(s=()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(c,d)=>{const p=d.getClientOffset();if(!t.current||!p)return;const{cursor:f,drop:m}=bq({element:t.current,offset:p,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});m&&r.dispatch(x0.hovering(m.parentId,m.index)),d.canDrop()?f&&r.showCursor(f):r.hideCursor()},drop:(c,d)=>{if(!d.canDrop())return null}}),n[0]=r,n[1]=t.current,n[2]=e,n[3]=s):s=n[3];let a;n[4]!==e||n[5]!==t.current||n[6]!==r.props?(a=[e,t.current,r.props],n[4]=e,n[5]=t.current,n[6]=r.props,n[7]=a):a=n[7];const[i,l]=tq(s,a);return l}function fEe(t){const e=to(),n=e.at(t);if(!n)throw new Error("Could not find node for index: ".concat(t));return v.useMemo(()=>{const r=n.clone();return e.visibleNodes[t]=r,r},[...Object.values(n.state),n])}const Pq=v.memo(function({index:e,style:n}){gN(),S8e();const r=to(),s=fEe(e),a=v.useRef(null),i=uEe(s),l=dEe(a,s),c=v.useCallback(g=>{a.current=g,l(g)},[l]),d=r.indent*s.level,p=v.useMemo(()=>({paddingLeft:d}),[d]),f=v.useMemo(()=>{var g,w;return ae(R({},n),{top:parseFloat(n.top)+((w=(g=r.props.padding)!=null?g:r.props.paddingTop)!=null?w:0)})},[n,r.props.padding,r.props.paddingTop]),m={role:"treeitem","aria-level":s.level,"aria-selected":s.isSelected,style:f,tabIndex:-1,className:r.props.rowClassName};v.useEffect(()=>{var g;!s.isEditing&&s.isFocused&&((g=a.current)==null||g.focus({preventScroll:!0}))},[s.isEditing,s.isFocused,a.current]);const b=r.renderNode,C=r.renderRow;return o.jsx(C,{node:s,innerRef:c,attrs:m,children:o.jsx(b,{node:s,tree:r,style:p,dragHandle:i})},s.id)});let KA="",GA=null;function Mq(){const t=Te(30);gN();const e=to();let n;t[0]!==e.width?(n={width:e.width,minHeight:0,minWidth:0},t[0]=e.width,t[1]=n):n=t[1];let r,s,a;t[2]!==e?(r=f=>{f.currentTarget.contains(f.relatedTarget)||e.onFocus()},s=f=>{f.currentTarget.contains(f.relatedTarget)||e.onBlur()},a=f=>{var b;if(e.isEditing)return;if(f.key==="Backspace"){if(!e.props.onDelete)return;const C=Array.from(e.selectedIds);if(C.length>1){let g=e.mostRecentNode;for(;g&&g.isSelected;)g=g.nextSibling;g||(g=e.lastNode),e.focus(g,{scroll:!1}),e.delete(Array.from(C))}else{const g=e.focusedNode;if(g){const w=g.nextSibling,x=g.parent;e.focus(w||x,{scroll:!1}),e.delete(g)}}return}if(f.key==="Tab"&&!f.shiftKey){f.preventDefault(),fq(f.currentTarget);return}if(f.key==="Tab"&&f.shiftKey){f.preventDefault(),hq(f.currentTarget);return}if(f.key==="ArrowDown"){f.preventDefault();const C=e.nextNode;if(f.metaKey){e.select(e.focusedNode),e.activate(e.focusedNode);return}else if(!f.shiftKey||e.props.disableMultiSelection){e.focus(C);return}else{if(!C)return;const g=e.focusedNode;g?g.isSelected?e.selectContiguous(C):e.selectMulti(C):e.focus(e.firstNode);return}}if(f.key==="ArrowUp"){f.preventDefault();const C=e.prevNode;if(!f.shiftKey||e.props.disableMultiSelection){e.focus(C);return}else{if(!C)return;const g=e.focusedNode;g?g.isSelected?e.selectContiguous(C):e.selectMulti(C):e.focus(e.lastNode);return}}if(f.key==="ArrowRight"){const C=e.focusedNode;if(!C)return;C.isInternal&&C.isOpen?e.focus(e.nextNode):C.isInternal&&e.open(C.id);return}if(f.key==="ArrowLeft"){const C=e.focusedNode;if(!C||C.isRoot)return;C.isInternal&&C.isOpen?e.close(C.id):(b=C.parent)!=null&&b.isRoot||e.focus(C.parent);return}if(f.key==="a"&&f.metaKey&&!e.props.disableMultiSelection){f.preventDefault(),e.selectAll();return}if(f.key==="a"&&!f.metaKey&&e.props.onCreate){e.createLeaf();return}if(f.key==="A"&&!f.metaKey){if(!e.props.onCreate)return;e.createInternal();return}if(f.key==="Home"){f.preventDefault(),e.focus(e.firstNode);return}if(f.key==="End"){f.preventDefault(),e.focus(e.lastNode);return}if(f.key==="Enter"){const C=e.focusedNode;if(!C||!C.isEditable||!e.props.onRename)return;setTimeout(()=>{C&&e.edit(C)});return}if(f.key===" "){f.preventDefault();const C=e.focusedNode;if(!C)return;C.isLeaf?(C.select(),C.activate()):C.toggle();return}if(f.key==="*"){const C=e.focusedNode;if(!C)return;e.openSiblings(C);return}if(f.key==="PageUp"){f.preventDefault(),e.pageUp();return}f.key==="PageDown"&&(f.preventDefault(),e.pageDown()),clearTimeout(GA),GA=setTimeout(()=>{KA=""},300);const m=e.visibleNodes.find(C=>{const g=C.data.name;return typeof g=="string"?g.toLowerCase().includes(KA.toLowerCase()):!1});m&&e.focus(m.id)},t[2]=e,t[3]=r,t[4]=s,t[5]=a):(r=t[3],s=t[4],a=t[5]);const i=e.visibleNodes.length*e.rowHeight;let l;t[6]!==e.visibleNodes?(l=f=>{var m;return((m=e.visibleNodes[f])==null?void 0:m.id)||f},t[6]=e.visibleNodes,t[7]=l):l=t[7];let c;t[8]!==e?(c=e.onItemsRendered.bind(e),t[8]=e,t[9]=c):c=t[9];let d;t[10]!==e.props.className||t[11]!==e.props.onScroll||t[12]!==e.listEl||t[13]!==e.visibleNodes.length||t[14]!==e.width||t[15]!==e.rowHeight||t[16]!==e.overscanCount||t[17]!==e.list||t[18]!==i||t[19]!==l||t[20]!==c?(d=o.jsx(CV,{className:e.props.className,outerRef:e.listEl,itemCount:e.visibleNodes.length,height:i,width:e.width,itemSize:e.rowHeight,overscanCount:e.overscanCount,itemKey:l,outerElementType:Tq,innerElementType:_q,onScroll:e.props.onScroll,onItemsRendered:c,ref:e.list,children:Pq}),t[10]=e.props.className,t[11]=e.props.onScroll,t[12]=e.listEl,t[13]=e.visibleNodes.length,t[14]=e.width,t[15]=e.rowHeight,t[16]=e.overscanCount,t[17]=e.list,t[18]=i,t[19]=l,t[20]=c,t[21]=d):d=t[21];let p;return t[22]!==n||t[23]!==e.props.onContextMenu||t[24]!==e.props.onClick||t[25]!==r||t[26]!==s||t[27]!==a||t[28]!==d?(p=o.jsx("div",{style:n,onContextMenu:e.props.onContextMenu,onClick:e.props.onClick,tabIndex:0,onFocus:r,onBlur:s,onKeyDown:a,children:d}),t[22]=n,t[23]=e.props.onContextMenu,t[24]=e.props.onClick,t[25]=r,t[26]=s,t[27]=a,t[28]=d,t[29]=p):p=t[29],p}const hEe={display:"flex",alignItems:"center",zIndex:1},pEe={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},mEe={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},gEe=Vt.memo(function(e){const n=Te(10),{top:r,left:s,indent:a}=e,i=r-2+"px",l=s+"px",c=a+"px";let d;n[0]!==i||n[1]!==l||n[2]!==c?(d={position:"absolute",pointerEvents:"none",top:i,left:l,right:c},n[0]=i,n[1]=l,n[2]=c,n[3]=d):d=n[3];const p=d;let f;n[4]!==p?(f=R(R({},hEe),p),n[4]=p,n[5]=f):f=n[5];let m;n[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx("div",{style:R({},mEe)}),n[6]=m):m=n[6];let b;n[7]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("div",{style:R({},pEe)}),n[7]=b):b=n[7];let C;return n[8]!==f?(C=o.jsxs("div",{style:f,children:[m,b]}),n[8]=f,n[9]=C):C=n[9],C});function vEe(t){const e=Te(12);let n;e[0]!==t.node?(n=l=>{l.stopPropagation(),t.node.toggle()},e[0]=t.node,e[1]=n):n=e[1];const r=t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀";let s;e[2]!==n||e[3]!==r?(s=o.jsx("span",{onClick:n,children:r}),e[2]=n,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==t?(a=t.node.isEditing?o.jsx(yEe,R({},t)):o.jsx(xEe,R({},t)),e[5]=t,e[6]=a):a=e[6];let i;return e[7]!==t.dragHandle||e[8]!==t.style||e[9]!==s||e[10]!==a?(i=o.jsxs("div",{ref:t.dragHandle,style:t.style,children:[s," ",a]}),e[7]=t.dragHandle,e[8]=t.style,e[9]=s,e[10]=a,e[11]=i):i=e[11],i}function xEe(t){const e=Te(2);let n;return e[0]!==t.node.data.name?(n=o.jsx(o.Fragment,{children:o.jsx("span",{children:t.node.data.name})}),e[0]=t.node.data.name,e[1]=n):n=e[1],n}function yEe(t){const e=Te(10),{node:n}=t,r=v.useRef();let s,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{var d,p;(d=r.current)==null||d.focus(),(p=r.current)==null||p.select()},a=[],e[0]=s,e[1]=a):(s=e[0],a=e[1]),v.useEffect(s,a);let i,l;e[2]!==n?(i=()=>n.reset(),l=d=>{var p;d.key==="Escape"&&n.reset(),d.key==="Enter"&&n.submit(((p=r.current)==null?void 0:p.value)||"")},e[2]=n,e[3]=i,e[4]=l):(i=e[3],l=e[4]);let c;return e[5]!==r||e[6]!==n.data.name||e[7]!==i||e[8]!==l?(c=o.jsx("input",{ref:r,defaultValue:n.data.name,onBlur:i,onKeyDown:l}),e[5]=r,e[6]=n.data.name,e[7]=i,e[8]=l,e[9]=c):c=e[9],c}function bEe(t){const e=Te(6),{node:n,attrs:r,innerRef:s,children:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=c=>c.stopPropagation(),e[0]=i):i=e[0];let l;return e[1]!==r||e[2]!==s||e[3]!==n.handleClick||e[4]!==a?(l=o.jsx("div",ae(R({},r),{ref:s,onFocus:i,onClick:n.handleClick,children:a})),e[1]=r,e[2]=s,e[3]=n.handleClick,e[4]=a,e[5]=l):l=e[5],l}const YA=t=>t.reduce((e,n,r)=>(e[n.id]=r,e),{});function ZA(t){return t.isFiltered?kEe(t.root,t.isMatch.bind(t)):wEe(t.root)}function wEe(t){const e=[];function n(r){var s;r.level>=0&&e.push(r),r.isOpen&&((s=r.children)==null||s.forEach(n))}return n(t),e.forEach(Dq),e}function kEe(t,e){const n={},r=[];function s(i){if(!i.isRoot&&e(i)){n[i.id]=!0;let c=i.parent;for(;c;)n[c.id]=!0,c=c.parent}if(i.children)for(let c of i.children)s(c)}function a(i){var l;i.level>=0&&n[i.id]&&r.push(i),i.isOpen&&((l=i.children)==null||l.forEach(a))}return s(t),a(t),r.forEach(Dq),r}function Dq(t,e){t.rowIndex=e}function _4(t){return{type:"EDIT",id:t}}function CEe(t={id:null},e){return e.type==="EDIT"?ae(R({},t),{id:e.id}):t}function $p(t){return{type:"FOCUS",id:t}}function SEe(){return{type:"TREE_BLUR"}}function jEe(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?ae(R({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?ae(R({},t),{treeFocused:!1}):t}const Tj={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function XA(t={},e){if(e.type==="VISIBILITY_OPEN")return ae(R({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return ae(R({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const n=t[e.id];return ae(R({},t),{[e.id]:!n})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function EEe(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?ae(R({},t),{filtered:XA(t.filtered,e)}):ae(R({},t),{unfiltered:XA(t.unfiltered,e)}):t}const ai={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:Mf(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(Mf)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(Mf)}),set:t=>R({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:Mf(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:Mf(t)})};function NEe(t=zv().nodes.selection,e){const n=t.ids;switch(e.type){case"SELECTION_CLEAR":return ae(R({},t),{ids:new Set});case"SELECTION_ONLY":return ae(R({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(r=>n.add(r)),ae(R({},t),{ids:new Set(n)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(r=>n.delete(r)),ae(R({},t),{ids:new Set(n)}));case"SELECTION_SET":return ae(R({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return ae(R({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return ae(R({},t),{anchor:e.id});default:return t}}const{safeRun:$s,identify:Ec,identifyNull:oi}=z8e,pm=class pm{constructor(e,n,r,s){kt(this,"root");kt(this,"visibleNodes");kt(this,"visibleStartIndex",0);kt(this,"visibleStopIndex",0);kt(this,"idToIndex");this.store=e,this.props=n,this.list=r,this.listEl=s,this.root=qA(this),this.visibleNodes=ZA(this),this.idToIndex=YA(this.visibleNodes)}update(e){this.props=e,this.root=qA(this),this.visibleNodes=ZA(this),this.idToIndex=YA(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!=null?e:"100%"}get closedFolderIds(){var e;return(e=this.props.closedFolderItemIds)!=null?e:[]}get height(){var e;return(e=this.props.height)!=null?e:1500}get indent(){var e;return(e=this.props.indent)!=null?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!=null?e:26}get overscanCount(){var e;return(e=this.props.overscanCount)!=null?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var n;const e=(n=this.props.searchMatch)!=null?n:(r,s)=>JSON.stringify(Object.values(r.data)).toLocaleLowerCase().includes(s.toLocaleLowerCase());return r=>e(r,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=g1(e,n))!=null?r:null}accessId(e){const n=this.props.idAccessor||"id",r=g1(e,n);if(!r)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return r}get firstNode(){var e;return(e=this.visibleNodes[0])!=null?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!=null?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!=null?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!=null?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,n){var l;if(e===null||n===null)return[];const r=(l=this.indexOf(e))!=null?l:0,s=this.indexOf(n);if(s===null)return[];const a=Math.min(r,s),i=Math.max(r,s);return this.visibleNodes.slice(a,i+1)}indexOf(e){const n=mq(e);return n?this.idToIndex[n]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return ge(this,arguments,function*(e={}){var i,l;const n=e.parentId===void 0?yq(this):e.parentId,r=(i=e.index)!=null?i:xq(this),s=(l=e.type)!=null?l:"leaf",a=yield $s(this.props.onCreate,{type:s,parentId:n,index:r,parentNode:this.get(n)});a&&(this.focus(a),setTimeout(()=>{this.edit(a).then(()=>{this.select(a),this.activate(a)})}))})}delete(e){return ge(this,null,function*(){if(!e)return;const r=(Array.isArray(e)?e:[e]).map(Ec),s=r.map(a=>this.get(a)).filter(a=>!!a);yield $s(this.props.onDelete,{nodes:s,ids:r})})}edit(e){const n=Ec(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(n),this.dispatch(_4(n)),new Promise(r=>{pm.editPromise=r})}submit(e,n){return ge(this,null,function*(){if(!e)return;const r=Ec(e);yield $s(this.props.onRename,{id:r,name:n,node:this.get(r)}),setTimeout(()=>{this.focus(this.get(r)),this.dispatch(_4(null)),this.resolveEdit({cancelled:!1,value:n}),this.onFocus()},300)})}reset(){this.dispatch(_4(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const n=this.get(oi(e));n&&$s(this.props.onActivate,n)}resolveEdit(e){const n=pm.editPromise;n&&n(e),pm.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let n of Array.from(this.selectedIds)){const r=this.get(n);r&&e.push(r)}return e}focus(e,n={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch($p(Ec(e))),n.scroll!==!1&&this.scrollTo(e),this.focusedNode&&$s(this.props.onFocus,this.focusedNode)))}pageUp(){var a,i;const e=this.visibleStartIndex,r=this.visibleStopIndex-e;let s=(i=(a=this.focusedNode)==null?void 0:a.rowIndex)!=null?i:0;s>e?s=e:s=Math.max(e-r,0),this.focus(this.at(s))}pageDown(){var a,i;const e=this.visibleStartIndex,n=this.visibleStopIndex,r=n-e;let s=(i=(a=this.focusedNode)==null?void 0:a.rowIndex)!=null?i:0;sthis.get(e)).filter(e=>!!e)}canDrop(){var s;const e=(s=this.get(this.state.dnd.parentId))!=null?s:this.root,n=this.dragNodes,r=this.props.disableDrop;for(const a of n)if(!a||!e||a.isInternal&&uq(e,a))return!1;return typeof r=="function"?!r({parentNode:e,dragNodes:this.dragNodes,index:this.state.dnd.index}):typeof r=="string"?!e.data[r]:typeof r=="boolean"?!r:!0}hideCursor(){this.dispatch(x0.cursor({type:"none"}))}showCursor(e){this.dispatch(x0.cursor(e))}open(e){const n=oi(e);n&&(this.isOpen(n)||(this.dispatch(Tj.open(n,this.isFiltered)),$s(this.props.onFolderOpen,n)))}close(e){const n=oi(e);n&&this.isOpen(n)&&(this.dispatch(Tj.close(n,this.isFiltered)),$s(this.props.onFolderClose,n))}toggle(e){const n=oi(e);if(n)return this.isOpen(n)?this.close(n):this.open(n)}openParents(e){const n=oi(e);if(!n)return;const r=vN(this.root,n);let s=r==null?void 0:r.parent;for(;s;)this.open(s.id),s=s.parent}openSiblings(e){const n=e.parent;if(!n)this.toggle(e.id);else if(n.children){const r=e.isOpen;for(let s of n.children)s.isInternal&&(r?this.close(s.id):this.open(s.id));this.scrollTo(this.focusedNode)}}openAll(){zw(this.root,e=>{e.isInternal&&e.open()})}closeAll(){zw(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,n="smart"){if(!e)return;const r=Ec(e);return this.openParents(r),vq(()=>r in this.idToIndex).then(()=>{var a;const s=this.idToIndex[r];s!==void 0&&((a=this.list.current)==null||a.scrollToItem(s,n))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!((e=this.props.searchTerm)!=null&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,s,a;if(!e)return!1;if(e===Fv)return!0;const n=(r=this.props.openByDefault)!=null?r:!0;return this.isFiltered?(s=this.state.nodes.open.filtered[e])!=null?s:!0:(a=this.state.nodes.open.unfiltered[e])!=null?a:n}isEditable(e){const n=this.props.disableEdit||(()=>!1);return!g1(e,n)}isDraggable(e){const n=this.props.disableDrag||(()=>!1);return!g1(e,n)}isDragging(e){const n=oi(e);return n?this.state.nodes.drag.id===n:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const n=oi(e);return n?n===this.state.nodes.drag.idWillReceiveDrop:!1}onSearchClear(){var e,n;(n=(e=this.props).onSearchClear)==null||n.call(e)}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch($p(e.id))}onBlur(){this.dispatch(SEe())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Mq}get renderRow(){return this.props.renderRow||bEe}get renderNode(){return this.props.children||vEe}get renderDragPreview(){return this.props.renderDragPreview||oq}get renderCursor(){return this.props.renderCursor||gEe}};kt(pm,"editPromise");let Pj=pm;function _Ee(t={id:null,idWillReceiveDrop:null},e){switch(e.type){case"DND_DRAG_START":return ae(R({},t),{id:e.id});case"DND_DRAG_END":return ae(R({},t),{id:null});case"DND_CURSOR":const n=e.cursor;return n.type==="highlight"&&n.id!==t.idWillReceiveDrop?ae(R({},t),{idWillReceiveDrop:n.id}):n.type!=="highlight"&&t.idWillReceiveDrop!==null?ae(R({},t),{idWillReceiveDrop:null}):t;default:return t}}const TEe=LA({nodes:LA({focus:jEe,edit:CEe,open:EEe,selection:NEe,drag:_Ee}),dnd:A8e}),PEe=zv();function MEe({treeProps:t,imperativeHandle:e,children:n}){const r=v.useRef(null),s=v.useRef(null),a=v.useRef(cN(TEe,zv(t))),i=XO.useSyncExternalStore(a.current.subscribe,a.current.getState,()=>PEe),l=v.useMemo(()=>new Pj(a.current,t,r,s),[]),c=v.useRef(0);return v.useMemo(()=>{c.current+=1,l.update(t)},[...Object.values(t),i.nodes.open]),v.useImperativeHandle(e,()=>l),v.useEffect(()=>{l.props.selection?l.select(l.props.selection,{focus:!1}):l.deselectAll()},[l.props.selection]),v.useEffect(()=>{l.props.selectedIds&&l.props.selectedIds.length>0?l.setSelectIds(l.props.selectedIds):l.deselectAll()},[l.props.selectedIds]),v.useEffect(()=>{l.props.searchTerm||a.current.dispatch(Tj.clear(!0))},[l.props.searchTerm]),o.jsx(nq.Provider,{value:l,children:o.jsx(aq.Provider,{value:c.current,children:o.jsx(rq.Provider,{value:i.nodes,children:o.jsx(sq.Provider,{value:i.dnd,children:o.jsx(qje,ae(R({backend:iEe,options:{rootElement:l.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager}),{children:n}))})})})})}function DEe(){const t=Te(2),n=to().props.renderContainer||Mq;let r;return t[0]!==n?(r=o.jsx(o.Fragment,{children:o.jsx(n,{})}),t[0]=n,t[1]=r):r=t[1],r}function IEe(t,e){const n=Te(5),r=_6e(t);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(q8e,{children:o.jsx(DEe,{})}),n[0]=s):s=n[0];let a;n[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(I8e,{}),n[1]=a):a=n[1];let i;return n[2]!==r||n[3]!==e?(i=o.jsxs(MEe,{treeProps:r,imperativeHandle:e,children:[s,a]}),n[2]=r,n[3]=e,n[4]=i):i=n[4],i}const AEe=v.forwardRef(IEe);function Iq(){const t=Te(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,r]=v.useState(e);new BV(n);let s;return t[1]!==n?(s={data:n,setData:r},t[1]=n,t[2]=s):s=t[2],s}function QA(t){const e=Te(37),{children:n}=t,{currentCollectionId:r,collections:s}=Tt(Ar),{selectCollectionById:a}=l7(),i=ua(),{t:l}=Gt(),{isShowDisabledCollectionsOnNavBarMenu:c}=Tt(Cr);let d;e[0]!==n?(d=o.jsx(Gn,{className:"flex m-0 p-0",asChild:!0,children:n}),e[0]=n,e[1]=d):d=e[1];let p;e[2]!==l?(p=l("Switch collections",{ns:"collections"}),e[2]=l,e[3]=p):p=e[3];let f;e[4]!==p?(f=o.jsx(rt,{disabled:!0,className:"flex justify-center py-0.5",children:p}),e[4]=p,e[5]=f):f=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(kn,{}),e[6]=m):m=e[6];let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b={height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},e[7]=b):b=e[7];const C=r!=null?r:"";let g;if(e[8]!==c||e[9]!==s||e[10]!==a){let T;e[12]!==c?(T=z=>{const{isEnabled:Y}=z;return c||Y},e[12]=c,e[13]=T):T=e[13];let L;e[14]!==c?(L=(z,Y)=>{if(c){if(z.isEnabled&&!Y.isEnabled)return-1;if(!z.isEnabled&&Y.isEnabled)return 1}return z.createdAt-Y.createdAt},e[14]=c,e[15]=L):L=e[15];let A;e[16]!==a?(A=z=>{const{collectionId:Y,isEnabled:O,title:$,isSelected:M}=z;return o.jsx(EH,{value:Y,disabled:!O,onClick:()=>{a({selectCollection:{collectionId:Y}})},children:o.jsx("span",{className:M?"font-semibold":"",children:$})},Y)},e[16]=a,e[17]=A):A=e[17],g=s.filter(T).sort(L).map(A),e[8]=c,e[9]=s,e[10]=a,e[11]=g}else g=e[11];let w;e[18]!==C||e[19]!==g?(w=o.jsx(or,{className:"code-filter",style:b,autoHide:!1,children:o.jsx(Jpe,{value:C,children:g})}),e[18]=C,e[19]=g,e[20]=w):w=e[20];let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(kn,{}),e[21]=x):x=e[21];let S;e[22]!==i?(S=()=>{i("/app-settings/collections",{replace:!0})},e[22]=i,e[23]=S):S=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(zh,{className:"mr-2",size:14}),e[24]=E):E=e[24];let N;e[25]!==l?(N=l("Manage Collections",{ns:"collections"}),e[25]=l,e[26]=N):N=e[26];let _;e[27]!==S||e[28]!==N?(_=o.jsxs(rt,{onClick:S,children:[E,N]}),e[27]=S,e[28]=N,e[29]=_):_=e[29];let P;e[30]!==f||e[31]!==w||e[32]!==_?(P=o.jsxs(Wn,{forceMount:!0,sideOffset:8,align:"center",children:[f,m,w,x,_]}),e[30]=f,e[31]=w,e[32]=_,e[33]=P):P=e[33];let I;return e[34]!==d||e[35]!==P?(I=o.jsxs(Kn,{children:[d,P]}),e[34]=d,e[35]=P,e[36]=I):I=e[36],I}const LEe="_node_1usvv_1",REe="_dropCursor_1usvv_55",OEe="_mainContent_1usvv_61",$Ee="_mobileWarning_1usvv_68",zEe="_content_1usvv_83",FEe="_sidebar_1usvv_89",Aq={node:LEe,dropCursor:REe,mainContent:OEe,mobileWarning:$Ee,content:zEe,sidebar:FEe};function HEe(t){const e=Te(4),{top:n,left:r}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Pn(Aq.dropCursor,"border-slate-400 border-dashed border-t-2"),e[0]=s):s=e[0];const a=n-1;let i;return e[1]!==a||e[2]!==r?(i=o.jsx("div",{className:s,style:{top:a,left:r}}),e[1]=a,e[2]=r,e[3]=i):i=e[3],i}const BEe={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},UEe=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e,"px, ").concat(n,"px)")}},WEe=t=>{if(!t)return{display:"none"};const{x:e,y:n}=t;return{transform:"translate(".concat(e+10,"px, ").concat(n+10,"px)")}},VEe=v.memo(function(e){const n=Te(2);if(!e.isDragging)return null;let r;return n[0]!==e.children?(r=o.jsx("div",{style:BEe,children:e.children}),n[0]=e.children,n[1]=r):r=n[1],r});function qEe(t){const e=Te(5);let n;e[0]!==t.offset?(n=UEe(t.offset),e[0]=t.offset,e[1]=n):n=e[1];let r;return e[2]!==n||e[3]!==t.children?(r=o.jsx("div",{className:"row preview",style:n,children:t.children}),e[2]=n,e[3]=t.children,e[4]=r):r=e[4],r}function KEe(t){const e=Te(5),{count:n,mouse:r}=t;if(n>1){let s;e[0]!==r?(s=WEe(r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==s||e[3]!==n?(a=o.jsx("div",{className:"selected-count",style:s,children:n}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}else return null}const GEe=v.memo(function(e){const n=Te(9),r=to();let s;n[0]!==r||n[1]!==e.id?(s=r.get(e.id),n[0]=r,n[1]=e.id,n[2]=s):s=n[2];const a=s;if(!a)return null;const i=a.level*r.indent;let l;n[3]!==i?(l={paddingLeft:i,opacity:.5,background:"transparent"},n[3]=i,n[4]=l):l=n[4];let c;return n[5]!==r||n[6]!==a||n[7]!==l?(c=o.jsx(r.renderNode,{preview:!0,node:a,style:l,tree:r}),n[5]=r,n[6]=a,n[7]=l,n[8]=c):c=n[8],c});function YEe(t){const e=Te(13),{offset:n,mouse:r,id:s,dragIds:a,isDragging:i}=t;let l;e[0]!==s||e[1]!==a?(l=o.jsx(GEe,{id:s,dragIds:a}),e[0]=s,e[1]=a,e[2]=l):l=e[2];let c;e[3]!==n||e[4]!==l?(c=o.jsx(qEe,{offset:n,children:l}),e[3]=n,e[4]=l,e[5]=c):c=e[5];let d;e[6]!==r||e[7]!==a.length?(d=o.jsx(KEe,{mouse:r,count:a.length}),e[6]=r,e[7]=a.length,e[8]=d):d=e[8];let p;return e[9]!==i||e[10]!==c||e[11]!==d?(p=o.jsxs(VEe,{isDragging:i,children:[c,d]}),e[9]=i,e[10]=c,e[11]=d,e[12]=p):p=e[12],p}function ZEe(t){const e=Te(8),{node:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=l=>l.currentTarget.select(),e[0]=r):r=e[0];let s,a;e[1]!==n?(s=()=>n.reset(),a=l=>{l.key==="Escape"&&n.reset(),l.key==="Enter"&&n.submit(l.currentTarget.value)},e[1]=n,e[2]=s,e[3]=a):(s=e[2],a=e[3]);let i;return e[4]!==n.data.name||e[5]!==s||e[6]!==a?(i=o.jsx(Wd,{autoFocus:!0,type:"text",classNameInput:"border-0 text-[15px] w-full bg-transparent p-0",className:"!justify-start pl-1 border-0",defaultValue:n.data.name,onFocus:r,onBlur:s,onKeyDown:a}),e[4]=n.data.name,e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function XEe(t){const e=Te(27),{node:n,style:r,dragHandle:s}=t,{t:a}=Gt();let i;e[0]!==n.state?(i=Pn(Aq.node,n.state,"flex items-center w-full transition-all duration-100 ease-in"),e[0]=n.state,e[1]=i):i=e[1];let l;e[2]!==n?(l=()=>n.isInternal&&n.toggle(),e[2]=n,e[3]=l):l=e[3];let c;e[4]!==n.level?(c=n.level>0&&o.jsx("div",{}),e[4]=n.level,e[5]=c):c=e[5];let d;e[6]!==n?(d=!n.isLeaf&&!n.isOpen&&o.jsx(r0,{width:17,height:17,className:"mr-2"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==n?(p=!n.isLeaf&&n.isOpen&&o.jsx(_z,{width:17,height:17,className:"mr-2"}),e[8]=n,e[9]=p):p=e[9];let f;e[10]!==d||e[11]!==p?(f=o.jsxs("div",{children:[d,p]}),e[10]=d,e[11]=p,e[12]=f):f=e[12];let m;e[13]!==n||e[14]!==a?(m=o.jsx("div",{className:"flex items-center justify-start w-full overflow-hidden mr-4",children:n.data.isSeparator?o.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-70 w-full"}):o.jsx(o.Fragment,{children:n.isEditing?o.jsx(ZEe,{node:n}):o.jsxs("div",{className:"overflow-hidden overflow-ellipsis text-[15px] ".concat(n.data.isDisabled?"text-gray-500/60":""," "),children:[n.data.name,n.data.isClip&&o.jsx("div",{title:a("Menu is a link to a clip",{ns:"menus"}),className:"inline-block",children:o.jsx(px,{size:13,className:"inline ml-2 mt-[-3px] dark:text-slate-500 text-slate-400"})})]})})}),e[13]=n,e[14]=a,e[15]=m):m=e[15];let b;e[16]!==n?(b=o.jsx(QEe,{node:n}),e[16]=n,e[17]=b):b=e[17];let C;return e[18]!==s||e[19]!==r||e[20]!==i||e[21]!==l||e[22]!==c||e[23]!==f||e[24]!==m||e[25]!==b?(C=o.jsxs("div",{ref:s,style:r,className:i,onClick:l,children:[c,f,m,b]}),e[18]=s,e[19]=r,e[20]=i,e[21]=l,e[22]=c,e[23]=f,e[24]=m,e[25]=b,e[26]=C):C=e[26],C}function QEe(t){const e=Te(3),{node:n}=t;if(n.isLeaf){let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{}),e[0]=s):s=e[0],s}let r;return e[1]!==n.isOpen?(r=n.isOpen?o.jsx(Bn,{width:22,className:"mr-3"}):o.jsx(T0,{width:22,className:"mr-3"}),e[1]=n.isOpen,e[2]=r):r=e[2],r}function JEe(t){var e=sn(1);try{const n=Te(18),{node:r,attrs:s,innerRef:a,children:i}=t,l=T4.value===r.id,{t:c}=Gt();let d;n[0]!==r.id?(d=()=>{T4.value=r.id},n[0]=r.id,n[1]=d):d=n[1];let p;n[2]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{T4.value=null},n[2]=p):p=n[2];const f="".concat(l?"bg-slate-100/90 dark:bg-gray-900/90":""," ").concat(r.isEditing?"border border-blue-400 dark:!bg-slate-900":""," ").concat(r.data.isActive?"":"not-active-background ".concat(r.isEditing?"dark:text-slate-800 bg-slate-800":"line-through dark:text-slate-600 text-slate-400"," dark:bg-slate-900 bg-slate-200")," ").concat(r.isSelected&&!r.isEditing?"dark:!bg-slate-600 dark:!text-slate-50":""," transition-all overflow-hidden");let m;n[3]===Symbol.for("react.memo_cache_sentinel")?(m=w=>w.stopPropagation(),n[3]=m):m=n[3];let b,C;n[4]!==r||n[5]!==c?(b=()=>{if(!r.isEditing){if(r.data.isClip){yo(c("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}r.edit()}},C=w=>{if(r.data.isClip){w.stopPropagation(),yo(c("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}w.key==="Enter"&&r.edit()},n[4]=r,n[5]=c,n[6]=b,n[7]=C):(b=n[6],C=n[7]);let g;return n[8]!==s||n[9]!==r.id||n[10]!==r.handleClick||n[11]!==d||n[12]!==a||n[13]!==f||n[14]!==b||n[15]!==C||n[16]!==i?(g=v.createElement("div",ae(R({},s),{key:r.id,onMouseEnter:d,onMouseLeave:p,ref:a,className:f,onFocus:m,onClick:r.handleClick,onDoubleClickCapture:b,onKeyDown:C}),i),n[8]=s,n[9]=r.id,n[10]=r.handleClick,n[11]=d,n[12]=a,n[13]=f,n[14]=b,n[15]=C,n[16]=i,n[17]=g):g=n[17],g}finally{e.f()}}function e7e(){const t=Te(26),{t:e}=Gt();gN();const n=to();let r;t[0]!==n.width?(r={width:n.width,minHeight:0,minWidth:0},t[0]=n.width,t[1]=r):r=t[1];let s;t[2]!==n||t[3]!==e?(s=n.isFiltered&&o.jsx("div",{className:"text-slate-400 text-sm rounded-sm mb-1 mt-1 flex items-center justify-center",children:o.jsx(st,{text:e("Clear found results",{ns:"common"}),className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{n.onSearchClear()},sideOffset:5,children:o.jsx(re,{className:"text-xs text-center bg-blue-200 rounded-full px-3 cursor-pointer pointer-events-auto",children:n.visibleNodes.length?o.jsxs(o.Fragment,{children:[n.visibleNodes.length<100?n.visibleNodes.length:"100+"," ",e("found",{ns:"common"})]}):o.jsx(o.Fragment,{children:e("Nothing found",{ns:"common"})})})})}),t[2]=n,t[3]=e,t[4]=s):s=t[4];const a=n.visibleNodes.length*n.rowHeight;let i;t[5]!==n.visibleNodes?(i=p=>{var f;return((f=n.visibleNodes[p])==null?void 0:f.id)||p},t[5]=n.visibleNodes,t[6]=i):i=t[6];let l;t[7]!==n?(l=n.onItemsRendered.bind(n),t[7]=n,t[8]=l):l=t[8];let c;t[9]!==n.props.className||t[10]!==n.listEl||t[11]!==n.visibleNodes.length||t[12]!==n.width||t[13]!==n.rowHeight||t[14]!==n.overscanCount||t[15]!==n.list||t[16]!==a||t[17]!==i||t[18]!==l?(c=o.jsx(CV,{className:n.props.className,outerRef:n.listEl,itemCount:n.visibleNodes.length,height:a,width:n.width,itemSize:n.rowHeight,overscanCount:n.overscanCount,itemKey:i,outerElementType:Tq,innerElementType:_q,onItemsRendered:l,ref:n.list,children:Pq}),t[9]=n.props.className,t[10]=n.listEl,t[11]=n.visibleNodes.length,t[12]=n.width,t[13]=n.rowHeight,t[14]=n.overscanCount,t[15]=n.list,t[16]=a,t[17]=i,t[18]=l,t[19]=c):c=t[19];let d;return t[20]!==r||t[21]!==n.props.onContextMenu||t[22]!==n.props.onClick||t[23]!==s||t[24]!==c?(d=o.jsxs("div",{style:r,onContextMenu:n.props.onContextMenu,onClick:n.props.onClick,tabIndex:0,children:[s,c]}),t[20]=r,t[21]=n.props.onContextMenu,t[22]=n.props.onClick,t[23]=s,t[24]=c,t[25]=d):d=t[25],d}const T4=Rt(null);function t7e({itemId:t,isExpanded:e,isActive:n,isDisabled:r,isSeparator:s,isCode:a,isImage:i,isImageData:l,isLink:c,isMasked:d,isPath:p,hasMaskedWords:f,hasEmoji:m,isFolder:b,isVideo:C,isDelete:g,detectedLanguage:w,imagePathFullRes:x,imageDataUrl:S,imageHash:E,imageWidthHeight:N,imageType:_,arrLinks:P,isCopyOrPaste:I,pathType:T,menuName:L,isDark:A,value:z=""}){var Y=sn(1);try{const{t:O}=Gt(),$=As(!1),{valuePreview:M,morePreviewLines:W,morePreviewChars:V}=L7(z),U=z==null?void 0:z.trim(),J=As(!1),H=As(""),{metadataLinkByItemId:F}=Sx(c,t),q=c&&!!(F!=null&&F.linkTitle&&(F!=null&&F.linkDomain));v.useEffect(()=>{e.value&&($.value=!1)},[e.value]),v.useEffect(()=>{p&&On("check_path",{path:U}).then(()=>{H.value=T}).catch(()=>{H.value="Error"})},[p]);const X=U.length===0;return o.jsxs(Vh,{className:Pn(I?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900",g&&"!bg-red-50 dark:!bg-red-900","px-3 pr-2 py-1.5 text-left flex flex-col select-auto relative rounded-md"),children:[o.jsx(ne,{className:"mb-0.5 ".concat(n?"":"opacity-40"),children:p?o.jsx(Tx,{theme:A?gl.vsDark:gl.github,code:U,language:"path",children:({className:te,style:ee,tokens:G,getLineProps:Z,getTokenProps:le})=>o.jsx("code",{className:"".concat(te," ").concat(H.value==="Error"?" line-through decoration-gray-300":""),style:ee,children:G.map((se,de)=>o.jsx("div",ae(R({},Z({line:se})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:se.map((ce,ye)=>o.jsx("span",ae(R({},le({token:ce})),{className:"".concat(H.value==="Error"?"opacity-60":""," select-text"),children:ce.content}),ye))}),de))})}):l?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:U,hasError:J.value,onErrorCallback:()=>{J.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),o.jsx("code",{className:"pb-0.5 select-none",children:M})]}):c&&i?o.jsxs(ne,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(U),hasError:J.value,onErrorCallback:()=>{J.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),o.jsx("code",{className:"pb-0.5",children:_h(U,P!=null?P:"")})]}):i?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[o.jsx("img",{src:x&&(_==="webp"||_==="gif")?"".concat(nh(x),"?").concat(E):S&&x?S:!S&&!x?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:O("Image size in pixels",{ns:"common"}),children:[N," ",_]})})]}):w&&a&&M?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:A,isLargeView:!1,isShowMore:e.value||W==null,isWrapped:$.value,value:e.value?U:M,language:w})}):X?o.jsx(ne,{className:"mb-0.5",children:o.jsx(Nv,{className:"self-start text-sm font-normal select-text !text-gray-400",children:L})}):o.jsx(hk,{isExpanded:e.value,isWrapped:$.value,isImageData:l,isLargeView:!1,isCode:a,isMasked:d,isImage:i,isDark:A,trimmedValue:U,valuePreview:M,hasLinkCard:q,metadataLinkByItemId:F,metadataLinkImageWidth:12,morePreviewLines:W,searchTerm:""})}),o.jsxs(ve,{className:"justify-between select-none",children:[(W||V)&&n&&!r?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{e.value=!e.value},children:o.jsx(st,{text:e.value?"":O("Show all",{ns:"common"}),isCompact:!0,isDisabled:e.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:e.value?o.jsxs(o.Fragment,{children:["- ",O("show less",{ns:"common"})]}):V?o.jsxs(o.Fragment,{children:["+",V," ",O("chars",{ns:"common"})]}):W&&o.jsxs(o.Fragment,{children:["+",W," ",O("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{$.value=!$.value},children:o.jsx(st,{text:$.value?O("No Wrap",{ns:"common"}):O("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:$.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):n?r?o.jsx(ne,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:O("Disabled",{ns:"common"})}):o.jsx(ne,{}):o.jsx(ne,{className:"bg-gray-200 text-gray-700 dark:bg-gray-600 dark:text-gray-300 text-xs rounded-sm px-1.5",children:O("Inactive",{ns:"common"})}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[X&&!s&&!b&&!i?o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:O("Type:::Empty",{ns:"common"})}),o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Label",{ns:"common"})})]}):s?o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400v text-xs rounded-sm px-1.5",children:O("Type:::Separator",{ns:"common"})}):b?o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:O("Type:::Submenu",{ns:"common"})}):i?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Image",{ns:"common"})}):w?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:w}):d||f?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(f?"px-0.5":"px-1.5"),children:d?O("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}):l?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Image Base64",{ns:"common"})}):!c&&!p&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Type:::Text",{ns:"common"})}),c?o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:C?O("Type:::Video",{ns:"common"}):qc(U)?O("Type:::Email",{ns:"common"}):O("Type:::Link",{ns:"common"})}):p&&H.value?o.jsx(ne,{className:"".concat(H.value==="Error"?"bg-red-300 dark:bg-red-800":" text-slate-700 dark:bg-slate-600"," dark:text-slate-300 bg-slate-200 text-xs rounded-sm px-1.5"),children:H.value==="Error"?o.jsx(st,{text:O("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-slate-300 bg-red-50 dark:!bg-red-800 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:H.value}):H.value}):m&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O("Emoji",{ns:"common"})})]})]})]})}finally{Y.f()}}function Lq({arrLinks:t=[],clipId:e,detectedLanguage:n,hasEmoji:r,hasMaskedWords:s,imageDataUrl:a,imageHash:i,imagePathFullRes:l,imageType:c,imageWidthHeight:d,isCode:p,isCommand:f,isWebRequest:m,isWebScraping:b,isExpanded:C,isImage:g,isImageData:w,isLargeView:x,isLink:S,isForm:E,isTemplate:N,isMasked:_,isPath:P,isVideo:I,isCopyOrPaste:T,isDark:L,isDelete:A,clipName:z,formTemplateOptions:Y,commandRequestOutput:O,isCommandRequestRunError:$,commandRequestOutputLastRunAt:M,requestOptions:W,pathType:V,value:U=""}){var H,F,q;var J=sn(1);try{const{t:X}=Gt(),te=As(!1),ee=As(!1),G=As(""),{metadataLinkByItemId:Z}=Sx(S,e),le=S&&!!(Z!=null&&Z.linkTitle&&(Z!=null&&Z.linkDomain)),se=As({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:de,morePreviewLines:ce,morePreviewChars:ye}=L7(U,g||w,x||S||P||f||m||b);v.useEffect(()=>{if(W)try{const Ee=JSON.parse(W);se.value=R(R({},se.value),Ee)}catch(Ee){}},[W]);const pe=U==null?void 0:U.trim();v.useEffect(()=>{C.value&&(ee.value=!1)},[C.value]),v.useEffect(()=>{P&&Gs("check_path",{path:pe}).then(()=>{G.value=V}).catch(()=>{G.value="Error"})},[P]);const me=x?"max-h-[600px]":"max-h-[300px]",be=pe.length===0;return o.jsxs(Vh,{className:Pn(T?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900","px-3 pr-2 py-1.5 mx-1 text-left flex flex-col select-auto relative rounded-md",A&&"!bg-red-50 dark:!bg-red-900"),children:[o.jsx(ne,{className:"mb-0.5",children:P?o.jsx(Tx,{theme:L?gl.vsDark:gl.github,code:pe,language:"path",children:({className:Ee,style:We,tokens:qe,getLineProps:ot,getTokenProps:Ve})=>o.jsx("code",{className:"".concat(Ee," ").concat(G.value==="Error"?" line-through decoration-gray-300":""),style:We,children:qe.map((Ge,ft)=>o.jsx("div",ae(R({},ot({line:Ge})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:Ge.map((Ie,Ke)=>o.jsx("span",ae(R({},Ve({token:Ie})),{className:"".concat(G.value==="Error"?"opacity-60":""," select-text"),children:Ie.content}),Ke))}),ft))})}):w?o.jsxs(ne,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[o.jsx(ne,{className:"flex px-0 py-1 items-center justify-center",children:o.jsx(vl,{src:pe,hasError:te.value,onErrorCallback:()=>{te.value=!0},draggable:!1,decoding:"async",className:"".concat(me," min-h-10")})}),o.jsx("code",{className:"pb-0.5 select-none",children:de})]}):S&&g?o.jsxs(ne,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[o.jsx(ne,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:o.jsx(vl,{src:Ir(pe),hasError:te.value,onErrorCallback:()=>{te.value=!0},draggable:!1,decoding:"async",className:"".concat(me," min-h-10")})}),o.jsx("code",{className:"pb-0.5",children:_h(pe,t)})]}):g?o.jsxs(ne,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[o.jsx("img",{src:l&&(c==="webp"||c==="gif")?"".concat(nh(l),"?").concat(i):a&&l?a:!a&&!l?uh:z1,draggable:!1,decoding:"async",height:"auto",className:"max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-600"}),o.jsx(ne,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:o.jsxs(ne,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:X("Image size in pixels",{ns:"common"}),children:[d," ",c]})})]}):n&&p&&de?o.jsx(ne,{className:"text-ellipsis self-start text-sm w-full select-text",children:o.jsx(Ca,{isDark:L,isLargeView:x,isShowMore:C.value||ce==null,isWrapped:ee.value,value:C.value?pe:de,language:n})}):f&&de?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:L,isLargeView:x,isCommand:!0,isShowMore:!0,isWrapped:ee.value,autoHideScrollbar:!0,value:pe,language:"shell"}),O&&o.jsxs(ne,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-1 rounded-md px-3 mb-1 relative border"),children:[o.jsx(Ca,{isDark:L,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:ee.value,value:O,language:"shell"}),M&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(Mh(M,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(M,"mini-minute-now",{round:"floor"})})})]})]}):(m||b)&&de?o.jsxs(ne,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[o.jsx(Ca,{isDark:L,isLargeView:x,isShowMore:!0,isWrapped:ee.value,value:pe,autoHideScrollbar:!0,webRequestMethod:m?se.value.method:"URL",language:"shell"}),O&&o.jsxs(ne,{className:"".concat($?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," py-0 rounded-md px-3 relative mb-1 border"),children:[o.jsx(Ca,{isDark:L,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:ee.value,value:O,language:$?"text":"json"}),M&&o.jsx(ne,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:o.jsx(st,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(Mh(M,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Bd().format(M,"mini-minute-now",{round:"floor"})})})]})]}):E?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(KU,{formTemplateOptions:Y,clipId:e})}):N?o.jsx(ne,{className:"self-start text-sm w-full select-text",children:o.jsx(GU,{formTemplateOptions:Y,clipId:e,value:U})}):be?o.jsx("code",{className:"text-gray-300",children:z}):o.jsx(hk,{isExpanded:C.value,isWrapped:ee.value,isImageData:w,isLargeView:x,isCode:p,isMasked:_,isImage:g,trimmedValue:pe,valuePreview:de,isDark:L,hasLinkCard:le,metadataLinkByItemId:Z,metadataLinkImageWidth:12,morePreviewLines:ce,searchTerm:""})}),o.jsxs(ve,{className:"justify-between select-none",children:[(m||f||b)&&O?o.jsx(ne,{className:"flex flex-row items-center rounded",children:o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ee.value=!ee.value},children:o.jsx(st,{text:ee.value?"No Wrap":"Lines Wrap",delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ee.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})}):ce||ye?o.jsxs(ne,{className:"flex flex-row items-center rounded",children:[o.jsx(ne,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{C.value=!C.value},children:o.jsx(st,{text:C.value?"":X("Show all",{ns:"common"}),isCompact:!0,isDisabled:C.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:C.value?o.jsxs(o.Fragment,{children:["- ",X("show less",{ns:"common"})]}):ye?o.jsxs(o.Fragment,{children:["+",ye," ",X("chars",{ns:"common"})]}):ce&&o.jsxs(o.Fragment,{children:["+",ce," ",X("lines",{ns:"common"})]})})}),o.jsx(ne,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{ee.value=!ee.value},children:o.jsx(st,{text:ee.value?X("No Wrap",{ns:"common"}):X("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:ee.value?o.jsx(f0,{width:20,height:20}):o.jsx(h0,{width:20,height:20})})})]}):o.jsx(ne,{}),o.jsxs(ne,{className:"flex flex-row gap-1 items-center justify-end ",children:[f&&o.jsx(ne,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:$?X("Command error",{ns:"dashboard"}):X("Type:::Command",{ns:"dashboard"})}),(m||b)&&o.jsxs(ve,{className:"gap-1",children:[o.jsxs(ne,{className:"".concat($?"bg-red-500 dark:bg-red-800 text-slate-200 dark:text-red-200":"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300"," text-xs rounded-sm px-1.5"),children:[m&&o.jsx("span",{children:$?X("Request error",{ns:"dashboard"}):X("Type:::Request",{ns:"dashboard"})}),b&&o.jsx("span",{children:$?X("Error",{ns:"dashboard"}):X("Type:::Scraper",{ns:"dashboard"})})]}),b&&se.value.scrapingRules&&((H=se.value.scrapingRules)==null?void 0:H.filter(Ee=>Ee.isEnable).length)>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.headers.filter(Ee=>Ee.isEnable).length})]}),m&&se.value.headers.filter(Ee=>Ee.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.headers.filter(Ee=>Ee.isEnable).length})]}),m&&((F=se.value.auth)==null?void 0:F.isEnable)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(q=se.value.auth)==null?void 0:q.type}),m&&se.value.filters.filter(Ee=>Ee.isEnable).length>0&&o.jsxs(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Filters",{ns:"dashboard"}),o.jsx("span",{className:"ml-1 font-mono",children:se.value.filters.filter(Ee=>Ee.isEnable).length})]})]}),(_||s)&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(s?"px-0.5":"px-1.5"),children:_?X("Type:::Secret",{ns:"common"}):o.jsx(tc,{size:16})}),n&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n}),S&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:I?X("Type:::Video",{ns:"common"}):qc(pe)?X("Type:::Email",{ns:"common"}):X("Type:::Link",{ns:"common"})}),P&&G.value&&o.jsx(ne,{className:"".concat(G.value==="Error"?"bg-red-300":"bg-slate-200"," text-xs rounded-sm px-1.5"),children:G.value==="Error"?o.jsx(st,{text:X("File, folder or app path does not exist",{ns:"dashboard"}),className:"text-red-500 bg-red-50 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:G.value}):G.value}),r&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Emoji",{ns:"common"})}),be&&!E&&!g&&o.jsx(ne,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:X("Type:::Empty",{ns:"common"})}),w&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Image Base64",{ns:"common"})}),E&&o.jsx(ne,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Auto Fill",{ns:"common"})}),o.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Type:::Clip",{ns:"common"}),o.jsx(px,{size:11,className:"ml-1"})]})]})]})]})}finally{J.f()}}v.memo(Lq);function n7e({isDisabled:t,isActive:e,isMenuEdit:n,isSeparator:r,isMenu:s,isFolder:a,item:i,menuName:l,isDark:c,deletingMenuItemIds:d,isClip:p}){var m,b,C;var f=sn(1);try{const{clipItems:g}=Tt(Ar),w=it(!1),[x]=Uh({}),[S]=Wh({}),{itemId:E,isImage:N,isImageData:_,isPath:P,isLink:I,isCode:T,isText:L,detectedLanguage:A,imagePathFullRes:z,imageDataUrl:Y,imageHash:O,isMasked:$,isVideo:M,hasMaskedWords:W,hasEmoji:V,imageWidth:U,imageHeight:J,imageType:H,value:F}=i,q=v.useMemo(()=>p?g.find(ee=>ee.itemId===E):null,[p,g,E]),X=v.useMemo(()=>{var ee,G;return(G=(ee=d.value)==null?void 0:ee.includes(E))!=null?G:!1},[d.value,E]),te=v.useMemo(()=>{if(!q||!q.links)return[];let ee=[];if(q.links)try{ee=JSON.parse(q.links)}catch(G){ee=[]}return ee},[q]);return n?o.jsx(tke,{isClip:p,itemId:E,value:F,isCode:T,detectedLanguage:A,isText:L,isMenu:s,isImage:N,isMasked:$,isVideo:M,isDelete:X,hasEmoji:V,imageDataUrl:Y,isDark:c,isPath:P,isLink:I,deletingMenuItemIds:d,onCancel:()=>{sh()}}):p&&(q==null?void 0:q.itemId)===E?o.jsx(Lq,{isImage:q.isImage,isLink:q.isLink,isVideo:q.isVideo,isPath:q.isPath,isForm:q.isForm,isTemplate:q.isTemplate,isCopyOrPaste:x===E||S===E,isCode:q.isCode,clipName:q.name,isCommand:q.isCommand,isWebRequest:q.isWebRequest,isWebScraping:q.isWebScraping,isExpanded:w,isDark:c,arrLinks:te,isMasked:q.isMasked,hasMaskedWords:q.hasMaskedWords,detectedLanguage:q.detectedLanguage,hasEmoji:q.hasEmoji,pathType:q.pathType,isImageData:q.isImageData,imageHash:q.imageHash,imageType:q.imageType,imageScale:q.imageScale,imagePathFullRes:q.imagePathFullRes,imageDataUrl:q.imageDataUrl,isLargeView:!1,isDelete:X,formTemplateOptions:q.formTemplateOptions,commandRequestOutput:(m=q.commandRequestOutput)==null?void 0:m.replace("[Err]",""),isCommandRequestRunError:!!((b=q.commandRequestOutput)!=null&&b.startsWith("[Err]")),commandRequestOutputLastRunAt:q.commandRequestLastRunAt,requestOptions:q.requestOptions,imageWidthHeight:q.imageWidth?"".concat(q.imageWidth,"x").concat(q.imageHeight):null,clipId:E,value:q.value}):o.jsx(t7e,{itemId:E,isDark:c,isDisabled:t,isActive:e,isCopyOrPaste:x===E||S===E,isFolder:a,isImageData:_,isCode:T,isSeparator:r,menuName:l,isExpanded:w,isImage:N,isPath:P,isLink:I,isVideo:M,isDelete:X,isMasked:$,hasMaskedWords:W,hasEmoji:V,pathType:i.pathType,detectedLanguage:A,imagePathFullRes:z,imageDataUrl:Y,imageHash:O,imageWidthHeight:U?"".concat(U,"x").concat(J):null,imageType:H,arrLinks:i.links?(C=JSON.parse(i.links))!=null?C:[]:[],value:F})}finally{f.f()}}const r7e=({menuItems:t,selectedItemIds:e,onDelete:n,showMultiSelectItems:r,collectionId:s,setSelectedItemIds:a})=>{var i=sn(1);try{const{t:l}=Gt(),{deleteMenuItemsByIds:c}=kge(),{updateMenuItemsByIds:d}=xge();Vs(["alt+s"],()=>{r.value=!r.value}),Vs(["alt+d"],()=>{a([])});const p=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&t.filter(({parentId:x})=>x===w.itemId).length===0}),[e,t]),f=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isActive===!1}),[e,t]),m=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isActive===!0}),[e,t]),b=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isDisabled===!1}),[e,t]),C=v.useMemo(()=>e.filter(g=>{const w=t.find(({itemId:x})=>x===g);return w&&w.isDisabled===!0}),[e,t]);return o.jsxs(Kn,{onOpenChange:()=>{},children:[o.jsx(Gn,{asChild:!0,children:o.jsxs(je,{variant:"light",id:"menu-icon-menu-button_tour",className:"w-10 text-slate-400 hover:text-slate-500 hover:dark:text-slate-400 dark:text-slate-500 bg-slate-100 p-1 relative hover:bg-slate-100/70 dark:bg-slate-900 dark:hover:bg-slate-700/70",children:[o.jsx(cE,{className:"stroke-[1.3px]",size:22}),e.length>1&&o.jsx(St,{variant:"slate",className:"absolute right-[-10px] top-[-10px]",children:e.length})]})}),o.jsx(Wn,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:o.jsxs(jH,{children:[r.value?o.jsxs(rt,{onClick:()=>{r.value=!1},children:[o.jsx(Ez,{className:"mr-2 h-4 w-4"}),o.jsx(re,{children:l("Hide Muli Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}):o.jsxs(rt,{onClick:()=>{r.value=!0},children:[o.jsx(jz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-2",children:l("Multi Select",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+S"})})]}),o.jsxs(rt,{disabled:e.length===0,onClick:()=>{a([])},children:[o.jsx(eE,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Deselect All",{ns:"common"})}),o.jsx(Zl,{children:o.jsx(po,{keys:"ALT+D"})})]}),o.jsx(kn,{}),o.jsxs(rt,{onClick:()=>{On("build_system_menu")},children:[o.jsx(Oie,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Rebuild Menu",{ns:"common"})})]}),o.jsx(kn,{}),C.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isDisabled:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(Iz,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Enabled",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:C.length})]}),b.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(s0,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Disabled",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:b.length})]}),(b.length>0||C.length>0)&&o.jsx(kn,{}),m.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(fx,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Inactive",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:m.length})]}),f.length>0&&o.jsxs(rt,{onClick:()=>ge(void 0,null,function*(){yield d({updatedData:{isActive:!0},itemIds:e}),a([]),r.value=!1}),children:[o.jsx(M0,{className:"mr-2 h-4 w-4"}),o.jsx(re,{className:"mr-1",children:l("Make Active",{ns:"common"})}),o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:f.length})]}),(f.length>0||m.length>0)&&o.jsx(kn,{}),o.jsxs(rt,{disabled:p.length===0,onClick:g=>ge(void 0,null,function*(){Vi.value?(yield c({itemIds:p,collectionId:s}),setTimeout(()=>{n(),a([]),r.value=!1,Vi.value=!1},400)):(g.preventDefault(),Vi.value=!0,setTimeout(()=>{Vi.value=!1},3e3))}),children:[o.jsx(kr,{className:"mr-2 h-4 w-4 ".concat(Vi.value?"text-red-500 dark:text-red-600":"")}),o.jsxs(ve,{children:[o.jsx(re,{className:"mr-1 ".concat(Vi.value?"!text-red-500 dark:!text-red-600":""),children:Vi.value?l("Click to Confirm",{ns:"common"}):l("Delete",{ns:"common"})}),p.length>0&&o.jsx(o.Fragment,{children:Vi.value?o.jsx(St,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:p.length}):o.jsx(St,{variant:"slate",className:"ml-1 py-0 font-semibold",children:p.length})})]})]})]})})]})}finally{i.f()}};function s7e(){var t=sn(1);try{a7(),o7();const{t:e}=Gt(),n=wl(),r=ua(),{updateMenuItemById:s}=jx(),{isSwapPanels:a,setReturnRoute:i,setPanelSize:l,panelSize:c,getDefaultPanelWidth:d}=Tt(Ls),{updateMovedMenuItems:p}=i7(),{isCollectionWithItemLoading:f,isCollectionWithItemSuccess:m}=AB(),{currentCollectionId:b,menuItems:C,isMenuLoaded:g,getCurrentCollectionTitle:w}=Tt(Ar),{data:x,setData:S}=Iq(),{themeDark:E}=Tt(bo),[N,_]=v.useState(""),[P,I]=v.useState(null),[T,L]=v.useState([""]),[A,z]=v.useState([""]),{createNewItem:Y}=G5(!1),{linkClipIdToMenuItem:O}=yge(!1),$=jo(N,300),M=it(null),W=it(!1),V=it(!1),U=v.useRef(null),J=v.useRef(null),H=E(),F=v.useMemo(()=>g&&!f&&m,[g,f,m]),q=v.useMemo(()=>V.value,[V.value]),X=v.useMemo(()=>C.filter(G=>G.isActive),[C]);v.useEffect(()=>{i(n.pathname),sh()},[]),v.useEffect(()=>{var G;Hs!=null&&Hs.value&&!((G=C==null?void 0:C.find(({itemId:le})=>le===Hs.value))!=null&&G.isFolder)&&!ul.value&&I(Hs.value)},[Hs==null?void 0:Hs.value,ul.value]),v.useEffect(()=>{S(C.length>0?Av(C,null,q):[])},[C,q]);const te=v.useMemo(()=>C.filter(G=>!G.isActive),[C]),ee=v.useMemo(()=>{const G=le=>{var se,de;return le.name.toLowerCase().includes($.toLowerCase())?!0:(de=(se=le.children)==null?void 0:se.some(G))!=null?de:!1},Z=(le,se=0)=>{let de=[];return le.forEach(ce=>{var me,be;const ye=G(ce),pe=C.find(Ee=>Ee.itemId===ce.id);if(pe&&ye){const Ee=ae(R({},pe),{indent:se,id:ce.id});if(de.push(Ee),ce.children&&((me=ce.children)==null?void 0:me.length)>0&&!A.includes((be=ce.id)!=null?be:"")){const We=Z(ce.children,se+1);de=de.concat(We)}}}),de};return Z(x)},[x,C,A,q,$]);return v.useEffect(()=>{function G(){return ge(this,null,function*(){var Z,le,se,de,ce,ye,pe,me,be,Ee,We,qe,ot,Ve,Ge,ft,Ie,Ke;if(lo.value){const{type:ut,parentId:$e,clipId:ht,historyId:Fe,text:pt="",clipboardHistoryItem:Qe,orderNumber:Lt=0}=lo.value,Ut=ut===ii.FOLDER?e("New Submenu",{ns:"menus"}):ut===ii.ITEM?e("New Menu",{ns:"menus"}):ut===ii.DISABLED?e("New Disabled Menu",{ns:"menus"}):"",wt=!!ht,Xt=(Z=ee.filter(({name:we})=>we.startsWith(Ut)).length)!=null?Z:0,$t=Qe==null?void 0:Qe.isImage,tn=Fe&&(Qe!=null&&Qe.historyId)?{historyId:Fe,name:Qe!=null&&Qe.value?Qe.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():$t?"".concat(e("Image size",{ns:"common"})," (").concat(Qe==null?void 0:Qe.imageWidth,"x").concat(Qe==null?void 0:Qe.imageHeight,")"):Xt>0?"".concat(Ut," (").concat(Xt,")"):Ut,isClip:!1,isMenu:!0,value:"",isActive:!0,description:null,detectedLanguage:(le=Qe==null?void 0:Qe.detectedLanguage)!=null?le:null,isImage:(se=Qe==null?void 0:Qe.isImage)!=null?se:!1,imageDataUrl:(de=Qe==null?void 0:Qe.imageDataUrl)!=null?de:null,imagePathFullRes:(ce=Qe==null?void 0:Qe.imagePathFullRes)!=null?ce:null,imageHeight:(ye=Qe==null?void 0:Qe.imageHeight)!=null?ye:null,imageWidth:(pe=Qe==null?void 0:Qe.imageWidth)!=null?pe:null,imagePreviewHeight:(me=Qe==null?void 0:Qe.imagePreviewHeight)!=null?me:null,isLink:(be=Qe==null?void 0:Qe.isLink)!=null?be:!1,links:(Ee=Qe==null?void 0:Qe.links)!=null?Ee:null,isImageData:(We=Qe==null?void 0:Qe.isImageData)!=null?We:!1,isMasked:(qe=Qe==null?void 0:Qe.isMasked)!=null?qe:!1,isVideo:(ot=Qe==null?void 0:Qe.isVideo)!=null?ot:!1,isCode:(Ve=Qe==null?void 0:Qe.isCode)!=null?Ve:!1,isText:(Ge=Qe==null?void 0:Qe.isText)!=null?Ge:!1,hasEmoji:(ft=Qe==null?void 0:Qe.hasEmoji)!=null?ft:!1,hasMaskedWords:(Ie=Qe==null?void 0:Qe.hasMaskedWords)!=null?Ie:!1,hasMultiLineCopy:!1,showDescription:!1,isDeleted:!1,indent:0,parentId:$e!=null?$e:null,tabId:null,collectionId:b,createdAt:0,orderNumber:Lt+1}:{name:Xt>0?"".concat(Ut," (").concat(Xt,")"):Ut,isClip:wt,isMenu:!0,value:pt,description:null,isActive:!0,isFolder:ut===ii.FOLDER,isSeparator:ut===ii.SEPARATOR,isDisabled:ut===ii.DISABLED,isText:!0,isDeleted:!1,indent:0,parentId:$e!=null?$e:null,tabId:null,collectionId:b,createdAt:0,orderNumber:Lt+1},Pt=wt?yield O({clipId:ht,item:tn}):yield Y({item:tn});(Ke=Qe==null?void 0:Qe.linkMetadata)!=null&&Ke.metadataId&&!wt&&(yield On("copy_link_metadata_to_new_item_id",{metadataId:Qe.linkMetadata.metadataId,itemId:Pt}));const Ue=Av(C,null,!0);Ue.unshift(ae(R({},tn),{id:Pt}));const Je=p6(Ue,$e!=null?$e:null,[Pt],$e&&Lt>0?Lt-1:Lt),jt=Je==null?void 0:Je.map(({id:we,parentId:Se,orderNumber:De})=>({itemId:we,parentId:Se,tabId:null,collectionId:b,orderNumber:De}));p({updatedMoveMenuItems:jt}),ho.value=!1,lo.value=null,L([]),ii.FOLDER!==ut&&ii.DISABLED!==ut&&ii.SEPARATOR!==ut&&I(Pt),ii.SEPARATOR!==ut&&!wt&&(Hs.value=Pt,ul.value=!0)}})}G()},[lo.value]),v.useEffect(()=>{cd.value&&(I(cd.value),setTimeout(()=>{cd.value=null},2e3))},[cd.value,J==null?void 0:J.current]),v.useEffect(()=>{var G;J!=null&&J.current&&((G=J==null?void 0:J.current)==null||G.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[J==null?void 0:J.current]),o.jsx(Sk,{children:o.jsxs(aN,{minSize:260,maxSize:700,defaultSize:d(),swapPanes:a,onResize:l,autoSaveId:"app-main-panel",children:[o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] pb-4 pt-4 px-3 pr-3",children:o.jsx(Lh,{disableWidth:!0,children:({height:G})=>G&&G>0&&!f&&b&&o.jsxs(ne,{className:"flex flex-col h-[calc(100vh-95px)] relative",id:"side-panel_tour",children:[x.length>0?o.jsx(ne,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-2",id:"menu-find_tour",children:o.jsx(Wd,{placeholder:"".concat(e("Find in menu",{ns:"menus"}),"..."),type:"search",ref:U,onChange:Z=>{_(Z.target.value)},iconLeft:o.jsx(a0,{className:"h-4 w-4"}),classNameInput:"w-full pr-0",className:"text-md ring-offset-0 bg-slate-100 dark:bg-slate-700 border-r-0 border-t-0 border-b-0"})}):F&&C.length===0&&o.jsx(ve,{style:{height:G-85},className:"flex items-center flex-col gap-3 justify-center",children:o.jsx(re,{className:"animate-in fill-mode-forwards fade-in text-slate-300 text-xs bg-slate-100 rounded-full px-3 dark:text-slate-600 dark:bg-slate-900",children:e("No Menu Items",{ns:"menus"})})}),o.jsxs(or,{style:{maxHeight:G-93},autoHide:!0,children:[o.jsx(AEe,{data:x,rowHeight:33,selectedIds:T,closedFolderItemIds:A,renderCursor:HEe,renderContainer:e7e,renderDragPreview:YEe,onMove:({dragIds:Z,index:le,parentId:se})=>{const de=p6(x,se,Z,le),ce=de==null?void 0:de.map(({id:ye,parentId:pe,orderNumber:me})=>({itemId:ye,parentId:pe,tabId:null,collectionId:b,orderNumber:me}));p({updatedMoveMenuItems:ce})},onSelect:Z=>{const le=Z.map(de=>de.id);le.length===T.length&&le.every(de=>T.includes(de))||L(le)},onFolderClose:Z=>{z(le=>[...le,Z])},onFolderOpen:Z=>{z(le=>le.filter(se=>se!==Z))},onRename:se=>ge(this,[se],function*({id:Z,name:le}){var ce;if(le.length<1){yield yo(e("Menu label cannot be empty.",{ns:"menus"}),"PasteBar");return}if(le.length>M1){yield yo("".concat(e("Menu label is too long. Max length is",{ns:"menus"})," ").concat(M1,"."),"PasteBar");return}if((ce=C.find(ye=>ye.itemId===Z))==null?void 0:ce.isClip){yield yo(e("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}yield s({updatedItem:{itemId:Z,name:le}})}),onSearchClear:()=>{var Z;_(""),U!=null&&U.current&&(U.current.value="",(Z=U==null?void 0:U.current)==null||Z.focus())},searchMatch:(Z,le)=>{const se=Z.data.name;return typeof se=="string"?se.toLowerCase().includes(le.toLowerCase()):!1},renderRow:JEe,searchTerm:$,disableDrop:()=>!1,children:XEe}),!$&&X.length>1&&x.length>0&&o.jsx(re,{className:"!text-gray-400/80 border-t border-gray-300/70 dark:border-gray-600/70 !block text-center !text-[12px] mt-2 pt-1 whitespace-nowrap overflow-hidden text-ellipsis",children:e("Drag items to reorder, double click to rename",{ns:"menus"})})]}),o.jsx(ne,{className:"flex-1 mt-3"}),o.jsxs(pl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:n.pathname,onValueChange:Z=>{r(Z,{replace:!0})},children:[o.jsxs(Xo,{className:"self-center",id:"tabs-menu_tour",children:[o.jsx(jr,{value:"/history",className:"min-w-[90px]",children:c{var Z;_(""),U!=null&&U.current&&U.current.value&&(U.current.value="",(Z=U==null?void 0:U.current)==null||Z.focus())},showMultiSelectItems:W,setSelectedItemIds:L,selectedItemIds:T})]})]})})})}),o.jsx(iN,{children:F&&o.jsx(ne,{className:"h-[calc(100vh-70px)] select-none flex flex-col bg-slate-50 border shadow-sm rounded-xl dark:bg-gray-900/60 dark:border-gray-800 dark:shadow-slate-700/[.7]",children:o.jsx(Lh,{disableWidth:!0,children:({height:G})=>G&&o.jsxs(ne,{className:"p-4 py-4 pb-2 select-auto",id:"menu-main-list_tour",children:[o.jsxs(ve,{className:"justify-center relative h-8 pt-2 select-none",children:[te.length>0&&o.jsx(je,{variant:"ghost",id:"toggle-inactive-menu-items_tour",className:"bg-slate-200 p-1.5 text-slate-500 dark:bg-slate-700 dark:hover:bg-slate-700/80 dark:text-slate-300 rounded-sm flex items-center group absolute top-1 left-1",onClick:()=>{V.value=!q},children:o.jsx(st,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:e("Toggle inactive menu items",{ns:"menus"}),children:o.jsxs(ne,{className:"relative",children:[q?o.jsx(fx,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-300/80 dark:text-slate-500"}):o.jsx(M0,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-500 dark:text-slate-300/80"}),o.jsx(St,{className:"absolute right-[-16px] top-[-17px] ".concat(q?"bg-slate-400/80 dark:bg-slate-600 text-slate-100 dark:text-slate-400/80":"bg-slate-300/80 dark:bg-slate-700 dark:text-slate-200/80 text-slate-500"),variant:"".concat(q?"default":"outline"),children:te.length})]})})}),!ho.value||X.length===0?o.jsx(ne,{className:"text-[13px] select-none",children:X.length>0?o.jsxs(re,{className:"gap-1",children:[o.jsx("span",{className:"font-semibold",children:X.length}),o.jsxs("span",{children:[te.length>0?e("active",{ns:"menus"}):""," ",e("menu items in",{ns:"menus"})]}),o.jsx(QA,{children:o.jsx("span",{className:"font-semibold underline cursor-pointer select-none",children:w()})})]}):o.jsxs(re,{className:"gap-1",children:[o.jsx("span",{children:e("No {{hasActive}} menu items in",{ns:"menus",hasActive:te.length>0?e("active",{ns:"menus"}):""})}),o.jsx(QA,{children:o.jsx("span",{className:"font-semibold underline cursor-pointer",children:w()})})]})}):o.jsx(ne,{className:"text-[13px]",children:o.jsx(re,{className:"text-center",children:e("Select item to add a menu after",{ns:"menus"})})}),X.length>0&&o.jsx(Pw,{isMainCreateMenu:!0,isDark:H,showEditMenuItemId:Hs,isCreatingMenuItem:ho})]}),X.length===0&&o.jsx(ve,{className:"mt-6 flex-col select-none",children:o.jsxs(ne,{children:[o.jsx(Pw,{isFistItemsCreateMenu:!0,isDark:H,showEditMenuItemId:Hs,isCreatingMenuItem:ho}),o.jsx(re,{className:"text-sm mt-4 !text-slate-500",children:e("Create Menu",{ns:"menus"})})]})}),o.jsx(Ln,{h:2}),o.jsxs(or,{style:{height:G-75},autoHide:!0,className:"select-none",children:[o.jsx(gB,{type:"single",collapsible:!0,value:P!=null?P:"",className:"flex items-center flex-col select-none",children:ee.map((Z,le)=>Z.itemId&&o.jsx(n7,{ref:cd.value===Z.itemId?J:null,value:Z.itemId,children:o.jsx(AW,{label:Z.name,setOpenItemId:I,setSelectedItemIds:L,isLastItem:le===ee.length-1,deletingMenuItemIds:M,isFirstItem:le===0,showEditMenuItemId:Hs,hasChildren:Z.hasChildren,isSeparator:Z.isSeparator,showMultiSelectItems:W,hasSelectedItems:T.length>0,isDark:H,deselectItemById:se=>{L(T.filter(de=>de!==se))},selectItemById:se=>{L(de=>[...de,se])},id:Z.itemId,item:Z,isClip:Z.isClip,isForm:Z.isForm&&Z.isClip,isWebRequest:Z.isWebRequest&&Z.isClip,isWebScraping:Z.isWebScraping&&Z.isClip,isCommand:Z.isCommand&&Z.isClip,isCreatingMenuItem:ho,indent:Z.indent,onFolderClose:se=>{z(de=>[...de,se])},onFolderOpen:se=>{z(de=>de.filter(ce=>ce!==se))},isClosedFolder:A.includes(Z.itemId),isSelected:T.includes(Z.itemId),hasMultipleSelectedItems:T.length>1,isOpen:P===Z.itemId,children:o.jsx(n7e,{menuName:Z.name,isDisabled:Z.isDisabled,isMenuEdit:Hs.value===Z.itemId,isActive:Z.isActive,isDark:H,isMenu:Z.isMenu,isCode:Z.isCode,isSeparator:Z.isSeparator,isFolder:Z.isFolder,isText:Z.isText,isClip:Z.isClip,deletingMenuItemIds:M,item:Z})})},"".concat(Z.itemId)))}),o.jsx(Ln,{h:3})]})]})})})})]},a?"swap":"no-swap")})}finally{t.f()}}function a7e(){const t=Te(37),{returnRoute:e}=Tt(Ls),{t:n}=Gt();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(zh,{className:"mr-2"}),t[0]=r):r=t[0];let s;t[1]!==n?(s=n("PasteBar Settings",{ns:"settings"}),t[1]=n,t[2]=s):s=t[2];let a;t[3]!==s?(a=o.jsx(ne,{className:"flex flex-rowrounded-md p-0 items-center justify-end pr-5 h-[40px]",children:o.jsxs(re,{className:"text-lg font-semibold text-center flex items-center",children:[r,s]})}),t[3]=s,t[4]=a):a=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(Ln,{h:3}),t[5]=i):i=t[5];let l;t[6]!==n?(l=o.jsx(Pp,{to:"/app-settings/history",replace:!0,id:"app-settings-history_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 py-3 text-lg justify-end text-right items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Clipboard History Settings",{ns:"settings"})})}}),t[6]=n,t[7]=l):l=t[7];let c;t[8]!==n?(c=o.jsx(Pp,{to:"/app-settings/collections",replace:!0,id:"app-settings-collections_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Manage Collections",{ns:"settings"})})}}),t[8]=n,t[9]=c):c=t[9];let d;t[10]!==n?(d=o.jsx(Pp,{to:"/app-settings/preferences",replace:!0,id:"app-settings-preferences_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("User Preferences",{ns:"settings"})})}}),t[10]=n,t[11]=d):d=t[11];let p;t[12]!==n?(p=o.jsx(Pp,{to:"/app-settings/security",replace:!0,id:"app-settings-security_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("Security",{ns:"settings"})})}}),t[12]=n,t[13]=p):p=t[13];let f;t[14]!==n?(f=o.jsx(Pp,{to:"/app-settings/license",replace:!0,id:"app-settings-license_tour",children:_=>{const{isActive:P}=_;return o.jsx(re,{className:"pr-5 text-right py-3 text-lg justify-end items-center animate fade-in transition-fonts duration-100 dark:!text-slate-400 ".concat(P&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:n("License",{ns:"settings"})})}}),t[14]=n,t[15]=f):f=t[15];let m;t[16]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Ln,{h:6}),t[16]=m):m=t[16];let b;t[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx(ve,{className:"mr-5 justify-end",children:o.jsx(GE,{decorative:!0,className:"bg-gray-300 dark:bg-gray-600"})}),t[17]=b):b=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Ln,{h:6}),t[18]=C):C=t[18];let g;t[19]!==n?(g=n("Back",{ns:"common"}),t[19]=n,t[20]=g):g=t[20];let w;t[21]!==g?(w=o.jsx(ne,{className:"pr-5 font-right text-right py-3 text-md animate fade-in transition-fonts duration-100",children:o.jsx(je,{variant:"secondary",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",children:g})}),t[21]=g,t[22]=w):w=t[22];let x;t[23]!==e||t[24]!==w?(x=o.jsx(Pp,{to:e,replace:!0,id:"app-settings-back_tour",children:w}),t[23]=e,t[24]=w,t[25]=x):x=t[25];let S;t[26]!==a||t[27]!==l||t[28]!==c||t[29]!==d||t[30]!==p||t[31]!==f||t[32]!==x?(S=o.jsx(oN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-200 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.8] py-6 px-3 pr-3",children:o.jsxs(ne,{className:"animate-in fade-in",children:[a,i,l,c,d,p,f,m,b,C,x]})})}),t[26]=a,t[27]=l,t[28]=c,t[29]=d,t[30]=p,t[31]=f,t[32]=x,t[33]=S):S=t[33];let E;t[34]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(iN,{children:o.jsx(ne,{className:"h-[calc(100vh-70px)] flex flex-col bg-slate-50 border-0 shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:o.jsx(F7,{})})}),t[34]=E):E=t[34];let N;return t[35]!==S?(N=o.jsx(Sk,{children:o.jsx(ne,{className:"w-full",children:o.jsxs(aN,{minSize:290,maxSize:360,defaultSize:290,autoSaveId:"app-main-panel-settings",children:[S,E]})})}),t[35]=S,t[36]=N):N=t[36],N}function o7e(t){const e=Te(19),{id:n,language:r}=t;let s;e[0]!==n?(s={id:n},e[0]=n,e[1]=s):s=e[1];const{attributes:a,listeners:i,setNodeRef:l,transform:c,transition:d,isDragging:p}=p5(s);let f;e[2]!==c?(f=Yo.Transform.toString(c),e[2]=c,e[3]=f):f=e[3];let m;e[4]!==f||e[5]!==d?(m={transform:f,transition:d},e[4]=f,e[5]=d,e[6]=m):m=e[6];const b=m,C=p?"z-100 opacity-70":"z-auto opacity-100";let g;e[7]!==r?(g=o.jsx(ve,{className:"items-center justify-center ml-2",children:o.jsx(re,{children:r})}),e[7]=r,e[8]=g):g=e[8];let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(je,{variant:"ghost",size:"sm",className:"opacity-40 hover:opacity-90",children:o.jsx(hx,{size:20})}),e[9]=w):w=e[9];let x;e[10]!==g?(x=o.jsxs(ve,{className:"items-center justify-between p-2 border rounded mb-2 dark:bg-slate-900 bg-slate-50",children:[g,w]}),e[10]=g,e[11]=x):x=e[11];let S;return e[12]!==l||e[13]!==b||e[14]!==a||e[15]!==i||e[16]!==C||e[17]!==x?(S=o.jsx("div",ae(R(R({ref:l,style:b},a),i),{className:C,children:x})),e[12]=l,e[13]=b,e[14]=a,e[15]=i,e[16]=C,e[17]=x,e[18]=S):S=e[18],S}function i7e(){const t=Te(64),{isHistoryEnabled:e,setIsHistoryEnabled:n,isHistoryAutoUpdateOnCaputureEnabled:r,setIsHistoryAutoUpdateOnCaputureEnabled:s,setIsExclusionListEnabled:a,historyExclusionList:i,autoMaskWordsList:l,isExclusionListEnabled:c,setHistoryExclusionList:d,setAutoMaskWordsList:p,isAutoMaskWordsListEnabled:f,isAutoPreviewLinkCardsEnabled:m,setIsAutoPreviewLinkCardsEnabled:b,isAutoFavoriteOnDoubleCopyEnabled:C,setIsAutoFavoriteOnDoubleCopyEnabled:g,setIsAutoMaskWordsListEnabled:w,setHistoryDetectLanguagesEnabledList:x,setHistoryDetectLanguagesPrioritizedList:S,setIsHistoryDetectLanguageEnabled:E,isHistoryDetectLanguageEnabled:N,historyDetectLanguagesEnabledList:_,historyDetectLanguagesPrioritizedList:P,historyDetectLanguageMinLines:I,setHistoryDetectLanguageMinLines:T,isAutoClearSettingsEnabled:L,setIsAutoClearSettingsEnabled:A,autoClearSettingsDuration:z,setAutoClearSettingsDuration:Y,autoClearSettingsDurationType:O,setAutoClearSettingsDurationType:$,isAppReady:M,CONST:W}=Tt(Cr),{APP_DETECT_LANGUAGES_SUPPORTED:V}=W,{returnRoute:U}=Tt(Ls),{t:J}=Gt(),[H,F]=v.useState(""),[q,X]=v.useState(""),[te,ee]=v.useState(!1),G=jo(H,300),Z=jo(q,300);let le;t[0]===Symbol.for("react.memo_cache_sentinel")?(le=[],t[0]=le):le=t[0];const[se,de]=v.useState(le);let ce,ye;t[1]!==P||t[2]!==_?(ce=()=>{mC(P)&&!mC(_)?de(_):mC(P)||de(P)},ye=[_,P],t[1]=P,t[2]=_,t[3]=ce,t[4]=ye):(ce=t[3],ye=t[4]),v.useEffect(ce,ye);let pe;t[5]!==M||t[6]!==d||t[7]!==G?(pe=()=>{M&&d($y(G))},t[5]=M,t[6]=d,t[7]=G,t[8]=pe):pe=t[8];let me;t[9]!==G||t[10]!==M?(me=[G,M],t[9]=G,t[10]=M,t[11]=me):me=t[11],v.useEffect(pe,me);let be;t[12]!==M||t[13]!==p||t[14]!==Z?(be=()=>{M&&p($y(Z))},t[12]=M,t[13]=p,t[14]=Z,t[15]=be):be=t[15];let Ee;t[16]!==Z||t[17]!==M?(Ee=[Z,M],t[16]=Z,t[17]=M,t[18]=Ee):Ee=t[18],v.useEffect(be,Ee);let We;t[19]!==M||t[20]!==i||t[21]!==l?(We=()=>{M&&(F(i),X(l))},t[19]=M,t[20]=i,t[21]=l,t[22]=We):We=t[22];let qe;t[23]!==M?(qe=[M],t[23]=M,t[24]=qe):qe=t[24],v.useEffect(We,qe);let ot;t[25]===Symbol.for("react.memo_cache_sentinel")?(ot={days:[1,2,3,4,5,6],weeks:[1,2,3],months:[1,3,6,8],year:[1,2]},t[25]=ot):ot=t[25];const Ve=ot;let Ge;t[26]!==J?(Ge=function(ut,$e){const Fe={days:ut===1?J("Day",{ns:"calendar"}):J("Days",{ns:"calendar"}),weeks:ut===1?J("Week",{ns:"calendar"}):J("Weeks",{ns:"calendar"}),months:ut===1?J("Month",{ns:"calendar"}):J("Months",{ns:"calendar"}),year:ut===1?J("Year",{ns:"calendar"}):J("Years",{ns:"calendar"})}[$e];return"".concat(ut," ").concat(Fe)},t[26]=J,t[27]=Ge):Ge=t[27];const ft=Ge;let Ie;return t[28]!==J||t[29]!==U||t[30]!==e||t[31]!==n||t[32]!==r||t[33]!==s||t[34]!==C||t[35]!==g||t[36]!==m||t[37]!==b||t[38]!==c||t[39]!==a||t[40]!==d||t[41]!==H||t[42]!==f||t[43]!==w||t[44]!==p||t[45]!==q||t[46]!==te||t[47]!==N||t[48]!==E||t[49]!==I||t[50]!==T||t[51]!==V||t[52]!==_||t[53]!==x||t[54]!==se||t[55]!==S||t[56]!==L||t[57]!==A||t[58]!==O||t[59]!==$||t[60]!==Y||t[61]!==z||t[62]!==ft?(Ie=o.jsx(Lh,{disableWidth:!0,children:Ke=>{const{height:ut}=Ke;return ut&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:J("Clipboard History Settings",{ns:"settings"})}),o.jsx(lu,{to:U,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:J("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:ut-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl",children:o.jsxs(cr,{className:"".concat(!e&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Capture History",{ns:"settings"})}),o.jsx(ns,{checked:e,className:"ml-auto",onCheckedChange:()=>{n(!e)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable history capture",{ns:"settings"})})})]})}),e&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!r&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Update on Capture",{ns:"settings"})}),o.jsx(ns,{checked:r,className:"ml-auto",onCheckedChange:()=>{s(!r)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable auto update on capture",{ns:"settings"})})})]})}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!C&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Star on Double Copy",{ns:"settings"})}),o.jsx(ns,{checked:C,className:"ml-auto",onCheckedChange:()=>{g(!C)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Add a star to the copied text when you copy it twice within 1 second. This allows you to quickly add copied text or links to your favorites and easily find it in the clipboard history.",{ns:"settings"})})})]})}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!m&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Preview Link on Hover",{ns:"settings"})}),o.jsx(ns,{checked:m,className:"ml-auto",onCheckedChange:()=>{b(!m)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Create a preview card on link hover in the clipboard history. This allows you to preview the link before opening or pasting it.",{ns:"settings"})})})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Stop Words List",{ns:"settings"})}),o.jsx(ns,{checked:c,className:"ml-auto",onCheckedChange:()=>{a(!c)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground mb-2",children:J("Words or sentences listed below will not be captured in clipboard history if found in the copied text. Case insensitive.",{ns:"settings"})}),o.jsx(Co,{className:"text-sm",isDisabled:!c,label:J("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,rows:5,maxRows:15,enableEmoji:!1,onBlur:()=>{d($y(H))},onChange:$e=>{F($e.target.value)},value:H})]})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!f&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto Masking Words List",{ns:"settings"})}),o.jsx(ns,{checked:f,className:"ml-auto",onCheckedChange:()=>{w(!f)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground mb-2",children:J("Sensitive words or sentences listed below will automatically be masked if found in the copied text. Case insensitive.",{ns:"settings"})}),o.jsx(Co,{className:"text-sm",label:J("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,isDisabled:!f,rows:5,maxRows:15,enableEmoji:!1,onFocus:()=>{ee(!0)},onBlur:()=>{p($y(q)),ee(!1)},onChange:$e=>{X($e.target.value)},value:te?q:Ch(q)})]})]})}),o.jsx(ne,{className:"max-w-xl animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!N&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Programming Language Detection",{ns:"settings"})}),o.jsx(ns,{checked:N,className:"ml-auto",onCheckedChange:()=>{E(!N)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Enable programming language detection",{ns:"settings"})})})]})})]}),e&&N&&o.jsxs(o.Fragment,{children:[o.jsx(ne,{className:"max-w-xl mt-4 animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Minimum number of lines to trigger detection",{ns:"settings"})})}),o.jsx(pr,{children:o.jsx(wn,{className:"text-md !w-36",error:void 0,small:!0,label:J("Number of lines",{ns:"common"}),value:I,onChange:$e=>{const ht=$e.target.value;if(ht==="")T(0);else{const Fe=parseInt(ht);Fe&&T(Fe)}}})})]})}),o.jsx(ne,{className:"mt-4 max-w-2xl animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full",children:[J("Programming Language Selection",{ns:"settings"}),o.jsx(re,{className:"mt-2 text-sm text-muted-foreground",children:J("To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.",{ns:"settings"})})]})}),o.jsx(pr,{children:o.jsx(ne,{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 py-2",children:V.map(($e,ht)=>o.jsx("button",{className:"flex",onClick:()=>{if(_.length>=7&&!_.includes($e))return;x(_.includes($e)?_.filter(pt=>pt!==$e):_.concat([$e]));const Fe=se.includes($e)?se.filter(pt=>pt!==$e):se.concat([$e]);de(Fe.filter(Boolean)),S(Fe.filter(Boolean))},children:o.jsx(R6,{label:$e,checked:_.includes($e)})},ht))})})]})}),se.length>0&&o.jsx(ne,{className:"mt-4 max-w-2xl animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full",children:[J("Prioritize Language Detection",{ns:"settings"}),o.jsx(re,{className:"mt-2 text-sm text-muted-foreground",children:J("Drag and drop to prioritize languages for detection. The higher a language is in the list, the higher its detection priority.",{ns:"settings"})})]})}),o.jsx(pr,{children:o.jsx(W8,{collisionDetection:a$,onDragEnd:$e=>{const{active:ht,over:Fe}=$e;Fe!=null&&Fe.id&&ht.id!==(Fe==null?void 0:Fe.id)&&de(pt=>{const Qe=pt.indexOf(ht.id.toString()),Lt=pt.indexOf(Fe.id.toString()),Ut=Wr(pt,Qe,Lt);return Sse(pt,Ut)||S(Ut),Ut})},children:o.jsx(D2,{items:se,strategy:VJ,children:se.map($e=>$e&&o.jsx(o7e,{id:$e,language:$e},$e))})})})]})})]}),o.jsx(ne,{className:"mt-4 max-w-xl animate-in fade-in",children:o.jsxs(cr,{className:"".concat(!L&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:J("Auto-Clear Settings",{ns:"settings"})}),o.jsx(ns,{checked:L,className:"ml-auto",onCheckedChange:()=>{A(!L)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Configure settings to automatically delete clipboard history items after a specified duration.",{ns:"settings"})}),L&&o.jsxs(ve,{className:"mt-6 row justify-start",children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:J("Auto-delete clipboard history after",{ns:"settings"})}),o.jsx(ve,{className:"mx-2",children:o.jsxs(BM,{value:O,onValueChange:$e=>{$($e),Y(1)},children:[o.jsx(T6,{children:o.jsx(UM,{placeholder:"Select"})}),o.jsxs(P6,{children:[o.jsx(Bp,{value:"days",children:o.jsx("span",{className:"font-medium",children:J("Days",{ns:"calendar"})})}),o.jsx(Bp,{value:"weeks",children:o.jsx("span",{className:"font-medium",children:J("Weeks",{ns:"calendar"})})}),o.jsx(Bp,{value:"months",children:o.jsx("span",{className:"font-medium",children:J("Months",{ns:"calendar"})})}),o.jsx(Bp,{value:"year",children:o.jsx("span",{className:"font-medium",children:J("Years",{ns:"calendar"})})})]})]})}),o.jsx(ve,{children:o.jsxs(BM,{value:z.toString(),onValueChange:$e=>{Y(Number($e))},children:[o.jsx(T6,{children:o.jsx(UM,{placeholder:"Select"})}),o.jsx(P6,{children:Ve[O].map($e=>o.jsx(Bp,{value:$e.toString(),children:o.jsx("span",{className:"font-medium whitespace-nowrap",children:ft($e,O)})},$e))})]})})]})]})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:U,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:J("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})}}),t[28]=J,t[29]=U,t[30]=e,t[31]=n,t[32]=r,t[33]=s,t[34]=C,t[35]=g,t[36]=m,t[37]=b,t[38]=c,t[39]=a,t[40]=d,t[41]=H,t[42]=f,t[43]=w,t[44]=p,t[45]=q,t[46]=te,t[47]=N,t[48]=E,t[49]=I,t[50]=T,t[51]=V,t[52]=_,t[53]=x,t[54]=se,t[55]=S,t[56]=L,t[57]=A,t[58]=O,t[59]=$,t[60]=Y,t[61]=z,t[62]=ft,t[63]=Ie):Ie=t[63],Ie}function l7e(t){const e=Te(49),{open:n,onClose:r,setIsDeleteAllItemsInCollection:s,onConfirm:a}=t,{t:i}=Gt();let l;e[0]!==i?(l=i("Confirm Delete",{ns:"common"}),e[0]=i,e[1]=l):l=e[1];let c;e[2]!==l?(c=o.jsx("h1",{className:"m-0",children:l}),e[2]=l,e[3]=c):c=e[3];let d;e[4]!==r||e[5]!==c?(d=o.jsx(Yn.Header,{handleClose:r,children:c}),e[4]=r,e[5]=c,e[6]=d):d=e[6];let p;e[7]!==i?(p=i("Are you sure you want to delete this collection?",{ns:"collections"}),e[7]=i,e[8]=p):p=e[8];let f;e[9]!==p?(f=o.jsx(re,{className:"font-semibold",children:p}),e[9]=p,e[10]=f):f=e[10];let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Ln,{h:3}),e[11]=m):m=e[11];let b;e[12]!==i?(b=i("Deleting the collection will remove it permanently. You can also choose to delete all menu and clips items within the collection by checking the box below.",{ns:"collections"}),e[12]=i,e[13]=b):b=e[13];let C;e[14]!==b?(C=o.jsx(re,{className:"font-light",children:b}),e[14]=b,e[15]=C):C=e[15];let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(Ln,{h:3}),e[16]=g):g=e[16];let w;e[17]!==s?(w=z=>{s(z)},e[17]=s,e[18]=w):w=e[18];let x;e[19]!==i?(x=i("Delete all menu items within this collection",{ns:"collections"}),e[19]=i,e[20]=x):x=e[20];let S;e[21]!==w||e[22]!==x?(S=o.jsx(pE,{color:"danger",onChange:w,children:x}),e[21]=w,e[22]=x,e[23]=S):S=e[23];let E;e[24]!==f||e[25]!==C||e[26]!==S?(E=o.jsxs(Yn.Content,{children:[f,m,C,g,S]}),e[24]=f,e[25]=C,e[26]=S,e[27]=E):E=e[27];let N;e[28]!==i?(N=i("Cancel",{ns:"common"}),e[28]=i,e[29]=N):N=e[29];let _;e[30]!==r||e[31]!==N?(_=o.jsx(je,{variant:"ghost",type:"button",onClick:r,children:N}),e[30]=r,e[31]=N,e[32]=_):_=e[32];let P;e[33]!==i?(P=i("Delete Collection",{ns:"collections"}),e[33]=i,e[34]=P):P=e[34];let I;e[35]!==a||e[36]!==P?(I=o.jsx(je,{variant:"danger",type:"submit",onClick:a,children:P}),e[35]=a,e[36]=P,e[37]=I):I=e[37];let T;e[38]!==_||e[39]!==I?(T=o.jsx(Yn.Footer,{children:o.jsxs("div",{className:"flex w-full justify-end gap-x-2",children:[_,I]})}),e[38]=_,e[39]=I,e[40]=T):T=e[40];let L;e[41]!==d||e[42]!==E||e[43]!==T?(L=o.jsxs(Yn.Body,{children:[d,E,T]}),e[41]=d,e[42]=E,e[43]=T,e[44]=L):L=e[44];let A;return e[45]!==n||e[46]!==r||e[47]!==L?(A=o.jsx(Yn,{open:n,handleClose:r,children:L}),e[45]=n,e[46]=r,e[47]=L,e[48]=A):A=e[48],A}function c7e(t){const e=Te(20),{showAddNewCollection:n}=t,{t:r}=Gt(),{createNewCollection:s,createNewCollectionSuccess:a}=fge(),[i,l]=v.useState(""),[c,d]=v.useState(!0),[p,f]=v.useState(""),m=ua(),b=qh(),[C,g]=v.useState(n),[w,x]=v.useState(!1);let S;e[0]!==a||e[1]!==m?(S=()=>{a&&(l(""),f(""),g(!1),m("/history",{replace:!0}))},e[0]=a,e[1]=m,e[2]=S):S=e[2];let E;e[3]!==a?(E=[a],e[3]=a,e[4]=E):E=e[4],v.useEffect(S,E);let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{l(""),f(""),d(!0)},e[5]=N):N=e[5];let _;e[6]!==C?(_=[C],e[6]=C,e[7]=_):_=e[7],v.useEffect(N,_);const P="".concat(C?"border-blue-300 border-2":"opacity-80 justify-center items-center bg-transparent border-2 border-dashed border-gray-300 dark:border-gray-700 min-h-[130px]");let I;e[8]!==C||e[9]!==w||e[10]!==r||e[11]!==i||e[12]!==s||e[13]!==p||e[14]!==c||e[15]!==b?(I=C?o.jsxs(o.Fragment,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:o.jsx(ar,{className:"animate-in fade-in text-md w-full",children:o.jsx(wn,{small:!0,autoFocus:!0,error:w?r("Title too short",{ns:"collections"}):void 0,name:"title",maxLength:50,onKeyDown:L=>{if(L.stopPropagation(),L.key==="Enter"){if(i.length<3){x(!0);return}s({createCollection:{title:i,isSelected:!1,description:p}})}},placeholder:r("Enter collection title",{ns:"collections"}),label:r("Collection Title",{ns:"collections"}),value:i,onChange:L=>{w&&L.target.value.length>3&&x(!1),l(L.target.value)}})})}),o.jsxs(pr,{children:[o.jsx(Co,{enableEmojiInside:!0,enableEmoji:!1,placeholder:r("Add a description for your collection",{ns:"collections"}),rows:2,maxRows:4,maxLength:200,label:r("Description",{ns:"collections"}),value:p,onChange:L=>{f(L.target.value)}}),o.jsx(ve,{className:"items-center justify-start mt-2 ml-[-8px]",children:o.jsx(pE,{color:"default",checked:c,classNameLabel:"py-1",onChange:L=>{d(L)},children:o.jsx(Nv,{size:"sm",children:r("Add default menu, tab and board",{ns:"collections"})})})})]}),o.jsxs(SE,{className:"flex flex-row items-center justify-between space-y-0",children:[o.jsx(ne,{}),o.jsxs(ve,{className:"min-h-[30px]",children:[o.jsx(je,{size:"xs",variant:"link",onClick:()=>{g(!1)},children:r("Cancel",{ns:"common"})}),o.jsx(je,{size:"xs",className:"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50",onClick:()=>ge(this,null,function*(){if(i.length<3){x(!0);return}yield s({addDefaultMenuTabBoard:c,createCollection:{title:i,isSelected:!1,description:p}})}),children:r("Create",{ns:"common"})})]})]})]}):o.jsx(ve,{className:"flex-row gap-3",children:o.jsxs(je,{variant:"ghost",className:"rounded-md hover:dark:bg-blue-700/80 hover:bg-blue-200/80",onClick:()=>{b?g(!0):Ga.value=!0},children:[o.jsx(Vr,{width:20,className:"mr-1"}),o.jsx(Nv,{className:"text-[15px] !font-semibold",children:r("Add Collection",{ns:"collections"})}),o.jsx(Jl,{})]})}),e[8]=C,e[9]=w,e[10]=r,e[11]=i,e[12]=s,e[13]=p,e[14]=c,e[15]=b,e[16]=I):I=e[16];let T;return e[17]!==P||e[18]!==I?(T=o.jsx(cr,{className:P,children:I},"new-collection"),e[17]=P,e[18]=I,e[19]=T):T=e[19],T}function P4({showAddNewCollection:t}){const{t:e}=Gt(),{isShowCollectionNameOnNavBar:n,setIsShowCollectionNameOnNavBar:r}=Tt(Cr);a7(),i7(),AB();const{updateCollectionById:s}=dge(),{selectCollectionById:a}=l7(),{deleteCollectionById:i}=hge(),{currentCollectionId:l,menuItems:c,collections:d}=Tt(Ar),{returnRoute:p}=Tt(Ls),f=qh(),[m,b]=jU({timeout:10,sensitivity:10,interval:20}),{setData:C}=Iq(),[g,w]=v.useState(),[x,S]=v.useState(""),[E,N]=v.useState(!1),[_,P]=v.useState(""),I=it(!1),[T,L]=v.useState(null),[A,z]=v.useState(null);return v.useEffect(()=>{var Y;if(T){const O=d.find(({collectionId:$})=>$===T);O&&(S(O.title),P((Y=O.description)!=null?Y:""))}else S(""),z(null),P("")},[T]),v.useEffect(()=>{C(c.length>0?Av(c):[])},[c,c.length]),o.jsx(Lh,{disableWidth:!0,children:({height:Y})=>Y&&o.jsxs(ne,{className:"p-4 py-6 select-auto",children:[o.jsxs(ne,{className:"text-xl my-2 flex items-center justify-between px-2",children:[o.jsx(re,{className:"light",children:e("Manage Collections",{ns:"collections"})}),o.jsx(lu,{to:p,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:Y-85},autoHide:!0,children:[o.jsxs(ne,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in",children:[o.jsx(c7e,{showAddNewCollection:t}),d.map(({collectionId:O,title:$,description:M,isEnabled:W})=>{const V=T===O,U=l===O;return o.jsxs(cr,{className:"".concat(U&&"border-teal-500 border-2"," ").concat(!W&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium",children:V?o.jsx(wn,{className:"text-md",error:g?e("Title too short",{ns:"collections"}):void 0,maxLength:50,small:!0,onKeyDown:J=>{if(J.stopPropagation(),J.key==="Enter"){if(x.length<3){w(!0);return}s({updatedCollection:{collectionId:O,title:x,isEnabled:W,description:_}}),setTimeout(()=>{L(null)},100)}},label:e("Collection Title",{ns:"collections"}),placeholder:e("Enter collection title",{ns:"collections"}),value:x,onChange:J=>{g&&J.target.value.length>3&&w(!1),S(J.target.value)}}):o.jsx(re,{className:"".concat(U?W?"text-teal-600 dark:text-teal-600":"text-slate-500 dark:text-slate-300":"hover:text-slate-500"," !font-medium ").concat(W?"cursor-pointer":"text-muted-foreground"),onClick:()=>{W&&!U&&a({selectCollection:{collectionId:O}})},children:$})}),!V&&W&&o.jsx(o.Fragment,{children:U?o.jsx(st,{text:e("Current Collection",{ns:"collections"}),isCompact:!0,children:o.jsx(Rz,{className:"text-teal-600 h-6",size:20})}):o.jsx(je,{className:"text-sm box",size:"xs",variant:"outline",onClick:()=>{a({selectCollection:{collectionId:O}})},children:e("Select",{ns:"common"})})})]}),o.jsx(pr,{children:V?o.jsx(Co,{className:"text-md",enableEmoji:!1,enableEmojiInside:!0,maxLength:200,rows:2,maxRows:4,label:e("Description",{ns:"collections"}),value:_,onChange:J=>{P(J.target.value)}}):o.jsx(re,{className:"text-sm text-muted-foreground",children:M})}),o.jsxs(SE,{className:"flex flex-row items-center justify-between space-y-0",children:[o.jsx(ne,{children:V?U?o.jsx(st,{isCompact:!0,className:"bg-warning-100 dark:bg-warning-800",text:o.jsx(re,{justify:"center",color:"danger",children:e("You need to select a different collection before deleting the current one.",{ns:"collections"})}),delayDuration:300,maxWidth:190,open:m,sideOffset:16,children:o.jsx(je,{size:"xs",ref:ml(b),variant:"ghost",className:"bg-slate-50 dark:bg-slate-800",children:o.jsx(v6,{size:"16",className:"opacity-20"})})}):o.jsx(je,{size:"xs",variant:"ghost",onClick:()=>{z(O),I.value=!0},className:"".concat(A?"bg-red-100 dark:bg-red-800 hover:bg-red-100 text-red-600 hover:text-color-dark dark:text-red-200":"bg-red-50/50 dark:bg-red-800 text-red-500 hover:bg-red-100 hover:text-color-dark dark:text-red-200"),children:o.jsx(kr,{size:"16"})}):!U&&o.jsxs(CU,{children:[o.jsx(SU,{asChild:!0,children:o.jsx(ne,{children:o.jsx(ns,{checked:W,disabled:U,onCheckedChange:J=>{f?s({updatedCollection:{collectionId:O,isEnabled:J}}):Ga.value=!0}})})}),o.jsx(E7,{children:o.jsx(re,{className:"text-sm",children:W?e("Enabled",{ns:"common"}):e("Disabled",{ns:"common"})})})]})}),o.jsxs(ve,{className:"min-h-[30px]",children:[V&&o.jsx(je,{size:"xs",variant:"link",className:"text-slate-500",onClick:()=>{L(null)},disabled:!W,children:e("Cancel",{ns:"common"})}),W&&o.jsx(je,{size:"xs",variant:V?"default":"light",className:V?"bg-blue-100 text-blue-600 hover:bg-blue-100/50 dark:bg-blue-800 dark:text-blue-200 dark:hover:bg-blue-800/50":"",onClick:()=>{if(!V)L(O);else{if(x.length<3){w(!0);return}s({updatedCollection:{collectionId:O,title:x,isEnabled:W,description:_}}),setTimeout(()=>{L(null)},100)}},disabled:!W,children:V?e("Save",{ns:"common"}):e("Edit",{ns:"common"})})]})]})]},O)})]}),o.jsx(Ln,{h:5}),o.jsx(re,{className:"light",children:e("Collection Options",{ns:"collections"})}),o.jsx(ne,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in mt-4",children:o.jsxs(cr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Show collection name on the navbar",{ns:"collections"})}),o.jsx(ns,{checked:n,className:"ml-auto",onCheckedChange:()=>{r(!n)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"collections"})})})]})}),o.jsx(Ln,{h:6})]}),o.jsx(l7e,{open:I.value,setIsDeleteAllItemsInCollection:N,onClose:()=>{I.value=!1,N(!1),z(null)},onConfirm:()=>{A&&(i({deleteCollection:{deleteAllItemsInCollection:E,collectionId:A}}),I.value=!1,N(!1),z(null))}})]})})}function u7e(){var t=sn(1);try{const{t:e}=Gt(),{isIdleScreenAutoLockEnabled:n,setIsIdleScreenAutoLockEnabled:r,idleScreenAutoLockTimeInMinutes:s,setIdleScreenAutoLockTimeInMinutes:a,isShowHistoryCaptureOnLockedScreen:i,setIsShowHistoryCaptureOnLockedScreen:l,isScreenLockPassCodeRequireOnStart:c,setIsScreenLockPassCodeRequireOnStart:d,screenLockPassCode:p,setScreenLockPassCode:f,screenLockPassCodeLength:m,setScreenLockPassCodeLength:b,screenLockRecoveryPasswordMasked:C,hashPassword:g,setScreenLockRecoveryPasswordMasked:w,storePassword:x,verifyStoredPassword:S,deleteStoredPassword:E}=Tt(Cr),{returnRoute:N}=Tt(Ls),_=qh(),P=it(""),I=it(""),T=it(""),L=it(""),A=it(""),z=it(!1),Y=it(!1),O=it(!1),$=it(!1),M=it(!1),W=it(!1),V=it(!1),U=it(!1);v.useEffect(()=>{uo.value===Oc.resetPassword&&rl.value===Oc.resetPassword?(w(null),E("screenLockRecoveryPassword"),uo.value=null,rl.value=null):uo.value===Oc.resetPasscode&&rl.value===Oc.resetPasscode&&(f(null),b(0),uo.value=null,rl.value=null)},[rl.value,uo.value]),v.useEffect(()=>{P.value.length!==0&&!p&&P.value===I.value&&g(P.value).then(X=>{f(X),b(P.value.length),z.value=!1,I.value="",P.value=""})},[P.value,I.value]);const J=v.useMemo(()=>O.value,[O.value]),H=v.useMemo(()=>Br.value,[Br.value]);v.useMemo(()=>!0,[I.value,z.value,Y.value,$.value,A.value,M.value,W.value,U.value,V.value]);const F=v.useMemo(()=>T.value.length>=6&&T.value.length<=50&&T.value===L.value,[T.value,L.value]),q=v.useMemo(()=>L.value.length>=T.value.length&&T.value!==L.value,[T.value,L.value]);return o.jsx(Lh,{disableWidth:!0,children:({height:X})=>X&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:e("Security Settings",{ns:"settings"})}),o.jsx(lu,{to:N,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:X-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:e("Lock Screen Passcode",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Set a passcode to unlock the locked screen and protect your data from unauthorized access.",{ns:"settings"})})]}),o.jsxs(pr,{children:[p?o.jsxs(o.Fragment,{children:[o.jsx(ve,{className:"gap-5 justify-start flex-wrap",children:new Array(m).fill(0).map((te,ee)=>o.jsx(ne,{className:"text-lg px-4 py-4 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:"●"},ee))}),o.jsx(ne,{className:"mt-2 text-green-700 dark:text-green-600",children:o.jsx(us,{i18nKey:"{{screenLockPassCodeLength}} digits passcode is set.",values:{screenLockPassCodeLength:m},ns:"settings"})})]}):o.jsxs(o.Fragment,{children:[z.value?o.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[o.jsx(wn,{className:"text-md !w-40",numbersOnly:!0,isPassword:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),autoFocus:!0,placeholder:e("Confirm",{ns:"common"}),label:e("Confirm Passcode",{ns:"common"}),onChange:te=>{const ee=te.target.value;I.value=ee}},"confirm-passcode"),o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{z.value=!1,I.value="",P.value=""},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200 mt-4 h-9",children:e("Cancel",{ns:"common"})})]}):o.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[o.jsx(wn,{className:"text-md !w-40",numbersOnly:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),placeholder:e("Enter Passcode",{ns:"common"}),label:e("Digits Only Passcode",{ns:"common"}),onKeyDown:te=>{te.key==="Enter"&&(P.value.length>3||P.value.length<11)&&(z.value=!0)},onChange:te=>{const ee=te.target.value;P.value=ee}}),o.jsx(je,{variant:"secondary",size:"sm",disabled:P.value.length<4||P.value.length>10,onClick:()=>{z.value=!0},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-4 h-9",children:e("Set",{ns:"common"})})]}),z.value?I.value&&P.value&&o.jsx(o.Fragment,{children:I.value&&P.value.length-I.value.length>0?o.jsxs(re,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode digits remaining",{ns:"settings"}),":",o.jsx("b",{className:"ml-1",children:P.value.length-I.value.length})]}):P.value!==I.value&&o.jsx(re,{size:"sm",className:"!text-red-500 dark:!text-red-400",children:e("Passcode mismatch",{ns:"settings"})})}):o.jsx(o.Fragment,{children:P.value.length>=4&&P.value.length<=10?o.jsxs(re,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode length",{ns:"settings"}),":",o.jsx("b",{className:"ml-1",children:P.value.length})]}):P.value.length>10?o.jsx(re,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Maximum 10 digits",{ns:"settings"})}):P.value.length>0&&P.value.length<4&&o.jsx(re,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Minimal 4 digits",{ns:"settings"})})})]}),p&&o.jsx(o.Fragment,{children:o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{Of.value=!0,uo.value=Oc.resetPasscode,$f.value=e("passcode reset",{ns:"settings"})},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Passcode",{ns:"common"})})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:o.jsx(ne,{children:e("Recovery Password for Lock Screen Passcode",{ns:"settings"})})}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Set a recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.",{ns:"settings"})})]}),o.jsx(pr,{children:C?o.jsxs(ne,{children:[o.jsxs(ve,{className:"gap-2 justify-start items-start flex-wrap flex-col my-1",children:[o.jsx(ne,{className:"text-lg px-4 py-2 rounded-md text-slate-600 dark:text-slate-400 bg-slate-100 dark:bg-slate-800 text-center",children:o.jsx(re,{className:"text-lg",children:C})}),o.jsx(ne,{className:"mt-1 text-green-700 dark:text-green-600",children:e("Recovery password is set.",{ns:"settings"})})]}),J?o.jsxs(ne,{className:"mt-2",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:te=>{te.key==="Enter"&&!W.value&&A.value.length>=6&&(M.value=!1,W.value=!0,S("screenLockRecoveryPassword",A.value).then(ee=>{ee?(O.value=!1,w(null),E("screenLockRecoveryPassword"),A.value=""):M.value=!0,W.value=!1}).catch(()=>{M.value=!0,W.value=!1}))},error:A.value.length>=6&&M.value?e("Password is incorrect",{ns:"settings"}):"",autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),classNameInput:"h-9",autoFocus:!0,placeholder:e("Enter Password",{ns:"common"}),label:e("Verify Current Password",{ns:"common"}),onChange:te=>{M.value=!1,A.value=te.target.value}},"recovery-reset-password"),o.jsxs(ve,{className:"justify-start items-center gap-2 mt-2",children:[o.jsx(je,{variant:"secondary",size:"sm",disabled:A.value.length<6,onClick:()=>{M.value=!1,W.value=!0,S("screenLockRecoveryPassword",A.value).then(te=>{te?(O.value=!1,w(null),E("screenLockRecoveryPassword"),A.value=""):M.value=!0,W.value=!1}).catch(()=>{M.value=!0,W.value=!1})},className:"w-20 text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200",children:W.value?o.jsx(d0,{}):e("Reset",{ns:"common"})}),p&&o.jsx(je,{variant:"light",size:"sm",onClick:()=>{O.value=!1,Of.value=!0,uo.value=Oc.resetPassword,$f.value=e("password reset",{ns:"settings"})},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200",children:e("Use Passcode",{ns:"common"})}),o.jsx(je,{variant:"secondary",size:"sm",disabled:H>0,onClick:()=>{O.value=!1,M.value=!1,A.value=""},className:"text-sm bg-transparent dark:bg-transparent dark:text-slate-200 hover:dark:bg-slate-800",children:e("Cancel",{ns:"common"})})]})]}):o.jsx(je,{variant:"secondary",size:"sm",onClick:()=>{O.value=!0},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset Password",{ns:"common"})})]}):o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col",children:[o.jsx(wn,{className:"text-md !w-60",isPassword:!0,autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),showHidePassword:!0,placeholder:e("Recovery Password",{ns:"common"}),label:e("Enter Recovery Password",{ns:"common"}),classNameInput:T.value.length>=6&&T.value.length<=50?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",onChange:te=>{T.value=te.target.value}},"recovery-password"),o.jsx(wn,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:te=>{te.key==="Enter"&&T.value===L.value&&T.value.length>=6&&T.value.length<=50&&x("screenLockRecoveryPassword",T.value).then(()=>{w(Ch(T.value)),T.value="",L.value=""})},error:q?e("Passwords do not match",{ns:"settings"}):"",autoComplete:"off",onPaste:te=>(te.preventDefault(),!1),classNameInput:!q&&F?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",placeholder:e("Confirm Password",{ns:"common"}),label:e("Confirm Password",{ns:"common"}),onChange:te=>{L.value=te.target.value}},"recovery-password-confirmation"),o.jsx(je,{variant:"secondary",size:"sm",disabled:!F,onClick:()=>{T.value===L.value&&x("screenLockRecoveryPassword",T.value).then(()=>{w(Ch(T.value)),T.value="",L.value=""})},className:"text-sm bg-blue-300 hover:bg-blue-300/80 dark:bg-blue-700 hover:dark:bg-blue-700/80 dark:text-slate-200 mt-1 h-9",children:e("Set Password",{ns:"common"})})]})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!i&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsx(ne,{children:e("Show Clipboard History Capture Control on Lock Screen",{ns:"settings"})}),o.jsx(ns,{checked:i,className:"ml-auto",onCheckedChange:()=>{l(!i)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Display clipboard history capture toggle on the locked application screen. This allows you to control history capture settings directly from the lock screen.",{ns:"settings"})})]}),o.jsx(pr,{})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsxs(ne,{children:[e("Auto Lock the Screen on User Inactivity",{ns:"settings"}),o.jsx(Jl,{})]}),o.jsx(ns,{checked:n,className:"ml-auto",onCheckedChange:()=>{!n&&!_?Ga.value=!0:r(!n)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Enable auto lock the application screen after a certain period of inactivity, to prevent unauthorized access to your data.",{ns:"settings"})})]}),o.jsxs(pr,{children:[o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start my-2",children:Ese.map((te,ee)=>o.jsxs(je,{variant:"ghost",disabled:!n,onClick:()=>{a(te)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(s===te?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 hover:dark:bg-slate-800 px-2 !py-0.5"),children:[te," ",e("minutes",{ns:"common"})]},ee))}),o.jsx(je,{variant:"secondary",size:"sm",disabled:s===15,onClick:()=>{a(15)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[o.jsxs(ne,{children:[e("Require Screen Unlock at Application Start",{ns:"settings"}),o.jsx(Jl,{})]}),o.jsx(ns,{checked:c,className:"ml-auto",onCheckedChange:()=>{!c&&!_?Ga.value=!0:d(!c)}})]}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Enable screen unlock requirement on app launch for enhanced security, safeguarding data from unauthorized access.",{ns:"settings"})})]}),o.jsx(pr,{})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:N,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})})}finally{t.f()}}const d7e='### Example\n\nA third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, _and sometimes only one._ A third of the distance across the Beach, the meadow ends and sand begins.\n\nThe outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.\n\n### Subtitle\n\nThis is another fine paragraph\n\n### Smaller subtitle\n\nThis is a paragraph `with` ~style~ *italic* _italic_ **bold** __bold__\n\n*Hello [PasteBar](https://www.pastebar.app/) lol*\n\nHello [*PasteBar*](https://www.pastebar.app/) lol "cat"\n\nHello from *[PasteBar](https://rsms.me/)* to __everyone__ `reading this`\n\n### Embedded HTML\n\nWith default settings, markdown-wasm allows embedded HTML.\n\n> It has been disabled in this demo for safety reasons, by means of setting `ParseFlags.NO_HTML`.\n> Not setting the `NO_HTML` flag allows embedding HTML like this:\n\n\n\n\n### Block Quotes\n\n> You can insert quotes by\n> preceeding each line with `>`.\n>\n> Blockquotes can also contain line\n> breaks.\n\n\n### Lists\n\n#### Unordered lists\n\n- Unordered\n- Lists\n- Hello\n\n#### Ordered lists\n\n1. Ordered\n2. Lists\n4. Numbers are ignored\n1. Ordered\n\n121) Ordered lists can start\n122) with any number and\n123) use . as well as ) as a separator.\n\n#### Task lists\n\n- [ ] Task 1\n- [x] Task 2\n- [ ] Task 3\n- Regular list item\n\n### Tables\n\n| Column 1 | Column 2 | Column 3 | Column 4\n|----------|:---------|:--------:|---------:\n| default | left | center | right\n\n#### Table of image file types\n\n| Header | Mime type | Extensions | Description\n|---------------------------|--------------|------------|-------------\n| `89 50 4E 47 0D 0A 1A 0A` | image/png | png | PNG image\n| `47 49 46 38 39 61` | image/gif | gif | GIF image\n| `FF D8 FF` | image/jpeg | jpg jpeg | JPEG image\n| `4D 4D 00 2B` | image/tiff | tif tiff | TIFF image\n| `42 4D` | image/bmp | bmp | Bitmap image\n| `00 00 01 00` | image/x-icon | ico | Icon image';function f7e(){const t=Te(39),{t:e}=Gt(),n=rW(),{isSkipAutoStartPrompt:r,setIsSkipAutoStartPrompt:s,isShowCollectionNameOnNavBar:a,setIsShowCollectionNameOnNavBar:i,isClipNotesHoverCardsEnabled:l,setIsClipNotesHoverCardsEnabled:c,clipNotesMaxHeight:d,clipNotesMaxWidth:p,setClipNotesMaxHeight:f,setClipNotesMaxWidth:m,clipNotesHoverCardsDelayMS:b,setClipNotesHoverCardsDelayMS:C,isShowDisabledCollectionsOnNavBarMenu:g,setIsShowDisabledCollectionsOnNavBarMenu:w}=Tt(Cr),{setFontSize:x,fontSize:S,setIsSwapPanels:E,isSwapPanels:N}=Tt(Ls),[_,P]=v.useState(!1),{setTheme:I,theme:T}=ik(),{mode:L,setMode:A,themeDark:z}=Tt(bo);let Y;t[0]!==T||t[1]!==L||t[2]!==A?(Y=()=>{T!==L&&A(T)},t[0]=T,t[1]=L,t[2]=A,t[3]=Y):Y=t[3];let O;t[4]!==T?(O=[T],t[4]=T,t[5]=O):O=t[5],v.useEffect(Y,O);let $,M;t[6]===Symbol.for("react.memo_cache_sentinel")?($=()=>{On("is_autostart_enabled").then(q=>{P(!!q)})},M=[],t[6]=$,t[7]=M):($=t[6],M=t[7]),v.useEffect($,M);const{returnRoute:W}=Tt(Ls);let V;t[8]!==z?(V=z(),t[8]=z,t[9]=V):V=t[9];const U=V;let J;t[10]!==e?(J=function(X){const te=X/1e3,ee=Number.isInteger(te)?te.toString():te.toFixed(1),G=te===1?" "+e("second"):" "+e("seconds");return ee+G},t[10]=e,t[11]=J):J=t[11];const H=J;let F;return t[12]!==e||t[13]!==W||t[14]!==_||t[15]!==r||t[16]!==s||t[17]!==x||t[18]!==S||t[19]!==I||t[20]!==T||t[21]!==n||t[22]!==N||t[23]!==E||t[24]!==a||t[25]!==i||t[26]!==g||t[27]!==w||t[28]!==l||t[29]!==c||t[30]!==C||t[31]!==b||t[32]!==H||t[33]!==U||t[34]!==p||t[35]!==d||t[36]!==m||t[37]!==f?(F=o.jsx(Lh,{disableWidth:!0,children:q=>{var te;const{height:X}=q;return X&&o.jsxs(ne,{className:"p-4 py-6 select-none min-w-[320px]",children:[o.jsxs(ne,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[o.jsx(re,{className:"light",children:e("User Preferences",{ns:"settings"})}),o.jsx(lu,{to:W,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),o.jsx(Ln,{h:3}),o.jsxs(or,{style:{maxHeight:X-85},autoHide:!0,children:[o.jsx(ne,{className:"animate-in fade-in max-w-xl",children:o.jsxs(cr,{className:"".concat(!_&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Application Auto Start",{ns:"settings"})}),o.jsx(ns,{checked:_,className:"ml-auto",onCheckedChange:()=>ge(this,null,function*(){yield On("autostart",{enabled:!_}),P(!_)})})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Enable application auto start on system boot",{ns:"settings"})}),!_&&o.jsx(ve,{className:"items-center justify-start mt-2 ml-[-12px]",children:o.jsx(pE,{color:"default",checked:r,classNameLabel:"py-1",onChange:()=>{s(!r)},children:o.jsx(Nv,{size:"sm",children:e("Skip auto start prompt on app launch",{ns:"settings"})})})})]})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{children:[o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Fonts Scale",{ns:"settings"}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface font size scale",{ns:"settings"})})]}),o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:Fp.map((ee,G)=>o.jsx(je,{variant:"ghost",onClick:()=>{x(ee)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(S===ee?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-2 !py-0.5"),children:ee},G))})]}),o.jsx(pr,{children:o.jsx(je,{variant:"secondary",size:"sm",disabled:S==="100%",onClick:()=>{x("100%")},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsx(cr,{children:o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Color Theme",{ns:"settings"}),o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface color theme",{ns:"settings"})})]}),o.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start",children:[o.jsxs(je,{variant:"ghost",onClick:()=>{I("light")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="light"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.sun,{className:"mr-2",size:18})}),o.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),o.jsxs(je,{variant:"ghost",onClick:()=>{I("dark")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="dark"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flex tems-end",children:o.jsx(Ho.moon,{className:"mr-2",size:17})}),o.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),o.jsxs(je,{variant:"ghost",onClick:()=>{I("system")},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(T==="system"?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"tems-end flex w-[1.5rem] ",children:o.jsx(Ho.sunmoon,{className:"mr-2",width:14,height:14})}),o.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsx(cr,{children:o.jsxs(sr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[o.jsxs(ar,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Language",{ns:"settings"}),n?o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Your License is limited to support for a single {{language}} language",{ns:"settings",language:(te=xh.find(ee=>{const{code:G}=ee;return G===n}))==null?void 0:te.name})}):o.jsx(re,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface language",{ns:"settings"})})]}),o.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:xh.map(ee=>{const{code:G,name:Z,flag:le}=ee;return o.jsxs(je,{variant:"ghost",disabled:n&&G!==n,onClick:()=>{dr.changeLanguage(G)},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(dr.language===G?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-3 !py-0.5"),children:[o.jsx("span",{className:"flags mr-3",children:le})," ",Z]},G)})})]})})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!N&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Swap Panels Layout",{ns:"common"})}),o.jsx(ns,{checked:N,className:"ml-auto",onCheckedChange:()=>ge(this,null,function*(){E(!N)})})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Switch the layout position of panels in Clipboard History and Paste Menu views",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!a&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Show collection name on the navbar",{ns:"settings"})}),o.jsx(ns,{checked:a,className:"ml-auto",onCheckedChange:()=>{i(!a)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!g&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Show disabled collections on the navbar list",{ns:"settings"})}),o.jsx(ns,{checked:g,className:"ml-auto",onCheckedChange:()=>{w(!g)}})]}),o.jsx(pr,{children:o.jsx(re,{className:"text-sm text-muted-foreground",children:e("Display disabled collections name on the navigation bar under collections menu",{ns:"settings"})})})]})}),o.jsx(ne,{className:"animate-in fade-in max-w-xl mt-4",children:o.jsxs(cr,{className:"".concat(!l&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[o.jsxs(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Enable Clip Title Hover Show with Delay",{ns:"settings"})}),o.jsx(ns,{checked:l,className:"ml-auto",onCheckedChange:()=>{c(!l)}})]}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("This option lets you control the display and timing of hover notes on clips. You can choose to show notes instantly or with a delay to prevent unintended popups.",{ns:"settings"})}),o.jsx(ve,{className:"gap-2 flex-wrap items-start justify-start mt-4 mb-4",children:ste.map((ee,G)=>o.jsx(je,{variant:"ghost",disabled:!l,onClick:()=>{C(ee)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(b===ee?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-2 !py-0.5"),children:H(ee)},G))}),o.jsx(je,{variant:"secondary",size:"sm",disabled:b===2e3||!l,onClick:()=>{C(2e3)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(ne,{className:"max-w-xl mt-4 animate-in fade-in",children:o.jsxs(cr,{children:[o.jsx(sr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:o.jsx(ar,{className:"animate-in fade-in text-md font-medium w-full",children:e("Clip Notes Popup Maximum Dimensions",{ns:"settings"})})}),o.jsxs(pr,{children:[o.jsx(re,{className:"text-sm text-muted-foreground",children:e("This option lets you customize the maximum width and height of the popup that displays clip notes, ensuring it fits comfortably within your desired size.",{ns:"settings"})}),o.jsx(ww,{text:d7e,side:"top",isDark:U,delayDuration:b,classNameTrigger:"inline-flex items-start",sideOffset:0,maxWidth:p,maxHeight:d,asChild:!0,children:o.jsx(re,{className:"text-sm text-muted-foreground mt-3 underline cursor-pointer",children:e("Preview current popup size on hover.",{ns:"settings"})})}),o.jsxs(ve,{className:"gap-2 flex-wrap items-start justify-start mt-4 mb-4",children:[cC.map((ee,G)=>{const Z=ee.width===p&&ee.height===d;return o.jsxs(je,{variant:"ghost",onClick:()=>{m(ee.width),f(ee.height)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(Z?"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300":""," dark:text-slate-200 px-4 !py-0.5"),children:[ee.iconSize&&o.jsx(ale,{size:ee.iconSize,className:"mr-2"}),e(ee.title,{ns:"settings"})]},G)}),o.jsxs(je,{variant:"ghost",onClick:()=>{cC.some(ee=>ee.width===p&&ee.height===d)&&(m(440),f(240))},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(cC.some(ee=>ee.width===p&&ee.height===d)?"":"bg-slate-300 font-semibold dark:bg-slate-600 text-dark dark:text-slate-200 hover:dark:bg-slate-600 hover:bg-slate-300"," dark:text-slate-200 px-4 !py-0.5"),children:[o.jsx(nle,{size:21,className:"mr-2"}),e("Custom",{ns:"settings"})]})]}),o.jsxs(ve,{className:"w-full gap-10 my-4 items-start justify-start",children:[o.jsx(wn,{className:"text-md !w-36",type:"number",step:"20",max:800,min:100,error:void 0,small:!0,label:e("Maximum width",{ns:"common"}),value:p,onBlur:()=>{p<100?m(100):p>800&&m(800)},onChange:ee=>{const G=ee.target.value;if(G!==""){const Z=parseInt(G);Z&&m(Z)}}}),o.jsx(wn,{className:"text-md !w-36",type:"number",step:"20",max:600,min:100,error:void 0,small:!0,label:e("Maximum height",{ns:"common"}),value:d,onBlur:()=>{d<100?f(100):d>600&&f(600)},onChange:ee=>{const G=ee.target.value;if(G!==""){const Z=parseInt(G);Z&&f(Z)}}})]}),o.jsx(je,{variant:"secondary",size:"sm",disabled:p===220&&d===120,onClick:()=>{m(220),f(120)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-1",children:e("Reset",{ns:"common"})})]})]})}),o.jsx(Ln,{h:6}),o.jsx(lu,{to:W,replace:!0,children:o.jsx(je,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),o.jsx(Ln,{h:4})]})]})}}),t[12]=e,t[13]=W,t[14]=_,t[15]=r,t[16]=s,t[17]=x,t[18]=S,t[19]=I,t[20]=T,t[21]=n,t[22]=N,t[23]=E,t[24]=a,t[25]=i,t[26]=g,t[27]=w,t[28]=l,t[29]=c,t[30]=C,t[31]=b,t[32]=H,t[33]=U,t[34]=p,t[35]=d,t[36]=m,t[37]=f,t[38]=F):F=t[38],F}const h7e=[{index:!0,element:o.jsx(Owe,{to:"history",replace:!0})},{path:"menu",element:o.jsx(s7e,{}),index:!0},{path:"history",element:o.jsx(S6e,{})},{path:"app-settings",element:o.jsx(a7e,{}),children:[{path:"collections",element:o.jsx(P4,{})},{path:"collections/new",element:o.jsx(P4,{showAddNewCollection:!0})},{path:"items",element:o.jsx(P4,{})},{path:"history",element:o.jsx(i7e,{})},{path:"preferences",element:o.jsx(f7e,{})},{path:"security",element:o.jsx(u7e,{})},{path:"license",element:o.jsx(ZI,{})},{path:"license/register",element:o.jsx(ZI,{registerLicense:!0})}]}],p7e=Wwe([{element:o.jsx(Cke,{}),children:[{path:"/",lazy:()=>ke(()=>Promise.resolve().then(()=>UCe),void 0),children:h7e}]}]),m7e=new oY({defaultOptions:{mutations:{networkMode:"always"},queries:{networkMode:"always",gcTime:IL?600:1e3*60*60*1,retry:TY,retryDelay:t=>Math.min(2e3*kg(2,t),3e4)}}});RO(document.getElementById("root")).render(o.jsx(v.StrictMode,{children:o.jsxs(dY,{client:m7e,children:[o.jsx(Qwe,{router:p7e}),IL&&o.jsx(EY,{initialIsOpen:!1,position:"bottom"})]})}));export{Vt as R,o2e as a,u2e as b,hu as c,a2e as d,v as e,cu as g,l2e as r}; diff --git a/dist-ui/assets/jinja2-adCpaZ7l.js b/dist-ui/assets/jinja2-ChULB2Fk.js similarity index 97% rename from dist-ui/assets/jinja2-adCpaZ7l.js rename to dist-ui/assets/jinja2-ChULB2Fk.js index e938efaf..fb54465e 100644 --- a/dist-ui/assets/jinja2-adCpaZ7l.js +++ b/dist-ui/assets/jinja2-ChULB2Fk.js @@ -1 +1 @@ -import{g as b,c as p}from"./index-CFELAGmQ.js";function k(t,u){for(var r=0;ro[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(t,u){(function(r){r(p)})(function(r){r.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],l=/^[+\-*&%=<>!?|~^]/,c=/^[:\[\(\{]/,f=["true","false"],a=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),f=new RegExp("(("+f.join(")|(")+"))\\b");function d(e,n){var i=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(f))return"atom";if(e.match(a))return"number"}if(n.sign){if(n.sign=!1,e.match(f))return"atom";if(e.match(a))return"number"}if(n.instring)return i==n.instring&&(n.instring=!1),e.next(),"string";if(i=="'"||i=='"')return n.instring=i,e.next(),"string";if(n.inbraces>0&&i==")")e.next(),n.inbraces--;else if(i=="(")e.next(),n.inbraces++;else if(n.inbrackets>0&&i=="]")e.next(),n.inbrackets--;else if(i=="[")e.next(),n.inbrackets++;else{if(!n.lineTag&&(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}")))return n.intag=!1,"tag";if(e.match(l))return n.operator=!0,"operator";if(e.match(c))n.sign=!0;else{if(e.column()==1&&n.lineTag&&e.match(o))return"keyword";if(e.eat(" ")||e.sol()){if(e.match(o))return"keyword";if(e.match(f))return"atom";if(e.match(a))return"number";e.sol()&&e.next()}else e.next()}}return"variable"}else if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(i=e.eat(/\{|%/))return n.intag=i,n.inbraces=0,n.inbrackets=0,i=="{"&&(n.intag="}"),e.eat("-"),"tag"}else if(e.eat("#")){if(e.peek()=="#")return e.skipToEnd(),"comment";if(!e.eol())return n.intag=!0,n.lineTag=!0,n.inbraces=0,n.inbrackets=0,"tag"}e.next()}return{startState:function(){return{tokenize:d,inbrackets:0,inbraces:0}},token:function(e,n){var i=n.tokenize(e,n);return e.eol()&&n.lineTag&&!n.instring&&n.inbraces==0&&n.inbrackets==0&&(n.intag=!1,n.lineTag=!1),i},blockCommentStart:"{#",blockCommentEnd:"#}",lineComment:"##"}}),r.defineMIME("text/jinja2","jinja2")})})();var g=s.exports;const h=b(g),x=k({__proto__:null,default:h},[g]);export{x as j}; +import{g as b,c as p}from"./index-F8NPuhC5.js";function k(t,u){for(var r=0;ro[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function(t,u){(function(r){r(p)})(function(r){r.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],l=/^[+\-*&%=<>!?|~^]/,c=/^[:\[\(\{]/,f=["true","false"],a=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),f=new RegExp("(("+f.join(")|(")+"))\\b");function d(e,n){var i=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(f))return"atom";if(e.match(a))return"number"}if(n.sign){if(n.sign=!1,e.match(f))return"atom";if(e.match(a))return"number"}if(n.instring)return i==n.instring&&(n.instring=!1),e.next(),"string";if(i=="'"||i=='"')return n.instring=i,e.next(),"string";if(n.inbraces>0&&i==")")e.next(),n.inbraces--;else if(i=="(")e.next(),n.inbraces++;else if(n.inbrackets>0&&i=="]")e.next(),n.inbrackets--;else if(i=="[")e.next(),n.inbrackets++;else{if(!n.lineTag&&(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}")))return n.intag=!1,"tag";if(e.match(l))return n.operator=!0,"operator";if(e.match(c))n.sign=!0;else{if(e.column()==1&&n.lineTag&&e.match(o))return"keyword";if(e.eat(" ")||e.sol()){if(e.match(o))return"keyword";if(e.match(f))return"atom";if(e.match(a))return"number";e.sol()&&e.next()}else e.next()}}return"variable"}else if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(i=e.eat(/\{|%/))return n.intag=i,n.inbraces=0,n.inbrackets=0,i=="{"&&(n.intag="}"),e.eat("-"),"tag"}else if(e.eat("#")){if(e.peek()=="#")return e.skipToEnd(),"comment";if(!e.eol())return n.intag=!0,n.lineTag=!0,n.inbraces=0,n.inbrackets=0,"tag"}e.next()}return{startState:function(){return{tokenize:d,inbrackets:0,inbraces:0}},token:function(e,n){var i=n.tokenize(e,n);return e.eol()&&n.lineTag&&!n.instring&&n.inbraces==0&&n.inbrackets==0&&(n.intag=!1,n.lineTag=!1),i},blockCommentStart:"{#",blockCommentEnd:"#}",lineComment:"##"}}),r.defineMIME("text/jinja2","jinja2")})})();var g=s.exports;const h=b(g),x=k({__proto__:null,default:h},[g]);export{x as j}; diff --git a/dist-ui/assets/jsx-ClkCV7Y-.js b/dist-ui/assets/jsx-Dgyo4MRd.js similarity index 97% rename from dist-ui/assets/jsx-ClkCV7Y-.js rename to dist-ui/assets/jsx-Dgyo4MRd.js index 9df817b9..536d71b0 100644 --- a/dist-ui/assets/jsx-ClkCV7Y-.js +++ b/dist-ui/assets/jsx-Dgyo4MRd.js @@ -1 +1 @@ -import{g as b,c as w,r as S,a as E}from"./index-CFELAGmQ.js";function O(l,v){for(var r=0;rs[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(l,v){(function(r){r(w,S(),E())})(function(r){function s(i,c,a,o){this.state=i,this.mode=c,this.depth=a,this.prev=o}function u(i){return new s(r.copyState(i.mode,i.state),i.mode,i.depth,i.prev&&u(i.prev))}r.defineMode("jsx",function(i,c){var a=r.getMode(i,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),o=r.getMode(i,c&&c.base||"javascript");function j(e){var n=e.tagName;e.tagName=null;var t=a.indent(e,"","");return e.tagName=n,t}function g(e,n){return n.context.mode==a?x(e,n,n.context):y(e,n,n.context)}function x(e,n,t){if(t.depth==2)return e.match(/^.*?\*\//)?t.depth=1:e.skipToEnd(),"comment";if(e.peek()=="{"){a.skipAttribute(t.state);var f=j(t.state),p=t.state.context;if(p&&e.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?f-=i.indentUnit:t.prev.state.lexical&&(f=t.prev.state.lexical.indented)}else t.depth==1&&(f+=i.indentUnit);return n.context=new s(r.startState(o,f),o,0,n.context),null}if(t.depth==1){if(e.peek()=="<")return a.skipAttribute(t.state),n.context=new s(r.startState(a,j(t.state)),a,0,n.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.depth=2,g(e,n)}var h=a.token(e,t.state),d=e.current(),k;return/\btag\b/.test(h)?/>$/.test(d)?t.state.context?t.depth=0:n.context=n.context.prev:/^-1&&e.backUp(d.length-k),h}function y(e,n,t){if(e.peek()=="<"&&!e.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&o.expressionAllowed(e,t.state))return n.context=new s(r.startState(a,o.indent(t.state,"","")),a,0,n.context),o.skipExpression(t.state),null;var f=o.token(e,t.state);if(!f&&t.depth!=null){var p=e.current();p=="{"?t.depth++:p=="}"&&--t.depth==0&&(n.context=n.context.prev)}return f}return{startState:function(){return{context:new s(r.startState(o),o)}},copyState:function(e){return{context:u(e.context)}},token:g,indent:function(e,n,t){return e.context.mode.indent(e.context.state,n,t)},innerMode:function(e){return e.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var m=T.exports;const N=b(m),M=O({__proto__:null,default:N},[m]);export{M as j}; +import{g as b,c as w,r as S,a as E}from"./index-F8NPuhC5.js";function O(l,v){for(var r=0;rs[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(l,v){(function(r){r(w,S(),E())})(function(r){function s(i,c,a,o){this.state=i,this.mode=c,this.depth=a,this.prev=o}function u(i){return new s(r.copyState(i.mode,i.state),i.mode,i.depth,i.prev&&u(i.prev))}r.defineMode("jsx",function(i,c){var a=r.getMode(i,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),o=r.getMode(i,c&&c.base||"javascript");function j(e){var n=e.tagName;e.tagName=null;var t=a.indent(e,"","");return e.tagName=n,t}function g(e,n){return n.context.mode==a?x(e,n,n.context):y(e,n,n.context)}function x(e,n,t){if(t.depth==2)return e.match(/^.*?\*\//)?t.depth=1:e.skipToEnd(),"comment";if(e.peek()=="{"){a.skipAttribute(t.state);var f=j(t.state),p=t.state.context;if(p&&e.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?f-=i.indentUnit:t.prev.state.lexical&&(f=t.prev.state.lexical.indented)}else t.depth==1&&(f+=i.indentUnit);return n.context=new s(r.startState(o,f),o,0,n.context),null}if(t.depth==1){if(e.peek()=="<")return a.skipAttribute(t.state),n.context=new s(r.startState(a,j(t.state)),a,0,n.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.depth=2,g(e,n)}var h=a.token(e,t.state),d=e.current(),k;return/\btag\b/.test(h)?/>$/.test(d)?t.state.context?t.depth=0:n.context=n.context.prev:/^-1&&e.backUp(d.length-k),h}function y(e,n,t){if(e.peek()=="<"&&!e.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&o.expressionAllowed(e,t.state))return n.context=new s(r.startState(a,o.indent(t.state,"","")),a,0,n.context),o.skipExpression(t.state),null;var f=o.token(e,t.state);if(!f&&t.depth!=null){var p=e.current();p=="{"?t.depth++:p=="}"&&--t.depth==0&&(n.context=n.context.prev)}return f}return{startState:function(){return{context:new s(r.startState(o),o)}},copyState:function(e){return{context:u(e.context)}},token:g,indent:function(e,n,t){return e.context.mode.indent(e.context.state,n,t)},innerMode:function(e){return e.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var m=T.exports;const N=b(m),M=O({__proto__:null,default:N},[m]);export{M as j}; diff --git a/dist-ui/assets/julia-DLqN_-yd.js b/dist-ui/assets/julia-zuaQ18y_.js similarity index 98% rename from dist-ui/assets/julia-DLqN_-yd.js rename to dist-ui/assets/julia-zuaQ18y_.js index 8d5169ae..1dd308c6 100644 --- a/dist-ui/assets/julia-DLqN_-yd.js +++ b/dist-ui/assets/julia-zuaQ18y_.js @@ -1 +1 @@ -import{g as H,c as J}from"./index-CFELAGmQ.js";function K(p,s){for(var u=0;uf[t]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var Q={exports:{}};(function(p,s){(function(u){u(J)})(function(u){u.defineMode("julia",function(f,t){function o(n,e,i){return typeof i=="undefined"&&(i=""),typeof e=="undefined"&&(e="\\b"),new RegExp("^"+i+"(("+n.join(")|(")+"))"+e)}var b="\\\\[0-7]{1,3}",m="\\\\x[A-Fa-f0-9]{1,2}",y="\\\\[abefnrtv0%?'\"\\\\]",x="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",h=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],E=t.operators||o(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),z=t.delimiters||/^[;,()[\]{}]/,_=t.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,A=o([b,m,y,x],"'"),j=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],C=["end","else","elseif","catch","finally"],d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],v=["true","false","nothing","NaN","Inf"];u.registerHelper("hintWords","julia",d.concat(v));var w=o(j),D=o(C),P=o(d),T=o(v),O=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,S=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,B=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,$=o(h,"","@"),G=o(h,"",":");function k(n){return n.nestedArrays>0}function I(n){return n.nestedGenerators>0}function F(n,e){return typeof e=="undefined"&&(e=0),n.scopes.length<=e?null:n.scopes[n.scopes.length-(e+1)]}function a(n,e){if(n.match("#=",!1))return e.tokenize=N,e.tokenize(n,e);var i=e.leavingExpr;if(n.sol()&&(i=!1),e.leavingExpr=!1,i&&n.match(/^'+/))return"operator";if(n.match(/\.{4,}/))return"error";if(n.match(/\.{1,3}/))return"operator";if(n.eatSpace())return null;var r=n.peek();if(r==="#")return n.skipToEnd(),"comment";if(r==="["&&(e.scopes.push("["),e.nestedArrays++),r==="("&&(e.scopes.push("("),e.nestedGenerators++),k(e)&&r==="]"){for(;e.scopes.length&&F(e)!=="[";)e.scopes.pop();e.scopes.pop(),e.nestedArrays--,e.leavingExpr=!0}if(I(e)&&r===")"){for(;e.scopes.length&&F(e)!=="(";)e.scopes.pop();e.scopes.pop(),e.nestedGenerators--,e.leavingExpr=!0}if(k(e)){if(e.lastToken=="end"&&n.match(":"))return"operator";if(n.match("end"))return"number"}var c;if((c=n.match(w,!1))&&e.scopes.push(c[0]),n.match(D,!1)&&e.scopes.pop(),n.match(/^::(?![:\$])/))return e.tokenize=Z,e.tokenize(n,e);if(!i&&(n.match(S)||n.match(G)))return"builtin";if(n.match(E))return"operator";if(n.match(/^\.?\d/,!1)){var U=RegExp(/^im\b/),l=!1;if(n.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(l=!0),n.match(/^0x[0-9a-f_]+/i)&&(l=!0),n.match(/^0b[01_]+/i)&&(l=!0),n.match(/^0o[0-7_]+/i)&&(l=!0),n.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(l=!0),n.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(l=!0),l)return n.match(U),e.leavingExpr=!0,"number"}if(n.match("'"))return e.tokenize=R,e.tokenize(n,e);if(n.match(B))return e.tokenize=q(n.current()),e.tokenize(n,e);if(n.match(O)||n.match($))return"meta";if(n.match(z))return null;if(n.match(P))return"keyword";if(n.match(T))return"builtin";var W=e.isDefinition||e.lastToken=="function"||e.lastToken=="macro"||e.lastToken=="type"||e.lastToken=="struct"||e.lastToken=="immutable";return n.match(_)?W?n.peek()==="."?(e.isDefinition=!0,"variable"):(e.isDefinition=!1,"def"):(e.leavingExpr=!0,"variable"):(n.next(),"error")}function Z(n,e){return n.match(/.*?(?=[,;{}()=\s]|$)/),n.match("{")?e.nestedParameters++:n.match("}")&&e.nestedParameters>0&&e.nestedParameters--,e.nestedParameters>0?n.match(/.*?(?={|})/)||n.next():e.nestedParameters==0&&(e.tokenize=a),"builtin"}function N(n,e){return n.match("#=")&&e.nestedComments++,n.match(/.*?(?=(#=|=#))/)||n.skipToEnd(),n.match("=#")&&(e.nestedComments--,e.nestedComments==0&&(e.tokenize=a)),"comment"}function R(n,e){var i=!1,r;if(n.match(A))i=!0;else if(r=n.match(/\\u([a-f0-9]{1,4})(?=')/i)){var c=parseInt(r[1],16);(c<=55295||c>=57344)&&(i=!0,n.next())}else if(r=n.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var c=parseInt(r[1],16);c<=1114111&&(i=!0,n.next())}return i?(e.leavingExpr=!0,e.tokenize=a,"string"):(n.match(/^[^']+(?=')/)||n.skipToEnd(),n.match("'")&&(e.tokenize=a),"error")}function q(n){n.substr(-3)==='"""'?n='"""':n.substr(-1)==='"'&&(n='"');function e(i,r){if(i.eat("\\"))i.next();else{if(i.match(n))return r.tokenize=a,r.leavingExpr=!0,"string";i.eat(/[`"]/)}return i.eatWhile(/[^\\`"]/),"string"}return e}var M={startState:function(){return{tokenize:a,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(n,e){var i=e.tokenize(n,e),r=n.current();return r&&i&&(e.lastToken=r),i},indent:function(n,e){var i=0;return(e==="]"||e===")"||/^end\b/.test(e)||/^else/.test(e)||/^catch\b/.test(e)||/^elseif\b/.test(e)||/^finally/.test(e))&&(i=-1),(n.scopes.length+i)*f.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return M}),u.defineMIME("text/x-julia","julia")})})();var g=Q.exports;const V=H(g),Y=K({__proto__:null,default:V},[g]);export{Y as j}; +import{g as H,c as J}from"./index-F8NPuhC5.js";function K(p,s){for(var u=0;uf[t]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var Q={exports:{}};(function(p,s){(function(u){u(J)})(function(u){u.defineMode("julia",function(f,t){function o(n,e,i){return typeof i=="undefined"&&(i=""),typeof e=="undefined"&&(e="\\b"),new RegExp("^"+i+"(("+n.join(")|(")+"))"+e)}var b="\\\\[0-7]{1,3}",m="\\\\x[A-Fa-f0-9]{1,2}",y="\\\\[abefnrtv0%?'\"\\\\]",x="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",h=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],E=t.operators||o(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),z=t.delimiters||/^[;,()[\]{}]/,_=t.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,A=o([b,m,y,x],"'"),j=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],C=["end","else","elseif","catch","finally"],d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],v=["true","false","nothing","NaN","Inf"];u.registerHelper("hintWords","julia",d.concat(v));var w=o(j),D=o(C),P=o(d),T=o(v),O=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,S=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,B=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,$=o(h,"","@"),G=o(h,"",":");function k(n){return n.nestedArrays>0}function I(n){return n.nestedGenerators>0}function F(n,e){return typeof e=="undefined"&&(e=0),n.scopes.length<=e?null:n.scopes[n.scopes.length-(e+1)]}function a(n,e){if(n.match("#=",!1))return e.tokenize=N,e.tokenize(n,e);var i=e.leavingExpr;if(n.sol()&&(i=!1),e.leavingExpr=!1,i&&n.match(/^'+/))return"operator";if(n.match(/\.{4,}/))return"error";if(n.match(/\.{1,3}/))return"operator";if(n.eatSpace())return null;var r=n.peek();if(r==="#")return n.skipToEnd(),"comment";if(r==="["&&(e.scopes.push("["),e.nestedArrays++),r==="("&&(e.scopes.push("("),e.nestedGenerators++),k(e)&&r==="]"){for(;e.scopes.length&&F(e)!=="[";)e.scopes.pop();e.scopes.pop(),e.nestedArrays--,e.leavingExpr=!0}if(I(e)&&r===")"){for(;e.scopes.length&&F(e)!=="(";)e.scopes.pop();e.scopes.pop(),e.nestedGenerators--,e.leavingExpr=!0}if(k(e)){if(e.lastToken=="end"&&n.match(":"))return"operator";if(n.match("end"))return"number"}var c;if((c=n.match(w,!1))&&e.scopes.push(c[0]),n.match(D,!1)&&e.scopes.pop(),n.match(/^::(?![:\$])/))return e.tokenize=Z,e.tokenize(n,e);if(!i&&(n.match(S)||n.match(G)))return"builtin";if(n.match(E))return"operator";if(n.match(/^\.?\d/,!1)){var U=RegExp(/^im\b/),l=!1;if(n.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(l=!0),n.match(/^0x[0-9a-f_]+/i)&&(l=!0),n.match(/^0b[01_]+/i)&&(l=!0),n.match(/^0o[0-7_]+/i)&&(l=!0),n.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(l=!0),n.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(l=!0),l)return n.match(U),e.leavingExpr=!0,"number"}if(n.match("'"))return e.tokenize=R,e.tokenize(n,e);if(n.match(B))return e.tokenize=q(n.current()),e.tokenize(n,e);if(n.match(O)||n.match($))return"meta";if(n.match(z))return null;if(n.match(P))return"keyword";if(n.match(T))return"builtin";var W=e.isDefinition||e.lastToken=="function"||e.lastToken=="macro"||e.lastToken=="type"||e.lastToken=="struct"||e.lastToken=="immutable";return n.match(_)?W?n.peek()==="."?(e.isDefinition=!0,"variable"):(e.isDefinition=!1,"def"):(e.leavingExpr=!0,"variable"):(n.next(),"error")}function Z(n,e){return n.match(/.*?(?=[,;{}()=\s]|$)/),n.match("{")?e.nestedParameters++:n.match("}")&&e.nestedParameters>0&&e.nestedParameters--,e.nestedParameters>0?n.match(/.*?(?={|})/)||n.next():e.nestedParameters==0&&(e.tokenize=a),"builtin"}function N(n,e){return n.match("#=")&&e.nestedComments++,n.match(/.*?(?=(#=|=#))/)||n.skipToEnd(),n.match("=#")&&(e.nestedComments--,e.nestedComments==0&&(e.tokenize=a)),"comment"}function R(n,e){var i=!1,r;if(n.match(A))i=!0;else if(r=n.match(/\\u([a-f0-9]{1,4})(?=')/i)){var c=parseInt(r[1],16);(c<=55295||c>=57344)&&(i=!0,n.next())}else if(r=n.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var c=parseInt(r[1],16);c<=1114111&&(i=!0,n.next())}return i?(e.leavingExpr=!0,e.tokenize=a,"string"):(n.match(/^[^']+(?=')/)||n.skipToEnd(),n.match("'")&&(e.tokenize=a),"error")}function q(n){n.substr(-3)==='"""'?n='"""':n.substr(-1)==='"'&&(n='"');function e(i,r){if(i.eat("\\"))i.next();else{if(i.match(n))return r.tokenize=a,r.leavingExpr=!0,"string";i.eat(/[`"]/)}return i.eatWhile(/[^\\`"]/),"string"}return e}var M={startState:function(){return{tokenize:a,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(n,e){var i=e.tokenize(n,e),r=n.current();return r&&i&&(e.lastToken=r),i},indent:function(n,e){var i=0;return(e==="]"||e===")"||/^end\b/.test(e)||/^else/.test(e)||/^catch\b/.test(e)||/^elseif\b/.test(e)||/^finally/.test(e))&&(i=-1),(n.scopes.length+i)*f.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return M}),u.defineMIME("text/x-julia","julia")})})();var g=Q.exports;const V=H(g),Y=K({__proto__:null,default:V},[g]);export{Y as j}; diff --git a/dist-ui/assets/livescript-Vxln-grF.js b/dist-ui/assets/livescript-Cdi6oIhP.js similarity index 98% rename from dist-ui/assets/livescript-Vxln-grF.js rename to dist-ui/assets/livescript-Cdi6oIhP.js index 5c39d1d5..9b88bde3 100644 --- a/dist-ui/assets/livescript-Vxln-grF.js +++ b/dist-ui/assets/livescript-Cdi6oIhP.js @@ -1 +1 @@ -import{g as b,c as E}from"./index-CFELAGmQ.js";function A(l,d){for(var g=0;gn[i]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var q={exports:{}};(function(l,d){(function(g){g(E)})(function(g){g.defineMode("livescript",function(){var w=function(e,t){var a=t.next||"start";if(a){t.next=t.next;var p=s[a];if(p.splice){for(var y=0;y|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+n+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",x={token:"string",regex:".+"},s={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:n+"\\s*:(?![:=])"},{token:"variable",regex:n},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:n,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},x],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},x],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},x],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},x],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},x],words:[{token:"string",regex:".*?\\]>",next:"key"},x]};for(var f in s){var c=s[f];if(c.splice)for(var k=0,m=c.length;kn[i]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var q={exports:{}};(function(l,d){(function(g){g(E)})(function(g){g.defineMode("livescript",function(){var w=function(e,t){var a=t.next||"start";if(a){t.next=t.next;var p=s[a];if(p.splice){for(var y=0;y|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+n+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",x={token:"string",regex:".+"},s={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:n+"\\s*:(?![:=])"},{token:"variable",regex:n},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:n,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},x],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},x],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},x],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},x],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},x],words:[{token:"string",regex:".*?\\]>",next:"key"},x]};for(var f in s){var c=s[f];if(c.splice)for(var k=0,m=c.length;ko[l]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(c,f){(function(a){a(D)})(function(a){a.defineMode("lua",function(o,l){var u=o.indentUnit;function b(e){return new RegExp("^(?:"+e.join("|")+")","i")}function s(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var v=s(l.specials||[]),k=s(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),x=s(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),w=s(["function","if","repeat","do","\\(","{"]),y=s(["end","until","\\)","}"]),E=b(["end","until","\\)","}","else","elseif"]);function p(e){for(var n=0;e.eat("=");)++n;return e.eat("["),n}function g(e,n){var t=e.next();return t=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(n.cur=m(p(e),"comment"))(e,n):(e.skipToEnd(),"comment"):t=='"'||t=="'"?(n.cur=_(t))(e,n):t=="["&&/[\[=]/.test(e.peek())?(n.cur=m(p(e),"string"))(e,n):/\d/.test(t)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(t)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function m(e,n){return function(t,r){for(var i=null,d;(d=t.next())!=null;)if(i==null)d=="]"&&(i=0);else if(d=="=")++i;else if(d=="]"&&i==e){r.cur=g;break}else i=null;return n}}function _(e){return function(n,t){for(var r=!1,i;(i=n.next())!=null&&!(i==e&&!r);)r=!r&&i=="\\";return r||(t.cur=g),"string"}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:g}},token:function(e,n){if(e.eatSpace())return null;var t=n.cur(e,n),r=e.current();return t=="variable"&&(x.test(r)?t="keyword":k.test(r)?t="builtin":v.test(r)&&(t="variable-2")),t!="comment"&&t!="string"&&(w.test(r)?++n.indentDepth:y.test(r)&&--n.indentDepth),t},indent:function(e,n){var t=E.test(n);return e.basecol+u*(e.indentDepth-(t?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),a.defineMIME("text/x-lua","lua")})})();var h=S.exports;const R=j(h),T=O({__proto__:null,default:R},[h]);export{T as l}; +import{g as j,c as D}from"./index-F8NPuhC5.js";function O(c,f){for(var a=0;ao[l]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(c,f){(function(a){a(D)})(function(a){a.defineMode("lua",function(o,l){var u=o.indentUnit;function b(e){return new RegExp("^(?:"+e.join("|")+")","i")}function s(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var v=s(l.specials||[]),k=s(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),x=s(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),w=s(["function","if","repeat","do","\\(","{"]),y=s(["end","until","\\)","}"]),E=b(["end","until","\\)","}","else","elseif"]);function p(e){for(var n=0;e.eat("=");)++n;return e.eat("["),n}function g(e,n){var t=e.next();return t=="-"&&e.eat("-")?e.eat("[")&&e.eat("[")?(n.cur=m(p(e),"comment"))(e,n):(e.skipToEnd(),"comment"):t=='"'||t=="'"?(n.cur=_(t))(e,n):t=="["&&/[\[=]/.test(e.peek())?(n.cur=m(p(e),"string"))(e,n):/\d/.test(t)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(t)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function m(e,n){return function(t,r){for(var i=null,d;(d=t.next())!=null;)if(i==null)d=="]"&&(i=0);else if(d=="=")++i;else if(d=="]"&&i==e){r.cur=g;break}else i=null;return n}}function _(e){return function(n,t){for(var r=!1,i;(i=n.next())!=null&&!(i==e&&!r);)r=!r&&i=="\\";return r||(t.cur=g),"string"}}return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:g}},token:function(e,n){if(e.eatSpace())return null;var t=n.cur(e,n),r=e.current();return t=="variable"&&(x.test(r)?t="keyword":k.test(r)?t="builtin":v.test(r)&&(t="variable-2")),t!="comment"&&t!="string"&&(w.test(r)?++n.indentDepth:y.test(r)&&--n.indentDepth),t},indent:function(e,n){var t=E.test(n);return e.basecol+u*(e.indentDepth-(t?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),a.defineMIME("text/x-lua","lua")})})();var h=S.exports;const R=j(h),T=O({__proto__:null,default:R},[h]);export{T as l}; diff --git a/dist-ui/assets/markdown-9_ZwbeT-.js b/dist-ui/assets/markdown-CYPtsbJZ.js similarity index 99% rename from dist-ui/assets/markdown-9_ZwbeT-.js rename to dist-ui/assets/markdown-CYPtsbJZ.js index 3e8baa40..68f85638 100644 --- a/dist-ui/assets/markdown-9_ZwbeT-.js +++ b/dist-ui/assets/markdown-CYPtsbJZ.js @@ -1 +1 @@ -import{c as fi,r as oi,d as hi}from"./index-CFELAGmQ.js";var O={exports:{}},z;function ki(){return z||(z=1,function(ci,ti){(function(c){c(fi,oi(),hi())})(function(c){c.defineMode("markdown",function(I,u){var k=c.getMode(I,"text/html"),H=k.name=="null";function U(n){if(c.findModeByName){var i=c.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var l=c.getMode(I,n);return l.name=="null"?null:l}u.highlightFormatting===void 0&&(u.highlightFormatting=!1),u.maxBlockquoteDepth===void 0&&(u.maxBlockquoteDepth=0),u.taskLists===void 0&&(u.taskLists=!1),u.strikethrough===void 0&&(u.strikethrough=!1),u.emoji===void 0&&(u.emoji=!1),u.fencedCodeBlockHighlighting===void 0&&(u.fencedCodeBlockHighlighting=!0),u.fencedCodeBlockDefaultMode===void 0&&(u.fencedCodeBlockDefaultMode="text/plain"),u.xml===void 0&&(u.xml=!0),u.tokenTypeOverrides===void 0&&(u.tokenTypeOverrides={});var f={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var B in f)f.hasOwnProperty(B)&&u.tokenTypeOverrides[B]&&(f[B]=u.tokenTypeOverrides[B]);var W=/^([*\-_])(?:\s*\1){2,}\s*$/,P=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,R=/^\[(x| )\](?=\s)/i,X=u.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,G=/^ {0,3}(?:\={1,}|-{2,})\s*$/,J=/^[^#!\[\]*_\\<>` "'(~:]+/,K=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Q=/^\s*\[[^\]]+?\]:.*$/,F=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,V=" ";function b(n,i,l){return i.f=i.inline=l,l(n,i)}function y(n,i,l){return i.f=i.block=l,l(n,i)}function Y(n){return!n||!/\S/.test(n.string)}function j(n){if(n.linkTitle=!1,n.linkHref=!1,n.linkText=!1,n.em=!1,n.strong=!1,n.strikethrough=!1,n.quote=0,n.indentedCode=!1,n.f==S){var i=H;if(!i){var l=c.innerMode(k,n.htmlState);i=l.mode.name=="xml"&&l.state.tagStart===null&&!l.state.context&&l.state.tokenize.isInText}i&&(n.f=d,n.block=A,n.htmlState=null)}return n.trailingSpace=0,n.trailingSpaceNewLine=!1,n.prevLine=n.thisLine,n.thisLine={stream:null},null}function A(n,i){var l=n.column()===i.indentation,o=Y(i.prevLine.stream),r=i.indentedCode,g=i.prevLine.hr,L=i.list!==!1,a=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var D=i.indentation;if(i.indentationDiff===null&&(i.indentationDiff=i.indentation,L)){for(i.list=null;D=4&&(r||i.prevLine.fencedCodeEnd||i.prevLine.header||o))return n.skipToEnd(),i.indentedCode=!0,f.code;if(n.eatSpace())return null;if(l&&i.indentation<=a&&(t=n.match(X))&&t[1].length<=6)return i.quote=0,i.header=t[1].length,i.thisLine.header=!0,u.highlightFormatting&&(i.formatting="header"),i.f=i.inline,e(i);if(i.indentation<=a&&n.eat(">"))return i.quote=l?1:i.quote+1,u.highlightFormatting&&(i.formatting="quote"),n.eatSpace(),e(i);if(!h&&!i.setext&&l&&i.indentation<=a&&(t=n.match(P))){var T=t[1]?"ol":"ul";return i.indentation=D+n.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,u.taskLists&&n.match(R,!1)&&(i.taskList=!0),i.f=i.inline,u.highlightFormatting&&(i.formatting=["list","list-"+T]),e(i)}else{if(l&&i.indentation<=a&&(t=n.match(K,!0)))return i.quote=0,i.fencedEndRE=new RegExp(t[1]+"+ *$"),i.localMode=u.fencedCodeBlockHighlighting&&U(t[2]||u.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=c.startState(i.localMode)),i.f=i.block=Z,u.highlightFormatting&&(i.formatting="code-block"),i.code=-1,e(i);if(i.setext||(!p||!L)&&!i.quote&&i.list===!1&&!i.code&&!h&&!Q.test(n.string)&&(t=n.lookAhead(1))&&(t=t.match(G)))return i.setext?(i.header=i.setext,i.setext=0,n.skipToEnd(),u.highlightFormatting&&(i.formatting="header")):(i.header=t[0].charAt(0)=="="?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,e(i);if(h)return n.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,f.hr;if(n.peek()==="[")return b(n,i,ni)}return b(n,i,i.inline)}function S(n,i){var l=k.token(n,i.htmlState);if(!H){var o=c.innerMode(k,i.htmlState);(o.mode.name=="xml"&&o.state.tagStart===null&&!o.state.context&&o.state.tokenize.isInText||i.md_inside&&n.current().indexOf(">")>-1)&&(i.f=d,i.block=A,i.htmlState=null)}return l}function Z(n,i){var l=i.listStack[i.listStack.length-1]||0,o=i.indentation=n.quote?i.push(f.formatting+"-"+n.formatting[l]+"-"+n.quote):i.push("error"))}if(n.taskOpen)return i.push("meta"),i.length?i.join(" "):null;if(n.taskClosed)return i.push("property"),i.length?i.join(" "):null;if(n.linkHref?i.push(f.linkHref,"url"):(n.strong&&i.push(f.strong),n.em&&i.push(f.em),n.strikethrough&&i.push(f.strikethrough),n.emoji&&i.push(f.emoji),n.linkText&&i.push(f.linkText),n.code&&i.push(f.code),n.image&&i.push(f.image),n.imageAltText&&i.push(f.imageAltText,"link"),n.imageMarker&&i.push(f.imageMarker)),n.header&&i.push(f.header,f.header+"-"+n.header),n.quote&&(i.push(f.quote),!u.maxBlockquoteDepth||u.maxBlockquoteDepth>=n.quote?i.push(f.quote+"-"+n.quote):i.push(f.quote+"-"+u.maxBlockquoteDepth)),n.list!==!1){var o=(n.listStack.length-1)%3;o?o===1?i.push(f.list2):i.push(f.list3):i.push(f.list1)}return n.trailingSpaceNewLine?i.push("trailing-space-new-line"):n.trailingSpace&&i.push("trailing-space-"+(n.trailingSpace%2?"a":"b")),i.length?i.join(" "):null}function C(n,i){if(n.match(J,!0))return e(i)}function d(n,i){var l=i.text(n,i);if(typeof l!="undefined")return l;if(i.list)return i.list=null,e(i);if(i.taskList){var o=n.match(R,!0)[1]===" ";return o?i.taskOpen=!0:i.taskClosed=!0,u.highlightFormatting&&(i.formatting="task"),i.taskList=!1,e(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&n.match(/^#+$/,!0))return u.highlightFormatting&&(i.formatting="header"),e(i);var r=n.next();if(i.linkTitle){i.linkTitle=!1;var g=r;r==="("&&(g=")"),g=(g+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var L="^\\s*(?:[^"+g+"\\\\]+|\\\\\\\\|\\\\.)"+g;if(n.match(new RegExp(L),!0))return f.linkHref}if(r==="`"){var a=i.formatting;u.highlightFormatting&&(i.formatting="code"),n.eatWhile("`");var D=n.current().length;if(i.code==0&&(!i.quote||D==1))return i.code=D,e(i);if(D==i.code){var p=e(i);return i.code=0,p}else return i.formatting=a,e(i)}else if(i.code)return e(i);if(r==="\\"&&(n.next(),u.highlightFormatting)){var h=e(i),t=f.formatting+"-escape";return h?h+" "+t:t}if(r==="!"&&n.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,u.highlightFormatting&&(i.formatting="image"),e(i);if(r==="["&&i.imageMarker&&n.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,u.highlightFormatting&&(i.formatting="image"),e(i);if(r==="]"&&i.imageAltText){u.highlightFormatting&&(i.formatting="image");var h=e(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=N,h}if(r==="["&&!i.image)return i.linkText&&n.match(/^.*?\]/)||(i.linkText=!0,u.highlightFormatting&&(i.formatting="link")),e(i);if(r==="]"&&i.linkText){u.highlightFormatting&&(i.formatting="link");var h=e(i);return i.linkText=!1,i.inline=i.f=n.match(/\(.*?\)| ?\[.*?\]/,!1)?N:d,h}if(r==="<"&&n.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=_,u.highlightFormatting&&(i.formatting="link");var h=e(i);return h?h+=" ":h="",h+f.linkInline}if(r==="<"&&n.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=_,u.highlightFormatting&&(i.formatting="link");var h=e(i);return h?h+=" ":h="",h+f.linkEmail}if(u.xml&&r==="<"&&n.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var T=n.string.indexOf(">",n.pos);if(T!=-1){var ei=n.string.substring(n.start,T);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ei)&&(i.md_inside=!0)}return n.backUp(1),i.htmlState=c.startState(k),y(n,i,S)}if(u.xml&&r==="<"&&n.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if(r==="*"||r==="_"){for(var q=1,m=n.pos==1?" ":n.string.charAt(n.pos-2);q<3&&n.eat(r);)q++;var E=n.peek()||" ",w=!/\s/.test(E)&&(!F.test(E)||/\s/.test(m)||F.test(m)),M=!/\s/.test(m)&&(!F.test(m)||/\s/.test(E)||F.test(E)),x=null,v=null;if(q%2&&(!i.em&&w&&(r==="*"||!M||F.test(m))?x=!0:i.em==r&&M&&(r==="*"||!w||F.test(E))&&(x=!1)),q>1&&(!i.strong&&w&&(r==="*"||!M||F.test(m))?v=!0:i.strong==r&&M&&(r==="*"||!w||F.test(E))&&(v=!1)),v!=null||x!=null){u.highlightFormatting&&(i.formatting=x==null?"strong":v==null?"em":"strong em"),x===!0&&(i.em=r),v===!0&&(i.strong=r);var p=e(i);return x===!1&&(i.em=!1),v===!1&&(i.strong=!1),p}}else if(r===" "&&(n.eat("*")||n.eat("_"))){if(n.peek()===" ")return e(i);n.backUp(1)}if(u.strikethrough){if(r==="~"&&n.eatWhile(r)){if(i.strikethrough){u.highlightFormatting&&(i.formatting="strikethrough");var p=e(i);return i.strikethrough=!1,p}else if(n.match(/^[^\s]/,!1))return i.strikethrough=!0,u.highlightFormatting&&(i.formatting="strikethrough"),e(i)}else if(r===" "&&n.match("~~",!0)){if(n.peek()===" ")return e(i);n.backUp(2)}}if(u.emoji&&r===":"&&n.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,u.highlightFormatting&&(i.formatting="emoji");var ri=e(i);return i.emoji=!1,ri}return r===" "&&(n.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),e(i)}function _(n,i){var l=n.next();if(l===">"){i.f=i.inline=d,u.highlightFormatting&&(i.formatting="link");var o=e(i);return o?o+=" ":o="",o+f.linkInline}return n.match(/^[^>]+/,!0),f.linkInline}function N(n,i){if(n.eatSpace())return null;var l=n.next();return l==="("||l==="["?(i.f=i.inline=ii(l==="("?")":"]"),u.highlightFormatting&&(i.formatting="link-string"),i.linkHref=!0,e(i)):"error"}var s={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ii(n){return function(i,l){var o=i.next();if(o===n){l.f=l.inline=d,u.highlightFormatting&&(l.formatting="link-string");var r=e(l);return l.linkHref=!1,r}return i.match(s[n]),l.linkHref=!0,e(l)}}function ni(n,i){return n.match(/^([^\]\\]|\\.)*\]:/,!1)?(i.f=ui,n.next(),u.highlightFormatting&&(i.formatting="link"),i.linkText=!0,e(i)):b(n,i,d)}function ui(n,i){if(n.match("]:",!0)){i.f=i.inline=li,u.highlightFormatting&&(i.formatting="link");var l=e(i);return i.linkText=!1,l}return n.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function li(n,i){return n.eatSpace()?null:(n.match(/^[^\s]+/,!0),n.peek()===void 0?i.linkTitle=!0:n.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),i.f=i.inline=d,f.linkHref+" url")}var $={startState:function(){return{f:A,prevLine:{stream:null},thisLine:{stream:null},block:A,htmlState:null,indentation:0,inline:d,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(n){return{f:n.f,prevLine:n.prevLine,thisLine:n.thisLine,block:n.block,htmlState:n.htmlState&&c.copyState(k,n.htmlState),indentation:n.indentation,localMode:n.localMode,localState:n.localMode?c.copyState(n.localMode,n.localState):null,inline:n.inline,text:n.text,formatting:!1,linkText:n.linkText,linkTitle:n.linkTitle,linkHref:n.linkHref,code:n.code,em:n.em,strong:n.strong,strikethrough:n.strikethrough,emoji:n.emoji,header:n.header,setext:n.setext,hr:n.hr,taskList:n.taskList,list:n.list,listStack:n.listStack.slice(0),quote:n.quote,indentedCode:n.indentedCode,trailingSpace:n.trailingSpace,trailingSpaceNewLine:n.trailingSpaceNewLine,md_inside:n.md_inside,fencedEndRE:n.fencedEndRE}},token:function(n,i){if(i.formatting=!1,n!=i.thisLine.stream){if(i.header=0,i.hr=!1,n.match(/^\s*$/,!0))return j(i),null;if(i.prevLine=i.thisLine,i.thisLine={stream:n},i.taskList=!1,i.trailingSpace=0,i.trailingSpaceNewLine=!1,!i.localState&&(i.f=i.block,i.f!=S)){var l=n.match(/^\s*/,!0)[0].replace(/\t/g,V).length;if(i.indentation=l,i.indentationDiff=null,l>0)return null}}return i.f(n,i)},innerMode:function(n){return n.block==S?{state:n.htmlState,mode:k}:n.localState?{state:n.localState,mode:n.localMode}:{state:n,mode:$}},indent:function(n,i,l){return n.block==S&&k.indent?k.indent(n.htmlState,i,l):n.localState&&n.localMode.indent?n.localMode.indent(n.localState,i,l):c.Pass},blankLine:j,getType:e,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return $},"xml"),c.defineMIME("text/markdown","markdown"),c.defineMIME("text/x-markdown","markdown")})}()),O.exports}export{ki as r}; +import{c as fi,r as oi,d as hi}from"./index-F8NPuhC5.js";var O={exports:{}},z;function ki(){return z||(z=1,function(ci,ti){(function(c){c(fi,oi(),hi())})(function(c){c.defineMode("markdown",function(I,u){var k=c.getMode(I,"text/html"),H=k.name=="null";function U(n){if(c.findModeByName){var i=c.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var l=c.getMode(I,n);return l.name=="null"?null:l}u.highlightFormatting===void 0&&(u.highlightFormatting=!1),u.maxBlockquoteDepth===void 0&&(u.maxBlockquoteDepth=0),u.taskLists===void 0&&(u.taskLists=!1),u.strikethrough===void 0&&(u.strikethrough=!1),u.emoji===void 0&&(u.emoji=!1),u.fencedCodeBlockHighlighting===void 0&&(u.fencedCodeBlockHighlighting=!0),u.fencedCodeBlockDefaultMode===void 0&&(u.fencedCodeBlockDefaultMode="text/plain"),u.xml===void 0&&(u.xml=!0),u.tokenTypeOverrides===void 0&&(u.tokenTypeOverrides={});var f={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var B in f)f.hasOwnProperty(B)&&u.tokenTypeOverrides[B]&&(f[B]=u.tokenTypeOverrides[B]);var W=/^([*\-_])(?:\s*\1){2,}\s*$/,P=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,R=/^\[(x| )\](?=\s)/i,X=u.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,G=/^ {0,3}(?:\={1,}|-{2,})\s*$/,J=/^[^#!\[\]*_\\<>` "'(~:]+/,K=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Q=/^\s*\[[^\]]+?\]:.*$/,F=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,V=" ";function b(n,i,l){return i.f=i.inline=l,l(n,i)}function y(n,i,l){return i.f=i.block=l,l(n,i)}function Y(n){return!n||!/\S/.test(n.string)}function j(n){if(n.linkTitle=!1,n.linkHref=!1,n.linkText=!1,n.em=!1,n.strong=!1,n.strikethrough=!1,n.quote=0,n.indentedCode=!1,n.f==S){var i=H;if(!i){var l=c.innerMode(k,n.htmlState);i=l.mode.name=="xml"&&l.state.tagStart===null&&!l.state.context&&l.state.tokenize.isInText}i&&(n.f=d,n.block=A,n.htmlState=null)}return n.trailingSpace=0,n.trailingSpaceNewLine=!1,n.prevLine=n.thisLine,n.thisLine={stream:null},null}function A(n,i){var l=n.column()===i.indentation,o=Y(i.prevLine.stream),r=i.indentedCode,g=i.prevLine.hr,L=i.list!==!1,a=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var D=i.indentation;if(i.indentationDiff===null&&(i.indentationDiff=i.indentation,L)){for(i.list=null;D=4&&(r||i.prevLine.fencedCodeEnd||i.prevLine.header||o))return n.skipToEnd(),i.indentedCode=!0,f.code;if(n.eatSpace())return null;if(l&&i.indentation<=a&&(t=n.match(X))&&t[1].length<=6)return i.quote=0,i.header=t[1].length,i.thisLine.header=!0,u.highlightFormatting&&(i.formatting="header"),i.f=i.inline,e(i);if(i.indentation<=a&&n.eat(">"))return i.quote=l?1:i.quote+1,u.highlightFormatting&&(i.formatting="quote"),n.eatSpace(),e(i);if(!h&&!i.setext&&l&&i.indentation<=a&&(t=n.match(P))){var T=t[1]?"ol":"ul";return i.indentation=D+n.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,u.taskLists&&n.match(R,!1)&&(i.taskList=!0),i.f=i.inline,u.highlightFormatting&&(i.formatting=["list","list-"+T]),e(i)}else{if(l&&i.indentation<=a&&(t=n.match(K,!0)))return i.quote=0,i.fencedEndRE=new RegExp(t[1]+"+ *$"),i.localMode=u.fencedCodeBlockHighlighting&&U(t[2]||u.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=c.startState(i.localMode)),i.f=i.block=Z,u.highlightFormatting&&(i.formatting="code-block"),i.code=-1,e(i);if(i.setext||(!p||!L)&&!i.quote&&i.list===!1&&!i.code&&!h&&!Q.test(n.string)&&(t=n.lookAhead(1))&&(t=t.match(G)))return i.setext?(i.header=i.setext,i.setext=0,n.skipToEnd(),u.highlightFormatting&&(i.formatting="header")):(i.header=t[0].charAt(0)=="="?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,e(i);if(h)return n.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,f.hr;if(n.peek()==="[")return b(n,i,ni)}return b(n,i,i.inline)}function S(n,i){var l=k.token(n,i.htmlState);if(!H){var o=c.innerMode(k,i.htmlState);(o.mode.name=="xml"&&o.state.tagStart===null&&!o.state.context&&o.state.tokenize.isInText||i.md_inside&&n.current().indexOf(">")>-1)&&(i.f=d,i.block=A,i.htmlState=null)}return l}function Z(n,i){var l=i.listStack[i.listStack.length-1]||0,o=i.indentation=n.quote?i.push(f.formatting+"-"+n.formatting[l]+"-"+n.quote):i.push("error"))}if(n.taskOpen)return i.push("meta"),i.length?i.join(" "):null;if(n.taskClosed)return i.push("property"),i.length?i.join(" "):null;if(n.linkHref?i.push(f.linkHref,"url"):(n.strong&&i.push(f.strong),n.em&&i.push(f.em),n.strikethrough&&i.push(f.strikethrough),n.emoji&&i.push(f.emoji),n.linkText&&i.push(f.linkText),n.code&&i.push(f.code),n.image&&i.push(f.image),n.imageAltText&&i.push(f.imageAltText,"link"),n.imageMarker&&i.push(f.imageMarker)),n.header&&i.push(f.header,f.header+"-"+n.header),n.quote&&(i.push(f.quote),!u.maxBlockquoteDepth||u.maxBlockquoteDepth>=n.quote?i.push(f.quote+"-"+n.quote):i.push(f.quote+"-"+u.maxBlockquoteDepth)),n.list!==!1){var o=(n.listStack.length-1)%3;o?o===1?i.push(f.list2):i.push(f.list3):i.push(f.list1)}return n.trailingSpaceNewLine?i.push("trailing-space-new-line"):n.trailingSpace&&i.push("trailing-space-"+(n.trailingSpace%2?"a":"b")),i.length?i.join(" "):null}function C(n,i){if(n.match(J,!0))return e(i)}function d(n,i){var l=i.text(n,i);if(typeof l!="undefined")return l;if(i.list)return i.list=null,e(i);if(i.taskList){var o=n.match(R,!0)[1]===" ";return o?i.taskOpen=!0:i.taskClosed=!0,u.highlightFormatting&&(i.formatting="task"),i.taskList=!1,e(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&n.match(/^#+$/,!0))return u.highlightFormatting&&(i.formatting="header"),e(i);var r=n.next();if(i.linkTitle){i.linkTitle=!1;var g=r;r==="("&&(g=")"),g=(g+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var L="^\\s*(?:[^"+g+"\\\\]+|\\\\\\\\|\\\\.)"+g;if(n.match(new RegExp(L),!0))return f.linkHref}if(r==="`"){var a=i.formatting;u.highlightFormatting&&(i.formatting="code"),n.eatWhile("`");var D=n.current().length;if(i.code==0&&(!i.quote||D==1))return i.code=D,e(i);if(D==i.code){var p=e(i);return i.code=0,p}else return i.formatting=a,e(i)}else if(i.code)return e(i);if(r==="\\"&&(n.next(),u.highlightFormatting)){var h=e(i),t=f.formatting+"-escape";return h?h+" "+t:t}if(r==="!"&&n.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,u.highlightFormatting&&(i.formatting="image"),e(i);if(r==="["&&i.imageMarker&&n.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,u.highlightFormatting&&(i.formatting="image"),e(i);if(r==="]"&&i.imageAltText){u.highlightFormatting&&(i.formatting="image");var h=e(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=N,h}if(r==="["&&!i.image)return i.linkText&&n.match(/^.*?\]/)||(i.linkText=!0,u.highlightFormatting&&(i.formatting="link")),e(i);if(r==="]"&&i.linkText){u.highlightFormatting&&(i.formatting="link");var h=e(i);return i.linkText=!1,i.inline=i.f=n.match(/\(.*?\)| ?\[.*?\]/,!1)?N:d,h}if(r==="<"&&n.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=_,u.highlightFormatting&&(i.formatting="link");var h=e(i);return h?h+=" ":h="",h+f.linkInline}if(r==="<"&&n.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=_,u.highlightFormatting&&(i.formatting="link");var h=e(i);return h?h+=" ":h="",h+f.linkEmail}if(u.xml&&r==="<"&&n.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var T=n.string.indexOf(">",n.pos);if(T!=-1){var ei=n.string.substring(n.start,T);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ei)&&(i.md_inside=!0)}return n.backUp(1),i.htmlState=c.startState(k),y(n,i,S)}if(u.xml&&r==="<"&&n.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if(r==="*"||r==="_"){for(var q=1,m=n.pos==1?" ":n.string.charAt(n.pos-2);q<3&&n.eat(r);)q++;var E=n.peek()||" ",w=!/\s/.test(E)&&(!F.test(E)||/\s/.test(m)||F.test(m)),M=!/\s/.test(m)&&(!F.test(m)||/\s/.test(E)||F.test(E)),x=null,v=null;if(q%2&&(!i.em&&w&&(r==="*"||!M||F.test(m))?x=!0:i.em==r&&M&&(r==="*"||!w||F.test(E))&&(x=!1)),q>1&&(!i.strong&&w&&(r==="*"||!M||F.test(m))?v=!0:i.strong==r&&M&&(r==="*"||!w||F.test(E))&&(v=!1)),v!=null||x!=null){u.highlightFormatting&&(i.formatting=x==null?"strong":v==null?"em":"strong em"),x===!0&&(i.em=r),v===!0&&(i.strong=r);var p=e(i);return x===!1&&(i.em=!1),v===!1&&(i.strong=!1),p}}else if(r===" "&&(n.eat("*")||n.eat("_"))){if(n.peek()===" ")return e(i);n.backUp(1)}if(u.strikethrough){if(r==="~"&&n.eatWhile(r)){if(i.strikethrough){u.highlightFormatting&&(i.formatting="strikethrough");var p=e(i);return i.strikethrough=!1,p}else if(n.match(/^[^\s]/,!1))return i.strikethrough=!0,u.highlightFormatting&&(i.formatting="strikethrough"),e(i)}else if(r===" "&&n.match("~~",!0)){if(n.peek()===" ")return e(i);n.backUp(2)}}if(u.emoji&&r===":"&&n.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,u.highlightFormatting&&(i.formatting="emoji");var ri=e(i);return i.emoji=!1,ri}return r===" "&&(n.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),e(i)}function _(n,i){var l=n.next();if(l===">"){i.f=i.inline=d,u.highlightFormatting&&(i.formatting="link");var o=e(i);return o?o+=" ":o="",o+f.linkInline}return n.match(/^[^>]+/,!0),f.linkInline}function N(n,i){if(n.eatSpace())return null;var l=n.next();return l==="("||l==="["?(i.f=i.inline=ii(l==="("?")":"]"),u.highlightFormatting&&(i.formatting="link-string"),i.linkHref=!0,e(i)):"error"}var s={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ii(n){return function(i,l){var o=i.next();if(o===n){l.f=l.inline=d,u.highlightFormatting&&(l.formatting="link-string");var r=e(l);return l.linkHref=!1,r}return i.match(s[n]),l.linkHref=!0,e(l)}}function ni(n,i){return n.match(/^([^\]\\]|\\.)*\]:/,!1)?(i.f=ui,n.next(),u.highlightFormatting&&(i.formatting="link"),i.linkText=!0,e(i)):b(n,i,d)}function ui(n,i){if(n.match("]:",!0)){i.f=i.inline=li,u.highlightFormatting&&(i.formatting="link");var l=e(i);return i.linkText=!1,l}return n.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function li(n,i){return n.eatSpace()?null:(n.match(/^[^\s]+/,!0),n.peek()===void 0?i.linkTitle=!0:n.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),i.f=i.inline=d,f.linkHref+" url")}var $={startState:function(){return{f:A,prevLine:{stream:null},thisLine:{stream:null},block:A,htmlState:null,indentation:0,inline:d,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(n){return{f:n.f,prevLine:n.prevLine,thisLine:n.thisLine,block:n.block,htmlState:n.htmlState&&c.copyState(k,n.htmlState),indentation:n.indentation,localMode:n.localMode,localState:n.localMode?c.copyState(n.localMode,n.localState):null,inline:n.inline,text:n.text,formatting:!1,linkText:n.linkText,linkTitle:n.linkTitle,linkHref:n.linkHref,code:n.code,em:n.em,strong:n.strong,strikethrough:n.strikethrough,emoji:n.emoji,header:n.header,setext:n.setext,hr:n.hr,taskList:n.taskList,list:n.list,listStack:n.listStack.slice(0),quote:n.quote,indentedCode:n.indentedCode,trailingSpace:n.trailingSpace,trailingSpaceNewLine:n.trailingSpaceNewLine,md_inside:n.md_inside,fencedEndRE:n.fencedEndRE}},token:function(n,i){if(i.formatting=!1,n!=i.thisLine.stream){if(i.header=0,i.hr=!1,n.match(/^\s*$/,!0))return j(i),null;if(i.prevLine=i.thisLine,i.thisLine={stream:n},i.taskList=!1,i.trailingSpace=0,i.trailingSpaceNewLine=!1,!i.localState&&(i.f=i.block,i.f!=S)){var l=n.match(/^\s*/,!0)[0].replace(/\t/g,V).length;if(i.indentation=l,i.indentationDiff=null,l>0)return null}}return i.f(n,i)},innerMode:function(n){return n.block==S?{state:n.htmlState,mode:k}:n.localState?{state:n.localState,mode:n.localMode}:{state:n,mode:$}},indent:function(n,i,l){return n.block==S&&k.indent?k.indent(n.htmlState,i,l):n.localState&&n.localMode.indent?n.localMode.indent(n.localState,i,l):c.Pass},blankLine:j,getType:e,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return $},"xml"),c.defineMIME("text/markdown","markdown"),c.defineMIME("text/x-markdown","markdown")})}()),O.exports}export{ki as r}; diff --git a/dist-ui/assets/markdown-UVY52jYi.js b/dist-ui/assets/markdown-DpnrNzok.js similarity index 74% rename from dist-ui/assets/markdown-UVY52jYi.js rename to dist-ui/assets/markdown-DpnrNzok.js index 960770da..4570b7db 100644 --- a/dist-ui/assets/markdown-UVY52jYi.js +++ b/dist-ui/assets/markdown-DpnrNzok.js @@ -1 +1 @@ -import{g as s}from"./index-CFELAGmQ.js";import{r as i}from"./markdown-9_ZwbeT-.js";function c(t,a){for(var o=0;or[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),d=c({__proto__:null,default:m},[f]);export{d as m}; +import{g as s}from"./index-F8NPuhC5.js";import{r as i}from"./markdown-CYPtsbJZ.js";function c(t,a){for(var o=0;or[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),d=c({__proto__:null,default:m},[f]);export{d as m}; diff --git a/dist-ui/assets/mathematica-DZ9dm3LF.js b/dist-ui/assets/mathematica-hWuwYCTp.js similarity index 97% rename from dist-ui/assets/mathematica-DZ9dm3LF.js rename to dist-ui/assets/mathematica-hWuwYCTp.js index df80fbc4..fe3c230a 100644 --- a/dist-ui/assets/mathematica-DZ9dm3LF.js +++ b/dist-ui/assets/mathematica-hWuwYCTp.js @@ -1 +1 @@ -import{g as k,c as x}from"./index-CFELAGmQ.js";function s(u,l){for(var a=0;ai[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(u,l){(function(a){a(x)})(function(a){a.defineMode("mathematica",function(i,o){var f="[a-zA-Z\\$][a-zA-Z0-9\\$]*",A="(?:\\d+)",z="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",$="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",p="(?:`(?:`?"+z+")?)",Z=new RegExp("(?:"+A+"(?:\\^\\^"+$+p+"?(?:\\*\\^[+-]?\\d+)?))"),h=new RegExp("(?:"+z+p+"?(?:\\*\\^[+-]?\\d+)?)"),d=new RegExp("(?:`?)(?:"+f+")(?:`(?:"+f+"))*(?:`?)");function m(e,t){var r;return r=e.next(),r==='"'?(t.tokenize=b,t.tokenize(e,t)):r==="("&&e.eat("*")?(t.commentLevel++,t.tokenize=g,t.tokenize(e,t)):(e.backUp(1),e.match(Z,!0,!1)||e.match(h,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(d,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function b(e,t){for(var r,n=!1,c=!1;(r=e.next())!=null;){if(r==='"'&&!c){n=!0;break}c=!c&&r==="\\"}return n&&!c&&(t.tokenize=m),"string"}function g(e,t){for(var r,n;t.commentLevel>0&&(n=e.next())!=null;)r==="("&&n==="*"&&t.commentLevel++,r==="*"&&n===")"&&t.commentLevel--,r=n;return t.commentLevel<=0&&(t.tokenize=m),"comment"}return{startState:function(){return{tokenize:m,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}}),a.defineMIME("text/x-mathematica",{name:"mathematica"})})})();var v=w.exports;const _=k(v),E=s({__proto__:null,default:_},[v]);export{E as m}; +import{g as k,c as x}from"./index-F8NPuhC5.js";function s(u,l){for(var a=0;ai[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(u,l){(function(a){a(x)})(function(a){a.defineMode("mathematica",function(i,o){var f="[a-zA-Z\\$][a-zA-Z0-9\\$]*",A="(?:\\d+)",z="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",$="(?:\\.\\w+|\\w+\\.\\w*|\\w+)",p="(?:`(?:`?"+z+")?)",Z=new RegExp("(?:"+A+"(?:\\^\\^"+$+p+"?(?:\\*\\^[+-]?\\d+)?))"),h=new RegExp("(?:"+z+p+"?(?:\\*\\^[+-]?\\d+)?)"),d=new RegExp("(?:`?)(?:"+f+")(?:`(?:"+f+"))*(?:`?)");function m(e,t){var r;return r=e.next(),r==='"'?(t.tokenize=b,t.tokenize(e,t)):r==="("&&e.eat("*")?(t.commentLevel++,t.tokenize=g,t.tokenize(e,t)):(e.backUp(1),e.match(Z,!0,!1)||e.match(h,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string-2":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variable-2":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variable-2":e.match(d,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function b(e,t){for(var r,n=!1,c=!1;(r=e.next())!=null;){if(r==='"'&&!c){n=!0;break}c=!c&&r==="\\"}return n&&!c&&(t.tokenize=m),"string"}function g(e,t){for(var r,n;t.commentLevel>0&&(n=e.next())!=null;)r==="("&&n==="*"&&t.commentLevel++,r==="*"&&n===")"&&t.commentLevel--,r=n;return t.commentLevel<=0&&(t.tokenize=m),"comment"}return{startState:function(){return{tokenize:m,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)"}}),a.defineMIME("text/x-mathematica",{name:"mathematica"})})})();var v=w.exports;const _=k(v),E=s({__proto__:null,default:_},[v]);export{E as m}; diff --git a/dist-ui/assets/mbox-BfR5b6CK.js b/dist-ui/assets/mbox-B_c5i4tT.js similarity index 96% rename from dist-ui/assets/mbox-BfR5b6CK.js rename to dist-ui/assets/mbox-B_c5i4tT.js index a924381b..ffbaebbf 100644 --- a/dist-ui/assets/mbox-BfR5b6CK.js +++ b/dist-ui/assets/mbox-B_c5i4tT.js @@ -1 +1 @@ -import{g as R,c as k}from"./index-CFELAGmQ.js";function S(u,f){for(var n=0;ni[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(u,f){(function(n){n(k)})(function(n){var i=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],o=["Date","Subject","Comments","Keywords","Resent-Date"];n.registerHelper("hintWords","mbox",i.concat(o));var a=/^[ \t]/,p=/^From /,m=new RegExp("^("+i.join("|")+"): "),s=new RegExp("^("+o.join("|")+"): "),v=/^[^:]+:/,b=/^[^ ]+@[^ ]+/,x=/^.*?(?=[^ ]+?@[^ ]+)/,H=/^<.*?>/,g=/^.*?(?=<.*>)/;function h(e){return e==="Subject"?"header":"string"}function E(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(a))return null;if(r.inHeader=!1,r.header=null,e.match(p))return r.inHeaders=!0,r.inSeparator=!0,"atom";var t,c=!1;return(t=e.match(s))||(c=!0)&&(t=e.match(m))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=c,r.header=t[1],"atom"):r.inHeaders&&(t=e.match(v))?(r.inHeader=!0,r.emailPermitted=!0,r.header=t[1],"atom"):(r.inHeaders=!1,e.skipToEnd(),null)}if(r.inSeparator)return e.match(b)?"link":(e.match(x)||e.skipToEnd(),"atom");if(r.inHeader){var l=h(r.header);if(r.emailPermitted){if(e.match(H))return l+" link";if(e.match(g))return l}return e.skipToEnd(),l}return e.skipToEnd(),null}n.defineMode("mbox",function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:E,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}}),n.defineMIME("application/mbox","mbox")})})();var d=T.exports;const j=R(d),P=S({__proto__:null,default:j},[d]);export{P as m}; +import{g as R,c as k}from"./index-F8NPuhC5.js";function S(u,f){for(var n=0;ni[o]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(u,f){(function(n){n(k)})(function(n){var i=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],o=["Date","Subject","Comments","Keywords","Resent-Date"];n.registerHelper("hintWords","mbox",i.concat(o));var a=/^[ \t]/,p=/^From /,m=new RegExp("^("+i.join("|")+"): "),s=new RegExp("^("+o.join("|")+"): "),v=/^[^:]+:/,b=/^[^ ]+@[^ ]+/,x=/^.*?(?=[^ ]+?@[^ ]+)/,H=/^<.*?>/,g=/^.*?(?=<.*>)/;function h(e){return e==="Subject"?"header":"string"}function E(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(a))return null;if(r.inHeader=!1,r.header=null,e.match(p))return r.inHeaders=!0,r.inSeparator=!0,"atom";var t,c=!1;return(t=e.match(s))||(c=!0)&&(t=e.match(m))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=c,r.header=t[1],"atom"):r.inHeaders&&(t=e.match(v))?(r.inHeader=!0,r.emailPermitted=!0,r.header=t[1],"atom"):(r.inHeaders=!1,e.skipToEnd(),null)}if(r.inSeparator)return e.match(b)?"link":(e.match(x)||e.skipToEnd(),"atom");if(r.inHeader){var l=h(r.header);if(r.emailPermitted){if(e.match(H))return l+" link";if(e.match(g))return l}return e.skipToEnd(),l}return e.skipToEnd(),null}n.defineMode("mbox",function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:E,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1}}}),n.defineMIME("application/mbox","mbox")})})();var d=T.exports;const j=R(d),P=S({__proto__:null,default:j},[d]);export{P as m}; diff --git a/dist-ui/assets/mirc-DC86U8XC.js b/dist-ui/assets/mirc-Bo5BSnbu.js similarity index 99% rename from dist-ui/assets/mirc-DC86U8XC.js rename to dist-ui/assets/mirc-Bo5BSnbu.js index 5117dcec..de1ce44a 100644 --- a/dist-ui/assets/mirc-DC86U8XC.js +++ b/dist-ui/assets/mirc-Bo5BSnbu.js @@ -1 +1 @@ -import{g,c as h}from"./index-CFELAGmQ.js";function v(s,l){for(var o=0;ot[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(s,l){(function(o){o(h)})(function(o){o.defineMIME("text/mirc","mirc"),o.defineMode("mirc",function(){function t(e){for(var r={},$=e.split(" "),i=0;i<$.length;++i)r[$[i]]=!0;return r}var n=t("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),a=t("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),d=t("if elseif else and not or eq ne in ni for foreach while switch"),m=/[+\-*&%=<>!?^\/\|]/;function p(e,r,$){return r.tokenize=$,$(e,r)}function c(e,r){var $=r.beforeParams;r.beforeParams=!1;var i=e.next();if(/[\[\]{}\(\),\.]/.test(i))return i=="("&&$?r.inParams=!0:i==")"&&(r.inParams=!1),null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if(i=="\\")return e.eat("\\"),e.eat(/./),"number";if(i=="/"&&e.eat("*"))return p(e,r,k);if(i==";"&&e.match(/ *\( *\(/))return p(e,r,b);if(i==";"&&!r.inParams)return e.skipToEnd(),"comment";if(i=='"')return e.eat(/"/),"keyword";if(i=="$")return e.eatWhile(/[$_a-z0-9A-Z\.:]/),n&&n.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(r.beforeParams=!0,"builtin");if(i=="%")return e.eatWhile(/[^,\s()]/),r.beforeParams=!0,"string";if(m.test(i))return e.eatWhile(m),"operator";e.eatWhile(/[\w\$_{}]/);var f=e.current().toLowerCase();return a&&a.propertyIsEnumerable(f)?"keyword":d&&d.propertyIsEnumerable(f)?(r.beforeParams=!0,"keyword"):null}function k(e,r){for(var $=!1,i;i=e.next();){if(i=="/"&&$){r.tokenize=c;break}$=i=="*"}return"comment"}function b(e,r){for(var $=0,i;i=e.next();){if(i==";"&&$==2){r.tokenize=c;break}i==")"?$++:i!=" "&&($=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)}}})})})();var u=w.exports;const y=g(u),q=v({__proto__:null,default:y},[u]);export{q as m}; +import{g,c as h}from"./index-F8NPuhC5.js";function v(s,l){for(var o=0;ot[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(s,l){(function(o){o(h)})(function(o){o.defineMIME("text/mirc","mirc"),o.defineMode("mirc",function(){function t(e){for(var r={},$=e.split(" "),i=0;i<$.length;++i)r[$[i]]=!0;return r}var n=t("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),a=t("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),d=t("if elseif else and not or eq ne in ni for foreach while switch"),m=/[+\-*&%=<>!?^\/\|]/;function p(e,r,$){return r.tokenize=$,$(e,r)}function c(e,r){var $=r.beforeParams;r.beforeParams=!1;var i=e.next();if(/[\[\]{}\(\),\.]/.test(i))return i=="("&&$?r.inParams=!0:i==")"&&(r.inParams=!1),null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if(i=="\\")return e.eat("\\"),e.eat(/./),"number";if(i=="/"&&e.eat("*"))return p(e,r,k);if(i==";"&&e.match(/ *\( *\(/))return p(e,r,b);if(i==";"&&!r.inParams)return e.skipToEnd(),"comment";if(i=='"')return e.eat(/"/),"keyword";if(i=="$")return e.eatWhile(/[$_a-z0-9A-Z\.:]/),n&&n.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(r.beforeParams=!0,"builtin");if(i=="%")return e.eatWhile(/[^,\s()]/),r.beforeParams=!0,"string";if(m.test(i))return e.eatWhile(m),"operator";e.eatWhile(/[\w\$_{}]/);var f=e.current().toLowerCase();return a&&a.propertyIsEnumerable(f)?"keyword":d&&d.propertyIsEnumerable(f)?(r.beforeParams=!0,"keyword"):null}function k(e,r){for(var $=!1,i;i=e.next();){if(i=="/"&&$){r.tokenize=c;break}$=i=="*"}return"comment"}function b(e,r){for(var $=0,i;i=e.next();){if(i==";"&&$==2){r.tokenize=c;break}i==")"?$++:i!=" "&&($=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)}}})})})();var u=w.exports;const y=g(u),q=v({__proto__:null,default:y},[u]);export{q as m}; diff --git a/dist-ui/assets/mllike-Bprdg3DF.js b/dist-ui/assets/mllike-v65ZXsXL.js similarity index 98% rename from dist-ui/assets/mllike-Bprdg3DF.js rename to dist-ui/assets/mllike-v65ZXsXL.js index e4a895eb..a3cd4049 100644 --- a/dist-ui/assets/mllike-Bprdg3DF.js +++ b/dist-ui/assets/mllike-v65ZXsXL.js @@ -1 +1 @@ -import{g as x,c as g}from"./index-CFELAGmQ.js";function v(k,u){for(var n=0;nl[i]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};(function(k,u){(function(n){n(g)})(function(n){n.defineMode("mllike",function(l,i){var d={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},f=i.extraWords||{};for(var a in f)f.hasOwnProperty(a)&&(d[a]=i.extraWords[a]);var c=[];for(var b in d)c.push(b);n.registerHelper("hintWords","mllike",c);function y(e,r){var o=e.next();if(o==='"')return r.tokenize=m,r.tokenize(e,r);if(o==="{"&&e.eat("|"))return r.longString=!0,r.tokenize=h,r.tokenize(e,r);if(o==="("&&e.match(/^\*(?!\))/))return r.commentLevel++,r.tokenize=p,r.tokenize(e,r);if(o==="~"||o==="?")return e.eatWhile(/\w/),"variable-2";if(o==="`")return e.eatWhile(/\w/),"quote";if(o==="/"&&i.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(o))return o==="0"&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),o==="0"&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),o==="0"&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(o))return"operator";if(/[\w\xa1-\uffff]/.test(o)){e.eatWhile(/[\w\xa1-\uffff]/);var t=e.current();return d.hasOwnProperty(t)?d[t]:"variable"}return null}function m(e,r){for(var o,t=!1,w=!1;(o=e.next())!=null;){if(o==='"'&&!w){t=!0;break}w=!w&&o==="\\"}return t&&!w&&(r.tokenize=y),"string"}function p(e,r){for(var o,t;r.commentLevel>0&&(t=e.next())!=null;)o==="("&&t==="*"&&r.commentLevel++,o==="*"&&t===")"&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=y),"comment"}function h(e,r){for(var o,t;r.longString&&(t=e.next())!=null;)o==="|"&&t==="}"&&(r.longString=!1),o=t;return r.longString||(r.tokenize=y),"string"}return{startState:function(){return{tokenize:y,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:i.slashComments?"//":null}}),n.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),n.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),n.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})})();var s=W.exports;const z=x(s),_=v({__proto__:null,default:z},[s]);export{_ as m}; +import{g as x,c as g}from"./index-F8NPuhC5.js";function v(k,u){for(var n=0;nl[i]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};(function(k,u){(function(n){n(g)})(function(n){n.defineMode("mllike",function(l,i){var d={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},f=i.extraWords||{};for(var a in f)f.hasOwnProperty(a)&&(d[a]=i.extraWords[a]);var c=[];for(var b in d)c.push(b);n.registerHelper("hintWords","mllike",c);function y(e,r){var o=e.next();if(o==='"')return r.tokenize=m,r.tokenize(e,r);if(o==="{"&&e.eat("|"))return r.longString=!0,r.tokenize=h,r.tokenize(e,r);if(o==="("&&e.match(/^\*(?!\))/))return r.commentLevel++,r.tokenize=p,r.tokenize(e,r);if(o==="~"||o==="?")return e.eatWhile(/\w/),"variable-2";if(o==="`")return e.eatWhile(/\w/),"quote";if(o==="/"&&i.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(o))return o==="0"&&e.eat(/[bB]/)&&e.eatWhile(/[01]/),o==="0"&&e.eat(/[xX]/)&&e.eatWhile(/[0-9a-fA-F]/),o==="0"&&e.eat(/[oO]/)?e.eatWhile(/[0-7]/):(e.eatWhile(/[\d_]/),e.eat(".")&&e.eatWhile(/[\d]/),e.eat(/[eE]/)&&e.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(o))return"operator";if(/[\w\xa1-\uffff]/.test(o)){e.eatWhile(/[\w\xa1-\uffff]/);var t=e.current();return d.hasOwnProperty(t)?d[t]:"variable"}return null}function m(e,r){for(var o,t=!1,w=!1;(o=e.next())!=null;){if(o==='"'&&!w){t=!0;break}w=!w&&o==="\\"}return t&&!w&&(r.tokenize=y),"string"}function p(e,r){for(var o,t;r.commentLevel>0&&(t=e.next())!=null;)o==="("&&t==="*"&&r.commentLevel++,o==="*"&&t===")"&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=y),"comment"}function h(e,r){for(var o,t;r.longString&&(t=e.next())!=null;)o==="|"&&t==="}"&&(r.longString=!1),o=t;return r.longString||(r.tokenize=y),"string"}return{startState:function(){return{tokenize:y,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:i.slashComments?"//":null}}),n.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),n.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),n.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})})();var s=W.exports;const z=x(s),_=v({__proto__:null,default:z},[s]);export{_ as m}; diff --git a/dist-ui/assets/modelica-DRAnqeau.js b/dist-ui/assets/modelica-lS_WypKi.js similarity index 98% rename from dist-ui/assets/modelica-DRAnqeau.js rename to dist-ui/assets/modelica-lS_WypKi.js index 8a8bc1e8..775b5d67 100644 --- a/dist-ui/assets/modelica-DRAnqeau.js +++ b/dist-ui/assets/modelica-lS_WypKi.js @@ -1 +1 @@ -import{g as _,c as P}from"./index-CFELAGmQ.js";function W(h,g){for(var r=0;rl[c]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(h,g){(function(r){r(P)})(function(r){r.defineMode("modelica",function(o,t){var u=o.indentUnit,a=t.keywords||{},p=t.builtin||{},k=t.atoms||{},v=/[;=\(:\),{}.*<>+\-\/^\[\]]/,w=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,s=/[0-9]/,b=/[_a-zA-Z]/;function x(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function E(n,e){for(var i=!1,f;f=n.next();){if(i&&f=="/"){e.tokenize=null;break}i=f=="*"}return"comment"}function S(n,e){for(var i=!1,f;(f=n.next())!=null;){if(f=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&f=="\\"}return"string"}function I(n,e){for(n.eatWhile(s);n.eat(s)||n.eat(b););var i=n.current();return e.sol&&(i=="package"||i=="model"||i=="when"||i=="connector")?e.level++:e.sol&&i=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,a.propertyIsEnumerable(i)?"keyword":p.propertyIsEnumerable(i)?"builtin":k.propertyIsEnumerable(i)?"atom":"variable"}function O(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function D(n,e){return n.eatWhile(s),n.eat(".")&&n.eatWhile(s),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(s)),e.tokenize=null,e.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var i=n.next();if(i=="/"&&n.eat("/"))e.tokenize=x;else if(i=="/"&&n.eat("*"))e.tokenize=E;else{if(w.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(v.test(i))return e.tokenize=null,"operator";if(b.test(i))e.tokenize=I;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=O;else if(i=='"')e.tokenize=S;else if(s.test(i))e.tokenize=D;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e){if(n.tokenize!=null)return r.Pass;var i=n.level;return/(algorithm)/.test(e)&&i--,/(equation)/.test(e)&&i--,/(initial algorithm)/.test(e)&&i--,/(initial equation)/.test(e)&&i--,/(end)/.test(e)&&i--,i>0?u*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function l(o){for(var t={},u=o.split(" "),a=0;al[c]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(h,g){(function(r){r(P)})(function(r){r.defineMode("modelica",function(o,t){var u=o.indentUnit,a=t.keywords||{},p=t.builtin||{},k=t.atoms||{},v=/[;=\(:\),{}.*<>+\-\/^\[\]]/,w=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,s=/[0-9]/,b=/[_a-zA-Z]/;function x(n,e){return n.skipToEnd(),e.tokenize=null,"comment"}function E(n,e){for(var i=!1,f;f=n.next();){if(i&&f=="/"){e.tokenize=null;break}i=f=="*"}return"comment"}function S(n,e){for(var i=!1,f;(f=n.next())!=null;){if(f=='"'&&!i){e.tokenize=null,e.sol=!1;break}i=!i&&f=="\\"}return"string"}function I(n,e){for(n.eatWhile(s);n.eat(s)||n.eat(b););var i=n.current();return e.sol&&(i=="package"||i=="model"||i=="when"||i=="connector")?e.level++:e.sol&&i=="end"&&e.level>0&&e.level--,e.tokenize=null,e.sol=!1,a.propertyIsEnumerable(i)?"keyword":p.propertyIsEnumerable(i)?"builtin":k.propertyIsEnumerable(i)?"atom":"variable"}function O(n,e){for(;n.eat(/[^']/););return e.tokenize=null,e.sol=!1,n.eat("'")?"variable":"error"}function D(n,e){return n.eatWhile(s),n.eat(".")&&n.eatWhile(s),(n.eat("e")||n.eat("E"))&&(n.eat("-")||n.eat("+"),n.eatWhile(s)),e.tokenize=null,e.sol=!1,"number"}return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(n,e){if(e.tokenize!=null)return e.tokenize(n,e);if(n.sol()&&(e.sol=!0),n.eatSpace())return e.tokenize=null,null;var i=n.next();if(i=="/"&&n.eat("/"))e.tokenize=x;else if(i=="/"&&n.eat("*"))e.tokenize=E;else{if(w.test(i+n.peek()))return n.next(),e.tokenize=null,"operator";if(v.test(i))return e.tokenize=null,"operator";if(b.test(i))e.tokenize=I;else if(i=="'"&&n.peek()&&n.peek()!="'")e.tokenize=O;else if(i=='"')e.tokenize=S;else if(s.test(i))e.tokenize=D;else return e.tokenize=null,"error"}return e.tokenize(n,e)},indent:function(n,e){if(n.tokenize!=null)return r.Pass;var i=n.level;return/(algorithm)/.test(e)&&i--,/(equation)/.test(e)&&i--,/(initial algorithm)/.test(e)&&i--,/(initial equation)/.test(e)&&i--,/(end)/.test(e)&&i--,i>0?u*i:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function l(o){for(var t={},u=o.split(" "),a=0;as[n]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(i,a){(function(r){r(d)})(function(r){var s={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};r.defineMode("mscgen",function(t,e){var o=s[e&&e.language||"mscgen"];return{startState:l,copyState:m,token:x(o),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}}),r.defineMIME("text/x-mscgen","mscgen"),r.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),r.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"});function n(t){return new RegExp("^\\b(?:"+t.join("|")+")\\b","i")}function c(t){return new RegExp("^(?:"+t.join("|")+")","i")}function l(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function m(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function x(t){return function(e,o){if(e.match(c(t.brackets),!0,!0))return"bracket";if(!o.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return o.inComment=!0,"comment";if(e.match(c(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(o.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?o.inComment=!1:e.skipToEnd(),"comment";if(!o.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return o.inString=!0,"string";if(o.inString)return e.match(/[^\"]*\"/,!0,!0)?o.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match(n(t.keywords),!0,!0)||e.match(n(t.options),!0,!0)||e.match(n(t.arcsWords),!0,!0)||e.match(c(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(c(t.operators),!0,!0))return"operator";if(t.constants&&e.match(c(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(t.attributes!==null&&e.match(n(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),"base"}}})})();var u=f.exports;const k=b(u),h=g({__proto__:null,default:k},[u]);export{h as m}; +import{g as b,c as d}from"./index-F8NPuhC5.js";function g(i,a){for(var r=0;rs[n]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(i,a){(function(r){r(d)})(function(r){var s={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},xu:{keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]},msgenny:{keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}};r.defineMode("mscgen",function(t,e){var o=s[e&&e.language||"mscgen"];return{startState:l,copyState:m,token:x(o),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}}),r.defineMIME("text/x-mscgen","mscgen"),r.defineMIME("text/x-xu",{name:"mscgen",language:"xu"}),r.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"});function n(t){return new RegExp("^\\b(?:"+t.join("|")+")\\b","i")}function c(t){return new RegExp("^(?:"+t.join("|")+")","i")}function l(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function m(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function x(t){return function(e,o){if(e.match(c(t.brackets),!0,!0))return"bracket";if(!o.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return o.inComment=!0,"comment";if(e.match(c(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(o.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?o.inComment=!1:e.skipToEnd(),"comment";if(!o.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return o.inString=!0,"string";if(o.inString)return e.match(/[^\"]*\"/,!0,!0)?o.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match(n(t.keywords),!0,!0)||e.match(n(t.options),!0,!0)||e.match(n(t.arcsWords),!0,!0)||e.match(c(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(c(t.operators),!0,!0))return"operator";if(t.constants&&e.match(c(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(t.attributes!==null&&e.match(n(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),"base"}}})})();var u=f.exports;const k=b(u),h=g({__proto__:null,default:k},[u]);export{h as m}; diff --git a/dist-ui/assets/multiplex-CFyEzHyQ.js b/dist-ui/assets/multiplex-C8wCGfI5.js similarity index 97% rename from dist-ui/assets/multiplex-CFyEzHyQ.js rename to dist-ui/assets/multiplex-C8wCGfI5.js index 43a04e13..51f09be3 100644 --- a/dist-ui/assets/multiplex-CFyEzHyQ.js +++ b/dist-ui/assets/multiplex-C8wCGfI5.js @@ -1 +1 @@ -import{c as m}from"./index-CFELAGmQ.js";var g={exports:{}},S;function L(){return S||(S=1,function(s,D){(function(c){c(m)})(function(c){c.multiplexingMode=function(o){var A=Array.prototype.slice.call(arguments,1);function u(i,n,l,e){if(typeof n=="string"){var p=i.indexOf(n,l);return e&&p>-1?p+n.length:p}var v=n.exec(l?i.slice(l):i);return v?v.index+l+(e?v[0].length:0):-1}return{startState:function(){return{outer:c.startState(o),innerActive:null,inner:null,startingInner:!1}},copyState:function(i){return{outer:c.copyState(o,i.outer),innerActive:i.innerActive,inner:i.innerActive&&c.copyState(i.innerActive.mode,i.inner),startingInner:i.startingInner}},token:function(i,n){if(n.innerActive){var r=n.innerActive,e=i.string;if(!r.close&&i.sol())return n.innerActive=n.inner=null,this.token(i,n);var f=r.close&&!n.startingInner?u(e,r.close,i.pos,r.parseDelimiters):-1;if(f==i.pos&&!r.parseDelimiters)return i.match(r.close),n.innerActive=n.inner=null,r.delimStyle&&r.delimStyle+" "+r.delimStyle+"-close";f>-1&&(i.string=e.slice(0,f));var t=r.mode.token(i,n.inner);return f>-1?i.string=e:i.pos>i.start&&(n.startingInner=!1),f==i.pos&&r.parseDelimiters&&(n.innerActive=n.inner=null),r.innerStyle&&(t?t=t+" "+r.innerStyle:t=r.innerStyle),t}else{for(var l=1/0,e=i.string,p=0;p-1?p+n.length:p}var v=n.exec(l?i.slice(l):i);return v?v.index+l+(e?v[0].length:0):-1}return{startState:function(){return{outer:c.startState(o),innerActive:null,inner:null,startingInner:!1}},copyState:function(i){return{outer:c.copyState(o,i.outer),innerActive:i.innerActive,inner:i.innerActive&&c.copyState(i.innerActive.mode,i.inner),startingInner:i.startingInner}},token:function(i,n){if(n.innerActive){var r=n.innerActive,e=i.string;if(!r.close&&i.sol())return n.innerActive=n.inner=null,this.token(i,n);var f=r.close&&!n.startingInner?u(e,r.close,i.pos,r.parseDelimiters):-1;if(f==i.pos&&!r.parseDelimiters)return i.match(r.close),n.innerActive=n.inner=null,r.delimStyle&&r.delimStyle+" "+r.delimStyle+"-close";f>-1&&(i.string=e.slice(0,f));var t=r.mode.token(i,n.inner);return f>-1?i.string=e:i.pos>i.start&&(n.startingInner=!1),f==i.pos&&r.parseDelimiters&&(n.innerActive=n.inner=null),r.innerStyle&&(t?t=t+" "+r.innerStyle:t=r.innerStyle),t}else{for(var l=1/0,e=i.string,p=0;po[i]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function($,a){(function(t){t(v)})(function(t){t.defineMode("mumps",function(){function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),c=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),l=new RegExp("^[\\.,:]"),f=new RegExp("[()]"),d=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),m=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],s=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],p=o(s),g=o(m);function b(e,r){e.sol()&&(r.label=!0,r.commandMode=0);var n=e.peek();return n==" "||n==" "?(r.label=!1,r.commandMode==0?r.commandMode=1:(r.commandMode<0||r.commandMode==2)&&(r.commandMode=0)):n!="."&&r.commandMode>0&&(n==":"?r.commandMode=-1:r.commandMode=2),(n==="("||n===" ")&&(r.label=!1),n===";"?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":n=='"'?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(c)||e.match(i)?"operator":e.match(l)?null:f.test(n)?(e.next(),"bracket"):r.commandMode>0&&e.match(g)?"variable-2":e.match(p)?"builtin":e.match(d)?"variable":n==="$"||n==="^"?(e.next(),"builtin"):n==="@"?(e.next(),"string-2"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}return{startState:function(){return{label:!1,commandMode:0}},token:function(e,r){var n=b(e,r);return r.label?"tag":n}}}),t.defineMIME("text/x-mumps","mumps")})})();var u=k.exports;const w=x(u),E=h({__proto__:null,default:w},[u]);export{E as m}; +import{g as x,c as v}from"./index-F8NPuhC5.js";function h($,a){for(var t=0;to[i]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function($,a){(function(t){t(v)})(function(t){t.defineMode("mumps",function(){function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),c=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),l=new RegExp("^[\\.,:]"),f=new RegExp("[()]"),d=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),m=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"],s=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"],p=o(s),g=o(m);function b(e,r){e.sol()&&(r.label=!0,r.commandMode=0);var n=e.peek();return n==" "||n==" "?(r.label=!1,r.commandMode==0?r.commandMode=1:(r.commandMode<0||r.commandMode==2)&&(r.commandMode=0)):n!="."&&r.commandMode>0&&(n==":"?r.commandMode=-1:r.commandMode=2),(n==="("||n===" ")&&(r.label=!1),n===";"?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":n=='"'?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(c)||e.match(i)?"operator":e.match(l)?null:f.test(n)?(e.next(),"bracket"):r.commandMode>0&&e.match(g)?"variable-2":e.match(p)?"builtin":e.match(d)?"variable":n==="$"||n==="^"?(e.next(),"builtin"):n==="@"?(e.next(),"string-2"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}return{startState:function(){return{label:!1,commandMode:0}},token:function(e,r){var n=b(e,r);return r.label?"tag":n}}}),t.defineMIME("text/x-mumps","mumps")})})();var u=k.exports;const w=x(u),E=h({__proto__:null,default:w},[u]);export{E as m}; diff --git a/dist-ui/assets/nginx-BnakU_6z.js b/dist-ui/assets/nginx-CffsXSm0.js similarity index 99% rename from dist-ui/assets/nginx-BnakU_6z.js rename to dist-ui/assets/nginx-CffsXSm0.js index 6605b048..10470dcb 100644 --- a/dist-ui/assets/nginx-BnakU_6z.js +++ b/dist-ui/assets/nginx-CffsXSm0.js @@ -1 +1 @@ -import{g as v,c as k}from"./index-CFELAGmQ.js";function z(l,u){for(var a=0;an[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(l,u){(function(a){a(k)})(function(a){a.defineMode("nginx",function(n){function s(_){for(var t={},r=_.split(" "),e=0;e*\/]/.test(e)?i(null,"select-op"):/[;{}:\[\]]/.test(e)?i(null,e):(_.eatWhile(/[\w\\\-]/),i("variable","variable"))}function d(_,t){for(var r=!1,e;(e=_.next())!=null;){if(r&&e=="/"){t.tokenize=p;break}r=e=="*"}return i("comment","comment")}function m(_,t){for(var r=0,e;(e=_.next())!=null;){if(r>=2&&e==">"){t.tokenize=p;break}r=e=="-"?r+1:0}return i("comment","comment")}function b(_){return function(t,r){for(var e=!1,f;(f=t.next())!=null&&!(f==_&&!e);)e=!e&&f=="\\";return e||(r.tokenize=p),i("string","string")}}return{startState:function(_){return{tokenize:p,baseIndent:_||0,stack:[]}},token:function(_,t){if(_.eatSpace())return null;o=null;var r=t.tokenize(_,t),e=t.stack[t.stack.length-1];return o=="hash"&&e=="rule"?r="atom":r=="variable"&&(e=="rule"?r="number":(!e||e=="@media{")&&(r="tag")),e=="rule"&&/^[\{\};]$/.test(o)&&t.stack.pop(),o=="{"?e=="@media"?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):o=="}"?t.stack.pop():o=="@media"?t.stack.push("@media"):e=="{"&&o!="comment"&&t.stack.push("rule"),r},indent:function(_,t){var r=_.stack.length;return/^\}/.test(t)&&(r-=_.stack[_.stack.length-1]=="rule"?2:1),_.baseIndent+r*x},electricChars:"}"}}),a.defineMIME("text/x-nginx-conf","nginx")})})();var h=w.exports;const q=v(h),j=z({__proto__:null,default:q},[h]);export{j as n}; +import{g as v,c as k}from"./index-F8NPuhC5.js";function z(l,u){for(var a=0;an[s]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var w={exports:{}};(function(l,u){(function(a){a(k)})(function(a){a.defineMode("nginx",function(n){function s(_){for(var t={},r=_.split(" "),e=0;e*\/]/.test(e)?i(null,"select-op"):/[;{}:\[\]]/.test(e)?i(null,e):(_.eatWhile(/[\w\\\-]/),i("variable","variable"))}function d(_,t){for(var r=!1,e;(e=_.next())!=null;){if(r&&e=="/"){t.tokenize=p;break}r=e=="*"}return i("comment","comment")}function m(_,t){for(var r=0,e;(e=_.next())!=null;){if(r>=2&&e==">"){t.tokenize=p;break}r=e=="-"?r+1:0}return i("comment","comment")}function b(_){return function(t,r){for(var e=!1,f;(f=t.next())!=null&&!(f==_&&!e);)e=!e&&f=="\\";return e||(r.tokenize=p),i("string","string")}}return{startState:function(_){return{tokenize:p,baseIndent:_||0,stack:[]}},token:function(_,t){if(_.eatSpace())return null;o=null;var r=t.tokenize(_,t),e=t.stack[t.stack.length-1];return o=="hash"&&e=="rule"?r="atom":r=="variable"&&(e=="rule"?r="number":(!e||e=="@media{")&&(r="tag")),e=="rule"&&/^[\{\};]$/.test(o)&&t.stack.pop(),o=="{"?e=="@media"?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):o=="}"?t.stack.pop():o=="@media"?t.stack.push("@media"):e=="{"&&o!="comment"&&t.stack.push("rule"),r},indent:function(_,t){var r=_.stack.length;return/^\}/.test(t)&&(r-=_.stack[_.stack.length-1]=="rule"?2:1),_.baseIndent+r*x},electricChars:"}"}}),a.defineMIME("text/x-nginx-conf","nginx")})})();var h=w.exports;const q=v(h),j=z({__proto__:null,default:q},[h]);export{j as n}; diff --git a/dist-ui/assets/nsis-CUnpq3M4.js b/dist-ui/assets/nsis-Dt-oCaGG.js similarity index 99% rename from dist-ui/assets/nsis-CUnpq3M4.js rename to dist-ui/assets/nsis-Dt-oCaGG.js index 4fd7b54d..18b7b23d 100644 --- a/dist-ui/assets/nsis-CUnpq3M4.js +++ b/dist-ui/assets/nsis-Dt-oCaGG.js @@ -1 +1 @@ -import{g as s,c as l,b as S}from"./index-CFELAGmQ.js";function d(i,r){for(var e=0;et[n]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var I={exports:{}};(function(i,r){(function(e){e(l,S())})(function(e){e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\!\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")})})();var a=I.exports;const E=s(a),g=d({__proto__:null,default:E},[a]);export{g as n}; +import{g as s,c as l,b as S}from"./index-F8NPuhC5.js";function d(i,r){for(var e=0;et[n]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var I={exports:{}};(function(i,r){(function(e){e(l,S())})(function(e){e.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\!\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}}),e.defineMIME("text/x-nsis","nsis")})})();var a=I.exports;const E=s(a),g=d({__proto__:null,default:E},[a]);export{g as n}; diff --git a/dist-ui/assets/ntriples-HIut5vCN.js b/dist-ui/assets/ntriples-DLcALhbn.js similarity index 97% rename from dist-ui/assets/ntriples-HIut5vCN.js rename to dist-ui/assets/ntriples-DLcALhbn.js index afe1cb71..a08240ff 100644 --- a/dist-ui/assets/ntriples-HIut5vCN.js +++ b/dist-ui/assets/ntriples-DLcALhbn.js @@ -1 +1 @@ -import{g as B,c as P}from"./index-CFELAGmQ.js";function s(f,l){for(var R=0;Re[I]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var N={exports:{}};(function(f,l){(function(R){R(P)})(function(R){R.defineMode("ntriples",function(){var e={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function I(r,n){var i=r.location,_;i==e.PRE_SUBJECT&&n=="<"?_=e.WRITING_SUB_URI:i==e.PRE_SUBJECT&&n=="_"?_=e.WRITING_BNODE_URI:i==e.PRE_PRED&&n=="<"?_=e.WRITING_PRED_URI:i==e.PRE_OBJ&&n=="<"?_=e.WRITING_OBJ_URI:i==e.PRE_OBJ&&n=="_"?_=e.WRITING_OBJ_BNODE:i==e.PRE_OBJ&&n=='"'?_=e.WRITING_OBJ_LITERAL:i==e.WRITING_SUB_URI&&n==">"||i==e.WRITING_BNODE_URI&&n==" "?_=e.PRE_PRED:i==e.WRITING_PRED_URI&&n==">"?_=e.PRE_OBJ:i==e.WRITING_OBJ_URI&&n==">"||i==e.WRITING_OBJ_BNODE&&n==" "||i==e.WRITING_OBJ_LITERAL&&n=='"'||i==e.WRITING_LIT_LANG&&n==" "||i==e.WRITING_LIT_TYPE&&n==">"?_=e.POST_OBJ:i==e.WRITING_OBJ_LITERAL&&n=="@"?_=e.WRITING_LIT_LANG:i==e.WRITING_OBJ_LITERAL&&n=="^"?_=e.WRITING_LIT_TYPE:n==" "&&(i==e.PRE_SUBJECT||i==e.PRE_PRED||i==e.PRE_OBJ||i==e.POST_OBJ)?_=i:i==e.POST_OBJ&&n=="."?_=e.PRE_SUBJECT:_=e.ERROR,r.location=_}return{startState:function(){return{location:e.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(r,n){var i=r.next();if(i=="<"){I(n,i);var _="";return r.eatWhile(function(t){return t!="#"&&t!=">"?(_+=t,!0):!1}),n.uris.push(_),r.match("#",!1)||(r.next(),I(n,">")),"variable"}if(i=="#"){var u="";return r.eatWhile(function(t){return t!=">"&&t!=" "?(u+=t,!0):!1}),n.anchors.push(u),"variable-2"}if(i==">")return I(n,">"),"variable";if(i=="_"){I(n,i);var o="";return r.eatWhile(function(t){return t!=" "?(o+=t,!0):!1}),n.bnodes.push(o),r.next(),I(n," "),"builtin"}if(i=='"')return I(n,i),r.eatWhile(function(t){return t!='"'}),r.next(),r.peek()!="@"&&r.peek()!="^"&&I(n,'"'),"string";if(i=="@"){I(n,"@");var T="";return r.eatWhile(function(t){return t!=" "?(T+=t,!0):!1}),n.langs.push(T),r.next(),I(n," "),"string-2"}if(i=="^"){r.next(),I(n,"^");var E="";return r.eatWhile(function(t){return t!=">"?(E+=t,!0):!1}),n.types.push(E),r.next(),I(n,">"),"variable"}i==" "&&I(n,i),i=="."&&I(n,i)}}}),R.defineMIME("application/n-triples","ntriples"),R.defineMIME("application/n-quads","ntriples"),R.defineMIME("text/n-triples","ntriples")})})();var O=N.exports;const p=B(O),J=s({__proto__:null,default:p},[O]);export{J as n}; +import{g as B,c as P}from"./index-F8NPuhC5.js";function s(f,l){for(var R=0;Re[I]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var N={exports:{}};(function(f,l){(function(R){R(P)})(function(R){R.defineMode("ntriples",function(){var e={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function I(r,n){var i=r.location,_;i==e.PRE_SUBJECT&&n=="<"?_=e.WRITING_SUB_URI:i==e.PRE_SUBJECT&&n=="_"?_=e.WRITING_BNODE_URI:i==e.PRE_PRED&&n=="<"?_=e.WRITING_PRED_URI:i==e.PRE_OBJ&&n=="<"?_=e.WRITING_OBJ_URI:i==e.PRE_OBJ&&n=="_"?_=e.WRITING_OBJ_BNODE:i==e.PRE_OBJ&&n=='"'?_=e.WRITING_OBJ_LITERAL:i==e.WRITING_SUB_URI&&n==">"||i==e.WRITING_BNODE_URI&&n==" "?_=e.PRE_PRED:i==e.WRITING_PRED_URI&&n==">"?_=e.PRE_OBJ:i==e.WRITING_OBJ_URI&&n==">"||i==e.WRITING_OBJ_BNODE&&n==" "||i==e.WRITING_OBJ_LITERAL&&n=='"'||i==e.WRITING_LIT_LANG&&n==" "||i==e.WRITING_LIT_TYPE&&n==">"?_=e.POST_OBJ:i==e.WRITING_OBJ_LITERAL&&n=="@"?_=e.WRITING_LIT_LANG:i==e.WRITING_OBJ_LITERAL&&n=="^"?_=e.WRITING_LIT_TYPE:n==" "&&(i==e.PRE_SUBJECT||i==e.PRE_PRED||i==e.PRE_OBJ||i==e.POST_OBJ)?_=i:i==e.POST_OBJ&&n=="."?_=e.PRE_SUBJECT:_=e.ERROR,r.location=_}return{startState:function(){return{location:e.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(r,n){var i=r.next();if(i=="<"){I(n,i);var _="";return r.eatWhile(function(t){return t!="#"&&t!=">"?(_+=t,!0):!1}),n.uris.push(_),r.match("#",!1)||(r.next(),I(n,">")),"variable"}if(i=="#"){var u="";return r.eatWhile(function(t){return t!=">"&&t!=" "?(u+=t,!0):!1}),n.anchors.push(u),"variable-2"}if(i==">")return I(n,">"),"variable";if(i=="_"){I(n,i);var o="";return r.eatWhile(function(t){return t!=" "?(o+=t,!0):!1}),n.bnodes.push(o),r.next(),I(n," "),"builtin"}if(i=='"')return I(n,i),r.eatWhile(function(t){return t!='"'}),r.next(),r.peek()!="@"&&r.peek()!="^"&&I(n,'"'),"string";if(i=="@"){I(n,"@");var T="";return r.eatWhile(function(t){return t!=" "?(T+=t,!0):!1}),n.langs.push(T),r.next(),I(n," "),"string-2"}if(i=="^"){r.next(),I(n,"^");var E="";return r.eatWhile(function(t){return t!=">"?(E+=t,!0):!1}),n.types.push(E),r.next(),I(n,">"),"variable"}i==" "&&I(n,i),i=="."&&I(n,i)}}}),R.defineMIME("application/n-triples","ntriples"),R.defineMIME("application/n-quads","ntriples"),R.defineMIME("text/n-triples","ntriples")})})();var O=N.exports;const p=B(O),J=s({__proto__:null,default:p},[O]);export{J as n}; diff --git a/dist-ui/assets/octave-BiCIAta_.js b/dist-ui/assets/octave-imH2yerB.js similarity index 97% rename from dist-ui/assets/octave-BiCIAta_.js rename to dist-ui/assets/octave-imH2yerB.js index 6271f3f9..8aebcc45 100644 --- a/dist-ui/assets/octave-BiCIAta_.js +++ b/dist-ui/assets/octave-imH2yerB.js @@ -1 +1 @@ -import{g as k,c as E}from"./index-CFELAGmQ.js";function w(u,a){for(var t=0;tr[i]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(u,a){(function(t){t(E)})(function(t){t.defineMode("octave",function(){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),c=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),s=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),d=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),m=new RegExp("^((>>=)|(<<=))"),g=new RegExp("^[\\]\\)]"),h=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),x=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),v=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function l(e,n){return!e.sol()&&e.peek()==="'"?(e.next(),n.tokenize=o,"operator"):(n.tokenize=o,o(e,n))}function b(e,n){return e.match(/^.*%}/)?(n.tokenize=o,"comment"):(e.skipToEnd(),"comment")}function o(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=b,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=o,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(r(["nan","NaN","inf","Inf"])))return"number";var f=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return f?f[1]?"string":"string error":e.match(v)?"keyword":e.match(x)?"builtin":e.match(h)?"variable":e.match(i)||e.match(s)?"operator":e.match(c)||e.match(d)||e.match(m)?null:e.match(g)?(n.tokenize=l,null):(e.next(),"error")}return{startState:function(){return{tokenize:o}},token:function(e,n){var f=n.tokenize(e,n);return(f==="number"||f==="variable")&&(n.tokenize=l),f},lineComment:"%",fold:"indent"}}),t.defineMIME("text/x-octave","octave")})})();var p=y.exports;const z=k(p),R=w({__proto__:null,default:z},[p]);export{R as o}; +import{g as k,c as E}from"./index-F8NPuhC5.js";function w(u,a){for(var t=0;tr[i]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(u,a){(function(t){t(E)})(function(t){t.defineMode("octave",function(){function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),c=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),s=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),d=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),m=new RegExp("^((>>=)|(<<=))"),g=new RegExp("^[\\]\\)]"),h=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),x=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),v=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function l(e,n){return!e.sol()&&e.peek()==="'"?(e.next(),n.tokenize=o,"operator"):(n.tokenize=o,o(e,n))}function b(e,n){return e.match(/^.*%}/)?(n.tokenize=o,"comment"):(e.skipToEnd(),"comment")}function o(e,n){if(e.eatSpace())return null;if(e.match("%{"))return n.tokenize=b,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=o,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(r(["nan","NaN","inf","Inf"])))return"number";var f=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return f?f[1]?"string":"string error":e.match(v)?"keyword":e.match(x)?"builtin":e.match(h)?"variable":e.match(i)||e.match(s)?"operator":e.match(c)||e.match(d)||e.match(m)?null:e.match(g)?(n.tokenize=l,null):(e.next(),"error")}return{startState:function(){return{tokenize:o}},token:function(e,n){var f=n.tokenize(e,n);return(f==="number"||f==="variable")&&(n.tokenize=l),f},lineComment:"%",fold:"indent"}}),t.defineMIME("text/x-octave","octave")})})();var p=y.exports;const z=k(p),R=w({__proto__:null,default:z},[p]);export{R as o}; diff --git a/dist-ui/assets/overlay-0t06YMiN.js b/dist-ui/assets/overlay-DMs7bKVk.js similarity index 94% rename from dist-ui/assets/overlay-0t06YMiN.js rename to dist-ui/assets/overlay-DMs7bKVk.js index 75890f8a..41c0410d 100644 --- a/dist-ui/assets/overlay-0t06YMiN.js +++ b/dist-ui/assets/overlay-DMs7bKVk.js @@ -1 +1 @@ -import{c as y}from"./index-CFELAGmQ.js";var a={exports:{}},v;function f(){return v||(v=1,function(c,s){(function(e){e(y)})(function(e){e.overlayMode=function(r,u,i){return{startState:function(){return{base:e.startState(r),overlay:e.startState(u),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:e.copyState(r,o.base),overlay:e.copyState(u,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(o,n){return(o!=n.streamSeen||Math.min(n.basePos,n.overlayPos)u[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(a,l){(function(i){i(P)})(function(i){i.defineMode("oz",function(u){function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var f=/[\^@!\|<>#~\.\*\-\+\\/,=]/,v=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,x=/(:::)|(\.\.\.)|(=<:)|(>=:)/,s=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],p=["end"],b=o(["true","false","nil","unit"]),y=o(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),w=o(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),h=o(s),k=o(p);function c(e,n){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(x)||e.match(v))return"operator";if(e.match(b))return"atom";var t=e.match(w);if(t)return n.doInCurrentLine?n.doInCurrentLine=!1:n.currentIndent++,t[0]=="proc"||t[0]=="fun"?n.tokenize=I:t[0]=="class"?n.tokenize=S:t[0]=="meth"&&(n.tokenize=E),"keyword";if(e.match(h)||e.match(y))return"keyword";if(e.match(k))return n.currentIndent--,"keyword";var r=e.next();if(r=='"'||r=="'")return n.tokenize=A(r),n.tokenize(e,n);if(/[~\d]/.test(r)){if(r=="~")if(/^[0-9]/.test(e.peek())){if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}else return null;return r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return r=="%"?(e.skipToEnd(),"comment"):r=="/"&&e.eat("*")?(n.tokenize=m,m(e,n)):f.test(r)?"operator":(e.eatWhile(/\w/),"variable")}function S(e,n){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"variable-3")}function E(e,n){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"def")}function I(e,n){return e.eatSpace()?null:!n.hasPassedFirstStage&&e.eat("{")?(n.hasPassedFirstStage=!0,"bracket"):n.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),n.hasPassedFirstStage=!1,n.tokenize=c,"def"):(n.tokenize=c,null)}function m(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=c;break}t=r=="*"}return"comment"}function A(e){return function(n,t){for(var r=!1,d,z=!1;(d=n.next())!=null;){if(d==e&&!r){z=!0;break}r=!r&&d=="\\"}return(z||!r)&&(t.tokenize=c),"string"}}function C(){var e=s.concat(p);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}return{startState:function(){return{tokenize:c,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,n){return e.sol()&&(n.doInCurrentLine=0),n.tokenize(e,n)},indent:function(e,n){var t=n.replace(/^\s+|\s+$/g,"");return t.match(k)||t.match(h)||t.match(/(\[])/)?u.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*u.indentUnit},fold:"indent",electricInput:C(),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}}),i.defineMIME("text/x-oz","oz")})})();var g=_.exports;const j=F(g),$=O({__proto__:null,default:j},[g]);export{$ as o}; +import{g as F,c as P}from"./index-F8NPuhC5.js";function O(a,l){for(var i=0;iu[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(a,l){(function(i){i(P)})(function(i){i.defineMode("oz",function(u){function o(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var f=/[\^@!\|<>#~\.\*\-\+\\/,=]/,v=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,x=/(:::)|(\.\.\.)|(=<:)|(>=:)/,s=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],p=["end"],b=o(["true","false","nil","unit"]),y=o(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),w=o(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),h=o(s),k=o(p);function c(e,n){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(x)||e.match(v))return"operator";if(e.match(b))return"atom";var t=e.match(w);if(t)return n.doInCurrentLine?n.doInCurrentLine=!1:n.currentIndent++,t[0]=="proc"||t[0]=="fun"?n.tokenize=I:t[0]=="class"?n.tokenize=S:t[0]=="meth"&&(n.tokenize=E),"keyword";if(e.match(h)||e.match(y))return"keyword";if(e.match(k))return n.currentIndent--,"keyword";var r=e.next();if(r=='"'||r=="'")return n.tokenize=A(r),n.tokenize(e,n);if(/[~\d]/.test(r)){if(r=="~")if(/^[0-9]/.test(e.peek())){if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}else return null;return r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return r=="%"?(e.skipToEnd(),"comment"):r=="/"&&e.eat("*")?(n.tokenize=m,m(e,n)):f.test(r)?"operator":(e.eatWhile(/\w/),"variable")}function S(e,n){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"variable-3")}function E(e,n){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),n.tokenize=c,"def")}function I(e,n){return e.eatSpace()?null:!n.hasPassedFirstStage&&e.eat("{")?(n.hasPassedFirstStage=!0,"bracket"):n.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),n.hasPassedFirstStage=!1,n.tokenize=c,"def"):(n.tokenize=c,null)}function m(e,n){for(var t=!1,r;r=e.next();){if(r=="/"&&t){n.tokenize=c;break}t=r=="*"}return"comment"}function A(e){return function(n,t){for(var r=!1,d,z=!1;(d=n.next())!=null;){if(d==e&&!r){z=!0;break}r=!r&&d=="\\"}return(z||!r)&&(t.tokenize=c),"string"}}function C(){var e=s.concat(p);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}return{startState:function(){return{tokenize:c,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,n){return e.sol()&&(n.doInCurrentLine=0),n.tokenize(e,n)},indent:function(e,n){var t=n.replace(/^\s+|\s+$/g,"");return t.match(k)||t.match(h)||t.match(/(\[])/)?u.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*u.indentUnit},fold:"indent",electricInput:C(),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}}),i.defineMIME("text/x-oz","oz")})})();var g=_.exports;const j=F(g),$=O({__proto__:null,default:j},[g]);export{$ as o}; diff --git a/dist-ui/assets/pascal-D0O88NVj.js b/dist-ui/assets/pascal-BjHxOUZ0.js similarity index 97% rename from dist-ui/assets/pascal-D0O88NVj.js rename to dist-ui/assets/pascal-BjHxOUZ0.js index e2be6fb2..400a90f1 100644 --- a/dist-ui/assets/pascal-D0O88NVj.js +++ b/dist-ui/assets/pascal-BjHxOUZ0.js @@ -1 +1 @@ -import{g,c as h}from"./index-CFELAGmQ.js";function x(c,u){for(var o=0;oi[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(c,u){(function(o){o(h)})(function(o){o.defineMode("pascal",function(){function i(r){for(var t={},e=r.split(" "),n=0;n!?|\/]/;function b(r,t){var e=r.next();if(e=="#"&&t.startOfLine)return r.skipToEnd(),"meta";if(e=='"'||e=="'")return t.tokenize=v(e),t.tokenize(r,t);if(e=="("&&r.eat("*"))return t.tokenize=p,p(r,t);if(e=="{")return t.tokenize=d,d(r,t);if(/[\[\]\(\),;\:\.]/.test(e))return null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="/"&&r.eat("/"))return r.skipToEnd(),"comment";if(f.test(e))return r.eatWhile(f),"operator";r.eatWhile(/[\w\$_]/);var n=r.current();return a.propertyIsEnumerable(n)?"keyword":l.propertyIsEnumerable(n)?"atom":"variable"}function v(r){return function(t,e){for(var n=!1,s,m=!1;(s=t.next())!=null;){if(s==r&&!n){m=!0;break}n=!n&&s=="\\"}return(m||!n)&&(e.tokenize=null),"string"}}function p(r,t){for(var e=!1,n;n=r.next();){if(n==")"&&e){t.tokenize=null;break}e=n=="*"}return"comment"}function d(r,t){for(var e;e=r.next();)if(e=="}"){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(r,t){if(r.eatSpace())return null;var e=(t.tokenize||b)(r,t);return e=="comment"||e=="meta",e},electricChars:"{}"}}),o.defineMIME("text/x-pascal","pascal")})})();var k=y.exports;const w=g(k),E=x({__proto__:null,default:w},[k]);export{E as p}; +import{g,c as h}from"./index-F8NPuhC5.js";function x(c,u){for(var o=0;oi[a]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(c,u){(function(o){o(h)})(function(o){o.defineMode("pascal",function(){function i(r){for(var t={},e=r.split(" "),n=0;n!?|\/]/;function b(r,t){var e=r.next();if(e=="#"&&t.startOfLine)return r.skipToEnd(),"meta";if(e=='"'||e=="'")return t.tokenize=v(e),t.tokenize(r,t);if(e=="("&&r.eat("*"))return t.tokenize=p,p(r,t);if(e=="{")return t.tokenize=d,d(r,t);if(/[\[\]\(\),;\:\.]/.test(e))return null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="/"&&r.eat("/"))return r.skipToEnd(),"comment";if(f.test(e))return r.eatWhile(f),"operator";r.eatWhile(/[\w\$_]/);var n=r.current();return a.propertyIsEnumerable(n)?"keyword":l.propertyIsEnumerable(n)?"atom":"variable"}function v(r){return function(t,e){for(var n=!1,s,m=!1;(s=t.next())!=null;){if(s==r&&!n){m=!0;break}n=!n&&s=="\\"}return(m||!n)&&(e.tokenize=null),"string"}}function p(r,t){for(var e=!1,n;n=r.next();){if(n==")"&&e){t.tokenize=null;break}e=n=="*"}return"comment"}function d(r,t){for(var e;e=r.next();)if(e=="}"){t.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(r,t){if(r.eatSpace())return null;var e=(t.tokenize||b)(r,t);return e=="comment"||e=="meta",e},electricChars:"{}"}}),o.defineMIME("text/x-pascal","pascal")})})();var k=y.exports;const w=g(k),E=x({__proto__:null,default:w},[k]);export{E as p}; diff --git a/dist-ui/assets/pegjs-DZXOYIHw.js b/dist-ui/assets/pegjs-Cgw_0Smi.js similarity index 96% rename from dist-ui/assets/pegjs-DZXOYIHw.js rename to dist-ui/assets/pegjs-Cgw_0Smi.js index 96fd8d23..b5332f2b 100644 --- a/dist-ui/assets/pegjs-DZXOYIHw.js +++ b/dist-ui/assets/pegjs-Cgw_0Smi.js @@ -1 +1 @@ -import{g,c as h,a as d}from"./index-CFELAGmQ.js";function C(c,t){for(var i=0;il[r]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(c,t){(function(i){i(h,d())})(function(i){i.defineMode("pegjs",function(l){var r=i.getMode(l,"javascript");function o(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(e,n){if(!n.inString&&!n.inComment&&(e.peek()=='"'||e.peek()=="'")&&(n.stringType=e.peek(),e.next(),n.inString=!0),!n.inString&&!n.inComment&&e.match("/*")&&(n.inComment=!0),n.inString){for(;n.inString&&!e.eol();)e.peek()===n.stringType?(e.next(),n.inString=!1):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else if(n.inComment){for(;n.inComment&&!e.eol();)e.match("*/")?n.inComment=!1:e.match(/^.[^\*]*/);return"comment"}else if(n.inCharacterClass)for(;n.inCharacterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||(n.inCharacterClass=!1);else{if(e.peek()==="[")return e.next(),n.inCharacterClass=!0,"bracket";if(e.match("//"))return e.skipToEnd(),"comment";if(n.braced||e.peek()==="{"){n.localState===null&&(n.localState=i.startState(r));var u=r.token(e,n.localState),p=e.current();if(!u)for(var f=0;fl[r]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(c,t){(function(i){i(h,d())})(function(i){i.defineMode("pegjs",function(l){var r=i.getMode(l,"javascript");function o(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(e,n){if(!n.inString&&!n.inComment&&(e.peek()=='"'||e.peek()=="'")&&(n.stringType=e.peek(),e.next(),n.inString=!0),!n.inString&&!n.inComment&&e.match("/*")&&(n.inComment=!0),n.inString){for(;n.inString&&!e.eol();)e.peek()===n.stringType?(e.next(),n.inString=!1):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else if(n.inComment){for(;n.inComment&&!e.eol();)e.match("*/")?n.inComment=!1:e.match(/^.[^\*]*/);return"comment"}else if(n.inCharacterClass)for(;n.inCharacterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||(n.inCharacterClass=!1);else{if(e.peek()==="[")return e.next(),n.inCharacterClass=!0,"bracket";if(e.match("//"))return e.skipToEnd(),"comment";if(n.braced||e.peek()==="{"){n.localState===null&&(n.localState=i.startState(r));var u=r.token(e,n.localState),p=e.current();if(!u)for(var f=0;fl[R]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(d,c){(function(E){E(P)})(function(E){E.defineMode("perl",function(){var $={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},u="string-2",f=/[goseximacplud]/;function r(n,i,o,p,_){return i.chain=null,i.style=null,i.tail=null,i.tokenize=function(e,T){for(var S=!1,I,N=0;I=e.next();){if(I===o[N]&&!S)return o[++N]!==void 0?(T.chain=o[N],T.style=p,T.tail=_):_&&e.eatWhile(_),T.tokenize=g,p;S=!S&&I=="\\"}return p},i.tokenize(n,i)}function O(n,i,o){return i.tokenize=function(p,_){return p.string==o&&(_.tokenize=g),p.skipToEnd(),"string"},i.tokenize(n,i)}function g(n,i){if(n.eatSpace())return null;if(i.chain)return r(n,i,i.chain,i.style,i.tail);if(n.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(n.match(/^<<(?=[_a-zA-Z])/))return n.eatWhile(/\w/),O(n,i,n.current().substr(2));if(n.sol()&&n.match(/^\=item(?!\w)/))return O(n,i,"=cut");var o=n.next();if(o=='"'||o=="'"){if(R(n,3)=="<<"+o){var p=n.pos;n.eatWhile(/\w/);var _=n.current().substr(1);if(_&&n.eat(o))return O(n,i,_);n.pos=p}return r(n,i,[o],"string")}if(o=="q"){var e=l(n,-2);if(!(e&&/\w/.test(e))){if(e=l(n,0),e=="x"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],u,f);if(e=="[")return t(n,2),r(n,i,["]"],u,f);if(e=="{")return t(n,2),r(n,i,["}"],u,f);if(e=="<")return t(n,2),r(n,i,[">"],u,f);if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],u,f)}else if(e=="q"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],"string");if(e=="[")return t(n,2),r(n,i,["]"],"string");if(e=="{")return t(n,2),r(n,i,["}"],"string");if(e=="<")return t(n,2),r(n,i,[">"],"string");if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],"string")}else if(e=="w"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],"bracket");if(e=="[")return t(n,2),r(n,i,["]"],"bracket");if(e=="{")return t(n,2),r(n,i,["}"],"bracket");if(e=="<")return t(n,2),r(n,i,[">"],"bracket");if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],"bracket")}else if(e=="r"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],u,f);if(e=="[")return t(n,2),r(n,i,["]"],u,f);if(e=="{")return t(n,2),r(n,i,["}"],u,f);if(e=="<")return t(n,2),r(n,i,[">"],u,f);if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],u,f)}else if(/[\^'"!~\/(\[{<]/.test(e)){if(e=="(")return t(n,1),r(n,i,[")"],"string");if(e=="[")return t(n,1),r(n,i,["]"],"string");if(e=="{")return t(n,1),r(n,i,["}"],"string");if(e=="<")return t(n,1),r(n,i,[">"],"string");if(/[\^'"!~\/]/.test(e))return r(n,i,[n.eat(e)],"string")}}}if(o=="m"){var e=l(n,-2);if(!(e&&/\w/.test(e))&&(e=n.eat(/[(\[{<\^'"!~\/]/),e)){if(/[\^'"!~\/]/.test(e))return r(n,i,[e],u,f);if(e=="(")return r(n,i,[")"],u,f);if(e=="[")return r(n,i,["]"],u,f);if(e=="{")return r(n,i,["}"],u,f);if(e=="<")return r(n,i,[">"],u,f)}}if(o=="s"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="y"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="t"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat("r"),e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e)))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="`")return r(n,i,[o],"variable-2");if(o=="/")return/~\s*$/.test(R(n))?r(n,i,[o],u,f):"operator";if(o=="$"){var p=n.pos;if(n.eatWhile(/\d/)||n.eat("{")&&n.eatWhile(/\d/)&&n.eat("}"))return"variable-2";n.pos=p}if(/[$@%]/.test(o)){var p=n.pos;if(n.eat("^")&&n.eat(/[A-Z]/)||!/[@$%&]/.test(l(n,-2))&&n.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var e=n.current();if($[e])return"variable-2"}n.pos=p}if(/[$@%&]/.test(o)&&(n.eatWhile(/[\w$]/)||n.eat("{")&&n.eatWhile(/[\w$]/)&&n.eat("}"))){var e=n.current();return $[e]?"variable-2":"variable"}if(o=="#"&&l(n,-2)!="$")return n.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(o)){var p=n.pos;if(n.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),$[n.current()])return"operator";n.pos=p}if(o=="_"&&n.pos==1){if(A(n,6)=="_END__")return r(n,i,["\0"],"comment");if(A(n,7)=="_DATA__")return r(n,i,["\0"],"variable-2");if(A(n,7)=="_C__")return r(n,i,["\0"],"string")}if(/\w/.test(o)){var p=n.pos;if(l(n,-2)=="{"&&(l(n,0)=="}"||n.eatWhile(/\w/)&&l(n,0)=="}"))return"string";n.pos=p}if(/[A-Z]/.test(o)){var T=l(n,-2),p=n.pos;if(n.eatWhile(/[A-Z_]/),/[\da-z]/.test(l(n,0)))n.pos=p;else{var e=$[n.current()];return e?(e[1]&&(e=e[0]),T!=":"?e==1?"keyword":e==2?"def":e==3?"atom":e==4?"operator":e==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(o)){var T=l(n,-2);n.eatWhile(/\w/);var e=$[n.current()];return e?(e[1]&&(e=e[0]),T!=":"?e==1?"keyword":e==2?"def":e==3?"atom":e==4?"operator":e==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:g,chain:null,style:null,tail:null}},token:function(n,i){return(i.tokenize||g)(n,i)},lineComment:"#"}}),E.registerHelper("wordChars","perl",/[\w$]/),E.defineMIME("text/x-perl","perl");function l($,u){return $.string.charAt($.pos+(u||0))}function R($,u){if(u){var f=$.pos-u;return $.string.substr(f>=0?f:0,u)}else return $.string.substr(0,$.pos-1)}function A($,u){var f=$.string.length,r=f-$.pos+1;return $.string.substr($.pos,u&&u=(r=$.string.length-1)?$.pos=r:$.pos=f}})})();var v=k.exports;const D=h(v),y=b({__proto__:null,default:D},[v]);export{y as p}; +import{g as h,c as P}from"./index-F8NPuhC5.js";function b(d,c){for(var E=0;El[R]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(d,c){(function(E){E(P)})(function(E){E.defineMode("perl",function(){var $={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},u="string-2",f=/[goseximacplud]/;function r(n,i,o,p,_){return i.chain=null,i.style=null,i.tail=null,i.tokenize=function(e,T){for(var S=!1,I,N=0;I=e.next();){if(I===o[N]&&!S)return o[++N]!==void 0?(T.chain=o[N],T.style=p,T.tail=_):_&&e.eatWhile(_),T.tokenize=g,p;S=!S&&I=="\\"}return p},i.tokenize(n,i)}function O(n,i,o){return i.tokenize=function(p,_){return p.string==o&&(_.tokenize=g),p.skipToEnd(),"string"},i.tokenize(n,i)}function g(n,i){if(n.eatSpace())return null;if(i.chain)return r(n,i,i.chain,i.style,i.tail);if(n.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(n.match(/^<<(?=[_a-zA-Z])/))return n.eatWhile(/\w/),O(n,i,n.current().substr(2));if(n.sol()&&n.match(/^\=item(?!\w)/))return O(n,i,"=cut");var o=n.next();if(o=='"'||o=="'"){if(R(n,3)=="<<"+o){var p=n.pos;n.eatWhile(/\w/);var _=n.current().substr(1);if(_&&n.eat(o))return O(n,i,_);n.pos=p}return r(n,i,[o],"string")}if(o=="q"){var e=l(n,-2);if(!(e&&/\w/.test(e))){if(e=l(n,0),e=="x"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],u,f);if(e=="[")return t(n,2),r(n,i,["]"],u,f);if(e=="{")return t(n,2),r(n,i,["}"],u,f);if(e=="<")return t(n,2),r(n,i,[">"],u,f);if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],u,f)}else if(e=="q"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],"string");if(e=="[")return t(n,2),r(n,i,["]"],"string");if(e=="{")return t(n,2),r(n,i,["}"],"string");if(e=="<")return t(n,2),r(n,i,[">"],"string");if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],"string")}else if(e=="w"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],"bracket");if(e=="[")return t(n,2),r(n,i,["]"],"bracket");if(e=="{")return t(n,2),r(n,i,["}"],"bracket");if(e=="<")return t(n,2),r(n,i,[">"],"bracket");if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],"bracket")}else if(e=="r"){if(e=l(n,1),e=="(")return t(n,2),r(n,i,[")"],u,f);if(e=="[")return t(n,2),r(n,i,["]"],u,f);if(e=="{")return t(n,2),r(n,i,["}"],u,f);if(e=="<")return t(n,2),r(n,i,[">"],u,f);if(/[\^'"!~\/]/.test(e))return t(n,1),r(n,i,[n.eat(e)],u,f)}else if(/[\^'"!~\/(\[{<]/.test(e)){if(e=="(")return t(n,1),r(n,i,[")"],"string");if(e=="[")return t(n,1),r(n,i,["]"],"string");if(e=="{")return t(n,1),r(n,i,["}"],"string");if(e=="<")return t(n,1),r(n,i,[">"],"string");if(/[\^'"!~\/]/.test(e))return r(n,i,[n.eat(e)],"string")}}}if(o=="m"){var e=l(n,-2);if(!(e&&/\w/.test(e))&&(e=n.eat(/[(\[{<\^'"!~\/]/),e)){if(/[\^'"!~\/]/.test(e))return r(n,i,[e],u,f);if(e=="(")return r(n,i,[")"],u,f);if(e=="[")return r(n,i,["]"],u,f);if(e=="{")return r(n,i,["}"],u,f);if(e=="<")return r(n,i,[">"],u,f)}}if(o=="s"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="y"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="t"){var e=/[\/>\]})\w]/.test(l(n,-2));if(!e&&(e=n.eat("r"),e&&(e=n.eat(/[(\[{<\^'"!~\/]/),e)))return e=="["?r(n,i,["]","]"],u,f):e=="{"?r(n,i,["}","}"],u,f):e=="<"?r(n,i,[">",">"],u,f):e=="("?r(n,i,[")",")"],u,f):r(n,i,[e,e],u,f)}if(o=="`")return r(n,i,[o],"variable-2");if(o=="/")return/~\s*$/.test(R(n))?r(n,i,[o],u,f):"operator";if(o=="$"){var p=n.pos;if(n.eatWhile(/\d/)||n.eat("{")&&n.eatWhile(/\d/)&&n.eat("}"))return"variable-2";n.pos=p}if(/[$@%]/.test(o)){var p=n.pos;if(n.eat("^")&&n.eat(/[A-Z]/)||!/[@$%&]/.test(l(n,-2))&&n.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var e=n.current();if($[e])return"variable-2"}n.pos=p}if(/[$@%&]/.test(o)&&(n.eatWhile(/[\w$]/)||n.eat("{")&&n.eatWhile(/[\w$]/)&&n.eat("}"))){var e=n.current();return $[e]?"variable-2":"variable"}if(o=="#"&&l(n,-2)!="$")return n.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(o)){var p=n.pos;if(n.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),$[n.current()])return"operator";n.pos=p}if(o=="_"&&n.pos==1){if(A(n,6)=="_END__")return r(n,i,["\0"],"comment");if(A(n,7)=="_DATA__")return r(n,i,["\0"],"variable-2");if(A(n,7)=="_C__")return r(n,i,["\0"],"string")}if(/\w/.test(o)){var p=n.pos;if(l(n,-2)=="{"&&(l(n,0)=="}"||n.eatWhile(/\w/)&&l(n,0)=="}"))return"string";n.pos=p}if(/[A-Z]/.test(o)){var T=l(n,-2),p=n.pos;if(n.eatWhile(/[A-Z_]/),/[\da-z]/.test(l(n,0)))n.pos=p;else{var e=$[n.current()];return e?(e[1]&&(e=e[0]),T!=":"?e==1?"keyword":e==2?"def":e==3?"atom":e==4?"operator":e==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(o)){var T=l(n,-2);n.eatWhile(/\w/);var e=$[n.current()];return e?(e[1]&&(e=e[0]),T!=":"?e==1?"keyword":e==2?"def":e==3?"atom":e==4?"operator":e==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:g,chain:null,style:null,tail:null}},token:function(n,i){return(i.tokenize||g)(n,i)},lineComment:"#"}}),E.registerHelper("wordChars","perl",/[\w$]/),E.defineMIME("text/x-perl","perl");function l($,u){return $.string.charAt($.pos+(u||0))}function R($,u){if(u){var f=$.pos-u;return $.string.substr(f>=0?f:0,u)}else return $.string.substr(0,$.pos-1)}function A($,u){var f=$.string.length,r=f-$.pos+1;return $.string.substr($.pos,u&&u=(r=$.string.length-1)?$.pos=r:$.pos=f}})})();var v=k.exports;const D=h(v),y=b({__proto__:null,default:D},[v]);export{y as p}; diff --git a/dist-ui/assets/php-D7hQD33F.js b/dist-ui/assets/php-P11_atJ4.js similarity index 99% rename from dist-ui/assets/php-D7hQD33F.js rename to dist-ui/assets/php-P11_atJ4.js index 661b2bc4..c9cf5767 100644 --- a/dist-ui/assets/php-D7hQD33F.js +++ b/dist-ui/assets/php-P11_atJ4.js @@ -1 +1 @@ -import{g as x,c as S}from"./index-CFELAGmQ.js";import{r as z}from"./htmlmixed-D5WYNkec.js";import{a as j}from"./clike-BOEQ2M-s.js";function E(g,f){for(var i=0;ia[o]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(g,f){(function(i){i(S,z(),j)})(function(i){function a(t){for(var _={},l=t.split(" "),s=0;s\w/,!1)&&(_.tokenize=o([[["->",null]],[[/[\w]+/,"variable"]]],l,s)),"variable-2";for(var n=!1;!t.eol()&&(n||s===!1||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!n&&t.match(l)){_.tokenize=null,_.tokStack.pop(),_.tokStack.pop();break}n=t.next()=="\\"&&!n}return"string"}var y="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",h="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",q="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";i.registerHelper("hintWords","php",[y,h,q].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var k={name:"clike",helperType:"php",keywords:a(y),blockKeywords:a("catch do else elseif for foreach if switch try while finally"),defKeywords:a("class enum function interface namespace trait"),atoms:a(h),builtin:a(q),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,_){var l;if(l=t.match(/^<<\s*/)){var s=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var n=t.current().slice(l[0].length+(s?2:1));if(s&&t.eat(s),n)return(_.tokStack||(_.tokStack=[])).push(n,0),_.tokenize=c(n,s!="'"),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,_){return(_.tokStack||(_.tokStack=[])).push('"',0),_.tokenize=c('"'),"string"},"{":function(t,_){return _.tokStack&&_.tokStack.length&&_.tokStack[_.tokStack.length-1]++,!1},"}":function(t,_){return _.tokStack&&_.tokStack.length>0&&!--_.tokStack[_.tokStack.length-1]&&(_.tokenize=c(_.tokStack[_.tokStack.length-2])),!1}}};i.defineMode("php",function(t,_){var l=i.getMode(t,_&&_.htmlMode||"text/html"),s=i.getMode(t,k);function n(r,e){var p=e.curMode==s;if(r.sol()&&e.pending&&e.pending!='"'&&e.pending!="'"&&(e.pending=null),p)return p&&e.php.tokenize==null&&r.match("?>")?(e.curMode=l,e.curState=e.html,e.php.context.prev||(e.php=null),"meta"):s.token(r,e.curState);if(r.match(/^<\?\w*/))return e.curMode=s,e.php||(e.php=i.startState(s,l.indent(e.html,"",""))),e.curState=e.php,"meta";if(e.pending=='"'||e.pending=="'"){for(;!r.eol()&&r.next()!=e.pending;);var m="string"}else if(e.pending&&r.pos/.test(u)?e.pending=b[0]:e.pending={end:r.pos,style:m},r.backUp(u.length-d)),m}return{startState:function(){var r=i.startState(l),e=_.startOpen?i.startState(s):null;return{html:r,php:e,curMode:_.startOpen?s:l,curState:_.startOpen?e:r,pending:null}},copyState:function(r){var e=r.html,p=i.copyState(l,e),m=r.php,u=m&&i.copyState(s,m),d;return r.curMode==l?d=p:d=u,{html:p,php:u,curMode:r.curMode,curState:d,pending:r.pending}},token:n,indent:function(r,e,p){return r.curMode!=s&&/^\s*<\//.test(e)||r.curMode==s&&/^\?>/.test(e)?l.indent(r.html,e,p):r.curMode.indent(r.curState,e,p)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(r){return{state:r.curState,mode:r.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",k)})})();var v=M.exports;const $=x(v),N=E({__proto__:null,default:$},[v]);export{N as p}; +import{g as x,c as S}from"./index-F8NPuhC5.js";import{r as z}from"./htmlmixed-B3bg9pWJ.js";import{a as j}from"./clike-sVYb-QDY.js";function E(g,f){for(var i=0;ia[o]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(g,f){(function(i){i(S,z(),j)})(function(i){function a(t){for(var _={},l=t.split(" "),s=0;s\w/,!1)&&(_.tokenize=o([[["->",null]],[[/[\w]+/,"variable"]]],l,s)),"variable-2";for(var n=!1;!t.eol()&&(n||s===!1||!t.match("{$",!1)&&!t.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!n&&t.match(l)){_.tokenize=null,_.tokStack.pop(),_.tokStack.pop();break}n=t.next()=="\\"&&!n}return"string"}var y="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",h="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",q="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";i.registerHelper("hintWords","php",[y,h,q].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var k={name:"clike",helperType:"php",keywords:a(y),blockKeywords:a("catch do else elseif for foreach if switch try while finally"),defKeywords:a("class enum function interface namespace trait"),atoms:a(h),builtin:a(q),multiLineStrings:!0,hooks:{$:function(t){return t.eatWhile(/[\w\$_]/),"variable-2"},"<":function(t,_){var l;if(l=t.match(/^<<\s*/)){var s=t.eat(/['"]/);t.eatWhile(/[\w\.]/);var n=t.current().slice(l[0].length+(s?2:1));if(s&&t.eat(s),n)return(_.tokStack||(_.tokStack=[])).push(n,0),_.tokenize=c(n,s!="'"),"string"}return!1},"#":function(t){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"},"/":function(t){if(t.eat("/")){for(;!t.eol()&&!t.match("?>",!1);)t.next();return"comment"}return!1},'"':function(t,_){return(_.tokStack||(_.tokStack=[])).push('"',0),_.tokenize=c('"'),"string"},"{":function(t,_){return _.tokStack&&_.tokStack.length&&_.tokStack[_.tokStack.length-1]++,!1},"}":function(t,_){return _.tokStack&&_.tokStack.length>0&&!--_.tokStack[_.tokStack.length-1]&&(_.tokenize=c(_.tokStack[_.tokStack.length-2])),!1}}};i.defineMode("php",function(t,_){var l=i.getMode(t,_&&_.htmlMode||"text/html"),s=i.getMode(t,k);function n(r,e){var p=e.curMode==s;if(r.sol()&&e.pending&&e.pending!='"'&&e.pending!="'"&&(e.pending=null),p)return p&&e.php.tokenize==null&&r.match("?>")?(e.curMode=l,e.curState=e.html,e.php.context.prev||(e.php=null),"meta"):s.token(r,e.curState);if(r.match(/^<\?\w*/))return e.curMode=s,e.php||(e.php=i.startState(s,l.indent(e.html,"",""))),e.curState=e.php,"meta";if(e.pending=='"'||e.pending=="'"){for(;!r.eol()&&r.next()!=e.pending;);var m="string"}else if(e.pending&&r.pos/.test(u)?e.pending=b[0]:e.pending={end:r.pos,style:m},r.backUp(u.length-d)),m}return{startState:function(){var r=i.startState(l),e=_.startOpen?i.startState(s):null;return{html:r,php:e,curMode:_.startOpen?s:l,curState:_.startOpen?e:r,pending:null}},copyState:function(r){var e=r.html,p=i.copyState(l,e),m=r.php,u=m&&i.copyState(s,m),d;return r.curMode==l?d=p:d=u,{html:p,php:u,curMode:r.curMode,curState:d,pending:r.pending}},token:n,indent:function(r,e,p){return r.curMode!=s&&/^\s*<\//.test(e)||r.curMode==s&&/^\?>/.test(e)?l.indent(r.html,e,p):r.curMode.indent(r.curState,e,p)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(r){return{state:r.curState,mode:r.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",k)})})();var v=M.exports;const $=x(v),N=E({__proto__:null,default:$},[v]);export{N as p}; diff --git a/dist-ui/assets/pig-CaL67Oog.js b/dist-ui/assets/pig-DvZFIZiC.js similarity index 98% rename from dist-ui/assets/pig-CaL67Oog.js rename to dist-ui/assets/pig-DvZFIZiC.js index d9534d06..4625357d 100644 --- a/dist-ui/assets/pig-CaL67Oog.js +++ b/dist-ui/assets/pig-DvZFIZiC.js @@ -1 +1 @@ -import{g as s,c as G}from"./index-CFELAGmQ.js";function M(S,u){for(var n=0;nT[r]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(S,u){(function(n){n(G)})(function(n){n.defineMode("pig",function(T,r){var E=r.keywords,i=r.builtins,R=r.types,o=r.multiLineStrings,N=/[*+\-%<>=&?:\/!|]/;function A(e,O,t){return O.tokenize=t,t(e,O)}function f(e,O){for(var t=!1,I;I=e.next();){if(I=="/"&&t){O.tokenize=L;break}t=I=="*"}return"comment"}function a(e){return function(O,t){for(var I=!1,l,p=!1;(l=O.next())!=null;){if(l==e&&!I){p=!0;break}I=!I&&l=="\\"}return(p||!(I||o))&&(t.tokenize=L),"error"}}function L(e,O){var t=e.next();return t=='"'||t=="'"?A(e,O,a(t)):/[\[\]{}\(\),;\.]/.test(t)?null:/\d/.test(t)?(e.eatWhile(/[\w\.]/),"number"):t=="/"?e.eat("*")?A(e,O,f):(e.eatWhile(N),"operator"):t=="-"?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(N),"operator"):N.test(t)?(e.eatWhile(N),"operator"):(e.eatWhile(/[\w\$_]/),E&&E.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":R&&R.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:L,startOfLine:!0}},token:function(e,O){if(e.eatSpace())return null;var t=O.tokenize(e,O);return t}}}),function(){function T(R){for(var o={},N=R.split(" "),A=0;AT[r]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(S,u){(function(n){n(G)})(function(n){n.defineMode("pig",function(T,r){var E=r.keywords,i=r.builtins,R=r.types,o=r.multiLineStrings,N=/[*+\-%<>=&?:\/!|]/;function A(e,O,t){return O.tokenize=t,t(e,O)}function f(e,O){for(var t=!1,I;I=e.next();){if(I=="/"&&t){O.tokenize=L;break}t=I=="*"}return"comment"}function a(e){return function(O,t){for(var I=!1,l,p=!1;(l=O.next())!=null;){if(l==e&&!I){p=!0;break}I=!I&&l=="\\"}return(p||!(I||o))&&(t.tokenize=L),"error"}}function L(e,O){var t=e.next();return t=='"'||t=="'"?A(e,O,a(t)):/[\[\]{}\(\),;\.]/.test(t)?null:/\d/.test(t)?(e.eatWhile(/[\w\.]/),"number"):t=="/"?e.eat("*")?A(e,O,f):(e.eatWhile(N),"operator"):t=="-"?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(N),"operator"):N.test(t)?(e.eatWhile(N),"operator"):(e.eatWhile(/[\w\$_]/),E&&E.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":i&&i.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":R&&R.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":"variable")}return{startState:function(){return{tokenize:L,startOfLine:!0}},token:function(e,O){if(e.eatSpace())return null;var t=O.tokenize(e,O);return t}}}),function(){function T(R){for(var o={},N=R.split(" "),A=0;Ai[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var V={exports:{}};(function(l,f){(function(u){u(W)})(function(u){u.defineMode("powershell",function(){function i(e,r){r=r||{};for(var n=r.prefix!==void 0?r.prefix:"^",o=r.suffix!==void 0?r.suffix:"\\b",t=0;t/,y=i([x,E],{suffix:""}),w=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,M=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,R=/[A-Z]:|%|\?/i,I=i([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),j=i([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),z=i([R,I,j],{suffix:c}),m={keyword:h,number:w,operator:y,builtin:z,punctuation:k,identifier:M};function a(e,r){var n=r.returnStack[r.returnStack.length-1];if(n&&n.shouldReturnFrom(r))return r.tokenize=n.tokenize,r.returnStack.pop(),r.tokenize(e,r);if(e.eatSpace())return null;if(e.eat("("))return r.bracketNesting+=1,"punctuation";if(e.eat(")"))return r.bracketNesting-=1,"punctuation";for(var o in m)if(e.match(m[o]))return o;var t=e.next();if(t==="'")return O(e,r);if(t==="$")return S(e,r);if(t==='"')return d(e,r);if(t==="<"&&e.eat("#"))return r.tokenize=v,v(e,r);if(t==="#")return e.skipToEnd(),"comment";if(t==="@"){var b=e.eat(/["']/);if(b&&e.eol())return r.tokenize=p,r.startQuote=b[0],p(e,r);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(s))return S(e,r)}return"error"}function O(e,r){for(var n;(n=e.peek())!=null;)if(e.next(),n==="'"&&!e.eat("'"))return r.tokenize=a,"string";return"error"}function d(e,r){for(var n;(n=e.peek())!=null;){if(n==="$")return r.tokenize=D,"string";if(e.next(),n==="`"){e.next();continue}if(n==='"'&&!e.eat('"'))return r.tokenize=a,"string"}return"error"}function D(e,r){return g(e,r,d)}function T(e,r){return r.tokenize=p,r.startQuote='"',p(e,r)}function A(e,r){return g(e,r,T)}function g(e,r,n){if(e.match("$(")){var o=r.bracketNesting;return r.returnStack.push({shouldReturnFrom:function(t){return t.bracketNesting===o},tokenize:n}),r.tokenize=a,r.bracketNesting+=1,"punctuation"}else return e.next(),r.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),r.tokenize=S,r.tokenize(e,r)}function v(e,r){for(var n=!1,o;(o=e.next())!=null;){if(n&&o==">"){r.tokenize=a;break}n=o==="#"}return"comment"}function S(e,r){var n=e.peek();return e.eat("{")?(r.tokenize=P,P(e,r)):n!=null&&n.match(s)?(e.eatWhile(s),r.tokenize=a,"variable-2"):(r.tokenize=a,"error")}function P(e,r){for(var n;(n=e.next())!=null;)if(n==="}"){r.tokenize=a;break}return"variable-2"}function p(e,r){var n=r.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))r.tokenize=a;else if(n==='"')for(;!e.eol();){var o=e.peek();if(o==="$")return r.tokenize=A,"string";e.next(),o==="`"&&e.next()}else e.skipToEnd();return"string"}var F={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:a}},token:function(e,r){return r.tokenize(e,r)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return F}),u.defineMIME("application/x-powershell","powershell")})})();var C=V.exports;const N=H(C),J=L({__proto__:null,default:N},[C]);export{J as p}; +import{g as H,c as W}from"./index-F8NPuhC5.js";function L(l,f){for(var u=0;ui[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var V={exports:{}};(function(l,f){(function(u){u(W)})(function(u){u.defineMode("powershell",function(){function i(e,r){r=r||{};for(var n=r.prefix!==void 0?r.prefix:"^",o=r.suffix!==void 0?r.suffix:"\\b",t=0;t/,y=i([x,E],{suffix:""}),w=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,M=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,R=/[A-Z]:|%|\?/i,I=i([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),j=i([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),z=i([R,I,j],{suffix:c}),m={keyword:h,number:w,operator:y,builtin:z,punctuation:k,identifier:M};function a(e,r){var n=r.returnStack[r.returnStack.length-1];if(n&&n.shouldReturnFrom(r))return r.tokenize=n.tokenize,r.returnStack.pop(),r.tokenize(e,r);if(e.eatSpace())return null;if(e.eat("("))return r.bracketNesting+=1,"punctuation";if(e.eat(")"))return r.bracketNesting-=1,"punctuation";for(var o in m)if(e.match(m[o]))return o;var t=e.next();if(t==="'")return O(e,r);if(t==="$")return S(e,r);if(t==='"')return d(e,r);if(t==="<"&&e.eat("#"))return r.tokenize=v,v(e,r);if(t==="#")return e.skipToEnd(),"comment";if(t==="@"){var b=e.eat(/["']/);if(b&&e.eol())return r.tokenize=p,r.startQuote=b[0],p(e,r);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(s))return S(e,r)}return"error"}function O(e,r){for(var n;(n=e.peek())!=null;)if(e.next(),n==="'"&&!e.eat("'"))return r.tokenize=a,"string";return"error"}function d(e,r){for(var n;(n=e.peek())!=null;){if(n==="$")return r.tokenize=D,"string";if(e.next(),n==="`"){e.next();continue}if(n==='"'&&!e.eat('"'))return r.tokenize=a,"string"}return"error"}function D(e,r){return g(e,r,d)}function T(e,r){return r.tokenize=p,r.startQuote='"',p(e,r)}function A(e,r){return g(e,r,T)}function g(e,r,n){if(e.match("$(")){var o=r.bracketNesting;return r.returnStack.push({shouldReturnFrom:function(t){return t.bracketNesting===o},tokenize:n}),r.tokenize=a,r.bracketNesting+=1,"punctuation"}else return e.next(),r.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),r.tokenize=S,r.tokenize(e,r)}function v(e,r){for(var n=!1,o;(o=e.next())!=null;){if(n&&o==">"){r.tokenize=a;break}n=o==="#"}return"comment"}function S(e,r){var n=e.peek();return e.eat("{")?(r.tokenize=P,P(e,r)):n!=null&&n.match(s)?(e.eatWhile(s),r.tokenize=a,"variable-2"):(r.tokenize=a,"error")}function P(e,r){for(var n;(n=e.next())!=null;)if(n==="}"){r.tokenize=a;break}return"variable-2"}function p(e,r){var n=r.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))r.tokenize=a;else if(n==='"')for(;!e.eol();){var o=e.peek();if(o==="$")return r.tokenize=A,"string";e.next(),o==="`"&&e.next()}else e.skipToEnd();return"string"}var F={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:a}},token:function(e,r){return r.tokenize(e,r)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return F}),u.defineMIME("application/x-powershell","powershell")})})();var C=V.exports;const N=H(C),J=L({__proto__:null,default:N},[C]);export{J as p}; diff --git a/dist-ui/assets/properties-XjQosx_y.js b/dist-ui/assets/properties-Bs9Ekzv_.js similarity index 95% rename from dist-ui/assets/properties-XjQosx_y.js rename to dist-ui/assets/properties-Bs9Ekzv_.js index 845cd33b..6a3f2b51 100644 --- a/dist-ui/assets/properties-XjQosx_y.js +++ b/dist-ui/assets/properties-Bs9Ekzv_.js @@ -1 +1 @@ -import{g as u,c}from"./index-CFELAGmQ.js";function s(r,f){for(var o=0;oi[e]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(r,f){(function(o){o(c)})(function(o){o.defineMode("properties",function(){return{token:function(i,e){var n=i.sol()||e.afterSection,p=i.eol();if(e.afterSection=!1,n&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),p&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),n)for(;i.eatSpace(););var t=i.next();return n&&(t==="#"||t==="!"||t===";")?(e.position="comment",i.skipToEnd(),"comment"):n&&t==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):t==="="||t===":"?(e.position="quote",null):(t==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),o.defineMIME("text/x-properties","properties"),o.defineMIME("text/x-ini","properties")})})();var l=x.exports;const d=u(l),M=s({__proto__:null,default:d},[l]);export{M as p}; +import{g as u,c}from"./index-F8NPuhC5.js";function s(r,f){for(var o=0;oi[e]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(r,f){(function(o){o(c)})(function(o){o.defineMode("properties",function(){return{token:function(i,e){var n=i.sol()||e.afterSection,p=i.eol();if(e.afterSection=!1,n&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),p&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),n)for(;i.eatSpace(););var t=i.next();return n&&(t==="#"||t==="!"||t===";")?(e.position="comment",i.skipToEnd(),"comment"):n&&t==="["?(e.afterSection=!0,i.skipTo("]"),i.eat("]"),"header"):t==="="||t===":"?(e.position="quote",null):(t==="\\"&&e.position==="quote"&&i.eol()&&(e.nextMultiline=!0),e.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),o.defineMIME("text/x-properties","properties"),o.defineMIME("text/x-ini","properties")})})();var l=x.exports;const d=u(l),M=s({__proto__:null,default:d},[l]);export{M as p}; diff --git a/dist-ui/assets/protobuf-D4yqdkut.js b/dist-ui/assets/protobuf-D7aM91TC.js similarity index 95% rename from dist-ui/assets/protobuf-D4yqdkut.js rename to dist-ui/assets/protobuf-D7aM91TC.js index 0bd67aa0..be8304bc 100644 --- a/dist-ui/assets/protobuf-D4yqdkut.js +++ b/dist-ui/assets/protobuf-D7aM91TC.js @@ -1 +1 @@ -import{g as c,c as d}from"./index-CFELAGmQ.js";function s(f,i){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(f,i){(function(t){t(d)})(function(t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],o=n(r);t.registerHelper("hintWords","protobuf",r);var a=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function p(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(a)?"variable":(e.next(),null)}t.defineMode("protobuf",function(){return{token:p,fold:"brace"}}),t.defineMIME("text/x-protobuf","protobuf")})})();var u=l.exports;const b=c(u),g=s({__proto__:null,default:b},[u]);export{g as p}; +import{g as c,c as d}from"./index-F8NPuhC5.js";function s(f,i){for(var t=0;tn[r]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}};(function(f,i){(function(t){t(d)})(function(t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],o=n(r);t.registerHelper("hintWords","protobuf",r);var a=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function p(e){return e.eatSpace()?null:e.match("//")?(e.skipToEnd(),"comment"):e.match(/^[0-9\.+-]/,!1)&&(e.match(/^[+-]?0x[0-9a-fA-F]+/)||e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))?"number":e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(o)?"keyword":e.match(a)?"variable":(e.next(),null)}t.defineMode("protobuf",function(){return{token:p,fold:"brace"}}),t.defineMIME("text/x-protobuf","protobuf")})})();var u=l.exports;const b=c(u),g=s({__proto__:null,default:b},[u]);export{g as p}; diff --git a/dist-ui/assets/pug-CRVKTuYC.js b/dist-ui/assets/pug-Bb9DWsBH.js similarity index 97% rename from dist-ui/assets/pug-CRVKTuYC.js rename to dist-ui/assets/pug-Bb9DWsBH.js index aeda9518..84df4d8e 100644 --- a/dist-ui/assets/pug-CRVKTuYC.js +++ b/dist-ui/assets/pug-Bb9DWsBH.js @@ -1 +1 @@ -import{g as un,c as cn,a as fn}from"./index-CFELAGmQ.js";import{a as ln}from"./css-B4l1-bAT.js";import{r as on}from"./htmlmixed-D5WYNkec.js";function an(l,o){for(var r=0;ru[t]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var pn={exports:{}};(function(l,o){(function(r){r(cn,fn(),ln,on())})(function(r){r.defineMode("pug",function(u){var t="keyword",f="meta",j="builtin",b="qualifier",h={"{":"}","(":")","[":"]"},c=r.getMode(u,"javascript");function a(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=r.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}a.prototype.copy=function(){var n=new a;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=r.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=r.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function A(n){if(n.match(/^yield\b/))return"keyword"}function x(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return f}function s(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function k(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,t}function O(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,t}function N(n){if(n.match(/^default\b/))return t}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",t}function E(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",t}function I(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",t}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",t}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",t}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,t}function C(n,i){if(i.isIncludeFiltered){var e=d(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function V(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,t}function _(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,s(n,i)}function m(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,t}function q(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,t}function $(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,t;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function z(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,t}function R(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function d(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=r.getMode(u,e)),p(n,i,e),"atom"}}function Y(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function H(n){if(n.match(/^\.([\w-]+)/))return b}function J(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function S(n,i){if(i.isAttrs){if(h[n.peek()]&&i.attrsNest.push(h[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=r.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),S(n,i)}catch(sn){}return i.attrValue+=n.current(),e||!0}}function K(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function U(n){if(n.sol()&&n.eatSpace())return"indent"}function W(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function Z(n){if(n.match(/^: */))return"colon"}function G(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return p(n,i,"htmlmixed"),i.innerModeForLine=!0,v(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),p(n,i,e),"dot"}}function X(n){return n.next(),null}function p(n,i,e){e=r.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=r.mimeModes[e]||e,e=r.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function v(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?r.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new a}function tn(n){return n.copy()}function rn(n,i){var e=v(n,i)||nn(n,i)||T(n,i)||C(n,i)||$(n,i)||S(n,i)||L(n,i)||y(n,i)||m(n,i)||A(n)||x(n)||s(n,i)||k(n,i)||O(n,i)||N(n)||w(n,i)||E(n,i)||I(n,i)||F(n,i)||D(n,i)||M(n,i)||V(n,i)||_(n,i)||P(n,i)||q(n,i)||z(n,i)||R(n,i)||d(n,i)||Y(n,i)||B(n)||H(n)||J(n,i)||K(n,i)||U(n)||G(n,i)||W(n,i)||Z(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),r.defineMIME("text/x-pug","pug"),r.defineMIME("text/x-jade","pug")})})();var g=pn.exports;const hn=un(g),gn=an({__proto__:null,default:hn},[g]);export{g as a,gn as p}; +import{g as un,c as cn,a as fn}from"./index-F8NPuhC5.js";import{a as ln}from"./css-DjQyQoVX.js";import{r as on}from"./htmlmixed-B3bg9pWJ.js";function an(l,o){for(var r=0;ru[t]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var pn={exports:{}};(function(l,o){(function(r){r(cn,fn(),ln,on())})(function(r){r.defineMode("pug",function(u){var t="keyword",f="meta",j="builtin",b="qualifier",h={"{":"}","(":")","[":"]"},c=r.getMode(u,"javascript");function a(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=r.startState(c),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}a.prototype.copy=function(){var n=new a;return n.javaScriptLine=this.javaScriptLine,n.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,n.javaScriptArguments=this.javaScriptArguments,n.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,n.isInterpolating=this.isInterpolating,n.interpolationNesting=this.interpolationNesting,n.jsState=r.copyState(c,this.jsState),n.innerMode=this.innerMode,this.innerMode&&this.innerState&&(n.innerState=r.copyState(this.innerMode,this.innerState)),n.restOfLine=this.restOfLine,n.isIncludeFiltered=this.isIncludeFiltered,n.isEach=this.isEach,n.lastTag=this.lastTag,n.scriptType=this.scriptType,n.isAttrs=this.isAttrs,n.attrsNest=this.attrsNest.slice(),n.inAttributeName=this.inAttributeName,n.attributeIsType=this.attributeIsType,n.attrValue=this.attrValue,n.indentOf=this.indentOf,n.indentToken=this.indentToken,n.innerModeForLine=this.innerModeForLine,n};function L(n,i){if(n.sol()&&(i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1),i.javaScriptLine){if(i.javaScriptLineExcludesColon&&n.peek()===":"){i.javaScriptLine=!1,i.javaScriptLineExcludesColon=!1;return}var e=c.token(n,i.jsState);return n.eol()&&(i.javaScriptLine=!1),e||!0}}function y(n,i){if(i.javaScriptArguments){if(i.javaScriptArgumentsDepth===0&&n.peek()!=="("){i.javaScriptArguments=!1;return}if(n.peek()==="("?i.javaScriptArgumentsDepth++:n.peek()===")"&&i.javaScriptArgumentsDepth--,i.javaScriptArgumentsDepth===0){i.javaScriptArguments=!1;return}var e=c.token(n,i.jsState);return e||!0}}function A(n){if(n.match(/^yield\b/))return"keyword"}function x(n){if(n.match(/^(?:doctype) *([^\n]+)?/))return f}function s(n,i){if(n.match("#{"))return i.isInterpolating=!0,i.interpolationNesting=0,"punctuation"}function T(n,i){if(i.isInterpolating){if(n.peek()==="}"){if(i.interpolationNesting--,i.interpolationNesting<0)return n.next(),i.isInterpolating=!1,"punctuation"}else n.peek()==="{"&&i.interpolationNesting++;return c.token(n,i.jsState)||!0}}function k(n,i){if(n.match(/^case\b/))return i.javaScriptLine=!0,t}function O(n,i){if(n.match(/^when\b/))return i.javaScriptLine=!0,i.javaScriptLineExcludesColon=!0,t}function N(n){if(n.match(/^default\b/))return t}function w(n,i){if(n.match(/^extends?\b/))return i.restOfLine="string",t}function E(n,i){if(n.match(/^append\b/))return i.restOfLine="variable",t}function I(n,i){if(n.match(/^prepend\b/))return i.restOfLine="variable",t}function F(n,i){if(n.match(/^block\b *(?:(prepend|append)\b)?/))return i.restOfLine="variable",t}function D(n,i){if(n.match(/^include\b/))return i.restOfLine="string",t}function M(n,i){if(n.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&n.match("include"))return i.isIncludeFiltered=!0,t}function C(n,i){if(i.isIncludeFiltered){var e=d(n,i);return i.isIncludeFiltered=!1,i.restOfLine="string",e}}function V(n,i){if(n.match(/^mixin\b/))return i.javaScriptLine=!0,t}function _(n,i){if(n.match(/^\+([-\w]+)/))return n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),"variable";if(n.match("+#{",!1))return n.next(),i.mixinCallAfter=!0,s(n,i)}function m(n,i){if(i.mixinCallAfter)return i.mixinCallAfter=!1,n.match(/^\( *[-\w]+ *=/,!1)||(i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0),!0}function P(n,i){if(n.match(/^(if|unless|else if|else)\b/))return i.javaScriptLine=!0,t}function q(n,i){if(n.match(/^(- *)?(each|for)\b/))return i.isEach=!0,t}function $(n,i){if(i.isEach){if(n.match(/^ in\b/))return i.javaScriptLine=!0,i.isEach=!1,t;if(n.sol()||n.eol())i.isEach=!1;else if(n.next()){for(;!n.match(/^ in\b/,!1)&&n.next(););return"variable"}}}function z(n,i){if(n.match(/^while\b/))return i.javaScriptLine=!0,t}function R(n,i){var e;if(e=n.match(/^(\w(?:[-:\w]*\w)?)\/?/))return i.lastTag=e[1].toLowerCase(),i.lastTag==="script"&&(i.scriptType="application/javascript"),"tag"}function d(n,i){if(n.match(/^:([\w\-]+)/)){var e;return u&&u.innerModes&&(e=u.innerModes(n.current().substring(1))),e||(e=n.current().substring(1)),typeof e=="string"&&(e=r.getMode(u,e)),p(n,i,e),"atom"}}function Y(n,i){if(n.match(/^(!?=|-)/))return i.javaScriptLine=!0,"punctuation"}function B(n){if(n.match(/^#([\w-]+)/))return j}function H(n){if(n.match(/^\.([\w-]+)/))return b}function J(n,i){if(n.peek()=="(")return n.next(),i.isAttrs=!0,i.attrsNest=[],i.inAttributeName=!0,i.attrValue="",i.attributeIsType=!1,"punctuation"}function S(n,i){if(i.isAttrs){if(h[n.peek()]&&i.attrsNest.push(h[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return(n.peek()==="="||n.peek()==="!")&&(i.inAttributeName=!1,i.jsState=r.startState(c),i.lastTag==="script"&&n.current().trim().toLowerCase()==="type"?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var e=c.token(n,i.jsState);if(i.attributeIsType&&e==="string"&&(i.scriptType=n.current().toString()),i.attrsNest.length===0&&(e==="string"||e==="variable"||e==="keyword"))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),S(n,i)}catch(sn){}return i.attrValue+=n.current(),e||!0}}function K(n,i){if(n.match(/^&attributes\b/))return i.javaScriptArguments=!0,i.javaScriptArgumentsDepth=0,"keyword"}function U(n){if(n.sol()&&n.eatSpace())return"indent"}function W(n,i){if(n.match(/^ *\/\/(-)?([^\n]*)/))return i.indentOf=n.indentation(),i.indentToken="comment","comment"}function Z(n){if(n.match(/^: */))return"colon"}function G(n,i){if(n.match(/^(?:\| ?| )([^\n]+)/))return"string";if(n.match(/^(<[^\n]*)/,!1))return p(n,i,"htmlmixed"),i.innerModeForLine=!0,v(n,i,!0)}function Q(n,i){if(n.eat(".")){var e=null;return i.lastTag==="script"&&i.scriptType.toLowerCase().indexOf("javascript")!=-1?e=i.scriptType.toLowerCase().replace(/"|'/g,""):i.lastTag==="style"&&(e="css"),p(n,i,e),"dot"}}function X(n){return n.next(),null}function p(n,i,e){e=r.mimeModes[e]||e,e=u.innerModes&&u.innerModes(e)||e,e=r.mimeModes[e]||e,e=r.getMode(u,e),i.indentOf=n.indentation(),e&&e.name!=="null"?i.innerMode=e:i.indentToken="string"}function v(n,i,e){if(n.indentation()>i.indentOf||i.innerModeForLine&&!n.sol()||e)return i.innerMode?(i.innerState||(i.innerState=i.innerMode.startState?r.startState(i.innerMode,n.indentation()):{}),n.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(n,i.innerState)||!0})):(n.skipToEnd(),i.indentToken);n.sol()&&(i.indentOf=1/0,i.indentToken=null,i.innerMode=null,i.innerState=null)}function nn(n,i){if(n.sol()&&(i.restOfLine=""),i.restOfLine){n.skipToEnd();var e=i.restOfLine;return i.restOfLine="",e}}function en(){return new a}function tn(n){return n.copy()}function rn(n,i){var e=v(n,i)||nn(n,i)||T(n,i)||C(n,i)||$(n,i)||S(n,i)||L(n,i)||y(n,i)||m(n,i)||A(n)||x(n)||s(n,i)||k(n,i)||O(n,i)||N(n)||w(n,i)||E(n,i)||I(n,i)||F(n,i)||D(n,i)||M(n,i)||V(n,i)||_(n,i)||P(n,i)||q(n,i)||z(n,i)||R(n,i)||d(n,i)||Y(n,i)||B(n)||H(n)||J(n,i)||K(n,i)||U(n)||G(n,i)||W(n,i)||Z(n)||Q(n,i)||X(n);return e===!0?null:e}return{startState:en,copyState:tn,token:rn}},"javascript","css","htmlmixed"),r.defineMIME("text/x-pug","pug"),r.defineMIME("text/x-jade","pug")})})();var g=pn.exports;const hn=un(g),gn=an({__proto__:null,default:hn},[g]);export{g as a,gn as p}; diff --git a/dist-ui/assets/puppet-BEs-TqvF.js b/dist-ui/assets/puppet-BwYp0v8r.js similarity index 97% rename from dist-ui/assets/puppet-BEs-TqvF.js rename to dist-ui/assets/puppet-BwYp0v8r.js index ab21f5ce..1738caed 100644 --- a/dist-ui/assets/puppet-BEs-TqvF.js +++ b/dist-ui/assets/puppet-BwYp0v8r.js @@ -1 +1 @@ -import{g as _,c as v}from"./index-CFELAGmQ.js";function b(f,l){for(var o=0;ot[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(f,l){(function(o){o(v)})(function(o){o.defineMode("puppet",function(){var t={},u=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function c(e,n){for(var i=n.split(" "),a=0;a.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),r=e.next();if(r==="$")return e.match(u)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):a?(e.match(/(\s+)?\w+/),"tag"):i&&t.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),t[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):r=="#"?(e.skipToEnd(),"comment"):r=="'"||r=='"'?(n.pending=r,p(e,n)):r=="{"||r=="}"?"bracket":r=="/"?(e.match(/^[^\/]*\//),"variable-3"):r.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):r=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),o.defineMIME("text/x-puppet","puppet")})})();var d=k.exports;const w=_(d),y=b({__proto__:null,default:w},[d]);export{y as p}; +import{g as _,c as v}from"./index-F8NPuhC5.js";function b(f,l){for(var o=0;ot[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var k={exports:{}};(function(f,l){(function(o){o(v)})(function(o){o.defineMode("puppet",function(){var t={},u=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function c(e,n){for(var i=n.split(" "),a=0;a.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),r=e.next();if(r==="$")return e.match(u)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),p(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):a?(e.match(/(\s+)?\w+/),"tag"):i&&t.hasOwnProperty(i)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),i=="include"&&(n.inInclude=!0),t[i]):/(^|\s+)[A-Z][\w:_]+/.test(i)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):h?(e.match(/(\s+)?[@]{1,2}/),"special"):r=="#"?(e.skipToEnd(),"comment"):r=="'"||r=='"'?(n.pending=r,p(e,n)):r=="{"||r=="}"?"bracket":r=="/"?(e.match(/^[^\/]*\//),"variable-3"):r.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):r=="="?(e.peek()==">"&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}return{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,n){return e.eatSpace()?null:g(e,n)}}}),o.defineMIME("text/x-puppet","puppet")})})();var d=k.exports;const w=_(d),y=b({__proto__:null,default:w},[d]);export{y as p}; diff --git a/dist-ui/assets/python-CoovIKZV.js b/dist-ui/assets/python-Dj4em9Dm.js similarity index 99% rename from dist-ui/assets/python-CoovIKZV.js rename to dist-ui/assets/python-Dj4em9Dm.js index e448540f..ee4b4e78 100644 --- a/dist-ui/assets/python-CoovIKZV.js +++ b/dist-ui/assets/python-Dj4em9Dm.js @@ -1 +1 @@ -import{g as J,c as K}from"./index-CFELAGmQ.js";function M(k,_){for(var c=0;c<_.length;c++){const p=_[c];if(typeof p!="string"&&!Array.isArray(p)){for(const y in p)if(y!=="default"&&!(y in k)){const b=Object.getOwnPropertyDescriptor(p,y);b&&Object.defineProperty(k,y,b.get?b:{enumerable:!0,get:()=>p[y]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(k,_){(function(c){c(K)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var y=p(["and","or","not","is"]),b=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],m=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",b.concat(m).concat(["exec","print"]));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,v=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],x=0;xi?A(n):t0&&I(e,n)&&(u+=" "+h),u}}return E(e,n)}function E(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(O)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=P(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,z){var j=E(d,z,!0);return j=="punctuation"&&(d.current()=="{"?z.tokenize=t(o+1):d.current()=="}"&&(o>1?z.tokenize=t(o-1):z.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function A(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+S,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(w,!1)?"meta":F?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&A(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-S;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:T,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=T)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?S:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var L=H.exports;const q=J(L),Q=M({__proto__:null,default:q},[L]);export{L as a,Q as p}; +import{g as J,c as K}from"./index-F8NPuhC5.js";function M(k,_){for(var c=0;c<_.length;c++){const p=_[c];if(typeof p!="string"&&!Array.isArray(p)){for(const y in p)if(y!=="default"&&!(y in k)){const b=Object.getOwnPropertyDescriptor(p,y);b&&Object.defineProperty(k,y,b.get?b:{enumerable:!0,get:()=>p[y]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(k,_){(function(c){c(K)})(function(c){function p(a){return new RegExp("^(("+a.join(")|(")+"))\\b")}var y=p(["and","or","not","is"]),b=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],m=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];c.registerHelper("hintWords","python",b.concat(m).concat(["exec","print"]));function f(a){return a.scopes[a.scopes.length-1]}c.defineMode("python",function(a,l){for(var h="error",B=l.delimiters||l.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,v=[l.singleOperators,l.doubleOperators,l.doubleDelimiters,l.tripleDelimiters,l.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],x=0;xi?A(n):t0&&I(e,n)&&(u+=" "+h),u}}return E(e,n)}function E(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var t=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(t=!0),e.match(/^0b[01_]+/i)&&(t=!0),e.match(/^0o[0-7_]+/i)&&(t=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),t=!0),e.match(/^0(?![\dx])/i)&&(t=!0),t)return e.eat(/L/i),"number"}if(e.match(O)){var u=e.current().toLowerCase().indexOf("f")!==-1;return u?(n.tokenize=P(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=$(e.current(),n.tokenize),n.tokenize(e,n))}for(var o=0;o=0;)e=e.substr(1);var r=e.length==1,i="string";function t(o){return function(d,z){var j=E(d,z,!0);return j=="punctuation"&&(d.current()=="{"?z.tokenize=t(o+1):d.current()=="}"&&(o>1?z.tokenize=t(o-1):z.tokenize=u)),j}}function u(o,d){for(;!o.eol();)if(o.eatWhile(/[^'"\{\}\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(e))return d.tokenize=n,i;if(o.match("{{"))return i;if(o.match("{",!1))return d.tokenize=t(0),o.current()?i:d.tokenize(o,d);if(o.match("}}"))return i;if(o.match("}"))return h;o.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;d.tokenize=n}return i}return u.isString=!0,u}function $(e,n){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=e.length==1,i="string";function t(u,o){for(;!u.eol();)if(u.eatWhile(/[^'"\\]/),u.eat("\\")){if(u.next(),r&&u.eol())return i}else{if(u.match(e))return o.tokenize=n,i;u.eat(/['"]/)}if(r){if(l.singleLineStringErrors)return h;o.tokenize=n}return i}return t.isString=!0,t}function A(e){for(;f(e).type!="py";)e.scopes.pop();e.scopes.push({offset:f(e).offset+a.indentUnit,type:"py",align:null})}function U(e,n,r){var i=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;n.scopes.push({offset:n.indent+S,type:r,align:i})}function I(e,n){for(var r=e.indentation();n.scopes.length>1&&f(n).offset>r;){if(f(n).type!="py")return!0;n.scopes.pop()}return f(n).offset!=r}function Z(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&i=="@")return e.match(w,!1)?"meta":F?"operator":h;if(/\S/.test(i)&&(n.beginningOfLine=!1),(r=="variable"||r=="builtin")&&n.lastToken=="meta"&&(r="meta"),(i=="pass"||i=="return")&&(n.dedent=!0),i=="lambda"&&(n.lambda=!0),i==":"&&!n.lambda&&f(n).type=="py"&&e.match(/^\s*(?:#|$)/,!1)&&A(n),i.length==1&&!/string|comment/.test(r)){var t="[({".indexOf(i);if(t!=-1&&U(e,n,"])}".slice(t,t+1)),t="])}".indexOf(i),t!=-1)if(f(n).type==i)n.indent=n.scopes.pop().offset-S;else return h}return n.dedent&&e.eol()&&f(n).type=="py"&&n.scopes.length>1&&n.scopes.pop(),r}var W={startState:function(e){return{tokenize:T,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=Z(e,n);return i&&i!="comment"&&(n.lastToken=i=="keyword"||i=="punctuation"?e.current():i),i=="punctuation"&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?i+" "+h:i},indent:function(e,n){if(e.tokenize!=T)return e.tokenize.isString?c.Pass:0;var r=f(e),i=r.type==n.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(n);return r.align!=null?r.align-(i?1:0):r.offset-(i?S:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"};return W}),c.defineMIME("text/x-python","python");var R=function(a){return a.split(" ")};c.defineMIME("text/x-cython",{name:"python",extra_keywords:R("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();var L=H.exports;const q=J(L),Q=M({__proto__:null,default:q},[L]);export{L as a,Q as p}; diff --git a/dist-ui/assets/q-CbtkgoeH.js b/dist-ui/assets/q-CVjXuXgv.js similarity index 98% rename from dist-ui/assets/q-CbtkgoeH.js rename to dist-ui/assets/q-CVjXuXgv.js index 92dc9ed2..ce73ed26 100644 --- a/dist-ui/assets/q-CbtkgoeH.js +++ b/dist-ui/assets/q-CVjXuXgv.js @@ -1 +1 @@ -import{g as w,c as j}from"./index-CFELAGmQ.js";function z(f,s){for(var c=0;cl[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(f,s){(function(c){c(j)})(function(c){c.defineMode("q",function(l){var u=l.indentUnit,i,a=g(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),k=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function g(e){return new RegExp("^("+e.join("|")+")$")}function d(e,n){var o=e.sol(),t=e.next();if(i=null,o){if(t=="/")return(n.tokenize=m)(e,n);if(t=="\\")return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=y)(e):n.tokenize=d,"comment"):(n.tokenize=d,"builtin")}if(/\s/.test(t))return e.peek()=="/"?(e.skipToEnd(),"comment"):"whitespace";if(t=='"')return(n.tokenize=b)(e,n);if(t=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if(t=="."&&/\d/.test(e.peek())||/\d/.test(t)){var r=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?r="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(r="number"),r&&(!(t=e.peek())||k.test(t))?r:(e.next(),"error")}return/[A-Za-z]|\./.test(t)?(e.eatWhile(/[A-Za-z._\d]/),a.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(t)||/[{}\(\[\]\)]/.test(t)?null:"error"}function m(e,n){return e.skipToEnd(),/\/\s*$/.test(e.current())?(n.tokenize=h)(e,n):n.tokenize=d,"comment"}function h(e,n){var o=e.sol()&&e.peek()=="\\";return e.skipToEnd(),o&&/^\\\s*$/.test(e.current())&&(n.tokenize=d),"comment"}function y(e){return e.skipToEnd(),"comment"}function b(e,n){for(var o=!1,t,r=!1;t=e.next();){if(t=='"'&&!o){r=!0;break}o=!o&&t=="\\"}return r&&(n.tokenize=d),"string"}function p(e,n,o){e.context={prev:e.context,indent:e.indent,col:o,type:n}}function x(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation());var o=n.tokenize(e,n);if(o!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),i=="(")p(n,")",e.column());else if(i=="[")p(n,"]",e.column());else if(i=="{")p(n,"}",e.column());else if(/[\]\}\)]/.test(i)){for(;n.context&&n.context.type=="pattern";)x(n);n.context&&i==n.context.type&&x(n)}else i=="."&&n.context&&n.context.type=="pattern"?x(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?p(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return o},indent:function(e,n){var o=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(o))for(;t&&t.type=="pattern";)t=t.prev;var r=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(r?0:1):t.indent+(r?0:u):0}}}),c.defineMIME("text/x-q","q")})})();var v=E.exports;const q=w(v),T=z({__proto__:null,default:q},[v]);export{T as q}; +import{g as w,c as j}from"./index-F8NPuhC5.js";function z(f,s){for(var c=0;cl[u]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(f,s){(function(c){c(j)})(function(c){c.defineMode("q",function(l){var u=l.indentUnit,i,a=g(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),k=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function g(e){return new RegExp("^("+e.join("|")+")$")}function d(e,n){var o=e.sol(),t=e.next();if(i=null,o){if(t=="/")return(n.tokenize=m)(e,n);if(t=="\\")return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(n.tokenize=y)(e):n.tokenize=d,"comment"):(n.tokenize=d,"builtin")}if(/\s/.test(t))return e.peek()=="/"?(e.skipToEnd(),"comment"):"whitespace";if(t=='"')return(n.tokenize=b)(e,n);if(t=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if(t=="."&&/\d/.test(e.peek())||/\d/.test(t)){var r=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?r="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(r="number"),r&&(!(t=e.peek())||k.test(t))?r:(e.next(),"error")}return/[A-Za-z]|\./.test(t)?(e.eatWhile(/[A-Za-z._\d]/),a.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(t)||/[{}\(\[\]\)]/.test(t)?null:"error"}function m(e,n){return e.skipToEnd(),/\/\s*$/.test(e.current())?(n.tokenize=h)(e,n):n.tokenize=d,"comment"}function h(e,n){var o=e.sol()&&e.peek()=="\\";return e.skipToEnd(),o&&/^\\\s*$/.test(e.current())&&(n.tokenize=d),"comment"}function y(e){return e.skipToEnd(),"comment"}function b(e,n){for(var o=!1,t,r=!1;t=e.next();){if(t=='"'&&!o){r=!0;break}o=!o&&t=="\\"}return r&&(n.tokenize=d),"string"}function p(e,n,o){e.context={prev:e.context,indent:e.indent,col:o,type:n}}function x(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&n.context.align==null&&(n.context.align=!1),n.indent=e.indentation());var o=n.tokenize(e,n);if(o!="comment"&&n.context&&n.context.align==null&&n.context.type!="pattern"&&(n.context.align=!0),i=="(")p(n,")",e.column());else if(i=="[")p(n,"]",e.column());else if(i=="{")p(n,"}",e.column());else if(/[\]\}\)]/.test(i)){for(;n.context&&n.context.type=="pattern";)x(n);n.context&&i==n.context.type&&x(n)}else i=="."&&n.context&&n.context.type=="pattern"?x(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?p(n,"pattern",e.column()):n.context.type=="pattern"&&!n.context.align&&(n.context.align=!0,n.context.col=e.column()));return o},indent:function(e,n){var o=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(o))for(;t&&t.type=="pattern";)t=t.prev;var r=t&&o==t.type;return t?t.type=="pattern"?t.col:t.align?t.col+(r?0:1):t.indent+(r?0:u):0}}}),c.defineMIME("text/x-q","q")})})();var v=E.exports;const q=w(v),T=z({__proto__:null,default:q},[v]);export{T as q}; diff --git a/dist-ui/assets/r-D8JmdW1x.js b/dist-ui/assets/r-CfIsJawz.js similarity index 98% rename from dist-ui/assets/r-D8JmdW1x.js rename to dist-ui/assets/r-CfIsJawz.js index 86c24604..d11bb030 100644 --- a/dist-ui/assets/r-D8JmdW1x.js +++ b/dist-ui/assets/r-CfIsJawz.js @@ -1 +1 @@ -import{g as S,c as U}from"./index-CFELAGmQ.js";function z(a,d){for(var o=0;of[l]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(a,d){(function(o){o(U)})(function(o){o.registerHelper("wordChars","r",/[\w.]/),o.defineMode("r",function(f){function l(e){for(var n={},r=0;r=!&|~$:]/,i;function s(e,n){i=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=L(r),"string";if(r=="`")return e.match(/[^`]+`/),"variable-3";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var t=e.current();return A.propertyIsEnumerable(t)?"atom":N.propertyIsEnumerable(t)?(I.propertyIsEnumerable(t)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):w.propertyIsEnumerable(t)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"operator variable-2"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)?"operator arrow":r=="="&&n.ctx.argList?"arg-is":y.test(r)?r=="$"?"operator dollar":(e.eatWhile(y),"operator"):/[\(\){}\[\];]/.test(r)?(i=r,r==";"?"semi":null):null}function L(e){return function(n,r){if(n.eat("\\")){var t=n.next();return t=="x"?n.match(/^[a-f0-9]{2}/i):(t=="u"||t=="U")&&n.eat("{")&&n.skipTo("}")?n.next():t=="u"?n.match(/^[a-f0-9]{4}/i):t=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(t)&&n.match(/^[0-7]{1,2}/),"string-2"}else{for(var u;(u=n.next())!=null;){if(u==e){r.tokenize=s;break}if(u=="\\"){n.backUp(1);break}}return"string"}}}var h=1,x=2,v=4;function p(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function m(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function b(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:s,ctx:{type:"top",indent:-f.indentUnit,flags:x},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&(n.ctx.flags&3||(n.ctx.flags|=x),n.ctx.flags&v&&b(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&!(n.ctx.flags&x)&&m(n,h),(i==";"||i=="{"||i=="}")&&n.ctx.type=="block"&&b(n),i=="{"?p(n,"}",e):i=="("?(p(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):i=="["?p(n,"]",e):i=="block"?p(n,"block",e):i==n.ctx.type?b(n):n.ctx.type=="block"&&r!="comment"&&m(n,v),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n){if(e.tokenize!=s)return 0;var r=n&&n.charAt(0),t=e.ctx,u=r==t.type;return t.flags&v&&(t=t.prev),t.type=="block"?t.indent+(r=="{"?0:f.indentUnit):t.flags&h?t.column+(u?0:1):t.indent+(u?0:f.indentUnit)},lineComment:"#"}}),o.defineMIME("text/x-rsrc","r")})})();var _=O.exports;const j=S(_),$=z({__proto__:null,default:j},[_]);export{$ as r}; +import{g as S,c as U}from"./index-F8NPuhC5.js";function z(a,d){for(var o=0;of[l]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(a,d){(function(o){o(U)})(function(o){o.registerHelper("wordChars","r",/[\w.]/),o.defineMode("r",function(f){function l(e){for(var n={},r=0;r=!&|~$:]/,i;function s(e,n){i=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=L(r),"string";if(r=="`")return e.match(/[^`]+`/),"variable-3";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var t=e.current();return A.propertyIsEnumerable(t)?"atom":N.propertyIsEnumerable(t)?(I.propertyIsEnumerable(t)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):w.propertyIsEnumerable(t)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"operator variable-2"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)?"operator arrow":r=="="&&n.ctx.argList?"arg-is":y.test(r)?r=="$"?"operator dollar":(e.eatWhile(y),"operator"):/[\(\){}\[\];]/.test(r)?(i=r,r==";"?"semi":null):null}function L(e){return function(n,r){if(n.eat("\\")){var t=n.next();return t=="x"?n.match(/^[a-f0-9]{2}/i):(t=="u"||t=="U")&&n.eat("{")&&n.skipTo("}")?n.next():t=="u"?n.match(/^[a-f0-9]{4}/i):t=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(t)&&n.match(/^[0-7]{1,2}/),"string-2"}else{for(var u;(u=n.next())!=null;){if(u==e){r.tokenize=s;break}if(u=="\\"){n.backUp(1);break}}return"string"}}}var h=1,x=2,v=4;function p(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function m(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function b(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:s,ctx:{type:"top",indent:-f.indentUnit,flags:x},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&(n.ctx.flags&3||(n.ctx.flags|=x),n.ctx.flags&v&&b(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&!(n.ctx.flags&x)&&m(n,h),(i==";"||i=="{"||i=="}")&&n.ctx.type=="block"&&b(n),i=="{"?p(n,"}",e):i=="("?(p(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):i=="["?p(n,"]",e):i=="block"?p(n,"block",e):i==n.ctx.type?b(n):n.ctx.type=="block"&&r!="comment"&&m(n,v),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n){if(e.tokenize!=s)return 0;var r=n&&n.charAt(0),t=e.ctx,u=r==t.type;return t.flags&v&&(t=t.prev),t.type=="block"?t.indent+(r=="{"?0:f.indentUnit):t.flags&h?t.column+(u?0:1):t.indent+(u?0:f.indentUnit)},lineComment:"#"}}),o.defineMIME("text/x-rsrc","r")})})();var _=O.exports;const j=S(_),$=z({__proto__:null,default:j},[_]);export{$ as r}; diff --git a/dist-ui/assets/rpm-3ihONuWC.js b/dist-ui/assets/rpm-O5fC39Z0.js similarity index 97% rename from dist-ui/assets/rpm-3ihONuWC.js rename to dist-ui/assets/rpm-O5fC39Z0.js index 8d629c36..3328918d 100644 --- a/dist-ui/assets/rpm-3ihONuWC.js +++ b/dist-ui/assets/rpm-O5fC39Z0.js @@ -1 +1 @@ -import{g as s,c as d}from"./index-CFELAGmQ.js";function g(a,f){for(var e=0;en[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(a,f){(function(e){e(d)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,c=/^[\w+.-]+@[\w.-]+/;return{token:function(i){return i.sol()&&(i.match(n)||i.match(t))?"tag":i.match(c)?"string":(i.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,c=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,i=/^%(ifnarch|ifarch|if)/,l=/^%(else|endif)/,u=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,o){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(t))return"header";if(r.match(c))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(l))return"keyword";if(r.match(i))return o.controlFlow=!0,"keyword";if(o.controlFlow){if(r.match(u))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(o.controlFlow=!1)}if(r.match(n))return r.eol()&&(o.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(o.macroParameters=!0),"keyword";if(o.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return o.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(o.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var p=m.exports;const w=s(p),x=g({__proto__:null,default:w},[p]);export{x as r}; +import{g as s,c as d}from"./index-F8NPuhC5.js";function g(a,f){for(var e=0;en[t]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(a,f){(function(e){e(d)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,c=/^[\w+.-]+@[\w.-]+/;return{token:function(i){return i.sol()&&(i.match(n)||i.match(t))?"tag":i.match(c)?"string":(i.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^[a-zA-Z0-9()]+:/,c=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,i=/^%(ifnarch|ifarch|if)/,l=/^%(else|endif)/,u=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,o){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(t))return"header";if(r.match(c))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(l))return"keyword";if(r.match(i))return o.controlFlow=!0,"keyword";if(o.controlFlow){if(r.match(u))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(o.controlFlow=!1)}if(r.match(n))return r.eol()&&(o.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(o.macroParameters=!0),"keyword";if(o.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return o.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(o.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var p=m.exports;const w=s(p),x=g({__proto__:null,default:w},[p]);export{x as r}; diff --git a/dist-ui/assets/rst-BCEzRi9A.js b/dist-ui/assets/rst-CyVqi5D5.js similarity index 97% rename from dist-ui/assets/rst-BCEzRi9A.js rename to dist-ui/assets/rst-CyVqi5D5.js index 5b55d7ed..3f956ee7 100644 --- a/dist-ui/assets/rst-BCEzRi9A.js +++ b/dist-ui/assets/rst-CyVqi5D5.js @@ -1 +1 @@ -import{g as oe,c as ie}from"./index-CFELAGmQ.js";import{a as ae}from"./python-CoovIKZV.js";import{r as le}from"./stex-BoK3GK_-.js";import{r as fe}from"./overlay-0t06YMiN.js";function ue(A,N){for(var f=0;fp[i]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var te={exports:{}};(function(A,N){(function(f){f(ie,ae,le(),fe())})(function(f){f.defineMode("rst",function(p,i){var x=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,b=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,u=/^(?:[\d]+(?:[\.,]\d+)*)/,E=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,m=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,T="[Hh][Tt][Tt][Pp][Ss]?://",P="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",t="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",y=new RegExp("^"+T+P+t),R={token:function(l){if(l.match(x)&&l.match(/\W+|$/,!1))return"strong";if(l.match(b)&&l.match(/\W+|$/,!1))return"em";if(l.match(w)&&l.match(/\W+|$/,!1))return"string-2";if(l.match(u))return"number";if(l.match(E))return"positive";if(l.match(m))return"negative";if(l.match(y))return"link";for(;l.next()!=null&&!(l.match(x,!1)||l.match(b,!1)||l.match(w,!1)||l.match(u,!1)||l.match(E,!1)||l.match(m,!1)||l.match(y,!1)););return null}},W=f.getMode(p,i.backdrop||"rst-base");return f.overlayMode(W,R,!0)},"python","stex"),f.defineMode("rst-base",function(p){function i(n){var e=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(r,j){return typeof e[j]!="undefined"?e[j]:r})}var x=f.getMode(p,"python"),b=f.getMode(p,"stex"),w="\\s+",u="(?:\\s*|\\W|$)",E=new RegExp(i("^{0}",u)),m="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",T=new RegExp(i("^{0}",m)),P="(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",t=i("(?:{0}|`{1}`)",m,P),y="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",R="(?:[^\\`]+)",W=new RegExp(i("^{0}",R)),l=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),L=new RegExp(i("^\\.\\.{0}",w)),q=new RegExp(i("^_{0}:{1}|^__:{1}",t,u)),s=new RegExp(i("^{0}::{1}",t,u)),S=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",y,w,t,u)),M=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",t,u)),z=new RegExp(i("^\\[{0}\\]{1}",t,u)),O=new RegExp(i("^\\|{0}\\|",y)),H=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",t)),B=new RegExp(i("^\\[{0}\\]_",t)),G=new RegExp(i("^{0}__?",t)),g=new RegExp(i("^`{0}`_",R)),_=new RegExp(i("^:{0}:`{1}`{2}",m,R,u)),k=new RegExp(i("^`{1}`:{0}:{2}",m,R,u)),$=new RegExp(i("^:{0}:{1}",m,u)),J=new RegExp(i("^{0}",t)),K=new RegExp(i("^::{0}",u)),X=new RegExp(i("^\\|{0}\\|",y)),Q=new RegExp(i("^{0}",w)),U=new RegExp(i("^{0}",t)),V=new RegExp(i("^::{0}",u)),Y=new RegExp("^_"),Z=new RegExp(i("^{0}|_",t)),C=new RegExp(i("^:{0}",u)),ee=new RegExp("^::\\s*$"),ne=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function o(n,e){var r=null;if(n.sol()&&n.match(ne,!1))c(e,I,{mode:x,local:f.startState(x)});else if(n.sol()&&n.match(L))c(e,h),r="meta";else if(n.sol()&&n.match(l))c(e,o),r="header";else if(v(e)==_||n.match(_,!1))switch(d(e)){case 0:c(e,o,a(_,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a(_,2)),n.match(T),r="keyword",n.current().match(/^(?:math|latex)/)&&(e.tmp_stex=!0);break;case 2:c(e,o,a(_,3)),n.match(/^:`/),r="meta";break;case 3:if(e.tmp_stex&&(e.tmp_stex=void 0,e.tmp={mode:b,local:f.startState(b)}),e.tmp){if(n.peek()=="`"){c(e,o,a(_,4)),e.tmp=void 0;break}r=e.tmp.mode.token(n,e.tmp.local);break}c(e,o,a(_,4)),n.match(W),r="string";break;case 4:c(e,o,a(_,5)),n.match(/^`/),r="meta";break;case 5:c(e,o,a(_,6)),n.match(E);break;default:c(e,o)}else if(v(e)==k||n.match(k,!1))switch(d(e)){case 0:c(e,o,a(k,1)),n.match(/^`/),r="meta";break;case 1:c(e,o,a(k,2)),n.match(W),r="string";break;case 2:c(e,o,a(k,3)),n.match(/^`:/),r="meta";break;case 3:c(e,o,a(k,4)),n.match(T),r="keyword";break;case 4:c(e,o,a(k,5)),n.match(/^:/),r="meta";break;case 5:c(e,o,a(k,6)),n.match(E);break;default:c(e,o)}else if(v(e)==$||n.match($,!1))switch(d(e)){case 0:c(e,o,a($,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a($,2)),n.match(T),r="keyword";break;case 2:c(e,o,a($,3)),n.match(/^:/),r="meta";break;case 3:c(e,o,a($,4)),n.match(E);break;default:c(e,o)}else if(v(e)==O||n.match(O,!1))switch(d(e)){case 0:c(e,o,a(O,1)),n.match(X),r="variable-2";break;case 1:c(e,o,a(O,2)),n.match(/^_?_?/)&&(r="link");break;default:c(e,o)}else if(n.match(H))c(e,o),r="quote";else if(n.match(B))c(e,o),r="quote";else if(n.match(G))c(e,o),(!n.peek()||n.peek().match(/^\W$/))&&(r="link");else if(v(e)==g||n.match(g,!1))switch(d(e)){case 0:!n.peek()||n.peek().match(/^\W$/)?c(e,o,a(g,1)):n.match(g);break;case 1:c(e,o,a(g,2)),n.match(/^`/),r="link";break;case 2:c(e,o,a(g,3)),n.match(W);break;case 3:c(e,o,a(g,4)),n.match(/^`_/),r="link";break;default:c(e,o)}else n.match(ee)?c(e,re):n.next()&&c(e,o);return r}function h(n,e){var r=null;if(v(e)==S||n.match(S,!1))switch(d(e)){case 0:c(e,h,a(S,1)),n.match(X),r="variable-2";break;case 1:c(e,h,a(S,2)),n.match(Q);break;case 2:c(e,h,a(S,3)),n.match(U),r="keyword";break;case 3:c(e,h,a(S,4)),n.match(V),r="meta";break;default:c(e,o)}else if(v(e)==s||n.match(s,!1))switch(d(e)){case 0:c(e,h,a(s,1)),n.match(J),r="keyword",n.current().match(/^(?:math|latex)/)?e.tmp_stex=!0:n.current().match(/^python/)&&(e.tmp_py=!0);break;case 1:c(e,h,a(s,2)),n.match(K),r="meta",(n.match(/^latex\s*$/)||e.tmp_stex)&&(e.tmp_stex=void 0,c(e,I,{mode:b,local:f.startState(b)}));break;case 2:c(e,h,a(s,3)),(n.match(/^python\s*$/)||e.tmp_py)&&(e.tmp_py=void 0,c(e,I,{mode:x,local:f.startState(x)}));break;default:c(e,o)}else if(v(e)==q||n.match(q,!1))switch(d(e)){case 0:c(e,h,a(q,1)),n.match(Y),n.match(Z),r="link";break;case 1:c(e,h,a(q,2)),n.match(C),r="meta";break;default:c(e,o)}else n.match(M)||n.match(z)?(c(e,o),r="quote"):(n.eatSpace(),n.eol()?c(e,o):(n.skipToEnd(),c(e,ce),r="comment"));return r}function ce(n,e){return D(n,e,"comment")}function re(n,e){return D(n,e,"meta")}function D(n,e,r){return n.eol()||n.eatSpace()?(n.skipToEnd(),r):(c(e,o),null)}function I(n,e){return e.ctx.mode&&e.ctx.local?n.sol()?(n.eatSpace()||c(e,o),null):e.ctx.mode.token(n,e.ctx.local):(c(e,o),null)}function a(n,e,r,j){return{phase:n,stage:e,mode:r,local:j}}function c(n,e,r){n.tok=e,n.ctx=r||{}}function d(n){return n.ctx.stage||0}function v(n){return n.ctx.phase}return{startState:function(){return{tok:o,ctx:a(void 0,0)}},copyState:function(n){var e=n.ctx,r=n.tmp;return e.local&&(e={mode:e.mode,local:f.copyState(e.mode,e.local)}),r&&(r={mode:r.mode,local:f.copyState(r.mode,r.local)}),{tok:n.tok,ctx:e,tmp:r}},innerMode:function(n){return n.tmp?{state:n.tmp.local,mode:n.tmp.mode}:n.ctx.mode?{state:n.ctx.local,mode:n.ctx.mode}:null},token:function(n,e){return e.tok(n,e)}}},"python","stex"),f.defineMIME("text/x-rst","rst")})})();var F=te.exports;const xe=oe(F),ke=ue({__proto__:null,default:xe},[F]);export{ke as r}; +import{g as oe,c as ie}from"./index-F8NPuhC5.js";import{a as ae}from"./python-Dj4em9Dm.js";import{r as le}from"./stex-DV4pK8k6.js";import{r as fe}from"./overlay-DMs7bKVk.js";function ue(A,N){for(var f=0;fp[i]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var te={exports:{}};(function(A,N){(function(f){f(ie,ae,le(),fe())})(function(f){f.defineMode("rst",function(p,i){var x=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,b=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,u=/^(?:[\d]+(?:[\.,]\d+)*)/,E=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,m=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,T="[Hh][Tt][Tt][Pp][Ss]?://",P="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",t="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",y=new RegExp("^"+T+P+t),R={token:function(l){if(l.match(x)&&l.match(/\W+|$/,!1))return"strong";if(l.match(b)&&l.match(/\W+|$/,!1))return"em";if(l.match(w)&&l.match(/\W+|$/,!1))return"string-2";if(l.match(u))return"number";if(l.match(E))return"positive";if(l.match(m))return"negative";if(l.match(y))return"link";for(;l.next()!=null&&!(l.match(x,!1)||l.match(b,!1)||l.match(w,!1)||l.match(u,!1)||l.match(E,!1)||l.match(m,!1)||l.match(y,!1)););return null}},W=f.getMode(p,i.backdrop||"rst-base");return f.overlayMode(W,R,!0)},"python","stex"),f.defineMode("rst-base",function(p){function i(n){var e=Array.prototype.slice.call(arguments,1);return n.replace(/{(\d+)}/g,function(r,j){return typeof e[j]!="undefined"?e[j]:r})}var x=f.getMode(p,"python"),b=f.getMode(p,"stex"),w="\\s+",u="(?:\\s*|\\W|$)",E=new RegExp(i("^{0}",u)),m="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",T=new RegExp(i("^{0}",m)),P="(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",t=i("(?:{0}|`{1}`)",m,P),y="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",R="(?:[^\\`]+)",W=new RegExp(i("^{0}",R)),l=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),L=new RegExp(i("^\\.\\.{0}",w)),q=new RegExp(i("^_{0}:{1}|^__:{1}",t,u)),s=new RegExp(i("^{0}::{1}",t,u)),S=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",y,w,t,u)),M=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",t,u)),z=new RegExp(i("^\\[{0}\\]{1}",t,u)),O=new RegExp(i("^\\|{0}\\|",y)),H=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",t)),B=new RegExp(i("^\\[{0}\\]_",t)),G=new RegExp(i("^{0}__?",t)),g=new RegExp(i("^`{0}`_",R)),_=new RegExp(i("^:{0}:`{1}`{2}",m,R,u)),k=new RegExp(i("^`{1}`:{0}:{2}",m,R,u)),$=new RegExp(i("^:{0}:{1}",m,u)),J=new RegExp(i("^{0}",t)),K=new RegExp(i("^::{0}",u)),X=new RegExp(i("^\\|{0}\\|",y)),Q=new RegExp(i("^{0}",w)),U=new RegExp(i("^{0}",t)),V=new RegExp(i("^::{0}",u)),Y=new RegExp("^_"),Z=new RegExp(i("^{0}|_",t)),C=new RegExp(i("^:{0}",u)),ee=new RegExp("^::\\s*$"),ne=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");function o(n,e){var r=null;if(n.sol()&&n.match(ne,!1))c(e,I,{mode:x,local:f.startState(x)});else if(n.sol()&&n.match(L))c(e,h),r="meta";else if(n.sol()&&n.match(l))c(e,o),r="header";else if(v(e)==_||n.match(_,!1))switch(d(e)){case 0:c(e,o,a(_,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a(_,2)),n.match(T),r="keyword",n.current().match(/^(?:math|latex)/)&&(e.tmp_stex=!0);break;case 2:c(e,o,a(_,3)),n.match(/^:`/),r="meta";break;case 3:if(e.tmp_stex&&(e.tmp_stex=void 0,e.tmp={mode:b,local:f.startState(b)}),e.tmp){if(n.peek()=="`"){c(e,o,a(_,4)),e.tmp=void 0;break}r=e.tmp.mode.token(n,e.tmp.local);break}c(e,o,a(_,4)),n.match(W),r="string";break;case 4:c(e,o,a(_,5)),n.match(/^`/),r="meta";break;case 5:c(e,o,a(_,6)),n.match(E);break;default:c(e,o)}else if(v(e)==k||n.match(k,!1))switch(d(e)){case 0:c(e,o,a(k,1)),n.match(/^`/),r="meta";break;case 1:c(e,o,a(k,2)),n.match(W),r="string";break;case 2:c(e,o,a(k,3)),n.match(/^`:/),r="meta";break;case 3:c(e,o,a(k,4)),n.match(T),r="keyword";break;case 4:c(e,o,a(k,5)),n.match(/^:/),r="meta";break;case 5:c(e,o,a(k,6)),n.match(E);break;default:c(e,o)}else if(v(e)==$||n.match($,!1))switch(d(e)){case 0:c(e,o,a($,1)),n.match(/^:/),r="meta";break;case 1:c(e,o,a($,2)),n.match(T),r="keyword";break;case 2:c(e,o,a($,3)),n.match(/^:/),r="meta";break;case 3:c(e,o,a($,4)),n.match(E);break;default:c(e,o)}else if(v(e)==O||n.match(O,!1))switch(d(e)){case 0:c(e,o,a(O,1)),n.match(X),r="variable-2";break;case 1:c(e,o,a(O,2)),n.match(/^_?_?/)&&(r="link");break;default:c(e,o)}else if(n.match(H))c(e,o),r="quote";else if(n.match(B))c(e,o),r="quote";else if(n.match(G))c(e,o),(!n.peek()||n.peek().match(/^\W$/))&&(r="link");else if(v(e)==g||n.match(g,!1))switch(d(e)){case 0:!n.peek()||n.peek().match(/^\W$/)?c(e,o,a(g,1)):n.match(g);break;case 1:c(e,o,a(g,2)),n.match(/^`/),r="link";break;case 2:c(e,o,a(g,3)),n.match(W);break;case 3:c(e,o,a(g,4)),n.match(/^`_/),r="link";break;default:c(e,o)}else n.match(ee)?c(e,re):n.next()&&c(e,o);return r}function h(n,e){var r=null;if(v(e)==S||n.match(S,!1))switch(d(e)){case 0:c(e,h,a(S,1)),n.match(X),r="variable-2";break;case 1:c(e,h,a(S,2)),n.match(Q);break;case 2:c(e,h,a(S,3)),n.match(U),r="keyword";break;case 3:c(e,h,a(S,4)),n.match(V),r="meta";break;default:c(e,o)}else if(v(e)==s||n.match(s,!1))switch(d(e)){case 0:c(e,h,a(s,1)),n.match(J),r="keyword",n.current().match(/^(?:math|latex)/)?e.tmp_stex=!0:n.current().match(/^python/)&&(e.tmp_py=!0);break;case 1:c(e,h,a(s,2)),n.match(K),r="meta",(n.match(/^latex\s*$/)||e.tmp_stex)&&(e.tmp_stex=void 0,c(e,I,{mode:b,local:f.startState(b)}));break;case 2:c(e,h,a(s,3)),(n.match(/^python\s*$/)||e.tmp_py)&&(e.tmp_py=void 0,c(e,I,{mode:x,local:f.startState(x)}));break;default:c(e,o)}else if(v(e)==q||n.match(q,!1))switch(d(e)){case 0:c(e,h,a(q,1)),n.match(Y),n.match(Z),r="link";break;case 1:c(e,h,a(q,2)),n.match(C),r="meta";break;default:c(e,o)}else n.match(M)||n.match(z)?(c(e,o),r="quote"):(n.eatSpace(),n.eol()?c(e,o):(n.skipToEnd(),c(e,ce),r="comment"));return r}function ce(n,e){return D(n,e,"comment")}function re(n,e){return D(n,e,"meta")}function D(n,e,r){return n.eol()||n.eatSpace()?(n.skipToEnd(),r):(c(e,o),null)}function I(n,e){return e.ctx.mode&&e.ctx.local?n.sol()?(n.eatSpace()||c(e,o),null):e.ctx.mode.token(n,e.ctx.local):(c(e,o),null)}function a(n,e,r,j){return{phase:n,stage:e,mode:r,local:j}}function c(n,e,r){n.tok=e,n.ctx=r||{}}function d(n){return n.ctx.stage||0}function v(n){return n.ctx.phase}return{startState:function(){return{tok:o,ctx:a(void 0,0)}},copyState:function(n){var e=n.ctx,r=n.tmp;return e.local&&(e={mode:e.mode,local:f.copyState(e.mode,e.local)}),r&&(r={mode:r.mode,local:f.copyState(r.mode,r.local)}),{tok:n.tok,ctx:e,tmp:r}},innerMode:function(n){return n.tmp?{state:n.tmp.local,mode:n.tmp.mode}:n.ctx.mode?{state:n.ctx.local,mode:n.ctx.mode}:null},token:function(n,e){return e.tok(n,e)}}},"python","stex"),f.defineMIME("text/x-rst","rst")})})();var F=te.exports;const xe=oe(F),ke=ue({__proto__:null,default:xe},[F]);export{ke as r}; diff --git a/dist-ui/assets/ruby-DIgqUQO1.js b/dist-ui/assets/ruby-D5w_YFnv.js similarity index 74% rename from dist-ui/assets/ruby-DIgqUQO1.js rename to dist-ui/assets/ruby-D5w_YFnv.js index c40f0e42..d58e06e2 100644 --- a/dist-ui/assets/ruby-DIgqUQO1.js +++ b/dist-ui/assets/ruby-D5w_YFnv.js @@ -1 +1 @@ -import{g as s}from"./index-CFELAGmQ.js";import{r as u}from"./ruby-ByJpm16K.js";function i(t,a){for(var o=0;or[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=u();const c=s(f),b=i({__proto__:null,default:c},[f]);export{b as r}; +import{g as s}from"./index-F8NPuhC5.js";import{r as u}from"./ruby-pfYNpgKz.js";function i(t,a){for(var o=0;or[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=u();const c=s(f),b=i({__proto__:null,default:c},[f]);export{b as r}; diff --git a/dist-ui/assets/ruby-ByJpm16K.js b/dist-ui/assets/ruby-pfYNpgKz.js similarity index 98% rename from dist-ui/assets/ruby-ByJpm16K.js rename to dist-ui/assets/ruby-pfYNpgKz.js index 36838090..0b18453c 100644 --- a/dist-ui/assets/ruby-ByJpm16K.js +++ b/dist-ui/assets/ruby-pfYNpgKz.js @@ -1 +1 @@ -import{c as I}from"./index-CFELAGmQ.js";var z={exports:{}},_;function Z(){return _||(_=1,function(A,q){(function(d){d(I)})(function(d){function h(c){for(var f={},u=0,p=c.length;u]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(n=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(n))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if(n=="|"&&(i.varList||i.lastTok=="{"||i.lastTok=="do"))return f="|",null;if(/[\(\)\[\]{}\\;]/.test(n))return f=n,null;if(n=="-"&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(n)){var a=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return n=="."&&!a&&(f="."),"operator"}else return null}}}function E(e){for(var i=e.pos,n=0,r,t=!1,o=!1;(r=e.next())!=null;)if(o)o=!1;else{if("[{(".indexOf(r)>-1)n++;else if("]})".indexOf(r)>-1){if(n--,n<0)break}else if(r=="/"&&n==0){t=!0;break}o=r=="\\"}return e.backUp(e.pos-i),t}function v(e){return e||(e=1),function(i,n){if(i.peek()=="}"){if(e==1)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n);n.tokenize[n.tokenize.length-1]=v(e-1)}else i.peek()=="{"&&(n.tokenize[n.tokenize.length-1]=v(e+1));return p(i,n)}}function W(){var e=!1;return function(i,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n)):(e=!0,p(i,n))}}function k(e,i,n,r){return function(t,o){var l=!1,a;for(o.context.type==="read-quoted-paused"&&(o.context=o.context.prev,t.eat("}"));(a=t.next())!=null;){if(a==e&&(r||!l)){o.tokenize.pop();break}if(n&&a=="#"&&!l){if(t.eat("{")){e=="}"&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(v());break}else if(/[@\$]/.test(t.peek())){o.tokenize.push(W());break}}l=!l&&a=="\\"}return i}}function L(e,i){return function(n,r){return i&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function T(e,i){return e.sol()&&e.match("=end")&&e.eol()&&i.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[p],indented:0,context:{type:"top",indented:-c.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,i){f=null,e.sol()&&(i.indented=e.indentation());var n=i.tokenize[i.tokenize.length-1](e,i),r,t=f;if(n=="ident"){var o=e.current();n=i.lastTok=="."?"property":y.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,s.propertyIsEnumerable(o)?r="indent":g.propertyIsEnumerable(o)?r="dedent":((o=="if"||o=="unless")&&e.column()==e.indentation()||o=="do"&&i.context.indented]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(n=="$")return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(n))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if(n=="|"&&(i.varList||i.lastTok=="{"||i.lastTok=="do"))return f="|",null;if(/[\(\)\[\]{}\\;]/.test(n))return f=n,null;if(n=="-"&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(n)){var a=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return n=="."&&!a&&(f="."),"operator"}else return null}}}function E(e){for(var i=e.pos,n=0,r,t=!1,o=!1;(r=e.next())!=null;)if(o)o=!1;else{if("[{(".indexOf(r)>-1)n++;else if("]})".indexOf(r)>-1){if(n--,n<0)break}else if(r=="/"&&n==0){t=!0;break}o=r=="\\"}return e.backUp(e.pos-i),t}function v(e){return e||(e=1),function(i,n){if(i.peek()=="}"){if(e==1)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n);n.tokenize[n.tokenize.length-1]=v(e-1)}else i.peek()=="{"&&(n.tokenize[n.tokenize.length-1]=v(e+1));return p(i,n)}}function W(){var e=!1;return function(i,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](i,n)):(e=!0,p(i,n))}}function k(e,i,n,r){return function(t,o){var l=!1,a;for(o.context.type==="read-quoted-paused"&&(o.context=o.context.prev,t.eat("}"));(a=t.next())!=null;){if(a==e&&(r||!l)){o.tokenize.pop();break}if(n&&a=="#"&&!l){if(t.eat("{")){e=="}"&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(v());break}else if(/[@\$]/.test(t.peek())){o.tokenize.push(W());break}}l=!l&&a=="\\"}return i}}function L(e,i){return function(n,r){return i&&n.eatSpace(),n.match(e)?r.tokenize.pop():n.skipToEnd(),"string"}}function T(e,i){return e.sol()&&e.match("=end")&&e.eol()&&i.tokenize.pop(),e.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[p],indented:0,context:{type:"top",indented:-c.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,i){f=null,e.sol()&&(i.indented=e.indentation());var n=i.tokenize[i.tokenize.length-1](e,i),r,t=f;if(n=="ident"){var o=e.current();n=i.lastTok=="."?"property":y.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":i.lastTok=="def"||i.lastTok=="class"||i.varList?"def":"variable",n=="keyword"&&(t=o,s.propertyIsEnumerable(o)?r="indent":g.propertyIsEnumerable(o)?r="dedent":((o=="if"||o=="unless")&&e.column()==e.indentation()||o=="do"&&i.context.indentedt[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(n,o){(function(e){e(u,g())})(function(e){e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")})})();var i=f.exports;const m=a(i),l=x({__proto__:null,default:m},[i]);export{l as r}; +import{g as a,c as u,b as g}from"./index-F8NPuhC5.js";function x(n,o){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var f={exports:{}};(function(n,o){(function(e){e(u,g())})(function(e){e.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust"),e.defineMIME("text/rust","rust")})})();var i=f.exports;const m=a(i),l=x({__proto__:null,default:m},[i]);export{l as r}; diff --git a/dist-ui/assets/sas-DlUPW5JL.js b/dist-ui/assets/sas-C058GQZJ.js similarity index 99% rename from dist-ui/assets/sas-DlUPW5JL.js rename to dist-ui/assets/sas-C058GQZJ.js index a9923da9..f33f2652 100644 --- a/dist-ui/assets/sas-DlUPW5JL.js +++ b/dist-ui/assets/sas-C058GQZJ.js @@ -1 +1 @@ -import{g as b,c as g}from"./index-CFELAGmQ.js";function v(p,d){for(var i=0;ir[a]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(p,d){(function(i){i(g)})(function(i){i.defineMode("sas",function(){var r={},a={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},l=/(<=|>=|!=|<>)/,m=/[=\(:\),{}.*<>+\-\/^\[\]]/;function o(e,t,s){if(s)for(var c=t.split(" "),n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(p,d){(function(i){i(g)})(function(i){i.defineMode("sas",function(){var r={},a={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},l=/(<=|>=|!=|<>)/,m=/[=\(:\),{}.*<>+\-\/^\[\]]/;function o(e,t,s){if(s)for(var c=t.split(" "),n=0;nc[i]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}};(function(w,a){(function(u){u($,M)})(function(u){u.defineMode("sass",function(c){var i=u.mimeModes["text/css"],d=i.propertyKeywords||{},O=i.colorKeywords||{},T=i.valueKeywords||{},j=i.fontProperties||{};function A(r){return new RegExp("^"+r.join("|"))}var K=["true","false","null","auto"],s=new RegExp("^"+K.join("|")),L=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],z=A(L),R=/^::?[a-zA-Z_][\w\-]*/,t;function f(r){return!r.peek()||r.match(/\s+$/,!1)}function b(r,n){var e=r.peek();return e===")"?(r.next(),n.tokenizer=p,"operator"):e==="("?(r.next(),r.eatSpace(),"operator"):e==="'"||e==='"'?(n.tokenizer=g(r.next()),"string"):(n.tokenizer=g(")",!1),"string")}function H(r,n){return function(e,o){return e.sol()&&e.indentation()<=r?(o.tokenizer=p,p(e,o)):(n&&e.skipTo("*/")?(e.next(),e.next(),o.tokenizer=p):e.skipToEnd(),"comment")}}function g(r,n){n==null&&(n=!0);function e(o,k){var h=o.next(),x=o.peek(),v=o.string.charAt(o.pos-2),y=h!=="\\"&&x===r||h===r&&v!=="\\";return y?(h!==r&&n&&o.next(),f(o)&&(k.cursorHalf=0),k.tokenizer=p,"string"):h==="#"&&x==="{"?(k.tokenizer=P(e),o.next(),"operator"):"string"}return e}function P(r){return function(n,e){return n.peek()==="}"?(n.next(),e.tokenizer=r,"operator"):p(n,e)}}function l(r){if(r.indentCount==0){r.indentCount++;var n=r.scopes[0].offset,e=n+c.indentUnit;r.scopes.unshift({offset:e})}}function C(r){r.scopes.length!=1&&r.scopes.shift()}function p(r,n){var e=r.peek();if(r.match("/*"))return n.tokenizer=H(r.indentation(),!0),n.tokenizer(r,n);if(r.match("//"))return n.tokenizer=H(r.indentation(),!1),n.tokenizer(r,n);if(r.match("#{"))return n.tokenizer=P(p),"operator";if(e==='"'||e==="'")return r.next(),n.tokenizer=g(e),"string";if(n.cursorHalf){if(e==="#"&&(r.next(),r.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||r.match(/^-?[0-9\.]+/))return f(r)&&(n.cursorHalf=0),"number";if(r.match(/^(px|em|in)\b/))return f(r)&&(n.cursorHalf=0),"unit";if(r.match(s))return f(r)&&(n.cursorHalf=0),"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=b,f(r)&&(n.cursorHalf=0),"atom";if(e==="$")return r.next(),r.eatWhile(/[\w-]/),f(r)&&(n.cursorHalf=0),"variable-2";if(e==="!")return r.next(),n.cursorHalf=0,r.match(/^[\w]+/)?"keyword":"operator";if(r.match(z))return f(r)&&(n.cursorHalf=0),"operator";if(r.eatWhile(/[\w-]/))return f(r)&&(n.cursorHalf=0),t=r.current().toLowerCase(),T.hasOwnProperty(t)?"atom":O.hasOwnProperty(t)?"keyword":d.hasOwnProperty(t)?(n.prevProp=r.current().toLowerCase(),"property"):"tag";if(f(r))return n.cursorHalf=0,null}else{if(e==="-"&&r.match(/^-\w+-/))return"meta";if(e==="."){if(r.next(),r.match(/^[\w-]+/))return l(n),"qualifier";if(r.peek()==="#")return l(n),"tag"}if(e==="#"){if(r.next(),r.match(/^[\w-]+/))return l(n),"builtin";if(r.peek()==="#")return l(n),"tag"}if(e==="$")return r.next(),r.eatWhile(/[\w-]/),"variable-2";if(r.match(/^-?[0-9\.]+/))return"number";if(r.match(/^(px|em|in)\b/))return"unit";if(r.match(s))return"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=b,"atom";if(e==="="&&r.match(/^=[\w-]+/))return l(n),"meta";if(e==="+"&&r.match(/^\+[\w-]+/))return"variable-3";if(e==="@"&&r.match("@extend")&&(r.match(/\s*[\w]/)||C(n)),r.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return l(n),"def";if(e==="@")return r.next(),r.eatWhile(/[\w-]/),"def";if(r.eatWhile(/[\w-]/))if(r.match(/ *: *[\w-\+\$#!\("']/,!1)){t=r.current().toLowerCase();var o=n.prevProp+"-"+t;return d.hasOwnProperty(o)?"property":d.hasOwnProperty(t)?(n.prevProp=t,"property"):j.hasOwnProperty(t)?"property":"tag"}else return r.match(/ *:/,!1)?(l(n),n.cursorHalf=1,n.prevProp=r.current().toLowerCase(),"property"):(r.match(/ *,/,!1)||l(n),"tag");if(e===":")return r.match(R)?"variable-3":(r.next(),n.cursorHalf=1,"operator")}return r.match(z)?"operator":(r.next(),null)}function S(r,n){r.sol()&&(n.indentCount=0);var e=n.tokenizer(r,n),o=r.current();if((o==="@return"||o==="}")&&C(n),e!==null){for(var k=r.pos-o.length,h=k+c.indentUnit*n.indentCount,x=[],v=0;vc[i]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}};(function(w,a){(function(u){u($,M)})(function(u){u.defineMode("sass",function(c){var i=u.mimeModes["text/css"],d=i.propertyKeywords||{},O=i.colorKeywords||{},T=i.valueKeywords||{},j=i.fontProperties||{};function A(r){return new RegExp("^"+r.join("|"))}var K=["true","false","null","auto"],s=new RegExp("^"+K.join("|")),L=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],z=A(L),R=/^::?[a-zA-Z_][\w\-]*/,t;function f(r){return!r.peek()||r.match(/\s+$/,!1)}function b(r,n){var e=r.peek();return e===")"?(r.next(),n.tokenizer=p,"operator"):e==="("?(r.next(),r.eatSpace(),"operator"):e==="'"||e==='"'?(n.tokenizer=g(r.next()),"string"):(n.tokenizer=g(")",!1),"string")}function H(r,n){return function(e,o){return e.sol()&&e.indentation()<=r?(o.tokenizer=p,p(e,o)):(n&&e.skipTo("*/")?(e.next(),e.next(),o.tokenizer=p):e.skipToEnd(),"comment")}}function g(r,n){n==null&&(n=!0);function e(o,k){var h=o.next(),x=o.peek(),v=o.string.charAt(o.pos-2),y=h!=="\\"&&x===r||h===r&&v!=="\\";return y?(h!==r&&n&&o.next(),f(o)&&(k.cursorHalf=0),k.tokenizer=p,"string"):h==="#"&&x==="{"?(k.tokenizer=P(e),o.next(),"operator"):"string"}return e}function P(r){return function(n,e){return n.peek()==="}"?(n.next(),e.tokenizer=r,"operator"):p(n,e)}}function l(r){if(r.indentCount==0){r.indentCount++;var n=r.scopes[0].offset,e=n+c.indentUnit;r.scopes.unshift({offset:e})}}function C(r){r.scopes.length!=1&&r.scopes.shift()}function p(r,n){var e=r.peek();if(r.match("/*"))return n.tokenizer=H(r.indentation(),!0),n.tokenizer(r,n);if(r.match("//"))return n.tokenizer=H(r.indentation(),!1),n.tokenizer(r,n);if(r.match("#{"))return n.tokenizer=P(p),"operator";if(e==='"'||e==="'")return r.next(),n.tokenizer=g(e),"string";if(n.cursorHalf){if(e==="#"&&(r.next(),r.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||r.match(/^-?[0-9\.]+/))return f(r)&&(n.cursorHalf=0),"number";if(r.match(/^(px|em|in)\b/))return f(r)&&(n.cursorHalf=0),"unit";if(r.match(s))return f(r)&&(n.cursorHalf=0),"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=b,f(r)&&(n.cursorHalf=0),"atom";if(e==="$")return r.next(),r.eatWhile(/[\w-]/),f(r)&&(n.cursorHalf=0),"variable-2";if(e==="!")return r.next(),n.cursorHalf=0,r.match(/^[\w]+/)?"keyword":"operator";if(r.match(z))return f(r)&&(n.cursorHalf=0),"operator";if(r.eatWhile(/[\w-]/))return f(r)&&(n.cursorHalf=0),t=r.current().toLowerCase(),T.hasOwnProperty(t)?"atom":O.hasOwnProperty(t)?"keyword":d.hasOwnProperty(t)?(n.prevProp=r.current().toLowerCase(),"property"):"tag";if(f(r))return n.cursorHalf=0,null}else{if(e==="-"&&r.match(/^-\w+-/))return"meta";if(e==="."){if(r.next(),r.match(/^[\w-]+/))return l(n),"qualifier";if(r.peek()==="#")return l(n),"tag"}if(e==="#"){if(r.next(),r.match(/^[\w-]+/))return l(n),"builtin";if(r.peek()==="#")return l(n),"tag"}if(e==="$")return r.next(),r.eatWhile(/[\w-]/),"variable-2";if(r.match(/^-?[0-9\.]+/))return"number";if(r.match(/^(px|em|in)\b/))return"unit";if(r.match(s))return"keyword";if(r.match(/^url/)&&r.peek()==="(")return n.tokenizer=b,"atom";if(e==="="&&r.match(/^=[\w-]+/))return l(n),"meta";if(e==="+"&&r.match(/^\+[\w-]+/))return"variable-3";if(e==="@"&&r.match("@extend")&&(r.match(/\s*[\w]/)||C(n)),r.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return l(n),"def";if(e==="@")return r.next(),r.eatWhile(/[\w-]/),"def";if(r.eatWhile(/[\w-]/))if(r.match(/ *: *[\w-\+\$#!\("']/,!1)){t=r.current().toLowerCase();var o=n.prevProp+"-"+t;return d.hasOwnProperty(o)?"property":d.hasOwnProperty(t)?(n.prevProp=t,"property"):j.hasOwnProperty(t)?"property":"tag"}else return r.match(/ *:/,!1)?(l(n),n.cursorHalf=1,n.prevProp=r.current().toLowerCase(),"property"):(r.match(/ *,/,!1)||l(n),"tag");if(e===":")return r.match(R)?"variable-3":(r.next(),n.cursorHalf=1,"operator")}return r.match(z)?"operator":(r.next(),null)}function S(r,n){r.sol()&&(n.indentCount=0);var e=n.tokenizer(r,n),o=r.current();if((o==="@return"||o==="}")&&C(n),e!==null){for(var k=r.pos-o.length,h=k+c.indentUnit*n.indentCount,x=[],v=0;vo[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,u){(function(a){a(K)})(function(a){a.defineMode("scheme",function(){var o="builtin",t="comment",d="string",b="symbol",s="atom",v="number",y="bracket",N=2;function k(e){for(var n={},i=e.split(" "),l=0;linteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),O=k("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function Q(e,n,i){this.indent=e,this.type=n,this.prev=i}function p(e,n,i){e.indentStack=new Q(n,i,e.indentStack)}function _(e){e.indentStack=e.indentStack.prev}var I=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),$=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),j=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),R=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function B(e){return e.match(I)}function D(e){return e.match($)}function m(e,n){return n===!0&&e.backUp(1),e.match(R)}function U(e){return e.match(j)}function E(e,n){for(var i,l=!1;(i=e.next())!=null;){if(i==n.token&&!l){n.state.mode=!1;break}l=!l&&i=="\\"}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,n){if(n.indentStack==null&&e.sol()&&(n.indentation=e.indentation()),e.eatSpace())return null;var i=null;switch(n.mode){case"string":E(e,{token:'"',state:n}),i=d;break;case"symbol":E(e,{token:"|",state:n}),i=b;break;case"comment":for(var l,S=!1;(l=e.next())!=null;){if(l=="#"&&S){n.mode=!1;break}S=l=="|"}i=t;break;case"s-expr-comment":if(n.mode=!1,e.peek()=="("||e.peek()=="[")n.sExprComment=0;else{e.eatWhile(/[^\s\(\)\[\]]/),i=t;break}default:var r=e.next();if(r=='"')n.mode="string",i=d;else if(r=="'")e.peek()=="("||e.peek()=="["?(typeof n.sExprQuote!="number"&&(n.sExprQuote=0),i=s):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),i=s);else if(r=="|")n.mode="symbol",i=b;else if(r=="#")if(e.eat("|"))n.mode="comment",i=t;else if(e.eat(/[tf]/i))i=s;else if(e.eat(";"))n.mode="s-expr-comment",i=t;else{var c=null,h=!1,q=!0;e.eat(/[ei]/i)?h=!0:e.backUp(1),e.match(/^#b/i)?c=B:e.match(/^#o/i)?c=D:e.match(/^#x/i)?c=U:e.match(/^#d/i)?c=m:e.match(/^[-+0-9.]/,!1)?(q=!1,c=m):h||e.eat("#"),c!=null&&(q&&!h&&e.match(/^#[ei]/i),c(e)&&(i=v))}else if(/^[-+0-9.]/.test(r)&&m(e,!0))i=v;else if(r==";")e.skipToEnd(),i=t;else if(r=="("||r=="["){for(var g="",x=e.column(),M;(M=e.eat(/[^\s\(\[\;\)\]]/))!=null;)g+=M;g.length>0&&O.propertyIsEnumerable(g)?p(n,x+N,r):(e.eatSpace(),e.eol()||e.peek()==";"?p(n,x+1,r):p(n,x+e.current().length,r)),e.backUp(e.current().length-1),typeof n.sExprComment=="number"&&n.sExprComment++,typeof n.sExprQuote=="number"&&n.sExprQuote++,i=y}else r==")"||r=="]"?(i=y,n.indentStack!=null&&n.indentStack.type==(r==")"?"(":"[")&&(_(n),typeof n.sExprComment=="number"&&--n.sExprComment==0&&(i=t,n.sExprComment=!1),typeof n.sExprQuote=="number"&&--n.sExprQuote==0&&(i=s,n.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),w&&w.propertyIsEnumerable(e.current())?i=o:i="variable")}return typeof n.sExprComment=="number"?t:typeof n.sExprQuote=="number"?s:i},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}}),a.defineMIME("text/x-scheme","scheme")})})();var C=z.exports;const L=A(C),F=P({__proto__:null,default:L},[C]);export{F as s}; +import{g as A,c as K}from"./index-F8NPuhC5.js";function P(f,u){for(var a=0;ao[t]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,u){(function(a){a(K)})(function(a){a.defineMode("scheme",function(){var o="builtin",t="comment",d="string",b="symbol",s="atom",v="number",y="bracket",N=2;function k(e){for(var n={},i=e.split(" "),l=0;linteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),O=k("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function Q(e,n,i){this.indent=e,this.type=n,this.prev=i}function p(e,n,i){e.indentStack=new Q(n,i,e.indentStack)}function _(e){e.indentStack=e.indentStack.prev}var I=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),$=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),j=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),R=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function B(e){return e.match(I)}function D(e){return e.match($)}function m(e,n){return n===!0&&e.backUp(1),e.match(R)}function U(e){return e.match(j)}function E(e,n){for(var i,l=!1;(i=e.next())!=null;){if(i==n.token&&!l){n.state.mode=!1;break}l=!l&&i=="\\"}}return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,n){if(n.indentStack==null&&e.sol()&&(n.indentation=e.indentation()),e.eatSpace())return null;var i=null;switch(n.mode){case"string":E(e,{token:'"',state:n}),i=d;break;case"symbol":E(e,{token:"|",state:n}),i=b;break;case"comment":for(var l,S=!1;(l=e.next())!=null;){if(l=="#"&&S){n.mode=!1;break}S=l=="|"}i=t;break;case"s-expr-comment":if(n.mode=!1,e.peek()=="("||e.peek()=="[")n.sExprComment=0;else{e.eatWhile(/[^\s\(\)\[\]]/),i=t;break}default:var r=e.next();if(r=='"')n.mode="string",i=d;else if(r=="'")e.peek()=="("||e.peek()=="["?(typeof n.sExprQuote!="number"&&(n.sExprQuote=0),i=s):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),i=s);else if(r=="|")n.mode="symbol",i=b;else if(r=="#")if(e.eat("|"))n.mode="comment",i=t;else if(e.eat(/[tf]/i))i=s;else if(e.eat(";"))n.mode="s-expr-comment",i=t;else{var c=null,h=!1,q=!0;e.eat(/[ei]/i)?h=!0:e.backUp(1),e.match(/^#b/i)?c=B:e.match(/^#o/i)?c=D:e.match(/^#x/i)?c=U:e.match(/^#d/i)?c=m:e.match(/^[-+0-9.]/,!1)?(q=!1,c=m):h||e.eat("#"),c!=null&&(q&&!h&&e.match(/^#[ei]/i),c(e)&&(i=v))}else if(/^[-+0-9.]/.test(r)&&m(e,!0))i=v;else if(r==";")e.skipToEnd(),i=t;else if(r=="("||r=="["){for(var g="",x=e.column(),M;(M=e.eat(/[^\s\(\[\;\)\]]/))!=null;)g+=M;g.length>0&&O.propertyIsEnumerable(g)?p(n,x+N,r):(e.eatSpace(),e.eol()||e.peek()==";"?p(n,x+1,r):p(n,x+e.current().length,r)),e.backUp(e.current().length-1),typeof n.sExprComment=="number"&&n.sExprComment++,typeof n.sExprQuote=="number"&&n.sExprQuote++,i=y}else r==")"||r=="]"?(i=y,n.indentStack!=null&&n.indentStack.type==(r==")"?"(":"[")&&(_(n),typeof n.sExprComment=="number"&&--n.sExprComment==0&&(i=t,n.sExprComment=!1),typeof n.sExprQuote=="number"&&--n.sExprQuote==0&&(i=s,n.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),w&&w.propertyIsEnumerable(e.current())?i=o:i="variable")}return typeof n.sExprComment=="number"?t:typeof n.sExprQuote=="number"?s:i},indent:function(e){return e.indentStack==null?e.indentation:e.indentStack.indent},fold:"brace-paren",closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}}),a.defineMIME("text/x-scheme","scheme")})})();var C=z.exports;const L=A(C),F=P({__proto__:null,default:L},[C]);export{F as s}; diff --git a/dist-ui/assets/shell-C4ZQSEjP.js b/dist-ui/assets/shell-BKUVH7-H.js similarity index 97% rename from dist-ui/assets/shell-C4ZQSEjP.js rename to dist-ui/assets/shell-BKUVH7-H.js index 67661cbf..d8b786f4 100644 --- a/dist-ui/assets/shell-C4ZQSEjP.js +++ b/dist-ui/assets/shell-BKUVH7-H.js @@ -1 +1 @@ -import{g as E,c as S}from"./index-CFELAGmQ.js";function m(p,d){for(var i=0;if[l]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(p,d){(function(i){i(S)})(function(i){i.defineMode("shell",function(){var f={};function l(e,n){for(var r=0;r1&&e.eat("$");var r=e.next();return/['"({]/.test(r)?(n.tokens[0]=k(r,r=="("?"quote":r=="{"?"def":"string"),h(e,n)):(/\d/.test(r)||e.eatWhile(/\w/),n.tokens.shift(),"def")};function y(e){return function(n,r){return n.sol()&&n.string==e&&r.tokens.shift(),n.skipToEnd(),"string-2"}}function h(e,n){return(n.tokens[0]||b)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,n){return h(e,n)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})})();var w=O.exports;const j=E(w),_=m({__proto__:null,default:j},[w]);export{_ as s}; +import{g as E,c as S}from"./index-F8NPuhC5.js";function m(p,d){for(var i=0;if[l]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var O={exports:{}};(function(p,d){(function(i){i(S)})(function(i){i.defineMode("shell",function(){var f={};function l(e,n){for(var r=0;r1&&e.eat("$");var r=e.next();return/['"({]/.test(r)?(n.tokens[0]=k(r,r=="("?"quote":r=="{"?"def":"string"),h(e,n)):(/\d/.test(r)||e.eatWhile(/\w/),n.tokens.shift(),"def")};function y(e){return function(n,r){return n.sol()&&n.string==e&&r.tokens.shift(),n.skipToEnd(),"string-2"}}function h(e,n){return(n.tokens[0]||b)(e,n)}return{startState:function(){return{tokens:[]}},token:function(e,n){return h(e,n)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})})();var w=O.exports;const j=E(w),_=m({__proto__:null,default:j},[w]);export{_ as s}; diff --git a/dist-ui/assets/sieve-C3Fykc7i.js b/dist-ui/assets/sieve-Chdq9iGs.js similarity index 97% rename from dist-ui/assets/sieve-C3Fykc7i.js rename to dist-ui/assets/sieve-Chdq9iGs.js index 6f5e96ea..4d21c0c5 100644 --- a/dist-ui/assets/sieve-C3Fykc7i.js +++ b/dist-ui/assets/sieve-Chdq9iGs.js @@ -1 +1 @@ -import{g as _,c as b}from"./index-CFELAGmQ.js";function y(c,p){for(var i=0;iu[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(c,p){(function(i){i(b)})(function(i){i.defineMode("sieve",function(u){function o(e){for(var n={},r=e.split(" "),t=0;tu[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(c,p){(function(i){i(b)})(function(i){i.defineMode("sieve",function(u){function o(e){for(var n={},r=e.split(" "),t=0;tl[c]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var mn={exports:{}};(function(h,g){(function(t){t(an,xn(),zn())})(function(t){t.defineMode("slim",function(l){var c=t.getMode(l,{name:"htmlmixed"}),f=t.getMode(l,"ruby"),w={html:c,ruby:f},D={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},U=function(n){var e=[];for(var i in n)e.push(i);return new RegExp("^("+e.join("|")+"):")}(D),L={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},q={"{":"}","[":"]","(":")"},m="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",y=m+"\\-0-9·̀-ͯ‿-⁀",N=new RegExp("^[:"+m+"](?::["+y+"]|["+y+"]*)"),Q=new RegExp("^[:"+m+"][:\\."+y+"]*(?=\\s*=)"),V=new RegExp("^[:"+m+"][:\\."+y+"]*"),W=/^\.-?[_a-zA-Z]+[\w\-]*/,H=/^#[_a-zA-Z]+[\w\-]*/;function Z(n,e,i){var u=function(r,o){return o.tokenize=e,r.pos-1&&(e.tokenize=Z(n.pos,e.tokenize,r),n.backUp(o.length-k-u)),r}function F(n,e){n.stack={parent:n.stack,style:"continuation",indented:e,tokenize:n.line},n.line=n.tokenize}function A(n){n.line==n.tokenize&&(n.line=n.stack.tokenize,n.stack=n.stack.parent)}function G(n,e){return function(i,u){if(A(u),i.match(/^\\$/))return F(u,n),"lineContinuation";var r=e(i,u);return i.eol()&&i.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&i.backUp(1),r}}function J(n,e){return function(i,u){A(u);var r=e(i,u);return i.eol()&&i.current().match(/,$/)&&F(u,n),r}}function M(n,e){return function(i,u){var r=i.peek();return r==n&&u.rubyState.tokenize.length==1?(i.next(),u.tokenize=e,"closeAttributeTag"):a(i,u)}}function d(n){var e,i=function(u,r){if(r.rubyState.tokenize.length==1&&!r.rubyState.context.prev){if(u.backUp(1),u.eatSpace())return r.rubyState=e,r.tokenize=n,n(u,r);u.next()}return a(u,r)};return function(u,r){return e=r.rubyState,r.rubyState=t.startState(f),r.tokenize=i,a(u,r)}}function a(n,e){return f.token(n,e.rubyState)}function K(n,e){return n.match(/^\\$/)?"lineContinuation":s(n,e)}function s(n,e){return n.match(/^#\{/)?(e.tokenize=M("}",e.tokenize),null):B(n,e,/[^\\]#\{/,1,c.token(n,e.htmlState))}function X(n){return function(e,i){var u=K(e,i);return e.eol()&&(i.tokenize=n),u}}function O(n,e,i){return e.stack={parent:e.stack,style:"html",indented:n.column()+i,tokenize:e.line},e.line=e.tokenize=s,null}function T(n,e){return n.skipToEnd(),e.stack.style}function Y(n,e){return e.stack={parent:e.stack,style:"comment",indented:e.indented+1,tokenize:e.line},e.line=T,T(n,e)}function p(n,e){return n.eat(e.stack.endQuote)?(e.line=e.stack.line,e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,null):n.match(V)?(e.tokenize=nn,"slimAttribute"):(n.next(),null)}function nn(n,e){return n.match(/^==?/)?(e.tokenize=en,null):p(n,e)}function en(n,e){var i=n.peek();return i=='"'||i=="'"?(e.tokenize=j(i,"string",!0,!1,p),n.next(),e.tokenize(n,e)):i=="["?d(p)(n,e):n.match(/^(true|false|nil)\b/)?(e.tokenize=p,"keyword"):d(p)(n,e)}function un(n,e,i){return n.stack={parent:n.stack,style:"wrapper",indented:n.indented+1,tokenize:i,line:n.line,endQuote:e},n.line=n.tokenize=p,null}function rn(n,e){if(n.match(/^#\{/))return e.tokenize=M("}",e.tokenize),null;var i=new t.StringStream(n.string.slice(e.stack.indented),n.tabSize);i.pos=n.pos-e.stack.indented,i.start=n.start-e.stack.indented,i.lastColumnPos=n.lastColumnPos-e.stack.indented,i.lastColumnValue=n.lastColumnValue-e.stack.indented;var u=e.subMode.token(i,e.subState);return n.pos=i.pos+e.stack.indented,u}function tn(n,e){return e.stack.indented=n.column(),e.line=e.tokenize=rn,e.tokenize(n,e)}function on(n){var e=D[n],i=t.mimeModes[e];if(i)return t.getMode(l,i);var u=t.modes[e];return u?u(l,{name:e}):t.getMode(l,"null")}function ln(n){return w.hasOwnProperty(n)?w[n]:w[n]=on(n)}function cn(n,e){var i=ln(n),u=t.startState(i);return e.subMode=i,e.subState=u,e.stack={parent:e.stack,style:"sub",indented:e.indented+1,tokenize:e.line},e.line=e.tokenize=tn,"slimSubmode"}function fn(n,e){return n.skipToEnd(),"slimDoctype"}function kn(n,e){var i=n.peek();if(i=="<")return(e.tokenize=X(e.tokenize))(n,e);if(n.match(/^[|']/))return O(n,e,1);if(n.match(/^\/(!|\[\w+])?/))return Y(n,e);if(n.match(/^(-|==?[<>]?)/))return e.tokenize=G(n.column(),J(n.column(),a)),"slimSwitch";if(n.match(/^doctype\b/))return e.tokenize=fn,"keyword";var u=n.match(U);return u?cn(u[1],e):R(n,e)}function E(n,e){return e.startOfLine?kn(n,e):R(n,e)}function R(n,e){return n.eat("*")?(e.tokenize=d(_),null):n.match(N)?(e.tokenize=_,"slimTag"):x(n,e)}function _(n,e){return n.match(/^(<>?|>e.indented&&e.last!="slimSubmode";)e.line=e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,e.subMode=null,e.subState=null;if(n.eatSpace())return null;var i=e.tokenize(n,e);return e.startOfLine=!1,i&&(e.last=i),L.hasOwnProperty(i)?L[i]:i},blankLine:function(n){if(n.subMode&&n.subMode.blankLine)return n.subMode.blankLine(n.subState)},innerMode:function(n){return n.subMode?{state:n.subState,mode:n.subMode}:{state:n,mode:C}}};return C},"htmlmixed","ruby"),t.defineMIME("text/x-slim","slim"),t.defineMIME("application/x-slim","slim")})})();var I=mn.exports;const yn=pn(I),wn=hn({__proto__:null,default:yn},[I]);export{wn as s}; +import{g as pn,c as an}from"./index-F8NPuhC5.js";import{r as xn}from"./htmlmixed-B3bg9pWJ.js";import{r as zn}from"./ruby-pfYNpgKz.js";function hn(h,g){for(var t=0;tl[c]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var mn={exports:{}};(function(h,g){(function(t){t(an,xn(),zn())})(function(t){t.defineMode("slim",function(l){var c=t.getMode(l,{name:"htmlmixed"}),f=t.getMode(l,"ruby"),w={html:c,ruby:f},D={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},U=function(n){var e=[];for(var i in n)e.push(i);return new RegExp("^("+e.join("|")+"):")}(D),L={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},q={"{":"}","[":"]","(":")"},m="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�",y=m+"\\-0-9·̀-ͯ‿-⁀",N=new RegExp("^[:"+m+"](?::["+y+"]|["+y+"]*)"),Q=new RegExp("^[:"+m+"][:\\."+y+"]*(?=\\s*=)"),V=new RegExp("^[:"+m+"][:\\."+y+"]*"),W=/^\.-?[_a-zA-Z]+[\w\-]*/,H=/^#[_a-zA-Z]+[\w\-]*/;function Z(n,e,i){var u=function(r,o){return o.tokenize=e,r.pos-1&&(e.tokenize=Z(n.pos,e.tokenize,r),n.backUp(o.length-k-u)),r}function F(n,e){n.stack={parent:n.stack,style:"continuation",indented:e,tokenize:n.line},n.line=n.tokenize}function A(n){n.line==n.tokenize&&(n.line=n.stack.tokenize,n.stack=n.stack.parent)}function G(n,e){return function(i,u){if(A(u),i.match(/^\\$/))return F(u,n),"lineContinuation";var r=e(i,u);return i.eol()&&i.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&i.backUp(1),r}}function J(n,e){return function(i,u){A(u);var r=e(i,u);return i.eol()&&i.current().match(/,$/)&&F(u,n),r}}function M(n,e){return function(i,u){var r=i.peek();return r==n&&u.rubyState.tokenize.length==1?(i.next(),u.tokenize=e,"closeAttributeTag"):a(i,u)}}function d(n){var e,i=function(u,r){if(r.rubyState.tokenize.length==1&&!r.rubyState.context.prev){if(u.backUp(1),u.eatSpace())return r.rubyState=e,r.tokenize=n,n(u,r);u.next()}return a(u,r)};return function(u,r){return e=r.rubyState,r.rubyState=t.startState(f),r.tokenize=i,a(u,r)}}function a(n,e){return f.token(n,e.rubyState)}function K(n,e){return n.match(/^\\$/)?"lineContinuation":s(n,e)}function s(n,e){return n.match(/^#\{/)?(e.tokenize=M("}",e.tokenize),null):B(n,e,/[^\\]#\{/,1,c.token(n,e.htmlState))}function X(n){return function(e,i){var u=K(e,i);return e.eol()&&(i.tokenize=n),u}}function O(n,e,i){return e.stack={parent:e.stack,style:"html",indented:n.column()+i,tokenize:e.line},e.line=e.tokenize=s,null}function T(n,e){return n.skipToEnd(),e.stack.style}function Y(n,e){return e.stack={parent:e.stack,style:"comment",indented:e.indented+1,tokenize:e.line},e.line=T,T(n,e)}function p(n,e){return n.eat(e.stack.endQuote)?(e.line=e.stack.line,e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,null):n.match(V)?(e.tokenize=nn,"slimAttribute"):(n.next(),null)}function nn(n,e){return n.match(/^==?/)?(e.tokenize=en,null):p(n,e)}function en(n,e){var i=n.peek();return i=='"'||i=="'"?(e.tokenize=j(i,"string",!0,!1,p),n.next(),e.tokenize(n,e)):i=="["?d(p)(n,e):n.match(/^(true|false|nil)\b/)?(e.tokenize=p,"keyword"):d(p)(n,e)}function un(n,e,i){return n.stack={parent:n.stack,style:"wrapper",indented:n.indented+1,tokenize:i,line:n.line,endQuote:e},n.line=n.tokenize=p,null}function rn(n,e){if(n.match(/^#\{/))return e.tokenize=M("}",e.tokenize),null;var i=new t.StringStream(n.string.slice(e.stack.indented),n.tabSize);i.pos=n.pos-e.stack.indented,i.start=n.start-e.stack.indented,i.lastColumnPos=n.lastColumnPos-e.stack.indented,i.lastColumnValue=n.lastColumnValue-e.stack.indented;var u=e.subMode.token(i,e.subState);return n.pos=i.pos+e.stack.indented,u}function tn(n,e){return e.stack.indented=n.column(),e.line=e.tokenize=rn,e.tokenize(n,e)}function on(n){var e=D[n],i=t.mimeModes[e];if(i)return t.getMode(l,i);var u=t.modes[e];return u?u(l,{name:e}):t.getMode(l,"null")}function ln(n){return w.hasOwnProperty(n)?w[n]:w[n]=on(n)}function cn(n,e){var i=ln(n),u=t.startState(i);return e.subMode=i,e.subState=u,e.stack={parent:e.stack,style:"sub",indented:e.indented+1,tokenize:e.line},e.line=e.tokenize=tn,"slimSubmode"}function fn(n,e){return n.skipToEnd(),"slimDoctype"}function kn(n,e){var i=n.peek();if(i=="<")return(e.tokenize=X(e.tokenize))(n,e);if(n.match(/^[|']/))return O(n,e,1);if(n.match(/^\/(!|\[\w+])?/))return Y(n,e);if(n.match(/^(-|==?[<>]?)/))return e.tokenize=G(n.column(),J(n.column(),a)),"slimSwitch";if(n.match(/^doctype\b/))return e.tokenize=fn,"keyword";var u=n.match(U);return u?cn(u[1],e):R(n,e)}function E(n,e){return e.startOfLine?kn(n,e):R(n,e)}function R(n,e){return n.eat("*")?(e.tokenize=d(_),null):n.match(N)?(e.tokenize=_,"slimTag"):x(n,e)}function _(n,e){return n.match(/^(<>?|>e.indented&&e.last!="slimSubmode";)e.line=e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,e.subMode=null,e.subState=null;if(n.eatSpace())return null;var i=e.tokenize(n,e);return e.startOfLine=!1,i&&(e.last=i),L.hasOwnProperty(i)?L[i]:i},blankLine:function(n){if(n.subMode&&n.subMode.blankLine)return n.subMode.blankLine(n.subState)},innerMode:function(n){return n.subMode?{state:n.subState,mode:n.subMode}:{state:n,mode:C}}};return C},"htmlmixed","ruby"),t.defineMIME("text/x-slim","slim"),t.defineMIME("application/x-slim","slim")})})();var I=mn.exports;const yn=pn(I),wn=hn({__proto__:null,default:yn},[I]);export{wn as s}; diff --git a/dist-ui/assets/smalltalk-BEYwcsYK.js b/dist-ui/assets/smalltalk-BtLZNwU-.js similarity index 97% rename from dist-ui/assets/smalltalk-BEYwcsYK.js rename to dist-ui/assets/smalltalk-BtLZNwU-.js index 9ff3db80..d9443d7e 100644 --- a/dist-ui/assets/smalltalk-BEYwcsYK.js +++ b/dist-ui/assets/smalltalk-BtLZNwU-.js @@ -1 +1 @@ -import{g as m,c as g}from"./index-CFELAGmQ.js";function y(c,p){for(var a=0;al[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};(function(c,p){(function(a){a(g)})(function(a){a.defineMode("smalltalk",function(l){var o=/[+\-\/\\*~<>=@%|&?!.,:;^]/,s=/true|false|nil|self|super|thisContext/,u=function(e,n){this.next=e,this.parent=n},f=function(e,n,t){this.name=e,this.context=n,this.eos=t},d=function(){this.context=new u(x,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};d.prototype.userIndent=function(e){this.userIndentationDelta=e>0?e/l.indentUnit-this.indentation:0};var x=function(e,n,t){var i=new f(null,n,!1),r=e.next();return r==='"'?i=h(e,new u(h,n)):r==="'"?i=v(e,new u(v,n)):r==="#"?e.peek()==="'"?(e.next(),i=b(e,new u(b,n))):e.eatWhile(/[^\s.{}\[\]()]/)?i.name="string-2":i.name="meta":r==="$"?(e.next()==="<"&&(e.eatWhile(/[^\s>]/),e.next()),i.name="string-2"):r==="|"&&t.expectVariable?i.context=new u(w,n):/[\[\]{}()]/.test(r)?(i.name="bracket",i.eos=/[\[{(]/.test(r),r==="["?t.indentation++:r==="]"&&(t.indentation=Math.max(0,t.indentation-1))):o.test(r)?(e.eatWhile(o),i.name="operator",i.eos=r!==";"):/\d/.test(r)?(e.eatWhile(/[\w\d]/),i.name="number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\d_]/),i.name=t.expectVariable?s.test(e.current())?"keyword":"variable":null):i.eos=t.expectVariable,i},h=function(e,n){return e.eatWhile(/[^"]/),new f("comment",e.eat('"')?n.parent:n,!0)},v=function(e,n){return e.eatWhile(/[^']/),new f("string",e.eat("'")?n.parent:n,!1)},b=function(e,n){return e.eatWhile(/[^']/),new f("string-2",e.eat("'")?n.parent:n,!1)},w=function(e,n){var t=new f(null,n,!1),i=e.next();return i==="|"?(t.context=n.parent,t.eos=!0):(e.eatWhile(/[^|]/),t.name="variable"),t};return{startState:function(){return new d},token:function(e,n){if(n.userIndent(e.indentation()),e.eatSpace())return null;var t=n.context.next(e,n.context,n);return n.context=t.context,n.expectVariable=t.eos,t.name},blankLine:function(e){e.userIndent(0)},indent:function(e,n){var t=e.context.next===x&&n&&n.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+t)*l.indentUnit},electricChars:"]"}}),a.defineMIME("text/x-stsrc",{name:"smalltalk"})})})();var k=W.exports;const C=m(k),S=y({__proto__:null,default:C},[k]);export{S as s}; +import{g as m,c as g}from"./index-F8NPuhC5.js";function y(c,p){for(var a=0;al[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var W={exports:{}};(function(c,p){(function(a){a(g)})(function(a){a.defineMode("smalltalk",function(l){var o=/[+\-\/\\*~<>=@%|&?!.,:;^]/,s=/true|false|nil|self|super|thisContext/,u=function(e,n){this.next=e,this.parent=n},f=function(e,n,t){this.name=e,this.context=n,this.eos=t},d=function(){this.context=new u(x,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};d.prototype.userIndent=function(e){this.userIndentationDelta=e>0?e/l.indentUnit-this.indentation:0};var x=function(e,n,t){var i=new f(null,n,!1),r=e.next();return r==='"'?i=h(e,new u(h,n)):r==="'"?i=v(e,new u(v,n)):r==="#"?e.peek()==="'"?(e.next(),i=b(e,new u(b,n))):e.eatWhile(/[^\s.{}\[\]()]/)?i.name="string-2":i.name="meta":r==="$"?(e.next()==="<"&&(e.eatWhile(/[^\s>]/),e.next()),i.name="string-2"):r==="|"&&t.expectVariable?i.context=new u(w,n):/[\[\]{}()]/.test(r)?(i.name="bracket",i.eos=/[\[{(]/.test(r),r==="["?t.indentation++:r==="]"&&(t.indentation=Math.max(0,t.indentation-1))):o.test(r)?(e.eatWhile(o),i.name="operator",i.eos=r!==";"):/\d/.test(r)?(e.eatWhile(/[\w\d]/),i.name="number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\d_]/),i.name=t.expectVariable?s.test(e.current())?"keyword":"variable":null):i.eos=t.expectVariable,i},h=function(e,n){return e.eatWhile(/[^"]/),new f("comment",e.eat('"')?n.parent:n,!0)},v=function(e,n){return e.eatWhile(/[^']/),new f("string",e.eat("'")?n.parent:n,!1)},b=function(e,n){return e.eatWhile(/[^']/),new f("string-2",e.eat("'")?n.parent:n,!1)},w=function(e,n){var t=new f(null,n,!1),i=e.next();return i==="|"?(t.context=n.parent,t.eos=!0):(e.eatWhile(/[^|]/),t.name="variable"),t};return{startState:function(){return new d},token:function(e,n){if(n.userIndent(e.indentation()),e.eatSpace())return null;var t=n.context.next(e,n.context,n);return n.context=t.context,n.expectVariable=t.eos,t.name},blankLine:function(e){e.userIndent(0)},indent:function(e,n){var t=e.context.next===x&&n&&n.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+t)*l.indentUnit},electricChars:"]"}}),a.defineMIME("text/x-stsrc",{name:"smalltalk"})})})();var k=W.exports;const C=m(k),S=y({__proto__:null,default:C},[k]);export{S as s}; diff --git a/dist-ui/assets/smarty-D4NxUHxc.js b/dist-ui/assets/smarty-D0_e_fu2.js similarity index 98% rename from dist-ui/assets/smarty-D4NxUHxc.js rename to dist-ui/assets/smarty-D0_e_fu2.js index bec94990..1069975a 100644 --- a/dist-ui/assets/smarty-D4NxUHxc.js +++ b/dist-ui/assets/smarty-D0_e_fu2.js @@ -1 +1 @@ -import{g as D,c as O}from"./index-CFELAGmQ.js";function _(v,k){for(var o=0;oa[u]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(v,k){(function(o){o(O)})(function(o){o.defineMode("smarty",function(a,u){var d=u.rightDelimiter||"}",c=u.leftDelimiter||"{",b=u.version||2,p=o.getMode(a,u.baseMode||"null"),y=["debug","extends","function","include","literal"],f={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},h;function n(e,t){return h=t,e}function I(e,t,r){return t.tokenize=r,r(e,t)}function w(e,t){return t==null&&(t=e.pos),b===3&&c=="{"&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function s(e,t){for(var r=e.string,l=e.pos;;){var i=r.indexOf(c,l);if(l=i+c.length,i==-1||!w(e,i+c.length))break}if(i==e.pos)return e.match(c),e.eat("*")?I(e,t,S("comment","*"+d)):(t.depth++,t.tokenize=z,h="startTag","tag");i>-1&&(e.string=r.slice(0,i));var g=p.token(e,t.base);return i>-1&&(e.string=r),g}function z(e,t){if(e.match(d,!0))return b===3?(t.depth--,t.depth<=0&&(t.tokenize=s)):t.tokenize=s,n("tag",null);if(e.match(c,!0))return t.depth++,n("tag","startTag");var r=e.next();if(r=="$")return e.eatWhile(f.validIdentifier),n("variable-2","variable");if(r=="|")return n("operator","pipe");if(r==".")return n("operator","property");if(f.stringChar.test(r))return t.tokenize=x(r),n("string","string");if(f.operatorChars.test(r))return e.eatWhile(f.operatorChars),n("operator","operator");if(r=="["||r=="]")return n("bracket","bracket");if(r=="("||r==")")return n("bracket","operator");if(/\d/.test(r))return e.eatWhile(/\d/),n("number","number");if(t.last=="variable"){if(r=="@")return e.eatWhile(f.validIdentifier),n("property","property");if(r=="|")return e.eatWhile(f.validIdentifier),n("qualifier","modifier")}else{if(t.last=="pipe")return e.eatWhile(f.validIdentifier),n("qualifier","modifier");if(t.last=="whitespace")return e.eatWhile(f.validIdentifier),n("attribute","modifier")}if(t.last=="property")return e.eatWhile(f.validIdentifier),n("property",null);if(/\s/.test(r))return h="whitespace",null;var l="";r!="/"&&(l+=r);for(var i=null;i=e.eat(f.validIdentifier);)l+=i;for(var g=0,W=y.length;ga[u]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(v,k){(function(o){o(O)})(function(o){o.defineMode("smarty",function(a,u){var d=u.rightDelimiter||"}",c=u.leftDelimiter||"{",b=u.version||2,p=o.getMode(a,u.baseMode||"null"),y=["debug","extends","function","include","literal"],f={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},h;function n(e,t){return h=t,e}function I(e,t,r){return t.tokenize=r,r(e,t)}function w(e,t){return t==null&&(t=e.pos),b===3&&c=="{"&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function s(e,t){for(var r=e.string,l=e.pos;;){var i=r.indexOf(c,l);if(l=i+c.length,i==-1||!w(e,i+c.length))break}if(i==e.pos)return e.match(c),e.eat("*")?I(e,t,S("comment","*"+d)):(t.depth++,t.tokenize=z,h="startTag","tag");i>-1&&(e.string=r.slice(0,i));var g=p.token(e,t.base);return i>-1&&(e.string=r),g}function z(e,t){if(e.match(d,!0))return b===3?(t.depth--,t.depth<=0&&(t.tokenize=s)):t.tokenize=s,n("tag",null);if(e.match(c,!0))return t.depth++,n("tag","startTag");var r=e.next();if(r=="$")return e.eatWhile(f.validIdentifier),n("variable-2","variable");if(r=="|")return n("operator","pipe");if(r==".")return n("operator","property");if(f.stringChar.test(r))return t.tokenize=x(r),n("string","string");if(f.operatorChars.test(r))return e.eatWhile(f.operatorChars),n("operator","operator");if(r=="["||r=="]")return n("bracket","bracket");if(r=="("||r==")")return n("bracket","operator");if(/\d/.test(r))return e.eatWhile(/\d/),n("number","number");if(t.last=="variable"){if(r=="@")return e.eatWhile(f.validIdentifier),n("property","property");if(r=="|")return e.eatWhile(f.validIdentifier),n("qualifier","modifier")}else{if(t.last=="pipe")return e.eatWhile(f.validIdentifier),n("qualifier","modifier");if(t.last=="whitespace")return e.eatWhile(f.validIdentifier),n("attribute","modifier")}if(t.last=="property")return e.eatWhile(f.validIdentifier),n("property",null);if(/\s/.test(r))return h="whitespace",null;var l="";r!="/"&&(l+=r);for(var i=null;i=e.eat(f.validIdentifier);)l+=i;for(var g=0,W=y.length;gi[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(l,c){(function(o){o(z)})(function(o){o.defineMode("solr",function(){var i=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,f=/[\|\!\+\-\*\?\~\^\&]/,u=/^(OR|AND|NOT|TO)$/i;function k(e){return parseFloat(e).toString()===e}function g(e){return function(t,r){for(var n=!1,a;(a=t.next())!=null&&!(a==e&&!n);)n=!n&&a=="\\";return n||(r.tokenize=s),"string"}}function d(e){return function(t,r){var n="operator";return e=="+"?n+=" positive":e=="-"?n+=" negative":e=="|"?t.eat(/\|/):e=="&"?t.eat(/\&/):e=="^"&&(n+=" boost"),r.tokenize=s,n}}function v(e){return function(t,r){for(var n=e;(e=t.peek())&&e.match(i)!=null;)n+=t.next();return r.tokenize=s,u.test(n)?"operator":k(n)?"number":t.peek()==":"?"field":"string"}}function s(e,t){var r=e.next();return r=='"'?t.tokenize=g(r):f.test(r)?t.tokenize=d(r):i.test(r)&&(t.tokenize=v(r)),t.tokenize!=s?t.tokenize(e,t):null}return{startState:function(){return{tokenize:s}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}),o.defineMIME("text/x-solr","solr")})})();var p=b.exports;const y=x(p),m=O({__proto__:null,default:y},[p]);export{m as s}; +import{g as x,c as z}from"./index-F8NPuhC5.js";function O(l,c){for(var o=0;oi[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var b={exports:{}};(function(l,c){(function(o){o(z)})(function(o){o.defineMode("solr",function(){var i=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,f=/[\|\!\+\-\*\?\~\^\&]/,u=/^(OR|AND|NOT|TO)$/i;function k(e){return parseFloat(e).toString()===e}function g(e){return function(t,r){for(var n=!1,a;(a=t.next())!=null&&!(a==e&&!n);)n=!n&&a=="\\";return n||(r.tokenize=s),"string"}}function d(e){return function(t,r){var n="operator";return e=="+"?n+=" positive":e=="-"?n+=" negative":e=="|"?t.eat(/\|/):e=="&"?t.eat(/\&/):e=="^"&&(n+=" boost"),r.tokenize=s,n}}function v(e){return function(t,r){for(var n=e;(e=t.peek())&&e.match(i)!=null;)n+=t.next();return r.tokenize=s,u.test(n)?"operator":k(n)?"number":t.peek()==":"?"field":"string"}}function s(e,t){var r=e.next();return r=='"'?t.tokenize=g(r):f.test(r)?t.tokenize=d(r):i.test(r)&&(t.tokenize=v(r)),t.tokenize!=s?t.tokenize(e,t):null}return{startState:function(){return{tokenize:s}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}),o.defineMIME("text/x-solr","solr")})})();var p=b.exports;const y=x(p),m=O({__proto__:null,default:y},[p]);export{m as s}; diff --git a/dist-ui/assets/soy-OpLLWLYS.js b/dist-ui/assets/soy-CaLVNzhZ.js similarity index 98% rename from dist-ui/assets/soy-OpLLWLYS.js rename to dist-ui/assets/soy-CaLVNzhZ.js index ab82a53d..38c3a8ff 100644 --- a/dist-ui/assets/soy-OpLLWLYS.js +++ b/dist-ui/assets/soy-CaLVNzhZ.js @@ -1 +1 @@ -import{g as P,c as F}from"./index-CFELAGmQ.js";import{r as z}from"./htmlmixed-D5WYNkec.js";function D(v,g){for(var l=0;lo[i]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(v,g){(function(l){l(F,z())})(function(l){var o={noEndTag:!0,soyState:"param-def"},i={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@attribute":o,"@attribute?":o,"@param":o,"@param?":o,"@inject":o,"@inject?":o,"@state":o,template:{soyState:"templ-def",variableScope:!0},extern:{soyState:"param-def"},export:{soyState:"export"},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},javaimpl:{},jsimpl:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0},velog:{},const:{soyState:"const-def"}},h=Object.keys(i).filter(function(r){return!i[r].noEndTag||i[r].reduceIndent});l.defineMode("soy",function(r){var x=l.getMode(r,"text/plain"),b={html:l.getMode(r,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),attributes:x,text:x,uri:x,trusted_resource_uri:x,css:l.getMode(r,"text/css"),js:l.getMode(r,{name:"text/javascript",statementIndent:2*r.indentUnit})};function f(n){return n[n.length-1]}function E(n,e,t){if(n.sol()){for(var u=0;u]=?)/)?"operator":(t=n.match(/^\$([\w]+)/))?j(e.variables,t[1],!e.lookupVariables):(t=n.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(t[0])?"keyword":null:(n.next(),null)}return{startState:function(){return{soyState:[],variables:S(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:b.html,state:l.startState(b.html)}]}},copyState:function(n){return{tag:n.tag,soyState:n.soyState.concat([]),variables:n.variables,context:n.context,indent:n.indent,quoteKind:n.quoteKind,lookupVariables:n.lookupVariables,localStates:n.localStates.map(function(e){return{mode:e.mode,state:l.copyState(e.mode,e.state)}})}},token:function(n,e){var t;switch(f(e.soyState)){case"comment":if(n.match(/^.*?\*\//)?e.soyState.pop():n.skipToEnd(),!e.context||!e.context.scope)for(var u=/@param\??\s+(\S+)/g,d=n.current(),t;t=u.exec(d);)e.variables=S(e.variables,t[1]);return"comment";case"string":var t=n.match(/^.*?(["']|\\[\s\S])/);return t?t[1]==e.quoteKind&&(e.quoteKind=null,e.soyState.pop()):n.skipToEnd(),"string"}if(!e.soyState.length||f(e.soyState)!="literal"){if(n.match(/^\/\*/))return e.soyState.push("comment"),"comment";if(n.match(n.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(f(e.soyState)){case"templ-def":return(t=n.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(e.soyState.pop(),"def"):(n.next(),null);case"templ-ref":return(t=n.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(e.soyState.pop(),t[0][0]=="."?"variable-2":"variable"):(t=n.match(/^\$([\w]+)/))?(e.soyState.pop(),j(e.variables,t[1],!e.lookupVariables)):(n.next(),null);case"namespace-def":return(t=n.match(/^\.?([\w\.]+)/))?(e.soyState.pop(),"variable"):(n.next(),null);case"param-def":return(t=n.match(/^\*/))?(e.soyState.pop(),e.soyState.push("param-type"),"type"):(t=n.match(/^\w+/))?(e.variables=S(e.variables,t[0]),e.soyState.pop(),e.soyState.push("param-type"),"def"):(n.next(),null);case"param-ref":return(t=n.match(/^\w+/))?(e.soyState.pop(),"property"):(n.next(),null);case"open-parentheses":return n.match(/[)]/)?(e.soyState.pop(),null):m(n,e);case"param-type":var a=n.peek();return"}]=>,".indexOf(a)!=-1?(e.soyState.pop(),null):a=="["?(e.soyState.push("param-type-record"),null):a=="("?(e.soyState.push("param-type-template"),null):a=="<"?(e.soyState.push("param-type-parameter"),null):(t=n.match(/^([\w]+|[?])/))?"type":(n.next(),null);case"param-type-record":var a=n.peek();return a=="]"?(e.soyState.pop(),null):n.match(/^\w+/)?(e.soyState.push("param-type"),"property"):(n.next(),null);case"param-type-parameter":return n.match(/^[>]/)?(e.soyState.pop(),null):n.match(/^[<,]/)?(e.soyState.push("param-type"),null):(n.next(),null);case"param-type-template":return n.match(/[>]/)?(e.soyState.pop(),e.soyState.push("param-type"),null):n.match(/^\w+/)?(e.soyState.push("param-type"),"def"):(n.next(),null);case"var-def":return(t=n.match(/^\$([\w]+)/))?(e.variables=S(e.variables,t[1]),e.soyState.pop(),"def"):(n.next(),null);case"for-loop":return n.match(/\bin\b/)?(e.soyState.pop(),"keyword"):n.peek()=="$"?(e.soyState.push("var-def"),null):(n.next(),null);case"record-literal":return n.match(/^[)]/)?(e.soyState.pop(),null):n.match(/[(,]/)?(e.soyState.push("map-value"),e.soyState.push("record-key"),null):(n.next(),null);case"map-literal":return n.match(/^[)]/)?(e.soyState.pop(),null):n.match(/[(,]/)?(e.soyState.push("map-value"),e.soyState.push("map-value"),null):(n.next(),null);case"list-literal":return n.match("]")?(e.soyState.pop(),e.lookupVariables=!0,w(e),null):n.match(/\bfor\b/)?(e.lookupVariables=!0,e.soyState.push("for-loop"),"keyword"):m(n,e);case"record-key":return n.match(/[\w]+/)?"property":n.match(/^[:]/)?(e.soyState.pop(),null):(n.next(),null);case"map-value":return n.peek()==")"||n.peek()==","||n.match(/^[:)]/)?(e.soyState.pop(),null):m(n,e);case"import":return n.eat(";")?(e.soyState.pop(),e.indent-=2*r.indentUnit,null):n.match(/\w+(?=\s+as\b)/)?"variable":(t=n.match(/\w+/))?/\b(from|as)\b/.test(t[0])?"keyword":"def":(t=n.match(/^["']/))?(e.soyState.push("string"),e.quoteKind=t[0],"string"):(n.next(),null);case"tag":var p,c;e.tag===void 0?(p=!0,c=""):(p=e.tag[0]=="/",c=p?e.tag.substring(1):e.tag);var y=i[c];if(n.match(/^\/?}/)){var I=n.current()=="/}";return I&&!p&&w(e),e.tag=="/template"||e.tag=="/deltemplate"?(e.variables=S(null,"ij"),e.indent=0):e.indent-=r.indentUnit*(I||h.indexOf(e.tag)==-1?2:1),e.soyState.pop(),"keyword"}else if(n.match(/^([\w?]+)(?==)/)){if(e.context&&e.context.tag==c&&n.current()=="kind"&&(t=n.match(/^="([^"]+)/,!1))){var U=t[1];e.context.kind=U;var $=b[U]||b.html,s=f(e.localStates);s.mode.indent&&(e.indent+=s.mode.indent(s.state,"","")),e.localStates.push({mode:$,state:l.startState($)})}return"attribute"}return m(n,e);case"template-call-expression":return n.match(/^([\w-?]+)(?==)/)?"attribute":n.eat(">")||n.eat("/>")?(e.soyState.pop(),"keyword"):m(n,e);case"literal":return n.match("{/literal}",!1)?(e.soyState.pop(),this.token(n,e)):E(n,e,/\{\/literal}/);case"export":if(t=n.match(/\w+/)){if(e.soyState.pop(),t=="const")return e.soyState.push("const-def"),"keyword";if(t=="extern")return e.soyState.push("param-def"),"keyword"}else n.next();return null;case"const-def":return n.match(/^\w+/)?(e.soyState.pop(),"def"):(n.next(),null)}if(n.match("{literal}"))return e.indent+=r.indentUnit,e.soyState.push("literal"),e.context=new k(e.context,"literal",e.variables),"keyword";if(t=n.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var q=e.tag;e.tag=t[1];var p=e.tag[0]=="/",V=!!i[e.tag],c=p?e.tag.substring(1):e.tag,y=i[c];e.tag!="/switch"&&(e.indent+=((p||y&&y.reduceIndent)&&q!="switch"?1:2)*r.indentUnit),e.soyState.push("tag");var T=!1;if(y){if(p||y.soyState&&e.soyState.push(y.soyState),!y.noEndTag&&(V||!p))e.context=new k(e.context,e.tag,y.variableScope?e.variables:null);else if(p){var K=c=="extern"&&e.context&&e.context.tag=="export";if(!e.context||e.context.tag!=c&&!K)T=!0;else if(e.context){if(e.context.kind){e.localStates.pop();var s=f(e.localStates);s.mode.indent&&(e.indent-=s.mode.indent(s.state,"",""))}w(e)}}}else p&&(T=!0);return(T?"error ":"")+"keyword"}else{if(n.eat("{"))return e.tag="print",e.indent+=2*r.indentUnit,e.soyState.push("tag"),"keyword";if(!e.context&&n.sol()&&n.match(/import\b/))return e.soyState.push("import"),e.indent+=2*r.indentUnit,"keyword";if(t=n.match("<{"))return e.soyState.push("template-call-expression"),e.indent+=2*r.indentUnit,e.soyState.push("tag"),"keyword";if(t=n.match(""))return e.indent-=1*r.indentUnit,"keyword"}return E(n,e,/\{|\s+\/\/|\/\*/)},indent:function(n,e,t){var u=n.indent,d=f(n.soyState);if(d=="comment")return l.Pass;if(d=="literal")/^\{\/literal}/.test(e)&&(u-=r.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(e))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(e)&&(u-=r.indentUnit),n.tag!="switch"&&/^\{(case|default)\b/.test(e)&&(u-=r.indentUnit),/^\{\/switch\b/.test(e)&&(u-=r.indentUnit)}var a=f(n.localStates);return u&&a.mode.indent&&(u+=a.mode.indent(a.state,e,t)),u},innerMode:function(n){return n.soyState.length&&f(n.soyState)!="literal"?null:f(n.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}},"htmlmixed"),l.registerHelper("wordChars","soy",/[\w$]/),l.registerHelper("hintWords","soy",Object.keys(i).concat(["css","debugger"])),l.defineMIME("text/x-soy","soy")})})();var O=H.exports;const Z=P(O),B=D({__proto__:null,default:Z},[O]);export{B as s}; +import{g as P,c as F}from"./index-F8NPuhC5.js";import{r as z}from"./htmlmixed-B3bg9pWJ.js";function D(v,g){for(var l=0;lo[i]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(v,g){(function(l){l(F,z())})(function(l){var o={noEndTag:!0,soyState:"param-def"},i={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@attribute":o,"@attribute?":o,"@param":o,"@param?":o,"@inject":o,"@inject?":o,"@state":o,template:{soyState:"templ-def",variableScope:!0},extern:{soyState:"param-def"},export:{soyState:"export"},literal:{},msg:{},fallbackmsg:{noEndTag:!0,reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},if:{},javaimpl:{},jsimpl:{},elseif:{noEndTag:!0,reduceIndent:!0},else:{noEndTag:!0,reduceIndent:!0},switch:{},case:{noEndTag:!0,reduceIndent:!0},default:{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},for:{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},log:{},element:{variableScope:!0},velog:{},const:{soyState:"const-def"}},h=Object.keys(i).filter(function(r){return!i[r].noEndTag||i[r].reduceIndent});l.defineMode("soy",function(r){var x=l.getMode(r,"text/plain"),b={html:l.getMode(r,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),attributes:x,text:x,uri:x,trusted_resource_uri:x,css:l.getMode(r,"text/css"),js:l.getMode(r,{name:"text/javascript",statementIndent:2*r.indentUnit})};function f(n){return n[n.length-1]}function E(n,e,t){if(n.sol()){for(var u=0;u]=?)/)?"operator":(t=n.match(/^\$([\w]+)/))?j(e.variables,t[1],!e.lookupVariables):(t=n.match(/^\w+/))?/^(?:as|and|or|not|in|if)$/.test(t[0])?"keyword":null:(n.next(),null)}return{startState:function(){return{soyState:[],variables:S(null,"ij"),scopes:null,indent:0,quoteKind:null,context:null,lookupVariables:!0,localStates:[{mode:b.html,state:l.startState(b.html)}]}},copyState:function(n){return{tag:n.tag,soyState:n.soyState.concat([]),variables:n.variables,context:n.context,indent:n.indent,quoteKind:n.quoteKind,lookupVariables:n.lookupVariables,localStates:n.localStates.map(function(e){return{mode:e.mode,state:l.copyState(e.mode,e.state)}})}},token:function(n,e){var t;switch(f(e.soyState)){case"comment":if(n.match(/^.*?\*\//)?e.soyState.pop():n.skipToEnd(),!e.context||!e.context.scope)for(var u=/@param\??\s+(\S+)/g,d=n.current(),t;t=u.exec(d);)e.variables=S(e.variables,t[1]);return"comment";case"string":var t=n.match(/^.*?(["']|\\[\s\S])/);return t?t[1]==e.quoteKind&&(e.quoteKind=null,e.soyState.pop()):n.skipToEnd(),"string"}if(!e.soyState.length||f(e.soyState)!="literal"){if(n.match(/^\/\*/))return e.soyState.push("comment"),"comment";if(n.match(n.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(f(e.soyState)){case"templ-def":return(t=n.match(/^\.?([\w]+(?!\.[\w]+)*)/))?(e.soyState.pop(),"def"):(n.next(),null);case"templ-ref":return(t=n.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))?(e.soyState.pop(),t[0][0]=="."?"variable-2":"variable"):(t=n.match(/^\$([\w]+)/))?(e.soyState.pop(),j(e.variables,t[1],!e.lookupVariables)):(n.next(),null);case"namespace-def":return(t=n.match(/^\.?([\w\.]+)/))?(e.soyState.pop(),"variable"):(n.next(),null);case"param-def":return(t=n.match(/^\*/))?(e.soyState.pop(),e.soyState.push("param-type"),"type"):(t=n.match(/^\w+/))?(e.variables=S(e.variables,t[0]),e.soyState.pop(),e.soyState.push("param-type"),"def"):(n.next(),null);case"param-ref":return(t=n.match(/^\w+/))?(e.soyState.pop(),"property"):(n.next(),null);case"open-parentheses":return n.match(/[)]/)?(e.soyState.pop(),null):m(n,e);case"param-type":var a=n.peek();return"}]=>,".indexOf(a)!=-1?(e.soyState.pop(),null):a=="["?(e.soyState.push("param-type-record"),null):a=="("?(e.soyState.push("param-type-template"),null):a=="<"?(e.soyState.push("param-type-parameter"),null):(t=n.match(/^([\w]+|[?])/))?"type":(n.next(),null);case"param-type-record":var a=n.peek();return a=="]"?(e.soyState.pop(),null):n.match(/^\w+/)?(e.soyState.push("param-type"),"property"):(n.next(),null);case"param-type-parameter":return n.match(/^[>]/)?(e.soyState.pop(),null):n.match(/^[<,]/)?(e.soyState.push("param-type"),null):(n.next(),null);case"param-type-template":return n.match(/[>]/)?(e.soyState.pop(),e.soyState.push("param-type"),null):n.match(/^\w+/)?(e.soyState.push("param-type"),"def"):(n.next(),null);case"var-def":return(t=n.match(/^\$([\w]+)/))?(e.variables=S(e.variables,t[1]),e.soyState.pop(),"def"):(n.next(),null);case"for-loop":return n.match(/\bin\b/)?(e.soyState.pop(),"keyword"):n.peek()=="$"?(e.soyState.push("var-def"),null):(n.next(),null);case"record-literal":return n.match(/^[)]/)?(e.soyState.pop(),null):n.match(/[(,]/)?(e.soyState.push("map-value"),e.soyState.push("record-key"),null):(n.next(),null);case"map-literal":return n.match(/^[)]/)?(e.soyState.pop(),null):n.match(/[(,]/)?(e.soyState.push("map-value"),e.soyState.push("map-value"),null):(n.next(),null);case"list-literal":return n.match("]")?(e.soyState.pop(),e.lookupVariables=!0,w(e),null):n.match(/\bfor\b/)?(e.lookupVariables=!0,e.soyState.push("for-loop"),"keyword"):m(n,e);case"record-key":return n.match(/[\w]+/)?"property":n.match(/^[:]/)?(e.soyState.pop(),null):(n.next(),null);case"map-value":return n.peek()==")"||n.peek()==","||n.match(/^[:)]/)?(e.soyState.pop(),null):m(n,e);case"import":return n.eat(";")?(e.soyState.pop(),e.indent-=2*r.indentUnit,null):n.match(/\w+(?=\s+as\b)/)?"variable":(t=n.match(/\w+/))?/\b(from|as)\b/.test(t[0])?"keyword":"def":(t=n.match(/^["']/))?(e.soyState.push("string"),e.quoteKind=t[0],"string"):(n.next(),null);case"tag":var p,c;e.tag===void 0?(p=!0,c=""):(p=e.tag[0]=="/",c=p?e.tag.substring(1):e.tag);var y=i[c];if(n.match(/^\/?}/)){var I=n.current()=="/}";return I&&!p&&w(e),e.tag=="/template"||e.tag=="/deltemplate"?(e.variables=S(null,"ij"),e.indent=0):e.indent-=r.indentUnit*(I||h.indexOf(e.tag)==-1?2:1),e.soyState.pop(),"keyword"}else if(n.match(/^([\w?]+)(?==)/)){if(e.context&&e.context.tag==c&&n.current()=="kind"&&(t=n.match(/^="([^"]+)/,!1))){var U=t[1];e.context.kind=U;var $=b[U]||b.html,s=f(e.localStates);s.mode.indent&&(e.indent+=s.mode.indent(s.state,"","")),e.localStates.push({mode:$,state:l.startState($)})}return"attribute"}return m(n,e);case"template-call-expression":return n.match(/^([\w-?]+)(?==)/)?"attribute":n.eat(">")||n.eat("/>")?(e.soyState.pop(),"keyword"):m(n,e);case"literal":return n.match("{/literal}",!1)?(e.soyState.pop(),this.token(n,e)):E(n,e,/\{\/literal}/);case"export":if(t=n.match(/\w+/)){if(e.soyState.pop(),t=="const")return e.soyState.push("const-def"),"keyword";if(t=="extern")return e.soyState.push("param-def"),"keyword"}else n.next();return null;case"const-def":return n.match(/^\w+/)?(e.soyState.pop(),"def"):(n.next(),null)}if(n.match("{literal}"))return e.indent+=r.indentUnit,e.soyState.push("literal"),e.context=new k(e.context,"literal",e.variables),"keyword";if(t=n.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){var q=e.tag;e.tag=t[1];var p=e.tag[0]=="/",V=!!i[e.tag],c=p?e.tag.substring(1):e.tag,y=i[c];e.tag!="/switch"&&(e.indent+=((p||y&&y.reduceIndent)&&q!="switch"?1:2)*r.indentUnit),e.soyState.push("tag");var T=!1;if(y){if(p||y.soyState&&e.soyState.push(y.soyState),!y.noEndTag&&(V||!p))e.context=new k(e.context,e.tag,y.variableScope?e.variables:null);else if(p){var K=c=="extern"&&e.context&&e.context.tag=="export";if(!e.context||e.context.tag!=c&&!K)T=!0;else if(e.context){if(e.context.kind){e.localStates.pop();var s=f(e.localStates);s.mode.indent&&(e.indent-=s.mode.indent(s.state,"",""))}w(e)}}}else p&&(T=!0);return(T?"error ":"")+"keyword"}else{if(n.eat("{"))return e.tag="print",e.indent+=2*r.indentUnit,e.soyState.push("tag"),"keyword";if(!e.context&&n.sol()&&n.match(/import\b/))return e.soyState.push("import"),e.indent+=2*r.indentUnit,"keyword";if(t=n.match("<{"))return e.soyState.push("template-call-expression"),e.indent+=2*r.indentUnit,e.soyState.push("tag"),"keyword";if(t=n.match(""))return e.indent-=1*r.indentUnit,"keyword"}return E(n,e,/\{|\s+\/\/|\/\*/)},indent:function(n,e,t){var u=n.indent,d=f(n.soyState);if(d=="comment")return l.Pass;if(d=="literal")/^\{\/literal}/.test(e)&&(u-=r.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(e))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(e)&&(u-=r.indentUnit),n.tag!="switch"&&/^\{(case|default)\b/.test(e)&&(u-=r.indentUnit),/^\{\/switch\b/.test(e)&&(u-=r.indentUnit)}var a=f(n.localStates);return u&&a.mode.indent&&(u+=a.mode.indent(a.state,e,t)),u},innerMode:function(n){return n.soyState.length&&f(n.soyState)!="literal"?null:f(n.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}},"htmlmixed"),l.registerHelper("wordChars","soy",/[\w$]/),l.registerHelper("hintWords","soy",Object.keys(i).concat(["css","debugger"])),l.defineMIME("text/x-soy","soy")})})();var O=H.exports;const Z=P(O),B=D({__proto__:null,default:Z},[O]);export{B as s}; diff --git a/dist-ui/assets/sparql-Brmr4Q5h.js b/dist-ui/assets/sparql-J2HZEfJm.js similarity index 98% rename from dist-ui/assets/sparql-Brmr4Q5h.js rename to dist-ui/assets/sparql-J2HZEfJm.js index cf920857..e9fe0ff9 100644 --- a/dist-ui/assets/sparql-Brmr4Q5h.js +++ b/dist-ui/assets/sparql-J2HZEfJm.js @@ -1 +1 @@ -import{g as w,c as k}from"./index-CFELAGmQ.js";function C(a,p){for(var i=0;iu[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(a,p){(function(i){i(k)})(function(i){i.defineMode("sparql",function(u){var c=u.indentUnit,o;function d(n){return new RegExp("^(?:"+n.join("|")+")$","i")}var h=d(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),m=d(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),y=/[*+\-<>=&|\^\/!\?]/,x="[A-Za-z_\\-0-9]",b=new RegExp("[A-Za-z]"),D=new RegExp("(("+x+"|\\.)*("+x+"))?:");function F(n,e){var t=n.next();if(o=null,t=="$"||t=="?")return t=="?"&&n.match(/\s/,!1)?"operator":(n.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if(t=="<"&&!n.match(/^[\s\u00a0=]/,!1))return n.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return e.tokenize=_(t),e.tokenize(n,e);if(/[{}\(\),\.;\[\]]/.test(t))return o=t,"bracket";if(t=="#")return n.skipToEnd(),"comment";if(y.test(t))return"operator";if(t==":")return g(n),"atom";if(t=="@")return n.eatWhile(/[a-z\d\-]/i),"meta";if(b.test(t)&&n.match(D))return g(n),"atom";n.eatWhile(/[_\w\d]/);var r=n.current();return h.test(r)?"builtin":m.test(r)?"keyword":"variable"}function g(n){n.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function _(n){return function(e,t){for(var r=!1,l;(l=e.next())!=null;){if(l==n&&!r){t.tokenize=F;break}r=!r&&l=="\\"}return"string"}}function f(n,e,t){n.context={prev:n.context,indent:n.indent,col:t,type:e}}function s(n){n.indent=n.context.indent,n.context=n.context.prev}return{startState:function(){return{tokenize:F,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!="comment"&&e.context&&e.context.align==null&&e.context.type!="pattern"&&(e.context.align=!0),o=="(")f(e,")",n.column());else if(o=="[")f(e,"]",n.column());else if(o=="{")f(e,"}",n.column());else if(/[\]\}\)]/.test(o)){for(;e.context&&e.context.type=="pattern";)s(e);e.context&&o==e.context.type&&(s(e),o=="}"&&e.context&&e.context.type=="pattern"&&s(e))}else o=="."&&e.context&&e.context.type=="pattern"?s(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?f(e,"pattern",n.column()):e.context.type=="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),r=n.context;if(/[\]\}]/.test(t))for(;r&&r.type=="pattern";)r=r.prev;var l=r&&t==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(l?0:1):r.indent+(l?0:c):0},lineComment:"#"}}),i.defineMIME("application/sparql-query","sparql")})})();var v=E.exports;const z=w(v),A=C({__proto__:null,default:z},[v]);export{A as s}; +import{g as w,c as k}from"./index-F8NPuhC5.js";function C(a,p){for(var i=0;iu[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}};(function(a,p){(function(i){i(k)})(function(i){i.defineMode("sparql",function(u){var c=u.indentUnit,o;function d(n){return new RegExp("^(?:"+n.join("|")+")$","i")}var h=d(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),m=d(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),y=/[*+\-<>=&|\^\/!\?]/,x="[A-Za-z_\\-0-9]",b=new RegExp("[A-Za-z]"),D=new RegExp("(("+x+"|\\.)*("+x+"))?:");function F(n,e){var t=n.next();if(o=null,t=="$"||t=="?")return t=="?"&&n.match(/\s/,!1)?"operator":(n.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variable-2");if(t=="<"&&!n.match(/^[\s\u00a0=]/,!1))return n.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return e.tokenize=_(t),e.tokenize(n,e);if(/[{}\(\),\.;\[\]]/.test(t))return o=t,"bracket";if(t=="#")return n.skipToEnd(),"comment";if(y.test(t))return"operator";if(t==":")return g(n),"atom";if(t=="@")return n.eatWhile(/[a-z\d\-]/i),"meta";if(b.test(t)&&n.match(D))return g(n),"atom";n.eatWhile(/[_\w\d]/);var r=n.current();return h.test(r)?"builtin":m.test(r)?"keyword":"variable"}function g(n){n.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function _(n){return function(e,t){for(var r=!1,l;(l=e.next())!=null;){if(l==n&&!r){t.tokenize=F;break}r=!r&&l=="\\"}return"string"}}function f(n,e,t){n.context={prev:n.context,indent:n.indent,col:t,type:e}}function s(n){n.indent=n.context.indent,n.context=n.context.prev}return{startState:function(){return{tokenize:F,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!="comment"&&e.context&&e.context.align==null&&e.context.type!="pattern"&&(e.context.align=!0),o=="(")f(e,")",n.column());else if(o=="[")f(e,"]",n.column());else if(o=="{")f(e,"}",n.column());else if(/[\]\}\)]/.test(o)){for(;e.context&&e.context.type=="pattern";)s(e);e.context&&o==e.context.type&&(s(e),o=="}"&&e.context&&e.context.type=="pattern"&&s(e))}else o=="."&&e.context&&e.context.type=="pattern"?s(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?f(e,"pattern",n.column()):e.context.type=="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),r=n.context;if(/[\]\}]/.test(t))for(;r&&r.type=="pattern";)r=r.prev;var l=r&&t==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(l?0:1):r.indent+(l?0:c):0},lineComment:"#"}}),i.defineMIME("application/sparql-query","sparql")})})();var v=E.exports;const z=w(v),A=C({__proto__:null,default:z},[v]);export{A as s}; diff --git a/dist-ui/assets/spreadsheet-CnCG9elR.js b/dist-ui/assets/spreadsheet-De_UeHev.js similarity index 96% rename from dist-ui/assets/spreadsheet-CnCG9elR.js rename to dist-ui/assets/spreadsheet-De_UeHev.js index 9fedd904..b269ff23 100644 --- a/dist-ui/assets/spreadsheet-CnCG9elR.js +++ b/dist-ui/assets/spreadsheet-De_UeHev.js @@ -1 +1 @@ -import{g as o,c as a}from"./index-CFELAGmQ.js";function f(c,i){for(var r=0;re[t]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(c,i){(function(r){r(a)})(function(r){r.defineMode("spreadsheet",function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(t.stack.length===0&&(e.peek()=='"'||e.peek()=="'")&&(t.stringType=e.peek(),e.next(),t.stack.unshift("string")),t.stack[0]){case"string":for(;t.stack[0]==="string"&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;t.stack[0]==="characterClass"&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":["[","]","(",")","{","}"].indexOf(n)!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}),r.defineMIME("text/x-spreadsheet","spreadsheet")})})();var s=u.exports;const p=o(s),h=f({__proto__:null,default:p},[s]);export{h as s}; +import{g as o,c as a}from"./index-F8NPuhC5.js";function f(c,i){for(var r=0;re[t]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(c,i){(function(r){r(a)})(function(r){r.defineMode("spreadsheet",function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(t.stack.length===0&&(e.peek()=='"'||e.peek()=="'")&&(t.stringType=e.peek(),e.next(),t.stack.unshift("string")),t.stack[0]){case"string":for(;t.stack[0]==="string"&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;t.stack[0]==="characterClass"&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string-2":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable-2":["[","]","(",")","{","}"].indexOf(n)!=-1?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}}),r.defineMIME("text/x-spreadsheet","spreadsheet")})})();var s=u.exports;const p=o(s),h=f({__proto__:null,default:p},[s]);export{h as s}; diff --git a/dist-ui/assets/sql-eOeqwll8.js b/dist-ui/assets/sql-3T6ibqDq.js similarity index 99% rename from dist-ui/assets/sql-eOeqwll8.js rename to dist-ui/assets/sql-3T6ibqDq.js index 323e2031..7d92d3d8 100644 --- a/dist-ui/assets/sql-eOeqwll8.js +++ b/dist-ui/assets/sql-3T6ibqDq.js @@ -1 +1 @@ -import{g as $,c as O}from"./index-CFELAGmQ.js";function A(h,y){for(var i=0;iu[d]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(h,y){(function(i){i(O)})(function(i){i.defineMode("sql",function(n,o){var f=o.client||{},g=o.atoms||{false:!0,true:!0,null:!0},Q=o.builtin||e(w),F=o.keywords||e(p),k=o.operatorChars||/^[*+\-%<>!=&|~^\/]/,s=o.support||{},q=o.hooks||{},C=o.dateSQL||{date:!0,time:!0,timestamp:!0},L=o.backslashStringEscapes!==!1,I=o.brackets||/^[\{}\(\)\[\]]/,z=o.punctuation||/^[;.,:]/;function b(t,a){var r=t.next();if(q[r]){var l=q[r](t,a);if(l!==!1)return l}if(s.hexNumber&&(r=="0"&&t.match(/^[xX][0-9a-fA-F]+/)||(r=="x"||r=="X")&&t.match(/^'[0-9a-fA-F]*'/)))return"number";if(s.binaryNumber&&((r=="b"||r=="B")&&t.match(/^'[01]*'/)||r=="0"&&t.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),s.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if(r=="?"&&(t.eatSpace()||t.eol()||t.eat(";")))return"variable-3";if(r=="'"||r=='"'&&s.doubleQuote)return a.tokenize=j(r),a.tokenize(t,a);if((s.nCharCast&&(r=="n"||r=="N")||s.charsetCast&&r=="_"&&t.match(/[a-z][a-z0-9]*/i))&&(t.peek()=="'"||t.peek()=='"'))return"keyword";if(s.escapeConstant&&(r=="e"||r=="E")&&(t.peek()=="'"||t.peek()=='"'&&s.doubleQuote))return a.tokenize=function(_,E){return(E.tokenize=j(_.next(),!0))(_,E)},"keyword";if(s.commentSlashSlash&&r=="/"&&t.eat("/"))return t.skipToEnd(),"comment";if(s.commentHash&&r=="#"||r=="-"&&t.eat("-")&&(!s.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if(r=="/"&&t.eat("*"))return a.tokenize=v(1),a.tokenize(t,a);if(r=="."){if(s.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(t.match(/^\.+/))return null;if(t.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(r))return t.eatWhile(k),"operator";if(I.test(r))return"bracket";if(z.test(r))return t.eatWhile(z),"punctuation";if(r=="{"&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var m=t.current().toLowerCase();return C.hasOwnProperty(m)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(m)?"atom":Q.hasOwnProperty(m)?"type":F.hasOwnProperty(m)?"keyword":f.hasOwnProperty(m)?"builtin":null}}function j(t,a){return function(r,l){for(var m=!1,_;(_=r.next())!=null;){if(_==t&&!m){l.tokenize=b;break}m=(L||a)&&!m&&_=="\\"}return"string"}}function v(t){return function(a,r){var l=a.match(/^.*?(\/\*|\*\/)/);return l?l[1]=="/*"?r.tokenize=v(t+1):t>1?r.tokenize=v(t-1):r.tokenize=b:a.skipToEnd(),"comment"}}function S(t,a,r){a.context={prev:a.context,indent:t.indentation(),col:t.column(),type:r}}function M(t){t.indent=t.context.indent,t.context=t.context.prev}return{startState:function(){return{tokenize:b,context:null}},token:function(t,a){if(t.sol()&&a.context&&a.context.align==null&&(a.context.align=!1),a.tokenize==b&&t.eatSpace())return null;var r=a.tokenize(t,a);if(r=="comment")return r;a.context&&a.context.align==null&&(a.context.align=!0);var l=t.current();return l=="("?S(t,a,")"):l=="["?S(t,a,"]"):a.context&&a.context.type==l&&M(a),r},indent:function(t,a){var r=t.context;if(!r)return i.Pass;var l=a.charAt(0)==r.type;return r.align?r.col+(l?0:1):r.indent+(l?0:n.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:s.commentSlashSlash?"//":s.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:o}});function u(n){for(var o;(o=n.next())!=null;)if(o=="`"&&!n.eat("`"))return"variable-2";return n.backUp(n.current().length-1),n.eatWhile(/\w/)?"variable-2":null}function d(n){for(var o;(o=n.next())!=null;)if(o=='"'&&!n.eat('"'))return"variable-2";return n.backUp(n.current().length-1),n.eatWhile(/\w/)?"variable-2":null}function c(n){return n.eat("@")&&(n.match("session."),n.match("local."),n.match("global.")),n.eat("'")?(n.match(/^.*'/),"variable-2"):n.eat('"')?(n.match(/^.*"/),"variable-2"):n.eat("`")?(n.match(/^.*`/),"variable-2"):n.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function x(n){return n.eat("N")?"atom":n.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var p="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function e(n){for(var o={},f=n.split(" "),g=0;g!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:e("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":c}}),i.defineMIME("text/x-mysql",{name:"sql",client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(p+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":c,"`":u,"\\":x}}),i.defineMIME("text/x-mariadb",{name:"sql",client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(p+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":c,"`":u,"\\":x}}),i.defineMIME("text/x-sqlite",{name:"sql",client:e("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:e(p+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:e("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:e("date time timestamp datetime"),support:e("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":c,":":c,"?":c,$:c,'"':d,"`":u}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:e("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:e("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:e("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:e("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:e("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:e("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:e("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:e("date time timestamp"),support:e("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:e("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:e("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:e("date timestamp"),support:e("doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:e("source"),keywords:e(p+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:e("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:e("false true"),builtin:e("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:e("source"),keywords:e("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:e("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:e("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:e("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:e("date time timestamp"),support:e("doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:e("source"),keywords:e("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:e("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("time"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-trino",{name:"sql",keywords:e("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:e("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:e("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:e("date time timestamp zone"),support:e("decimallessFloat zerolessFloat hexNumber")})})})();var N=P.exports;const T=$(N),W=A({__proto__:null,default:T},[N]);export{W as s}; +import{g as $,c as O}from"./index-F8NPuhC5.js";function A(h,y){for(var i=0;iu[d]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var P={exports:{}};(function(h,y){(function(i){i(O)})(function(i){i.defineMode("sql",function(n,o){var f=o.client||{},g=o.atoms||{false:!0,true:!0,null:!0},Q=o.builtin||e(w),F=o.keywords||e(p),k=o.operatorChars||/^[*+\-%<>!=&|~^\/]/,s=o.support||{},q=o.hooks||{},C=o.dateSQL||{date:!0,time:!0,timestamp:!0},L=o.backslashStringEscapes!==!1,I=o.brackets||/^[\{}\(\)\[\]]/,z=o.punctuation||/^[;.,:]/;function b(t,a){var r=t.next();if(q[r]){var l=q[r](t,a);if(l!==!1)return l}if(s.hexNumber&&(r=="0"&&t.match(/^[xX][0-9a-fA-F]+/)||(r=="x"||r=="X")&&t.match(/^'[0-9a-fA-F]*'/)))return"number";if(s.binaryNumber&&((r=="b"||r=="B")&&t.match(/^'[01]*'/)||r=="0"&&t.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),s.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if(r=="?"&&(t.eatSpace()||t.eol()||t.eat(";")))return"variable-3";if(r=="'"||r=='"'&&s.doubleQuote)return a.tokenize=j(r),a.tokenize(t,a);if((s.nCharCast&&(r=="n"||r=="N")||s.charsetCast&&r=="_"&&t.match(/[a-z][a-z0-9]*/i))&&(t.peek()=="'"||t.peek()=='"'))return"keyword";if(s.escapeConstant&&(r=="e"||r=="E")&&(t.peek()=="'"||t.peek()=='"'&&s.doubleQuote))return a.tokenize=function(_,E){return(E.tokenize=j(_.next(),!0))(_,E)},"keyword";if(s.commentSlashSlash&&r=="/"&&t.eat("/"))return t.skipToEnd(),"comment";if(s.commentHash&&r=="#"||r=="-"&&t.eat("-")&&(!s.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if(r=="/"&&t.eat("*"))return a.tokenize=v(1),a.tokenize(t,a);if(r=="."){if(s.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(t.match(/^\.+/))return null;if(t.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(r))return t.eatWhile(k),"operator";if(I.test(r))return"bracket";if(z.test(r))return t.eatWhile(z),"punctuation";if(r=="{"&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var m=t.current().toLowerCase();return C.hasOwnProperty(m)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(m)?"atom":Q.hasOwnProperty(m)?"type":F.hasOwnProperty(m)?"keyword":f.hasOwnProperty(m)?"builtin":null}}function j(t,a){return function(r,l){for(var m=!1,_;(_=r.next())!=null;){if(_==t&&!m){l.tokenize=b;break}m=(L||a)&&!m&&_=="\\"}return"string"}}function v(t){return function(a,r){var l=a.match(/^.*?(\/\*|\*\/)/);return l?l[1]=="/*"?r.tokenize=v(t+1):t>1?r.tokenize=v(t-1):r.tokenize=b:a.skipToEnd(),"comment"}}function S(t,a,r){a.context={prev:a.context,indent:t.indentation(),col:t.column(),type:r}}function M(t){t.indent=t.context.indent,t.context=t.context.prev}return{startState:function(){return{tokenize:b,context:null}},token:function(t,a){if(t.sol()&&a.context&&a.context.align==null&&(a.context.align=!1),a.tokenize==b&&t.eatSpace())return null;var r=a.tokenize(t,a);if(r=="comment")return r;a.context&&a.context.align==null&&(a.context.align=!0);var l=t.current();return l=="("?S(t,a,")"):l=="["?S(t,a,"]"):a.context&&a.context.type==l&&M(a),r},indent:function(t,a){var r=t.context;if(!r)return i.Pass;var l=a.charAt(0)==r.type;return r.align?r.col+(l?0:1):r.indent+(l?0:n.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:s.commentSlashSlash?"//":s.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:o}});function u(n){for(var o;(o=n.next())!=null;)if(o=="`"&&!n.eat("`"))return"variable-2";return n.backUp(n.current().length-1),n.eatWhile(/\w/)?"variable-2":null}function d(n){for(var o;(o=n.next())!=null;)if(o=='"'&&!n.eat('"'))return"variable-2";return n.backUp(n.current().length-1),n.eatWhile(/\w/)?"variable-2":null}function c(n){return n.eat("@")&&(n.match("session."),n.match("local."),n.match("global.")),n.eat("'")?(n.match(/^.*'/),"variable-2"):n.eat('"')?(n.match(/^.*"/),"variable-2"):n.eat("`")?(n.match(/^.*`/),"variable-2"):n.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function x(n){return n.eat("N")?"atom":n.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var p="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function e(n){for(var o={},f=n.split(" "),g=0;g!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:e("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":c}}),i.defineMIME("text/x-mysql",{name:"sql",client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(p+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":c,"`":u,"\\":x}}),i.defineMIME("text/x-mariadb",{name:"sql",client:e("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:e(p+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":c,"`":u,"\\":x}}),i.defineMIME("text/x-sqlite",{name:"sql",client:e("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:e(p+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:e("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:e("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:e("date time timestamp datetime"),support:e("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":c,":":c,"?":c,$:c,'"':d,"`":u}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:e("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:e("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:e("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:e("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:e("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:e("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:e("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:e("date time timestamp"),support:e("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:e("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:e("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:e("date timestamp"),support:e("doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:e("source"),keywords:e(p+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:e("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:e("false true"),builtin:e("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:e("source"),keywords:e("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:e("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:e("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("date time timestamp"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:e("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:e("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:e("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:e("date time timestamp"),support:e("doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:e("source"),keywords:e("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:e("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:e("time"),support:e("decimallessFloat zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-trino",{name:"sql",keywords:e("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:e("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:e("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:e("date time timestamp zone"),support:e("decimallessFloat zerolessFloat hexNumber")})})})();var N=P.exports;const T=$(N),W=A({__proto__:null,default:T},[N]);export{W as s}; diff --git a/dist-ui/assets/stex-5aBROWT3.js b/dist-ui/assets/stex-DSKMaE3f.js similarity index 74% rename from dist-ui/assets/stex-5aBROWT3.js rename to dist-ui/assets/stex-DSKMaE3f.js index eccc7864..9fdd2e32 100644 --- a/dist-ui/assets/stex-5aBROWT3.js +++ b/dist-ui/assets/stex-DSKMaE3f.js @@ -1 +1 @@ -import{g as f}from"./index-CFELAGmQ.js";import{r as i}from"./stex-BoK3GK_-.js";function c(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a=i();const p=f(a),l=c({__proto__:null,default:p},[a]);export{l as s}; +import{g as f}from"./index-F8NPuhC5.js";import{r as i}from"./stex-DV4pK8k6.js";function c(r,n){for(var o=0;oe[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a=i();const p=f(a),l=c({__proto__:null,default:p},[a]);export{l as s}; diff --git a/dist-ui/assets/stex-BoK3GK_-.js b/dist-ui/assets/stex-DV4pK8k6.js similarity index 98% rename from dist-ui/assets/stex-BoK3GK_-.js rename to dist-ui/assets/stex-DV4pK8k6.js index 2f54fde2..b0ff0137 100644 --- a/dist-ui/assets/stex-BoK3GK_-.js +++ b/dist-ui/assets/stex-DV4pK8k6.js @@ -1 +1 @@ -import{c as S}from"./index-CFELAGmQ.js";var s={exports:{}},k;function A(){return k||(k=1,function(v,w){(function(l){l(S)})(function(l){l.defineMode("stex",function(B,b){function d(t,e){t.cmdState.push(e)}function g(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function x(t){var e=t.cmdState.pop();e&&e.closeBracket()}function y(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var i=e[n];if(i.name!="DEFAULT")return i}return{styleIdentifier:function(){return null}}}function a(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var r={};r.importmodule=a("importmodule","tag",["string","builtin"]),r.documentclass=a("documentclass","tag",["","atom"]),r.usepackage=a("usepackage","tag",["atom"]),r.begin=a("begin","tag",["atom"]),r.end=a("end","tag",["atom"]),r.label=a("label","tag",["atom"]),r.ref=a("ref","tag",["atom"]),r.eqref=a("eqref","tag",["atom"]),r.cite=a("cite","tag",["atom"]),r.bibitem=a("bibitem","tag",["atom"]),r.Bibitem=a("Bibitem","tag",["atom"]),r.RBibitem=a("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(t,e){t.f=e}function o(t,e){var n;if(t.match(/^\\[a-zA-Z@]+/)){var i=t.current().slice(1);return n=r.hasOwnProperty(i)?r[i]:r.DEFAULT,n=new n,d(e,n),f(e,p),n.style}if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return f(e,function(c,m){return h(c,m,"\\]")}),"keyword";if(t.match("\\("))return f(e,function(c,m){return h(c,m,"\\)")}),"keyword";if(t.match("$$"))return f(e,function(c,m){return h(c,m,"$$")}),"keyword";if(t.match("$"))return f(e,function(c,m){return h(c,m,"$")}),"keyword";var u=t.next();if(u=="%")return t.skipToEnd(),"comment";if(u=="}"||u=="]"){if(n=g(e),n)n.closeBracket(u),f(e,p);else return"error";return"bracket"}else return u=="{"||u=="["?(n=r.DEFAULT,n=new n,d(e,n),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),n=y(e),n.name=="begin"&&(n.argument=t.current()),n.styleIdentifier())}function h(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return f(e,o),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variable-2";if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/]/)||t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=t.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(t.skipToEnd(),"comment"):"error"}function p(t,e){var n=t.peek(),i;return n=="{"||n=="["?(i=g(e),i.openBracket(n),t.eat(n),f(e,o),"bracket"):/[ \t\r]/.test(n)?(t.eat(n),null):(f(e,o),x(e),o(t,e))}return{startState:function(){var t=b.inMathMode?function(e,n){return h(e,n)}:o;return{cmdState:[],f:t}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=o,t.cmdState.length=0},lineComment:"%"}}),l.defineMIME("text/x-stex","stex"),l.defineMIME("text/x-latex","stex")})}()),s.exports}export{A as r}; +import{c as S}from"./index-F8NPuhC5.js";var s={exports:{}},k;function A(){return k||(k=1,function(v,w){(function(l){l(S)})(function(l){l.defineMode("stex",function(B,b){function d(t,e){t.cmdState.push(e)}function g(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function x(t){var e=t.cmdState.pop();e&&e.closeBracket()}function y(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var i=e[n];if(i.name!="DEFAULT")return i}return{styleIdentifier:function(){return null}}}function a(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var r={};r.importmodule=a("importmodule","tag",["string","builtin"]),r.documentclass=a("documentclass","tag",["","atom"]),r.usepackage=a("usepackage","tag",["atom"]),r.begin=a("begin","tag",["atom"]),r.end=a("end","tag",["atom"]),r.label=a("label","tag",["atom"]),r.ref=a("ref","tag",["atom"]),r.eqref=a("eqref","tag",["atom"]),r.cite=a("cite","tag",["atom"]),r.bibitem=a("bibitem","tag",["atom"]),r.Bibitem=a("Bibitem","tag",["atom"]),r.RBibitem=a("RBibitem","tag",["atom"]),r.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function f(t,e){t.f=e}function o(t,e){var n;if(t.match(/^\\[a-zA-Z@]+/)){var i=t.current().slice(1);return n=r.hasOwnProperty(i)?r[i]:r.DEFAULT,n=new n,d(e,n),f(e,p),n.style}if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return f(e,function(c,m){return h(c,m,"\\]")}),"keyword";if(t.match("\\("))return f(e,function(c,m){return h(c,m,"\\)")}),"keyword";if(t.match("$$"))return f(e,function(c,m){return h(c,m,"$$")}),"keyword";if(t.match("$"))return f(e,function(c,m){return h(c,m,"$")}),"keyword";var u=t.next();if(u=="%")return t.skipToEnd(),"comment";if(u=="}"||u=="]"){if(n=g(e),n)n.closeBracket(u),f(e,p);else return"error";return"bracket"}else return u=="{"||u=="["?(n=r.DEFAULT,n=new n,d(e,n),"bracket"):/\d/.test(u)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),n=y(e),n.name=="begin"&&(n.argument=t.current()),n.styleIdentifier())}function h(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return f(e,o),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variable-2";if(t.match(/^\\[$&%#{}_]/)||t.match(/^\\[,;!\/]/)||t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var i=t.next();return i=="{"||i=="}"||i=="["||i=="]"||i=="("||i==")"?"bracket":i=="%"?(t.skipToEnd(),"comment"):"error"}function p(t,e){var n=t.peek(),i;return n=="{"||n=="["?(i=g(e),i.openBracket(n),t.eat(n),f(e,o),"bracket"):/[ \t\r]/.test(n)?(t.eat(n),null):(f(e,o),x(e),o(t,e))}return{startState:function(){var t=b.inMathMode?function(e,n){return h(e,n)}:o;return{cmdState:[],f:t}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=o,t.cmdState.length=0},lineComment:"%"}}),l.defineMIME("text/x-stex","stex"),l.defineMIME("text/x-latex","stex")})}()),s.exports}export{A as r}; diff --git a/dist-ui/assets/stylus-DtmEzL5k.js b/dist-ui/assets/stylus-DWX0hVte.js similarity index 99% rename from dist-ui/assets/stylus-DtmEzL5k.js rename to dist-ui/assets/stylus-DWX0hVte.js index b82d25e3..90e6c2e6 100644 --- a/dist-ui/assets/stylus-DtmEzL5k.js +++ b/dist-ui/assets/stylus-DWX0hVte.js @@ -1 +1 @@ -import{g as ye,c as ze}from"./index-CFELAGmQ.js";function je(K,O){for(var w=0;wy[v]})}}}return Object.freeze(Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}))}var qe={exports:{}};(function(K,O){(function(w){w(ze)})(function(w){w.defineMode("stylus",function(g){for(var c=g.indentUnit,x="",te=p(y),B=/^(a|b|i|s|col|em)$/i,ae=p(W),le=p(I),ce=p(U),se=p(N),de=p(v),ue=Z(v),fe=p(R),pe=p(C),he=p(T),ge=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,be=Z(F),me=p(X),A=new RegExp(/^\-(moz|ms|o|webkit)-/i),ke=p(Y),E="",s={},b,z,D,t;x.length|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),e.context.line.firstWord=E?E[0].replace(/^\s*/,""):"",e.context.line.indent=i.indentation(),b=i.peek(),i.match("//"))return i.skipToEnd(),["comment","comment"];if(i.match("/*"))return e.tokenize=M,M(i,e);if(b=='"'||b=="'")return i.next(),e.tokenize=V(b),e.tokenize(i,e);if(b=="@")return i.next(),i.eatWhile(/[\w\\-]/),["def",i.current()];if(b=="#"){if(i.next(),i.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(i.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return i.match(A)?["meta","vendor-prefixes"]:i.match(/^-?[0-9]?\.?[0-9]/)?(i.eatWhile(/[a-z%]/i),["number","unit"]):b=="!"?(i.next(),[i.match(/^(important|optional)/i)?"keyword":"operator","important"]):b=="."&&i.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:i.match(ue)?(i.peek()=="("&&(e.tokenize=ve),["property","word"]):i.match(/^[a-z][\w-]*\(/i)?(i.backUp(1),["keyword","mixin"]):i.match(/^(\+|-)[a-z][\w-]*\(/i)?(i.backUp(1),["keyword","block-mixin"]):i.string.match(/^\s*&/)&&i.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:i.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(i.backUp(1),["variable-3","reference"]):i.match(/^&{1}\s*$/)?["variable-3","reference"]:i.match(be)?["operator","operator"]:i.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?i.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!m(i.current())?(i.match("."),["variable-2","variable-name"]):["variable-2","word"]:i.match(ge)?["operator",i.current()]:/[:;,{}\[\]\(\)]/.test(b)?(i.next(),[null,b]):(i.next(),[null,null])}function M(i,e){for(var r=!1,n;(n=i.next())!=null;){if(r&&n=="/"){e.tokenize=null;break}r=n=="*"}return["comment","comment"]}function V(i){return function(e,r){for(var n=!1,l;(l=e.next())!=null;){if(l==i&&!n){i==")"&&e.backUp(1);break}n=!n&&l=="\\"}return(l==i||!n&&i!=")")&&(r.tokenize=null),["string","string"]}}function ve(i,e){return i.next(),i.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=V(")"),[null,"("]}function H(i,e,r,n){this.type=i,this.indent=e,this.prev=r,this.line=n||{firstWord:"",indent:0}}function o(i,e,r,n){return n=n>=0?n:c,i.context=new H(r,e.indentation()+n,i.context),r}function j(i,e){var r=i.context.indent-c;return e=e||!1,i.context=i.context.prev,e&&(i.context.indent=r),i.context.type}function xe(i,e,r){return s[r.context.type](i,e,r)}function S(i,e,r,n){for(var l=n||1;l>0;l--)r.context=r.context.prev;return xe(i,e,r)}function m(i){return i.toLowerCase()in te}function q(i){return i=i.toLowerCase(),i in ae||i in he}function $(i){return i.toLowerCase()in me}function G(i){return i.toLowerCase().match(A)}function _(i){var e=i.toLowerCase(),r="variable-2";return m(i)?r="tag":$(i)?r="block-keyword":q(i)?r="property":e in ce||e in ke?r="atom":e=="return"||e in se?r="keyword":i.match(/^[A-Z]/)&&(r="string"),r}function J(i,e){return a(e)&&(i=="{"||i=="]"||i=="hash"||i=="qualifier")||i=="block-mixin"}function Q(i,e){return i=="{"&&e.match(/^\s*\$?[\w-]+/i,!1)}function ee(i,e){return i==":"&&e.match(/^[a-z-]+/,!1)}function P(i){return i.sol()||i.string.match(new RegExp("^\\s*"+ne(i.current())))}function a(i){return i.eol()||i.match(/^\s*$/,!1)}function d(i){var e=/^\s*[-_]*[a-z0-9]+[\w-]*/i,r=typeof i=="string"?i.match(e):i.string.match(e);return r?r[0].replace(/^\s*/,""):""}return s.block=function(i,e,r){if(i=="comment"&&P(e)||i==","&&a(e)||i=="mixin")return o(r,e,"block",0);if(Q(i,e))return o(r,e,"interpolation");if(a(e)&&i=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(e.string)&&!m(d(e)))return o(r,e,"block",0);if(J(i,e))return o(r,e,"block");if(i=="}"&&a(e))return o(r,e,"block",0);if(i=="variable-name")return e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||$(d(e))?o(r,e,"variableName"):o(r,e,"variableName",0);if(i=="=")return!a(e)&&!$(d(e))?o(r,e,"block",0):o(r,e,"block");if(i=="*"&&(a(e)||e.match(/\s*(,|\.|#|\[|:|{)/,!1)))return t="tag",o(r,e,"block");if(ee(i,e))return o(r,e,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(i))return o(r,e,a(e)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(i))return o(r,e,"keyframes");if(/@extends?/.test(i))return o(r,e,"extend",0);if(i&&i.charAt(0)=="@")return e.indentation()>0&&q(e.current().slice(1))?(t="variable-2","block"):/(@import|@require|@charset)/.test(i)?o(r,e,"block",0):o(r,e,"block");if(i=="reference"&&a(e))return o(r,e,"block");if(i=="(")return o(r,e,"parens");if(i=="vendor-prefixes")return o(r,e,"vendorPrefixes");if(i=="word"){var n=e.current();if(t=_(n),t=="property")return P(e)?o(r,e,"block",0):(t="atom","block");if(t=="tag"){if(/embed|menu|pre|progress|sub|table/.test(n)&&q(d(e))||e.string.match(new RegExp("\\[\\s*"+n+"|"+n+"\\s*\\]")))return t="atom","block";if(B.test(n)&&(P(e)&&e.string.match(/=/)||!P(e)&&!e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!m(d(e))))return t="variable-2",$(d(e))?"block":o(r,e,"block",0);if(a(e))return o(r,e,"block")}if(t=="block-keyword")return t="keyword",e.current(/(if|unless)/)&&!P(e)?"block":o(r,e,"block");if(n=="return")return o(r,e,"block",0);if(t=="variable-2"&&e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return o(r,e,"block")}return r.context.type},s.parens=function(i,e,r){if(i=="(")return o(r,e,"parens");if(i==")")return r.context.prev.type=="parens"?j(r):e.string.match(/^[a-z][\w-]*\(/i)&&a(e)||$(d(e))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(d(e))||!e.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&m(d(e))?o(r,e,"block"):e.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||e.string.match(/^\s*(\(|\)|[0-9])/)||e.string.match(/^\s+[a-z][\w-]*\(/i)||e.string.match(/^\s+[\$-]?[a-z]/i)?o(r,e,"block",0):a(e)?o(r,e,"block"):o(r,e,"block",0);if(i&&i.charAt(0)=="@"&&q(e.current().slice(1))&&(t="variable-2"),i=="word"){var n=e.current();t=_(n),t=="tag"&&B.test(n)&&(t="variable-2"),(t=="property"||n=="to")&&(t="atom")}return i=="variable-name"?o(r,e,"variableName"):ee(i,e)?o(r,e,"pseudo"):r.context.type},s.vendorPrefixes=function(i,e,r){return i=="word"?(t="property",o(r,e,"block",0)):j(r)},s.pseudo=function(i,e,r){return q(d(e.string))?S(i,e,r):(e.match(/^[a-z-]+/),t="variable-3",a(e)?o(r,e,"block"):j(r))},s.atBlock=function(i,e,r){if(i=="(")return o(r,e,"atBlock_parens");if(J(i,e))return o(r,e,"block");if(Q(i,e))return o(r,e,"interpolation");if(i=="word"){var n=e.current().toLowerCase();if(/^(only|not|and|or)$/.test(n)?t="keyword":de.hasOwnProperty(n)?t="tag":pe.hasOwnProperty(n)?t="attribute":fe.hasOwnProperty(n)?t="property":le.hasOwnProperty(n)?t="string-2":t=_(e.current()),t=="tag"&&a(e))return o(r,e,"block")}return i=="operator"&&/^(not|and|or)$/.test(e.current())&&(t="keyword"),r.context.type},s.atBlock_parens=function(i,e,r){if(i=="{"||i=="}")return r.context.type;if(i==")")return a(e)?o(r,e,"block"):o(r,e,"atBlock");if(i=="word"){var n=e.current().toLowerCase();return t=_(n),/^(max|min)/.test(n)&&(t="property"),t=="tag"&&(B.test(n)?t="variable-2":t="atom"),r.context.type}return s.atBlock(i,e,r)},s.keyframes=function(i,e,r){return e.indentation()=="0"&&(i=="}"&&P(e)||i=="]"||i=="hash"||i=="qualifier"||m(e.current()))?S(i,e,r):i=="{"?o(r,e,"keyframes"):i=="}"?P(e)?j(r,!0):o(r,e,"keyframes"):i=="unit"&&/^[0-9]+\%$/.test(e.current())?o(r,e,"keyframes"):i=="word"&&(t=_(e.current()),t=="block-keyword")?(t="keyword",o(r,e,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(i)?o(r,e,a(e)?"block":"atBlock"):i=="mixin"?o(r,e,"block",0):r.context.type},s.interpolation=function(i,e,r){return i=="{"&&j(r)&&o(r,e,"block"),i=="}"?e.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||e.string.match(/^\s*[a-z]/i)&&m(d(e))?o(r,e,"block"):!e.string.match(/^(\{|\s*\&)/)||e.match(/\s*[\w-]/,!1)?o(r,e,"block",0):o(r,e,"block"):i=="variable-name"?o(r,e,"variableName",0):(i=="word"&&(t=_(e.current()),t=="tag"&&(t="atom")),r.context.type)},s.extend=function(i,e,r){return i=="["||i=="="?"extend":i=="]"?j(r):i=="word"?(t=_(e.current()),"extend"):j(r)},s.variableName=function(i,e,r){return i=="string"||i=="["||i=="]"||e.current().match(/^(\.|\$)/)?(e.current().match(/^\.[\w-]+/i)&&(t="variable-2"),"variableName"):S(i,e,r)},{startState:function(i){return{tokenize:null,state:"block",context:new H("block",i||0,null)}},token:function(i,e){return!e.tokenize&&i.eatSpace()?null:(z=(e.tokenize||we)(i,e),z&&typeof z=="object"&&(D=z[1],z=z[0]),t=z,e.state=s[e.state](D,i,e),t)},indent:function(i,e,r){var n=i.context,l=e&&e.charAt(0),h=n.indent,L=d(e),k=r.match(/^\s*/)[0].replace(/\t/g,x).length,u=i.context.prev?i.context.prev.line.firstWord:"",f=i.context.prev?i.context.prev.line.indent:k;return n.prev&&(l=="}"&&(n.type=="block"||n.type=="atBlock"||n.type=="keyframes")||l==")"&&(n.type=="parens"||n.type=="atBlock_parens")||l=="{"&&n.type=="at")?h=n.indent-c:/(\})/.test(l)||(/@|\$|\d/.test(l)||/^\{/.test(e)||/^\s*\/(\/|\*)/.test(e)||/^\s*\/\*/.test(u)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(e)||/^(\+|-)?[a-z][\w-]*\(/i.test(e)||/^return/.test(e)||$(L)?h=k:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||m(L)?/\,\s*$/.test(u)?h=f:/^\s+/.test(r)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(u)||m(u))?h=k<=f?f:f+c:h=k:!/,\s*$/.test(r)&&(G(L)||q(L))&&($(u)?h=k<=f?f:f+c:/^\{/.test(u)?h=k<=f?k:f+c:G(u)||q(u)?h=k>=f?f:k:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(u)||/=\s*$/.test(u)||m(u)||/^\$[\w-\.\[\]\'\"]/.test(u)?h=f+c:h=k)),h},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var y=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],v=["domain","regexp","url-prefix","url"],C=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],R=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],W=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],I=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],T=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],F=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],X=["for","if","else","unless","from","to"],Y=["null","true","false","href","title","type","not-allowed","readonly","disabled"],re=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],oe=y.concat(v,C,R,W,I,N,U,T,F,X,Y,re);function Z(g){return g=g.sort(function(c,x){return x>c}),new RegExp("^(("+g.join(")|(")+"))\\b")}function p(g){for(var c={},x=0;xy[v]})}}}return Object.freeze(Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}))}var qe={exports:{}};(function(K,O){(function(w){w(ze)})(function(w){w.defineMode("stylus",function(g){for(var c=g.indentUnit,x="",te=p(y),B=/^(a|b|i|s|col|em)$/i,ae=p(W),le=p(I),ce=p(U),se=p(N),de=p(v),ue=Z(v),fe=p(R),pe=p(C),he=p(T),ge=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,be=Z(F),me=p(X),A=new RegExp(/^\-(moz|ms|o|webkit)-/i),ke=p(Y),E="",s={},b,z,D,t;x.length|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),e.context.line.firstWord=E?E[0].replace(/^\s*/,""):"",e.context.line.indent=i.indentation(),b=i.peek(),i.match("//"))return i.skipToEnd(),["comment","comment"];if(i.match("/*"))return e.tokenize=M,M(i,e);if(b=='"'||b=="'")return i.next(),e.tokenize=V(b),e.tokenize(i,e);if(b=="@")return i.next(),i.eatWhile(/[\w\\-]/),["def",i.current()];if(b=="#"){if(i.next(),i.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(i.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return i.match(A)?["meta","vendor-prefixes"]:i.match(/^-?[0-9]?\.?[0-9]/)?(i.eatWhile(/[a-z%]/i),["number","unit"]):b=="!"?(i.next(),[i.match(/^(important|optional)/i)?"keyword":"operator","important"]):b=="."&&i.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:i.match(ue)?(i.peek()=="("&&(e.tokenize=ve),["property","word"]):i.match(/^[a-z][\w-]*\(/i)?(i.backUp(1),["keyword","mixin"]):i.match(/^(\+|-)[a-z][\w-]*\(/i)?(i.backUp(1),["keyword","block-mixin"]):i.string.match(/^\s*&/)&&i.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:i.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(i.backUp(1),["variable-3","reference"]):i.match(/^&{1}\s*$/)?["variable-3","reference"]:i.match(be)?["operator","operator"]:i.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?i.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!m(i.current())?(i.match("."),["variable-2","variable-name"]):["variable-2","word"]:i.match(ge)?["operator",i.current()]:/[:;,{}\[\]\(\)]/.test(b)?(i.next(),[null,b]):(i.next(),[null,null])}function M(i,e){for(var r=!1,n;(n=i.next())!=null;){if(r&&n=="/"){e.tokenize=null;break}r=n=="*"}return["comment","comment"]}function V(i){return function(e,r){for(var n=!1,l;(l=e.next())!=null;){if(l==i&&!n){i==")"&&e.backUp(1);break}n=!n&&l=="\\"}return(l==i||!n&&i!=")")&&(r.tokenize=null),["string","string"]}}function ve(i,e){return i.next(),i.match(/\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=V(")"),[null,"("]}function H(i,e,r,n){this.type=i,this.indent=e,this.prev=r,this.line=n||{firstWord:"",indent:0}}function o(i,e,r,n){return n=n>=0?n:c,i.context=new H(r,e.indentation()+n,i.context),r}function j(i,e){var r=i.context.indent-c;return e=e||!1,i.context=i.context.prev,e&&(i.context.indent=r),i.context.type}function xe(i,e,r){return s[r.context.type](i,e,r)}function S(i,e,r,n){for(var l=n||1;l>0;l--)r.context=r.context.prev;return xe(i,e,r)}function m(i){return i.toLowerCase()in te}function q(i){return i=i.toLowerCase(),i in ae||i in he}function $(i){return i.toLowerCase()in me}function G(i){return i.toLowerCase().match(A)}function _(i){var e=i.toLowerCase(),r="variable-2";return m(i)?r="tag":$(i)?r="block-keyword":q(i)?r="property":e in ce||e in ke?r="atom":e=="return"||e in se?r="keyword":i.match(/^[A-Z]/)&&(r="string"),r}function J(i,e){return a(e)&&(i=="{"||i=="]"||i=="hash"||i=="qualifier")||i=="block-mixin"}function Q(i,e){return i=="{"&&e.match(/^\s*\$?[\w-]+/i,!1)}function ee(i,e){return i==":"&&e.match(/^[a-z-]+/,!1)}function P(i){return i.sol()||i.string.match(new RegExp("^\\s*"+ne(i.current())))}function a(i){return i.eol()||i.match(/^\s*$/,!1)}function d(i){var e=/^\s*[-_]*[a-z0-9]+[\w-]*/i,r=typeof i=="string"?i.match(e):i.string.match(e);return r?r[0].replace(/^\s*/,""):""}return s.block=function(i,e,r){if(i=="comment"&&P(e)||i==","&&a(e)||i=="mixin")return o(r,e,"block",0);if(Q(i,e))return o(r,e,"interpolation");if(a(e)&&i=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(e.string)&&!m(d(e)))return o(r,e,"block",0);if(J(i,e))return o(r,e,"block");if(i=="}"&&a(e))return o(r,e,"block",0);if(i=="variable-name")return e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||$(d(e))?o(r,e,"variableName"):o(r,e,"variableName",0);if(i=="=")return!a(e)&&!$(d(e))?o(r,e,"block",0):o(r,e,"block");if(i=="*"&&(a(e)||e.match(/\s*(,|\.|#|\[|:|{)/,!1)))return t="tag",o(r,e,"block");if(ee(i,e))return o(r,e,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(i))return o(r,e,a(e)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(i))return o(r,e,"keyframes");if(/@extends?/.test(i))return o(r,e,"extend",0);if(i&&i.charAt(0)=="@")return e.indentation()>0&&q(e.current().slice(1))?(t="variable-2","block"):/(@import|@require|@charset)/.test(i)?o(r,e,"block",0):o(r,e,"block");if(i=="reference"&&a(e))return o(r,e,"block");if(i=="(")return o(r,e,"parens");if(i=="vendor-prefixes")return o(r,e,"vendorPrefixes");if(i=="word"){var n=e.current();if(t=_(n),t=="property")return P(e)?o(r,e,"block",0):(t="atom","block");if(t=="tag"){if(/embed|menu|pre|progress|sub|table/.test(n)&&q(d(e))||e.string.match(new RegExp("\\[\\s*"+n+"|"+n+"\\s*\\]")))return t="atom","block";if(B.test(n)&&(P(e)&&e.string.match(/=/)||!P(e)&&!e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!m(d(e))))return t="variable-2",$(d(e))?"block":o(r,e,"block",0);if(a(e))return o(r,e,"block")}if(t=="block-keyword")return t="keyword",e.current(/(if|unless)/)&&!P(e)?"block":o(r,e,"block");if(n=="return")return o(r,e,"block",0);if(t=="variable-2"&&e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return o(r,e,"block")}return r.context.type},s.parens=function(i,e,r){if(i=="(")return o(r,e,"parens");if(i==")")return r.context.prev.type=="parens"?j(r):e.string.match(/^[a-z][\w-]*\(/i)&&a(e)||$(d(e))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(d(e))||!e.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&m(d(e))?o(r,e,"block"):e.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||e.string.match(/^\s*(\(|\)|[0-9])/)||e.string.match(/^\s+[a-z][\w-]*\(/i)||e.string.match(/^\s+[\$-]?[a-z]/i)?o(r,e,"block",0):a(e)?o(r,e,"block"):o(r,e,"block",0);if(i&&i.charAt(0)=="@"&&q(e.current().slice(1))&&(t="variable-2"),i=="word"){var n=e.current();t=_(n),t=="tag"&&B.test(n)&&(t="variable-2"),(t=="property"||n=="to")&&(t="atom")}return i=="variable-name"?o(r,e,"variableName"):ee(i,e)?o(r,e,"pseudo"):r.context.type},s.vendorPrefixes=function(i,e,r){return i=="word"?(t="property",o(r,e,"block",0)):j(r)},s.pseudo=function(i,e,r){return q(d(e.string))?S(i,e,r):(e.match(/^[a-z-]+/),t="variable-3",a(e)?o(r,e,"block"):j(r))},s.atBlock=function(i,e,r){if(i=="(")return o(r,e,"atBlock_parens");if(J(i,e))return o(r,e,"block");if(Q(i,e))return o(r,e,"interpolation");if(i=="word"){var n=e.current().toLowerCase();if(/^(only|not|and|or)$/.test(n)?t="keyword":de.hasOwnProperty(n)?t="tag":pe.hasOwnProperty(n)?t="attribute":fe.hasOwnProperty(n)?t="property":le.hasOwnProperty(n)?t="string-2":t=_(e.current()),t=="tag"&&a(e))return o(r,e,"block")}return i=="operator"&&/^(not|and|or)$/.test(e.current())&&(t="keyword"),r.context.type},s.atBlock_parens=function(i,e,r){if(i=="{"||i=="}")return r.context.type;if(i==")")return a(e)?o(r,e,"block"):o(r,e,"atBlock");if(i=="word"){var n=e.current().toLowerCase();return t=_(n),/^(max|min)/.test(n)&&(t="property"),t=="tag"&&(B.test(n)?t="variable-2":t="atom"),r.context.type}return s.atBlock(i,e,r)},s.keyframes=function(i,e,r){return e.indentation()=="0"&&(i=="}"&&P(e)||i=="]"||i=="hash"||i=="qualifier"||m(e.current()))?S(i,e,r):i=="{"?o(r,e,"keyframes"):i=="}"?P(e)?j(r,!0):o(r,e,"keyframes"):i=="unit"&&/^[0-9]+\%$/.test(e.current())?o(r,e,"keyframes"):i=="word"&&(t=_(e.current()),t=="block-keyword")?(t="keyword",o(r,e,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(i)?o(r,e,a(e)?"block":"atBlock"):i=="mixin"?o(r,e,"block",0):r.context.type},s.interpolation=function(i,e,r){return i=="{"&&j(r)&&o(r,e,"block"),i=="}"?e.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||e.string.match(/^\s*[a-z]/i)&&m(d(e))?o(r,e,"block"):!e.string.match(/^(\{|\s*\&)/)||e.match(/\s*[\w-]/,!1)?o(r,e,"block",0):o(r,e,"block"):i=="variable-name"?o(r,e,"variableName",0):(i=="word"&&(t=_(e.current()),t=="tag"&&(t="atom")),r.context.type)},s.extend=function(i,e,r){return i=="["||i=="="?"extend":i=="]"?j(r):i=="word"?(t=_(e.current()),"extend"):j(r)},s.variableName=function(i,e,r){return i=="string"||i=="["||i=="]"||e.current().match(/^(\.|\$)/)?(e.current().match(/^\.[\w-]+/i)&&(t="variable-2"),"variableName"):S(i,e,r)},{startState:function(i){return{tokenize:null,state:"block",context:new H("block",i||0,null)}},token:function(i,e){return!e.tokenize&&i.eatSpace()?null:(z=(e.tokenize||we)(i,e),z&&typeof z=="object"&&(D=z[1],z=z[0]),t=z,e.state=s[e.state](D,i,e),t)},indent:function(i,e,r){var n=i.context,l=e&&e.charAt(0),h=n.indent,L=d(e),k=r.match(/^\s*/)[0].replace(/\t/g,x).length,u=i.context.prev?i.context.prev.line.firstWord:"",f=i.context.prev?i.context.prev.line.indent:k;return n.prev&&(l=="}"&&(n.type=="block"||n.type=="atBlock"||n.type=="keyframes")||l==")"&&(n.type=="parens"||n.type=="atBlock_parens")||l=="{"&&n.type=="at")?h=n.indent-c:/(\})/.test(l)||(/@|\$|\d/.test(l)||/^\{/.test(e)||/^\s*\/(\/|\*)/.test(e)||/^\s*\/\*/.test(u)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(e)||/^(\+|-)?[a-z][\w-]*\(/i.test(e)||/^return/.test(e)||$(L)?h=k:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)||m(L)?/\,\s*$/.test(u)?h=f:/^\s+/.test(r)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(u)||m(u))?h=k<=f?f:f+c:h=k:!/,\s*$/.test(r)&&(G(L)||q(L))&&($(u)?h=k<=f?f:f+c:/^\{/.test(u)?h=k<=f?k:f+c:G(u)||q(u)?h=k>=f?f:k:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(u)||/=\s*$/.test(u)||m(u)||/^\$[\w-\.\[\]\'\"]/.test(u)?h=f+c:h=k)),h},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var y=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],v=["domain","regexp","url-prefix","url"],C=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],R=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],W=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],I=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],T=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],F=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],X=["for","if","else","unless","from","to"],Y=["null","true","false","href","title","type","not-allowed","readonly","disabled"],re=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],oe=y.concat(v,C,R,W,I,N,U,T,F,X,Y,re);function Z(g){return g=g.sort(function(c,x){return x>c}),new RegExp("^(("+g.join(")|(")+"))\\b")}function p(g){for(var c={},x=0;xu[f]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(p,d){(function(c){c(F)})(function(c){function u(e){for(var t={},n=0;n~^?!",y=":;,.(){}[]",w=/^\-?0b[01][01_]*/,k=/^\-?0o[0-7][0-7_]*/,b=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,z=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,m=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,A=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,O=/^\#[A-Za-z]+/,I=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function s(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r=e.peek();if(r=="/"){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(v),v(e,t)}if(e.match(O))return"builtin";if(e.match(I))return"attribute";if(e.match(w)||e.match(k)||e.match(b)||e.match(z))return"number";if(e.match(A))return"property";if(g.indexOf(r)>-1)return e.next(),"operator";if(y.indexOf(r)>-1)return e.next(),e.match(".."),"punctuation";var i;if(i=e.match(/("""|"|')/)){var o=C.bind(null,i[0]);return t.tokenize.push(o),o(e,t)}if(e.match(m)){var a=e.current();return _.hasOwnProperty(a)?"variable-2":x.hasOwnProperty(a)?"atom":f.hasOwnProperty(a)?(l.hasOwnProperty(a)&&(t.prev="define"),"keyword"):n=="define"?"def":"variable"}return e.next(),null}function S(){var e=0;return function(t,n,r){var i=s(t,n,r);if(i=="punctuation"){if(t.current()=="(")++e;else if(t.current()==")"){if(e==0)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}}return i}}function C(e,t,n){for(var r=e.length==1,i,o=!1;i=t.peek();)if(o){if(t.next(),i=="(")return n.tokenize.push(S()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o=i=="\\"}return r&&n.tokenize.pop(),"string"}function v(e,t){for(var n;n=e.next();)if(n==="/"&&e.eat("*"))t.tokenize.push(v);else if(n==="*"&&e.eat("/")){t.tokenize.pop();break}return"comment"}function P(e,t,n){this.prev=e,this.align=t,this.indented=n}function $(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new P(e.context,n,e.indented)}function E(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}c.defineMode("swift",function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(t,n){var r=n.prev;n.prev=null;var i=n.tokenize[n.tokenize.length-1]||s,o=i(t,n,r);if(!o||o=="comment"?n.prev=r:n.prev||(n.prev=o),o=="punctuation"){var a=/[\(\[\{]|([\]\)\}])/.exec(t.current());a&&(a[1]?E:$)(n,t)}return o},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return r.align!=null?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),c.defineMIME("text/x-swift","swift")})})();var h=j.exports;const N=U(h),T=Z({__proto__:null,default:N},[h]);export{T as s}; +import{g as U,c as F}from"./index-F8NPuhC5.js";function Z(p,d){for(var c=0;cu[f]})}}}return Object.freeze(Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}))}var j={exports:{}};(function(p,d){(function(c){c(F)})(function(c){function u(e){for(var t={},n=0;n~^?!",y=":;,.(){}[]",w=/^\-?0b[01][01_]*/,k=/^\-?0o[0-7][0-7_]*/,b=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,z=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,m=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,A=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,O=/^\#[A-Za-z]+/,I=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function s(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r=e.peek();if(r=="/"){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(v),v(e,t)}if(e.match(O))return"builtin";if(e.match(I))return"attribute";if(e.match(w)||e.match(k)||e.match(b)||e.match(z))return"number";if(e.match(A))return"property";if(g.indexOf(r)>-1)return e.next(),"operator";if(y.indexOf(r)>-1)return e.next(),e.match(".."),"punctuation";var i;if(i=e.match(/("""|"|')/)){var o=C.bind(null,i[0]);return t.tokenize.push(o),o(e,t)}if(e.match(m)){var a=e.current();return _.hasOwnProperty(a)?"variable-2":x.hasOwnProperty(a)?"atom":f.hasOwnProperty(a)?(l.hasOwnProperty(a)&&(t.prev="define"),"keyword"):n=="define"?"def":"variable"}return e.next(),null}function S(){var e=0;return function(t,n,r){var i=s(t,n,r);if(i=="punctuation"){if(t.current()=="(")++e;else if(t.current()==")"){if(e==0)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}}return i}}function C(e,t,n){for(var r=e.length==1,i,o=!1;i=t.peek();)if(o){if(t.next(),i=="(")return n.tokenize.push(S()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o=i=="\\"}return r&&n.tokenize.pop(),"string"}function v(e,t){for(var n;n=e.next();)if(n==="/"&&e.eat("*"))t.tokenize.push(v);else if(n==="*"&&e.eat("/")){t.tokenize.pop();break}return"comment"}function P(e,t,n){this.prev=e,this.align=t,this.indented=n}function $(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new P(e.context,n,e.indented)}function E(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}c.defineMode("swift",function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(t,n){var r=n.prev;n.prev=null;var i=n.tokenize[n.tokenize.length-1]||s,o=i(t,n,r);if(!o||o=="comment"?n.prev=r:n.prev||(n.prev=o),o=="punctuation"){var a=/[\(\[\{]|([\]\)\}])/.exec(t.current());a&&(a[1]?E:$)(n,t)}return o},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return r.align!=null?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),c.defineMIME("text/x-swift","swift")})})();var h=j.exports;const N=U(h),T=Z({__proto__:null,default:N},[h]);export{T as s}; diff --git a/dist-ui/assets/tcl-MbiWHS-F.js b/dist-ui/assets/tcl-6Xgq87Zw.js similarity index 97% rename from dist-ui/assets/tcl-MbiWHS-F.js rename to dist-ui/assets/tcl-6Xgq87Zw.js index 062510dc..8da9887c 100644 --- a/dist-ui/assets/tcl-MbiWHS-F.js +++ b/dist-ui/assets/tcl-6Xgq87Zw.js @@ -1 +1 @@ -import{g as x,c as y}from"./index-CFELAGmQ.js";function v(c,s){for(var o=0;oa[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,s){(function(o){o(y)})(function(o){o.defineMode("tcl",function(){function a(r){for(var t={},n=r.split(" "),e=0;e!?^\/\|]/;function p(r,t,n){return t.tokenize=n,n(r,t)}function u(r,t){var n=t.beforeParams;t.beforeParams=!1;var e=r.next();if((e=='"'||e=="'")&&t.inParams)return p(r,t,b(e));if(/[\[\]{}\(\),;\.]/.test(e))return e=="("&&n?t.inParams=!0:e==")"&&(t.inParams=!1),null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="#")return r.eat("*")?p(r,t,g):e=="#"&&r.match(/ *\[ *\[/)?p(r,t,h):(r.skipToEnd(),"comment");if(e=='"')return r.skipTo(/"/),"comment";if(e=="$")return r.eatWhile(/[$_a-z0-9A-Z\.{:]/),r.eatWhile(/}/),t.beforeParams=!0,"builtin";if(d.test(e))return r.eatWhile(d),"comment";r.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=r.current().toLowerCase();return i&&i.propertyIsEnumerable(f)?"keyword":l&&l.propertyIsEnumerable(f)?(t.beforeParams=!0,"keyword"):null}function b(r){return function(t,n){for(var e=!1,f,m=!1;(f=t.next())!=null;){if(f==r&&!e){m=!0;break}e=!e&&f=="\\"}return m&&(n.tokenize=u),"string"}}function g(r,t){for(var n=!1,e;e=r.next();){if(e=="#"&&n){t.tokenize=u;break}n=e=="*"}return"comment"}function h(r,t){for(var n=0,e;e=r.next();){if(e=="#"&&n==2){t.tokenize=u;break}e=="]"?n++:e!=" "&&(n=0)}return"meta"}return{startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1}},token:function(r,t){return r.eatSpace()?null:t.tokenize(r,t)},lineComment:"#"}}),o.defineMIME("text/x-tcl","tcl")})})();var k=_.exports;const w=x(k),E=v({__proto__:null,default:w},[k]);export{E as t}; +import{g as x,c as y}from"./index-F8NPuhC5.js";function v(c,s){for(var o=0;oa[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,s){(function(o){o(y)})(function(o){o.defineMode("tcl",function(){function a(r){for(var t={},n=r.split(" "),e=0;e!?^\/\|]/;function p(r,t,n){return t.tokenize=n,n(r,t)}function u(r,t){var n=t.beforeParams;t.beforeParams=!1;var e=r.next();if((e=='"'||e=="'")&&t.inParams)return p(r,t,b(e));if(/[\[\]{}\(\),;\.]/.test(e))return e=="("&&n?t.inParams=!0:e==")"&&(t.inParams=!1),null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="#")return r.eat("*")?p(r,t,g):e=="#"&&r.match(/ *\[ *\[/)?p(r,t,h):(r.skipToEnd(),"comment");if(e=='"')return r.skipTo(/"/),"comment";if(e=="$")return r.eatWhile(/[$_a-z0-9A-Z\.{:]/),r.eatWhile(/}/),t.beforeParams=!0,"builtin";if(d.test(e))return r.eatWhile(d),"comment";r.eatWhile(/[\w\$_{}\xa1-\uffff]/);var f=r.current().toLowerCase();return i&&i.propertyIsEnumerable(f)?"keyword":l&&l.propertyIsEnumerable(f)?(t.beforeParams=!0,"keyword"):null}function b(r){return function(t,n){for(var e=!1,f,m=!1;(f=t.next())!=null;){if(f==r&&!e){m=!0;break}e=!e&&f=="\\"}return m&&(n.tokenize=u),"string"}}function g(r,t){for(var n=!1,e;e=r.next();){if(e=="#"&&n){t.tokenize=u;break}n=e=="*"}return"comment"}function h(r,t){for(var n=0,e;e=r.next();){if(e=="#"&&n==2){t.tokenize=u;break}e=="]"?n++:e!=" "&&(n=0)}return"meta"}return{startState:function(){return{tokenize:u,beforeParams:!1,inParams:!1}},token:function(r,t){return r.eatSpace()?null:t.tokenize(r,t)},lineComment:"#"}}),o.defineMIME("text/x-tcl","tcl")})})();var k=_.exports;const w=x(k),E=v({__proto__:null,default:w},[k]);export{E as t}; diff --git a/dist-ui/assets/textile-DFexsl9c.js b/dist-ui/assets/textile-B2k0xri9.js similarity index 99% rename from dist-ui/assets/textile-DFexsl9c.js rename to dist-ui/assets/textile-B2k0xri9.js index 9e19b4d9..e5f3175e 100644 --- a/dist-ui/assets/textile-DFexsl9c.js +++ b/dist-ui/assets/textile-B2k0xri9.js @@ -1 +1 @@ -import{g as R,c as w}from"./index-CFELAGmQ.js";function A(y,m){for(var c=0;cu[d]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(y,m){(function(c){c(w)})(function(c){var u={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function d(t,e){e.mode=r.newLayout,e.tableHeading=!1,e.layoutType==="definitionList"&&e.spanningLayout&&t.match(l("definitionListEnd"),!1)&&(e.spanningLayout=!1)}function b(t,e,i){if(i==="_")return t.eat("_")?f(t,e,"italic",/__/,2):f(t,e,"em",/_/,1);if(i==="*")return t.eat("*")?f(t,e,"bold",/\*\*/,2):f(t,e,"strong",/\*/,1);if(i==="[")return t.match(/\d+\]/)&&(e.footCite=!0),a(e);if(i==="("){var o=t.match(/^(r|tm|c)\)/);if(o)return p(e,u.specialChar)}if(i==="<"&&t.match(/(\w+)[^>]+>[^<]+<\/\1>/))return p(e,u.html);if(i==="?"&&t.eat("?"))return f(t,e,"cite",/\?\?/,2);if(i==="="&&t.eat("="))return f(t,e,"notextile",/==/,2);if(i==="-"&&!t.eat("-"))return f(t,e,"deletion",/-/,1);if(i==="+")return f(t,e,"addition",/\+/,1);if(i==="~")return f(t,e,"sub",/~/,1);if(i==="^")return f(t,e,"sup",/\^/,1);if(i==="%")return f(t,e,"span",/%/,1);if(i==="@")return f(t,e,"code",/@/,1);if(i==="!"){var s=f(t,e,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),s}return a(e)}function f(t,e,i,o,s){var g=t.pos>s?t.string.charAt(t.pos-s-1):null,h=t.peek();if(e[i]){if((!h||/\W/.test(h))&&g&&/\S/.test(g)){var L=a(e);return e[i]=!1,L}}else(!g||/\W/.test(g))&&h&&/\S/.test(h)&&t.match(new RegExp("^.*\\S"+o.source+"(?:\\W|$)"),!1)&&(e[i]=!0,e.mode=r.attributes);return a(e)}function a(t){var e=v(t);if(e)return e;var i=[];return t.layoutType&&i.push(u[t.layoutType]),i=i.concat(x(t,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),t.layoutType==="header"&&i.push(u.header+"-"+t.header),i.length?i.join(" "):null}function v(t){var e=t.layoutType;switch(e){case"notextile":case"code":case"pre":return u[e];default:return t.notextile?u.notextile+(e?" "+u[e]:""):null}}function p(t,e){var i=v(t);if(i)return i;var o=a(t);return e?o?o+" "+e:e:o}function x(t){for(var e=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return n.makeRe("^",n.single.drawTable,"$");case"html":return n.makeRe("^",n.single.html,"(?:",n.single.html,")*","$");case"linkDefinition":return n.makeRe("^",n.single.linkDefinition,"$");case"listLayout":return n.makeRe("^",n.single.list,l("allAttributes"),"*\\s+");case"tableCellAttributes":return n.makeRe("^",n.choiceRe(n.single.tableCellAttributes,l("allAttributes")),"+\\.");case"type":return n.makeRe("^",l("allTypes"));case"typeLayout":return n.makeRe("^",l("allTypes"),l("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return n.makeRe("^",l("allAttributes"),"+");case"allTypes":return n.choiceRe(n.single.div,n.single.foot,n.single.header,n.single.bc,n.single.bq,n.single.notextile,n.single.pre,n.single.table,n.single.para);case"allAttributes":return n.choiceRe(n.attributes.selector,n.attributes.css,n.attributes.lang,n.attributes.align,n.attributes.pad);default:return n.makeRe("^",n.single[t])}},makeRe:function(){for(var t="",e=0;eu[d]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}};(function(y,m){(function(c){c(w)})(function(c){var u={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};function d(t,e){e.mode=r.newLayout,e.tableHeading=!1,e.layoutType==="definitionList"&&e.spanningLayout&&t.match(l("definitionListEnd"),!1)&&(e.spanningLayout=!1)}function b(t,e,i){if(i==="_")return t.eat("_")?f(t,e,"italic",/__/,2):f(t,e,"em",/_/,1);if(i==="*")return t.eat("*")?f(t,e,"bold",/\*\*/,2):f(t,e,"strong",/\*/,1);if(i==="[")return t.match(/\d+\]/)&&(e.footCite=!0),a(e);if(i==="("){var o=t.match(/^(r|tm|c)\)/);if(o)return p(e,u.specialChar)}if(i==="<"&&t.match(/(\w+)[^>]+>[^<]+<\/\1>/))return p(e,u.html);if(i==="?"&&t.eat("?"))return f(t,e,"cite",/\?\?/,2);if(i==="="&&t.eat("="))return f(t,e,"notextile",/==/,2);if(i==="-"&&!t.eat("-"))return f(t,e,"deletion",/-/,1);if(i==="+")return f(t,e,"addition",/\+/,1);if(i==="~")return f(t,e,"sub",/~/,1);if(i==="^")return f(t,e,"sup",/\^/,1);if(i==="%")return f(t,e,"span",/%/,1);if(i==="@")return f(t,e,"code",/@/,1);if(i==="!"){var s=f(t,e,"image",/(?:\([^\)]+\))?!/,1);return t.match(/^:\S+/),s}return a(e)}function f(t,e,i,o,s){var g=t.pos>s?t.string.charAt(t.pos-s-1):null,h=t.peek();if(e[i]){if((!h||/\W/.test(h))&&g&&/\S/.test(g)){var L=a(e);return e[i]=!1,L}}else(!g||/\W/.test(g))&&h&&/\S/.test(h)&&t.match(new RegExp("^.*\\S"+o.source+"(?:\\W|$)"),!1)&&(e[i]=!0,e.mode=r.attributes);return a(e)}function a(t){var e=v(t);if(e)return e;var i=[];return t.layoutType&&i.push(u[t.layoutType]),i=i.concat(x(t,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),t.layoutType==="header"&&i.push(u.header+"-"+t.header),i.length?i.join(" "):null}function v(t){var e=t.layoutType;switch(e){case"notextile":case"code":case"pre":return u[e];default:return t.notextile?u.notextile+(e?" "+u[e]:""):null}}function p(t,e){var i=v(t);if(i)return i;var o=a(t);return e?o?o+" "+e:e:o}function x(t){for(var e=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return n.makeRe("^",n.single.drawTable,"$");case"html":return n.makeRe("^",n.single.html,"(?:",n.single.html,")*","$");case"linkDefinition":return n.makeRe("^",n.single.linkDefinition,"$");case"listLayout":return n.makeRe("^",n.single.list,l("allAttributes"),"*\\s+");case"tableCellAttributes":return n.makeRe("^",n.choiceRe(n.single.tableCellAttributes,l("allAttributes")),"+\\.");case"type":return n.makeRe("^",l("allTypes"));case"typeLayout":return n.makeRe("^",l("allTypes"),l("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return n.makeRe("^",l("allAttributes"),"+");case"allTypes":return n.choiceRe(n.single.div,n.single.foot,n.single.header,n.single.bc,n.single.bq,n.single.notextile,n.single.pre,n.single.table,n.single.para);case"allAttributes":return n.choiceRe(n.attributes.selector,n.attributes.css,n.attributes.lang,n.attributes.align,n.attributes.pad);default:return n.makeRe("^",n.single[t])}},makeRe:function(){for(var t="",e=0;ec[f]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(d,k){(function(o){o(O)})(function(o){o.defineMode("tiddlywiki",function(){var c={},f={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},l=/[\w_\-]/i,p=/^\-\-\-\-+$/,w=/^\/\*\*\*$/,b=/^\*\*\*\/$/,y=/^<<<$/,g=/^\/\/\{\{\{$/,v=/^\/\/\}\}\}$/,x=/^$/,m=/^$/,S=/^\{\{\{$/,$=/^\}\}\}$/,_=/.*?\}\}\}/;function u(e,n,r){return n.tokenize=r,r(e,n)}function i(e,n){var r=e.sol(),t=e.peek();if(n.block=!1,r&&/[<\/\*{}\-]/.test(t)){if(e.match(S))return n.block=!0,u(e,n,h);if(e.match(y))return"quote";if(e.match(w)||e.match(b)||e.match(g)||e.match(v)||e.match(x)||e.match(m))return"comment";if(e.match(p))return"hr"}if(e.next(),r&&/[\/\*!#;:>|]/.test(t)){if(t=="!")return e.skipToEnd(),"header";if(t=="*")return e.eatWhile("*"),"comment";if(t=="#")return e.eatWhile("#"),"comment";if(t==";")return e.eatWhile(";"),"comment";if(t==":")return e.eatWhile(":"),"comment";if(t==">")return e.eatWhile(">"),"quote";if(t=="|")return"header"}if(t=="{"&&e.match("{{"))return u(e,n,h);if(/[hf]/i.test(t)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(t=='"')return"string";if(t=="~"||/[\[\]]/.test(t)&&e.match(t))return"brace";if(t=="@")return e.eatWhile(l),"link";if(/\d/.test(t))return e.eatWhile(/\d/),"number";if(t=="/"){if(e.eat("%"))return u(e,n,z);if(e.eat("/"))return u(e,n,C)}if(t=="_"&&e.eat("_"))return u(e,n,T);if(t=="-"&&e.eat("-")){if(e.peek()!=" ")return u(e,n,W);if(e.peek()==" ")return"brace"}return t=="'"&&e.eat("'")?u(e,n,E):t=="<"&&e.eat("<")?u(e,n,j):(e.eatWhile(/[\w\$_]/),c.propertyIsEnumerable(e.current())?"keyword":null)}function z(e,n){for(var r=!1,t;t=e.next();){if(t=="/"&&r){n.tokenize=i;break}r=t=="%"}return"comment"}function E(e,n){for(var r=!1,t;t=e.next();){if(t=="'"&&r){n.tokenize=i;break}r=t=="'"}return"strong"}function h(e,n){var r=n.block;return r&&e.current()?"comment":!r&&e.match(_)||r&&e.sol()&&e.match($)?(n.tokenize=i,"comment"):(e.next(),"comment")}function C(e,n){for(var r=!1,t;t=e.next();){if(t=="/"&&r){n.tokenize=i;break}r=t=="/"}return"em"}function T(e,n){for(var r=!1,t;t=e.next();){if(t=="_"&&r){n.tokenize=i;break}r=t=="_"}return"underlined"}function W(e,n){for(var r=!1,t;t=e.next();){if(t=="-"&&r){n.tokenize=i;break}r=t=="-"}return"strikethrough"}function j(e,n){if(e.current()=="<<")return"macro";var r=e.next();return r?r==">"&&e.peek()==">"?(e.next(),n.tokenize=i,"macro"):(e.eatWhile(/[\w\$_]/),f.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=i,null)}return{startState:function(){return{tokenize:i}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n);return r}}}),o.defineMIME("text/x-tiddlywiki","tiddlywiki")})})();var a=M.exports;const I=A(a),P=B({__proto__:null,default:I},[a]);export{P as t}; +import{g as A,c as O}from"./index-F8NPuhC5.js";function B(d,k){for(var o=0;oc[f]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(d,k){(function(o){o(O)})(function(o){o.defineMode("tiddlywiki",function(){var c={},f={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},l=/[\w_\-]/i,p=/^\-\-\-\-+$/,w=/^\/\*\*\*$/,b=/^\*\*\*\/$/,y=/^<<<$/,g=/^\/\/\{\{\{$/,v=/^\/\/\}\}\}$/,x=/^$/,m=/^$/,S=/^\{\{\{$/,$=/^\}\}\}$/,_=/.*?\}\}\}/;function u(e,n,r){return n.tokenize=r,r(e,n)}function i(e,n){var r=e.sol(),t=e.peek();if(n.block=!1,r&&/[<\/\*{}\-]/.test(t)){if(e.match(S))return n.block=!0,u(e,n,h);if(e.match(y))return"quote";if(e.match(w)||e.match(b)||e.match(g)||e.match(v)||e.match(x)||e.match(m))return"comment";if(e.match(p))return"hr"}if(e.next(),r&&/[\/\*!#;:>|]/.test(t)){if(t=="!")return e.skipToEnd(),"header";if(t=="*")return e.eatWhile("*"),"comment";if(t=="#")return e.eatWhile("#"),"comment";if(t==";")return e.eatWhile(";"),"comment";if(t==":")return e.eatWhile(":"),"comment";if(t==">")return e.eatWhile(">"),"quote";if(t=="|")return"header"}if(t=="{"&&e.match("{{"))return u(e,n,h);if(/[hf]/i.test(t)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(t=='"')return"string";if(t=="~"||/[\[\]]/.test(t)&&e.match(t))return"brace";if(t=="@")return e.eatWhile(l),"link";if(/\d/.test(t))return e.eatWhile(/\d/),"number";if(t=="/"){if(e.eat("%"))return u(e,n,z);if(e.eat("/"))return u(e,n,C)}if(t=="_"&&e.eat("_"))return u(e,n,T);if(t=="-"&&e.eat("-")){if(e.peek()!=" ")return u(e,n,W);if(e.peek()==" ")return"brace"}return t=="'"&&e.eat("'")?u(e,n,E):t=="<"&&e.eat("<")?u(e,n,j):(e.eatWhile(/[\w\$_]/),c.propertyIsEnumerable(e.current())?"keyword":null)}function z(e,n){for(var r=!1,t;t=e.next();){if(t=="/"&&r){n.tokenize=i;break}r=t=="%"}return"comment"}function E(e,n){for(var r=!1,t;t=e.next();){if(t=="'"&&r){n.tokenize=i;break}r=t=="'"}return"strong"}function h(e,n){var r=n.block;return r&&e.current()?"comment":!r&&e.match(_)||r&&e.sol()&&e.match($)?(n.tokenize=i,"comment"):(e.next(),"comment")}function C(e,n){for(var r=!1,t;t=e.next();){if(t=="/"&&r){n.tokenize=i;break}r=t=="/"}return"em"}function T(e,n){for(var r=!1,t;t=e.next();){if(t=="_"&&r){n.tokenize=i;break}r=t=="_"}return"underlined"}function W(e,n){for(var r=!1,t;t=e.next();){if(t=="-"&&r){n.tokenize=i;break}r=t=="-"}return"strikethrough"}function j(e,n){if(e.current()=="<<")return"macro";var r=e.next();return r?r==">"&&e.peek()==">"?(e.next(),n.tokenize=i,"macro"):(e.eatWhile(/[\w\$_]/),f.propertyIsEnumerable(e.current())?"keyword":null):(n.tokenize=i,null)}return{startState:function(){return{tokenize:i}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n);return r}}}),o.defineMIME("text/x-tiddlywiki","tiddlywiki")})})();var a=M.exports;const I=A(a),P=B({__proto__:null,default:I},[a]);export{P as t}; diff --git a/dist-ui/assets/tiki-Dw5H3nSr.js b/dist-ui/assets/tiki-C91OnUZ5.js similarity index 98% rename from dist-ui/assets/tiki-Dw5H3nSr.js rename to dist-ui/assets/tiki-C91OnUZ5.js index ed7ee42e..44f8d66d 100644 --- a/dist-ui/assets/tiki-Dw5H3nSr.js +++ b/dist-ui/assets/tiki-C91OnUZ5.js @@ -1 +1 @@ -import{g as A,c as E}from"./index-CFELAGmQ.js";function C(k,x){for(var a=0;al[i]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(k,x){(function(a){a(E)})(function(a){a.defineMode("tiki",function(l){function i(e,t,n){return function(o,g){for(;!o.eol();){if(o.match(t)){g.tokenize=c;break}o.next()}return n&&(g.tokenize=n),e}}function f(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=c,e}}function c(e,t){function n(P){return t.tokenize=P,P(e,t)}var o=e.sol(),g=e.next();switch(g){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=b,"tag";case"_":if(e.eat("_"))return n(i("strong","__",c));break;case"'":if(e.eat("'"))return n(i("em","''",c));break;case"(":if(e.eat("("))return n(i("variable-2","))",c));break;case"[":return n(i("variable-3","]",c));case"|":if(e.eat("|"))return n(i("comment","||"));break;case"-":if(e.eat("="))return n(i("header string","=-",c));if(e.eat("-"))return n(i("error tw-deleted","--",c));break;case"=":if(e.match("=="))return n(i("tw-underline","===",c));break;case":":if(e.eat(":"))return n(i("comment","::"));break;case"^":return n(i("tw-box","^"));case"~":if(e.match("np~"))return n(i("meta","~/np~"));break}if(o)switch(g){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(f("header string"));case"*":case"#":case"+":return n(f("tw-listitem bracket"))}return null}var _=l.indentUnit,h,p;function b(e,t){var n=e.next(),o=e.peek();return n=="}"?(t.tokenize=c,"tag"):n=="("||n==")"?"bracket":n=="="?(p="equals",o==">"&&(e.next(),o=e.peek()),/[\'\"]/.test(o)||(t.tokenize=L()),"operator"):/[\'\"]/.test(n)?(t.tokenize=N(n),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function N(e){return function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=b;break}return"string"}}function L(){return function(e,t){for(;!e.eol();){var n=e.next(),o=e.peek();if(n==" "||n==","||/[ )}]/.test(o)){t.tokenize=b;break}}return"string"}}var r,s;function d(){for(var e=arguments.length-1;e>=0;e--)r.cc.push(arguments[e])}function u(){return d.apply(null,arguments),!0}function w(e,t){var n=r.context&&r.context.noIndent;r.context={prev:r.context,pluginName:e,indent:r.indented,startOfLine:t,noIndent:n}}function z(){r.context&&(r.context=r.context.prev)}function S(e){if(e=="openPlugin")return r.pluginName=h,u(v,j(r.startOfLine));if(e=="closePlugin"){var t=!1;return r.context?(t=r.context.pluginName!=h,z()):t=!0,t&&(s="error"),u(I(t))}else return e=="string"&&((!r.context||r.context.name!="!cdata")&&w("!cdata"),r.tokenize==c&&z()),u()}function j(e){return function(t){return t=="selfclosePlugin"||t=="endPlugin"||t=="endPlugin"&&w(r.pluginName,e),u()}}function I(e){return function(t){return e&&(s="error"),t=="endPlugin"?u():d()}}function v(e){return e=="keyword"?(s="attribute",u(v)):e=="equals"?u(m,v):d()}function m(e){return e=="keyword"?(s="string",u()):e=="string"?u(O):d()}function O(e){return e=="string"?u(O):d()}return{startState:function(){return{tokenize:c,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=p=h=null;var n=t.tokenize(e,t);if((n||p)&&n!="comment")for(r=t;;){var o=t.cc.pop()||S;if(o(p||n))break}return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+_:0},electricChars:"/"}}),a.defineMIME("text/tiki","tiki")})})();var y=M.exports;const q=A(y),U=C({__proto__:null,default:q},[y]);export{U as t}; +import{g as A,c as E}from"./index-F8NPuhC5.js";function C(k,x){for(var a=0;al[i]})}}}return Object.freeze(Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(k,x){(function(a){a(E)})(function(a){a.defineMode("tiki",function(l){function i(e,t,n){return function(o,g){for(;!o.eol();){if(o.match(t)){g.tokenize=c;break}o.next()}return n&&(g.tokenize=n),e}}function f(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=c,e}}function c(e,t){function n(P){return t.tokenize=P,P(e,t)}var o=e.sol(),g=e.next();switch(g){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=b,"tag";case"_":if(e.eat("_"))return n(i("strong","__",c));break;case"'":if(e.eat("'"))return n(i("em","''",c));break;case"(":if(e.eat("("))return n(i("variable-2","))",c));break;case"[":return n(i("variable-3","]",c));case"|":if(e.eat("|"))return n(i("comment","||"));break;case"-":if(e.eat("="))return n(i("header string","=-",c));if(e.eat("-"))return n(i("error tw-deleted","--",c));break;case"=":if(e.match("=="))return n(i("tw-underline","===",c));break;case":":if(e.eat(":"))return n(i("comment","::"));break;case"^":return n(i("tw-box","^"));case"~":if(e.match("np~"))return n(i("meta","~/np~"));break}if(o)switch(g){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(f("header string"));case"*":case"#":case"+":return n(f("tw-listitem bracket"))}return null}var _=l.indentUnit,h,p;function b(e,t){var n=e.next(),o=e.peek();return n=="}"?(t.tokenize=c,"tag"):n=="("||n==")"?"bracket":n=="="?(p="equals",o==">"&&(e.next(),o=e.peek()),/[\'\"]/.test(o)||(t.tokenize=L()),"operator"):/[\'\"]/.test(n)?(t.tokenize=N(n),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function N(e){return function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=b;break}return"string"}}function L(){return function(e,t){for(;!e.eol();){var n=e.next(),o=e.peek();if(n==" "||n==","||/[ )}]/.test(o)){t.tokenize=b;break}}return"string"}}var r,s;function d(){for(var e=arguments.length-1;e>=0;e--)r.cc.push(arguments[e])}function u(){return d.apply(null,arguments),!0}function w(e,t){var n=r.context&&r.context.noIndent;r.context={prev:r.context,pluginName:e,indent:r.indented,startOfLine:t,noIndent:n}}function z(){r.context&&(r.context=r.context.prev)}function S(e){if(e=="openPlugin")return r.pluginName=h,u(v,j(r.startOfLine));if(e=="closePlugin"){var t=!1;return r.context?(t=r.context.pluginName!=h,z()):t=!0,t&&(s="error"),u(I(t))}else return e=="string"&&((!r.context||r.context.name!="!cdata")&&w("!cdata"),r.tokenize==c&&z()),u()}function j(e){return function(t){return t=="selfclosePlugin"||t=="endPlugin"||t=="endPlugin"&&w(r.pluginName,e),u()}}function I(e){return function(t){return e&&(s="error"),t=="endPlugin"?u():d()}}function v(e){return e=="keyword"?(s="attribute",u(v)):e=="equals"?u(m,v):d()}function m(e){return e=="keyword"?(s="string",u()):e=="string"?u(O):d()}function O(e){return e=="string"?u(O):d()}return{startState:function(){return{tokenize:c,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;s=p=h=null;var n=t.tokenize(e,t);if((n||p)&&n!="comment")for(r=t;;){var o=t.cc.pop()||S;if(o(p||n))break}return t.startOfLine=!1,s||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+_:0},electricChars:"/"}}),a.defineMIME("text/tiki","tiki")})})();var y=M.exports;const q=A(y),U=C({__proto__:null,default:q},[y]);export{U as t}; diff --git a/dist-ui/assets/toml-Bw9ZtC4x.js b/dist-ui/assets/toml-Czp5aboK.js similarity index 96% rename from dist-ui/assets/toml-Bw9ZtC4x.js rename to dist-ui/assets/toml-Czp5aboK.js index ea24f3ce..80ecb1b5 100644 --- a/dist-ui/assets/toml-Bw9ZtC4x.js +++ b/dist-ui/assets/toml-Czp5aboK.js @@ -1 +1 @@ -import{g as t,c as u}from"./index-CFELAGmQ.js";function p(l,o){for(var r=0;re[n]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(l,o){(function(r){r(u)})(function(r){r.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,n){if(!n.inString&&(e.peek()=='"'||e.peek()=="'")&&(n.stringType=e.peek(),e.next(),n.inString=!0),e.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!e.eol();)e.peek()===n.stringType?(e.next(),n.inString=!1):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&e.peek()==="]")return e.next(),n.inArray--,"bracket";if(n.lhs&&e.peek()==="["&&e.skipTo("]"))return e.next(),e.peek()==="]"&&e.next(),"atom";if(e.peek()==="#")return e.skipToEnd(),"comment";if(e.eatSpace())return null;if(n.lhs&&e.eatWhile(function(i){return i!="="&&i!=" "}))return"property";if(n.lhs&&e.peek()==="=")return e.next(),n.lhs=!1,null;if(!n.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(e.match("true")||e.match("false")))return"atom";if(!n.lhs&&e.peek()==="[")return n.inArray++,e.next(),"bracket";if(!n.lhs&&e.match(/^\-?\d+(?:\.\d+)?/))return"number";e.eatSpace()||e.next()}return null}}}),r.defineMIME("text/x-toml","toml")})})();var f=c.exports;const g=t(f),x=p({__proto__:null,default:g},[f]);export{x as t}; +import{g as t,c as u}from"./index-F8NPuhC5.js";function p(l,o){for(var r=0;re[n]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var c={exports:{}};(function(l,o){(function(r){r(u)})(function(r){r.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,n){if(!n.inString&&(e.peek()=='"'||e.peek()=="'")&&(n.stringType=e.peek(),e.next(),n.inString=!0),e.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!e.eol();)e.peek()===n.stringType?(e.next(),n.inString=!1):e.peek()==="\\"?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&e.peek()==="]")return e.next(),n.inArray--,"bracket";if(n.lhs&&e.peek()==="["&&e.skipTo("]"))return e.next(),e.peek()==="]"&&e.next(),"atom";if(e.peek()==="#")return e.skipToEnd(),"comment";if(e.eatSpace())return null;if(n.lhs&&e.eatWhile(function(i){return i!="="&&i!=" "}))return"property";if(n.lhs&&e.peek()==="=")return e.next(),n.lhs=!1,null;if(!n.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(e.match("true")||e.match("false")))return"atom";if(!n.lhs&&e.peek()==="[")return n.inArray++,e.next(),"bracket";if(!n.lhs&&e.match(/^\-?\d+(?:\.\d+)?/))return"number";e.eatSpace()||e.next()}return null}}}),r.defineMIME("text/x-toml","toml")})})();var f=c.exports;const g=t(f),x=p({__proto__:null,default:g},[f]);export{x as t}; diff --git a/dist-ui/assets/tornado-GlNJ_SrA.js b/dist-ui/assets/tornado-C7GjWIPK.js similarity index 92% rename from dist-ui/assets/tornado-GlNJ_SrA.js rename to dist-ui/assets/tornado-C7GjWIPK.js index 4905a829..4af4b5b9 100644 --- a/dist-ui/assets/tornado-GlNJ_SrA.js +++ b/dist-ui/assets/tornado-C7GjWIPK.js @@ -1 +1 @@ -import{g as d,c as l}from"./index-CFELAGmQ.js";import{r as p}from"./htmlmixed-D5WYNkec.js";import{r as m}from"./overlay-0t06YMiN.js";function x(u,f){for(var e=0;et[n]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(u,f){(function(e){e(l,p(),m())})(function(e){e.defineMode("tornado:inner",function(){var t=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];t=new RegExp("^(("+t.join(")|(")+"))\\b");function n(r,o){r.eatWhile(/[^\{]/);var i=r.next();if(i=="{"&&(i=r.eat(/\{|%|#/)))return o.tokenize=a(i),"tag"}function a(r){return r=="{"&&(r="}"),function(o,i){var c=o.next();return c==r&&o.eat("}")?(i.tokenize=n,"tag"):o.match(t)?"keyword":r=="#"?"comment":"string"}}return{startState:function(){return{tokenize:n}},token:function(r,o){return o.tokenize(r,o)}}}),e.defineMode("tornado",function(t){var n=e.getMode(t,"text/html"),a=e.getMode(t,"tornado:inner");return e.overlayMode(n,a)}),e.defineMIME("text/x-tornado","tornado")})})();var s=g.exports;const y=d(s),v=x({__proto__:null,default:y},[s]);export{v as t}; +import{g as d,c as l}from"./index-F8NPuhC5.js";import{r as p}from"./htmlmixed-B3bg9pWJ.js";import{r as m}from"./overlay-DMs7bKVk.js";function x(u,f){for(var e=0;et[n]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(u,f){(function(e){e(l,p(),m())})(function(e){e.defineMode("tornado:inner",function(){var t=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];t=new RegExp("^(("+t.join(")|(")+"))\\b");function n(r,o){r.eatWhile(/[^\{]/);var i=r.next();if(i=="{"&&(i=r.eat(/\{|%|#/)))return o.tokenize=a(i),"tag"}function a(r){return r=="{"&&(r="}"),function(o,i){var c=o.next();return c==r&&o.eat("}")?(i.tokenize=n,"tag"):o.match(t)?"keyword":r=="#"?"comment":"string"}}return{startState:function(){return{tokenize:n}},token:function(r,o){return o.tokenize(r,o)}}}),e.defineMode("tornado",function(t){var n=e.getMode(t,"text/html"),a=e.getMode(t,"tornado:inner");return e.overlayMode(n,a)}),e.defineMIME("text/x-tornado","tornado")})})();var s=g.exports;const y=d(s),v=x({__proto__:null,default:y},[s]);export{v as t}; diff --git a/dist-ui/assets/troff-NC__n46a.js b/dist-ui/assets/troff-BxVgEYLN.js similarity index 96% rename from dist-ui/assets/troff-NC__n46a.js rename to dist-ui/assets/troff-BxVgEYLN.js index e86c4d6d..eadfb777 100644 --- a/dist-ui/assets/troff-NC__n46a.js +++ b/dist-ui/assets/troff-BxVgEYLN.js @@ -1 +1 @@ -import{g as p,c as l}from"./index-CFELAGmQ.js";function d(c,u){for(var n=0;nf[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(c,u){(function(n){n(l)})(function(n){n.defineMode("troff",function(){var f={};function o(t){if(t.eatSpace())return null;var e=t.sol(),i=t.next();if(i==="\\")return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):((t.match("(")||t.match("*("))&&t.eatWhile(/[\w-]/),"string");if(e&&(i==="."||i==="'")&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(e&&i==="."){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var h=t.current();return f.hasOwnProperty(h)?f[h]:null}function r(t,e){return(e.tokens[0]||o)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return r(t,e)}}}),n.defineMIME("text/troff","troff"),n.defineMIME("text/x-troff","troff"),n.defineMIME("application/x-troff","troff")})})();var a=g.exports;const x=p(a),b=d({__proto__:null,default:x},[a]);export{b as t}; +import{g as p,c as l}from"./index-F8NPuhC5.js";function d(c,u){for(var n=0;nf[o]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(c,u){(function(n){n(l)})(function(n){n.defineMode("troff",function(){var f={};function o(t){if(t.eatSpace())return null;var e=t.sol(),i=t.next();if(i==="\\")return t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")?"string":t.match("m[")?(t.skipTo("]"),t.next(),"string"):t.match("s+")||t.match("s-")?(t.eatWhile(/[\d-]/),"string"):((t.match("(")||t.match("*("))&&t.eatWhile(/[\w-]/),"string");if(e&&(i==="."||i==="'")&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(e&&i==="."){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);var h=t.current();return f.hasOwnProperty(h)?f[h]:null}function r(t,e){return(e.tokens[0]||o)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return r(t,e)}}}),n.defineMIME("text/troff","troff"),n.defineMIME("text/x-troff","troff"),n.defineMIME("application/x-troff","troff")})})();var a=g.exports;const x=p(a),b=d({__proto__:null,default:x},[a]);export{b as t}; diff --git a/dist-ui/assets/ttcn-Cw8P6tgB.js b/dist-ui/assets/ttcn-C8KYqKVj.js similarity index 98% rename from dist-ui/assets/ttcn-Cw8P6tgB.js rename to dist-ui/assets/ttcn-C8KYqKVj.js index e6c05409..bc17433d 100644 --- a/dist-ui/assets/ttcn-Cw8P6tgB.js +++ b/dist-ui/assets/ttcn-C8KYqKVj.js @@ -1 +1 @@ -import{g as N,c as B}from"./index-CFELAGmQ.js";function F(m,g){for(var u=0;uo[a]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(m,g){(function(u){u(B)})(function(u){u.defineMode("ttcn",function(l,i){var p=l.indentUnit,s=i.keywords||{},d=i.builtin||{},h=i.timerOps||{},v=i.portOps||{},M=i.configOps||{},S=i.verdictOps||{},z=i.sutOps||{},L=i.functionOps||{},C=i.verdictConsts||{},_=i.booleanConsts||{},j=i.otherConsts||{},P=i.types||{},W=i.visibilityModifiers||{},T=i.templateMatch||{},U=i.multiLineStrings,$=i.indentStatements!==!1,O=/[+\-*&@=<>!\/]/,c;function A(t,n){var e=t.next();if(e=='"'||e=="'")return n.tokenize=D(e),n.tokenize(t,n);if(/[\[\]{}\(\),;\\:\?\.]/.test(e))return c=e,"punctuation";if(e=="#")return t.skipToEnd(),"atom preprocessor";if(e=="%")return t.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(e=="/"){if(t.eat("*"))return n.tokenize=k,k(t,n);if(t.eat("/"))return t.skipToEnd(),"comment"}if(O.test(e))return e=="@"&&(t.match("try")||t.match("catch")||t.match("lazy"))?"keyword":(t.eatWhile(O),"operator");t.eatWhile(/[\w\$_\xa1-\uffff]/);var r=t.current();return s.propertyIsEnumerable(r)?"keyword":d.propertyIsEnumerable(r)?"builtin":h.propertyIsEnumerable(r)?"def timerOps":M.propertyIsEnumerable(r)?"def configOps":S.propertyIsEnumerable(r)?"def verdictOps":v.propertyIsEnumerable(r)?"def portOps":z.propertyIsEnumerable(r)?"def sutOps":L.propertyIsEnumerable(r)?"def functionOps":C.propertyIsEnumerable(r)?"string verdictConsts":_.propertyIsEnumerable(r)?"string booleanConsts":j.propertyIsEnumerable(r)?"string otherConsts":P.propertyIsEnumerable(r)?"builtin types":W.propertyIsEnumerable(r)?"builtin visibilityModifiers":T.propertyIsEnumerable(r)?"atom templateMatch":"variable"}function D(t){return function(n,e){for(var r=!1,y,E=!1;(y=n.next())!=null;){if(y==t&&!r){var f=n.peek();f&&(f=f.toLowerCase(),(f=="b"||f=="h"||f=="o")&&n.next()),E=!0;break}r=!r&&y=="\\"}return(E||!(r||U))&&(e.tokenize=null),"string"}}function k(t,n){for(var e=!1,r;r=t.next();){if(r=="/"&&e){n.tokenize=null;break}e=r=="*"}return"comment"}function w(t,n,e,r,y){this.indented=t,this.column=n,this.type=e,this.align=r,this.prev=y}function x(t,n,e){var r=t.indented;return t.context&&t.context.type=="statement"&&(r=t.context.indented),t.context=new w(r,n,e,null,t.context)}function b(t){var n=t.context.type;return(n==")"||n=="]"||n=="}")&&(t.indented=t.context.indented),t.context=t.context.prev}return{startState:function(t){return{tokenize:null,context:new w((t||0)-p,0,"top",!1),indented:0,startOfLine:!0}},token:function(t,n){var e=n.context;if(t.sol()&&(e.align==null&&(e.align=!1),n.indented=t.indentation(),n.startOfLine=!0),t.eatSpace())return null;c=null;var r=(n.tokenize||A)(t,n);if(r=="comment")return r;if(e.align==null&&(e.align=!0),(c==";"||c==":"||c==",")&&e.type=="statement")b(n);else if(c=="{")x(n,t.column(),"}");else if(c=="[")x(n,t.column(),"]");else if(c=="(")x(n,t.column(),")");else if(c=="}"){for(;e.type=="statement";)e=b(n);for(e.type=="}"&&(e=b(n));e.type=="statement";)e=b(n)}else c==e.type?b(n):$&&((e.type=="}"||e.type=="top")&&c!=";"||e.type=="statement"&&c=="newstatement")&&x(n,t.column(),"statement");return n.startOfLine=!1,r},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function o(l){for(var i={},p=l.split(" "),s=0;so[a]})}}}return Object.freeze(Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(m,g){(function(u){u(B)})(function(u){u.defineMode("ttcn",function(l,i){var p=l.indentUnit,s=i.keywords||{},d=i.builtin||{},h=i.timerOps||{},v=i.portOps||{},M=i.configOps||{},S=i.verdictOps||{},z=i.sutOps||{},L=i.functionOps||{},C=i.verdictConsts||{},_=i.booleanConsts||{},j=i.otherConsts||{},P=i.types||{},W=i.visibilityModifiers||{},T=i.templateMatch||{},U=i.multiLineStrings,$=i.indentStatements!==!1,O=/[+\-*&@=<>!\/]/,c;function A(t,n){var e=t.next();if(e=='"'||e=="'")return n.tokenize=D(e),n.tokenize(t,n);if(/[\[\]{}\(\),;\\:\?\.]/.test(e))return c=e,"punctuation";if(e=="#")return t.skipToEnd(),"atom preprocessor";if(e=="%")return t.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(e))return t.eatWhile(/[\w\.]/),"number";if(e=="/"){if(t.eat("*"))return n.tokenize=k,k(t,n);if(t.eat("/"))return t.skipToEnd(),"comment"}if(O.test(e))return e=="@"&&(t.match("try")||t.match("catch")||t.match("lazy"))?"keyword":(t.eatWhile(O),"operator");t.eatWhile(/[\w\$_\xa1-\uffff]/);var r=t.current();return s.propertyIsEnumerable(r)?"keyword":d.propertyIsEnumerable(r)?"builtin":h.propertyIsEnumerable(r)?"def timerOps":M.propertyIsEnumerable(r)?"def configOps":S.propertyIsEnumerable(r)?"def verdictOps":v.propertyIsEnumerable(r)?"def portOps":z.propertyIsEnumerable(r)?"def sutOps":L.propertyIsEnumerable(r)?"def functionOps":C.propertyIsEnumerable(r)?"string verdictConsts":_.propertyIsEnumerable(r)?"string booleanConsts":j.propertyIsEnumerable(r)?"string otherConsts":P.propertyIsEnumerable(r)?"builtin types":W.propertyIsEnumerable(r)?"builtin visibilityModifiers":T.propertyIsEnumerable(r)?"atom templateMatch":"variable"}function D(t){return function(n,e){for(var r=!1,y,E=!1;(y=n.next())!=null;){if(y==t&&!r){var f=n.peek();f&&(f=f.toLowerCase(),(f=="b"||f=="h"||f=="o")&&n.next()),E=!0;break}r=!r&&y=="\\"}return(E||!(r||U))&&(e.tokenize=null),"string"}}function k(t,n){for(var e=!1,r;r=t.next();){if(r=="/"&&e){n.tokenize=null;break}e=r=="*"}return"comment"}function w(t,n,e,r,y){this.indented=t,this.column=n,this.type=e,this.align=r,this.prev=y}function x(t,n,e){var r=t.indented;return t.context&&t.context.type=="statement"&&(r=t.context.indented),t.context=new w(r,n,e,null,t.context)}function b(t){var n=t.context.type;return(n==")"||n=="]"||n=="}")&&(t.indented=t.context.indented),t.context=t.context.prev}return{startState:function(t){return{tokenize:null,context:new w((t||0)-p,0,"top",!1),indented:0,startOfLine:!0}},token:function(t,n){var e=n.context;if(t.sol()&&(e.align==null&&(e.align=!1),n.indented=t.indentation(),n.startOfLine=!0),t.eatSpace())return null;c=null;var r=(n.tokenize||A)(t,n);if(r=="comment")return r;if(e.align==null&&(e.align=!0),(c==";"||c==":"||c==",")&&e.type=="statement")b(n);else if(c=="{")x(n,t.column(),"}");else if(c=="[")x(n,t.column(),"]");else if(c=="(")x(n,t.column(),")");else if(c=="}"){for(;e.type=="statement";)e=b(n);for(e.type=="}"&&(e=b(n));e.type=="statement";)e=b(n)}else c==e.type?b(n):$&&((e.type=="}"||e.type=="top")&&c!=";"||e.type=="statement"&&c=="newstatement")&&x(n,t.column(),"statement");return n.startOfLine=!1,r},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function o(l){for(var i={},p=l.split(" "),s=0;sr[o]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(_,U){(function(C){C(p)})(function(C){C.defineMode("ttcn-cfg",function(o,E){var u=o.indentUnit,l=E.keywords||{},P=E.fileNCtrlMaskOptions||{},L=E.externalCommands||{},a=E.multiLineStrings,s=E.indentStatements!==!1,c=/[\|]/,i;function M(e,n){var t=e.next();if(t=='"'||t=="'")return n.tokenize=D(t),n.tokenize(e,n);if(/[:=]/.test(t))return i=t,"punctuation";if(t=="#")return e.skipToEnd(),"comment";if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(c.test(t))return e.eatWhile(c),"operator";if(t=="[")return e.eatWhile(/[\w_\]]/),"number sectionTitle";e.eatWhile(/[\w\$_]/);var T=e.current();return l.propertyIsEnumerable(T)?"keyword":P.propertyIsEnumerable(T)?"negative fileNCtrlMaskOptions":L.propertyIsEnumerable(T)?"negative externalCommands":"variable"}function D(e){return function(n,t){for(var T=!1,O,f=!1;(O=n.next())!=null;){if(O==e&&!T){var N=n.peek();N&&(N=N.toLowerCase(),(N=="b"||N=="h"||N=="o")&&n.next()),f=!0;break}T=!T&&O=="\\"}return(f||!(T||a))&&(t.tokenize=null),"string"}}function R(e,n,t,T,O){this.indented=e,this.column=n,this.type=t,this.align=T,this.prev=O}function A(e,n,t){var T=e.indented;return e.context&&e.context.type=="statement"&&(T=e.context.indented),e.context=new R(T,n,t,null,e.context)}function I(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new R((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;i=null;var T=(n.tokenize||M)(e,n);if(T=="comment")return T;if(t.align==null&&(t.align=!0),(i==";"||i==":"||i==",")&&t.type=="statement")I(n);else if(i=="{")A(n,e.column(),"}");else if(i=="[")A(n,e.column(),"]");else if(i=="(")A(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=I(n);for(t.type=="}"&&(t=I(n));t.type=="statement";)t=I(n)}else i==t.type?I(n):s&&((t.type=="}"||t.type=="top")&&i!=";"||t.type=="statement"&&i=="newstatement")&&A(n,e.column(),"statement");return n.startOfLine=!1,T},electricChars:"{}",lineComment:"#",fold:"brace"}});function r(o){for(var E={},u=o.split(" "),l=0;lr[o]})}}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(_,U){(function(C){C(p)})(function(C){C.defineMode("ttcn-cfg",function(o,E){var u=o.indentUnit,l=E.keywords||{},P=E.fileNCtrlMaskOptions||{},L=E.externalCommands||{},a=E.multiLineStrings,s=E.indentStatements!==!1,c=/[\|]/,i;function M(e,n){var t=e.next();if(t=='"'||t=="'")return n.tokenize=D(t),n.tokenize(e,n);if(/[:=]/.test(t))return i=t,"punctuation";if(t=="#")return e.skipToEnd(),"comment";if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(c.test(t))return e.eatWhile(c),"operator";if(t=="[")return e.eatWhile(/[\w_\]]/),"number sectionTitle";e.eatWhile(/[\w\$_]/);var T=e.current();return l.propertyIsEnumerable(T)?"keyword":P.propertyIsEnumerable(T)?"negative fileNCtrlMaskOptions":L.propertyIsEnumerable(T)?"negative externalCommands":"variable"}function D(e){return function(n,t){for(var T=!1,O,f=!1;(O=n.next())!=null;){if(O==e&&!T){var N=n.peek();N&&(N=N.toLowerCase(),(N=="b"||N=="h"||N=="o")&&n.next()),f=!0;break}T=!T&&O=="\\"}return(f||!(T||a))&&(t.tokenize=null),"string"}}function R(e,n,t,T,O){this.indented=e,this.column=n,this.type=t,this.align=T,this.prev=O}function A(e,n,t){var T=e.indented;return e.context&&e.context.type=="statement"&&(T=e.context.indented),e.context=new R(T,n,t,null,e.context)}function I(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new R((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align==null&&(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;i=null;var T=(n.tokenize||M)(e,n);if(T=="comment")return T;if(t.align==null&&(t.align=!0),(i==";"||i==":"||i==",")&&t.type=="statement")I(n);else if(i=="{")A(n,e.column(),"}");else if(i=="[")A(n,e.column(),"]");else if(i=="(")A(n,e.column(),")");else if(i=="}"){for(;t.type=="statement";)t=I(n);for(t.type=="}"&&(t=I(n));t.type=="statement";)t=I(n)}else i==t.type?I(n):s&&((t.type=="}"||t.type=="top")&&i!=";"||t.type=="statement"&&i=="newstatement")&&A(n,e.column(),"statement");return n.startOfLine=!1,T},electricChars:"{}",lineComment:"#",fold:"brace"}});function r(o){for(var E={},u=o.split(" "),l=0;ll[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(f,x){(function(i){i(b)})(function(i){i.defineMode("turtle",function(l){var c=l.indentUnit,o;function a(n){return new RegExp("^(?:"+n.join("|")+")$","i")}a([]);var h=a(["@prefix","@base","a"]),g=/[*+\-<>=&|]/;function v(n,e){var t=n.next();if(o=null,t=="<"&&!n.match(/^[\s\u00a0=]/,!1))return n.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return e.tokenize=k(t),e.tokenize(n,e);if(/[{}\(\),\.;\[\]]/.test(t))return o=t,null;if(t=="#")return n.skipToEnd(),"comment";if(g.test(t))return n.eatWhile(g),null;if(t==":")return"operator";if(n.eatWhile(/[_\w\d]/),n.peek()==":")return"variable-3";var r=n.current();return h.test(r)?"meta":t>="A"&&t<="Z"?"comment":"keyword";var r=n.current()}function k(n){return function(e,t){for(var r=!1,u;(u=e.next())!=null;){if(u==n&&!r){t.tokenize=v;break}r=!r&&u=="\\"}return"string"}}function p(n,e,t){n.context={prev:n.context,indent:n.indent,col:t,type:e}}function d(n){n.indent=n.context.indent,n.context=n.context.prev}return{startState:function(){return{tokenize:v,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!="comment"&&e.context&&e.context.align==null&&e.context.type!="pattern"&&(e.context.align=!0),o=="(")p(e,")",n.column());else if(o=="[")p(e,"]",n.column());else if(o=="{")p(e,"}",n.column());else if(/[\]\}\)]/.test(o)){for(;e.context&&e.context.type=="pattern";)d(e);e.context&&o==e.context.type&&d(e)}else o=="."&&e.context&&e.context.type=="pattern"?d(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?p(e,"pattern",n.column()):e.context.type=="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),r=n.context;if(/[\]\}]/.test(t))for(;r&&r.type=="pattern";)r=r.prev;var u=r&&t==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(u?0:1):r.indent+(u?0:c):0},lineComment:"#"}}),i.defineMIME("text/turtle","turtle")})})();var y=m.exports;const j=w(y),E=s({__proto__:null,default:j},[y]);export{E as t}; +import{g as w,c as b}from"./index-F8NPuhC5.js";function s(f,x){for(var i=0;il[c]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}};(function(f,x){(function(i){i(b)})(function(i){i.defineMode("turtle",function(l){var c=l.indentUnit,o;function a(n){return new RegExp("^(?:"+n.join("|")+")$","i")}a([]);var h=a(["@prefix","@base","a"]),g=/[*+\-<>=&|]/;function v(n,e){var t=n.next();if(o=null,t=="<"&&!n.match(/^[\s\u00a0=]/,!1))return n.match(/^[^\s\u00a0>]*>?/),"atom";if(t=='"'||t=="'")return e.tokenize=k(t),e.tokenize(n,e);if(/[{}\(\),\.;\[\]]/.test(t))return o=t,null;if(t=="#")return n.skipToEnd(),"comment";if(g.test(t))return n.eatWhile(g),null;if(t==":")return"operator";if(n.eatWhile(/[_\w\d]/),n.peek()==":")return"variable-3";var r=n.current();return h.test(r)?"meta":t>="A"&&t<="Z"?"comment":"keyword";var r=n.current()}function k(n){return function(e,t){for(var r=!1,u;(u=e.next())!=null;){if(u==n&&!r){t.tokenize=v;break}r=!r&&u=="\\"}return"string"}}function p(n,e,t){n.context={prev:n.context,indent:n.indent,col:t,type:e}}function d(n){n.indent=n.context.indent,n.context=n.context.prev}return{startState:function(){return{tokenize:v,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()&&(e.context&&e.context.align==null&&(e.context.align=!1),e.indent=n.indentation()),n.eatSpace())return null;var t=e.tokenize(n,e);if(t!="comment"&&e.context&&e.context.align==null&&e.context.type!="pattern"&&(e.context.align=!0),o=="(")p(e,")",n.column());else if(o=="[")p(e,"]",n.column());else if(o=="{")p(e,"}",n.column());else if(/[\]\}\)]/.test(o)){for(;e.context&&e.context.type=="pattern";)d(e);e.context&&o==e.context.type&&d(e)}else o=="."&&e.context&&e.context.type=="pattern"?d(e):/atom|string|variable/.test(t)&&e.context&&(/[\}\]]/.test(e.context.type)?p(e,"pattern",n.column()):e.context.type=="pattern"&&!e.context.align&&(e.context.align=!0,e.context.col=n.column()));return t},indent:function(n,e){var t=e&&e.charAt(0),r=n.context;if(/[\]\}]/.test(t))for(;r&&r.type=="pattern";)r=r.prev;var u=r&&t==r.type;return r?r.type=="pattern"?r.col:r.align?r.col+(u?0:1):r.indent+(u?0:c):0},lineComment:"#"}}),i.defineMIME("text/turtle","turtle")})})();var y=m.exports;const j=w(y),E=s({__proto__:null,default:j},[y]);export{E as t}; diff --git a/dist-ui/assets/twig-Bn-PQroe.js b/dist-ui/assets/twig-CYDhqQXR.js similarity index 94% rename from dist-ui/assets/twig-Bn-PQroe.js rename to dist-ui/assets/twig-CYDhqQXR.js index c95583bc..5f2a23e7 100644 --- a/dist-ui/assets/twig-Bn-PQroe.js +++ b/dist-ui/assets/twig-CYDhqQXR.js @@ -1 +1 @@ -import{g as s,c as p}from"./index-CFELAGmQ.js";import{r as b}from"./multiplex-CFyEzHyQ.js";function m(u,c){for(var i=0;it[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(u,c){(function(i){i(p,b())})(function(i){i.defineMode("twig:inner",function(){var t=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],r=/^[+\-*&%=<>!?|~^]/,o=/^[:\[\(\{]/,l=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],d=/^(\d[+\-\*\/])?\d+(\.\d+)?/;t=new RegExp("(("+t.join(")|(")+"))\\b"),l=new RegExp("(("+l.join(")|(")+"))\\b");function g(e,n){var f=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(l))return"atom";if(e.match(d))return"number"}if(n.sign){if(n.sign=!1,e.match(l))return"atom";if(e.match(d))return"number"}if(n.instring)return f==n.instring&&(n.instring=!1),e.next(),"string";if(f=="'"||f=='"')return n.instring=f,e.next(),"string";if(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))return n.intag=!1,"tag";if(e.match(r))return n.operator=!0,"operator";if(e.match(o))n.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(t))return"keyword";if(e.match(l))return"atom";if(e.match(d))return"number";e.sol()&&e.next()}else e.next();return"variable"}else if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(f=e.eat(/\{|%/))return n.intag=f,f=="{"&&(n.intag="}"),e.eat("-"),"tag"}e.next()}return{startState:function(){return{}},token:function(e,n){return g(e,n)}}}),i.defineMode("twig",function(t,r){var o=i.getMode(t,"twig:inner");return!r||!r.base?o:i.multiplexingMode(i.getMode(t,r.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:o,parseDelimiters:!0})}),i.defineMIME("text/x-twig","twig")})})();var a=x.exports;const h=s(a),v=m({__proto__:null,default:h},[a]);export{v as t}; +import{g as s,c as p}from"./index-F8NPuhC5.js";import{r as b}from"./multiplex-C8wCGfI5.js";function m(u,c){for(var i=0;it[r]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var x={exports:{}};(function(u,c){(function(i){i(p,b())})(function(i){i.defineMode("twig:inner",function(){var t=["and","as","autoescape","endautoescape","block","do","endblock","else","elseif","extends","for","endfor","embed","endembed","filter","endfilter","flush","from","if","endif","in","is","include","import","not","or","set","spaceless","endspaceless","with","endwith","trans","endtrans","blocktrans","endblocktrans","macro","endmacro","use","verbatim","endverbatim"],r=/^[+\-*&%=<>!?|~^]/,o=/^[:\[\(\{]/,l=["true","false","null","empty","defined","divisibleby","divisible by","even","odd","iterable","sameas","same as"],d=/^(\d[+\-\*\/])?\d+(\.\d+)?/;t=new RegExp("(("+t.join(")|(")+"))\\b"),l=new RegExp("(("+l.join(")|(")+"))\\b");function g(e,n){var f=e.peek();if(n.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(n.intag){if(n.operator){if(n.operator=!1,e.match(l))return"atom";if(e.match(d))return"number"}if(n.sign){if(n.sign=!1,e.match(l))return"atom";if(e.match(d))return"number"}if(n.instring)return f==n.instring&&(n.instring=!1),e.next(),"string";if(f=="'"||f=='"')return n.instring=f,e.next(),"string";if(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))return n.intag=!1,"tag";if(e.match(r))return n.operator=!0,"operator";if(e.match(o))n.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(t))return"keyword";if(e.match(l))return"atom";if(e.match(d))return"number";e.sol()&&e.next()}else e.next();return"variable"}else if(e.eat("{")){if(e.eat("#"))return n.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),n.incomment=!1):e.skipToEnd(),"comment";if(f=e.eat(/\{|%/))return n.intag=f,f=="{"&&(n.intag="}"),e.eat("-"),"tag"}e.next()}return{startState:function(){return{}},token:function(e,n){return g(e,n)}}}),i.defineMode("twig",function(t,r){var o=i.getMode(t,"twig:inner");return!r||!r.base?o:i.multiplexingMode(i.getMode(t,r.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:o,parseDelimiters:!0})}),i.defineMIME("text/x-twig","twig")})})();var a=x.exports;const h=s(a),v=m({__proto__:null,default:h},[a]);export{v as t}; diff --git a/dist-ui/assets/vb-B0_NIpfn.js b/dist-ui/assets/vb-j42w1Tl7.js similarity index 98% rename from dist-ui/assets/vb-B0_NIpfn.js rename to dist-ui/assets/vb-j42w1Tl7.js index bbf6b27b..9449f0f6 100644 --- a/dist-ui/assets/vb-B0_NIpfn.js +++ b/dist-ui/assets/vb-j42w1Tl7.js @@ -1 +1 @@ -import{g as U,c as $}from"./index-CFELAGmQ.js";function J(a,s){for(var o=0;oc[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(a,s){(function(o){o($)})(function(o){o.defineMode("vb",function(c,d){var u="error";function l(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var O=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),R=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),z=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),S=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),_=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),C=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],g=["else","elseif","case","catch","finally"],y=["next","loop"],b=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],j=l(b),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],x=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],F=l(w),T=l(x),A='"',D=l(h),m=l(g),k=l(y),I=l(["end"]),L=l(["do"]);o.registerHelper("hintWords","vb",h.concat(g).concat(y).concat(b).concat(w).concat(x));function p(e,n){n.currentIndent++}function f(e,n){n.currentIndent--}function v(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var t=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(t=!0),t)return e.eat(/J/i),"number";var i=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?i=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),i=!0):e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}return e.match(A)?(n.tokenize=K(e.current()),n.tokenize(e,n)):e.match(_)||e.match(S)?null:e.match(z)||e.match(O)||e.match(j)?"operator":e.match(R)?null:e.match(L)?(p(e,n),n.doInCurrentLine=!0,"keyword"):e.match(D)?(n.doInCurrentLine?n.doInCurrentLine=!1:p(e,n),"keyword"):e.match(m)?"keyword":e.match(I)?(f(e,n),f(e,n),"keyword"):e.match(k)?(f(e,n),"keyword"):e.match(T)||e.match(F)?"keyword":e.match(C)?"variable":(e.next(),u)}function K(e){var n=e.length==1,r="string";return function(t,i){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return i.tokenize=v,r;t.eat(/['"]/)}if(n){if(d.singleLineStringErrors)return u;i.tokenize=v}return r}}function P(e,n){var r=n.tokenize(e,n),t=e.current();if(t===".")return r=n.tokenize(e,n),r==="variable"?"variable":u;var i="[({".indexOf(t);return i!==-1&&p(e,n),i="])}".indexOf(t),i!==-1&&f(e,n)?u:r}var H={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:v,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=P(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(I)||r.match(m)?c.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*c.indentUnit},lineComment:"'"};return H}),o.defineMIME("text/x-vb","vb")})})();var E=M.exports;const W=U(E),B=J({__proto__:null,default:W},[E]);export{B as v}; +import{g as U,c as $}from"./index-F8NPuhC5.js";function J(a,s){for(var o=0;oc[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M={exports:{}};(function(a,s){(function(o){o($)})(function(o){o.defineMode("vb",function(c,d){var u="error";function l(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var O=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),R=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),z=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),S=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),_=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),C=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],g=["else","elseif","case","catch","finally"],y=["next","loop"],b=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],j=l(b),w=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],x=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],F=l(w),T=l(x),A='"',D=l(h),m=l(g),k=l(y),I=l(["end"]),L=l(["do"]);o.registerHelper("hintWords","vb",h.concat(g).concat(y).concat(b).concat(w).concat(x));function p(e,n){n.currentIndent++}function f(e,n){n.currentIndent--}function v(e,n){if(e.eatSpace())return null;var r=e.peek();if(r==="'")return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var t=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(t=!0),t)return e.eat(/J/i),"number";var i=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?i=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),i=!0):e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}return e.match(A)?(n.tokenize=K(e.current()),n.tokenize(e,n)):e.match(_)||e.match(S)?null:e.match(z)||e.match(O)||e.match(j)?"operator":e.match(R)?null:e.match(L)?(p(e,n),n.doInCurrentLine=!0,"keyword"):e.match(D)?(n.doInCurrentLine?n.doInCurrentLine=!1:p(e,n),"keyword"):e.match(m)?"keyword":e.match(I)?(f(e,n),f(e,n),"keyword"):e.match(k)?(f(e,n),"keyword"):e.match(T)||e.match(F)?"keyword":e.match(C)?"variable":(e.next(),u)}function K(e){var n=e.length==1,r="string";return function(t,i){for(;!t.eol();){if(t.eatWhile(/[^'"]/),t.match(e))return i.tokenize=v,r;t.eat(/['"]/)}if(n){if(d.singleLineStringErrors)return u;i.tokenize=v}return r}}function P(e,n){var r=n.tokenize(e,n),t=e.current();if(t===".")return r=n.tokenize(e,n),r==="variable"?"variable":u;var i="[({".indexOf(t);return i!==-1&&p(e,n),i="])}".indexOf(t),i!==-1&&f(e,n)?u:r}var H={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:v,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=P(e,n);return n.lastToken={style:r,content:e.current()},r},indent:function(e,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(I)||r.match(m)?c.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*c.indentUnit},lineComment:"'"};return H}),o.defineMIME("text/x-vb","vb")})})();var E=M.exports;const W=U(E),B=J({__proto__:null,default:W},[E]);export{B as v}; diff --git a/dist-ui/assets/vbscript-BWhXQrG-.js b/dist-ui/assets/vbscript-BsewLBA_.js similarity index 99% rename from dist-ui/assets/vbscript-BWhXQrG-.js rename to dist-ui/assets/vbscript-BsewLBA_.js index 9a210ac7..adf8fd8e 100644 --- a/dist-ui/assets/vbscript-BWhXQrG-.js +++ b/dist-ui/assets/vbscript-BsewLBA_.js @@ -1 +1 @@ -import{g as Q,c as X}from"./index-CFELAGmQ.js";function ee(b,s){for(var a=0;ao[u]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var re={exports:{}};(function(b,s){(function(a){a(X)})(function(a){a.defineMode("vbscript",function(o,u){var l="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var w=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),k=new RegExp("^((<>)|(<=)|(>=))"),O=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),I=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),S=["class","sub","select","while","if","function","property","with","for"],E=["else","elseif","case"],j=["next","loop","wend"],D=t(["and","or","not","xor","is","mod","eqv","imp"]),T=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],F=["true","false","nothing","empty","null"],L=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],R=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],v=["WScript","err","debug","RegExp"],z=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],W=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],A=["server","response","request","session","application"],B=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],K=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],d=W.concat(z);v=v.concat(R),o.isASP&&(v=v.concat(A),d=d.concat(K,B));var M=t(T),_=t(F),N=t(L),P=t(v),q=t(d),U='"',Y=t(S),g=t(E),y=t(j),h=t(["end"]),H=t(["do"]),J=t(["on error resume next","exit"]),V=t(["rem"]);function m(e,r){r.currentIndent++}function f(e,r){r.currentIndent--}function p(e,r){if(e.eatSpace())return"space";var n=e.peek();if(n==="'"||e.match(V))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(i=!0),i)return e.eat(/J/i),"number";var c=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?c=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),c=!0):e.match(/^0(?![\dx])/i)&&(c=!0),c)return e.eat(/L/i),"number"}return e.match(U)?(r.tokenize=$(e.current()),r.tokenize(e,r)):e.match(k)||e.match(w)||e.match(D)?"operator":e.match(O)?null:e.match(C)?"bracket":e.match(J)?(r.doInCurrentLine=!0,"keyword"):e.match(H)?(m(e,r),r.doInCurrentLine=!0,"keyword"):e.match(Y)?(r.doInCurrentLine?r.doInCurrentLine=!1:m(e,r),"keyword"):e.match(g)?"keyword":e.match(h)?(f(e,r),f(e,r),"keyword"):e.match(y)?(r.doInCurrentLine?r.doInCurrentLine=!1:f(e,r),"keyword"):e.match(M)?"keyword":e.match(_)?"atom":e.match(q)?"variable-2":e.match(N)?"builtin":e.match(P)?"variable-2":e.match(I)?"variable":(e.next(),l)}function $(e){var r=e.length==1,n="string";return function(i,c){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return c.tokenize=p,n;i.eat(/['"]/)}if(r){if(u.singleLineStringErrors)return l;c.tokenize=p}return n}}function G(e,r){var n=r.tokenize(e,r),i=e.current();return i==="."?(n=r.tokenize(e,r),i=e.current(),n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")?((n==="builtin"||n==="keyword")&&(n="variable"),d.indexOf(i.substr(1))>-1&&(n="variable-2"),n):l):n}var Z={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:p,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,r){e.sol()&&(r.currentIndent+=r.nextLineIndent,r.nextLineIndent=0,r.doInCurrentLine=0);var n=G(e,r);return r.lastToken={style:n,content:e.current()},n==="space"&&(n=null),n},indent:function(e,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match(y)||n.match(h)||n.match(g)?o.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*o.indentUnit}};return Z}),a.defineMIME("text/vbscript","vbscript")})})();var x=re.exports;const ne=Q(x),ie=ee({__proto__:null,default:ne},[x]);export{ie as v}; +import{g as Q,c as X}from"./index-F8NPuhC5.js";function ee(b,s){for(var a=0;ao[u]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var re={exports:{}};(function(b,s){(function(a){a(X)})(function(a){a.defineMode("vbscript",function(o,u){var l="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var w=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),k=new RegExp("^((<>)|(<=)|(>=))"),O=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),I=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),S=["class","sub","select","while","if","function","property","with","for"],E=["else","elseif","case"],j=["next","loop","wend"],D=t(["and","or","not","xor","is","mod","eqv","imp"]),T=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],F=["true","false","nothing","empty","null"],L=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],R=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],v=["WScript","err","debug","RegExp"],z=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],W=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],A=["server","response","request","session","application"],B=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],K=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],d=W.concat(z);v=v.concat(R),o.isASP&&(v=v.concat(A),d=d.concat(K,B));var M=t(T),_=t(F),N=t(L),P=t(v),q=t(d),U='"',Y=t(S),g=t(E),y=t(j),h=t(["end"]),H=t(["do"]),J=t(["on error resume next","exit"]),V=t(["rem"]);function m(e,r){r.currentIndent++}function f(e,r){r.currentIndent--}function p(e,r){if(e.eatSpace())return"space";var n=e.peek();if(n==="'"||e.match(V))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(i=!0),i)return e.eat(/J/i),"number";var c=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?c=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),c=!0):e.match(/^0(?![\dx])/i)&&(c=!0),c)return e.eat(/L/i),"number"}return e.match(U)?(r.tokenize=$(e.current()),r.tokenize(e,r)):e.match(k)||e.match(w)||e.match(D)?"operator":e.match(O)?null:e.match(C)?"bracket":e.match(J)?(r.doInCurrentLine=!0,"keyword"):e.match(H)?(m(e,r),r.doInCurrentLine=!0,"keyword"):e.match(Y)?(r.doInCurrentLine?r.doInCurrentLine=!1:m(e,r),"keyword"):e.match(g)?"keyword":e.match(h)?(f(e,r),f(e,r),"keyword"):e.match(y)?(r.doInCurrentLine?r.doInCurrentLine=!1:f(e,r),"keyword"):e.match(M)?"keyword":e.match(_)?"atom":e.match(q)?"variable-2":e.match(N)?"builtin":e.match(P)?"variable-2":e.match(I)?"variable":(e.next(),l)}function $(e){var r=e.length==1,n="string";return function(i,c){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return c.tokenize=p,n;i.eat(/['"]/)}if(r){if(u.singleLineStringErrors)return l;c.tokenize=p}return n}}function G(e,r){var n=r.tokenize(e,r),i=e.current();return i==="."?(n=r.tokenize(e,r),i=e.current(),n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")?((n==="builtin"||n==="keyword")&&(n="variable"),d.indexOf(i.substr(1))>-1&&(n="variable-2"),n):l):n}var Z={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:p,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,r){e.sol()&&(r.currentIndent+=r.nextLineIndent,r.nextLineIndent=0,r.doInCurrentLine=0);var n=G(e,r);return r.lastToken={style:n,content:e.current()},n==="space"&&(n=null),n},indent:function(e,r){var n=r.replace(/^\s+|\s+$/g,"");return n.match(y)||n.match(h)||n.match(g)?o.indentUnit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*o.indentUnit}};return Z}),a.defineMIME("text/vbscript","vbscript")})})();var x=re.exports;const ne=Q(x),ie=ee({__proto__:null,default:ne},[x]);export{ie as v}; diff --git a/dist-ui/assets/velocity-B6MaZAkd.js b/dist-ui/assets/velocity-Psz-M91k.js similarity index 98% rename from dist-ui/assets/velocity-B6MaZAkd.js rename to dist-ui/assets/velocity-Psz-M91k.js index 4c370d12..69b775fd 100644 --- a/dist-ui/assets/velocity-B6MaZAkd.js +++ b/dist-ui/assets/velocity-Psz-M91k.js @@ -1 +1 @@ -import{g as m,c as $}from"./index-CFELAGmQ.js";function W(u,p){for(var l=0;lt[a]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(u,p){(function(l){l($)})(function(l){l.defineMode("velocity",function(){function t(n){for(var e={},i=n.split(" "),r=0;r!?:\/|]/;function s(n,e,i){return e.tokenize=i,i(n,e)}function c(n,e){var i=e.beforeParams;e.beforeParams=!1;var r=n.next();if(r=="'"&&!e.inString&&e.inParams)return e.lastTokenWasBuiltin=!1,s(n,e,d(r));if(r=='"'){if(e.lastTokenWasBuiltin=!1,e.inString)return e.inString=!1,"string";if(e.inParams)return s(n,e,d(r))}else{if(/[\[\]{}\(\),;\.]/.test(r))return r=="("&&i?e.inParams=!0:r==")"&&(e.inParams=!1,e.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(/[\w\.]/),"number";if(r=="#"&&n.eat("*"))return e.lastTokenWasBuiltin=!1,s(n,e,y);if(r=="#"&&n.match(/ *\[ *\[/))return e.lastTokenWasBuiltin=!1,s(n,e,g);if(r=="#"&&n.eat("#"))return e.lastTokenWasBuiltin=!1,n.skipToEnd(),"comment";if(r=="$")return n.eat("!"),n.eatWhile(/[\w\d\$_\.{}-]/),h&&h.propertyIsEnumerable(n.current())?"keyword":(e.lastTokenWasBuiltin=!0,e.beforeParams=!0,"builtin");if(b.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(b),"operator";n.eatWhile(/[\w\$_{}@]/);var o=n.current();return a&&a.propertyIsEnumerable(o)?"keyword":f&&f.propertyIsEnumerable(o)||n.current().match(/^#@?[a-z0-9_]+ *$/i)&&n.peek()=="("&&!(f&&f.propertyIsEnumerable(o.toLowerCase()))?(e.beforeParams=!0,e.lastTokenWasBuiltin=!1,"keyword"):e.inString?(e.lastTokenWasBuiltin=!1,"string"):n.pos>o.length&&n.string.charAt(n.pos-o.length-1)=="."&&e.lastTokenWasBuiltin?"builtin":(e.lastTokenWasBuiltin=!1,null)}}function d(n){return function(e,i){for(var r=!1,o,k=!1;(o=e.next())!=null;){if(o==n&&!r){k=!0;break}if(n=='"'&&e.peek()=="$"&&!r){i.inString=!0,k=!0;break}r=!r&&o=="\\"}return k&&(i.tokenize=c),"string"}}function y(n,e){for(var i=!1,r;r=n.next();){if(r=="#"&&i){e.tokenize=c;break}i=r=="*"}return"comment"}function g(n,e){for(var i=0,r;r=n.next();){if(r=="#"&&i==2){e.tokenize=c;break}r=="]"?i++:r!=" "&&(i=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(n,e){return n.eatSpace()?null:e.tokenize(n,e)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),l.defineMIME("text/velocity","velocity")})})();var v=T.exports;const x=m(v),P=W({__proto__:null,default:x},[v]);export{P as v}; +import{g as m,c as $}from"./index-F8NPuhC5.js";function W(u,p){for(var l=0;lt[a]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(u,p){(function(l){l($)})(function(l){l.defineMode("velocity",function(){function t(n){for(var e={},i=n.split(" "),r=0;r!?:\/|]/;function s(n,e,i){return e.tokenize=i,i(n,e)}function c(n,e){var i=e.beforeParams;e.beforeParams=!1;var r=n.next();if(r=="'"&&!e.inString&&e.inParams)return e.lastTokenWasBuiltin=!1,s(n,e,d(r));if(r=='"'){if(e.lastTokenWasBuiltin=!1,e.inString)return e.inString=!1,"string";if(e.inParams)return s(n,e,d(r))}else{if(/[\[\]{}\(\),;\.]/.test(r))return r=="("&&i?e.inParams=!0:r==")"&&(e.inParams=!1,e.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(/[\w\.]/),"number";if(r=="#"&&n.eat("*"))return e.lastTokenWasBuiltin=!1,s(n,e,y);if(r=="#"&&n.match(/ *\[ *\[/))return e.lastTokenWasBuiltin=!1,s(n,e,g);if(r=="#"&&n.eat("#"))return e.lastTokenWasBuiltin=!1,n.skipToEnd(),"comment";if(r=="$")return n.eat("!"),n.eatWhile(/[\w\d\$_\.{}-]/),h&&h.propertyIsEnumerable(n.current())?"keyword":(e.lastTokenWasBuiltin=!0,e.beforeParams=!0,"builtin");if(b.test(r))return e.lastTokenWasBuiltin=!1,n.eatWhile(b),"operator";n.eatWhile(/[\w\$_{}@]/);var o=n.current();return a&&a.propertyIsEnumerable(o)?"keyword":f&&f.propertyIsEnumerable(o)||n.current().match(/^#@?[a-z0-9_]+ *$/i)&&n.peek()=="("&&!(f&&f.propertyIsEnumerable(o.toLowerCase()))?(e.beforeParams=!0,e.lastTokenWasBuiltin=!1,"keyword"):e.inString?(e.lastTokenWasBuiltin=!1,"string"):n.pos>o.length&&n.string.charAt(n.pos-o.length-1)=="."&&e.lastTokenWasBuiltin?"builtin":(e.lastTokenWasBuiltin=!1,null)}}function d(n){return function(e,i){for(var r=!1,o,k=!1;(o=e.next())!=null;){if(o==n&&!r){k=!0;break}if(n=='"'&&e.peek()=="$"&&!r){i.inString=!0,k=!0;break}r=!r&&o=="\\"}return k&&(i.tokenize=c),"string"}}function y(n,e){for(var i=!1,r;r=n.next();){if(r=="#"&&i){e.tokenize=c;break}i=r=="*"}return"comment"}function g(n,e){for(var i=0,r;r=n.next();){if(r=="#"&&i==2){e.tokenize=c;break}r=="]"?i++:r!=" "&&(i=0)}return"meta"}return{startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(n,e){return n.eatSpace()?null:e.tokenize(n,e)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),l.defineMIME("text/velocity","velocity")})})();var v=T.exports;const x=m(v),P=W({__proto__:null,default:x},[v]);export{P as v}; diff --git a/dist-ui/assets/verilog-6V47m65h.js b/dist-ui/assets/verilog-934pOG4C.js similarity index 99% rename from dist-ui/assets/verilog-6V47m65h.js rename to dist-ui/assets/verilog-934pOG4C.js index 75586479..0baf8573 100644 --- a/dist-ui/assets/verilog-6V47m65h.js +++ b/dist-ui/assets/verilog-934pOG4C.js @@ -1 +1 @@ -import{g as oe,c as ae}from"./index-CFELAGmQ.js";function ce(S,L){for(var p=0;ph[m]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var fe={exports:{}};(function(S,L){(function(p){p(ae)})(function(p){p.defineMode("verilog",function(i,l){var a=i.indentUnit,f=l.statementIndentUnit||a,x=l.dontAlignCalls,k=l.compilerDirectivesUseRegularIndentation,z=l.noIndentKeywords||[],_=l.multiLineStrings,v=l.hooks||{};function b(e){for(var t={},n=e.split(" "),r=0;r]/,O=/[\[\]{}()]/,J=/\d[0-9_]*/,Q=/\d*\s*'s?d\s*\d[0-9_]*/i,X=/\d*\s*'s?b\s*[xz01][xz01_]*/i,Y=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,Z=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,U=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,H=/^((`?\w+)|[)}\]])/,M=/[)}\]]/,A=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),ee=/^(`(?:ifdef|ifndef|elsif|else))\b/,W=/^(`(?:elsif|else|endif))\b/,c,d,ne=b("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),u={};for(var I in ne)u[I]="end"+I;u.begin="end",u.casex="endcase",u.casez="endcase",u.do="while",u.fork="join;join_any;join_none",u.covergroup="endgroup",u.macro_begin="macro_end";for(var te in z){var I=z[te];u[I]&&(u[I]=void 0)}var ie=b("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function j(e,t){var n=e.peek(),r;if(v[n]&&(r=v[n](e,t))!=!1||v.tokenBase&&(r=v.tokenBase(e,t))!=!1)return r;if(/[,;:\.]/.test(n))return c=e.next(),null;if(O.test(n))return c=e.next(),"bracket";if(n=="`")if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(d=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var s=d.substr(0,d.length-5)+"end";u[o]=s,c="newblock"}else{e.eatSpace(),e.peek()=="("&&(c="newmacro");var B=e.current();e.backUp(B.length-o.length)}return"def"}else return null;if(n=="$")return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if(n=="#")return e.next(),e.eatWhile(/[\d_.]/),"def";if(n=="@")return e.next(),e.eatWhile(/[@]/),"def";if(n=='"')return e.next(),t.tokenize=re(n),t.tokenize(e,t);if(n=="/"){if(e.next(),e.eat("*"))return t.tokenize=q,q(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(U)||e.match(Q)||e.match(X)||e.match(Y)||e.match(Z)||e.match(J)||e.match(U))return"number";if(e.eatWhile(E))return c=e.current(),"meta";if(e.eatWhile(/[\w\$_]/)){var o=e.current();return $[o]?(u[o]&&(c="newblock",o==="fork"&&(e.eatSpace(),e.peek()==";"&&(c="newstatement"),e.backUp(e.current().length-o.length))),ie[o]&&(c="newstatement"),d=o,"keyword"):"variable"}return e.next(),null}function re(e){return function(t,n){for(var r=!1,o,s=!1;(o=t.next())!=null;){if(o==e&&!r){s=!0;break}r=!r&&o=="\\"}return(s||!(r||_))&&(n.tokenize=j),"string"}}function q(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=j;break}n=r=="*"}return"comment"}function R(e,t,n,r,o,s){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=o,this.prev=s}function y(e,t,n,r){var o=e.indented,s=new R(o,t,n,r||"",null,e.context);return e.context=s}function w(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function T(e,t){return e==null?!1:e.scopekind===t?!0:T(e.prev,t)}function le(){var e=[];for(var t in u)if(u[t]){var n=u[t].split(";");for(var r in n)e.push(n[r])}var o=new RegExp("[{}()\\[\\]]|("+e.join("|")+")$");return o}return{electricInput:le(),startState:function(e){var t={tokenize:null,context:new R((e||0)-a,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return v.startState&&v.startState(t),t},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),v.token){var r=v.token(e,t);if(r!==void 0)return r}if(e.eatSpace())return null;c=null,d=null;var r=(t.tokenize||j)(e,t);if(r=="comment"||r=="meta"||r=="variable")return(c==="="||c==="<=")&&!T(n,"assignment")&&(y(t,e.column()+c.length,"assignment","assignment"),n.align==null&&(n.align=!0)),r;n.align==null&&(n.align=!0);var o=n.type=="assignment"&&M.test(c)&&n.prev&&n.prev.type===c;if(c==n.type||o){if(o&&(n=w(t)),n=w(t),c==")"){if(n&&n.type==="macro")for(n=w(t);n&&(n.type=="statement"||n.type=="assignment");)n=w(t)}else if(c=="}"&&n&&n.type==="statement")for(;n&&n.type=="statement";)n=w(t)}else if((c==";"||c==",")&&(n.type=="statement"||n.type=="assignment")||n.type&&N(d,n.type))for(n=w(t);n&&(n.type=="statement"||n.type=="assignment");)n=w(t);else if(c=="{")y(t,e.column(),"}");else if(c=="[")y(t,e.column(),"]");else if(c=="(")y(t,e.column(),")");else if(n&&n.type=="endcase"&&c==":")y(t,e.column(),"statement","case");else if(c=="newstatement")y(t,e.column(),"statement",d);else if(c=="newblock"){if(!(d=="function"&&n&&(n.type=="statement"||n.type=="endgroup"))){if(!(d=="task"&&n&&n.type=="statement")){if(!(d=="class"&&n&&n.type=="statement")){var s=u[d];y(t,e.column(),s,d)}}}}else(c=="newmacro"||d&&d.match(A))&&(c=="newmacro"&&y(t,e.column(),"macro","macro"),d.match(W)&&(t.compilerDirectiveIndented-=f),d.match(ee)&&(t.compilerDirectiveIndented+=f));return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=j&&e.tokenize!=null)return p.Pass;if(v.indent){var n=v.indent(e);if(n>=0)return n}var r=e.context,o=t&&t.charAt(0);r.type=="statement"&&o=="}"&&(r=r.prev);var s=!1,B=t.match(H);return B&&(s=N(B[0],r.type)),!k&&t.match(A)?t.match(W)?e.compilerDirectiveIndented-f:e.compilerDirectiveIndented:r.type=="statement"?r.indented+(o=="{"?0:f):(M.test(r.type)||r.type=="assignment")&&r.align&&!x?r.column+(s?0:1):r.type==")"&&!s?r.indented+f:r.indented+(s?0:a)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),p.defineMIME("text/x-verilog",{name:"verilog"}),p.defineMIME("text/x-systemverilog",{name:"verilog"});var h={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},m={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},g=3,D=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,P=/^[! ] /,F=/^[! ] */,V=/^\/[\/\*]/;function C(i,l,a){var f=l/g;return"tlv-"+i.tlvIndentationStyle[f]+"-"+a}function G(i){var l;return(l=i.match(D,!1))&&l[2].length>0}p.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(i,l){var a=void 0,f;if(i.sol()&&!l.tlvInBlockComment){i.peek()=="\\"&&(a="def",i.skipToEnd(),i.string.match(/\\SV/)?l.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&i.pos==0&&l.indented==0&&(f=i.match(F,!1))&&(l.indented=f[0].length);var x=l.indented,k=x/g;if(k<=l.tlvIndentationStyle.length){var z=i.string.length==x,_=k*g;if(_0||(l.tlvIndentationStyle[k]=m[b],k++))}if(!z)for(;l.tlvIndentationStyle.length>k;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=x}if(l.tlvCodeActive){var $=!1,f;if(a!==void 0)a+=" "+C(l,0,"scope-ident");else if(i.pos/g0||i.eol())?(a=h[E],i.column()==l.indented&&(a+=" "+C(l,i.column(),"scope-ident"))):(i.backUp(i.current().length-1),a="tlv-default")}else i.match(/^\t+/)?a="tlv-tab":i.match(/^[\[\]{}\(\);\:]+/)?a="meta":(f=i.match(/^[mM]4([\+_])?[\w\d_]*/))?a=f[1]=="+"?"tlv-m4-plus":"tlv-m4":i.match(/^ +/)?i.eol()?a="error":a="tlv-default":i.match(/^[\w\d_]+/)?a="number":(i.next(),a="tlv-default");$&&(a+=" tlv-statement")}else i.match(/^[mM]4([\w\d_]*)/)&&(a="tlv-m4");return a},indent:function(i){return i.tlvCodeActive==!0?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1}}})})})();var K=fe.exports;const de=oe(K),se=ce({__proto__:null,default:de},[K]);export{se as v}; +import{g as oe,c as ae}from"./index-F8NPuhC5.js";function ce(S,L){for(var p=0;ph[m]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var fe={exports:{}};(function(S,L){(function(p){p(ae)})(function(p){p.defineMode("verilog",function(i,l){var a=i.indentUnit,f=l.statementIndentUnit||a,x=l.dontAlignCalls,k=l.compilerDirectivesUseRegularIndentation,z=l.noIndentKeywords||[],_=l.multiLineStrings,v=l.hooks||{};function b(e){for(var t={},n=e.split(" "),r=0;r]/,O=/[\[\]{}()]/,J=/\d[0-9_]*/,Q=/\d*\s*'s?d\s*\d[0-9_]*/i,X=/\d*\s*'s?b\s*[xz01][xz01_]*/i,Y=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,Z=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,U=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,H=/^((`?\w+)|[)}\]])/,M=/[)}\]]/,A=new RegExp("^(`(?:ifdef|ifndef|elsif|else|endif|undef|undefineall|define|include|begin_keywords|celldefine|default|nettype|end_keywords|endcelldefine|line|nounconnected_drive|pragma|resetall|timescale|unconnected_drive))\\b"),ee=/^(`(?:ifdef|ifndef|elsif|else))\b/,W=/^(`(?:elsif|else|endif))\b/,c,d,ne=b("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),u={};for(var I in ne)u[I]="end"+I;u.begin="end",u.casex="endcase",u.casez="endcase",u.do="while",u.fork="join;join_any;join_none",u.covergroup="endgroup",u.macro_begin="macro_end";for(var te in z){var I=z[te];u[I]&&(u[I]=void 0)}var ie=b("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while extern typedef");function j(e,t){var n=e.peek(),r;if(v[n]&&(r=v[n](e,t))!=!1||v.tokenBase&&(r=v.tokenBase(e,t))!=!1)return r;if(/[,;:\.]/.test(n))return c=e.next(),null;if(O.test(n))return c=e.next(),"bracket";if(n=="`")if(e.next(),e.eatWhile(/[\w\$_]/)){var o=e.current();if(d=o,o.startsWith("`uvm_")&&o.endsWith("_begin")){var s=d.substr(0,d.length-5)+"end";u[o]=s,c="newblock"}else{e.eatSpace(),e.peek()=="("&&(c="newmacro");var B=e.current();e.backUp(B.length-o.length)}return"def"}else return null;if(n=="$")return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if(n=="#")return e.next(),e.eatWhile(/[\d_.]/),"def";if(n=="@")return e.next(),e.eatWhile(/[@]/),"def";if(n=='"')return e.next(),t.tokenize=re(n),t.tokenize(e,t);if(n=="/"){if(e.next(),e.eat("*"))return t.tokenize=q,q(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(U)||e.match(Q)||e.match(X)||e.match(Y)||e.match(Z)||e.match(J)||e.match(U))return"number";if(e.eatWhile(E))return c=e.current(),"meta";if(e.eatWhile(/[\w\$_]/)){var o=e.current();return $[o]?(u[o]&&(c="newblock",o==="fork"&&(e.eatSpace(),e.peek()==";"&&(c="newstatement"),e.backUp(e.current().length-o.length))),ie[o]&&(c="newstatement"),d=o,"keyword"):"variable"}return e.next(),null}function re(e){return function(t,n){for(var r=!1,o,s=!1;(o=t.next())!=null;){if(o==e&&!r){s=!0;break}r=!r&&o=="\\"}return(s||!(r||_))&&(n.tokenize=j),"string"}}function q(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=j;break}n=r=="*"}return"comment"}function R(e,t,n,r,o,s){this.indented=e,this.column=t,this.type=n,this.scopekind=r,this.align=o,this.prev=s}function y(e,t,n,r){var o=e.indented,s=new R(o,t,n,r||"",null,e.context);return e.context=s}function w(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function N(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function T(e,t){return e==null?!1:e.scopekind===t?!0:T(e.prev,t)}function le(){var e=[];for(var t in u)if(u[t]){var n=u[t].split(";");for(var r in n)e.push(n[r])}var o=new RegExp("[{}()\\[\\]]|("+e.join("|")+")$");return o}return{electricInput:le(),startState:function(e){var t={tokenize:null,context:new R((e||0)-a,0,"top","top",!1),indented:0,compilerDirectiveIndented:0,startOfLine:!0};return v.startState&&v.startState(t),t},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),v.token){var r=v.token(e,t);if(r!==void 0)return r}if(e.eatSpace())return null;c=null,d=null;var r=(t.tokenize||j)(e,t);if(r=="comment"||r=="meta"||r=="variable")return(c==="="||c==="<=")&&!T(n,"assignment")&&(y(t,e.column()+c.length,"assignment","assignment"),n.align==null&&(n.align=!0)),r;n.align==null&&(n.align=!0);var o=n.type=="assignment"&&M.test(c)&&n.prev&&n.prev.type===c;if(c==n.type||o){if(o&&(n=w(t)),n=w(t),c==")"){if(n&&n.type==="macro")for(n=w(t);n&&(n.type=="statement"||n.type=="assignment");)n=w(t)}else if(c=="}"&&n&&n.type==="statement")for(;n&&n.type=="statement";)n=w(t)}else if((c==";"||c==",")&&(n.type=="statement"||n.type=="assignment")||n.type&&N(d,n.type))for(n=w(t);n&&(n.type=="statement"||n.type=="assignment");)n=w(t);else if(c=="{")y(t,e.column(),"}");else if(c=="[")y(t,e.column(),"]");else if(c=="(")y(t,e.column(),")");else if(n&&n.type=="endcase"&&c==":")y(t,e.column(),"statement","case");else if(c=="newstatement")y(t,e.column(),"statement",d);else if(c=="newblock"){if(!(d=="function"&&n&&(n.type=="statement"||n.type=="endgroup"))){if(!(d=="task"&&n&&n.type=="statement")){if(!(d=="class"&&n&&n.type=="statement")){var s=u[d];y(t,e.column(),s,d)}}}}else(c=="newmacro"||d&&d.match(A))&&(c=="newmacro"&&y(t,e.column(),"macro","macro"),d.match(W)&&(t.compilerDirectiveIndented-=f),d.match(ee)&&(t.compilerDirectiveIndented+=f));return t.startOfLine=!1,r},indent:function(e,t){if(e.tokenize!=j&&e.tokenize!=null)return p.Pass;if(v.indent){var n=v.indent(e);if(n>=0)return n}var r=e.context,o=t&&t.charAt(0);r.type=="statement"&&o=="}"&&(r=r.prev);var s=!1,B=t.match(H);return B&&(s=N(B[0],r.type)),!k&&t.match(A)?t.match(W)?e.compilerDirectiveIndented-f:e.compilerDirectiveIndented:r.type=="statement"?r.indented+(o=="{"?0:f):(M.test(r.type)||r.type=="assignment")&&r.align&&!x?r.column+(s?0:1):r.type==")"&&!s?r.indented+f:r.indented+(s?0:a)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}}),p.defineMIME("text/x-verilog",{name:"verilog"}),p.defineMIME("text/x-systemverilog",{name:"verilog"});var h={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},m={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},g=3,D=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,P=/^[! ] /,F=/^[! ] */,V=/^\/[\/\*]/;function C(i,l,a){var f=l/g;return"tlv-"+i.tlvIndentationStyle[f]+"-"+a}function G(i){var l;return(l=i.match(D,!1))&&l[2].length>0}p.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(i,l){var a=void 0,f;if(i.sol()&&!l.tlvInBlockComment){i.peek()=="\\"&&(a="def",i.skipToEnd(),i.string.match(/\\SV/)?l.tlvCodeActive=!1:i.string.match(/\\TLV/)&&(l.tlvCodeActive=!0)),l.tlvCodeActive&&i.pos==0&&l.indented==0&&(f=i.match(F,!1))&&(l.indented=f[0].length);var x=l.indented,k=x/g;if(k<=l.tlvIndentationStyle.length){var z=i.string.length==x,_=k*g;if(_0||(l.tlvIndentationStyle[k]=m[b],k++))}if(!z)for(;l.tlvIndentationStyle.length>k;)l.tlvIndentationStyle.pop()}l.tlvNextIndent=x}if(l.tlvCodeActive){var $=!1,f;if(a!==void 0)a+=" "+C(l,0,"scope-ident");else if(i.pos/g0||i.eol())?(a=h[E],i.column()==l.indented&&(a+=" "+C(l,i.column(),"scope-ident"))):(i.backUp(i.current().length-1),a="tlv-default")}else i.match(/^\t+/)?a="tlv-tab":i.match(/^[\[\]{}\(\);\:]+/)?a="meta":(f=i.match(/^[mM]4([\+_])?[\w\d_]*/))?a=f[1]=="+"?"tlv-m4-plus":"tlv-m4":i.match(/^ +/)?i.eol()?a="error":a="tlv-default":i.match(/^[\w\d_]+/)?a="number":(i.next(),a="tlv-default");$&&(a+=" tlv-statement")}else i.match(/^[mM]4([\w\d_]*)/)&&(a="tlv-m4");return a},indent:function(i){return i.tlvCodeActive==!0?i.tlvNextIndent:-1},startState:function(i){i.tlvIndentationStyle=[],i.tlvCodeActive=!0,i.tlvNextIndent=-1,i.tlvInBlockComment=!1}}})})})();var K=fe.exports;const de=oe(K),se=ce({__proto__:null,default:de},[K]);export{se as v}; diff --git a/dist-ui/assets/vhdl-D5SeExP5.js b/dist-ui/assets/vhdl-DT6DHhYu.js similarity index 98% rename from dist-ui/assets/vhdl-D5SeExP5.js rename to dist-ui/assets/vhdl-DT6DHhYu.js index 97e92064..748b09fb 100644 --- a/dist-ui/assets/vhdl-D5SeExP5.js +++ b/dist-ui/assets/vhdl-DT6DHhYu.js @@ -1 +1 @@ -import{g as C,c as _}from"./index-CFELAGmQ.js";function L(g,b){for(var f=0;fl[a]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(g,b){(function(f){f(_)})(function(f){function l(u){for(var s={},c=u.split(","),d=0;dl[a]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(g,b){(function(f){f(_)})(function(f){function l(u){for(var s={},c=u.split(","),d=0;ds[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(r,p){(function(e){e(u,x(),c(),f(),m,g,v,y,d,$)})(function(e){var s={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};e.defineMode("vue-template",function(t,a){var i={token:function(l){if(l.match(/^\{\{.*?\}\}/))return"meta mustache";for(;l.next()&&!l.match("{{",!1););return null}};return e.overlayMode(e.getMode(t,a.backdrop||"text/html"),i)}),e.defineMode("vue",function(t){return e.getMode(t,{name:"htmlmixed",tags:s})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),e.defineMIME("script/x-vue","vue"),e.defineMIME("text/x-vue","vue")})})();var o=h.exports;const E=n(o),A=b({__proto__:null,default:E},[o]);export{A as v}; +import{g as n,c as u,r as c,a as f}from"./index-F8NPuhC5.js";import{r as x}from"./overlay-DMs7bKVk.js";import{a as m}from"./coffeescript-DBSS_8nW.js";import{a as g}from"./css-DjQyQoVX.js";import{a as v}from"./sass-NOE7V4J8.js";import{a as y}from"./stylus-DWX0hVte.js";import{a as d}from"./pug-Bb9DWsBH.js";import{a as $}from"./handlebars-Ccn22PqS.js";function b(r,p){for(var e=0;es[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(r,p){(function(e){e(u,x(),c(),f(),m,g,v,y,d,$)})(function(e){var s={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};e.defineMode("vue-template",function(t,a){var i={token:function(l){if(l.match(/^\{\{.*?\}\}/))return"meta mustache";for(;l.next()&&!l.match("{{",!1););return null}};return e.overlayMode(e.getMode(t,a.backdrop||"text/html"),i)}),e.defineMode("vue",function(t){return e.getMode(t,{name:"htmlmixed",tags:s})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),e.defineMIME("script/x-vue","vue"),e.defineMIME("text/x-vue","vue")})})();var o=h.exports;const E=n(o),A=b({__proto__:null,default:E},[o]);export{A as v}; diff --git a/dist-ui/assets/wast-DIERJQig.js b/dist-ui/assets/wast-C0T_jfne.js similarity index 98% rename from dist-ui/assets/wast-DIERJQig.js rename to dist-ui/assets/wast-C0T_jfne.js index f78f847d..581870f1 100644 --- a/dist-ui/assets/wast-DIERJQig.js +++ b/dist-ui/assets/wast-C0T_jfne.js @@ -1 +1 @@ -import{g as i,c as _,b as l}from"./index-CFELAGmQ.js";function x(n,o){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(n,o){(function(e){e(_,l())})(function(e){var t=["align","block","br(_if|_table|_on_(cast|data|func|i31|null))?","call(_indirect|_ref)?","current_memory","\\bdata\\b","catch(_all)?","delegate","drop","elem","else","end","export","\\bextern\\b","\\bfunc\\b","global(\\.(get|set))?","if","import","local(\\.(get|set|tee))?","loop","module","mut","nop","offset","param","result","rethrow","return(_call(_indirect|_ref)?)?","select","start","table(\\.(size|get|set|size|grow|fill|init|copy))?","then","throw","try","type","unreachable","unwind","i(32|64)\\.(store(8|16)|(load(8|16)_[su]))","i64\\.(load32_[su]|store32)","[fi](32|64)\\.(const|load|store)","f(32|64)\\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)","i(32|64)\\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)","i64\\.extend_[su]_i32","i32\\.wrap_i64","i(32|64)\\.trunc_f(32|64)_[su]","f(32|64)\\.convert_i(32|64)_[su]","f64\\.promote_f32","f32\\.demote_f64","f32\\.reinterpret_i32","i32\\.reinterpret_f32","f64\\.reinterpret_i64","i64\\.reinterpret_f64","memory(\\.((atomic\\.(notify|wait(32|64)))|grow|size))?","i64.atomic\\.(load32_u|store32|rmw32\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)","i(32|64)\\.atomic\\.(load((8|16)_u)?|store(8|16)?|rmw(\\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))","v128\\.load(8x8|16x4|32x2)_[su]","v128\\.load(8|16|32|64)_splat","v128\\.(load|store)(8|16|32|64)_lane","v128\\.load(32|64)_zero","v128.(load|store|const|not|andnot|and|or|xor|bitselect|any_true)","i(8x16|16x8)\\.(extract_lane_[su]|(add|sub)_sat_[su]|avgr_u)","i(8x16|16x8|32x4|64x2)\\.(neg|add|sub|abs|shl|shr_[su]|all_true|bitmask|eq|ne|[lg][te]_s)","(i(8x16|16x8|32x4|64x2)|f(32x4|64x2)).(splat|replace_lane)","i(8x16|16x8|32x4)\\.(([lg][te]_u)|((min|max)_[su]))","f(32x4|64x2)\\.(neg|add|sub|abs|nearest|eq|ne|[lg][te]|sqrt|mul|div|min|max|ceil|floor|trunc)","[fi](32x4|64x2)\\.extract_lane","i8x16\\.(shuffle|swizzle|popcnt|narrow_i16x8_[su])","i16x8\\.(narrow_i32x4_[su]|mul|extadd_pairwise_i8x16_[su]|q15mulr_sat_s)","i16x8\\.(extend|extmul)_(low|high)_i8x16_[su]","i32x4\\.(mul|dot_i16x8_s|trunc_sat_f64x2_[su]_zero)","i32x4\\.((extend|extmul)_(low|high)_i16x8_|trunc_sat_f32x4_|extadd_pairwise_i16x8_)[su]","i64x2\\.(mul|(extend|extmul)_(low|high)_i32x4_[su])","f32x4\\.(convert_i32x4_[su]|demote_f64x2_zero)","f64x2\\.(promote_low_f32x4|convert_low_i32x4_[su])","\\bany\\b","array\\.len","(array|struct)(\\.(new_(default_)?with_rtt|get(_[su])?|set))?","\\beq\\b","field","i31\\.(new|get_[su])","\\bnull\\b","ref(\\.(([ai]s_(data|func|i31))|cast|eq|func|(is_|as_non_)?null|test))?","rtt(\\.(canon|sub))?"];e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:new RegExp(t.join("|")),token:"keyword"},{regex:/\b((any|data|eq|extern|i31|func)ref|[fi](32|64)|i(8|16))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")})})();var s=u.exports;const d=i(s),f=x({__proto__:null,default:d},[s]);export{f as w}; +import{g as i,c as _,b as l}from"./index-F8NPuhC5.js";function x(n,o){for(var e=0;et[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}};(function(n,o){(function(e){e(_,l())})(function(e){var t=["align","block","br(_if|_table|_on_(cast|data|func|i31|null))?","call(_indirect|_ref)?","current_memory","\\bdata\\b","catch(_all)?","delegate","drop","elem","else","end","export","\\bextern\\b","\\bfunc\\b","global(\\.(get|set))?","if","import","local(\\.(get|set|tee))?","loop","module","mut","nop","offset","param","result","rethrow","return(_call(_indirect|_ref)?)?","select","start","table(\\.(size|get|set|size|grow|fill|init|copy))?","then","throw","try","type","unreachable","unwind","i(32|64)\\.(store(8|16)|(load(8|16)_[su]))","i64\\.(load32_[su]|store32)","[fi](32|64)\\.(const|load|store)","f(32|64)\\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)","i(32|64)\\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)","i64\\.extend_[su]_i32","i32\\.wrap_i64","i(32|64)\\.trunc_f(32|64)_[su]","f(32|64)\\.convert_i(32|64)_[su]","f64\\.promote_f32","f32\\.demote_f64","f32\\.reinterpret_i32","i32\\.reinterpret_f32","f64\\.reinterpret_i64","i64\\.reinterpret_f64","memory(\\.((atomic\\.(notify|wait(32|64)))|grow|size))?","i64.atomic\\.(load32_u|store32|rmw32\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)","i(32|64)\\.atomic\\.(load((8|16)_u)?|store(8|16)?|rmw(\\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))","v128\\.load(8x8|16x4|32x2)_[su]","v128\\.load(8|16|32|64)_splat","v128\\.(load|store)(8|16|32|64)_lane","v128\\.load(32|64)_zero","v128.(load|store|const|not|andnot|and|or|xor|bitselect|any_true)","i(8x16|16x8)\\.(extract_lane_[su]|(add|sub)_sat_[su]|avgr_u)","i(8x16|16x8|32x4|64x2)\\.(neg|add|sub|abs|shl|shr_[su]|all_true|bitmask|eq|ne|[lg][te]_s)","(i(8x16|16x8|32x4|64x2)|f(32x4|64x2)).(splat|replace_lane)","i(8x16|16x8|32x4)\\.(([lg][te]_u)|((min|max)_[su]))","f(32x4|64x2)\\.(neg|add|sub|abs|nearest|eq|ne|[lg][te]|sqrt|mul|div|min|max|ceil|floor|trunc)","[fi](32x4|64x2)\\.extract_lane","i8x16\\.(shuffle|swizzle|popcnt|narrow_i16x8_[su])","i16x8\\.(narrow_i32x4_[su]|mul|extadd_pairwise_i8x16_[su]|q15mulr_sat_s)","i16x8\\.(extend|extmul)_(low|high)_i8x16_[su]","i32x4\\.(mul|dot_i16x8_s|trunc_sat_f64x2_[su]_zero)","i32x4\\.((extend|extmul)_(low|high)_i16x8_|trunc_sat_f32x4_|extadd_pairwise_i16x8_)[su]","i64x2\\.(mul|(extend|extmul)_(low|high)_i32x4_[su])","f32x4\\.(convert_i32x4_[su]|demote_f64x2_zero)","f64x2\\.(promote_low_f32x4|convert_low_i32x4_[su])","\\bany\\b","array\\.len","(array|struct)(\\.(new_(default_)?with_rtt|get(_[su])?|set))?","\\beq\\b","field","i31\\.(new|get_[su])","\\bnull\\b","ref(\\.(([ai]s_(data|func|i31))|cast|eq|func|(is_|as_non_)?null|test))?","rtt(\\.(canon|sub))?"];e.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:new RegExp(t.join("|")),token:"keyword"},{regex:/\b((any|data|eq|extern|i31|func)ref|[fi](32|64)|i(8|16))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}}),e.defineMIME("text/webassembly","wast")})})();var s=u.exports;const d=i(s),f=x({__proto__:null,default:d},[s]);export{f as w}; diff --git a/dist-ui/assets/webidl-DROfhoxv.js b/dist-ui/assets/webidl-q-n5uYHd.js similarity index 97% rename from dist-ui/assets/webidl-DROfhoxv.js rename to dist-ui/assets/webidl-q-n5uYHd.js index 93e4812d..ba13beec 100644 --- a/dist-ui/assets/webidl-DROfhoxv.js +++ b/dist-ui/assets/webidl-q-n5uYHd.js @@ -1 +1 @@ -import{g as T,c as _}from"./index-CFELAGmQ.js";function U(f,c){for(var n=0;nt[a]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,c){(function(n){n(_)})(function(n){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],l=t(a),u=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],p=t(u),s=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],b=t(s),d=["true","false","Infinity","NaN","null"],v=t(d);n.registerHelper("hintWords","webidl",a.concat(u).concat(s).concat(d));var g=["callback","dictionary","enum","interface"],A=t(g),h=["typedef"],w=t(h),D=/^[:<=>?]/,E=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,x=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,k=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,O=/^"[^"]*"/,j=/^\/\*.*?\*\//,C=/^\/\*.*/,S=/^.*?\*\//;function N(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(S)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(j))return"comment";if(e.match(C))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(E)||e.match(x)))return"number";if(e.match(O))return"string";if(r.startDef&&e.match(m))return"def";if(r.endDef&&e.match(k))return r.endDef=!1,"def";if(e.match(b))return"keyword";if(e.match(p)){var i=r.lastToken,o=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return i===":"||i==="implements"||o==="implements"||o==="="?"builtin":"variable-3"}return e.match(l)?"builtin":e.match(v)?"atom":e.match(m)?"variable":e.match(D)?"operator":(e.next(),null)}n.defineMode("webidl",function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var i=N(e,r);if(i){var o=e.current();r.lastToken=o,i==="keyword"?(r.startDef=A.test(o),r.endDef=r.endDef||w.test(o)):r.startDef=!1}return i}}}),n.defineMIME("text/x-webidl","webidl")})})();var y=z.exports;const I=T(y),F=U({__proto__:null,default:I},[y]);export{F as w}; +import{g as T,c as _}from"./index-F8NPuhC5.js";function U(f,c){for(var n=0;nt[a]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var z={exports:{}};(function(f,c){(function(n){n(_)})(function(n){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],l=t(a),u=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],p=t(u),s=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],b=t(s),d=["true","false","Infinity","NaN","null"],v=t(d);n.registerHelper("hintWords","webidl",a.concat(u).concat(s).concat(d));var g=["callback","dictionary","enum","interface"],A=t(g),h=["typedef"],w=t(h),D=/^[:<=>?]/,E=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,x=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,k=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,O=/^"[^"]*"/,j=/^\/\*.*?\*\//,C=/^\/\*.*/,S=/^.*?\*\//;function N(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(S)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(j))return"comment";if(e.match(C))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(E)||e.match(x)))return"number";if(e.match(O))return"string";if(r.startDef&&e.match(m))return"def";if(r.endDef&&e.match(k))return r.endDef=!1,"def";if(e.match(b))return"keyword";if(e.match(p)){var i=r.lastToken,o=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return i===":"||i==="implements"||o==="implements"||o==="="?"builtin":"variable-3"}return e.match(l)?"builtin":e.match(v)?"atom":e.match(m)?"variable":e.match(D)?"operator":(e.next(),null)}n.defineMode("webidl",function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var i=N(e,r);if(i){var o=e.current();r.lastToken=o,i==="keyword"?(r.startDef=A.test(o),r.endDef=r.endDef||w.test(o)):r.startDef=!1}return i}}}),n.defineMIME("text/x-webidl","webidl")})})();var y=z.exports;const I=T(y),F=U({__proto__:null,default:I},[y]);export{F as w}; diff --git a/dist-ui/assets/xquery-BAotSwcC.js b/dist-ui/assets/xquery-DdKRFITW.js similarity index 99% rename from dist-ui/assets/xquery-BAotSwcC.js rename to dist-ui/assets/xquery-DdKRFITW.js index b287fa35..8208aefd 100644 --- a/dist-ui/assets/xquery-BAotSwcC.js +++ b/dist-ui/assets/xquery-DdKRFITW.js @@ -1 +1 @@ -import{g as j,c as B}from"./index-CFELAGmQ.js";function P(y,k){for(var p=0;pf[l]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(y,k){(function(p){p(B)})(function(p){p.defineMode("xquery",function(){var f=function(){function e(O){return{type:O,style:"keyword"}}for(var n=e("operator"),t={type:"atom",style:"atom"},i={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},u={",":i},d=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],r=0,a=d.length;r",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],r=0,a=g.length;r\"\'\/?]/);)d+=r;return l(e,n,N(d,u))}else{if(t=="{")return x(n,{type:"codeblock"}),null;if(t=="}")return c(n),null;if(w(n))return t==">"?"tag":t=="/"&&e.eat(">")?(c(n),"tag"):"variable";if(/\d/.test(t))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if(t==="("&&e.eat(":"))return x(n,{type:"comment"}),l(e,n,T);if(!s&&(t==='"'||t==="'"))return l(e,n,b(t));if(t==="$")return l(e,n,E);if(t===":"&&e.eat("="))return"keyword";if(t==="(")return x(n,{type:"paren"}),null;if(t===")")return c(n),null;if(t==="[")return x(n,{type:"bracket"}),null;if(t==="]")return c(n),null;var a=f.propertyIsEnumerable(t)&&f[t];if(s&&t==='"')for(;e.next()!=='"';);if(s&&t==="'")for(;e.next()!=="'";);a||e.eatWhile(/[\w\$_-]/);var v=e.eat(":");!e.eat(":")&&v&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(i=!0);var g=e.current();return a=f.propertyIsEnumerable(g)&&f[g],i&&!a&&(a={type:"function_call",style:"variable def"}),q(n)?(c(n),"variable"):((g=="element"||g=="attribute"||a.type=="axis_specifier")&&x(n,{type:"xmlconstructor"}),a?a.style:"variable")}}function T(e,n){for(var t=!1,i=!1,s=0,u;u=e.next();){if(u==")"&&t)if(s>0)s--;else{c(n);break}else u==":"&&i&&s++;t=u==":",i=u=="("}return"comment"}function b(e,n){return function(t,i){var s;if(C(i)&&t.current()==e)return c(i),n&&(i.tokenize=n),"string";if(x(i,{type:"string",name:e,tokenize:b(e,n)}),t.match("{",!1)&&h(i))return i.tokenize=o,"string";for(;s=t.next();)if(s==e){c(i),n&&(i.tokenize=n);break}else if(t.match("{",!1)&&h(i))return i.tokenize=o,"string";return"string"}}function E(e,n){var t=/[\w\$_-]/;if(e.eat('"')){for(;e.next()!=='"';);e.eat(":")}else e.eatWhile(t),e.match(":=",!1)||e.eat(":");return e.eatWhile(t),n.tokenize=o,"variable"}function N(e,n){return function(t,i){if(t.eatSpace(),n&&t.eat(">"))return c(i),i.tokenize=o,"tag";if(t.eat("/")||x(i,{type:"tag",name:e,tokenize:o}),t.eat(">"))i.tokenize=o;else return i.tokenize=z,"tag";return"tag"}}function z(e,n){var t=e.next();return t=="/"&&e.eat(">")?(h(n)&&c(n),w(n)&&c(n),"tag"):t==">"?(h(n)&&c(n),"tag"):t=="="?null:t=='"'||t=="'"?l(e,n,b(t,z)):(h(n)||x(n,{type:"attribute",tokenize:z}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(c(n),n.tokenize=o),"attribute")}function A(e,n){for(var t;t=e.next();)if(t=="-"&&e.match("->",!0))return n.tokenize=o,"comment"}function _(e,n){for(var t;t=e.next();)if(t=="]"&&e.match("]",!0))return n.tokenize=o,"comment"}function D(e,n){for(var t;t=e.next();)if(t=="?"&&e.match(">",!0))return n.tokenize=o,"comment meta"}function w(e){return m(e,"tag")}function h(e){return m(e,"attribute")}function q(e){return m(e,"xmlconstructor")}function C(e){return m(e,"string")}function M(e){return e.current()==='"'?e.match(/^[^\"]+\"\:/,!1):e.current()==="'"?e.match(/^[^\"]+\'\:/,!1):!1}function m(e,n){return e.stack.length&&e.stack[e.stack.length-1].type==n}function x(e,n){e.stack.push(n)}function c(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||o}return{startState:function(){return{tokenize:o,cc:[],stack:[]}},token:function(e,n){if(e.eatSpace())return null;var t=n.tokenize(e,n);return t},blockCommentStart:"(:",blockCommentEnd:":)"}}),p.defineMIME("application/xquery","xquery")})})();var S=$.exports;const W=j(S),X=P({__proto__:null,default:W},[S]);export{X as x}; +import{g as j,c as B}from"./index-F8NPuhC5.js";function P(y,k){for(var p=0;pf[l]})}}}return Object.freeze(Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}))}var $={exports:{}};(function(y,k){(function(p){p(B)})(function(p){p.defineMode("xquery",function(){var f=function(){function e(O){return{type:O,style:"keyword"}}for(var n=e("operator"),t={type:"atom",style:"atom"},i={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},u={",":i},d=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],r=0,a=d.length;r",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],r=0,a=g.length;r\"\'\/?]/);)d+=r;return l(e,n,N(d,u))}else{if(t=="{")return x(n,{type:"codeblock"}),null;if(t=="}")return c(n),null;if(w(n))return t==">"?"tag":t=="/"&&e.eat(">")?(c(n),"tag"):"variable";if(/\d/.test(t))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if(t==="("&&e.eat(":"))return x(n,{type:"comment"}),l(e,n,T);if(!s&&(t==='"'||t==="'"))return l(e,n,b(t));if(t==="$")return l(e,n,E);if(t===":"&&e.eat("="))return"keyword";if(t==="(")return x(n,{type:"paren"}),null;if(t===")")return c(n),null;if(t==="[")return x(n,{type:"bracket"}),null;if(t==="]")return c(n),null;var a=f.propertyIsEnumerable(t)&&f[t];if(s&&t==='"')for(;e.next()!=='"';);if(s&&t==="'")for(;e.next()!=="'";);a||e.eatWhile(/[\w\$_-]/);var v=e.eat(":");!e.eat(":")&&v&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(i=!0);var g=e.current();return a=f.propertyIsEnumerable(g)&&f[g],i&&!a&&(a={type:"function_call",style:"variable def"}),q(n)?(c(n),"variable"):((g=="element"||g=="attribute"||a.type=="axis_specifier")&&x(n,{type:"xmlconstructor"}),a?a.style:"variable")}}function T(e,n){for(var t=!1,i=!1,s=0,u;u=e.next();){if(u==")"&&t)if(s>0)s--;else{c(n);break}else u==":"&&i&&s++;t=u==":",i=u=="("}return"comment"}function b(e,n){return function(t,i){var s;if(C(i)&&t.current()==e)return c(i),n&&(i.tokenize=n),"string";if(x(i,{type:"string",name:e,tokenize:b(e,n)}),t.match("{",!1)&&h(i))return i.tokenize=o,"string";for(;s=t.next();)if(s==e){c(i),n&&(i.tokenize=n);break}else if(t.match("{",!1)&&h(i))return i.tokenize=o,"string";return"string"}}function E(e,n){var t=/[\w\$_-]/;if(e.eat('"')){for(;e.next()!=='"';);e.eat(":")}else e.eatWhile(t),e.match(":=",!1)||e.eat(":");return e.eatWhile(t),n.tokenize=o,"variable"}function N(e,n){return function(t,i){if(t.eatSpace(),n&&t.eat(">"))return c(i),i.tokenize=o,"tag";if(t.eat("/")||x(i,{type:"tag",name:e,tokenize:o}),t.eat(">"))i.tokenize=o;else return i.tokenize=z,"tag";return"tag"}}function z(e,n){var t=e.next();return t=="/"&&e.eat(">")?(h(n)&&c(n),w(n)&&c(n),"tag"):t==">"?(h(n)&&c(n),"tag"):t=="="?null:t=='"'||t=="'"?l(e,n,b(t,z)):(h(n)||x(n,{type:"attribute",tokenize:z}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(c(n),n.tokenize=o),"attribute")}function A(e,n){for(var t;t=e.next();)if(t=="-"&&e.match("->",!0))return n.tokenize=o,"comment"}function _(e,n){for(var t;t=e.next();)if(t=="]"&&e.match("]",!0))return n.tokenize=o,"comment"}function D(e,n){for(var t;t=e.next();)if(t=="?"&&e.match(">",!0))return n.tokenize=o,"comment meta"}function w(e){return m(e,"tag")}function h(e){return m(e,"attribute")}function q(e){return m(e,"xmlconstructor")}function C(e){return m(e,"string")}function M(e){return e.current()==='"'?e.match(/^[^\"]+\"\:/,!1):e.current()==="'"?e.match(/^[^\"]+\'\:/,!1):!1}function m(e,n){return e.stack.length&&e.stack[e.stack.length-1].type==n}function x(e,n){e.stack.push(n)}function c(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||o}return{startState:function(){return{tokenize:o,cc:[],stack:[]}},token:function(e,n){if(e.eatSpace())return null;var t=n.tokenize(e,n);return t},blockCommentStart:"(:",blockCommentEnd:":)"}}),p.defineMIME("application/xquery","xquery")})})();var S=$.exports;const W=j(S),X=P({__proto__:null,default:W},[S]);export{X as x}; diff --git a/dist-ui/assets/yacas-Bs3ZmOP9.js b/dist-ui/assets/yacas-A827DJ-h.js similarity index 97% rename from dist-ui/assets/yacas-Bs3ZmOP9.js rename to dist-ui/assets/yacas-A827DJ-h.js index 03b39403..df047f45 100644 --- a/dist-ui/assets/yacas-Bs3ZmOP9.js +++ b/dist-ui/assets/yacas-A827DJ-h.js @@ -1 +1 @@ -import{g as T,c as z}from"./index-CFELAGmQ.js";function E(l,s){for(var i=0;ia[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}};(function(l,s){(function(i){i(z)})(function(i){i.defineMode("yacas",function(a,c){function u(e){for(var r={},n=e.split(" "),o=0;o|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function x(e,r){for(var n,o=!1,t=!1;(n=e.next())!=null;){if(n==='"'&&!t){o=!0;break}t=!t&&n==="\\"}return o&&!t&&(r.tokenize=p),"string"}function S(e,r){for(var n,o;(o=e.next())!=null;){if(n==="*"&&o==="/"){r.tokenize=p;break}n=o}return"comment"}function d(e){var r=null;return e.scopes.length>0&&(r=e.scopes[e.scopes.length-1]),r}return{startState:function(){return{tokenize:p,scopes:[]}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},indent:function(e,r){if(e.tokenize!==p&&e.tokenize!==null)return i.Pass;var n=0;return(r==="]"||r==="];"||r==="}"||r==="};"||r===");")&&(n=-1),(e.scopes.length+n)*a.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-yacas",{name:"yacas"})})})();var v=F.exports;const w=T(v),P=E({__proto__:null,default:w},[v]);export{P as y}; +import{g as T,c as z}from"./index-F8NPuhC5.js";function E(l,s){for(var i=0;ia[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var F={exports:{}};(function(l,s){(function(i){i(z)})(function(i){i.defineMode("yacas",function(a,c){function u(e){for(var r={},n=e.split(" "),o=0;o|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function x(e,r){for(var n,o=!1,t=!1;(n=e.next())!=null;){if(n==='"'&&!t){o=!0;break}t=!t&&n==="\\"}return o&&!t&&(r.tokenize=p),"string"}function S(e,r){for(var n,o;(o=e.next())!=null;){if(n==="*"&&o==="/"){r.tokenize=p;break}n=o}return"comment"}function d(e){var r=null;return e.scopes.length>0&&(r=e.scopes[e.scopes.length-1]),r}return{startState:function(){return{tokenize:p,scopes:[]}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},indent:function(e,r){if(e.tokenize!==p&&e.tokenize!==null)return i.Pass;var n=0;return(r==="]"||r==="];"||r==="}"||r==="};"||r===");")&&(n=-1),(e.scopes.length+n)*a.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-yacas",{name:"yacas"})})})();var v=F.exports;const w=T(v),P=E({__proto__:null,default:w},[v]);export{P as y}; diff --git a/dist-ui/assets/yaml-DW5bDHnz.js b/dist-ui/assets/yaml-C7gffGpj.js similarity index 96% rename from dist-ui/assets/yaml-DW5bDHnz.js rename to dist-ui/assets/yaml-C7gffGpj.js index 242b2d68..36e896f4 100644 --- a/dist-ui/assets/yaml-DW5bDHnz.js +++ b/dist-ui/assets/yaml-C7gffGpj.js @@ -1 +1 @@ -import{g as c,c as p}from"./index-CFELAGmQ.js";function s(o,a){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(o,a){(function(n){n(p)})(function(n){n.defineMode("yaml",function(){var r=["true","false","on","off","yes","no"],l=new RegExp("\\b(("+r.join(")|(")+"))$","i");return{token:function(e,i){var f=e.peek(),t=i.escaped;if(i.escaped=!1,f=="#"&&(e.pos==0||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&e.indentation()>i.keyCol)return e.skipToEnd(),"string";if(i.literal&&(i.literal=!1),e.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,e.match("---")||e.match("..."))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return f=="{"?i.inlinePairs++:f=="}"?i.inlinePairs--:f=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!t&&f==",")return e.next(),"meta";if(i.inlinePairs>0&&!t&&f==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,e.next(),"meta";if(i.pairStart){if(e.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&e.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(l))return"keyword"}return!i.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(i.pair=!0,i.keyCol=e.indentation(),"atom"):i.pair&&e.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=f=="\\",e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),n.defineMIME("text/x-yaml","yaml"),n.defineMIME("text/yaml","yaml")})})();var u=y.exports;const d=c(u),g=s({__proto__:null,default:d},[u]);export{u as a,g as y}; +import{g as c,c as p}from"./index-F8NPuhC5.js";function s(o,a){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var y={exports:{}};(function(o,a){(function(n){n(p)})(function(n){n.defineMode("yaml",function(){var r=["true","false","on","off","yes","no"],l=new RegExp("\\b(("+r.join(")|(")+"))$","i");return{token:function(e,i){var f=e.peek(),t=i.escaped;if(i.escaped=!1,f=="#"&&(e.pos==0||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&e.indentation()>i.keyCol)return e.skipToEnd(),"string";if(i.literal&&(i.literal=!1),e.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,e.match("---")||e.match("..."))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return f=="{"?i.inlinePairs++:f=="}"?i.inlinePairs--:f=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!t&&f==",")return e.next(),"meta";if(i.inlinePairs>0&&!t&&f==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,e.next(),"meta";if(i.pairStart){if(e.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&e.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(l))return"keyword"}return!i.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)?(i.pair=!0,i.keyCol=e.indentation(),"atom"):i.pair&&e.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=f=="\\",e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),n.defineMIME("text/x-yaml","yaml"),n.defineMIME("text/yaml","yaml")})})();var u=y.exports;const d=c(u),g=s({__proto__:null,default:d},[u]);export{u as a,g as y}; diff --git a/dist-ui/assets/yaml-frontmatter-BYPLutKI.js b/dist-ui/assets/yaml-frontmatter-dNkK8CMx.js similarity index 91% rename from dist-ui/assets/yaml-frontmatter-BYPLutKI.js rename to dist-ui/assets/yaml-frontmatter-dNkK8CMx.js index d4a1f09d..93b2db2c 100644 --- a/dist-ui/assets/yaml-frontmatter-BYPLutKI.js +++ b/dist-ui/assets/yaml-frontmatter-dNkK8CMx.js @@ -1 +1 @@ -import{g,c as v}from"./index-CFELAGmQ.js";import{a as b}from"./yaml-DW5bDHnz.js";function k(f,u){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(f,u){(function(n){n(v,b)})(function(n){var a=0,r=1,o=2;n.defineMode("yaml-frontmatter",function(s,p){var l=n.getMode(s,"yaml"),m=n.getMode(s,p&&p.base||"gfm");function c(t){return t.state==r?{mode:l,state:t.yaml}:{mode:m,state:t.inner}}return{startState:function(){return{state:a,yaml:null,inner:n.startState(m)}},copyState:function(t){return{state:t.state,yaml:t.yaml&&n.copyState(l,t.yaml),inner:n.copyState(m,t.inner)}},token:function(t,e){if(e.state==a)return t.match("---",!1)?(e.state=r,e.yaml=n.startState(l),l.token(t,e.yaml)):(e.state=o,m.token(t,e.inner));if(e.state==r){var y=t.sol()&&t.match(/(---|\.\.\.)/,!1),i=l.token(t,e.yaml);return y&&(e.state=o,e.yaml=null),i}else return m.token(t,e.inner)},innerMode:c,indent:function(t,e,y){var i=c(t);return i.mode.indent?i.mode.indent(i.state,e,y):n.Pass},blankLine:function(t){var e=c(t);if(e.mode.blankLine)return e.mode.blankLine(e.state)}}})})})();var d=S.exports;const x=g(d),T=k({__proto__:null,default:x},[d]);export{T as y}; +import{g,c as v}from"./index-F8NPuhC5.js";import{a as b}from"./yaml-C7gffGpj.js";function k(f,u){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}))}var S={exports:{}};(function(f,u){(function(n){n(v,b)})(function(n){var a=0,r=1,o=2;n.defineMode("yaml-frontmatter",function(s,p){var l=n.getMode(s,"yaml"),m=n.getMode(s,p&&p.base||"gfm");function c(t){return t.state==r?{mode:l,state:t.yaml}:{mode:m,state:t.inner}}return{startState:function(){return{state:a,yaml:null,inner:n.startState(m)}},copyState:function(t){return{state:t.state,yaml:t.yaml&&n.copyState(l,t.yaml),inner:n.copyState(m,t.inner)}},token:function(t,e){if(e.state==a)return t.match("---",!1)?(e.state=r,e.yaml=n.startState(l),l.token(t,e.yaml)):(e.state=o,m.token(t,e.inner));if(e.state==r){var y=t.sol()&&t.match(/(---|\.\.\.)/,!1),i=l.token(t,e.yaml);return y&&(e.state=o,e.yaml=null),i}else return m.token(t,e.inner)},innerMode:c,indent:function(t,e,y){var i=c(t);return i.mode.indent?i.mode.indent(i.state,e,y):n.Pass},blankLine:function(t){var e=c(t);if(e.mode.blankLine)return e.mode.blankLine(e.state)}}})})})();var d=S.exports;const x=g(d),T=k({__proto__:null,default:x},[d]);export{T as y}; diff --git a/dist-ui/assets/z80-eNlRilBV.js b/dist-ui/assets/z80-CAimCid_.js similarity index 97% rename from dist-ui/assets/z80-eNlRilBV.js rename to dist-ui/assets/z80-CAimCid_.js index c026f0d4..a61ed98c 100644 --- a/dist-ui/assets/z80-eNlRilBV.js +++ b/dist-ui/assets/z80-CAimCid_.js @@ -1 +1 @@ -import{g as h,c as z}from"./index-CFELAGmQ.js";function v(c,f){for(var n=0;nl[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(c,f){(function(n){n(z)})(function(n){n.defineMode("z80",function(l,i){var o=i.ez80,u,d;o?(u=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,d=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(u=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,d=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var x=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,p=/^(n?[zc]|p[oe]?|m)\b/i,b=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,s=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,r){if(e.column()||(r.context=0),e.eatSpace())return null;var t;if(e.eatWhile(/\w/))if(o&&e.eat(".")&&e.eatWhile(/\w/),t=e.current(),e.indentation()){if((r.context==1||r.context==4)&&x.test(t))return r.context=4,"var2";if(r.context==2&&p.test(t))return r.context=4,"var3";if(u.test(t))return r.context=1,"keyword";if(d.test(t))return r.context=2,"keyword";if(r.context==4&&s.test(t))return"number";if(b.test(t))return"error"}else return e.match(s)?"number":null;else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(t=e.next())&&t!='"';)t=="\\"&&e.next();return"string"}else if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(r.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}}),n.defineMIME("text/x-z80","z80"),n.defineMIME("text/x-ez80",{name:"z80",ez80:!0})})})();var a=g.exports;const y=h(a),w=v({__proto__:null,default:y},[a]);export{w as z}; +import{g as h,c as z}from"./index-F8NPuhC5.js";function v(c,f){for(var n=0;nl[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var g={exports:{}};(function(c,f){(function(n){n(z)})(function(n){n.defineMode("z80",function(l,i){var o=i.ez80,u,d;o?(u=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,d=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(u=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,d=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var x=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,p=/^(n?[zc]|p[oe]?|m)\b/i,b=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,s=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},token:function(e,r){if(e.column()||(r.context=0),e.eatSpace())return null;var t;if(e.eatWhile(/\w/))if(o&&e.eat(".")&&e.eatWhile(/\w/),t=e.current(),e.indentation()){if((r.context==1||r.context==4)&&x.test(t))return r.context=4,"var2";if(r.context==2&&p.test(t))return r.context=4,"var3";if(u.test(t))return r.context=1,"keyword";if(d.test(t))return r.context=2,"keyword";if(r.context==4&&s.test(t))return"number";if(b.test(t))return"error"}else return e.match(s)?"number":null;else{if(e.eat(";"))return e.skipToEnd(),"comment";if(e.eat('"')){for(;(t=e.next())&&t!='"';)t=="\\"&&e.next();return"string"}else if(e.eat("'")){if(e.match(/\\?.'/))return"number"}else if(e.eat(".")||e.sol()&&e.eat("#")){if(r.context=5,e.eatWhile(/\w/))return"def"}else if(e.eat("$")){if(e.eatWhile(/[\da-f]/i))return"number"}else if(e.eat("%")){if(e.eatWhile(/[01]/))return"number"}else e.next()}return null}}}),n.defineMIME("text/x-z80","z80"),n.defineMIME("text/x-ez80",{name:"z80",ez80:!0})})})();var a=g.exports;const y=h(a),w=v({__proto__:null,default:y},[a]);export{w as z}; diff --git a/dist-ui/index.html b/dist-ui/index.html index e74fd6c0..73cde46c 100644 --- a/dist-ui/index.html +++ b/dist-ui/index.html @@ -12,7 +12,7 @@ PasteBar App - +