@abtnode/webapp 1.16.29-beta-bb5685f8 → 1.16.29-beta-44e63d18
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-C0jlH_zP.js → Add-CtWL6e1q.js} +1 -1
- package/dist/assets/{ArrowDropDown-DrehtX2f.js → ArrowDropDown-DV5W7OwL.js} +1 -1
- package/dist/assets/{Autocomplete-CdIGu-2l.js → Autocomplete-DyU5KK53.js} +1 -1
- package/dist/assets/{Breadcrumbs-Oi4z-7JU.js → Breadcrumbs-BMUTpqOP.js} +1 -1
- package/dist/assets/{ButtonGroup-NvrTYf1s.js → ButtonGroup-CkKt07uc.js} +1 -1
- package/dist/assets/{CheckCircle-uTfAh2GX.js → CheckCircle-CstzeHGf.js} +1 -1
- package/dist/assets/{ChevronLeft-C-HoTf-Q.js → ChevronLeft-ChWv_0Iv.js} +1 -1
- package/dist/assets/{ChevronRight-c5xZzIfK.js → ChevronRight-B2EtVjwt.js} +1 -1
- package/dist/assets/{Close-C5A1sroQ.js → Close-CyRwkk-q.js} +1 -1
- package/dist/assets/Delete-DvKqIX20.js +1 -0
- package/dist/assets/{DeleteOutline-DuzabIUt.js → DeleteOutline-CddvKtlT.js} +1 -1
- package/dist/assets/DeleteOutline-DZhkyDfV.js +1 -0
- package/dist/assets/{Done-MfHSISFV.js → Done-BQwAUEUo.js} +1 -1
- package/dist/assets/{Edit-Cn_G48ZU.js → Edit-CARh1zds.js} +1 -1
- package/dist/assets/{EditIcon-B1ovGBjD.js → EditIcon-C_npOrmv.js} +1 -1
- package/dist/assets/{FilterList-DiA-6Il8.js → FilterList-BvE0UAo0.js} +5 -5
- package/dist/assets/{Google-DQdWmIOC.js → Google-ZjI0DrLI.js} +1 -1
- package/dist/assets/{Https-BRpH0Ae8.js → Https-6N1TcHuj.js} +1 -1
- package/dist/assets/{InputAdornment-CDb1Pg-S.js → InputAdornment-7qAmlR7q.js} +1 -1
- package/dist/assets/{InputLabel-Xa0HFZxn.js → InputLabel-BTEO1M40.js} +1 -1
- package/dist/assets/{LastPage-BtCi2wuv.js → LastPage-GiOUS0-i.js} +1 -1
- package/dist/assets/{Launch-BRBdnw92.js → Launch-BNP89Oc8.js} +1 -1
- package/dist/assets/{Link-B8edwUNQ.js → Link-DPfyUdIn.js} +1 -1
- package/dist/assets/{LoadingButton-UpGMfSHA.js → LoadingButton-DQPvdwNz.js} +1 -1
- package/dist/assets/{LockIcon-Bs5dBhg9.js → LockIcon-DsRpj_gz.js} +1 -1
- package/dist/assets/{Loop-QRcaFYyu.js → Loop-CqukocCd.js} +1 -1
- package/dist/assets/{MoreVert-0x6ZKOOm.js → MoreVert-dIXJT0E2.js} +1 -1
- package/dist/assets/{Pagination-BWwDGBkP.js → Pagination-Xjpbun1V.js} +1 -1
- package/dist/assets/{Public-DBy7o1UF.js → Public-jBeoVLdm.js} +1 -1
- package/dist/assets/{SchemaReference.es-p0gT2gqO.js → SchemaReference.es-DmsnLofb.js} +1 -1
- package/dist/assets/{Search-DwG5nouB.js → Search-CXF_z21D.js} +1 -1
- package/dist/assets/{Select-CjUz8jvK.js → Select-Ck-rwnxI.js} +2 -2
- package/dist/assets/{Skeleton-CDB0GyGY.js → Skeleton-bh5z66KF.js} +5 -5
- package/dist/assets/{Slider-DwYIlYBn.js → Slider-mP-9Rabl.js} +1 -1
- package/dist/assets/{Stepper-antHQYRF.js → Stepper-3wmaNEG9.js} +1 -1
- package/dist/assets/{TextField-WEzwgjP0.js → TextField-Cb0I13kb.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-dJuSsWUY.js → ToggleButtonGroup-GwWpjRQx.js} +1 -1
- package/dist/assets/{ViewList-BAMGdQxk.js → ViewList-Bf6MkAgw.js} +1 -1
- package/dist/assets/{actions-BbcoFZjT.js → actions-D2Nr19i-.js} +1 -1
- package/dist/assets/actions-D4SIeJQs.js +11 -0
- package/dist/assets/{agreement-CiDOtCXU.js → agreement-B52xwcRE.js} +1 -1
- package/dist/assets/api-BkA5hx89.js +1 -0
- package/dist/assets/app-avatar-ClIQjaP-.js +1 -0
- package/dist/assets/ar-DdaiKEoW.js +1 -0
- package/dist/assets/{audit-logs-C-4-t6rX.js → audit-logs-CAczoYFX.js} +1 -1
- package/dist/assets/blocklet-DbOAUQG9.js +1 -0
- package/dist/assets/{brace-fold.es-CGT1cM_X.js → brace-fold.es-D4FLzACD.js} +1 -1
- package/dist/assets/{bundle-avatar-BRoQ90__.js → bundle-avatar-CGsU-HbI.js} +1 -1
- package/dist/assets/{chart-DnmL96Rh.js → chart-og0vxN0J.js} +2 -2
- package/dist/assets/{click-to-copy-Pr-Zbrif.js → click-to-copy-DKenG9LX.js} +1 -1
- package/dist/assets/{closebrackets.es-DsNYy4i3.js → closebrackets.es-B9xGBc1l.js} +1 -1
- package/dist/assets/{codemirror.es-DwAzghgf.js → codemirror.es-DnfFbgQm.js} +1 -1
- package/dist/assets/{comment.es-DhPl6sms.js → comment.es-DcJgW-0Z.js} +1 -1
- package/dist/assets/{config-navigation-DAD-pXS6.js → config-navigation-CrhKH9Mi.js} +1 -1
- package/dist/assets/de-PoTDtu-y.js +1 -0
- package/dist/assets/{delete-confirm-C2q7Vvj-.js → delete-confirm-DX-XHcl9.js} +1 -1
- package/dist/assets/{detail-BTV64Agz.js → detail-ADHPCJ2i.js} +3 -3
- package/dist/assets/{dialog.es-Bbrn4b99.js → dialog.es-9xd4UJpC.js} +1 -1
- package/dist/assets/{download-B9hXOuXD.js → download-Bg-C4aNR.js} +5 -5
- package/dist/assets/es-D79-uip0.js +1 -0
- package/dist/assets/{foldgutter.es-BJubswZD.js → foldgutter.es-C7HbANvK.js} +1 -1
- package/dist/assets/fr-Dgc_te8c.js +1 -0
- package/dist/assets/getValidReactChildren-ClGStIXY.js +1 -0
- package/dist/assets/hi-BndsdrdI.js +1 -0
- package/dist/assets/{hint.es-C-RplnH-.js → hint.es-CG2lL-pn.js} +1 -1
- package/dist/assets/{hint.es2-CNgpWTT8.js → hint.es2-OvG49YiM.js} +1 -1
- package/dist/assets/id-8ozDjIcf.js +1 -0
- package/dist/assets/{iframe-z1F3R-br.js → iframe-xnXRzLO_.js} +1 -1
- package/dist/assets/{index-C_LsHXyQ.js → index-6AreGVDd.js} +1 -1
- package/dist/assets/index-AEn2e-Qa.js +288 -0
- package/dist/assets/{index-3GrPYR-0.js → index-B1TlfhV-.js} +1 -1
- package/dist/assets/{index-GDpPN-gh.js → index-B4dfyqei.js} +1 -1
- package/dist/assets/{index-DOduirD-.js → index-B97h6iDo.js} +1 -1
- package/dist/assets/{index-P3idGO87.js → index-BC3241Rp.js} +1 -1
- package/dist/assets/index-BH4drhf0.js +11 -0
- package/dist/assets/index-BPdt_6z_.js +302 -0
- package/dist/assets/{index-BniMuAse.js → index-BSCYY90A.js} +1 -1
- package/dist/assets/{index-CdfKqS5O.js → index-BWIy-1uj.js} +1 -1
- package/dist/assets/{index-n9PgzTmH.js → index-BijlUenA.js} +1 -1
- package/dist/assets/index-Bj9cH_TN.js +58 -0
- package/dist/assets/index-BkRPFnv6.js +912 -0
- package/dist/assets/{index-BYxffRHK.js → index-Bz7VE6Lo.js} +1 -1
- package/dist/assets/{index-BKYjcIDk.js → index-C9Z58DAP.js} +1 -1
- package/dist/assets/{index-Amewrci5.js → index-CMXoms2z.js} +1 -1
- package/dist/assets/{index-7QaQQyyg.js → index-CTYM657U.js} +1 -1
- package/dist/assets/{index-Ddq4jr_U.js → index-CXlxAjbt.js} +207 -207
- package/dist/assets/index-CYxeq-8x.js +1 -0
- package/dist/assets/{index-BeATEtzy.js → index-Cb6algTF.js} +1 -1
- package/dist/assets/{index-D5kwWkvv.js → index-CbAiaQ3F.js} +9 -9
- package/dist/assets/{index-B-ejgY6o.js → index-Cj_T0gK-.js} +1 -1
- package/dist/assets/index-D2iFVes6.js +9 -0
- package/dist/assets/{index-eBDS1eXE.js → index-D4bAAnjl.js} +1 -1
- package/dist/assets/index-D7vDNazA.js +21 -0
- package/dist/assets/{index-DqaA-1j3.js → index-DLx4dGje.js} +8 -8
- package/dist/assets/{index-DcDo8U3a.js → index-DS3w7X0-.js} +1 -1
- package/dist/assets/{index-Bd27-rFC.js → index-DUQBU3A3.js} +1 -1
- package/dist/assets/{index-DdpOtHIy.js → index-DjIprepw.js} +1 -1
- package/dist/assets/{index-BDKa_BY3.js → index-Dk1ISn-T.js} +13 -13
- package/dist/assets/{index-nRTaNnQw.js → index-Dl1gEDFs.js} +1 -1
- package/dist/assets/{index-C2d2WkHe.js → index-DlMosniW.js} +4 -4
- package/dist/assets/{index-BuCL0HpY.js → index-Dr_hAN7j.js} +1 -1
- package/dist/assets/{index-BNcfbTbf.js → index-DsrFOtgZ.js} +1 -1
- package/dist/assets/{index-9TIeU8eV.js → index-Dw6RXFE7.js} +5 -5
- package/dist/assets/{index-DKWkPDvp.js → index-EsfHMeNl.js} +2 -2
- package/dist/assets/{index-KpJXpdYI.js → index-HICQj4hv.js} +1 -1
- package/dist/assets/{index-D-5tSEIi.js → index-KEDAiU9B.js} +8 -8
- package/dist/assets/{index-CgtLAydP.js → index-WTVw0qkz.js} +1 -1
- package/dist/assets/index-ZG7jWpak.js +1 -0
- package/dist/assets/{index-BJgIXaX1.js → index-g_cLscfb.js} +2 -2
- package/dist/assets/{index-qxGoRIpD.js → index-mnqV3Gg1.js} +1 -1
- package/dist/assets/{index-Dx7GtFO4.js → index-oDvmOv_q.js} +1 -1
- package/dist/assets/{index-HfmVdk5l.js → index-vr3RQzyc.js} +1 -1
- package/dist/assets/{index-DmQo-C54.js → index-yN879Jjz.js} +3 -3
- package/dist/assets/{index.es-mE5_ixZH.js → index.es-B4FMDGXT.js} +1 -1
- package/dist/assets/{index.esm-fGXhVzzq.js → index.esm-BSlWfzeP.js} +1 -1
- package/dist/assets/{info-addon.es-BvVuxhQQ.js → info-addon.es-CmaDZTYX.js} +1 -1
- package/dist/assets/{info.es-MM55o9RA.js → info.es-CqlQtF1J.js} +1 -1
- package/dist/assets/{install-from-url-D0Mot9As.js → install-from-url-D85z_2dU.js} +1 -1
- package/dist/assets/{invitation-DQ7pnJkF.js → invitation-CzzPC7mZ.js} +7 -7
- package/dist/assets/{is-path-prefix-equal-DMaJOeQN.js → is-path-prefix-equal-C8x0wuLM.js} +1 -1
- package/dist/assets/{isEqual-BQFT4gzY.js → isEqual-Bj8gRbdE.js} +1 -1
- package/dist/assets/{item-C7ih-Gxw.js → item-C2-H33Xq.js} +10 -10
- package/dist/assets/ja-CcDxF9sH.js +1 -0
- package/dist/assets/{javascript.es-BiK5ETle.js → javascript.es-Bt0QmNDU.js} +1 -1
- package/dist/assets/{jump-to-line.es-xLmM6XQj.js → jump-to-line.es-ByoMAIJw.js} +1 -1
- package/dist/assets/{jump.es-BK7Mo0mV.js → jump.es-CzKPCQ7C.js} +1 -1
- package/dist/assets/ko-Cru7cB1S.js +1 -0
- package/dist/assets/{line-DRJUtJJ7.js → line-CcgTKGkN.js} +4 -4
- package/dist/assets/{lint.es-CP-Ar6xo.js → lint.es-BcV0qHVh.js} +1 -1
- package/dist/assets/{lint.es2-WhVmGalN.js → lint.es2-B6j7CgmH.js} +1 -1
- package/dist/assets/{lint.es3-DAPaYml5.js → lint.es3-BI3Fnjz7.js} +1 -1
- package/dist/assets/{list-header-Dyo4DcEh.js → list-header-r2MrC8R7.js} +1 -1
- package/dist/assets/{log-Dg18Gkt2.js → log-B2SpWU1b.js} +1 -1
- package/dist/assets/{lottie-Bqw4aFON.js → lottie-DRE-Y506.js} +1 -1
- package/dist/assets/{matchbrackets.es-DVUMeePc.js → matchbrackets.es-CZaojsDe.js} +1 -1
- package/dist/assets/{memory-BLxwSKAa.js → memory-CLeQ9wj3.js} +1 -1
- package/dist/assets/{mode.es-DvtWXSbp.js → mode.es-BKxduziR.js} +1 -1
- package/dist/assets/{mode.es2-yGA392Ce.js → mode.es2-oYgJRmpO.js} +1 -1
- package/dist/assets/{mode.es3-bF1o4S_X.js → mode.es3-C6VF1A5H.js} +1 -1
- package/dist/assets/{onlineParser.es-D8oRG-7l.js → onlineParser.es-DjQRxwyL.js} +1 -1
- package/dist/assets/{overview-e30PAYmB.js → overview-RIv7gMxd.js} +2 -2
- package/dist/assets/pt-VKJn0kQ2.js +1 -0
- package/dist/assets/{react-Dixc1jm3.js → react-CtfovMFE.js} +3 -3
- package/dist/assets/{redux-Cw-bFLc5.js → redux-n2Ud4s7O.js} +1 -1
- package/dist/assets/{resource-dialog-C522yqNu.js → resource-dialog-CCYYxNig.js} +2 -2
- package/dist/assets/ru-D9UjS3E5.js +1 -0
- package/dist/assets/{runtime-D6nwOziK.js → runtime-DMZBU3fd.js} +1 -1
- package/dist/assets/{search.es-Cd0QD07l.js → search.es-ktV_4nJp.js} +1 -1
- package/dist/assets/{searchcursor.es-Bfc4-LPG.js → searchcursor.es-DsxyEmEP.js} +1 -1
- package/dist/assets/service-Q8384W7b.js +1 -0
- package/dist/assets/{shorten-label-DlpxUgCq.js → shorten-label-CrSVX0AE.js} +1 -1
- package/dist/assets/{show-hint.es-CN7yg_JP.js → show-hint.es-Br8tdMLx.js} +1 -1
- package/dist/assets/{slicedToArray-CiZnKyCy.js → slicedToArray-D1x3Qiie.js} +1 -1
- package/dist/assets/{spaces-Ca83-jCl.js → spaces-BE4uA08l.js} +1 -1
- package/dist/assets/{sublime.es-DgFQ3pas.js → sublime.es-CRbP9ior.js} +1 -1
- package/dist/assets/{switch-control-67XrThc4.js → switch-control-CtSMa6CL.js} +1 -1
- package/dist/assets/{table-icons-CRJe_3MP.js → table-icons-DmUMJib8.js} +2 -2
- package/dist/assets/{tag-DAjEEpCa.js → tag-Ch_ov9cM.js} +1 -1
- package/dist/assets/{team-CyhoyJ9a.js → team-Dg-GIRHy.js} +1 -1
- package/dist/assets/th-Bdgg14ky.js +1 -0
- package/dist/assets/toUpper-BB8gVufE.js +1 -0
- package/dist/assets/{traffic-DeHbNL-I.js → traffic-gisgr_Kk.js} +5 -5
- package/dist/assets/{url-evaluation-CbzEvBzd.js → url-evaluation-DS-mv3rc.js} +4 -4
- package/dist/assets/{url-join-DIhz1PVb.js → url-join-CRuOScTr.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DuQNnaZW.js → use-blocklet-info-for-connect-did-spaces-BbKNcBiN.js} +1 -1
- package/dist/assets/useLocalStorage-D6Mk1Qod.js +1 -0
- package/dist/assets/{util-9vU2zZs2.js → util-Chab15Qm.js} +1 -1
- package/dist/assets/vi-CluOygTN.js +1 -0
- package/dist/assets/{wait-container-oqsX_-iJ.js → wait-container-BPRlQTFB.js} +3 -3
- package/dist/assets/withStyles-D96lNAEp.js +1 -0
- package/dist/assets/wrap-locale-4RphGrjp.js +1 -0
- package/dist/assets/zh-D5LYaM2r.js +2 -0
- package/dist/assets/zh-tw-DWxvyN7A.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-BqtdSlNQ.js +0 -1
- package/dist/assets/DeleteOutline-DWh2h-xw.js +0 -1
- package/dist/assets/actions-Axwta7IP.js +0 -11
- package/dist/assets/api-DgUgGcaK.js +0 -1
- package/dist/assets/app-avatar-DSkk2bqr.js +0 -1
- package/dist/assets/ar-XdwzyXYH.js +0 -1
- package/dist/assets/blocklet-CbzARbti.js +0 -1
- package/dist/assets/de-BhcSSVI_.js +0 -1
- package/dist/assets/es-CE8qLgeN.js +0 -1
- package/dist/assets/fr-IbaIGGgw.js +0 -1
- package/dist/assets/getValidReactChildren-CqAGVe_y.js +0 -1
- package/dist/assets/hi-LDjl5wGc.js +0 -1
- package/dist/assets/id-DduzF3jK.js +0 -1
- package/dist/assets/index-C6YaOYlB.js +0 -11
- package/dist/assets/index-CSEZ2el2.js +0 -231
- package/dist/assets/index-CSOdd_os.js +0 -1
- package/dist/assets/index-Csvz8Imb.js +0 -9
- package/dist/assets/index-DkP2dxtw.js +0 -302
- package/dist/assets/index-DyoBof3A.js +0 -58
- package/dist/assets/index-WbmzOgUa.js +0 -21
- package/dist/assets/index-_bmSdh1U.js +0 -911
- package/dist/assets/ja-CQab-CnH.js +0 -1
- package/dist/assets/ko-BwMl9-je.js +0 -1
- package/dist/assets/pt-CKVSjj07.js +0 -1
- package/dist/assets/ru-BYWTtj7Q.js +0 -1
- package/dist/assets/service-DgYqociD.js +0 -1
- package/dist/assets/th-TJjvBNbR.js +0 -1
- package/dist/assets/toUpper-CYBV7cHO.js +0 -1
- package/dist/assets/useLocalStorage-BRZrZD2R.js +0 -1
- package/dist/assets/vi-DGeyTUFq.js +0 -1
- package/dist/assets/withStyles-CBM6laCD.js +0 -1
- package/dist/assets/wrap-locale-BFSbv413.js +0 -1
- package/dist/assets/zh-CPeMUIOU.js +0 -2
- package/dist/assets/zh-tw-C76dFi4k.js +0 -1
|
@@ -0,0 +1,912 @@
|
|
|
1
|
+
const __vite__fileDeps=["./codemirror.es-DnfFbgQm.js","./index-CXlxAjbt.js","./index-D7K8de1w.css","./show-hint.es-Br8tdMLx.js","./matchbrackets.es-CZaojsDe.js","./closebrackets.es-B9xGBc1l.js","./brace-fold.es-D4FLzACD.js","./foldgutter.es-C7HbANvK.js","./lint.es3-BI3Fnjz7.js","./searchcursor.es-DsxyEmEP.js","./jump-to-line.es-ByoMAIJw.js","./dialog.es-9xd4UJpC.js","./sublime.es-CRbP9ior.js","./javascript.es-Bt0QmNDU.js","./comment.es-DcJgW-0Z.js","./search.es-ktV_4nJp.js","./hint.es-CG2lL-pn.js","./Range.es-DaV7MD2W.js","./onlineParser.es-DjQRxwyL.js","./introspection.es-CPJcz6nz.js","./lint.es-BcV0qHVh.js","./info.es-CqlQtF1J.js","./SchemaReference.es-DmsnLofb.js","./forEachState.es-D8bf0zSr.js","./info-addon.es-CmaDZTYX.js","./jump.es-CzKPCQ7C.js","./mode.es-BKxduziR.js","./hint.es2-OvG49YiM.js","./lint.es2-B6j7CgmH.js","./mode.es3-C6VF1A5H.js","./mode.es2-oYgJRmpO.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
+
import{cw as ii,cT as nx,Y as J1,r as ie,bp as Xe,bc as L,cU as zv,cV as Hv,cW as rx,g as Z1,cA as ox,cX as ix,cY as sx,cZ as ax,c_ as cx,j as X1,f as lx,c$ as ux}from"./index-CXlxAjbt.js";var K1={};const fx=ii(nx);var vp={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function g(E,C){for(var S=0;S<C.length;S++){var N=C[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(E,N.key,N)}}return function(E,C,S){return C&&g(E.prototype,C),S&&g(E,S),E}}(),o=ie,i=c(o),a=J1;function c(g){return g&&g.__esModule?g:{default:g}}function f(g,E,C){return E in g?Object.defineProperty(g,E,{value:C,enumerable:!0,configurable:!0,writable:!0}):g[E]=C,g}function d(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function h(g,E){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:g}function v(g,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);g.prototype=Object.create(E&&E.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(g,E):g.__proto__=E)}var y=function(g){v(E,g);function E(C){d(this,E);var S=h(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C));return S.scriptLoaderId="id"+S.constructor.idCount++,S}return n(E,[{key:"componentDidMount",value:function(){var S=this.props,N=S.onError,D=S.onLoad,T=S.url;if(this.constructor.loadedScripts[T]){D();return}if(this.constructor.erroredScripts[T]){N();return}if(this.constructor.scriptObservers[T]){this.constructor.scriptObservers[T][this.scriptLoaderId]=this.props;return}this.constructor.scriptObservers[T]=f({},this.scriptLoaderId,this.props),this.createScript()}},{key:"componentWillUnmount",value:function(){var S=this.props.url,N=this.constructor.scriptObservers[S];N&&delete N[this.scriptLoaderId]}},{key:"createScript",value:function(){var S=this,N=this.props,D=N.onCreate,T=N.url,O=N.attributes,V=document.createElement("script");D(),O&&Object.keys(O).forEach(function(P){return V.setAttribute(P,O[P])}),V.src=T,V.hasAttribute("async")||(V.async=1);var Y=function(U){var K=S.constructor.scriptObservers[T];Object.keys(K).forEach(function(G){U(K[G])&&delete S.constructor.scriptObservers[T][S.scriptLoaderId]})};V.onload=function(){S.constructor.loadedScripts[T]=!0,Y(function(P){return P.onLoad(),!0})},V.onerror=function(){S.constructor.erroredScripts[T]=!0,Y(function(P){return P.onError(),!0})},document.body.appendChild(V)}},{key:"render",value:function(){return null}}]),E}(i.default.Component);y.propTypes={attributes:a.PropTypes.object,onCreate:a.PropTypes.func,onError:a.PropTypes.func.isRequired,onLoad:a.PropTypes.func.isRequired,url:a.PropTypes.string.isRequired},y.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},y.scriptObservers={},y.loadedScripts={},y.erroredScripts={},y.idCount=0,e.default=y,t.exports=e.default})(vp,vp.exports);var px=vp.exports;const dx="16.9.0",hx=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});function Pe(t,e){if(!!!t)throw new Error(e)}function gn(t){return typeof(t==null?void 0:t.then)=="function"}function yn(t){return typeof t=="object"&&t!==null}function _t(t,e){if(!!!t)throw new Error(e??"Unexpected invariant triggered.")}const mx=/\r\n|[\n\r]/g;function cl(t,e){let n=0,o=1;for(const i of t.body.matchAll(mx)){if(typeof i.index=="number"||_t(!1),i.index>=e)break;n=i.index+i[0].length,o+=1}return{line:o,column:e+1-n}}function e0(t){return td(t.source,cl(t.source,t.start))}function td(t,e){const n=t.locationOffset.column-1,o="".padStart(n)+t.body,i=e.line-1,a=t.locationOffset.line-1,c=e.line+a,f=e.line===1?n:0,d=e.column+f,h=`${t.name}:${c}:${d}
|
|
3
|
+
`,v=o.split(/\r\n|[\n\r]/g),y=v[i];if(y.length>120){const g=Math.floor(d/80),E=d%80,C=[];for(let S=0;S<y.length;S+=80)C.push(y.slice(S,S+80));return h+Gv([[`${c} |`,C[0]],...C.slice(1,g+1).map(S=>["|",S]),["|","^".padStart(E)],["|",C[g+1]]])}return h+Gv([[`${c-1} |`,v[i-1]],[`${c} |`,y],["|","^".padStart(d)],[`${c+1} |`,v[i+1]]])}function Gv(t){const e=t.filter(([o,i])=>i!==void 0),n=Math.max(...e.map(([o])=>o.length));return e.map(([o,i])=>o.padStart(n)+(i?" "+i:"")).join(`
|
|
4
|
+
`)}function vx(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class re extends Error{constructor(e,...n){var o,i,a;const{nodes:c,source:f,positions:d,path:h,originalError:v,extensions:y}=vx(n);super(e),this.name="GraphQLError",this.path=h??void 0,this.originalError=v??void 0,this.nodes=Wv(Array.isArray(c)?c:c?[c]:void 0);const g=Wv((o=this.nodes)===null||o===void 0?void 0:o.map(C=>C.loc).filter(C=>C!=null));this.source=f??(g==null||(i=g[0])===null||i===void 0?void 0:i.source),this.positions=d??(g==null?void 0:g.map(C=>C.start)),this.locations=d&&f?d.map(C=>cl(f,C)):g==null?void 0:g.map(C=>cl(C.source,C.start));const E=yn(v==null?void 0:v.extensions)?v==null?void 0:v.extensions:void 0;this.extensions=(a=y??E)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),v!=null&&v.stack?Object.defineProperty(this,"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,re):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+=`
|
|
5
|
+
|
|
6
|
+
`+e0(n.loc));else if(this.source&&this.locations)for(const n of this.locations)e+=`
|
|
7
|
+
|
|
8
|
+
`+td(this.source,n);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Wv(t){return t===void 0||t.length===0?void 0:t}function gx(t){return t.toString()}function yx(t){return t.toJSON()}function Lt(t,e,n){return new re(`Syntax Error: ${n}`,{source:t,positions:[e]})}let t0=class{constructor(e,n,o){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=o}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},nd=class{constructor(e,n,o,i,a,c){this.kind=e,this.start=n,this.end=o,this.line=i,this.column=a,this.value=c,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const n0={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},bx=new Set(Object.keys(n0));function gp(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&bx.has(e)}var Ft;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ft||(Ft={}));var Te;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Te||(Te={}));var F;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(F||(F={}));function yp(t){return t===9||t===32}function ha(t){return t>=48&&t<=57}function r0(t){return t>=97&&t<=122||t>=65&&t<=90}function rd(t){return r0(t)||t===95}function o0(t){return r0(t)||ha(t)||t===95}function Ex(t){var e;let n=Number.MAX_SAFE_INTEGER,o=null,i=-1;for(let c=0;c<t.length;++c){var a;const f=t[c],d=_x(f);d!==f.length&&(o=(a=o)!==null&&a!==void 0?a:c,i=c,c!==0&&d<n&&(n=d))}return t.map((c,f)=>f===0?c:c.slice(n)).slice((e=o)!==null&&e!==void 0?e:0,i+1)}function _x(t){let e=0;for(;e<t.length&&yp(t.charCodeAt(e));)++e;return e}function kx(t){if(t==="")return!0;let e=!0,n=!1,o=!0,i=!1;for(let a=0;a<t.length;++a)switch(t.codePointAt(a)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(e&&!i)return!1;i=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:o&&(o=n),e=!1}return!(e||o&&i)}function i0(t,e){const n=t.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=o.length===1,a=o.length>1&&o.slice(1).every(E=>E.length===0||yp(E.charCodeAt(0))),c=n.endsWith('\\"""'),f=t.endsWith('"')&&!c,d=t.endsWith("\\"),h=f||d,v=!(e!=null&&e.minimize)&&(!i||t.length>70||h||a||c);let y="";const g=i&&yp(t.charCodeAt(0));return(v&&!g||a)&&(y+=`
|
|
9
|
+
`),y+=n,(v||h)&&(y+=`
|
|
10
|
+
`),'"""'+y+'"""'}var se;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(se||(se={}));class od{constructor(e){const n=new nd(se.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==se.EOF)do if(e.next)e=e.next;else{const n=xx(this,e.end);e.next=n,n.prev=e,e=n}while(e.kind===se.COMMENT);return e}}function s0(t){return t===se.BANG||t===se.DOLLAR||t===se.AMP||t===se.PAREN_L||t===se.PAREN_R||t===se.SPREAD||t===se.COLON||t===se.EQUALS||t===se.AT||t===se.BRACKET_L||t===se.BRACKET_R||t===se.BRACE_L||t===se.PIPE||t===se.BRACE_R}function as(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function Bl(t,e){return a0(t.charCodeAt(e))&&c0(t.charCodeAt(e+1))}function a0(t){return t>=55296&&t<=56319}function c0(t){return t>=56320&&t<=57343}function Zo(t,e){const n=t.source.body.codePointAt(e);if(n===void 0)return se.EOF;if(n>=32&&n<=126){const o=String.fromCodePoint(n);return o==='"'?`'"'`:`"${o}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function At(t,e,n,o,i){const a=t.line,c=1+n-t.lineStart;return new nd(e,n,o,a,c,i)}function xx(t,e){const n=t.source.body,o=n.length;let i=e;for(;i<o;){const a=n.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return wx(t,i);case 33:return At(t,se.BANG,i,i+1);case 36:return At(t,se.DOLLAR,i,i+1);case 38:return At(t,se.AMP,i,i+1);case 40:return At(t,se.PAREN_L,i,i+1);case 41:return At(t,se.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return At(t,se.SPREAD,i,i+3);break;case 58:return At(t,se.COLON,i,i+1);case 61:return At(t,se.EQUALS,i,i+1);case 64:return At(t,se.AT,i,i+1);case 91:return At(t,se.BRACKET_L,i,i+1);case 93:return At(t,se.BRACKET_R,i,i+1);case 123:return At(t,se.BRACE_L,i,i+1);case 124:return At(t,se.PIPE,i,i+1);case 125:return At(t,se.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Dx(t,i):Cx(t,i)}if(ha(a)||a===45)return $x(t,i,a);if(rd(a))return Nx(t,i);throw Lt(t.source,i,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:as(a)||Bl(n,i)?`Unexpected character: ${Zo(t,i)}.`:`Invalid character: ${Zo(t,i)}.`)}return At(t,se.EOF,o,o)}function wx(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(a===10||a===13)break;if(as(a))++i;else if(Bl(n,i))i+=2;else break}return At(t,se.COMMENT,e,i,n.slice(e+1,i))}function $x(t,e,n){const o=t.source.body;let i=e,a=n,c=!1;if(a===45&&(a=o.charCodeAt(++i)),a===48){if(a=o.charCodeAt(++i),ha(a))throw Lt(t.source,i,`Invalid number, unexpected digit after 0: ${Zo(t,i)}.`)}else i=Vf(t,i,a),a=o.charCodeAt(i);if(a===46&&(c=!0,a=o.charCodeAt(++i),i=Vf(t,i,a),a=o.charCodeAt(i)),(a===69||a===101)&&(c=!0,a=o.charCodeAt(++i),(a===43||a===45)&&(a=o.charCodeAt(++i)),i=Vf(t,i,a),a=o.charCodeAt(i)),a===46||rd(a))throw Lt(t.source,i,`Invalid number, expected digit but got: ${Zo(t,i)}.`);return At(t,c?se.FLOAT:se.INT,e,i,o.slice(e,i))}function Vf(t,e,n){if(!ha(n))throw Lt(t.source,e,`Invalid number, expected digit but got: ${Zo(t,e)}.`);const o=t.source.body;let i=e+1;for(;ha(o.charCodeAt(i));)++i;return i}function Cx(t,e){const n=t.source.body,o=n.length;let i=e+1,a=i,c="";for(;i<o;){const f=n.charCodeAt(i);if(f===34)return c+=n.slice(a,i),At(t,se.STRING,e,i+1,c);if(f===92){c+=n.slice(a,i);const d=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Ax(t,i):Sx(t,i):Tx(t,i);c+=d.value,i+=d.size,a=i;continue}if(f===10||f===13)break;if(as(f))++i;else if(Bl(n,i))i+=2;else throw Lt(t.source,i,`Invalid character within String: ${Zo(t,i)}.`)}throw Lt(t.source,i,"Unterminated string.")}function Ax(t,e){const n=t.source.body;let o=0,i=3;for(;i<12;){const a=n.charCodeAt(e+i++);if(a===125){if(i<5||!as(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|ra(a),o<0)break}throw Lt(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+i)}".`)}function Sx(t,e){const n=t.source.body,o=Qv(n,e+2);if(as(o))return{value:String.fromCodePoint(o),size:6};if(a0(o)&&n.charCodeAt(e+6)===92&&n.charCodeAt(e+7)===117){const i=Qv(n,e+8);if(c0(i))return{value:String.fromCodePoint(o,i),size:12}}throw Lt(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function Qv(t,e){return ra(t.charCodeAt(e))<<12|ra(t.charCodeAt(e+1))<<8|ra(t.charCodeAt(e+2))<<4|ra(t.charCodeAt(e+3))}function ra(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function Tx(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
11
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Lt(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function Dx(t,e){const n=t.source.body,o=n.length;let i=t.lineStart,a=e+3,c=a,f="";const d=[];for(;a<o;){const h=n.charCodeAt(a);if(h===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){f+=n.slice(c,a),d.push(f);const v=At(t,se.BLOCK_STRING,e,a+3,Ex(d).join(`
|
|
12
|
+
`));return t.line+=d.length-1,t.lineStart=i,v}if(h===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){f+=n.slice(c,a),c=a+1,a+=4;continue}if(h===10||h===13){f+=n.slice(c,a),d.push(f),h===13&&n.charCodeAt(a+1)===10?a+=2:++a,f="",c=a,i=a;continue}if(as(h))++a;else if(Bl(n,a))a+=2;else throw Lt(t.source,a,`Invalid character within String: ${Zo(t,a)}.`)}throw Lt(t.source,a,"Unterminated string.")}function Nx(t,e){const n=t.source.body,o=n.length;let i=e+1;for(;i<o;){const a=n.charCodeAt(i);if(o0(a))++i;else break}return At(t,se.NAME,e,i,n.slice(e,i))}const Ox=10,l0=2;function ae(t){return Vl(t,[])}function Vl(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return Ix(t,e);default:return String(t)}}function Ix(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(Lx(t)){const o=t.toJSON();if(o!==t)return typeof o=="string"?o:Vl(o,n)}else if(Array.isArray(t))return Rx(t,n);return Fx(t,n)}function Lx(t){return typeof t.toJSON=="function"}function Fx(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>l0?"["+Mx(t)+"]":"{ "+n.map(([i,a])=>i+": "+Vl(a,e)).join(", ")+" }"}function Rx(t,e){if(t.length===0)return"[]";if(e.length>l0)return"[Array]";const n=Math.min(Ox,t.length),o=t.length-n,i=[];for(let a=0;a<n;++a)i.push(Vl(t[a],e));return o===1?i.push("... 1 more item"):o>1&&i.push(`... ${o} more items`),"["+i.join(", ")+"]"}function Mx(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}const qx=globalThis.process&&!0,Zn=qx?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if(typeof e=="object"&&e!==null){var o;const i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(o=e.constructor)===null||o===void 0?void 0:o.name;if(i===a){const c=ae(e);throw new Error(`Cannot use ${i} "${c}" from another module or realm.
|
|
13
|
+
|
|
14
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
15
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
16
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
17
|
+
|
|
18
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
19
|
+
|
|
20
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
21
|
+
versions may have different capabilities and behavior. The data from one
|
|
22
|
+
version used in the function from another could produce confusing and
|
|
23
|
+
spurious results.`)}}return!1};class jl{constructor(e,n="GraphQL request",o={line:1,column:1}){typeof e=="string"||Pe(!1,`Body must be a string. Received: ${ae(e)}.`),this.body=e,this.name=n,this.locationOffset=o,this.locationOffset.line>0||Pe(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Pe(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function u0(t){return Zn(t,jl)}function Xn(t,e){return new Ul(t,e).parseDocument()}function f0(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseValueLiteral(!1);return n.expectToken(se.EOF),o}function Px(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseConstValueLiteral();return n.expectToken(se.EOF),o}function Bx(t,e){const n=new Ul(t,e);n.expectToken(se.SOF);const o=n.parseTypeReference();return n.expectToken(se.EOF),o}class Ul{constructor(e,n={}){const o=u0(e)?e:new jl(e);this._lexer=new od(o),this._options=n,this._tokenCounter=0}parseName(){const e=this.expectToken(se.NAME);return this.node(e,{kind:F.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:F.DOCUMENT,definitions:this.many(se.SOF,this.parseDefinition,se.EOF)})}parseDefinition(){if(this.peek(se.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(n.kind===se.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Lt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(se.BRACE_L))return this.node(e,{kind:F.OPERATION_DEFINITION,operation:Ft.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let o;return this.peek(se.NAME)&&(o=this.parseName()),this.node(e,{kind:F.OPERATION_DEFINITION,operation:n,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(se.NAME);switch(e.value){case"query":return Ft.QUERY;case"mutation":return Ft.MUTATION;case"subscription":return Ft.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(se.PAREN_L,this.parseVariableDefinition,se.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:F.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(se.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(se.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(se.DOLLAR),this.node(e,{kind:F.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:F.SELECTION_SET,selections:this.many(se.BRACE_L,this.parseSelection,se.BRACE_R)})}parseSelection(){return this.peek(se.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,n=this.parseName();let o,i;return this.expectOptionalToken(se.COLON)?(o=n,i=this.parseName()):i=n,this.node(e,{kind:F.FIELD,alias:o,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(se.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(se.PAREN_L,n,se.PAREN_R)}parseArgument(e=!1){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:F.ARGUMENT,name:o,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(se.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(se.NAME)?this.node(e,{kind:F.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:F.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:F.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:F.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const n=this._lexer.token;switch(n.kind){case se.BRACKET_L:return this.parseList(e);case se.BRACE_L:return this.parseObject(e);case se.INT:return this.advanceLexer(),this.node(n,{kind:F.INT,value:n.value});case se.FLOAT:return this.advanceLexer(),this.node(n,{kind:F.FLOAT,value:n.value});case se.STRING:case se.BLOCK_STRING:return this.parseStringLiteral();case se.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:F.BOOLEAN,value:!0});case"false":return this.node(n,{kind:F.BOOLEAN,value:!1});case"null":return this.node(n,{kind:F.NULL});default:return this.node(n,{kind:F.ENUM,value:n.value})}case se.DOLLAR:if(e)if(this.expectToken(se.DOLLAR),this._lexer.token.kind===se.NAME){const o=this._lexer.token.value;throw Lt(this._lexer.source,n.start,`Unexpected variable "$${o}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:F.STRING,value:e.value,block:e.kind===se.BLOCK_STRING})}parseList(e){const n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:F.LIST,values:this.any(se.BRACKET_L,n,se.BRACKET_R)})}parseObject(e){const n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:F.OBJECT,fields:this.any(se.BRACE_L,n,se.BRACE_R)})}parseObjectField(e){const n=this._lexer.token,o=this.parseName();return this.expectToken(se.COLON),this.node(n,{kind:F.OBJECT_FIELD,name:o,value:this.parseValueLiteral(e)})}parseDirectives(e){const n=[];for(;this.peek(se.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const n=this._lexer.token;return this.expectToken(se.AT),this.node(n,{kind:F.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let n;if(this.expectOptionalToken(se.BRACKET_L)){const o=this.parseTypeReference();this.expectToken(se.BRACKET_R),n=this.node(e,{kind:F.LIST_TYPE,type:o})}else n=this.parseNamedType();return this.expectOptionalToken(se.BANG)?this.node(e,{kind:F.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:F.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(se.STRING)||this.peek(se.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const o=this.parseConstDirectives(),i=this.many(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);return this.node(e,{kind:F.SCHEMA_DEFINITION,description:n,directives:o,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,n=this.parseOperationType();this.expectToken(se.COLON);const o=this.parseNamedType();return this.node(e,{kind:F.OPERATION_TYPE_DEFINITION,operation:n,type:o})}parseScalarTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const o=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:F.SCALAR_TYPE_DEFINITION,description:n,name:o,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:F.OBJECT_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(se.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseFieldDefinition,se.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName(),i=this.parseArgumentDefs();this.expectToken(se.COLON);const a=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(e,{kind:F.FIELD_DEFINITION,description:n,name:o,arguments:i,type:a,directives:c})}parseArgumentDefs(){return this.optionalMany(se.PAREN_L,this.parseInputValueDef,se.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseName();this.expectToken(se.COLON);const i=this.parseTypeReference();let a;this.expectOptionalToken(se.EQUALS)&&(a=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(e,{kind:F.INPUT_VALUE_DEFINITION,description:n,name:o,type:i,defaultValue:a,directives:c})}parseInterfaceTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const o=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:F.INTERFACE_TYPE_DEFINITION,description:n,name:o,interfaces:i,directives:a,fields:c})}parseUnionTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:F.UNION_TYPE_DEFINITION,description:n,name:o,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(se.EQUALS)?this.delimitedMany(se.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:F.ENUM_TYPE_DEFINITION,description:n,name:o,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(se.BRACE_L,this.parseEnumValueDefinition,se.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,n=this.parseDescription(),o=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:F.ENUM_VALUE_DEFINITION,description:n,name:o,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Lt(this._lexer.source,this._lexer.token.start,`${Pc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const o=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:F.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:o,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(se.BRACE_L,this.parseInputValueDef,se.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===se.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.optionalMany(se.BRACE_L,this.parseOperationTypeDefinition,se.BRACE_R);if(n.length===0&&o.length===0)throw this.unexpected();return this.node(e,{kind:F.SCHEMA_EXTENSION,directives:n,operationTypes:o})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();if(o.length===0)throw this.unexpected();return this.node(e,{kind:F.SCALAR_TYPE_EXTENSION,name:n,directives:o})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:F.OBJECT_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(o.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:F.INTERFACE_TYPE_EXTENSION,name:n,interfaces:o,directives:i,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:F.UNION_TYPE_EXTENSION,name:n,directives:o,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:F.ENUM_TYPE_EXTENSION,name:n,directives:o,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(o.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:F.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:o,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(se.AT);const o=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(e,{kind:F.DIRECTIVE_DEFINITION,description:n,name:o,arguments:i,repeatable:a,locations:c})}parseDirectiveLocations(){return this.delimitedMany(se.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Te,n.value))return n;throw this.unexpected(e)}node(e,n){return this._options.noLocation!==!0&&(n.loc=new t0(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){const n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw Lt(this._lexer.source,n.start,`Expected ${p0(e)}, found ${Pc(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const n=this._lexer.token;if(n.kind===se.NAME&&n.value===e)this.advanceLexer();else throw Lt(this._lexer.source,n.start,`Expected "${e}", found ${Pc(n)}.`)}expectOptionalKeyword(e){const n=this._lexer.token;return n.kind===se.NAME&&n.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const n=e??this._lexer.token;return Lt(this._lexer.source,n.start,`Unexpected ${Pc(n)}.`)}any(e,n,o){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(o);)i.push(n.call(this));return i}optionalMany(e,n,o){if(this.expectOptionalToken(e)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}return[]}many(e,n,o){this.expectToken(e);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(o));return i}delimitedMany(e,n){this.expectOptionalToken(e);const o=[];do o.push(n.call(this));while(this.expectOptionalToken(e));return o}advanceLexer(){const{maxTokens:e}=this._options,n=this._lexer.advance();if(e!==void 0&&n.kind!==se.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Lt(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Pc(t){const e=t.value;return p0(t.kind)+(e!=null?` "${e}"`:"")}function p0(t){return s0(t)?`"${t}"`:t}const Vx=5;function Hr(t,e){const[n,o]=e?[t,e]:[void 0,t];let i=" Did you mean ";n&&(i+=n+" ");const a=o.map(d=>`"${d}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}const c=a.slice(0,Vx),f=c.pop();return i+c.join(", ")+", or "+f+"?"}function Yv(t){return t}function Gr(t,e){const n=Object.create(null);for(const o of t)n[e(o)]=o;return n}function mo(t,e,n){const o=Object.create(null);for(const i of t)o[e(i)]=n(i);return o}function Pr(t,e){const n=Object.create(null);for(const o of Object.keys(t))n[o]=e(t[o],o);return n}function Oa(t,e){let n=0,o=0;for(;n<t.length&&o<e.length;){let i=t.charCodeAt(n),a=e.charCodeAt(o);if(Bc(i)&&Bc(a)){let c=0;do++n,c=c*10+i-bp,i=t.charCodeAt(n);while(Bc(i)&&c>0);let f=0;do++o,f=f*10+a-bp,a=e.charCodeAt(o);while(Bc(a)&&f>0);if(c<f)return-1;if(c>f)return 1}else{if(i<a)return-1;if(i>a)return 1;++n,++o}}return t.length-e.length}const bp=48,jx=57;function Bc(t){return!isNaN(t)&&bp<=t&&t<=jx}function Eo(t,e){const n=Object.create(null),o=new Ux(t),i=Math.floor(t.length*.4)+1;for(const a of e){const c=o.measure(a,i);c!==void 0&&(n[a]=c)}return Object.keys(n).sort((a,c)=>{const f=n[a]-n[c];return f!==0?f:Oa(a,c)})}class Ux{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Jv(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,n){if(this._input===e)return 0;const o=e.toLowerCase();if(this._inputLowerCase===o)return 1;let i=Jv(o),a=this._inputArray;if(i.length<a.length){const v=i;i=a,a=v}const c=i.length,f=a.length;if(c-f>n)return;const d=this._rows;for(let v=0;v<=f;v++)d[0][v]=v;for(let v=1;v<=c;v++){const y=d[(v-1)%3],g=d[v%3];let E=g[0]=v;for(let C=1;C<=f;C++){const S=i[v-1]===a[C-1]?0:1;let N=Math.min(y[C]+1,g[C-1]+1,y[C-1]+S);if(v>1&&C>1&&i[v-1]===a[C-2]&&i[v-2]===a[C-1]){const D=d[(v-2)%3][C-2];N=Math.min(N,D+1)}N<E&&(E=N),g[C]=N}if(E>n)return}const h=d[c%3][f];return h<=n?h:void 0}}function Jv(t){const e=t.length,n=new Array(e);for(let o=0;o<e;++o)n[o]=t.charCodeAt(o);return n}function qn(t){if(t==null)return Object.create(null);if(Object.getPrototypeOf(t)===null)return t;const e=Object.create(null);for(const[n,o]of Object.entries(t))e[n]=o;return e}function zx(t){return`"${t.replace(Hx,Gx)}"`}const Hx=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Gx(t){return Wx[t.charCodeAt(0)]}const Wx=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vi=Object.freeze({});function pn(t,e,n=n0){const o=new Map;for(const D of Object.values(F))o.set(D,Yi(e,D));let i,a=Array.isArray(t),c=[t],f=-1,d=[],h=t,v,y;const g=[],E=[];do{f++;const D=f===c.length,T=D&&d.length!==0;if(D){if(v=E.length===0?void 0:g[g.length-1],h=y,y=E.pop(),T)if(a){h=h.slice();let V=0;for(const[Y,P]of d){const U=Y-V;P===null?(h.splice(U,1),V++):h[U]=P}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[V,Y]of d)h[V]=Y}f=i.index,c=i.keys,d=i.edits,a=i.inArray,i=i.prev}else if(y){if(v=a?f:c[f],h=y[v],h==null)continue;g.push(v)}let O;if(!Array.isArray(h)){var C,S;gp(h)||Pe(!1,`Invalid AST Node: ${ae(h)}.`);const V=D?(C=o.get(h.kind))===null||C===void 0?void 0:C.leave:(S=o.get(h.kind))===null||S===void 0?void 0:S.enter;if(O=V==null?void 0:V.call(e,h,v,y,g,E),O===Vi)break;if(O===!1){if(!D){g.pop();continue}}else if(O!==void 0&&(d.push([v,O]),!D))if(gp(O))h=O;else{g.pop();continue}}if(O===void 0&&T&&d.push([v,h]),D)g.pop();else{var N;i={inArray:a,index:f,keys:c,edits:d,prev:i},a=Array.isArray(h),c=a?h:(N=n[h.kind])!==null&&N!==void 0?N:[],f=-1,d=[],y&&E.push(y),y=h}}while(i!==void 0);return d.length!==0?d[d.length-1][1]:t}function id(t){const e=new Array(t.length).fill(null),n=Object.create(null);for(const o of Object.values(F)){let i=!1;const a=new Array(t.length).fill(void 0),c=new Array(t.length).fill(void 0);for(let d=0;d<t.length;++d){const{enter:h,leave:v}=Yi(t[d],o);i||(i=h!=null||v!=null),a[d]=h,c[d]=v}if(!i)continue;const f={enter(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=a[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===!1)e[y]=h;else if(g===Vi)e[y]=Vi;else if(g!==void 0)return g}},leave(...d){const h=d[0];for(let y=0;y<t.length;y++)if(e[y]===null){var v;const g=(v=c[y])===null||v===void 0?void 0:v.apply(t[y],d);if(g===Vi)e[y]=Vi;else if(g!==void 0&&g!==!1)return g}else e[y]===h&&(e[y]=null)}};n[o]=f}return n}function Yi(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function Qx(t,e,n){const{enter:o,leave:i}=Yi(t,e);return n?i:o}function Je(t){return pn(t,Jx)}const Yx=80,Jx={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>Ce(t.definitions,`
|
|
24
|
+
|
|
25
|
+
`)},OperationDefinition:{leave(t){const e=He("(",Ce(t.variableDefinitions,", "),")"),n=Ce([t.operation,Ce([t.name,e]),Ce(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:o})=>t+": "+e+He(" = ",n)+He(" ",Ce(o," "))},SelectionSet:{leave:({selections:t})=>Gn(t)},Field:{leave({alias:t,name:e,arguments:n,directives:o,selectionSet:i}){const a=He("",t,": ")+e;let c=a+He("(",Ce(n,", "),")");return c.length>Yx&&(c=a+He(`(
|
|
26
|
+
`,nl(Ce(n,`
|
|
27
|
+
`)),`
|
|
28
|
+
)`)),Ce([c,Ce(o," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+He(" ",Ce(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>Ce(["...",He("on ",t),Ce(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:o,selectionSet:i})=>`fragment ${t}${He("(",Ce(n,", "),")")} on ${e} ${He("",Ce(o," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?i0(t):zx(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+Ce(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+Ce(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+He("(",Ce(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>He("",t,`
|
|
29
|
+
`)+Ce(["schema",Ce(e," "),Gn(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>He("",t,`
|
|
30
|
+
`)+Ce(["scalar",e,Ce(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:o,fields:i})=>He("",t,`
|
|
31
|
+
`)+Ce(["type",e,He("implements ",Ce(n," & ")),Ce(o," "),Gn(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:o,directives:i})=>He("",t,`
|
|
32
|
+
`)+e+(Zv(n)?He(`(
|
|
33
|
+
`,nl(Ce(n,`
|
|
34
|
+
`)),`
|
|
35
|
+
)`):He("(",Ce(n,", "),")"))+": "+o+He(" ",Ce(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:o,directives:i})=>He("",t,`
|
|
36
|
+
`)+Ce([e+": "+n,He("= ",o),Ce(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:o,fields:i})=>He("",t,`
|
|
37
|
+
`)+Ce(["interface",e,He("implements ",Ce(n," & ")),Ce(o," "),Gn(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:o})=>He("",t,`
|
|
38
|
+
`)+Ce(["union",e,Ce(n," "),He("= ",Ce(o," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:o})=>He("",t,`
|
|
39
|
+
`)+Ce(["enum",e,Ce(n," "),Gn(o)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>He("",t,`
|
|
40
|
+
`)+Ce([e,Ce(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:o})=>He("",t,`
|
|
41
|
+
`)+Ce(["input",e,Ce(n," "),Gn(o)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:o,locations:i})=>He("",t,`
|
|
42
|
+
`)+"directive @"+e+(Zv(n)?He(`(
|
|
43
|
+
`,nl(Ce(n,`
|
|
44
|
+
`)),`
|
|
45
|
+
)`):He("(",Ce(n,", "),")"))+(o?" repeatable":"")+" on "+Ce(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>Ce(["extend schema",Ce(t," "),Gn(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>Ce(["extend scalar",t,Ce(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:o})=>Ce(["extend type",t,He("implements ",Ce(e," & ")),Ce(n," "),Gn(o)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:o})=>Ce(["extend interface",t,He("implements ",Ce(e," & ")),Ce(n," "),Gn(o)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>Ce(["extend union",t,Ce(e," "),He("= ",Ce(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>Ce(["extend enum",t,Ce(e," "),Gn(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>Ce(["extend input",t,Ce(e," "),Gn(n)]," ")}};function Ce(t,e=""){var n;return(n=t==null?void 0:t.filter(o=>o).join(e))!==null&&n!==void 0?n:""}function Gn(t){return He(`{
|
|
46
|
+
`,nl(Ce(t,`
|
|
47
|
+
`)),`
|
|
48
|
+
}`)}function He(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function nl(t){return He(" ",t.replace(/\n/g,`
|
|
49
|
+
`))}function Zv(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
|
|
50
|
+
`)))!==null&&e!==void 0?e:!1}function ll(t,e){switch(t.kind){case F.NULL:return null;case F.INT:return parseInt(t.value,10);case F.FLOAT:return parseFloat(t.value);case F.STRING:case F.ENUM:case F.BOOLEAN:return t.value;case F.LIST:return t.values.map(n=>ll(n,e));case F.OBJECT:return mo(t.fields,n=>n.name.value,n=>ll(n.value,e));case F.VARIABLE:return e==null?void 0:e[t.name.value]}}function _n(t){if(t!=null||Pe(!1,"Must provide name."),typeof t=="string"||Pe(!1,"Expected name to be a string."),t.length===0)throw new re("Expected name to be a non-empty string.");for(let e=1;e<t.length;++e)if(!o0(t.charCodeAt(e)))throw new re(`Names must only contain [_a-zA-Z0-9] but "${t}" does not.`);if(!rd(t.charCodeAt(0)))throw new re(`Names must start with [_a-zA-Z] but "${t}" does not.`);return t}function d0(t){if(t==="true"||t==="false"||t==="null")throw new re(`Enum values cannot be named: ${t}`);return _n(t)}function go(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||ct(t)||at(t)||Ie(t)}function Zx(t){if(!go(t))throw new Error(`Expected ${ae(t)} to be a GraphQL type.`);return t}function kn(t){return Zn(t,kr)}function Xx(t){if(!kn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Scalar type.`);return t}function Ue(t){return Zn(t,Ln)}function h0(t){if(!Ue(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Object type.`);return t}function Ke(t){return Zn(t,Ji)}function m0(t){if(!Ke(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Interface type.`);return t}function St(t){return Zn(t,Zi)}function Kx(t){if(!St(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Union type.`);return t}function xt(t){return Zn(t,yo)}function ew(t){if(!xt(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Enum type.`);return t}function ct(t){return Zn(t,Xi)}function tw(t){if(!ct(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Input Object type.`);return t}function at(t){return Zn(t,Ut)}function nw(t){if(!at(t))throw new Error(`Expected ${ae(t)} to be a GraphQL List type.`);return t}function Ie(t){return Zn(t,qe)}function rw(t){if(!Ie(t))throw new Error(`Expected ${ae(t)} to be a GraphQL Non-Null type.`);return t}function un(t){return kn(t)||xt(t)||ct(t)||Ia(t)&&un(t.ofType)}function ow(t){if(!un(t))throw new Error(`Expected ${ae(t)} to be a GraphQL input type.`);return t}function vo(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||Ia(t)&&vo(t.ofType)}function iw(t){if(!vo(t))throw new Error(`Expected ${ae(t)} to be a GraphQL output type.`);return t}function dn(t){return kn(t)||xt(t)}function sw(t){if(!dn(t))throw new Error(`Expected ${ae(t)} to be a GraphQL leaf type.`);return t}function _r(t){return Ue(t)||Ke(t)||St(t)}function aw(t){if(!_r(t))throw new Error(`Expected ${ae(t)} to be a GraphQL composite type.`);return t}function Er(t){return Ke(t)||St(t)}function cw(t){if(!Er(t))throw new Error(`Expected ${ae(t)} to be a GraphQL abstract type.`);return t}class Ut{constructor(e){go(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class qe{constructor(e){sd(e)||Pe(!1,`Expected ${ae(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Ia(t){return at(t)||Ie(t)}function lw(t){if(!Ia(t))throw new Error(`Expected ${ae(t)} to be a GraphQL wrapping type.`);return t}function sd(t){return go(t)&&!Ie(t)}function v0(t){if(!sd(t))throw new Error(`Expected ${ae(t)} to be a GraphQL nullable type.`);return t}function ad(t){if(t)return Ie(t)?t.ofType:t}function cs(t){return kn(t)||Ue(t)||Ke(t)||St(t)||xt(t)||ct(t)}function uw(t){if(!cs(t))throw new Error(`Expected ${ae(t)} to be a GraphQL named type.`);return t}function Rt(t){if(t){let e=t;for(;Ia(e);)e=e.ofType;return e}}function cd(t){return typeof t=="function"?t():t}function ld(t){return typeof t=="function"?t():t}class kr{constructor(e){var n,o,i,a;const c=(n=e.parseValue)!==null&&n!==void 0?n:Yv;this.name=_n(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=(o=e.serialize)!==null&&o!==void 0?o:Yv,this.parseValue=c,this.parseLiteral=(i=e.parseLiteral)!==null&&i!==void 0?i:(f,d)=>c(ll(f,d)),this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(a=e.extensionASTNodes)!==null&&a!==void 0?a:[],e.specifiedByURL==null||typeof e.specifiedByURL=="string"||Pe(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ae(e.specifiedByURL)}.`),e.serialize==null||typeof e.serialize=="function"||Pe(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&(typeof e.parseValue=="function"&&typeof e.parseLiteral=="function"||Pe(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ln{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>y0(e),this._interfaces=()=>g0(e),e.isTypeOf==null||typeof e.isTypeOf=="function"||Pe(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ae(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:E0(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function g0(t){var e;const n=cd((e=t.interfaces)!==null&&e!==void 0?e:[]);return Array.isArray(n)||Pe(!1,`${t.name} interfaces must be an Array or a function which returns an Array.`),n}function y0(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>{var i;zi(n)||Pe(!1,`${t.name}.${o} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Pe(!1,`${t.name}.${o} field resolver must be a function if provided, but got: ${ae(n.resolve)}.`);const a=(i=n.args)!==null&&i!==void 0?i:{};return zi(a)||Pe(!1,`${t.name}.${o} args must be an object with argument names as keys.`),{name:_n(o),description:n.description,type:n.type,args:b0(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}})}function b0(t){return Object.entries(t).map(([e,n])=>({name:_n(e),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zi(t){return yn(t)&&!Array.isArray(t)}function E0(t){return Pr(t,e=>({description:e.description,type:e.type,args:_0(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _0(t){return mo(t,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _o(t){return Ie(t.type)&&t.defaultValue===void 0}class Ji{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=y0.bind(void 0,e),this._interfaces=g0.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:E0(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Zi{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=fw.bind(void 0,e),e.resolveType==null||typeof e.resolveType=="function"||Pe(!1,`${this.name} must provide "resolveType" as a function, but got: ${ae(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function fw(t){const e=cd(t.types);return Array.isArray(e)||Pe(!1,`Must provide Array of types or a function which returns such an array for Union ${t.name}.`),e}class yo{constructor(e){var n;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof e.values=="function"?e.values:Xv(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Xv(this.name,this._values())),this._values}getValue(e){return this._nameLookup===null&&(this._nameLookup=Gr(this.getValues(),n=>n.name)),this._nameLookup[e]}serialize(e){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(o=>[o.value,o])));const n=this._valueLookup.get(e);if(n===void 0)throw new re(`Enum "${this.name}" cannot represent value: ${ae(e)}`);return n.name}parseValue(e){if(typeof e!="string"){const o=ae(e);throw new re(`Enum "${this.name}" cannot represent non-string value: ${o}.`+Vc(this,o))}const n=this.getValue(e);if(n==null)throw new re(`Value "${e}" does not exist in "${this.name}" enum.`+Vc(this,e));return n.value}parseLiteral(e,n){if(e.kind!==F.ENUM){const i=Je(e);throw new re(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Vc(this,i),{nodes:e})}const o=this.getValue(e.value);if(o==null){const i=Je(e);throw new re(`Value "${i}" does not exist in "${this.name}" enum.`+Vc(this,i),{nodes:e})}return o.value}toConfig(){const e=mo(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Vc(t,e){const n=t.getValues().map(i=>i.name),o=Eo(e,n);return Hr("the enum value",o)}function Xv(t,e){return zi(e)||Pe(!1,`${t} values must be an object with value names as keys.`),Object.entries(e).map(([n,o])=>(zi(o)||Pe(!1,`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${ae(o)}.`),{name:d0(n),description:o.description,value:o.value!==void 0?o.value:n,deprecationReason:o.deprecationReason,extensions:qn(o.extensions),astNode:o.astNode}))}class Xi{constructor(e){var n,o;this.name=_n(e.name),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(o=e.isOneOf)!==null&&o!==void 0?o:!1,this._fields=pw.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const e=Pr(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function pw(t){const e=ld(t.fields);return zi(e)||Pe(!1,`${t.name} fields must be an object with field names as keys or a function which returns such an object.`),Pr(e,(n,o)=>(!("resolve"in n)||Pe(!1,`${t.name}.${o} field has a resolve property, but Input Types cannot define resolvers.`),{name:_n(o),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:qn(n.extensions),astNode:n.astNode}))}function zl(t){return Ie(t.type)&&t.defaultValue===void 0}function ul(t,e){return t===e?!0:Ie(t)&&Ie(e)||at(t)&&at(e)?ul(t.ofType,e.ofType):!1}function Qo(t,e,n){return e===n?!0:Ie(n)?Ie(e)?Qo(t,e.ofType,n.ofType):!1:Ie(e)?Qo(t,e.ofType,n):at(n)?at(e)?Qo(t,e.ofType,n.ofType):!1:at(e)?!1:Er(n)&&(Ke(e)||Ue(e))&&t.isSubType(n,e)}function Ep(t,e,n){return e===n?!0:Er(e)?Er(n)?t.getPossibleTypes(e).some(o=>t.isSubType(n,o)):t.isSubType(e,n):Er(n)?t.isSubType(n,e):!1}const rl=2147483647,ol=-2147483648,k0=new kr({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isInteger(n))throw new re(`Int cannot represent non-integer value: ${ae(e)}`);if(n>rl||n<ol)throw new re("Int cannot represent non 32-bit signed integer value: "+ae(e));return n},parseValue(t){if(typeof t!="number"||!Number.isInteger(t))throw new re(`Int cannot represent non-integer value: ${ae(t)}`);if(t>rl||t<ol)throw new re(`Int cannot represent non 32-bit signed integer value: ${t}`);return t},parseLiteral(t){if(t.kind!==F.INT)throw new re(`Int cannot represent non-integer value: ${Je(t)}`,{nodes:t});const e=parseInt(t.value,10);if(e>rl||e<ol)throw new re(`Int cannot represent non 32-bit signed integer value: ${t.value}`,{nodes:t});return e}}),ud=new kr({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e?1:0;let n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),typeof n!="number"||!Number.isFinite(n))throw new re(`Float cannot represent non numeric value: ${ae(e)}`);return n},parseValue(t){if(typeof t!="number"||!Number.isFinite(t))throw new re(`Float cannot represent non numeric value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==F.FLOAT&&t.kind!==F.INT)throw new re(`Float cannot represent non numeric value: ${Je(t)}`,t);return parseFloat(t.value)}}),yt=new kr({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(t){const e=Fa(t);if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number"&&Number.isFinite(e))return e.toString();throw new re(`String cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t!="string")throw new re(`String cannot represent a non string value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==F.STRING)throw new re(`String cannot represent a non string value: ${Je(t)}`,{nodes:t});return t.value}}),fn=new kr({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(t){const e=Fa(t);if(typeof e=="boolean")return e;if(Number.isFinite(e))return e!==0;throw new re(`Boolean cannot represent a non boolean value: ${ae(e)}`)},parseValue(t){if(typeof t!="boolean")throw new re(`Boolean cannot represent a non boolean value: ${ae(t)}`);return t},parseLiteral(t){if(t.kind!==F.BOOLEAN)throw new re(`Boolean cannot represent a non boolean value: ${Je(t)}`,{nodes:t});return t.value}}),fd=new kr({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(t){const e=Fa(t);if(typeof e=="string")return e;if(Number.isInteger(e))return String(e);throw new re(`ID cannot represent value: ${ae(t)}`)},parseValue(t){if(typeof t=="string")return t;if(typeof t=="number"&&Number.isInteger(t))return t.toString();throw new re(`ID cannot represent value: ${ae(t)}`)},parseLiteral(t){if(t.kind!==F.STRING&&t.kind!==F.INT)throw new re("ID cannot represent a non-string and non-integer value: "+Je(t),{nodes:t});return t.value}}),La=Object.freeze([yt,k0,ud,fn,fd]);function Hl(t){return La.some(({name:e})=>t.name===e)}function Fa(t){if(yn(t)){if(typeof t.valueOf=="function"){const e=t.valueOf();if(!yn(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function Gl(t){return Zn(t,Jn)}function dw(t){if(!Gl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL directive.`);return t}class Jn{constructor(e){var n,o;this.name=_n(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=(n=e.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=qn(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||Pe(!1,`@${e.name} locations must be an Array.`);const i=(o=e.args)!==null&&o!==void 0?o:{};yn(i)&&!Array.isArray(i)||Pe(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=b0(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:_0(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const pd=new Jn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(fn),description:"Included when true."}}}),dd=new Jn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new qe(fn),description:"Skipped when true."}}}),hd="No longer supported",Wl=new Jn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Te.FIELD_DEFINITION,Te.ARGUMENT_DEFINITION,Te.INPUT_FIELD_DEFINITION,Te.ENUM_VALUE],args:{reason:{type:yt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:hd}}}),md=new Jn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Te.SCALAR],args:{url:{type:new qe(yt),description:"The URL that specifies the behavior of this scalar."}}}),vd=new Jn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Te.INPUT_OBJECT],args:{}}),ko=Object.freeze([pd,dd,Wl,md,vd]);function gd(t){return ko.some(({name:e})=>e===t.name)}function yd(t){return typeof t=="object"&&typeof(t==null?void 0:t[Symbol.iterator])=="function"}function jr(t,e){if(Ie(e)){const n=jr(t,e.ofType);return(n==null?void 0:n.kind)===F.NULL?null:n}if(t===null)return{kind:F.NULL};if(t===void 0)return null;if(at(e)){const n=e.ofType;if(yd(t)){const o=[];for(const i of t){const a=jr(i,n);a!=null&&o.push(a)}return{kind:F.LIST,values:o}}return jr(t,n)}if(ct(e)){if(!yn(t))return null;const n=[];for(const o of Object.values(e.getFields())){const i=jr(t[o.name],o.type);i&&n.push({kind:F.OBJECT_FIELD,name:{kind:F.NAME,value:o.name},value:i})}return{kind:F.OBJECT,fields:n}}if(dn(e)){const n=e.serialize(t);if(n==null)return null;if(typeof n=="boolean")return{kind:F.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const o=String(n);return Kv.test(o)?{kind:F.INT,value:o}:{kind:F.FLOAT,value:o}}if(typeof n=="string")return xt(e)?{kind:F.ENUM,value:n}:e===fd&&Kv.test(n)?{kind:F.INT,value:n}:{kind:F.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ae(n)}.`)}_t(!1,"Unexpected input type: "+ae(e))}const Kv=/^-?(?:0|[1-9][0-9]*)$/,Ql=new Ln({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:yt,resolve:t=>t.description},types:{description:"A list of all types supported by this server.",type:new qe(new Ut(new qe(Dn))),resolve(t){return Object.values(t.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new qe(Dn),resolve:t=>t.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Dn,resolve:t=>t.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Dn,resolve:t=>t.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new qe(new Ut(new qe(bd))),resolve:t=>t.getDirectives()}})}),bd=new Ln({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
51
|
+
|
|
52
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isRepeatable:{type:new qe(fn),resolve:t=>t.isRepeatable},locations:{type:new qe(new Ut(new qe(Ed))),resolve:t=>t.locations},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:fn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}}})}),Ed=new yo({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Te.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Te.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Te.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Te.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Te.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Te.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Te.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Te.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Te.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Te.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Te.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Te.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Te.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Te.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Te.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Te.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Te.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Te.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Te.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Dn=new Ln({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new qe(xd),resolve(t){if(kn(t))return ot.SCALAR;if(Ue(t))return ot.OBJECT;if(Ke(t))return ot.INTERFACE;if(St(t))return ot.UNION;if(xt(t))return ot.ENUM;if(ct(t))return ot.INPUT_OBJECT;if(at(t))return ot.LIST;if(Ie(t))return ot.NON_NULL;_t(!1,`Unexpected type: "${ae(t)}".`)}},name:{type:yt,resolve:t=>"name"in t?t.name:void 0},description:{type:yt,resolve:t=>"description"in t?t.description:void 0},specifiedByURL:{type:yt,resolve:t=>"specifiedByURL"in t?t.specifiedByURL:void 0},fields:{type:new Ut(new qe(_d)),args:{includeDeprecated:{type:fn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(Ue(t)||Ke(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},interfaces:{type:new Ut(new qe(Dn)),resolve(t){if(Ue(t)||Ke(t))return t.getInterfaces()}},possibleTypes:{type:new Ut(new qe(Dn)),resolve(t,e,n,{schema:o}){if(Er(t))return o.getPossibleTypes(t)}},enumValues:{type:new Ut(new qe(kd)),args:{includeDeprecated:{type:fn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(xt(t)){const n=t.getValues();return e?n:n.filter(o=>o.deprecationReason==null)}}},inputFields:{type:new Ut(new qe(Ra)),args:{includeDeprecated:{type:fn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){if(ct(t)){const n=Object.values(t.getFields());return e?n:n.filter(o=>o.deprecationReason==null)}}},ofType:{type:Dn,resolve:t=>"ofType"in t?t.ofType:void 0},isOneOf:{type:fn,resolve:t=>{if(ct(t))return t.isOneOf}}})}),_d=new Ln({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},args:{type:new qe(new Ut(new qe(Ra))),args:{includeDeprecated:{type:fn,defaultValue:!1}},resolve(t,{includeDeprecated:e}){return e?t.args:t.args.filter(n=>n.deprecationReason==null)}},type:{type:new qe(Dn),resolve:t=>t.type},isDeprecated:{type:new qe(fn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),Ra=new Ln({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},type:{type:new qe(Dn),resolve:t=>t.type},defaultValue:{type:yt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(t){const{type:e,defaultValue:n}=t,o=jr(n,e);return o?Je(o):null}},isDeprecated:{type:new qe(fn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})}),kd=new Ln({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new qe(yt),resolve:t=>t.name},description:{type:yt,resolve:t=>t.description},isDeprecated:{type:new qe(fn),resolve:t=>t.deprecationReason!=null},deprecationReason:{type:yt,resolve:t=>t.deprecationReason}})});var ot;(function(t){t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.INPUT_OBJECT="INPUT_OBJECT",t.LIST="LIST",t.NON_NULL="NON_NULL"})(ot||(ot={}));const xd=new yo({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ot.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ot.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ot.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ot.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ot.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ot.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ot.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ot.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ma={name:"__schema",type:new qe(Ql),description:"Access the current type schema of this server.",args:[],resolve:(t,e,n,{schema:o})=>o,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},va={name:"__type",type:Dn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new qe(yt),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(t,{name:e},n,{schema:o})=>o.getType(e),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ga={name:"__typename",type:new qe(yt),description:"The name of the current Object type at runtime.",args:[],resolve:(t,e,n,{parentType:o})=>o.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ma=Object.freeze([Ql,bd,Ed,Dn,_d,Ra,kd,xd]);function si(t){return Ma.some(({name:e})=>t.name===e)}function fl(t){return Zn(t,ls)}function wd(t){if(!fl(t))throw new Error(`Expected ${ae(t)} to be a GraphQL schema.`);return t}class ls{constructor(e){var n,o;this.__validationErrors=e.assumeValid===!0?[]:void 0,yn(e)||Pe(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Pe(!1,`"types" must be Array if provided but got: ${ae(e.types)}.`),!e.directives||Array.isArray(e.directives)||Pe(!1,`"directives" must be Array if provided but got: ${ae(e.directives)}.`),this.description=e.description,this.extensions=qn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=(n=e.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=(o=e.directives)!==null&&o!==void 0?o:ko;const i=new Set(e.types);if(e.types!=null)for(const a of e.types)i.delete(a),Wn(a,i);this._queryType!=null&&Wn(this._queryType,i),this._mutationType!=null&&Wn(this._mutationType,i),this._subscriptionType!=null&&Wn(this._subscriptionType,i);for(const a of this._directives)if(Gl(a))for(const c of a.args)Wn(c.type,i);Wn(Ql,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const a of i){if(a==null)continue;const c=a.name;if(c||Pe(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[c]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${c}".`);if(this._typeMap[c]=a,Ke(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.interfaces.push(a)}}else if(Ue(a)){for(const f of a.getInterfaces())if(Ke(f)){let d=this._implementationsMap[f.name];d===void 0&&(d=this._implementationsMap[f.name]={objects:[],interfaces:[]}),d.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case Ft.QUERY:return this.getQueryType();case Ft.MUTATION:return this.getMutationType();case Ft.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return St(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const n=this._implementationsMap[e.name];return n??{objects:[],interfaces:[]}}isSubType(e,n){let o=this._subTypeMap[e.name];if(o===void 0){if(o=Object.create(null),St(e))for(const i of e.getTypes())o[i.name]=!0;else{const i=this.getImplementations(e);for(const a of i.objects)o[a.name]=!0;for(const a of i.interfaces)o[a.name]=!0}this._subTypeMap[e.name]=o}return o[n.name]!==void 0}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(n=>n.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function Wn(t,e){const n=Rt(t);if(!e.has(n)){if(e.add(n),St(n))for(const o of n.getTypes())Wn(o,e);else if(Ue(n)||Ke(n)){for(const o of n.getInterfaces())Wn(o,e);for(const o of Object.values(n.getFields())){Wn(o.type,e);for(const i of o.args)Wn(i.type,e)}}else if(ct(n))for(const o of Object.values(n.getFields()))Wn(o.type,e)}return e}function Yl(t){if(wd(t),t.__validationErrors)return t.__validationErrors;const e=new hw(t);mw(e),vw(e),gw(e);const n=e.getErrors();return t.__validationErrors=n,n}function $d(t){const e=Yl(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
|
|
53
|
+
|
|
54
|
+
`))}class hw{constructor(e){this._errors=[],this.schema=e}reportError(e,n){const o=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new re(e,{nodes:o}))}getErrors(){return this._errors}}function mw(t){const e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!Ue(n)){var o;t.reportError(`Query root type must be Object type, it cannot be ${ae(n)}.`,(o=jf(e,Ft.QUERY))!==null&&o!==void 0?o:n.astNode)}const i=e.getMutationType();if(i&&!Ue(i)){var a;t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ae(i)}.`,(a=jf(e,Ft.MUTATION))!==null&&a!==void 0?a:i.astNode)}const c=e.getSubscriptionType();if(c&&!Ue(c)){var f;t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ae(c)}.`,(f=jf(e,Ft.SUBSCRIPTION))!==null&&f!==void 0?f:c.astNode)}}function jf(t,e){var n;return(n=[t.astNode,...t.extensionASTNodes].flatMap(o=>{var i;return(i=o==null?void 0:o.operationTypes)!==null&&i!==void 0?i:[]}).find(o=>o.operation===e))===null||n===void 0?void 0:n.type}function vw(t){for(const n of t.schema.getDirectives()){if(!Gl(n)){t.reportError(`Expected directive but got: ${ae(n)}.`,n==null?void 0:n.astNode);continue}Xo(t,n);for(const o of n.args)if(Xo(t,o),un(o.type)||t.reportError(`The type of @${n.name}(${o.name}:) must be Input Type but got: ${ae(o.type)}.`,o.astNode),_o(o)&&o.deprecationReason!=null){var e;t.reportError(`Required argument @${n.name}(${o.name}:) cannot be deprecated.`,[Cd(o.astNode),(e=o.astNode)===null||e===void 0?void 0:e.type])}}}function Xo(t,e){e.name.startsWith("__")&&t.reportError(`Name "${e.name}" must not begin with "__", which is reserved by GraphQL introspection.`,e.astNode)}function gw(t){const e=ww(t),n=t.schema.getTypeMap();for(const o of Object.values(n)){if(!cs(o)){t.reportError(`Expected GraphQL named type but got: ${ae(o)}.`,o.astNode);continue}si(o)||Xo(t,o),Ue(o)||Ke(o)?(eg(t,o),tg(t,o)):St(o)?Ew(t,o):xt(o)?_w(t,o):ct(o)&&(kw(t,o),e(o))}}function eg(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const c of n){if(Xo(t,c),!vo(c.type)){var o;t.reportError(`The type of ${e.name}.${c.name} must be Output Type but got: ${ae(c.type)}.`,(o=c.astNode)===null||o===void 0?void 0:o.type)}for(const f of c.args){const d=f.name;if(Xo(t,f),!un(f.type)){var i;t.reportError(`The type of ${e.name}.${c.name}(${d}:) must be Input Type but got: ${ae(f.type)}.`,(i=f.astNode)===null||i===void 0?void 0:i.type)}if(_o(f)&&f.deprecationReason!=null){var a;t.reportError(`Required argument ${e.name}.${c.name}(${d}:) cannot be deprecated.`,[Cd(f.astNode),(a=f.astNode)===null||a===void 0?void 0:a.type])}}}}function tg(t,e){const n=Object.create(null);for(const o of e.getInterfaces()){if(!Ke(o)){t.reportError(`Type ${ae(e)} must only implement Interface types, it cannot implement ${ae(o)}.`,ca(e,o));continue}if(e===o){t.reportError(`Type ${e.name} cannot implement itself because it would create a circular reference.`,ca(e,o));continue}if(n[o.name]){t.reportError(`Type ${e.name} can only implement ${o.name} once.`,ca(e,o));continue}n[o.name]=!0,bw(t,e,o),yw(t,e,o)}}function yw(t,e,n){const o=e.getFields();for(const d of Object.values(n.getFields())){const h=d.name,v=o[h];if(!v){t.reportError(`Interface field ${n.name}.${h} expected but ${e.name} does not provide it.`,[d.astNode,e.astNode,...e.extensionASTNodes]);continue}if(!Qo(t.schema,v.type,d.type)){var i,a;t.reportError(`Interface field ${n.name}.${h} expects type ${ae(d.type)} but ${e.name}.${h} is type ${ae(v.type)}.`,[(i=d.astNode)===null||i===void 0?void 0:i.type,(a=v.astNode)===null||a===void 0?void 0:a.type])}for(const y of d.args){const g=y.name,E=v.args.find(C=>C.name===g);if(!E){t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expected but ${e.name}.${h} does not provide it.`,[y.astNode,v.astNode]);continue}if(!ul(y.type,E.type)){var c,f;t.reportError(`Interface field argument ${n.name}.${h}(${g}:) expects type ${ae(y.type)} but ${e.name}.${h}(${g}:) is type ${ae(E.type)}.`,[(c=y.astNode)===null||c===void 0?void 0:c.type,(f=E.astNode)===null||f===void 0?void 0:f.type])}}for(const y of v.args){const g=y.name;!d.args.find(C=>C.name===g)&&_o(y)&&t.reportError(`Object field ${e.name}.${h} includes required argument ${g} that is missing from the Interface field ${n.name}.${h}.`,[y.astNode,d.astNode])}}}function bw(t,e,n){const o=e.getInterfaces();for(const i of n.getInterfaces())o.includes(i)||t.reportError(i===e?`Type ${e.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${e.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...ca(n,i),...ca(e,n)])}function Ew(t,e){const n=e.getTypes();n.length===0&&t.reportError(`Union type ${e.name} must define one or more member types.`,[e.astNode,...e.extensionASTNodes]);const o=Object.create(null);for(const i of n){if(o[i.name]){t.reportError(`Union type ${e.name} can only include type ${i.name} once.`,ng(e,i.name));continue}o[i.name]=!0,Ue(i)||t.reportError(`Union type ${e.name} can only include Object types, it cannot include ${ae(i)}.`,ng(e,String(i)))}}function _w(t,e){const n=e.getValues();n.length===0&&t.reportError(`Enum type ${e.name} must define one or more values.`,[e.astNode,...e.extensionASTNodes]);for(const o of n)Xo(t,o)}function kw(t,e){const n=Object.values(e.getFields());n.length===0&&t.reportError(`Input Object type ${e.name} must define one or more fields.`,[e.astNode,...e.extensionASTNodes]);for(const a of n){if(Xo(t,a),!un(a.type)){var o;t.reportError(`The type of ${e.name}.${a.name} must be Input Type but got: ${ae(a.type)}.`,(o=a.astNode)===null||o===void 0?void 0:o.type)}if(zl(a)&&a.deprecationReason!=null){var i;t.reportError(`Required input field ${e.name}.${a.name} cannot be deprecated.`,[Cd(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}e.isOneOf&&xw(e,a,t)}}function xw(t,e,n){if(Ie(e.type)){var o;n.reportError(`OneOf input field ${t.name}.${e.name} must be nullable.`,(o=e.astNode)===null||o===void 0?void 0:o.type)}e.defaultValue!==void 0&&n.reportError(`OneOf input field ${t.name}.${e.name} cannot have a default value.`,e.astNode)}function ww(t){const e=Object.create(null),n=[],o=Object.create(null);return i;function i(a){if(e[a.name])return;e[a.name]=!0,o[a.name]=n.length;const c=Object.values(a.getFields());for(const f of c)if(Ie(f.type)&&ct(f.type.ofType)){const d=f.type.ofType,h=o[d.name];if(n.push(f),h===void 0)i(d);else{const v=n.slice(h),y=v.map(g=>g.name).join(".");t.reportError(`Cannot reference Input Object "${d.name}" within itself through a series of non-null fields: "${y}".`,v.map(g=>g.astNode))}n.pop()}o[a.name]=void 0}}function ca(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var c;return(c=a.interfaces)!==null&&c!==void 0?c:[]}).filter(a=>a.name.value===e.name)}function ng(t,e){const{astNode:n,extensionASTNodes:o}=t;return(n!=null?[n,...o]:o).flatMap(a=>{var c;return(c=a.types)!==null&&c!==void 0?c:[]}).filter(a=>a.name.value===e)}function Cd(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(n=>n.name.value===Wl.name)}function nn(t,e){switch(e.kind){case F.LIST_TYPE:{const n=nn(t,e.type);return n&&new Ut(n)}case F.NON_NULL_TYPE:{const n=nn(t,e.type);return n&&new qe(n)}case F.NAMED_TYPE:return t.getType(e.name.value)}}class ai{constructor(e,n,o){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=o??$w,n&&(un(n)&&this._inputTypeStack.push(n),_r(n)&&this._parentTypeStack.push(n),vo(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const n=this._schema;switch(e.kind){case F.SELECTION_SET:{const i=Rt(this.getType());this._parentTypeStack.push(_r(i)?i:void 0);break}case F.FIELD:{const i=this.getParentType();let a,c;i&&(a=this._getFieldDef(n,i,e),a&&(c=a.type)),this._fieldDefStack.push(a),this._typeStack.push(vo(c)?c:void 0);break}case F.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case F.OPERATION_DEFINITION:{const i=n.getRootType(e.operation);this._typeStack.push(Ue(i)?i:void 0);break}case F.INLINE_FRAGMENT:case F.FRAGMENT_DEFINITION:{const i=e.typeCondition,a=i?nn(n,i):Rt(this.getType());this._typeStack.push(vo(a)?a:void 0);break}case F.VARIABLE_DEFINITION:{const i=nn(n,e.type);this._inputTypeStack.push(un(i)?i:void 0);break}case F.ARGUMENT:{var o;let i,a;const c=(o=this.getDirective())!==null&&o!==void 0?o:this.getFieldDef();c&&(i=c.args.find(f=>f.name===e.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(un(a)?a:void 0);break}case F.LIST:{const i=ad(this.getInputType()),a=at(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(a)?a:void 0);break}case F.OBJECT_FIELD:{const i=Rt(this.getInputType());let a,c;ct(i)&&(c=i.getFields()[e.name.value],c&&(a=c.type)),this._defaultValueStack.push(c?c.defaultValue:void 0),this._inputTypeStack.push(un(a)?a:void 0);break}case F.ENUM:{const i=Rt(this.getInputType());let a;xt(i)&&(a=i.getValue(e.value)),this._enumValue=a;break}}}leave(e){switch(e.kind){case F.SELECTION_SET:this._parentTypeStack.pop();break;case F.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case F.DIRECTIVE:this._directive=null;break;case F.OPERATION_DEFINITION:case F.INLINE_FRAGMENT:case F.FRAGMENT_DEFINITION:this._typeStack.pop();break;case F.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case F.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case F.LIST:case F.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case F.ENUM:this._enumValue=null;break}}}function $w(t,e,n){const o=n.name.value;if(o===ma.name&&t.getQueryType()===e)return ma;if(o===va.name&&t.getQueryType()===e)return va;if(o===ga.name&&_r(e))return ga;if(Ue(e)||Ke(e))return e.getFields()[o]}function qa(t,e){return{enter(...n){const o=n[0];t.enter(o);const i=Yi(e,o.kind).enter;if(i){const a=i.apply(e,n);return a!==void 0&&(t.leave(o),gp(a)&&t.enter(a)),a}},leave(...n){const o=n[0],i=Yi(e,o.kind).leave;let a;return i&&(a=i.apply(e,n)),t.leave(o),a}}}function Cw(t){return Ad(t)||Sd(t)||Td(t)}function Ad(t){return t.kind===F.OPERATION_DEFINITION||t.kind===F.FRAGMENT_DEFINITION}function Aw(t){return t.kind===F.FIELD||t.kind===F.FRAGMENT_SPREAD||t.kind===F.INLINE_FRAGMENT}function x0(t){return t.kind===F.VARIABLE||t.kind===F.INT||t.kind===F.FLOAT||t.kind===F.STRING||t.kind===F.BOOLEAN||t.kind===F.NULL||t.kind===F.ENUM||t.kind===F.LIST||t.kind===F.OBJECT}function _p(t){return x0(t)&&(t.kind===F.LIST?t.values.some(_p):t.kind===F.OBJECT?t.fields.some(e=>_p(e.value)):t.kind!==F.VARIABLE)}function Sw(t){return t.kind===F.NAMED_TYPE||t.kind===F.LIST_TYPE||t.kind===F.NON_NULL_TYPE}function Sd(t){return t.kind===F.SCHEMA_DEFINITION||us(t)||t.kind===F.DIRECTIVE_DEFINITION}function us(t){return t.kind===F.SCALAR_TYPE_DEFINITION||t.kind===F.OBJECT_TYPE_DEFINITION||t.kind===F.INTERFACE_TYPE_DEFINITION||t.kind===F.UNION_TYPE_DEFINITION||t.kind===F.ENUM_TYPE_DEFINITION||t.kind===F.INPUT_OBJECT_TYPE_DEFINITION}function Td(t){return t.kind===F.SCHEMA_EXTENSION||Jl(t)}function Jl(t){return t.kind===F.SCALAR_TYPE_EXTENSION||t.kind===F.OBJECT_TYPE_EXTENSION||t.kind===F.INTERFACE_TYPE_EXTENSION||t.kind===F.UNION_TYPE_EXTENSION||t.kind===F.ENUM_TYPE_EXTENSION||t.kind===F.INPUT_OBJECT_TYPE_EXTENSION}function w0(t){return{Document(e){for(const n of e.definitions)if(!Ad(n)){const o=n.kind===F.SCHEMA_DEFINITION||n.kind===F.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';t.reportError(new re(`The ${o} definition is not executable.`,{nodes:n}))}return!1}}}function $0(t){return{Field(e){const n=t.getParentType();if(n&&!t.getFieldDef()){const i=t.getSchema(),a=e.name.value;let c=Hr("to use an inline fragment on",Tw(i,n,a));c===""&&(c=Hr(Dw(n,a))),t.reportError(new re(`Cannot query field "${a}" on type "${n.name}".`+c,{nodes:e}))}}}}function Tw(t,e,n){if(!Er(e))return[];const o=new Set,i=Object.create(null);for(const c of t.getPossibleTypes(e))if(c.getFields()[n]){o.add(c),i[c.name]=1;for(const f of c.getInterfaces()){var a;f.getFields()[n]&&(o.add(f),i[f.name]=((a=i[f.name])!==null&&a!==void 0?a:0)+1)}}return[...o].sort((c,f)=>{const d=i[f.name]-i[c.name];return d!==0?d:Ke(c)&&t.isSubType(c,f)?-1:Ke(f)&&t.isSubType(f,c)?1:Oa(c.name,f.name)}).map(c=>c.name)}function Dw(t,e){if(Ue(t)||Ke(t)){const n=Object.keys(t.getFields());return Eo(e,n)}return[]}function C0(t){return{InlineFragment(e){const n=e.typeCondition;if(n){const o=nn(t.getSchema(),n);if(o&&!_r(o)){const i=Je(n);t.reportError(new re(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(e){const n=nn(t.getSchema(),e.typeCondition);if(n&&!_r(n)){const o=Je(e.typeCondition);t.reportError(new re(`Fragment "${e.name.value}" cannot condition on non composite type "${o}".`,{nodes:e.typeCondition}))}}}}function A0(t){return{...S0(t),Argument(e){const n=t.getArgument(),o=t.getFieldDef(),i=t.getParentType();if(!n&&o&&i){const a=e.name.value,c=o.args.map(d=>d.name),f=Eo(a,c);t.reportError(new re(`Unknown argument "${a}" on field "${i.name}.${o.name}".`+Hr(f),{nodes:e}))}}}}function S0(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const c of o)e[c.name]=c.args.map(f=>f.name);const i=t.getDocument().definitions;for(const c of i)if(c.kind===F.DIRECTIVE_DEFINITION){var a;const f=(a=c.arguments)!==null&&a!==void 0?a:[];e[c.name.value]=f.map(d=>d.name.value)}return{Directive(c){const f=c.name.value,d=e[f];if(c.arguments&&d)for(const h of c.arguments){const v=h.name.value;if(!d.includes(v)){const y=Eo(v,d);t.reportError(new re(`Unknown argument "${v}" on directive "@${f}".`+Hr(y),{nodes:h}))}}return!1}}}function Dd(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const a of o)e[a.name]=a.locations;const i=t.getDocument().definitions;for(const a of i)a.kind===F.DIRECTIVE_DEFINITION&&(e[a.name.value]=a.locations.map(c=>c.value));return{Directive(a,c,f,d,h){const v=a.name.value,y=e[v];if(!y){t.reportError(new re(`Unknown directive "@${v}".`,{nodes:a}));return}const g=Nw(h);g&&!y.includes(g)&&t.reportError(new re(`Directive "@${v}" may not be used on ${g}.`,{nodes:a}))}}}function Nw(t){const e=t[t.length-1];switch("kind"in e||_t(!1),e.kind){case F.OPERATION_DEFINITION:return Ow(e.operation);case F.FIELD:return Te.FIELD;case F.FRAGMENT_SPREAD:return Te.FRAGMENT_SPREAD;case F.INLINE_FRAGMENT:return Te.INLINE_FRAGMENT;case F.FRAGMENT_DEFINITION:return Te.FRAGMENT_DEFINITION;case F.VARIABLE_DEFINITION:return Te.VARIABLE_DEFINITION;case F.SCHEMA_DEFINITION:case F.SCHEMA_EXTENSION:return Te.SCHEMA;case F.SCALAR_TYPE_DEFINITION:case F.SCALAR_TYPE_EXTENSION:return Te.SCALAR;case F.OBJECT_TYPE_DEFINITION:case F.OBJECT_TYPE_EXTENSION:return Te.OBJECT;case F.FIELD_DEFINITION:return Te.FIELD_DEFINITION;case F.INTERFACE_TYPE_DEFINITION:case F.INTERFACE_TYPE_EXTENSION:return Te.INTERFACE;case F.UNION_TYPE_DEFINITION:case F.UNION_TYPE_EXTENSION:return Te.UNION;case F.ENUM_TYPE_DEFINITION:case F.ENUM_TYPE_EXTENSION:return Te.ENUM;case F.ENUM_VALUE_DEFINITION:return Te.ENUM_VALUE;case F.INPUT_OBJECT_TYPE_DEFINITION:case F.INPUT_OBJECT_TYPE_EXTENSION:return Te.INPUT_OBJECT;case F.INPUT_VALUE_DEFINITION:{const n=t[t.length-3];return"kind"in n||_t(!1),n.kind===F.INPUT_OBJECT_TYPE_DEFINITION?Te.INPUT_FIELD_DEFINITION:Te.ARGUMENT_DEFINITION}default:_t(!1,"Unexpected kind: "+ae(e.kind))}}function Ow(t){switch(t){case Ft.QUERY:return Te.QUERY;case Ft.MUTATION:return Te.MUTATION;case Ft.SUBSCRIPTION:return Te.SUBSCRIPTION}}function T0(t){return{FragmentSpread(e){const n=e.name.value;t.getFragment(n)||t.reportError(new re(`Unknown fragment "${n}".`,{nodes:e.name}))}}}function Nd(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);for(const a of t.getDocument().definitions)us(a)&&(o[a.name.value]=!0);const i=[...Object.keys(n),...Object.keys(o)];return{NamedType(a,c,f,d,h){const v=a.name.value;if(!n[v]&&!o[v]){var y;const g=(y=h[2])!==null&&y!==void 0?y:f,E=g!=null&&Iw(g);if(E&&rg.includes(v))return;const C=Eo(v,E?rg.concat(i):i);t.reportError(new re(`Unknown type "${v}".`+Hr(C),{nodes:a}))}}}}const rg=[...La,...Ma].map(t=>t.name);function Iw(t){return"kind"in t&&(Sd(t)||Td(t))}function D0(t){let e=0;return{Document(n){e=n.definitions.filter(o=>o.kind===F.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&e>1&&t.reportError(new re("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function N0(t){var e,n,o;const i=t.getSchema(),a=(e=(n=(o=i==null?void 0:i.astNode)!==null&&o!==void 0?o:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType();let c=0;return{SchemaDefinition(f){if(a){t.reportError(new re("Cannot define a new schema within a schema extension.",{nodes:f}));return}c>0&&t.reportError(new re("Must provide only one schema definition.",{nodes:f})),++c}}}const Lw=3;function O0(t){function e(n,o=Object.create(null),i=0){if(n.kind===F.FRAGMENT_SPREAD){const a=n.name.value;if(o[a]===!0)return!1;const c=t.getFragment(a);if(!c)return!1;try{return o[a]=!0,e(c,o,i)}finally{o[a]=void 0}}if(n.kind===F.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=Lw))return!0;if("selectionSet"in n&&n.selectionSet){for(const a of n.selectionSet.selections)if(e(a,o,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&e(n))return t.reportError(new re("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function I0(t){const e=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(e[a.name.value])return;const c=a.name.value;e[c]=!0;const f=t.getFragmentSpreads(a.selectionSet);if(f.length!==0){o[c]=n.length;for(const d of f){const h=d.name.value,v=o[h];if(n.push(d),v===void 0){const y=t.getFragment(h);y&&i(y)}else{const y=n.slice(v),g=y.slice(0,-1).map(E=>'"'+E.name.value+'"').join(", ");t.reportError(new re(`Cannot spread fragment "${h}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}o[c]=void 0}}}function L0(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i}of o){const a=i.name.value;e[a]!==!0&&t.reportError(new re(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){e[n.variable.name.value]=!0}}}function F0(t){const e=[],n=[];return{OperationDefinition(o){return e.push(o),!1},FragmentDefinition(o){return n.push(o),!1},Document:{leave(){const o=Object.create(null);for(const i of e)for(const a of t.getRecursivelyReferencedFragments(i))o[a.name.value]=!0;for(const i of n){const a=i.name.value;o[a]!==!0&&t.reportError(new re(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}function R0(t){let e=[];return{OperationDefinition:{enter(){e=[]},leave(n){const o=Object.create(null),i=t.getRecursiveVariableUsages(n);for(const{node:a}of i)o[a.name.value]=!0;for(const a of e){const c=a.variable.name.value;o[c]!==!0&&t.reportError(new re(n.name?`Variable "$${c}" is never used in operation "${n.name.value}".`:`Variable "$${c}" is never used.`,{nodes:a}))}}},VariableDefinition(n){e.push(n)}}}function Zl(t){switch(t.kind){case F.OBJECT:return{...t,fields:Fw(t.fields)};case F.LIST:return{...t,values:t.values.map(Zl)};case F.INT:case F.FLOAT:case F.STRING:case F.BOOLEAN:case F.NULL:case F.ENUM:case F.VARIABLE:return t}}function Fw(t){return t.map(e=>({...e,value:Zl(e.value)})).sort((e,n)=>Oa(e.name.value,n.name.value))}function M0(t){return Array.isArray(t)?t.map(([e,n])=>`subfields "${e}" conflict because `+M0(n)).join(" and "):t}function q0(t){const e=new Vw,n=new Map;return{SelectionSet(o){const i=Rw(t,n,e,t.getParentType(),o);for(const[[a,c],f,d]of i){const h=M0(c);t.reportError(new re(`Fields "${a}" conflict because ${h}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:f.concat(d)}))}}}}function Rw(t,e,n,o,i){const a=[],[c,f]=hl(t,e,o,i);if(qw(t,a,e,n,c),f.length!==0)for(let d=0;d<f.length;d++){pl(t,a,e,n,!1,c,f[d]);for(let h=d+1;h<f.length;h++)dl(t,a,e,n,!1,f[d],f[h])}return a}function pl(t,e,n,o,i,a,c){const f=t.getFragment(c);if(!f)return;const[d,h]=xp(t,n,f);if(a!==d){Od(t,e,n,o,i,a,d);for(const v of h)o.has(v,c,i)||(o.add(v,c,i),pl(t,e,n,o,i,a,v))}}function dl(t,e,n,o,i,a,c){if(a===c||o.has(a,c,i))return;o.add(a,c,i);const f=t.getFragment(a),d=t.getFragment(c);if(!f||!d)return;const[h,v]=xp(t,n,f),[y,g]=xp(t,n,d);Od(t,e,n,o,i,h,y);for(const E of g)dl(t,e,n,o,i,a,E);for(const E of v)dl(t,e,n,o,i,E,c)}function Mw(t,e,n,o,i,a,c,f){const d=[],[h,v]=hl(t,e,i,a),[y,g]=hl(t,e,c,f);Od(t,d,e,n,o,h,y);for(const E of g)pl(t,d,e,n,o,h,E);for(const E of v)pl(t,d,e,n,o,y,E);for(const E of v)for(const C of g)dl(t,d,e,n,o,E,C);return d}function qw(t,e,n,o,i){for(const[a,c]of Object.entries(i))if(c.length>1)for(let f=0;f<c.length;f++)for(let d=f+1;d<c.length;d++){const h=P0(t,n,o,!1,a,c[f],c[d]);h&&e.push(h)}}function Od(t,e,n,o,i,a,c){for(const[f,d]of Object.entries(a)){const h=c[f];if(h)for(const v of d)for(const y of h){const g=P0(t,n,o,i,f,v,y);g&&e.push(g)}}}function P0(t,e,n,o,i,a,c){const[f,d,h]=a,[v,y,g]=c,E=o||f!==v&&Ue(f)&&Ue(v);if(!E){const T=d.name.value,O=y.name.value;if(T!==O)return[[i,`"${T}" and "${O}" are different fields`],[d],[y]];if(!Pw(d,y))return[[i,"they have differing arguments"],[d],[y]]}const C=h==null?void 0:h.type,S=g==null?void 0:g.type;if(C&&S&&kp(C,S))return[[i,`they return conflicting types "${ae(C)}" and "${ae(S)}"`],[d],[y]];const N=d.selectionSet,D=y.selectionSet;if(N&&D){const T=Mw(t,e,n,E,Rt(C),N,Rt(S),D);return Bw(T,i,d,y)}}function Pw(t,e){const n=t.arguments,o=e.arguments;if(n===void 0||n.length===0)return o===void 0||o.length===0;if(o===void 0||o.length===0||n.length!==o.length)return!1;const i=new Map(o.map(({name:a,value:c})=>[a.value,c]));return n.every(a=>{const c=a.value,f=i.get(a.name.value);return f===void 0?!1:og(c)===og(f)})}function og(t){return Je(Zl(t))}function kp(t,e){return at(t)?at(e)?kp(t.ofType,e.ofType):!0:at(e)?!0:Ie(t)?Ie(e)?kp(t.ofType,e.ofType):!0:Ie(e)?!0:dn(t)||dn(e)?t!==e:!1}function hl(t,e,n,o){const i=e.get(o);if(i)return i;const a=Object.create(null),c=Object.create(null);B0(t,n,o,a,c);const f=[a,Object.keys(c)];return e.set(o,f),f}function xp(t,e,n){const o=e.get(n.selectionSet);if(o)return o;const i=nn(t.getSchema(),n.typeCondition);return hl(t,e,i,n.selectionSet)}function B0(t,e,n,o,i){for(const a of n.selections)switch(a.kind){case F.FIELD:{const c=a.name.value;let f;(Ue(e)||Ke(e))&&(f=e.getFields()[c]);const d=a.alias?a.alias.value:c;o[d]||(o[d]=[]),o[d].push([e,a,f]);break}case F.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case F.INLINE_FRAGMENT:{const c=a.typeCondition,f=c?nn(t.getSchema(),c):e;B0(t,f,a.selectionSet,o,i);break}}}function Bw(t,e,n,o){if(t.length>0)return[[e,t.map(([i])=>i)],[n,...t.map(([,i])=>i).flat()],[o,...t.map(([,,i])=>i).flat()]]}class Vw{constructor(){this._data=new Map}has(e,n,o){var i;const[a,c]=e<n?[e,n]:[n,e],f=(i=this._data.get(a))===null||i===void 0?void 0:i.get(c);return f===void 0?!1:o?!0:o===f}add(e,n,o){const[i,a]=e<n?[e,n]:[n,e],c=this._data.get(i);c===void 0?this._data.set(i,new Map([[a,o]])):c.set(a,o)}}function V0(t){return{InlineFragment(e){const n=t.getType(),o=t.getParentType();if(_r(n)&&_r(o)&&!Ep(t.getSchema(),n,o)){const i=ae(o),a=ae(n);t.reportError(new re(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:e}))}},FragmentSpread(e){const n=e.name.value,o=jw(t,n),i=t.getParentType();if(o&&i&&!Ep(t.getSchema(),o,i)){const a=ae(i),c=ae(o);t.reportError(new re(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${c}".`,{nodes:e}))}}}}function jw(t,e){const n=t.getFragment(e);if(n){const o=nn(t.getSchema(),n.typeCondition);if(_r(o))return o}}function j0(t){const e=t.getSchema(),n=Object.create(null);for(const i of t.getDocument().definitions)us(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:o,ObjectTypeExtension:o,InterfaceTypeExtension:o,UnionTypeExtension:o,EnumTypeExtension:o,InputObjectTypeExtension:o};function o(i){const a=i.name.value,c=n[a],f=e==null?void 0:e.getType(a);let d;if(c?d=Uw[c.kind]:f&&(d=zw(f)),d){if(d!==i.kind){const h=Hw(i.kind);t.reportError(new re(`Cannot extend non-${h} type "${a}".`,{nodes:c?[c,i]:i}))}}else{const h=Object.keys({...n,...e==null?void 0:e.getTypeMap()}),v=Eo(a,h);t.reportError(new re(`Cannot extend type "${a}" because it is not defined.`+Hr(v),{nodes:i.name}))}}}const Uw={[F.SCALAR_TYPE_DEFINITION]:F.SCALAR_TYPE_EXTENSION,[F.OBJECT_TYPE_DEFINITION]:F.OBJECT_TYPE_EXTENSION,[F.INTERFACE_TYPE_DEFINITION]:F.INTERFACE_TYPE_EXTENSION,[F.UNION_TYPE_DEFINITION]:F.UNION_TYPE_EXTENSION,[F.ENUM_TYPE_DEFINITION]:F.ENUM_TYPE_EXTENSION,[F.INPUT_OBJECT_TYPE_DEFINITION]:F.INPUT_OBJECT_TYPE_EXTENSION};function zw(t){if(kn(t))return F.SCALAR_TYPE_EXTENSION;if(Ue(t))return F.OBJECT_TYPE_EXTENSION;if(Ke(t))return F.INTERFACE_TYPE_EXTENSION;if(St(t))return F.UNION_TYPE_EXTENSION;if(xt(t))return F.ENUM_TYPE_EXTENSION;if(ct(t))return F.INPUT_OBJECT_TYPE_EXTENSION;_t(!1,"Unexpected type: "+ae(t))}function Hw(t){switch(t){case F.SCALAR_TYPE_EXTENSION:return"scalar";case F.OBJECT_TYPE_EXTENSION:return"object";case F.INTERFACE_TYPE_EXTENSION:return"interface";case F.UNION_TYPE_EXTENSION:return"union";case F.ENUM_TYPE_EXTENSION:return"enum";case F.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:_t(!1,"Unexpected kind: "+ae(t))}}function U0(t){return{...z0(t),Field:{leave(e){var n;const o=t.getFieldDef();if(!o)return!1;const i=new Set((n=e.arguments)===null||n===void 0?void 0:n.map(a=>a.name.value));for(const a of o.args)if(!i.has(a.name)&&_o(a)){const c=ae(a.type);t.reportError(new re(`Field "${o.name}" argument "${a.name}" of type "${c}" is required, but it was not provided.`,{nodes:e}))}}}}}function z0(t){var e;const n=Object.create(null),o=t.getSchema(),i=(e=o==null?void 0:o.getDirectives())!==null&&e!==void 0?e:ko;for(const f of i)n[f.name]=Gr(f.args.filter(_o),d=>d.name);const a=t.getDocument().definitions;for(const f of a)if(f.kind===F.DIRECTIVE_DEFINITION){var c;const d=(c=f.arguments)!==null&&c!==void 0?c:[];n[f.name.value]=Gr(d.filter(Gw),h=>h.name.value)}return{Directive:{leave(f){const d=f.name.value,h=n[d];if(h){var v;const y=(v=f.arguments)!==null&&v!==void 0?v:[],g=new Set(y.map(E=>E.name.value));for(const[E,C]of Object.entries(h))if(!g.has(E)){const S=go(C.type)?ae(C.type):Je(C.type);t.reportError(new re(`Directive "@${d}" argument "${E}" of type "${S}" is required, but it was not provided.`,{nodes:f}))}}}}}}function Gw(t){return t.type.kind===F.NON_NULL_TYPE&&t.defaultValue==null}function H0(t){return{Field(e){const n=t.getType(),o=e.selectionSet;if(n){if(dn(Rt(n))){if(o){const i=e.name.value,a=ae(n);t.reportError(new re(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:o}))}}else if(!o){const i=e.name.value,a=ae(n);t.reportError(new re(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:e}))}}}}}function G0(t){return t.map(e=>typeof e=="number"?"["+e.toString()+"]":"."+e).join("")}function Ki(t,e,n){return{prev:t,key:e,typename:n}}function tn(t){const e=[];let n=t;for(;n;)e.push(n.key),n=n.prev;return e.reverse()}function W0(t,e,n=Ww){return oa(t,e,n,void 0)}function Ww(t,e,n){let o="Invalid value "+ae(e);throw t.length>0&&(o+=` at "value${G0(t)}"`),n.message=o+": "+n.message,n}function oa(t,e,n,o){if(Ie(e)){if(t!=null)return oa(t,e.ofType,n,o);n(tn(o),t,new re(`Expected non-nullable type "${ae(e)}" not to be null.`));return}if(t==null)return null;if(at(e)){const i=e.ofType;return yd(t)?Array.from(t,(a,c)=>{const f=Ki(o,c,void 0);return oa(a,i,n,f)}):[oa(t,i,n,o)]}if(ct(e)){if(!yn(t)){n(tn(o),t,new re(`Expected type "${e.name}" to be an object.`));return}const i={},a=e.getFields();for(const c of Object.values(a)){const f=t[c.name];if(f===void 0){if(c.defaultValue!==void 0)i[c.name]=c.defaultValue;else if(Ie(c.type)){const d=ae(c.type);n(tn(o),t,new re(`Field "${c.name}" of required type "${d}" was not provided.`))}continue}i[c.name]=oa(f,c.type,n,Ki(o,c.name,e.name))}for(const c of Object.keys(t))if(!a[c]){const f=Eo(c,Object.keys(e.getFields()));n(tn(o),t,new re(`Field "${c}" is not defined by type "${e.name}".`+Hr(f)))}if(e.isOneOf){const c=Object.keys(i);c.length!==1&&n(tn(o),t,new re(`Exactly one key must be specified for OneOf type "${e.name}".`));const f=c[0],d=i[f];d===null&&n(tn(o).concat(f),d,new re(`Field "${f}" must be non-null.`))}return i}if(dn(e)){let i;try{i=e.parseValue(t)}catch(a){a instanceof re?n(tn(o),t,a):n(tn(o),t,new re(`Expected type "${e.name}". `+a.message,{originalError:a}));return}return i===void 0&&n(tn(o),t,new re(`Expected type "${e.name}".`)),i}_t(!1,"Unexpected input type: "+ae(e))}function gr(t,e,n){if(t){if(t.kind===F.VARIABLE){const o=t.name.value;if(n==null||n[o]===void 0)return;const i=n[o];return i===null&&Ie(e)?void 0:i}if(Ie(e))return t.kind===F.NULL?void 0:gr(t,e.ofType,n);if(t.kind===F.NULL)return null;if(at(e)){const o=e.ofType;if(t.kind===F.LIST){const a=[];for(const c of t.values)if(ig(c,n)){if(Ie(o))return;a.push(null)}else{const f=gr(c,o,n);if(f===void 0)return;a.push(f)}return a}const i=gr(t,o,n);return i===void 0?void 0:[i]}if(ct(e)){if(t.kind!==F.OBJECT)return;const o=Object.create(null),i=Gr(t.fields,a=>a.name.value);for(const a of Object.values(e.getFields())){const c=i[a.name];if(!c||ig(c.value,n)){if(a.defaultValue!==void 0)o[a.name]=a.defaultValue;else if(Ie(a.type))return;continue}const f=gr(c.value,a.type,n);if(f===void 0)return;o[a.name]=f}if(e.isOneOf){const a=Object.keys(o);if(a.length!==1||o[a[0]]===null)return}return o}if(dn(e)){let o;try{o=e.parseLiteral(t,n)}catch{return}return o===void 0?void 0:o}_t(!1,"Unexpected input type: "+ae(e))}}function ig(t,e){return t.kind===F.VARIABLE&&(e==null||e[t.name.value]===void 0)}function Q0(t,e,n,o){const i=[],a=o==null?void 0:o.maxErrors;try{const c=Qw(t,e,n,f=>{if(a!=null&&i.length>=a)throw new re("Too many errors processing variables, error limit reached. Execution aborted.");i.push(f)});if(i.length===0)return{coerced:c}}catch(c){i.push(c)}return{errors:i}}function Qw(t,e,n,o){const i={};for(const a of e){const c=a.variable.name.value,f=nn(t,a.type);if(!un(f)){const h=Je(a.type);o(new re(`Variable "$${c}" expected value of type "${h}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!Y0(n,c)){if(a.defaultValue)i[c]=gr(a.defaultValue,f);else if(Ie(f)){const h=ae(f);o(new re(`Variable "$${c}" of required type "${h}" was not provided.`,{nodes:a}))}continue}const d=n[c];if(d===null&&Ie(f)){const h=ae(f);o(new re(`Variable "$${c}" of non-null type "${h}" must not be null.`,{nodes:a}));continue}i[c]=W0(d,f,(h,v,y)=>{let g=`Variable "$${c}" got invalid value `+ae(v);h.length>0&&(g+=` at "${c}${G0(h)}"`),o(new re(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Xl(t,e,n){var o;const i={},a=(o=e.arguments)!==null&&o!==void 0?o:[],c=Gr(a,f=>f.name.value);for(const f of t.args){const d=f.name,h=f.type,v=c[d];if(!v){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new re(`Argument "${d}" of required type "${ae(h)}" was not provided.`,{nodes:e});continue}const y=v.value;let g=y.kind===F.NULL;if(y.kind===F.VARIABLE){const C=y.name.value;if(n==null||!Y0(n,C)){if(f.defaultValue!==void 0)i[d]=f.defaultValue;else if(Ie(h))throw new re(`Argument "${d}" of required type "${ae(h)}" was provided the variable "$${C}" which was not provided a runtime value.`,{nodes:y});continue}g=n[C]==null}if(g&&Ie(h))throw new re(`Argument "${d}" of non-null type "${ae(h)}" must not be null.`,{nodes:y});const E=gr(y,h,n);if(E===void 0)throw new re(`Argument "${d}" has invalid value ${Je(y)}.`,{nodes:y});i[d]=E}return i}function es(t,e,n){var o;const i=(o=e.directives)===null||o===void 0?void 0:o.find(a=>a.name.value===t.name);if(i)return Xl(t,i,n)}function Y0(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Id(t,e,n,o,i){const a=new Map;return ml(t,e,n,o,i,a,new Set),a}function Yw(t,e,n,o,i){const a=new Map,c=new Set;for(const f of i)f.selectionSet&&ml(t,e,n,o,f.selectionSet,a,c);return a}function ml(t,e,n,o,i,a,c){for(const f of i.selections)switch(f.kind){case F.FIELD:{if(!Uf(n,f))continue;const d=Jw(f),h=a.get(d);h!==void 0?h.push(f):a.set(d,[f]);break}case F.INLINE_FRAGMENT:{if(!Uf(n,f)||!sg(t,f,o))continue;ml(t,e,n,o,f.selectionSet,a,c);break}case F.FRAGMENT_SPREAD:{const d=f.name.value;if(c.has(d)||!Uf(n,f))continue;c.add(d);const h=e[d];if(!h||!sg(t,h,o))continue;ml(t,e,n,o,h.selectionSet,a,c);break}}}function Uf(t,e){const n=es(dd,e,t);if((n==null?void 0:n.if)===!0)return!1;const o=es(pd,e,t);return(o==null?void 0:o.if)!==!1}function sg(t,e,n){const o=e.typeCondition;if(!o)return!0;const i=nn(t,o);return i===n?!0:Er(i)?t.isSubType(i,n):!1}function Jw(t){return t.alias?t.alias.value:t.name.value}function J0(t){return{OperationDefinition(e){if(e.operation==="subscription"){const n=t.getSchema(),o=n.getSubscriptionType();if(o){const i=e.name?e.name.value:null,a=Object.create(null),c=t.getDocument(),f=Object.create(null);for(const h of c.definitions)h.kind===F.FRAGMENT_DEFINITION&&(f[h.name.value]=h);const d=Id(n,f,a,o,e.selectionSet);if(d.size>1){const y=[...d.values()].slice(1).flat();t.reportError(new re(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(const h of d.values())h[0].name.value.startsWith("__")&&t.reportError(new re(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:h}))}}}}}function Ld(t,e){const n=new Map;for(const o of t){const i=e(o),a=n.get(i);a===void 0?n.set(i,[o]):a.push(o)}return n}function Z0(t){return{DirectiveDefinition(o){var i;const a=(i=o.arguments)!==null&&i!==void 0?i:[];return n(`@${o.name.value}`,a)},InterfaceTypeDefinition:e,InterfaceTypeExtension:e,ObjectTypeDefinition:e,ObjectTypeExtension:e};function e(o){var i;const a=o.name.value,c=(i=o.fields)!==null&&i!==void 0?i:[];for(const d of c){var f;const h=d.name.value,v=(f=d.arguments)!==null&&f!==void 0?f:[];n(`${a}.${h}`,v)}return!1}function n(o,i){const a=Ld(i,c=>c.name.value);for(const[c,f]of a)f.length>1&&t.reportError(new re(`Argument "${o}(${c}:)" can only be defined once.`,{nodes:f.map(d=>d.name)}));return!1}}function Fd(t){return{Field:e,Directive:e};function e(n){var o;const i=(o=n.arguments)!==null&&o!==void 0?o:[],a=Ld(i,c=>c.name.value);for(const[c,f]of a)f.length>1&&t.reportError(new re(`There can be only one argument named "${c}".`,{nodes:f.map(d=>d.name)}))}}function X0(t){const e=Object.create(null),n=t.getSchema();return{DirectiveDefinition(o){const i=o.name.value;if(n!=null&&n.getDirective(i)){t.reportError(new re(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:o.name}));return}return e[i]?t.reportError(new re(`There can be only one directive named "@${i}".`,{nodes:[e[i],o.name]})):e[i]=o.name,!1}}}function Rd(t){const e=Object.create(null),n=t.getSchema(),o=n?n.getDirectives():ko;for(const f of o)e[f.name]=!f.isRepeatable;const i=t.getDocument().definitions;for(const f of i)f.kind===F.DIRECTIVE_DEFINITION&&(e[f.name.value]=!f.repeatable);const a=Object.create(null),c=Object.create(null);return{enter(f){if(!("directives"in f)||!f.directives)return;let d;if(f.kind===F.SCHEMA_DEFINITION||f.kind===F.SCHEMA_EXTENSION)d=a;else if(us(f)||Jl(f)){const h=f.name.value;d=c[h],d===void 0&&(c[h]=d=Object.create(null))}else d=Object.create(null);for(const h of f.directives){const v=h.name.value;e[v]&&(d[v]?t.reportError(new re(`The directive "@${v}" can only be used once at this location.`,{nodes:[d[v],h]})):d[v]=h)}}}}function K0(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var c;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(c=a.values)!==null&&c!==void 0?c:[],h=o[f];for(const v of d){const y=v.name.value,g=n[f];xt(g)&&g.getValue(y)?t.reportError(new re(`Enum value "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new re(`Enum value "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function eb(t){const e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(a){var c;const f=a.name.value;o[f]||(o[f]=Object.create(null));const d=(c=a.fields)!==null&&c!==void 0?c:[],h=o[f];for(const v of d){const y=v.name.value;Zw(n[f],y)?t.reportError(new re(`Field "${f}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:v.name})):h[y]?t.reportError(new re(`Field "${f}.${y}" can only be defined once.`,{nodes:[h[y],v.name]})):h[y]=v.name}return!1}}function Zw(t,e){return Ue(t)||Ke(t)||ct(t)?t.getFields()[e]!=null:!1}function tb(t){const e=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const o=n.name.value;return e[o]?t.reportError(new re(`There can be only one fragment named "${o}".`,{nodes:[e[o],n.name]})):e[o]=n.name,!1}}}function Md(t){const e=[];let n=Object.create(null);return{ObjectValue:{enter(){e.push(n),n=Object.create(null)},leave(){const o=e.pop();o||_t(!1),n=o}},ObjectField(o){const i=o.name.value;n[i]?t.reportError(new re(`There can be only one input field named "${i}".`,{nodes:[n[i],o.name]})):n[i]=o.name}}}function nb(t){const e=Object.create(null);return{OperationDefinition(n){const o=n.name;return o&&(e[o.value]?t.reportError(new re(`There can be only one operation named "${o.value}".`,{nodes:[e[o.value],o]})):e[o.value]=o),!1},FragmentDefinition:()=>!1}}function rb(t){const e=t.getSchema(),n=Object.create(null),o=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(a){var c;const f=(c=a.operationTypes)!==null&&c!==void 0?c:[];for(const d of f){const h=d.operation,v=n[h];o[h]?t.reportError(new re(`Type for ${h} already defined in the schema. It cannot be redefined.`,{nodes:d})):v?t.reportError(new re(`There can be only one ${h} type in schema.`,{nodes:[v,d]})):n[h]=d}return!1}}function ob(t){const e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:o,ObjectTypeDefinition:o,InterfaceTypeDefinition:o,UnionTypeDefinition:o,EnumTypeDefinition:o,InputObjectTypeDefinition:o};function o(i){const a=i.name.value;if(n!=null&&n.getType(a)){t.reportError(new re(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return e[a]?t.reportError(new re(`There can be only one type named "${a}".`,{nodes:[e[a],i.name]})):e[a]=i.name,!1}}function ib(t){return{OperationDefinition(e){var n;const o=(n=e.variableDefinitions)!==null&&n!==void 0?n:[],i=Ld(o,a=>a.variable.name.value);for(const[a,c]of i)c.length>1&&t.reportError(new re(`There can be only one variable named "$${a}".`,{nodes:c.map(f=>f.variable.name)}))}}}function sb(t){let e={};return{OperationDefinition:{enter(){e={}}},VariableDefinition(n){e[n.variable.name.value]=n},ListValue(n){const o=ad(t.getParentInputType());if(!at(o))return Vo(t,n),!1},ObjectValue(n){const o=Rt(t.getInputType());if(!ct(o))return Vo(t,n),!1;const i=Gr(n.fields,a=>a.name.value);for(const a of Object.values(o.getFields()))if(!i[a.name]&&zl(a)){const f=ae(a.type);t.reportError(new re(`Field "${o.name}.${a.name}" of required type "${f}" was not provided.`,{nodes:n}))}o.isOneOf&&Xw(t,n,o,i,e)},ObjectField(n){const o=Rt(t.getParentInputType());if(!t.getInputType()&&ct(o)){const a=Eo(n.name.value,Object.keys(o.getFields()));t.reportError(new re(`Field "${n.name.value}" is not defined by type "${o.name}".`+Hr(a),{nodes:n}))}},NullValue(n){const o=t.getInputType();Ie(o)&&t.reportError(new re(`Expected value of type "${ae(o)}", found ${Je(n)}.`,{nodes:n}))},EnumValue:n=>Vo(t,n),IntValue:n=>Vo(t,n),FloatValue:n=>Vo(t,n),StringValue:n=>Vo(t,n),BooleanValue:n=>Vo(t,n)}}function Vo(t,e){const n=t.getInputType();if(!n)return;const o=Rt(n);if(!dn(o)){const i=ae(n);t.reportError(new re(`Expected value of type "${i}", found ${Je(e)}.`,{nodes:e}));return}try{if(o.parseLiteral(e,void 0)===void 0){const a=ae(n);t.reportError(new re(`Expected value of type "${a}", found ${Je(e)}.`,{nodes:e}))}}catch(i){const a=ae(n);i instanceof re?t.reportError(i):t.reportError(new re(`Expected value of type "${a}", found ${Je(e)}; `+i.message,{nodes:e,originalError:i}))}}function Xw(t,e,n,o,i){var a;const c=Object.keys(o);if(c.length!==1){t.reportError(new re(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[e]}));return}const d=(a=o[c[0]])===null||a===void 0?void 0:a.value,h=!d||d.kind===F.NULL,v=(d==null?void 0:d.kind)===F.VARIABLE;if(h){t.reportError(new re(`Field "${n.name}.${c[0]}" must be non-null.`,{nodes:[e]}));return}if(v){const y=d.name.value;i[y].type.kind!==F.NON_NULL_TYPE&&t.reportError(new re(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[e]}))}}function ab(t){return{VariableDefinition(e){const n=nn(t.getSchema(),e.type);if(n!==void 0&&!un(n)){const o=e.variable.name.value,i=Je(e.type);t.reportError(new re(`Variable "$${o}" cannot be non-input type "${i}".`,{nodes:e.type}))}}}}function cb(t){let e=Object.create(null);return{OperationDefinition:{enter(){e=Object.create(null)},leave(n){const o=t.getRecursiveVariableUsages(n);for(const{node:i,type:a,defaultValue:c}of o){const f=i.name.value,d=e[f];if(d&&a){const h=t.getSchema(),v=nn(h,d.type);if(v&&!Kw(h,v,d.defaultValue,a,c)){const y=ae(v),g=ae(a);t.reportError(new re(`Variable "$${f}" of type "${y}" used in position expecting type "${g}".`,{nodes:[d,i]}))}}}}},VariableDefinition(n){e[n.variable.name.value]=n}}}function Kw(t,e,n,o,i){if(Ie(o)&&!Ie(e)){if(!(n!=null&&n.kind!==F.NULL)&&!(i!==void 0))return!1;const f=o.ofType;return Qo(t,e,f)}return Qo(t,e,o)}const lb=Object.freeze([O0]),ub=Object.freeze([w0,nb,D0,J0,Nd,C0,ab,H0,$0,tb,T0,F0,V0,I0,ib,L0,R0,Dd,Rd,A0,Fd,sb,U0,cb,q0,Md,...lb]),e$=Object.freeze([N0,rb,ob,K0,eb,Z0,X0,Nd,Dd,Rd,j0,S0,Fd,Md,z0]);class fb{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const o of this.getDocument().definitions)o.kind===F.FRAGMENT_DEFINITION&&(n[o.name.value]=o);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const o=[e];let i;for(;i=o.pop();)for(const a of i.selections)a.kind===F.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&o.push(a.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const o=Object.create(null),i=[e.selectionSet];let a;for(;a=i.pop();)for(const c of this.getFragmentSpreads(a)){const f=c.name.value;if(o[f]!==!0){o[f]=!0;const d=this.getFragment(f);d&&(n.push(d),i.push(d.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}class t$ extends fb{constructor(e,n,o){super(e,o),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class pb extends fb{constructor(e,n,o,i){super(n,i),this._schema=e,this._typeInfo=o,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const o=[],i=new ai(this._schema);pn(e,qa(i,{VariableDefinition:()=>!1,Variable(a){o.push({node:a,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=o,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const o of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(o));this._recursiveVariableUsages.set(e,n)}return n}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function db(t,e,n=ub,o,i=new ai(t)){var a;const c=(a=o==null?void 0:o.maxErrors)!==null&&a!==void 0?a:100;e||Pe(!1,"Must provide document."),$d(t);const f=Object.freeze({}),d=[],h=new pb(t,e,i,y=>{if(d.length>=c)throw d.push(new re("Too many validation errors, error limit reached. Validation aborted.")),f;d.push(y)}),v=id(n.map(y=>y(h)));try{pn(e,qa(i,v))}catch(y){if(y!==f)throw y}return d}function hb(t,e,n=e$){const o=[],i=new t$(t,e,c=>{o.push(c)}),a=n.map(c=>c(i));return pn(t,id(a)),o}function n$(t){const e=hb(t);if(e.length!==0)throw new Error(e.map(n=>n.message).join(`
|
|
55
|
+
|
|
56
|
+
`))}function r$(t,e){const n=hb(t,e);if(n.length!==0)throw new Error(n.map(o=>o.message).join(`
|
|
57
|
+
|
|
58
|
+
`))}function o$(t){let e;return function(o,i,a){e===void 0&&(e=new WeakMap);let c=e.get(o);c===void 0&&(c=new WeakMap,e.set(o,c));let f=c.get(i);f===void 0&&(f=new WeakMap,c.set(i,f));let d=f.get(a);return d===void 0&&(d=t(o,i,a),f.set(a,d)),d}}function ag(t){return Promise.all(Object.values(t)).then(e=>{const n=Object.create(null);for(const[o,i]of Object.keys(t).entries())n[i]=e[o];return n})}function i$(t,e,n){let o=n;for(const i of t)o=gn(o)?o.then(a=>e(a,i)):e(o,i);return o}function s$(t){return t instanceof Error?t:new a$(t)}class a$ extends Error{constructor(e){super("Unexpected error value: "+ae(e)),this.name="NonErrorThrown",this.thrownValue=e}}function ts(t,e,n){var o;const i=s$(t);return c$(i)?i:new re(i.message,{nodes:(o=i.nodes)!==null&&o!==void 0?o:e,source:i.source,positions:i.positions,path:n,originalError:i})}function c$(t){return Array.isArray(t.path)}const l$=o$((t,e,n)=>Yw(t.schema,t.fragments,t.variableValues,e,n));function Kl(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,document:n,variableValues:o,rootValue:i}=t;vb(e,n,o);const a=gb(t);if(!("schema"in a))return{errors:a};try{const{operation:c}=a,f=u$(a,c,i);return gn(f)?f.then(d=>jc(d,a.errors),d=>(a.errors.push(d),jc(null,a.errors))):jc(f,a.errors)}catch(c){return a.errors.push(c),jc(null,a.errors)}}function mb(t){const e=Kl(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function jc(t,e){return e.length===0?{data:t}:{errors:e,data:t}}function vb(t,e,n){e||Pe(!1,"Must provide document."),$d(t),n==null||yn(n)||Pe(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function gb(t){var e,n;const{schema:o,document:i,rootValue:a,contextValue:c,variableValues:f,operationName:d,fieldResolver:h,typeResolver:v,subscribeFieldResolver:y}=t;let g;const E=Object.create(null);for(const N of i.definitions)switch(N.kind){case F.OPERATION_DEFINITION:if(d==null){if(g!==void 0)return[new re("Must provide operation name if query contains multiple operations.")];g=N}else((e=N.name)===null||e===void 0?void 0:e.value)===d&&(g=N);break;case F.FRAGMENT_DEFINITION:E[N.name.value]=N;break}if(!g)return d!=null?[new re(`Unknown operation named "${d}".`)]:[new re("Must provide an operation.")];const C=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],S=Q0(o,C,f??{},{maxErrors:50});return S.errors?S.errors:{schema:o,fragments:E,rootValue:a,contextValue:c,operation:g,variableValues:S.coerced,fieldResolver:h??$p,typeResolver:v??Eb,subscribeFieldResolver:y??$p,errors:[]}}function u$(t,e,n){const o=t.schema.getRootType(e.operation);if(o==null)throw new re(`Schema is not configured to execute ${e.operation} operation.`,{nodes:e});const i=Id(t.schema,t.fragments,t.variableValues,o,e.selectionSet),a=void 0;switch(e.operation){case Ft.QUERY:return vl(t,o,n,a,i);case Ft.MUTATION:return f$(t,o,n,a,i);case Ft.SUBSCRIPTION:return vl(t,o,n,a,i)}}function f$(t,e,n,o,i){return i$(i.entries(),(a,[c,f])=>{const d=Ki(o,c,e.name),h=yb(t,e,n,f,d);return h===void 0?a:gn(h)?h.then(v=>(a[c]=v,a)):(a[c]=h,a)},Object.create(null))}function vl(t,e,n,o,i){const a=Object.create(null);let c=!1;try{for(const[f,d]of i.entries()){const h=Ki(o,f,e.name),v=yb(t,e,n,d,h);v!==void 0&&(a[f]=v,gn(v)&&(c=!0))}}catch(f){if(c)return ag(a).finally(()=>{throw f});throw f}return c?ag(a):a}function yb(t,e,n,o,i){var a;const c=_b(t.schema,e,o[0]);if(!c)return;const f=c.type,d=(a=c.resolve)!==null&&a!==void 0?a:t.fieldResolver,h=bb(t,c,o,e,i);try{const v=Xl(c,o[0],t.variableValues),y=t.contextValue,g=d(n,v,y,h);let E;return gn(g)?E=g.then(C=>ya(t,f,o,h,i,C)):E=ya(t,f,o,h,i,g),gn(E)?E.then(void 0,C=>{const S=ts(C,o,tn(i));return gl(S,f,t)}):E}catch(v){const y=ts(v,o,tn(i));return gl(y,f,t)}}function bb(t,e,n,o,i){return{fieldName:e.name,fieldNodes:n,returnType:e.type,parentType:o,path:i,schema:t.schema,fragments:t.fragments,rootValue:t.rootValue,operation:t.operation,variableValues:t.variableValues}}function gl(t,e,n){if(Ie(e))throw t;return n.errors.push(t),null}function ya(t,e,n,o,i,a){if(a instanceof Error)throw a;if(Ie(e)){const c=ya(t,e.ofType,n,o,i,a);if(c===null)throw new Error(`Cannot return null for non-nullable field ${o.parentType.name}.${o.fieldName}.`);return c}if(a==null)return null;if(at(e))return p$(t,e,n,o,i,a);if(dn(e))return d$(e,a);if(Er(e))return h$(t,e,n,o,i,a);if(Ue(e))return wp(t,e,n,o,i,a);_t(!1,"Cannot complete value of unexpected output type: "+ae(e))}function p$(t,e,n,o,i,a){if(!yd(a))throw new re(`Expected Iterable, but did not find one for field "${o.parentType.name}.${o.fieldName}".`);const c=e.ofType;let f=!1;const d=Array.from(a,(h,v)=>{const y=Ki(i,v,void 0);try{let g;return gn(h)?g=h.then(E=>ya(t,c,n,o,y,E)):g=ya(t,c,n,o,y,h),gn(g)?(f=!0,g.then(void 0,E=>{const C=ts(E,n,tn(y));return gl(C,c,t)})):g}catch(g){const E=ts(g,n,tn(y));return gl(E,c,t)}});return f?Promise.all(d):d}function d$(t,e){const n=t.serialize(e);if(n==null)throw new Error(`Expected \`${ae(t)}.serialize(${ae(e)})\` to return non-nullable value, returned: ${ae(n)}`);return n}function h$(t,e,n,o,i,a){var c;const f=(c=e.resolveType)!==null&&c!==void 0?c:t.typeResolver,d=t.contextValue,h=f(a,d,o,e);return gn(h)?h.then(v=>wp(t,cg(v,t,e,n,o,a),n,o,i,a)):wp(t,cg(h,t,e,n,o,a),n,o,i,a)}function cg(t,e,n,o,i,a){if(t==null)throw new re(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,o);if(Ue(t))throw new re("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof t!="string")throw new re(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ae(a)}, received "${ae(t)}".`);const c=e.schema.getType(t);if(c==null)throw new re(`Abstract type "${n.name}" was resolved to a type "${t}" that does not exist inside the schema.`,{nodes:o});if(!Ue(c))throw new re(`Abstract type "${n.name}" was resolved to a non-object type "${t}".`,{nodes:o});if(!e.schema.isSubType(n,c))throw new re(`Runtime Object type "${c.name}" is not a possible type for "${n.name}".`,{nodes:o});return c}function wp(t,e,n,o,i,a){const c=l$(t,e,n);if(e.isTypeOf){const f=e.isTypeOf(a,t.contextValue,o);if(gn(f))return f.then(d=>{if(!d)throw lg(e,a,n);return vl(t,e,a,i,c)});if(!f)throw lg(e,a,n)}return vl(t,e,a,i,c)}function lg(t,e,n){return new re(`Expected value of type "${t.name}" but got: ${ae(e)}.`,{nodes:n})}const Eb=function(t,e,n,o){if(yn(t)&&typeof t.__typename=="string")return t.__typename;const i=n.schema.getPossibleTypes(o),a=[];for(let c=0;c<i.length;c++){const f=i[c];if(f.isTypeOf){const d=f.isTypeOf(t,e,n);if(gn(d))a[c]=d;else if(d)return f.name}}if(a.length)return Promise.all(a).then(c=>{for(let f=0;f<c.length;f++)if(c[f])return i[f].name})},$p=function(t,e,n,o){if(yn(t)||typeof t=="function"){const i=t[o.fieldName];return typeof i=="function"?t[o.fieldName](e,n,o):i}};function _b(t,e,n){const o=n.name.value;return o===ma.name&&t.getQueryType()===e?ma:o===va.name&&t.getQueryType()===e?va:o===ga.name?ga:e.getFields()[o]}function m$(t){return new Promise(e=>e(kb(t)))}function v$(t){const e=kb(t);if(gn(e))throw new Error("GraphQL execution failed to complete synchronously.");return e}function kb(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:e,source:n,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:f,typeResolver:d}=t,h=Yl(e);if(h.length>0)return{errors:h};let v;try{v=Xn(n)}catch(g){return{errors:[g]}}const y=db(e,v);return y.length>0?{errors:y}:Kl({schema:e,document:v,rootValue:o,contextValue:i,variableValues:a,operationName:c,fieldResolver:f,typeResolver:d})}function xb(t){return typeof(t==null?void 0:t[Symbol.asyncIterator])=="function"}function g$(t,e){const n=t[Symbol.asyncIterator]();async function o(i){if(i.done)return i;try{return{value:await e(i.value),done:!1}}catch(a){if(typeof n.return=="function")try{await n.return()}catch{}throw a}}return{async next(){return o(await n.next())},async return(){return typeof n.return=="function"?o(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw=="function")return o(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function y$(t){arguments.length<2||Pe(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const e=await wb(t);return xb(e)?g$(e,o=>Kl({...t,rootValue:o})):e}function b$(t){const e=t[0];return e&&"document"in e?e:{schema:e,document:t[1],rootValue:t[2],contextValue:t[3],variableValues:t[4],operationName:t[5],subscribeFieldResolver:t[6]}}async function wb(...t){const e=b$(t),{schema:n,document:o,variableValues:i}=e;vb(n,o,i);const a=gb(e);if(!("schema"in a))return{errors:a};try{const c=await E$(a);if(!xb(c))throw new Error(`Subscription field must return Async Iterable. Received: ${ae(c)}.`);return c}catch(c){if(c instanceof re)return{errors:[c]};throw c}}async function E$(t){const{schema:e,fragments:n,operation:o,variableValues:i,rootValue:a}=t,c=e.getSubscriptionType();if(c==null)throw new re("Schema is not configured to execute subscription operation.",{nodes:o});const f=Id(e,n,i,c,o.selectionSet),[d,h]=[...f.entries()][0],v=_b(e,c,h[0]);if(!v){const C=h[0].name.value;throw new re(`The subscription field "${C}" is not defined.`,{nodes:h})}const y=Ki(void 0,d,c.name),g=bb(t,v,h,c,y);try{var E;const C=Xl(v,h[0],i),S=t.contextValue,D=await((E=v.subscribe)!==null&&E!==void 0?E:t.subscribeFieldResolver)(a,C,S,g);if(D instanceof Error)throw D;return D}catch(C){throw ts(C,h,tn(y))}}function _$(t){return{Field(e){const n=t.getFieldDef(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getParentType();i!=null||_t(!1),t.reportError(new re(`The field ${i.name}.${n.name} is deprecated. ${o}`,{nodes:e}))}},Argument(e){const n=t.getArgument(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=t.getDirective();if(i!=null)t.reportError(new re(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}));else{const a=t.getParentType(),c=t.getFieldDef();a!=null&&c!=null||_t(!1),t.reportError(new re(`Field "${a.name}.${c.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:e}))}}},ObjectField(e){const n=Rt(t.getParentInputType());if(ct(n)){const o=n.getFields()[e.name.value],i=o==null?void 0:o.deprecationReason;i!=null&&t.reportError(new re(`The input field ${n.name}.${o.name} is deprecated. ${i}`,{nodes:e}))}},EnumValue(e){const n=t.getEnumValue(),o=n==null?void 0:n.deprecationReason;if(n&&o!=null){const i=Rt(t.getInputType());i!=null||_t(!1),t.reportError(new re(`The enum value "${i.name}.${n.name}" is deprecated. ${o}`,{nodes:e}))}}}}function k$(t){return{Field(e){const n=Rt(t.getType());n&&si(n)&&t.reportError(new re(`GraphQL introspection has been disabled, but the requested query contained the field "${e.name.value}".`,{nodes:e}))}}}function qd(t){const e={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...t},n=e.descriptions?"description":"",o=e.specifiedByUrl?"specifiedByURL":"",i=e.directiveIsRepeatable?"isRepeatable":"",a=e.schemaDescription?n:"";function c(d){return e.inputValueDeprecation?d:""}const f=e.oneOf?"isOneOf":"";return`
|
|
59
|
+
query IntrospectionQuery {
|
|
60
|
+
__schema {
|
|
61
|
+
${a}
|
|
62
|
+
queryType { name }
|
|
63
|
+
mutationType { name }
|
|
64
|
+
subscriptionType { name }
|
|
65
|
+
types {
|
|
66
|
+
...FullType
|
|
67
|
+
}
|
|
68
|
+
directives {
|
|
69
|
+
name
|
|
70
|
+
${n}
|
|
71
|
+
${i}
|
|
72
|
+
locations
|
|
73
|
+
args${c("(includeDeprecated: true)")} {
|
|
74
|
+
...InputValue
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
fragment FullType on __Type {
|
|
81
|
+
kind
|
|
82
|
+
name
|
|
83
|
+
${n}
|
|
84
|
+
${o}
|
|
85
|
+
${f}
|
|
86
|
+
fields(includeDeprecated: true) {
|
|
87
|
+
name
|
|
88
|
+
${n}
|
|
89
|
+
args${c("(includeDeprecated: true)")} {
|
|
90
|
+
...InputValue
|
|
91
|
+
}
|
|
92
|
+
type {
|
|
93
|
+
...TypeRef
|
|
94
|
+
}
|
|
95
|
+
isDeprecated
|
|
96
|
+
deprecationReason
|
|
97
|
+
}
|
|
98
|
+
inputFields${c("(includeDeprecated: true)")} {
|
|
99
|
+
...InputValue
|
|
100
|
+
}
|
|
101
|
+
interfaces {
|
|
102
|
+
...TypeRef
|
|
103
|
+
}
|
|
104
|
+
enumValues(includeDeprecated: true) {
|
|
105
|
+
name
|
|
106
|
+
${n}
|
|
107
|
+
isDeprecated
|
|
108
|
+
deprecationReason
|
|
109
|
+
}
|
|
110
|
+
possibleTypes {
|
|
111
|
+
...TypeRef
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
fragment InputValue on __InputValue {
|
|
116
|
+
name
|
|
117
|
+
${n}
|
|
118
|
+
type { ...TypeRef }
|
|
119
|
+
defaultValue
|
|
120
|
+
${c("isDeprecated")}
|
|
121
|
+
${c("deprecationReason")}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
fragment TypeRef on __Type {
|
|
125
|
+
kind
|
|
126
|
+
name
|
|
127
|
+
ofType {
|
|
128
|
+
kind
|
|
129
|
+
name
|
|
130
|
+
ofType {
|
|
131
|
+
kind
|
|
132
|
+
name
|
|
133
|
+
ofType {
|
|
134
|
+
kind
|
|
135
|
+
name
|
|
136
|
+
ofType {
|
|
137
|
+
kind
|
|
138
|
+
name
|
|
139
|
+
ofType {
|
|
140
|
+
kind
|
|
141
|
+
name
|
|
142
|
+
ofType {
|
|
143
|
+
kind
|
|
144
|
+
name
|
|
145
|
+
ofType {
|
|
146
|
+
kind
|
|
147
|
+
name
|
|
148
|
+
ofType {
|
|
149
|
+
kind
|
|
150
|
+
name
|
|
151
|
+
ofType {
|
|
152
|
+
kind
|
|
153
|
+
name
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
`}function x$(t,e){let n=null;for(const i of t.definitions)if(i.kind===F.OPERATION_DEFINITION){var o;if(e==null){if(n)return null;n=i}else if(((o=i.name)===null||o===void 0?void 0:o.value)===e)return i}return n}function w$(t,e){if(e.operation==="query"){const n=t.getQueryType();if(!n)throw new re("Schema does not define the required query root type.",{nodes:e});return n}if(e.operation==="mutation"){const n=t.getMutationType();if(!n)throw new re("Schema is not configured for mutations.",{nodes:e});return n}if(e.operation==="subscription"){const n=t.getSubscriptionType();if(!n)throw new re("Schema is not configured for subscriptions.",{nodes:e});return n}throw new re("Can only have query, mutation and subscription operations.",{nodes:e})}function $$(t,e){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...e},o=Xn(qd(n)),i=mb({schema:t,document:o});return!i.errors&&i.data||_t(!1),i.data}function $b(t,e){yn(t)&&yn(t.__schema)||Pe(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ae(t)}.`);const n=t.__schema,o=mo(n.types,G=>G.name,G=>g(G));for(const G of[...La,...Ma])o[G.name]&&(o[G.name]=G);const i=n.queryType?v(n.queryType):null,a=n.mutationType?v(n.mutationType):null,c=n.subscriptionType?v(n.subscriptionType):null,f=n.directives?n.directives.map(K):[];return new ls({description:n.description,query:i,mutation:a,subscription:c,types:Object.values(o),directives:f,assumeValid:e==null?void 0:e.assumeValid});function d(G){if(G.kind===ot.LIST){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");return new Ut(d(Q))}if(G.kind===ot.NON_NULL){const Q=G.ofType;if(!Q)throw new Error("Decorated type deeper than introspection query.");const oe=d(Q);return new qe(v0(oe))}return h(G)}function h(G){const Q=G.name;if(!Q)throw new Error(`Unknown type reference: ${ae(G)}.`);const oe=o[Q];if(!oe)throw new Error(`Invalid or incomplete schema, unknown type: ${Q}. Ensure that a full introspection query is used in order to build a client schema.`);return oe}function v(G){return h0(h(G))}function y(G){return m0(h(G))}function g(G){if(G!=null&&G.name!=null&&G.kind!=null)switch(G.kind){case ot.SCALAR:return E(G);case ot.OBJECT:return S(G);case ot.INTERFACE:return N(G);case ot.UNION:return D(G);case ot.ENUM:return T(G);case ot.INPUT_OBJECT:return O(G)}const Q=ae(G);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Q}.`)}function E(G){return new kr({name:G.name,description:G.description,specifiedByURL:G.specifiedByURL})}function C(G){if(G.interfaces===null&&G.kind===ot.INTERFACE)return[];if(!G.interfaces){const Q=ae(G);throw new Error(`Introspection result missing interfaces: ${Q}.`)}return G.interfaces.map(y)}function S(G){return new Ln({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function N(G){return new Ji({name:G.name,description:G.description,interfaces:()=>C(G),fields:()=>V(G)})}function D(G){if(!G.possibleTypes){const Q=ae(G);throw new Error(`Introspection result missing possibleTypes: ${Q}.`)}return new Zi({name:G.name,description:G.description,types:()=>G.possibleTypes.map(v)})}function T(G){if(!G.enumValues){const Q=ae(G);throw new Error(`Introspection result missing enumValues: ${Q}.`)}return new yo({name:G.name,description:G.description,values:mo(G.enumValues,Q=>Q.name,Q=>({description:Q.description,deprecationReason:Q.deprecationReason}))})}function O(G){if(!G.inputFields){const Q=ae(G);throw new Error(`Introspection result missing inputFields: ${Q}.`)}return new Xi({name:G.name,description:G.description,fields:()=>P(G.inputFields),isOneOf:G.isOneOf})}function V(G){if(!G.fields)throw new Error(`Introspection result missing fields: ${ae(G)}.`);return mo(G.fields,Q=>Q.name,Y)}function Y(G){const Q=d(G.type);if(!vo(Q)){const oe=ae(Q);throw new Error(`Introspection must provide output type for fields, but received: ${oe}.`)}if(!G.args){const oe=ae(G);throw new Error(`Introspection result missing field args: ${oe}.`)}return{description:G.description,deprecationReason:G.deprecationReason,type:Q,args:P(G.args)}}function P(G){return mo(G,Q=>Q.name,U)}function U(G){const Q=d(G.type);if(!un(Q)){const _e=ae(Q);throw new Error(`Introspection must provide input type for arguments, but received: ${_e}.`)}const oe=G.defaultValue!=null?gr(f0(G.defaultValue),Q):void 0;return{description:G.description,type:Q,defaultValue:oe,deprecationReason:G.deprecationReason}}function K(G){if(!G.args){const Q=ae(G);throw new Error(`Introspection result missing directive args: ${Q}.`)}if(!G.locations){const Q=ae(G);throw new Error(`Introspection result missing directive locations: ${Q}.`)}return new Jn({name:G.name,description:G.description,isRepeatable:G.isRepeatable,locations:G.locations.slice(),args:P(G.args)})}}function C$(t,e,n){wd(t),e!=null&&e.kind===F.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&r$(e,t);const o=t.toConfig(),i=Cb(o,e,n);return o===i?t:new ls(i)}function Cb(t,e,n){var o,i,a,c;const f=[],d=Object.create(null),h=[];let v;const y=[];for(const Z of e.definitions)if(Z.kind===F.SCHEMA_DEFINITION)v=Z;else if(Z.kind===F.SCHEMA_EXTENSION)y.push(Z);else if(us(Z))f.push(Z);else if(Jl(Z)){const fe=Z.name.value,de=d[fe];d[fe]=de?de.concat([Z]):[Z]}else Z.kind===F.DIRECTIVE_DEFINITION&&h.push(Z);if(Object.keys(d).length===0&&f.length===0&&h.length===0&&y.length===0&&v==null)return t;const g=Object.create(null);for(const Z of t.types)g[Z.name]=T(Z);for(const Z of f){var E;const fe=Z.name.value;g[fe]=(E=ug[fe])!==null&&E!==void 0?E:Me(Z)}const C={query:t.query&&N(t.query),mutation:t.mutation&&N(t.mutation),subscription:t.subscription&&N(t.subscription),...v&&oe([v]),...oe(y)};return{description:(o=v)===null||o===void 0||(i=o.description)===null||i===void 0?void 0:i.value,...C,types:Object.values(g),directives:[...t.directives.map(D),...h.map(R)],extensions:Object.create(null),astNode:(a=v)!==null&&a!==void 0?a:t.astNode,extensionASTNodes:t.extensionASTNodes.concat(y),assumeValid:(c=n==null?void 0:n.assumeValid)!==null&&c!==void 0?c:!1};function S(Z){return at(Z)?new Ut(S(Z.ofType)):Ie(Z)?new qe(S(Z.ofType)):N(Z)}function N(Z){return g[Z.name]}function D(Z){const fe=Z.toConfig();return new Jn({...fe,args:Pr(fe.args,Q)})}function T(Z){if(si(Z)||Hl(Z))return Z;if(kn(Z))return Y(Z);if(Ue(Z))return P(Z);if(Ke(Z))return U(Z);if(St(Z))return K(Z);if(xt(Z))return V(Z);if(ct(Z))return O(Z);_t(!1,"Unexpected type: "+ae(Z))}function O(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Xi({...de,fields:()=>({...Pr(de.fields,ye=>({...ye,type:S(ye.type)})),...J(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function V(Z){var fe;const de=Z.toConfig(),ge=(fe=d[Z.name])!==null&&fe!==void 0?fe:[];return new yo({...de,values:{...de.values,...te(ge)},extensionASTNodes:de.extensionASTNodes.concat(ge)})}function Y(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];let ye=de.specifiedByURL;for(const ke of ge){var he;ye=(he=fg(ke))!==null&&he!==void 0?he:ye}return new kr({...de,specifiedByURL:ye,extensionASTNodes:de.extensionASTNodes.concat(ge)})}function P(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Ln({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function U(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Ji({...de,interfaces:()=>[...Z.getInterfaces().map(N),...pe(ge)],fields:()=>({...Pr(de.fields,G),...x(ge)}),extensionASTNodes:de.extensionASTNodes.concat(ge)})}function K(Z){var fe;const de=Z.toConfig(),ge=(fe=d[de.name])!==null&&fe!==void 0?fe:[];return new Zi({...de,types:()=>[...Z.getTypes().map(N),...$e(ge)],extensionASTNodes:de.extensionASTNodes.concat(ge)})}function G(Z){return{...Z,type:S(Z.type),args:Z.args&&Pr(Z.args,Q)}}function Q(Z){return{...Z,type:S(Z.type)}}function oe(Z){const fe={};for(const ge of Z){var de;const ye=(de=ge.operationTypes)!==null&&de!==void 0?de:[];for(const he of ye)fe[he.operation]=_e(he.type)}return fe}function _e(Z){var fe;const de=Z.name.value,ge=(fe=ug[de])!==null&&fe!==void 0?fe:g[de];if(ge===void 0)throw new Error(`Unknown type: "${de}".`);return ge}function H(Z){return Z.kind===F.LIST_TYPE?new Ut(H(Z.type)):Z.kind===F.NON_NULL_TYPE?new qe(H(Z.type)):_e(Z)}function R(Z){var fe;return new Jn({name:Z.name.value,description:(fe=Z.description)===null||fe===void 0?void 0:fe.value,locations:Z.locations.map(({value:de})=>de),isRepeatable:Z.repeatable,args:j(Z.arguments),astNode:Z})}function x(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={type:H(ke.type),description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,args:j(ke.arguments),deprecationReason:Uc(ke),astNode:ke}}}return fe}function j(Z){const fe=Z??[],de=Object.create(null);for(const ye of fe){var ge;const he=H(ye.type);de[ye.name.value]={type:he,description:(ge=ye.description)===null||ge===void 0?void 0:ge.value,defaultValue:gr(ye.defaultValue,he),deprecationReason:Uc(ye),astNode:ye}}return de}function J(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.fields)!==null&&de!==void 0?de:[];for(const ke of he){var ge;const De=H(ke.type);fe[ke.name.value]={type:De,description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,defaultValue:gr(ke.defaultValue,De),deprecationReason:Uc(ke),astNode:ke}}}return fe}function te(Z){const fe=Object.create(null);for(const ye of Z){var de;const he=(de=ye.values)!==null&&de!==void 0?de:[];for(const ke of he){var ge;fe[ke.name.value]={description:(ge=ke.description)===null||ge===void 0?void 0:ge.value,deprecationReason:Uc(ke),astNode:ke}}}return fe}function pe(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.interfaces)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function $e(Z){return Z.flatMap(fe=>{var de,ge;return(de=(ge=fe.types)===null||ge===void 0?void 0:ge.map(_e))!==null&&de!==void 0?de:[]})}function Me(Z){var fe;const de=Z.name.value,ge=(fe=d[de])!==null&&fe!==void 0?fe:[];switch(Z.kind){case F.OBJECT_TYPE_DEFINITION:{var ye;const Be=[Z,...ge];return new Ln({name:de,description:(ye=Z.description)===null||ye===void 0?void 0:ye.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case F.INTERFACE_TYPE_DEFINITION:{var he;const Be=[Z,...ge];return new Ji({name:de,description:(he=Z.description)===null||he===void 0?void 0:he.value,interfaces:()=>pe(Be),fields:()=>x(Be),astNode:Z,extensionASTNodes:ge})}case F.ENUM_TYPE_DEFINITION:{var ke;const Be=[Z,...ge];return new yo({name:de,description:(ke=Z.description)===null||ke===void 0?void 0:ke.value,values:te(Be),astNode:Z,extensionASTNodes:ge})}case F.UNION_TYPE_DEFINITION:{var De;const Be=[Z,...ge];return new Zi({name:de,description:(De=Z.description)===null||De===void 0?void 0:De.value,types:()=>$e(Be),astNode:Z,extensionASTNodes:ge})}case F.SCALAR_TYPE_DEFINITION:{var xn;return new kr({name:de,description:(xn=Z.description)===null||xn===void 0?void 0:xn.value,specifiedByURL:fg(Z),astNode:Z,extensionASTNodes:ge})}case F.INPUT_OBJECT_TYPE_DEFINITION:{var Ve;const Be=[Z,...ge];return new Xi({name:de,description:(Ve=Z.description)===null||Ve===void 0?void 0:Ve.value,fields:()=>J(Be),astNode:Z,extensionASTNodes:ge,isOneOf:A$(Z)})}}}}const ug=Gr([...La,...Ma],t=>t.name);function Uc(t){const e=es(Wl,t);return e==null?void 0:e.reason}function fg(t){const e=es(md,t);return e==null?void 0:e.url}function A$(t){return!!es(vd,t)}function Ab(t,e){t!=null&&t.kind===F.DOCUMENT||Pe(!1,"Must provide valid Document AST."),(e==null?void 0:e.assumeValid)!==!0&&(e==null?void 0:e.assumeValidSDL)!==!0&&n$(t);const o=Cb({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},t,e);if(o.astNode==null)for(const a of o.types)switch(a.name){case"Query":o.query=a;break;case"Mutation":o.mutation=a;break;case"Subscription":o.subscription=a;break}const i=[...o.directives,...ko.filter(a=>o.directives.every(c=>c.name!==a.name))];return new ls({...o,directives:i})}function S$(t,e){const n=Xn(t,{noLocation:e==null?void 0:e.noLocation,allowLegacyFragmentVariables:e==null?void 0:e.allowLegacyFragmentVariables});return Ab(n,{assumeValidSDL:e==null?void 0:e.assumeValidSDL,assumeValid:e==null?void 0:e.assumeValid})}function T$(t){const e=t.toConfig(),n=mo(zf(e.types),g=>g.name,y);return new ls({...e,types:Object.values(n),directives:zf(e.directives).map(c),query:a(e.query),mutation:a(e.mutation),subscription:a(e.subscription)});function o(g){return at(g)?new Ut(o(g.ofType)):Ie(g)?new qe(o(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function c(g){const E=g.toConfig();return new Jn({...E,locations:Sb(E.locations,C=>C),args:f(E.args)})}function f(g){return zc(g,E=>({...E,type:o(E.type)}))}function d(g){return zc(g,E=>({...E,type:o(E.type),args:E.args&&f(E.args)}))}function h(g){return zc(g,E=>({...E,type:o(E.type)}))}function v(g){return zf(g).map(i)}function y(g){if(kn(g)||si(g))return g;if(Ue(g)){const E=g.toConfig();return new Ln({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(Ke(g)){const E=g.toConfig();return new Ji({...E,interfaces:()=>v(E.interfaces),fields:()=>d(E.fields)})}if(St(g)){const E=g.toConfig();return new Zi({...E,types:()=>v(E.types)})}if(xt(g)){const E=g.toConfig();return new yo({...E,values:zc(E.values,C=>C)})}if(ct(g)){const E=g.toConfig();return new Xi({...E,fields:()=>h(E.fields)})}_t(!1,"Unexpected type: "+ae(g))}}function zc(t,e){const n=Object.create(null);for(const o of Object.keys(t).sort(Oa))n[o]=e(t[o]);return n}function zf(t){return Sb(t,e=>e.name)}function Sb(t,e){return t.slice().sort((n,o)=>{const i=e(n),a=e(o);return Oa(i,a)})}function D$(t){return Tb(t,e=>!gd(e),O$)}function N$(t){return Tb(t,gd,si)}function O$(t){return!Hl(t)&&!si(t)}function Tb(t,e,n){const o=t.getDirectives().filter(e),i=Object.values(t.getTypeMap()).filter(n);return[I$(t),...o.map(a=>V$(a)),...i.map(a=>Db(a))].filter(Boolean).join(`
|
|
165
|
+
|
|
166
|
+
`)}function I$(t){if(t.description==null&&L$(t))return;const e=[],n=t.getQueryType();n&&e.push(` query: ${n.name}`);const o=t.getMutationType();o&&e.push(` mutation: ${o.name}`);const i=t.getSubscriptionType();return i&&e.push(` subscription: ${i.name}`),Fn(t)+`schema {
|
|
167
|
+
${e.join(`
|
|
168
|
+
`)}
|
|
169
|
+
}`}function L$(t){const e=t.getQueryType();if(e&&e.name!=="Query")return!1;const n=t.getMutationType();if(n&&n.name!=="Mutation")return!1;const o=t.getSubscriptionType();return!(o&&o.name!=="Subscription")}function Db(t){if(kn(t))return F$(t);if(Ue(t))return R$(t);if(Ke(t))return M$(t);if(St(t))return q$(t);if(xt(t))return P$(t);if(ct(t))return B$(t);_t(!1,"Unexpected type: "+ae(t))}function F$(t){return Fn(t)+`scalar ${t.name}`+j$(t)}function Nb(t){const e=t.getInterfaces();return e.length?" implements "+e.map(n=>n.name).join(" & "):""}function R$(t){return Fn(t)+`type ${t.name}`+Nb(t)+Ob(t)}function M$(t){return Fn(t)+`interface ${t.name}`+Nb(t)+Ob(t)}function q$(t){const e=t.getTypes(),n=e.length?" = "+e.join(" | "):"";return Fn(t)+"union "+t.name+n}function P$(t){const e=t.getValues().map((n,o)=>Fn(n," ",!o)+" "+n.name+Bd(n.deprecationReason));return Fn(t)+`enum ${t.name}`+Pd(e)}function B$(t){const e=Object.values(t.getFields()).map((n,o)=>Fn(n," ",!o)+" "+Cp(n));return Fn(t)+`input ${t.name}`+(t.isOneOf?" @oneOf":"")+Pd(e)}function Ob(t){const e=Object.values(t.getFields()).map((n,o)=>Fn(n," ",!o)+" "+n.name+Ib(n.args," ")+": "+String(n.type)+Bd(n.deprecationReason));return Pd(e)}function Pd(t){return t.length!==0?` {
|
|
170
|
+
`+t.join(`
|
|
171
|
+
`)+`
|
|
172
|
+
}`:""}function Ib(t,e=""){return t.length===0?"":t.every(n=>!n.description)?"("+t.map(Cp).join(", ")+")":`(
|
|
173
|
+
`+t.map((n,o)=>Fn(n," "+e,!o)+" "+e+Cp(n)).join(`
|
|
174
|
+
`)+`
|
|
175
|
+
`+e+")"}function Cp(t){const e=jr(t.defaultValue,t.type);let n=t.name+": "+String(t.type);return e&&(n+=` = ${Je(e)}`),n+Bd(t.deprecationReason)}function V$(t){return Fn(t)+"directive @"+t.name+Ib(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}function Bd(t){return t==null?"":t!==hd?` @deprecated(reason: ${Je({kind:F.STRING,value:t})})`:" @deprecated"}function j$(t){return t.specifiedByURL==null?"":` @specifiedBy(url: ${Je({kind:F.STRING,value:t.specifiedByURL})})`}function Fn(t,e="",n=!0){const{description:o}=t;if(o==null)return"";const i=Je({kind:F.STRING,value:o,block:kx(o)});return(e&&!n?`
|
|
176
|
+
`+e:e)+i.replace(/\n/g,`
|
|
177
|
+
`+e)+`
|
|
178
|
+
`}function U$(t){const e=[];for(const n of t)e.push(...n.definitions);return{kind:F.DOCUMENT,definitions:e}}function z$(t){const e=[],n=Object.create(null);for(const i of t.definitions)switch(i.kind){case F.OPERATION_DEFINITION:e.push(i);break;case F.FRAGMENT_DEFINITION:n[i.name.value]=pg(i.selectionSet);break}const o=Object.create(null);for(const i of e){const a=new Set;for(const f of pg(i.selectionSet))Lb(a,n,f);const c=i.name?i.name.value:"";o[c]={kind:F.DOCUMENT,definitions:t.definitions.filter(f=>f===i||f.kind===F.FRAGMENT_DEFINITION&&a.has(f.name.value))}}return o}function Lb(t,e,n){if(!t.has(n)){t.add(n);const o=e[n];if(o!==void 0)for(const i of o)Lb(t,e,i)}}function pg(t){const e=[];return pn(t,{FragmentSpread(n){e.push(n.name.value)}}),e}function H$(t){const e=u0(t)?t:new jl(t),n=e.body,o=new od(e);let i="",a=!1;for(;o.advance().kind!==se.EOF;){const c=o.token,f=c.kind,d=!s0(c.kind);a&&(d||c.kind===se.SPREAD)&&(i+=" ");const h=n.slice(c.start,c.end);f===se.BLOCK_STRING?i+=i0(c.value,{minimize:!0}):i+=h,a=d}return i}function G$(t){const e=Fb(t);if(e)throw e;return t}function Fb(t){if(typeof t=="string"||Pe(!1,"Expected name to be a string."),t.startsWith("__"))return new re(`Name "${t}" must not begin with "__", which is reserved by GraphQL introspection.`);try{_n(t)}catch(e){return e}}var gt;(function(t){t.TYPE_REMOVED="TYPE_REMOVED",t.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",t.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",t.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",t.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",t.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",t.FIELD_REMOVED="FIELD_REMOVED",t.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",t.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",t.ARG_REMOVED="ARG_REMOVED",t.ARG_CHANGED_KIND="ARG_CHANGED_KIND",t.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",t.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",t.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",t.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",t.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(gt||(gt={}));var Yn;(function(t){t.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",t.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",t.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",t.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",t.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",t.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Yn||(Yn={}));function W$(t,e){return Rb(t,e).filter(n=>n.type in gt)}function Q$(t,e){return Rb(t,e).filter(n=>n.type in Yn)}function Rb(t,e){return[...J$(t,e),...Y$(t,e)]}function Y$(t,e){const n=[],o=Wr(t.getDirectives(),e.getDirectives());for(const i of o.removed)n.push({type:gt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,a]of o.persisted){const c=Wr(i.args,a.args);for(const f of c.added)_o(f)&&n.push({type:gt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${f.name} on directive ${i.name} was added.`});for(const f of c.removed)n.push({type:gt.DIRECTIVE_ARG_REMOVED,description:`${f.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:gt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const f of i.locations)a.locations.includes(f)||n.push({type:gt.DIRECTIVE_LOCATION_REMOVED,description:`${f} was removed from ${i.name}.`})}return n}function J$(t,e){const n=[],o=Wr(Object.values(t.getTypeMap()),Object.values(e.getTypeMap()));for(const i of o.removed)n.push({type:gt.TYPE_REMOVED,description:Hl(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,a]of o.persisted)xt(i)&&xt(a)?n.push(...K$(i,a)):St(i)&&St(a)?n.push(...X$(i,a)):ct(i)&&ct(a)?n.push(...Z$(i,a)):Ue(i)&&Ue(a)?n.push(...hg(i,a),...dg(i,a)):Ke(i)&&Ke(a)?n.push(...hg(i,a),...dg(i,a)):i.constructor!==a.constructor&&n.push({type:gt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${mg(i)} to ${mg(a)}.`});return n}function Z$(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.added)zl(i)?n.push({type:gt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${t.name} was added.`}):n.push({type:Yn.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${t.name} was added.`});for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)la(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function X$(t,e){const n=[],o=Wr(t.getTypes(),e.getTypes());for(const i of o.added)n.push({type:Yn.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${t.name}.`});for(const i of o.removed)n.push({type:gt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${t.name}.`});return n}function K$(t,e){const n=[],o=Wr(t.getValues(),e.getValues());for(const i of o.added)n.push({type:Yn.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${t.name}.`});for(const i of o.removed)n.push({type:gt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${t.name}.`});return n}function dg(t,e){const n=[],o=Wr(t.getInterfaces(),e.getInterfaces());for(const i of o.added)n.push({type:Yn.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${t.name}.`});for(const i of o.removed)n.push({type:gt.IMPLEMENTED_INTERFACE_REMOVED,description:`${t.name} no longer implements interface ${i.name}.`});return n}function hg(t,e){const n=[],o=Wr(Object.values(t.getFields()),Object.values(e.getFields()));for(const i of o.removed)n.push({type:gt.FIELD_REMOVED,description:`${t.name}.${i.name} was removed.`});for(const[i,a]of o.persisted)n.push(...eC(t,i,a)),ia(i.type,a.type)||n.push({type:gt.FIELD_CHANGED_KIND,description:`${t.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function eC(t,e,n){const o=[],i=Wr(e.args,n.args);for(const a of i.removed)o.push({type:gt.ARG_REMOVED,description:`${t.name}.${e.name} arg ${a.name} was removed.`});for(const[a,c]of i.persisted)if(!la(a.type,c.type))o.push({type:gt.ARG_CHANGED_KIND,description:`${t.name}.${e.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(c.type)}.`});else if(a.defaultValue!==void 0)if(c.defaultValue===void 0)o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} defaultValue was removed.`});else{const d=vg(a.defaultValue,a.type),h=vg(c.defaultValue,c.type);d!==h&&o.push({type:Yn.ARG_DEFAULT_VALUE_CHANGE,description:`${t.name}.${e.name} arg ${a.name} has changed defaultValue from ${d} to ${h}.`})}for(const a of i.added)_o(a)?o.push({type:gt.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${t.name}.${e.name} was added.`}):o.push({type:Yn.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${t.name}.${e.name} was added.`});return o}function ia(t,e){return at(t)?at(e)&&ia(t.ofType,e.ofType)||Ie(e)&&ia(t,e.ofType):Ie(t)?Ie(e)&&ia(t.ofType,e.ofType):cs(e)&&t.name===e.name||Ie(e)&&ia(t,e.ofType)}function la(t,e){return at(t)?at(e)&&la(t.ofType,e.ofType):Ie(t)?Ie(e)&&la(t.ofType,e.ofType)||!Ie(e)&&la(t.ofType,e):cs(e)&&t.name===e.name}function mg(t){if(kn(t))return"a Scalar type";if(Ue(t))return"an Object type";if(Ke(t))return"an Interface type";if(St(t))return"a Union type";if(xt(t))return"an Enum type";if(ct(t))return"an Input type";_t(!1,"Unexpected type: "+ae(t))}function vg(t,e){const n=jr(t,e);return n!=null||_t(!1),Je(Zl(n))}function Wr(t,e){const n=[],o=[],i=[],a=Gr(t,({name:f})=>f),c=Gr(e,({name:f})=>f);for(const f of t){const d=c[f.name];d===void 0?o.push(f):i.push([f,d])}for(const f of e)a[f.name]===void 0&&n.push(f);return{added:n,persisted:i,removed:o}}const tC=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Vi,get BreakingChangeType(){return gt},DEFAULT_DEPRECATION_REASON:hd,get DangerousChangeType(){return Yn},get DirectiveLocation(){return Te},ExecutableDefinitionsRule:w0,FieldsOnCorrectTypeRule:$0,FragmentsOnCompositeTypesRule:C0,GRAPHQL_MAX_INT:rl,GRAPHQL_MIN_INT:ol,GraphQLBoolean:fn,GraphQLDeprecatedDirective:Wl,GraphQLDirective:Jn,GraphQLEnumType:yo,GraphQLError:re,GraphQLFloat:ud,GraphQLID:fd,GraphQLIncludeDirective:pd,GraphQLInputObjectType:Xi,GraphQLInt:k0,GraphQLInterfaceType:Ji,GraphQLList:Ut,GraphQLNonNull:qe,GraphQLObjectType:Ln,GraphQLOneOfDirective:vd,GraphQLScalarType:kr,GraphQLSchema:ls,GraphQLSkipDirective:dd,GraphQLSpecifiedByDirective:md,GraphQLString:yt,GraphQLUnionType:Zi,get Kind(){return F},KnownArgumentNamesRule:A0,KnownDirectivesRule:Dd,KnownFragmentNamesRule:T0,KnownTypeNamesRule:Nd,Lexer:od,Location:t0,LoneAnonymousOperationRule:D0,LoneSchemaDefinitionRule:N0,MaxIntrospectionDepthRule:O0,NoDeprecatedCustomRule:_$,NoFragmentCyclesRule:I0,NoSchemaIntrospectionCustomRule:k$,NoUndefinedVariablesRule:L0,NoUnusedFragmentsRule:F0,NoUnusedVariablesRule:R0,get OperationTypeNode(){return Ft},OverlappingFieldsCanBeMergedRule:q0,PossibleFragmentSpreadsRule:V0,PossibleTypeExtensionsRule:j0,ProvidedRequiredArgumentsRule:U0,ScalarLeafsRule:H0,SchemaMetaFieldDef:ma,SingleFieldSubscriptionsRule:J0,Source:jl,Token:nd,get TokenKind(){return se},TypeInfo:ai,get TypeKind(){return ot},TypeMetaFieldDef:va,TypeNameMetaFieldDef:ga,UniqueArgumentDefinitionNamesRule:Z0,UniqueArgumentNamesRule:Fd,UniqueDirectiveNamesRule:X0,UniqueDirectivesPerLocationRule:Rd,UniqueEnumValueNamesRule:K0,UniqueFieldDefinitionNamesRule:eb,UniqueFragmentNamesRule:tb,UniqueInputFieldNamesRule:Md,UniqueOperationNamesRule:nb,UniqueOperationTypesRule:rb,UniqueTypeNamesRule:ob,UniqueVariableNamesRule:ib,ValidationContext:pb,ValuesOfCorrectTypeRule:sb,VariablesAreInputTypesRule:ab,VariablesInAllowedPositionRule:cb,__Directive:bd,__DirectiveLocation:Ed,__EnumValue:kd,__Field:_d,__InputValue:Ra,__Schema:Ql,__Type:Dn,__TypeKind:xd,assertAbstractType:cw,assertCompositeType:aw,assertDirective:dw,assertEnumType:ew,assertEnumValueName:d0,assertInputObjectType:tw,assertInputType:ow,assertInterfaceType:m0,assertLeafType:sw,assertListType:nw,assertName:_n,assertNamedType:uw,assertNonNullType:rw,assertNullableType:v0,assertObjectType:h0,assertOutputType:iw,assertScalarType:Xx,assertSchema:wd,assertType:Zx,assertUnionType:Kx,assertValidName:G$,assertValidSchema:$d,assertWrappingType:lw,astFromValue:jr,buildASTSchema:Ab,buildClientSchema:$b,buildSchema:S$,coerceInputValue:W0,concatAST:U$,createSourceEventStream:wb,defaultFieldResolver:$p,defaultTypeResolver:Eb,doTypesOverlap:Ep,execute:Kl,executeSync:mb,extendSchema:C$,findBreakingChanges:W$,findDangerousChanges:Q$,formatError:yx,getArgumentValues:Xl,getDirectiveValues:es,getEnterLeaveForKind:Yi,getIntrospectionQuery:qd,getLocation:cl,getNamedType:Rt,getNullableType:ad,getOperationAST:x$,getOperationRootType:w$,getVariableValues:Q0,getVisitFn:Qx,graphql:m$,graphqlSync:v$,introspectionFromSchema:$$,introspectionTypes:Ma,isAbstractType:Er,isCompositeType:_r,isConstValueNode:_p,isDefinitionNode:Cw,isDirective:Gl,isEnumType:xt,isEqualType:ul,isExecutableDefinitionNode:Ad,isInputObjectType:ct,isInputType:un,isInterfaceType:Ke,isIntrospectionType:si,isLeafType:dn,isListType:at,isNamedType:cs,isNonNullType:Ie,isNullableType:sd,isObjectType:Ue,isOutputType:vo,isRequiredArgument:_o,isRequiredInputField:zl,isScalarType:kn,isSchema:fl,isSelectionNode:Aw,isSpecifiedDirective:gd,isSpecifiedScalarType:Hl,isType:go,isTypeDefinitionNode:us,isTypeExtensionNode:Jl,isTypeNode:Sw,isTypeSubTypeOf:Qo,isTypeSystemDefinitionNode:Sd,isTypeSystemExtensionNode:Td,isUnionType:St,isValidNameError:Fb,isValueNode:x0,isWrappingType:Ia,lexicographicSortSchema:T$,locatedError:ts,parse:Xn,parseConstValue:Px,parseType:Bx,parseValue:f0,print:Je,printError:gx,printIntrospectionSchema:N$,printLocation:e0,printSchema:D$,printSourceLocation:td,printType:Db,recommendedRules:lb,resolveObjMapThunk:ld,resolveReadonlyArrayThunk:cd,responsePathAsArray:tn,separateOperations:z$,specifiedDirectives:ko,specifiedRules:ub,specifiedScalarTypes:La,stripIgnoredCharacters:H$,subscribe:y$,syntaxError:Lt,typeFromAST:nn,validate:db,validateSchema:Yl,valueFromAST:gr,valueFromASTUntyped:ll,version:dx,versionInfo:hx,visit:pn,visitInParallel:id,visitWithTypeInfo:qa},Symbol.toStringTag,{value:"Module"}));var Mb=Object.defineProperty,nC=Object.defineProperties,rC=Object.getOwnPropertyDescriptors,yl=Object.getOwnPropertySymbols,qb=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,gg=(t,e,n)=>e in t?Mb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vn=(t,e)=>{for(var n in e||(e={}))qb.call(e,n)&&gg(t,n,e[n]);if(yl)for(var n of yl(e))Pb.call(e,n)&&gg(t,n,e[n]);return t},Ur=(t,e)=>nC(t,rC(e)),$=(t,e)=>Mb(t,"name",{value:e,configurable:!0}),oC=(t,e)=>{var n={};for(var o in t)qb.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&yl)for(var o of yl(t))e.indexOf(o)<0&&Pb.call(t,o)&&(n[o]=t[o]);return n},c8e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hv<"u"?Hv:typeof self<"u"?self:{};function Bb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}$(Bb,"getDefaultExportFromCjs");function Vb(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),e}$(Vb,"getAugmentedNamespace");/*!
|
|
179
|
+
* escape-html
|
|
180
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
181
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
182
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
183
|
+
* MIT Licensed
|
|
184
|
+
*/var iC=/["'&<>]/,sC=jb;function jb(t){var e=""+t,n=iC.exec(e);if(!n)return e;var o,i="",a=0,c=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}c!==a&&(i+=e.substring(c,a)),c=a+1,i+=o}return c!==a?i+e.substring(c,a):i}$(jb,"escapeHtml$1");var et={};const aC="Á",cC="á",lC="Ă",uC="ă",fC="∾",pC="∿",dC="∾̳",hC="Â",mC="â",vC="´",gC="А",yC="а",bC="Æ",EC="æ",_C="",kC="𝔄",xC="𝔞",wC="À",$C="à",CC="ℵ",AC="ℵ",SC="Α",TC="α",DC="Ā",NC="ā",OC="⨿",IC="&",LC="&",FC="⩕",RC="⩓",MC="∧",qC="⩜",PC="⩘",BC="⩚",VC="∠",jC="⦤",UC="∠",zC="⦨",HC="⦩",GC="⦪",WC="⦫",QC="⦬",YC="⦭",JC="⦮",ZC="⦯",XC="∡",KC="∟",eA="⊾",tA="⦝",nA="∢",rA="Å",oA="⍼",iA="Ą",sA="ą",aA="𝔸",cA="𝕒",lA="⩯",uA="≈",fA="⩰",pA="≊",dA="≋",hA="'",mA="",vA="≈",gA="≊",yA="Å",bA="å",EA="𝒜",_A="𝒶",kA="≔",xA="*",wA="≈",$A="≍",CA="Ã",AA="ã",SA="Ä",TA="ä",DA="∳",NA="⨑",OA="≌",IA="϶",LA="‵",FA="∽",RA="⋍",MA="∖",qA="⫧",PA="⊽",BA="⌅",VA="⌆",jA="⌅",UA="⎵",zA="⎶",HA="≌",GA="Б",WA="б",QA="„",YA="∵",JA="∵",ZA="∵",XA="⦰",KA="϶",eS="ℬ",tS="ℬ",nS="Β",rS="β",oS="ℶ",iS="≬",sS="𝔅",aS="𝔟",cS="⋂",lS="◯",uS="⋃",fS="⨀",pS="⨁",dS="⨂",hS="⨆",mS="★",vS="▽",gS="△",yS="⨄",bS="⋁",ES="⋀",_S="⤍",kS="⧫",xS="▪",wS="▴",$S="▾",CS="◂",AS="▸",SS="␣",TS="▒",DS="░",NS="▓",OS="█",IS="=⃥",LS="≡⃥",FS="⫭",RS="⌐",MS="𝔹",qS="𝕓",PS="⊥",BS="⊥",VS="⋈",jS="⧉",US="┐",zS="╕",HS="╖",GS="╗",WS="┌",QS="╒",YS="╓",JS="╔",ZS="─",XS="═",KS="┬",eT="╤",tT="╥",nT="╦",rT="┴",oT="╧",iT="╨",sT="╩",aT="⊟",cT="⊞",lT="⊠",uT="┘",fT="╛",pT="╜",dT="╝",hT="└",mT="╘",vT="╙",gT="╚",yT="│",bT="║",ET="┼",_T="╪",kT="╫",xT="╬",wT="┤",$T="╡",CT="╢",AT="╣",ST="├",TT="╞",DT="╟",NT="╠",OT="‵",IT="˘",LT="˘",FT="¦",RT="𝒷",MT="ℬ",qT="⁏",PT="∽",BT="⋍",VT="⧅",jT="\\",UT="⟈",zT="•",HT="•",GT="≎",WT="⪮",QT="≏",YT="≎",JT="≏",ZT="Ć",XT="ć",KT="⩄",eD="⩉",tD="⩋",nD="∩",rD="⋒",oD="⩇",iD="⩀",sD="ⅅ",aD="∩︀",cD="⁁",lD="ˇ",uD="ℭ",fD="⩍",pD="Č",dD="č",hD="Ç",mD="ç",vD="Ĉ",gD="ĉ",yD="∰",bD="⩌",ED="⩐",_D="Ċ",kD="ċ",xD="¸",wD="¸",$D="⦲",CD="¢",AD="·",SD="·",TD="𝔠",DD="ℭ",ND="Ч",OD="ч",ID="✓",LD="✓",FD="Χ",RD="χ",MD="ˆ",qD="≗",PD="↺",BD="↻",VD="⊛",jD="⊚",UD="⊝",zD="⊙",HD="®",GD="Ⓢ",WD="⊖",QD="⊕",YD="⊗",JD="○",ZD="⧃",XD="≗",KD="⨐",eN="⫯",tN="⧂",nN="∲",rN="”",oN="’",iN="♣",sN="♣",aN=":",cN="∷",lN="⩴",uN="≔",fN="≔",pN=",",dN="@",hN="∁",mN="∘",vN="∁",gN="ℂ",yN="≅",bN="⩭",EN="≡",_N="∮",kN="∯",xN="∮",wN="𝕔",$N="ℂ",CN="∐",AN="∐",SN="©",TN="©",DN="℗",NN="∳",ON="↵",IN="✗",LN="⨯",FN="𝒞",RN="𝒸",MN="⫏",qN="⫑",PN="⫐",BN="⫒",VN="⋯",jN="⤸",UN="⤵",zN="⋞",HN="⋟",GN="↶",WN="⤽",QN="⩈",YN="⩆",JN="≍",ZN="∪",XN="⋓",KN="⩊",eO="⊍",tO="⩅",nO="∪︀",rO="↷",oO="⤼",iO="⋞",sO="⋟",aO="⋎",cO="⋏",lO="¤",uO="↶",fO="↷",pO="⋎",dO="⋏",hO="∲",mO="∱",vO="⌭",gO="†",yO="‡",bO="ℸ",EO="↓",_O="↡",kO="⇓",xO="‐",wO="⫤",$O="⊣",CO="⤏",AO="˝",SO="Ď",TO="ď",DO="Д",NO="д",OO="‡",IO="⇊",LO="ⅅ",FO="ⅆ",RO="⤑",MO="⩷",qO="°",PO="∇",BO="Δ",VO="δ",jO="⦱",UO="⥿",zO="𝔇",HO="𝔡",GO="⥥",WO="⇃",QO="⇂",YO="´",JO="˙",ZO="˝",XO="`",KO="˜",eI="⋄",tI="⋄",nI="⋄",rI="♦",oI="♦",iI="¨",sI="ⅆ",aI="ϝ",cI="⋲",lI="÷",uI="÷",fI="⋇",pI="⋇",dI="Ђ",hI="ђ",mI="⌞",vI="⌍",gI="$",yI="𝔻",bI="𝕕",EI="¨",_I="˙",kI="⃜",xI="≐",wI="≑",$I="≐",CI="∸",AI="∔",SI="⊡",TI="⌆",DI="∯",NI="¨",OI="⇓",II="⇐",LI="⇔",FI="⫤",RI="⟸",MI="⟺",qI="⟹",PI="⇒",BI="⊨",VI="⇑",jI="⇕",UI="∥",zI="⤓",HI="↓",GI="↓",WI="⇓",QI="⇵",YI="̑",JI="⇊",ZI="⇃",XI="⇂",KI="⥐",eL="⥞",tL="⥖",nL="↽",rL="⥟",oL="⥗",iL="⇁",sL="↧",aL="⊤",cL="⤐",lL="⌟",uL="⌌",fL="𝒟",pL="𝒹",dL="Ѕ",hL="ѕ",mL="⧶",vL="Đ",gL="đ",yL="⋱",bL="▿",EL="▾",_L="⇵",kL="⥯",xL="⦦",wL="Џ",$L="џ",CL="⟿",AL="É",SL="é",TL="⩮",DL="Ě",NL="ě",OL="Ê",IL="ê",LL="≖",FL="≕",RL="Э",ML="э",qL="⩷",PL="Ė",BL="ė",VL="≑",jL="ⅇ",UL="≒",zL="𝔈",HL="𝔢",GL="⪚",WL="È",QL="è",YL="⪖",JL="⪘",ZL="⪙",XL="∈",KL="⏧",eF="ℓ",tF="⪕",nF="⪗",rF="Ē",oF="ē",iF="∅",sF="∅",aF="◻",cF="∅",lF="▫",uF=" ",fF=" ",pF=" ",dF="Ŋ",hF="ŋ",mF=" ",vF="Ę",gF="ę",yF="𝔼",bF="𝕖",EF="⋕",_F="⧣",kF="⩱",xF="ε",wF="Ε",$F="ε",CF="ϵ",AF="≖",SF="≕",TF="≂",DF="⪖",NF="⪕",OF="⩵",IF="=",LF="≂",FF="≟",RF="⇌",MF="≡",qF="⩸",PF="⧥",BF="⥱",VF="≓",jF="ℯ",UF="ℰ",zF="≐",HF="⩳",GF="≂",WF="Η",QF="η",YF="Ð",JF="ð",ZF="Ë",XF="ë",KF="€",eR="!",tR="∃",nR="∃",rR="ℰ",oR="ⅇ",iR="ⅇ",sR="≒",aR="Ф",cR="ф",lR="♀",uR="ffi",fR="ff",pR="ffl",dR="𝔉",hR="𝔣",mR="fi",vR="◼",gR="▪",yR="fj",bR="♭",ER="fl",_R="▱",kR="ƒ",xR="𝔽",wR="𝕗",$R="∀",CR="∀",AR="⋔",SR="⫙",TR="ℱ",DR="⨍",NR="½",OR="⅓",IR="¼",LR="⅕",FR="⅙",RR="⅛",MR="⅔",qR="⅖",PR="¾",BR="⅗",VR="⅜",jR="⅘",UR="⅚",zR="⅝",HR="⅞",GR="⁄",WR="⌢",QR="𝒻",YR="ℱ",JR="ǵ",ZR="Γ",XR="γ",KR="Ϝ",eM="ϝ",tM="⪆",nM="Ğ",rM="ğ",oM="Ģ",iM="Ĝ",sM="ĝ",aM="Г",cM="г",lM="Ġ",uM="ġ",fM="≥",pM="≧",dM="⪌",hM="⋛",mM="≥",vM="≧",gM="⩾",yM="⪩",bM="⩾",EM="⪀",_M="⪂",kM="⪄",xM="⋛︀",wM="⪔",$M="𝔊",CM="𝔤",AM="≫",SM="⋙",TM="⋙",DM="ℷ",NM="Ѓ",OM="ѓ",IM="⪥",LM="≷",FM="⪒",RM="⪤",MM="⪊",qM="⪊",PM="⪈",BM="≩",VM="⪈",jM="≩",UM="⋧",zM="𝔾",HM="𝕘",GM="`",WM="≥",QM="⋛",YM="≧",JM="⪢",ZM="≷",XM="⩾",KM="≳",eq="𝒢",tq="ℊ",nq="≳",rq="⪎",oq="⪐",iq="⪧",sq="⩺",aq=">",cq=">",lq="≫",uq="⋗",fq="⦕",pq="⩼",dq="⪆",hq="⥸",mq="⋗",vq="⋛",gq="⪌",yq="≷",bq="≳",Eq="≩︀",_q="≩︀",kq="ˇ",xq=" ",wq="½",$q="ℋ",Cq="Ъ",Aq="ъ",Sq="⥈",Tq="↔",Dq="⇔",Nq="↭",Oq="^",Iq="ℏ",Lq="Ĥ",Fq="ĥ",Rq="♥",Mq="♥",qq="…",Pq="⊹",Bq="𝔥",Vq="ℌ",jq="ℋ",Uq="⤥",zq="⤦",Hq="⇿",Gq="∻",Wq="↩",Qq="↪",Yq="𝕙",Jq="ℍ",Zq="―",Xq="─",Kq="𝒽",eP="ℋ",tP="ℏ",nP="Ħ",rP="ħ",oP="≎",iP="≏",sP="⁃",aP="‐",cP="Í",lP="í",uP="",fP="Î",pP="î",dP="И",hP="и",mP="İ",vP="Е",gP="е",yP="¡",bP="⇔",EP="𝔦",_P="ℑ",kP="Ì",xP="ì",wP="ⅈ",$P="⨌",CP="∭",AP="⧜",SP="℩",TP="IJ",DP="ij",NP="Ī",OP="ī",IP="ℑ",LP="ⅈ",FP="ℐ",RP="ℑ",MP="ı",qP="ℑ",PP="⊷",BP="Ƶ",VP="⇒",jP="℅",UP="∞",zP="⧝",HP="ı",GP="⊺",WP="∫",QP="∬",YP="ℤ",JP="∫",ZP="⊺",XP="⋂",KP="⨗",e3="⨼",t3="",n3="",r3="Ё",o3="ё",i3="Į",s3="į",a3="𝕀",c3="𝕚",l3="Ι",u3="ι",f3="⨼",p3="¿",d3="𝒾",h3="ℐ",m3="∈",v3="⋵",g3="⋹",y3="⋴",b3="⋳",E3="∈",_3="",k3="Ĩ",x3="ĩ",w3="І",$3="і",C3="Ï",A3="ï",S3="Ĵ",T3="ĵ",D3="Й",N3="й",O3="𝔍",I3="𝔧",L3="ȷ",F3="𝕁",R3="𝕛",M3="𝒥",q3="𝒿",P3="Ј",B3="ј",V3="Є",j3="є",U3="Κ",z3="κ",H3="ϰ",G3="Ķ",W3="ķ",Q3="К",Y3="к",J3="𝔎",Z3="𝔨",X3="ĸ",K3="Х",eB="х",tB="Ќ",nB="ќ",rB="𝕂",oB="𝕜",iB="𝒦",sB="𝓀",aB="⇚",cB="Ĺ",lB="ĺ",uB="⦴",fB="ℒ",pB="Λ",dB="λ",hB="⟨",mB="⟪",vB="⦑",gB="⟨",yB="⪅",bB="ℒ",EB="«",_B="⇤",kB="⤟",xB="←",wB="↞",$B="⇐",CB="⤝",AB="↩",SB="↫",TB="⤹",DB="⥳",NB="↢",OB="⤙",IB="⤛",LB="⪫",FB="⪭",RB="⪭︀",MB="⤌",qB="⤎",PB="❲",BB="{",VB="[",jB="⦋",UB="⦏",zB="⦍",HB="Ľ",GB="ľ",WB="Ļ",QB="ļ",YB="⌈",JB="{",ZB="Л",XB="л",KB="⤶",e5="“",t5="„",n5="⥧",r5="⥋",o5="↲",i5="≤",s5="≦",a5="⟨",c5="⇤",l5="←",u5="←",f5="⇐",p5="⇆",d5="↢",h5="⌈",m5="⟦",v5="⥡",g5="⥙",y5="⇃",b5="⌊",E5="↽",_5="↼",k5="⇇",x5="↔",w5="↔",$5="⇔",C5="⇆",A5="⇋",S5="↭",T5="⥎",D5="↤",N5="⊣",O5="⥚",I5="⋋",L5="⧏",F5="⊲",R5="⊴",M5="⥑",q5="⥠",P5="⥘",B5="↿",V5="⥒",j5="↼",U5="⪋",z5="⋚",H5="≤",G5="≦",W5="⩽",Q5="⪨",Y5="⩽",J5="⩿",Z5="⪁",X5="⪃",K5="⋚︀",eV="⪓",tV="⪅",nV="⋖",rV="⋚",oV="⪋",iV="⋚",sV="≦",aV="≶",cV="≶",lV="⪡",uV="≲",fV="⩽",pV="≲",dV="⥼",hV="⌊",mV="𝔏",vV="𝔩",gV="≶",yV="⪑",bV="⥢",EV="↽",_V="↼",kV="⥪",xV="▄",wV="Љ",$V="љ",CV="⇇",AV="≪",SV="⋘",TV="⌞",DV="⇚",NV="⥫",OV="◺",IV="Ŀ",LV="ŀ",FV="⎰",RV="⎰",MV="⪉",qV="⪉",PV="⪇",BV="≨",VV="⪇",jV="≨",UV="⋦",zV="⟬",HV="⇽",GV="⟦",WV="⟵",QV="⟵",YV="⟸",JV="⟷",ZV="⟷",XV="⟺",KV="⟼",e9="⟶",t9="⟶",n9="⟹",r9="↫",o9="↬",i9="⦅",s9="𝕃",a9="𝕝",c9="⨭",l9="⨴",u9="∗",f9="_",p9="↙",d9="↘",h9="◊",m9="◊",v9="⧫",g9="(",y9="⦓",b9="⇆",E9="⌟",_9="⇋",k9="⥭",x9="",w9="⊿",$9="‹",C9="𝓁",A9="ℒ",S9="↰",T9="↰",D9="≲",N9="⪍",O9="⪏",I9="[",L9="‘",F9="‚",R9="Ł",M9="ł",q9="⪦",P9="⩹",B9="<",V9="<",j9="≪",U9="⋖",z9="⋋",H9="⋉",G9="⥶",W9="⩻",Q9="◃",Y9="⊴",J9="◂",Z9="⦖",X9="⥊",K9="⥦",e4="≨︀",t4="≨︀",n4="¯",r4="♂",o4="✠",i4="✠",s4="↦",a4="↦",c4="↧",l4="↤",u4="↥",f4="▮",p4="⨩",d4="М",h4="м",m4="—",v4="∺",g4="∡",y4=" ",b4="ℳ",E4="𝔐",_4="𝔪",k4="℧",x4="µ",w4="*",$4="⫰",C4="∣",A4="·",S4="⊟",T4="−",D4="∸",N4="⨪",O4="∓",I4="⫛",L4="…",F4="∓",R4="⊧",M4="𝕄",q4="𝕞",P4="∓",B4="𝓂",V4="ℳ",j4="∾",U4="Μ",z4="μ",H4="⊸",G4="⊸",W4="∇",Q4="Ń",Y4="ń",J4="∠⃒",Z4="≉",X4="⩰̸",K4="≋̸",ej="ʼn",tj="≉",nj="♮",rj="ℕ",oj="♮",ij=" ",sj="≎̸",aj="≏̸",cj="⩃",lj="Ň",uj="ň",fj="Ņ",pj="ņ",dj="≇",hj="⩭̸",mj="⩂",vj="Н",gj="н",yj="–",bj="⤤",Ej="↗",_j="⇗",kj="↗",xj="≠",wj="≐̸",$j="",Cj="",Aj="",Sj="",Tj="≢",Dj="⤨",Nj="≂̸",Oj="≫",Ij="≪",Lj=`
|
|
185
|
+
`,Fj="∄",Rj="∄",Mj="𝔑",qj="𝔫",Pj="≧̸",Bj="≱",Vj="≱",jj="≧̸",Uj="⩾̸",zj="⩾̸",Hj="⋙̸",Gj="≵",Wj="≫⃒",Qj="≯",Yj="≯",Jj="≫̸",Zj="↮",Xj="⇎",Kj="⫲",e6="∋",t6="⋼",n6="⋺",r6="∋",o6="Њ",i6="њ",s6="↚",a6="⇍",c6="‥",l6="≦̸",u6="≰",f6="↚",p6="⇍",d6="↮",h6="⇎",m6="≰",v6="≦̸",g6="⩽̸",y6="⩽̸",b6="≮",E6="⋘̸",_6="≴",k6="≪⃒",x6="≮",w6="⋪",$6="⋬",C6="≪̸",A6="∤",S6="",T6=" ",D6="𝕟",N6="ℕ",O6="⫬",I6="¬",L6="≢",F6="≭",R6="∦",M6="∉",q6="≠",P6="≂̸",B6="∄",V6="≯",j6="≱",U6="≧̸",z6="≫̸",H6="≹",G6="⩾̸",W6="≵",Q6="≎̸",Y6="≏̸",J6="∉",Z6="⋵̸",X6="⋹̸",K6="∉",eU="⋷",tU="⋶",nU="⧏̸",rU="⋪",oU="⋬",iU="≮",sU="≰",aU="≸",cU="≪̸",lU="⩽̸",uU="≴",fU="⪢̸",pU="⪡̸",dU="∌",hU="∌",mU="⋾",vU="⋽",gU="⊀",yU="⪯̸",bU="⋠",EU="∌",_U="⧐̸",kU="⋫",xU="⋭",wU="⊏̸",$U="⋢",CU="⊐̸",AU="⋣",SU="⊂⃒",TU="⊈",DU="⊁",NU="⪰̸",OU="⋡",IU="≿̸",LU="⊃⃒",FU="⊉",RU="≁",MU="≄",qU="≇",PU="≉",BU="∤",VU="∦",jU="∦",UU="⫽⃥",zU="∂̸",HU="⨔",GU="⊀",WU="⋠",QU="⊀",YU="⪯̸",JU="⪯̸",ZU="⤳̸",XU="↛",KU="⇏",ez="↝̸",tz="↛",nz="⇏",rz="⋫",oz="⋭",iz="⊁",sz="⋡",az="⪰̸",cz="𝒩",lz="𝓃",uz="∤",fz="∦",pz="≁",dz="≄",hz="≄",mz="∤",vz="∦",gz="⋢",yz="⋣",bz="⊄",Ez="⫅̸",_z="⊈",kz="⊂⃒",xz="⊈",wz="⫅̸",$z="⊁",Cz="⪰̸",Az="⊅",Sz="⫆̸",Tz="⊉",Dz="⊃⃒",Nz="⊉",Oz="⫆̸",Iz="≹",Lz="Ñ",Fz="ñ",Rz="≸",Mz="⋪",qz="⋬",Pz="⋫",Bz="⋭",Vz="Ν",jz="ν",Uz="#",zz="№",Hz=" ",Gz="≍⃒",Wz="⊬",Qz="⊭",Yz="⊮",Jz="⊯",Zz="≥⃒",Xz=">⃒",Kz="⤄",e8="⧞",t8="⤂",n8="≤⃒",r8="<⃒",o8="⊴⃒",i8="⤃",s8="⊵⃒",a8="∼⃒",c8="⤣",l8="↖",u8="⇖",f8="↖",p8="⤧",d8="Ó",h8="ó",m8="⊛",v8="Ô",g8="ô",y8="⊚",b8="О",E8="о",_8="⊝",k8="Ő",x8="ő",w8="⨸",$8="⊙",C8="⦼",A8="Œ",S8="œ",T8="⦿",D8="𝔒",N8="𝔬",O8="˛",I8="Ò",L8="ò",F8="⧁",R8="⦵",M8="Ω",q8="∮",P8="↺",B8="⦾",V8="⦻",j8="‾",U8="⧀",z8="Ō",H8="ō",G8="Ω",W8="ω",Q8="Ο",Y8="ο",J8="⦶",Z8="⊖",X8="𝕆",K8="𝕠",e7="⦷",t7="“",n7="‘",r7="⦹",o7="⊕",i7="↻",s7="⩔",a7="∨",c7="⩝",l7="ℴ",u7="ℴ",f7="ª",p7="º",d7="⊶",h7="⩖",m7="⩗",v7="⩛",g7="Ⓢ",y7="𝒪",b7="ℴ",E7="Ø",_7="ø",k7="⊘",x7="Õ",w7="õ",$7="⨶",C7="⨷",A7="⊗",S7="Ö",T7="ö",D7="⌽",N7="‾",O7="⏞",I7="⎴",L7="⏜",F7="¶",R7="∥",M7="∥",q7="⫳",P7="⫽",B7="∂",V7="∂",j7="П",U7="п",z7="%",H7=".",G7="‰",W7="⊥",Q7="‱",Y7="𝔓",J7="𝔭",Z7="Φ",X7="φ",K7="ϕ",eH="ℳ",tH="☎",nH="Π",rH="π",oH="⋔",iH="ϖ",sH="ℏ",aH="ℎ",cH="ℏ",lH="⨣",uH="⊞",fH="⨢",pH="+",dH="∔",hH="⨥",mH="⩲",vH="±",gH="±",yH="⨦",bH="⨧",EH="±",_H="ℌ",kH="⨕",xH="𝕡",wH="ℙ",$H="£",CH="⪷",AH="⪻",SH="≺",TH="≼",DH="⪷",NH="≺",OH="≼",IH="≺",LH="⪯",FH="≼",RH="≾",MH="⪯",qH="⪹",PH="⪵",BH="⋨",VH="⪯",jH="⪳",UH="≾",zH="′",HH="″",GH="ℙ",WH="⪹",QH="⪵",YH="⋨",JH="∏",ZH="∏",XH="⌮",KH="⌒",eG="⌓",tG="∝",nG="∝",rG="∷",oG="∝",iG="≾",sG="⊰",aG="𝒫",cG="𝓅",lG="Ψ",uG="ψ",fG=" ",pG="𝔔",dG="𝔮",hG="⨌",mG="𝕢",vG="ℚ",gG="⁗",yG="𝒬",bG="𝓆",EG="ℍ",_G="⨖",kG="?",xG="≟",wG='"',$G='"',CG="⇛",AG="∽̱",SG="Ŕ",TG="ŕ",DG="√",NG="⦳",OG="⟩",IG="⟫",LG="⦒",FG="⦥",RG="⟩",MG="»",qG="⥵",PG="⇥",BG="⤠",VG="⤳",jG="→",UG="↠",zG="⇒",HG="⤞",GG="↪",WG="↬",QG="⥅",YG="⥴",JG="⤖",ZG="↣",XG="↝",KG="⤚",eW="⤜",tW="∶",nW="ℚ",rW="⤍",oW="⤏",iW="⤐",sW="❳",aW="}",cW="]",lW="⦌",uW="⦎",fW="⦐",pW="Ř",dW="ř",hW="Ŗ",mW="ŗ",vW="⌉",gW="}",yW="Р",bW="р",EW="⤷",_W="⥩",kW="”",xW="”",wW="↳",$W="ℜ",CW="ℛ",AW="ℜ",SW="ℝ",TW="ℜ",DW="▭",NW="®",OW="®",IW="∋",LW="⇋",FW="⥯",RW="⥽",MW="⌋",qW="𝔯",PW="ℜ",BW="⥤",VW="⇁",jW="⇀",UW="⥬",zW="Ρ",HW="ρ",GW="ϱ",WW="⟩",QW="⇥",YW="→",JW="→",ZW="⇒",XW="⇄",KW="↣",eQ="⌉",tQ="⟧",nQ="⥝",rQ="⥕",oQ="⇂",iQ="⌋",sQ="⇁",aQ="⇀",cQ="⇄",lQ="⇌",uQ="⇉",fQ="↝",pQ="↦",dQ="⊢",hQ="⥛",mQ="⋌",vQ="⧐",gQ="⊳",yQ="⊵",bQ="⥏",EQ="⥜",_Q="⥔",kQ="↾",xQ="⥓",wQ="⇀",$Q="˚",CQ="≓",AQ="⇄",SQ="⇌",TQ="",DQ="⎱",NQ="⎱",OQ="⫮",IQ="⟭",LQ="⇾",FQ="⟧",RQ="⦆",MQ="𝕣",qQ="ℝ",PQ="⨮",BQ="⨵",VQ="⥰",jQ=")",UQ="⦔",zQ="⨒",HQ="⇉",GQ="⇛",WQ="›",QQ="𝓇",YQ="ℛ",JQ="↱",ZQ="↱",XQ="]",KQ="’",eY="’",tY="⋌",nY="⋊",rY="▹",oY="⊵",iY="▸",sY="⧎",aY="⧴",cY="⥨",lY="℞",uY="Ś",fY="ś",pY="‚",dY="⪸",hY="Š",mY="š",vY="⪼",gY="≻",yY="≽",bY="⪰",EY="⪴",_Y="Ş",kY="ş",xY="Ŝ",wY="ŝ",$Y="⪺",CY="⪶",AY="⋩",SY="⨓",TY="≿",DY="С",NY="с",OY="⊡",IY="⋅",LY="⩦",FY="⤥",RY="↘",MY="⇘",qY="↘",PY="§",BY=";",VY="⤩",jY="∖",UY="∖",zY="✶",HY="𝔖",GY="𝔰",WY="⌢",QY="♯",YY="Щ",JY="щ",ZY="Ш",XY="ш",KY="↓",eJ="←",tJ="∣",nJ="∥",rJ="→",oJ="↑",iJ="",sJ="Σ",aJ="σ",cJ="ς",lJ="ς",uJ="∼",fJ="⩪",pJ="≃",dJ="≃",hJ="⪞",mJ="⪠",vJ="⪝",gJ="⪟",yJ="≆",bJ="⨤",EJ="⥲",_J="←",kJ="∘",xJ="∖",wJ="⨳",$J="⧤",CJ="∣",AJ="⌣",SJ="⪪",TJ="⪬",DJ="⪬︀",NJ="Ь",OJ="ь",IJ="⌿",LJ="⧄",FJ="/",RJ="𝕊",MJ="𝕤",qJ="♠",PJ="♠",BJ="∥",VJ="⊓",jJ="⊓︀",UJ="⊔",zJ="⊔︀",HJ="√",GJ="⊏",WJ="⊑",QJ="⊏",YJ="⊑",JJ="⊐",ZJ="⊒",XJ="⊐",KJ="⊒",eZ="□",tZ="□",nZ="⊓",rZ="⊏",oZ="⊑",iZ="⊐",sZ="⊒",aZ="⊔",cZ="▪",lZ="□",uZ="▪",fZ="→",pZ="𝒮",dZ="𝓈",hZ="∖",mZ="⌣",vZ="⋆",gZ="⋆",yZ="☆",bZ="★",EZ="ϵ",_Z="ϕ",kZ="¯",xZ="⊂",wZ="⋐",$Z="⪽",CZ="⫅",AZ="⊆",SZ="⫃",TZ="⫁",DZ="⫋",NZ="⊊",OZ="⪿",IZ="⥹",LZ="⊂",FZ="⋐",RZ="⊆",MZ="⫅",qZ="⊆",PZ="⊊",BZ="⫋",VZ="⫇",jZ="⫕",UZ="⫓",zZ="⪸",HZ="≻",GZ="≽",WZ="≻",QZ="⪰",YZ="≽",JZ="≿",ZZ="⪰",XZ="⪺",KZ="⪶",eX="⋩",tX="≿",nX="∋",rX="∑",oX="∑",iX="♪",sX="¹",aX="²",cX="³",lX="⊃",uX="⋑",fX="⪾",pX="⫘",dX="⫆",hX="⊇",mX="⫄",vX="⊃",gX="⊇",yX="⟉",bX="⫗",EX="⥻",_X="⫂",kX="⫌",xX="⊋",wX="⫀",$X="⊃",CX="⋑",AX="⊇",SX="⫆",TX="⊋",DX="⫌",NX="⫈",OX="⫔",IX="⫖",LX="⤦",FX="↙",RX="⇙",MX="↙",qX="⤪",PX="ß",BX=" ",VX="⌖",jX="Τ",UX="τ",zX="⎴",HX="Ť",GX="ť",WX="Ţ",QX="ţ",YX="Т",JX="т",ZX="⃛",XX="⌕",KX="𝔗",eK="𝔱",tK="∴",nK="∴",rK="∴",oK="Θ",iK="θ",sK="ϑ",aK="ϑ",cK="≈",lK="∼",uK=" ",fK=" ",pK=" ",dK="≈",hK="∼",mK="Þ",vK="þ",gK="˜",yK="∼",bK="≃",EK="≅",_K="≈",kK="⨱",xK="⊠",wK="×",$K="⨰",CK="∭",AK="⤨",SK="⌶",TK="⫱",DK="⊤",NK="𝕋",OK="𝕥",IK="⫚",LK="⤩",FK="‴",RK="™",MK="™",qK="▵",PK="▿",BK="◃",VK="⊴",jK="≜",UK="▹",zK="⊵",HK="◬",GK="≜",WK="⨺",QK="⃛",YK="⨹",JK="⧍",ZK="⨻",XK="⏢",KK="𝒯",eee="𝓉",tee="Ц",nee="ц",ree="Ћ",oee="ћ",iee="Ŧ",see="ŧ",aee="≬",cee="↞",lee="↠",uee="Ú",fee="ú",pee="↑",dee="↟",hee="⇑",mee="⥉",vee="Ў",gee="ў",yee="Ŭ",bee="ŭ",Eee="Û",_ee="û",kee="У",xee="у",wee="⇅",$ee="Ű",Cee="ű",Aee="⥮",See="⥾",Tee="𝔘",Dee="𝔲",Nee="Ù",Oee="ù",Iee="⥣",Lee="↿",Fee="↾",Ree="▀",Mee="⌜",qee="⌜",Pee="⌏",Bee="◸",Vee="Ū",jee="ū",Uee="¨",zee="_",Hee="⏟",Gee="⎵",Wee="⏝",Qee="⋃",Yee="⊎",Jee="Ų",Zee="ų",Xee="𝕌",Kee="𝕦",ete="⤒",tte="↑",nte="↑",rte="⇑",ote="⇅",ite="↕",ste="↕",ate="⇕",cte="⥮",lte="↿",ute="↾",fte="⊎",pte="↖",dte="↗",hte="υ",mte="ϒ",vte="ϒ",gte="Υ",yte="υ",bte="↥",Ete="⊥",_te="⇈",kte="⌝",xte="⌝",wte="⌎",$te="Ů",Cte="ů",Ate="◹",Ste="𝒰",Tte="𝓊",Dte="⋰",Nte="Ũ",Ote="ũ",Ite="▵",Lte="▴",Fte="⇈",Rte="Ü",Mte="ü",qte="⦧",Pte="⦜",Bte="ϵ",Vte="ϰ",jte="∅",Ute="ϕ",zte="ϖ",Hte="∝",Gte="↕",Wte="⇕",Qte="ϱ",Yte="ς",Jte="⊊︀",Zte="⫋︀",Xte="⊋︀",Kte="⫌︀",ene="ϑ",tne="⊲",nne="⊳",rne="⫨",one="⫫",ine="⫩",sne="В",ane="в",cne="⊢",lne="⊨",une="⊩",fne="⊫",pne="⫦",dne="⊻",hne="∨",mne="⋁",vne="≚",gne="⋮",yne="|",bne="‖",Ene="|",_ne="‖",kne="∣",xne="|",wne="❘",$ne="≀",Cne=" ",Ane="𝔙",Sne="𝔳",Tne="⊲",Dne="⊂⃒",Nne="⊃⃒",One="𝕍",Ine="𝕧",Lne="∝",Fne="⊳",Rne="𝒱",Mne="𝓋",qne="⫋︀",Pne="⊊︀",Bne="⫌︀",Vne="⊋︀",jne="⊪",Une="⦚",zne="Ŵ",Hne="ŵ",Gne="⩟",Wne="∧",Qne="⋀",Yne="≙",Jne="℘",Zne="𝔚",Xne="𝔴",Kne="𝕎",ere="𝕨",tre="℘",nre="≀",rre="≀",ore="𝒲",ire="𝓌",sre="⋂",are="◯",cre="⋃",lre="▽",ure="𝔛",fre="𝔵",pre="⟷",dre="⟺",hre="Ξ",mre="ξ",vre="⟵",gre="⟸",yre="⟼",bre="⋻",Ere="⨀",_re="𝕏",kre="𝕩",xre="⨁",wre="⨂",$re="⟶",Cre="⟹",Are="𝒳",Sre="𝓍",Tre="⨆",Dre="⨄",Nre="△",Ore="⋁",Ire="⋀",Lre="Ý",Fre="ý",Rre="Я",Mre="я",qre="Ŷ",Pre="ŷ",Bre="Ы",Vre="ы",jre="¥",Ure="𝔜",zre="𝔶",Hre="Ї",Gre="ї",Wre="𝕐",Qre="𝕪",Yre="𝒴",Jre="𝓎",Zre="Ю",Xre="ю",Kre="ÿ",eoe="Ÿ",toe="Ź",noe="ź",roe="Ž",ooe="ž",ioe="З",soe="з",aoe="Ż",coe="ż",loe="ℨ",uoe="",foe="Ζ",poe="ζ",doe="𝔷",hoe="ℨ",moe="Ж",voe="ж",goe="⇝",yoe="𝕫",boe="ℤ",Eoe="𝒵",_oe="𝓏",koe="",xoe="";var woe={Aacute:aC,aacute:cC,Abreve:lC,abreve:uC,ac:fC,acd:pC,acE:dC,Acirc:hC,acirc:mC,acute:vC,Acy:gC,acy:yC,AElig:bC,aelig:EC,af:_C,Afr:kC,afr:xC,Agrave:wC,agrave:$C,alefsym:CC,aleph:AC,Alpha:SC,alpha:TC,Amacr:DC,amacr:NC,amalg:OC,amp:IC,AMP:LC,andand:FC,And:RC,and:MC,andd:qC,andslope:PC,andv:BC,ang:VC,ange:jC,angle:UC,angmsdaa:zC,angmsdab:HC,angmsdac:GC,angmsdad:WC,angmsdae:QC,angmsdaf:YC,angmsdag:JC,angmsdah:ZC,angmsd:XC,angrt:KC,angrtvb:eA,angrtvbd:tA,angsph:nA,angst:rA,angzarr:oA,Aogon:iA,aogon:sA,Aopf:aA,aopf:cA,apacir:lA,ap:uA,apE:fA,ape:pA,apid:dA,apos:hA,ApplyFunction:mA,approx:vA,approxeq:gA,Aring:yA,aring:bA,Ascr:EA,ascr:_A,Assign:kA,ast:xA,asymp:wA,asympeq:$A,Atilde:CA,atilde:AA,Auml:SA,auml:TA,awconint:DA,awint:NA,backcong:OA,backepsilon:IA,backprime:LA,backsim:FA,backsimeq:RA,Backslash:MA,Barv:qA,barvee:PA,barwed:BA,Barwed:VA,barwedge:jA,bbrk:UA,bbrktbrk:zA,bcong:HA,Bcy:GA,bcy:WA,bdquo:QA,becaus:YA,because:JA,Because:ZA,bemptyv:XA,bepsi:KA,bernou:eS,Bernoullis:tS,Beta:nS,beta:rS,beth:oS,between:iS,Bfr:sS,bfr:aS,bigcap:cS,bigcirc:lS,bigcup:uS,bigodot:fS,bigoplus:pS,bigotimes:dS,bigsqcup:hS,bigstar:mS,bigtriangledown:vS,bigtriangleup:gS,biguplus:yS,bigvee:bS,bigwedge:ES,bkarow:_S,blacklozenge:kS,blacksquare:xS,blacktriangle:wS,blacktriangledown:$S,blacktriangleleft:CS,blacktriangleright:AS,blank:SS,blk12:TS,blk14:DS,blk34:NS,block:OS,bne:IS,bnequiv:LS,bNot:FS,bnot:RS,Bopf:MS,bopf:qS,bot:PS,bottom:BS,bowtie:VS,boxbox:jS,boxdl:US,boxdL:zS,boxDl:HS,boxDL:GS,boxdr:WS,boxdR:QS,boxDr:YS,boxDR:JS,boxh:ZS,boxH:XS,boxhd:KS,boxHd:eT,boxhD:tT,boxHD:nT,boxhu:rT,boxHu:oT,boxhU:iT,boxHU:sT,boxminus:aT,boxplus:cT,boxtimes:lT,boxul:uT,boxuL:fT,boxUl:pT,boxUL:dT,boxur:hT,boxuR:mT,boxUr:vT,boxUR:gT,boxv:yT,boxV:bT,boxvh:ET,boxvH:_T,boxVh:kT,boxVH:xT,boxvl:wT,boxvL:$T,boxVl:CT,boxVL:AT,boxvr:ST,boxvR:TT,boxVr:DT,boxVR:NT,bprime:OT,breve:IT,Breve:LT,brvbar:FT,bscr:RT,Bscr:MT,bsemi:qT,bsim:PT,bsime:BT,bsolb:VT,bsol:jT,bsolhsub:UT,bull:zT,bullet:HT,bump:GT,bumpE:WT,bumpe:QT,Bumpeq:YT,bumpeq:JT,Cacute:ZT,cacute:XT,capand:KT,capbrcup:eD,capcap:tD,cap:nD,Cap:rD,capcup:oD,capdot:iD,CapitalDifferentialD:sD,caps:aD,caret:cD,caron:lD,Cayleys:uD,ccaps:fD,Ccaron:pD,ccaron:dD,Ccedil:hD,ccedil:mD,Ccirc:vD,ccirc:gD,Cconint:yD,ccups:bD,ccupssm:ED,Cdot:_D,cdot:kD,cedil:xD,Cedilla:wD,cemptyv:$D,cent:CD,centerdot:AD,CenterDot:SD,cfr:TD,Cfr:DD,CHcy:ND,chcy:OD,check:ID,checkmark:LD,Chi:FD,chi:RD,circ:MD,circeq:qD,circlearrowleft:PD,circlearrowright:BD,circledast:VD,circledcirc:jD,circleddash:UD,CircleDot:zD,circledR:HD,circledS:GD,CircleMinus:WD,CirclePlus:QD,CircleTimes:YD,cir:JD,cirE:ZD,cire:XD,cirfnint:KD,cirmid:eN,cirscir:tN,ClockwiseContourIntegral:nN,CloseCurlyDoubleQuote:rN,CloseCurlyQuote:oN,clubs:iN,clubsuit:sN,colon:aN,Colon:cN,Colone:lN,colone:uN,coloneq:fN,comma:pN,commat:dN,comp:hN,compfn:mN,complement:vN,complexes:gN,cong:yN,congdot:bN,Congruent:EN,conint:_N,Conint:kN,ContourIntegral:xN,copf:wN,Copf:$N,coprod:CN,Coproduct:AN,copy:SN,COPY:TN,copysr:DN,CounterClockwiseContourIntegral:NN,crarr:ON,cross:IN,Cross:LN,Cscr:FN,cscr:RN,csub:MN,csube:qN,csup:PN,csupe:BN,ctdot:VN,cudarrl:jN,cudarrr:UN,cuepr:zN,cuesc:HN,cularr:GN,cularrp:WN,cupbrcap:QN,cupcap:YN,CupCap:JN,cup:ZN,Cup:XN,cupcup:KN,cupdot:eO,cupor:tO,cups:nO,curarr:rO,curarrm:oO,curlyeqprec:iO,curlyeqsucc:sO,curlyvee:aO,curlywedge:cO,curren:lO,curvearrowleft:uO,curvearrowright:fO,cuvee:pO,cuwed:dO,cwconint:hO,cwint:mO,cylcty:vO,dagger:gO,Dagger:yO,daleth:bO,darr:EO,Darr:_O,dArr:kO,dash:xO,Dashv:wO,dashv:$O,dbkarow:CO,dblac:AO,Dcaron:SO,dcaron:TO,Dcy:DO,dcy:NO,ddagger:OO,ddarr:IO,DD:LO,dd:FO,DDotrahd:RO,ddotseq:MO,deg:qO,Del:PO,Delta:BO,delta:VO,demptyv:jO,dfisht:UO,Dfr:zO,dfr:HO,dHar:GO,dharl:WO,dharr:QO,DiacriticalAcute:YO,DiacriticalDot:JO,DiacriticalDoubleAcute:ZO,DiacriticalGrave:XO,DiacriticalTilde:KO,diam:eI,diamond:tI,Diamond:nI,diamondsuit:rI,diams:oI,die:iI,DifferentialD:sI,digamma:aI,disin:cI,div:lI,divide:uI,divideontimes:fI,divonx:pI,DJcy:dI,djcy:hI,dlcorn:mI,dlcrop:vI,dollar:gI,Dopf:yI,dopf:bI,Dot:EI,dot:_I,DotDot:kI,doteq:xI,doteqdot:wI,DotEqual:$I,dotminus:CI,dotplus:AI,dotsquare:SI,doublebarwedge:TI,DoubleContourIntegral:DI,DoubleDot:NI,DoubleDownArrow:OI,DoubleLeftArrow:II,DoubleLeftRightArrow:LI,DoubleLeftTee:FI,DoubleLongLeftArrow:RI,DoubleLongLeftRightArrow:MI,DoubleLongRightArrow:qI,DoubleRightArrow:PI,DoubleRightTee:BI,DoubleUpArrow:VI,DoubleUpDownArrow:jI,DoubleVerticalBar:UI,DownArrowBar:zI,downarrow:HI,DownArrow:GI,Downarrow:WI,DownArrowUpArrow:QI,DownBreve:YI,downdownarrows:JI,downharpoonleft:ZI,downharpoonright:XI,DownLeftRightVector:KI,DownLeftTeeVector:eL,DownLeftVectorBar:tL,DownLeftVector:nL,DownRightTeeVector:rL,DownRightVectorBar:oL,DownRightVector:iL,DownTeeArrow:sL,DownTee:aL,drbkarow:cL,drcorn:lL,drcrop:uL,Dscr:fL,dscr:pL,DScy:dL,dscy:hL,dsol:mL,Dstrok:vL,dstrok:gL,dtdot:yL,dtri:bL,dtrif:EL,duarr:_L,duhar:kL,dwangle:xL,DZcy:wL,dzcy:$L,dzigrarr:CL,Eacute:AL,eacute:SL,easter:TL,Ecaron:DL,ecaron:NL,Ecirc:OL,ecirc:IL,ecir:LL,ecolon:FL,Ecy:RL,ecy:ML,eDDot:qL,Edot:PL,edot:BL,eDot:VL,ee:jL,efDot:UL,Efr:zL,efr:HL,eg:GL,Egrave:WL,egrave:QL,egs:YL,egsdot:JL,el:ZL,Element:XL,elinters:KL,ell:eF,els:tF,elsdot:nF,Emacr:rF,emacr:oF,empty:iF,emptyset:sF,EmptySmallSquare:aF,emptyv:cF,EmptyVerySmallSquare:lF,emsp13:uF,emsp14:fF,emsp:pF,ENG:dF,eng:hF,ensp:mF,Eogon:vF,eogon:gF,Eopf:yF,eopf:bF,epar:EF,eparsl:_F,eplus:kF,epsi:xF,Epsilon:wF,epsilon:$F,epsiv:CF,eqcirc:AF,eqcolon:SF,eqsim:TF,eqslantgtr:DF,eqslantless:NF,Equal:OF,equals:IF,EqualTilde:LF,equest:FF,Equilibrium:RF,equiv:MF,equivDD:qF,eqvparsl:PF,erarr:BF,erDot:VF,escr:jF,Escr:UF,esdot:zF,Esim:HF,esim:GF,Eta:WF,eta:QF,ETH:YF,eth:JF,Euml:ZF,euml:XF,euro:KF,excl:eR,exist:tR,Exists:nR,expectation:rR,exponentiale:oR,ExponentialE:iR,fallingdotseq:sR,Fcy:aR,fcy:cR,female:lR,ffilig:uR,fflig:fR,ffllig:pR,Ffr:dR,ffr:hR,filig:mR,FilledSmallSquare:vR,FilledVerySmallSquare:gR,fjlig:yR,flat:bR,fllig:ER,fltns:_R,fnof:kR,Fopf:xR,fopf:wR,forall:$R,ForAll:CR,fork:AR,forkv:SR,Fouriertrf:TR,fpartint:DR,frac12:NR,frac13:OR,frac14:IR,frac15:LR,frac16:FR,frac18:RR,frac23:MR,frac25:qR,frac34:PR,frac35:BR,frac38:VR,frac45:jR,frac56:UR,frac58:zR,frac78:HR,frasl:GR,frown:WR,fscr:QR,Fscr:YR,gacute:JR,Gamma:ZR,gamma:XR,Gammad:KR,gammad:eM,gap:tM,Gbreve:nM,gbreve:rM,Gcedil:oM,Gcirc:iM,gcirc:sM,Gcy:aM,gcy:cM,Gdot:lM,gdot:uM,ge:fM,gE:pM,gEl:dM,gel:hM,geq:mM,geqq:vM,geqslant:gM,gescc:yM,ges:bM,gesdot:EM,gesdoto:_M,gesdotol:kM,gesl:xM,gesles:wM,Gfr:$M,gfr:CM,gg:AM,Gg:SM,ggg:TM,gimel:DM,GJcy:NM,gjcy:OM,gla:IM,gl:LM,glE:FM,glj:RM,gnap:MM,gnapprox:qM,gne:PM,gnE:BM,gneq:VM,gneqq:jM,gnsim:UM,Gopf:zM,gopf:HM,grave:GM,GreaterEqual:WM,GreaterEqualLess:QM,GreaterFullEqual:YM,GreaterGreater:JM,GreaterLess:ZM,GreaterSlantEqual:XM,GreaterTilde:KM,Gscr:eq,gscr:tq,gsim:nq,gsime:rq,gsiml:oq,gtcc:iq,gtcir:sq,gt:aq,GT:cq,Gt:lq,gtdot:uq,gtlPar:fq,gtquest:pq,gtrapprox:dq,gtrarr:hq,gtrdot:mq,gtreqless:vq,gtreqqless:gq,gtrless:yq,gtrsim:bq,gvertneqq:Eq,gvnE:_q,Hacek:kq,hairsp:xq,half:wq,hamilt:$q,HARDcy:Cq,hardcy:Aq,harrcir:Sq,harr:Tq,hArr:Dq,harrw:Nq,Hat:Oq,hbar:Iq,Hcirc:Lq,hcirc:Fq,hearts:Rq,heartsuit:Mq,hellip:qq,hercon:Pq,hfr:Bq,Hfr:Vq,HilbertSpace:jq,hksearow:Uq,hkswarow:zq,hoarr:Hq,homtht:Gq,hookleftarrow:Wq,hookrightarrow:Qq,hopf:Yq,Hopf:Jq,horbar:Zq,HorizontalLine:Xq,hscr:Kq,Hscr:eP,hslash:tP,Hstrok:nP,hstrok:rP,HumpDownHump:oP,HumpEqual:iP,hybull:sP,hyphen:aP,Iacute:cP,iacute:lP,ic:uP,Icirc:fP,icirc:pP,Icy:dP,icy:hP,Idot:mP,IEcy:vP,iecy:gP,iexcl:yP,iff:bP,ifr:EP,Ifr:_P,Igrave:kP,igrave:xP,ii:wP,iiiint:$P,iiint:CP,iinfin:AP,iiota:SP,IJlig:TP,ijlig:DP,Imacr:NP,imacr:OP,image:IP,ImaginaryI:LP,imagline:FP,imagpart:RP,imath:MP,Im:qP,imof:PP,imped:BP,Implies:VP,incare:jP,in:"∈",infin:UP,infintie:zP,inodot:HP,intcal:GP,int:WP,Int:QP,integers:YP,Integral:JP,intercal:ZP,Intersection:XP,intlarhk:KP,intprod:e3,InvisibleComma:t3,InvisibleTimes:n3,IOcy:r3,iocy:o3,Iogon:i3,iogon:s3,Iopf:a3,iopf:c3,Iota:l3,iota:u3,iprod:f3,iquest:p3,iscr:d3,Iscr:h3,isin:m3,isindot:v3,isinE:g3,isins:y3,isinsv:b3,isinv:E3,it:_3,Itilde:k3,itilde:x3,Iukcy:w3,iukcy:$3,Iuml:C3,iuml:A3,Jcirc:S3,jcirc:T3,Jcy:D3,jcy:N3,Jfr:O3,jfr:I3,jmath:L3,Jopf:F3,jopf:R3,Jscr:M3,jscr:q3,Jsercy:P3,jsercy:B3,Jukcy:V3,jukcy:j3,Kappa:U3,kappa:z3,kappav:H3,Kcedil:G3,kcedil:W3,Kcy:Q3,kcy:Y3,Kfr:J3,kfr:Z3,kgreen:X3,KHcy:K3,khcy:eB,KJcy:tB,kjcy:nB,Kopf:rB,kopf:oB,Kscr:iB,kscr:sB,lAarr:aB,Lacute:cB,lacute:lB,laemptyv:uB,lagran:fB,Lambda:pB,lambda:dB,lang:hB,Lang:mB,langd:vB,langle:gB,lap:yB,Laplacetrf:bB,laquo:EB,larrb:_B,larrbfs:kB,larr:xB,Larr:wB,lArr:$B,larrfs:CB,larrhk:AB,larrlp:SB,larrpl:TB,larrsim:DB,larrtl:NB,latail:OB,lAtail:IB,lat:LB,late:FB,lates:RB,lbarr:MB,lBarr:qB,lbbrk:PB,lbrace:BB,lbrack:VB,lbrke:jB,lbrksld:UB,lbrkslu:zB,Lcaron:HB,lcaron:GB,Lcedil:WB,lcedil:QB,lceil:YB,lcub:JB,Lcy:ZB,lcy:XB,ldca:KB,ldquo:e5,ldquor:t5,ldrdhar:n5,ldrushar:r5,ldsh:o5,le:i5,lE:s5,LeftAngleBracket:a5,LeftArrowBar:c5,leftarrow:l5,LeftArrow:u5,Leftarrow:f5,LeftArrowRightArrow:p5,leftarrowtail:d5,LeftCeiling:h5,LeftDoubleBracket:m5,LeftDownTeeVector:v5,LeftDownVectorBar:g5,LeftDownVector:y5,LeftFloor:b5,leftharpoondown:E5,leftharpoonup:_5,leftleftarrows:k5,leftrightarrow:x5,LeftRightArrow:w5,Leftrightarrow:$5,leftrightarrows:C5,leftrightharpoons:A5,leftrightsquigarrow:S5,LeftRightVector:T5,LeftTeeArrow:D5,LeftTee:N5,LeftTeeVector:O5,leftthreetimes:I5,LeftTriangleBar:L5,LeftTriangle:F5,LeftTriangleEqual:R5,LeftUpDownVector:M5,LeftUpTeeVector:q5,LeftUpVectorBar:P5,LeftUpVector:B5,LeftVectorBar:V5,LeftVector:j5,lEg:U5,leg:z5,leq:H5,leqq:G5,leqslant:W5,lescc:Q5,les:Y5,lesdot:J5,lesdoto:Z5,lesdotor:X5,lesg:K5,lesges:eV,lessapprox:tV,lessdot:nV,lesseqgtr:rV,lesseqqgtr:oV,LessEqualGreater:iV,LessFullEqual:sV,LessGreater:aV,lessgtr:cV,LessLess:lV,lesssim:uV,LessSlantEqual:fV,LessTilde:pV,lfisht:dV,lfloor:hV,Lfr:mV,lfr:vV,lg:gV,lgE:yV,lHar:bV,lhard:EV,lharu:_V,lharul:kV,lhblk:xV,LJcy:wV,ljcy:$V,llarr:CV,ll:AV,Ll:SV,llcorner:TV,Lleftarrow:DV,llhard:NV,lltri:OV,Lmidot:IV,lmidot:LV,lmoustache:FV,lmoust:RV,lnap:MV,lnapprox:qV,lne:PV,lnE:BV,lneq:VV,lneqq:jV,lnsim:UV,loang:zV,loarr:HV,lobrk:GV,longleftarrow:WV,LongLeftArrow:QV,Longleftarrow:YV,longleftrightarrow:JV,LongLeftRightArrow:ZV,Longleftrightarrow:XV,longmapsto:KV,longrightarrow:e9,LongRightArrow:t9,Longrightarrow:n9,looparrowleft:r9,looparrowright:o9,lopar:i9,Lopf:s9,lopf:a9,loplus:c9,lotimes:l9,lowast:u9,lowbar:f9,LowerLeftArrow:p9,LowerRightArrow:d9,loz:h9,lozenge:m9,lozf:v9,lpar:g9,lparlt:y9,lrarr:b9,lrcorner:E9,lrhar:_9,lrhard:k9,lrm:x9,lrtri:w9,lsaquo:$9,lscr:C9,Lscr:A9,lsh:S9,Lsh:T9,lsim:D9,lsime:N9,lsimg:O9,lsqb:I9,lsquo:L9,lsquor:F9,Lstrok:R9,lstrok:M9,ltcc:q9,ltcir:P9,lt:B9,LT:V9,Lt:j9,ltdot:U9,lthree:z9,ltimes:H9,ltlarr:G9,ltquest:W9,ltri:Q9,ltrie:Y9,ltrif:J9,ltrPar:Z9,lurdshar:X9,luruhar:K9,lvertneqq:e4,lvnE:t4,macr:n4,male:r4,malt:o4,maltese:i4,Map:"⤅",map:s4,mapsto:a4,mapstodown:c4,mapstoleft:l4,mapstoup:u4,marker:f4,mcomma:p4,Mcy:d4,mcy:h4,mdash:m4,mDDot:v4,measuredangle:g4,MediumSpace:y4,Mellintrf:b4,Mfr:E4,mfr:_4,mho:k4,micro:x4,midast:w4,midcir:$4,mid:C4,middot:A4,minusb:S4,minus:T4,minusd:D4,minusdu:N4,MinusPlus:O4,mlcp:I4,mldr:L4,mnplus:F4,models:R4,Mopf:M4,mopf:q4,mp:P4,mscr:B4,Mscr:V4,mstpos:j4,Mu:U4,mu:z4,multimap:H4,mumap:G4,nabla:W4,Nacute:Q4,nacute:Y4,nang:J4,nap:Z4,napE:X4,napid:K4,napos:ej,napprox:tj,natural:nj,naturals:rj,natur:oj,nbsp:ij,nbump:sj,nbumpe:aj,ncap:cj,Ncaron:lj,ncaron:uj,Ncedil:fj,ncedil:pj,ncong:dj,ncongdot:hj,ncup:mj,Ncy:vj,ncy:gj,ndash:yj,nearhk:bj,nearr:Ej,neArr:_j,nearrow:kj,ne:xj,nedot:wj,NegativeMediumSpace:$j,NegativeThickSpace:Cj,NegativeThinSpace:Aj,NegativeVeryThinSpace:Sj,nequiv:Tj,nesear:Dj,nesim:Nj,NestedGreaterGreater:Oj,NestedLessLess:Ij,NewLine:Lj,nexist:Fj,nexists:Rj,Nfr:Mj,nfr:qj,ngE:Pj,nge:Bj,ngeq:Vj,ngeqq:jj,ngeqslant:Uj,nges:zj,nGg:Hj,ngsim:Gj,nGt:Wj,ngt:Qj,ngtr:Yj,nGtv:Jj,nharr:Zj,nhArr:Xj,nhpar:Kj,ni:e6,nis:t6,nisd:n6,niv:r6,NJcy:o6,njcy:i6,nlarr:s6,nlArr:a6,nldr:c6,nlE:l6,nle:u6,nleftarrow:f6,nLeftarrow:p6,nleftrightarrow:d6,nLeftrightarrow:h6,nleq:m6,nleqq:v6,nleqslant:g6,nles:y6,nless:b6,nLl:E6,nlsim:_6,nLt:k6,nlt:x6,nltri:w6,nltrie:$6,nLtv:C6,nmid:A6,NoBreak:S6,NonBreakingSpace:T6,nopf:D6,Nopf:N6,Not:O6,not:I6,NotCongruent:L6,NotCupCap:F6,NotDoubleVerticalBar:R6,NotElement:M6,NotEqual:q6,NotEqualTilde:P6,NotExists:B6,NotGreater:V6,NotGreaterEqual:j6,NotGreaterFullEqual:U6,NotGreaterGreater:z6,NotGreaterLess:H6,NotGreaterSlantEqual:G6,NotGreaterTilde:W6,NotHumpDownHump:Q6,NotHumpEqual:Y6,notin:J6,notindot:Z6,notinE:X6,notinva:K6,notinvb:eU,notinvc:tU,NotLeftTriangleBar:nU,NotLeftTriangle:rU,NotLeftTriangleEqual:oU,NotLess:iU,NotLessEqual:sU,NotLessGreater:aU,NotLessLess:cU,NotLessSlantEqual:lU,NotLessTilde:uU,NotNestedGreaterGreater:fU,NotNestedLessLess:pU,notni:dU,notniva:hU,notnivb:mU,notnivc:vU,NotPrecedes:gU,NotPrecedesEqual:yU,NotPrecedesSlantEqual:bU,NotReverseElement:EU,NotRightTriangleBar:_U,NotRightTriangle:kU,NotRightTriangleEqual:xU,NotSquareSubset:wU,NotSquareSubsetEqual:$U,NotSquareSuperset:CU,NotSquareSupersetEqual:AU,NotSubset:SU,NotSubsetEqual:TU,NotSucceeds:DU,NotSucceedsEqual:NU,NotSucceedsSlantEqual:OU,NotSucceedsTilde:IU,NotSuperset:LU,NotSupersetEqual:FU,NotTilde:RU,NotTildeEqual:MU,NotTildeFullEqual:qU,NotTildeTilde:PU,NotVerticalBar:BU,nparallel:VU,npar:jU,nparsl:UU,npart:zU,npolint:HU,npr:GU,nprcue:WU,nprec:QU,npreceq:YU,npre:JU,nrarrc:ZU,nrarr:XU,nrArr:KU,nrarrw:ez,nrightarrow:tz,nRightarrow:nz,nrtri:rz,nrtrie:oz,nsc:iz,nsccue:sz,nsce:az,Nscr:cz,nscr:lz,nshortmid:uz,nshortparallel:fz,nsim:pz,nsime:dz,nsimeq:hz,nsmid:mz,nspar:vz,nsqsube:gz,nsqsupe:yz,nsub:bz,nsubE:Ez,nsube:_z,nsubset:kz,nsubseteq:xz,nsubseteqq:wz,nsucc:$z,nsucceq:Cz,nsup:Az,nsupE:Sz,nsupe:Tz,nsupset:Dz,nsupseteq:Nz,nsupseteqq:Oz,ntgl:Iz,Ntilde:Lz,ntilde:Fz,ntlg:Rz,ntriangleleft:Mz,ntrianglelefteq:qz,ntriangleright:Pz,ntrianglerighteq:Bz,Nu:Vz,nu:jz,num:Uz,numero:zz,numsp:Hz,nvap:Gz,nvdash:Wz,nvDash:Qz,nVdash:Yz,nVDash:Jz,nvge:Zz,nvgt:Xz,nvHarr:Kz,nvinfin:e8,nvlArr:t8,nvle:n8,nvlt:r8,nvltrie:o8,nvrArr:i8,nvrtrie:s8,nvsim:a8,nwarhk:c8,nwarr:l8,nwArr:u8,nwarrow:f8,nwnear:p8,Oacute:d8,oacute:h8,oast:m8,Ocirc:v8,ocirc:g8,ocir:y8,Ocy:b8,ocy:E8,odash:_8,Odblac:k8,odblac:x8,odiv:w8,odot:$8,odsold:C8,OElig:A8,oelig:S8,ofcir:T8,Ofr:D8,ofr:N8,ogon:O8,Ograve:I8,ograve:L8,ogt:F8,ohbar:R8,ohm:M8,oint:q8,olarr:P8,olcir:B8,olcross:V8,oline:j8,olt:U8,Omacr:z8,omacr:H8,Omega:G8,omega:W8,Omicron:Q8,omicron:Y8,omid:J8,ominus:Z8,Oopf:X8,oopf:K8,opar:e7,OpenCurlyDoubleQuote:t7,OpenCurlyQuote:n7,operp:r7,oplus:o7,orarr:i7,Or:s7,or:a7,ord:c7,order:l7,orderof:u7,ordf:f7,ordm:p7,origof:d7,oror:h7,orslope:m7,orv:v7,oS:g7,Oscr:y7,oscr:b7,Oslash:E7,oslash:_7,osol:k7,Otilde:x7,otilde:w7,otimesas:$7,Otimes:C7,otimes:A7,Ouml:S7,ouml:T7,ovbar:D7,OverBar:N7,OverBrace:O7,OverBracket:I7,OverParenthesis:L7,para:F7,parallel:R7,par:M7,parsim:q7,parsl:P7,part:B7,PartialD:V7,Pcy:j7,pcy:U7,percnt:z7,period:H7,permil:G7,perp:W7,pertenk:Q7,Pfr:Y7,pfr:J7,Phi:Z7,phi:X7,phiv:K7,phmmat:eH,phone:tH,Pi:nH,pi:rH,pitchfork:oH,piv:iH,planck:sH,planckh:aH,plankv:cH,plusacir:lH,plusb:uH,pluscir:fH,plus:pH,plusdo:dH,plusdu:hH,pluse:mH,PlusMinus:vH,plusmn:gH,plussim:yH,plustwo:bH,pm:EH,Poincareplane:_H,pointint:kH,popf:xH,Popf:wH,pound:$H,prap:CH,Pr:AH,pr:SH,prcue:TH,precapprox:DH,prec:NH,preccurlyeq:OH,Precedes:IH,PrecedesEqual:LH,PrecedesSlantEqual:FH,PrecedesTilde:RH,preceq:MH,precnapprox:qH,precneqq:PH,precnsim:BH,pre:VH,prE:jH,precsim:UH,prime:zH,Prime:HH,primes:GH,prnap:WH,prnE:QH,prnsim:YH,prod:JH,Product:ZH,profalar:XH,profline:KH,profsurf:eG,prop:tG,Proportional:nG,Proportion:rG,propto:oG,prsim:iG,prurel:sG,Pscr:aG,pscr:cG,Psi:lG,psi:uG,puncsp:fG,Qfr:pG,qfr:dG,qint:hG,qopf:mG,Qopf:vG,qprime:gG,Qscr:yG,qscr:bG,quaternions:EG,quatint:_G,quest:kG,questeq:xG,quot:wG,QUOT:$G,rAarr:CG,race:AG,Racute:SG,racute:TG,radic:DG,raemptyv:NG,rang:OG,Rang:IG,rangd:LG,range:FG,rangle:RG,raquo:MG,rarrap:qG,rarrb:PG,rarrbfs:BG,rarrc:VG,rarr:jG,Rarr:UG,rArr:zG,rarrfs:HG,rarrhk:GG,rarrlp:WG,rarrpl:QG,rarrsim:YG,Rarrtl:JG,rarrtl:ZG,rarrw:XG,ratail:KG,rAtail:eW,ratio:tW,rationals:nW,rbarr:rW,rBarr:oW,RBarr:iW,rbbrk:sW,rbrace:aW,rbrack:cW,rbrke:lW,rbrksld:uW,rbrkslu:fW,Rcaron:pW,rcaron:dW,Rcedil:hW,rcedil:mW,rceil:vW,rcub:gW,Rcy:yW,rcy:bW,rdca:EW,rdldhar:_W,rdquo:kW,rdquor:xW,rdsh:wW,real:$W,realine:CW,realpart:AW,reals:SW,Re:TW,rect:DW,reg:NW,REG:OW,ReverseElement:IW,ReverseEquilibrium:LW,ReverseUpEquilibrium:FW,rfisht:RW,rfloor:MW,rfr:qW,Rfr:PW,rHar:BW,rhard:VW,rharu:jW,rharul:UW,Rho:zW,rho:HW,rhov:GW,RightAngleBracket:WW,RightArrowBar:QW,rightarrow:YW,RightArrow:JW,Rightarrow:ZW,RightArrowLeftArrow:XW,rightarrowtail:KW,RightCeiling:eQ,RightDoubleBracket:tQ,RightDownTeeVector:nQ,RightDownVectorBar:rQ,RightDownVector:oQ,RightFloor:iQ,rightharpoondown:sQ,rightharpoonup:aQ,rightleftarrows:cQ,rightleftharpoons:lQ,rightrightarrows:uQ,rightsquigarrow:fQ,RightTeeArrow:pQ,RightTee:dQ,RightTeeVector:hQ,rightthreetimes:mQ,RightTriangleBar:vQ,RightTriangle:gQ,RightTriangleEqual:yQ,RightUpDownVector:bQ,RightUpTeeVector:EQ,RightUpVectorBar:_Q,RightUpVector:kQ,RightVectorBar:xQ,RightVector:wQ,ring:$Q,risingdotseq:CQ,rlarr:AQ,rlhar:SQ,rlm:TQ,rmoustache:DQ,rmoust:NQ,rnmid:OQ,roang:IQ,roarr:LQ,robrk:FQ,ropar:RQ,ropf:MQ,Ropf:qQ,roplus:PQ,rotimes:BQ,RoundImplies:VQ,rpar:jQ,rpargt:UQ,rppolint:zQ,rrarr:HQ,Rrightarrow:GQ,rsaquo:WQ,rscr:QQ,Rscr:YQ,rsh:JQ,Rsh:ZQ,rsqb:XQ,rsquo:KQ,rsquor:eY,rthree:tY,rtimes:nY,rtri:rY,rtrie:oY,rtrif:iY,rtriltri:sY,RuleDelayed:aY,ruluhar:cY,rx:lY,Sacute:uY,sacute:fY,sbquo:pY,scap:dY,Scaron:hY,scaron:mY,Sc:vY,sc:gY,sccue:yY,sce:bY,scE:EY,Scedil:_Y,scedil:kY,Scirc:xY,scirc:wY,scnap:$Y,scnE:CY,scnsim:AY,scpolint:SY,scsim:TY,Scy:DY,scy:NY,sdotb:OY,sdot:IY,sdote:LY,searhk:FY,searr:RY,seArr:MY,searrow:qY,sect:PY,semi:BY,seswar:VY,setminus:jY,setmn:UY,sext:zY,Sfr:HY,sfr:GY,sfrown:WY,sharp:QY,SHCHcy:YY,shchcy:JY,SHcy:ZY,shcy:XY,ShortDownArrow:KY,ShortLeftArrow:eJ,shortmid:tJ,shortparallel:nJ,ShortRightArrow:rJ,ShortUpArrow:oJ,shy:iJ,Sigma:sJ,sigma:aJ,sigmaf:cJ,sigmav:lJ,sim:uJ,simdot:fJ,sime:pJ,simeq:dJ,simg:hJ,simgE:mJ,siml:vJ,simlE:gJ,simne:yJ,simplus:bJ,simrarr:EJ,slarr:_J,SmallCircle:kJ,smallsetminus:xJ,smashp:wJ,smeparsl:$J,smid:CJ,smile:AJ,smt:SJ,smte:TJ,smtes:DJ,SOFTcy:NJ,softcy:OJ,solbar:IJ,solb:LJ,sol:FJ,Sopf:RJ,sopf:MJ,spades:qJ,spadesuit:PJ,spar:BJ,sqcap:VJ,sqcaps:jJ,sqcup:UJ,sqcups:zJ,Sqrt:HJ,sqsub:GJ,sqsube:WJ,sqsubset:QJ,sqsubseteq:YJ,sqsup:JJ,sqsupe:ZJ,sqsupset:XJ,sqsupseteq:KJ,square:eZ,Square:tZ,SquareIntersection:nZ,SquareSubset:rZ,SquareSubsetEqual:oZ,SquareSuperset:iZ,SquareSupersetEqual:sZ,SquareUnion:aZ,squarf:cZ,squ:lZ,squf:uZ,srarr:fZ,Sscr:pZ,sscr:dZ,ssetmn:hZ,ssmile:mZ,sstarf:vZ,Star:gZ,star:yZ,starf:bZ,straightepsilon:EZ,straightphi:_Z,strns:kZ,sub:xZ,Sub:wZ,subdot:$Z,subE:CZ,sube:AZ,subedot:SZ,submult:TZ,subnE:DZ,subne:NZ,subplus:OZ,subrarr:IZ,subset:LZ,Subset:FZ,subseteq:RZ,subseteqq:MZ,SubsetEqual:qZ,subsetneq:PZ,subsetneqq:BZ,subsim:VZ,subsub:jZ,subsup:UZ,succapprox:zZ,succ:HZ,succcurlyeq:GZ,Succeeds:WZ,SucceedsEqual:QZ,SucceedsSlantEqual:YZ,SucceedsTilde:JZ,succeq:ZZ,succnapprox:XZ,succneqq:KZ,succnsim:eX,succsim:tX,SuchThat:nX,sum:rX,Sum:oX,sung:iX,sup1:sX,sup2:aX,sup3:cX,sup:lX,Sup:uX,supdot:fX,supdsub:pX,supE:dX,supe:hX,supedot:mX,Superset:vX,SupersetEqual:gX,suphsol:yX,suphsub:bX,suplarr:EX,supmult:_X,supnE:kX,supne:xX,supplus:wX,supset:$X,Supset:CX,supseteq:AX,supseteqq:SX,supsetneq:TX,supsetneqq:DX,supsim:NX,supsub:OX,supsup:IX,swarhk:LX,swarr:FX,swArr:RX,swarrow:MX,swnwar:qX,szlig:PX,Tab:BX,target:VX,Tau:jX,tau:UX,tbrk:zX,Tcaron:HX,tcaron:GX,Tcedil:WX,tcedil:QX,Tcy:YX,tcy:JX,tdot:ZX,telrec:XX,Tfr:KX,tfr:eK,there4:tK,therefore:nK,Therefore:rK,Theta:oK,theta:iK,thetasym:sK,thetav:aK,thickapprox:cK,thicksim:lK,ThickSpace:uK,ThinSpace:fK,thinsp:pK,thkap:dK,thksim:hK,THORN:mK,thorn:vK,tilde:gK,Tilde:yK,TildeEqual:bK,TildeFullEqual:EK,TildeTilde:_K,timesbar:kK,timesb:xK,times:wK,timesd:$K,tint:CK,toea:AK,topbot:SK,topcir:TK,top:DK,Topf:NK,topf:OK,topfork:IK,tosa:LK,tprime:FK,trade:RK,TRADE:MK,triangle:qK,triangledown:PK,triangleleft:BK,trianglelefteq:VK,triangleq:jK,triangleright:UK,trianglerighteq:zK,tridot:HK,trie:GK,triminus:WK,TripleDot:QK,triplus:YK,trisb:JK,tritime:ZK,trpezium:XK,Tscr:KK,tscr:eee,TScy:tee,tscy:nee,TSHcy:ree,tshcy:oee,Tstrok:iee,tstrok:see,twixt:aee,twoheadleftarrow:cee,twoheadrightarrow:lee,Uacute:uee,uacute:fee,uarr:pee,Uarr:dee,uArr:hee,Uarrocir:mee,Ubrcy:vee,ubrcy:gee,Ubreve:yee,ubreve:bee,Ucirc:Eee,ucirc:_ee,Ucy:kee,ucy:xee,udarr:wee,Udblac:$ee,udblac:Cee,udhar:Aee,ufisht:See,Ufr:Tee,ufr:Dee,Ugrave:Nee,ugrave:Oee,uHar:Iee,uharl:Lee,uharr:Fee,uhblk:Ree,ulcorn:Mee,ulcorner:qee,ulcrop:Pee,ultri:Bee,Umacr:Vee,umacr:jee,uml:Uee,UnderBar:zee,UnderBrace:Hee,UnderBracket:Gee,UnderParenthesis:Wee,Union:Qee,UnionPlus:Yee,Uogon:Jee,uogon:Zee,Uopf:Xee,uopf:Kee,UpArrowBar:ete,uparrow:tte,UpArrow:nte,Uparrow:rte,UpArrowDownArrow:ote,updownarrow:ite,UpDownArrow:ste,Updownarrow:ate,UpEquilibrium:cte,upharpoonleft:lte,upharpoonright:ute,uplus:fte,UpperLeftArrow:pte,UpperRightArrow:dte,upsi:hte,Upsi:mte,upsih:vte,Upsilon:gte,upsilon:yte,UpTeeArrow:bte,UpTee:Ete,upuparrows:_te,urcorn:kte,urcorner:xte,urcrop:wte,Uring:$te,uring:Cte,urtri:Ate,Uscr:Ste,uscr:Tte,utdot:Dte,Utilde:Nte,utilde:Ote,utri:Ite,utrif:Lte,uuarr:Fte,Uuml:Rte,uuml:Mte,uwangle:qte,vangrt:Pte,varepsilon:Bte,varkappa:Vte,varnothing:jte,varphi:Ute,varpi:zte,varpropto:Hte,varr:Gte,vArr:Wte,varrho:Qte,varsigma:Yte,varsubsetneq:Jte,varsubsetneqq:Zte,varsupsetneq:Xte,varsupsetneqq:Kte,vartheta:ene,vartriangleleft:tne,vartriangleright:nne,vBar:rne,Vbar:one,vBarv:ine,Vcy:sne,vcy:ane,vdash:cne,vDash:lne,Vdash:une,VDash:fne,Vdashl:pne,veebar:dne,vee:hne,Vee:mne,veeeq:vne,vellip:gne,verbar:yne,Verbar:bne,vert:Ene,Vert:_ne,VerticalBar:kne,VerticalLine:xne,VerticalSeparator:wne,VerticalTilde:$ne,VeryThinSpace:Cne,Vfr:Ane,vfr:Sne,vltri:Tne,vnsub:Dne,vnsup:Nne,Vopf:One,vopf:Ine,vprop:Lne,vrtri:Fne,Vscr:Rne,vscr:Mne,vsubnE:qne,vsubne:Pne,vsupnE:Bne,vsupne:Vne,Vvdash:jne,vzigzag:Une,Wcirc:zne,wcirc:Hne,wedbar:Gne,wedge:Wne,Wedge:Qne,wedgeq:Yne,weierp:Jne,Wfr:Zne,wfr:Xne,Wopf:Kne,wopf:ere,wp:tre,wr:nre,wreath:rre,Wscr:ore,wscr:ire,xcap:sre,xcirc:are,xcup:cre,xdtri:lre,Xfr:ure,xfr:fre,xharr:pre,xhArr:dre,Xi:hre,xi:mre,xlarr:vre,xlArr:gre,xmap:yre,xnis:bre,xodot:Ere,Xopf:_re,xopf:kre,xoplus:xre,xotime:wre,xrarr:$re,xrArr:Cre,Xscr:Are,xscr:Sre,xsqcup:Tre,xuplus:Dre,xutri:Nre,xvee:Ore,xwedge:Ire,Yacute:Lre,yacute:Fre,YAcy:Rre,yacy:Mre,Ycirc:qre,ycirc:Pre,Ycy:Bre,ycy:Vre,yen:jre,Yfr:Ure,yfr:zre,YIcy:Hre,yicy:Gre,Yopf:Wre,yopf:Qre,Yscr:Yre,yscr:Jre,YUcy:Zre,yucy:Xre,yuml:Kre,Yuml:eoe,Zacute:toe,zacute:noe,Zcaron:roe,zcaron:ooe,Zcy:ioe,zcy:soe,Zdot:aoe,zdot:coe,zeetrf:loe,ZeroWidthSpace:uoe,Zeta:foe,zeta:poe,zfr:doe,Zfr:hoe,ZHcy:moe,zhcy:voe,zigrarr:goe,zopf:yoe,Zopf:boe,Zscr:Eoe,zscr:_oe,zwj:koe,zwnj:xoe},Ub=woe,Vd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,fs={},yg={};function zb(t){var e,n,o=yg[t];if(o)return o;for(o=yg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}$(zb,"getEncodeCache");function Pa(t,e,n){var o,i,a,c,f,d="";for(typeof e!="string"&&(n=e,e=Pa.defaultChars),typeof n>"u"&&(n=!0),f=zb(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(c=t.charCodeAt(o+1),c>=56320&&c<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}$(Pa,"encode$1");Pa.defaultChars=";/?:@&=+$,-_.!~*'()#";Pa.componentChars="-_.!~*'()";var $oe=Pa,bg={};function Hb(t){var e,n,o=bg[t];if(o)return o;for(o=bg[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}$(Hb,"getDecodeCache");function Ba(t,e){var n;return typeof e!="string"&&(e=Ba.defaultChars),n=Hb(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,c,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(c=parseInt(o.slice(i+1,i+3),16),c<128){y+=n[c];continue}if((c&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=c<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((c&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=c<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((c&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=c<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}$(Ba,"decode$1");Ba.defaultChars=";/?:@&=+$,#";Ba.componentChars="";var Coe=Ba,Aoe=$(function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n},"format");function ba(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}$(ba,"Url");var Soe=/^([a-z0-9.+-]+:)/i,Toe=/:[0-9]*$/,Doe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Noe=["<",">",'"',"`"," ","\r",`
|
|
186
|
+
`," "],Ooe=["{","}","|","\\","^","`"].concat(Noe),Ioe=["'"].concat(Ooe),Eg=["%","/","?",";","#"].concat(Ioe),_g=["/","?","#"],Loe=255,kg=/^[+a-z0-9A-Z_-]{0,63}$/,Foe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xg={javascript:!0,"javascript:":!0},wg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Gb(t,e){if(t&&t instanceof ba)return t;var n=new ba;return n.parse(t,e),n}$(Gb,"urlParse");ba.prototype.parse=function(t,e){var n,o,i,a,c,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=Doe.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=Soe.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=f.substr(0,2)==="//",c&&!(h&&xg[h])&&(f=f.substr(2),this.slashes=!0)),!xg[h]&&(c||h&&!wg[h])){var v=-1;for(n=0;n<_g.length;n++)a=f.indexOf(_g[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<Eg.length;n++)a=f.indexOf(Eg[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(kg)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(kg)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match(Foe);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>Loe&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),wg[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ba.prototype.parseHost=function(t){var e=Toe.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Roe=Gb;fs.encode=$oe;fs.decode=Coe;fs.format=Aoe;fs.parse=Roe;var ps={},Wb=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qb=/[\0-\x1F\x7F-\x9F]/,Moe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Yb=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;ps.Any=Wb;ps.Cc=Qb;ps.Cf=Moe;ps.P=Vd;ps.Z=Yb;(function(t){function e(R){return Object.prototype.toString.call(R)}$(e,"_class");function n(R){return e(R)==="[object String]"}$(n,"isString");var o=Object.prototype.hasOwnProperty;function i(R,x){return o.call(R,x)}$(i,"has");function a(R){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){R[J]=j[J]})}}),R}$(a,"assign");function c(R,x,j){return[].concat(R.slice(0,x),j,R.slice(x+1))}$(c,"arrayReplaceAt");function f(R){return!(R>=55296&&R<=57343||R>=64976&&R<=65007||(R&65535)===65535||(R&65535)===65534||R>=0&&R<=8||R===11||R>=14&&R<=31||R>=127&&R<=159||R>1114111)}$(f,"isValidEntityCode");function d(R){if(R>65535){R-=65536;var x=55296+(R>>10),j=56320+(R&1023);return String.fromCharCode(x,j)}return String.fromCharCode(R)}$(d,"fromCodePoint");var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=Ub;function C(R,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):R}$(C,"replaceEntityPattern");function S(R){return R.indexOf("\\")<0?R:R.replace(h,"$1")}$(S,"unescapeMd");function N(R){return R.indexOf("\\")<0&&R.indexOf("&")<0?R:R.replace(y,function(x,j,J){return j||C(x,J)})}$(N,"unescapeAll");var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&","<":"<",">":">",'"':"""};function V(R){return O[R]}$(V,"replaceUnsafeChar");function Y(R){return D.test(R)?R.replace(T,V):R}$(Y,"escapeHtml");var P=/[.?*+^$[\]\\(){}|-]/g;function U(R){return R.replace(P,"\\$&")}$(U,"escapeRE");function K(R){switch(R){case 9:case 32:return!0}return!1}$(K,"isSpace");function G(R){if(R>=8192&&R<=8202)return!0;switch(R){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}$(G,"isWhiteSpace");var Q=Vd;function oe(R){return Q.test(R)}$(oe,"isPunctChar");function _e(R){switch(R){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}$(_e,"isMdAsciiPunct");function H(R){return R=R.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(R=R.replace(/ẞ/g,"ß")),R.toLowerCase().toUpperCase()}$(H,"normalizeReference"),t.lib={},t.lib.mdurl=fs,t.lib.ucmicro=ps,t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=c,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=oe,t.escapeRE=U,t.normalizeReference=H})(et);var eu={},qoe=$(function(e,n,o){var i,a,c,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(c=e.src.charCodeAt(e.pos),c===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),c===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},"parseLinkLabel"),$g=et.unescapeAll,Poe=$(function(e,n,o){var i,a,c=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=$g(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=$g(e.slice(f,n)),d.lines=c,d.pos=n,d.ok=!0),d},"parseLinkDestination"),Boe=et.unescapeAll,Voe=$(function(e,n,o){var i,a,c=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=c,d.str=Boe(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?c++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&c++),n++}return d},"parseLinkTitle");eu.parseLinkLabel=qoe;eu.parseLinkDestination=Poe;eu.parseLinkTitle=Voe;var joe=et.assign,Uoe=et.unescapeAll,Ko=et.escapeHtml,wr={};wr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+Ko(t[e].content)+"</code>"};wr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+Ko(t[e].content)+`</code></pre>
|
|
187
|
+
`};wr.fence=function(t,e,n,o,i){var a=t[e],c=a.info?Uoe(a.info).trim():"",f="",d="",h,v,y,g,E;return c&&(y=c.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||Ko(a.content):h=Ko(a.content),h.indexOf("<pre")===0?h+`
|
|
188
|
+
`:c?(v=a.attrIndex("class"),g=a.attrs?a.attrs.slice():[],v<0?g.push(["class",n.langPrefix+f]):(g[v]=g[v].slice(),g[v][1]+=" "+n.langPrefix+f),E={attrs:g},"<pre><code"+i.renderAttrs(E)+">"+h+`</code></pre>
|
|
189
|
+
`):"<pre><code"+i.renderAttrs(a)+">"+h+`</code></pre>
|
|
190
|
+
`};wr.image=function(t,e,n,o,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,o),i.renderToken(t,e,n)};wr.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
191
|
+
`:`<br>
|
|
192
|
+
`};wr.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
193
|
+
`:`<br>
|
|
194
|
+
`:`
|
|
195
|
+
`};wr.text=function(t,e){return Ko(t[e].content)};wr.html_block=function(t,e){return t[e].content};wr.html_inline=function(t,e){return t[e].content};function ci(){this.rules=joe({},wr)}$(ci,"Renderer$1");ci.prototype.renderAttrs=$(function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+Ko(e.attrs[n][0])+'="'+Ko(e.attrs[n][1])+'"';return i},"renderAttrs");ci.prototype.renderToken=$(function(e,n,o){var i,a="",c=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
|
|
196
|
+
`),a+=(f.nesting===-1?"</":"<")+f.tag,a+=this.renderAttrs(f),f.nesting===0&&o.xhtmlOut&&(a+=" /"),f.block&&(c=!0,f.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===f.tag)&&(c=!1))),a+=c?`>
|
|
197
|
+
`:">",a)},"renderToken");ci.prototype.renderInline=function(t,e,n){for(var o,i="",a=this.rules,c=0,f=t.length;c<f;c++)o=t[c].type,typeof a[o]<"u"?i+=a[o](t,c,e,n,this):i+=this.renderToken(t,c,e);return i};ci.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,a=t.length;i<a;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
|
|
198
|
+
`);return o};ci.prototype.render=function(t,e,n){var o,i,a,c="",f=this.rules;for(o=0,i=t.length;o<i;o++)a=t[o].type,a==="inline"?c+=this.renderInline(t[o].children,e,n):typeof f[a]<"u"?c+=f[t[o].type](t,o,e,n,this):c+=this.renderToken(t,o,e,n);return c};var zoe=ci;function Pn(){this.__rules__=[],this.__cache__=null}$(Pn,"Ruler$3");Pn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Pn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};Pn.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};Pn.prototype.before=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Pn.prototype.after=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};Pn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Pn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};Pn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Pn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};Pn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var jd=Pn,Hoe=/\r\n?|\n/g,Goe=/\0/g,Woe=$(function(e){var n;n=e.src.replace(Hoe,`
|
|
199
|
+
`),n=n.replace(Goe,"�"),e.src=n},"normalize"),Qoe=$(function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},"block"),Yoe=$(function(e){var n=e.tokens,o,i,a;for(i=0,a=n.length;i<a;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},"inline"),Joe=et.arrayReplaceAt;function Jb(t){return/^<a[>\s]/i.test(t)}$(Jb,"isLinkOpen");function Zb(t){return/^<\/a\s*>/i.test(t)}$(Zb,"isLinkClose");var Zoe=$(function(e){var n,o,i,a,c,f,d,h,v,y,g,E,C,S,N,D,T=e.tokens,O;if(e.md.options.linkify){for(o=0,i=T.length;o<i;o++)if(!(T[o].type!=="inline"||!e.md.linkify.pretest(T[o].content)))for(a=T[o].children,C=0,n=a.length-1;n>=0;n--){if(f=a[n],f.type==="link_close"){for(n--;a[n].level!==f.level&&a[n].type!=="link_open";)n--;continue}if(f.type==="html_inline"&&(Jb(f.content)&&C>0&&C--,Zb(f.content)&&C++),!(C>0)&&f.type==="text"&&e.md.linkify.test(f.content)){for(v=f.content,O=e.md.linkify.match(v),d=[],E=f.level,g=0,h=0;h<O.length;h++)S=O[h].url,N=e.md.normalizeLink(S),e.md.validateLink(N)&&(D=O[h].text,O[h].schema?O[h].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,""),y=O[h].index,y>g&&(c=new e.Token("text","",0),c.content=v.slice(g,y),c.level=E,d.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",N]],c.level=E++,c.markup="linkify",c.info="auto",d.push(c),c=new e.Token("text","",0),c.content=D,c.level=E,d.push(c),c=new e.Token("link_close","a",-1),c.level=--E,c.markup="linkify",c.info="auto",d.push(c),g=O[h].lastIndex);g<v.length&&(c=new e.Token("text","",0),c.content=v.slice(g),c.level=E,d.push(c)),T[o].children=a=Joe(a,n,d)}}}},"linkify"),Xb=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Xoe=/\((c|tm|r|p)\)/i,Koe=/\((c|tm|r|p)\)/ig,eie={c:"©",r:"®",p:"§",tm:"™"};function Kb(t,e){return eie[e.toLowerCase()]}$(Kb,"replaceFn");function eE(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(Koe,Kb)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}$(eE,"replace_scoped");function tE(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&Xb.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}$(tE,"replace_rare");var tie=$(function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Xoe.test(e.tokens[n].content)&&eE(e.tokens[n].children),Xb.test(e.tokens[n].content)&&tE(e.tokens[n].children))},"replace"),Cg=et.isWhiteSpace,Ag=et.isPunctChar,Sg=et.isMdAsciiPunct,nie=/['"]/,Tg=/['"]/g,Dg="’";function sa(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}$(sa,"replaceAt");function nE(t,e){var n,o,i,a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;for(V=[],n=0;n<t.length;n++){for(o=t[n],d=t[n].level,T=V.length-1;T>=0&&!(V[T].level<=d);T--);if(V.length=T+1,o.type==="text"){i=o.content,c=0,f=i.length;e:for(;c<f&&(Tg.lastIndex=c,a=Tg.exec(i),!!a);){if(N=D=!0,c=a.index+1,O=a[0]==="'",v=32,a.index-1>=0)v=i.charCodeAt(a.index-1);else for(T=n-1;T>=0&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T--)if(t[T].content){v=t[T].content.charCodeAt(t[T].content.length-1);break}if(y=32,c<f)y=i.charCodeAt(c);else for(T=n+1;T<t.length&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T++)if(t[T].content){y=t[T].content.charCodeAt(0);break}if(g=Sg(v)||Ag(String.fromCharCode(v)),E=Sg(y)||Ag(String.fromCharCode(y)),C=Cg(v),S=Cg(y),S?N=!1:E&&(C||g||(N=!1)),C?D=!1:g&&(S||E||(D=!1)),y===34&&a[0]==='"'&&v>=48&&v<=57&&(D=N=!1),N&&D&&(N=g,D=E),!N&&!D){O&&(o.content=sa(o.content,a.index,Dg));continue}if(D){for(T=V.length-1;T>=0&&(h=V[T],!(V[T].level<d));T--)if(h.single===O&&V[T].level===d){h=V[T],O?(Y=e.md.options.quotes[2],P=e.md.options.quotes[3]):(Y=e.md.options.quotes[0],P=e.md.options.quotes[1]),o.content=sa(o.content,a.index,P),t[h.token].content=sa(t[h.token].content,h.pos,Y),c+=P.length-1,h.token===n&&(c+=Y.length-1),i=o.content,f=i.length,V.length=T;continue e}}N?V.push({token:n,pos:a.index,single:O,level:d}):D&&O&&(o.content=sa(o.content,a.index,Dg))}}}}$(nE,"process_inlines");var rie=$(function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!nie.test(e.tokens[n].content)||nE(e.tokens[n].children,e)},"smartquotes");function li(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}$(li,"Token$3");li.prototype.attrIndex=$(function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1},"attrIndex");li.prototype.attrPush=$(function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},"attrPush");li.prototype.attrSet=$(function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i},"attrSet");li.prototype.attrGet=$(function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o},"attrGet");li.prototype.attrJoin=$(function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n},"attrJoin");var Ud=li,oie=Ud;function zd(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}$(zd,"StateCore");zd.prototype.Token=oie;var iie=zd,sie=jd,Hf=[["normalize",Woe],["block",Qoe],["inline",Yoe],["linkify",Zoe],["replacements",tie],["smartquotes",rie]];function tu(){this.ruler=new sie;for(var t=0;t<Hf.length;t++)this.ruler.push(Hf[t][0],Hf[t][1])}$(tu,"Core");tu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};tu.prototype.State=iie;var aie=tu,Gf=et.isSpace;function il(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.substr(n,o-n)}$(il,"getLine");function Ap(t){var e=[],n=0,o=t.length,i,a=!1,c=0,f="";for(i=t.charCodeAt(n);n<o;)i===124&&(a?(f+=t.substring(c,n-1),c=n):(e.push(f+t.substring(c,n)),f="",c=n+1)),a=i===92,n++,i=t.charCodeAt(n);return e.push(f+t.substring(c)),e}$(Ap,"escapedSplit");var cie=$(function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;if(n+2>o||(v=n+1,e.sCount[v]<e.blkIndent)||e.sCount[v]-e.blkIndent>=4||(f=e.bMarks[v]+e.tShift[v],f>=e.eMarks[v])||(Y=e.src.charCodeAt(f++),Y!==124&&Y!==45&&Y!==58)||f>=e.eMarks[v]||(P=e.src.charCodeAt(f++),P!==124&&P!==45&&P!==58&&!Gf(P))||Y===45&&Gf(P))return!1;for(;f<e.eMarks[v];){if(a=e.src.charCodeAt(f),a!==124&&a!==45&&a!==58&&!Gf(a))return!1;f++}for(c=il(e,n+1),y=c.split("|"),C=[],d=0;d<y.length;d++){if(S=y[d].trim(),!S){if(d===0||d===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?C.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?C.push("left"):C.push("")}if(c=il(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(y=Ap(c),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),g=y.length,g===0||g!==C.length))return!1;if(i)return!0;for(T=e.parentType,e.parentType="table",V=e.md.block.ruler.getRules("blockquote"),E=e.push("table_open","table",1),E.map=N=[n,0],E=e.push("thead_open","thead",1),E.map=[n,n+1],E=e.push("tr_open","tr",1),E.map=[n,n+1],d=0;d<y.length;d++)E=e.push("th_open","th",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d].trim(),E.children=[],E=e.push("th_close","th",-1);for(E=e.push("tr_close","tr",-1),E=e.push("thead_close","thead",-1),v=n+2;v<o&&!(e.sCount[v]<e.blkIndent);v++){for(O=!1,d=0,h=V.length;d<h;d++)if(V[d](e,v,o,!0)){O=!0;break}if(O||(c=il(e,v).trim(),!c)||e.sCount[v]-e.blkIndent>=4)break;for(y=Ap(c),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===n+2&&(E=e.push("tbody_open","tbody",1),E.map=D=[n+2,0]),E=e.push("tr_open","tr",1),E.map=[v,v+1],d=0;d<g;d++)E=e.push("td_open","td",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d]?y[d].trim():"",E.children=[],E=e.push("td_close","td",-1);E=e.push("tr_close","tr",-1)}return D&&(E=e.push("tbody_close","tbody",-1),D[1]=v),E=e.push("table_close","table",-1),N[1]=v,e.parentType=T,e.line=v,!0},"table"),lie=$(function(e,n,o){var i,a,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(a=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,a=i;continue}break}return e.line=a,c=e.push("code_block","code",0),c.content=e.getLines(n,a,4+e.blkIndent,!1)+`
|
|
200
|
+
`,c.map=[n,e.line],!0},"code"),uie=$(function(e,n,o,i){var a,c,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),c=E-h,c<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<c)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return c=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,c,!0),v.markup=y,v.map=[n,e.line],!0},"fence"),Ng=et.isSpace,fie=$(function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],oe=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<oe&&(c=e.src.charCodeAt(Q),Ng(c));){c===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=oe,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],oe=e.eMarks[g],!(Q>=oe));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<oe&&(c=e.src.charCodeAt(Q),Ng(c));){c===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=oe,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},"blockquote"),pie=et.isSpace,die=$(function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(c=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!pie(f))return!1;f===a&&c++}return c<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(c+1).join(String.fromCharCode(a))),!0)},"hr"),rE=et.isSpace;function Sp(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!rE(a))?-1:o}$(Sp,"skipBulletListMarker");function Tp(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!rE(n))?-1:i}$(Tp,"skipOrderedListMarker");function oE(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}$(oE,"markTightParagraphs");var hie=$(function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,oe,_e,H,R,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.tShift[n]>=e.blkIndent&&(J=!0),(oe=Tp(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,oe-1)),J&&D!==1)return!1}else if((oe=Sp(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(oe)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(oe-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=oe,T=e.eMarks[O],v=V=e.sCount[O]+oe-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(c=Q,c>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,oe-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=V,c>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,c=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(R=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){R=!0;break}if(R)break;if(y){if(oe=Tp(e,O),oe<0)break;H=e.bMarks[O]+e.tShift[O]}else if(oe=Sp(e,O),oe<0)break;if(N!==e.src.charCodeAt(oe-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&oE(e,S),!0},"list"),mie=et.normalizeReference,Hc=et.isSpace,vie=$(function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,c=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Hc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=c,Y=f);P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=c,Y=f;P<U&&(a=D.charCodeAt(P),!!Hc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=mie(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},"reference"),gie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nu={},yie="[a-zA-Z_:][a-zA-Z0-9:._-]*",bie="[^\"'=<>`\\x00-\\x20]+",Eie="'[^']*'",_ie='"[^"]*"',kie="(?:"+bie+"|"+Eie+"|"+_ie+")",xie="(?:\\s+"+yie+"(?:\\s*=\\s*"+kie+")?)",iE="<[A-Za-z][A-Za-z0-9\\-]*"+xie+"*\\s*\\/?>",sE="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",wie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",$ie="<[?][\\s\\S]*?[?]>",Cie="<![A-Z]+\\s+[^>]*>",Aie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sie=new RegExp("^(?:"+iE+"|"+sE+"|"+wie+"|"+$ie+"|"+Cie+"|"+Aie+")"),Tie=new RegExp("^(?:"+iE+"|"+sE+")");nu.HTML_TAG_RE=Sie;nu.HTML_OPEN_CLOSE_TAG_RE=Tie;var Die=gie,Nie=nu.HTML_OPEN_CLOSE_TAG_RE,Mi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Die.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nie.source+"\\s*$"),/^$/,!1]],Oie=$(function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<Mi.length&&!Mi[a][0].test(d);a++);if(a===Mi.length)return!1;if(i)return Mi[a][2];if(c=n+1,!Mi[a][1].test(d)){for(;c<o&&!(e.sCount[c]<e.blkIndent);c++)if(h=e.bMarks[c]+e.tShift[c],v=e.eMarks[c],d=e.src.slice(h,v),Mi[a][1].test(d)){d.length!==0&&c++;break}}return e.line=c,f=e.push("html_block","",0),f.map=[n,c],f.content=e.getLines(n,c,e.blkIndent,!0),!0},"html_block"),Og=et.isSpace,Iie=$(function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(c=1,a=e.src.charCodeAt(++h);a===35&&h<v&&c<=6;)c++,a=e.src.charCodeAt(++h);return c>6||h<v&&!Og(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&Og(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(c),1),d.markup="########".slice(0,c),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(c),-1),d.markup="########".slice(0,c)),!0)},"heading"),Lie=$(function(e,n,o){var i,a,c,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,c=0,f=S.length;c<f;c++)if(S[c](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},"lheading"),Fie=$(function(e,n){var o,i,a,c,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,c=v.length;a<c;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},"paragraph"),aE=Ud,ru=et.isSpace;function Kn(t,e,n,o){var i,a,c,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,c=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if(ru(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(c),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,c=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}$(Kn,"StateBlock");Kn.prototype.push=function(t,e,n){var o=new aE(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Kn.prototype.isEmpty=$(function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},"isEmpty");Kn.prototype.skipEmptyLines=$(function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},"skipEmptyLines");Kn.prototype.skipSpaces=$(function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!ru(n));e++);return e},"skipSpaces");Kn.prototype.skipSpacesBack=$(function(e,n){if(e<=n)return e;for(;e>n;)if(!ru(this.src.charCodeAt(--e)))return e+1;return e},"skipSpacesBack");Kn.prototype.skipChars=$(function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e},"skipChars");Kn.prototype.skipCharsBack=$(function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e},"skipCharsBack");Kn.prototype.getLines=$(function(e,n,o,i){var a,c,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(c=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&c<o;){if(f=this.src.charCodeAt(d),ru(f))f===9?c+=4-(c+this.bsCount[g])%4:c++;else if(d-y<this.tShift[g])c++;else break;d++}c>o?v[a]=new Array(c-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")},"getLines");Kn.prototype.Token=aE;var Rie=Kn,Mie=jd,Gc=[["table",cie,["paragraph","reference"]],["code",lie],["fence",uie,["paragraph","reference","blockquote","list"]],["blockquote",fie,["paragraph","reference","blockquote","list"]],["hr",die,["paragraph","reference","blockquote","list"]],["list",hie,["paragraph","reference","blockquote"]],["reference",vie],["html_block",Oie,["paragraph","reference","blockquote"]],["heading",Iie,["paragraph","reference","blockquote"]],["lheading",Lie],["paragraph",Fie]];function Va(){this.ruler=new Mie;for(var t=0;t<Gc.length;t++)this.ruler.push(Gc[t][0],Gc[t][1],{alt:(Gc[t][2]||[]).slice()})}$(Va,"ParserBlock$1");Va.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),c=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<c&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Va.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Va.prototype.State=Rie;var qie=Va;function cE(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}$(cE,"isTerminatorChar");var Pie=$(function(e,n){for(var o=e.pos;o<e.posMax&&!cE(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},"text"),Bie=et.isSpace,Vie=$(function(e,n){var o,i,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;for(o=e.pending.length-1,i=e.posMax,n||(o>=0&&e.pending.charCodeAt(o)===32?o>=1&&e.pending.charCodeAt(o-1)===32?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),a++;a<i&&Bie(e.src.charCodeAt(a));)a++;return e.pos=a,!0},"newline"),jie=et.isSpace,Hd=[];for(var Ig=0;Ig<256;Ig++)Hd.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Hd[t.charCodeAt(0)]=1});var Uie=$(function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&Hd[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!jie(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},"escape"),zie=$(function(e,n){var o,i,a,c,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(c=e.push("code_inline","code",0),c.markup=a,c.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},"backtick"),ou={};ou.tokenize=$(function(e,n){var o,i,a,c,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),c=i.length,f=String.fromCharCode(h),c<2))return!1;for(c%2&&(a=e.push("text","",0),a.content=f,c--),o=0;o<c;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,jump:o/2,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"strikethrough");function Dp(t,e){var n,o,i,a,c,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],c=t.tokens[i.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[a.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(c=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=c)}}$(Dp,"postProcess$1");ou.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Dp(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Dp(e,o[n].delimiters)},"strikethrough");var iu={};iu.tokenize=$(function(e,n){var o,i,a,c=e.pos,f=e.src.charCodeAt(c);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,jump:o,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},"emphasis");function Np(t,e){var n,o,i,a,c,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1&&e[n-1].marker===o.marker,c=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?c+c:c,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?c+c:c,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}$(Np,"postProcess");iu.postProcess=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Np(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Np(e,o[n].delimiters)},"emphasis");var Hie=et.normalizeReference,Wf=et.isSpace,Gie=$(function(e,n){var o,i,a,c,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(d=c+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!Wf(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=c+1):d=c+1,a||(a=e.src.slice(f,c)),v=e.env.references[Hie(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=c,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},"link"),Wie=et.normalizeReference,Qf=et.isSpace,Qie=$(function(e,n){var o,i,a,c,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!Qf(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?c=e.src.slice(S,h++):h=f+1):h=f+1,c||(c=e.src.slice(d,f)),v=e.env.references[Wie(c)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},"image"),Yie=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Jie=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Zie=$(function(e,n){var o,i,a,c,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(c=e.src.charCodeAt(h),c===60))return!1;if(c===62)break}return o=e.src.slice(f+1,h),Jie.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):Yie.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},"autolink"),Xie=nu.HTML_TAG_RE;function lE(t){var e=t|32;return e>=97&&e<=122}$(lE,"isLetter");var Kie=$(function(e,n){var o,i,a,c,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!lE(o))||(i=e.src.slice(f).match(Xie),!i)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},"html_inline"),Lg=Ub,ese=et.has,tse=et.isValidEntityCode,Fg=et.fromCodePoint,nse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,rse=/^&([a-z][a-z0-9]{1,31});/i,ose=$(function(e,n){var o,i,a,c=e.pos,f=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<f){if(o=e.src.charCodeAt(c+1),o===35){if(a=e.src.slice(c).match(nse),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=tse(i)?Fg(i):Fg(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(c).match(rse),a&&ese(Lg,a[1]))return n||(e.pending+=Lg[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0},"entity");function Op(t,e){var n,o,i,a,c,f,d,h,v={},y=e.length;for(n=0;n<y;n++)if(i=e[n],i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),c=v[i.marker][(i.open?3:0)+i.length%3],o=n-i.jump-1,o<-1&&(o=-1),f=o;o>c;o-=a.jump+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?e[o-1].jump+1:0,i.jump=n-o+h,i.open=!1,a.end=n,a.jump=h,a.close=!1,f=-1;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}$(Op,"processDelimiters");var ise=$(function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(Op(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&Op(e,o[n].delimiters)},"link_pairs"),sse=$(function(e){var n,o,i=0,a=e.tokens,c=e.tokens.length;for(n=o=0;n<c;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<c&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},"text_collapse"),Gd=Ud,Rg=et.isWhiteSpace,Mg=et.isPunctChar,qg=et.isMdAsciiPunct;function ds(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}$(ds,"StateInline");ds.prototype.pushPending=function(){var t=new Gd("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ds.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Gd(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};ds.prototype.scanDelims=function(t,e){var n=t,o,i,a,c,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=qg(o)||Mg(String.fromCharCode(o)),y=qg(i)||Mg(String.fromCharCode(i)),d=Rg(o),v=Rg(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(c=g,f=E):(c=g&&(!E||h),f=E&&(!g||y)),{can_open:c,can_close:f,length:a}};ds.prototype.Token=Gd;var ase=ds,Pg=jd,Yf=[["text",Pie],["newline",Vie],["escape",Uie],["backticks",zie],["strikethrough",ou.tokenize],["emphasis",iu.tokenize],["link",Gie],["image",Qie],["autolink",Zie],["html_inline",Kie],["entity",ose]],Jf=[["balance_pairs",ise],["strikethrough",ou.postProcess],["emphasis",iu.postProcess],["text_collapse",sse]];function hs(){var t;for(this.ruler=new Pg,t=0;t<Yf.length;t++)this.ruler.push(Yf[t][0],Yf[t][1]);for(this.ruler2=new Pg,t=0;t<Jf.length;t++)this.ruler2.push(Jf[t][0],Jf[t][1])}$(hs,"ParserInline$1");hs.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,c=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<c)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};hs.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,c=t.md.options.maxNesting;t.pos<a;){if(t.level<c)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};hs.prototype.parse=function(t,e,n,o){var i,a,c,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),c=a.length,i=0;i<c;i++)a[i](f)};hs.prototype.State=ase;var cse=hs,lse=$(function(t){var e={};e.src_Any=Wb.source,e.src_Cc=Qb.source,e.src_Z=Yb.source,e.src_P=Vd.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e},"re");function bl(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}$(bl,"assign");function ja(t){return Object.prototype.toString.call(t)}$(ja,"_class");function uE(t){return ja(t)==="[object String]"}$(uE,"isString");function fE(t){return ja(t)==="[object Object]"}$(fE,"isObject$2");function pE(t){return ja(t)==="[object RegExp]"}$(pE,"isRegExp");function Ip(t){return ja(t)==="[object Function]"}$(Ip,"isFunction");function dE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}$(dE,"escapeRE");var hE={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mE(t){return Object.keys(t||{}).reduce(function(e,n){return e||hE.hasOwnProperty(n)},!1)}$(mE,"isOptionsObj");var use={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},fse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",pse="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function vE(t){t.__index__=-1,t.__text_cache__=""}$(vE,"resetScanCache");function gE(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}$(gE,"createValidator");function Lp(){return function(t,e){e.normalize(t)}}$(Lp,"createNormalizer");function Ea(t){var e=t.re=lse(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(fse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}$(o,"untpl"),e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}$(a,"schemaError"),Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,fE(d)){pE(d.validate)?h.validate=gE(d.validate):Ip(d.validate)?h.validate=d.validate:a(f,d),Ip(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=Lp();return}if(uE(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:Lp()};var c=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(dE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),vE(t)}$(Ea,"compile");function yE(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}$(yE,"Match");function Fp(t,e){var n=new yE(t,e);return t.__compiled__[n.schema].normalize(n,t),n}$(Fp,"createMatch");function bn(t,e){if(!(this instanceof bn))return new bn(t,e);e||mE(t)&&(e=t,t={}),this.__opts__=bl({},hE,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=bl({},use,t),this.__compiled__={},this.__tlds__=pse,this.__tlds_replaced__=!1,this.re={},Ea(this)}$(bn,"LinkifyIt$1");bn.prototype.add=$(function(e,n){return this.__schemas__[e]=n,Ea(this),this},"add");bn.prototype.set=$(function(e){return this.__opts__=bl(this.__opts__,e),this},"set");bn.prototype.test=$(function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,c,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=o.index+o[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(c=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=f))),this.__index__>=0},"test");bn.prototype.pretest=$(function(e){return this.re.pretest.test(e)},"pretest");bn.prototype.testSchemaAt=$(function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0},"testSchemaAt");bn.prototype.match=$(function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(Fp(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(Fp(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null},"match");bn.prototype.tlds=$(function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Ea(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ea(this),this)},"tlds");bn.prototype.normalize=$(function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},"normalize");bn.prototype.onCompile=$(function(){},"onCompile");var dse=bn;const Hi=2147483647,yr=36,Wd=1,_a=26,hse=38,mse=700,bE=72,EE=128,_E="-",vse=/^xn--/,gse=/[^\0-\x7E]/,yse=/[\x2E\u3002\uFF0E\uFF61]/g,bse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Zf=yr-Wd,br=Math.floor,Xf=String.fromCharCode;function po(t){throw new RangeError(bse[t])}$(po,"error");function kE(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}$(kE,"map");function Qd(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(yse,".");const i=t.split("."),a=kE(i,e).join(".");return o+a}$(Qd,"mapDomain");function su(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const a=t.charCodeAt(n++);(a&64512)==56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}$(su,"ucs2decode");const xE=$(t=>String.fromCodePoint(...t),"ucs2encode"),Ese=$(function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:yr},"basicToDigit"),Bg=$(function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},"digitToBasic"),wE=$(function(t,e,n){let o=0;for(t=n?br(t/mse):t>>1,t+=br(t/e);t>Zf*_a>>1;o+=yr)t=br(t/Zf);return br(o+(Zf+1)*t/(t+hse))},"adapt"),Yd=$(function(t){const e=[],n=t.length;let o=0,i=EE,a=bE,c=t.lastIndexOf(_E);c<0&&(c=0);for(let f=0;f<c;++f)t.charCodeAt(f)>=128&&po("not-basic"),e.push(t.charCodeAt(f));for(let f=c>0?c+1:0;f<n;){let d=o;for(let v=1,y=yr;;y+=yr){f>=n&&po("invalid-input");const g=Ese(t.charCodeAt(f++));(g>=yr||g>br((Hi-o)/v))&&po("overflow"),o+=g*v;const E=y<=a?Wd:y>=a+_a?_a:y-a;if(g<E)break;const C=yr-E;v>br(Hi/C)&&po("overflow"),v*=C}const h=e.length+1;a=wE(o-d,h,d==0),br(o/h)>Hi-i&&po("overflow"),i+=br(o/h),o%=h,e.splice(o++,0,i)}return String.fromCodePoint(...e)},"decode"),Jd=$(function(t){const e=[];t=su(t);let n=t.length,o=EE,i=0,a=bE;for(const d of t)d<128&&e.push(Xf(d));let c=e.length,f=c;for(c&&e.push(_E);f<n;){let d=Hi;for(const v of t)v>=o&&v<d&&(d=v);const h=f+1;d-o>br((Hi-i)/h)&&po("overflow"),i+=(d-o)*h,o=d;for(const v of t)if(v<o&&++i>Hi&&po("overflow"),v==o){let y=i;for(let g=yr;;g+=yr){const E=g<=a?Wd:g>=a+_a?_a:g-a;if(y<E)break;const C=y-E,S=yr-E;e.push(Xf(Bg(E+C%S,0))),y=br(C/S)}e.push(Xf(Bg(y,0))),a=wE(i,h,f==c),i=0,++f}++i,++o}return e.join("")},"encode"),$E=$(function(t){return Qd(t,function(e){return vse.test(e)?Yd(e.slice(4).toLowerCase()):e})},"toUnicode"),CE=$(function(t){return Qd(t,function(e){return gse.test(e)?"xn--"+Jd(e):e})},"toASCII"),_se={version:"2.1.0",ucs2:{decode:su,encode:xE},decode:Yd,encode:Jd,toASCII:CE,toUnicode:$E};var kse=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:su,ucs2encode:xE,decode:Yd,encode:Jd,toASCII:CE,toUnicode:$E,default:_se}),xse=Vb(kse),wse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},$se={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},Cse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},ua=et,Ase=eu,Sse=zoe,Tse=aie,Dse=qie,Nse=cse,Ose=dse,Go=fs,AE=xse,Ise={default:wse,zero:$se,commonmark:Cse},Lse=/^(vbscript|javascript|file|data):/,Fse=/^data:image\/(gif|png|jpeg|webp);/;function SE(t){var e=t.trim().toLowerCase();return Lse.test(e)?!!Fse.test(e):!0}$(SE,"validateLink");var TE=["http:","https:","mailto:"];function DE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||TE.indexOf(e.protocol)>=0))try{e.hostname=AE.toASCII(e.hostname)}catch{}return Go.encode(Go.format(e))}$(DE,"normalizeLink");function NE(t){var e=Go.parse(t,!0);if(e.hostname&&(!e.protocol||TE.indexOf(e.protocol)>=0))try{e.hostname=AE.toUnicode(e.hostname)}catch{}return Go.decode(Go.format(e),Go.decode.defaultChars+"%")}$(NE,"normalizeLinkText");function En(t,e){if(!(this instanceof En))return new En(t,e);e||ua.isString(t)||(e=t||{},t="default"),this.inline=new Nse,this.block=new Dse,this.core=new Tse,this.renderer=new Sse,this.linkify=new Ose,this.validateLink=SE,this.normalizeLink=DE,this.normalizeLinkText=NE,this.utils=ua,this.helpers=ua.assign({},Ase),this.options={},this.configure(t),e&&this.set(e)}$(En,"MarkdownIt");En.prototype.set=function(t){return ua.assign(this.options,t),this};En.prototype.configure=function(t){var e=this,n;if(ua.isString(t)&&(n=t,t=Ise[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};En.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};En.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};En.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};En.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};En.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};En.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};En.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Rse=En,Mse=Rse;const Rp=new Mse;var qse=Object.defineProperty,Pse=$((t,e)=>qse(t,"name",{value:e,configurable:!0}),"__name$j");const au="graphiql",cu="sublime";let OE=!1;typeof window=="object"&&(OE=window.navigator.platform.toLowerCase().indexOf("mac")===0);const lu={[OE?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function ui(t,e){const n=await Xe(()=>import("./codemirror.es-DnfFbgQm.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(function(o){return o.c}).then(o=>typeof o=="function"?o:o.default);return await Promise.all((e==null?void 0:e.useCommonAddons)===!1?t:[Xe(()=>import("./show-hint.es-Br8tdMLx.js"),__vite__mapDeps([3,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./matchbrackets.es-CZaojsDe.js"),__vite__mapDeps([4,0,1,2]),import.meta.url).then(function(o){return o.m}),Xe(()=>import("./closebrackets.es-B9xGBc1l.js"),__vite__mapDeps([5,0,1,2]),import.meta.url).then(function(o){return o.c}),Xe(()=>import("./brace-fold.es-D4FLzACD.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(o){return o.b}),Xe(()=>import("./foldgutter.es-C7HbANvK.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(o){return o.f}),Xe(()=>import("./lint.es3-BI3Fnjz7.js"),__vite__mapDeps([8,0,1,2]),import.meta.url).then(function(o){return o.l}),Xe(()=>import("./searchcursor.es-DsxyEmEP.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(o){return o.s}),Xe(()=>import("./jump-to-line.es-ByoMAIJw.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(o){return o.j}),Xe(()=>import("./dialog.es-9xd4UJpC.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(o){return o.d}),Xe(()=>import("./sublime.es-CRbP9ior.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(o){return o.s}),...t]),n}$(ui,"importCodeMirror");Pse(ui,"importCodeMirror");var Bse=Object.defineProperty,El=$((t,e)=>Bse(t,"name",{value:e,configurable:!0}),"__name$i");function Ua(t,e,n,o){ui([],{useCommonAddons:!1}).then(a=>{let c,f;a.on(e,"select",(d,h)=>{if(!c){const g=h.parentNode;c=document.createElement("div"),c.className="CodeMirror-hint-information",c.addEventListener("click",i),g.appendChild(c),f=document.createElement("div"),f.className="CodeMirror-hint-deprecation",g.appendChild(f);let E;g.addEventListener("DOMNodeRemoved",E=El(C=>{C.target===g&&(g.removeEventListener("DOMNodeRemoved",E),c&&c.removeEventListener("click",i),c=null,f=null,E=null)},"onRemoveFn"))}const v=d.description?Rp.render(d.description):"Self descriptive.",y=d.type?'<span class="infoType">'+ka(d.type)+"</span>":"";if(c.innerHTML='<div class="content">'+(v.slice(0,3)==="<p>"?"<p>"+y+v.slice(3):y+v)+"</div>",d&&f&&d.deprecationReason){const g=d.deprecationReason?Rp.render(d.deprecationReason):"";f.innerHTML='<span class="deprecation-label">Deprecated</span>'+g,f.style.display="block"}else f&&(f.style.display="none")})});function i(a){if(!n||!o||!(a.currentTarget instanceof HTMLElement)||a.currentTarget.className!=="typeName")return;const c=a.currentTarget.innerHTML,f=n.getType(c);f&&(o.show(),o.push({name:f.name,def:f}))}$(i,"onClickHintInformation"),El(i,"onClickHintInformation")}$(Ua,"onHasCompletion");El(Ua,"onHasCompletion");function ka(t){return Ie(t)?`${ka(t.ofType)}!`:at(t)?`[${ka(t.ofType)}]`:`<a class="typeName">${sC(t.name)}</a>`}$(ka,"renderType");El(ka,"renderType");var Zd={exports:{}},za={};/*
|
|
201
|
+
object-assign
|
|
202
|
+
(c) Sindre Sorhus
|
|
203
|
+
@license MIT
|
|
204
|
+
*/var Vg=Object.getOwnPropertySymbols,Vse=Object.prototype.hasOwnProperty,jse=Object.prototype.propertyIsEnumerable;function IE(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}$(IE,"toObject");function LE(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(a){return e[a]});if(o.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}$(LE,"shouldUseNative");LE();/** @license React v17.0.2
|
|
205
|
+
* react-jsx-runtime.production.min.js
|
|
206
|
+
*
|
|
207
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the MIT license found in the
|
|
210
|
+
* LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/var Use=L,FE=60103;za.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var jg=Symbol.for;FE=jg("react.element"),za.Fragment=jg("react.fragment")}var zse=Use.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hse=Object.prototype.hasOwnProperty,Gse={key:!0,ref:!0,__self:!0,__source:!0};function Xd(t,e,n){var o,i={},a=null,c=null;n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(c=e.ref);for(o in e)Hse.call(e,o)&&!Gse.hasOwnProperty(o)&&(i[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)i[o]===void 0&&(i[o]=e[o]);return{$$typeof:FE,type:t,key:a,ref:c,props:i,_owner:zse.current}}$(Xd,"q");za.jsx=Xd;za.jsxs=Xd;Zd.exports=za;const Qr=Zd.exports.jsx,Ug=Zd.exports.jsxs;var Wse=Object.defineProperty,uu=$((t,e)=>Wse(t,"name",{value:e,configurable:!0}),"__name$h");function ns(t){var e;const[n,o]=ie.useState({width:null,height:null}),[i,a]=ie.useState(null),c=ie.useRef(null),f=(e=fu(t.token))==null?void 0:e.href;ie.useEffect(()=>{if(c.current){if(!f){o({width:null,height:null}),a(null);return}fetch(f,{method:"HEAD"}).then(h=>{a(h.headers.get("Content-Type"))}).catch(()=>{a(null)})}},[f]);const d=n.width!==null&&n.height!==null?Ug("div",{children:[n.width,"x",n.height,i!==null?" "+i:null]}):null;return Ug("div",{children:[Qr("img",{onLoad:()=>{var h,v,y,g;o({width:(v=(h=c.current)==null?void 0:h.naturalWidth)!=null?v:null,height:(g=(y=c.current)==null?void 0:y.naturalHeight)!=null?g:null})},ref:c,src:f}),d]})}$(ns,"ImagePreview");uu(ns,"ImagePreview");ns.shouldRender=uu($(function(e){const n=fu(e);return n?Kd(n):!1},"shouldRender"),"shouldRender");function fu(t){if(t.type!=="string")return;const e=t.string.slice(1).slice(0,-1).trim();try{const n=window.location;return new URL(e,n.protocol+"//"+n.host)}catch{return}}$(fu,"tokenToURL");uu(fu,"tokenToURL");function Kd(t){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(t.pathname)}$(Kd,"isImageURL");uu(Kd,"isImageURL");function Mp(t){return typeof t=="object"&&typeof t.then=="function"}$(Mp,"isPromise");function RE(t){return new Promise((e,n)=>{const o=t.subscribe({next:i=>{e(i),o.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})}$(RE,"observableToPromise");function eh(t){return typeof t=="object"&&"subscribe"in t&&typeof t.subscribe=="function"}$(eh,"isObservable");function th(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in t)}$(th,"isAsyncIterable");function ME(t){return new Promise((e,n)=>{var o;const i=(o=("return"in t?t:t[Symbol.asyncIterator]()).return)===null||o===void 0?void 0:o.bind(t);("next"in t?t:t[Symbol.asyncIterator]()).next.bind(t)().then(c=>{e(c.value),i==null||i()}).catch(c=>{n(c)})})}$(ME,"asyncIterableToPromise");function qp(t){return Promise.resolve(t).then(e=>th(e)?ME(e):eh(e)?RE(e):e)}$(qp,"fetcherReturnToPromise");function _l(t){return JSON.stringify(t,null,2)}$(_l,"stringify");function qE(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}$(qE,"formatSingleError");function Pp(t){return t instanceof Error?qE(t):t}$(Pp,"handleSingleError");function Yo(t){return Array.isArray(t)?_l({errors:t.map(e=>Pp(e))}):_l({errors:[Pp(t)]})}$(Yo,"formatError");function kl(t){return _l(t)}$(kl,"formatResult");function PE(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Xn(e)}catch{return{insertions:o,result:e}}const a=n||BE,c=new ai(t);return pn(i,{leave(f){c.leave(f)},enter(f){if(c.enter(f),f.kind==="Field"&&!f.selectionSet){const d=c.getType(),h=nh(UE(d),a);if(h&&f.loc){const v=jE(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
|
|
212
|
+
`+v)})}}}}),{insertions:o,result:VE(e,o)}}$(PE,"fillLeafs");function BE(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{dn(e[o].type)&&n.push(o)}),n}$(BE,"defaultGetDefaultFieldNames");function nh(t,e){const n=Rt(t);if(!t||dn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:F.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],c=a?a.type:null;return{kind:F.FIELD,name:{kind:F.NAME,value:i},selectionSet:nh(c,e)}})}}$(nh,"buildSelectionSet");function VE(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}$(VE,"withInsertions");function jE(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}$(jE,"getIndentation");function UE(t){if(t)return t}$(UE,"isFieldType");function zE(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const c=e(a),f=o.get(c);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(c,d),i.push(d)}}else i.push(a);return i}$(zE,"uniqueBy");function rh(t,e,n){var o;const i=n?Rt(n).name:null,a=[],c=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(c.indexOf(d)>=0)continue;c.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:F.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===F.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...rh(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}$(rh,"inlineRelevantFragmentSpreads");function HE(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===F.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const c=n?n.getParentType():null;let{selections:f}=a;return f=rh(o,f,c),f=zE(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return pn(t,n?qa(n,i):i)}$(HE,"mergeAst");function GE(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(c=>{var f;return(f=c.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}$(GE,"getSelectedOperationName");function WE(t,e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t.length!==0}$(WE,"isQuotaError");class xl{constructor(e){e?this.storage=e:e===null?this.storage=null:this.storage=typeof window<"u"?window.localStorage:null}get(e){if(!this.storage)return null;const n=`${zg}:${e}`,o=this.storage.getItem(n);return o==="null"||o==="undefined"?(this.storage.removeItem(n),null):o||null}set(e,n){let o=!1,i=null;if(this.storage){const a=`${zg}:${e}`;if(n)try{this.storage.setItem(a,n)}catch(c){i=c instanceof Error?c:new Error(`${c}`),o=WE(this.storage,c)}else this.storage.removeItem(a)}return{isQuotaError:o,error:i}}}$(xl,"StorageAPI");const zg="graphiql";class Bp{constructor(e,n,o=null){this.key=e,this.storage=n,this.maxSize=o,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(n=>n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)}edit(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1,e),this.save())}delete(e){const n=this.items.findIndex(o=>o.query===e.query&&o.variables===e.variables&&o.headers===e.headers&&o.operationName===e.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const n=[...this.items,e];this.maxSize&&n.length>this.maxSize&&n.shift();for(let o=0;o<5;o++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!i||!i.error)this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}$(Bp,"QueryStore");const Qse=1e5;class QE{constructor(e,n){this.storage=e,this.maxHistoryLength=n,this.updateHistory=(o,i,a,c)=>{if(this.shouldSaveQuery(o,i,a,this.history.fetchRecent())){this.history.push({query:o,variables:i,headers:a,operationName:c});const f=this.history.items,d=this.favorite.items;this.queries=f.concat(d)}},this.history=new Bp("queries",this.storage,this.maxHistoryLength),this.favorite=new Bp("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,n,o,i){if(!e)return!1;try{Xn(e)}catch{return!1}return e.length>Qse?!1:i?!(JSON.stringify(e)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(o)===JSON.stringify(i.headers)||o&&!i.headers)||n&&!i.variables)):!0}toggleFavorite(e,n,o,i,a,c){const f={query:e,variables:n,headers:o,operationName:i,label:a};this.favorite.contains(f)?c&&(f.favorite=!1,this.favorite.delete(f)):(f.favorite=!0,this.favorite.push(f)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,n,o,i,a,c){const f={query:e,variables:n,headers:o,operationName:i,label:a};c?this.favorite.edit(Object.assign(Object.assign({},f),{favorite:c})):this.history.edit(f),this.queries=[...this.history.items,...this.favorite.items]}}$(QE,"HistoryStore");var Yse=Object.defineProperty,oh=$((t,e)=>Yse(t,"name",{value:e,configurable:!0}),"__name$g");function xo(t){const e=ie.createContext(null);return e.displayName=t,e}$(xo,"createNullableContext");oh(xo,"createNullableContext");function wo(t){function e(n){var o;const i=ie.useContext(t);if(i===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((o=n.caller)==null?void 0:o.name)||e.caller.name}\` without the necessary context. Make sure to render the \`${t.displayName}Provider\` component higher up the tree.`);return i}return $(e,"useGivenContext"),oh(e,"useGivenContext"),Object.defineProperty(e,"name",{value:`use${t.displayName}`}),e}$(wo,"createContextHook");oh(wo,"createContextHook");var Jse=Object.defineProperty,Zse=$((t,e)=>Jse(t,"name",{value:e,configurable:!0}),"__name$f");const ih=xo("StorageContext");function pu(t){const e=ie.useRef(!0),[n,o]=ie.useState(new xl(t.storage));return ie.useEffect(()=>{e.current?e.current=!1:o(new xl(t.storage))},[t.storage]),Qr(ih.Provider,{value:n,children:t.children})}$(pu,"StorageContextProvider");Zse(pu,"StorageContextProvider");const $o=wo(ih);var Hg;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Hg||(Hg={}));var Vp;(function(t){function e(n){return typeof n=="string"}$(e,"is"),t.is=e})(Vp||(Vp={}));var Gg;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(Gg||(Gg={}));var wl;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}$(e,"is"),t.is=e})(wl||(wl={}));var Qn;(function(t){function e(o,i){return o===Number.MAX_VALUE&&(o=wl.MAX_VALUE),i===Number.MAX_VALUE&&(i=wl.MAX_VALUE),{line:o,character:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.line)&&X.uinteger(i.character)}$(n,"is"),t.is=n})(Qn||(Qn={}));var kt;(function(t){function e(o,i,a,c){if(X.uinteger(o)&&X.uinteger(i)&&X.uinteger(a)&&X.uinteger(c))return{start:Qn.create(o,i),end:Qn.create(a,c)};if(Qn.is(o)&&Qn.is(i))return{start:o,end:i};throw new Error("Range#create called with invalid arguments[".concat(o,", ").concat(i,", ").concat(a,", ").concat(c,"]"))}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.start)&&Qn.is(i.end)}$(n,"is"),t.is=n})(kt||(kt={}));var $l;(function(t){function e(o,i){return{uri:o,range:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.string(i.uri)||X.undefined(i.uri))}$(n,"is"),t.is=n})($l||($l={}));var Wg;(function(t){function e(o,i,a,c){return{targetUri:o,targetRange:i,targetSelectionRange:a,originSelectionRange:c}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.targetRange)&&X.string(i.targetUri)&&kt.is(i.targetSelectionRange)&&(kt.is(i.originSelectionRange)||X.undefined(i.originSelectionRange))}$(n,"is"),t.is=n})(Wg||(Wg={}));var jp;(function(t){function e(o,i,a,c){return{red:o,green:i,blue:a,alpha:c}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.numberRange(i.red,0,1)&&X.numberRange(i.green,0,1)&&X.numberRange(i.blue,0,1)&&X.numberRange(i.alpha,0,1)}$(n,"is"),t.is=n})(jp||(jp={}));var Qg;(function(t){function e(o,i){return{range:o,color:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&jp.is(i.color)}$(n,"is"),t.is=n})(Qg||(Qg={}));var Yg;(function(t){function e(o,i,a){return{label:o,textEdit:i,additionalTextEdits:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.undefined(i.textEdit)||zr.is(i))&&(X.undefined(i.additionalTextEdits)||X.typedArray(i.additionalTextEdits,zr.is))}$(n,"is"),t.is=n})(Yg||(Yg={}));var Jg;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Jg||(Jg={}));var Zg;(function(t){function e(o,i,a,c,f,d){var h={startLine:o,endLine:i};return X.defined(a)&&(h.startCharacter=a),X.defined(c)&&(h.endCharacter=c),X.defined(f)&&(h.kind=f),X.defined(d)&&(h.collapsedText=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.uinteger(i.startLine)&&X.uinteger(i.startLine)&&(X.undefined(i.startCharacter)||X.uinteger(i.startCharacter))&&(X.undefined(i.endCharacter)||X.uinteger(i.endCharacter))&&(X.undefined(i.kind)||X.string(i.kind))}$(n,"is"),t.is=n})(Zg||(Zg={}));var Up;(function(t){function e(o,i){return{location:o,message:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&$l.is(i.location)&&X.string(i.message)}$(n,"is"),t.is=n})(Up||(Up={}));var Xg;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Xg||(Xg={}));var Kg;(function(t){t.Unnecessary=1,t.Deprecated=2})(Kg||(Kg={}));var ey;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&X.string(o.href)}$(e,"is"),t.is=e})(ey||(ey={}));var Cl;(function(t){function e(o,i,a,c,f,d){var h={range:o,message:i};return X.defined(a)&&(h.severity=a),X.defined(c)&&(h.code=c),X.defined(f)&&(h.source=f),X.defined(d)&&(h.relatedInformation=d),h}$(e,"create"),t.create=e;function n(o){var i,a=o;return X.defined(a)&&kt.is(a.range)&&X.string(a.message)&&(X.number(a.severity)||X.undefined(a.severity))&&(X.integer(a.code)||X.string(a.code)||X.undefined(a.code))&&(X.undefined(a.codeDescription)||X.string((i=a.codeDescription)===null||i===void 0?void 0:i.href))&&(X.string(a.source)||X.undefined(a.source))&&(X.undefined(a.relatedInformation)||X.typedArray(a.relatedInformation,Up.is))}$(n,"is"),t.is=n})(Cl||(Cl={}));var rs;(function(t){function e(o,i){for(var a=[],c=2;c<arguments.length;c++)a[c-2]=arguments[c];var f={title:o,command:i};return X.defined(a)&&a.length>0&&(f.arguments=a),f}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.title)&&X.string(i.command)}$(n,"is"),t.is=n})(rs||(rs={}));var zr;(function(t){function e(a,c){return{range:a,newText:c}}$(e,"replace"),t.replace=e;function n(a,c){return{range:{start:a,end:a},newText:c}}$(n,"insert"),t.insert=n;function o(a){return{range:a,newText:""}}$(o,"del"),t.del=o;function i(a){var c=a;return X.objectLiteral(c)&&X.string(c.newText)&&kt.is(c.range)}$(i,"is"),t.is=i})(zr||(zr={}));var Gi;(function(t){function e(o,i,a){var c={label:o};return i!==void 0&&(c.needsConfirmation=i),a!==void 0&&(c.description=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&X.string(i.label)&&(X.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(X.string(i.description)||i.description===void 0)}$(n,"is"),t.is=n})(Gi||(Gi={}));var Qt;(function(t){function e(n){var o=n;return X.string(o)}$(e,"is"),t.is=e})(Qt||(Qt={}));var fo;(function(t){function e(a,c,f){return{range:a,newText:c,annotationId:f}}$(e,"replace"),t.replace=e;function n(a,c,f){return{range:{start:a,end:a},newText:c,annotationId:f}}$(n,"insert"),t.insert=n;function o(a,c){return{range:a,newText:"",annotationId:c}}$(o,"del"),t.del=o;function i(a){var c=a;return zr.is(c)&&(Gi.is(c.annotationId)||Qt.is(c.annotationId))}$(i,"is"),t.is=i})(fo||(fo={}));var Al;(function(t){function e(o,i){return{textDocument:o,edits:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&Sl.is(i.textDocument)&&Array.isArray(i.edits)}$(n,"is"),t.is=n})(Al||(Al={}));var xa;(function(t){function e(o,i,a){var c={kind:"create",uri:o};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(c.options=i),a!==void 0&&(c.annotationId=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="create"&&X.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(xa||(xa={}));var wa;(function(t){function e(o,i,a,c){var f={kind:"rename",oldUri:o,newUri:i};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(f.options=a),c!==void 0&&(f.annotationId=c),f}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="rename"&&X.string(i.oldUri)&&X.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||X.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||X.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})(wa||(wa={}));var $a;(function(t){function e(o,i,a){var c={kind:"delete",uri:o};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(c.options=i),a!==void 0&&(c.annotationId=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return i&&i.kind==="delete"&&X.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||X.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||X.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Qt.is(i.annotationId))}$(n,"is"),t.is=n})($a||($a={}));var zp;(function(t){function e(n){var o=n;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(i){return X.string(i.kind)?xa.is(i)||wa.is(i)||$a.is(i):Al.is(i)}))}$(e,"is"),t.is=e})(zp||(zp={}));var Wc=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return $(t,"TextEditChangeImpl"),t.prototype.insert=function(e,n,o){var i,a;if(o===void 0?i=zr.insert(e,n):Qt.is(o)?(a=o,i=fo.insert(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.insert(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.replace=function(e,n,o){var i,a;if(o===void 0?i=zr.replace(e,n):Qt.is(o)?(a=o,i=fo.replace(e,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(o),i=fo.replace(e,n,a)),this.edits.push(i),a!==void 0)return a},t.prototype.delete=function(e,n){var o,i;if(n===void 0?o=zr.del(e):Qt.is(n)?(i=n,o=fo.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),o=fo.del(e,i)),this.edits.push(o),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),ty=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return $(t,"ChangeAnnotations"),t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var o;if(Qt.is(e)?o=e:(o=this.nextId(),n=e),this._annotations[o]!==void 0)throw new Error("Id ".concat(o," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(o));return this._annotations[o]=n,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ty(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(o){if(Al.is(o)){var i=new Wc(o.edits,n._changeAnnotations);n._textEditChanges[o.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(o){var i=new Wc(e.changes[o]);n._textEditChanges[o]=i})):this._workspaceEdit={}}return $(t,"WorkspaceChange"),Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(Sl.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},o=this._textEditChanges[n.uri];if(!o){var i=[],a={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(a),o=new Wc(i,this._changeAnnotations),this._textEditChanges[n.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[e];if(!o){var i=[];this._workspaceEdit.changes[e]=i,o=new Wc(i),this._textEditChanges[e]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ty,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,c;if(i===void 0?a=xa.create(e,o):(c=Qt.is(i)?i:this._changeAnnotations.manage(i),a=xa.create(e,o,c)),this._workspaceEdit.documentChanges.push(a),c!==void 0)return c},t.prototype.renameFile=function(e,n,o,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;Gi.is(o)||Qt.is(o)?a=o:i=o;var c,f;if(a===void 0?c=wa.create(e,n,i):(f=Qt.is(a)?a:this._changeAnnotations.manage(a),c=wa.create(e,n,i,f)),this._workspaceEdit.documentChanges.push(c),f!==void 0)return f},t.prototype.deleteFile=function(e,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Gi.is(n)||Qt.is(n)?i=n:o=n;var a,c;if(i===void 0?a=$a.create(e,o):(c=Qt.is(i)?i:this._changeAnnotations.manage(i),a=$a.create(e,o,c)),this._workspaceEdit.documentChanges.push(a),c!==void 0)return c},t})();var ny;(function(t){function e(o){return{uri:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)}$(n,"is"),t.is=n})(ny||(ny={}));var ry;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.integer(i.version)}$(n,"is"),t.is=n})(ry||(ry={}));var Sl;(function(t){function e(o,i){return{uri:o,version:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&(i.version===null||X.integer(i.version))}$(n,"is"),t.is=n})(Sl||(Sl={}));var oy;(function(t){function e(o,i,a,c){return{uri:o,languageId:i,version:a,text:c}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.string(i.uri)&&X.string(i.languageId)&&X.integer(i.version)&&X.string(i.text)}$(n,"is"),t.is=n})(oy||(oy={}));var Hp;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){var o=n;return o===t.PlainText||o===t.Markdown}$(e,"is"),t.is=e})(Hp||(Hp={}));var Ca;(function(t){function e(n){var o=n;return X.objectLiteral(n)&&Hp.is(o.kind)&&X.string(o.value)}$(e,"is"),t.is=e})(Ca||(Ca={}));var iy;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(iy||(iy={}));var sy;(function(t){t.PlainText=1,t.Snippet=2})(sy||(sy={}));var ay;(function(t){t.Deprecated=1})(ay||(ay={}));var cy;(function(t){function e(o,i,a){return{newText:o,insert:i,replace:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.newText)&&kt.is(i.insert)&&kt.is(i.replace)}$(n,"is"),t.is=n})(cy||(cy={}));var ly;(function(t){t.asIs=1,t.adjustIndentation=2})(ly||(ly={}));var uy;(function(t){function e(n){var o=n;return o&&(X.string(o.detail)||o.detail===void 0)&&(X.string(o.description)||o.description===void 0)}$(e,"is"),t.is=e})(uy||(uy={}));var fy;(function(t){function e(n){return{label:n}}$(e,"create"),t.create=e})(fy||(fy={}));var py;(function(t){function e(n,o){return{items:n||[],isIncomplete:!!o}}$(e,"create"),t.create=e})(py||(py={}));var Tl;(function(t){function e(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}$(e,"fromPlainText"),t.fromPlainText=e;function n(o){var i=o;return X.string(i)||X.objectLiteral(i)&&X.string(i.language)&&X.string(i.value)}$(n,"is"),t.is=n})(Tl||(Tl={}));var dy;(function(t){function e(n){var o=n;return!!o&&X.objectLiteral(o)&&(Ca.is(o.contents)||Tl.is(o.contents)||X.typedArray(o.contents,Tl.is))&&(n.range===void 0||kt.is(n.range))}$(e,"is"),t.is=e})(dy||(dy={}));var hy;(function(t){function e(n,o){return o?{label:n,documentation:o}:{label:n}}$(e,"create"),t.create=e})(hy||(hy={}));var my;(function(t){function e(n,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var c={label:n};return X.defined(o)&&(c.documentation=o),X.defined(i)?c.parameters=i:c.parameters=[],c}$(e,"create"),t.create=e})(my||(my={}));var vy;(function(t){t.Text=1,t.Read=2,t.Write=3})(vy||(vy={}));var gy;(function(t){function e(n,o){var i={range:n};return X.number(o)&&(i.kind=o),i}$(e,"create"),t.create=e})(gy||(gy={}));var yy;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(yy||(yy={}));var by;(function(t){t.Deprecated=1})(by||(by={}));var Ey;(function(t){function e(n,o,i,a,c){var f={name:n,kind:o,location:{uri:a,range:i}};return c&&(f.containerName=c),f}$(e,"create"),t.create=e})(Ey||(Ey={}));var _y;(function(t){function e(n,o,i,a){return a!==void 0?{name:n,kind:o,location:{uri:i,range:a}}:{name:n,kind:o,location:{uri:i}}}$(e,"create"),t.create=e})(_y||(_y={}));var ky;(function(t){function e(o,i,a,c,f,d){var h={name:o,detail:i,kind:a,range:c,selectionRange:f};return d!==void 0&&(h.children=d),h}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.name)&&X.number(i.kind)&&kt.is(i.range)&&kt.is(i.selectionRange)&&(i.detail===void 0||X.string(i.detail))&&(i.deprecated===void 0||X.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}$(n,"is"),t.is=n})(ky||(ky={}));var xy;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(xy||(xy={}));var Dl;(function(t){t.Invoked=1,t.Automatic=2})(Dl||(Dl={}));var wy;(function(t){function e(o,i,a){var c={diagnostics:o};return i!=null&&(c.only=i),a!=null&&(c.triggerKind=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.typedArray(i.diagnostics,Cl.is)&&(i.only===void 0||X.typedArray(i.only,X.string))&&(i.triggerKind===void 0||i.triggerKind===Dl.Invoked||i.triggerKind===Dl.Automatic)}$(n,"is"),t.is=n})(wy||(wy={}));var $y;(function(t){function e(o,i,a){var c={title:o},f=!0;return typeof i=="string"?(f=!1,c.kind=i):rs.is(i)?c.command=i:c.edit=i,f&&a!==void 0&&(c.kind=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return i&&X.string(i.title)&&(i.diagnostics===void 0||X.typedArray(i.diagnostics,Cl.is))&&(i.kind===void 0||X.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||rs.is(i.command))&&(i.isPreferred===void 0||X.boolean(i.isPreferred))&&(i.edit===void 0||zp.is(i.edit))}$(n,"is"),t.is=n})($y||($y={}));var Cy;(function(t){function e(o,i){var a={range:o};return X.defined(i)&&(a.data=i),a}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.command)||rs.is(i.command))}$(n,"is"),t.is=n})(Cy||(Cy={}));var Ay;(function(t){function e(o,i){return{tabSize:o,insertSpaces:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&X.uinteger(i.tabSize)&&X.boolean(i.insertSpaces)}$(n,"is"),t.is=n})(Ay||(Ay={}));var Sy;(function(t){function e(o,i,a){return{range:o,target:i,data:a}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(i.range)&&(X.undefined(i.target)||X.string(i.target))}$(n,"is"),t.is=n})(Sy||(Sy={}));var Ty;(function(t){function e(o,i){return{range:o,parent:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&kt.is(i.range)&&(i.parent===void 0||t.is(i.parent))}$(n,"is"),t.is=n})(Ty||(Ty={}));var Dy;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Dy||(Dy={}));var Ny;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ny||(Ny={}));var Oy;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}$(e,"is"),t.is=e})(Oy||(Oy={}));var Iy;(function(t){function e(o,i){return{range:o,text:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.string(i.text)}$(n,"is"),t.is=n})(Iy||(Iy={}));var Ly;(function(t){function e(o,i,a){return{range:o,variableName:i,caseSensitiveLookup:a}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&X.boolean(i.caseSensitiveLookup)&&(X.string(i.variableName)||i.variableName===void 0)}$(n,"is"),t.is=n})(Ly||(Ly={}));var Fy;(function(t){function e(o,i){return{range:o,expression:i}}$(e,"create"),t.create=e;function n(o){var i=o;return i!=null&&kt.is(i.range)&&(X.string(i.expression)||i.expression===void 0)}$(n,"is"),t.is=n})(Fy||(Fy={}));var Ry;(function(t){function e(o,i){return{frameId:o,stoppedLocation:i}}$(e,"create"),t.create=e;function n(o){var i=o;return X.defined(i)&&kt.is(o.stoppedLocation)}$(n,"is"),t.is=n})(Ry||(Ry={}));var Gp;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}$(e,"is"),t.is=e})(Gp||(Gp={}));var Wp;(function(t){function e(o){return{value:o}}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.location===void 0||$l.is(i.location))&&(i.command===void 0||rs.is(i.command))}$(n,"is"),t.is=n})(Wp||(Wp={}));var My;(function(t){function e(o,i,a){var c={position:o,label:i};return a!==void 0&&(c.kind=a),c}$(e,"create"),t.create=e;function n(o){var i=o;return X.objectLiteral(i)&&Qn.is(i.position)&&(X.string(i.label)||X.typedArray(i.label,Wp.is))&&(i.kind===void 0||Gp.is(i.kind))&&i.textEdits===void 0||X.typedArray(i.textEdits,zr.is)&&(i.tooltip===void 0||X.string(i.tooltip)||Ca.is(i.tooltip))&&(i.paddingLeft===void 0||X.boolean(i.paddingLeft))&&(i.paddingRight===void 0||X.boolean(i.paddingRight))}$(n,"is"),t.is=n})(My||(My={}));var qy;(function(t){function e(n){var o=n;return X.objectLiteral(o)&&Vp.is(o.uri)&&X.string(o.name)}$(e,"is"),t.is=e})(qy||(qy={}));var Py;(function(t){function e(a,c,f,d){return new Xse(a,c,f,d)}$(e,"create"),t.create=e;function n(a){var c=a;return!!(X.defined(c)&&X.string(c.uri)&&(X.undefined(c.languageId)||X.string(c.languageId))&&X.uinteger(c.lineCount)&&X.func(c.getText)&&X.func(c.positionAt)&&X.func(c.offsetAt))}$(n,"is"),t.is=n;function o(a,c){for(var f=a.getText(),d=i(c,function(C,S){var N=C.range.start.line-S.range.start.line;return N===0?C.range.start.character-S.range.start.character:N}),h=f.length,v=d.length-1;v>=0;v--){var y=d[v],g=a.offsetAt(y.range.start),E=a.offsetAt(y.range.end);if(E<=h)f=f.substring(0,g)+y.newText+f.substring(E,f.length);else throw new Error("Overlapping edit");h=g}return f}$(o,"applyEdits"),t.applyEdits=o;function i(a,c){if(a.length<=1)return a;var f=a.length/2|0,d=a.slice(0,f),h=a.slice(f);i(d,c),i(h,c);for(var v=0,y=0,g=0;v<d.length&&y<h.length;){var E=c(d[v],h[y]);E<=0?a[g++]=d[v++]:a[g++]=h[y++]}for(;v<d.length;)a[g++]=d[v++];for(;y<h.length;)a[g++]=h[y++];return a}$(i,"mergeSort")})(Py||(Py={}));var Xse=function(){function t(e,n,o,i){this._uri=e,this._languageId=n,this._version=o,this._content=i,this._lineOffsets=void 0}return $(t,"FullTextDocument"),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),o=this.offsetAt(e.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,o=!0,i=0;i<n.length;i++){o&&(e.push(i),o=!1);var a=n.charAt(i);o=a==="\r"||a===`
|
|
213
|
+
`,a==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
214
|
+
`&&i++}o&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),o=0,i=n.length;if(i===0)return Qn.create(0,e);for(;o<i;){var a=Math.floor((o+i)/2);n[a]>e?i=a:o=a+1}var c=o-1;return Qn.create(c,e-n[c])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var o=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(o+e.character,i),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),X;(function(t){var e=Object.prototype.toString;function n(E){return typeof E<"u"}$(n,"defined"),t.defined=n;function o(E){return typeof E>"u"}$(o,"undefined$1"),t.undefined=o;function i(E){return E===!0||E===!1}$(i,"boolean"),t.boolean=i;function a(E){return e.call(E)==="[object String]"}$(a,"string"),t.string=a;function c(E){return e.call(E)==="[object Number]"}$(c,"number"),t.number=c;function f(E,C,S){return e.call(E)==="[object Number]"&&C<=E&&E<=S}$(f,"numberRange"),t.numberRange=f;function d(E){return e.call(E)==="[object Number]"&&-2147483648<=E&&E<=2147483647}$(d,"integer"),t.integer=d;function h(E){return e.call(E)==="[object Number]"&&0<=E&&E<=2147483647}$(h,"uinteger"),t.uinteger=h;function v(E){return e.call(E)==="[object Function]"}$(v,"func"),t.func=v;function y(E){return E!==null&&typeof E=="object"}$(y,"objectLiteral"),t.objectLiteral=y;function g(E,C){return Array.isArray(E)&&E.every(C)}$(g,"typedArray"),t.typedArray=g})(X||(X={}));var By;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(By||(By={}));function vt(t){return{ofRule:t}}$(vt,"opt");function Ge(t,e){return{ofRule:t,isList:!0,separator:e}}$(Ge,"list");function YE(t,e){const n=t.match;return t.match=o=>{let i=!1;return n&&(i=n(o)),i&&e.every(a=>a.match&&!a.match(o))},t}$(YE,"butNot");function sl(t,e){return{style:e,match:n=>n.kind===t}}$(sl,"t");function Fe(t,e){return{style:e||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===t}}$(Fe,"p");const l8e=$(t=>t===" "||t===" "||t===","||t===`
|
|
215
|
+
`||t==="\r"||t==="\uFEFF"||t===" ","isIgnored"),u8e={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},f8e={Document:[Ge("Definition")],Definition(t){switch(t.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return F.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[qt("query"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Mutation:[qt("mutation"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],Subscription:[qt("subscription"),vt(st("def")),vt("VariableDefinitions"),Ge("Directive"),"SelectionSet"],VariableDefinitions:[Fe("("),Ge("VariableDefinition"),Fe(")")],VariableDefinition:["Variable",Fe(":"),"Type",vt("DefaultValue")],Variable:[Fe("$","variable"),st("variable")],DefaultValue:[Fe("="),"Value"],SelectionSet:[Fe("{"),Ge("Selection"),Fe("}")],Selection(t,e){return t.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[st("property"),Fe(":"),st("qualifier"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Field:[st("property"),vt("Arguments"),Ge("Directive"),vt("SelectionSet")],Arguments:[Fe("("),Ge("Argument"),Fe(")")],Argument:[st("attribute"),Fe(":"),"Value"],FragmentSpread:[Fe("..."),st("def"),Ge("Directive")],InlineFragment:[Fe("..."),vt("TypeCondition"),Ge("Directive"),"SelectionSet"],FragmentDefinition:[qt("fragment"),vt(YE(st("def"),[qt("on")])),"TypeCondition",Ge("Directive"),"SelectionSet"],TypeCondition:[qt("on"),"NamedType"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(t.value){case"true":case"false":return"BooleanValue"}return t.value==="null"?"NullValue":"EnumValue"}},NumberValue:[sl("Number","number")],StringValue:[{style:"string",match:t=>t.kind==="String",update(t,e){e.value.startsWith('"""')&&(t.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[sl("Name","builtin")],NullValue:[sl("Name","keyword")],EnumValue:[st("string-2")],ListValue:[Fe("["),Ge("Value"),Fe("]")],ObjectValue:[Fe("{"),Ge("ObjectField"),Fe("}")],ObjectField:[st("attribute"),Fe(":"),"Value"],Type(t){return t.value==="["?"ListType":"NonNullType"},ListType:[Fe("["),"Type",Fe("]"),vt(Fe("!"))],NonNullType:["NamedType",vt(Fe("!"))],NamedType:[JE("atom")],Directive:[Fe("@","meta"),st("meta"),vt("Arguments")],DirectiveDef:[qt("directive"),Fe("@","meta"),st("meta"),vt("ArgumentsDef"),qt("on"),Ge("DirectiveLocation",Fe("|"))],InterfaceDef:[qt("interface"),st("atom"),vt("Implements"),Ge("Directive"),Fe("{"),Ge("FieldDef"),Fe("}")],Implements:[qt("implements"),Ge("NamedType",Fe("&"))],DirectiveLocation:[st("string-2")],SchemaDef:[qt("schema"),Ge("Directive"),Fe("{"),Ge("OperationTypeDef"),Fe("}")],OperationTypeDef:[st("keyword"),Fe(":"),st("atom")],ScalarDef:[qt("scalar"),st("atom"),Ge("Directive")],ObjectTypeDef:[qt("type"),st("atom"),vt("Implements"),Ge("Directive"),Fe("{"),Ge("FieldDef"),Fe("}")],FieldDef:[st("property"),vt("ArgumentsDef"),Fe(":"),"Type",Ge("Directive")],ArgumentsDef:[Fe("("),Ge("InputValueDef"),Fe(")")],InputValueDef:[st("attribute"),Fe(":"),"Type",vt("DefaultValue"),Ge("Directive")],UnionDef:[qt("union"),st("atom"),Ge("Directive"),Fe("="),Ge("UnionMember",Fe("|"))],UnionMember:["NamedType"],EnumDef:[qt("enum"),st("atom"),Ge("Directive"),Fe("{"),Ge("EnumValueDef"),Fe("}")],EnumValueDef:[st("string-2"),Ge("Directive")],InputDef:[qt("input"),st("atom"),Ge("Directive"),Fe("{"),Ge("InputValueDef"),Fe("}")],ExtendDef:[qt("extend"),"ObjectTypeDef"]};function qt(t){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===t}}$(qt,"word");function st(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.name=n.value}}}$(st,"name");function JE(t){return{style:t,match:e=>e.kind==="Name",update(e,n){var o;!((o=e.prevState)===null||o===void 0)&&o.prevState&&(e.name=n.value,e.prevState.prevState.type=n.value)}}}$(JE,"type");const Kse={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},p8e=Object.assign(Object.assign({},F),Kse);var du={exports:{}};function sh(t,e){if(t!=null)return t;var n=new Error(e!==void 0?e:"Got unexpected "+t);throw n.framesToPop=1,n}$(sh,"nullthrows");du.exports=sh;du.exports.default=sh;Object.defineProperty(du.exports,"__esModule",{value:!0});var Vy=Bb(du.exports);const eae=$((t,e)=>{if(!e)return[];const n=new Map,o=new Set;pn(t,{FragmentDefinition(c){n.set(c.name.value,!0)},FragmentSpread(c){o.has(c.name.value)||o.add(c.name.value)}});const i=new Set;o.forEach(c=>{!n.has(c)&&e.has(c)&&i.add(Vy(e.get(c)))});const a=[];return i.forEach(c=>{pn(c,{FragmentSpread(f){!o.has(f.name.value)&&e.get(f.name.value)&&(i.add(Vy(e.get(f.name.value))),o.add(f.name.value))}}),n.has(c.name.value)||a.push(c)}),a},"getFragmentDependenciesForAST");function ZE(t,e){const n=Object.create(null);return e.definitions.forEach(o=>{if(o.kind==="OperationDefinition"){const i=o.variableDefinitions;i&&i.forEach(({variable:a,type:c})=>{const f=nn(t,c);f?n[a.name.value]=f:c.kind===F.NAMED_TYPE&&c.name.value==="Float"&&(n[a.name.value]=ud)})}}),n}$(ZE,"collectVariables");function XE(t,e){const n=e?ZE(e,t):void 0,o=[];return pn(t,{OperationDefinition(i){o.push(i)}}),{variableToType:n,operations:o}}$(XE,"getOperationASTFacts");function KE(t,e){if(e)try{const n=Xn(e);return Object.assign(Object.assign({},XE(n,t)),{documentAST:n})}catch{return}}$(KE,"getOperationFacts");/*!
|
|
216
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
217
|
+
*
|
|
218
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
219
|
+
* Released under the MIT License.
|
|
220
|
+
*/var tae=$(function(e){return typeof e=="object"?e===null:typeof e!="function"},"isPrimitive");/*!
|
|
221
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
222
|
+
*
|
|
223
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
224
|
+
* Released under the MIT License.
|
|
225
|
+
*/var nae=$(function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1},"isObject");/*!
|
|
226
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
227
|
+
*
|
|
228
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
229
|
+
* Released under the MIT License.
|
|
230
|
+
*/var rae=nae;function Qp(t){return rae(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}$(Qp,"isObjectObject");var oae=$(function(e){var n,o;return!(Qp(e)===!1||(n=e.constructor,typeof n!="function")||(o=n.prototype,Qp(o)===!1)||o.hasOwnProperty("isPrototypeOf")===!1)},"isPlainObject");/*!
|
|
231
|
+
* set-value <https://github.com/jonschlinkert/set-value>
|
|
232
|
+
*
|
|
233
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
234
|
+
* Released under the MIT License.
|
|
235
|
+
*/const{deleteProperty:iae}=Reflect,sae=tae,jy=oae,Uy=$(t=>typeof t=="object"&&t!==null||typeof t=="function","isObject"),aae=$(t=>t==="__proto__"||t==="constructor"||t==="prototype","isUnsafeKey"),ah=$(t=>{if(!sae(t))throw new TypeError("Object keys must be strings or symbols");if(aae(t))throw new Error(`Cannot set unsafe key: "${t}"`)},"validateKey"),cae=$(t=>Array.isArray(t)?t.flat().map(String).join(","):t,"toStringKey"),lae=$((t,e)=>{if(typeof t!="string"||!e)return t;let n=t+";";return e.arrays!==void 0&&(n+=`arrays=${e.arrays};`),e.separator!==void 0&&(n+=`separator=${e.separator};`),e.split!==void 0&&(n+=`split=${e.split};`),e.merge!==void 0&&(n+=`merge=${e.merge};`),e.preservePaths!==void 0&&(n+=`preservePaths=${e.preservePaths};`),n},"createMemoKey"),uae=$((t,e,n)=>{const o=cae(e?lae(t,e):t);ah(o);const i=ei.cache.get(o)||n();return ei.cache.set(o,i),i},"memoize"),fae=$((t,e={})=>{const n=e.separator||".",o=n==="/"?!1:e.preservePaths;if(typeof t=="string"&&o!==!1&&/\//.test(t))return[t];const i=[];let a="";const c=$(f=>{let d;f.trim()!==""&&Number.isInteger(d=Number(f))?i.push(d):i.push(f)},"push");for(let f=0;f<t.length;f++){const d=t[f];if(d==="\\"){a+=t[++f];continue}if(d===n){c(a),a="";continue}a+=d}return a&&c(a),i},"splitString"),e_=$((t,e)=>e&&typeof e.split=="function"?e.split(t):typeof t=="symbol"?[t]:Array.isArray(t)?t:uae(t,e,()=>fae(t,e)),"split"),pae=$((t,e,n,o)=>{if(ah(e),n===void 0)iae(t,e);else if(o&&o.merge){const i=o.merge==="function"?o.merge:Object.assign;i&&jy(t[e])&&jy(n)?t[e]=i(t[e],n):t[e]=n}else t[e]=n;return t},"assignProp"),ei=$((t,e,n,o)=>{if(!e||!Uy(t))return t;const i=e_(e,o);let a=t;for(let c=0;c<i.length;c++){const f=i[c],d=i[c+1];if(ah(f),d===void 0){pae(a,f,n,o);break}if(typeof d=="number"&&!Array.isArray(a[f])){a=a[f]=[];continue}Uy(a[f])||(a[f]={}),a=a[f]}return t},"setValue");ei.split=e_;ei.cache=new Map;ei.clear=()=>{ei.cache=new Map};var dae=ei,hae=Object.defineProperty,mae=$((t,e)=>hae(t,"name",{value:e,configurable:!0}),"__name$e");const ch=xo("HistoryContext");function hu(t){var e;const n=$o(),o=ie.useRef(new QE(n||new xl(null),t.maxHistoryLength||vae)),[i,a]=ie.useState(((e=o.current)==null?void 0:e.queries)||[]),[c,f]=ie.useState((n==null?void 0:n.get(Qc))==="true"||!1),d=ie.useCallback(({query:N,variables:D,headers:T,operationName:O})=>{var V;(V=o.current)==null||V.updateHistory(N,D,T,O),a(o.current.queries)},[]),h=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.editLabel(N,D,T,O,V,Y),a(o.current.queries)},[]),{onToggle:v}=t,y=ie.useCallback(()=>{v==null||v(!1),n==null||n.set(Qc,JSON.stringify(!1)),f(!1)},[v,n]),g=ie.useCallback(()=>{v==null||v(!0),n==null||n.set(Qc,JSON.stringify(!0)),f(!0)},[v,n]),E=ie.useCallback(()=>{f(N=>{const D=!N;return v==null||v(D),n==null||n.set(Qc,JSON.stringify(D)),D})},[v,n]),C=ie.useCallback(({query:N,variables:D,headers:T,operationName:O,label:V,favorite:Y})=>{o.current.toggleFavorite(N,D,T,O,V,Y),a(o.current.queries)},[]),S=ie.useMemo(()=>({addToHistory:d,editLabel:h,hide:y,isVisible:c,items:i,show:g,toggle:E,toggleFavorite:C}),[d,h,y,c,i,g,E,C]);return Qr(ch.Provider,{value:S,children:t.children})}$(hu,"HistoryContextProvider");mae(hu,"HistoryContextProvider");const Ha=wo(ch),vae=20,Qc="historyPaneOpen";var gae=Object.defineProperty,yae=$((t,e)=>gae(t,"name",{value:e,configurable:!0}),"__name$d");function Ga(){const{headerEditor:t,queryEditor:e,variableEditor:n}=on({nonNull:!0,caller:Ga});return o=>{var i,a,c;e==null||e.setValue((i=o.query)!=null?i:""),n==null||n.setValue((a=o.variables)!=null?a:""),t==null||t.setValue((c=o.headers)!=null?c:"")}}$(Ga,"useSelectHistoryItem");yae(Ga,"useSelectHistoryItem");var bae=Object.defineProperty,Nl=$((t,e)=>bae(t,"name",{value:e,configurable:!0}),"__name$c");const lh=xo("ExecutionContext");function os(t){const{externalFragments:e,headerEditor:n,queryEditor:o,responseEditor:i,shouldPersistHeaders:a,variableEditor:c,updateActiveTabValues:f}=on({nonNull:!0,caller:os}),d=Ha(),h=ni({caller:os}),[v,y]=ie.useState(!1),[g,E]=ie.useState(null),C=ie.useRef(0),S=ie.useCallback(()=>{g==null||g.unsubscribe(),y(!1),E(null)},[g]),{fetcher:N}=t,D=ie.useCallback(async()=>{var O,V,Y;if(!o||!i)return;if(g){S();return}const P=Nl(R=>{i.setValue(R),f({response:R})},"setResponse");C.current+=1;const U=C.current;let K=h()||o.getValue();const G=c==null?void 0:c.getValue();let Q;try{Q=Ol({json:G,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(R){P(R instanceof Error?R.message:`${R}`);return}const oe=n==null?void 0:n.getValue();let _e;try{_e=Ol({json:oe,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(R){P(R instanceof Error?R.message:`${R}`);return}if(e){const R=o.documentAST?eae(o.documentAST,e):[];R.length>0&&(K+=`
|
|
236
|
+
`+R.map(x=>Je(x)).join(`
|
|
237
|
+
`))}P(""),y(!0);const H=(V=(O=t.operationName)!=null?O:o.operationName)!=null?V:void 0;d==null||d.addToHistory({query:K,variables:G,headers:oe,operationName:H});try{let R={data:{}};const x=Nl(te=>{if(U!==C.current)return;let pe=Array.isArray(te)?te:!1;if(!pe&&typeof te=="object"&&te!==null&&"hasNext"in te&&(pe=[te]),pe){const $e={data:R.data},Me=[...(R==null?void 0:R.errors)||[],...pe.map(Z=>Z.errors).flat().filter(Boolean)];Me.length&&($e.errors=Me);for(const Z of pe){const fe=Z,{path:de,data:ge,errors:ye}=fe,he=oC(fe,["path","data","errors"]);if(de){if(!ge)throw new Error(`Expected part to contain a data property, but got ${Z}`);dae($e.data,de,ge,{merge:!0})}else ge&&($e.data=Z.data);R=vn(vn({},$e),he)}y(!1),P(kl(R))}else{const $e=kl(te);y(!1),P($e)}},"handleResponse"),j=N({query:K,variables:Q,operationName:H},{headers:_e??void 0,shouldPersistHeaders:a,documentAST:(Y=o.documentAST)!=null?Y:void 0}),J=await Promise.resolve(j);if(eh(J))E(J.subscribe({next(te){x(te)},error(te){y(!1),te&&P(Yo(te)),E(null)},complete(){y(!1),E(null)}}));else if(th(J)){E({unsubscribe:()=>{var te,pe;return(pe=(te=J[Symbol.asyncIterator]()).return)==null?void 0:pe.call(te)}});try{for await(const te of J)x(te);y(!1),E(null)}catch(te){y(!1),P(Yo(te)),E(null)}}else x(J)}catch(R){y(!1),P(Yo(R)),E(null)}},[h,e,N,n,d,t.operationName,o,i,a,S,g,f,c]),T=ie.useMemo(()=>{var O;return{isFetching:v,operationName:(O=t.operationName)!=null?O:null,run:D,stop:S}},[v,t.operationName,D,S]);return Qr(lh.Provider,{value:T,children:t.children})}$(os,"ExecutionContextProvider");Nl(os,"ExecutionContextProvider");const ms=wo(lh);function Ol({json:t,errorMessageParse:e,errorMessageType:n}){let o;try{o=t&&t.trim()!==""?JSON.parse(t):void 0}catch(a){throw new Error(`${e}: ${a instanceof Error?a.message:a}.`)}const i=typeof o=="object"&&o!==null&&!Array.isArray(o);if(o!==void 0&&!i)throw new Error(n);return o}$(Ol,"tryParseJsonObject");Nl(Ol,"tryParseJsonObject");var Eae=$(function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],o=0;o<t.rangeCount;o++)n.push(t.getRangeAt(o));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},"toggleSelection"),_ae=Eae,zy={"text/plain":"Text","text/html":"Url",default:"Text"},kae="Copy to clipboard: #{key}, Enter";function t_(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}$(t_,"format");function n_(t,e){var n,o,i,a,c,f,d=!1;e||(e={}),n=e.debug||!1;try{i=_ae(),a=document.createRange(),c=document.getSelection(),f=document.createElement("span"),f.textContent=t,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(v){if(v.stopPropagation(),e.format)if(v.preventDefault(),typeof v.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=zy[e.format]||zy.default;window.clipboardData.setData(y,t)}else v.clipboardData.clearData(),v.clipboardData.setData(e.format,t);e.onCopy&&(v.preventDefault(),e.onCopy(v.clipboardData))}),document.body.appendChild(f),a.selectNodeContents(f),c.addRange(a);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(v){n&&console.error("unable to copy using execCommand: ",v),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),d=!0}catch(y){n&&console.error("unable to copy using clipboardData: ",y),n&&console.error("falling back to prompt"),o=t_("message"in e?e.message:kae),window.prompt(o,t)}}finally{c&&(typeof c.removeRange=="function"?c.removeRange(a):c.removeAllRanges()),f&&document.body.removeChild(f),i()}return d}$(n_,"copy");var xae=n_,wae=Object.defineProperty,Aa=$((t,e)=>wae(t,"name",{value:e,configurable:!0}),"__name$b");const uh=xo("SchemaContext");function Wa(t){const{initialHeaders:e,headerEditor:n}=on({nonNull:!0,caller:Wa}),[o,i]=ie.useState(),[a,c]=ie.useState(!1),[f,d]=ie.useState(null),h=ie.useRef(0);ie.useEffect(()=>{i(fl(t.schema)||t.schema===null||t.schema===void 0?t.schema:void 0),h.current++},[t.schema]);const v=ie.useRef(e);ie.useEffect(()=>{n&&(v.current=n.getValue())});const{introspectionQuery:y,introspectionQueryName:g,introspectionQuerySansSubscriptions:E}=fh({inputValueDeprecation:t.inputValueDeprecation,introspectionQueryName:t.introspectionQueryName,schemaDescription:t.schemaDescription}),{fetcher:C,onSchemaChange:S}=t,N=ie.useCallback(()=>{if(fl(t.schema)||t.schema===null)return;const O=++h.current;i(void 0);const V=t.schema;async function Y(){if(V)return V;const P=ph(v.current);if(!P.isValidJSON){d("Introspection failed as headers are invalid.");return}const U=P.headers?{headers:P.headers}:{},K=qp(C({query:y,operationName:g},U));if(!Mp(K)){d("Fetcher did not return a Promise for introspection.");return}c(!0);let G=await K;if(typeof G!="object"||G===null||!("data"in G)){const oe=qp(C({query:E,operationName:g},U));if(!Mp(oe))throw new Error("Fetcher did not return a Promise for introspection.");G=await oe}if(c(!1),G!=null&&G.data&&"__schema"in G.data)return G.data;const Q=typeof G=="string"?G:kl(G);d(Q)}$(Y,"fetchIntrospectionData"),Aa(Y,"fetchIntrospectionData"),Y().then(P=>{if(!(O!==h.current||!P))try{const U=$b(P);i(U),S==null||S(U)}catch(U){d(Yo(U))}}).catch(P=>{O===h.current&&(d(Yo(P)),c(!1))})},[C,g,y,E,S,t.schema]);ie.useEffect(()=>{N()},[N]),ie.useEffect(()=>{function O(V){V.keyCode===82&&V.shiftKey&&V.ctrlKey&&N()}return $(O,"triggerIntrospection"),Aa(O,"triggerIntrospection"),window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)});const D=ie.useMemo(()=>!o||t.dangerouslyAssumeSchemaIsValid?[]:Yl(o),[o,t.dangerouslyAssumeSchemaIsValid]),T=ie.useMemo(()=>({fetchError:f,introspect:N,isFetching:a,schema:o,validationErrors:D}),[f,N,a,o,D]);return Qr(uh.Provider,{value:T,children:t.children})}$(Wa,"SchemaContextProvider");Aa(Wa,"SchemaContextProvider");const Bn=wo(uh);function fh({inputValueDeprecation:t,introspectionQueryName:e,schemaDescription:n}){return ie.useMemo(()=>{const o=e||"IntrospectionQuery";let i=qd({inputValueDeprecation:t,schemaDescription:n});e&&(i=i.replace("query IntrospectionQuery",`query ${o}`));const a=i.replace("subscriptionType { name }","");return{introspectionQueryName:o,introspectionQuery:i,introspectionQuerySansSubscriptions:a}},[t,e,n])}$(fh,"useIntrospectionQuery");Aa(fh,"useIntrospectionQuery");function ph(t){let e=null,n=!0;try{t&&(e=JSON.parse(t))}catch{n=!1}return{headers:e,isValidJSON:n}}$(ph,"parseHeaderString");Aa(ph,"parseHeaderString");var $ae=Object.defineProperty,Cae=$((t,e)=>$ae(t,"name",{value:e,configurable:!0}),"__name$a");const Hy={name:"Schema",title:"Documentation Explorer"},dh=xo("ExplorerContext");function Qa(t){var e,n;const{isFetching:o}=Bn({nonNull:!0,caller:Qa}),i=$o(),[a,c]=ie.useState((n=(e=t.isVisible)!=null?e:(i==null?void 0:i.get(Kf))==="true")!=null?n:!1),[f,d]=ie.useState([Hy]),{onToggleVisibility:h}=t,v=ie.useRef(!0);ie.useEffect(()=>{v.current?v.current=!1:t.isVisible!==void 0&&c(t.isVisible)},[t.isVisible]);const y=ie.useCallback(()=>{h==null||h(!1),i==null||i.set(Kf,"false"),c(!1)},[h,i]),g=ie.useCallback(T=>{d(O=>O[O.length-1].def===T.def?O:[...O,T])},[]),E=ie.useCallback(()=>{d(T=>T.length>1?T.slice(0,-1):T)},[]),C=ie.useCallback(()=>{d(T=>T.length===1?T:[Hy])},[]),S=ie.useCallback(()=>{h==null||h(!0),i==null||i.set(Kf,"true"),c(!0)},[h,i]),N=ie.useCallback(T=>{d(O=>{const V=O[O.length-1];return[...O.slice(0,-1),Ur(vn({},V),{search:T})]})},[]);ie.useEffect(()=>{o&&C()},[o,C]);const D=ie.useMemo(()=>({explorerNavStack:f,hide:y,isVisible:a,push:g,pop:E,reset:C,show:S,showSearch:N}),[y,a,f,g,E,C,S,N]);return Qr(dh.Provider,{value:D,children:t.children})}$(Qa,"ExplorerContextProvider");Cae(Qa,"ExplorerContextProvider");const $r=wo(dh),Kf="docExplorerOpen";var Aae=Object.defineProperty,Sae=$((t,e)=>Aae(t,"name",{value:e,configurable:!0}),"__name$9");function ti(t,e){let n;return function(...o){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,e(...o)},t)}}$(ti,"debounce");Sae(ti,"debounce");var Tae=Object.defineProperty,er=$((t,e)=>Tae(t,"name",{value:e,configurable:!0}),"__name$8");function ji(t,e){ie.useEffect(()=>{t&&typeof e=="string"&&e!==t.getValue()&&t.setValue(e)},[t,e])}$(ji,"useSynchronizeValue");er(ji,"useSynchronizeValue");function vs(t,e,n){ie.useEffect(()=>{t&&t.setOption(e,n)},[t,e,n])}$(vs,"useSynchronizeOption");er(vs,"useSynchronizeOption");function mu(t,e,n,o,i){const{updateActiveTabValues:a}=on({nonNull:!0,caller:i}),c=$o();ie.useEffect(()=>{if(!t)return;const f=ti(500,v=>{!c||n===null||c.set(n,v)}),d=ti(100,v=>{a({[o]:v})}),h=er((v,y)=>{if(!y)return;const g=v.getValue();f(g),d(g),e==null||e(g)},"handleChange");return t.on("change",h),()=>t.off("change",h)},[e,t,c,n,o,a])}$(mu,"useChangeHandler");er(mu,"useChangeHandler");function Ya(t,e){const{schema:n}=Bn({nonNull:!0,caller:e}),o=$r();ie.useEffect(()=>{if(!t)return;const i=er((a,c)=>{Ua(a,c,n,o)},"handleCompletion");return t.on("hasCompletion",i),()=>t.off("hasCompletion",i)},[t,o,n])}$(Ya,"useCompletion");er(Ya,"useCompletion");function Nn(t,e,n){ie.useEffect(()=>{if(t){for(const o of e)t.removeKeyMap(o);if(n){const o={};for(const i of e)o[i]=()=>n();t.addKeyMap(o)}}},[t,e,n])}$(Nn,"useKeyMap");er(Nn,"useKeyMap");function gs({caller:t,onCopyQuery:e}={}){const{queryEditor:n}=on({nonNull:!0,caller:t||gs});return ie.useCallback(()=>{if(!n)return;const o=n.getValue();xae(o),e==null||e(o)},[n,e])}$(gs,"useCopyQuery");er(gs,"useCopyQuery");function Yr({caller:t}={}){const{queryEditor:e}=on({nonNull:!0,caller:t||Yr}),{schema:n}=Bn({nonNull:!0,caller:Yr});return ie.useCallback(()=>{const o=e==null?void 0:e.documentAST,i=e==null?void 0:e.getValue();!o||!i||e.setValue(Je(HE(o,n)))},[e,n])}$(Yr,"useMergeQuery");er(Yr,"useMergeQuery");function Co({caller:t}={}){const{queryEditor:e,headerEditor:n,variableEditor:o}=on({nonNull:!0,caller:t||Co});return ie.useCallback(()=>{if(o){const i=o.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&o.setValue(a)}catch{}}if(n){const i=n.getValue();try{const a=JSON.stringify(JSON.parse(i),null,2);a!==i&&n.setValue(a)}catch{}}if(e){const i=e.getValue(),a=Je(Xn(i));a!==i&&e.setValue(a)}},[e,o,n])}$(Co,"usePrettifyEditors");er(Co,"usePrettifyEditors");function ni({getDefaultFieldNames:t,caller:e}={}){const{schema:n}=Bn({nonNull:!0,caller:e||ni}),{queryEditor:o}=on({nonNull:!0,caller:e||ni});return ie.useCallback(()=>{if(!o)return;const i=o.getValue(),{insertions:a,result:c}=PE(n,i,t);return a&&a.length>0&&o.operation(()=>{const f=o.getCursor(),d=o.indexFromPos(f);o.setValue(c||"");let h=0;const v=a.map(({index:g,string:E})=>o.markText(o.posFromIndex(g+h),o.posFromIndex(g+(h+=E.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>v.forEach(g=>g.clear()),7e3);let y=d;a.forEach(({index:g,string:E})=>{g<d&&(y+=E.length)}),o.setCursor(o.posFromIndex(y))}),c},[t,o,n])}$(ni,"useAutoCompleteLeafs");er(ni,"useAutoCompleteLeafs");var Dae=Object.defineProperty,Nae=$((t,e)=>Dae(t,"name",{value:e,configurable:!0}),"__name$7");function Br({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialHeaders:i,headerEditor:a,setHeaderEditor:c,shouldPersistHeaders:f}=on({nonNull:!0,caller:Br}),d=ms(),h=Yr({caller:Br}),v=Co({caller:Br}),y=ie.useRef(null);return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./javascript.es-Bt0QmNDU.js"),__vite__mapDeps([13,0,1,2]),import.meta.url).then(function(E){return E.j})]).then(E=>{if(!g)return;const C=y.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),c(S)}),()=>{g=!1}},[t,i,o,c]),vs(a,"keyMap",e),mu(a,n,f?r_:null,"headers",Br),Ya(a,Br),Nn(a,["Cmd-Enter","Ctrl-Enter"],d==null?void 0:d.run),Nn(a,["Shift-Ctrl-P"],v),Nn(a,["Shift-Ctrl-M"],h),y}$(Br,"useHeaderEditor");Nae(Br,"useHeaderEditor");const r_="headers";var Oae=Object.defineProperty,Iae=$((t,e)=>Oae(t,"name",{value:e,configurable:!0}),"__name$6");const Lae=Array.from({length:11},(t,e)=>String.fromCharCode(8192+e)).concat(["\u2028","\u2029"," "," "]),Fae=new RegExp("["+Lae.join("")+"]","g");function hh(t){return t.replace(Fae," ")}$(hh,"normalizeWhitespace");Iae(hh,"normalizeWhitespace");var Rae=Object.defineProperty,Ja=$((t,e)=>Rae(t,"name",{value:e,configurable:!0}),"__name$5");function vr({editorTheme:t=au,keyMap:e=cu,onClickReference:n,onCopyQuery:o,onEdit:i,readOnly:a=!1}={}){const{schema:c}=Bn({nonNull:!0,caller:vr}),{externalFragments:f,initialQuery:d,queryEditor:h,setOperationName:v,setQueryEditor:y,validationRules:g,variableEditor:E,updateActiveTabValues:C}=on({nonNull:!0,caller:vr}),S=ms(),N=$o(),D=$r(),T=gs({caller:vr,onCopyQuery:o}),O=Yr({caller:vr}),V=Co({caller:vr}),Y=ie.useRef(null),P=ie.useRef(),U=ie.useRef(()=>{});ie.useEffect(()=>{U.current=Q=>{D&&(D.show(),Q&&Q.kind==="Type"?D.push({name:Q.type.name,def:Q.type}):Q.kind==="Field"?D.push({name:Q.field.name,def:Q.field}):Q.kind==="Argument"&&Q.field?D.push({name:Q.field.name,def:Q.field}):Q.kind==="EnumValue"&&Q.type&&D.push({name:Q.type.name,def:Q.type}),n==null||n(Q))}},[D,n]),ie.useEffect(()=>{let Q=!0;return ui([Xe(()=>import("./comment.es-DcJgW-0Z.js"),__vite__mapDeps([14,0,1,2]),import.meta.url).then(function(oe){return oe.c}),Xe(()=>import("./search.es-ktV_4nJp.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(oe){return oe.s}),Xe(()=>import("./hint.es-CG2lL-pn.js"),__vite__mapDeps([16,0,1,2,3,17,18,19]),import.meta.url),Xe(()=>import("./lint.es-BcV0qHVh.js"),__vite__mapDeps([20,0,1,2,17,18]),import.meta.url),Xe(()=>import("./info.es-CqlQtF1J.js"),__vite__mapDeps([21,0,1,2,22,19,23,24]),import.meta.url),Xe(()=>import("./jump.es-CzKPCQ7C.js"),__vite__mapDeps([25,0,1,2,22,19,23]),import.meta.url),Xe(()=>import("./mode.es-BKxduziR.js"),__vite__mapDeps([26,0,1,2,18]),import.meta.url)]).then(oe=>{if(!Q)return;P.current=oe;const _e=Y.current;if(!_e)return;const H=oe(_e,{value:d,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:a?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:_e,externalFragments:void 0},info:{schema:void 0,renderDescription:R=>Rp.render(R),onClick:R=>{U.current(R)}},jump:{schema:void 0,onClick:R=>{U.current(R)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Ur(vn({},lu),{"Cmd-S"(){},"Ctrl-S"(){}})});H.addKeyMap({"Cmd-Space"(){H.showHint({completeSingle:!0,container:_e})},"Ctrl-Space"(){H.showHint({completeSingle:!0,container:_e})},"Alt-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Space"(){H.showHint({completeSingle:!0,container:_e})},"Shift-Alt-Space"(){H.showHint({completeSingle:!0,container:_e})}}),H.on("keyup",(R,x)=>{Mae.test(x.key)&&R.execCommand("autocomplete")}),H.on("beforeChange",(R,x)=>{var j;if(x.origin==="paste"){const J=x.text.map(hh);(j=x.update)==null||j.call(x,x.from,x.to,J)}}),H.documentAST=null,H.operationName=null,H.operations=null,H.variableToType=null,y(H)}),()=>{Q=!1}},[t,d,a,y]),vs(h,"keyMap",e),ie.useEffect(()=>{if(!h)return;function Q(_e){var H,R,x,j,J;const te=KE(c,_e.getValue()),pe=GE((H=_e.operations)!=null?H:void 0,(R=_e.operationName)!=null?R:void 0,te==null?void 0:te.operations);return _e.documentAST=(x=te==null?void 0:te.documentAST)!=null?x:null,_e.operationName=pe??null,_e.operations=(j=te==null?void 0:te.operations)!=null?j:null,E&&(E.state.lint.linterOptions.variableToType=te==null?void 0:te.variableToType,E.options.lint.variableToType=te==null?void 0:te.variableToType,E.options.hintOptions.variableToType=te==null?void 0:te.variableToType,(J=P.current)==null||J.signal(E,"change",E)),te?Ur(vn({},te),{operationName:pe}):null}$(Q,"getAndUpdateOperationFacts"),Ja(Q,"getAndUpdateOperationFacts");const oe=ti(100,_e=>{var H;const R=_e.getValue();N==null||N.set(o_,R);const x=_e.operationName,j=Q(_e);(j==null?void 0:j.operationName)!==void 0&&(N==null||N.set(qae,j.operationName)),i==null||i(R,j==null?void 0:j.documentAST),j!=null&&j.operationName&&x!==j.operationName&&v(j.operationName),C({query:R,operationName:(H=j==null?void 0:j.operationName)!=null?H:null})});return Q(h),h.on("change",oe),()=>h.off("change",oe)},[i,h,c,v,N,E,C]),mh(h,c??null,P),vh(h,g??null,P),gh(h,f,P),Ya(h,vr);const K=S==null?void 0:S.run,G=ie.useCallback(()=>{var Q;if(!K||!h||!h.operations||!h.hasFocus()){K==null||K();return}const oe=h.indexFromPos(h.getCursor());let _e;for(const H of h.operations)H.loc&&H.loc.start<=oe&&H.loc.end>=oe&&(_e=(Q=H.name)==null?void 0:Q.value);_e&&_e!==h.operationName&&v(_e),K()},[h,K,v]);return Nn(h,["Cmd-Enter","Ctrl-Enter"],G),Nn(h,["Shift-Ctrl-C"],T),Nn(h,["Shift-Ctrl-P","Shift-Ctrl-F"],V),Nn(h,["Shift-Ctrl-M"],O),Y}$(vr,"useQueryEditor");Ja(vr,"useQueryEditor");function mh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.schema!==e;t.state.lint.linterOptions.schema=e,t.options.lint.schema=e,t.options.hintOptions.schema=e,t.options.info.schema=e,t.options.jump.schema=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(mh,"useSynchronizeSchema");Ja(mh,"useSynchronizeSchema");function vh(t,e,n){ie.useEffect(()=>{if(!t)return;const o=t.options.lint.validationRules!==e;t.state.lint.linterOptions.validationRules=e,t.options.lint.validationRules=e,o&&n.current&&n.current.signal(t,"change",t)},[t,e,n])}$(vh,"useSynchronizeValidationRules");Ja(vh,"useSynchronizeValidationRules");function gh(t,e,n){const o=ie.useMemo(()=>[...e.values()],[e]);ie.useEffect(()=>{if(!t)return;const i=t.options.lint.externalFragments!==o;t.state.lint.linterOptions.externalFragments=o,t.options.lint.externalFragments=o,t.options.hintOptions.externalFragments=o,i&&n.current&&n.current.signal(t,"change",t)},[t,o,n])}$(gh,"useSynchronizeExternalFragments");Ja(gh,"useSynchronizeExternalFragments");const Mae=/^[a-zA-Z0-9_@(]$/,o_="query",qae="operationName";var Pae=Object.defineProperty,rn=$((t,e)=>Pae(t,"name",{value:e,configurable:!0}),"__name$4");function yh({headers:t,query:e,variables:n,storage:o}){const i=o==null?void 0:o.get(Yp);try{if(!i)throw new Error("Storage for tabs is empty");const a=JSON.parse(i);if(bh(a)){const c=is({query:e,variables:n,headers:t});let f=-1;for(let d=0;d<a.tabs.length;d++){const h=a.tabs[d];h.hash=is({query:h.query,variables:h.variables,headers:h.headers}),h.hash===c&&(f=d)}if(f>=0)a.activeTabIndex=f;else{const d=e?bu(e):null;a.tabs.push({id:yu(),hash:c,title:d||$h,query:e,variables:n,headers:t,operationName:d,response:null})}return a}else throw new Error("Storage for tabs is invalid")}catch{return o==null||o.set(Yp,""),{activeTabIndex:0,tabs:[vu()]}}}$(yh,"getDefaultTabState");rn(yh,"getDefaultTabState");function bh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&_h(t,"activeTabIndex")&&"tabs"in t&&Array.isArray(t.tabs)&&t.tabs.every(Eh)}$(bh,"isTabsState");rn(bh,"isTabsState");function Eh(t){return t&&typeof t=="object"&&!Array.isArray(t)&&Il(t,"id")&&Il(t,"title")&&Uo(t,"query")&&Uo(t,"variables")&&Uo(t,"headers")&&Uo(t,"operationName")&&Uo(t,"response")}$(Eh,"isTabState");rn(Eh,"isTabState");function _h(t,e){return e in t&&typeof t[e]=="number"}$(_h,"hasNumberKey");rn(_h,"hasNumberKey");function Il(t,e){return e in t&&typeof t[e]=="string"}$(Il,"hasStringKey");rn(Il,"hasStringKey");function Uo(t,e){return e in t&&(typeof t[e]=="string"||t[e]===null)}$(Uo,"hasStringOrNullKey");rn(Uo,"hasStringOrNullKey");function kh({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(i=>{var a,c,f,d,h;const v=(a=t==null?void 0:t.getValue())!=null?a:null,y=(c=e==null?void 0:e.getValue())!=null?c:null,g=(f=n==null?void 0:n.getValue())!=null?f:null,E=(d=t==null?void 0:t.operationName)!=null?d:null,C=(h=o==null?void 0:o.getValue())!=null?h:null;return gu(i,{query:v,variables:y,headers:g,response:C,operationName:E})},[t,e,n,o])}$(kh,"useSynchronizeActiveTabValues");rn(kh,"useSynchronizeActiveTabValues");function xh({storage:t,shouldPersistHeaders:e}){const n=ie.useMemo(()=>ti(500,o=>{t==null||t.set(Yp,o)}),[t]);return ie.useCallback(o=>{n(JSON.stringify(o,(i,a)=>i==="hash"||i==="response"||!e&&i==="headers"?null:a))},[e,n])}$(xh,"useStoreTabs");rn(xh,"useStoreTabs");function wh({queryEditor:t,variableEditor:e,headerEditor:n,responseEditor:o}){return ie.useCallback(({query:i,variables:a,headers:c,response:f})=>{t==null||t.setValue(i??""),e==null||e.setValue(a??""),n==null||n.setValue(c??""),o==null||o.setValue(f??"")},[n,t,o,e])}$(wh,"useSetEditorValues");rn(wh,"useSetEditorValues");function vu(){return{id:yu(),hash:is({query:null,variables:null,headers:null}),title:$h,query:null,variables:null,headers:null,operationName:null,response:null}}$(vu,"emptyTab");rn(vu,"emptyTab");function gu(t,e){return Ur(vn({},t),{tabs:t.tabs.map((n,o)=>{if(o!==t.activeTabIndex)return n;const i=vn(vn({},n),e);return Ur(vn({},i),{hash:is(i),title:i.operationName||(i.query?bu(i.query):void 0)||$h})})})}$(gu,"setPropertiesInActiveTab");rn(gu,"setPropertiesInActiveTab");function yu(){const t=rn(()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),"s4");return`${t()}${t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}$(yu,"guid");rn(yu,"guid");function is(t){var e,n,o;return[(e=t.query)!=null?e:"",(n=t.variables)!=null?n:"",(o=t.headers)!=null?o:""].join("|")}$(is,"hashFromTabContents");rn(is,"hashFromTabContents");function bu(t){var e;const o=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(t);return(e=o==null?void 0:o[2])!=null?e:null}$(bu,"fuzzyExtractOperationName");rn(bu,"fuzzyExtractOperationName");const $h="<untitled>",Yp="tabState";var Bae=Object.defineProperty,Vae=$((t,e)=>Bae(t,"name",{value:e,configurable:!0}),"__name$3");function Vr({editorTheme:t=au,keyMap:e=cu,onEdit:n,readOnly:o=!1}={}){const{initialVariables:i,variableEditor:a,setVariableEditor:c}=on({nonNull:!0,caller:Vr}),f=ms(),d=Yr({caller:Vr}),h=Co({caller:Vr}),v=ie.useRef(null),y=ie.useRef();return ie.useEffect(()=>{let g=!0;return ui([Xe(()=>import("./hint.es2-OvG49YiM.js"),__vite__mapDeps([27,0,1,2,23]),import.meta.url),Xe(()=>import("./lint.es2-B6j7CgmH.js"),__vite__mapDeps([28,0,1,2]),import.meta.url),Xe(()=>import("./mode.es3-C6VF1A5H.js"),__vite__mapDeps([29,0,1,2,18]),import.meta.url)]).then(E=>{if(!g)return;y.current=E;const C=v.current;if(!C)return;const S=E(C,{value:i,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:t,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:C,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:lu});S.addKeyMap({"Cmd-Space"(){S.showHint({completeSingle:!1,container:C})},"Ctrl-Space"(){S.showHint({completeSingle:!1,container:C})},"Alt-Space"(){S.showHint({completeSingle:!1,container:C})},"Shift-Space"(){S.showHint({completeSingle:!1,container:C})}}),S.on("keyup",(N,D)=>{const T=D.keyCode;(T>=65&&T<=90||!D.shiftKey&&T>=48&&T<=57||D.shiftKey&&T===189||D.shiftKey&&T===222)&&N.execCommand("autocomplete")}),c(S)}),()=>{g=!1}},[t,i,o,c]),vs(a,"keyMap",e),mu(a,n,i_,"variables",Vr),Ya(a,Vr),Nn(a,["Cmd-Enter","Ctrl-Enter"],f==null?void 0:f.run),Nn(a,["Shift-Ctrl-P"],h),Nn(a,["Shift-Ctrl-M"],d),v}$(Vr,"useVariableEditor");Vae(Vr,"useVariableEditor");const i_="variables";var jae=Object.defineProperty,Uae=$((t,e)=>jae(t,"name",{value:e,configurable:!0}),"__name$2");const Ch=xo("EditorContext");function Eu(t){var e,n,o,i,a;const c=$o(),[f,d]=ie.useState(null),[h,v]=ie.useState(null),[y,g]=ie.useState(null),[E,C]=ie.useState(null);ji(f,t.headers),ji(h,t.query),ji(y,t.response),ji(E,t.variables);const[S]=ie.useState(()=>{var J,te,pe,$e,Me,Z;return{headers:(te=(J=t.headers)!=null?J:c==null?void 0:c.get(r_))!=null?te:null,query:($e=(pe=t.query)!=null?pe:c==null?void 0:c.get(o_))!=null?$e:null,variables:(Z=(Me=t.variables)!=null?Me:c==null?void 0:c.get(i_))!=null?Z:null}}),[N,D]=ie.useState(()=>yh(Ur(vn({},S),{storage:c}))),T=xh({storage:c,shouldPersistHeaders:t.shouldPersistHeaders}),O=kh({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),V=wh({queryEditor:h,variableEditor:E,headerEditor:f,responseEditor:y}),{onTabChange:Y}=t,P=ie.useCallback(()=>{D(J=>{const te=O(J),pe={tabs:[...te.tabs,vu()],activeTabIndex:te.tabs.length};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),U=ie.useCallback(J=>{D(te=>{const pe=Ur(vn({},O(te)),{activeTabIndex:J});return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T,O]),K=ie.useCallback(J=>{D(te=>{const pe={tabs:te.tabs.filter(($e,Me)=>J!==Me),activeTabIndex:Math.max(te.activeTabIndex-1,0)};return T(pe),V(pe.tabs[pe.activeTabIndex]),Y==null||Y(pe),pe})},[Y,V,T]),G=ie.useCallback(J=>{D(te=>{const pe=gu(te,J);return T(pe),Y==null||Y(pe),pe})},[Y,T]),{onEditOperationName:Q}=t,oe=ie.useCallback(J=>{h&&(h.operationName=J,G({operationName:J}),Q==null||Q(J))},[Q,h,G]),_e=N.activeTabIndex>0?"":(e=t.defaultQuery)!=null?e:zae,H=ie.useRef({initialHeaders:(n=S.headers)!=null?n:"",initialQuery:(o=S.query)!=null?o:_e,initialResponse:(i=t.response)!=null?i:"",initialVariables:(a=S.variables)!=null?a:""}),R=ie.useMemo(()=>{const J=new Map;if(Array.isArray(t.externalFragments))for(const te of t.externalFragments)J.set(te.name.value,te);else if(typeof t.externalFragments=="string")pn(Xn(t.externalFragments,{}),{FragmentDefinition(te){J.set(te.name.value,te)}});else if(t.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return J},[t.externalFragments]),x=ie.useMemo(()=>t.validationRules||[],[t.validationRules]),j=ie.useMemo(()=>Ur(vn(Ur(vn({},N),{addTab:P,changeTab:U,closeTab:K,updateActiveTabValues:G,headerEditor:f,queryEditor:h,responseEditor:y,variableEditor:E,setHeaderEditor:d,setQueryEditor:v,setResponseEditor:g,setVariableEditor:C,setOperationName:oe}),H.current),{externalFragments:R,validationRules:x,shouldPersistHeaders:t.shouldPersistHeaders||!1}),[N,P,U,K,G,f,h,y,E,oe,R,x,t.shouldPersistHeaders]);return Qr(Ch.Provider,{value:j,children:t.children})}$(Eu,"EditorContextProvider");Uae(Eu,"EditorContextProvider");const on=wo(Ch),zae=`# Welcome to GraphiQL
|
|
238
|
+
#
|
|
239
|
+
# GraphiQL is an in-browser tool for writing, validating, and
|
|
240
|
+
# testing GraphQL queries.
|
|
241
|
+
#
|
|
242
|
+
# Type queries into this side of the screen, and you will see intelligent
|
|
243
|
+
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
244
|
+
# validation errors highlighted within the text.
|
|
245
|
+
#
|
|
246
|
+
# GraphQL queries typically start with a "{" character. Lines that start
|
|
247
|
+
# with a # are ignored.
|
|
248
|
+
#
|
|
249
|
+
# An example GraphQL query might look like:
|
|
250
|
+
#
|
|
251
|
+
# {
|
|
252
|
+
# field(arg: "value") {
|
|
253
|
+
# subField
|
|
254
|
+
# }
|
|
255
|
+
# }
|
|
256
|
+
#
|
|
257
|
+
# Keyboard shortcuts:
|
|
258
|
+
#
|
|
259
|
+
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
|
|
260
|
+
#
|
|
261
|
+
# Merge Query: Shift-Ctrl-M (or press the merge button above)
|
|
262
|
+
#
|
|
263
|
+
# Run Query: Ctrl-Enter (or press the play button above)
|
|
264
|
+
#
|
|
265
|
+
# Auto Complete: Ctrl-Space (or just start typing)
|
|
266
|
+
#
|
|
267
|
+
|
|
268
|
+
`;var Hae=Object.defineProperty,Gae=$((t,e)=>Hae(t,"name",{value:e,configurable:!0}),"__name$1");function ss({ResponseTooltip:t,editorTheme:e=au,keyMap:n=cu}={}){const{fetchError:o,validationErrors:i}=Bn({nonNull:!0,caller:ss}),{initialResponse:a,responseEditor:c,setResponseEditor:f}=on({nonNull:!0,caller:ss}),d=ie.useRef(null),h=ie.useRef(t);return ie.useEffect(()=>{h.current=t},[t]),ie.useEffect(()=>{let v=!0;return ui([Xe(()=>import("./foldgutter.es-C7HbANvK.js"),__vite__mapDeps([7,0,1,2]),import.meta.url).then(function(y){return y.f}),Xe(()=>import("./brace-fold.es-D4FLzACD.js"),__vite__mapDeps([6,0,1,2]),import.meta.url).then(function(y){return y.b}),Xe(()=>import("./dialog.es-9xd4UJpC.js"),__vite__mapDeps([11,0,1,2]),import.meta.url).then(function(y){return y.d}),Xe(()=>import("./search.es-ktV_4nJp.js"),__vite__mapDeps([15,0,1,2,9,11]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./searchcursor.es-DsxyEmEP.js"),__vite__mapDeps([9,0,1,2]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./jump-to-line.es-ByoMAIJw.js"),__vite__mapDeps([10,0,1,2,11]),import.meta.url).then(function(y){return y.j}),Xe(()=>import("./sublime.es-CRbP9ior.js"),__vite__mapDeps([12,0,1,2,9,4]),import.meta.url).then(function(y){return y.s}),Xe(()=>import("./mode.es2-oYgJRmpO.js"),__vite__mapDeps([30,0,1,2,18]),import.meta.url),Xe(()=>import("./info-addon.es-CmaDZTYX.js"),__vite__mapDeps([24,0,1,2]),import.meta.url)],{useCommonAddons:!1}).then(y=>{if(!v)return;const g=document.createElement("div");y.registerHelper("info","graphql-results",(S,N,D,T)=>{const O=[],V=h.current;return V&&O.push(Qr(V,{pos:T})),ns.shouldRender(S)&&O.push(Qr(ns,{token:S},"image-preview")),O.length?(zv.render(O,g),g):(zv.unmountComponentAtNode(g),null)});const E=d.current;if(!E)return;const C=y(E,{value:a,lineWrapping:!0,readOnly:!0,theme:e,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:lu});f(C)}),()=>{v=!1}},[e,a,f]),vs(c,"keyMap",n),ie.useEffect(()=>{o&&(c==null||c.setValue(o)),i.length>0&&(c==null||c.setValue(Yo(i)))},[c,o,i]),d}$(ss,"useResponseEditor");Gae(ss,"useResponseEditor");var Wae=Object.defineProperty,aa=$((t,e)=>Wae(t,"name",{value:e,configurable:!0}),"__name");function Wi({defaultSizeRelation:t=Qae,direction:e,initiallyHidden:n,onHiddenElementChange:o,sizeThresholdFirst:i=100,sizeThresholdSecond:a=100,storageKey:c}){const f=$o(),d=ie.useCallback(ti(500,T=>{f&&c&&f.set(c,T)}),[f,c]),[h,v]=ie.useState(()=>{const T=f&&c?f.get(c):null;return T===Yc||n==="first"?"first":T===Jc||n==="second"?"second":null}),y=ie.useCallback(T=>{v(T),o==null||o(T)},[o]),g=ie.useRef(null),E=ie.useRef(null),C=ie.useRef(null),S=ie.useRef(`${t}`);ie.useLayoutEffect(()=>{const T=f&&c&&f.get(c)||S.current,O=e==="horizontal"?"row":"column";g.current&&(g.current.style.display="flex",g.current.style.flexDirection=O,g.current.style.flex=T===Yc||T===Jc?S.current:T),C.current&&(C.current.style.display="flex",C.current.style.flexDirection=O,C.current.style.flex="1"),E.current&&(E.current.style.display="flex",E.current.style.flexDirection=O)},[e,f,c]);const N=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.left="-1000px",O.style.position="absolute",O.style.opacity="0",O.style.height="500px",O.style.width="500px",g.current)){const V=parseFloat(g.current.style.flex);(!Number.isFinite(V)||V<1)&&(g.current.style.flex="1"),g.current.style.flex}},[]),D=ie.useCallback(T=>{const O=T==="first"?g.current:C.current;if(O&&(O.style.width="",O.style.height="",O.style.opacity="",O.style.position="",O.style.left="",g.current&&f&&c)){const V=f==null?void 0:f.get(c);V&&V!==Yc&&V!==Jc&&(g.current.style.flex=V)}},[f,c]);return ie.useLayoutEffect(()=>{h==="first"?N("first"):D("first"),h==="second"?N("second"):D("second")},[h,N,D]),ie.useEffect(()=>{if(!E.current||!g.current||!C.current)return;const T=E.current,O=g.current,V=O.parentElement,Y=e==="horizontal"?"clientX":"clientY",P=e==="horizontal"?"left":"top",U=e==="horizontal"?"right":"bottom",K=e==="horizontal"?"clientWidth":"clientHeight";function G(oe){oe.preventDefault();const _e=oe[Y]-T.getBoundingClientRect()[P];function H(x){if(x.buttons===0)return R();const j=x[Y]-V.getBoundingClientRect()[P]-_e,J=V.getBoundingClientRect()[U]-x[Y]+_e-T[K];if(j<i)y("first"),d(Yc);else if(J<a)y("second"),d(Jc);else{y(null);const te=`${j/J}`;O.style.flex=te,d(te)}}$(H,"handleMouseMove"),aa(H,"handleMouseMove");function R(){document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",R)}$(R,"handleMouseUp"),aa(R,"handleMouseUp"),document.addEventListener("mousemove",H),document.addEventListener("mouseup",R)}$(G,"handleMouseDown"),aa(G,"handleMouseDown"),T.addEventListener("mousedown",G);function Q(){g.current&&(g.current.style.flex=S.current),d(S.current),y(null)}return $(Q,"reset"),aa(Q,"reset"),T.addEventListener("dblclick",Q),()=>{T.removeEventListener("mousedown",G),T.removeEventListener("dblclick",Q)}},[e,y,i,a,d]),ie.useMemo(()=>({dragBarRef:E,hiddenElement:h,firstRef:g,setHiddenElement:y,secondRef:C}),[h,y])}$(Wi,"useDragResize");aa(Wi,"useDragResize");const Qae=1,Yc="hide-first",Jc="hide-second",Yae=Object.freeze(Object.defineProperty({__proto__:null,EditorContext:Ch,EditorContextProvider:Eu,ExecutionContext:lh,ExecutionContextProvider:os,ExplorerContext:dh,ExplorerContextProvider:Qa,HistoryContext:ch,HistoryContextProvider:hu,ImagePreview:ns,SchemaContext:uh,SchemaContextProvider:Wa,StorageContext:ih,StorageContextProvider:pu,onHasCompletion:Ua,useAutoCompleteLeafs:ni,useCopyQuery:gs,useDragResize:Wi,useEditorContext:on,useExecutionContext:ms,useExplorerContext:$r,useHeaderEditor:Br,useHistoryContext:Ha,useMergeQuery:Yr,usePrettifyEditors:Co,useQueryEditor:vr,useResponseEditor:ss,useSchemaContext:Bn,useSelectHistoryItem:Ga,useStorageContext:$o,useVariableEditor:Vr},Symbol.toStringTag,{value:"Module"}));var Gy=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],c;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a};function Jae(){var t=on({nonNull:!0}),e=t.queryEditor,n=t.setOperationName,o=ms({nonNull:!0}),i=o.isFetching,a=o.operationName,c=o.run,f=o.stop,d=Gy(ie.useState(!1),2),h=d[0],v=d[1],y=Gy(ie.useState(null),2),g=y[0],E=y[1],C=(e==null?void 0:e.operations)||[],S=C.length>1&&typeof a!="string";return L.createElement("div",{className:"execute-button-wrap"},L.createElement("button",{type:"button",className:"execute-button",onMouseDown:!i&&S&&!h?function(N){var D=!0,T=N.currentTarget;E(null),v(!0);var O=function(V){var Y;if(D&&V.target===T)D=!1;else{document.removeEventListener("mouseup",O),O=null;var P=V.currentTarget&&((Y=T.parentNode)===null||Y===void 0?void 0:Y.compareDocumentPosition(V.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;P||v(!1)}};document.addEventListener("mouseup",O)}:void 0,onClick:i||!S?function(){i?f():c()}:void 0,title:"Execute Query (Ctrl-Enter)"},L.createElement("svg",{width:"34",height:"34"},i?L.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):L.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),S&&h?L.createElement("ul",{className:"execute-options"},C.map(function(N,D){var T=N.name?N.name.value:"<Unnamed ".concat(N.operation,">");return L.createElement("li",{key:"".concat(T,"-").concat(D),className:N===g?"selected":void 0,onMouseOver:function(){return E(N)},onMouseOut:function(){return E(null)},onMouseUp:function(){var O;v(!1);var V=(O=N.name)===null||O===void 0?void 0:O.value;e&&V&&V!==e.operationName&&n(V),c()}},T)})):null)}var Zae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ho=function(t){Zae(e,t);function e(n){var o=t.call(this,n)||this;return o.handleClick=function(){try{o.props.onClick(),o.setState({error:null})}catch(i){if(i instanceof Error){o.setState({error:i});return}throw i}},o.state={error:null},o}return e.prototype.render=function(){var n=this.state.error;return L.createElement("button",{type:"button",className:"toolbar-button"+(n?" error":""),onClick:this.handleClick,title:n?n.message:this.props.title,"aria-invalid":n?"true":"false"},this.props.label)},e}(L.Component);function s_(t){var e=t.children;return L.createElement("div",{className:"toolbar-button-group"},e)}var Xae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),a_=function(t){Xae(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){Jp(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o=this.state.visible;return L.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Jp,ref:function(i){i&&(n._node=i)},title:this.props.title},this.props.label,L.createElement("svg",{width:"14",height:"8"},L.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),L.createElement("ul",{className:"toolbar-menu-items"+(o?" open":"")},this.props.children))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(n.preventDefault(),this.setState({visible:!1}),this._release())},e}(L.Component),c_=function(t){var e=t.onSelect,n=t.title,o=t.label;return L.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:Jp,onMouseUp:e,title:n},o)};function Jp(t){t.preventDefault()}function Ah(t){var e=vr(t);return L.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:e})}var Kae=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function Sh(t){var e=t.active,n=Kae(t,["active"]),o=Vr(n);return L.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}var ece=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n};function l_(t){var e=t.active,n=ece(t,["active"]),o=Br(n);return L.createElement("div",{className:"codemirrorWrap",style:{position:e?"relative":"absolute",visibility:e?"visible":"hidden"},ref:o})}function u_(t){var e=ss(t);return L.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e})}function In(t){var e=$r({nonNull:!0,caller:In}).push;if(!t.type)return null;var n=t.type;return Ie(n)?L.createElement(L.Fragment,null,L.createElement(In,{type:n.ofType}),"!"):at(n)?L.createElement(L.Fragment,null,"[",L.createElement(In,{type:n.ofType}),"]"):L.createElement("a",{className:"type-name",onClick:function(o){o.preventDefault(),e({name:n.name,def:n})},href:"#"},n.name)}var tce=function(t){return t?Je(t):""};function f_(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?L.createElement("span",null," = ",L.createElement("span",{className:"arg-default-value"},tce(jr(e.defaultValue,e.type)))):null}function Ll(t){var e=t.arg,n=t.showDefaultValue;return L.createElement("span",{className:"arg"},L.createElement("span",{className:"arg-name"},e.name),": ",L.createElement(In,{type:e.type}),n!==!1&&L.createElement(f_,{field:e}))}function nce(t){var e=t.directive;return L.createElement("span",{className:"doc-category-item",id:e.name.value},"@",e.name.value)}var tt={};const rce="Á",oce="á",ice="Ă",sce="ă",ace="∾",cce="∿",lce="∾̳",uce="Â",fce="â",pce="´",dce="А",hce="а",mce="Æ",vce="æ",gce="",yce="𝔄",bce="𝔞",Ece="À",_ce="à",kce="ℵ",xce="ℵ",wce="Α",$ce="α",Cce="Ā",Ace="ā",Sce="⨿",Tce="&",Dce="&",Nce="⩕",Oce="⩓",Ice="∧",Lce="⩜",Fce="⩘",Rce="⩚",Mce="∠",qce="⦤",Pce="∠",Bce="⦨",Vce="⦩",jce="⦪",Uce="⦫",zce="⦬",Hce="⦭",Gce="⦮",Wce="⦯",Qce="∡",Yce="∟",Jce="⊾",Zce="⦝",Xce="∢",Kce="Å",ele="⍼",tle="Ą",nle="ą",rle="𝔸",ole="𝕒",ile="⩯",sle="≈",ale="⩰",cle="≊",lle="≋",ule="'",fle="",ple="≈",dle="≊",hle="Å",mle="å",vle="𝒜",gle="𝒶",yle="≔",ble="*",Ele="≈",_le="≍",kle="Ã",xle="ã",wle="Ä",$le="ä",Cle="∳",Ale="⨑",Sle="≌",Tle="϶",Dle="‵",Nle="∽",Ole="⋍",Ile="∖",Lle="⫧",Fle="⊽",Rle="⌅",Mle="⌆",qle="⌅",Ple="⎵",Ble="⎶",Vle="≌",jle="Б",Ule="б",zle="„",Hle="∵",Gle="∵",Wle="∵",Qle="⦰",Yle="϶",Jle="ℬ",Zle="ℬ",Xle="Β",Kle="β",eue="ℶ",tue="≬",nue="𝔅",rue="𝔟",oue="⋂",iue="◯",sue="⋃",aue="⨀",cue="⨁",lue="⨂",uue="⨆",fue="★",pue="▽",due="△",hue="⨄",mue="⋁",vue="⋀",gue="⤍",yue="⧫",bue="▪",Eue="▴",_ue="▾",kue="◂",xue="▸",wue="␣",$ue="▒",Cue="░",Aue="▓",Sue="█",Tue="=⃥",Due="≡⃥",Nue="⫭",Oue="⌐",Iue="𝔹",Lue="𝕓",Fue="⊥",Rue="⊥",Mue="⋈",que="⧉",Pue="┐",Bue="╕",Vue="╖",jue="╗",Uue="┌",zue="╒",Hue="╓",Gue="╔",Wue="─",Que="═",Yue="┬",Jue="╤",Zue="╥",Xue="╦",Kue="┴",efe="╧",tfe="╨",nfe="╩",rfe="⊟",ofe="⊞",ife="⊠",sfe="┘",afe="╛",cfe="╜",lfe="╝",ufe="└",ffe="╘",pfe="╙",dfe="╚",hfe="│",mfe="║",vfe="┼",gfe="╪",yfe="╫",bfe="╬",Efe="┤",_fe="╡",kfe="╢",xfe="╣",wfe="├",$fe="╞",Cfe="╟",Afe="╠",Sfe="‵",Tfe="˘",Dfe="˘",Nfe="¦",Ofe="𝒷",Ife="ℬ",Lfe="⁏",Ffe="∽",Rfe="⋍",Mfe="⧅",qfe="\\",Pfe="⟈",Bfe="•",Vfe="•",jfe="≎",Ufe="⪮",zfe="≏",Hfe="≎",Gfe="≏",Wfe="Ć",Qfe="ć",Yfe="⩄",Jfe="⩉",Zfe="⩋",Xfe="∩",Kfe="⋒",epe="⩇",tpe="⩀",npe="ⅅ",rpe="∩︀",ope="⁁",ipe="ˇ",spe="ℭ",ape="⩍",cpe="Č",lpe="č",upe="Ç",fpe="ç",ppe="Ĉ",dpe="ĉ",hpe="∰",mpe="⩌",vpe="⩐",gpe="Ċ",ype="ċ",bpe="¸",Epe="¸",_pe="⦲",kpe="¢",xpe="·",wpe="·",$pe="𝔠",Cpe="ℭ",Ape="Ч",Spe="ч",Tpe="✓",Dpe="✓",Npe="Χ",Ope="χ",Ipe="ˆ",Lpe="≗",Fpe="↺",Rpe="↻",Mpe="⊛",qpe="⊚",Ppe="⊝",Bpe="⊙",Vpe="®",jpe="Ⓢ",Upe="⊖",zpe="⊕",Hpe="⊗",Gpe="○",Wpe="⧃",Qpe="≗",Ype="⨐",Jpe="⫯",Zpe="⧂",Xpe="∲",Kpe="”",ede="’",tde="♣",nde="♣",rde=":",ode="∷",ide="⩴",sde="≔",ade="≔",cde=",",lde="@",ude="∁",fde="∘",pde="∁",dde="ℂ",hde="≅",mde="⩭",vde="≡",gde="∮",yde="∯",bde="∮",Ede="𝕔",_de="ℂ",kde="∐",xde="∐",wde="©",$de="©",Cde="℗",Ade="∳",Sde="↵",Tde="✗",Dde="⨯",Nde="𝒞",Ode="𝒸",Ide="⫏",Lde="⫑",Fde="⫐",Rde="⫒",Mde="⋯",qde="⤸",Pde="⤵",Bde="⋞",Vde="⋟",jde="↶",Ude="⤽",zde="⩈",Hde="⩆",Gde="≍",Wde="∪",Qde="⋓",Yde="⩊",Jde="⊍",Zde="⩅",Xde="∪︀",Kde="↷",ehe="⤼",the="⋞",nhe="⋟",rhe="⋎",ohe="⋏",ihe="¤",she="↶",ahe="↷",che="⋎",lhe="⋏",uhe="∲",fhe="∱",phe="⌭",dhe="†",hhe="‡",mhe="ℸ",vhe="↓",ghe="↡",yhe="⇓",bhe="‐",Ehe="⫤",_he="⊣",khe="⤏",xhe="˝",whe="Ď",$he="ď",Che="Д",Ahe="д",She="‡",The="⇊",Dhe="ⅅ",Nhe="ⅆ",Ohe="⤑",Ihe="⩷",Lhe="°",Fhe="∇",Rhe="Δ",Mhe="δ",qhe="⦱",Phe="⥿",Bhe="𝔇",Vhe="𝔡",jhe="⥥",Uhe="⇃",zhe="⇂",Hhe="´",Ghe="˙",Whe="˝",Qhe="`",Yhe="˜",Jhe="⋄",Zhe="⋄",Xhe="⋄",Khe="♦",eme="♦",tme="¨",nme="ⅆ",rme="ϝ",ome="⋲",ime="÷",sme="÷",ame="⋇",cme="⋇",lme="Ђ",ume="ђ",fme="⌞",pme="⌍",dme="$",hme="𝔻",mme="𝕕",vme="¨",gme="˙",yme="⃜",bme="≐",Eme="≑",_me="≐",kme="∸",xme="∔",wme="⊡",$me="⌆",Cme="∯",Ame="¨",Sme="⇓",Tme="⇐",Dme="⇔",Nme="⫤",Ome="⟸",Ime="⟺",Lme="⟹",Fme="⇒",Rme="⊨",Mme="⇑",qme="⇕",Pme="∥",Bme="⤓",Vme="↓",jme="↓",Ume="⇓",zme="⇵",Hme="̑",Gme="⇊",Wme="⇃",Qme="⇂",Yme="⥐",Jme="⥞",Zme="⥖",Xme="↽",Kme="⥟",eve="⥗",tve="⇁",nve="↧",rve="⊤",ove="⤐",ive="⌟",sve="⌌",ave="𝒟",cve="𝒹",lve="Ѕ",uve="ѕ",fve="⧶",pve="Đ",dve="đ",hve="⋱",mve="▿",vve="▾",gve="⇵",yve="⥯",bve="⦦",Eve="Џ",_ve="џ",kve="⟿",xve="É",wve="é",$ve="⩮",Cve="Ě",Ave="ě",Sve="Ê",Tve="ê",Dve="≖",Nve="≕",Ove="Э",Ive="э",Lve="⩷",Fve="Ė",Rve="ė",Mve="≑",qve="ⅇ",Pve="≒",Bve="𝔈",Vve="𝔢",jve="⪚",Uve="È",zve="è",Hve="⪖",Gve="⪘",Wve="⪙",Qve="∈",Yve="⏧",Jve="ℓ",Zve="⪕",Xve="⪗",Kve="Ē",ege="ē",tge="∅",nge="∅",rge="◻",oge="∅",ige="▫",sge=" ",age=" ",cge=" ",lge="Ŋ",uge="ŋ",fge=" ",pge="Ę",dge="ę",hge="𝔼",mge="𝕖",vge="⋕",gge="⧣",yge="⩱",bge="ε",Ege="Ε",_ge="ε",kge="ϵ",xge="≖",wge="≕",$ge="≂",Cge="⪖",Age="⪕",Sge="⩵",Tge="=",Dge="≂",Nge="≟",Oge="⇌",Ige="≡",Lge="⩸",Fge="⧥",Rge="⥱",Mge="≓",qge="ℯ",Pge="ℰ",Bge="≐",Vge="⩳",jge="≂",Uge="Η",zge="η",Hge="Ð",Gge="ð",Wge="Ë",Qge="ë",Yge="€",Jge="!",Zge="∃",Xge="∃",Kge="ℰ",eye="ⅇ",tye="ⅇ",nye="≒",rye="Ф",oye="ф",iye="♀",sye="ffi",aye="ff",cye="ffl",lye="𝔉",uye="𝔣",fye="fi",pye="◼",dye="▪",hye="fj",mye="♭",vye="fl",gye="▱",yye="ƒ",bye="𝔽",Eye="𝕗",_ye="∀",kye="∀",xye="⋔",wye="⫙",$ye="ℱ",Cye="⨍",Aye="½",Sye="⅓",Tye="¼",Dye="⅕",Nye="⅙",Oye="⅛",Iye="⅔",Lye="⅖",Fye="¾",Rye="⅗",Mye="⅜",qye="⅘",Pye="⅚",Bye="⅝",Vye="⅞",jye="⁄",Uye="⌢",zye="𝒻",Hye="ℱ",Gye="ǵ",Wye="Γ",Qye="γ",Yye="Ϝ",Jye="ϝ",Zye="⪆",Xye="Ğ",Kye="ğ",e1e="Ģ",t1e="Ĝ",n1e="ĝ",r1e="Г",o1e="г",i1e="Ġ",s1e="ġ",a1e="≥",c1e="≧",l1e="⪌",u1e="⋛",f1e="≥",p1e="≧",d1e="⩾",h1e="⪩",m1e="⩾",v1e="⪀",g1e="⪂",y1e="⪄",b1e="⋛︀",E1e="⪔",_1e="𝔊",k1e="𝔤",x1e="≫",w1e="⋙",$1e="⋙",C1e="ℷ",A1e="Ѓ",S1e="ѓ",T1e="⪥",D1e="≷",N1e="⪒",O1e="⪤",I1e="⪊",L1e="⪊",F1e="⪈",R1e="≩",M1e="⪈",q1e="≩",P1e="⋧",B1e="𝔾",V1e="𝕘",j1e="`",U1e="≥",z1e="⋛",H1e="≧",G1e="⪢",W1e="≷",Q1e="⩾",Y1e="≳",J1e="𝒢",Z1e="ℊ",X1e="≳",K1e="⪎",e0e="⪐",t0e="⪧",n0e="⩺",r0e=">",o0e=">",i0e="≫",s0e="⋗",a0e="⦕",c0e="⩼",l0e="⪆",u0e="⥸",f0e="⋗",p0e="⋛",d0e="⪌",h0e="≷",m0e="≳",v0e="≩︀",g0e="≩︀",y0e="ˇ",b0e=" ",E0e="½",_0e="ℋ",k0e="Ъ",x0e="ъ",w0e="⥈",$0e="↔",C0e="⇔",A0e="↭",S0e="^",T0e="ℏ",D0e="Ĥ",N0e="ĥ",O0e="♥",I0e="♥",L0e="…",F0e="⊹",R0e="𝔥",M0e="ℌ",q0e="ℋ",P0e="⤥",B0e="⤦",V0e="⇿",j0e="∻",U0e="↩",z0e="↪",H0e="𝕙",G0e="ℍ",W0e="―",Q0e="─",Y0e="𝒽",J0e="ℋ",Z0e="ℏ",X0e="Ħ",K0e="ħ",ebe="≎",tbe="≏",nbe="⁃",rbe="‐",obe="Í",ibe="í",sbe="",abe="Î",cbe="î",lbe="И",ube="и",fbe="İ",pbe="Е",dbe="е",hbe="¡",mbe="⇔",vbe="𝔦",gbe="ℑ",ybe="Ì",bbe="ì",Ebe="ⅈ",_be="⨌",kbe="∭",xbe="⧜",wbe="℩",$be="IJ",Cbe="ij",Abe="Ī",Sbe="ī",Tbe="ℑ",Dbe="ⅈ",Nbe="ℐ",Obe="ℑ",Ibe="ı",Lbe="ℑ",Fbe="⊷",Rbe="Ƶ",Mbe="⇒",qbe="℅",Pbe="∞",Bbe="⧝",Vbe="ı",jbe="⊺",Ube="∫",zbe="∬",Hbe="ℤ",Gbe="∫",Wbe="⊺",Qbe="⋂",Ybe="⨗",Jbe="⨼",Zbe="",Xbe="",Kbe="Ё",eEe="ё",tEe="Į",nEe="į",rEe="𝕀",oEe="𝕚",iEe="Ι",sEe="ι",aEe="⨼",cEe="¿",lEe="𝒾",uEe="ℐ",fEe="∈",pEe="⋵",dEe="⋹",hEe="⋴",mEe="⋳",vEe="∈",gEe="",yEe="Ĩ",bEe="ĩ",EEe="І",_Ee="і",kEe="Ï",xEe="ï",wEe="Ĵ",$Ee="ĵ",CEe="Й",AEe="й",SEe="𝔍",TEe="𝔧",DEe="ȷ",NEe="𝕁",OEe="𝕛",IEe="𝒥",LEe="𝒿",FEe="Ј",REe="ј",MEe="Є",qEe="є",PEe="Κ",BEe="κ",VEe="ϰ",jEe="Ķ",UEe="ķ",zEe="К",HEe="к",GEe="𝔎",WEe="𝔨",QEe="ĸ",YEe="Х",JEe="х",ZEe="Ќ",XEe="ќ",KEe="𝕂",e_e="𝕜",t_e="𝒦",n_e="𝓀",r_e="⇚",o_e="Ĺ",i_e="ĺ",s_e="⦴",a_e="ℒ",c_e="Λ",l_e="λ",u_e="⟨",f_e="⟪",p_e="⦑",d_e="⟨",h_e="⪅",m_e="ℒ",v_e="«",g_e="⇤",y_e="⤟",b_e="←",E_e="↞",__e="⇐",k_e="⤝",x_e="↩",w_e="↫",$_e="⤹",C_e="⥳",A_e="↢",S_e="⤙",T_e="⤛",D_e="⪫",N_e="⪭",O_e="⪭︀",I_e="⤌",L_e="⤎",F_e="❲",R_e="{",M_e="[",q_e="⦋",P_e="⦏",B_e="⦍",V_e="Ľ",j_e="ľ",U_e="Ļ",z_e="ļ",H_e="⌈",G_e="{",W_e="Л",Q_e="л",Y_e="⤶",J_e="“",Z_e="„",X_e="⥧",K_e="⥋",e2e="↲",t2e="≤",n2e="≦",r2e="⟨",o2e="⇤",i2e="←",s2e="←",a2e="⇐",c2e="⇆",l2e="↢",u2e="⌈",f2e="⟦",p2e="⥡",d2e="⥙",h2e="⇃",m2e="⌊",v2e="↽",g2e="↼",y2e="⇇",b2e="↔",E2e="↔",_2e="⇔",k2e="⇆",x2e="⇋",w2e="↭",$2e="⥎",C2e="↤",A2e="⊣",S2e="⥚",T2e="⋋",D2e="⧏",N2e="⊲",O2e="⊴",I2e="⥑",L2e="⥠",F2e="⥘",R2e="↿",M2e="⥒",q2e="↼",P2e="⪋",B2e="⋚",V2e="≤",j2e="≦",U2e="⩽",z2e="⪨",H2e="⩽",G2e="⩿",W2e="⪁",Q2e="⪃",Y2e="⋚︀",J2e="⪓",Z2e="⪅",X2e="⋖",K2e="⋚",eke="⪋",tke="⋚",nke="≦",rke="≶",oke="≶",ike="⪡",ske="≲",ake="⩽",cke="≲",lke="⥼",uke="⌊",fke="𝔏",pke="𝔩",dke="≶",hke="⪑",mke="⥢",vke="↽",gke="↼",yke="⥪",bke="▄",Eke="Љ",_ke="љ",kke="⇇",xke="≪",wke="⋘",$ke="⌞",Cke="⇚",Ake="⥫",Ske="◺",Tke="Ŀ",Dke="ŀ",Nke="⎰",Oke="⎰",Ike="⪉",Lke="⪉",Fke="⪇",Rke="≨",Mke="⪇",qke="≨",Pke="⋦",Bke="⟬",Vke="⇽",jke="⟦",Uke="⟵",zke="⟵",Hke="⟸",Gke="⟷",Wke="⟷",Qke="⟺",Yke="⟼",Jke="⟶",Zke="⟶",Xke="⟹",Kke="↫",exe="↬",txe="⦅",nxe="𝕃",rxe="𝕝",oxe="⨭",ixe="⨴",sxe="∗",axe="_",cxe="↙",lxe="↘",uxe="◊",fxe="◊",pxe="⧫",dxe="(",hxe="⦓",mxe="⇆",vxe="⌟",gxe="⇋",yxe="⥭",bxe="",Exe="⊿",_xe="‹",kxe="𝓁",xxe="ℒ",wxe="↰",$xe="↰",Cxe="≲",Axe="⪍",Sxe="⪏",Txe="[",Dxe="‘",Nxe="‚",Oxe="Ł",Ixe="ł",Lxe="⪦",Fxe="⩹",Rxe="<",Mxe="<",qxe="≪",Pxe="⋖",Bxe="⋋",Vxe="⋉",jxe="⥶",Uxe="⩻",zxe="◃",Hxe="⊴",Gxe="◂",Wxe="⦖",Qxe="⥊",Yxe="⥦",Jxe="≨︀",Zxe="≨︀",Xxe="¯",Kxe="♂",ewe="✠",twe="✠",nwe="↦",rwe="↦",owe="↧",iwe="↤",swe="↥",awe="▮",cwe="⨩",lwe="М",uwe="м",fwe="—",pwe="∺",dwe="∡",hwe=" ",mwe="ℳ",vwe="𝔐",gwe="𝔪",ywe="℧",bwe="µ",Ewe="*",_we="⫰",kwe="∣",xwe="·",wwe="⊟",$we="−",Cwe="∸",Awe="⨪",Swe="∓",Twe="⫛",Dwe="…",Nwe="∓",Owe="⊧",Iwe="𝕄",Lwe="𝕞",Fwe="∓",Rwe="𝓂",Mwe="ℳ",qwe="∾",Pwe="Μ",Bwe="μ",Vwe="⊸",jwe="⊸",Uwe="∇",zwe="Ń",Hwe="ń",Gwe="∠⃒",Wwe="≉",Qwe="⩰̸",Ywe="≋̸",Jwe="ʼn",Zwe="≉",Xwe="♮",Kwe="ℕ",e$e="♮",t$e=" ",n$e="≎̸",r$e="≏̸",o$e="⩃",i$e="Ň",s$e="ň",a$e="Ņ",c$e="ņ",l$e="≇",u$e="⩭̸",f$e="⩂",p$e="Н",d$e="н",h$e="–",m$e="⤤",v$e="↗",g$e="⇗",y$e="↗",b$e="≠",E$e="≐̸",_$e="",k$e="",x$e="",w$e="",$$e="≢",C$e="⤨",A$e="≂̸",S$e="≫",T$e="≪",D$e=`
|
|
269
|
+
`,N$e="∄",O$e="∄",I$e="𝔑",L$e="𝔫",F$e="≧̸",R$e="≱",M$e="≱",q$e="≧̸",P$e="⩾̸",B$e="⩾̸",V$e="⋙̸",j$e="≵",U$e="≫⃒",z$e="≯",H$e="≯",G$e="≫̸",W$e="↮",Q$e="⇎",Y$e="⫲",J$e="∋",Z$e="⋼",X$e="⋺",K$e="∋",eCe="Њ",tCe="њ",nCe="↚",rCe="⇍",oCe="‥",iCe="≦̸",sCe="≰",aCe="↚",cCe="⇍",lCe="↮",uCe="⇎",fCe="≰",pCe="≦̸",dCe="⩽̸",hCe="⩽̸",mCe="≮",vCe="⋘̸",gCe="≴",yCe="≪⃒",bCe="≮",ECe="⋪",_Ce="⋬",kCe="≪̸",xCe="∤",wCe="",$Ce=" ",CCe="𝕟",ACe="ℕ",SCe="⫬",TCe="¬",DCe="≢",NCe="≭",OCe="∦",ICe="∉",LCe="≠",FCe="≂̸",RCe="∄",MCe="≯",qCe="≱",PCe="≧̸",BCe="≫̸",VCe="≹",jCe="⩾̸",UCe="≵",zCe="≎̸",HCe="≏̸",GCe="∉",WCe="⋵̸",QCe="⋹̸",YCe="∉",JCe="⋷",ZCe="⋶",XCe="⧏̸",KCe="⋪",eAe="⋬",tAe="≮",nAe="≰",rAe="≸",oAe="≪̸",iAe="⩽̸",sAe="≴",aAe="⪢̸",cAe="⪡̸",lAe="∌",uAe="∌",fAe="⋾",pAe="⋽",dAe="⊀",hAe="⪯̸",mAe="⋠",vAe="∌",gAe="⧐̸",yAe="⋫",bAe="⋭",EAe="⊏̸",_Ae="⋢",kAe="⊐̸",xAe="⋣",wAe="⊂⃒",$Ae="⊈",CAe="⊁",AAe="⪰̸",SAe="⋡",TAe="≿̸",DAe="⊃⃒",NAe="⊉",OAe="≁",IAe="≄",LAe="≇",FAe="≉",RAe="∤",MAe="∦",qAe="∦",PAe="⫽⃥",BAe="∂̸",VAe="⨔",jAe="⊀",UAe="⋠",zAe="⊀",HAe="⪯̸",GAe="⪯̸",WAe="⤳̸",QAe="↛",YAe="⇏",JAe="↝̸",ZAe="↛",XAe="⇏",KAe="⋫",eSe="⋭",tSe="⊁",nSe="⋡",rSe="⪰̸",oSe="𝒩",iSe="𝓃",sSe="∤",aSe="∦",cSe="≁",lSe="≄",uSe="≄",fSe="∤",pSe="∦",dSe="⋢",hSe="⋣",mSe="⊄",vSe="⫅̸",gSe="⊈",ySe="⊂⃒",bSe="⊈",ESe="⫅̸",_Se="⊁",kSe="⪰̸",xSe="⊅",wSe="⫆̸",$Se="⊉",CSe="⊃⃒",ASe="⊉",SSe="⫆̸",TSe="≹",DSe="Ñ",NSe="ñ",OSe="≸",ISe="⋪",LSe="⋬",FSe="⋫",RSe="⋭",MSe="Ν",qSe="ν",PSe="#",BSe="№",VSe=" ",jSe="≍⃒",USe="⊬",zSe="⊭",HSe="⊮",GSe="⊯",WSe="≥⃒",QSe=">⃒",YSe="⤄",JSe="⧞",ZSe="⤂",XSe="≤⃒",KSe="<⃒",eTe="⊴⃒",tTe="⤃",nTe="⊵⃒",rTe="∼⃒",oTe="⤣",iTe="↖",sTe="⇖",aTe="↖",cTe="⤧",lTe="Ó",uTe="ó",fTe="⊛",pTe="Ô",dTe="ô",hTe="⊚",mTe="О",vTe="о",gTe="⊝",yTe="Ő",bTe="ő",ETe="⨸",_Te="⊙",kTe="⦼",xTe="Œ",wTe="œ",$Te="⦿",CTe="𝔒",ATe="𝔬",STe="˛",TTe="Ò",DTe="ò",NTe="⧁",OTe="⦵",ITe="Ω",LTe="∮",FTe="↺",RTe="⦾",MTe="⦻",qTe="‾",PTe="⧀",BTe="Ō",VTe="ō",jTe="Ω",UTe="ω",zTe="Ο",HTe="ο",GTe="⦶",WTe="⊖",QTe="𝕆",YTe="𝕠",JTe="⦷",ZTe="“",XTe="‘",KTe="⦹",eDe="⊕",tDe="↻",nDe="⩔",rDe="∨",oDe="⩝",iDe="ℴ",sDe="ℴ",aDe="ª",cDe="º",lDe="⊶",uDe="⩖",fDe="⩗",pDe="⩛",dDe="Ⓢ",hDe="𝒪",mDe="ℴ",vDe="Ø",gDe="ø",yDe="⊘",bDe="Õ",EDe="õ",_De="⨶",kDe="⨷",xDe="⊗",wDe="Ö",$De="ö",CDe="⌽",ADe="‾",SDe="⏞",TDe="⎴",DDe="⏜",NDe="¶",ODe="∥",IDe="∥",LDe="⫳",FDe="⫽",RDe="∂",MDe="∂",qDe="П",PDe="п",BDe="%",VDe=".",jDe="‰",UDe="⊥",zDe="‱",HDe="𝔓",GDe="𝔭",WDe="Φ",QDe="φ",YDe="ϕ",JDe="ℳ",ZDe="☎",XDe="Π",KDe="π",eNe="⋔",tNe="ϖ",nNe="ℏ",rNe="ℎ",oNe="ℏ",iNe="⨣",sNe="⊞",aNe="⨢",cNe="+",lNe="∔",uNe="⨥",fNe="⩲",pNe="±",dNe="±",hNe="⨦",mNe="⨧",vNe="±",gNe="ℌ",yNe="⨕",bNe="𝕡",ENe="ℙ",_Ne="£",kNe="⪷",xNe="⪻",wNe="≺",$Ne="≼",CNe="⪷",ANe="≺",SNe="≼",TNe="≺",DNe="⪯",NNe="≼",ONe="≾",INe="⪯",LNe="⪹",FNe="⪵",RNe="⋨",MNe="⪯",qNe="⪳",PNe="≾",BNe="′",VNe="″",jNe="ℙ",UNe="⪹",zNe="⪵",HNe="⋨",GNe="∏",WNe="∏",QNe="⌮",YNe="⌒",JNe="⌓",ZNe="∝",XNe="∝",KNe="∷",eOe="∝",tOe="≾",nOe="⊰",rOe="𝒫",oOe="𝓅",iOe="Ψ",sOe="ψ",aOe=" ",cOe="𝔔",lOe="𝔮",uOe="⨌",fOe="𝕢",pOe="ℚ",dOe="⁗",hOe="𝒬",mOe="𝓆",vOe="ℍ",gOe="⨖",yOe="?",bOe="≟",EOe='"',_Oe='"',kOe="⇛",xOe="∽̱",wOe="Ŕ",$Oe="ŕ",COe="√",AOe="⦳",SOe="⟩",TOe="⟫",DOe="⦒",NOe="⦥",OOe="⟩",IOe="»",LOe="⥵",FOe="⇥",ROe="⤠",MOe="⤳",qOe="→",POe="↠",BOe="⇒",VOe="⤞",jOe="↪",UOe="↬",zOe="⥅",HOe="⥴",GOe="⤖",WOe="↣",QOe="↝",YOe="⤚",JOe="⤜",ZOe="∶",XOe="ℚ",KOe="⤍",eIe="⤏",tIe="⤐",nIe="❳",rIe="}",oIe="]",iIe="⦌",sIe="⦎",aIe="⦐",cIe="Ř",lIe="ř",uIe="Ŗ",fIe="ŗ",pIe="⌉",dIe="}",hIe="Р",mIe="р",vIe="⤷",gIe="⥩",yIe="”",bIe="”",EIe="↳",_Ie="ℜ",kIe="ℛ",xIe="ℜ",wIe="ℝ",$Ie="ℜ",CIe="▭",AIe="®",SIe="®",TIe="∋",DIe="⇋",NIe="⥯",OIe="⥽",IIe="⌋",LIe="𝔯",FIe="ℜ",RIe="⥤",MIe="⇁",qIe="⇀",PIe="⥬",BIe="Ρ",VIe="ρ",jIe="ϱ",UIe="⟩",zIe="⇥",HIe="→",GIe="→",WIe="⇒",QIe="⇄",YIe="↣",JIe="⌉",ZIe="⟧",XIe="⥝",KIe="⥕",eLe="⇂",tLe="⌋",nLe="⇁",rLe="⇀",oLe="⇄",iLe="⇌",sLe="⇉",aLe="↝",cLe="↦",lLe="⊢",uLe="⥛",fLe="⋌",pLe="⧐",dLe="⊳",hLe="⊵",mLe="⥏",vLe="⥜",gLe="⥔",yLe="↾",bLe="⥓",ELe="⇀",_Le="˚",kLe="≓",xLe="⇄",wLe="⇌",$Le="",CLe="⎱",ALe="⎱",SLe="⫮",TLe="⟭",DLe="⇾",NLe="⟧",OLe="⦆",ILe="𝕣",LLe="ℝ",FLe="⨮",RLe="⨵",MLe="⥰",qLe=")",PLe="⦔",BLe="⨒",VLe="⇉",jLe="⇛",ULe="›",zLe="𝓇",HLe="ℛ",GLe="↱",WLe="↱",QLe="]",YLe="’",JLe="’",ZLe="⋌",XLe="⋊",KLe="▹",eFe="⊵",tFe="▸",nFe="⧎",rFe="⧴",oFe="⥨",iFe="℞",sFe="Ś",aFe="ś",cFe="‚",lFe="⪸",uFe="Š",fFe="š",pFe="⪼",dFe="≻",hFe="≽",mFe="⪰",vFe="⪴",gFe="Ş",yFe="ş",bFe="Ŝ",EFe="ŝ",_Fe="⪺",kFe="⪶",xFe="⋩",wFe="⨓",$Fe="≿",CFe="С",AFe="с",SFe="⊡",TFe="⋅",DFe="⩦",NFe="⤥",OFe="↘",IFe="⇘",LFe="↘",FFe="§",RFe=";",MFe="⤩",qFe="∖",PFe="∖",BFe="✶",VFe="𝔖",jFe="𝔰",UFe="⌢",zFe="♯",HFe="Щ",GFe="щ",WFe="Ш",QFe="ш",YFe="↓",JFe="←",ZFe="∣",XFe="∥",KFe="→",eRe="↑",tRe="",nRe="Σ",rRe="σ",oRe="ς",iRe="ς",sRe="∼",aRe="⩪",cRe="≃",lRe="≃",uRe="⪞",fRe="⪠",pRe="⪝",dRe="⪟",hRe="≆",mRe="⨤",vRe="⥲",gRe="←",yRe="∘",bRe="∖",ERe="⨳",_Re="⧤",kRe="∣",xRe="⌣",wRe="⪪",$Re="⪬",CRe="⪬︀",ARe="Ь",SRe="ь",TRe="⌿",DRe="⧄",NRe="/",ORe="𝕊",IRe="𝕤",LRe="♠",FRe="♠",RRe="∥",MRe="⊓",qRe="⊓︀",PRe="⊔",BRe="⊔︀",VRe="√",jRe="⊏",URe="⊑",zRe="⊏",HRe="⊑",GRe="⊐",WRe="⊒",QRe="⊐",YRe="⊒",JRe="□",ZRe="□",XRe="⊓",KRe="⊏",eMe="⊑",tMe="⊐",nMe="⊒",rMe="⊔",oMe="▪",iMe="□",sMe="▪",aMe="→",cMe="𝒮",lMe="𝓈",uMe="∖",fMe="⌣",pMe="⋆",dMe="⋆",hMe="☆",mMe="★",vMe="ϵ",gMe="ϕ",yMe="¯",bMe="⊂",EMe="⋐",_Me="⪽",kMe="⫅",xMe="⊆",wMe="⫃",$Me="⫁",CMe="⫋",AMe="⊊",SMe="⪿",TMe="⥹",DMe="⊂",NMe="⋐",OMe="⊆",IMe="⫅",LMe="⊆",FMe="⊊",RMe="⫋",MMe="⫇",qMe="⫕",PMe="⫓",BMe="⪸",VMe="≻",jMe="≽",UMe="≻",zMe="⪰",HMe="≽",GMe="≿",WMe="⪰",QMe="⪺",YMe="⪶",JMe="⋩",ZMe="≿",XMe="∋",KMe="∑",eqe="∑",tqe="♪",nqe="¹",rqe="²",oqe="³",iqe="⊃",sqe="⋑",aqe="⪾",cqe="⫘",lqe="⫆",uqe="⊇",fqe="⫄",pqe="⊃",dqe="⊇",hqe="⟉",mqe="⫗",vqe="⥻",gqe="⫂",yqe="⫌",bqe="⊋",Eqe="⫀",_qe="⊃",kqe="⋑",xqe="⊇",wqe="⫆",$qe="⊋",Cqe="⫌",Aqe="⫈",Sqe="⫔",Tqe="⫖",Dqe="⤦",Nqe="↙",Oqe="⇙",Iqe="↙",Lqe="⤪",Fqe="ß",Rqe=" ",Mqe="⌖",qqe="Τ",Pqe="τ",Bqe="⎴",Vqe="Ť",jqe="ť",Uqe="Ţ",zqe="ţ",Hqe="Т",Gqe="т",Wqe="⃛",Qqe="⌕",Yqe="𝔗",Jqe="𝔱",Zqe="∴",Xqe="∴",Kqe="∴",ePe="Θ",tPe="θ",nPe="ϑ",rPe="ϑ",oPe="≈",iPe="∼",sPe=" ",aPe=" ",cPe=" ",lPe="≈",uPe="∼",fPe="Þ",pPe="þ",dPe="˜",hPe="∼",mPe="≃",vPe="≅",gPe="≈",yPe="⨱",bPe="⊠",EPe="×",_Pe="⨰",kPe="∭",xPe="⤨",wPe="⌶",$Pe="⫱",CPe="⊤",APe="𝕋",SPe="𝕥",TPe="⫚",DPe="⤩",NPe="‴",OPe="™",IPe="™",LPe="▵",FPe="▿",RPe="◃",MPe="⊴",qPe="≜",PPe="▹",BPe="⊵",VPe="◬",jPe="≜",UPe="⨺",zPe="⃛",HPe="⨹",GPe="⧍",WPe="⨻",QPe="⏢",YPe="𝒯",JPe="𝓉",ZPe="Ц",XPe="ц",KPe="Ћ",e3e="ћ",t3e="Ŧ",n3e="ŧ",r3e="≬",o3e="↞",i3e="↠",s3e="Ú",a3e="ú",c3e="↑",l3e="↟",u3e="⇑",f3e="⥉",p3e="Ў",d3e="ў",h3e="Ŭ",m3e="ŭ",v3e="Û",g3e="û",y3e="У",b3e="у",E3e="⇅",_3e="Ű",k3e="ű",x3e="⥮",w3e="⥾",$3e="𝔘",C3e="𝔲",A3e="Ù",S3e="ù",T3e="⥣",D3e="↿",N3e="↾",O3e="▀",I3e="⌜",L3e="⌜",F3e="⌏",R3e="◸",M3e="Ū",q3e="ū",P3e="¨",B3e="_",V3e="⏟",j3e="⎵",U3e="⏝",z3e="⋃",H3e="⊎",G3e="Ų",W3e="ų",Q3e="𝕌",Y3e="𝕦",J3e="⤒",Z3e="↑",X3e="↑",K3e="⇑",eBe="⇅",tBe="↕",nBe="↕",rBe="⇕",oBe="⥮",iBe="↿",sBe="↾",aBe="⊎",cBe="↖",lBe="↗",uBe="υ",fBe="ϒ",pBe="ϒ",dBe="Υ",hBe="υ",mBe="↥",vBe="⊥",gBe="⇈",yBe="⌝",bBe="⌝",EBe="⌎",_Be="Ů",kBe="ů",xBe="◹",wBe="𝒰",$Be="𝓊",CBe="⋰",ABe="Ũ",SBe="ũ",TBe="▵",DBe="▴",NBe="⇈",OBe="Ü",IBe="ü",LBe="⦧",FBe="⦜",RBe="ϵ",MBe="ϰ",qBe="∅",PBe="ϕ",BBe="ϖ",VBe="∝",jBe="↕",UBe="⇕",zBe="ϱ",HBe="ς",GBe="⊊︀",WBe="⫋︀",QBe="⊋︀",YBe="⫌︀",JBe="ϑ",ZBe="⊲",XBe="⊳",KBe="⫨",e5e="⫫",t5e="⫩",n5e="В",r5e="в",o5e="⊢",i5e="⊨",s5e="⊩",a5e="⊫",c5e="⫦",l5e="⊻",u5e="∨",f5e="⋁",p5e="≚",d5e="⋮",h5e="|",m5e="‖",v5e="|",g5e="‖",y5e="∣",b5e="|",E5e="❘",_5e="≀",k5e=" ",x5e="𝔙",w5e="𝔳",$5e="⊲",C5e="⊂⃒",A5e="⊃⃒",S5e="𝕍",T5e="𝕧",D5e="∝",N5e="⊳",O5e="𝒱",I5e="𝓋",L5e="⫋︀",F5e="⊊︀",R5e="⫌︀",M5e="⊋︀",q5e="⊪",P5e="⦚",B5e="Ŵ",V5e="ŵ",j5e="⩟",U5e="∧",z5e="⋀",H5e="≙",G5e="℘",W5e="𝔚",Q5e="𝔴",Y5e="𝕎",J5e="𝕨",Z5e="℘",X5e="≀",K5e="≀",eVe="𝒲",tVe="𝓌",nVe="⋂",rVe="◯",oVe="⋃",iVe="▽",sVe="𝔛",aVe="𝔵",cVe="⟷",lVe="⟺",uVe="Ξ",fVe="ξ",pVe="⟵",dVe="⟸",hVe="⟼",mVe="⋻",vVe="⨀",gVe="𝕏",yVe="𝕩",bVe="⨁",EVe="⨂",_Ve="⟶",kVe="⟹",xVe="𝒳",wVe="𝓍",$Ve="⨆",CVe="⨄",AVe="△",SVe="⋁",TVe="⋀",DVe="Ý",NVe="ý",OVe="Я",IVe="я",LVe="Ŷ",FVe="ŷ",RVe="Ы",MVe="ы",qVe="¥",PVe="𝔜",BVe="𝔶",VVe="Ї",jVe="ї",UVe="𝕐",zVe="𝕪",HVe="𝒴",GVe="𝓎",WVe="Ю",QVe="ю",YVe="ÿ",JVe="Ÿ",ZVe="Ź",XVe="ź",KVe="Ž",e9e="ž",t9e="З",n9e="з",r9e="Ż",o9e="ż",i9e="ℨ",s9e="",a9e="Ζ",c9e="ζ",l9e="𝔷",u9e="ℨ",f9e="Ж",p9e="ж",d9e="⇝",h9e="𝕫",m9e="ℤ",v9e="𝒵",g9e="𝓏",y9e="",b9e="",E9e={Aacute:rce,aacute:oce,Abreve:ice,abreve:sce,ac:ace,acd:cce,acE:lce,Acirc:uce,acirc:fce,acute:pce,Acy:dce,acy:hce,AElig:mce,aelig:vce,af:gce,Afr:yce,afr:bce,Agrave:Ece,agrave:_ce,alefsym:kce,aleph:xce,Alpha:wce,alpha:$ce,Amacr:Cce,amacr:Ace,amalg:Sce,amp:Tce,AMP:Dce,andand:Nce,And:Oce,and:Ice,andd:Lce,andslope:Fce,andv:Rce,ang:Mce,ange:qce,angle:Pce,angmsdaa:Bce,angmsdab:Vce,angmsdac:jce,angmsdad:Uce,angmsdae:zce,angmsdaf:Hce,angmsdag:Gce,angmsdah:Wce,angmsd:Qce,angrt:Yce,angrtvb:Jce,angrtvbd:Zce,angsph:Xce,angst:Kce,angzarr:ele,Aogon:tle,aogon:nle,Aopf:rle,aopf:ole,apacir:ile,ap:sle,apE:ale,ape:cle,apid:lle,apos:ule,ApplyFunction:fle,approx:ple,approxeq:dle,Aring:hle,aring:mle,Ascr:vle,ascr:gle,Assign:yle,ast:ble,asymp:Ele,asympeq:_le,Atilde:kle,atilde:xle,Auml:wle,auml:$le,awconint:Cle,awint:Ale,backcong:Sle,backepsilon:Tle,backprime:Dle,backsim:Nle,backsimeq:Ole,Backslash:Ile,Barv:Lle,barvee:Fle,barwed:Rle,Barwed:Mle,barwedge:qle,bbrk:Ple,bbrktbrk:Ble,bcong:Vle,Bcy:jle,bcy:Ule,bdquo:zle,becaus:Hle,because:Gle,Because:Wle,bemptyv:Qle,bepsi:Yle,bernou:Jle,Bernoullis:Zle,Beta:Xle,beta:Kle,beth:eue,between:tue,Bfr:nue,bfr:rue,bigcap:oue,bigcirc:iue,bigcup:sue,bigodot:aue,bigoplus:cue,bigotimes:lue,bigsqcup:uue,bigstar:fue,bigtriangledown:pue,bigtriangleup:due,biguplus:hue,bigvee:mue,bigwedge:vue,bkarow:gue,blacklozenge:yue,blacksquare:bue,blacktriangle:Eue,blacktriangledown:_ue,blacktriangleleft:kue,blacktriangleright:xue,blank:wue,blk12:$ue,blk14:Cue,blk34:Aue,block:Sue,bne:Tue,bnequiv:Due,bNot:Nue,bnot:Oue,Bopf:Iue,bopf:Lue,bot:Fue,bottom:Rue,bowtie:Mue,boxbox:que,boxdl:Pue,boxdL:Bue,boxDl:Vue,boxDL:jue,boxdr:Uue,boxdR:zue,boxDr:Hue,boxDR:Gue,boxh:Wue,boxH:Que,boxhd:Yue,boxHd:Jue,boxhD:Zue,boxHD:Xue,boxhu:Kue,boxHu:efe,boxhU:tfe,boxHU:nfe,boxminus:rfe,boxplus:ofe,boxtimes:ife,boxul:sfe,boxuL:afe,boxUl:cfe,boxUL:lfe,boxur:ufe,boxuR:ffe,boxUr:pfe,boxUR:dfe,boxv:hfe,boxV:mfe,boxvh:vfe,boxvH:gfe,boxVh:yfe,boxVH:bfe,boxvl:Efe,boxvL:_fe,boxVl:kfe,boxVL:xfe,boxvr:wfe,boxvR:$fe,boxVr:Cfe,boxVR:Afe,bprime:Sfe,breve:Tfe,Breve:Dfe,brvbar:Nfe,bscr:Ofe,Bscr:Ife,bsemi:Lfe,bsim:Ffe,bsime:Rfe,bsolb:Mfe,bsol:qfe,bsolhsub:Pfe,bull:Bfe,bullet:Vfe,bump:jfe,bumpE:Ufe,bumpe:zfe,Bumpeq:Hfe,bumpeq:Gfe,Cacute:Wfe,cacute:Qfe,capand:Yfe,capbrcup:Jfe,capcap:Zfe,cap:Xfe,Cap:Kfe,capcup:epe,capdot:tpe,CapitalDifferentialD:npe,caps:rpe,caret:ope,caron:ipe,Cayleys:spe,ccaps:ape,Ccaron:cpe,ccaron:lpe,Ccedil:upe,ccedil:fpe,Ccirc:ppe,ccirc:dpe,Cconint:hpe,ccups:mpe,ccupssm:vpe,Cdot:gpe,cdot:ype,cedil:bpe,Cedilla:Epe,cemptyv:_pe,cent:kpe,centerdot:xpe,CenterDot:wpe,cfr:$pe,Cfr:Cpe,CHcy:Ape,chcy:Spe,check:Tpe,checkmark:Dpe,Chi:Npe,chi:Ope,circ:Ipe,circeq:Lpe,circlearrowleft:Fpe,circlearrowright:Rpe,circledast:Mpe,circledcirc:qpe,circleddash:Ppe,CircleDot:Bpe,circledR:Vpe,circledS:jpe,CircleMinus:Upe,CirclePlus:zpe,CircleTimes:Hpe,cir:Gpe,cirE:Wpe,cire:Qpe,cirfnint:Ype,cirmid:Jpe,cirscir:Zpe,ClockwiseContourIntegral:Xpe,CloseCurlyDoubleQuote:Kpe,CloseCurlyQuote:ede,clubs:tde,clubsuit:nde,colon:rde,Colon:ode,Colone:ide,colone:sde,coloneq:ade,comma:cde,commat:lde,comp:ude,compfn:fde,complement:pde,complexes:dde,cong:hde,congdot:mde,Congruent:vde,conint:gde,Conint:yde,ContourIntegral:bde,copf:Ede,Copf:_de,coprod:kde,Coproduct:xde,copy:wde,COPY:$de,copysr:Cde,CounterClockwiseContourIntegral:Ade,crarr:Sde,cross:Tde,Cross:Dde,Cscr:Nde,cscr:Ode,csub:Ide,csube:Lde,csup:Fde,csupe:Rde,ctdot:Mde,cudarrl:qde,cudarrr:Pde,cuepr:Bde,cuesc:Vde,cularr:jde,cularrp:Ude,cupbrcap:zde,cupcap:Hde,CupCap:Gde,cup:Wde,Cup:Qde,cupcup:Yde,cupdot:Jde,cupor:Zde,cups:Xde,curarr:Kde,curarrm:ehe,curlyeqprec:the,curlyeqsucc:nhe,curlyvee:rhe,curlywedge:ohe,curren:ihe,curvearrowleft:she,curvearrowright:ahe,cuvee:che,cuwed:lhe,cwconint:uhe,cwint:fhe,cylcty:phe,dagger:dhe,Dagger:hhe,daleth:mhe,darr:vhe,Darr:ghe,dArr:yhe,dash:bhe,Dashv:Ehe,dashv:_he,dbkarow:khe,dblac:xhe,Dcaron:whe,dcaron:$he,Dcy:Che,dcy:Ahe,ddagger:She,ddarr:The,DD:Dhe,dd:Nhe,DDotrahd:Ohe,ddotseq:Ihe,deg:Lhe,Del:Fhe,Delta:Rhe,delta:Mhe,demptyv:qhe,dfisht:Phe,Dfr:Bhe,dfr:Vhe,dHar:jhe,dharl:Uhe,dharr:zhe,DiacriticalAcute:Hhe,DiacriticalDot:Ghe,DiacriticalDoubleAcute:Whe,DiacriticalGrave:Qhe,DiacriticalTilde:Yhe,diam:Jhe,diamond:Zhe,Diamond:Xhe,diamondsuit:Khe,diams:eme,die:tme,DifferentialD:nme,digamma:rme,disin:ome,div:ime,divide:sme,divideontimes:ame,divonx:cme,DJcy:lme,djcy:ume,dlcorn:fme,dlcrop:pme,dollar:dme,Dopf:hme,dopf:mme,Dot:vme,dot:gme,DotDot:yme,doteq:bme,doteqdot:Eme,DotEqual:_me,dotminus:kme,dotplus:xme,dotsquare:wme,doublebarwedge:$me,DoubleContourIntegral:Cme,DoubleDot:Ame,DoubleDownArrow:Sme,DoubleLeftArrow:Tme,DoubleLeftRightArrow:Dme,DoubleLeftTee:Nme,DoubleLongLeftArrow:Ome,DoubleLongLeftRightArrow:Ime,DoubleLongRightArrow:Lme,DoubleRightArrow:Fme,DoubleRightTee:Rme,DoubleUpArrow:Mme,DoubleUpDownArrow:qme,DoubleVerticalBar:Pme,DownArrowBar:Bme,downarrow:Vme,DownArrow:jme,Downarrow:Ume,DownArrowUpArrow:zme,DownBreve:Hme,downdownarrows:Gme,downharpoonleft:Wme,downharpoonright:Qme,DownLeftRightVector:Yme,DownLeftTeeVector:Jme,DownLeftVectorBar:Zme,DownLeftVector:Xme,DownRightTeeVector:Kme,DownRightVectorBar:eve,DownRightVector:tve,DownTeeArrow:nve,DownTee:rve,drbkarow:ove,drcorn:ive,drcrop:sve,Dscr:ave,dscr:cve,DScy:lve,dscy:uve,dsol:fve,Dstrok:pve,dstrok:dve,dtdot:hve,dtri:mve,dtrif:vve,duarr:gve,duhar:yve,dwangle:bve,DZcy:Eve,dzcy:_ve,dzigrarr:kve,Eacute:xve,eacute:wve,easter:$ve,Ecaron:Cve,ecaron:Ave,Ecirc:Sve,ecirc:Tve,ecir:Dve,ecolon:Nve,Ecy:Ove,ecy:Ive,eDDot:Lve,Edot:Fve,edot:Rve,eDot:Mve,ee:qve,efDot:Pve,Efr:Bve,efr:Vve,eg:jve,Egrave:Uve,egrave:zve,egs:Hve,egsdot:Gve,el:Wve,Element:Qve,elinters:Yve,ell:Jve,els:Zve,elsdot:Xve,Emacr:Kve,emacr:ege,empty:tge,emptyset:nge,EmptySmallSquare:rge,emptyv:oge,EmptyVerySmallSquare:ige,emsp13:sge,emsp14:age,emsp:cge,ENG:lge,eng:uge,ensp:fge,Eogon:pge,eogon:dge,Eopf:hge,eopf:mge,epar:vge,eparsl:gge,eplus:yge,epsi:bge,Epsilon:Ege,epsilon:_ge,epsiv:kge,eqcirc:xge,eqcolon:wge,eqsim:$ge,eqslantgtr:Cge,eqslantless:Age,Equal:Sge,equals:Tge,EqualTilde:Dge,equest:Nge,Equilibrium:Oge,equiv:Ige,equivDD:Lge,eqvparsl:Fge,erarr:Rge,erDot:Mge,escr:qge,Escr:Pge,esdot:Bge,Esim:Vge,esim:jge,Eta:Uge,eta:zge,ETH:Hge,eth:Gge,Euml:Wge,euml:Qge,euro:Yge,excl:Jge,exist:Zge,Exists:Xge,expectation:Kge,exponentiale:eye,ExponentialE:tye,fallingdotseq:nye,Fcy:rye,fcy:oye,female:iye,ffilig:sye,fflig:aye,ffllig:cye,Ffr:lye,ffr:uye,filig:fye,FilledSmallSquare:pye,FilledVerySmallSquare:dye,fjlig:hye,flat:mye,fllig:vye,fltns:gye,fnof:yye,Fopf:bye,fopf:Eye,forall:_ye,ForAll:kye,fork:xye,forkv:wye,Fouriertrf:$ye,fpartint:Cye,frac12:Aye,frac13:Sye,frac14:Tye,frac15:Dye,frac16:Nye,frac18:Oye,frac23:Iye,frac25:Lye,frac34:Fye,frac35:Rye,frac38:Mye,frac45:qye,frac56:Pye,frac58:Bye,frac78:Vye,frasl:jye,frown:Uye,fscr:zye,Fscr:Hye,gacute:Gye,Gamma:Wye,gamma:Qye,Gammad:Yye,gammad:Jye,gap:Zye,Gbreve:Xye,gbreve:Kye,Gcedil:e1e,Gcirc:t1e,gcirc:n1e,Gcy:r1e,gcy:o1e,Gdot:i1e,gdot:s1e,ge:a1e,gE:c1e,gEl:l1e,gel:u1e,geq:f1e,geqq:p1e,geqslant:d1e,gescc:h1e,ges:m1e,gesdot:v1e,gesdoto:g1e,gesdotol:y1e,gesl:b1e,gesles:E1e,Gfr:_1e,gfr:k1e,gg:x1e,Gg:w1e,ggg:$1e,gimel:C1e,GJcy:A1e,gjcy:S1e,gla:T1e,gl:D1e,glE:N1e,glj:O1e,gnap:I1e,gnapprox:L1e,gne:F1e,gnE:R1e,gneq:M1e,gneqq:q1e,gnsim:P1e,Gopf:B1e,gopf:V1e,grave:j1e,GreaterEqual:U1e,GreaterEqualLess:z1e,GreaterFullEqual:H1e,GreaterGreater:G1e,GreaterLess:W1e,GreaterSlantEqual:Q1e,GreaterTilde:Y1e,Gscr:J1e,gscr:Z1e,gsim:X1e,gsime:K1e,gsiml:e0e,gtcc:t0e,gtcir:n0e,gt:r0e,GT:o0e,Gt:i0e,gtdot:s0e,gtlPar:a0e,gtquest:c0e,gtrapprox:l0e,gtrarr:u0e,gtrdot:f0e,gtreqless:p0e,gtreqqless:d0e,gtrless:h0e,gtrsim:m0e,gvertneqq:v0e,gvnE:g0e,Hacek:y0e,hairsp:b0e,half:E0e,hamilt:_0e,HARDcy:k0e,hardcy:x0e,harrcir:w0e,harr:$0e,hArr:C0e,harrw:A0e,Hat:S0e,hbar:T0e,Hcirc:D0e,hcirc:N0e,hearts:O0e,heartsuit:I0e,hellip:L0e,hercon:F0e,hfr:R0e,Hfr:M0e,HilbertSpace:q0e,hksearow:P0e,hkswarow:B0e,hoarr:V0e,homtht:j0e,hookleftarrow:U0e,hookrightarrow:z0e,hopf:H0e,Hopf:G0e,horbar:W0e,HorizontalLine:Q0e,hscr:Y0e,Hscr:J0e,hslash:Z0e,Hstrok:X0e,hstrok:K0e,HumpDownHump:ebe,HumpEqual:tbe,hybull:nbe,hyphen:rbe,Iacute:obe,iacute:ibe,ic:sbe,Icirc:abe,icirc:cbe,Icy:lbe,icy:ube,Idot:fbe,IEcy:pbe,iecy:dbe,iexcl:hbe,iff:mbe,ifr:vbe,Ifr:gbe,Igrave:ybe,igrave:bbe,ii:Ebe,iiiint:_be,iiint:kbe,iinfin:xbe,iiota:wbe,IJlig:$be,ijlig:Cbe,Imacr:Abe,imacr:Sbe,image:Tbe,ImaginaryI:Dbe,imagline:Nbe,imagpart:Obe,imath:Ibe,Im:Lbe,imof:Fbe,imped:Rbe,Implies:Mbe,incare:qbe,in:"∈",infin:Pbe,infintie:Bbe,inodot:Vbe,intcal:jbe,int:Ube,Int:zbe,integers:Hbe,Integral:Gbe,intercal:Wbe,Intersection:Qbe,intlarhk:Ybe,intprod:Jbe,InvisibleComma:Zbe,InvisibleTimes:Xbe,IOcy:Kbe,iocy:eEe,Iogon:tEe,iogon:nEe,Iopf:rEe,iopf:oEe,Iota:iEe,iota:sEe,iprod:aEe,iquest:cEe,iscr:lEe,Iscr:uEe,isin:fEe,isindot:pEe,isinE:dEe,isins:hEe,isinsv:mEe,isinv:vEe,it:gEe,Itilde:yEe,itilde:bEe,Iukcy:EEe,iukcy:_Ee,Iuml:kEe,iuml:xEe,Jcirc:wEe,jcirc:$Ee,Jcy:CEe,jcy:AEe,Jfr:SEe,jfr:TEe,jmath:DEe,Jopf:NEe,jopf:OEe,Jscr:IEe,jscr:LEe,Jsercy:FEe,jsercy:REe,Jukcy:MEe,jukcy:qEe,Kappa:PEe,kappa:BEe,kappav:VEe,Kcedil:jEe,kcedil:UEe,Kcy:zEe,kcy:HEe,Kfr:GEe,kfr:WEe,kgreen:QEe,KHcy:YEe,khcy:JEe,KJcy:ZEe,kjcy:XEe,Kopf:KEe,kopf:e_e,Kscr:t_e,kscr:n_e,lAarr:r_e,Lacute:o_e,lacute:i_e,laemptyv:s_e,lagran:a_e,Lambda:c_e,lambda:l_e,lang:u_e,Lang:f_e,langd:p_e,langle:d_e,lap:h_e,Laplacetrf:m_e,laquo:v_e,larrb:g_e,larrbfs:y_e,larr:b_e,Larr:E_e,lArr:__e,larrfs:k_e,larrhk:x_e,larrlp:w_e,larrpl:$_e,larrsim:C_e,larrtl:A_e,latail:S_e,lAtail:T_e,lat:D_e,late:N_e,lates:O_e,lbarr:I_e,lBarr:L_e,lbbrk:F_e,lbrace:R_e,lbrack:M_e,lbrke:q_e,lbrksld:P_e,lbrkslu:B_e,Lcaron:V_e,lcaron:j_e,Lcedil:U_e,lcedil:z_e,lceil:H_e,lcub:G_e,Lcy:W_e,lcy:Q_e,ldca:Y_e,ldquo:J_e,ldquor:Z_e,ldrdhar:X_e,ldrushar:K_e,ldsh:e2e,le:t2e,lE:n2e,LeftAngleBracket:r2e,LeftArrowBar:o2e,leftarrow:i2e,LeftArrow:s2e,Leftarrow:a2e,LeftArrowRightArrow:c2e,leftarrowtail:l2e,LeftCeiling:u2e,LeftDoubleBracket:f2e,LeftDownTeeVector:p2e,LeftDownVectorBar:d2e,LeftDownVector:h2e,LeftFloor:m2e,leftharpoondown:v2e,leftharpoonup:g2e,leftleftarrows:y2e,leftrightarrow:b2e,LeftRightArrow:E2e,Leftrightarrow:_2e,leftrightarrows:k2e,leftrightharpoons:x2e,leftrightsquigarrow:w2e,LeftRightVector:$2e,LeftTeeArrow:C2e,LeftTee:A2e,LeftTeeVector:S2e,leftthreetimes:T2e,LeftTriangleBar:D2e,LeftTriangle:N2e,LeftTriangleEqual:O2e,LeftUpDownVector:I2e,LeftUpTeeVector:L2e,LeftUpVectorBar:F2e,LeftUpVector:R2e,LeftVectorBar:M2e,LeftVector:q2e,lEg:P2e,leg:B2e,leq:V2e,leqq:j2e,leqslant:U2e,lescc:z2e,les:H2e,lesdot:G2e,lesdoto:W2e,lesdotor:Q2e,lesg:Y2e,lesges:J2e,lessapprox:Z2e,lessdot:X2e,lesseqgtr:K2e,lesseqqgtr:eke,LessEqualGreater:tke,LessFullEqual:nke,LessGreater:rke,lessgtr:oke,LessLess:ike,lesssim:ske,LessSlantEqual:ake,LessTilde:cke,lfisht:lke,lfloor:uke,Lfr:fke,lfr:pke,lg:dke,lgE:hke,lHar:mke,lhard:vke,lharu:gke,lharul:yke,lhblk:bke,LJcy:Eke,ljcy:_ke,llarr:kke,ll:xke,Ll:wke,llcorner:$ke,Lleftarrow:Cke,llhard:Ake,lltri:Ske,Lmidot:Tke,lmidot:Dke,lmoustache:Nke,lmoust:Oke,lnap:Ike,lnapprox:Lke,lne:Fke,lnE:Rke,lneq:Mke,lneqq:qke,lnsim:Pke,loang:Bke,loarr:Vke,lobrk:jke,longleftarrow:Uke,LongLeftArrow:zke,Longleftarrow:Hke,longleftrightarrow:Gke,LongLeftRightArrow:Wke,Longleftrightarrow:Qke,longmapsto:Yke,longrightarrow:Jke,LongRightArrow:Zke,Longrightarrow:Xke,looparrowleft:Kke,looparrowright:exe,lopar:txe,Lopf:nxe,lopf:rxe,loplus:oxe,lotimes:ixe,lowast:sxe,lowbar:axe,LowerLeftArrow:cxe,LowerRightArrow:lxe,loz:uxe,lozenge:fxe,lozf:pxe,lpar:dxe,lparlt:hxe,lrarr:mxe,lrcorner:vxe,lrhar:gxe,lrhard:yxe,lrm:bxe,lrtri:Exe,lsaquo:_xe,lscr:kxe,Lscr:xxe,lsh:wxe,Lsh:$xe,lsim:Cxe,lsime:Axe,lsimg:Sxe,lsqb:Txe,lsquo:Dxe,lsquor:Nxe,Lstrok:Oxe,lstrok:Ixe,ltcc:Lxe,ltcir:Fxe,lt:Rxe,LT:Mxe,Lt:qxe,ltdot:Pxe,lthree:Bxe,ltimes:Vxe,ltlarr:jxe,ltquest:Uxe,ltri:zxe,ltrie:Hxe,ltrif:Gxe,ltrPar:Wxe,lurdshar:Qxe,luruhar:Yxe,lvertneqq:Jxe,lvnE:Zxe,macr:Xxe,male:Kxe,malt:ewe,maltese:twe,Map:"⤅",map:nwe,mapsto:rwe,mapstodown:owe,mapstoleft:iwe,mapstoup:swe,marker:awe,mcomma:cwe,Mcy:lwe,mcy:uwe,mdash:fwe,mDDot:pwe,measuredangle:dwe,MediumSpace:hwe,Mellintrf:mwe,Mfr:vwe,mfr:gwe,mho:ywe,micro:bwe,midast:Ewe,midcir:_we,mid:kwe,middot:xwe,minusb:wwe,minus:$we,minusd:Cwe,minusdu:Awe,MinusPlus:Swe,mlcp:Twe,mldr:Dwe,mnplus:Nwe,models:Owe,Mopf:Iwe,mopf:Lwe,mp:Fwe,mscr:Rwe,Mscr:Mwe,mstpos:qwe,Mu:Pwe,mu:Bwe,multimap:Vwe,mumap:jwe,nabla:Uwe,Nacute:zwe,nacute:Hwe,nang:Gwe,nap:Wwe,napE:Qwe,napid:Ywe,napos:Jwe,napprox:Zwe,natural:Xwe,naturals:Kwe,natur:e$e,nbsp:t$e,nbump:n$e,nbumpe:r$e,ncap:o$e,Ncaron:i$e,ncaron:s$e,Ncedil:a$e,ncedil:c$e,ncong:l$e,ncongdot:u$e,ncup:f$e,Ncy:p$e,ncy:d$e,ndash:h$e,nearhk:m$e,nearr:v$e,neArr:g$e,nearrow:y$e,ne:b$e,nedot:E$e,NegativeMediumSpace:_$e,NegativeThickSpace:k$e,NegativeThinSpace:x$e,NegativeVeryThinSpace:w$e,nequiv:$$e,nesear:C$e,nesim:A$e,NestedGreaterGreater:S$e,NestedLessLess:T$e,NewLine:D$e,nexist:N$e,nexists:O$e,Nfr:I$e,nfr:L$e,ngE:F$e,nge:R$e,ngeq:M$e,ngeqq:q$e,ngeqslant:P$e,nges:B$e,nGg:V$e,ngsim:j$e,nGt:U$e,ngt:z$e,ngtr:H$e,nGtv:G$e,nharr:W$e,nhArr:Q$e,nhpar:Y$e,ni:J$e,nis:Z$e,nisd:X$e,niv:K$e,NJcy:eCe,njcy:tCe,nlarr:nCe,nlArr:rCe,nldr:oCe,nlE:iCe,nle:sCe,nleftarrow:aCe,nLeftarrow:cCe,nleftrightarrow:lCe,nLeftrightarrow:uCe,nleq:fCe,nleqq:pCe,nleqslant:dCe,nles:hCe,nless:mCe,nLl:vCe,nlsim:gCe,nLt:yCe,nlt:bCe,nltri:ECe,nltrie:_Ce,nLtv:kCe,nmid:xCe,NoBreak:wCe,NonBreakingSpace:$Ce,nopf:CCe,Nopf:ACe,Not:SCe,not:TCe,NotCongruent:DCe,NotCupCap:NCe,NotDoubleVerticalBar:OCe,NotElement:ICe,NotEqual:LCe,NotEqualTilde:FCe,NotExists:RCe,NotGreater:MCe,NotGreaterEqual:qCe,NotGreaterFullEqual:PCe,NotGreaterGreater:BCe,NotGreaterLess:VCe,NotGreaterSlantEqual:jCe,NotGreaterTilde:UCe,NotHumpDownHump:zCe,NotHumpEqual:HCe,notin:GCe,notindot:WCe,notinE:QCe,notinva:YCe,notinvb:JCe,notinvc:ZCe,NotLeftTriangleBar:XCe,NotLeftTriangle:KCe,NotLeftTriangleEqual:eAe,NotLess:tAe,NotLessEqual:nAe,NotLessGreater:rAe,NotLessLess:oAe,NotLessSlantEqual:iAe,NotLessTilde:sAe,NotNestedGreaterGreater:aAe,NotNestedLessLess:cAe,notni:lAe,notniva:uAe,notnivb:fAe,notnivc:pAe,NotPrecedes:dAe,NotPrecedesEqual:hAe,NotPrecedesSlantEqual:mAe,NotReverseElement:vAe,NotRightTriangleBar:gAe,NotRightTriangle:yAe,NotRightTriangleEqual:bAe,NotSquareSubset:EAe,NotSquareSubsetEqual:_Ae,NotSquareSuperset:kAe,NotSquareSupersetEqual:xAe,NotSubset:wAe,NotSubsetEqual:$Ae,NotSucceeds:CAe,NotSucceedsEqual:AAe,NotSucceedsSlantEqual:SAe,NotSucceedsTilde:TAe,NotSuperset:DAe,NotSupersetEqual:NAe,NotTilde:OAe,NotTildeEqual:IAe,NotTildeFullEqual:LAe,NotTildeTilde:FAe,NotVerticalBar:RAe,nparallel:MAe,npar:qAe,nparsl:PAe,npart:BAe,npolint:VAe,npr:jAe,nprcue:UAe,nprec:zAe,npreceq:HAe,npre:GAe,nrarrc:WAe,nrarr:QAe,nrArr:YAe,nrarrw:JAe,nrightarrow:ZAe,nRightarrow:XAe,nrtri:KAe,nrtrie:eSe,nsc:tSe,nsccue:nSe,nsce:rSe,Nscr:oSe,nscr:iSe,nshortmid:sSe,nshortparallel:aSe,nsim:cSe,nsime:lSe,nsimeq:uSe,nsmid:fSe,nspar:pSe,nsqsube:dSe,nsqsupe:hSe,nsub:mSe,nsubE:vSe,nsube:gSe,nsubset:ySe,nsubseteq:bSe,nsubseteqq:ESe,nsucc:_Se,nsucceq:kSe,nsup:xSe,nsupE:wSe,nsupe:$Se,nsupset:CSe,nsupseteq:ASe,nsupseteqq:SSe,ntgl:TSe,Ntilde:DSe,ntilde:NSe,ntlg:OSe,ntriangleleft:ISe,ntrianglelefteq:LSe,ntriangleright:FSe,ntrianglerighteq:RSe,Nu:MSe,nu:qSe,num:PSe,numero:BSe,numsp:VSe,nvap:jSe,nvdash:USe,nvDash:zSe,nVdash:HSe,nVDash:GSe,nvge:WSe,nvgt:QSe,nvHarr:YSe,nvinfin:JSe,nvlArr:ZSe,nvle:XSe,nvlt:KSe,nvltrie:eTe,nvrArr:tTe,nvrtrie:nTe,nvsim:rTe,nwarhk:oTe,nwarr:iTe,nwArr:sTe,nwarrow:aTe,nwnear:cTe,Oacute:lTe,oacute:uTe,oast:fTe,Ocirc:pTe,ocirc:dTe,ocir:hTe,Ocy:mTe,ocy:vTe,odash:gTe,Odblac:yTe,odblac:bTe,odiv:ETe,odot:_Te,odsold:kTe,OElig:xTe,oelig:wTe,ofcir:$Te,Ofr:CTe,ofr:ATe,ogon:STe,Ograve:TTe,ograve:DTe,ogt:NTe,ohbar:OTe,ohm:ITe,oint:LTe,olarr:FTe,olcir:RTe,olcross:MTe,oline:qTe,olt:PTe,Omacr:BTe,omacr:VTe,Omega:jTe,omega:UTe,Omicron:zTe,omicron:HTe,omid:GTe,ominus:WTe,Oopf:QTe,oopf:YTe,opar:JTe,OpenCurlyDoubleQuote:ZTe,OpenCurlyQuote:XTe,operp:KTe,oplus:eDe,orarr:tDe,Or:nDe,or:rDe,ord:oDe,order:iDe,orderof:sDe,ordf:aDe,ordm:cDe,origof:lDe,oror:uDe,orslope:fDe,orv:pDe,oS:dDe,Oscr:hDe,oscr:mDe,Oslash:vDe,oslash:gDe,osol:yDe,Otilde:bDe,otilde:EDe,otimesas:_De,Otimes:kDe,otimes:xDe,Ouml:wDe,ouml:$De,ovbar:CDe,OverBar:ADe,OverBrace:SDe,OverBracket:TDe,OverParenthesis:DDe,para:NDe,parallel:ODe,par:IDe,parsim:LDe,parsl:FDe,part:RDe,PartialD:MDe,Pcy:qDe,pcy:PDe,percnt:BDe,period:VDe,permil:jDe,perp:UDe,pertenk:zDe,Pfr:HDe,pfr:GDe,Phi:WDe,phi:QDe,phiv:YDe,phmmat:JDe,phone:ZDe,Pi:XDe,pi:KDe,pitchfork:eNe,piv:tNe,planck:nNe,planckh:rNe,plankv:oNe,plusacir:iNe,plusb:sNe,pluscir:aNe,plus:cNe,plusdo:lNe,plusdu:uNe,pluse:fNe,PlusMinus:pNe,plusmn:dNe,plussim:hNe,plustwo:mNe,pm:vNe,Poincareplane:gNe,pointint:yNe,popf:bNe,Popf:ENe,pound:_Ne,prap:kNe,Pr:xNe,pr:wNe,prcue:$Ne,precapprox:CNe,prec:ANe,preccurlyeq:SNe,Precedes:TNe,PrecedesEqual:DNe,PrecedesSlantEqual:NNe,PrecedesTilde:ONe,preceq:INe,precnapprox:LNe,precneqq:FNe,precnsim:RNe,pre:MNe,prE:qNe,precsim:PNe,prime:BNe,Prime:VNe,primes:jNe,prnap:UNe,prnE:zNe,prnsim:HNe,prod:GNe,Product:WNe,profalar:QNe,profline:YNe,profsurf:JNe,prop:ZNe,Proportional:XNe,Proportion:KNe,propto:eOe,prsim:tOe,prurel:nOe,Pscr:rOe,pscr:oOe,Psi:iOe,psi:sOe,puncsp:aOe,Qfr:cOe,qfr:lOe,qint:uOe,qopf:fOe,Qopf:pOe,qprime:dOe,Qscr:hOe,qscr:mOe,quaternions:vOe,quatint:gOe,quest:yOe,questeq:bOe,quot:EOe,QUOT:_Oe,rAarr:kOe,race:xOe,Racute:wOe,racute:$Oe,radic:COe,raemptyv:AOe,rang:SOe,Rang:TOe,rangd:DOe,range:NOe,rangle:OOe,raquo:IOe,rarrap:LOe,rarrb:FOe,rarrbfs:ROe,rarrc:MOe,rarr:qOe,Rarr:POe,rArr:BOe,rarrfs:VOe,rarrhk:jOe,rarrlp:UOe,rarrpl:zOe,rarrsim:HOe,Rarrtl:GOe,rarrtl:WOe,rarrw:QOe,ratail:YOe,rAtail:JOe,ratio:ZOe,rationals:XOe,rbarr:KOe,rBarr:eIe,RBarr:tIe,rbbrk:nIe,rbrace:rIe,rbrack:oIe,rbrke:iIe,rbrksld:sIe,rbrkslu:aIe,Rcaron:cIe,rcaron:lIe,Rcedil:uIe,rcedil:fIe,rceil:pIe,rcub:dIe,Rcy:hIe,rcy:mIe,rdca:vIe,rdldhar:gIe,rdquo:yIe,rdquor:bIe,rdsh:EIe,real:_Ie,realine:kIe,realpart:xIe,reals:wIe,Re:$Ie,rect:CIe,reg:AIe,REG:SIe,ReverseElement:TIe,ReverseEquilibrium:DIe,ReverseUpEquilibrium:NIe,rfisht:OIe,rfloor:IIe,rfr:LIe,Rfr:FIe,rHar:RIe,rhard:MIe,rharu:qIe,rharul:PIe,Rho:BIe,rho:VIe,rhov:jIe,RightAngleBracket:UIe,RightArrowBar:zIe,rightarrow:HIe,RightArrow:GIe,Rightarrow:WIe,RightArrowLeftArrow:QIe,rightarrowtail:YIe,RightCeiling:JIe,RightDoubleBracket:ZIe,RightDownTeeVector:XIe,RightDownVectorBar:KIe,RightDownVector:eLe,RightFloor:tLe,rightharpoondown:nLe,rightharpoonup:rLe,rightleftarrows:oLe,rightleftharpoons:iLe,rightrightarrows:sLe,rightsquigarrow:aLe,RightTeeArrow:cLe,RightTee:lLe,RightTeeVector:uLe,rightthreetimes:fLe,RightTriangleBar:pLe,RightTriangle:dLe,RightTriangleEqual:hLe,RightUpDownVector:mLe,RightUpTeeVector:vLe,RightUpVectorBar:gLe,RightUpVector:yLe,RightVectorBar:bLe,RightVector:ELe,ring:_Le,risingdotseq:kLe,rlarr:xLe,rlhar:wLe,rlm:$Le,rmoustache:CLe,rmoust:ALe,rnmid:SLe,roang:TLe,roarr:DLe,robrk:NLe,ropar:OLe,ropf:ILe,Ropf:LLe,roplus:FLe,rotimes:RLe,RoundImplies:MLe,rpar:qLe,rpargt:PLe,rppolint:BLe,rrarr:VLe,Rrightarrow:jLe,rsaquo:ULe,rscr:zLe,Rscr:HLe,rsh:GLe,Rsh:WLe,rsqb:QLe,rsquo:YLe,rsquor:JLe,rthree:ZLe,rtimes:XLe,rtri:KLe,rtrie:eFe,rtrif:tFe,rtriltri:nFe,RuleDelayed:rFe,ruluhar:oFe,rx:iFe,Sacute:sFe,sacute:aFe,sbquo:cFe,scap:lFe,Scaron:uFe,scaron:fFe,Sc:pFe,sc:dFe,sccue:hFe,sce:mFe,scE:vFe,Scedil:gFe,scedil:yFe,Scirc:bFe,scirc:EFe,scnap:_Fe,scnE:kFe,scnsim:xFe,scpolint:wFe,scsim:$Fe,Scy:CFe,scy:AFe,sdotb:SFe,sdot:TFe,sdote:DFe,searhk:NFe,searr:OFe,seArr:IFe,searrow:LFe,sect:FFe,semi:RFe,seswar:MFe,setminus:qFe,setmn:PFe,sext:BFe,Sfr:VFe,sfr:jFe,sfrown:UFe,sharp:zFe,SHCHcy:HFe,shchcy:GFe,SHcy:WFe,shcy:QFe,ShortDownArrow:YFe,ShortLeftArrow:JFe,shortmid:ZFe,shortparallel:XFe,ShortRightArrow:KFe,ShortUpArrow:eRe,shy:tRe,Sigma:nRe,sigma:rRe,sigmaf:oRe,sigmav:iRe,sim:sRe,simdot:aRe,sime:cRe,simeq:lRe,simg:uRe,simgE:fRe,siml:pRe,simlE:dRe,simne:hRe,simplus:mRe,simrarr:vRe,slarr:gRe,SmallCircle:yRe,smallsetminus:bRe,smashp:ERe,smeparsl:_Re,smid:kRe,smile:xRe,smt:wRe,smte:$Re,smtes:CRe,SOFTcy:ARe,softcy:SRe,solbar:TRe,solb:DRe,sol:NRe,Sopf:ORe,sopf:IRe,spades:LRe,spadesuit:FRe,spar:RRe,sqcap:MRe,sqcaps:qRe,sqcup:PRe,sqcups:BRe,Sqrt:VRe,sqsub:jRe,sqsube:URe,sqsubset:zRe,sqsubseteq:HRe,sqsup:GRe,sqsupe:WRe,sqsupset:QRe,sqsupseteq:YRe,square:JRe,Square:ZRe,SquareIntersection:XRe,SquareSubset:KRe,SquareSubsetEqual:eMe,SquareSuperset:tMe,SquareSupersetEqual:nMe,SquareUnion:rMe,squarf:oMe,squ:iMe,squf:sMe,srarr:aMe,Sscr:cMe,sscr:lMe,ssetmn:uMe,ssmile:fMe,sstarf:pMe,Star:dMe,star:hMe,starf:mMe,straightepsilon:vMe,straightphi:gMe,strns:yMe,sub:bMe,Sub:EMe,subdot:_Me,subE:kMe,sube:xMe,subedot:wMe,submult:$Me,subnE:CMe,subne:AMe,subplus:SMe,subrarr:TMe,subset:DMe,Subset:NMe,subseteq:OMe,subseteqq:IMe,SubsetEqual:LMe,subsetneq:FMe,subsetneqq:RMe,subsim:MMe,subsub:qMe,subsup:PMe,succapprox:BMe,succ:VMe,succcurlyeq:jMe,Succeeds:UMe,SucceedsEqual:zMe,SucceedsSlantEqual:HMe,SucceedsTilde:GMe,succeq:WMe,succnapprox:QMe,succneqq:YMe,succnsim:JMe,succsim:ZMe,SuchThat:XMe,sum:KMe,Sum:eqe,sung:tqe,sup1:nqe,sup2:rqe,sup3:oqe,sup:iqe,Sup:sqe,supdot:aqe,supdsub:cqe,supE:lqe,supe:uqe,supedot:fqe,Superset:pqe,SupersetEqual:dqe,suphsol:hqe,suphsub:mqe,suplarr:vqe,supmult:gqe,supnE:yqe,supne:bqe,supplus:Eqe,supset:_qe,Supset:kqe,supseteq:xqe,supseteqq:wqe,supsetneq:$qe,supsetneqq:Cqe,supsim:Aqe,supsub:Sqe,supsup:Tqe,swarhk:Dqe,swarr:Nqe,swArr:Oqe,swarrow:Iqe,swnwar:Lqe,szlig:Fqe,Tab:Rqe,target:Mqe,Tau:qqe,tau:Pqe,tbrk:Bqe,Tcaron:Vqe,tcaron:jqe,Tcedil:Uqe,tcedil:zqe,Tcy:Hqe,tcy:Gqe,tdot:Wqe,telrec:Qqe,Tfr:Yqe,tfr:Jqe,there4:Zqe,therefore:Xqe,Therefore:Kqe,Theta:ePe,theta:tPe,thetasym:nPe,thetav:rPe,thickapprox:oPe,thicksim:iPe,ThickSpace:sPe,ThinSpace:aPe,thinsp:cPe,thkap:lPe,thksim:uPe,THORN:fPe,thorn:pPe,tilde:dPe,Tilde:hPe,TildeEqual:mPe,TildeFullEqual:vPe,TildeTilde:gPe,timesbar:yPe,timesb:bPe,times:EPe,timesd:_Pe,tint:kPe,toea:xPe,topbot:wPe,topcir:$Pe,top:CPe,Topf:APe,topf:SPe,topfork:TPe,tosa:DPe,tprime:NPe,trade:OPe,TRADE:IPe,triangle:LPe,triangledown:FPe,triangleleft:RPe,trianglelefteq:MPe,triangleq:qPe,triangleright:PPe,trianglerighteq:BPe,tridot:VPe,trie:jPe,triminus:UPe,TripleDot:zPe,triplus:HPe,trisb:GPe,tritime:WPe,trpezium:QPe,Tscr:YPe,tscr:JPe,TScy:ZPe,tscy:XPe,TSHcy:KPe,tshcy:e3e,Tstrok:t3e,tstrok:n3e,twixt:r3e,twoheadleftarrow:o3e,twoheadrightarrow:i3e,Uacute:s3e,uacute:a3e,uarr:c3e,Uarr:l3e,uArr:u3e,Uarrocir:f3e,Ubrcy:p3e,ubrcy:d3e,Ubreve:h3e,ubreve:m3e,Ucirc:v3e,ucirc:g3e,Ucy:y3e,ucy:b3e,udarr:E3e,Udblac:_3e,udblac:k3e,udhar:x3e,ufisht:w3e,Ufr:$3e,ufr:C3e,Ugrave:A3e,ugrave:S3e,uHar:T3e,uharl:D3e,uharr:N3e,uhblk:O3e,ulcorn:I3e,ulcorner:L3e,ulcrop:F3e,ultri:R3e,Umacr:M3e,umacr:q3e,uml:P3e,UnderBar:B3e,UnderBrace:V3e,UnderBracket:j3e,UnderParenthesis:U3e,Union:z3e,UnionPlus:H3e,Uogon:G3e,uogon:W3e,Uopf:Q3e,uopf:Y3e,UpArrowBar:J3e,uparrow:Z3e,UpArrow:X3e,Uparrow:K3e,UpArrowDownArrow:eBe,updownarrow:tBe,UpDownArrow:nBe,Updownarrow:rBe,UpEquilibrium:oBe,upharpoonleft:iBe,upharpoonright:sBe,uplus:aBe,UpperLeftArrow:cBe,UpperRightArrow:lBe,upsi:uBe,Upsi:fBe,upsih:pBe,Upsilon:dBe,upsilon:hBe,UpTeeArrow:mBe,UpTee:vBe,upuparrows:gBe,urcorn:yBe,urcorner:bBe,urcrop:EBe,Uring:_Be,uring:kBe,urtri:xBe,Uscr:wBe,uscr:$Be,utdot:CBe,Utilde:ABe,utilde:SBe,utri:TBe,utrif:DBe,uuarr:NBe,Uuml:OBe,uuml:IBe,uwangle:LBe,vangrt:FBe,varepsilon:RBe,varkappa:MBe,varnothing:qBe,varphi:PBe,varpi:BBe,varpropto:VBe,varr:jBe,vArr:UBe,varrho:zBe,varsigma:HBe,varsubsetneq:GBe,varsubsetneqq:WBe,varsupsetneq:QBe,varsupsetneqq:YBe,vartheta:JBe,vartriangleleft:ZBe,vartriangleright:XBe,vBar:KBe,Vbar:e5e,vBarv:t5e,Vcy:n5e,vcy:r5e,vdash:o5e,vDash:i5e,Vdash:s5e,VDash:a5e,Vdashl:c5e,veebar:l5e,vee:u5e,Vee:f5e,veeeq:p5e,vellip:d5e,verbar:h5e,Verbar:m5e,vert:v5e,Vert:g5e,VerticalBar:y5e,VerticalLine:b5e,VerticalSeparator:E5e,VerticalTilde:_5e,VeryThinSpace:k5e,Vfr:x5e,vfr:w5e,vltri:$5e,vnsub:C5e,vnsup:A5e,Vopf:S5e,vopf:T5e,vprop:D5e,vrtri:N5e,Vscr:O5e,vscr:I5e,vsubnE:L5e,vsubne:F5e,vsupnE:R5e,vsupne:M5e,Vvdash:q5e,vzigzag:P5e,Wcirc:B5e,wcirc:V5e,wedbar:j5e,wedge:U5e,Wedge:z5e,wedgeq:H5e,weierp:G5e,Wfr:W5e,wfr:Q5e,Wopf:Y5e,wopf:J5e,wp:Z5e,wr:X5e,wreath:K5e,Wscr:eVe,wscr:tVe,xcap:nVe,xcirc:rVe,xcup:oVe,xdtri:iVe,Xfr:sVe,xfr:aVe,xharr:cVe,xhArr:lVe,Xi:uVe,xi:fVe,xlarr:pVe,xlArr:dVe,xmap:hVe,xnis:mVe,xodot:vVe,Xopf:gVe,xopf:yVe,xoplus:bVe,xotime:EVe,xrarr:_Ve,xrArr:kVe,Xscr:xVe,xscr:wVe,xsqcup:$Ve,xuplus:CVe,xutri:AVe,xvee:SVe,xwedge:TVe,Yacute:DVe,yacute:NVe,YAcy:OVe,yacy:IVe,Ycirc:LVe,ycirc:FVe,Ycy:RVe,ycy:MVe,yen:qVe,Yfr:PVe,yfr:BVe,YIcy:VVe,yicy:jVe,Yopf:UVe,yopf:zVe,Yscr:HVe,yscr:GVe,YUcy:WVe,yucy:QVe,yuml:YVe,Yuml:JVe,Zacute:ZVe,zacute:XVe,Zcaron:KVe,zcaron:e9e,Zcy:t9e,zcy:n9e,Zdot:r9e,zdot:o9e,zeetrf:i9e,ZeroWidthSpace:s9e,Zeta:a9e,zeta:c9e,zfr:l9e,Zfr:u9e,ZHcy:f9e,zhcy:p9e,zigrarr:d9e,zopf:h9e,Zopf:m9e,Zscr:v9e,zscr:g9e,zwj:y9e,zwnj:b9e};var p_=E9e,Th=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ys={},Wy={};function _9e(t){var e,n,o=Wy[t];if(o)return o;for(o=Wy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function _u(t,e,n){var o,i,a,c,f,d="";for(typeof e!="string"&&(n=e,e=_u.defaultChars),typeof n>"u"&&(n=!0),f=_9e(e),o=0,i=t.length;o<i;o++){if(a=t.charCodeAt(o),n&&a===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){d+=t.slice(o,o+3),o+=2;continue}if(a<128){d+=f[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<i&&(c=t.charCodeAt(o+1),c>=56320&&c<=57343)){d+=encodeURIComponent(t[o]+t[o+1]),o++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(t[o])}return d}_u.defaultChars=";/?:@&=+$,-_.!~*'()#";_u.componentChars="-_.!~*'()";var k9e=_u,Qy={};function x9e(t){var e,n,o=Qy[t];if(o)return o;for(o=Qy[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function ku(t,e){var n;return typeof e!="string"&&(e=ku.defaultChars),n=x9e(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,a,c,f,d,h,v,y="";for(i=0,a=o.length;i<a;i+=3){if(c=parseInt(o.slice(i+1,i+3),16),c<128){y+=n[c];continue}if((c&224)===192&&i+3<a&&(f=parseInt(o.slice(i+4,i+6),16),(f&192)===128)){v=c<<6&1984|f&63,v<128?y+="��":y+=String.fromCharCode(v),i+=3;continue}if((c&240)===224&&i+6<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),(f&192)===128&&(d&192)===128)){v=c<<12&61440|f<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="���":y+=String.fromCharCode(v),i+=6;continue}if((c&248)===240&&i+9<a&&(f=parseInt(o.slice(i+4,i+6),16),d=parseInt(o.slice(i+7,i+9),16),h=parseInt(o.slice(i+10,i+12),16),(f&192)===128&&(d&192)===128&&(h&192)===128)){v=c<<18&1835008|f<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="����":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="�"}return y})}ku.defaultChars=";/?:@&=+$,#";ku.componentChars="";var w9e=ku,$9e=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Fl(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var C9e=/^([a-z0-9.+-]+:)/i,A9e=/:[0-9]*$/,S9e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,T9e=["<",">",'"',"`"," ","\r",`
|
|
270
|
+
`," "],D9e=["{","}","|","\\","^","`"].concat(T9e),N9e=["'"].concat(D9e),Yy=["%","/","?",";","#"].concat(N9e),Jy=["/","?","#"],O9e=255,Zy=/^[+a-z0-9A-Z_-]{0,63}$/,I9e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xy={javascript:!0,"javascript:":!0},Ky={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function L9e(t,e){if(t&&t instanceof Fl)return t;var n=new Fl;return n.parse(t,e),n}Fl.prototype.parse=function(t,e){var n,o,i,a,c,f=t;if(f=f.trim(),!e&&t.split("#").length===1){var d=S9e.exec(f);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=C9e.exec(f);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,f=f.substr(h.length)),(e||h||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=f.substr(0,2)==="//",c&&!(h&&Xy[h])&&(f=f.substr(2),this.slashes=!0)),!Xy[h]&&(c||h&&!Ky[h])){var v=-1;for(n=0;n<Jy.length;n++)a=f.indexOf(Jy[n]),a!==-1&&(v===-1||a<v)&&(v=a);var y,g;for(v===-1?g=f.lastIndexOf("@"):g=f.lastIndexOf("@",v),g!==-1&&(y=f.slice(0,g),f=f.slice(g+1),this.auth=y),v=-1,n=0;n<Yy.length;n++)a=f.indexOf(Yy[n]),a!==-1&&(v===-1||a<v)&&(v=a);v===-1&&(v=f.length),f[v-1]===":"&&v--;var E=f.slice(0,v);f=f.slice(v),this.parseHost(E),this.hostname=this.hostname||"";var C=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!C){var S=this.hostname.split(/\./);for(n=0,o=S.length;n<o;n++){var N=S[n];if(N&&!N.match(Zy)){for(var D="",T=0,O=N.length;T<O;T++)N.charCodeAt(T)>127?D+="x":D+=N[T];if(!D.match(Zy)){var V=S.slice(0,n),Y=S.slice(n+1),P=N.match(I9e);P&&(V.push(P[1]),Y.unshift(P[2])),Y.length&&(f=Y.join(".")+f),this.hostname=V.join(".");break}}}}this.hostname.length>O9e&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var U=f.indexOf("#");U!==-1&&(this.hash=f.substr(U),f=f.slice(0,U));var K=f.indexOf("?");return K!==-1&&(this.search=f.substr(K),f=f.slice(0,K)),f&&(this.pathname=f),Ky[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Fl.prototype.parseHost=function(t){var e=A9e.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var F9e=L9e;ys.encode=k9e;ys.decode=w9e;ys.format=$9e;ys.parse=F9e;var jo={},ep,e1;function d_(){return e1||(e1=1,ep=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ep}var tp,t1;function h_(){return t1||(t1=1,tp=/[\0-\x1F\x7F-\x9F]/),tp}var np,n1;function R9e(){return n1||(n1=1,np=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),np}var rp,r1;function m_(){return r1||(r1=1,rp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),rp}var o1;function M9e(){return o1||(o1=1,jo.Any=d_(),jo.Cc=h_(),jo.Cf=R9e(),jo.P=Th,jo.Z=m_()),jo}(function(t){function e(R){return Object.prototype.toString.call(R)}function n(R){return e(R)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(R,x){return o.call(R,x)}function a(R){var x=Array.prototype.slice.call(arguments,1);return x.forEach(function(j){if(j){if(typeof j!="object")throw new TypeError(j+"must be object");Object.keys(j).forEach(function(J){R[J]=j[J]})}}),R}function c(R,x,j){return[].concat(R.slice(0,x),j,R.slice(x+1))}function f(R){return!(R>=55296&&R<=57343||R>=64976&&R<=65007||(R&65535)===65535||(R&65535)===65534||R>=0&&R<=8||R===11||R>=14&&R<=31||R>=127&&R<=159||R>1114111)}function d(R){if(R>65535){R-=65536;var x=55296+(R>>10),j=56320+(R&1023);return String.fromCharCode(x,j)}return String.fromCharCode(R)}var h=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,v=/&([a-z#][a-z0-9]{1,31});/gi,y=new RegExp(h.source+"|"+v.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,E=p_;function C(R,x){var j=0;return i(E,x)?E[x]:x.charCodeAt(0)===35&&g.test(x)&&(j=x[1].toLowerCase()==="x"?parseInt(x.slice(2),16):parseInt(x.slice(1),10),f(j))?d(j):R}function S(R){return R.indexOf("\\")<0?R:R.replace(h,"$1")}function N(R){return R.indexOf("\\")<0&&R.indexOf("&")<0?R:R.replace(y,function(x,j,J){return j||C(x,J)})}var D=/[&<>"]/,T=/[&<>"]/g,O={"&":"&","<":"<",">":">",'"':"""};function V(R){return O[R]}function Y(R){return D.test(R)?R.replace(T,V):R}var P=/[.?*+^$[\]\\(){}|-]/g;function U(R){return R.replace(P,"\\$&")}function K(R){switch(R){case 9:case 32:return!0}return!1}function G(R){if(R>=8192&&R<=8202)return!0;switch(R){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Q=Th;function oe(R){return Q.test(R)}function _e(R){switch(R){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function H(R){return R=R.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(R=R.replace(/ẞ/g,"ß")),R.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=ys,t.lib.ucmicro=M9e(),t.assign=a,t.isString=n,t.has=i,t.unescapeMd=S,t.unescapeAll=N,t.isValidEntityCode=f,t.fromCodePoint=d,t.escapeHtml=Y,t.arrayReplaceAt=c,t.isSpace=K,t.isWhiteSpace=G,t.isMdAsciiPunct=_e,t.isPunctChar=oe,t.escapeRE=U,t.normalizeReference=H})(tt);var xu={},q9e=function(e,n,o){var i,a,c,f,d=-1,h=e.posMax,v=e.pos;for(e.pos=n+1,i=1;e.pos<h;){if(c=e.src.charCodeAt(e.pos),c===93&&(i--,i===0)){a=!0;break}if(f=e.pos,e.md.inline.skipToken(e),c===91){if(f===e.pos-1)i++;else if(o)return e.pos=v,-1}}return a&&(d=e.pos),e.pos=v,d},i1=tt.unescapeAll,P9e=function(e,n,o){var i,a,c=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<o;){if(i=e.charCodeAt(n),i===10||i===60)return d;if(i===62)return d.pos=n+1,d.str=i1(e.slice(f+1,n)),d.ok=!0,d;if(i===92&&n+1<o){n+=2;continue}n++}return d}for(a=0;n<o&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<o){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(a++,a>32))return d;if(i===41){if(a===0)break;a--}n++}return f===n||a!==0||(d.str=i1(e.slice(f,n)),d.lines=c,d.pos=n,d.ok=!0),d},B9e=tt.unescapeAll,V9e=function(e,n,o){var i,a,c=0,f=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=o||(a=e.charCodeAt(n),a!==34&&a!==39&&a!==40))return d;for(n++,a===40&&(a=41);n<o;){if(i=e.charCodeAt(n),i===a)return d.pos=n+1,d.lines=c,d.str=B9e(e.slice(f+1,n)),d.ok=!0,d;if(i===40&&a===41)return d;i===10?c++:i===92&&n+1<o&&(n++,e.charCodeAt(n)===10&&c++),n++}return d};xu.parseLinkLabel=q9e;xu.parseLinkDestination=P9e;xu.parseLinkTitle=V9e;var j9e=tt.assign,U9e=tt.unescapeAll,ri=tt.escapeHtml,Cr={};Cr.code_inline=function(t,e,n,o,i){var a=t[e];return"<code"+i.renderAttrs(a)+">"+ri(t[e].content)+"</code>"};Cr.code_block=function(t,e,n,o,i){var a=t[e];return"<pre"+i.renderAttrs(a)+"><code>"+ri(t[e].content)+`</code></pre>
|
|
271
|
+
`};Cr.fence=function(t,e,n,o,i){var a=t[e],c=a.info?U9e(a.info).trim():"",f="",d="",h,v,y,g,E;return c&&(y=c.split(/(\s+)/g),f=y[0],d=y.slice(2).join("")),n.highlight?h=n.highlight(a.content,f,d)||ri(a.content):h=ri(a.content),h.indexOf("<pre")===0?h+`
|
|
272
|
+
`:c?(v=a.attrIndex("class"),g=a.attrs?a.attrs.slice():[],v<0?g.push(["class",n.langPrefix+f]):(g[v]=g[v].slice(),g[v][1]+=" "+n.langPrefix+f),E={attrs:g},"<pre><code"+i.renderAttrs(E)+">"+h+`</code></pre>
|
|
273
|
+
`):"<pre><code"+i.renderAttrs(a)+">"+h+`</code></pre>
|
|
274
|
+
`};Cr.image=function(t,e,n,o,i){var a=t[e];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,n,o),i.renderToken(t,e,n)};Cr.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
275
|
+
`:`<br>
|
|
276
|
+
`};Cr.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
277
|
+
`:`<br>
|
|
278
|
+
`:`
|
|
279
|
+
`};Cr.text=function(t,e){return ri(t[e].content)};Cr.html_block=function(t,e){return t[e].content};Cr.html_inline=function(t,e){return t[e].content};function bs(){this.rules=j9e({},Cr)}bs.prototype.renderAttrs=function(e){var n,o,i;if(!e.attrs)return"";for(i="",n=0,o=e.attrs.length;n<o;n++)i+=" "+ri(e.attrs[n][0])+'="'+ri(e.attrs[n][1])+'"';return i};bs.prototype.renderToken=function(e,n,o){var i,a="",c=!1,f=e[n];return f.hidden?"":(f.block&&f.nesting!==-1&&n&&e[n-1].hidden&&(a+=`
|
|
280
|
+
`),a+=(f.nesting===-1?"</":"<")+f.tag,a+=this.renderAttrs(f),f.nesting===0&&o.xhtmlOut&&(a+=" /"),f.block&&(c=!0,f.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===f.tag)&&(c=!1))),a+=c?`>
|
|
281
|
+
`:">",a)};bs.prototype.renderInline=function(t,e,n){for(var o,i="",a=this.rules,c=0,f=t.length;c<f;c++)o=t[c].type,typeof a[o]<"u"?i+=a[o](t,c,e,n,this):i+=this.renderToken(t,c,e);return i};bs.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,a=t.length;i<a;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
|
|
282
|
+
`);return o};bs.prototype.render=function(t,e,n){var o,i,a,c="",f=this.rules;for(o=0,i=t.length;o<i;o++)a=t[o].type,a==="inline"?c+=this.renderInline(t[o].children,e,n):typeof f[a]<"u"?c+=f[t[o].type](t,o,e,n,this):c+=this.renderToken(t,o,e,n);return c};var z9e=bs;function tr(){this.__rules__=[],this.__cache__=null}tr.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};tr.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};tr.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};tr.prototype.before=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};tr.prototype.after=function(t,e,n,o){var i=this.__find__(t),a=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null};tr.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};tr.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};tr.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};tr.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};tr.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Dh=tr,H9e=/\r\n?|\n/g,G9e=/\0/g,W9e=function(e){var n;n=e.src.replace(H9e,`
|
|
283
|
+
`),n=n.replace(G9e,"�"),e.src=n},Q9e=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Y9e=function(e){var n=e.tokens,o,i,a;for(i=0,a=n.length;i<a;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},J9e=tt.arrayReplaceAt;function Z9e(t){return/^<a[>\s]/i.test(t)}function X9e(t){return/^<\/a\s*>/i.test(t)}var K9e=function(e){var n,o,i,a,c,f,d,h,v,y,g,E,C,S,N,D,T=e.tokens,O;if(e.md.options.linkify){for(o=0,i=T.length;o<i;o++)if(!(T[o].type!=="inline"||!e.md.linkify.pretest(T[o].content)))for(a=T[o].children,C=0,n=a.length-1;n>=0;n--){if(f=a[n],f.type==="link_close"){for(n--;a[n].level!==f.level&&a[n].type!=="link_open";)n--;continue}if(f.type==="html_inline"&&(Z9e(f.content)&&C>0&&C--,X9e(f.content)&&C++),!(C>0)&&f.type==="text"&&e.md.linkify.test(f.content)){for(v=f.content,O=e.md.linkify.match(v),d=[],E=f.level,g=0,h=0;h<O.length;h++)S=O[h].url,N=e.md.normalizeLink(S),e.md.validateLink(N)&&(D=O[h].text,O[h].schema?O[h].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,""),y=O[h].index,y>g&&(c=new e.Token("text","",0),c.content=v.slice(g,y),c.level=E,d.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",N]],c.level=E++,c.markup="linkify",c.info="auto",d.push(c),c=new e.Token("text","",0),c.content=D,c.level=E,d.push(c),c=new e.Token("link_close","a",-1),c.level=--E,c.markup="linkify",c.info="auto",d.push(c),g=O[h].lastIndex);g<v.length&&(c=new e.Token("text","",0),c.content=v.slice(g),c.level=E,d.push(c)),T[o].children=a=J9e(a,n,d)}}}},v_=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,e4e=/\((c|tm|r|p)\)/i,t4e=/\((c|tm|r|p)\)/ig,n4e={c:"©",r:"®",p:"§",tm:"™"};function r4e(t,e){return n4e[e.toLowerCase()]}function o4e(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(t4e,r4e)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function i4e(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&v_.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var s4e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(e4e.test(e.tokens[n].content)&&o4e(e.tokens[n].children),v_.test(e.tokens[n].content)&&i4e(e.tokens[n].children))},s1=tt.isWhiteSpace,a1=tt.isPunctChar,c1=tt.isMdAsciiPunct,a4e=/['"]/,l1=/['"]/g,u1="’";function Zc(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function c4e(t,e){var n,o,i,a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;for(V=[],n=0;n<t.length;n++){for(o=t[n],d=t[n].level,T=V.length-1;T>=0&&!(V[T].level<=d);T--);if(V.length=T+1,o.type==="text"){i=o.content,c=0,f=i.length;e:for(;c<f&&(l1.lastIndex=c,a=l1.exec(i),!!a);){if(N=D=!0,c=a.index+1,O=a[0]==="'",v=32,a.index-1>=0)v=i.charCodeAt(a.index-1);else for(T=n-1;T>=0&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T--)if(t[T].content){v=t[T].content.charCodeAt(t[T].content.length-1);break}if(y=32,c<f)y=i.charCodeAt(c);else for(T=n+1;T<t.length&&!(t[T].type==="softbreak"||t[T].type==="hardbreak");T++)if(t[T].content){y=t[T].content.charCodeAt(0);break}if(g=c1(v)||a1(String.fromCharCode(v)),E=c1(y)||a1(String.fromCharCode(y)),C=s1(v),S=s1(y),S?N=!1:E&&(C||g||(N=!1)),C?D=!1:g&&(S||E||(D=!1)),y===34&&a[0]==='"'&&v>=48&&v<=57&&(D=N=!1),N&&D&&(N=g,D=E),!N&&!D){O&&(o.content=Zc(o.content,a.index,u1));continue}if(D){for(T=V.length-1;T>=0&&(h=V[T],!(V[T].level<d));T--)if(h.single===O&&V[T].level===d){h=V[T],O?(Y=e.md.options.quotes[2],P=e.md.options.quotes[3]):(Y=e.md.options.quotes[0],P=e.md.options.quotes[1]),o.content=Zc(o.content,a.index,P),t[h.token].content=Zc(t[h.token].content,h.pos,Y),c+=P.length-1,h.token===n&&(c+=Y.length-1),i=o.content,f=i.length,V.length=T;continue e}}N?V.push({token:n,pos:a.index,single:O,level:d}):D&&O&&(o.content=Zc(o.content,a.index,u1))}}}}var l4e=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!a4e.test(e.tokens[n].content)||c4e(e.tokens[n].children,e)};function Es(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Es.prototype.attrIndex=function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1};Es.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Es.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Es.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Es.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var Nh=Es,u4e=Nh;function g_(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}g_.prototype.Token=u4e;var f4e=g_,p4e=Dh,op=[["normalize",W9e],["block",Q9e],["inline",Y9e],["linkify",K9e],["replacements",s4e],["smartquotes",l4e]];function Oh(){this.ruler=new p4e;for(var t=0;t<op.length;t++)this.ruler.push(op[t][0],op[t][1])}Oh.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};Oh.prototype.State=f4e;var d4e=Oh,ip=tt.isSpace;function sp(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.substr(n,o-n)}function f1(t){var e=[],n=0,o=t.length,i,a=!1,c=0,f="";for(i=t.charCodeAt(n);n<o;)i===124&&(a?(f+=t.substring(c,n-1),c=n):(e.push(f+t.substring(c,n)),f="",c=n+1)),a=i===92,n++,i=t.charCodeAt(n);return e.push(f+t.substring(c)),e}var h4e=function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P;if(n+2>o||(v=n+1,e.sCount[v]<e.blkIndent)||e.sCount[v]-e.blkIndent>=4||(f=e.bMarks[v]+e.tShift[v],f>=e.eMarks[v])||(Y=e.src.charCodeAt(f++),Y!==124&&Y!==45&&Y!==58)||f>=e.eMarks[v]||(P=e.src.charCodeAt(f++),P!==124&&P!==45&&P!==58&&!ip(P))||Y===45&&ip(P))return!1;for(;f<e.eMarks[v];){if(a=e.src.charCodeAt(f),a!==124&&a!==45&&a!==58&&!ip(a))return!1;f++}for(c=sp(e,n+1),y=c.split("|"),C=[],d=0;d<y.length;d++){if(S=y[d].trim(),!S){if(d===0||d===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(S))return!1;S.charCodeAt(S.length-1)===58?C.push(S.charCodeAt(0)===58?"center":"right"):S.charCodeAt(0)===58?C.push("left"):C.push("")}if(c=sp(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(y=f1(c),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),g=y.length,g===0||g!==C.length))return!1;if(i)return!0;for(T=e.parentType,e.parentType="table",V=e.md.block.ruler.getRules("blockquote"),E=e.push("table_open","table",1),E.map=N=[n,0],E=e.push("thead_open","thead",1),E.map=[n,n+1],E=e.push("tr_open","tr",1),E.map=[n,n+1],d=0;d<y.length;d++)E=e.push("th_open","th",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d].trim(),E.children=[],E=e.push("th_close","th",-1);for(E=e.push("tr_close","tr",-1),E=e.push("thead_close","thead",-1),v=n+2;v<o&&!(e.sCount[v]<e.blkIndent);v++){for(O=!1,d=0,h=V.length;d<h;d++)if(V[d](e,v,o,!0)){O=!0;break}if(O||(c=sp(e,v).trim(),!c)||e.sCount[v]-e.blkIndent>=4)break;for(y=f1(c),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===n+2&&(E=e.push("tbody_open","tbody",1),E.map=D=[n+2,0]),E=e.push("tr_open","tr",1),E.map=[v,v+1],d=0;d<g;d++)E=e.push("td_open","td",1),C[d]&&(E.attrs=[["style","text-align:"+C[d]]]),E=e.push("inline","",0),E.content=y[d]?y[d].trim():"",E.children=[],E=e.push("td_close","td",-1);E=e.push("tr_close","tr",-1)}return D&&(E=e.push("tbody_close","tbody",-1),D[1]=v),E=e.push("table_close","table",-1),N[1]=v,e.parentType=T,e.line=v,!0},m4e=function(e,n,o){var i,a,c;if(e.sCount[n]-e.blkIndent<4)return!1;for(a=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,a=i;continue}break}return e.line=a,c=e.push("code_block","code",0),c.content=e.getLines(n,a,4+e.blkIndent,!1)+`
|
|
284
|
+
`,c.map=[n,e.line],!0},v4e=function(e,n,o,i){var a,c,f,d,h,v,y,g=!1,E=e.bMarks[n]+e.tShift[n],C=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||E+3>C||(a=e.src.charCodeAt(E),a!==126&&a!==96)||(h=E,E=e.skipChars(E,a),c=E-h,c<3)||(y=e.src.slice(h,E),f=e.src.slice(E,C),a===96&&f.indexOf(String.fromCharCode(a))>=0))return!1;if(i)return!0;for(d=n;d++,!(d>=o||(E=h=e.bMarks[d]+e.tShift[d],C=e.eMarks[d],E<C&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(E)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(E=e.skipChars(E,a),!(E-h<c)&&(E=e.skipSpaces(E),!(E<C)))){g=!0;break}return c=e.sCount[n],e.line=d+(g?1:0),v=e.push("fence","code",0),v.info=f,v.content=e.getLines(n+1,d,c,!0),v.markup=y,v.map=[n,e.line],!0},p1=tt.isSpace,g4e=function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G=e.lineMax,Q=e.bMarks[n]+e.tShift[n],oe=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(Q++)!==62)return!1;if(i)return!0;for(d=E=e.sCount[n]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[n]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C=[e.bMarks[n]],e.bMarks[n]=Q;Q<oe&&(c=e.src.charCodeAt(Q),p1(c));){c===9?E+=4-(E+e.bsCount[n]+(a?1:0))%4:E++;Q++}for(S=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(V?1:0),v=Q>=oe,T=[e.sCount[n]],e.sCount[n]=E-d,O=[e.tShift[n]],e.tShift[n]=Q-e.bMarks[n],P=e.md.block.ruler.getRules("blockquote"),D=e.parentType,e.parentType="blockquote",g=n+1;g<o&&(K=e.sCount[g]<e.blkIndent,Q=e.bMarks[g]+e.tShift[g],oe=e.eMarks[g],!(Q>=oe));g++){if(e.src.charCodeAt(Q++)===62&&!K){for(d=E=e.sCount[g]+1,e.src.charCodeAt(Q)===32?(Q++,d++,E++,a=!1,V=!0):e.src.charCodeAt(Q)===9?(V=!0,(e.bsCount[g]+E)%4===3?(Q++,d++,E++,a=!1):a=!0):V=!1,C.push(e.bMarks[g]),e.bMarks[g]=Q;Q<oe&&(c=e.src.charCodeAt(Q),p1(c));){c===9?E+=4-(E+e.bsCount[g]+(a?1:0))%4:E++;Q++}v=Q>=oe,S.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(V?1:0),T.push(e.sCount[g]),e.sCount[g]=E-d,O.push(e.tShift[g]),e.tShift[g]=Q-e.bMarks[g];continue}if(v)break;for(Y=!1,f=0,h=P.length;f<h;f++)if(P[f](e,g,o,!0)){Y=!0;break}if(Y){e.lineMax=g,e.blkIndent!==0&&(C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}C.push(e.bMarks[g]),S.push(e.bsCount[g]),O.push(e.tShift[g]),T.push(e.sCount[g]),e.sCount[g]=-1}for(N=e.blkIndent,e.blkIndent=0,U=e.push("blockquote_open","blockquote",1),U.markup=">",U.map=y=[n,0],e.md.block.tokenize(e,n,g),U=e.push("blockquote_close","blockquote",-1),U.markup=">",e.lineMax=G,e.parentType=D,y[1]=e.line,f=0;f<O.length;f++)e.bMarks[f+n]=C[f],e.tShift[f+n]=O[f],e.sCount[f+n]=T[f],e.bsCount[f+n]=S[f];return e.blkIndent=N,!0},y4e=tt.isSpace,b4e=function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(c=1;h<v;){if(f=e.src.charCodeAt(h++),f!==a&&!y4e(f))return!1;f===a&&c++}return c<3?!1:(i||(e.line=n+1,d=e.push("hr","hr",0),d.map=[n,e.line],d.markup=Array(c+1).join(String.fromCharCode(a))),!0)},y_=tt.isSpace;function d1(t,e){var n,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(a=t.src.charCodeAt(o),!y_(a))?-1:o}function h1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=a)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<a&&(n=t.src.charCodeAt(i),!y_(n))?-1:i}function E4e(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var _4e=function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y,P,U,K,G,Q,oe,_e,H,R,x,j,J=!1,te=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(J=!0),(oe=h1(e,n))>=0){if(y=!0,H=e.bMarks[n]+e.tShift[n],D=Number(e.src.slice(H,oe-1)),J&&D!==1)return!1}else if((oe=d1(e,n))>=0)y=!1;else return!1;if(J&&e.skipSpaces(oe)>=e.eMarks[n])return!1;if(N=e.src.charCodeAt(oe-1),i)return!0;for(S=e.tokens.length,y?(j=e.push("ordered_list_open","ol",1),D!==1&&(j.attrs=[["start",D]])):j=e.push("bullet_list_open","ul",1),j.map=C=[n,0],j.markup=String.fromCharCode(N),O=n,_e=!1,x=e.md.block.ruler.getRules("list"),P=e.parentType,e.parentType="list";O<o;){for(Q=oe,T=e.eMarks[O],v=V=e.sCount[O]+oe-(e.bMarks[n]+e.tShift[n]);Q<T;){if(a=e.src.charCodeAt(Q),a===9)V+=4-(V+e.bsCount[O])%4;else if(a===32)V++;else break;Q++}if(c=Q,c>=T?h=1:h=V-v,h>4&&(h=1),d=v+h,j=e.push("list_item_open","li",1),j.markup=String.fromCharCode(N),j.map=g=[n,0],y&&(j.info=e.src.slice(H,oe-1)),G=e.tight,K=e.tShift[n],U=e.sCount[n],Y=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=V,c>=T&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,n,o,!0),(!e.tight||_e)&&(te=!1),_e=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Y,e.tShift[n]=K,e.sCount[n]=U,e.tight=G,j=e.push("list_item_close","li",-1),j.markup=String.fromCharCode(N),O=n=e.line,g[1]=O,c=e.bMarks[n],O>=o||e.sCount[O]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(R=!1,f=0,E=x.length;f<E;f++)if(x[f](e,O,o,!0)){R=!0;break}if(R)break;if(y){if(oe=h1(e,O),oe<0)break;H=e.bMarks[O]+e.tShift[O]}else if(oe=d1(e,O),oe<0)break;if(N!==e.src.charCodeAt(oe-1))break}return y?j=e.push("ordered_list_close","ol",-1):j=e.push("bullet_list_close","ul",-1),j.markup=String.fromCharCode(N),C[1]=O,e.line=O,e.parentType=P,te&&E4e(e,S),!0},k4e=tt.normalizeReference,Xc=tt.isSpace,x4e=function(e,n,o,i){var a,c,f,d,h,v,y,g,E,C,S,N,D,T,O,V,Y=0,P=e.bMarks[n]+e.tShift[n],U=e.eMarks[n],K=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(P)!==91)return!1;for(;++P<U;)if(e.src.charCodeAt(P)===93&&e.src.charCodeAt(P-1)!==92){if(P+1===U||e.src.charCodeAt(P+1)!==58)return!1;break}for(d=e.lineMax,O=e.md.block.ruler.getRules("reference"),C=e.parentType,e.parentType="reference";K<d&&!e.isEmpty(K);K++)if(!(e.sCount[K]-e.blkIndent>3)&&!(e.sCount[K]<0)){for(T=!1,v=0,y=O.length;v<y;v++)if(O[v](e,K,d,!0)){T=!0;break}if(T)break}for(D=e.getLines(n,K,e.blkIndent,!1).trim(),U=D.length,P=1;P<U;P++){if(a=D.charCodeAt(P),a===91)return!1;if(a===93){E=P;break}else a===10?Y++:a===92&&(P++,P<U&&D.charCodeAt(P)===10&&Y++)}if(E<0||D.charCodeAt(E+1)!==58)return!1;for(P=E+2;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;if(S=e.md.helpers.parseLinkDestination(D,P,U),!S.ok||(h=e.md.normalizeLink(S.str),!e.md.validateLink(h)))return!1;for(P=S.pos,Y+=S.lines,c=P,f=Y,N=P;P<U;P++)if(a=D.charCodeAt(P),a===10)Y++;else if(!Xc(a))break;for(S=e.md.helpers.parseLinkTitle(D,P,U),P<U&&N!==P&&S.ok?(V=S.str,P=S.pos,Y+=S.lines):(V="",P=c,Y=f);P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;if(P<U&&D.charCodeAt(P)!==10&&V)for(V="",P=c,Y=f;P<U&&(a=D.charCodeAt(P),!!Xc(a));)P++;return P<U&&D.charCodeAt(P)!==10||(g=k4e(D.slice(1,E)),!g)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:V,href:h}),e.parentType=C,e.line=n+Y+1),!0)},w4e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wu={},$4e="[a-zA-Z_:][a-zA-Z0-9:._-]*",C4e="[^\"'=<>`\\x00-\\x20]+",A4e="'[^']*'",S4e='"[^"]*"',T4e="(?:"+C4e+"|"+A4e+"|"+S4e+")",D4e="(?:\\s+"+$4e+"(?:\\s*=\\s*"+T4e+")?)",b_="<[A-Za-z][A-Za-z0-9\\-]*"+D4e+"*\\s*\\/?>",E_="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",N4e="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",O4e="<[?][\\s\\S]*?[?]>",I4e="<![A-Z]+\\s+[^>]*>",L4e="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",F4e=new RegExp("^(?:"+b_+"|"+E_+"|"+N4e+"|"+O4e+"|"+I4e+"|"+L4e+")"),R4e=new RegExp("^(?:"+b_+"|"+E_+")");wu.HTML_TAG_RE=F4e;wu.HTML_OPEN_CLOSE_TAG_RE=R4e;var M4e=w4e,q4e=wu.HTML_OPEN_CLOSE_TAG_RE,qi=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+M4e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(q4e.source+"\\s*$"),/^$/,!1]],P4e=function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(h)!==60)return!1;for(d=e.src.slice(h,v),a=0;a<qi.length&&!qi[a][0].test(d);a++);if(a===qi.length)return!1;if(i)return qi[a][2];if(c=n+1,!qi[a][1].test(d)){for(;c<o&&!(e.sCount[c]<e.blkIndent);c++)if(h=e.bMarks[c]+e.tShift[c],v=e.eMarks[c],d=e.src.slice(h,v),qi[a][1].test(d)){d.length!==0&&c++;break}}return e.line=c,f=e.push("html_block","",0),f.map=[n,c],f.content=e.getLines(n,c,e.blkIndent,!0),!0},m1=tt.isSpace,B4e=function(e,n,o,i){var a,c,f,d,h=e.bMarks[n]+e.tShift[n],v=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(a=e.src.charCodeAt(h),a!==35||h>=v))return!1;for(c=1,a=e.src.charCodeAt(++h);a===35&&h<v&&c<=6;)c++,a=e.src.charCodeAt(++h);return c>6||h<v&&!m1(a)?!1:(i||(v=e.skipSpacesBack(v,h),f=e.skipCharsBack(v,35,h),f>h&&m1(e.src.charCodeAt(f-1))&&(v=f),e.line=n+1,d=e.push("heading_open","h"+String(c),1),d.markup="########".slice(0,c),d.map=[n,e.line],d=e.push("inline","",0),d.content=e.src.slice(h,v).trim(),d.map=[n,e.line],d.children=[],d=e.push("heading_close","h"+String(c),-1),d.markup="########".slice(0,c)),!0)},V4e=function(e,n,o){var i,a,c,f,d,h,v,y,g,E=n+1,C,S=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(C=e.parentType,e.parentType="paragraph";E<o&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3)){if(e.sCount[E]>=e.blkIndent&&(h=e.bMarks[E]+e.tShift[E],v=e.eMarks[E],h<v&&(g=e.src.charCodeAt(h),(g===45||g===61)&&(h=e.skipChars(h,g),h=e.skipSpaces(h),h>=v)))){y=g===61?1:2;break}if(!(e.sCount[E]<0)){for(a=!1,c=0,f=S.length;c<f;c++)if(S[c](e,E,o,!0)){a=!0;break}if(a)break}}return y?(i=e.getLines(n,E,e.blkIndent,!1).trim(),e.line=E+1,d=e.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(g),d.map=[n,e.line],d=e.push("inline","",0),d.content=i,d.map=[n,e.line-1],d.children=[],d=e.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(g),e.parentType=C,!0):!1},j4e=function(e,n){var o,i,a,c,f,d,h=n+1,v=e.md.block.ruler.getRules("paragraph"),y=e.lineMax;for(d=e.parentType,e.parentType="paragraph";h<y&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)&&!(e.sCount[h]<0)){for(i=!1,a=0,c=v.length;a<c;a++)if(v[a](e,h,y,!0)){i=!0;break}if(i)break}return o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h,f=e.push("paragraph_open","p",1),f.map=[n,e.line],f=e.push("inline","",0),f.content=o,f.map=[n,e.line],f.children=[],f=e.push("paragraph_close","p",-1),e.parentType=d,!0},__=Nh,$u=tt.isSpace;function Ar(t,e,n,o){var i,a,c,f,d,h,v,y;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",a=this.src,y=!1,c=f=h=v=0,d=a.length;f<d;f++){if(i=a.charCodeAt(f),!y)if($u(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||f===d-1)&&(i!==10&&f++,this.bMarks.push(c),this.eMarks.push(f),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,c=f+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ar.prototype.push=function(t,e,n){var o=new __(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Ar.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Ar.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Ar.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!$u(n));e++);return e};Ar.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!$u(this.src.charCodeAt(--e)))return e+1;return e};Ar.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Ar.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Ar.prototype.getLines=function(e,n,o,i){var a,c,f,d,h,v,y,g=e;if(e>=n)return"";for(v=new Array(n-e),a=0;g<n;g++,a++){for(c=0,y=d=this.bMarks[g],g+1<n||i?h=this.eMarks[g]+1:h=this.eMarks[g];d<h&&c<o;){if(f=this.src.charCodeAt(d),$u(f))f===9?c+=4-(c+this.bsCount[g])%4:c++;else if(d-y<this.tShift[g])c++;else break;d++}c>o?v[a]=new Array(c-o+1).join(" ")+this.src.slice(d,h):v[a]=this.src.slice(d,h)}return v.join("")};Ar.prototype.Token=__;var U4e=Ar,z4e=Dh,Kc=[["table",h4e,["paragraph","reference"]],["code",m4e],["fence",v4e,["paragraph","reference","blockquote","list"]],["blockquote",g4e,["paragraph","reference","blockquote","list"]],["hr",b4e,["paragraph","reference","blockquote","list"]],["list",_4e,["paragraph","reference","blockquote"]],["reference",x4e],["html_block",P4e,["paragraph","reference","blockquote"]],["heading",B4e,["paragraph","reference","blockquote"]],["lheading",V4e],["paragraph",j4e]];function Cu(){this.ruler=new z4e;for(var t=0;t<Kc.length;t++)this.ruler.push(Kc[t][0],Kc[t][1],{alt:(Kc[t][2]||[]).slice()})}Cu.prototype.tokenize=function(t,e,n){for(var o,i,a=this.ruler.getRules(""),c=a.length,f=e,d=!1,h=t.md.options.maxNesting;f<n&&(t.line=f=t.skipEmptyLines(f),!(f>=n||t.sCount[f]<t.blkIndent));){if(t.level>=h){t.line=n;break}for(i=0;i<c&&(o=a[i](t,f,n,!1),!o);i++);t.tight=!d,t.isEmpty(t.line-1)&&(d=!0),f=t.line,f<n&&t.isEmpty(f)&&(d=!0,f++,t.line=f)}};Cu.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Cu.prototype.State=U4e;var H4e=Cu;function G4e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var W4e=function(e,n){for(var o=e.pos;o<e.posMax&&!G4e(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Q4e=tt.isSpace,Y4e=function(e,n){var o,i,a,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(a=o-1;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(c++;c<i&&Q4e(e.src.charCodeAt(c));)c++;return e.pos=c,!0},J4e=tt.isSpace,Ih=[];for(var v1=0;v1<256;v1++)Ih.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Ih[t.charCodeAt(0)]=1});var Z4e=function(e,n){var o,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<a){if(o=e.src.charCodeAt(i),o<256&&Ih[o]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(o===10){for(n||e.push("hardbreak","br",0),i++;i<a&&(o=e.src.charCodeAt(i),!!J4e(o));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},X4e=function(e,n){var o,i,a,c,f,d,h,v,y=e.pos,g=e.src.charCodeAt(y);if(g!==96)return!1;for(o=y,y++,i=e.posMax;y<i&&e.src.charCodeAt(y)===96;)y++;if(a=e.src.slice(o,y),h=a.length,e.backticksScanned&&(e.backticks[h]||0)<=o)return n||(e.pending+=a),e.pos+=h,!0;for(f=d=y;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<i&&e.src.charCodeAt(d)===96;)d++;if(v=d-f,v===h)return n||(c=e.push("code_inline","code",0),c.markup=a,c.content=e.src.slice(y,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=d,!0;e.backticks[v]=f}return e.backticksScanned=!0,n||(e.pending+=a),e.pos+=h,!0},Au={};Au.tokenize=function(e,n){var o,i,a,c,f,d=e.pos,h=e.src.charCodeAt(d);if(n||h!==126||(i=e.scanDelims(e.pos,!0),c=i.length,f=String.fromCharCode(h),c<2))return!1;for(c%2&&(a=e.push("text","",0),a.content=f,c--),o=0;o<c;o+=2)a=e.push("text","",0),a.content=f+f,e.delimiters.push({marker:h,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function g1(t,e){var n,o,i,a,c,f=[],d=e.length;for(n=0;n<d;n++)i=e[n],i.marker===126&&i.end!==-1&&(a=e[i.end],c=t.tokens[i.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[a.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&f.push(a.token-1));for(;f.length;){for(n=f.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(c=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=c)}}Au.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(g1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&g1(e,o[n].delimiters)};var Su={};Su.tokenize=function(e,n){var o,i,a,c=e.pos,f=e.src.charCodeAt(c);if(n||f!==95&&f!==42)return!1;for(i=e.scanDelims(e.pos,f===42),o=0;o<i.length;o++)a=e.push("text","",0),a.content=String.fromCharCode(f),e.delimiters.push({marker:f,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function y1(t,e){var n,o,i,a,c,f,d=e.length;for(n=d-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],f=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,c=String.fromCharCode(o.marker),a=t.tokens[o.token],a.type=f?"strong_open":"em_open",a.tag=f?"strong":"em",a.nesting=1,a.markup=f?c+c:c,a.content="",a=t.tokens[i.token],a.type=f?"strong_close":"em_close",a.tag=f?"strong":"em",a.nesting=-1,a.markup=f?c+c:c,a.content="",f&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Su.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(y1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&y1(e,o[n].delimiters)};var K4e=tt.normalizeReference,ap=tt.isSpace,eje=function(e,n){var o,i,a,c,f,d,h,v,y,g="",E="",C=e.pos,S=e.posMax,N=e.pos,D=!0;if(e.src.charCodeAt(e.pos)!==91||(f=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(d=c+1,d<S&&e.src.charCodeAt(d)===40){for(D=!1,d++;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(d>=S)return!1;if(N=d,h=e.md.helpers.parseLinkDestination(e.src,d,e.posMax),h.ok){for(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?d=h.pos:g="",N=d;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);if(h=e.md.helpers.parseLinkTitle(e.src,d,e.posMax),d<S&&N!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(i=e.src.charCodeAt(d),!(!ap(i)&&i!==10));d++);}(d>=S||e.src.charCodeAt(d)!==41)&&(D=!0),d++}if(D){if(typeof e.env.references>"u")return!1;if(d<S&&e.src.charCodeAt(d)===91?(N=d+1,d=e.md.helpers.parseLinkLabel(e,d),d>=0?a=e.src.slice(N,d++):d=c+1):d=c+1,a||(a=e.src.slice(f,c)),v=e.env.references[K4e(a)],!v)return e.pos=C,!1;g=v.href,E=v.title}return n||(e.pos=f,e.posMax=c,y=e.push("link_open","a",1),y.attrs=o=[["href",g]],E&&o.push(["title",E]),e.md.inline.tokenize(e),y=e.push("link_close","a",-1)),e.pos=d,e.posMax=S,!0},tje=tt.normalizeReference,cp=tt.isSpace,nje=function(e,n){var o,i,a,c,f,d,h,v,y,g,E,C,S,N="",D=e.pos,T=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(d=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),f<0))return!1;if(h=f+1,h<T&&e.src.charCodeAt(h)===40){for(h++;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(h>=T)return!1;for(S=h,y=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),y.ok&&(N=e.md.normalizeLink(y.str),e.md.validateLink(N)?h=y.pos:N=""),S=h;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);if(y=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<T&&S!==h&&y.ok)for(g=y.str,h=y.pos;h<T&&(i=e.src.charCodeAt(h),!(!cp(i)&&i!==10));h++);else g="";if(h>=T||e.src.charCodeAt(h)!==41)return e.pos=D,!1;h++}else{if(typeof e.env.references>"u")return!1;if(h<T&&e.src.charCodeAt(h)===91?(S=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?c=e.src.slice(S,h++):h=f+1):h=f+1,c||(c=e.src.slice(d,f)),v=e.env.references[tje(c)],!v)return e.pos=D,!1;N=v.href,g=v.title}return n||(a=e.src.slice(d,f),e.md.inline.parse(a,e.md,e.env,C=[]),E=e.push("image","img",0),E.attrs=o=[["src",N],["alt",""]],E.children=C,E.content=a,g&&o.push(["title",g])),e.pos=h,e.posMax=T,!0},rje=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,oje=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ije=function(e,n){var o,i,a,c,f,d,h=e.pos;if(e.src.charCodeAt(h)!==60)return!1;for(f=e.pos,d=e.posMax;;){if(++h>=d||(c=e.src.charCodeAt(h),c===60))return!1;if(c===62)break}return o=e.src.slice(f+1,h),oje.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):rje.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(a=e.push("link_open","a",1),a.attrs=[["href",i]],a.markup="autolink",a.info="auto",a=e.push("text","",0),a.content=e.md.normalizeLinkText(o),a=e.push("link_close","a",-1),a.markup="autolink",a.info="auto"),e.pos+=o.length+2,!0):!1):!1},sje=wu.HTML_TAG_RE;function aje(t){var e=t|32;return e>=97&&e<=122}var cje=function(e,n){var o,i,a,c,f=e.pos;return!e.md.options.html||(a=e.posMax,e.src.charCodeAt(f)!==60||f+2>=a)||(o=e.src.charCodeAt(f+1),o!==33&&o!==63&&o!==47&&!aje(o))||(i=e.src.slice(f).match(sje),!i)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(f,f+i[0].length)),e.pos+=i[0].length,!0)},b1=p_,lje=tt.has,uje=tt.isValidEntityCode,E1=tt.fromCodePoint,fje=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,pje=/^&([a-z][a-z0-9]{1,31});/i,dje=function(e,n){var o,i,a,c=e.pos,f=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<f){if(o=e.src.charCodeAt(c+1),o===35){if(a=e.src.slice(c).match(fje),a)return n||(i=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),e.pending+=uje(i)?E1(i):E1(65533)),e.pos+=a[0].length,!0}else if(a=e.src.slice(c).match(pje),a&&lje(b1,a[1]))return n||(e.pending+=b1[a[1]]),e.pos+=a[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function _1(t,e){var n,o,i,a,c,f,d,h,v={},y=e.length;if(y){var g=0,E=-2,C=[];for(n=0;n<y;n++)if(i=e[n],C.push(0),(e[g].marker!==i.marker||E!==i.token-1)&&(g=n),E=i.token,i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),c=v[i.marker][(i.open?3:0)+i.length%3],o=g-C[g]-1,f=o;o>c;o-=C[o]+1)if(a=e[o],a.marker===i.marker&&a.open&&a.end<0&&(d=!1,(a.close||i.open)&&(a.length+i.length)%3===0&&(a.length%3!==0||i.length%3!==0)&&(d=!0),!d)){h=o>0&&!e[o-1].open?C[o-1]+1:0,C[n]=n-o+h,C[o]=h,i.open=!1,a.end=n,a.close=!1,f=-1,E=-2;break}f!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}}var hje=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(_1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&_1(e,o[n].delimiters)},mje=function(e){var n,o,i=0,a=e.tokens,c=e.tokens.length;for(n=o=0;n<c;n++)a[n].nesting<0&&i--,a[n].level=i,a[n].nesting>0&&i++,a[n].type==="text"&&n+1<c&&a[n+1].type==="text"?a[n+1].content=a[n].content+a[n+1].content:(n!==o&&(a[o]=a[n]),o++);n!==o&&(a.length=o)},Lh=Nh,k1=tt.isWhiteSpace,x1=tt.isPunctChar,w1=tt.isMdAsciiPunct;function Za(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}Za.prototype.pushPending=function(){var t=new Lh("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Za.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Lh(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};Za.prototype.scanDelims=function(t,e){var n=t,o,i,a,c,f,d,h,v,y,g=!0,E=!0,C=this.posMax,S=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<C&&this.src.charCodeAt(n)===S;)n++;return a=n-t,i=n<C?this.src.charCodeAt(n):32,h=w1(o)||x1(String.fromCharCode(o)),y=w1(i)||x1(String.fromCharCode(i)),d=k1(o),v=k1(i),v?g=!1:y&&(d||h||(g=!1)),d?E=!1:h&&(v||y||(E=!1)),e?(c=g,f=E):(c=g&&(!E||h),f=E&&(!g||y)),{can_open:c,can_close:f,length:a}};Za.prototype.Token=Lh;var vje=Za,$1=Dh,lp=[["text",W4e],["newline",Y4e],["escape",Z4e],["backticks",X4e],["strikethrough",Au.tokenize],["emphasis",Su.tokenize],["link",eje],["image",nje],["autolink",ije],["html_inline",cje],["entity",dje]],up=[["balance_pairs",hje],["strikethrough",Au.postProcess],["emphasis",Su.postProcess],["text_collapse",mje]];function Xa(){var t;for(this.ruler=new $1,t=0;t<lp.length;t++)this.ruler.push(lp[t][0],lp[t][1]);for(this.ruler2=new $1,t=0;t<up.length;t++)this.ruler2.push(up[t][0],up[t][1])}Xa.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),a=i.length,c=t.md.options.maxNesting,f=t.cache;if(typeof f[o]<"u"){t.pos=f[o];return}if(t.level<c)for(n=0;n<a&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,f[o]=t.pos};Xa.prototype.tokenize=function(t){for(var e,n,o=this.ruler.getRules(""),i=o.length,a=t.posMax,c=t.md.options.maxNesting;t.pos<a;){if(t.level<c)for(n=0;n<i&&(e=o[n](t,!1),!e);n++);if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Xa.prototype.parse=function(t,e,n,o){var i,a,c,f=new this.State(t,e,n,o);for(this.tokenize(f),a=this.ruler2.getRules(""),c=a.length,i=0;i<c;i++)a[i](f)};Xa.prototype.State=vje;var gje=Xa,fp,C1;function yje(){return C1||(C1=1,fp=function(t){var e={};e.src_Any=d_().source,e.src_Cc=h_().source,e.src_Z=m_().source,e.src_P=Th.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),fp}function Zp(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Tu(t){return Object.prototype.toString.call(t)}function bje(t){return Tu(t)==="[object String]"}function Eje(t){return Tu(t)==="[object Object]"}function _je(t){return Tu(t)==="[object RegExp]"}function A1(t){return Tu(t)==="[object Function]"}function kje(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var k_={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function xje(t){return Object.keys(t||{}).reduce(function(e,n){return e||k_.hasOwnProperty(n)},!1)}var wje={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},$je="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Cje="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Aje(t){t.__index__=-1,t.__text_cache__=""}function Sje(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function S1(){return function(t,e){e.normalize(t)}}function Rl(t){var e=t.re=yje()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push($je),n.push(e.src_xn),e.src_tlds=n.join("|");function o(f){return f.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function a(f,d){throw new Error('(LinkifyIt) Invalid schema "'+f+'": '+d)}Object.keys(t.__schemas__).forEach(function(f){var d=t.__schemas__[f];if(d!==null){var h={validate:null,link:null};if(t.__compiled__[f]=h,Eje(d)){_je(d.validate)?h.validate=Sje(d.validate):A1(d.validate)?h.validate=d.validate:a(f,d),A1(d.normalize)?h.normalize=d.normalize:d.normalize?a(f,d):h.normalize=S1();return}if(bje(d)){i.push(f);return}a(f,d)}}),i.forEach(function(f){t.__compiled__[t.__schemas__[f]]&&(t.__compiled__[f].validate=t.__compiled__[t.__schemas__[f]].validate,t.__compiled__[f].normalize=t.__compiled__[t.__schemas__[f]].normalize)}),t.__compiled__[""]={validate:null,normalize:S1()};var c=Object.keys(t.__compiled__).filter(function(f){return f.length>0&&t.__compiled__[f]}).map(kje).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Aje(t)}function Tje(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function T1(t,e){var n=new Tje(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Rn(t,e){if(!(this instanceof Rn))return new Rn(t,e);e||xje(t)&&(e=t,t={}),this.__opts__=Zp({},k_,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Zp({},wje,t),this.__compiled__={},this.__tlds__=Cje,this.__tlds_replaced__=!1,this.re={},Rl(this)}Rn.prototype.add=function(e,n){return this.__schemas__[e]=n,Rl(this),this};Rn.prototype.set=function(e){return this.__opts__=Zp(this.__opts__,e),this};Rn.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,a,c,f,d,h,v;if(this.re.schema_test.test(e)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(e))!==null;)if(a=this.testSchemaAt(e,n[2],d.lastIndex),a){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=e.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=o.index+o[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=e.indexOf("@"),v>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(c=i.index+i[1].length,f=i.index+i[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&f>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=f))),this.__index__>=0};Rn.prototype.pretest=function(e){return this.re.pretest.test(e)};Rn.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};Rn.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(T1(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(T1(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};Rn.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,a){return o!==a[i-1]}).reverse(),Rl(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Rl(this),this)};Rn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Rn.prototype.onCompile=function(){};var Dje=Rn,Nje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Oje={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},Ije={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},fa=tt,Lje=xu,Fje=z9e,Rje=d4e,Mje=H4e,qje=gje,Pje=Dje,Wo=ys,x_=rx,Bje={default:Nje,zero:Oje,commonmark:Ije},Vje=/^(vbscript|javascript|file|data):/,jje=/^data:image\/(gif|png|jpeg|webp);/;function Uje(t){var e=t.trim().toLowerCase();return Vje.test(e)?!!jje.test(e):!0}var w_=["http:","https:","mailto:"];function zje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||w_.indexOf(e.protocol)>=0))try{e.hostname=x_.toASCII(e.hostname)}catch{}return Wo.encode(Wo.format(e))}function Hje(t){var e=Wo.parse(t,!0);if(e.hostname&&(!e.protocol||w_.indexOf(e.protocol)>=0))try{e.hostname=x_.toUnicode(e.hostname)}catch{}return Wo.decode(Wo.format(e),Wo.decode.defaultChars+"%")}function Mn(t,e){if(!(this instanceof Mn))return new Mn(t,e);e||fa.isString(t)||(e=t||{},t="default"),this.inline=new qje,this.block=new Mje,this.core=new Rje,this.renderer=new Fje,this.linkify=new Pje,this.validateLink=Uje,this.normalizeLink=zje,this.normalizeLinkText=Hje,this.utils=fa,this.helpers=fa.assign({},Lje),this.options={},this.configure(t),e&&this.set(e)}Mn.prototype.set=function(t){return fa.assign(this.options,t),this};Mn.prototype.configure=function(t){var e=this,n;if(fa.isString(t)&&(n=t,t=Bje[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};Mn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Mn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Mn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};Mn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};Mn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Mn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};Mn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Gje=Mn,Wje=Gje;const Qje=Z1(Wje);var Yje=new Qje({breaks:!0,linkify:!0});function Tn(t){var e=t.markdown,n=t.className;return e?L.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Yje.render(e)}}):L.createElement("div",null)}var Jje=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],c;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a};function Zje(){var t,e=$r({nonNull:!0}).explorerNavStack,n=Jje(L.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],c=a.def;if(!c||go(c))return null;var f,d;if(c&&"args"in c&&c.args.length>0){f=L.createElement("div",{id:"doc-args",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"arguments"),c.args.filter(function(y){return!y.deprecationReason}).map(function(y){return L.createElement("div",{key:y.name,className:"doc-category-item"},L.createElement("div",null,L.createElement(Ll,{arg:y})),L.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&L.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}));var h=c.args.filter(function(y){return!!y.deprecationReason});h.length>0&&(d=L.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated arguments"),o?h.map(function(y,g){return L.createElement("div",{key:g},L.createElement("div",null,L.createElement(Ll,{arg:y})),L.createElement(Tn,{className:"doc-value-description",markdown:y.description}),y&&"deprecationReason"in y&&L.createElement(Tn,{className:"doc-deprecation",markdown:y==null?void 0:y.deprecationReason}))}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){return i(!o)}},"Show deprecated arguments...")))}var v;return!((t=c==null?void 0:c.astNode)===null||t===void 0)&&t.directives&&c.astNode.directives.length>0&&(v=L.createElement("div",{id:"doc-directives",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"directives"),c.astNode.directives.map(function(y){return L.createElement("div",{key:y.name.value,className:"doc-category-item"},L.createElement("div",null,L.createElement(nce,{directive:y})))}))),L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:c.description||"No Description"}),c&&"deprecationReason"in c&&L.createElement(Tn,{className:"doc-deprecation",markdown:c.deprecationReason}),L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"type"),L.createElement(In,{type:c.type})),f,v,d)}function Xje(){var t,e,n=Bn({nonNull:!0}).schema;if(!n)return null;var o=n.getQueryType(),i=(t=n.getMutationType)===null||t===void 0?void 0:t.call(n),a=(e=n.getSubscriptionType)===null||e===void 0?void 0:e.call(n);return L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"root types"),o?L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"query"),": ",L.createElement(In,{type:o})):null,i&&L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"mutation"),": ",L.createElement(In,{type:i})),a&&L.createElement("div",{className:"doc-category-item"},L.createElement("span",{className:"keyword"},"subscription"),": ",L.createElement(In,{type:a}))))}function Kje(t,e){var n;return function(){for(var o=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];n&&window.clearTimeout(n),n=window.setTimeout(function(){n=null,e.apply(o,i)},t)}}var e6e=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),t6e=function(t){e6e(e,t);function e(n){var o=t.call(this,n)||this;return o.handleChange=function(i){var a=i.currentTarget.value;o.setState({value:a}),o.debouncedOnSearch(a)},o.handleClear=function(){o.setState({value:""}),o.props.onSearch("")},o.state={value:n.value||""},o.debouncedOnSearch=Kje(200,o.props.onSearch),o}return e.prototype.render=function(){return L.createElement("label",{className:"search-box"},L.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),L.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&L.createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))},e}(L.Component);function $_(t){var e=$r({nonNull:!0}).push;return L.createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),e({name:t.field.name,def:t.field})},href:"#"},t.field.name)}var n6e=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function r6e(){var t,e,n=$r({nonNull:!0}).explorerNavStack,o=Bn({nonNull:!0}).schema,i=n[n.length-1];if(!o||!i.search)return null;var a=i.search,c=i.def,f=[],d=[],h=[],v=o.getTypeMap(),y=Object.keys(v);c&&(y=y.filter(function(D){return D!==c.name}),y.unshift(c.name));var g=function(D){if(f.length+d.length+h.length>=100)return"break";var T=v[D];if(c!==T&&pp(D,a)&&d.push(L.createElement("div",{className:"doc-category-item",key:D},L.createElement(In,{type:T}))),T&&"getFields"in T){var O=T.getFields();Object.keys(O).forEach(function(V){var Y=O[V],P;if(!pp(V,a))if("args"in Y&&Y.args.length){if(P=Y.args.filter(function(K){return pp(K.name,a)}),P.length===0)return}else return;var U=L.createElement("div",{className:"doc-category-item",key:D+"."+V},c!==T&&[L.createElement(In,{key:"type",type:T}),"."],L.createElement($_,{field:Y}),P&&["(",L.createElement("span",{key:"args"},P.map(function(K){return L.createElement(Ll,{key:K.name,arg:K,showDefaultValue:!1})})),")"]);c===T?f.push(U):h.push(U)})}};try{for(var E=n6e(y),C=E.next();!C.done;C=E.next()){var S=C.value,N=g(S);if(N==="break")break}}catch(D){t={error:D}}finally{try{C&&!C.done&&(e=E.return)&&e.call(E)}finally{if(t)throw t.error}}return f.length+d.length+h.length===0?L.createElement("span",{className:"doc-alert-text"},"No results found."):c&&d.length+h.length>0?L.createElement("div",null,f,L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"other results"),d,h)):L.createElement("div",{className:"doc-search-items"},f,d,h)}function pp(t,e){try{var n=e.replace(/[^_0-9A-Za-z]/g,function(o){return"\\"+o});return t.search(new RegExp(n,"i"))!==-1}catch{return t.toLowerCase().indexOf(e.toLowerCase())!==-1}}var o6e=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],c;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a};function i6e(){var t=Bn({nonNull:!0}).schema,e=$r({nonNull:!0}).explorerNavStack,n=o6e(ie.useState(!1),2),o=n[0],i=n[1],a=e[e.length-1],c=a.def;if(!t||!cs(c))return null;var f=null,d=[];St(c)?(f="possible types",d=t.getPossibleTypes(c)):Ke(c)?(f="implementations",d=t.getPossibleTypes(c)):Ue(c)&&(f="implements",d=c.getInterfaces());var h;d&&d.length>0&&(h=L.createElement("div",{id:"doc-types",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},f),d.map(function(O){return L.createElement("div",{key:O.name,className:"doc-category-item"},L.createElement(In,{type:O}))})));var v,y;if(c&&"getFields"in c){var g=c.getFields(),E=Object.keys(g).map(function(O){return g[O]});v=L.createElement("div",{id:"doc-fields",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"fields"),E.filter(function(O){return!O.deprecationReason}).map(function(O){return L.createElement(D1,{key:O.name,type:c,field:O})}));var C=E.filter(function(O){return!!O.deprecationReason});C.length>0&&(y=L.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated fields"),o?C.map(function(O){return L.createElement(D1,{key:O.name,type:c,field:O})}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated fields...")))}var S,N;if(xt(c)){var D=c.getValues();S=L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"values"),D.filter(function(O){return!O.deprecationReason}).map(function(O){return L.createElement(N1,{key:O.name,value:O})}));var T=D.filter(function(O){return!!O.deprecationReason});T.length>0&&(N=L.createElement("div",{className:"doc-category"},L.createElement("div",{className:"doc-category-title"},"deprecated values"),o?T.map(function(O){return L.createElement(N1,{key:O.name,value:O})}):L.createElement("button",{type:"button",className:"show-btn",onClick:function(){i(!0)}},"Show deprecated values...")))}return L.createElement("div",null,L.createElement(Tn,{className:"doc-type-description",markdown:"description"in c&&c.description||"No Description"}),Ue(c)&&h,v,y,S,N,!Ue(c)&&h)}function D1(t){var e=t.field;return L.createElement("div",{className:"doc-category-item"},L.createElement($_,{field:e}),"args"in e&&e.args&&e.args.length>0&&["(",L.createElement("span",{key:"args"},e.args.filter(function(n){return!n.deprecationReason}).map(function(n){return L.createElement(Ll,{key:n.name,arg:n})})),")"],": ",L.createElement(In,{type:e.type}),L.createElement(f_,{field:e}),e.description&&L.createElement(Tn,{className:"field-short-description",markdown:e.description}),"deprecationReason"in e&&e.deprecationReason&&L.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function N1(t){var e=t.value;return L.createElement("div",{className:"doc-category-item"},L.createElement("div",{className:"enum-value"},e.name),L.createElement(Tn,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&L.createElement(Tn,{className:"doc-deprecation",markdown:e.deprecationReason}))}function C_(t){var e=Bn({nonNull:!0}),n=e.fetchError,o=e.isFetching,i=e.schema,a=e.validationErrors,c=$r({nonNull:!0}),f=c.explorerNavStack,d=c.hide,h=c.pop,v=c.showSearch,y=f[f.length-1],g=t.schema===void 0?i:t.schema,E=null;n?E=L.createElement("div",{className:"error-container"},"Error fetching schema"):a.length>0?E=L.createElement("div",{className:"error-container"},"Schema is invalid: ",a[0].message):o?E=L.createElement("div",{className:"spinner-container"},L.createElement("div",{className:"spinner"})):g?y.search?E=L.createElement(r6e,null):f.length===1?E=L.createElement(Xje,null):go(y.def)?E=L.createElement(i6e,null):y.def&&(E=L.createElement(Zje,null)):E=L.createElement("div",{className:"error-container"},"No Schema Available");var C=f.length===1||go(y.def)&&"getFields"in y.def,S;return f.length>1&&(S=f[f.length-2].name),L.createElement("section",{className:"doc-explorer",key:y.name,"aria-label":"Documentation Explorer"},L.createElement("div",{className:"doc-explorer-title-bar"},S&&L.createElement("button",{type:"button",className:"doc-explorer-back",onClick:h,"aria-label":"Go back to ".concat(S)},S),L.createElement("div",{className:"doc-explorer-title"},y.title||y.name),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var N;d(),(N=t.onClose)===null||N===void 0||N.call(t)},"aria-label":"Close Documentation Explorer"},"✕"))),L.createElement("div",{className:"doc-explorer-contents"},C&&L.createElement(t6e,{value:y.search,placeholder:"Search ".concat(y.name,"..."),onSearch:v}),E))}var Ui=function(){return Ui=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ui.apply(this,arguments)},s6e=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],c;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a};function a6e(){var t=Ha({nonNull:!0}),e=t.hide,n=t.items;return L.createElement("section",{"aria-label":"History"},L.createElement("div",{className:"history-title-bar"},L.createElement("div",{className:"history-title"},"History"),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return e()},"aria-label":"Close History"},"✕"))),L.createElement("ul",{className:"history-contents"},n.slice().reverse().map(function(o,i){return L.createElement(c6e,{key:"".concat(i,":").concat(o.label||o.query),item:o})})))}function c6e(t){var e,n=Ha({nonNull:!0}),o=n.editLabel,i=n.toggleFavorite,a=Ga(),c=ie.useRef(null),f=s6e(ie.useState(!1),2),d=f[0],h=f[1];ie.useEffect(function(){d&&c.current&&c.current.focus()},[d]);var v=t.item.label||t.item.operationName||((e=t.item.query)===null||e===void 0?void 0:e.split(`
|
|
285
|
+
`).filter(function(g){return g.indexOf("#")!==0}).join("")),y=t.item.favorite?"★":"☆";return L.createElement("li",{className:d?"editable":void 0},d?L.createElement("input",{type:"text",defaultValue:t.item.label,ref:c,onBlur:function(g){g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.target.value}))},onKeyDown:function(g){g.keyCode===13&&(g.stopPropagation(),h(!1),o(Ui(Ui({},t.item),{label:g.currentTarget.value})))},placeholder:"Type a label"}):L.createElement("button",{type:"button",className:"history-label",onClick:function(){a(t.item)}},v),L.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),h(!0)},"aria-label":"Edit label"},"✎"),L.createElement("button",{type:"button",onClick:function(g){g.stopPropagation(),i(t.item)},"aria-label":t.item.favorite?"Remove favorite":"Add favorite"},y))}function dp(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function Xp(t){return JSON.stringify(t,null,2)}function l6e(t){return Object.assign(Object.assign({},t),{message:t.message,stack:t.stack})}function O1(t){return t instanceof Error?l6e(t):t}function u6e(t){return Array.isArray(t)?Xp({errors:t.map(e=>O1(e))}):Xp({errors:[O1(t)]})}function f6e(t){return Xp(t)}function p6e(t,e,n){const o=[];if(!t||!e)return{insertions:o,result:e};let i;try{i=Xn(e)}catch{return{insertions:o,result:e}}const a=n||d6e,c=new ai(t);return pn(i,{leave(f){c.leave(f)},enter(f){if(c.enter(f),f.kind==="Field"&&!f.selectionSet){const d=c.getType(),h=A_(v6e(d),a);if(h&&f.loc){const v=m6e(e,f.loc.start);o.push({index:f.loc.end,string:" "+Je(h).replace(/\n/g,`
|
|
286
|
+
`+v)})}}}}),{insertions:o,result:h6e(e,o)}}function d6e(t){if(!("getFields"in t))return[];const e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];const n=[];return Object.keys(e).forEach(o=>{dn(e[o].type)&&n.push(o)}),n}function A_(t,e){const n=Rt(t);if(!t||dn(t))return;const o=e(n);if(!(!Array.isArray(o)||o.length===0||!("getFields"in n)))return{kind:F.SELECTION_SET,selections:o.map(i=>{const a=n.getFields()[i],c=a?a.type:null;return{kind:F.FIELD,name:{kind:F.NAME,value:i},selectionSet:A_(c,e)}})}}function h6e(t,e){if(e.length===0)return t;let n="",o=0;return e.forEach(({index:i,string:a})=>{n+=t.slice(o,i)+a,o=i}),n+=t.slice(o),n}function m6e(t,e){let n=e,o=e;for(;n;){const i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(o=n)}return t.substring(n,o)}function v6e(t){if(t)return t}function g6e(t,e){var n;const o=new Map,i=[];for(const a of t)if(a.kind==="Field"){const c=e(a),f=o.get(c);if(!((n=a.directives)===null||n===void 0)&&n.length){const d=Object.assign({},a);i.push(d)}else if(f!=null&&f.selectionSet&&a.selectionSet)f.selectionSet.selections=[...f.selectionSet.selections,...a.selectionSet.selections];else if(!f){const d=Object.assign({},a);o.set(c,d),i.push(d)}}else i.push(a);return i}function S_(t,e,n){var o;const i=n?Rt(n).name:null,a=[],c=[];for(let f of e){if(f.kind==="FragmentSpread"){const d=f.name.value;if(!f.directives||f.directives.length===0){if(c.indexOf(d)>=0)continue;c.push(d)}const h=t[f.name.value];if(h){const{typeCondition:v,directives:y,selectionSet:g}=h;f={kind:F.INLINE_FRAGMENT,typeCondition:v,directives:y,selectionSet:g}}}if(f.kind===F.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){const d=f.typeCondition?f.typeCondition.name.value:null;if(!d||d===i){a.push(...S_(t,f.selectionSet.selections,n));continue}}a.push(f)}return a}function y6e(t,e){const n=e?new ai(e):null,o=Object.create(null);for(const a of t.definitions)a.kind===F.FRAGMENT_DEFINITION&&(o[a.name.value]=a);const i={SelectionSet(a){const c=n?n.getParentType():null;let{selections:f}=a;return f=S_(o,f,c),f=g6e(f,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},a),{selections:f})},FragmentDefinition(){return null}};return pn(t,n?qa(n,i):i)}function b6e(t,e,n){if(!n||n.length<1)return;const o=n.map(i=>{var a;return(a=i.name)===null||a===void 0?void 0:a.value});if(e&&o.indexOf(e)!==-1)return e;if(e&&t){const a=t.map(c=>{var f;return(f=c.name)===null||f===void 0?void 0:f.value}).indexOf(e);if(a!==-1&&a<o.length)return o[a]}return o[0]}var Ml=function(){return Ml=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ml.apply(this,arguments)};function E6e(t){return L.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(e){e.stopPropagation(),t.onClick()}})}function _6e(t){return L.createElement("button",Ml({},t.tabProps,{role:"tab",type:"button","aria-selected":t.isActive,title:t.title,className:"tab".concat(t.isActive?" active":""),onClick:t.onSelect}),t.title,t.isCloseable?L.createElement(E6e,{onClick:function(){return t.onClose()}}):null)}function k6e(t){return L.createElement("button",{type:"button",onClick:t.onClick,className:"tab-add",title:"Create new tab"},L.createElement("span",null,"+"))}function x6e(t){return L.createElement("div",Ml({role:"tablist",className:"tabs"},t.tabsProps),t.children)}var T_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Sa=function(){return Sa=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Sa.apply(this,arguments)},D_=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(n[o[i]]=t[o[i]]);return n},w6e=parseInt(L.version.slice(0,2),10);if(w6e<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
|
|
287
|
+
`));var zo=function(t){T_(e,t);function e(n){var o=t.call(this,n)||this;return o.ref=null,o}return e.prototype.componentDidMount=function(){typeof window<"u"&&(window.g=this)},e.prototype.render=function(){var n=this;return L.createElement($6e,Sa({},this.props,{ref:function(o){n.ref=o}}))},e.prototype.getQueryEditor=function(){var n;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),((n=this.ref)===null||n===void 0?void 0:n.getQueryEditor())||null},e.prototype.getVariableEditor=function(){var n;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),((n=this.ref)===null||n===void 0?void 0:n.getVariableEditor())||null},e.prototype.getHeaderEditor=function(){var n;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),((n=this.ref)===null||n===void 0?void 0:n.getHeaderEditor())||null},e.prototype.refresh=function(){var n;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),(n=this.ref)===null||n===void 0||n.refresh()},e.prototype.autoCompleteLeafs=function(){var n;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),(n=this.ref)===null||n===void 0?void 0:n.autoCompleteLeafs()},e.formatResult=function(n){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),f6e(n)},e.formatError=function(n){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),u6e(n)},e.Logo=N_,e.Toolbar=O_,e.Footer=I_,e.QueryEditor=Ah,e.VariableEditor=Sh,e.HeaderEditor=l_,e.ResultViewer=u_,e.Button=ho,e.ToolbarButton=ho,e.Group=s_,e.Menu=a_,e.MenuItem=c_,e}(L.Component),$6e=ie.forwardRef(function(e,n){var o=e.dangerouslyAssumeSchemaIsValid,i=e.docExplorerOpen,a=e.externalFragments,c=e.fetcher,f=e.headers,d=e.inputValueDeprecation,h=e.introspectionQueryName,v=e.maxHistoryLength,y=e.onEditOperationName,g=e.onSchemaChange,E=e.onToggleHistory,C=e.onToggleDocs,S=e.operationName,N=e.query,D=e.response,T=e.storage,O=e.schema,V=e.schemaDescription,Y=e.shouldPersistHeaders,P=e.validationRules,U=e.variables,K=D_(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if(typeof c!="function")throw new TypeError("GraphiQL requires a fetcher function.");return L.createElement(pu,{storage:T},L.createElement(hu,{maxHistoryLength:v,onToggle:E},L.createElement(Eu,{defaultQuery:K.defaultQuery,externalFragments:a,headers:f,onEditOperationName:y,onTabChange:typeof K.tabs=="object"?K.tabs.onTabChange:void 0,query:N,response:D,shouldPersistHeaders:Y,validationRules:P,variables:U},L.createElement(Wa,{dangerouslyAssumeSchemaIsValid:o,fetcher:c,inputValueDeprecation:d,introspectionQueryName:h,onSchemaChange:g,schema:O,schemaDescription:V},L.createElement(os,{fetcher:c,operationName:S},L.createElement(Qa,{isVisible:i,onToggleVisibility:C},L.createElement(C6e,Sa({},K,{ref:n}))))))))}),C6e=ie.forwardRef(function(e,n){var o=e.getDefaultFieldNames,i=D_(e,["getDefaultFieldNames"]),a=on({nonNull:!0}),c=ms({nonNull:!0}),f=$r(),d=Ha(),h=Bn({nonNull:!0}),v=$o(),y=ni({getDefaultFieldNames:o}),g=gs({onCopyQuery:i.onCopyQuery}),E=Yr(),C=Co(),S=Wi({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:f!=null&&f.isVisible?void 0:"second",onHiddenElementChange:function(T){T==="second"?f==null||f.hide():f==null||f.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),N=Wi({direction:"horizontal",storageKey:"editorFlex"}),D=Wi({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){return i.defaultVariableEditorOpen!==void 0?i.defaultVariableEditorOpen?void 0:"second":i.defaultSecondaryEditorOpen!==void 0?i.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return L.createElement(A6e,Sa({},i,{editorContext:a,executionContext:c,explorerContext:f,historyContext:d,schemaContext:h,storageContext:v,autoCompleteLeafs:y,copy:g,merge:E,prettify:C,docResize:S,editorResize:N,secondaryEditorResize:D,ref:n}))}),A6e=function(t){T_(e,t);function e(n){var o=t.call(this,n)||this;return o.state={activeSecondaryEditor:"variable"},o}return e.prototype.render=function(){var n=this,o,i,a,c,f=L.Children.toArray(this.props.children),d=dp(f,function(g){return hp(g,zo.Logo)})||L.createElement(zo.Logo,null),h=dp(f,function(g){return hp(g,zo.Toolbar)})||L.createElement(zo.Toolbar,null,L.createElement(ho,{onClick:function(){n.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),L.createElement(ho,{onClick:function(){n.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),L.createElement(ho,{onClick:function(){n.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),L.createElement(ho,{onClick:function(){var g;return(g=n.props.historyContext)===null||g===void 0?void 0:g.toggle()},title:!((o=this.props.historyContext)===null||o===void 0)&&o.isVisible?"Hide History":"Show History",label:"History"}),L.createElement(ho,{onClick:function(){return n.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),!((i=this.props.toolbar)===null||i===void 0)&&i.additionalContent?this.props.toolbar.additionalContent:null),v=dp(f,function(g){return hp(g,zo.Footer)}),y=(a=this.props.headerEditorEnabled)!==null&&a!==void 0?a:!0;return L.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},L.createElement("div",{ref:this.props.docResize.firstRef},((c=this.props.historyContext)===null||c===void 0?void 0:c.isVisible)&&L.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},L.createElement(a6e,null)),L.createElement("div",{className:"editorWrap"},L.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,L.createElement("div",{className:"topBar"},d,L.createElement(Jae,null),h),this.props.explorerContext&&!this.props.explorerContext.isVisible&&L.createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var g;(g=n.props.explorerContext)===null||g===void 0||g.show(),n.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?L.createElement(x6e,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map(function(g,E){return L.createElement(_6e,{key:g.id,isActive:E===n.props.editorContext.activeTabIndex,title:g.title,isCloseable:n.props.editorContext.tabs.length>1,onSelect:function(){n.props.executionContext.stop(),n.props.editorContext.changeTab(E)},onClose:function(){n.props.editorContext.activeTabIndex===E&&n.props.executionContext.stop(),n.props.editorContext.closeTab(E)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(E)}})}),L.createElement(k6e,{onClick:function(){n.props.editorContext.addTab()}})):null,L.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},L.createElement("div",{ref:this.props.editorResize.firstRef},L.createElement("div",{className:"queryWrap"},L.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},L.createElement(Ah,{editorTheme:this.props.editorTheme,onClickReference:function(){n.props.docResize.hiddenElement==="second"&&n.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),L.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},L.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},L.createElement("div",{className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="variable"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"variable"},function(){var g;(g=n.props.editorContext.variableEditor)===null||g===void 0||g.refresh()})}},"Query Variables"),y&&L.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat(this.state.activeSecondaryEditor==="header"?" active":""),onClick:function(){n.props.secondaryEditorResize.hiddenElement==="second"&&n.props.secondaryEditorResize.setHiddenElement(null),n.setState({activeSecondaryEditor:"header"},function(){var g;(g=n.props.editorContext.headerEditor)===null||g===void 0||g.refresh()})}},"Request Headers"))),L.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},L.createElement("section",{className:"variable-editor secondary-editor","aria-label":this.state.activeSecondaryEditor==="variable"?"Query Variables":"Request Headers"},L.createElement(Sh,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.activeSecondaryEditor==="variable",keyMap:this.props.keyMap}),y&&L.createElement(l_,{active:this.state.activeSecondaryEditor==="header",editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),L.createElement("div",{ref:this.props.editorResize.dragBarRef},L.createElement("div",{className:"editor-drag-bar"})),L.createElement("div",{ref:this.props.editorResize.secondRef},L.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&L.createElement("div",{className:"spinner-container"},L.createElement("div",{className:"spinner"})),L.createElement(u_,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),v))))),L.createElement("div",{ref:this.props.docResize.dragBarRef},L.createElement("div",{className:"docExplorerResizer"})),L.createElement("div",{ref:this.props.docResize.secondRef},L.createElement("div",{className:"docExplorerWrap"},L.createElement(C_,{onClose:function(){return n.props.docResize.setHiddenElement("second")}}))))},e.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},e.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},e.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},e.prototype.refresh=function(){var n,o,i,a;(n=this.props.editorContext.queryEditor)===null||n===void 0||n.refresh(),(o=this.props.editorContext.variableEditor)===null||o===void 0||o.refresh(),(i=this.props.editorContext.headerEditor)===null||i===void 0||i.refresh(),(a=this.props.editorContext.responseEditor)===null||a===void 0||a.refresh()},e.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},e}(L.Component);function N_(t){return L.createElement("div",{className:"title"},t.children||L.createElement("span",null,"Graph",L.createElement("em",null,"i"),"QL"))}N_.displayName="GraphiQLLogo";function O_(t){return L.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},t.children)}O_.displayName="GraphiQLToolbar";function I_(t){return L.createElement("div",{className:"footer"},t.children)}I_.displayName="GraphiQLFooter";function hp(t,e){var n;return!((n=t==null?void 0:t.type)===null||n===void 0)&&n.displayName&&t.type.displayName===e.displayName?!0:t.type===e}var S6e=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kp=function(){return Kp=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Kp.apply(this,arguments)};function T6e(t){return!(!t||typeof t!="object"||!("props"in t))}var D6e=function(t){S6e(e,t);function e(n){var o=t.call(this,n)||this;return o._node=null,o._listener=null,o.handleOpen=function(i){al(i),o.setState({visible:!0}),o._subscribe()},o.state={visible:!1},o}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,o,i=this.state.visible,a=L.Children.map(this.props.children,function(c,f){var d;if(!T6e(c))return null;(!o||c.props.selected)&&(o=c);var h=c.props.onSelect||((d=n.props.onSelect)===null||d===void 0?void 0:d.bind(null,c.props.value,f));return L.createElement(L_,Kp({},c.props,{onSelect:h}))});return L.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:al,ref:function(c){n._node=c},title:this.props.title},o==null?void 0:o.props.label,L.createElement("svg",{width:"13",height:"10"},L.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),L.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),L.createElement("ul",{className:"toolbar-select-options"+(i?" open":"")},a))},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(al(n),this.setState({visible:!1}),this._release())},e}(L.Component);function L_(t){var e=t.onSelect,n=t.label,o=t.selected;return L.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:al,onMouseUp:e},n,o&&L.createElement("svg",{width:"13",height:"13"},L.createElement("polygon",{points:`4.851,10.462 0,5.611 2.314,3.297 4.851,5.835
|
|
288
|
+
10.686,0 13,2.314 4.851,10.462`})))}function al(t){t.preventDefault()}var Du=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o=n.call(t),i,a=[],c;try{for(;(e===void 0||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return a},Nu=function(t,e,n){if(n||arguments.length===2)for(var o=0,i=e.length,a;o<i;o++)(a||!(o in e))&&(a||(a=Array.prototype.slice.call(e,0,o)),a[o]=e[o]);return t.concat(a||Array.prototype.slice.call(e))},N6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package."),Ua.apply(void 0,Nu([],Du(e),!1))},O6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package."),p6e.apply(void 0,Nu([],Du(e),!1))},I6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package."),b6e.apply(void 0,Nu([],Du(e),!1))},L6e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return console.warn("Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package."),y6e.apply(void 0,Nu([],Du(e),!1))};const F6e=Object.freeze(Object.defineProperty({__proto__:null,DocExplorer:C_,GraphiQL:zo,QueryEditor:Ah,ToolbarButton:ho,ToolbarGroup:s_,ToolbarMenu:a_,ToolbarMenuItem:c_,ToolbarSelect:D6e,ToolbarSelectOption:L_,VariableEditor:Sh,default:zo,fillLeafs:O6e,getSelectedOperationName:I6e,mergeAst:L6e,onHasCompletion:N6e},Symbol.toStringTag,{value:"Module"})),R6e=ii(F6e);var Ka={},Ou={};const Fh=ii(tC);Object.defineProperty(Ou,"__esModule",{value:!0});var M6e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I1=function(){function t(e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,c=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},nr=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}();Ou.defaultValue=Rh;var q6e=ie,le=P6e(q6e),Le=Fh;function P6e(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function L1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function On(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function rr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wt(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function or(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ed(t){return t.charAt(0).toUpperCase()+t.slice(1)}var B6e={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},V6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),j6e=le.createElement("svg",{width:"12",height:"9"},le.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),U6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),z6e=le.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},le.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function Iu(t){return t.checked?t.styleConfig.checkboxChecked:t.styleConfig.checkboxUnchecked}function F_(t){var e=t.getFields();if(e.id){var n=["id"];return e.email?n.push("email"):e.name&&n.push("name"),n}if(e.edges)return["edges"];if(e.node)return["node"];if(e.nodes)return["nodes"];var o=[];return Object.keys(e).forEach(function(i){(0,Le.isLeafType)(e[i].type)&&o.push(i)}),o.length?o.slice(0,2):["__typename"]}function R_(t){return(0,Le.isNonNullType)(t.type)&&t.defaultValue===void 0}function H6e(t){for(var e=t;(0,Le.isWrappingType)(e);)e=e.ofType;return e}function bo(t){for(var e=t;(0,Le.isWrappingType)(e);)e=e.ofType;return e}function M_(t,e){if(typeof e!="string"&&e.kind==="VariableDefinition")return e.variable;if((0,Le.isScalarType)(t))try{switch(t.name){case"String":return{kind:"StringValue",value:String(t.parseValue(e))};case"Float":return{kind:"FloatValue",value:String(t.parseValue(parseFloat(e)))};case"Int":return{kind:"IntValue",value:String(t.parseValue(parseInt(e,10)))};case"Boolean":try{var n=JSON.parse(e);return typeof n=="boolean"?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(t.parseValue(e))}}}catch(i){return console.error("error coercing arg value",i,e),{kind:"StringValue",value:e}}else try{var o=t.parseValue(e);return o?{kind:"EnumValue",value:String(o)}:{kind:"EnumValue",value:t.getValues()[0].name}}catch{return{kind:"EnumValue",value:t.getValues()[0].name}}}var G6e=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){return i.props.selection.fields.find(function(h){return h.name.value===i.props.arg.name})},i._removeArg=function(){var h=i.props.selection,v=i._getArgSelection();i._previousArgSelection=v,i.props.modifyFields(h.fields.filter(function(y){return y!==v}),!0)},i._addArg=function(){var h=i.props,v=h.selection,y=h.arg,g=h.getDefaultScalarArgValue,E=h.parentField,C=h.makeDefaultArg,S=bo(y.type),N=null;if(i._previousArgSelection)N=i._previousArgSelection;else if((0,Le.isInputObjectType)(S)){var D=S.getFields();N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:{kind:"ObjectValue",fields:Lu(g,C,E,Object.keys(D).map(function(T){return D[T]}))}}}else(0,Le.isLeafType)(S)&&(N={kind:"ObjectField",name:{kind:"Name",value:y.name},value:g(E,y,S)});if(!N)console.error("Unable to add arg for argType",S);else return i.props.modifyFields([].concat(On(v.fields||[]),[N]),!0)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Le.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",h);return}var T=void 0,O=void 0;h===null||typeof h>"u"?O=null:!h.target&&h.kind&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"?O=h:h.target&&typeof h.target.value=="string"&&(T=h.target.value,O=M_(N,T));var V=i.props.modifyFields((C.fields||[]).map(function(Y){var P=Y===S,U=P?Ze({},Y,{value:O}):Y;return U}),v);return V},i._modifyChildFields=function(h){return i.props.modifyFields(i.props.selection.fields.map(function(v){return v.name.value===i.props.arg.name?Ze({},v,{value:{kind:"ObjectValue",fields:h}}):v}),!0)},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,c=this._getArgSelection();return le.createElement(P_,{argValue:c?c.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function Rh(t){if((0,Le.isEnumType)(t))return{kind:"EnumValue",value:t.getValues()[0].name};switch(t.name){case"String":return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1};default:return{kind:"StringValue",value:""}}}function q_(t,e,n){return Rh(n)}var W6e=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._getArgSelection=function(){var h=i.props.selection;return(h.arguments||[]).find(function(v){return v.name.value===i.props.arg.name})},i._removeArg=function(h){var v=i.props.selection,y=i._getArgSelection();return i._previousArgSelection=y,i.props.modifyArguments((v.arguments||[]).filter(function(g){return g!==y}),h)},i._addArg=function(h){var v=i.props,y=v.selection,g=v.getDefaultScalarArgValue,E=v.makeDefaultArg,C=v.parentField,S=v.arg,N=bo(S.type),D=null;if(i._previousArgSelection)D=i._previousArgSelection;else if((0,Le.isInputObjectType)(N)){var T=N.getFields();D={kind:"Argument",name:{kind:"Name",value:S.name},value:{kind:"ObjectValue",fields:Lu(g,E,C,Object.keys(T).map(function(O){return T[O]}))}}}else(0,Le.isLeafType)(N)&&(D={kind:"Argument",name:{kind:"Name",value:S.name},value:g(C,S,N)});return D?i.props.modifyArguments([].concat(On(y.arguments||[]),[D]),h):(console.error("Unable to add arg for argType",N),null)},i._setArgValue=function(h,v){var y=!1,g=!1,E=!1;try{h.kind==="VariableDefinition"?g=!0:h===null||typeof h>"u"?y=!0:typeof h.kind=="string"&&(E=!0)}catch{}var C=i.props.selection,S=i._getArgSelection();if(!S&&!g){console.error("missing arg selection when setting arg value");return}var N=bo(i.props.arg.type),D=(0,Le.isLeafType)(N)||g||y||E;if(!D){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var T=void 0,O=void 0;return h===null||typeof h>"u"?O=null:h.target&&typeof h.target.value=="string"?(T=h.target.value,O=M_(N,T)):!h.target&&h.kind==="VariableDefinition"?(T=h,O=T.variable):typeof h.kind=="string"&&(O=h),i.props.modifyArguments((C.arguments||[]).map(function(V){return V===S?Ze({},V,{value:O}):V}),v)},i._setArgFields=function(h,v){var y=i.props.selection,g=i._getArgSelection();if(!g){console.error("missing arg selection when setting arg value");return}return i.props.modifyArguments((y.arguments||[]).map(function(E){return E===g?Ze({},E,{value:{kind:"ObjectValue",fields:h}}):E}),v)},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this.props,i=o.arg,a=o.parentField,c=this._getArgSelection();return le.createElement(P_,{argValue:c?c.value:null,arg:i,parentField:a,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),e}(le.PureComponent);function Q6e(t){return t.ctrlKey&&t.key==="Enter"}function Y6e(t){return t!=="FragmentDefinition"}var J6e=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._handleChange=function(h){i.props.setArgValue(h,!0)},o),wt(i,a)}return nr(e,[{key:"componentDidMount",value:function(){var o=this._ref,i=document.activeElement;o&&i&&!(i instanceof HTMLTextAreaElement)&&(o.focus(),o.setSelectionRange(0,o.value.length))}},{key:"render",value:function(){var o=this,i=this.props,a=i.arg,c=i.argValue,f=i.styleConfig,d=bo(a.type),h=typeof c.value=="string"?c.value:"",v=this.props.argValue.kind==="StringValue"?f.colors.string:f.colors.number;return le.createElement("span",{style:{color:v}},d.name==="String"?'"':"",le.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,h.length))+"ch",color:v},ref:function(g){o._ref=g},type:"text",onChange:this._handleChange,value:h}),d.name==="String"?'"':"")}}]),e}(le.PureComponent),P_=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayArgActions:!1},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.argValue,c=i.arg,f=i.styleConfig,d=bo(c.type),h=null;if(a){if(a.kind==="Variable")h=le.createElement("span",{style:{color:f.colors.variable}},"$",a.name.value);else if((0,Le.isScalarType)(d))d.name==="Boolean"?h=le.createElement("select",{style:{color:f.colors.builtin},onChange:this.props.setArgValue,value:a.kind==="BooleanValue"?a.value:void 0},le.createElement("option",{key:"true",value:"true"},"true"),le.createElement("option",{key:"false",value:"false"},"false")):h=le.createElement(J6e,{setArgValue:this.props.setArgValue,arg:c,argValue:a,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,Le.isEnumType)(d))a.kind==="EnumValue"?h=le.createElement("select",{style:{backgroundColor:"white",color:f.colors.string2},onChange:this.props.setArgValue,value:a.value},d.getValues().map(function(S){return le.createElement("option",{key:S.name,value:S.name},S.name)})):console.error("arg mismatch between arg and selection",d,a);else if((0,Le.isInputObjectType)(d))if(a.kind==="ObjectValue"){var v=d.getFields();h=le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(S){return le.createElement(G6e,{key:S,arg:v[S],parentField:o.props.parentField,selection:a,modifyFields:o.props.setArgFields,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}))}else console.error("arg mismatch between arg and selection",d,a)}var y=function(){var N=c.name,D=(o.props.definition.variableDefinitions||[]).filter(function($e){return $e.variable.name.value.startsWith(N)}).length,T=void 0;D>0?T=""+N+D:T=N;var O=c.type.toString(),V=(0,Le.parseType)(O),Y={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:T}},type:V,directives:[]},P=function(Me){return(o.props.definition.variableDefinitions||[]).find(function(Z){return Z.variable.name.value===Me})},U=void 0,K={};if(typeof a<"u"&&a!==null){var G=(0,Le.visit)(a,{Variable:function(Me){var Z=Me.name.value,fe=P(Z);if(K[Z]=K[Z]+1||1,!!fe)return fe.defaultValue}}),Q=Y.type.kind==="NonNullType",oe=Q?Ze({},Y,{type:Y.type.type}):Y;U=Ze({},oe,{defaultValue:G})}else U=Y;var _e=Object.entries(K).filter(function($e){var Me=I1($e,2);Me[0];var Z=Me[1];return Z<2}).map(function($e){var Me=I1($e,2),Z=Me[0];return Me[1],Z});if(U){var H=o.props.setArgValue(U,!1);if(H){var R=H.definitions.find(function($e){return $e.operation&&$e.name&&$e.name.value&&o.props.definition.name&&o.props.definition.name.value?$e.name.value===o.props.definition.name.value:!1}),x=[].concat(On(R.variableDefinitions||[]),[U]).filter(function($e){return _e.indexOf($e.variable.name.value)===-1}),j=Ze({},R,{variableDefinitions:x}),J=H.definitions,te=J.map(function($e){return R===$e?j:$e}),pe=Ze({},H,{definitions:te});o.props.onCommit(pe)}}},g=function(){if(!(!a||!a.name||!a.name.value)){var N=a.name.value,D=(o.props.definition.variableDefinitions||[]).find(function(oe){return oe.variable.name.value===N});if(D){var T=D.defaultValue,O=o.props.setArgValue(T,{commit:!1});if(O){var V=O.definitions.find(function(oe){return oe.name.value===o.props.definition.name.value});if(!V)return;var Y=0;(0,Le.visit)(V,{Variable:function(_e){_e.name.value===N&&(Y=Y+1)}});var P=V.variableDefinitions||[];Y<2&&(P=P.filter(function(oe){return oe.variable.name.value!==N}));var U=Ze({},V,{variableDefinitions:P}),K=O.definitions,G=K.map(function(oe){return V===oe?U:oe}),Q=Ze({},O,{definitions:G});o.props.onCommit(Q)}}}},E=a&&a.kind==="Variable",C=this.state.displayArgActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:E?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(N){N.preventDefault(),N.stopPropagation(),E?g():y()},style:f.styles.actionButtonStyle},le.createElement("span",{style:{color:f.colors.variable}},"$")):null;return le.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":c.name,"data-arg-type":d.name,className:"graphiql-explorer-"+c.name},le.createElement("span",{style:{cursor:"pointer"},onClick:function(N){var D=!a;D?o.props.addArg(!0):o.props.removeArg(!0),o.setState({displayArgActions:D})}},(0,Le.isInputObjectType)(d)?le.createElement("span",null,a?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):le.createElement(Iu,{checked:!!a,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:f.colors.attribute},title:c.description,onMouseEnter:function(){a!==null&&typeof a<"u"&&o.setState({displayArgActions:!0})},onMouseLeave:function(){return o.setState({displayArgActions:!1})}},c.name,R_(c)?"*":"",": ",C," ")," "),h||le.createElement("span",null)," ")}}]),e}(le.PureComponent),Z6e=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:i.props.getDefaultFieldNames(i.props.implementingType).map(function(h){return{kind:"Field",name:{kind:"Name",value:h}}})}}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="InlineFragment"&&v.typeCondition&&i.props.implementingType.name===v.typeCondition.name.value});if(!h)return null;if(h.kind==="InlineFragment")return h},i._modifyChildSelections=function(h,v){var y=i._getSelection();return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{directives:g.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:i.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:h}}:g}),v)},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.implementingType,c=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=a.getFields(),y=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},le.createElement("span",{style:{cursor:"pointer"},onClick:h?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.atom}},this.props.implementingType.name)),h?le.createElement("div",{style:{marginLeft:16}},Object.keys(v).sort().map(function(g){return le.createElement(B_,{key:g,field:v[g],selections:y,modifySelections:o._modifyChildSelections,schema:c,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,onCommit:o.props.onCommit,styleConfig:o.props.styleConfig,definition:o.props.definition,availableFragments:o.props.availableFragments})})):null)}}]),e}(le.PureComponent),X6e=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i._addFragment=function(){i.props.modifySelections([].concat(On(i.props.selections),[i._previousSelection||{kind:"FragmentSpread",name:i.props.fragment.name}]))},i._removeFragment=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){var y=v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value;return!y}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="FragmentSpread"&&v.name.value===i.props.fragment.name.value});return h},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this.props.styleConfig,i=this._getSelection();return le.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},le.createElement("span",{style:{cursor:"pointer"},onClick:i?this._removeFragment:this._addFragment},le.createElement(Iu,{checked:!!i,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:o.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),e}(le.PureComponent);function Lu(t,e,n,o){var i=[],a=!0,c=!1,f=void 0;try{for(var d=o[Symbol.iterator](),h;!(a=(h=d.next()).done);a=!0){var v=h.value;if((0,Le.isRequiredInputField)(v)||e&&e(n,v)){var y=bo(v.type);(0,Le.isInputObjectType)(y)?function(){var g=y.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:{kind:"ObjectValue",fields:Lu(t,e,n,Object.keys(g).map(function(E){return g[E]}))}})}():(0,Le.isLeafType)(y)&&i.push({kind:"ObjectField",name:{kind:"Name",value:v.name},value:t(n,v,y)})}}}catch(g){c=!0,f=g}finally{try{!a&&d.return&&d.return()}finally{if(c)throw f}}return i}function F1(t,e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=n.args[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;if(R_(h)||e&&e(n,h)){var v=bo(h.type);(0,Le.isInputObjectType)(v)?function(){var y=v.getFields();o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:{kind:"ObjectValue",fields:Lu(t,e,n,Object.keys(y).map(function(g){return y[g]}))}})}():(0,Le.isLeafType)(v)&&o.push({kind:"Argument",name:{kind:"Name",value:h.name},value:t(n,h,v)})}}}catch(y){a=!0,c=y}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}var B_=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={displayFieldActions:!1},i._addAllFieldsToSelections=function(h){var v=h?Object.keys(h).map(function(E){return{kind:"Field",name:{kind:"Name",value:E},arguments:[]}}):[],y={kind:"SelectionSet",selections:v},g=[].concat(On(i.props.selections.filter(function(E){return E.kind==="InlineFragment"?!0:E.name.value!==i.props.field.name})),[{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:F1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field),selectionSet:y}]);i.props.modifySelections(g)},i._addFieldToSelections=function(h){var v=[].concat(On(i.props.selections),[i._previousSelection||{kind:"Field",name:{kind:"Name",value:i.props.field.name},arguments:F1(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field)}]);i.props.modifySelections(v)},i._handleUpdateSelections=function(h){var v=i._getSelection();if(v&&!h.altKey)i._removeFieldFromSelections();else{var y=(0,Le.getNamedType)(i.props.field.type),g=(0,Le.isObjectType)(y)&&y.getFields(),E=!!g&&h.altKey;E?i._addAllFieldsToSelections(g):i._addFieldToSelections(g)}},i._removeFieldFromSelections=function(){var h=i._getSelection();i._previousSelection=h,i.props.modifySelections(i.props.selections.filter(function(v){return v!==h}))},i._getSelection=function(){var h=i.props.selections.find(function(v){return v.kind==="Field"&&i.props.field.name===v.name.value});if(!h)return null;if(h.kind==="Field")return h},i._setArguments=function(h,v){var y=i._getSelection();if(!y){console.error("Missing selection when setting arguments",h);return}return i.props.modifySelections(i.props.selections.map(function(g){return g===y?{alias:y.alias,arguments:h,directives:y.directives,kind:"Field",name:y.name,selectionSet:y.selectionSet}:g}),v)},i._modifyChildSelections=function(h,v){return i.props.modifySelections(i.props.selections.map(function(y){if(y.kind==="Field"&&i.props.field.name===y.name.value){if(y.kind!=="Field")throw new Error("invalid selection");return{alias:y.alias,arguments:y.arguments,directives:y.directives,kind:"Field",name:y.name,selectionSet:{kind:"SelectionSet",selections:h}}}return y}),v)},o),wt(i,a)}return nr(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.field,c=i.schema,f=i.getDefaultFieldNames,d=i.styleConfig,h=this._getSelection(),v=H6e(a.type),y=a.args.sort(function(D,T){return D.name.localeCompare(T.name)}),g="graphiql-explorer-node graphiql-explorer-"+a.name;a.isDeprecated&&(g+=" graphiql-explorer-deprecated");var E=(0,Le.isObjectType)(v)||(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v)?this.props.availableFragments&&this.props.availableFragments[v.name]:null,C=le.createElement("div",{className:g},le.createElement("span",{title:a.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":a.name,"data-field-type":v.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var T=(0,Le.isObjectType)(v)&&h&&h.selectionSet&&h.selectionSet.selections.filter(function(O){return O.kind!=="FragmentSpread"}).length>0;T&&o.setState({displayFieldActions:!0})},onMouseLeave:function(){return o.setState({displayFieldActions:!1})}},(0,Le.isObjectType)(v)?le.createElement("span",null,h?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,Le.isObjectType)(v)?null:le.createElement(Iu,{checked:!!h,styleConfig:this.props.styleConfig}),le.createElement("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},a.name),this.state.displayFieldActions?le.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(T){T.preventDefault(),T.stopPropagation();var O=v.name,V=O+"Fragment",Y=(E||[]).filter(function(oe){return oe.name.value.startsWith(V)}).length;Y>0&&(V=""+V+Y);var P=h?h.selectionSet?h.selectionSet.selections:[]:[],U=[{kind:"FragmentSpread",name:{kind:"Name",value:V},directives:[]}],K={kind:"FragmentDefinition",name:{kind:"Name",value:V},typeCondition:{kind:"NamedType",name:{kind:"Name",value:v.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:P}},G=o._modifyChildSelections(U,!1);if(G){var Q=Ze({},G,{definitions:[].concat(On(G.definitions),[K])});o.props.onCommit(Q)}else console.warn("Unable to complete extractFragment operation")},style:Ze({},d.styles.actionButtonStyle)},le.createElement("span",null,"…")):null),h&&y.length?le.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},y.map(function(D){return le.createElement(W6e,{key:D.name,parentField:a,arg:D,selection:h,modifyArguments:o._setArguments,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})})):null);if(h&&((0,Le.isObjectType)(v)||(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v))){var S=(0,Le.isUnionType)(v)?{}:v.getFields(),N=h?h.selectionSet?h.selectionSet.selections:[]:[];return le.createElement("div",{className:"graphiql-explorer-"+a.name},C,le.createElement("div",{style:{marginLeft:16}},E?E.map(function(D){var T=c.getType(D.typeCondition.name.value),O=D.name.value;return T?le.createElement(X6e,{key:O,fragment:D,selections:N,modifySelections:o._modifyChildSelections,schema:c,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit}):null}):null,Object.keys(S).sort().map(function(D){return le.createElement(e,{key:D,field:S[D],selections:N,modifySelections:o._modifyChildSelections,schema:c,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}),(0,Le.isInterfaceType)(v)||(0,Le.isUnionType)(v)?c.getPossibleTypes(v).map(function(D){return le.createElement(Z6e,{key:D.name,implementingType:D,selections:N,modifySelections:o._modifyChildSelections,schema:c,getDefaultFieldNames:f,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition})}):null))}return C}}]),e}(le.PureComponent);function K6e(t){try{return t.trim()?(0,Le.parse)(t,{noLocation:!0}):null}catch(e){return new Error(e)}}var eUe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ql={kind:"Document",definitions:[eUe]},Pi=null;function tUe(t){if(Pi&&Pi[0]===t)return Pi[1];var e=K6e(t);return e?e instanceof Error?Pi?Pi[1]:ql:(Pi=[t,e],e):ql}var R1={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},nUe=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",displayTitleActions:!1},i._modifySelections=function(h,v){var y=i.props.definition;y.selectionSet.selections.length===0&&i._previousOperationDef&&(y=i._previousOperationDef);var g=void 0;if(y.kind==="FragmentDefinition")g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:h})});else if(y.kind==="OperationDefinition"){var E=h.filter(function(C){return!(C.kind==="Field"&&C.name.value==="__typename")});E.length===0&&(E=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),g=Ze({},y,{selectionSet:Ze({},y.selectionSet,{selections:E})})}return i.props.onEdit(g,v)},i._onOperationRename=function(h){return i.props.onOperationRename(h.target.value)},i._handlePotentialRun=function(h){Q6e(h)&&Y6e(i.props.definition.kind)&&i.props.onRunOperation(i.props.name)},i._rootViewElId=function(){var h=i.props,v=h.operationType,y=h.name,g=v+"-"+(y||"unknown");return g},o),wt(i,a)}return nr(e,[{key:"componentDidMount",value:function(){var o=this._rootViewElId();this.props.onMount(o)}},{key:"render",value:function(){var o=this,i=this.props,a=i.operationType,c=i.definition,f=i.schema,d=i.getDefaultFieldNames,h=i.styleConfig,v=this._rootViewElId(),y=this.props.fields||{},g=c,E=g.selectionSet.selections,C=this.props.name||ed(a)+" Name";return le.createElement("div",{id:v,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},le.createElement("div",{style:{color:h.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return o.setState({displayTitleActions:!0})},onMouseLeave:function(){return o.setState({displayTitleActions:!1})}},a," ",le.createElement("span",{style:{color:h.colors.def}},le.createElement("input",{style:{color:h.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,C.length)+"ch"},autoComplete:"false",placeholder:ed(a)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?le.createElement("span",null,le.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?le.createElement(le.Fragment,null,le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationDestroy()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"✕")),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.props.onOperationClone()},style:Ze({},h.styles.actionButtonStyle)},le.createElement("span",null,"⎘"))):""),Object.keys(y).sort().map(function(S){return le.createElement(B_,{key:S,field:y[S],selections:E,modifySelections:o._modifySelections,schema:f,getDefaultFieldNames:d,getDefaultScalarArgValue:o.props.getDefaultScalarArgValue,makeDefaultArg:o.props.makeDefaultArg,onRunOperation:o.props.onRunOperation,styleConfig:o.props.styleConfig,onCommit:o.props.onCommit,definition:o.props.definition,availableFragments:o.props.availableFragments})}))}}]),e}(le.PureComponent);function rUe(){return le.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},le.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",le.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),le.createElement("div",null,"Contribute on"," ",le.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var V_=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={newOperationType:"query",operation:null,operationToScrollTo:null},i._resetScroll=function(){var h=i._ref;h&&(h.scrollLeft=0)},i._onEdit=function(h){return i.props.onEdit(h)},i._setAddOperationType=function(h){i.setState({newOperationType:h})},i._handleRootViewMount=function(h){if(i.state.operationToScrollTo&&i.state.operationToScrollTo===h){var v=".graphiql-explorer-root #"+h,y=document.querySelector(v);y&&y.scrollIntoView()}},o),wt(i,a)}return nr(e,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var o=this,i=this.props,a=i.schema,c=i.query,f=i.makeDefaultArg;if(!a)return le.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var d={colors:this.props.colors||B6e,checkboxChecked:this.props.checkboxChecked||U6e,checkboxUnchecked:this.props.checkboxUnchecked||z6e,arrowClosed:this.props.arrowClosed||j6e,arrowOpen:this.props.arrowOpen||V6e,styles:this.props.styles?Ze({},R1,this.props.styles):R1},h=a.getQueryType(),v=a.getMutationType(),y=a.getSubscriptionType();if(!h&&!v&&!y)return le.createElement("div",null,"Missing query type");var g=h&&h.getFields(),E=v&&v.getFields(),C=y&&y.getFields(),S=tUe(c),N=this.props.getDefaultFieldNames||F_,D=this.props.getDefaultScalarArgValue||q_,T=S.definitions,O=T.map(function(x){return x.kind==="FragmentDefinition"||x.kind==="OperationDefinition"?x:null}).filter(Boolean),V=O.length===0?ql.definitions:O,Y=function(j,J){var te=J==null||J===""?null:{kind:"Name",value:J,loc:void 0},pe=Ze({},j,{name:te}),$e=S.definitions,Me=$e.map(function(Z){return j===Z?pe:Z});return Ze({},S,{definitions:Me})},P=function(j){var J=void 0;j.kind==="FragmentDefinition"?J="fragment":J=j.operation;var te=(j.name&&j.name.value||"")+"Copy",pe={kind:"Name",value:te,loc:void 0},$e=Ze({},j,{name:pe}),Me=S.definitions,Z=[].concat(On(Me),[$e]);return o.setState({operationToScrollTo:J+"-"+te}),Ze({},S,{definitions:Z})},U=function(j){var J=S.definitions,te=J.filter(function(pe){return j!==pe});return Ze({},S,{definitions:te})},K=function(j){var J=S.definitions,te=S.definitions.length===1&&S.definitions[0]===ql.definitions[0],pe=te?[]:J.filter(function(ye){return ye.kind==="OperationDefinition"?ye.operation===j:!1}),$e="My"+ed(j)+(pe.length===0?"":pe.length+1),Me="__typename # Placeholder value",Z={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:Me,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},fe={kind:"OperationDefinition",operation:j,name:{kind:"Name",value:$e},variableDefinitions:[],directives:[],selectionSet:Z,loc:null},de=te?[fe]:[].concat(On(S.definitions),[fe]),ge=Ze({},S,{definitions:de});o.setState({operationToScrollTo:j+"-"+$e}),o.props.onEdit((0,Le.print)(ge))},G=[g?le.createElement("option",{key:"query",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"query"},"Query"):null,E?le.createElement("option",{key:"mutation",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,C?le.createElement("option",{key:"subscription",className:"toolbar-button",style:d.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),Q=G.length===0||this.props.hideActions?null:le.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},le.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:Ze({},d.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(j){return j.preventDefault()}},le.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),le.createElement("select",{onChange:function(j){return o._setAddOperationType(j.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},G),le.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return o.state.newOperationType?K(o.state.newOperationType):null},style:Ze({},d.styles.buttonStyle,{height:"22px",width:"22px"})},le.createElement("span",null,"+")))),oe=this.props.externalFragments&&this.props.externalFragments.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,L1({},J,pe))}return x},{}),_e=V.reduce(function(x,j){if(j.kind==="FragmentDefinition"){var J=j.typeCondition.name.value,te=x[J]||[],pe=[].concat(On(te),[j]).sort(function($e,Me){return $e.name.value.localeCompare(Me.name.value)});return Ze({},x,L1({},J,pe))}return x},{}),H=Ze({},_e,oe),R=this.props.showAttribution?le.createElement(rUe,null):null;return le.createElement("div",{ref:function(j){o._ref=j},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},le.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},V.map(function(x,j){var J=x&&x.name&&x.name.value,te=x.kind==="FragmentDefinition"?"fragment":x&&x.operation||"query",pe=function(ke){var De=Y(x,ke);o.props.onEdit((0,Le.print)(De))},$e=function(){var ke=P(x);o.props.onEdit((0,Le.print)(ke))},Me=function(){var ke=U(x);o.props.onEdit((0,Le.print)(ke))},Z=x.kind==="FragmentDefinition"&&x.typeCondition.kind==="NamedType"&&a.getType(x.typeCondition.name.value),fe=Z instanceof Le.GraphQLObjectType?Z.getFields():null,de=te==="query"?g:te==="mutation"?E:te==="subscription"?C:x.kind==="FragmentDefinition"?fe:null,ge=x.kind==="FragmentDefinition"?x.typeCondition.name.value:null,ye=function(ke){var De=(0,Le.print)(ke);o.props.onEdit(De)};return le.createElement(nUe,{key:j,isLast:j===V.length-1,fields:de,operationType:te,name:J,definition:x,onOperationRename:pe,onOperationDestroy:Me,onOperationClone:$e,onTypeName:ge,onMount:o._handleRootViewMount,onCommit:ye,onEdit:function(ke,De){var xn=void 0;if((typeof De>"u"?"undefined":M6e(De))==="object"&&typeof De.commit<"u"?xn=De.commit:xn=!0,ke){var Ve=Ze({},S,{definitions:S.definitions.map(function(Be){return Be===x?ke:Be})});return xn&&ye(Ve),Ve}else return S},schema:a,getDefaultFieldNames:N,getDefaultScalarArgValue:D,makeDefaultArg:f,onRunOperation:function(){o.props.onRunOperation&&o.props.onRunOperation(J)},styleConfig:d,availableFragments:H})}),R),Q)}}]),e}(le.PureComponent);V_.defaultProps={getDefaultFieldNames:F_,getDefaultScalarArgValue:q_};var oUe=function(t){or(e,t);function e(){var n,o,i,a;rr(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=wt(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1,error:null,errorInfo:null},o),wt(i,a)}return nr(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0,error:o,errorInfo:i}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?le.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},le.createElement("div",null,"Something went wrong"),le.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,le.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),e}(le.Component),Mh=function(t){or(e,t);function e(){return rr(this,e),wt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return nr(e,[{key:"render",value:function(){return le.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},le.createElement("div",{className:"doc-explorer-title-bar"},le.createElement("div",{className:"doc-explorer-title"},this.props.title),le.createElement("div",{className:"doc-explorer-rhs"},le.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),le.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},le.createElement(oUe,null,le.createElement(V_,this.props))))}}]),e}(le.PureComponent);Mh.defaultValue=Rh;Mh.defaultProps={width:320,title:"Explorer"};Ou.default=Mh;Object.defineProperty(Ka,"__esModule",{value:!0});Ka.Explorer=void 0;var iUe=Ou,j_=sUe(iUe);function sUe(t){return t&&t.__esModule?t:{default:t}}Ka.Explorer=j_.default;Ka.default=j_.default;var mp={exports:{}},M1;function Fu(){return M1||(M1=1,function(t,e){(function(n,o){t.exports=o()})(ox,function(){var n=navigator.userAgent,o=navigator.platform,i=/gecko\/\d/i.test(n),a=/MSIE \d/.test(n),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),d=a||c||f,h=d&&(a?document.documentMode||6:+(f||c)[1]),v=!f&&/WebKit\//.test(n),y=v&&/Qt\/\d+\.\d+/.test(n),g=!f&&/Chrome\/(\d+)/.exec(n),E=g&&+g[1],C=/Opera\//.test(n),S=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),D=/PhantomJS/.test(n),T=S&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),V=T||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),Y=T||/Mac/.test(o),P=/\bCrOS\b/.test(n),U=/win/i.test(o),K=C&&n.match(/Version\/(\d*\.\d*)/);K&&(K=Number(K[1])),K&&K>=15&&(C=!1,v=!0);var G=Y&&(y||C&&(K==null||K<12.11)),Q=i||d&&h>=9;function oe(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var _e=function(r,s){var u=r.className,l=oe(s).exec(u);if(l){var p=u.slice(l.index+l[0].length);r.className=u.slice(0,l.index)+(p?l[1]+p:"")}};function H(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function R(r,s){return H(r).appendChild(s)}function x(r,s,u,l){var p=document.createElement(r);if(u&&(p.className=u),l&&(p.style.cssText=l),typeof s=="string")p.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)p.appendChild(s[m]);return p}function j(r,s,u,l){var p=x(r,s,u,l);return p.setAttribute("role","presentation"),p}var J;document.createRange?J=function(r,s,u,l){var p=document.createRange();return p.setEnd(l||r,u),p.setStart(r,s),p}:J=function(r,s,u){var l=document.body.createTextRange();try{l.moveToElementText(r.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",s),l};function te(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function pe(r){var s;try{s=r.activeElement}catch{s=r.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function $e(r,s){var u=r.className;oe(s).test(u)||(r.className+=(u?" ":"")+s)}function Me(r,s){for(var u=r.split(" "),l=0;l<u.length;l++)u[l]&&!oe(u[l]).test(s)&&(s+=" "+u[l]);return s}var Z=function(r){r.select()};T?Z=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:d&&(Z=function(r){try{r.select()}catch{}});function fe(r){return r.display.wrapper.ownerDocument}function de(r){return fe(r).defaultView}function ge(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function ye(r,s,u){s||(s={});for(var l in r)r.hasOwnProperty(l)&&(u!==!1||!s.hasOwnProperty(l))&&(s[l]=r[l]);return s}function he(r,s,u,l,p){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=l||0,b=p||0;;){var _=r.indexOf(" ",m);if(_<0||_>=s)return b+(s-m);b+=_-m,b+=u-b%u,m=_+1}}var ke=function(){this.id=null,this.f=null,this.time=0,this.handler=ge(this.onTimeout,this)};ke.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},ke.prototype.set=function(r,s){this.f=s;var u=+new Date+r;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=u)};function De(r,s){for(var u=0;u<r.length;++u)if(r[u]==s)return u;return-1}var xn=50,Ve={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},So={origin:"*mouse"},Jr={origin:"+move"};function ir(r,s,u){for(var l=0,p=0;;){var m=r.indexOf(" ",l);m==-1&&(m=r.length);var b=m-l;if(m==r.length||p+b>=s)return l+Math.min(b,s-p);if(p+=m-l,p+=u-p%u,l=m+1,p>=s)return l}}var wn=[""];function sr(r){for(;wn.length<=r;)wn.push(ze(wn)+" ");return wn[r]}function ze(r){return r[r.length-1]}function pi(r,s){for(var u=[],l=0;l<r.length;l++)u[l]=s(r[l],l);return u}function ec(r,s,u){for(var l=0,p=u(s);l<r.length&&u(r[l])<=p;)l++;r.splice(l,0,s)}function _s(){}function tc(r,s){var u;return Object.create?u=Object.create(r):(_s.prototype=r,u=new _s),s&&ye(s,u),u}var Uu=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ks(r){return/\w/.test(r)||r>""&&(r.toUpperCase()!=r.toLowerCase()||Uu.test(r))}function di(r,s){return s?s.source.indexOf("\\w")>-1&&ks(r)?!0:s.test(r):ks(r)}function nc(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var hi=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xs(r){return r.charCodeAt(0)>=768&&hi.test(r)}function ar(r,s,u){for(;(u<0?s>0:s<r.length)&&xs(r.charAt(s));)s+=u;return s}function ft(r,s,u){for(var l=s>u?-1:1;;){if(s==u)return s;var p=(s+u)/2,m=l<0?Math.ceil(p):Math.floor(p);if(m==s)return r(m)?s:u;r(m)?u=m:s=m+l}}function To(r,s,u,l){if(!r)return l(s,u,"ltr",0);for(var p=!1,m=0;m<r.length;++m){var b=r[m];(b.from<u&&b.to>s||s==u&&b.to==s)&&(l(Math.max(b.from,s),Math.min(b.to,u),b.level==1?"rtl":"ltr",m),p=!0)}p||l(s,u,"ltr")}var cr=null;function $n(r,s,u){var l;cr=null;for(var p=0;p<r.length;++p){var m=r[p];if(m.from<s&&m.to>s)return p;m.to==s&&(m.from!=m.to&&u=="before"?l=p:cr=p),m.from==s&&(m.from!=m.to&&u!="before"?l=p:cr=p)}return l??cr}var zu=function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(w){return w<=247?r.charAt(w):1424<=w&&w<=1524?"R":1536<=w&&w<=1785?s.charAt(w-1536):1774<=w&&w<=2220?"r":8192<=w&&w<=8203?"w":w==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,_=/[1n]/;function k(w,I,M){this.level=w,this.from=I,this.to=M}return function(w,I){var M=I=="ltr"?"L":"R";if(w.length==0||I=="ltr"&&!l.test(w))return!1;for(var W=w.length,z=[],ne=0;ne<W;++ne)z.push(u(w.charCodeAt(ne)));for(var ce=0,ue=M;ce<W;++ce){var me=z[ce];me=="m"?z[ce]=ue:ue=me}for(var Ee=0,ve=M;Ee<W;++Ee){var xe=z[Ee];xe=="1"&&ve=="r"?z[Ee]="n":m.test(xe)&&(ve=xe,xe=="r"&&(z[Ee]="R"))}for(var Se=1,Ae=z[0];Se<W-1;++Se){var Re=z[Se];Re=="+"&&Ae=="1"&&z[Se+1]=="1"?z[Se]="1":Re==","&&Ae==z[Se+1]&&(Ae=="1"||Ae=="n")&&(z[Se]=Ae),Ae=Re}for(var rt=0;rt<W;++rt){var Ot=z[rt];if(Ot==",")z[rt]="N";else if(Ot=="%"){var ut=void 0;for(ut=rt+1;ut<W&&z[ut]=="%";++ut);for(var cn=rt&&z[rt-1]=="!"||ut<W&&z[ut]=="1"?"1":"N",Xt=rt;Xt<ut;++Xt)z[Xt]=cn;rt=ut-1}}for(var bt=0,Kt=M;bt<W;++bt){var Mt=z[bt];Kt=="L"&&Mt=="1"?z[bt]="L":m.test(Mt)&&(Kt=Mt)}for(var Ct=0;Ct<W;++Ct)if(p.test(z[Ct])){var Et=void 0;for(Et=Ct+1;Et<W&&p.test(z[Et]);++Et);for(var ht=(Ct?z[Ct-1]:M)=="L",en=(Et<W?z[Et]:M)=="L",Fi=ht==en?ht?"L":"R":M,lo=Ct;lo<Et;++lo)z[lo]=Fi;Ct=Et-1}for(var jt=[],mr,It=0;It<W;)if(b.test(z[It])){var Pf=It;for(++It;It<W&&b.test(z[It]);++It);jt.push(new k(0,Pf,It))}else{var Mr=It,Po=jt.length,Bo=I=="rtl"?1:0;for(++It;It<W&&z[It]!="L";++It);for(var Wt=Mr;Wt<It;)if(_.test(z[Wt])){Mr<Wt&&(jt.splice(Po,0,new k(1,Mr,Wt)),Po+=Bo);var Ri=Wt;for(++Wt;Wt<It&&_.test(z[Wt]);++Wt);jt.splice(Po,0,new k(2,Ri,Wt)),Po+=Bo,Mr=Wt}else++Wt;Mr<It&&jt.splice(Po,0,new k(1,Mr,It))}return I=="ltr"&&(jt[0].level==1&&(mr=w.match(/^\s+/))&&(jt[0].from=mr[0].length,jt.unshift(new k(0,0,mr[0].length))),ze(jt).level==1&&(mr=w.match(/\s+$/))&&(ze(jt).to-=mr[0].length,jt.push(new k(0,W-mr[0].length,W)))),I=="rtl"?jt.reverse():jt}}();function Cn(r,s){var u=r.order;return u==null&&(u=r.order=zu(r.text,s)),u}var rc=[],be=function(r,s,u){if(r.addEventListener)r.addEventListener(s,u,!1);else if(r.attachEvent)r.attachEvent("on"+s,u);else{var l=r._handlers||(r._handlers={});l[s]=(l[s]||rc).concat(u)}};function ws(r,s){return r._handlers&&r._handlers[s]||rc}function Pt(r,s,u){if(r.removeEventListener)r.removeEventListener(s,u,!1);else if(r.detachEvent)r.detachEvent("on"+s,u);else{var l=r._handlers,p=l&&l[s];if(p){var m=De(p,u);m>-1&&(l[s]=p.slice(0,m).concat(p.slice(m+1)))}}}function it(r,s){var u=ws(r,s);if(u.length)for(var l=Array.prototype.slice.call(arguments,2),p=0;p<u.length;++p)u[p].apply(null,l)}function pt(r,s,u){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),it(r,u||s.type,r,s),$s(s)||s.codemirrorIgnore}function oc(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var u=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),l=0;l<s.length;++l)De(u,s[l])==-1&&u.push(s[l])}function zt(r,s){return ws(r,s).length>0}function Ht(r){r.prototype.on=function(s,u){be(this,s,u)},r.prototype.off=function(s,u){Pt(this,s,u)}}function Bt(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Do(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function $s(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Sr(r){Bt(r),Do(r)}function Yt(r){return r.target||r.srcElement}function Cs(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),Y&&r.ctrlKey&&s==1&&(s=3),s}var Hu=function(){if(d&&h<9)return!1;var r=x("div");return"draggable"in r||"dragDrop"in r}(),An;function Gu(r){if(An==null){var s=x("span","");R(r,x("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(An=s.offsetWidth<=1&&s.offsetHeight>2&&!(d&&h<8))}var u=An?x("span",""):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var mi;function ic(r){if(mi!=null)return mi;var s=R(r,document.createTextNode("AخA")),u=J(s,0,1).getBoundingClientRect(),l=J(s,1,2).getBoundingClientRect();return H(r),!u||u.left==u.right?!1:mi=l.right-u.right<3}var As=`
|
|
289
|
+
|
|
290
|
+
b`.split(/\n/).length!=3?function(r){for(var s=0,u=[],l=r.length;s<=l;){var p=r.indexOf(`
|
|
291
|
+
`,s);p==-1&&(p=r.length);var m=r.slice(s,r.charAt(p-1)=="\r"?p-1:p),b=m.indexOf("\r");b!=-1?(u.push(m.slice(0,b)),s+=b+1):(u.push(m),s=p+1)}return u}:function(r){return r.split(/\r\n?|\n/)},Zr=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},lr=function(){var r=x("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")}(),ur=null;function sc(r){if(ur!=null)return ur;var s=R(r,x("span","x")),u=s.getBoundingClientRect(),l=J(s,0,1).getBoundingClientRect();return ur=Math.abs(u.left-l.left)>1}var Vn={},Xr={};function ac(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Vn[r]=s}function vi(r,s){Xr[r]=s}function sn(r){if(typeof r=="string"&&Xr.hasOwnProperty(r))r=Xr[r];else if(r&&typeof r.name=="string"&&Xr.hasOwnProperty(r.name)){var s=Xr[r.name];typeof s=="string"&&(s={name:s}),r=tc(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return sn("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return sn("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function Tr(r,s){s=sn(s);var u=Vn[s.name];if(!u)return Tr(r,"text/plain");var l=u(r,s);if(Kr.hasOwnProperty(s.name)){var p=Kr[s.name];for(var m in p)p.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=p[m])}if(l.name=s.name,s.helperType&&(l.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)l[b]=s.modeProps[b];return l}var Kr={};function cc(r,s){var u=Kr.hasOwnProperty(r)?Kr[r]:Kr[r]={};ye(s,u)}function Dr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var u={};for(var l in s){var p=s[l];p instanceof Array&&(p=p.concat([])),u[l]=p}return u}function eo(r,s){for(var u;r.innerMode&&(u=r.innerMode(s),!(!u||u.mode==r));)s=u.state,r=u.mode;return u||{mode:r,state:s}}function Ss(r,s,u){return r.startState?r.startState(s,u):!0}var dt=function(r,s,u){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};dt.prototype.eol=function(){return this.pos>=this.string.length},dt.prototype.sol=function(){return this.pos==this.lineStart},dt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},dt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},dt.prototype.eat=function(r){var s=this.string.charAt(this.pos),u;if(typeof r=="string"?u=s==r:u=s&&(r.test?r.test(s):r(s)),u)return++this.pos,s},dt.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},dt.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},dt.prototype.skipToEnd=function(){this.pos=this.string.length},dt.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},dt.prototype.backUp=function(r){this.pos-=r},dt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},dt.prototype.match=function(r,s,u){if(typeof r=="string"){var l=function(b){return u?b.toLowerCase():b},p=this.string.substr(this.pos,r.length);if(l(p)==l(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},dt.prototype.current=function(){return this.string.slice(this.start,this.pos)},dt.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},dt.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},dt.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function we(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var u=r;!u.lines;)for(var l=0;;++l){var p=u.children[l],m=p.chunkSize();if(s<m){u=p;break}s-=m}return u.lines[s]}function Nr(r,s,u){var l=[],p=s.line;return r.iter(s.line,u.line+1,function(m){var b=m.text;p==u.line&&(b=b.slice(0,u.ch)),p==s.line&&(b=b.slice(s.ch)),l.push(b),++p}),l}function gi(r,s,u){var l=[];return r.iter(s,u,function(p){l.push(p.text)}),l}function Sn(r,s){var u=s-r.height;if(u)for(var l=r;l;l=l.parent)l.height+=u}function Qe(r){if(r.parent==null)return null;for(var s=r.parent,u=De(s.lines,r),l=s.parent;l;s=l,l=l.parent)for(var p=0;l.children[p]!=s;++p)u+=l.children[p].chunkSize();return u+s.first}function fr(r,s){var u=r.first;e:do{for(var l=0;l<r.children.length;++l){var p=r.children[l],m=p.height;if(s<m){r=p;continue e}s-=m,u+=p.chunkSize()}return u}while(!r.lines);for(var b=0;b<r.lines.length;++b){var _=r.lines[b],k=_.height;if(s<k)break;s-=k}return u+b}function A(r,s){return s>=r.first&&s<r.first+r.size}function q(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function B(r,s,u){if(u===void 0&&(u=null),!(this instanceof B))return new B(r,s,u);this.line=r,this.ch=s,this.sticky=u}function ee(r,s){return r.line-s.line||r.ch-s.ch}function Ne(r,s){return r.sticky==s.sticky&&ee(r,s)==0}function je(r){return B(r.line,r.ch)}function We(r,s){return ee(r,s)<0?s:r}function $t(r,s){return ee(r,s)<0?r:s}function hn(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function Oe(r,s){if(s.line<r.first)return B(r.first,0);var u=r.first+r.size-1;return s.line>u?B(u,we(r,u).text.length):r2(s,we(r,s.line).text.length)}function r2(r,s){var u=r.ch;return u==null||u>s?B(r.line,s):u<0?B(r.line,0):r}function Gh(r,s){for(var u=[],l=0;l<s.length;l++)u[l]=Oe(r,s[l]);return u}var lc=function(r,s){this.state=r,this.lookAhead=s},pr=function(r,s,u,l){this.state=s,this.doc=r,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};pr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},pr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pr.fromSaved=function(r,s,u){return s instanceof lc?new pr(r,Dr(r.mode,s.state),u,s.lookAhead):new pr(r,Dr(r.mode,s),u)},pr.prototype.save=function(r){var s=r!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lc(s,this.maxLookAhead):s};function Wh(r,s,u,l){var p=[r.state.modeGen],m={};Kh(r,s.text,r.doc.mode,u,function(w,I){return p.push(w,I)},m,l);for(var b=u.state,_=function(w){u.baseTokens=p;var I=r.state.overlays[w],M=1,W=0;u.state=!0,Kh(r,s.text,I.mode,u,function(z,ne){for(var ce=M;W<z;){var ue=p[M];ue>z&&p.splice(M,1,z,p[M+1],ue),M+=2,W=Math.min(z,ue)}if(ne)if(I.opaque)p.splice(ce,M-ce,z,"overlay "+ne),M=ce+2;else for(;ce<M;ce+=2){var me=p[ce+1];p[ce+1]=(me?me+" ":"")+"overlay "+ne}},m),u.state=b,u.baseTokens=null,u.baseTokenPos=1},k=0;k<r.state.overlays.length;++k)_(k);return{styles:p,classes:m.bgClass||m.textClass?m:null}}function Qh(r,s,u){if(!s.styles||s.styles[0]!=r.state.modeGen){var l=Ts(r,Qe(s)),p=s.text.length>r.options.maxHighlightLength&&Dr(r.doc.mode,l.state),m=Wh(r,s,l);p&&(l.state=p),s.stateAfter=l.save(!p),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),u===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Ts(r,s,u){var l=r.doc,p=r.display;if(!l.mode.startState)return new pr(l,!0,s);var m=o2(r,s,u),b=m>l.first&&we(l,m-1).stateAfter,_=b?pr.fromSaved(l,b,m):new pr(l,Ss(l.mode),m);return l.iter(m,s,function(k){Wu(r,k.text,_);var w=_.line;k.stateAfter=w==s-1||w%5==0||w>=p.viewFrom&&w<p.viewTo?_.save():null,_.nextLine()}),u&&(l.modeFrontier=_.line),_}function Wu(r,s,u,l){var p=r.doc.mode,m=new dt(s,r.options.tabSize,u);for(m.start=m.pos=l||0,s==""&&Yh(p,u.state);!m.eol();)Qu(p,m,u.state),m.start=m.pos}function Yh(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var u=eo(r,s);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function Qu(r,s,u,l){for(var p=0;p<10;p++){l&&(l[0]=eo(r,u).mode);var m=r.token(s,u);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Jh=function(r,s,u){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=u};function Zh(r,s,u,l){var p=r.doc,m=p.mode,b;s=Oe(p,s);var _=we(p,s.line),k=Ts(r,s.line,u),w=new dt(_.text,r.options.tabSize,k),I;for(l&&(I=[]);(l||w.pos<s.ch)&&!w.eol();)w.start=w.pos,b=Qu(m,w,k.state),l&&I.push(new Jh(w,b,Dr(p.mode,k.state)));return l?I:new Jh(w,b,k.state)}function Xh(r,s){if(r)for(;;){var u=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;r=r.slice(0,u.index)+r.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";s[l]==null?s[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(s[l])||(s[l]+=" "+u[2])}return r}function Kh(r,s,u,l,p,m,b){var _=u.flattenSpans;_==null&&(_=r.options.flattenSpans);var k=0,w=null,I=new dt(s,r.options.tabSize,l),M,W=r.options.addModeClass&&[null];for(s==""&&Xh(Yh(u,l.state),m);!I.eol();){if(I.pos>r.options.maxHighlightLength?(_=!1,b&&Wu(r,s,l,I.pos),I.pos=s.length,M=null):M=Xh(Qu(u,I,l.state,W),m),W){var z=W[0].name;z&&(M="m-"+(M?z+" "+M:z))}if(!_||w!=M){for(;k<I.start;)k=Math.min(I.start,k+5e3),p(k,w);w=M}I.start=I.pos}for(;k<I.pos;){var ne=Math.min(I.pos,k+5e3);p(ne,w),k=ne}}function o2(r,s,u){for(var l,p,m=r.doc,b=u?-1:s-(r.doc.mode.innerMode?1e3:100),_=s;_>b;--_){if(_<=m.first)return m.first;var k=we(m,_-1),w=k.stateAfter;if(w&&(!u||_+(w instanceof lc?w.lookAhead:0)<=m.modeFrontier))return _;var I=he(k.text,null,r.options.tabSize);(p==null||l>I)&&(p=_-1,l=I)}return p}function i2(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var u=r.first,l=s-1;l>u;l--){var p=we(r,l).stateAfter;if(p&&(!(p instanceof lc)||l+p.lookAhead<s)){u=l+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,u)}}var em=!1,Or=!1;function s2(){em=!0}function a2(){Or=!0}function uc(r,s,u){this.marker=r,this.from=s,this.to=u}function Ds(r,s){if(r)for(var u=0;u<r.length;++u){var l=r[u];if(l.marker==s)return l}}function c2(r,s){for(var u,l=0;l<r.length;++l)r[l]!=s&&(u||(u=[])).push(r[l]);return u}function l2(r,s,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&r.markedSpans&&l.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],l&&l.add(r.markedSpans)),s.marker.attachLine(r)}function u2(r,s,u){var l;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(_||m.from==s&&b.type=="bookmark"&&(!u||!m.marker.insertLeft)){var k=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(l||(l=[])).push(new uc(b,m.from,k?null:m.to))}}return l}function f2(r,s,u){var l;if(r)for(var p=0;p<r.length;++p){var m=r[p],b=m.marker,_=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(_||m.from==s&&b.type=="bookmark"&&(!u||m.marker.insertLeft)){var k=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(l||(l=[])).push(new uc(b,k?null:m.from-s,m.to==null?null:m.to-s))}}return l}function Yu(r,s){if(s.full)return null;var u=A(r,s.from.line)&&we(r,s.from.line).markedSpans,l=A(r,s.to.line)&&we(r,s.to.line).markedSpans;if(!u&&!l)return null;var p=s.from.ch,m=s.to.ch,b=ee(s.from,s.to)==0,_=u2(u,p,b),k=f2(l,m,b),w=s.text.length==1,I=ze(s.text).length+(w?p:0);if(_)for(var M=0;M<_.length;++M){var W=_[M];if(W.to==null){var z=Ds(k,W.marker);z?w&&(W.to=z.to==null?null:z.to+I):W.to=p}}if(k)for(var ne=0;ne<k.length;++ne){var ce=k[ne];if(ce.to!=null&&(ce.to+=I),ce.from==null){var ue=Ds(_,ce.marker);ue||(ce.from=I,w&&(_||(_=[])).push(ce))}else ce.from+=I,w&&(_||(_=[])).push(ce)}_&&(_=tm(_)),k&&k!=_&&(k=tm(k));var me=[_];if(!w){var Ee=s.text.length-2,ve;if(Ee>0&&_)for(var xe=0;xe<_.length;++xe)_[xe].to==null&&(ve||(ve=[])).push(new uc(_[xe].marker,null,null));for(var Se=0;Se<Ee;++Se)me.push(ve);me.push(k)}return me}function tm(r){for(var s=0;s<r.length;++s){var u=r[s];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function p2(r,s,u){var l=null;if(r.iter(s.line,u.line+1,function(z){if(z.markedSpans)for(var ne=0;ne<z.markedSpans.length;++ne){var ce=z.markedSpans[ne].marker;ce.readOnly&&(!l||De(l,ce)==-1)&&(l||(l=[])).push(ce)}}),!l)return null;for(var p=[{from:s,to:u}],m=0;m<l.length;++m)for(var b=l[m],_=b.find(0),k=0;k<p.length;++k){var w=p[k];if(!(ee(w.to,_.from)<0||ee(w.from,_.to)>0)){var I=[k,1],M=ee(w.from,_.from),W=ee(w.to,_.to);(M<0||!b.inclusiveLeft&&!M)&&I.push({from:w.from,to:_.from}),(W>0||!b.inclusiveRight&&!W)&&I.push({from:_.to,to:w.to}),p.splice.apply(p,I),k+=I.length-3}}return p}function nm(r){var s=r.markedSpans;if(s){for(var u=0;u<s.length;++u)s[u].marker.detachLine(r);r.markedSpans=null}}function rm(r,s){if(s){for(var u=0;u<s.length;++u)s[u].marker.attachLine(r);r.markedSpans=s}}function fc(r){return r.inclusiveLeft?-1:0}function pc(r){return r.inclusiveRight?1:0}function Ju(r,s){var u=r.lines.length-s.lines.length;if(u!=0)return u;var l=r.find(),p=s.find(),m=ee(l.from,p.from)||fc(r)-fc(s);if(m)return-m;var b=ee(l.to,p.to)||pc(r)-pc(s);return b||s.id-r.id}function om(r,s){var u=Or&&r.markedSpans,l;if(u)for(var p=void 0,m=0;m<u.length;++m)p=u[m],p.marker.collapsed&&(s?p.from:p.to)==null&&(!l||Ju(l,p.marker)<0)&&(l=p.marker);return l}function im(r){return om(r,!0)}function dc(r){return om(r,!1)}function d2(r,s){var u=Or&&r.markedSpans,l;if(u)for(var p=0;p<u.length;++p){var m=u[p];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!l||Ju(l,m.marker)<0)&&(l=m.marker)}return l}function sm(r,s,u,l,p){var m=we(r,s),b=Or&&m.markedSpans;if(b)for(var _=0;_<b.length;++_){var k=b[_];if(k.marker.collapsed){var w=k.marker.find(0),I=ee(w.from,u)||fc(k.marker)-fc(p),M=ee(w.to,l)||pc(k.marker)-pc(p);if(!(I>=0&&M<=0||I<=0&&M>=0)&&(I<=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.to,u)>=0:ee(w.to,u)>0)||I>=0&&(k.marker.inclusiveRight&&p.inclusiveLeft?ee(w.from,l)<=0:ee(w.from,l)<0)))return!0}}}function jn(r){for(var s;s=im(r);)r=s.find(-1,!0).line;return r}function h2(r){for(var s;s=dc(r);)r=s.find(1,!0).line;return r}function m2(r){for(var s,u;s=dc(r);)r=s.find(1,!0).line,(u||(u=[])).push(r);return u}function Zu(r,s){var u=we(r,s),l=jn(u);return u==l?s:Qe(l)}function am(r,s){if(s>r.lastLine())return s;var u=we(r,s),l;if(!to(r,u))return s;for(;l=dc(u);)u=l.find(1,!0).line;return Qe(u)+1}function to(r,s){var u=Or&&s.markedSpans;if(u){for(var l=void 0,p=0;p<u.length;++p)if(l=u[p],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Xu(r,s,l))return!0}}}function Xu(r,s,u){if(u.to==null){var l=u.marker.find(1,!0);return Xu(r,l.line,Ds(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==s.text.length)return!0;for(var p=void 0,m=0;m<s.markedSpans.length;++m)if(p=s.markedSpans[m],p.marker.collapsed&&!p.marker.widgetNode&&p.from==u.to&&(p.to==null||p.to!=u.from)&&(p.marker.inclusiveLeft||u.marker.inclusiveRight)&&Xu(r,s,p))return!0}function Ir(r){r=jn(r);for(var s=0,u=r.parent,l=0;l<u.lines.length;++l){var p=u.lines[l];if(p==r)break;s+=p.height}for(var m=u.parent;m;u=m,m=u.parent)for(var b=0;b<m.children.length;++b){var _=m.children[b];if(_==u)break;s+=_.height}return s}function hc(r){if(r.height==0)return 0;for(var s=r.text.length,u,l=r;u=im(l);){var p=u.find(0,!0);l=p.from.line,s+=p.from.ch-p.to.ch}for(l=r;u=dc(l);){var m=u.find(0,!0);s-=l.text.length-m.from.ch,l=m.to.line,s+=l.text.length-m.to.ch}return s}function Ku(r){var s=r.display,u=r.doc;s.maxLine=we(u,u.first),s.maxLineLength=hc(s.maxLine),s.maxLineChanged=!0,u.iter(function(l){var p=hc(l);p>s.maxLineLength&&(s.maxLineLength=p,s.maxLine=l)})}var yi=function(r,s,u){this.text=r,rm(this,s),this.height=u?u(this):1};yi.prototype.lineNo=function(){return Qe(this)},Ht(yi);function v2(r,s,u,l){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),nm(r),rm(r,u);var p=l?l(r):1;p!=r.height&&Sn(r,p)}function g2(r){r.parent=null,nm(r)}var y2={},b2={};function cm(r,s){if(!r||/^\s*$/.test(r))return null;var u=s.addModeClass?b2:y2;return u[r]||(u[r]=r.replace(/\S+/g,"cm-$&"))}function lm(r,s){var u=j("span",null,null,v?"padding-right: .1px":null),l={pre:j("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var p=0;p<=(s.rest?s.rest.length:0);p++){var m=p?s.rest[p-1]:s.line,b=void 0;l.pos=0,l.addToken=_2,ic(r.display.measure)&&(b=Cn(m,r.doc.direction))&&(l.addToken=x2(l.addToken,b)),l.map=[];var _=s!=r.display.externalMeasured&&Qe(m);w2(m,l,Qh(r,m,_)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Gu(r.display.measure))),p==0?(s.measure.map=l.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(l.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(v){var k=l.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return it(r,"renderLine",r,s.line,l.pre),l.pre.className&&(l.textClass=Me(l.pre.className,l.textClass||"")),l}function E2(r){var s=x("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function _2(r,s,u,l,p,m,b){if(s){var _=r.splitSpaces?k2(s,r.trailingSpace):s,k=r.cm.state.specialChars,w=!1,I;if(!k.test(s))r.col+=s.length,I=document.createTextNode(_),r.map.push(r.pos,r.pos+s.length,I),d&&h<9&&(w=!0),r.pos+=s.length;else{I=document.createDocumentFragment();for(var M=0;;){k.lastIndex=M;var W=k.exec(s),z=W?W.index-M:s.length-M;if(z){var ne=document.createTextNode(_.slice(M,M+z));d&&h<9?I.appendChild(x("span",[ne])):I.appendChild(ne),r.map.push(r.pos,r.pos+z,ne),r.col+=z,r.pos+=z}if(!W)break;M+=z+1;var ce=void 0;if(W[0]==" "){var ue=r.cm.options.tabSize,me=ue-r.col%ue;ce=I.appendChild(x("span",sr(me),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),r.col+=me}else W[0]=="\r"||W[0]==`
|
|
292
|
+
`?(ce=I.appendChild(x("span",W[0]=="\r"?"␍":"","cm-invalidchar")),ce.setAttribute("cm-text",W[0]),r.col+=1):(ce=r.cm.options.specialCharPlaceholder(W[0]),ce.setAttribute("cm-text",W[0]),d&&h<9?I.appendChild(x("span",[ce])):I.appendChild(ce),r.col+=1);r.map.push(r.pos,r.pos+1,ce),r.pos++}}if(r.trailingSpace=_.charCodeAt(s.length-1)==32,u||l||p||w||m||b){var Ee=u||"";l&&(Ee+=l),p&&(Ee+=p);var ve=x("span",[I],Ee,m);if(b)for(var xe in b)b.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&ve.setAttribute(xe,b[xe]);return r.content.appendChild(ve)}r.content.appendChild(I)}}function k2(r,s){if(r.length>1&&!/ /.test(r))return r;for(var u=s,l="",p=0;p<r.length;p++){var m=r.charAt(p);m==" "&&u&&(p==r.length-1||r.charCodeAt(p+1)==32)&&(m=" "),l+=m,u=m==" "}return l}function x2(r,s){return function(u,l,p,m,b,_,k){p=p?p+" cm-force-border":"cm-force-border";for(var w=u.pos,I=w+l.length;;){for(var M=void 0,W=0;W<s.length&&(M=s[W],!(M.to>w&&M.from<=w));W++);if(M.to>=I)return r(u,l,p,m,b,_,k);r(u,l.slice(0,M.to-w),p,m,null,_,k),m=null,l=l.slice(M.to-w),w=M.to}}}function um(r,s,u,l){var p=!l&&u.widgetNode;p&&r.map.push(r.pos,r.pos+s,p),!l&&r.cm.display.input.needsContentAttribute&&(p||(p=r.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",u.id)),p&&(r.cm.display.input.setUneditable(p),r.content.appendChild(p)),r.pos+=s,r.trailingSpace=!1}function w2(r,s,u){var l=r.markedSpans,p=r.text,m=0;if(!l){for(var b=1;b<u.length;b+=2)s.addToken(s,p.slice(m,m=u[b]),cm(u[b+1],s.cm.options));return}for(var _=p.length,k=0,w=1,I="",M,W,z=0,ne,ce,ue,me,Ee;;){if(z==k){ne=ce=ue=W="",Ee=null,me=null,z=1/0;for(var ve=[],xe=void 0,Se=0;Se<l.length;++Se){var Ae=l[Se],Re=Ae.marker;if(Re.type=="bookmark"&&Ae.from==k&&Re.widgetNode)ve.push(Re);else if(Ae.from<=k&&(Ae.to==null||Ae.to>k||Re.collapsed&&Ae.to==k&&Ae.from==k)){if(Ae.to!=null&&Ae.to!=k&&z>Ae.to&&(z=Ae.to,ce=""),Re.className&&(ne+=" "+Re.className),Re.css&&(W=(W?W+";":"")+Re.css),Re.startStyle&&Ae.from==k&&(ue+=" "+Re.startStyle),Re.endStyle&&Ae.to==z&&(xe||(xe=[])).push(Re.endStyle,Ae.to),Re.title&&((Ee||(Ee={})).title=Re.title),Re.attributes)for(var rt in Re.attributes)(Ee||(Ee={}))[rt]=Re.attributes[rt];Re.collapsed&&(!me||Ju(me.marker,Re)<0)&&(me=Ae)}else Ae.from>k&&z>Ae.from&&(z=Ae.from)}if(xe)for(var Ot=0;Ot<xe.length;Ot+=2)xe[Ot+1]==z&&(ce+=" "+xe[Ot]);if(!me||me.from==k)for(var ut=0;ut<ve.length;++ut)um(s,0,ve[ut]);if(me&&(me.from||0)==k){if(um(s,(me.to==null?_+1:me.to)-k,me.marker,me.from==null),me.to==null)return;me.to==k&&(me=!1)}}if(k>=_)break;for(var cn=Math.min(_,z);;){if(I){var Xt=k+I.length;if(!me){var bt=Xt>cn?I.slice(0,cn-k):I;s.addToken(s,bt,M?M+ne:ne,ue,k+bt.length==z?ce:"",W,Ee)}if(Xt>=cn){I=I.slice(cn-k),k=cn;break}k=Xt,ue=""}I=p.slice(m,m=u[w++]),M=cm(u[w++],s.cm.options)}}}function fm(r,s,u){this.line=s,this.rest=m2(s),this.size=this.rest?Qe(ze(this.rest))-u+1:1,this.node=this.text=null,this.hidden=to(r,s)}function mc(r,s,u){for(var l=[],p,m=s;m<u;m=p){var b=new fm(r.doc,we(r.doc,m),m);p=m+b.size,l.push(b)}return l}var bi=null;function $2(r){bi?bi.ops.push(r):r.ownsGroup=bi={ops:[r],delayedCallbacks:[]}}function C2(r){var s=r.delayedCallbacks,u=0;do{for(;u<s.length;u++)s[u].call(null);for(var l=0;l<r.ops.length;l++){var p=r.ops[l];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(u<s.length)}function A2(r,s){var u=r.ownsGroup;if(u)try{C2(u)}finally{bi=null,s(u)}}var Ns=null;function Tt(r,s){var u=ws(r,s);if(u.length){var l=Array.prototype.slice.call(arguments,2),p;bi?p=bi.delayedCallbacks:Ns?p=Ns:(p=Ns=[],setTimeout(S2,0));for(var m=function(_){p.push(function(){return u[_].apply(null,l)})},b=0;b<u.length;++b)m(b)}}function S2(){var r=Ns;Ns=null;for(var s=0;s<r.length;++s)r[s]()}function pm(r,s,u,l){for(var p=0;p<s.changes.length;p++){var m=s.changes[p];m=="text"?D2(r,s):m=="gutter"?hm(r,s,u,l):m=="class"?ef(r,s):m=="widget"&&N2(r,s,l)}s.changes=null}function Os(r){return r.node==r.text&&(r.node=x("div",null,null,"position: relative"),r.text.parentNode&&r.text.parentNode.replaceChild(r.node,r.text),r.node.appendChild(r.text),d&&h<8&&(r.node.style.zIndex=2)),r.node}function T2(r,s){var u=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),s.background)u?s.background.className=u:(s.background.parentNode.removeChild(s.background),s.background=null);else if(u){var l=Os(s);s.background=l.insertBefore(x("div",null,u),l.firstChild),r.display.input.setUneditable(s.background)}}function dm(r,s){var u=r.display.externalMeasured;return u&&u.line==s.line?(r.display.externalMeasured=null,s.measure=u.measure,u.built):lm(r,s)}function D2(r,s){var u=s.text.className,l=dm(r,s);s.text==s.node&&(s.node=l.pre),s.text.parentNode.replaceChild(l.pre,s.text),s.text=l.pre,l.bgClass!=s.bgClass||l.textClass!=s.textClass?(s.bgClass=l.bgClass,s.textClass=l.textClass,ef(r,s)):u&&(s.text.className=u)}function ef(r,s){T2(r,s),s.line.wrapClass?Os(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var u=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=u||""}function hm(r,s,u,l){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var p=Os(s);s.gutterBackground=x("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(r.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),r.display.input.setUneditable(s.gutterBackground),p.insertBefore(s.gutterBackground,s.text)}var m=s.line.gutterMarkers;if(r.options.lineNumbers||m){var b=Os(s),_=s.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(r.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(_.setAttribute("aria-hidden","true"),r.display.input.setUneditable(_),b.insertBefore(_,s.text),s.line.gutterClass&&(_.className+=" "+s.line.gutterClass),r.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(s.lineNumber=_.appendChild(x("div",q(r.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+r.display.lineNumInnerWidth+"px"))),m)for(var k=0;k<r.display.gutterSpecs.length;++k){var w=r.display.gutterSpecs[k].className,I=m.hasOwnProperty(w)&&m[w];I&&_.appendChild(x("div",[I],"CodeMirror-gutter-elt","left: "+l.gutterLeft[w]+"px; width: "+l.gutterWidth[w]+"px"))}}}function N2(r,s,u){s.alignable&&(s.alignable=null);for(var l=oe("CodeMirror-linewidget"),p=s.node.firstChild,m=void 0;p;p=m)m=p.nextSibling,l.test(p.className)&&s.node.removeChild(p);mm(r,s,u)}function O2(r,s,u,l){var p=dm(r,s);return s.text=s.node=p.pre,p.bgClass&&(s.bgClass=p.bgClass),p.textClass&&(s.textClass=p.textClass),ef(r,s),hm(r,s,u,l),mm(r,s,l),s.node}function mm(r,s,u){if(vm(r,s.line,s,u,!0),s.rest)for(var l=0;l<s.rest.length;l++)vm(r,s.rest[l],s,u,!1)}function vm(r,s,u,l,p){if(s.widgets)for(var m=Os(u),b=0,_=s.widgets;b<_.length;++b){var k=_[b],w=x("div",[k.node],"CodeMirror-linewidget"+(k.className?" "+k.className:""));k.handleMouseEvents||w.setAttribute("cm-ignore-events","true"),I2(k,w,u,l),r.display.input.setUneditable(w),p&&k.above?m.insertBefore(w,u.gutter||u.text):m.appendChild(w),Tt(k,"redraw")}}function I2(r,s,u,l){if(r.noHScroll){(u.alignable||(u.alignable=[])).push(s);var p=l.wrapperWidth;s.style.left=l.fixedPos+"px",r.coverGutter||(p-=l.gutterTotalWidth,s.style.paddingLeft=l.gutterTotalWidth+"px"),s.style.width=p+"px"}r.coverGutter&&(s.style.zIndex=5,s.style.position="relative",r.noHScroll||(s.style.marginLeft=-l.gutterTotalWidth+"px"))}function Is(r){if(r.height!=null)return r.height;var s=r.doc.cm;if(!s)return 0;if(!te(document.body,r.node)){var u="position: relative;";r.coverGutter&&(u+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),r.noHScroll&&(u+="width: "+s.display.wrapper.clientWidth+"px;"),R(s.display.measure,x("div",[r.node],null,u))}return r.height=r.node.parentNode.offsetHeight}function Lr(r,s){for(var u=Yt(s);u!=r.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==r.sizer&&u!=r.mover)return!0}function vc(r){return r.lineSpace.offsetTop}function tf(r){return r.mover.offsetHeight-r.lineSpace.offsetHeight}function gm(r){if(r.cachedPaddingH)return r.cachedPaddingH;var s=R(r.measure,x("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(r.cachedPaddingH=l),l}function dr(r){return xn-r.display.nativeBarWidth}function No(r){return r.display.scroller.clientWidth-dr(r)-r.display.barWidth}function nf(r){return r.display.scroller.clientHeight-dr(r)-r.display.barHeight}function L2(r,s,u){var l=r.options.lineWrapping,p=l&&No(r);if(!s.measure.heights||l&&s.measure.width!=p){var m=s.measure.heights=[];if(l){s.measure.width=p;for(var b=s.text.firstChild.getClientRects(),_=0;_<b.length-1;_++){var k=b[_],w=b[_+1];Math.abs(k.bottom-w.bottom)>2&&m.push((k.bottom+w.top)/2-u.top)}}m.push(u.bottom-u.top)}}function ym(r,s,u){if(r.line==s)return{map:r.measure.map,cache:r.measure.cache};if(r.rest){for(var l=0;l<r.rest.length;l++)if(r.rest[l]==s)return{map:r.measure.maps[l],cache:r.measure.caches[l]};for(var p=0;p<r.rest.length;p++)if(Qe(r.rest[p])>u)return{map:r.measure.maps[p],cache:r.measure.caches[p],before:!0}}}function F2(r,s){s=jn(s);var u=Qe(s),l=r.display.externalMeasured=new fm(r.doc,s,u);l.lineN=u;var p=l.built=lm(r,l);return l.text=p.pre,R(r.display.lineMeasure,p.pre),l}function bm(r,s,u,l){return hr(r,Ei(r,s),u,l)}function rf(r,s){if(s>=r.display.viewFrom&&s<r.display.viewTo)return r.display.view[Lo(r,s)];var u=r.display.externalMeasured;if(u&&s>=u.lineN&&s<u.lineN+u.size)return u}function Ei(r,s){var u=Qe(s),l=rf(r,u);l&&!l.text?l=null:l&&l.changes&&(pm(r,l,u,lf(r)),r.curOp.forceUpdate=!0),l||(l=F2(r,s));var p=ym(l,s,u);return{line:s,view:l,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function hr(r,s,u,l,p){s.before&&(u=-1);var m=u+(l||""),b;return s.cache.hasOwnProperty(m)?b=s.cache[m]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(L2(r,s.view,s.rect),s.hasHeights=!0),b=M2(r,s,u,l),b.bogus||(s.cache[m]=b)),{left:b.left,right:b.right,top:p?b.rtop:b.top,bottom:p?b.rbottom:b.bottom}}var Em={left:0,right:0,top:0,bottom:0};function _m(r,s,u){for(var l,p,m,b,_,k,w=0;w<r.length;w+=3)if(_=r[w],k=r[w+1],s<_?(p=0,m=1,b="left"):s<k?(p=s-_,m=p+1):(w==r.length-3||s==k&&r[w+3]>s)&&(m=k-_,p=m-1,s>=k&&(b="right")),p!=null){if(l=r[w+2],_==k&&u==(l.insertLeft?"left":"right")&&(b=u),u=="left"&&p==0)for(;w&&r[w-2]==r[w-3]&&r[w-1].insertLeft;)l=r[(w-=3)+2],b="left";if(u=="right"&&p==k-_)for(;w<r.length-3&&r[w+3]==r[w+4]&&!r[w+5].insertLeft;)l=r[(w+=3)+2],b="right";break}return{node:l,start:p,end:m,collapse:b,coverStart:_,coverEnd:k}}function R2(r,s){var u=Em;if(s=="left")for(var l=0;l<r.length&&(u=r[l]).left==u.right;l++);else for(var p=r.length-1;p>=0&&(u=r[p]).left==u.right;p--);return u}function M2(r,s,u,l){var p=_m(s.map,u,l),m=p.node,b=p.start,_=p.end,k=p.collapse,w;if(m.nodeType==3){for(var I=0;I<4;I++){for(;b&&xs(s.line.text.charAt(p.coverStart+b));)--b;for(;p.coverStart+_<p.coverEnd&&xs(s.line.text.charAt(p.coverStart+_));)++_;if(d&&h<9&&b==0&&_==p.coverEnd-p.coverStart?w=m.parentNode.getBoundingClientRect():w=R2(J(m,b,_).getClientRects(),l),w.left||w.right||b==0)break;_=b,b=b-1,k="right"}d&&h<11&&(w=q2(r.display.measure,w))}else{b>0&&(k=l="right");var M;r.options.lineWrapping&&(M=m.getClientRects()).length>1?w=M[l=="right"?M.length-1:0]:w=m.getBoundingClientRect()}if(d&&h<9&&!b&&(!w||!w.left&&!w.right)){var W=m.parentNode.getClientRects()[0];W?w={left:W.left,right:W.left+ki(r.display),top:W.top,bottom:W.bottom}:w=Em}for(var z=w.top-s.rect.top,ne=w.bottom-s.rect.top,ce=(z+ne)/2,ue=s.view.measure.heights,me=0;me<ue.length-1&&!(ce<ue[me]);me++);var Ee=me?ue[me-1]:0,ve=ue[me],xe={left:(k=="right"?w.right:w.left)-s.rect.left,right:(k=="left"?w.left:w.right)-s.rect.left,top:Ee,bottom:ve};return!w.left&&!w.right&&(xe.bogus=!0),r.options.singleCursorHeightPerLine||(xe.rtop=z,xe.rbottom=ne),xe}function q2(r,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sc(r))return s;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*u,right:s.right*u,top:s.top*l,bottom:s.bottom*l}}function km(r){if(r.measure&&(r.measure.cache={},r.measure.heights=null,r.rest))for(var s=0;s<r.rest.length;s++)r.measure.caches[s]={}}function xm(r){r.display.externalMeasure=null,H(r.display.lineMeasure);for(var s=0;s<r.display.view.length;s++)km(r.display.view[s])}function Ls(r){xm(r),r.display.cachedCharWidth=r.display.cachedTextHeight=r.display.cachedPaddingH=null,r.options.lineWrapping||(r.display.maxLineChanged=!0),r.display.lineNumChars=null}function wm(r){return g&&O?-(r.body.getBoundingClientRect().left-parseInt(getComputedStyle(r.body).marginLeft)):r.defaultView.pageXOffset||(r.documentElement||r.body).scrollLeft}function $m(r){return g&&O?-(r.body.getBoundingClientRect().top-parseInt(getComputedStyle(r.body).marginTop)):r.defaultView.pageYOffset||(r.documentElement||r.body).scrollTop}function of(r){var s=jn(r),u=s.widgets,l=0;if(u)for(var p=0;p<u.length;++p)u[p].above&&(l+=Is(u[p]));return l}function gc(r,s,u,l,p){if(!p){var m=of(s);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var b=Ir(s);if(l=="local"?b+=vc(r.display):b-=r.display.viewOffset,l=="page"||l=="window"){var _=r.display.lineSpace.getBoundingClientRect();b+=_.top+(l=="window"?0:$m(fe(r)));var k=_.left+(l=="window"?0:wm(fe(r)));u.left+=k,u.right+=k}return u.top+=b,u.bottom+=b,u}function Cm(r,s,u){if(u=="div")return s;var l=s.left,p=s.top;if(u=="page")l-=wm(fe(r)),p-=$m(fe(r));else if(u=="local"||!u){var m=r.display.sizer.getBoundingClientRect();l+=m.left,p+=m.top}var b=r.display.lineSpace.getBoundingClientRect();return{left:l-b.left,top:p-b.top}}function yc(r,s,u,l,p){return l||(l=we(r.doc,s.line)),gc(r,l,bm(r,l,s.ch,p),u)}function Un(r,s,u,l,p,m){l=l||we(r.doc,s.line),p||(p=Ei(r,l));function b(ne,ce){var ue=hr(r,p,ne,ce?"right":"left",m);return ce?ue.left=ue.right:ue.right=ue.left,gc(r,l,ue,u)}var _=Cn(l,r.doc.direction),k=s.ch,w=s.sticky;if(k>=l.text.length?(k=l.text.length,w="before"):k<=0&&(k=0,w="after"),!_)return b(w=="before"?k-1:k,w=="before");function I(ne,ce,ue){var me=_[ce],Ee=me.level==1;return b(ue?ne-1:ne,Ee!=ue)}var M=$n(_,k,w),W=cr,z=I(k,M,w=="before");return W!=null&&(z.other=I(k,W,w!="before")),z}function Am(r,s){var u=0;s=Oe(r.doc,s),r.options.lineWrapping||(u=ki(r.display)*s.ch);var l=we(r.doc,s.line),p=Ir(l)+vc(r.display);return{left:u,right:u,top:p,bottom:p+l.height}}function sf(r,s,u,l,p){var m=B(r,s,u);return m.xRel=p,l&&(m.outside=l),m}function af(r,s,u){var l=r.doc;if(u+=r.display.viewOffset,u<0)return sf(l.first,0,null,-1,-1);var p=fr(l,u),m=l.first+l.size-1;if(p>m)return sf(l.first+l.size-1,we(l,m).text.length,null,1,1);s<0&&(s=0);for(var b=we(l,p);;){var _=P2(r,b,p,s,u),k=d2(b,_.ch+(_.xRel>0||_.outside>0?1:0));if(!k)return _;var w=k.find(1);if(w.line==p)return w;b=we(l,p=w.line)}}function Sm(r,s,u,l){l-=of(s);var p=s.text.length,m=ft(function(b){return hr(r,u,b-1).bottom<=l},p,0);return p=ft(function(b){return hr(r,u,b).top>l},m,p),{begin:m,end:p}}function Tm(r,s,u,l){u||(u=Ei(r,s));var p=gc(r,s,hr(r,u,l),"line").top;return Sm(r,s,u,p)}function cf(r,s,u,l){return r.bottom<=u?!1:r.top>u?!0:(l?r.left:r.right)>s}function P2(r,s,u,l,p){p-=Ir(s);var m=Ei(r,s),b=of(s),_=0,k=s.text.length,w=!0,I=Cn(s,r.doc.direction);if(I){var M=(r.options.lineWrapping?V2:B2)(r,s,u,m,I,l,p);w=M.level!=1,_=w?M.from:M.to-1,k=w?M.to:M.from-1}var W=null,z=null,ne=ft(function(Se){var Ae=hr(r,m,Se);return Ae.top+=b,Ae.bottom+=b,cf(Ae,l,p,!1)?(Ae.top<=p&&Ae.left<=l&&(W=Se,z=Ae),!0):!1},_,k),ce,ue,me=!1;if(z){var Ee=l-z.left<z.right-l,ve=Ee==w;ne=W+(ve?0:1),ue=ve?"after":"before",ce=Ee?z.left:z.right}else{!w&&(ne==k||ne==_)&&ne++,ue=ne==0?"after":ne==s.text.length?"before":hr(r,m,ne-(w?1:0)).bottom+b<=p==w?"after":"before";var xe=Un(r,B(u,ne,ue),"line",s,m);ce=xe.left,me=p<xe.top?-1:p>=xe.bottom?1:0}return ne=ar(s.text,ne,1),sf(u,ne,ue,me,l-ce)}function B2(r,s,u,l,p,m,b){var _=ft(function(M){var W=p[M],z=W.level!=1;return cf(Un(r,B(u,z?W.to:W.from,z?"before":"after"),"line",s,l),m,b,!0)},0,p.length-1),k=p[_];if(_>0){var w=k.level!=1,I=Un(r,B(u,w?k.from:k.to,w?"after":"before"),"line",s,l);cf(I,m,b,!0)&&I.top>b&&(k=p[_-1])}return k}function V2(r,s,u,l,p,m,b){var _=Sm(r,s,l,b),k=_.begin,w=_.end;/\s/.test(s.text.charAt(w-1))&&w--;for(var I=null,M=null,W=0;W<p.length;W++){var z=p[W];if(!(z.from>=w||z.to<=k)){var ne=z.level!=1,ce=hr(r,l,ne?Math.min(w,z.to)-1:Math.max(k,z.from)).right,ue=ce<m?m-ce+1e9:ce-m;(!I||M>ue)&&(I=z,M=ue)}}return I||(I=p[p.length-1]),I.from<k&&(I={from:k,to:I.to,level:I.level}),I.to>w&&(I={from:I.from,to:w,level:I.level}),I}var Oo;function _i(r){if(r.cachedTextHeight!=null)return r.cachedTextHeight;if(Oo==null){Oo=x("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)Oo.appendChild(document.createTextNode("x")),Oo.appendChild(x("br"));Oo.appendChild(document.createTextNode("x"))}R(r.measure,Oo);var u=Oo.offsetHeight/50;return u>3&&(r.cachedTextHeight=u),H(r.measure),u||1}function ki(r){if(r.cachedCharWidth!=null)return r.cachedCharWidth;var s=x("span","xxxxxxxxxx"),u=x("pre",[s],"CodeMirror-line-like");R(r.measure,u);var l=s.getBoundingClientRect(),p=(l.right-l.left)/10;return p>2&&(r.cachedCharWidth=p),p||10}function lf(r){for(var s=r.display,u={},l={},p=s.gutters.clientLeft,m=s.gutters.firstChild,b=0;m;m=m.nextSibling,++b){var _=r.display.gutterSpecs[b].className;u[_]=m.offsetLeft+m.clientLeft+p,l[_]=m.clientWidth}return{fixedPos:uf(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:s.wrapper.clientWidth}}function uf(r){return r.scroller.getBoundingClientRect().left-r.sizer.getBoundingClientRect().left}function Dm(r){var s=_i(r.display),u=r.options.lineWrapping,l=u&&Math.max(5,r.display.scroller.clientWidth/ki(r.display)-3);return function(p){if(to(r.doc,p))return 0;var m=0;if(p.widgets)for(var b=0;b<p.widgets.length;b++)p.widgets[b].height&&(m+=p.widgets[b].height);return u?m+(Math.ceil(p.text.length/l)||1)*s:m+s}}function ff(r){var s=r.doc,u=Dm(r);s.iter(function(l){var p=u(l);p!=l.height&&Sn(l,p)})}function Io(r,s,u,l){var p=r.display;if(!u&&Yt(s).getAttribute("cm-not-content")=="true")return null;var m,b,_=p.lineSpace.getBoundingClientRect();try{m=s.clientX-_.left,b=s.clientY-_.top}catch{return null}var k=af(r,m,b),w;if(l&&k.xRel>0&&(w=we(r.doc,k.line).text).length==k.ch){var I=he(w,w.length,r.options.tabSize)-w.length;k=B(k.line,Math.max(0,Math.round((m-gm(r.display).left)/ki(r.display))-I))}return k}function Lo(r,s){if(s>=r.display.viewTo||(s-=r.display.viewFrom,s<0))return null;for(var u=r.display.view,l=0;l<u.length;l++)if(s-=u[l].size,s<0)return l}function Jt(r,s,u,l){s==null&&(s=r.doc.first),u==null&&(u=r.doc.first+r.doc.size),l||(l=0);var p=r.display;if(l&&u<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>s)&&(p.updateLineNumbers=s),r.curOp.viewChanged=!0,s>=p.viewTo)Or&&Zu(r.doc,s)<p.viewTo&&ro(r);else if(u<=p.viewFrom)Or&&am(r.doc,u+l)>p.viewFrom?ro(r):(p.viewFrom+=l,p.viewTo+=l);else if(s<=p.viewFrom&&u>=p.viewTo)ro(r);else if(s<=p.viewFrom){var m=bc(r,u,u+l,1);m?(p.view=p.view.slice(m.index),p.viewFrom=m.lineN,p.viewTo+=l):ro(r)}else if(u>=p.viewTo){var b=bc(r,s,s,-1);b?(p.view=p.view.slice(0,b.index),p.viewTo=b.lineN):ro(r)}else{var _=bc(r,s,s,-1),k=bc(r,u,u+l,1);_&&k?(p.view=p.view.slice(0,_.index).concat(mc(r,_.lineN,k.lineN)).concat(p.view.slice(k.index)),p.viewTo+=l):ro(r)}var w=p.externalMeasured;w&&(u<w.lineN?w.lineN+=l:s<w.lineN+w.size&&(p.externalMeasured=null))}function no(r,s,u){r.curOp.viewChanged=!0;var l=r.display,p=r.display.externalMeasured;if(p&&s>=p.lineN&&s<p.lineN+p.size&&(l.externalMeasured=null),!(s<l.viewFrom||s>=l.viewTo)){var m=l.view[Lo(r,s)];if(m.node!=null){var b=m.changes||(m.changes=[]);De(b,u)==-1&&b.push(u)}}}function ro(r){r.display.viewFrom=r.display.viewTo=r.doc.first,r.display.view=[],r.display.viewOffset=0}function bc(r,s,u,l){var p=Lo(r,s),m,b=r.display.view;if(!Or||u==r.doc.first+r.doc.size)return{index:p,lineN:u};for(var _=r.display.viewFrom,k=0;k<p;k++)_+=b[k].size;if(_!=s){if(l>0){if(p==b.length-1)return null;m=_+b[p].size-s,p++}else m=_-s;s+=m,u+=m}for(;Zu(r.doc,u)!=u;){if(p==(l<0?0:b.length-1))return null;u+=l*b[p-(l<0?1:0)].size,p+=l}return{index:p,lineN:u}}function j2(r,s,u){var l=r.display,p=l.view;p.length==0||s>=l.viewTo||u<=l.viewFrom?(l.view=mc(r,s,u),l.viewFrom=s):(l.viewFrom>s?l.view=mc(r,s,l.viewFrom).concat(l.view):l.viewFrom<s&&(l.view=l.view.slice(Lo(r,s))),l.viewFrom=s,l.viewTo<u?l.view=l.view.concat(mc(r,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Lo(r,u)))),l.viewTo=u}function Nm(r){for(var s=r.display.view,u=0,l=0;l<s.length;l++){var p=s[l];!p.hidden&&(!p.node||p.changes)&&++u}return u}function Fs(r){r.display.input.showSelection(r.display.input.prepareSelection())}function Om(r,s){s===void 0&&(s=!0);var u=r.doc,l={},p=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),b=r.options.$customCursor;b&&(s=!0);for(var _=0;_<u.sel.ranges.length;_++)if(!(!s&&_==u.sel.primIndex)){var k=u.sel.ranges[_];if(!(k.from().line>=r.display.viewTo||k.to().line<r.display.viewFrom)){var w=k.empty();if(b){var I=b(r,k);I&&pf(r,I,p)}else(w||r.options.showCursorWhenSelecting)&&pf(r,k.head,p);w||U2(r,k,m)}}return l}function pf(r,s,u){var l=Un(r,s,"div",null,null,!r.options.singleCursorHeightPerLine),p=u.appendChild(x("div"," ","CodeMirror-cursor"));if(p.style.left=l.left+"px",p.style.top=l.top+"px",p.style.height=Math.max(0,l.bottom-l.top)*r.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(r.getWrapperElement().className)){var m=yc(r,s,"div",null,null),b=m.right-m.left;p.style.width=(b>0?b:r.defaultCharWidth())+"px"}if(l.other){var _=u.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));_.style.display="",_.style.left=l.other.left+"px",_.style.top=l.other.top+"px",_.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ec(r,s){return r.top-s.top||r.left-s.left}function U2(r,s,u){var l=r.display,p=r.doc,m=document.createDocumentFragment(),b=gm(r.display),_=b.left,k=Math.max(l.sizerWidth,No(r)-l.sizer.offsetLeft)-b.right,w=p.direction=="ltr";function I(ve,xe,Se,Ae){xe<0&&(xe=0),xe=Math.round(xe),Ae=Math.round(Ae),m.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+ve+`px;
|
|
293
|
+
top: `+xe+"px; width: "+(Se??k-ve)+`px;
|
|
294
|
+
height: `+(Ae-xe)+"px"))}function M(ve,xe,Se){var Ae=we(p,ve),Re=Ae.text.length,rt,Ot;function ut(bt,Kt){return yc(r,B(ve,bt),"div",Ae,Kt)}function cn(bt,Kt,Mt){var Ct=Tm(r,Ae,null,bt),Et=Kt=="ltr"==(Mt=="after")?"left":"right",ht=Mt=="after"?Ct.begin:Ct.end-(/\s/.test(Ae.text.charAt(Ct.end-1))?2:1);return ut(ht,Et)[Et]}var Xt=Cn(Ae,p.direction);return To(Xt,xe||0,Se??Re,function(bt,Kt,Mt,Ct){var Et=Mt=="ltr",ht=ut(bt,Et?"left":"right"),en=ut(Kt-1,Et?"right":"left"),Fi=xe==null&&bt==0,lo=Se==null&&Kt==Re,jt=Ct==0,mr=!Xt||Ct==Xt.length-1;if(en.top-ht.top<=3){var It=(w?Fi:lo)&&jt,Pf=(w?lo:Fi)&&mr,Mr=It?_:(Et?ht:en).left,Po=Pf?k:(Et?en:ht).right;I(Mr,ht.top,Po-Mr,ht.bottom)}else{var Bo,Wt,Ri,Bf;Et?(Bo=w&&Fi&&jt?_:ht.left,Wt=w?k:cn(bt,Mt,"before"),Ri=w?_:cn(Kt,Mt,"after"),Bf=w&&lo&&mr?k:en.right):(Bo=w?cn(bt,Mt,"before"):_,Wt=!w&&Fi&&jt?k:ht.right,Ri=!w&&lo&&mr?_:en.left,Bf=w?cn(Kt,Mt,"after"):k),I(Bo,ht.top,Wt-Bo,ht.bottom),ht.bottom<en.top&&I(_,ht.bottom,null,en.top),I(Ri,en.top,Bf-Ri,en.bottom)}(!rt||Ec(ht,rt)<0)&&(rt=ht),Ec(en,rt)<0&&(rt=en),(!Ot||Ec(ht,Ot)<0)&&(Ot=ht),Ec(en,Ot)<0&&(Ot=en)}),{start:rt,end:Ot}}var W=s.from(),z=s.to();if(W.line==z.line)M(W.line,W.ch,z.ch);else{var ne=we(p,W.line),ce=we(p,z.line),ue=jn(ne)==jn(ce),me=M(W.line,W.ch,ue?ne.text.length+1:null).end,Ee=M(z.line,ue?0:null,z.ch).start;ue&&(me.top<Ee.top-2?(I(me.right,me.top,null,me.bottom),I(_,Ee.top,Ee.left,Ee.bottom)):I(me.right,me.top,Ee.left-me.right,me.bottom)),me.bottom<Ee.top&&I(_,me.bottom,null,Ee.top)}u.appendChild(m)}function df(r){if(r.state.focused){var s=r.display;clearInterval(s.blinker);var u=!0;s.cursorDiv.style.visibility="",r.options.cursorBlinkRate>0?s.blinker=setInterval(function(){r.hasFocus()||xi(r),s.cursorDiv.style.visibility=(u=!u)?"":"hidden"},r.options.cursorBlinkRate):r.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function Im(r){r.hasFocus()||(r.display.input.focus(),r.state.focused||mf(r))}function hf(r){r.state.delayingBlurEvent=!0,setTimeout(function(){r.state.delayingBlurEvent&&(r.state.delayingBlurEvent=!1,r.state.focused&&xi(r))},100)}function mf(r,s){r.state.delayingBlurEvent&&!r.state.draggingText&&(r.state.delayingBlurEvent=!1),r.options.readOnly!="nocursor"&&(r.state.focused||(it(r,"focus",r,s),r.state.focused=!0,$e(r.display.wrapper,"CodeMirror-focused"),!r.curOp&&r.display.selForContextMenu!=r.doc.sel&&(r.display.input.reset(),v&&setTimeout(function(){return r.display.input.reset(!0)},20)),r.display.input.receivedFocus()),df(r))}function xi(r,s){r.state.delayingBlurEvent||(r.state.focused&&(it(r,"blur",r,s),r.state.focused=!1,_e(r.display.wrapper,"CodeMirror-focused")),clearInterval(r.display.blinker),setTimeout(function(){r.state.focused||(r.display.shift=!1)},150))}function _c(r){for(var s=r.display,u=s.lineDiv.offsetTop,l=Math.max(0,s.scroller.getBoundingClientRect().top),p=s.lineDiv.getBoundingClientRect().top,m=0,b=0;b<s.view.length;b++){var _=s.view[b],k=r.options.lineWrapping,w=void 0,I=0;if(!_.hidden){if(p+=_.line.height,d&&h<8){var M=_.node.offsetTop+_.node.offsetHeight;w=M-u,u=M}else{var W=_.node.getBoundingClientRect();w=W.bottom-W.top,!k&&_.text.firstChild&&(I=_.text.firstChild.getBoundingClientRect().right-W.left-1)}var z=_.line.height-w;if((z>.005||z<-.005)&&(p<l&&(m-=z),Sn(_.line,w),Lm(_.line),_.rest))for(var ne=0;ne<_.rest.length;ne++)Lm(_.rest[ne]);if(I>r.display.sizerWidth){var ce=Math.ceil(I/ki(r.display));ce>r.display.maxLineLength&&(r.display.maxLineLength=ce,r.display.maxLine=_.line,r.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(s.scroller.scrollTop+=m)}function Lm(r){if(r.widgets)for(var s=0;s<r.widgets.length;++s){var u=r.widgets[s],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function kc(r,s,u){var l=u&&u.top!=null?Math.max(0,u.top):r.scroller.scrollTop;l=Math.floor(l-vc(r));var p=u&&u.bottom!=null?u.bottom:l+r.wrapper.clientHeight,m=fr(s,l),b=fr(s,p);if(u&&u.ensure){var _=u.ensure.from.line,k=u.ensure.to.line;_<m?(m=_,b=fr(s,Ir(we(s,_))+r.wrapper.clientHeight)):Math.min(k,s.lastLine())>=b&&(m=fr(s,Ir(we(s,k))-r.wrapper.clientHeight),b=k)}return{from:m,to:Math.max(b,m+1)}}function z2(r,s){if(!pt(r,"scrollCursorIntoView")){var u=r.display,l=u.sizer.getBoundingClientRect(),p=null,m=u.wrapper.ownerDocument;if(s.top+l.top<0?p=!0:s.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(p=!1),p!=null&&!D){var b=x("div","",null,`position: absolute;
|
|
295
|
+
top: `+(s.top-u.viewOffset-vc(r.display))+`px;
|
|
296
|
+
height: `+(s.bottom-s.top+dr(r)+u.barHeight)+`px;
|
|
297
|
+
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");r.display.lineSpace.appendChild(b),b.scrollIntoView(p),r.display.lineSpace.removeChild(b)}}}function H2(r,s,u,l){l==null&&(l=0);var p;!r.options.lineWrapping&&s==u&&(u=s.sticky=="before"?B(s.line,s.ch+1,"before"):s,s=s.ch?B(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var m=0;m<5;m++){var b=!1,_=Un(r,s),k=!u||u==s?_:Un(r,u);p={left:Math.min(_.left,k.left),top:Math.min(_.top,k.top)-l,right:Math.max(_.left,k.left),bottom:Math.max(_.bottom,k.bottom)+l};var w=vf(r,p),I=r.doc.scrollTop,M=r.doc.scrollLeft;if(w.scrollTop!=null&&(Ms(r,w.scrollTop),Math.abs(r.doc.scrollTop-I)>1&&(b=!0)),w.scrollLeft!=null&&(Fo(r,w.scrollLeft),Math.abs(r.doc.scrollLeft-M)>1&&(b=!0)),!b)break}return p}function G2(r,s){var u=vf(r,s);u.scrollTop!=null&&Ms(r,u.scrollTop),u.scrollLeft!=null&&Fo(r,u.scrollLeft)}function vf(r,s){var u=r.display,l=_i(r.display);s.top<0&&(s.top=0);var p=r.curOp&&r.curOp.scrollTop!=null?r.curOp.scrollTop:u.scroller.scrollTop,m=nf(r),b={};s.bottom-s.top>m&&(s.bottom=s.top+m);var _=r.doc.height+tf(u),k=s.top<l,w=s.bottom>_-l;if(s.top<p)b.scrollTop=k?0:s.top;else if(s.bottom>p+m){var I=Math.min(s.top,(w?_:s.bottom)-m);I!=p&&(b.scrollTop=I)}var M=r.options.fixedGutter?0:u.gutters.offsetWidth,W=r.curOp&&r.curOp.scrollLeft!=null?r.curOp.scrollLeft:u.scroller.scrollLeft-M,z=No(r)-u.gutters.offsetWidth,ne=s.right-s.left>z;return ne&&(s.right=s.left+z),s.left<10?b.scrollLeft=0:s.left<W?b.scrollLeft=Math.max(0,s.left+M-(ne?0:10)):s.right>z+W-3&&(b.scrollLeft=s.right+(ne?0:10)-z),b}function gf(r,s){s!=null&&(xc(r),r.curOp.scrollTop=(r.curOp.scrollTop==null?r.doc.scrollTop:r.curOp.scrollTop)+s)}function wi(r){xc(r);var s=r.getCursor();r.curOp.scrollToPos={from:s,to:s,margin:r.options.cursorScrollMargin}}function Rs(r,s,u){(s!=null||u!=null)&&xc(r),s!=null&&(r.curOp.scrollLeft=s),u!=null&&(r.curOp.scrollTop=u)}function W2(r,s){xc(r),r.curOp.scrollToPos=s}function xc(r){var s=r.curOp.scrollToPos;if(s){r.curOp.scrollToPos=null;var u=Am(r,s.from),l=Am(r,s.to);Fm(r,u,l,s.margin)}}function Fm(r,s,u,l){var p=vf(r,{left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-l,right:Math.max(s.right,u.right),bottom:Math.max(s.bottom,u.bottom)+l});Rs(r,p.scrollLeft,p.scrollTop)}function Ms(r,s){Math.abs(r.doc.scrollTop-s)<2||(i||bf(r,{top:s}),Rm(r,s,!0),i&&bf(r),Bs(r,100))}function Rm(r,s,u){s=Math.max(0,Math.min(r.display.scroller.scrollHeight-r.display.scroller.clientHeight,s)),!(r.display.scroller.scrollTop==s&&!u)&&(r.doc.scrollTop=s,r.display.scrollbars.setScrollTop(s),r.display.scroller.scrollTop!=s&&(r.display.scroller.scrollTop=s))}function Fo(r,s,u,l){s=Math.max(0,Math.min(s,r.display.scroller.scrollWidth-r.display.scroller.clientWidth)),!((u?s==r.doc.scrollLeft:Math.abs(r.doc.scrollLeft-s)<2)&&!l)&&(r.doc.scrollLeft=s,Vm(r),r.display.scroller.scrollLeft!=s&&(r.display.scroller.scrollLeft=s),r.display.scrollbars.setScrollLeft(s))}function qs(r){var s=r.display,u=s.gutters.offsetWidth,l=Math.round(r.doc.height+tf(r.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:r.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+dr(r)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:u}}var Ro=function(r,s,u){this.cm=u;var l=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=p.tabIndex=-1,r(l),r(p),be(l,"scroll",function(){l.clientHeight&&s(l.scrollTop,"vertical")}),be(p,"scroll",function(){p.clientWidth&&s(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ro.prototype.update=function(r){var s=r.scrollWidth>r.clientWidth+1,u=r.scrollHeight>r.clientHeight+1,l=r.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=s?l+"px":"0";var p=r.viewHeight-(s?l:0);this.vert.firstChild.style.height=Math.max(0,r.scrollHeight-r.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=r.barLeft+"px";var m=r.viewWidth-r.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,r.scrollWidth-r.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&r.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:s?l:0}},Ro.prototype.setScrollLeft=function(r){this.horiz.scrollLeft!=r&&(this.horiz.scrollLeft=r),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ro.prototype.setScrollTop=function(r){this.vert.scrollTop!=r&&(this.vert.scrollTop=r),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ro.prototype.zeroWidthHack=function(){var r=Y&&!N?"12px":"18px";this.horiz.style.height=this.vert.style.width=r,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ke,this.disableVert=new ke},Ro.prototype.enableZeroWidthBar=function(r,s,u){r.style.visibility="";function l(){var p=r.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);m!=r?r.style.visibility="hidden":s.set(1e3,l)}s.set(1e3,l)},Ro.prototype.clear=function(){var r=this.horiz.parentNode;r.removeChild(this.horiz),r.removeChild(this.vert)};var Ps=function(){};Ps.prototype.update=function(){return{bottom:0,right:0}},Ps.prototype.setScrollLeft=function(){},Ps.prototype.setScrollTop=function(){},Ps.prototype.clear=function(){};function $i(r,s){s||(s=qs(r));var u=r.display.barWidth,l=r.display.barHeight;Mm(r,s);for(var p=0;p<4&&u!=r.display.barWidth||l!=r.display.barHeight;p++)u!=r.display.barWidth&&r.options.lineWrapping&&_c(r),Mm(r,qs(r)),u=r.display.barWidth,l=r.display.barHeight}function Mm(r,s){var u=r.display,l=u.scrollbars.update(s);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&r.options.coverGutterNextToScrollbar&&r.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=s.gutterWidth+"px"):u.gutterFiller.style.display=""}var qm={native:Ro,null:Ps};function Pm(r){r.display.scrollbars&&(r.display.scrollbars.clear(),r.display.scrollbars.addClass&&_e(r.display.wrapper,r.display.scrollbars.addClass)),r.display.scrollbars=new qm[r.options.scrollbarStyle](function(s){r.display.wrapper.insertBefore(s,r.display.scrollbarFiller),be(s,"mousedown",function(){r.state.focused&&setTimeout(function(){return r.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,u){u=="horizontal"?Fo(r,s):Ms(r,s)},r),r.display.scrollbars.addClass&&$e(r.display.wrapper,r.display.scrollbars.addClass)}var Q2=0;function Mo(r){r.curOp={cm:r,viewChanged:!1,startHeight:r.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Q2,markArrays:null},$2(r.curOp)}function qo(r){var s=r.curOp;s&&A2(s,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Y2(u)})}function Y2(r){for(var s=r.ops,u=0;u<s.length;u++)J2(s[u]);for(var l=0;l<s.length;l++)Z2(s[l]);for(var p=0;p<s.length;p++)X2(s[p]);for(var m=0;m<s.length;m++)K2(s[m]);for(var b=0;b<s.length;b++)ek(s[b])}function J2(r){var s=r.cm,u=s.display;nk(s),r.updateMaxLine&&Ku(s),r.mustUpdate=r.viewChanged||r.forceUpdate||r.scrollTop!=null||r.scrollToPos&&(r.scrollToPos.from.line<u.viewFrom||r.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&s.options.lineWrapping,r.update=r.mustUpdate&&new wc(s,r.mustUpdate&&{top:r.scrollTop,ensure:r.scrollToPos},r.forceUpdate)}function Z2(r){r.updatedDisplay=r.mustUpdate&&yf(r.cm,r.update)}function X2(r){var s=r.cm,u=s.display;r.updatedDisplay&&_c(s),r.barMeasure=qs(s),u.maxLineChanged&&!s.options.lineWrapping&&(r.adjustWidthTo=bm(s,u.maxLine,u.maxLine.text.length).left+3,s.display.sizerWidth=r.adjustWidthTo,r.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+r.adjustWidthTo+dr(s)+s.display.barWidth),r.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+r.adjustWidthTo-No(s))),(r.updatedDisplay||r.selectionChanged)&&(r.preparedSelection=u.input.prepareSelection())}function K2(r){var s=r.cm;r.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=r.adjustWidthTo+"px",r.maxScrollLeft<s.doc.scrollLeft&&Fo(s,Math.min(s.display.scroller.scrollLeft,r.maxScrollLeft),!0),s.display.maxLineChanged=!1);var u=r.focus&&r.focus==pe(fe(s));r.preparedSelection&&s.display.input.showSelection(r.preparedSelection,u),(r.updatedDisplay||r.startHeight!=s.doc.height)&&$i(s,r.barMeasure),r.updatedDisplay&&_f(s,r.barMeasure),r.selectionChanged&&df(s),s.state.focused&&r.updateInput&&s.display.input.reset(r.typing),u&&Im(r.cm)}function ek(r){var s=r.cm,u=s.display,l=s.doc;if(r.updatedDisplay&&Bm(s,r.update),u.wheelStartX!=null&&(r.scrollTop!=null||r.scrollLeft!=null||r.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),r.scrollTop!=null&&Rm(s,r.scrollTop,r.forceScroll),r.scrollLeft!=null&&Fo(s,r.scrollLeft,!0,!0),r.scrollToPos){var p=H2(s,Oe(l,r.scrollToPos.from),Oe(l,r.scrollToPos.to),r.scrollToPos.margin);z2(s,p)}var m=r.maybeHiddenMarkers,b=r.maybeUnhiddenMarkers;if(m)for(var _=0;_<m.length;++_)m[_].lines.length||it(m[_],"hide");if(b)for(var k=0;k<b.length;++k)b[k].lines.length&&it(b[k],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=s.display.scroller.scrollTop),r.changeObjs&&it(s,"changes",s,r.changeObjs),r.update&&r.update.finish()}function an(r,s){if(r.curOp)return s();Mo(r);try{return s()}finally{qo(r)}}function Dt(r,s){return function(){if(r.curOp)return s.apply(r,arguments);Mo(r);try{return s.apply(r,arguments)}finally{qo(r)}}}function Gt(r){return function(){if(this.curOp)return r.apply(this,arguments);Mo(this);try{return r.apply(this,arguments)}finally{qo(this)}}}function Nt(r){return function(){var s=this.cm;if(!s||s.curOp)return r.apply(this,arguments);Mo(s);try{return r.apply(this,arguments)}finally{qo(s)}}}function Bs(r,s){r.doc.highlightFrontier<r.display.viewTo&&r.state.highlight.set(s,ge(tk,r))}function tk(r){var s=r.doc;if(!(s.highlightFrontier>=r.display.viewTo)){var u=+new Date+r.options.workTime,l=Ts(r,s.highlightFrontier),p=[];s.iter(l.line,Math.min(s.first+s.size,r.display.viewTo+500),function(m){if(l.line>=r.display.viewFrom){var b=m.styles,_=m.text.length>r.options.maxHighlightLength?Dr(s.mode,l.state):null,k=Wh(r,m,l,!0);_&&(l.state=_),m.styles=k.styles;var w=m.styleClasses,I=k.classes;I?m.styleClasses=I:w&&(m.styleClasses=null);for(var M=!b||b.length!=m.styles.length||w!=I&&(!w||!I||w.bgClass!=I.bgClass||w.textClass!=I.textClass),W=0;!M&&W<b.length;++W)M=b[W]!=m.styles[W];M&&p.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=r.options.maxHighlightLength&&Wu(r,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Bs(r,r.options.workDelay),!0}),s.highlightFrontier=l.line,s.modeFrontier=Math.max(s.modeFrontier,l.line),p.length&&an(r,function(){for(var m=0;m<p.length;m++)no(r,p[m],"text")})}}var wc=function(r,s,u){var l=r.display;this.viewport=s,this.visible=kc(l,r.doc,s),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=No(r),this.force=u,this.dims=lf(r),this.events=[]};wc.prototype.signal=function(r,s){zt(r,s)&&this.events.push(arguments)},wc.prototype.finish=function(){for(var r=0;r<this.events.length;r++)it.apply(null,this.events[r])};function nk(r){var s=r.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=dr(r)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=dr(r)+"px",s.scrollbarsClipped=!0)}function rk(r){if(r.hasFocus())return null;var s=pe(fe(r));if(!s||!te(r.display.lineDiv,s))return null;var u={activeElt:s};if(window.getSelection){var l=de(r).getSelection();l.anchorNode&&l.extend&&te(r.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function ok(r){if(!(!r||!r.activeElt||r.activeElt==pe(r.activeElt.ownerDocument))&&(r.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(r.activeElt.nodeName)&&r.anchorNode&&te(document.body,r.anchorNode)&&te(document.body,r.focusNode))){var s=r.activeElt.ownerDocument,u=s.defaultView.getSelection(),l=s.createRange();l.setEnd(r.anchorNode,r.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(r.focusNode,r.focusOffset)}}function yf(r,s){var u=r.display,l=r.doc;if(s.editorIsHidden)return ro(r),!1;if(!s.force&&s.visible.from>=u.viewFrom&&s.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Nm(r)==0)return!1;jm(r)&&(ro(r),s.dims=lf(r));var p=l.first+l.size,m=Math.max(s.visible.from-r.options.viewportMargin,l.first),b=Math.min(p,s.visible.to+r.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>b&&u.viewTo-b<20&&(b=Math.min(p,u.viewTo)),Or&&(m=Zu(r.doc,m),b=am(r.doc,b));var _=m!=u.viewFrom||b!=u.viewTo||u.lastWrapHeight!=s.wrapperHeight||u.lastWrapWidth!=s.wrapperWidth;j2(r,m,b),u.viewOffset=Ir(we(r.doc,u.viewFrom)),r.display.mover.style.top=u.viewOffset+"px";var k=Nm(r);if(!_&&k==0&&!s.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var w=rk(r);return k>4&&(u.lineDiv.style.display="none"),ik(r,u.updateLineNumbers,s.dims),k>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,ok(w),H(u.cursorDiv),H(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,_&&(u.lastWrapHeight=s.wrapperHeight,u.lastWrapWidth=s.wrapperWidth,Bs(r,400)),u.updateLineNumbers=null,!0}function Bm(r,s){for(var u=s.viewport,l=!0;;l=!1){if(!l||!r.options.lineWrapping||s.oldDisplayWidth==No(r)){if(u&&u.top!=null&&(u={top:Math.min(r.doc.height+tf(r.display)-nf(r),u.top)}),s.visible=kc(r.display,r.doc,u),s.visible.from>=r.display.viewFrom&&s.visible.to<=r.display.viewTo)break}else l&&(s.visible=kc(r.display,r.doc,u));if(!yf(r,s))break;_c(r);var p=qs(r);Fs(r),$i(r,p),_f(r,p),s.force=!1}s.signal(r,"update",r),(r.display.viewFrom!=r.display.reportedViewFrom||r.display.viewTo!=r.display.reportedViewTo)&&(s.signal(r,"viewportChange",r,r.display.viewFrom,r.display.viewTo),r.display.reportedViewFrom=r.display.viewFrom,r.display.reportedViewTo=r.display.viewTo)}function bf(r,s){var u=new wc(r,s);if(yf(r,u)){_c(r),Bm(r,u);var l=qs(r);Fs(r),$i(r,l),_f(r,l),u.finish()}}function ik(r,s,u){var l=r.display,p=r.options.lineNumbers,m=l.lineDiv,b=m.firstChild;function _(ne){var ce=ne.nextSibling;return v&&Y&&r.display.currentWheelTarget==ne?ne.style.display="none":ne.parentNode.removeChild(ne),ce}for(var k=l.view,w=l.viewFrom,I=0;I<k.length;I++){var M=k[I];if(!M.hidden)if(!M.node||M.node.parentNode!=m){var W=O2(r,M,w,u);m.insertBefore(W,b)}else{for(;b!=M.node;)b=_(b);var z=p&&s!=null&&s<=w&&M.lineNumber;M.changes&&(De(M.changes,"gutter")>-1&&(z=!1),pm(r,M,w,u)),z&&(H(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(q(r.options,w)))),b=M.node.nextSibling}w+=M.size}for(;b;)b=_(b)}function Ef(r){var s=r.gutters.offsetWidth;r.sizer.style.marginLeft=s+"px",Tt(r,"gutterChanged",r)}function _f(r,s){r.display.sizer.style.minHeight=s.docHeight+"px",r.display.heightForcer.style.top=s.docHeight+"px",r.display.gutters.style.height=s.docHeight+r.display.barHeight+dr(r)+"px"}function Vm(r){var s=r.display,u=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!r.options.fixedGutter))){for(var l=uf(s)-s.scroller.scrollLeft+r.doc.scrollLeft,p=s.gutters.offsetWidth,m=l+"px",b=0;b<u.length;b++)if(!u[b].hidden){r.options.fixedGutter&&(u[b].gutter&&(u[b].gutter.style.left=m),u[b].gutterBackground&&(u[b].gutterBackground.style.left=m));var _=u[b].alignable;if(_)for(var k=0;k<_.length;k++)_[k].style.left=m}r.options.fixedGutter&&(s.gutters.style.left=l+p+"px")}}function jm(r){if(!r.options.lineNumbers)return!1;var s=r.doc,u=q(r.options,s.first+s.size-1),l=r.display;if(u.length!=l.lineNumChars){var p=l.measure.appendChild(x("div",[x("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=p.firstChild.offsetWidth,b=p.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-b)+1,l.lineNumWidth=l.lineNumInnerWidth+b,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Ef(r.display),!0}return!1}function kf(r,s){for(var u=[],l=!1,p=0;p<r.length;p++){var m=r[p],b=null;if(typeof m!="string"&&(b=m.style,m=m.className),m=="CodeMirror-linenumbers")if(s)l=!0;else continue;u.push({className:m,style:b})}return s&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Um(r){var s=r.gutters,u=r.gutterSpecs;H(s),r.lineGutter=null;for(var l=0;l<u.length;++l){var p=u[l],m=p.className,b=p.style,_=s.appendChild(x("div",null,"CodeMirror-gutter "+m));b&&(_.style.cssText=b),m=="CodeMirror-linenumbers"&&(r.lineGutter=_,_.style.width=(r.lineNumWidth||1)+"px")}s.style.display=u.length?"":"none",Ef(r)}function Vs(r){Um(r.display),Jt(r),Vm(r)}function sk(r,s,u,l){var p=this;this.input=u,p.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=j("div",null,"CodeMirror-code"),p.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=x("div",null,"CodeMirror-cursors"),p.measure=x("div",null,"CodeMirror-measure"),p.lineMeasure=x("div",null,"CodeMirror-measure"),p.lineSpace=j("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var m=j("div",[p.lineSpace],"CodeMirror-lines");p.mover=x("div",[m],null,"position: relative"),p.sizer=x("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=x("div",null,null,"position: absolute; height: "+xn+"px; width: 1px;"),p.gutters=x("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=x("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=x("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),g&&E>=105&&(p.wrapper.style.clipPath="inset(0px)"),p.wrapper.setAttribute("translate","no"),d&&h<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!v&&!(i&&V)&&(p.scroller.draggable=!0),r&&(r.appendChild?r.appendChild(p.wrapper):r(p.wrapper)),p.viewFrom=p.viewTo=s.first,p.reportedViewFrom=p.reportedViewTo=s.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=kf(l.gutters,l.lineNumbers),Um(p),u.init(p)}var $c=0,Fr=null;d?Fr=-.53:i?Fr=15:g?Fr=-.7:S&&(Fr=-1/3);function zm(r){var s=r.wheelDeltaX,u=r.wheelDeltaY;return s==null&&r.detail&&r.axis==r.HORIZONTAL_AXIS&&(s=r.detail),u==null&&r.detail&&r.axis==r.VERTICAL_AXIS?u=r.detail:u==null&&(u=r.wheelDelta),{x:s,y:u}}function ak(r){var s=zm(r);return s.x*=Fr,s.y*=Fr,s}function Hm(r,s){g&&E==102&&(r.display.chromeScrollHack==null?r.display.sizer.style.pointerEvents="none":clearTimeout(r.display.chromeScrollHack),r.display.chromeScrollHack=setTimeout(function(){r.display.chromeScrollHack=null,r.display.sizer.style.pointerEvents=""},100));var u=zm(s),l=u.x,p=u.y,m=Fr;s.deltaMode===0&&(l=s.deltaX,p=s.deltaY,m=1);var b=r.display,_=b.scroller,k=_.scrollWidth>_.clientWidth,w=_.scrollHeight>_.clientHeight;if(l&&k||p&&w){if(p&&Y&&v){e:for(var I=s.target,M=b.view;I!=_;I=I.parentNode)for(var W=0;W<M.length;W++)if(M[W].node==I){r.display.currentWheelTarget=I;break e}}if(l&&!i&&!C&&m!=null){p&&w&&Ms(r,Math.max(0,_.scrollTop+p*m)),Fo(r,Math.max(0,_.scrollLeft+l*m)),(!p||p&&w)&&Bt(s),b.wheelStartX=null;return}if(p&&m!=null){var z=p*m,ne=r.doc.scrollTop,ce=ne+b.wrapper.clientHeight;z<0?ne=Math.max(0,ne+z-50):ce=Math.min(r.doc.height,ce+z+50),bf(r,{top:ne,bottom:ce})}$c<20&&s.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=_.scrollLeft,b.wheelStartY=_.scrollTop,b.wheelDX=l,b.wheelDY=p,setTimeout(function(){if(b.wheelStartX!=null){var ue=_.scrollLeft-b.wheelStartX,me=_.scrollTop-b.wheelStartY,Ee=me&&b.wheelDY&&me/b.wheelDY||ue&&b.wheelDX&&ue/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ee&&(Fr=(Fr*$c+Ee)/($c+1),++$c)}},200)):(b.wheelDX+=l,b.wheelDY+=p))}}var mn=function(r,s){this.ranges=r,this.primIndex=s};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(r){if(r==this)return!0;if(r.primIndex!=this.primIndex||r.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var u=this.ranges[s],l=r.ranges[s];if(!Ne(u.anchor,l.anchor)||!Ne(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var r=[],s=0;s<this.ranges.length;s++)r[s]=new Ye(je(this.ranges[s].anchor),je(this.ranges[s].head));return new mn(r,this.primIndex)},mn.prototype.somethingSelected=function(){for(var r=0;r<this.ranges.length;r++)if(!this.ranges[r].empty())return!0;return!1},mn.prototype.contains=function(r,s){s||(s=r);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(ee(s,l.from())>=0&&ee(r,l.to())<=0)return u}return-1};var Ye=function(r,s){this.anchor=r,this.head=s};Ye.prototype.from=function(){return $t(this.anchor,this.head)},Ye.prototype.to=function(){return We(this.anchor,this.head)},Ye.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zn(r,s,u){var l=r&&r.options.selectionsMayTouch,p=s[u];s.sort(function(W,z){return ee(W.from(),z.from())}),u=De(s,p);for(var m=1;m<s.length;m++){var b=s[m],_=s[m-1],k=ee(_.to(),b.from());if(l&&!b.empty()?k>0:k>=0){var w=$t(_.from(),b.from()),I=We(_.to(),b.to()),M=_.empty()?b.from()==b.head:_.from()==_.head;m<=u&&--u,s.splice(--m,2,new Ye(M?I:w,M?w:I))}}return new mn(s,u)}function oo(r,s){return new mn([new Ye(r,s||r)],0)}function io(r){return r.text?B(r.from.line+r.text.length-1,ze(r.text).length+(r.text.length==1?r.from.ch:0)):r.to}function Gm(r,s){if(ee(r,s.from)<0)return r;if(ee(r,s.to)<=0)return io(s);var u=r.line+s.text.length-(s.to.line-s.from.line)-1,l=r.ch;return r.line==s.to.line&&(l+=io(s).ch-s.to.ch),B(u,l)}function xf(r,s){for(var u=[],l=0;l<r.sel.ranges.length;l++){var p=r.sel.ranges[l];u.push(new Ye(Gm(p.anchor,s),Gm(p.head,s)))}return zn(r.cm,u,r.sel.primIndex)}function Wm(r,s,u){return r.line==s.line?B(u.line,r.ch-s.ch+u.ch):B(u.line+(r.line-s.line),r.ch)}function ck(r,s,u){for(var l=[],p=B(r.first,0),m=p,b=0;b<s.length;b++){var _=s[b],k=Wm(_.from,p,m),w=Wm(io(_),p,m);if(p=_.to,m=w,u=="around"){var I=r.sel.ranges[b],M=ee(I.head,I.anchor)<0;l[b]=new Ye(M?w:k,M?k:w)}else l[b]=new Ye(k,k)}return new mn(l,r.sel.primIndex)}function wf(r){r.doc.mode=Tr(r.options,r.doc.modeOption),js(r)}function js(r){r.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),r.doc.modeFrontier=r.doc.highlightFrontier=r.doc.first,Bs(r,100),r.state.modeGen++,r.curOp&&Jt(r)}function Qm(r,s){return s.from.ch==0&&s.to.ch==0&&ze(s.text)==""&&(!r.cm||r.cm.options.wholeLineUpdateBefore)}function $f(r,s,u,l){function p(Ee){return u?u[Ee]:null}function m(Ee,ve,xe){v2(Ee,ve,xe,l),Tt(Ee,"change",Ee,s)}function b(Ee,ve){for(var xe=[],Se=Ee;Se<ve;++Se)xe.push(new yi(w[Se],p(Se),l));return xe}var _=s.from,k=s.to,w=s.text,I=we(r,_.line),M=we(r,k.line),W=ze(w),z=p(w.length-1),ne=k.line-_.line;if(s.full)r.insert(0,b(0,w.length)),r.remove(w.length,r.size-w.length);else if(Qm(r,s)){var ce=b(0,w.length-1);m(M,M.text,z),ne&&r.remove(_.line,ne),ce.length&&r.insert(_.line,ce)}else if(I==M)if(w.length==1)m(I,I.text.slice(0,_.ch)+W+I.text.slice(k.ch),z);else{var ue=b(1,w.length-1);ue.push(new yi(W+I.text.slice(k.ch),z,l)),m(I,I.text.slice(0,_.ch)+w[0],p(0)),r.insert(_.line+1,ue)}else if(w.length==1)m(I,I.text.slice(0,_.ch)+w[0]+M.text.slice(k.ch),p(0)),r.remove(_.line+1,ne);else{m(I,I.text.slice(0,_.ch)+w[0],p(0)),m(M,W+M.text.slice(k.ch),z);var me=b(1,w.length-1);ne>1&&r.remove(_.line+1,ne-1),r.insert(_.line+1,me)}Tt(r,"change",r,s)}function so(r,s,u){function l(p,m,b){if(p.linked)for(var _=0;_<p.linked.length;++_){var k=p.linked[_];if(k.doc!=m){var w=b&&k.sharedHist;u&&!w||(s(k.doc,w),l(k.doc,p,w))}}}l(r,null,!0)}function Ym(r,s){if(s.cm)throw new Error("This document is already in use.");r.doc=s,s.cm=r,ff(r),wf(r),Jm(r),r.options.direction=s.direction,r.options.lineWrapping||Ku(r),r.options.mode=s.modeOption,Jt(r)}function Jm(r){(r.doc.direction=="rtl"?$e:_e)(r.display.lineDiv,"CodeMirror-rtl")}function lk(r){an(r,function(){Jm(r),Jt(r)})}function Cc(r){this.done=[],this.undone=[],this.undoDepth=r?r.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=r?r.maxGeneration:1}function Cf(r,s){var u={from:je(s.from),to:io(s),text:Nr(r,s.from,s.to)};return Km(r,u,s.from.line,s.to.line+1),so(r,function(l){return Km(l,u,s.from.line,s.to.line+1)},!0),u}function Zm(r){for(;r.length;){var s=ze(r);if(s.ranges)r.pop();else break}}function uk(r,s){if(s)return Zm(r.done),ze(r.done);if(r.done.length&&!ze(r.done).ranges)return ze(r.done);if(r.done.length>1&&!r.done[r.done.length-2].ranges)return r.done.pop(),ze(r.done)}function Xm(r,s,u,l){var p=r.history;p.undone.length=0;var m=+new Date,b,_;if((p.lastOp==l||p.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&p.lastModTime>m-(r.cm?r.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(b=uk(p,p.lastOp==l)))_=ze(b.changes),ee(s.from,s.to)==0&&ee(s.from,_.to)==0?_.to=io(s):b.changes.push(Cf(r,s));else{var k=ze(p.done);for((!k||!k.ranges)&&Ac(r.sel,p.done),b={changes:[Cf(r,s)],generation:p.generation},p.done.push(b);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(u),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=m,p.lastOp=p.lastSelOp=l,p.lastOrigin=p.lastSelOrigin=s.origin,_||it(r,"historyAdded")}function fk(r,s,u,l){var p=s.charAt(0);return p=="*"||p=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-r.history.lastSelTime<=(r.cm?r.cm.options.historyEventDelay:500)}function pk(r,s,u,l){var p=r.history,m=l&&l.origin;u==p.lastSelOp||m&&p.lastSelOrigin==m&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==m||fk(r,m,ze(p.done),s))?p.done[p.done.length-1]=s:Ac(s,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=m,p.lastSelOp=u,l&&l.clearRedo!==!1&&Zm(p.undone)}function Ac(r,s){var u=ze(s);u&&u.ranges&&u.equals(r)||s.push(r)}function Km(r,s,u,l){var p=s["spans_"+r.id],m=0;r.iter(Math.max(r.first,u),Math.min(r.first+r.size,l),function(b){b.markedSpans&&((p||(p=s["spans_"+r.id]={}))[m]=b.markedSpans),++m})}function dk(r){if(!r)return null;for(var s,u=0;u<r.length;++u)r[u].marker.explicitlyCleared?s||(s=r.slice(0,u)):s&&s.push(r[u]);return s?s.length?s:null:r}function hk(r,s){var u=s["spans_"+r.id];if(!u)return null;for(var l=[],p=0;p<s.text.length;++p)l.push(dk(u[p]));return l}function ev(r,s){var u=hk(r,s),l=Yu(r,s);if(!u)return l;if(!l)return u;for(var p=0;p<u.length;++p){var m=u[p],b=l[p];if(m&&b)e:for(var _=0;_<b.length;++_){for(var k=b[_],w=0;w<m.length;++w)if(m[w].marker==k.marker)continue e;m.push(k)}else b&&(u[p]=b)}return u}function Ci(r,s,u){for(var l=[],p=0;p<r.length;++p){var m=r[p];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var b=m.changes,_=[];l.push({changes:_});for(var k=0;k<b.length;++k){var w=b[k],I=void 0;if(_.push({from:w.from,to:w.to,text:w.text}),s)for(var M in w)(I=M.match(/^spans_(\d+)$/))&&De(s,Number(I[1]))>-1&&(ze(_)[M]=w[M],delete w[M])}}return l}function Af(r,s,u,l){if(l){var p=r.anchor;if(u){var m=ee(s,p)<0;m!=ee(u,p)<0?(p=s,s=u):m!=ee(s,u)<0&&(s=u)}return new Ye(p,s)}else return new Ye(u||s,s)}function Sc(r,s,u,l,p){p==null&&(p=r.cm&&(r.cm.display.shift||r.extend)),Vt(r,new mn([Af(r.sel.primary(),s,u,p)],0),l)}function tv(r,s,u){for(var l=[],p=r.cm&&(r.cm.display.shift||r.extend),m=0;m<r.sel.ranges.length;m++)l[m]=Af(r.sel.ranges[m],s[m],null,p);var b=zn(r.cm,l,r.sel.primIndex);Vt(r,b,u)}function Sf(r,s,u,l){var p=r.sel.ranges.slice(0);p[s]=u,Vt(r,zn(r.cm,p,r.sel.primIndex),l)}function nv(r,s,u,l){Vt(r,oo(s,u),l)}function mk(r,s,u){var l={ranges:s.ranges,update:function(p){this.ranges=[];for(var m=0;m<p.length;m++)this.ranges[m]=new Ye(Oe(r,p[m].anchor),Oe(r,p[m].head))},origin:u&&u.origin};return it(r,"beforeSelectionChange",r,l),r.cm&&it(r.cm,"beforeSelectionChange",r.cm,l),l.ranges!=s.ranges?zn(r.cm,l.ranges,l.ranges.length-1):s}function rv(r,s,u){var l=r.history.done,p=ze(l);p&&p.ranges?(l[l.length-1]=s,Tc(r,s,u)):Vt(r,s,u)}function Vt(r,s,u){Tc(r,s,u),pk(r,r.sel,r.cm?r.cm.curOp.id:NaN,u)}function Tc(r,s,u){(zt(r,"beforeSelectionChange")||r.cm&&zt(r.cm,"beforeSelectionChange"))&&(s=mk(r,s,u));var l=u&&u.bias||(ee(s.primary().head,r.sel.primary().head)<0?-1:1);ov(r,sv(r,s,l,!0)),!(u&&u.scroll===!1)&&r.cm&&r.cm.getOption("readOnly")!="nocursor"&&wi(r.cm)}function ov(r,s){s.equals(r.sel)||(r.sel=s,r.cm&&(r.cm.curOp.updateInput=1,r.cm.curOp.selectionChanged=!0,oc(r.cm)),Tt(r,"cursorActivity",r))}function iv(r){ov(r,sv(r,r.sel,null,!1))}function sv(r,s,u,l){for(var p,m=0;m<s.ranges.length;m++){var b=s.ranges[m],_=s.ranges.length==r.sel.ranges.length&&r.sel.ranges[m],k=Dc(r,b.anchor,_&&_.anchor,u,l),w=b.head==b.anchor?k:Dc(r,b.head,_&&_.head,u,l);(p||k!=b.anchor||w!=b.head)&&(p||(p=s.ranges.slice(0,m)),p[m]=new Ye(k,w))}return p?zn(r.cm,p,s.primIndex):s}function Ai(r,s,u,l,p){var m=we(r,s.line);if(m.markedSpans)for(var b=0;b<m.markedSpans.length;++b){var _=m.markedSpans[b],k=_.marker,w="selectLeft"in k?!k.selectLeft:k.inclusiveLeft,I="selectRight"in k?!k.selectRight:k.inclusiveRight;if((_.from==null||(w?_.from<=s.ch:_.from<s.ch))&&(_.to==null||(I?_.to>=s.ch:_.to>s.ch))){if(p&&(it(k,"beforeCursorEnter"),k.explicitlyCleared))if(m.markedSpans){--b;continue}else break;if(!k.atomic)continue;if(u){var M=k.find(l<0?1:-1),W=void 0;if((l<0?I:w)&&(M=av(r,M,-l,M&&M.line==s.line?m:null)),M&&M.line==s.line&&(W=ee(M,u))&&(l<0?W<0:W>0))return Ai(r,M,s,l,p)}var z=k.find(l<0?-1:1);return(l<0?w:I)&&(z=av(r,z,l,z.line==s.line?m:null)),z?Ai(r,z,s,l,p):null}}return s}function Dc(r,s,u,l,p){var m=l||1,b=Ai(r,s,u,m,p)||!p&&Ai(r,s,u,m,!0)||Ai(r,s,u,-m,p)||!p&&Ai(r,s,u,-m,!0);return b||(r.cantEdit=!0,B(r.first,0))}function av(r,s,u,l){return u<0&&s.ch==0?s.line>r.first?Oe(r,B(s.line-1)):null:u>0&&s.ch==(l||we(r,s.line)).text.length?s.line<r.first+r.size-1?B(s.line+1,0):null:new B(s.line,s.ch+u)}function cv(r){r.setSelection(B(r.firstLine(),0),B(r.lastLine()),Be)}function lv(r,s,u){var l={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(p,m,b,_){p&&(l.from=Oe(r,p)),m&&(l.to=Oe(r,m)),b&&(l.text=b),_!==void 0&&(l.origin=_)}),it(r,"beforeChange",r,l),r.cm&&it(r.cm,"beforeChange",r.cm,l),l.canceled?(r.cm&&(r.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Si(r,s,u){if(r.cm){if(!r.cm.curOp)return Dt(r.cm,Si)(r,s,u);if(r.cm.state.suppressEdits)return}if(!((zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"))&&(s=lv(r,s,!0),!s))){var l=em&&!u&&p2(r,s.from,s.to);if(l)for(var p=l.length-1;p>=0;--p)uv(r,{from:l[p].from,to:l[p].to,text:p?[""]:s.text,origin:s.origin});else uv(r,s)}}function uv(r,s){if(!(s.text.length==1&&s.text[0]==""&&ee(s.from,s.to)==0)){var u=xf(r,s);Xm(r,s,u,r.cm?r.cm.curOp.id:NaN),Us(r,s,u,Yu(r,s));var l=[];so(r,function(p,m){!m&&De(l,p.history)==-1&&(hv(p.history,s),l.push(p.history)),Us(p,s,null,Yu(p,s))})}}function Nc(r,s,u){var l=r.cm&&r.cm.state.suppressEdits;if(!(l&&!u)){for(var p=r.history,m,b=r.sel,_=s=="undo"?p.done:p.undone,k=s=="undo"?p.undone:p.done,w=0;w<_.length&&(m=_[w],!(u?m.ranges&&!m.equals(r.sel):!m.ranges));w++);if(w!=_.length){for(p.lastOrigin=p.lastSelOrigin=null;;)if(m=_.pop(),m.ranges){if(Ac(m,k),u&&!m.equals(r.sel)){Vt(r,m,{clearRedo:!1});return}b=m}else if(l){_.push(m);return}else break;var I=[];Ac(b,k),k.push({changes:I,generation:p.generation}),p.generation=m.generation||++p.maxGeneration;for(var M=zt(r,"beforeChange")||r.cm&&zt(r.cm,"beforeChange"),W=function(ce){var ue=m.changes[ce];if(ue.origin=s,M&&!lv(r,ue,!1))return _.length=0,{};I.push(Cf(r,ue));var me=ce?xf(r,ue):ze(_);Us(r,ue,me,ev(r,ue)),!ce&&r.cm&&r.cm.scrollIntoView({from:ue.from,to:io(ue)});var Ee=[];so(r,function(ve,xe){!xe&&De(Ee,ve.history)==-1&&(hv(ve.history,ue),Ee.push(ve.history)),Us(ve,ue,null,ev(ve,ue))})},z=m.changes.length-1;z>=0;--z){var ne=W(z);if(ne)return ne.v}}}}function fv(r,s){if(s!=0&&(r.first+=s,r.sel=new mn(pi(r.sel.ranges,function(p){return new Ye(B(p.anchor.line+s,p.anchor.ch),B(p.head.line+s,p.head.ch))}),r.sel.primIndex),r.cm)){Jt(r.cm,r.first,r.first-s,s);for(var u=r.cm.display,l=u.viewFrom;l<u.viewTo;l++)no(r.cm,l,"gutter")}}function Us(r,s,u,l){if(r.cm&&!r.cm.curOp)return Dt(r.cm,Us)(r,s,u,l);if(s.to.line<r.first){fv(r,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>r.lastLine())){if(s.from.line<r.first){var p=s.text.length-1-(r.first-s.from.line);fv(r,p),s={from:B(r.first,0),to:B(s.to.line+p,s.to.ch),text:[ze(s.text)],origin:s.origin}}var m=r.lastLine();s.to.line>m&&(s={from:s.from,to:B(m,we(r,m).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Nr(r,s.from,s.to),u||(u=xf(r,s)),r.cm?vk(r.cm,s,l):$f(r,s,l),Tc(r,u,Be),r.cantEdit&&Dc(r,B(r.firstLine(),0))&&(r.cantEdit=!1)}}function vk(r,s,u){var l=r.doc,p=r.display,m=s.from,b=s.to,_=!1,k=m.line;r.options.lineWrapping||(k=Qe(jn(we(l,m.line))),l.iter(k,b.line+1,function(z){if(z==p.maxLine)return _=!0,!0})),l.sel.contains(s.from,s.to)>-1&&oc(r),$f(l,s,u,Dm(r)),r.options.lineWrapping||(l.iter(k,m.line+s.text.length,function(z){var ne=hc(z);ne>p.maxLineLength&&(p.maxLine=z,p.maxLineLength=ne,p.maxLineChanged=!0,_=!1)}),_&&(r.curOp.updateMaxLine=!0)),i2(l,m.line),Bs(r,400);var w=s.text.length-(b.line-m.line)-1;s.full?Jt(r):m.line==b.line&&s.text.length==1&&!Qm(r.doc,s)?no(r,m.line,"text"):Jt(r,m.line,b.line+1,w);var I=zt(r,"changes"),M=zt(r,"change");if(M||I){var W={from:m,to:b,text:s.text,removed:s.removed,origin:s.origin};M&&Tt(r,"change",r,W),I&&(r.curOp.changeObjs||(r.curOp.changeObjs=[])).push(W)}r.display.selForContextMenu=null}function Ti(r,s,u,l,p){var m;l||(l=u),ee(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof s=="string"&&(s=r.splitLines(s)),Si(r,{from:u,to:l,text:s,origin:p})}function pv(r,s,u,l){u<r.line?r.line+=l:s<r.line&&(r.line=s,r.ch=0)}function dv(r,s,u,l){for(var p=0;p<r.length;++p){var m=r[p],b=!0;if(m.ranges){m.copied||(m=r[p]=m.deepCopy(),m.copied=!0);for(var _=0;_<m.ranges.length;_++)pv(m.ranges[_].anchor,s,u,l),pv(m.ranges[_].head,s,u,l);continue}for(var k=0;k<m.changes.length;++k){var w=m.changes[k];if(u<w.from.line)w.from=B(w.from.line+l,w.from.ch),w.to=B(w.to.line+l,w.to.ch);else if(s<=w.to.line){b=!1;break}}b||(r.splice(0,p+1),p=0)}}function hv(r,s){var u=s.from.line,l=s.to.line,p=s.text.length-(l-u)-1;dv(r.done,u,l,p),dv(r.undone,u,l,p)}function zs(r,s,u,l){var p=s,m=s;return typeof s=="number"?m=we(r,hn(r,s)):p=Qe(s),p==null?null:(l(m,p)&&r.cm&&no(r.cm,p,u),m)}function Hs(r){this.lines=r,this.parent=null;for(var s=0,u=0;u<r.length;++u)r[u].parent=this,s+=r[u].height;this.height=s}Hs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(r,s){for(var u=r,l=r+s;u<l;++u){var p=this.lines[u];this.height-=p.height,g2(p),Tt(p,"delete")}this.lines.splice(r,s)},collapse:function(r){r.push.apply(r,this.lines)},insertInner:function(r,s,u){this.height+=u,this.lines=this.lines.slice(0,r).concat(s).concat(this.lines.slice(r));for(var l=0;l<s.length;++l)s[l].parent=this},iterN:function(r,s,u){for(var l=r+s;r<l;++r)if(u(this.lines[r]))return!0}};function Gs(r){this.children=r;for(var s=0,u=0,l=0;l<r.length;++l){var p=r[l];s+=p.chunkSize(),u+=p.height,p.parent=this}this.size=s,this.height=u,this.parent=null}Gs.prototype={chunkSize:function(){return this.size},removeInner:function(r,s){this.size-=s;for(var u=0;u<this.children.length;++u){var l=this.children[u],p=l.chunkSize();if(r<p){var m=Math.min(s,p-r),b=l.height;if(l.removeInner(r,m),this.height-=b-l.height,p==m&&(this.children.splice(u--,1),l.parent=null),(s-=m)==0)break;r=0}else r-=p}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof Hs))){var _=[];this.collapse(_),this.children=[new Hs(_)],this.children[0].parent=this}},collapse:function(r){for(var s=0;s<this.children.length;++s)this.children[s].collapse(r)},insertInner:function(r,s,u){this.size+=s.length,this.height+=u;for(var l=0;l<this.children.length;++l){var p=this.children[l],m=p.chunkSize();if(r<=m){if(p.insertInner(r,s,u),p.lines&&p.lines.length>50){for(var b=p.lines.length%25+25,_=b;_<p.lines.length;){var k=new Hs(p.lines.slice(_,_+=25));p.height-=k.height,this.children.splice(++l,0,k),k.parent=this}p.lines=p.lines.slice(0,b),this.maybeSpill()}break}r-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var r=this;do{var s=r.children.splice(r.children.length-5,5),u=new Gs(s);if(r.parent){r.size-=u.size,r.height-=u.height;var p=De(r.parent.children,r);r.parent.children.splice(p+1,0,u)}else{var l=new Gs(r.children);l.parent=r,r.children=[l,u],r=l}u.parent=r.parent}while(r.children.length>10);r.parent.maybeSpill()}},iterN:function(r,s,u){for(var l=0;l<this.children.length;++l){var p=this.children[l],m=p.chunkSize();if(r<m){var b=Math.min(s,m-r);if(p.iterN(r,b,u))return!0;if((s-=b)==0)break;r=0}else r-=m}}};var Ws=function(r,s,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=r,this.node=s};Ws.prototype.clear=function(){var r=this.doc.cm,s=this.line.widgets,u=this.line,l=Qe(u);if(!(l==null||!s)){for(var p=0;p<s.length;++p)s[p]==this&&s.splice(p--,1);s.length||(u.widgets=null);var m=Is(this);Sn(u,Math.max(0,u.height-m)),r&&(an(r,function(){mv(r,u,-m),no(r,l,"widget")}),Tt(r,"lineWidgetCleared",r,this,l))}},Ws.prototype.changed=function(){var r=this,s=this.height,u=this.doc.cm,l=this.line;this.height=null;var p=Is(this)-s;p&&(to(this.doc,l)||Sn(l,l.height+p),u&&an(u,function(){u.curOp.forceUpdate=!0,mv(u,l,p),Tt(u,"lineWidgetChanged",u,r,Qe(l))}))},Ht(Ws);function mv(r,s,u){Ir(s)<(r.curOp&&r.curOp.scrollTop||r.doc.scrollTop)&&gf(r,u)}function gk(r,s,u,l){var p=new Ws(r,u,l),m=r.cm;return m&&p.noHScroll&&(m.display.alignWidgets=!0),zs(r,s,"widget",function(b){var _=b.widgets||(b.widgets=[]);if(p.insertAt==null?_.push(p):_.splice(Math.min(_.length,Math.max(0,p.insertAt)),0,p),p.line=b,m&&!to(r,b)){var k=Ir(b)<r.scrollTop;Sn(b,b.height+Is(p)),k&&gf(m,p.height),m.curOp.forceUpdate=!0}return!0}),m&&Tt(m,"lineWidgetAdded",m,p,typeof s=="number"?s:Qe(s)),p}var vv=0,ao=function(r,s){this.lines=[],this.type=s,this.doc=r,this.id=++vv};ao.prototype.clear=function(){if(!this.explicitlyCleared){var r=this.doc.cm,s=r&&!r.curOp;if(s&&Mo(r),zt(this,"clear")){var u=this.find();u&&Tt(this,"clear",u.from,u.to)}for(var l=null,p=null,m=0;m<this.lines.length;++m){var b=this.lines[m],_=Ds(b.markedSpans,this);r&&!this.collapsed?no(r,Qe(b),"text"):r&&(_.to!=null&&(p=Qe(b)),_.from!=null&&(l=Qe(b))),b.markedSpans=c2(b.markedSpans,_),_.from==null&&this.collapsed&&!to(this.doc,b)&&r&&Sn(b,_i(r.display))}if(r&&this.collapsed&&!r.options.lineWrapping)for(var k=0;k<this.lines.length;++k){var w=jn(this.lines[k]),I=hc(w);I>r.display.maxLineLength&&(r.display.maxLine=w,r.display.maxLineLength=I,r.display.maxLineChanged=!0)}l!=null&&r&&this.collapsed&&Jt(r,l,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,r&&iv(r.doc)),r&&Tt(r,"markerCleared",r,this,l,p),s&&qo(r),this.parent&&this.parent.clear()}},ao.prototype.find=function(r,s){r==null&&this.type=="bookmark"&&(r=1);for(var u,l,p=0;p<this.lines.length;++p){var m=this.lines[p],b=Ds(m.markedSpans,this);if(b.from!=null&&(u=B(s?m:Qe(m),b.from),r==-1))return u;if(b.to!=null&&(l=B(s?m:Qe(m),b.to),r==1))return l}return u&&{from:u,to:l}},ao.prototype.changed=function(){var r=this,s=this.find(-1,!0),u=this,l=this.doc.cm;!s||!l||an(l,function(){var p=s.line,m=Qe(s.line),b=rf(l,m);if(b&&(km(b),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!to(u.doc,p)&&u.height!=null){var _=u.height;u.height=null;var k=Is(u)-_;k&&Sn(p,p.height+k)}Tt(l,"markerChanged",l,r)})},ao.prototype.attachLine=function(r){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||De(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(r)},ao.prototype.detachLine=function(r){if(this.lines.splice(De(this.lines,r),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Ht(ao);function Di(r,s,u,l,p){if(l&&l.shared)return yk(r,s,u,l,p);if(r.cm&&!r.cm.curOp)return Dt(r.cm,Di)(r,s,u,l,p);var m=new ao(r,p),b=ee(s,u);if(l&&ye(l,m,!1),b>0||b==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=j("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(sm(r,s.line,s,u,m)||s.line!=u.line&&sm(r,u.line,s,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");a2()}m.addToHistory&&Xm(r,{from:s,to:u,origin:"markText"},r.sel,NaN);var _=s.line,k=r.cm,w;if(r.iter(_,u.line+1,function(M){k&&m.collapsed&&!k.options.lineWrapping&&jn(M)==k.display.maxLine&&(w=!0),m.collapsed&&_!=s.line&&Sn(M,0),l2(M,new uc(m,_==s.line?s.ch:null,_==u.line?u.ch:null),r.cm&&r.cm.curOp),++_}),m.collapsed&&r.iter(s.line,u.line+1,function(M){to(r,M)&&Sn(M,0)}),m.clearOnEnter&&be(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(s2(),(r.history.done.length||r.history.undone.length)&&r.clearHistory()),m.collapsed&&(m.id=++vv,m.atomic=!0),k){if(w&&(k.curOp.updateMaxLine=!0),m.collapsed)Jt(k,s.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var I=s.line;I<=u.line;I++)no(k,I,"text");m.atomic&&iv(k.doc),Tt(k,"markerAdded",k,m)}return m}var Qs=function(r,s){this.markers=r,this.primary=s;for(var u=0;u<r.length;++u)r[u].parent=this};Qs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var r=0;r<this.markers.length;++r)this.markers[r].clear();Tt(this,"clear")}},Qs.prototype.find=function(r,s){return this.primary.find(r,s)},Ht(Qs);function yk(r,s,u,l,p){l=ye(l),l.shared=!1;var m=[Di(r,s,u,l,p)],b=m[0],_=l.widgetNode;return so(r,function(k){_&&(l.widgetNode=_.cloneNode(!0)),m.push(Di(k,Oe(k,s),Oe(k,u),l,p));for(var w=0;w<k.linked.length;++w)if(k.linked[w].isParent)return;b=ze(m)}),new Qs(m,b)}function gv(r){return r.findMarks(B(r.first,0),r.clipPos(B(r.lastLine())),function(s){return s.parent})}function bk(r,s){for(var u=0;u<s.length;u++){var l=s[u],p=l.find(),m=r.clipPos(p.from),b=r.clipPos(p.to);if(ee(m,b)){var _=Di(r,m,b,l.primary,l.primary.type);l.markers.push(_),_.parent=l}}}function Ek(r){for(var s=function(l){var p=r[l],m=[p.primary.doc];so(p.primary.doc,function(k){return m.push(k)});for(var b=0;b<p.markers.length;b++){var _=p.markers[b];De(m,_.doc)==-1&&(_.parent=null,p.markers.splice(b--,1))}},u=0;u<r.length;u++)s(u)}var _k=0,Zt=function(r,s,u,l,p){if(!(this instanceof Zt))return new Zt(r,s,u,l,p);u==null&&(u=0),Gs.call(this,[new Hs([new yi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=B(u,0);this.sel=oo(m),this.history=new Cc(null),this.id=++_k,this.modeOption=s,this.lineSep=l,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof r=="string"&&(r=this.splitLines(r)),$f(this,{from:m,to:m,text:r}),Vt(this,oo(m),Be)};Zt.prototype=tc(Gs.prototype,{constructor:Zt,iter:function(r,s,u){u?this.iterN(r-this.first,s-r,u):this.iterN(this.first,this.first+this.size,r)},insert:function(r,s){for(var u=0,l=0;l<s.length;++l)u+=s[l].height;this.insertInner(r-this.first,s,u)},remove:function(r,s){this.removeInner(r-this.first,s)},getValue:function(r){var s=gi(this,this.first,this.first+this.size);return r===!1?s:s.join(r||this.lineSeparator())},setValue:Nt(function(r){var s=B(this.first,0),u=this.first+this.size-1;Si(this,{from:s,to:B(u,we(this,u).text.length),text:this.splitLines(r),origin:"setValue",full:!0},!0),this.cm&&Rs(this.cm,0,0),Vt(this,oo(s),Be)}),replaceRange:function(r,s,u,l){s=Oe(this,s),u=u?Oe(this,u):s,Ti(this,r,s,u,l)},getRange:function(r,s,u){var l=Nr(this,Oe(this,r),Oe(this,s));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(r){var s=this.getLineHandle(r);return s&&s.text},getLineHandle:function(r){if(A(this,r))return we(this,r)},getLineNumber:function(r){return Qe(r)},getLineHandleVisualStart:function(r){return typeof r=="number"&&(r=we(this,r)),jn(r)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(r){return Oe(this,r)},getCursor:function(r){var s=this.sel.primary(),u;return r==null||r=="head"?u=s.head:r=="anchor"?u=s.anchor:r=="end"||r=="to"||r===!1?u=s.to():u=s.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Nt(function(r,s,u){nv(this,Oe(this,typeof r=="number"?B(r,s||0):r),null,u)}),setSelection:Nt(function(r,s,u){nv(this,Oe(this,r),Oe(this,s||r),u)}),extendSelection:Nt(function(r,s,u){Sc(this,Oe(this,r),s&&Oe(this,s),u)}),extendSelections:Nt(function(r,s){tv(this,Gh(this,r),s)}),extendSelectionsBy:Nt(function(r,s){var u=pi(this.sel.ranges,r);tv(this,Gh(this,u),s)}),setSelections:Nt(function(r,s,u){if(r.length){for(var l=[],p=0;p<r.length;p++)l[p]=new Ye(Oe(this,r[p].anchor),Oe(this,r[p].head||r[p].anchor));s==null&&(s=Math.min(r.length-1,this.sel.primIndex)),Vt(this,zn(this.cm,l,s),u)}}),addSelection:Nt(function(r,s,u){var l=this.sel.ranges.slice(0);l.push(new Ye(Oe(this,r),Oe(this,s||r))),Vt(this,zn(this.cm,l,l.length-1),u)}),getSelection:function(r){for(var s=this.sel.ranges,u,l=0;l<s.length;l++){var p=Nr(this,s[l].from(),s[l].to());u=u?u.concat(p):p}return r===!1?u:u.join(r||this.lineSeparator())},getSelections:function(r){for(var s=[],u=this.sel.ranges,l=0;l<u.length;l++){var p=Nr(this,u[l].from(),u[l].to());r!==!1&&(p=p.join(r||this.lineSeparator())),s[l]=p}return s},replaceSelection:function(r,s,u){for(var l=[],p=0;p<this.sel.ranges.length;p++)l[p]=r;this.replaceSelections(l,s,u||"+input")},replaceSelections:Nt(function(r,s,u){for(var l=[],p=this.sel,m=0;m<p.ranges.length;m++){var b=p.ranges[m];l[m]={from:b.from(),to:b.to(),text:this.splitLines(r[m]),origin:u}}for(var _=s&&s!="end"&&ck(this,l,s),k=l.length-1;k>=0;k--)Si(this,l[k]);_?rv(this,_):this.cm&&wi(this.cm)}),undo:Nt(function(){Nc(this,"undo")}),redo:Nt(function(){Nc(this,"redo")}),undoSelection:Nt(function(){Nc(this,"undo",!0)}),redoSelection:Nt(function(){Nc(this,"redo",!0)}),setExtending:function(r){this.extend=r},getExtending:function(){return this.extend},historySize:function(){for(var r=this.history,s=0,u=0,l=0;l<r.done.length;l++)r.done[l].ranges||++s;for(var p=0;p<r.undone.length;p++)r.undone[p].ranges||++u;return{undo:s,redo:u}},clearHistory:function(){var r=this;this.history=new Cc(this.history),so(this,function(s){return s.history=r.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(r){return r&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(r){return this.history.generation==(r||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(r){var s=this.history=new Cc(this.history);s.done=Ci(r.done.slice(0),null,!0),s.undone=Ci(r.undone.slice(0),null,!0)},setGutterMarker:Nt(function(r,s,u){return zs(this,r,"gutter",function(l){var p=l.gutterMarkers||(l.gutterMarkers={});return p[s]=u,!u&&nc(p)&&(l.gutterMarkers=null),!0})}),clearGutter:Nt(function(r){var s=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[r]&&zs(s,u,"gutter",function(){return u.gutterMarkers[r]=null,nc(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(r){var s;if(typeof r=="number"){if(!A(this,r)||(s=r,r=we(this,r),!r))return null}else if(s=Qe(r),s==null)return null;return{line:s,handle:r,text:r.text,gutterMarkers:r.gutterMarkers,textClass:r.textClass,bgClass:r.bgClass,wrapClass:r.wrapClass,widgets:r.widgets}},addLineClass:Nt(function(r,s,u){return zs(this,r,s=="gutter"?"gutter":"class",function(l){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!l[p])l[p]=u;else{if(oe(u).test(l[p]))return!1;l[p]+=" "+u}return!0})}),removeLineClass:Nt(function(r,s,u){return zs(this,r,s=="gutter"?"gutter":"class",function(l){var p=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",m=l[p];if(m)if(u==null)l[p]=null;else{var b=m.match(oe(u));if(!b)return!1;var _=b.index+b[0].length;l[p]=m.slice(0,b.index)+(!b.index||_==m.length?"":" ")+m.slice(_)||null}else return!1;return!0})}),addLineWidget:Nt(function(r,s,u){return gk(this,r,s,u)}),removeLineWidget:function(r){r.clear()},markText:function(r,s,u){return Di(this,Oe(this,r),Oe(this,s),u,u&&u.type||"range")},setBookmark:function(r,s){var u={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return r=Oe(this,r),Di(this,r,r,u,"bookmark")},findMarksAt:function(r){r=Oe(this,r);var s=[],u=we(this,r.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var p=u[l];(p.from==null||p.from<=r.ch)&&(p.to==null||p.to>=r.ch)&&s.push(p.marker.parent||p.marker)}return s},findMarks:function(r,s,u){r=Oe(this,r),s=Oe(this,s);var l=[],p=r.line;return this.iter(r.line,s.line+1,function(m){var b=m.markedSpans;if(b)for(var _=0;_<b.length;_++){var k=b[_];!(k.to!=null&&p==r.line&&r.ch>=k.to||k.from==null&&p!=r.line||k.from!=null&&p==s.line&&k.from>=s.ch)&&(!u||u(k.marker))&&l.push(k.marker.parent||k.marker)}++p}),l},getAllMarks:function(){var r=[];return this.iter(function(s){var u=s.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&r.push(u[l].marker)}),r},posFromIndex:function(r){var s,u=this.first,l=this.lineSeparator().length;return this.iter(function(p){var m=p.text.length+l;if(m>r)return s=r,!0;r-=m,++u}),Oe(this,B(u,s))},indexFromPos:function(r){r=Oe(this,r);var s=r.ch;if(r.line<this.first||r.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,r.line,function(l){s+=l.text.length+u}),s},copy:function(r){var s=new Zt(gi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,r&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(r){r||(r={});var s=this.first,u=this.first+this.size;r.from!=null&&r.from>s&&(s=r.from),r.to!=null&&r.to<u&&(u=r.to);var l=new Zt(gi(this,s,u),r.mode||this.modeOption,s,this.lineSep,this.direction);return r.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:r.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:r.sharedHist}],bk(l,gv(this)),l},unlinkDoc:function(r){if(r instanceof lt&&(r=r.doc),this.linked)for(var s=0;s<this.linked.length;++s){var u=this.linked[s];if(u.doc==r){this.linked.splice(s,1),r.unlinkDoc(this),Ek(gv(this));break}}if(r.history==this.history){var l=[r.id];so(r,function(p){return l.push(p.id)},!0),r.history=new Cc(null),r.history.done=Ci(this.history.done,l),r.history.undone=Ci(this.history.undone,l)}},iterLinkedDocs:function(r){so(this,r)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(r){return this.lineSep?r.split(this.lineSep):As(r)},lineSeparator:function(){return this.lineSep||`
|
|
298
|
+
`},setDirection:Nt(function(r){r!="rtl"&&(r="ltr"),r!=this.direction&&(this.direction=r,this.iter(function(s){return s.order=null}),this.cm&&lk(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var yv=0;function kk(r){var s=this;if(bv(s),!(pt(s,r)||Lr(s.display,r))){Bt(r),d&&(yv=+new Date);var u=Io(s,r,!0),l=r.dataTransfer.files;if(!(!u||s.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var p=l.length,m=Array(p),b=0,_=function(){++b==p&&Dt(s,function(){u=Oe(s.doc,u);var z={from:u,to:u,text:s.doc.splitLines(m.filter(function(ne){return ne!=null}).join(s.doc.lineSeparator())),origin:"paste"};Si(s.doc,z),rv(s.doc,oo(Oe(s.doc,u),Oe(s.doc,io(z))))})()},k=function(z,ne){if(s.options.allowDropFileTypes&&De(s.options.allowDropFileTypes,z.type)==-1){_();return}var ce=new FileReader;ce.onerror=function(){return _()},ce.onload=function(){var ue=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ue)){_();return}m[ne]=ue,_()},ce.readAsText(z)},w=0;w<l.length;w++)k(l[w],w);else{if(s.state.draggingText&&s.doc.sel.contains(u)>-1){s.state.draggingText(r),setTimeout(function(){return s.display.input.focus()},20);return}try{var I=r.dataTransfer.getData("Text");if(I){var M;if(s.state.draggingText&&!s.state.draggingText.copy&&(M=s.listSelections()),Tc(s.doc,oo(u,u)),M)for(var W=0;W<M.length;++W)Ti(s.doc,"",M[W].anchor,M[W].head,"drag");s.replaceSelection(I,"around","paste"),s.display.input.focus()}}catch{}}}}function xk(r,s){if(d&&(!r.state.draggingText||+new Date-yv<100)){Sr(s);return}if(!(pt(r,s)||Lr(r.display,s))&&(s.dataTransfer.setData("Text",r.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!S)){var u=x("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(u.width=u.height=1,r.display.wrapper.appendChild(u),u._top=u.offsetTop),s.dataTransfer.setDragImage(u,0,0),C&&u.parentNode.removeChild(u)}}function wk(r,s){var u=Io(r,s);if(u){var l=document.createDocumentFragment();pf(r,u,l),r.display.dragCursor||(r.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),r.display.lineSpace.insertBefore(r.display.dragCursor,r.display.cursorDiv)),R(r.display.dragCursor,l)}}function bv(r){r.display.dragCursor&&(r.display.lineSpace.removeChild(r.display.dragCursor),r.display.dragCursor=null)}function Ev(r){if(document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<s.length;l++){var p=s[l].CodeMirror;p&&u.push(p)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)r(u[m])})}}var _v=!1;function $k(){_v||(Ck(),_v=!0)}function Ck(){var r;be(window,"resize",function(){r==null&&(r=setTimeout(function(){r=null,Ev(Ak)},100))}),be(window,"blur",function(){return Ev(xi)})}function Ak(r){var s=r.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,r.setSize()}for(var co={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ys=0;Ys<10;Ys++)co[Ys+48]=co[Ys+96]=String(Ys);for(var Oc=65;Oc<=90;Oc++)co[Oc]=String.fromCharCode(Oc);for(var Js=1;Js<=12;Js++)co[Js+111]=co[Js+63235]="F"+Js;var Rr={};Rr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Rr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Rr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Rr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Rr.default=Y?Rr.macDefault:Rr.pcDefault;function Sk(r){var s=r.split(/-(?!$)/);r=s[s.length-1];for(var u,l,p,m,b=0;b<s.length-1;b++){var _=s[b];if(/^(cmd|meta|m)$/i.test(_))m=!0;else if(/^a(lt)?$/i.test(_))u=!0;else if(/^(c|ctrl|control)$/i.test(_))l=!0;else if(/^s(hift)?$/i.test(_))p=!0;else throw new Error("Unrecognized modifier name: "+_)}return u&&(r="Alt-"+r),l&&(r="Ctrl-"+r),m&&(r="Cmd-"+r),p&&(r="Shift-"+r),r}function Tk(r){var s={};for(var u in r)if(r.hasOwnProperty(u)){var l=r[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete r[u];continue}for(var p=pi(u.split(" "),Sk),m=0;m<p.length;m++){var b=void 0,_=void 0;m==p.length-1?(_=p.join(" "),b=l):(_=p.slice(0,m+1).join(" "),b="...");var k=s[_];if(!k)s[_]=b;else if(k!=b)throw new Error("Inconsistent bindings for "+_)}delete r[u]}for(var w in s)r[w]=s[w];return r}function Ni(r,s,u,l){s=Ic(s);var p=s.call?s.call(r,l):s[r];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&u(p))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Ni(r,s.fallthrough,u,l);for(var m=0;m<s.fallthrough.length;m++){var b=Ni(r,s.fallthrough[m],u,l);if(b)return b}}}function kv(r){var s=typeof r=="string"?r:co[r.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function xv(r,s,u){var l=r;return s.altKey&&l!="Alt"&&(r="Alt-"+r),(G?s.metaKey:s.ctrlKey)&&l!="Ctrl"&&(r="Ctrl-"+r),(G?s.ctrlKey:s.metaKey)&&l!="Mod"&&(r="Cmd-"+r),!u&&s.shiftKey&&l!="Shift"&&(r="Shift-"+r),r}function wv(r,s){if(C&&r.keyCode==34&&r.char)return!1;var u=co[r.keyCode];return u==null||r.altGraphKey?!1:(r.keyCode==3&&r.code&&(u=r.code),xv(u,r,s))}function Ic(r){return typeof r=="string"?Rr[r]:r}function Oi(r,s){for(var u=r.doc.sel.ranges,l=[],p=0;p<u.length;p++){for(var m=s(u[p]);l.length&&ee(m.from,ze(l).to)<=0;){var b=l.pop();if(ee(b.from,m.from)<0){m.from=b.from;break}}l.push(m)}an(r,function(){for(var _=l.length-1;_>=0;_--)Ti(r.doc,"",l[_].from,l[_].to,"+delete");wi(r)})}function Tf(r,s,u){var l=ar(r.text,s+u,u);return l<0||l>r.text.length?null:l}function Df(r,s,u){var l=Tf(r,s.ch,u);return l==null?null:new B(s.line,l,u<0?"after":"before")}function Nf(r,s,u,l,p){if(r){s.doc.direction=="rtl"&&(p=-p);var m=Cn(u,s.doc.direction);if(m){var b=p<0?ze(m):m[0],_=p<0==(b.level==1),k=_?"after":"before",w;if(b.level>0||s.doc.direction=="rtl"){var I=Ei(s,u);w=p<0?u.text.length-1:0;var M=hr(s,I,w).top;w=ft(function(W){return hr(s,I,W).top==M},p<0==(b.level==1)?b.from:b.to-1,w),k=="before"&&(w=Tf(u,w,1))}else w=p<0?b.to:b.from;return new B(l,w,k)}}return new B(l,p<0?u.text.length:0,p<0?"before":"after")}function Dk(r,s,u,l){var p=Cn(s,r.doc.direction);if(!p)return Df(s,u,l);u.ch>=s.text.length?(u.ch=s.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=$n(p,u.ch,u.sticky),b=p[m];if(r.doc.direction=="ltr"&&b.level%2==0&&(l>0?b.to>u.ch:b.from<u.ch))return Df(s,u,l);var _=function(me,Ee){return Tf(s,me instanceof B?me.ch:me,Ee)},k,w=function(me){return r.options.lineWrapping?(k=k||Ei(r,s),Tm(r,s,k,me)):{begin:0,end:s.text.length}},I=w(u.sticky=="before"?_(u,-1):u.ch);if(r.doc.direction=="rtl"||b.level==1){var M=b.level==1==l<0,W=_(u,M?1:-1);if(W!=null&&(M?W<=b.to&&W<=I.end:W>=b.from&&W>=I.begin)){var z=M?"before":"after";return new B(u.line,W,z)}}var ne=function(me,Ee,ve){for(var xe=function(rt,Ot){return Ot?new B(u.line,_(rt,1),"before"):new B(u.line,rt,"after")};me>=0&&me<p.length;me+=Ee){var Se=p[me],Ae=Ee>0==(Se.level!=1),Re=Ae?ve.begin:_(ve.end,-1);if(Se.from<=Re&&Re<Se.to||(Re=Ae?Se.from:_(Se.to,-1),ve.begin<=Re&&Re<ve.end))return xe(Re,Ae)}},ce=ne(m+l,l,I);if(ce)return ce;var ue=l>0?I.end:_(I.begin,-1);return ue!=null&&!(l>0&&ue==s.text.length)&&(ce=ne(l>0?0:p.length-1,l,w(ue)),ce)?ce:null}var Zs={selectAll:cv,singleSelection:function(r){return r.setSelection(r.getCursor("anchor"),r.getCursor("head"),Be)},killLine:function(r){return Oi(r,function(s){if(s.empty()){var u=we(r.doc,s.head.line).text.length;return s.head.ch==u&&s.head.line<r.lastLine()?{from:s.head,to:B(s.head.line+1,0)}:{from:s.head,to:B(s.head.line,u)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:Oe(r.doc,B(s.to().line+1,0))}})},delLineLeft:function(r){return Oi(r,function(s){return{from:B(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,l=r.coordsChar({left:0,top:u},"div");return{from:l,to:s.from()}})},delWrappedLineRight:function(r){return Oi(r,function(s){var u=r.charCoords(s.head,"div").top+5,l=r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div");return{from:s.from(),to:l}})},undo:function(r){return r.undo()},redo:function(r){return r.redo()},undoSelection:function(r){return r.undoSelection()},redoSelection:function(r){return r.redoSelection()},goDocStart:function(r){return r.extendSelection(B(r.firstLine(),0))},goDocEnd:function(r){return r.extendSelection(B(r.lastLine()))},goLineStart:function(r){return r.extendSelectionsBy(function(s){return $v(r,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(r){return r.extendSelectionsBy(function(s){return Cv(r,s.head)},{origin:"+move",bias:1})},goLineEnd:function(r){return r.extendSelectionsBy(function(s){return Nk(r,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:r.display.lineDiv.offsetWidth+100,top:u},"div")},Jr)},goLineLeft:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5;return r.coordsChar({left:0,top:u},"div")},Jr)},goLineLeftSmart:function(r){return r.extendSelectionsBy(function(s){var u=r.cursorCoords(s.head,"div").top+5,l=r.coordsChar({left:0,top:u},"div");return l.ch<r.getLine(l.line).search(/\S/)?Cv(r,s.head):l},Jr)},goLineUp:function(r){return r.moveV(-1,"line")},goLineDown:function(r){return r.moveV(1,"line")},goPageUp:function(r){return r.moveV(-1,"page")},goPageDown:function(r){return r.moveV(1,"page")},goCharLeft:function(r){return r.moveH(-1,"char")},goCharRight:function(r){return r.moveH(1,"char")},goColumnLeft:function(r){return r.moveH(-1,"column")},goColumnRight:function(r){return r.moveH(1,"column")},goWordLeft:function(r){return r.moveH(-1,"word")},goGroupRight:function(r){return r.moveH(1,"group")},goGroupLeft:function(r){return r.moveH(-1,"group")},goWordRight:function(r){return r.moveH(1,"word")},delCharBefore:function(r){return r.deleteH(-1,"codepoint")},delCharAfter:function(r){return r.deleteH(1,"char")},delWordBefore:function(r){return r.deleteH(-1,"word")},delWordAfter:function(r){return r.deleteH(1,"word")},delGroupBefore:function(r){return r.deleteH(-1,"group")},delGroupAfter:function(r){return r.deleteH(1,"group")},indentAuto:function(r){return r.indentSelection("smart")},indentMore:function(r){return r.indentSelection("add")},indentLess:function(r){return r.indentSelection("subtract")},insertTab:function(r){return r.replaceSelection(" ")},insertSoftTab:function(r){for(var s=[],u=r.listSelections(),l=r.options.tabSize,p=0;p<u.length;p++){var m=u[p].from(),b=he(r.getLine(m.line),m.ch,l);s.push(sr(l-b%l))}r.replaceSelections(s)},defaultTab:function(r){r.somethingSelected()?r.indentSelection("add"):r.execCommand("insertTab")},transposeChars:function(r){return an(r,function(){for(var s=r.listSelections(),u=[],l=0;l<s.length;l++)if(s[l].empty()){var p=s[l].head,m=we(r.doc,p.line).text;if(m){if(p.ch==m.length&&(p=new B(p.line,p.ch-1)),p.ch>0)p=new B(p.line,p.ch+1),r.replaceRange(m.charAt(p.ch-1)+m.charAt(p.ch-2),B(p.line,p.ch-2),p,"+transpose");else if(p.line>r.doc.first){var b=we(r.doc,p.line-1).text;b&&(p=new B(p.line,1),r.replaceRange(m.charAt(0)+r.doc.lineSeparator()+b.charAt(b.length-1),B(p.line-1,b.length-1),p,"+transpose"))}}u.push(new Ye(p,p))}r.setSelections(u)})},newlineAndIndent:function(r){return an(r,function(){for(var s=r.listSelections(),u=s.length-1;u>=0;u--)r.replaceRange(r.doc.lineSeparator(),s[u].anchor,s[u].head,"+input");s=r.listSelections();for(var l=0;l<s.length;l++)r.indentLine(s[l].from().line,null,!0);wi(r)})},openLine:function(r){return r.replaceSelection(`
|
|
299
|
+
`,"start")},toggleOverwrite:function(r){return r.toggleOverwrite()}};function $v(r,s){var u=we(r.doc,s),l=jn(u);return l!=u&&(s=Qe(l)),Nf(!0,r,l,s,1)}function Nk(r,s){var u=we(r.doc,s),l=h2(u);return l!=u&&(s=Qe(l)),Nf(!0,r,u,s,-1)}function Cv(r,s){var u=$v(r,s.line),l=we(r.doc,u.line),p=Cn(l,r.doc.direction);if(!p||p[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),b=s.line==u.line&&s.ch<=m&&s.ch;return B(u.line,b?0:m,u.sticky)}return u}function Lc(r,s,u){if(typeof s=="string"&&(s=Zs[s],!s))return!1;r.display.input.ensurePolled();var l=r.display.shift,p=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),u&&(r.display.shift=!1),p=s(r)!=Ve}finally{r.display.shift=l,r.state.suppressEdits=!1}return p}function Ok(r,s,u){for(var l=0;l<r.state.keyMaps.length;l++){var p=Ni(s,r.state.keyMaps[l],u,r);if(p)return p}return r.options.extraKeys&&Ni(s,r.options.extraKeys,u,r)||Ni(s,r.options.keyMap,u,r)}var Ik=new ke;function Xs(r,s,u,l){var p=r.state.keySeq;if(p){if(kv(s))return"handled";if(/\'$/.test(s)?r.state.keySeq=null:Ik.set(50,function(){r.state.keySeq==p&&(r.state.keySeq=null,r.display.input.reset())}),Av(r,p+" "+s,u,l))return!0}return Av(r,s,u,l)}function Av(r,s,u,l){var p=Ok(r,s,l);return p=="multi"&&(r.state.keySeq=s),p=="handled"&&Tt(r,"keyHandled",r,s,u),(p=="handled"||p=="multi")&&(Bt(u),df(r)),!!p}function Sv(r,s){var u=wv(s,!0);return u?s.shiftKey&&!r.state.keySeq?Xs(r,"Shift-"+u,s,function(l){return Lc(r,l,!0)})||Xs(r,u,s,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Lc(r,l)}):Xs(r,u,s,function(l){return Lc(r,l)}):!1}function Lk(r,s,u){return Xs(r,"'"+u+"'",s,function(l){return Lc(r,l,!0)})}var Of=null;function Tv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&(s.curOp.focus=pe(fe(s)),!pt(s,r))){d&&h<11&&r.keyCode==27&&(r.returnValue=!1);var u=r.keyCode;s.display.shift=u==16||r.shiftKey;var l=Sv(s,r);C&&(Of=l?u:null,!l&&u==88&&!lr&&(Y?r.metaKey:r.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!Y&&!l&&u==46&&r.shiftKey&&!r.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&Fk(s)}}function Fk(r){var s=r.display.lineDiv;$e(s,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(_e(s,"CodeMirror-crosshair"),Pt(document,"keyup",u),Pt(document,"mouseover",u))}be(document,"keyup",u),be(document,"mouseover",u)}function Dv(r){r.keyCode==16&&(this.doc.sel.shift=!1),pt(this,r)}function Nv(r){var s=this;if(!(r.target&&r.target!=s.display.input.getField())&&!(Lr(s.display,r)||pt(s,r)||r.ctrlKey&&!r.altKey||Y&&r.metaKey)){var u=r.keyCode,l=r.charCode;if(C&&u==Of){Of=null,Bt(r);return}if(!(C&&(!r.which||r.which<10)&&Sv(s,r))){var p=String.fromCharCode(l??u);p!="\b"&&(Lk(s,r,p)||s.display.input.onKeyPress(r))}}}var Rk=400,If=function(r,s,u){this.time=r,this.pos=s,this.button=u};If.prototype.compare=function(r,s,u){return this.time+Rk>r&&ee(s,this.pos)==0&&u==this.button};var Ks,ea;function Mk(r,s){var u=+new Date;return ea&&ea.compare(u,r,s)?(Ks=ea=null,"triple"):Ks&&Ks.compare(u,r,s)?(ea=new If(u,r,s),Ks=null,"double"):(Ks=new If(u,r,s),ea=null,"single")}function Ov(r){var s=this,u=s.display;if(!(pt(s,r)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=r.shiftKey,Lr(u,r)){v||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Lf(s,r)){var l=Io(s,r),p=Cs(r),m=l?Mk(l,p):"single";de(s).focus(),p==1&&s.state.selectingText&&s.state.selectingText(r),!(l&&qk(s,p,l,m,r))&&(p==1?l?Bk(s,l,m,r):Yt(r)==u.scroller&&Bt(r):p==2?(l&&Sc(s.doc,l),setTimeout(function(){return u.input.focus()},20)):p==3&&(Q?s.display.input.onContextMenu(r):hf(s)))}}}function qk(r,s,u,l,p){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(s==1?"Left":s==2?"Middle":"Right")+m,Xs(r,xv(m,p),p,function(b){if(typeof b=="string"&&(b=Zs[b]),!b)return!1;var _=!1;try{r.isReadOnly()&&(r.state.suppressEdits=!0),_=b(r,u)!=Ve}finally{r.state.suppressEdits=!1}return _})}function Pk(r,s,u){var l=r.getOption("configureMouse"),p=l?l(r,s,u):{};if(p.unit==null){var m=P?u.shiftKey&&u.metaKey:u.altKey;p.unit=m?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(p.extend==null||r.doc.extend)&&(p.extend=r.doc.extend||u.shiftKey),p.addNew==null&&(p.addNew=Y?u.metaKey:u.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(Y?u.altKey:u.ctrlKey)),p}function Bk(r,s,u,l){d?setTimeout(ge(Im,r),0):r.curOp.focus=pe(fe(r));var p=Pk(r,u,l),m=r.doc.sel,b;r.options.dragDrop&&Hu&&!r.isReadOnly()&&u=="single"&&(b=m.contains(s))>-1&&(ee((b=m.ranges[b]).from(),s)<0||s.xRel>0)&&(ee(b.to(),s)>0||s.xRel<0)?Vk(r,l,s,p):jk(r,l,s,p)}function Vk(r,s,u,l){var p=r.display,m=!1,b=Dt(r,function(w){v&&(p.scroller.draggable=!1),r.state.draggingText=!1,r.state.delayingBlurEvent&&(r.hasFocus()?r.state.delayingBlurEvent=!1:hf(r)),Pt(p.wrapper.ownerDocument,"mouseup",b),Pt(p.wrapper.ownerDocument,"mousemove",_),Pt(p.scroller,"dragstart",k),Pt(p.scroller,"drop",b),m||(Bt(w),l.addNew||Sc(r.doc,u,null,null,l.extend),v&&!S||d&&h==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),_=function(w){m=m||Math.abs(s.clientX-w.clientX)+Math.abs(s.clientY-w.clientY)>=10},k=function(){return m=!0};v&&(p.scroller.draggable=!0),r.state.draggingText=b,b.copy=!l.moveOnDrag,be(p.wrapper.ownerDocument,"mouseup",b),be(p.wrapper.ownerDocument,"mousemove",_),be(p.scroller,"dragstart",k),be(p.scroller,"drop",b),r.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function Iv(r,s,u){if(u=="char")return new Ye(s,s);if(u=="word")return r.findWordAt(s);if(u=="line")return new Ye(B(s.line,0),Oe(r.doc,B(s.line+1,0)));var l=u(r,s);return new Ye(l.from,l.to)}function jk(r,s,u,l){d&&hf(r);var p=r.display,m=r.doc;Bt(s);var b,_,k=m.sel,w=k.ranges;if(l.addNew&&!l.extend?(_=m.sel.contains(u),_>-1?b=w[_]:b=new Ye(u,u)):(b=m.sel.primary(),_=m.sel.primIndex),l.unit=="rectangle")l.addNew||(b=new Ye(u,u)),u=Io(r,s,!0,!0),_=-1;else{var I=Iv(r,u,l.unit);l.extend?b=Af(b,I.anchor,I.head,l.extend):b=I}l.addNew?_==-1?(_=w.length,Vt(m,zn(r,w.concat([b]),_),{scroll:!1,origin:"*mouse"})):w.length>1&&w[_].empty()&&l.unit=="char"&&!l.extend?(Vt(m,zn(r,w.slice(0,_).concat(w.slice(_+1)),0),{scroll:!1,origin:"*mouse"}),k=m.sel):Sf(m,_,b,So):(_=0,Vt(m,new mn([b],0),So),k=m.sel);var M=u;function W(ve){if(ee(M,ve)!=0)if(M=ve,l.unit=="rectangle"){for(var xe=[],Se=r.options.tabSize,Ae=he(we(m,u.line).text,u.ch,Se),Re=he(we(m,ve.line).text,ve.ch,Se),rt=Math.min(Ae,Re),Ot=Math.max(Ae,Re),ut=Math.min(u.line,ve.line),cn=Math.min(r.lastLine(),Math.max(u.line,ve.line));ut<=cn;ut++){var Xt=we(m,ut).text,bt=ir(Xt,rt,Se);rt==Ot?xe.push(new Ye(B(ut,bt),B(ut,bt))):Xt.length>bt&&xe.push(new Ye(B(ut,bt),B(ut,ir(Xt,Ot,Se))))}xe.length||xe.push(new Ye(u,u)),Vt(m,zn(r,k.ranges.slice(0,_).concat(xe),_),{origin:"*mouse",scroll:!1}),r.scrollIntoView(ve)}else{var Kt=b,Mt=Iv(r,ve,l.unit),Ct=Kt.anchor,Et;ee(Mt.anchor,Ct)>0?(Et=Mt.head,Ct=$t(Kt.from(),Mt.anchor)):(Et=Mt.anchor,Ct=We(Kt.to(),Mt.head));var ht=k.ranges.slice(0);ht[_]=Uk(r,new Ye(Oe(m,Ct),Et)),Vt(m,zn(r,ht,_),So)}}var z=p.wrapper.getBoundingClientRect(),ne=0;function ce(ve){var xe=++ne,Se=Io(r,ve,!0,l.unit=="rectangle");if(Se)if(ee(Se,M)!=0){r.curOp.focus=pe(fe(r)),W(Se);var Ae=kc(p,m);(Se.line>=Ae.to||Se.line<Ae.from)&&setTimeout(Dt(r,function(){ne==xe&&ce(ve)}),150)}else{var Re=ve.clientY<z.top?-20:ve.clientY>z.bottom?20:0;Re&&setTimeout(Dt(r,function(){ne==xe&&(p.scroller.scrollTop+=Re,ce(ve))}),50)}}function ue(ve){r.state.selectingText=!1,ne=1/0,ve&&(Bt(ve),p.input.focus()),Pt(p.wrapper.ownerDocument,"mousemove",me),Pt(p.wrapper.ownerDocument,"mouseup",Ee),m.history.lastSelOrigin=null}var me=Dt(r,function(ve){ve.buttons===0||!Cs(ve)?ue(ve):ce(ve)}),Ee=Dt(r,ue);r.state.selectingText=Ee,be(p.wrapper.ownerDocument,"mousemove",me),be(p.wrapper.ownerDocument,"mouseup",Ee)}function Uk(r,s){var u=s.anchor,l=s.head,p=we(r.doc,u.line);if(ee(u,l)==0&&u.sticky==l.sticky)return s;var m=Cn(p);if(!m)return s;var b=$n(m,u.ch,u.sticky),_=m[b];if(_.from!=u.ch&&_.to!=u.ch)return s;var k=b+(_.from==u.ch==(_.level!=1)?0:1);if(k==0||k==m.length)return s;var w;if(l.line!=u.line)w=(l.line-u.line)*(r.doc.direction=="ltr"?1:-1)>0;else{var I=$n(m,l.ch,l.sticky),M=I-b||(l.ch-u.ch)*(_.level==1?-1:1);I==k-1||I==k?w=M<0:w=M>0}var W=m[k+(w?-1:0)],z=w==(W.level==1),ne=z?W.from:W.to,ce=z?"after":"before";return u.ch==ne&&u.sticky==ce?s:new Ye(new B(u.line,ne,ce),l)}function Lv(r,s,u,l){var p,m;if(s.touches)p=s.touches[0].clientX,m=s.touches[0].clientY;else try{p=s.clientX,m=s.clientY}catch{return!1}if(p>=Math.floor(r.display.gutters.getBoundingClientRect().right))return!1;l&&Bt(s);var b=r.display,_=b.lineDiv.getBoundingClientRect();if(m>_.bottom||!zt(r,u))return $s(s);m-=_.top-b.viewOffset;for(var k=0;k<r.display.gutterSpecs.length;++k){var w=b.gutters.childNodes[k];if(w&&w.getBoundingClientRect().right>=p){var I=fr(r.doc,m),M=r.display.gutterSpecs[k];return it(r,u,r,I,M.className,s),$s(s)}}}function Lf(r,s){return Lv(r,s,"gutterClick",!0)}function Fv(r,s){Lr(r.display,s)||zk(r,s)||pt(r,s,"contextmenu")||Q||r.display.input.onContextMenu(s)}function zk(r,s){return zt(r,"gutterContextMenu")?Lv(r,s,"gutterContextMenu",!1):!1}function Rv(r){r.display.wrapper.className=r.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+r.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ls(r)}var Ii={toString:function(){return"CodeMirror.Init"}},Mv={},Fc={};function Hk(r){var s=r.optionHandlers;function u(l,p,m,b){r.defaults[l]=p,m&&(s[l]=b?function(_,k,w){w!=Ii&&m(_,k,w)}:m)}r.defineOption=u,r.Init=Ii,u("value","",function(l,p){return l.setValue(p)},!0),u("mode",null,function(l,p){l.doc.modeOption=p,wf(l)},!0),u("indentUnit",2,wf,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){js(l),Ls(l),Jt(l)},!0),u("lineSeparator",null,function(l,p){if(l.doc.lineSep=p,!!p){var m=[],b=l.doc.first;l.doc.iter(function(k){for(var w=0;;){var I=k.text.indexOf(p,w);if(I==-1)break;w=I+p.length,m.push(B(b,I))}b++});for(var _=m.length-1;_>=0;_--)Ti(l.doc,p,m[_],B(m[_].line,m[_].ch+p.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,p,m){l.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),m!=Ii&&l.refresh()}),u("specialCharPlaceholder",E2,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",V?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,p){return l.getInputField().spellcheck=p},!0),u("autocorrect",!1,function(l,p){return l.getInputField().autocorrect=p},!0),u("autocapitalize",!1,function(l,p){return l.getInputField().autocapitalize=p},!0),u("rtlMoveVisually",!U),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Rv(l),Vs(l)},!0),u("keyMap","default",function(l,p,m){var b=Ic(p),_=m!=Ii&&Ic(m);_&&_.detach&&_.detach(l,b),b.attach&&b.attach(l,_||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Wk,!0),u("gutters",[],function(l,p){l.display.gutterSpecs=kf(p,l.options.lineNumbers),Vs(l)},!0),u("fixedGutter",!0,function(l,p){l.display.gutters.style.left=p?uf(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return $i(l)},!0),u("scrollbarStyle","native",function(l){Pm(l),$i(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,p){l.display.gutterSpecs=kf(l.options.gutters,p),Vs(l)},!0),u("firstLineNumber",1,Vs,!0),u("lineNumberFormatter",function(l){return l},Vs,!0),u("showCursorWhenSelecting",!1,Fs,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,p){p=="nocursor"&&(xi(l),l.display.input.blur()),l.display.input.readOnlyChanged(p)}),u("screenReaderLabel",null,function(l,p){p=p===""?null:p,l.display.input.screenReaderLabelChanged(p)}),u("disableInput",!1,function(l,p){p||l.display.input.reset()},!0),u("dragDrop",!0,Gk),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Fs,!0),u("singleCursorHeightPerLine",!0,Fs,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,js,!0),u("addModeClass",!1,js,!0),u("pollInterval",100),u("undoDepth",200,function(l,p){return l.doc.history.undoDepth=p}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,js,!0),u("moveInputWithCursor",!0,function(l,p){p||l.display.input.resetPosition()}),u("tabindex",null,function(l,p){return l.display.input.getField().tabIndex=p||""}),u("autofocus",null),u("direction","ltr",function(l,p){return l.doc.setDirection(p)},!0),u("phrases",null)}function Gk(r,s,u){var l=u&&u!=Ii;if(!s!=!l){var p=r.display.dragFunctions,m=s?be:Pt;m(r.display.scroller,"dragstart",p.start),m(r.display.scroller,"dragenter",p.enter),m(r.display.scroller,"dragover",p.over),m(r.display.scroller,"dragleave",p.leave),m(r.display.scroller,"drop",p.drop)}}function Wk(r){r.options.lineWrapping?($e(r.display.wrapper,"CodeMirror-wrap"),r.display.sizer.style.minWidth="",r.display.sizerWidth=null):(_e(r.display.wrapper,"CodeMirror-wrap"),Ku(r)),ff(r),Jt(r),Ls(r),setTimeout(function(){return $i(r)},100)}function lt(r,s){var u=this;if(!(this instanceof lt))return new lt(r,s);this.options=s=s?ye(s):{},ye(Mv,s,!1);var l=s.value;typeof l=="string"?l=new Zt(l,s.mode,null,s.lineSeparator,s.direction):s.mode&&(l.modeOption=s.mode),this.doc=l;var p=new lt.inputStyles[s.inputStyle](this),m=this.display=new sk(r,l,p,s);m.wrapper.CodeMirror=this,Rv(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pm(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ke,keySeq:null,specialChars:null},s.autofocus&&!V&&m.input.focus(),d&&h<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Qk(this),$k(),Mo(this),this.curOp.forceUpdate=!0,Ym(this,l),s.autofocus&&!V||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&mf(u)},20):xi(this);for(var b in Fc)Fc.hasOwnProperty(b)&&Fc[b](this,s[b],Ii);jm(this),s.finishInit&&s.finishInit(this);for(var _=0;_<Ff.length;++_)Ff[_](this);qo(this),v&&s.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}lt.defaults=Mv,lt.optionHandlers=Fc;function Qk(r){var s=r.display;be(s.scroller,"mousedown",Dt(r,Ov)),d&&h<11?be(s.scroller,"dblclick",Dt(r,function(k){if(!pt(r,k)){var w=Io(r,k);if(!(!w||Lf(r,k)||Lr(r.display,k))){Bt(k);var I=r.findWordAt(w);Sc(r.doc,I.anchor,I.head)}}})):be(s.scroller,"dblclick",function(k){return pt(r,k)||Bt(k)}),be(s.scroller,"contextmenu",function(k){return Fv(r,k)}),be(s.input.getField(),"contextmenu",function(k){s.scroller.contains(k.target)||Fv(r,k)});var u,l={end:0};function p(){s.activeTouch&&(u=setTimeout(function(){return s.activeTouch=null},1e3),l=s.activeTouch,l.end=+new Date)}function m(k){if(k.touches.length!=1)return!1;var w=k.touches[0];return w.radiusX<=1&&w.radiusY<=1}function b(k,w){if(w.left==null)return!0;var I=w.left-k.left,M=w.top-k.top;return I*I+M*M>20*20}be(s.scroller,"touchstart",function(k){if(!pt(r,k)&&!m(k)&&!Lf(r,k)){s.input.ensurePolled(),clearTimeout(u);var w=+new Date;s.activeTouch={start:w,moved:!1,prev:w-l.end<=300?l:null},k.touches.length==1&&(s.activeTouch.left=k.touches[0].pageX,s.activeTouch.top=k.touches[0].pageY)}}),be(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),be(s.scroller,"touchend",function(k){var w=s.activeTouch;if(w&&!Lr(s,k)&&w.left!=null&&!w.moved&&new Date-w.start<300){var I=r.coordsChar(s.activeTouch,"page"),M;!w.prev||b(w,w.prev)?M=new Ye(I,I):!w.prev.prev||b(w,w.prev.prev)?M=r.findWordAt(I):M=new Ye(B(I.line,0),Oe(r.doc,B(I.line+1,0))),r.setSelection(M.anchor,M.head),r.focus(),Bt(k)}p()}),be(s.scroller,"touchcancel",p),be(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Ms(r,s.scroller.scrollTop),Fo(r,s.scroller.scrollLeft,!0),it(r,"scroll",r))}),be(s.scroller,"mousewheel",function(k){return Hm(r,k)}),be(s.scroller,"DOMMouseScroll",function(k){return Hm(r,k)}),be(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(k){pt(r,k)||Sr(k)},over:function(k){pt(r,k)||(wk(r,k),Sr(k))},start:function(k){return xk(r,k)},drop:Dt(r,kk),leave:function(k){pt(r,k)||bv(r)}};var _=s.input.getField();be(_,"keyup",function(k){return Dv.call(r,k)}),be(_,"keydown",Dt(r,Tv)),be(_,"keypress",Dt(r,Nv)),be(_,"focus",function(k){return mf(r,k)}),be(_,"blur",function(k){return xi(r,k)})}var Ff=[];lt.defineInitHook=function(r){return Ff.push(r)};function ta(r,s,u,l){var p=r.doc,m;u==null&&(u="add"),u=="smart"&&(p.mode.indent?m=Ts(r,s).state:u="prev");var b=r.options.tabSize,_=we(p,s),k=he(_.text,null,b);_.stateAfter&&(_.stateAfter=null);var w=_.text.match(/^\s*/)[0],I;if(!l&&!/\S/.test(_.text))I=0,u="not";else if(u=="smart"&&(I=p.mode.indent(m,_.text.slice(w.length),_.text),I==Ve||I>150)){if(!l)return;u="prev"}u=="prev"?s>p.first?I=he(we(p,s-1).text,null,b):I=0:u=="add"?I=k+r.options.indentUnit:u=="subtract"?I=k-r.options.indentUnit:typeof u=="number"&&(I=k+u),I=Math.max(0,I);var M="",W=0;if(r.options.indentWithTabs)for(var z=Math.floor(I/b);z;--z)W+=b,M+=" ";if(W<I&&(M+=sr(I-W)),M!=w)return Ti(p,M,B(s,0),B(s,w.length),"+input"),_.stateAfter=null,!0;for(var ne=0;ne<p.sel.ranges.length;ne++){var ce=p.sel.ranges[ne];if(ce.head.line==s&&ce.head.ch<w.length){var ue=B(s,w.length);Sf(p,ne,new Ye(ue,ue));break}}}var Hn=null;function Rc(r){Hn=r}function Rf(r,s,u,l,p){var m=r.doc;r.display.shift=!1,l||(l=m.sel);var b=+new Date-200,_=p=="paste"||r.state.pasteIncoming>b,k=As(s),w=null;if(_&&l.ranges.length>1)if(Hn&&Hn.text.join(`
|
|
300
|
+
`)==s){if(l.ranges.length%Hn.text.length==0){w=[];for(var I=0;I<Hn.text.length;I++)w.push(m.splitLines(Hn.text[I]))}}else k.length==l.ranges.length&&r.options.pasteLinesPerSelection&&(w=pi(k,function(me){return[me]}));for(var M=r.curOp.updateInput,W=l.ranges.length-1;W>=0;W--){var z=l.ranges[W],ne=z.from(),ce=z.to();z.empty()&&(u&&u>0?ne=B(ne.line,ne.ch-u):r.state.overwrite&&!_?ce=B(ce.line,Math.min(we(m,ce.line).text.length,ce.ch+ze(k).length)):_&&Hn&&Hn.lineWise&&Hn.text.join(`
|
|
301
|
+
`)==k.join(`
|
|
302
|
+
`)&&(ne=ce=B(ne.line,0)));var ue={from:ne,to:ce,text:w?w[W%w.length]:k,origin:p||(_?"paste":r.state.cutIncoming>b?"cut":"+input")};Si(r.doc,ue),Tt(r,"inputRead",r,ue)}s&&!_&&Pv(r,s),wi(r),r.curOp.updateInput<2&&(r.curOp.updateInput=M),r.curOp.typing=!0,r.state.pasteIncoming=r.state.cutIncoming=-1}function qv(r,s){var u=r.clipboardData&&r.clipboardData.getData("Text");if(u)return r.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&an(s,function(){return Rf(s,u,0,null,"paste")}),!0}function Pv(r,s){if(!(!r.options.electricChars||!r.options.smartIndent))for(var u=r.doc.sel,l=u.ranges.length-1;l>=0;l--){var p=u.ranges[l];if(!(p.head.ch>100||l&&u.ranges[l-1].head.line==p.head.line)){var m=r.getModeAt(p.head),b=!1;if(m.electricChars){for(var _=0;_<m.electricChars.length;_++)if(s.indexOf(m.electricChars.charAt(_))>-1){b=ta(r,p.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(we(r.doc,p.head.line).text.slice(0,p.head.ch))&&(b=ta(r,p.head.line,"smart"));b&&Tt(r,"electricInput",r,p.head.line)}}}function Bv(r){for(var s=[],u=[],l=0;l<r.doc.sel.ranges.length;l++){var p=r.doc.sel.ranges[l].head.line,m={anchor:B(p,0),head:B(p+1,0)};u.push(m),s.push(r.getRange(m.anchor,m.head))}return{text:s,ranges:u}}function Mf(r,s,u,l){r.setAttribute("autocorrect",u?"on":"off"),r.setAttribute("autocapitalize",l?"on":"off"),r.setAttribute("spellcheck",!!s)}function Vv(){var r=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=x("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?r.style.width="1000px":r.setAttribute("wrap","off"),T&&(r.style.border="1px solid black"),s}function Yk(r){var s=r.optionHandlers,u=r.helpers={};r.prototype={constructor:r,focus:function(){de(this).focus(),this.display.input.focus()},setOption:function(l,p){var m=this.options,b=m[l];m[l]==p&&l!="mode"||(m[l]=p,s.hasOwnProperty(l)&&Dt(this,s[l])(this,p,b),it(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,p){this.state.keyMaps[p?"push":"unshift"](Ic(l))},removeKeyMap:function(l){for(var p=this.state.keyMaps,m=0;m<p.length;++m)if(p[m]==l||p[m].name==l)return p.splice(m,1),!0},addOverlay:Gt(function(l,p){var m=l.token?l:r.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");ec(this.state.overlays,{mode:m,modeSpec:l,opaque:p&&p.opaque,priority:p&&p.priority||0},function(b){return b.priority}),this.state.modeGen++,Jt(this)}),removeOverlay:Gt(function(l){for(var p=this.state.overlays,m=0;m<p.length;++m){var b=p[m].modeSpec;if(b==l||typeof l=="string"&&b.name==l){p.splice(m,1),this.state.modeGen++,Jt(this);return}}}),indentLine:Gt(function(l,p,m){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),A(this.doc,l)&&ta(this,l,p,m)}),indentSelection:Gt(function(l){for(var p=this.doc.sel.ranges,m=-1,b=0;b<p.length;b++){var _=p[b];if(_.empty())_.head.line>m&&(ta(this,_.head.line,l,!0),m=_.head.line,b==this.doc.sel.primIndex&&wi(this));else{var k=_.from(),w=_.to(),I=Math.max(m,k.line);m=Math.min(this.lastLine(),w.line-(w.ch?0:1))+1;for(var M=I;M<m;++M)ta(this,M,l);var W=this.doc.sel.ranges;k.ch==0&&p.length==W.length&&W[b].from().ch>0&&Sf(this.doc,b,new Ye(k,W[b].to()),Be)}}}),getTokenAt:function(l,p){return Zh(this,l,p)},getLineTokens:function(l,p){return Zh(this,B(l),p,!0)},getTokenTypeAt:function(l){l=Oe(this.doc,l);var p=Qh(this,we(this.doc,l.line)),m=0,b=(p.length-1)/2,_=l.ch,k;if(_==0)k=p[2];else for(;;){var w=m+b>>1;if((w?p[w*2-1]:0)>=_)b=w;else if(p[w*2+1]<_)m=w+1;else{k=p[w*2+2];break}}var I=k?k.indexOf("overlay "):-1;return I<0?k:I==0?null:k.slice(0,I-1)},getModeAt:function(l){var p=this.doc.mode;return p.innerMode?r.innerMode(p,this.getTokenAt(l).state).mode:p},getHelper:function(l,p){return this.getHelpers(l,p)[0]},getHelpers:function(l,p){var m=[];if(!u.hasOwnProperty(p))return m;var b=u[p],_=this.getModeAt(l);if(typeof _[p]=="string")b[_[p]]&&m.push(b[_[p]]);else if(_[p])for(var k=0;k<_[p].length;k++){var w=b[_[p][k]];w&&m.push(w)}else _.helperType&&b[_.helperType]?m.push(b[_.helperType]):b[_.name]&&m.push(b[_.name]);for(var I=0;I<b._global.length;I++){var M=b._global[I];M.pred(_,this)&&De(m,M.val)==-1&&m.push(M.val)}return m},getStateAfter:function(l,p){var m=this.doc;return l=hn(m,l??m.first+m.size-1),Ts(this,l+1,p).state},cursorCoords:function(l,p){var m,b=this.doc.sel.primary();return l==null?m=b.head:typeof l=="object"?m=Oe(this.doc,l):m=l?b.from():b.to(),Un(this,m,p||"page")},charCoords:function(l,p){return yc(this,Oe(this.doc,l),p||"page")},coordsChar:function(l,p){return l=Cm(this,l,p||"page"),af(this,l.left,l.top)},lineAtHeight:function(l,p){return l=Cm(this,{top:l,left:0},p||"page").top,fr(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,p,m){var b=!1,_;if(typeof l=="number"){var k=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>k&&(l=k,b=!0),_=we(this.doc,l)}else _=l;return gc(this,_,{top:0,left:0},p||"page",m||b).top+(b?this.doc.height-Ir(_):0)},defaultTextHeight:function(){return _i(this.display)},defaultCharWidth:function(){return ki(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,p,m,b,_){var k=this.display;l=Un(this,Oe(this.doc,l));var w=l.bottom,I=l.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),k.sizer.appendChild(p),b=="over")w=l.top;else if(b=="above"||b=="near"){var M=Math.max(k.wrapper.clientHeight,this.doc.height),W=Math.max(k.sizer.clientWidth,k.lineSpace.clientWidth);(b=="above"||l.bottom+p.offsetHeight>M)&&l.top>p.offsetHeight?w=l.top-p.offsetHeight:l.bottom+p.offsetHeight<=M&&(w=l.bottom),I+p.offsetWidth>W&&(I=W-p.offsetWidth)}p.style.top=w+"px",p.style.left=p.style.right="",_=="right"?(I=k.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(_=="left"?I=0:_=="middle"&&(I=(k.sizer.clientWidth-p.offsetWidth)/2),p.style.left=I+"px"),m&&G2(this,{left:I,top:w,right:I+p.offsetWidth,bottom:w+p.offsetHeight})},triggerOnKeyDown:Gt(Tv),triggerOnKeyPress:Gt(Nv),triggerOnKeyUp:Dv,triggerOnMouseDown:Gt(Ov),execCommand:function(l){if(Zs.hasOwnProperty(l))return Zs[l].call(null,this)},triggerElectric:Gt(function(l){Pv(this,l)}),findPosH:function(l,p,m,b){var _=1;p<0&&(_=-1,p=-p);for(var k=Oe(this.doc,l),w=0;w<p&&(k=qf(this.doc,k,_,m,b),!k.hitSide);++w);return k},moveH:Gt(function(l,p){var m=this;this.extendSelectionsBy(function(b){return m.display.shift||m.doc.extend||b.empty()?qf(m.doc,b.head,l,p,m.options.rtlMoveVisually):l<0?b.from():b.to()},Jr)}),deleteH:Gt(function(l,p){var m=this.doc.sel,b=this.doc;m.somethingSelected()?b.replaceSelection("",null,"+delete"):Oi(this,function(_){var k=qf(b,_.head,l,p,!1);return l<0?{from:k,to:_.head}:{from:_.head,to:k}})}),findPosV:function(l,p,m,b){var _=1,k=b;p<0&&(_=-1,p=-p);for(var w=Oe(this.doc,l),I=0;I<p;++I){var M=Un(this,w,"div");if(k==null?k=M.left:M.left=k,w=jv(this,M,_,m),w.hitSide)break}return w},moveV:Gt(function(l,p){var m=this,b=this.doc,_=[],k=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(I){if(k)return l<0?I.from():I.to();var M=Un(m,I.head,"div");I.goalColumn!=null&&(M.left=I.goalColumn),_.push(M.left);var W=jv(m,M,l,p);return p=="page"&&I==b.sel.primary()&&gf(m,yc(m,W,"div").top-M.top),W},Jr),_.length)for(var w=0;w<b.sel.ranges.length;w++)b.sel.ranges[w].goalColumn=_[w]}),findWordAt:function(l){var p=this.doc,m=we(p,l.line).text,b=l.ch,_=l.ch;if(m){var k=this.getHelper(l,"wordChars");(l.sticky=="before"||_==m.length)&&b?--b:++_;for(var w=m.charAt(b),I=di(w,k)?function(M){return di(M,k)}:/\s/.test(w)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!di(M)};b>0&&I(m.charAt(b-1));)--b;for(;_<m.length&&I(m.charAt(_));)++_}return new Ye(B(l.line,b),B(l.line,_))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),it(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe(fe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Gt(function(l,p){Rs(this,l,p)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-dr(this)-this.display.barHeight,width:l.scrollWidth-dr(this)-this.display.barWidth,clientHeight:nf(this),clientWidth:No(this)}},scrollIntoView:Gt(function(l,p){l==null?(l={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof l=="number"?l={from:B(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=p||0,l.from.line!=null?W2(this,l):Fm(this,l.from,l.to,l.margin)}),setSize:Gt(function(l,p){var m=this,b=function(k){return typeof k=="number"||/^\d+$/.test(String(k))?k+"px":k};l!=null&&(this.display.wrapper.style.width=b(l)),p!=null&&(this.display.wrapper.style.height=b(p)),this.options.lineWrapping&&xm(this);var _=this.display.viewFrom;this.doc.iter(_,this.display.viewTo,function(k){if(k.widgets){for(var w=0;w<k.widgets.length;w++)if(k.widgets[w].noHScroll){no(m,_,"widget");break}}++_}),this.curOp.forceUpdate=!0,it(this,"refresh",this)}),operation:function(l){return an(this,l)},startOperation:function(){return Mo(this)},endOperation:function(){return qo(this)},refresh:Gt(function(){var l=this.display.cachedTextHeight;Jt(this),this.curOp.forceUpdate=!0,Ls(this),Rs(this,this.doc.scrollLeft,this.doc.scrollTop),Ef(this.display),(l==null||Math.abs(l-_i(this.display))>.5||this.options.lineWrapping)&&ff(this),it(this,"refresh",this)}),swapDoc:Gt(function(l){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Ym(this,l),Ls(this),this.display.input.reset(),Rs(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,p),p}),phrase:function(l){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,l)?p[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ht(r),r.registerHelper=function(l,p,m){u.hasOwnProperty(l)||(u[l]=r[l]={_global:[]}),u[l][p]=m},r.registerGlobalHelper=function(l,p,m,b){r.registerHelper(l,p,b),u[l]._global.push({pred:m,val:b})}}function qf(r,s,u,l,p){var m=s,b=u,_=we(r,s.line),k=p&&r.direction=="rtl"?-u:u;function w(){var Ee=s.line+k;return Ee<r.first||Ee>=r.first+r.size?!1:(s=new B(Ee,s.ch,s.sticky),_=we(r,Ee))}function I(Ee){var ve;if(l=="codepoint"){var xe=_.text.charCodeAt(s.ch+(u>0?0:-1));if(isNaN(xe))ve=null;else{var Se=u>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;ve=new B(s.line,Math.max(0,Math.min(_.text.length,s.ch+u*(Se?2:1))),-u)}}else p?ve=Dk(r.cm,_,s,u):ve=Df(_,s,u);if(ve==null)if(!Ee&&w())s=Nf(p,r.cm,_,s.line,k);else return!1;else s=ve;return!0}if(l=="char"||l=="codepoint")I();else if(l=="column")I(!0);else if(l=="word"||l=="group")for(var M=null,W=l=="group",z=r.cm&&r.cm.getHelper(s,"wordChars"),ne=!0;!(u<0&&!I(!ne));ne=!1){var ce=_.text.charAt(s.ch)||`
|
|
303
|
+
`,ue=di(ce,z)?"w":W&&ce==`
|
|
304
|
+
`?"n":!W||/\s/.test(ce)?null:"p";if(W&&!ne&&!ue&&(ue="s"),M&&M!=ue){u<0&&(u=1,I(),s.sticky="after");break}if(ue&&(M=ue),u>0&&!I(!ne))break}var me=Dc(r,s,m,b,!0);return Ne(m,me)&&(me.hitSide=!0),me}function jv(r,s,u,l){var p=r.doc,m=s.left,b;if(l=="page"){var _=Math.min(r.display.wrapper.clientHeight,de(r).innerHeight||p(r).documentElement.clientHeight),k=Math.max(_-.5*_i(r.display),3);b=(u>0?s.bottom:s.top)+u*k}else l=="line"&&(b=u>0?s.bottom+3:s.top-3);for(var w;w=af(r,m,b),!!w.outside;){if(u<0?b<=0:b>=p.height){w.hitSide=!0;break}b+=u*5}return w}var nt=function(r){this.cm=r,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nt.prototype.init=function(r){var s=this,u=this,l=u.cm,p=u.div=r.lineDiv;p.contentEditable=!0,Mf(p,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(_){for(var k=_.target;k;k=k.parentNode){if(k==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(k.className))break}return!1}be(p,"paste",function(_){!m(_)||pt(l,_)||qv(_,l)||h<=11&&setTimeout(Dt(l,function(){return s.updateFromDOM()}),20)}),be(p,"compositionstart",function(_){s.composing={data:_.data,done:!1}}),be(p,"compositionupdate",function(_){s.composing||(s.composing={data:_.data,done:!1})}),be(p,"compositionend",function(_){s.composing&&(_.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),be(p,"touchstart",function(){return u.forceCompositionEnd()}),be(p,"input",function(){s.composing||s.readFromDOMSoon()});function b(_){if(!(!m(_)||pt(l,_))){if(l.somethingSelected())Rc({lineWise:!1,text:l.getSelections()}),_.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var k=Bv(l);Rc({lineWise:!0,text:k.text}),_.type=="cut"&&l.operation(function(){l.setSelections(k.ranges,0,Be),l.replaceSelection("",null,"cut")})}else return;if(_.clipboardData){_.clipboardData.clearData();var w=Hn.text.join(`
|
|
305
|
+
`);if(_.clipboardData.setData("Text",w),_.clipboardData.getData("Text")==w){_.preventDefault();return}}var I=Vv(),M=I.firstChild;Mf(M),l.display.lineSpace.insertBefore(I,l.display.lineSpace.firstChild),M.value=Hn.text.join(`
|
|
306
|
+
`);var W=pe(p.ownerDocument);Z(M),setTimeout(function(){l.display.lineSpace.removeChild(I),W.focus(),W==p&&u.showPrimarySelection()},50)}}be(p,"copy",b),be(p,"cut",b)},nt.prototype.screenReaderLabelChanged=function(r){r?this.div.setAttribute("aria-label",r):this.div.removeAttribute("aria-label")},nt.prototype.prepareSelection=function(){var r=Om(this.cm,!1);return r.focus=pe(this.div.ownerDocument)==this.div,r},nt.prototype.showSelection=function(r,s){!r||!this.cm.display.view.length||((r.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(r))},nt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nt.prototype.showPrimarySelection=function(){var r=this.getSelection(),s=this.cm,u=s.doc.sel.primary(),l=u.from(),p=u.to();if(s.display.viewTo==s.display.viewFrom||l.line>=s.display.viewTo||p.line<s.display.viewFrom){r.removeAllRanges();return}var m=Mc(s,r.anchorNode,r.anchorOffset),b=Mc(s,r.focusNode,r.focusOffset);if(!(m&&!m.bad&&b&&!b.bad&&ee($t(m,b),l)==0&&ee(We(m,b),p)==0)){var _=s.display.view,k=l.line>=s.display.viewFrom&&Uv(s,l)||{node:_[0].measure.map[2],offset:0},w=p.line<s.display.viewTo&&Uv(s,p);if(!w){var I=_[_.length-1].measure,M=I.maps?I.maps[I.maps.length-1]:I.map;w={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!k||!w){r.removeAllRanges();return}var W=r.rangeCount&&r.getRangeAt(0),z;try{z=J(k.node,k.offset,w.offset,w.node)}catch{}z&&(!i&&s.state.focused?(r.collapse(k.node,k.offset),z.collapsed||(r.removeAllRanges(),r.addRange(z))):(r.removeAllRanges(),r.addRange(z)),W&&r.anchorNode==null?r.addRange(W):i&&this.startGracePeriod()),this.rememberSelection()}},nt.prototype.startGracePeriod=function(){var r=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){r.gracePeriod=!1,r.selectionChanged()&&r.cm.operation(function(){return r.cm.curOp.selectionChanged=!0})},20)},nt.prototype.showMultipleSelections=function(r){R(this.cm.display.cursorDiv,r.cursors),R(this.cm.display.selectionDiv,r.selection)},nt.prototype.rememberSelection=function(){var r=this.getSelection();this.lastAnchorNode=r.anchorNode,this.lastAnchorOffset=r.anchorOffset,this.lastFocusNode=r.focusNode,this.lastFocusOffset=r.focusOffset},nt.prototype.selectionInEditor=function(){var r=this.getSelection();if(!r.rangeCount)return!1;var s=r.getRangeAt(0).commonAncestorContainer;return te(this.div,s)},nt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nt.prototype.blur=function(){this.div.blur()},nt.prototype.getField=function(){return this.div},nt.prototype.supportsTouch=function(){return!0},nt.prototype.receivedFocus=function(){var r=this,s=this;this.selectionInEditor()?setTimeout(function(){return r.pollSelection()},20):an(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function u(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nt.prototype.selectionChanged=function(){var r=this.getSelection();return r.anchorNode!=this.lastAnchorNode||r.anchorOffset!=this.lastAnchorOffset||r.focusNode!=this.lastFocusNode||r.focusOffset!=this.lastFocusOffset},nt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var r=this.getSelection(),s=this.cm;if(O&&g&&this.cm.display.gutterSpecs.length&&Jk(r.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Mc(s,r.anchorNode,r.anchorOffset),l=Mc(s,r.focusNode,r.focusOffset);u&&l&&an(s,function(){Vt(s.doc,oo(u,l),Be),(u.bad||l.bad)&&(s.curOp.selectionChanged=!0)})}}},nt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var r=this.cm,s=r.display,u=r.doc.sel.primary(),l=u.from(),p=u.to();if(l.ch==0&&l.line>r.firstLine()&&(l=B(l.line-1,we(r.doc,l.line-1).length)),p.ch==we(r.doc,p.line).text.length&&p.line<r.lastLine()&&(p=B(p.line+1,0)),l.line<s.viewFrom||p.line>s.viewTo-1)return!1;var m,b,_;l.line==s.viewFrom||(m=Lo(r,l.line))==0?(b=Qe(s.view[0].line),_=s.view[0].node):(b=Qe(s.view[m].line),_=s.view[m-1].node.nextSibling);var k=Lo(r,p.line),w,I;if(k==s.view.length-1?(w=s.viewTo-1,I=s.lineDiv.lastChild):(w=Qe(s.view[k+1].line)-1,I=s.view[k+1].node.previousSibling),!_)return!1;for(var M=r.doc.splitLines(Zk(r,_,I,b,w)),W=Nr(r.doc,B(b,0),B(w,we(r.doc,w).text.length));M.length>1&&W.length>1;)if(ze(M)==ze(W))M.pop(),W.pop(),w--;else if(M[0]==W[0])M.shift(),W.shift(),b++;else break;for(var z=0,ne=0,ce=M[0],ue=W[0],me=Math.min(ce.length,ue.length);z<me&&ce.charCodeAt(z)==ue.charCodeAt(z);)++z;for(var Ee=ze(M),ve=ze(W),xe=Math.min(Ee.length-(M.length==1?z:0),ve.length-(W.length==1?z:0));ne<xe&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)++ne;if(M.length==1&&W.length==1&&b==l.line)for(;z&&z>l.ch&&Ee.charCodeAt(Ee.length-ne-1)==ve.charCodeAt(ve.length-ne-1);)z--,ne++;M[M.length-1]=Ee.slice(0,Ee.length-ne).replace(/^\u200b+/,""),M[0]=M[0].slice(z).replace(/\u200b+$/,"");var Se=B(b,z),Ae=B(w,W.length?ze(W).length-ne:0);if(M.length>1||M[0]||ee(Se,Ae))return Ti(r.doc,M,Se,Ae,"+input"),!0},nt.prototype.ensurePolled=function(){this.forceCompositionEnd()},nt.prototype.reset=function(){this.forceCompositionEnd()},nt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nt.prototype.readFromDOMSoon=function(){var r=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(r.readDOMTimeout=null,r.composing)if(r.composing.done)r.composing=null;else return;r.updateFromDOM()},80))},nt.prototype.updateFromDOM=function(){var r=this;(this.cm.isReadOnly()||!this.pollContent())&&an(this.cm,function(){return Jt(r.cm)})},nt.prototype.setUneditable=function(r){r.contentEditable="false"},nt.prototype.onKeyPress=function(r){r.charCode==0||this.composing||(r.preventDefault(),this.cm.isReadOnly()||Dt(this.cm,Rf)(this.cm,String.fromCharCode(r.charCode==null?r.keyCode:r.charCode),0))},nt.prototype.readOnlyChanged=function(r){this.div.contentEditable=String(r!="nocursor")},nt.prototype.onContextMenu=function(){},nt.prototype.resetPosition=function(){},nt.prototype.needsContentAttribute=!0;function Uv(r,s){var u=rf(r,s.line);if(!u||u.hidden)return null;var l=we(r.doc,s.line),p=ym(u,l,s.line),m=Cn(l,r.doc.direction),b="left";if(m){var _=$n(m,s.ch);b=_%2?"right":"left"}var k=_m(p.map,s.ch,b);return k.offset=k.collapse=="right"?k.end:k.start,k}function Jk(r){for(var s=r;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function Li(r,s){return s&&(r.bad=!0),r}function Zk(r,s,u,l,p){var m="",b=!1,_=r.doc.lineSeparator(),k=!1;function w(z){return function(ne){return ne.id==z}}function I(){b&&(m+=_,k&&(m+=_),b=k=!1)}function M(z){z&&(I(),m+=z)}function W(z){if(z.nodeType==1){var ne=z.getAttribute("cm-text");if(ne){M(ne);return}var ce=z.getAttribute("cm-marker"),ue;if(ce){var me=r.findMarks(B(l,0),B(p+1,0),w(+ce));me.length&&(ue=me[0].find(0))&&M(Nr(r.doc,ue.from,ue.to).join(_));return}if(z.getAttribute("contenteditable")=="false")return;var Ee=/^(pre|div|p|li|table|br)$/i.test(z.nodeName);if(!/^br$/i.test(z.nodeName)&&z.textContent.length==0)return;Ee&&I();for(var ve=0;ve<z.childNodes.length;ve++)W(z.childNodes[ve]);/^(pre|p)$/i.test(z.nodeName)&&(k=!0),Ee&&(b=!0)}else z.nodeType==3&&M(z.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(s),s!=u;)s=s.nextSibling,k=!1;return m}function Mc(r,s,u){var l;if(s==r.display.lineDiv){if(l=r.display.lineDiv.childNodes[u],!l)return Li(r.clipPos(B(r.display.viewTo-1)),!0);s=null,u=0}else for(l=s;;l=l.parentNode){if(!l||l==r.display.lineDiv)return null;if(l.parentNode&&l.parentNode==r.display.lineDiv)break}for(var p=0;p<r.display.view.length;p++){var m=r.display.view[p];if(m.node==l)return Xk(m,s,u)}}function Xk(r,s,u){var l=r.text.firstChild,p=!1;if(!s||!te(l,s))return Li(B(Qe(r.line),0),!0);if(s==l&&(p=!0,s=l.childNodes[u],u=0,!s)){var m=r.rest?ze(r.rest):r.line;return Li(B(Qe(m),m.text.length),p)}var b=s.nodeType==3?s:null,_=s;for(!b&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(b=s.firstChild,u&&(u=b.nodeValue.length));_.parentNode!=l;)_=_.parentNode;var k=r.measure,w=k.maps;function I(ue,me,Ee){for(var ve=-1;ve<(w?w.length:0);ve++)for(var xe=ve<0?k.map:w[ve],Se=0;Se<xe.length;Se+=3){var Ae=xe[Se+2];if(Ae==ue||Ae==me){var Re=Qe(ve<0?r.line:r.rest[ve]),rt=xe[Se]+Ee;return(Ee<0||Ae!=ue)&&(rt=xe[Se+(Ee?1:0)]),B(Re,rt)}}}var M=I(b,_,u);if(M)return Li(M,p);for(var W=_.nextSibling,z=b?b.nodeValue.length-u:0;W;W=W.nextSibling){if(M=I(W,W.firstChild,0),M)return Li(B(M.line,M.ch-z),p);z+=W.textContent.length}for(var ne=_.previousSibling,ce=u;ne;ne=ne.previousSibling){if(M=I(ne,ne.firstChild,-1),M)return Li(B(M.line,M.ch+ce),p);ce+=ne.textContent.length}}var mt=function(r){this.cm=r,this.prevInput="",this.pollingFast=!1,this.polling=new ke,this.hasSelection=!1,this.composing=null,this.resetting=!1};mt.prototype.init=function(r){var s=this,u=this,l=this.cm;this.createField(r);var p=this.textarea;r.wrapper.insertBefore(this.wrapper,r.wrapper.firstChild),T&&(p.style.width="0px"),be(p,"input",function(){d&&h>=9&&s.hasSelection&&(s.hasSelection=null),u.poll()}),be(p,"paste",function(b){pt(l,b)||qv(b,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(b){if(!pt(l,b)){if(l.somethingSelected())Rc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var _=Bv(l);Rc({lineWise:!0,text:_.text}),b.type=="cut"?l.setSelections(_.ranges,null,Be):(u.prevInput="",p.value=_.text.join(`
|
|
307
|
+
`),Z(p))}else return;b.type=="cut"&&(l.state.cutIncoming=+new Date)}}be(p,"cut",m),be(p,"copy",m),be(r.scroller,"paste",function(b){if(!(Lr(r,b)||pt(l,b))){if(!p.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var _=new Event("paste");_.clipboardData=b.clipboardData,p.dispatchEvent(_)}}),be(r.lineSpace,"selectstart",function(b){Lr(r,b)||Bt(b)}),be(p,"compositionstart",function(){var b=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:b,range:l.markText(b,l.getCursor("to"),{className:"CodeMirror-composing"})}}),be(p,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},mt.prototype.createField=function(r){this.wrapper=Vv(),this.textarea=this.wrapper.firstChild;var s=this.cm.options;Mf(this.textarea,s.spellcheck,s.autocorrect,s.autocapitalize)},mt.prototype.screenReaderLabelChanged=function(r){r?this.textarea.setAttribute("aria-label",r):this.textarea.removeAttribute("aria-label")},mt.prototype.prepareSelection=function(){var r=this.cm,s=r.display,u=r.doc,l=Om(r);if(r.options.moveInputWithCursor){var p=Un(r,u.sel.primary().head,"div"),m=s.wrapper.getBoundingClientRect(),b=s.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,p.top+b.top-m.top)),l.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,p.left+b.left-m.left))}return l},mt.prototype.showSelection=function(r){var s=this.cm,u=s.display;R(u.cursorDiv,r.cursors),R(u.selectionDiv,r.selection),r.teTop!=null&&(this.wrapper.style.top=r.teTop+"px",this.wrapper.style.left=r.teLeft+"px")},mt.prototype.reset=function(r){if(!(this.contextMenuPending||this.composing&&r)){var s=this.cm;if(this.resetting=!0,s.somethingSelected()){this.prevInput="";var u=s.getSelection();this.textarea.value=u,s.state.focused&&Z(this.textarea),d&&h>=9&&(this.hasSelection=u)}else r||(this.prevInput=this.textarea.value="",d&&h>=9&&(this.hasSelection=null));this.resetting=!1}},mt.prototype.getField=function(){return this.textarea},mt.prototype.supportsTouch=function(){return!1},mt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!V||pe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},mt.prototype.blur=function(){this.textarea.blur()},mt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},mt.prototype.receivedFocus=function(){this.slowPoll()},mt.prototype.slowPoll=function(){var r=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){r.poll(),r.cm.state.focused&&r.slowPoll()})},mt.prototype.fastPoll=function(){var r=!1,s=this;s.pollingFast=!0;function u(){var l=s.poll();!l&&!r?(r=!0,s.polling.set(60,u)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,u)},mt.prototype.poll=function(){var r=this,s=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!s.state.focused||Zr(u)&&!l&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var p=u.value;if(p==l&&!s.somethingSelected())return!1;if(d&&h>=9&&this.hasSelection===p||Y&&/[\uf700-\uf7ff]/.test(p))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var m=p.charCodeAt(0);if(m==8203&&!l&&(l=""),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,_=Math.min(l.length,p.length);b<_&&l.charCodeAt(b)==p.charCodeAt(b);)++b;return an(s,function(){Rf(s,p.slice(b),l.length-b,null,r.composing?"*compose":null),p.length>1e3||p.indexOf(`
|
|
308
|
+
`)>-1?u.value=r.prevInput="":r.prevInput=p,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},mt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},mt.prototype.onKeyPress=function(){d&&h>=9&&(this.hasSelection=null),this.fastPoll()},mt.prototype.onContextMenu=function(r){var s=this,u=s.cm,l=u.display,p=s.textarea;s.contextMenuPending&&s.contextMenuPending();var m=Io(u,r),b=l.scroller.scrollTop;if(!m||C)return;var _=u.options.resetSelectionOnContextMenu;_&&u.doc.sel.contains(m)==-1&&Dt(u,Vt)(u.doc,oo(m),Be);var k=p.style.cssText,w=s.wrapper.style.cssText,I=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
309
|
+
top: `+(r.clientY-I.top-5)+"px; left: "+(r.clientX-I.left-5)+`px;
|
|
310
|
+
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
311
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;v&&(M=p.ownerDocument.defaultView.scrollY),l.input.focus(),v&&p.ownerDocument.defaultView.scrollTo(null,M),l.input.reset(),u.somethingSelected()||(p.value=s.prevInput=" "),s.contextMenuPending=z,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function W(){if(p.selectionStart!=null){var ce=u.somethingSelected(),ue=""+(ce?p.value:"");p.value="⇚",p.value=ue,s.prevInput=ce?"":"",p.selectionStart=1,p.selectionEnd=ue.length,l.selForContextMenu=u.doc.sel}}function z(){if(s.contextMenuPending==z&&(s.contextMenuPending=!1,s.wrapper.style.cssText=w,p.style.cssText=k,d&&h<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=b),p.selectionStart!=null)){(!d||d&&h<9)&&W();var ce=0,ue=function(){l.selForContextMenu==u.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&s.prevInput==""?Dt(u,cv)(u):ce++<10?l.detectingSelectAll=setTimeout(ue,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ue,200)}}if(d&&h>=9&&W(),Q){Sr(r);var ne=function(){Pt(window,"mouseup",ne),setTimeout(z,20)};be(window,"mouseup",ne)}else setTimeout(z,50)},mt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},mt.prototype.setUneditable=function(){},mt.prototype.needsContentAttribute=!1;function Kk(r,s){if(s=s?ye(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var u=pe(r.ownerDocument);s.autofocus=u==r||r.getAttribute("autofocus")!=null&&u==document.body}function l(){r.value=_.getValue()}var p;if(r.form&&(be(r.form,"submit",l),!s.leaveSubmitMethodAlone)){var m=r.form;p=m.submit;try{var b=m.submit=function(){l(),m.submit=p,m.submit(),m.submit=b}}catch{}}s.finishInit=function(k){k.save=l,k.getTextArea=function(){return r},k.toTextArea=function(){k.toTextArea=isNaN,l(),r.parentNode.removeChild(k.getWrapperElement()),r.style.display="",r.form&&(Pt(r.form,"submit",l),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=p))}},r.style.display="none";var _=lt(function(k){return r.parentNode.insertBefore(k,r.nextSibling)},s);return _}function ex(r){r.off=Pt,r.on=be,r.wheelEventPixels=ak,r.Doc=Zt,r.splitLines=As,r.countColumn=he,r.findColumn=ir,r.isWordChar=ks,r.Pass=Ve,r.signal=it,r.Line=yi,r.changeEnd=io,r.scrollbarModel=qm,r.Pos=B,r.cmpPos=ee,r.modes=Vn,r.mimeModes=Xr,r.resolveMode=sn,r.getMode=Tr,r.modeExtensions=Kr,r.extendMode=cc,r.copyState=Dr,r.startState=Ss,r.innerMode=eo,r.commands=Zs,r.keyMap=Rr,r.keyName=wv,r.isModifierKey=kv,r.lookupKey=Ni,r.normalizeKeyMap=Tk,r.StringStream=dt,r.SharedTextMarker=Qs,r.TextMarker=ao,r.LineWidget=Ws,r.e_preventDefault=Bt,r.e_stopPropagation=Do,r.e_stop=Sr,r.addClass=$e,r.contains=te,r.rmClass=_e,r.keyNames=co}Hk(lt),Yk(lt);var tx="iter insert remove copy getEditor constructor".split(" ");for(var qc in Zt.prototype)Zt.prototype.hasOwnProperty(qc)&&De(tx,qc)<0&&(lt.prototype[qc]=function(r){return function(){return r.apply(this.doc,arguments)}}(Zt.prototype[qc]));return Ht(Zt),lt.inputStyles={textarea:mt,contenteditable:nt},lt.defineMode=function(r){!lt.defaults.mode&&r!="null"&&(lt.defaults.mode=r),ac.apply(this,arguments)},lt.defineMIME=vi,lt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),lt.defineMIME("text/plain","null"),lt.defineExtension=function(r,s){lt.prototype[r]=s},lt.defineDocExtension=function(r,s){Zt.prototype[r]=s},lt.fromTextArea=Kk,ex(lt),lt.version="5.65.13",lt})}(mp)),mp.exports}var aUe=Fu();const cUe=Z1(aUe);var lUe=function(e,n){return e.find(function(o){return o.name===n})};function U_(t,e,n,o,i){n[t.name]=!0;for(var a=t.fragmentDependencies,c=0;c<a.length;c+=1){var f=a[c],d=lUe(o,f.name.value);if(d){if(n[d.name]){console.error("The operation graph has a cycle");continue}e[d.name]||U_(d,e,n,o,i)}}n[t.name]=!1,e[t.name]=!0,i.push(t)}function uUe(t){var e=[],n={},o={},i=!0,a=!1,c=void 0;try{for(var f=t[Symbol.iterator](),d;!(i=(d=f.next()).done);i=!0){var h=d.value;!n[h.name]&&!o[h.name]&&U_(h,n,o,t,e)}}catch(v){a=!0,c=v}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return e}var fUe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ru=function(){function t(e,n){for(var o=0;o<n.length;o++){var i=n[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),pUe=function(){var t=z_(regeneratorRuntime.mark(function e(n){var o,i;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:n})});case 2:return o=c.sent,c.next=5,o.json();case 5:if(i=c.sent,i.sandbox_id){c.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return c.abrupt("return",{sandboxId:i.sandbox_id});case 11:case"end":return c.stop()}},e,this)}));return function(n){return t.apply(this,arguments)}}();function dUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function q1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oi(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function qu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function z_(t){return function(){var e=t.apply(this,arguments);return new Promise(function(n,o){function i(a,c){try{var f=e[a](c),d=f.value}catch(h){o(h);return}if(f.done)n(d);else return Promise.resolve(d).then(function(h){i("next",h)},function(h){i("throw",h)})}return i("next")})}}function hUe(t){var e=/[A-Z]/g;return t.charAt(0).toUpperCase()+t.slice(1).replace(e,"_$&").toUpperCase()}var mUe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},L.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),L.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),vUe=L.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},L.createElement("g",null,L.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),H_=function(e){var n=e.query,o=e.variables,i=yUe(n),a=[],c=!0,f=!1,d=void 0;try{for(var h=i[Symbol.iterator](),v;!(c=(v=h.next()).done);c=!0){var y=v.value;y.kind==="FragmentDefinition"&&a.push(y)}}catch(C){f=!0,d=C}finally{try{!c&&h.return&&h.return()}finally{if(f)throw d}}var g=i.map(function(C){return{query:Je(C),name:P1(C),displayName:EUe(C),type:C.operation||"fragment",variableName:hUe(P1(C)),variables:bUe(o,C),operationDefinition:C,fragmentDependencies:gUe(a,C)}}),E=uUe(g);return{operationDefinitions:i,fragmentDefinitions:a,rawOperationDataList:g,operationDataList:E}},gUe=function(e,n){var o=function(f){return e.find(function(d){return d.name.value===f})},i=function c(f){var d=f.selections,h=d.map(function(y){return y.kind==="FragmentSpread"?o(y.name.value):null}).filter(Boolean),v=d.reduce(function(y,g){return(g.kind==="Field"||g.kind==="SelectionNode"||g.kind==="InlineFragment")&&g.selectionSet!==void 0?y.concat(c(g.selectionSet)):y},[]);return h.concat(v)},a=n.selectionSet;return i(a)},el=[null,null];function yUe(t){if(el[0]===t&&el[1])return el[1];var e=[];try{var n=!0,o=!1,i=void 0;try{for(var a=Xn(t).definitions[Symbol.iterator](),c;!(n=(c=a.next()).done);n=!0){var f=c.value;(f.kind==="FragmentDefinition"||f.kind==="OperationDefinition")&&e.push(f)}}catch(d){o=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}}catch{}return el=[t,e],e}var bUe=function(e,n){return(n.variableDefinitions||[]).reduce(function(o,i){var a=i.variable.name.value;return e[a]&&(o[a]=e[a]),o},{})},P1=function(e){return e.name?e.name.value:e.operation},EUe=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},B1=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={visible:!1},i.handleOpen=function(h){h.preventDefault(),i.setState({visible:!0}),i._subscribe()},o),oi(i,a)}return Ru(e,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var o=this,i=this.state.visible;return L.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(c){return c.preventDefault()},ref:function(c){o._node=c},title:this.props.title},this.props.label,L.createElement("svg",{width:"14",height:"8"},L.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),L.createElement("ul",{className:"toolbar-menu-items"+(i?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(o){this._node!==o.target&&(o.preventDefault(),this.setState({visible:!1}),this._release())}}]),e}(ie.Component),_Ue=function(t){qu(e,t);function e(){return Mu(this,e),oi(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ru(e,[{key:"componentDidMount",value:function(){this.editor=cUe(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(o){this.props.code!==o.code&&this.editor.setValue(this.props.code),this.props.mode!==o.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==o.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var o=this;return L.createElement("div",{ref:function(a){return o._node=a}})}}]),e}(L.PureComponent),kUe=function(t){qu(e,t);function e(){var n,o=this,i,a,c;Mu(this,e);for(var f=arguments.length,d=Array(f),h=0;h<f;h++)d[h]=arguments[h];return c=(i=(a=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(d))),a),a.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},a._activeSnippet=function(){return a.props.snippet||a.state.snippet||a.props.snippets[0]},a.setSnippet=function(v){a.props.onSelectSnippet&&a.props.onSelectSnippet(v),a.setState({snippet:v,codesandboxResult:null})},a.setLanguage=function(v){var y=a.props.snippets.find(function(g){return g.language===v});y&&a.setSnippet(y)},a.handleSetOptionValue=function(v,y,g){a.props.onSetOptionValue&&a.props.onSetOptionValue(v,y,g);var E=a.state.optionValuesBySnippet,C=E.get(v)||{};return E.set(v,na({},C,q1({},y,g))),a.setState({optionValuesBySnippet:E})},a.getOptionValues=function(v){var y=v.options.reduce(function(g,E){return na({},g,q1({},E.id,E.initial))},{});return na({},y,a.state.optionValuesBySnippet.get(v)||{},a.props.optionValues)},a._generateCodesandbox=function(){var v=z_(regeneratorRuntime.mark(function y(g){var E,C,S;return regeneratorRuntime.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(a.setState({codesandboxResult:{type:"loading"}}),E=a._activeSnippet(),E){D.next=5;break}return a.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),D.abrupt("return");case 5:if(C=E.generateCodesandboxFiles,C){D.next=9;break}return a.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),D.abrupt("return");case 9:return D.prev=9,D.next=12,pUe(C(a._collectOptions(E,g,a.props.schema)));case 12:S=D.sent,a.setState({codesandboxResult:na({type:"success"},S)}),a.props.onGenerateCodesandbox&&a.props.onGenerateCodesandbox(S),D.next=21;break;case 17:D.prev=17,D.t0=D.catch(9),console.error("Error generating codesandbox",D.t0),a.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return D.stop()}},y,o,[[9,17]])}));return function(y){return v.apply(this,arguments)}}(),a._collectOptions=function(v,y,g){var E=a.props,C=E.serverUrl,S=E.context,N=S===void 0?{}:S,D=E.headers,T=D===void 0?{}:D,O=a.getOptionValues(v);return{serverUrl:C,headers:T,context:N,operationDataList:y,options:O,schema:g}},i),oi(a,c)}return Ru(e,[{key:"render",value:function(){var o=this,i=this.props,a=i.query,c=i.snippets,f=i.variables,d=f===void 0?{}:f,h=this.state,v=h.showCopiedTooltip,y=h.codesandboxResult,g=this._activeSnippet(),E=g.name,C=g.language,S=g.generate,N=H_({query:a,variables:d}),D=N.operationDefinitions;N.fragmentDefinitions,N.rawOperationDataList;var T=N.operationDataList,O=this.getOptionValues(g),V=D.length?S(this._collectOptions(g,T,this.props.schema)):null,Y=g.generateCodesandboxFiles,P=[].concat(dUe(new Set(c.map(function(U){return U.language})))).sort(function(U,K){return U.localeCompare(K)});return L.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},L.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},L.createElement("div",{style:{padding:"12px 7px 8px"}},L.createElement(B1,{label:C,title:"Language"},P.map(function(U){return L.createElement("li",{key:U,onClick:function(){return o.setLanguage(U)}},U)})),L.createElement(B1,{label:E,title:"Mode"},c.filter(function(U){return U.language===C}).map(function(U){return L.createElement("li",{key:U.name,onClick:function(){return o.setSnippet(U)}},U.name)}))),g.options.length>0?L.createElement("div",{style:{padding:"0px 11px 10px"}},L.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),g.options.map(function(U){return L.createElement("div",{key:U.id},L.createElement("input",{id:U.id,type:"checkbox",style:{position:"relative",top:-1},checked:O[U.id],onChange:function(){return o.handleSetOptionValue(g,U.id,!O[U.id])}}),L.createElement("label",{htmlFor:U.id,style:{paddingLeft:5}},U.label))})):L.createElement("div",{style:{minHeight:8}}),Y?L.createElement("div",{style:{padding:"0 7px 8px"}},L.createElement("button",{className:"toolbar-button",style:na({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},V?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!V,onClick:function(){return o._generateCodesandbox(T)}},vUe," ",L.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),y?L.createElement("div",{style:{paddingLeft:5,paddingTop:5}},y.type==="loading"?"Loading...":y.type==="error"?"Error: "+y.error:L.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+y.sandboxId},"Visit CodeSandbox")):null):null),L.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){ix(V),o.setState({showCopiedTooltip:!0},function(){return setTimeout(function(){return o.setState({showCopiedTooltip:!1})},450)})}},L.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:v?"block":"none"},pointerEvents:"none"},"Copied!"),mUe),L.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},V?L.createElement(_Ue,{code:V,mode:g.codeMirrorMode,theme:this.props.codeMirrorTheme}):L.createElement("div",null,"The query is invalid.",L.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),e}(ie.Component),xUe=function(t){qu(e,t);function e(){var n,o,i,a;Mu(this,e);for(var c=arguments.length,f=Array(c),d=0;d<c;d++)f[d]=arguments[d];return a=(o=(i=oi(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(f))),i),i.state={hasError:!1},o),oi(i,a)}return Ru(e,[{key:"componentDidCatch",value:function(o,i){this.setState({hasError:!0}),console.error("Error in component",o,i)}},{key:"render",value:function(){return this.state.hasError?L.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",L.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),e}(L.Component);function wUe(t){var e=t.query,n=t.serverUrl,o=t.variables,i=t.context,a=i===void 0?{}:i,c=t.headers,f=c===void 0?{}:c,d=t.hideCodeExporter,h=d===void 0?function(){}:d,v=t.snippets,y=t.snippet,g=t.codeMirrorTheme,E=t.onSelectSnippet,C=t.onSetOptionValue,S=t.optionValues,N=t.onGenerateCodesandbox,D=t.schema,T={};try{var O=JSON.parse(o);(typeof O>"u"?"undefined":fUe(O))==="object"&&(T=O)}catch{}return L.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},L.createElement("div",{className:"doc-explorer-title-bar"},L.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),L.createElement("div",{className:"doc-explorer-rhs"},L.createElement("div",{className:"docExplorerHide",onClick:h},"✕"))),L.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},v.length?L.createElement(xUe,null,L.createElement(kUe,{query:e,serverUrl:n,snippets:v,snippet:y,context:a,headers:f,variables:T,codeMirrorTheme:g,onSelectSnippet:E,onSetOptionValue:C,optionValues:S||{},onGenerateCodesandbox:N,schema:D})):L.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))}function xr(t){return t.charAt(0).toUpperCase()+t.slice(1)}function qh(t,e){return function(n){return t?"// "+e[n]:""}}function G_(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function $Ue(t){return[].concat(G_(new Set(t)))}var CUe=["query","mutation","subscription"];function W_(t){return CUe.indexOf(t.name.trim())===-1}function Jo(t,e){var n=[].concat(G_(new Array(e+1))).join(" ");return t.split(`
|
|
312
|
+
`).map(function(o){return""+n+o}).join(`
|
|
313
|
+
`)}function Q_(t){return t.replace(/\n{2,}/g,`
|
|
314
|
+
|
|
315
|
+
`)}var AUe={exports:{}};(function(t,e){(function(n){n(Fu())})(function(n){n.defineMode("javascript",function(o,i){var a=o.indentUnit,c=i.statementIndent,f=i.jsonld,d=i.json||f,h=i.trackScope!==!1,v=i.typescript,y=i.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function A($t){return{type:$t,style:"keyword"}}var q=A("keyword a"),B=A("keyword b"),ee=A("keyword c"),Ne=A("keyword d"),je=A("operator"),We={type:"atom",style:"atom"};return{if:A("if"),while:q,with:q,else:B,do:B,try:B,finally:B,return:Ne,break:Ne,continue:Ne,new:A("new"),delete:ee,void:ee,throw:ee,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:je,typeof:je,instanceof:je,true:We,false:We,null:We,undefined:We,NaN:We,Infinity:We,this:A("this"),class:A("class"),super:A("atom"),yield:ee,export:A("export"),import:A("import"),extends:ee,await:ee}}(),E=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function S(A){for(var q=!1,B,ee=!1;(B=A.next())!=null;){if(!q){if(B=="/"&&!ee)return;B=="["?ee=!0:ee&&B=="]"&&(ee=!1)}q=!q&&B=="\\"}}var N,D;function T(A,q,B){return N=A,D=B,q}function O(A,q){var B=A.next();if(B=='"'||B=="'")return q.tokenize=V(B),q.tokenize(A,q);if(B=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(B=="."&&A.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(B))return T(B);if(B=="="&&A.eat(">"))return T("=>","operator");if(B=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(B))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(B=="/")return A.eat("*")?(q.tokenize=Y,Y(A,q)):A.eat("/")?(A.skipToEnd(),T("comment","comment")):fr(A,q,1)?(S(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(A.eat("="),T("operator","operator",A.current()));if(B=="`")return q.tokenize=P,P(A,q);if(B=="#"&&A.peek()=="!")return A.skipToEnd(),T("meta","meta");if(B=="#"&&A.eatWhile(y))return T("variable","property");if(B=="<"&&A.match("!--")||B=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),T("comment","comment");if(E.test(B))return(B!=">"||!q.lexical||q.lexical.type!=">")&&(A.eat("=")?(B=="!"||B=="=")&&A.eat("="):/[<>*+\-|&?]/.test(B)&&(A.eat(B),B==">"&&A.eat(B))),B=="?"&&A.eat(".")?T("."):T("operator","operator",A.current());if(y.test(B)){A.eatWhile(y);var ee=A.current();if(q.lastType!="."){if(g.propertyIsEnumerable(ee)){var Ne=g[ee];return T(Ne.type,Ne.style,ee)}if(ee=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ee)}return T("variable","variable",ee)}}function V(A){return function(q,B){var ee=!1,Ne;if(f&&q.peek()=="@"&&q.match(C))return B.tokenize=O,T("jsonld-keyword","meta");for(;(Ne=q.next())!=null&&!(Ne==A&&!ee);)ee=!ee&&Ne=="\\";return ee||(B.tokenize=O),T("string","string")}}function Y(A,q){for(var B=!1,ee;ee=A.next();){if(ee=="/"&&B){q.tokenize=O;break}B=ee=="*"}return T("comment","comment")}function P(A,q){for(var B=!1,ee;(ee=A.next())!=null;){if(!B&&(ee=="`"||ee=="$"&&A.eat("{"))){q.tokenize=O;break}B=!B&&ee=="\\"}return T("quasi","string-2",A.current())}var U="([{}])";function K(A,q){q.fatArrowAt&&(q.fatArrowAt=null);var B=A.string.indexOf("=>",A.start);if(!(B<0)){if(v){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,B));ee&&(B=ee.index)}for(var Ne=0,je=!1,We=B-1;We>=0;--We){var $t=A.string.charAt(We),hn=U.indexOf($t);if(hn>=0&&hn<3){if(!Ne){++We;break}if(--Ne==0){$t=="("&&(je=!0);break}}else if(hn>=3&&hn<6)++Ne;else if(y.test($t))je=!0;else if(/["'\/`]/.test($t))for(;;--We){if(We==0)return;var Oe=A.string.charAt(We-1);if(Oe==$t&&A.string.charAt(We-2)!="\\"){We--;break}}else if(je&&!Ne){++We;break}}je&&!Ne&&(q.fatArrowAt=We)}}var G={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Q(A,q,B,ee,Ne,je){this.indented=A,this.column=q,this.type=B,this.prev=Ne,this.info=je,ee!=null&&(this.align=ee)}function oe(A,q){if(!h)return!1;for(var B=A.localVars;B;B=B.next)if(B.name==q)return!0;for(var ee=A.context;ee;ee=ee.prev)for(var B=ee.vars;B;B=B.next)if(B.name==q)return!0}function _e(A,q,B,ee,Ne){var je=A.cc;for(H.state=A,H.stream=Ne,H.marked=null,H.cc=je,H.style=q,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var We=je.length?je.pop():d?Ve:De;if(We(B,ee)){for(;je.length&&je[je.length-1].lex;)je.pop()();return H.marked?H.marked:B=="variable"&&oe(A,ee)?"variable-2":q}}}var H={state:null,column:null,marked:null,cc:null};function R(){for(var A=arguments.length-1;A>=0;A--)H.cc.push(arguments[A])}function x(){return R.apply(null,arguments),!0}function j(A,q){for(var B=q;B;B=B.next)if(B.name==A)return!0;return!1}function J(A){var q=H.state;if(H.marked="def",!!h){if(q.context){if(q.lexical.info=="var"&&q.context&&q.context.block){var B=te(A,q.context);if(B!=null){q.context=B;return}}else if(!j(A,q.localVars)){q.localVars=new Me(A,q.localVars);return}}i.globalVars&&!j(A,q.globalVars)&&(q.globalVars=new Me(A,q.globalVars))}}function te(A,q){if(q)if(q.block){var B=te(A,q.prev);return B?B==q.prev?q:new $e(B,q.vars,!0):null}else return j(A,q.vars)?q:new $e(q.prev,new Me(A,q.vars),!1);else return null}function pe(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function $e(A,q,B){this.prev=A,this.vars=q,this.block=B}function Me(A,q){this.name=A,this.next=q}var Z=new Me("this",new Me("arguments",null));function fe(){H.state.context=new $e(H.state.context,H.state.localVars,!1),H.state.localVars=Z}function de(){H.state.context=new $e(H.state.context,H.state.localVars,!0),H.state.localVars=null}fe.lex=de.lex=!0;function ge(){H.state.localVars=H.state.context.vars,H.state.context=H.state.context.prev}ge.lex=!0;function ye(A,q){var B=function(){var ee=H.state,Ne=ee.indented;if(ee.lexical.type=="stat")Ne=ee.lexical.indented;else for(var je=ee.lexical;je&&je.type==")"&&je.align;je=je.prev)Ne=je.indented;ee.lexical=new Q(Ne,H.stream.column(),A,null,ee.lexical,q)};return B.lex=!0,B}function he(){var A=H.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}he.lex=!0;function ke(A){function q(B){return B==A?x():A==";"||B=="}"||B==")"||B=="]"?R():x(q)}return q}function De(A,q){return A=="var"?x(ye("vardef",q),Sr,ke(";"),he):A=="keyword a"?x(ye("form"),So,De,he):A=="keyword b"?x(ye("form"),De,he):A=="keyword d"?H.stream.match(/^\s*$/,!1)?x():x(ye("stat"),ir,ke(";"),he):A=="debugger"?x(ke(";")):A=="{"?x(ye("}"),de,cr,he,ge):A==";"?x():A=="if"?(H.state.lexical.info=="else"&&H.state.cc[H.state.cc.length-1]==he&&H.state.cc.pop()(),x(ye("form"),So,De,he,mi)):A=="function"?x(lr):A=="for"?x(ye("form"),de,ic,De,ge,he):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form",A=="class"?A:q),ac,he)):A=="variable"?v&&q=="declare"?(H.marked="keyword",x(De)):v&&(q=="module"||q=="enum"||q=="type")&&H.stream.match(/^\s*\w/,!1)?(H.marked="keyword",q=="enum"?x(gi):q=="type"?x(sc,ke("operator"),be,ke(";")):x(ye("form"),Yt,ke("{"),ye("}"),cr,he,he)):v&&q=="namespace"?(H.marked="keyword",x(ye("form"),Ve,De,he)):v&&q=="abstract"?(H.marked="keyword",x(De)):x(ye("stat"),di):A=="switch"?x(ye("form"),So,ke("{"),ye("}","switch"),de,cr,he,he,ge):A=="case"?x(Ve,ke(":")):A=="default"?x(ke(":")):A=="catch"?x(ye("form"),fe,xn,De,he,ge):A=="export"?x(ye("stat"),Kr,he):A=="import"?x(ye("stat"),Dr,he):A=="async"?x(De):q=="@"?x(Ve,De):R(ye("stat"),Ve,ke(";"),he)}function xn(A){if(A=="(")return x(Vn,ke(")"))}function Ve(A,q){return Jr(A,q,!1)}function Be(A,q){return Jr(A,q,!0)}function So(A){return A!="("?R():x(ye(")"),ir,ke(")"),he)}function Jr(A,q,B){if(H.state.fatArrowAt==H.stream.start){var ee=B?_s:ec;if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,ke("=>"),ee,ge);if(A=="variable")return R(fe,Yt,ke("=>"),ee,ge)}var Ne=B?sr:wn;return G.hasOwnProperty(A)?x(Ne):A=="function"?x(lr,Ne):A=="class"||v&&q=="interface"?(H.marked="keyword",x(ye("form"),Xr,he)):A=="keyword c"||A=="async"?x(B?Be:Ve):A=="("?x(ye(")"),ir,ke(")"),he,Ne):A=="operator"||A=="spread"?x(B?Be:Ve):A=="["?x(ye("]"),Nr,he,Ne):A=="{"?To(hi,"}",null,Ne):A=="quasi"?R(ze,Ne):A=="new"?x(tc(B)):x()}function ir(A){return A.match(/[;\}\)\],]/)?R():R(Ve)}function wn(A,q){return A==","?x(ir):sr(A,q,!1)}function sr(A,q,B){var ee=B==!1?wn:sr,Ne=B==!1?Ve:Be;if(A=="=>")return x(fe,B?_s:ec,ge);if(A=="operator")return/\+\+|--/.test(q)||v&&q=="!"?x(ee):v&&q=="<"&&H.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?x(ye(">"),ft(be,">"),he,ee):q=="?"?x(Ve,ke(":"),Ne):x(Ne);if(A=="quasi")return R(ze,ee);if(A!=";"){if(A=="(")return To(Be,")","call",ee);if(A==".")return x(nc,ee);if(A=="[")return x(ye("]"),ir,ke("]"),he,ee);if(v&&q=="as")return H.marked="keyword",x(be,ee);if(A=="regexp")return H.state.lastType=H.marked="operator",H.stream.backUp(H.stream.pos-H.stream.start-1),x(Ne)}}function ze(A,q){return A!="quasi"?R():q.slice(q.length-2)!="${"?x(ze):x(ir,pi)}function pi(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(ze)}function ec(A){return K(H.stream,H.state),R(A=="{"?De:Ve)}function _s(A){return K(H.stream,H.state),R(A=="{"?De:Be)}function tc(A){return function(q){return q=="."?x(A?ks:Uu):q=="variable"&&v?x(Bt,A?sr:wn):R(A?Be:Ve)}}function Uu(A,q){if(q=="target")return H.marked="keyword",x(wn)}function ks(A,q){if(q=="target")return H.marked="keyword",x(sr)}function di(A){return A==":"?x(he,De):R(wn,ke(";"),he)}function nc(A){if(A=="variable")return H.marked="property",x()}function hi(A,q){if(A=="async")return H.marked="property",x(hi);if(A=="variable"||H.style=="keyword"){if(H.marked="property",q=="get"||q=="set")return x(xs);var B;return v&&H.state.fatArrowAt==H.stream.start&&(B=H.stream.match(/^\s*:\s*/,!1))&&(H.state.fatArrowAt=H.stream.pos+B[0].length),x(ar)}else{if(A=="number"||A=="string")return H.marked=f?"property":H.style+" property",x(ar);if(A=="jsonld-keyword")return x(ar);if(v&&pe(q))return H.marked="keyword",x(hi);if(A=="[")return x(Ve,$n,ke("]"),ar);if(A=="spread")return x(Be,ar);if(q=="*")return H.marked="keyword",x(hi);if(A==":")return R(ar)}}function xs(A){return A!="variable"?R(ar):(H.marked="property",x(lr))}function ar(A){if(A==":")return x(Be);if(A=="(")return R(lr)}function ft(A,q,B){function ee(Ne,je){if(B?B.indexOf(Ne)>-1:Ne==","){var We=H.state.lexical;return We.info=="call"&&(We.pos=(We.pos||0)+1),x(function($t,hn){return $t==q||hn==q?R():R(A)},ee)}return Ne==q||je==q?x():B&&B.indexOf(";")>-1?R(A):x(ke(q))}return function(Ne,je){return Ne==q||je==q?x():R(A,ee)}}function To(A,q,B){for(var ee=3;ee<arguments.length;ee++)H.cc.push(arguments[ee]);return x(ye(q,B),ft(A,q),he)}function cr(A){return A=="}"?x():R(De,cr)}function $n(A,q){if(v){if(A==":")return x(be);if(q=="?")return x($n)}}function zu(A,q){if(v&&(A==":"||q=="in"))return x(be)}function Cn(A){if(v&&A==":")return H.stream.match(/^\s*\w+\s+is\b/,!1)?x(Ve,rc,be):x(be)}function rc(A,q){if(q=="is")return H.marked="keyword",x()}function be(A,q){if(q=="keyof"||q=="typeof"||q=="infer"||q=="readonly")return H.marked="keyword",x(q=="typeof"?Be:be);if(A=="variable"||q=="void")return H.marked="type",x(Ht);if(q=="|"||q=="&")return x(be);if(A=="string"||A=="number"||A=="atom")return x(Ht);if(A=="[")return x(ye("]"),ft(be,"]",","),he,Ht);if(A=="{")return x(ye("}"),Pt,he,Ht);if(A=="(")return x(ft(zt,")"),ws,Ht);if(A=="<")return x(ft(be,">"),be);if(A=="quasi")return R(pt,Ht)}function ws(A){if(A=="=>")return x(be)}function Pt(A){return A.match(/[\}\)\]]/)?x():A==","||A==";"?x(Pt):R(it,Pt)}function it(A,q){if(A=="variable"||H.style=="keyword")return H.marked="property",x(it);if(q=="?"||A=="number"||A=="string")return x(it);if(A==":")return x(be);if(A=="[")return x(ke("variable"),zu,ke("]"),it);if(A=="(")return R(ur,it);if(!A.match(/[;\}\)\],]/))return x()}function pt(A,q){return A!="quasi"?R():q.slice(q.length-2)!="${"?x(pt):x(be,oc)}function oc(A){if(A=="}")return H.marked="string-2",H.state.tokenize=P,x(pt)}function zt(A,q){return A=="variable"&&H.stream.match(/^\s*[?:]/,!1)||q=="?"?x(zt):A==":"?x(be):A=="spread"?x(zt):R(be)}function Ht(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht);if(q=="|"||A=="."||q=="&")return x(be);if(A=="[")return x(be,ke("]"),Ht);if(q=="extends"||q=="implements")return H.marked="keyword",x(be);if(q=="?")return x(be,ke(":"),be)}function Bt(A,q){if(q=="<")return x(ye(">"),ft(be,">"),he,Ht)}function Do(){return R(be,$s)}function $s(A,q){if(q=="=")return x(be)}function Sr(A,q){return q=="enum"?(H.marked="keyword",x(gi)):R(Yt,$n,An,Gu)}function Yt(A,q){if(v&&pe(q))return H.marked="keyword",x(Yt);if(A=="variable")return J(q),x();if(A=="spread")return x(Yt);if(A=="[")return To(Hu,"]");if(A=="{")return To(Cs,"}")}function Cs(A,q){return A=="variable"&&!H.stream.match(/^\s*:/,!1)?(J(q),x(An)):(A=="variable"&&(H.marked="property"),A=="spread"?x(Yt):A=="}"?R():A=="["?x(Ve,ke("]"),ke(":"),Cs):x(ke(":"),Yt,An))}function Hu(){return R(Yt,An)}function An(A,q){if(q=="=")return x(Be)}function Gu(A){if(A==",")return x(Sr)}function mi(A,q){if(A=="keyword b"&&q=="else")return x(ye("form","else"),De,he)}function ic(A,q){if(q=="await")return x(ic);if(A=="(")return x(ye(")"),As,he)}function As(A){return A=="var"?x(Sr,Zr):A=="variable"?x(Zr):R(Zr)}function Zr(A,q){return A==")"?x():A==";"?x(Zr):q=="in"||q=="of"?(H.marked="keyword",x(Ve,Zr)):R(Ve,Zr)}function lr(A,q){if(q=="*")return H.marked="keyword",x(lr);if(A=="variable")return J(q),x(lr);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,De,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,lr)}function ur(A,q){if(q=="*")return H.marked="keyword",x(ur);if(A=="variable")return J(q),x(ur);if(A=="(")return x(fe,ye(")"),ft(Vn,")"),he,Cn,ge);if(v&&q=="<")return x(ye(">"),ft(Do,">"),he,ur)}function sc(A,q){if(A=="keyword"||A=="variable")return H.marked="type",x(sc);if(q=="<")return x(ye(">"),ft(Do,">"),he)}function Vn(A,q){return q=="@"&&x(Ve,Vn),A=="spread"?x(Vn):v&&pe(q)?(H.marked="keyword",x(Vn)):v&&A=="this"?x($n,An):R(Yt,$n,An)}function Xr(A,q){return A=="variable"?ac(A,q):vi(A,q)}function ac(A,q){if(A=="variable")return J(q),x(vi)}function vi(A,q){if(q=="<")return x(ye(">"),ft(Do,">"),he,vi);if(q=="extends"||q=="implements"||v&&A==",")return q=="implements"&&(H.marked="keyword"),x(v?be:Ve,vi);if(A=="{")return x(ye("}"),sn,he)}function sn(A,q){if(A=="async"||A=="variable"&&(q=="static"||q=="get"||q=="set"||v&&pe(q))&&H.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return H.marked="keyword",x(sn);if(A=="variable"||H.style=="keyword")return H.marked="property",x(Tr,sn);if(A=="number"||A=="string")return x(Tr,sn);if(A=="[")return x(Ve,$n,ke("]"),Tr,sn);if(q=="*")return H.marked="keyword",x(sn);if(v&&A=="(")return R(ur,sn);if(A==";"||A==",")return x(sn);if(A=="}")return x();if(q=="@")return x(Ve,sn)}function Tr(A,q){if(q=="!"||q=="?")return x(Tr);if(A==":")return x(be,An);if(q=="=")return x(Be);var B=H.state.lexical.prev,ee=B&&B.info=="interface";return R(ee?ur:lr)}function Kr(A,q){return q=="*"?(H.marked="keyword",x(we,ke(";"))):q=="default"?(H.marked="keyword",x(Ve,ke(";"))):A=="{"?x(ft(cc,"}"),we,ke(";")):R(De)}function cc(A,q){if(q=="as")return H.marked="keyword",x(ke("variable"));if(A=="variable")return R(Be,cc)}function Dr(A){return A=="string"?x():A=="("?R(Ve):A=="."?R(wn):R(eo,Ss,we)}function eo(A,q){return A=="{"?To(eo,"}"):(A=="variable"&&J(q),q=="*"&&(H.marked="keyword"),x(dt))}function Ss(A){if(A==",")return x(eo,Ss)}function dt(A,q){if(q=="as")return H.marked="keyword",x(eo)}function we(A,q){if(q=="from")return H.marked="keyword",x(Ve)}function Nr(A){return A=="]"?x():R(ft(Be,"]"))}function gi(){return R(ye("form"),Yt,ke("{"),ye("}"),ft(Sn,"}"),he,he)}function Sn(){return R(Yt,An)}function Qe(A,q){return A.lastType=="operator"||A.lastType==","||E.test(q.charAt(0))||/[,.]/.test(q.charAt(0))}function fr(A,q,B){return q.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(q.lastType)||q.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(B||0)))}return{startState:function(A){var q={tokenize:O,lastType:"sof",cc:[],lexical:new Q((A||0)-a,0,"block",!1),localVars:i.localVars,context:i.localVars&&new $e(null,null,!1),indented:A||0};return i.globalVars&&typeof i.globalVars=="object"&&(q.globalVars=i.globalVars),q},token:function(A,q){if(A.sol()&&(q.lexical.hasOwnProperty("align")||(q.lexical.align=!1),q.indented=A.indentation(),K(A,q)),q.tokenize!=Y&&A.eatSpace())return null;var B=q.tokenize(A,q);return N=="comment"?B:(q.lastType=N=="operator"&&(D=="++"||D=="--")?"incdec":N,_e(q,B,N,D,A))},indent:function(A,q){if(A.tokenize==Y||A.tokenize==P)return n.Pass;if(A.tokenize!=O)return 0;var B=q&&q.charAt(0),ee=A.lexical,Ne;if(!/^\s*else\b/.test(q))for(var je=A.cc.length-1;je>=0;--je){var We=A.cc[je];if(We==he)ee=ee.prev;else if(We!=mi&&We!=ge)break}for(;(ee.type=="stat"||ee.type=="form")&&(B=="}"||(Ne=A.cc[A.cc.length-1])&&(Ne==wn||Ne==sr)&&!/^[,\.=+\-*:?[\(]/.test(q));)ee=ee.prev;c&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var $t=ee.type,hn=B==$t;return $t=="vardef"?ee.indented+(A.lastType=="operator"||A.lastType==","?ee.info.length+1:0):$t=="form"&&B=="{"?ee.indented:$t=="form"?ee.indented+a:$t=="stat"?ee.indented+(Qe(A,q)?c||a:0):ee.info=="switch"&&!hn&&i.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(q)?a:2*a):ee.align?ee.column+(hn?0:1):ee.indented+(hn?0:a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:f,jsonMode:d,expressionAllowed:fr,skipExpression:function(A){_e(A,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var SUe=AUe.exports,TUe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Y_=function(){function t(e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,c=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),DUe=[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],NUe={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};function OUe(t){var e=t.map(function(n){return n.query}).join(`
|
|
316
|
+
|
|
317
|
+
`).trim();return"const operationsDoc = `\n"+Jo(e,2)+"\n`;"}var Ph="fetchGraphQL";function pa(t){var e=t.type,n=e==="query"?"fetch":e==="mutation"?"execute":e==="subscription"?"subscribeTo":"",o=n+(n.length>0?xr(t.name):t.name);return o}function IUe(t,e){return"function "+Ph+`(operationsDoc, operationName, variables) {
|
|
318
|
+
return fetch(
|
|
319
|
+
"`+t+`",
|
|
320
|
+
{
|
|
321
|
+
method: "POST",`+(e?`
|
|
322
|
+
headers: {
|
|
323
|
+
`+Jo(e,8)+`
|
|
324
|
+
},`:"")+`
|
|
325
|
+
body: JSON.stringify({
|
|
326
|
+
query: operationsDoc,
|
|
327
|
+
variables: variables,
|
|
328
|
+
operationName: operationName
|
|
329
|
+
})
|
|
330
|
+
}
|
|
331
|
+
).then((result) => result.json());
|
|
332
|
+
}`}function LUe(t){return t.map(function(e){var n=pa(e),o=(e.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),i=o.map(function(c){return'"'+c+'": '+c}).join(", "),a="{"+i+"}";return"function "+n+"("+o.join(", ")+`) {
|
|
333
|
+
return `+Ph+`(
|
|
334
|
+
operationsDoc,
|
|
335
|
+
"`+e.name+`",
|
|
336
|
+
`+a+`
|
|
337
|
+
);
|
|
338
|
+
}`}).join(`
|
|
339
|
+
|
|
340
|
+
`)}function FUe(t,e,n){return e.map(function(o){var i=(o.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),a=Object.entries(o.variables||{}).map(function(c){var f=Y_(c,2),d=f[0],h=f[1];return"const "+d+" = "+JSON.stringify(h,null,2)+";"});return a.join(`
|
|
341
|
+
`)+`
|
|
342
|
+
|
|
343
|
+
`+pa(o)+"("+i.join(", ")+`)
|
|
344
|
+
.then(({ data, errors }) => {
|
|
345
|
+
if (errors) {
|
|
346
|
+
`+t("graphqlError")+`
|
|
347
|
+
console.error(errors);
|
|
348
|
+
}
|
|
349
|
+
`+t("graphqlData")+`
|
|
350
|
+
console.log(data);
|
|
351
|
+
})
|
|
352
|
+
.catch((error) => {
|
|
353
|
+
`+t("fetchError")+`
|
|
354
|
+
console.error(error);
|
|
355
|
+
});`}).join(`
|
|
356
|
+
|
|
357
|
+
`)}function RUe(t,e){return"async function "+Ph+`(operationsDoc, operationName, variables) {
|
|
358
|
+
const result = await fetch(
|
|
359
|
+
"`+t+`",
|
|
360
|
+
{
|
|
361
|
+
method: "POST",`+(e?`
|
|
362
|
+
headers: {
|
|
363
|
+
`+Jo(e,8)+`
|
|
364
|
+
},`:"")+`
|
|
365
|
+
body: JSON.stringify({
|
|
366
|
+
query: operationsDoc,
|
|
367
|
+
variables: variables,
|
|
368
|
+
operationName: operationName
|
|
369
|
+
})
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
|
|
373
|
+
return await result.json();
|
|
374
|
+
}`}function MUe(t,e,n){return e.map(function(o){var i=(o.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),a=Object.entries(o.variables||{}).map(function(c){var f=Y_(c,2),d=f[0],h=f[1];return"const "+d+" = "+JSON.stringify(h,null,2)+";"});return"async function start"+xr(pa(o))+"("+i.join(", ")+`) {
|
|
375
|
+
const { errors, data } = await `+pa(o)+"("+i.join(", ")+`);
|
|
376
|
+
|
|
377
|
+
if (errors) {
|
|
378
|
+
`+t("graphqlError")+`
|
|
379
|
+
console.error(errors);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
`+t("graphqlData")+`
|
|
383
|
+
console.log(data);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
`+a.join(`
|
|
387
|
+
`)+`
|
|
388
|
+
|
|
389
|
+
start`+xr(pa(o))+"("+i.join(", ")+");"}).join(`
|
|
390
|
+
|
|
391
|
+
`)}var qUe={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:DUe,generate:function(e){var n=e.serverUrl,o=e.headers,i=e.options,a=e.operationDataList.map(function(K,G){return W_(K)?K:TUe({},K,{name:("unnamed"+xr(K.type)+(G+1)).trim(),query:"# Consider giving this "+K.type+` a unique, descriptive
|
|
392
|
+
# name in your application as a best practice
|
|
393
|
+
`+K.type+" unnamed"+xr(K.type)+(G+1)+" "+K.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),c=qh(!0,NUe),f=i.server?c("nodeFetch"):"",d=i.server?`import fetch from "node-fetch";
|
|
394
|
+
`:"",h=OUe(a);JSON.stringify({},null,2);var v=[],y=!0,g=!1,E=void 0;try{for(var C=Object.keys(o)[Symbol.iterator](),S;!(y=(S=C.next()).done);y=!0){var N=S.value;N&&o[N]&&v.push('"'+N+'": "'+o[N]+'"')}}catch(K){g=!0,E=K}finally{try{!y&&C.return&&C.return()}finally{if(g)throw E}}var D=v.length?""+v.join(`,
|
|
395
|
+
`):"",T=[i.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),O=T.length>0?"/*\nAdd these to your `package.json`:\n"+Jo(T.join(`,
|
|
396
|
+
`),2)+`
|
|
397
|
+
*/
|
|
398
|
+
`:"",V=i.asyncAwait?RUe(n,D):IUe(n,D),Y=LUe(a),P=i.asyncAwait?MUe(c,a):FUe(c,a),U=`
|
|
399
|
+
/*
|
|
400
|
+
This is an example snippet - you should consider tailoring it
|
|
401
|
+
to your service.
|
|
402
|
+
*/
|
|
403
|
+
`+O+`
|
|
404
|
+
`+f+`
|
|
405
|
+
`+d+`
|
|
406
|
+
|
|
407
|
+
`+V+`
|
|
408
|
+
|
|
409
|
+
`+h+`
|
|
410
|
+
|
|
411
|
+
`+Y+`
|
|
412
|
+
|
|
413
|
+
`+P;return Q_(U.trim())}},V1={exports:{}},j1;function PUe(){return j1||(j1=1,function(t,e){(function(n){n(Fu())})(function(n){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(a,c){var f=a.indentUnit,d={},h=c.htmlMode?o:i;for(var v in h)d[v]=h[v];for(var v in c)d[v]=c[v];var y,g;function E(x,j){function J($e){return j.tokenize=$e,$e(x,j)}var te=x.next();if(te=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?J(N("atom","]]>")):null:x.match("--")?J(N("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),J(D(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),j.tokenize=N("meta","?>"),"meta"):(y=x.eat("/")?"closeTag":"openTag",j.tokenize=C,"tag bracket");if(te=="&"){var pe;return x.eat("#")?x.eat("x")?pe=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):pe=x.eatWhile(/[\d]/)&&x.eat(";"):pe=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),pe?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function C(x,j){var J=x.next();if(J==">"||J=="/"&&x.eat(">"))return j.tokenize=E,y=J==">"?"endTag":"selfcloseTag","tag bracket";if(J=="=")return y="equals",null;if(J=="<"){j.tokenize=E,j.state=P,j.tagName=j.tagStart=null;var te=j.tokenize(x,j);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(J)?(j.tokenize=S(J),j.stringStartCol=x.column(),j.tokenize(x,j)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function S(x){var j=function(J,te){for(;!J.eol();)if(J.next()==x){te.tokenize=C;break}return"string"};return j.isInAttribute=!0,j}function N(x,j){return function(J,te){for(;!J.eol();){if(J.match(j)){te.tokenize=E;break}J.next()}return x}}function D(x){return function(j,J){for(var te;(te=j.next())!=null;){if(te=="<")return J.tokenize=D(x+1),J.tokenize(j,J);if(te==">")if(x==1){J.tokenize=E;break}else return J.tokenize=D(x-1),J.tokenize(j,J)}return"meta"}}function T(x){return x&&x.toLowerCase()}function O(x,j,J){this.prev=x.context,this.tagName=j||"",this.indent=x.indented,this.startOfLine=J,(d.doNotIndent.hasOwnProperty(j)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function V(x){x.context&&(x.context=x.context.prev)}function Y(x,j){for(var J;;){if(!x.context||(J=x.context.tagName,!d.contextGrabbers.hasOwnProperty(T(J))||!d.contextGrabbers[T(J)].hasOwnProperty(T(j))))return;V(x)}}function P(x,j,J){return x=="openTag"?(J.tagStart=j.column(),U):x=="closeTag"?K:P}function U(x,j,J){return x=="word"?(J.tagName=j.current(),g="tag",oe):d.allowMissingTagName&&x=="endTag"?(g="tag bracket",oe(x,j,J)):(g="error",U)}function K(x,j,J){if(x=="word"){var te=j.current();return J.context&&J.context.tagName!=te&&d.implicitlyClosed.hasOwnProperty(T(J.context.tagName))&&V(J),J.context&&J.context.tagName==te||d.matchClosing===!1?(g="tag",G):(g="tag error",Q)}else return d.allowMissingTagName&&x=="endTag"?(g="tag bracket",G(x,j,J)):(g="error",Q)}function G(x,j,J){return x!="endTag"?(g="error",G):(V(J),P)}function Q(x,j,J){return g="error",G(x,j,J)}function oe(x,j,J){if(x=="word")return g="attribute",_e;if(x=="endTag"||x=="selfcloseTag"){var te=J.tagName,pe=J.tagStart;return J.tagName=J.tagStart=null,x=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(T(te))?Y(J,te):(Y(J,te),J.context=new O(J,te,pe==J.indented)),P}return g="error",oe}function _e(x,j,J){return x=="equals"?H:(d.allowMissing||(g="error"),oe(x,j,J))}function H(x,j,J){return x=="string"?R:x=="word"&&d.allowUnquoted?(g="string",oe):(g="error",oe(x,j,J))}function R(x,j,J){return x=="string"?R:oe(x,j,J)}return{startState:function(x){var j={tokenize:E,state:P,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(j.baseIndent=x),j},token:function(x,j){if(!j.tagName&&x.sol()&&(j.indented=x.indentation()),x.eatSpace())return null;y=null;var J=j.tokenize(x,j);return(J||y)&&J!="comment"&&(g=null,j.state=j.state(y||J,x,j),g&&(J=g=="error"?J+" error":g)),J},indent:function(x,j,J){var te=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+f;if(te&&te.noIndent)return n.Pass;if(x.tokenize!=C&&x.tokenize!=E)return J?J.match(/^(\s*)/)[0].length:0;if(x.tagName)return d.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(j))return 0;var pe=j&&/^<(\/)?([\w_:\.-]*)/.exec(j);if(pe&&pe[1])for(;te;)if(te.tagName==pe[2]){te=te.prev;break}else if(d.implicitlyClosed.hasOwnProperty(T(te.tagName)))te=te.prev;else break;else if(pe)for(;te;){var $e=d.contextGrabbers[T(te.tagName)];if($e&&$e.hasOwnProperty(T(pe[2])))te=te.prev;else break}for(;te&&te.prev&&!te.startOfLine;)te=te.prev;return te?te.indent+f:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(x){x.state==H&&(x.state=oe)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var j=[],J=x.context;J;J=J.prev)j.push(J.tagName);return j.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),V1.exports}(function(t,e){(function(n){n(Fu(),PUe(),SUe)})(function(n){function o(a,c,f,d){this.state=a,this.mode=c,this.depth=f,this.prev=d}function i(a){return new o(n.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&i(a.prev))}n.defineMode("jsx",function(a,c){var f=n.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),d=n.getMode(a,c&&c.base||"javascript");function h(E){var C=E.tagName;E.tagName=null;var S=f.indent(E,"","");return E.tagName=C,S}function v(E,C){return C.context.mode==f?y(E,C,C.context):g(E,C,C.context)}function y(E,C,S){if(S.depth==2)return E.match(/^.*?\*\//)?S.depth=1:E.skipToEnd(),"comment";if(E.peek()=="{"){f.skipAttribute(S.state);var N=h(S.state),D=S.state.context;if(D&&E.match(/^[^>]*>\s*$/,!1)){for(;D.prev&&!D.startOfLine;)D=D.prev;D.startOfLine?N-=a.indentUnit:S.prev.state.lexical&&(N=S.prev.state.lexical.indented)}else S.depth==1&&(N+=a.indentUnit);return C.context=new o(n.startState(d,N),d,0,C.context),null}if(S.depth==1){if(E.peek()=="<")return f.skipAttribute(S.state),C.context=new o(n.startState(f,h(S.state)),f,0,C.context),null;if(E.match("//"))return E.skipToEnd(),"comment";if(E.match("/*"))return S.depth=2,v(E,C)}var T=f.token(E,S.state),O=E.current(),V;return/\btag\b/.test(T)?/>$/.test(O)?S.state.context?S.depth=0:C.context=C.context.prev:/^</.test(O)&&(S.depth=1):!T&&(V=O.indexOf("{"))>-1&&E.backUp(O.length-V),T}function g(E,C,S){if(E.peek()=="<"&&d.expressionAllowed(E,S.state))return C.context=new o(n.startState(f,d.indent(S.state,"","")),f,0,C.context),d.skipExpression(S.state),null;var N=d.token(E,S.state);if(!N&&S.depth!=null){var D=E.current();D=="{"?S.depth++:D=="}"&&--S.depth==0&&(C.context=C.context.prev)}return N}return{startState:function(){return{context:new o(n.startState(d),d)}},copyState:function(E){return{context:i(E.context)}},token:v,indent:function(E,C,S){return E.context.mode.indent(E.context.state,C,S)},innerMode:function(E){return E.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var BUe=function(){function t(e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,c=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),VUe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function jUe(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var UUe={setup:"This setup is only needed once per application"};function zUe(t){var e=t.name;return e.charAt(0).toUpperCase()+e.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}function Ta(t){var e=t.type;return zUe(t)+"_"+e.toUpperCase()}function Bh(t){var e=(t.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),n=e.map(function(c){return'"'+c+'": '+c}).join(", "),o="{"+n+"}",i=e.map(function(c){return'"'+c+'": props.'+c}).join(", "),a="{"+i+"}";return{params:e,variables:o,props:a}}function U1(t){var e=t.type,n=e==="query"?"Query":e==="mutation"?"Mutation":e==="subscription"?"Subscription":"";return n.length>0?""+xr(t.name)+n:xr(t.name)}function HUe(t,e,n,o,i,a){var c=Bh(o),f=c.params,d=c.variables,h=o.name+"("+(f.length===0?"":""+d)+")",v="() => "+h;return`<Mutation
|
|
414
|
+
mutation={`+Ta(o)+"}"+(i==="{}"?"":`
|
|
415
|
+
context={{ headers: `+i+` }}
|
|
416
|
+
`)+`>
|
|
417
|
+
{(`+o.name+`, { loading, error, data }) => {
|
|
418
|
+
if (loading) return <`+n+">Loading</"+n+`>
|
|
419
|
+
|
|
420
|
+
if (error)
|
|
421
|
+
return (
|
|
422
|
+
<`+n+`>
|
|
423
|
+
Error in `+Ta(o)+`
|
|
424
|
+
{JSON.stringify(error, null, 2)}
|
|
425
|
+
</`+n+`>
|
|
426
|
+
);
|
|
427
|
+
|
|
428
|
+
const dataEl = data ? (
|
|
429
|
+
<`+n+">{JSON.stringify(data, null, 2)}</"+n+`>
|
|
430
|
+
) : null;
|
|
431
|
+
|
|
432
|
+
return (
|
|
433
|
+
<div>
|
|
434
|
+
{dataEl}
|
|
435
|
+
|
|
436
|
+
<button onClick={`+v+`}>
|
|
437
|
+
Run mutation: `+o.name+`
|
|
438
|
+
</button>
|
|
439
|
+
</div>
|
|
440
|
+
);
|
|
441
|
+
}}
|
|
442
|
+
</Mutation>`}var GUe=function(e,n,o,i,a,c){var f=Bh(i),d=f.params,h=f.props;return`<Query
|
|
443
|
+
query={`+Ta(i)+"}"+(a==="{}"?"":`
|
|
444
|
+
context={{ headers: `+a+" }}")+" "+(d.length===0?"":`
|
|
445
|
+
variables={`+h+"}")+`>
|
|
446
|
+
{({ loading, error, data }) => {
|
|
447
|
+
if (loading) return <`+o+">Loading</"+o+`>
|
|
448
|
+
if (error)
|
|
449
|
+
return (
|
|
450
|
+
<`+o+`>
|
|
451
|
+
Error in `+Ta(i)+`
|
|
452
|
+
{JSON.stringify(error, null, 2)}
|
|
453
|
+
</`+o+`>
|
|
454
|
+
);
|
|
455
|
+
|
|
456
|
+
if (data) {
|
|
457
|
+
return (
|
|
458
|
+
<`+o+">{JSON.stringify(data, null, 2)}</"+o+`>
|
|
459
|
+
)
|
|
460
|
+
}
|
|
461
|
+
}}
|
|
462
|
+
</Query>`},WUe={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var n=e.headers,o=e.options,i=e.serverUrl,a=qh(!0,UUe),c=e.operationDataList.map(function(U,K){return W_(U)?U:VUe({},U,{name:("unnamed"+xr(U.type)+(K+1)).trim(),query:"# Consider giving this "+U.type+` a unique, descriptive
|
|
463
|
+
# name in your application as a best practice
|
|
464
|
+
`+U.type+" unnamed"+xr(U.type)+(K+1)+" "+U.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),f=o.reactNative?"View":"pre";JSON.stringify({},null,2);var d=[].concat(jUe(Object.keys(n||[]))).filter(function(U){return n[U]}).map(function(U){return'"'+U+'": "'+n[U]+'"'}).join(`,
|
|
465
|
+
`),h="{"+d+"}",v=`/*
|
|
466
|
+
Add these to your \`package.json\`:
|
|
467
|
+
"apollo-boost": "^0.3.1",
|
|
468
|
+
"graphql": "^14.2.1",
|
|
469
|
+
"graphql-tag": "^2.10.0",
|
|
470
|
+
"react-apollo": "^2.5.5"
|
|
471
|
+
*/
|
|
472
|
+
|
|
473
|
+
`,y=o.client?a("setup")+`;
|
|
474
|
+
const apolloClient = new ApolloClient({
|
|
475
|
+
cache: new InMemoryCache(),
|
|
476
|
+
link: new HttpLink({
|
|
477
|
+
uri: "`+i+`",
|
|
478
|
+
}),
|
|
479
|
+
});
|
|
480
|
+
`:"",g=$Ue(c.map(function(U){return U.type})),E=[g.indexOf("query")>-1?"Query":null,g.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean),C="import { "+E.join(", ")+' } from "react-apollo";',S=`import React from "react";
|
|
481
|
+
import ReactDOM from "react-dom";
|
|
482
|
+
import { `+(o.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',N='import gql from "graphql-tag";',D=o.imports?N+`
|
|
483
|
+
`+S+`
|
|
484
|
+
`+C:"",T=c.map(function(U){var K=U.type==="query"?GUe:U.type==="mutation"?HUe:function(){return`"We don't support `+U.type+' GraphQL operations yet"'},G="const "+Ta(U)+" = gql`\n"+Jo(U.query,2)+"\n`;",Q=G+`
|
|
485
|
+
|
|
486
|
+
const `+U1(U)+` = (props) => {
|
|
487
|
+
return (
|
|
488
|
+
`+Jo(K(a,o,f,U,h),4)+`
|
|
489
|
+
)
|
|
490
|
+
};`;return Q}).join(`
|
|
491
|
+
|
|
492
|
+
`),O=c.map(function(U){var K=Bh(U),G=K.params,Q=G.map(function(oe){return oe+"={"+oe+"}"}).join(" ");return"<"+U1(U)+" "+Q+" />"}).join(`
|
|
493
|
+
`),V=c.map(function(U){var K=Object.entries(U.variables||{}).map(function(G){var Q=BUe(G,2),oe=Q[0],_e=Q[1];return"const "+oe+" = "+JSON.stringify(_e,null,2)+";"});return""+K.join(`
|
|
494
|
+
`)}).join(`
|
|
495
|
+
|
|
496
|
+
`),Y=V+`
|
|
497
|
+
|
|
498
|
+
const container = (
|
|
499
|
+
<ApolloProvider client={apolloClient}>
|
|
500
|
+
`+Jo(O,4)+`
|
|
501
|
+
</ApolloProvider>
|
|
502
|
+
);`,P=`
|
|
503
|
+
/* This is an example snippet - you should consider tailoring it
|
|
504
|
+
to your service.
|
|
505
|
+
*/
|
|
506
|
+
`+v+D+`
|
|
507
|
+
|
|
508
|
+
`+y+`
|
|
509
|
+
|
|
510
|
+
`+T+`
|
|
511
|
+
|
|
512
|
+
`+Y+`
|
|
513
|
+
|
|
514
|
+
ReactDOM.render(container, document.getElementById("root"));`;return Q_(P.trim())}};const QUe=[qUe,WUe],YUe=Object.freeze(Object.defineProperty({__proto__:null,capitalizeFirstLetter:xr,computeOperationDataList:H_,default:wUe,jsCommentsFactory:qh,snippets:QUe},Symbol.toStringTag,{value:"Module"})),JUe=ii(YUe);var Vh={},jh={},Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=ZUe;function ZUe(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=XUe;function XUe(t,e){return function(n){return t?"// "+e[n]:""}}var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});function J_(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}function KUe(t){return[].concat(J_(new Set(t)))}var eze=["query","mutation","subscription"];function Z_(t){return eze.indexOf(t.name.trim())===-1}var tze=function(e){return e.find(Z_)};function nze(t,e){var n=[].concat(J_(new Array(e+1))).join(" ");return t.split(`
|
|
515
|
+
`).map(function(o){return""+n+o}).join(`
|
|
516
|
+
`)}function rze(t){return t.replace(/\n{2,}/g,`
|
|
517
|
+
|
|
518
|
+
`)}Ao.distinct=KUe;Ao.findFirstNamedOperation=tze;Ao.isOperationNamed=Z_;Ao.addLeftWhitespace=nze;Ao.collapseExtraNewlines=rze;Object.defineProperty(jh,"__esModule",{value:!0});var oze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},X_=function(){function t(e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,c=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ize=Pu,Da=K_(ize),sze=Bu,aze=K_(sze),Qi=Ao;function K_(t){return t&&t.__esModule?t:{default:t}}var cze=[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],lze={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};function uze(t){var e=t.map(function(n){return n.query}).join(`
|
|
519
|
+
|
|
520
|
+
`).trim();return"const operationsDoc = `\n"+(0,Qi.addLeftWhitespace)(e,2)+"\n`;"}var Uh="fetchGraphQL";function da(t){var e=t.type,n=e==="query"?"fetch":e==="mutation"?"execute":e==="subscription"?"subscribeTo":"",o=n+(n.length>0?(0,Da.default)(t.name):t.name);return o}function fze(t,e){return"function "+Uh+`(operationsDoc, operationName, variables) {
|
|
521
|
+
return fetch(
|
|
522
|
+
"`+t+`",
|
|
523
|
+
{
|
|
524
|
+
method: "POST",`+(e?`
|
|
525
|
+
headers: {
|
|
526
|
+
`+(0,Qi.addLeftWhitespace)(e,8)+`
|
|
527
|
+
},`:"")+`
|
|
528
|
+
body: JSON.stringify({
|
|
529
|
+
query: operationsDoc,
|
|
530
|
+
variables: variables,
|
|
531
|
+
operationName: operationName
|
|
532
|
+
})
|
|
533
|
+
}
|
|
534
|
+
).then((result) => result.json());
|
|
535
|
+
}`}function pze(t){return t.map(function(e){var n=da(e),o=(e.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),i=o.map(function(c){return'"'+c+'": '+c}).join(", "),a="{"+i+"}";return"function "+n+"("+o.join(", ")+`) {
|
|
536
|
+
return `+Uh+`(
|
|
537
|
+
operationsDoc,
|
|
538
|
+
"`+e.name+`",
|
|
539
|
+
`+a+`
|
|
540
|
+
);
|
|
541
|
+
}`}).join(`
|
|
542
|
+
|
|
543
|
+
`)}function dze(t,e,n){return e.map(function(o){var i=(o.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),a=Object.entries(o.variables||{}).map(function(c){var f=X_(c,2),d=f[0],h=f[1];return"const "+d+" = "+JSON.stringify(h,null,2)+";"});return a.join(`
|
|
544
|
+
`)+`
|
|
545
|
+
|
|
546
|
+
`+da(o)+"("+i.join(", ")+`)
|
|
547
|
+
.then(({ data, errors }) => {
|
|
548
|
+
if (errors) {
|
|
549
|
+
`+t("graphqlError")+`
|
|
550
|
+
console.error(errors);
|
|
551
|
+
}
|
|
552
|
+
`+t("graphqlData")+`
|
|
553
|
+
console.log(data);
|
|
554
|
+
})
|
|
555
|
+
.catch((error) => {
|
|
556
|
+
`+t("fetchError")+`
|
|
557
|
+
console.error(error);
|
|
558
|
+
});`}).join(`
|
|
559
|
+
|
|
560
|
+
`)}function hze(t,e){return"async function "+Uh+`(operationsDoc, operationName, variables) {
|
|
561
|
+
const result = await fetch(
|
|
562
|
+
"`+t+`",
|
|
563
|
+
{
|
|
564
|
+
method: "POST",`+(e?`
|
|
565
|
+
headers: {
|
|
566
|
+
`+(0,Qi.addLeftWhitespace)(e,8)+`
|
|
567
|
+
},`:"")+`
|
|
568
|
+
body: JSON.stringify({
|
|
569
|
+
query: operationsDoc,
|
|
570
|
+
variables: variables,
|
|
571
|
+
operationName: operationName
|
|
572
|
+
})
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
|
|
576
|
+
return await result.json();
|
|
577
|
+
}`}function mze(t,e,n){return e.map(function(o){var i=(o.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),a=Object.entries(o.variables||{}).map(function(c){var f=X_(c,2),d=f[0],h=f[1];return"const "+d+" = "+JSON.stringify(h,null,2)+";"});return"async function start"+(0,Da.default)(da(o))+"("+i.join(", ")+`) {
|
|
578
|
+
const { errors, data } = await `+da(o)+"("+i.join(", ")+`);
|
|
579
|
+
|
|
580
|
+
if (errors) {
|
|
581
|
+
`+t("graphqlError")+`
|
|
582
|
+
console.error(errors);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
`+t("graphqlData")+`
|
|
586
|
+
console.log(data);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
`+a.join(`
|
|
590
|
+
`)+`
|
|
591
|
+
|
|
592
|
+
start`+(0,Da.default)(da(o))+"("+i.join(", ")+");"}).join(`
|
|
593
|
+
|
|
594
|
+
`)}var vze={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:cze,generate:function(e){var n=e.serverUrl,o=e.headers,i=e.options,a=e.operationDataList.map(function(K,G){return(0,Qi.isOperationNamed)(K)?K:oze({},K,{name:("unnamed"+(0,Da.default)(K.type)+(G+1)).trim(),query:"# Consider giving this "+K.type+` a unique, descriptive
|
|
595
|
+
# name in your application as a best practice
|
|
596
|
+
`+K.type+" unnamed"+(0,Da.default)(K.type)+(G+1)+" "+K.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),c=(0,aze.default)(!0,lze),f=i.server?c("nodeFetch"):"",d=i.server?`import fetch from "node-fetch";
|
|
597
|
+
`:"",h=uze(a);JSON.stringify({},null,2);var v=[],y=!0,g=!1,E=void 0;try{for(var C=Object.keys(o)[Symbol.iterator](),S;!(y=(S=C.next()).done);y=!0){var N=S.value;N&&o[N]&&v.push('"'+N+'": "'+o[N]+'"')}}catch(K){g=!0,E=K}finally{try{!y&&C.return&&C.return()}finally{if(g)throw E}}var D=v.length?""+v.join(`,
|
|
598
|
+
`):"",T=[i.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),O=T.length>0?"/*\nAdd these to your `package.json`:\n"+(0,Qi.addLeftWhitespace)(T.join(`,
|
|
599
|
+
`),2)+`
|
|
600
|
+
*/
|
|
601
|
+
`:"",V=i.asyncAwait?hze(n,D):fze(n,D),Y=pze(a),P=i.asyncAwait?mze(c,a):dze(c,a),U=`
|
|
602
|
+
/*
|
|
603
|
+
This is an example snippet - you should consider tailoring it
|
|
604
|
+
to your service.
|
|
605
|
+
*/
|
|
606
|
+
`+O+`
|
|
607
|
+
`+f+`
|
|
608
|
+
`+d+`
|
|
609
|
+
|
|
610
|
+
`+V+`
|
|
611
|
+
|
|
612
|
+
`+h+`
|
|
613
|
+
|
|
614
|
+
`+Y+`
|
|
615
|
+
|
|
616
|
+
`+P;return(0,Qi.collapseExtraNewlines)(U.trim())}};jh.default=vze;var zh={};Object.defineProperty(zh,"__esModule",{value:!0});var gze=function(){function t(e,n){var o=[],i=!0,a=!1,c=void 0;try{for(var f=e[Symbol.iterator](),d;!(i=(d=f.next()).done)&&(o.push(d.value),!(n&&o.length===n));i=!0);}catch(h){a=!0,c=h}finally{try{!i&&f.return&&f.return()}finally{if(a)throw c}}return o}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),yze=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},bze=Pu,Pl=e2(bze),Eze=Bu,_ze=e2(Eze),Bi=Ao;function e2(t){return t&&t.__esModule?t:{default:t}}function kze(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var xze={setup:"This setup is only needed once per application"};function wze(t){var e=t.name;return e.charAt(0).toUpperCase()+e.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}function Na(t){var e=t.type;return wze(t)+"_"+e.toUpperCase()}function Hh(t){var e=(t.operationDefinition.variableDefinitions||[]).map(function(c){return c.variable.name.value}),n=e.map(function(c){return'"'+c+'": '+c}).join(", "),o="{"+n+"}",i=e.map(function(c){return'"'+c+'": props.'+c}).join(", "),a="{"+i+"}";return{params:e,variables:o,props:a}}function z1(t){var e=t.type,n=e==="query"?"Query":e==="mutation"?"Mutation":e==="subscription"?"Subscription":"";return n.length>0?""+(0,Pl.default)(t.name)+n:(0,Pl.default)(t.name)}function $ze(t,e,n,o,i,a){var c=Hh(o),f=c.params,d=c.variables,h=o.name+"("+(f.length===0?"":""+d)+")",v="() => "+h;return`<Mutation
|
|
617
|
+
mutation={`+Na(o)+"}"+(i==="{}"?"":`
|
|
618
|
+
context={{ headers: `+i+` }}
|
|
619
|
+
`)+`>
|
|
620
|
+
{(`+o.name+`, { loading, error, data }) => {
|
|
621
|
+
if (loading) return <`+n+">Loading</"+n+`>
|
|
622
|
+
|
|
623
|
+
if (error)
|
|
624
|
+
return (
|
|
625
|
+
<`+n+`>
|
|
626
|
+
Error in `+Na(o)+`
|
|
627
|
+
{JSON.stringify(error, null, 2)}
|
|
628
|
+
</`+n+`>
|
|
629
|
+
);
|
|
630
|
+
|
|
631
|
+
const dataEl = data ? (
|
|
632
|
+
<`+n+">{JSON.stringify(data, null, 2)}</"+n+`>
|
|
633
|
+
) : null;
|
|
634
|
+
|
|
635
|
+
return (
|
|
636
|
+
<div>
|
|
637
|
+
{dataEl}
|
|
638
|
+
|
|
639
|
+
<button onClick={`+v+`}>
|
|
640
|
+
Run mutation: `+o.name+`
|
|
641
|
+
</button>
|
|
642
|
+
</div>
|
|
643
|
+
);
|
|
644
|
+
}}
|
|
645
|
+
</Mutation>`}var Cze=function(e,n,o,i,a,c){var f=Hh(i),d=f.params,h=f.props;return`<Query
|
|
646
|
+
query={`+Na(i)+"}"+(a==="{}"?"":`
|
|
647
|
+
context={{ headers: `+a+" }}")+" "+(d.length===0?"":`
|
|
648
|
+
variables={`+h+"}")+`>
|
|
649
|
+
{({ loading, error, data }) => {
|
|
650
|
+
if (loading) return <`+o+">Loading</"+o+`>
|
|
651
|
+
if (error)
|
|
652
|
+
return (
|
|
653
|
+
<`+o+`>
|
|
654
|
+
Error in `+Na(i)+`
|
|
655
|
+
{JSON.stringify(error, null, 2)}
|
|
656
|
+
</`+o+`>
|
|
657
|
+
);
|
|
658
|
+
|
|
659
|
+
if (data) {
|
|
660
|
+
return (
|
|
661
|
+
<`+o+">{JSON.stringify(data, null, 2)}</"+o+`>
|
|
662
|
+
)
|
|
663
|
+
}
|
|
664
|
+
}}
|
|
665
|
+
</Query>`},Aze={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var n=e.headers,o=e.options,i=e.serverUrl,a=(0,_ze.default)(!0,xze),c=e.operationDataList.map(function(U,K){return(0,Bi.isOperationNamed)(U)?U:yze({},U,{name:("unnamed"+(0,Pl.default)(U.type)+(K+1)).trim(),query:"# Consider giving this "+U.type+` a unique, descriptive
|
|
666
|
+
# name in your application as a best practice
|
|
667
|
+
`+U.type+" unnamed"+(0,Pl.default)(U.type)+(K+1)+" "+U.query.trim().replace(/^(query|mutation|subscription) /i,"")})}),f=o.reactNative?"View":"pre";JSON.stringify({},null,2);var d=[].concat(kze(Object.keys(n||[]))).filter(function(U){return n[U]}).map(function(U){return'"'+U+'": "'+n[U]+'"'}).join(`,
|
|
668
|
+
`),h="{"+d+"}",v=`/*
|
|
669
|
+
Add these to your \`package.json\`:
|
|
670
|
+
"apollo-boost": "^0.3.1",
|
|
671
|
+
"graphql": "^14.2.1",
|
|
672
|
+
"graphql-tag": "^2.10.0",
|
|
673
|
+
"react-apollo": "^2.5.5"
|
|
674
|
+
*/
|
|
675
|
+
|
|
676
|
+
`,y=o.client?a("setup")+`;
|
|
677
|
+
const apolloClient = new ApolloClient({
|
|
678
|
+
cache: new InMemoryCache(),
|
|
679
|
+
link: new HttpLink({
|
|
680
|
+
uri: "`+i+`",
|
|
681
|
+
}),
|
|
682
|
+
});
|
|
683
|
+
`:"",g=(0,Bi.distinct)(c.map(function(U){return U.type})),E=[g.indexOf("query")>-1?"Query":null,g.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean),C="import { "+E.join(", ")+' } from "react-apollo";',S=`import React from "react";
|
|
684
|
+
import ReactDOM from "react-dom";
|
|
685
|
+
import { `+(o.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',N='import gql from "graphql-tag";',D=o.imports?N+`
|
|
686
|
+
`+S+`
|
|
687
|
+
`+C:"",T=c.map(function(U){var K=U.type==="query"?Cze:U.type==="mutation"?$ze:function(){return`"We don't support `+U.type+' GraphQL operations yet"'},G="const "+Na(U)+" = gql`\n"+(0,Bi.addLeftWhitespace)(U.query,2)+"\n`;",Q=G+`
|
|
688
|
+
|
|
689
|
+
const `+z1(U)+` = (props) => {
|
|
690
|
+
return (
|
|
691
|
+
`+(0,Bi.addLeftWhitespace)(K(a,o,f,U,h),4)+`
|
|
692
|
+
)
|
|
693
|
+
};`;return Q}).join(`
|
|
694
|
+
|
|
695
|
+
`),O=c.map(function(U){var K=Hh(U),G=K.params,Q=G.map(function(oe){return oe+"={"+oe+"}"}).join(" ");return"<"+z1(U)+" "+Q+" />"}).join(`
|
|
696
|
+
`),V=c.map(function(U){var K=Object.entries(U.variables||{}).map(function(G){var Q=gze(G,2),oe=Q[0],_e=Q[1];return"const "+oe+" = "+JSON.stringify(_e,null,2)+";"});return""+K.join(`
|
|
697
|
+
`)}).join(`
|
|
698
|
+
|
|
699
|
+
`),Y=V+`
|
|
700
|
+
|
|
701
|
+
const container = (
|
|
702
|
+
<ApolloProvider client={apolloClient}>
|
|
703
|
+
`+(0,Bi.addLeftWhitespace)(O,4)+`
|
|
704
|
+
</ApolloProvider>
|
|
705
|
+
);`,P=`
|
|
706
|
+
/* This is an example snippet - you should consider tailoring it
|
|
707
|
+
to your service.
|
|
708
|
+
*/
|
|
709
|
+
`+v+D+`
|
|
710
|
+
|
|
711
|
+
`+y+`
|
|
712
|
+
|
|
713
|
+
`+T+`
|
|
714
|
+
|
|
715
|
+
`+Y+`
|
|
716
|
+
|
|
717
|
+
ReactDOM.render(container, document.getElementById("root"));`;return(0,Bi.collapseExtraNewlines)(P.trim())}};zh.default=Aze;Object.defineProperty(Vh,"__esModule",{value:!0});var Sze=jh,Tze=t2(Sze),Dze=zh,Nze=t2(Dze);function t2(t){return t&&t.__esModule?t:{default:t}}Vh.default=[Tze.default,Nze.default];const Oze=ii(Yae),Ize=ii(sx),Lze=ii(ax);var Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.graphQLFetcher=void 0;var Fze=Fh;const Rze=t=>{const e=(0,Fze.parse)(t.query);for(const n of e.definitions)if(n.kind==="OperationDefinition"&&n.operation==="subscription")return!0;return!1},Mze=(t,e)=>{let n=null;return o=>(t&&n!==null&&t.unsubscribe(n),t&&Rze(o)?{subscribe(i){i.next("Your subscription data will appear here after server publication!"),n=t.subscribe({query:o.query,variables:o.variables},(a,c)=>{a?i.error(a):i.next(c)})}}:e(o))};Vu.graphQLFetcher=Mze;Object.defineProperty(K1,"__esModule",{value:!0});var qze=K1.default=ju,uo=ie,qr=fi(J1),Pze=fx,Bze=fi(cx),Vze=fi(px),Ho=fi(R6e),jze=fi(Ka),Uze=fi(JUe),zze=fi(Vh),H1=Fh,n2=Oze,G1=Ize,tl=Lze,Hze=Vu,ln=X1,W1;const Gze=["endpoint","title","enableCodeExporter","enableQueryComposer","enableHistory","extraCodeSnippets"];function fi(t){return t&&t.__esModule?t:{default:t}}function Wze(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function Q1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Y1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Q1(Object(n),!0).forEach(function(o){Qze(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Qze(t,e,n){return e=Yze(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yze(t){var e=Jze(t,"string");return typeof e=="symbol"?e:String(e)}function Jze(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zze(t,e){if(t==null)return{};var n=Xze(t,e),o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)o=a[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Xze(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,a;for(a=0;a<o.length;a++)i=o[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Kze(){const{toggle:t}=(0,n2.useHistoryContext)();return(0,ln.jsx)(Ho.default.Button,{onClick:t,label:"History",title:"Show History"})}function e8e(){const t=(0,n2.usePrettifyEditors)();return(0,ln.jsx)(Ho.default.Button,{onClick:t,label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"})}function ju(t){const e=(0,tl.mergeProps)(t,ju,["style","persistentQuery","enableQueryComposer","enableCodeExporter","enableHistory"]),n=(0,G1.useLocation)(),o=(0,G1.useNavigate)(),i=(0,uo.useRef)(null),a=(0,uo.useRef)(null),[c,f]=(0,uo.useState)(null),[d,h]=(0,uo.useState)(e.defaultQuery||"{}"),[v,y]=(0,uo.useState)(e.enableQueryComposer),[g,E]=(0,uo.useState)(!1),C=H=>{const{pathname:R,search:x}=n,j=(0,tl.parseQuery)(x);j.query=H;const J="".concat(R,"?").concat((0,tl.stringifyQuery)(j));o(J)};(0,uo.useEffect)(()=>{if(e.persistentQuery){const H=(0,tl.parseQuery)(window.location.search);H.query?h(H.query):C(d)}},[]);const S=H=>{H!==d&&e.persistentQuery&&C(H),h(H)},N=()=>{y(!v)},D=()=>E(!g),T=()=>{a.current&&(a.current.close(),a.current=null);const{endpoint:H}=e;let R=H.replace(/https?:\/\//,"ws://");H.indexOf("https://")===0&&(R=R.replace("ws://","wss://")),a.current=new AbsintheSocketGraphiql.SubscriptionsClient(localStorage.getItem("websocket")||"".concat(R,"/socket"),{reconnect:!0,connectionParams:{}})},O=async H=>{const R=typeof e.extraHeaders=="function"?e.extraHeaders():e.extraHeaders||{};return(await(0,Bze.default)({method:"post",url:e.endpoint,data:H,headers:Object.assign({"Content-Type":"application/json"},R)})).data},V=H=>H.query.indexOf("subscription")>=0?(T(),(0,Hze.graphQLFetcher)(a.current,O)(H)):O(H);(0,uo.useEffect)(()=>{O({query:(0,H1.getIntrospectionQuery)()}).then(H=>{i.current&&f((0,H1.buildClientSchema)(H.data))})},[i.current]);const{endpoint:Y,title:P,enableCodeExporter:U,enableQueryComposer:K,enableHistory:G,extraCodeSnippets:Q}=e,oe=Zze(e,Gze),_e=[...Q,...zze.default];return(0,ln.jsxs)(t8e,Y1(Y1({},oe),{},{children:[(0,ln.jsx)(Vze.default,{url:"//cdn.jsdelivr.net/npm/@absinthe/socket-graphiql@0.2.1/compat/umd/index.js"}),K&&(0,ln.jsx)(jze.default,{schema:c,query:d,onEdit:S,onRunOperation:H=>i.current.handleRunQuery(H),explorerIsOpen:v,onToggleExplorer:N,className:"graphiql-explorer"}),(0,ln.jsxs)(Ho.default,{ref:i,fetcher:V,schema:c,query:d,onEditQuery:S,children:[(0,ln.jsx)(Ho.default.Logo,{children:P}),(0,ln.jsxs)(Ho.default.Toolbar,{children:[(0,ln.jsx)(e8e,{}),G&&(0,ln.jsx)(Kze,{}),K&&(0,ln.jsx)(Ho.default.Button,{onClick:N,label:"Query Composer",title:"Toggle Query Composer"}),U&&(0,ln.jsx)(Ho.default.Button,{onClick:D,label:"Code Exporter",title:"Toggle Code Exporter"})]})]}),U&&g&&(0,ln.jsx)("div",{className:"graphiql-container graphiql-exporter-container",children:(0,ln.jsx)(Uze.default,{hideCodeExporter:D,snippets:_e,serverUrl:Y,query:d,codeMirrorTheme:"neo"})})]}))}ju.propTypes={endpoint:qr.default.string.isRequired,defaultQuery:qr.default.string,title:qr.default.string,persistentQuery:qr.default.bool,enableQueryComposer:qr.default.bool,enableCodeExporter:qr.default.bool,enableHistory:qr.default.bool,extraCodeSnippets:qr.default.array,extraHeaders:qr.default.any};ju.defaultProps={title:"Query",defaultQuery:"{}",persistentQuery:!1,enableQueryComposer:!0,enableCodeExporter:!1,enableHistory:!1,extraCodeSnippets:[],extraHeaders:{}};const t8e=(0,Pze.styled)("div")(W1||(W1=Wze([`
|
|
718
|
+
display: flex;
|
|
719
|
+
flex-direction: row;
|
|
720
|
+
flex: 1;
|
|
721
|
+
overflow: hidden;
|
|
722
|
+
height: 100%;
|
|
723
|
+
position: relative;
|
|
724
|
+
|
|
725
|
+
@media (max-width: `,`px) {
|
|
726
|
+
margin-top: 30px;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
> .historyPaneWrap {
|
|
730
|
+
z-index: 8 !important;
|
|
731
|
+
width: 320px !important;
|
|
732
|
+
box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, `,`);
|
|
733
|
+
overflow-y: scroll;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
.doc-explorer-title-bar,
|
|
737
|
+
.history-title-bar {
|
|
738
|
+
height: 45px;
|
|
739
|
+
line-height: 45px;
|
|
740
|
+
padding: 0px 8px;
|
|
741
|
+
display: flex;
|
|
742
|
+
align-items: center;
|
|
743
|
+
justify-content: space-between;
|
|
744
|
+
}
|
|
745
|
+
.doc-explorer-title-bar {
|
|
746
|
+
padding: 0px 32px;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.doc-explorer-title,
|
|
750
|
+
.history-title {
|
|
751
|
+
font-size: 14px;
|
|
752
|
+
font-weight: 900;
|
|
753
|
+
letter-spacing: 2px;
|
|
754
|
+
color: `,`;
|
|
755
|
+
text-transform: uppercase;
|
|
756
|
+
text-align: left !important;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.doc-explorer-contents {
|
|
760
|
+
min-height: 0;
|
|
761
|
+
}
|
|
762
|
+
.history-contents {
|
|
763
|
+
top: 45px !important;
|
|
764
|
+
background-color: `,` !important;
|
|
765
|
+
border-top: 1px solid #e3e3e3 !important;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.history-contents {
|
|
769
|
+
color: `,`;
|
|
770
|
+
p {
|
|
771
|
+
border-bottom: 1px solid #e3e3e3;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.docExplorerHide {
|
|
776
|
+
color: `,`;
|
|
777
|
+
padding: 0;
|
|
778
|
+
cursor: pointer;
|
|
779
|
+
margin: -7px -8px -6px -12px;
|
|
780
|
+
opacity: 0.75;
|
|
781
|
+
font-size: 18px;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.toolbar-button {
|
|
785
|
+
cursor: pointer;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.graphiql-container {
|
|
789
|
+
.title {
|
|
790
|
+
color: `,`;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.topBar {
|
|
794
|
+
background-image: none;
|
|
795
|
+
height: 45px;
|
|
796
|
+
border-bottom-width: 0;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.docExplorerShow {
|
|
800
|
+
background: `,`;
|
|
801
|
+
border: none;
|
|
802
|
+
font-size: 14px;
|
|
803
|
+
color: `,`;
|
|
804
|
+
text-transform: uppercase;
|
|
805
|
+
|
|
806
|
+
&::before {
|
|
807
|
+
border-color: `,`;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.historyPaneWrap {
|
|
812
|
+
width: 320px !important;
|
|
813
|
+
background-color: `,`;
|
|
814
|
+
box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, `,`);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.search-box {
|
|
818
|
+
margin-bottom: 20px;
|
|
819
|
+
border-bottom: none;
|
|
820
|
+
|
|
821
|
+
input {
|
|
822
|
+
height: 30px;
|
|
823
|
+
border-radius: 15px;
|
|
824
|
+
border: solid 1px `,`;
|
|
825
|
+
padding: 6px 24px 8px 30px;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.search-box-clear {
|
|
829
|
+
right: 10px;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
&::before {
|
|
833
|
+
left: 10px;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.variable-editor-title {
|
|
838
|
+
background: `,`;
|
|
839
|
+
border: none;
|
|
840
|
+
height: 40px;
|
|
841
|
+
padding-left: 20px;
|
|
842
|
+
|
|
843
|
+
&::before {
|
|
844
|
+
border-left: 2px solid `,`;
|
|
845
|
+
border-top: 2px solid `,`;
|
|
846
|
+
content: '';
|
|
847
|
+
display: inline-block;
|
|
848
|
+
height: 9px;
|
|
849
|
+
margin: 0 5px 1px 0;
|
|
850
|
+
position: relative;
|
|
851
|
+
-webkit-transform: rotate(-135deg);
|
|
852
|
+
transform: rotate(-135deg);
|
|
853
|
+
width: 9px;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
.resultWrap {
|
|
858
|
+
border-left: none;
|
|
859
|
+
.CodeMirror-gutters {
|
|
860
|
+
opacity: 0.5;
|
|
861
|
+
}
|
|
862
|
+
.CodeMirror-gutter.CodeMirror-foldgutter {
|
|
863
|
+
box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, `,`);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.CodeMirror,
|
|
868
|
+
.CodeMirror-gutters,
|
|
869
|
+
.CodeMirror-linenumber,
|
|
870
|
+
.CodeMirror-foldgutter {
|
|
871
|
+
background: `,`;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.variable-editor {
|
|
875
|
+
.CodeMirror {
|
|
876
|
+
background: white;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.CodeMirror-gutters {
|
|
881
|
+
border-right-width: 0;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.graphiql-exporter-container {
|
|
886
|
+
width: auto;
|
|
887
|
+
.historyPaneWrap {
|
|
888
|
+
position: absolute !important;
|
|
889
|
+
height: 100%;
|
|
890
|
+
top: 0;
|
|
891
|
+
right: 0;
|
|
892
|
+
background-color: `,`;
|
|
893
|
+
box-shadow: -5px 16px 10px 0 rgba(0, 0, 0, `,`);
|
|
894
|
+
z-index: 3;
|
|
895
|
+
|
|
896
|
+
.history-contents {
|
|
897
|
+
padding-top: 12px;
|
|
898
|
+
.toolbar-button {
|
|
899
|
+
margin-top: -24px !important;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
`])),t=>t.theme.breakpoints.values.md,t=>t.theme.mode==="light"?.05:.5,t=>t.theme.typography.color.gray,t=>t.theme.palette.background.default,t=>t.theme.typography.color.main,t=>t.theme.typography.color.main,t=>t.theme.typography.color.main,t=>t.theme.palette.background.default,t=>t.theme.typography.color.main,t=>t.theme.typography.color.gray,t=>t.theme.palette.background.default,t=>t.theme.mode==="light"?.05:.5,t=>t.theme.typography.color.main,t=>t.theme.palette.background.default,t=>t.theme.typography.color.gray,t=>t.theme.typography.color.gray,t=>t.theme.mode==="light"?.05:.5,t=>t.theme.palette.background.default,t=>t.theme.palette.background.default,t=>t.theme.mode==="light"?.05:.5),n8e=`{
|
|
905
|
+
getNodeInfo {
|
|
906
|
+
code
|
|
907
|
+
info {
|
|
908
|
+
did
|
|
909
|
+
pk
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}`,r8e=()=>{const t={},e=ux();return e&&(t.Authorization=`Bearer ${e}`),typeof window<"u"&&typeof window.location<"u"&&(t["x-real-hostname"]=window.location.hostname,t["x-real-port"]=window.location.port,t["x-real-protocol"]=window.location.protocol),t};function o8e(){const{t}=ie.useContext(lx);return X1.jsx(qze,{defaultQuery:n8e,endpoint:`${window.env&&window.env.apiPrefix?window.env.apiPrefix:""}/api/gql`.replace(/\/+/g,"/").trim(),title:t("common.console"),enableHistory:!0,enableQueryComposer:!0,enableCodeExporter:!1,extraHeaders:r8e})}const d8e=Object.freeze(Object.defineProperty({__proto__:null,default:o8e},Symbol.toStringTag,{value:"Module"}));export{Ge as $,N0 as A,ob as B,By as C,Te as D,w0 as E,K0 as F,yo as G,eb as H,sy as I,X0 as J,F as K,u8e as L,Nd as M,_$ as N,Dd as O,f8e as P,Rd as Q,p8e as R,ma as S,ga as T,rb as U,j0 as V,Fd as W,Md as X,qe as Y,kr as Z,Fe as _,va as a,vt as a0,sl as a1,d8e as a2,fn as b,c8e as c,Ke as d,Er as e,cw as f,Rt as g,Ep as h,_r as i,un as j,at as k,Ie as l,Ji as m,Ln as n,Xi as o,Xn as p,ad as q,Ut as r,l8e as s,Je as t,re as u,pn as v,db as w,ub as x,F0 as y,T0 as z};
|