@openc3/vue-common 6.4.0 → 6.4.2
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-DAZApfkV.js → ArrayWidget-D0fKsdTb.js} +4 -4
- package/dist/{ArrayWidget-DAZApfkV.js.map → ArrayWidget-D0fKsdTb.js.map} +1 -1
- package/dist/{ArrayWidget-Ba-YDfZB.cjs → ArrayWidget-F8xL9dRA.cjs} +2 -2
- package/dist/{ArrayWidget-Ba-YDfZB.cjs.map → ArrayWidget-F8xL9dRA.cjs.map} +1 -1
- package/dist/{ArrayplotWidget-BfsxDplv.js → ArrayplotWidget-BmRSuGhA.js} +3 -3
- package/dist/{ArrayplotWidget-BfsxDplv.js.map → ArrayplotWidget-BmRSuGhA.js.map} +1 -1
- package/dist/{ArrayplotWidget-Ckm4lmSc.cjs → ArrayplotWidget-D6_PhmMa.cjs} +2 -2
- package/dist/{ArrayplotWidget-Ckm4lmSc.cjs.map → ArrayplotWidget-D6_PhmMa.cjs.map} +1 -1
- package/dist/{BarColumn-Cp7oEFJR.cjs → BarColumn-DO5zpCu2.cjs} +2 -2
- package/dist/{BarColumn-Cp7oEFJR.cjs.map → BarColumn-DO5zpCu2.cjs.map} +1 -1
- package/dist/{BarColumn-q0nAsvrd.js → BarColumn-DtYw6Gmq.js} +3 -3
- package/dist/{BarColumn-q0nAsvrd.js.map → BarColumn-DtYw6Gmq.js.map} +1 -1
- package/dist/{BlockWidget-DRB-TDL_.cjs → BlockWidget-CbuJPszc.cjs} +2 -2
- package/dist/{BlockWidget-DRB-TDL_.cjs.map → BlockWidget-CbuJPszc.cjs.map} +1 -1
- package/dist/{BlockWidget-SDCUWcMQ.js → BlockWidget-Dpxbw455.js} +4 -4
- package/dist/{BlockWidget-SDCUWcMQ.js.map → BlockWidget-Dpxbw455.js.map} +1 -1
- package/dist/{ButtonWidget-BVMjwC19.js → ButtonWidget-8iOpXmpp.js} +4 -4
- package/dist/{ButtonWidget-BVMjwC19.js.map → ButtonWidget-8iOpXmpp.js.map} +1 -1
- package/dist/{ButtonWidget-yJ70adEU.cjs → ButtonWidget-DB464bRo.cjs} +2 -2
- package/dist/{ButtonWidget-yJ70adEU.cjs.map → ButtonWidget-DB464bRo.cjs.map} +1 -1
- package/dist/{CanvasWidget-bVkufjRQ.js → CanvasWidget-B0iU38rA.js} +2 -2
- package/dist/{CanvasWidget-bVkufjRQ.js.map → CanvasWidget-B0iU38rA.js.map} +1 -1
- package/dist/{CanvasWidget-DXkxnt1x.cjs → CanvasWidget-D4iIs915.cjs} +2 -2
- package/dist/{CanvasWidget-DXkxnt1x.cjs.map → CanvasWidget-D4iIs915.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-DpniFfca.js → CanvasdotWidget-C9viSVBs.js} +2 -2
- package/dist/{CanvasdotWidget-DpniFfca.js.map → CanvasdotWidget-C9viSVBs.js.map} +1 -1
- package/dist/{CanvasdotWidget-Bi3nZh7g.cjs → CanvasdotWidget-DG6qDFlh.cjs} +2 -2
- package/dist/{CanvasdotWidget-Bi3nZh7g.cjs.map → CanvasdotWidget-DG6qDFlh.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-C-aBl-by.cjs → CanvasimageWidget-BJhOpZ3q.cjs} +2 -2
- package/dist/{CanvasimageWidget-C-aBl-by.cjs.map → CanvasimageWidget-BJhOpZ3q.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-DHOSz-dJ.js → CanvasimageWidget-CFiCpITu.js} +3 -3
- package/dist/{CanvasimageWidget-DHOSz-dJ.js.map → CanvasimageWidget-CFiCpITu.js.map} +1 -1
- package/dist/{CanvasimagevalueWidget-DAbbV-LB.cjs → CanvasimagevalueWidget-D-4P_8Gh.cjs} +2 -2
- package/dist/{CanvasimagevalueWidget-DAbbV-LB.cjs.map → CanvasimagevalueWidget-D-4P_8Gh.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-zrURWWUL.js → CanvasimagevalueWidget-fu6vbAY0.js} +3 -3
- package/dist/{CanvasimagevalueWidget-zrURWWUL.js.map → CanvasimagevalueWidget-fu6vbAY0.js.map} +1 -1
- package/dist/{CanvaslabelWidget-82bf_Awf.cjs → CanvaslabelWidget-1OS-a3F4.cjs} +2 -2
- package/dist/{CanvaslabelWidget-82bf_Awf.cjs.map → CanvaslabelWidget-1OS-a3F4.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-D-XAMifp.js → CanvaslabelWidget-BVqHq3Vp.js} +2 -2
- package/dist/{CanvaslabelWidget-D-XAMifp.js.map → CanvaslabelWidget-BVqHq3Vp.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-BsIdBtEb.js → CanvaslabelvalueWidget-BOFa8-NU.js} +2 -2
- package/dist/{CanvaslabelvalueWidget-BsIdBtEb.js.map → CanvaslabelvalueWidget-BOFa8-NU.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-DgDzwLdi.cjs → CanvaslabelvalueWidget-C3vVvK2b.cjs} +2 -2
- package/dist/{CanvaslabelvalueWidget-DgDzwLdi.cjs.map → CanvaslabelvalueWidget-C3vVvK2b.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-BRRPuuqS.cjs → CanvaslineWidget-Cr8MsDUl.cjs} +2 -2
- package/dist/{CanvaslineWidget-BRRPuuqS.cjs.map → CanvaslineWidget-Cr8MsDUl.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-CA2aPGRg.js → CanvaslineWidget-l3ko0QXk.js} +2 -2
- package/dist/{CanvaslineWidget-CA2aPGRg.js.map → CanvaslineWidget-l3ko0QXk.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-J7epKRlo.js → CanvaslinevalueWidget-BCZoO-Z6.js} +2 -2
- package/dist/{CanvaslinevalueWidget-J7epKRlo.js.map → CanvaslinevalueWidget-BCZoO-Z6.js.map} +1 -1
- package/dist/{CanvaslinevalueWidget-BYjWr2gq.cjs → CanvaslinevalueWidget-DRowns-E.cjs} +2 -2
- package/dist/{CanvaslinevalueWidget-BYjWr2gq.cjs.map → CanvaslinevalueWidget-DRowns-E.cjs.map} +1 -1
- package/dist/{CheckbuttonWidget-ByH-PDRG.js → CheckbuttonWidget-BN7e1d5b.js} +2 -2
- package/dist/{CheckbuttonWidget-ByH-PDRG.js.map → CheckbuttonWidget-BN7e1d5b.js.map} +1 -1
- package/dist/{CheckbuttonWidget-DkoFFTcM.cjs → CheckbuttonWidget-Cy9VUV7t.cjs} +2 -2
- package/dist/{CheckbuttonWidget-DkoFFTcM.cjs.map → CheckbuttonWidget-Cy9VUV7t.cjs.map} +1 -1
- package/dist/{ComboboxWidget-Bdm_fMzW.js → ComboboxWidget-Bb5RGXDB.js} +2 -2
- package/dist/{ComboboxWidget-Bdm_fMzW.js.map → ComboboxWidget-Bb5RGXDB.js.map} +1 -1
- package/dist/{ComboboxWidget-Dq28F4bs.cjs → ComboboxWidget-DbQwLEJY.cjs} +2 -2
- package/dist/{ComboboxWidget-Dq28F4bs.cjs.map → ComboboxWidget-DbQwLEJY.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-Bcq8PGag.js → CriticalCmdDialog-BUHsxfpO.js} +2 -2
- package/dist/{CriticalCmdDialog-Bcq8PGag.js.map → CriticalCmdDialog-BUHsxfpO.js.map} +1 -1
- package/dist/{CriticalCmdDialog-CLF7hYKu.cjs → CriticalCmdDialog-p0ZMNHpv.cjs} +2 -2
- package/dist/{CriticalCmdDialog-CLF7hYKu.cjs.map → CriticalCmdDialog-p0ZMNHpv.cjs.map} +1 -1
- package/dist/{DateWidget-DCayVS3o.cjs → DateWidget-Cv3Uzbyr.cjs} +2 -2
- package/dist/{DateWidget-DCayVS3o.cjs.map → DateWidget-Cv3Uzbyr.cjs.map} +1 -1
- package/dist/{DateWidget-BaQqthC7.js → DateWidget-Dggqab-F.js} +2 -2
- package/dist/{DateWidget-BaQqthC7.js.map → DateWidget-Dggqab-F.js.map} +1 -1
- package/dist/{DetailsDialog-C5jf8o0K.js → DetailsDialog-BhSAQDSK.js} +2 -2
- package/dist/{DetailsDialog-C5jf8o0K.js.map → DetailsDialog-BhSAQDSK.js.map} +1 -1
- package/dist/{DetailsDialog-CangkVuF.cjs → DetailsDialog-CSUO0ibv.cjs} +2 -2
- package/dist/{DetailsDialog-CangkVuF.cjs.map → DetailsDialog-CSUO0ibv.cjs.map} +1 -1
- package/dist/EventListDialog-C7RuZnvD.cjs +2 -0
- package/dist/EventListDialog-C7RuZnvD.cjs.map +1 -0
- package/dist/{EventListDialog-Bniar26O.js → EventListDialog-CSxz4nmr.js} +58 -54
- package/dist/EventListDialog-CSxz4nmr.js.map +1 -0
- package/dist/{FormatvalueWidget--H5B9i_Y.js → FormatvalueWidget-B9_PbzY2.js} +3 -3
- package/dist/{FormatvalueWidget--H5B9i_Y.js.map → FormatvalueWidget-B9_PbzY2.js.map} +1 -1
- package/dist/{FormatvalueWidget-CDh1rF5P.cjs → FormatvalueWidget-VYVvrtya.cjs} +2 -2
- package/dist/{FormatvalueWidget-CDh1rF5P.cjs.map → FormatvalueWidget-VYVvrtya.cjs.map} +1 -1
- package/dist/{Graph-M382Zo8o.js → Graph-B29y4d5A.js} +2 -2
- package/dist/{Graph-M382Zo8o.js.map → Graph-B29y4d5A.js.map} +1 -1
- package/dist/{Graph-DIR-5tJu.cjs → Graph-B2Ir-2Ot.cjs} +2 -2
- package/dist/{Graph-DIR-5tJu.cjs.map → Graph-B2Ir-2Ot.cjs.map} +1 -1
- package/dist/{GraphWidget-CNUOLw5-.cjs → GraphWidget-BsiCtRsJ.cjs} +2 -2
- package/dist/{GraphWidget-CNUOLw5-.cjs.map → GraphWidget-BsiCtRsJ.cjs.map} +1 -1
- package/dist/{GraphWidget-_YOGDD1U.js → GraphWidget-oBxPa3EB.js} +2 -2
- package/dist/{GraphWidget-_YOGDD1U.js.map → GraphWidget-oBxPa3EB.js.map} +1 -1
- package/dist/{HorizontalWidget-D_gzrOWs.js → HorizontalWidget-BWgZL_Oz.js} +2 -2
- package/dist/{HorizontalWidget-D_gzrOWs.js.map → HorizontalWidget-BWgZL_Oz.js.map} +1 -1
- package/dist/{HorizontalWidget-Bix4q7It.cjs → HorizontalWidget-wn07kYWX.cjs} +2 -2
- package/dist/{HorizontalWidget-Bix4q7It.cjs.map → HorizontalWidget-wn07kYWX.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-B8a4-h2J.cjs → HorizontalboxWidget-BQLGULQ-.cjs} +2 -2
- package/dist/{HorizontalboxWidget-B8a4-h2J.cjs.map → HorizontalboxWidget-BQLGULQ-.cjs.map} +1 -1
- package/dist/{HorizontalboxWidget-GDcjO-UB.js → HorizontalboxWidget-yMYUnNB8.js} +5 -5
- package/dist/{HorizontalboxWidget-GDcjO-UB.js.map → HorizontalboxWidget-yMYUnNB8.js.map} +1 -1
- package/dist/{HorizontallineWidget-DZvOYFxf.js → HorizontallineWidget-C4zMx7z2.js} +2 -2
- package/dist/{HorizontallineWidget-DZvOYFxf.js.map → HorizontallineWidget-C4zMx7z2.js.map} +1 -1
- package/dist/{HorizontallineWidget-BD6dqVhE.cjs → HorizontallineWidget-CfrV_K28.cjs} +2 -2
- package/dist/{HorizontallineWidget-BD6dqVhE.cjs.map → HorizontallineWidget-CfrV_K28.cjs.map} +1 -1
- package/dist/{IframeWidget-CuUav9b3.js → IframeWidget-DA4P_mJT.js} +2 -2
- package/dist/{IframeWidget-CuUav9b3.js.map → IframeWidget-DA4P_mJT.js.map} +1 -1
- package/dist/{IframeWidget-DL_CET3B.cjs → IframeWidget-DeNDRzqB.cjs} +2 -2
- package/dist/{IframeWidget-DL_CET3B.cjs.map → IframeWidget-DeNDRzqB.cjs.map} +1 -1
- package/dist/{ImageLoader-DaWMqoJS.cjs → ImageLoader-mxOVUyj1.cjs} +2 -2
- package/dist/{ImageLoader-DaWMqoJS.cjs.map → ImageLoader-mxOVUyj1.cjs.map} +1 -1
- package/dist/{ImageLoader-3KLKJ5mV.js → ImageLoader-rvd9t-mk.js} +2 -2
- package/dist/{ImageLoader-3KLKJ5mV.js.map → ImageLoader-rvd9t-mk.js.map} +1 -1
- package/dist/{ImageviewerWidget-BMZ6REN4.js → ImageviewerWidget-B1wK0hK4.js} +2 -2
- package/dist/{ImageviewerWidget-BMZ6REN4.js.map → ImageviewerWidget-B1wK0hK4.js.map} +1 -1
- package/dist/{ImageviewerWidget-_0YopZ1s.cjs → ImageviewerWidget-CV76ouHz.cjs} +2 -2
- package/dist/{ImageviewerWidget-_0YopZ1s.cjs.map → ImageviewerWidget-CV76ouHz.cjs.map} +1 -1
- package/dist/{InterfacesTab-DTixVrGo.js → InterfacesTab-CVvIDSTG.js} +3 -3
- package/dist/{InterfacesTab-DTixVrGo.js.map → InterfacesTab-CVvIDSTG.js.map} +1 -1
- package/dist/{InterfacesTab-DGrLsTA0.cjs → InterfacesTab-DHoYHLxF.cjs} +2 -2
- package/dist/{InterfacesTab-DGrLsTA0.cjs.map → InterfacesTab-DHoYHLxF.cjs.map} +1 -1
- package/dist/{LabelWidget-DkZvBxYg.cjs → LabelWidget-BobQDS5m.cjs} +2 -2
- package/dist/{LabelWidget-DkZvBxYg.cjs.map → LabelWidget-BobQDS5m.cjs.map} +1 -1
- package/dist/{LabelWidget-oh6FIG6s.js → LabelWidget-CY0saBoK.js} +2 -2
- package/dist/{LabelWidget-oh6FIG6s.js.map → LabelWidget-CY0saBoK.js.map} +1 -1
- package/dist/{LabelledWidget-Bic36les.js → LabelledWidget-B3ZOYaGy.js} +4 -4
- package/dist/{LabelledWidget-Bic36les.js.map → LabelledWidget-B3ZOYaGy.js.map} +1 -1
- package/dist/{LabelledWidget-D7nm73kj.cjs → LabelledWidget-Dp4fjHpu.cjs} +2 -2
- package/dist/{LabelledWidget-D7nm73kj.cjs.map → LabelledWidget-Dp4fjHpu.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-DY0Xd2c2.cjs → LabelprogressbarWidget-1BF_rNsT.cjs} +2 -2
- package/dist/{LabelprogressbarWidget-DY0Xd2c2.cjs.map → LabelprogressbarWidget-1BF_rNsT.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-CqIiGoDb.js → LabelprogressbarWidget-CmXcESTg.js} +4 -4
- package/dist/{LabelprogressbarWidget-CqIiGoDb.js.map → LabelprogressbarWidget-CmXcESTg.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DLhmqO02.js → LabelsparklineWidget-D_yrQrn6.js} +4 -4
- package/dist/{LabelsparklineWidget-DLhmqO02.js.map → LabelsparklineWidget-D_yrQrn6.js.map} +1 -1
- package/dist/{LabelsparklineWidget-DZ5-iEcK.cjs → LabelsparklineWidget-DgzZAWfI.cjs} +2 -2
- package/dist/{LabelsparklineWidget-DZ5-iEcK.cjs.map → LabelsparklineWidget-DgzZAWfI.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-D-u38nLh.cjs → LabelvalueWidget-T6FC3w0l.cjs} +2 -2
- package/dist/{LabelvalueWidget-D-u38nLh.cjs.map → LabelvalueWidget-T6FC3w0l.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-BefwSSVq.js → LabelvalueWidget-dNaNfsBE.js} +4 -4
- package/dist/{LabelvalueWidget-BefwSSVq.js.map → LabelvalueWidget-dNaNfsBE.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-NxrCzznm.js → LabelvaluedescWidget-3vNoH6Mc.js} +5 -5
- package/dist/{LabelvaluedescWidget-NxrCzznm.js.map → LabelvaluedescWidget-3vNoH6Mc.js.map} +1 -1
- package/dist/{LabelvaluedescWidget-DMuBCLM8.cjs → LabelvaluedescWidget-Cb7UqEa-.cjs} +2 -2
- package/dist/{LabelvaluedescWidget-DMuBCLM8.cjs.map → LabelvaluedescWidget-Cb7UqEa-.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-pq7qoolL.js → LabelvaluelimitsbarWidget-7VppYVIN.js} +4 -4
- package/dist/{LabelvaluelimitsbarWidget-pq7qoolL.js.map → LabelvaluelimitsbarWidget-7VppYVIN.js.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-BY212bgc.cjs → LabelvaluelimitsbarWidget-Bi43GWx7.cjs} +2 -2
- package/dist/{LabelvaluelimitsbarWidget-BY212bgc.cjs.map → LabelvaluelimitsbarWidget-Bi43GWx7.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-edkpogsl.js → LabelvaluelimitscolumnWidget-BZ6nwifg.js} +5 -5
- package/dist/{LabelvaluelimitscolumnWidget-edkpogsl.js.map → LabelvaluelimitscolumnWidget-BZ6nwifg.js.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-DVLGU6ja.cjs → LabelvaluelimitscolumnWidget-CtTEiWPR.cjs} +2 -2
- package/dist/{LabelvaluelimitscolumnWidget-DVLGU6ja.cjs.map → LabelvaluelimitscolumnWidget-CtTEiWPR.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-CA_7kTS2.cjs → LabelvaluerangebarWidget-C5w7sRFw.cjs} +2 -2
- package/dist/{LabelvaluerangebarWidget-CA_7kTS2.cjs.map → LabelvaluerangebarWidget-C5w7sRFw.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-DpJNv9dh.js → LabelvaluerangebarWidget-IyuXLNsw.js} +4 -4
- package/dist/{LabelvaluerangebarWidget-DpJNv9dh.js.map → LabelvaluerangebarWidget-IyuXLNsw.js.map} +1 -1
- package/dist/{Layout-B0hvhBQO.js → Layout-BqMhhhws.js} +2 -2
- package/dist/{Layout-B0hvhBQO.js.map → Layout-BqMhhhws.js.map} +1 -1
- package/dist/Layout-DUWX7PWw.cjs +2 -0
- package/dist/{Layout-BLADjt_A.cjs.map → Layout-DUWX7PWw.cjs.map} +1 -1
- package/dist/{LedWidget-BoZKOBZg.cjs → LedWidget-ByRkD33m.cjs} +2 -2
- package/dist/{LedWidget-BoZKOBZg.cjs.map → LedWidget-ByRkD33m.cjs.map} +1 -1
- package/dist/{LedWidget--4eSxBnn.js → LedWidget-DSxpmIOK.js} +4 -4
- package/dist/{LedWidget--4eSxBnn.js.map → LedWidget-DSxpmIOK.js.map} +1 -1
- package/dist/{LimitsbarWidget-BQaumgRt.js → LimitsbarWidget-BoPTdVV5.js} +2 -2
- package/dist/{LimitsbarWidget-BQaumgRt.js.map → LimitsbarWidget-BoPTdVV5.js.map} +1 -1
- package/dist/{LimitsbarWidget-CyHbbNx3.cjs → LimitsbarWidget-DAZA6YDH.cjs} +2 -2
- package/dist/{LimitsbarWidget-CyHbbNx3.cjs.map → LimitsbarWidget-DAZA6YDH.cjs.map} +1 -1
- package/dist/{LimitscolorWidget-BBF9sRtF.js → LimitscolorWidget-Bt3qOvrv.js} +2 -2
- package/dist/{LimitscolorWidget-BBF9sRtF.js.map → LimitscolorWidget-Bt3qOvrv.js.map} +1 -1
- package/dist/{LimitscolorWidget-CsuRoqxm.cjs → LimitscolorWidget-ECUDD3Yg.cjs} +2 -2
- package/dist/{LimitscolorWidget-CsuRoqxm.cjs.map → LimitscolorWidget-ECUDD3Yg.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-DZZtSoXw.js → LimitscolumnWidget-Ce6YnUBz.js} +2 -2
- package/dist/{LimitscolumnWidget-DZZtSoXw.js.map → LimitscolumnWidget-Ce6YnUBz.js.map} +1 -1
- package/dist/{LimitscolumnWidget-Cr1qFT8M.cjs → LimitscolumnWidget-DrsRK8l_.cjs} +2 -2
- package/dist/{LimitscolumnWidget-Cr1qFT8M.cjs.map → LimitscolumnWidget-DrsRK8l_.cjs.map} +1 -1
- package/dist/{LinegraphWidget-Cw9vua8K.cjs → LinegraphWidget-BK03y7ev.cjs} +2 -2
- package/dist/{LinegraphWidget-Cw9vua8K.cjs.map → LinegraphWidget-BK03y7ev.cjs.map} +1 -1
- package/dist/{LinegraphWidget-DTLZmyWs.js → LinegraphWidget-XAbg0jj2.js} +4 -4
- package/dist/{LinegraphWidget-DTLZmyWs.js.map → LinegraphWidget-XAbg0jj2.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-dpgZz4wR.js → MatrixbycolumnsWidget-5MgJFZtz.js} +3 -3
- package/dist/{MatrixbycolumnsWidget-dpgZz4wR.js.map → MatrixbycolumnsWidget-5MgJFZtz.js.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-Digh2kY7.cjs → MatrixbycolumnsWidget-Cl1-0jWU.cjs} +2 -2
- package/dist/{MatrixbycolumnsWidget-Digh2kY7.cjs.map → MatrixbycolumnsWidget-Cl1-0jWU.cjs.map} +1 -1
- package/dist/{MicroservicesTab-BQywJ_ya.cjs → MicroservicesTab-DLAy8cBq.cjs} +2 -2
- package/dist/{MicroservicesTab-BQywJ_ya.cjs.map → MicroservicesTab-DLAy8cBq.cjs.map} +1 -1
- package/dist/{MicroservicesTab-DbL48MBc.js → MicroservicesTab-DlnZ9h0y.js} +3 -3
- package/dist/{MicroservicesTab-DbL48MBc.js.map → MicroservicesTab-DlnZ9h0y.js.map} +1 -1
- package/dist/{Openc3Screen-CtwGKfq-.js → Openc3Screen-1vPogvfj.js} +254 -230
- package/dist/Openc3Screen-1vPogvfj.js.map +1 -0
- package/dist/Openc3Screen-DERmiz3g.cjs +5 -0
- package/dist/Openc3Screen-DERmiz3g.cjs.map +1 -0
- package/dist/{OutputDialog-CFhG2RY9.cjs → OutputDialog-BUc85qgI.cjs} +2 -2
- package/dist/{OutputDialog-CFhG2RY9.cjs.map → OutputDialog-BUc85qgI.cjs.map} +1 -1
- package/dist/{OutputDialog-B5qHVyck.js → OutputDialog-aZe2HT6j.js} +2 -2
- package/dist/{OutputDialog-B5qHVyck.js.map → OutputDialog-aZe2HT6j.js.map} +1 -1
- package/dist/{PackagesTab-Bw34RkLc.js → PackagesTab-D5hNxd_X.js} +3 -3
- package/dist/{PackagesTab-Bw34RkLc.js.map → PackagesTab-D5hNxd_X.js.map} +1 -1
- package/dist/{PackagesTab-DXSowjd4.cjs → PackagesTab-D9h8f-Rc.cjs} +2 -2
- package/dist/{PackagesTab-DXSowjd4.cjs.map → PackagesTab-D9h8f-Rc.cjs.map} +1 -1
- package/dist/{PluginsTab-C9t0-QVm.js → PluginsTab-BP8DYqd-.js} +3 -3
- package/dist/{PluginsTab-C9t0-QVm.js.map → PluginsTab-BP8DYqd-.js.map} +1 -1
- package/dist/{PluginsTab-CPaBGJMa.cjs → PluginsTab-swaGuthJ.cjs} +2 -2
- package/dist/{PluginsTab-CPaBGJMa.cjs.map → PluginsTab-swaGuthJ.cjs.map} +1 -1
- package/dist/{ProgressbarWidget-7cYr8136.js → ProgressbarWidget-CDwDOFIy.js} +2 -2
- package/dist/{ProgressbarWidget-7cYr8136.js.map → ProgressbarWidget-CDwDOFIy.js.map} +1 -1
- package/dist/{ProgressbarWidget-CdOWGViG.cjs → ProgressbarWidget-giMKlGsU.cjs} +2 -2
- package/dist/{ProgressbarWidget-CdOWGViG.cjs.map → ProgressbarWidget-giMKlGsU.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-5t4ofYx3.cjs → RadiobuttonWidget-CDPV19UM.cjs} +2 -2
- package/dist/{RadiobuttonWidget-5t4ofYx3.cjs.map → RadiobuttonWidget-CDPV19UM.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-DTfn-7F2.js → RadiobuttonWidget-cQ8V8LaD.js} +2 -2
- package/dist/{RadiobuttonWidget-DTfn-7F2.js.map → RadiobuttonWidget-cQ8V8LaD.js.map} +1 -1
- package/dist/{RadiogroupWidget-DWvTpw94.js → RadiogroupWidget-BvRnuGA2.js} +2 -2
- package/dist/{RadiogroupWidget-DWvTpw94.js.map → RadiogroupWidget-BvRnuGA2.js.map} +1 -1
- package/dist/{RadiogroupWidget-emxyymRZ.cjs → RadiogroupWidget-DPYowBpl.cjs} +2 -2
- package/dist/{RadiogroupWidget-emxyymRZ.cjs.map → RadiogroupWidget-DPYowBpl.cjs.map} +1 -1
- package/dist/{RangebarWidget-CLMKfbiT.cjs → RangebarWidget-DtjrqC3F.cjs} +2 -2
- package/dist/{RangebarWidget-CLMKfbiT.cjs.map → RangebarWidget-DtjrqC3F.cjs.map} +1 -1
- package/dist/{RangebarWidget-CG2Y7eYp.js → RangebarWidget-aHmgV0qs.js} +2 -2
- package/dist/{RangebarWidget-CG2Y7eYp.js.map → RangebarWidget-aHmgV0qs.js.map} +1 -1
- package/dist/{RedisTab-CvPLS0Qe.js → RedisTab-D1-HQK-m.js} +2 -2
- package/dist/{RedisTab-CvPLS0Qe.js.map → RedisTab-D1-HQK-m.js.map} +1 -1
- package/dist/{RedisTab-PbizvHjY.cjs → RedisTab-DcFz87gW.cjs} +2 -2
- package/dist/{RedisTab-PbizvHjY.cjs.map → RedisTab-DcFz87gW.cjs.map} +1 -1
- package/dist/{RollupWidget-C6HKTfCR.js → RollupWidget-D1jUPrUQ.js} +2 -2
- package/dist/{RollupWidget-C6HKTfCR.js.map → RollupWidget-D1jUPrUQ.js.map} +1 -1
- package/dist/{RollupWidget-CHKUdXMx.cjs → RollupWidget-Dw2GIsBR.cjs} +2 -2
- package/dist/{RollupWidget-CHKUdXMx.cjs.map → RollupWidget-Dw2GIsBR.cjs.map} +1 -1
- package/dist/{RoutersTab-D-ex_yMO.js → RoutersTab-CF0ADapt.js} +3 -3
- package/dist/{RoutersTab-D-ex_yMO.js.map → RoutersTab-CF0ADapt.js.map} +1 -1
- package/dist/{RoutersTab-zkaML-Xt.cjs → RoutersTab-DJDjAIQf.cjs} +2 -2
- package/dist/{RoutersTab-zkaML-Xt.cjs.map → RoutersTab-DJDjAIQf.cjs.map} +1 -1
- package/dist/{ScriptChooser-Dkf84RzQ.cjs → ScriptChooser-CPzgZtTN.cjs} +2 -2
- package/dist/{ScriptChooser-Dkf84RzQ.cjs.map → ScriptChooser-CPzgZtTN.cjs.map} +1 -1
- package/dist/{ScriptChooser-qiC2xQ_W.js → ScriptChooser-IegS44oT.js} +2 -2
- package/dist/{ScriptChooser-qiC2xQ_W.js.map → ScriptChooser-IegS44oT.js.map} +1 -1
- package/dist/{ScrollwindowWidget-CVc9EXW2.cjs → ScrollwindowWidget-C79nSa0g.cjs} +2 -2
- package/dist/{ScrollwindowWidget-CVc9EXW2.cjs.map → ScrollwindowWidget-C79nSa0g.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-DvhBCYd2.js → ScrollwindowWidget-Cn0o3b4E.js} +3 -3
- package/dist/{ScrollwindowWidget-DvhBCYd2.js.map → ScrollwindowWidget-Cn0o3b4E.js.map} +1 -1
- package/dist/{SecretsTab-CLkJfzf-.js → SecretsTab-BAIHxgdM.js} +2 -2
- package/dist/{SecretsTab-CLkJfzf-.js.map → SecretsTab-BAIHxgdM.js.map} +1 -1
- package/dist/{SecretsTab-Clw9ErBz.cjs → SecretsTab-BVpqbRn5.cjs} +2 -2
- package/dist/{SecretsTab-Clw9ErBz.cjs.map → SecretsTab-BVpqbRn5.cjs.map} +1 -1
- package/dist/{SettingsTab-CysOMBFu.js → SettingsTab-C2k0BDcX.js} +3 -3
- package/dist/{SettingsTab-CysOMBFu.js.map → SettingsTab-C2k0BDcX.js.map} +1 -1
- package/dist/{SettingsTab-BJ9mrQ8U.cjs → SettingsTab-J1frSo-9.cjs} +2 -2
- package/dist/{SettingsTab-BJ9mrQ8U.cjs.map → SettingsTab-J1frSo-9.cjs.map} +1 -1
- package/dist/{SignalWidget-BZIoGjam.js → SignalWidget-BQBzqdU-.js} +2 -2
- package/dist/{SignalWidget-BZIoGjam.js.map → SignalWidget-BQBzqdU-.js.map} +1 -1
- package/dist/{SignalWidget-DpNUpQNW.cjs → SignalWidget-sAMVlO9e.cjs} +2 -2
- package/dist/{SignalWidget-DpNUpQNW.cjs.map → SignalWidget-sAMVlO9e.cjs.map} +1 -1
- package/dist/{SimpleTextDialog-CGStqYvO.js → SimpleTextDialog-3EEsXpGl.js} +2 -2
- package/dist/{SimpleTextDialog-CGStqYvO.js.map → SimpleTextDialog-3EEsXpGl.js.map} +1 -1
- package/dist/{SimpleTextDialog-P2KPhVHq.cjs → SimpleTextDialog-sOMrzIs7.cjs} +2 -2
- package/dist/{SimpleTextDialog-P2KPhVHq.cjs.map → SimpleTextDialog-sOMrzIs7.cjs.map} +1 -1
- package/dist/{SpacerWidget-YBS8RZIE.js → SpacerWidget-C0RmQY3t.js} +2 -2
- package/dist/{SpacerWidget-YBS8RZIE.js.map → SpacerWidget-C0RmQY3t.js.map} +1 -1
- package/dist/{SpacerWidget-CHuv4qDR.cjs → SpacerWidget-C5x4sFAQ.cjs} +2 -2
- package/dist/{SpacerWidget-CHuv4qDR.cjs.map → SpacerWidget-C5x4sFAQ.cjs.map} +1 -1
- package/dist/{SparklineWidget-BMhY9vYe.js → SparklineWidget-BTH9rvcX.js} +4 -4
- package/dist/{SparklineWidget-BMhY9vYe.js.map → SparklineWidget-BTH9rvcX.js.map} +1 -1
- package/dist/{SparklineWidget-qWQGTMwn.cjs → SparklineWidget-CfA39olv.cjs} +2 -2
- package/dist/{SparklineWidget-qWQGTMwn.cjs.map → SparklineWidget-CfA39olv.cjs.map} +1 -1
- package/dist/{TabbookWidget-C4jdzkQl.cjs → TabbookWidget-BrPTbXrU.cjs} +2 -2
- package/dist/{TabbookWidget-C4jdzkQl.cjs.map → TabbookWidget-BrPTbXrU.cjs.map} +1 -1
- package/dist/{TabbookWidget-RfET19pq.js → TabbookWidget-C-aDdEoD.js} +2 -2
- package/dist/{TabbookWidget-RfET19pq.js.map → TabbookWidget-C-aDdEoD.js.map} +1 -1
- package/dist/{TargetsTab-CVZR_Bp6.cjs → TargetsTab-BV-eELWM.cjs} +2 -2
- package/dist/{TargetsTab-CVZR_Bp6.cjs.map → TargetsTab-BV-eELWM.cjs.map} +1 -1
- package/dist/{TargetsTab-CfBt-dZW.js → TargetsTab-DAmlfJ9Z.js} +3 -3
- package/dist/{TargetsTab-CfBt-dZW.js.map → TargetsTab-DAmlfJ9Z.js.map} +1 -1
- package/dist/{TextboxWidget-M8vFBSxS.js → TextboxWidget-Dd2ccpUQ.js} +4 -4
- package/dist/{TextboxWidget-M8vFBSxS.js.map → TextboxWidget-Dd2ccpUQ.js.map} +1 -1
- package/dist/{TextboxWidget-Cm7-yWTZ.cjs → TextboxWidget-Lw5glGxY.cjs} +2 -2
- package/dist/{TextboxWidget-Cm7-yWTZ.cjs.map → TextboxWidget-Lw5glGxY.cjs.map} +1 -1
- package/dist/{TextfieldWidget-Bfk2NPtC.cjs → TextfieldWidget-CTsiRDIJ.cjs} +2 -2
- package/dist/{TextfieldWidget-Bfk2NPtC.cjs.map → TextfieldWidget-CTsiRDIJ.cjs.map} +1 -1
- package/dist/{TextfieldWidget-Dev7lCsT.js → TextfieldWidget-DY3aFTnP.js} +2 -2
- package/dist/{TextfieldWidget-Dev7lCsT.js.map → TextfieldWidget-DY3aFTnP.js.map} +1 -1
- package/dist/{TimeWidget-BqkZJdg7.cjs → TimeWidget-CB1jqQSZ.cjs} +2 -2
- package/dist/{TimeWidget-BqkZJdg7.cjs.map → TimeWidget-CB1jqQSZ.cjs.map} +1 -1
- package/dist/{TimeWidget-CQzn13rQ.js → TimeWidget-C_site21.js} +2 -2
- package/dist/{TimeWidget-CQzn13rQ.js.map → TimeWidget-C_site21.js.map} +1 -1
- package/dist/{TitleWidget-C4zbSian.js → TitleWidget-Bx81VfQD.js} +2 -2
- package/dist/{TitleWidget-C4zbSian.js.map → TitleWidget-Bx81VfQD.js.map} +1 -1
- package/dist/{TitleWidget-DW0hJ0FE.cjs → TitleWidget-E91xUafI.cjs} +2 -2
- package/dist/{TitleWidget-DW0hJ0FE.cjs.map → TitleWidget-E91xUafI.cjs.map} +1 -1
- package/dist/{ToolsTab-CKeFb94Y.cjs → ToolsTab-Bu3XUxr9.cjs} +2 -2
- package/dist/{ToolsTab-CKeFb94Y.cjs.map → ToolsTab-Bu3XUxr9.cjs.map} +1 -1
- package/dist/{ToolsTab-CnhhRS3J.js → ToolsTab-CW_TQ53O.js} +3 -3
- package/dist/{ToolsTab-CnhhRS3J.js.map → ToolsTab-CW_TQ53O.js.map} +1 -1
- package/dist/{TopBar-BQhv8Jcc.js → TopBar-C9ro4_7Q.js} +2 -2
- package/dist/{TopBar-BQhv8Jcc.js.map → TopBar-C9ro4_7Q.js.map} +1 -1
- package/dist/{TopBar-4zZ-wYMY.cjs → TopBar-CkCLoFp7.cjs} +2 -2
- package/dist/{TopBar-4zZ-wYMY.cjs.map → TopBar-CkCLoFp7.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-c6twungI.js → UpgradeToEnterpriseDialog-BH0WHey-.js} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-c6twungI.js.map → UpgradeToEnterpriseDialog-BH0WHey-.js.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog-C0MA3Uc-.cjs → UpgradeToEnterpriseDialog-EaQZfck4.cjs} +2 -2
- package/dist/{UpgradeToEnterpriseDialog-C0MA3Uc-.cjs.map → UpgradeToEnterpriseDialog-EaQZfck4.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs} +21 -21
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CHXJm9wA.cjs.map} +1 -1
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js} +453 -448
- package/dist/{UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js.map → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-xI8cv5P5.js.map} +1 -1
- package/dist/{VWidget-iTwRH6Qq.cjs → VWidget-CRqTUgEv.cjs} +2 -2
- package/dist/{VWidget-iTwRH6Qq.cjs.map → VWidget-CRqTUgEv.cjs.map} +1 -1
- package/dist/{VWidget-iASFPjdx.js → VWidget-DuUens7G.js} +2 -2
- package/dist/{VWidget-iASFPjdx.js.map → VWidget-DuUens7G.js.map} +1 -1
- package/dist/{ValueWidget-CPuSUgn9.cjs → ValueWidget-CN-B9LDi.cjs} +2 -2
- package/dist/{ValueWidget-CPuSUgn9.cjs.map → ValueWidget-CN-B9LDi.cjs.map} +1 -1
- package/dist/{ValueWidget-BVI6uUVX.js → ValueWidget-cbjxVV3B.js} +4 -4
- package/dist/{ValueWidget-BVI6uUVX.js.map → ValueWidget-cbjxVV3B.js.map} +1 -1
- package/dist/{ValuelimitsbarWidget-CNdyobcf.cjs → ValuelimitsbarWidget-BLHVD0qM.cjs} +2 -2
- package/dist/{ValuelimitsbarWidget-CNdyobcf.cjs.map → ValuelimitsbarWidget-BLHVD0qM.cjs.map} +1 -1
- package/dist/{ValuelimitsbarWidget-BiIcery0.js → ValuelimitsbarWidget-cQb2o_xH.js} +4 -4
- package/dist/{ValuelimitsbarWidget-BiIcery0.js.map → ValuelimitsbarWidget-cQb2o_xH.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-BiRI8GbI.js → ValuelimitscolumnWidget-BBTuSCK9.js} +4 -4
- package/dist/{ValuelimitscolumnWidget-BiRI8GbI.js.map → ValuelimitscolumnWidget-BBTuSCK9.js.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-Db0K4OjQ.cjs → ValuelimitscolumnWidget-DqGxHe2k.cjs} +2 -2
- package/dist/{ValuelimitscolumnWidget-Db0K4OjQ.cjs.map → ValuelimitscolumnWidget-DqGxHe2k.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-CtMFQu9-.js → ValuerangebarWidget-Ct7iGtu0.js} +4 -4
- package/dist/{ValuerangebarWidget-CtMFQu9-.js.map → ValuerangebarWidget-Ct7iGtu0.js.map} +1 -1
- package/dist/{ValuerangebarWidget-DAEr-D_E.cjs → ValuerangebarWidget-xMsUfp1H.cjs} +2 -2
- package/dist/{ValuerangebarWidget-DAEr-D_E.cjs.map → ValuerangebarWidget-xMsUfp1H.cjs.map} +1 -1
- package/dist/{VerticalWidget-CRmcpQBn.js → VerticalWidget-DJn02myf.js} +2 -2
- package/dist/{VerticalWidget-CRmcpQBn.js.map → VerticalWidget-DJn02myf.js.map} +1 -1
- package/dist/{VerticalWidget-YG3auPJa.cjs → VerticalWidget-DiW_FZuh.cjs} +2 -2
- package/dist/{VerticalWidget-YG3auPJa.cjs.map → VerticalWidget-DiW_FZuh.cjs.map} +1 -1
- package/dist/{VerticalboxWidget-C-qChjug.js → VerticalboxWidget-DHQMxtF3.js} +5 -5
- package/dist/{VerticalboxWidget-C-qChjug.js.map → VerticalboxWidget-DHQMxtF3.js.map} +1 -1
- package/dist/{VerticalboxWidget-DX8-gFay.cjs → VerticalboxWidget-miKFocA3.cjs} +2 -2
- package/dist/{VerticalboxWidget-DX8-gFay.cjs.map → VerticalboxWidget-miKFocA3.cjs.map} +1 -1
- package/dist/{Widget-EsyLQi_8.cjs → Widget-BMqF6Utz.cjs} +2 -2
- package/dist/{Widget-EsyLQi_8.cjs.map → Widget-BMqF6Utz.cjs.map} +1 -1
- package/dist/{Widget-CFEnOKms.js → Widget-CP2CtyUr.js} +2 -2
- package/dist/{Widget-CFEnOKms.js.map → Widget-CP2CtyUr.js.map} +1 -1
- package/dist/components.cjs +2 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +84 -76
- package/dist/components.js.map +1 -1
- package/dist/plugins.cjs +2 -2
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +116 -110
- package/dist/plugins.js.map +1 -1
- package/dist/tools/admin.cjs +1 -1
- package/dist/tools/admin.js +12 -12
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.js +2 -2
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.js +1 -1
- package/dist/tools/scriptrunner.cjs +3 -3
- package/dist/tools/scriptrunner.cjs.map +1 -1
- package/dist/tools/scriptrunner.js +14 -14
- package/dist/tools/scriptrunner.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 +2 -2
- package/dist/EventListDialog-Bniar26O.js.map +0 -1
- package/dist/EventListDialog-D_KXhGDO.cjs +0 -2
- package/dist/EventListDialog-D_KXhGDO.cjs.map +0 -1
- package/dist/Layout-BLADjt_A.cjs +0 -2
- package/dist/Openc3Screen-COi4u-9k.cjs +0 -5
- package/dist/Openc3Screen-COi4u-9k.cjs.map +0 -1
- package/dist/Openc3Screen-CtwGKfq-.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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
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
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -981,15 +981,15 @@
|
|
|
981
981
|
border-left-color: transparent!important;
|
|
982
982
|
top: -5px;
|
|
983
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)})}()}(uc)),uc.exports}var xx=bx(),hc={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)})}()}(hc)),hc.exports}kx();var dc={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
|
|
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
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)})}()}(dc)),dc.exports}Cx();var fc={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)})}()}(fc)),fc.exports}Sx();var pc={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==`
|
|
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
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
988
|
`+R+`
|
|
989
989
|
`+v,selection:[1,R.length,1,R.length]}:{text:`
|
|
990
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
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)})}()}(
|
|
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
993
|
background: #232323;
|
|
994
994
|
color: #E2E2E2
|
|
995
995
|
}
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
.ace-twilight .ace_indent-guide-active {
|
|
1120
1120
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
1121
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)})}()}(
|
|
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
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
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
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(`
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
animation: none;
|
|
1226
1226
|
}
|
|
1227
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)})}()}(mc)),mc.exports}$x();var vc={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=`
|
|
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
1229
|
|
|
1230
1230
|
/* ------------------------------------------------------------------------------------------
|
|
1231
1231
|
* Editor Search Form
|
|
@@ -1388,15 +1388,15 @@
|
|
|
1388
1388
|
padding: 0 8px;
|
|
1389
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
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)})}()}(vc)),vc.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:Tu}=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=Tu(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 cu(){const{caseless:c}=Kp(this)&&this||{},u={},e=(l,T)=>{const b=c&&jp(u,T)||T;Ua(u[b])&&Ua(l)?u[b]=cu(u[b],l):Ua(l)?u[b]=cu({},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&&Tu(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"&&Tu(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:cu,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 uu(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(uu)}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 uu(r)?!0:(u.append(Jd(a,n,b),p(r)),!1)}const i=[],s=Object.assign(y1,{defaultVisitor:g,convertValue:p,isVisitable:uu});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 Lu(c,u){this._pairs=[],c&&il(c,this,u)}const Jp=Lu.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 Lu(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:Lu,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"]},Eu=typeof window<"u"&&typeof document<"u",hu=typeof navigator=="object"&&navigator||void 0,S1=Eu&&(!hu||["ReactNative","NativeScript","NS"].indexOf(hu.product)<0),_1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",A1=Eu&&window.location.href||"http://localhost",$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Eu,hasStandardBrowserEnv:S1,hasStandardBrowserWebWorkerEnv:_1,navigator:hu,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
|
|
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 wc(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,du=sg&&ag(()=>_e.isReadableStream(new Response("").body)),qa={stream:du&&(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=du&&(g==="stream"||g==="response");if(du&&(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)}}),fu={http:m1,xhr:K1,fetch:tk};_e.forEach(fu,(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=fu[(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 :
|
|
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
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:
|
|
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 pu={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(pu).forEach(([c,u])=>{pu[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=pu;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,Ru=Rn.create({baseURL:location.origin,timeout:6e4,params:{}});Ru.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),Ru({method:c,url:u,data:e,params:l,headers:T,onUploadProgress:C})},gu={Accept:"application/json"},hf={...gu,"Content-Type":"application/json"},ak={get:function(c,{params:u,headers:e=gu,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=gu,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 Iu 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 Iu)):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 Ou extends fg{constructor(u,e){super(e),this.channelId=u}set channelId(u){this._channelId=u}get channelId(){return this._channelId}}$r(Ou,"identifier","__ghost__");const wk="$pubsub";class mu extends fg{async perform(u,e){if(u.startsWith("$"))return super.perform(u,e);throw Error("not implemented")}}$r(mu,"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 mu({stream_name:c});return this.subscribe(u)}streamFromSigned(c){let u=new mu({signed_stream_name:c});return this.subscribe(u)}subscribeTo(c,u){let e,l;return typeof c=="string"&&(l=c,c=Ou),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 Iu&&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 Ou{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 Iu?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 vu{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 vu(this,`Not enough parameters for ${this.keyword}.`,l,this.url);if(e&&this.parameters[e]!==void 0)throw new vu(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(`
|
|
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
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
|
|
1399
|
-
`,r:"\r",t:" "},sC=92,aC=123,vf=125,lC=91,yf=93,cC=32,uC=10,hC=9,dC=13,xc=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 bg(c)?parseFloat(c):BigInt(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 Ru.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.name="Unknown error",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 kc={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),`
|
|
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
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
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
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=`
|
|
@@ -1460,16 +1460,16 @@
|
|
|
1460
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
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
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)})}()}(
|
|
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
1464
|
* @license
|
|
1465
1465
|
* Lodash <https://lodash.com/>
|
|
1466
1466
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1467
1467
|
* Released under MIT license <https://lodash.com/license>
|
|
1468
1468
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1469
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,vl=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,yl=Io(Se,"DataView"),Ms=Io(Se,"Map"),wl=Io(Se,"Promise"),ts=Io(Se,"Set"),Ts=Io(Se,"WeakMap"),Ls=Io(Tt,"create"),da=Ts&&new Ts,ns={},Am=Oo(yl),$m=Oo(Ms),Mm=Oo(wl),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[Ll(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 bl(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 xl(t,d){for(var $=-1,z=d.length,q=xe(z),ee=t==null;++$<z;)q[$]=ee?e:tc(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?Hl:Bl: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(Cl,!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 kl=Bh(),gh=Bh(!0);function kr(t,d){return t&&kl(t,d,Gn)}function Cl(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 Sl(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 _l(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 Al(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 $l(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 Ml(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=Ul(t);return d.length==1&&d[0][2]?td(d[0][0],d[0][1]):function($){return $===t||Al($,t,d)}}function kh(t,d){return jl(t)&&ed(d)?td(Sr(t),d):function($){var z=tc($,t);return z===e&&z===d?nc($,t):Ns(d,z,n|a)}}function ya(t,d,$,z,q){t!==d&&kl(d,function(ee,ae){if(q||(q=new lr),vn(ee))xv(t,d,ae,$,ya,z,q);else{var fe=z?z(Gl(t,ae),ee,ae+"",t,d,q):e;fe===e&&(fe=ee),bl(t,ae,fe)}},ki)}function xv(t,d,$,z,q,ee,ae){var fe=Gl(t,$),ve=Gl(d,$),Le=ae.get(ve);if(Le){bl(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)),bl(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 nc(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 Tl(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):Il(t,q)}}return t}function Ll(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 El(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 ql(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:rc(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 Rl(t,d,Ci,$)}function Rl(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==-1/0?"-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 Il(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 Ol(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 Nl(t){return Ln(t)?t:[]}function Dl(t){return typeof t=="function"?t:Ci}function ho(t,d){return kt(t)?t:jl(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 Fl(t){var d=new t.constructor(t.byteLength);return new sa(d).set(new sa(t)),d}function Ev(t,d){var $=d?Fl(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?Fl(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,Vl(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"?zl(ee):e;ve&&Kl(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&&Kl(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 Pl(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 $?El(d,t):d;var z=El(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 Kl(t)&&rd(ft,Lt),ft.placeholder=z,od(ft,t,d)}function Wl(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)}:ac;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:zl(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=Bl(t),ve=fe.length,Le=Bl(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 ql(nd(t,e,hd),t+"")}function Bl(t){return mh(t,Gn,Vl)}function Hl(t){return mh(t,ki,Zh)}var zl=da?function(t){return da.get(t)}:ac;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||oc;return t=t===oc?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 Ul(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 Vl=vl?function(t){return t==null?[]:(t=Tt(t),ri(vl(t),function(d){return ih.call(t,d)}))}:lc,Zh=vl?function(t){for(var d=[];t;)A(d,Vl(t)),t=aa(t);return d}:lc,si=di;(yl&&si(new yl(new ArrayBuffer(1)))!=qe||Ms&&si(new Ms)!=et||wl&&si(wl.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 Fl(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,`{
|
|
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==-1/0?"-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
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 jl(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 Kl(t){var d=Aa(t),$=X[d];if(typeof $!="function"||!(d in Ft.prototype))return!1;if(t===$)return!0;var z=zl($);return!!z&&t===z[0]}function Jv(t){return!!eh&&eh in t}var Xv=$o?jr:cc;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 Gl(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)},ql=sd($v);function od(t,d,$){var z=d+"";return ql(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=Ll($,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==-1/0?"-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,Nl);return d.length&&d[0]===t[0]?_l(d):[]}),Cy=Rt(function(t){var d=Zi(t),$=f(t,Nl);return d===Zi($)?d=e:$.pop(),$.length&&$[0]===t[0]?_l($,ht(d,2)):[]}),Sy=Rt(function(t){var d=Zi(t),$=f(t,Nl);return d=typeof d=="function"?d:e,d&&$.pop(),$.length&&$[0]===t[0]?_l($,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?Tl(t,d):t}function Ty(t,d,$){return t&&t.length&&d&&d.length?Tl(t,d,ht($,2)):t}function Ly(t,d,$){return t&&t.length&&d&&d.length?Tl(t,d,e,$):t}var Ey=Ur(function(t,d){var $=t==null?0:t.length,z=xl(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 Yl(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 Rl(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 Rl(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 Ql(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 $=Ql(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 Ol(ri(t,Ln))}),tw=Rt(function(t){var d=Zi(t);return Ln(d)&&(d=e),Ol(ri(t,Ln),ht(d,2))}),nw=Rt(function(t){var d=Zi(t);return d=typeof d=="function"?d:e,Ol(ri(t,Ln),e,d)}),iw=Rt(Ql);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 xl(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:[Yl],thisArg:e}),new qi(d,this.__chain__)}return this.thru(Yl)}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:$l(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 Zl=Rt(function(t,d,$){var z=h;if($.length){var q=Pe($,ss(Zl));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)})}),Jl=Rt(function(t,d){var $=Pe(d,ss(Jl));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 Jl(Dl(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(Sl),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||cc,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!$l(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 Xl(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||Al(t,d,Ul(d))}function pb(t,d,$){return $=typeof $=="function"?$:e,Al(t,d,Ul(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 ec=Ti?rt(Ti):vv;function wb(t){return _d(t)&&t>=-9007199254740991&&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(Ml),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===-1/0){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),-9007199254740991,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(xl);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),Cl)}function Ob(t,d){return t==null?t:kl(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&&Cl(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 tc(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 nc(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]=$},rc(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):$l(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,Hl(t),$),z&&($=Yi($,s|o|r,Hv));for(var q=d.length;q--;)Il($,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(Hl(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:Il(t,d)}function t0(t,d,$){return t==null?t:Lh(t,d,Dl($))}function n0(t,d,$,z){return z=typeof z=="function"?z:e,t==null?t:Lh(t,d,Dl($),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 Ll(t,d)}var a0=os(function(t,d,$){return d=d.toLowerCase(),t+($?Fd(d):d)});function Fd(t){return ic(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),El(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&&!ec(d))&&(d=Ii(d),!d&&oe(t))?fo(xt(t),0,$):t.split(d,$)):[]}var k0=os(function(t,d,$){return t+($?" ":"")+ic(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+"]")+`
|
|
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==-1/0?"-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>=-9007199254740991&&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===-1/0){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),-9007199254740991,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
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
1474
|
__e(`+Ot+`) +
|
|
1475
1475
|
'`),pi&&(ve=!0,Ne+=`';
|
|
@@ -1486,12 +1486,12 @@ __p += '`),Bt&&(Ne+=`' +
|
|
|
1486
1486
|
function print() { __p += __j.call(arguments, '') }
|
|
1487
1487
|
`:`;
|
|
1488
1488
|
`)+Ne+`return __p
|
|
1489
|
-
}`;var Lt=Bd(function(){return Ct(ee,tt+"return "+Ne).apply(e,ae)});if(Lt.source=Ne,Xl(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),ec(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()}),ic=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 Xl($)?$:new ot($)}}),I0=Ur(function(t,d){return Zn(d,function($){$=Sr($),Hr(t,$,Zl(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 rc(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 oc(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 sc(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 ac(){}function V0(t){return t=At(t),Rt(function(d){return Ch(d,t)})}var j0=Pl(f),K0=Pl(Jn),G0=Pl(W);function Hd(t){return jl(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 lc(){return[]}function cc(){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=Wl("ceil"),ox=Ca(function(t,d){return t/d},1),sx=Wl("floor");function ax(t){return t&&t.length?ma(t,Ci,Sl):e}function lx(t,d){return t&&t.length?ma(t,ht(d,2),Sl):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,Ml):e}function dx(t,d){return t&&t.length?ma(t,ht(d,2),Ml):e}var fx=Ca(function(t,d){return t*d},1),px=Wl("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=Zl,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=rc,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=oc,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=sc,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=Jl,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=Yl,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=Ql,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,sc(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=tc,X.gt=ib,X.gte=rb,X.has=Bb,X.hasIn=nc,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=Xl,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=ec,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=lc,X.stubFalse=cc,X.stubObject=Z0,X.stubString=J0,X.stubTrue=X0,X.multiply=fx,X.nth=$y,X.noConflict=U0,X.noop=ac,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=ic,X.each=md,X.eachRight=vd,X.first=dd,sc(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"],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=`
|
|
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
1490
|
`;this.filterText!==null&&(l+=`
|
|
1491
1491
|
`),this.displayText=c.join(l),this.rows=this.displayText.split(`
|
|
1492
1492
|
`).length},matchesSearch:function(c){return this.filterText===null?c:c.split(`
|
|
1493
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-1c33df47"]]);var Cc={exports:{}},kf;function NC(){return kf||(kf=1,function(c,u){(function(){ace.require(["ace/mode/text"],function(e){c&&(c.exports=e)})})()}(Cc)),Cc.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",Sc="right",Wu="#000",_f=Wu+"0",_c="mousemove",Af="mousedown",Ac="mouseup",$f="mouseenter",Mf="mouseleave",Tf="dblclick",tS="resize",nS="scroll",Lf="change",Ya="dppxchange",Bu="--",ws=typeof window<"u",wu=ws?document:null,ds=ws?window:null,iS=ws?navigator:null;let qt,Ba;function bu(){let c=devicePixelRatio;qt!=c&&(qt=c,Ba&&ku(Lf,Ba,bu),Ba=matchMedia(`(min-resolution: ${qt-.001}dppx) and (max-resolution: ${qt+.001}dppx)`),Uo(Lf,Ba,bu),ds.dispatchEvent(new CustomEvent(Ya)))}function Fi(c,u){if(u!=null){let e=c.classList;!e.contains(u)&&e.add(u)}}function xu(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=wu.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):xu(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 ku(c,u,e,l){u.removeEventListener(c,e,Hu)}ws&&bu();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,ll=_g(Ag),oS=_g($g);function sS(c,u,e,l=0,T=!1){let b=T?oS:ll,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 cl(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=ul(u,o)),[c,u]}function zu(c,u,e,l){let T=cl(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 hl(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(ul(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,$c=(c,u=1)=>Wi.asinh(c/u),nn=1/0;function Wf(c){return(qr((c^c>>31)-(c>>31))|0)+1}function Cu(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 ul(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 hl(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=hl){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&&(hl(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=Mc(_.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(Mc(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=Mc(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+ul(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 Mc(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 Tc=[0,0];function ZS(c,u,e){return Tc[0]=u,Tc[1]=e,Tc}function za(c,u,e,l=!0){return T=>{T.button==0&&(!l||T.target==u)&&e(T)}}function Lc(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:Lc,mouseleave:Lc,mouseenter:Lc},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(ul(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 Su(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?Su(c,u,gi(p,e),l,T):[p],i=l>=0&&e<=0?[0]:[];return(e<-p?Su(c,u,gi(p,-l),-e,T):[p]).reverse().map(o=>-o).concat(i,g)}const Qg=/./,r_=/[12357]/,o_=/[125]/,Jf=/1/,_u=(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 _u(u.slice().reverse(),C.distr,s,er(g/o)).reverse()}return _u(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?_u(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,Au=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,fl,bs,gl,tm,im):e(T,p,g,i,s,m,h,r,o,a,n,pl,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 dl(c,u,e,l,T,b){let w=null;if(c.length>0){w=new Path2D;const C=u==0?gl: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?fl:pl,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 fl=(c,u,e)=>{c.moveTo(u,e)},pl=(c,u,e)=>{c.moveTo(e,u)},bs=(c,u,e)=>{c.lineTo(u,e)},xs=(c,u,e)=>{c.lineTo(e,u)},gl=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=fl,M=tm):(E=pl,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;gl(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|Au}})}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]=ll(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=dl(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]=ll(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=dl(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?gl: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(Cu(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]=ll(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?(_=fl,R=bs,v=im):(_=pl,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=dl(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 $u=new Set;function sp(){for(let c of $u)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)=>Mu(b,w,u,e))}function S_(c,u){return c.map((e,l)=>l==0?{}:Dn({},u,e))}function Mu(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:cl(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=>$c(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&&hl(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)&&(ku(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?Mu(j,Z,Zf,np):Mu(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?Su: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]=cl(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?$c(be.min,be.asinh):Me==100?be.fwd(be.min):be.min,be._max=Me==3?qr(be.max):Me==4?$c(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=Cu(an-1,0,Mn-1),re=Cu(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|Au;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&Au?(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?Sc:Wt>0?us:Wt<0?Sc:oe==0?"center":re==3?Sc: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),xu(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&&xu(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(_c,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==_c)&&((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(Ac,wu,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(Ac,wu),vt(Ac,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(_c,n,H),sn($f,n,j=>{nr(j),W(!1)}),sn(Mf,n,Ie),sn(Tf,n,Ee),$u.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),$u.delete(l),qn.clear(),ku(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=cl;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=dl;let c=li.paths={points:om};c.linear=am,c.stepped=v_,c.bars=y_,c.spline=b_}var Ec,cp;function E_(){return cp||(cp=1,Ec=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}),Ec}var R_=E_();const I_=Ja(R_);var Rc,up;function O_(){if(up)return Rc;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 Rc=c,Rc}var Ic,hp;function N_(){if(hp)return Ic;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 Ic=u,Ic}var Oc,dp;function hm(){if(dp)return Oc;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 Oc=p,Oc}var Nc,fp;function D_(){if(fp)return Nc;fp=1;function c(u){return u.split("")}return Nc=c,Nc}var Dc,pp;function F_(){if(pp)return Dc;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 Dc=M,Dc}var Fc,gp;function P_(){if(gp)return Fc;gp=1;var c=D_(),u=hm(),e=F_();function l(T){return u(T)?e(T):c(T)}return Fc=l,Fc}var Pc,mp;function W_(){if(mp)return Pc;mp=1;var c=typeof mo=="object"&&mo&&mo.Object===Object&&mo;return Pc=c,Pc}var Wc,vp;function B_(){if(vp)return Wc;vp=1;var c=W_(),u=typeof self=="object"&&self&&self.Object===Object&&self,e=c||u||Function("return this")();return Wc=e,Wc}var Bc,yp;function Xu(){if(yp)return Bc;yp=1;var c=B_(),u=c.Symbol;return Bc=u,Bc}var Hc,wp;function H_(){if(wp)return Hc;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 Hc=c,Hc}var zc,bp;function z_(){if(bp)return zc;bp=1;var c=Array.isArray;return zc=c,zc}var Uc,xp;function U_(){if(xp)return Uc;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 Uc=b,Uc}var Vc,kp;function V_(){if(kp)return Vc;kp=1;var c=Object.prototype,u=c.toString;function e(l){return u.call(l)}return Vc=e,Vc}var jc,Cp;function j_(){if(Cp)return jc;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 jc=w,jc}var Kc,Sp;function K_(){if(Sp)return Kc;Sp=1;function c(u){return u!=null&&typeof u=="object"}return Kc=c,Kc}var Gc,_p;function G_(){if(_p)return Gc;_p=1;var c=j_(),u=K_(),e="[object Symbol]";function l(T){return typeof T=="symbol"||u(T)&&c(T)==e}return Gc=l,Gc}var qc,Ap;function q_(){if(Ap)return qc;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 qc=w,qc}var Yc,$p;function ml(){if($p)return Yc;$p=1;var c=q_();function u(e){return e==null?"":c(e)}return Yc=u,Yc}var Qc,Mp;function Y_(){if(Mp)return Qc;Mp=1;var c=N_(),u=hm(),e=P_(),l=ml();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 Qc=T,Qc}var Zc,Tp;function dm(){if(Tp)return Zc;Tp=1;var c=Y_(),u=c("toUpperCase");return Zc=u,Zc}var Q_=dm();const Z_=Ja(Q_);var Jc,Lp;function J_(){if(Lp)return Jc;Lp=1;var c=ml(),u=dm();function e(l){return u(c(l).toLowerCase())}return Jc=e,Jc}var Xc,Ep;function X_(){if(Ep)return Xc;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 Xc=c,Xc}var eu,Rp;function eA(){if(Rp)return eu;Rp=1;function c(u){return function(e){return u==null?void 0:u[e]}}return eu=c,eu}var tu,Ip;function tA(){if(Ip)return tu;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 tu=e,tu}var nu,Op;function nA(){if(Op)return nu;Op=1;var c=tA(),u=ml(),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 nu=g,nu}var iu,Np;function iA(){if(Np)return iu;Np=1;var c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function u(e){return e.match(c)||[]}return iu=u,iu}var ru,Dp;function rA(){if(Dp)return ru;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 ru=u,ru}var ou,Fp;function oA(){if(Fp)return ou;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 ou=ce,ou}var su,Pp;function sA(){if(Pp)return su;Pp=1;var c=iA(),u=rA(),e=ml(),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 su=T,su}var au,Wp;function aA(){if(Wp)return au;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 au=b,au}var lu,Bp;function lA(){if(Bp)return lu;Bp=1;var c=J_(),u=aA(),e=u(function(l,T,b){return T=T.toLowerCase(),l+(b?c(T):T)});return lu=e,lu}var cA=lA();const uA=Ja(cA),hA=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayWidget-Ba-YDfZB.cjs")),"./ArrayplotWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayplotWidget-Ckm4lmSc.cjs")),"./BlockWidget.vue":()=>Promise.resolve().then(()=>require("./BlockWidget-DRB-TDL_.cjs")),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>require("./ButtonWidget-yJ70adEU.cjs")),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasWidget-DXkxnt1x.cjs")),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasdotWidget-Bi3nZh7g.cjs")),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimageWidget-C-aBl-by.cjs")),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimagevalueWidget-DAbbV-LB.cjs")),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelWidget-82bf_Awf.cjs")),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelvalueWidget-DgDzwLdi.cjs")),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslineWidget-BRRPuuqS.cjs")),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslinevalueWidget-BYjWr2gq.cjs")),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>require("./CheckbuttonWidget-DkoFFTcM.cjs")),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>require("./ComboboxWidget-Dq28F4bs.cjs")),"./DateWidget.vue":()=>Promise.resolve().then(()=>require("./DateWidget-DCayVS3o.cjs")),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>require("./DynamicWidget-BWEVCUfd.cjs")),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>require("./FormatvalueWidget-CDh1rF5P.cjs")),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalWidget-Bix4q7It.cjs")),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalboxWidget-B8a4-h2J.cjs")),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontallineWidget-BD6dqVhE.cjs")),"./IframeWidget.vue":()=>Promise.resolve().then(()=>require("./IframeWidget-DL_CET3B.cjs")),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>require("./ImageviewerWidget-_0YopZ1s.cjs")),"./LabelWidget.vue":()=>Promise.resolve().then(()=>require("./LabelWidget-DkZvBxYg.cjs")),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>require("./LabelledWidget-D7nm73kj.cjs")),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelprogressbarWidget-DY0Xd2c2.cjs")),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>require("./LabelsparklineWidget-DZ5-iEcK.cjs")),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvalueWidget-D-u38nLh.cjs")),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluedescWidget-DMuBCLM8.cjs")),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitsbarWidget-BY212bgc.cjs")),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitscolumnWidget-DVLGU6ja.cjs")),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluerangebarWidget-CA_7kTS2.cjs")),"./LedWidget.vue":()=>Promise.resolve().then(()=>require("./LedWidget-BoZKOBZg.cjs")),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LimitsbarWidget-CyHbbNx3.cjs")),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolorWidget-CsuRoqxm.cjs")),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolumnWidget-Cr1qFT8M.cjs")),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>require("./LinegraphWidget-Cw9vua8K.cjs")),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>require("./MatrixbycolumnsWidget-Digh2kY7.cjs")),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>require("./ProgressbarWidget-CdOWGViG.cjs")),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>require("./RadiobuttonWidget-5t4ofYx3.cjs")),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>require("./RadiogroupWidget-emxyymRZ.cjs")),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>require("./RangebarWidget-CLMKfbiT.cjs")),"./RollupWidget.vue":()=>Promise.resolve().then(()=>require("./RollupWidget-CHKUdXMx.cjs")),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>require("./ScrollwindowWidget-CVc9EXW2.cjs")),"./SignalWidget.vue":()=>Promise.resolve().then(()=>require("./SignalWidget-DpNUpQNW.cjs")),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>require("./SpacerWidget-CHuv4qDR.cjs")),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>require("./SparklineWidget-qWQGTMwn.cjs")),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>require("./TabbookWidget-C4jdzkQl.cjs")),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>require("./TextboxWidget-Cm7-yWTZ.cjs")),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>require("./TextfieldWidget-Bfk2NPtC.cjs")),"./TimeWidget.vue":()=>Promise.resolve().then(()=>require("./TimeWidget-BqkZJdg7.cjs")),"./TitleWidget.vue":()=>Promise.resolve().then(()=>require("./TitleWidget-DW0hJ0FE.cjs")),"./ValueWidget.vue":()=>Promise.resolve().then(()=>require("./ValueWidget-CPuSUgn9.cjs")),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitsbarWidget-CNdyobcf.cjs")),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitscolumnWidget-Db0K4OjQ.cjs")),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuerangebarWidget-DAEr-D_E.cjs")),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalWidget-YG3auPJa.cjs")),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalboxWidget-DX8-gFay.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=vu;exports.pi=_C;exports.uPlot=li;
|
|
1497
|
-
//# sourceMappingURL=UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-
|
|
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-F8xL9dRA.cjs")),"./ArrayplotWidget.vue":()=>Promise.resolve().then(()=>require("./ArrayplotWidget-D6_PhmMa.cjs")),"./BlockWidget.vue":()=>Promise.resolve().then(()=>require("./BlockWidget-CbuJPszc.cjs")),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>require("./ButtonWidget-DB464bRo.cjs")),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasWidget-D4iIs915.cjs")),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasdotWidget-DG6qDFlh.cjs")),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimageWidget-BJhOpZ3q.cjs")),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvasimagevalueWidget-D-4P_8Gh.cjs")),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelWidget-1OS-a3F4.cjs")),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslabelvalueWidget-C3vVvK2b.cjs")),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslineWidget-Cr8MsDUl.cjs")),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>require("./CanvaslinevalueWidget-DRowns-E.cjs")),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>require("./CheckbuttonWidget-Cy9VUV7t.cjs")),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>require("./ComboboxWidget-DbQwLEJY.cjs")),"./DateWidget.vue":()=>Promise.resolve().then(()=>require("./DateWidget-Cv3Uzbyr.cjs")),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>require("./DynamicWidget-BWEVCUfd.cjs")),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>require("./FormatvalueWidget-VYVvrtya.cjs")),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalWidget-wn07kYWX.cjs")),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontalboxWidget-BQLGULQ-.cjs")),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>require("./HorizontallineWidget-CfrV_K28.cjs")),"./IframeWidget.vue":()=>Promise.resolve().then(()=>require("./IframeWidget-DeNDRzqB.cjs")),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>require("./ImageviewerWidget-CV76ouHz.cjs")),"./LabelWidget.vue":()=>Promise.resolve().then(()=>require("./LabelWidget-BobQDS5m.cjs")),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>require("./LabelledWidget-Dp4fjHpu.cjs")),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelprogressbarWidget-1BF_rNsT.cjs")),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>require("./LabelsparklineWidget-DgzZAWfI.cjs")),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvalueWidget-T6FC3w0l.cjs")),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluedescWidget-Cb7UqEa-.cjs")),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitsbarWidget-Bi43GWx7.cjs")),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluelimitscolumnWidget-CtTEiWPR.cjs")),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./LabelvaluerangebarWidget-C5w7sRFw.cjs")),"./LedWidget.vue":()=>Promise.resolve().then(()=>require("./LedWidget-ByRkD33m.cjs")),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./LimitsbarWidget-DAZA6YDH.cjs")),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolorWidget-ECUDD3Yg.cjs")),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./LimitscolumnWidget-DrsRK8l_.cjs")),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>require("./LinegraphWidget-BK03y7ev.cjs")),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>require("./MatrixbycolumnsWidget-Cl1-0jWU.cjs")),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>require("./ProgressbarWidget-giMKlGsU.cjs")),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>require("./RadiobuttonWidget-CDPV19UM.cjs")),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>require("./RadiogroupWidget-DPYowBpl.cjs")),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>require("./RangebarWidget-DtjrqC3F.cjs")),"./RollupWidget.vue":()=>Promise.resolve().then(()=>require("./RollupWidget-Dw2GIsBR.cjs")),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>require("./ScrollwindowWidget-C79nSa0g.cjs")),"./SignalWidget.vue":()=>Promise.resolve().then(()=>require("./SignalWidget-sAMVlO9e.cjs")),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>require("./SpacerWidget-C5x4sFAQ.cjs")),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>require("./SparklineWidget-CfA39olv.cjs")),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>require("./TabbookWidget-BrPTbXrU.cjs")),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>require("./TextboxWidget-Lw5glGxY.cjs")),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>require("./TextfieldWidget-CTsiRDIJ.cjs")),"./TimeWidget.vue":()=>Promise.resolve().then(()=>require("./TimeWidget-CB1jqQSZ.cjs")),"./TitleWidget.vue":()=>Promise.resolve().then(()=>require("./TitleWidget-E91xUafI.cjs")),"./ValueWidget.vue":()=>Promise.resolve().then(()=>require("./ValueWidget-CN-B9LDi.cjs")),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitsbarWidget-BLHVD0qM.cjs")),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>require("./ValuelimitscolumnWidget-DqGxHe2k.cjs")),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>require("./ValuerangebarWidget-xMsUfp1H.cjs")),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalWidget-DiW_FZuh.cjs")),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>require("./VerticalboxWidget-miKFocA3.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-CHXJm9wA.cjs.map
|