@openc3/vue-common 6.6.0 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArrayWidget-Bb_Ldxq7.cjs → ArrayWidget-DaONH8Iv.cjs} +2 -2
- package/dist/{ArrayWidget-Bb_Ldxq7.cjs.map → ArrayWidget-DaONH8Iv.cjs.map} +1 -1
- package/dist/{ArrayWidget-Ck6pzAyW.js → ArrayWidget-j3ncPuPx.js} +4 -4
- package/dist/{ArrayWidget-Ck6pzAyW.js.map → ArrayWidget-j3ncPuPx.js.map} +1 -1
- package/dist/ArrayplotWidget-DPMVlst7.cjs +2 -0
- package/dist/ArrayplotWidget-DPMVlst7.cjs.map +1 -0
- package/dist/{ArrayplotWidget-ntRLh6-B.js → ArrayplotWidget-DuLaiGa9.js} +22 -22
- package/dist/ArrayplotWidget-DuLaiGa9.js.map +1 -0
- package/dist/{BarColumn-Bgz2YJ59.js → BarColumn-BWJ0Dd4O.js} +3 -3
- package/dist/{BarColumn-Bgz2YJ59.js.map → BarColumn-BWJ0Dd4O.js.map} +1 -1
- package/dist/{BarColumn-DtRNuOpa.cjs → BarColumn-CchXr_ex.cjs} +2 -2
- package/dist/{BarColumn-DtRNuOpa.cjs.map → BarColumn-CchXr_ex.cjs.map} +1 -1
- package/dist/{BlockWidget-DGH3Zz5p.js → BlockWidget-Bf5Dd6Cr.js} +4 -4
- package/dist/{BlockWidget-DGH3Zz5p.js.map → BlockWidget-Bf5Dd6Cr.js.map} +1 -1
- package/dist/{BlockWidget-DOY5lVfa.cjs → BlockWidget-CeDueZQ0.cjs} +2 -2
- package/dist/{BlockWidget-DOY5lVfa.cjs.map → BlockWidget-CeDueZQ0.cjs.map} +1 -1
- package/dist/{ButtonWidget-CFyZXGt6.cjs → ButtonWidget-BZulfQct.cjs} +3 -3
- package/dist/{ButtonWidget-CFyZXGt6.cjs.map → ButtonWidget-BZulfQct.cjs.map} +1 -1
- package/dist/{ButtonWidget-D_tupiPB.js → ButtonWidget-bl_mGFYh.js} +17 -17
- package/dist/{ButtonWidget-D_tupiPB.js.map → ButtonWidget-bl_mGFYh.js.map} +1 -1
- package/dist/{CanvasWidget-C6dc7mUw.cjs → CanvasWidget-DwAXTAyn.cjs} +2 -2
- package/dist/{CanvasWidget-C6dc7mUw.cjs.map → CanvasWidget-DwAXTAyn.cjs.map} +1 -1
- package/dist/{CanvasWidget-CzG2jYQb.js → CanvasWidget-boDemgx1.js} +2 -2
- package/dist/{CanvasWidget-CzG2jYQb.js.map → CanvasWidget-boDemgx1.js.map} +1 -1
- package/dist/{CanvasdotWidget-0FAaw4G2.js → CanvasdotWidget-BZBbJcER.js} +2 -2
- package/dist/{CanvasdotWidget-0FAaw4G2.js.map → CanvasdotWidget-BZBbJcER.js.map} +1 -1
- package/dist/{CanvasdotWidget-9bBVHC1l.cjs → CanvasdotWidget-ByJp9ZIa.cjs} +2 -2
- package/dist/{CanvasdotWidget-9bBVHC1l.cjs.map → CanvasdotWidget-ByJp9ZIa.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-CNJlzLqo.js → CanvasimageWidget-6ywvT5jd.js} +3 -3
- package/dist/{CanvasimageWidget-CNJlzLqo.js.map → CanvasimageWidget-6ywvT5jd.js.map} +1 -1
- package/dist/{CanvasimageWidget-DjvdDCRS.cjs → CanvasimageWidget-BDprHuH3.cjs} +2 -2
- package/dist/{CanvasimageWidget-DjvdDCRS.cjs.map → CanvasimageWidget-BDprHuH3.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-C1fI-ftP.cjs → CanvasimagevalueWidget-Cl_EuzNC.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-C1fI-ftP.cjs.map → CanvasimagevalueWidget-Cl_EuzNC.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DudwwOD6.js → CanvasimagevalueWidget-DjWrA3gX.js} +3 -3
- package/dist/{CanvasimagevalueWidget-DudwwOD6.js.map → CanvasimagevalueWidget-DjWrA3gX.js.map} +1 -1
- package/dist/{CanvaslabelWidget-BZQp16dH.js → CanvaslabelWidget-Bq4V2BQh.js} +2 -2
- package/dist/{CanvaslabelWidget-BZQp16dH.js.map → CanvaslabelWidget-Bq4V2BQh.js.map} +1 -1
- package/dist/{CanvaslabelWidget--6Sjc4E8.cjs → CanvaslabelWidget-aalWFBxK.cjs} +2 -2
- package/dist/{CanvaslabelWidget--6Sjc4E8.cjs.map → CanvaslabelWidget-aalWFBxK.cjs.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-CHS36Te9.js → CanvaslabelvalueWidget-C8oNcFLi.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-CHS36Te9.js.map → CanvaslabelvalueWidget-C8oNcFLi.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DZCxsIKk.cjs → CanvaslabelvalueWidget-DIO0fADo.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-DZCxsIKk.cjs.map → CanvaslabelvalueWidget-DIO0fADo.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-Bn83Rb10.cjs → CanvaslineWidget-CqNOzV_A.cjs} +2 -2
- package/dist/{CanvaslineWidget-Bn83Rb10.cjs.map → CanvaslineWidget-CqNOzV_A.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-nhKEAGhs.js → CanvaslineWidget-nvbL2GoL.js} +2 -2
- package/dist/{CanvaslineWidget-nhKEAGhs.js.map → CanvaslineWidget-nvbL2GoL.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-C6x_4Gc9.cjs → CanvaslinevalueWidget-D0kOhxXn.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-C6x_4Gc9.cjs.map → CanvaslinevalueWidget-D0kOhxXn.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-DsyIDkJy.js → CanvaslinevalueWidget-ZACQedKx.js} +2 -2
- package/dist/{CanvaslinevalueWidget-DsyIDkJy.js.map → CanvaslinevalueWidget-ZACQedKx.js.map} +1 -1
- package/dist/{CheckbuttonWidget-DCam7Jd0.js → CheckbuttonWidget-B82UE8AB.js} +2 -2
- package/dist/{CheckbuttonWidget-DCam7Jd0.js.map → CheckbuttonWidget-B82UE8AB.js.map} +1 -1
- package/dist/{CheckbuttonWidget-BvggsGZY.cjs → CheckbuttonWidget-L9xyRwfS.cjs} +2 -2
- package/dist/{CheckbuttonWidget-BvggsGZY.cjs.map → CheckbuttonWidget-L9xyRwfS.cjs.map} +1 -1
- package/dist/ClassificationBanners-ZF9Ab7D0.cjs +2 -0
- package/dist/ClassificationBanners-ZF9Ab7D0.cjs.map +1 -0
- package/dist/ClassificationBanners-jiqWjTAZ.js +35 -0
- package/dist/ClassificationBanners-jiqWjTAZ.js.map +1 -0
- package/dist/{ComboboxWidget-ZX-k-_aK.js → ComboboxWidget-4OFiSkI6.js} +2 -2
- package/dist/{ComboboxWidget-ZX-k-_aK.js.map → ComboboxWidget-4OFiSkI6.js.map} +1 -1
- package/dist/{ComboboxWidget-BS5WSbrK.cjs → ComboboxWidget-6hmnB_mK.cjs} +2 -2
- package/dist/{ComboboxWidget-BS5WSbrK.cjs.map → ComboboxWidget-6hmnB_mK.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-7tOK2XQk.cjs → CriticalCmdDialog-C-UGhtjE.cjs} +2 -2
- package/dist/{CriticalCmdDialog-7tOK2XQk.cjs.map → CriticalCmdDialog-C-UGhtjE.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-Dylpoz_4.js → CriticalCmdDialog-FhXDdBn4.js} +9 -9
- package/dist/{CriticalCmdDialog-Dylpoz_4.js.map → CriticalCmdDialog-FhXDdBn4.js.map} +1 -1
- package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -1
- package/dist/CustomIcon-h5X7369N.js.map +1 -1
- package/dist/{DateWidget-DuJ5uC2t.js → DateWidget-BmwtdirF.js} +2 -2
- package/dist/{DateWidget-DuJ5uC2t.js.map → DateWidget-BmwtdirF.js.map} +1 -1
- package/dist/{DateWidget-jejbk2-G.cjs → DateWidget-CmSp7svA.cjs} +2 -2
- package/dist/{DateWidget-jejbk2-G.cjs.map → DateWidget-CmSp7svA.cjs.map} +1 -1
- package/dist/{DetailsDialog-BQE0TraI.js → DetailsDialog-CLKEfU0s.js} +89 -89
- package/dist/DetailsDialog-CLKEfU0s.js.map +1 -0
- package/dist/DetailsDialog-DEicfRO1.cjs +2 -0
- package/dist/DetailsDialog-DEicfRO1.cjs.map +1 -0
- package/dist/DynamicWidget-BWEVCUfd.cjs.map +1 -1
- package/dist/DynamicWidget-CfMtj7H8.js.map +1 -1
- package/dist/{EventListDialog-CGUFCrJF.js → EventListDialog-BvSMSn7J.js} +52 -52
- package/dist/{EventListDialog-CGUFCrJF.js.map → EventListDialog-BvSMSn7J.js.map} +1 -1
- package/dist/EventListDialog-Em1RcH7I.cjs +2 -0
- package/dist/{EventListDialog-CDcJcxy5.cjs.map → EventListDialog-Em1RcH7I.cjs.map} +1 -1
- package/dist/{FormatvalueWidget-DYICPNcx.js → FormatvalueWidget-C8exC3bj.js} +3 -3
- package/dist/{FormatvalueWidget-DYICPNcx.js.map → FormatvalueWidget-C8exC3bj.js.map} +1 -1
- package/dist/{FormatvalueWidget-wu7Q3sXu.cjs → FormatvalueWidget-auKALSPC.cjs} +2 -2
- package/dist/{FormatvalueWidget-wu7Q3sXu.cjs.map → FormatvalueWidget-auKALSPC.cjs.map} +1 -1
- package/dist/Graph-BJqtVAaV.cjs +2 -0
- package/dist/Graph-BJqtVAaV.cjs.map +1 -0
- package/dist/Graph-CWcrowaT.js +2662 -0
- package/dist/Graph-CWcrowaT.js.map +1 -0
- package/dist/GraphWidget-BroqS0SO.cjs +2 -0
- package/dist/{GraphWidget-CQjKAMPR.cjs.map → GraphWidget-BroqS0SO.cjs.map} +1 -1
- package/dist/{GraphWidget-cTVq29cY.js → GraphWidget-CvzxZYVx.js} +31 -44
- package/dist/{GraphWidget-cTVq29cY.js.map → GraphWidget-CvzxZYVx.js.map} +1 -1
- package/dist/{HorizontalWidget-v1pfd94Z.js → HorizontalWidget-Ck151zVw.js} +6 -6
- package/dist/{HorizontalWidget-v1pfd94Z.js.map → HorizontalWidget-Ck151zVw.js.map} +1 -1
- package/dist/HorizontalWidget-DBeyBZCp.cjs +2 -0
- package/dist/{HorizontalWidget--AkRJPlL.cjs.map → HorizontalWidget-DBeyBZCp.cjs.map} +1 -1
- package/dist/HorizontalboxWidget-CuWtYdgh.cjs +2 -0
- package/dist/{HorizontalboxWidget-synL-Bar.cjs.map → HorizontalboxWidget-CuWtYdgh.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-B06-c_n4.js → HorizontalboxWidget-D3P-cl9V.js} +15 -15
- package/dist/{HorizontalboxWidget-B06-c_n4.js.map → HorizontalboxWidget-D3P-cl9V.js.map} +1 -1
- package/dist/{HorizontallineWidget-DEODVJCk.js → HorizontallineWidget-BE1TjPU8.js} +2 -2
- package/dist/{HorizontallineWidget-DEODVJCk.js.map → HorizontallineWidget-BE1TjPU8.js.map} +1 -1
- package/dist/{HorizontallineWidget-lTr2JTFY.cjs → HorizontallineWidget-QUFjdOSu.cjs} +2 -2
- package/dist/{HorizontallineWidget-lTr2JTFY.cjs.map → HorizontallineWidget-QUFjdOSu.cjs.map} +1 -1
- package/dist/{IframeWidget-n8lNXrpt.js → IframeWidget-BgJCgues.js} +2 -2
- package/dist/{IframeWidget-n8lNXrpt.js.map → IframeWidget-BgJCgues.js.map} +1 -1
- package/dist/{IframeWidget-ByhwW9yG.cjs → IframeWidget-DOZ1YyS2.cjs} +2 -2
- package/dist/{IframeWidget-ByhwW9yG.cjs.map → IframeWidget-DOZ1YyS2.cjs.map} +1 -1
- package/dist/{ImageLoader-DBWVFtNu.cjs → ImageLoader-AGF0VbZ5.cjs} +2 -2
- package/dist/{ImageLoader-DBWVFtNu.cjs.map → ImageLoader-AGF0VbZ5.cjs.map} +1 -1
- package/dist/{ImageLoader-CfcErydq.js → ImageLoader-CWn-PLOk.js} +2 -2
- package/dist/{ImageLoader-CfcErydq.js.map → ImageLoader-CWn-PLOk.js.map} +1 -1
- package/dist/{ImageviewerWidget-DE8fj06Z.js → ImageviewerWidget-BlhFZD2f.js} +2 -2
- package/dist/{ImageviewerWidget-DE8fj06Z.js.map → ImageviewerWidget-BlhFZD2f.js.map} +1 -1
- package/dist/{ImageviewerWidget-D4mU6wLX.cjs → ImageviewerWidget-DnmhYP68.cjs} +2 -2
- package/dist/{ImageviewerWidget-D4mU6wLX.cjs.map → ImageviewerWidget-DnmhYP68.cjs.map} +1 -1
- package/dist/{InterfacesTab-DTAAIx-y.cjs → InterfacesTab-76UJTIwF.cjs} +2 -2
- package/dist/{InterfacesTab-DTAAIx-y.cjs.map → InterfacesTab-76UJTIwF.cjs.map} +1 -1
- package/dist/{InterfacesTab-BF-Wx5gk.js → InterfacesTab-Cwz-zG7j.js} +3 -3
- package/dist/{InterfacesTab-BF-Wx5gk.js.map → InterfacesTab-Cwz-zG7j.js.map} +1 -1
- package/dist/{LabelWidget-DQZqRxKF.cjs → LabelWidget-C0DhD9Mn.cjs} +2 -2
- package/dist/{LabelWidget-DQZqRxKF.cjs.map → LabelWidget-C0DhD9Mn.cjs.map} +1 -1
- package/dist/{LabelWidget-iUIJLhdA.js → LabelWidget-Cwosk4x2.js} +2 -2
- package/dist/{LabelWidget-iUIJLhdA.js.map → LabelWidget-Cwosk4x2.js.map} +1 -1
- package/dist/{LabelledWidget-9HWChRmv.cjs → LabelledWidget-D8-aKfA_.cjs} +2 -2
- package/dist/{LabelledWidget-9HWChRmv.cjs.map → LabelledWidget-D8-aKfA_.cjs.map} +1 -1
- package/dist/{LabelledWidget-KI6fMlsr.js → LabelledWidget-Dl6rAFTQ.js} +4 -4
- package/dist/{LabelledWidget-KI6fMlsr.js.map → LabelledWidget-Dl6rAFTQ.js.map} +1 -1
- package/dist/{LabelprogressbarWidget-DwzTP73u.cjs → LabelprogressbarWidget-DosPhvaY.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-DwzTP73u.cjs.map → LabelprogressbarWidget-DosPhvaY.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-C2lzmqBH.js → LabelprogressbarWidget-MuAKesOz.js} +4 -4
- package/dist/{LabelprogressbarWidget-C2lzmqBH.js.map → LabelprogressbarWidget-MuAKesOz.js.map} +1 -1
- package/dist/{LabelsparklineWidget-Ci6GGm29.js → LabelsparklineWidget-6LA6Ox3d.js} +4 -4
- package/dist/{LabelsparklineWidget-Ci6GGm29.js.map → LabelsparklineWidget-6LA6Ox3d.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DMjBshq8.cjs → LabelsparklineWidget-CLU8722I.cjs} +2 -2
- package/dist/{LabelsparklineWidget-DMjBshq8.cjs.map → LabelsparklineWidget-CLU8722I.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-oiW-JDw6.js → LabelvalueWidget-BxAXx-Tf.js} +4 -4
- package/dist/{LabelvalueWidget-oiW-JDw6.js.map → LabelvalueWidget-BxAXx-Tf.js.map} +1 -1
- package/dist/{LabelvalueWidget-mAb0eLA8.cjs → LabelvalueWidget-WP4gK29n.cjs} +2 -2
- package/dist/{LabelvalueWidget-mAb0eLA8.cjs.map → LabelvalueWidget-WP4gK29n.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-CZJ0kZN-.cjs → LabelvaluedescWidget-BQ-6OXHc.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-CZJ0kZN-.cjs.map → LabelvaluedescWidget-BQ-6OXHc.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-Ck0AJ9g0.js → LabelvaluedescWidget-Dwwlnd1g.js} +5 -5
- package/dist/{LabelvaluedescWidget-Ck0AJ9g0.js.map → LabelvaluedescWidget-Dwwlnd1g.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-aaVLaejn.js → LabelvaluelimitsbarWidget-Dv8Qk8kK.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-aaVLaejn.js.map → LabelvaluelimitsbarWidget-Dv8Qk8kK.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-DjBqYxRr.cjs → LabelvaluelimitsbarWidget-Z_7ARnvo.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-DjBqYxRr.cjs.map → LabelvaluelimitsbarWidget-Z_7ARnvo.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-Uur6aqOg.js → LabelvaluelimitscolumnWidget-D-_gl6fq.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-Uur6aqOg.js.map → LabelvaluelimitscolumnWidget-D-_gl6fq.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-GputlDZq.cjs → LabelvaluelimitscolumnWidget-DiO1b01N.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-GputlDZq.cjs.map → LabelvaluelimitscolumnWidget-DiO1b01N.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-Bs9locqu.js → LabelvaluerangebarWidget-B3MKT-3Y.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-Bs9locqu.js.map → LabelvaluerangebarWidget-B3MKT-3Y.js.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-Ci-n_hxk.cjs → LabelvaluerangebarWidget-DtajHP0b.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-Ci-n_hxk.cjs.map → LabelvaluerangebarWidget-DtajHP0b.cjs.map} +1 -1
- package/dist/{Layout-1z8iJV5-.js → Layout-Bkb6VP3e.js} +2 -2
- package/dist/{Layout-1z8iJV5-.js.map → Layout-Bkb6VP3e.js.map} +1 -1
- package/dist/Layout-CSbYbZWA.cjs +2 -0
- package/dist/{Layout-kOQnicRa.cjs.map → Layout-CSbYbZWA.cjs.map} +1 -1
- package/dist/{LedWidget-BN8IgAxJ.js → LedWidget-DOuDD8LI.js} +6 -6
- package/dist/LedWidget-DOuDD8LI.js.map +1 -0
- package/dist/LedWidget-DeREi8-u.cjs +2 -0
- package/dist/LedWidget-DeREi8-u.cjs.map +1 -0
- package/dist/LimitsbarWidget-BHr3IcIx.cjs +2 -0
- package/dist/{LimitsbarWidget-Co5GAHro.cjs.map → LimitsbarWidget-BHr3IcIx.cjs.map} +1 -1
- package/dist/{LimitsbarWidget-BxxoKTjp.js → LimitsbarWidget-D1U6SvVL.js} +4 -4
- package/dist/{LimitsbarWidget-BxxoKTjp.js.map → LimitsbarWidget-D1U6SvVL.js.map} +1 -1
- package/dist/{LimitscolorWidget-BpTcgqRC.cjs → LimitscolorWidget-BUkKRrSL.cjs} +2 -2
- package/dist/{LimitscolorWidget-BpTcgqRC.cjs.map → LimitscolorWidget-BUkKRrSL.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-DFDwf4In.js → LimitscolorWidget-iSMGusqt.js} +2 -2
- package/dist/{LimitscolorWidget-DFDwf4In.js.map → LimitscolorWidget-iSMGusqt.js.map} +1 -1
- package/dist/{LimitscolumnWidget-CqJJKDzz.cjs → LimitscolumnWidget-COfNnb6f.cjs} +2 -2
- package/dist/{LimitscolumnWidget-CqJJKDzz.cjs.map → LimitscolumnWidget-COfNnb6f.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-CdBh2mJu.js → LimitscolumnWidget-DjxZTt_r.js} +4 -4
- package/dist/{LimitscolumnWidget-CdBh2mJu.js.map → LimitscolumnWidget-DjxZTt_r.js.map} +1 -1
- package/dist/{LinegraphWidget-jXksfbPb.js → LinegraphWidget-BHKU6zlT.js} +13 -13
- package/dist/LinegraphWidget-BHKU6zlT.js.map +1 -0
- package/dist/LinegraphWidget-RleSRWKa.cjs +2 -0
- package/dist/LinegraphWidget-RleSRWKa.cjs.map +1 -0
- package/dist/{MatrixbycolumnsWidget-DCwxPjwS.js → MatrixbycolumnsWidget-BKO-A2QD.js} +4 -4
- package/dist/{MatrixbycolumnsWidget-DCwxPjwS.js.map → MatrixbycolumnsWidget-BKO-A2QD.js.map} +1 -1
- package/dist/MatrixbycolumnsWidget-DWouVj7A.cjs +2 -0
- package/dist/{MatrixbycolumnsWidget-DxRhvPGv.cjs.map → MatrixbycolumnsWidget-DWouVj7A.cjs.map} +1 -1
- package/dist/{MicroservicesTab-DGaTcj-y.cjs → MicroservicesTab-L6qMAy4x.cjs} +2 -2
- package/dist/{MicroservicesTab-DGaTcj-y.cjs.map → MicroservicesTab-L6qMAy4x.cjs.map} +1 -1
- package/dist/{MicroservicesTab-B-SdMwek.js → MicroservicesTab-xLup6THU.js} +4 -4
- package/dist/{MicroservicesTab-B-SdMwek.js.map → MicroservicesTab-xLup6THU.js.map} +1 -1
- package/dist/{Openc3Screen-BZN0Wtrm.js → Openc3Screen-1rQ_Dbp4.js} +585 -452
- package/dist/Openc3Screen-1rQ_Dbp4.js.map +1 -0
- package/dist/Openc3Screen-BHHnSEoI.cjs +6 -0
- package/dist/Openc3Screen-BHHnSEoI.cjs.map +1 -0
- package/dist/{OutputDialog-CxKDhrg6.cjs → OutputDialog-DgM7aoa-.cjs} +2 -2
- package/dist/{OutputDialog-CxKDhrg6.cjs.map → OutputDialog-DgM7aoa-.cjs.map} +1 -1
- package/dist/{OutputDialog-CcSp-Uqo.js → OutputDialog-Ut5cXGxQ.js} +12 -12
- package/dist/{OutputDialog-CcSp-Uqo.js.map → OutputDialog-Ut5cXGxQ.js.map} +1 -1
- package/dist/{PackagesTab-Dx25CfF0.js → PackagesTab-ChJDyU3Z.js} +17 -17
- package/dist/{PackagesTab-Dx25CfF0.js.map → PackagesTab-ChJDyU3Z.js.map} +1 -1
- package/dist/PackagesTab-jqsRJEcJ.cjs +2 -0
- package/dist/{PackagesTab-B4V2n4io.cjs.map → PackagesTab-jqsRJEcJ.cjs.map} +1 -1
- package/dist/PluginsTab-CayzDij0.js +1340 -0
- package/dist/PluginsTab-CayzDij0.js.map +1 -0
- package/dist/PluginsTab-DYEv8EPg.cjs +6 -0
- package/dist/PluginsTab-DYEv8EPg.cjs.map +1 -0
- package/dist/{ProgressbarWidget-C0AkbX_o.cjs → ProgressbarWidget-Xba7gDbW.cjs} +2 -2
- package/dist/{ProgressbarWidget-C0AkbX_o.cjs.map → ProgressbarWidget-Xba7gDbW.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-Cdu5nJC3.js → ProgressbarWidget-fbr2qu_N.js} +2 -2
- package/dist/{ProgressbarWidget-Cdu5nJC3.js.map → ProgressbarWidget-fbr2qu_N.js.map} +1 -1
- package/dist/{RadiobuttonWidget-DslmJO31.cjs → RadiobuttonWidget-CdpKw7jr.cjs} +2 -2
- package/dist/{RadiobuttonWidget-DslmJO31.cjs.map → RadiobuttonWidget-CdpKw7jr.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-CZZGbvdG.js → RadiobuttonWidget-DL08zcQT.js} +2 -2
- package/dist/{RadiobuttonWidget-CZZGbvdG.js.map → RadiobuttonWidget-DL08zcQT.js.map} +1 -1
- package/dist/{RadiogroupWidget-DKgBAR9E.cjs → RadiogroupWidget-DSA8ENmw.cjs} +2 -2
- package/dist/{RadiogroupWidget-DKgBAR9E.cjs.map → RadiogroupWidget-DSA8ENmw.cjs.map} +1 -1
- package/dist/{RadiogroupWidget-CQN3v8Ip.js → RadiogroupWidget-DW9Xpj3c.js} +2 -2
- package/dist/{RadiogroupWidget-CQN3v8Ip.js.map → RadiogroupWidget-DW9Xpj3c.js.map} +1 -1
- package/dist/{RangebarWidget-Tq80I5zA.cjs → RangebarWidget-B4oRyUwG.cjs} +2 -2
- package/dist/{RangebarWidget-Tq80I5zA.cjs.map → RangebarWidget-B4oRyUwG.cjs.map} +1 -1
- package/dist/{RangebarWidget-dZN9WjoZ.js → RangebarWidget-o9q55kjc.js} +4 -4
- package/dist/{RangebarWidget-dZN9WjoZ.js.map → RangebarWidget-o9q55kjc.js.map} +1 -1
- package/dist/RedisTab-BGz2ZN9T.js +171 -0
- package/dist/RedisTab-BGz2ZN9T.js.map +1 -0
- package/dist/RedisTab-Uqcfgux1.cjs +2 -0
- package/dist/RedisTab-Uqcfgux1.cjs.map +1 -0
- package/dist/{RollupWidget-CHdZAUCb.cjs → RollupWidget-43v3NX_Z.cjs} +2 -2
- package/dist/{RollupWidget-CHdZAUCb.cjs.map → RollupWidget-43v3NX_Z.cjs.map} +1 -1
- package/dist/{RollupWidget-i9DnNJl6.js → RollupWidget-BHnjj-DF.js} +2 -2
- package/dist/{RollupWidget-i9DnNJl6.js.map → RollupWidget-BHnjj-DF.js.map} +1 -1
- package/dist/{RoutersTab-Cp8wM-mS.cjs → RoutersTab-Be53r61Y.cjs} +2 -2
- package/dist/{RoutersTab-Cp8wM-mS.cjs.map → RoutersTab-Be53r61Y.cjs.map} +1 -1
- package/dist/{RoutersTab-DiYEI1Nq.js → RoutersTab-CCEPlZ_Y.js} +3 -3
- package/dist/{RoutersTab-DiYEI1Nq.js.map → RoutersTab-CCEPlZ_Y.js.map} +1 -1
- package/dist/{ScriptChooser-BnTP6ucF.cjs → ScriptChooser-B6TGFTBN.cjs} +2 -2
- package/dist/{ScriptChooser-BnTP6ucF.cjs.map → ScriptChooser-B6TGFTBN.cjs.map} +1 -1
- package/dist/{ScriptChooser-Cua8ObYv.js → ScriptChooser-CXjcm3bN.js} +2 -2
- package/dist/{ScriptChooser-Cua8ObYv.js.map → ScriptChooser-CXjcm3bN.js.map} +1 -1
- package/dist/{ScrollwindowWidget-54GU96Ve.js → ScrollwindowWidget-D-QVwztC.js} +15 -15
- package/dist/ScrollwindowWidget-D-QVwztC.js.map +1 -0
- package/dist/ScrollwindowWidget-D6ZHZr3o.cjs +2 -0
- package/dist/ScrollwindowWidget-D6ZHZr3o.cjs.map +1 -0
- package/dist/{SecretsTab-DY16usGc.cjs → SecretsTab-DDZ1VoUf.cjs} +2 -2
- package/dist/{SecretsTab-DY16usGc.cjs.map → SecretsTab-DDZ1VoUf.cjs.map} +1 -1
- package/dist/{SecretsTab-uWRVI1EE.js → SecretsTab-vVy356vr.js} +7 -7
- package/dist/{SecretsTab-uWRVI1EE.js.map → SecretsTab-vVy356vr.js.map} +1 -1
- package/dist/SettingsTab-CbWrf7U9.js +1763 -0
- package/dist/SettingsTab-CbWrf7U9.js.map +1 -0
- package/dist/SettingsTab-DsIVE5UL.cjs +3 -0
- package/dist/SettingsTab-DsIVE5UL.cjs.map +1 -0
- package/dist/{SignalWidget-B_kA9eCJ.js → SignalWidget-CsWuufdx.js} +2 -2
- package/dist/{SignalWidget-B_kA9eCJ.js.map → SignalWidget-CsWuufdx.js.map} +1 -1
- package/dist/{SignalWidget-COL8kXSJ.cjs → SignalWidget-CysAE9ZG.cjs} +2 -2
- package/dist/{SignalWidget-COL8kXSJ.cjs.map → SignalWidget-CysAE9ZG.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-BWUqPlTv.cjs → SimpleTextDialog-CU6G5CBY.cjs} +2 -2
- package/dist/{SimpleTextDialog-BWUqPlTv.cjs.map → SimpleTextDialog-CU6G5CBY.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-BulqUrdH.js → SimpleTextDialog-ChV5vRcV.js} +5 -5
- package/dist/{SimpleTextDialog-BulqUrdH.js.map → SimpleTextDialog-ChV5vRcV.js.map} +1 -1
- package/dist/{SpacerWidget-D_Ya_b1j.cjs → SpacerWidget-ChNk5TFU.cjs} +2 -2
- package/dist/{SpacerWidget-D_Ya_b1j.cjs.map → SpacerWidget-ChNk5TFU.cjs.map} +1 -1
- package/dist/{SpacerWidget-XoMPHak8.js → SpacerWidget-Di9-qunj.js} +2 -2
- package/dist/{SpacerWidget-XoMPHak8.js.map → SpacerWidget-Di9-qunj.js.map} +1 -1
- package/dist/{SparklineWidget-DQNsvEj9.js → SparklineWidget-B6-zhdPW.js} +4 -4
- package/dist/{SparklineWidget-DQNsvEj9.js.map → SparklineWidget-B6-zhdPW.js.map} +1 -1
- package/dist/{SparklineWidget-CRzXTS5z.cjs → SparklineWidget-D1tVqSRL.cjs} +2 -2
- package/dist/{SparklineWidget-CRzXTS5z.cjs.map → SparklineWidget-D1tVqSRL.cjs.map} +1 -1
- package/dist/{TabbookWidget-_HVA72t5.js → TabbookWidget-B1E1_mzA.js} +2 -2
- package/dist/{TabbookWidget-_HVA72t5.js.map → TabbookWidget-B1E1_mzA.js.map} +1 -1
- package/dist/{TabbookWidget-Bh-GDBXg.cjs → TabbookWidget-Btg-Axid.cjs} +2 -2
- package/dist/{TabbookWidget-Bh-GDBXg.cjs.map → TabbookWidget-Btg-Axid.cjs.map} +1 -1
- package/dist/{TargetsTab-BfoRYnTP.js → TargetsTab-DbbQcBuK.js} +3 -3
- package/dist/{TargetsTab-BfoRYnTP.js.map → TargetsTab-DbbQcBuK.js.map} +1 -1
- package/dist/{TargetsTab-CGE-jQAz.cjs → TargetsTab-pbmAAkOA.cjs} +2 -2
- package/dist/{TargetsTab-CGE-jQAz.cjs.map → TargetsTab-pbmAAkOA.cjs.map} +1 -1
- package/dist/{TextBoxDialog-C60jmnyN.js → TextBoxDialog-CdFHdj5W.js} +4 -4
- package/dist/{TextBoxDialog-C60jmnyN.js.map → TextBoxDialog-CdFHdj5W.js.map} +1 -1
- package/dist/{TextBoxDialog-DWt30tB8.cjs → TextBoxDialog-DbD8P4Xc.cjs} +2 -2
- package/dist/{TextBoxDialog-DWt30tB8.cjs.map → TextBoxDialog-DbD8P4Xc.cjs.map} +1 -1
- package/dist/{TextboxWidget-0JXn4bMH.js → TextboxWidget-CBVEXPw_.js} +4 -4
- package/dist/{TextboxWidget-0JXn4bMH.js.map → TextboxWidget-CBVEXPw_.js.map} +1 -1
- package/dist/{TextboxWidget-uDptDK_z.cjs → TextboxWidget-CHXcR8lA.cjs} +2 -2
- package/dist/{TextboxWidget-uDptDK_z.cjs.map → TextboxWidget-CHXcR8lA.cjs.map} +1 -1
- package/dist/{TextfieldWidget-BXr9MkVW.js → TextfieldWidget-DZMHrtQa.js} +2 -2
- package/dist/{TextfieldWidget-BXr9MkVW.js.map → TextfieldWidget-DZMHrtQa.js.map} +1 -1
- package/dist/{TextfieldWidget-B0FCskrL.cjs → TextfieldWidget-vSJ9CtKs.cjs} +2 -2
- package/dist/{TextfieldWidget-B0FCskrL.cjs.map → TextfieldWidget-vSJ9CtKs.cjs.map} +1 -1
- package/dist/{TimeWidget-q5tUvHC6.cjs → TimeWidget-ClkxS_oo.cjs} +2 -2
- package/dist/{TimeWidget-q5tUvHC6.cjs.map → TimeWidget-ClkxS_oo.cjs.map} +1 -1
- package/dist/{TimeWidget-C67uwMGH.js → TimeWidget-K4MNmJ7J.js} +2 -2
- package/dist/{TimeWidget-C67uwMGH.js.map → TimeWidget-K4MNmJ7J.js.map} +1 -1
- package/dist/{TitleWidget-t_YLgUMB.js → TitleWidget-8IcwweFE.js} +2 -2
- package/dist/{TitleWidget-t_YLgUMB.js.map → TitleWidget-8IcwweFE.js.map} +1 -1
- package/dist/{TitleWidget-REsd7MqR.cjs → TitleWidget-DJJ17ATm.cjs} +2 -2
- package/dist/{TitleWidget-REsd7MqR.cjs.map → TitleWidget-DJJ17ATm.cjs.map} +1 -1
- package/dist/ToolsTab-BkabqeR_.cjs +7 -0
- package/dist/{ToolsTab-CGztf9_j.cjs.map → ToolsTab-BkabqeR_.cjs.map} +1 -1
- package/dist/{ToolsTab-DKYeIlXu.js → ToolsTab-tkganPCk.js} +6 -6
- package/dist/{ToolsTab-DKYeIlXu.js.map → ToolsTab-tkganPCk.js.map} +1 -1
- package/dist/{TopBar-BrCfgCxc.js → TopBar-BoI8SRaF.js} +10 -10
- package/dist/{TopBar-BrCfgCxc.js.map → TopBar-BoI8SRaF.js.map} +1 -1
- package/dist/TopBar-zJvwq8pr.cjs +2 -0
- package/dist/{TopBar-B0UcAtIW.cjs.map → TopBar-zJvwq8pr.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-CGyR2v7U.js → UpgradeToEnterpriseDialog-BYz9YoyY.js} +9 -9
- package/dist/{UpgradeToEnterpriseDialog-CGyR2v7U.js.map → UpgradeToEnterpriseDialog-BYz9YoyY.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-DJ3oth3I.cjs → UpgradeToEnterpriseDialog-BxHUptQB.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-DJ3oth3I.cjs.map → UpgradeToEnterpriseDialog-BxHUptQB.cjs.map} +1 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs +1498 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BflJrsRh.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js} +12916 -12652
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-quWsUlLr.js.map +1 -0
- package/dist/VWidget-3ziiUuPM.cjs +2 -0
- package/dist/VWidget-3ziiUuPM.cjs.map +1 -0
- package/dist/VWidget-CoIgX3hM.js +190 -0
- package/dist/VWidget-CoIgX3hM.js.map +1 -0
- package/dist/{ValueWidget-3jNtnh5i.js → ValueWidget-BvT1ASar.js} +4 -4
- package/dist/{ValueWidget-3jNtnh5i.js.map → ValueWidget-BvT1ASar.js.map} +1 -1
- package/dist/{ValueWidget-CjZeSiPQ.cjs → ValueWidget-RU-vFOh9.cjs} +2 -2
- package/dist/{ValueWidget-CjZeSiPQ.cjs.map → ValueWidget-RU-vFOh9.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-CkLbRP8P.cjs → ValuelimitsbarWidget-B5UtwjJW.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-CkLbRP8P.cjs.map → ValuelimitsbarWidget-B5UtwjJW.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-JSceOzGS.js → ValuelimitsbarWidget-C5lBnUmB.js} +4 -4
- package/dist/{ValuelimitsbarWidget-JSceOzGS.js.map → ValuelimitsbarWidget-C5lBnUmB.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DpU4BoB7.cjs → ValuelimitscolumnWidget-BruOZb26.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-DpU4BoB7.cjs.map → ValuelimitscolumnWidget-BruOZb26.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-HR1TNHwQ.js → ValuelimitscolumnWidget-DHYI0WBL.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-HR1TNHwQ.js.map → ValuelimitscolumnWidget-DHYI0WBL.js.map} +1 -1
- package/dist/{ValuerangebarWidget-DnZrho8S.js → ValuerangebarWidget-BSszZhlE.js} +4 -4
- package/dist/{ValuerangebarWidget-DnZrho8S.js.map → ValuerangebarWidget-BSszZhlE.js.map} +1 -1
- package/dist/{ValuerangebarWidget-CpZYmUl_.cjs → ValuerangebarWidget-BhQVRHhm.cjs} +2 -2
- package/dist/{ValuerangebarWidget-CpZYmUl_.cjs.map → ValuerangebarWidget-BhQVRHhm.cjs.map} +1 -1
- package/dist/{VerticalWidget-DJvoxqLE.js → VerticalWidget-1GhgYrC3.js} +13 -13
- package/dist/{VerticalWidget-DJvoxqLE.js.map → VerticalWidget-1GhgYrC3.js.map} +1 -1
- package/dist/VerticalWidget-XZrIw9zV.cjs +2 -0
- package/dist/{VerticalWidget-CcJMMaK_.cjs.map → VerticalWidget-XZrIw9zV.cjs.map} +1 -1
- package/dist/VerticalboxWidget-BV-onQ8m.cjs +2 -0
- package/dist/{VerticalboxWidget-CJR_mOLa.cjs.map → VerticalboxWidget-BV-onQ8m.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-CYYyLBoO.js → VerticalboxWidget-DYHJqEzd.js} +13 -13
- package/dist/{VerticalboxWidget-CYYyLBoO.js.map → VerticalboxWidget-DYHJqEzd.js.map} +1 -1
- package/dist/{Widget-Bn_S-zBo.js → Widget-B8t93Oid.js} +4 -4
- package/dist/Widget-B8t93Oid.js.map +1 -0
- package/dist/{Widget-O7wkmc39.cjs → Widget-Blq-k5SB.cjs} +2 -2
- package/dist/{Widget-O7wkmc39.cjs.map → Widget-Blq-k5SB.cjs.map} +1 -1
- package/dist/cmdUtilities-BMsSNjt_.js +46 -0
- package/dist/cmdUtilities-BMsSNjt_.js.map +1 -0
- package/dist/cmdUtilities-ChD8v8-7.cjs +2 -0
- package/dist/cmdUtilities-ChD8v8-7.cjs.map +1 -0
- package/dist/components.cjs +3 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +685 -823
- package/dist/components.js.map +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js.map +1 -1
- package/dist/{index-qCq0L4jN.js → index-DDjz5VQq.js} +345 -327
- package/dist/index-DDjz5VQq.js.map +1 -0
- package/dist/index-DZh4NjG5.cjs +7 -0
- package/dist/index-DZh4NjG5.cjs.map +1 -0
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +184 -177
- package/dist/plugins.js.map +1 -1
- package/dist/settings-DyvFSj59.cjs +2 -0
- package/dist/settings-DyvFSj59.cjs.map +1 -0
- package/dist/settings-UZsgbUSr.js +34 -0
- package/dist/settings-UZsgbUSr.js.map +1 -0
- package/dist/tools/admin.cjs +3 -3
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +84 -76
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +504 -473
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +34 -34
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +945 -876
- package/dist/tools/scriptrunner.js.map +1 -1
- package/dist/util.cjs +1 -1
- package/dist/util.js +4 -2
- package/dist/util.js.map +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +63 -63
- package/package.json +15 -15
- package/dist/ArrayplotWidget-DC41cpv1.cjs +0 -2
- package/dist/ArrayplotWidget-DC41cpv1.cjs.map +0 -1
- package/dist/ArrayplotWidget-ntRLh6-B.js.map +0 -1
- package/dist/DetailsDialog-BQE0TraI.js.map +0 -1
- package/dist/DetailsDialog-DmKpPDNn.cjs +0 -2
- package/dist/DetailsDialog-DmKpPDNn.cjs.map +0 -1
- package/dist/EventListDialog-CDcJcxy5.cjs +0 -2
- package/dist/Graph-DCihpnT0.js +0 -1853
- package/dist/Graph-DCihpnT0.js.map +0 -1
- package/dist/Graph-mSqImgca.cjs +0 -2
- package/dist/Graph-mSqImgca.cjs.map +0 -1
- package/dist/GraphWidget-CQjKAMPR.cjs +0 -2
- package/dist/HorizontalWidget--AkRJPlL.cjs +0 -2
- package/dist/HorizontalboxWidget-synL-Bar.cjs +0 -2
- package/dist/Layout-kOQnicRa.cjs +0 -2
- package/dist/LedWidget-BN8IgAxJ.js.map +0 -1
- package/dist/LedWidget-BUTbyEBi.cjs +0 -2
- package/dist/LedWidget-BUTbyEBi.cjs.map +0 -1
- package/dist/LimitsbarWidget-Co5GAHro.cjs +0 -2
- package/dist/LinegraphWidget-Bay0EtbI.cjs +0 -2
- package/dist/LinegraphWidget-Bay0EtbI.cjs.map +0 -1
- package/dist/LinegraphWidget-jXksfbPb.js.map +0 -1
- package/dist/MatrixbycolumnsWidget-DxRhvPGv.cjs +0 -2
- package/dist/Openc3Screen-BZN0Wtrm.js.map +0 -1
- package/dist/Openc3Screen-dtpBWZdA.cjs +0 -5
- package/dist/Openc3Screen-dtpBWZdA.cjs.map +0 -1
- package/dist/PackagesTab-B4V2n4io.cjs +0 -2
- package/dist/PluginsTab-DHO1tK2S.cjs +0 -6
- package/dist/PluginsTab-DHO1tK2S.cjs.map +0 -1
- package/dist/PluginsTab-lHDR5v6S.js +0 -562
- package/dist/PluginsTab-lHDR5v6S.js.map +0 -1
- package/dist/RedisTab-CdiSo-CO.cjs +0 -2
- package/dist/RedisTab-CdiSo-CO.cjs.map +0 -1
- package/dist/RedisTab-CkSwEwTZ.js +0 -135
- package/dist/RedisTab-CkSwEwTZ.js.map +0 -1
- package/dist/ScrollwindowWidget-54GU96Ve.js.map +0 -1
- package/dist/ScrollwindowWidget-C5_X-KwQ.cjs +0 -2
- package/dist/ScrollwindowWidget-C5_X-KwQ.cjs.map +0 -1
- package/dist/SettingsTab-BVnr4OtU.js +0 -1445
- package/dist/SettingsTab-BVnr4OtU.js.map +0 -1
- package/dist/SettingsTab-BkwaDhYo.cjs +0 -3
- package/dist/SettingsTab-BkwaDhYo.cjs.map +0 -1
- package/dist/ToolsTab-CGztf9_j.cjs +0 -7
- package/dist/TopBar-B0UcAtIW.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs +0 -1497
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-NIAkCgU6.js.map +0 -1
- package/dist/VWidget-BMxLXtSO.cjs +0 -2
- package/dist/VWidget-BMxLXtSO.cjs.map +0 -1
- package/dist/VWidget-j2GIGGSX.js +0 -326
- package/dist/VWidget-j2GIGGSX.js.map +0 -1
- package/dist/VerticalWidget-CcJMMaK_.cjs +0 -2
- package/dist/VerticalboxWidget-CJR_mOLa.cjs +0 -2
- package/dist/Widget-Bn_S-zBo.js.map +0 -1
- package/dist/index-DcL65Mqb.cjs +0 -7
- package/dist/index-DcL65Mqb.cjs.map +0 -1
- package/dist/index-qCq0L4jN.js.map +0 -1
package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs
DELETED
|
@@ -1,1497 +0,0 @@
|
|
|
1
|
-
"use strict";const Ze=require("vue"),yx=require("./CustomIcon-Bop2mEnu.cjs"),wx=require("./format-B22VpiOS.cjs");var mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ja(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var hc={exports:{}},Ud;function bx(){return Ud||(Ud=1,function(c,u){(function(){var e="ace",l=function(){return this}();!l&&typeof window<"u"&&(l=window);var T=function(i,s,o){if(typeof i!="string"){T.original?T.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(o=s),T.modules[i]||(T.payloads[i]=o,T.modules[i]=null)};T.modules={},T.payloads={};var b=function(i,s,o){if(typeof s=="string"){var r=p(i,s);if(r!=null)return o&&o(),r}else if(Object.prototype.toString.call(s)==="[object Array]"){for(var n=[],a=0,h=s.length;a<h;++a){var m=p(i,s[a]);if(m==null&&w.original)return;n.push(m)}return o&&o.apply(null,n)||!0}},w=function(i,s){var o=b("",i,s);return o==null&&w.original?w.original.apply(this,arguments):o},C=function(i,s){if(s.indexOf("!")!==-1){var o=s.split("!");return C(i,o[0])+"!"+C(i,o[1])}if(s.charAt(0)=="."){var r=i.split("/").slice(0,-1).join("/");for(s=r+"/"+s;s.indexOf(".")!==-1&&n!=s;){var n=s;s=s.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return s},p=function(i,s){s=C(i,s);var o=T.modules[s];if(!o){if(o=T.payloads[s],typeof o=="function"){var r={},n={id:s,uri:"",exports:r,packaged:!0},a=function(m,y){return b(s,m,y)},h=o(a,r,n);r=h||n.exports,T.modules[s]=r,delete T.payloads[s]}o=T.modules[s]=r||o}return o};function g(i){var s=l;l[i]||(l[i]={}),s=l[i],(!s.define||!s.define.packaged)&&(T.original=s.define,s.define=T,s.define.packaged=!0),(!s.require||!s.require.packaged)&&(w.original=s.require,s.require=w,s.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,l,T){function b(w,C,p){Object.defineProperty(w,C,{value:p,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||b(String.prototype,"startsWith",function(w,C){return C=C||0,this.lastIndexOf(w,C)===C}),String.prototype.endsWith||b(String.prototype,"endsWith",function(w,C){var p=this;(C===void 0||C>p.length)&&(C=p.length),C-=w.length;var g=p.indexOf(w,C);return g!==-1&&g===C}),String.prototype.repeat||b(String.prototype,"repeat",function(w){for(var C="",p=this;w>0;)w&1&&(C+=p),(w>>=1)&&(p+=p);return C}),String.prototype.includes||b(String.prototype,"includes",function(w,C){return this.indexOf(w,C)!=-1}),Object.assign||(Object.assign=function(w){if(w==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(w),p=1;p<arguments.length;p++){var g=arguments[p];g!=null&&Object.keys(g).forEach(function(i){C[i]=g[i]})}return C}),Object.values||(Object.values=function(w){return Object.keys(w).map(function(C){return w[C]})}),Array.prototype.find||b(Array.prototype,"find",function(w){for(var C=this.length,p=arguments[1],g=0;g<C;g++){var i=this[g];if(w.call(p,i,g,this))return i}}),Array.prototype.findIndex||b(Array.prototype,"findIndex",function(w){for(var C=this.length,p=arguments[1],g=0;g<C;g++){var i=this[g];if(w.call(p,i,g,this))return g}}),Array.prototype.includes||b(Array.prototype,"includes",function(w,C){return this.indexOf(w,C)!=-1}),Array.prototype.fill||b(Array.prototype,"fill",function(w){for(var C=this,p=C.length>>>0,g=arguments[1],i=g>>0,s=i<0?Math.max(p+i,0):Math.min(i,p),o=arguments[2],r=o===void 0?p:o>>0,n=r<0?Math.max(p+r,0):Math.min(r,p);s<n;)C[s]=w,s++;return C}),Array.of||b(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,l,T){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,l,T){l.deepCopy=function b(w){if(typeof w!="object"||!w)return w;var C;if(Array.isArray(w)){C=[];for(var p=0;p<w.length;p++)C[p]=b(w[p]);return C}if(Object.prototype.toString.call(w)!=="[object Object]")return w;C={};for(var p in w)C[p]=b(w[p]);return C}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,l,T){l.last=function(C){return C[C.length-1]},l.stringReverse=function(C){return C.split("").reverse().join("")},l.stringRepeat=function(C,p){for(var g="";p>0;)p&1&&(g+=C),(p>>=1)&&(C+=C);return g};var b=/^\s\s*/,w=/\s\s*$/;l.stringTrimLeft=function(C){return C.replace(b,"")},l.stringTrimRight=function(C){return C.replace(w,"")},l.copyObject=function(C){var p={};for(var g in C)p[g]=C[g];return p},l.copyArray=function(C){for(var p=[],g=0,i=C.length;g<i;g++)C[g]&&typeof C[g]=="object"?p[g]=this.copyObject(C[g]):p[g]=C[g];return p},l.deepCopy=e("./deep_copy").deepCopy,l.arrayToMap=function(C){for(var p={},g=0;g<C.length;g++)p[C[g]]=1;return p},l.createMap=function(C){var p=Object.create(null);for(var g in C)p[g]=C[g];return p},l.arrayRemove=function(C,p){for(var g=0;g<=C.length;g++)p===C[g]&&C.splice(g,1)},l.escapeRegExp=function(C){return C.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},l.escapeHTML=function(C){return(""+C).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},l.getMatchOffsets=function(C,p){var g=[];return C.replace(p,function(i){g.push({offset:arguments[arguments.length-2],length:i.length})}),g},l.deferredCall=function(C){var p=null,g=function(){p=null,C()},i=function(s){return i.cancel(),p=setTimeout(g,s||0),i};return i.schedule=i,i.call=function(){return this.cancel(),C(),i},i.cancel=function(){return clearTimeout(p),p=null,i},i.isPending=function(){return p},i},l.delayedCall=function(C,p){var g=null,i=function(){g=null,C()},s=function(o){g==null&&(g=setTimeout(i,o||p))};return s.delay=function(o){g&&clearTimeout(g),g=setTimeout(i,o||p)},s.schedule=s,s.call=function(){this.cancel(),C()},s.cancel=function(){g&&clearTimeout(g),g=null},s.isPending=function(){return g},s},l.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},l.skipEmptyMatch=function(C,p,g){return g&&C.codePointAt(p)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,l,T){l.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},l.getOS=function(){return l.isMac?l.OS.MAC:l.isLinux?l.OS.LINUX:l.OS.WINDOWS};var b=typeof navigator=="object"?navigator:{},w=(/mac|win|linux/i.exec(b.platform)||["other"])[0].toLowerCase(),C=b.userAgent||"",p=b.appName||"";l.isWin=w=="win",l.isMac=w=="mac",l.isLinux=w=="linux",l.isIE=p=="Microsoft Internet Explorer"||p.indexOf("MSAppHost")>=0?parseFloat((C.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((C.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),l.isOldIE=l.isIE&&l.isIE<9,l.isGecko=l.isMozilla=C.match(/ Gecko\/\d+/),l.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",l.isWebKit=parseFloat(C.split("WebKit/")[1])||void 0,l.isChrome=parseFloat(C.split(" Chrome/")[1])||void 0,l.isSafari=parseFloat(C.split(" Safari/")[1])&&!l.isChrome||void 0,l.isEdge=parseFloat(C.split(" Edge/")[1])||void 0,l.isAIR=C.indexOf("AdobeAIR")>=0,l.isAndroid=C.indexOf("Android")>=0,l.isChromeOS=C.indexOf(" CrOS ")>=0,l.isIOS=/iPad|iPhone|iPod/.test(C)&&!window.MSStream,l.isIOS&&(l.isMac=!0),l.isMobile=l.isIOS||l.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,l,T){var b=e("./useragent"),w="http://www.w3.org/1999/xhtml";l.buildDom=function o(r,n,a){if(typeof r=="string"&&r){var h=document.createTextNode(r);return n&&n.appendChild(h),h}if(!Array.isArray(r))return r&&r.appendChild&&n&&n.appendChild(r),r;if(typeof r[0]!="string"||!r[0]){for(var m=[],y=0;y<r.length;y++){var E=o(r[y],n,a);E&&m.push(E)}return m}var M=document.createElement(r[0]),_=r[1],v=1;_&&typeof _=="object"&&!Array.isArray(_)&&(v=2);for(var y=v;y<r.length;y++)o(r[y],M,a);return v==2&&Object.keys(_).forEach(function(R){var I=_[R];R==="class"?M.className=Array.isArray(I)?I.join(" "):I:typeof I=="function"||R=="value"||R[0]=="$"?M[R]=I:R==="ref"?a&&(a[I]=M):R==="style"?typeof I=="string"&&(M.style.cssText=I):I!=null&&M.setAttribute(R,I)}),n&&n.appendChild(M),M},l.getDocumentHead=function(o){return o||(o=document),o.head||o.getElementsByTagName("head")[0]||o.documentElement},l.createElement=function(o,r){return document.createElementNS?document.createElementNS(r||w,o):document.createElement(o)},l.removeChildren=function(o){o.innerHTML=""},l.createTextNode=function(o,r){var n=r?r.ownerDocument:document;return n.createTextNode(o)},l.createFragment=function(o){var r=o?o.ownerDocument:document;return r.createDocumentFragment()},l.hasCssClass=function(o,r){var n=(o.className+"").split(/\s+/g);return n.indexOf(r)!==-1},l.addCssClass=function(o,r){l.hasCssClass(o,r)||(o.className+=" "+r)},l.removeCssClass=function(o,r){for(var n=o.className.split(/\s+/g);;){var a=n.indexOf(r);if(a==-1)break;n.splice(a,1)}o.className=n.join(" ")},l.toggleCssClass=function(o,r){for(var n=o.className.split(/\s+/g),a=!0;;){var h=n.indexOf(r);if(h==-1)break;a=!1,n.splice(h,1)}return a&&n.push(r),o.className=n.join(" "),a},l.setCssClass=function(o,r,n){n?l.addCssClass(o,r):l.removeCssClass(o,r)},l.hasCssString=function(o,r){var n=0,a;if(r=r||document,a=r.querySelectorAll("style")){for(;n<a.length;)if(a[n++].id===o)return!0}},l.removeElementById=function(o,r){r=r||document,r.getElementById(o)&&r.getElementById(o).remove()};var C,p=[];l.useStrictCSP=function(o){C=o,o==!1?g():p||(p=[])};function g(){var o=p;p=null,o&&o.forEach(function(r){i(r[0],r[1])})}function i(o,r,n){if(!(typeof document>"u")){if(p){if(n)g();else if(n===!1)return p.push([o,r])}if(!C){var a=n;!n||!n.getRootNode?a=document:(a=n.getRootNode(),(!a||a==n)&&(a=document));var h=a.ownerDocument||a;if(r&&l.hasCssString(r,a))return null;r&&(o+=`
|
|
2
|
-
/*# sourceURL=ace/css/`+r+" */");var m=l.createElement("style");m.appendChild(h.createTextNode(o)),r&&(m.id=r),a==h&&(a=l.getDocumentHead(h)),a.insertBefore(m,a.firstChild)}}}if(l.importCssString=i,l.importCssStylsheet=function(o,r){l.buildDom(["link",{rel:"stylesheet",href:o}],l.getDocumentHead(r))},l.scrollbarWidth=function(o){var r=l.createElement("ace_inner");r.style.width="100%",r.style.minWidth="0px",r.style.height="200px",r.style.display="block";var n=l.createElement("ace_outer"),a=n.style;a.position="absolute",a.left="-10000px",a.overflow="hidden",a.width="200px",a.minWidth="0px",a.height="150px",a.display="block",n.appendChild(r);var h=o&&o.documentElement||document&&document.documentElement;if(!h)return 0;h.appendChild(n);var m=r.offsetWidth;a.overflow="scroll";var y=r.offsetWidth;return m===y&&(y=n.clientWidth),h.removeChild(n),m-y},l.computedStyle=function(o,r){return window.getComputedStyle(o,"")||{}},l.setStyle=function(o,r,n){o[r]!==n&&(o[r]=n)},l.HAS_CSS_ANIMATION=!1,l.HAS_CSS_TRANSFORMS=!1,l.HI_DPI=b.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,b.isChromeOS&&(l.HI_DPI=!1),typeof document<"u"){var s=document.createElement("div");l.HI_DPI&&s.style.transform!==void 0&&(l.HAS_CSS_TRANSFORMS=!0),!b.isEdge&&typeof s.style.animationName<"u"&&(l.HAS_CSS_ANIMATION=!0),s=null}l.HAS_CSS_TRANSFORMS?l.translate=function(o,r,n){o.style.transform="translate("+Math.round(r)+"px, "+Math.round(n)+"px)"}:l.translate=function(o,r,n){o.style.top=Math.round(n)+"px",o.style.left=Math.round(r)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,l,T){/*
|
|
3
|
-
* based on code from:
|
|
4
|
-
*
|
|
5
|
-
* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
|
6
|
-
* Available via the MIT or new BSD license.
|
|
7
|
-
* see: http://github.com/jrburke/requirejs for details
|
|
8
|
-
*/var b=e("./dom");l.get=function(w,C){var p=new XMLHttpRequest;p.open("GET",w,!0),p.onreadystatechange=function(){p.readyState===4&&C(p.responseText)},p.send(null)},l.loadScript=function(w,C){var p=b.getDocumentHead(),g=document.createElement("script");g.src=w,p.appendChild(g),g.onload=g.onreadystatechange=function(i,s){(s||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,s||C())}},l.qualifyURL=function(w){var C=document.createElement("a");return C.href=w,C.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,l,T){l.inherits=function(b,w){b.super_=w,b.prototype=Object.create(w.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})},l.mixin=function(b,w){for(var C in w)b[C]=w[C];return b},l.implement=function(b,w){l.mixin(b,w)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,l,T){var b={},w=function(){this.propagationStopped=!0},C=function(){this.defaultPrevented=!0};b._emit=b._dispatchEvent=function(p,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[p]||[],s=this._defaultHandlers[p];if(!(!i.length&&!s)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=p),g.stopPropagation||(g.stopPropagation=w),g.preventDefault||(g.preventDefault=C),i=i.slice();for(var o=0;o<i.length&&(i[o](g,this),!g.propagationStopped);o++);if(s&&!g.defaultPrevented)return s(g,this)}},b._signal=function(p,g){var i=(this._eventRegistry||{})[p];if(i){i=i.slice();for(var s=0;s<i.length;s++)i[s](g,this)}},b.once=function(p,g){var i=this;if(this.on(p,function s(){i.off(p,s),g.apply(null,arguments)}),!g)return new Promise(function(s){g=s})},b.setDefaultHandler=function(p,g){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[p]){var s=i[p],o=i._disabled_[p];o||(i._disabled_[p]=o=[]),o.push(s);var r=o.indexOf(g);r!=-1&&o.splice(r,1)}i[p]=g},b.removeDefaultHandler=function(p,g){var i=this._defaultHandlers;if(i){var s=i._disabled_[p];if(i[p]==g)s&&this.setDefaultHandler(p,s.pop());else if(s){var o=s.indexOf(g);o!=-1&&s.splice(o,1)}}},b.on=b.addEventListener=function(p,g,i){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[p];return s||(s=this._eventRegistry[p]=[]),s.indexOf(g)==-1&&s[i?"unshift":"push"](g),g},b.off=b.removeListener=b.removeEventListener=function(p,g){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[p];if(i){var s=i.indexOf(g);s!==-1&&i.splice(s,1)}},b.removeAllListeners=function(p){p||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[p]=void 0),this._defaultHandlers&&(this._defaultHandlers[p]=void 0)},l.EventEmitter=b}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,l,T){l.reportError=function(w,C){var p=new Error(w);p.data=C,typeof console=="object"&&console.error&&console.error(p),setTimeout(function(){throw p})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,l,T){var b={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor gutter","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions","editor.tooltip.disable-editing":"Editing is disabled"};l.defaultEnglishMessages=b}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(e,l,T){"no use strict";var b=e("./oop"),w=e("./event_emitter").EventEmitter,C=e("./report_error").reportError,p=e("./default_english_messages").defaultEnglishMessages,g={setOptions:function(n){Object.keys(n).forEach(function(a){this.setOption(a,n[a])},this)},getOptions:function(n){var a={};if(n)Array.isArray(n)||(a=n,n=Object.keys(a));else{var h=this.$options;n=Object.keys(h).filter(function(m){return!h[m].hidden})}return n.forEach(function(m){a[m]=this.getOption(m)},this),a},setOption:function(n,a){if(this["$"+n]!==a){var h=this.$options[n];if(!h)return i('misspelled option "'+n+'"');if(h.forwardTo)return this[h.forwardTo]&&this[h.forwardTo].setOption(n,a);h.handlesSet||(this["$"+n]=a),h&&h.set&&h.set.call(this,a)}},getOption:function(n){var a=this.$options[n];return a?a.forwardTo?this[a.forwardTo]&&this[a.forwardTo].getOption(n):a&&a.get?a.get.call(this):this["$"+n]:i('misspelled option "'+n+'"')}};function i(n){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var s,o,r=function(){function n(){this.$defaultOptions={},s=p,o="dollarSigns"}return n.prototype.defineOptions=function(a,h,m){return a.$options||(this.$defaultOptions[h]=a.$options={}),Object.keys(m).forEach(function(y){var E=m[y];typeof E=="string"&&(E={forwardTo:E}),E.name||(E.name=y),a.$options[E.name]=E,"initialValue"in E&&(a["$"+E.name]=E.initialValue)}),b.implement(a,g),this},n.prototype.resetOptions=function(a){Object.keys(a.$options).forEach(function(h){var m=a.$options[h];"value"in m&&a.setOption(h,m.value)})},n.prototype.setDefaultValue=function(a,h,m){if(!a){for(a in this.$defaultOptions)if(this.$defaultOptions[a][h])break;if(!this.$defaultOptions[a][h])return!1}var y=this.$defaultOptions[a]||(this.$defaultOptions[a]={});y[h]&&(y.forwardTo?this.setDefaultValue(y.forwardTo,h,m):y[h].value=m)},n.prototype.setDefaultValues=function(a,h){Object.keys(h).forEach(function(m){this.setDefaultValue(a,m,h[m])},this)},n.prototype.setMessages=function(a,h){s=a,h&&h.placeholders&&(o=h.placeholders)},n.prototype.nls=function(a,h,m){s[a]||(i("No message found for the key '"+a+"' in messages with id "+s.$id+", trying to find a translation for the default string '"+h+"'."),s[h]||i("No message found for the default string '"+h+"' in the provided messages. Falling back to the default English message."));var y=s[a]||s[h]||h;return m&&(o==="dollarSigns"&&(y=y.replace(/\$(\$|[\d]+)/g,function(E,M){return M=="$"?"$":m[M]})),o==="curlyBrackets"&&(y=y.replace(/\{([^\}]+)\}/g,function(E,M){return m[M]}))),y},n}();r.prototype.warn=i,r.prototype.reportError=C,b.implement(r.prototype,w),l.AppConfig=r}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,l,T){T.exports=`.ace-tm .ace_gutter {
|
|
9
|
-
background: #f0f0f0;
|
|
10
|
-
color: #333;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ace-tm .ace_print-margin {
|
|
14
|
-
width: 1px;
|
|
15
|
-
background: #e8e8e8;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ace-tm .ace_fold {
|
|
19
|
-
background-color: #6B72E6;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ace-tm {
|
|
23
|
-
background-color: #FFFFFF;
|
|
24
|
-
color: black;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ace-tm .ace_cursor {
|
|
28
|
-
color: black;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ace-tm .ace_invisible {
|
|
32
|
-
color: rgb(191, 191, 191);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ace-tm .ace_storage,
|
|
36
|
-
.ace-tm .ace_keyword {
|
|
37
|
-
color: blue;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ace-tm .ace_constant {
|
|
41
|
-
color: rgb(197, 6, 11);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ace-tm .ace_constant.ace_buildin {
|
|
45
|
-
color: rgb(88, 72, 246);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ace-tm .ace_constant.ace_language {
|
|
49
|
-
color: rgb(88, 92, 246);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ace-tm .ace_constant.ace_library {
|
|
53
|
-
color: rgb(6, 150, 14);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ace-tm .ace_invalid {
|
|
57
|
-
background-color: rgba(255, 0, 0, 0.1);
|
|
58
|
-
color: red;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ace-tm .ace_support.ace_function {
|
|
62
|
-
color: rgb(60, 76, 114);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ace-tm .ace_support.ace_constant {
|
|
66
|
-
color: rgb(6, 150, 14);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ace-tm .ace_support.ace_type,
|
|
70
|
-
.ace-tm .ace_support.ace_class {
|
|
71
|
-
color: rgb(109, 121, 222);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ace-tm .ace_keyword.ace_operator {
|
|
75
|
-
color: rgb(104, 118, 135);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ace-tm .ace_string {
|
|
79
|
-
color: rgb(3, 106, 7);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ace-tm .ace_comment {
|
|
83
|
-
color: rgb(76, 136, 107);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.ace-tm .ace_comment.ace_doc {
|
|
87
|
-
color: rgb(0, 102, 255);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.ace-tm .ace_comment.ace_doc.ace_tag {
|
|
91
|
-
color: rgb(128, 159, 191);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ace-tm .ace_constant.ace_numeric {
|
|
95
|
-
color: rgb(0, 0, 205);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ace-tm .ace_variable {
|
|
99
|
-
color: rgb(49, 132, 149);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ace-tm .ace_xml-pe {
|
|
103
|
-
color: rgb(104, 104, 91);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ace-tm .ace_entity.ace_name.ace_function {
|
|
107
|
-
color: #0000A2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.ace-tm .ace_heading {
|
|
112
|
-
color: rgb(12, 7, 255);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.ace-tm .ace_list {
|
|
116
|
-
color:rgb(185, 6, 144);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ace-tm .ace_meta.ace_tag {
|
|
120
|
-
color:rgb(0, 22, 142);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.ace-tm .ace_string.ace_regex {
|
|
124
|
-
color: rgb(255, 0, 0)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ace-tm .ace_marker-layer .ace_selection {
|
|
128
|
-
background: rgb(181, 213, 255);
|
|
129
|
-
}
|
|
130
|
-
.ace-tm.ace_multiselect .ace_selection.ace_start {
|
|
131
|
-
box-shadow: 0 0 3px 0px white;
|
|
132
|
-
}
|
|
133
|
-
.ace-tm .ace_marker-layer .ace_step {
|
|
134
|
-
background: rgb(252, 255, 0);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.ace-tm .ace_marker-layer .ace_stack {
|
|
138
|
-
background: rgb(164, 229, 101);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.ace-tm .ace_marker-layer .ace_bracket {
|
|
142
|
-
margin: -1px 0 0 -1px;
|
|
143
|
-
border: 1px solid rgb(192, 192, 192);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ace-tm .ace_marker-layer .ace_active-line {
|
|
147
|
-
background: rgba(0, 0, 0, 0.07);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ace-tm .ace_gutter-active-line {
|
|
151
|
-
background-color : #dcdcdc;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ace-tm .ace_marker-layer .ace_selected-word {
|
|
155
|
-
background: rgb(250, 250, 255);
|
|
156
|
-
border: 1px solid rgb(200, 200, 250);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ace-tm .ace_indent-guide {
|
|
160
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.ace-tm .ace_indent-guide-active {
|
|
164
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
|
-
}
|
|
166
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,l,T){l.isDark=!1,l.cssClass="ace-tm",l.cssText=e("./textmate-css"),l.$id="ace/theme/textmate";var b=e("../lib/dom");b.importCssString(l.cssText,l.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,l,T){"no use strict";var b=e("./lib/lang"),w=e("./lib/net"),C=e("./lib/dom"),p=e("./lib/app_config").AppConfig;T.exports=l=new p;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};l.get=function(r){if(!g.hasOwnProperty(r))throw new Error("Unknown config key: "+r);return g[r]},l.set=function(r,n){if(g.hasOwnProperty(r))g[r]=n;else if(this.setDefaultValue("",r,n)==!1)throw new Error("Unknown config key: "+r);r=="useStrictCSP"&&C.useStrictCSP(n)},l.all=function(){return b.copyObject(g)},l.$modes={},l.moduleUrl=function(r,n){if(g.$moduleUrls[r])return g.$moduleUrls[r];var a=r.split("/");n=n||a[a.length-2]||"";var h=n=="snippets"?"/":"-",m=a[a.length-1];if(n=="worker"&&h=="-"){var y=new RegExp("^"+n+"[\\-_]|[\\-_]"+n+"$","g");m=m.replace(y,"")}(!m||m==n)&&a.length>1&&(m=a[a.length-2]);var E=g[n+"Path"];return E==null?E=g.basePath:h=="/"&&(n=h=""),E&&E.slice(-1)!="/"&&(E+="/"),E+n+h+m+this.get("suffix")},l.setModuleUrl=function(r,n){return g.$moduleUrls[r]=n};var i=function(r,n){if(r==="ace/theme/textmate"||r==="./theme/textmate")return n(null,e("./theme/textmate"));if(s)return s(r,n);console.error("loader is not configured")},s;l.setLoader=function(r){s=r},l.dynamicModules=Object.create(null),l.$loading={},l.$loaded={},l.loadModule=function(r,n){var a;if(Array.isArray(r))var h=r[0],m=r[1];else if(typeof r=="string")var m=r;var y=function(E){if(E&&!l.$loading[m])return n&&n(E);if(l.$loading[m]||(l.$loading[m]=[]),l.$loading[m].push(n),!(l.$loading[m].length>1)){var M=function(){i(m,function(_,v){v&&(l.$loaded[m]=v),l._emit("load.module",{name:m,module:v});var R=l.$loading[m];l.$loading[m]=null,R.forEach(function(I){I&&I(v)})})};if(!l.get("packaged"))return M();w.loadScript(l.moduleUrl(m,h),M),o()}};if(l.dynamicModules[m])l.dynamicModules[m]().then(function(E){E.default?y(E.default):y(E)});else{try{a=this.$require(m)}catch{}y(a||l.$loaded[m])}},l.$require=function(r){if(typeof T.require=="function"){var n="require";return T[n](r)}},l.setModuleLoader=function(r,n){l.dynamicModules[r]=n};var o=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),o=function(){})};l.version="1.40.1"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,l,T){e("./lib/fixoldbrowsers");var b=e("./config");b.setLoader(function(g,i){e([g],function(s){i(null,s)})});var w=function(){return this||typeof window<"u"&&window}();T.exports=function(g){b.init=C,b.$require=e,g.require=e},C(!0);function C(g){if(!(!w||!w.document)){b.set("packaged",g||e.packaged||T.packaged||w.define&&(void 0).packaged);var i={},s="",o=document.currentScript||document._currentScript,r=o&&o.ownerDocument||document;o&&o.src&&(s=o.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var n=r.getElementsByTagName("script"),a=0;a<n.length;a++){var h=n[a],m=h.src||h.getAttribute("src");if(m){for(var y=h.attributes,E=0,M=y.length;E<M;E++){var _=y[E];_.name.indexOf("data-ace-")===0&&(i[p(_.name.replace(/^data-ace-/,""))]=_.value)}var v=m.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);v&&(s=v[1])}}s&&(i.base=i.base||s,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base;for(var R in i)typeof i[R]<"u"&&b.set(R,i[R])}}function p(g){return g.replace(/-(.)/g,function(i,s){return s.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,l,T){var b=function(){function w(C,p,g,i){this.start={row:C,column:p},this.end={row:g,column:i}}return w.prototype.isEqual=function(C){return this.start.row===C.start.row&&this.end.row===C.end.row&&this.start.column===C.start.column&&this.end.column===C.end.column},w.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},w.prototype.contains=function(C,p){return this.compare(C,p)==0},w.prototype.compareRange=function(C){var p,g=C.end,i=C.start;return p=this.compare(g.row,g.column),p==1?(p=this.compare(i.row,i.column),p==1?2:p==0?1:0):p==-1?-2:(p=this.compare(i.row,i.column),p==-1?-1:p==1?42:0)},w.prototype.comparePoint=function(C){return this.compare(C.row,C.column)},w.prototype.containsRange=function(C){return this.comparePoint(C.start)==0&&this.comparePoint(C.end)==0},w.prototype.intersects=function(C){var p=this.compareRange(C);return p==-1||p==0||p==1},w.prototype.isEnd=function(C,p){return this.end.row==C&&this.end.column==p},w.prototype.isStart=function(C,p){return this.start.row==C&&this.start.column==p},w.prototype.setStart=function(C,p){typeof C=="object"?(this.start.column=C.column,this.start.row=C.row):(this.start.row=C,this.start.column=p)},w.prototype.setEnd=function(C,p){typeof C=="object"?(this.end.column=C.column,this.end.row=C.row):(this.end.row=C,this.end.column=p)},w.prototype.inside=function(C,p){return this.compare(C,p)==0?!(this.isEnd(C,p)||this.isStart(C,p)):!1},w.prototype.insideStart=function(C,p){return this.compare(C,p)==0?!this.isEnd(C,p):!1},w.prototype.insideEnd=function(C,p){return this.compare(C,p)==0?!this.isStart(C,p):!1},w.prototype.compare=function(C,p){return!this.isMultiLine()&&C===this.start.row?p<this.start.column?-1:p>this.end.column?1:0:C<this.start.row?-1:C>this.end.row?1:this.start.row===C?p>=this.start.column?0:-1:this.end.row===C?p<=this.end.column?0:1:0},w.prototype.compareStart=function(C,p){return this.start.row==C&&this.start.column==p?-1:this.compare(C,p)},w.prototype.compareEnd=function(C,p){return this.end.row==C&&this.end.column==p?1:this.compare(C,p)},w.prototype.compareInside=function(C,p){return this.end.row==C&&this.end.column==p?1:this.start.row==C&&this.start.column==p?-1:this.compare(C,p)},w.prototype.clipRows=function(C,p){if(this.end.row>p)var g={row:p+1,column:0};else if(this.end.row<C)var g={row:C,column:0};if(this.start.row>p)var i={row:p+1,column:0};else if(this.start.row<C)var i={row:C,column:0};return w.fromPoints(i||this.start,g||this.end)},w.prototype.extend=function(C,p){var g=this.compare(C,p);if(g==0)return this;if(g==-1)var i={row:C,column:p};else var s={row:C,column:p};return w.fromPoints(i||this.start,s||this.end)},w.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},w.prototype.isMultiLine=function(){return this.start.row!==this.end.row},w.prototype.clone=function(){return w.fromPoints(this.start,this.end)},w.prototype.collapseRows=function(){return this.end.column==0?new w(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new w(this.start.row,0,this.end.row,0)},w.prototype.toScreenRange=function(C){var p=C.documentToScreenPosition(this.start),g=C.documentToScreenPosition(this.end);return new w(p.row,p.column,g.row,g.column)},w.prototype.moveBy=function(C,p){this.start.row+=C,this.start.column+=p,this.end.row+=C,this.end.column+=p},w}();b.fromPoints=function(w,C){return new b(w.row,w.column,C.row,C.column)},b.comparePoints=function(w,C){return w.row-C.row||w.column-C.column},l.Range=b}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,l,T){for(var b=e("./oop"),w={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},C={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},p=0;p<10;p++)C["Digit"+p]=48+p,C["Numpad"+p]=96+p,w.PRINTABLE_KEYS[48+p]=""+p,w.FUNCTION_KEYS[96+p]="Numpad"+p;for(var p=65;p<91;p++){var g=String.fromCharCode(p+32);C["Key"+g.toUpperCase()]=p,w.PRINTABLE_KEYS[p]=g}for(var p=1;p<13;p++)C["F"+p]=111+p,w.FUNCTION_KEYS[111+p]="F"+p;var i={Shift:16,Control:17,Alt:18,Meta:224};for(var s in i)C[s]=C[s+"Left"]=C[s+"Right"]=i[s];l.$codeToKeyCode=C,w.PRINTABLE_KEYS[173]="-";for(var o in w.FUNCTION_KEYS){var r=w.FUNCTION_KEYS[o].toLowerCase();w[r]=parseInt(o,10)}for(var o in w.PRINTABLE_KEYS){var r=w.PRINTABLE_KEYS[o].toLowerCase();w[r]=parseInt(o,10)}b.mixin(w,w.MODIFIER_KEYS),b.mixin(w,w.PRINTABLE_KEYS),b.mixin(w,w.FUNCTION_KEYS),w.enter=w.return,w.escape=w.esc,w.del=w.delete,function(){for(var n=["cmd","ctrl","alt","shift"],a=Math.pow(2,n.length);a--;)w.KEY_MODS[a]=n.filter(function(h){return a&w.KEY_MODS[h]}).join("-")+"-"}(),w.KEY_MODS[0]="",w.KEY_MODS[-1]="input-",b.mixin(l,w),l.default=l,l.keyCodeToString=function(n){var a=w[n];return typeof a!="string"&&(a=String.fromCharCode(n)),a.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,l,T){var b=e("./keys"),w=e("./useragent"),C=null,p=0,g;function i(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function s(){return g==null&&i(),g}function o(E,M,_){this.elem=E,this.type=M,this.callback=_}o.prototype.destroy=function(){n(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var r=l.addListener=function(E,M,_,v){E.addEventListener(M,_,s()),v&&v.$toDestroy.push(new o(E,M,_))},n=l.removeListener=function(E,M,_){E.removeEventListener(M,_,s())};l.stopEvent=function(E){return l.stopPropagation(E),l.preventDefault(E),!1},l.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},l.preventDefault=function(E){E.preventDefault&&E.preventDefault()},l.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||w.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},l.capture=function(E,M,_){var v=E&&E.ownerDocument||document;function R(I){M&&M(I),_&&_(I),n(v,"mousemove",M),n(v,"mouseup",R),n(v,"dragstart",R)}return r(v,"mousemove",M),r(v,"mouseup",R),r(v,"dragstart",R),R},l.addMouseWheelListener=function(E,M,_){r(E,"wheel",function(v){var R=.15,I=v.deltaX||0,F=v.deltaY||0;switch(v.deltaMode){case v.DOM_DELTA_PIXEL:v.wheelX=I*R,v.wheelY=F*R;break;case v.DOM_DELTA_LINE:var L=15;v.wheelX=I*L,v.wheelY=F*L;break;case v.DOM_DELTA_PAGE:var U=150;v.wheelX=I*U,v.wheelY=F*U;break}M(v)},_)},l.addMultiMouseDownListener=function(E,M,_,v,R){var I=0,F,L,U,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O(S){if(l.getButton(S)!==0?I=0:S.detail>1?(I++,I>4&&(I=1)):I=1,w.isIE){var k=Math.abs(S.clientX-F)>5||Math.abs(S.clientY-L)>5;(!U||k)&&(I=1),U&&clearTimeout(U),U=setTimeout(function(){U=null},M[I-1]||600),I==1&&(F=S.clientX,L=S.clientY)}if(S._clicks=I,_[v]("mousedown",S),I>4)I=0;else if(I>1)return _[v](P[I],S)}Array.isArray(E)||(E=[E]),E.forEach(function(S){r(S,"mousedown",O,R)})};function a(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)}l.getModifierString=function(E){return b.KEY_MODS[a(E)]};function h(E,M,_){var v=a(M);if(!_&&M.code&&(_=b.$codeToKeyCode[M.code]||_),!w.isMac&&C){if(M.getModifierState&&(M.getModifierState("OS")||M.getModifierState("Win"))&&(v|=8),C.altGr)if((3&v)!=3)C.altGr=0;else return;if(_===18||_===17){var R=M.location;if(_===17&&R===1)C[_]==1&&(p=M.timeStamp);else if(_===18&&v===3&&R===2){var I=M.timeStamp-p;I<50&&(C.altGr=!0)}}}if(_ in b.MODIFIER_KEYS&&(_=-1),!(!v&&_===13&&M.location===3&&(E(M,v,-_),M.defaultPrevented))){if(w.isChromeOS&&v&8){if(E(M,v,_),M.defaultPrevented)return;v&=-9}return!v&&!(_ in b.FUNCTION_KEYS)&&!(_ in b.PRINTABLE_KEYS)?!1:E(M,v,_)}}l.addCommandKeyListener=function(E,M,_){var v=null;r(E,"keydown",function(R){C[R.keyCode]=(C[R.keyCode]||0)+1;var I=h(M,R,R.keyCode);return v=R.defaultPrevented,I},_),r(E,"keypress",function(R){v&&(R.ctrlKey||R.altKey||R.shiftKey||R.metaKey)&&(l.stopEvent(R),v=null)},_),r(E,"keyup",function(R){C[R.keyCode]=null},_),C||(m(),r(window,"focus",m))};function m(){C=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!w.isOldIE){var y=1;l.nextTick=function(E,M){M=M||window;var _="zero-timeout-message-"+y++,v=function(R){R.data==_&&(l.stopPropagation(R),n(M,"message",v),E())};r(M,"message",v),M.postMessage(_,"*")}}l.$idleBlocked=!1,l.onIdle=function(E,M){return setTimeout(function _(){l.$idleBlocked?setTimeout(_,100):E()},M)},l.$idleBlockId=null,l.blockIdle=function(E){l.$idleBlockId&&clearTimeout(l.$idleBlockId),l.$idleBlocked=!0,l.$idleBlockId=setTimeout(function(){l.$idleBlocked=!1},E||100)},l.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),l.nextFrame?l.nextFrame=l.nextFrame.bind(window):l.nextFrame=function(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,l,T){var b;T.exports={lineMode:!1,pasteCancelled:function(){return b&&b>Date.now()-50?!0:b=!1},cancel:function(){b=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,l,T){var b=e("../lib/event"),w=e("../config").nls,C=e("../lib/useragent"),p=e("../lib/dom"),g=e("../lib/lang"),i=e("../clipboard"),s=C.isChrome<18,o=C.isIE,r=C.isChrome>63,n=400,a=e("../lib/keys"),h=a.KEY_MODS,m=C.isIOS,y=m?/\s/:/\n/,E=C.isMobile,M;M=function(_,v){var R=p.createElement("textarea");R.className="ace_text-input",R.setAttribute("wrap","off"),R.setAttribute("autocorrect","off"),R.setAttribute("autocapitalize","off"),R.setAttribute("spellcheck","false"),R.style.opacity="0",_.insertBefore(R,_.firstChild);var I=!1,F=!1,L=!1,U=!1,P="";E||(R.style.fontSize="1px");var O=!1,S=!1,k="",N=0,B=0,V=0,G=Number.MAX_SAFE_INTEGER,Q=Number.MIN_SAFE_INTEGER,te=0;try{var he=document.activeElement===R}catch{}this.setNumberOfExtraLines=function(Ce){if(G=Number.MAX_SAFE_INTEGER,Q=Number.MIN_SAFE_INTEGER,Ce<0){te=0;return}te=Ce},this.setAriaLabel=function(){var Ce="";if(v.$textInputAriaLabel&&(Ce+="".concat(v.$textInputAriaLabel,", ")),v.session){var We=v.session.selection.cursor.row;Ce+=w("text-input.aria-label","Cursor at row $0",[We+1])}R.setAttribute("aria-label",Ce)},this.setAriaOptions=function(Ce){Ce.activeDescendant?(R.setAttribute("aria-haspopup","true"),R.setAttribute("aria-autocomplete",Ce.inline?"both":"list"),R.setAttribute("aria-activedescendant",Ce.activeDescendant)):(R.setAttribute("aria-haspopup","false"),R.setAttribute("aria-autocomplete","both"),R.removeAttribute("aria-activedescendant")),Ce.role&&R.setAttribute("role",Ce.role),Ce.setLabel&&(R.setAttribute("aria-roledescription",w("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),b.addListener(R,"blur",function(Ce){S||(v.onBlur(Ce),he=!1)},v),b.addListener(R,"focus",function(Ce){if(!S){if(he=!0,C.isEdge)try{if(!document.hasFocus())return}catch{}v.onFocus(Ce),C.isEdge?setTimeout(ce):ce()}},v),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:v.renderer.enableKeyboardAccessibility}),P||r||this.$focusScroll=="browser")return R.focus({preventScroll:!0});var Ce=R.style.top;R.style.position="fixed",R.style.top="0px";try{var We=R.getBoundingClientRect().top!=0}catch{return}var qe=[];if(We)for(var ct=R.parentElement;ct&&ct.nodeType==1;)qe.push(ct),ct.setAttribute("ace_nocontext","true"),!ct.parentElement&&ct.getRootNode?ct=ct.getRootNode().host:ct=ct.parentElement;R.focus({preventScroll:!0}),We&&qe.forEach(function(wt){wt.removeAttribute("ace_nocontext")}),setTimeout(function(){R.style.position="",R.style.top=="0px"&&(R.style.top=Ce)},0)},this.blur=function(){R.blur()},this.isFocused=function(){return he},v.on("beforeEndOperation",function(){var Ce=v.curOp,We=Ce&&Ce.command&&Ce.command.name;if(We!="insertstring"){var qe=We&&(Ce.docChanged||Ce.selectionChanged);L&&qe&&(k=R.value="",Ht()),ce()}}),v.on("changeSelection",this.setAriaLabel);var ne=function(Ce,We){for(var qe=We,ct=1;ct<=Ce-G&&ct<2*te+1;ct++)qe+=v.session.getLine(Ce-ct).length+1;return qe},ce=m?function(Ce){if(!(!he||I&&!Ce||U)){Ce||(Ce="");var We=`
|
|
167
|
-
ab`+Ce+`cde fg
|
|
168
|
-
`;We!=R.value&&(R.value=k=We);var qe=4,ct=4+(Ce.length||(v.selection.isEmpty()?0:1));(N!=qe||B!=ct)&&R.setSelectionRange(qe,ct),N=qe,B=ct}}:function(){if(!(L||U)&&!(!he&&!Ae)){L=!0;var Ce=0,We=0,qe="";if(v.session){var ct=v.selection,wt=ct.getRange(),bt=ct.cursor.row;bt===Q+1?(G=Q+1,Q=G+2*te):bt===G-1?(Q=G-1,G=Q-2*te):(bt<G-1||bt>Q+1)&&(G=bt>te?bt-te:0,Q=bt>te?bt+te:2*te);for(var $t=[],_t=G;_t<=Q;_t++)$t.push(v.session.getLine(_t));if(qe=$t.join(`
|
|
169
|
-
`),Ce=ne(wt.start.row,wt.start.column),We=ne(wt.end.row,wt.end.column),wt.start.row<G){var st=v.session.getLine(G-1);Ce=wt.start.row<G-1?0:Ce,We+=st.length+1,qe=st+`
|
|
170
|
-
`+qe}else if(wt.end.row>Q){var gt=v.session.getLine(Q+1);We=wt.end.row>Q+1?gt.length:wt.end.column,We+=qe.length+1,qe=qe+`
|
|
171
|
-
`+gt}else E&&bt>0&&(qe=`
|
|
172
|
-
`+qe,We+=1,Ce+=1);qe.length>n&&(Ce<n&&We<n?qe=qe.slice(0,n):(qe=`
|
|
173
|
-
`,Ce==We?Ce=We=0:(Ce=0,We=1)));var hn=qe+`
|
|
174
|
-
|
|
175
|
-
`;hn!=k&&(R.value=k=hn,N=B=hn.length)}if(Ae&&(N=R.selectionStart,B=R.selectionEnd),B!=We||N!=Ce||R.selectionEnd!=B)try{R.setSelectionRange(Ce,We),N=Ce,B=We}catch{}L=!1}};this.resetSelection=ce,he&&v.onFocus();var ue=function(Ce){return Ce.selectionStart===0&&Ce.selectionEnd>=k.length&&Ce.value===k&&k&&Ce.selectionEnd!==B},le=function(Ce){L||(I?I=!1:ue(R)?(v.selectAll(),ce()):E&&R.selectionStart!=N&&ce())},me=null;this.setInputHandler=function(Ce){me=Ce},this.getInputHandler=function(){return me};var Ae=!1,$e=function(Ce,We){if(Ae&&(Ae=!1),F)return ce(),Ce&&v.onPaste(Ce),F=!1,"";for(var qe=R.selectionStart,ct=R.selectionEnd,wt=N,bt=k.length-B,$t=Ce,_t=Ce.length-qe,st=Ce.length-ct,gt=0;wt>0&&k[gt]==Ce[gt];)gt++,wt--;for($t=$t.slice(gt),gt=1;bt>0&&k.length-gt>N-1&&k[k.length-gt]==Ce[Ce.length-gt];)gt++,bt--;_t-=gt-1,st-=gt-1;var hn=$t.length-gt+1;if(hn<0&&(wt=-hn,hn=0),$t=$t.slice(0,hn),!We&&!$t&&!_t&&!wt&&!bt&&!st)return"";U=!0;var Yn=!1;return C.isAndroid&&$t==". "&&($t=" ",Yn=!0),$t&&!wt&&!bt&&!_t&&!st||O?v.onTextInput($t):v.onTextInput($t,{extendLeft:wt,extendRight:bt,restoreStart:_t,restoreEnd:st}),U=!1,k=Ce,N=qe,B=ct,V=st,Yn?`
|
|
176
|
-
`:$t},Te=function(Ce){if(L)return on();if(Ce&&Ce.inputType){if(Ce.inputType=="historyUndo")return v.execCommand("undo");if(Ce.inputType=="historyRedo")return v.execCommand("redo")}var We=R.value,qe=$e(We,!0);(We.length>n+100||y.test(qe)||E&&N<1&&N==B)&&ce()},Ge=function(Ce,We,qe){var ct=Ce.clipboardData||window.clipboardData;if(!(!ct||s)){var wt=o||qe?"Text":"text/plain";try{return We?ct.setData(wt,We)!==!1:ct.getData(wt)}catch(bt){if(!qe)return Ge(bt,We,!0)}}},je=function(Ce,We){var qe=v.getCopyText();if(!qe)return b.preventDefault(Ce);Ge(Ce,qe)?(m&&(ce(qe),I=qe,setTimeout(function(){I=!1},10)),We?v.onCut():v.onCopy(),b.preventDefault(Ce)):(I=!0,R.value=qe,R.select(),setTimeout(function(){I=!1,ce(),We?v.onCut():v.onCopy()}))},at=function(Ce){je(Ce,!0)},et=function(Ce){je(Ce,!1)},lt=function(Ce){var We=Ge(Ce);i.pasteCancelled()||(typeof We=="string"?(We&&v.onPaste(We,Ce),C.isIE&&setTimeout(ce),b.preventDefault(Ce)):(R.value="",F=!0))};b.addCommandKeyListener(R,function(Ce,We,qe){if(!L)return v.onCommandKey(Ce,We,qe)},v),b.addListener(R,"select",le,v),b.addListener(R,"input",Te,v),b.addListener(R,"cut",at,v),b.addListener(R,"copy",et,v),b.addListener(R,"paste",lt,v),(!("oncut"in R)||!("oncopy"in R)||!("onpaste"in R))&&b.addListener(_,"keydown",function(Ce){if(!(C.isMac&&!Ce.metaKey||!Ce.ctrlKey))switch(Ce.keyCode){case 67:et(Ce);break;case 86:lt(Ce);break;case 88:at(Ce);break}},v);var jt=function(Ce){if(!(L||!v.onCompositionStart||v.$readOnly)&&(L={},!O)){Ce.data&&(L.useTextareaForIME=!1),setTimeout(on,0),v._signal("compositionStart"),v.on("mousedown",qn);var We=v.getSelectionRange();We.end.row=We.start.row,We.end.column=We.start.column,L.markerRange=We,L.selectionStart=N,v.onCompositionStart(L),L.useTextareaForIME?(k=R.value="",N=0,B=0):(R.msGetInputContext&&(L.context=R.msGetInputContext()),R.getInputContext&&(L.context=R.getInputContext()))}},on=function(){if(!(!L||!v.onCompositionUpdate||v.$readOnly)){if(O)return qn();if(L.useTextareaForIME)v.onCompositionUpdate(R.value);else{var Ce=R.value;$e(Ce),L.markerRange&&(L.context&&(L.markerRange.start.column=L.selectionStart=L.context.compositionStartOffset),L.markerRange.end.column=L.markerRange.start.column+B-L.selectionStart+V)}}},Ht=function(Ce){!v.onCompositionEnd||v.$readOnly||(L=!1,v.onCompositionEnd(),v.off("mousedown",qn),Ce&&Te())};function qn(){S=!0,R.blur(),R.focus(),S=!1}var sn=g.delayedCall(on,50).schedule.bind(null,null);function yn(Ce){Ce.keyCode==27&&R.value.length<R.selectionStart&&(L||(k=R.value),N=B=-1,ce()),sn()}b.addListener(R,"compositionstart",jt,v),b.addListener(R,"compositionupdate",on,v),b.addListener(R,"keyup",yn,v),b.addListener(R,"keydown",sn,v),b.addListener(R,"compositionend",Ht,v),this.getElement=function(){return R},this.setCommandMode=function(Ce){O=Ce,R.readOnly=!1},this.setReadOnly=function(Ce){O||(R.readOnly=Ce)},this.setCopyWithEmptySelection=function(Ce){},this.onContextMenu=function(Ce){Ae=!0,ce(),v._emit("nativecontextmenu",{target:v,domEvent:Ce}),this.moveToMouse(Ce,!0)},this.moveToMouse=function(Ce,We){P||(P=R.style.cssText),R.style.cssText=(We?"z-index:100000;":"")+(C.isIE?"opacity:0.1;":"")+"text-indent: -"+(N+B)*v.renderer.characterWidth*.5+"px;";var qe=v.container.getBoundingClientRect(),ct=p.computedStyle(v.container),wt=qe.top+(parseInt(ct.borderTopWidth)||0),bt=qe.left+(parseInt(ct.borderLeftWidth)||0),$t=qe.bottom-wt-R.clientHeight-2,_t=function(st){p.translate(R,st.clientX-bt-2,Math.min(st.clientY-wt-2,$t))};_t(Ce),Ce.type=="mousedown"&&(v.renderer.$isMousePressed=!0,clearTimeout(wn),C.isWin&&b.capture(v.container,_t,In))},this.onContextMenuClose=In;var wn;function In(){clearTimeout(wn),wn=setTimeout(function(){P&&(R.style.cssText=P,P=""),v.renderer.$isMousePressed=!1,v.renderer.$keepTextAreaAtCursor&&v.renderer.$moveTextAreaToCursor()},0)}var pt=function(Ce){v.textInput.onContextMenu(Ce),In()};b.addListener(R,"mouseup",pt,v),b.addListener(R,"mousedown",function(Ce){Ce.preventDefault(),In()},v),b.addListener(v.renderer.scroller,"contextmenu",pt,v),b.addListener(R,"contextmenu",pt,v),m&&Ue(_,v,R);function Ue(Ce,We,qe){var ct=null,wt=!1;qe.addEventListener("keydown",function($t){ct&&clearTimeout(ct),wt=!0},!0),qe.addEventListener("keyup",function($t){ct=setTimeout(function(){wt=!1},100)},!0);var bt=function($t){if(document.activeElement===qe&&!(wt||L||We.$mouseHandler.isMousePressed)&&!I){var _t=qe.selectionStart,st=qe.selectionEnd,gt=null,hn=0;if(_t==0?gt=a.up:_t==1?gt=a.home:st>B&&k[st]==`
|
|
177
|
-
`?gt=a.end:_t<N&&k[_t-1]==" "?(gt=a.left,hn=h.option):_t<N||_t==N&&B!=N&&_t==st?gt=a.left:st>B&&k.slice(0,st).split(`
|
|
178
|
-
`).length>2?gt=a.down:st>B&&k[st-1]==" "?(gt=a.right,hn=h.option):(st>B||st==B&&B!=N&&_t==st)&&(gt=a.right),_t!==st&&(hn|=h.shift),gt){var Yn=We.onCommandKey({},hn,gt);if(!Yn&&We.commands){gt=a.keyCodeToString(gt);var mi=We.commands.findKeyCommand(hn,gt);mi&&We.execCommand(mi)}N=_t,B=st,ce("")}}};document.addEventListener("selectionchange",bt),We.on("destroy",function(){document.removeEventListener("selectionchange",bt)})}this.destroy=function(){R.parentElement&&R.parentElement.removeChild(R)}},l.TextInput=M,l.$setUserAgentForTests=function(_,v){E=_,m=v}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,l,T){var b=e("../lib/useragent"),w=0,C=550,p=function(){function s(o){o.$clickSelection=null;var r=o.editor;r.setDefaultHandler("mousedown",this.onMouseDown.bind(o)),r.setDefaultHandler("dblclick",this.onDoubleClick.bind(o)),r.setDefaultHandler("tripleclick",this.onTripleClick.bind(o)),r.setDefaultHandler("quadclick",this.onQuadClick.bind(o)),r.setDefaultHandler("mousewheel",this.onMouseWheel.bind(o));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(a){o[a]=this[a]},this),o.selectByLines=this.extendSelectionBy.bind(o,"getLineRange"),o.selectByWords=this.extendSelectionBy.bind(o,"getWordRange")}return s.prototype.onMouseDown=function(o){var r=o.inSelection(),n=o.getDocumentPosition();this.mousedownEvent=o;var a=this.editor,h=o.getButton();if(h!==0){var m=a.getSelectionRange(),y=m.isEmpty();(y||h==1)&&a.selection.moveToPosition(n),h==2&&(a.textInput.onContextMenu(o.domEvent),b.isMozilla||o.preventDefault());return}if(this.mousedownEvent.time=Date.now(),r&&!a.isFocused()&&(a.focus(),this.$focusTimeout&&!this.$clickSelection&&!a.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(o);return}return this.captureMouse(o),this.startSelect(n,o.domEvent._clicks>1),o.preventDefault()},s.prototype.startSelect=function(o,r){o=o||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(o):r||n.selection.moveToPosition(o),r||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},s.prototype.select=function(){var o,r=this.editor,n=r.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(n);if(a==-1)o=this.$clickSelection.end;else if(a==1)o=this.$clickSelection.start;else{var h=i(this.$clickSelection,n);n=h.cursor,o=h.anchor}r.selection.setSelectionAnchor(o.row,o.column)}r.selection.selectToPosition(n),r.renderer.scrollCursorIntoView()},s.prototype.extendSelectionBy=function(o){var r,n=this.editor,a=n.renderer.screenToTextCoordinates(this.x,this.y),h=n.selection[o](a.row,a.column);if(this.$clickSelection){var m=this.$clickSelection.comparePoint(h.start),y=this.$clickSelection.comparePoint(h.end);if(m==-1&&y<=0)r=this.$clickSelection.end,(h.end.row!=a.row||h.end.column!=a.column)&&(a=h.start);else if(y==1&&m>=0)r=this.$clickSelection.start,(h.start.row!=a.row||h.start.column!=a.column)&&(a=h.end);else if(m==-1&&y==1)a=h.end,r=h.start;else{var E=i(this.$clickSelection,a);a=E.cursor,r=E.anchor}n.selection.setSelectionAnchor(r.row,r.column)}n.selection.selectToPosition(a),n.renderer.scrollCursorIntoView()},s.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},s.prototype.focusWait=function(){var o=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),r=Date.now();(o>w||r-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},s.prototype.onDoubleClick=function(o){var r=o.getDocumentPosition(),n=this.editor,a=n.session,h=a.getBracketRange(r);h?(h.isEmpty()&&(h.start.column--,h.end.column++),this.setState("select")):(h=n.selection.getWordRange(r.row,r.column),this.setState("selectByWords")),this.$clickSelection=h,this.select()},s.prototype.onTripleClick=function(o){var r=o.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var a=n.getSelectionRange();a.isMultiLine()&&a.contains(r.row,r.column)?(this.$clickSelection=n.selection.getLineRange(a.start.row),this.$clickSelection.end=n.selection.getLineRange(a.end.row).end):this.$clickSelection=n.selection.getLineRange(r.row),this.select()},s.prototype.onQuadClick=function(o){var r=this.editor;r.selectAll(),this.$clickSelection=r.getSelectionRange(),this.setState("selectAll")},s.prototype.onMouseWheel=function(o){if(!o.getAccelKey()){o.getShiftKey()&&o.wheelY&&!o.wheelX&&(o.wheelX=o.wheelY,o.wheelY=0);var r=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,a=o.domEvent.timeStamp,h=a-n.t,m=h?o.wheelX/h:n.vx,y=h?o.wheelY/h:n.vy;h<C&&(m=(m+n.vx)/2,y=(y+n.vy)/2);var E=Math.abs(m/y),M=!1;if(E>=1&&r.renderer.isScrollableBy(o.wheelX*o.speed,0)&&(M=!0),E<=1&&r.renderer.isScrollableBy(0,o.wheelY*o.speed)&&(M=!0),M)n.allowed=a;else if(a-n.allowed<C){var _=Math.abs(m)<=1.5*Math.abs(n.vx)&&Math.abs(y)<=1.5*Math.abs(n.vy);_?(M=!0,n.allowed=a):n.allowed=0}if(n.t=a,n.vx=m,n.vy=y,M)return r.renderer.scrollBy(o.wheelX*o.speed,o.wheelY*o.speed),o.stop()}},s}();p.prototype.selectEnd=p.prototype.selectByLinesEnd,p.prototype.selectAllEnd=p.prototype.selectByLinesEnd,p.prototype.selectByWordsEnd=p.prototype.selectByLinesEnd,l.DefaultHandlers=p;function g(s,o,r,n){return Math.sqrt(Math.pow(r-s,2)+Math.pow(n-o,2))}function i(s,o){if(s.start.row==s.end.row)var r=2*o.column-s.start.column-s.end.column;else if(s.start.row==s.end.row-1&&!s.start.column&&!s.end.column)var r=o.column-4;else var r=2*o.row-s.start.row-s.end.row;return r<0?{cursor:s.start,anchor:s.end}:{cursor:s.end,anchor:s.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,l,T){l.preventParentScroll=function(w){w.stopPropagation();var C=w.currentTarget,p=C.scrollHeight>C.clientHeight;p||w.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,l,T){var b=this&&this.__extends||function(){var a=function(h,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(y[M]=E[M])},a(h,m)};return function(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");a(h,m);function y(){this.constructor=h}h.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),w=this&&this.__values||function(a){var h=typeof Symbol=="function"&&Symbol.iterator,m=h&&a[h],y=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&y>=a.length&&(a=void 0),{value:a&&a[y++],done:!a}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},C=e("./lib/dom");e("./lib/event");var p=e("./range").Range,g=e("./lib/scroll").preventParentScroll,i="ace_tooltip",s=function(){function a(h){this.isOpen=!1,this.$element=null,this.$parentNode=h}return a.prototype.$init=function(){return this.$element=C.createElement("div"),this.$element.className=i,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},a.prototype.getElement=function(){return this.$element||this.$init()},a.prototype.setText=function(h){this.getElement().textContent=h},a.prototype.setHtml=function(h){this.getElement().innerHTML=h},a.prototype.setPosition=function(h,m){this.getElement().style.left=h+"px",this.getElement().style.top=m+"px"},a.prototype.setClassName=function(h){C.addCssClass(this.getElement(),h)},a.prototype.setTheme=function(h){this.$element.className=i+" "+(h.isDark?"ace_dark ":"")+(h.cssClass||"")},a.prototype.show=function(h,m,y){h!=null&&this.setText(h),m!=null&&y!=null&&this.setPosition(m,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},a.prototype.hide=function(h){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=i,this.isOpen=!1)},a.prototype.getHeight=function(){return this.getElement().offsetHeight},a.prototype.getWidth=function(){return this.getElement().offsetWidth},a.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},a}(),o=function(){function a(){this.popups=[]}return a.prototype.addPopup=function(h){this.popups.push(h),this.updatePopups()},a.prototype.removePopup=function(h){var m=this.popups.indexOf(h);m!==-1&&(this.popups.splice(m,1),this.updatePopups())},a.prototype.updatePopups=function(){var h,m,y,E;this.popups.sort(function(P,O){return O.priority-P.priority});var M=[];try{for(var _=w(this.popups),v=_.next();!v.done;v=_.next()){var R=v.value,I=!0;try{for(var F=(y=void 0,w(M)),L=F.next();!L.done;L=F.next()){var U=L.value;if(this.doPopupsOverlap(U,R)){I=!1;break}}}catch(P){y={error:P}}finally{try{L&&!L.done&&(E=F.return)&&E.call(F)}finally{if(y)throw y.error}}I?M.push(R):R.hide()}}catch(P){h={error:P}}finally{try{v&&!v.done&&(m=_.return)&&m.call(_)}finally{if(h)throw h.error}}},a.prototype.doPopupsOverlap=function(h,m){var y=h.getElement().getBoundingClientRect(),E=m.getElement().getBoundingClientRect();return y.left<E.right&&y.right>E.left&&y.top<E.bottom&&y.bottom>E.top},a}(),r=new o;l.popupManager=r,l.Tooltip=s;var n=function(a){b(h,a);function h(m){m===void 0&&(m=document.body);var y=a.call(this,m)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var E=y.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",y.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(y)),E.addEventListener("wheel",g),y}return h.prototype.addToEditor=function(m){m.on("mousemove",this.onMouseMove),m.on("mousedown",this.hide),m.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},h.prototype.removeFromEditor=function(m){m.off("mousemove",this.onMouseMove),m.off("mousedown",this.hide),m.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},h.prototype.onMouseMove=function(m,y){this.lastEvent=m,this.lastT=Date.now();var E=y.$mouseHandler.isMousePressed;if(this.isOpen){var M=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(M.row,M.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=m,this.timeout=setTimeout(this.waitForHover,this.idleTime))},h.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var m=Date.now()-this.lastT;if(this.idleTime-m>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-m);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},h.prototype.isOutsideOfText=function(m){var y=m.editor,E=m.getDocumentPosition(),M=y.session.getLine(E.row);if(E.column==M.length){var _=y.renderer.pixelToScreenCoordinates(m.clientX,m.clientY),v=y.session.documentToScreenPosition(E.row,E.column);if(v.column!=_.column||v.row!=_.row)return!0}return!1},h.prototype.setDataProvider=function(m){this.$gatherData=m},h.prototype.showForRange=function(m,y,E,M){var _=10;if(!(M&&M!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var v=m.renderer;this.isOpen||(r.addPopup(this),this.$registerCloseEvents(),this.setTheme(v.theme)),this.isOpen=!0,this.addMarker(y,m.session),this.range=p.fromPoints(y.start,y.end);var R=v.textToScreenCoordinates(y.start.row,y.start.column),I=v.scroller.getBoundingClientRect();R.pageX<I.left&&(R.pageX=I.left);var F=this.getElement();F.innerHTML="",F.appendChild(E),F.style.maxHeight="",F.style.display="block";var L=F.clientHeight,U=F.clientWidth,P=window.innerHeight-R.pageY-v.lineHeight,O=!0;R.pageY-L<0&&R.pageY<P&&(O=!1),F.style.maxHeight=(O?R.pageY:P)-_+"px",F.style.top=O?"":R.pageY+v.lineHeight+"px",F.style.bottom=O?window.innerHeight-R.pageY+"px":"",F.style.left=Math.min(R.pageX,window.innerWidth-U-_)+"px"}},h.prototype.addMarker=function(m,y){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=y,this.marker=y&&y.addMarker(m,"ace_highlight-marker","text")},h.prototype.hide=function(m){!m&&document.activeElement==this.getElement()||m&&m.target&&(m.type!="keydown"||m.ctrlKey||m.metaKey)&&this.$element.contains(m.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,r.removePopup(this)))},h.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},h.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},h.prototype.onMouseOut=function(m){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!m.relatedTarget||this.getElement().contains(m.relatedTarget)||m&&m.currentTarget.contains(m.relatedTarget)||m.relatedTarget.classList.contains("ace_content")||this.hide())},h}(s);l.HoverTooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(e,l,T){var b=this&&this.__extends||function(){var a=function(h,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(y[M]=E[M])},a(h,m)};return function(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");a(h,m);function y(){this.constructor=h}h.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}}(),w=this&&this.__values||function(a){var h=typeof Symbol=="function"&&Symbol.iterator,m=h&&a[h],y=0;if(m)return m.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&y>=a.length&&(a=void 0),{value:a&&a[y++],done:!a}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},C=e("../lib/dom"),p=e("../lib/event"),g=e("../tooltip").Tooltip,i=e("../config").nls,s=5,o=3;l.GUTTER_TOOLTIP_LEFT_OFFSET=s,l.GUTTER_TOOLTIP_TOP_OFFSET=o;function r(a){var h=a.editor,m=h.renderer.$gutterLayer,y=new n(h,!0);a.editor.setDefaultHandler("guttermousedown",function(I){if(!(!h.isFocused()||I.getButton()!=0)){var F=m.getRegion(I);if(F!="foldWidgets"){var L=I.getDocumentPosition().row,U=h.session.selection;if(I.getShiftKey())U.selectTo(L,0);else{if(I.domEvent.detail==2)return h.selectAll(),I.preventDefault();a.$clickSelection=h.selection.getLineRange(L)}return a.setState("selectByLines"),a.captureMouse(I),I.preventDefault()}}});var E,M;function _(){var I=M.getDocumentPosition().row,F=h.session.getLength();if(I==F){var L=h.renderer.pixelToScreenCoordinates(0,M.y).row,U=M.$pos;if(L>h.session.documentToScreenRow(U.row,U.column))return v()}if(y.showTooltip(I),!!y.isOpen)if(h.on("mousewheel",v),h.on("changeSession",v),window.addEventListener("keydown",v,!0),a.$tooltipFollowsMouse)R(M);else{var P=M.getGutterRow(),O=m.$lines.get(P);if(O){var S=O.element.querySelector(".ace_gutter_annotation"),k=S.getBoundingClientRect(),N=y.getElement().style;N.left=k.right-s+"px",N.top=k.bottom-o+"px"}else R(M)}}function v(I){I&&I.type==="keydown"&&(I.ctrlKey||I.metaKey)||I&&I.type==="mouseout"&&(!I.relatedTarget||y.getElement().contains(I.relatedTarget))||(E&&(E=clearTimeout(E)),y.isOpen&&(y.hideTooltip(),h.off("mousewheel",v),h.off("changeSession",v),window.removeEventListener("keydown",v,!0)))}function R(I){y.setPosition(I.x,I.y)}a.editor.setDefaultHandler("guttermousemove",function(I){var F=I.domEvent.target||I.domEvent.srcElement;if(C.hasCssClass(F,"ace_fold-widget")||C.hasCssClass(F,"ace_custom-widget"))return v();y.isOpen&&a.$tooltipFollowsMouse&&R(I),M=I,!E&&(E=setTimeout(function(){E=null,M&&!a.isMousePressed&&_()},50))}),p.addListener(h.renderer.$gutter,"mouseout",function(I){M=null,y.isOpen&&(E=setTimeout(function(){E=null,v(I)},50))},h)}l.GutterHandler=r;var n=function(a){b(h,a);function h(m,y){y===void 0&&(y=!1);var E=a.call(this,m.container)||this;E.editor=m,E.visibleTooltipRow;var M=E.getElement();return M.setAttribute("role","tooltip"),M.style.pointerEvents="auto",y&&(E.onMouseOut=E.onMouseOut.bind(E),M.addEventListener("mouseout",E.onMouseOut)),E}return h.prototype.onMouseOut=function(m){this.isOpen&&(!m.relatedTarget||this.getElement().contains(m.relatedTarget)||m&&m.currentTarget.contains(m.relatedTarget)||this.hideTooltip())},h.prototype.setPosition=function(m,y){var E=window.innerWidth||document.documentElement.clientWidth,M=window.innerHeight||document.documentElement.clientHeight,_=this.getWidth(),v=this.getHeight();m+=15,y+=15,m+_>E&&(m-=m+_-E),y+v>M&&(y-=20+v),g.prototype.setPosition.call(this,m,y)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:i("gutter-tooltip.aria-label.error.singular","error"),plural:i("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:i("gutter-tooltip.aria-label.security.singular","security finding"),plural:i("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:i("gutter-tooltip.aria-label.warning.singular","warning"),plural:i("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:i("gutter-tooltip.aria-label.info.singular","information message"),plural:i("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:i("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:i("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(m){var y,E=this.editor.renderer.$gutterLayer,M=E.$annotations[m],_;M?_={displayText:Array.from(M.displayText),type:Array.from(M.type)}:_={displayText:[],type:[]};var v=E.session.getFoldLine(m);if(v&&E.$showFoldedAnnotations){for(var R={error:[],security:[],warning:[],info:[],hint:[]},I={error:1,security:2,warning:3,info:4,hint:5},F,L=m+1;L<=v.end.row;L++)if(E.$annotations[L])for(var U=0;U<E.$annotations[L].text.length;U++){var P=E.$annotations[L].type[U];R[P].push(E.$annotations[L].text[U]),(!F||I[P]<I[F])&&(F=P)}if(["error","security","warning"].includes(F)){var O="".concat(h.annotationsToSummaryString(R)," in folded code.");_.displayText.push(O),_.type.push(F+"_fold")}}if(_.displayText.length===0)return this.hideTooltip();for(var S={error:[],security:[],warning:[],info:[],hint:[]},k=E.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<_.displayText.length;L++){var N=C.createElement("span"),B=C.createElement("span");(y=B.classList).add.apply(y,["ace_".concat(_.type[L]),k]),B.setAttribute("aria-label","".concat(h.annotationLabels[_.type[L].replace("_fold","")].singular)),B.setAttribute("role","img"),B.appendChild(C.createTextNode(" ")),N.appendChild(B),N.appendChild(C.createTextNode(_.displayText[L])),N.appendChild(C.createElement("br")),S[_.type[L].replace("_fold","")].push(N)}var V=this.getElement();C.removeChildren(V),S.error.forEach(function(G){return V.appendChild(G)}),S.security.forEach(function(G){return V.appendChild(G)}),S.warning.forEach(function(G){return V.appendChild(G)}),S.info.forEach(function(G){return V.appendChild(G)}),S.hint.forEach(function(G){return V.appendChild(G)}),V.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.visibleTooltipRow=m,this.editor._signal("showGutterTooltip",this)},h.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},h.annotationsToSummaryString=function(m){var y,E,M=[],_=["error","security","warning","info","hint"];try{for(var v=w(_),R=v.next();!R.done;R=v.next()){var I=R.value;if(m[I].length){var F=m[I].length===1?h.annotationLabels[I].singular:h.annotationLabels[I].plural;M.push("".concat(m[I].length," ").concat(F))}}}catch(L){y={error:L}}finally{try{R&&!R.done&&(E=v.return)&&E.call(v)}finally{if(y)throw y.error}}return M.join(", ")},h}(g);l.GutterTooltip=n}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,l,T){var b=e("../lib/event"),w=e("../lib/useragent"),C=function(){function p(g,i){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=i,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return p.prototype.stopPropagation=function(){b.stopPropagation(this.domEvent),this.propagationStopped=!0},p.prototype.preventDefault=function(){b.preventDefault(this.domEvent),this.defaultPrevented=!0},p.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},p.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},p.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,i=this.editor.session.documentToScreenRow(g,0),s=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return i-s},p.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,i=g.getSelectionRange();if(i.isEmpty())this.$inSelection=!1;else{var s=this.getDocumentPosition();this.$inSelection=i.contains(s.row,s.column)}return this.$inSelection},p.prototype.getButton=function(){return b.getButton(this.domEvent)},p.prototype.getShiftKey=function(){return this.domEvent.shiftKey},p.prototype.getAccelKey=function(){return w.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},p}();l.MouseEvent=C}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,l,T){var b=e("../lib/dom"),w=e("../lib/event"),C=e("../lib/useragent"),p=200,g=200,i=5;function s(r){var n=r.editor,a=b.createElement("div");a.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",a.textContent=" ";var h=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];h.forEach(function(ne){r[ne]=this[ne]},this),n.on("mousedown",this.onMouseDown.bind(r));var m=n.container,y,E,M,_,v,R,I=0,F,L,U,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!m.draggable){var ce=this;return setTimeout(function(){ce.startSelect(),ce.captureMouse(ne)},0),ne.preventDefault()}v=n.getSelectionRange();var ue=ne.dataTransfer;ue.effectAllowed=n.getReadOnly()?"copy":"copyMove",n.container.appendChild(a),ue.setDragImage&&ue.setDragImage(a,0,0),setTimeout(function(){n.container.removeChild(a)}),ue.clearData(),ue.setData("Text",n.session.getTextRange()),L=!0,this.setState("drag")},this.onDragEnd=function(ne){if(m.draggable=!1,L=!1,this.setState(null),!n.getReadOnly()){var ce=ne.dataTransfer.dropEffect;!F&&ce=="move"&&n.session.remove(n.getSelectionRange()),n.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(n.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,M=ne.clientY,y||B(),I++,ne.dataTransfer.dropEffect=F=he(ne),w.preventDefault(ne)},this.onDragOver=function(ne){if(!(n.getReadOnly()||!te(ne.dataTransfer)))return E=ne.clientX,M=ne.clientY,y||(B(),I++),G!==null&&(G=null),ne.dataTransfer.dropEffect=F=he(ne),w.preventDefault(ne)},this.onDragLeave=function(ne){if(I--,I<=0&&y)return V(),F=null,w.preventDefault(ne)},this.onDrop=function(ne){if(R){var ce=ne.dataTransfer;if(L)switch(F){case"move":v.contains(R.row,R.column)?v={start:R,end:R}:v=n.moveText(v,R);break;case"copy":v=n.moveText(v,R,!0);break}else{var ue=ce.getData("Text");v={start:R,end:n.session.insert(R,ue)},n.focus(),F=null}return V(),w.preventDefault(ne)}},w.addListener(m,"dragstart",this.onDragStart.bind(r),n),w.addListener(m,"dragend",this.onDragEnd.bind(r),n),w.addListener(m,"dragenter",this.onDragEnter.bind(r),n),w.addListener(m,"dragover",this.onDragOver.bind(r),n),w.addListener(m,"dragleave",this.onDragLeave.bind(r),n),w.addListener(m,"drop",this.onDrop.bind(r),n);function S(ne,ce){var ue=Date.now(),le=!ce||ne.row!=ce.row,me=!ce||ne.column!=ce.column;if(!P||le||me)n.moveCursorToPosition(ne),P=ue,O={x:E,y:M};else{var Ae=o(O.x,O.y,E,M);Ae>i?P=null:ue-P>=g&&(n.renderer.scrollCursorIntoView(),P=null)}}function k(ne,ce){var ue=Date.now(),le=n.renderer.layerConfig.lineHeight,me=n.renderer.layerConfig.characterWidth,Ae=n.renderer.scroller.getBoundingClientRect(),$e={x:{left:E-Ae.left,right:Ae.right-E},y:{top:M-Ae.top,bottom:Ae.bottom-M}},Te=Math.min($e.x.left,$e.x.right),Ge=Math.min($e.y.top,$e.y.bottom),je={row:ne.row,column:ne.column};Te/me<=2&&(je.column+=$e.x.left<$e.x.right?-3:2),Ge/le<=1&&(je.row+=$e.y.top<$e.y.bottom?-1:1);var at=ne.row!=je.row,et=ne.column!=je.column,lt=!ce||ne.row!=ce.row;at||et&&!lt?U?ue-U>=p&&n.renderer.scrollCursorIntoView(je):U=ue:U=null}function N(){var ne=R;R=n.renderer.screenToTextCoordinates(E,M),S(R,ne),k(R,ne)}function B(){v=n.selection.toOrientedRange(),y=n.session.addMarker(v,"ace_selection",n.getSelectionStyle()),n.clearSelection(),n.isFocused()&&n.renderer.$cursorLayer.setBlinking(!1),clearInterval(_),N(),_=setInterval(N,20),I=0,w.addListener(document,"mousemove",Q)}function V(){clearInterval(_),n.session.removeMarker(y),y=null,n.selection.fromOrientedRange(v),n.isFocused()&&!L&&n.$resetCursorStyle(),v=null,R=null,I=0,U=null,P=null,w.removeListener(document,"mousemove",Q)}var G=null;function Q(){G==null&&(G=setTimeout(function(){G!=null&&y&&V()},20))}function te(ne){var ce=ne.types;return!ce||Array.prototype.some.call(ce,function(ue){return ue=="text/plain"||ue=="Text"})}function he(ne){var ce=["copy","copymove","all","uninitialized"],ue=["move","copymove","linkmove","all","uninitialized"],le=C.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var Ae="none";return le&&ce.indexOf(me)>=0?Ae="copy":ue.indexOf(me)>=0?Ae="move":ce.indexOf(me)>=0&&(Ae="copy"),Ae}}(function(){this.dragWait=function(){var r=Date.now()-this.mousedownEvent.time;r>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var r=this.editor.container;r.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(r){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var r=this.editor,n=r.container;n.draggable=!0,r.renderer.$cursorLayer.setBlinking(!1),r.setStyle("ace_dragging");var a=C.isWin?"default":"move";r.renderer.setCursorStyle(a),this.setState("dragReady")},this.onMouseDrag=function(r){var n=this.editor.container;if(C.isIE&&this.state=="dragReady"){var a=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>3&&n.dragDrop()}if(this.state==="dragWait"){var a=o(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);a>0&&(n.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(r){if(this.$dragEnabled){this.mousedownEvent=r;var n=this.editor,a=r.inSelection(),h=r.getButton(),m=r.domEvent.detail||1;if(m===1&&h===0&&a){if(r.editor.inMultiSelectMode&&(r.getAccelKey()||r.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=r.domEvent.target||r.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),n.getDragDelay()){if(C.isWebKit){this.cancelDrag=!0;var E=n.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(r,this.onMouseDrag.bind(this)),r.defaultPrevented=!0}}}}).call(s.prototype);function o(r,n,a,h){return Math.sqrt(Math.pow(a-r,2)+Math.pow(h-n,2))}l.DragdropHandler=s}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,l,T){var b=e("./mouse_event").MouseEvent,w=e("../lib/event"),C=e("../lib/dom");l.addTouchListeners=function(p,g){var i="scroll",s,o,r,n,a,h,m=0,y,E=0,M=0,_=0,v,R;function I(){var S=window.navigator&&window.navigator.clipboard,k=!1,N=function(){var G=g.getCopyText(),Q=g.session.getUndoManager().hasUndo();R.replaceChild(C.buildDom(k?["span",!G&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],G&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],G&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),R.firstChild)},B=function(G){return g.commands.canExecute(G,g)},V=function(G){var Q=G.target.getAttribute("action");if(Q=="more"||!k)return k=!k,N();Q=="paste"?S.readText().then(function(te){g.execCommand(Q,te)}):Q&&((Q=="cut"||Q=="copy")&&(S?S.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(Q)),R.firstChild.style.display="none",k=!1,Q!="openCommandPalette"&&g.focus()};R=C.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(G){i="menu",G.stopPropagation(),G.preventDefault(),g.textInput.focus()},ontouchend:function(G){G.stopPropagation(),G.preventDefault(),V(G)},onclick:V},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function F(){if(!g.getOption("enableMobileMenu")){R&&L();return}R||I();var S=g.selection.cursor,k=g.renderer.textToScreenCoordinates(S.row,S.column),N=g.renderer.textToScreenCoordinates(0,0).pageX,B=g.renderer.scrollLeft,V=g.container.getBoundingClientRect();R.style.top=k.pageY-V.top-3+"px",k.pageX-V.left<V.width-70?(R.style.left="",R.style.right="10px"):(R.style.right="",R.style.left=N+B-V.left+"px"),R.style.display="",R.firstChild.style.display="none",g.on("input",L)}function L(S){R&&(R.style.display="none"),g.off("input",L)}function U(){a=null,clearTimeout(a);var S=g.selection.getRange(),k=S.contains(y.row,y.column);(S.isEmpty()||!k)&&(g.selection.moveToPosition(y),g.selection.selectWord()),i="wait",F()}function P(){a=null,clearTimeout(a),g.selection.moveToPosition(y);var S=E>=2?g.selection.getLineRange(y.row):g.session.getBracketRange(y);S&&!S.isEmpty()?g.selection.setRange(S):g.selection.selectWord(),i="wait"}w.addListener(p,"contextmenu",function(S){if(v){var k=g.textInput.getElement();k.focus()}},g),w.addListener(p,"touchstart",function(S){var k=S.touches;if(a||k.length>1){clearTimeout(a),a=null,r=-1,i="zoom";return}v=g.$mouseHandler.isMousePressed=!0;var N=g.renderer.layerConfig.lineHeight,B=g.renderer.layerConfig.lineHeight,V=S.timeStamp;n=V;var G=k[0],Q=G.clientX,te=G.clientY;Math.abs(s-Q)+Math.abs(o-te)>N&&(r=-1),s=S.clientX=Q,o=S.clientY=te,M=_=0;var he=new b(S,g);if(y=he.getDocumentPosition(),V-r<500&&k.length==1&&!m)E++,S.preventDefault(),S.button=0,P();else{E=0;var ne=g.selection.cursor,ce=g.selection.isEmpty()?ne:g.selection.anchor,ue=g.renderer.$cursorLayer.getPixelPosition(ne,!0),le=g.renderer.$cursorLayer.getPixelPosition(ce,!0),me=g.renderer.scroller.getBoundingClientRect(),Ae=g.renderer.layerConfig.offset,$e=g.renderer.scrollLeft,Te=function(at,et){return at=at/B,et=et/N-.75,at*at+et*et};if(S.clientX<me.left){i="zoom";return}var Ge=Te(S.clientX-me.left-ue.left+$e,S.clientY-me.top-ue.top+Ae),je=Te(S.clientX-me.left-le.left+$e,S.clientY-me.top-le.top+Ae);Ge<3.5&&je<3.5&&(i=Ge>je?"cursor":"anchor"),je<3.5?i="anchor":Ge<3.5?i="cursor":i="scroll",a=setTimeout(U,450)}r=V},g),w.addListener(p,"touchend",function(S){v=g.$mouseHandler.isMousePressed=!1,h&&clearInterval(h),i=="zoom"?(i="",m=0):a?(g.selection.moveToPosition(y),m=0,F()):i=="scroll"?(O(),L()):F(),clearTimeout(a),a=null},g),w.addListener(p,"touchmove",function(S){a&&(clearTimeout(a),a=null);var k=S.touches;if(!(k.length>1||i=="zoom")){var N=k[0],B=s-N.clientX,V=o-N.clientY;if(i=="wait")if(B*B+V*V>4)i="cursor";else return S.preventDefault();s=N.clientX,o=N.clientY,S.clientX=N.clientX,S.clientY=N.clientY;var G=S.timeStamp,Q=G-n;if(n=G,i=="scroll"){var te=new b(S,g);te.speed=1,te.wheelX=B,te.wheelY=V,10*Math.abs(B)<Math.abs(V)&&(B=0),10*Math.abs(V)<Math.abs(B)&&(V=0),Q!=0&&(M=B/Q,_=V/Q),g._emit("mousewheel",te),te.propagationStopped||(M=_=0)}else{var he=new b(S,g),ne=he.getDocumentPosition();i=="cursor"?g.selection.moveCursorToPosition(ne):i=="anchor"&&g.selection.setSelectionAnchor(ne.row,ne.column),g.renderer.scrollCursorIntoView(ne),S.preventDefault()}}},g);function O(){m+=60,h=setInterval(function(){m--<=0&&(clearInterval(h),h=null),Math.abs(M)<.01&&(M=0),Math.abs(_)<.01&&(_=0),m<20&&(M=.9*M),m<20&&(_=.9*_);var S=g.session.getScrollTop();g.renderer.scrollBy(10*M,10*_),S==g.session.getScrollTop()&&(m=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,l,T){var b=e("../lib/event"),w=e("../lib/useragent"),C=e("./default_handlers").DefaultHandlers,p=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,i=e("./dragdrop_handler").DragdropHandler,s=e("./touch_handler").addTouchListeners,o=e("../config"),r=function(){function n(a){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var h=this;this.editor=a,new C(this),new p(this),new i(this);var m=function(M){var _=!document.hasFocus||!document.hasFocus()||!a.isFocused()&&document.activeElement==(a.textInput&&a.textInput.getElement());_&&window.focus(),a.focus(),setTimeout(function(){a.isFocused()||a.focus()})},y=a.renderer.getMouseEventTarget();b.addListener(y,"click",this.onMouseEvent.bind(this,"click"),a),b.addListener(y,"mousemove",this.onMouseMove.bind(this,"mousemove"),a),b.addMultiMouseDownListener([y,a.renderer.scrollBarV&&a.renderer.scrollBarV.inner,a.renderer.scrollBarH&&a.renderer.scrollBarH.inner,a.textInput&&a.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",a),b.addMouseWheelListener(a.container,this.onMouseWheel.bind(this,"mousewheel"),a),s(a.container,a);var E=a.renderer.$gutter;b.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),a),b.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),a),b.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),a),b.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),a),b.addListener(y,"mousedown",m,a),b.addListener(E,"mousedown",m,a),w.isIE&&a.renderer.scrollBarV&&(b.addListener(a.renderer.scrollBarV.element,"mousedown",m,a),b.addListener(a.renderer.scrollBarH.element,"mousedown",m,a)),a.on("mousemove",function(M){if(!(h.state||h.$dragDelay||!h.$dragEnabled)){var _=a.renderer.screenToTextCoordinates(M.x,M.y),v=a.session.selection.getRange(),R=a.renderer;!v.isEmpty()&&v.insideStart(_.row,_.column)?R.setCursorStyle("default"):R.setCursorStyle("")}},a)}return n.prototype.onMouseEvent=function(a,h){this.editor.session&&this.editor._emit(a,new g(h,this.editor))},n.prototype.onMouseMove=function(a,h){var m=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!m||!m.length||this.editor._emit(a,new g(h,this.editor))},n.prototype.onMouseWheel=function(a,h){var m=new g(h,this.editor);m.speed=this.$scrollSpeed*2,m.wheelX=h.wheelX,m.wheelY=h.wheelY,this.editor._emit(a,m)},n.prototype.setState=function(a){this.state=a},n.prototype.captureMouse=function(a,h){this.x=a.x,this.y=a.y,this.isMousePressed=!0;var m=this.editor,y=this.editor.renderer;y.$isMousePressed=!0;var E=this,M=function(F){if(F){if(w.isWebKit&&!F.which&&E.releaseMouse)return E.releaseMouse();E.x=F.clientX,E.y=F.clientY,h&&h(F),E.mouseEvent=new g(F,E.editor),E.$mouseMoved=!0}},_=function(F){m.off("beforeEndOperation",R),clearInterval(I),m.session&&v(),E[E.state+"End"]&&E[E.state+"End"](F),E.state="",E.isMousePressed=y.$isMousePressed=!1,y.$keepTextAreaAtCursor&&y.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,F&&E.onMouseEvent("mouseup",F),m.endOperation()},v=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(w.isOldIE&&a.domEvent.type=="dblclick")return setTimeout(function(){_(a)});var R=function(F){E.releaseMouse&&m.curOp.command.name&&m.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};m.on("beforeEndOperation",R),m.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=M,E.releaseMouse=b.capture(this.editor.container,M,_);var I=setInterval(v,20)},n.prototype.cancelContextMenu=function(){var a=(function(h){h&&h.domEvent&&h.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",a),h&&h.domEvent&&b.stopEvent(h.domEvent))}).bind(this);setTimeout(a,10),this.editor.on("nativecontextmenu",a)},n.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},n}();r.prototype.releaseMouse=null,o.defineOptions(r.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:w.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),l.MouseHandler=r}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,l,T){var b=e("../lib/dom"),w=function(){function C(p){p.on("click",function(g){var i=g.getDocumentPosition(),s=p.session,o=s.getFoldAt(i.row,i.column,1);o&&(g.getAccelKey()?s.removeFold(o):s.expandFold(o),g.stop());var r=g.domEvent&&g.domEvent.target;r&&b.hasCssClass(r,"ace_inline_button")&&b.hasCssClass(r,"ace_toggle_wrap")&&(s.setOption("wrap",!s.getUseWrapMode()),p.renderer.scrollCursorIntoView())}),p.on("gutterclick",function(g){var i=p.renderer.$gutterLayer.getRegion(g);if(i=="foldWidgets"){var s=g.getDocumentPosition().row,o=p.session;o.foldWidgets&&o.foldWidgets[s]&&p.session.onFoldWidgetClick(s,g),p.isFocused()||p.focus(),g.stop()}}),p.on("gutterdblclick",function(g){var i=p.renderer.$gutterLayer.getRegion(g);if(i=="foldWidgets"){var s=g.getDocumentPosition().row,o=p.session,r=o.getParentFoldRangeData(s,!0),n=r.range||r.firstRange;if(n){s=n.start.row;var a=o.getFoldAt(s,o.getLine(s).length,1);a?o.removeFold(a):(o.addFold("...",n),p.renderer.scrollCursorIntoView({row:n.start.row,column:0}))}g.stop()}})}return C}();l.FoldHandler=w}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,l,T){var b=e("../lib/keys"),w=e("../lib/event"),C=function(){function p(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return p.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},p.prototype.setKeyboardHandler=function(g){var i=this.$handlers;if(i[i.length-1]!=g){for(;i[i.length-1]&&i[i.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(i[i.length-1]);this.addKeyboardHandler(g,1)}},p.prototype.addKeyboardHandler=function(g,i){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var s=this.$handlers.indexOf(g);s!=-1&&this.$handlers.splice(s,1),i==null?this.$handlers.push(g):this.$handlers.splice(i,0,g),s==-1&&g.attach&&g.attach(this.$editor)}},p.prototype.removeKeyboardHandler=function(g){var i=this.$handlers.indexOf(g);return i==-1?!1:(this.$handlers.splice(i,1),g.detach&&g.detach(this.$editor),!0)},p.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},p.prototype.getStatusText=function(){var g=this.$data,i=g.editor;return this.$handlers.map(function(s){return s.getStatusText&&s.getStatusText(i,g)||""}).filter(Boolean).join(" ")},p.prototype.$callKeyboardHandlers=function(g,i,s,o){for(var r,n=!1,a=this.$editor.commands,h=this.$handlers.length;h--&&(r=this.$handlers[h].handleKeyboard(this.$data,g,i,s,o),!(!(!r||!r.command)&&(r.command=="null"?n=!0:n=a.exec(r.command,this.$editor,r.args,o),n&&o&&g!=-1&&r.passEvent!=!0&&r.command.passEvent!=!0&&w.stopEvent(o),n))););return!n&&g==-1&&(r={command:"insertstring"},n=a.exec("insertstring",this.$editor,i)),n&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),n},p.prototype.onCommandKey=function(g,i,s){var o=b.keyCodeToString(s);return this.$callKeyboardHandlers(i,o,s,g)},p.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},p}();l.KeyBinding=C}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,l,T){var b=0,w=0,C=!1,p=!1,g=!1,i=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],s=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],o=0,r=1,n=0,a=1,h=2,m=3,y=4,E=5,M=6,_=7,v=8,R=9,I=10,F=11,L=12,U=13,P=14,O=15,S=16,k=17,N=18,B=[N,N,N,N,N,N,N,N,N,M,E,M,v,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,E,E,E,M,v,y,y,F,F,F,y,y,y,y,y,I,R,I,R,R,h,h,h,h,h,h,h,h,h,h,R,y,y,y,y,y,y,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,y,y,y,y,y,y,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,y,y,y,y,N,N,N,N,N,N,E,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,R,y,F,F,F,F,y,y,y,y,n,y,y,N,y,y,F,F,h,h,y,n,y,y,y,h,n,y,y,y,y,y],V=[v,v,v,v,v,v,v,v,v,v,v,N,N,N,n,a,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,v,E,U,P,O,S,k,R,F,F,F,F,F,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,R,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,v];function G(ne,ce,ue,le){var me=b?s:i,Ae=null,$e=null,Te=null,Ge=0,je=null,at=null,et=-1,lt=null,jt=null,on=[];if(!le)for(lt=0,le=[];lt<ue;lt++)le[lt]=he(ne[lt]);for(w=b,C=!1,p=!1,g=!1,jt=0;jt<ue;jt++){if(Ae=Ge,on[jt]=$e=te(ne,le,on,jt),Ge=me[Ae][$e],je=Ge&240,Ge&=15,ce[jt]=Te=me[Ge][5],je>0)if(je==16){for(lt=et;lt<jt;lt++)ce[lt]=1;et=-1}else et=-1;if(at=me[Ge][6],at)et==-1&&(et=jt);else if(et>-1){for(lt=et;lt<jt;lt++)ce[lt]=Te;et=-1}le[jt]==E&&(ce[jt]=0),w|=Te}if(g){for(lt=0;lt<ue;lt++)if(le[lt]==M){ce[lt]=b;for(var Ht=lt-1;Ht>=0&&le[Ht]==v;Ht--)ce[Ht]=b}}}function Q(ne,ce,ue){if(!(w<ne)){if(ne==1&&b==r&&!p){ue.reverse();return}for(var le=ue.length,me=0,Ae,$e,Te,Ge;me<le;){if(ce[me]>=ne){for(Ae=me+1;Ae<le&&ce[Ae]>=ne;)Ae++;for($e=me,Te=Ae-1;$e<Te;$e++,Te--)Ge=ue[$e],ue[$e]=ue[Te],ue[Te]=Ge;me=Ae}me++}}}function te(ne,ce,ue,le){var me=ce[le],Ae,$e,Te,Ge;switch(me){case n:case a:C=!1;case y:case m:return me;case h:return C?m:h;case _:return C=!0,a;case v:return y;case R:return le<1||le+1>=ce.length||(Ae=ue[le-1])!=h&&Ae!=m||($e=ce[le+1])!=h&&$e!=m?y:(C&&($e=m),$e==Ae?$e:y);case I:return Ae=le>0?ue[le-1]:E,Ae==h&&le+1<ce.length&&ce[le+1]==h?h:y;case F:if(le>0&&ue[le-1]==h)return h;if(C)return y;for(Ge=le+1,Te=ce.length;Ge<Te&&ce[Ge]==F;)Ge++;return Ge<Te&&ce[Ge]==h?h:y;case L:for(Te=ce.length,Ge=le+1;Ge<Te&&ce[Ge]==L;)Ge++;if(Ge<Te){var je=ne[le],at=je>=1425&&je<=2303||je==64286;if(Ae=ce[Ge],at&&(Ae==a||Ae==_))return a}return le<1||(Ae=ce[le-1])==E?y:ue[le-1];case E:return C=!1,p=!0,b;case M:return g=!0,y;case U:case P:case S:case k:case O:C=!1;case N:return y}}function he(ne){var ce=ne.charCodeAt(0),ue=ce>>8;return ue==0?ce>191?n:B[ce]:ue==5?/[\u0591-\u05f4]/.test(ne)?a:n:ue==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?L:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?m:ce==1642?F:/[\u06f0-\u06f9]/.test(ne)?h:_:ue==32&&ce<=8287?V[ce&255]:ue==254&&ce>=65136?_:y}l.L=n,l.R=a,l.EN=h,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.RLE=7,l.DOT="·",l.doBidiReorder=function(ne,ce,ue){if(ne.length<2)return{};var le=ne.split(""),me=new Array(le.length),Ae=new Array(le.length),$e=[];b=ue?r:o,G(le,$e,le.length,ce);for(var Te=0;Te<me.length;me[Te]=Te,Te++);Q(2,$e,me),Q(1,$e,me);for(var Te=0;Te<me.length-1;Te++)ce[Te]===m?$e[Te]=l.AN:$e[Te]===a&&(ce[Te]>_&&ce[Te]<U||ce[Te]===y||ce[Te]===N)?$e[Te]=l.ON_R:Te>0&&le[Te-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(le[Te])&&($e[Te-1]=$e[Te]=l.R_H,Te++);le[le.length-1]===l.DOT&&($e[le.length-1]=l.B),le[0]===""&&($e[0]=l.RLE);for(var Te=0;Te<me.length;Te++)Ae[Te]=$e[me[Te]];return{logicalFromVisual:me,bidiLevels:Ae}},l.hasBidiCharacters=function(ne,ce){for(var ue=!1,le=0;le<ne.length;le++)ce[le]=he(ne.charAt(le)),!ue&&(ce[le]==a||ce[le]==_||ce[le]==m)&&(ue=!0);return ue},l.getVisualFromLogicalIdx=function(ne,ce){for(var ue=0;ue<ce.logicalFromVisual.length;ue++)if(ce.logicalFromVisual[ue]==ne)return ue;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,l,T){var b=e("./lib/bidiutil"),w=e("./lib/lang"),C=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,p=function(){function g(i){this.session=i,this.bidiMap={},this.currentRow=null,this.bidiUtil=b,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=C.test(i.getValue())}return g.prototype.isBidiRow=function(i,s,o){return this.seenBidi?(i!==this.currentRow&&(this.currentRow=i,this.updateRowLine(s,o),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(i){this.seenBidi?this.currentRow=null:i.action=="insert"&&C.test(i.lines.join(`
|
|
179
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var i=0,s=this.session.$screenRowCache;if(s.length){var o=this.session.$getRowCacheIndex(s,this.currentRow);o>=0&&(i=this.session.$docRowCache[o])}return i},g.prototype.getSplitIndex=function(){var i=0,s=this.session.$screenRowCache;if(s.length)for(var o,r=this.session.$getRowCacheIndex(s,this.currentRow);this.currentRow-i>0&&(o=this.session.$getRowCacheIndex(s,this.currentRow-i-1),o===r);)r=o,i++;else i=this.currentRow;return i},g.prototype.updateRowLine=function(i,s){i===void 0&&(i=this.getDocumentRow());var o=i===this.session.getLength()-1,r=o?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(i),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var n=this.session.$wrapData[i];n&&(s===void 0&&(s=this.getSplitIndex()),s>0&&n.length?(this.wrapIndent=n.indent,this.wrapOffset=this.wrapIndent*this.charWidths[b.L],this.line=s<n.length?this.line.substring(n[s-1],n[s]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[s]),s==n.length&&(this.line+=this.showInvisibles?r:b.DOT))}else this.line+=this.showInvisibles?r:b.DOT;var a=this.session,h=0,m;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(y,E){return y===" "||a.isFullWidth(y.charCodeAt(0))?(m=y===" "?a.getScreenTabSize(E+h):2,h+=m-1,w.stringRepeat(b.DOT,m)):y}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==b.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var i=[];b.hasBidiCharacters(this.line,i)||this.isRtlDir?this.bidiMap=b.doBidiReorder(this.line,i,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(i){if(this.characterWidth!==i.$characterSize.width){this.fontMetrics=i;var s=this.characterWidth=i.$characterSize.width,o=i.$measureCharWidth("ה");this.charWidths[b.L]=this.charWidths[b.EN]=this.charWidths[b.ON_R]=s,this.charWidths[b.R]=this.charWidths[b.AN]=o,this.charWidths[b.R_H]=o*.45,this.charWidths[b.B]=this.charWidths[b.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(i){this.showInvisibles=i,this.currentRow=null},g.prototype.setEolChar=function(i){this.EOL=i},g.prototype.setContentWidth=function(i){this.contentWidth=i},g.prototype.isRtlLine=function(i){return this.$isRtl?!0:i!=null?this.session.getLine(i).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(i,s){for(var o=i.getCursorPosition(),r=i.selection.getSelectionAnchor().row;r<=o.row;r++)!s&&i.session.getLine(r).charAt(0)===i.session.$bidiHandler.RLE?i.session.doc.removeInLine(r,0,1):s&&i.session.getLine(r).charAt(0)!==i.session.$bidiHandler.RLE&&i.session.doc.insert({column:0,row:r},i.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(i){i-=this.wrapIndent;var s=this.line.charAt(0)===this.RLE?1:0,o=i>s?this.session.getOverwrite()?i:i-1:s,r=b.getVisualFromLogicalIdx(o,this.bidiMap),n=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&i<=s&&n[r]%2!==0&&r++;for(var h=0;h<r;h++)a+=this.charWidths[n[h]];return!this.session.getOverwrite()&&i>s&&n[r]%2===0&&(a+=this.charWidths[n[r]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},g.prototype.getSelections=function(i,s){var o=this.bidiMap,r=o.bidiLevels,n,a=[],h=0,m=Math.min(i,s)-this.wrapIndent,y=Math.max(i,s)-this.wrapIndent,E=!1,M=!1,_=0;this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var v,R=0;R<r.length;R++)v=o.logicalFromVisual[R],n=r[R],E=v>=m&&v<y,E&&!M?_=h:!E&&M&&a.push({left:_,width:h-_}),h+=this.charWidths[n],M=E;if(E&&R===r.length&&a.push({left:_,width:h-_}),this.isRtlDir)for(var I=0;I<a.length;I++)a[I].left+=this.rtlLineOffset;return a},g.prototype.offsetToCol=function(o){this.isRtlDir&&(o-=this.rtlLineOffset);var s=0,o=Math.max(o,0),r=0,n=0,a=this.bidiMap.bidiLevels,h=this.charWidths[a[n]];for(this.wrapIndent&&(o-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);o>r+h/2;){if(r+=h,n===a.length-1){h=0;break}h=this.charWidths[a[++n]]}return n>0&&a[n-1]%2!==0&&a[n]%2===0?(o<r&&n--,s=this.bidiMap.logicalFromVisual[n]):n>0&&a[n-1]%2===0&&a[n]%2!==0?s=1+(o>r?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===a.length-1&&h===0&&a[n-1]%2===0||!this.isRtlDir&&n===0&&a[n]%2!==0?s=1+this.bidiMap.logicalFromVisual[n]:(n>0&&a[n-1]%2!==0&&h!==0&&n--,s=this.bidiMap.logicalFromVisual[n]),s===0&&this.isRtlDir&&s++,s+this.wrapIndent},g}();l.BidiHandler=p}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,l,T){var b=e("./lib/oop"),w=e("./lib/lang"),C=e("./lib/event_emitter").EventEmitter,p=e("./range").Range,g=function(){function i(s){this.session=s,this.doc=s.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var o=this;this.cursor.on("change",function(r){o.$cursorChanged=!0,o.$silent||o._emit("changeCursor"),!o.$isEmpty&&!o.$silent&&o._emit("changeSelection"),!o.$keepDesiredColumnOnChange&&r.old.column!=r.value.column&&(o.$desiredColumn=null)}),this.anchor.on("change",function(){o.$anchorChanged=!0,!o.$isEmpty&&!o.$silent&&o._emit("changeSelection")})}return i.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},i.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},i.prototype.getCursor=function(){return this.lead.getPosition()},i.prototype.setAnchor=function(s,o){this.$isEmpty=!1,this.anchor.setPosition(s,o)},i.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},i.prototype.getSelectionLead=function(){return this.lead.getPosition()},i.prototype.isBackwards=function(){var s=this.anchor,o=this.lead;return s.row>o.row||s.row==o.row&&s.column>o.column},i.prototype.getRange=function(){var s=this.anchor,o=this.lead;return this.$isEmpty?p.fromPoints(o,o):this.isBackwards()?p.fromPoints(o,s):p.fromPoints(s,o)},i.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},i.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},i.prototype.setRange=function(s,o){var r=o?s.end:s.start,n=o?s.start:s.end;this.$setSelection(r.row,r.column,n.row,n.column)},i.prototype.$setSelection=function(s,o,r,n){if(!this.$silent){var a=this.$isEmpty,h=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(s,o),this.cursor.setPosition(r,n),this.$isEmpty=!p.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||a!=this.$isEmpty||h)&&this._emit("changeSelection")}},i.prototype.$moveSelection=function(s){var o=this.lead;this.$isEmpty&&this.setSelectionAnchor(o.row,o.column),s.call(this)},i.prototype.selectTo=function(s,o){this.$moveSelection(function(){this.moveCursorTo(s,o)})},i.prototype.selectToPosition=function(s){this.$moveSelection(function(){this.moveCursorToPosition(s)})},i.prototype.moveTo=function(s,o){this.clearSelection(),this.moveCursorTo(s,o)},i.prototype.moveToPosition=function(s){this.clearSelection(),this.moveCursorToPosition(s)},i.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},i.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},i.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},i.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},i.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},i.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},i.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},i.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},i.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},i.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},i.prototype.getWordRange=function(s,o){if(typeof o>"u"){var r=s||this.lead;s=r.row,o=r.column}return this.session.getWordRange(s,o)},i.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},i.prototype.selectAWord=function(){var s=this.getCursor(),o=this.session.getAWordRange(s.row,s.column);this.setSelectionRange(o)},i.prototype.getLineRange=function(s,o){var r=typeof s=="number"?s:this.lead.row,n,a=this.session.getFoldLine(r);return a?(r=a.start.row,n=a.end.row):n=r,o===!0?new p(r,0,n,this.session.getLine(n).length):new p(r,0,n+1,0)},i.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},i.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},i.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},i.prototype.wouldMoveIntoSoftTab=function(s,o,r){var n=s.column,a=s.column+o;return r<0&&(n=s.column-o,a=s.column),this.session.isTabStop(s)&&this.doc.getLine(s.row).slice(n,a).split(" ").length-1==o},i.prototype.moveCursorLeft=function(){var s=this.lead.getPosition(),o;if(o=this.session.getFoldAt(s.row,s.column,-1))this.moveCursorTo(o.start.row,o.start.column);else if(s.column===0)s.row>0&&this.moveCursorTo(s.row-1,this.doc.getLine(s.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(s,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},i.prototype.moveCursorRight=function(){var s=this.lead.getPosition(),o;if(o=this.session.getFoldAt(s.row,s.column,1))this.moveCursorTo(o.end.row,o.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var r=this.session.getTabSize(),s=this.lead;this.wouldMoveIntoSoftTab(s,r,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,r):this.moveCursorBy(0,1)}},i.prototype.moveCursorLineStart=function(){var s=this.lead.row,o=this.lead.column,r=this.session.documentToScreenRow(s,o),n=this.session.screenToDocumentPosition(r,0),a=this.session.getDisplayLine(s,null,n.row,n.column),h=a.match(/^\s*/);h[0].length!=o&&!this.session.$useEmacsStyleLineStart&&(n.column+=h[0].length),this.moveCursorToPosition(n)},i.prototype.moveCursorLineEnd=function(){var s=this.lead,o=this.session.getDocumentLastRowColumnPosition(s.row,s.column);if(this.lead.column==o.column){var r=this.session.getLine(o.row);if(o.column==r.length){var n=r.search(/\s+$/);n>0&&(o.column=n)}}this.moveCursorTo(o.row,o.column)},i.prototype.moveCursorFileEnd=function(){var s=this.doc.getLength()-1,o=this.doc.getLine(s).length;this.moveCursorTo(s,o)},i.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},i.prototype.moveCursorLongWordRight=function(){var s=this.lead.row,o=this.lead.column,r=this.doc.getLine(s),n=r.substring(o);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var a=this.session.getFoldAt(s,o,1);if(a){this.moveCursorTo(a.end.row,a.end.column);return}if(this.session.nonTokenRe.exec(n)&&(o+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=r.substring(o)),o>=r.length){this.moveCursorTo(s,r.length),this.moveCursorRight(),s<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(n)&&(o+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,o)},i.prototype.moveCursorLongWordLeft=function(){var s=this.lead.row,o=this.lead.column,r;if(r=this.session.getFoldAt(s,o,-1)){this.moveCursorTo(r.start.row,r.start.column);return}var n=this.session.getFoldStringAt(s,o,-1);n==null&&(n=this.doc.getLine(s).substring(0,o));var a=w.stringReverse(n);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(a)&&(o-=this.session.nonTokenRe.lastIndex,a=a.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),o<=0){this.moveCursorTo(s,0),this.moveCursorLeft(),s>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(a)&&(o-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(s,o)},i.prototype.$shortWordEndIndex=function(s){var o=0,r,n=/\s/,a=this.session.tokenRe;if(a.lastIndex=0,this.session.tokenRe.exec(s))o=this.session.tokenRe.lastIndex;else{for(;(r=s[o])&&n.test(r);)o++;if(o<1){for(a.lastIndex=0;(r=s[o])&&!a.test(r);)if(a.lastIndex=0,o++,n.test(r))if(o>2){o--;break}else{for(;(r=s[o])&&n.test(r);)o++;if(o>2)break}}}return a.lastIndex=0,o},i.prototype.moveCursorShortWordRight=function(){var s=this.lead.row,o=this.lead.column,r=this.doc.getLine(s),n=r.substring(o),a=this.session.getFoldAt(s,o,1);if(a)return this.moveCursorTo(a.end.row,a.end.column);if(o==r.length){var h=this.doc.getLength();do s++,n=this.doc.getLine(s);while(s<h&&/^\s*$/.test(n));/^\s+/.test(n)||(n=""),o=0}var m=this.$shortWordEndIndex(n);this.moveCursorTo(s,o+m)},i.prototype.moveCursorShortWordLeft=function(){var s=this.lead.row,o=this.lead.column,r;if(r=this.session.getFoldAt(s,o,-1))return this.moveCursorTo(r.start.row,r.start.column);var n=this.session.getLine(s).substring(0,o);if(o===0){do s--,n=this.doc.getLine(s);while(s>0&&/^\s*$/.test(n));o=n.length,/\s+$/.test(n)||(n="")}var a=w.stringReverse(n),h=this.$shortWordEndIndex(a);return this.moveCursorTo(s,o-h)},i.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},i.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},i.prototype.moveCursorBy=function(s,o){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),n;if(o===0&&(s!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),s!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var a=this.session.lineWidgets[this.lead.row];s<0?s-=a.rowsAbove||0:s>0&&(s+=a.rowCount-(a.rowsAbove||0))}var h=this.session.screenToDocumentPosition(r.row+s,r.column,n);s!==0&&o===0&&h.row===this.lead.row&&(h.column,this.lead.column),this.moveCursorTo(h.row,h.column+o,o===0)},i.prototype.moveCursorToPosition=function(s){this.moveCursorTo(s.row,s.column)},i.prototype.moveCursorTo=function(s,o,r){var n=this.session.getFoldAt(s,o,1);n&&(s=n.start.row,o=n.start.column),this.$keepDesiredColumnOnChange=!0;var a=this.session.getLine(s);/[\uDC00-\uDFFF]/.test(a.charAt(o))&&a.charAt(o-1)&&(this.lead.row==s&&this.lead.column==o+1?o=o-1:o=o+1),this.lead.setPosition(s,o),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},i.prototype.moveCursorToScreen=function(s,o,r){var n=this.session.screenToDocumentPosition(s,o);this.moveCursorTo(n.row,n.column,r)},i.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},i.prototype.fromOrientedRange=function(s){this.setSelectionRange(s,s.cursor==s.start),this.$desiredColumn=s.desiredColumn||this.$desiredColumn},i.prototype.toOrientedRange=function(s){var o=this.getRange();return s?(s.start.column=o.start.column,s.start.row=o.start.row,s.end.column=o.end.column,s.end.row=o.end.row):s=o,s.cursor=this.isBackwards()?s.start:s.end,s.desiredColumn=this.$desiredColumn,s},i.prototype.getRangeOfMovements=function(s){var o=this.getCursor();try{s(this);var r=this.getCursor();return p.fromPoints(o,r)}catch{return p.fromPoints(o,o)}finally{this.moveCursorToPosition(o)}},i.prototype.toJSON=function(){if(this.rangeCount)var s=this.ranges.map(function(o){var r=o.clone();return r.isBackwards=o.cursor==o.start,r});else{var s=this.getRange();s.isBackwards=this.isBackwards()}return s},i.prototype.fromJSON=function(s){if(s.start==null)if(this.rangeList&&s.length>1){this.toSingleRange(s[0]);for(var o=s.length;o--;){var r=p.fromPoints(s[o].start,s[o].end);s[o].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else s=s[0];this.rangeList&&this.toSingleRange(s),this.setSelectionRange(s,s.isBackwards)},i.prototype.isEqual=function(s){if((s.length||this.rangeCount)&&s.length!=this.rangeCount)return!1;if(!s.length||!this.ranges)return this.getRange().isEqual(s);for(var o=this.ranges.length;o--;)if(!this.ranges[o].isEqual(s[o]))return!1;return!0},i}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,b.implement(g.prototype,C),l.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,l,T){var b=e("./lib/report_error").reportError,w=2e3,C=function(){function p(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var i in this.states){for(var s=this.states[i],o=[],r=0,n=this.matchMappings[i]={defaultToken:"text"},a="g",h=[],m=0;m<s.length;m++){var y=s[m];if(y.defaultToken&&(n.defaultToken=y.defaultToken),y.caseInsensitive&&a.indexOf("i")===-1&&(a+="i"),y.unicode&&a.indexOf("u")===-1&&(a+="u"),y.regex!=null){y.regex instanceof RegExp&&(y.regex=y.regex.toString().slice(1,-1));var E=y.regex,M=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(y.token)?y.token.length==1||M==1?y.token=y.token[0]:M-1!=y.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:y,groupCount:M-1}),y.token=y.token[0]):(y.tokenArray=y.token,y.token=null,y.onMatch=this.$arrayTokens):typeof y.token=="function"&&!y.onMatch&&(M>1?y.onMatch=this.$applyToken:y.onMatch=y.token),M>1&&(/\\\d/.test(y.regex)?E=y.regex.replace(/\\([0-9]+)/g,function(_,v){return"\\"+(parseInt(v,10)+r+1)}):(M=1,E=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&h.push(y)),n[r]=m,r+=M,o.push(E),y.onMatch||(y.onMatch=null)}}o.length||(n[0]=0,o.push("$")),h.forEach(function(_){_.splitRegex=this.createSplitterRegexp(_.regex,a)},this),this.regExps[i]=new RegExp("("+o.join(")|(")+")|($)",a)}}return p.prototype.$setMaxTokenCount=function(g){w=g|0},p.prototype.$applyToken=function(g){var i=this.splitRegex.exec(g).slice(1),s=this.token.apply(this,i);if(typeof s=="string")return[{type:s,value:g}];for(var o=[],r=0,n=s.length;r<n;r++)i[r]&&(o[o.length]={type:s[r],value:i[r]});return o},p.prototype.$arrayTokens=function(g){if(!g)return[];var i=this.splitRegex.exec(g);if(!i)return"text";for(var s=[],o=this.tokenArray,r=0,n=o.length;r<n;r++)i[r+1]&&(s[s.length]={type:o[r],value:i[r+1]});return s},p.prototype.removeCapturingGroups=function(g){var i=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(s,o){return o?"(?:":s});return i},p.prototype.createSplitterRegexp=function(g,i){if(g.indexOf("(?=")!=-1){var s=0,o=!1,r={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(n,a,h,m,y,E){return o?o=y!="]":y?o=!0:m?(s==r.stack&&(r.end=E+1,r.stack=-1),s--):h&&(s++,h.length!=1&&(r.stack=s,r.start=E)),n}),r.end!=null&&/^\)*$/.test(g.substr(r.end))&&(g=g.substring(0,r.start)+g.substr(r.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(i||"").replace("g",""))},p.prototype.getLineTokens=function(g,i){if(i&&typeof i!="string"){var s=i.slice(0);i=s[0],i==="#tmp"&&(s.shift(),i=s.shift())}else var s=[];var o=i||"start",r=this.states[o];r||(o="start",r=this.states[o]);var n=this.matchMappings[o],a=this.regExps[o];a.lastIndex=0;for(var h,m=[],y=0,E=0,M={type:null,value:""};h=a.exec(g);){var _=n.defaultToken,v=null,R=h[0],I=a.lastIndex;if(I-R.length>y){var F=g.substring(y,I-R.length);M.type==_?M.value+=F:(M.type&&m.push(M),M={type:_,value:F})}for(var L=0;L<h.length-2;L++)if(h[L+1]!==void 0){v=r[n[L]],v.onMatch?_=v.onMatch(R,o,s,g):_=v.token,v.next&&(typeof v.next=="string"?o=v.next:o=v.next(o,s),r=this.states[o],r||(this.reportError("state doesn't exist",o),o="start",r=this.states[o]),n=this.matchMappings[o],y=I,a=this.regExps[o],a.lastIndex=I),v.consumeLineEnd&&(y=I);break}if(R){if(typeof _=="string")(!v||v.merge!==!1)&&M.type===_?M.value+=R:(M.type&&m.push(M),M={type:_,value:R});else if(_){M.type&&m.push(M),M={type:null,value:""};for(var L=0;L<_.length;L++)m.push(_[L])}}if(y==g.length)break;if(y=I,E++>w){for(E>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:i,line:g});y<g.length;)M.type&&m.push(M),M={value:g.substring(y,y+=500),type:"overflow"};o="start",s=[];break}}return M.type&&m.push(M),s.length>1&&s[0]!==o&&s.unshift("#tmp",o),{tokens:m,state:s.length?s:o}},p}();C.prototype.reportError=b,l.Tokenizer=C}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,l,T){var b=e("../lib/deep_copy").deepCopy,w;w=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,i){if(!i){for(var s in g)this.$rules[s]=g[s];return}for(var s in g){for(var o=g[s],r=0;r<o.length;r++){var n=o[r];(n.next||n.onMatch)&&(typeof n.next=="string"&&n.next.indexOf(i)!==0&&(n.next=i+n.next),n.nextState&&n.nextState.indexOf(i)!==0&&(n.nextState=i+n.nextState))}this.$rules[i+s]=o}},this.getRules=function(){return this.$rules},this.embedRules=function(g,i,s,o,r){var n=typeof g=="function"?new g().getRules():g;if(o)for(var a=0;a<o.length;a++)o[a]=i+o[a];else{o=[];for(var h in n)o.push(i+h)}if(this.addRules(n,i),s)for(var m=Array.prototype[r?"push":"unshift"],a=0;a<o.length;a++)m.apply(this.$rules[o[a]],b(s));this.$embeds||(this.$embeds=[]),this.$embeds.push(i)},this.getEmbeds=function(){return this.$embeds};var C=function(g,i){return(g!="start"||i.length)&&i.unshift(this.nextState,g),this.nextState},p=function(g,i){return i.shift(),i.shift()||"start"};this.normalizeRules=function(){var g=0,i=this.$rules;function s(o){var r=i[o];r.processed=!0;for(var n=0;n<r.length;n++){var a=r[n],h=null;Array.isArray(a)&&(h=a,a={}),!a.regex&&a.start&&(a.regex=a.start,a.next||(a.next=[]),a.next.push({defaultToken:a.token},{token:a.token+".end",regex:a.end||a.start,next:"pop"}),a.token=a.token+".start",a.push=!0);var m=a.next||a.push;if(m&&Array.isArray(m)){var y=a.stateName;y||(y=a.token,typeof y!="string"&&(y=y[0]||""),i[y]&&(y+=g++)),i[y]=m,a.next=y,s(y)}else m=="pop"&&(a.next=p);if(a.push&&(a.nextState=a.next||a.push,a.next=C,delete a.push),a.rules)for(var E in a.rules)i[E]?i[E].push&&i[E].push.apply(i[E],a.rules[E]):i[E]=a.rules[E];var M=typeof a=="string"?a:a.include;if(M&&(M==="$self"&&(M="start"),Array.isArray(M)?h=M.map(function(v){return i[v]}):h=i[M]),h){var _=[n,1].concat(h);a.noEscape&&(_=_.filter(function(v){return!v.next})),r.splice.apply(r,_),n--}a.keywordMap&&(a.token=this.createKeywordMapper(a.keywordMap,a.defaultToken||"text",a.caseInsensitive),delete a.defaultToken)}}Object.keys(i).forEach(s,this)},this.createKeywordMapper=function(g,i,s,o){var r=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(n){for(var a=g[n],h=a.split(o||"|"),m=h.length;m--;){var y=h[m];this.$keywordList.push(y),s&&(y=y.toLowerCase()),r[y]=n}},this),g=null,s?function(n){return r[n.toLowerCase()]||i}:function(n){return r[n]||i}},this.getKeywords=function(){return this.$keywords}}).call(w.prototype),l.TextHighlightRules=w}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,l,T){var b;b=function(){this.$behaviours={}},(function(){this.add=function(w,C,p){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[w]:this.$behaviours[w]={}}this.$behaviours[w][C]=p},this.addBehaviours=function(w){for(var C in w)for(var p in w[C])this.add(C,p,w[C][p])},this.remove=function(w){this.$behaviours&&this.$behaviours[w]&&delete this.$behaviours[w]},this.inherit=function(w,C){if(typeof w=="function")var p=new w().getBehaviours(C);else var p=w.getBehaviours(C);this.addBehaviours(p)},this.getBehaviours=function(w){if(w){for(var C={},p=0;p<w.length;p++)this.$behaviours[w[p]]&&(C[w[p]]=this.$behaviours[w[p]]);return C}else return this.$behaviours}}).call(b.prototype),l.Behaviour=b}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,l,T){var b=e("./range").Range,w=function(){function C(p,g,i){this.$session=p,this.$row=g,this.$rowTokens=p.getTokens(g);var s=p.getTokenAt(g,i);this.$tokenIndex=s?s.index:-1}return C.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},C.prototype.stepForward=function(){this.$tokenIndex+=1;for(var p;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,p||(p=this.$session.getLength()),this.$row>=p)return this.$row=p-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},C.prototype.getCurrentTokenRow=function(){return this.$row},C.prototype.getCurrentTokenColumn=function(){var p=this.$rowTokens,g=this.$tokenIndex,i=p[g].start;if(i!==void 0)return i;for(i=0;g>0;)g-=1,i+=p[g].value.length;return i},C.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},C.prototype.getCurrentTokenRange=function(){var p=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new b(this.$row,g,this.$row,g+p.value.length)},C}();l.TokenIterator=w}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,l,T){var b=e("../../lib/oop"),w=e("../behaviour").Behaviour,C=e("../../token_iterator").TokenIterator,p=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],i=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],s,o={},r={'"':'"',"'":"'"},n=function(m){var y=-1;if(m.multiSelect&&(y=m.selection.index,o.rangeCount!=m.multiSelect.rangeCount&&(o={rangeCount:m.multiSelect.rangeCount})),o[y])return s=o[y];s=o[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},a=function(m,y,E,M){var _=m.end.row-m.start.row;return{text:E+y+M,selection:[0,m.start.column+1,_,m.end.column+(_?0:1)]}},h;h=function(m){m=m||{},this.add("braces","insertion",function(y,E,M,_,v){var R=M.getCursorPosition(),I=_.doc.getLine(R.row);if(v=="{"){n(M);var F=M.getSelectionRange(),L=_.doc.getTextRange(F),U=_.getTokenAt(R.row,R.column);if(L!==""&&L!=="{"&&M.getWrapBehavioursEnabled())return a(F,L,"{","}");if(U&&/(?:string)\.quasi|\.xml/.test(U.type)){var P=[/tag\-(?:open|name)/,/attribute\-name/];return P.some(function(G){return G.test(U.type)})||/(string)\.quasi/.test(U.type)&&U.value[R.column-U.start-1]!=="$"?void 0:(h.recordAutoInsert(M,_,"}"),{text:"{}",selection:[1,1]})}else if(h.isSaneInsertion(M,_))return/[\]\}\)]/.test(I[R.column])||M.inMultiSelectMode||m.braces?(h.recordAutoInsert(M,_,"}"),{text:"{}",selection:[1,1]}):(h.recordMaybeInsert(M,_,"{"),{text:"{",selection:[1,1]})}else if(v=="}"){n(M);var O=I.substring(R.column,R.column+1);if(O=="}"){var S=_.$findOpeningBracket("}",{column:R.column+1,row:R.row});if(S!==null&&h.isAutoInsertedClosing(R,I,v))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(v==`
|
|
180
|
-
`||v==`\r
|
|
181
|
-
`){n(M);var k="";h.isMaybeInsertedClosing(R,I)&&(k=p.stringRepeat("}",s.maybeInsertedBrackets),h.clearMaybeInsertedClosing());var O=I.substring(R.column,R.column+1);if(O==="}"){var N=_.findMatchingBracket({row:R.row,column:R.column+1},"}");if(!N)return null;var B=this.$getIndent(_.getLine(N.row))}else if(k)var B=this.$getIndent(I);else{h.clearMaybeInsertedClosing();return}var V=B+_.getTabString();return{text:`
|
|
182
|
-
`+V+`
|
|
183
|
-
`+B+k,selection:[1,V.length,1,V.length]}}else h.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,E,M,_,v){var R=_.doc.getTextRange(v);if(!v.isMultiLine()&&R=="{"){n(M);var I=_.doc.getLine(v.start.row),F=I.substring(v.end.column,v.end.column+1);if(F=="}")return v.end.column++,v;s.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,E,M,_,v){if(v=="("){n(M);var R=M.getSelectionRange(),I=_.doc.getTextRange(R);if(I!==""&&M.getWrapBehavioursEnabled())return a(R,I,"(",")");if(h.isSaneInsertion(M,_))return h.recordAutoInsert(M,_,")"),{text:"()",selection:[1,1]}}else if(v==")"){n(M);var F=M.getCursorPosition(),L=_.doc.getLine(F.row),U=L.substring(F.column,F.column+1);if(U==")"){var P=_.$findOpeningBracket(")",{column:F.column+1,row:F.row});if(P!==null&&h.isAutoInsertedClosing(F,L,v))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,E,M,_,v){var R=_.doc.getTextRange(v);if(!v.isMultiLine()&&R=="("){n(M);var I=_.doc.getLine(v.start.row),F=I.substring(v.start.column+1,v.start.column+2);if(F==")")return v.end.column++,v}}),this.add("brackets","insertion",function(y,E,M,_,v){if(v=="["){n(M);var R=M.getSelectionRange(),I=_.doc.getTextRange(R);if(I!==""&&M.getWrapBehavioursEnabled())return a(R,I,"[","]");if(h.isSaneInsertion(M,_))return h.recordAutoInsert(M,_,"]"),{text:"[]",selection:[1,1]}}else if(v=="]"){n(M);var F=M.getCursorPosition(),L=_.doc.getLine(F.row),U=L.substring(F.column,F.column+1);if(U=="]"){var P=_.$findOpeningBracket("]",{column:F.column+1,row:F.row});if(P!==null&&h.isAutoInsertedClosing(F,L,v))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,E,M,_,v){var R=_.doc.getTextRange(v);if(!v.isMultiLine()&&R=="["){n(M);var I=_.doc.getLine(v.start.row),F=I.substring(v.start.column+1,v.start.column+2);if(F=="]")return v.end.column++,v}}),this.add("string_dquotes","insertion",function(y,E,M,_,v){var R=_.$mode.$quotes||r;if(v.length==1&&R[v]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(v)!=-1)return;n(M);var I=v,F=M.getSelectionRange(),L=_.doc.getTextRange(F);if(L!==""&&(L.length!=1||!R[L])&&M.getWrapBehavioursEnabled())return a(F,L,I,I);if(!L){var U=M.getCursorPosition(),P=_.doc.getLine(U.row),O=P.substring(U.column-1,U.column),S=P.substring(U.column,U.column+1),k=_.getTokenAt(U.row,U.column),N=_.getTokenAt(U.row,U.column+1);if(O=="\\"&&k&&/escape/.test(k.type))return null;var B=k&&/string|escape/.test(k.type),V=!N||/string|escape/.test(N.type),G;if(S==I)G=B!==V,G&&/string\.end/.test(N.type)&&(G=!1);else{if(B&&!V||B&&V)return null;var Q=_.$mode.tokenRe;Q.lastIndex=0;var te=Q.test(O);Q.lastIndex=0;var he=Q.test(S),ne=_.$mode.$pairQuotesAfter,ce=ne&&ne[I]&&ne[I].test(O);if(!ce&&te||he||S&&!/[\s;,.})\]\\]/.test(S))return null;var ue=P[U.column-2];if(O==I&&(ue==I||Q.test(ue)))return null;G=!0}return{text:G?I+I:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,E,M,_,v){var R=_.$mode.$quotes||r,I=_.doc.getTextRange(v);if(!v.isMultiLine()&&R.hasOwnProperty(I)){n(M);var F=_.doc.getLine(v.start.row),L=F.substring(v.start.column+1,v.start.column+2);if(L==I)return v.end.column++,v}}),m.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,E,M,_,v){if(y==="doc-start"&&(v===`
|
|
184
|
-
`||v===`\r
|
|
185
|
-
`)&&M.selection.isEmpty()){var R=M.getCursorPosition();if(R.column===0)return;for(var I=_.doc.getLine(R.row),F=_.doc.getLine(R.row+1),L=_.getTokens(R.row),U=0,P=0;P<L.length;P++){U+=L[P].value.length;var O=L[P];if(U>=R.column){if(U===R.column){if(!/\.doc/.test(O.type))return;if(/\*\//.test(O.value)){var S=L[P+1];if(!S||!/\.doc/.test(S.type))return}}var k=R.column-(U-O.value.length),N=O.value.indexOf("*/"),B=O.value.indexOf("/**",N>-1?N+2:0);if(B!==-1&&k>B&&k<B+3||N!==-1&&B!==-1&&k>=N&&k<=B||!/\.doc/.test(O.type))return;break}}var V=this.$getIndent(I);if(/\s*\*/.test(F))return/^\s*\*/.test(I)?{text:v+V+"* ",selection:[1,2+V.length,1,2+V.length]}:{text:v+V+" * ",selection:[1,3+V.length,1,3+V.length]};if(/\/\*\*/.test(I.substring(0,R.column)))return{text:v+V+" * "+v+" "+V+"*/",selection:[1,4+V.length,1,4+V.length]}}})},h.isSaneInsertion=function(m,y){var E=m.getCursorPosition(),M=new C(y,E.row,E.column);if(!this.$matchTokenType(M.getCurrentToken()||"text",g)){if(/[)}\]]/.test(m.session.getLine(E.row)[E.column]))return!0;var _=new C(y,E.row,E.column+1);if(!this.$matchTokenType(_.getCurrentToken()||"text",g))return!1}return M.stepForward(),M.getCurrentTokenRow()!==E.row||this.$matchTokenType(M.getCurrentToken()||"text",i)},h.$matchTokenType=function(m,y){return y.indexOf(m.type||m)>-1},h.recordAutoInsert=function(m,y,E){var M=m.getCursorPosition(),_=y.doc.getLine(M.row);this.isAutoInsertedClosing(M,_,s.autoInsertedLineEnd[0])||(s.autoInsertedBrackets=0),s.autoInsertedRow=M.row,s.autoInsertedLineEnd=E+_.substr(M.column),s.autoInsertedBrackets++},h.recordMaybeInsert=function(m,y,E){var M=m.getCursorPosition(),_=y.doc.getLine(M.row);this.isMaybeInsertedClosing(M,_)||(s.maybeInsertedBrackets=0),s.maybeInsertedRow=M.row,s.maybeInsertedLineStart=_.substr(0,M.column)+E,s.maybeInsertedLineEnd=_.substr(M.column),s.maybeInsertedBrackets++},h.isAutoInsertedClosing=function(m,y,E){return s.autoInsertedBrackets>0&&m.row===s.autoInsertedRow&&E===s.autoInsertedLineEnd[0]&&y.substr(m.column)===s.autoInsertedLineEnd},h.isMaybeInsertedClosing=function(m,y){return s.maybeInsertedBrackets>0&&m.row===s.maybeInsertedRow&&y.substr(m.column)===s.maybeInsertedLineEnd&&y.substr(0,m.column)==s.maybeInsertedLineStart},h.popAutoInsertedClosing=function(){s.autoInsertedLineEnd=s.autoInsertedLineEnd.substr(1),s.autoInsertedBrackets--},h.clearMaybeInsertedClosing=function(){s&&(s.maybeInsertedBrackets=0,s.maybeInsertedRow=-1)},b.inherits(h,w),l.CstyleBehaviour=h}),ace.define("ace/unicode",["require","exports","module"],function(e,l,T){for(var b=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],w=0,C=[],p=0;p<b.length;p+=2)C.push(w+=b[p]),b[p+1]&&C.push(45,w+=b[p+1]);l.wordChars=String.fromCharCode.apply(null,C)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,l,T){var b=e("../config"),w=e("../tokenizer").Tokenizer,C=e("./text_highlight_rules").TextHighlightRules,p=e("./behaviour/cstyle").CstyleBehaviour,g=e("../unicode"),i=e("../lib/lang"),s=e("../token_iterator").TokenIterator,o=e("../range").Range,r;r=function(){this.HighlightRules=C},(function(){this.$defaultBehaviour=new p,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new w(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(n,a,h,m){var y=a.doc,E=!0,M=!0,_=1/0,v=a.getTabSize(),R=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(i.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var L=i.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),R=a.getUseSoftTabs();var O=function(he,ne){var ce=he.match(L);if(ce){var ue=ce[1].length,le=ce[0].length;!N(he,ue,le)&&ce[0][le-1]==" "&&le--,y.removeInLine(ne,ue,le)}},k=I+" ",P=function(he,ne){(!E||/\S/.test(he))&&(N(he,_,_)?y.insertInLine({row:ne,column:_},k):y.insertInLine({row:ne,column:_},I))},S=function(he,ne){return L.test(he)},N=function(he,ne,ce){for(var ue=0;ne--&&he.charAt(ne)==" ";)ue++;if(ue%v!=0)return!1;for(var ue=0;he.charAt(ce++)==" ";)ue++;return v>2?ue%v!=v-1:ue%v==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,F=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+i.escapeRegExp(I)+")"),U=new RegExp("(?:"+i.escapeRegExp(F)+")\\s*$"),P=function(G,Q){S(G,Q)||(!E||/\S/.test(G))&&(y.insertInLine({row:Q,column:G.length},F),y.insertInLine({row:Q,column:_},I))},O=function(G,Q){var te;(te=G.match(U))&&y.removeInLine(Q,G.length-te[0].length,G.length),(te=G.match(L))&&y.removeInLine(Q,te[1].length,te[0].length)},S=function(G,Q){if(L.test(G))return!0;for(var te=a.getTokens(Q),he=0;he<te.length;he++)if(te[he].type==="comment")return!0}}function B(G){for(var Q=h;Q<=m;Q++)G(y.getLine(Q),Q)}var V=1/0;B(function(G,Q){var te=G.search(/\S/);te!==-1?(te<_&&(_=te),M&&!S(G,Q)&&(M=!1)):V>G.length&&(V=G.length)}),_==1/0&&(_=V,E=!1,M=!1),R&&_%v!=0&&(_=Math.floor(_/v)*v),B(M?O:P)},this.toggleBlockComment=function(n,a,h,m){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var E=new s(a,m.row,m.column),M=E.getCurrentToken();a.selection;var _=a.selection.toOrientedRange(),v,R;if(M&&/comment/.test(M.type)){for(var I,F;M&&/comment/.test(M.type);){var L=M.value.indexOf(y.start);if(L!=-1){var U=E.getCurrentTokenRow(),P=E.getCurrentTokenColumn()+L;I=new o(U,P,U,P+y.start.length);break}M=E.stepBackward()}for(var E=new s(a,m.row,m.column),M=E.getCurrentToken();M&&/comment/.test(M.type);){var L=M.value.indexOf(y.end);if(L!=-1){var U=E.getCurrentTokenRow(),P=E.getCurrentTokenColumn()+L;F=new o(U,P,U,P+y.end.length);break}M=E.stepForward()}F&&a.remove(F),I&&(a.remove(I),v=I.start.row,R=-y.start.length)}else R=y.start.length,v=h.start.row,a.insert(h.end,y.end),a.insert(h.start,y.start);_.start.row==v&&(_.start.column+=R),_.end.row==v&&(_.end.column+=R),a.selection.fromOrientedRange(_)}},this.getNextLineIndent=function(n,a,h){return this.$getIndent(a)},this.checkOutdent=function(n,a,h){return!1},this.autoOutdent=function(n,a,h){},this.$getIndent=function(n){return n.match(/^\s*/)[0]},this.createWorker=function(n){return null},this.createModeDelegates=function(n){this.$embeds=[],this.$modes={};for(var a in n)if(n[a]){var h=n[a],m=h.prototype.$id,y=b.$modes[m];y||(b.$modes[m]=y=new h),b.$modes[a]||(b.$modes[a]=y),this.$embeds.push(a),this.$modes[a]=y}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],M=function(v){(function(R){var I=E[v],F=R[I];R[E[v]]=function(){return this.$delegator(I,arguments,F)}})(_)},_=this,a=0;a<E.length;a++)M(a)},this.$delegator=function(n,a,h){var m=a[0]||"start";if(typeof m!="string"){if(Array.isArray(m[2])){var y=m[2][m[2].length-1],E=this.$modes[y];if(E)return E[n].apply(E,[m[1]].concat([].slice.call(a,1)))}m=m[0]||"start"}for(var M=0;M<this.$embeds.length;M++)if(this.$modes[this.$embeds[M]]){var _=m.split(this.$embeds[M]);if(!_[0]&&_[1]){a[0]=_[1];var E=this.$modes[this.$embeds[M]];return E[n].apply(E,a)}}var v=h.apply(this,a);return h?v:void 0},this.transformAction=function(n,a,h,m,y){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var M in E)if(E[M][a]){var _=E[M][a].apply(this,arguments);if(_)return _}}},this.getKeywords=function(n){if(!this.completionKeywords){var a=this.$tokenizer.rules,h=[];for(var m in a)for(var y=a[m],E=0,M=y.length;E<M;E++)if(typeof y[E].token=="string")/keyword|support|storage/.test(y[E].token)&&h.push(y[E].regex);else if(typeof y[E].token=="object"){for(var _=0,v=y[E].token.length;_<v;_++)if(/keyword|support|storage/.test(y[E].token[_])){var m=y[E].regex.match(/\(.+?\)/g)[_];h.push(m.substr(1,m.length-2))}}this.completionKeywords=h}return n?h.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(n,a,h,m){var y=this.$keywordList||this.$createKeywordList();return y.map(function(E){return{name:E,value:E,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(r.prototype),l.Mode=r}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,l,T){var b=e("./lib/dom"),w=function(){function C(p){this.session=p,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return C.prototype.getRowLength=function(p){var g;return this.lineWidgets?g=this.lineWidgets[p]&&this.lineWidgets[p].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[p]?1+g:this.$wrapData[p].length+1+g},C.prototype.$getWidgetScreenLength=function(){var p=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(p+=g.rowCount)}),p},C.prototype.$onChangeEditor=function(p){this.attach(p.editor)},C.prototype.attach=function(p){p&&p.widgetManager&&p.widgetManager!=this&&p.widgetManager.detach(),this.editor!=p&&(this.detach(),this.editor=p,p&&(p.widgetManager=this,p.renderer.on("beforeRender",this.measureWidgets),p.renderer.on("afterRender",this.renderWidgets)))},C.prototype.detach=function(p){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(s){s&&s.el&&s.el.parentNode&&(s._inDocument=!1,s.el.parentNode.removeChild(s.el))})}},C.prototype.updateOnFold=function(p,g){var i=g.lineWidgets;if(!(!i||!p.action)){for(var s=p.data,o=s.start.row,r=s.end.row,n=p.action=="add",a=o+1;a<r;a++)i[a]&&(i[a].hidden=n);i[r]&&(n?i[o]?i[r].hidden=n:i[o]=i[r]:(i[o]==i[r]&&(i[o]=void 0),i[r].hidden=n))}},C.prototype.updateOnChange=function(p){var g=this.session.lineWidgets;if(g){var i=p.start.row,s=p.end.row-i;if(s!==0)if(p.action=="remove"){var o=g.splice(i+1,s);!g[i]&&o[o.length-1]&&(g[i]=o.pop()),o.forEach(function(n){n&&this.removeLineWidget(n)},this),this.$updateRows()}else{var r=new Array(s);g[i]&&g[i].column!=null&&p.start.column>g[i].column&&i++,r.unshift(i,0),g.splice.apply(g,r),this.$updateRows()}}},C.prototype.$updateRows=function(){var p=this.session.lineWidgets;if(p){var g=!0;p.forEach(function(i,s){if(i)for(g=!1,i.row=s;i.$oldWidget;)i.$oldWidget.row=s,i=i.$oldWidget}),g&&(this.session.lineWidgets=null)}},C.prototype.$registerLineWidget=function(p){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[p.row];return g&&(p.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[p.row]=p,p},C.prototype.addLineWidget=function(p){if(this.$registerLineWidget(p),p.session=this.session,!this.editor)return p;var g=this.editor.renderer;p.html&&!p.el&&(p.el=b.createElement("div"),p.el.innerHTML=p.html),p.text&&!p.el&&(p.el=b.createElement("div"),p.el.textContent=p.text),p.el&&(b.addCssClass(p.el,"ace_lineWidgetContainer"),p.className&&b.addCssClass(p.el,p.className),p.el.style.position="absolute",p.el.style.zIndex="5",g.container.appendChild(p.el),p._inDocument=!0,p.coverGutter||(p.el.style.zIndex="3"),p.pixelHeight==null&&(p.pixelHeight=p.el.offsetHeight)),p.rowCount==null&&(p.rowCount=p.pixelHeight/g.layerConfig.lineHeight);var i=this.session.getFoldAt(p.row,0);if(p.$fold=i,i){var s=this.session.lineWidgets;p.row==i.end.row&&!s[i.start.row]?s[i.start.row]=p:p.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:p.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(p),p},C.prototype.removeLineWidget=function(p){if(p._inDocument=!1,p.session=null,p.el&&p.el.parentNode&&p.el.parentNode.removeChild(p.el),p.editor&&p.editor.destroy)try{p.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[p.row];if(g==p)this.session.lineWidgets[p.row]=p.$oldWidget,p.$oldWidget&&this.onWidgetChanged(p.$oldWidget);else for(;g;){if(g.$oldWidget==p){g.$oldWidget=p.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:p.row}}}),this.$updateRows()},C.prototype.getWidgetsAtRow=function(p){for(var g=this.session.lineWidgets,i=g&&g[p],s=[];i;)s.push(i),i=i.$oldWidget;return s},C.prototype.onWidgetChanged=function(p){this.session._changedWidgets.push(p),this.editor&&this.editor.renderer.updateFull()},C.prototype.measureWidgets=function(p,g){var i=this.session._changedWidgets,s=g.layerConfig;if(!(!i||!i.length)){for(var o=1/0,r=0;r<i.length;r++){var n=i[r];if(!(!n||!n.el)&&n.session==this.session){if(!n._inDocument){if(this.session.lineWidgets[n.row]!=n)continue;n._inDocument=!0,g.container.appendChild(n.el)}n.h=n.el.offsetHeight,n.fixedWidth||(n.w=n.el.offsetWidth,n.screenWidth=Math.ceil(n.w/s.characterWidth));var a=n.h/s.lineHeight;n.coverLine&&(a-=this.session.getRowLineCount(n.row),a<0&&(a=0)),n.rowCount!=a&&(n.rowCount=a,n.row<o&&(o=n.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},C.prototype.renderWidgets=function(p,g){var i=g.layerConfig,s=this.session.lineWidgets;if(s){for(var o=Math.min(this.firstRow,i.firstRow),r=Math.max(this.lastRow,i.lastRow,s.length);o>0&&!s[o];)o--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,g.$cursorLayer.config=i;for(var n=o;n<=r;n++){var a=s[n];if(!(!a||!a.el)){if(a.hidden){a.el.style.top=-100-(a.pixelHeight||0)+"px";continue}a._inDocument||(a._inDocument=!0,g.container.appendChild(a.el));var h=g.$cursorLayer.getPixelPosition({row:n,column:0},!0).top;a.coverLine||(h+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=h-i.offset+"px";var m=a.coverGutter?0:g.gutterWidth;a.fixedWidth||(m-=g.scrollLeft),a.el.style.left=m+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=i.width+2*i.padding+"px"),a.fixedWidth?a.el.style.right=g.scrollBar.getWidth()+"px":a.el.style.right=""}}}},C}();l.LineWidgets=w}),ace.define("ace/apply_delta",["require","exports","module"],function(e,l,T){l.applyDelta=function(b,w,C){var p=w.start.row,g=w.start.column,i=b[p]||"";switch(w.action){case"insert":var s=w.lines;if(s.length===1)b[p]=i.substring(0,g)+w.lines[0]+i.substring(g);else{var o=[p,1].concat(w.lines);b.splice.apply(b,o),b[p]=i.substring(0,g)+b[p],b[p+w.lines.length-1]+=i.substring(g)}break;case"remove":var r=w.end.column,n=w.end.row;p===n?b[p]=i.substring(0,g)+i.substring(r):b.splice(p,n-p+1,i.substring(0,g)+b[n].substring(r));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,l,T){var b=e("./lib/oop"),w=e("./lib/event_emitter").EventEmitter,C=function(){function i(s,o,r){this.$onChange=this.onChange.bind(this),this.attach(s),typeof o!="number"?this.setPosition(o.row,o.column):this.setPosition(o,r)}return i.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},i.prototype.getDocument=function(){return this.document},i.prototype.onChange=function(s){if(!(s.start.row==s.end.row&&s.start.row!=this.row)&&!(s.start.row>this.row)){var o=g(s,{row:this.row,column:this.column},this.$insertRight);this.setPosition(o.row,o.column,!0)}},i.prototype.setPosition=function(s,o,r){var n;if(r?n={row:s,column:o}:n=this.$clipPositionToDocument(s,o),!(this.row==n.row&&this.column==n.column)){var a={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:a,value:n})}},i.prototype.detach=function(){this.document.off("change",this.$onChange)},i.prototype.attach=function(s){this.document=s||this.document,this.document.on("change",this.$onChange)},i.prototype.$clipPositionToDocument=function(s,o){var r={};return s>=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):s<0?(r.row=0,r.column=0):(r.row=s,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,o))),o<0&&(r.column=0),r},i}();C.prototype.$insertRight=!1,b.implement(C.prototype,w);function p(i,s,o){var r=o?i.column<=s.column:i.column<s.column;return i.row<s.row||i.row==s.row&&r}function g(i,s,o){var r=i.action=="insert",n=(r?1:-1)*(i.end.row-i.start.row),a=(r?1:-1)*(i.end.column-i.start.column),h=i.start,m=r?h:i.end;return p(s,h,o)?{row:s.row,column:s.column}:p(m,s,!o)?{row:s.row+n,column:s.column+(s.row==m.row?a:0)}:{row:h.row,column:h.column}}l.Anchor=C}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,l,T){var b=e("./lib/oop"),w=e("./apply_delta").applyDelta,C=e("./lib/event_emitter").EventEmitter,p=e("./range").Range,g=e("./anchor").Anchor,i=function(){function s(o){this.$lines=[""],o.length===0?this.$lines=[""]:Array.isArray(o)?this.insertMergedLines({row:0,column:0},o):this.insert({row:0,column:0},o)}return s.prototype.setValue=function(o){var r=this.getLength()-1;this.remove(new p(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},o||"")},s.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},s.prototype.createAnchor=function(o,r){return new g(this,o,r)},s.prototype.$detectNewLine=function(o){var r=o.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:`
|
|
186
|
-
`,this._signal("changeNewLineMode")},s.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
|
187
|
-
`;case"unix":return`
|
|
188
|
-
`;default:return this.$autoNewLine||`
|
|
189
|
-
`}},s.prototype.setNewLineMode=function(o){this.$newLineMode!==o&&(this.$newLineMode=o,this._signal("changeNewLineMode"))},s.prototype.getNewLineMode=function(){return this.$newLineMode},s.prototype.isNewLine=function(o){return o==`\r
|
|
190
|
-
`||o=="\r"||o==`
|
|
191
|
-
`},s.prototype.getLine=function(o){return this.$lines[o]||""},s.prototype.getLines=function(o,r){return this.$lines.slice(o,r+1)},s.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},s.prototype.getLength=function(){return this.$lines.length},s.prototype.getTextRange=function(o){return this.getLinesForRange(o).join(this.getNewLineCharacter())},s.prototype.getLinesForRange=function(o){var r;if(o.start.row===o.end.row)r=[this.getLine(o.start.row).substring(o.start.column,o.end.column)];else{r=this.getLines(o.start.row,o.end.row),r[0]=(r[0]||"").substring(o.start.column);var n=r.length-1;o.end.row-o.start.row==n&&(r[n]=r[n].substring(0,o.end.column))}return r},s.prototype.insertLines=function(o,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(o,r)},s.prototype.removeLines=function(o,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(o,r)},s.prototype.insertNewLine=function(o){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(o,["",""])},s.prototype.insert=function(o,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(o,this.$split(r))},s.prototype.insertInLine=function(o,r){var n=this.clippedPos(o.row,o.column),a=this.pos(o.row,o.column+r.length);return this.applyDelta({start:n,end:a,action:"insert",lines:[r]},!0),this.clonePos(a)},s.prototype.clippedPos=function(o,r){var n=this.getLength();o===void 0?o=n:o<0?o=0:o>=n&&(o=n-1,r=void 0);var a=this.getLine(o);return r==null&&(r=a.length),r=Math.min(Math.max(r,0),a.length),{row:o,column:r}},s.prototype.clonePos=function(o){return{row:o.row,column:o.column}},s.prototype.pos=function(o,r){return{row:o,column:r}},s.prototype.$clipPosition=function(o){var r=this.getLength();return o.row>=r?(o.row=Math.max(0,r-1),o.column=this.getLine(r-1).length):(o.row=Math.max(0,o.row),o.column=Math.min(Math.max(o.column,0),this.getLine(o.row).length)),o},s.prototype.insertFullLines=function(o,r){o=Math.min(Math.max(o,0),this.getLength());var n=0;o<this.getLength()?(r=r.concat([""]),n=0):(r=[""].concat(r),o--,n=this.$lines[o].length),this.insertMergedLines({row:o,column:n},r)},s.prototype.insertMergedLines=function(o,r){var n=this.clippedPos(o.row,o.column),a={row:n.row+r.length-1,column:(r.length==1?n.column:0)+r[r.length-1].length};return this.applyDelta({start:n,end:a,action:"insert",lines:r}),this.clonePos(a)},s.prototype.remove=function(o){var r=this.clippedPos(o.start.row,o.start.column),n=this.clippedPos(o.end.row,o.end.column);return this.applyDelta({start:r,end:n,action:"remove",lines:this.getLinesForRange({start:r,end:n})}),this.clonePos(r)},s.prototype.removeInLine=function(o,r,n){var a=this.clippedPos(o,r),h=this.clippedPos(o,n);return this.applyDelta({start:a,end:h,action:"remove",lines:this.getLinesForRange({start:a,end:h})},!0),this.clonePos(a)},s.prototype.removeFullLines=function(o,r){o=Math.min(Math.max(0,o),this.getLength()-1),r=Math.min(Math.max(0,r),this.getLength()-1);var n=r==this.getLength()-1&&o>0,a=r<this.getLength()-1,h=n?o-1:o,m=n?this.getLine(h).length:0,y=a?r+1:r,E=a?0:this.getLine(y).length,M=new p(h,m,y,E),_=this.$lines.slice(o,r+1);return this.applyDelta({start:M.start,end:M.end,action:"remove",lines:this.getLinesForRange(M)}),_},s.prototype.removeNewLine=function(o){o<this.getLength()-1&&o>=0&&this.applyDelta({start:this.pos(o,this.getLine(o).length),end:this.pos(o+1,0),action:"remove",lines:["",""]})},s.prototype.replace=function(o,r){if(o instanceof p||(o=p.fromPoints(o.start,o.end)),r.length===0&&o.isEmpty())return o.start;if(r==this.getTextRange(o))return o.end;this.remove(o);var n;return r?n=this.insert(o.start,r):n=o.start,n},s.prototype.applyDeltas=function(o){for(var r=0;r<o.length;r++)this.applyDelta(o[r])},s.prototype.revertDeltas=function(o){for(var r=o.length-1;r>=0;r--)this.revertDelta(o[r])},s.prototype.applyDelta=function(o,r){var n=o.action=="insert";(n?o.lines.length<=1&&!o.lines[0]:!p.comparePoints(o.start,o.end))||(n&&o.lines.length>2e4?this.$splitAndapplyLargeDelta(o,2e4):(w(this.$lines,o,r),this._signal("change",o)))},s.prototype.$safeApplyDelta=function(o){var r=this.$lines.length;(o.action=="remove"&&o.start.row<r&&o.end.row<r||o.action=="insert"&&o.start.row<=r)&&this.applyDelta(o)},s.prototype.$splitAndapplyLargeDelta=function(o,r){for(var n=o.lines,a=n.length-r+1,h=o.start.row,m=o.start.column,y=0,E=0;y<a;y=E){E+=r-1;var M=n.slice(y,E);M.push(""),this.applyDelta({start:this.pos(h+y,m),end:this.pos(h+E,m=0),action:o.action,lines:M},!0)}o.lines=n.slice(y),o.start.row=h+y,o.start.column=m,this.applyDelta(o,!0)},s.prototype.revertDelta=function(o){this.$safeApplyDelta({start:this.clonePos(o.start),end:this.clonePos(o.end),action:o.action=="insert"?"remove":"insert",lines:o.lines.slice()})},s.prototype.indexToPosition=function(o,r){for(var n=this.$lines||this.getAllLines(),a=this.getNewLineCharacter().length,h=r||0,m=n.length;h<m;h++)if(o-=n[h].length+a,o<0)return{row:h,column:o+n[h].length+a};return{row:m-1,column:o+n[m-1].length+a}},s.prototype.positionToIndex=function(o,r){for(var n=this.$lines||this.getAllLines(),a=this.getNewLineCharacter().length,h=0,m=Math.min(o.row,n.length),y=r||0;y<m;++y)h+=n[y].length+a;return h+o.column},s.prototype.$split=function(o){return o.split(/\r\n|\r|\n/)},s}();i.prototype.$autoNewLine="",i.prototype.$newLineMode="auto",b.implement(i.prototype,C),l.Document=i}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,l,T){var b=e("./lib/oop"),w=e("./lib/event_emitter").EventEmitter,C=function(){function p(g,i){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var s=this;this.$worker=function(){if(s.running){for(var o=new Date,r=s.currentLine,n=-1,a=s.doc,h=r;s.lines[r];)r++;var m=a.getLength(),y=0;for(s.running=!1;r<m;){s.$tokenizeRow(r),n=r;do r++;while(s.lines[r]);if(y++,y%5===0&&new Date-o>20){s.running=setTimeout(s.$worker,20);break}}s.currentLine=r,n==-1&&(n=r),h<=n&&s.fireUpdateEvent(h,n)}}}return p.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},p.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},p.prototype.fireUpdateEvent=function(g,i){var s={first:g,last:i};this._signal("update",{data:s})},p.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},p.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},p.prototype.$updateOnChange=function(g){var i=g.start.row,s=g.end.row-i;if(s===0)this.lines[i]=null;else if(g.action=="remove")this.lines.splice(i,s+1,null),this.states.splice(i,s+1,null);else{var o=Array(s+1);o.unshift(i,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(i,this.currentLine,this.doc.getLength()),this.stop()},p.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},p.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},p.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},p.prototype.$tokenizeRow=function(g){var i=this.doc.getLine(g),s=this.states[g-1],o=this.tokenizer.getLineTokens(i,s,g);return this.states[g]+""!=o.state+""?(this.states[g]=o.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=o.tokens},p.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},p}();b.implement(C.prototype,w),l.BackgroundTokenizer=C}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,l,T){var b=e("./lib/lang"),w=e("./range").Range,C=function(){function p(g,i,s){s===void 0&&(s="text"),this.setRegexp(g),this.clazz=i,this.type=s,this.docLen=0}return p.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},p.prototype.update=function(g,i,s,o){if(this.regExp){for(var r=o.firstRow,n=o.lastRow,a={},h=s.$editor.$search,m=h.$isMultilineSearch(s.$editor.getLastSearchOptions()),y=r;y<=n;y++){var E=this.cache[y];if(E==null||s.getValue().length!=this.docLen){if(m){E=[];var M=h.$multiLineForward(s,this.regExp,y,n);if(M){var _=M.endRow<=n?M.endRow-1:n;_>y&&(y=_),E.push(new w(M.startRow,M.startCol,M.endRow,M.endCol))}E.length>this.MAX_RANGES&&(E=E.slice(0,this.MAX_RANGES))}else E=b.getMatchOffsets(s.getLine(y),this.regExp),E.length>this.MAX_RANGES&&(E=E.slice(0,this.MAX_RANGES)),E=E.map(function(F){return new w(y,F.offset,y,F.offset+F.length)});this.cache[y]=E.length?E:""}if(E.length!==0)for(var v=E.length;v--;){var R=E[v].toScreenRange(s),I=R.toString();a[I]||(a[I]=!0,i.drawSingleLineMarker(g,R,this.clazz,o))}}this.docLen=s.getValue().length}},p}();C.prototype.MAX_RANGES=500,l.SearchHighlight=C}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,l,T){var b=function(){function _(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return _.prototype.addSession=function(v){this.$session=v},_.prototype.add=function(v,R,I){if(!this.$fromUndo&&v!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),R===!1||!this.lastDeltas){this.lastDeltas=[];var F=this.$undoStack.length;F>this.$undoDepth-1&&this.$undoStack.splice(0,F-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),v.id=this.$rev=++this.$maxRev}(v.action=="remove"||v.action=="insert")&&(this.$lastDelta=v),this.lastDeltas.push(v)}},_.prototype.addSelection=function(v,R){this.selections.push({value:v,rev:R||this.$rev})},_.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},_.prototype.markIgnored=function(v,R){R==null&&(R=this.$rev+1);for(var I=this.$undoStack,F=I.length;F--;){var L=I[F][0];if(L.id<=v)break;L.id<R&&(L.ignore=!0)}this.lastDeltas=null},_.prototype.getSelection=function(v,R){for(var I=this.selections,F=I.length;F--;){var L=I[F];if(L.rev<v)return R&&(L=I[F+1]),L}},_.prototype.getRevision=function(){return this.$rev},_.prototype.getDeltas=function(v,R){R==null&&(R=this.$rev+1);for(var I=this.$undoStack,F=null,L=0,U=I.length;U--;){var P=I[U][0];if(P.id<R&&!F&&(F=U+1),P.id<=v){L=U+1;break}}return I.slice(L,F)},_.prototype.getChangedRanges=function(v,R){R==null&&(R=this.$rev+1)},_.prototype.getChangedLines=function(v,R){R==null&&(R=this.$rev+1)},_.prototype.undo=function(v,R){this.lastDeltas=null;var I=this.$undoStack;if(w(I,I.length)){v||(v=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var F=I.pop(),L=null;return F&&(L=v.undoChanges(F,R),this.$redoStack.push(F),this.$syncRev()),this.$fromUndo=!1,L}},_.prototype.redo=function(v,R){if(this.lastDeltas=null,v||(v=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var I=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);M(this.$redoStack,I),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(U){U[0].id=++this.$maxRev},this)}var F=this.$redoStack.pop(),L=null;return F&&(L=v.redoChanges(F,R),this.$undoStack.push(F),this.$syncRev()),this.$fromUndo=!1,L},_.prototype.$syncRev=function(){var v=this.$undoStack,R=v[v.length-1],I=R&&R[0].id||0;this.$redoStackBaseRev=I,this.$rev=I},_.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},_.prototype.canUndo=function(){return this.$undoStack.length>0},_.prototype.canRedo=function(){return this.$redoStack.length>0},_.prototype.bookmark=function(v){v==null&&(v=this.$rev),this.mark=v},_.prototype.isAtBookmark=function(){return this.$rev===this.mark},_.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},_.prototype.fromJSON=function(v){this.reset(),this.$undoStack=v.$undoStack,this.$redoStack=v.$redoStack},_.prototype.$prettyPrint=function(v){return v?s(v):s(this.$undoStack)+`
|
|
192
|
-
---
|
|
193
|
-
`+s(this.$redoStack)},_}();b.prototype.hasUndo=b.prototype.canUndo,b.prototype.hasRedo=b.prototype.canRedo,b.prototype.isClean=b.prototype.isAtBookmark,b.prototype.markClean=b.prototype.bookmark;function w(_,v){for(var R=v;R--;){var I=_[R];if(I&&!I[0].ignore){for(;R<v-1;){var F=n(_[R],_[R+1]);_[R]=F[0],_[R+1]=F[1],R++}return!0}}}var C=e("./range").Range,p=C.comparePoints;C.comparePoints;function g(_){return{row:_.row,column:_.column}}function i(_){return{start:g(_.start),end:g(_.end),action:_.action,lines:_.lines.slice()}}function s(_){if(_=_||this,Array.isArray(_))return _.map(s).join(`
|
|
194
|
-
`);var v="";return _.action?(v=_.action=="insert"?"+":"-",v+="["+_.lines+"]"):_.value&&(Array.isArray(_.value)?v=_.value.map(o).join(`
|
|
195
|
-
`):v=o(_.value)),_.start&&(v+=o(_)),(_.id||_.rev)&&(v+=" ("+(_.id||_.rev)+")"),v}function o(_){return _.start.row+":"+_.start.column+"=>"+_.end.row+":"+_.end.column}function r(_,v){var R=_.action=="insert",I=v.action=="insert";if(R&&I)if(p(v.start,_.end)>=0)h(v,_,-1);else if(p(v.start,_.start)<=0)h(_,v,1);else return null;else if(R&&!I)if(p(v.start,_.end)>=0)h(v,_,-1);else if(p(v.end,_.start)<=0)h(_,v,-1);else return null;else if(!R&&I)if(p(v.start,_.start)>=0)h(v,_,1);else if(p(v.start,_.start)<=0)h(_,v,1);else return null;else if(!R&&!I)if(p(v.start,_.start)>=0)h(v,_,1);else if(p(v.end,_.start)<=0)h(_,v,-1);else return null;return[v,_]}function n(_,v){for(var R=_.length;R--;)for(var I=0;I<v.length;I++)if(!r(_[R],v[I])){for(;R<_.length;){for(;I--;)r(v[I],_[R]);I=v.length,R++}return[_,v]}return _.selectionBefore=v.selectionBefore=_.selectionAfter=v.selectionAfter=null,[v,_]}function a(_,v){var R=_.action=="insert",I=v.action=="insert";if(R&&I)p(_.start,v.start)<0?h(v,_,1):h(_,v,1);else if(R&&!I)p(_.start,v.end)>=0?h(_,v,-1):(p(_.start,v.start)<=0||h(_,C.fromPoints(v.start,_.start),-1),h(v,_,1));else if(!R&&I)p(v.start,_.end)>=0?h(v,_,-1):(p(v.start,_.start)<=0||h(v,C.fromPoints(_.start,v.start),-1),h(_,v,1));else if(!R&&!I)if(p(v.start,_.end)>=0)h(v,_,-1);else if(p(v.end,_.start)<=0)h(_,v,-1);else{var F,L;return p(_.start,v.start)<0&&(F=_,_=y(_,v.start)),p(_.end,v.end)>0&&(L=y(_,v.end)),m(v.end,_.start,_.end,-1),L&&!F&&(_.lines=L.lines,_.start=L.start,_.end=L.end,L=_),[v,F,L].filter(Boolean)}return[v,_]}function h(_,v,R){m(_.start,v.start,v.end,R),m(_.end,v.start,v.end,R)}function m(_,v,R,I){_.row==(I==1?v:R).row&&(_.column+=I*(R.column-v.column)),_.row+=I*(R.row-v.row)}function y(_,v){var R=_.lines,I=_.end;_.end=g(v);var F=_.end.row-_.start.row,L=R.splice(F,R.length),U=F?v.column:v.column-_.start.column;R.push(L[0].substring(0,U)),L[0]=L[0].substr(U);var P={start:g(v),end:I,lines:L,action:_.action};return P}function E(_,v){v=i(v);for(var R=_.length;R--;){for(var I=_[R],F=0;F<I.length;F++){var L=I[F],U=a(L,v);v=U[0],U.length!=2&&(U[2]?(I.splice(F+1,1,U[1],U[2]),F++):U[1]||(I.splice(F,1),F--))}I.length||_.splice(R,1)}return _}function M(_,v){for(var R=0;R<v.length;R++)for(var I=v[R],F=0;F<I.length;F++)E(_,I[F])}l.UndoManager=b}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,l,T){var b=e("../range").Range,w=function(){function C(p,g){this.foldData=p,Array.isArray(g)?this.folds=g:g=this.folds=[g];var i=g[g.length-1];this.range=new b(g[0].start.row,g[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(s){s.setFoldLine(this)},this)}return C.prototype.shiftRow=function(p){this.start.row+=p,this.end.row+=p,this.folds.forEach(function(g){g.start.row+=p,g.end.row+=p})},C.prototype.addFold=function(p){if(p.sameRow){if(p.start.row<this.startRow||p.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(p),this.folds.sort(function(g,i){return-g.range.compareEnd(i.start.row,i.start.column)}),this.range.compareEnd(p.start.row,p.start.column)>0?(this.end.row=p.end.row,this.end.column=p.end.column):this.range.compareStart(p.end.row,p.end.column)<0&&(this.start.row=p.start.row,this.start.column=p.start.column)}else if(p.start.row==this.end.row)this.folds.push(p),this.end.row=p.end.row,this.end.column=p.end.column;else if(p.end.row==this.start.row)this.folds.unshift(p),this.start.row=p.start.row,this.start.column=p.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");p.foldLine=this},C.prototype.containsRow=function(p){return p>=this.start.row&&p<=this.end.row},C.prototype.walk=function(p,g,i){var s=0,o=this.folds,r,n,a,h=!0;g==null&&(g=this.end.row,i=this.end.column);for(var m=0;m<o.length;m++){if(r=o[m],n=r.range.compareStart(g,i),n==-1){p(null,g,i,s,h);return}if(a=p(null,r.start.row,r.start.column,s,h),a=!a&&p(r.placeholder,r.start.row,r.start.column,s),a||n===0)return;h=!r.sameRow,s=r.end.column}p(null,g,i,s,h)},C.prototype.getNextFoldTo=function(p,g){for(var i,s,o=0;o<this.folds.length;o++){if(i=this.folds[o],s=i.range.compareEnd(p,g),s==-1)return{fold:i,kind:"after"};if(s===0)return{fold:i,kind:"inside"}}return null},C.prototype.addRemoveChars=function(p,g,i){var s=this.getNextFoldTo(p,g),o,r;if(s){if(o=s.fold,s.kind=="inside"&&o.start.column!=g&&o.start.row!=p)window.console&&window.console.log(p,g,o);else if(o.start.row==p){r=this.folds;var n=r.indexOf(o);for(n===0&&(this.start.column+=i),n;n<r.length;n++){if(o=r[n],o.start.column+=i,!o.sameRow)return;o.end.column+=i}this.end.column+=i}}},C.prototype.split=function(p,g){var i=this.getNextFoldTo(p,g);if(!i||i.kind=="inside")return null;var s=i.fold,o=this.folds,r=this.foldData,n=o.indexOf(s),a=o[n-1];this.end.row=a.end.row,this.end.column=a.end.column,o=o.splice(n,o.length-n);var h=new C(r,o);return r.splice(r.indexOf(this)+1,0,h),h},C.prototype.merge=function(p){for(var g=p.folds,i=0;i<g.length;i++)this.addFold(g[i]);var s=this.foldData;s.splice(s.indexOf(p),1)},C.prototype.toString=function(){var p=[this.range.toString()+": ["];return this.folds.forEach(function(g){p.push(" "+g.toString())}),p.push("]"),p.join(`
|
|
196
|
-
`)},C.prototype.idxToPosition=function(p){for(var g=0,i=0;i<this.folds.length;i++){var s=this.folds[i];if(p-=s.start.column-g,p<0)return{row:s.start.row,column:s.start.column+p};if(p-=s.placeholder.length,p<0)return s.start;g=s.end.column}return{row:this.end.row,column:this.end.column+p}},C}();l.FoldLine=w}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,l,T){var b=e("./range").Range,w=b.comparePoints,C=function(){function p(){this.ranges=[],this.$bias=1}return p.prototype.pointIndex=function(g,i,s){for(var o=this.ranges,r=s||0;r<o.length;r++){var n=o[r],a=w(g,n.end);if(!(a>0)){var h=w(g,n.start);return a===0?i&&h!==0?-r-2:r:h>0||h===0&&!i?r:-r-1}}return-r-1},p.prototype.add=function(g){var i=!g.isEmpty(),s=this.pointIndex(g.start,i);s<0&&(s=-s-1);var o=this.pointIndex(g.end,i,s);return o<0?o=-o-1:o++,this.ranges.splice(s,o-s,g)},p.prototype.addList=function(g){for(var i=[],s=g.length;s--;)i.push.apply(i,this.add(g[s]));return i},p.prototype.substractPoint=function(g){var i=this.pointIndex(g);if(i>=0)return this.ranges.splice(i,1)},p.prototype.merge=function(){var g=[],i=this.ranges;i=i.sort(function(a,h){return w(a.start,h.start)});for(var s=i[0],o,r=1;r<i.length;r++){o=s,s=i[r];var n=w(o.end,s.start);n<0||n==0&&!o.isEmpty()&&!s.isEmpty()||(w(o.end,s.end)<0&&(o.end.row=s.end.row,o.end.column=s.end.column),i.splice(r,1),g.push(s),s=o,r--)}return this.ranges=i,g},p.prototype.contains=function(g,i){return this.pointIndex({row:g,column:i})>=0},p.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},p.prototype.rangeAtPoint=function(g){var i=this.pointIndex(g);if(i>=0)return this.ranges[i]},p.prototype.clipRows=function(g,i){var s=this.ranges;if(s[0].start.row>i||s[s.length-1].start.row<g)return[];var o=this.pointIndex({row:g,column:0});o<0&&(o=-o-1);var r=this.pointIndex({row:i,column:0},o);r<0&&(r=-r-1);for(var n=[],a=o;a<r;a++)n.push(s[a]);return n},p.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},p.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},p.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},p.prototype.$onChange=function(g){for(var i=g.start,s=g.end,o=i.row,r=s.row,n=this.ranges,a=0,h=n.length;a<h;a++){var m=n[a];if(m.end.row>=o)break}if(g.action=="insert")for(var y=r-o,E=-i.column+s.column;a<h;a++){var m=n[a];if(m.start.row>o)break;if(m.start.row==o&&m.start.column>=i.column&&(m.start.column==i.column&&this.$bias<=0||(m.start.column+=E,m.start.row+=y)),m.end.row==o&&m.end.column>=i.column){if(m.end.column==i.column&&this.$bias<0)continue;m.end.column==i.column&&E>0&&a<h-1&&m.end.column>m.start.column&&m.end.column==n[a+1].start.column&&(m.end.column-=E),m.end.column+=E,m.end.row+=y}}else for(var y=o-r,E=i.column-s.column;a<h;a++){var m=n[a];if(m.start.row>r)break;m.end.row<r&&(o<m.end.row||o==m.end.row&&i.column<m.end.column)?(m.end.row=o,m.end.column=i.column):m.end.row==r?m.end.column<=s.column?(y||m.end.column>i.column)&&(m.end.column=i.column,m.end.row=i.row):(m.end.column+=E,m.end.row+=y):m.end.row>r&&(m.end.row+=y),m.start.row<r&&(o<m.start.row||o==m.start.row&&i.column<m.start.column)?(m.start.row=o,m.start.column=i.column):m.start.row==r?m.start.column<=s.column?(y||m.start.column>i.column)&&(m.start.column=i.column,m.start.row=i.row):(m.start.column+=E,m.start.row+=y):m.start.row>r&&(m.start.row+=y)}if(y!=0&&a<h)for(;a<h;a++){var m=n[a];m.start.row+=y,m.end.row+=y}},p}();C.prototype.comparePoints=w,l.RangeList=C}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,l,T){var b=this&&this.__extends||function(){var o=function(r,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(a[m]=h[m])},o(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");o(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),w=e("../range_list").RangeList,C=function(o){b(r,o);function r(n,a){var h=o.call(this)||this;return h.foldLine=null,h.placeholder=a,h.range=n,h.start=n.start,h.end=n.end,h.sameRow=n.start.row==n.end.row,h.subFolds=h.ranges=[],h}return r.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},r.prototype.setFoldLine=function(n){this.foldLine=n,this.subFolds.forEach(function(a){a.setFoldLine(n)})},r.prototype.clone=function(){var n=this.range.clone(),a=new r(n,this.placeholder);return this.subFolds.forEach(function(h){a.subFolds.push(h.clone())}),a.collapseChildren=this.collapseChildren,a},r.prototype.addSubFold=function(n){if(!this.range.isEqual(n)){g(n,this.start);for(var E=n.start.row,M=n.start.column,a=0,h=-1;a<this.subFolds.length&&(h=this.subFolds[a].range.compare(E,M),h==1);a++);var m=this.subFolds[a],y=0;if(h==0){if(m.range.containsRange(n))return m.addSubFold(n);y=1}for(var E=n.range.end.row,M=n.range.end.column,_=a,h=-1;_<this.subFolds.length&&(h=this.subFolds[_].range.compare(E,M),h==1);_++);h==0&&_++;for(var v=this.subFolds.splice(a,_-a,n),R=h==0?v.length-1:v.length,I=y;I<R;I++)n.addSubFold(v[I]);return n.setFoldLine(this.foldLine),n}},r.prototype.restoreRange=function(n){return s(n,this.start)},r}(w);function p(o,r){o.row-=r.row,o.row==0&&(o.column-=r.column)}function g(o,r){p(o.start,r),p(o.end,r)}function i(o,r){o.row==0&&(o.column+=r.column),o.row+=r.row}function s(o,r){i(o.start,r),i(o.end,r)}l.Fold=C}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,l,T){var b=e("../range").Range,w=e("./fold_line").FoldLine,C=e("./fold").Fold,p=e("../token_iterator").TokenIterator,g=e("../mouse/mouse_event").MouseEvent;function i(){this.getFoldAt=function(s,o,r){var n=this.getFoldLine(s);if(!n)return null;for(var a=n.folds,h=0;h<a.length;h++){var m=a[h].range;if(m.contains(s,o)){if(r==1&&m.isEnd(s,o)&&!m.isEmpty())continue;if(r==-1&&m.isStart(s,o)&&!m.isEmpty())continue;return a[h]}}},this.getFoldsInRange=function(s){var o=s.start,r=s.end,n=this.$foldData,a=[];o.column+=1,r.column-=1;for(var h=0;h<n.length;h++){var m=n[h].range.compareRange(s);if(m!=2){if(m==-2)break;for(var y=n[h].folds,E=0;E<y.length;E++){var M=y[E];if(m=M.range.compareRange(s),m==-2)break;if(m==2)continue;if(m==42)break;a.push(M)}}}return o.column-=1,r.column+=1,a},this.getFoldsInRangeList=function(s){if(Array.isArray(s)){var o=[];s.forEach(function(r){o=o.concat(this.getFoldsInRange(r))},this)}else var o=this.getFoldsInRange(s);return o},this.getAllFolds=function(){for(var s=[],o=this.$foldData,r=0;r<o.length;r++)for(var n=0;n<o[r].folds.length;n++)s.push(o[r].folds[n]);return s},this.getFoldStringAt=function(s,o,r,n){if(n=n||this.getFoldLine(s),!n)return null;for(var a={end:{column:0}},h,m,y=0;y<n.folds.length;y++){m=n.folds[y];var E=m.range.compareEnd(s,o);if(E==-1){h=this.getLine(m.start.row).substring(a.end.column,m.start.column);break}else if(E===0)return null;a=m}return h||(h=this.getLine(m.start.row).substring(a.end.column)),r==-1?h.substring(0,o-a.end.column):r==1?h.substring(o-a.end.column):h},this.getFoldLine=function(s,o){var r=this.$foldData,n=0;for(o&&(n=r.indexOf(o)),n==-1&&(n=0),n;n<r.length;n++){var a=r[n];if(a.start.row<=s&&a.end.row>=s)return a;if(a.end.row>s)return null}return null},this.getNextFoldLine=function(s,o){var r=this.$foldData,n=0;for(o&&(n=r.indexOf(o)),n==-1&&(n=0),n;n<r.length;n++){var a=r[n];if(a.end.row>=s)return a}return null},this.getFoldedRowCount=function(s,o){for(var r=this.$foldData,n=o-s+1,a=0;a<r.length;a++){var h=r[a],m=h.end.row,y=h.start.row;if(m>=o){y<o&&(y>=s?n-=o-y:n=0);break}else m>=s&&(y>=s?n-=m-y:n-=m-s+1)}return n},this.$addFoldLine=function(s){return this.$foldData.push(s),this.$foldData.sort(function(o,r){return o.start.row-r.start.row}),s},this.addFold=function(s,o){var r=this.$foldData,n=!1,a;s instanceof C?a=s:(a=new C(o,s),a.collapseChildren=o.collapseChildren),this.$clipRangeToDocument(a.range);var h=a.start.row,m=a.start.column,y=a.end.row,E=a.end.column,M=this.getFoldAt(h,m,1),_=this.getFoldAt(y,E,-1);if(M&&_==M)return M.addSubFold(a);M&&!M.range.isStart(h,m)&&this.removeFold(M),_&&!_.range.isEnd(y,E)&&this.removeFold(_);var v=this.getFoldsInRange(a.range);v.length>0&&(this.removeFolds(v),a.collapseChildren||v.forEach(function(L){a.addSubFold(L)}));for(var R=0;R<r.length;R++){var I=r[R];if(y==I.start.row){I.addFold(a),n=!0;break}else if(h==I.end.row){if(I.addFold(a),n=!0,!a.sameRow){var F=r[R+1];if(F&&F.start.row==y){I.merge(F);break}}break}else if(y<=I.start.row)break}return n||(I=this.$addFoldLine(new w(this.$foldData,a))),this.$useWrapMode?this.$updateWrapData(I.start.row,I.start.row):this.$updateRowLengthCache(I.start.row,I.start.row),this.$modified=!0,this._signal("changeFold",{data:a,action:"add"}),a},this.addFolds=function(s){s.forEach(function(o){this.addFold(o)},this)},this.removeFold=function(s){var o=s.foldLine,r=o.start.row,n=o.end.row,a=this.$foldData,h=o.folds;if(h.length==1)a.splice(a.indexOf(o),1);else if(o.range.isEnd(s.end.row,s.end.column))h.pop(),o.end.row=h[h.length-1].end.row,o.end.column=h[h.length-1].end.column;else if(o.range.isStart(s.start.row,s.start.column))h.shift(),o.start.row=h[0].start.row,o.start.column=h[0].start.column;else if(s.sameRow)h.splice(h.indexOf(s),1);else{var m=o.split(s.start.row,s.start.column);h=m.folds,h.shift(),m.start.row=h[0].start.row,m.start.column=h[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(r,n):this.$updateRowLengthCache(r,n)),this.$modified=!0,this._signal("changeFold",{data:s,action:"remove"})},this.removeFolds=function(s){for(var o=[],r=0;r<s.length;r++)o.push(s[r]);o.forEach(function(n){this.removeFold(n)},this),this.$modified=!0},this.expandFold=function(s){this.removeFold(s),s.subFolds.forEach(function(o){s.restoreRange(o),this.addFold(o)},this),s.collapseChildren>0&&this.foldAll(s.start.row+1,s.end.row,s.collapseChildren-1),s.subFolds=[]},this.expandFolds=function(s){s.forEach(function(o){this.expandFold(o)},this)},this.unfold=function(s,o){var r,n;if(s==null)r=new b(0,0,this.getLength(),0),o==null&&(o=!0);else if(typeof s=="number")r=new b(s,0,s,this.getLine(s).length);else if("row"in s)r=b.fromPoints(s,s);else{if(Array.isArray(s))return n=[],s.forEach(function(h){n=n.concat(this.unfold(h))},this),n;r=s}n=this.getFoldsInRangeList(r);for(var a=n;n.length==1&&b.comparePoints(n[0].start,r.start)<0&&b.comparePoints(n[0].end,r.end)>0;)this.expandFolds(n),n=this.getFoldsInRangeList(r);if(o!=!1?this.removeFolds(n):this.expandFolds(n),a.length)return a},this.isRowFolded=function(s,o){return!!this.getFoldLine(s,o)},this.getRowFoldEnd=function(s,o){var r=this.getFoldLine(s,o);return r?r.end.row:s},this.getRowFoldStart=function(s,o){var r=this.getFoldLine(s,o);return r?r.start.row:s},this.getFoldDisplayLine=function(s,o,r,n,a){n==null&&(n=s.start.row),a==null&&(a=0),o==null&&(o=s.end.row),r==null&&(r=this.getLine(o).length);var h=this.doc,m="";return s.walk(function(y,E,M,_){if(!(E<n)){if(E==n){if(M<a)return;_=Math.max(a,_)}y!=null?m+=y:m+=h.getLine(E).substring(_,M)}},o,r),m},this.getDisplayLine=function(s,o,r,n){var a=this.getFoldLine(s);if(a)return this.getFoldDisplayLine(a,s,o,r,n);var h;return h=this.doc.getLine(s),h.substring(n||0,o||h.length)},this.$cloneFoldData=function(){var s=[];return s=this.$foldData.map(function(o){var r=o.folds.map(function(n){return n.clone()});return new w(s,r)}),s},this.toggleFold=function(s){var o=this.selection,r=o.getRange(),n,a;if(r.isEmpty()){var h=r.start;if(n=this.getFoldAt(h.row,h.column),n){this.expandFold(n);return}else if(s){var m=this.getFoldLine(h.row);m&&this.expandFolds(m.folds);return}else(a=this.findMatchingBracket(h))?r.comparePoint(a)==1?r.end=a:(r.start=a,r.start.column++,r.end.column--):(a=this.findMatchingBracket({row:h.row,column:h.column+1}))?(r.comparePoint(a)==1?r.end=a:r.start=a,r.start.column++):r=this.getCommentFoldRange(h.row,h.column)||r}else{var y=this.getFoldsInRange(r);if(s&&y.length){this.expandFolds(y);return}else y.length==1&&(n=y[0])}if(n||(n=this.getFoldAt(r.start.row,r.start.column)),n&&n.range.toString()==r.toString()){this.expandFold(n);return}var E="...";if(!r.isMultiLine()){if(E=this.getTextRange(r),E.length<4)return;E=E.trim().substring(0,2)+".."}this.addFold(E,r)},this.getCommentFoldRange=function(s,o,r){var n=new p(this,s,o),a=n.getCurrentToken(),h=a&&a.type;if(a&&/^comment|string/.test(h)){h=h.match(/comment|string/)[0],h=="comment"&&(h+="|doc-start|\\.doc");var m=new RegExp(h),y=new b;if(r!=1){do a=n.stepBackward();while(a&&m.test(a.type));a=n.stepForward()}y.start.row=n.getCurrentTokenRow(),y.start.column=n.getCurrentTokenColumn()+a.value.length,n=new p(this,s,o);var E=this.getState(n.$row);if(r!=-1){var M=-1;do if(a=n.stepForward(),M==-1){var _=this.getState(n.$row);E.toString()!==_.toString()&&(M=n.$row)}else if(n.$row>M)break;while(a&&m.test(a.type));a=n.stepBackward()}else a=n.getCurrentToken();return y.end.row=n.getCurrentTokenRow(),y.end.column=n.getCurrentTokenColumn(),y.start.row==y.end.row&&y.start.column>y.end.column?void 0:y}},this.foldAll=function(s,o,r,n){r==null&&(r=1e5);var a=this.foldWidgets;if(a){o=o||this.getLength(),s=s||0;for(var h=s;h<o;h++)if(a[h]==null&&(a[h]=this.getFoldWidget(h)),a[h]=="start"&&!(n&&!n(h))){var m=this.getFoldWidgetRange(h);m&&m.isMultiLine()&&m.end.row<=o&&m.start.row>=s&&(h=m.end.row,m.collapseChildren=r,this.addFold("...",m))}}},this.foldToLevel=function(s){for(this.foldAll();s-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var s=this;this.foldAll(null,null,null,function(o){for(var r=s.getTokens(o),n=0;n<r.length;n++){var a=r[n];if(!(a.type=="text"&&/^\s+$/.test(a.value)))return!!/comment/.test(a.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(s){if(!this.$foldStyles[s])throw new Error("invalid fold style: "+s+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=s){this.$foldStyle=s,s=="manual"&&this.unfold();var o=this.$foldMode;this.$setFolding(null),this.$setFolding(o)}},this.$setFolding=function(s){if(this.$foldMode!=s){if(this.$foldMode=s,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!s||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=s.getFoldWidget.bind(s,this,this.$foldStyle),this.getFoldWidgetRange=s.getFoldWidgetRange.bind(s,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(s,o){var r=this.foldWidgets;if(!r||o&&r[s])return{};for(var n=s-1,a;n>=0;){var h=r[n];if(h==null&&(h=r[n]=this.getFoldWidget(n)),h=="start"){var m=this.getFoldWidgetRange(n);if(a||(a=m),m&&m.end.row>=s)break}n--}return{range:n!==-1&&m,firstRange:a}},this.onFoldWidgetClick=function(s,o){o instanceof g&&(o=o.domEvent);var r={children:o.shiftKey,all:o.ctrlKey||o.metaKey,siblings:o.altKey},n=this.$toggleFoldWidget(s,r);if(!n){var a=o.target||o.srcElement;a&&/ace_fold-widget/.test(a.className)&&(a.className+=" ace_invalid")}},this.$toggleFoldWidget=function(s,o){if(this.getFoldWidget){var r=this.getFoldWidget(s),n=this.getLine(s),a=r==="end"?-1:1,h=this.getFoldAt(s,a===-1?0:n.length,a);if(h)return o.children||o.all?this.removeFold(h):this.expandFold(h),h;var m=this.getFoldWidgetRange(s,!0);if(m&&!m.isMultiLine()&&(h=this.getFoldAt(m.start.row,m.start.column,1),h&&m.isEqual(h.range)))return this.removeFold(h),h;if(o.siblings){var y=this.getParentFoldRangeData(s);if(y.range)var E=y.range.start.row+1,M=y.range.end.row;this.foldAll(E,M,o.all?1e4:0)}else o.children?(M=m?m.end.row:this.getLength(),this.foldAll(s+1,M,o.all?1e4:0)):m&&(o.all&&(m.collapseChildren=1e4),this.addFold("...",m));return m}},this.toggleFoldWidget=function(s){var o=this.selection.getCursor().row;o=this.getRowFoldStart(o);var r=this.$toggleFoldWidget(o,{});if(!r){var n=this.getParentFoldRangeData(o,!0);if(r=n.range||n.firstRange,r){o=r.start.row;var a=this.getFoldAt(o,this.getLine(o).length,1);a?this.removeFold(a):this.addFold("...",r)}}},this.updateFoldWidgets=function(s){var o=s.start.row,r=s.end.row-o;if(r===0)this.foldWidgets[o]=null;else if(s.action=="remove")this.foldWidgets.splice(o,r+1,null);else{var n=Array(r+1);n.unshift(o,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(s){var o=s.data;o.first!=o.last&&this.foldWidgets.length>o.first&&this.foldWidgets.splice(o.first,this.foldWidgets.length)}}l.Folding=i}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,l,T){var b=e("../token_iterator").TokenIterator,w=e("../range").Range;function C(){this.findMatchingBracket=function(p,g){if(p.column==0)return null;var i=g||this.getLine(p.row).charAt(p.column-1);if(i=="")return null;var s=i.match(/([\(\[\{])|([\)\]\}])/);return s?s[1]?this.$findClosingBracket(s[1],p):this.$findOpeningBracket(s[2],p):null},this.getBracketRange=function(p){var g=this.getLine(p.row),i=!0,s,o=g.charAt(p.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=g.charAt(p.column),p={row:p.row,column:p.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!r)return null;if(r[1]){var n=this.$findClosingBracket(r[1],p);if(!n)return null;s=w.fromPoints(p,n),i||(s.end.column++,s.start.column--),s.cursor=s.end}else{var n=this.$findOpeningBracket(r[2],p);if(!n)return null;s=w.fromPoints(n,p),i||(s.start.column++,s.end.column--),s.cursor=s.start}return s},this.getMatchingBracketRanges=function(p,g){var i=this.getLine(p.row),s=/([\(\[\{])|([\)\]\}])/,o=!g&&i.charAt(p.column-1),r=o&&o.match(s);if(r||(o=(g===void 0||g)&&i.charAt(p.column),p={row:p.row,column:p.column+1},r=o&&o.match(s)),!r)return null;var n=new w(p.row,p.column-1,p.row,p.column),a=r[1]?this.$findClosingBracket(r[1],p):this.$findOpeningBracket(r[2],p);if(!a)return[n];var h=new w(a.row,a.column,a.row,a.column+1);return[n,h]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(p,g,i){var s=this.$brackets[p],o=1,r=new b(this,g.row,g.column),n=r.getCurrentToken();if(n||(n=r.stepForward()),!!n){i||(i=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var a=g.column-r.getCurrentTokenColumn()-2,h=n.value;;){for(;a>=0;){var m=h.charAt(a);if(m==s){if(o-=1,o==0)return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else m==p&&(o+=1);a-=1}do n=r.stepBackward();while(n&&!i.test(n.type));if(n==null)break;h=n.value,a=h.length-1}return null}},this.$findClosingBracket=function(p,g,i){var s=this.$brackets[p],o=1,r=new b(this,g.row,g.column),n=r.getCurrentToken();if(n||(n=r.stepForward()),!!n){i||(i=new RegExp("(\\.?"+n.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var a=g.column-r.getCurrentTokenColumn();;){for(var h=n.value,m=h.length;a<m;){var y=h.charAt(a);if(y==s){if(o-=1,o==0)return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else y==p&&(o+=1);a+=1}do n=r.stepForward();while(n&&!i.test(n.type));if(n==null)break;a=0}return null}},this.getMatchingTags=function(p){var g=new b(this,p.row,p.column),i=this.$findTagName(g);if(i){var s=g.stepBackward();return s.value==="<"?this.$findClosingTag(g,i):this.$findOpeningTag(g,i)}},this.$findTagName=function(p){var g=p.getCurrentToken(),i=!1,s=!1;if(g&&g.type.indexOf("tag-name")===-1)do s?g=p.stepBackward():g=p.stepForward(),g&&(g.value==="/>"?s=!0:g.type.indexOf("tag-name")!==-1&&(i=!0));while(g&&!i);return g},this.$findClosingTag=function(p,g){var i,s=g.value,o=g.value,r=0,n=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);g=p.stepForward();var a=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length),h=!1;do{if(i=g,i.type.indexOf("tag-close")!==-1&&!h){var m=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);h=!0}if(g=p.stepForward(),g){if(g.value===">"&&!h){var m=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);h=!0}if(g.type.indexOf("tag-name")!==-1){if(s=g.value,o===s){if(i.value==="<")r++;else if(i.value==="</"&&(r--,r<0)){p.stepBackward();var y=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+2);g=p.stepForward();var E=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=p.stepForward()),g&&g.value===">")var M=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);else return}}}else if(o===s&&g.value==="/>"&&(r--,r<0))var y=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+2),E=y,M=E,m=new w(a.end.row,a.end.column,a.end.row,a.end.column+1)}}while(g&&r>=0);if(n&&m&&y&&M&&a&&E)return{openTag:new w(n.start.row,n.start.column,m.end.row,m.end.column),closeTag:new w(y.start.row,y.start.column,M.end.row,M.end.column),openTagName:a,closeTagName:E}},this.$findOpeningTag=function(p,g){var i=p.getCurrentToken(),s=g.value,o=0,r=p.getCurrentTokenRow(),n=p.getCurrentTokenColumn(),a=n+2,h=new w(r,n,r,a);p.stepForward();var m=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=p.stepForward()),!(!g||g.value!==">")){var y=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);p.stepBackward(),p.stepBackward();do if(g=i,r=p.getCurrentTokenRow(),n=p.getCurrentTokenColumn(),a=n+g.value.length,i=p.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(s===g.value)if(i.value==="<"){if(o++,o>0){var E=new w(r,n,r,a),M=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1);do g=p.stepForward();while(g&&g.value!==">");var _=new w(p.getCurrentTokenRow(),p.getCurrentTokenColumn(),p.getCurrentTokenRow(),p.getCurrentTokenColumn()+1)}}else i.value==="</"&&o--}else if(g.value==="/>"){for(var v=0,R=i;R;){if(R.type.indexOf("tag-name")!==-1&&R.value===s){o--;break}else if(R.value==="<")break;R=p.stepBackward(),v++}for(var I=0;I<v;I++)p.stepForward()}}while(i&&o<=0);if(M&&_&&h&&y&&E&&m)return{openTag:new w(M.start.row,M.start.column,_.end.row,_.end.column),closeTag:new w(h.start.row,h.start.column,y.end.row,y.end.column),openTagName:E,closeTagName:m}}}}l.BracketMatch=C}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,l,T){var b=e("./lib/oop"),w=e("./lib/lang"),C=e("./bidihandler").BidiHandler,p=e("./config"),g=e("./lib/event_emitter").EventEmitter,i=e("./selection").Selection,s=e("./mode/text").Mode,o=e("./range").Range,r=e("./line_widgets").LineWidgets,n=e("./document").Document,a=e("./background_tokenizer").BackgroundTokenizer,h=e("./search_highlight").SearchHighlight,m=e("./undomanager").UndoManager,y=function(){function P(O,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++P.$uid,this.$foldData.toString=function(){return this.join(`
|
|
197
|
-
`)},this.$gutterCustomWidgets={},this.bgTokenizer=new a(new s().getTokenizer(),this);var k=this;this.bgTokenizer.on("update",function(N){k._signal("tokenizerUpdate",N)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof O!="object"||!O.getLine)&&(O=new n(O)),this.setDocument(O),this.selection=new i(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new C(this),p.resetOptions(this),this.setMode(S),p._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return P.prototype.$initOperationListeners=function(){var O=this;this.curOp=null,this.on("change",function(){O.curOp||(O.startOperation(),O.curOp.selectionBefore=O.$lastSel),O.curOp.docChanged=!0},!0),this.on("changeSelection",function(){O.curOp||(O.startOperation(),O.curOp.selectionBefore=O.$lastSel),O.curOp.selectionChanged=!0},!0),this.$operationResetTimer=w.delayedCall(this.endOperation.bind(this,!0))},P.prototype.startOperation=function(O){if(this.curOp){if(!O||this.curOp.command)return;this.prevOp=this.curOp}O||(O={}),this.$operationResetTimer.schedule(),this.curOp={command:O.command||{},args:O.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",O)},P.prototype.endOperation=function(O){if(this.curOp){if(O&&O.returnValue===!1){this.curOp=null,this._signal("endOperation",O);return}if(O==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var S=this.selection.toJSON();this.curOp.selectionAfter=S,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(S),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",O)}},P.prototype.setDocument=function(O){this.doc&&this.doc.off("change",this.$onChange),this.doc=O,O.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},P.prototype.getDocument=function(){return this.doc},Object.defineProperty(P.prototype,"widgetManager",{get:function(){var O=new r(this);return this.widgetManager=O,this.$editor&&O.attach(this.$editor),O},set:function(O){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:O})},enumerable:!1,configurable:!0}),P.prototype.$resetRowCache=function(O){if(!O){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,k=this.$getRowCacheIndex(this.$docRowCache,O)+1;S>k&&(this.$docRowCache.splice(k,S),this.$screenRowCache.splice(k,S))},P.prototype.$getRowCacheIndex=function(O,S){for(var k=0,N=O.length-1;k<=N;){var B=k+N>>1,V=O[B];if(S>V)k=B+1;else if(S<V)N=B-1;else return B}return k-1},P.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},P.prototype.onChangeFold=function(O){var S=O.data;this.$resetRowCache(S.start.row)},P.prototype.onChange=function(O){this.$modified=!0,this.$bidiHandler.onChange(O),this.$resetRowCache(O.start.row);var S=this.$updateInternalDataOnChange(O);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(O,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(O),this._signal("change",O)},P.prototype.onSelectionChange=function(){this._signal("changeSelection")},P.prototype.setValue=function(O){this.doc.setValue(O),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},P.fromJSON=function(O){typeof O=="string"&&(O=JSON.parse(O));var S=new m;S.$undoStack=O.history.undo,S.$redoStack=O.history.redo,S.mark=O.history.mark,S.$rev=O.history.rev;var k=new P(O.value);return O.folds.forEach(function(N){k.addFold("...",o.fromPoints(N.start,N.end))}),k.setAnnotations(O.annotations),k.setBreakpoints(O.breakpoints),k.setMode(O.mode),k.setScrollLeft(O.scrollLeft),k.setScrollTop(O.scrollTop),k.setUndoManager(S),k.selection.fromJSON(O.selection),k},P.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(O){return O.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},P.prototype.toString=function(){return this.doc.getValue()},P.prototype.getSelection=function(){return this.selection},P.prototype.getState=function(O){return this.bgTokenizer.getState(O)},P.prototype.getTokens=function(O){return this.bgTokenizer.getTokens(O)},P.prototype.getTokenAt=function(O,S){var k=this.bgTokenizer.getTokens(O),N,B=0;if(S==null){var V=k.length-1;B=this.getLine(O).length}else for(var V=0;V<k.length&&(B+=k[V].value.length,!(B>=S));V++);return N=k[V],N?(N.index=V,N.start=B-N.value.length,N):null},P.prototype.setUndoManager=function(O){if(this.$undoManager=O,this.$informUndoManager&&this.$informUndoManager.cancel(),O){var S=this;O.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=w.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},P.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},P.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},P.prototype.getTabString=function(){return this.getUseSoftTabs()?w.stringRepeat(" ",this.getTabSize()):" "},P.prototype.setUseSoftTabs=function(O){this.setOption("useSoftTabs",O)},P.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},P.prototype.setTabSize=function(O){this.setOption("tabSize",O)},P.prototype.getTabSize=function(){return this.$tabSize},P.prototype.isTabStop=function(O){return this.$useSoftTabs&&O.column%this.$tabSize===0},P.prototype.setNavigateWithinSoftTabs=function(O){this.setOption("navigateWithinSoftTabs",O)},P.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},P.prototype.setOverwrite=function(O){this.setOption("overwrite",O)},P.prototype.getOverwrite=function(){return this.$overwrite},P.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},P.prototype.addGutterDecoration=function(O,S){this.$decorations[O]||(this.$decorations[O]=""),this.$decorations[O]+=" "+S,this._signal("changeBreakpoint",{})},P.prototype.removeGutterCustomWidget=function(O){this.$editor&&this.$editor.renderer.$gutterLayer.$removeCustomWidget(O)},P.prototype.addGutterCustomWidget=function(O,S){this.$editor&&this.$editor.renderer.$gutterLayer.$addCustomWidget(O,S)},P.prototype.removeGutterDecoration=function(O,S){this.$decorations[O]=(this.$decorations[O]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},P.prototype.getBreakpoints=function(){return this.$breakpoints},P.prototype.setBreakpoints=function(O){this.$breakpoints=[];for(var S=0;S<O.length;S++)this.$breakpoints[O[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},P.prototype.setBreakpoint=function(O,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[O]=S:delete this.$breakpoints[O],this._signal("changeBreakpoint",{})},P.prototype.clearBreakpoint=function(O){delete this.$breakpoints[O],this._signal("changeBreakpoint",{})},P.prototype.addMarker=function(O,S,k,N){var B=this.$markerId++,V={range:O,type:k||"line",renderer:typeof k=="function"?k:null,clazz:S,inFront:!!N,id:B};return N?(this.$frontMarkers[B]=V,this._signal("changeFrontMarker")):(this.$backMarkers[B]=V,this._signal("changeBackMarker")),B},P.prototype.addDynamicMarker=function(O,S){if(O.update){var k=this.$markerId++;return O.id=k,O.inFront=!!S,S?(this.$frontMarkers[k]=O,this._signal("changeFrontMarker")):(this.$backMarkers[k]=O,this._signal("changeBackMarker")),O}},P.prototype.removeMarker=function(O){var S=this.$frontMarkers[O]||this.$backMarkers[O];if(S){var k=S.inFront?this.$frontMarkers:this.$backMarkers;delete k[O],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},P.prototype.getMarkers=function(O){return O?this.$frontMarkers:this.$backMarkers},P.prototype.highlight=function(O){if(!this.$searchHighlight){var S=new h(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(O)},P.prototype.highlightLines=function(O,S,k,N){typeof S!="number"&&(k=S,S=O),k||(k="ace_step");var B=new o(O,0,S,1/0);return B.id=this.addMarker(B,k,"fullLine",N),B},P.prototype.setAnnotations=function(O){this.$annotations=O,this._signal("changeAnnotation",{})},P.prototype.getAnnotations=function(){return this.$annotations||[]},P.prototype.clearAnnotations=function(){this.setAnnotations([])},P.prototype.$detectNewLine=function(O){var S=O.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
|
|
198
|
-
`},P.prototype.getWordRange=function(O,S){var k=this.getLine(O),N=!1;if(S>0&&(N=!!k.charAt(S-1).match(this.tokenRe)),N||(N=!!k.charAt(S).match(this.tokenRe)),N)var B=this.tokenRe;else if(/^\s+$/.test(k.slice(S-1,S+1)))var B=/\s/;else var B=this.nonTokenRe;var V=S;if(V>0){do V--;while(V>=0&&k.charAt(V).match(B));V++}for(var G=S;G<k.length&&k.charAt(G).match(B);)G++;return new o(O,V,O,G)},P.prototype.getAWordRange=function(O,S){for(var k=this.getWordRange(O,S),N=this.getLine(k.end.row);N.charAt(k.end.column).match(/[ \t]/);)k.end.column+=1;return k},P.prototype.setNewLineMode=function(O){this.doc.setNewLineMode(O)},P.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},P.prototype.setUseWorker=function(O){this.setOption("useWorker",O)},P.prototype.getUseWorker=function(){return this.$useWorker},P.prototype.onReloadTokenizer=function(O){var S=O.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",O)},P.prototype.setMode=function(O,S){if(O&&typeof O=="object"){if(O.getTokenizer)return this.$onChangeMode(O);var k=O,N=k.path}else N=O||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new s),this.$modes[N]&&!k){this.$onChangeMode(this.$modes[N]),S&&S();return}this.$modeId=N,p.loadModule(["mode",N],(function(B){if(!this.destroyed){if(this.$modeId!==N)return S&&S();this.$modes[N]&&!k?this.$onChangeMode(this.$modes[N]):B&&B.Mode&&(B=new B.Mode(k),k||(this.$modes[N]=B,B.$id=N),this.$onChangeMode(B)),S&&S()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},P.prototype.$onChangeMode=function(O,S){if(S||(this.$modeId=O.$id),this.$mode!==O){var k=this.$mode;this.$mode=O,this.$stopWorker(),this.$useWorker&&this.$startWorker();var N=O.getTokenizer();if(N.on!==void 0){var B=this.onReloadTokenizer.bind(this);N.on("update",B)}this.bgTokenizer.setTokenizer(N),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=O.tokenRe,this.nonTokenRe=O.nonTokenRe,S||(O.attachToSession&&O.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(O.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:k,mode:O}))}},P.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},P.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(O){p.warn("Could not load worker",O),this.$worker=null}},P.prototype.getMode=function(){return this.$mode},P.prototype.setScrollTop=function(O){this.$scrollTop===O||isNaN(O)||(this.$scrollTop=O,this._signal("changeScrollTop",O))},P.prototype.getScrollTop=function(){return this.$scrollTop},P.prototype.setScrollLeft=function(O){this.$scrollLeft===O||isNaN(O)||(this.$scrollLeft=O,this._signal("changeScrollLeft",O))},P.prototype.getScrollLeft=function(){return this.$scrollLeft},P.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},P.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var O=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>O&&(O=S.screenWidth)}),this.lineWidgetWidth=O},P.prototype.$computeWidth=function(O){if(this.$modified||O){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),k=this.$rowLengthCache,N=0,B=0,V=this.$foldData[B],G=V?V.start.row:1/0,Q=S.length,te=0;te<Q;te++){if(te>G){if(te=V.end.row+1,te>=Q)break;V=this.$foldData[B++],G=V?V.start.row:1/0}k[te]==null&&(k[te]=this.$getStringScreenWidth(S[te])[0]),k[te]>N&&(N=k[te])}this.screenWidth=N}},P.prototype.getLine=function(O){return this.doc.getLine(O)},P.prototype.getLines=function(O,S){return this.doc.getLines(O,S)},P.prototype.getLength=function(){return this.doc.getLength()},P.prototype.getTextRange=function(O){return this.doc.getTextRange(O||this.selection.getRange())},P.prototype.insert=function(O,S){return this.doc.insert(O,S)},P.prototype.remove=function(O){return this.doc.remove(O)},P.prototype.removeFullLines=function(O,S){return this.doc.removeFullLines(O,S)},P.prototype.undoChanges=function(O,S){if(O.length){this.$fromUndo=!0;for(var k=O.length-1;k!=-1;k--){var N=O[k];N.action=="insert"||N.action=="remove"?this.doc.revertDelta(N):N.folds&&this.addFolds(N.folds)}!S&&this.$undoSelect&&(O.selectionBefore?this.selection.fromJSON(O.selectionBefore):this.selection.setRange(this.$getUndoSelection(O,!0))),this.$fromUndo=!1}},P.prototype.redoChanges=function(O,S){if(O.length){this.$fromUndo=!0;for(var k=0;k<O.length;k++){var N=O[k];(N.action=="insert"||N.action=="remove")&&this.doc.$safeApplyDelta(N)}!S&&this.$undoSelect&&(O.selectionAfter?this.selection.fromJSON(O.selectionAfter):this.selection.setRange(this.$getUndoSelection(O,!1))),this.$fromUndo=!1}},P.prototype.setUndoSelect=function(O){this.$undoSelect=O},P.prototype.$getUndoSelection=function(O,S){function k(Q){return S?Q.action!=="insert":Q.action==="insert"}for(var N,B,V=0;V<O.length;V++){var G=O[V];if(G.start){if(!N){k(G)?N=o.fromPoints(G.start,G.end):N=o.fromPoints(G.start,G.start);continue}k(G)?(B=G.start,N.compare(B.row,B.column)==-1&&N.setStart(B),B=G.end,N.compare(B.row,B.column)==1&&N.setEnd(B)):(B=G.start,N.compare(B.row,B.column)==-1&&(N=o.fromPoints(G.start,G.start)))}}return N},P.prototype.replace=function(O,S){return this.doc.replace(O,S)},P.prototype.moveText=function(O,S,k){var N=this.getTextRange(O),B=this.getFoldsInRange(O),V=o.fromPoints(S,S);if(!k){this.remove(O);var G=O.start.row-O.end.row,Q=G?-O.end.column:O.start.column-O.end.column;Q&&(V.start.row==O.end.row&&V.start.column>O.end.column&&(V.start.column+=Q),V.end.row==O.end.row&&V.end.column>O.end.column&&(V.end.column+=Q)),G&&V.start.row>=O.end.row&&(V.start.row+=G,V.end.row+=G)}if(V.end=this.insert(V.start,N),B.length){var te=O.start,he=V.start,G=he.row-te.row,Q=he.column-te.column;this.addFolds(B.map(function(ue){return ue=ue.clone(),ue.start.row==te.row&&(ue.start.column+=Q),ue.end.row==te.row&&(ue.end.column+=Q),ue.start.row+=G,ue.end.row+=G,ue}))}return V},P.prototype.indentRows=function(O,S,k){k=k.replace(/\t/g,this.getTabString());for(var N=O;N<=S;N++)this.doc.insertInLine({row:N,column:0},k)},P.prototype.outdentRows=function(O){for(var S=O.collapseRows(),k=new o(0,0,0,0),N=this.getTabSize(),B=S.start.row;B<=S.end.row;++B){var V=this.getLine(B);k.start.row=B,k.end.row=B;for(var G=0;G<N&&V.charAt(G)==" ";++G);G<N&&V.charAt(G)==" "?(k.start.column=G,k.end.column=G+1):(k.start.column=0,k.end.column=G),this.remove(k)}},P.prototype.$moveLines=function(O,S,k){if(O=this.getRowFoldStart(O),S=this.getRowFoldEnd(S),k<0){var N=this.getRowFoldStart(O+k);if(N<0)return 0;var B=N-O}else if(k>0){var N=this.getRowFoldEnd(S+k);if(N>this.doc.getLength()-1)return 0;var B=N-S}else{O=this.$clipRowToDocument(O),S=this.$clipRowToDocument(S);var B=S-O+1}var V=new o(O,0,S,Number.MAX_VALUE),G=this.getFoldsInRange(V).map(function(te){return te=te.clone(),te.start.row+=B,te.end.row+=B,te}),Q=k==0?this.doc.getLines(O,S):this.doc.removeFullLines(O,S);return this.doc.insertFullLines(O+B,Q),G.length&&this.addFolds(G),B},P.prototype.moveLinesUp=function(O,S){return this.$moveLines(O,S,-1)},P.prototype.moveLinesDown=function(O,S){return this.$moveLines(O,S,1)},P.prototype.duplicateLines=function(O,S){return this.$moveLines(O,S,0)},P.prototype.$clipRowToDocument=function(O){return Math.max(0,Math.min(O,this.doc.getLength()-1))},P.prototype.$clipColumnToRow=function(O,S){return S<0?0:Math.min(this.doc.getLine(O).length,S)},P.prototype.$clipPositionToDocument=function(O,S){if(S=Math.max(0,S),O<0)O=0,S=0;else{var k=this.doc.getLength();O>=k?(O=k-1,S=this.doc.getLine(k-1).length):S=Math.min(this.doc.getLine(O).length,S)}return{row:O,column:S}},P.prototype.$clipRangeToDocument=function(O){O.start.row<0?(O.start.row=0,O.start.column=0):O.start.column=this.$clipColumnToRow(O.start.row,O.start.column);var S=this.doc.getLength()-1;return O.end.row>S?(O.end.row=S,O.end.column=this.doc.getLine(S).length):O.end.column=this.$clipColumnToRow(O.end.row,O.end.column),O},P.prototype.setUseWrapMode=function(O){if(O!=this.$useWrapMode){if(this.$useWrapMode=O,this.$modified=!0,this.$resetRowCache(0),O){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},P.prototype.getUseWrapMode=function(){return this.$useWrapMode},P.prototype.setWrapLimitRange=function(O,S){(this.$wrapLimitRange.min!==O||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:O,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},P.prototype.adjustWrapLimit=function(O,S){var k=this.$wrapLimitRange;k.max<0&&(k={min:S,max:S});var N=this.$constrainWrapLimit(O,k.min,k.max);return N!=this.$wrapLimit&&N>1?(this.$wrapLimit=N,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},P.prototype.$constrainWrapLimit=function(O,S,k){return S&&(O=Math.max(S,O)),k&&(O=Math.min(k,O)),O},P.prototype.getWrapLimit=function(){return this.$wrapLimit},P.prototype.setWrapLimit=function(O){this.setWrapLimitRange(O,O)},P.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},P.prototype.$updateInternalDataOnChange=function(O){var S=this.$useWrapMode,k=O.action,N=O.start,B=O.end,V=N.row,G=B.row,Q=G-V,te=null;if(this.$updating=!0,Q!=0)if(k==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(V,Q);var he=this.$foldData;te=this.getFoldsInRange(O),this.removeFolds(te);var ne=this.getFoldLine(B.row),ce=0;if(ne){ne.addRemoveChars(B.row,B.column,N.column-B.column),ne.shiftRow(-Q);var ue=this.getFoldLine(V);ue&&ue!==ne&&(ue.merge(ne),ne=ue),ce=he.indexOf(ne)+1}for(ce;ce<he.length;ce++){var ne=he[ce];ne.start.row>=B.row&&ne.shiftRow(-Q)}G=V}else{var le=Array(Q);le.unshift(V,0);var me=S?this.$wrapData:this.$rowLengthCache;me.splice.apply(me,le);var he=this.$foldData,ne=this.getFoldLine(V),ce=0;if(ne){var Ae=ne.range.compareInside(N.row,N.column);Ae==0?(ne=ne.split(N.row,N.column),ne&&(ne.shiftRow(Q),ne.addRemoveChars(G,0,B.column-N.column))):Ae==-1&&(ne.addRemoveChars(V,0,B.column-N.column),ne.shiftRow(Q)),ce=he.indexOf(ne)+1}for(ce;ce<he.length;ce++){var ne=he[ce];ne.start.row>=V&&ne.shiftRow(Q)}}else{Q=Math.abs(O.start.column-O.end.column),k==="remove"&&(te=this.getFoldsInRange(O),this.removeFolds(te),Q=-Q);var ne=this.getFoldLine(V);ne&&ne.addRemoveChars(V,N.column,Q)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(V,G):this.$updateRowLengthCache(V,G),te},P.prototype.$updateRowLengthCache=function(O,S){this.$rowLengthCache[O]=null,this.$rowLengthCache[S]=null},P.prototype.$updateWrapData=function(O,S){var k=this.doc.getAllLines(),N=this.getTabSize(),B=this.$wrapData,V=this.$wrapLimit,G,Q,te=O;for(S=Math.min(S,k.length-1);te<=S;)Q=this.getFoldLine(te,Q),Q?(G=[],Q.walk((function(he,ne,ce,ue){var le;if(he!=null){le=this.$getDisplayTokens(he,G.length),le[0]=_;for(var me=1;me<le.length;me++)le[me]=v}else le=this.$getDisplayTokens(k[ne].substring(ue,ce),G.length);G=G.concat(le)}).bind(this),Q.end.row,k[Q.end.row].length+1),B[Q.start.row]=this.$computeWrapSplits(G,V,N),te=Q.end.row+1):(G=this.$getDisplayTokens(k[te]),B[te]=this.$computeWrapSplits(G,V,N),te++)},P.prototype.$computeWrapSplits=function(O,S,k){if(O.length==0)return[];var N=[],B=O.length,V=0,G=0,Q=this.$wrapAsCode,te=this.$indentedSoftWrap,he=S<=Math.max(2*k,8)||te===!1?0:Math.floor(S/2);function ne(){var Ae=0;if(he===0)return Ae;if(te)for(var $e=0;$e<O.length;$e++){var Te=O[$e];if(Te==I)Ae+=1;else if(Te==F)Ae+=k;else{if(Te==L)continue;break}}return Q&&te!==!1&&(Ae+=k),Math.min(Ae,he)}function ce(Ae){for(var $e=Ae-V,Te=V;Te<Ae;Te++){var Ge=O[Te];(Ge===12||Ge===2)&&($e-=1)}N.length||(ue=ne(),N.indent=ue),G+=$e,N.push(G),V=Ae}for(var ue=0;B-V>S-ue;){var le=V+S-ue;if(O[le-1]>=I&&O[le]>=I){ce(le);continue}if(O[le]==_||O[le]==v){for(le;le!=V-1&&O[le]!=_;le--);if(le>V){ce(le);continue}for(le=V+S,le;le<O.length&&O[le]==v;le++);if(le==O.length)break;ce(le);continue}for(var me=Math.max(le-(S-(S>>2)),V-1);le>me&&O[le]<_;)le--;if(Q){for(;le>me&&O[le]<_;)le--;for(;le>me&&O[le]==R;)le--}else for(;le>me&&O[le]<I;)le--;if(le>me){ce(++le);continue}le=V+S,O[le]==M&&le--,ce(le-ue)}return N},P.prototype.$getDisplayTokens=function(O,S){var k=[],N;S=S||0;for(var B=0;B<O.length;B++){var V=O.charCodeAt(B);if(V==9){N=this.getScreenTabSize(k.length+S),k.push(F);for(var G=1;G<N;G++)k.push(L)}else V==32?k.push(I):V>39&&V<48||V>57&&V<64?k.push(R):V>=4352&&U(V)?k.push(E,M):k.push(E)}return k},P.prototype.$getStringScreenWidth=function(O,S,k){if(S==0)return[0,0];S==null&&(S=1/0),k=k||0;var N,B;for(B=0;B<O.length&&(N=O.charCodeAt(B),N==9?k+=this.getScreenTabSize(k):N>=4352&&U(N)?k+=2:k+=1,!(k>S));B++);return[k,B]},P.prototype.getRowLength=function(O){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[O]&&this.lineWidgets[O].rowCount||0),!this.$useWrapMode||!this.$wrapData[O]?S:this.$wrapData[O].length+S},P.prototype.getRowLineCount=function(O){return!this.$useWrapMode||!this.$wrapData[O]?1:this.$wrapData[O].length+1},P.prototype.getRowWrapIndent=function(O){if(this.$useWrapMode){var S=this.screenToDocumentPosition(O,Number.MAX_VALUE),k=this.$wrapData[S.row];return k.length&&k[0]<S.column?k.indent:0}else return 0},P.prototype.getScreenLastRowColumn=function(O){var S=this.screenToDocumentPosition(O,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},P.prototype.getDocumentLastRowColumn=function(O,S){var k=this.documentToScreenRow(O,S);return this.getScreenLastRowColumn(k)},P.prototype.getDocumentLastRowColumnPosition=function(O,S){var k=this.documentToScreenRow(O,S);return this.screenToDocumentPosition(k,Number.MAX_VALUE/10)},P.prototype.getRowSplitData=function(O){if(this.$useWrapMode)return this.$wrapData[O]},P.prototype.getScreenTabSize=function(O){return this.$tabSize-(O%this.$tabSize|0)},P.prototype.screenToDocumentRow=function(O,S){return this.screenToDocumentPosition(O,S).row},P.prototype.screenToDocumentColumn=function(O,S){return this.screenToDocumentPosition(O,S).column},P.prototype.screenToDocumentPosition=function(O,S,k){if(O<0)return{row:0,column:0};var N,B=0,V=0,G,Q=0,te=0,he=this.$screenRowCache,ne=this.$getRowCacheIndex(he,O),ce=he.length;if(ce&&ne>=0)var Q=he[ne],B=this.$docRowCache[ne],ue=O>he[ce-1];else var ue=!ce;for(var le=this.getLength()-1,me=this.getNextFoldLine(B),Ae=me?me.start.row:1/0;Q<=O&&(te=this.getRowLength(B),!(Q+te>O||B>=le));)Q+=te,B++,B>Ae&&(B=me.end.row+1,me=this.getNextFoldLine(B,me),Ae=me?me.start.row:1/0),ue&&(this.$docRowCache.push(B),this.$screenRowCache.push(Q));if(me&&me.start.row<=B)N=this.getFoldDisplayLine(me),B=me.start.row;else{if(Q+te<=O||B>le)return{row:le,column:this.getLine(le).length};N=this.getLine(B),me=null}var $e=0,Te=Math.floor(O-Q);if(this.$useWrapMode){var Ge=this.$wrapData[B];Ge&&(G=Ge[Te],Te>0&&Ge.length&&($e=Ge.indent,V=Ge[Te-1]||Ge[Ge.length-1],N=N.substring(V)))}return k!==void 0&&this.$bidiHandler.isBidiRow(Q+Te,B,Te)&&(S=this.$bidiHandler.offsetToCol(k)),V+=this.$getStringScreenWidth(N,S-$e)[1],this.$useWrapMode&&V>=G&&(V=G-1),me?me.idxToPosition(V):{row:B,column:V}},P.prototype.documentToScreenPosition=function(O,S){if(typeof S>"u")var k=this.$clipPositionToDocument(O.row,O.column);else k=this.$clipPositionToDocument(O,S);O=k.row,S=k.column;var N=0,B=null,V=null;V=this.getFoldAt(O,S,1),V&&(O=V.start.row,S=V.start.column);var G,Q=0,te=this.$docRowCache,he=this.$getRowCacheIndex(te,O),ne=te.length;if(ne&&he>=0)var Q=te[he],N=this.$screenRowCache[he],ce=O>te[ne-1];else var ce=!ne;for(var ue=this.getNextFoldLine(Q),le=ue?ue.start.row:1/0;Q<O;){if(Q>=le){if(G=ue.end.row+1,G>O)break;ue=this.getNextFoldLine(G,ue),le=ue?ue.start.row:1/0}else G=Q+1;N+=this.getRowLength(Q),Q=G,ce&&(this.$docRowCache.push(Q),this.$screenRowCache.push(N))}var me="";ue&&Q>=le?(me=this.getFoldDisplayLine(ue,O,S),B=ue.start.row):(me=this.getLine(O).substring(0,S),B=O);var Ae=0;if(this.$useWrapMode){var $e=this.$wrapData[B];if($e){for(var Te=0;me.length>=$e[Te];)N++,Te++;me=me.substring($e[Te-1]||0,me.length),Ae=Te>0?$e.indent:0}}return this.lineWidgets&&this.lineWidgets[Q]&&this.lineWidgets[Q].rowsAbove&&(N+=this.lineWidgets[Q].rowsAbove),{row:N,column:Ae+this.$getStringScreenWidth(me)[0]}},P.prototype.documentToScreenColumn=function(O,S){return this.documentToScreenPosition(O,S).column},P.prototype.documentToScreenRow=function(O,S){return this.documentToScreenPosition(O,S).row},P.prototype.getScreenLength=function(){var O=0,S=null;if(this.$useWrapMode)for(var B=this.$wrapData.length,V=0,N=0,S=this.$foldData[N++],G=S?S.start.row:1/0;V<B;){var Q=this.$wrapData[V];O+=Q?Q.length+1:1,V++,V>G&&(V=S.end.row+1,S=this.$foldData[N++],G=S?S.start.row:1/0)}else{O=this.getLength();for(var k=this.$foldData,N=0;N<k.length;N++)S=k[N],O-=S.end.row-S.start.row}return this.lineWidgets&&(O+=this.$getWidgetScreenLength()),O},P.prototype.$setFontMetrics=function(O){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,k,N){if(k===0)return[0,0];k||(k=1/0),N=N||0;var B,V;for(V=0;V<S.length&&(B=S.charAt(V),B===" "?N+=this.getScreenTabSize(N):N+=O.getCharacterWidth(B),!(N>k));V++);return[N,V]})},P.prototype.getPrecedingCharacter=function(){var O=this.selection.getCursor();if(O.column===0)return O.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(O.row);return S[O.column-1]},P.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},P}();y.$uid=0,y.prototype.$modes=p.$modes,y.prototype.getValue=y.prototype.toString,y.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},y.prototype.$overwrite=!1,y.prototype.$mode=null,y.prototype.$modeId=null,y.prototype.$scrollTop=0,y.prototype.$scrollLeft=0,y.prototype.$wrapLimit=80,y.prototype.$useWrapMode=!1,y.prototype.$wrapLimitRange={min:null,max:null},y.prototype.lineWidgets=null,y.prototype.isFullWidth=U,b.implement(y.prototype,g);var E=1,M=2,_=3,v=4,R=9,I=10,F=11,L=12;function U(P){return P<4352?!1:P>=4352&&P<=4447||P>=4515&&P<=4519||P>=4602&&P<=4607||P>=9001&&P<=9002||P>=11904&&P<=11929||P>=11931&&P<=12019||P>=12032&&P<=12245||P>=12272&&P<=12283||P>=12288&&P<=12350||P>=12353&&P<=12438||P>=12441&&P<=12543||P>=12549&&P<=12589||P>=12593&&P<=12686||P>=12688&&P<=12730||P>=12736&&P<=12771||P>=12784&&P<=12830||P>=12832&&P<=12871||P>=12880&&P<=13054||P>=13056&&P<=19903||P>=19968&&P<=42124||P>=42128&&P<=42182||P>=43360&&P<=43388||P>=44032&&P<=55203||P>=55216&&P<=55238||P>=55243&&P<=55291||P>=63744&&P<=64255||P>=65040&&P<=65049||P>=65072&&P<=65106||P>=65108&&P<=65126||P>=65128&&P<=65131||P>=65281&&P<=65376||P>=65504&&P<=65510}e("./edit_session/folding").Folding.call(y.prototype),e("./edit_session/bracket_match").BracketMatch.call(y.prototype),p.defineOptions(y.prototype,"session",{wrap:{set:function(P){if(!P||P=="off"?P=!1:P=="free"?P=!0:P=="printMargin"?P=-1:typeof P=="string"&&(P=parseInt(P,10)||!1),this.$wrap!=P)if(this.$wrap=P,!P)this.setUseWrapMode(!1);else{var O=typeof P=="number"?P:null;this.setWrapLimitRange(O,O),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(P){P=P=="auto"?this.$mode.type!="text":P!="text",P!=this.$wrapAsCode&&(this.$wrapAsCode=P,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(P){this.$useWorker=P,this.$stopWorker(),P&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(P){P=parseInt(P),P>0&&this.$tabSize!==P&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=P,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(P){this.setFoldStyle(P)},handlesSet:!0},overwrite:{set:function(P){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(P){this.doc.setNewLineMode(P)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(P){this.setMode(P)},get:function(){return this.$modeId},handlesSet:!0}}),l.EditSession=y}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,l,T){var b=e("./lib/lang"),w=e("./lib/oop"),C=e("./range").Range,p=function(){function o(){this.$options={}}return o.prototype.set=function(r){return w.mixin(this.$options,r),this},o.prototype.getOptions=function(){return b.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var n=this.$options,a=this.$matchIterator(r,n);if(!a)return!1;var h=null;return a.forEach(function(m,y,E,M){return h=new C(m,y,E,M),y==M&&n.start&&n.start.start&&n.skipCurrent!=!1&&h.isEqual(n.start)?(h=null,!1):!0}),h},o.prototype.findAll=function(r){var n=this.$options;if(!n.needle)return[];this.$assembleRegExp(n);var a=n.range,h=a?r.getLines(a.start.row,a.end.row):r.doc.getAllLines(),m=[],y=n.re;if(n.$isMultiLine){var E=y.length,M=h.length-E,_;e:for(var v=y.offset||0;v<=M;v++){for(var R=0;R<E;R++)if(h[v+R].search(y[R])==-1)continue e;var I=h[v],F=h[v+E-1],L=I.length-I.match(y[0])[0].length,U=F.match(y[E-1])[0].length;_&&_.end.row===v&&_.end.column>L||(m.push(_=new C(v,L,v+E-1,U)),E>2&&(v=v+E-2))}}else for(var P,O=0;O<h.length;O++)if(this.$isMultilineSearch(n)){var S=h.length-1;if(P=this.$multiLineForward(r,y,O,S),P){var k=P.endRow<=S?P.endRow-1:S;k>O&&(O=k),m.push(new C(P.startRow,P.startCol,P.endRow,P.endCol))}}else{P=b.getMatchOffsets(h[O],y);for(var R=0;R<P.length;R++){var N=P[R];m.push(new C(O,N.offset,O,N.offset+N.length))}}if(a){for(var B=a.start.column,V=a.end.column,O=0,R=m.length-1;O<R&&m[O].start.column<B&&m[O].start.row==0;)O++;for(var G=a.end.row-a.start.row;O<R&&m[R].end.column>V&&m[R].end.row==G;)R--;for(m=m.slice(O,R+1),O=0,R=m.length;O<R;O++)m[O].start.row+=a.start.row,m[O].end.row+=a.start.row}return m},o.prototype.parseReplaceString=function(r){for(var n={DollarSign:36,Ampersand:38,Digit0:48,Digit1:49,Digit9:57,Backslash:92,n:110,t:116},a="",h=0,m=r.length;h<m;h++){var y=r.charCodeAt(h);if(y===n.Backslash){if(h++,h>=m){a+="\\";break}var E=r.charCodeAt(h);switch(E){case n.Backslash:a+="\\";break;case n.n:a+=`
|
|
199
|
-
`;break;case n.t:a+=" ";break}continue}if(y===n.DollarSign){if(h++,h>=m){a+="$";break}var M=r.charCodeAt(h);if(M===n.DollarSign){a+="$$";continue}if(M===n.Digit0||M===n.Ampersand){a+="$&";continue}if(n.Digit1<=M&&M<=n.Digit9){a+="$"+r[h];continue}}a+=r[h]}return a||r},o.prototype.replace=function(r,n){var a=this.$options,h=this.$assembleRegExp(a);if(a.$isMultiLine)return n;if(h){var m=this.$isMultilineSearch(a);m&&(r=r.replace(/\r\n|\r|\n/g,`
|
|
200
|
-
`));var y=h.exec(r);if(!y||!m&&y[0].length!=r.length)return null;if(n=a.regExp?this.parseReplaceString(n):n.replace(/\$/g,"$$$$"),n=r.replace(h,n),a.preserveCase){n=n.split("");for(var E=Math.min(r.length,r.length);E--;){var M=r[E];M&&M.toLowerCase()!=M?n[E]=n[E].toUpperCase():n[E]=n[E].toLowerCase()}n=n.join("")}return n}},o.prototype.$assembleRegExp=function(r,n){if(r.needle instanceof RegExp)return r.re=r.needle;var a=r.needle;if(!r.needle)return r.re=!1;r.regExp||(a=b.escapeRegExp(a));var h=r.caseSensitive?"gm":"gmi";try{new RegExp(a,"u"),r.$supportsUnicodeFlag=!0,h+="u"}catch{r.$supportsUnicodeFlag=!1}if(r.wholeWord&&(a=g(a,r)),r.$isMultiLine=!n&&/[\n\r]/.test(a),r.$isMultiLine)return r.re=this.$assembleMultilineRegExp(a,h);try{var m=new RegExp(a,h)}catch{m=!1}return r.re=m},o.prototype.$assembleMultilineRegExp=function(r,n){for(var a=r.replace(/\r\n|\r|\n/g,`$
|
|
201
|
-
^`).split(`
|
|
202
|
-
`),h=[],m=0;m<a.length;m++)try{h.push(new RegExp(a[m],n))}catch{return!1}return h},o.prototype.$isMultilineSearch=function(r){return r.re&&/\\r\\n|\\r|\\n/.test(r.re.source)&&r.regExp&&!r.$isMultiLine},o.prototype.$multiLineForward=function(r,n,a,h){for(var m,y=s(r,a),E=a;E<=h;){for(var M=0;M<y&&!(E>h);M++){var _=r.getLine(E++);m=m==null?_:m+`
|
|
203
|
-
`+_}var v=n.exec(m);if(n.lastIndex=0,v){var R=m.slice(0,v.index).split(`
|
|
204
|
-
`),I=v[0].split(`
|
|
205
|
-
`),F=a+R.length-1,L=R[R.length-1].length,U=F+I.length-1,P=I.length==1?L+I[0].length:I[I.length-1].length;return{startRow:F,startCol:L,endRow:U,endCol:P}}}return null},o.prototype.$multiLineBackward=function(r,n,a,h,m){for(var y,E=s(r,h),M=r.getLine(h).length-a,_=h;_>=m;){for(var v=0;v<E&&_>=m;v++){var R=r.getLine(_--);y=y==null?R:R+`
|
|
206
|
-
`+y}var I=i(y,n,M);if(I){var F=y.slice(0,I.index).split(`
|
|
207
|
-
`),L=I[0].split(`
|
|
208
|
-
`),U=_+F.length,P=F[F.length-1].length,O=U+L.length-1,S=L.length==1?P+L[0].length:L[L.length-1].length;return{startRow:U,startCol:P,endRow:O,endCol:S}}}return null},o.prototype.$matchIterator=function(r,n){var a=this.$assembleRegExp(n);if(!a)return!1;var h=this.$isMultilineSearch(n),m=this.$multiLineForward,y=this.$multiLineBackward,E=n.backwards==!0,M=n.skipCurrent!=!1,_=a.unicode,v=n.range,R=n.start;R||(R=v?v[E?"end":"start"]:r.selection.getRange()),R.start&&(R=R[M!=E?"end":"start"]);var I=v?v.start.row:0,F=v?v.end.row:r.getLength()-1;if(E)var L=function(O){var S=R.row;if(!P(S,R.column,O)){for(S--;S>=I;S--)if(P(S,Number.MAX_VALUE,O))return;if(n.wrap!=!1){for(S=F,I=R.row;S>=I;S--)if(P(S,Number.MAX_VALUE,O))return}}};else var L=function(S){var k=R.row;if(!P(k,R.column,S)){for(k=k+1;k<=F;k++)if(P(k,0,S))return;if(n.wrap!=!1){for(k=I,F=R.row;k<=F;k++)if(P(k,0,S))return}}};if(n.$isMultiLine)var U=a.length,P=function(O,S,k){var N=E?O-U+1:O;if(!(N<0||N+U>r.getLength())){var B=r.getLine(N),V=B.search(a[0]);if(!(!E&&V<S||V===-1)){for(var G=1;G<U;G++)if(B=r.getLine(N+G),B.search(a[G])==-1)return;var Q=B.match(a[U-1])[0].length;if(!(E&&Q>S)&&k(N,V,N+U-1,Q))return!0}}};else if(E)var P=function(S,k,N){if(h){var B=y(r,a,k,S,I);if(!B)return!1;if(N(B.startRow,B.startCol,B.endRow,B.endCol))return!0}else{var V=r.getLine(S),G=[],Q,te=0;for(a.lastIndex=0;Q=a.exec(V);){var he=Q[0].length;if(te=Q.index,!he){if(te>=V.length)break;a.lastIndex=te+=b.skipEmptyMatch(V,te,_)}if(Q.index+he>k)break;G.push(Q.index,he)}for(var ne=G.length-1;ne>=0;ne-=2){var ce=G[ne-1],he=G[ne];if(N(S,ce,S,ce+he))return!0}}};else var P=function(S,k,N){if(a.lastIndex=k,h){var B=m(r,a,S,F);if(B){var V=B.endRow<=F?B.endRow-1:F;V>S&&(S=V)}if(!B)return!1;if(N(B.startRow,B.startCol,B.endRow,B.endCol))return!0}else for(var G=r.getLine(S),Q,te;te=a.exec(G);){var he=te[0].length;if(Q=te.index,N(S,Q,S,Q+he))return!0;if(!he&&(a.lastIndex=Q+=b.skipEmptyMatch(G,Q,_),Q>=G.length))return!1}};return{forEach:L}},o}();function g(o,r){var n=b.supportsLookbehind();function a(E,M){M===void 0&&(M=!0);var _=n&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return _.test(E)||r.regExp?n&&r.$supportsUnicodeFlag?M?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(o),m=h[0],y=h[h.length-1];return a(m)+o+a(y,!1)}function i(o,r,n){for(var a=null,h=0;h<=o.length;){r.lastIndex=h;var m=r.exec(o);if(!m)break;var y=m.index+m[0].length;if(y>o.length-n)break;(!a||y>a.index+a[0].length)&&(a=m),h=m.index+1}return a}function s(o,r){var n=5e3,a={row:r,column:0},h=o.doc.positionToIndex(a),m=h+n,y=o.doc.indexToPosition(m),E=y.row;return E+1}l.Search=p}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,l,T){var b=this&&this.__extends||function(){var o=function(r,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(a[m]=h[m])},o(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");o(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),w=e("../lib/keys"),C=e("../lib/useragent"),p=w.KEY_MODS,g=function(){function o(r,n){this.$init(r,n,!1)}return o.prototype.$init=function(r,n,a){this.platform=n||(C.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(r),this.$singleCommand=a},o.prototype.addCommand=function(r){this.commands[r.name]&&this.removeCommand(r),this.commands[r.name]=r,r.bindKey&&this._buildKeyHash(r)},o.prototype.removeCommand=function(r,n){var a=r&&(typeof r=="string"?r:r.name);r=this.commands[a],n||delete this.commands[a];var h=this.commandKeyBinding;for(var m in h){var y=h[m];if(y==r)delete h[m];else if(Array.isArray(y)){var E=y.indexOf(r);E!=-1&&(y.splice(E,1),y.length==1&&(h[m]=y[0]))}}},o.prototype.bindKey=function(r,n,a){if(typeof r=="object"&&r&&(a==null&&(a=r.position),r=r[this.platform]),!!r){if(typeof n=="function")return this.addCommand({exec:n,bindKey:r,name:n.name||r});r.split("|").forEach(function(h){var m="";if(h.indexOf(" ")!=-1){var y=h.split(/\s+/);h=y.pop(),y.forEach(function(_){var v=this.parseKeys(_),R=p[v.hashId]+v.key;m+=(m?" ":"")+R,this._addCommandToBinding(m,"chainKeys")},this),m+=" "}var E=this.parseKeys(h),M=p[E.hashId]+E.key;this._addCommandToBinding(m+M,n,a)},this)}},o.prototype._addCommandToBinding=function(r,n,a){var h=this.commandKeyBinding,m;if(!n)delete h[r];else if(!h[r]||this.$singleCommand)h[r]=n;else{Array.isArray(h[r])?(m=h[r].indexOf(n))!=-1&&h[r].splice(m,1):h[r]=[h[r]],typeof a!="number"&&(a=i(n));var y=h[r];for(m=0;m<y.length;m++){var E=y[m],M=i(E);if(M>a)break}y.splice(m,0,n)}},o.prototype.addCommands=function(r){r&&Object.keys(r).forEach(function(n){var a=r[n];if(a){if(typeof a=="string")return this.bindKey(a,n);typeof a=="function"&&(a={exec:a}),typeof a=="object"&&(a.name||(a.name=n),this.addCommand(a))}},this)},o.prototype.removeCommands=function(r){Object.keys(r).forEach(function(n){this.removeCommand(r[n])},this)},o.prototype.bindKeys=function(r){Object.keys(r).forEach(function(n){this.bindKey(n,r[n])},this)},o.prototype._buildKeyHash=function(r){this.bindKey(r.bindKey,r)},o.prototype.parseKeys=function(r){var n=r.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(M){return M}),a=n.pop(),h=w[a];if(w.FUNCTION_KEYS[h])a=w.FUNCTION_KEYS[h].toLowerCase();else if(n.length){if(n.length==1&&n[0]=="shift")return{key:a.toUpperCase(),hashId:-1}}else return{key:a,hashId:-1};for(var m=0,y=n.length;y--;){var E=w.KEY_MODS[n[y]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+n[y]+" in "+r),!1;m|=E}return{key:a,hashId:m}},o.prototype.findKeyCommand=function(r,n){var a=p[r]+n;return this.commandKeyBinding[a]},o.prototype.handleKeyboard=function(r,n,a,h){if(!(h<0)){var m=p[n]+a,y=this.commandKeyBinding[m];return r.$keyChain&&(r.$keyChain+=" "+m,y=this.commandKeyBinding[r.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(r.$keyChain=r.$keyChain||m,{command:"null"}):(r.$keyChain&&((!n||n==4)&&a.length==1?r.$keyChain=r.$keyChain.slice(0,-m.length-1):(n==-1||h>0)&&(r.$keyChain="")),{command:y})}},o.prototype.getStatusText=function(r,n){return n.$keyChain||""},o}();function i(o){return typeof o=="object"&&o.bindKey&&o.bindKey.position||(o.isDefault?-100:0)}var s=function(o){b(r,o);function r(n,a){var h=o.call(this,n,a)||this;return h.$singleCommand=!0,h}return r}(g);s.call=function(o,r,n){g.prototype.$init.call(o,r,n,!0)},g.call=function(o,r,n){g.prototype.$init.call(o,r,n,!1)},l.HashHandler=s,l.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,l,T){var b=this&&this.__extends||function(){var i=function(s,o){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},i(s,o)};return function(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");i(s,o);function r(){this.constructor=s}s.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}}(),w=e("../lib/oop"),C=e("../keyboard/hash_handler").MultiHashHandler,p=e("../lib/event_emitter").EventEmitter,g=function(i){b(s,i);function s(o,r){var n=i.call(this,r,o)||this;return n.byName=n.commands,n.setDefaultHandler("exec",function(a){return a.args?a.command.exec(a.editor,a.args,a.event,!1):a.command.exec(a.editor,{},a.event,!0)}),n}return s.prototype.exec=function(o,r,n){if(Array.isArray(o)){for(var a=o.length;a--;)if(this.exec(o[a],r,n))return!0;return!1}typeof o=="string"&&(o=this.commands[o]);var h={editor:r,command:o,args:n};return this.canExecute(o,r)?(h.returnValue=this._emit("exec",h),this._signal("afterExec",h),h.returnValue!==!1):(this._signal("commandUnavailable",h),!1)},s.prototype.canExecute=function(o,r){return typeof o=="string"&&(o=this.commands[o]),!(!o||r&&r.$readOnly&&!o.readOnly||this.$checkCommandState!=!1&&o.isAvailable&&!o.isAvailable(r))},s.prototype.toggleRecording=function(o){if(!this.$inReplay)return o&&o._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(r){this.macro.push([r.command,r.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},s.prototype.replay=function(o){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(o);try{this.$inReplay=!0,this.macro.forEach(function(r){typeof r=="string"?this.exec(r,o):this.exec(r[0],o,r[1])},this)}finally{this.$inReplay=!1}}},s.prototype.trimMacro=function(o){return o.map(function(r){return typeof r[0]!="string"&&(r[0]=r[0].name),r[1]||(r=r[0]),r})},s}(C);w.implement(g.prototype,p),l.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,l,T){var b=e("../lib/lang"),w=e("../config"),C=e("../range").Range;function p(i,s){return{win:i,mac:s}}l.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:p("Ctrl-,","Command-,"),exec:function(i){w.loadModule("ace/ext/settings_menu",function(s){s.init(i),i.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:p("Alt-E","F4"),exec:function(i){w.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:p("Alt-Shift-E","Shift-F4"),exec:function(i){w.loadModule("ace/ext/error_marker",function(s){s.showErrorMarker(i,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:p("Ctrl-A","Command-A"),exec:function(i){i.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:p(null,"Ctrl-L"),exec:function(i){i.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:p("Ctrl-L","Command-L"),exec:function(i,s){typeof s=="number"&&!isNaN(s)&&i.gotoLine(s),i.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:p("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(i){i.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:p("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(i){i.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:p("F2","F2"),exec:function(i){i.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:p("Alt-F2","Alt-F2"),exec:function(i){i.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:p(null,"Ctrl-Command-Option-0"),exec:function(i){i.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:p("Alt-0","Command-Option-0"),exec:function(i){i.session.foldAll(),i.session.unfold(i.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:p("Alt-Shift-0","Command-Option-Shift-0"),exec:function(i){i.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:p("Ctrl-K","Command-G"),exec:function(i){i.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:p("Ctrl-Shift-K","Command-Shift-G"),exec:function(i){i.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:p("Alt-K","Ctrl-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:p("Alt-Shift-K","Ctrl-Shift-G"),exec:function(i){i.selection.isEmpty()?i.selection.selectWord():i.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:p("Ctrl-F","Command-F"),exec:function(i){w.loadModule("ace/ext/searchbox",function(s){s.Search(i)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(i){i.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:p("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(i){i.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:p("Ctrl-Home","Command-Home|Command-Up"),exec:function(i){i.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:p("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(i){i.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:p("Up","Up|Ctrl-P"),exec:function(i,s){i.navigateUp(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:p("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(i){i.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:p("Ctrl-End","Command-End|Command-Down"),exec:function(i){i.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:p("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(i){i.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:p("Down","Down|Ctrl-N"),exec:function(i,s){i.navigateDown(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:p("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(i){i.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:p("Ctrl-Left","Option-Left"),exec:function(i){i.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:p("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:p("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(i){i.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:p("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(i){i.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:p("Left","Left|Ctrl-B"),exec:function(i,s){i.navigateLeft(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:p("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(i){i.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:p("Ctrl-Right","Option-Right"),exec:function(i){i.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:p("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:p("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(i){i.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:p("Shift-Right","Shift-Right"),exec:function(i){i.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:p("Right","Right|Ctrl-F"),exec:function(i,s){i.navigateRight(s.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(i){i.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:p(null,"Option-PageDown"),exec:function(i){i.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:p("PageDown","PageDown|Ctrl-V"),exec:function(i){i.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(i){i.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:p(null,"Option-PageUp"),exec:function(i){i.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(i){i.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:p("Ctrl-Up",null),exec:function(i){i.renderer.scrollBy(0,-2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:p("Ctrl-Down",null),exec:function(i){i.renderer.scrollBy(0,2*i.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(i){i.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(i){i.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:p("Ctrl-Alt-E","Command-Option-E"),exec:function(i){i.commands.toggleRecording(i)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:p("Ctrl-Shift-E","Command-Shift-E"),exec:function(i){i.commands.replay(i)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:p("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(i){i.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:p("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(i){i.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:p("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(i){i.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:p(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(i){},readOnly:!0},{name:"cut",description:"Cut",exec:function(i){var s=i.$copyWithEmptySelection&&i.selection.isEmpty(),o=s?i.selection.getLineRange():i.selection.getRange();i._emit("cut",o),o.isEmpty()||i.session.remove(o),i.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(i,s){i.$handlePaste(s)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:p("Ctrl-D","Command-D"),exec:function(i){i.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:p("Ctrl-Shift-D","Command-Shift-D"),exec:function(i){i.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:p("Ctrl-Alt-S","Command-Alt-S"),exec:function(i){i.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:p("Ctrl-/","Command-/"),exec:function(i){i.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:p("Ctrl-Shift-/","Command-Shift-/"),exec:function(i){i.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:p("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(i){i.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:p("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(i){i.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:p("Ctrl-H","Command-Option-F"),exec:function(i){w.loadModule("ace/ext/searchbox",function(s){s.Search(i,!0)})}},{name:"undo",description:"Undo",bindKey:p("Ctrl-Z","Command-Z"),exec:function(i){i.undo()}},{name:"redo",description:"Redo",bindKey:p("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(i){i.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:p("Alt-Shift-Up","Command-Option-Up"),exec:function(i){i.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:p("Alt-Up","Option-Up"),exec:function(i){i.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:p("Alt-Shift-Down","Command-Option-Down"),exec:function(i){i.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:p("Alt-Down","Option-Down"),exec:function(i){i.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:p("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(i){i.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:p("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(i){i.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:p("Shift-Delete",null),exec:function(i){if(i.selection.isEmpty())i.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:p("Alt-Backspace","Command-Backspace"),exec:function(i){i.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:p("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(i){i.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:p("Ctrl-Shift-Backspace",null),exec:function(i){var s=i.selection.getRange();s.start.column=0,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:p("Ctrl-Shift-Delete",null),exec:function(i){var s=i.selection.getRange();s.end.column=Number.MAX_VALUE,i.session.remove(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:p("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(i){i.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:p("Ctrl-Delete","Alt-Delete"),exec:function(i){i.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:p("Shift-Tab","Shift-Tab"),exec:function(i){i.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:p("Tab","Tab"),exec:function(i){i.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:p("Ctrl-[","Ctrl-["),exec:function(i){i.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:p("Ctrl-]","Ctrl-]"),exec:function(i){i.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(i,s){i.insert(s)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(i,s){i.insert(b.stringRepeat(s.text||"",s.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:p(null,"Ctrl-O"),exec:function(i){i.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:p("Alt-Shift-X","Ctrl-T"),exec:function(i){i.transposeLetters()},multiSelectAction:function(i){i.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:p("Ctrl-U","Ctrl-U"),exec:function(i){i.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:p("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(i){i.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:p(null,null),exec:function(i){i.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:p("Ctrl-Shift-L","Command-Shift-L"),exec:function(i){var s=i.selection.getRange();s.start.column=s.end.column=0,s.end.row++,i.selection.setRange(s,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:p("Ctrl+F3","F3"),exec:function(i){i.openLink()}},{name:"joinlines",description:"Join lines",bindKey:p(null,null),exec:function(i){for(var s=i.selection.isBackwards(),o=s?i.selection.getSelectionLead():i.selection.getSelectionAnchor(),r=s?i.selection.getSelectionAnchor():i.selection.getSelectionLead(),n=i.session.doc.getLine(o.row).length,a=i.session.doc.getTextRange(i.selection.getRange()),h=a.replace(/\n\s*/," ").length,m=i.session.doc.getLine(o.row),y=o.row+1;y<=r.row+1;y++){var E=b.stringTrimLeft(b.stringTrimRight(i.session.doc.getLine(y)));E.length!==0&&(E=" "+E),m+=E}r.row+1<i.session.doc.getLength()-1&&(m+=i.session.doc.getNewLineCharacter()),i.clearSelection(),i.session.doc.replace(new C(o.row,0,r.row+2,0),m),h>0?(i.selection.moveCursorTo(o.row,o.column),i.selection.selectTo(o.row,o.column+h)):(n=i.session.doc.getLine(o.row).length>n?n+1:n,i.selection.moveCursorTo(o.row,n))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:p(null,null),exec:function(i){var s=i.session.doc.getLength()-1,o=i.session.doc.getLine(s).length,r=i.selection.rangeList.ranges,n=[];r.length<1&&(r=[i.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===s&&r[a].end.column===o||n.push(new C(r[a].end.row,r[a].end.column,s,o))),a===0?r[a].start.row===0&&r[a].start.column===0||n.push(new C(0,0,r[a].start.row,r[a].start.column)):n.push(new C(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));i.exitMultiSelectMode(),i.clearSelection();for(var a=0;a<n.length;a++)i.selection.addRange(n[a],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(i){i.selection.clearSelection(),i.navigateLineEnd(),i.insert(`
|
|
209
|
-
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(i){i.selection.clearSelection();var s=i.getCursorPosition();i.selection.moveTo(s.row-1,Number.MAX_VALUE),i.insert(`
|
|
210
|
-
`),s.row===0&&i.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(i){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),i.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:p("F1","F1"),exec:function(i){i.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:p(null,null),exec:function(i){i.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)l.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(i){i.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,l,T){var b=e("../lib/keys"),w=e("../mouse/default_gutter_handler").GutterTooltip,C=function(){function g(i){this.editor=i,this.gutterLayer=i.renderer.$gutterLayer,this.element=i.renderer.$gutter,this.lines=i.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new w(this.editor)}return g.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},g.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},g.prototype.$onGutterKeyDown=function(i){if(this.annotationTooltip.isOpen){i.preventDefault(),i.keyCode===b.escape&&this.annotationTooltip.hideTooltip();return}if(i.target===this.element){if(i.keyCode!=b.enter)return;i.preventDefault();var s=this.editor.getCursorPosition().row;this.editor.isRowVisible(s)||this.editor.scrollToLine(s,!0,!0),setTimeout((function(){var o=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),r=this.$findNearestFoldLaneWidget(o),n=this.$findNearestAnnotation(o);if(!(r===null&&n===null)){var a=this.$findClosestNumber(r,n,o);if(a===r)if(this.activeLane="fold",this.activeRowIndex=r,this.$isCustomWidgetVisible(r)){this.$focusCustomWidget(this.activeRowIndex);return}else{this.$focusFoldWidget(this.activeRowIndex);return}else{this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(i),setTimeout((function(){this.editor._signal("gutterkeydown",new p(i,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(i){if(i.keyCode===b.tab){i.preventDefault();return}if(i.keyCode===b.escape){i.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(i.keyCode===b.up){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(i.keyCode===b.down){switch(i.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(i.keyCode===b.left){i.preventDefault(),this.$switchLane("annotation");return}if(i.keyCode===b.right){i.preventDefault(),this.$switchLane("fold");return}if(i.keyCode===b.enter||i.keyCode===b.space){switch(i.preventDefault(),this.activeLane){case"fold":var s=this.$rowIndexToRow(this.activeRowIndex),o=this.editor.session.$gutterCustomWidgets[s];if(o)o.callbacks&&o.callbacks.onClick&&o.callbacks.onClick(i,s);else if(this.gutterLayer.session.foldWidgets[s]==="start"){this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),i),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==s&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(s),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var r=this.lines.cells[this.activeRowIndex].element.childNodes[2],n=r.getBoundingClientRect(),a=this.annotationTooltip.getElement().style;a.left=n.right+"px",a.top=n.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),o=this.$getFoldWidget(i).style.display!=="none";return s&&o},g.prototype.$isCustomWidgetVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),o=!!this.$getCustomWidget(i);return s&&o},g.prototype.$isAnnotationVisible=function(i){var s=this.editor.isRowFullyVisible(this.$rowIndexToRow(i)),o=this.$getAnnotation(i).style.display!=="none";return s&&o},g.prototype.$getFoldWidget=function(i){var s=this.lines.get(i),o=s.element;return o.childNodes[1]},g.prototype.$getCustomWidget=function(i){var s=this.lines.get(i),o=s.element;return o.childNodes[3]},g.prototype.$getAnnotation=function(i){var s=this.lines.get(i),o=s.element;return o.childNodes[2]},g.prototype.$findNearestFoldLaneWidget=function(i){if(this.$isCustomWidgetVisible(i)||this.$isFoldWidgetVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isCustomWidgetVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isCustomWidgetVisible(i+s))return i+s;if(i-s>=0&&this.$isFoldWidgetVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(i+s))return i+s}return null},g.prototype.$findNearestAnnotation=function(i){if(this.$isAnnotationVisible(i))return i;for(var s=0;i-s>0||i+s<this.lines.getLength()-1;){if(s++,i-s>=0&&this.$isAnnotationVisible(i-s))return i-s;if(i+s<=this.lines.getLength()-1&&this.$isAnnotationVisible(i+s))return i+s}return null},g.prototype.$focusFoldWidget=function(i){if(i!=null){var s=this.$getFoldWidget(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},g.prototype.$focusCustomWidget=function(i){if(i!=null){var s=this.$getCustomWidget(i);s&&(s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus())}},g.prototype.$focusAnnotation=function(i){if(i!=null){var s=this.$getAnnotation(i);s.classList.add(this.editor.renderer.keyboardFocusClassName),s.focus()}},g.prototype.$blurFoldWidget=function(i){var s=this.$getFoldWidget(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},g.prototype.$blurCustomWidget=function(i){var s=this.$getCustomWidget(i);s&&(s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur())},g.prototype.$blurAnnotation=function(i){var s=this.$getAnnotation(i);s.classList.remove(this.editor.renderer.keyboardFocusClassName),s.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isFoldWidgetVisible(i)||this.$isCustomWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=i,this.$isFoldWidgetVisible(i)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isFoldWidgetVisible(i)||this.$isCustomWidgetVisible(i)){this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=i,this.$isFoldWidgetVisible(i)?this.$focusFoldWidget(this.activeRowIndex):this.$focusCustomWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var i=this.activeRowIndex;i>0;)if(i--,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var i=this.activeRowIndex;i<this.lines.getLength()-1;)if(i++,this.$isAnnotationVisible(i)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=i,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$findClosestNumber=function(i,s,o){return i===null?s:s===null||Math.abs(o-i)<=Math.abs(o-s)?i:s},g.prototype.$switchLane=function(i){switch(i){case"annotation":if(this.activeLane==="annotation")break;var s=this.$findNearestAnnotation(this.activeRowIndex);if(s==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.$blurCustomWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var o=this.$findNearestFoldLaneWidget(this.activeRowIndex);if(o===null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$isCustomWidgetVisible(o)?this.$focusCustomWidget(this.activeRowIndex):this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(i){var s=this.lines.get(i);return s?s.row:null},g.prototype.$rowToRowIndex=function(i){for(var s=0;s<this.lines.getLength();s++){var o=this.lines.get(s);if(o.row==i)return s}return null},g}();l.GutterKeyboardHandler=C;var p=function(){function g(i,s){this.gutterKeyboardHandler=s,this.domEvent=i}return g.prototype.getKey=function(){return b.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();l.GutterKeyboardEvent=p}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys","ace/lib/event","ace/tooltip"],function(e,l,T){var b=this&&this.__values||function(S){var k=typeof Symbol=="function"&&Symbol.iterator,N=k&&S[k],B=0;if(N)return N.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&B>=S.length&&(S=void 0),{value:S&&S[B++],done:!S}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/oop"),C=e("./lib/dom"),p=e("./lib/lang"),g=e("./lib/useragent"),i=e("./keyboard/textinput").TextInput,s=e("./mouse/mouse_handler").MouseHandler,o=e("./mouse/fold_handler").FoldHandler,r=e("./keyboard/keybinding").KeyBinding,n=e("./edit_session").EditSession,a=e("./search").Search,h=e("./range").Range,m=e("./lib/event_emitter").EventEmitter,y=e("./commands/command_manager").CommandManager,E=e("./commands/default_commands").commands,M=e("./config"),_=e("./token_iterator").TokenIterator,v=e("./keyboard/gutter_handler").GutterKeyboardHandler,R=e("./config").nls,I=e("./clipboard"),F=e("./lib/keys"),L=e("./lib/event"),U=e("./tooltip").HoverTooltip,P=function(){function S(k,N,B){this.session,this.$toDestroy=[];var V=k.getContainerElement();this.container=V,this.renderer=k,this.id="editor"+ ++S.$uid,this.commands=new y(g.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new i(k.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new o(this)),this.keyBinding=new r(this),this.$search=new a().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=p.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(G,Q){Q._$emitInputEvent.schedule(31)}),this.setSession(N||B&&B.session||new n("")),M.resetOptions(this),B&&this.setOptions(B),M._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(k){this.session.startOperation(k)},S.prototype.endOperation=function(k){this.session.endOperation(k)},S.prototype.onStartOperation=function(k){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,k||(this.previousCommand=null)},S.prototype.onEndOperation=function(k){if(this.curOp&&this.session){if(k&&k.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var N=this.curOp.command,B=N&&N.scrollIntoView;if(B){switch(B){case"center-animate":B="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var V=this.selection.getRange(),G=this.renderer.layerConfig;(V.start.row>=G.lastRow||V.end.row<=G.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}B=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(k){if(this.$mergeUndoDeltas){var N=this.prevOp,B=this.$mergeableCommands,V=N.command&&k.command.name==N.command.name;if(k.command.name=="insertstring"){var G=k.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),V=V&&this.mergeNextCommand&&(!/\s/.test(G)||/\s/.test(N.args)),this.mergeNextCommand=!0}else V=V&&B.indexOf(k.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(V=!1),V?this.session.mergeUndoDeltas=!0:B.indexOf(k.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(k,N){if(k&&typeof k=="string"&&k!="ace"){this.$keybindingId=k;var B=this;M.loadModule(["keybinding",k],function(V){B.$keybindingId==k&&B.keyBinding.setKeyboardHandler(V&&V.handler),N&&N()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(k),N&&N()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(k){if(this.session!=k){this.curOp&&this.endOperation(),this.curOp={};var N=this.session;if(N){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var B=this.session.getSelection();B.off("changeCursor",this.$onCursorChange),B.off("changeSelection",this.$onSelectionChange)}this.session=k,k?(this.$onDocumentChange=this.onDocumentChange.bind(this),k.on("change",this.$onDocumentChange),this.renderer.setSession(k),this.$onChangeMode=this.onChangeMode.bind(this),k.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),k.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),k.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),k.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),k.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),k.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=k.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(k)),this._signal("changeSession",{session:k,oldSession:N}),this.curOp=null,N&&N._signal("changeEditor",{oldEditor:this}),N&&(N.$editor=null),k&&k._signal("changeEditor",{editor:this}),k&&(k.$editor=this),k&&!k.destroyed&&k.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(k,N){return this.session.doc.setValue(k),N?N==1?this.navigateFileEnd():N==-1&&this.navigateFileStart():this.selectAll(),k},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(k){this.renderer.onResize(k)},S.prototype.setTheme=function(k,N){this.renderer.setTheme(k,N)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(k){this.renderer.setStyle(k)},S.prototype.unsetStyle=function(k){this.renderer.unsetStyle(k)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||C.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(k){this.setOption("fontSize",k)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var k=this;this.$highlightPending=!0,setTimeout(function(){k.$highlightPending=!1;var N=k.session;if(!(!N||N.destroyed)){N.$bracketHighlight&&(N.$bracketHighlight.markerIds.forEach(function(ue){N.removeMarker(ue)}),N.$bracketHighlight=null);var B=k.getCursorPosition(),V=k.getKeyboardHandler(),G=V&&V.$getDirectionForHighlight&&V.$getDirectionForHighlight(k),Q=N.getMatchingBracketRanges(B,G);if(!Q){var te=new _(N,B.row,B.column),he=te.getCurrentToken();if(he&&/\b(?:tag-open|tag-name)/.test(he.type)){var ne=N.getMatchingTags(B);ne&&(Q=[ne.openTagName.isEmpty()?ne.openTag:ne.openTagName,ne.closeTagName.isEmpty()?ne.closeTag:ne.closeTagName])}}if(!Q&&N.$mode.getMatching&&(Q=N.$mode.getMatching(k.session)),!Q){k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide();return}var ce="ace_bracket";Array.isArray(Q)?Q.length==1&&(ce="ace_error_bracket"):Q=[Q],Q.length==2&&(h.comparePoints(Q[0].end,Q[1].start)==0?Q=[h.fromPoints(Q[0].start,Q[1].end)]:h.comparePoints(Q[0].start,Q[1].end)==0&&(Q=[h.fromPoints(Q[1].start,Q[0].end)])),N.$bracketHighlight={ranges:Q,markerIds:Q.map(function(ue){return N.addMarker(ue,ce,"text")})},k.getHighlightIndentGuides()&&k.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(k){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",k))},S.prototype.onBlur=function(k){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",k))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(k){var N=this.session.$useWrapMode,B=k.start.row==k.end.row?k.end.row:1/0;this.renderer.updateLines(k.start.row,B,N),this._signal("change",k),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(k){var N=k.data;this.renderer.updateLines(N.first,N.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var k=this.getSession(),N;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(N=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(N=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(N=!1)),k.$highlightLineMarker&&!N)k.removeMarker(k.$highlightLineMarker.id),k.$highlightLineMarker=null;else if(!k.$highlightLineMarker&&N){var B=new h(N.row,N.column,N.row,1/0);B.id=k.addMarker(B,"ace_active-line","screenLine"),k.$highlightLineMarker=B}else N&&(k.$highlightLineMarker.start.row=N.row,k.$highlightLineMarker.end.row=N.row,k.$highlightLineMarker.start.column=N.column,k._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(k){var N=this.session;if(N.$selectionMarker&&N.removeMarker(N.$selectionMarker),N.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var B=this.selection.getRange(),V=this.getSelectionStyle();N.$selectionMarker=N.addMarker(B,"ace_selection",V)}var G=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(G),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var k=this.session,N=this.getSelectionRange();if(!(N.isEmpty()||N.isMultiLine())){var B=N.start.column,V=N.end.column,G=k.getLine(N.start.row),Q=G.substring(B,V);if(!(Q.length>5e3||!/[\w\d]/.test(Q))){var te=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Q}),he=G.substring(B-1,V+1);if(te.test(he))return te}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(k){this.renderer.updateText(),this._emit("changeMode",k)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var k=this.getSelectedText(),N=this.session.doc.getNewLineCharacter(),B=!1;if(!k&&this.$copyWithEmptySelection){B=!0;for(var V=this.selection.getAllRanges(),G=0;G<V.length;G++){var Q=V[G];G&&V[G-1].start.row==Q.start.row||(k+=this.session.getLine(Q.start.row)+N)}}var te={text:k};return this._signal("copy",te),I.lineMode=B?te.text:!1,te.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(k,N){var B={text:k,event:N};this.commands.exec("paste",this,B)},S.prototype.$handlePaste=function(k){typeof k=="string"&&(k={text:k}),this._signal("paste",k);var N=k.text,B=N===I.lineMode,V=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)B?V.insert({row:this.selection.lead.row,column:0},N):this.insert(N);else if(B)this.selection.rangeList.ranges.forEach(function(ce){V.insert({row:ce.start.row,column:0},N)});else{var G=N.split(/\r\n|\r|\n/),Q=this.selection.rangeList.ranges,te=G.length==2&&(!G[0]||!G[1]);if(G.length!=Q.length||te)return this.commands.exec("insertstring",this,N);for(var he=Q.length;he--;){var ne=Q[he];ne.isEmpty()||V.remove(ne),V.insert(ne.start,G[he])}}},S.prototype.execCommand=function(k,N){return this.commands.exec(k,this,N)},S.prototype.insert=function(k,N){var B=this.session,V=B.getMode(),G=this.getCursorPosition();if(this.getBehavioursEnabled()&&!N){var Q=V.transformAction(B.getState(G.row),"insertion",this,B,k);Q&&(k!==Q.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),k=Q.text)}if(k==" "&&(k=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&k.indexOf(`
|
|
211
|
-
`)==-1){var te=h.fromPoints(G,G);te.end.column+=k.length,this.session.remove(te)}}else{var te=this.getSelectionRange();G=this.session.remove(te),this.clearSelection()}if(k==`
|
|
212
|
-
`||k==`\r
|
|
213
|
-
`){var ue=B.getLine(G.row);if(G.column>ue.search(/\S|$/)){var he=ue.substr(G.column).search(/\S|$/);B.doc.removeInLine(G.row,G.column,G.column+he)}}this.clearSelection();var ne=G.column,ce=B.getState(G.row),ue=B.getLine(G.row),le=V.checkOutdent(ce,ue,k);if(B.insert(G,k),Q&&Q.selection&&(Q.selection.length==2?this.selection.setSelectionRange(new h(G.row,ne+Q.selection[0],G.row,ne+Q.selection[1])):this.selection.setSelectionRange(new h(G.row+Q.selection[0],Q.selection[1],G.row+Q.selection[2],Q.selection[3]))),this.$enableAutoIndent){if(B.getDocument().isNewLine(k)){var me=V.getNextLineIndent(ce,ue.slice(0,G.column),B.getTabString());B.insert({row:G.row+1,column:0},me)}le&&V.autoOutdent(ce,B,G.row)}},S.prototype.autoIndent=function(){for(var k=this.session,N=k.getMode(),B=this.selection.isEmpty()?[new h(0,0,k.doc.getLength()-1,0)]:this.selection.getAllRanges(),V="",G="",Q="",te=k.getTabString(),he=0;he<B.length;he++)for(var ne=B[he].start.row,ce=B[he].end.row,ue=ne;ue<=ce;ue++){ue>0&&(V=k.getState(ue-1),G=k.getLine(ue-1),Q=N.getNextLineIndent(V,G,te));var le=k.getLine(ue),me=N.$getIndent(le);if(Q!==me){if(me.length>0){var Ae=new h(ue,0,ue,me.length);k.remove(Ae)}Q.length>0&&k.insert({row:ue,column:0},Q)}N.autoOutdent(V,k,ue)}},S.prototype.onTextInput=function(k,N){if(!N)return this.keyBinding.onTextInput(k);this.startOperation({command:{name:"insertstring"}});var B=this.applyComposition.bind(this,k,N);this.selection.rangeCount?this.forEachSelection(B):B(),this.endOperation()},S.prototype.applyComposition=function(k,N){if(N.extendLeft||N.extendRight){var B=this.selection.getRange();B.start.column-=N.extendLeft,B.end.column+=N.extendRight,B.start.column<0&&(B.start.row--,B.start.column+=this.session.getLine(B.start.row).length+1),this.selection.setRange(B),!k&&!B.isEmpty()&&this.remove()}if((k||!this.selection.isEmpty())&&this.insert(k,!0),N.restoreStart||N.restoreEnd){var B=this.selection.getRange();B.start.column-=N.restoreStart,B.end.column-=N.restoreEnd,this.selection.setRange(B)}},S.prototype.onCommandKey=function(k,N,B){return this.keyBinding.onCommandKey(k,N,B)},S.prototype.setOverwrite=function(k){this.session.setOverwrite(k)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(k){this.setOption("scrollSpeed",k)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(k){this.setOption("dragDelay",k)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(k){this.setOption("selectionStyle",k)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(k){this.setOption("highlightActiveLine",k)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(k){this.setOption("highlightGutterLine",k)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(k){this.setOption("highlightSelectedWord",k)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(k){this.renderer.setAnimatedScroll(k)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(k){this.renderer.setShowInvisibles(k)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(k){this.renderer.setDisplayIndentGuides(k)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(k){this.renderer.setHighlightIndentGuides(k)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(k){this.renderer.setShowPrintMargin(k)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(k){this.renderer.setPrintMarginColumn(k)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(k){this.setOption("readOnly",k)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(k){this.setOption("behavioursEnabled",k)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(k){this.setOption("wrapBehavioursEnabled",k)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(k){this.setOption("showFoldWidgets",k)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(k){this.setOption("fadeFoldWidgets",k)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(k){this.selection.isEmpty()&&(k=="left"?this.selection.selectLeft():this.selection.selectRight());var N=this.getSelectionRange();if(this.getBehavioursEnabled()){var B=this.session,V=B.getState(N.start.row),G=B.getMode().transformAction(V,"deletion",this,B,N);if(N.end.column===0){var Q=B.getTextRange(N);if(Q[Q.length-1]==`
|
|
214
|
-
`){var te=B.getLine(N.end.row);/^\s+$/.test(te)&&(N.end.column=te.length)}}G&&(N=G)}this.session.remove(N),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var k=this.getSelectionRange();k.start.column==k.end.column&&k.start.row==k.end.row&&(k.end.column=0,k.end.row++),this.session.remove(k),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var k=this.getCursorPosition();this.insert(`
|
|
215
|
-
`),this.moveCursorToPosition(k)},S.prototype.setGhostText=function(k,N){this.renderer.setGhostText(k,N)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var k=this.getCursorPosition(),N=k.column;if(N!==0){var B=this.session.getLine(k.row),V,G;N<B.length?(V=B.charAt(N)+B.charAt(N-1),G=new h(k.row,N-1,k.row,N+1)):(V=B.charAt(N-1)+B.charAt(N-2),G=new h(k.row,N-2,k.row,N)),this.session.replace(G,V),this.session.selection.moveToPosition(G.end)}}},S.prototype.toLowerCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var N=this.getSelectionRange(),B=this.session.getTextRange(N);this.session.replace(N,B.toLowerCase()),this.selection.setSelectionRange(k)},S.prototype.toUpperCase=function(){var k=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var N=this.getSelectionRange(),B=this.session.getTextRange(N);this.session.replace(N,B.toUpperCase()),this.selection.setSelectionRange(k)},S.prototype.indent=function(){var k=this.session,N=this.getSelectionRange();if(N.start.row<N.end.row){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}else if(N.start.column<N.end.column){var V=k.getTextRange(N);if(!/^\s+$/.test(V)){var B=this.$getSelectedRows();k.indentRows(B.first,B.last," ");return}}var G=k.getLine(N.start.row),Q=N.start,te=k.getTabSize(),he=k.documentToScreenColumn(Q.row,Q.column);if(this.session.getUseSoftTabs())var ne=te-he%te,ce=p.stringRepeat(" ",ne);else{for(var ne=he%te;G[N.start.column-1]==" "&≠)N.start.column--,ne--;this.selection.setSelectionRange(N),ce=" "}return this.insert(ce)},S.prototype.blockIndent=function(){var k=this.$getSelectedRows();this.session.indentRows(k.first,k.last," ")},S.prototype.blockOutdent=function(){var k=this.session.getSelection();this.session.outdentRows(k.getRange())},S.prototype.sortLines=function(){for(var k=this.$getSelectedRows(),N=this.session,B=[],V=k.first;V<=k.last;V++)B.push(N.getLine(V));B.sort(function(te,he){return te.toLowerCase()<he.toLowerCase()?-1:te.toLowerCase()>he.toLowerCase()?1:0});for(var G=new h(0,0,0,0),V=k.first;V<=k.last;V++){var Q=N.getLine(V);G.start.row=V,G.end.row=V,G.end.column=Q.length,N.replace(G,B[V-k.first])}},S.prototype.toggleCommentLines=function(){var k=this.session.getState(this.getCursorPosition().row),N=this.$getSelectedRows();this.session.getMode().toggleCommentLines(k,this.session,N.first,N.last)},S.prototype.toggleBlockComment=function(){var k=this.getCursorPosition(),N=this.session.getState(k.row),B=this.getSelectionRange();this.session.getMode().toggleBlockComment(N,this.session,B,k)},S.prototype.getNumberAt=function(k,N){var B=/[\-]?[0-9]+(?:\.[0-9]+)?/g;B.lastIndex=0;for(var V=this.session.getLine(k);B.lastIndex<N;){var G=B.exec(V);if(G.index<=N&&G.index+G[0].length>=N){var Q={value:G[0],start:G.index,end:G.index+G[0].length};return Q}}return null},S.prototype.modifyNumber=function(k){var N=this.selection.getCursor().row,B=this.selection.getCursor().column,V=new h(N,B-1,N,B),G=this.session.getTextRange(V);if(!isNaN(parseFloat(G))&&isFinite(G)){var Q=this.getNumberAt(N,B);if(Q){var te=Q.value.indexOf(".")>=0?Q.start+Q.value.indexOf(".")+1:Q.end,he=Q.start+Q.value.length-te,ne=parseFloat(Q.value);ne*=Math.pow(10,he),te!==Q.end&&B<te?k*=Math.pow(10,Q.end-B-1):k*=Math.pow(10,Q.end-B),ne+=k,ne/=Math.pow(10,he);var ce=ne.toFixed(he),ue=new h(N,Q.start,N,Q.end);this.session.replace(ue,ce),this.moveCursorTo(N,Math.max(Q.start+1,B+ce.length-Q.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var k=this.selection.getCursor().row,N=this.selection.getCursor().column;this.selection.selectWord();var B=this.getSelectedText(),V=this.selection.getWordRange().start.column,G=B.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Q=N-V-1;Q<0&&(Q=0);var te=0,he=0,ne=this;B.match(/[A-Za-z0-9_]+/)&&G.forEach(function(je,at){he=te+je.length,Q>=te&&Q<=he&&(B=je,ne.selection.clearSelection(),ne.moveCursorTo(k,te+V),ne.selection.selectTo(k,he+V)),te=he});for(var ce=this.$toggleWordPairs,ue,le=0;le<ce.length;le++)for(var me=ce[le],Ae=0;Ae<=1;Ae++){var $e=+!Ae,Te=B.match(new RegExp("^\\s?_?("+p.escapeRegExp(me[Ae])+")\\s?$","i"));if(Te){var Ge=B.match(new RegExp("([_]|^|\\s)("+p.escapeRegExp(Te[1])+")($|\\s)","g"));Ge&&(ue=B.replace(new RegExp(p.escapeRegExp(me[Ae]),"i"),function(je){var at=me[$e];return je.toUpperCase()==je?at=at.toUpperCase():je.charAt(0).toUpperCase()==je.charAt(0)&&(at=at.substr(0,0)+me[$e].charAt(0).toUpperCase()+at.substr(1)),at}),this.insert(ue),ue="")}}},S.prototype.findLinkAt=function(k,N){var B,V,G=this.session.getLine(k),Q=G.split(/((?:https?|ftp):\/\/[\S]+)/),te=N;te<0&&(te=0);var he=0,ne=0,ce;try{for(var ue=b(Q),le=ue.next();!le.done;le=ue.next()){var me=le.value;if(ne=he+me.length,te>=he&&te<=ne&&me.match(/((?:https?|ftp):\/\/[\S]+)/)){ce=me.replace(/[\s:.,'";}\]]+$/,"");break}he=ne}}catch(Ae){B={error:Ae}}finally{try{le&&!le.done&&(V=ue.return)&&V.call(ue)}finally{if(B)throw B.error}}return ce},S.prototype.openLink=function(){var k=this.selection.getCursor(),N=this.findLinkAt(k.row,k.column);return N&&window.open(N,"_blank"),N!=null},S.prototype.removeLines=function(){var k=this.$getSelectedRows();this.session.removeFullLines(k.first,k.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var k=this.selection,N=this.session,B=k.getRange(),V=k.isBackwards();if(B.isEmpty()){var G=B.start.row;N.duplicateLines(G,G)}else{var Q=V?B.start:B.end,te=N.insert(Q,N.getTextRange(B));B.start=Q,B.end=te,k.setSelectionRange(B,V)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(k,N,B){return this.session.moveText(k,N,B)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(k,N){var B,V,G=this.selection;if(!G.inMultiSelectMode||this.inVirtualSelectionMode){var Q=G.toOrientedRange();B=this.$getSelectedRows(Q),V=this.session.$moveLines(B.first,B.last,N?0:k),N&&k==-1&&(V=0),Q.moveBy(V,0),G.fromOrientedRange(Q)}else{var te=G.rangeList.ranges;G.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var he=0,ne=0,ce=te.length,ue=0;ue<ce;ue++){var le=ue;te[ue].moveBy(he,0),B=this.$getSelectedRows(te[ue]);for(var me=B.first,Ae=B.last;++ue<ce;){ne&&te[ue].moveBy(ne,0);var $e=this.$getSelectedRows(te[ue]);if(N&&$e.first!=Ae)break;if(!N&&$e.first>Ae+1)break;Ae=$e.last}for(ue--,he=this.session.$moveLines(me,Ae,N?0:k),N&&k==-1&&(le=ue+1);le<=ue;)te[le].moveBy(he,0),le++;N||(he=0),ne+=he}G.fromOrientedRange(G.ranges[0]),G.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(k){return k=(k||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(k.start.row),last:this.session.getRowFoldEnd(k.end.row)}},S.prototype.onCompositionStart=function(k){this.renderer.showComposition(k)},S.prototype.onCompositionUpdate=function(k){this.renderer.setCompositionText(k)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(k){return k>=this.getFirstVisibleRow()&&k<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(k){return k>=this.renderer.getFirstFullyVisibleRow()&&k<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(k,N){var B=this.renderer,V=this.renderer.layerConfig,G=k*Math.floor(V.height/V.lineHeight);N===!0?this.selection.$moveSelection(function(){this.moveCursorBy(G,0)}):N===!1&&(this.selection.moveCursorBy(G,0),this.selection.clearSelection());var Q=B.scrollTop;B.scrollBy(0,G*V.lineHeight),N!=null&&B.scrollCursorIntoView(null,.5),B.animateScrolling(Q)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(k){this.renderer.scrollToRow(k)},S.prototype.scrollToLine=function(k,N,B,V){this.renderer.scrollToLine(k,N,B,V)},S.prototype.centerSelection=function(){var k=this.getSelectionRange(),N={row:Math.floor(k.start.row+(k.end.row-k.start.row)/2),column:Math.floor(k.start.column+(k.end.column-k.start.column)/2)};this.renderer.alignCursor(N,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(k,N){this.selection.moveCursorTo(k,N)},S.prototype.moveCursorToPosition=function(k){this.selection.moveCursorToPosition(k)},S.prototype.jumpToMatching=function(k,N){var B=this.getCursorPosition(),V=new _(this.session,B.row,B.column),G=V.getCurrentToken(),Q=0;G&&G.type.indexOf("tag-name")!==-1&&(G=V.stepBackward());var te=G||V.stepForward();if(te){var he,ne=!1,ce={},ue=B.column-te.start,le,me={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(te.value.match(/[{}()\[\]]/g)){for(;ue<te.value.length&&!ne;ue++)if(me[te.value[ue]])switch(le=me[te.value[ue]]+"."+te.type.replace("rparen","lparen"),isNaN(ce[le])&&(ce[le]=0),te.value[ue]){case"(":case"[":case"{":ce[le]++;break;case")":case"]":case"}":ce[le]--,ce[le]===-1&&(he="bracket",ne=!0);break}}else te.type.indexOf("tag-name")!==-1&&(isNaN(ce[te.value])&&(ce[te.value]=0),G.value==="<"&&Q>1?ce[te.value]++:G.value==="</"&&ce[te.value]--,ce[te.value]===-1&&(he="tag",ne=!0));ne||(G=te,Q++,te=V.stepForward(),ue=0)}while(te&&!ne);if(he){var Ae,$e;if(he==="bracket")Ae=this.session.getBracketRange(B),Ae||(Ae=new h(V.getCurrentTokenRow(),V.getCurrentTokenColumn()+ue-1,V.getCurrentTokenRow(),V.getCurrentTokenColumn()+ue-1),$e=Ae.start,(N||$e.row===B.row&&Math.abs($e.column-B.column)<2)&&(Ae=this.session.getBracketRange($e)));else if(he==="tag"){if(!te||te.type.indexOf("tag-name")===-1)return;if(Ae=new h(V.getCurrentTokenRow(),V.getCurrentTokenColumn()-2,V.getCurrentTokenRow(),V.getCurrentTokenColumn()-2),Ae.compare(B.row,B.column)===0){var Te=this.session.getMatchingTags(B);Te&&(Te.openTag.contains(B.row,B.column)?(Ae=Te.closeTag,$e=Ae.start):(Ae=Te.openTag,Te.closeTag.start.row===B.row&&Te.closeTag.start.column===B.column?$e=Ae.end:$e=Ae.start))}$e=$e||Ae.start}$e=Ae&&Ae.cursor||$e,$e&&(k?Ae&&N?this.selection.setRange(Ae):Ae&&Ae.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo($e.row,$e.column):this.selection.moveTo($e.row,$e.column))}}},S.prototype.gotoLine=function(k,N,B){this.selection.clearSelection(),this.session.unfold({row:k-1,column:N||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(k-1,N||0),this.isRowFullyVisible(k-1)||this.scrollToLine(k-1,!0,B)},S.prototype.navigateTo=function(k,N){this.selection.moveTo(k,N)},S.prototype.navigateUp=function(k){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var N=this.selection.anchor.getPosition();return this.moveCursorToPosition(N)}this.selection.clearSelection(),this.selection.moveCursorBy(-k||-1,0)},S.prototype.navigateDown=function(k){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var N=this.selection.anchor.getPosition();return this.moveCursorToPosition(N)}this.selection.clearSelection(),this.selection.moveCursorBy(k||1,0)},S.prototype.navigateLeft=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorLeft();else{var N=this.getSelectionRange().start;this.moveCursorToPosition(N)}this.clearSelection()},S.prototype.navigateRight=function(k){if(this.selection.isEmpty())for(k=k||1;k--;)this.selection.moveCursorRight();else{var N=this.getSelectionRange().end;this.moveCursorToPosition(N)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(k,N){N&&this.$search.set(N);var B=this.$search.find(this.session),V=0;return B&&(this.$tryReplace(B,k)&&(V=1),this.selection.setSelectionRange(B),this.renderer.scrollSelectionIntoView(B.start,B.end)),V},S.prototype.replaceAll=function(k,N){N&&this.$search.set(N);var B=this.$search.findAll(this.session),V=0;if(!B.length)return V;var G=this.getSelectionRange();this.selection.moveTo(0,0);for(var Q=B.length-1;Q>=0;--Q)this.$tryReplace(B[Q],k)&&V++;return this.selection.setSelectionRange(G),V},S.prototype.$tryReplace=function(k,N){var B=this.session.getTextRange(k);return N=this.$search.replace(B,N),N!==null?(k.end=this.session.replace(k,N),k):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(k,N,B){N||(N={}),typeof k=="string"||k instanceof RegExp?N.needle=k:typeof k=="object"&&w.mixin(N,k);var V=this.selection.getRange();N.needle==null&&(k=this.session.getTextRange(V)||this.$search.$options.needle,k||(V=this.session.getWordRange(V.start.row,V.start.column),k=this.session.getTextRange(V)),this.$search.set({needle:k})),this.$search.set(N),N.start||this.$search.set({start:V});var G=this.$search.find(this.session);if(N.preventScroll)return G;if(G)return this.revealRange(G,B),G;N.backwards?V.start=V.end:V.end=V.start,this.selection.setRange(V)},S.prototype.findNext=function(k,N){this.find({skipCurrent:!0,backwards:!1},k,N)},S.prototype.findPrevious=function(k,N){this.find(k,{skipCurrent:!0,backwards:!0},N)},S.prototype.revealRange=function(k,N){this.session.unfold(k),this.selection.setSelectionRange(k);var B=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(k.start,k.end,.5),N!==!1&&this.renderer.animateScrolling(B)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(k){k.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(k){if(k){var N,B=this,V=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var G=this.$scrollAnchor;G.style.cssText="position:absolute",this.container.insertBefore(G,this.container.firstChild);var Q=this.on("changeSelection",function(){V=!0}),te=this.renderer.on("beforeRender",function(){V&&(N=B.renderer.container.getBoundingClientRect())}),he=this.renderer.on("afterRender",function(){if(V&&N&&(B.isFocused()||B.searchBox&&B.searchBox.isFocused())){var ne=B.renderer,ce=ne.$cursorLayer.$pixelPos,ue=ne.layerConfig,le=ce.top-ue.offset;ce.top>=0&&le+N.top<0?V=!0:ce.top<ue.height&&ce.top+N.top+ue.lineHeight>window.innerHeight?V=!1:V=null,V!=null&&(G.style.top=le+"px",G.style.left=ce.left+"px",G.style.height=ue.lineHeight+"px",G.scrollIntoView(V)),V=N=null}});this.setAutoScrollEditorIntoView=function(ne){ne||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Q),this.renderer.off("afterRender",he),this.renderer.off("beforeRender",te))}}},S.prototype.$resetCursorStyle=function(){var k=this.$cursorStyle||"ace",N=this.renderer.$cursorLayer;N&&(N.setSmoothBlinking(/smooth/.test(k)),N.isBlinking=!this.$readOnly&&k!="wide",C.setCssClass(N.element,"ace_slim-cursors",/slim/.test(k)))},S.prototype.prompt=function(k,N,B){var V=this;M.loadModule("ace/ext/prompt",function(G){G.prompt(V,k,N,B)})},S}();P.$uid=0,P.prototype.curOp=null,P.prototype.prevOp={},P.prototype.$mergeableCommands=["backspace","del","insertstring"],P.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],w.implement(P.prototype,m),M.defineOptions(P.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){var k=this;this.textInput.setReadOnly(S),this.$resetCursorStyle(),this.$readOnlyCallback||(this.$readOnlyCallback=function(B){var V=!1;if(B&&B.type=="keydown"){if(V=B&&B.key&&B.key.length==1&&!B.ctrlKey&&!B.metaKey,!V)return}else B&&B.type!=="exec"&&(V=!0);if(V){k.hoverTooltip||(k.hoverTooltip=new U);var G=C.createElement("div");G.textContent=R("editor.tooltip.disable-editing","Editing is disabled"),k.hoverTooltip.isOpen||k.hoverTooltip.showForRange(k,k.getSelectionRange(),G)}else k.hoverTooltip&&k.hoverTooltip.isOpen&&k.hoverTooltip.hide()});var N=this.textInput.getElement();S?(L.addListener(N,"keydown",this.$readOnlyCallback,this),this.commands.on("exec",this.$readOnlyCallback),this.commands.on("commandUnavailable",this.$readOnlyCallback)):(L.removeListener(N,"keydown",this.$readOnlyCallback),this.commands.off("exec",this.$readOnlyCallback),this.commands.off("commandUnavailable",this.$readOnlyCallback),this.hoverTooltip&&(this.hoverTooltip.destroy(),this.hoverTooltip=null))},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?O.attach(this):O.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?O.attach(this):O.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var k=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(k&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),C.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!k&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),C.addCssClass(this.container,"ace_hasPlaceholder");var N=C.createElement("div");N.className="ace_placeholder",N.textContent=this.$placeholder||"",this.renderer.placeholderNode=N,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!k&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var k={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(V){V.blur(),V.renderer.scroller.focus()},readOnly:!0},N=function(V){if(V.target==this.renderer.scroller&&V.keyCode===F.enter){V.preventDefault();var G=this.getCursorPosition().row;this.isRowVisible(G)||this.scrollToLine(G,!0,!0),this.focus()}},B;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",R("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",R("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",N.bind(this)),this.commands.addCommand(k),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",R("editor.gutter.aria-roledescription","editor gutter")),this.renderer.$gutter.setAttribute("aria-label",R("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),B||(B=new v(this)),B.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",N.bind(this)),this.commands.removeCommand(k),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),B&&B.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var O={getText:function(S,k){return(Math.abs(S.selection.lead.row-k)||k+1+(k<9?"·":""))+""},getWidth:function(S,k,N){return Math.max(k.toString().length,(N.lastRow+1).toString().length,2)*N.characterWidth},update:function(S,k){k.renderer.$loop.schedule(k.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};l.Editor=P}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,l,T){var b=e("../lib/dom"),w=function(){function C(p,g){this.element=p,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return C.prototype.moveContainer=function(p){b.translate(this.element,0,-(p.firstRowScreen*p.lineHeight%this.canvasHeight)-p.offset*this.$offsetCoefficient)},C.prototype.pageChanged=function(p,g){return Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},C.prototype.computeLineTop=function(p,g,i){var s=g.firstRowScreen*g.lineHeight,o=Math.floor(s/this.canvasHeight),r=i.documentToScreenRow(p,0)*g.lineHeight;return r-o*this.canvasHeight},C.prototype.computeLineHeight=function(p,g,i){return g.lineHeight*i.getRowLineCount(p)},C.prototype.getLength=function(){return this.cells.length},C.prototype.get=function(p){return this.cells[p]},C.prototype.shift=function(){this.$cacheCell(this.cells.shift())},C.prototype.pop=function(){this.$cacheCell(this.cells.pop())},C.prototype.push=function(p){if(Array.isArray(p)){this.cells.push.apply(this.cells,p);for(var g=b.createFragment(this.element),i=0;i<p.length;i++)g.appendChild(p[i].element);this.element.appendChild(g)}else this.cells.push(p),this.element.appendChild(p.element)},C.prototype.unshift=function(p){if(Array.isArray(p)){this.cells.unshift.apply(this.cells,p);for(var g=b.createFragment(this.element),i=0;i<p.length;i++)g.appendChild(p[i].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(p),this.element.insertAdjacentElement("afterbegin",p.element)},C.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},C.prototype.$cacheCell=function(p){p&&(p.element.remove(),this.cellCache.push(p))},C.prototype.createCell=function(p,g,i,s){var o=this.cellCache.pop();if(!o){var r=b.createElement("div");s&&s(r),this.element.appendChild(r),o={element:r,text:"",row:p}}return o.row=p,o},C}();l.Lines=w}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,l,T){var b=e("../lib/dom"),w=e("../lib/oop"),C=e("../lib/lang"),p=e("../lib/event_emitter").EventEmitter,g=e("./lines").Lines,i=e("../config").nls,s=function(){function r(n){this.element=b.createElement("div"),this.element.className="ace_layer ace_gutter-layer",n.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return r.prototype.setSession=function(n){this.session&&this.session.off("change",this.$updateAnnotations),this.session=n,n&&n.on("change",this.$updateAnnotations)},r.prototype.addGutterDecoration=function(n,a){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(n,a)},r.prototype.removeGutterDecoration=function(n,a){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(n,a)},r.prototype.setAnnotations=function(n){this.$annotations=[];for(var a=0;a<n.length;a++){var h=n[a],m=h.row,y=this.$annotations[m];y||(y=this.$annotations[m]={text:[],type:[],displayText:[]});var E=h.text,M=h.text,_=h.type;E=E?C.escapeHTML(E):h.html||"",M=M||h.html||"",y.text.indexOf(E)===-1&&(y.text.push(E),y.type.push(_),y.displayText.push(M));var v=h.className;v?y.className=v:_==="error"?y.className=" ace_error":_==="security"&&!/\bace_error\b/.test(y.className)?y.className=" ace_security":_==="warning"&&!/\bace_(error|security)\b/.test(y.className)?y.className=" ace_warning":_==="info"&&!y.className?y.className=" ace_info":_==="hint"&&!y.className&&(y.className=" ace_hint")}},r.prototype.$updateAnnotations=function(n){if(this.$annotations.length){var a=n.start.row,h=n.end.row-a;if(h!==0)if(n.action=="remove")this.$annotations.splice(a,h+1,null);else{var m=new Array(h+1);m.unshift(a,1),this.$annotations.splice.apply(this.$annotations,m)}}},r.prototype.update=function(n){this.config=n;var a=this.session,h=n.firstRow,m=Math.min(n.lastRow+n.gutterOffset,a.getLength()-1);this.oldLastRow=m,this.config=n,this.$lines.moveContainer(n),this.$updateCursorRow();for(var y=a.getNextFoldLine(h),E=y?y.start.row:1/0,M=null,_=-1,v=h;;){if(v>E&&(v=y.end.row+1,y=a.getNextFoldLine(v,y),E=y?y.start.row:1/0),v>m){for(;this.$lines.getLength()>_+1;)this.$lines.pop();break}M=this.$lines.get(++_),M?M.row=v:(M=this.$lines.createCell(v,n,this.session,o),this.$lines.push(M)),this.$renderCell(M,n,y,v),v++}this._signal("afterRender"),this.$updateGutterWidth(n)},r.prototype.$updateGutterWidth=function(n){var a=this.session,h=a.gutterRenderer||this.$renderer,m=a.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||a.$useWrapMode)&&(y=a.getLength()+m-1);var E=h?h.getWidth(a,y,n):y.toString().length*n.characterWidth,M=this.$padding||this.$computePadding();E+=M.left+M.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},r.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var n=this.session.selection.getCursor();this.$cursorRow!==n.row&&(this.$cursorRow=n.row)}},r.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var n=this.session.selection.cursor.row;if(this.$cursorRow=n,!(this.$cursorCell&&this.$cursorCell.row==n)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var a=this.$lines.cells;this.$cursorCell=null;for(var h=0;h<a.length;h++){var m=a[h];if(m.row>=this.$cursorRow){if(m.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(h>0&&y&&y.start.row==a[h-1].row)m=a[h-1];else break}m.element.className="ace_gutter-active-line "+m.element.className,this.$cursorCell=m;break}}}}},r.prototype.scrollLines=function(n){var a=this.config;if(this.config=n,this.$updateCursorRow(),this.$lines.pageChanged(a,n))return this.update(n);this.$lines.moveContainer(n);var h=Math.min(n.lastRow+n.gutterOffset,this.session.getLength()-1),m=this.oldLastRow;if(this.oldLastRow=h,!a||m<n.firstRow)return this.update(n);if(h<a.firstRow)return this.update(n);if(a.firstRow<n.firstRow)for(var y=this.session.getFoldedRowCount(a.firstRow,n.firstRow-1);y>0;y--)this.$lines.shift();if(m>h)for(var y=this.session.getFoldedRowCount(h+1,m);y>0;y--)this.$lines.pop();n.firstRow<a.firstRow&&this.$lines.unshift(this.$renderLines(n,n.firstRow,a.firstRow-1)),h>m&&this.$lines.push(this.$renderLines(n,m+1,h)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(n)},r.prototype.$renderLines=function(n,a,h){for(var m=[],y=a,E=this.session.getNextFoldLine(y),M=E?E.start.row:1/0;y>M&&(y=E.end.row+1,E=this.session.getNextFoldLine(y,E),M=E?E.start.row:1/0),!(y>h);){var _=this.$lines.createCell(y,n,this.session,o);this.$renderCell(_,n,E,y),m.push(_),y++}return m},r.prototype.$renderCell=function(n,a,h,m){var y=n.element,E=this.session,M=y.childNodes[0],_=y.childNodes[1],v=y.childNodes[2],R=y.childNodes[3],I=v.firstChild,F=E.$firstLineNumber,L=E.$breakpoints,U=E.$decorations,P=E.gutterRenderer||this.$renderer,O=this.$showFoldWidgets&&E.foldWidgets,S=h?h.start.row:Number.MAX_VALUE,k=a.lineHeight+"px",N=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",B=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",V=(P?P.getText(E,m):m+F).toString();if(this.$highlightGutterLine&&(m==this.$cursorRow||h&&m<this.$cursorRow&&m>=S&&this.$cursorRow<=h.end.row)&&(N+="ace_gutter-active-line ",this.$cursorCell!=n&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=n)),L[m]&&(N+=L[m]),U[m]&&(N+=U[m]),this.$annotations[m]&&m!==S&&(N+=this.$annotations[m].className),O){var G=O[m];G==null&&(G=O[m]=E.getFoldWidget(m))}if(G){var Q="ace_fold-widget ace_"+G,te=G=="start"&&m==S&&m<h.end.row;if(te){Q+=" ace_closed";for(var he="",ne=!1,ce=m+1;ce<=h.end.row;ce++)if(this.$annotations[ce]){if(this.$annotations[ce].className===" ace_error"){ne=!0,he=" ace_error_fold";break}this.$annotations[ce].className===" ace_security"?(ne=!0,he=" ace_security_fold"):this.$annotations[ce].className===" ace_warning"&&he!==" ace_security_fold"&&(ne=!0,he=" ace_warning_fold")}N+=he}else Q+=" ace_open";_.className!=Q&&(_.className=Q),b.setStyle(_.style,"height",k),b.setStyle(_.style,"display","inline-block"),_.setAttribute("role","button"),_.setAttribute("tabindex","-1");var ue=E.getFoldWidgetRange(m);ue?_.setAttribute("aria-label",i("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[ue.start.row+1,ue.end.row+1])):h?_.setAttribute("aria-label",i("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[h.start.row+1,h.end.row+1])):_.setAttribute("aria-label",i("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[m+1])),te?(_.setAttribute("aria-expanded","false"),_.setAttribute("title",i("gutter.code-folding.closed.title","Unfold code"))):(_.setAttribute("aria-expanded","true"),_.setAttribute("title",i("gutter.code-folding.open.title","Fold code")))}else _&&(b.setStyle(_.style,"display","none"),_.setAttribute("tabindex","0"),_.removeAttribute("role"),_.removeAttribute("aria-label"));var le=this.session.$gutterCustomWidgets[m];if(le?this.$addCustomWidget(m,le,n):R&&this.$removeCustomWidget(m,n),ne&&this.$showFoldedAnnotations){v.className="ace_gutter_annotation",I.className=B,I.className+=he,b.setStyle(I.style,"height",k),b.setStyle(v.style,"display","block"),b.setStyle(v.style,"height",k);var me;switch(he){case" ace_error_fold":me=i("gutter.annotation.aria-label.error","Error, read annotations row $0",[V]);break;case" ace_security_fold":me=i("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[V]);break;case" ace_warning_fold":me=i("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[V]);break}v.setAttribute("aria-label",me),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else if(this.$annotations[m]){v.className="ace_gutter_annotation",I.className=B,this.$useSvgGutterIcons?I.className+=this.$annotations[m].className:y.classList.add(this.$annotations[m].className.replace(" ","")),b.setStyle(I.style,"height",k),b.setStyle(v.style,"display","block"),b.setStyle(v.style,"height",k);var me;switch(this.$annotations[m].className){case" ace_error":me=i("gutter.annotation.aria-label.error","Error, read annotations row $0",[V]);break;case" ace_security":me=i("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[V]);break;case" ace_warning":me=i("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[V]);break;case" ace_info":me=i("gutter.annotation.aria-label.info","Info, read annotations row $0",[V]);break;case" ace_hint":me=i("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[V]);break}v.setAttribute("aria-label",me),v.setAttribute("tabindex","-1"),v.setAttribute("role","button")}else b.setStyle(v.style,"display","none"),v.removeAttribute("aria-label"),v.removeAttribute("role"),v.setAttribute("tabindex","0");return V!==M.data&&(M.data=V),y.className!=N&&(y.className=N),b.setStyle(n.element.style,"height",this.$lines.computeLineHeight(m,a,E)+"px"),b.setStyle(n.element.style,"top",this.$lines.computeLineTop(m,a,E)+"px"),n.text=V,v.style.display==="none"&&_.style.display==="none"&&!le?n.element.setAttribute("aria-hidden",!0):n.element.setAttribute("aria-hidden",!1),n},r.prototype.setHighlightGutterLine=function(n){this.$highlightGutterLine=n},r.prototype.setShowLineNumbers=function(n){this.$renderer=!n&&{getWidth:function(){return 0},getText:function(){return""}}},r.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},r.prototype.setShowFoldWidgets=function(n){n?b.addCssClass(this.element,"ace_folding-enabled"):b.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=n,this.$padding=null},r.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},r.prototype.$hideFoldWidget=function(n,a){var h=a||this.$getGutterCell(n);if(h&&h.element){var m=h.element.childNodes[1];m&&b.setStyle(m.style,"display","none")}},r.prototype.$showFoldWidget=function(n,a){var h=a||this.$getGutterCell(n);if(h&&h.element){var m=h.element.childNodes[1];m&&this.session.foldWidgets&&this.session.foldWidgets[h.row]&&b.setStyle(m.style,"display","inline-block")}},r.prototype.$getGutterCell=function(n){var a=this.$lines.cells,h=this.session.documentToScreenRow(n,0);return a[n-this.config.firstRowScreen-(n-h)]},r.prototype.$addCustomWidget=function(n,a,h){var m=a.className,y=a.label,E=a.title,M=a.callbacks;this.session.$gutterCustomWidgets[n]={className:m,label:y,title:E,callbacks:M},this.$hideFoldWidget(n,h);var _=h||this.$getGutterCell(n);if(_&&_.element){var v=_.element.querySelector(".ace_custom-widget");v&&v.remove(),v=b.createElement("span"),v.className="ace_custom-widget ".concat(m),v.setAttribute("tabindex","-1"),v.setAttribute("role","button"),v.setAttribute("aria-label",y),v.setAttribute("title",E),b.setStyle(v.style,"display","inline-block"),b.setStyle(v.style,"height","inherit"),M&&M.onClick&&v.addEventListener("click",function(R){M.onClick(R,n),R.stopPropagation()}),_.element.appendChild(v)}},r.prototype.$removeCustomWidget=function(n,a){delete this.session.$gutterCustomWidgets[n],this.$showFoldWidget(n,a);var h=a||this.$getGutterCell(n);if(h&&h.element){var m=h.element.querySelector(".ace_custom-widget");m&&h.element.removeChild(m)}},r.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var n=b.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(n.borderLeftWidth)||0)+(parseInt(n.paddingLeft)||0)+1,this.$padding.right=(parseInt(n.borderRightWidth)||0)+(parseInt(n.paddingRight)||0),this.$padding},r.prototype.getRegion=function(n){var a=this.$padding||this.$computePadding(),h=this.element.getBoundingClientRect();if(n.x<a.left+h.left)return"markers";if(this.$showFoldWidgets&&n.x>h.right-a.right)return"foldWidgets"},r}();s.prototype.$fixedWidth=!1,s.prototype.$highlightGutterLine=!0,s.prototype.$renderer="",s.prototype.$showLineNumbers=!0,s.prototype.$showFoldWidgets=!0,w.implement(s.prototype,p);function o(r){var n=document.createTextNode("");r.appendChild(n);var a=b.createElement("span");r.appendChild(a);var h=b.createElement("span");r.appendChild(h);var m=b.createElement("span");return h.appendChild(m),r}l.Gutter=s}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,l,T){var b=e("../range").Range,w=e("../lib/dom"),C=function(){function g(i){this.element=w.createElement("div"),this.element.className="ace_layer ace_marker-layer",i.appendChild(this.element)}return g.prototype.setPadding=function(i){this.$padding=i},g.prototype.setSession=function(i){this.session=i},g.prototype.setMarkers=function(i){this.markers=i},g.prototype.elt=function(i,s){var o=this.i!=-1&&this.element.childNodes[this.i];o?this.i++:(o=document.createElement("div"),this.element.appendChild(o),this.i=-1),o.style.cssText=s,o.className=i},g.prototype.update=function(i){if(i){this.config=i,this.i=0;var s;for(var o in this.markers){var r=this.markers[o];if(!r.range){r.update(s,this,this.session,i);continue}var n=r.range.clipRows(i.firstRow,i.lastRow);if(!n.isEmpty())if(n=n.toScreenRange(this.session),r.renderer){var a=this.$getTop(n.start.row,i),h=this.$padding+n.start.column*i.characterWidth;r.renderer(s,n,h,a,i)}else r.type=="fullLine"?this.drawFullLineMarker(s,n,r.clazz,i):r.type=="screenLine"?this.drawScreenLineMarker(s,n,r.clazz,i):n.isMultiLine()?r.type=="text"?this.drawTextMarker(s,n,r.clazz,i):this.drawMultiLineMarker(s,n,r.clazz,i):this.drawSingleLineMarker(s,n,r.clazz+" ace_start ace_br15",i)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(i,s){return(i-s.firstRowScreen)*s.lineHeight},g.prototype.drawTextMarker=function(i,s,o,r,n){for(var a=this.session,h=s.start.row,m=s.end.row,y=h,E=0,M=0,_=a.getScreenLastRowColumn(y),v=new b(y,s.start.column,y,M);y<=m;y++)v.start.row=v.end.row=y,v.start.column=y==h?s.start.column:a.getRowWrapIndent(y),v.end.column=_,E=M,M=_,_=y+1<m?a.getScreenLastRowColumn(y+1):y==m?0:s.end.column,this.drawSingleLineMarker(i,v,o+(y==h?" ace_start":"")+" ace_br"+p(y==h||y==h+1&&s.start.column,E<M,M>_,y==m),r,y==m?0:1,n)},g.prototype.drawMultiLineMarker=function(i,s,o,r,n){var a=this.$padding,h=r.lineHeight,m=this.$getTop(s.start.row,r),y=a+s.start.column*r.characterWidth;if(n=n||"",this.session.$bidiHandler.isBidiRow(s.start.row)){var E=s.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(i,E,o+" ace_br1 ace_start",r,null,n)}else this.elt(o+" ace_br1 ace_start","height:"+h+"px;right:"+a+"px;top:"+m+"px;left:"+y+"px;"+(n||""));if(this.session.$bidiHandler.isBidiRow(s.end.row)){var E=s.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(i,E,o+" ace_br12",r,null,n)}else{m=this.$getTop(s.end.row,r);var M=s.end.column*r.characterWidth;this.elt(o+" ace_br12","height:"+h+"px;width:"+M+"px;top:"+m+"px;left:"+a+"px;"+(n||""))}if(h=(s.end.row-s.start.row-1)*r.lineHeight,!(h<=0)){m=this.$getTop(s.start.row+1,r);var _=(s.start.column?1:0)|(s.end.column?0:8);this.elt(o+(_?" ace_br"+_:""),"height:"+h+"px;right:"+a+"px;top:"+m+"px;left:"+a+"px;"+(n||""))}},g.prototype.drawSingleLineMarker=function(i,s,o,r,n,a){if(this.session.$bidiHandler.isBidiRow(s.start.row))return this.drawBidiSingleLineMarker(i,s,o,r,n,a);var h=r.lineHeight,m=(s.end.column+(n||0)-s.start.column)*r.characterWidth,y=this.$getTop(s.start.row,r),E=this.$padding+s.start.column*r.characterWidth;this.elt(o,"height:"+h+"px;width:"+m+"px;top:"+y+"px;left:"+E+"px;"+(a||""))},g.prototype.drawBidiSingleLineMarker=function(i,s,o,r,n,a){var h=r.lineHeight,m=this.$getTop(s.start.row,r),y=this.$padding,E=this.session.$bidiHandler.getSelections(s.start.column,s.end.column);E.forEach(function(M){this.elt(o,"height:"+h+"px;width:"+(M.width+(n||0))+"px;top:"+m+"px;left:"+(y+M.left)+"px;"+(a||""))},this)},g.prototype.drawFullLineMarker=function(i,s,o,r,n){var a=this.$getTop(s.start.row,r),h=r.lineHeight;s.start.row!=s.end.row&&(h+=this.$getTop(s.end.row,r)-a),this.elt(o,"height:"+h+"px;top:"+a+"px;left:0;right:0;"+(n||""))},g.prototype.drawScreenLineMarker=function(i,s,o,r,n){var a=this.$getTop(s.start.row,r),h=r.lineHeight;this.elt(o,"height:"+h+"px;top:"+a+"px;left:0;right:0;"+(n||""))},g}();C.prototype.$padding=0;function p(g,i,s,o){return(g?1:0)|(i?2:0)|(s?4:0)|(o?8:0)}l.Marker=C}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,l,T){var b=new Set(["text","rparen","lparen"]);l.isTextToken=function(w){return b.has(w)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/dom"),C=e("../lib/lang"),p=e("./lines").Lines,g=e("../lib/event_emitter").EventEmitter,i=e("../config").nls,s=e("./text_util").isTextToken,o=function(){function r(n){this.dom=w,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",n.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new p(this.element)}return r.prototype.$updateEolChar=function(){var n=this.session.doc,a=n.getNewLineCharacter()==`
|
|
216
|
-
`&&n.getNewLineMode()!="windows",h=a?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=h)return this.EOL_CHAR=h,!0},r.prototype.setPadding=function(n){this.$padding=n,this.element.style.margin="0 "+n+"px"},r.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},r.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},r.prototype.$setFontMetrics=function(n){this.$fontMetrics=n,this.$fontMetrics.on("changeCharacterSize",(function(a){this._signal("changeCharacterSize",a)}).bind(this)),this.$pollSizeChanges()},r.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},r.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},r.prototype.setSession=function(n){this.session=n,n&&this.$computeTabString()},r.prototype.setShowInvisibles=function(n){return this.showInvisibles==n?!1:(this.showInvisibles=n,typeof n=="string"?(this.showSpaces=/tab/i.test(n),this.showTabs=/space/i.test(n),this.showEOL=/eol/i.test(n)):this.showSpaces=this.showTabs=this.showEOL=n,this.$computeTabString(),!0)},r.prototype.setDisplayIndentGuides=function(n){return this.displayIndentGuides==n?!1:(this.displayIndentGuides=n,this.$computeTabString(),!0)},r.prototype.setHighlightIndentGuides=function(n){return this.$highlightIndentGuides===n?!1:(this.$highlightIndentGuides=n,n)},r.prototype.$computeTabString=function(){var n=this.session.getTabSize();this.tabSize=n;for(var a=this.$tabStrings=[0],h=1;h<n+1;h++)if(this.showTabs){var m=this.dom.createElement("span");m.className="ace_invisible ace_invisible_tab",m.textContent=C.stringRepeat(this.TAB_CHAR,h),a.push(m)}else a.push(this.dom.createTextNode(C.stringRepeat(" ",h),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var y="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",M=this.showSpaces?C.stringRepeat(this.SPACE_CHAR,this.tabSize):C.stringRepeat(" ",this.tabSize),_=this.showTabs?" ace_invisible ace_invisible_tab":"",v=this.showTabs?C.stringRepeat(this.TAB_CHAR,this.tabSize):M,m=this.dom.createElement("span");m.className=y+E,m.textContent=M,this.$tabStrings[" "]=m;var m=this.dom.createElement("span");m.className=y+_,m.textContent=v,this.$tabStrings[" "]=m}},r.prototype.updateLines=function(n,a,h){if(this.config.lastRow!=n.lastRow||this.config.firstRow!=n.firstRow)return this.update(n);this.config=n;for(var m=Math.max(a,n.firstRow),y=Math.min(h,n.lastRow),E=this.element.childNodes,M=0,v=n.firstRow;v<m;v++){var R=this.session.getFoldLine(v);if(R)if(R.containsRow(m)){m=R.start.row;break}else v=R.end.row;M++}for(var _=!1,v=m,R=this.session.getNextFoldLine(v),I=R?R.start.row:1/0;v>I&&(v=R.end.row+1,R=this.session.getNextFoldLine(v,R),I=R?R.start.row:1/0),!(v>y);){var F=E[M++];if(F){this.dom.removeChildren(F),this.$renderLine(F,v,v==I?R:!1),_&&(F.style.top=this.$lines.computeLineTop(v,n,this.session)+"px");var L=n.lineHeight*this.session.getRowLength(v)+"px";F.style.height!=L&&(_=!0,F.style.height=L)}v++}if(_)for(;M<this.$lines.cells.length;){var U=this.$lines.cells[M++];U.element.style.top=this.$lines.computeLineTop(U.row,n,this.session)+"px"}},r.prototype.scrollLines=function(n){var a=this.config;if(this.config=n,this.$lines.pageChanged(a,n))return this.update(n);this.$lines.moveContainer(n);var h=n.lastRow,m=a?a.lastRow:-1;if(!a||m<n.firstRow)return this.update(n);if(h<a.firstRow)return this.update(n);if(!a||a.lastRow<n.firstRow)return this.update(n);if(n.lastRow<a.firstRow)return this.update(n);if(a.firstRow<n.firstRow)for(var y=this.session.getFoldedRowCount(a.firstRow,n.firstRow-1);y>0;y--)this.$lines.shift();if(a.lastRow>n.lastRow)for(var y=this.session.getFoldedRowCount(n.lastRow+1,a.lastRow);y>0;y--)this.$lines.pop();n.firstRow<a.firstRow&&this.$lines.unshift(this.$renderLinesFragment(n,n.firstRow,a.firstRow-1)),n.lastRow>a.lastRow&&this.$lines.push(this.$renderLinesFragment(n,a.lastRow+1,n.lastRow)),this.$highlightIndentGuide()},r.prototype.$renderLinesFragment=function(n,a,h){for(var m=[],y=a,E=this.session.getNextFoldLine(y),M=E?E.start.row:1/0;y>M&&(y=E.end.row+1,E=this.session.getNextFoldLine(y,E),M=E?E.start.row:1/0),!(y>h);){var _=this.$lines.createCell(y,n,this.session),v=_.element;this.dom.removeChildren(v),w.setStyle(v.style,"height",this.$lines.computeLineHeight(y,n,this.session)+"px"),w.setStyle(v.style,"top",this.$lines.computeLineTop(y,n,this.session)+"px"),this.$renderLine(v,y,y==M?E:!1),this.$useLineGroups()?v.className="ace_line_group":v.className="ace_line",m.push(_),y++}return m},r.prototype.update=function(n){this.$lines.moveContainer(n),this.config=n;for(var a=n.firstRow,h=n.lastRow,m=this.$lines;m.getLength();)m.pop();m.push(this.$renderLinesFragment(n,a,h))},r.prototype.$renderToken=function(n,a,h,m){for(var y=this,E=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,M=this.dom.createFragment(this.element),_,v=0;_=E.exec(m);){var R=_[1],I=_[2],F=_[3],L=_[4],U=_[5];if(!(!y.showSpaces&&I)){var P=v!=_.index?m.slice(v,_.index):"";if(v=_.index+_[0].length,P&&M.appendChild(this.dom.createTextNode(P,this.element)),R){var O=y.session.getScreenTabSize(a+_.index);M.appendChild(y.$tabStrings[O].cloneNode(!0)),a+=O-1}else if(I)if(y.showSpaces){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space",S.textContent=C.stringRepeat(y.SPACE_CHAR,I.length),M.appendChild(S)}else M.appendChild(this.dom.createTextNode(I,this.element));else if(F){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space ace_invalid",S.textContent=C.stringRepeat(y.SPACE_CHAR,F.length),M.appendChild(S)}else if(L){a+=1;var S=this.dom.createElement("span");S.style.width=y.config.characterWidth*2+"px",S.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",S.textContent=y.showSpaces?y.SPACE_CHAR:L,M.appendChild(S)}else if(U){a+=1;var S=this.dom.createElement("span");S.style.width=y.config.characterWidth*2+"px",S.className="ace_cjk",S.textContent=U,M.appendChild(S)}}}if(M.appendChild(this.dom.createTextNode(v?m.slice(v):m,this.element)),s(h.type))n.appendChild(M);else{var k="ace_"+h.type.replace(/\./g," ace_"),S=this.dom.createElement("span");h.type=="fold"&&(S.style.width=h.value.length*this.config.characterWidth+"px",S.setAttribute("title",i("inline-fold.closed.title","Unfold code"))),S.className=k,S.appendChild(M),n.appendChild(S)}return a+m.length},r.prototype.renderIndentGuide=function(n,a,h){var m=a.search(this.$indentGuideRe);if(m<=0||m>=h)return a;if(a[0]==" "){m-=m%this.tabSize;for(var y=m/this.tabSize,E=0;E<y;E++)n.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),a.substr(m)}else if(a[0]==" "){for(var E=0;E<m;E++)n.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),a.substr(m)}return this.$highlightIndentGuide(),a},r.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var n=this.session.doc.$lines;if(n){var a=this.session.selection.getCursor(),h=/^\s*/.exec(this.session.doc.getLine(a.row))[0].length,m=Math.floor(h/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:m,start:a.row};var y=this.session.$bracketHighlight;if(y){for(var E=this.session.$bracketHighlight.ranges,M=0;M<E.length;M++)if(a.row!==E[M].start.row){this.$highlightIndentGuideMarker.end=E[M].start.row+1,a.row>E[M].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&n[a.row]!==""&&a.column===n[a.row].length){this.$highlightIndentGuideMarker.dir=1;for(var M=a.row+1;M<n.length;M++){var _=n[M],v=/^\s*/.exec(_)[0].length;if(_!==""&&(this.$highlightIndentGuideMarker.end=M,v<=h))break}}this.$renderHighlightIndentGuide()}}},r.prototype.$clearActiveIndentGuide=function(){for(var n=this.element.querySelectorAll(".ace_indent-guide-active"),a=0;a<n.length;a++)n[a].classList.remove("ace_indent-guide-active")},r.prototype.$setIndentGuideActive=function(n,a){var h=this.session.doc.getLine(n.row);if(h!==""){var m=n.element;if(n.element.classList&&n.element.classList.contains("ace_line_group"))if(n.element.childNodes.length>0)m=n.element.childNodes[0];else return;var y=m.childNodes;if(y){var E=y[a-1];E&&E.classList&&E.classList.contains("ace_indent-guide")&&E.classList.add("ace_indent-guide-active")}}},r.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var n=this.$lines.cells;this.$clearActiveIndentGuide();var a=this.$highlightIndentGuideMarker.indentLevel;if(a!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var h=0;h<n.length;h++){var m=n[h];if(this.$highlightIndentGuideMarker.end&&m.row>=this.$highlightIndentGuideMarker.start+1){if(m.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,a)}}else for(var h=n.length-1;h>=0;h--){var m=n[h];if(this.$highlightIndentGuideMarker.end&&m.row<this.$highlightIndentGuideMarker.start){if(m.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(m,a)}}}},r.prototype.$createLineElement=function(n){var a=this.dom.createElement("div");return a.className="ace_line",a.style.height=this.config.lineHeight+"px",a},r.prototype.$renderWrappedLine=function(n,a,h){var m=0,y=0,E=h[0],M=0,_=this.$createLineElement();n.appendChild(_);for(var v=0;v<a.length;v++){var R=a[v],I=R.value;if(v==0&&this.displayIndentGuides){if(m=I.length,I=this.renderIndentGuide(_,I,E),!I)continue;m-=I.length}if(m+I.length<E)M=this.$renderToken(_,M,R,I),m+=I.length;else{for(;m+I.length>=E;)M=this.$renderToken(_,M,R,I.substring(0,E-m)),I=I.substring(E-m),m=E,_=this.$createLineElement(),n.appendChild(_),_.appendChild(this.dom.createTextNode(C.stringRepeat(" ",h.indent),this.element)),y++,M=0,E=h[y]||Number.MAX_VALUE;I.length!=0&&(m+=I.length,M=this.$renderToken(_,M,R,I))}}h[h.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(_,M,null,"",!0)},r.prototype.$renderSimpleLine=function(n,a){for(var h=0,m=0;m<a.length;m++){var y=a[m],E=y.value;if(!(m==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(n,E),!E))){if(h+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(n,h,y,E);h=this.$renderToken(n,h,y,E)}}},r.prototype.$renderOverflowMessage=function(n,a,h,m,y){h&&this.$renderToken(n,a,h,m.slice(0,this.MAX_LINE_LENGTH-a));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=y?"<hide>":"<click to see more...>",n.appendChild(E)},r.prototype.$renderLine=function(n,a,h){if(!h&&h!=!1&&(h=this.session.getFoldLine(a)),h)var m=this.$getFoldLineTokens(a,h);else var m=this.session.getTokens(a);var y=n;if(m.length){var E=this.session.getRowSplitData(a);if(E&&E.length){this.$renderWrappedLine(n,m,E);var y=n.lastChild}else{var y=n;this.$useLineGroups()&&(y=this.$createLineElement(),n.appendChild(y)),this.$renderSimpleLine(y,m)}}else this.$useLineGroups()&&(y=this.$createLineElement(),n.appendChild(y));if(this.showEOL&&y){h&&(a=h.end.row);var M=this.dom.createElement("span");M.className="ace_invisible ace_invisible_eol",M.textContent=a==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(M)}},r.prototype.$getFoldLineTokens=function(n,a){var h=this.session,m=[];function y(M,_,v){for(var R=0,I=0;I+M[R].value.length<_;)if(I+=M[R].value.length,R++,R==M.length)return;if(I!=_){var F=M[R].value.substring(_-I);F.length>v-_&&(F=F.substring(0,v-_)),m.push({type:M[R].type,value:F}),I=_+F.length,R+=1}for(;I<v&&R<M.length;){var F=M[R].value;F.length+I>v?m.push({type:M[R].type,value:F.substring(0,v-I)}):m.push(M[R]),I+=F.length,R+=1}}var E=h.getTokens(n);return a.walk(function(M,_,v,R,I){M!=null?m.push({type:"fold",value:M}):(I&&(E=h.getTokens(_)),E.length&&y(E,R,v))},a.end.row,this.session.getLine(a.end.row).length),m},r.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},r}();o.prototype.EOF_CHAR="¶",o.prototype.EOL_CHAR_LF="¬",o.prototype.EOL_CHAR_CRLF="¤",o.prototype.EOL_CHAR=o.prototype.EOL_CHAR_LF,o.prototype.TAB_CHAR="—",o.prototype.SPACE_CHAR="·",o.prototype.$padding=0,o.prototype.MAX_LINE_LENGTH=1e4,o.prototype.showInvisibles=!1,o.prototype.showSpaces=!1,o.prototype.showTabs=!1,o.prototype.showEOL=!1,o.prototype.displayIndentGuides=!0,o.prototype.$highlightIndentGuides=!0,o.prototype.$tabStrings=[],o.prototype.destroy={},o.prototype.onChangeTabSize=o.prototype.$computeTabString,b.implement(o.prototype,g),l.Text=o}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,l,T){var b=e("../lib/dom"),w=function(){function C(p){this.element=b.createElement("div"),this.element.className="ace_layer ace_cursor-layer",p.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),b.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return C.prototype.$updateOpacity=function(p){for(var g=this.cursors,i=g.length;i--;)b.setStyle(g[i].style,"opacity",p?"":"0")},C.prototype.$startCssAnimation=function(){for(var p=this.cursors,g=p.length;g--;)p[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&b.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},C.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,b.removeCssClass(this.element,"ace_animate-blinking")},C.prototype.setPadding=function(p){this.$padding=p},C.prototype.setSession=function(p){this.session=p},C.prototype.setBlinking=function(p){p!=this.isBlinking&&(this.isBlinking=p,this.restartTimer())},C.prototype.setBlinkInterval=function(p){p!=this.blinkInterval&&(this.blinkInterval=p,this.restartTimer())},C.prototype.setSmoothBlinking=function(p){p!=this.smoothBlinking&&(this.smoothBlinking=p,b.setCssClass(this.element,"ace_smooth-blinking",p),this.$updateCursors(!0),this.restartTimer())},C.prototype.addCursor=function(){var p=b.createElement("div");return p.className="ace_cursor",this.element.appendChild(p),this.cursors.push(p),p},C.prototype.removeCursor=function(){if(this.cursors.length>1){var p=this.cursors.pop();return p.parentNode.removeChild(p),p}},C.prototype.hideCursor=function(){this.isVisible=!1,b.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},C.prototype.showCursor=function(){this.isVisible=!0,b.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},C.prototype.restartTimer=function(){var p=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,b.removeCssClass(this.element,"ace_smooth-blinking")),p(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&b.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),b.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){p(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){p(!0),g()},this.blinkInterval),g()}},C.prototype.getPixelPosition=function(p,g){if(!this.config||!this.session)return{left:0,top:0};p||(p=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(p),s=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,p.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),o=(i.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:s,top:o}},C.prototype.isCursorInView=function(p,g){return p.top>=0&&p.top<g.maxHeight},C.prototype.update=function(p){this.config=p;var g=this.session.$selectionMarkers,i=0,s=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var i=0,o=g.length;i<o;i++){var r=this.getPixelPosition(g[i].cursor,!0);if(!((r.top>p.height+p.offset||r.top<0)&&i>1)){var n=this.cursors[s++]||this.addCursor(),a=n.style;this.drawCursor?this.drawCursor(n,r,p,g[i],this.session):this.isCursorInView(r,p)?(b.setStyle(a,"display","block"),b.translate(n,r.left,r.top),b.setStyle(a,"width",Math.round(p.characterWidth)+"px"),b.setStyle(a,"height",p.lineHeight+"px")):b.setStyle(a,"display","none")}}for(;this.cursors.length>s;)this.removeCursor();var h=this.session.getOverwrite();this.$setOverwrite(h),this.$pixelPos=r,this.restartTimer()},C.prototype.$setOverwrite=function(p){p!=this.overwrite&&(this.overwrite=p,p?b.addCssClass(this.element,"ace_overwrite-cursors"):b.removeCssClass(this.element,"ace_overwrite-cursors"))},C.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},C}();w.prototype.$padding=0,w.prototype.drawCursor=null,l.Cursor=w}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,l,T){var b=this&&this.__extends||function(){var n=function(a,h){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(m[E]=y[E])},n(a,h)};return function(a,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");n(a,h);function m(){this.constructor=a}a.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}(),w=e("./lib/oop"),C=e("./lib/dom"),p=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter,i=32768,s=function(){function n(a,h){this.element=C.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+h,this.inner=C.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),a.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addListener(this.element,"scroll",this.onScroll.bind(this)),p.addListener(this.element,"mousedown",p.preventDefault)}return n.prototype.setVisible=function(a){this.element.style.display=a?"":"none",this.isVisible=a,this.coeff=1},n}();w.implement(s.prototype,g);var o=function(n){b(a,n);function a(h,m){var y=n.call(this,h,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,m.$scrollbarWidth=y.width=C.scrollbarWidth(h.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return a.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var h=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-h)/(this.coeff-h)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},a.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},a.prototype.setHeight=function(h){this.element.style.height=h+"px"},a.prototype.setScrollHeight=function(h){this.scrollHeight=h,h>i?(this.coeff=i/h,h=i):this.coeff!=1&&(this.coeff=1),this.inner.style.height=h+"px"},a.prototype.setScrollTop=function(h){this.scrollTop!=h&&(this.skipEvent=!0,this.scrollTop=h,this.element.scrollTop=h*this.coeff)},a}(s);o.prototype.setInnerHeight=o.prototype.setScrollHeight;var r=function(n){b(a,n);function a(h,m){var y=n.call(this,h,"-h")||this;return y.scrollLeft=0,y.height=m.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return a.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},a.prototype.getHeight=function(){return this.isVisible?this.height:0},a.prototype.setWidth=function(h){this.element.style.width=h+"px"},a.prototype.setInnerWidth=function(h){this.inner.style.width=h+"px"},a.prototype.setScrollWidth=function(h){this.inner.style.width=h+"px"},a.prototype.setScrollLeft=function(h){this.scrollLeft!=h&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=h)},a}(s);l.ScrollBar=o,l.ScrollBarV=o,l.ScrollBarH=r,l.VScrollBar=o,l.HScrollBar=r}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,l,T){var b=this&&this.__extends||function(){var r=function(n,a){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(h[y]=m[y])},r(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");r(n,a);function h(){this.constructor=n}n.prototype=a===null?Object.create(a):(h.prototype=a.prototype,new h)}}(),w=e("./lib/oop"),C=e("./lib/dom"),p=e("./lib/event"),g=e("./lib/event_emitter").EventEmitter;C.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
|
|
217
|
-
position: absolute;
|
|
218
|
-
background: rgba(128, 128, 128, 0.6);
|
|
219
|
-
-moz-box-sizing: border-box;
|
|
220
|
-
box-sizing: border-box;
|
|
221
|
-
border: 1px solid #bbb;
|
|
222
|
-
border-radius: 2px;
|
|
223
|
-
z-index: 8;
|
|
224
|
-
}
|
|
225
|
-
.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
|
|
226
|
-
position: absolute;
|
|
227
|
-
z-index: 6;
|
|
228
|
-
background: none;
|
|
229
|
-
overflow: hidden!important;
|
|
230
|
-
}
|
|
231
|
-
.ace_editor>.ace_sb-v {
|
|
232
|
-
z-index: 6;
|
|
233
|
-
right: 0;
|
|
234
|
-
top: 0;
|
|
235
|
-
width: 12px;
|
|
236
|
-
}
|
|
237
|
-
.ace_editor>.ace_sb-v div {
|
|
238
|
-
z-index: 8;
|
|
239
|
-
right: 0;
|
|
240
|
-
width: 100%;
|
|
241
|
-
}
|
|
242
|
-
.ace_editor>.ace_sb-h {
|
|
243
|
-
bottom: 0;
|
|
244
|
-
left: 0;
|
|
245
|
-
height: 12px;
|
|
246
|
-
}
|
|
247
|
-
.ace_editor>.ace_sb-h div {
|
|
248
|
-
bottom: 0;
|
|
249
|
-
height: 100%;
|
|
250
|
-
}
|
|
251
|
-
.ace_editor>.ace_sb_grabbed {
|
|
252
|
-
z-index: 8;
|
|
253
|
-
background: #000;
|
|
254
|
-
}`,"ace_scrollbar.css",!1);var i=function(){function r(n,a){this.element=C.createElement("div"),this.element.className="ace_sb"+a,this.inner=C.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,n.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,p.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return r.prototype.setVisible=function(n){this.element.style.display=n?"":"none",this.isVisible=n,this.coeff=1},r}();w.implement(i.prototype,g);var s=function(r){b(n,r);function n(a,h){var m=r.call(this,a,"-v")||this;return m.scrollTop=0,m.scrollHeight=0,m.parent=a,m.width=m.VScrollWidth,m.renderer=h,m.inner.style.width=m.element.style.width=(m.width||15)+"px",m.$minWidth=0,m}return n.prototype.onMouseDown=function(a,h){if(a==="mousedown"&&!(p.getButton(h)!==0||h.detail===2)){if(h.target===this.inner){var m=this,y=h.clientY,E=function(L){y=L.clientY},M=function(){clearInterval(I)},_=h.clientY,v=this.thumbTop,R=function(){if(y!==void 0){var L=m.scrollTopFromThumbTop(v+y-_);L!==m.scrollTop&&m._emit("scroll",{data:L})}};p.capture(this.inner,E,M);var I=setInterval(R,20);return p.preventDefault(h)}var F=h.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(F)}),p.preventDefault(h)}},n.prototype.getHeight=function(){return this.height},n.prototype.scrollTopFromThumbTop=function(a){var h=a*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return h=h>>0,h<0?h=0:h>this.pageHeight-this.viewHeight&&(h=this.pageHeight-this.viewHeight),h},n.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},n.prototype.setHeight=function(a){this.height=Math.max(0,a),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},n.prototype.setScrollHeight=function(a,h){this.pageHeight===a&&!h||(this.pageHeight=a,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},n.prototype.setScrollTop=function(a){this.scrollTop=a,a<0&&(a=0),this.thumbTop=a*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},n}(i);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var o=function(r){b(n,r);function n(a,h){var m=r.call(this,a,"-h")||this;return m.scrollLeft=0,m.scrollWidth=0,m.height=m.HScrollHeight,m.inner.style.height=m.element.style.height=(m.height||12)+"px",m.renderer=h,m}return n.prototype.onMouseDown=function(a,h){if(a==="mousedown"&&!(p.getButton(h)!==0||h.detail===2)){if(h.target===this.inner){var m=this,y=h.clientX,E=function(L){y=L.clientX},M=function(){clearInterval(I)},_=h.clientX,v=this.thumbLeft,R=function(){if(y!==void 0){var L=m.scrollLeftFromThumbLeft(v+y-_);L!==m.scrollLeft&&m._emit("scroll",{data:L})}};p.capture(this.inner,E,M);var I=setInterval(R,20);return p.preventDefault(h)}var F=h.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(F)}),p.preventDefault(h)}},n.prototype.getHeight=function(){return this.isVisible?this.height:0},n.prototype.scrollLeftFromThumbLeft=function(a){var h=a*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return h=h>>0,h<0?h=0:h>this.pageWidth-this.viewWidth&&(h=this.pageWidth-this.viewWidth),h},n.prototype.setWidth=function(a){this.width=Math.max(0,a),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},n.prototype.setScrollWidth=function(a,h){this.pageWidth===a&&!h||(this.pageWidth=a,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},n.prototype.setScrollLeft=function(a){this.scrollLeft=a,a<0&&(a=0),this.thumbLeft=a*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},n}(i);o.prototype.setInnerWidth=o.prototype.setScrollWidth,l.ScrollBar=s,l.ScrollBarV=s,l.ScrollBarH=o,l.VScrollBar=s,l.HScrollBar=o}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,l,T){var b=e("./lib/event"),w=function(){function C(p,g){this.onRender=p,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var i=this;this._flush=function(s){i.pending=!1;var o=i.changes;if(o&&(b.blockIdle(100),i.changes=0,i.onRender(o)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}}return C.prototype.schedule=function(p){this.changes=this.changes|p,this.changes&&!this.pending&&(b.nextFrame(this._flush),this.pending=!0)},C.prototype.clear=function(p){var g=this.changes;return this.changes=0,g},C}();l.RenderLoop=w}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/dom"),C=e("../lib/lang"),p=e("../lib/event"),g=e("../lib/useragent"),i=e("../lib/event_emitter").EventEmitter,s=512,o=typeof ResizeObserver=="function",r=200,n=function(){function a(h){this.el=w.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=w.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=w.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),h.appendChild(this.el),this.$measureNode.textContent=C.stringRepeat("X",s),this.$characterSize={width:0,height:0},o?this.$addObserver():this.checkForSizeChanges()}return a.prototype.$setMeasureNodeStyles=function(h,m){h.width=h.height="auto",h.left=h.top="0px",h.visibility="hidden",h.position="absolute",h.whiteSpace="pre",g.isIE<8?h["font-family"]="inherit":h.font="inherit",h.overflow=m?"hidden":"visible"},a.prototype.checkForSizeChanges=function(h){if(h===void 0&&(h=this.$measureSizes()),h&&(this.$characterSize.width!==h.width||this.$characterSize.height!==h.height)){this.$measureNode.style.fontWeight="bold";var m=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=h,this.charSizes=Object.create(null),this.allowBoldFonts=m&&m.width===h.width&&m.height===h.height,this._emit("changeCharacterSize",{data:h})}},a.prototype.$addObserver=function(){var h=this;this.$observer=new window.ResizeObserver(function(m){h.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},a.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var h=this;return this.$pollSizeChangesTimer=p.onIdle(function m(){h.checkForSizeChanges(),p.onIdle(m,500)},500)},a.prototype.setPolling=function(h){h?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},a.prototype.$measureSizes=function(h){var m={height:(h||this.$measureNode).clientHeight,width:(h||this.$measureNode).clientWidth/s};return m.width===0||m.height===0?null:m},a.prototype.$measureCharWidth=function(h){this.$main.textContent=C.stringRepeat(h,s);var m=this.$main.getBoundingClientRect();return m.width/s},a.prototype.getCharacterWidth=function(h){var m=this.charSizes[h];return m===void 0&&(m=this.charSizes[h]=this.$measureCharWidth(h)/this.$characterSize.width),m},a.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},a.prototype.$getZoom=function(h){return!h||!h.parentElement?1:(Number(window.getComputedStyle(h).zoom)||1)*this.$getZoom(h.parentElement)},a.prototype.$initTransformMeasureNodes=function(){var h=function(m,y){return["div",{style:"position: absolute;top:"+m+"px;left:"+y+"px;"}]};this.els=w.buildDom([h(0,0),h(r,0),h(0,r),h(r,r)],this.el)},a.prototype.transformCoordinates=function(h,m){if(h){var y=this.$getZoom(this.el);h=v(1/y,h)}function E(Q,te,he){var ne=Q[1]*te[0]-Q[0]*te[1];return[(-te[1]*he[0]+te[0]*he[1])/ne,(+Q[1]*he[0]-Q[0]*he[1])/ne]}function M(Q,te){return[Q[0]-te[0],Q[1]-te[1]]}function _(Q,te){return[Q[0]+te[0],Q[1]+te[1]]}function v(Q,te){return[Q*te[0],Q*te[1]]}this.els||this.$initTransformMeasureNodes();function R(Q){var te=Q.getBoundingClientRect();return[te.left,te.top]}var I=R(this.els[0]),F=R(this.els[1]),L=R(this.els[2]),U=R(this.els[3]),P=E(M(U,F),M(U,L),M(_(F,L),_(U,I))),O=v(1+P[0],M(F,I)),S=v(1+P[1],M(L,I));if(m){var k=m,N=P[0]*k[0]/r+P[1]*k[1]/r+1,B=_(v(k[0],O),v(k[1],S));return _(v(1/N/r,B),I)}var V=M(h,I),G=E(M(O,v(P[0],V)),M(S,v(P[1],V)),V);return v(r,G)},a}();n.prototype.$characterSize={width:0,height:0},b.implement(n.prototype,i),l.FontMetrics=n}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,l,T){T.exports=`
|
|
255
|
-
.ace_br1 {border-top-left-radius : 3px;}
|
|
256
|
-
.ace_br2 {border-top-right-radius : 3px;}
|
|
257
|
-
.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
|
|
258
|
-
.ace_br4 {border-bottom-right-radius: 3px;}
|
|
259
|
-
.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
|
|
260
|
-
.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
|
|
261
|
-
.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
|
|
262
|
-
.ace_br8 {border-bottom-left-radius : 3px;}
|
|
263
|
-
.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
|
|
264
|
-
.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
|
|
265
|
-
.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
266
|
-
.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
267
|
-
.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
268
|
-
.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
269
|
-
.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
.ace_editor {
|
|
273
|
-
position: relative;
|
|
274
|
-
overflow: hidden;
|
|
275
|
-
padding: 0;
|
|
276
|
-
font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
|
|
277
|
-
direction: ltr;
|
|
278
|
-
text-align: left;
|
|
279
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
280
|
-
forced-color-adjust: none;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.ace_scroller {
|
|
284
|
-
position: absolute;
|
|
285
|
-
overflow: hidden;
|
|
286
|
-
top: 0;
|
|
287
|
-
bottom: 0;
|
|
288
|
-
background-color: inherit;
|
|
289
|
-
-ms-user-select: none;
|
|
290
|
-
-moz-user-select: none;
|
|
291
|
-
-webkit-user-select: none;
|
|
292
|
-
user-select: none;
|
|
293
|
-
cursor: text;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.ace_content {
|
|
297
|
-
position: absolute;
|
|
298
|
-
box-sizing: border-box;
|
|
299
|
-
min-width: 100%;
|
|
300
|
-
contain: style size layout;
|
|
301
|
-
font-variant-ligatures: no-common-ligatures;
|
|
302
|
-
}
|
|
303
|
-
.ace_invisible {
|
|
304
|
-
font-variant-ligatures: none;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.ace_keyboard-focus:focus {
|
|
308
|
-
box-shadow: inset 0 0 0 2px #5E9ED6;
|
|
309
|
-
outline: none;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.ace_dragging .ace_scroller:before{
|
|
313
|
-
position: absolute;
|
|
314
|
-
top: 0;
|
|
315
|
-
left: 0;
|
|
316
|
-
right: 0;
|
|
317
|
-
bottom: 0;
|
|
318
|
-
content: '';
|
|
319
|
-
background: rgba(250, 250, 250, 0.01);
|
|
320
|
-
z-index: 1000;
|
|
321
|
-
}
|
|
322
|
-
.ace_dragging.ace_dark .ace_scroller:before{
|
|
323
|
-
background: rgba(0, 0, 0, 0.01);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.ace_gutter {
|
|
327
|
-
position: absolute;
|
|
328
|
-
overflow : hidden;
|
|
329
|
-
width: auto;
|
|
330
|
-
top: 0;
|
|
331
|
-
bottom: 0;
|
|
332
|
-
left: 0;
|
|
333
|
-
cursor: default;
|
|
334
|
-
z-index: 4;
|
|
335
|
-
-ms-user-select: none;
|
|
336
|
-
-moz-user-select: none;
|
|
337
|
-
-webkit-user-select: none;
|
|
338
|
-
user-select: none;
|
|
339
|
-
contain: style size layout;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.ace_gutter-active-line {
|
|
343
|
-
position: absolute;
|
|
344
|
-
left: 0;
|
|
345
|
-
right: 0;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.ace_scroller.ace_scroll-left:after {
|
|
349
|
-
content: "";
|
|
350
|
-
position: absolute;
|
|
351
|
-
top: 0;
|
|
352
|
-
right: 0;
|
|
353
|
-
bottom: 0;
|
|
354
|
-
left: 0;
|
|
355
|
-
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
|
|
356
|
-
pointer-events: none;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.ace_gutter-cell, .ace_gutter-cell_svg-icons {
|
|
360
|
-
position: absolute;
|
|
361
|
-
top: 0;
|
|
362
|
-
left: 0;
|
|
363
|
-
right: 0;
|
|
364
|
-
padding-left: 19px;
|
|
365
|
-
padding-right: 6px;
|
|
366
|
-
background-repeat: no-repeat;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
|
|
370
|
-
margin-left: -14px;
|
|
371
|
-
float: left;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.ace_gutter-cell .ace_gutter_annotation {
|
|
375
|
-
margin-left: -19px;
|
|
376
|
-
float: left;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
|
|
380
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
|
|
381
|
-
background-repeat: no-repeat;
|
|
382
|
-
background-position: 2px center;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
|
|
386
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
|
|
387
|
-
background-repeat: no-repeat;
|
|
388
|
-
background-position: 2px center;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
|
|
392
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
|
|
393
|
-
background-repeat: no-repeat;
|
|
394
|
-
background-position: 2px center;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
|
|
398
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.ace_icon_svg.ace_error {
|
|
402
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
|
|
403
|
-
background-color: crimson;
|
|
404
|
-
}
|
|
405
|
-
.ace_icon_svg.ace_security {
|
|
406
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
|
|
407
|
-
background-color: crimson;
|
|
408
|
-
}
|
|
409
|
-
.ace_icon_svg.ace_warning {
|
|
410
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
|
|
411
|
-
background-color: darkorange;
|
|
412
|
-
}
|
|
413
|
-
.ace_icon_svg.ace_info {
|
|
414
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
|
|
415
|
-
background-color: royalblue;
|
|
416
|
-
}
|
|
417
|
-
.ace_icon_svg.ace_hint {
|
|
418
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
|
|
419
|
-
background-color: silver;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.ace_icon_svg.ace_error_fold {
|
|
423
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
424
|
-
background-color: crimson;
|
|
425
|
-
}
|
|
426
|
-
.ace_icon_svg.ace_security_fold {
|
|
427
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
|
|
428
|
-
background-color: crimson;
|
|
429
|
-
}
|
|
430
|
-
.ace_icon_svg.ace_warning_fold {
|
|
431
|
-
-webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
|
|
432
|
-
background-color: darkorange;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.ace_scrollbar {
|
|
436
|
-
contain: strict;
|
|
437
|
-
position: absolute;
|
|
438
|
-
right: 0;
|
|
439
|
-
bottom: 0;
|
|
440
|
-
z-index: 6;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.ace_scrollbar-inner {
|
|
444
|
-
position: absolute;
|
|
445
|
-
cursor: text;
|
|
446
|
-
left: 0;
|
|
447
|
-
top: 0;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.ace_scrollbar-v{
|
|
451
|
-
overflow-x: hidden;
|
|
452
|
-
overflow-y: scroll;
|
|
453
|
-
top: 0;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.ace_scrollbar-h {
|
|
457
|
-
overflow-x: scroll;
|
|
458
|
-
overflow-y: hidden;
|
|
459
|
-
left: 0;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.ace_print-margin {
|
|
463
|
-
position: absolute;
|
|
464
|
-
height: 100%;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.ace_text-input {
|
|
468
|
-
position: absolute;
|
|
469
|
-
z-index: 0;
|
|
470
|
-
width: 0.5em;
|
|
471
|
-
height: 1em;
|
|
472
|
-
opacity: 0;
|
|
473
|
-
background: transparent;
|
|
474
|
-
-moz-appearance: none;
|
|
475
|
-
appearance: none;
|
|
476
|
-
border: none;
|
|
477
|
-
resize: none;
|
|
478
|
-
outline: none;
|
|
479
|
-
overflow: hidden;
|
|
480
|
-
font: inherit;
|
|
481
|
-
padding: 0 1px;
|
|
482
|
-
margin: 0 -1px;
|
|
483
|
-
contain: strict;
|
|
484
|
-
-ms-user-select: text;
|
|
485
|
-
-moz-user-select: text;
|
|
486
|
-
-webkit-user-select: text;
|
|
487
|
-
user-select: text;
|
|
488
|
-
/*with \`pre-line\` chrome inserts instead of space*/
|
|
489
|
-
white-space: pre!important;
|
|
490
|
-
}
|
|
491
|
-
.ace_text-input.ace_composition {
|
|
492
|
-
background: transparent;
|
|
493
|
-
color: inherit;
|
|
494
|
-
z-index: 1000;
|
|
495
|
-
opacity: 1;
|
|
496
|
-
}
|
|
497
|
-
.ace_composition_placeholder { color: transparent }
|
|
498
|
-
.ace_composition_marker {
|
|
499
|
-
border-bottom: 1px solid;
|
|
500
|
-
position: absolute;
|
|
501
|
-
border-radius: 0;
|
|
502
|
-
margin-top: 1px;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
[ace_nocontext=true] {
|
|
506
|
-
transform: none!important;
|
|
507
|
-
filter: none!important;
|
|
508
|
-
clip-path: none!important;
|
|
509
|
-
mask : none!important;
|
|
510
|
-
contain: none!important;
|
|
511
|
-
perspective: none!important;
|
|
512
|
-
mix-blend-mode: initial!important;
|
|
513
|
-
z-index: auto;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
.ace_layer {
|
|
517
|
-
z-index: 1;
|
|
518
|
-
position: absolute;
|
|
519
|
-
overflow: hidden;
|
|
520
|
-
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
|
|
521
|
-
word-wrap: normal;
|
|
522
|
-
white-space: pre;
|
|
523
|
-
height: 100%;
|
|
524
|
-
width: 100%;
|
|
525
|
-
box-sizing: border-box;
|
|
526
|
-
/* setting pointer-events: auto; on node under the mouse, which changes
|
|
527
|
-
during scroll, will break mouse wheel scrolling in Safari */
|
|
528
|
-
pointer-events: none;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.ace_gutter-layer {
|
|
532
|
-
position: relative;
|
|
533
|
-
width: auto;
|
|
534
|
-
text-align: right;
|
|
535
|
-
pointer-events: auto;
|
|
536
|
-
height: 1000000px;
|
|
537
|
-
contain: style size layout;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.ace_text-layer {
|
|
541
|
-
font: inherit !important;
|
|
542
|
-
position: absolute;
|
|
543
|
-
height: 1000000px;
|
|
544
|
-
width: 1000000px;
|
|
545
|
-
contain: style size layout;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
|
|
549
|
-
contain: style size layout;
|
|
550
|
-
position: absolute;
|
|
551
|
-
top: 0;
|
|
552
|
-
left: 0;
|
|
553
|
-
right: 0;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.ace_hidpi .ace_text-layer,
|
|
557
|
-
.ace_hidpi .ace_gutter-layer,
|
|
558
|
-
.ace_hidpi .ace_content,
|
|
559
|
-
.ace_hidpi .ace_gutter {
|
|
560
|
-
contain: strict;
|
|
561
|
-
}
|
|
562
|
-
.ace_hidpi .ace_text-layer > .ace_line,
|
|
563
|
-
.ace_hidpi .ace_text-layer > .ace_line_group {
|
|
564
|
-
contain: strict;
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
.ace_cjk {
|
|
568
|
-
display: inline-block;
|
|
569
|
-
text-align: center;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
.ace_cursor-layer {
|
|
573
|
-
z-index: 4;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
.ace_cursor {
|
|
577
|
-
z-index: 4;
|
|
578
|
-
position: absolute;
|
|
579
|
-
box-sizing: border-box;
|
|
580
|
-
border-left: 2px solid;
|
|
581
|
-
/* workaround for smooth cursor repaintng whole screen in chrome */
|
|
582
|
-
transform: translatez(0);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.ace_multiselect .ace_cursor {
|
|
586
|
-
border-left-width: 1px;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.ace_slim-cursors .ace_cursor {
|
|
590
|
-
border-left-width: 1px;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.ace_overwrite-cursors .ace_cursor {
|
|
594
|
-
border-left-width: 0;
|
|
595
|
-
border-bottom: 1px solid;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.ace_hidden-cursors .ace_cursor {
|
|
599
|
-
opacity: 0.2;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
|
|
603
|
-
opacity: 0;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
.ace_smooth-blinking .ace_cursor {
|
|
607
|
-
transition: opacity 0.18s;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.ace_animate-blinking .ace_cursor {
|
|
611
|
-
animation-duration: 1000ms;
|
|
612
|
-
animation-timing-function: step-end;
|
|
613
|
-
animation-name: blink-ace-animate;
|
|
614
|
-
animation-iteration-count: infinite;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
|
|
618
|
-
animation-duration: 1000ms;
|
|
619
|
-
animation-timing-function: ease-in-out;
|
|
620
|
-
animation-name: blink-ace-animate-smooth;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
@keyframes blink-ace-animate {
|
|
624
|
-
from, to { opacity: 1; }
|
|
625
|
-
60% { opacity: 0; }
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
@keyframes blink-ace-animate-smooth {
|
|
629
|
-
from, to { opacity: 1; }
|
|
630
|
-
45% { opacity: 1; }
|
|
631
|
-
60% { opacity: 0; }
|
|
632
|
-
85% { opacity: 0; }
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
|
|
636
|
-
position: absolute;
|
|
637
|
-
z-index: 3;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
.ace_marker-layer .ace_selection {
|
|
641
|
-
position: absolute;
|
|
642
|
-
z-index: 5;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.ace_marker-layer .ace_bracket {
|
|
646
|
-
position: absolute;
|
|
647
|
-
z-index: 6;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
.ace_marker-layer .ace_error_bracket {
|
|
651
|
-
position: absolute;
|
|
652
|
-
border-bottom: 1px solid #DE5555;
|
|
653
|
-
border-radius: 0;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
.ace_marker-layer .ace_active-line {
|
|
657
|
-
position: absolute;
|
|
658
|
-
z-index: 2;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.ace_marker-layer .ace_selected-word {
|
|
662
|
-
position: absolute;
|
|
663
|
-
z-index: 4;
|
|
664
|
-
box-sizing: border-box;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
.ace_line .ace_fold {
|
|
668
|
-
box-sizing: border-box;
|
|
669
|
-
|
|
670
|
-
display: inline-block;
|
|
671
|
-
height: 11px;
|
|
672
|
-
margin-top: -2px;
|
|
673
|
-
vertical-align: middle;
|
|
674
|
-
|
|
675
|
-
background-image:
|
|
676
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
677
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
|
|
678
|
-
background-repeat: no-repeat, repeat-x;
|
|
679
|
-
background-position: center center, top left;
|
|
680
|
-
color: transparent;
|
|
681
|
-
|
|
682
|
-
border: 1px solid black;
|
|
683
|
-
border-radius: 2px;
|
|
684
|
-
|
|
685
|
-
cursor: pointer;
|
|
686
|
-
pointer-events: auto;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.ace_dark .ace_fold {
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.ace_fold:hover{
|
|
693
|
-
background-image:
|
|
694
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
|
|
695
|
-
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.ace_tooltip {
|
|
699
|
-
background-color: #f5f5f5;
|
|
700
|
-
border: 1px solid gray;
|
|
701
|
-
border-radius: 1px;
|
|
702
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
703
|
-
color: black;
|
|
704
|
-
padding: 3px 4px;
|
|
705
|
-
position: fixed;
|
|
706
|
-
z-index: 999999;
|
|
707
|
-
box-sizing: border-box;
|
|
708
|
-
cursor: default;
|
|
709
|
-
white-space: pre-wrap;
|
|
710
|
-
word-wrap: break-word;
|
|
711
|
-
line-height: normal;
|
|
712
|
-
font-style: normal;
|
|
713
|
-
font-weight: normal;
|
|
714
|
-
letter-spacing: normal;
|
|
715
|
-
pointer-events: none;
|
|
716
|
-
overflow: auto;
|
|
717
|
-
max-width: min(33em, 66vw);
|
|
718
|
-
overscroll-behavior: contain;
|
|
719
|
-
}
|
|
720
|
-
.ace_tooltip pre {
|
|
721
|
-
white-space: pre-wrap;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.ace_tooltip.ace_dark {
|
|
725
|
-
background-color: #636363;
|
|
726
|
-
color: #fff;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.ace_tooltip:focus {
|
|
730
|
-
outline: 1px solid #5E9ED6;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.ace_icon {
|
|
734
|
-
display: inline-block;
|
|
735
|
-
width: 18px;
|
|
736
|
-
vertical-align: top;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
.ace_icon_svg {
|
|
740
|
-
display: inline-block;
|
|
741
|
-
width: 12px;
|
|
742
|
-
vertical-align: top;
|
|
743
|
-
-webkit-mask-repeat: no-repeat;
|
|
744
|
-
-webkit-mask-size: 12px;
|
|
745
|
-
-webkit-mask-position: center;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
|
|
749
|
-
padding-right: 13px;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
.ace_fold-widget, .ace_custom-widget {
|
|
753
|
-
box-sizing: border-box;
|
|
754
|
-
|
|
755
|
-
margin: 0 -12px 0 1px;
|
|
756
|
-
display: none;
|
|
757
|
-
width: 11px;
|
|
758
|
-
vertical-align: top;
|
|
759
|
-
|
|
760
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
|
|
761
|
-
background-repeat: no-repeat;
|
|
762
|
-
background-position: center;
|
|
763
|
-
|
|
764
|
-
border-radius: 3px;
|
|
765
|
-
|
|
766
|
-
border: 1px solid transparent;
|
|
767
|
-
cursor: pointer;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.ace_custom-widget {
|
|
771
|
-
background: none;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
.ace_folding-enabled .ace_fold-widget {
|
|
775
|
-
display: inline-block;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.ace_fold-widget.ace_end {
|
|
779
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.ace_fold-widget.ace_closed {
|
|
783
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.ace_fold-widget:hover {
|
|
787
|
-
border: 1px solid rgba(0, 0, 0, 0.3);
|
|
788
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
789
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.ace_fold-widget:active {
|
|
793
|
-
border: 1px solid rgba(0, 0, 0, 0.4);
|
|
794
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
795
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* Dark version for fold widgets
|
|
799
|
-
*/
|
|
800
|
-
.ace_dark .ace_fold-widget {
|
|
801
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
|
|
802
|
-
}
|
|
803
|
-
.ace_dark .ace_fold-widget.ace_end {
|
|
804
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
|
|
805
|
-
}
|
|
806
|
-
.ace_dark .ace_fold-widget.ace_closed {
|
|
807
|
-
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
|
|
808
|
-
}
|
|
809
|
-
.ace_dark .ace_fold-widget:hover {
|
|
810
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
811
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
812
|
-
}
|
|
813
|
-
.ace_dark .ace_fold-widget:active {
|
|
814
|
-
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
.ace_inline_button {
|
|
818
|
-
border: 1px solid lightgray;
|
|
819
|
-
display: inline-block;
|
|
820
|
-
margin: -1px 8px;
|
|
821
|
-
padding: 0 5px;
|
|
822
|
-
pointer-events: auto;
|
|
823
|
-
cursor: pointer;
|
|
824
|
-
}
|
|
825
|
-
.ace_inline_button:hover {
|
|
826
|
-
border-color: gray;
|
|
827
|
-
background: rgba(200,200,200,0.2);
|
|
828
|
-
display: inline-block;
|
|
829
|
-
pointer-events: auto;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
.ace_fold-widget.ace_invalid {
|
|
833
|
-
background-color: #FFB4B4;
|
|
834
|
-
border-color: #DE5555;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
.ace_fade-fold-widgets .ace_fold-widget {
|
|
838
|
-
transition: opacity 0.4s ease 0.05s;
|
|
839
|
-
opacity: 0;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
.ace_fade-fold-widgets:hover .ace_fold-widget {
|
|
843
|
-
transition: opacity 0.05s ease 0.05s;
|
|
844
|
-
opacity:1;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.ace_underline {
|
|
848
|
-
text-decoration: underline;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.ace_bold {
|
|
852
|
-
font-weight: bold;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
.ace_nobold .ace_bold {
|
|
856
|
-
font-weight: normal;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
.ace_italic {
|
|
860
|
-
font-style: italic;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
.ace_error-marker {
|
|
865
|
-
background-color: rgba(255, 0, 0,0.2);
|
|
866
|
-
position: absolute;
|
|
867
|
-
z-index: 9;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
.ace_highlight-marker {
|
|
871
|
-
background-color: rgba(255, 255, 0,0.2);
|
|
872
|
-
position: absolute;
|
|
873
|
-
z-index: 8;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.ace_mobile-menu {
|
|
877
|
-
position: absolute;
|
|
878
|
-
line-height: 1.5;
|
|
879
|
-
border-radius: 4px;
|
|
880
|
-
-ms-user-select: none;
|
|
881
|
-
-moz-user-select: none;
|
|
882
|
-
-webkit-user-select: none;
|
|
883
|
-
user-select: none;
|
|
884
|
-
background: white;
|
|
885
|
-
box-shadow: 1px 3px 2px grey;
|
|
886
|
-
border: 1px solid #dcdcdc;
|
|
887
|
-
color: black;
|
|
888
|
-
}
|
|
889
|
-
.ace_dark > .ace_mobile-menu {
|
|
890
|
-
background: #333;
|
|
891
|
-
color: #ccc;
|
|
892
|
-
box-shadow: 1px 3px 2px grey;
|
|
893
|
-
border: 1px solid #444;
|
|
894
|
-
|
|
895
|
-
}
|
|
896
|
-
.ace_mobile-button {
|
|
897
|
-
padding: 2px;
|
|
898
|
-
cursor: pointer;
|
|
899
|
-
overflow: hidden;
|
|
900
|
-
}
|
|
901
|
-
.ace_mobile-button:hover {
|
|
902
|
-
background-color: #eee;
|
|
903
|
-
opacity:1;
|
|
904
|
-
}
|
|
905
|
-
.ace_mobile-button:active {
|
|
906
|
-
background-color: #ddd;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
.ace_placeholder {
|
|
910
|
-
position: relative;
|
|
911
|
-
font-family: arial;
|
|
912
|
-
transform: scale(0.9);
|
|
913
|
-
transform-origin: left;
|
|
914
|
-
white-space: pre;
|
|
915
|
-
opacity: 0.7;
|
|
916
|
-
margin: 0 10px;
|
|
917
|
-
z-index: 1;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
.ace_ghost_text {
|
|
921
|
-
opacity: 0.5;
|
|
922
|
-
font-style: italic;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.ace_ghost_text_container > div {
|
|
926
|
-
white-space: pre;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.ghost_text_line_wrapped::after {
|
|
930
|
-
content: "↩";
|
|
931
|
-
position: absolute;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
.ace_lineWidgetContainer.ace_ghost_text {
|
|
935
|
-
margin: 0px 4px
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
.ace_screenreader-only {
|
|
939
|
-
position:absolute;
|
|
940
|
-
left:-10000px;
|
|
941
|
-
top:auto;
|
|
942
|
-
width:1px;
|
|
943
|
-
height:1px;
|
|
944
|
-
overflow:hidden;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
.ace_hidden_token {
|
|
948
|
-
display: none;
|
|
949
|
-
}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,l,T){var b=e("../lib/dom"),w=e("../lib/oop"),C=e("../lib/event_emitter").EventEmitter,p=function(){function g(i,s){this.canvas=b.createElement("canvas"),this.renderer=s,this.pixelRatio=1,this.maxHeight=s.layerConfig.maxHeight,this.lineHeight=s.layerConfig.lineHeight,this.canvasHeight=i.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=i.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},i.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(i){var s=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(i){this.maxHeight=i.maxHeight,this.lineHeight=i.lineHeight,this.canvasHeight=i.height;var o=(i.lastRow+1)*this.lineHeight;o<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var r=this.canvas.getContext("2d");function n(U,P){return U.priority<P.priority?-1:U.priority>P.priority?1:0}var a=this.renderer.session.$annotations;if(r.clearRect(0,0,this.canvas.width,this.canvas.height),a){var h={info:1,warning:2,error:3};a.forEach(function(U){U.priority=h[U.type]||null}),a=a.sort(n);for(var m=this.renderer.session.$foldData,y=0;y<a.length;y++){var E=a[y].row,M=this.compensateFoldRows(E,m),_=Math.round((E-M)*this.lineHeight*this.heightRatio),v=Math.round((E-M)*this.lineHeight*this.heightRatio),R=Math.round(((E-M)*this.lineHeight+this.lineHeight)*this.heightRatio),I=R-v;if(I<this.minDecorationHeight){var F=(v+R)/2|0;F<this.halfMinDecorationHeight?F=this.halfMinDecorationHeight:F+this.halfMinDecorationHeight>this.canvasHeight&&(F=this.canvasHeight-this.halfMinDecorationHeight),v=Math.round(F-this.halfMinDecorationHeight),R=Math.round(F+this.halfMinDecorationHeight)}r.fillStyle=s[a[y].type]||null,r.fillRect(0,_,this.canvasWidth,R-v)}}var L=this.renderer.session.selection.getCursor();if(L){var M=this.compensateFoldRows(L.row,m),_=Math.round((L.row-M)*this.lineHeight*this.heightRatio);r.fillStyle="rgba(0, 0, 0, 0.5)",r.fillRect(0,_,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(i,s){var o=0;if(s&&s.length>0)for(var r=0;r<s.length;r++)i>s[r].start.row&&i<s[r].end.row?o+=i-s[r].start.row:i>=s[r].end.row&&(o+=s[r].end.row-s[r].start.row);return o},g}();w.implement(p.prototype,C),l.Decorator=p}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(e,l,T){var b=e("./lib/oop"),w=e("./lib/dom"),C=e("./lib/lang"),p=e("./config"),g=e("./layer/gutter").Gutter,i=e("./layer/marker").Marker,s=e("./layer/text").Text,o=e("./layer/cursor").Cursor,r=e("./scrollbar").HScrollBar,n=e("./scrollbar").VScrollBar,a=e("./scrollbar_custom").HScrollBar,h=e("./scrollbar_custom").VScrollBar,m=e("./renderloop").RenderLoop,y=e("./layer/font_metrics").FontMetrics,E=e("./lib/event_emitter").EventEmitter,M=e("./css/editor-css"),_=e("./layer/decorators").Decorator,v=e("./lib/useragent"),R=e("./layer/text_util").isTextToken;w.importCssString(M,"ace_editor.css",!1);var I=function(){function F(L,U){var P=this;this.container=L||w.createElement("div"),w.addCssClass(this.container,"ace_editor"),w.HI_DPI&&w.addCssClass(this.container,"ace_hidpi"),this.setTheme(U),p.get("useStrictCSP")==null&&p.set("useStrictCSP",!1),this.$gutter=w.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=w.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=w.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new i(this.content);var O=this.$textLayer=new s(this.content);this.canvas=O.element,this.$markerFront=new i(this.content),this.$cursorLayer=new o(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new n(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.on("scroll",function(S){P.$scrollAnimation||P.session.setScrollTop(S.data-P.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){P.$scrollAnimation||P.session.setScrollLeft(S.data-P.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(S){P.updateCharacterSize(),P.onResize(!0,P.gutterWidth,P.$size.width,P.$size.height),P._signal("changeCharacterSize",S)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new m(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),p.resetOptions(this),p._signal("renderer",this)}return F.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),w.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},F.prototype.setSession=function(L){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=L,L&&this.scrollMargin.top&&L.getScrollTop()<=0&&L.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(L),this.$markerBack.setSession(L),this.$markerFront.setSession(L),this.$gutterLayer.setSession(L),this.$textLayer.setSession(L),L&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},F.prototype.updateLines=function(L,U,P){if(U===void 0&&(U=1/0),this.$changedLines?(this.$changedLines.firstRow>L&&(this.$changedLines.firstRow=L),this.$changedLines.lastRow<U&&(this.$changedLines.lastRow=U)):this.$changedLines={firstRow:L,lastRow:U},this.$changedLines.lastRow<this.layerConfig.firstRow)if(P)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},F.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},F.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},F.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},F.prototype.updateFull=function(L){L?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},F.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},F.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},F.prototype.onResize=function(L,U,P,O){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=L?1:0;var S=this.container;O||(O=S.clientHeight||S.scrollHeight),!O&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",O=S.clientHeight||S.scrollHeight),P||(P=S.clientWidth||S.scrollWidth);var k=this.$updateCachedSize(L,U,P,O);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!P&&!O)return this.resizing=0;L&&(this.$gutterLayer.$padding=null),L?this.$renderChanges(k|this.$changes,!0):this.$loop.schedule(k|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},F.prototype.$updateCachedSize=function(L,U,P,O){O-=this.$extraHeight||0;var S=0,k=this.$size,N={width:k.width,height:k.height,scrollerHeight:k.scrollerHeight,scrollerWidth:k.scrollerWidth};if(O&&(L||k.height!=O)&&(k.height=O,S|=this.CHANGE_SIZE,k.scrollerHeight=k.height,this.$horizScroll&&(k.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(k.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),P&&(L||k.width!=P)){S|=this.CHANGE_SIZE,k.width=P,U==null&&(U=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=U,w.setStyle(this.scrollBarH.element.style,"left",U+"px"),w.setStyle(this.scroller.style,"left",U+this.margin.left+"px"),k.scrollerWidth=Math.max(0,P-U-this.scrollBarV.getWidth()-this.margin.h),w.setStyle(this.$gutter.style,"left",this.margin.left+"px");var B=this.scrollBarV.getWidth()+"px";w.setStyle(this.scrollBarH.element.style,"right",B),w.setStyle(this.scroller.style,"right",B),w.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(k.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||L)&&(S|=this.CHANGE_FULL)}return k.$dirty=!P||!O,S&&this._signal("resize",N),S},F.prototype.onGutterResize=function(L){var U=this.$showGutter?L:0;U!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,U,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},F.prototype.adjustWrapLimit=function(){var L=this.$size.scrollerWidth-this.$padding*2,U=Math.floor(L/this.characterWidth);return this.session.adjustWrapLimit(U,this.$showPrintMargin&&this.$printMarginColumn)},F.prototype.setAnimatedScroll=function(L){this.setOption("animatedScroll",L)},F.prototype.getAnimatedScroll=function(){return this.$animatedScroll},F.prototype.setShowInvisibles=function(L){this.setOption("showInvisibles",L),this.session.$bidiHandler.setShowInvisibles(L)},F.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},F.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},F.prototype.setDisplayIndentGuides=function(L){this.setOption("displayIndentGuides",L)},F.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},F.prototype.setHighlightIndentGuides=function(L){this.setOption("highlightIndentGuides",L)},F.prototype.setShowPrintMargin=function(L){this.setOption("showPrintMargin",L)},F.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},F.prototype.setPrintMarginColumn=function(L){this.setOption("printMarginColumn",L)},F.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},F.prototype.getShowGutter=function(){return this.getOption("showGutter")},F.prototype.setShowGutter=function(L){return this.setOption("showGutter",L)},F.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},F.prototype.setFadeFoldWidgets=function(L){this.setOption("fadeFoldWidgets",L)},F.prototype.setHighlightGutterLine=function(L){this.setOption("highlightGutterLine",L)},F.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},F.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var L=w.createElement("div");L.className="ace_layer ace_print-margin-layer",this.$printMarginEl=w.createElement("div"),this.$printMarginEl.className="ace_print-margin",L.appendChild(this.$printMarginEl),this.content.insertBefore(L,this.content.firstChild)}var U=this.$printMarginEl.style;U.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",U.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},F.prototype.getContainerElement=function(){return this.container},F.prototype.getMouseEventTarget=function(){return this.scroller},F.prototype.getTextAreaContainer=function(){return this.container},F.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var L=this.textarea.style,U=this.$composition;if(!this.$keepTextAreaAtCursor&&!U){w.translate(this.textarea,-100,0);return}var P=this.$cursorLayer.$pixelPos;if(P){U&&U.markerRange&&(P=this.$cursorLayer.getPixelPosition(U.markerRange.start,!0));var O=this.layerConfig,S=P.top,k=P.left;S-=O.offset;var N=U&&U.useTextareaForIME||v.isMobile?this.lineHeight:1;if(S<0||S>O.height-N){w.translate(this.textarea,0,0);return}var B=1,V=this.$size.height-N;if(!U)S+=this.lineHeight;else if(U.useTextareaForIME){var G=this.textarea.value;B=this.characterWidth*this.session.$getStringScreenWidth(G)[0]}else S+=this.lineHeight+2;k-=this.scrollLeft,k>this.$size.scrollerWidth-B&&(k=this.$size.scrollerWidth-B),k+=this.gutterWidth+this.margin.left,w.setStyle(L,"height",N+"px"),w.setStyle(L,"width",B+"px"),w.translate(this.textarea,Math.min(k,this.$size.scrollerWidth-B),Math.min(S,V))}}},F.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},F.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},F.prototype.getLastFullyVisibleRow=function(){var L=this.layerConfig,U=L.lastRow,P=this.session.documentToScreenRow(U,0)*L.lineHeight;return P-this.session.getScrollTop()>L.height-L.lineHeight?U-1:U},F.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},F.prototype.setPadding=function(L){this.$padding=L,this.$textLayer.setPadding(L),this.$cursorLayer.setPadding(L),this.$markerFront.setPadding(L),this.$markerBack.setPadding(L),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},F.prototype.setScrollMargin=function(L,U,P,O){var S=this.scrollMargin;S.top=L|0,S.bottom=U|0,S.right=O|0,S.left=P|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},F.prototype.setMargin=function(L,U,P,O){var S=this.margin;S.top=L|0,S.bottom=U|0,S.right=O|0,S.left=P|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},F.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},F.prototype.setHScrollBarAlwaysVisible=function(L){this.setOption("hScrollBarAlwaysVisible",L)},F.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},F.prototype.setVScrollBarAlwaysVisible=function(L){this.setOption("vScrollBarAlwaysVisible",L)},F.prototype.$updateScrollBarV=function(){var L=this.layerConfig.maxHeight,U=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(L-=(U-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>L-U&&(L=this.scrollTop+U,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(L+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},F.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},F.prototype.freeze=function(){this.$frozen=!0},F.prototype.unfreeze=function(){this.$frozen=!1},F.prototype.$renderChanges=function(L,U){if(this.$changes&&(L|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!L&&!U){this.$changes|=L;return}if(this.$size.$dirty)return this.$changes|=L,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",L),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var P=this.layerConfig;if(L&this.CHANGE_FULL||L&this.CHANGE_SIZE||L&this.CHANGE_TEXT||L&this.CHANGE_LINES||L&this.CHANGE_SCROLL||L&this.CHANGE_H_SCROLL){if(L|=this.$computeLayerConfig()|this.$loop.clear(),P.firstRow!=this.layerConfig.firstRow&&P.firstRowScreen==this.layerConfig.firstRowScreen){var O=this.scrollTop+(P.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;O>0&&(this.scrollTop=O,L=L|this.CHANGE_SCROLL,L|=this.$computeLayerConfig()|this.$loop.clear())}P=this.layerConfig,this.$updateScrollBarV(),L&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),w.translate(this.content,-this.scrollLeft,-P.offset);var S=P.width+2*this.$padding+"px",k=P.minHeight+"px";w.setStyle(this.content.style,"width",S),w.setStyle(this.content.style,"height",k)}if(L&this.CHANGE_H_SCROLL&&(w.translate(this.content,-this.scrollLeft,-P.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),L&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}if(L&this.CHANGE_SCROLL){this.$changedLines=null,L&this.CHANGE_TEXT||L&this.CHANGE_LINES?this.$textLayer.update(P):this.$textLayer.scrollLines(P),this.$showGutter&&(L&this.CHANGE_GUTTER||L&this.CHANGE_LINES?this.$gutterLayer.update(P):this.$gutterLayer.scrollLines(P)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P),this.$markerBack.update(P),this.$markerFront.update(P),this.$cursorLayer.update(P),this.$moveTextAreaToCursor(),this._signal("afterRender",L);return}L&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(P),this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):L&this.CHANGE_LINES?((this.$updateLines()||L&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):L&this.CHANGE_TEXT||L&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)):L&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(P),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(P)),L&this.CHANGE_CURSOR&&(this.$cursorLayer.update(P),this.$moveTextAreaToCursor()),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(P),L&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(P),this._signal("afterRender",L)},F.prototype.$autosize=function(){var L=this.session.getScreenLength()*this.lineHeight,U=this.$maxLines*this.lineHeight,P=Math.min(U,Math.max((this.$minLines||1)*this.lineHeight,L))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(P+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&P>this.$maxPixelHeight&&(P=this.$maxPixelHeight);var O=P<=2*this.lineHeight,S=!O&&L>U;if(P!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var k=this.container.clientWidth;this.container.style.height=P+"px",this.$updateCachedSize(!0,this.$gutterWidth,k,P),this.desiredHeight=P,this._signal("autosize")}},F.prototype.$computeLayerConfig=function(){var L=this.session,U=this.$size,P=U.height<=2*this.lineHeight,O=this.session.getScreenLength(),S=O*this.lineHeight,k=this.$getLongestLine(),N=!P&&(this.$hScrollBarAlwaysVisible||U.scrollerWidth-k-2*this.$padding<0),B=this.$horizScroll!==N;B&&(this.$horizScroll=N,this.scrollBarH.setVisible(N));var V=this.$vScroll;this.$maxLines&&this.lineHeight>1&&(this.$autosize(),P=U.height<=2*this.lineHeight);var G=U.scrollerHeight+this.lineHeight,Q=!this.$maxLines&&this.$scrollPastEnd?(U.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=Q;var te=this.scrollMargin;this.session.setScrollTop(Math.max(-te.top,Math.min(this.scrollTop,S-U.scrollerHeight+te.bottom))),this.session.setScrollLeft(Math.max(-te.left,Math.min(this.scrollLeft,k+2*this.$padding-U.scrollerWidth+te.right)));var he=!P&&(this.$vScrollBarAlwaysVisible||U.scrollerHeight-S+Q<0||this.scrollTop>te.top),ne=V!==he;ne&&(this.$vScroll=he,this.scrollBarV.setVisible(he));var ce=this.scrollTop%this.lineHeight,ue=Math.ceil(G/this.lineHeight)-1,le=Math.max(0,Math.round((this.scrollTop-ce)/this.lineHeight)),me=le+ue,Ae,$e,Te=this.lineHeight;le=L.screenToDocumentRow(le,0);var Ge=L.getFoldLine(le);Ge&&(le=Ge.start.row),Ae=L.documentToScreenRow(le,0),$e=L.getRowLength(le)*Te,me=Math.min(L.screenToDocumentRow(me,0),L.getLength()-1),G=U.scrollerHeight+L.getRowLength(me)*Te+$e,ce=this.scrollTop-Ae*Te;var je=0;return(this.layerConfig.width!=k||B)&&(je=this.CHANGE_H_SCROLL),(B||ne)&&(je|=this.$updateCachedSize(!0,this.gutterWidth,U.width,U.height),this._signal("scrollbarVisibilityChanged"),ne&&(k=this.$getLongestLine())),this.layerConfig={width:k,padding:this.$padding,firstRow:le,firstRowScreen:Ae,lastRow:me,lineHeight:Te,characterWidth:this.characterWidth,minHeight:G,maxHeight:S,offset:ce,gutterOffset:Te?Math.max(0,Math.ceil((ce+U.height-U.scrollerHeight)/Te)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(k-this.$padding),je},F.prototype.$updateLines=function(){if(this.$changedLines){var L=this.$changedLines.firstRow,U=this.$changedLines.lastRow;this.$changedLines=null;var P=this.layerConfig;if(!(L>P.lastRow+1)&&!(U<P.firstRow)){if(U===1/0){this.$showGutter&&this.$gutterLayer.update(P),this.$textLayer.update(P);return}return this.$textLayer.updateLines(P,L,U),!0}}},F.prototype.$getLongestLine=function(){var L=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(L+=1),this.$textLayer&&L>this.$textLayer.MAX_LINE_LENGTH&&(L=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(L*this.characterWidth))},F.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},F.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},F.prototype.addGutterDecoration=function(L,U){this.$gutterLayer.addGutterDecoration(L,U)},F.prototype.removeGutterDecoration=function(L,U){this.$gutterLayer.removeGutterDecoration(L,U)},F.prototype.updateBreakpoints=function(L){this._rows=L,this.$loop.schedule(this.CHANGE_GUTTER)},F.prototype.setAnnotations=function(L){this.$gutterLayer.setAnnotations(L),this.$loop.schedule(this.CHANGE_GUTTER)},F.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},F.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},F.prototype.showCursor=function(){this.$cursorLayer.showCursor()},F.prototype.scrollSelectionIntoView=function(L,U,P){this.scrollCursorIntoView(L,P),this.scrollCursorIntoView(U,P)},F.prototype.scrollCursorIntoView=function(L,U,P){if(this.$size.scrollerHeight!==0){var O=this.$cursorLayer.getPixelPosition(L),S=O.left,k=O.top,N=P&&P.top||0,B=P&&P.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var V=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;V+N>k?(U&&V+N>k+this.lineHeight&&(k-=U*this.$size.scrollerHeight),k===0&&(k=-this.scrollMargin.top),this.session.setScrollTop(k)):V+this.$size.scrollerHeight-B<k+this.lineHeight&&(U&&V+this.$size.scrollerHeight-B<k-this.lineHeight&&(k+=U*this.$size.scrollerHeight),this.session.setScrollTop(k+this.lineHeight+B-this.$size.scrollerHeight));var G=this.scrollLeft,Q=2*this.layerConfig.characterWidth;S-Q<G?(S-=Q,S<this.$padding+Q&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=Q,G+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):G<=this.$padding&&S-G<this.characterWidth&&this.session.setScrollLeft(0))}},F.prototype.getScrollTop=function(){return this.session.getScrollTop()},F.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},F.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},F.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},F.prototype.scrollToRow=function(L){this.session.setScrollTop(L*this.lineHeight)},F.prototype.alignCursor=function(L,U){typeof L=="number"&&(L={row:L,column:0});var P=this.$cursorLayer.getPixelPosition(L),O=this.$size.scrollerHeight-this.lineHeight,S=P.top-O*(U||0);return this.session.setScrollTop(S),S},F.prototype.$calcSteps=function(L,U){var P=0,O=this.STEPS,S=[],k=function(N,B,V){return V*(Math.pow(N-1,3)+1)+B};for(P=0;P<O;++P)S.push(k(P/this.STEPS,L,U-L));return S},F.prototype.scrollToLine=function(L,U,P,O){var S=this.$cursorLayer.getPixelPosition({row:L,column:0}),k=S.top;U&&(k-=this.$size.scrollerHeight/2);var N=this.scrollTop;this.session.setScrollTop(k),P!==!1&&this.animateScrolling(N,O)},F.prototype.animateScrolling=function(L,U){var P=this.scrollTop;if(!this.$animatedScroll)return;var O=this;if(L==P)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(L=S[0],L==P))return}var k=O.$calcSteps(L,P);this.$scrollAnimation={from:L,to:P,steps:k},clearInterval(this.$timer),O.session.setScrollTop(k.shift()),O.session.$scrollTop=P;function N(){O.$timer=clearInterval(O.$timer),O.$scrollAnimation=null,O.$stopAnimation=!1,U&&U()}this.$timer=setInterval(function(){if(O.$stopAnimation){N();return}if(!O.session)return clearInterval(O.$timer);k.length?(O.session.setScrollTop(k.shift()),O.session.$scrollTop=P):P!=null?(O.session.$scrollTop=-1,O.session.setScrollTop(P),P=null):N()},10)},F.prototype.scrollToY=function(L){this.scrollTop!==L&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=L)},F.prototype.scrollToX=function(L){this.scrollLeft!==L&&(this.scrollLeft=L),this.$loop.schedule(this.CHANGE_H_SCROLL)},F.prototype.scrollTo=function(L,U){this.session.setScrollTop(U),this.session.setScrollLeft(L)},F.prototype.scrollBy=function(L,U){U&&this.session.setScrollTop(this.session.getScrollTop()+U),L&&this.session.setScrollLeft(this.session.getScrollLeft()+L)},F.prototype.isScrollableBy=function(L,U){if(U<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||U>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||L<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||L>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},F.prototype.pixelToScreenCoordinates=function(L,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var O=this.$fontMetrics.transformCoordinates([L,U]);L=O[1]-this.gutterWidth-this.margin.left,U=O[0]}else P=this.scroller.getBoundingClientRect();var S=L+this.scrollLeft-P.left-this.$padding,k=S/this.characterWidth,N=Math.floor((U+this.scrollTop-P.top)/this.lineHeight),B=this.$blockCursor?Math.floor(k):Math.round(k);return{row:N,column:B,side:k-B>0?1:-1,offsetX:S}},F.prototype.screenToTextCoordinates=function(L,U){var P;if(this.$hasCssTransforms){P={top:0,left:0};var O=this.$fontMetrics.transformCoordinates([L,U]);L=O[1]-this.gutterWidth-this.margin.left,U=O[0]}else P=this.scroller.getBoundingClientRect();var S=L+this.scrollLeft-P.left-this.$padding,k=S/this.characterWidth,N=this.$blockCursor?Math.floor(k):Math.round(k),B=Math.floor((U+this.scrollTop-P.top)/this.lineHeight);return this.session.screenToDocumentPosition(B,Math.max(N,0),S)},F.prototype.textToScreenCoordinates=function(L,U){var P=this.scroller.getBoundingClientRect(),O=this.session.documentToScreenPosition(L,U),S=this.$padding+(this.session.$bidiHandler.isBidiRow(O.row,L)?this.session.$bidiHandler.getPosLeft(O.column):Math.round(O.column*this.characterWidth)),k=O.row*this.lineHeight;return{pageX:P.left+S-this.scrollLeft,pageY:P.top+k-this.scrollTop}},F.prototype.visualizeFocus=function(){w.addCssClass(this.container,"ace_focus")},F.prototype.visualizeBlur=function(){w.removeCssClass(this.container,"ace_focus")},F.prototype.showComposition=function(L){this.$composition=L,L.cssText||(L.cssText=this.textarea.style.cssText),L.useTextareaForIME==null&&(L.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(w.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):L.markerId=this.session.addMarker(L.markerRange,"ace_composition_marker","text")},F.prototype.setCompositionText=function(L){var U=this.session.selection.cursor;this.addToken(L,"composition_placeholder",U.row,U.column),this.$moveTextAreaToCursor()},F.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),w.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var L=this.session.selection.cursor;this.removeExtraToken(L.row,L.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},F.prototype.setGhostText=function(L,U){var P=this.session.selection.cursor,O=U||{row:P.row,column:P.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(L,O);this.addToken(S[0].text,"ghost_text",O.row,O.column),this.$ghostText={text:L,position:{row:O.row,column:O.column}};var k=w.createElement("div");if(S.length>1){var N=this.hideTokensAfterPosition(O.row,O.column),B;S.slice(1).forEach(function(ne){var ce=w.createElement("div"),ue=w.createElement("span");ue.className="ace_ghost_text",ne.wrapped&&(ce.className="ghost_text_line_wrapped"),ne.text.length===0&&(ne.text=" "),ue.appendChild(w.createTextNode(ne.text)),ce.appendChild(ue),k.appendChild(ce),B=ce}),N.forEach(function(ne){var ce=w.createElement("span");R(ne.type)||(ce.className="ace_"+ne.type.replace(/\./g," ace_")),ce.appendChild(w.createTextNode(ne.value)),B.appendChild(ce)}),this.$ghostTextWidget={el:k,row:O.row,column:O.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var V=this.$cursorLayer.getPixelPosition(O,!0),G=this.container,Q=G.getBoundingClientRect().height,te=S.length*this.lineHeight,he=te<Q-V.top;if(he)return;te<Q?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(O.row)}},F.prototype.$calculateWrappedTextChunks=function(L,U){var P=this.$size.scrollerWidth-this.$padding*2,O=Math.floor(P/this.characterWidth)-2;O=O<=0?60:O;for(var S=L.split(/\r?\n/),k=[],N=0;N<S.length;N++){var B=this.session.$getDisplayTokens(S[N],U.column),V=this.session.$computeWrapSplits(B,O,this.session.$tabSize);if(V.length>0){var G=0;V.push(S[N].length);for(var Q=0;Q<V.length;Q++){var te=S[N].slice(G,V[Q]);k.push({text:te,wrapped:!0}),G=V[Q]}}else k.push({text:S[N],wrapped:!1})}return k},F.prototype.removeGhostText=function(){if(this.$ghostText){var L=this.$ghostText.position;this.removeExtraToken(L.row,L.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},F.prototype.addToken=function(L,U,P,O){var S=this.session;S.bgTokenizer.lines[P]=null;var k={type:U,value:L},N=S.getTokens(P);if(O==null||!N.length)N.push(k);else for(var B=0,V=0;V<N.length;V++){var G=N[V];if(B+=G.value.length,O<=B){var Q=G.value.length-(B-O),te=G.value.slice(0,Q),he=G.value.slice(Q);N.splice(V,1,{type:G.type,value:te},k,{type:G.type,value:he});break}}this.updateLines(P,P)},F.prototype.hideTokensAfterPosition=function(L,U){for(var P=this.session.getTokens(L),O=0,S=!1,k=[],N=0;N<P.length;N++){var B=P[N];if(O+=B.value.length,B.type!=="ghost_text"){if(S){k.push({type:B.type,value:B.value}),B.type="hidden_token";continue}O===U&&(S=!0)}}return this.updateLines(L,L),k},F.prototype.removeExtraToken=function(L,U){this.session.bgTokenizer.lines[L]=null,this.updateLines(L,L)},F.prototype.setTheme=function(L,U){var P=this;if(this.$themeId=L,P._dispatchEvent("themeChange",{theme:L}),!L||typeof L=="string"){var O=L||this.$options.theme.initialValue;p.loadModule(["theme",O],S)}else S(L);function S(k){if(P.$themeId!=L)return U&&U();if(!k||!k.cssClass)throw new Error("couldn't load module "+L+" or it didn't call define");k.$id&&(P.$themeId=k.$id),w.importCssString(k.cssText,k.cssClass,P.container),P.theme&&w.removeCssClass(P.container,P.theme.cssClass);var N="padding"in k?k.padding:"padding"in(P.theme||{})?4:P.$padding;P.$padding&&N!=P.$padding&&P.setPadding(N),P.$theme=k.cssClass,P.theme=k,w.addCssClass(P.container,k.cssClass),w.setCssClass(P.container,"ace_dark",k.isDark),P.$size&&(P.$size.width=0,P.$updateSizeAsync()),P._dispatchEvent("themeLoaded",{theme:k}),U&&U(),v.isSafari&&P.scroller&&(P.scroller.style.background="red",P.scroller.style.background="")}},F.prototype.getTheme=function(){return this.$themeId},F.prototype.setStyle=function(L,U){w.setCssClass(this.container,L,U!==!1)},F.prototype.unsetStyle=function(L){w.removeCssClass(this.container,L)},F.prototype.setCursorStyle=function(L){w.setStyle(this.scroller.style,"cursor",L)},F.prototype.setMouseCursor=function(L){w.setStyle(this.scroller.style,"cursor",L)},F.prototype.attachToShadowRoot=function(){w.importCssString(M,"ace_editor.css",this.container)},F.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},F.prototype.$updateCustomScrollbar=function(L){var U=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,L===!0?(this.scrollBarV=new h(this.container,this),this.scrollBarH=new a(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(P){U.$scrollAnimation||U.session.setScrollTop(P.data-U.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){U.$scrollAnimation||U.session.setScrollLeft(P.data-U.scrollMargin.left)}),this.$scrollDecorator=new _(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new n(this.container,this),this.scrollBarH=new r(this.container,this),this.scrollBarV.addEventListener("scroll",function(P){U.$scrollAnimation||U.session.setScrollTop(P.data-U.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(P){U.$scrollAnimation||U.session.setScrollLeft(P.data-U.scrollMargin.left)}))},F.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var L=this;this.$resizeTimer=C.delayedCall(function(){L.destroyed||L.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(U){var P=U[0].contentRect.width,O=U[0].contentRect.height;Math.abs(L.$size.width-P)>1||Math.abs(L.$size.height-O)>1?L.$resizeTimer.delay():L.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},F}();I.prototype.CHANGE_CURSOR=1,I.prototype.CHANGE_MARKER=2,I.prototype.CHANGE_GUTTER=4,I.prototype.CHANGE_SCROLL=8,I.prototype.CHANGE_LINES=16,I.prototype.CHANGE_TEXT=32,I.prototype.CHANGE_SIZE=64,I.prototype.CHANGE_MARKER_BACK=128,I.prototype.CHANGE_MARKER_FRONT=256,I.prototype.CHANGE_FULL=512,I.prototype.CHANGE_H_SCROLL=1024,I.prototype.$changes=0,I.prototype.$padding=null,I.prototype.$frozen=!1,I.prototype.STEPS=8,b.implement(I.prototype,E),p.defineOptions(I.prototype,"renderer",{useResizeObserver:{set:function(F){!F&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):F&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(F){this.$textLayer.setShowInvisibles(F)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(F){typeof F=="number"&&(this.$printMarginColumn=F),this.$showPrintMargin=!!F,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(F){this.$gutter.style.display=F?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(F){this.$gutterLayer.$useSvgGutterIcons=F},initialValue:!1},showFoldedAnnotations:{set:function(F){this.$gutterLayer.$showFoldedAnnotations=F},initialValue:!1},fadeFoldWidgets:{set:function(F){w.setCssClass(this.$gutter,"ace_fade-fold-widgets",F)},initialValue:!1},showFoldWidgets:{set:function(F){this.$gutterLayer.setShowFoldWidgets(F),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(F){this.$textLayer.setDisplayIndentGuides(F)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(F){this.$textLayer.setHighlightIndentGuides(F)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(F){this.$gutterLayer.setHighlightGutterLine(F),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(F){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(F){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(F){typeof F=="number"&&(F=F+"px"),this.container.style.fontSize=F,this.updateFontSize()},initialValue:12},fontFamily:{set:function(F){this.container.style.fontFamily=F,this.updateFontSize()}},maxLines:{set:function(F){this.updateFull()}},minLines:{set:function(F){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(F){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(F){F=+F||0,this.$scrollPastEnd!=F&&(this.$scrollPastEnd=F,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(F){this.$gutterLayer.$fixedWidth=!!F,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(F){this.$updateCustomScrollbar(F)},initialValue:!1},theme:{set:function(F){this.setTheme(F)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),l.VirtualRenderer=I}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/net"),C=e("../lib/event_emitter").EventEmitter,p=e("../config");function g(r){var n="importScripts('"+w.qualifyURL(r)+"');";try{return new Blob([n],{type:"application/javascript"})}catch{var a=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,h=new a;return h.append(n),h.getBlob("application/javascript")}}function i(r){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(p.get("loadWorkerFromBlob")){var n=g(r),a=window.URL||window.webkitURL,h=a.createObjectURL(n);return new Worker(h)}return new Worker(r)}var s=function(r){r.postMessage||(r=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=r,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){b.implement(this,C),this.$createWorkerFromOldConfig=function(r,n,a,h,m){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),p.get("packaged")||!e.toUrl)h=h||p.moduleUrl(n,"worker");else{var y=this.$normalizePath;h=h||y(e.toUrl("ace/worker/worker.js",null,"_"));var E={};r.forEach(function(M){E[M]=y(e.toUrl(M,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=i(h),m&&this.send("importScripts",m),this.$worker.postMessage({init:!0,tlns:E,module:n,classname:a}),this.$worker},this.onMessage=function(r){var n=r.data;switch(n.type){case"event":this._signal(n.name,{data:n.data});break;case"call":var a=this.callbacks[n.id];a&&(a(n.data),delete this.callbacks[n.id]);break;case"error":this.reportError(n.data);break;case"log":window.console&&console.log&&console.log.apply(console,n.data);break}},this.reportError=function(r){window.console&&console.error&&console.error(r)},this.$normalizePath=function(r){return w.qualifyURL(r)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(r){r.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(r,n){this.$worker.postMessage({command:r,args:n})},this.call=function(r,n,a){if(a){var h=this.callbackId++;this.callbacks[h]=a,n.push(h)}this.send(r,n)},this.emit=function(r,n){try{n.data&&n.data.err&&(n.data.err={message:n.data.err.message,stack:n.data.err.stack,code:n.data.err.code}),this.$worker&&this.$worker.postMessage({event:r,data:{data:n.data}})}catch(a){console.error(a.stack)}},this.attachToDocument=function(r){this.$doc&&this.terminate(),this.$doc=r,this.call("setValue",[r.getValue()]),r.on("change",this.changeListener,!0)},this.changeListener=function(r){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),r.action=="insert"?this.deltaQueue.push(r.start,r.lines):this.deltaQueue.push(r.start,r.end)},this.$sendDeltaQueue=function(){var r=this.deltaQueue;r&&(this.deltaQueue=null,r.length>50&&r.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:r}))}}).call(s.prototype);var o=function(r,n,a){var h=null,m=!1,y=Object.create(C),E=[],M=new s({messageBuffer:E,terminate:function(){},postMessage:function(v){E.push(v),h&&(m?setTimeout(_):_())}});M.setEmitSync=function(v){m=v};var _=function(){var v=E.shift();v.command?h[v.command].apply(h,v.args):v.event&&y._signal(v.event,v.data)};return y.postMessage=function(v){M.onMessage({data:v})},y.callback=function(v,R){this.postMessage({type:"call",id:R,data:v})},y.emit=function(v,R){this.postMessage({type:"event",name:v,data:R})},p.loadModule(["worker",n],function(v){for(h=new v[a](y);E.length;)_()}),M};l.UIWorkerClient=o,l.WorkerClient=s,l.createWorker=i}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,l,T){var b=e("./range").Range,w=e("./lib/event_emitter").EventEmitter,C=e("./lib/oop"),p=function(){function g(i,s,o,r,n,a){var h=this;this.length=s,this.session=i,this.doc=i.getDocument(),this.mainClass=n,this.othersClass=a,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){h.onCursorChange()})},this.$pos=o;var m=i.getUndoManager().$undoStack||i.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=m.length,this.setup(),i.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var i=this,s=this.doc,o=this.session;this.selectionBefore=o.selection.toJSON(),o.selection.inMultiSelectMode&&o.selection.toSingleRange(),this.pos=s.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=o.addMarker(new b(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var a=s.createAnchor(n.row,n.column);a.$insertRight=!0,a.detach(),i.others.push(a)}),o.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,s=this;this.othersActive=!0,this.others.forEach(function(o){o.markerId=i.addMarker(new b(o.row,o.column,o.row,o.column+s.length),s.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var i=0;i<this.others.length;i++)this.session.removeMarker(this.others[i].markerId)}},g.prototype.onUpdate=function(i){if(this.$updating)return this.updateAnchors(i);var s=i;if(s.start.row===s.end.row&&s.start.row===this.pos.row){this.$updating=!0;var o=i.action==="insert"?s.end.column-s.start.column:s.start.column-s.end.column,r=s.start.column>=this.pos.column&&s.start.column<=this.pos.column+this.length+1,n=s.start.column-this.pos.column;if(this.updateAnchors(i),r&&(this.length+=o),r&&!this.session.$fromUndo){if(i.action==="insert")for(var a=this.others.length-1;a>=0;a--){var h=this.others[a],m={row:h.row,column:h.column+n};this.doc.insertMergedLines(m,i.lines)}else if(i.action==="remove")for(var a=this.others.length-1;a>=0;a--){var h=this.others[a],m={row:h.row,column:h.column+n};this.doc.remove(new b(m.row,m.column,m.row,m.column-o))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(i){this.pos.onChange(i);for(var s=this.others.length;s--;)this.others[s].onChange(i);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var i=this,s=this.session,o=function(n,a){s.removeMarker(n.markerId),n.markerId=s.addMarker(new b(n.row,n.column,n.row,n.column+i.length),a,null,!1)};o(this.pos,this.mainClass);for(var r=this.others.length;r--;)o(this.others[r],this.othersClass)}},g.prototype.onCursorChange=function(i){if(!(this.$updating||!this.session)){var s=this.session.selection.getCursor();s.row===this.pos.row&&s.column>=this.pos.column&&s.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",i)):(this.hideOtherMarkers(),this._emit("cursorLeave",i))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var i=this.session.getUndoManager(),s=(i.$undoStack||i.$undostack).length-this.$undoStackDepth,o=0;o<s;o++)i.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();C.implement(p.prototype,w),l.PlaceHolder=p}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,l,T){var b=e("../lib/event"),w=e("../lib/useragent");function C(g,i){return g.row==i.row&&g.column==i.column}function p(g){var i=g.domEvent,s=i.altKey,o=i.shiftKey,r=i.ctrlKey,n=g.getAccelKey(),a=g.getButton();if(r&&w.isMac&&(a=i.button),g.editor.inMultiSelectMode&&a==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!r&&!s&&!n){a===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(a===0){var h=g.editor,m=h.selection,y=h.inMultiSelectMode,E=g.getDocumentPosition(),M=m.getCursor(),_=g.inSelection()||m.isEmpty()&&C(E,M),v=g.x,R=g.y,I=function(te){v=te.clientX,R=te.clientY},F=h.session,L=h.renderer.pixelToScreenCoordinates(v,R),U=L,P;if(h.$mouseHandler.$enableJumpToDef)r&&s||n&&s?P=o?"block":"add":s&&h.$blockSelectEnabled&&(P="block");else if(n&&!s){if(P="add",!y&&o)return}else s&&h.$blockSelectEnabled&&(P="block");if(P&&w.isMac&&i.ctrlKey&&h.$mouseHandler.cancelContextMenu(),P=="add"){if(!y&&_)return;if(!y){var O=m.toOrientedRange();h.addSelectionMarker(O)}var S=m.rangeList.rangeAtPoint(E);h.inVirtualSelectionMode=!0,o&&(S=null,O=m.ranges[0]||O,h.removeSelectionMarker(O)),h.once("mouseup",function(){var te=m.toOrientedRange();S&&te.isEmpty()&&C(S.cursor,te.cursor)?m.substractPoint(te.cursor):(o?m.substractPoint(O.cursor):O&&(h.removeSelectionMarker(O),m.addRange(O)),m.addRange(te)),h.inVirtualSelectionMode=!1})}else if(P=="block"){g.stop(),h.inVirtualSelectionMode=!0;var k,N=[],B=function(){var te=h.renderer.pixelToScreenCoordinates(v,R),he=F.screenToDocumentPosition(te.row,te.column,te.offsetX);C(U,te)&&C(he,m.lead)||(U=te,h.selection.moveToPosition(he),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(N),N=m.rectangularRangeBlock(U,L),h.$mouseHandler.$clickSelection&&N.length==1&&N[0].isEmpty()&&(N[0]=h.$mouseHandler.$clickSelection.clone()),N.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers())};y&&!n?m.toSingleRange():!y&&n&&(k=m.toOrientedRange(),h.addSelectionMarker(k)),o?L=F.documentToScreenPosition(m.lead):m.moveToPosition(E),U={row:-1,column:-1};var V=function(te){B(),clearInterval(Q),h.removeSelectionMarkers(N),N.length||(N=[m.toOrientedRange()]),k&&(h.removeSelectionMarker(k),m.toSingleRange(k));for(var he=0;he<N.length;he++)m.addRange(N[he]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null},G=B;b.capture(h.container,I,V);var Q=setInterval(function(){G()},20);return g.preventDefault()}}}l.onMouseDown=p}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,l,T){l.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(w){w.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(w){w.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(w){w.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(w){w.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(w){w.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(w){w.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(w){w.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(w){w.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(w){w.multiSelect.rangeCount>1?w.multiSelect.joinSelections():w.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(w){w.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(w){w.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(w){w.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],l.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(w){w.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(w){return w&&w.inMultiSelectMode}}];var b=e("../keyboard/hash_handler").HashHandler;l.keyboardHandler=new b(l.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,l,T){var b=e("./range_list").RangeList,w=e("./range").Range,C=e("./selection").Selection,p=e("./mouse/multi_select_handler").onMouseDown,g=e("./lib/event"),i=e("./lib/lang"),s=e("./commands/multi_select_commands");l.commands=s.defaultCommands.concat(s.multiSelectCommands);var o=e("./search").Search,r=new o;function n(M,_,v){return r.$options.wrap=!0,r.$options.needle=_,r.$options.backwards=v==-1,r.find(M)}var a=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(a.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(M,_){if(M){if(!this.inMultiSelectMode&&this.rangeCount===0){var v=this.toOrientedRange();if(this.rangeList.add(v),this.rangeList.add(M),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),_||this.fromOrientedRange(M);this.rangeList.removeAll(),this.rangeList.add(v),this.$onAddRange(v)}M.cursor||(M.cursor=M.end);var R=this.rangeList.add(M);return this.$onAddRange(M),R.length&&this.$onRemoveRange(R),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),_||this.fromOrientedRange(M)}},this.toSingleRange=function(M){M=M||this.ranges[0];var _=this.rangeList.removeAll();_.length&&this.$onRemoveRange(_),M&&this.fromOrientedRange(M)},this.substractPoint=function(M){var _=this.rangeList.substractPoint(M);if(_)return this.$onRemoveRange(_),_[0]},this.mergeOverlappingRanges=function(){var M=this.rangeList.merge();M.length&&this.$onRemoveRange(M)},this.$onAddRange=function(M){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(M),this._signal("addRange",{range:M})},this.$onRemoveRange=function(M){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var _=this.rangeList.ranges.pop();M.push(_),this.rangeCount=0}for(var v=M.length;v--;){var R=this.ranges.indexOf(M[v]);this.ranges.splice(R,1)}this._signal("removeRange",{ranges:M}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),_=_||this.ranges[0],_&&!_.isEqual(this.getRange())&&this.fromOrientedRange(_)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new b,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var M=this.ranges.length?this.ranges:[this.getRange()],_=[],v=0;v<M.length;v++){var R=M[v],I=R.start.row,F=R.end.row;if(I===F)_.push(R.clone());else{for(_.push(new w(I,R.start.column,I,this.session.getLine(I).length));++I<F;)_.push(this.getLineRange(I,!0));_.push(new w(F,0,F,R.end.column))}v==0&&!this.isBackwards()&&(_=_.reverse())}this.toSingleRange();for(var v=_.length;v--;)this.addRange(_[v])},this.joinSelections=function(){var M=this.rangeList.ranges,_=M[M.length-1],v=w.fromPoints(M[0].start,_.end);this.toSingleRange(),this.setSelectionRange(v,_.cursor==_.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var M=this.rangeList.ranges,_=M[M.length-1],v=w.fromPoints(M[0].start,_.end);this.toSingleRange(),this.setSelectionRange(v,_.cursor==_.start)}else{var R=this.session.documentToScreenPosition(this.cursor),I=this.session.documentToScreenPosition(this.anchor),F=this.rectangularRangeBlock(R,I);F.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(M,_,v){var R=[],I=M.column<_.column;if(I)var F=M.column,L=_.column,U=M.offsetX,P=_.offsetX;else var F=_.column,L=M.column,U=_.offsetX,P=M.offsetX;var O=M.row<_.row;if(O)var S=M.row,k=_.row;else var S=_.row,k=M.row;F<0&&(F=0),S<0&&(S=0),S==k&&(v=!0);for(var N,B=S;B<=k;B++){var V=w.fromPoints(this.session.screenToDocumentPosition(B,F,U),this.session.screenToDocumentPosition(B,L,P));if(V.isEmpty()){if(N&&m(V.end,N))break;N=V.end}V.cursor=I?V.start:V.end,R.push(V)}if(O&&R.reverse(),!v){for(var G=R.length-1;R[G].isEmpty()&&G>0;)G--;if(G>0)for(var Q=0;R[Q].isEmpty();)Q++;for(var te=G;te>=Q;te--)R[te].isEmpty()&&R.splice(te,1)}return R}}).call(C.prototype);var h=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(M){M.cursor||(M.cursor=M.end);var _=this.getSelectionStyle();return M.marker=this.session.addMarker(M,"ace_selection",_),this.session.$selectionMarkers.push(M),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,M},this.removeSelectionMarker=function(M){if(M.marker){this.session.removeMarker(M.marker);var _=this.session.$selectionMarkers.indexOf(M);_!=-1&&this.session.$selectionMarkers.splice(_,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(M){for(var _=this.session.$selectionMarkers,v=M.length;v--;){var R=M[v];if(R.marker){this.session.removeMarker(R.marker);var I=_.indexOf(R);I!=-1&&_.splice(I,1)}}this.session.selectionMarkerCount=_.length},this.$onAddRange=function(M){this.addSelectionMarker(M.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(M){this.removeSelectionMarkers(M.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(M){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(M){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(M){var _=M.command,v=M.editor;if(v.multiSelect){if(_.multiSelectAction)_.multiSelectAction=="forEach"?R=v.forEachSelection(_,M.args):_.multiSelectAction=="forEachLine"?R=v.forEachSelection(_,M.args,!0):_.multiSelectAction=="single"?(v.exitMultiSelectMode(),R=_.exec(v,M.args||{})):R=_.multiSelectAction(v,M.args||{});else{var R=_.exec(v,M.args||{});v.multiSelect.addRange(v.multiSelect.toOrientedRange()),v.multiSelect.mergeOverlappingRanges()}return R}},this.forEachSelection=function(M,_,v){if(!this.inVirtualSelectionMode){var R=v&&v.keepOrder,I=v==!0||v&&v.$byLines,F=this.session,L=this.selection,U=L.rangeList,P=(R?L:U).ranges,O;if(!P.length)return M.exec?M.exec(this,_||{}):M(this,_||{});var S=L._eventRegistry;L._eventRegistry={};var k=new C(F);this.inVirtualSelectionMode=!0;for(var N=P.length;N--;){if(I)for(;N>0&&P[N].start.row==P[N-1].end.row;)N--;k.fromOrientedRange(P[N]),k.index=N,this.selection=F.selection=k;var B=M.exec?M.exec(this,_||{}):M(this,_||{});!O&&B!==void 0&&(O=B),k.toOrientedRange(P[N])}k.detach(),this.selection=F.selection=L,this.inVirtualSelectionMode=!1,L._eventRegistry=S,L.mergeOverlappingRanges(),L.ranges[0]&&L.fromOrientedRange(L.ranges[0]);var V=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),V&&V.from==V.to&&this.renderer.animateScrolling(V.from),O}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var M="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var _=this.multiSelect.rangeList.ranges,v=[],R=0;R<_.length;R++)v.push(this.session.getTextRange(_[R]));var I=this.session.getDocument().getNewLineCharacter();M=v.join(I),M.length==(v.length-1)*I.length&&(M="")}else this.selection.isEmpty()||(M=this.session.getTextRange(this.getSelectionRange()));return M},this.$checkMultiselectChange=function(M,_){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var v=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&_==this.multiSelect.anchor)return;var R=_==this.multiSelect.anchor?v.cursor==v.start?v.end:v.start:v.cursor;R.row!=_.row||this.session.$clipPositionToDocument(R.row,R.column).column!=_.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(M,_,v){if(_=_||{},_.needle=M||_.needle,_.needle==null){var R=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();_.needle=this.session.getTextRange(R)}this.$search.set(_);var I=this.$search.findAll(this.session);if(!I.length)return 0;var F=this.multiSelect;v||F.toSingleRange(I[0]);for(var L=I.length;L--;)F.addRange(I[L],!0);return R&&F.rangeList.rangeAtPoint(R.start)&&F.addRange(R,!0),I.length},this.selectMoreLines=function(M,_){var v=this.selection.toOrientedRange(),R=v.cursor==v.end,I=this.session.documentToScreenPosition(v.cursor);this.selection.$desiredColumn&&(I.column=this.selection.$desiredColumn);var F=this.session.screenToDocumentPosition(I.row+M,I.column);if(v.isEmpty())var U=F;else var L=this.session.documentToScreenPosition(R?v.end:v.start),U=this.session.screenToDocumentPosition(L.row+M,L.column);if(R){var P=w.fromPoints(F,U);P.cursor=P.start}else{var P=w.fromPoints(U,F);P.cursor=P.end}if(P.desiredColumn=I.column,!this.selection.inMultiSelectMode)this.selection.addRange(v);else if(_)var O=v.cursor;this.selection.addRange(P),O&&this.selection.substractPoint(O)},this.transposeSelections=function(M){for(var _=this.session,v=_.multiSelect,R=v.ranges,I=R.length;I--;){var F=R[I];if(F.isEmpty()){var L=_.getWordRange(F.start.row,F.start.column);F.start.row=L.start.row,F.start.column=L.start.column,F.end.row=L.end.row,F.end.column=L.end.column}}v.mergeOverlappingRanges();for(var U=[],I=R.length;I--;){var F=R[I];U.unshift(_.getTextRange(F))}M<0?U.unshift(U.pop()):U.push(U.shift());for(var I=R.length;I--;){var F=R[I],P=F.clone();_.replace(F,U[I]),F.start.row=P.start.row,F.start.column=P.start.column}v.fromOrientedRange(v.ranges[0])},this.selectMore=function(M,_,v){var R=this.session,I=R.multiSelect,F=I.toOrientedRange();if(!(F.isEmpty()&&(F=R.getWordRange(F.start.row,F.start.column),F.cursor=M==-1?F.start:F.end,this.multiSelect.addRange(F),v))){var L=R.getTextRange(F),U=n(R,L,M);U&&(U.cursor=M==-1?U.start:U.end,this.session.unfold(U),this.multiSelect.addRange(U),this.renderer.scrollCursorIntoView(null,.5)),_&&this.multiSelect.substractPoint(F.cursor)}},this.alignCursors=function(){var M=this.session,_=M.multiSelect,v=_.ranges,R=-1,I=v.filter(function(G){if(G.cursor.row==R)return!0;R=G.cursor.row});if(!v.length||I.length==v.length-1){var F=this.selection.getRange(),L=F.start.row,U=F.end.row,P=L==U;if(P){var O=this.session.getLength(),S;do S=this.session.getLine(U);while(/[=:]/.test(S)&&++U<O);do S=this.session.getLine(L);while(/[=:]/.test(S)&&--L>0);L<0&&(L=0),U>=O&&(U=O-1)}var k=this.session.removeFullLines(L,U);k=this.$reAlignText(k,P),this.session.insert({row:L,column:0},k.join(`
|
|
950
|
-
`)+`
|
|
951
|
-
`),P||(F.start.column=0,F.end.column=k[k.length-1].length),this.selection.setRange(F)}else{I.forEach(function(G){_.substractPoint(G.cursor)});var N=0,B=1/0,V=v.map(function(G){var Q=G.cursor,te=M.getLine(Q.row),he=te.substr(Q.column).search(/\S/g);return he==-1&&(he=0),Q.column>N&&(N=Q.column),he<B&&(B=he),he});v.forEach(function(G,Q){var te=G.cursor,he=N-te.column,ne=V[Q]-B;he>ne?M.insert(te,i.stringRepeat(" ",he-ne)):M.remove(new w(te.row,te.column,te.row,te.column-he+ne)),G.start.column=G.end.column=N,G.start.row=G.end.row=te.row,G.cursor=G.end}),_.fromOrientedRange(v[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(M,_){var v=!0,R=!0,I,F,L;return M.map(function(k){var N=k.match(/(\s*)(.*?)(\s*)([=:].*)/);return N?I==null?(I=N[1].length,F=N[2].length,L=N[3].length,N):(I+F+L!=N[1].length+N[2].length+N[3].length&&(R=!1),I!=N[1].length&&(v=!1),I>N[1].length&&(I=N[1].length),F<N[2].length&&(F=N[2].length),L>N[3].length&&(L=N[3].length),N):[k]}).map(_?P:v?R?O:P:S);function U(k){return i.stringRepeat(" ",k)}function P(k){return k[2]?U(I)+k[2]+U(F-k[2].length+L)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function O(k){return k[2]?U(I+F-k[2].length)+k[2]+U(L)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}function S(k){return k[2]?U(I)+k[2]+U(L)+k[4].replace(/^([=:])\s+/,"$1 "):k[0]}}}).call(h.prototype);function m(M,_){return M.row==_.row&&M.column==_.column}l.onSessionChange=function(M){var _=M.session;_&&!_.multiSelect&&(_.$selectionMarkers=[],_.selection.$initRangeList(),_.multiSelect=_.selection),this.multiSelect=_&&_.multiSelect;var v=M.oldSession;v&&(v.multiSelect.off("addRange",this.$onAddRange),v.multiSelect.off("removeRange",this.$onRemoveRange),v.multiSelect.off("multiSelect",this.$onMultiSelect),v.multiSelect.off("singleSelect",this.$onSingleSelect),v.multiSelect.lead.off("change",this.$checkMultiselectChange),v.multiSelect.anchor.off("change",this.$checkMultiselectChange)),_&&(_.multiSelect.on("addRange",this.$onAddRange),_.multiSelect.on("removeRange",this.$onRemoveRange),_.multiSelect.on("multiSelect",this.$onMultiSelect),_.multiSelect.on("singleSelect",this.$onSingleSelect),_.multiSelect.lead.on("change",this.$checkMultiselectChange),_.multiSelect.anchor.on("change",this.$checkMultiselectChange)),_&&this.inMultiSelectMode!=_.selection.inMultiSelectMode&&(_.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(M){M.$multiselectOnSessionChange||(M.$onAddRange=M.$onAddRange.bind(M),M.$onRemoveRange=M.$onRemoveRange.bind(M),M.$onMultiSelect=M.$onMultiSelect.bind(M),M.$onSingleSelect=M.$onSingleSelect.bind(M),M.$multiselectOnSessionChange=l.onSessionChange.bind(M),M.$checkMultiselectChange=M.$checkMultiselectChange.bind(M),M.$multiselectOnSessionChange(M),M.on("changeSession",M.$multiselectOnSessionChange),M.on("mousedown",p),M.commands.addCommands(s.defaultCommands),E(M))}function E(M){if(!M.textInput)return;var _=M.textInput.getElement(),v=!1;g.addListener(_,"keydown",function(I){var F=I.keyCode==18&&!(I.ctrlKey||I.shiftKey||I.metaKey);M.$blockSelectEnabled&&F?v||(M.renderer.setMouseCursor("crosshair"),v=!0):v&&R()},M),g.addListener(_,"keyup",R,M),g.addListener(_,"blur",R,M);function R(I){v&&(M.renderer.setMouseCursor(""),v=!1)}}l.MultiSelect=y,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(M){y(this),M?this.on("mousedown",p):this.off("mousedown",p)},value:!0},enableBlockSelect:{set:function(M){this.$blockSelectEnabled=M},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,l,T){var b=e("../../range").Range,w=l.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(C,p,g){var i=C.getLine(g);return this.foldingStartMarker.test(i)?"start":p=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(C,p,g){return null},this.indentationBlock=function(C,p,g){var i=/\S/,s=C.getLine(p),o=s.search(i);if(o!=-1){for(var r=g||s.length,n=C.getLength(),a=p,h=p;++p<n;){var m=C.getLine(p).search(i);if(m!=-1){if(m<=o){var y=C.getTokenAt(p,0);if(!y||y.type!=="string")break}h=p}}if(h>a){var E=C.getLine(h).length;return new b(a,r,h,E)}}},this.openingBracketBlock=function(C,p,g,i,s){var o={row:g,column:i+1},r=C.$findClosingBracket(p,o,s);if(r){var n=C.foldWidgets[r.row];return n==null&&(n=C.getFoldWidget(r.row)),n=="start"&&r.row>o.row&&(r.row--,r.column=C.getLine(r.row).length),b.fromPoints(o,r)}},this.closingBracketBlock=function(C,p,g,i,s){var o={row:g,column:i},r=C.$findOpeningBracket(p,o);if(r)return r.column++,o.column--,b.fromPoints(r,o)}}).call(w.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,l,T){var b=e("../lib/dom"),w=e("../range").Range,C=e("../config").nls;function p(i,s,o){for(var r=0,n=i.length-1;r<=n;){var a=r+n>>1,h=o(s,i[a]);if(h>0)r=a+1;else if(h<0)n=a-1;else return a}return-(r+1)}function g(i,s,o){var r=i.getAnnotations().sort(w.comparePoints);if(r.length){var n=p(r,{row:s,column:-1},w.comparePoints);n<0&&(n=-n-1),n>=r.length?n=o>0?0:r.length-1:n===0&&o<0&&(n=r.length-1);var a=r[n];if(!(!a||!o)){if(a.row===s){do a=r[n+=o];while(a&&a.row===s);if(!a)return r.slice()}var h=[];s=a.row;do h[o<0?"unshift":"push"](a),a=r[n+=o];while(a&&a.row==s);return h.length&&h}}}l.showErrorMarker=function(i,s){var o=i.session,r=i.getCursorPosition(),n=r.row,a=o.widgetManager.getWidgetsAtRow(n).filter(function(I){return I.type=="errorMarker"})[0];a?a.destroy():n-=s;var h=g(o,n,s),m;if(h){var y=h[0];r.column=(y.pos&&typeof y.column!="number"?y.pos.sc:y.column)||0,r.row=y.row,m=i.renderer.$gutterLayer.$annotations[r.row]}else{if(a)return;m={displayText:[C("error-marker.good-state","Looks good!")],className:"ace_ok"}}i.session.unfold(r.row),i.selection.moveToPosition(r);var E={row:r.row,fixedWidth:!0,coverGutter:!0,el:b.createElement("div"),type:"errorMarker"},M=E.el.appendChild(b.createElement("div")),_=E.el.appendChild(b.createElement("div"));_.className="error_widget_arrow "+m.className;var v=i.renderer.$cursorLayer.getPixelPosition(r).left;_.style.left=v+i.renderer.gutterWidth-5+"px",E.el.className="error_widget_wrapper",M.className="error_widget "+m.className,m.displayText.forEach(function(I,F){M.appendChild(b.createTextNode(I)),F<m.displayText.length-1&&M.appendChild(b.createElement("br"))}),M.appendChild(b.createElement("div"));var R=function(I,F,L){if(F===0&&(L==="esc"||L==="return"))return E.destroy(),{command:"null"}};E.destroy=function(){i.$mouseHandler.isMousePressed||(i.keyBinding.removeKeyboardHandler(R),o.widgetManager.removeLineWidget(E),i.off("changeSelection",E.destroy),i.off("changeSession",E.destroy),i.off("mouseup",E.destroy),i.off("change",E.destroy))},i.keyBinding.addKeyboardHandler(R),i.on("changeSelection",E.destroy),i.on("changeSession",E.destroy),i.on("mouseup",E.destroy),i.on("change",E.destroy),i.session.widgetManager.addLineWidget(E),E.el.onmousedown=i.focus.bind(i),i.renderer.scrollCursorIntoView(null,.5,{bottom:E.el.offsetHeight})},b.importCssString(`
|
|
952
|
-
.error_widget_wrapper {
|
|
953
|
-
background: inherit;
|
|
954
|
-
color: inherit;
|
|
955
|
-
border:none
|
|
956
|
-
}
|
|
957
|
-
.error_widget {
|
|
958
|
-
border-top: solid 2px;
|
|
959
|
-
border-bottom: solid 2px;
|
|
960
|
-
margin: 5px 0;
|
|
961
|
-
padding: 10px 40px;
|
|
962
|
-
white-space: pre-wrap;
|
|
963
|
-
}
|
|
964
|
-
.error_widget.ace_error, .error_widget_arrow.ace_error{
|
|
965
|
-
border-color: #ff5a5a
|
|
966
|
-
}
|
|
967
|
-
.error_widget.ace_warning, .error_widget_arrow.ace_warning{
|
|
968
|
-
border-color: #F1D817
|
|
969
|
-
}
|
|
970
|
-
.error_widget.ace_info, .error_widget_arrow.ace_info{
|
|
971
|
-
border-color: #5a5a5a
|
|
972
|
-
}
|
|
973
|
-
.error_widget.ace_ok, .error_widget_arrow.ace_ok{
|
|
974
|
-
border-color: #5aaa5a
|
|
975
|
-
}
|
|
976
|
-
.error_widget_arrow {
|
|
977
|
-
position: absolute;
|
|
978
|
-
border: solid 5px;
|
|
979
|
-
border-top-color: transparent!important;
|
|
980
|
-
border-right-color: transparent!important;
|
|
981
|
-
border-left-color: transparent!important;
|
|
982
|
-
top: -5px;
|
|
983
|
-
}
|
|
984
|
-
`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,l,T){e("./loader_build")(l);var b=e("./lib/dom"),w=e("./range").Range,C=e("./editor").Editor,p=e("./edit_session").EditSession,g=e("./undomanager").UndoManager,i=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),l.config=e("./config"),l.edit=function(o,r){if(typeof o=="string"){var n=o;if(o=document.getElementById(n),!o)throw new Error("ace.edit can't find div #"+n)}if(o&&o.env&&o.env.editor instanceof C)return o.env.editor;var a="";if(o&&/input|textarea/i.test(o.tagName)){var h=o;a=h.value,o=b.createElement("pre"),h.parentNode.replaceChild(o,h)}else o&&(a=o.textContent,o.innerHTML="");var m=l.createEditSession(a),y=new C(new i(o),m,r),E={document:m,editor:y,onResize:y.resize.bind(y,null)};return h&&(E.textarea=h),y.on("destroy",function(){E.editor.container.env=null}),y.container.env=y.env=E,y},l.createEditSession=function(o,r){var n=new p(o,r);return n.setUndoManager(new g),n},l.Range=w,l.Editor=C,l.EditSession=p,l.UndoManager=g,l.VirtualRenderer=i;var s=l.config.version;l.version=s}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var l=function(){return this}();!l&&typeof window<"u"&&(l=window),!l&&typeof self<"u"&&(l=self),l.ace||(l.ace=e);for(var T in e)e.hasOwnProperty(T)&&(l.ace[T]=e[T]);l.ace.default=l.ace,c&&(c.exports=l.ace)})}()}(hc)),hc.exports}var xx=bx(),dc={exports:{}},Vd;function kx(){return Vd||(Vd=1,function(c,u){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=l.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};l.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},l.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},l.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var p=l.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=l.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},i=l.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},s=l.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},o=l.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},r=l.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},n=l.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},a=l.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},h=function(){var m="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",y="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",E="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",M="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",_=this.$keywords=this.createKeywordMapper({keyword:y,"constant.language":E,"variable.language":M,"support.function":m,"invalid.deprecated":"debugger"},"identifier"),v=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,R={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:v},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:v},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(I,F,L){L.length&&(L=[]);var U=I[I.length-1];return L.unshift(U,F),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(I,F,L){L.length&&(L=[]);var U=I[I.length-1];return L.unshift(U,F),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(I,F,L){L.length&&(L=[]);var U=I[I.length-1];return L.unshift(U,F),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(I,F,L){L.length&&(L=[]);var U=I[I.length-1];return L.unshift(U,F),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(I,F,L){L.length&&(L=[]);var U=I[I.length-1];return L.unshift(U,F),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},a,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+v+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},o,r,C,p,n,g,i,s,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:_,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(I,F,L){var U=I[2]=="-"||I[2]=="~"?"indentedHeredoc":"heredoc",P=I.split(this.splitRegex);return L.push(U,P[3]),[{type:"constant",value:P[1]},{type:"string",value:P[2]},{type:"support.class",value:P[3]},{type:"string",value:P[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(I,F,L){return I===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(I,F,L){return I===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(I,F){return F[0]==="heredoc"||F[0]==="indentedHeredoc"?F[0]:I}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(I,F,L){return this.next="",I=="}"&&L.length>1&&L[1]!="start"&&(L.shift(),this.next=L.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(I,F,L){return L.length&&I===L[0]?(L.unshift(I,F),this.token):"string"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(I,F,L){return L.length&&I===R[L[0]]?(L.shift(),this.next=L.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(I,F,L){return L.length&&I===L[0]?(L.unshift(I,F),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(I,F,L){return L.length&&I===R[L[0]]?(L.shift(),this.next=L.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(I,F,L){return L.length&&I===L[0]?(L.unshift(I,F),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(I,F,L){return L.length&&I===R[L[0]]?(L.shift(),this.next=L.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(I,F,L){return L.length&&I===L[0]?(L.unshift(I,F),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:v},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(I,F,L){return L.length&&I===R[L[0]]?(L.shift(),this.next=L.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(I,F,L){return L.length&&I===L[0]?(L.unshift(I,F),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(I,F,L){return L.length&&I[0]===R[L[0]]?(L.shift(),this.next=L.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};b.inherits(h,w),l.RubyHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,l,T){var b=e("../range").Range,w=function(){};(function(){this.checkOutdent=function(C,p){return/^\s+$/.test(C)?/^\s*\}/.test(p):!1},this.autoOutdent=function(C,p){var g=C.getLine(p),i=g.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=C.findMatchingBracket({row:p,column:s});if(!o||o.row==p)return 0;var r=this.$getIndent(C.getLine(o.row));C.replace(new b(p,0,p,s-1),r)},this.$getIndent=function(C){return C.match(/^\s*/)[0]}}).call(w.prototype),l.MatchingBraceOutdent=w}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,l,T){var b=e("../../lib/oop"),w=e("./fold_mode").FoldMode,C=e("../../range").Range,p=e("../../token_iterator").TokenIterator,g=l.FoldMode=function(){};b.inherits(g,w),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(i,s,o){var r=i.getLine(o),n=this.foldingStartMarker.test(r),a=this.foldingStopMarker.test(r);if(n&&!a){var h=r.match(this.foldingStartMarker);if(h[1]){if((h[1]=="if"||h[1]=="else"||h[1]=="while"||h[1]=="until"||h[1]=="unless")&&(h[1]=="else"&&/^\s*else\s*$/.test(r)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(r)===!1)||h[1]=="when"&&/\sthen\s/.test(r)===!0)return;if(i.getTokenAt(o,h.index+2).type==="keyword")return"start"}else if(!h[3]||i.getTokenAt(o,h.index+1).type==="comment.multiline")return"start"}if(s!="markbeginend"||!a||n&&a)return"";var h=r.match(this.foldingStopMarker);if(h[3]==="end"){if(i.getTokenAt(o,h.index+1).type==="keyword")return"end"}else if(!h[1]||i.getTokenAt(o,h.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(i,s,o){var r=i.doc.getLine(o),n=this.foldingStartMarker.exec(r);if(n)return n[1]||n[3]?this.rubyBlock(i,o,n.index+2):this.openingBracketBlock(i,"{",o,n.index);var n=this.foldingStopMarker.exec(r);if(n)return n[3]==="end"&&i.getTokenAt(o,n.index+1).type==="keyword"?this.rubyBlock(i,o,n.index+1):n[1]==="=end"&&i.getTokenAt(o,n.index+1).type==="comment.multiline"?this.rubyBlock(i,o,n.index+1):this.closingBracketBlock(i,"}",o,n.index+n[0].length)},this.rubyBlock=function(i,P,o,r){var n=new p(i,P,o),a=n.getCurrentToken();if(!(!a||a.type!="keyword"&&a.type!="comment.multiline")){var h=a.value,m=i.getLine(P);switch(a.value){case"if":case"unless":case"while":case"until":var y=new RegExp("^\\s*"+a.value);if(!y.test(m))return;var E=this.indentKeywords[h];break;case"when":if(/\sthen\s/.test(m))return;case"elsif":case"rescue":case"ensure":var E=1;break;case"else":var y=new RegExp("^\\s*"+a.value+"\\s*$");if(!y.test(m))return;var E=1;break;default:var E=this.indentKeywords[h]}var M=[h];if(E){var _=E===-1?i.getLine(P-1).length:i.getLine(P).length,v=P,R=[];if(R.push(n.getCurrentTokenRange()),n.step=E===-1?n.stepBackward:n.stepForward,a.type=="comment.multiline"){for(;a=n.step();)if(a.type==="comment.multiline"){if(E==1){if(_=6,a.value=="=end")break}else if(a.value=="=begin")break}}else for(;a=n.step();){var I=!1;if(a.type==="keyword"){var F=E*this.indentKeywords[a.value];switch(m=i.getLine(n.getCurrentTokenRow()),a.value){case"do":for(var L=n.$tokenIndex-1;L>=0;L--){var U=n.$rowTokens[L];if(U&&(U.value=="while"||U.value=="until"||U.value=="for")){F=0;break}}break;case"else":var y=new RegExp("^\\s*"+a.value+"\\s*$");(!y.test(m)||h=="case")&&(F=0,I=!0);break;case"if":case"unless":case"while":case"until":var y=new RegExp("^\\s*"+a.value);y.test(m)||(F=0,I=!0);break;case"when":(/\sthen\s/.test(m)||h=="case")&&(F=0,I=!0)}if(F>0)M.unshift(a.value);else if(F<=0&&I===!1){if(M.shift(),!M.length&&((h=="while"||h=="until"||h=="for")&&a.value!="do"||a.value=="do"&&E==-1&&F!=0||a.value!="do"))break;F===0&&M.unshift(a.value)}}}if(!a)return null;if(r)return R.push(n.getCurrentTokenRange()),R;var P=n.getCurrentTokenRow();if(E===-1){if(a.type==="comment.multiline")var O=6;else var O=i.getLine(P).length;return new C(P,O,v-1,_)}return new C(v,_,P-1,i.getLine(P-1).length)}}}}).call(g.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./ruby_highlight_rules").RubyHighlightRules,p=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,i=e("./folding/ruby").FoldMode,s=function(){this.HighlightRules=C,this.$outdent=new p,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new i,this.indentKeywords=this.foldingRules.indentKeywords};b.inherits(s,w),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(o,r,n){var a=this.$getIndent(r),h=this.getTokenizer().getLineTokens(r,o),m=h.tokens;if(m.length&&m[m.length-1].type=="comment")return a;if(o=="start"){var y=r.match(/^.*[\{\(\[]\s*$/),E=r.match(/^\s*(class|def|module)\s.*$/),M=r.match(/.*do(\s*|\s+\|.*\|\s*)$/),_=r.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(y||E||M||_)&&(a+=n)}return a},this.checkOutdent=function(o,r,n){return/^\s+(end|else|rescue|ensure)$/.test(r+n)||this.$outdent.checkOutdent(r,n)},this.autoOutdent=function(o,r,n){var a=r.getLine(n);if(/}/.test(a))return this.$outdent.autoOutdent(r,n);var h=this.$getIndent(a),m=r.getLine(n-1),y=this.$getIndent(m),E=r.getTabString();y.length<=h.length&&h.slice(-E.length)==E&&r.remove(new g(n,h.length-E.length,n,h.length))},this.getMatching=function(o,r,n){if(r==null){var a=o.selection.lead;n=a.column,r=a.row}var h=o.getTokenAt(r,n);if(h&&h.value in this.indentKeywords)return this.foldingRules.rubyBlock(o,r,n,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(s.prototype),l.Mode=s}),function(){ace.require(["ace/mode/ruby"],function(e){c&&(c.exports=e)})}()}(dc)),dc.exports}kx();var fc={exports:{}},jd;function Cx(){return jd||(jd=1,function(c,u){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=function(){var p="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",i="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",s=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":i,"variable.language":"self|cls","constant.language":g,keyword:p},"identifier"),o="[uU]?",r="[rR]",n="[fF]",a="(?:[rR][fF]|[fF][rR])",h="(?:(?:[1-9]\\d*)|(?:0))",m="(?:0[oO]?[0-7]+)",y="(?:0[xX][\\dA-Fa-f]+)",E="(?:0[bB][01]+)",M="(?:"+h+"|"+m+"|"+y+"|"+E+")",_="(?:[eE][+-]?\\d+)",v="(?:\\.\\d+)",R="(?:\\d+)",I="(?:(?:"+R+"?"+v+")|(?:"+R+"\\.))",F="(?:(?:"+I+"|"+R+")"+_+")",L="(?:"+F+"|"+I+")",U=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:o+'"{3}',next:"qqstring3"},{token:"string",regex:o+'"(?=.)',next:"qqstring"},{token:"string",regex:o+"'{3}",next:"qstring3"},{token:"string",regex:o+"'(?=.)",next:"qstring"},{token:"string",regex:r+'"{3}',next:"rawqqstring3"},{token:"string",regex:r+'"(?=.)',next:"rawqqstring"},{token:"string",regex:r+"'{3}",next:"rawqstring3"},{token:"string",regex:r+"'(?=.)",next:"rawqstring"},{token:"string",regex:n+'"{3}',next:"fqqstring3"},{token:"string",regex:n+'"(?=.)',next:"fqqstring"},{token:"string",regex:n+"'{3}",next:"fqstring3"},{token:"string",regex:n+"'(?=.)",next:"fqstring"},{token:"string",regex:a+'"{3}',next:"rfqqstring3"},{token:"string",regex:a+'"(?=.)',next:"rfqqstring"},{token:"string",regex:a+"'{3}",next:"rfqstring3"},{token:"string",regex:a+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:U},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:U},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:U},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:U},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:U},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:U},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:U},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:U},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+L+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:L},{token:"constant.numeric",regex:M+"[lL]\\b"},{token:"constant.numeric",regex:M+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:s,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};b.inherits(C,w),l.PythonHighlightRules=C}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,l,T){var b=e("../../lib/oop"),w=e("./fold_mode").FoldMode,C=l.FoldMode=function(p){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+p+")(?:\\s*)(?:#.*)?$")};b.inherits(C,w),(function(){this.getFoldWidgetRange=function(p,g,i){var s=p.getLine(i),o=s.match(this.foldingStartMarker);if(o)return o[1]?this.openingBracketBlock(p,o[1],i,o.index):o[2]?this.indentationBlock(p,i,o.index+o[2].length):this.indentationBlock(p,i)}}).call(C.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./python_highlight_rules").PythonHighlightRules,p=e("./folding/pythonic").FoldMode,g=e("../range").Range,i=function(){this.HighlightRules=C,this.foldingRules=new p("\\:"),this.$behaviour=this.$defaultBehaviour};b.inherits(i,w),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(o,r,n){var a=this.$getIndent(r),h=this.getTokenizer().getLineTokens(r,o),m=h.tokens;if(m.length&&m[m.length-1].type=="comment")return a;if(o=="start"){var y=r.match(/^.*[\{\(\[:]\s*$/);y&&(a+=n)}return a};var s={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(o,r,n){if(n!==`\r
|
|
985
|
-
`&&n!=="\r"&&n!==`
|
|
986
|
-
`)return!1;var a=this.getTokenizer().getLineTokens(r.trim(),o).tokens;if(!a)return!1;do var h=a.pop();while(h&&(h.type=="comment"||h.type=="text"&&h.value.match(/^\s+$/)));return h?h.type=="keyword"&&s[h.value]:!1},this.autoOutdent=function(o,r,n){n+=1;var a=this.$getIndent(r.getLine(n)),h=r.getTabString();a.slice(-h.length)==h&&r.remove(new g(n,a.length-h.length,n,a.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(i.prototype),l.Mode=i}),function(){ace.require(["ace/mode/python"],function(e){c&&(c.exports=e)})}()}(fc)),fc.exports}Cx();var pc={exports:{}},Kd;function Sx(){return Kd||(Kd=1,function(c,u){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};b.inherits(C,w),l.JsonHighlightRules=C}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,l,T){var b=e("../range").Range,w=function(){};(function(){this.checkOutdent=function(C,p){return/^\s+$/.test(C)?/^\s*\}/.test(p):!1},this.autoOutdent=function(C,p){var g=C.getLine(p),i=g.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=C.findMatchingBracket({row:p,column:s});if(!o||o.row==p)return 0;var r=this.$getIndent(C.getLine(o.row));C.replace(new b(p,0,p,s-1),r)},this.$getIndent=function(C){return C.match(/^\s*/)[0]}}).call(w.prototype),l.MatchingBraceOutdent=w}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,l,T){var b=e("../../lib/oop"),w=e("../../range").Range,C=e("./fold_mode").FoldMode,p=l.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};b.inherits(p,C),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,i,s){var o=g.getLine(s);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var r=this._getFoldWidgetBase(g,i,s);return!r&&this.startRegionRe.test(o)?"start":r},this.getFoldWidgetRange=function(g,i,s,o){var r=g.getLine(s);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(g,r,s);var h=r.match(this.foldingStartMarker);if(h){var n=h.index;if(h[1])return this.openingBracketBlock(g,h[1],s,n);var a=g.getCommentFoldRange(s,n+h[0].length,1);return a&&!a.isMultiLine()&&(o?a=this.getSectionRange(g,s):i!="all"&&(a=null)),a}if(i!=="markbegin"){var h=r.match(this.foldingStopMarker);if(h){var n=h.index+h[0].length;return h[1]?this.closingBracketBlock(g,h[1],s,n):g.getCommentFoldRange(s,n,-1)}}},this.getSectionRange=function(g,i){var s=g.getLine(i),o=s.search(/\S/),r=i,n=s.length;i+=1;for(var a=i,h=g.getLength();++i<h;){s=g.getLine(i);var m=s.search(/\S/);if(m!==-1){if(o>m)break;var y=this.getFoldWidgetRange(g,"all",i);if(y){if(y.start.row<=r)break;if(y.isMultiLine())i=y.end.row;else if(o==m)break}a=i}}return new w(r,n,a,g.getLine(a).length)},this.getCommentRegionBlock=function(g,i,s){for(var o=i.search(/\s*$/),r=g.getLength(),n=s,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,h=1;++s<r;){i=g.getLine(s);var m=a.exec(i);if(m&&(m[1]?h--:h++,!h))break}var y=s;if(y>n)return new w(n,o,y,i.length)}}).call(p.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./json_highlight_rules").JsonHighlightRules,p=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,i=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=C,this.$outdent=new p,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};b.inherits(s,w),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,r,n){var a=this.$getIndent(r);if(o=="start"){var h=r.match(/^.*[\{\(\[]\s*$/);h&&(a+=n)}return a},this.checkOutdent=function(o,r,n){return this.$outdent.checkOutdent(r,n)},this.autoOutdent=function(o,r,n){this.$outdent.autoOutdent(r,n)},this.createWorker=function(o){var r=new i(["ace"],"ace/mode/json_worker","JsonWorker");return r.attachToDocument(o.getDocument()),r.on("annotate",function(n){o.setAnnotations(n.data)}),r.on("terminate",function(){o.clearAnnotations()}),r},this.$id="ace/mode/json"}).call(s.prototype),l.Mode=s}),function(){ace.require(["ace/mode/json"],function(e){c&&(c.exports=e)})}()}(pc)),pc.exports}Sx();var gc={exports:{}},Gd;function _x(){return Gd||(Gd=1,function(c,u){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop");e("../lib/lang");var w=e("./text_highlight_rules").TextHighlightRules,C=l.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|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-shadow|box-sizing|caption-side|clear|clip|color|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|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",p=l.supportFunction="rgb|rgba|url|attr|counter|counters",g=l.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",i=l.supportConstantColor="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|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",s=l.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",o=l.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",r=l.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",n=l.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",a=function(){var h=this.createKeywordMapper({"support.function":p,"support.constant":g,"support.type":C,"support.constant.color":i,"support.constant.fonts":s},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:o},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+o+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:o},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:r},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:n},{include:"url"},{token:h,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};b.inherits(a,w),l.CssHighlightRules=a}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},C.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};b.inherits(C,w),C.getTagRule=function(p){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},C.getStartRule=function(p){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:p}},C.getEndRule=function(p){return{token:"comment.doc",regex:"\\*\\/",next:p}},l.JsDocCommentHighlightRules=C}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,l,T){function b(){var o=i.replace("\\d","\\d\\-"),r={onMatch:function(a,h,m){var y=a.charAt(1)=="/"?2:1;return y==1?(h!=this.nextState?m.unshift(this.next,this.nextState,0):m.unshift(this.next),m[2]++):y==2&&h==this.nextState&&(m[1]--,(!m[1]||m[1]<0)&&(m.shift(),m.shift())),[{type:"meta.tag.punctuation."+(y==1?"":"end-")+"tag-open.xml",value:a.slice(0,y)},{type:"meta.tag.tag-name.xml",value:a.substr(y)}]},regex:"</?(?:"+o+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(r);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,r,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(a,h,m){return h==m[0]&&m.shift(),a.length==2&&(m[0]==this.nextState&&m[1]--,(!m[1]||m[1]<0)&&m.splice(0,2)),this.next=m[0]||"start",[{type:this.token,value:a}]},nextState:"jsx"},n,w("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:o},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},r],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function w(o){return[{token:"comment",regex:/\/\*/,next:[p.getTagRule(),{token:"comment",regex:"\\*\\/",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[p.getTagRule(),{token:"comment",regex:"$|^",next:o||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var C=e("../lib/oop"),p=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=e("./text_highlight_rules").TextHighlightRules,i="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",s=function(o){var r={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},n=this.createKeywordMapper(r,"identifier"),a="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",h="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",m="(function)(\\s*)(\\*?)",y={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(r).join("|")+"\\b)"+i+")(\\s*)(\\()"};this.$rules={no_regex:[p.getStartRule("doc-start"),w("no_regex"),y,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(=)(\\s*)"+m+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+i+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+i+")(\\s*)(:)(\\s*)"+m+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+m+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+a+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:n,regex:i},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:m+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:i},{regex:"",token:"empty",next:"no_regex"}],start:[p.getStartRule("doc-start"),w("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[w("function_arguments"),{token:"variable.parameter",regex:i},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:h},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:h},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!o||!o.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(E,M,_){if(this.next=E=="{"?this.nextState:"",E=="{"&&_.length)_.unshift("start",M);else if(E=="}"&&_.length&&(_.shift(),this.next=_.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return E=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:h},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+i+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!o||o.jsx!=0)&&b.call(this)),this.embedRules(p,"doc-",[p.getEndRule("no_regex")]),this.normalizeRules()};C.inherits(s,g),l.JavaScriptHighlightRules=s}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=function(p){var g="[_:a-zA-ZÀ-][-_:.a-zA-Z0-9À-]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+g+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:g},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+g+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+g+":)?"+g+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:g},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===C&&this.normalizeRules()};(function(){this.embedTagRules=function(p,g,i){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+i+".tag-name.xml"],regex:"(<)("+i+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[i+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(s,o,r){return r.splice(0),this.token}}],this.embedRules(p,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+i+".tag-name.xml"],regex:"(</)("+i+"(?=\\s|>|$))",next:i+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(w.prototype),b.inherits(C,w),l.XmlHighlightRules=C}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/lang"),C=e("./css_highlight_rules").CssHighlightRules,p=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=e("./xml_highlight_rules").XmlHighlightRules,i=w.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),s=function(){g.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(o,r){var n=i[r];return["meta.tag.punctuation."+(o=="<"?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(C,"css-","style"),this.embedTagRules(new p({jsx:!1}).getRules(),"js-","script"),this.constructor===s&&this.normalizeRules()};b.inherits(s,g),l.HtmlHighlightRules=s}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,l,T){var b=e("../config").$modes,w=e("../lib/oop"),C=e("../lib/lang"),p=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,i=function(o){return"(?:[^"+C.escapeRegExp(o)+"\\\\]|\\\\.)*"},s=function(){g.call(this);var o={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(n,a,h,m){var y=n.match(/^(\s*)([`~]+)(.*)/),E=/[\w-]+|$/.exec(y[3])[0];return b[E]||(E=""),h.unshift("githubblock",[],[y[1],y[2],E],a),this.token},next:"githubblock"},r=[{token:"support.function",regex:".*",onMatch:function(n,a,h,m){var y=h[1],E=h[2][0],M=h[2][1],_=h[2][2],v=/^(\s*)(`+|~+)\s*$/.exec(n);if(v&&v[1].length<E.length+3&&v[2].length>=M.length&&v[2][0]==M[0])return h.splice(0,3),this.next=h.shift(),this.token;if(this.next="",_&&b[_]){var R=b[_].getTokenizer().getLineTokens(n,y.slice(0));return h[1]=R.state,R.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(n){return"markup.heading."+n.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},o,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+i("]")+")(\\]\\s*\\[)("+i("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+i("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+i('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},o,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:r}),this.normalizeRules()};w.inherits(s,p),l.MarkdownHighlightRules=s}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,l,T){var b=e("../../lib/oop"),w=e("./fold_mode").FoldMode,C=e("../../range").Range,p=l.FoldMode=function(){};b.inherits(p,w),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,i,s){var o=g.getLine(s);return this.foldingStartMarker.test(o)?o[0]=="`"&&g.bgTokenizer.getState(s)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,i,s){function o(I){return E=g.getTokens(I)[0],E&&E.type.lastIndexOf(M,0)===0}function r(){var I=E.value[0];return I=="="?6:I=="-"?5:7-E.value.search(/[^#]|$/)}var n=g.getLine(s),a=n.length,h=g.getLength(),m=s,y=s;if(n.match(this.foldingStartMarker)){if(n[0]=="`"){if(g.bgTokenizer.getState(s)!=="start"){for(;++s<h&&(n=g.getLine(s),!(n[0]=="`"&n.substring(0,3)=="```")););return new C(m,a,s,0)}for(;s-- >0&&(n=g.getLine(s),!(n[0]=="`"&n.substring(0,3)=="```")););return new C(s,n.length,m,0)}var E,M="markup.heading";if(o(s)){for(var _=r();++s<h;)if(o(s)){var v=r();if(v>=_)break}if(y=s-(!E||["=","-"].indexOf(E.value[0])==-1?1:2),y>m)for(;y>m&&/^\s*$/.test(g.getLine(y));)y--;if(y>m){var R=g.getLine(y).length;return new C(m,a,y,R)}}}}}).call(p.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,l,T){var b=e("../range").Range,w=function(){};(function(){this.checkOutdent=function(C,p){return/^\s+$/.test(C)?/^\s*\}/.test(p):!1},this.autoOutdent=function(C,p){var g=C.getLine(p),i=g.match(/^(\s*\})/);if(!i)return 0;var s=i[1].length,o=C.findMatchingBracket({row:p,column:s});if(!o||o.row==p)return 0;var r=this.$getIndent(C.getLine(o.row));C.replace(new b(p,0,p,s-1),r)},this.$getIndent=function(C){return C.match(/^\s*/)[0]}}).call(w.prototype),l.MatchingBraceOutdent=w}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,l,T){function b(i,s){return i&&i.type.lastIndexOf(s+".xml")>-1}var w=e("../../lib/oop"),C=e("../behaviour").Behaviour,p=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(i,s,o,r,n){if(n=='"'||n=="'"){var a=n,h=r.doc.getTextRange(o.getSelectionRange());if(h!==""&&h!=="'"&&h!='"'&&o.getWrapBehavioursEnabled())return{text:a+h+a,selection:!1};var m=o.getCursorPosition(),y=r.doc.getLine(m.row),E=y.substring(m.column,m.column+1),M=new p(r,m.row,m.column),_=M.getCurrentToken();if(E==a&&(b(_,"attribute-value")||b(_,"string")))return{text:"",selection:[1,1]};if(_||(_=M.stepBackward()),!_)return;for(;b(_,"tag-whitespace")||b(_,"whitespace");)_=M.stepBackward();var v=!E||E.match(/\s/);if(b(_,"attribute-equals")&&(v||E==">")||b(_,"decl-attribute-equals")&&(v||E=="?"))return{text:a+a,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(i,s,o,r,n){var a=r.doc.getTextRange(n);if(!n.isMultiLine()&&(a=='"'||a=="'")){var h=r.doc.getLine(n.start.row),m=h.substring(n.start.column+1,n.start.column+2);if(m==a)return n.end.column++,n}}),this.add("autoclosing","insertion",function(i,s,o,r,n){if(n==">"){var a=o.getSelectionRange().start,h=new p(r,a.row,a.column),m=h.getCurrentToken()||h.stepBackward();if(!m||!(b(m,"tag-name")||b(m,"tag-whitespace")||b(m,"attribute-name")||b(m,"attribute-equals")||b(m,"attribute-value"))||b(m,"reference.attribute-value"))return;if(b(m,"attribute-value")){var y=h.getCurrentTokenColumn()+m.value.length;if(a.column<y)return;if(a.column==y){var E=h.stepForward();if(E&&b(E,"attribute-value"))return;h.stepBackward()}}if(/^\s*>/.test(r.getLine(a.row).slice(a.column)))return;for(;!b(m,"tag-name");)if(m=h.stepBackward(),m.value=="<"){m=h.stepForward();break}var M=h.getCurrentTokenRow(),_=h.getCurrentTokenColumn();if(b(h.stepBackward(),"end-tag-open"))return;var v=m.value;return M==a.row&&(v=v.substring(0,a.column-_)),this.voidElements&&this.voidElements.hasOwnProperty(v.toLowerCase())?void 0:{text:"></"+v+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(i,s,o,r,n){if(n==`
|
|
987
|
-
`){var a=o.getCursorPosition(),h=r.getLine(a.row),m=new p(r,a.row,a.column),y=m.getCurrentToken();if(b(y,"")&&y.type.indexOf("tag-close")!==-1){if(y.value=="/>")return;for(;y&&y.type.indexOf("tag-name")===-1;)y=m.stepBackward();if(!y)return;var E=y.value,M=m.getCurrentTokenRow();if(y=m.stepBackward(),!y||y.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[E]||!this.voidElements){var _=r.getTokenAt(a.row,a.column+1),h=r.getLine(M),v=this.$getIndent(h),R=v+r.getTabString();return _&&_.value==="</"?{text:`
|
|
988
|
-
`+R+`
|
|
989
|
-
`+v,selection:[1,R.length,1,R.length]}:{text:`
|
|
990
|
-
`+R}}}}})};w.inherits(g,C),l.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,l,T){var b=e("../../lib/oop"),w=e("../../token_iterator").TokenIterator,C=e("../behaviour/cstyle").CstyleBehaviour,p=e("../behaviour/xml").XmlBehaviour,g=function(){var i=new p({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(i),this.inherit(C),this.add("autoclosing-fragment","insertion",function(s,o,r,n,a){if(a==">"){var h=r.getSelectionRange().start,m=new w(n,h.row,h.column),y=m.getCurrentToken()||m.stepBackward();if(!y)return;if(y.value=="<")return{text:"></>",selection:[1,1]}}})};b.inherits(g,C),l.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,l,T){function b(s,o){return s&&s.type&&s.type.lastIndexOf(o+".xml")>-1}var w=e("../../lib/oop"),C=e("../../range").Range,p=e("./fold_mode").FoldMode,g=l.FoldMode=function(s,o){p.call(this),this.voidElements=s||{},this.optionalEndTags=w.mixin({},this.voidElements),o&&w.mixin(this.optionalEndTags,o)};w.inherits(g,p);var i=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(s,o,r){var n=this._getFirstTagInLine(s,r);return n?n.closing||!n.tagName&&n.selfClosing?o==="markbeginend"?"end":"":!n.tagName||n.selfClosing||this.voidElements.hasOwnProperty(n.tagName.toLowerCase())||this._findEndTagInLine(s,r,n.tagName,n.end.column)?"":"start":this.getCommentFoldWidget(s,r)},this.getCommentFoldWidget=function(s,o){return/comment/.test(s.getState(o))&&/<!-/.test(s.getLine(o))?"start":""},this._getFirstTagInLine=function(s,o){for(var r=s.getTokens(o),n=new i,a=0;a<r.length;a++){var h=r[a];if(b(h,"tag-open")){if(n.end.column=n.start.column+h.value.length,n.closing=b(h,"end-tag-open"),h=r[++a],!h)return null;if(n.tagName=h.value,h.value===""){if(h=r[++a],!h)return null;n.tagName=h.value}for(n.end.column+=h.value.length,a++;a<r.length;a++)if(h=r[a],n.end.column+=h.value.length,b(h,"tag-close")){n.selfClosing=h.value=="/>";break}return n}if(b(h,"tag-close"))return n.selfClosing=h.value=="/>",n;n.start.column+=h.value.length}return null},this._findEndTagInLine=function(s,o,r,n){for(var a=s.getTokens(o),h=0,m=0;m<a.length;m++){var y=a[m];if(h+=y.value.length,!(h<n-1)&&b(y,"end-tag-open")&&(y=a[m+1],b(y,"tag-name")&&y.value===""&&(y=a[m+2]),y&&y.value==r))return!0}return!1},this.getFoldWidgetRange=function(s,o,r){var n=this._getFirstTagInLine(s,r);if(!n)return this.getCommentFoldWidget(s,r)&&s.getCommentFoldRange(r,s.getLine(r).length);var a=s.getMatchingTags({row:r,column:0});if(a)return new C(a.openTag.end.row,a.openTag.end.column,a.closeTag.start.row,a.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,l,T){var b=e("../../lib/oop"),w=e("../../range").Range,C=e("./fold_mode").FoldMode,p=l.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};b.inherits(p,C),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,i,s){var o=g.getLine(s);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var r=this._getFoldWidgetBase(g,i,s);return!r&&this.startRegionRe.test(o)?"start":r},this.getFoldWidgetRange=function(g,i,s,o){var r=g.getLine(s);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(g,r,s);var h=r.match(this.foldingStartMarker);if(h){var n=h.index;if(h[1])return this.openingBracketBlock(g,h[1],s,n);var a=g.getCommentFoldRange(s,n+h[0].length,1);return a&&!a.isMultiLine()&&(o?a=this.getSectionRange(g,s):i!="all"&&(a=null)),a}if(i!=="markbegin"){var h=r.match(this.foldingStopMarker);if(h){var n=h.index+h[0].length;return h[1]?this.closingBracketBlock(g,h[1],s,n):g.getCommentFoldRange(s,n,-1)}}},this.getSectionRange=function(g,i){var s=g.getLine(i),o=s.search(/\S/),r=i,n=s.length;i+=1;for(var a=i,h=g.getLength();++i<h;){s=g.getLine(i);var m=s.search(/\S/);if(m!==-1){if(o>m)break;var y=this.getFoldWidgetRange(g,"all",i);if(y){if(y.start.row<=r)break;if(y.isMultiLine())i=y.end.row;else if(o==m)break}a=i}}return new w(r,n,a,g.getLine(a).length)},this.getCommentRegionBlock=function(g,i,s){for(var o=i.search(/\s*$/),r=g.getLength(),n=s,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,h=1;++s<r;){i=g.getLine(s);var m=a.exec(i);if(m&&(m[1]?h--:h++,!h))break}var y=s;if(y>n)return new w(n,o,y,i.length)}}).call(p.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,l,T){var b=e("../../lib/oop"),w=e("./xml").FoldMode,C=e("./cstyle").FoldMode,p=l.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new w};b.inherits(p,C),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,i,s){var o=this.getFoldWidgetBase(g,i,s);return o||this.xmlFoldMode.getFoldWidget(g,i,s)},this.getFoldWidgetRange=function(g,i,s,o){var r=this.getFoldWidgetRangeBase(g,i,s,o);return r||this.xmlFoldMode.getFoldWidgetRange(g,i,s)}}).call(p.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./javascript_highlight_rules").JavaScriptHighlightRules,p=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,i=e("./behaviour/javascript").JavaScriptBehaviour,s=e("./folding/javascript").FoldMode,o=function(){this.HighlightRules=C,this.$outdent=new p,this.$behaviour=new i,this.foldingRules=new s};b.inherits(o,w),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(r,n,a){var h=this.$getIndent(n),m=this.getTokenizer().getLineTokens(n,r),y=m.tokens,E=m.state;if(y.length&&y[y.length-1].type=="comment")return h;if(r=="start"||r=="no_regex"){var M=n.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);M&&(h+=a)}else if(r=="doc-start"&&(E=="start"||E=="no_regex"))return"";return h},this.checkOutdent=function(r,n,a){return this.$outdent.checkOutdent(n,a)},this.autoOutdent=function(r,n,a){this.$outdent.autoOutdent(n,a)},this.createWorker=function(r){var n=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return n.attachToDocument(r.getDocument()),n.on("annotate",function(a){r.setAnnotations(a.data)}),n.on("terminate",function(){r.clearAnnotations()}),n},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(o.prototype),l.Mode=o}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,l,T){var b={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},w=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var C=document.createElement("c").style;for(var p in C)if(typeof C[p]=="string"){var g=p.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()});b.hasOwnProperty(g)||(b[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(C,p,g,i){if(this.completionsDefined||this.defineCompletions(),C==="ruleset"||p.$mode.$id=="ace/mode/scss"){var s=p.getLine(g.row).substr(0,g.column),o=/\([^)]*$/.test(s);return o&&(s=s.substr(s.lastIndexOf("(")+1)),/:[^;]+$/.test(s)?this.getPropertyValueCompletions(C,p,g,i):this.getPropertyCompletions(C,p,g,i,o)}return[]},this.getPropertyCompletions=function(C,p,g,i,s){s=s||!1;var o=Object.keys(b);return o.map(function(r){return{caption:r,snippet:r+": $0"+(s?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(C,p,g,i){var s=p.getLine(g.row).substr(0,g.column),o=(/([\w\-]+):[^:]*$/.exec(s)||{})[1];if(!o)return[];var r=[];return o in b&&typeof b[o]=="object"&&(r=Object.keys(b[o])),r.map(function(n){return{caption:n,snippet:n,meta:"property value",score:1e6}})}}).call(w.prototype),l.CssCompletions=w}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,l,T){var b=e("../../lib/oop");e("../behaviour").Behaviour;var w=e("./cstyle").CstyleBehaviour,C=e("../../token_iterator").TokenIterator,p=function(){this.inherit(w),this.add("colon","insertion",function(g,i,s,o,r){if(r===":"&&s.selection.isEmpty()){var n=s.getCursorPosition(),a=new C(o,n.row,n.column),h=a.getCurrentToken();if(h&&h.value.match(/\s+/)&&(h=a.stepBackward()),h&&h.type==="support.type"){var m=o.doc.getLine(n.row),y=m.substring(n.column,n.column+1);if(y===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(m.substring(n.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,i,s,o,r){var n=o.doc.getTextRange(r);if(!r.isMultiLine()&&n===":"){var a=s.getCursorPosition(),h=new C(o,a.row,a.column),m=h.getCurrentToken();if(m&&m.value.match(/\s+/)&&(m=h.stepBackward()),m&&m.type==="support.type"){var y=o.doc.getLine(r.start.row),E=y.substring(r.end.column,r.end.column+1);if(E===";")return r.end.column++,r}}}),this.add("semicolon","insertion",function(g,i,s,o,r){if(r===";"&&s.selection.isEmpty()){var n=s.getCursorPosition(),a=o.doc.getLine(n.row),h=a.substring(n.column,n.column+1);if(h===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,i,s,o,r){if(r==="!"&&s.selection.isEmpty()){var n=s.getCursorPosition(),a=o.doc.getLine(n.row);if(/^\s*(;|}|$)/.test(a.substring(n.column)))return{text:"!important",selection:[10,10]}}})};b.inherits(p,w),l.CssBehaviour=p}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./css_highlight_rules").CssHighlightRules,p=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,i=e("./css_completions").CssCompletions,s=e("./behaviour/css").CssBehaviour,o=e("./folding/cstyle").FoldMode,r=function(){this.HighlightRules=C,this.$outdent=new p,this.$behaviour=new s,this.$completer=new i,this.foldingRules=new o};b.inherits(r,w),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(n,a,h){var m=this.$getIndent(a),y=this.getTokenizer().getLineTokens(a,n).tokens;if(y.length&&y[y.length-1].type=="comment")return m;var E=a.match(/^.*\{\s*$/);return E&&(m+=h),m},this.checkOutdent=function(n,a,h){return this.$outdent.checkOutdent(a,h)},this.autoOutdent=function(n,a,h){this.$outdent.autoOutdent(a,h)},this.getCompletions=function(n,a,h,m){return this.$completer.getCompletions(n,a,h,m)},this.createWorker=function(n){var a=new g(["ace"],"ace/mode/css_worker","Worker");return a.attachToDocument(n.getDocument()),a.on("annotate",function(h){n.setAnnotations(h.data)}),a.on("terminate",function(){n.clearAnnotations()}),a},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(r.prototype),l.Mode=r}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,l,T){var b=e("../../lib/oop"),w=e("./fold_mode").FoldMode,C=l.FoldMode=function(p,g){this.defaultMode=p,this.subModes=g};b.inherits(C,w),(function(){this.$getMode=function(p){typeof p!="string"&&(p=p[0]);for(var g in this.subModes)if(p.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(p,g,i,s){var o=this.$getMode(p);return o?o.getFoldWidget(g,i,s):""},this.getFoldWidget=function(p,g,i){return this.$tryMode(p.getState(i-1),p,g,i)||this.$tryMode(p.getState(i),p,g,i)||this.defaultMode.getFoldWidget(p,g,i)},this.getFoldWidgetRange=function(p,g,i){var s=this.$getMode(p.getState(i-1));return(!s||!s.getFoldWidget(p,g,i))&&(s=this.$getMode(p.getState(i))),(!s||!s.getFoldWidget(p,g,i))&&(s=this.defaultMode),s.getFoldWidgetRange(p,g,i)}}).call(C.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,l,T){var b=e("../../lib/oop"),w=e("./mixed").FoldMode,C=e("./xml").FoldMode,p=e("./cstyle").FoldMode,g=l.FoldMode=function(i,s){w.call(this,new C(i,s),{"js-":new p,"css-":new p})};b.inherits(g,w)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,l,T){function b(a,h){return a.type.lastIndexOf(h+".xml")>-1}function w(a,h){for(var m=new p(a,h.row,h.column),y=m.getCurrentToken();y&&!b(y,"tag-name");)y=m.stepBackward();if(y)return y.value}function C(a,h){for(var m=new p(a,h.row,h.column),y=m.getCurrentToken();y&&!b(y,"attribute-name");)y=m.stepBackward();if(y)return y.value}var p=e("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],i=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],s=g.concat(i),o={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},r=Object.keys(o),n=function(){};(function(){this.getCompletions=function(a,h,m,y){var E=h.getTokenAt(m.row,m.column);if(!E)return[];if(b(E,"tag-name")||b(E,"tag-open")||b(E,"end-tag-open"))return this.getTagCompletions(a,h,m,y);if(b(E,"tag-whitespace")||b(E,"attribute-name"))return this.getAttributeCompletions(a,h,m,y);if(b(E,"attribute-value"))return this.getAttributeValueCompletions(a,h,m,y);var M=h.getLine(m.row).substr(0,m.column);return/&[a-z]*$/i.test(M)?this.getHTMLEntityCompletions(a,h,m,y):[]},this.getTagCompletions=function(a,h,m,y){return r.map(function(E){return{value:E,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(a,h,m,y){var E=w(h,m);if(!E)return[];var M=s;return E in o&&(M=M.concat(Object.keys(o[E]))),M.map(function(_){return{caption:_,snippet:_+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(a,h,m,y){var E=w(h,m),M=C(h,m);if(!E)return[];var _=[];return E in o&&M in o[E]&&typeof o[E][M]=="object"&&(_=Object.keys(o[E][M])),_.map(function(v){return{caption:v,snippet:v,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(a,h,m,y){var E=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return E.map(function(M){return{caption:M,snippet:M,meta:"html entity",score:1e6}})}}).call(n.prototype),l.HtmlCompletions=n}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/lang"),C=e("./text").Mode,p=e("./javascript").Mode,g=e("./css").Mode,i=e("./html_highlight_rules").HtmlHighlightRules,s=e("./behaviour/xml").XmlBehaviour,o=e("./folding/html").FoldMode,r=e("./html_completions").HtmlCompletions,n=e("../worker/worker_client").WorkerClient,a=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],h=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],m=function(y){this.fragmentContext=y&&y.fragmentContext,this.HighlightRules=i,this.$behaviour=new s,this.$completer=new r,this.createModeDelegates({"js-":p,"css-":g}),this.foldingRules=new o(this.voidElements,w.arrayToMap(h))};b.inherits(m,C),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=w.arrayToMap(a),this.getNextLineIndent=function(y,E,M){return this.$getIndent(E)},this.checkOutdent=function(y,E,M){return!1},this.getCompletions=function(y,E,M,_){return this.$completer.getCompletions(y,E,M,_)},this.createWorker=function(y){if(this.constructor==m){var E=new n(["ace"],"ace/mode/html_worker","Worker");return E.attachToDocument(y.getDocument()),this.fragmentContext&&E.call("setOptions",[{context:this.fragmentContext}]),E.on("error",function(M){y.setAnnotations(M.data)}),E.on("terminate",function(){y.clearAnnotations()}),E}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(m.prototype),l.Mode=m}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,l,T){var b=e("../lib/oop"),w=e("./text_highlight_rules").TextHighlightRules,C=l.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",p=l.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",g=function(){var i=this.createKeywordMapper({keyword:C,"support.function.builtin":p,"invalid.deprecated":"debugger"},"identifier"),s="(?:(?:[1-9]\\d*)|(?:0))",o="(?:\\.\\d+)",r="(?:\\d+)",n="(?:(?:"+r+"?"+o+")|(?:"+r+"\\.))",a="(?:(?:"+n+"|"+r+"))",h="(?:"+a+"|"+n+")",m="(?:&"+r+")",y="[a-zA-Z_][a-zA-Z0-9_]*",E="(?:"+y+"(?==))",M="(?:\\$(?:SHLVL|\\$|\\!|\\?))",_="(?:"+y+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(v,R,I){var F=v[2]=="-"?"indentedHeredoc":"heredoc",L=v.split(this.splitRegex);return I.push(F,L[4]),[{type:"constant",value:L[1]},{type:"text",value:L[2]},{type:"string",value:L[3]},{type:"support.class",value:L[4]},{type:"string",value:L[5]}]},rules:{heredoc:[{onMatch:function(v,R,I){return v===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(v,R,I){return v===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(v,R){return R[0]==="heredoc"||R[0]==="indentedHeredoc"?R[0]:v}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:M},{token:"variable",regex:E},{include:"variables"},{token:"support.function",regex:_},{token:"support.function",regex:m},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:h},{token:"constant.numeric",regex:s+"\\b"},{token:i,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};b.inherits(g,w),l.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,l,T){var b=e("../lib/oop"),w=e("./text").Mode,C=e("./sh_highlight_rules").ShHighlightRules,p=e("../range").Range,g=e("./folding/cstyle").FoldMode,i=function(){this.HighlightRules=C,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};b.inherits(i,w),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(o,r,n){var a=this.$getIndent(r),h=this.getTokenizer().getLineTokens(r,o),m=h.tokens;if(m.length&&m[m.length-1].type=="comment")return a;if(o=="start"){var y=r.match(/^.*[\{\(\[:]\s*$/);y&&(a+=n)}return a};var s={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(o,r,n){if(n!==`\r
|
|
991
|
-
`&&n!=="\r"&&n!==`
|
|
992
|
-
`)return!1;var a=this.getTokenizer().getLineTokens(r.trim(),o).tokens;if(!a)return!1;do var h=a.pop();while(h&&(h.type=="comment"||h.type=="text"&&h.value.match(/^\s+$/)));return h?h.type=="keyword"&&s[h.value]:!1},this.autoOutdent=function(o,r,n){n+=1;var a=this.$getIndent(r.getLine(n)),h=r.getTabString();a.slice(-h.length)==h&&r.remove(new p(n,a.length-h.length,n,a.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(i.prototype),l.Mode=i}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,l,T){var b=e("../lib/oop"),w=e("../lib/lang"),C=e("./text").Mode,p=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,i=e("./folding/xml").FoldMode,s=e("../worker/worker_client").WorkerClient,o=function(){this.HighlightRules=p,this.$behaviour=new g,this.foldingRules=new i};b.inherits(o,C),(function(){this.voidElements=w.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(r){var n=new s(["ace"],"ace/mode/xml_worker","Worker");return n.attachToDocument(r.getDocument()),n.on("error",function(a){r.setAnnotations(a.data)}),n.on("terminate",function(){r.clearAnnotations()}),n},this.$id="ace/mode/xml"}).call(o.prototype),l.Mode=o}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,l,T){var b=e("../lib/oop"),w=e("./behaviour/cstyle").CstyleBehaviour,C=e("./text").Mode,p=e("./markdown_highlight_rules").MarkdownHighlightRules,g=e("./folding/markdown").FoldMode,i=function(){this.HighlightRules=p,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new g,this.$behaviour=new w({braces:!0})};b.inherits(i,C),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(s,o,r){if(s=="listblock"){var n=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(o);if(!n)return"";var a=n[2];return a||(a=parseInt(n[3],10)+1+"."),n[1]+a+n[4]}return this.$getIndent(o)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(i.prototype),l.Mode=i}),function(){ace.require(["ace/mode/markdown"],function(e){c&&(c.exports=e)})}()}(gc)),gc.exports}_x();var mc={exports:{}},qd;function Ax(){return qd||(qd=1,function(c,u){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,l,T){T.exports=`.ace-twilight .ace_gutter {
|
|
993
|
-
background: #232323;
|
|
994
|
-
color: #E2E2E2
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
.ace-twilight .ace_print-margin {
|
|
998
|
-
width: 1px;
|
|
999
|
-
background: #232323
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.ace-twilight {
|
|
1003
|
-
background-color: #141414;
|
|
1004
|
-
color: #F8F8F8
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
.ace-twilight .ace_cursor {
|
|
1008
|
-
color: #A7A7A7
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
.ace-twilight .ace_marker-layer .ace_selection {
|
|
1012
|
-
background: rgba(221, 240, 255, 0.20)
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|
1016
|
-
box-shadow: 0 0 3px 0px #141414;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
.ace-twilight .ace_marker-layer .ace_step {
|
|
1020
|
-
background: rgb(102, 82, 0)
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.ace-twilight .ace_marker-layer .ace_bracket {
|
|
1024
|
-
margin: -1px 0 0 -1px;
|
|
1025
|
-
border: 1px solid rgba(255, 255, 255, 0.25)
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
.ace-twilight .ace_marker-layer .ace_active-line {
|
|
1029
|
-
background: rgba(255, 255, 255, 0.031)
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
.ace-twilight .ace_gutter-active-line {
|
|
1033
|
-
background-color: rgba(255, 255, 255, 0.031)
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|
1037
|
-
border: 1px solid rgba(221, 240, 255, 0.20)
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
.ace-twilight .ace_invisible {
|
|
1041
|
-
color: rgba(255, 255, 255, 0.25)
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
.ace-twilight .ace_keyword,
|
|
1045
|
-
.ace-twilight .ace_meta {
|
|
1046
|
-
color: #CDA869
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
.ace-twilight .ace_constant,
|
|
1050
|
-
.ace-twilight .ace_constant.ace_character,
|
|
1051
|
-
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|
1052
|
-
.ace-twilight .ace_constant.ace_other,
|
|
1053
|
-
.ace-twilight .ace_heading,
|
|
1054
|
-
.ace-twilight .ace_markup.ace_heading,
|
|
1055
|
-
.ace-twilight .ace_support.ace_constant {
|
|
1056
|
-
color: #CF6A4C
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
.ace-twilight .ace_invalid.ace_illegal {
|
|
1060
|
-
color: #F8F8F8;
|
|
1061
|
-
background-color: rgba(86, 45, 86, 0.75)
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
.ace-twilight .ace_invalid.ace_deprecated {
|
|
1065
|
-
text-decoration: underline;
|
|
1066
|
-
font-style: italic;
|
|
1067
|
-
color: #D2A8A1
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.ace-twilight .ace_support {
|
|
1071
|
-
color: #9B859D
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
.ace-twilight .ace_fold {
|
|
1075
|
-
background-color: #AC885B;
|
|
1076
|
-
border-color: #F8F8F8
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
.ace-twilight .ace_support.ace_function {
|
|
1080
|
-
color: #DAD085
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
.ace-twilight .ace_list,
|
|
1084
|
-
.ace-twilight .ace_markup.ace_list,
|
|
1085
|
-
.ace-twilight .ace_storage {
|
|
1086
|
-
color: #F9EE98
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
.ace-twilight .ace_entity.ace_name.ace_function,
|
|
1090
|
-
.ace-twilight .ace_meta.ace_tag {
|
|
1091
|
-
color: #AC885B
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
.ace-twilight .ace_string {
|
|
1095
|
-
color: #8F9D6A
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.ace-twilight .ace_string.ace_regexp {
|
|
1099
|
-
color: #E9C062
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.ace-twilight .ace_comment {
|
|
1103
|
-
font-style: italic;
|
|
1104
|
-
color: #5F5A60
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
.ace-twilight .ace_variable {
|
|
1108
|
-
color: #7587A6
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
.ace-twilight .ace_xml-pe {
|
|
1112
|
-
color: #494949
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
.ace-twilight .ace_indent-guide {
|
|
1116
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
.ace-twilight .ace_indent-guide-active {
|
|
1120
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1121
|
-
}
|
|
1122
|
-
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,l,T){l.isDark=!0,l.cssClass="ace-twilight",l.cssText=e("./twilight-css");var b=e("../lib/dom");b.importCssString(l.cssText,l.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){c&&(c.exports=e)})}()}(mc)),mc.exports}Ax();var vc={exports:{}},Yd;function $x(){return Yd||(Yd=1,function(c,u){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,l,T){function b(v){var R=new Date().toLocaleString("en-us",v);return R.length==1?"0"+R:R}var w=e("./lib/dom"),C=e("./lib/oop"),p=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),i=e("./range").Range,s=e("./range_list").RangeList,o=e("./keyboard/hash_handler").HashHandler,r=e("./tokenizer").Tokenizer,n=e("./clipboard"),a={CURRENT_WORD:function(v){return v.session.getTextRange(v.session.getWordRange())},SELECTION:function(v,R,I){var F=v.session.getTextRange();return I?F.replace(/\n\r?([ \t]*\S)/g,`
|
|
1123
|
-
`+I+"$1"):F},CURRENT_LINE:function(v){return v.session.getLine(v.getCursorPosition().row)},PREV_LINE:function(v){return v.session.getLine(v.getCursorPosition().row-1)},LINE_INDEX:function(v){return v.getCursorPosition().row},LINE_NUMBER:function(v){return v.getCursorPosition().row+1},SOFT_TABS:function(v){return v.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(v){return v.session.getTabSize()},CLIPBOARD:function(v){return n.getText&&n.getText()},FILENAME:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0]},FILENAME_BASE:function(v){return/[^/\\]*$/.exec(this.FILEPATH(v))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(v){return this.FILEPATH(v).replace(/[^/\\]*$/,"")},FILEPATH:function(v){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(v){var R=v.session.$mode||{};return R.blockComment&&R.blockComment.start||""},BLOCK_COMMENT_END:function(v){var R=v.session.$mode||{};return R.blockComment&&R.blockComment.end||""},LINE_COMMENT:function(v){var R=v.session.$mode||{};return R.lineCommentStart||""},CURRENT_YEAR:b.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:b.bind(null,{year:"2-digit"}),CURRENT_MONTH:b.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:b.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:b.bind(null,{month:"short"}),CURRENT_DATE:b.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:b.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:b.bind(null,{weekday:"short"}),CURRENT_HOUR:b.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:b.bind(null,{minute:"2-digit"}),CURRENT_SECOND:b.bind(null,{second:"2-digit"})};a.SELECTED_TEXT=a.SELECTION;var h=function(){function v(){this.snippetMap={},this.snippetNameMap={},this.variables=a}return v.prototype.getTokenizer=function(){return v.$tokenizer||this.createTokenizer()},v.prototype.createTokenizer=function(){function R(L){return L=L.substr(1),/^\d+$/.test(L)?[{tabstopId:parseInt(L,10)}]:[{text:L}]}function I(L){return"(?:[^\\\\"+L+"]|\\\\.)"}var F={regex:"/("+I("/")+"+)/",onMatch:function(L,U,P){var O=P[0];return O.fmtString=!0,O.guard=L.slice(1,-1),O.flag="",""},next:"formatString"};return v.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(L,U,P){var O=L[1];return(O=="}"&&P.length||"`$\\".indexOf(O)!=-1)&&(L=O),[L]}},{regex:/}/,onMatch:function(L,U,P){return[P.length?P.shift():L]}},{regex:/\$(?:\d+|\w+)/,onMatch:R},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(L,U,P){var O=R(L.substr(1));return P.unshift(O[0]),O},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+I("\\|")+"*\\|",onMatch:function(L,U,P){var O=L.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return P[0].choices=O,[O[0]]},next:"start"},F,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(L,U,P){return P.length&&P[0].expectElse?(P[0].expectElse=!1,P[0].ifEnd={elseEnd:P[0]},[P[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(L,U,P){var O=L[1];return O=="}"&&P.length||"`$\\".indexOf(O)!=-1?L=O:O=="n"?L=`
|
|
1124
|
-
`:O=="t"?L=" ":"ulULE".indexOf(O)!=-1&&(L={changeCase:O,local:O>"a"}),[L]}},{regex:"/\\w*}",onMatch:function(L,U,P){var O=P.shift();return O&&(O.flag=L.slice(1,-1)),this.next=O&&O.tabstopId?"start":"",[O||L]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(L,U,P){return[{text:L.slice(1)}]}},{regex:/\${\w+/,onMatch:function(L,U,P){var O={text:L.slice(2)};return P.unshift(O),[O]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(L,U,P){var O=P.shift();return this.next=O&&O.tabstopId?"start":"",[O||L]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(L,U,P){var O=P[0];return O.formatFunction=L.slice(2,-1),[P.shift()]},next:"formatString"},F,{regex:/:[\?\-+]?/,onMatch:function(L,U,P){L[1]=="+"&&(P[0].ifEnd=P[0]),L[1]=="?"&&(P[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),v.$tokenizer},v.prototype.tokenizeTmSnippet=function(R,I){return this.getTokenizer().getLineTokens(R,I).tokens.map(function(F){return F.value||F})},v.prototype.getVariableValue=function(R,I,F){if(/^\d+$/.test(I))return(this.variables.__||{})[I]||"";if(/^[A-Z]\d+$/.test(I))return(this.variables[I[0]+"__"]||{})[I.substr(1)]||"";if(I=I.replace(/^TM_/,""),!this.variables.hasOwnProperty(I))return"";var L=this.variables[I];return typeof L=="function"&&(L=this.variables[I](R,I,F)),L??""},v.prototype.tmStrFormat=function(R,I,F){if(!I.fmt)return R;var L=I.flag||"",U=I.guard;U=new RegExp(U,L.replace(/[^gim]/g,""));var P=typeof I.fmt=="string"?this.tokenizeTmSnippet(I.fmt,"formatString"):I.fmt,O=this,S=R.replace(U,function(){var k=O.variables.__;O.variables.__=[].slice.call(arguments);for(var N=O.resolveVariables(P,F),B="E",V=0;V<N.length;V++){var G=N[V];if(typeof G=="object")if(N[V]="",G.changeCase&&G.local){var Q=N[V+1];Q&&typeof Q=="string"&&(G.changeCase=="u"?N[V]=Q[0].toUpperCase():N[V]=Q[0].toLowerCase(),N[V+1]=Q.substr(1))}else G.changeCase&&(B=G.changeCase);else B=="U"?N[V]=G.toUpperCase():B=="L"&&(N[V]=G.toLowerCase())}return O.variables.__=k,N.join("")});return S},v.prototype.tmFormatFunction=function(R,I,F){return I.formatFunction=="upcase"?R.toUpperCase():I.formatFunction=="downcase"?R.toLowerCase():R},v.prototype.resolveVariables=function(R,I){function F(B){var V=R.indexOf(B,O+1);V!=-1&&(O=V)}for(var L=[],U="",P=!0,O=0;O<R.length;O++){var S=R[O];if(typeof S=="string"){L.push(S),S==`
|
|
1125
|
-
`?(P=!0,U=""):P&&(U=/^\t*/.exec(S)[0],P=/\S/.test(S));continue}if(S){if(P=!1,S.fmtString){var k=R.indexOf(S,O+1);k==-1&&(k=R.length),S.fmt=R.slice(O+1,k),O=k}if(S.text){var N=this.getVariableValue(I,S.text,U)+"";S.fmtString&&(N=this.tmStrFormat(N,S,I)),S.formatFunction&&(N=this.tmFormatFunction(N,S,I)),N&&!S.ifEnd?(L.push(N),F(S)):!N&&S.ifEnd&&F(S.ifEnd)}else S.elseEnd?F(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&L.push(S)}}return L},v.prototype.getDisplayTextForSnippet=function(R,I){var F=m.call(this,R,I);return F.text},v.prototype.insertSnippetForSelection=function(R,I,F){F===void 0&&(F={});var L=m.call(this,R,I,F),U=R.getSelectionRange(),P=R.session.replace(U,L.text),O=new y(R),S=R.inVirtualSelectionMode&&R.selection.index;O.addTabstops(L.tabstops,U.start,P,S)},v.prototype.insertSnippet=function(R,I,F){F===void 0&&(F={});var L=this;if(R.inVirtualSelectionMode)return L.insertSnippetForSelection(R,I,F);R.forEachSelection(function(){L.insertSnippetForSelection(R,I,F)},null,{keepOrder:!0}),R.tabstopManager&&R.tabstopManager.tabNext()},v.prototype.$getScope=function(R){var I=R.session.$mode.$id||"";if(I=I.split("/").pop(),I==="html"||I==="php"){I==="php"&&!R.session.$mode.inlinePhp&&(I="html");var F=R.getCursorPosition(),L=R.session.getState(F.row);typeof L=="object"&&(L=L[0]),L.substring&&(L.substring(0,3)=="js-"?I="javascript":L.substring(0,4)=="css-"?I="css":L.substring(0,4)=="php-"&&(I="php"))}return I},v.prototype.getActiveScopes=function(R){var I=this.$getScope(R),F=[I],L=this.snippetMap;return L[I]&&L[I].includeScopes&&F.push.apply(F,L[I].includeScopes),F.push("_"),F},v.prototype.expandWithTab=function(R,I){var F=this,L=R.forEachSelection(function(){return F.expandSnippetForSelection(R,I)},null,{keepOrder:!0});return L&&R.tabstopManager&&R.tabstopManager.tabNext(),L},v.prototype.expandSnippetForSelection=function(R,I){var F=R.getCursorPosition(),L=R.session.getLine(F.row),U=L.substring(0,F.column),P=L.substr(F.column),O=this.snippetMap,S;return this.getActiveScopes(R).some(function(k){var N=O[k];return N&&(S=this.findMatchingSnippet(N,U,P)),!!S},this),S?(I&&I.dryRun||(R.session.doc.removeInLine(F.row,F.column-S.replaceBefore.length,F.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(R,S.content),this.variables.M__=this.variables.T__=null),!0):!1},v.prototype.findMatchingSnippet=function(R,I,F){for(var L=R.length;L--;){var U=R[L];if(!(U.startRe&&!U.startRe.test(I))&&!(U.endRe&&!U.endRe.test(F))&&!(!U.startRe&&!U.endRe))return U.matchBefore=U.startRe?U.startRe.exec(I):[""],U.matchAfter=U.endRe?U.endRe.exec(F):[""],U.replaceBefore=U.triggerRe?U.triggerRe.exec(I)[0]:"",U.replaceAfter=U.endTriggerRe?U.endTriggerRe.exec(F)[0]:"",U}},v.prototype.register=function(R,I){function F(k){return k&&!/^\^?\(.*\)\$?$|^\\b$/.test(k)&&(k="(?:"+k+")"),k||""}function L(k,N,B){return k=F(k),N=F(N),k=N+k,k&&k[k.length-1]!="$"&&(k+="$"),new RegExp(k)}function U(k){k.scope||(k.scope=I||"_"),I=k.scope,P[I]||(P[I]=[],O[I]={});var N=O[I];if(k.name){var B=N[k.name];B&&S.unregister(B),N[k.name]=k}P[I].push(k),k.prefix&&(k.tabTrigger=k.prefix),!k.content&&k.body&&(k.content=Array.isArray(k.body)?k.body.join(`
|
|
1126
|
-
`):k.body),k.tabTrigger&&!k.trigger&&(!k.guard&&/^\w/.test(k.tabTrigger)&&(k.guard="\\b"),k.trigger=g.escapeRegExp(k.tabTrigger)),!(!k.trigger&&!k.guard&&!k.endTrigger&&!k.endGuard)&&(k.startRe=L(k.trigger,k.guard),k.triggerRe=new RegExp(k.trigger),k.endRe=L(k.endTrigger,k.endGuard),k.endTriggerRe=new RegExp(k.endTrigger))}var P=this.snippetMap,O=this.snippetNameMap,S=this;R||(R=[]),Array.isArray(R)?R.forEach(U):Object.keys(R).forEach(function(k){U(R[k])}),this._signal("registerSnippets",{scope:I})},v.prototype.unregister=function(R,I){function F(P){var O=U[P.scope||I];if(O&&O[P.name]){delete O[P.name];var S=L[P.scope||I],k=S&&S.indexOf(P);k>=0&&S.splice(k,1)}}var L=this.snippetMap,U=this.snippetNameMap;R.content?F(R):Array.isArray(R)&&R.forEach(F)},v.prototype.parseSnippetFile=function(R){R=R.replace(/\r/g,"");for(var I=[],F={},L=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,U;U=L.exec(R);){if(U[1])try{F=JSON.parse(U[1]),I.push(F)}catch{}if(U[4])F.content=U[4].replace(/^\t/gm,""),I.push(F),F={};else{var P=U[2],O=U[3];if(P=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;F.guard=S.exec(O)[1],F.trigger=S.exec(O)[1],F.endTrigger=S.exec(O)[1],F.endGuard=S.exec(O)[1]}else P=="snippet"?(F.tabTrigger=O.match(/^\S*/)[0],F.name||(F.name=O)):P&&(F[P]=O)}}return I},v.prototype.getSnippetByName=function(R,I){var F=this.snippetNameMap,L;return this.getActiveScopes(I).some(function(U){var P=F[U];return P&&(L=P[R]),!!L},this),L},v}();C.implement(h.prototype,p);var m=function(v,R,I){function F(le){for(var me=[],Ae=0;Ae<le.length;Ae++){var $e=le[Ae];if(typeof $e=="object"){if(N[$e.tabstopId])continue;var Te=le.lastIndexOf($e,Ae-1);$e=me[Te]||{tabstopId:$e.tabstopId}}me[Ae]=$e}return me}I===void 0&&(I={});var L=v.getCursorPosition(),U=v.session.getLine(L.row),P=v.session.getTabString(),O=U.match(/^\s*/)[0];L.column<O.length&&(O=O.slice(0,L.column)),R=R.replace(/\r/g,"");var S=this.tokenizeTmSnippet(R);S=this.resolveVariables(S,v),S=S.map(function(le){return le==`
|
|
1127
|
-
`&&!I.excludeExtraIndent?le+O:typeof le=="string"?le.replace(/\t/g,P):le});var k=[];S.forEach(function(le,me){if(typeof le=="object"){var Ae=le.tabstopId,$e=k[Ae];if($e||($e=k[Ae]=[],$e.index=Ae,$e.value="",$e.parents={}),$e.indexOf(le)===-1){le.choices&&!$e.choices&&($e.choices=le.choices),$e.push(le);var Te=S.indexOf(le,me+1);if(Te!==-1){var Ge=S.slice(me+1,Te),je=Ge.some(function(at){return typeof at=="object"});je&&!$e.value?$e.value=Ge:Ge.length&&(!$e.value||typeof $e.value!="string")&&($e.value=Ge.join(""))}}}}),k.forEach(function(le){le.length=0});for(var N={},B=0;B<S.length;B++){var V=S[B];if(typeof V=="object"){var G=V.tabstopId,Q=k[G],te=S.indexOf(V,B+1);if(N[G]){N[G]===V&&(delete N[G],Object.keys(N).forEach(function(le){Q.parents[le]=!0}));continue}N[G]=V;var he=Q.value;typeof he!="string"?he=F(he):V.fmt&&(he=this.tmStrFormat(he,V,v)),S.splice.apply(S,[B+1,Math.max(0,te-B)].concat(he,V)),Q.indexOf(V)===-1&&Q.push(V)}}var ne=0,ce=0,ue="";return S.forEach(function(le){if(typeof le=="string"){var me=le.split(`
|
|
1128
|
-
`);me.length>1?(ce=me[me.length-1].length,ne+=me.length-1):ce+=le.length,ue+=le}else le&&(le.start?le.end={row:ne,column:ce}:le.start={row:ne,column:ce})}),{text:ue,tabstops:k,tokens:S}},y=function(){function v(R){if(this.index=0,this.ranges=[],this.tabstops=[],R.tabstopManager)return R.tabstopManager;R.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(R)}return v.prototype.attach=function(R){this.$openTabstops=null,this.selectedTabstop=null,this.editor=R,this.session=R.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},v.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},v.prototype.onChange=function(R){for(var I=R.action[0]=="r",F=this.selectedTabstop||{},L=F.parents||{},U=this.tabstops.slice(),P=0;P<U.length;P++){var O=U[P],S=O==F||L[O.index];if(O.rangeList.$bias=S?0:1,R.action=="remove"&&O!==F){var k=O.parents&&O.parents[F.index],N=O.rangeList.pointIndex(R.start,k);N=N<0?-N-1:N+1;var B=O.rangeList.pointIndex(R.end,k);B=B<0?-B-1:B-1;for(var V=O.rangeList.ranges.slice(N,B),G=0;G<V.length;G++)this.removeRange(V[G])}O.rangeList.$onChange(R)}var Q=this.session;!this.$inChange&&I&&Q.getLength()==1&&!Q.getValue()&&this.detach()},v.prototype.updateLinkedFields=function(){var R=this.selectedTabstop;if(!(!R||!R.hasLinkedRanges||!R.firstNonLinked)){this.$inChange=!0;for(var I=this.session,F=I.getTextRange(R.firstNonLinked),L=0;L<R.length;L++){var U=R[L];if(U.linked){var P=U.original,O=l.snippetManager.tmStrFormat(F,P,this.editor);I.replace(U,O)}}this.$inChange=!1}},v.prototype.onAfterExec=function(R){R.command&&!R.command.readOnly&&this.updateLinkedFields()},v.prototype.onChangeSelection=function(){if(this.editor){for(var R=this.editor.selection.lead,I=this.editor.selection.anchor,F=this.editor.selection.isEmpty(),L=0;L<this.ranges.length;L++)if(!this.ranges[L].linked){var U=this.ranges[L].contains(R.row,R.column),P=F||this.ranges[L].contains(I.row,I.column);if(U&&P)return}this.detach()}},v.prototype.onChangeSession=function(){this.detach()},v.prototype.tabNext=function(R){var I=this.tabstops.length,F=this.index+(R||1);F=Math.min(Math.max(F,1),I),F==I&&(F=0),this.selectTabstop(F),this.updateTabstopMarkers(),F===0&&this.detach()},v.prototype.selectTabstop=function(R){this.$openTabstops=null;var I=this.tabstops[this.index];if(I&&this.addTabstopMarkers(I),this.index=R,I=this.tabstops[this.index],!(!I||!I.length)){this.selectedTabstop=I;var F=I.firstNonLinked||I;if(I.choices&&(F.cursor=F.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(F);else{var L=this.editor.multiSelect;L.toSingleRange(F);for(var U=0;U<I.length;U++)I.hasLinkedRanges&&I[U].linked||L.addRange(I[U].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},v.prototype.addTabstops=function(R,I,F){var L=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!R[0]){var U=i.fromPoints(F,F);M(U.start,I),M(U.end,I),R[0]=[U],R[0].index=0}var P=this.index,O=[P+1,0],S=this.ranges,k=this.snippetId=(this.snippetId||0)+1;R.forEach(function(N,B){var V=this.$openTabstops[B]||N;V.snippetId=k;for(var G=0;G<N.length;G++){var Q=N[G],te=i.fromPoints(Q.start,Q.end||Q.start);E(te.start,I),E(te.end,I),te.original=Q,te.tabstop=V,S.push(te),V!=N?V.unshift(te):V[G]=te,Q.fmtString||V.firstNonLinked&&L?(te.linked=!0,V.hasLinkedRanges=!0):V.firstNonLinked||(V.firstNonLinked=te)}V.firstNonLinked||(V.hasLinkedRanges=!1),V===N&&(O.push(V),this.$openTabstops[B]=V),this.addTabstopMarkers(V),V.rangeList=V.rangeList||new s,V.rangeList.$bias=0,V.rangeList.addList(V)},this),O.length>2&&(this.tabstops.length&&O.push(O.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,O))},v.prototype.addTabstopMarkers=function(R){var I=this.session;R.forEach(function(F){F.markerId||(F.markerId=I.addMarker(F,"ace_snippet-marker","text"))})},v.prototype.removeTabstopMarkers=function(R){var I=this.session;R.forEach(function(F){I.removeMarker(F.markerId),F.markerId=null})},v.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var R=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&R--,this.tabstops.forEach(function(I){I.snippetId===R?this.addTabstopMarkers(I):this.removeTabstopMarkers(I)},this)}},v.prototype.removeRange=function(R){var I=R.tabstop.indexOf(R);I!=-1&&R.tabstop.splice(I,1),I=this.ranges.indexOf(R),I!=-1&&this.ranges.splice(I,1),I=R.tabstop.rangeList.ranges.indexOf(R),I!=-1&&R.tabstop.splice(I,1),this.session.removeMarker(R.markerId),R.tabstop.length||(I=this.tabstops.indexOf(R.tabstop),I!=-1&&this.tabstops.splice(I,1),this.tabstops.length||this.detach())},v}();y.prototype.keyboardHandler=new o,y.prototype.keyboardHandler.bindKeys({Tab:function(v){l.snippetManager&&l.snippetManager.expandWithTab(v)||(v.tabstopManager.tabNext(1),v.renderer.scrollCursorIntoView())},"Shift-Tab":function(v){v.tabstopManager.tabNext(-1),v.renderer.scrollCursorIntoView()},Esc:function(v){v.tabstopManager.detach()}});var E=function(v,R){v.row==0&&(v.column+=R.column),v.row+=R.row},M=function(v,R){v.row==R.row&&(v.column-=R.column),v.row-=R.row};w.importCssString(`
|
|
1129
|
-
.ace_snippet-marker {
|
|
1130
|
-
-moz-box-sizing: border-box;
|
|
1131
|
-
box-sizing: border-box;
|
|
1132
|
-
background: rgba(194, 193, 208, 0.09);
|
|
1133
|
-
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1134
|
-
position: absolute;
|
|
1135
|
-
}`,"snippets.css",!1),l.snippetManager=new h;var _=e("./editor").Editor;(function(){this.insertSnippet=function(v,R){return l.snippetManager.insertSnippet(this,v,R)},this.expandSnippet=function(v){return l.snippetManager.expandWithTab(this,v)}}).call(_.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,l,T){var b=e("../virtual_renderer").VirtualRenderer,w=e("../editor").Editor,C=e("../range").Range,p=e("../lib/event"),g=e("../lib/lang"),i=e("../lib/dom"),s=e("../config").nls,o=e("./../lib/useragent"),r=function(E){return"suggest-aria-id:".concat(E)},n=o.isSafari?"menu":"listbox",a=o.isSafari?"menuitem":"option",h=o.isSafari?"aria-current":"aria-selected",m=function(E){var M=new b(E);M.$maxLines=4;var _=new w(M);return _.setHighlightActiveLine(!1),_.setShowPrintMargin(!1),_.renderer.setShowGutter(!1),_.renderer.setHighlightGutterLine(!1),_.$mouseHandler.$focusTimeout=0,_.$highlightTagPending=!0,_},y=function(){function E(M){var _=i.createElement("div"),v=m(_);M&&M.appendChild(_),_.style.display="none",v.renderer.content.style.cursor="default",v.renderer.setStyle("ace_autocomplete"),v.renderer.$textLayer.element.setAttribute("role",n),v.renderer.$textLayer.element.setAttribute("aria-roledescription",s("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),v.renderer.$textLayer.element.setAttribute("aria-label",s("autocomplete.popup.aria-label","Autocomplete suggestions")),v.renderer.textarea.setAttribute("aria-hidden","true"),v.setOption("displayIndentGuides",!1),v.setOption("dragDelay",150);var R=function(){};v.focus=R,v.$isFocused=!0,v.renderer.$cursorLayer.restartTimer=R,v.renderer.$cursorLayer.element.style.opacity="0",v.renderer.$maxLines=8,v.renderer.$keepTextAreaAtCursor=!1,v.setHighlightActiveLine(!1),v.session.highlight(""),v.session.$searchHighlight.clazz="ace_highlight-marker",v.on("mousedown",function(S){var k=S.getDocumentPosition();v.selection.moveToPosition(k),L.start.row=L.end.row=k.row,S.stop()});var I,F=new C(-1,0,-1,1/0),L=new C(-1,0,-1,1/0);L.id=v.session.addMarker(L,"ace_active-line","fullLine"),v.setSelectOnHover=function(S){S?F.id&&(v.session.removeMarker(F.id),F.id=null):F.id=v.session.addMarker(F,"ace_line-hover","fullLine")},v.setSelectOnHover(!1),v.on("mousemove",function(S){if(!I){I=S;return}if(!(I.x==S.x&&I.y==S.y)){I=S,I.scrollTop=v.renderer.scrollTop,v.isMouseOver=!0;var k=I.getDocumentPosition().row;F.start.row!=k&&(F.id||v.setRow(k),P(k))}}),v.renderer.on("beforeRender",function(){if(I&&F.start.row!=-1){I.$pos=null;var S=I.getDocumentPosition().row;F.id||v.setRow(S),P(S,!0)}}),v.renderer.on("afterRender",function(){for(var S=v.renderer.$textLayer,k=S.config.firstRow,N=S.config.lastRow;k<=N;k++){var B=S.element.childNodes[k-S.config.firstRow];B.setAttribute("role",a),B.setAttribute("aria-roledescription",s("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",v.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",k+1);var V=v.getData(k);if(V){var G="".concat(V.caption||V.value).concat(V.meta?", ".concat(V.meta):"");B.setAttribute("aria-label",G)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(te){te.setAttribute("role","mark")})}}),v.renderer.on("afterRender",function(){var S=v.getRow(),k=v.renderer.$textLayer,N=k.element.childNodes[S-k.config.firstRow],B=document.activeElement;if(N!==v.selectedNode&&v.selectedNode&&(i.removeCssClass(v.selectedNode,"ace_selected"),v.selectedNode.removeAttribute(h),v.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),v.selectedNode=N,N){var V=r(S);i.addCssClass(N,"ace_selected"),N.id=V,k.element.setAttribute("aria-activedescendant",V),B.setAttribute("aria-activedescendant",V),N.setAttribute(h,"true")}});var U=function(){P(-1)},P=function(S,k){S!==F.start.row&&(F.start.row=F.end.row=S,k||v.session._emit("changeBackMarker"),v._emit("changeHoverMarker"))};v.getHoveredRow=function(){return F.start.row},p.addListener(v.container,"mouseout",function(){v.isMouseOver=!1,U()}),v.on("hide",U),v.on("changeSelection",U),v.session.doc.getLength=function(){return v.data.length},v.session.doc.getLine=function(S){var k=v.data[S];return typeof k=="string"?k:k&&k.value||""};var O=v.session.bgTokenizer;return O.$tokenizeRow=function(S){function k(le,me){le&&B.push({type:(N.className||"")+(me||""),value:le})}var N=v.data[S],B=[];if(!N)return B;typeof N=="string"&&(N={value:N});for(var V=N.caption||N.value||N.name,G=V.toLowerCase(),Q=(v.filterText||"").toLowerCase(),te=0,he=0,ne=0;ne<=Q.length;ne++)if(ne!=he&&(N.matchMask&1<<ne||ne==Q.length)){var ce=Q.slice(he,ne);he=ne;var ue=G.indexOf(ce,te);if(ue==-1)continue;k(V.slice(te,ue),""),te=ue+ce.length,k(V.slice(ue,te),"completion-highlight")}return k(V.slice(te,V.length),""),B.push({type:"completion-spacer",value:" "}),N.meta&&B.push({type:"completion-meta",value:N.meta}),N.message&&B.push({type:"completion-message",value:N.message}),B},O.$updateOnChange=R,O.start=R,v.session.$computeWidth=function(){return this.screenWidth=0},v.isOpen=!1,v.isTopdown=!1,v.autoSelect=!0,v.filterText="",v.isMouseOver=!1,v.data=[],v.setData=function(S,k){v.filterText=k||"",v.setValue(g.stringRepeat(`
|
|
1136
|
-
`,S.length),-1),v.data=S||[],v.setRow(0)},v.getData=function(S){return v.data[S]},v.getRow=function(){return L.start.row},v.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),L.start.row!=S&&(v.selection.clearSelection(),L.start.row=L.end.row=S||0,v.session._emit("changeBackMarker"),v.moveCursorTo(S||0,0),v.isOpen&&v._signal("select"))},v.on("changeSelection",function(){v.isOpen&&v.setRow(v.selection.lead.row),v.renderer.scrollCursorIntoView()}),v.hide=function(){this.container.style.display="none",v.anchorPos=null,v.anchor=null,v.isOpen&&(v.isOpen=!1,this._signal("hide"))},v.tryShow=function(S,k,N,B){if(!B&&v.isOpen&&v.anchorPos&&v.anchor&&v.anchorPos.top===S.top&&v.anchorPos.left===S.left&&v.anchor===N)return!0;var V=this.container,G=this.renderer.scrollBar.width||10,Q=window.innerHeight-G,te=window.innerWidth-G,he=this.renderer,ne=he.$maxLines*k*1.4,ce={top:0,bottom:0},ue=Q-S.top-3*this.$borderSize-k,le=S.top-3*this.$borderSize;N||(le<=ue||ue>=ne?N="bottom":N="top"),N==="top"?(ce.bottom=S.top-this.$borderSize,ce.top=ce.bottom-ne):N==="bottom"&&(ce.top=S.top+k+this.$borderSize,ce.bottom=ce.top+ne);var me=ce.top>=0&&ce.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=le:he.$maxPixelHeight=ue,N==="top"?(V.style.top="",V.style.bottom=Q+G-ce.bottom+"px",v.isTopdown=!1):(V.style.top=ce.top+"px",V.style.bottom="",v.isTopdown=!0),V.style.display="";var Ae=S.left;return Ae+V.offsetWidth>te&&(Ae=te-V.offsetWidth),V.style.left=Ae+"px",V.style.right="",v.isOpen||(v.isOpen=!0,this._signal("show"),I=null),v.anchorPos=S,v.anchor=N,!0},v.show=function(S,k,N){this.tryShow(S,k,N?"bottom":void 0,!0)},v.goTo=function(S){var k=this.getRow(),N=this.session.getLength()-1;switch(S){case"up":k=k<=0?N:k-1;break;case"down":k=k>=N?-1:k+1;break;case"start":k=0;break;case"end":k=N}this.setRow(k)},v.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},v.$imageSize=0,v.$borderSize=1,v}return E}();i.importCssString(`
|
|
1137
|
-
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1138
|
-
background-color: #CAD6FA;
|
|
1139
|
-
z-index: 1;
|
|
1140
|
-
}
|
|
1141
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1142
|
-
background-color: #3a674e;
|
|
1143
|
-
}
|
|
1144
|
-
.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1145
|
-
border: 1px solid #abbffe;
|
|
1146
|
-
margin-top: -1px;
|
|
1147
|
-
background: rgba(233,233,253,0.4);
|
|
1148
|
-
position: absolute;
|
|
1149
|
-
z-index: 2;
|
|
1150
|
-
}
|
|
1151
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|
1152
|
-
border: 1px solid rgba(109, 150, 13, 0.8);
|
|
1153
|
-
background: rgba(58, 103, 78, 0.62);
|
|
1154
|
-
}
|
|
1155
|
-
.ace_completion-meta {
|
|
1156
|
-
opacity: 0.5;
|
|
1157
|
-
margin-left: 0.9em;
|
|
1158
|
-
}
|
|
1159
|
-
.ace_completion-message {
|
|
1160
|
-
margin-left: 0.9em;
|
|
1161
|
-
color: blue;
|
|
1162
|
-
}
|
|
1163
|
-
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1164
|
-
color: #2d69c7;
|
|
1165
|
-
}
|
|
1166
|
-
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|
1167
|
-
color: #93ca12;
|
|
1168
|
-
}
|
|
1169
|
-
.ace_editor.ace_autocomplete {
|
|
1170
|
-
width: 300px;
|
|
1171
|
-
z-index: 200000;
|
|
1172
|
-
border: 1px lightgray solid;
|
|
1173
|
-
position: fixed;
|
|
1174
|
-
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|
1175
|
-
line-height: 1.4;
|
|
1176
|
-
background: #fefefe;
|
|
1177
|
-
color: #111;
|
|
1178
|
-
}
|
|
1179
|
-
.ace_dark.ace_editor.ace_autocomplete {
|
|
1180
|
-
border: 1px #484747 solid;
|
|
1181
|
-
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|
1182
|
-
line-height: 1.4;
|
|
1183
|
-
background: #25282c;
|
|
1184
|
-
color: #c1c1c1;
|
|
1185
|
-
}
|
|
1186
|
-
.ace_autocomplete .ace_text-layer {
|
|
1187
|
-
width: calc(100% - 8px);
|
|
1188
|
-
}
|
|
1189
|
-
.ace_autocomplete .ace_line {
|
|
1190
|
-
display: flex;
|
|
1191
|
-
align-items: center;
|
|
1192
|
-
}
|
|
1193
|
-
.ace_autocomplete .ace_line > * {
|
|
1194
|
-
min-width: 0;
|
|
1195
|
-
flex: 0 0 auto;
|
|
1196
|
-
}
|
|
1197
|
-
.ace_autocomplete .ace_line .ace_ {
|
|
1198
|
-
flex: 0 1 auto;
|
|
1199
|
-
overflow: hidden;
|
|
1200
|
-
text-overflow: ellipsis;
|
|
1201
|
-
}
|
|
1202
|
-
.ace_autocomplete .ace_completion-spacer {
|
|
1203
|
-
flex: 1;
|
|
1204
|
-
}
|
|
1205
|
-
.ace_autocomplete.ace_loading:after {
|
|
1206
|
-
content: "";
|
|
1207
|
-
position: absolute;
|
|
1208
|
-
top: 0px;
|
|
1209
|
-
height: 2px;
|
|
1210
|
-
width: 8%;
|
|
1211
|
-
background: blue;
|
|
1212
|
-
z-index: 100;
|
|
1213
|
-
animation: ace_progress 3s infinite linear;
|
|
1214
|
-
animation-delay: 300ms;
|
|
1215
|
-
transform: translateX(-100%) scaleX(1);
|
|
1216
|
-
}
|
|
1217
|
-
@keyframes ace_progress {
|
|
1218
|
-
0% { transform: translateX(-100%) scaleX(1) }
|
|
1219
|
-
50% { transform: translateX(625%) scaleX(2) }
|
|
1220
|
-
100% { transform: translateX(1500%) scaleX(3) }
|
|
1221
|
-
}
|
|
1222
|
-
@media (prefers-reduced-motion) {
|
|
1223
|
-
.ace_autocomplete.ace_loading:after {
|
|
1224
|
-
transform: translateX(625%) scaleX(2);
|
|
1225
|
-
animation: none;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
`,"autocompletion.css",!1),l.AcePopup=y,l.$singleLineEditor=m,l.getAriaId=r}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,l,T){var b=function(){function w(C){this.editor=C,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return w.prototype.setScreenReaderContent=function(C){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),i=this.popup.renderer.$textLayer,s=i.element.childNodes[g-i.config.firstRow];if(s){for(var o="doc-tooltip ",r=0;r<this._lines.length;r++)o+="ace-inline-screenreader-line-".concat(r," ");s.setAttribute("aria-describedby",o)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=C.split(/\r\n|\r|\n/);var p=this.createCodeBlock();this.screenReaderDiv.appendChild(p)},w.prototype.destroy=function(){this.screenReaderDiv.remove()},w.prototype.createCodeBlock=function(){var C=document.createElement("pre");C.setAttribute("id","ace-inline-screenreader");for(var p=0;p<this._lines.length;p++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(p));var i=document.createTextNode(this._lines[p]);g.appendChild(i),C.appendChild(g)}return C},w}();l.AceInlineScreenReader=b}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,l,T){var b=e("../snippets").snippetManager,w=e("./inline_screenreader").AceInlineScreenReader,C=function(){function p(){this.editor=null}return p.prototype.show=function(g,i,s){if(s=s||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!i)return!1;this.inlineScreenReader||(this.inlineScreenReader=new w(g));var o=i.snippet?b.getDisplayTextForSnippet(g,i.snippet):i.value;return i.hideInlinePreview||!o||!o.startsWith(s)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(o),o=o.slice(s.length),o===""?g.removeGhostText():g.setGhostText(o),!0)},p.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},p.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},p.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},p}();l.AceInline=C}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,l,T){l.parForEach=function(w,C,p){var g=0,i=w.length;i===0&&p();for(var s=0;s<i;s++)C(w[s],function(o,r){g++,g===i&&p(o,r)})};var b=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;l.retrievePrecedingIdentifier=function(w,C,p){p=p||b;for(var g=[],i=C-1;i>=0&&p.test(w[i]);i--)g.push(w[i]);return g.reverse().join("")},l.retrieveFollowingIdentifier=function(w,C,p){p=p||b;for(var g=[],i=C;i<w.length&&p.test(w[i]);i++)g.push(w[i]);return g},l.getCompletionPrefix=function(w){var C=w.getCursorPosition(),p=w.session.getLine(C.row),g;return w.completers.forEach((function(i){i.identifierRegexps&&i.identifierRegexps.forEach((function(s){!g&&s&&(g=this.retrievePrecedingIdentifier(p,C.column,s))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(p,C.column)},l.triggerAutocomplete=function(w,p){var p=p??w.session.getPrecedingCharacter();return w.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(p)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,l,T){var b=e("./keyboard/hash_handler").HashHandler,w=e("./autocomplete/popup").AcePopup,C=e("./autocomplete/inline").AceInline,p=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),i=e("./lib/lang"),s=e("./lib/dom"),o=e("./snippets").snippetManager,r=e("./config"),n=e("./lib/event"),a=e("./lib/scroll").preventParentScroll,h=function(M,_){_.completer&&_.completer.destroy()},m=function(){function M(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new b,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=i.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=i.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=i.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=i.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=i.delayedCall((function(){var _=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!_||this.editor.completers.length===0||(this.completions=new E(M.completionsForLoading),this.openPopup(this.editor,_.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(M,"completionsForLoading",{get:function(){return[{caption:r.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),M.prototype.$init=function(){return this.popup=new w(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(_){this.insertMatch(),_.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),n.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},M.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new C,this.inlineRenderer},M.prototype.getPopup=function(){return this.popup||this.$init()},M.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},M.prototype.$seen=function(_){!this.hasSeen.has(_)&&_&&_.completer&&_.completer.onSeen&&typeof _.completer.onSeen=="function"&&(_.completer.onSeen(this.editor,_),this.hasSeen.add(_))},M.prototype.$onPopupChange=function(_){if(this.inlineRenderer&&this.inlineEnabled){var v=_?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(v),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},M.prototype.$updateGhostText=function(_){var v=this.base.row,R=this.base.column,I=this.editor.getCursorPosition().column,F=this.editor.session.getLine(v).slice(R,I);this.inlineRenderer.show(this.editor,_,F)?this.$seen(_):this.inlineRenderer.hide()},M.prototype.$onPopupRender=function(){var _=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var v=this.popup.getFirstVisibleRow();v<=this.popup.getLastVisibleRow();v++){var R=this.popup.getData(v);R&&(!_||R.hideInlinePreview)&&this.$seen(R)}},M.prototype.$onPopupShow=function(_){this.$onPopupChange(_),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},M.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var _=this.editor.container.parentNode,v=[];_;)v.push(_),_.addEventListener("scroll",this.onLayoutChange,{passive:!0}),_=_.parentNode;this.$elements=v}},M.prototype.unObserveLayoutChanges=function(){var _=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(v){v.removeEventListener("scroll",_.onLayoutChange,{passive:!0})}),this.$elements=null},M.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},M.prototype.$updatePopupPosition=function(){var _=this.editor,v=_.renderer,R=v.layerConfig.lineHeight,I=v.$cursorLayer.getPixelPosition(this.base,!0);I.left-=this.popup.getTextLeftOffset();var F=_.container.getBoundingClientRect();I.top+=F.top-v.layerConfig.offset,I.left+=F.left-_.renderer.scrollLeft,I.left+=v.gutterWidth;var L={top:I.top,left:I.left};v.$ghostText&&v.$ghostTextWidget&&this.base.row===v.$ghostText.position.row&&(L.top+=v.$ghostTextWidget.el.offsetHeight);var U=_.container.getBoundingClientRect().bottom-R,P=U<L.top?{top:U,left:L.left}:L;this.popup.tryShow(P,R,"bottom")||this.popup.tryShow(I,R,"top")||this.popup.show(I,R)},M.prototype.openPopup=function(_,v,R){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var I=this.popup.getRow(),F=this.popup.data[I];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:p(this.popup.getRow()),inline:this.inlineEnabled}),_.keyBinding.addKeyboardHandler(this.keyboardHandler);var L;this.stickySelection&&(L=this.popup.data.indexOf(F)),(!L||L===-1)&&(L=0),this.popup.setRow(this.autoSelect?L:-1),L===I&&F!==this.completions.filtered[L]&&this.$onPopupChange();var U=this.inlineRenderer&&this.inlineEnabled;if(L===I&&U){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}R||(this.popup.setTheme(_.getTheme()),this.popup.setFontSize(_.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},M.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},M.prototype.changeListener=function(_){var v=this.editor.selection.lead;(v.row!=this.base.row||v.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},M.prototype.blurListener=function(_){var v=document.activeElement,R=this.editor.textInput.getElement(),I=_.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(_.relatedTarget),F=this.popup&&this.popup.container;v!=R&&v.parentNode!=F&&!I&&v!=this.tooltipNode&&_.relatedTarget!=R&&this.detach()},M.prototype.mousedownListener=function(_){this.detach()},M.prototype.mousewheelListener=function(_){this.popup&&!this.popup.isMouseOver&&this.detach()},M.prototype.mouseOutListener=function(_){this.popup.isOpen&&this.$updatePopupPosition()},M.prototype.goTo=function(_){this.popup.goTo(_)},M.prototype.insertMatch=function(_,v){if(_||(_=this.popup.getData(this.popup.getRow())),!_)return!1;if(_.value==="")return this.detach();var R=this.completions,I=this.getCompletionProvider().insertMatch(this.editor,_,R.filterText,v);return this.completions==R&&this.detach(),I},M.prototype.showPopup=function(_,v){this.editor&&this.detach(),this.activated=!0,this.editor=_,_.completer!=this&&(_.completer&&_.completer.detach(),_.completer=this),_.on("changeSelection",this.changeListener),_.on("blur",this.blurListener),_.on("mousedown",this.mousedownListener),_.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,v)},M.prototype.getCompletionProvider=function(_){return this.completionProvider||(this.completionProvider=new y(_)),this.completionProvider},M.prototype.gatherCompletions=function(_,v){return this.getCompletionProvider().gatherCompletions(_,v)},M.prototype.updateCompletions=function(_,v){if(_&&this.base&&this.completions){var I=this.editor.getCursorPosition(),F=this.editor.session.getTextRange({start:this.base,end:I});if(F==this.completions.filterText)return;if(this.completions.setFilter(F),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==F&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,F,_);return}if(v&&v.matches){var I=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(I.row,I.column),this.base.$insertRight=!0,this.completions=new E(v.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",_)}var R=this.editor.getSession(),I=this.editor.getCursorPosition(),F=g.getCompletionPrefix(this.editor);this.base=R.doc.createAnchor(I.row,I.column-F.length),this.base.$insertRight=!0;var L={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:F,pos:I}).provideCompletions(this.editor,L,(function(U,P,O){var S=P.filtered,k=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!S.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(k)),N){var B=[{caption:N,value:""}];this.completions=new E(B),this.openPopup(this.editor,k,_),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==k&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!O&&this.showLoadingState?new E(M.completionsForLoading.concat(S),P.filterText):P,this.openPopup(this.editor,k,_),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},M.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},M.prototype.updateDocTooltip=function(){var _=this.popup,v=this.completions&&this.completions.filtered,R=v&&(v[_.getHoveredRow()]||v[_.getRow()]),I=null;if(!R||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var F=this.editor.completers.length,L=0;L<F;L++){var U=this.editor.completers[L];if(U.getDocTooltip&&R.completerId===U.id){I=U.getDocTooltip(R);break}}if(!I&&typeof R!="string"&&(I=R),typeof I=="string"&&(I={docText:I}),!I||!I.docHTML&&!I.docText)return this.hideDocTooltip();this.showDocTooltip(I)},M.prototype.showDocTooltip=function(_){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",a));var v=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(v.isDark?"ace_dark ":"")+(v.cssClass||"");var R=this.tooltipNode;_.docHTML?R.innerHTML=_.docHTML:_.docText&&(R.textContent=_.docText),R.parentNode||this.popup.container.appendChild(this.tooltipNode);var I=this.popup,F=I.container.getBoundingClientRect(),L=400,U=300,P=I.renderer.scrollBar.width||10,O=F.left,S=window.innerWidth-F.right-P,k=I.isTopdown?F.top:window.innerHeight-P-F.bottom,N=[Math.min(S/L,1),Math.min(O/L,1),Math.min(k/U*.9)],B=Math.max.apply(Math,N),V=R.style;V.display="block",B==N[0]?(V.left=F.right+1+"px",V.right="",V.maxWidth=L*B+"px",V.top=F.top+"px",V.bottom="",V.maxHeight=Math.min(window.innerHeight-P-F.top,U)+"px"):B==N[1]?(V.right=window.innerWidth-F.left+"px",V.left="",V.maxWidth=L*B+"px",V.top=F.top+"px",V.bottom="",V.maxHeight=Math.min(window.innerHeight-P-F.top,U)+"px"):B==N[2]&&(V.left=window.innerWidth-F.left+"px",V.maxWidth=Math.min(L,window.innerWidth)+"px",I.isTopdown?(V.top=F.bottom+"px",V.left=F.left+"px",V.right="",V.bottom="",V.maxHeight=Math.min(window.innerHeight-P-F.bottom,U)+"px"):(V.top=I.container.offsetTop-R.offsetHeight+"px",V.left=F.left+"px",V.right="",V.bottom="",V.maxHeight=Math.min(I.container.offsetTop,U)+"px"))},M.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var _=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==_&&this.editor.focus(),this.tooltipNode=null,_.parentNode&&_.parentNode.removeChild(_)}},M.prototype.onTooltipClick=function(_){for(var v=_.target;v&&v!=this.tooltipNode;){if(v.nodeName=="A"&&v.href){v.rel="noreferrer",v.target="_blank";break}v=v.parentNode}},M.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var _=this.popup.container;_&&_.parentNode&&_.parentNode.removeChild(_)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",h),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},M.for=function(_){return _.completer instanceof M||(_.completer&&(_.completer.destroy(),_.completer=null),r.get("sharedPopups")?(M.$sharedInstance||(M.$sharedInstance=new M),_.completer=M.$sharedInstance):(_.completer=new M,_.once("destroy",h))),_.completer},M}();m.prototype.commands={Up:function(M){M.completer.goTo("up")},Down:function(M){M.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(M){M.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(M){M.completer.goTo("end")},Esc:function(M){M.completer.detach()},Return:function(M){return M.completer.insertMatch()},"Shift-Return":function(M){M.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(M){var _=M.completer.insertMatch();if(_||M.tabstopManager)return _;M.completer.goTo("down")},Backspace:function(M){M.execCommand("backspace");var _=g.getCompletionPrefix(M);!_&&M.completer&&M.completer.detach()},PageUp:function(M){M.completer.popup.gotoPageUp()},PageDown:function(M){M.completer.popup.gotoPageDown()}},m.startCommand={name:"startAutocomplete",exec:function(M,_){var v=m.for(M);v.autoInsert=!1,v.autoSelect=!0,v.autoShown=!1,v.showPopup(M,_),v.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var y=function(){function M(_){this.initialPosition=_,this.active=!0}return M.prototype.insertByIndex=function(_,v,R){return!this.completions||!this.completions.filtered?!1:this.insertMatch(_,this.completions.filtered[v],R)},M.prototype.insertMatch=function(_,v,R){if(!v)return!1;if(_.startOperation({command:{name:"insertMatch"}}),v.completer&&v.completer.insertMatch)v.completer.insertMatch(_,v);else{if(!this.completions)return!1;var I=this.completions.filterText.length,F=0;if(v.range&&v.range.start.row===v.range.end.row&&(I-=this.initialPosition.prefix.length,I+=this.initialPosition.pos.column-v.range.start.column,F+=v.range.end.column-this.initialPosition.pos.column),I||F){var L;_.selection.getAllRanges?L=_.selection.getAllRanges():L=[_.getSelectionRange()];for(var U=0,P;P=L[U];U++)P.start.column-=I,P.end.column+=F,_.session.remove(P)}v.snippet?o.insertSnippet(_,v.snippet):this.$insertString(_,v),v.completer&&v.completer.onInsert&&typeof v.completer.onInsert=="function"&&v.completer.onInsert(_,v),v.command&&v.command==="startAutocomplete"&&_.execCommand(v.command)}return _.endOperation(),!0},M.prototype.$insertString=function(_,v){var R=v.value||v;_.execCommand("insertstring",R)},M.prototype.gatherCompletions=function(_,v){var R=_.getSession(),I=_.getCursorPosition(),F=g.getCompletionPrefix(_),L=[];this.completers=_.completers;var U=_.completers.length;return _.completers.forEach(function(P,O){P.getCompletions(_,R,I,F,function(S,k){P.hideInlinePreview&&(k=k.map(function(N){return Object.assign(N,{hideInlinePreview:P.hideInlinePreview})})),!S&&k&&(L=L.concat(k)),v(null,{prefix:g.getCompletionPrefix(_),matches:L,finished:--U===0})})}),!0},M.prototype.provideCompletions=function(_,v,R){var I=(function(P){var O=P.prefix,S=P.matches;this.completions=new E(S),v.exactMatch&&(this.completions.exactMatch=!0),v.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&R(null,this.completions,P.finished)}).bind(this),F=!0,L=null;if(this.gatherCompletions(_,(function(P,O){if(this.active){P&&(R(P,[],!0),this.detach());var S=O.prefix;if(S.indexOf(O.prefix)===0){if(F){L=O;return}I(O)}}}).bind(this)),F=!1,L){var U=L;L=null,I(U)}},M.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(_){typeof _.cancel=="function"&&_.cancel()})},M}(),E=function(){function M(_,v){this.all=_,this.filtered=_,this.filterText=v||"",this.exactMatch=!1,this.ignoreCaption=!1}return M.prototype.setFilter=function(_){if(_.length>this.filterText&&_.lastIndexOf(this.filterText,0)===0)var v=this.filtered;else var v=this.all;this.filterText=_,v=this.filterCompletions(v,this.filterText),v=v.sort(function(I,F){return F.exactMatch-I.exactMatch||F.$score-I.$score||(I.caption||I.value).localeCompare(F.caption||F.value)});var R=null;v=v.filter(function(I){var F=I.snippet||I.caption||I.value;return F===R?!1:(R=F,!0)}),this.filtered=v},M.prototype.filterCompletions=function(_,v){var R=[],I=v.toUpperCase(),F=v.toLowerCase();e:for(var L=0,U;U=_[L];L++){if(U.skipFilter){U.$score=U.score,R.push(U);continue}var P=!this.ignoreCaption&&U.caption||U.value||U.snippet;if(P){var O=-1,S=0,k=0,N,B;if(this.exactMatch){if(v!==P.substr(0,v.length))continue e}else{var V=P.toLowerCase().indexOf(F);if(V>-1)k=V;else for(var G=0;G<v.length;G++){var Q=P.indexOf(F[G],O+1),te=P.indexOf(I[G],O+1);if(N=Q>=0&&(te<0||Q<te)?Q:te,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(k+=10),k+=B,S|=1<<G),O=N}}U.matchMask=S,U.exactMatch=k?0:1,U.$score=(U.score||0)-k,R.push(U)}}return R},M}();l.Autocomplete=m,l.CompletionProvider=y,l.FilteredList=E}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,l,T){function b(g,i){var s=g.getTextRange(C.fromPoints({row:0,column:0},i));return s.split(p).length-1}function w(g,i){var s=b(g,i),o=g.getValue().split(p),r=Object.create(null),n=o[s];return o.forEach(function(a,h){if(!(!a||a===n)){var m=Math.abs(s-h),y=o.length-m;r[a]?r[a]=Math.max(y,r[a]):r[a]=y}}),r}var C=e("../range").Range,p=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;l.getCompletions=function(g,i,s,o,r){var n=w(i,s),a=Object.keys(n);r(null,a.map(function(h){return{caption:h,value:h,score:n[h],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,l,T){var b=e("../snippets").snippetManager,w=e("../autocomplete").Autocomplete,C=e("../config"),p=e("../lib/lang"),g=e("../autocomplete/util"),i=e("../autocomplete/text_completer"),s={getCompletions:function(I,F,L,U,P){if(F.$mode.completer)return F.$mode.completer.getCompletions(I,F,L,U,P);var O=I.session.getState(L.row),S=F.$mode.getCompletions(O,F,L,U);S=S.map(function(k){return k.completerId=s.id,k}),P(null,S)},id:"keywordCompleter"},o=function(I){var F={};return I.replace(/\${(\d+)(:(.*?))?}/g,function(L,U,P,O){return F[U]=O||""}).replace(/\$(\d+?)/g,function(L,U){return F[U]})},r={getCompletions:function(I,F,L,U,P){var O=[],S=F.getTokenAt(L.row,L.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?O.push("html-tag"):O=b.getActiveScopes(I);var k=b.snippetMap,N=[];O.forEach(function(B){for(var V=k[B]||[],G=V.length;G--;){var Q=V[G],te=Q.name||Q.tabTrigger;te&&N.push({caption:te,snippet:Q.content,meta:Q.tabTrigger&&!Q.name?Q.tabTrigger+"⇥ ":"snippet",completerId:r.id})}},this),P(null,N)},getDocTooltip:function(I){I.snippet&&!I.docHTML&&(I.docHTML=["<b>",p.escapeHTML(I.caption),"</b>","<hr></hr>",p.escapeHTML(o(I.snippet))].join(""))},id:"snippetCompleter"},n=[r,i,s];l.setCompleters=function(I){n.length=0,I&&n.push.apply(n,I)},l.addCompleter=function(I){n.push(I)},l.textCompleter=i,l.keyWordCompleter=s,l.snippetCompleter=r;var a={name:"expandSnippet",exec:function(I){return b.expandWithTab(I)},bindKey:"Tab"},h=function(I,F){m(F.session.$mode)},m=function(I){typeof I=="string"&&(I=C.$modes[I]),I&&(b.files||(b.files={}),y(I.$id,I.snippetFileId),I.modes&&I.modes.forEach(m))},y=function(I,F){!F||!I||b.files[I]||(b.files[I]={},C.loadModule(F,function(L){L&&(b.files[I]=L,!L.snippets&&L.snippetText&&(L.snippets=b.parseSnippetFile(L.snippetText)),b.register(L.snippets||[],L.scope),L.includeScopes&&(b.snippetMap[L.scope].includeScopes=L.includeScopes,L.includeScopes.forEach(function(U){m("ace/mode/"+U)})))}))},E=function(I){var F=I.editor,L=F.completer&&F.completer.activated;if(I.command.name==="backspace")L&&!g.getCompletionPrefix(F)&&F.completer.detach();else if(I.command.name==="insertstring"&&!L){M=I;var U=I.editor.$liveAutocompletionDelay;U?_.delay(U):v(I)}},M,_=p.delayedCall(function(){v(M)},0),v=function(I){var F=I.editor,L=g.getCompletionPrefix(F),U=I.args,P=g.triggerAutocomplete(F,U);if(L&&L.length>=F.$liveAutocompletionThreshold||P){var O=w.for(F);O.autoShown=!0,O.showPopup(F)}},R=e("../editor").Editor;e("../config").defineOptions(R.prototype,"editor",{enableBasicAutocompletion:{set:function(I){I?(this.completers||(this.completers=Array.isArray(I)?I:n),this.commands.addCommand(w.startCommand)):this.commands.removeCommand(w.startCommand)},value:!1},enableLiveAutocompletion:{set:function(I){I?(this.completers||(this.completers=Array.isArray(I)?I:n),this.commands.on("afterExec",E)):this.commands.off("afterExec",E)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(I){I?(this.commands.addCommand(a),this.on("changeMode",h),h(null,this)):(this.commands.removeCommand(a),this.off("changeMode",h))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){c&&(c.exports=e)})}()}(vc)),vc.exports}$x();var yc={exports:{}},Qd;function Mx(){return Qd||(Qd=1,function(c,u){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,l,T){T.exports=`
|
|
1229
|
-
|
|
1230
|
-
/* ------------------------------------------------------------------------------------------
|
|
1231
|
-
* Editor Search Form
|
|
1232
|
-
* --------------------------------------------------------------------------------------- */
|
|
1233
|
-
.ace_search {
|
|
1234
|
-
background-color: #ddd;
|
|
1235
|
-
color: #666;
|
|
1236
|
-
border: 1px solid #cbcbcb;
|
|
1237
|
-
border-top: 0 none;
|
|
1238
|
-
overflow: hidden;
|
|
1239
|
-
margin: 0;
|
|
1240
|
-
padding: 4px 6px 0 4px;
|
|
1241
|
-
position: absolute;
|
|
1242
|
-
top: 0;
|
|
1243
|
-
z-index: 99;
|
|
1244
|
-
white-space: normal;
|
|
1245
|
-
}
|
|
1246
|
-
.ace_search.left {
|
|
1247
|
-
border-left: 0 none;
|
|
1248
|
-
border-radius: 0px 0px 5px 0px;
|
|
1249
|
-
left: 0;
|
|
1250
|
-
}
|
|
1251
|
-
.ace_search.right {
|
|
1252
|
-
border-radius: 0px 0px 0px 5px;
|
|
1253
|
-
border-right: 0 none;
|
|
1254
|
-
right: 0;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
.ace_search_form, .ace_replace_form {
|
|
1258
|
-
margin: 0 20px 4px 0;
|
|
1259
|
-
overflow: hidden;
|
|
1260
|
-
line-height: 1.9;
|
|
1261
|
-
}
|
|
1262
|
-
.ace_replace_form {
|
|
1263
|
-
margin-right: 0;
|
|
1264
|
-
}
|
|
1265
|
-
.ace_search_form.ace_nomatch {
|
|
1266
|
-
outline: 1px solid red;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
.ace_search_field {
|
|
1270
|
-
border-radius: 3px 0 0 3px;
|
|
1271
|
-
background-color: white;
|
|
1272
|
-
color: black;
|
|
1273
|
-
border: 1px solid #cbcbcb;
|
|
1274
|
-
border-right: 0 none;
|
|
1275
|
-
outline: 0;
|
|
1276
|
-
padding: 0;
|
|
1277
|
-
font-size: inherit;
|
|
1278
|
-
margin: 0;
|
|
1279
|
-
line-height: inherit;
|
|
1280
|
-
padding: 0 6px;
|
|
1281
|
-
min-width: 17em;
|
|
1282
|
-
vertical-align: top;
|
|
1283
|
-
min-height: 1.8em;
|
|
1284
|
-
box-sizing: content-box;
|
|
1285
|
-
}
|
|
1286
|
-
.ace_searchbtn {
|
|
1287
|
-
border: 1px solid #cbcbcb;
|
|
1288
|
-
line-height: inherit;
|
|
1289
|
-
display: inline-block;
|
|
1290
|
-
padding: 0 6px;
|
|
1291
|
-
background: #fff;
|
|
1292
|
-
border-right: 0 none;
|
|
1293
|
-
border-left: 1px solid #dcdcdc;
|
|
1294
|
-
cursor: pointer;
|
|
1295
|
-
margin: 0;
|
|
1296
|
-
position: relative;
|
|
1297
|
-
color: #666;
|
|
1298
|
-
}
|
|
1299
|
-
.ace_searchbtn:last-child {
|
|
1300
|
-
border-radius: 0 3px 3px 0;
|
|
1301
|
-
border-right: 1px solid #cbcbcb;
|
|
1302
|
-
}
|
|
1303
|
-
.ace_searchbtn:disabled {
|
|
1304
|
-
background: none;
|
|
1305
|
-
cursor: default;
|
|
1306
|
-
}
|
|
1307
|
-
.ace_searchbtn:hover {
|
|
1308
|
-
background-color: #eef1f6;
|
|
1309
|
-
}
|
|
1310
|
-
.ace_searchbtn.prev, .ace_searchbtn.next {
|
|
1311
|
-
padding: 0px 0.7em
|
|
1312
|
-
}
|
|
1313
|
-
.ace_searchbtn.prev:after, .ace_searchbtn.next:after {
|
|
1314
|
-
content: "";
|
|
1315
|
-
border: solid 2px #888;
|
|
1316
|
-
width: 0.5em;
|
|
1317
|
-
height: 0.5em;
|
|
1318
|
-
border-width: 2px 0 0 2px;
|
|
1319
|
-
display:inline-block;
|
|
1320
|
-
transform: rotate(-45deg);
|
|
1321
|
-
}
|
|
1322
|
-
.ace_searchbtn.next:after {
|
|
1323
|
-
border-width: 0 2px 2px 0 ;
|
|
1324
|
-
}
|
|
1325
|
-
.ace_searchbtn_close {
|
|
1326
|
-
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
|
|
1327
|
-
border-radius: 50%;
|
|
1328
|
-
border: 0 none;
|
|
1329
|
-
color: #656565;
|
|
1330
|
-
cursor: pointer;
|
|
1331
|
-
font: 16px/16px Arial;
|
|
1332
|
-
padding: 0;
|
|
1333
|
-
height: 14px;
|
|
1334
|
-
width: 14px;
|
|
1335
|
-
top: 9px;
|
|
1336
|
-
right: 7px;
|
|
1337
|
-
position: absolute;
|
|
1338
|
-
}
|
|
1339
|
-
.ace_searchbtn_close:hover {
|
|
1340
|
-
background-color: #656565;
|
|
1341
|
-
background-position: 50% 100%;
|
|
1342
|
-
color: white;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
.ace_button {
|
|
1346
|
-
margin-left: 2px;
|
|
1347
|
-
cursor: pointer;
|
|
1348
|
-
-webkit-user-select: none;
|
|
1349
|
-
-moz-user-select: none;
|
|
1350
|
-
-o-user-select: none;
|
|
1351
|
-
-ms-user-select: none;
|
|
1352
|
-
user-select: none;
|
|
1353
|
-
overflow: hidden;
|
|
1354
|
-
opacity: 0.7;
|
|
1355
|
-
border: 1px solid rgba(100,100,100,0.23);
|
|
1356
|
-
padding: 1px;
|
|
1357
|
-
box-sizing: border-box!important;
|
|
1358
|
-
color: black;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
.ace_button:hover {
|
|
1362
|
-
background-color: #eee;
|
|
1363
|
-
opacity:1;
|
|
1364
|
-
}
|
|
1365
|
-
.ace_button:active {
|
|
1366
|
-
background-color: #ddd;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
.ace_button.checked {
|
|
1370
|
-
border-color: #3399ff;
|
|
1371
|
-
opacity:1;
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
.ace_search_options{
|
|
1375
|
-
margin-bottom: 3px;
|
|
1376
|
-
text-align: right;
|
|
1377
|
-
-webkit-user-select: none;
|
|
1378
|
-
-moz-user-select: none;
|
|
1379
|
-
-o-user-select: none;
|
|
1380
|
-
-ms-user-select: none;
|
|
1381
|
-
user-select: none;
|
|
1382
|
-
clear: both;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
.ace_search_counter {
|
|
1386
|
-
float: left;
|
|
1387
|
-
font-family: arial;
|
|
1388
|
-
padding: 0 8px;
|
|
1389
|
-
}`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,l,T){var b=e("../lib/dom"),w=e("../lib/lang"),C=e("../lib/event"),p=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,i=e("../lib/keys"),s=e("../config").nls,o=999;b.importCssString(p,"ace_searchbox",!1);var r=function(){function h(m,y,E){this.activeInput,this.element=b.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:s("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},""],["span",{action:"findNext",class:"ace_searchbtn next"},""],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},s("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:s("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},s("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},s("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:s("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:s("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:s("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:s("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:s("search-box.toggle-in-selection.title","Search In Selection")},"S"]]]),this.setSession=this.setSession.bind(this),this.$onEditorInput=this.onEditorInput.bind(this),this.$init(),this.setEditor(m),b.importCssString(p,"ace_searchbox",m.container),C.addListener(this.element,"touchstart",function(M){M.stopPropagation()},m)}return h.prototype.setEditor=function(m){m.searchBox=this,m.renderer.scroller.appendChild(this.element),this.editor=m},h.prototype.setSession=function(m){this.searchRange=null,this.$syncOptions(!0)},h.prototype.onEditorInput=function(){this.find(!1,!1,!0)},h.prototype.$initElements=function(m){this.searchBox=m.querySelector(".ace_search_form"),this.replaceBox=m.querySelector(".ace_replace_form"),this.searchOption=m.querySelector("[action=searchInSelection]"),this.replaceOption=m.querySelector("[action=toggleReplace]"),this.regExpOption=m.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=m.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=m.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=m.querySelector(".ace_search_counter")},h.prototype.$init=function(){var m=this.element;this.$initElements(m);var y=this;C.addListener(m,"mousedown",function(E){setTimeout(function(){y.activeInput.focus()},0),C.stopPropagation(E)}),C.addListener(m,"click",function(E){var M=E.target||E.srcElement,_=M.getAttribute("action");_&&y[_]?y[_]():y.$searchBarKb.commands[_]&&y.$searchBarKb.commands[_].exec(y),C.stopPropagation(E)}),C.addCommandKeyListener(m,function(E,M,_){var v=i.keyCodeToString(_),R=y.$searchBarKb.findKeyCommand(M,v);R&&R.exec&&(R.exec(y),C.stopEvent(E))}),this.$onChange=w.delayedCall(function(){y.find(!1,!1)}),C.addListener(this.searchInput,"input",function(){y.$onChange.schedule(20)}),C.addListener(this.searchInput,"focus",function(){y.activeInput=y.searchInput,y.searchInput.value&&y.highlight()}),C.addListener(this.replaceInput,"focus",function(){y.activeInput=y.replaceInput,y.searchInput.value&&y.highlight()})},h.prototype.setSearchRange=function(m){this.searchRange=m,m?this.searchRangeMarker=this.editor.session.addMarker(m,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},h.prototype.$syncOptions=function(m){b.setCssClass(this.replaceOption,"checked",this.searchRange),b.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",b.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),b.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),b.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var y=this.editor.getReadOnly();this.replaceOption.style.display=y?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!y?"":"none",this.find(!1,!1,m)},h.prototype.highlight=function(m){this.editor.session.highlight(m||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},h.prototype.find=function(m,y,E){var M=this.editor.find(this.searchInput.value,{skipCurrent:m,backwards:y,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:E,range:this.searchRange}),_=!M&&this.searchInput.value;b.setCssClass(this.searchBox,"ace_nomatch",_),this.editor._emit("findSearchBox",{match:!_}),this.highlight(),this.updateCounter()},h.prototype.updateCounter=function(){var m=this.editor,y=m.$search.$options.re,E=y.unicode,M=0,_=0;if(y){var v=this.searchRange?m.session.getTextRange(this.searchRange):m.getValue();m.$search.$isMultilineSearch(m.getLastSearchOptions())&&(v=v.replace(/\r\n|\r|\n/g,`
|
|
1390
|
-
`),m.session.doc.$autoNewLine=`
|
|
1391
|
-
`);var R=m.session.doc.positionToIndex(m.selection.anchor);this.searchRange&&(R-=m.session.doc.positionToIndex(this.searchRange.start));for(var I=y.lastIndex=0,F;(F=y.exec(v))&&(M++,I=F.index,I<=R&&_++,!(M>o||!F[0]&&(y.lastIndex=I+=w.skipEmptyMatch(v,I,E),I>=v.length))););}this.searchCounter.textContent=s("search-box.search-counter","$0 of $1",[_,M>o?o+"+":M])},h.prototype.findNext=function(){this.find(!0,!1)},h.prototype.findPrev=function(){this.find(!0,!0)},h.prototype.findAll=function(){var m=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),y=!m&&this.searchInput.value;b.setCssClass(this.searchBox,"ace_nomatch",y),this.editor._emit("findSearchBox",{match:!y}),this.highlight(),this.hide()},h.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},h.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},h.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},h.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.editor.off("input",this.$onEditorInput),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},h.prototype.show=function(m,y){this.active=!0,this.editor.on("changeSession",this.setSession),this.editor.on("input",this.$onEditorInput),this.element.style.display="",this.replaceOption.checked=y,this.editor.$search.$options.regExp&&(m=w.escapeRegExp(m)),m&&(this.searchInput.value=m),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},h.prototype.isFocused=function(){var m=document.activeElement;return m==this.searchInput||m==this.replaceInput},h}(),n=new g;n.bindKeys({"Ctrl-f|Command-f":function(h){var m=h.isReplace=!h.isReplace;h.replaceBox.style.display=m?"":"none",h.replaceOption.checked=!1,h.$syncOptions(),h.searchInput.focus()},"Ctrl-H|Command-Option-F":function(h){h.editor.getReadOnly()||(h.replaceOption.checked=!0,h.$syncOptions(),h.replaceInput.focus())},"Ctrl-G|Command-G":function(h){h.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(h){h.findPrev()},esc:function(h){setTimeout(function(){h.hide()})},Return:function(h){h.activeInput==h.replaceInput&&h.replace(),h.findNext()},"Shift-Return":function(h){h.activeInput==h.replaceInput&&h.replace(),h.findPrev()},"Alt-Return":function(h){h.activeInput==h.replaceInput&&h.replaceAll(),h.findAll()},Tab:function(h){(h.activeInput==h.replaceInput?h.searchInput:h.replaceInput).focus()}}),n.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(h){h.regExpOption.checked=!h.regExpOption.checked,h.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(h){h.caseSensitiveOption.checked=!h.caseSensitiveOption.checked,h.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(h){h.wholeWordOption.checked=!h.wholeWordOption.checked,h.$syncOptions()}},{name:"toggleReplace",exec:function(h){h.replaceOption.checked=!h.replaceOption.checked,h.$syncOptions()}},{name:"searchInSelection",exec:function(h){h.searchOption.checked=!h.searchRange,h.setSearchRange(h.searchOption.checked&&h.editor.getSelectionRange()),h.$syncOptions()}}]);var a=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(h){h.searchBox.hide()}}]);r.prototype.$searchBarKb=n,r.prototype.$closeSearchBarKb=a,l.SearchBox=r,l.Search=function(h,m){var y=h.searchBox||new r(h);y.show(h.session.getTextRange(),m)}}),function(){ace.require(["ace/ext/searchbox"],function(e){c&&(c.exports=e)})}()}(yc)),yc.exports}Mx();var Tx=Object.defineProperty,Lx=(c,u,e)=>u in c?Tx(c,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[u]=e,$r=(c,u,e)=>Lx(c,typeof u!="symbol"?u+"":u,e);function Hp(c,u){return function(){return c.apply(u,arguments)}}const{toString:Ex}=Object.prototype,{getPrototypeOf:Lu}=Object,{iterator:Xa,toStringTag:zp}=Symbol,el=(c=>u=>{const e=Ex.call(u);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),gr=c=>(c=c.toLowerCase(),u=>el(u)===c),tl=c=>u=>typeof u===c,{isArray:vs}=Array,Zs=tl("undefined");function Rx(c){return c!==null&&!Zs(c)&&c.constructor!==null&&!Zs(c.constructor)&&Si(c.constructor.isBuffer)&&c.constructor.isBuffer(c)}const Up=gr("ArrayBuffer");function Ix(c){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(c):u=c&&c.buffer&&Up(c.buffer),u}const Ox=tl("string"),Si=tl("function"),Vp=tl("number"),nl=c=>c!==null&&typeof c=="object",Nx=c=>c===!0||c===!1,Ua=c=>{if(el(c)!=="object")return!1;const u=Lu(c);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(zp in c)&&!(Xa in c)},Dx=gr("Date"),Fx=gr("File"),Px=gr("Blob"),Wx=gr("FileList"),Bx=c=>nl(c)&&Si(c.pipe),Hx=c=>{let u;return c&&(typeof FormData=="function"&&c instanceof FormData||Si(c.append)&&((u=el(c))==="formdata"||u==="object"&&Si(c.toString)&&c.toString()==="[object FormData]"))},zx=gr("URLSearchParams"),[Ux,Vx,jx,Kx]=["ReadableStream","Request","Response","Headers"].map(gr),Gx=c=>c.trim?c.trim():c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xs(c,u,{allOwnKeys:e=!1}={}){if(c===null||typeof c>"u")return;let l,T;if(typeof c!="object"&&(c=[c]),vs(c))for(l=0,T=c.length;l<T;l++)u.call(null,c[l],l,c);else{const b=e?Object.getOwnPropertyNames(c):Object.keys(c),w=b.length;let C;for(l=0;l<w;l++)C=b[l],u.call(null,c[C],C,c)}}function jp(c,u){u=u.toLowerCase();const e=Object.keys(c);let l=e.length,T;for(;l-- >0;)if(T=e[l],u===T.toLowerCase())return T;return null}const Ho=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kp=c=>!Zs(c)&&c!==Ho;function uu(){const{caseless:c}=Kp(this)&&this||{},u={},e=(l,T)=>{const b=c&&jp(u,T)||T;Ua(u[b])&&Ua(l)?u[b]=uu(u[b],l):Ua(l)?u[b]=uu({},l):vs(l)?u[b]=l.slice():u[b]=l};for(let l=0,T=arguments.length;l<T;l++)arguments[l]&&Xs(arguments[l],e);return u}const qx=(c,u,e,{allOwnKeys:l}={})=>(Xs(u,(T,b)=>{e&&Si(T)?c[b]=Hp(T,e):c[b]=T},{allOwnKeys:l}),c),Yx=c=>(c.charCodeAt(0)===65279&&(c=c.slice(1)),c),Qx=(c,u,e,l)=>{c.prototype=Object.create(u.prototype,l),c.prototype.constructor=c,Object.defineProperty(c,"super",{value:u.prototype}),e&&Object.assign(c.prototype,e)},Zx=(c,u,e,l)=>{let T,b,w;const C={};if(u=u||{},c==null)return u;do{for(T=Object.getOwnPropertyNames(c),b=T.length;b-- >0;)w=T[b],(!l||l(w,c,u))&&!C[w]&&(u[w]=c[w],C[w]=!0);c=e!==!1&&Lu(c)}while(c&&(!e||e(c,u))&&c!==Object.prototype);return u},Jx=(c,u,e)=>{c=String(c),(e===void 0||e>c.length)&&(e=c.length),e-=u.length;const l=c.indexOf(u,e);return l!==-1&&l===e},Xx=c=>{if(!c)return null;if(vs(c))return c;let u=c.length;if(!Vp(u))return null;const e=new Array(u);for(;u-- >0;)e[u]=c[u];return e},e1=(c=>u=>c&&u instanceof c)(typeof Uint8Array<"u"&&Lu(Uint8Array)),t1=(c,u)=>{const e=(c&&c[Xa]).call(c);let l;for(;(l=e.next())&&!l.done;){const T=l.value;u.call(c,T[0],T[1])}},n1=(c,u)=>{let e;const l=[];for(;(e=c.exec(u))!==null;)l.push(e);return l},i1=gr("HTMLFormElement"),r1=c=>c.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,e,l){return e.toUpperCase()+l}),Zd=(({hasOwnProperty:c})=>(u,e)=>c.call(u,e))(Object.prototype),o1=gr("RegExp"),Gp=(c,u)=>{const e=Object.getOwnPropertyDescriptors(c),l={};Xs(e,(T,b)=>{let w;(w=u(T,b,c))!==!1&&(l[b]=w||T)}),Object.defineProperties(c,l)},s1=c=>{Gp(c,(u,e)=>{if(Si(c)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const l=c[e];if(Si(l)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},a1=(c,u)=>{const e={},l=T=>{T.forEach(b=>{e[b]=!0})};return vs(c)?l(c):l(String(c).split(u)),e},l1=()=>{},c1=(c,u)=>c!=null&&Number.isFinite(c=+c)?c:u;function u1(c){return!!(c&&Si(c.append)&&c[zp]==="FormData"&&c[Xa])}const h1=c=>{const u=new Array(10),e=(l,T)=>{if(nl(l)){if(u.indexOf(l)>=0)return;if(!("toJSON"in l)){u[T]=l;const b=vs(l)?[]:{};return Xs(l,(w,C)=>{const p=e(w,T+1);!Zs(p)&&(b[C]=p)}),u[T]=void 0,b}}return l};return e(c,0)},d1=gr("AsyncFunction"),f1=c=>c&&(nl(c)||Si(c))&&Si(c.then)&&Si(c.catch),qp=((c,u)=>c?setImmediate:u?((e,l)=>(Ho.addEventListener("message",({source:T,data:b})=>{T===Ho&&b===e&&l.length&&l.shift()()},!1),T=>{l.push(T),Ho.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Si(Ho.postMessage)),p1=typeof queueMicrotask<"u"?queueMicrotask.bind(Ho):typeof process<"u"&&process.nextTick||qp,g1=c=>c!=null&&Si(c[Xa]),_e={isArray:vs,isArrayBuffer:Up,isBuffer:Rx,isFormData:Hx,isArrayBufferView:Ix,isString:Ox,isNumber:Vp,isBoolean:Nx,isObject:nl,isPlainObject:Ua,isReadableStream:Ux,isRequest:Vx,isResponse:jx,isHeaders:Kx,isUndefined:Zs,isDate:Dx,isFile:Fx,isBlob:Px,isRegExp:o1,isFunction:Si,isStream:Bx,isURLSearchParams:zx,isTypedArray:e1,isFileList:Wx,forEach:Xs,merge:uu,extend:qx,trim:Gx,stripBOM:Yx,inherits:Qx,toFlatObject:Zx,kindOf:el,kindOfTest:gr,endsWith:Jx,toArray:Xx,forEachEntry:t1,matchAll:n1,isHTMLForm:i1,hasOwnProperty:Zd,hasOwnProp:Zd,reduceDescriptors:Gp,freezeMethods:s1,toObjectSet:a1,toCamelCase:r1,noop:l1,toFiniteNumber:c1,findKey:jp,global:Ho,isContextDefined:Kp,isSpecCompliantForm:u1,toJSONObject:h1,isAsyncFn:d1,isThenable:f1,setImmediate:qp,asap:p1,isIterable:g1};function St(c,u,e,l,T){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=c,this.name="AxiosError",u&&(this.code=u),e&&(this.config=e),l&&(this.request=l),T&&(this.response=T,this.status=T.status?T.status:null)}_e.inherits(St,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.status}}});const Yp=St.prototype,Qp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(c=>{Qp[c]={value:c}});Object.defineProperties(St,Qp);Object.defineProperty(Yp,"isAxiosError",{value:!0});St.from=(c,u,e,l,T,b)=>{const w=Object.create(Yp);return _e.toFlatObject(c,w,function(C){return C!==Error.prototype},C=>C!=="isAxiosError"),St.call(w,c.message,u,e,l,T),w.cause=c,w.name=c.name,b&&Object.assign(w,b),w};const m1=null;function hu(c){return _e.isPlainObject(c)||_e.isArray(c)}function Zp(c){return _e.endsWith(c,"[]")?c.slice(0,-2):c}function Jd(c,u,e){return c?c.concat(u).map(function(l,T){return l=Zp(l),!e&&T?"["+l+"]":l}).join(e?".":""):u}function v1(c){return _e.isArray(c)&&!c.some(hu)}const y1=_e.toFlatObject(_e,{},null,function(c){return/^is[A-Z]/.test(c)});function il(c,u,e){if(!_e.isObject(c))throw new TypeError("target must be an object");u=u||new FormData,e=_e.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(r,n){return!_e.isUndefined(n[r])});const l=e.metaTokens,T=e.visitor||g,b=e.dots,w=e.indexes,C=(e.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(u);if(!_e.isFunction(T))throw new TypeError("visitor must be a function");function p(r){if(r===null)return"";if(_e.isDate(r))return r.toISOString();if(!C&&_e.isBlob(r))throw new St("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(r)||_e.isTypedArray(r)?C&&typeof Blob=="function"?new Blob([r]):Buffer.from(r):r}function g(r,n,a){let h=r;if(r&&!a&&typeof r=="object"){if(_e.endsWith(n,"{}"))n=l?n:n.slice(0,-2),r=JSON.stringify(r);else if(_e.isArray(r)&&v1(r)||(_e.isFileList(r)||_e.endsWith(n,"[]"))&&(h=_e.toArray(r)))return n=Zp(n),h.forEach(function(m,y){!(_e.isUndefined(m)||m===null)&&u.append(w===!0?Jd([n],y,b):w===null?n:n+"[]",p(m))}),!1}return hu(r)?!0:(u.append(Jd(a,n,b),p(r)),!1)}const i=[],s=Object.assign(y1,{defaultVisitor:g,convertValue:p,isVisitable:hu});function o(r,n){if(!_e.isUndefined(r)){if(i.indexOf(r)!==-1)throw Error("Circular reference detected in "+n.join("."));i.push(r),_e.forEach(r,function(a,h){(!(_e.isUndefined(a)||a===null)&&T.call(u,a,_e.isString(h)?h.trim():h,n,s))===!0&&o(a,n?n.concat(h):[h])}),i.pop()}}if(!_e.isObject(c))throw new TypeError("data must be an object");return o(c),u}function Xd(c){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(c).replace(/[!'()~]|%20|%00/g,function(e){return u[e]})}function Eu(c,u){this._pairs=[],c&&il(c,this,u)}const Jp=Eu.prototype;Jp.append=function(c,u){this._pairs.push([c,u])};Jp.toString=function(c){const u=c?function(e){return c.call(this,e,Xd)}:Xd;return this._pairs.map(function(e){return u(e[0])+"="+u(e[1])},"").join("&")};function w1(c){return encodeURIComponent(c).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xp(c,u,e){if(!u)return c;const l=e&&e.encode||w1;_e.isFunction(e)&&(e={serialize:e});const T=e&&e.serialize;let b;if(T?b=T(u,e):b=_e.isURLSearchParams(u)?u.toString():new Eu(u,e).toString(l),b){const w=c.indexOf("#");w!==-1&&(c=c.slice(0,w)),c+=(c.indexOf("?")===-1?"?":"&")+b}return c}class ef{constructor(){this.handlers=[]}use(u,e,l){return this.handlers.push({fulfilled:u,rejected:e,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){_e.forEach(this.handlers,function(e){e!==null&&u(e)})}}const eg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b1=typeof URLSearchParams<"u"?URLSearchParams:Eu,x1=typeof FormData<"u"?FormData:null,k1=typeof Blob<"u"?Blob:null,C1={isBrowser:!0,classes:{URLSearchParams:b1,FormData:x1,Blob:k1},protocols:["http","https","file","blob","url","data"]},Ru=typeof window<"u"&&typeof document<"u",du=typeof navigator=="object"&&navigator||void 0,S1=Ru&&(!du||["ReactNative","NativeScript","NS"].indexOf(du.product)<0),_1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",A1=Ru&&window.location.href||"http://localhost",$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ru,hasStandardBrowserEnv:S1,hasStandardBrowserWebWorkerEnv:_1,navigator:du,origin:A1},Symbol.toStringTag,{value:"Module"})),ai={...$1,...C1};function M1(c,u){return il(c,new ai.classes.URLSearchParams,Object.assign({visitor:function(e,l,T,b){return ai.isNode&&_e.isBuffer(e)?(this.append(l,e.toString("base64")),!1):b.defaultVisitor.apply(this,arguments)}},u))}function T1(c){return _e.matchAll(/\w+|\[(\w*)]/g,c).map(u=>u[0]==="[]"?"":u[1]||u[0])}function L1(c){const u={},e=Object.keys(c);let l;const T=e.length;let b;for(l=0;l<T;l++)b=e[l],u[b]=c[b];return u}function tg(c){function u(e,l,T,b){let w=e[b++];if(w==="__proto__")return!0;const C=Number.isFinite(+w),p=b>=e.length;return w=!w&&_e.isArray(T)?T.length:w,p?(_e.hasOwnProp(T,w)?T[w]=[T[w],l]:T[w]=l,!C):((!T[w]||!_e.isObject(T[w]))&&(T[w]=[]),u(e,l,T[w],b)&&_e.isArray(T[w])&&(T[w]=L1(T[w])),!C)}if(_e.isFormData(c)&&_e.isFunction(c.entries)){const e={};return _e.forEachEntry(c,(l,T)=>{u(T1(l),T,e,0)}),e}return null}function E1(c,u,e){if(_e.isString(c))try{return(u||JSON.parse)(c),_e.trim(c)}catch(l){if(l.name!=="SyntaxError")throw l}return(e||JSON.stringify)(c)}const ea={transitional:eg,adapter:["xhr","http","fetch"],transformRequest:[function(c,u){const e=u.getContentType()||"",l=e.indexOf("application/json")>-1,T=_e.isObject(c);if(T&&_e.isHTMLForm(c)&&(c=new FormData(c)),_e.isFormData(c))return l?JSON.stringify(tg(c)):c;if(_e.isArrayBuffer(c)||_e.isBuffer(c)||_e.isStream(c)||_e.isFile(c)||_e.isBlob(c)||_e.isReadableStream(c))return c;if(_e.isArrayBufferView(c))return c.buffer;if(_e.isURLSearchParams(c))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),c.toString();let b;if(T){if(e.indexOf("application/x-www-form-urlencoded")>-1)return M1(c,this.formSerializer).toString();if((b=_e.isFileList(c))||e.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return il(b?{"files[]":c}:c,w&&new w,this.formSerializer)}}return T||l?(u.setContentType("application/json",!1),E1(c)):c}],transformResponse:[function(c){const u=this.transitional||ea.transitional,e=u&&u.forcedJSONParsing,l=this.responseType==="json";if(_e.isResponse(c)||_e.isReadableStream(c))return c;if(c&&_e.isString(c)&&(e&&!this.responseType||l)){const T=!(u&&u.silentJSONParsing)&&l;try{return JSON.parse(c)}catch(b){if(T)throw b.name==="SyntaxError"?St.from(b,St.ERR_BAD_RESPONSE,this,null,this.response):b}}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ai.classes.FormData,Blob:ai.classes.Blob},validateStatus:function(c){return c>=200&&c<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],c=>{ea.headers[c]={}});const R1=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),I1=c=>{const u={};let e,l,T;return c&&c.split(`
|
|
1392
|
-
`).forEach(function(b){T=b.indexOf(":"),e=b.substring(0,T).trim().toLowerCase(),l=b.substring(T+1).trim(),!(!e||u[e]&&R1[e])&&(e==="set-cookie"?u[e]?u[e].push(l):u[e]=[l]:u[e]=u[e]?u[e]+", "+l:l)}),u},tf=Symbol("internals");function Hs(c){return c&&String(c).trim().toLowerCase()}function Va(c){return c===!1||c==null?c:_e.isArray(c)?c.map(Va):String(c)}function O1(c){const u=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=e.exec(c);)u[l[1]]=l[2];return u}const N1=c=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(c.trim());function wc(c,u,e,l,T){if(_e.isFunction(l))return l.call(this,u,e);if(T&&(u=e),!!_e.isString(u)){if(_e.isString(l))return u.indexOf(l)!==-1;if(_e.isRegExp(l))return l.test(u)}}function D1(c){return c.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,e,l)=>e.toUpperCase()+l)}function F1(c,u){const e=_e.toCamelCase(" "+u);["get","set","has"].forEach(l=>{Object.defineProperty(c,l+e,{value:function(T,b,w){return this[l].call(this,u,T,b,w)},configurable:!0})})}let _i=class{constructor(c){c&&this.set(c)}set(c,u,e){const l=this;function T(w,C,p){const g=Hs(C);if(!g)throw new Error("header name must be a non-empty string");const i=_e.findKey(l,g);(!i||l[i]===void 0||p===!0||p===void 0&&l[i]!==!1)&&(l[i||C]=Va(w))}const b=(w,C)=>_e.forEach(w,(p,g)=>T(p,g,C));if(_e.isPlainObject(c)||c instanceof this.constructor)b(c,u);else if(_e.isString(c)&&(c=c.trim())&&!N1(c))b(I1(c),u);else if(_e.isObject(c)&&_e.isIterable(c)){let w={},C,p;for(const g of c){if(!_e.isArray(g))throw TypeError("Object iterator must return a key-value pair");w[p=g[0]]=(C=w[p])?_e.isArray(C)?[...C,g[1]]:[C,g[1]]:g[1]}b(w,u)}else c!=null&&T(u,c,e);return this}get(c,u){if(c=Hs(c),c){const e=_e.findKey(this,c);if(e){const l=this[e];if(!u)return l;if(u===!0)return O1(l);if(_e.isFunction(u))return u.call(this,l,e);if(_e.isRegExp(u))return u.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(c,u){if(c=Hs(c),c){const e=_e.findKey(this,c);return!!(e&&this[e]!==void 0&&(!u||wc(this,this[e],e,u)))}return!1}delete(c,u){const e=this;let l=!1;function T(b){if(b=Hs(b),b){const w=_e.findKey(e,b);w&&(!u||wc(e,e[w],w,u))&&(delete e[w],l=!0)}}return _e.isArray(c)?c.forEach(T):T(c),l}clear(c){const u=Object.keys(this);let e=u.length,l=!1;for(;e--;){const T=u[e];(!c||wc(this,this[T],T,c,!0))&&(delete this[T],l=!0)}return l}normalize(c){const u=this,e={};return _e.forEach(this,(l,T)=>{const b=_e.findKey(e,T);if(b){u[b]=Va(l),delete u[T];return}const w=c?D1(T):String(T).trim();w!==T&&delete u[T],u[w]=Va(l),e[w]=!0}),this}concat(...c){return this.constructor.concat(this,...c)}toJSON(c){const u=Object.create(null);return _e.forEach(this,(e,l)=>{e!=null&&e!==!1&&(u[l]=c&&_e.isArray(e)?e.join(", "):e)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([c,u])=>c+": "+u).join(`
|
|
1393
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(c){return c instanceof this?c:new this(c)}static concat(c,...u){const e=new this(c);return u.forEach(l=>e.set(l)),e}static accessor(c){const u=(this[tf]=this[tf]={accessors:{}}).accessors,e=this.prototype;function l(T){const b=Hs(T);u[b]||(F1(e,T),u[b]=!0)}return _e.isArray(c)?c.forEach(l):l(c),this}};_i.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_e.reduceDescriptors(_i.prototype,({value:c},u)=>{let e=u[0].toUpperCase()+u.slice(1);return{get:()=>c,set(l){this[e]=l}}});_e.freezeMethods(_i);function bc(c,u){const e=this||ea,l=u||e,T=_i.from(l.headers);let b=l.data;return _e.forEach(c,function(w){b=w.call(e,b,T.normalize(),u?u.status:void 0)}),T.normalize(),b}function ng(c){return!!(c&&c.__CANCEL__)}function ys(c,u,e){St.call(this,c??"canceled",St.ERR_CANCELED,u,e),this.name="CanceledError"}_e.inherits(ys,St,{__CANCEL__:!0});function ig(c,u,e){const l=e.config.validateStatus;!e.status||!l||l(e.status)?c(e):u(new St("Request failed with status code "+e.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function P1(c){const u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c);return u&&u[1]||""}function W1(c,u){c=c||10;const e=new Array(c),l=new Array(c);let T=0,b=0,w;return u=u!==void 0?u:1e3,function(C){const p=Date.now(),g=l[b];w||(w=p),e[T]=C,l[T]=p;let i=b,s=0;for(;i!==T;)s+=e[i++],i=i%c;if(T=(T+1)%c,T===b&&(b=(b+1)%c),p-w<u)return;const o=g&&p-g;return o?Math.round(s*1e3/o):void 0}}function B1(c,u){let e=0,l=1e3/u,T,b;const w=(C,p=Date.now())=>{e=p,T=null,b&&(clearTimeout(b),b=null),c.apply(null,C)};return[(...C)=>{const p=Date.now(),g=p-e;g>=l?w(C,p):(T=C,b||(b=setTimeout(()=>{b=null,w(T)},l-g)))},()=>T&&w(T)]}const Ga=(c,u,e=3)=>{let l=0;const T=W1(50,250);return B1(b=>{const w=b.loaded,C=b.lengthComputable?b.total:void 0,p=w-l,g=T(p),i=w<=C;l=w;const s={loaded:w,total:C,progress:C?w/C:void 0,bytes:p,rate:g||void 0,estimated:g&&C&&i?(C-w)/g:void 0,event:b,lengthComputable:C!=null,[u?"download":"upload"]:!0};c(s)},e)},nf=(c,u)=>{const e=c!=null;return[l=>u[0]({lengthComputable:e,total:c,loaded:l}),u[1]]},rf=c=>(...u)=>_e.asap(()=>c(...u)),H1=ai.hasStandardBrowserEnv?((c,u)=>e=>(e=new URL(e,ai.origin),c.protocol===e.protocol&&c.host===e.host&&(u||c.port===e.port)))(new URL(ai.origin),ai.navigator&&/(msie|trident)/i.test(ai.navigator.userAgent)):()=>!0,z1=ai.hasStandardBrowserEnv?{write(c,u,e,l,T,b){const w=[c+"="+encodeURIComponent(u)];_e.isNumber(e)&&w.push("expires="+new Date(e).toGMTString()),_e.isString(l)&&w.push("path="+l),_e.isString(T)&&w.push("domain="+T),b===!0&&w.push("secure"),document.cookie=w.join("; ")},read(c){const u=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove(c){this.write(c,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function U1(c){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(c)}function V1(c,u){return u?c.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):c}function rg(c,u,e){let l=!U1(u);return c&&(l||e==!1)?V1(c,u):u}const of=c=>c instanceof _i?{...c}:c;function Vo(c,u){u=u||{};const e={};function l(g,i,s,o){return _e.isPlainObject(g)&&_e.isPlainObject(i)?_e.merge.call({caseless:o},g,i):_e.isPlainObject(i)?_e.merge({},i):_e.isArray(i)?i.slice():i}function T(g,i,s,o){if(_e.isUndefined(i)){if(!_e.isUndefined(g))return l(void 0,g,s,o)}else return l(g,i,s,o)}function b(g,i){if(!_e.isUndefined(i))return l(void 0,i)}function w(g,i){if(_e.isUndefined(i)){if(!_e.isUndefined(g))return l(void 0,g)}else return l(void 0,i)}function C(g,i,s){if(s in u)return l(g,i);if(s in c)return l(void 0,g)}const p={url:b,method:b,data:b,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:C,headers:(g,i,s)=>T(of(g),of(i),s,!0)};return _e.forEach(Object.keys(Object.assign({},c,u)),function(g){const i=p[g]||T,s=i(c[g],u[g],g);_e.isUndefined(s)&&i!==C||(e[g]=s)}),e}const og=c=>{const u=Vo({},c);let{data:e,withXSRFToken:l,xsrfHeaderName:T,xsrfCookieName:b,headers:w,auth:C}=u;u.headers=w=_i.from(w),u.url=Xp(rg(u.baseURL,u.url,u.allowAbsoluteUrls),c.params,c.paramsSerializer),C&&w.set("Authorization","Basic "+btoa((C.username||"")+":"+(C.password?unescape(encodeURIComponent(C.password)):"")));let p;if(_e.isFormData(e)){if(ai.hasStandardBrowserEnv||ai.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((p=w.getContentType())!==!1){const[g,...i]=p?p.split(";").map(s=>s.trim()).filter(Boolean):[];w.setContentType([g||"multipart/form-data",...i].join("; "))}}if(ai.hasStandardBrowserEnv&&(l&&_e.isFunction(l)&&(l=l(u)),l||l!==!1&&H1(u.url))){const g=T&&b&&z1.read(b);g&&w.set(T,g)}return u},j1=typeof XMLHttpRequest<"u",K1=j1&&function(c){return new Promise(function(u,e){const l=og(c);let T=l.data;const b=_i.from(l.headers).normalize();let{responseType:w,onUploadProgress:C,onDownloadProgress:p}=l,g,i,s,o,r;function n(){o&&o(),r&&r(),l.cancelToken&&l.cancelToken.unsubscribe(g),l.signal&&l.signal.removeEventListener("abort",g)}let a=new XMLHttpRequest;a.open(l.method.toUpperCase(),l.url,!0),a.timeout=l.timeout;function h(){if(!a)return;const y=_i.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),E={data:!w||w==="text"||w==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:y,config:c,request:a};ig(function(M){u(M),n()},function(M){e(M),n()},E),a=null}"onloadend"in a?a.onloadend=h:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(h)},a.onabort=function(){a&&(e(new St("Request aborted",St.ECONNABORTED,c,a)),a=null)},a.onerror=function(){e(new St("Network Error",St.ERR_NETWORK,c,a)),a=null},a.ontimeout=function(){let y=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const E=l.transitional||eg;l.timeoutErrorMessage&&(y=l.timeoutErrorMessage),e(new St(y,E.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,c,a)),a=null},T===void 0&&b.setContentType(null),"setRequestHeader"in a&&_e.forEach(b.toJSON(),function(y,E){a.setRequestHeader(E,y)}),_e.isUndefined(l.withCredentials)||(a.withCredentials=!!l.withCredentials),w&&w!=="json"&&(a.responseType=l.responseType),p&&([s,r]=Ga(p,!0),a.addEventListener("progress",s)),C&&a.upload&&([i,o]=Ga(C),a.upload.addEventListener("progress",i),a.upload.addEventListener("loadend",o)),(l.cancelToken||l.signal)&&(g=y=>{a&&(e(!y||y.type?new ys(null,c,a):y),a.abort(),a=null)},l.cancelToken&&l.cancelToken.subscribe(g),l.signal&&(l.signal.aborted?g():l.signal.addEventListener("abort",g)));const m=P1(l.url);if(m&&ai.protocols.indexOf(m)===-1){e(new St("Unsupported protocol "+m+":",St.ERR_BAD_REQUEST,c));return}a.send(T||null)})},G1=(c,u)=>{const{length:e}=c=c?c.filter(Boolean):[];if(u||e){let l=new AbortController,T;const b=function(g){if(!T){T=!0,C();const i=g instanceof Error?g:this.reason;l.abort(i instanceof St?i:new ys(i instanceof Error?i.message:i))}};let w=u&&setTimeout(()=>{w=null,b(new St(`timeout ${u} of ms exceeded`,St.ETIMEDOUT))},u);const C=()=>{c&&(w&&clearTimeout(w),w=null,c.forEach(g=>{g.unsubscribe?g.unsubscribe(b):g.removeEventListener("abort",b)}),c=null)};c.forEach(g=>g.addEventListener("abort",b));const{signal:p}=l;return p.unsubscribe=()=>_e.asap(C),p}},q1=function*(c,u){let e=c.byteLength;if(e<u){yield c;return}let l=0,T;for(;l<e;)T=l+u,yield c.slice(l,T),l=T},Y1=async function*(c,u){for await(const e of Q1(c))yield*q1(e,u)},Q1=async function*(c){if(c[Symbol.asyncIterator]){yield*c;return}const u=c.getReader();try{for(;;){const{done:e,value:l}=await u.read();if(e)break;yield l}}finally{await u.cancel()}},sf=(c,u,e,l)=>{const T=Y1(c,u);let b=0,w,C=p=>{w||(w=!0,l&&l(p))};return new ReadableStream({async pull(p){try{const{done:g,value:i}=await T.next();if(g){C(),p.close();return}let s=i.byteLength;if(e){let o=b+=s;e(o)}p.enqueue(new Uint8Array(i))}catch(g){throw C(g),g}},cancel(p){return C(p),T.return()}},{highWaterMark:2})},rl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sg=rl&&typeof ReadableStream=="function",Z1=rl&&(typeof TextEncoder=="function"?(c=>u=>c.encode(u))(new TextEncoder):async c=>new Uint8Array(await new Response(c).arrayBuffer())),ag=(c,...u)=>{try{return!!c(...u)}catch{return!1}},J1=sg&&ag(()=>{let c=!1;const u=new Request(ai.origin,{body:new ReadableStream,method:"POST",get duplex(){return c=!0,"half"}}).headers.has("Content-Type");return c&&!u}),af=64*1024,fu=sg&&ag(()=>_e.isReadableStream(new Response("").body)),qa={stream:fu&&(c=>c.body)};rl&&(c=>{["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!qa[u]&&(qa[u]=_e.isFunction(c[u])?e=>e[u]():(e,l)=>{throw new St(`Response type '${u}' is not supported`,St.ERR_NOT_SUPPORT,l)})})})(new Response);const X1=async c=>{if(c==null)return 0;if(_e.isBlob(c))return c.size;if(_e.isSpecCompliantForm(c))return(await new Request(ai.origin,{method:"POST",body:c}).arrayBuffer()).byteLength;if(_e.isArrayBufferView(c)||_e.isArrayBuffer(c))return c.byteLength;if(_e.isURLSearchParams(c)&&(c=c+""),_e.isString(c))return(await Z1(c)).byteLength},ek=async(c,u)=>_e.toFiniteNumber(c.getContentLength())??X1(u),tk=rl&&(async c=>{let{url:u,method:e,data:l,signal:T,cancelToken:b,timeout:w,onDownloadProgress:C,onUploadProgress:p,responseType:g,headers:i,withCredentials:s="same-origin",fetchOptions:o}=og(c);g=g?(g+"").toLowerCase():"text";let r=G1([T,b&&b.toAbortSignal()],w),n;const a=r&&r.unsubscribe&&(()=>{r.unsubscribe()});let h;try{if(p&&J1&&e!=="get"&&e!=="head"&&(h=await ek(i,l))!==0){let _=new Request(u,{method:"POST",body:l,duplex:"half"}),v;if(_e.isFormData(l)&&(v=_.headers.get("content-type"))&&i.setContentType(v),_.body){const[R,I]=nf(h,Ga(rf(p)));l=sf(_.body,af,R,I)}}_e.isString(s)||(s=s?"include":"omit");const m="credentials"in Request.prototype;n=new Request(u,{...o,signal:r,method:e.toUpperCase(),headers:i.normalize().toJSON(),body:l,duplex:"half",credentials:m?s:void 0});let y=await fetch(n);const E=fu&&(g==="stream"||g==="response");if(fu&&(C||E&&a)){const _={};["status","statusText","headers"].forEach(F=>{_[F]=y[F]});const v=_e.toFiniteNumber(y.headers.get("content-length")),[R,I]=C&&nf(v,Ga(rf(C),!0))||[];y=new Response(sf(y.body,af,R,()=>{I&&I(),a&&a()}),_)}g=g||"text";let M=await qa[_e.findKey(qa,g)||"text"](y,c);return!E&&a&&a(),await new Promise((_,v)=>{ig(_,v,{data:M,headers:_i.from(y.headers),status:y.status,statusText:y.statusText,config:c,request:n})})}catch(m){throw a&&a(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new St("Network Error",St.ERR_NETWORK,c,n),{cause:m.cause||m}):St.from(m,m&&m.code,c,n)}}),pu={http:m1,xhr:K1,fetch:tk};_e.forEach(pu,(c,u)=>{if(c){try{Object.defineProperty(c,"name",{value:u})}catch{}Object.defineProperty(c,"adapterName",{value:u})}});const lf=c=>`- ${c}`,nk=c=>_e.isFunction(c)||c===null||c===!1,lg={getAdapter:c=>{c=_e.isArray(c)?c:[c];const{length:u}=c;let e,l;const T={};for(let b=0;b<u;b++){e=c[b];let w;if(l=e,!nk(e)&&(l=pu[(w=String(e)).toLowerCase()],l===void 0))throw new St(`Unknown adapter '${w}'`);if(l)break;T[w||"#"+b]=l}if(!l){const b=Object.entries(T).map(([C,p])=>`adapter ${C} `+(p===!1?"is not supported by the environment":"is not available in the build"));let w=u?b.length>1?`since :
|
|
1394
|
-
`+b.map(lf).join(`
|
|
1395
|
-
`):" "+lf(b[0]):"as no adapter specified";throw new St("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return l},adapters:pu};function xc(c){if(c.cancelToken&&c.cancelToken.throwIfRequested(),c.signal&&c.signal.aborted)throw new ys(null,c)}function cf(c){return xc(c),c.headers=_i.from(c.headers),c.data=bc.call(c,c.transformRequest),["post","put","patch"].indexOf(c.method)!==-1&&c.headers.setContentType("application/x-www-form-urlencoded",!1),lg.getAdapter(c.adapter||ea.adapter)(c).then(function(u){return xc(c),u.data=bc.call(c,c.transformResponse,u),u.headers=_i.from(u.headers),u},function(u){return ng(u)||(xc(c),u&&u.response&&(u.response.data=bc.call(c,c.transformResponse,u.response),u.response.headers=_i.from(u.response.headers))),Promise.reject(u)})}const cg="1.9.0",ol={};["object","boolean","number","function","string","symbol"].forEach((c,u)=>{ol[c]=function(e){return typeof e===c||"a"+(u<1?"n ":" ")+c}});const uf={};ol.transitional=function(c,u,e){function l(T,b){return"[Axios v"+cg+"] Transitional option '"+T+"'"+b+(e?". "+e:"")}return(T,b,w)=>{if(c===!1)throw new St(l(b," has been removed"+(u?" in "+u:"")),St.ERR_DEPRECATED);return u&&!uf[b]&&(uf[b]=!0,console.warn(l(b," has been deprecated since v"+u+" and will be removed in the near future"))),c?c(T,b,w):!0}};ol.spelling=function(c){return(u,e)=>(console.warn(`${e} is likely a misspelling of ${c}`),!0)};function ik(c,u,e){if(typeof c!="object")throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const l=Object.keys(c);let T=l.length;for(;T-- >0;){const b=l[T],w=u[b];if(w){const C=c[b],p=C===void 0||w(C,b,c);if(p!==!0)throw new St("option "+b+" must be "+p,St.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new St("Unknown option "+b,St.ERR_BAD_OPTION)}}const ja={assertOptions:ik,validators:ol},_r=ja.validators;let zo=class{constructor(c){this.defaults=c||{},this.interceptors={request:new ef,response:new ef}}async request(c,u){try{return await this._request(c,u)}catch(e){if(e instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const T=l.stack?l.stack.replace(/^.+\n/,""):"";try{e.stack?T&&!String(e.stack).endsWith(T.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
|
1396
|
-
`+T):e.stack=T}catch{}}throw e}}_request(c,u){typeof c=="string"?(u=u||{},u.url=c):u=c||{},u=Vo(this.defaults,u);const{transitional:e,paramsSerializer:l,headers:T}=u;e!==void 0&&ja.assertOptions(e,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),l!=null&&(_e.isFunction(l)?u.paramsSerializer={serialize:l}:ja.assertOptions(l,{encode:_r.function,serialize:_r.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),ja.assertOptions(u,{baseUrl:_r.spelling("baseURL"),withXsrfToken:_r.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let b=T&&_e.merge(T.common,T[u.method]);T&&_e.forEach(["delete","get","head","post","put","patch","common"],r=>{delete T[r]}),u.headers=_i.concat(b,T);const w=[];let C=!0;this.interceptors.request.forEach(function(r){typeof r.runWhen=="function"&&r.runWhen(u)===!1||(C=C&&r.synchronous,w.unshift(r.fulfilled,r.rejected))});const p=[];this.interceptors.response.forEach(function(r){p.push(r.fulfilled,r.rejected)});let g,i=0,s;if(!C){const r=[cf.bind(this),void 0];for(r.unshift.apply(r,w),r.push.apply(r,p),s=r.length,g=Promise.resolve(u);i<s;)g=g.then(r[i++],r[i++]);return g}s=w.length;let o=u;for(i=0;i<s;){const r=w[i++],n=w[i++];try{o=r(o)}catch(a){n.call(this,a);break}}try{g=cf.call(this,o)}catch(r){return Promise.reject(r)}for(i=0,s=p.length;i<s;)g=g.then(p[i++],p[i++]);return g}getUri(c){c=Vo(this.defaults,c);const u=rg(c.baseURL,c.url,c.allowAbsoluteUrls);return Xp(u,c.params,c.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(c){zo.prototype[c]=function(u,e){return this.request(Vo(e||{},{method:c,url:u,data:(e||{}).data}))}});_e.forEach(["post","put","patch"],function(c){function u(e){return function(l,T,b){return this.request(Vo(b||{},{method:c,headers:e?{"Content-Type":"multipart/form-data"}:{},url:l,data:T}))}}zo.prototype[c]=u(),zo.prototype[c+"Form"]=u(!0)});let rk=class ug{constructor(u){if(typeof u!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(T){e=T});const l=this;this.promise.then(T=>{if(!l._listeners)return;let b=l._listeners.length;for(;b-- >0;)l._listeners[b](T);l._listeners=null}),this.promise.then=T=>{let b;const w=new Promise(C=>{l.subscribe(C),b=C}).then(T);return w.cancel=function(){l.unsubscribe(b)},w},u(function(T,b,w){l.reason||(l.reason=new ys(T,b,w),e(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}this._listeners?this._listeners.push(u):this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;const e=this._listeners.indexOf(u);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const u=new AbortController,e=l=>{u.abort(l)};return this.subscribe(e),u.signal.unsubscribe=()=>this.unsubscribe(e),u.signal}static source(){let u;return{token:new ug(function(e){u=e}),cancel:u}}};function ok(c){return function(u){return c.apply(null,u)}}function sk(c){return _e.isObject(c)&&c.isAxiosError===!0}const gu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gu).forEach(([c,u])=>{gu[u]=c});function hg(c){const u=new zo(c),e=Hp(zo.prototype.request,u);return _e.extend(e,zo.prototype,u,{allOwnKeys:!0}),_e.extend(e,u,null,{allOwnKeys:!0}),e.create=function(l){return hg(Vo(c,l))},e}const Rn=hg(ea);Rn.Axios=zo;Rn.CanceledError=ys;Rn.CancelToken=rk;Rn.isCancel=ng;Rn.VERSION=cg;Rn.toFormData=il;Rn.AxiosError=St;Rn.Cancel=Rn.CanceledError;Rn.all=function(c){return Promise.all(c)};Rn.spread=ok;Rn.isAxiosError=sk;Rn.mergeConfig=Vo;Rn.AxiosHeaders=_i;Rn.formToJSON=c=>tg(_e.isHTMLForm(c)?new FormData(c):c);Rn.getAdapter=lg.getAdapter;Rn.HttpStatusCode=gu;Rn.default=Rn;const{Axios:pA,AxiosError:gA,CanceledError:mA,isCancel:vA,CancelToken:yA,VERSION:wA,all:bA,Cancel:xA,isAxiosError:kA,spread:CA,toFormData:SA,AxiosHeaders:_A,HttpStatusCode:AA,formToJSON:$A,getAdapter:MA,mergeConfig:TA}=Rn,Iu=Rn.create({baseURL:location.origin,timeout:6e4,params:{}});Iu.interceptors.response.use(c=>c,c=>{var u,e,l,T,b,w,C,p,g,i,s;if(c.response){if(c.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(n){n&&OpenC3Auth.setTokens()}),c.response.config.headers["Ignore-Errors"]&&c.response.config.headers["Ignore-Errors"].includes(c.response.status.toString()))return Promise.reject(c);let o=`HTTP ${c.response.status} - `;(u=c.response)!=null&&u.statusText&&(o+=`${c.response.statusText} `),(l=(e=c.response)==null?void 0:e.config)!=null&&l.data&&(o+=`${c.response.config.data} `),(b=(T=c.response)==null?void 0:T.data)!=null&&b.message?o+=`${c.response.data.message}`:(C=(w=c.response)==null?void 0:w.data)!=null&&C.exception?o+=`${c.response.data.exception}`:(i=(g=(p=c.response)==null?void 0:p.data)==null?void 0:g.error)!=null&&i.message?(c.response.data.error.class&&(o+=`${c.response.data.error.class} `),o+=`${c.response.data.error.message}`):o+=`${(s=c.response)==null?void 0:s.data}`;const{$cosmosNotify:r}=window;throw r&&r.serious({title:"Network error",body:o}),c}else throw c});const Fa=async function(c,u,{data:e,params:l={},headers:T,noAuth:b=!1,noScope:w=!1,onUploadProgress:C=!1}={}){if(!b){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}T.Authorization=localStorage.openc3Token}return T.manual=!0,!w&&!l.scope&&(l.scope=window.openc3Scope),Iu({method:c,url:u,data:e,params:l,headers:T,onUploadProgress:C})},mu={Accept:"application/json"},hf={...mu,"Content-Type":"application/json"},ak={get:function(c,{params:u,headers:e=mu,noScope:l,noAuth:T,onUploadProgress:b}={}){return Fa("get",c,{params:u,headers:e,noScope:l,noAuth:T,onUploadProgress:b})},put:function(c,{data:u,params:e,headers:l=hf,noScope:T,noAuth:b,onUploadProgress:w}={}){return Fa("put",c,{data:u,params:e,headers:l,noScope:T,noAuth:b,onUploadProgress:w})},post:function(c,{data:u,params:e,headers:l=hf,noScope:T,noAuth:b,onUploadProgress:w}={}){return Fa("post",c,{data:u,params:e,headers:l,noScope:T,noAuth:b,onUploadProgress:w})},delete:function(c,{params:u,headers:e=mu,noScope:l,noAuth:T,onUploadProgress:b}={}){return Fa("delete",c,{params:u,headers:e,noScope:l,noAuth:T,onUploadProgress:b})}};let sl=()=>({emit(c,...u){for(let e=this.events[c]||[],l=0,T=e.length;l<T;l++)e[l](...u)},events:{},on(c,u){var e;return((e=this.events)[c]||(e[c]=[])).push(u),()=>{var l;this.events[c]=(l=this.events[c])==null?void 0:l.filter(T=>u!==T)}}});class ta extends Error{constructor(u,e){u instanceof Error?(super(u.message),this.cause=u):super(u),this.reason=e,this.name="ReasonError"}}class Ou extends ta{constructor(u){super("Rejected",u),this.name="SubscriptionRejectedError"}}class lk extends ta{constructor(u){super(u||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class dr extends ta{constructor(u,e){e?super(u,e):super("Disconnected",u),this.name="DisconnectedError"}}class ck extends dr{constructor(u){super(u,"stale_connection"),this.name="StaleConnectionError"}}function dg(c){return c?`{${Object.keys(c).sort().filter(u=>c[u]!==void 0).map(u=>{let e=JSON.stringify(c[u]);return`${JSON.stringify(u)}:${e}`}).join(",")}}`:""}class uk{constructor(u){this.channel=u,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",u=>{if(u.type==="info"){this._state||(this._state=this.stateFromInfo(u));return}this._state&&(u.type==="join"?this._state[u.id]=u.info:u.type==="leave"&&delete this._state[u.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(u=>u()),this.listeners.length=0}async join(u,e){if(!this._info)return this._info={id:u,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let u=await this.channel.perform("$presence:leave");return delete this._info,u}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let u=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(u),this._state}finally{delete this._promise}}stateFromInfo(u){return u.records.reduce((e,{id:l,info:T})=>(e[l]=T,e),{})}}const Do=Symbol("state");class fg{constructor(u={}){this.emitter=sl(),this.params=Object.freeze(u),this.presence=new uk(this),this.initialConnect=!0,this[Do]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=dg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Do]}attached(u){if(this.receiver){if(this.receiver!==u)throw Error("Already connected to a different receiver");return!1}return this.receiver=u,!0}connecting(){this[Do]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Do]="connected";let u=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:u})):this.emit("connect",{reconnect:!0,restored:u})}restored(){if(this.state==="connected")throw Error("Already connected");this[Do]="connected";let u=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:u})}disconnected(u){this.state==="disconnected"||this.state==="closed"||(this[Do]="disconnected",this.presence.reset(),this.emit("disconnect",u))}closed(u){this.state!=="closed"&&(this[Do]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",u))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(u,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,u,e)}async send(u){return this.perform(void 0,u)}async whisper(u){try{await this.perform("$whisper",u)}catch(e){let l=this.receiver?this.receiver.logger:null;l&&l.warn("whisper failed: ",e)}}receive(u,e){this.emit("message",u,e)}on(u,e){return this.emitter.on(u,e)}once(u,e){let l=this.emitter.on(u,(...T)=>{l(),e(...T)});return l}emit(u,...e){return this.emitter.emit(u,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((u,e)=>{let l=[()=>delete this._pendingSubscribe];l.push(this.on("connect",()=>{l.forEach(T=>T()),u()})),l.push(this.on("close",T=>{l.forEach(b=>b()),e(T||new ta("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class hk{constructor(u){this.id=u,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(u){this.channels.includes(u)||this.channels.push(u)}remove(u){let e=this.channels.indexOf(u);e>-1&&this.channels.splice(e,1)}notify(u,...e){this.state=u==="restored"?"connected":u,e.length===1?this.channels.forEach(l=>l[u](e[0])):this.channels.forEach(l=>l[u]())}pending(u){this._checkIntent(u);let e=this._pendings[0];return!e||e.intent!==u?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(u){this._checkIntent(u);let e,l={promise:new Promise(b=>{e=b}),intent:u,release:()=>{this._pendings.splice(this._pendings.indexOf(l),1),e(l)},canceled:!1,acquired:!1},T=this._pendingTop;return this._pendings.push(l),T&&await T.promise,this.gvl&&await this.gvl.acquire(l,u),l.acquired=!0,l}close(u){this.disposed=!0,this.intent=void 0,this.notify("closed",u)}_checkIntent(u){if(!(u==="unsubscribed"||u==="subscribed"))throw Error(`Unknown subscription intent: ${u}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(u){let e=this._pendingTop;return!e||e.acquired||e.intent!==u?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class dk{constructor(){this.queue=[]}async acquire(u,e){e==="subscribed"&&(this.queue.push(u.promise.then(()=>{this.queue.splice(this.queue.indexOf(u),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class fk{constructor(u){u.concurrentSubscribes===!1&&(this.glv=new dk),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(u){return this._subscriptions[u]}create(u,{subscribe:e,unsubscribe:l}){let T=this._subscriptions[u]=new hk(u);return T.remoteId=this._localToRemote[u],T.subscriber=e,T.unsubscriber=l,T.gvl=this.glv,T}remove(u){delete this._subscriptions[u],delete this._localToRemote[u]}storeRemoteId(u,e){this._localToRemote[u]=e;let l=this.get(u);l&&(l.remoteId=e)}}class pk{constructor(u={}){this.subscriptions=new fk(u),this._pendingMessages=[],this._remoteToLocal={}}subscribe(u,e){this._remoteToLocal[e]=u,this.subscriptions.storeRemoteId(u,e),this.flush(e)}unsubscribe(u){let e=this.subscriptions.get(u);if(!e)return;let l=e.remoteId;l&&delete this._remoteToLocal[l],this.subscriptions.remove(u)}transmit(u,e,l){let T=this._remoteToLocal[u];if(!T){this._pendingMessages.push([u,e,l]);return}let b=this.subscriptions.get(T);b&&b.channels.forEach(w=>{w.receive(e,l)})}notify(u,e,l){let T=this._remoteToLocal[u];if(!T)return;let b=this.subscriptions.get(T);b&&b.channels.forEach(w=>w.emit(e,l))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(u=>u.channels)}flush(u){let e=[];for(let l of this._pendingMessages)l[0]===u?this.transmit(l[0],l[1],l[2]):e.push(l);this._pendingMessages=e}}const df={debug:0,info:1,warn:2,error:3};class pg{constructor(u){this.level=u||"warn"}log(u,e,l){df[u]<df[this.level]||this.writeLogEntry(u,e,l)}writeLogEntry(){throw Error("Not implemented")}debug(u,e){this.log("debug",u,e)}info(u,e){this.log("info",u,e)}warn(u,e){this.log("warn",u,e)}error(u,e){this.log("error",u,e)}}class na extends pg{writeLogEntry(){}}class gk{encode(u){return JSON.stringify(u)}decode(u){try{return JSON.parse(u)}catch{}}}let mk=0;class gg{constructor(u={}){let{logger:e}=u;this.logger=e||new na,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=u.subscribeCooldownInterval||250,this.subscribeRetryInterval=u.subscribeRetryInterval||5e3}attached(u){this.cable=u}subscribe(u,e){let l={channel:u};e&&Object.assign(l,e);let T=dg(l);if(this.pendingUnsubscriptions[T]){let w=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${w}`,T),new Promise(C=>{setTimeout(()=>{C(this.subscribe(u,e))},w)})}if(this.pendingSubscriptions[T])return this.logger.warn("subscription is already pending, skipping",T),Promise.reject(Error("Already subscribing"));let b=this.subscribeRetryInterval;return new Promise((w,C)=>{let p=++mk;this.pendingSubscriptions[T]={resolve:w,reject:C,id:p},this.cable.send(this.buildSubscribeRequest(T)),this.maybeRetrySubscribe(p,T,b)})}buildSubscribeRequest(u){return{command:"subscribe",identifier:u}}maybeRetrySubscribe(u,e,l){setTimeout(()=>{let T=this.pendingSubscriptions[e];T&&T.id===u&&(this.logger.warn(`no subscription ack received in ${l}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(u,e,l))},l)}maybeExpireSubscribe(u,e,l){setTimeout(()=>{let T=this.pendingSubscriptions[e];T&&T.id===u&&(delete this.pendingSubscriptions[e],T.reject(new lk(`Haven't received subscription ack in ${l*2}ms for ${e}`)))},l)}unsubscribe(u){return this.cable.send({command:"unsubscribe",identifier:u}),this.pendingUnsubscriptions[u]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[u]},this.subscribeCooldownInterval),Promise.resolve()}perform(u,e,l){return e==="$whisper"?this.whisper(u,l):(l||(l={}),l.action=e,this.cable.send({command:"message",identifier:u,data:JSON.stringify(l)}),Promise.resolve())}whisper(u,e){return this.cable.send({command:"whisper",identifier:u,data:e}),Promise.resolve()}receive(u){if(typeof u!="object"){this.logger.error("unsupported message format",{message:u});return}let{type:e,identifier:l,message:T,reason:b,reconnect:w}=u;if(e==="ping")return this.cable.keepalive(u.message);if(this.cable.keepalive(),e==="welcome"){let C=u.sid;return C&&this.cable.setSessionId(C),this.cable.connected()}if(e==="disconnect"){let C=new dr(b);this.reset(C),w===!1?this.cable.closed(C):this.cable.disconnected(C);return}if(e==="confirm_subscription"){let C=this.pendingSubscriptions[l];if(!C){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:l}),this.unsubscribe(l);return}return delete this.pendingSubscriptions[l],C.resolve(l)}if(e==="reject_subscription"){let C=this.pendingSubscriptions[l];return C?(delete this.pendingSubscriptions[l],C.reject(new Ou)):this.logger.error("subscription not found",{type:e,identifier:l})}if(T)return{identifier:l,message:T};this.logger.warn(`unknown message type: ${e}`,{message:u})}reset(u){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(u);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const ff=()=>Date.now()/1e3|0;class vk extends gg{constructor(u={}){super(u),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=u.historyTimestamp,this.disableSessionRecovery=u.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=ff()),this.sessionId=void 0,this.sendPongs=u.pongs}reset(u){for(let e in this.pendingPresence)this.pendingPresence[e].reject(u);return this.pendingPresence={},super.reset()}receive(u){if(typeof u!="object"){this.logger.error("unsupported message format",{message:u});return}let{type:e,identifier:l,message:T}=u;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(u);if(e==="reject_subscription")return super.receive(u);if(e==="confirm_subscription")return this.subscriptionStreams[l]||(this.subscriptionStreams[l]=new Set),super.receive(u);if(e==="ping")return this.restoreSince&&(this.restoreSince=ff()),this.sendPongs&&this.sendPong(),this.cable.keepalive(u.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",u),this.cable.notify("history_received",l);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",u),this.cable.notify("history_not_found",l);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=u.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),u.restored){let b=u.restored_ids||Object.keys(this.subscriptionStreams);for(let w of b)this.cable.send({identifier:w,command:"history",history:this.historyRequestFor(w)}),this.presenceInfo[w]&&this.cable.send({identifier:w,command:"join",presence:this.presenceInfo[w]});return this.cable.restored(b)}return this.cable.connected(this.sessionId)}if(e==="presence"){let b=T.type;if(b==="info"){let w=this.pendingPresence[l];w&&(delete this.pendingPresence[l],w.resolve(T))}else if(b==="error"){let w=this.pendingPresence[l];w&&(delete this.pendingPresence[l],w.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:l,message:T}}if(T){let b=this.trackStreamPosition(l,u.stream_id,u.epoch,u.offset);return{identifier:l,message:T,meta:b}}this.logger.warn(`unknown message type: ${e}`,{message:u})}perform(u,e,l){switch(e){case"$presence:join":return this.join(u,l);case"$presence:leave":return this.leave(u,l);case"$presence:info":return this.presence(u,l)}return super.perform(u,e,l)}unsubscribe(u){return delete this.presenceInfo[u],super.unsubscribe(u)}buildSubscribeRequest(u){let e=super.buildSubscribeRequest(u),l=this.historyRequestFor(u);l&&(e.history=l,this.pendingHistory[u]=!0);let T=this.presenceInfo[u];return T&&(e.presence=T),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(u){let e={},l=!1;if(this.subscriptionStreams[u])for(let T of this.subscriptionStreams[u]){let b=this.streamsPositions[T];b&&(l=!0,e[T]=b)}if(!(!l&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(u,e,l,T){if(!(!e||!l))return this.subscriptionStreams[u]||(this.subscriptionStreams[u]=new Set),this.subscriptionStreams[u].add(e),this.streamsPositions[e]={epoch:l,offset:T},{stream:e,epoch:l,offset:T}}async sendPong(){await new Promise(u=>setTimeout(u,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(u,e){return this.presenceInfo[u]=e,this.cable.send({command:"join",identifier:u,presence:e}),Promise.resolve()}async leave(u,e){return delete this.presenceInfo[u],this.cable.send({command:"leave",identifier:u,presence:e}),Promise.resolve()}presence(u,e){return this.pendingPresence[u]?(this.logger.warn("presence is already pending, skipping",u),Promise.reject(Error("presence request is already pending"))):new Promise((l,T)=>{this.pendingPresence[u]={resolve:l,reject:T},this.cable.send({command:"presence",identifier:u,data:e})})}}class yk extends ta{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Nu extends fg{constructor(u,e){super(e),this.channelId=u}set channelId(u){this._channelId=u}get channelId(){return this._channelId}}$r(Nu,"identifier","__ghost__");const wk="$pubsub";class vu extends fg{async perform(u,e){if(u.startsWith("$"))return super.perform(u,e);throw Error("not implemented")}}$r(vu,"identifier",wk);const Fo=Symbol("state");let bk=class{constructor({transport:c,protocol:u,encoder:e,logger:l,lazy:T,hubOptions:b,performFailures:w,transportConfigurator:C}){this.emitter=sl(),this.transport=c,this.encoder=e,this.logger=l||new na,this.protocol=u,this.performFailures=w||"throw",this.protocol.attached(this),this.hub=new pk(b||{}),this[Fo]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=C,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,T===!1&&this.connect().catch(()=>{})}get state(){return this[Fo]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let c=this.state==="idle";this[Fo]="connecting";let u=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:c}),await this.transport.open()}catch(e){this.handleClose(e)}return u}setSessionId(c){this.sessionId=c,this.transport.setParam("sid",c)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Fo]="connected",this.recovering&&this.hub.subscriptions.all().forEach(u=>u.notify("disconnected",new dr("recovery_failed"))),this.hub.subscriptions.all().forEach(u=>this._resubscribe(u));let c=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:c})):this.emit("connect",{reconnect:!0,restored:c})}restored(c){this.logger.info("connection recovered",{remoteIds:c}),this[Fo]="connected",this.hub.subscriptions.all().forEach(l=>{c&&l.remoteId&&c.includes(l.remoteId)?l.notify("restored"):(l.notify("disconnected",new dr("recovery_failed")),this._resubscribe(l))});let u=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:u,restored:e})}notify(c,u,e){u&&typeof u!="string"&&(e=u,u=void 0),u?this.hub.notify(u,"info",{type:c,data:e}):this.emit("info",{type:c,data:e})}handleClose(c){this.logger.debug("transport closed",{error:c}),this.disconnected(new dr(c,"transport_closed"))}disconnected(c){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:c}),this[Fo]="disconnected",this.recovering=this.protocol.recoverableClosure(c),this.recovering?this.hub.subscriptions.all().forEach(u=>u.notify("connecting")):this.hub.subscriptions.all().forEach(u=>{u.notify("disconnected",c)}),this.protocol.reset(c),this.hub.close(),this.transport.close(),this.emit("disconnect",c))}closed(c){if(this.state==="closed"||this.state==="idle")return;let u;c&&(u=c instanceof dr?c:new dr(c,void 0)),this.logger.info("closed",{reason:c||"user"}),this[Fo]="closed";let e=u||new dr("cable_closed");this.hub.subscriptions.all().forEach(l=>l.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",u)}disconnect(){this.closed()}handleIncoming(c){if(this.state==="closed"||this.state==="idle")return;let u=this.encoder.decode(c);if(u===void 0){this.logger.error("failed to decode message",{message:c});return}this.logger.debug("incoming data",u);let e=this.protocol.receive(u);if(e){this.logger.debug("processed incoming message",e);let{type:l,identifier:T,message:b,meta:w}=e;l?this.hub.notify(T,l,b):this.hub.transmit(T,b,w)}}send(c){if(this.state==="closed")throw Error("Cable is closed");let u=this.encoder.encode(c);if(u===void 0){this.logger.error("failed to encode message",{message:c});return}this.logger.debug("outgoing message",c),this.transport.send(u)}keepalive(c){this.emit("keepalive",c)}streamFrom(c){let u=new vu({stream_name:c});return this.subscribe(u)}streamFromSigned(c){let u=new vu({signed_stream_name:c});return this.subscribe(u)}subscribeTo(c,u){let e,l;return typeof c=="string"&&(l=c,c=Nu),e=l?new c(l,u):new c(u),this.subscribe(e)}subscribe(c){if(!c.attached(this))return c;let u=c.identifier;c.connecting();let e=this.hub.subscriptions.get(u)||this.hub.subscriptions.create(u,{subscribe:l=>this._subscribe(l,c.channelId,c.params),unsubscribe:l=>this._unsubscribe(l)});return e.add(c),e.intent==="subscribed"&&e.state==="connected"&&c.connected(),e.ensureSubscribed(),c}async _resubscribe(c){c.intent!=="subscribed"||!c.channels[0]||(c.notify("connecting"),c.ensureResubscribed())}async _subscribe(c,u,e){let l=c.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:l});return}this.logger.debug("acquiring subscribe lock",{identifier:l});let T=await c.acquire("subscribed");if(T.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:l}),T.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:l}),c.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),T.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:l}),T.release();return}if(c.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:l}),c.notify("connected"),T.release();return}let b={identifier:u,params:e};this.logger.debug("subscribing",b);try{let w=await this.protocol.subscribe(u,e);this.hub.subscribe(l,w),this.logger.debug("subscribed",{...b,remoteId:w}),c.notify("connected")}catch(w){if(w){if(w instanceof Ou&&this.logger.warn("rejected",b),w instanceof dr){this.logger.debug("disconnected during subscription; will retry on connect",b),T.release();return}this.logger.error("failed to subscribe",{error:w,...b})}c.close(w),this.hub.unsubscribe(l)}T.release()}unsubscribe(c){let u=c.identifier,e=this.hub.subscriptions.get(u);if(!e)throw Error(`Subscription not found: ${u}`);e.remove(c),c.closed(),e.maybeUnsubscribe()}async _unsubscribe(c){let u=c.id;this.logger.debug("acquiring unsubscribe lock",{identifier:u});let e=await c.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:u}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:u}),c.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:u,intent:c.intent}),e.release();return}if(c.state==="disconnected"||c.state==="closed"){this.logger.debug(`already ${c.state} connected, skip unsubscribe command`,{identifier:u}),e.release();return}let l=c.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:l}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:u}),c.close(),this.hub.unsubscribe(u),e.release();return}try{await this.protocol.unsubscribe(l),this.logger.debug("unsubscribed remotely",{id:u})}catch(T){T&&(T instanceof dr?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:u,error:T}):this.logger.error("unsubscribe failed",{id:u,error:T}))}c.intent==="unsubscribed"?(c.close(),this.hub.unsubscribe(u)):c.state="closed",e.release()}async perform(c,u,e){if(this.performFailures==="throw")return this._perform(c,u,e);try{return await this._perform(c,u,e)}catch(l){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:l});return}}async _perform(c,u,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new yk;let l=this.hub.subscriptions.get(c);if(!l)throw Error(`Subscription not found: ${c}`);if(await l.pending("subscribed"),l.intent!=="subscribed")throw Error(`Subscription is closed: ${c}`);let T=l.remoteId,b={id:T,action:u,payload:e};this.logger.debug("perform",b);try{let w=await this.protocol.perform(T,u,e);return w&&this.logger.debug("perform result",{message:w,request:b}),w}catch(w){throw this.logger.error("perform failed",{error:w,request:b}),w}}on(c,u){return this.emitter.on(c,u)}once(c,u){let e=this.emitter.on(c,(...l)=>{e(),u(...l)});return e}emit(c,...u){return this.emitter.emit(c,...u)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((c,u)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(l=>l()),c()})),e.push(this.on("close",l=>{e.forEach(T=>T()),u(l)})),e.push(this.on("disconnect",l=>{e.forEach(T=>T()),u(l)}))}),this._pendingConnect)}};const xk={maxMissingPings:2,maxReconnectAttempts:1/0},cs=()=>Date.now(),mg=(c,u)=>{u=u||{};let{backoffRate:e,jitterRatio:l,maxInterval:T}=u;return e=e||2,l===void 0&&(l=.5),b=>{let w=c*e**b,C=w*e,p=w+(C-w)*Math.random(),g=2*(Math.random()-.5)*l;return p=p*(1+g),T&&T<p&&(p=T),p}};let vg=class{constructor({pingInterval:c,...u}){if(this.pingInterval=c,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${c}`);if(u=Object.assign({},xk,u),this.strategy=u.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=u.maxMissingPings,this.maxReconnectAttempts=u.maxReconnectAttempts,this.logger=u.logger||new na,this.state="pending_connect",this.attempts=0,this.disconnectedAt=cs()}watch(c){this.target=c,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(c=>{this.logger.info("Failed at reconnecting: "+c)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=cs(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=cs(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=cs(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=cs()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(c=>c()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let c=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},c)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let c=cs()-this.pingedAt;c>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${c}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new ck))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let c=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${c}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),c)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class kk{constructor(u,e={}){this.transports=u,this.transport=null,this.emitter=sl(),this.unbind=[],this.logger=e.logger||new na}displayName(){return"fallbacked transport"}async open(){for(let u=0;u<this.transports.length;u++){let e=this.transports[u];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(l){this.logger.debug(`Failed to connect via ${e.displayName()}: ${l.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(u){if(!this.transport)throw new Error("No transport is open");this.transport.send(u)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(u,e){this.transports.forEach(l=>{l.setParam(u,e)})}setToken(u,e){this.transports.forEach(l=>{l.setToken(u,e)})}on(u,e){return this.emitter.on(u,e)}once(u,e){let l=this.emitter.on(u,(...T)=>{l(),e(...T)});return l}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(u=>u()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",u=>{this.emitter.emit("data",u)}),this.transport.on("close",u=>{this.emitter.emit("close",u)}),this.transport.on("error",u=>{this.emitter.emit("error",u)}))}}class Ck{constructor(u,e={}){this.url=u;let l=e.websocketImplementation;if(l)this.Impl=l;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=sl();let{format:T,subprotocol:b,authStrategy:w}=e;this.format=T||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=w||"param",this.authProtocol="",this.subprotocol=b}displayName(){return"WebSocket("+this.url+")"}open(){let u=this.subprotocol;return this.authStrategy==="sub-protocol"&&(u=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,u,this.connectionOptions):this.ws=new this.Impl(this.url,u),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,l)=>{let T=[];T.push(this.once("open",()=>{T.forEach(b=>b()),e()})),T.push(this.once("close",()=>{T.forEach(b=>b()),l(Error("WS connection closed"))}))})}setURL(u){this.url=u}setParam(u,e){let l=new URL(this.url);l.searchParams.set(u,e);let T=`${l.protocol}//${l.host}${l.pathname}?${l.searchParams}`;this.setURL(T)}setToken(u,e="jid"){if(this.authStrategy==="param")this.setParam(e,u);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let l=`x-${e}`.toLowerCase();l=Object.keys(this.connectionOptions.headers).find(T=>T.toLowerCase()===l)||l,this.connectionOptions.headers[l]=u}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${u}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(u){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(u)}close(){this.ws?this.onclose():this.connected=!1}on(u,e){return this.emitter.on(u,e)}once(u,e){let l=this.emitter.on(u,(...T)=>{l(),e(...T)});return l}initListeners(){this.ws.onerror=u=>{this.connected&&this.emitter.emit("error",u.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=u=>{let e=u.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const yg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Sk(c,u){if(typeof c=="object"&&typeof u>"u"&&(u=c,c=void 0),u=u||{},!c&&!u.transport)throw Error("URL or transport must be specified");u=Object.assign({},yg,u);let{protocol:e,websocketImplementation:l,websocketFormat:T,websocketOptions:b,websocketAuthStrategy:w,fallbacks:C,logLevel:p,logger:g,transport:i,encoder:s,lazy:o,monitor:r,pingInterval:n,reconnectStrategy:a,maxMissingPings:h,maxReconnectAttempts:m,subprotocol:y,tokenRefresher:E,historyTimestamp:M,protocolOptions:_,concurrentSubscribes:v,performFailures:R,transportConfigurator:I,auth:F}=u;if(g=g||new na(p),typeof e=="string"){y=y||e;let P=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(_=_||{},P==="actioncable-v1")e=new gg({logger:g,..._});else if(P==="actioncable-v1-ext")e=new vk({logger:g,historyTimestamp:M,..._});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")s=s||new gk,T=T||"text";else if(O==="msgpack"){if(T="binary",!s)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(T=T||"binary",!s)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");i=i||new Ck(c,{websocketImplementation:l,websocketOptions:b,subprotocol:y,authStrategy:w,format:T}),C&&(i=new kk([i,...C],{logger:g})),F&&F.token&&i.setToken(F.token,F.param||"jid"),a=a||mg(n),r!==!1&&(r=r||new vg({pingInterval:n,reconnectStrategy:a,maxMissingPings:h,maxReconnectAttempts:m,logger:g}));let L={concurrentSubscribes:v},U=new bk({protocol:e,transport:i,encoder:s,logger:g,lazy:o,hubOptions:L,performFailures:R,transportConfigurator:I});return r&&(r.watch(U),U.monitor=r),E&&_k(U,async()=>{try{await E(i)}catch(P){return g.error("Failed to refresh authentication token: "+P),!1}return U.connect().catch(()=>{}),!0}),U}function _k(c,u){let e=!1;c.on("connect",()=>e=!1),c.on("close",async l=>{if(l){if(e){c.logger.warn("Token auto-refresh is disabled",l);return}l.reason==="token_expired"&&(e=!0,await u())}})}class Ak{constructor(u){this.channel=u}notify(u,...e){typeof this[u]=="function"&&this[u](...e)}perform(u,e={}){this.channel.perform(u,e)}send(u){this.channel.send(u)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class $k extends Nu{constructor(u,e,l){super(u,e),this.subscription=new Ak(this),Object.assign(this.subscription,l),this.on("connect",({reconnect:T})=>this.subscription.notify("connected",{reconnected:T})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",T=>this.subscription.notify("received",T)),this.on("close",T=>{T&&T instanceof Ou?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Mk{constructor(u){this.cable=u}create(u,e){let l,T;typeof u=="object"?(l=u.channel,delete u.channel,T=u):(l=u,T={});let b=new $k(l,T,e);return b.subscription.notify("initialized"),this.cable.subscribe(b),b.subscription}findAll(u){return this.cable.hub.channels.filter(e=>e.identifier===u).map(e=>e.subscription)}}class Tk{constructor(u){this.cable=u,this.subscriptions=new Mk(u)}}class Lk extends pg{writeLogEntry(u,e,l){l?console[u](e,l):console[u](e)}}class Ek extends vg{watch(u){super.watch(u),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let u=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=T=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:T})},l=()=>this.disconnect(new dr("page_frozen"));document.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",l,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",u,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",l,!1)})}}disconnect(u){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:u.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(u))}}const Rk=["cable","action-cable"],Ik="/cable",al=(c,u)=>{for(let e of Rk){let l=c.head.querySelector(`meta[name='${e}-${u}']`);if(l)return l.getAttribute("content")}},pf=c=>c.match(/wss?:\/\//)?c:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${c}`:c,Ok=()=>{if(typeof document<"u"&&document.head){let c=al(document,"url");if(c)return pf(c)}return pf(Ik)},Nk=()=>{if(typeof document<"u"&&document.head){let c=al(document,"history-timestamp");if(c)return c|0}},Dk=()=>{if(typeof document<"u"&&document.head)return al(document,"token")},Fk=()=>{if(typeof document<"u"&&document.head)return al(document,"token-param")};function Pk(c,u){typeof c=="object"&&typeof u>"u"&&(u=c,c=void 0),c=c||Ok(),u=u||{},u.historyTimestamp||(u.historyTimestamp=Nk());let e=Dk();if(e){let g=Fk();u.auth=Object.assign({token:e,param:g},u.auth||{})}u=Object.assign({},yg,u);let{logLevel:l,logger:T,pingInterval:b,reconnectStrategy:w,maxMissingPings:C,maxReconnectAttempts:p}=u;return T=u.logger=u.logger||new Lk(l),w=u.reconnectStrategy=u.reconnectStrategy||mg(b),u.monitor!==!1&&(u.monitor=u.monitor||new Ek({pingInterval:b,reconnectStrategy:w,maxMissingPings:C,maxReconnectAttempts:p,logger:T})),Sk(c,u)}function Wk(c,u){let e=Pk(c,u);return new Tk(e)}class Bk{constructor(u="/openc3-api/cable"){this._cable=null,this._url=u}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(u,e,l={},T={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(b=>{if(b&&OpenC3Auth.setTokens(),this._cable==null){let w=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);w=new URL(w,document.baseURI).href,this._cable=Wk(w)}return this._cable.subscriptions.create({channel:u,...T},l)})}recordPing(){}}class yu{constructor(u,e,l="",T=""){this.keyword=u.keyword,this.parameters=u.parameters,this.filename=u.filename,this.line=u.line,this.lineNumber=u.lineNumber,this.message=e,this.usage=l,this.url=T}}class Hk{constructor(){$r(this,"keyword",null),$r(this,"parameters",[]),$r(this,"filename",""),$r(this,"line",""),$r(this,"lineNumber",0),$r(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(u,e,l=""){for(let T=1;T<=u;T++)if(this.parameters[T-1]===void 0)throw new yu(this,`Not enough parameters for ${this.keyword}.`,l,this.url);if(e&&this.parameters[e]!==void 0)throw new yu(this,`Too many parameters for ${this.keyword}.`,l,this.url)}remove_quotes(u){if(u.length<2)return u;let e=u.charAt(0);if(e!=='"'&&e!=="'")return u;let l=u.charAt(u.length-1);return e!==l?u:u.substring(1,u.length-1)}scan_string(u,e){if(!e.global)throw"rx must have 'global' flag set";let l=[];return u.replace(e,function(T){return l.push(T),T}),l}parse_string(u,e,l,T,b){let w=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=e;let C=u.split(`
|
|
1397
|
-
`),p=C.length;for(let g=0;g<p;g++){this.lineNumber=g+1;let i=C[g].trim();if(i.length===0){l&&b(null,[],this.line,this.lineNumber);continue}if(w===!0){if(i[0]==="#")continue;i=i.substring(1,i.length)}let s=i.charAt(i.length-1),o=!1;switch(s){case"+":o=!0;case"\\":let m=i.substring(0,i.length-1).trim();this.line+=m.substring(0,m.length-1),o&&(this.line+=`
|
|
1398
|
-
`),w=!0;continue;case"&":this.line+=i.substring(0,i.length-1);continue;default:this.line+=i}w=!1;let r=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,n=this.scan_string(this.line,r),a="";if(n.length>0&&(a=a+n[0]),a.length===0||a.charAt(0)==="#"?this.keyword=null:this.keyword=a.toUpperCase(),this.parameters=[],this.keyword===null){l&&b(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let h=n.length;if(h>1)for(let m=1;m<h;m++){let y=n[m];if(y.length>0&&y.charAt(0)==="#")break;T?this.parameters.push(this.remove_quotes(y)):this.parameters.push(y)}b(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}function ll(c){return zk.test(c)}const zk=/^-?[0-9]+$/;function wg(c){return Uk.test(c)}const Uk=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function bg(c,u){const e=Number.parseFloat(c),l=String(e),T=gf(c),b=gf(l);return!!(T===b||(u==null?void 0:u.approx)===!0&&!ll(c)&&b.length>=14&&T.startsWith(b.substring(0,14)))}let Vs=function(c){return c.underflow="underflow",c.overflow="overflow",c.truncate_integer="truncate_integer",c.truncate_float="truncate_float",c}({});function Vk(c){if(bg(c,{approx:!1}))return;if(ll(c))return Vs.truncate_integer;const u=Number.parseFloat(c);return Number.isFinite(u)?u===0?Vs.underflow:Vs.truncate_float:Vs.overflow}function gf(c){return c.replace(jk,"").replace(Gk,"").replace(qk,"").replace(Kk,"")}const jk=/[eE][+-]?\d+$/,Kk=/^-?(0*)?/,Gk=/\./,qk=/0+$/;class Yk{constructor(u){if($r(this,"isLosslessNumber",!0),!wg(u))throw new Error(`Invalid number (value: "${u}")`);this.value=u}valueOf(){const u=Vk(this.value);if(u===void 0||u===Vs.truncate_float)return Number.parseFloat(this.value);if(ll(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${u} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Qk(c){return c&&typeof c=="object"&&c.isLosslessNumber===!0||!1}function Zk(c){return new Yk(c)}function Jk(c,u){return Du({"":c},"",c,u)}function Du(c,u,e,l){return Array.isArray(e)?l.call(c,u,eC(e,l)):e&&typeof e=="object"&&!Qk(e)?l.call(c,u,Xk(e,l)):l.call(c,u,e)}function Xk(c,u){for(const e of Object.keys(c)){const l=Du(c,e,c[e],u);l!==void 0?c[e]=l:delete c[e]}return c}function eC(c,u){for(let e=0;e<c.length;e++)c[e]=Du(c,String(e),c[e],u);return c}function tC(c,u){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zk,l=0;const T=C();return n(T),h(),u?Jk(T,u):T;function b(){if(c.charCodeAt(l)===aC){l++,g();const S={};let k=!0;for(;l<c.length&&c.charCodeAt(l)!==vf;){k?k=!1:(o(),g());const N=l,B=i();if(B===void 0){E();return}g(),r();const V=C();if(V===void 0){F();return}Object.prototype.hasOwnProperty.call(S,B)&&!wu(V,S[B])&&M(B,N+1),S[B]=V}return c.charCodeAt(l)!==vf&&_(),l++,S}}function w(){if(c.charCodeAt(l)===lC){l++,g();const S=[];let k=!0;for(;l<c.length&&c.charCodeAt(l)!==yf;){k?k=!1:o();const N=C();a(N),S.push(N)}return c.charCodeAt(l)!==yf&&v(),l++,S}}function C(){g();const S=i()??s()??b()??w()??p("true",!0)??p("false",!1)??p("null",null);return g(),S}function p(S,k){if(c.slice(l,l+S.length)===S)return l+=S.length,k}function g(){for(;nC(c.charCodeAt(l));)l++}function i(){if(c.charCodeAt(l)===kc){l++;let S="";for(;l<c.length&&c.charCodeAt(l)!==kc;){if(c.charCodeAt(l)===sC){const k=c[l+1],N=oC[k];N!==void 0?(S+=N,l++):k==="u"?Pa(c.charCodeAt(l+2))&&Pa(c.charCodeAt(l+3))&&Pa(c.charCodeAt(l+4))&&Pa(c.charCodeAt(l+5))?(S+=String.fromCharCode(Number.parseInt(c.slice(l+2,l+6),16)),l+=5):L(l):I(l)}else rC(c.charCodeAt(l))?S+=c[l]:R(c[l]);l++}return y(),l++,S}}function s(){const S=l;if(c.charCodeAt(l)===wf&&(l++,m(S)),c.charCodeAt(l)===Fu)l++;else if(iC(c.charCodeAt(l)))for(l++;Wa(c.charCodeAt(l));)l++;if(c.charCodeAt(l)===mC)for(l++,m(S);Wa(c.charCodeAt(l));)l++;if(c.charCodeAt(l)===xC||c.charCodeAt(l)===bC)for(l++,(c.charCodeAt(l)===wf||c.charCodeAt(l)===fC)&&l++,m(S);Wa(c.charCodeAt(l));)l++;if(l>S)return e(c.slice(S,l))}function o(){if(c.charCodeAt(l)!==gC)throw new SyntaxError(`Comma ',' expected after value ${O()}`);l++}function r(){if(c.charCodeAt(l)!==vC)throw new SyntaxError(`Colon ':' expected after property name ${O()}`);l++}function n(S){if(S===void 0)throw new SyntaxError(`JSON value expected ${O()}`)}function a(S){if(S===void 0)throw new SyntaxError(`Array item expected ${O()}`)}function h(){if(l<c.length)throw new SyntaxError(`Expected end of input ${O()}`)}function m(S){if(!Wa(c.charCodeAt(l))){const k=c.slice(S,l);throw new SyntaxError(`Invalid number '${k}', expecting a digit ${O()}`)}}function y(){if(c.charCodeAt(l)!==kc)throw new SyntaxError(`End of string '"' expected ${O()}`)}function E(){throw new SyntaxError(`Quoted object key expected ${O()}`)}function M(S,k){throw new SyntaxError(`Duplicate key '${S}' encountered at position ${k}`)}function _(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${O()}`)}function v(){throw new SyntaxError(`Array item or end of array ']' expected ${O()}`)}function R(S){throw new SyntaxError(`Invalid character '${S}' ${U()}`)}function I(S){const k=c.slice(S,S+2);throw new SyntaxError(`Invalid escape character '${k}' ${U()}`)}function F(){throw new SyntaxError(`Object value expected after ':' ${U()}`)}function L(S){const k=c.slice(S,S+6);throw new SyntaxError(`Invalid unicode character '${k}' ${U()}`)}function U(){return`at position ${l}`}function P(){return l<c.length?`but got '${c[l]}'`:"but reached end of input"}function O(){return`${P()} ${U()}`}}function nC(c){return c===cC||c===uC||c===hC||c===dC}function Pa(c){return c>=Fu&&c<=Pu||c>=yC&&c<=kC||c>=wC&&c<=CC}function Wa(c){return c>=Fu&&c<=Pu}function iC(c){return c>=pC&&c<=Pu}function rC(c){return c>=32&&c<=1114111}function wu(c,u){return c===u?!0:Array.isArray(c)&&Array.isArray(u)?c.length===u.length&&c.every((e,l)=>wu(e,u[l])):mf(c)&&mf(u)?[...new Set([...Object.keys(c),...Object.keys(u)])].every(e=>wu(c[e],u[e])):!1}function mf(c){return typeof c=="object"&&c!==null}const oC={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1399
|
-
`,r:"\r",t:" "},sC=92,aC=123,vf=125,lC=91,yf=93,cC=32,uC=10,hC=9,dC=13,kc=34,fC=43,wf=45,Fu=48,pC=49,Pu=57,gC=44,mC=46,vC=58,yC=65,wC=97,bC=69,xC=101,kC=70,CC=102;function xg(c,u,e,l){return b(c);function b(g,i){if(Array.isArray(l)){const s=l.find(o=>o.test(g));if(s){const o=s.stringify(g);if(typeof o!="string"||!wg(o))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${o})`);return o}}if(typeof g=="boolean"||typeof g=="number"||typeof g=="string"||g===null||g instanceof Date||g instanceof Boolean||g instanceof Number||g instanceof String)return JSON.stringify(g);if(g!=null&&g.isLosslessNumber||typeof g=="bigint")return g.toString();if(Array.isArray(g))return w(g);if(g&&typeof g=="object")return C(g)}function w(g,i){if(g.length===0)return"[]";let s="[";for(let o=0;o<g.length;o++){const r=g[o];typeof r<"u"&&typeof r!="function"?s+=b(r):s+="null",o<g.length-1&&(s+=",")}return s+="]",s}function C(g,i){if(typeof g.toJSON=="function")return xg(g.toJSON(),u,e,void 0);const s=Array.isArray(u)?u.map(String):Object.keys(g);if(s.length===0)return"{}";let o=!0,r="{";for(const n of s){const a=g[n];if(p(n,a)){o?o=!1:r+=",";const h=JSON.stringify(n);r+=`${h}:`,r+=b(a)}}return r+="}",r}function p(g,i){return typeof i<"u"&&typeof i!="function"&&typeof i!="symbol"}}function SC(c){return ll(c)&&!bg(c)?BigInt(c):parseFloat(c)}class _C{constructor(){$r(this,"id",1)}async exec(u,e,l={},T={},b=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return l.scope=window.openc3Scope,T.manual=!0,(await Iu.post("/openc3-api/api",{jsonrpc:"2.0",method:u,params:e,id:this.id,keyword_params:l},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...T},timeout:b,transformRequest:[(w,C)=>xg(w)],transformResponse:[w=>tC(w,void 0,SC)]})).data.result}catch(w){let C=new Error;throw w.response?(C.name=w.response.data.error.data.class,C.message=w.response.data.error.data.message,C.object=w.response.data.error):w.request?(C.name="Request error",C.message="Request error, no response received"):C=w,C}}decode_openc3_type(u){if(u!==null&&typeof u=="object"&&u.json_class=="Float"&&u.raw){if(u.raw=="NaN")return NaN;if(u.raw=="Infinity")return 1/0;if(u.raw=="-Infinity")return-1/0}return null}encode_openc3_type(u){return Number.isNaN(u)?{json_class:"Float",raw:"NaN"}:u==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:u==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(u=>{u&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(u){return this.exec("set_offline_access",[u])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(u,e){return this.exec("map_target_to_interface",[u,e])}connect_interface(u,...e){return e.length>0?this.exec("connect_interface",[u,...e]):this.exec("connect_interface",[u])}disconnect_interface(u){return this.exec("disconnect_interface",[u])}interface_cmd(u,e,...l){return this.exec("interface_cmd",[u,e,...l])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(u){return this.exec("connect_router",[u])}disconnect_router(u){return this.exec("disconnect_router",[u])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(u){return this.exec("get_tlm_cnts",[u])}get_item(u,e,l){return this.exec("get_item",[u,e,l])}get_param(u,e,l){return this.exec("get_param",[u,e,l])}get_parameter(u,e,l){return this.exec("get_param",[u,e,l])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(u){return this.exec("set_limits_set",[u])}get_target(u){return this.exec("get_target",[u])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(u,e){return this.exec("get_tlm",[u,e])}get_telemetry(u,e){return this.exec("get_tlm",[u,e])}get_all_tlm(u){return this.exec("get_all_tlm",[u])}get_all_telemetry(u){return this.exec("get_all_tlm",[u])}get_all_tlm_names(u,e=!1){return this.exec("get_all_tlm_names",[u],{hidden:e})}get_all_telemetry_names(u){return this.exec("get_all_tlm_names",[u])}get_all_tlm_item_names(u){return this.exec("get_all_tlm_item_names",[u])}async get_tlm_packet(u,e,l,T=30){const b=await this.exec("get_tlm_packet",[u,e],{type:l,stale_time:T});if(b!=null){let w=b.length,C=null;for(let p=0;p<w;p++)C=this.decode_openc3_type(b[p][1]),C!==null&&(b[p][1]=C)}return b}get_packet_derived_items(u,e){return this.exec("get_packet_derived_items",[u,e])}get_tlm_buffer(u,e){return this.exec("get_tlm_buffer",[u,e])}async get_tlm_values(u,e=30,l=null){let T={stale_time:e};l!==null&&(T.cache_timeout=l);const b=await this.exec("get_tlm_values",[u],T,{},1e4);let w=b[0].length,C=null;for(let p=0;p<w;p++)C=this.decode_openc3_type(b[0][p]),C!==null&&(b[0][p]=C);return b}get_limits(u,e,l){return this.exec("get_limits",[u,e,l])}async tlm(u,e,l,T="CONVERTED"){let b=null;if(e===void 0)b=await this.exec("tlm",[u]);else if(l===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))b=await this.exec("tlm",[u],{type:e});else{let C=new Error;throw C.name="TypeError",C.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,C}else b=await this.exec("tlm",[u,e,l],{type:T});let w=this.decode_openc3_type(b);return w!==null&&(b=w),b}async inject_tlm(u,e,l=null,T="CONVERTED"){await this.exec("inject_tlm",[u,e,l],{type:T})}set_tlm(u,e,l,T){return this.exec("set_tlm",[u,e,l],{type:T})}override_tlm(u,e,l,T){return this.exec("override_tlm",[u,e,l],{type:T})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(u,e,l,T){return this.exec("normalize_tlm",[u,e,l],{type:T})}get_all_cmds(u){return this.exec("get_all_cmds",[u])}get_all_commands(u){return this.exec("get_all_cmds",[u])}get_all_cmd_names(u,e=!1){return this.exec("get_all_cmd_names",[u],{hidden:e})}get_all_command_names(u){return this.exec("get_all_cmd_names",[u])}get_cmd(u,e){return this.exec("get_cmd",[u,e])}get_command(u,e){return this.exec("get_cmd",[u,e])}get_cmd_cnts(u){return this.exec("get_cmd_cnts",[u])}get_cmd_value(u,e,l,T="CONVERTED"){return this.exec("get_cmd_value",[u,e,l,T])}get_cmd_buffer(u,e){return this.exec("get_cmd_buffer",[u,e])}_cmd(u,e,l,T,b){let w=null;for(let C in T)Object.prototype.hasOwnProperty.call(T,C)&&(w=this.encode_openc3_type(T[C]),w!==null&&(T[C]=w));return this.exec(u,[e,l,T],{},b)}get_cmd_hazardous(u,e,l,T={}){return e===void 0?this.exec("get_cmd_hazardous",u,{},T):this._cmd("get_cmd_hazardous",u,e,l,T)}cmd(u,e,l,T={}){return e===void 0?this.exec("cmd",u,{},T):this._cmd("cmd",u,e,l,T)}cmd_no_range_check(u,e,l,T={}){return e===void 0?this.exec("cmd_no_range_check",u,{},T):this._cmd("cmd_no_range_check",u,e,l,T)}cmd_raw(u,e,l,T={}){return e===void 0?this.exec("cmd_raw",u,{},T):this._cmd("cmd_raw",u,e,l,T)}cmd_raw_no_range_check(u,e,l,T={}){return e===void 0?this.exec("cmd_raw_no_range_check",u,{},T):this._cmd("cmd_raw_no_range_check",u,e,l,T)}cmd_no_hazardous_check(u,e,l,T={}){return e===void 0?this.exec("cmd_no_hazardous_check",u,{},T):this._cmd("cmd_no_hazardous_check",u,e,l,T)}cmd_no_checks(u,e,l,T={}){return e===void 0?this.exec("cmd_no_checks",u,{},T):this._cmd("cmd_no_checks",u,e,l,T)}cmd_raw_no_hazardous_check(u,e,l,T={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",u,{},T):this._cmd("cmd_raw_no_hazardous_check",u,e,l,T)}cmd_raw_no_checks(u,e,l,T={}){return e===void 0?this.exec("cmd_raw_no_checks",u,{},T):this._cmd("cmd_raw_no_checks",u,e,l,T)}build_cmd(u,e,l){return e===void 0?this.exec("build_cmd",u):this._cmd("build_cmd",u,e,l)}build_command(u,e,l){return e===void 0?this.exec("build_cmd",u):this._cmd("build_cmd",u,e,l)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(u,e){return this.exec("send_raw",[u,e])}list_configs(u){return this.exec("list_configs",[u])}load_config(u,e){return this.exec("load_config",[u,e])}save_config(u,e,l){return this.exec("save_config",[u,e,l])}delete_config(u,e){return this.exec("delete_config",[u,e])}enable_limits(u,e,l){return this.exec("enable_limits",[u,e,l])}disable_limits(u,e,l){return this.exec("disable_limits",[u,e,l])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(u){return this.exec("get_overall_limits_state",[u])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(u){return this.exec("get_setting",[u])}get_settings(u){return this.exec("get_settings",u)}set_setting(u,e){return this.exec("set_setting",[u,e])}update_news(){return this.exec("update_news",[])}save_setting(u,e){return this.exec("set_setting",[u,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(u){if(window.isSecureContext){const e=new TextEncoder().encode(u),l=await crypto.subtle.digest("SHA-256",e),T=new Uint8Array(l);return Array.from(T).map(b=>b.toString(16).padStart(2,"0")).join("")}}}var Cc={exports:{}},bf;function AC(){return bf||(bf=1,function(c,u){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,l,T){function b(g,i){function s(F,L,U){if(!(F.length<L)){var P=F.slice(0,L),O=F.slice(L),S=/^(?:(\s+)|(\S+)(\s+))/.exec(O),k=/(?:(\s+)|(\s+)(\S+))$/.exec(P),N=0,B=0;if(k&&!k[2]&&(N=L-k[1].length,B=L),S&&!S[2]&&(N||(N=L),B=L+S[1].length),N)return{start:N,end:B};if(k&&k[2]&&k.index>U)return{start:k.index,end:k.index+k[2].length};if(S&&S[2])return N=L+S[2].length,{start:N,end:N+S[3].length}}}for(var o=i.column||g.getOption("printMarginColumn"),r=i.allowMerge!=0,n=Math.min(i.startRow,i.endRow),a=Math.max(i.startRow,i.endRow),h=g.session;n<=a;){var m=h.getLine(n);if(m.length>o){var y=s(m,o,5);if(y){var E=/^\s*/.exec(m)[0];h.replace(new C(n,y.start,n,y.end),`
|
|
1400
|
-
`+E)}a++}else if(r&&/\S/.test(m)&&n!=a){var M=h.getLine(n+1);if(M&&/\S/.test(M)){var _=m.replace(/\s+$/,""),v=M.replace(/^\s+/,""),R=_+" "+v,y=s(R,o,5);if(y&&y.start>_.length||R.length<o){var I=new C(n,_.length,n+1,M.length-v.length);h.replace(I," "),n--,a--}else _.length<m.length&&h.remove(new C(n,_.length,n,m.length))}}n++}}function w(g){if(g.command.name=="insertstring"&&/\S/.test(g.args)){var i=g.editor,s=i.selection.cursor;if(s.column<=i.renderer.$printMarginColumn)return;var o=i.session.$undoManager.$lastDelta;b(i,{startRow:s.row,endRow:s.row,allowMerge:!1}),o!=i.session.$undoManager.$lastDelta&&i.session.markUndoGroup()}}var C=e("../range").Range,p=e("../editor").Editor;e("../config").defineOptions(p.prototype,"editor",{hardWrap:{set:function(g){g?this.commands.on("afterExec",w):this.commands.off("afterExec",w)},value:!1}}),l.hardWrap=b}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,l,T){function b(f){return{row:f.line,column:f.ch}}function w(f){return new Oe(f.row,f.column)}function C(f,A,x){if(A.line===x.line&&A.ch>=x.ch-1){var D=f.getLine(A.line),W=D.charCodeAt(A.ch);55296<=W&&W<=55551&&(x.ch+=1)}return{start:A,end:x}}function p(f){f.setOption("disableInput",!0),f.setOption("showCursorWhenSelecting",!1),Fe.signal(f,"vim-mode-change",{mode:"normal"}),f.on("cursorActivity",to),R(f),Fe.on(f.getInputField(),"paste",i(f))}function g(f){f.setOption("disableInput",!1),f.off("cursorActivity",to),Fe.off(f.getInputField(),"paste",i(f)),f.state.vim=null,Vn&&clearTimeout(Vn)}function i(f){var A=f.state.vim;return A.onPasteFn||(A.onPasteFn=function(){A.insertMode||(f.setCursor(me(f.getCursor(),0,1)),Cn.enterInsertMode(f,{},A))}),A.onPasteFn}function s(f,A){return A>=f.firstLine()&&A<=f.lastLine()}function o(f){return/^[a-z]$/.test(f)}function r(f){return"()[]{}".indexOf(f)!=-1}function n(f){return es.test(f)}function a(f){return Gt.test(f)}function h(f){return/^\s*$/.test(f)}function m(f){return".?!".indexOf(f)!=-1}function y(f,A){for(var x=0;x<A.length;x++)if(A[x]==f)return!0;return!1}function E(f,A,x,D,W){if(A===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(x||(x="string"),Dt[f]={type:x,defaultValue:A,callback:W},D)for(var H=0;H<D.length;H++)Dt[D[H]]=Dt[f];A&&M(f,A)}function M(f,A,x,D){var W=Dt[f];D=D||{};var H=D.scope;if(!W)return new Error("Unknown option: "+f);if(W.type=="boolean"){if(A&&A!==!0)return new Error("Invalid argument: "+f+"="+A);A!==!1&&(A=!0)}W.callback?(H!=="local"&&W.callback(A,void 0),H!=="global"&&x&&W.callback(A,x)):(H!=="local"&&(W.value=W.type=="boolean"?!!A:A),H!=="global"&&x&&(x.state.vim.options[f]={value:A}))}function _(f,A,x){var D=Dt[f];x=x||{};var W=x.scope;if(!D)return new Error("Unknown option: "+f);if(D.callback){var H=A&&D.callback(void 0,A);return W!=="global"&&H!==void 0?H:W!=="local"?D.callback():void 0}var H=W!=="global"&&A&&A.state.vim.options[f];return(H||W!=="local"&&D||{}).value}function v(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=xn()}function R(f){return f.state.vim||(f.state.vim={inputState:new S,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),f.state.vim}function I(){Be={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Vi(),macroModeState:new v,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new G({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var f in Dt){var A=Dt[f];A.value=A.defaultValue}}function F(f){function A(Y){typeof Y=="string"?cn.value=Y:cn=null}if(f[0]=="<"){var x=f.toLowerCase().slice(1,-1),D=x.split("-");if(x=D.pop()||"",x=="lt")f="<";else if(x=="space")f=" ";else if(x=="cr")f=`
|
|
1401
|
-
`;else if(ji[x]){var W=cn.value,H={key:ji[x],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};cn.onKeyDown&&cn.onKeyDown(H,cn.value,A),cn&&cn.onKeyUp&&cn.onKeyUp(H,cn.value,A);return}}if(f==`
|
|
1402
|
-
`){var K=cn;cn=null,K.onClose&&K.onClose(K.value)}else cn.value=(cn.value||"")+f}function L(f,A,x){var D=Jt;if(x){if(ci.indexOf(x)!=-1)return;ci.push(x),Jt=x.noremap!=0}try{for(var W=R(f),H=/<(?:[CSMA]-)*\w+>|./gi,K;K=H.exec(A);){var Y=K[0],J=W.insertMode;if(cn){F(Y);continue}var ie=mt.handleKey(f,Y,"mapping");if(!ie&&J&&W.insertMode){if(Y[0]=="<"){var se=Y.toLowerCase().slice(1,-1),ye=se.split("-");if(se=ye.pop()||"",se=="lt")Y="<";else if(se=="space")Y=" ";else if(se=="cr")Y=`
|
|
1403
|
-
`;else{if(ji.hasOwnProperty(se)){Y=ji[se],io(f,Y);continue}Y=Y[0],H.lastIndex=K.index+1}}f.replaceSelection(Y)}}}finally{if(ci.pop(),Jt=ci.length?D:!1,!ci.length&&cn){var ke=cn;cn=null,ni(f,ke)}}}function U(f,A){var x=f.key;if(!ui[x]){x.length>1&&x[0]=="n"&&(x=x.replace("Numpad","")),x=On[x]||x;var D="";if(f.ctrlKey&&(D+="C-"),f.altKey&&(D+="A-"),f.metaKey&&(D+="M-"),Fe.isMac&&f.altKey&&!f.metaKey&&!f.ctrlKey&&(D=D.slice(2)),(D||x.length>1)&&f.shiftKey&&(D+="S-"),A&&!A.expectLiteralNext&&x.length==1){if(Tn.keymap&&x in Tn.keymap)(Tn.remapCtrl!=0||!D)&&(x=Tn.keymap[x]);else if(x.charCodeAt(0)>255){var W=f.code&&f.code.slice(-1)||"";f.shiftKey||(W=W.toLowerCase()),W&&(x=W)}}return D+=x,D.length>1&&(D="<"+D+">"),D}}function P(f,A){Tn.string!==f&&(Tn=O(f)),Tn.remapCtrl=A}function O(f){function A(D){return D.split(/\\?(.)/).filter(Boolean)}var x={};return f?(f.split(/((?:[^\\,]|\\.)+),/).map(function(D){if(D){var W=D.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var H=A(W[1]),K=A(W[2]);if(H.length!==K.length)return;for(var Y=0;Y<H.length;++Y)x[H[Y]]=K[Y]}else if(W.length==1){var J=A(D);if(J.length%2!==0)return;for(var Y=0;Y<J.length;Y+=2)x[J[Y]]=J[Y+1]}}}),{keymap:x,string:f}):{keymap:x,string:""}}function S(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function k(f,A){f.state.vim.inputState=new S,f.state.vim.expectLiteralNext=!1,Fe.signal(f,"vim-command-done",A)}function N(){this.removed=[],this.inserted=""}function B(f,A,x){this.clear(),this.keyBuffer=[f||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!A,this.blockwise=!!x}function V(f,A){var x=Be.registerController.registers;if(!f||f.length!=1)throw Error("Register name must be 1 character");x[f]=A,Kt.push(f)}function G(f){this.registers=f,this.unnamedRegister=f['"']=new B,f["."]=new B,f[":"]=new B,f["/"]=new B,f["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function te(f,A){wi[f]=A}function he(f,A){for(var x=[],D=0;D<A;D++)x.push(f);return x}function ne(f,A){ao[f]=A}function ce(f,A){Cn[f]=A}function ue(f,A,x){var D=f.state.vim,W=D.insertMode||D.visualMode,H=Math.min(Math.max(f.firstLine(),A.line),f.lastLine()),K=f.getLine(H),Y=K.length-1+ +!!W,J=Math.min(Math.max(0,A.ch),Y),ie=K.charCodeAt(J);if(56320<=ie&&ie<=57343){var se=1;x&&x.line==H&&x.ch>J&&(se=-1),J+=se,J>Y&&(J-=2)}return new Oe(H,J)}function le(f){var A={};for(var x in f)f.hasOwnProperty(x)&&(A[x]=f[x]);return A}function me(f,A,x){return typeof A=="object"&&(x=A.ch,A=A.line),new Oe(f.line+A,f.ch+x)}function Ae(f,A,x,D){D.operator&&(x="operatorPending");for(var W,H=[],K=[],Y=Jt?A.length-Dr:0,J=Y;J<A.length;J++){var ie=A[J];x=="insert"&&ie.context!="insert"||ie.context&&ie.context!=x||D.operator&&ie.type=="action"||!(W=$e(f,ie.keys))||(W=="partial"&&H.push(ie),W=="full"&&K.push(ie))}return{partial:H.length&&H,full:K.length&&K}}function $e(f,A){var x=A.slice(-11)=="<character>",D=A.slice(-10)=="<register>";if(x||D){var W=A.length-(x?11:10),H=f.slice(0,W),K=A.slice(0,W);return H==K&&f.length>W?"full":K.indexOf(H)==0?"partial":!1}return f==A?"full":A.indexOf(f)==0?"partial":!1}function Te(f){var A=/^.*(<[^>]+>)$/.exec(f),x=A?A[1]:f.slice(-1);if(x.length>1)switch(x){case"<CR>":x=`
|
|
1404
|
-
`;break;case"<Space>":x=" ";break;default:x=""}return x}function Ge(f,A,x){return function(){for(var D=0;D<x;D++)A(f)}}function je(f){return new Oe(f.line,f.ch)}function at(f,A){return f.ch==A.ch&&f.line==A.line}function et(f,A){return f.line<A.line?!0:f.line==A.line&&f.ch<A.ch}function lt(f,A){return arguments.length>2&&(A=lt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(f,A)?f:A}function jt(f,A){return arguments.length>2&&(A=jt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(f,A)?A:f}function on(f,A,x){var D=et(f,A),W=et(A,x);return D&&W}function Ht(f,A){return f.getLine(A).length}function qn(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}function sn(f){return f.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function yn(f,A,x){var D=Ht(f,A),W=new Array(x-D+1).join(" ");f.setCursor(new Oe(A,D)),f.replaceRange(W,f.getCursor())}function wn(f,A){var x=[],D=f.listSelections(),W=je(f.clipPos(A)),H=!at(A,W),K=f.getCursor("head"),Y=pt(D,K),J=at(D[Y].head,D[Y].anchor),ie=D.length-1,se=ie-Y>Y?ie:0,ye=D[se].anchor,ke=Math.min(ye.line,W.line),de=Math.max(ye.line,W.line),we=ye.ch,Ie=W.ch,Ee=D[se].head.ch-we,He=Ie-we;Ee>0&&He<=0?(we++,H||Ie--):Ee<0&&He>=0?(we--,J||Ie++):Ee<0&&He==-1&&(we--,Ie++);for(var nt=ke;nt<=de;nt++){var Xe={anchor:new Oe(nt,we),head:new Oe(nt,Ie)};x.push(Xe)}return f.setSelections(x),A.ch=Ie,ye.ch=we,ye}function In(f,A,x){for(var D=[],W=0;W<x;W++){var H=me(A,W,0);D.push({anchor:H,head:H})}f.setSelections(D,0)}function pt(f,A,x){for(var D=0;D<f.length;D++){var W=at(f[D].anchor,A),H=at(f[D].head,A);if(W||H)return D}return-1}function Ue(f,A){var x=A.lastSelection,D=function(){var H=f.listSelections(),K=H[0],Y=H[H.length-1],J=et(K.anchor,K.head)?K.anchor:K.head,ie=et(Y.anchor,Y.head)?Y.head:Y.anchor;return[J,ie]},W=function(){var H=f.getCursor(),K=f.getCursor(),Y=x.visualBlock;if(Y){var J=Y.width,ie=Y.height;K=new Oe(H.line+ie,H.ch+J);for(var se=[],ye=H.line;ye<K.line;ye++){var ke=new Oe(ye,H.ch),de=new Oe(ye,K.ch),we={anchor:ke,head:de};se.push(we)}f.setSelections(se)}else{var Ie=x.anchorMark.find(),Ee=x.headMark.find(),He=Ee.line-Ie.line,nt=Ee.ch-Ie.ch;K={line:K.line+He,ch:He?K.ch:nt+K.ch},x.visualLine&&(H=new Oe(H.line,0),K=new Oe(K.line,Ht(f,K.line))),f.setSelection(H,K)}return[H,K]};return A.visualMode?D():W()}function Ce(f,A){var x=A.sel.anchor,D=A.sel.head;A.lastPastedText&&(D=f.posFromIndex(f.indexFromPos(x)+A.lastPastedText.length),A.lastPastedText=null),A.lastSelection={anchorMark:f.setBookmark(x),headMark:f.setBookmark(D),anchor:je(x),head:je(D),visualMode:A.visualMode,visualLine:A.visualLine,visualBlock:A.visualBlock}}function We(f,A,x,D){var W=f.state.vim.sel,H=D?A:W.head,K=D?A:W.anchor,Y;return et(x,A)&&(Y=x,x=A,A=Y),et(H,K)?(H=lt(A,H),K=jt(K,x)):(K=lt(A,K),H=jt(H,x),H=me(H,0,-1),H.ch==-1&&H.line!=f.firstLine()&&(H=new Oe(H.line-1,Ht(f,H.line-1)))),[K,H]}function qe(f,A,W){var D=f.state.vim;A=A||D.sel;var W=W||D.visualLine?"line":D.visualBlock?"block":"char",H=ct(f,A,W);f.setSelections(H.ranges,H.primary)}function ct(f,A,x,D){var W=je(A.head),H=je(A.anchor);if(x=="char"){var K=!D&&!et(A.head,A.anchor)?1:0,Y=et(A.head,A.anchor)?1:0;return W=me(A.head,0,K),H=me(A.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(x=="line"){if(et(A.head,A.anchor))W.ch=0,H.ch=Ht(f,H.line);else{H.ch=0;var J=f.lastLine();W.line>J&&(W.line=J),W.ch=Ht(f,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(x=="block"){var ie=Math.min(H.line,W.line),se=H.ch,ye=Math.max(H.line,W.line),ke=W.ch;se<ke?ke+=1:se+=1;for(var de=ye-ie+1,we=W.line==ie?0:de-1,Ie=[],Ee=0;Ee<de;Ee++)Ie.push({anchor:new Oe(ie+Ee,se),head:new Oe(ie+Ee,ke)});return{ranges:Ie,primary:we}}}function wt(f){var A=f.getCursor("head");return f.getSelection().length==1&&(A=lt(A,f.getCursor("anchor"))),A}function bt(f,A){var x=f.state.vim;A!==!1&&f.setCursor(ue(f,x.sel.head)),Ce(f,x),x.visualMode=!1,x.visualLine=!1,x.visualBlock=!1,x.insertMode||Fe.signal(f,"vim-mode-change",{mode:"normal"})}function $t(f,A,x){var D=f.getRange(A,x);if(/\n\s*$/.test(D)){var W=D.split(`
|
|
1405
|
-
`);W.pop();for(var H,H=W.pop();W.length>0&&H&&h(H);H=W.pop())x.line--,x.ch=0;H?(x.line--,x.ch=Ht(f,x.line)):x.ch=0}}function _t(f,A,x){A.ch=0,x.ch=0,x.line++}function st(f){if(!f)return 0;var A=f.search(/\S/);return A==-1?f.length:A}function gt(f,A,x){var D=A.inclusive,W=A.innerWord,H=A.bigWord,K=A.noSymbol,Y=A.multiline,J=x||wt(f),ie=f.getLine(J.line),se=ie,ye=J.line,ke=ye,de=J.ch,we,Ie=K?Fr[0]:Ui[0];if(W&&/\s/.test(ie.charAt(de)))Ie=function(Xt){return/\s/.test(Xt)};else{for(;!Ie(ie.charAt(de));)if(de++,de>=ie.length){if(!Y)return null;de--,we=Mr(f,J,!0,H,!0);break}H?Ie=Ui[0]:(Ie=Fr[0],Ie(ie.charAt(de))||(Ie=Fr[1]))}for(var Ee=de,He=de;Ie(ie.charAt(He))&&He>=0;)He--;if(He++,we)Ee=we.to,ke=we.line,se=f.getLine(ke),!se&&Ee==0&&Ee++;else for(;Ie(ie.charAt(Ee))&&Ee<ie.length;)Ee++;if(D){var nt=Ee,Xe=J.ch<=He&&/\s/.test(ie.charAt(J.ch));if(!Xe)for(;/\s/.test(se.charAt(Ee))&&Ee<se.length;)Ee++;if(nt==Ee||Xe){for(var Qe=He;/\s/.test(ie.charAt(He-1))&&He>0;)He--;!He&&!Xe&&(He=Qe)}}return{start:new Oe(ye,He),end:new Oe(ke,Ee)}}function hn(f,A,x){var D=A;if(!Fe.findMatchingTag||!Fe.findEnclosingTag)return{start:D,end:D};var W=Fe.findMatchingTag(f,A)||Fe.findEnclosingTag(f,A);return!W||!W.open||!W.close?{start:D,end:D}:x?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Yn(f,A,x){at(A,x)||Be.jumpList.add(f,A,x)}function mi(f,A){Be.lastCharacterSearch.increment=f,Be.lastCharacterSearch.forward=A.forward,Be.lastCharacterSearch.selectedCharacter=A.selectedCharacter}function tr(f,A,x,D){var W=je(f.getCursor()),H=x?1:-1,K=x?f.lineCount():-1,Y=W.ch,J=W.line,ie=f.getLine(J),se={lineText:ie,nextCh:ie.charAt(Y),lastCh:null,index:Y,symb:D,reverseSymb:(x?{")":"(","}":"{"}:{"(":")","{":"}"})[D],forward:x,depth:0,curMoveThrough:!1},ye=Ti[D];if(!ye)return W;var ke=Li[ye].init,de=Li[ye].isComplete;for(ke&&ke(se);J!==K&&A;){if(se.index+=H,se.nextCh=se.lineText.charAt(se.index),!se.nextCh){if(J+=H,se.lineText=f.getLine(J)||"",H>0)se.index=0;else{var we=se.lineText.length;se.index=we>0?we-1:0}se.nextCh=se.lineText.charAt(se.index)}de(se)&&(W.line=J,W.ch=se.index,A--)}return se.nextCh||se.curMoveThrough?new Oe(J,se.index):W}function Mr(f,A,x,D,W){var H=A.line,K=A.ch,Y=f.getLine(H),J=x?1:-1,ie=D?Ui:Fr;if(W&&Y==""){if(H+=J,Y=f.getLine(H),!s(f,H))return null;K=x?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var se=J>0?Y.length:-1,ye=se,ke=se;K!=se;){for(var de=!1,we=0;we<ie.length&&!de;++we)if(ie[we](Y.charAt(K))){for(ye=K;K!=se&&ie[we](Y.charAt(K));)K+=J;if(ke=K,de=ye!=ke,ye==A.ch&&H==A.line&&ke==ye+J)continue;return{from:Math.min(ye,ke+1),to:Math.max(ye,ke),line:H}}de||(K+=J)}if(H+=J,!s(f,H))return null;Y=f.getLine(H),K=J>0?0:Y.length}}function Qn(f,A,x,D,W,H){var K=je(A),Y=[];(D&&!W||!D&&W)&&x++;for(var J=!D||!W,ie=0;ie<x;ie++){var se=Mr(f,A,D,H,J);if(!se){var ye=Ht(f,f.lastLine());Y.push(D?{line:f.lastLine(),from:ye,to:ye}:{line:0,from:0,to:0});break}Y.push(se),A=new Oe(se.line,D?se.to-1:se.from)}var ke=Y.length!=x,de=Y[0],we=Y.pop();return D&&!W?(!ke&&(de.from!=K.ch||de.line!=K.line)&&(we=Y.pop()),new Oe(we.line,we.from)):D&&W?new Oe(we.line,we.to-1):!D&&W?(!ke&&(de.to!=K.ch||de.line!=K.line)&&(we=Y.pop()),new Oe(we.line,we.to)):new Oe(we.line,we.from)}function Tr(f,A,x,D,W){var H=A,K=new Oe(H.line+x.repeat-1,1/0),Y=f.clipPos(K);return Y.ch--,W||(D.lastHPos=1/0,D.lastHSPos=f.charCoords(Y,"div").left),K}function Qr(f,A,x,D,W){for(var H=W||f.getCursor(),K=H.ch,Y,J=0;J<A;J++){var ie=f.getLine(H.line);if(Y=Cs(K,ie,D,x),Y==-1)return null;K=Y}return new Oe(f.getCursor().line,Y)}function ks(f,A){var x=f.getCursor().line;return ue(f,new Oe(x,A-1))}function Ai(f,A,x,D){!y(x,xr)&&!Ut.test(x)||(A.marks[x]&&A.marks[x].clear(),A.marks[x]=f.setBookmark(D))}function Cs(f,A,x,D,W){var H;return D?(H=A.indexOf(x,f+1),H!=-1):(H=A.lastIndexOf(x,f-1),H!=-1),H}function yo(f,A,x,D,W){function H(He){return!/\S/.test(f.getLine(He))}function K(He,nt,Xe){return Xe?H(He)!=H(He+nt):!H(He)&&H(He+nt)}function Y(He){D=D>0?1:-1;var nt=f.ace.session.getFoldLine(He);nt&&He+D>nt.start.row&&He+D<nt.end.row&&(D=(D>0?nt.end.row:nt.start.row)-He)}var J=A.line,ie=f.firstLine(),se=f.lastLine(),ye,ke,de=J;if(D){for(;ie<=de&&de<=se&&x>0;)Y(de),K(de,D)&&x--,de+=D;return new Oe(de,0)}var we=f.state.vim;if(we.visualLine&&K(J,1,!0)){var Ie=we.sel.anchor;K(Ie.line,-1,!0)&&(!W||Ie.line!=J)&&(J+=1)}var Ee=H(J);for(de=J;de<=se&&x;de++)K(de,1,!0)&&(!W||H(de)!=Ee)&&x--;for(ke=new Oe(de,0),de>se&&!Ee?Ee=!0:W=!1,de=J;de>ie&&!((!W||H(de)==Ee||de==J)&&K(de,-1,!0));de--);return ye=new Oe(de,0),{start:ye,end:ke}}function Go(f,A,x,D,W){function H(ie){ie.pos+ie.dir<0||ie.pos+ie.dir>=ie.line.length?ie.line=null:ie.pos+=ie.dir}function K(ie,se,ye,ke){var de=ie.getLine(se),we={line:de,ln:se,pos:ye,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Ie=we.pos;for(H(we);we.line!==null;){if(Ie=we.pos,m(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&h(we.line[we.pos]);)Ie=we.pos,H(we);return{ln:we.ln,pos:Ie+1}}H(we)}return{ln:we.ln,pos:Ie+1}}function Y(ie,se,ye,ke){var de=ie.getLine(se),we={line:de,ln:se,pos:ye,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Ie=we.pos;for(H(we);we.line!==null;){if(!h(we.line[we.pos])&&!m(we.line[we.pos]))Ie=we.pos;else if(m(we.line[we.pos]))return W?h(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Ie}:{ln:we.ln,pos:Ie};H(we)}return we.line=de,W&&h(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Ie}}for(var J={ln:A.line,pos:A.ch};x>0;)D<0?J=Y(f,J.ln,J.pos,D):J=K(f,J.ln,J.pos,D),x--;return new Oe(J.ln,J.pos)}function nr(f,A,x,D){function W(J,ie){if(ie.pos+ie.dir<0||ie.pos+ie.dir>=ie.line.length){if(ie.ln+=ie.dir,!s(J,ie.ln)){ie.line=null,ie.ln=null,ie.pos=null;return}ie.line=J.getLine(ie.ln),ie.pos=ie.dir>0?0:ie.line.length-1}else ie.pos+=ie.dir}function H(J,ie,se,ye){var Ee=J.getLine(ie),ke=Ee==="",de={line:Ee,ln:ie,pos:se,dir:ye},we={ln:de.ln,pos:de.pos},Ie=de.line==="";for(W(J,de);de.line!==null;){if(we.ln=de.ln,we.pos=de.pos,de.line===""&&!Ie)return{ln:de.ln,pos:de.pos};if(ke&&de.line!==""&&!h(de.line[de.pos]))return{ln:de.ln,pos:de.pos};m(de.line[de.pos])&&!ke&&(de.pos===de.line.length-1||h(de.line[de.pos+1]))&&(ke=!0),W(J,de)}var Ee=J.getLine(we.ln);we.pos=0;for(var He=Ee.length-1;He>=0;--He)if(!h(Ee[He])){we.pos=He;break}return we}function K(J,ie,se,ye){var Ie=J.getLine(ie),ke={line:Ie,ln:ie,pos:se,dir:ye},de={ln:ke.ln,pos:null},we=ke.line==="";for(W(J,ke);ke.line!==null;){if(ke.line===""&&!we)return de.pos!==null?de:{ln:ke.ln,pos:ke.pos};if(!(!m(ke.line[ke.pos])||de.pos===null||ke.ln===de.ln&&ke.pos+1===de.pos))return de;ke.line!==""&&!h(ke.line[ke.pos])&&(we=!1,de={ln:ke.ln,pos:ke.pos}),W(J,ke)}var Ie=J.getLine(de.ln);de.pos=0;for(var Ee=0;Ee<Ie.length;++Ee)if(!h(Ie[Ee])){de.pos=Ee;break}return de}for(var Y={ln:A.line,pos:A.ch};x>0;)D<0?Y=K(f,Y.ln,Y.pos,D):Y=H(f,Y.ln,Y.pos,D),x--;return new Oe(Y.ln,Y.pos)}function $n(f,A,x,D){var W=A,H,K,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[x],J={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[x],ie=f.getLine(W.line).charAt(W.ch),se=ie===J?1:0;if(H=f.scanForBracket(new Oe(W.line,W.ch+se),-1,void 0,{bracketRegex:Y}),K=f.scanForBracket(new Oe(W.line,W.ch+se),1,void 0,{bracketRegex:Y}),!H||!K)return null;if(H=H.pos,K=K.pos,H.line==K.line&&H.ch>K.ch||H.line>K.line){var ye=H;H=K,K=ye}return D?K.ch+=1:H.ch+=1,{start:H,end:K}}function ei(f,A,x,D){var W=je(A),H=f.getLine(W.line),K=H.split(""),Y,J,ie,se,ye=K.indexOf(x);if(W.ch<ye)W.ch=ye;else if(ye<W.ch&&K[W.ch]==x){var ke=/string/.test(f.getTokenTypeAt(me(A,0,1))),de=/string/.test(f.getTokenTypeAt(A)),we=ke&&!de;we||(J=W.ch,--W.ch)}if(K[W.ch]==x&&!J)Y=W.ch+1;else for(ie=W.ch;ie>-1&&!Y;ie--)K[ie]==x&&(Y=ie+1);if(Y&&!J)for(ie=Y,se=K.length;ie<se&&!J;ie++)K[ie]==x&&(J=ie);return!Y||!J?{start:W,end:W}:(D&&(--Y,++J),{start:new Oe(W.line,Y),end:new Oe(W.line,J)})}function ir(){}function gn(f){var A=f.state.vim;return A.searchState_||(A.searchState_=new ir)}function ti(f){return rr(f,"/")}function mr(f){return wo(f,"/")}function rr(f,A){var x=wo(f,A)||[];if(!x.length)return[];var D=[];if(x[0]===0){for(var W=0;W<x.length;W++)typeof x[W]=="number"&&D.push(f.substring(x[W]+1,x[W+1]));return D}}function wo(f,A){A||(A="/");for(var x=!1,D=[],W=0;W<f.length;W++){var H=f.charAt(W);!x&&H==A&&D.push(W),x=!x&&H=="\\"}return D}function qo(f){for(var A="|(){",x="}",D=!1,W=[],H=-1;H<f.length;H++){var K=f.charAt(H)||"",Y=f.charAt(H+1)||"",J=Y&&A.indexOf(Y)!=-1;D?((K!=="\\"||!J)&&W.push(K),D=!1):K==="\\"?(D=!0,Y&&x.indexOf(Y)!=-1&&(J=!0),(!J||Y==="\\")&&W.push(K)):(W.push(K),J&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Ss(f){for(var A=!1,x=[],D=-1;D<f.length;D++){var W=f.charAt(D)||"",H=f.charAt(D+1)||"";Ki[W+H]?(x.push(Ki[W+H]),D++):A?(x.push(W),A=!1):W==="\\"?(A=!0,n(H)||H==="$"?x.push("$"):H!=="/"&&H!=="\\"&&x.push("\\")):(W==="$"&&x.push("$"),x.push(W),H==="/"&&x.push("\\"))}return x.join("")}function _s(f){for(var A=new Fe.StringStream(f),x=[];!A.eol();){for(;A.peek()&&A.peek()!="\\";)x.push(A.next());var D=!1;for(var W in Un)if(A.match(W,!0)){D=!0,x.push(Un[W]);break}D||x.push(A.next())}return x.join("")}function or(f,A,x){var D=Be.registerController.getRegister("/");if(D.setText(f),f instanceof RegExp)return f;var W=mr(f),H,K;if(!W.length)H=f;else{H=f.substring(0,W[0]);var Y=f.substring(W[0]);K=Y.indexOf("i")!=-1}if(!H)return null;_("pcre")||(H=qo(H)),x&&(A=/^[^A-Z]*$/.test(H));var J=new RegExp(H,A||K?"im":"m");return J}function $i(f){typeof f=="string"&&(f=document.createElement(f));for(var A,x=1;x<arguments.length;x++)if(A=arguments[x])if(typeof A!="object"&&(A=document.createTextNode(A)),A.nodeType)f.appendChild(A);else for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(D[0]==="$"?f.style[D.slice(1)]=A[D]:f.setAttribute(D,A[D]));return f}function Nt(f,A){var x=$i("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},A);f.openNotification?f.openNotification(x,{bottom:!0,duration:5e3}):alert(x.innerText)}function Yo(f,A){return $i("div",{$display:"flex"},$i("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},f,$i("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),A&&$i("span",{$color:"#888"},A))}function ni(f,A){if(ci.length){A.value||(A.value=""),cn=A;return}var x=Yo(A.prefix,A.desc);if(f.openDialog)f.openDialog(x,A.onClose,{onKeyDown:A.onKeyDown,onKeyUp:A.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:A.value});else{var D="";typeof A.prefix!="string"&&A.prefix&&(D+=A.prefix.textContent),A.desc&&(D+=" "+A.desc),A.onClose(prompt(D,""))}}function Mn(f,A){if(f instanceof RegExp&&A instanceof RegExp){for(var x=["global","multiline","ignoreCase","source"],D=0;D<x.length;D++){var W=x[D];if(f[W]!==A[W])return!1}return!0}return!1}function an(f,A,x,D){if(A){var W=gn(f),H=or(A,!!x,!!D);if(H)return Bi(f,H),Mn(H,W.getQuery())||W.setQuery(H),H}}function bn(f){if(f.source.charAt(0)=="^")var A=!0;return{token:function(x){if(A&&!x.sol()){x.skipToEnd();return}var D=x.match(f,!1);if(D)return D[0].length==0?(x.next(),"searching"):!x.sol()&&(x.backUp(1),!f.exec(x.next()+D[0]))?(x.next(),null):(x.match(f),"searching");for(;!x.eol()&&(x.next(),!x.match(f,!1)););},query:f}}function Bi(f,A){clearTimeout(Vn);var x=gn(f);x.highlightTimeout=Vn,Vn=setTimeout(function(){if(f.state.vim){var D=gn(f);D.highlightTimeout=null;var W=D.getOverlay();(!W||A!=W.query)&&(W&&f.removeOverlay(W),W=bn(A),f.addOverlay(W),f.showMatchesOnScrollbar&&(D.getScrollbarAnnotate()&&D.getScrollbarAnnotate().clear(),D.setScrollbarAnnotate(f.showMatchesOnScrollbar(A))),D.setOverlay(W))}},50)}function ii(f,A,x,D){return D===void 0&&(D=1),f.operation(function(){for(var W=f.getCursor(),H=f.getSearchCursor(x,W),K=0;K<D;K++){var Y=H.find(A);if(K==0&&Y&&at(H.from(),W)){var J=A?H.from():H.to();Y=H.find(A),Y&&!Y[0]&&at(H.from(),J)&&f.getLine(J.line).length==J.ch&&(Y=H.find(A))}if(!Y&&(H=f.getSearchCursor(x,A?new Oe(f.lastLine()):new Oe(f.firstLine(),0)),!H.find(A)))return}return H.from()})}function Hi(f,A,x,D,W){return D===void 0&&(D=1),f.operation(function(){var H=f.getCursor(),K=f.getSearchCursor(x,H),Y=K.find(!A);!W.visualMode&&Y&&at(K.from(),H)&&K.find(!A);for(var J=0;J<D;J++)if(Y=K.find(A),!Y&&(K=f.getSearchCursor(x,A?new Oe(f.lastLine()):new Oe(f.firstLine(),0)),!K.find(A)))return;return[K.from(),K.to()]})}function Zr(f){var A=gn(f);A.highlightTimeout&&(clearTimeout(A.highlightTimeout),A.highlightTimeout=null),f.removeOverlay(gn(f).getOverlay()),A.setOverlay(null),A.getScrollbarAnnotate()&&(A.getScrollbarAnnotate().clear(),A.setScrollbarAnnotate(null))}function bo(f,A,x){return typeof f!="number"&&(f=f.line),A instanceof Array?y(f,A):typeof x=="number"?f>=A&&f<=x:f==A}function vr(f){var A=f.ace.renderer;return{top:A.getFirstFullyVisibleRow(),bottom:A.getLastFullyVisibleRow()}}function vi(f,A,x){if(x=="'"||x=="`")return Be.jumpList.find(f,-1)||new Oe(0,0);if(x==".")return Lr(f);var D=A.marks[x];return D&&D.find()}function Lr(f){if(f.getLastEditEnd)return f.getLastEditEnd();for(var A=f.doc.history.done,x=A.length;x--;)if(A[x].changes)return je(A[x].changes[0].to)}function Jr(f,A,x,D,W,H,K,Y,J){function ie(){f.operation(function(){for(;!Ie;)se(),ke();de()})}function se(){var Xe=f.getRange(H.from(),H.to()),Qe=Xe.replace(K,Y),Xt=H.to().line;H.replace(Qe),He=H.to().line,W+=He-Xt,nt=He<Xt}function ye(){var Xe=Ee&&je(H.to()),Qe=H.findNext();return Qe&&!Qe[0]&&Xe&&at(H.from(),Xe)&&(Qe=H.findNext()),Qe}function ke(){for(;ye()&&bo(H.from(),D,W);)if(!(!x&&H.from().line==He&&!nt)){f.scrollIntoView(H.from(),30),f.setSelection(H.from(),H.to()),Ee=H.from(),Ie=!1;return}Ie=!0}function de(Xe){if(Xe&&Xe(),f.focus(),Ee){f.setCursor(Ee);var Qe=f.state.vim;Qe.exMode=!1,Qe.lastHPos=Qe.lastHSPos=Ee.ch}J&&J()}function we(Xe,Qe,Xt){Fe.e_stop(Xe);var rt=U(Xe);switch(rt){case"y":se(),ke();break;case"n":ke();break;case"a":var dn=J;J=void 0,f.operation(ie),J=dn;break;case"l":se();case"q":case"<Esc>":case"<C-c>":case"<C-[>":de(Xt)}return Ie&&de(Xt),!0}f.state.vim.exMode=!0;var Ie=!1,Ee,He,nt;if(ke(),Ie){Nt(f,"No matches for "+K.source);return}if(!A){ie(),J&&J();return}ni(f,{prefix:$i("span","replace with ",$i("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function yi(f,A){var x=f.state.vim,D=Be.macroModeState,W=Be.registerController.getRegister("."),H=D.isPlaying,K=D.lastInsertModeChanges;H||(f.off("change",Er),x.insertEnd&&x.insertEnd.clear(),x.insertEnd=null,Fe.off(f.getInputField(),"keydown",So)),!H&&x.insertModeRepeat>1&&(Qo(f,x,x.insertModeRepeat-1,!0),x.lastEditInputState.repeatOverride=x.insertModeRepeat),delete x.insertModeRepeat,x.insertMode=!1,A||f.setCursor(f.getCursor().line,f.getCursor().ch-1),f.setOption("keyMap","vim"),f.setOption("disableInput",!0),f.toggleOverwrite(!1),W.setText(K.changes.join("")),Fe.signal(f,"vim-mode-change",{mode:"normal"}),D.isRecording&&Fn(D)}function Xr(f){mn.unshift(f)}function xo(f,A,x,D,W){var H={keys:f,type:A};H[A]=x,H[A+"Args"]=D;for(var K in W)H[K]=W[K];Xr(H)}function ko(f,A,x,D){var W=Be.registerController.getRegister(D);if(D==":"){W.keyBuffer[0]&&Jn.processCommand(f,W.keyBuffer[0]),x.isPlaying=!1;return}var H=W.keyBuffer,K=0;x.isPlaying=!0,x.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var J=H[Y],ie,se;J;)if(ie=/<\w+-.+?>|<\w+>|./.exec(J),se=ie[0],J=J.substring(ie.index+se.length),mt.handleKey(f,se,"macro"),A.insertMode){var ye=W.insertModeChanges[K++].changes;Be.macroModeState.lastInsertModeChanges.changes=ye,ro(f,ye,1),yi(f)}x.isPlaying=!1}function eo(f,A){if(!f.isPlaying){var x=f.latestRegister,D=Be.registerController.getRegister(x);D&&D.pushText(A)}}function Fn(f){if(!f.isPlaying){var A=f.latestRegister,x=Be.registerController.getRegister(A);x&&x.pushInsertModeChanges&&x.pushInsertModeChanges(f.lastInsertModeChanges)}}function Co(f,A){if(!f.isPlaying){var x=f.latestRegister,D=Be.registerController.getRegister(x);D&&D.pushSearchQuery&&D.pushSearchQuery(A)}}function Er(f,A){var x=Be.macroModeState,D=x.lastInsertModeChanges;if(!x.isPlaying)for(var W=f.state.vim;A;){if(D.expectCursorActivityForChange=!0,D.ignoreCount>1)D.ignoreCount--;else if(A.origin=="+input"||A.origin=="paste"||A.origin===void 0){var H=f.listSelections().length;H>1&&(D.ignoreCount=H);var K=A.text.join(`
|
|
1406
|
-
`);if(D.maybeReset&&(D.changes=[],D.maybeReset=!1),K)if(f.state.overwrite&&!/\n/.test(K))D.changes.push([K]);else{if(K.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),J=f.getCursor();if(Y&&Y.line==J.line){var ie=Y.ch-J.ch;ie>0&&ie<K.length&&(D.changes.push([K,ie]),K="")}}K&&D.changes.push(K)}}A=A.next}}function to(f){var A=f.state.vim;if(A.insertMode){var x=Be.macroModeState;if(x.isPlaying)return;var D=x.lastInsertModeChanges;D.expectCursorActivityForChange?D.expectCursorActivityForChange=!1:(D.maybeReset=!0,A.insertEnd&&A.insertEnd.clear(),A.insertEnd=f.setBookmark(f.getCursor(),{insertLeft:!0}))}else f.curOp.isVimOp||no(f,A)}function no(f,A,x){var D=f.getCursor("anchor"),W=f.getCursor("head");if(A.visualMode&&!f.somethingSelected()?bt(f,!1):!A.visualMode&&!A.insertMode&&f.somethingSelected()&&(A.visualMode=!0,A.visualLine=!1,Fe.signal(f,"vim-mode-change",{mode:"visual"})),A.visualMode){var H=et(W,D)?0:-1,K=et(W,D)?-1:0;W=me(W,0,H),D=me(D,0,K),A.sel={anchor:D,head:W},Ai(f,A,"<",lt(W,D)),Ai(f,A,">",jt(W,D))}else!A.insertMode&&!x&&(A.lastHPos=f.getCursor().ch)}function yr(f,A){this.keyName=f,this.key=A.key,this.ctrlKey=A.ctrlKey,this.altKey=A.altKey,this.metaKey=A.metaKey,this.shiftKey=A.shiftKey}function So(f){var A=Be.macroModeState,x=A.lastInsertModeChanges,D=Fe.keyName?Fe.keyName(f):f.key;D&&(D.indexOf("Delete")!=-1||D.indexOf("Backspace")!=-1)&&(x.maybeReset&&(x.changes=[],x.maybeReset=!1),x.changes.push(new yr(D,f)))}function Qo(f,A,x,D){function W(){Y?kn.processAction(f,A,A.lastEditActionCommand):kn.evalInput(f,A)}function H(se){if(K.lastInsertModeChanges.changes.length>0){se=A.lastEditActionCommand?se:1;var ye=K.lastInsertModeChanges;ro(f,ye.changes,se)}}var K=Be.macroModeState;K.isPlaying=!0;var Y=!!A.lastEditActionCommand,J=A.inputState;if(A.inputState=A.lastEditInputState,Y&&A.lastEditActionCommand.interlaceInsertRepeat)for(var ie=0;ie<x;ie++)W(),H(1);else D||W(),H(x);A.inputState=J,A.insertMode&&!D&&yi(f),K.isPlaying=!1}function io(f,A){Fe.lookupKey(A,"vim-insert",function(x){return typeof x=="string"?Fe.commands[x](f):x(f),!0})}function ro(f,A,x){var D=f.getCursor("head"),W=Be.macroModeState.lastInsertModeChanges.visualBlock;W&&(In(f,D,W+1),x=f.listSelections().length,f.setCursor(D));for(var H=0;H<x;H++){W&&f.setCursor(me(D,H,0));for(var K=0;K<A.length;K++){var Y=A[K];if(Y instanceof yr)io(f,Y.keyName);else if(typeof Y=="string")f.replaceSelection(Y);else{var J=f.getCursor(),ie=me(J,0,Y[0].length-(Y[1]||0));f.replaceRange(Y[0],J,Y[1]?J:ie),f.setCursor(ie)}}}W&&f.setCursor(me(D,0,1))}function _o(f,A,x,D){A.length>1&&A[0]=="n"&&(A=A.replace("numpad","")),A=ri[A]||A;var W="";if(x.ctrlKey&&(W+="C-"),x.altKey&&(W+="A-"),(W||A.length>1)&&x.shiftKey&&(W+="S-"),D&&!D.expectLiteralNext&&A.length==1){if(Tn.keymap&&A in Tn.keymap)(Tn.remapCtrl!==!1||!W)&&(A=Tn.keymap[A]);else if(A.charCodeAt(0)>255){var H=x.code&&x.code.slice(-1)||"";x.shiftKey||(H=H.toLowerCase()),H&&(A=H)}}return W+=A,W.length>1&&(W="<"+W+">"),W}function oo(f){var A=new f.constructor;return Object.keys(f).forEach(function(x){if(x!="insertEnd"){var D=f[x];Array.isArray(D)?D=D.slice():D&&typeof D=="object"&&D.constructor!=Object&&(D=oo(D)),A[x]=D}}),f.sel&&(A.sel={head:f.sel.head&&je(f.sel.head),anchor:f.sel.anchor&&je(f.sel.anchor)}),A}function Rr(f,A,x){var D=!1,W=mt.maybeInitVimState_(f),H=W.visualBlock||W.wasInVisualBlock,K=f.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!K?W.wasInVisualBlock=!1:K&&W.visualBlock&&(W.wasInVisualBlock=!0),A=="<Esc>"&&!W.insertMode&&!W.visualMode&&K)f.ace.exitMultiSelectMode();else if(H||!K||f.ace.inVirtualSelectionMode)D=mt.handleKey(f,A,x);else{var Y=oo(W),J=W.inputState.changeQueueList||[];f.operation(function(){f.curOp.isVimOp=!0;var ie=0;f.ace.forEachSelection(function(){var se=f.ace.selection;f.state.vim.lastHPos=se.$desiredColumn==null?se.lead.column:se.$desiredColumn,f.state.vim.inputState.changeQueue=J[ie];var ye=f.getCursor("head"),ke=f.getCursor("anchor"),de=et(ye,ke)?0:-1,we=et(ye,ke)?-1:0;ye=me(ye,0,de),ke=me(ke,0,we),f.state.vim.sel.head=ye,f.state.vim.sel.anchor=ke,D=Ei(f,A,x),se.$desiredColumn=f.state.vim.lastHPos==-1?null:f.state.vim.lastHPos,f.ace.inVirtualSelectionMode&&(J[ie]=f.state.vim.inputState.changeQueue),f.virtualSelectionMode()&&(f.state.vim=oo(Y)),ie++}),f.curOp.cursorActivity&&!D&&(f.curOp.cursorActivity=!1),W.status=f.state.vim.status,f.state.vim=W,W.inputState.changeQueueList=J,W.inputState.changeQueue=null},!0)}return D&&!W.visualMode&&!W.insert&&W.visualMode!=f.somethingSelected()&&no(f,W,!0),D}function zi(f,A){A.off("beforeEndOperation",zi);var x=A.state.cm.vimCmd;x&&A.execCommand(x.exec?x:x.name,x.args),A.curOp=A.prevOp}var Pn=e("../range").Range,wr=e("../lib/event_emitter").EventEmitter,sr=e("../lib/dom"),Zo=e("../lib/oop"),As=e("../lib/keys"),Ir=e("../lib/event"),ar=e("../search").Search,Or=e("../lib/useragent"),so=e("../search_highlight").SearchHighlight,Nr=e("../commands/multi_select_commands"),Jo=e("../mode/text").Mode.prototype.tokenRe,br=e("../ext/hardwrap").hardWrap;e("../multi_select");var Fe=function(f){this.ace=f,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};Fe.Pos=function(f,A){if(!(this instanceof Oe))return new Oe(f,A);this.line=f,this.ch=A},Fe.defineOption=function(f,A,x){},Fe.commands={redo:function(f){f.ace.redo()},undo:function(f){f.ace.undo()},newlineAndIndent:function(f){f.ace.insert(`
|
|
1407
|
-
`)},goLineLeft:function(f){f.ace.selection.moveCursorLineStart()},goLineRight:function(f){f.ace.selection.moveCursorLineEnd()}},Fe.keyMap={},Fe.addClass=Fe.rmClass=function(){},Fe.e_stop=Fe.e_preventDefault=Ir.stopEvent,Fe.keyName=function(f){var A=As[f.keyCode]||f.key||"";return A.length==1&&(A=A.toUpperCase()),A=Ir.getModifierString(f).replace(/(^|-)\w/g,function(x){return x.toUpperCase()})+A,A},Fe.keyMap.default=function(f){return function(A){var x=A.ace.commands.commandKeyBinding[f.toLowerCase()];return x&&A.ace.execCommand(x)!==!1}},Fe.lookupKey=function f(A,x,D){x||(x="default"),typeof x=="string"&&(x=Fe.keyMap[x]||Fe.keyMap.default);var W=typeof x=="function"?x(A):x[A];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&D(W))return"handled";if(x.fallthrough){if(!Array.isArray(x.fallthrough))return f(A,x.fallthrough,D);for(var H=0;H<x.fallthrough.length;H++){var K=f(A,x.fallthrough[H],D);if(K)return K}}},Fe.findMatchingTag=function(f,A){return f.findMatchingTag(A)},Fe.findEnclosingTag=function(f,A){},Fe.signal=function(f,A,x){return f._signal(A,x)},Fe.on=Ir.addListener,Fe.off=Ir.removeListener,Fe.isWordChar=function(f){return f<""?/^\w$/.test(f):(Jo.lastIndex=0,Jo.test(f))},(function(){Zo.implement(Fe.prototype,wr),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(x){this.$lineHandleChanges&&this.$lineHandleChanges.push(x);var D={text:x.action[0]=="i"?x.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=D:W.lastChange=W.change=D,this.$updateMarkers(x)},this.onSelectionChange=function(){var x=this.curOp=this.curOp||{};x.cursorActivityHandlers||(x.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Nr.keyboardHandler)},this.operation=function(x,D){if(!D&&this.curOp||D&&this.curOp&&this.curOp.force)return x();if((D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=D;var K=x();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(D||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),K},this.onBeforeEndOperation=function(){var x=this.curOp;x&&(x.change&&this.signal("change",x.change,x),x&&x.cursorActivity&&this.signal("cursorActivity",null,x),this.curOp=null)},this.signal=function(x,D,W){var H=W?W[x+"Handlers"]:(this._eventRegistry||{})[x];if(H){H=H.slice();for(var K=0;K<H.length;K++)H[K](this,D)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(x,D){typeof x=="object"&&(D=x.ch,x=x.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:x,column:D}),this.ace.selection.moveTo(x,D),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(x){var D=this.ace.selection,W=x=="anchor"?D.isEmpty()?D.lead:D.anchor:x=="head"||!x?D.lead:D.getRange()[x];return w(W)},this.listSelections=function(x){var D=this.ace.multiSelect.rangeList.ranges;return!D.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:D.map(function(W){return{anchor:this.clipPos(w(W.cursor==W.end?W.start:W.end)),head:this.clipPos(w(W.cursor))}},this)},this.setSelections=function(x,D){var W=this.ace.multiSelect,H=x.map(function(ie){var se=b(ie.anchor),ye=b(ie.head),ke=Pn.comparePoints(se,ye)<0?new Pn.fromPoints(se,ye):new Pn.fromPoints(ye,se);return ke.cursor=Pn.comparePoints(ke.start,ye)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(H[0]);return}D?H[D]&&H.push(H.splice(D,1)[0]):H=H.reverse(),W.toSingleRange(H[0].clone());for(var K=this.ace.session,Y=0;Y<H.length;Y++){var J=K.$clipRangeToDocument(H[Y]);W.addRange(J)}},this.setSelection=function(x,D,W){var H=this.ace.selection;H.moveTo(x.line,x.ch),H.selectTo(D.line,D.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(x){return!this.ace.selection.isEmpty()},this.clipPos=function(x){var D=this.ace.session.$clipPositionToDocument(x.line,x.ch);return w(D)},this.foldCode=function(x){this.ace.session.$toggleFoldWidget(x.line,{})},this.markText=function(x){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(x){var D=x.action=="insert",W=x.start,H=x.end,K=(H.row-W.row)*(D?1:-1),Y=(H.column-W.column)*(D?1:-1);D&&(H=W);for(var J in this.marks){var ie=this.marks[J],se=Pn.comparePoints(ie,W);if(!(se<0)){if(se===0&&D)if(!ie.$insertRight)se=1;else{if(ie.bias!=1){ie.bias=-1;continue}se=1}var ye=D?se:Pn.comparePoints(ie,H);if(ye>0){ie.row+=K,ie.column+=ie.row==H.row?Y:0;continue}!D&&ye<=0&&(ie.row=W.row,ie.column=W.column,ye===0&&(ie.bias=1))}}};var f=function(x,D,W,H){this.cm=x,this.id=D,this.row=W,this.column=H,x.marks[this.id]=this};f.prototype.clear=function(){delete this.cm.marks[this.id]},f.prototype.find=function(){return w(this)},this.setBookmark=function(x,D){var W=new f(this,this.$uid++,x.line,x.ch);return(!D||!D.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(x,D){if(D=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,x)}},this.findPosV=function(x,D,W,H){if(W=="page"){var K=this.ace.renderer,Y=K.layerConfig;D*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var J=this.ace.session.documentToScreenPosition(x.line,x.ch);H!=null&&(J.column=H),J.row+=D,J.row=Math.min(Math.max(0,J.row),this.ace.session.getScreenLength()-1);var ie=this.ace.session.screenToDocumentPosition(J.row,J.column);return w(ie)}debugger},this.charCoords=function(x,D){if(D=="div"||!D){var W=this.ace.session.documentToScreenPosition(x.line,x.ch);return{left:W.column,top:W.row}}if(D=="local"){var H=this.ace.renderer,W=this.ace.session.documentToScreenPosition(x.line,x.ch),K=H.layerConfig.lineHeight,Y=H.layerConfig.characterWidth,J=K*W.row;return{left:W.column*Y,top:J,bottom:J+K}}},this.coordsChar=function(x,D){var W=this.ace.renderer;if(D=="local"){var H=Math.max(0,Math.floor(x.top/W.lineHeight)),K=Math.max(0,Math.floor(x.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(H,K);return w(Y)}if(D=="div")throw"not implemented"},this.getSearchCursor=function(x,D,W){var H=!1,K=!1;x instanceof RegExp&&!x.global&&(H=!x.ignoreCase,x=x.source,K=!0),x=="\\n"&&(x=`
|
|
1408
|
-
`,K=!1);var Y=new ar;D.ch==null&&(D.ch=Number.MAX_VALUE);var J={row:D.line,column:D.ch},ie=this,se=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(ye){Y.setOptions({needle:x,caseSensitive:H,wrap:!1,backwards:ye,regExp:K,start:se||J});var ke=Y.find(ie.ace.session);return se=ke,se&&[!se.isEmpty()]},from:function(){return se&&w(se.start)},to:function(){return se&&w(se.end)},replace:function(ye){se&&(se.end=ie.ace.session.doc.replace(se,ye))}}},this.scrollTo=function(x,D){var W=this.ace.renderer,H=W.layerConfig,K=H.maxHeight;K-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,D!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(D,K))),x!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(x,H.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(x,D){if(x){var W=this.ace.renderer,H={top:0,bottom:D};W.scrollCursorIntoView(b(x),W.lineHeight*2/W.$size.scrollerHeight,H)}},this.getLine=function(x){return this.ace.session.getLine(x)},this.getRange=function(x,D){return this.ace.session.getTextRange(new Pn(x.line,x.ch,D.line,D.ch))},this.replaceRange=function(x,D,W){W||(W=D);var H=new Pn(D.line,D.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(H),this.ace.session.replace(H,x)},this.replaceSelection=this.replaceSelections=function(x){var D=Array.isArray(x)&&x,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),D?x[0]||"":x);return}W.inVirtualSelectionMode=!0;var H=W.rangeList.ranges;H.length||(H=[this.ace.multiSelect.getRange()]);for(var K=H.length;K--;)this.ace.session.replace(H[K],D?x[K]||"":x);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(x){return this.getRange(x.anchor,x.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var A={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(x,D){switch(this.state[x]=D,x){case"indentWithTabs":x=A[x],D=!D;break;case"keyMap":this.state.$keyMap=D;return;default:x=A[x]}x&&this.ace.setOption(x,D)},this.getOption=function(x){var D,W=A[x];switch(W&&(D=this.ace.getOption(W)),x){case"indentWithTabs":return x=A[x],!D;case"keyMap":return this.state.$keyMap||"vim"}return W?D:this.state[x]},this.toggleOverwrite=function(x){return this.state.overwrite=x,this.ace.setOverwrite(x)},this.addOverlay=function(x){if(!this.$searchHighlight||!this.$searchHighlight.session){var D=new so(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(D);D.id=W.id,D.session=this.ace.session,D.destroy=function(K){D.session.off("change",D.updateOnChange),D.session.off("changeEditor",D.destroy),D.session.removeMarker(D.id),D.session=null},D.updateOnChange=function(K){var Y=K.start.row;Y==K.end.row?D.cache[Y]=void 0:D.cache.splice(Y,D.cache.length)},D.session.on("changeEditor",D.destroy),D.session.on("change",D.updateOnChange)}var H=new RegExp(x.query.source,"gmi");this.$searchHighlight=x.highlight=D,this.$searchHighlight.setRegexp(H),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(x){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var x=this.ace.renderer,D=x.layerConfig;return{left:x.scrollLeft,top:x.scrollTop,height:D.maxHeight,width:D.width,clientHeight:D.height,clientWidth:D.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(x){return this.ace.setValue(x,-1)},this.getTokenTypeAt=function(x){var D=this.ace.session.getTokenAt(x.line,x.ch);return D&&/comment|string/.test(D.type)?"string":""},this.findMatchingBracket=function(x){var D=this.ace.session.findMatchingBracket(b(x));return{to:D&&w(D)}},this.findMatchingTag=function(x){var D=this.ace.session.getMatchingTags(b(x));if(D)return{open:{from:w(D.openTag.start),to:w(D.openTag.end)},close:{from:w(D.closeTag.start),to:w(D.closeTag.end)}}},this.indentLine=function(x,D){D===!0?this.ace.session.indentRows(x,x," "):D===!1&&this.ace.session.outdentRows(new Pn(x,0,x,0))},this.indexFromPos=function(x){return this.ace.session.doc.positionToIndex(b(x))},this.posFromIndex=function(x){return w(this.ace.session.doc.indexToPosition(x))},this.focus=function(x){return this.ace.textInput.focus()},this.blur=function(x){return this.ace.blur()},this.defaultTextHeight=function(x){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(x,D,W,H){var K=H.bracketRegex.source,Y=/paren|text|operator|tag/;if(D==1)var J=this.ace.session.$findClosingBracket(K.slice(1,2),b(x),Y);else{var J=this.ace.session.$findOpeningBracket(K.slice(-2,-1),{row:x.line,column:x.ch+1},Y);!J&&H.bracketRegex&&H.bracketRegex.test(this.getLine(x.line)[x.ch-1])&&(J={row:x.line,column:x.ch-1})}return J&&{pos:w(J)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(x){if(Fe.commands.hasOwnProperty(x))return Fe.commands[x](this);if(x=="indentAuto")return this.ace.execCommand("autoindent");console.log(x+" is not implemented")},this.getLineNumber=function(x){var D=this.$lineHandleChanges;if(!D)return null;for(var W=x.row,H=0;H<D.length;H++){var K=D[H];if(K.start.row!=K.end.row){if(K.action[0]=="i")K.start.row<W&&(W+=K.end.row-K.start.row);else if(K.start.row<W){if(W<K.end.row||W==K.end.row&&K.start.column>0)return null;W-=K.end.row-K.start.row}}}return W},this.getLineHandle=function(x){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(x),row:x}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var x=this.ace.session.$undoManager;if(x&&x.$lastDelta)return w(x.$lastDelta.end)}}).call(Fe.prototype);var Xo=Fe.StringStream=function(f,A){this.pos=this.start=0,this.string=f,this.tabSize=A||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Xo.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(f){var A=this.string.charAt(this.pos);if(typeof f=="string")var x=A==f;else var x=A&&(f.test?f.test(A):f(A));if(x)return++this.pos,A},eatWhile:function(f){for(var A=this.pos;this.eat(f););return this.pos>A},eatSpace:function(){for(var f=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>f},skipToEnd:function(){this.pos=this.string.length},skipTo:function(f){var A=this.string.indexOf(f,this.pos);if(A>-1)return this.pos=A,!0},backUp:function(f){this.pos-=f},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(f,A,x){if(typeof f!="string"){var D=this.string.slice(this.pos).match(f);return D&&D.index>0?null:(D&&A!==!1&&(this.pos+=D[0].length),D)}var W=function(K){return x?K.toLowerCase():K},H=this.string.substr(this.pos,f.length);if(W(H)==W(f))return A!==!1&&(this.pos+=f.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(f,A){this.lineStart+=f;try{return A()}finally{this.lineStart-=f}}},Fe.defineExtension=function(f,A){Fe.prototype[f]=A},sr.importCssString(`.normal-mode .ace_cursor{
|
|
1409
|
-
border: none;
|
|
1410
|
-
background-color: rgba(255,0,0,0.5);
|
|
1411
|
-
}
|
|
1412
|
-
.normal-mode .ace_hidden-cursors .ace_cursor{
|
|
1413
|
-
background-color: transparent;
|
|
1414
|
-
border: 1px solid red;
|
|
1415
|
-
opacity: 0.7
|
|
1416
|
-
}
|
|
1417
|
-
.ace_dialog {
|
|
1418
|
-
position: absolute;
|
|
1419
|
-
left: 0; right: 0;
|
|
1420
|
-
background: inherit;
|
|
1421
|
-
z-index: 15;
|
|
1422
|
-
padding: .1em .8em;
|
|
1423
|
-
overflow: hidden;
|
|
1424
|
-
color: inherit;
|
|
1425
|
-
}
|
|
1426
|
-
.ace_dialog-top {
|
|
1427
|
-
border-bottom: 1px solid #444;
|
|
1428
|
-
top: 0;
|
|
1429
|
-
}
|
|
1430
|
-
.ace_dialog-bottom {
|
|
1431
|
-
border-top: 1px solid #444;
|
|
1432
|
-
bottom: 0;
|
|
1433
|
-
}
|
|
1434
|
-
.ace_dialog input {
|
|
1435
|
-
border: none;
|
|
1436
|
-
outline: none;
|
|
1437
|
-
background: transparent;
|
|
1438
|
-
width: 20em;
|
|
1439
|
-
color: inherit;
|
|
1440
|
-
font-family: monospace;
|
|
1441
|
-
}`,"vimMode",!1),function(){function f(x,D,W){var H=x.ace.container,K;return K=H.appendChild(document.createElement("div")),W?K.className="ace_dialog ace_dialog-bottom":K.className="ace_dialog ace_dialog-top",typeof D=="string"?K.innerHTML=D:K.appendChild(D),K}function A(x,D){x.state.currentNotificationClose&&x.state.currentNotificationClose(),x.state.currentNotificationClose=D}Fe.defineExtension("openDialog",function(x,D,W){function H(ye){if(typeof ye=="string")ie.value=ye;else{if(Y||ye&&ye.type=="blur"&&document.activeElement===ie)return;J.state.dialog==K&&(J.state.dialog=null,J.focus()),Y=!0,K.remove(),W.onClose&&W.onClose(K);var ke=J;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),A(this,null);var K=f(this,x,W.bottom),Y=!1,J=this;this.state.dialog=K;var ie=K.getElementsByTagName("input")[0],se;return ie?(W.value&&(ie.value=W.value,W.selectValueOnOpen!==!1&&ie.select()),W.onInput&&Fe.on(ie,"input",function(ye){W.onInput(ye,ie.value,H)}),W.onKeyUp&&Fe.on(ie,"keyup",function(ye){W.onKeyUp(ye,ie.value,H)}),Fe.on(ie,"keydown",function(ye){W&&W.onKeyDown&&W.onKeyDown(ye,ie.value,H)||(ye.keyCode==13&&D(ie.value),(ye.keyCode==27||W.closeOnEnter!==!1&&ye.keyCode==13)&&(Fe.e_stop(ye),H()))}),W.closeOnBlur!==!1&&Fe.on(ie,"blur",H),ie.focus()):(se=K.getElementsByTagName("button")[0])&&(Fe.on(se,"click",function(){H(),J.focus()}),W.closeOnBlur!==!1&&Fe.on(se,"blur",H),se.focus()),H}}),Fe.defineExtension("openNotification",function(x,D){function W(){K||(K=!0,clearTimeout(Y),H.remove())}if(!this.virtualSelectionMode()){A(this,W);var H=f(this,x,D&&D.bottom),K=!1,Y,J=D&&typeof D.duration<"u"?D.duration:5e3;return Fe.on(H,"click",function(ie){Fe.e_preventDefault(ie),W()}),J&&(Y=setTimeout(W,J)),W}})}();var Oe=Fe.Pos,mn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Dr=mn.length,Mi=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],Tn=O(""),es=/[\d]/,Fr=[Fe.isWordChar,function(f){return f&&!Fe.isWordChar(f)&&!/\s/.test(f)}],Ui=[function(f){return/\S/.test(f)}],xr=["<",">"],Kt=["-",'"',".",":","_","/","+"],Ut=/^\w$/,Gt;try{Gt=new RegExp("^[\\p{Lu}]$","u")}catch{Gt=/^[A-Z]$/}var Dt={};E("filetype",void 0,"string",["ft"],function(f,A){if(A!==void 0){if(f===void 0){var x=A.getOption("mode");return x=="null"?"":x}var x=f==""?"null":f;A.setOption("mode",x)}}),E("textwidth",80,"number",["tw"],function(f,A){if(A!==void 0){if(f===void 0){var x=A.getOption("textwidth");return x}var D=Math.round(f);D>1&&A.setOption("textwidth",D)}});var Vi=function(){function f(J,ie,se){function ye(Ie){var Ee=++W%D,He=Y[Ee];He&&He.clear(),Y[Ee]=J.setBookmark(Ie)}var ke=W%D,de=Y[ke];if(de){var we=de.find();we&&!at(we,ie)&&ye(ie)}else ye(ie);ye(se),H=W,K=W-D+1,K<0&&(K=0)}function A(J,ie){W+=ie,W>H?W=H:W<K&&(W=K);var se=Y[(D+W)%D];if(se&&!se.find()){var ye=ie>0?1:-1,ke,de=J.getCursor();do if(W+=ye,se=Y[(D+W)%D],se&&(ke=se.find())&&!at(de,ke))break;while(W<H&&W>K)}return se}function x(J,ie){var se=W,ye=A(J,ie);return W=se,ye&&ye.find()}var D=100,W=-1,H=0,K=0,Y=new Array(D);return{cachedCursor:void 0,add:f,find:x,move:A}},xn=function(f){return f?{changes:f.changes,expectCursorActivityForChange:f.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};v.prototype={exitMacroRecordMode:function(){var f=Be.macroModeState;f.onRecordingDone&&f.onRecordingDone(),f.onRecordingDone=void 0,f.isRecording=!1},enterMacroRecordMode:function(f,A){var x=Be.registerController.getRegister(A);if(x){if(x.clear(),this.latestRegister=A,f.openDialog){var D=$i("span",{class:"cm-vim-message"},"recording @"+A);this.onRecordingDone=f.openDialog(D,null,{bottom:!0})}this.isRecording=!0}}};var Be,ln,mt={enterVimMode:p,leaveVimMode:g,buildKeyMap:function(){},getRegisterController:function(){return Be.registerController},resetVimGlobalState_:I,getVimGlobalState_:function(){return Be},maybeInitVimState_:R,suppressErrorLogging:!1,InsertModeKey:yr,map:function(f,A,x){Jn.map(f,A,x)},unmap:function(f,A){return Jn.unmap(f,A)},noremap:function(f,A,x){Jn.map(f,A,x,!0)},mapclear:function(f){var A=mn.length,x=Dr,D=mn.slice(0,A-x);if(mn=mn.slice(A-x),f)for(var W=D.length-1;W>=0;W--){var H=D[W];if(f!==H.context)if(H.context)this._mapCommand(H);else{var K=["normal","insert","visual"];for(var Y in K)if(K[Y]!==f){var J={};for(var ie in H)J[ie]=H[ie];J.context=K[Y],this._mapCommand(J)}}}},langmap:P,vimKeyFromEvent:U,setOption:M,getOption:_,defineOption:E,defineEx:function(f,A,x){if(!A)A=f;else if(f.indexOf(A)!==0)throw new Error('(Vim.defineEx) "'+A+'" is not a prefix of "'+f+'", command not registered');Ao[f]=x,Jn.commandMap_[A]={name:f,shortName:A,type:"api"}},handleKey:function(f,A,x){var D=this.findKey(f,A,x);if(typeof D=="function")return D()},multiSelectHandleKey:Rr,findKey:function(f,A,x){function D(){var ie=Be.macroModeState;if(ie.isRecording){if(A=="q")return ie.exitMacroRecordMode(),k(f),!0;x!="mapping"&&eo(ie,A)}}function W(){if(A=="<Esc>"){if(Y.visualMode)bt(f);else{if(!Y.insertMode)return;yi(f)}return k(f),!0}}function H(){if(W())return!0;Y.inputState.keyBuffer.push(A);var ie=Y.inputState.keyBuffer.join(""),se=A.length==1,ye=kn.matchCommand(ie,mn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(ye.type=="none")return k(f),!1;if(ye.type=="partial"){if(ye.expectLiteralNext&&(Y.expectLiteralNext=!0),ln&&window.clearTimeout(ln),ln=se&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&k(f)},_("insertModeEscKeysTimeout")),se){var de=f.listSelections();(!ke||ke.removed.length!=de.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=A;for(var we=0;we<de.length;we++){var Ie=lt(de[we].anchor,de[we].head),Ee=jt(de[we].anchor,de[we].head),He=f.getRange(Ie,f.state.overwrite?me(Ee,0,1):Ee);ke.removed[we]=(ke.removed[we]||"")+He}}return!se}if(Y.expectLiteralNext=!1,ln&&window.clearTimeout(ln),ye.command&&ke){for(var de=f.listSelections(),we=0;we<de.length;we++){var nt=de[we].head;f.replaceRange(ke.removed[we]||"",me(nt,0,-ke.inserted.length),nt,"+input")}Be.macroModeState.lastInsertModeChanges.changes.pop()}return ye.command||k(f),ye.command}function K(){if(D()||W())return!0;Y.inputState.keyBuffer.push(A);var ie=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(ie))return!0;var se=/^(\d*)(.*)$/.exec(ie);if(!se)return k(f),!1;var ye=Y.visualMode?"visual":"normal",ke=se[2]||se[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var de=kn.matchCommand(ke,mn,Y.inputState,ye);return de.type=="none"?(k(f),!1):de.type=="partial"?(de.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):de.type=="clear"?(k(f),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,se=/^(\d*)(.*)$/.exec(ie),se[1]&&se[1]!="0"&&Y.inputState.pushRepeatDigit(se[1]),de.command)}var Y=R(f),J;return Y.insertMode?J=H():J=K(),J===!1?!Y.insertMode&&A.length===1?function(){return!0}:void 0:J===!0?function(){return!0}:function(){if(!((J.operator||J.isEdit)&&f.getOption("readOnly")))return f.operation(function(){f.curOp.isVimOp=!0;try{J.type=="keyToKey"?L(f,J.toKeys,J):kn.processCommand(f,Y,J)}catch(ie){throw f.state.vim=void 0,R(f),mt.suppressErrorLogging||console.log(ie),ie}return!0})}},handleEx:function(f,A){Jn.processCommand(f,A)},defineMotion:te,defineAction:ce,defineOperator:ne,mapCommand:xo,_mapCommand:Xr,defineRegister:V,exitVisualMode:bt,exitInsertMode:yi},ci=[],Jt=!1,cn,On={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},ui={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},ji={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(On)).forEach(function(f){ji[(On[f]||"").toLowerCase()]=ji[f.toLowerCase()]=f}),E("langmap",void 0,"string",["lmap"],function(f,A){if(f===void 0)return Tn.string;P(f)}),S.prototype.pushRepeatDigit=function(f){this.operator?this.motionRepeat=this.motionRepeat.concat(f):this.prefixRepeat=this.prefixRepeat.concat(f)},S.prototype.getRepeat=function(){var f=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(f=1,this.prefixRepeat.length>0&&(f*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(f*=parseInt(this.motionRepeat.join(""),10))),f},B.prototype={setText:function(f,A,x){this.keyBuffer=[f||""],this.linewise=!!A,this.blockwise=!!x},pushText:function(f,A){A&&(this.linewise||this.keyBuffer.push(`
|
|
1442
|
-
`),this.linewise=!0),this.keyBuffer.push(f)},pushInsertModeChanges:function(f){this.insertModeChanges.push(xn(f))},pushSearchQuery:function(f){this.searchQueries.push(f)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},G.prototype={pushText:function(f,A,x,D,W){if(f!=="_"){D&&x.charAt(x.length-1)!==`
|
|
1443
|
-
`&&(x+=`
|
|
1444
|
-
`);var H=this.isValidRegister(f)?this.getRegister(f):null;if(!H){switch(A){case"yank":this.registers[0]=new B(x,D,W);break;case"delete":case"change":x.indexOf(`
|
|
1445
|
-
`)==-1?this.registers["-"]=new B(x,D):(this.shiftNumericRegisters_(),this.registers[1]=new B(x,D))}this.unnamedRegister.setText(x,D,W);return}var K=a(f);K?H.pushText(x,D):H.setText(x,D,W),f==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(x),this.unnamedRegister.setText(H.toString(),D)}},getRegister:function(f){return this.isValidRegister(f)?(f=f.toLowerCase(),this.registers[f]||(this.registers[f]=new B),this.registers[f]):this.unnamedRegister},isValidRegister:function(f){return f&&(y(f,Kt)||Ut.test(f))},shiftNumericRegisters_:function(){for(var f=9;f>=2;f--)this.registers[f]=this.getRegister(""+(f-1))}},Q.prototype={nextMatch:function(f,A){var x=this.historyBuffer,D=A?-1:1;this.initialPrefix===null&&(this.initialPrefix=f);for(var W=this.iterator+D;A?W>=0:W<x.length;W+=D)for(var H=x[W],K=0;K<=H.length;K++)if(this.initialPrefix==H.substring(0,K))return this.iterator=W,H;if(W>=x.length)return this.iterator=x.length,this.initialPrefix;if(W<0)return f},pushInput:function(f){var A=this.historyBuffer.indexOf(f);A>-1&&this.historyBuffer.splice(A,1),f.length&&this.historyBuffer.push(f)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var kn={matchCommand:function(f,A,x,D){var W=Ae(f,A,D,x);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var H,K=0;K<W.full.length;K++){var Y=W.full[K];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var J=Te(f);if(!J||J.length>1)return{type:"clear"};x.selectedCharacter=J}return{type:"full",command:H}},processCommand:function(f,A,x){switch(A.inputState.repeatOverride=x.repeatOverride,x.type){case"motion":this.processMotion(f,A,x);break;case"operator":this.processOperator(f,A,x);break;case"operatorMotion":this.processOperatorMotion(f,A,x);break;case"action":this.processAction(f,A,x);break;case"search":this.processSearch(f,A,x);break;case"ex":case"keyToEx":this.processEx(f,A,x);break}},processMotion:function(f,A,x){A.inputState.motion=x.motion,A.inputState.motionArgs=le(x.motionArgs),this.evalInput(f,A)},processOperator:function(f,A,x){var D=A.inputState;if(D.operator){if(D.operator==x.operator){D.motion="expandToLine",D.motionArgs={linewise:!0},this.evalInput(f,A);return}k(f)}D.operator=x.operator,D.operatorArgs=le(x.operatorArgs),x.keys.length>1&&(D.operatorShortcut=x.keys),x.exitVisualBlock&&(A.visualBlock=!1,qe(f)),A.visualMode&&this.evalInput(f,A)},processOperatorMotion:function(f,A,x){var D=A.visualMode,W=le(x.operatorMotionArgs);W&&D&&W.visualLine&&(A.visualLine=!0),this.processOperator(f,A,x),D||this.processMotion(f,A,x)},processAction:function(f,A,x){var D=A.inputState,W=D.getRepeat(),H=!!W,K=le(x.actionArgs)||{};D.selectedCharacter&&(K.selectedCharacter=D.selectedCharacter),x.operator&&this.processOperator(f,A,x),x.motion&&this.processMotion(f,A,x),(x.motion||x.operator)&&this.evalInput(f,A),K.repeat=W||1,K.repeatIsExplicit=H,K.registerName=D.registerName,k(f),A.lastMotion=null,x.isEdit&&this.recordLastEdit(A,D,x),Cn[x.action](f,K,A)},processSearch:function(f,A,x){function D(Ee,He,nt){Be.searchHistoryController.pushInput(Ee),Be.searchHistoryController.reset();try{an(f,Ee,He,nt)}catch{Nt(f,"Invalid regex: "+Ee),k(f);return}kn.processMotion(f,A,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:x.searchArgs.toJumplist}})}function W(Ee){D(Ee,!0,!0);var He=Be.macroModeState;He.isRecording&&Co(He,Ee)}function H(Ee,He,nt){var Xe=U(Ee),Qe,Xt;Xe=="<Up>"||Xe=="<Down>"?(Qe=Xe=="<Up>",Xt=Ee.target?Ee.target.selectionEnd:0,He=Be.searchHistoryController.nextMatch(He,Qe)||"",nt(He),Xt&&Ee.target&&(Ee.target.selectionEnd=Ee.target.selectionStart=Math.min(Xt,Ee.target.value.length))):Xe&&Xe!="<Left>"&&Xe!="<Right>"&&Be.searchHistoryController.reset();var rt;try{rt=an(f,He,!0,!0)}catch{}rt?f.scrollIntoView(ii(f,!Y,rt),30):(Zr(f),f.scrollTo(ye.left,ye.top))}function K(Ee,He,nt){var Xe=U(Ee);Xe=="<Esc>"||Xe=="<C-c>"||Xe=="<C-[>"||Xe=="<BS>"&&He==""?(Be.searchHistoryController.pushInput(He),Be.searchHistoryController.reset(),an(f,se),Zr(f),f.scrollTo(ye.left,ye.top),Fe.e_stop(Ee),k(f),nt(),f.focus()):Xe=="<Up>"||Xe=="<Down>"?Fe.e_stop(Ee):Xe=="<C-u>"&&(Fe.e_stop(Ee),nt(""))}if(f.getSearchCursor){var Y=x.searchArgs.forward,J=x.searchArgs.wholeWordOnly;gn(f).setReversed(!Y);var ie=Y?"/":"?",se=gn(f).getQuery(),ye=f.getScrollInfo();switch(x.searchArgs.querySrc){case"prompt":var ke=Be.macroModeState;if(ke.isPlaying){var Ie=ke.replaySearchQueries.shift();D(Ie,!0,!1)}else ni(f,{onClose:W,prefix:ie,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:K});break;case"wordUnderCursor":var de=gt(f,{noSymbol:!0}),we=!0;if(de||(de=gt(f,{noSymbol:!1}),we=!1),!de){Nt(f,"No word under cursor"),k(f);return}var Ie=f.getLine(de.start.line).substring(de.start.ch,de.end.ch);we&&J?Ie="\\b"+Ie+"\\b":Ie=sn(Ie),Be.jumpList.cachedCursor=f.getCursor(),f.setCursor(de.start),D(Ie,!0,!1)}}},processEx:function(f,A,x){function D(H){Be.exCommandHistoryController.pushInput(H),Be.exCommandHistoryController.reset(),Jn.processCommand(f,H),f.state.vim&&k(f)}function W(H,K,Y){var J=U(H),ie,se;(J=="<Esc>"||J=="<C-c>"||J=="<C-[>"||J=="<BS>"&&K=="")&&(Be.exCommandHistoryController.pushInput(K),Be.exCommandHistoryController.reset(),Fe.e_stop(H),k(f),Y(),f.focus()),J=="<Up>"||J=="<Down>"?(Fe.e_stop(H),ie=J=="<Up>",se=H.target?H.target.selectionEnd:0,K=Be.exCommandHistoryController.nextMatch(K,ie)||"",Y(K),se&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(se,H.target.value.length))):J=="<C-u>"?(Fe.e_stop(H),Y("")):J&&J!="<Left>"&&J!="<Right>"&&Be.exCommandHistoryController.reset()}x.type=="keyToEx"?Jn.processCommand(f,x.exArgs.input):A.visualMode?ni(f,{onClose:D,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):ni(f,{onClose:D,prefix:":",onKeyDown:W})},evalInput:function(f,A){var x=A.inputState,D=x.motion,W=x.motionArgs||{},H=x.operator,K=x.operatorArgs||{},Y=x.registerName,J=A.sel,ie=je(A.visualMode?ue(f,J.head):f.getCursor("head")),se=je(A.visualMode?ue(f,J.anchor):f.getCursor("anchor")),ye=je(ie),ke=je(se),de,we,Ie;if(H&&this.recordLastEdit(A,x),x.repeatOverride!==void 0?Ie=x.repeatOverride:Ie=x.getRepeat(),Ie>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Ie===0)&&(Ie=1,W.repeatIsExplicit=!1),x.selectedCharacter&&(W.selectedCharacter=K.selectedCharacter=x.selectedCharacter),W.repeat=Ie,k(f),D){var Ee=wi[D](f,ie,W,A,x);if(A.lastMotion=wi[D],!Ee)return;if(W.toJumplist){!H&&f.ace.curOp!=null&&(f.ace.curOp.command.scrollIntoView="center-animate");var He=Be.jumpList,nt=He.cachedCursor;nt?(Yn(f,nt,Ee),delete He.cachedCursor):Yn(f,ie,Ee)}Ee instanceof Array?(we=Ee[0],de=Ee[1]):de=Ee,de||(de=je(ie)),A.visualMode?((!A.visualBlock||de.ch!==1/0)&&(de=ue(f,de,ye)),we&&(we=ue(f,we)),we=we||ke,J.anchor=we,J.head=de,qe(f),Ai(f,A,"<",et(we,de)?we:de),Ai(f,A,">",et(we,de)?de:we)):H||(f.ace.curOp&&(f.ace.curOp.vimDialogScroll="center-animate"),de=ue(f,de,ye),f.setCursor(de.line,de.ch))}if(H){if(K.lastSel){we=ke;var Xe=K.lastSel,Qe=Math.abs(Xe.head.line-Xe.anchor.line),Xt=Math.abs(Xe.head.ch-Xe.anchor.ch);Xe.visualLine?de=new Oe(ke.line+Qe,ke.ch):Xe.visualBlock?de=new Oe(ke.line+Qe,ke.ch+Xt):Xe.head.line==Xe.anchor.line?de=new Oe(ke.line,ke.ch+Xt):de=new Oe(ke.line+Qe,ke.ch),A.visualMode=!0,A.visualLine=Xe.visualLine,A.visualBlock=Xe.visualBlock,J=A.sel={anchor:we,head:de},qe(f)}else A.visualMode&&(K.lastSel={anchor:je(J.anchor),head:je(J.head),visualBlock:A.visualBlock,visualLine:A.visualLine});var rt,dn,Et,vt,Sn;if(A.visualMode){rt=lt(J.head,J.anchor),dn=jt(J.head,J.anchor),Et=A.visualLine||K.linewise,vt=A.visualBlock?"block":Et?"line":"char";var jn=C(f,rt,dn);if(Sn=ct(f,{anchor:jn.start,head:jn.end},vt),Et){var fn=Sn.ranges;if(vt=="block")for(var j=0;j<fn.length;j++)fn[j].head.ch=Ht(f,fn[j].head.line);else vt=="line"&&(fn[0].head=new Oe(fn[0].head.line+1,0))}}else{if(rt=je(we||ke),dn=je(de||ye),et(dn,rt)){var Z=rt;rt=dn,dn=Z}Et=W.linewise||K.linewise,Et?_t(f,rt,dn):W.forward&&$t(f,rt,dn),vt="char";var re=!W.inclusive||Et,jn=C(f,rt,dn);Sn=ct(f,{anchor:jn.start,head:jn.end},vt,re)}f.setSelections(Sn.ranges,Sn.primary),A.lastMotion=null,K.repeat=Ie,K.registerName=Y,K.linewise=Et;var oe=ao[H](f,K,Sn.ranges,ke,de);A.visualMode&&bt(f,oe!=null),oe&&f.setCursor(oe)}},recordLastEdit:function(f,A,x){var D=Be.macroModeState;D.isPlaying||(f.lastEditInputState=A,f.lastEditActionCommand=x,D.lastInsertModeChanges.changes=[],D.lastInsertModeChanges.expectCursorActivityForChange=!1,D.lastInsertModeChanges.visualBlock=f.visualBlock?f.sel.head.line-f.sel.anchor.line:0)}},wi={moveToTopLine:function(f,A,x){var D=vr(f).top+x.repeat-1;return new Oe(D,st(f.getLine(D)))},moveToMiddleLine:function(f){var A=vr(f),x=Math.floor((A.top+A.bottom)*.5);return new Oe(x,st(f.getLine(x)))},moveToBottomLine:function(f,A,x){var D=vr(f).bottom-x.repeat+1;return new Oe(D,st(f.getLine(D)))},expandToLine:function(f,A,x){var D=A;return new Oe(D.line+x.repeat-1,1/0)},findNext:function(f,A,x){var D=gn(f),W=D.getQuery();if(W){var H=!x.forward;return H=D.isReversed()?!H:H,Bi(f,W),ii(f,H,W,x.repeat)}},findAndSelectNextInclusive:function(f,A,x,D,W){var H=gn(f),K=H.getQuery();if(K){var Y=!x.forward;Y=H.isReversed()?!Y:Y;var J=Hi(f,Y,K,x.repeat,D);if(J){if(W.operator)return J;var ie=J[0],se=new Oe(J[1].line,J[1].ch-1);if(D.visualMode){(D.visualLine||D.visualBlock)&&(D.visualLine=!1,D.visualBlock=!1,Fe.signal(f,"vim-mode-change",{mode:"visual",subMode:""}));var ye=D.sel.anchor;if(ye)return H.isReversed()?x.forward?[ye,ie]:[ye,se]:x.forward?[ye,se]:[ye,ie]}else D.visualMode=!0,D.visualLine=!1,D.visualBlock=!1,Fe.signal(f,"vim-mode-change",{mode:"visual",subMode:""});return Y?[se,ie]:[ie,se]}}},goToMark:function(f,A,x,D){var W=vi(f,D,x.selectedCharacter);return W?x.linewise?{line:W.line,ch:st(f.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(f,A,x,D){if(D.visualBlock&&x.sameLine){var W=D.sel;return[ue(f,new Oe(W.anchor.line,W.head.ch)),ue(f,new Oe(W.head.line,W.anchor.ch))]}return[D.sel.head,D.sel.anchor]},jumpToMark:function(f,A,x,D){for(var W=A,H=0;H<x.repeat;H++){var K=W;for(var Y in D.marks)if(o(Y)){var J=D.marks[Y].find(),ie=x.forward?et(J,K):et(K,J);if(!ie&&!(x.linewise&&J.line==K.line)){var se=at(K,W),ye=x.forward?on(K,J,W):on(W,J,K);(se||ye)&&(W=J)}}}return x.linewise&&(W=new Oe(W.line,st(f.getLine(W.line)))),W},moveByCharacters:function(f,A,x){var D=A,W=x.repeat,H=x.forward?D.ch+W:D.ch-W;return new Oe(D.line,H)},moveByLines:function(f,A,x,D){var W=A,H=W.ch;switch(D.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=D.lastHPos;break;default:D.lastHPos=H}var K=x.repeat+(x.repeatOffset||0),Y=x.forward?W.line+K:W.line-K,J=f.firstLine(),ie=f.lastLine();if(Y<J&&W.line==J)return this.moveToStartOfLine(f,A,x,D);if(Y>ie&&W.line==ie)return Tr(f,A,x,D,!0);var se=f.ace.session.getFoldLine(Y);return se&&(x.forward?Y>se.start.row&&(Y=se.end.row+1):Y=se.start.row),x.toFirstChar&&(H=st(f.getLine(Y)),D.lastHPos=H),D.lastHSPos=f.charCoords(new Oe(Y,H),"div").left,new Oe(Y,H)},moveByDisplayLines:function(f,A,x,D){var W=A;switch(D.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:D.lastHSPos=f.charCoords(W,"div").left}var H=x.repeat,J=f.findPosV(W,x.forward?H:-H,"line",D.lastHSPos);if(J.hitSide)if(x.forward)var K=f.charCoords(J,"div"),Y={top:K.top+8,left:D.lastHSPos},J=f.coordsChar(Y,"div");else{var ie=f.charCoords(new Oe(f.firstLine(),0),"div");ie.left=D.lastHSPos,J=f.coordsChar(ie,"div")}return D.lastHPos=J.ch,J},moveByPage:function(f,A,x){var D=A,W=x.repeat;return f.findPosV(D,x.forward?W:-W,"page")},moveByParagraph:function(f,A,x){var D=x.forward?1:-1;return yo(f,A,x.repeat,D)},moveBySentence:function(f,A,x){var D=x.forward?1:-1;return nr(f,A,x.repeat,D)},moveByScroll:function(f,A,x,D){var W=f.getScrollInfo(),H=null,K=x.repeat;K||(K=W.clientHeight/(2*f.defaultTextHeight()));var Y=f.charCoords(A,"local");if(x.repeat=K,H=wi.moveByDisplayLines(f,A,x,D),!H)return null;var J=f.charCoords(H,"local");return f.scrollTo(null,W.top+J.top-Y.top),H},moveByWords:function(f,A,x){return Qn(f,A,x.repeat,!!x.forward,!!x.wordEnd,!!x.bigWord)},moveTillCharacter:function(f,A,x){var D=x.repeat,W=Qr(f,D,x.forward,x.selectedCharacter,A),H=x.forward?-1:1;return mi(H,x),W?(W.ch+=H,W):null},moveToCharacter:function(f,A,x){var D=x.repeat;return mi(0,x),Qr(f,D,x.forward,x.selectedCharacter,A)||A},moveToSymbol:function(f,A,x){var D=x.repeat;return tr(f,D,x.forward,x.selectedCharacter)||A},moveToColumn:function(f,A,x,D){var W=x.repeat;return D.lastHPos=W-1,D.lastHSPos=f.charCoords(A,"div").left,ks(f,W)},moveToEol:function(f,A,x,D){return Tr(f,A,x,D,!1)},moveToFirstNonWhiteSpaceCharacter:function(f,A){var x=A;return new Oe(x.line,st(f.getLine(x.line)))},moveToMatchedSymbol:function(f,A){for(var x=A,D=x.line,W=x.ch,H=f.getLine(D),K;W<H.length;W++)if(K=H.charAt(W),K&&r(K)){var Y=f.getTokenTypeAt(new Oe(D,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var J=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,ie=f.findMatchingBracket(new Oe(D,W+1),{bracketRegex:J});return ie.to}return x},moveToStartOfLine:function(f,A){return new Oe(A.line,0)},moveToLineOrEdgeOfDocument:function(f,A,x){var D=x.forward?f.lastLine():f.firstLine();return x.repeatIsExplicit&&(D=x.repeat-f.getOption("firstLineNumber")),new Oe(D,st(f.getLine(D)))},moveToStartOfDisplayLine:function(f){return f.execCommand("goLineLeft"),f.getCursor()},moveToEndOfDisplayLine:function(f){f.execCommand("goLineRight");var A=f.getCursor();return A.sticky=="before"&&A.ch--,A},textObjectManipulation:function(f,A,x,D){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},K=x.selectedCharacter;K=="b"?K="(":K=="B"&&(K="{");var Y=!x.textObjectInner,J,ie;if(W[K]){if(ie=!0,J=$n(f,A,K,Y),!J){var se=f.getSearchCursor(new RegExp("\\"+K,"g"),A);se.find()&&(J=$n(f,se.from(),K,Y))}}else if(H[K])ie=!0,J=ei(f,A,K,Y);else if(K==="W"||K==="w")for(var ye=x.repeat||1;ye-- >0;){var ke=gt(f,{inclusive:Y,innerWord:!Y,bigWord:K==="W",noSymbol:K==="W",multiline:!0},J&&J.end);ke&&(J||(J=ke),J.end=ke.end)}else if(K==="p")if(J=yo(f,A,x.repeat,0,Y),x.linewise=!0,D.visualMode)D.visualLine||(D.visualLine=!0);else{var de=D.inputState.operatorArgs;de&&(de.linewise=!0),J.end.line--}else if(K==="t")J=hn(f,A,Y);else if(K==="s"){var we=f.getLine(A.line);A.ch>0&&m(we[A.ch])&&(A.ch-=1);var Ie=Go(f,A,x.repeat,1,Y),Ee=Go(f,A,x.repeat,-1,Y);h(f.getLine(Ee.line)[Ee.ch])&&h(f.getLine(Ie.line)[Ie.ch-1])&&(Ee={line:Ee.line,ch:Ee.ch+1}),J={start:Ee,end:Ie}}return J?f.state.vim.visualMode?We(f,J.start,J.end,ie):[J.start,J.end]:null},repeatLastCharacterSearch:function(f,A,x){var D=Be.lastCharacterSearch,W=x.repeat,H=x.forward===D.forward,K=(D.increment?1:0)*(H?-1:1);f.moveH(-K,"char"),x.inclusive=!!H;var Y=Qr(f,W,H,D.selectedCharacter);return Y?(Y.ch+=K,Y):(f.moveH(K,"char"),A)}},ao={change:function(f,A,x){var D,W,H=f.state.vim,K=x[0].anchor,Y=x[0].head;if(H.visualMode)if(A.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,f.setSelection(K,Y),W=f.getSelection(),f.replaceSelection(""),D=K;else{W=f.getSelection();var se=he("",x.length);f.replaceSelections(se),D=lt(x[0].head,x[0].anchor)}else{W=f.getRange(K,Y);var J=H.lastEditInputState||{};if(J.motion=="moveByWords"&&!h(W)){var ie=/\s+$/.exec(W);ie&&J.motionArgs&&J.motionArgs.forward&&(Y=me(Y,0,-ie[0].length),W=W.slice(0,-ie[0].length))}A.linewise&&(K=new Oe(K.line,st(f.getLine(K.line))),Y.line>K.line&&(Y=new Oe(Y.line-1,Number.MAX_VALUE))),f.replaceRange("",K,Y),D=K}Be.registerController.pushText(A.registerName,"change",W,A.linewise,x.length>1),Cn.enterInsertMode(f,{head:D},f.state.vim)},delete:function(f,A,x){var D,W,H=f.state.vim;if(H.visualBlock){W=f.getSelection();var J=he("",x.length);f.replaceSelections(J),D=lt(x[0].head,x[0].anchor)}else{var K=x[0].anchor,Y=x[0].head;A.linewise&&Y.line!=f.firstLine()&&K.line==f.lastLine()&&K.line==Y.line-1&&(K.line==f.firstLine()?K.ch=0:K=new Oe(K.line-1,Ht(f,K.line-1))),W=f.getRange(K,Y),f.replaceRange("",K,Y),D=K,A.linewise&&(D=wi.moveToFirstNonWhiteSpaceCharacter(f,K))}return Be.registerController.pushText(A.registerName,"delete",W,A.linewise,H.visualBlock),ue(f,D)},indent:function(f,A,x){var D=f.state.vim,W=D.visualMode?A.repeat:1;if(D.visualBlock){for(var H=f.getOption("tabSize"),K=f.getOption("indentWithTabs")?" ":" ".repeat(H),Y,J=x.length-1;J>=0;J--)if(Y=lt(x[J].anchor,x[J].head),A.indentRight)f.replaceRange(K.repeat(W),Y,Y);else{for(var ie=f.getLine(Y.line),se=0,ye=0;ye<W;ye++){var ke=ie[Y.ch+se];if(ke==" ")se++;else{if(ke!=" ")break;se++;for(var de=1;de<K.length&&(ke=ie[Y.ch+se],ke===" ");de++)se++}}f.replaceRange("",Y,me(Y,0,se))}return Y}if(f.indentMore)for(var ye=0;ye<W;ye++)A.indentRight?f.indentMore():f.indentLess();else{var we=x[0].anchor.line,Ie=D.visualBlock?x[x.length-1].anchor.line:x[0].head.line;A.linewise&&Ie--;for(var J=we;J<=Ie;J++)for(var ye=0;ye<W;ye++)f.indentLine(J,A.indentRight)}return wi.moveToFirstNonWhiteSpaceCharacter(f,x[0].anchor)},indentAuto:function(f,A,x){return f.execCommand("indentAuto"),wi.moveToFirstNonWhiteSpaceCharacter(f,x[0].anchor)},hardWrap:function(f,A,x,D,W){if(f.hardWrap){var H=x[0].anchor.line,K=x[0].head.line;A.linewise&&K--;var Y=f.hardWrap({from:H,to:K});return Y>H&&A.linewise&&Y--,A.keepCursor?D:new Oe(Y,0)}},changeCase:function(f,A,x,D,W){for(var H=f.getSelections(),K=[],Y=A.toLower,J=0;J<H.length;J++){var ie=H[J],se="";if(Y===!0)se=ie.toLowerCase();else if(Y===!1)se=ie.toUpperCase();else for(var ye=0;ye<ie.length;ye++){var ke=ie.charAt(ye);se+=a(ke)?ke.toLowerCase():ke.toUpperCase()}K.push(se)}return f.replaceSelections(K),A.shouldMoveCursor?W:!f.state.vim.visualMode&&A.linewise&&x[0].anchor.line+1==x[0].head.line?wi.moveToFirstNonWhiteSpaceCharacter(f,D):A.linewise?D:lt(x[0].anchor,x[0].head)},yank:function(f,A,x,D){var W=f.state.vim,H=f.getSelection(),K=W.visualMode?lt(W.sel.anchor,W.sel.head,x[0].head,x[0].anchor):D;return Be.registerController.pushText(A.registerName,"yank",H,A.linewise,W.visualBlock),K}},Cn={jumpListWalk:function(f,A,x){if(!x.visualMode){var D=A.repeat,W=A.forward,H=Be.jumpList,K=H.move(f,W?D:-D),Y=K?K.find():void 0;Y=Y||f.getCursor(),f.setCursor(Y),f.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(f,A,x){if(!x.visualMode){var D=A.repeat||1,W=f.defaultTextHeight(),H=f.getScrollInfo().top,K=W*D,Y=A.forward?H+K:H-K,J=je(f.getCursor()),ie=f.charCoords(J,"local");if(A.forward)Y>ie.top?(J.line+=(Y-ie.top)/W,J.line=Math.ceil(J.line),f.setCursor(J),ie=f.charCoords(J,"local"),f.scrollTo(null,ie.top)):f.scrollTo(null,Y);else{var se=Y+f.getScrollInfo().clientHeight;se<ie.bottom?(J.line-=(ie.bottom-se)/W,J.line=Math.floor(J.line),f.setCursor(J),ie=f.charCoords(J,"local"),f.scrollTo(null,ie.bottom-f.getScrollInfo().clientHeight)):f.scrollTo(null,Y)}}},scrollToCursor:function(f,A){var x=f.getCursor().line,D=f.charCoords(new Oe(x,0),"local"),W=f.getScrollInfo().clientHeight,H=D.top;switch(A.position){case"center":H=D.bottom-W/2;break;case"bottom":var K=new Oe(x,f.getLine(x).length-1),Y=f.charCoords(K,"local"),J=Y.bottom-H;H=H-W+J}f.scrollTo(null,H)},replayMacro:function(f,A,x){var D=A.selectedCharacter,W=A.repeat,H=Be.macroModeState;for(D=="@"?D=H.latestRegister:H.latestRegister=D;W--;)ko(f,x,H,D)},enterMacroRecordMode:function(f,A){var x=Be.macroModeState,D=A.selectedCharacter;Be.registerController.isValidRegister(D)&&x.enterMacroRecordMode(f,D)},toggleOverwrite:function(f){f.state.overwrite?(f.toggleOverwrite(!1),f.setOption("keyMap","vim-insert"),Fe.signal(f,"vim-mode-change",{mode:"insert"})):(f.toggleOverwrite(!0),f.setOption("keyMap","vim-replace"),Fe.signal(f,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(f,A,x){if(!f.getOption("readOnly")){x.insertMode=!0,x.insertModeRepeat=A&&A.repeat||1;var D=A?A.insertAt:null,W=x.sel,H=A.head||f.getCursor("head"),K=f.listSelections().length;if(D=="eol")H=new Oe(H.line,Ht(f,H.line));else if(D=="bol")H=new Oe(H.line,0);else if(D=="charAfter"){var Y=C(f,H,me(H,0,1));H=Y.end}else if(D=="firstNonBlank"){var Y=C(f,H,wi.moveToFirstNonWhiteSpaceCharacter(f,H));H=Y.end}else if(D=="startOfSelectedArea"){if(!x.visualMode)return;x.visualBlock?(H=new Oe(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?H=W.head:H=new Oe(W.anchor.line,0)}else if(D=="endOfSelectedArea"){if(!x.visualMode)return;x.visualBlock?(H=new Oe(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),K=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?H=me(W.head,0,1):H=new Oe(W.anchor.line,0)}else if(D=="inplace"){if(x.visualMode)return}else D=="lastEdit"&&(H=Lr(f)||H);f.setOption("disableInput",!1),A&&A.replace?(f.toggleOverwrite(!0),f.setOption("keyMap","vim-replace"),Fe.signal(f,"vim-mode-change",{mode:"replace"})):(f.toggleOverwrite(!1),f.setOption("keyMap","vim-insert"),Fe.signal(f,"vim-mode-change",{mode:"insert"})),Be.macroModeState.isPlaying||(f.on("change",Er),x.insertEnd&&x.insertEnd.clear(),x.insertEnd=f.setBookmark(H,{insertLeft:!0}),Fe.on(f.getInputField(),"keydown",So)),x.visualMode&&bt(f),In(f,H,K)}},toggleVisualMode:function(f,A,x){var D=A.repeat,W=f.getCursor(),H;if(x.visualMode)x.visualLine^A.linewise||x.visualBlock^A.blockwise?(x.visualLine=!!A.linewise,x.visualBlock=!!A.blockwise,Fe.signal(f,"vim-mode-change",{mode:"visual",subMode:x.visualLine?"linewise":x.visualBlock?"blockwise":""}),qe(f)):bt(f);else{x.visualMode=!0,x.visualLine=!!A.linewise,x.visualBlock=!!A.blockwise,H=ue(f,new Oe(W.line,W.ch+D-1));var K=C(f,W,H);x.sel={anchor:K.start,head:K.end},Fe.signal(f,"vim-mode-change",{mode:"visual",subMode:x.visualLine?"linewise":x.visualBlock?"blockwise":""}),qe(f),Ai(f,x,"<",lt(W,H)),Ai(f,x,">",jt(W,H))}},reselectLastSelection:function(f,A,x){var D=x.lastSelection;if(x.visualMode&&Ce(f,x),D){var W=D.anchorMark.find(),H=D.headMark.find();if(!W||!H)return;x.sel={anchor:W,head:H},x.visualMode=!0,x.visualLine=D.visualLine,x.visualBlock=D.visualBlock,qe(f),Ai(f,x,"<",lt(W,H)),Ai(f,x,">",jt(W,H)),Fe.signal(f,"vim-mode-change",{mode:"visual",subMode:x.visualLine?"linewise":x.visualBlock?"blockwise":""})}},joinLines:function(f,A,x){var D,W;if(x.visualMode){if(D=f.getCursor("anchor"),W=f.getCursor("head"),et(W,D)){var H=W;W=D,D=H}W.ch=Ht(f,W.line)-1}else{var K=Math.max(A.repeat,2);D=f.getCursor(),W=ue(f,new Oe(D.line+K-1,1/0))}for(var Y=0,J=D.line;J<W.line;J++){Y=Ht(f,D.line);var ie="",se=0;if(!A.keepSpaces){var ye=f.getLine(D.line+1);se=ye.search(/\S/),se==-1?se=ye.length:ie=" "}f.replaceRange(ie,new Oe(D.line,Y),new Oe(D.line+1,se))}var ke=ue(f,new Oe(D.line,Y));x.visualMode&&bt(f,!1),f.setCursor(ke)},newLineAndEnterInsertMode:function(f,A,x){x.insertMode=!0;var D=je(f.getCursor());if(D.line===f.firstLine()&&!A.after)f.replaceRange(`
|
|
1446
|
-
`,new Oe(f.firstLine(),0)),f.setCursor(f.firstLine(),0);else{D.line=A.after?D.line:D.line-1,D.ch=Ht(f,D.line),f.setCursor(D);var W=Fe.commands.newlineAndIndentContinueComment||Fe.commands.newlineAndIndent;W(f)}this.enterInsertMode(f,{repeat:A.repeat},x)},paste:function(f,A,x){var D=this,W=Be.registerController.getRegister(A.registerName),H=function(){var K=W.toString();D.continuePaste(f,A,x,K,W)};A.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(K){D.continuePaste(f,A,x,K,W)},function(){H()}):H()},continuePaste:function(f,A,x,de,W){var H=je(f.getCursor());if(de){if(A.matchIndent){var K=f.getOption("tabSize"),Y=function(fn){var j=fn.split(" ").length-1,Z=fn.split(" ").length-1;return j*K+Z*1},J=f.getLine(f.getCursor().line),ie=Y(J.match(/^\s*/)[0]),se=de.replace(/\n$/,""),ye=de!==se,ke=Y(de.match(/^\s*/)[0]),de=se.replace(/^\s*/gm,function(fn){var j=ie+(Y(fn)-ke);if(j<0)return"";if(f.getOption("indentWithTabs")){var Z=Math.floor(j/K);return Array(Z+1).join(" ")}return Array(j+1).join(" ")});de+=ye?`
|
|
1447
|
-
`:""}if(A.repeat>1)var de=Array(A.repeat+1).join(de);var we=W.linewise,Ie=W.blockwise;if(Ie){de=de.split(`
|
|
1448
|
-
`),we&&de.pop();for(var Ee=0;Ee<de.length;Ee++)de[Ee]=de[Ee]==""?" ":de[Ee];H.ch+=A.after?1:0,H.ch=Math.min(Ht(f,H.line),H.ch)}else we?x.visualMode?de=x.visualLine?de.slice(0,-1):`
|
|
1449
|
-
`+de.slice(0,de.length-1)+`
|
|
1450
|
-
`:A.after?(de=`
|
|
1451
|
-
`+de.slice(0,de.length-1),H.ch=Ht(f,H.line)):H.ch=0:H.ch+=A.after?1:0;var He;if(x.visualMode){x.lastPastedText=de;var nt,Xe=Ue(f,x),Qe=Xe[0],Xt=Xe[1],rt=f.getSelection(),dn=f.listSelections(),Et=new Array(dn.length).join("1").split("1");x.lastSelection&&(nt=x.lastSelection.headMark.find()),Be.registerController.unnamedRegister.setText(rt),Ie?(f.replaceSelections(Et),Xt=new Oe(Qe.line+de.length-1,Qe.ch),f.setCursor(Qe),wn(f,Xt),f.replaceSelections(de),He=Qe):x.visualBlock?(f.replaceSelections(Et),f.setCursor(Qe),f.replaceRange(de,Qe,Qe),He=Qe):(f.replaceRange(de,Qe,Xt),He=f.posFromIndex(f.indexFromPos(Qe)+de.length-1)),nt&&(x.lastSelection.headMark=f.setBookmark(nt)),we&&(He.ch=0)}else if(Ie){f.setCursor(H);for(var Ee=0;Ee<de.length;Ee++){var vt=H.line+Ee;vt>f.lastLine()&&f.replaceRange(`
|
|
1452
|
-
`,new Oe(vt,0));var Sn=Ht(f,vt);Sn<H.ch&&yn(f,vt,H.ch)}f.setCursor(H),wn(f,new Oe(H.line+de.length-1,H.ch)),f.replaceSelections(de),He=H}else if(f.replaceRange(de,H),we){var vt=A.after?H.line+1:H.line;He=new Oe(vt,st(f.getLine(vt)))}else He=je(H),/\n/.test(de)||(He.ch+=de.length-(A.after?1:0));x.visualMode&&bt(f,!1),f.setCursor(He)}},undo:function(f,A){f.operation(function(){Ge(f,Fe.commands.undo,A.repeat)(),f.setCursor(ue(f,f.getCursor("start")))})},redo:function(f,A){Ge(f,Fe.commands.redo,A.repeat)()},setRegister:function(f,A,x){x.inputState.registerName=A.selectedCharacter},insertRegister:function(f,A,x){var D=A.selectedCharacter,W=Be.registerController.getRegister(D),H=W&&W.toString();H&&f.replaceSelection(H)},oneNormalCommand:function(f,A,x){yi(f,!0),x.insertModeReturn=!0,Fe.on(f,"vim-command-done",function D(){x.visualMode||(x.insertModeReturn&&(x.insertModeReturn=!1,x.insertMode||Cn.enterInsertMode(f,{},x)),Fe.off(f,"vim-command-done",D))})},setMark:function(f,A,x){var D=A.selectedCharacter;Ai(f,x,D,f.getCursor())},replace:function(f,A,x){var D=A.selectedCharacter,W=f.getCursor(),H,K,Y=f.listSelections();if(x.visualMode)W=f.getCursor("start"),K=f.getCursor("end");else{var J=f.getLine(W.line);H=W.ch+A.repeat,H>J.length&&(H=J.length),K=new Oe(W.line,H)}var ie=C(f,W,K);if(W=ie.start,K=ie.end,D==`
|
|
1453
|
-
`)x.visualMode||f.replaceRange("",W,K),(Fe.commands.newlineAndIndentContinueComment||Fe.commands.newlineAndIndent)(f);else{var se=f.getRange(W,K);if(se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),se=se.replace(/[^\n]/g,D),x.visualBlock){var ye=new Array(f.getOption("tabSize")+1).join(" ");se=f.getSelection(),se=se.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D),se=se.replace(/\t/g,ye).replace(/[^\n]/g,D).split(`
|
|
1454
|
-
`),f.replaceSelections(se)}else f.replaceRange(se,W,K);x.visualMode?(W=et(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,f.setCursor(W),bt(f,!1)):f.setCursor(me(K,0,-1))}},incrementNumberToken:function(f,A){for(var x=f.getCursor(),D=f.getLine(x.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,H,K,Y,J;(H=W.exec(D))!==null&&(K=H.index,Y=K+H[0].length,!(x.ch<Y)););if(!(!A.backtrack&&Y<=x.ch)&&H){var ie=H[2]||H[4],se=H[3]||H[5],ye=A.increase?1:-1,ke={"0b":2,0:8,"":10,"0x":16}[ie.toLowerCase()],de=parseInt(H[1]+se,ke)+ye*A.repeat;J=de.toString(ke);var we=ie?new Array(se.length-J.length+1+H[1].length).join("0"):"";J.charAt(0)==="-"?J="-"+ie+we+J.substr(1):J=ie+we+J;var Ie=new Oe(x.line,K),Ee=new Oe(x.line,Y);f.replaceRange(J,Ie,Ee),f.setCursor(new Oe(x.line,K+J.length-1))}},repeatLastEdit:function(f,A,x){var D=x.lastEditInputState;if(D){var W=A.repeat;W&&A.repeatIsExplicit?x.lastEditInputState.repeatOverride=W:W=x.lastEditInputState.repeatOverride||W,Qo(f,x,W,!1)}},indent:function(f,A){f.indentLine(f.getCursor().line,A.indentRight)},exitInsertMode:yi},Ti={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Li={bracket:{isComplete:function(f){if(f.nextCh===f.symb){if(f.depth++,f.depth>=1)return!0}else f.nextCh===f.reverseSymb&&f.depth--;return!1}},section:{init:function(f){f.curMoveThrough=!0,f.symb=(f.forward?"]":"[")===f.symb?"{":"}"},isComplete:function(f){return f.index===0&&f.nextCh===f.symb}},comment:{isComplete:function(f){var A=f.lastCh==="*"&&f.nextCh==="/";return f.lastCh=f.nextCh,A}},method:{init:function(f){f.symb=f.symb==="m"?"{":"}",f.reverseSymb=f.symb==="{"?"}":"{"},isComplete:function(f){return f.nextCh===f.symb}},preprocess:{init:function(f){f.index=0},isComplete:function(f){if(f.nextCh==="#"){var A=f.lineText.match(/^#(\w+)/)[1];if(A==="endif"){if(f.forward&&f.depth===0)return!0;f.depth++}else if(A==="if"){if(!f.forward&&f.depth===0)return!0;f.depth--}if(A==="else"&&f.depth===0)return!0}return!1}}};E("pcre",!0,"boolean"),ir.prototype={getQuery:function(){return Be.query},setQuery:function(f){Be.query=f},getOverlay:function(){return this.searchOverlay},setOverlay:function(f){this.searchOverlay=f},isReversed:function(){return Be.isReversed},setReversed:function(f){Be.isReversed=f},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(f){this.annotate=f}};var Ki={"\\n":`
|
|
1455
|
-
`,"\\r":"\r","\\t":" "},Un={"\\/":"/","\\\\":"\\","\\n":`
|
|
1456
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},Vn=0,Zn=function(){this.buildCommandMap_()};Zn.prototype={processCommand:function(f,A,x){var D=this;f.operation(function(){f.curOp.isVimOp=!0,D._processCommand(f,A,x)})},_processCommand:function(f,A,x){var D=f.state.vim,W=Be.registerController.getRegister(":"),H=W.toString(),K=new Fe.StringStream(A);W.setText(A);var Y=x||{};Y.input=A;try{this.parseInput_(f,K,Y)}catch(se){throw Nt(f,se.toString()),se}D.visualMode&&bt(f);var J,ie;if(!Y.commandName)Y.line!==void 0&&(ie="move");else if(J=this.matchCommand_(Y.commandName),J){if(ie=J.name,J.excludeFromCommandHistory&&W.setText(H),this.parseCommandArgs_(K,Y,J),J.type=="exToKey"){L(f,J.toKeys,J);return}if(J.type=="exToEx"){this.processCommand(f,J.toInput);return}}if(!ie){Nt(f,'Not an editor command ":'+A+'"');return}try{Ao[ie](f,Y),(!J||!J.possiblyAsync)&&Y.callback&&Y.callback()}catch(se){throw Nt(f,se.toString()),se}},parseInput_:function(f,A,x){if(A.eatWhile(":"),A.eat("%")?(x.line=f.firstLine(),x.lineEnd=f.lastLine()):(x.line=this.parseLineSpec_(f,A),x.line!==void 0&&A.eat(",")&&(x.lineEnd=this.parseLineSpec_(f,A))),x.line==null)if(f.state.vim.visualMode){var D=vi(f,f.state.vim,"<");x.selectionLine=D&&D.line,D=vi(f,f.state.vim,">"),x.selectionLineEnd=D&&D.line}else x.selectionLine=f.getCursor().line;else x.selectionLine=x.line,x.selectionLineEnd=x.lineEnd;var W=A.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?x.commandName=W[1]:x.commandName=A.match(/.*/)[0],x},parseLineSpec_:function(f,A){var x=A.match(/^(\d+)/);if(x)return parseInt(x[1],10)-1;switch(A.next()){case".":return this.parseLineSpecOffset_(A,f.getCursor().line);case"$":return this.parseLineSpecOffset_(A,f.lastLine());case"'":var D=A.next(),W=vi(f,f.state.vim,D);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(A,W.line);case"-":case"+":return A.backUp(1),this.parseLineSpecOffset_(A,f.getCursor().line);default:return A.backUp(1),void 0}},parseLineSpecOffset_:function(f,A){var x=f.match(/^([+-])?(\d+)/);if(x){var D=parseInt(x[2],10);x[1]=="-"?A-=D:A+=D}return A},parseCommandArgs_:function(f,A,x){if(!f.eol()){A.argString=f.match(/.*/)[0];var D=x.argDelimiter||/\s+/,W=qn(A.argString).split(D);W.length&&W[0]&&(A.args=W)}},matchCommand_:function(f){for(var A=f.length;A>0;A--){var x=f.substring(0,A);if(this.commandMap_[x]){var D=this.commandMap_[x];if(D.name.indexOf(f)===0)return D}}return null},buildCommandMap_:function(){this.commandMap_={};for(var f=0;f<Mi.length;f++){var A=Mi[f],x=A.shortName||A.name;this.commandMap_[x]=A}},map:function(f,A,x,D){if(f!=":"&&f.charAt(0)==":"){if(x)throw Error("Mode not supported for ex mappings");var W=f.substring(1);A!=":"&&A.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:A.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:A,user:!0}}else{var H={keys:f,type:"keyToKey",toKeys:A,noremap:!!D};x&&(H.context=x),mn.unshift(H)}},unmap:function(f,A){if(f!=":"&&f.charAt(0)==":"){if(A)throw Error("Mode not supported for ex mappings");var x=f.substring(1);if(this.commandMap_[x]&&this.commandMap_[x].user)return delete this.commandMap_[x],!0}else for(var D=f,W=0;W<mn.length;W++)if(D==mn[W].keys&&mn[W].context===A)return mn.splice(W,1),!0}};var Ao={colorscheme:function(f,A){if(!A.args||A.args.length<1){Nt(f,f.getOption("theme"));return}f.setOption("theme",A.args[0])},map:function(f,A,x,D){var W=A.args;if(!W||W.length<2){f&&Nt(f,"Invalid mapping: "+A.input);return}Jn.map(W[0],W[1],x,D)},imap:function(f,A){this.map(f,A,"insert")},nmap:function(f,A){this.map(f,A,"normal")},vmap:function(f,A){this.map(f,A,"visual")},omap:function(f,A){this.map(f,A,"operatorPending")},noremap:function(f,A){this.map(f,A,void 0,!0)},inoremap:function(f,A){this.map(f,A,"insert",!0)},nnoremap:function(f,A){this.map(f,A,"normal",!0)},vnoremap:function(f,A){this.map(f,A,"visual",!0)},onoremap:function(f,A){this.map(f,A,"operatorPending",!0)},unmap:function(f,A,x){var D=A.args;(!D||D.length<1||!Jn.unmap(D[0],x))&&f&&Nt(f,"No such mapping: "+A.input)},mapclear:function(f,A){mt.mapclear()},imapclear:function(f,A){mt.mapclear("insert")},nmapclear:function(f,A){mt.mapclear("normal")},vmapclear:function(f,A){mt.mapclear("visual")},omapclear:function(f,A){mt.mapclear("operatorPending")},move:function(f,A){kn.processCommand(f,f.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:A.line+1})},set:function(f,A){var x=A.args,D=A.setCfg||{};if(!x||x.length<1){f&&Nt(f,"Invalid mapping: "+A.input);return}var W=x[0].split("="),H=W[0],K=W[1],Y=!1,J=!1;if(H.charAt(H.length-1)=="?"){if(K)throw Error("Trailing characters: "+A.argString);H=H.substring(0,H.length-1),Y=!0}else H.charAt(H.length-1)=="!"&&(H=H.substring(0,H.length-1),J=!0);K===void 0&&H.substring(0,2)=="no"&&(H=H.substring(2),K=!1);var ie=Dt[H]&&Dt[H].type=="boolean";if(ie&&(J?K=!_(H,f,D):K==null&&(K=!0)),!ie&&K===void 0||Y){var se=_(H,f,D);se instanceof Error?Nt(f,se.message):se===!0||se===!1?Nt(f," "+(se?"":"no")+H):Nt(f," "+H+"="+se)}else{var ye=M(H,K,f,D);ye instanceof Error&&Nt(f,ye.message)}},setlocal:function(f,A){A.setCfg={scope:"local"},this.set(f,A)},setglobal:function(f,A){A.setCfg={scope:"global"},this.set(f,A)},registers:function(f,A){var x=A.args,D=Be.registerController.registers,W=`----------Registers----------
|
|
1457
|
-
|
|
1458
|
-
`;if(x){var H;x=x.join("");for(var Y=0;Y<x.length;Y++)if(H=x.charAt(Y),!!Be.registerController.isValidRegister(H)){var J=D[H]||new B;W+='"'+H+" "+J.toString()+`
|
|
1459
|
-
`}}else for(var H in D){var K=D[H].toString();K.length&&(W+='"'+H+" "+K+`
|
|
1460
|
-
`)}Nt(f,W)},sort:function(f,A){function x(){if(A.argString){var Et=new Fe.StringStream(A.argString);if(Et.eat("!")&&(H=!0),Et.eol())return;if(!Et.eatSpace())return"Invalid arguments";var vt=Et.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!vt&&!Et.eol())return"Invalid arguments";if(vt[1]){K=vt[1].indexOf("i")!=-1,Y=vt[1].indexOf("u")!=-1;var Sn=vt[1].indexOf("d")!=-1||vt[1].indexOf("n")!=-1&&1,jn=vt[1].indexOf("x")!=-1&&1,fn=vt[1].indexOf("o")!=-1&&1;if(Sn+jn+fn>1)return"Invalid arguments";J=Sn&&"decimal"||jn&&"hex"||fn&&"octal"}vt[2]&&(ie=new RegExp(vt[2].substr(1,vt[2].length-2),K?"i":""))}}function D(Et,vt){if(H){var Sn;Sn=Et,Et=vt,vt=Sn}K&&(Et=Et.toLowerCase(),vt=vt.toLowerCase());var jn=J&&Ee.exec(Et),fn=J&&Ee.exec(vt);return jn?(jn=parseInt((jn[1]+jn[2]).toLowerCase(),He),fn=parseInt((fn[1]+fn[2]).toLowerCase(),He),jn-fn):Et<vt?-1:1}function W(Et,vt){if(H){var Sn;Sn=Et,Et=vt,vt=Sn}return K&&(Et[0]=Et[0].toLowerCase(),vt[0]=vt[0].toLowerCase()),Et[0]<vt[0]?-1:1}var H,K,Y,J,ie,se=x();if(se){Nt(f,se+": "+A.argString);return}var ye=A.line||f.firstLine(),ke=A.lineEnd||A.line||f.lastLine();if(ye!=ke){var de=new Oe(ye,0),we=new Oe(ke,Ht(f,ke)),Ie=f.getRange(de,we).split(`
|
|
1461
|
-
`),Ee=ie||(J=="decimal"?/(-?)([\d]+)/:J=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:J=="octal"?/([0-7]+)/:null),He=J=="decimal"?10:J=="hex"?16:J=="octal"?8:null,nt=[],Xe=[];if(J||ie)for(var Qe=0;Qe<Ie.length;Qe++){var Xt=ie?Ie[Qe].match(ie):null;Xt&&Xt[0]!=""?nt.push(Xt):!ie&&Ee.exec(Ie[Qe])?nt.push(Ie[Qe]):Xe.push(Ie[Qe])}else Xe=Ie;if(nt.sort(ie?W:D),ie)for(var Qe=0;Qe<nt.length;Qe++)nt[Qe]=nt[Qe].input;else J||Xe.sort(D);if(Ie=H?nt.concat(Xe):Xe.concat(nt),Y){var rt=Ie,dn;Ie=[];for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]!=dn&&Ie.push(rt[Qe]),dn=rt[Qe]}f.replaceRange(Ie.join(`
|
|
1462
|
-
`),de,we)}},vglobal:function(f,A){this.global(f,A)},normal:function(f,A){var x=A.argString;if(x&&x[0]=="!"&&(x=x.slice(1),Jt=!0),x=x.trimStart(),!x){Nt(f,"Argument is required.");return}var D=A.line;if(typeof D=="number")for(var W=isNaN(A.lineEnd)?D:A.lineEnd,H=D;H<=W;H++)f.setCursor(H,0),L(f,A.argString.trimStart()),f.state.vim.insertMode&&yi(f,!0);else L(f,A.argString.trimStart()),f.state.vim.insertMode&&yi(f,!0)},global:function(f,A){var x=A.argString;if(!x){Nt(f,"Regular Expression missing from global");return}var D=A.commandName[0]==="v";x[0]==="!"&&A.commandName[0]==="g"&&(D=!0,x=x.slice(1));var W=A.line!==void 0?A.line:f.firstLine(),H=A.lineEnd||A.line||f.lastLine(),K=ti(x),Y=x,J;if(K.length&&(Y=K[0],J=K.slice(1,K.length).join("/")),Y)try{an(f,Y,!0,!0)}catch{Nt(f,"Invalid regex: "+Y);return}for(var ie=gn(f).getQuery(),se=[],ye=W;ye<=H;ye++){var ke=f.getLine(ye),de=ie.test(ke);de!==D&&se.push(J?f.getLineHandle(ye):ke)}if(!J){Nt(f,se.join(`
|
|
1463
|
-
`));return}var we=0,Ie=function(){if(we<se.length){var Ee=se[we++],He=f.getLineNumber(Ee);if(He==null){Ie();return}var nt=He+1+J;Jn.processCommand(f,nt,{callback:Ie})}else f.releaseLineHandles&&f.releaseLineHandles()};Ie()},substitute:function(f,A){if(!f.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var x=A.argString,D=x?rr(x,x[0]):[],W,H="",K,Y,J,ie=!1,se=!1;if(D.length)W=D[0],_("pcre")&&W!==""&&(W=new RegExp(W).source),H=D[1],H!==void 0&&(_("pcre")?H=_s(H.replace(/([^\\])&/g,"$1$$&")):H=Ss(H),Be.lastSubstituteReplacePart=H),K=D[2]?D[2].split(" "):[];else if(x&&x.length){Nt(f,"Substitutions should be of the form :s/pattern/replace/");return}if(K&&(Y=K[0],J=parseInt(K[1]),Y&&(Y.indexOf("c")!=-1&&(ie=!0),Y.indexOf("g")!=-1&&(se=!0),_("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{an(f,W,!0,!0)}catch{Nt(f,"Invalid regex: "+W);return}if(H=H||Be.lastSubstituteReplacePart,H===void 0){Nt(f,"No previous substitute regular expression");return}var ye=gn(f),ke=ye.getQuery(),de=A.line!==void 0?A.line:f.getCursor().line,we=A.lineEnd||de;de==f.firstLine()&&we==f.lastLine()&&(we=1/0),J&&(de=we,we=de+J-1);var Ie=ue(f,new Oe(de,0)),Ee=f.getSearchCursor(ke,Ie);Jr(f,ie,se,de,we,Ee,ke,H,A.callback)},startinsert:function(f,A){L(f,A.argString=="!"?"A":"i",{})},redo:Fe.commands.redo,undo:Fe.commands.undo,write:function(f){Fe.commands.save?Fe.commands.save(f):f.save&&f.save()},nohlsearch:function(f){Zr(f)},yank:function(f){var A=je(f.getCursor()),x=A.line,D=f.getLine(x);Be.registerController.pushText("0","yank",D,!0,!0)},delete:function(f,A){var x=A.selectionLine,D=isNaN(A.selectionLineEnd)?x:A.selectionLineEnd;ao.delete(f,{linewise:!0},[{anchor:new Oe(x,0),head:new Oe(D+1,0)}])},join:function(f,A){var x=A.selectionLine,D=isNaN(A.selectionLineEnd)?x:A.selectionLineEnd;f.setCursor(new Oe(x,0)),Cn.joinLines(f,{repeat:D-x},f.state.vim)},delmarks:function(f,A){if(!A.argString||!qn(A.argString)){Nt(f,"Argument required");return}for(var x=f.state.vim,D=new Fe.StringStream(qn(A.argString));!D.eol();){D.eatSpace();var W=D.pos;if(!D.match(/[a-zA-Z]/,!1)){Nt(f,"Invalid argument: "+A.argString.substring(W));return}var H=D.next();if(D.match("-",!0)){if(!D.match(/[a-zA-Z]/,!1)){Nt(f,"Invalid argument: "+A.argString.substring(W));return}var K=H,Y=D.next();if(!(o(K)&&o(Y)||a(K)&&a(Y))){Nt(f,"Invalid argument: "+K+"-");return}var J=K.charCodeAt(0),ie=Y.charCodeAt(0);if(J>=ie){Nt(f,"Invalid argument: "+A.argString.substring(W));return}for(var se=0;se<=ie-J;se++){var ye=String.fromCharCode(J+se);delete x.marks[ye]}}else delete x.marks[H]}}},Jn=new Zn;E("insertModeEscKeysTimeout",200,"number"),Fe.Vim=mt;var ri={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ei=mt.handleKey.bind(mt);mt.handleKey=function(f,A,x){return f.operation(function(){return Ei(f,A,x)},!0)},I(),l.CodeMirror=Fe;var Ri=mt.maybeInitVimState_;l.handler={$id:"ace/keyboard/vim",drawCursor:function(f,A,x,D,W){var H=this.state.vim||{},K=x.characterWidth,Y=x.lineHeight,J=A.top,ie=A.left;if(!H.insertMode){var se=D.cursor?Pn.comparePoints(D.cursor,D.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!se&&ie>K&&(ie-=K)}!H.insertMode&&H.status&&(Y/=2,J+=Y),sr.translate(f,ie,J),sr.setStyle(f.style,"width",K+"px"),sr.setStyle(f.style,"height",Y+"px")},$getDirectionForHighlight:function(f){var A=f.state.cm,x=Ri(A);if(!x.insertMode)return f.session.selection.isBackwards()||f.session.selection.isEmpty()},handleKeyboard:function(f,A,x,D,W){var H=f.editor,K=H.state.cm,Y=Ri(K);if(D!=-1){if(Y.insertMode||(A==-1?(x.charCodeAt(0)>255&&f.inputKey&&(x=f.inputKey,x&&f.inputHash==4&&(x=x.toUpperCase())),f.inputChar=x):A==4||A==0?f.inputKey==x&&f.inputHash==A&&f.inputChar?(x=f.inputChar,A=-1):(f.inputChar=null,f.inputKey=x,f.inputHash=A):f.inputChar=f.inputKey=null),K.state.overwrite&&Y.insertMode&&x=="backspace"&&A==0)return{command:"gotoleft"};if(x=="c"&&A==1&&!Or.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():K.operation(function(){bt(K)})}),{command:"null",passEvent:!0};if(x=="esc"&&!Y.insertMode&&!Y.visualMode&&!K.ace.inMultiSelectMode){var J=gn(K),ie=J.getOverlay();ie&&K.removeOverlay(ie)}if(A==-1||A&1||A===0&&x.length>1){var se=Y.insertMode,ye=_o(A,x,W||{},Y);Y.status==null&&(Y.status="");var ke=Rr(K,ye,"user");return Y=Ri(K),ke&&Y.status!=null?Y.status+=ye:Y.status==null&&(Y.status=""),K._signal("changeStatus"),!ke&&(A!=-1||se)?void 0:{command:"null",passEvent:!ke}}}},attach:function(f){function A(){var D=Ri(x).insertMode;x.ace.renderer.setStyle("normal-mode",!D),f.textInput.setCommandMode(!D),f.renderer.$keepTextAreaAtCursor=D,f.renderer.$blockCursor=!D}f.state||(f.state={});var x=new Fe(f);f.state.cm=x,f.$vimModeHandler=this,p(x),Ri(x).status=null,x.on("vim-command-done",function(){x.virtualSelectionMode()||(Ri(x).status=null,x.ace._signal("changeStatus"),x.ace.session.markUndoGroup())}),x.on("changeStatus",function(){x.ace.renderer.updateCursor(),x.ace._signal("changeStatus")}),x.on("vim-mode-change",function(){x.virtualSelectionMode()||(A(),x._signal("changeStatus"))}),A(),f.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(x)},detach:function(f){var A=f.state.cm;g(A),A.destroy(),f.state.cm=null,f.$vimModeHandler=null,f.renderer.$cursorLayer.drawCursor=null,f.renderer.setStyle("normal-mode",!1),f.textInput.setCommandMode(!1),f.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(f){var A=f.state.cm,x=Ri(A);if(x.insertMode)return"INSERT";var D="";return x.visualMode&&(D+="VISUAL",x.visualLine&&(D+=" LINE"),x.visualBlock&&(D+=" BLOCK")),x.status&&(D+=(D?" ":"")+x.status),D}},mt.defineOption({name:"wrap",set:function(f,A){A&&A.ace.setOption("wrap",f)},type:"boolean"},!1),mt.defineEx("write","w",function(){console.log(":write is not implemented")}),mn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),mn.push({keys:"gq",type:"operator",operator:"hardWrap"}),mt.defineOperator("hardWrap",function(f,A,x,D,W){var H=x[0].anchor.line,K=x[0].head.line;return A.linewise&&K--,br(f.ace,{startRow:H,endRow:K}),Oe(K,0)}),E("textwidth",void 0,"number",["tw"],function(f,A){if(A!==void 0){if(f===void 0){var x=A.ace.getOption("printMarginColumn");return x}var D=Math.round(f);D>1&&A.ace.setOption("printMarginColumn",D)}}),Cn.aceCommand=function(f,A,x){f.vimCmd=A,f.ace.inVirtualSelectionMode?f.ace.on("beforeEndOperation",zi):zi(null,f.ace)},Cn.fold=function(f,A,x){f.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(A.all?2:0)+(A.open?1:0)])},Dr=mn.length,l.handler.defaultKeymap=mn,l.handler.actions=Cn,l.Vim=mt}),function(){ace.require(["ace/keyboard/vim"],function(e){c&&(c.exports=e)})}()}(Cc)),Cc.exports}AC();const kg={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let c=0;c<this.currentPackets.length;c++)if(this.currentPackets[c].mode==="RAW")return!0;return!1},hasDecom:function(){for(let c=0;c<this.currentPackets.length;c++)if(this.currentPackets[c].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(c){this.$emit("config",c)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(c){this.latestData=c}}};var js={exports:{}};/**
|
|
1464
|
-
* @license
|
|
1465
|
-
* Lodash <https://lodash.com/>
|
|
1466
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1467
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1468
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1469
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1470
|
-
*/var $C=js.exports,xf;function MC(){return xf||(xf=1,function(c,u){(function(){var e,l="4.17.21",T=200,b="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",C="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,i="__lodash_placeholder__",s=1,o=2,r=4,n=1,a=2,h=1,m=2,y=4,E=8,M=16,_=32,v=64,R=128,I=256,F=512,L=30,U="...",P=800,O=16,S=1,k=2,N=3,B=1/0,V=9007199254740991,G=17976931348623157e292,Q=NaN,te=4294967295,he=te-1,ne=te>>>1,ce=[["ary",R],["bind",h],["bindKey",m],["curry",E],["curryRight",M],["flip",F],["partial",_],["partialRight",v],["rearg",I]],ue="[object Arguments]",le="[object Array]",me="[object AsyncFunction]",Ae="[object Boolean]",$e="[object Date]",Te="[object DOMException]",Ge="[object Error]",je="[object Function]",at="[object GeneratorFunction]",et="[object Map]",lt="[object Number]",jt="[object Null]",on="[object Object]",Ht="[object Promise]",qn="[object Proxy]",sn="[object RegExp]",yn="[object Set]",wn="[object String]",In="[object Symbol]",pt="[object Undefined]",Ue="[object WeakMap]",Ce="[object WeakSet]",We="[object ArrayBuffer]",qe="[object DataView]",ct="[object Float32Array]",wt="[object Float64Array]",bt="[object Int8Array]",$t="[object Int16Array]",_t="[object Int32Array]",st="[object Uint8Array]",gt="[object Uint8ClampedArray]",hn="[object Uint16Array]",Yn="[object Uint32Array]",mi=/\b__p \+= '';/g,tr=/\b(__p \+=) '' \+/g,Mr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Tr=/[&<>"']/g,Qr=RegExp(Qn.source),ks=RegExp(Tr.source),Ai=/<%-([\s\S]+?)%>/g,Cs=/<%([\s\S]+?)%>/g,yo=/<%=([\s\S]+?)%>/g,Go=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/,$n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ei=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(ei.source),gn=/^\s+/,ti=/\s/,mr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rr=/\{\n\/\* \[wrapped with (.+)\] \*/,wo=/,? & /,qo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ss=/[()=,{}\[\]\/\s]/,_s=/\\(\\)?/g,or=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$i=/\w*$/,Nt=/^[-+]0x[0-9a-f]+$/i,Yo=/^0b[01]+$/i,ni=/^\[object .+?Constructor\]$/,Mn=/^0o[0-7]+$/i,an=/^(?:0|[1-9]\d*)$/,bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bi=/($^)/,ii=/['\n\r\u2028\u2029\\]/g,Hi="\\ud800-\\udfff",Zr="\\u0300-\\u036f",bo="\\ufe20-\\ufe2f",vr="\\u20d0-\\u20ff",vi=Zr+bo+vr,Lr="\\u2700-\\u27bf",Jr="a-z\\xdf-\\xf6\\xf8-\\xff",yi="\\xac\\xb1\\xd7\\xf7",Xr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xo="\\u2000-\\u206f",ko=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eo="A-Z\\xc0-\\xd6\\xd8-\\xde",Fn="\\ufe0e\\ufe0f",Co=yi+Xr+xo+ko,Er="['’]",to="["+Hi+"]",no="["+Co+"]",yr="["+vi+"]",So="\\d+",Qo="["+Lr+"]",io="["+Jr+"]",ro="[^"+Hi+Co+So+Lr+Jr+eo+"]",_o="\\ud83c[\\udffb-\\udfff]",oo="(?:"+yr+"|"+_o+")",Rr="[^"+Hi+"]",zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",wr="["+eo+"]",sr="\\u200d",Zo="(?:"+io+"|"+ro+")",As="(?:"+wr+"|"+ro+")",Ir="(?:"+Er+"(?:d|ll|m|re|s|t|ve))?",ar="(?:"+Er+"(?:D|LL|M|RE|S|T|VE))?",Or=oo+"?",so="["+Fn+"]?",Nr="(?:"+sr+"(?:"+[Rr,zi,Pn].join("|")+")"+so+Or+")*",Jo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",br="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fe=so+Or+Nr,Xo="(?:"+[Qo,zi,Pn].join("|")+")"+Fe,Oe="(?:"+[Rr+yr+"?",yr,zi,Pn,to].join("|")+")",mn=RegExp(Er,"g"),Dr=RegExp(yr,"g"),Mi=RegExp(_o+"(?="+_o+")|"+Oe+Fe,"g"),Tn=RegExp([wr+"?"+io+"+"+Ir+"(?="+[no,wr,"$"].join("|")+")",As+"+"+ar+"(?="+[no,wr+Zo,"$"].join("|")+")",wr+"?"+Zo+"+"+Ir,wr+"+"+ar,br,Jo,So,Xo].join("|"),"g"),es=RegExp("["+sr+Hi+vi+Fn+"]"),Fr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ui=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xr=-1,Kt={};Kt[ct]=Kt[wt]=Kt[bt]=Kt[$t]=Kt[_t]=Kt[st]=Kt[gt]=Kt[hn]=Kt[Yn]=!0,Kt[ue]=Kt[le]=Kt[We]=Kt[Ae]=Kt[qe]=Kt[$e]=Kt[Ge]=Kt[je]=Kt[et]=Kt[lt]=Kt[on]=Kt[sn]=Kt[yn]=Kt[wn]=Kt[Ue]=!1;var Ut={};Ut[ue]=Ut[le]=Ut[We]=Ut[qe]=Ut[Ae]=Ut[$e]=Ut[ct]=Ut[wt]=Ut[bt]=Ut[$t]=Ut[_t]=Ut[et]=Ut[lt]=Ut[on]=Ut[sn]=Ut[yn]=Ut[wn]=Ut[In]=Ut[st]=Ut[gt]=Ut[hn]=Ut[Yn]=!0,Ut[Ge]=Ut[je]=Ut[Ue]=!1;var Gt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Dt={"&":"&","<":"<",">":">",'"':""","'":"'"},Vi={"&":"&","<":"<",">":">",""":'"',"'":"'"},xn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,ln=parseInt,mt=typeof mo=="object"&&mo&&mo.Object===Object&&mo,ci=typeof self=="object"&&self&&self.Object===Object&&self,Jt=mt||ci||Function("return this")(),cn=u&&!u.nodeType&&u,On=cn&&!0&&c&&!c.nodeType&&c,ui=On&&On.exports===cn,ji=ui&&mt.process,kn=function(){try{var pe=On&&On.require&&On.require("util").types;return pe||ji&&ji.binding&&ji.binding("util")}catch{}}(),wi=kn&&kn.isArrayBuffer,ao=kn&&kn.isDate,Cn=kn&&kn.isMap,Ti=kn&&kn.isRegExp,Li=kn&&kn.isSet,Ki=kn&&kn.isTypedArray;function Un(pe,Se,xe){switch(xe.length){case 0:return pe.call(Se);case 1:return pe.call(Se,xe[0]);case 2:return pe.call(Se,xe[0],xe[1]);case 3:return pe.call(Se,xe[0],xe[1],xe[2])}return pe.apply(Se,xe)}function Vn(pe,Se,xe,ze){for(var ot=-1,Ct=pe==null?0:pe.length;++ot<Ct;){var zt=pe[ot];Se(ze,zt,xe(zt),pe)}return ze}function Zn(pe,Se){for(var xe=-1,ze=pe==null?0:pe.length;++xe<ze&&Se(pe[xe],xe,pe)!==!1;);return pe}function Ao(pe,Se){for(var xe=pe==null?0:pe.length;xe--&&Se(pe[xe],xe,pe)!==!1;);return pe}function Jn(pe,Se){for(var xe=-1,ze=pe==null?0:pe.length;++xe<ze;)if(!Se(pe[xe],xe,pe))return!1;return!0}function ri(pe,Se){for(var xe=-1,ze=pe==null?0:pe.length,ot=0,Ct=[];++xe<ze;){var zt=pe[xe];Se(zt,xe,pe)&&(Ct[ot++]=zt)}return Ct}function Ei(pe,Se){var xe=pe==null?0:pe.length;return!!xe&&se(pe,Se,0)>-1}function Ri(pe,Se,xe){for(var ze=-1,ot=pe==null?0:pe.length;++ze<ot;)if(xe(Se,pe[ze]))return!0;return!1}function f(pe,Se){for(var xe=-1,ze=pe==null?0:pe.length,ot=Array(ze);++xe<ze;)ot[xe]=Se(pe[xe],xe,pe);return ot}function A(pe,Se){for(var xe=-1,ze=Se.length,ot=pe.length;++xe<ze;)pe[ot+xe]=Se[xe];return pe}function x(pe,Se,xe,ze){var ot=-1,Ct=pe==null?0:pe.length;for(ze&&Ct&&(xe=pe[++ot]);++ot<Ct;)xe=Se(xe,pe[ot],ot,pe);return xe}function D(pe,Se,xe,ze){var ot=pe==null?0:pe.length;for(ze&&ot&&(xe=pe[--ot]);ot--;)xe=Se(xe,pe[ot],ot,pe);return xe}function W(pe,Se){for(var xe=-1,ze=pe==null?0:pe.length;++xe<ze;)if(Se(pe[xe],xe,pe))return!0;return!1}var H=we("length");function K(pe){return pe.split("")}function Y(pe){return pe.match(qo)||[]}function J(pe,Se,xe){var ze;return xe(pe,function(ot,Ct,zt){if(Se(ot,Ct,zt))return ze=Ct,!1}),ze}function ie(pe,Se,xe,ze){for(var ot=pe.length,Ct=xe+(ze?1:-1);ze?Ct--:++Ct<ot;)if(Se(pe[Ct],Ct,pe))return Ct;return-1}function se(pe,Se,xe){return Se===Se?Je(pe,Se,xe):ie(pe,ke,xe)}function ye(pe,Se,xe,ze){for(var ot=xe-1,Ct=pe.length;++ot<Ct;)if(ze(pe[ot],Se))return ot;return-1}function ke(pe){return pe!==pe}function de(pe,Se){var xe=pe==null?0:pe.length;return xe?nt(pe,Se)/xe:Q}function we(pe){return function(Se){return Se==null?e:Se[pe]}}function Ie(pe){return function(Se){return pe==null?e:pe[Se]}}function Ee(pe,Se,xe,ze,ot){return ot(pe,function(Ct,zt,Tt){xe=ze?(ze=!1,Ct):Se(xe,Ct,zt,Tt)}),xe}function He(pe,Se){var xe=pe.length;for(pe.sort(Se);xe--;)pe[xe]=pe[xe].value;return pe}function nt(pe,Se){for(var xe,ze=-1,ot=pe.length;++ze<ot;){var Ct=Se(pe[ze]);Ct!==e&&(xe=xe===e?Ct:xe+Ct)}return xe}function Xe(pe,Se){for(var xe=-1,ze=Array(pe);++xe<pe;)ze[xe]=Se(xe);return ze}function Qe(pe,Se){return f(Se,function(xe){return[xe,pe[xe]]})}function Xt(pe){return pe&&pe.slice(0,Mt(pe)+1).replace(gn,"")}function rt(pe){return function(Se){return pe(Se)}}function dn(pe,Se){return f(Se,function(xe){return pe[xe]})}function Et(pe,Se){return pe.has(Se)}function vt(pe,Se){for(var xe=-1,ze=pe.length;++xe<ze&&se(Se,pe[xe],0)>-1;);return xe}function Sn(pe,Se){for(var xe=pe.length;xe--&&se(Se,pe[xe],0)>-1;);return xe}function jn(pe,Se){for(var xe=pe.length,ze=0;xe--;)pe[xe]===Se&&++ze;return ze}var fn=Ie(Gt),j=Ie(Dt);function Z(pe){return"\\"+xn[pe]}function re(pe,Se){return pe==null?e:pe[Se]}function oe(pe){return es.test(pe)}function ge(pe){return Fr.test(pe)}function be(pe){for(var Se,xe=[];!(Se=pe.next()).done;)xe.push(Se.value);return xe}function Me(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(ze,ot){xe[++Se]=[ot,ze]}),xe}function De(pe,Se){return function(xe){return pe(Se(xe))}}function Pe(pe,Se){for(var xe=-1,ze=pe.length,ot=0,Ct=[];++xe<ze;){var zt=pe[xe];(zt===Se||zt===i)&&(pe[xe]=i,Ct[ot++]=xe)}return Ct}function Ve(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(ze){xe[++Se]=ze}),xe}function Ye(pe){var Se=-1,xe=Array(pe.size);return pe.forEach(function(ze){xe[++Se]=[ze,ze]}),xe}function Je(pe,Se,xe){for(var ze=xe-1,ot=pe.length;++ze<ot;)if(pe[ze]===Se)return ze;return-1}function yt(pe,Se,xe){for(var ze=xe+1;ze--;)if(pe[ze]===Se)return ze;return ze}function It(pe){return oe(pe)?it(pe):H(pe)}function xt(pe){return oe(pe)?tn(pe):K(pe)}function Mt(pe){for(var Se=pe.length;Se--&&ti.test(pe.charAt(Se)););return Se}var ut=Ie(Vi);function it(pe){for(var Se=Mi.lastIndex=0;Mi.test(pe);)++Se;return Se}function tn(pe){return pe.match(Mi)||[]}function pn(pe){return pe.match(Tn)||[]}var Nn=function pe(Se){Se=Se==null?Jt:Wt.defaults(Jt.Object(),Se,Wt.pick(Jt,Ui));var xe=Se.Array,ze=Se.Date,ot=Se.Error,Ct=Se.Function,zt=Se.Math,Tt=Se.Object,hi=Se.RegExp,Gi=Se.String,en=Se.TypeError,Kn=xe.prototype,Pr=Ct.prototype,_n=Tt.prototype,$o=Se["__core-js_shared__"],ia=Pr.toString,Zt=_n.hasOwnProperty,fm=0,eh=function(){var t=/[^.]+$/.exec($o&&$o.keys&&$o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ra=_n.toString,pm=ia.call(Tt),gm=Jt._,mm=hi("^"+ia.call(Zt).replace(ei,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=ui?Se.Buffer:e,lo=Se.Symbol,sa=Se.Uint8Array,th=oa?oa.allocUnsafe:e,aa=De(Tt.getPrototypeOf,Tt),nh=Tt.create,ih=_n.propertyIsEnumerable,la=Kn.splice,rh=lo?lo.isConcatSpreadable:e,$s=lo?lo.iterator:e,Mo=lo?lo.toStringTag:e,ca=function(){try{var t=Io(Tt,"defineProperty");return t({},"",{}),t}catch{}}(),vm=Se.clearTimeout!==Jt.clearTimeout&&Se.clearTimeout,ym=ze&&ze.now!==Jt.Date.now&&ze.now,wm=Se.setTimeout!==Jt.setTimeout&&Se.setTimeout,ua=zt.ceil,ha=zt.floor,yl=Tt.getOwnPropertySymbols,bm=oa?oa.isBuffer:e,oh=Se.isFinite,xm=Kn.join,km=De(Tt.keys,Tt),Wn=zt.max,oi=zt.min,Cm=ze.now,Sm=Se.parseInt,sh=zt.random,_m=Kn.reverse,wl=Io(Se,"DataView"),Ms=Io(Se,"Map"),bl=Io(Se,"Promise"),ts=Io(Se,"Set"),Ts=Io(Se,"WeakMap"),Ls=Io(Tt,"create"),da=Ts&&new Ts,ns={},Am=Oo(wl),$m=Oo(Ms),Mm=Oo(bl),Tm=Oo(ts),Lm=Oo(Ts),fa=lo?lo.prototype:e,Es=fa?fa.valueOf:e,ah=fa?fa.toString:e;function X(t){if(An(t)&&!kt(t)&&!(t instanceof Ft)){if(t instanceof qi)return t;if(Zt.call(t,"__wrapped__"))return ld(t)}return new qi(t)}var is=function(){function t(){}return function(d){if(!vn(d))return{};if(nh)return nh(d);t.prototype=d;var $=new t;return t.prototype=e,$}}();function pa(){}function qi(t,d){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}X.templateSettings={escape:Ai,evaluate:Cs,interpolate:yo,variable:"",imports:{_:X}},X.prototype=pa.prototype,X.prototype.constructor=X,qi.prototype=is(pa.prototype),qi.prototype.constructor=qi;function Ft(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=te,this.__views__=[]}function Em(){var t=new Ft(this.__wrapped__);return t.__actions__=bi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=bi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=bi(this.__views__),t}function Rm(){if(this.__filtered__){var t=new Ft(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Im(){var t=this.__wrapped__.value(),d=this.__dir__,$=kt(t),z=d<0,q=$?t.length:0,ee=jv(0,q,this.__views__),ae=ee.start,fe=ee.end,ve=fe-ae,Le=z?fe:ae-1,Re=this.__iteratees__,Ne=Re.length,Ke=0,tt=oi(ve,this.__takeCount__);if(!$||!z&&q==ve&&tt==ve)return Eh(t,this.__actions__);var dt=[];e:for(;ve--&&Ke<tt;){Le+=d;for(var Lt=-1,ft=t[Le];++Lt<Ne;){var Ot=Re[Lt],Bt=Ot.iteratee,Ni=Ot.type,pi=Bt(ft);if(Ni==k)ft=pi;else if(!pi){if(Ni==S)continue e;break e}}dt[Ke++]=ft}return dt}Ft.prototype=is(pa.prototype),Ft.prototype.constructor=Ft;function To(t){var d=-1,$=t==null?0:t.length;for(this.clear();++d<$;){var z=t[d];this.set(z[0],z[1])}}function Om(){this.__data__=Ls?Ls(null):{},this.size=0}function Nm(t){var d=this.has(t)&&delete this.__data__[t];return this.size-=d?1:0,d}function Dm(t){var d=this.__data__;if(Ls){var $=d[t];return $===p?e:$}return Zt.call(d,t)?d[t]:e}function Fm(t){var d=this.__data__;return Ls?d[t]!==e:Zt.call(d,t)}function Pm(t,d){var $=this.__data__;return this.size+=this.has(t)?0:1,$[t]=Ls&&d===e?p:d,this}To.prototype.clear=Om,To.prototype.delete=Nm,To.prototype.get=Dm,To.prototype.has=Fm,To.prototype.set=Pm;function Wr(t){var d=-1,$=t==null?0:t.length;for(this.clear();++d<$;){var z=t[d];this.set(z[0],z[1])}}function Wm(){this.__data__=[],this.size=0}function Bm(t){var d=this.__data__,$=ga(d,t);if($<0)return!1;var z=d.length-1;return $==z?d.pop():la.call(d,$,1),--this.size,!0}function Hm(t){var d=this.__data__,$=ga(d,t);return $<0?e:d[$][1]}function zm(t){return ga(this.__data__,t)>-1}function Um(t,d){var $=this.__data__,z=ga($,t);return z<0?(++this.size,$.push([t,d])):$[z][1]=d,this}Wr.prototype.clear=Wm,Wr.prototype.delete=Bm,Wr.prototype.get=Hm,Wr.prototype.has=zm,Wr.prototype.set=Um;function Br(t){var d=-1,$=t==null?0:t.length;for(this.clear();++d<$;){var z=t[d];this.set(z[0],z[1])}}function Vm(){this.size=0,this.__data__={hash:new To,map:new(Ms||Wr),string:new To}}function jm(t){var d=$a(this,t).delete(t);return this.size-=d?1:0,d}function Km(t){return $a(this,t).get(t)}function Gm(t){return $a(this,t).has(t)}function qm(t,d){var $=$a(this,t),z=$.size;return $.set(t,d),this.size+=$.size==z?0:1,this}Br.prototype.clear=Vm,Br.prototype.delete=jm,Br.prototype.get=Km,Br.prototype.has=Gm,Br.prototype.set=qm;function Lo(t){var d=-1,$=t==null?0:t.length;for(this.__data__=new Br;++d<$;)this.add(t[d])}function Ym(t){return this.__data__.set(t,p),this}function Qm(t){return this.__data__.has(t)}Lo.prototype.add=Lo.prototype.push=Ym,Lo.prototype.has=Qm;function lr(t){var d=this.__data__=new Wr(t);this.size=d.size}function Zm(){this.__data__=new Wr,this.size=0}function Jm(t){var d=this.__data__,$=d.delete(t);return this.size=d.size,$}function Xm(t){return this.__data__.get(t)}function ev(t){return this.__data__.has(t)}function tv(t,d){var $=this.__data__;if($ instanceof Wr){var z=$.__data__;if(!Ms||z.length<T-1)return z.push([t,d]),this.size=++$.size,this;$=this.__data__=new Br(z)}return $.set(t,d),this.size=$.size,this}lr.prototype.clear=Zm,lr.prototype.delete=Jm,lr.prototype.get=Xm,lr.prototype.has=ev,lr.prototype.set=tv;function lh(t,d){var $=kt(t),z=!$&&No(t),q=!$&&!z&&po(t),ee=!$&&!z&&!q&&as(t),ae=$||z||q||ee,fe=ae?Xe(t.length,Gi):[],ve=fe.length;for(var Le in t)(d||Zt.call(t,Le))&&!(ae&&(Le=="length"||q&&(Le=="offset"||Le=="parent")||ee&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||Vr(Le,ve)))&&fe.push(Le);return fe}function ch(t){var d=t.length;return d?t[El(0,d-1)]:e}function nv(t,d){return Ma(bi(t),Eo(d,0,t.length))}function iv(t){return Ma(bi(t))}function xl(t,d,$){($!==e&&!cr(t[d],$)||$===e&&!(d in t))&&Hr(t,d,$)}function Rs(t,d,$){var z=t[d];(!(Zt.call(t,d)&&cr(z,$))||$===e&&!(d in t))&&Hr(t,d,$)}function ga(t,d){for(var $=t.length;$--;)if(cr(t[$][0],d))return $;return-1}function rv(t,d,$,z){return co(t,function(q,ee,ae){d(z,q,$(q),ae)}),z}function uh(t,d){return t&&Cr(d,Gn(d),t)}function ov(t,d){return t&&Cr(d,ki(d),t)}function Hr(t,d,$){d=="__proto__"&&ca?ca(t,d,{configurable:!0,enumerable:!0,value:$,writable:!0}):t[d]=$}function kl(t,d){for(var $=-1,z=d.length,q=xe(z),ee=t==null;++$<z;)q[$]=ee?e:nc(t,d[$]);return q}function Eo(t,d,$){return t===t&&($!==e&&(t=t<=$?t:$),d!==e&&(t=t>=d?t:d)),t}function Yi(t,d,$,z,q,ee){var ae,fe=d&s,ve=d&o,Le=d&r;if($&&(ae=q?$(t,z,q,ee):$(t)),ae!==e)return ae;if(!vn(t))return t;var Re=kt(t);if(Re){if(ae=Gv(t),!fe)return bi(t,ae)}else{var Ne=si(t),Ke=Ne==je||Ne==at;if(po(t))return Oh(t,fe);if(Ne==on||Ne==ue||Ke&&!q){if(ae=ve||Ke?{}:Xh(t),!fe)return ve?Dv(t,ov(ae,t)):Nv(t,uh(ae,t))}else{if(!Ut[Ne])return q?t:{};ae=qv(t,Ne,fe)}}ee||(ee=new lr);var tt=ee.get(t);if(tt)return tt;ee.set(t,ae),Md(t)?t.forEach(function(ft){ae.add(Yi(ft,d,$,ft,t,ee))}):Ad(t)&&t.forEach(function(ft,Ot){ae.set(Ot,Yi(ft,d,$,Ot,t,ee))});var dt=Le?ve?zl:Hl:ve?ki:Gn,Lt=Re?e:dt(t);return Zn(Lt||t,function(ft,Ot){Lt&&(Ot=ft,ft=t[Ot]),Rs(ae,Ot,Yi(ft,d,$,Ot,t,ee))}),ae}function sv(t){var d=Gn(t);return function($){return hh($,t,d)}}function hh(t,d,$){var z=$.length;if(t==null)return!z;for(t=Tt(t);z--;){var q=$[z],ee=d[q],ae=t[q];if(ae===e&&!(q in t)||!ee(ae))return!1}return!0}function dh(t,d,$){if(typeof t!="function")throw new en(w);return Ws(function(){t.apply(e,$)},d)}function Is(t,d,$,z){var q=-1,ee=Ei,ae=!0,fe=t.length,ve=[],Le=d.length;if(!fe)return ve;$&&(d=f(d,rt($))),z?(ee=Ri,ae=!1):d.length>=T&&(ee=Et,ae=!1,d=new Lo(d));e:for(;++q<fe;){var Re=t[q],Ne=$==null?Re:$(Re);if(Re=z||Re!==0?Re:0,ae&&Ne===Ne){for(var Ke=Le;Ke--;)if(d[Ke]===Ne)continue e;ve.push(Re)}else ee(d,Ne,z)||ve.push(Re)}return ve}var co=Wh(kr),fh=Wh(Sl,!0);function av(t,d){var $=!0;return co(t,function(z,q,ee){return $=!!d(z,q,ee),$}),$}function ma(t,d,$){for(var z=-1,q=t.length;++z<q;){var ee=t[z],ae=d(ee);if(ae!=null&&(fe===e?ae===ae&&!Oi(ae):$(ae,fe)))var fe=ae,ve=ee}return ve}function lv(t,d,$,z){var q=t.length;for($=At($),$<0&&($=-$>q?0:q+$),z=z===e||z>q?q:At(z),z<0&&(z+=q),z=$>z?0:Ld(z);$<z;)t[$++]=d;return t}function ph(t,d){var $=[];return co(t,function(z,q,ee){d(z,q,ee)&&$.push(z)}),$}function Xn(t,d,$,z,q){var ee=-1,ae=t.length;for($||($=Qv),q||(q=[]);++ee<ae;){var fe=t[ee];d>0&&$(fe)?d>1?Xn(fe,d-1,$,z,q):A(q,fe):z||(q[q.length]=fe)}return q}var Cl=Bh(),gh=Bh(!0);function kr(t,d){return t&&Cl(t,d,Gn)}function Sl(t,d){return t&&gh(t,d,Gn)}function va(t,d){return ri(d,function($){return jr(t[$])})}function Ro(t,d){d=ho(d,t);for(var $=0,z=d.length;t!=null&&$<z;)t=t[Sr(d[$++])];return $&&$==z?t:e}function mh(t,d,$){var z=d(t);return kt(t)?z:A(z,$(t))}function di(t){return t==null?t===e?pt:jt:Mo&&Mo in Tt(t)?Vv(t):iy(t)}function _l(t,d){return t>d}function cv(t,d){return t!=null&&Zt.call(t,d)}function uv(t,d){return t!=null&&d in Tt(t)}function hv(t,d,$){return t>=oi(d,$)&&t<Wn(d,$)}function Al(t,d,$){for(var z=$?Ri:Ei,q=t[0].length,ee=t.length,ae=ee,fe=xe(ee),ve=1/0,Le=[];ae--;){var Re=t[ae];ae&&d&&(Re=f(Re,rt(d))),ve=oi(Re.length,ve),fe[ae]=!$&&(d||q>=120&&Re.length>=120)?new Lo(ae&&Re):e}Re=t[0];var Ne=-1,Ke=fe[0];e:for(;++Ne<q&&Le.length<ve;){var tt=Re[Ne],dt=d?d(tt):tt;if(tt=$||tt!==0?tt:0,!(Ke?Et(Ke,dt):z(Le,dt,$))){for(ae=ee;--ae;){var Lt=fe[ae];if(!(Lt?Et(Lt,dt):z(t[ae],dt,$)))continue e}Ke&&Ke.push(dt),Le.push(tt)}}return Le}function dv(t,d,$,z){return kr(t,function(q,ee,ae){d(z,$(q),ee,ae)}),z}function Os(t,d,$){d=ho(d,t),t=id(t,d);var z=t==null?t:t[Sr(Zi(d))];return z==null?e:Un(z,t,$)}function vh(t){return An(t)&&di(t)==ue}function fv(t){return An(t)&&di(t)==We}function pv(t){return An(t)&&di(t)==$e}function Ns(t,d,$,z,q){return t===d?!0:t==null||d==null||!An(t)&&!An(d)?t!==t&&d!==d:gv(t,d,$,z,Ns,q)}function gv(t,d,$,z,q,ee){var ae=kt(t),fe=kt(d),ve=ae?le:si(t),Le=fe?le:si(d);ve=ve==ue?on:ve,Le=Le==ue?on:Le;var Re=ve==on,Ne=Le==on,Ke=ve==Le;if(Ke&&po(t)){if(!po(d))return!1;ae=!0,Re=!1}if(Ke&&!Re)return ee||(ee=new lr),ae||as(t)?Qh(t,d,$,z,q,ee):zv(t,d,ve,$,z,q,ee);if(!($&n)){var tt=Re&&Zt.call(t,"__wrapped__"),dt=Ne&&Zt.call(d,"__wrapped__");if(tt||dt){var Lt=tt?t.value():t,ft=dt?d.value():d;return ee||(ee=new lr),q(Lt,ft,$,z,ee)}}return Ke?(ee||(ee=new lr),Uv(t,d,$,z,q,ee)):!1}function mv(t){return An(t)&&si(t)==et}function $l(t,d,$,z){var q=$.length,ee=q,ae=!z;if(t==null)return!ee;for(t=Tt(t);q--;){var fe=$[q];if(ae&&fe[2]?fe[1]!==t[fe[0]]:!(fe[0]in t))return!1}for(;++q<ee;){fe=$[q];var ve=fe[0],Le=t[ve],Re=fe[1];if(ae&&fe[2]){if(Le===e&&!(ve in t))return!1}else{var Ne=new lr;if(z)var Ke=z(Le,Re,ve,t,d,Ne);if(!(Ke===e?Ns(Re,Le,n|a,z,Ne):Ke))return!1}}return!0}function yh(t){if(!vn(t)||Jv(t))return!1;var d=jr(t)?mm:ni;return d.test(Oo(t))}function vv(t){return An(t)&&di(t)==sn}function yv(t){return An(t)&&si(t)==yn}function wv(t){return An(t)&&Oa(t.length)&&!!Kt[di(t)]}function wh(t){return typeof t=="function"?t:t==null?Ci:typeof t=="object"?kt(t)?kh(t[0],t[1]):xh(t):Hd(t)}function Ml(t){if(!Ps(t))return km(t);var d=[];for(var $ in Tt(t))Zt.call(t,$)&&$!="constructor"&&d.push($);return d}function bv(t){if(!vn(t))return ny(t);var d=Ps(t),$=[];for(var z in t)z=="constructor"&&(d||!Zt.call(t,z))||$.push(z);return $}function Tl(t,d){return t<d}function bh(t,d){var $=-1,z=xi(t)?xe(t.length):[];return co(t,function(q,ee,ae){z[++$]=d(q,ee,ae)}),z}function xh(t){var d=Vl(t);return d.length==1&&d[0][2]?td(d[0][0],d[0][1]):function($){return $===t||$l($,t,d)}}function kh(t,d){return Kl(t)&&ed(d)?td(Sr(t),d):function($){var z=nc($,t);return z===e&&z===d?ic($,t):Ns(d,z,n|a)}}function ya(t,d,$,z,q){t!==d&&Cl(d,function(ee,ae){if(q||(q=new lr),vn(ee))xv(t,d,ae,$,ya,z,q);else{var fe=z?z(ql(t,ae),ee,ae+"",t,d,q):e;fe===e&&(fe=ee),xl(t,ae,fe)}},ki)}function xv(t,d,$,z,q,ee,ae){var fe=ql(t,$),ve=ql(d,$),Le=ae.get(ve);if(Le){xl(t,$,Le);return}var Re=ee?ee(fe,ve,$+"",t,d,ae):e,Ne=Re===e;if(Ne){var Ke=kt(ve),tt=!Ke&&po(ve),dt=!Ke&&!tt&&as(ve);Re=ve,Ke||tt||dt?kt(fe)?Re=fe:Ln(fe)?Re=bi(fe):tt?(Ne=!1,Re=Oh(ve,!0)):dt?(Ne=!1,Re=Nh(ve,!0)):Re=[]:Bs(ve)||No(ve)?(Re=fe,No(fe)?Re=Ed(fe):(!vn(fe)||jr(fe))&&(Re=Xh(ve))):Ne=!1}Ne&&(ae.set(ve,Re),q(Re,ve,z,ee,ae),ae.delete(ve)),xl(t,$,Re)}function Ch(t,d){var $=t.length;if($)return d+=d<0?$:0,Vr(d,$)?t[d]:e}function Sh(t,d,$){d.length?d=f(d,function(ee){return kt(ee)?function(ae){return Ro(ae,ee.length===1?ee[0]:ee)}:ee}):d=[Ci];var z=-1;d=f(d,rt(ht()));var q=bh(t,function(ee,ae,fe){var ve=f(d,function(Le){return Le(ee)});return{criteria:ve,index:++z,value:ee}});return He(q,function(ee,ae){return Ov(ee,ae,$)})}function kv(t,d){return _h(t,d,function($,z){return ic(t,z)})}function _h(t,d,$){for(var z=-1,q=d.length,ee={};++z<q;){var ae=d[z],fe=Ro(t,ae);$(fe,ae)&&Ds(ee,ho(ae,t),fe)}return ee}function Cv(t){return function(d){return Ro(d,t)}}function Ll(t,d,$,z){var q=z?ye:se,ee=-1,ae=d.length,fe=t;for(t===d&&(d=bi(d)),$&&(fe=f(t,rt($)));++ee<ae;)for(var ve=0,Le=d[ee],Re=$?$(Le):Le;(ve=q(fe,Re,ve,z))>-1;)fe!==t&&la.call(fe,ve,1),la.call(t,ve,1);return t}function Ah(t,d){for(var $=t?d.length:0,z=$-1;$--;){var q=d[$];if($==z||q!==ee){var ee=q;Vr(q)?la.call(t,q,1):Ol(t,q)}}return t}function El(t,d){return t+ha(sh()*(d-t+1))}function Sv(t,d,$,z){for(var q=-1,ee=Wn(ua((d-t)/($||1)),0),ae=xe(ee);ee--;)ae[z?ee:++q]=t,t+=$;return ae}function Rl(t,d){var $="";if(!t||d<1||d>V)return $;do d%2&&($+=t),d=ha(d/2),d&&(t+=t);while(d);return $}function Rt(t,d){return Yl(nd(t,d,Ci),t+"")}function _v(t){return ch(ls(t))}function Av(t,d){var $=ls(t);return Ma($,Eo(d,0,$.length))}function Ds(t,d,$,z){if(!vn(t))return t;d=ho(d,t);for(var q=-1,ee=d.length,ae=ee-1,fe=t;fe!=null&&++q<ee;){var ve=Sr(d[q]),Le=$;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return t;if(q!=ae){var Re=fe[ve];Le=z?z(Re,ve,fe):e,Le===e&&(Le=vn(Re)?Re:Vr(d[q+1])?[]:{})}Rs(fe,ve,Le),fe=fe[ve]}return t}var $h=da?function(t,d){return da.set(t,d),t}:Ci,$v=ca?function(t,d){return ca(t,"toString",{configurable:!0,enumerable:!1,value:oc(d),writable:!0})}:Ci;function Mv(t){return Ma(ls(t))}function Qi(t,d,$){var z=-1,q=t.length;d<0&&(d=-d>q?0:q+d),$=$>q?q:$,$<0&&($+=q),q=d>$?0:$-d>>>0,d>>>=0;for(var ee=xe(q);++z<q;)ee[z]=t[z+d];return ee}function Tv(t,d){var $;return co(t,function(z,q,ee){return $=d(z,q,ee),!$}),!!$}function wa(t,d,$){var z=0,q=t==null?z:t.length;if(typeof d=="number"&&d===d&&q<=ne){for(;z<q;){var ee=z+q>>>1,ae=t[ee];ae!==null&&!Oi(ae)&&($?ae<=d:ae<d)?z=ee+1:q=ee}return q}return Il(t,d,Ci,$)}function Il(t,d,$,z){var q=0,ee=t==null?0:t.length;if(ee===0)return 0;d=$(d);for(var ae=d!==d,fe=d===null,ve=Oi(d),Le=d===e;q<ee;){var Re=ha((q+ee)/2),Ne=$(t[Re]),Ke=Ne!==e,tt=Ne===null,dt=Ne===Ne,Lt=Oi(Ne);if(ae)var ft=z||dt;else Le?ft=dt&&(z||Ke):fe?ft=dt&&Ke&&(z||!tt):ve?ft=dt&&Ke&&!tt&&(z||!Lt):tt||Lt?ft=!1:ft=z?Ne<=d:Ne<d;ft?q=Re+1:ee=Re}return oi(ee,he)}function Mh(t,d){for(var $=-1,z=t.length,q=0,ee=[];++$<z;){var ae=t[$],fe=d?d(ae):ae;if(!$||!cr(fe,ve)){var ve=fe;ee[q++]=ae===0?0:ae}}return ee}function Th(t){return typeof t=="number"?t:Oi(t)?Q:+t}function Ii(t){if(typeof t=="string")return t;if(kt(t))return f(t,Ii)+"";if(Oi(t))return ah?ah.call(t):"";var d=t+"";return d=="0"&&1/t==-B?"-0":d}function uo(t,d,$){var z=-1,q=Ei,ee=t.length,ae=!0,fe=[],ve=fe;if($)ae=!1,q=Ri;else if(ee>=T){var Le=d?null:Bv(t);if(Le)return Ve(Le);ae=!1,q=Et,ve=new Lo}else ve=d?[]:fe;e:for(;++z<ee;){var Re=t[z],Ne=d?d(Re):Re;if(Re=$||Re!==0?Re:0,ae&&Ne===Ne){for(var Ke=ve.length;Ke--;)if(ve[Ke]===Ne)continue e;d&&ve.push(Ne),fe.push(Re)}else q(ve,Ne,$)||(ve!==fe&&ve.push(Ne),fe.push(Re))}return fe}function Ol(t,d){return d=ho(d,t),t=id(t,d),t==null||delete t[Sr(Zi(d))]}function Lh(t,d,$,z){return Ds(t,d,$(Ro(t,d)),z)}function ba(t,d,$,z){for(var q=t.length,ee=z?q:-1;(z?ee--:++ee<q)&&d(t[ee],ee,t););return $?Qi(t,z?0:ee,z?ee+1:q):Qi(t,z?ee+1:0,z?q:ee)}function Eh(t,d){var $=t;return $ instanceof Ft&&($=$.value()),x(d,function(z,q){return q.func.apply(q.thisArg,A([z],q.args))},$)}function Nl(t,d,$){var z=t.length;if(z<2)return z?uo(t[0]):[];for(var q=-1,ee=xe(z);++q<z;)for(var ae=t[q],fe=-1;++fe<z;)fe!=q&&(ee[q]=Is(ee[q]||ae,t[fe],d,$));return uo(Xn(ee,1),d,$)}function Rh(t,d,$){for(var z=-1,q=t.length,ee=d.length,ae={};++z<q;){var fe=z<ee?d[z]:e;$(ae,t[z],fe)}return ae}function Dl(t){return Ln(t)?t:[]}function Fl(t){return typeof t=="function"?t:Ci}function ho(t,d){return kt(t)?t:Kl(t,d)?[t]:ad(Yt(t))}var Lv=Rt;function fo(t,d,$){var z=t.length;return $=$===e?z:$,!d&&$>=z?t:Qi(t,d,$)}var Ih=vm||function(t){return Jt.clearTimeout(t)};function Oh(t,d){if(d)return t.slice();var $=t.length,z=th?th($):new t.constructor($);return t.copy(z),z}function Pl(t){var d=new t.constructor(t.byteLength);return new sa(d).set(new sa(t)),d}function Ev(t,d){var $=d?Pl(t.buffer):t.buffer;return new t.constructor($,t.byteOffset,t.byteLength)}function Rv(t){var d=new t.constructor(t.source,$i.exec(t));return d.lastIndex=t.lastIndex,d}function Iv(t){return Es?Tt(Es.call(t)):{}}function Nh(t,d){var $=d?Pl(t.buffer):t.buffer;return new t.constructor($,t.byteOffset,t.length)}function Dh(t,d){if(t!==d){var $=t!==e,z=t===null,q=t===t,ee=Oi(t),ae=d!==e,fe=d===null,ve=d===d,Le=Oi(d);if(!fe&&!Le&&!ee&&t>d||ee&&ae&&ve&&!fe&&!Le||z&&ae&&ve||!$&&ve||!q)return 1;if(!z&&!ee&&!Le&&t<d||Le&&$&&q&&!z&&!ee||fe&&$&&q||!ae&&q||!ve)return-1}return 0}function Ov(t,d,$){for(var z=-1,q=t.criteria,ee=d.criteria,ae=q.length,fe=$.length;++z<ae;){var ve=Dh(q[z],ee[z]);if(ve){if(z>=fe)return ve;var Le=$[z];return ve*(Le=="desc"?-1:1)}}return t.index-d.index}function Fh(t,d,$,z){for(var q=-1,ee=t.length,ae=$.length,fe=-1,ve=d.length,Le=Wn(ee-ae,0),Re=xe(ve+Le),Ne=!z;++fe<ve;)Re[fe]=d[fe];for(;++q<ae;)(Ne||q<ee)&&(Re[$[q]]=t[q]);for(;Le--;)Re[fe++]=t[q++];return Re}function Ph(t,d,$,z){for(var q=-1,ee=t.length,ae=-1,fe=$.length,ve=-1,Le=d.length,Re=Wn(ee-fe,0),Ne=xe(Re+Le),Ke=!z;++q<Re;)Ne[q]=t[q];for(var tt=q;++ve<Le;)Ne[tt+ve]=d[ve];for(;++ae<fe;)(Ke||q<ee)&&(Ne[tt+$[ae]]=t[q++]);return Ne}function bi(t,d){var $=-1,z=t.length;for(d||(d=xe(z));++$<z;)d[$]=t[$];return d}function Cr(t,d,$,z){var q=!$;$||($={});for(var ee=-1,ae=d.length;++ee<ae;){var fe=d[ee],ve=z?z($[fe],t[fe],fe,$,t):e;ve===e&&(ve=t[fe]),q?Hr($,fe,ve):Rs($,fe,ve)}return $}function Nv(t,d){return Cr(t,jl(t),d)}function Dv(t,d){return Cr(t,Zh(t),d)}function xa(t,d){return function($,z){var q=kt($)?Vn:rv,ee=d?d():{};return q($,t,ht(z,2),ee)}}function rs(t){return Rt(function(d,$){var z=-1,q=$.length,ee=q>1?$[q-1]:e,ae=q>2?$[2]:e;for(ee=t.length>3&&typeof ee=="function"?(q--,ee):e,ae&&fi($[0],$[1],ae)&&(ee=q<3?e:ee,q=1),d=Tt(d);++z<q;){var fe=$[z];fe&&t(d,fe,z,ee)}return d})}function Wh(t,d){return function($,z){if($==null)return $;if(!xi($))return t($,z);for(var q=$.length,ee=d?q:-1,ae=Tt($);(d?ee--:++ee<q)&&z(ae[ee],ee,ae)!==!1;);return $}}function Bh(t){return function(d,$,z){for(var q=-1,ee=Tt(d),ae=z(d),fe=ae.length;fe--;){var ve=ae[t?fe:++q];if($(ee[ve],ve,ee)===!1)break}return d}}function Fv(t,d,$){var z=d&h,q=Fs(t);function ee(){var ae=this&&this!==Jt&&this instanceof ee?q:t;return ae.apply(z?$:this,arguments)}return ee}function Hh(t){return function(d){d=Yt(d);var $=oe(d)?xt(d):e,z=$?$[0]:d.charAt(0),q=$?fo($,1).join(""):d.slice(1);return z[t]()+q}}function os(t){return function(d){return x(Wd(Pd(d).replace(mn,"")),t,"")}}function Fs(t){return function(){var d=arguments;switch(d.length){case 0:return new t;case 1:return new t(d[0]);case 2:return new t(d[0],d[1]);case 3:return new t(d[0],d[1],d[2]);case 4:return new t(d[0],d[1],d[2],d[3]);case 5:return new t(d[0],d[1],d[2],d[3],d[4]);case 6:return new t(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new t(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var $=is(t.prototype),z=t.apply($,d);return vn(z)?z:$}}function Pv(t,d,$){var z=Fs(t);function q(){for(var ee=arguments.length,ae=xe(ee),fe=ee,ve=ss(q);fe--;)ae[fe]=arguments[fe];var Le=ee<3&&ae[0]!==ve&&ae[ee-1]!==ve?[]:Pe(ae,ve);if(ee-=Le.length,ee<$)return Kh(t,d,ka,q.placeholder,e,ae,Le,e,e,$-ee);var Re=this&&this!==Jt&&this instanceof q?z:t;return Un(Re,this,ae)}return q}function zh(t){return function(d,$,z){var q=Tt(d);if(!xi(d)){var ee=ht($,3);d=Gn(d),$=function(fe){return ee(q[fe],fe,q)}}var ae=t(d,$,z);return ae>-1?q[ee?d[ae]:ae]:e}}function Uh(t){return Ur(function(d){var $=d.length,z=$,q=qi.prototype.thru;for(t&&d.reverse();z--;){var ee=d[z];if(typeof ee!="function")throw new en(w);if(q&&!ae&&Aa(ee)=="wrapper")var ae=new qi([],!0)}for(z=ae?z:$;++z<$;){ee=d[z];var fe=Aa(ee),ve=fe=="wrapper"?Ul(ee):e;ve&&Gl(ve[0])&&ve[1]==(R|E|_|I)&&!ve[4].length&&ve[9]==1?ae=ae[Aa(ve[0])].apply(ae,ve[3]):ae=ee.length==1&&Gl(ee)?ae[fe]():ae.thru(ee)}return function(){var Le=arguments,Re=Le[0];if(ae&&Le.length==1&&kt(Re))return ae.plant(Re).value();for(var Ne=0,Ke=$?d[Ne].apply(this,Le):Re;++Ne<$;)Ke=d[Ne].call(this,Ke);return Ke}})}function ka(t,d,$,z,q,ee,ae,fe,ve,Le){var Re=d&R,Ne=d&h,Ke=d&m,tt=d&(E|M),dt=d&F,Lt=Ke?e:Fs(t);function ft(){for(var Ot=arguments.length,Bt=xe(Ot),Ni=Ot;Ni--;)Bt[Ni]=arguments[Ni];if(tt)var pi=ss(ft),Di=jn(Bt,pi);if(z&&(Bt=Fh(Bt,z,q,tt)),ee&&(Bt=Ph(Bt,ee,ae,tt)),Ot-=Di,tt&&Ot<Le){var En=Pe(Bt,pi);return Kh(t,d,ka,ft.placeholder,$,Bt,En,fe,ve,Le-Ot)}var ur=Ne?$:this,Gr=Ke?ur[t]:t;return Ot=Bt.length,fe?Bt=ry(Bt,fe):dt&&Ot>1&&Bt.reverse(),Re&&ve<Ot&&(Bt.length=ve),this&&this!==Jt&&this instanceof ft&&(Gr=Lt||Fs(Gr)),Gr.apply(ur,Bt)}return ft}function Vh(t,d){return function($,z){return dv($,t,d(z),{})}}function Ca(t,d){return function($,z){var q;if($===e&&z===e)return d;if($!==e&&(q=$),z!==e){if(q===e)return z;typeof $=="string"||typeof z=="string"?($=Ii($),z=Ii(z)):($=Th($),z=Th(z)),q=t($,z)}return q}}function Wl(t){return Ur(function(d){return d=f(d,rt(ht())),Rt(function($){var z=this;return t(d,function(q){return Un(q,z,$)})})})}function Sa(t,d){d=d===e?" ":Ii(d);var $=d.length;if($<2)return $?Rl(d,t):d;var z=Rl(d,ua(t/It(d)));return oe(d)?fo(xt(z),0,t).join(""):z.slice(0,t)}function Wv(t,d,$,z){var q=d&h,ee=Fs(t);function ae(){for(var fe=-1,ve=arguments.length,Le=-1,Re=z.length,Ne=xe(Re+ve),Ke=this&&this!==Jt&&this instanceof ae?ee:t;++Le<Re;)Ne[Le]=z[Le];for(;ve--;)Ne[Le++]=arguments[++fe];return Un(Ke,q?$:this,Ne)}return ae}function jh(t){return function(d,$,z){return z&&typeof z!="number"&&fi(d,$,z)&&($=z=e),d=Kr(d),$===e?($=d,d=0):$=Kr($),z=z===e?d<$?1:-1:Kr(z),Sv(d,$,z,t)}}function _a(t){return function(d,$){return typeof d=="string"&&typeof $=="string"||(d=Ji(d),$=Ji($)),t(d,$)}}function Kh(t,d,$,z,q,ee,ae,fe,ve,Le){var Re=d&E,Ne=Re?ae:e,Ke=Re?e:ae,tt=Re?ee:e,dt=Re?e:ee;d|=Re?_:v,d&=~(Re?v:_),d&y||(d&=-4);var Lt=[t,d,q,tt,Ne,dt,Ke,fe,ve,Le],ft=$.apply(e,Lt);return Gl(t)&&rd(ft,Lt),ft.placeholder=z,od(ft,t,d)}function Bl(t){var d=zt[t];return function($,z){if($=Ji($),z=z==null?0:oi(At(z),292),z&&oh($)){var q=(Yt($)+"e").split("e"),ee=d(q[0]+"e"+(+q[1]+z));return q=(Yt(ee)+"e").split("e"),+(q[0]+"e"+(+q[1]-z))}return d($)}}var Bv=ts&&1/Ve(new ts([,-0]))[1]==B?function(t){return new ts(t)}:lc;function Gh(t){return function(d){var $=si(d);return $==et?Me(d):$==yn?Ye(d):Qe(d,t(d))}}function zr(t,d,$,z,q,ee,ae,fe){var ve=d&m;if(!ve&&typeof t!="function")throw new en(w);var Le=z?z.length:0;if(Le||(d&=-97,z=q=e),ae=ae===e?ae:Wn(At(ae),0),fe=fe===e?fe:At(fe),Le-=q?q.length:0,d&v){var Re=z,Ne=q;z=q=e}var Ke=ve?e:Ul(t),tt=[t,d,$,z,q,Re,Ne,ee,ae,fe];if(Ke&&ty(tt,Ke),t=tt[0],d=tt[1],$=tt[2],z=tt[3],q=tt[4],fe=tt[9]=tt[9]===e?ve?0:t.length:Wn(tt[9]-Le,0),!fe&&d&(E|M)&&(d&=-25),!d||d==h)var dt=Fv(t,d,$);else d==E||d==M?dt=Pv(t,d,fe):(d==_||d==(h|_))&&!q.length?dt=Wv(t,d,$,z):dt=ka.apply(e,tt);var Lt=Ke?$h:rd;return od(Lt(dt,tt),t,d)}function qh(t,d,$,z){return t===e||cr(t,_n[$])&&!Zt.call(z,$)?d:t}function Yh(t,d,$,z,q,ee){return vn(t)&&vn(d)&&(ee.set(d,t),ya(t,d,e,Yh,ee),ee.delete(d)),t}function Hv(t){return Bs(t)?e:t}function Qh(t,d,$,z,q,ee){var ae=$&n,fe=t.length,ve=d.length;if(fe!=ve&&!(ae&&ve>fe))return!1;var Le=ee.get(t),Re=ee.get(d);if(Le&&Re)return Le==d&&Re==t;var Ne=-1,Ke=!0,tt=$&a?new Lo:e;for(ee.set(t,d),ee.set(d,t);++Ne<fe;){var dt=t[Ne],Lt=d[Ne];if(z)var ft=ae?z(Lt,dt,Ne,d,t,ee):z(dt,Lt,Ne,t,d,ee);if(ft!==e){if(ft)continue;Ke=!1;break}if(tt){if(!W(d,function(Ot,Bt){if(!Et(tt,Bt)&&(dt===Ot||q(dt,Ot,$,z,ee)))return tt.push(Bt)})){Ke=!1;break}}else if(!(dt===Lt||q(dt,Lt,$,z,ee))){Ke=!1;break}}return ee.delete(t),ee.delete(d),Ke}function zv(t,d,$,z,q,ee,ae){switch($){case qe:if(t.byteLength!=d.byteLength||t.byteOffset!=d.byteOffset)return!1;t=t.buffer,d=d.buffer;case We:return!(t.byteLength!=d.byteLength||!ee(new sa(t),new sa(d)));case Ae:case $e:case lt:return cr(+t,+d);case Ge:return t.name==d.name&&t.message==d.message;case sn:case wn:return t==d+"";case et:var fe=Me;case yn:var ve=z&n;if(fe||(fe=Ve),t.size!=d.size&&!ve)return!1;var Le=ae.get(t);if(Le)return Le==d;z|=a,ae.set(t,d);var Re=Qh(fe(t),fe(d),z,q,ee,ae);return ae.delete(t),Re;case In:if(Es)return Es.call(t)==Es.call(d)}return!1}function Uv(t,d,$,z,q,ee){var ae=$&n,fe=Hl(t),ve=fe.length,Le=Hl(d),Re=Le.length;if(ve!=Re&&!ae)return!1;for(var Ne=ve;Ne--;){var Ke=fe[Ne];if(!(ae?Ke in d:Zt.call(d,Ke)))return!1}var tt=ee.get(t),dt=ee.get(d);if(tt&&dt)return tt==d&&dt==t;var Lt=!0;ee.set(t,d),ee.set(d,t);for(var ft=ae;++Ne<ve;){Ke=fe[Ne];var Ot=t[Ke],Bt=d[Ke];if(z)var Ni=ae?z(Bt,Ot,Ke,d,t,ee):z(Ot,Bt,Ke,t,d,ee);if(!(Ni===e?Ot===Bt||q(Ot,Bt,$,z,ee):Ni)){Lt=!1;break}ft||(ft=Ke=="constructor")}if(Lt&&!ft){var pi=t.constructor,Di=d.constructor;pi!=Di&&"constructor"in t&&"constructor"in d&&!(typeof pi=="function"&&pi instanceof pi&&typeof Di=="function"&&Di instanceof Di)&&(Lt=!1)}return ee.delete(t),ee.delete(d),Lt}function Ur(t){return Yl(nd(t,e,hd),t+"")}function Hl(t){return mh(t,Gn,jl)}function zl(t){return mh(t,ki,Zh)}var Ul=da?function(t){return da.get(t)}:lc;function Aa(t){for(var d=t.name+"",$=ns[d],z=Zt.call(ns,d)?$.length:0;z--;){var q=$[z],ee=q.func;if(ee==null||ee==t)return q.name}return d}function ss(t){var d=Zt.call(X,"placeholder")?X:t;return d.placeholder}function ht(){var t=X.iteratee||sc;return t=t===sc?wh:t,arguments.length?t(arguments[0],arguments[1]):t}function $a(t,d){var $=t.__data__;return Zv(d)?$[typeof d=="string"?"string":"hash"]:$.map}function Vl(t){for(var d=Gn(t),$=d.length;$--;){var z=d[$],q=t[z];d[$]=[z,q,ed(q)]}return d}function Io(t,d){var $=re(t,d);return yh($)?$:e}function Vv(t){var d=Zt.call(t,Mo),$=t[Mo];try{t[Mo]=e;var z=!0}catch{}var q=ra.call(t);return z&&(d?t[Mo]=$:delete t[Mo]),q}var jl=yl?function(t){return t==null?[]:(t=Tt(t),ri(yl(t),function(d){return ih.call(t,d)}))}:cc,Zh=yl?function(t){for(var d=[];t;)A(d,jl(t)),t=aa(t);return d}:cc,si=di;(wl&&si(new wl(new ArrayBuffer(1)))!=qe||Ms&&si(new Ms)!=et||bl&&si(bl.resolve())!=Ht||ts&&si(new ts)!=yn||Ts&&si(new Ts)!=Ue)&&(si=function(t){var d=di(t),$=d==on?t.constructor:e,z=$?Oo($):"";if(z)switch(z){case Am:return qe;case $m:return et;case Mm:return Ht;case Tm:return yn;case Lm:return Ue}return d});function jv(t,d,$){for(var z=-1,q=$.length;++z<q;){var ee=$[z],ae=ee.size;switch(ee.type){case"drop":t+=ae;break;case"dropRight":d-=ae;break;case"take":d=oi(d,t+ae);break;case"takeRight":t=Wn(t,d-ae);break}}return{start:t,end:d}}function Kv(t){var d=t.match(rr);return d?d[1].split(wo):[]}function Jh(t,d,$){d=ho(d,t);for(var z=-1,q=d.length,ee=!1;++z<q;){var ae=Sr(d[z]);if(!(ee=t!=null&&$(t,ae)))break;t=t[ae]}return ee||++z!=q?ee:(q=t==null?0:t.length,!!q&&Oa(q)&&Vr(ae,q)&&(kt(t)||No(t)))}function Gv(t){var d=t.length,$=new t.constructor(d);return d&&typeof t[0]=="string"&&Zt.call(t,"index")&&($.index=t.index,$.input=t.input),$}function Xh(t){return typeof t.constructor=="function"&&!Ps(t)?is(aa(t)):{}}function qv(t,d,$){var z=t.constructor;switch(d){case We:return Pl(t);case Ae:case $e:return new z(+t);case qe:return Ev(t,$);case ct:case wt:case bt:case $t:case _t:case st:case gt:case hn:case Yn:return Nh(t,$);case et:return new z;case lt:case wn:return new z(t);case sn:return Rv(t);case yn:return new z;case In:return Iv(t)}}function Yv(t,d){var $=d.length;if(!$)return t;var z=$-1;return d[z]=($>1?"& ":"")+d[z],d=d.join($>2?", ":" "),t.replace(mr,`{
|
|
1471
|
-
/* [wrapped with `+d+`] */
|
|
1472
|
-
`)}function Qv(t){return kt(t)||No(t)||!!(rh&&t&&t[rh])}function Vr(t,d){var $=typeof t;return d=d??V,!!d&&($=="number"||$!="symbol"&&an.test(t))&&t>-1&&t%1==0&&t<d}function fi(t,d,$){if(!vn($))return!1;var z=typeof d;return(z=="number"?xi($)&&Vr(d,$.length):z=="string"&&d in $)?cr($[d],t):!1}function Kl(t,d){if(kt(t))return!1;var $=typeof t;return $=="number"||$=="symbol"||$=="boolean"||t==null||Oi(t)?!0:nr.test(t)||!Go.test(t)||d!=null&&t in Tt(d)}function Zv(t){var d=typeof t;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?t!=="__proto__":t===null}function Gl(t){var d=Aa(t),$=X[d];if(typeof $!="function"||!(d in Ft.prototype))return!1;if(t===$)return!0;var z=Ul($);return!!z&&t===z[0]}function Jv(t){return!!eh&&eh in t}var Xv=$o?jr:uc;function Ps(t){var d=t&&t.constructor,$=typeof d=="function"&&d.prototype||_n;return t===$}function ed(t){return t===t&&!vn(t)}function td(t,d){return function($){return $==null?!1:$[t]===d&&(d!==e||t in Tt($))}}function ey(t){var d=Ra(t,function(z){return $.size===g&&$.clear(),z}),$=d.cache;return d}function ty(t,d){var $=t[1],z=d[1],q=$|z,ee=q<(h|m|R),ae=z==R&&$==E||z==R&&$==I&&t[7].length<=d[8]||z==(R|I)&&d[7].length<=d[8]&&$==E;if(!(ee||ae))return t;z&h&&(t[2]=d[2],q|=$&h?0:y);var fe=d[3];if(fe){var ve=t[3];t[3]=ve?Fh(ve,fe,d[4]):fe,t[4]=ve?Pe(t[3],i):d[4]}return fe=d[5],fe&&(ve=t[5],t[5]=ve?Ph(ve,fe,d[6]):fe,t[6]=ve?Pe(t[5],i):d[6]),fe=d[7],fe&&(t[7]=fe),z&R&&(t[8]=t[8]==null?d[8]:oi(t[8],d[8])),t[9]==null&&(t[9]=d[9]),t[0]=d[0],t[1]=q,t}function ny(t){var d=[];if(t!=null)for(var $ in Tt(t))d.push($);return d}function iy(t){return ra.call(t)}function nd(t,d,$){return d=Wn(d===e?t.length-1:d,0),function(){for(var z=arguments,q=-1,ee=Wn(z.length-d,0),ae=xe(ee);++q<ee;)ae[q]=z[d+q];q=-1;for(var fe=xe(d+1);++q<d;)fe[q]=z[q];return fe[d]=$(ae),Un(t,this,fe)}}function id(t,d){return d.length<2?t:Ro(t,Qi(d,0,-1))}function ry(t,d){for(var $=t.length,z=oi(d.length,$),q=bi(t);z--;){var ee=d[z];t[z]=Vr(ee,$)?q[ee]:e}return t}function ql(t,d){if(!(d==="constructor"&&typeof t[d]=="function")&&d!="__proto__")return t[d]}var rd=sd($h),Ws=wm||function(t,d){return Jt.setTimeout(t,d)},Yl=sd($v);function od(t,d,$){var z=d+"";return Yl(t,Yv(z,oy(Kv(z),$)))}function sd(t){var d=0,$=0;return function(){var z=Cm(),q=O-(z-$);if($=z,q>0){if(++d>=P)return arguments[0]}else d=0;return t.apply(e,arguments)}}function Ma(t,d){var $=-1,z=t.length,q=z-1;for(d=d===e?z:d;++$<d;){var ee=El($,q),ae=t[ee];t[ee]=t[$],t[$]=ae}return t.length=d,t}var ad=ey(function(t){var d=[];return t.charCodeAt(0)===46&&d.push(""),t.replace($n,function($,z,q,ee){d.push(q?ee.replace(_s,"$1"):z||$)}),d});function Sr(t){if(typeof t=="string"||Oi(t))return t;var d=t+"";return d=="0"&&1/t==-B?"-0":d}function Oo(t){if(t!=null){try{return ia.call(t)}catch{}try{return t+""}catch{}}return""}function oy(t,d){return Zn(ce,function($){var z="_."+$[0];d&$[1]&&!Ei(t,z)&&t.push(z)}),t.sort()}function ld(t){if(t instanceof Ft)return t.clone();var d=new qi(t.__wrapped__,t.__chain__);return d.__actions__=bi(t.__actions__),d.__index__=t.__index__,d.__values__=t.__values__,d}function sy(t,d,$){($?fi(t,d,$):d===e)?d=1:d=Wn(At(d),0);var z=t==null?0:t.length;if(!z||d<1)return[];for(var q=0,ee=0,ae=xe(ua(z/d));q<z;)ae[ee++]=Qi(t,q,q+=d);return ae}function ay(t){for(var d=-1,$=t==null?0:t.length,z=0,q=[];++d<$;){var ee=t[d];ee&&(q[z++]=ee)}return q}function ly(){var t=arguments.length;if(!t)return[];for(var d=xe(t-1),$=arguments[0],z=t;z--;)d[z-1]=arguments[z];return A(kt($)?bi($):[$],Xn(d,1))}var cy=Rt(function(t,d){return Ln(t)?Is(t,Xn(d,1,Ln,!0)):[]}),uy=Rt(function(t,d){var $=Zi(d);return Ln($)&&($=e),Ln(t)?Is(t,Xn(d,1,Ln,!0),ht($,2)):[]}),hy=Rt(function(t,d){var $=Zi(d);return Ln($)&&($=e),Ln(t)?Is(t,Xn(d,1,Ln,!0),e,$):[]});function dy(t,d,$){var z=t==null?0:t.length;return z?(d=$||d===e?1:At(d),Qi(t,d<0?0:d,z)):[]}function fy(t,d,$){var z=t==null?0:t.length;return z?(d=$||d===e?1:At(d),d=z-d,Qi(t,0,d<0?0:d)):[]}function py(t,d){return t&&t.length?ba(t,ht(d,3),!0,!0):[]}function gy(t,d){return t&&t.length?ba(t,ht(d,3),!0):[]}function my(t,d,$,z){var q=t==null?0:t.length;return q?($&&typeof $!="number"&&fi(t,d,$)&&($=0,z=q),lv(t,d,$,z)):[]}function cd(t,d,$){var z=t==null?0:t.length;if(!z)return-1;var q=$==null?0:At($);return q<0&&(q=Wn(z+q,0)),ie(t,ht(d,3),q)}function ud(t,d,$){var z=t==null?0:t.length;if(!z)return-1;var q=z-1;return $!==e&&(q=At($),q=$<0?Wn(z+q,0):oi(q,z-1)),ie(t,ht(d,3),q,!0)}function hd(t){var d=t==null?0:t.length;return d?Xn(t,1):[]}function vy(t){var d=t==null?0:t.length;return d?Xn(t,B):[]}function yy(t,d){var $=t==null?0:t.length;return $?(d=d===e?1:At(d),Xn(t,d)):[]}function wy(t){for(var d=-1,$=t==null?0:t.length,z={};++d<$;){var q=t[d];z[q[0]]=q[1]}return z}function dd(t){return t&&t.length?t[0]:e}function by(t,d,$){var z=t==null?0:t.length;if(!z)return-1;var q=$==null?0:At($);return q<0&&(q=Wn(z+q,0)),se(t,d,q)}function xy(t){var d=t==null?0:t.length;return d?Qi(t,0,-1):[]}var ky=Rt(function(t){var d=f(t,Dl);return d.length&&d[0]===t[0]?Al(d):[]}),Cy=Rt(function(t){var d=Zi(t),$=f(t,Dl);return d===Zi($)?d=e:$.pop(),$.length&&$[0]===t[0]?Al($,ht(d,2)):[]}),Sy=Rt(function(t){var d=Zi(t),$=f(t,Dl);return d=typeof d=="function"?d:e,d&&$.pop(),$.length&&$[0]===t[0]?Al($,e,d):[]});function _y(t,d){return t==null?"":xm.call(t,d)}function Zi(t){var d=t==null?0:t.length;return d?t[d-1]:e}function Ay(t,d,$){var z=t==null?0:t.length;if(!z)return-1;var q=z;return $!==e&&(q=At($),q=q<0?Wn(z+q,0):oi(q,z-1)),d===d?yt(t,d,q):ie(t,ke,q,!0)}function $y(t,d){return t&&t.length?Ch(t,At(d)):e}var My=Rt(fd);function fd(t,d){return t&&t.length&&d&&d.length?Ll(t,d):t}function Ty(t,d,$){return t&&t.length&&d&&d.length?Ll(t,d,ht($,2)):t}function Ly(t,d,$){return t&&t.length&&d&&d.length?Ll(t,d,e,$):t}var Ey=Ur(function(t,d){var $=t==null?0:t.length,z=kl(t,d);return Ah(t,f(d,function(q){return Vr(q,$)?+q:q}).sort(Dh)),z});function Ry(t,d){var $=[];if(!(t&&t.length))return $;var z=-1,q=[],ee=t.length;for(d=ht(d,3);++z<ee;){var ae=t[z];d(ae,z,t)&&($.push(ae),q.push(z))}return Ah(t,q),$}function Ql(t){return t==null?t:_m.call(t)}function Iy(t,d,$){var z=t==null?0:t.length;return z?($&&typeof $!="number"&&fi(t,d,$)?(d=0,$=z):(d=d==null?0:At(d),$=$===e?z:At($)),Qi(t,d,$)):[]}function Oy(t,d){return wa(t,d)}function Ny(t,d,$){return Il(t,d,ht($,2))}function Dy(t,d){var $=t==null?0:t.length;if($){var z=wa(t,d);if(z<$&&cr(t[z],d))return z}return-1}function Fy(t,d){return wa(t,d,!0)}function Py(t,d,$){return Il(t,d,ht($,2),!0)}function Wy(t,d){var $=t==null?0:t.length;if($){var z=wa(t,d,!0)-1;if(cr(t[z],d))return z}return-1}function By(t){return t&&t.length?Mh(t):[]}function Hy(t,d){return t&&t.length?Mh(t,ht(d,2)):[]}function zy(t){var d=t==null?0:t.length;return d?Qi(t,1,d):[]}function Uy(t,d,$){return t&&t.length?(d=$||d===e?1:At(d),Qi(t,0,d<0?0:d)):[]}function Vy(t,d,$){var z=t==null?0:t.length;return z?(d=$||d===e?1:At(d),d=z-d,Qi(t,d<0?0:d,z)):[]}function jy(t,d){return t&&t.length?ba(t,ht(d,3),!1,!0):[]}function Ky(t,d){return t&&t.length?ba(t,ht(d,3)):[]}var Gy=Rt(function(t){return uo(Xn(t,1,Ln,!0))}),qy=Rt(function(t){var d=Zi(t);return Ln(d)&&(d=e),uo(Xn(t,1,Ln,!0),ht(d,2))}),Yy=Rt(function(t){var d=Zi(t);return d=typeof d=="function"?d:e,uo(Xn(t,1,Ln,!0),e,d)});function Qy(t){return t&&t.length?uo(t):[]}function Zy(t,d){return t&&t.length?uo(t,ht(d,2)):[]}function Jy(t,d){return d=typeof d=="function"?d:e,t&&t.length?uo(t,e,d):[]}function Zl(t){if(!(t&&t.length))return[];var d=0;return t=ri(t,function($){if(Ln($))return d=Wn($.length,d),!0}),Xe(d,function($){return f(t,we($))})}function pd(t,d){if(!(t&&t.length))return[];var $=Zl(t);return d==null?$:f($,function(z){return Un(d,e,z)})}var Xy=Rt(function(t,d){return Ln(t)?Is(t,d):[]}),ew=Rt(function(t){return Nl(ri(t,Ln))}),tw=Rt(function(t){var d=Zi(t);return Ln(d)&&(d=e),Nl(ri(t,Ln),ht(d,2))}),nw=Rt(function(t){var d=Zi(t);return d=typeof d=="function"?d:e,Nl(ri(t,Ln),e,d)}),iw=Rt(Zl);function rw(t,d){return Rh(t||[],d||[],Rs)}function ow(t,d){return Rh(t||[],d||[],Ds)}var sw=Rt(function(t){var d=t.length,$=d>1?t[d-1]:e;return $=typeof $=="function"?(t.pop(),$):e,pd(t,$)});function gd(t){var d=X(t);return d.__chain__=!0,d}function aw(t,d){return d(t),t}function Ta(t,d){return d(t)}var lw=Ur(function(t){var d=t.length,$=d?t[0]:0,z=this.__wrapped__,q=function(ee){return kl(ee,t)};return d>1||this.__actions__.length||!(z instanceof Ft)||!Vr($)?this.thru(q):(z=z.slice($,+$+(d?1:0)),z.__actions__.push({func:Ta,args:[q],thisArg:e}),new qi(z,this.__chain__).thru(function(ee){return d&&!ee.length&&ee.push(e),ee}))});function cw(){return gd(this)}function uw(){return new qi(this.value(),this.__chain__)}function hw(){this.__values__===e&&(this.__values__=Td(this.value()));var t=this.__index__>=this.__values__.length,d=t?e:this.__values__[this.__index__++];return{done:t,value:d}}function dw(){return this}function fw(t){for(var d,$=this;$ instanceof pa;){var z=ld($);z.__index__=0,z.__values__=e,d?q.__wrapped__=z:d=z;var q=z;$=$.__wrapped__}return q.__wrapped__=t,d}function pw(){var t=this.__wrapped__;if(t instanceof Ft){var d=t;return this.__actions__.length&&(d=new Ft(this)),d=d.reverse(),d.__actions__.push({func:Ta,args:[Ql],thisArg:e}),new qi(d,this.__chain__)}return this.thru(Ql)}function gw(){return Eh(this.__wrapped__,this.__actions__)}var mw=xa(function(t,d,$){Zt.call(t,$)?++t[$]:Hr(t,$,1)});function vw(t,d,$){var z=kt(t)?Jn:av;return $&&fi(t,d,$)&&(d=e),z(t,ht(d,3))}function yw(t,d){var $=kt(t)?ri:ph;return $(t,ht(d,3))}var ww=zh(cd),bw=zh(ud);function xw(t,d){return Xn(La(t,d),1)}function kw(t,d){return Xn(La(t,d),B)}function Cw(t,d,$){return $=$===e?1:At($),Xn(La(t,d),$)}function md(t,d){var $=kt(t)?Zn:co;return $(t,ht(d,3))}function vd(t,d){var $=kt(t)?Ao:fh;return $(t,ht(d,3))}var Sw=xa(function(t,d,$){Zt.call(t,$)?t[$].push(d):Hr(t,$,[d])});function _w(t,d,$,z){t=xi(t)?t:ls(t),$=$&&!z?At($):0;var q=t.length;return $<0&&($=Wn(q+$,0)),Na(t)?$<=q&&t.indexOf(d,$)>-1:!!q&&se(t,d,$)>-1}var Aw=Rt(function(t,d,$){var z=-1,q=typeof d=="function",ee=xi(t)?xe(t.length):[];return co(t,function(ae){ee[++z]=q?Un(d,ae,$):Os(ae,d,$)}),ee}),$w=xa(function(t,d,$){Hr(t,$,d)});function La(t,d){var $=kt(t)?f:bh;return $(t,ht(d,3))}function Mw(t,d,$,z){return t==null?[]:(kt(d)||(d=d==null?[]:[d]),$=z?e:$,kt($)||($=$==null?[]:[$]),Sh(t,d,$))}var Tw=xa(function(t,d,$){t[$?0:1].push(d)},function(){return[[],[]]});function Lw(t,d,$){var z=kt(t)?x:Ee,q=arguments.length<3;return z(t,ht(d,4),$,q,co)}function Ew(t,d,$){var z=kt(t)?D:Ee,q=arguments.length<3;return z(t,ht(d,4),$,q,fh)}function Rw(t,d){var $=kt(t)?ri:ph;return $(t,Ia(ht(d,3)))}function Iw(t){var d=kt(t)?ch:_v;return d(t)}function Ow(t,d,$){($?fi(t,d,$):d===e)?d=1:d=At(d);var z=kt(t)?nv:Av;return z(t,d)}function Nw(t){var d=kt(t)?iv:Mv;return d(t)}function Dw(t){if(t==null)return 0;if(xi(t))return Na(t)?It(t):t.length;var d=si(t);return d==et||d==yn?t.size:Ml(t).length}function Fw(t,d,$){var z=kt(t)?W:Tv;return $&&fi(t,d,$)&&(d=e),z(t,ht(d,3))}var Pw=Rt(function(t,d){if(t==null)return[];var $=d.length;return $>1&&fi(t,d[0],d[1])?d=[]:$>2&&fi(d[0],d[1],d[2])&&(d=[d[0]]),Sh(t,Xn(d,1),[])}),Ea=ym||function(){return Jt.Date.now()};function Ww(t,d){if(typeof d!="function")throw new en(w);return t=At(t),function(){if(--t<1)return d.apply(this,arguments)}}function yd(t,d,$){return d=$?e:d,d=t&&d==null?t.length:d,zr(t,R,e,e,e,e,d)}function wd(t,d){var $;if(typeof d!="function")throw new en(w);return t=At(t),function(){return--t>0&&($=d.apply(this,arguments)),t<=1&&(d=e),$}}var Jl=Rt(function(t,d,$){var z=h;if($.length){var q=Pe($,ss(Jl));z|=_}return zr(t,z,d,$,q)}),bd=Rt(function(t,d,$){var z=h|m;if($.length){var q=Pe($,ss(bd));z|=_}return zr(d,z,t,$,q)});function xd(t,d,$){d=$?e:d;var z=zr(t,E,e,e,e,e,e,d);return z.placeholder=xd.placeholder,z}function kd(t,d,$){d=$?e:d;var z=zr(t,M,e,e,e,e,e,d);return z.placeholder=kd.placeholder,z}function Cd(t,d,$){var z,q,ee,ae,fe,ve,Le=0,Re=!1,Ne=!1,Ke=!0;if(typeof t!="function")throw new en(w);d=Ji(d)||0,vn($)&&(Re=!!$.leading,Ne="maxWait"in $,ee=Ne?Wn(Ji($.maxWait)||0,d):ee,Ke="trailing"in $?!!$.trailing:Ke);function tt(En){var ur=z,Gr=q;return z=q=e,Le=En,ae=t.apply(Gr,ur),ae}function dt(En){return Le=En,fe=Ws(Ot,d),Re?tt(En):ae}function Lt(En){var ur=En-ve,Gr=En-Le,zd=d-ur;return Ne?oi(zd,ee-Gr):zd}function ft(En){var ur=En-ve,Gr=En-Le;return ve===e||ur>=d||ur<0||Ne&&Gr>=ee}function Ot(){var En=Ea();if(ft(En))return Bt(En);fe=Ws(Ot,Lt(En))}function Bt(En){return fe=e,Ke&&z?tt(En):(z=q=e,ae)}function Ni(){fe!==e&&Ih(fe),Le=0,z=ve=q=fe=e}function pi(){return fe===e?ae:Bt(Ea())}function Di(){var En=Ea(),ur=ft(En);if(z=arguments,q=this,ve=En,ur){if(fe===e)return dt(ve);if(Ne)return Ih(fe),fe=Ws(Ot,d),tt(ve)}return fe===e&&(fe=Ws(Ot,d)),ae}return Di.cancel=Ni,Di.flush=pi,Di}var Bw=Rt(function(t,d){return dh(t,1,d)}),Hw=Rt(function(t,d,$){return dh(t,Ji(d)||0,$)});function zw(t){return zr(t,F)}function Ra(t,d){if(typeof t!="function"||d!=null&&typeof d!="function")throw new en(w);var $=function(){var z=arguments,q=d?d.apply(this,z):z[0],ee=$.cache;if(ee.has(q))return ee.get(q);var ae=t.apply(this,z);return $.cache=ee.set(q,ae)||ee,ae};return $.cache=new(Ra.Cache||Br),$}Ra.Cache=Br;function Ia(t){if(typeof t!="function")throw new en(w);return function(){var d=arguments;switch(d.length){case 0:return!t.call(this);case 1:return!t.call(this,d[0]);case 2:return!t.call(this,d[0],d[1]);case 3:return!t.call(this,d[0],d[1],d[2])}return!t.apply(this,d)}}function Uw(t){return wd(2,t)}var Vw=Lv(function(t,d){d=d.length==1&&kt(d[0])?f(d[0],rt(ht())):f(Xn(d,1),rt(ht()));var $=d.length;return Rt(function(z){for(var q=-1,ee=oi(z.length,$);++q<ee;)z[q]=d[q].call(this,z[q]);return Un(t,this,z)})}),Xl=Rt(function(t,d){var $=Pe(d,ss(Xl));return zr(t,_,e,d,$)}),Sd=Rt(function(t,d){var $=Pe(d,ss(Sd));return zr(t,v,e,d,$)}),jw=Ur(function(t,d){return zr(t,I,e,e,e,d)});function Kw(t,d){if(typeof t!="function")throw new en(w);return d=d===e?d:At(d),Rt(t,d)}function Gw(t,d){if(typeof t!="function")throw new en(w);return d=d==null?0:Wn(At(d),0),Rt(function($){var z=$[d],q=fo($,0,d);return z&&A(q,z),Un(t,this,q)})}function qw(t,d,$){var z=!0,q=!0;if(typeof t!="function")throw new en(w);return vn($)&&(z="leading"in $?!!$.leading:z,q="trailing"in $?!!$.trailing:q),Cd(t,d,{leading:z,maxWait:d,trailing:q})}function Yw(t){return yd(t,1)}function Qw(t,d){return Xl(Fl(d),t)}function Zw(){if(!arguments.length)return[];var t=arguments[0];return kt(t)?t:[t]}function Jw(t){return Yi(t,r)}function Xw(t,d){return d=typeof d=="function"?d:e,Yi(t,r,d)}function eb(t){return Yi(t,s|r)}function tb(t,d){return d=typeof d=="function"?d:e,Yi(t,s|r,d)}function nb(t,d){return d==null||hh(t,d,Gn(d))}function cr(t,d){return t===d||t!==t&&d!==d}var ib=_a(_l),rb=_a(function(t,d){return t>=d}),No=vh(function(){return arguments}())?vh:function(t){return An(t)&&Zt.call(t,"callee")&&!ih.call(t,"callee")},kt=xe.isArray,ob=wi?rt(wi):fv;function xi(t){return t!=null&&Oa(t.length)&&!jr(t)}function Ln(t){return An(t)&&xi(t)}function sb(t){return t===!0||t===!1||An(t)&&di(t)==Ae}var po=bm||uc,ab=ao?rt(ao):pv;function lb(t){return An(t)&&t.nodeType===1&&!Bs(t)}function cb(t){if(t==null)return!0;if(xi(t)&&(kt(t)||typeof t=="string"||typeof t.splice=="function"||po(t)||as(t)||No(t)))return!t.length;var d=si(t);if(d==et||d==yn)return!t.size;if(Ps(t))return!Ml(t).length;for(var $ in t)if(Zt.call(t,$))return!1;return!0}function ub(t,d){return Ns(t,d)}function hb(t,d,$){$=typeof $=="function"?$:e;var z=$?$(t,d):e;return z===e?Ns(t,d,e,$):!!z}function ec(t){if(!An(t))return!1;var d=di(t);return d==Ge||d==Te||typeof t.message=="string"&&typeof t.name=="string"&&!Bs(t)}function db(t){return typeof t=="number"&&oh(t)}function jr(t){if(!vn(t))return!1;var d=di(t);return d==je||d==at||d==me||d==qn}function _d(t){return typeof t=="number"&&t==At(t)}function Oa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=V}function vn(t){var d=typeof t;return t!=null&&(d=="object"||d=="function")}function An(t){return t!=null&&typeof t=="object"}var Ad=Cn?rt(Cn):mv;function fb(t,d){return t===d||$l(t,d,Vl(d))}function pb(t,d,$){return $=typeof $=="function"?$:e,$l(t,d,Vl(d),$)}function gb(t){return $d(t)&&t!=+t}function mb(t){if(Xv(t))throw new ot(b);return yh(t)}function vb(t){return t===null}function yb(t){return t==null}function $d(t){return typeof t=="number"||An(t)&&di(t)==lt}function Bs(t){if(!An(t)||di(t)!=on)return!1;var d=aa(t);if(d===null)return!0;var $=Zt.call(d,"constructor")&&d.constructor;return typeof $=="function"&&$ instanceof $&&ia.call($)==pm}var tc=Ti?rt(Ti):vv;function wb(t){return _d(t)&&t>=-V&&t<=V}var Md=Li?rt(Li):yv;function Na(t){return typeof t=="string"||!kt(t)&&An(t)&&di(t)==wn}function Oi(t){return typeof t=="symbol"||An(t)&&di(t)==In}var as=Ki?rt(Ki):wv;function bb(t){return t===e}function xb(t){return An(t)&&si(t)==Ue}function kb(t){return An(t)&&di(t)==Ce}var Cb=_a(Tl),Sb=_a(function(t,d){return t<=d});function Td(t){if(!t)return[];if(xi(t))return Na(t)?xt(t):bi(t);if($s&&t[$s])return be(t[$s]());var d=si(t),$=d==et?Me:d==yn?Ve:ls;return $(t)}function Kr(t){if(!t)return t===0?t:0;if(t=Ji(t),t===B||t===-B){var d=t<0?-1:1;return d*G}return t===t?t:0}function At(t){var d=Kr(t),$=d%1;return d===d?$?d-$:d:0}function Ld(t){return t?Eo(At(t),0,te):0}function Ji(t){if(typeof t=="number")return t;if(Oi(t))return Q;if(vn(t)){var d=typeof t.valueOf=="function"?t.valueOf():t;t=vn(d)?d+"":d}if(typeof t!="string")return t===0?t:+t;t=Xt(t);var $=Yo.test(t);return $||Mn.test(t)?ln(t.slice(2),$?2:8):Nt.test(t)?Q:+t}function Ed(t){return Cr(t,ki(t))}function _b(t){return t?Eo(At(t),-V,V):t===0?t:0}function Yt(t){return t==null?"":Ii(t)}var Ab=rs(function(t,d){if(Ps(d)||xi(d)){Cr(d,Gn(d),t);return}for(var $ in d)Zt.call(d,$)&&Rs(t,$,d[$])}),Rd=rs(function(t,d){Cr(d,ki(d),t)}),Da=rs(function(t,d,$,z){Cr(d,ki(d),t,z)}),$b=rs(function(t,d,$,z){Cr(d,Gn(d),t,z)}),Mb=Ur(kl);function Tb(t,d){var $=is(t);return d==null?$:uh($,d)}var Lb=Rt(function(t,d){t=Tt(t);var $=-1,z=d.length,q=z>2?d[2]:e;for(q&&fi(d[0],d[1],q)&&(z=1);++$<z;)for(var ee=d[$],ae=ki(ee),fe=-1,ve=ae.length;++fe<ve;){var Le=ae[fe],Re=t[Le];(Re===e||cr(Re,_n[Le])&&!Zt.call(t,Le))&&(t[Le]=ee[Le])}return t}),Eb=Rt(function(t){return t.push(e,Yh),Un(Id,e,t)});function Rb(t,d){return J(t,ht(d,3),kr)}function Ib(t,d){return J(t,ht(d,3),Sl)}function Ob(t,d){return t==null?t:Cl(t,ht(d,3),ki)}function Nb(t,d){return t==null?t:gh(t,ht(d,3),ki)}function Db(t,d){return t&&kr(t,ht(d,3))}function Fb(t,d){return t&&Sl(t,ht(d,3))}function Pb(t){return t==null?[]:va(t,Gn(t))}function Wb(t){return t==null?[]:va(t,ki(t))}function nc(t,d,$){var z=t==null?e:Ro(t,d);return z===e?$:z}function Bb(t,d){return t!=null&&Jh(t,d,cv)}function ic(t,d){return t!=null&&Jh(t,d,uv)}var Hb=Vh(function(t,d,$){d!=null&&typeof d.toString!="function"&&(d=ra.call(d)),t[d]=$},oc(Ci)),zb=Vh(function(t,d,$){d!=null&&typeof d.toString!="function"&&(d=ra.call(d)),Zt.call(t,d)?t[d].push($):t[d]=[$]},ht),Ub=Rt(Os);function Gn(t){return xi(t)?lh(t):Ml(t)}function ki(t){return xi(t)?lh(t,!0):bv(t)}function Vb(t,d){var $={};return d=ht(d,3),kr(t,function(z,q,ee){Hr($,d(z,q,ee),z)}),$}function jb(t,d){var $={};return d=ht(d,3),kr(t,function(z,q,ee){Hr($,q,d(z,q,ee))}),$}var Kb=rs(function(t,d,$){ya(t,d,$)}),Id=rs(function(t,d,$,z){ya(t,d,$,z)}),Gb=Ur(function(t,d){var $={};if(t==null)return $;var z=!1;d=f(d,function(ee){return ee=ho(ee,t),z||(z=ee.length>1),ee}),Cr(t,zl(t),$),z&&($=Yi($,s|o|r,Hv));for(var q=d.length;q--;)Ol($,d[q]);return $});function qb(t,d){return Od(t,Ia(ht(d)))}var Yb=Ur(function(t,d){return t==null?{}:kv(t,d)});function Od(t,d){if(t==null)return{};var $=f(zl(t),function(z){return[z]});return d=ht(d),_h(t,$,function(z,q){return d(z,q[0])})}function Qb(t,d,$){d=ho(d,t);var z=-1,q=d.length;for(q||(q=1,t=e);++z<q;){var ee=t==null?e:t[Sr(d[z])];ee===e&&(z=q,ee=$),t=jr(ee)?ee.call(t):ee}return t}function Zb(t,d,$){return t==null?t:Ds(t,d,$)}function Jb(t,d,$,z){return z=typeof z=="function"?z:e,t==null?t:Ds(t,d,$,z)}var Nd=Gh(Gn),Dd=Gh(ki);function Xb(t,d,$){var z=kt(t),q=z||po(t)||as(t);if(d=ht(d,4),$==null){var ee=t&&t.constructor;q?$=z?new ee:[]:vn(t)?$=jr(ee)?is(aa(t)):{}:$={}}return(q?Zn:kr)(t,function(ae,fe,ve){return d($,ae,fe,ve)}),$}function e0(t,d){return t==null?!0:Ol(t,d)}function t0(t,d,$){return t==null?t:Lh(t,d,Fl($))}function n0(t,d,$,z){return z=typeof z=="function"?z:e,t==null?t:Lh(t,d,Fl($),z)}function ls(t){return t==null?[]:dn(t,Gn(t))}function i0(t){return t==null?[]:dn(t,ki(t))}function r0(t,d,$){return $===e&&($=d,d=e),$!==e&&($=Ji($),$=$===$?$:0),d!==e&&(d=Ji(d),d=d===d?d:0),Eo(Ji(t),d,$)}function o0(t,d,$){return d=Kr(d),$===e?($=d,d=0):$=Kr($),t=Ji(t),hv(t,d,$)}function s0(t,d,$){if($&&typeof $!="boolean"&&fi(t,d,$)&&(d=$=e),$===e&&(typeof d=="boolean"?($=d,d=e):typeof t=="boolean"&&($=t,t=e)),t===e&&d===e?(t=0,d=1):(t=Kr(t),d===e?(d=t,t=0):d=Kr(d)),t>d){var z=t;t=d,d=z}if($||t%1||d%1){var q=sh();return oi(t+q*(d-t+Be("1e-"+((q+"").length-1))),d)}return El(t,d)}var a0=os(function(t,d,$){return d=d.toLowerCase(),t+($?Fd(d):d)});function Fd(t){return rc(Yt(t).toLowerCase())}function Pd(t){return t=Yt(t),t&&t.replace(bn,fn).replace(Dr,"")}function l0(t,d,$){t=Yt(t),d=Ii(d);var z=t.length;$=$===e?z:Eo(At($),0,z);var q=$;return $-=d.length,$>=0&&t.slice($,q)==d}function c0(t){return t=Yt(t),t&&ks.test(t)?t.replace(Tr,j):t}function u0(t){return t=Yt(t),t&&ir.test(t)?t.replace(ei,"\\$&"):t}var h0=os(function(t,d,$){return t+($?"-":"")+d.toLowerCase()}),d0=os(function(t,d,$){return t+($?" ":"")+d.toLowerCase()}),f0=Hh("toLowerCase");function p0(t,d,$){t=Yt(t),d=At(d);var z=d?It(t):0;if(!d||z>=d)return t;var q=(d-z)/2;return Sa(ha(q),$)+t+Sa(ua(q),$)}function g0(t,d,$){t=Yt(t),d=At(d);var z=d?It(t):0;return d&&z<d?t+Sa(d-z,$):t}function m0(t,d,$){t=Yt(t),d=At(d);var z=d?It(t):0;return d&&z<d?Sa(d-z,$)+t:t}function v0(t,d,$){return $||d==null?d=0:d&&(d=+d),Sm(Yt(t).replace(gn,""),d||0)}function y0(t,d,$){return($?fi(t,d,$):d===e)?d=1:d=At(d),Rl(Yt(t),d)}function w0(){var t=arguments,d=Yt(t[0]);return t.length<3?d:d.replace(t[1],t[2])}var b0=os(function(t,d,$){return t+($?"_":"")+d.toLowerCase()});function x0(t,d,$){return $&&typeof $!="number"&&fi(t,d,$)&&(d=$=e),$=$===e?te:$>>>0,$?(t=Yt(t),t&&(typeof d=="string"||d!=null&&!tc(d))&&(d=Ii(d),!d&&oe(t))?fo(xt(t),0,$):t.split(d,$)):[]}var k0=os(function(t,d,$){return t+($?" ":"")+rc(d)});function C0(t,d,$){return t=Yt(t),$=$==null?0:Eo(At($),0,t.length),d=Ii(d),t.slice($,$+d.length)==d}function S0(t,d,$){var z=X.templateSettings;$&&fi(t,d,$)&&(d=e),t=Yt(t),d=Da({},d,z,qh);var q=Da({},d.imports,z.imports,qh),ee=Gn(q),ae=dn(q,ee),fe,ve,Le=0,Re=d.interpolate||Bi,Ne="__p += '",Ke=hi((d.escape||Bi).source+"|"+Re.source+"|"+(Re===yo?or:Bi).source+"|"+(d.evaluate||Bi).source+"|$","g"),tt="//# sourceURL="+(Zt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xr+"]")+`
|
|
1473
|
-
`;t.replace(Ke,function(ft,Ot,Bt,Ni,pi,Di){return Bt||(Bt=Ni),Ne+=t.slice(Le,Di).replace(ii,Z),Ot&&(fe=!0,Ne+=`' +
|
|
1474
|
-
__e(`+Ot+`) +
|
|
1475
|
-
'`),pi&&(ve=!0,Ne+=`';
|
|
1476
|
-
`+pi+`;
|
|
1477
|
-
__p += '`),Bt&&(Ne+=`' +
|
|
1478
|
-
((__t = (`+Bt+`)) == null ? '' : __t) +
|
|
1479
|
-
'`),Le=Di+ft.length,ft}),Ne+=`';
|
|
1480
|
-
`;var dt=Zt.call(d,"variable")&&d.variable;if(!dt)Ne=`with (obj) {
|
|
1481
|
-
`+Ne+`
|
|
1482
|
-
}
|
|
1483
|
-
`;else if(Ss.test(dt))throw new ot(C);Ne=(ve?Ne.replace(mi,""):Ne).replace(tr,"$1").replace(Mr,"$1;"),Ne="function("+(dt||"obj")+`) {
|
|
1484
|
-
`+(dt?"":`obj || (obj = {});
|
|
1485
|
-
`)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
|
|
1486
|
-
function print() { __p += __j.call(arguments, '') }
|
|
1487
|
-
`:`;
|
|
1488
|
-
`)+Ne+`return __p
|
|
1489
|
-
}`;var Lt=Bd(function(){return Ct(ee,tt+"return "+Ne).apply(e,ae)});if(Lt.source=Ne,ec(Lt))throw Lt;return Lt}function _0(t){return Yt(t).toLowerCase()}function A0(t){return Yt(t).toUpperCase()}function $0(t,d,$){if(t=Yt(t),t&&($||d===e))return Xt(t);if(!t||!(d=Ii(d)))return t;var z=xt(t),q=xt(d),ee=vt(z,q),ae=Sn(z,q)+1;return fo(z,ee,ae).join("")}function M0(t,d,$){if(t=Yt(t),t&&($||d===e))return t.slice(0,Mt(t)+1);if(!t||!(d=Ii(d)))return t;var z=xt(t),q=Sn(z,xt(d))+1;return fo(z,0,q).join("")}function T0(t,d,$){if(t=Yt(t),t&&($||d===e))return t.replace(gn,"");if(!t||!(d=Ii(d)))return t;var z=xt(t),q=vt(z,xt(d));return fo(z,q).join("")}function L0(t,d){var $=L,z=U;if(vn(d)){var q="separator"in d?d.separator:q;$="length"in d?At(d.length):$,z="omission"in d?Ii(d.omission):z}t=Yt(t);var ee=t.length;if(oe(t)){var ae=xt(t);ee=ae.length}if($>=ee)return t;var fe=$-It(z);if(fe<1)return z;var ve=ae?fo(ae,0,fe).join(""):t.slice(0,fe);if(q===e)return ve+z;if(ae&&(fe+=ve.length-fe),tc(q)){if(t.slice(fe).search(q)){var Le,Re=ve;for(q.global||(q=hi(q.source,Yt($i.exec(q))+"g")),q.lastIndex=0;Le=q.exec(Re);)var Ne=Le.index;ve=ve.slice(0,Ne===e?fe:Ne)}}else if(t.indexOf(Ii(q),fe)!=fe){var Ke=ve.lastIndexOf(q);Ke>-1&&(ve=ve.slice(0,Ke))}return ve+z}function E0(t){return t=Yt(t),t&&Qr.test(t)?t.replace(Qn,ut):t}var R0=os(function(t,d,$){return t+($?" ":"")+d.toUpperCase()}),rc=Hh("toUpperCase");function Wd(t,d,$){return t=Yt(t),d=$?e:d,d===e?ge(t)?pn(t):Y(t):t.match(d)||[]}var Bd=Rt(function(t,d){try{return Un(t,e,d)}catch($){return ec($)?$:new ot($)}}),I0=Ur(function(t,d){return Zn(d,function($){$=Sr($),Hr(t,$,Jl(t[$],t))}),t});function O0(t){var d=t==null?0:t.length,$=ht();return t=d?f(t,function(z){if(typeof z[1]!="function")throw new en(w);return[$(z[0]),z[1]]}):[],Rt(function(z){for(var q=-1;++q<d;){var ee=t[q];if(Un(ee[0],this,z))return Un(ee[1],this,z)}})}function N0(t){return sv(Yi(t,s))}function oc(t){return function(){return t}}function D0(t,d){return t==null||t!==t?d:t}var F0=Uh(),P0=Uh(!0);function Ci(t){return t}function sc(t){return wh(typeof t=="function"?t:Yi(t,s))}function W0(t){return xh(Yi(t,s))}function B0(t,d){return kh(t,Yi(d,s))}var H0=Rt(function(t,d){return function($){return Os($,t,d)}}),z0=Rt(function(t,d){return function($){return Os(t,$,d)}});function ac(t,d,$){var z=Gn(d),q=va(d,z);$==null&&!(vn(d)&&(q.length||!z.length))&&($=d,d=t,t=this,q=va(d,Gn(d)));var ee=!(vn($)&&"chain"in $)||!!$.chain,ae=jr(t);return Zn(q,function(fe){var ve=d[fe];t[fe]=ve,ae&&(t.prototype[fe]=function(){var Le=this.__chain__;if(ee||Le){var Re=t(this.__wrapped__),Ne=Re.__actions__=bi(this.__actions__);return Ne.push({func:ve,args:arguments,thisArg:t}),Re.__chain__=Le,Re}return ve.apply(t,A([this.value()],arguments))})}),t}function U0(){return Jt._===this&&(Jt._=gm),this}function lc(){}function V0(t){return t=At(t),Rt(function(d){return Ch(d,t)})}var j0=Wl(f),K0=Wl(Jn),G0=Wl(W);function Hd(t){return Kl(t)?we(Sr(t)):Cv(t)}function q0(t){return function(d){return t==null?e:Ro(t,d)}}var Y0=jh(),Q0=jh(!0);function cc(){return[]}function uc(){return!1}function Z0(){return{}}function J0(){return""}function X0(){return!0}function ex(t,d){if(t=At(t),t<1||t>V)return[];var $=te,z=oi(t,te);d=ht(d),t-=te;for(var q=Xe(z,d);++$<t;)d($);return q}function tx(t){return kt(t)?f(t,Sr):Oi(t)?[t]:bi(ad(Yt(t)))}function nx(t){var d=++fm;return Yt(t)+d}var ix=Ca(function(t,d){return t+d},0),rx=Bl("ceil"),ox=Ca(function(t,d){return t/d},1),sx=Bl("floor");function ax(t){return t&&t.length?ma(t,Ci,_l):e}function lx(t,d){return t&&t.length?ma(t,ht(d,2),_l):e}function cx(t){return de(t,Ci)}function ux(t,d){return de(t,ht(d,2))}function hx(t){return t&&t.length?ma(t,Ci,Tl):e}function dx(t,d){return t&&t.length?ma(t,ht(d,2),Tl):e}var fx=Ca(function(t,d){return t*d},1),px=Bl("round"),gx=Ca(function(t,d){return t-d},0);function mx(t){return t&&t.length?nt(t,Ci):0}function vx(t,d){return t&&t.length?nt(t,ht(d,2)):0}return X.after=Ww,X.ary=yd,X.assign=Ab,X.assignIn=Rd,X.assignInWith=Da,X.assignWith=$b,X.at=Mb,X.before=wd,X.bind=Jl,X.bindAll=I0,X.bindKey=bd,X.castArray=Zw,X.chain=gd,X.chunk=sy,X.compact=ay,X.concat=ly,X.cond=O0,X.conforms=N0,X.constant=oc,X.countBy=mw,X.create=Tb,X.curry=xd,X.curryRight=kd,X.debounce=Cd,X.defaults=Lb,X.defaultsDeep=Eb,X.defer=Bw,X.delay=Hw,X.difference=cy,X.differenceBy=uy,X.differenceWith=hy,X.drop=dy,X.dropRight=fy,X.dropRightWhile=py,X.dropWhile=gy,X.fill=my,X.filter=yw,X.flatMap=xw,X.flatMapDeep=kw,X.flatMapDepth=Cw,X.flatten=hd,X.flattenDeep=vy,X.flattenDepth=yy,X.flip=zw,X.flow=F0,X.flowRight=P0,X.fromPairs=wy,X.functions=Pb,X.functionsIn=Wb,X.groupBy=Sw,X.initial=xy,X.intersection=ky,X.intersectionBy=Cy,X.intersectionWith=Sy,X.invert=Hb,X.invertBy=zb,X.invokeMap=Aw,X.iteratee=sc,X.keyBy=$w,X.keys=Gn,X.keysIn=ki,X.map=La,X.mapKeys=Vb,X.mapValues=jb,X.matches=W0,X.matchesProperty=B0,X.memoize=Ra,X.merge=Kb,X.mergeWith=Id,X.method=H0,X.methodOf=z0,X.mixin=ac,X.negate=Ia,X.nthArg=V0,X.omit=Gb,X.omitBy=qb,X.once=Uw,X.orderBy=Mw,X.over=j0,X.overArgs=Vw,X.overEvery=K0,X.overSome=G0,X.partial=Xl,X.partialRight=Sd,X.partition=Tw,X.pick=Yb,X.pickBy=Od,X.property=Hd,X.propertyOf=q0,X.pull=My,X.pullAll=fd,X.pullAllBy=Ty,X.pullAllWith=Ly,X.pullAt=Ey,X.range=Y0,X.rangeRight=Q0,X.rearg=jw,X.reject=Rw,X.remove=Ry,X.rest=Kw,X.reverse=Ql,X.sampleSize=Ow,X.set=Zb,X.setWith=Jb,X.shuffle=Nw,X.slice=Iy,X.sortBy=Pw,X.sortedUniq=By,X.sortedUniqBy=Hy,X.split=x0,X.spread=Gw,X.tail=zy,X.take=Uy,X.takeRight=Vy,X.takeRightWhile=jy,X.takeWhile=Ky,X.tap=aw,X.throttle=qw,X.thru=Ta,X.toArray=Td,X.toPairs=Nd,X.toPairsIn=Dd,X.toPath=tx,X.toPlainObject=Ed,X.transform=Xb,X.unary=Yw,X.union=Gy,X.unionBy=qy,X.unionWith=Yy,X.uniq=Qy,X.uniqBy=Zy,X.uniqWith=Jy,X.unset=e0,X.unzip=Zl,X.unzipWith=pd,X.update=t0,X.updateWith=n0,X.values=ls,X.valuesIn=i0,X.without=Xy,X.words=Wd,X.wrap=Qw,X.xor=ew,X.xorBy=tw,X.xorWith=nw,X.zip=iw,X.zipObject=rw,X.zipObjectDeep=ow,X.zipWith=sw,X.entries=Nd,X.entriesIn=Dd,X.extend=Rd,X.extendWith=Da,ac(X,X),X.add=ix,X.attempt=Bd,X.camelCase=a0,X.capitalize=Fd,X.ceil=rx,X.clamp=r0,X.clone=Jw,X.cloneDeep=eb,X.cloneDeepWith=tb,X.cloneWith=Xw,X.conformsTo=nb,X.deburr=Pd,X.defaultTo=D0,X.divide=ox,X.endsWith=l0,X.eq=cr,X.escape=c0,X.escapeRegExp=u0,X.every=vw,X.find=ww,X.findIndex=cd,X.findKey=Rb,X.findLast=bw,X.findLastIndex=ud,X.findLastKey=Ib,X.floor=sx,X.forEach=md,X.forEachRight=vd,X.forIn=Ob,X.forInRight=Nb,X.forOwn=Db,X.forOwnRight=Fb,X.get=nc,X.gt=ib,X.gte=rb,X.has=Bb,X.hasIn=ic,X.head=dd,X.identity=Ci,X.includes=_w,X.indexOf=by,X.inRange=o0,X.invoke=Ub,X.isArguments=No,X.isArray=kt,X.isArrayBuffer=ob,X.isArrayLike=xi,X.isArrayLikeObject=Ln,X.isBoolean=sb,X.isBuffer=po,X.isDate=ab,X.isElement=lb,X.isEmpty=cb,X.isEqual=ub,X.isEqualWith=hb,X.isError=ec,X.isFinite=db,X.isFunction=jr,X.isInteger=_d,X.isLength=Oa,X.isMap=Ad,X.isMatch=fb,X.isMatchWith=pb,X.isNaN=gb,X.isNative=mb,X.isNil=yb,X.isNull=vb,X.isNumber=$d,X.isObject=vn,X.isObjectLike=An,X.isPlainObject=Bs,X.isRegExp=tc,X.isSafeInteger=wb,X.isSet=Md,X.isString=Na,X.isSymbol=Oi,X.isTypedArray=as,X.isUndefined=bb,X.isWeakMap=xb,X.isWeakSet=kb,X.join=_y,X.kebabCase=h0,X.last=Zi,X.lastIndexOf=Ay,X.lowerCase=d0,X.lowerFirst=f0,X.lt=Cb,X.lte=Sb,X.max=ax,X.maxBy=lx,X.mean=cx,X.meanBy=ux,X.min=hx,X.minBy=dx,X.stubArray=cc,X.stubFalse=uc,X.stubObject=Z0,X.stubString=J0,X.stubTrue=X0,X.multiply=fx,X.nth=$y,X.noConflict=U0,X.noop=lc,X.now=Ea,X.pad=p0,X.padEnd=g0,X.padStart=m0,X.parseInt=v0,X.random=s0,X.reduce=Lw,X.reduceRight=Ew,X.repeat=y0,X.replace=w0,X.result=Qb,X.round=px,X.runInContext=pe,X.sample=Iw,X.size=Dw,X.snakeCase=b0,X.some=Fw,X.sortedIndex=Oy,X.sortedIndexBy=Ny,X.sortedIndexOf=Dy,X.sortedLastIndex=Fy,X.sortedLastIndexBy=Py,X.sortedLastIndexOf=Wy,X.startCase=k0,X.startsWith=C0,X.subtract=gx,X.sum=mx,X.sumBy=vx,X.template=S0,X.times=ex,X.toFinite=Kr,X.toInteger=At,X.toLength=Ld,X.toLower=_0,X.toNumber=Ji,X.toSafeInteger=_b,X.toString=Yt,X.toUpper=A0,X.trim=$0,X.trimEnd=M0,X.trimStart=T0,X.truncate=L0,X.unescape=E0,X.uniqueId=nx,X.upperCase=R0,X.upperFirst=rc,X.each=md,X.eachRight=vd,X.first=dd,ac(X,function(){var t={};return kr(X,function(d,$){Zt.call(X.prototype,$)||(t[$]=d)}),t}(),{chain:!1}),X.VERSION=l,Zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){X[t].placeholder=X}),Zn(["drop","take"],function(t,d){Ft.prototype[t]=function($){$=$===e?1:Wn(At($),0);var z=this.__filtered__&&!d?new Ft(this):this.clone();return z.__filtered__?z.__takeCount__=oi($,z.__takeCount__):z.__views__.push({size:oi($,te),type:t+(z.__dir__<0?"Right":"")}),z},Ft.prototype[t+"Right"]=function($){return this.reverse()[t]($).reverse()}}),Zn(["filter","map","takeWhile"],function(t,d){var $=d+1,z=$==S||$==N;Ft.prototype[t]=function(q){var ee=this.clone();return ee.__iteratees__.push({iteratee:ht(q,3),type:$}),ee.__filtered__=ee.__filtered__||z,ee}}),Zn(["head","last"],function(t,d){var $="take"+(d?"Right":"");Ft.prototype[t]=function(){return this[$](1).value()[0]}}),Zn(["initial","tail"],function(t,d){var $="drop"+(d?"":"Right");Ft.prototype[t]=function(){return this.__filtered__?new Ft(this):this[$](1)}}),Ft.prototype.compact=function(){return this.filter(Ci)},Ft.prototype.find=function(t){return this.filter(t).head()},Ft.prototype.findLast=function(t){return this.reverse().find(t)},Ft.prototype.invokeMap=Rt(function(t,d){return typeof t=="function"?new Ft(this):this.map(function($){return Os($,t,d)})}),Ft.prototype.reject=function(t){return this.filter(Ia(ht(t)))},Ft.prototype.slice=function(t,d){t=At(t);var $=this;return $.__filtered__&&(t>0||d<0)?new Ft($):(t<0?$=$.takeRight(-t):t&&($=$.drop(t)),d!==e&&(d=At(d),$=d<0?$.dropRight(-d):$.take(d-t)),$)},Ft.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ft.prototype.toArray=function(){return this.take(te)},kr(Ft.prototype,function(t,d){var $=/^(?:filter|find|map|reject)|While$/.test(d),z=/^(?:head|last)$/.test(d),q=X[z?"take"+(d=="last"?"Right":""):d],ee=z||/^find/.test(d);q&&(X.prototype[d]=function(){var ae=this.__wrapped__,fe=z?[1]:arguments,ve=ae instanceof Ft,Le=fe[0],Re=ve||kt(ae),Ne=function(Ot){var Bt=q.apply(X,A([Ot],fe));return z&&Ke?Bt[0]:Bt};Re&&$&&typeof Le=="function"&&Le.length!=1&&(ve=Re=!1);var Ke=this.__chain__,tt=!!this.__actions__.length,dt=ee&&!Ke,Lt=ve&&!tt;if(!ee&&Re){ae=Lt?ae:new Ft(this);var ft=t.apply(ae,fe);return ft.__actions__.push({func:Ta,args:[Ne],thisArg:e}),new qi(ft,Ke)}return dt&&Lt?t.apply(this,fe):(ft=this.thru(Ne),dt?z?ft.value()[0]:ft.value():ft)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(t){var d=Kn[t],$=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",z=/^(?:pop|shift)$/.test(t);X.prototype[t]=function(){var q=arguments;if(z&&!this.__chain__){var ee=this.value();return d.apply(kt(ee)?ee:[],q)}return this[$](function(ae){return d.apply(kt(ae)?ae:[],q)})}}),kr(Ft.prototype,function(t,d){var $=X[d];if($){var z=$.name+"";Zt.call(ns,z)||(ns[z]=[]),ns[z].push({name:d,func:$})}}),ns[ka(e,m).name]=[{name:"wrapper",func:e}],Ft.prototype.clone=Em,Ft.prototype.reverse=Rm,Ft.prototype.value=Im,X.prototype.at=lw,X.prototype.chain=cw,X.prototype.commit=uw,X.prototype.next=hw,X.prototype.plant=fw,X.prototype.reverse=pw,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=gw,X.prototype.first=X.prototype.head,$s&&(X.prototype[$s]=dw),X},Wt=Nn();On?((On.exports=Wt)._=Wt,cn._=Wt):Jt._=Wt}).call($C)}(js,js.exports)),js.exports}var Cg=MC();const Sg=Ja(Cg),TC={mixins:[kg],props:{calculatePacketText:{type:Function,default:c=>`${c}`}},data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:c=>!!c||"Required.",min:c=>c>=1||"Minimum: 1",max:c=>parseInt(c)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(c){c.forEach(u=>{"buffer"in u&&(u.buffer=atob(u.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=u,this.paused||this.rebuildDisplayText()})},paused:function(c){c?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:Sg.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const c={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...c,...this.currentConfig}},methods:{rebuildDisplayText:function(){let c=this.paused?this.pausedHistory:this.history;const u=this.paused?this.pausedAt:this.historyPointer;if(c=c.filter(T=>T).slice(u+1,this.currentConfig.history).concat(c.slice(0,u+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const T=Math.max(c.length+this.pauseOffset,1);c=c.slice(0,T)}const e=Math.max(this.currentConfig.packetsToShow,1);c=c.slice(-e),this.currentConfig.newestAtTop&&(c=c.reverse());let l=`
|
|
1490
|
-
`;this.filterText!==null&&(l+=`
|
|
1491
|
-
`),this.displayText=c.join(l),this.rows=this.displayText.split(`
|
|
1492
|
-
`).length},matchesSearch:function(c){return this.filterText===null?c:c.split(`
|
|
1493
|
-
`).filter(u=>u.toLowerCase().includes(this.filterText.toLowerCase())).join(`
|
|
1494
|
-
`)},download:function(){const c=new Blob([this.displayText],{type:"text/plain"}),u=document.createElement("a");let e=URL.createObjectURL(c);u.href=e,u.setAttribute("download",`${wx.format(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),u.click(),window.URL.revokeObjectURL(e)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},LC={class:"pa-2"},EC={class:"text-area-container"},RC={class:"floating-buttons"};function IC(c,u,e,l,T,b){const w=Ze.resolveComponent("v-text-field"),C=Ze.resolveComponent("v-col"),p=Ze.resolveComponent("v-slider"),g=Ze.resolveComponent("v-row"),i=Ze.resolveComponent("v-textarea"),s=Ze.resolveComponent("v-btn"),o=Ze.resolveComponent("v-card-title"),r=Ze.resolveComponent("v-switch"),n=Ze.resolveComponent("v-radio"),a=Ze.resolveComponent("v-radio-group"),h=Ze.resolveComponent("v-card-text"),m=Ze.resolveComponent("v-card"),y=Ze.resolveComponent("v-menu");return Ze.openBlock(),Ze.createElementBlock("div",LC,[Ze.createVNode(g,{dense:"",class:"mb-2"},{default:Ze.withCtx(()=>[Ze.createVNode(C,{cols:"4"},{default:Ze.withCtx(()=>[Ze.createVNode(w,{modelValue:c.filterText,"onUpdate:modelValue":u[0]||(u[0]=E=>c.filterText=E),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),Ze.createVNode(C,{cols:"8",class:"mt-1"},{default:Ze.withCtx(()=>[Ze.createVNode(p,{modelValue:c.pauseOffset,"onUpdate:modelValue":u[1]||(u[1]=E=>c.pauseOffset=E),"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-c.currentConfig.history,max:0,"hide-details":"",onMousedown:b.pause,"onClick:prepend":b.stepBackward,"onClick:append":b.stepForward},null,8,["modelValue","min","onMousedown","onClick:prepend","onClick:append"])]),_:1})]),_:1}),Ze.createVNode(g,{dense:"","no-gutters":""},{default:Ze.withCtx(()=>[Ze.createVNode(C,null,{default:Ze.withCtx(()=>[Ze.createElementVNode("div",EC,[Ze.createVNode(i,{"model-value":c.displayText,rows:c.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),Ze.createElementVNode("div",RC,[Ze.createVNode(y,{"close-on-content-click":!1,"min-width":700},{activator:Ze.withCtx(({props:E})=>[Ze.createVNode(s,Ze.mergeProps({class:"ml-2",color:"secondary"},E,{icon:"astro:settings",size:"small","aria-label":"Settings","data-test":"history-component-open-settings"}),null,16)]),default:Ze.withCtx(()=>[Ze.createVNode(m,null,{default:Ze.withCtx(()=>[Ze.createVNode(o,{"data-test":"display-settings-card"},{default:Ze.withCtx(()=>u[9]||(u[9]=[Ze.createTextVNode(" Display settings ")])),_:1}),Ze.createVNode(h,null,{default:Ze.withCtx(()=>[Ze.createVNode(g,null,{default:Ze.withCtx(()=>[Ze.createVNode(C,null,{default:Ze.withCtx(()=>[Ze.createVNode(r,{modelValue:c.currentConfig.showTimestamp,"onUpdate:modelValue":u[2]||(u[2]=E=>c.currentConfig.showTimestamp=E),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),c.hasRaw?(Ze.openBlock(),Ze.createBlock(r,{key:0,modelValue:c.currentConfig.showAscii,"onUpdate:modelValue":u[3]||(u[3]=E=>c.currentConfig.showAscii=E),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):Ze.createCommentVNode("",!0),c.hasRaw?(Ze.openBlock(),Ze.createBlock(r,{key:1,modelValue:c.currentConfig.showLineAddress,"onUpdate:modelValue":u[4]||(u[4]=E=>c.currentConfig.showLineAddress=E),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):Ze.createCommentVNode("",!0)]),_:1}),Ze.createVNode(C,null,{default:Ze.withCtx(()=>[Ze.createVNode(a,{modelValue:c.currentConfig.newestAtTop,"onUpdate:modelValue":u[5]||(u[5]=E=>c.currentConfig.newestAtTop=E),label:"Print newest to the"},{default:Ze.withCtx(()=>[Ze.createVNode(n,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),Ze.createVNode(n,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),Ze.createVNode(C,null,{default:Ze.withCtx(()=>[Ze.createVNode(w,{modelValue:c.currentConfig.history,"onUpdate:modelValue":u[6]||(u[6]=E=>c.currentConfig.history=E),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[c.rules.required,c.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),c.hasRaw?(Ze.openBlock(),Ze.createBlock(w,{key:0,modelValue:c.currentConfig.bytesPerLine,"onUpdate:modelValue":u[7]||(u[7]=E=>c.currentConfig.bytesPerLine=E),label:"Bytes per line",type:"number",min:"1",rules:[c.rules.required,c.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):Ze.createCommentVNode("",!0),Ze.createVNode(w,{modelValue:c.currentConfig.packetsToShow,"onUpdate:modelValue":u[8]||(u[8]=E=>c.currentConfig.packetsToShow=E),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${c.currentConfig.history}`,"persistent-hint":"",rules:[c.rules.required,c.rules.min,c.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),Ze.createVNode(s,{class:"ml-2",color:"secondary",icon:"mdi-file-download",size:"small","aria-label":"Download","data-test":"history-component-download",onClick:b.download},null,8,["onClick"]),Ze.createVNode(s,{class:Ze.normalizeClass(["ml-2",{pulse:c.paused}]),color:"primary",icon:c.paused?"mdi-play":"mdi-pause",size:"large","aria-label":c.paused?"Play":"Pause","data-test":"history-component-play-pause",onClick:b.togglePlayPause},null,8,["class","icon","aria-label","onClick"])])])]),_:1})]),_:1})])}const OC=yx._export_sfc(TC,[["render",IC],["__scopeId","data-v-f8fb06ca"]]);var Sc={exports:{}},kf;function NC(){return kf||(kf=1,function(c,u){(function(){ace.require(["ace/mode/text"],function(e){c&&(c.exports=e)})})()}(Sc)),Sc.exports}NC();const DC=!0,zn="u-",FC="uplot",PC=zn+"hz",WC=zn+"vt",BC=zn+"title",HC=zn+"wrap",zC=zn+"under",UC=zn+"over",VC=zn+"axis",Bo=zn+"off",jC=zn+"select",KC=zn+"cursor-x",GC=zn+"cursor-y",qC=zn+"cursor-pt",YC=zn+"legend",QC=zn+"live",ZC=zn+"inline",JC=zn+"series",XC=zn+"marker",Cf=zn+"label",eS=zn+"value",Ks="width",Gs="height",zs="top",Sf="bottom",us="left",_c="right",Wu="#000",_f=Wu+"0",Ac="mousemove",Af="mousedown",$c="mouseup",$f="mouseenter",Mf="mouseleave",Tf="dblclick",tS="resize",nS="scroll",Lf="change",Ya="dppxchange",Bu="--",ws=typeof window<"u",bu=ws?document:null,ds=ws?window:null,iS=ws?navigator:null;let qt,Ba;function xu(){let c=devicePixelRatio;qt!=c&&(qt=c,Ba&&Cu(Lf,Ba,xu),Ba=matchMedia(`(min-resolution: ${qt-.001}dppx) and (max-resolution: ${qt+.001}dppx)`),Uo(Lf,Ba,xu),ds.dispatchEvent(new CustomEvent(Ya)))}function Fi(c,u){if(u!=null){let e=c.classList;!e.contains(u)&&e.add(u)}}function ku(c,u){let e=c.classList;e.contains(u)&&e.remove(u)}function un(c,u,e){c.style[u]=e+"px"}function hr(c,u,e,l){let T=bu.createElement(c);return u!=null&&Fi(T,u),e!=null&&e.insertBefore(T,l),T}function Xi(c,u){return hr("div",c,u)}const Ef=new WeakMap;function Ar(c,u,e,l,T){let b="translate("+u+"px,"+e+"px)",w=Ef.get(c);b!=w&&(c.style.transform=b,Ef.set(c,b),u<0||e<0||u>l||e>T?Fi(c,Bo):ku(c,Bo))}const Rf=new WeakMap;function If(c,u,e){let l=u+e,T=Rf.get(c);l!=T&&(Rf.set(c,l),c.style.background=u,c.style.borderColor=e)}const Of=new WeakMap;function Nf(c,u,e,l){let T=u+""+e,b=Of.get(c);T!=b&&(Of.set(c,T),c.style.height=e+"px",c.style.width=u+"px",c.style.marginLeft=l?-u/2+"px":0,c.style.marginTop=l?-e/2+"px":0)}const Hu={passive:!0},rS={...Hu,capture:!0};function Uo(c,u,e,l){u.addEventListener(c,e,l?rS:Hu)}function Cu(c,u,e,l){u.removeEventListener(c,e,Hu)}ws&&xu();function fr(c,u,e,l){let T;e=e||0,l=l||u.length-1;let b=l<=2147483647;for(;l-e>1;)T=b?e+l>>1:Pi((e+l)/2),u[T]<c?e=T:l=T;return c-u[e]<=u[l]-c?e:l}function _g(c){return(e,l,T)=>{let b=-1,w=-1;for(let C=l;C<=T;C++)if(c(e[C])){b=C;break}for(let C=T;C>=l;C--)if(c(e[C])){w=C;break}return[b,w]}}const Ag=c=>c!=null,$g=c=>c!=null&&c>0,cl=_g(Ag),oS=_g($g);function sS(c,u,e,l=0,T=!1){let b=T?oS:cl,w=T?$g:Ag;[u,e]=b(c,u,e);let C=c[u],p=c[u];if(u>-1)if(l==1)C=c[u],p=c[e];else if(l==-1)C=c[e],p=c[u];else for(let g=u;g<=e;g++){let i=c[g];w(i)&&(i<C?C=i:i>p&&(p=i))}return[C??nn,p??-nn]}function ul(c,u,e,l){let T=Pf(c),b=Pf(u);c==u&&(T==-1?(c*=e,u/=e):(c/=e,u*=e));let w=e==10?qr:Mg,C=T==1?Pi:er,p=b==1?er:Pi,g=C(w(Hn(c))),i=p(w(Hn(u))),s=fs(e,g),o=fs(e,i);return e==10&&(g<0&&(s=rn(s,-g)),i<0&&(o=rn(o,-i))),l||e==2?(c=s*T,u=o*b):(c=Rg(c,s),u=hl(u,o)),[c,u]}function zu(c,u,e,l){let T=ul(c,u,e,l);return c==0&&(T[0]=0),u==0&&(T[1]=0),T}const Uu=.1,Df={mode:3,pad:Uu},Ys={pad:0,soft:null,mode:0},aS={min:Ys,max:Ys};function Qa(c,u,e,l){return dl(e)?Ff(c,u,e):(Ys.pad=e,Ys.soft=l?0:null,Ys.mode=l?3:0,Ff(c,u,aS))}function Vt(c,u){return c??u}function lS(c,u,e){for(u=Vt(u,0),e=Vt(e,c.length-1);u<=e;){if(c[u]!=null)return!0;u++}return!1}function Ff(c,u,e){let l=e.min,T=e.max,b=Vt(l.pad,0),w=Vt(T.pad,0),C=Vt(l.hard,-nn),p=Vt(T.hard,nn),g=Vt(l.soft,nn),i=Vt(T.soft,-nn),s=Vt(l.mode,0),o=Vt(T.mode,0),r=u-c,n=qr(r),a=gi(Hn(c),Hn(u)),h=qr(a),m=Hn(h-n);(r<1e-24||m>10)&&(r=0,(c==0||u==0)&&(r=1e-24,s==2&&g!=nn&&(b=0),o==2&&i!=-nn&&(w=0)));let y=r||a||1e3,E=qr(y),M=fs(10,Pi(E)),_=y*(r==0?c==0?.1:1:b),v=rn(Rg(c-_,M/10),24),R=c>=g&&(s==1||s==3&&v<=g||s==2&&v>=g)?g:nn,I=gi(C,v<R&&c>=R?R:pr(R,v)),F=y*(r==0?u==0?.1:1:w),L=rn(hl(u+F,M/10),24),U=u<=i&&(o==1||o==3&&L>=i||o==2&&L<=i)?i:-nn,P=pr(p,L>U&&u<=U?U:gi(U,L));return I==P&&I==0&&(P=100),[I,P]}const cS=new Intl.NumberFormat(ws?iS.language:"en-US"),Vu=c=>cS.format(c),Wi=Math,Ka=Wi.PI,Hn=Wi.abs,Pi=Wi.floor,Bn=Wi.round,er=Wi.ceil,pr=Wi.min,gi=Wi.max,fs=Wi.pow,Pf=Wi.sign,qr=Wi.log10,Mg=Wi.log2,uS=(c,u=1)=>Wi.sinh(c)*u,Mc=(c,u=1)=>Wi.asinh(c/u),nn=1/0;function Wf(c){return(qr((c^c>>31)-(c>>31))|0)+1}function Su(c,u,e){return pr(gi(c,u),e)}function Tg(c){return typeof c=="function"}function Pt(c){return Tg(c)?c:()=>c}const hS=()=>{},Lg=c=>c,Eg=(c,u)=>u,dS=c=>null,Bf=c=>!0,Hf=(c,u)=>c==u,fS=/\.\d*?(?=9{6,}|0{6,})/gm,jo=c=>{if(Og(c)||vo.has(c))return c;const u=`${c}`,e=u.match(fS);if(e==null)return c;let l=e[0].length-1;if(u.indexOf("e-")!=-1){let[T,b]=u.split("e");return+`${jo(T)}e${b}`}return rn(c,l)};function Po(c,u){return jo(rn(jo(c/u))*u)}function hl(c,u){return jo(er(jo(c/u))*u)}function Rg(c,u){return jo(Pi(jo(c/u))*u)}function rn(c,u=0){if(Og(c))return c;let e=10**u,l=c*e*(1+Number.EPSILON);return Bn(l)/e}const vo=new Map;function Ig(c){return((""+c).split(".")[1]||"").length}function Js(c,u,e,l){let T=[],b=l.map(Ig);for(let w=u;w<e;w++){let C=Hn(w),p=rn(fs(c,w),C);for(let g=0;g<l.length;g++){let i=c==10?+`${l[g]}e${w}`:l[g]*p,s=(w>=0?0:C)+(w>=b[g]?0:b[g]),o=c==10?i:rn(i,s);T.push(o),vo.set(o,s)}}return T}const Qs={},ju=[],ps=[null,null],go=Array.isArray,Og=Number.isInteger,pS=c=>c===void 0;function zf(c){return typeof c=="string"}function dl(c){let u=!1;if(c!=null){let e=c.constructor;u=e==null||e==Object}return u}function gS(c){return c!=null&&typeof c=="object"}const mS=Object.getPrototypeOf(Uint8Array),Ng="__proto__";function gs(c,u=dl){let e;if(go(c)){let l=c.find(T=>T!=null);if(go(l)||u(l)){e=Array(c.length);for(let T=0;T<c.length;T++)e[T]=gs(c[T],u)}else e=c.slice()}else if(c instanceof mS)e=c.slice();else if(u(c)){e={};for(let l in c)l!=Ng&&(e[l]=gs(c[l],u))}else e=c;return e}function Dn(c){let u=arguments;for(let e=1;e<u.length;e++){let l=u[e];for(let T in l)T!=Ng&&(dl(c[T])?Dn(c[T],gs(l[T])):c[T]=gs(l[T]))}return c}const vS=0,yS=1,wS=2;function bS(c,u,e){for(let l=0,T,b=-1;l<u.length;l++){let w=u[l];if(w>b){for(T=w-1;T>=0&&c[T]==null;)c[T--]=null;for(T=w+1;T<e&&c[T]==null;)c[b=T++]=null}}}function xS(c,u){if(SS(c)){let w=c[0].slice();for(let C=1;C<c.length;C++)w.push(...c[C].slice(1));return _S(w[0])||(w=CS(w)),w}let e=new Set;for(let w=0;w<c.length;w++){let p=c[w][0],g=p.length;for(let i=0;i<g;i++)e.add(p[i])}let l=[Array.from(e).sort((w,C)=>w-C)],T=l[0].length,b=new Map;for(let w=0;w<T;w++)b.set(l[0][w],w);for(let w=0;w<c.length;w++){let C=c[w],p=C[0];for(let g=1;g<C.length;g++){let i=C[g],s=Array(T).fill(void 0),o=u?u[w][g]:yS,r=[];for(let n=0;n<i.length;n++){let a=i[n],h=b.get(p[n]);a===null?o!=vS&&(s[h]=a,o==wS&&r.push(h)):s[h]=a}bS(s,r,T),l.push(s)}}return l}const kS=typeof queueMicrotask>"u"?c=>Promise.resolve().then(c):queueMicrotask;function CS(c){let u=c[0],e=u.length,l=Array(e);for(let b=0;b<l.length;b++)l[b]=b;l.sort((b,w)=>u[b]-u[w]);let T=[];for(let b=0;b<c.length;b++){let w=c[b],C=Array(e);for(let p=0;p<e;p++)C[p]=w[l[p]];T.push(C)}return T}function SS(c){let u=c[0][0],e=u.length;for(let l=1;l<c.length;l++){let T=c[l][0];if(T.length!=e)return!1;if(T!=u){for(let b=0;b<e;b++)if(T[b]!=u[b])return!1}}return!0}function _S(c,u=100){const e=c.length;if(e<=1)return!0;let l=0,T=e-1;for(;l<=T&&c[l]==null;)l++;for(;T>=l&&c[T]==null;)T--;if(T<=l)return!0;const b=gi(1,Pi((T-l+1)/u));for(let w=c[l],C=l+b;C<=T;C+=b){const p=c[C];if(p!=null){if(p<=w)return!1;w=p}}return!0}const Dg=["January","February","March","April","May","June","July","August","September","October","November","December"],Fg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Pg(c){return c.slice(0,3)}const AS=Fg.map(Pg),$S=Dg.map(Pg),MS={MMMM:Dg,MMM:$S,WWWW:Fg,WWW:AS};function Us(c){return(c<10?"0":"")+c}function TS(c){return(c<10?"00":c<100?"0":"")+c}const LS={YYYY:c=>c.getFullYear(),YY:c=>(c.getFullYear()+"").slice(2),MMMM:(c,u)=>u.MMMM[c.getMonth()],MMM:(c,u)=>u.MMM[c.getMonth()],MM:c=>Us(c.getMonth()+1),M:c=>c.getMonth()+1,DD:c=>Us(c.getDate()),D:c=>c.getDate(),WWWW:(c,u)=>u.WWWW[c.getDay()],WWW:(c,u)=>u.WWW[c.getDay()],HH:c=>Us(c.getHours()),H:c=>c.getHours(),h:c=>{let u=c.getHours();return u==0?12:u>12?u-12:u},AA:c=>c.getHours()>=12?"PM":"AM",aa:c=>c.getHours()>=12?"pm":"am",a:c=>c.getHours()>=12?"p":"a",mm:c=>Us(c.getMinutes()),m:c=>c.getMinutes(),ss:c=>Us(c.getSeconds()),s:c=>c.getSeconds(),fff:c=>TS(c.getMilliseconds())};function Ku(c,u){u=u||MS;let e=[],l=/\{([a-z]+)\}|[^{]+/gi,T;for(;T=l.exec(c);)e.push(T[0][0]=="{"?LS[T[1]]:T[0]);return b=>{let w="";for(let C=0;C<e.length;C++)w+=typeof e[C]=="string"?e[C]:e[C](b,u);return w}}const ES=new Intl.DateTimeFormat().resolvedOptions().timeZone;function RS(c,u){let e;return u=="UTC"||u=="Etc/UTC"?e=new Date(+c+c.getTimezoneOffset()*6e4):u==ES?e=c:(e=new Date(c.toLocaleString("en-US",{timeZone:u})),e.setMilliseconds(c.getMilliseconds())),e}const Wg=c=>c%1==0,Za=[1,2,2.5,5],IS=Js(10,-32,0,Za),Bg=Js(10,0,32,Za),OS=Bg.filter(Wg),Wo=IS.concat(Bg),Gu=`
|
|
1495
|
-
`,Hg="{YYYY}",Uf=Gu+Hg,zg="{M}/{D}",qs=Gu+zg,Ha=qs+"/{YY}",Ug="{aa}",NS="{h}:{mm}",hs=NS+Ug,Vf=Gu+hs,jf=":{ss}",Qt=null;function Vg(c){let u=c*1e3,e=u*60,l=e*60,T=l*24,b=T*30,w=T*365,p=(c==1?Js(10,0,3,Za).filter(Wg):Js(10,-3,0,Za)).concat([u,u*5,u*10,u*15,u*30,e,e*5,e*10,e*15,e*30,l,l*2,l*3,l*4,l*6,l*8,l*12,T,T*2,T*3,T*4,T*5,T*6,T*7,T*8,T*9,T*10,T*15,b,b*2,b*3,b*4,b*6,w,w*2,w*5,w*10,w*25,w*50,w*100]);const g=[[w,Hg,Qt,Qt,Qt,Qt,Qt,Qt,1],[T*28,"{MMM}",Uf,Qt,Qt,Qt,Qt,Qt,1],[T,zg,Uf,Qt,Qt,Qt,Qt,Qt,1],[l,"{h}"+Ug,Ha,Qt,qs,Qt,Qt,Qt,1],[e,hs,Ha,Qt,qs,Qt,Qt,Qt,1],[u,jf,Ha+" "+hs,Qt,qs+" "+hs,Qt,Vf,Qt,1],[c,jf+".{fff}",Ha+" "+hs,Qt,qs+" "+hs,Qt,Vf,Qt,1]];function i(s){return(o,r,n,a,h,m)=>{let y=[],E=h>=w,M=h>=b&&h<w,_=s(n),v=rn(_*c,3),R=Tc(_.getFullYear(),E?0:_.getMonth(),M||E?1:_.getDate()),I=rn(R*c,3);if(M||E){let F=M?h/b:0,L=E?h/w:0,U=v==I?v:rn(Tc(R.getFullYear()+L,R.getMonth()+F,1)*c,3),P=new Date(Bn(U/c)),O=P.getFullYear(),S=P.getMonth();for(let k=0;U<=a;k++){let N=Tc(O+L*k,S+F*k,1),B=N-s(rn(N*c,3));U=rn((+N+B)*c,3),U<=a&&y.push(U)}}else{let F=h>=T?T:h,L=Pi(n)-Pi(v),U=I+L+hl(v-I,F);y.push(U);let P=s(U),O=P.getHours()+P.getMinutes()/e+P.getSeconds()/l,S=h/l,k=o.axes[r]._space,N=m/k;for(;U=rn(U+h,c==1?0:3),!(U>a);)if(S>1){let B=Pi(rn(O+S,6))%24,Q=s(U).getHours()-B;Q>1&&(Q=-1),U-=Q*l,O=(O+S)%24;let te=y[y.length-1];rn((U-te)/h,3)*N>=.7&&y.push(U)}else y.push(U)}return y}}return[p,g,i]}const[DS,FS,PS]=Vg(1),[WS,BS,HS]=Vg(.001);Js(2,-53,53,[1]);function Kf(c,u){return c.map(e=>e.map((l,T)=>T==0||T==8||l==null?l:u(T==1||e[8]==0?l:e[1]+l)))}function Gf(c,u){return(e,l,T,b,w)=>{let C=u.find(n=>w>=n[0])||u[u.length-1],p,g,i,s,o,r;return l.map(n=>{let a=c(n),h=a.getFullYear(),m=a.getMonth(),y=a.getDate(),E=a.getHours(),M=a.getMinutes(),_=a.getSeconds(),v=h!=p&&C[2]||m!=g&&C[3]||y!=i&&C[4]||E!=s&&C[5]||M!=o&&C[6]||_!=r&&C[7]||C[1];return p=h,g=m,i=y,s=E,o=M,r=_,v(a)})}}function zS(c,u){let e=Ku(u);return(l,T,b,w,C)=>T.map(p=>e(c(p)))}function Tc(c,u,e){return new Date(c,u,e)}function qf(c,u){return u(c)}const US="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Yf(c,u){return(e,l,T,b)=>b==null?Bu:u(c(l))}function VS(c,u){let e=c.series[u];return e.width?e.stroke(c,u):e.points.width?e.points.stroke(c,u):null}function jS(c,u){return c.series[u].fill(c,u)}const KS={show:!0,live:!0,isolate:!1,mount:hS,markers:{show:!0,width:2,stroke:VS,fill:jS,dash:"solid"},idx:null,idxs:null,values:[]};function GS(c,u){let e=c.cursor.points,l=Xi(),T=e.size(c,u);un(l,Ks,T),un(l,Gs,T);let b=T/-2;un(l,"marginLeft",b),un(l,"marginTop",b);let w=e.width(c,u,T);return w&&un(l,"borderWidth",w),l}function qS(c,u){let e=c.series[u].points;return e._fill||e._stroke}function YS(c,u){let e=c.series[u].points;return e._stroke||e._fill}function QS(c,u){return c.series[u].points.size}const Lc=[0,0];function ZS(c,u,e){return Lc[0]=u,Lc[1]=e,Lc}function za(c,u,e,l=!0){return T=>{T.button==0&&(!l||T.target==u)&&e(T)}}function Ec(c,u,e,l=!0){return T=>{(!l||T.target==u)&&e(T)}}const JS={show:!0,x:!0,y:!0,lock:!1,move:ZS,points:{one:!1,show:GS,size:QS,width:0,stroke:YS,fill:qS},bind:{mousedown:za,mouseup:za,click:za,dblclick:za,mousemove:Ec,mouseleave:Ec,mouseenter:Ec},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(c,u)=>{u.stopPropagation(),u.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(c,u,e,l,T)=>l-T,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},jg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},qu=Dn({},jg,{filter:Eg}),Kg=Dn({},qu,{size:10}),Gg=Dn({},jg,{show:!1}),Yu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',qg="bold "+Yu,Yg=1.5,Qf={show:!0,scale:"x",stroke:Wu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:qg,side:2,grid:qu,ticks:Kg,border:Gg,font:Yu,lineGap:Yg,rotate:0},XS="Value",e_="Time",Zf={show:!0,scale:"x",auto:!1,sorted:1,min:nn,max:-nn,idxs:[]};function t_(c,u,e,l,T){return u.map(b=>b==null?"":Vu(b))}function n_(c,u,e,l,T,b,w){let C=[],p=vo.get(T)||0;e=w?e:rn(hl(e,T),p);for(let g=e;g<=l;g=rn(g+T,p))C.push(Object.is(g,-0)?0:g);return C}function _u(c,u,e,l,T,b,w){const C=[],p=c.scales[c.axes[u].scale].log,g=p==10?qr:Mg,i=Pi(g(e));T=fs(p,i),p==10&&(T=Wo[fr(T,Wo)]);let s=e,o=T*p;p==10&&(o=Wo[fr(o,Wo)]);do C.push(s),s=s+T,p==10&&!vo.has(s)&&(s=rn(s,vo.get(T))),s>=o&&(T=s,o=T*p,p==10&&(o=Wo[fr(o,Wo)]));while(s<=l);return C}function i_(c,u,e,l,T,b,w){let p=c.scales[c.axes[u].scale].asinh,g=l>p?_u(c,u,gi(p,e),l,T):[p],i=l>=0&&e<=0?[0]:[];return(e<-p?_u(c,u,gi(p,-l),-e,T):[p]).reverse().map(o=>-o).concat(i,g)}const Qg=/./,r_=/[12357]/,o_=/[125]/,Jf=/1/,Au=(c,u,e,l)=>c.map((T,b)=>u==4&&T==0||b%l==0&&e.test(T.toExponential()[T<0?1:0])?T:null);function s_(c,u,e,l,T){let b=c.axes[e],w=b.scale,C=c.scales[w],p=c.valToPos,g=b._space,i=p(10,w),s=p(9,w)-i>=g?Qg:p(7,w)-i>=g?r_:p(5,w)-i>=g?o_:Jf;if(s==Jf){let o=Hn(p(1,w)-i);if(o<g)return Au(u.slice().reverse(),C.distr,s,er(g/o)).reverse()}return Au(u,C.distr,s,1)}function a_(c,u,e,l,T){let b=c.axes[e],w=b.scale,C=b._space,p=c.valToPos,g=Hn(p(1,w)-p(2,w));return g<C?Au(u.slice().reverse(),3,Qg,er(C/g)).reverse():u}function l_(c,u,e,l){return l==null?Bu:u==null?"":Vu(u)}const Xf={show:!0,scale:"y",stroke:Wu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:qg,side:3,grid:qu,ticks:Kg,border:Gg,font:Yu,lineGap:Yg,rotate:0};function c_(c,u){let e=3+(c||1)*2;return rn(e*u,3)}function u_(c,u){let{scale:e,idxs:l}=c.series[0],T=c._data[0],b=c.valToPos(T[l[0]],e,!0),w=c.valToPos(T[l[1]],e,!0),C=Hn(w-b),p=c.series[u],g=C/(p.points.space*qt);return l[1]-l[0]<=g}const ep={scale:null,auto:!0,sorted:0,min:nn,max:-nn},Zg=(c,u,e,l,T)=>T,tp={show:!0,auto:!0,sorted:0,gaps:Zg,alpha:1,facets:[Dn({},ep,{scale:"x"}),Dn({},ep,{scale:"y"})]},np={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Zg,alpha:1,points:{show:u_,filter:null},values:null,min:nn,max:-nn,idxs:[],path:null,clip:null};function h_(c,u,e,l,T){return e/10}const Jg={time:DC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},d_=Dn({},Jg,{time:!1,ori:1}),ip={};function Xg(c,u){let e=ip[c];return e||(e={key:c,plots:[],sub(l){e.plots.push(l)},unsub(l){e.plots=e.plots.filter(T=>T!=l)},pub(l,T,b,w,C,p,g){for(let i=0;i<e.plots.length;i++)e.plots[i]!=T&&e.plots[i].pub(l,T,b,w,C,p,g)}},c!=null&&(ip[c]=e)),e}const ms=1,$u=2;function Ko(c,u,e){const l=c.mode,T=c.series[u],b=l==2?c._data[u]:c._data,w=c.scales,C=c.bbox;let p=b[0],g=l==2?b[1]:b[u],i=l==2?w[T.facets[0].scale]:w[c.series[0].scale],s=l==2?w[T.facets[1].scale]:w[T.scale],o=C.left,r=C.top,n=C.width,a=C.height,h=c.valToPosH,m=c.valToPosV;return i.ori==0?e(T,p,g,i,s,h,m,o,r,n,a,pl,bs,ml,tm,im):e(T,p,g,i,s,m,h,r,o,a,n,gl,xs,Ju,nm,rm)}function Qu(c,u){let e=0,l=0,T=Vt(c.bands,ju);for(let b=0;b<T.length;b++){let w=T[b];w.series[0]==u?e=w.dir:w.series[1]==u&&(w.dir==1?l|=1:l|=2)}return[e,l==1?-1:l==2?1:l==3?2:0]}function f_(c,u,e,l,T){let b=c.mode,w=c.series[u],C=b==2?w.facets[1].scale:w.scale,p=c.scales[C];return T==-1?p.min:T==1?p.max:p.distr==3?p.dir==1?p.min:p.max:0}function Yr(c,u,e,l,T,b){return Ko(c,u,(w,C,p,g,i,s,o,r,n,a,h)=>{let m=w.pxRound;const y=g.dir*(g.ori==0?1:-1),E=g.ori==0?bs:xs;let M,_;y==1?(M=e,_=l):(M=l,_=e);let v=m(s(C[M],g,a,r)),R=m(o(p[M],i,h,n)),I=m(s(C[_],g,a,r)),F=m(o(b==1?i.max:i.min,i,h,n)),L=new Path2D(T);return E(L,I,F),E(L,v,F),E(L,v,R),L})}function fl(c,u,e,l,T,b){let w=null;if(c.length>0){w=new Path2D;const C=u==0?ml:Ju;let p=e;for(let s=0;s<c.length;s++){let o=c[s];if(o[1]>o[0]){let r=o[0]-p;r>0&&C(w,p,l,r,l+b),p=o[1]}}let g=e+T-p,i=10;g>0&&C(w,p,l-i/2,g,l+b+i)}return w}function p_(c,u,e){let l=c[c.length-1];l&&l[0]==u?l[1]=e:c.push([u,e])}function Zu(c,u,e,l,T,b,w){let C=[],p=c.length;for(let g=T==1?e:l;g>=e&&g<=l;g+=T)if(u[g]===null){let s=g,o=g;if(T==1)for(;++g<=l&&u[g]===null;)o=g;else for(;--g>=e&&u[g]===null;)o=g;let r=b(c[s]),n=o==s?r:b(c[o]),a=s-T;r=w<=0&&a>=0&&a<p?b(c[a]):r;let m=o+T;n=w>=0&&m>=0&&m<p?b(c[m]):n,n>=r&&C.push([r,n])}return C}function rp(c){return c==0?Lg:c==1?Bn:u=>Po(u,c)}function em(c){let u=c==0?pl:gl,e=c==0?(T,b,w,C,p,g)=>{T.arcTo(b,w,C,p,g)}:(T,b,w,C,p,g)=>{T.arcTo(w,b,p,C,g)},l=c==0?(T,b,w,C,p)=>{T.rect(b,w,C,p)}:(T,b,w,C,p)=>{T.rect(w,b,p,C)};return(T,b,w,C,p,g=0,i=0)=>{g==0&&i==0?l(T,b,w,C,p):(g=pr(g,C/2,p/2),i=pr(i,C/2,p/2),u(T,b+g,w),e(T,b+C,w,b+C,w+p,g),e(T,b+C,w+p,b,w+p,i),e(T,b,w+p,b,w,i),e(T,b,w,b+C,w,g),T.closePath())}}const pl=(c,u,e)=>{c.moveTo(u,e)},gl=(c,u,e)=>{c.moveTo(e,u)},bs=(c,u,e)=>{c.lineTo(u,e)},xs=(c,u,e)=>{c.lineTo(e,u)},ml=em(0),Ju=em(1),tm=(c,u,e,l,T,b)=>{c.arc(u,e,l,T,b)},nm=(c,u,e,l,T,b)=>{c.arc(e,u,l,T,b)},im=(c,u,e,l,T,b,w)=>{c.bezierCurveTo(u,e,l,T,b,w)},rm=(c,u,e,l,T,b,w)=>{c.bezierCurveTo(e,u,T,l,w,b)};function om(c){return(u,e,l,T,b)=>Ko(u,e,(w,C,p,g,i,s,o,r,n,a,h)=>{let{pxRound:m,points:y}=w,E,M;g.ori==0?(E=pl,M=tm):(E=gl,M=nm);const _=rn(y.width*qt,3);let v=(y.size-y.width)/2*qt,R=rn(v*2,3),I=new Path2D,F=new Path2D,{left:L,top:U,width:P,height:O}=u.bbox;ml(F,L-R,U-R,P+R*2,O+R*2);const S=k=>{if(p[k]!=null){let N=m(s(C[k],g,a,r)),B=m(o(p[k],i,h,n));E(I,N+v,B),M(I,N,B,v,0,Ka*2)}};if(b)b.forEach(S);else for(let k=l;k<=T;k++)S(k);return{stroke:_>0?I:null,fill:I,clip:F,flags:ms|$u}})}function sm(c){return(u,e,l,T,b,w)=>{l!=T&&(b!=l&&w!=l&&c(u,e,l),b!=T&&w!=T&&c(u,e,T),c(u,e,w))}}const g_=sm(bs),m_=sm(xs);function am(c){const u=Vt(c==null?void 0:c.alignGaps,0);return(e,l,T,b)=>Ko(e,l,(w,C,p,g,i,s,o,r,n,a,h)=>{[T,b]=cl(p,T,b);let m=w.pxRound,y=O=>m(s(O,g,a,r)),E=O=>m(o(O,i,h,n)),M,_;g.ori==0?(M=bs,_=g_):(M=xs,_=m_);const v=g.dir*(g.ori==0?1:-1),R={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ms},I=R.stroke;let F=!1;if(b-T>=a*4){let O=ne=>e.posToVal(ne,g.key,!0),S=null,k=null,N,B,V,G=y(C[v==1?T:b]),Q=y(C[T]),te=y(C[b]),he=O(v==1?Q+1:te-1);for(let ne=v==1?T:b;ne>=T&&ne<=b;ne+=v){let ce=C[ne],le=(v==1?ce<he:ce>he)?G:y(ce),me=p[ne];le==G?me!=null?(B=me,S==null?(M(I,le,E(B)),N=S=k=B):B<S?S=B:B>k&&(k=B)):me===null&&(F=!0):(S!=null&&_(I,G,E(S),E(k),E(N),E(B)),me!=null?(B=me,M(I,le,E(B)),S=k=N=B):(S=k=null,me===null&&(F=!0)),G=le,he=O(G+v))}S!=null&&S!=k&&V!=G&&_(I,G,E(S),E(k),E(N),E(B))}else for(let O=v==1?T:b;O>=T&&O<=b;O+=v){let S=p[O];S===null?F=!0:S!=null&&M(I,y(C[O]),E(S))}let[U,P]=Qu(e,l);if(w.fill!=null||U!=0){let O=R.fill=new Path2D(I),S=w.fillTo(e,l,w.min,w.max,U),k=E(S),N=y(C[T]),B=y(C[b]);v==-1&&([B,N]=[N,B]),M(O,B,k),M(O,N,k)}if(!w.spanGaps){let O=[];F&&O.push(...Zu(C,p,T,b,v,y,u)),R.gaps=O=w.gaps(e,l,T,b,O),R.clip=fl(O,g.ori,r,n,a,h)}return P!=0&&(R.band=P==2?[Yr(e,l,T,b,I,-1),Yr(e,l,T,b,I,1)]:Yr(e,l,T,b,I,P)),R})}function v_(c){const u=Vt(c.align,1),e=Vt(c.ascDesc,!1),l=Vt(c.alignGaps,0),T=Vt(c.extend,!1);return(b,w,C,p)=>Ko(b,w,(g,i,s,o,r,n,a,h,m,y,E)=>{[C,p]=cl(s,C,p);let M=g.pxRound,{left:_,width:v}=b.bbox,R=Q=>M(n(Q,o,y,h)),I=Q=>M(a(Q,r,E,m)),F=o.ori==0?bs:xs;const L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ms},U=L.stroke,P=o.dir*(o.ori==0?1:-1);let O=I(s[P==1?C:p]),S=R(i[P==1?C:p]),k=S,N=S;T&&u==-1&&(N=_,F(U,N,O)),F(U,S,O);for(let Q=P==1?C:p;Q>=C&&Q<=p;Q+=P){let te=s[Q];if(te==null)continue;let he=R(i[Q]),ne=I(te);u==1?F(U,he,O):F(U,k,ne),F(U,he,ne),O=ne,k=he}let B=k;T&&u==1&&(B=_+v,F(U,B,O));let[V,G]=Qu(b,w);if(g.fill!=null||V!=0){let Q=L.fill=new Path2D(U),te=g.fillTo(b,w,g.min,g.max,V),he=I(te);F(Q,B,he),F(Q,N,he)}if(!g.spanGaps){let Q=[];Q.push(...Zu(i,s,C,p,P,R,l));let te=g.width*qt/2,he=e||u==1?te:-te,ne=e||u==-1?-te:te;Q.forEach(ce=>{ce[0]+=he,ce[1]+=ne}),L.gaps=Q=g.gaps(b,w,C,p,Q),L.clip=fl(Q,o.ori,h,m,y,E)}return G!=0&&(L.band=G==2?[Yr(b,w,C,p,U,-1),Yr(b,w,C,p,U,1)]:Yr(b,w,C,p,U,G)),L})}function op(c,u,e,l,T,b,w=nn){if(c.length>1){let C=null;for(let p=0,g=1/0;p<c.length;p++)if(u[p]!==void 0){if(C!=null){let i=Hn(c[p]-c[C]);i<g&&(g=i,w=Hn(e(c[p],l,T,b)-e(c[C],l,T,b)))}C=p}}return w}function y_(c){c=c||Qs;const u=Vt(c.size,[.6,nn,1]),e=c.align||0,l=c.gap||0;let T=c.radius;T=T==null?[0,0]:typeof T=="number"?[T,0]:T;const b=Pt(T),w=1-u[0],C=Vt(u[1],nn),p=Vt(u[2],1),g=Vt(c.disp,Qs),i=Vt(c.each,r=>{}),{fill:s,stroke:o}=g;return(r,n,a,h)=>Ko(r,n,(m,y,E,M,_,v,R,I,F,L,U)=>{let P=m.pxRound,O=e,S=l*qt,k=C*qt,N=p*qt,B,V;M.ori==0?[B,V]=b(r,n):[V,B]=b(r,n);const G=M.dir*(M.ori==0?1:-1);let Q=M.ori==0?ml:Ju,te=M.ori==0?i:(Ue,Ce,We,qe,ct,wt,bt)=>{i(Ue,Ce,We,ct,qe,bt,wt)},he=Vt(r.bands,ju).find(Ue=>Ue.series[0]==n),ne=he!=null?he.dir:0,ce=m.fillTo(r,n,m.min,m.max,ne),ue=P(R(ce,_,U,F)),le,me,Ae,$e=L,Te=P(m.width*qt),Ge=!1,je=null,at=null,et=null,lt=null;s!=null&&(Te==0||o!=null)&&(Ge=!0,je=s.values(r,n,a,h),at=new Map,new Set(je).forEach(Ue=>{Ue!=null&&at.set(Ue,new Path2D)}),Te>0&&(et=o.values(r,n,a,h),lt=new Map,new Set(et).forEach(Ue=>{Ue!=null&<.set(Ue,new Path2D)})));let{x0:jt,size:on}=g;if(jt!=null&&on!=null){O=1,y=jt.values(r,n,a,h),jt.unit==2&&(y=y.map(We=>r.posToVal(I+We*L,M.key,!0)));let Ue=on.values(r,n,a,h);on.unit==2?me=Ue[0]*L:me=v(Ue[0],M,L,I)-v(0,M,L,I),$e=op(y,E,v,M,L,I,$e),Ae=$e-me+S}else $e=op(y,E,v,M,L,I,$e),Ae=$e*w+S,me=$e-Ae;Ae<1&&(Ae=0),Te>=me/2&&(Te=0),Ae<5&&(P=Lg);let Ht=Ae>0,qn=$e-Ae-(Ht?Te:0);me=P(Su(qn,N,k)),le=(O==0?me/2:O==G?0:me)-O*G*((O==0?S/2:0)+(Ht?Te/2:0));const sn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},yn=Ge?null:new Path2D;let wn=null;if(he!=null)wn=r.data[he.series[1]];else{let{y0:Ue,y1:Ce}=g;Ue!=null&&Ce!=null&&(E=Ce.values(r,n,a,h),wn=Ue.values(r,n,a,h))}let In=B*me,pt=V*me;for(let Ue=G==1?a:h;Ue>=a&&Ue<=h;Ue+=G){let Ce=E[Ue];if(Ce==null)continue;if(wn!=null){let st=wn[Ue]??0;if(Ce-st==0)continue;ue=R(st,_,U,F)}let We=M.distr!=2||g!=null?y[Ue]:Ue,qe=v(We,M,L,I),ct=R(Vt(Ce,ce),_,U,F),wt=P(qe-le),bt=P(gi(ct,ue)),$t=P(pr(ct,ue)),_t=bt-$t;if(Ce!=null){let st=Ce<0?pt:In,gt=Ce<0?In:pt;Ge?(Te>0&&et[Ue]!=null&&Q(lt.get(et[Ue]),wt,$t+Pi(Te/2),me,gi(0,_t-Te),st,gt),je[Ue]!=null&&Q(at.get(je[Ue]),wt,$t+Pi(Te/2),me,gi(0,_t-Te),st,gt)):Q(yn,wt,$t+Pi(Te/2),me,gi(0,_t-Te),st,gt),te(r,n,Ue,wt-Te/2,$t,me+Te,_t)}}return Te>0?sn.stroke=Ge?lt:yn:Ge||(sn._fill=m.width==0?m._fill:m._stroke??m._fill,sn.width=0),sn.fill=Ge?at:yn,sn})}function w_(c,u){const e=Vt(u==null?void 0:u.alignGaps,0);return(l,T,b,w)=>Ko(l,T,(C,p,g,i,s,o,r,n,a,h,m)=>{[b,w]=cl(g,b,w);let y=C.pxRound,E=B=>y(o(B,i,h,n)),M=B=>y(r(B,s,m,a)),_,v,R;i.ori==0?(_=pl,R=bs,v=im):(_=gl,R=xs,v=rm);const I=i.dir*(i.ori==0?1:-1);let F=E(p[I==1?b:w]),L=F,U=[],P=[];for(let B=I==1?b:w;B>=b&&B<=w;B+=I)if(g[B]!=null){let G=p[B],Q=E(G);U.push(L=Q),P.push(M(g[B]))}const O={stroke:c(U,P,_,R,v,y),fill:null,clip:null,band:null,gaps:null,flags:ms},S=O.stroke;let[k,N]=Qu(l,T);if(C.fill!=null||k!=0){let B=O.fill=new Path2D(S),V=C.fillTo(l,T,C.min,C.max,k),G=M(V);R(B,L,G),R(B,F,G)}if(!C.spanGaps){let B=[];B.push(...Zu(p,g,b,w,I,E,e)),O.gaps=B=C.gaps(l,T,b,w,B),O.clip=fl(B,i.ori,n,a,h,m)}return N!=0&&(O.band=N==2?[Yr(l,T,b,w,S,-1),Yr(l,T,b,w,S,1)]:Yr(l,T,b,w,S,N)),O})}function b_(c){return w_(x_,c)}function x_(c,u,e,l,T,b){const w=c.length;if(w<2)return null;const C=new Path2D;if(e(C,c[0],u[0]),w==2)l(C,c[1],u[1]);else{let p=Array(w),g=Array(w-1),i=Array(w-1),s=Array(w-1);for(let o=0;o<w-1;o++)i[o]=u[o+1]-u[o],s[o]=c[o+1]-c[o],g[o]=i[o]/s[o];p[0]=g[0];for(let o=1;o<w-1;o++)g[o]===0||g[o-1]===0||g[o-1]>0!=g[o]>0?p[o]=0:(p[o]=3*(s[o-1]+s[o])/((2*s[o]+s[o-1])/g[o-1]+(s[o]+2*s[o-1])/g[o]),isFinite(p[o])||(p[o]=0));p[w-1]=g[w-2];for(let o=0;o<w-1;o++)T(C,c[o]+s[o]/3,u[o]+p[o]*s[o]/3,c[o+1]-s[o]/3,u[o+1]-p[o+1]*s[o]/3,c[o+1],u[o+1])}return C}const Mu=new Set;function sp(){for(let c of Mu)c.syncRect(!0)}ws&&(Uo(tS,ds,sp),Uo(nS,ds,sp,!0),Uo(Ya,ds,()=>{li.pxRatio=qt}));const k_=am(),C_=om();function ap(c,u,e,l){return(l?[c[0],c[1]].concat(c.slice(2)):[c[0]].concat(c.slice(1))).map((b,w)=>Tu(b,w,u,e))}function S_(c,u){return c.map((e,l)=>l==0?{}:Dn({},u,e))}function Tu(c,u,e,l){return Dn({},u==0?e:l,c)}function lm(c,u,e){return u==null?ps:[u,e]}const __=lm;function A_(c,u,e){return u==null?ps:Qa(u,e,Uu,!0)}function cm(c,u,e,l){return u==null?ps:ul(u,e,c.scales[l].log,!1)}const $_=cm;function um(c,u,e,l){return u==null?ps:zu(u,e,c.scales[l].log,!1)}const M_=um;function T_(c,u,e,l,T){let b=gi(Wf(c),Wf(u)),w=u-c,C=fr(T/l*w,e);do{let p=e[C],g=l*p/w;if(g>=T&&b+(p<5?vo.get(p):0)<=17)return[p,g]}while(++C<e.length);return[0,0]}function lp(c){let u,e;return c=c.replace(/(\d+)px/,(l,T)=>(u=Bn((e=+T)*qt))+"px"),[c,u,e]}function L_(c){c.show&&[c.font,c.labelFont].forEach(u=>{let e=rn(u[2]*qt,1);u[0]=u[0].replace(/[0-9.]+px/,e+"px"),u[1]=e})}function li(c,u,e){const l={mode:Vt(c.mode,1)},T=l.mode;function b(j,Z,re,oe){let ge=Z.valToPct(j);return oe+re*(Z.dir==-1?1-ge:ge)}function w(j,Z,re,oe){let ge=Z.valToPct(j);return oe+re*(Z.dir==-1?ge:1-ge)}function C(j,Z,re,oe){return Z.ori==0?b(j,Z,re,oe):w(j,Z,re,oe)}l.valToPosH=b,l.valToPosV=w;let p=!1;l.status=0;const g=l.root=Xi(FC);if(c.id!=null&&(g.id=c.id),Fi(g,c.class),c.title){let j=Xi(BC,g);j.textContent=c.title}const i=hr("canvas"),s=l.ctx=i.getContext("2d"),o=Xi(HC,g);Uo("click",o,j=>{j.target===n&&(Gt!=Ui||Dt!=xr)&&xn.click(l,j)},!0);const r=l.under=Xi(zC,o);o.appendChild(i);const n=l.over=Xi(UC,o);c=gs(c);const a=+Vt(c.pxAlign,1),h=rp(a);(c.plugins||[]).forEach(j=>{j.opts&&(c=j.opts(l,c)||c)});const m=c.ms||.001,y=l.series=T==1?ap(c.series||[],Zf,np,!1):S_(c.series||[null],tp),E=l.axes=ap(c.axes||[],Qf,Xf,!0),M=l.scales={},_=l.bands=c.bands||[];_.forEach(j=>{j.fill=Pt(j.fill||null),j.dir=Vt(j.dir,-1)});const v=T==2?y[1].facets[0].scale:y[0].scale,R={axes:Ir,series:Qo},I=(c.drawOrder||["axes","series"]).map(j=>R[j]);function F(j){const Z=j.distr==3?re=>qr(re>0?re:j.clamp(l,re,j.min,j.max,j.key)):j.distr==4?re=>Mc(re,j.asinh):j.distr==100?re=>j.fwd(re):re=>re;return re=>{let oe=Z(re),{_min:ge,_max:be}=j,Me=be-ge;return(oe-ge)/Me}}function L(j){let Z=M[j];if(Z==null){let re=(c.scales||Qs)[j]||Qs;if(re.from!=null){L(re.from);let oe=Dn({},M[re.from],re,{key:j});oe.valToPct=F(oe),M[j]=oe}else{Z=M[j]=Dn({},j==v?Jg:d_,re),Z.key=j;let oe=Z.time,ge=Z.range,be=go(ge);if((j!=v||T==2&&!oe)&&(be&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Df:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Df:{mode:1,hard:ge[1],soft:ge[1]}},be=!1),!be&&dl(ge))){let Me=ge;ge=(De,Pe,Ve)=>Pe==null?ps:Qa(Pe,Ve,Me)}Z.range=Pt(ge||(oe?__:j==v?Z.distr==3?$_:Z.distr==4?M_:lm:Z.distr==3?cm:Z.distr==4?um:A_)),Z.auto=Pt(be?!1:Z.auto),Z.clamp=Pt(Z.clamp||h_),Z._min=Z._max=null,Z.valToPct=F(Z)}}}L("x"),L("y"),T==1&&y.forEach(j=>{L(j.scale)}),E.forEach(j=>{L(j.scale)});for(let j in c.scales)L(j);const U=M[v],P=U.distr;let O,S;U.ori==0?(Fi(g,PC),O=b,S=w):(Fi(g,WC),O=w,S=b);const k={};for(let j in M){let Z=M[j];(Z.min!=null||Z.max!=null)&&(k[j]={min:Z.min,max:Z.max},Z.min=Z.max=null)}const N=c.tzDate||(j=>new Date(Bn(j/m))),B=c.fmtDate||Ku,V=m==1?PS(N):HS(N),G=Gf(N,Kf(m==1?FS:BS,B)),Q=Yf(N,qf(US,B)),te=[],he=l.legend=Dn({},KS,c.legend),ne=l.cursor=Dn({},JS,{drag:{y:T==2}},c.cursor),ce=he.show,ue=ne.show,le=he.markers;he.idxs=te,le.width=Pt(le.width),le.dash=Pt(le.dash),le.stroke=Pt(le.stroke),le.fill=Pt(le.fill);let me,Ae,$e,Te=[],Ge=[],je,at=!1,et={};if(he.live){const j=y[1]?y[1].values:null;at=j!=null,je=at?j(l,1,0):{_:0};for(let Z in je)et[Z]=Bu}if(ce)if(me=hr("table",YC,g),$e=hr("tbody",null,me),he.mount(l,me),at){Ae=hr("thead",null,me,$e);let j=hr("tr",null,Ae);hr("th",null,j);for(var lt in je)hr("th",Cf,j).textContent=lt}else Fi(me,ZC),he.live&&Fi(me,QC);const jt={show:!0},on={show:!1};function Ht(j,Z){if(Z==0&&(at||!he.live||T==2))return ps;let re=[],oe=hr("tr",JC,$e,$e.childNodes[Z]);Fi(oe,j.class),j.show||Fi(oe,Bo);let ge=hr("th",null,oe);if(le.show){let De=Xi(XC,ge);if(Z>0){let Pe=le.width(l,Z);Pe&&(De.style.border=Pe+"px "+le.dash(l,Z)+" "+le.stroke(l,Z)),De.style.background=le.fill(l,Z)}}let be=Xi(Cf,ge);j.label instanceof HTMLElement?be.appendChild(j.label):be.textContent=j.label,Z>0&&(le.show||(be.style.color=j.width>0?le.stroke(l,Z):le.fill(l,Z)),sn("click",ge,De=>{if(ne._lock)return;nr(De);let Pe=y.indexOf(j);if((De.ctrlKey||De.metaKey)!=he.isolate){let Ve=y.some((Ye,Je)=>Je>0&&Je!=Pe&&Ye.show);y.forEach((Ye,Je)=>{Je>0&&ui(Je,Ve?Je==Pe?jt:on:jt,!0,rt.setSeries)})}else ui(Pe,{show:!j.show},!0,rt.setSeries)},!1),ir&&sn($f,ge,De=>{ne._lock||(nr(De),ui(y.indexOf(j),Ki,!0,rt.setSeries))},!1));for(var Me in je){let De=hr("td",eS,oe);De.textContent="--",re.push(De)}return[oe,re]}const qn=new Map;function sn(j,Z,re,oe=!0){const ge=qn.get(Z)||{},be=ne.bind[j](l,Z,re,oe);be&&(Uo(j,Z,ge[j]=be),qn.set(Z,ge))}function yn(j,Z,re){const oe=qn.get(Z)||{};for(let ge in oe)(j==null||ge==j)&&(Cu(ge,Z,oe[ge]),delete oe[ge]);j==null&&qn.delete(Z)}let wn=0,In=0,pt=0,Ue=0,Ce=0,We=0,qe=Ce,ct=We,wt=pt,bt=Ue,$t=0,_t=0,st=0,gt=0;l.bbox={};let hn=!1,Yn=!1,mi=!1,tr=!1,Mr=!1,Qn=!1;function Tr(j,Z,re){(re||j!=l.width||Z!=l.height)&&Qr(j,Z),ar(!1),mi=!0,Yn=!0,br()}function Qr(j,Z){l.width=wn=pt=j,l.height=In=Ue=Z,Ce=We=0,yo(),Go();let re=l.bbox;$t=re.left=Po(Ce*qt,.5),_t=re.top=Po(We*qt,.5),st=re.width=Po(pt*qt,.5),gt=re.height=Po(Ue*qt,.5)}const ks=3;function Ai(){let j=!1,Z=0;for(;!j;){Z++;let re=Zo(Z),oe=As(Z);j=Z==ks||re&&oe,j||(Qr(l.width,l.height),Yn=!0)}}function Cs({width:j,height:Z}){Tr(j,Z)}l.setSize=Cs;function yo(){let j=!1,Z=!1,re=!1,oe=!1;E.forEach((ge,be)=>{if(ge.show&&ge._show){let{side:Me,_size:De}=ge,Pe=Me%2,Ve=ge.label!=null?ge.labelSize:0,Ye=De+Ve;Ye>0&&(Pe?(pt-=Ye,Me==3?(Ce+=Ye,oe=!0):re=!0):(Ue-=Ye,Me==0?(We+=Ye,j=!0):Z=!0))}}),or[0]=j,or[1]=re,or[2]=Z,or[3]=oe,pt-=ni[1]+ni[3],Ce+=ni[3],Ue-=ni[2]+ni[0],We+=ni[0]}function Go(){let j=Ce+pt,Z=We+Ue,re=Ce,oe=We;function ge(be,Me){switch(be){case 1:return j+=Me,j-Me;case 2:return Z+=Me,Z-Me;case 3:return re-=Me,re+Me;case 0:return oe-=Me,oe+Me}}E.forEach((be,Me)=>{if(be.show&&be._show){let De=be.side;be._pos=ge(De,be._size),be.label!=null&&(be._lpos=ge(De,be.labelSize))}})}if(ne.dataIdx==null){let j=ne.hover,Z=j.skip=new Set(j.skip??[]);Z.add(void 0);let re=j.prox=Pt(j.prox),oe=j.bias??(j.bias=0);ne.dataIdx=(ge,be,Me,De)=>{if(be==0)return Me;let Pe=Me,Ve=re(ge,be,Me,De)??nn,Ye=Ve>=0&&Ve<nn,Je=U.ori==0?pt:Ue,yt=ne.left,It=u[0],xt=u[be];if(Z.has(xt[Me])){Pe=null;let Mt=null,ut=null,it;if(oe==0||oe==-1)for(it=Me;Mt==null&&it-- >0;)Z.has(xt[it])||(Mt=it);if(oe==0||oe==1)for(it=Me;ut==null&&it++<xt.length;)Z.has(xt[it])||(ut=it);if(Mt!=null||ut!=null)if(Ye){let tn=Mt==null?-1/0:O(It[Mt],U,Je,0),pn=ut==null?1/0:O(It[ut],U,Je,0),Nn=yt-tn,Wt=pn-yt;Nn<=Wt?Nn<=Ve&&(Pe=Mt):Wt<=Ve&&(Pe=ut)}else Pe=ut==null?Mt:Mt==null?ut:Me-Mt<=ut-Me?Mt:ut}else Ye&&Hn(yt-O(It[Me],U,Je,0))>Ve&&(Pe=null);return Pe}}const nr=j=>{ne.event=j};ne.idxs=te,ne._lock=!1;let $n=ne.points;$n.show=Pt($n.show),$n.size=Pt($n.size),$n.stroke=Pt($n.stroke),$n.width=Pt($n.width),$n.fill=Pt($n.fill);const ei=l.focus=Dn({},c.focus||{alpha:.3},ne.focus),ir=ei.prox>=0,gn=ir&&$n.one;let ti=[],mr=[],rr=[];function wo(j,Z){let re=$n.show(l,Z);if(re instanceof HTMLElement)return Fi(re,qC),Fi(re,j.class),Ar(re,-10,-10,pt,Ue),n.insertBefore(re,ti[Z]),re}function qo(j,Z){if(T==1||Z>0){let re=T==1&&M[j.scale].time,oe=j.value;j.value=re?zf(oe)?Yf(N,qf(oe,B)):oe||Q:oe||l_,j.label=j.label||(re?e_:XS)}if(gn||Z>0){j.width=j.width==null?1:j.width,j.paths=j.paths||k_||dS,j.fillTo=Pt(j.fillTo||f_),j.pxAlign=+Vt(j.pxAlign,a),j.pxRound=rp(j.pxAlign),j.stroke=Pt(j.stroke||null),j.fill=Pt(j.fill||null),j._stroke=j._fill=j._paths=j._focus=null;let re=c_(gi(1,j.width),1),oe=j.points=Dn({},{size:re,width:gi(1,re*.2),stroke:j.stroke,space:re*2,paths:C_,_stroke:null,_fill:null},j.points);oe.show=Pt(oe.show),oe.filter=Pt(oe.filter),oe.fill=Pt(oe.fill),oe.stroke=Pt(oe.stroke),oe.paths=Pt(oe.paths),oe.pxAlign=j.pxAlign}if(ce){let re=Ht(j,Z);Te.splice(Z,0,re[0]),Ge.splice(Z,0,re[1]),he.values.push(null)}if(ue){te.splice(Z,0,null);let re=null;gn?Z==0&&(re=wo(j,Z)):Z>0&&(re=wo(j,Z)),ti.splice(Z,0,re),mr.splice(Z,0,0),rr.splice(Z,0,0)}Qe("addSeries",Z)}function Ss(j,Z){Z=Z??y.length,j=T==1?Tu(j,Z,Zf,np):Tu(j,Z,{},tp),y.splice(Z,0,j),qo(y[Z],Z)}l.addSeries=Ss;function _s(j){if(y.splice(j,1),ce){he.values.splice(j,1),Ge.splice(j,1);let Z=Te.splice(j,1)[0];yn(null,Z.firstChild),Z.remove()}ue&&(te.splice(j,1),ti.splice(j,1)[0].remove(),mr.splice(j,1),rr.splice(j,1)),Qe("delSeries",j)}l.delSeries=_s;const or=[!1,!1,!1,!1];function $i(j,Z){if(j._show=j.show,j.show){let re=j.side%2,oe=M[j.scale];oe==null&&(j.scale=re?y[1].scale:v,oe=M[j.scale]);let ge=oe.time;j.size=Pt(j.size),j.space=Pt(j.space),j.rotate=Pt(j.rotate),go(j.incrs)&&j.incrs.forEach(Me=>{!vo.has(Me)&&vo.set(Me,Ig(Me))}),j.incrs=Pt(j.incrs||(oe.distr==2?OS:ge?m==1?DS:WS:Wo)),j.splits=Pt(j.splits||(ge&&oe.distr==1?V:oe.distr==3?_u:oe.distr==4?i_:n_)),j.stroke=Pt(j.stroke),j.grid.stroke=Pt(j.grid.stroke),j.ticks.stroke=Pt(j.ticks.stroke),j.border.stroke=Pt(j.border.stroke);let be=j.values;j.values=go(be)&&!go(be[0])?Pt(be):ge?go(be)?Gf(N,Kf(be,B)):zf(be)?zS(N,be):be||G:be||t_,j.filter=Pt(j.filter||(oe.distr>=3&&oe.log==10?s_:oe.distr==3&&oe.log==2?a_:Eg)),j.font=lp(j.font),j.labelFont=lp(j.labelFont),j._size=j.size(l,null,Z,0),j._space=j._rotate=j._incrs=j._found=j._splits=j._values=null,j._size>0&&(or[Z]=!0,j._el=Xi(VC,o))}}function Nt(j,Z,re,oe){let[ge,be,Me,De]=re,Pe=Z%2,Ve=0;return Pe==0&&(De||be)&&(Ve=Z==0&&!ge||Z==2&&!Me?Bn(Qf.size/3):0),Pe==1&&(ge||Me)&&(Ve=Z==1&&!be||Z==3&&!De?Bn(Xf.size/2):0),Ve}const Yo=l.padding=(c.padding||[Nt,Nt,Nt,Nt]).map(j=>Pt(Vt(j,Nt))),ni=l._padding=Yo.map((j,Z)=>j(l,Z,or,0));let Mn,an=null,bn=null;const Bi=T==1?y[0].idxs:null;let ii=null,Hi=!1;function Zr(j,Z){if(u=j??[],l.data=l._data=u,T==2){Mn=0;for(let re=1;re<y.length;re++)Mn+=u[re][0].length}else{u.length==0&&(l.data=l._data=u=[[]]),ii=u[0],Mn=ii.length;let re=u;if(P==2){re=u.slice();let oe=re[0]=Array(Mn);for(let ge=0;ge<Mn;ge++)oe[ge]=ge}l._data=u=re}if(ar(!0),Qe("setData"),P==2&&(mi=!0),Z!==!1){let re=U;re.auto(l,Hi)?bo():On(v,re.min,re.max),tr=tr||ne.left>=0,Qn=!0,br()}}l.setData=Zr;function bo(){Hi=!0;let j,Z;T==1&&(Mn>0?(an=Bi[0]=0,bn=Bi[1]=Mn-1,j=u[0][an],Z=u[0][bn],P==2?(j=an,Z=bn):j==Z&&(P==3?[j,Z]=ul(j,j,U.log,!1):P==4?[j,Z]=zu(j,j,U.log,!1):U.time?Z=j+Bn(86400/m):[j,Z]=Qa(j,Z,Uu,!0))):(an=Bi[0]=j=null,bn=Bi[1]=Z=null)),On(v,j,Z)}let vr,vi,Lr,Jr,yi,Xr,xo,ko,eo,Fn;function Co(j,Z,re,oe,ge,be){j??(j=_f),re??(re=ju),oe??(oe="butt"),ge??(ge=_f),be??(be="round"),j!=vr&&(s.strokeStyle=vr=j),ge!=vi&&(s.fillStyle=vi=ge),Z!=Lr&&(s.lineWidth=Lr=Z),be!=yi&&(s.lineJoin=yi=be),oe!=Xr&&(s.lineCap=Xr=oe),re!=Jr&&s.setLineDash(Jr=re)}function Er(j,Z,re,oe){Z!=vi&&(s.fillStyle=vi=Z),j!=xo&&(s.font=xo=j),re!=ko&&(s.textAlign=ko=re),oe!=eo&&(s.textBaseline=eo=oe)}function to(j,Z,re,oe,ge=0){if(oe.length>0&&j.auto(l,Hi)&&(Z==null||Z.min==null)){let be=Vt(an,0),Me=Vt(bn,oe.length-1),De=re.min==null?sS(oe,be,Me,ge,j.distr==3):[re.min,re.max];j.min=pr(j.min,re.min=De[0]),j.max=gi(j.max,re.max=De[1])}}const no={min:null,max:null};function yr(){for(let oe in M){let ge=M[oe];k[oe]==null&&(ge.min==null||k[v]!=null&&ge.auto(l,Hi))&&(k[oe]=no)}for(let oe in M){let ge=M[oe];k[oe]==null&&ge.from!=null&&k[ge.from]!=null&&(k[oe]=no)}k[v]!=null&&ar(!0);let j={};for(let oe in k){let ge=k[oe];if(ge!=null){let be=j[oe]=gs(M[oe],gS);if(ge.min!=null)Dn(be,ge);else if(oe!=v||T==2)if(Mn==0&&be.from==null){let Me=be.range(l,null,null,oe);be.min=Me[0],be.max=Me[1]}else be.min=nn,be.max=-nn}}if(Mn>0){y.forEach((oe,ge)=>{if(T==1){let be=oe.scale,Me=k[be];if(Me==null)return;let De=j[be];if(ge==0){let Pe=De.range(l,De.min,De.max,be);De.min=Pe[0],De.max=Pe[1],an=fr(De.min,u[0]),bn=fr(De.max,u[0]),bn-an>1&&(u[0][an]<De.min&&an++,u[0][bn]>De.max&&bn--),oe.min=ii[an],oe.max=ii[bn]}else oe.show&&oe.auto&&to(De,Me,oe,u[ge],oe.sorted);oe.idxs[0]=an,oe.idxs[1]=bn}else if(ge>0&&oe.show&&oe.auto){let[be,Me]=oe.facets,De=be.scale,Pe=Me.scale,[Ve,Ye]=u[ge],Je=j[De],yt=j[Pe];Je!=null&&to(Je,k[De],be,Ve,be.sorted),yt!=null&&to(yt,k[Pe],Me,Ye,Me.sorted),oe.min=Me.min,oe.max=Me.max}});for(let oe in j){let ge=j[oe],be=k[oe];if(ge.from==null&&(be==null||be.min==null)){let Me=ge.range(l,ge.min==nn?null:ge.min,ge.max==-nn?null:ge.max,oe);ge.min=Me[0],ge.max=Me[1]}}}for(let oe in j){let ge=j[oe];if(ge.from!=null){let be=j[ge.from];if(be.min==null)ge.min=ge.max=null;else{let Me=ge.range(l,be.min,be.max,oe);ge.min=Me[0],ge.max=Me[1]}}}let Z={},re=!1;for(let oe in j){let ge=j[oe],be=M[oe];if(be.min!=ge.min||be.max!=ge.max){be.min=ge.min,be.max=ge.max;let Me=be.distr;be._min=Me==3?qr(be.min):Me==4?Mc(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?qr(be.max):Me==4?Mc(be.max,be.asinh):Me==100?be.fwd(be.max):be.max,Z[oe]=re=!0}}if(re){y.forEach((oe,ge)=>{T==2?ge>0&&Z.y&&(oe._paths=null):Z[oe.scale]&&(oe._paths=null)});for(let oe in Z)mi=!0,Qe("setScale",oe);ue&&ne.left>=0&&(tr=Qn=!0)}for(let oe in k)k[oe]=null}function So(j){let Z=Su(an-1,0,Mn-1),re=Su(bn+1,0,Mn-1);for(;j[Z]==null&&Z>0;)Z--;for(;j[re]==null&&re<Mn-1;)re++;return[Z,re]}function Qo(){if(Mn>0){let j=y.some(Z=>Z._focus)&&Fn!=ei.alpha;j&&(s.globalAlpha=Fn=ei.alpha),y.forEach((Z,re)=>{if(re>0&&Z.show&&(io(re,!1),io(re,!0),Z._paths==null)){let oe=Fn;Fn!=Z.alpha&&(s.globalAlpha=Fn=Z.alpha);let ge=T==2?[0,u[re][0].length-1]:So(u[re]);Z._paths=Z.paths(l,re,ge[0],ge[1]),Fn!=oe&&(s.globalAlpha=Fn=oe)}}),y.forEach((Z,re)=>{if(re>0&&Z.show){let oe=Fn;Fn!=Z.alpha&&(s.globalAlpha=Fn=Z.alpha),Z._paths!=null&&ro(re,!1);{let ge=Z._paths!=null?Z._paths.gaps:null,be=Z.points.show(l,re,an,bn,ge),Me=Z.points.filter(l,re,be,ge);(be||Me)&&(Z.points._paths=Z.points.paths(l,re,an,bn,Me),ro(re,!0))}Fn!=oe&&(s.globalAlpha=Fn=oe),Qe("drawSeries",re)}}),j&&(s.globalAlpha=Fn=1)}}function io(j,Z){let re=Z?y[j].points:y[j];re._stroke=re.stroke(l,j),re._fill=re.fill(l,j)}function ro(j,Z){let re=Z?y[j].points:y[j],{stroke:oe,fill:ge,clip:be,flags:Me,_stroke:De=re._stroke,_fill:Pe=re._fill,_width:Ve=re.width}=re._paths;Ve=rn(Ve*qt,3);let Ye=null,Je=Ve%2/2;Z&&Pe==null&&(Pe=Ve>0?"#fff":De);let yt=re.pxAlign==1&&Je>0;if(yt&&s.translate(Je,Je),!Z){let It=$t-Ve/2,xt=_t-Ve/2,Mt=st+Ve,ut=gt+Ve;Ye=new Path2D,Ye.rect(It,xt,Mt,ut)}Z?Rr(De,Ve,re.dash,re.cap,Pe,oe,ge,Me,be):_o(j,De,Ve,re.dash,re.cap,Pe,oe,ge,Me,Ye,be),yt&&s.translate(-Je,-Je)}function _o(j,Z,re,oe,ge,be,Me,De,Pe,Ve,Ye){let Je=!1;Pe!=0&&_.forEach((yt,It)=>{if(yt.series[0]==j){let xt=y[yt.series[1]],Mt=u[yt.series[1]],ut=(xt._paths||Qs).band;go(ut)&&(ut=yt.dir==1?ut[0]:ut[1]);let it,tn=null;xt.show&&ut&&lS(Mt,an,bn)?(tn=yt.fill(l,It)||be,it=xt._paths.clip):ut=null,Rr(Z,re,oe,ge,tn,Me,De,Pe,Ve,Ye,it,ut),Je=!0}}),Je||Rr(Z,re,oe,ge,be,Me,De,Pe,Ve,Ye)}const oo=ms|$u;function Rr(j,Z,re,oe,ge,be,Me,De,Pe,Ve,Ye,Je){Co(j,Z,re,oe,ge),(Pe||Ve||Je)&&(s.save(),Pe&&s.clip(Pe),Ve&&s.clip(Ve)),Je?(De&oo)==oo?(s.clip(Je),Ye&&s.clip(Ye),Pn(ge,Me),zi(j,be,Z)):De&$u?(Pn(ge,Me),s.clip(Je),zi(j,be,Z)):De&ms&&(s.save(),s.clip(Je),Ye&&s.clip(Ye),Pn(ge,Me),s.restore(),zi(j,be,Z)):(Pn(ge,Me),zi(j,be,Z)),(Pe||Ve||Je)&&s.restore()}function zi(j,Z,re){re>0&&(Z instanceof Map?Z.forEach((oe,ge)=>{s.strokeStyle=vr=ge,s.stroke(oe)}):Z!=null&&j&&s.stroke(Z))}function Pn(j,Z){Z instanceof Map?Z.forEach((re,oe)=>{s.fillStyle=vi=oe,s.fill(re)}):Z!=null&&j&&s.fill(Z)}function wr(j,Z,re,oe){let ge=E[j],be;if(oe<=0)be=[0,0];else{let Me=ge._space=ge.space(l,j,Z,re,oe),De=ge._incrs=ge.incrs(l,j,Z,re,oe,Me);be=T_(Z,re,De,oe,Me)}return ge._found=be}function sr(j,Z,re,oe,ge,be,Me,De,Pe,Ve){let Ye=Me%2/2;a==1&&s.translate(Ye,Ye),Co(De,Me,Pe,Ve,De),s.beginPath();let Je,yt,It,xt,Mt=ge+(oe==0||oe==3?-be:be);re==0?(yt=ge,xt=Mt):(Je=ge,It=Mt);for(let ut=0;ut<j.length;ut++)Z[ut]!=null&&(re==0?Je=It=j[ut]:yt=xt=j[ut],s.moveTo(Je,yt),s.lineTo(It,xt));s.stroke(),a==1&&s.translate(-Ye,-Ye)}function Zo(j){let Z=!0;return E.forEach((re,oe)=>{if(!re.show)return;let ge=M[re.scale];if(ge.min==null){re._show&&(Z=!1,re._show=!1,ar(!1));return}else re._show||(Z=!1,re._show=!0,ar(!1));let be=re.side,Me=be%2,{min:De,max:Pe}=ge,[Ve,Ye]=wr(oe,De,Pe,Me==0?pt:Ue);if(Ye==0)return;let Je=ge.distr==2,yt=re._splits=re.splits(l,oe,De,Pe,Ve,Ye,Je),It=ge.distr==2?yt.map(it=>ii[it]):yt,xt=ge.distr==2?ii[yt[1]]-ii[yt[0]]:Ve,Mt=re._values=re.values(l,re.filter(l,It,oe,Ye,xt),oe,Ye,xt);re._rotate=be==2?re.rotate(l,Mt,oe,Ye):0;let ut=re._size;re._size=er(re.size(l,Mt,oe,j)),ut!=null&&re._size!=ut&&(Z=!1)}),Z}function As(j){let Z=!0;return Yo.forEach((re,oe)=>{let ge=re(l,oe,or,j);ge!=ni[oe]&&(Z=!1),ni[oe]=ge}),Z}function Ir(){for(let j=0;j<E.length;j++){let Z=E[j];if(!Z.show||!Z._show)continue;let re=Z.side,oe=re%2,ge,be,Me=Z.stroke(l,j),De=re==0||re==3?-1:1,[Pe,Ve]=Z._found;if(Z.label!=null){let en=Z.labelGap*De,Kn=Bn((Z._lpos+en)*qt);Er(Z.labelFont[0],Me,"center",re==2?zs:Sf),s.save(),oe==1?(ge=be=0,s.translate(Kn,Bn(_t+gt/2)),s.rotate((re==3?-Ka:Ka)/2)):(ge=Bn($t+st/2),be=Kn);let Pr=Tg(Z.label)?Z.label(l,j,Pe,Ve):Z.label;s.fillText(Pr,ge,be),s.restore()}if(Ve==0)continue;let Ye=M[Z.scale],Je=oe==0?st:gt,yt=oe==0?$t:_t,It=Z._splits,xt=Ye.distr==2?It.map(en=>ii[en]):It,Mt=Ye.distr==2?ii[It[1]]-ii[It[0]]:Pe,ut=Z.ticks,it=Z.border,tn=ut.show?ut.size:0,pn=Bn(tn*qt),Nn=Bn((Z.alignTo==2?Z._size-tn-Z.gap:Z.gap)*qt),Wt=Z._rotate*-Ka/180,pe=h(Z._pos*qt),Se=(pn+Nn)*De,xe=pe+Se;be=oe==0?xe:0,ge=oe==1?xe:0;let ze=Z.font[0],ot=Z.align==1?us:Z.align==2?_c:Wt>0?us:Wt<0?_c:oe==0?"center":re==3?_c:us,Ct=Wt||oe==1?"middle":re==2?zs:Sf;Er(ze,Me,ot,Ct);let zt=Z.font[1]*Z.lineGap,Tt=It.map(en=>h(C(en,Ye,Je,yt))),hi=Z._values;for(let en=0;en<hi.length;en++){let Kn=hi[en];if(Kn!=null){oe==0?ge=Tt[en]:be=Tt[en],Kn=""+Kn;let Pr=Kn.indexOf(`
|
|
1496
|
-
`)==-1?[Kn]:Kn.split(/\n/gm);for(let _n=0;_n<Pr.length;_n++){let $o=Pr[_n];Wt?(s.save(),s.translate(ge,be+_n*zt),s.rotate(Wt),s.fillText($o,0,0),s.restore()):s.fillText($o,ge,be+_n*zt)}}}ut.show&&sr(Tt,ut.filter(l,xt,j,Ve,Mt),oe,re,pe,pn,rn(ut.width*qt,3),ut.stroke(l,j),ut.dash,ut.cap);let Gi=Z.grid;Gi.show&&sr(Tt,Gi.filter(l,xt,j,Ve,Mt),oe,oe==0?2:1,oe==0?_t:$t,oe==0?gt:st,rn(Gi.width*qt,3),Gi.stroke(l,j),Gi.dash,Gi.cap),it.show&&sr([pe],[1],oe==0?1:0,oe==0?1:2,oe==1?_t:$t,oe==1?gt:st,rn(it.width*qt,3),it.stroke(l,j),it.dash,it.cap)}Qe("drawAxes")}function ar(j){y.forEach((Z,re)=>{re>0&&(Z._paths=null,j&&(T==1?(Z.min=null,Z.max=null):Z.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Or=!1,so=!1,Nr=[];function Jo(){so=!1;for(let j=0;j<Nr.length;j++)Qe(...Nr[j]);Nr.length=0}function br(){Or||(kS(Xo),Or=!0)}function Fe(j,Z=!1){Or=!0,so=Z,j(l),Xo(),Z&&Nr.length>0&&queueMicrotask(Jo)}l.batch=Fe;function Xo(){if(hn&&(yr(),hn=!1),mi&&(Ai(),mi=!1),Yn){if(un(r,us,Ce),un(r,zs,We),un(r,Ks,pt),un(r,Gs,Ue),un(n,us,Ce),un(n,zs,We),un(n,Ks,pt),un(n,Gs,Ue),un(o,Ks,wn),un(o,Gs,In),i.width=Bn(wn*qt),i.height=Bn(In*qt),E.forEach(({_el:j,_show:Z,_size:re,_pos:oe,side:ge})=>{if(j!=null)if(Z){let be=ge===3||ge===0?re:0,Me=ge%2==1;un(j,Me?"left":"top",oe-be),un(j,Me?"width":"height",re),un(j,Me?"top":"left",Me?We:Ce),un(j,Me?"height":"width",Me?Ue:pt),ku(j,Bo)}else Fi(j,Bo)}),vr=vi=Lr=yi=Xr=xo=ko=eo=Jr=null,Fn=1,W(!0),Ce!=qe||We!=ct||pt!=wt||Ue!=bt){ar(!1);let j=pt/wt,Z=Ue/bt;if(ue&&!tr&&ne.left>=0){ne.left*=j,ne.top*=Z,Mi&&Ar(Mi,Bn(ne.left),0,pt,Ue),Tn&&Ar(Tn,0,Bn(ne.top),pt,Ue);for(let re=0;re<ti.length;re++){let oe=ti[re];oe!=null&&(mr[re]*=j,rr[re]*=Z,Ar(oe,er(mr[re]),er(rr[re]),pt,Ue))}}if(mt.show&&!Mr&&mt.left>=0&&mt.width>0){mt.left*=j,mt.width*=j,mt.top*=Z,mt.height*=Z;for(let re in Y)un(ci,re,mt[re])}qe=Ce,ct=We,wt=pt,bt=Ue}Qe("setSize"),Yn=!1}wn>0&&In>0&&(s.clearRect(0,0,i.width,i.height),Qe("drawClear"),I.forEach(j=>j()),Qe("draw")),mt.show&&Mr&&(Jt(mt),Mr=!1),ue&&tr&&(x(null,!0,!1),tr=!1),he.show&&he.live&&Qn&&(f(),Qn=!1),p||(p=!0,l.status=1,Qe("ready")),Hi=!1,Or=!1}l.redraw=(j,Z)=>{mi=Z||!1,j!==!1?On(v,U.min,U.max):br()};function Oe(j,Z){let re=M[j];if(re.from==null){if(Mn==0){let oe=re.range(l,Z.min,Z.max,j);Z.min=oe[0],Z.max=oe[1]}if(Z.min>Z.max){let oe=Z.min;Z.min=Z.max,Z.max=oe}if(Mn>1&&Z.min!=null&&Z.max!=null&&Z.max-Z.min<1e-16)return;j==v&&re.distr==2&&Mn>0&&(Z.min=fr(Z.min,u[0]),Z.max=fr(Z.max,u[0]),Z.min==Z.max&&Z.max++),k[j]=Z,hn=!0,br()}}l.setScale=Oe;let mn,Dr,Mi,Tn,es,Fr,Ui,xr,Kt,Ut,Gt,Dt,Vi=!1;const xn=ne.drag;let Be=xn.x,ln=xn.y;ue&&(ne.x&&(mn=Xi(KC,n)),ne.y&&(Dr=Xi(GC,n)),U.ori==0?(Mi=mn,Tn=Dr):(Mi=Dr,Tn=mn),Gt=ne.left,Dt=ne.top);const mt=l.select=Dn({show:!0,over:!0,left:0,width:0,top:0,height:0},c.select),ci=mt.show?Xi(jC,mt.over?n:r):null;function Jt(j,Z){if(mt.show){for(let re in j)mt[re]=j[re],re in Y&&un(ci,re,j[re]);Z!==!1&&Qe("setSelect")}}l.setSelect=Jt;function cn(j){if(y[j].show)ce&&ku(Te[j],Bo);else if(ce&&Fi(Te[j],Bo),ue){let re=gn?ti[0]:ti[j];re!=null&&Ar(re,-10,-10,pt,Ue)}}function On(j,Z,re){Oe(j,{min:Z,max:re})}function ui(j,Z,re,oe){Z.focus!=null&&Un(j),Z.show!=null&&y.forEach((ge,be)=>{be>0&&(j==be||j==null)&&(ge.show=Z.show,cn(be),T==2?(On(ge.facets[0].scale,null,null),On(ge.facets[1].scale,null,null)):On(ge.scale,null,null),br())}),re!==!1&&Qe("setSeries",j,Z),oe&&vt("setSeries",l,j,Z)}l.setSeries=ui;function ji(j,Z){Dn(_[j],Z)}function kn(j,Z){j.fill=Pt(j.fill||null),j.dir=Vt(j.dir,-1),Z=Z??_.length,_.splice(Z,0,j)}function wi(j){j==null?_.length=0:_.splice(j,1)}l.addBand=kn,l.setBand=ji,l.delBand=wi;function ao(j,Z){y[j].alpha=Z,ue&&ti[j]!=null&&(ti[j].style.opacity=Z),ce&&Te[j]&&(Te[j].style.opacity=Z)}let Cn,Ti,Li;const Ki={focus:!0};function Un(j){if(j!=Li){let Z=j==null,re=ei.alpha!=1;y.forEach((oe,ge)=>{if(T==1||ge>0){let be=Z||ge==0||ge==j;oe._focus=Z?null:be,re&&ao(ge,be?1:ei.alpha)}}),Li=j,re&&br()}}ce&&ir&&sn(Mf,me,j=>{ne._lock||(nr(j),Li!=null&&ui(null,Ki,!0,rt.setSeries))});function Vn(j,Z,re){let oe=M[Z];re&&(j=j/qt-(oe.ori==1?We:Ce));let ge=pt;oe.ori==1&&(ge=Ue,j=ge-j),oe.dir==-1&&(j=ge-j);let be=oe._min,Me=oe._max,De=j/ge,Pe=be+(Me-be)*De,Ve=oe.distr;return Ve==3?fs(10,Pe):Ve==4?uS(Pe,oe.asinh):Ve==100?oe.bwd(Pe):Pe}function Zn(j,Z){let re=Vn(j,v,Z);return fr(re,u[0],an,bn)}l.valToIdx=j=>fr(j,u[0]),l.posToIdx=Zn,l.posToVal=Vn,l.valToPos=(j,Z,re)=>M[Z].ori==0?b(j,M[Z],re?st:pt,re?$t:0):w(j,M[Z],re?gt:Ue,re?_t:0),l.setCursor=(j,Z,re)=>{Gt=j.left,Dt=j.top,x(null,Z,re)};function Ao(j,Z){un(ci,us,mt.left=j),un(ci,Ks,mt.width=Z)}function Jn(j,Z){un(ci,zs,mt.top=j),un(ci,Gs,mt.height=Z)}let ri=U.ori==0?Ao:Jn,Ei=U.ori==1?Ao:Jn;function Ri(){if(ce&&he.live)for(let j=T==2?1:0;j<y.length;j++){if(j==0&&at)continue;let Z=he.values[j],re=0;for(let oe in Z)Ge[j][re++].firstChild.nodeValue=Z[oe]}}function f(j,Z){if(j!=null&&(j.idxs?j.idxs.forEach((re,oe)=>{te[oe]=re}):pS(j.idx)||te.fill(j.idx),he.idx=te[0]),ce&&he.live){for(let re=0;re<y.length;re++)(re>0||T==1&&!at)&&A(re,te[re]);Ri()}Qn=!1,Z!==!1&&Qe("setLegend")}l.setLegend=f;function A(j,Z){let re=y[j],oe=j==0&&P==2?ii:u[j],ge;at?ge=re.values(l,j,Z)??et:(ge=re.value(l,Z==null?null:oe[Z],j,Z),ge=ge==null?et:{_:ge}),he.values[j]=ge}function x(j,Z,re){Kt=Gt,Ut=Dt,[Gt,Dt]=ne.move(l,Gt,Dt),ne.left=Gt,ne.top=Dt,ue&&(Mi&&Ar(Mi,Bn(Gt),0,pt,Ue),Tn&&Ar(Tn,0,Bn(Dt),pt,Ue));let oe,ge=an>bn;Cn=nn,Ti=null;let be=U.ori==0?pt:Ue,Me=U.ori==1?pt:Ue;if(Gt<0||Mn==0||ge){oe=ne.idx=null;for(let De=0;De<y.length;De++){let Pe=ti[De];Pe!=null&&Ar(Pe,-10,-10,pt,Ue)}ir&&ui(null,Ki,!0,j==null&&rt.setSeries),he.live&&(te.fill(oe),Qn=!0)}else{let De,Pe,Ve;T==1&&(De=U.ori==0?Gt:Dt,Pe=Vn(De,v),oe=ne.idx=fr(Pe,u[0],an,bn),Ve=O(u[0][oe],U,be,0));let Ye=-10,Je=-10,yt=0,It=0,xt=!0,Mt="",ut="";for(let it=T==2?1:0;it<y.length;it++){let tn=y[it],pn=te[it],Nn=pn==null?null:T==1?u[it][pn]:u[it][1][pn],Wt=ne.dataIdx(l,it,oe,Pe),pe=Wt==null?null:T==1?u[it][Wt]:u[it][1][Wt];if(Qn=Qn||pe!=Nn||Wt!=pn,te[it]=Wt,it>0&&tn.show){let Se=Wt==null?-10:Wt==oe?Ve:O(T==1?u[0][Wt]:u[it][0][Wt],U,be,0),xe=pe==null?-10:S(pe,T==1?M[tn.scale]:M[tn.facets[1].scale],Me,0);if(ir&&pe!=null){let ze=U.ori==1?Gt:Dt,ot=Hn(ei.dist(l,it,Wt,xe,ze));if(ot<Cn){let Ct=ei.bias;if(Ct!=0){let zt=Vn(ze,tn.scale),Tt=pe>=0?1:-1,hi=zt>=0?1:-1;hi==Tt&&(hi==1?Ct==1?pe>=zt:pe<=zt:Ct==1?pe<=zt:pe>=zt)&&(Cn=ot,Ti=it)}else Cn=ot,Ti=it}}if(Qn||gn){let ze,ot;U.ori==0?(ze=Se,ot=xe):(ze=xe,ot=Se);let Ct,zt,Tt,hi,Gi,en,Kn=!0,Pr=$n.bbox;if(Pr!=null){Kn=!1;let _n=Pr(l,it);Tt=_n.left,hi=_n.top,Ct=_n.width,zt=_n.height}else Tt=ze,hi=ot,Ct=zt=$n.size(l,it);if(en=$n.fill(l,it),Gi=$n.stroke(l,it),gn)it==Ti&&Cn<=ei.prox&&(Ye=Tt,Je=hi,yt=Ct,It=zt,xt=Kn,Mt=en,ut=Gi);else{let _n=ti[it];_n!=null&&(mr[it]=Tt,rr[it]=hi,Nf(_n,Ct,zt,Kn),If(_n,en,Gi),Ar(_n,er(Tt),er(hi),pt,Ue))}}}}if(gn){let it=ei.prox,tn=Li==null?Cn<=it:Cn>it||Ti!=Li;if(Qn||tn){let pn=ti[0];pn!=null&&(mr[0]=Ye,rr[0]=Je,Nf(pn,yt,It,xt),If(pn,Mt,ut),Ar(pn,er(Ye),er(Je),pt,Ue))}}}if(mt.show&&Vi)if(j!=null){let[De,Pe]=rt.scales,[Ve,Ye]=rt.match,[Je,yt]=j.cursor.sync.scales,It=j.cursor.drag;if(Be=It._x,ln=It._y,Be||ln){let{left:xt,top:Mt,width:ut,height:it}=j.select,tn=j.scales[Je].ori,pn=j.posToVal,Nn,Wt,pe,Se,xe,ze=De!=null&&Ve(De,Je),ot=Pe!=null&&Ye(Pe,yt);ze&&Be?(tn==0?(Nn=xt,Wt=ut):(Nn=Mt,Wt=it),pe=M[De],Se=O(pn(Nn,Je),pe,be,0),xe=O(pn(Nn+Wt,Je),pe,be,0),ri(pr(Se,xe),Hn(xe-Se))):ri(0,be),ot&&ln?(tn==1?(Nn=xt,Wt=ut):(Nn=Mt,Wt=it),pe=M[Pe],Se=S(pn(Nn,yt),pe,Me,0),xe=S(pn(Nn+Wt,yt),pe,Me,0),Ei(pr(Se,xe),Hn(xe-Se))):Ei(0,Me)}else J()}else{let De=Hn(Kt-es),Pe=Hn(Ut-Fr);if(U.ori==1){let yt=De;De=Pe,Pe=yt}Be=xn.x&&De>=xn.dist,ln=xn.y&&Pe>=xn.dist;let Ve=xn.uni;Ve!=null?Be&&ln&&(Be=De>=Ve,ln=Pe>=Ve,!Be&&!ln&&(Pe>De?ln=!0:Be=!0)):xn.x&&xn.y&&(Be||ln)&&(Be=ln=!0);let Ye,Je;Be&&(U.ori==0?(Ye=Ui,Je=Gt):(Ye=xr,Je=Dt),ri(pr(Ye,Je),Hn(Je-Ye)),ln||Ei(0,Me)),ln&&(U.ori==1?(Ye=Ui,Je=Gt):(Ye=xr,Je=Dt),Ei(pr(Ye,Je),Hn(Je-Ye)),Be||ri(0,be)),!Be&&!ln&&(ri(0,0),Ei(0,0))}if(xn._x=Be,xn._y=ln,j==null){if(re){if(dn!=null){let[De,Pe]=rt.scales;rt.values[0]=De!=null?Vn(U.ori==0?Gt:Dt,De):null,rt.values[1]=Pe!=null?Vn(U.ori==1?Gt:Dt,Pe):null}vt(Ac,l,Gt,Dt,pt,Ue,oe)}if(ir){let De=re&&rt.setSeries,Pe=ei.prox;Li==null?Cn<=Pe&&ui(Ti,Ki,!0,De):Cn>Pe?ui(null,Ki,!0,De):Ti!=Li&&ui(Ti,Ki,!0,De)}}Qn&&(he.idx=oe,f()),Z!==!1&&Qe("setCursor")}let D=null;Object.defineProperty(l,"rect",{get(){return D==null&&W(!1),D}});function W(j=!1){j?D=null:(D=n.getBoundingClientRect(),Qe("syncRect",D))}function H(j,Z,re,oe,ge,be,Me){ne._lock||Vi&&j!=null&&j.movementX==0&&j.movementY==0||(K(j,Z,re,oe,ge,be,Me,!1,j!=null),j!=null?x(null,!0,!0):x(Z,!0,!1))}function K(j,Z,re,oe,ge,be,Me,De,Pe){if(D==null&&W(!1),nr(j),j!=null)re=j.clientX-D.left,oe=j.clientY-D.top;else{if(re<0||oe<0){Gt=-10,Dt=-10;return}let[Ve,Ye]=rt.scales,Je=Z.cursor.sync,[yt,It]=Je.values,[xt,Mt]=Je.scales,[ut,it]=rt.match,tn=Z.axes[0].side%2==1,pn=U.ori==0?pt:Ue,Nn=U.ori==1?pt:Ue,Wt=tn?be:ge,pe=tn?ge:be,Se=tn?oe:re,xe=tn?re:oe;if(xt!=null?re=ut(Ve,xt)?C(yt,M[Ve],pn,0):-10:re=pn*(Se/Wt),Mt!=null?oe=it(Ye,Mt)?C(It,M[Ye],Nn,0):-10:oe=Nn*(xe/pe),U.ori==1){let ze=re;re=oe,oe=ze}}Pe&&(Z==null||Z.cursor.event.type==Ac)&&((re<=1||re>=pt-1)&&(re=Po(re,pt)),(oe<=1||oe>=Ue-1)&&(oe=Po(oe,Ue))),De?(es=re,Fr=oe,[Ui,xr]=ne.move(l,re,oe)):(Gt=re,Dt=oe)}const Y={width:0,height:0,left:0,top:0};function J(){Jt(Y,!1)}let ie,se,ye,ke;function de(j,Z,re,oe,ge,be,Me){Vi=!0,Be=ln=xn._x=xn._y=!1,K(j,Z,re,oe,ge,be,Me,!0,!1),j!=null&&(sn($c,bu,we,!1),vt(Af,l,Ui,xr,pt,Ue,null));let{left:De,top:Pe,width:Ve,height:Ye}=mt;ie=De,se=Pe,ye=Ve,ke=Ye}function we(j,Z,re,oe,ge,be,Me){Vi=xn._x=xn._y=!1,K(j,Z,re,oe,ge,be,Me,!1,!0);let{left:De,top:Pe,width:Ve,height:Ye}=mt,Je=Ve>0||Ye>0,yt=ie!=De||se!=Pe||ye!=Ve||ke!=Ye;if(Je&&yt&&Jt(mt),xn.setScale&&Je&&yt){let It=De,xt=Ve,Mt=Pe,ut=Ye;if(U.ori==1&&(It=Pe,xt=Ye,Mt=De,ut=Ve),Be&&On(v,Vn(It,v),Vn(It+xt,v)),ln)for(let it in M){let tn=M[it];it!=v&&tn.from==null&&tn.min!=nn&&On(it,Vn(Mt+ut,it),Vn(Mt,it))}J()}else ne.lock&&(ne._lock=!ne._lock,x(Z,!0,j!=null));j!=null&&(yn($c,bu),vt($c,l,Gt,Dt,pt,Ue,null))}function Ie(j,Z,re,oe,ge,be,Me){if(ne._lock)return;nr(j);let De=Vi;if(Vi){let Pe=!0,Ve=!0,Ye=10,Je,yt;U.ori==0?(Je=Be,yt=ln):(Je=ln,yt=Be),Je&&yt&&(Pe=Gt<=Ye||Gt>=pt-Ye,Ve=Dt<=Ye||Dt>=Ue-Ye),Je&&Pe&&(Gt=Gt<Ui?0:pt),yt&&Ve&&(Dt=Dt<xr?0:Ue),x(null,!0,!0),Vi=!1}Gt=-10,Dt=-10,te.fill(null),x(null,!0,!0),De&&(Vi=De)}function Ee(j,Z,re,oe,ge,be,Me){ne._lock||(nr(j),bo(),J(),j!=null&&vt(Tf,l,Gt,Dt,pt,Ue,null))}function He(){E.forEach(L_),Tr(l.width,l.height,!0)}Uo(Ya,ds,He);const nt={};nt.mousedown=de,nt.mousemove=H,nt.mouseup=we,nt.dblclick=Ee,nt.setSeries=(j,Z,re,oe)=>{let ge=rt.match[2];re=ge(l,Z,re),re!=-1&&ui(re,oe,!0,!1)},ue&&(sn(Af,n,de),sn(Ac,n,H),sn($f,n,j=>{nr(j),W(!1)}),sn(Mf,n,Ie),sn(Tf,n,Ee),Mu.add(l),l.syncRect=W);const Xe=l.hooks=c.hooks||{};function Qe(j,Z,re){so?Nr.push([j,Z,re]):j in Xe&&Xe[j].forEach(oe=>{oe.call(null,l,Z,re)})}(c.plugins||[]).forEach(j=>{for(let Z in j.hooks)Xe[Z]=(Xe[Z]||[]).concat(j.hooks[Z])});const Xt=(j,Z,re)=>re,rt=Dn({key:null,setSeries:!1,filters:{pub:Bf,sub:Bf},scales:[v,y[1]?y[1].scale:null],match:[Hf,Hf,Xt],values:[null,null]},ne.sync);rt.match.length==2&&rt.match.push(Xt),ne.sync=rt;const dn=rt.key,Et=Xg(dn);function vt(j,Z,re,oe,ge,be,Me){rt.filters.pub(j,Z,re,oe,ge,be,Me)&&Et.pub(j,Z,re,oe,ge,be,Me)}Et.sub(l);function Sn(j,Z,re,oe,ge,be,Me){rt.filters.sub(j,Z,re,oe,ge,be,Me)&&nt[j](null,Z,re,oe,ge,be,Me)}l.pub=Sn;function jn(){Et.unsub(l),Mu.delete(l),qn.clear(),Cu(Ya,ds,He),g.remove(),me==null||me.remove(),Qe("destroy")}l.destroy=jn;function fn(){Qe("init",c,u),Zr(u||c.data,!1),k[v]?Oe(v,k[v]):bo(),Mr=mt.show&&(mt.width>0||mt.height>0),tr=Qn=!0,Tr(c.width,c.height)}return y.forEach(qo),E.forEach($i),e?e instanceof HTMLElement?(e.appendChild(g),fn()):e(l,fn):fn(),l}li.assign=Dn;li.fmtNum=Vu;li.rangeNum=Qa;li.rangeLog=ul;li.rangeAsinh=zu;li.orient=Ko;li.pxRatio=qt;li.join=xS;li.fmtDate=Ku,li.tzDate=RS;li.sync=Xg;{li.addGap=p_,li.clipGaps=fl;let c=li.paths={points:om};c.linear=am,c.stepped=v_,c.bars=y_,c.spline=b_}var Rc,cp;function E_(){return cp||(cp=1,Rc=function(c,u,e,l,T){var b,w;if(l===void 0)l=0;else if(l=l|0,l<0||l>=c.length)throw new RangeError("invalid lower bound");if(T===void 0)T=c.length-1;else if(T=T|0,T<l||T>=c.length)throw new RangeError("invalid upper bound");for(;l<=T;)if(b=l+(T-l>>>1),w=+e(c[b],u,b,c),w<0)l=b+1;else if(w>0)T=b-1;else return b;return~l}),Rc}var R_=E_();const I_=Ja(R_);var Ic,up;function O_(){if(up)return Ic;up=1;function c(u,e,l){var T=-1,b=u.length;e<0&&(e=-e>b?0:b+e),l=l>b?b:l,l<0&&(l+=b),b=e>l?0:l-e>>>0,e>>>=0;for(var w=Array(b);++T<b;)w[T]=u[T+e];return w}return Ic=c,Ic}var Oc,hp;function N_(){if(hp)return Oc;hp=1;var c=O_();function u(e,l,T){var b=e.length;return T=T===void 0?b:T,!l&&T>=b?e:c(e,l,T)}return Oc=u,Oc}var Nc,dp;function hm(){if(dp)return Nc;dp=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",T=u+e+l,b="\\ufe0e\\ufe0f",w="\\u200d",C=RegExp("["+w+c+T+b+"]");function p(g){return C.test(g)}return Nc=p,Nc}var Dc,fp;function D_(){if(fp)return Dc;fp=1;function c(u){return u.split("")}return Dc=c,Dc}var Fc,pp;function F_(){if(pp)return Fc;pp=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",T=u+e+l,b="\\ufe0e\\ufe0f",w="["+c+"]",C="["+T+"]",p="\\ud83c[\\udffb-\\udfff]",g="(?:"+C+"|"+p+")",i="[^"+c+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",r="\\u200d",n=g+"?",a="["+b+"]?",h="(?:"+r+"(?:"+[i,s,o].join("|")+")"+a+n+")*",m=a+n+h,y="(?:"+[i+C+"?",C,s,o,w].join("|")+")",E=RegExp(p+"(?="+p+")|"+y+m,"g");function M(_){return _.match(E)||[]}return Fc=M,Fc}var Pc,gp;function P_(){if(gp)return Pc;gp=1;var c=D_(),u=hm(),e=F_();function l(T){return u(T)?e(T):c(T)}return Pc=l,Pc}var Wc,mp;function W_(){if(mp)return Wc;mp=1;var c=typeof mo=="object"&&mo&&mo.Object===Object&&mo;return Wc=c,Wc}var Bc,vp;function B_(){if(vp)return Bc;vp=1;var c=W_(),u=typeof self=="object"&&self&&self.Object===Object&&self,e=c||u||Function("return this")();return Bc=e,Bc}var Hc,yp;function Xu(){if(yp)return Hc;yp=1;var c=B_(),u=c.Symbol;return Hc=u,Hc}var zc,wp;function H_(){if(wp)return zc;wp=1;function c(u,e){for(var l=-1,T=u==null?0:u.length,b=Array(T);++l<T;)b[l]=e(u[l],l,u);return b}return zc=c,zc}var Uc,bp;function z_(){if(bp)return Uc;bp=1;var c=Array.isArray;return Uc=c,Uc}var Vc,xp;function U_(){if(xp)return Vc;xp=1;var c=Xu(),u=Object.prototype,e=u.hasOwnProperty,l=u.toString,T=c?c.toStringTag:void 0;function b(w){var C=e.call(w,T),p=w[T];try{w[T]=void 0;var g=!0}catch{}var i=l.call(w);return g&&(C?w[T]=p:delete w[T]),i}return Vc=b,Vc}var jc,kp;function V_(){if(kp)return jc;kp=1;var c=Object.prototype,u=c.toString;function e(l){return u.call(l)}return jc=e,jc}var Kc,Cp;function j_(){if(Cp)return Kc;Cp=1;var c=Xu(),u=U_(),e=V_(),l="[object Null]",T="[object Undefined]",b=c?c.toStringTag:void 0;function w(C){return C==null?C===void 0?T:l:b&&b in Object(C)?u(C):e(C)}return Kc=w,Kc}var Gc,Sp;function K_(){if(Sp)return Gc;Sp=1;function c(u){return u!=null&&typeof u=="object"}return Gc=c,Gc}var qc,_p;function G_(){if(_p)return qc;_p=1;var c=j_(),u=K_(),e="[object Symbol]";function l(T){return typeof T=="symbol"||u(T)&&c(T)==e}return qc=l,qc}var Yc,Ap;function q_(){if(Ap)return Yc;Ap=1;var c=Xu(),u=H_(),e=z_(),l=G_(),T=c?c.prototype:void 0,b=T?T.toString:void 0;function w(C){if(typeof C=="string")return C;if(e(C))return u(C,w)+"";if(l(C))return b?b.call(C):"";var p=C+"";return p=="0"&&1/C==-1/0?"-0":p}return Yc=w,Yc}var Qc,$p;function vl(){if($p)return Qc;$p=1;var c=q_();function u(e){return e==null?"":c(e)}return Qc=u,Qc}var Zc,Mp;function Y_(){if(Mp)return Zc;Mp=1;var c=N_(),u=hm(),e=P_(),l=vl();function T(b){return function(w){w=l(w);var C=u(w)?e(w):void 0,p=C?C[0]:w.charAt(0),g=C?c(C,1).join(""):w.slice(1);return p[b]()+g}}return Zc=T,Zc}var Jc,Tp;function dm(){if(Tp)return Jc;Tp=1;var c=Y_(),u=c("toUpperCase");return Jc=u,Jc}var Q_=dm();const Z_=Ja(Q_);var Xc,Lp;function J_(){if(Lp)return Xc;Lp=1;var c=vl(),u=dm();function e(l){return u(c(l).toLowerCase())}return Xc=e,Xc}var eu,Ep;function X_(){if(Ep)return eu;Ep=1;function c(u,e,l,T){var b=-1,w=u==null?0:u.length;for(T&&w&&(l=u[++b]);++b<w;)l=e(l,u[b],b,u);return l}return eu=c,eu}var tu,Rp;function eA(){if(Rp)return tu;Rp=1;function c(u){return function(e){return u==null?void 0:u[e]}}return tu=c,tu}var nu,Ip;function tA(){if(Ip)return nu;Ip=1;var c=eA(),u={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=c(u);return nu=e,nu}var iu,Op;function nA(){if(Op)return iu;Op=1;var c=tA(),u=vl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l="\\u0300-\\u036f",T="\\ufe20-\\ufe2f",b="\\u20d0-\\u20ff",w=l+T+b,C="["+w+"]",p=RegExp(C,"g");function g(i){return i=u(i),i&&i.replace(e,c).replace(p,"")}return iu=g,iu}var ru,Np;function iA(){if(Np)return ru;Np=1;var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function u(e){return e.match(c)||[]}return ru=u,ru}var ou,Dp;function rA(){if(Dp)return ou;Dp=1;var c=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function u(e){return c.test(e)}return ou=u,ou}var su,Fp;function oA(){if(Fp)return su;Fp=1;var c="\\ud800-\\udfff",u="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",T=u+e+l,b="\\u2700-\\u27bf",w="a-z\\xdf-\\xf6\\xf8-\\xff",C="\\xac\\xb1\\xd7\\xf7",p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",i=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\ufe0e\\ufe0f",r=C+p+g+i,n="['’]",a="["+r+"]",h="["+T+"]",m="\\d+",y="["+b+"]",E="["+w+"]",M="[^"+c+r+m+b+w+s+"]",_="\\ud83c[\\udffb-\\udfff]",v="(?:"+h+"|"+_+")",R="[^"+c+"]",I="(?:\\ud83c[\\udde6-\\uddff]){2}",F="[\\ud800-\\udbff][\\udc00-\\udfff]",L="["+s+"]",U="\\u200d",P="(?:"+E+"|"+M+")",O="(?:"+L+"|"+M+")",S="(?:"+n+"(?:d|ll|m|re|s|t|ve))?",k="(?:"+n+"(?:D|LL|M|RE|S|T|VE))?",N=v+"?",B="["+o+"]?",V="(?:"+U+"(?:"+[R,I,F].join("|")+")"+B+N+")*",G="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",te=B+N+V,he="(?:"+[y,I,F].join("|")+")"+te,ne=RegExp([L+"?"+E+"+"+S+"(?="+[a,L,"$"].join("|")+")",O+"+"+k+"(?="+[a,L+P,"$"].join("|")+")",L+"?"+P+"+"+S,L+"+"+k,Q,G,m,he].join("|"),"g");function ce(ue){return ue.match(ne)||[]}return su=ce,su}var au,Pp;function sA(){if(Pp)return au;Pp=1;var c=iA(),u=rA(),e=vl(),l=oA();function T(b,w,C){return b=e(b),w=C?void 0:w,w===void 0?u(b)?l(b):c(b):b.match(w)||[]}return au=T,au}var lu,Wp;function aA(){if(Wp)return lu;Wp=1;var c=X_(),u=nA(),e=sA(),l="['’]",T=RegExp(l,"g");function b(w){return function(C){return c(e(u(C).replace(T,"")),w,"")}}return lu=b,lu}var cu,Bp;function lA(){if(Bp)return cu;Bp=1;var c=J_(),u=aA(),e=u(function(l,T,b){return T=T.toLowerCase(),l+(b?c(T):T)});return cu=e,cu}var cA=lA();const uA=Ja(cA),hA=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayWidget-Bb_Ldxq7.cjs")),"./ArrayplotWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayplotWidget-DC41cpv1.cjs")),"./BlockWidget.vue":()=>Promise.resolve().then(()=>require("./BlockWidget-DOY5lVfa.cjs")),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>require("./ButtonWidget-CFyZXGt6.cjs")),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasWidget-C6dc7mUw.cjs")),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasdotWidget-9bBVHC1l.cjs")),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimageWidget-DjvdDCRS.cjs")),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimagevalueWidget-C1fI-ftP.cjs")),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelWidget--6Sjc4E8.cjs")),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelvalueWidget-DZCxsIKk.cjs")),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslineWidget-Bn83Rb10.cjs")),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslinevalueWidget-C6x_4Gc9.cjs")),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>require("./CheckbuttonWidget-BvggsGZY.cjs")),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>require("./ComboboxWidget-BS5WSbrK.cjs")),"./DateWidget.vue":()=>Promise.resolve().then(()=>require("./DateWidget-jejbk2-G.cjs")),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>require("./DynamicWidget-BWEVCUfd.cjs")),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>require("./FormatvalueWidget-wu7Q3sXu.cjs")),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalWidget--AkRJPlL.cjs")),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalboxWidget-synL-Bar.cjs")),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontallineWidget-lTr2JTFY.cjs")),"./IframeWidget.vue":()=>Promise.resolve().then(()=>require("./IframeWidget-ByhwW9yG.cjs")),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>require("./ImageviewerWidget-D4mU6wLX.cjs")),"./LabelWidget.vue":()=>Promise.resolve().then(()=>require("./LabelWidget-DQZqRxKF.cjs")),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>require("./LabelledWidget-9HWChRmv.cjs")),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelprogressbarWidget-DwzTP73u.cjs")),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>require("./LabelsparklineWidget-DMjBshq8.cjs")),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvalueWidget-mAb0eLA8.cjs")),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluedescWidget-CZJ0kZN-.cjs")),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitsbarWidget-DjBqYxRr.cjs")),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitscolumnWidget-GputlDZq.cjs")),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluerangebarWidget-Ci-n_hxk.cjs")),"./LedWidget.vue":()=>Promise.resolve().then(()=>require("./LedWidget-BUTbyEBi.cjs")),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LimitsbarWidget-Co5GAHro.cjs")),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolorWidget-BpTcgqRC.cjs")),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolumnWidget-CqJJKDzz.cjs")),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>require("./LinegraphWidget-Bay0EtbI.cjs")),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>require("./MatrixbycolumnsWidget-DxRhvPGv.cjs")),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>require("./ProgressbarWidget-C0AkbX_o.cjs")),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>require("./RadiobuttonWidget-DslmJO31.cjs")),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>require("./RadiogroupWidget-DKgBAR9E.cjs")),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>require("./RangebarWidget-Tq80I5zA.cjs")),"./RollupWidget.vue":()=>Promise.resolve().then(()=>require("./RollupWidget-CHdZAUCb.cjs")),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>require("./ScrollwindowWidget-C5_X-KwQ.cjs")),"./SignalWidget.vue":()=>Promise.resolve().then(()=>require("./SignalWidget-COL8kXSJ.cjs")),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>require("./SpacerWidget-D_Ya_b1j.cjs")),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>require("./SparklineWidget-CRzXTS5z.cjs")),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>require("./TabbookWidget-Bh-GDBXg.cjs")),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>require("./TextboxWidget-uDptDK_z.cjs")),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>require("./TextfieldWidget-B0FCskrL.cjs")),"./TimeWidget.vue":()=>Promise.resolve().then(()=>require("./TimeWidget-q5tUvHC6.cjs")),"./TitleWidget.vue":()=>Promise.resolve().then(()=>require("./TitleWidget-REsd7MqR.cjs")),"./ValueWidget.vue":()=>Promise.resolve().then(()=>require("./ValueWidget-CjZeSiPQ.cjs")),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitsbarWidget-CkLbRP8P.cjs")),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitscolumnWidget-DpU4BoB7.cjs")),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuerangebarWidget-CpZYmUl_.cjs")),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalWidget-CcJMMaK_.cjs")),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalboxWidget-CJR_mOLa.cjs"))}),dA=Object.entries(hA).reduce((c,[u,e])=>{u=u.split("/").pop();const l=Z_(uA(u.replace(/\.\w+$/,"")));return{...c,[l]:Ze.defineAsyncComponent(e)}},{}),fA={components:dA};exports.DataViewerComponent=kg;exports.DataViewerHistoryComponent=OC;exports.WidgetComponents=fA;exports._=Sg;exports.aceExports=xx;exports.bs=I_;exports.di=Bk;exports.fi=Hk;exports.li=ak;exports.lodashExports=Cg;exports.lt=yu;exports.pi=_C;exports.uPlot=li;
|
|
1497
|
-
//# sourceMappingURL=UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-C_HFbtFB.cjs.map
|