tocco-test-bundle 3.14.3 → 3.14.5
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/changelog.md +10 -0
- package/dist/{a392c1300172c8d16d524b8ce2d43ac2.js → 01b769b06e3967d7382e74f2c443ca6e.js} +1 -1
- package/dist/{fd39a83fd8083f7924f23beb597cb741.js → 022fc31e47969919bef8f04c7ceb6396.js} +1 -1
- package/dist/0bf319cb891a35363be356125cf61925.js +1 -0
- package/dist/0e579f8a92c87ee13f03bbb00bfd6965.js +1 -0
- package/dist/0e9edc546e19e0d70ebaeec446142d3f.js +1 -0
- package/dist/{33062102a809cea705ff3056240885a2.js → 13af25d8fed0d9e4791c394dc81d8464.js} +1 -1
- package/dist/157d1af856797eaa6a6d4517a5335299.js +1 -0
- package/dist/1983055014f3f7a31b72b9c24eebfe2e.js +1 -0
- package/dist/1b399d419893e83d7aea276705c2cd46.js +1 -0
- package/dist/21f7b39463990a82836f2a191cd5cae0.js +1 -0
- package/dist/2b385abd24ebcff8a1c7de52aa2970ab.js +1 -0
- package/dist/32cf6d8a099c0a653928cbc9a05af5da.js +1 -0
- package/dist/39905a91c8798a03c4eb63c056afa6ca.js +1 -0
- package/dist/3b26795ad1700506b62e1171ff6fcd9b.js +1 -0
- package/dist/{05922e9c75ebd5e5ccf6f4dc59320e0d.js → 3bee0656a21a6106946d9f424fc22337.js} +1 -1
- package/dist/{118fa9ea46f9ba830cd0e843f4d3385a.js → 41a77c181e7d3172f53496cb25166d13.js} +1 -1
- package/dist/445f03a14fb3c05dd874081d6dd253c5.js +1 -0
- package/dist/44efcea2f84e80cc4092a89796afe886.js +1 -1
- package/dist/4a6267dec7be9330fdc16420155bb0a1.js +1 -0
- package/dist/4c58f8c25d90271216f011b2a934eda0.js +1 -0
- package/dist/4db8b05f109448d519f60cbb920dc38e.js +1 -0
- package/dist/4f2451dd2095d05141a5c24fab1594e1.js +1 -0
- package/dist/5398e3b596fa15df4d84b2aa0464e5c4.js +1 -1
- package/dist/59a611f8d5db45f8e2895d41ad414efc.js +1 -0
- package/dist/5aff3ea7c7d1e0dc497a4c9b39bec043.js +1 -0
- package/dist/{f13b8474637a47ca4401e1674e391466.js → 5ffbb9579edc192b3e268a1f47fa61ae.js} +1 -1
- package/dist/60d2bacc2e51eabc2bb0afa982fffb56.js +1 -1
- package/dist/{caf0856934a6dcba7b4a70fb5897a4c9.js → 60f8f158539619aaf544fa35ce8daccd.js} +1 -1
- package/dist/624769dc77b43d9abfa0a06bd4504787.js +1 -0
- package/dist/{b60ba1535a60c18ce97b4e7f53ddbe67.js → 629e56c05a8ab32ebfd5d058ba8d242d.js} +1 -1
- package/dist/6eac646091211287dd5e5b376c755110.js +1 -0
- package/dist/{77d2c612b57621e7c723a71cce67cbfc.js → 732e6b65765e6a792f04be1fa30993a5.js} +1 -1
- package/dist/{393edb0552508a3e36dd3922b33fe642.js → 74988a42599f1bd6a3a890e5f582da2b.js} +1 -1
- package/dist/78c709e6b518df25c267f2a5116de970.js +1 -0
- package/dist/{9a1770fb5ef173575790243507a91740.js → 8024bca4a1198cc51cbffaa7a907ee99.js} +1 -1
- package/dist/82ff13fbc1af95d2d76ca788fd72e607.js +1 -0
- package/dist/9cf355c4d876c36b2906cab552c69eef.js +1 -0
- package/dist/9ebb9ac2c9c875649c72722bc585d445.js +1 -1
- package/dist/{add6c4cce3d9d8f1de24094ebb4bfa5b.js → a1c12fd9c6c9e1b151ad99a847f09006.js} +1 -1
- package/dist/a2242e107926b9274a7f57b52fba4a29.js +1 -0
- package/dist/{15deb9e34e10dc53410fddda6ef1d48c.js → a66a34e3af97cd404f0cf6a5ded342c5.js} +1 -1
- package/dist/b243eabb7cb281a20eae3523742d562f.js +1 -0
- package/dist/b3147425240a31fc04d7aaf7f0fbd3d3.js +1 -0
- package/dist/b9ca55e245b8bbed49058e9dada2dd14.js +1 -0
- package/dist/bb5476e5e0c5368b031ba774c0f23999.js +1 -0
- package/dist/{6c6d192b6860b4508a14c2d04769a35e.js → bc27b2d7127da36a976f00f889810836.js} +1 -1
- package/dist/c81814fb2ec8bab7bb415b5a40ed93b5.js +1 -0
- package/dist/c8deee9d1d08e50285fe2b1c2897bca5.js +1 -0
- package/dist/c9e94edb706994da8aee83c3593cb2d0.js +1 -0
- package/dist/cb4380c2fd4e67769f509b2be529d7b2.js +1 -0
- package/dist/{chunk-103.ef00d2082dead263a329.js → chunk-103.b8c89660499a8fc3f812.js} +8 -8
- package/dist/chunk-638.d989a57022115997153b.js +1 -0
- package/dist/chunk-vendor-fontawesome.5959680ef6287bda15b6.js +7 -0
- package/dist/ckeditor4/ckeditor-new.js +1 -1
- package/dist/ckeditor4/plugins/autoembed/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/autoembed/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/bidi/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/codemirror/js/codemirror.min.js +1 -1
- package/dist/ckeditor4/plugins/codesnippet/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/codesnippet/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/colorbutton/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/colordialog/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/copyformatting/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/_translationstatus.txt +27 -0
- package/dist/ckeditor4/plugins/devtools/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/devtools/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/div/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/docprops/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/easyimage/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/embedbase/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/emoji/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/find/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/font/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/forms/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/iframe/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/image2/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/imagebase/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/language/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/liststyle/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/mathjax/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/newpage/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/pagebreak/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/placeholder/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/preview/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/print/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/save/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/selectall/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/showblocks/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/smiley/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/sourcedialog/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/bn.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/bs.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/en-ca.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/fo.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/gu.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/hi.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/is.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ka.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/lt.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/mn.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ms.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/th.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/templates/lang/zh.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/_translationstatus.txt +27 -0
- package/dist/ckeditor4/plugins/uicolor/lang/af.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ar.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/az.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/bg.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ca.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/cs.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/cy.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/da.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/el.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/en-au.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/en-gb.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/eo.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/es-mx.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/es.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/et.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/eu.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/fa.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/fi.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/fr-ca.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/gl.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/he.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/hr.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/hu.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/id.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ja.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/km.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ko.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ku.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/lv.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/mk.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/nb.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/nl.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/no.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/oc.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/pl.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/pt-br.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/pt.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ro.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ru.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/si.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sk.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sl.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sq.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sr-latn.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sr.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/sv.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/tr.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/tt.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/ug.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/uk.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/vi.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/zh-cn.js +1 -0
- package/dist/ckeditor4/plugins/uicolor/lang/zh.js +1 -0
- package/dist/{dd6d3e34e82e105b85f3dc94c559c131.js → da4a891d81f066ebf82f298c53bd4ed8.js} +1 -1
- package/dist/dc7ab72407b0b44ef5dae159373de53b.js +1 -0
- package/dist/{f15362a7feef894b2e7f706252e6c510.js → e763b242cf412f4c38ae1e396a14c65b.js} +1 -1
- package/dist/ec7b3f184238605a5239da7559e6cff9.js +1 -1
- package/dist/f69b43eccd9faed6d9182fac0b2a176d.js +1 -0
- package/dist/{a8d9dfda57852b40039194572604a8ea.js → f6dc1ef066da7f1c3e5c5fc1462f7be0.js} +1 -1
- package/dist/fd00121832e53db8249f7985d80ccd44.js +1 -0
- package/dist/{237d897892d45083fa60f6b81d5254ee.js → ffad2148b8bc7ae6ffab93632f7cdd03.js} +1 -1
- package/dist/user-menu.js +12 -12
- package/package.json +1 -1
- package/dist/0d56a1f26e052a1bafd10a87782fc74b.js +0 -1
- package/dist/0ef4f23698e5fa8b52b1992366d85c0c.js +0 -1
- package/dist/2cfc7330425be8d26b1ca0fa500c90b7.js +0 -1
- package/dist/33d17d2cf6a71b82afeedb48f7928e56.js +0 -1
- package/dist/4502463be1912caf44ea4cb0af02b944.js +0 -1
- package/dist/6b09edfd49172cff5174b710ba90a2e5.js +0 -1
- package/dist/73cfa70f37190781e3fb6f3542574b91.js +0 -1
- package/dist/8c6220f01c8d5232db7dd6f8410fae08.js +0 -1
- package/dist/953c932d71a79a72673405ec103b5739.js +0 -1
- package/dist/9979f39c4d2773e02151a6cf1558101b.js +0 -1
- package/dist/a39d18e77a42bed1605d9b8760a065cf.js +0 -1
- package/dist/a3f2f385174625bc7046e29bf9d8c904.js +0 -1
- package/dist/a53ca23c172b4fa25b041ddd880555d8.js +0 -1
- package/dist/aa973685905798627140a5159a35b395.js +0 -1
- package/dist/aacdaa55e7b7626a9b15f52be049079d.js +0 -1
- package/dist/af6e31c060c273848b5fec9fdba8814d.js +0 -1
- package/dist/babd8df6809ef43238f1b280c2cebfe3.js +0 -1
- package/dist/bfbf008c2d6aebaec1764670826893bb.js +0 -1
- package/dist/c57f41cfe19507d8b44502752396695a.js +0 -1
- package/dist/c7b15736f0a5f688545ac278ce1f3366.js +0 -1
- package/dist/ceecba6f637fcd258c33ac42d59c3166.js +0 -1
- package/dist/chunk-638.92d80d53654392c9cb11.js +0 -1
- package/dist/chunk-vendor-fontawesome.86a8d6ec715f64d06e8f.js +0 -7
- package/dist/d11ab4aa7dd9123fdecb075ff5c5a748.js +0 -1
- package/dist/d188c3ef36e0a991304717ef4bf0b118.js +0 -1
- package/dist/d1907231dc06c32481fefd6d47da973b.js +0 -1
- package/dist/d2242507bff41457eace047e5b93394e.js +0 -1
- package/dist/dd95c7ba45d24f75fd2ec04726836339.js +0 -1
- package/dist/e5dec17f3116be7e2b2307e43cd14e86.js +0 -1
- package/dist/f9a0bb7f948ede9bf3f34989aef482db.js +0 -1
- package/dist/f9bfa6a6410f75b5729fee89b56e3a86.js +0 -1
- package/dist/fcdcf2096a3f2854ee4323211e0dd89d.js +0 -1
- package/dist/fd98f0e48b18e1de428edd5174539c2a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("codemirror.js",t):(e=e||self).CodeMirror=t()}(this,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=r||i||o,s=l&&(r?document.documentMode||6:+(o||i)[1]),a=!o&&/WebKit\//.test(e),u=(r=a&&/Qt\/\d+\.\d+/.test(e),!o&&/Chrome\/(\d+)/.exec(e)),c=u&&+u[1],h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=d&&(/Mobile\/\w+/.test(e)||2<navigator.maxTouchPoints),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=(i=/win/i.test(t),(o=(o=h&&e.match(/Version\/(\d*\.\d*)/))&&Number(o[1]))&&15<=o&&(a=!(h=!1)),y&&(r||h&&(null==o||o<12.11))),x=n||l&&9<=s;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S=function(e,t){var n,r=e.className;(t=C(t).exec(r))&&(n=r.slice(t.index+t[0].length),e.className=r.slice(0,t.index)+(n?t[1]+n:""))};function L(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firstChild);return e}function k(e,t){return L(e).appendChild(t)}function T(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){return(e=T(e,t,n,r)).setAttribute("role","presentation"),e}function N(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if((t=11==t.nodeType?t.host:t)==e)return!0}while(t=t.parentNode)}function O(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function A(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function D(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}var W=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r},H=function(e){e.select()};function F(e){return e.display.wrapper.ownerDocument}function P(e){return F(e).defaultView}function E(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var r in t=t||{},e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function I(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||t<=s)return l+(t-o);l=(l+=s-o)+(n-l%n),o=s+1}}function R(){this.id=null,this.f=null,this.time=0,this.handler=E(this.onTimeout,this)}function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}g?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(H=function(e){try{e.select()}catch(e){}}),R.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};var G=50,U={toString:function(){return"CodeMirror.Pass"}},V={scroll:!(R.prototype.set=function(e,t){this.f=t,t=+new Date+e,(!this.id||t<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=t)})},K={origin:"*mouse"},j={origin:"+move"};function X(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r),l=(o=-1==o?e.length:o)-r;if(o==e.length||t<=i+l)return r+Math.min(l,t-i);if(i+=o-r,r=o+1,t<=(i+=n-i%n))return r}}var Y=[""];function $(e){for(;Y.length<=e;)Y.push(_(Y)+" ");return Y[e]}function _(e){return e[e.length-1]}function q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Z(){}function Q(e,t){return e=Object.create?Object.create(e):(Z.prototype=e,new Z),t&&z(t,e),e}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ee(e){return/\w/.test(e)||""<e&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function te(e,t){return t?!!(-1<t.source.indexOf("\\w")&&ee(e))||t.test(e):ee(e)}function ne(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return;return 1}var re=/[\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 ie(e){return 768<=e.charCodeAt(0)&&re.test(e)}function oe(e,t,n){for(;(n<0?0<t:t<e.length)&&ie(e.charAt(t));)t+=n;return t}function le(e,t,n){for(var r=n<t?-1:1;;){if(t==n)return t;var i=(t+n)/2;if((i=r<0?Math.ceil(i):Math.floor(i))==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var se=null;function ae(e,t,n){var r;se=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:se=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:se=i)}return null!=r?r:se}ue=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ce=/[stwN]/,he=/[LRr]/,de=/[Lb1n]/,fe=/[1n]/;var ue,ce,he,de,fe,pe=function(e,t){var n="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!ue.test(e))return!1;for(var r,i=e.length,o=[],l=0;l<i;++l)o.push((r=e.charCodeAt(l))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L");for(var s=0,a=n;s<i;++s){var u=o[s];"m"==u?o[s]=a:a=u}for(var c=0,h=n;c<i;++c){var d=o[c];"1"==d&&"r"==h?o[c]="n":he.test(d)&&"r"==(h=d)&&(o[c]="R")}for(var f=1,p=o[0];f<i-1;++f){var g=o[f];"+"==g&&"1"==p&&"1"==o[f+1]?o[f]="1":","!=g||p!=o[f+1]||"1"!=p&&"n"!=p||(o[f]=p),p=g}for(var m=0;m<i;++m){var v=o[m];if(","==v)o[m]="N";else if("%"==v){var y=void 0;for(y=m+1;y<i&&"%"==o[y];++y);for(var b=m&&"!"==o[m-1]||y<i&&"1"==o[y]?"1":"N",w=m;w<y;++w)o[w]=b;m=y-1}}for(var x=0,C=n;x<i;++x){var S=o[x];"L"==C&&"1"==S?o[x]="L":he.test(S)&&(C=S)}for(var L=0;L<i;++L)if(ce.test(o[L])){var k=void 0;for(k=L+1;k<i&&ce.test(o[k]);++k);for(var T="L"==(L?o[L-1]:n),M=T==("L"==(k<i?o[k]:n))?T?"L":"R":n,N=L;N<k;++N)o[N]=M;L=k-1}for(var O,A=[],D=0;D<i;)if(de.test(o[D])){var W=D;for(++D;D<i&&de.test(o[D]);++D);A.push(new ge(0,W,D))}else{var H=D,F=A.length,P="rtl"==t?1:0;for(++D;D<i&&"L"!=o[D];++D);for(var E=H;E<D;)if(fe.test(o[E])){H<E&&(A.splice(F,0,new ge(1,H,E)),F+=P);var z=E;for(++E;E<D&&fe.test(o[E]);++E);A.splice(F,0,new ge(2,z,E)),F+=P,H=E}else++E;H<D&&A.splice(F,0,new ge(1,H,D))}return"ltr"==t&&(1==A[0].level&&(O=e.match(/^\s+/))&&(A[0].from=O[0].length,A.unshift(new ge(0,0,O[0].length))),1==_(A).level&&(O=e.match(/\s+$/))&&(_(A).to-=O[0].length,A.push(new ge(0,i-O[0].length,i)))),"rtl"==t?A.reverse():A};function ge(e,t,n){this.level=e,this.from=t,this.to=n}function me(e,t){var n=e.order;return null==n?e.order=pe(e.text,t):n}var ve=[],ye=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):(e=e._handlers||(e._handlers={}))[t]=(e[t]||ve).concat(n)};function be(e,t){return e._handlers&&e._handlers[t]||ve}function we(e,t,n){var r;e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):(r=(e=e._handlers)&&e[t])&&-1<(n=B(r,n))&&(e[t]=r.slice(0,n).concat(r.slice(n+1)))}function xe(e,t){var n=be(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ce(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Se(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Le(e,t){return 0<be(e,t).length}function ke(e){e.prototype.on=function(e,t){ye(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){Te(e),Me(e)}function Ae(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t?3:t}var We,He,Fe=function(){if(l&&s<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t),o=(-1==i&&(i=e.length),e.slice(t,"\r"==e.charAt(i-1)?i-1:i)),l=o.indexOf("\r");-1!=l?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ee=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze="oncopy"in(t=T("div"))||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy),Ie=null,Re={},Be={};function Ge(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];(e=Q(t="string"==typeof t?{name:t}:t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=Ge(t);var n=Re[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i,o=Ve[t.name];for(i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var Ve={};function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n,r={};for(n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function je(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Xe(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $e(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function _e(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){e=e.text,i==n.line&&(e=e.slice(0,n.ch)),i==t.line&&(e=e.slice(t.ch)),r.push(e),++i})),r}function qe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ze(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Qe(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;r=(t=r).parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Je(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l].height;if(t<s)break;t-=s}return n+l}function et(e,t){return t>=e.first&&t<e.first+e.size}function tt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function nt(e,t,n){if(void 0===n&&(n=null),!(this instanceof nt))return new nt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function rt(e,t){return e.line-t.line||e.ch-t.ch}function it(e,t){return e.sticky==t.sticky&&0==rt(e,t)}function ot(e){return nt(e.line,e.ch)}function lt(e,t){return rt(e,t)<0?t:e}function st(e,t){return rt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ut(e,t){if(t.line<e.first)return nt(e.first,0);var n=e.first+e.size-1;return t.line>n?nt(n,$e(e,n).text.length):(e=$e(e,(n=t).line).text.length,null==(t=n.ch)||e<t?nt(n.line,e):t<0?nt(n.line,0):n)}function ct(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ut(e,t[r]);return n}function ht(e,t){this.state=e,this.lookAhead=t}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(e="string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){if(-1<(e=this.string.indexOf(e,this.pos)))return this.pos=e,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=I(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return I(this.string,null,this.tabSize)-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,t,n){var r;if("string"!=typeof e)return(r=this.string.slice(this.pos).match(e))&&0<r.index?null:(r&&!1!==t&&(this.pos+=r[0].length),r);function i(e){return n?e.toLowerCase():e}return i(this.string.substr(this.pos,e.length))==i(e)?(!1!==t&&(this.pos+=e.length),!0):void 0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var dt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){for(var i=[e.state.modeGen],o={},l=(Ct(e,t.text,e.doc.mode,n,(function(e,t){i.push(e,t)}),o,r),n.state),s=0;s<e.state.overlays.length;++s)!function(r){n.baseTokens=i;var s=e.state.overlays[r],a=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,(function(e,t){for(var n=a;u<e;){var r=i[a];e<r&&i.splice(a,1,e,i[a+1],r),a+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;n<a;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=l,n.baseTokens=null,n.baseTokenPos=1}(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function pt(e,t,n){var r,i,o;return t.styles&&t.styles[0]==e.state.modeGen||(r=gt(e,Qe(t)),i=t.text.length>e.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=ft(e,t,r),i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))),t.styles}function gt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new dt(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;l<s;--s){if(s<=o.first)return o.first;var a=$e(o,s-1),u=a.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;u=I(a.text,null,e.options.tabSize),(null==i||u<r)&&(i=s-1,r=u)}return i}(e,t,n),l=o>r.first&&$e(r,o-1).stateAfter,s=l?dt.fromSaved(r,l,o):new dt(r,Xe(r.mode),o);return r.iter(o,t,(function(n){mt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function mt(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&vt(i,n.state);!o.eol();)yt(i,o,n.state),o.start=o.pos}function vt(e,t){return e.blankLine?e.blankLine(t):e.innerMode?(e=je(e,t)).mode.blankLine?e.mode.blankLine(e.state):void 0:void 0}function yt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}dt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},dt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},dt.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},dt.fromSaved=function(e,t,n){return t instanceof ht?new dt(e,Ke(e.mode,t.state),n,t.lookAhead):new dt(e,Ke(e.mode,t),n)},dt.prototype.save=function(e){return e=!1!==e?Ke(this.doc.mode,this.state):this.state,0<this.maxLookAhead?new ht(e,this.maxLookAhead):e};var bt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function wt(e,t,n,r){var i,o,l=e.doc,s=l.mode,a=$e(l,(t=ut(l,t)).line),u=gt(e,t.line,n),c=new Ye(a.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=yt(s,c,u.state),r&&o.push(new bt(c,i,Ke(l.mode,u.state)));return r?o:new bt(c,i,u.state)}function xt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ct(e,t,n,r,i,o,l){var s=n.flattenSpans,a=(null==s&&(s=e.options.flattenSpans),0),u=null,c=new Ye(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&xt(vt(n,r.state),o);!c.eol();){var d,f=c.pos>e.options.maxHighlightLength?(s=!1,l&&mt(e,t,r,c.pos),c.pos=t.length,null):xt(yt(n,c,r.state,h),o);if(!h||(d=h[0].name)&&(f="m-"+(f?d+" "+f:d)),!s||u!=f){for(;a<c.start;)i(a=Math.min(c.start,a+5e3),u);u=f}c.start=c.pos}for(;a<c.pos;){var p=Math.min(c.pos,a+5e3);i(p,u),a=p}}var St=!1,Lt=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function Tt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Mt(e,t){if(t.full)return null;var n=et(e,t.from.line)&&$e(e,t.from.line).markedSpans;e=et(e,t.to.line)&&$e(e,t.to.line).markedSpans;if(!n&&!e)return null;var r=t.from.ch,i=t.to.ch,o=0==rt(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,l=e[i],s=l.marker;null!=l.from&&!(s.inclusiveLeft?l.from<=t:l.from<t)&&(l.from!=t||"bookmark"!=s.type||n&&l.marker.insertLeft)||(o=null==l.to||(s.inclusiveRight?l.to>=t:l.to>t),(r=r||[]).push(new kt(s,l.from,o?null:l.to)))}return r}(n,r,o),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,l=e[i],s=l.marker;null!=l.to&&!(s.inclusiveRight?l.to>=t:l.to>t)&&(l.from!=t||"bookmark"!=s.type||n&&!l.marker.insertLeft)||(o=null==l.from||(s.inclusiveLeft?l.from<=t:l.from<t),(r=r||[]).push(new kt(s,o?null:l.from-t,null==l.to?null:l.to-t)))}return r}(e,i,o),a=1==t.text.length,u=_(t.text).length+(a?r:0);if(l)for(var c=0;c<l.length;++c){var h,d=l[c];null==d.to&&((h=Tt(s,d.marker))?a&&(d.to=null==h.to?null:h.to+u):d.to=r)}if(s)for(var f=0;f<s.length;++f){var p=s[f];null!=p.to&&(p.to+=u),null==p.from?Tt(l,p.marker)||(p.from=u,a&&(l=l||[]).push(p)):(p.from+=u,a&&(l=l||[]).push(p))}l=l&&Nt(l),s&&s!=l&&(s=Nt(s));var g=[l];if(!a){var m,v=t.text.length-2;if(0<v&&l)for(var y=0;y<l.length;++y)null==l[y].to&&(m=m||[]).push(new kt(l[y].marker,null,null));for(var b=0;b<v;++b)g.push(m);g.push(s)}return g}function Nt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ot(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function At(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Dt(e){return e.inclusiveLeft?-1:0}function Wt(e){return e.inclusiveRight?1:0}function Ht(e,t){if(0!=(n=e.lines.length-t.lines.length))return n;var n=e.find(),r=t.find(),i=rt(n.from,r.from)||Dt(e)-Dt(t);return i?-i:(i=rt(n.to,r.to)||Wt(e)-Wt(t))||t.id-e.id}function Ft(e,t){var n,r=Lt&&e.markedSpans;if(r)for(var i,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ht(n,i.marker)<0)&&(n=i.marker);return n}function Pt(e){return Ft(e,!0)}function Et(e){return Ft(e,!1)}function zt(e,t,n,r,i){e=$e(e,t);var o=Lt&&e.markedSpans;if(o)for(var l=0;l<o.length;++l){var s=o[l];if(s.marker.collapsed){var a=s.marker.find(0),u=rt(a.from,n)||Dt(s.marker)-Dt(i),c=rt(a.to,r)||Wt(s.marker)-Wt(i);if(!(0<=u&&c<=0||u<=0&&0<=c)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?0<=rt(a.to,n):0<rt(a.to,n))||0<=u&&(s.marker.inclusiveRight&&i.inclusiveLeft?rt(a.from,r)<=0:rt(a.from,r)<0)))return 1}}}function It(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Rt(e,t){var n=It(e=$e(e,t));return e==n?t:Qe(n)}function Bt(e,t){if(t>e.lastLine())return t;var n,r=$e(e,t);if(!Gt(e,r))return t;for(;n=Et(r);)r=n.find(1,!0).line;return Qe(r)+1}function Gt(e,t){var n=Lt&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&function e(t,n,r){var i;if(null==r.to)return e(t,(i=r.marker.find(1,!0)).line,Tt(i.line.markedSpans,r.marker));if(r.marker.inclusiveRight&&r.to==n.text.length)return!0;for(var o=void 0,l=0;l<n.markedSpans.length;++l)if((o=n.markedSpans[l]).marker.collapsed&&!o.marker.widgetNode&&o.from==r.to&&(null==o.to||o.to!=r.from)&&(o.marker.inclusiveLeft||r.marker.inclusiveRight)&&e(t,n,o))return!0}(e,t,r))return!0}}function Ut(e){for(var t=0,n=(e=It(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==n)break;t+=s.height}return t}function Vt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pt(r);){var i=t.find(0,!0);r=i.from.line;n+=i.from.ch-i.to.ch}for(r=e;t=Et(r);){var o=t.find(0,!0);n=(n-=r.text.length-o.from.ch)+((r=o.to.line).text.length-o.to.ch)}return n}function Kt(e){var t=e.display;e=e.doc;t.maxLine=$e(e,e.first),t.maxLineLength=Vt(t.maxLine),t.maxLineChanged=!0,e.iter((function(e){var n=Vt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var jt=function(e,t,n){this.text=e,At(this,t),this.height=n?n(this):1};jt.prototype.lineNo=function(){return Qe(this)},ke(jt);var Xt={},Yt={};function $t(e,t){return!e||/^\s*$/.test(e)?null:(t=t.addModeClass?Yt:Xt)[e]||(t[e]=e.replace(/\S+/g,"cm-$&"))}function _t(e,t){var n=M("span",null,null,a?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,u=void 0;u=(r.pos=0,r.addToken=qt,function(e){if(null!=He)return He;var t=k(e,document.createTextNode("AخA")),n=W(t,0,1).getBoundingClientRect();t=W(t,1,2).getBoundingClientRect();return L(e),n&&n.left!=n.right&&(He=t.right-n.right<3)}(e.display.measure)&&(u=me(o,e.doc.direction))&&(r.addToken=function(e,t){return function(n,r,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var h=void 0,d=0;d<t.length&&!((h=t[d]).to>u&&h.from<=u);d++);if(h.to>=c)return e(n,r,i,o,l,s,a);e(n,r.slice(0,h.to-u),i,o,null,s,a),o=null,r=r.slice(h.to-u),u=h.to}}}(r.addToken,u)),r.map=[],t!=e.display.externalMeasured&&Qe(o));!function(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var l,s,a,u,c,h,d,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){a=u=c=s="",h=d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],C=x.marker;if("bookmark"==C.type&&x.from==p&&C.widgetNode)y.push(C);else if(x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b=b||[]).push(C.endStyle,x.to),C.title&&((d=d||{}).title=C.title),C.attributes)for(var S in C.attributes)(d=d||{})[S]=C.attributes[S];C.collapsed&&(!h||Ht(h.marker,C)<0)&&(h=x)}else x.from>p&&v>x.from&&(v=x.from)}if(b)for(var L=0;L<b.length;L+=2)b[L+1]==v&&(u+=" "+b[L]);if(!h||h.from==p)for(var k=0;k<y.length;++k)Zt(t,0,y[k]);if(h&&(h.from||0)==p){if(Zt(t,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(f<=p)break;for(var T=Math.min(f,v);;){if(m){var M,N=p+m.length;if(h||(M=T<N?m.slice(0,T-p):m,t.addToken(t,M,l?l+a:a,c,p+M.length==v?u:"",s,d)),T<=N){m=m.slice(T-p),p=T;break}p=N,c=""}m=i.slice(o,o=n[g++]),l=$t(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),$t(n[O+1],t.cm.options))}(o,r,pt(e,o,u)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=D(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=D(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild((u=e.display.measure,o=void 0,null==We&&(o=T("span",""),k(u,T("span",[o,document.createTextNode("x")])),0!=u.firstChild.offsetHeight&&(We=o.offsetWidth<=1&&2<o.offsetHeight&&!(l&&s<8))),(u=We?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")).setAttribute("cm-text",""),u))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return a&&(n=r.content.lastChild,(/\bcm-tab\b/.test(n.className)||n.querySelector&&n.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")),xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function qt(e,t,n,r,i,o,a){if(t){var u=e.splitSpaces?function(e,t){if(1<e.length&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,c=e.cm.state.specialChars,h=!1;if(c.test(t))for(var d=document.createDocumentFragment(),f=0;;){c.lastIndex=f;var p=c.exec(t),g=p?p.index-f:t.length-f;if(g&&(m=document.createTextNode(u.slice(f,f+g)),l&&s<9?d.appendChild(T("span",[m])):d.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g),!p)break;f+=1+g;var m=void 0;"\t"==p[0]?(g=(g=e.cm.options.tabSize)-e.col%g,(m=d.appendChild(T("span",$(g),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=g):("\r"==p[0]||"\n"==p[0]?(m=d.appendChild(T("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&s<9?d.appendChild(T("span",[m])):d.appendChild(m)),e.col+=1),e.map.push(e.pos,e.pos+1,m),e.pos++}else e.col+=t.length,d=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,d),l&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||a){h=n||"";var v=(r&&(h+=r),i&&(h+=i),T("span",[d],h,o));if(a)for(var y in a)a.hasOwnProperty(y)&&"style"!=y&&"class"!=y&&v.setAttribute(y,a[y]);return e.content.appendChild(v)}e.content.appendChild(d)}}function Zt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",n.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Qt(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Et(e);)e=t.find(1,!0).line,(n=n||[]).push(e);return n}(t),this.size=this.rest?Qe(_(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Gt(e,t)}function Jt(e,t,n){for(var r=[],i=t;i<n;i=l){var o=new Qt(e.doc,$e(e.doc,i),i),l=i+o.size;r.push(o)}return r}var en=null,tn=null;function nn(e,t){var n=be(e,t);if(n.length)for(var r,i=Array.prototype.slice.call(arguments,2),o=(en?r=en.delayedCallbacks:tn?r=tn:(r=tn=[],setTimeout(rn,0)),0);o<n.length;++o)!function(e){r.push((function(){return n[e].apply(null,i)}))}(o)}function rn(){var e=tn;tn=null;for(var t=0;t<e.length;++t)e[t]()}function on(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];if("text"==o){u=s=l=void 0;var l=e,s=t,a=s.text.className,u=sn(l,s);s.text==s.node&&(s.node=u.pre),s.text.parentNode.replaceChild(u.pre,s.text),s.text=u.pre,u.bgClass!=s.bgClass||u.textClass!=s.textClass?(s.bgClass=u.bgClass,s.textClass=u.textClass,an(l,s)):a&&(s.text.className=a)}else if("gutter"==o)un(e,t,n,r);else if("class"==o)an(e,t);else if("widget"==o){f=d=h=l=c=u=void 0;u=e;var c=t;l=r;c.alignable&&(c.alignable=null);for(var h=C("CodeMirror-linewidget"),d=c.node.firstChild,f=void 0;d;d=f)f=d.nextSibling,h.test(d.className)&&c.node.removeChild(d);cn(u,c,l)}}t.changes=null}function ln(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&s<8&&(e.node.style.zIndex=2)),e.node}function sn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):_t(e,t)}function an(e,t){(i=(n=t).bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass)&&(i+=" CodeMirror-linebackground"),n.background?i?n.background.className=i:(n.background.parentNode.removeChild(n.background),n.background=null):i&&(r=ln(n),n.background=r.insertBefore(T("div",null,i),r.firstChild),e.display.input.setUneditable(n.background)),t.line.wrapClass?ln(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n,r,i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function un(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass&&(o=ln(t),t.gutterBackground=T("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text));var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=ln(t),l=t.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),o.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(T("div",tt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.display.gutterSpecs.length;++s){var a=e.display.gutterSpecs[s].className,u=i.hasOwnProperty(a)&&i[a];u&&l.appendChild(T("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[a]+"px; width: "+r.gutterWidth[a]+"px"))}}}function cn(e,t,n){if(hn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)hn(e,t.rest[r],t,n,!1)}function hn(e,t,n,r,i){if(t.widgets)for(var o=ln(n),l=0,s=t.widgets;l<s.length;++l){var a=s[l],u=T("div",[a.node],"CodeMirror-linewidget"+(a.className?" "+a.className:"")),c=(a.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),d=d=h=c=void 0,a),h=u,d=n,f=r;c.noHScroll&&((d.alignable||(d.alignable=[])).push(h),d=f.wrapperWidth,h.style.left=f.fixedPos+"px",c.coverGutter||(d-=f.gutterTotalWidth,h.style.paddingLeft=f.gutterTotalWidth+"px"),h.style.width=d+"px"),c.coverGutter&&(h.style.zIndex=5,h.style.position="relative",c.noHScroll||(h.style.marginLeft=-f.gutterTotalWidth+"px")),e.display.input.setUneditable(u),i&&a.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),nn(a,"redraw")}}function dn(e){if(null!=e.height)return e.height;var t,n=e.doc.cm;return n?(N(document.body,e.node)||(t="position: relative;",e.coverGutter&&(t+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(t+="width: "+n.display.wrapper.clientWidth+"px;"),k(n.display.measure,T("div",[e.node],null,t))),e.height=e.node.parentNode.offsetHeight):0}function fn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return 1}function pn(e){return e.lineSpace.offsetTop}function gn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function mn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,T("pre","x","CodeMirror-line-like"));t=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,t={left:parseInt(t.paddingLeft),right:parseInt(t.paddingRight)};return isNaN(t.left)||isNaN(t.right)||(e.cachedPaddingH=t),t}function vn(e){return G-e.display.nativeBarWidth}function yn(e){return e.display.scroller.clientWidth-vn(e)-e.display.barWidth}function bn(e){return e.display.scroller.clientHeight-vn(e)-e.display.barHeight}function wn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Qe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function xn(e,t,n,r){return Ln(e,Sn(e,t),n,r)}function Cn(e,t){return t>=e.display.viewFrom&&t<e.display.viewTo?e.display.view[Jn(e,t)]:(e=e.display.externalMeasured)&&t>=e.lineN&&t<e.lineN+e.size?e:void 0}function Sn(e,t){var n,r,i=Qe(t),o=Cn(e,i);o&&!o.text?o=null:o&&o.changes&&(on(e,o,i,$n(e)),e.curOp.forceUpdate=!0),o||(r=Qe(n=It(n=t)),(n=e.display.externalMeasured=new Qt(e.doc,n,r)).lineN=r,r=n.built=_t(e,n),n.text=r.pre,k(e.display.lineMeasure,r.pre),o=n),e=wn(o,t,i);return{line:t,view:o,rect:null,map:e.map,cache:e.cache,before:e.before,hasHeights:!1}}function Ln(e,t,n,r,i){var o,a=(n=t.before?-1:n)+(r||"");if(t.cache.hasOwnProperty(a))o=t.cache[a];else{if(t.rect||(t.rect=t.view.text.getBoundingClientRect()),!t.hasHeights){var u=e,c=t.view,h=t.rect,d=u.options.lineWrapping;u=d&&yn(u);if(!c.measure.heights||d&&c.measure.width!=u){var f=c.measure.heights=[];if(d){c.measure.width=u;for(var p=c.text.firstChild.getClientRects(),g=0;g<p.length-1;g++){var m=p[g],v=p[g+1];2<Math.abs(m.bottom-v.bottom)&&f.push((m.bottom+v.top)/2-h.top)}}f.push(h.bottom-h.top)}t.hasHeights=!0}(o=function(e,t,n,r){var i,o=Mn(t.map,n,r),a=o.node,u=o.start,c=o.end,h=o.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){for(;u&&ie(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ie(t.line.text.charAt(o.coverStart+c));)++c;if((i=l&&s<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():function(e,t){var n=Tn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;0<=i&&(n=e[i]).left==n.right;i--);return n}(W(a,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,h="right"}l&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Ie)return Ie;var t=(e=k(e,T("span","x"))).getBoundingClientRect();e=W(e,0,1).getBoundingClientRect();return Ie=1<Math.abs(t.left-e.left)}(e))return t;e=screen.logicalXDPI/screen.deviceXDPI;var n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*e,right:t.right*e,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else 0<u&&(h=r="right"),i=e.options.lineWrapping&&1<(n=a.getClientRects()).length?n["right"==r?n.length-1:0]:a.getBoundingClientRect();!(l&&s<9)||u||i&&(i.left||i.right)||(i=(n=a.parentNode.getClientRects()[0])?{left:n.left,right:n.left+Yn(e.display),top:n.top,bottom:n.bottom}:Tn);n=i.top-t.rect.top;for(var f=i.bottom-t.rect.top,p=(n+f)/2,g=t.view.measure.heights,m=0;m<g.length-1&&!(p<g[m]);m++);var v=m?g[m-1]:0,y=g[m];v={left:("right"==h?i.right:i.left)-t.rect.left,right:("left"==h?i.left:i.right)-t.rect.left,top:v,bottom:y};return i.left||i.right||(v.bogus=!0),e.options.singleCursorHeightPerLine||(v.rtop=n,v.rbottom=f),v}(e,t,n,r)).bogus||(t.cache[a]=o)}return{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var kn,Tn={left:0,right:0,top:0,bottom:0};function Mn(e,t,n){for(var r,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?o=1+(i=t-s):(u==e.length-3||t==a&&e[u+3]>t)&&(i=(o=a-s)-1,a<=t&&(l="right")),null!=i){if(r=e[u+2],s==a&&n==(r.insertLeft?"left":"right")&&(l=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],l="left";if("right"==n&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],l="right";break}return{node:r,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Nn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function On(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Nn(e.display.view[t])}function An(e){On(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Dn(e){return u&&m?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Wn(e){return u&&m?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Hn(e){var t=It(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=dn(t[r]));return n}function Fn(e,t,n,r,i){return i||(i=Hn(t),n.top+=i,n.bottom+=i),"line"==r||(r=r||"local",i=Ut(t),"local"==r?i+=pn(e.display):i-=e.display.viewOffset,"page"!=r&&"window"!=r||(i+=(t=e.display.lineSpace.getBoundingClientRect()).top+("window"==r?0:Wn(F(e))),t=t.left+("window"==r?0:Dn(F(e))),n.left+=t,n.right+=t),n.top+=i,n.bottom+=i),n}function Pn(e,t,n){if("div"==n)return t;var r=t.left;t=t.top,"page"==n?(r-=Dn(F(e)),t-=Wn(F(e))):"local"!=n&&n||(r+=(n=e.display.sizer.getBoundingClientRect()).left,t+=n.top),n=e.display.lineSpace.getBoundingClientRect();return{left:r-n.left,top:t-n.top}}function En(e,t,n,r,i){return Fn(e,r=r||$e(e.doc,t.line),xn(e,r,t.ch,i),n)}function zn(e,t,n,r,i,o){function l(t,l){return t=Ln(e,i,t,l?"right":"left",o),l?t.left=t.right:t.right=t.left,Fn(e,r,t,n)}r=r||$e(e.doc,t.line),i=i||Sn(e,r);var s=me(r,e.doc.direction),a=t.ch;t=t.sticky;if(a>=r.text.length?(a=r.text.length,t="before"):a<=0&&(a=0,t="after"),!s)return l("before"==t?a-1:a,"before"==t);function u(e,t,n){return l(n?e-1:e,1==s[t].level!=n)}var c=ae(s,a,t),h=se;c=u(a,c,"before"==t);return null!=h&&(c.other=u(a,h,"before"!=t)),c}function In(e,t){var n=0;t=ut(e.doc,t),e.options.lineWrapping||(n=Yn(e.display)*t.ch),t=$e(e.doc,t.line);return{left:n,right:n,top:e=Ut(t)+pn(e.display),bottom:e+t.height}}function Rn(e,t,n,r,i){return(e=nt(e,t,n)).xRel=i,r&&(e.outside=r),e}function Bn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Rn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(o<i)return Rn(r.first+r.size-1,$e(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=$e(r,i);;){var s=function(e,t,n,r,i){i-=Ut(t);var o=Sn(e,t),l=Hn(t),s=0,a=t.text.length,u=!0;(p=me(t,e.doc.direction))&&(s=(u=1!=(p=(e.options.lineWrapping?jn:Kn)(e,t,n,o,p,r,i)).level)?p.from:p.to-1,a=u?p.to:p.from-1);var c,h,d=null,f=null,p=le((function(t){var n=Ln(e,o,t);return n.top+=l,n.bottom+=l,Vn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=t,f=n),1)}),s,a),g=!1;return f?(c=r-f.left<f.right-r,p=d+((h=c==u)?0:1),h=h?"after":"before",c=c?f.left:f.right):(u||p!=a&&p!=s||p++,h=0==p||p!=t.text.length&&Ln(e,o,p-(u?1:0)).bottom+l<=i==u?"after":"before",c=(a=zn(e,nt(n,p,h),"line",t,o)).left,g=i<a.top?-1:i>=a.bottom?1:0),Rn(n,p=oe(t.text,p,1),h,g,r-c)}(e,l,i,t,n),a=function(e,t){var n,r=Lt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ht(n,o.marker)<0)&&(n=o.marker)}return n}(l,s.ch+(0<s.xRel||0<s.outside?1:0));if(!a)return s;if((s=a.find(1)).line==i)return s;l=$e(r,i=s.line)}}function Gn(e,t,n,r){r-=Hn(t);var i=le((function(t){return Ln(e,n,t-1).bottom<=r}),t=t.text.length,0);return{begin:i,end:le((function(t){return Ln(e,n,t).top>r}),i,t)}}function Un(e,t,n,r){return Gn(e,t,n=n||Sn(e,t),Fn(e,t,Ln(e,n,r),"line").top)}function Vn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Kn(e,t,n,r,i,o,l){var s,a=le((function(s){var a=1!=(s=i[s]).level;return Vn(zn(e,nt(n,a?s.to:s.from,a?"before":"after"),"line",t,r),o,l,!0)}),0,i.length-1),u=i[a];return 0<a&&(s=1!=u.level,Vn(s=zn(e,nt(n,s?u.from:u.to,s?"after":"before"),"line",t,r),o,l,!0)&&s.top>l&&(u=i[a-1])),u}function jn(e,t,n,r,i,o,l){for(var s=(l=Gn(e,t,r,l)).begin,a=l.end,u=(/\s/.test(t.text.charAt(a-1))&&a--,null),c=null,h=0;h<i.length;h++){var d,f=i[h];f.from>=a||f.to<=s||(d=(d=Ln(e,r,1!=f.level?Math.min(a,f.to)-1:Math.max(s,f.from)).right)<o?o-d+1e9:d-o,(!u||d<c)&&(u=f,c=d))}return(u=(u=u||i[i.length-1]).from<s?{from:s,to:u.to,level:u.level}:u).to>a?{from:u.from,to:a,level:u.level}:u}function Xn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==kn){kn=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)kn.appendChild(document.createTextNode("x")),kn.appendChild(T("br"));kn.appendChild(document.createTextNode("x"))}k(e.measure,kn);var n=kn.offsetHeight/50;return 3<n&&(e.cachedTextHeight=n),L(e.measure),n||1}function Yn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t],"CodeMirror-line-like");k(e.measure,n),n=t.getBoundingClientRect();return 2<(t=(n.right-n.left)/10)&&(e.cachedCharWidth=t),t||10}function $n(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var s=e.display.gutterSpecs[l].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:_n(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function _n(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function qn(e){var t=Xn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Yn(e.display)-3);return function(i){if(Gt(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Zn(e){var t=e.doc,n=qn(e);t.iter((function(e){var t=n(e);t!=e.height&&Ze(e,t)}))}function Qn(e,t,n,r){var i=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var o,l;n=i.lineSpace.getBoundingClientRect();try{o=t.clientX-n.left,l=t.clientY-n.top}catch(e){return null}return i=Bn(e,o,l),r&&0<i.xRel&&(t=$e(e.doc,i.line).text).length==i.ch&&(n=I(t,t.length,e.options.tabSize)-t.length,i=nt(i.line,Math.max(0,Math.round((o-mn(e.display).left)/Yn(e.display))-n))),i}function Jn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function er(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size);var i,o=e.display,l=((r=r||0)&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo?Lt&&Rt(e.doc,t)<o.viewTo&&nr(e):n<=o.viewFrom?Lt&&Bt(e.doc,n+r)>o.viewFrom?nr(e):(o.viewFrom+=r,o.viewTo+=r):t<=o.viewFrom&&n>=o.viewTo?nr(e):t<=o.viewFrom?(l=rr(e,n,n+r,1))?(o.view=o.view.slice(l.index),o.viewFrom=l.lineN,o.viewTo+=r):nr(e):n>=o.viewTo?(l=rr(e,t,t,-1))?(o.view=o.view.slice(0,l.index),o.viewTo=l.lineN):nr(e):(l=rr(e,t,t,-1),i=rr(e,n,n+r,1),l&&i?(o.view=o.view.slice(0,l.index).concat(Jt(e,l.lineN,i.lineN)).concat(o.view.slice(i.index)),o.viewTo+=r):nr(e)),o.externalMeasured);l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(o.externalMeasured=null))}function tr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),t<r.viewFrom||t>=r.viewTo||null!=(i=r.view[Jn(e,t)]).node&&-1==B(r=i.changes||(i.changes=[]),n)&&r.push(n)}function nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function rr(e,t,n,r){var i,o=Jn(e,t),l=e.display.view;if(!Lt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(0<r){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Rt(e.doc,n)!=n;){if(o==(r<0?0:l.length-1))return null;n+=r*l[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function ir(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function or(e){e.display.input.showSelection(e.display.input.prepareSelection())}function lr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=e.options.$customCursor;l&&(t=!0);for(var s,a,u,c=0;c<n.sel.ranges.length;c++)!t&&c==n.sel.primIndex||(s=n.sel.ranges[c]).from().line>=e.display.viewTo||s.to().line<e.display.viewFrom||(a=s.empty(),l?(u=l(e,s))&&sr(e,u,i):(a||e.options.showCursorWhenSelecting)&&sr(e,s.head,i),a||function(e,t,n){var r,i=e.display,o=e.doc,l=document.createDocumentFragment(),s=mn(e.display),a=s.left,u=Math.max(i.sizerWidth,yn(e)-i.sizer.offsetLeft)-s.right,c="ltr"==o.direction;function h(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),l.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var i,l,s=$e(o,t),d=s.text.length;function f(n,r){return En(e,nt(t,n),"div",s,r)}function p(t,n,r){return t=Un(e,s,null,t),n="ltr"==n==("after"==r)?"left":"right",f("after"==r?t.begin:t.end-(/\s/.test(s.text.charAt(t.end-1))?2:1),n)[n]}var g=me(s,o.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<n&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?d:r,(function(e,t,o,s){var m,v,y,b,w,x="ltr"==o,C=f(e,x?"left":"right"),S=f(t-1,x?"right":"left"),L=null==n&&0==e,k=null==r&&t==d,T=0==s;s=!g||s==g.length-1;S.top-C.top<=3?(m=(c?L:k)&&T?a:(x?C:S).left,w=(c?k:L)&&s?u:(x?S:C).right,h(m,C.top,w-m,C.bottom)):(w=x?(v=c&&L&&T?a:C.left,y=c?u:p(e,o,"before"),b=c?a:p(t,o,"after"),c&&k&&s?u:S.right):(v=c?p(e,o,"before"):a,y=!c&&L&&T?u:C.right,b=!c&&k&&s?a:S.left,c?p(t,o,"after"):u),h(v,C.top,y-v,C.bottom),C.bottom<S.top&&h(a,C.bottom,null,S.top),h(b,S.top,w-b,S.bottom)),(!i||ar(C,i)<0)&&(i=C),ar(S,i)<0&&(i=S),(!l||ar(C,l)<0)&&(l=C),ar(S,l)<0&&(l=S)})),{start:i,end:l}}i=t.from(),s=t.to(),i.line==s.line?d(i.line,i.ch,s.ch):(t=$e(o,i.line),r=$e(o,s.line),r=It(t)==It(r),i=d(i.line,i.ch,r?t.text.length+1:null).end,t=d(s.line,r?0:null,s.ch).start,r&&(i.top<t.top-2?(h(i.right,i.top,null,i.bottom),h(a,t.top,t.left,t.bottom)):h(i.right,i.top,t.left-i.right,i.bottom)),i.bottom<t.top&&h(a,i.bottom,null,t.top)),n.appendChild(l)}(e,s,o));return r}function sr(e,t,n){var r=zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(T("div"," ","CodeMirror-cursor"));i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)&&(t=(t=En(e,t,"div",null,null)).right-t.left,i.style.width=(0<t?t:e.defaultCharWidth())+"px"),r.other&&((i=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"))).style.display="",i.style.left=r.other.left+"px",i.style.top=r.other.top+"px",i.style.height=.85*(r.other.bottom-r.other.top)+"px")}function ar(e,t){return e.top-t.top||e.left-t.left}function ur(e){var t,n;e.state.focused&&(t=e.display,clearInterval(t.blinker),n=!0,t.cursorDiv.style.visibility="",0<e.options.cursorBlinkRate?t.blinker=setInterval((function(){e.hasFocus()||fr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden"))}function cr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||dr(e))}function hr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&fr(e))}),100)}function dr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,A(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),a&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),ur(e))}function fr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function pr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,h=void 0,d=0;if(!u.hidden){var f;if(i+=u.line.height,l&&s<8?(h=(f=u.node.offsetTop+u.node.offsetHeight)-n,n=f):(h=(f=u.node.getBoundingClientRect()).bottom-f.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-f.left-1)),(.005<(c=u.line.height-h)||c<-.005)&&(i<r&&(o-=c),Ze(u.line,h),gr(u.line),u.rest))for(var p=0;p<u.rest.length;p++)gr(u.rest[p]);d>e.display.sizerWidth&&(c=Math.ceil(d/Yn(e.display)))>e.display.maxLineLength&&(e.display.maxLineLength=c,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}2<Math.abs(o)&&(t.scroller.scrollTop+=o)}function gr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function mr(e,t,n){var r,i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop,o=(i=Math.floor(i-pn(e)),n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight);i=Je(t,i),o=Je(t,o);return n&&n.ensure&&(r=n.ensure.from.line,n=n.ensure.to.line,r<i?o=Je(t,Ut($e(t,i=r))+e.wrapper.clientHeight):Math.min(n,t.lastLine())>=o&&(i=Je(t,Ut($e(t,n))-e.wrapper.clientHeight),o=n)),{from:i,to:Math.max(o,i+1)}}function vr(e,t){var n=e.display,r=Xn(e.display),i=(t.top<0&&(t.top=0),(e.curOp&&null!=e.curOp.scrollTop?e.curOp:n.scroller).scrollTop),o=bn(e),l={},s=(t.bottom-t.top>o&&(t.bottom=t.top+o),e.doc.height+gn(n)),a=t.top<r;r=t.bottom>s-r,t.top<i?l.scrollTop=a?0:t.top:t.bottom>i+o&&(a=Math.min(t.top,(r?s:t.bottom)-o))!=i&&(l.scrollTop=a),r=e.options.fixedGutter?0:n.gutters.offsetWidth,s=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-r,o=yn(e)-n.gutters.offsetWidth;return(i=t.right-t.left>o)&&(t.right=t.left+o),t.left<10?l.scrollLeft=0:t.left<s?l.scrollLeft=Math.max(0,t.left+r-(i?0:10)):t.right>o+s-3&&(l.scrollLeft=t.right+(i?0:10)-o),l}function yr(e,t){null!=t&&(xr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc:e.curOp).scrollTop+t)}function br(e){xr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function wr(e,t,n){null==t&&null==n||xr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function xr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Cr(e,In(e,t.from),In(e,t.to),t.margin))}function Cr(e,t,n,r){wr(e,(t=vr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r})).scrollLeft,t.scrollTop)}function Sr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||jr(e,{top:t}),Lr(e,t,!0),n&&jr(e),Br(e,100))}function Lr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function kr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,$r(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Tr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+vn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function Mr(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ye(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ye(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function Nr(){}function Or(e,t){t=t||Tr(e);var n=e.display.barWidth,r=e.display.barHeight;Ar(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&pr(e),Ar(e,Tr(e)),n=e.display.barWidth,r=e.display.barHeight}function Ar(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Mr.prototype.update=function(e){var t,n=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return r?(this.vert.style.display="block",this.vert.style.bottom=n?i+"px":"0",t=e.viewHeight-(n?i:0),this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+t)+"px"):(this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0"),n?(this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px",t=e.viewWidth-e.barLeft-(r?i:0),this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+t)+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&0<e.clientHeight&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:n?i:0}},Mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!f?"12px":"18px",this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new R,this.disableVert=new R},Mr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},Mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)},Nr.prototype.update=function(){return{bottom:0,right:0}},Nr.prototype.setScrollLeft=function(){},Nr.prototype.setScrollTop=function(){},Nr.prototype.clear=function(){};var Dr={native:Mr,null:Nr};function Wr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Dr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ye(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){("horizontal"==n?kr:Sr)(e,t)}),e),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)}var Hr=0;function Fr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Hr,markArrays:null},e=e.curOp,en?en.ops.push(e):e.ownsGroup=en={ops:[e],delayedCallbacks:[]}}function Pr(e){if(e=e.curOp){if(e=e.ownsGroup)try{var t=e,n=t.delayedCallbacks,r=0;do{for(;r<n.length;r++)n[r].call(null);for(var i=0;i<t.ops.length;i++){var o=t.ops[i];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(r<n.length)}finally{en=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;for(var n=e.ops,r=0;r<n.length;r++){i=void 0;var i=n[r],o=i.cm,l=o.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=vn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=vn(e)+"px",t.scrollbarsClipped=!0)})(o),i.updateMaxLine&&Kt(o),i.mustUpdate=i.viewChanged||i.forceUpdate||null!=i.scrollTop||i.scrollToPos&&(i.scrollToPos.from.line<l.viewFrom||i.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&o.options.lineWrapping,i.update=i.mustUpdate&&new Ur(o,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}for(var s=0;s<n.length;s++){a=void 0;var a=n[s];a.updatedDisplay=a.mustUpdate&&Vr(a.cm,a.update)}for(var u=0;u<n.length;u++){c=void 0,h=void 0,d=void 0;var c=n[u],h=c.cm,d=h.display;c.updatedDisplay&&pr(h),c.barMeasure=Tr(h),d.maxLineChanged&&!h.options.lineWrapping&&(c.adjustWidthTo=xn(h,d.maxLine,d.maxLine.text.length).left+3,h.display.sizerWidth=c.adjustWidthTo,c.barMeasure.scrollWidth=Math.max(d.scroller.clientWidth,d.sizer.offsetLeft+c.adjustWidthTo+vn(h)+h.display.barWidth),c.maxScrollLeft=Math.max(0,d.sizer.offsetLeft+c.adjustWidthTo-yn(h))),(c.updatedDisplay||c.selectionChanged)&&(c.preparedSelection=d.input.prepareSelection())}for(var f=0;f<n.length;f++){m=void 0;var g=n[f],m=g.cm;null!=g.adjustWidthTo&&(m.display.sizer.style.minWidth=g.adjustWidthTo+"px",g.maxScrollLeft<m.doc.scrollLeft&&kr(m,Math.min(m.display.scroller.scrollLeft,g.maxScrollLeft),!0),m.display.maxLineChanged=!1);var v=g.focus&&g.focus==O(F(m));g.preparedSelection&&m.display.input.showSelection(g.preparedSelection,v),!g.updatedDisplay&&g.startHeight==m.doc.height||Or(m,g.barMeasure),g.updatedDisplay&&Yr(m,g.barMeasure),g.selectionChanged&&ur(m),m.state.focused&&g.updateInput&&m.display.input.reset(g.typing),v&&cr(g.cm)}for(var y,b=0;b<n.length;b++){w=void 0,C=void 0,S=void 0,y=void 0,M=void 0,N=void 0;var w=n[b],x=w.cm,C=x.display,S=x.doc;w.updatedDisplay&&Kr(x,w.update),null==C.wheelStartX||null==w.scrollTop&&null==w.scrollLeft&&!w.scrollToPos||(C.wheelStartX=C.wheelStartY=null),null!=w.scrollTop&&Lr(x,w.scrollTop,w.forceScroll),null!=w.scrollLeft&&kr(x,w.scrollLeft,!0,!0),w.scrollToPos&&(y=function(e,t,n,r){null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?nt(t.line,t.ch+1,"before"):t,t=t.ch?nt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var o,l=!1,s=zn(e,t),a=n&&n!=t?zn(e,n):s,u=(s=vr(e,o={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-r,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+r}),a=e.doc.scrollTop,e.doc.scrollLeft);if(null!=s.scrollTop&&(Sr(e,s.scrollTop),1<Math.abs(e.doc.scrollTop-a)&&(l=!0)),null!=s.scrollLeft&&(kr(e,s.scrollLeft),1<Math.abs(e.doc.scrollLeft-u)&&(l=!0)),!l)break}return o}(x,ut(S,w.scrollToPos.from),ut(S,w.scrollToPos.to),w.scrollToPos.margin),function(e,t){var n,r,i,o;Ce(e,"scrollCursorIntoView")||(o=(n=e.display).sizer.getBoundingClientRect(),r=null,i=n.wrapper.ownerDocument,t.top+o.top<0?r=!0:t.bottom+o.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(r=!1),null==r||p||(o=T("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-pn(e.display))+"px;\n height: "+(t.bottom-t.top+vn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;"),e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)))}(x,y));var L=w.maybeHiddenMarkers,k=w.maybeUnhiddenMarkers;if(L)for(var M=0;M<L.length;++M)L[M].lines.length||xe(L[M],"hide");if(k)for(var N=0;N<k.length;++N)k[N].lines.length&&xe(k[N],"unhide");C.wrapper.offsetHeight&&(S.scrollTop=x.display.scroller.scrollTop),w.changeObjs&&xe(x,"changes",x,w.changeObjs),w.update&&w.update.finish()}}(e)}}}function Er(e,t){if(e.curOp)return t();Fr(e);try{return t()}finally{Pr(e)}}function zr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Fr(e);try{return t.apply(e,arguments)}finally{Pr(e)}}}function Ir(e){return function(){if(this.curOp)return e.apply(this,arguments);Fr(this);try{return e.apply(this,arguments)}finally{Pr(this)}}}function Rr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Fr(t);try{return e.apply(this,arguments)}finally{Pr(t)}}}function Br(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,E(Gr,e))}function Gr(e){var t,n,r,i=e.doc;i.highlightFrontier>=e.display.viewTo||(t=+new Date+e.options.workTime,n=gt(e,i.highlightFrontier),r=[],i.iter(n.line,Math.min(i.first+i.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){for(var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Ke(i.mode,n.state):null,a=ft(e,o,n,!0),u=(s=(s&&(n.state=s),o.styles=a.styles,o.styleClasses),(a=a.classes)?o.styleClasses=a:s&&(o.styleClasses=null),!l||l.length!=o.styles.length||s!=a&&(!s||!a||s.bgClass!=a.bgClass||s.textClass!=a.textClass)),c=0;!u&&c<l.length;++c)u=l[c]!=o.styles[c];u&&r.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&mt(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>t)return Br(e,e.options.workDelay),!0})),i.highlightFrontier=n.line,i.modeFrontier=Math.max(i.modeFrontier,n.line),r.length&&Er(e,(function(){for(var t=0;t<r.length;t++)tr(e,r[t],"text")})))}var Ur=function(e,t,n){var r=e.display;this.viewport=t,this.visible=mr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=yn(e),this.force=n,this.dims=$n(e),this.events=[]};function Vr(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return nr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ir(e))return!1;_r(e)&&(nr(e),t.dims=$n(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>l&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Lt&&(o=Rt(e.doc,o),l=Bt(e.doc,l)),r=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth,i=o,o=l,0==(h=(l=e).display).view.length||i>=h.viewTo||o<=h.viewFrom?(h.view=Jt(l,i,o),h.viewFrom=i):(h.viewFrom>i?h.view=Jt(l,i,h.viewFrom).concat(h.view):h.viewFrom<i&&(h.view=h.view.slice(Jn(l,i))),h.viewFrom=i,h.viewTo<o?h.view=h.view.concat(Jt(l,h.viewTo,o)):h.viewTo>o&&(h.view=h.view.slice(0,Jn(l,o)))),h.viewTo=o,n.viewOffset=Ut($e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px",i=ir(e);if(!r&&0==i&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;l=function(e){if(e.hasFocus())return null;if(!(n=O(F(e)))||!N(e.display.lineDiv,n))return null;var t,n={activeElt:n};return window.getSelection&&(t=P(e).getSelection()).anchorNode&&t.extend&&N(e.display.lineDiv,t.anchorNode)&&(n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset),n}(e);var s=(4<i&&(n.lineDiv.style.display="none"),e),u=n.updateLineNumbers,c=t.dims,h=s.display,d=s.options.lineNumbers,f=h.lineDiv,p=f.firstChild;function g(e){var t=e.nextSibling;return a&&y&&s.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),t}for(var m=h.view,v=h.viewFrom,b=0;b<m.length;b++){var w=m[b];if(!w.hidden)if(w.node&&w.node.parentNode==f){for(;p!=w.node;)p=g(p);var x=d&&null!=u&&u<=v&&w.lineNumber;w.changes&&(-1<B(w.changes,"gutter")&&(x=!1),on(s,w,v,c)),x&&(L(w.lineNumber),w.lineNumber.appendChild(document.createTextNode(tt(s.options,v)))),p=w.node.nextSibling}else x=function(e,t,n,r){var i=sn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),an(e,t),un(e,t,n,r),cn(e,t,r),t.node}(s,w,v,c),f.insertBefore(x,p);v+=w.size}for(;p;)p=g(p);return 4<i&&(n.lineDiv.style.display=""),n.renderedView=n.view,(o=l)&&o.activeElt&&o.activeElt!=O(o.activeElt.ownerDocument)&&(o.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(o.activeElt.nodeName)&&o.anchorNode&&N(document.body,o.anchorNode)&&N(document.body,o.focusNode)&&(i=(h=o.activeElt.ownerDocument).defaultView.getSelection(),(h=h.createRange()).setEnd(o.anchorNode,o.anchorOffset),h.collapse(!1),i.removeAllRanges(),i.addRange(h),i.extend(o.focusNode,o.focusOffset))),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,r&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Br(e,400)),!(n.updateLineNumbers=null)}function Kr(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=yn(e))r&&(t.visible=mr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+gn(e.display)-bn(e),n.top)}),t.visible=mr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Vr(e,t))break;pr(e);var i=Tr(e);or(e),Or(e,i),Yr(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function jr(e,t){var n;Vr(e,t=new Ur(e,t))&&(pr(e),Kr(e,t),n=Tr(e),or(e),Or(e,n),Yr(e,n),t.finish())}function Xr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",nn(e,"gutterChanged",e)}function Yr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+vn(e)+"px"}function $r(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=_n(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l<n.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var s=n[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function _r(e){var t,n,r,i;if(e.options.lineNumbers)return t=e.doc,t=tt(e.options,t.first+t.size-1),n=e.display,t.length!=n.lineNumChars?(r=(i=n.measure.appendChild(T("div",[T("div",t)],"CodeMirror-linenumber CodeMirror-gutter-elt"))).firstChild.offsetWidth,i=i.offsetWidth-r,n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(r,n.lineGutter.offsetWidth-i)+1,n.lineNumWidth=n.lineNumInnerWidth+i,n.lineNumChars=n.lineNumInnerWidth?t.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Xr(e.display),1):void 0}function qr(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],l=null;if("string"!=typeof o&&(l=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:l})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Zr(e){var t=e.gutters,n=e.gutterSpecs;L(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=(o=n[r]).className,o=o.style,l=t.appendChild(T("div",null,"CodeMirror-gutter "+i));o&&(l.style.cssText=o),"CodeMirror-linenumbers"==i&&((e.lineGutter=l).style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Xr(e)}function Qr(e){Zr(e.display),er(e),$r(e)}function Jr(e,t,r,i){var o=this,h=(this.input=r,o.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=M("div",null,"CodeMirror-code"),o.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=T("div",null,"CodeMirror-cursors"),o.measure=T("div",null,"CodeMirror-measure"),o.lineMeasure=T("div",null,"CodeMirror-measure"),o.lineSpace=M("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none"),M("div",[o.lineSpace],"CodeMirror-lines"));o.mover=T("div",[h],null,"position: relative"),o.sizer=T("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=T("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),o.gutters=T("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=T("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=T("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&105<=c&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),a||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=qr(i.gutters,i.lineNumbers),Zr(o),r.init(o)}Ur.prototype.signal=function(e,t){Le(e,t)&&this.events.push(arguments)},Ur.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var ei=0,ti=null;function ni(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ri(e,t){u&&102==c&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=(i=ni(t)).x,i=i.y,o=ti,l=(0===t.deltaMode&&(r=t.deltaX,i=t.deltaY,o=1),e.display),s=l.scroller,d=s.scrollWidth>s.clientWidth,f=s.scrollHeight>s.clientHeight;if(r&&d||i&&f){if(i&&y&&a)e:for(var p=t.target,g=l.view;p!=s;p=p.parentNode)for(var m=0;m<g.length;m++)if(g[m].node==p){e.display.currentWheelTarget=p;break e}if(r&&!n&&!h&&null!=o)return i&&f&&Sr(e,Math.max(0,s.scrollTop+i*o)),kr(e,Math.max(0,s.scrollLeft+r*o)),i&&!f||Te(t),void(l.wheelStartX=null);i&&null!=o&&(f=(d=e.doc.scrollTop)+l.wrapper.clientHeight,(o*=i)<0?d=Math.max(0,d+o-50):f=Math.min(e.doc.height,f+o+50),jr(e,{top:d,bottom:f})),ei<20&&0!==t.deltaMode&&(null==l.wheelStartX?(l.wheelStartX=s.scrollLeft,l.wheelStartY=s.scrollTop,l.wheelDX=r,l.wheelDY=i,setTimeout((function(){var e,t;null!=l.wheelStartX&&(e=s.scrollLeft-l.wheelStartX,t=(t=s.scrollTop-l.wheelStartY)&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX,l.wheelStartX=l.wheelStartY=null,t&&(ti=(ti*ei+t)/(ei+1),++ei))}),200)):(l.wheelDX+=r,l.wheelDY+=i))}}l?ti=-.53:n?ti=15:u?ti=-.7:d&&(ti=-1/3);var ii=function(e,t){this.ranges=e,this.primIndex=t},oi=(ii.prototype.primary=function(){return this.ranges[this.primIndex]},ii.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!it(n.anchor,r.anchor)||!it(n.head,r.head))return!1}return!0},ii.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oi(ot(this.ranges[t].anchor),ot(this.ranges[t].head));return new ii(e,this.primIndex)},ii.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ii.prototype.contains=function(e,t){t=t||e;for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(0<=rt(t,r.from())&&rt(e,r.to())<=0)return n}return-1},function(e,t){this.anchor=e,this.head=t});function li(e,t,n){var r=e&&e.options.selectionsMayTouch;e=t[n];t.sort((function(e,t){return rt(e.from(),t.from())})),n=B(t,e);for(var i=1;i<t.length;i++){var o,l=t[i],s=t[i-1],a=rt(s.to(),l.from());(r&&!l.empty()?0<a:0<=a)&&(a=st(s.from(),l.from()),o=lt(s.to(),l.to()),l=s.empty()?l.from()==l.head:s.from()==s.head,i<=n&&--n,t.splice(--i,2,new oi(l?o:a,l?a:o)))}return new ii(t,n)}function si(e,t){return new ii([new oi(e,t||e)],0)}function ai(e){return e.text?nt(e.from.line+e.text.length-1,_(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ui(e,t){if(rt(e,t.from)<0)return e;if(rt(e,t.to)<=0)return ai(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ai(t).ch-t.to.ch),nt(n,r)}function ci(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oi(ui(i.anchor,t),ui(i.head,t)))}return li(e.cm,n,e.sel.primIndex)}function hi(e,t,n){return e.line==t.line?nt(n.line,e.ch-t.ch+n.ch):nt(n.line+(e.line-t.line),e.ch)}function di(e){e.doc.mode=Ue(e.options,e.doc.modeOption),fi(e)}function fi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Br(e,100),e.state.modeGen++,e.curOp&&er(e)}function pi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==_(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function gi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){var o,l;l=r,(o=e).text=n,o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null),null!=o.order&&(o.order=null),Ot(o),At(o,i),(n=l?l(o):1)!=o.height&&Ze(o,n),nn(e,"change",e,t)}function l(e,t){for(var n=[],o=e;o<t;++o)n.push(new jt(c[o],i(o),r));return n}var s,a=t.from,u=t.to,c=t.text,h=$e(e,a.line),d=$e(e,u.line),f=_(c),p=i(c.length-1),g=u.line-a.line;t.full?(e.insert(0,l(0,c.length)),e.remove(c.length,e.size-c.length)):pi(e,t)?(s=l(0,c.length-1),o(d,d.text,p),g&&e.remove(a.line,g),s.length&&e.insert(a.line,s)):h==d?1==c.length?o(h,h.text.slice(0,a.ch)+f+h.text.slice(u.ch),p):((s=l(1,c.length-1)).push(new jt(f+h.text.slice(u.ch),p,r)),o(h,h.text.slice(0,a.ch)+c[0],i(0)),e.insert(a.line+1,s)):1==c.length?(o(h,h.text.slice(0,a.ch)+c[0]+d.text.slice(u.ch),i(0)),e.remove(a.line+1,g)):(o(h,h.text.slice(0,a.ch)+c[0],i(0)),o(d,f+d.text.slice(u.ch),p),s=l(1,c.length-1),1<g&&e.remove(a.line+1,g-1),e.insert(a.line+1,s)),nn(e,"change",e,t)}function mi(e,t,n){!function e(r,i,o){if(r.linked)for(var l=0;l<r.linked.length;++l){var s,a=r.linked[l];a.doc!=i&&(s=o&&a.sharedHist,n&&!s||(t(a.doc,s),e(a.doc,r,s)))}}(e,null,!0)}function vi(e,t){if(t.cm)throw new Error("This document is already in use.");Zn((e.doc=t).cm=e),di(e),yi(e),e.options.direction=t.direction,e.options.lineWrapping||Kt(e),e.options.mode=t.modeOption,er(e)}function yi(e){("rtl"==e.doc.direction?A:S)(e.display.lineDiv,"CodeMirror-rtl")}function bi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function wi(e,t){var n={from:ot(t.from),to:ai(t),text:_e(e,t.from,t.to)};return Li(e,n,t.from.line,t.to.line+1),mi(e,(function(e){return Li(e,n,t.from.line,t.to.line+1)}),!0),n}function xi(e){for(;e.length&&_(e).ranges;)e.pop()}function Ci(e,t,n,r){var i,o,l=e.history,s=(l.undone.length=0,+new Date);if((l.lastOp==r||l.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&l.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(o=l).lastOp==r?(xi(o.done),_(o.done)):o.done.length&&!_(o.done).ranges?_(o.done):1<o.done.length&&!o.done[o.done.length-2].ranges?(o.done.pop(),_(o.done)):void 0))i=_(o.changes),0==rt(t.from,t.to)&&0==rt(t.from,i.to)?i.to=ai(t):o.changes.push(wi(e,t));else{var a=_(l.done);for(a&&a.ranges||Si(e.sel,l.done),o={changes:[wi(e,t)],generation:l.generation},l.done.push(o);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(n),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=s,l.lastOp=l.lastSelOp=r,l.lastOrigin=l.lastSelOrigin=t.origin,i||xe(e,"historyAdded")}function Si(e,t){var n=_(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Li(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i=i||(t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function ki(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(function(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t=t||e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}(n[i]));return r}(e,t),r=Mt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],l=r[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(n[i]=l)}return n}function Ti(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ii.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];r.push({changes:s});for(var a=0;a<l.length;++a){var u,c=l[a];if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var h in c)(u=h.match(/^spans_(\d+)$/))&&-1<B(t,Number(u[1]))&&(_(s)[h]=c[h],delete c[h])}}}return r}function Mi(e,t,n,r){return r?(r=e.anchor,n&&((e=rt(t,r)<0)!=rt(n,r)<0?(r=t,t=n):e!=rt(t,n)<0&&(t=n)),new oi(r,t)):new oi(n||t,t)}function Ni(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new ii([Mi(e.sel.primary(),t,n,i)],0),r)}function Oi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Mi(e.sel.ranges[o],t[o],null,i);Hi(e,li(e.cm,r,e.sel.primIndex),n)}function Ai(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Hi(e,li(e.cm,i,e.sel.primIndex),r)}function Di(e,t,n,r){Hi(e,si(t,n),r)}function Wi(e,t,n){var r=e.history.done,i=_(r);i&&i.ranges?Fi(e,r[r.length-1]=t,n):Hi(e,t,n)}function Hi(e,t,n){Fi(e,t,n),function(e,t,n,r){var i,o,l,s=e.history,a=r&&r.origin;n==s.lastSelOp||a&&s.lastSelOrigin==a&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==a||(i=a,o=_(s.done),l=t,"*"==(i=i.charAt(0))||"+"==i&&o.ranges.length==l.ranges.length&&o.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)))?s.done[s.done.length-1]=t:Si(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=a,s.lastSelOp=n,r&&!1!==r.clearRedo&&xi(s.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Fi(e,t,n){(Le(e,"beforeSelectionChange")||e.cm&&Le(e.cm,"beforeSelectionChange"))&&(r=e,o=n,o={ranges:(i=t).ranges,update:function(e){this.ranges=[];for(var t=0;t<e.length;t++)this.ranges[t]=new oi(ut(r,e[t].anchor),ut(r,e[t].head))},origin:o&&o.origin},xe(r,"beforeSelectionChange",r,o),r.cm&&xe(r.cm,"beforeSelectionChange",r.cm,o),t=o.ranges!=i.ranges?li(r.cm,o.ranges,o.ranges.length-1):i);var r,i,o=n&&n.bias||(rt(t.primary().head,e.sel.primary().head)<0?-1:1);Pi(e,zi(e,t,o,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||br(e.cm)}function Pi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Se(e.cm)),nn(e,"cursorActivity",e))}function Ei(e){Pi(e,zi(e,e.sel,null,!1))}function zi(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=Ri(e,l.anchor,s&&s.anchor,n,r);s=l.head==l.anchor?a:Ri(e,l.head,s&&s.head,n,r);!i&&a==l.anchor&&s==l.head||((i=i||t.ranges.slice(0,o))[o]=new oi(a,s))}return i?li(e.cm,i,t.primIndex):t}function Ii(e,t,n,r,i){var o=$e(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=(c=o.markedSpans[l]).marker,a="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,u="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==c.from||(a?c.from<=t.ch:c.from<t.ch))&&(null==c.to||(u?c.to>=t.ch:c.to>t.ch))){if(i&&(xe(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(s.atomic){if(n){var c=s.find(r<0?1:-1),h=void 0;if((c=(r<0?u:a)?Bi(e,c,-r,c&&c.line==t.line?o:null):c)&&c.line==t.line&&(h=rt(c,n))&&(r<0?h<0:0<h))return Ii(e,c,t,r,i)}return h=s.find(r<0?-1:1),(h=(r<0?a:u)?Bi(e,h,r,h.line==t.line?o:null):h)?Ii(e,h,t,r,i):null}}}return t}function Ri(e,t,n,r,i){return(i=Ii(e,t,n,r=r||1,i)||!i&&Ii(e,t,n,r,!0)||Ii(e,t,n,-r,i)||!i&&Ii(e,t,n,-r,!0))||(e.cantEdit=!0,nt(e.first,0))}function Bi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ut(e,nt(t.line-1)):null:0<n&&t.ch==(r||$e(e,t.line)).text.length?t.line<e.first+e.size-1?nt(t.line+1,0):null:new nt(t.line,t.ch+n)}function Gi(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),V)}function Ui(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ut(e,t)),n&&(r.to=ut(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),xe(e,"beforeChange",e,r),e.cm&&xe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Vi(e,t,n){if(e.cm){if(!e.cm.curOp)return zr(e.cm,Vi)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange"))||(t=Ui(e,t,!0))){var r=St&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r=r||[]).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var l=r[o],s=l.find(0),a=0;a<i.length;++a){var u,c,h,d=i[a];rt(d.to,s.from)<0||0<rt(d.from,s.to)||(u=[a,1],c=rt(d.from,s.from),h=rt(d.to,s.to),(c<0||!l.inclusiveLeft&&!c)&&u.push({from:d.from,to:s.from}),(0<h||!l.inclusiveRight&&!h)&&u.push({from:s.to,to:d.to}),i.splice.apply(i,u),a+=u.length-3)}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;0<=i;--i)Ki(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ki(e,t)}}function Ki(e,t){var n,r;1==t.text.length&&""==t.text[0]&&0==rt(t.from,t.to)||(n=ci(e,t),Ci(e,t,n,e.cm?e.cm.curOp.id:NaN),Yi(e,t,n,Mt(e,t)),r=[],mi(e,(function(e,n){n||-1!=B(r,e.history)||(Zi(e.history,t),r.push(e.history)),Yi(e,t,null,Mt(e,t))})))}function ji(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,l=e.sel,s="undo"==t?o.done:o.undone,a="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Si(i,a),n&&!i.equals(e.sel))return void Hi(e,i,{clearRedo:!1});l=i}for(var c=[],h=(Si(l,a),a.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration,Le(e,"beforeChange")||e.cm&&Le(e.cm,"beforeChange")),d=i.changes.length-1;0<=d;--d){var f=function(n){var r=i.changes[n];if(r.origin=t,h&&!Ui(e,r,!1))return s.length=0,{};c.push(wi(e,r));var o=n?ci(e,r):_(s),l=(Yi(e,r,o,ki(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ai(r)}),[]);mi(e,(function(e,t){t||-1!=B(l,e.history)||(Zi(e.history,r),l.push(e.history)),Yi(e,r,null,ki(e,r))}))}(d);if(f)return f.v}}}}function Xi(e,t){if(0!=t&&(e.first+=t,e.sel=new ii(q(e.sel.ranges,(function(e){return new oi(nt(e.anchor.line+t,e.anchor.ch),nt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){er(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)tr(e.cm,r,"gutter")}}function Yi(e,t,n,r){if(e.cm&&!e.cm.curOp)return zr(e.cm,Yi)(e,t,n,r);if(t.to.line<e.first)Xi(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){t.from.line<e.first&&(Xi(e,i=t.text.length-1-(e.first-t.from.line)),t={from:nt(e.first,0),to:nt(t.to.line+i,t.to.ch),text:[_(t.text)],origin:t.origin});var i=e.lastLine();if((t=t.to.line>i?{from:t.from,to:nt(i,$e(e,i).text.length),text:[t.text[0]],origin:t.origin}:t).removed=_e(e,t.from,t.to),n=n||ci(e,t),e.cm){var o=t,l=r,s=(i=e.cm).doc,a=i.display,u=o.from,c=o.to,h=!1,d=u.line,f=(i.options.lineWrapping||(d=Qe(It($e(s,u.line))),s.iter(d,c.line+1,(function(e){if(e==a.maxLine)return h=!0}))),-1<s.sel.contains(o.from,o.to)&&Se(i),gi(s,o,l,qn(i)),i.options.lineWrapping||(s.iter(d,u.line+o.text.length,(function(e){var t=Vt(e);t>a.maxLineLength&&(a.maxLine=e,a.maxLineLength=t,a.maxLineChanged=!0,h=!1)})),h&&(i.curOp.updateMaxLine=!0)),s),p=u.line;if(f.modeFrontier=Math.min(f.modeFrontier,p),!(f.highlightFrontier<p-10)){for(var g=f.first,m=p-1;g<m;m--){var v=$e(f,m).stateAfter;if(v&&(!(v instanceof ht)||m+v.lookAhead<p)){g=m+1;break}}f.highlightFrontier=Math.min(f.highlightFrontier,g)}Br(i,400),l=o.text.length-(c.line-u.line)-1,o.full?er(i):u.line!=c.line||1!=o.text.length||pi(i.doc,o)?er(i,u.line,c.line+1,l):tr(i,u.line,"text"),d=Le(i,"changes"),((s=Le(i,"change"))||d)&&(l={from:u,to:c,text:o.text,removed:o.removed,origin:o.origin},s&&nn(i,"change",i,l),d&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(l)),i.display.selForContextMenu=null}else gi(e,t,r);Fi(e,n,V),e.cantEdit&&Ri(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function $i(e,t,n,r,i){var o;rt(r=r||n,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Vi(e,{from:n,to:r,text:t,origin:i})}function _i(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function qi(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)_i(o.ranges[s].anchor,t,n,r),_i(o.ranges[s].head,t,n,r)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(n<u.from.line)u.from=nt(u.from.line+r,u.from.ch),u.to=nt(u.to.line+r,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function Zi(e,t){var n=t.from.line,r=t.to.line;t=t.text.length-(r-n)-1;qi(e.done,n,r,t),qi(e.undone,n,r,t)}function Qi(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=$e(e,at(e,t)):i=Qe(t),null==i?null:(r(o,i)&&e.cm&&tr(e.cm,i,n),o)}function Ji(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function eo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function to(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}function no(e,t,n){Ut(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&yr(e,n)}function ro(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++io}oi.prototype.from=function(){return st(this.anchor,this.head)},oi.prototype.to=function(){return lt(this.anchor,this.head)},oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ji.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n,r=e,i=e+t;r<i;++r){var o=this.lines[r];this.height-=o.height,(n=o).parent=null,Ot(n),nn(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},eo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n,r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e),s=i.height;if(i.removeInner(e,l),this.height-=s-i.height,o==l&&(this.children.splice(r--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}this.size-t<25&&(1<this.children.length||!(this.children[0]instanceof Ji))&&(this.collapse(n=[]),this.children=[new Ji(n)],this.children[0].parent=this)},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&50<i.lines.length){for(var l=i.lines.length%25+25,s=l;s<i.lines.length;){var a=new Ji(i.lines.slice(s,s+=25));i.height-=a.height,this.children.splice(++r,0,a),a.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t,n=new eo(e.children.splice(e.children.length-5,5))}while(e.parent?(e.size-=n.size,e.height-=n.height,t=B(e.parent.children,e),e.parent.children.splice(t+1,0,n)):(((t=new eo(e.children)).parent=e).children=[t,n],e=t),n.parent=e.parent,10<e.children.length);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,n))return!0;if(0==(t-=l))break;e=0}else e-=o}}},to.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Qe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=dn(this);Ze(n,Math.max(0,n.height-o)),e&&(Er(e,(function(){no(e,n,-o),tr(e,r,"widget")})),nn(e,"lineWidgetCleared",e,this,r))}},to.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line,i=(this.height=null,dn(this)-t);i&&(Gt(this.doc,r)||Ze(r,r.height+i),n&&Er(n,(function(){n.curOp.forceUpdate=!0,no(n,r,i),nn(n,"lineWidgetChanged",n,e,Qe(r))})))},ke(to);var io=0;function oo(e,t,n,r,i){if(r&&r.shared)return f=e,o=t,l=n,a=i,(s=z(s=r)).shared=!1,u=[oo(f,o,l,s,a)],c=u[0],h=s.widgetNode,mi(f,(function(e){h&&(s.widgetNode=h.cloneNode(!0)),u.push(oo(e,ut(e,o),ut(e,l),s,a));for(var t=0;t<e.linked.length;++t)if(e.linked[t].isParent)return;c=_(u)})),new lo(u,c);var o,l,s,a,u,c,h;if(e.cm&&!e.cm.curOp)return zr(e.cm,oo)(e,t,n,r,i);var d=new ro(e,i),f=rt(t,n);if(r&&z(r,d,!1),0<f||0==f&&!1!==d.clearWhenEmpty)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=M("span",[d.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(zt(e,t.line,t,n,d)||t.line!=n.line&&zt(e,n.line,t,n,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lt=!0}d.addToHistory&&Ci(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var p,g=t.line,m=e.cm;if(e.iter(g,n.line+1,(function(r){var i,o;m&&d.collapsed&&!m.options.lineWrapping&&It(r)==m.display.maxLine&&(p=!0),d.collapsed&&g!=t.line&&Ze(r,0),i=new kt(d,g==t.line?t.ch:null,g==n.line?n.ch:null),(o=(o=e.cm&&e.cm.curOp)&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet)))&&r.markedSpans&&o.has(r.markedSpans)?r.markedSpans.push(i):(r.markedSpans=r.markedSpans?r.markedSpans.concat([i]):[i],o&&o.add(r.markedSpans)),i.marker.attachLine(r),++g})),d.collapsed&&e.iter(t.line,n.line+1,(function(t){Gt(e,t)&&Ze(t,0)})),d.clearOnEnter&&ye(d,"beforeCursorEnter",(function(){return d.clear()})),d.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++io,d.atomic=!0),m){if(p&&(m.curOp.updateMaxLine=!0),d.collapsed)er(m,t.line,n.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var v=t.line;v<=n.line;v++)tr(m,v,"text");d.atomic&&Ei(m.doc),nn(m,"markerAdded",m,d)}return d}ro.prototype.clear=function(){if(!this.explicitlyCleared){for(var e,t=this.doc.cm,n=t&&!t.curOp,r=(n&&Fr(t),!Le(this,"clear")||(e=this.find())&&nn(this,"clear",e.from,e.to),null),i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],s=Tt(l.markedSpans,this);t&&!this.collapsed?tr(t,Qe(l),"text"):t&&(null!=s.to&&(i=Qe(l)),null!=s.from&&(r=Qe(l))),l.markedSpans=function(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n=n||[]).push(e[r]);return n}(l.markedSpans,s),null==s.from&&this.collapsed&&!Gt(this.doc,l)&&t&&Ze(l,Xn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var a=0;a<this.lines.length;++a){var u=It(this.lines[a]),c=Vt(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&er(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ei(t.doc)),t&&nn(t,"markerCleared",t,this,r,i),n&&Pr(t),this.parent&&this.parent.clear()}},ro.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],l=Tt(o.markedSpans,this);if(null!=l.from&&(n=nt(t?o:Qe(o),l.from),-1==e))return n;if(null!=l.to&&(r=nt(t?o:Qe(o),l.to),1==e))return r}return n&&{from:n,to:r}},ro.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Er(r,(function(){var i=t.line,o=Qe(t.line);(o=Cn(r,o))&&(Nn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,Gt(n.doc,i)||null==n.height||(o=n.height,n.height=null,(o=dn(n)-o)&&Ze(i,i.height+o)),nn(r,"markerChanged",r,e)}))},ro.prototype.attachLine=function(e){var t;this.lines.length||!this.doc.cm||(t=this.doc.cm.curOp).maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this),this.lines.push(e)},ro.prototype.detachLine=function(e){this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm&&((e=this.doc.cm.curOp).maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)},ke(ro);var lo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function so(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),(function(e){return e.parent}))}function ao(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];mi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function uo(e,t,n,r,i){if(!(this instanceof uo))return new uo(e,t,n,r,i);null==n&&(n=0),eo.call(this,[new Ji([new jt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,n=nt(this.modeFrontier=this.highlightFrontier=n,0),this.sel=si(n),this.history=new bi(null),this.id=++co,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),gi(this,{from:n,to:n,text:e}),Hi(this,si(n),V)}lo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();nn(this,"clear")}},lo.prototype.find=function(e,t){return this.primary.find(e,t)},ke(lo);var co=0,ho=((uo.prototype=Q(eo.prototype,{constructor:uo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Rr((function(e){var t=nt(this.first,0),n=this.first+this.size-1;Vi(this,{from:t,to:nt(n,$e(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&wr(this.cm,0,0),Hi(this,si(t),V)})),replaceRange:function(e,t,n,r){$i(this,e,t=ut(this,t),n=n?ut(this,n):t,r)},getRange:function(e,t,n){return e=_e(this,ut(this,e),ut(this,t)),!1===n?e:""===n?e.join(""):e.join(n||this.lineSeparator())},getLine:function(e){return(e=this.getLineHandle(e))&&e.text},getLineHandle:function(e){if(et(this,e))return $e(this,e)},getLineNumber:Qe,getLineHandleVisualStart:function(e){return It(e="number"==typeof e?$e(this,e):e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(this,e)},getCursor:function(e){var t=this.sel.primary();return e=null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rr((function(e,t,n){Di(this,ut(this,"number"==typeof e?nt(e,t||0):e),null,n)})),setSelection:Rr((function(e,t,n){Di(this,ut(this,e),ut(this,t||e),n)})),extendSelection:Rr((function(e,t,n){Ni(this,ut(this,e),t&&ut(this,t),n)})),extendSelections:Rr((function(e,t){Oi(this,ct(this,e),t)})),extendSelectionsBy:Rr((function(e,t){Oi(this,ct(this,q(this.sel.ranges,e)),t)})),setSelections:Rr((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oi(ut(this,e[i].anchor),ut(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Hi(this,li(this.cm,r,t),n)}})),addSelection:Rr((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oi(ut(this,e),ut(this,t||e))),Hi(this,li(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t=this.sel.ranges,n=0;n<t.length;n++)var r=_e(this,t[n].from(),t[n].to()),i=i?i.concat(r):r;return!1===e?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=_e(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Rr((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];r[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:n}}t=t&&"end"!=t&&function(e,t,n){for(var r=[],i=u=nt(e.first,0),o=0;o<t.length;o++){var l=t[o],s=hi(l.from,u,i),a=hi(ai(l),u,i),u=l.to;i=a;"around"==n?(l=rt((l=e.sel.ranges[o]).head,l.anchor)<0,r[o]=new oi(l?a:s,l?s:a)):r[o]=new oi(s,s)}return new ii(r,e.sel.primIndex)}(this,r,t);for(var s=r.length-1;0<=s;s--)Vi(this,r[s]);t?Wi(this,t):this.cm&&br(this.cm)})),undo:Rr((function(){ji(this,"undo")})),redo:Rr((function(){ji(this,"redo")})),undoSelection:Rr((function(){ji(this,"undo",!0)})),redoSelection:Rr((function(){ji(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new bi(this.history),mi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ti(this.history.done),undone:Ti(this.history.undone)}},setHistory:function(e){var t=this.history=new bi(this.history);t.done=Ti(e.done.slice(0),null,!0),t.undone=Ti(e.undone.slice(0),null,!0)},setGutterMarker:Rr((function(e,t,n){return Qi(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return!(r[t]=n)&&ne(r)&&(e.gutterMarkers=null),1}))})),clearGutter:Rr((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Qi(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ne(n.gutterMarkers)&&(n.gutterMarkers=null),1}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!et(this,e))return null;if(!(e=$e(this,t=e)))return null}else if(null==(t=Qe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Rr((function(e,t,n){return Qi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return;e[r]+=" "+n}else e[r]=n;return 1}))})),removeLineClass:Rr((function(e,t,n){return Qi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(i){if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return;var l=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return 1}}))})),addLineWidget:Rr((function(e,t,n){return i=new to(r=this,t,n),(o=r.cm)&&i.noHScroll&&(o.display.alignWidgets=!0),Qi(r,e,"widget",(function(e){var t=e.widgets||(e.widgets=[]);return null==i.insertAt?t.push(i):t.splice(Math.min(t.length,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Gt(r,e)&&(t=Ut(e)<r.scrollTop,Ze(e,e.height+dn(i)),t&&yr(o,i.height),o.curOp.forceUpdate=!0),1})),o&&nn(o,"lineWidgetAdded",o,i,"number"==typeof e?e:Qe(e)),i;var r,i,o})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return oo(this,ut(this,e),ut(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){return t={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents},oo(this,e=ut(this,e),e,t,"bookmark")},findMarksAt:function(e){var t=[],n=$e(this,(e=ut(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ut(this,e),t=ut(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||n&&!n(a.marker)||r.push(a.marker.parent||a.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){if(i=i.text.length+r,e<i)return t=e,!0;e-=i,++n})),ut(this,nt(n,t))},indexFromPos:function(e){var t=(e=ut(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new uo(qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){for(var t=this.first,n=this.first+this.size,r=(n=(null!=(e=e||{}).from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to),new uo(qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction)),e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],n),i=so(this),o=0;o<i.length;o++){var l=i[o],s=l.find(),a=r.clipPos(s.from);rt(a,s=r.clipPos(s.to))&&(a=oo(r,a,s,l.primary,l.primary.type),l.markers.push(a),a.parent=l)}return n},unlinkDoc:function(e){if(e instanceof rl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ao(so(this));break}}var n;e.history==this.history&&(n=[e.id],mi(e,(function(e){return n.push(e.id)}),!0),e.history=new bi(null),e.history.done=Ti(this.history.done,n),e.history.undone=Ti(this.history.undone,n))},iterLinkedDocs:function(e){mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Pe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Rr((function(e){var t;(e="rtl"!=e?"ltr":e)!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Er(t=this.cm,(function(){yi(t),er(t)})))}))})).eachLine=uo.prototype.iter,0);function fo(e){var t=this;if(po(t),!Ce(t,e)&&!fn(t.display,e)){Te(e),l&&(ho=+new Date);var n=Qn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,a=function(){++s==i&&zr(t,(function(){var e={from:n=ut(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Vi(t.doc,e),Wi(t.doc,si(ut(t.doc,n),ut(t.doc,ai(e))))}))()},u=0;u<r.length;u++)!function(e,n){var r;t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type)?a():((r=new FileReader).onerror=function(){return a()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),a()},r.readAsText(e))}(r[u],u);else{if(t.state.draggingText&&-1<t.doc.sel.contains(n))return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var c,h=e.dataTransfer.getData("Text");if(h){if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),Fi(t.doc,si(n,n)),c)for(var d=0;d<c.length;++d)$i(t.doc,"",c[d].anchor,c[d].head,"drag");t.replaceSelection(h,"around","paste"),t.display.input.focus()}}catch(e){}}}}function po(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function go(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var mo=!1;function vo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var yo={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"},bo=0;bo<10;bo++)yo[bo+48]=yo[bo+96]=String(bo);for(var wo=65;wo<=90;wo++)yo[wo]=String.fromCharCode(wo);for(var xo=1;xo<=12;xo++)yo[xo+111]=yo[xo+63235]="F"+xo;var Co={};function So(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l<o.length-1;l++){var s=o[l];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r?"Shift-"+e:e}function Lo(e,t,n,r){var i=(t=No(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Lo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var l=Lo(e,t.fallthrough[o],n,r);if(l)return l}}}function ko(e){return"Ctrl"==(e="string"==typeof e?e:yo[e.keyCode])||"Alt"==e||"Shift"==e||"Mod"==e}function To(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r?"Shift-"+e:e}function Mo(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=yo[e.keyCode];return null!=n&&!e.altGraphKey&&To(n=3==e.keyCode&&e.code?e.code:n,e,t)}function No(e){return"string"==typeof e?Co[e]:e}function Oo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&rt(o.from,_(r).to)<=0;){var l=r.pop();if(rt(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}Er(e,(function(){for(var t=r.length-1;0<=t;t--)$i(e.doc,"",r[t].from,r[t].to,"+delete");br(e)}))}function Ao(e,t,n){return(t=oe(e.text,t+n,n))<0||t>e.text.length?null:t}function Do(e,t,n){return null==(e=Ao(e,t.ch,n))?null:new nt(t.line,e,n<0?"after":"before")}function Wo(e,t,n,r,i){var o,l,s,a;if(e&&("rtl"==t.doc.direction&&(i=-i),e=me(n,t.doc.direction)))return o=i<0==(1==(e=i<0?_(e):e[0]).level)?"after":"before",0<e.level||"rtl"==t.doc.direction?(l=Sn(t,n),s=i<0?n.text.length-1:0,a=Ln(t,l,s).top,s=le((function(e){return Ln(t,l,e).top==a}),i<0==(1==e.level)?e.from:e.to-1,s),"before"==o&&(s=Ao(n,s,1))):s=i<0?e.to:e.from,new nt(r,s,o);return new nt(r,i<0?n.text.length:0,i<0?"before":"after")}Co.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"},Co.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"},Co.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"},Co.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"]},Co.default=y?Co.macDefault:Co.pcDefault;var Ho={selectAll:Gi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),V)},killLine:function(e){return Oo(e,(function(t){var n;return t.empty()?(n=$e(e.doc,t.head.line).text.length,t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:nt(t.head.line+1,0)}:{from:t.head,to:nt(t.head.line,n)}):{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Oo(e,(function(t){return{from:nt(t.from().line,0),to:ut(e.doc,nt(t.to().line+1,0))}}))},delLineLeft:function(e){return Oo(e,(function(e){return{from:nt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Oo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Oo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:n}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Fo(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Po(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){var n=e,r=(t=t.head.line,$e(n.doc,t)),i=function(e){for(var t;t=Et(e);)e=t.find(1,!0).line;return e}(r);return i!=r&&(t=Qe(i)),Wo(!0,n,r,t,-1)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){return t=e.cursorCoords(t.head,"div").top+5,e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:t},"div")}),j)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){return t=e.cursorCoords(t.head,"div").top+5,e.coordsChar({left:0,top:t},"div")}),j)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return(n=e.coordsChar({left:0,top:n},"div")).ch<e.getLine(n.line).search(/\S/)?Po(e,t.head):n}),j)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from();o=I(e.getLine(o.line),o.ch,r);t.push($(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Er(e,(function(){for(var t,n,r,i=e.listSelections(),o=[],l=0;l<i.length;l++)i[l].empty()&&(t=i[l].head,(n=$e(e.doc,t.line).text)&&(0<(t=t.ch==n.length?new nt(t.line,t.ch-1):t).ch?(t=new nt(t.line,t.ch+1),e.replaceRange(n.charAt(t.ch-1)+n.charAt(t.ch-2),nt(t.line,t.ch-2),t,"+transpose")):t.line>e.doc.first&&(r=$e(e.doc,t.line-1).text)&&(t=new nt(t.line,1),e.replaceRange(n.charAt(0)+e.doc.lineSeparator()+r.charAt(r.length-1),nt(t.line-1,r.length-1),t,"+transpose"))),o.push(new oi(t,t)));e.setSelections(o)}))},newlineAndIndent:function(e){return Er(e,(function(){for(var t=(n=e.listSelections()).length-1;0<=t;t--)e.replaceRange(e.doc.lineSeparator(),n[t].anchor,n[t].head,"+input");for(var n=e.listSelections(),r=0;r<n.length;r++)e.indentLine(n[r].from().line,null,!0);br(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Fo(e,t){var n=$e(e.doc,t),r=It(n);return Wo(!0,e,r,t=r!=n?Qe(r):t,1)}function Po(e,t){var n=Fo(e,t.line),r=$e(e.doc,n.line);return(e=me(r,e.doc.direction))&&0!=e[0].level?n:(e=Math.max(n.ch,r.text.search(/\S/)),r=t.line==n.line&&t.ch<=e&&t.ch,nt(n.line,r?0:e,n.sticky))}function Eo(e,t,n){if("string"==typeof t&&!(t=Ho[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var zo=new R;function Io(e,t,n,r){var i=e.state.keySeq;if(i){if(ko(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:zo.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),Ro(e,i+" "+t,n,r))return!0}return Ro(e,t,n,r)}function Ro(e,t,n,r){return r=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Lo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Lo(t,e.options.extraKeys,n,e)||Lo(t,e.options.keyMap,n,e)}(e,t,r),"multi"==r&&(e.state.keySeq=t),"handled"==r&&nn(e,"keyHandled",e,t,n),"handled"!=r&&"multi"!=r||(Te(n),ur(e)),!!r}function Bo(e,t){var n=Mo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Io(e,"Shift-"+n,t,(function(t){return Eo(e,t,!0)}))||Io(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Eo(e,t)})):Io(e,n,t,(function(t){return Eo(e,t)})))}var Go,Uo,Vo=null;function Ko(e){var t,r,i,o=this;function a(e){18!=e.keyCode&&e.altKey||(S(i,"CodeMirror-crosshair"),we(document,"keyup",a),we(document,"mouseover",a))}e.target&&e.target!=o.display.input.getField()||(o.curOp.focus=O(F(o)),Ce(o,e)||(l&&s<11&&27==e.keyCode&&(e.returnValue=!1),t=e.keyCode,o.display.shift=16==t||e.shiftKey,r=Bo(o,e),h&&(Vo=r?t:null,!r&&88==t&&!ze&&(y?e.metaKey:e.ctrlKey)&&o.replaceSelection("",null,"cut")),n&&!y&&!r&&46==t&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=t||/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)||(A(i=o.display.lineDiv,"CodeMirror-crosshair"),ye(document,"keyup",a),ye(document,"mouseover",a))))}function jo(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ce(this,e)}function Xo(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||fn(t.display,e)||Ce(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n,r=e.keyCode,i=e.charCode;if(h&&r==Vo)return Vo=null,void Te(e);h&&(!e.which||e.which<10)&&Bo(t,e)||"\b"==(r=String.fromCharCode(null==i?r:i))||Io(n=t,"'"+r+"'",e,(function(e){return Eo(n,e,!0)}))||t.display.input.onKeyPress(e)}}function Yo(e,t,n){this.time=e,this.pos=t,this.button=n}function $o(e){var t,n,r,i,o,u,c,h,f,p=this,g=p.display;Ce(p,e)||g.activeTouch&&g.input.supportsTouch()||(g.input.ensurePolled(),g.shift=e.shiftKey,fn(g,e)?a||(g.scroller.draggable=!1,setTimeout((function(){return g.scroller.draggable=!0}),100)):Zo(p,e)||(t=Qn(p,e),n=De(e),r=t?(i=t,o=n,r=+new Date,Uo&&Uo.compare(r,i,o)?(Go=Uo=null,"triple"):Go&&Go.compare(r,i,o)?(Uo=new Yo(r,i,o),Go=null,"double"):(Go=new Yo(r,i,o),Uo=null,"single")):"single",P(p).focus(),1==n&&p.state.selectingText&&p.state.selectingText(e),t&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),Io(e,To(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if(!(t="string"==typeof t?Ho[t]:t))return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(p,n,t,r,e)||(1==n?t?(i=p,o=t,u=r,c=e,l?setTimeout(E(cr,i),0):i.curOp.focus=O(F(i)),h=function(e,t,n){var r,i;return null==(r=(r=e.getOption("configureMouse"))?r(e,t,n):{}).unit&&(i=b?n.shiftKey&&n.metaKey:n.altKey,r.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"),null!=r.extend&&!e.doc.extend||(r.extend=e.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=y?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(y?n.altKey:n.ctrlKey)),r}(i,u,c),f=i.doc.sel,(i.options.dragDrop&&Fe&&!i.isReadOnly()&&"single"==u&&-1<(u=f.contains(o))&&(rt((u=f.ranges[u]).from(),o)<0||0<o.xRel)&&(0<rt(u.to(),o)||o.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=zr(e,(function(t){a&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:hr(e)),we(i.wrapper.ownerDocument,"mouseup",u),we(i.wrapper.ownerDocument,"mousemove",c),we(i.scroller,"dragstart",h),we(i.scroller,"drop",u),o||(Te(t),r.addNew||Ni(e.doc,n,null,null,r.extend),a&&!d||l&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||10<=Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)},h=function(){return o=!0};a&&(i.scroller.draggable=!0),(e.state.draggingText=u).copy=!r.moveOnDrag,ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",h),ye(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}:function(e,t,n,r){l&&hr(e);var i=e.display,o=e.doc;Te(t);var s,a,u=o.sel,c=u.ranges;r.addNew&&!r.extend?(a=o.sel.contains(n),s=-1<a?c[a]:new oi(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit?(r.addNew||(s=new oi(n,n)),n=Qn(e,t,!0,!0),a=-1):(t=_o(e,n,r.unit),s=r.extend?Mi(s,t.anchor,t.head,r.extend):t),r.addNew?-1==a?(a=c.length,Hi(o,li(e,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):1<c.length&&c[a].empty()&&"char"==r.unit&&!r.extend?(Hi(o,li(e,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ai(o,a,s,K):(Hi(o,new ii([s],a=0),K),u=o.sel);var h=n;var d=i.wrapper.getBoundingClientRect(),f=0;function p(t){e.state.selectingText=!1,f=1/0,t&&(Te(t),i.input.focus()),we(i.wrapper.ownerDocument,"mousemove",g),we(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var g=zr(e,(function(t){(0!==t.buttons&&De(t)?function t(l){var c,p,g=++f,m=Qn(e,l,!0,"rectangle"==r.unit);m&&(0!=rt(m,h)?(e.curOp.focus=O(F(e)),function(t){if(0!=rt(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=I($e(o,n.line).text,n.ch,l),d=I($e(o,t.line).text,t.ch,l),f=Math.min(c,d),p=Math.max(c,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=$e(o,g).text,y=X(v,f,l);f==p?i.push(new oi(nt(g,y),nt(g,y))):v.length>y&&i.push(new oi(nt(g,y),nt(g,X(v,p,l))))}i.length||i.push(new oi(n,n)),Hi(o,li(e,u.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b;c=s,d=_o(e,t,r.unit),t=c.anchor,t=0<rt(d.anchor,t)?(b=d.head,st(c.from(),d.anchor)):(b=d.anchor,lt(c.to(),d.head)),(c=u.ranges.slice(0))[a]=function(e,t){var n=t.anchor,r=t.head,i=$e(e.doc,n.line);if(0==rt(n,r)&&n.sticky==r.sticky)return t;if(!(i=me(i)))return t;var o=ae(i,n.ch,n.sticky),l=i[o];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=o+(l.from==n.ch==(1!=l.level)?0:1);return 0==s||s==i.length?t:(l=r.line!=n.line?0<(r.line-n.line)*("ltr"==e.doc.direction?1:-1):(o=(e=ae(i,r.ch,r.sticky))-o||(r.ch-n.ch)*(1==l.level?-1:1),e==s-1||e==s?o<0:0<o),i=(o=l==(1==(e=i[s+(l?-1:0)]).level))?e.from:e.to,s=o?"after":"before",n.ch==i&&n.sticky==s?t:new oi(new nt(n.line,i,s),r))}(e,new oi(ut(o,t),b)),Hi(o,li(e,c,a),K)}}(m),c=mr(i,o),(m.line>=c.to||m.line<c.from)&&setTimeout(zr(e,(function(){f==g&&t(l)})),150)):(p=l.clientY<d.top?-20:l.clientY>d.bottom?20:0)&&setTimeout(zr(e,(function(){f==g&&(i.scroller.scrollTop+=p,t(l))})),50))}:p)(t)})),m=zr(e,p);e.state.selectingText=m,ye(i.wrapper.ownerDocument,"mousemove",g),ye(i.wrapper.ownerDocument,"mouseup",m)})(i,c,o,h)):Ae(e)==g.scroller&&Te(e):2==n?(t&&Ni(p.doc,t),setTimeout((function(){return g.input.focus()}),20)):3==n&&(x?p.display.input.onContextMenu(e):hr(p)))))}function _o(e,t,n){return"char"==n?new oi(t,t):"word"==n?e.findWordAt(t):"line"==n?new oi(nt(t.line,0),ut(e.doc,nt(t.line+1,0))):(n=n(e,t),new oi(n.from,n.to))}function qo(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Te(t);var l=e.display;if(o>(r=l.lineDiv.getBoundingClientRect()).bottom||!Le(e,n))return Ne(t);o-=r.top-l.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var a=l.gutters.childNodes[s];if(a&&a.getBoundingClientRect().right>=i)return xe(e,n,e,Je(e.doc,o),e.display.gutterSpecs[s].className,t),Ne(t)}}function Zo(e,t){return qo(e,t,"gutterClick",!0)}function Qo(e,t){var n,r;fn(e.display,t)||(r=t,Le(n=e,"gutterContextMenu")&&qo(n,r,"gutterContextMenu",!1))||Ce(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Jo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),An(e)}Yo.prototype.compare=function(e,t,n){return this.time+400>e&&0==rt(t,this.pos)&&n==this.button};var el={toString:function(){return"CodeMirror.Init"}},tl={},nl={};function rl(e,t){var n=this;if(!(this instanceof rl))return new rl(e,t);this.options=t=t?z(t):{},z(tl,t,!1);var r,i=t.value,o=("string"==typeof i?i=new uo(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i,new rl.inputStyles[t.inputStyle](this)),u=(Jo((e=this.display=new Jr(e,i,o,t)).wrapper.CodeMirror=this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(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 R,keySeq:null,specialChars:null},t.autofocus&&!v&&e.input.focus(),l&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),this),c=u.display;ye(c.scroller,"mousedown",zr(u,$o)),ye(c.scroller,"dblclick",l&&s<11?zr(u,(function(e){var t;Ce(u,e)||!(t=Qn(u,e))||Zo(u,e)||fn(u.display,e)||(Te(e),e=u.findWordAt(t),Ni(u.doc,e.anchor,e.head))})):function(e){return Ce(u,e)||Te(e)}),ye(c.scroller,"contextmenu",(function(e){return Qo(u,e)})),ye(c.input.getField(),"contextmenu",(function(e){c.scroller.contains(e.target)||Qo(u,e)}));var f,p={end:0};function g(){c.activeTouch&&(f=setTimeout((function(){return c.activeTouch=null}),1e3),(p=c.activeTouch).end=+new Date)}function m(e,t){if(null==t.left)return 1;var n=t.left-e.left;return 400<n*n+(t=t.top-e.top)*t}for(r in ye(c.scroller,"touchstart",(function(e){var t;Ce(u,e)||function(e){if(1==e.touches.length)return(e=e.touches[0]).radiusX<=1&&e.radiusY<=1}(e)||Zo(u,e)||(c.input.ensurePolled(),clearTimeout(f),t=+new Date,c.activeTouch={start:t,moved:!1,prev:t-p.end<=300?p:null},1==e.touches.length&&(c.activeTouch.left=e.touches[0].pageX,c.activeTouch.top=e.touches[0].pageY))})),ye(c.scroller,"touchmove",(function(){c.activeTouch&&(c.activeTouch.moved=!0)})),ye(c.scroller,"touchend",(function(e){var t,n=c.activeTouch;n&&!fn(c,e)&&null!=n.left&&!n.moved&&new Date-n.start<300&&(t=u.coordsChar(c.activeTouch,"page"),n=!n.prev||m(n,n.prev)?new oi(t,t):!n.prev.prev||m(n,n.prev.prev)?u.findWordAt(t):new oi(nt(t.line,0),ut(u.doc,nt(t.line+1,0))),u.setSelection(n.anchor,n.head),u.focus(),Te(e)),g()})),ye(c.scroller,"touchcancel",g),ye(c.scroller,"scroll",(function(){c.scroller.clientHeight&&(Sr(u,c.scroller.scrollTop),kr(u,c.scroller.scrollLeft,!0),xe(u,"scroll",u))})),ye(c.scroller,"mousewheel",(function(e){return ri(u,e)})),ye(c.scroller,"DOMMouseScroll",(function(e){return ri(u,e)})),ye(c.wrapper,"scroll",(function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0})),c.dragFunctions={enter:function(e){Ce(u,e)||Oe(e)},over:function(e){var t,n;Ce(u,e)||((n=Qn(t=u,n=e))&&(sr(t,n,n=document.createDocumentFragment()),t.display.dragCursor||(t.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,n)),Oe(e))},start:function(e){var t,n;t=u,l&&(!t.state.draggingText||+new Date-ho<100)?Oe(e):Ce(t,e)||fn(t.display,e)||(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d&&((n=T("img",null,null,"position: fixed; left: 0; top: 0;")).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)))},drop:zr(u,fo),leave:function(e){Ce(u,e)||po(u)}},o=c.input.getField(),ye(o,"keyup",(function(e){return jo.call(u,e)})),ye(o,"keydown",zr(u,Ko)),ye(o,"keypress",zr(u,Xo)),ye(o,"focus",(function(e){return dr(u,e)})),ye(o,"blur",(function(e){return fr(u,e)})),function(){var e;mo||(ye(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,go(vo)}),100))})),ye(window,"blur",(function(){return go(fr)})),mo=!0)}(),Fr(this),this.curOp.forceUpdate=!0,vi(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&dr(n)}),20):fr(this),nl)nl.hasOwnProperty(r)&&nl[r](this,t[r],el);_r(this),t.finishInit&&t.finishInit(this);for(var y=0;y<il.length;++y)il[y](this);Pr(this),a&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(e.lineDiv).textRendering&&(e.lineDiv.style.textRendering="auto")}rl.defaults=tl,rl.optionHandlers=nl;var il=[];function ol(e,t,n,r){var i,o=e.doc,l=("smart"==(n=null==n?"add":n)&&(o.mode.indent?i=gt(e,t).state:n="prev"),e.options.tabSize),s=$e(o,t),a=I(s.text,null,l),u=(s.stateAfter&&(s.stateAfter=null),s.text.match(/^\s*/)[0]);if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||150<c)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?I($e(o,t-1).text,null,l):0:"add"==n?c=a+e.options.indentUnit:"subtract"==n?c=a-e.options.indentUnit:"number"==typeof n&&(c=a+n);var c=Math.max(0,c),h="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/l);f;--f)d+=l,h+="\t";if(d<c&&(h+=$(c-d)),h!=u)return $i(o,h,nt(t,0),nt(t,u.length),"+input"),!(s.stateAfter=null);for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){g=nt(t,u.length),Ai(o,p,new oi(g,g));break}}}rl.defineInitHook=function(e){return il.push(e)};var ll,sl,al,ul,cl,hl=null;function dl(e){hl=e}function fl(e,t,n,r,i){var o=e.doc,l=(e.display.shift=!1,r=r||o.sel,+new Date-200),s="paste"==i||e.state.pasteIncoming>l,a=Pe(t),u=null;if(s&&1<r.ranges.length)if(hl&&hl.text.join("\n")==t){if(r.ranges.length%hl.text.length==0){u=[];for(var c=0;c<hl.text.length;c++)u.push(o.splitLines(hl.text[c]))}}else a.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=q(a,(function(e){return[e]})));for(var h=e.curOp.updateInput,d=r.ranges.length-1;0<=d;d--){var f=(g=r.ranges[d]).from(),p=g.to(),g=(g.empty()&&(n&&0<n?f=nt(f.line,f.ch-n):e.state.overwrite&&!s?p=nt(p.line,Math.min($e(o,p.line).text.length,p.ch+_(a).length)):s&&hl&&hl.lineWise&&hl.text.join("\n")==a.join("\n")&&(f=p=nt(f.line,0))),{from:f,to:p,text:u?u[d%u.length]:a,origin:i||(s?"paste":e.state.cutIncoming>l?"cut":"+input")});Vi(e.doc,g),nn(e,"inputRead",e,g)}t&&!s&&gl(e,t),br(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function pl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");return n&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Er(t,(function(){return fl(t,n,0,null,"paste")})),1)}function gl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0<=r;r--){var i=n.ranges[r];if(!(100<i.head.ch||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(-1<t.indexOf(o.electricChars.charAt(s))){l=ol(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test($e(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=ol(e,i.head.line,"smart"));l&&nn(e,"electricInput",e,i.head.line)}}}function ml(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i={anchor:nt(i=e.doc.sel.ranges[r].head.line,0),head:nt(i+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function vl(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function yl(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function bl(e,t,n,r,i){var o=t,l=n,s=$e(e,t.line),a=i&&"rtl"==e.direction?-n:n;function u(o){var l;if(null==(l="codepoint"==r?(l=s.text.charCodeAt(t.ch+(0<n?0:-1)),isNaN(l)?null:(l=0<n?55296<=l&&l<56320:56320<=l&&l<57343,new nt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(l?2:1))),-n))):i?function(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return Do(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ae(i,n.ch,n.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(0<r?l.to>n.ch:l.from<n.ch))return Do(t,n,r);function s(e,n){return Ao(t,e instanceof nt?e.ch:e,n)}function a(n){return e.options.lineWrapping?(u=u||Sn(e,t),Un(e,t,u,n)):{begin:0,end:t.text.length}}var u,c=a("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==l.level){var h=1==l.level==r<0,d=s(n,h?1:-1);if(null!=d&&(h?d<=l.to&&d<=c.end:d>=l.from&&d>=c.begin))return new nt(n.line,d,h?"before":"after")}function f(e,t,r){for(var o=function(e,t){return t?new nt(n.line,s(e,1),"before"):new nt(n.line,e,"after")};0<=e&&e<i.length;e+=t){var l=i[e],a=0<t==(1!=l.level),u=a?r.begin:s(r.end,-1);if(l.from<=u&&u<l.to)return o(u,a);if(u=a?l.from:s(l.to,-1),r.begin<=u&&u<r.end)return o(u,a)}}return(l=f(o+r,r,c))?l:null==(d=0<r?c.end:s(c.begin,-1))||0<r&&d==t.text.length||!(l=f(0<r?0:i.length-1,r,a(d)))?null:l}(e.cm,s,t,n):Do(s,t,n))){if(o||(o=t.line+a)<e.first||o>=e.first+e.size||(t=new nt(o,t.ch,t.sticky),!(s=$e(e,o))))return;t=Wo(i,e.cm,s,t.line,a)}else t=l;return 1}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var p=te(p=s.text.charAt(t.ch)||"\n",d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||p||(p="s"),c&&c!=p){n<0&&(n=1,u(),t.sticky="after");break}if(p&&(c=p),0<n&&!u(!f))break}return it(o,l=Ri(e,t,o,l,!0))&&(l.hitSide=!0),l}function wl(e,t,n,r){var i,o,l,s=e.doc,a=t.left;for("page"==r?(i=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||s(e).documentElement.clientHeight),i=Math.max(i-.5*Xn(e.display),3),o=(0<n?t.bottom:t.top)+n*i):"line"==r&&(o=0<n?t.bottom+3:t.top-3);(l=Bn(e,a,o)).outside;){if(n<0?o<=0:o>=s.height){l.hitSide=!0;break}o+=5*n}return l}function xl(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Cl(e,t){if(!(n=Cn(e,t.line))||n.hidden)return null;var n=wn(n,r=$e(e.doc,t.line),t.line),r=me(r,e.doc.direction);e="left";return(r=(r&&(e=ae(r,t.ch)%2?"right":"left"),Mn(n.map,t.ch,e))).offset="right"==r.collapse?r.end:r.start,r}function Sl(e,t){return t&&(e.bad=!0),e}function Ll(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Sl(e.clipPos(nt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){if((l=e.display.view[i]).node==r){var o=l,l=t,s=n,a=o.text.firstChild,u=!1;if(!l||!N(a,l))return Sl(nt(Qe(o.line),0),!0);if(l==a&&(u=!0,l=a.childNodes[s],s=0,!l))return Sl(nt(Qe(c=o.rest?_(o.rest):o.line),c.text.length),u);var c=3==l.nodeType?l:null,h=l;for(c||1!=l.childNodes.length||3!=l.firstChild.nodeType||(c=l.firstChild,s=s&&c.nodeValue.length);h.parentNode!=a;)h=h.parentNode;var d=o.measure,f=d.maps;function b(e,t,n){for(var r=-1;r<(f?f.length:0);r++)for(var i=r<0?d.map:f[r],l=0;l<i.length;l+=3){var s,a,u=i[l+2];if(u==e||u==t)return s=Qe(r<0?o.line:o.rest[r]),a=i[l]+n,nt(s,a=n<0||u!=e?i[l+(n?1:0)]:a)}}var p=b(c,h,s);if(p)return Sl(p,u);for(var g=h.nextSibling,m=c?c.nodeValue.length-s:0;g;g=g.nextSibling){if(p=b(g,g.firstChild,0))return Sl(nt(p.line,p.ch-m),u);m+=g.textContent.length}for(var v=h.previousSibling,y=s;v;v=v.previousSibling){if(p=b(v,v.firstChild,-1))return Sl(nt(p.line,p.ch+y),u);y+=v.textContent.length}return}}}function kl(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null,this.resetting=!1}function Tl(e,t,n,r){ll.defaults[e]=t,n&&(sl[e]=r?function(e,t,r){r!=el&&n(e,t,r)}:n)}xl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return 1;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}}function l(e){if(o(e)&&!Ce(r,e)){if(r.somethingSelected())dl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ml(r);dl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var l=hl.text.join("\n");if(e.clipboardData.setData("Text",l),e.clipboardData.getData("Text")==l)return void e.preventDefault()}var s=yl(),a=(vl(l=s.firstChild),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=hl.text.join("\n"),O(i.ownerDocument));H(l),setTimeout((function(){r.display.lineSpace.removeChild(s),a.focus(),a==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,vl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ye(i,"paste",(function(e){!o(e)||Ce(r,e)||pl(e,r)||s<=11&&setTimeout(zr(r,(function(){return t.updateFromDOM()})),20)})),ye(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ye(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ye(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ye(i,"touchstart",(function(){return n.forceCompositionEnd()})),ye(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ye(i,"copy",l),ye(i,"cut",l)},xl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},xl.prototype.prepareSelection=function(){var e=lr(this.cm,!1);return e.focus=O(this.div.ownerDocument)==this.div,e},xl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},xl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},xl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=(i=t.doc.sel.primary()).from(),i=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Ll(t,e.anchorNode,e.anchorOffset),l=Ll(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=rt(st(o,l),r)||0!=rt(lt(o,l),i)){o=t.display.view,l=r.line>=t.display.viewFrom&&Cl(t,r)||{node:o[0].measure.map[2],offset:0};if((r=i.line<t.display.viewTo&&Cl(t,i))||(r={node:(o=(i=o[o.length-1].measure).maps?i.maps[i.maps.length-1]:i.map)[o.length-1],offset:o[o.length-2]-o[o.length-3]}),l&&r){var s;i=e.rangeCount&&e.getRangeAt(0);try{s=W(l.node,l.offset,r.offset,r.node)}catch(e){}s&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),s.collapsed||(e.removeAllRanges(),e.addRange(s))):(e.removeAllRanges(),e.addRange(s)),i&&null==e.anchorNode?e.addRange(i):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},xl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},xl.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},xl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},xl.prototype.selectionInEditor=function(){var e=this.getSelection();return!!e.rangeCount&&(e=e.getRangeAt(0).commonAncestorContainer,N(this.div,e))},xl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&O(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},xl.prototype.blur=function(){this.div.blur()},xl.prototype.getField=function(){return this.div},xl.prototype.supportsTouch=function(){return!0},xl.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Er(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},xl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},xl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e,t,n=this.getSelection(),r=this.cm;if(m&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return 1}(n.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();this.composing||(this.rememberSelection(),e=Ll(r,n.anchorNode,n.anchorOffset),t=Ll(r,n.focusNode,n.focusOffset),e&&t&&Er(r,(function(){Hi(r.doc,si(e,t),V),(e.bad||t.bad)&&(r.curOp.selectionChanged=!0)})))}},xl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t=this.cm,n=t.display,r=(i=t.doc.sel.primary()).from(),i=i.to();if(0==r.ch&&r.line>t.firstLine()&&(r=nt(r.line-1,$e(t.doc,r.line-1).length)),i.ch==$e(t.doc,i.line).text.length&&i.line<t.lastLine()&&(i=nt(i.line+1,0)),r.line<n.viewFrom||i.line>n.viewTo-1)return!1;var o,l=r.line==n.viewFrom||0==(l=Jn(t,r.line))?(e=Qe(n.view[0].line),n.view[0].node):(e=Qe(n.view[l].line),n.view[l-1].node.nextSibling);n=(i=Jn(t,i.line))==n.view.length-1?(o=n.viewTo-1,n.lineDiv.lastChild):(o=Qe(n.view[i+1].line)-1,n.view[i+1].node.previousSibling);if(!l)return!1;for(var s=t.doc.splitLines(function(e,t,n,r,i){var o="",l=!1,s=e.doc.lineSeparator(),a=!1;function u(){l&&(o+=s,a&&(o+=s),l=a=!1)}function c(e){e&&(u(),o+=e)}for(;function t(n){if(1==n.nodeType){var o=n.getAttribute("cm-text");if(o)c(o);else if(o=n.getAttribute("cm-marker"))(o=e.findMarks(nt(r,0),nt(i+1,0),(d=+o,function(e){return e.id==d}))).length&&(o=o[0].find(0))&&c(_e(e.doc,o.from,o.to).join(s));else if("false"!=n.getAttribute("contenteditable")&&(o=/^(pre|div|p|li|table|br)$/i.test(n.nodeName),/^br$/i.test(n.nodeName)||0!=n.textContent.length)){o&&u();for(var h=0;h<n.childNodes.length;h++)t(n.childNodes[h]);/^(pre|p)$/i.test(n.nodeName)&&(a=!0),o&&(l=!0)}}else 3==n.nodeType&&c(n.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var d}(t),t!=n;)t=t.nextSibling,a=!1;return o}(t,l,n,e,o)),a=_e(t.doc,nt(e,0),nt(o,$e(t.doc,o).text.length));1<s.length&&1<a.length;)if(_(s)==_(a))s.pop(),a.pop(),o--;else{if(s[0]!=a[0])break;s.shift(),a.shift(),e++}for(var u=0,c=0,h=s[0],d=a[0],f=Math.min(h.length,d.length);u<f&&h.charCodeAt(u)==d.charCodeAt(u);)++u;for(var p=_(s),g=_(a),m=Math.min(p.length-(1==s.length?u:0),g.length-(1==a.length?u:0));c<m&&p.charCodeAt(p.length-c-1)==g.charCodeAt(g.length-c-1);)++c;if(1==s.length&&1==a.length&&e==r.line)for(;u&&u>r.ch&&p.charCodeAt(p.length-c-1)==g.charCodeAt(g.length-c-1);)u--,c++;return s[s.length-1]=p.slice(0,p.length-c).replace(/^\u200b+/,""),s[0]=s[0].slice(u).replace(/\u200b+$/,""),i=nt(e,u),l=nt(o,a.length?_(a).length-c:0),1<s.length||s[0]||rt(i,l)?($i(t.doc,s,i,l,"+input"),!0):void 0},xl.prototype.ensurePolled=function(){this.forceCompositionEnd()},xl.prototype.reset=function(){this.forceCompositionEnd()},xl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},xl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},xl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Er(this.cm,(function(){return er(e.cm)}))},xl.prototype.setUneditable=function(e){e.contentEditable="false"},xl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||zr(this.cm,fl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},xl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},xl.prototype.onContextMenu=function(){},xl.prototype.resetPosition=function(){},xl.prototype.needsContentAttribute=!0,kl.prototype.init=function(e){var t=this,n=this,r=this.cm,i=(this.createField(e),this.textarea);function o(e){if(!Ce(r,e)){if(r.somethingSelected())dl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ml(r);dl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,V):(n.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ye(i,"input",(function(){l&&9<=s&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ye(i,"paste",(function(e){Ce(r,e)||pl(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ye(i,"cut",o),ye(i,"copy",o),ye(e.scroller,"paste",(function(t){if(!fn(e,t)&&!Ce(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ye(e.lineSpace,"selectstart",(function(t){fn(e,t)||Te(t)})),ye(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ye(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},kl.prototype.createField=function(e){this.wrapper=yl(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;vl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},kl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},kl.prototype.prepareSelection=function(){var e,t=this.cm,n=t.display,r=t.doc,i=lr(t);return t.options.moveInputWithCursor&&(t=zn(t,r.sel.primary().head,"div"),r=n.wrapper.getBoundingClientRect(),e=n.lineDiv.getBoundingClientRect(),i.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,t.top+e.top-r.top)),i.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,t.left+e.left-r.left))),i},kl.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},kl.prototype.reset=function(e){var t,n;this.contextMenuPending||this.composing&&e||(t=this.cm,this.resetting=!0,t.somethingSelected()?(this.prevInput="",n=t.getSelection(),this.textarea.value=n,t.state.focused&&H(this.textarea),l&&9<=s&&(this.hasSelection=n)):e||(this.prevInput=this.textarea.value="",l&&9<=s&&(this.hasSelection=null)),this.resetting=!1)},kl.prototype.getField=function(){return this.textarea},kl.prototype.supportsTouch=function(){return!1},kl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||O(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},kl.prototype.blur=function(){this.textarea.blur()},kl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},kl.prototype.receivedFocus=function(){this.slowPoll()},kl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},kl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},kl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Ee(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(l&&9<=s&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,i.length);a<u&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Er(t,(function(){fl(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),1e3<i.length||-1<i.indexOf("\n")?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},kl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},kl.prototype.onKeyPress=function(){l&&9<=s&&(this.hasSelection=null),this.fastPoll()},kl.prototype.onContextMenu=function(e){var t,n,r,i,o=this,u=o.cm,c=u.display,d=o.textarea,f=(o.contextMenuPending&&o.contextMenuPending(),Qn(u,e)),p=c.scroller.scrollTop;function g(){var e,t;null!=d.selectionStart&&(t=""+((e=u.somethingSelected())?d.value:""),d.value="⇚",d.value=t,o.prevInput=e?"":"",d.selectionStart=1,d.selectionEnd=t.length,c.selForContextMenu=u.doc.sel)}function m(){var e,r;o.contextMenuPending==m&&(o.contextMenuPending=!1,o.wrapper.style.cssText=n,d.style.cssText=t,l&&s<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=p),null!=d.selectionStart&&((!l||s<9)&&g(),e=0,r=function(){c.selForContextMenu==u.doc.sel&&0==d.selectionStart&&0<d.selectionEnd&&""==o.prevInput?zr(u,Gi)(u):e++<10?c.detectingSelectAll=setTimeout(r,500):(c.selForContextMenu=null,c.input.reset())},c.detectingSelectAll=setTimeout(r,200)))}f&&!h&&(u.options.resetSelectionOnContextMenu&&-1==u.doc.sel.contains(f)&&zr(u,Hi)(u.doc,si(f),V),t=d.style.cssText,n=o.wrapper.style.cssText,f=o.wrapper.offsetParent.getBoundingClientRect(),o.wrapper.style.cssText="position: static",d.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",a&&(r=d.ownerDocument.defaultView.scrollY),c.input.focus(),a&&d.ownerDocument.defaultView.scrollTo(null,r),c.input.reset(),u.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=m,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll),l&&9<=s&&g(),x?(Oe(e),i=function(){we(window,"mouseup",i),setTimeout(m,20)},ye(window,"mouseup",i)):setTimeout(m,50))},kl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},kl.prototype.setUneditable=function(){},kl.prototype.needsContentAttribute=!1,sl=(ll=rl).optionHandlers,ll.defineOption=Tl,ll.Init=el,Tl("value","",(function(e,t){return e.setValue(t)}),!0),Tl("mode",null,(function(e,t){e.doc.modeOption=t,di(e)}),!0),Tl("indentUnit",2,di,!0),Tl("indentWithTabs",!1),Tl("smartIndent",!0),Tl("tabSize",4,(function(e){fi(e),An(e),er(e)}),!0),Tl("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(nt(r,o))}r++}));for(var i=n.length-1;0<=i;i--)$i(e.doc,t,n[i],nt(n[i].line,n[i].ch+t.length))}})),Tl("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=el&&e.refresh()})),Tl("specialCharPlaceholder",(function(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}),(function(e){return e.refresh()}),!0),Tl("electricChars",!0),Tl("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),Tl("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),Tl("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),Tl("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),Tl("rtlMoveVisually",!i),Tl("wholeLineUpdateBefore",!0),Tl("theme","default",(function(e){Jo(e),Qr(e)}),!0),Tl("keyMap","default",(function(e,t,n){t=No(t),(n=n!=el&&No(n))&&n.detach&&n.detach(e,t),t.attach&&t.attach(e,n||null)})),Tl("extraKeys",null),Tl("configureMouse",null),Tl("lineWrapping",!1,(function(e){e.options.lineWrapping?(A(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Kt(e)),Zn(e),er(e),An(e),setTimeout((function(){return Or(e)}),100)}),!0),Tl("gutters",[],(function(e,t){e.display.gutterSpecs=qr(t,e.options.lineNumbers),Qr(e)}),!0),Tl("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?_n(e.display)+"px":"0",e.refresh()}),!0),Tl("coverGutterNextToScrollbar",!1,(function(e){return Or(e)}),!0),Tl("scrollbarStyle","native",(function(e){Wr(e),Or(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),Tl("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=qr(e.options.gutters,t),Qr(e)}),!0),Tl("firstLineNumber",1,Qr,!0),Tl("lineNumberFormatter",(function(e){return e}),Qr,!0),Tl("showCursorWhenSelecting",!1,or,!0),Tl("resetSelectionOnContextMenu",!0),Tl("lineWiseCopyCut",!0),Tl("pasteLinesPerSelection",!0),Tl("selectionsMayTouch",!1),Tl("readOnly",!1,(function(e,t){"nocursor"==t&&(fr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),Tl("screenReaderLabel",null,(function(e,t){e.display.input.screenReaderLabelChanged(t=""===t?null:t)})),Tl("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),Tl("dragDrop",!0,(function(e,t,n){!t!=!(n&&n!=el)&&(n=e.display.dragFunctions,(t=t?ye:we)(e.display.scroller,"dragstart",n.start),t(e.display.scroller,"dragenter",n.enter),t(e.display.scroller,"dragover",n.over),t(e.display.scroller,"dragleave",n.leave),t(e.display.scroller,"drop",n.drop))})),Tl("allowDropFileTypes",null),Tl("cursorBlinkRate",530),Tl("cursorScrollMargin",0),Tl("cursorHeight",1,or,!0),Tl("singleCursorHeightPerLine",!0,or,!0),Tl("workTime",100),Tl("workDelay",100),Tl("flattenSpans",!0,fi,!0),Tl("addModeClass",!1,fi,!0),Tl("pollInterval",100),Tl("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),Tl("historyEventDelay",1250),Tl("viewportMargin",10,(function(e){return e.refresh()}),!0),Tl("maxHighlightLength",1e4,fi,!0),Tl("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),Tl("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),Tl("autofocus",null),Tl("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),Tl("phrases",null),ul=(al=rl).optionHandlers,cl=al.helpers={},al.prototype={constructor:al,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,ul.hasOwnProperty(e)&&zr(this,ul[e])(this,t,r),xe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](No(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ir((function(e,t){if((n=e.token?e:al.getMode(this.options,e)).startState)throw new Error("Overlays may not be stateful.");for(var n,r=this.state.overlays,i=function(e){return e.priority},o=0,l=i(n={mode:n,modeSpec:e,opaque:t&&t.opaque,priority:t&&t.priority||0});o<r.length&&i(r[o])<=l;)o++;r.splice(o,0,n),this.state.modeGen++,er(this)})),removeOverlay:Ir((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void er(this)}})),indentLine:Ir((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),et(this.doc,e)&&ol(this,e,t,n)})),indentSelection:Ir((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){if((o=t[r]).empty())o.head.line>n&&(ol(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&br(this));else{for(var i=o.from(),o=o.to(),l=Math.max(n,i.line),s=(n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1,l);s<n;++s)ol(this,s,e);o=this.doc.sel.ranges,0==i.ch&&t.length==o.length&&0<o[r].from().ch&&Ai(this.doc,r,new oi(i,o[r].to()),V)}}})),getTokenAt:function(e,t){return wt(this,e,t)},getLineTokens:function(e,t){return wt(this,nt(e),t,!0)},getTokenTypeAt:function(e){e=ut(this.doc,e);var t,n=pt(this,$e(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]<o)){t=n[2*l+2];break}r=1+l}}return(e=t?t.indexOf("overlay "):-1)<0?t:0==e?null:t.slice(0,e-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?al.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!cl.hasOwnProperty(t))return n;var r=cl[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var l=r[i[t][o]];l&&n.push(l)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(var s=0;s<r._global.length;s++){var a=r._global[s];a.pred(i,this)&&-1==B(n,a.val)&&n.push(a.val)}return n},getStateAfter:function(e,t){var n=this.doc;return gt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return zn(this,e=null==e?n.head:"object"==typeof e?ut(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return En(this,ut(this.doc,e),t||"page")},coordsChar:function(e,t){return Bn(this,(e=Pn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Pn(this,{top:e,left:0},t||"page").top,Je(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=!1,i="number"==typeof e?(i=this.doc.first+this.doc.size-1,e<this.doc.first?e=this.doc.first:i<e&&(e=i,r=!0),$e(this.doc,e)):e;return Fn(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-Ut(i):0)},defaultTextHeight:function(){return Xn(this.display)},defaultCharWidth:function(){return Yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,l,s=this.display,a=(e=zn(this,ut(this.doc,e))).bottom,u=e.left;t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r?a=e.top:"above"!=r&&"near"!=r||(l=Math.max(s.wrapper.clientHeight,this.doc.height),o=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth),("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),u+t.offsetWidth>o&&(u=o-t.offsetWidth)),t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(null!=(l=vr(r=this,l={left:u,top:a,right:u+t.offsetWidth,bottom:a+t.offsetHeight})).scrollTop&&Sr(r,l.scrollTop),null!=l.scrollLeft&&kr(r,l.scrollLeft))},triggerOnKeyDown:Ir(Ko),triggerOnKeyPress:Ir(Xo),triggerOnKeyUp:jo,triggerOnMouseDown:Ir($o),execCommand:function(e){if(Ho.hasOwnProperty(e))return Ho[e].call(null,this)},triggerElectric:Ir((function(e){gl(this,e)})),findPosH:function(e,t,n,r){for(var i=1,o=(t<0&&(i=-1,t=-t),ut(this.doc,e)),l=0;l<t&&!(o=bl(this.doc,o,i,n,r)).hitSide;++l);return o},moveH:Ir((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?bl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),j)})),deleteH:Ir((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Oo(this,(function(n){var i=bl(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){for(var i=1,o=r,l=(t<0&&(i=-1,t=-t),ut(this.doc,e)),s=0;s<t;++s){var a=zn(this,l,"div");if(null==o?o=a.left:a.left=o,(l=wl(this,a,i,n)).hitSide)break}return l},moveV:Ir((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(l){if(o)return e<0?l.from():l.to();var s=zn(n,l.head,"div"),a=(null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left),wl(n,s,e,t));return"page"==t&&l==r.sel.primary()&&yr(n,En(n,a,"div").top-s.top),a}),j),i.length)for(var l=0;l<r.sel.ranges.length;l++)r.sel.ranges[l].goalColumn=i[l]})),findWordAt:function(e){var t=$e(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){for(var i=this.getHelper(e,"wordChars"),o=("before"!=e.sticky&&r!=t.length||!n?++r:--n,t.charAt(n)),l=te(o,i)?function(e){return te(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!te(e)};0<n&&l(t.charAt(n-1));)--n;for(;r<t.length&&l(t.charAt(r));)++r}return new oi(nt(e.line,n),nt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||(((this.state.overwrite=!this.state.overwrite)?A:S)(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ir((function(e,t){wr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-vn(this)-this.display.barHeight,width:e.scrollWidth-vn(this)-this.display.barWidth,clientHeight:bn(this),clientWidth:yn(this)}},scrollIntoView:Ir((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:nt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?(t=e,xr(this),this.curOp.scrollToPos=t):Cr(this,e.from,e.to,e.margin)})),setSize:Ir((function(e,t){function n(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var r=this,i=(null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&On(this),this.display.viewFrom);this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){tr(r,i,"widget");break}++i})),this.curOp.forceUpdate=!0,xe(this,"refresh",this)})),operation:function(e){return Er(this,e)},startOperation:function(){return Fr(this)},endOperation:function(){return Pr(this)},refresh:Ir((function(){var e=this.display.cachedTextHeight;er(this),this.curOp.forceUpdate=!0,An(this),wr(this,this.doc.scrollLeft,this.doc.scrollTop),Xr(this.display),(null==e||.5<Math.abs(e-Xn(this.display))||this.options.lineWrapping)&&Zn(this),xe(this,"refresh",this)})),swapDoc:Ir((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vi(this,e),An(this),this.display.input.reset(),wr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,nn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},ke(al),al.registerHelper=function(e,t,n){cl.hasOwnProperty(e)||(cl[e]=al[e]={_global:[]}),cl[e][t]=n},al.registerGlobalHelper=function(e,t,n,r){al.registerHelper(e,t,r),cl[e]._global.push({pred:n,val:r})};var Ml,Nl="iter insert remove copy getEditor constructor".split(" ");for(Ml in uo.prototype)uo.prototype.hasOwnProperty(Ml)&&B(Nl,Ml)<0&&(rl.prototype[Ml]=function(e){return function(){return e.apply(this.doc,arguments)}}(uo.prototype[Ml]));return ke(uo),rl.inputStyles={textarea:kl,contenteditable:xl},rl.defineMode=function(e){rl.defaults.mode||"null"==e||(rl.defaults.mode=e),function(e,t){2<arguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Re[e]=t}.apply(this,arguments)},rl.defineMIME=function(e,t){Be[e]=t},rl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),rl.defineMIME("text/plain","null"),rl.defineExtension=function(e,t){rl.prototype[e]=t},rl.defineDocExtension=function(e,t){uo.prototype[e]=t},rl.fromTextArea=function(e,t){var n;function r(){e.value=s.getValue()}if((t=t?z(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus&&(n=O(e.ownerDocument),t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body),e.form&&(ye(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form,o=i.submit;try{var l=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=l}}catch(n){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(we(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var s=rl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},(e=rl).off=we,e.on=ye,e.wheelEventPixels=function(e){return(e=ni(e)).x*=ti,e.y*=ti,e},e.Doc=uo,e.splitLines=Pe,e.countColumn=I,e.findColumn=X,e.isWordChar=ee,e.Pass=U,e.signal=xe,e.Line=jt,e.changeEnd=ai,e.scrollbarModel=Dr,e.Pos=nt,e.cmpPos=rt,e.modes=Re,e.mimeModes=Be,e.resolveMode=Ge,e.getMode=Ue,e.modeExtensions=Ve,e.extendMode=function(e,t){z(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})},e.copyState=Ke,e.startState=Xe,e.innerMode=je,e.commands=Ho,e.keyMap=Co,e.keyName=Mo,e.isModifierKey=ko,e.lookupKey=Lo,e.normalizeKeyMap=function(e){var t,n,r={};for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!/^(name|fallthrough|(de|at)tach)$/.test(t))if("..."==i)delete e[t];else{for(var o=q(t.split(" "),So),l=0;l<o.length;l++){var s=void 0,a=l==o.length-1?(s=o.join(" "),i):(s=o.slice(0,l+1).join(" "),"..."),u=r[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else r[s]=a}delete e[t]}}for(n in r)e[n]=r[n];return e},e.StringStream=Ye,e.SharedTextMarker=lo,e.TextMarker=ro,e.LineWidget=to,e.e_preventDefault=Te,e.e_stopPropagation=Me,e.e_stop=Oe,e.addClass=A,e.contains=N,e.rmClass=S,e.keyNames=yo,rl.version="5.65.12",rl})),function(e){"function"==typeof e.define&&e.define("core",["codemirror.js"],(function(t){e.CodeMirror=t}))}(this);
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("codemirror.js",t):(e=e||self).CodeMirror=t()}(this,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),l=r||i||o,s=l&&(r?document.documentMode||6:+(o||i)[1]),a=!o&&/WebKit\//.test(e),u=(r=a&&/Qt\/\d+\.\d+/.test(e),!o&&/Chrome\/(\d+)/.exec(e)),c=u&&+u[1],h=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=d&&(/Mobile\/\w+/.test(e)||2<navigator.maxTouchPoints),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=(i=/win/i.test(t),(o=(o=h&&e.match(/Version\/(\d*\.\d*)/))&&Number(o[1]))&&15<=o&&(a=!(h=!1)),y&&(r||h&&(null==o||o<12.11))),x=n||l&&9<=s;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S=function(e,t){var n,r=e.className;(t=C(t).exec(r))&&(n=r.slice(t.index+t[0].length),e.className=r.slice(0,t.index)+(n?t[1]+n:""))};function L(e){for(var t=e.childNodes.length;0<t;--t)e.removeChild(e.firstChild);return e}function k(e,t){return L(e).appendChild(t)}function T(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){return(e=T(e,t,n,r)).setAttribute("role","presentation"),e}function N(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if((t=11==t.nodeType?t.host:t)==e)return!0}while(t=t.parentNode)}function O(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function A(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function D(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}var W=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r},H=function(e){e.select()};function F(e){return e.display.wrapper.ownerDocument}function P(e){return F(e).defaultView}function E(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var r in t=t||{},e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function I(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||t<=s)return l+(t-o);l=(l+=s-o)+(n-l%n),o=s+1}}function R(){this.id=null,this.f=null,this.time=0,this.handler=E(this.onTimeout,this)}function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}g?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(H=function(e){try{e.select()}catch(e){}}),R.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};var G={toString:function(){return"CodeMirror.Pass"}},U={scroll:!(R.prototype.set=function(e,t){this.f=t,t=+new Date+e,(!this.id||t<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=t)})},V={origin:"*mouse"},K={origin:"+move"};function j(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r),l=(o=-1==o?e.length:o)-r;if(o==e.length||t<=i+l)return r+Math.min(l,t-i);if(i+=o-r,r=o+1,t<=(i+=n-i%n))return r}}var X=[""];function Y(e){for(;X.length<=e;)X.push($(X)+" ");return X[e]}function $(e){return e[e.length-1]}function _(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function q(){}function Z(e,t){return e=Object.create?Object.create(e):(q.prototype=e,new q),t&&z(t,e),e}var Q=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(e){return/\w/.test(e)||""<e&&(e.toUpperCase()!=e.toLowerCase()||Q.test(e))}function ee(e,t){return t?!!(-1<t.source.indexOf("\\w")&&J(e))||t.test(e):J(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return;return 1}var ne=/[\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 re(e){return 768<=e.charCodeAt(0)&&ne.test(e)}function ie(e,t,n){for(;(n<0?0<t:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=n<t?-1:1;;){if(t==n)return t;var i=(t+n)/2;if((i=r<0?Math.ceil(i):Math.floor(i))==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var le=null;function se(e,t,n){var r;le=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:le=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}ae=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,ce=/[LRr]/,he=/[Lb1n]/,de=/[1n]/;var ae,ue,ce,he,de;function fe(e,t,n){this.level=e,this.from=t,this.to=n}function pe(e,t){var n=e.order;return null==n?e.order=function(e,t){var n="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!ae.test(e))return!1;for(var r,i=e.length,o=[],l=0;l<i;++l)o.push((r=e.charCodeAt(l))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L");for(var s=0,a=n;s<i;++s){var u=o[s];"m"==u?o[s]=a:a=u}for(var c=0,h=n;c<i;++c){var d=o[c];"1"==d&&"r"==h?o[c]="n":ce.test(d)&&"r"==(h=d)&&(o[c]="R")}for(var f=1,p=o[0];f<i-1;++f){var g=o[f];"+"==g&&"1"==p&&"1"==o[f+1]?o[f]="1":","!=g||p!=o[f+1]||"1"!=p&&"n"!=p||(o[f]=p),p=g}for(var m=0;m<i;++m){var v=o[m];if(","==v)o[m]="N";else if("%"==v){var y=void 0;for(y=m+1;y<i&&"%"==o[y];++y);for(var b=m&&"!"==o[m-1]||y<i&&"1"==o[y]?"1":"N",w=m;w<y;++w)o[w]=b;m=y-1}}for(var x=0,C=n;x<i;++x){var S=o[x];"L"==C&&"1"==S?o[x]="L":ce.test(S)&&(C=S)}for(var L=0;L<i;++L)if(ue.test(o[L])){var k=void 0;for(k=L+1;k<i&&ue.test(o[k]);++k);for(var T="L"==(L?o[L-1]:n),M=T==("L"==(k<i?o[k]:n))?T?"L":"R":n,N=L;N<k;++N)o[N]=M;L=k-1}for(var O,A=[],D=0;D<i;)if(he.test(o[D])){var W=D;for(++D;D<i&&he.test(o[D]);++D);A.push(new fe(0,W,D))}else{var H=D,F=A.length,P="rtl"==t?1:0;for(++D;D<i&&"L"!=o[D];++D);for(var E=H;E<D;)if(de.test(o[E])){H<E&&(A.splice(F,0,new fe(1,H,E)),F+=P);var z=E;for(++E;E<D&&de.test(o[E]);++E);A.splice(F,0,new fe(2,z,E)),F+=P,H=E}else++E;H<D&&A.splice(F,0,new fe(1,H,D))}return"ltr"==t&&(1==A[0].level&&(O=e.match(/^\s+/))&&(A[0].from=O[0].length,A.unshift(new fe(0,0,O[0].length))),1==$(A).level&&(O=e.match(/\s+$/))&&($(A).to-=O[0].length,A.push(new fe(0,i-O[0].length,i)))),"rtl"==t?A.reverse():A}(e.text,t):n}var ge=[],me=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):(e=e._handlers||(e._handlers={}))[t]=(e[t]||ge).concat(n)};function ve(e,t){return e._handlers&&e._handlers[t]||ge}function ye(e,t,n){var r;e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):(r=(e=e._handlers)&&e[t])&&-1<(n=B(r,n))&&(e[t]=r.slice(0,n).concat(r.slice(n+1)))}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Te(t)||t.codemirrorIgnore}function xe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function Ce(e,t){return 0<ve(e,t).length}function Se(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){Le(e),ke(e)}function Ne(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t?3:t}var Ae,De,We=function(){if(l&&s<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),He=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t),o=(-1==i&&(i=e.length),e.slice(t,"\r"==e.charAt(i-1)?i-1:i)),l=o.indexOf("\r");-1!=l?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe="oncopy"in(t=T("div"))||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy),Ee=null,ze={},Ie={};function Re(e){if("string"==typeof e&&Ie.hasOwnProperty(e))e=Ie[e];else if(e&&"string"==typeof e.name&&Ie.hasOwnProperty(e.name)){var t=Ie[e.name];(e=Z(t="string"==typeof t?{name:t}:t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Re(t);var n=ze[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i,o=Ge[t.name];for(i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var Ge={};function Ue(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n,r={};for(n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var je=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ye(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){e=e.text,i==n.line&&(e=e.slice(0,n.ch)),i==t.line&&(e=e.slice(t.ch)),r.push(e),++i})),r}function $e(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function _e(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function qe(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;r=(t=r).parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Ze(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l].height;if(t<s)break;t-=s}return n+l}function Qe(e,t){return t>=e.first&&t<e.first+e.size}function Je(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function lt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Xe(e,n).text.length):(e=Xe(e,(n=t).line).text.length,null==(t=n.ch)||e<t?et(n.line,e):t<0?et(n.line,0):n)}function at(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}function ut(e,t){this.state=e,this.lookAhead=t}je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},je.prototype.eat=function(e){var t=this.string.charAt(this.pos);if(e="string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},je.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},je.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(e){if(-1<(e=this.string.indexOf(e,this.pos)))return this.pos=e,!0},je.prototype.backUp=function(e){this.pos-=e},je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=I(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},je.prototype.indentation=function(){return I(this.string,null,this.tabSize)-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},je.prototype.match=function(e,t,n){var r;if("string"!=typeof e)return(r=this.string.slice(this.pos).match(e))&&0<r.index?null:(r&&!1!==t&&(this.pos+=r[0].length),r);function i(e){return n?e.toLowerCase():e}return i(this.string.substr(this.pos,e.length))==i(e)?(!1!==t&&(this.pos+=e.length),!0):void 0},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},je.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},je.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ht(e,t,n,r){for(var i=[e.state.modeGen],o={},l=(wt(e,t.text,e.doc.mode,n,(function(e,t){i.push(e,t)}),o,r),n.state),s=0;s<e.state.overlays.length;++s)!function(r){n.baseTokens=i;var s=e.state.overlays[r],a=1,u=0;n.state=!0,wt(e,t.text,s.mode,n,(function(e,t){for(var n=a;u<e;){var r=i[a];e<r&&i.splice(a,1,e,i[a+1],r),a+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;n<a;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=l,n.baseTokens=null,n.baseTokenPos=1}(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function dt(e,t,n){var r,i,o;return t.styles&&t.styles[0]==e.state.modeGen||(r=ft(e,qe(t)),i=t.text.length>e.options.maxHighlightLength&&Ue(e.doc.mode,r.state),o=ht(e,t,r),i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))),t.styles}function ft(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;l<s;--s){if(s<=o.first)return o.first;var a=Xe(o,s-1),u=a.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;u=I(a.text,null,e.options.tabSize),(null==i||u<r)&&(i=s-1,r=u)}return i}(e,t,n),l=o>r.first&&Xe(r,o-1).stateAfter,s=l?ct.fromSaved(r,l,o):new ct(r,Ke(r.mode),o);return r.iter(o,t,(function(n){pt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function pt(e,t,n,r){var i=e.doc.mode,o=new je(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&>(i,n.state);!o.eol();)mt(i,o,n.state),o.start=o.pos}function gt(e,t){return e.blankLine?e.blankLine(t):e.innerMode?(e=Ve(e,t)).mode.blankLine?e.mode.blankLine(e.state):void 0:void 0}function mt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ve(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,0<this.maxLookAhead&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,Ue(e.mode,t.state),n,t.lookAhead):new ct(e,Ue(e.mode,t),n)},ct.prototype.save=function(e){return e=!1!==e?Ue(this.doc.mode,this.state):this.state,0<this.maxLookAhead?new ut(e,this.maxLookAhead):e};var vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,l=e.doc,s=l.mode,a=Xe(l,(t=st(l,t)).line),u=ft(e,t.line,n),c=new je(a.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=mt(s,c,u.state),r&&o.push(new vt(c,i,Ue(l.mode,u.state)));return r?o:new vt(c,i,u.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function wt(e,t,n,r,i,o,l){var s=n.flattenSpans,a=(null==s&&(s=e.options.flattenSpans),0),u=null,c=new je(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&bt(gt(n,r.state),o);!c.eol();){var d,f=c.pos>e.options.maxHighlightLength?(s=!1,l&&pt(e,t,r,c.pos),c.pos=t.length,null):bt(mt(n,c,r.state,h),o);if(!h||(d=h[0].name)&&(f="m-"+(f?d+" "+f:d)),!s||u!=f){for(;a<c.start;)i(a=Math.min(c.start,a+5e3),u);u=f}c.start=c.pos}for(;a<c.pos;){var p=Math.min(c.pos,a+5e3);i(p,u),a=p}}var xt=!1,Ct=!1;function St(e,t,n){this.marker=e,this.from=t,this.to=n}function Lt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function kt(e,t){if(t.full)return null;var n=Qe(e,t.from.line)&&Xe(e,t.from.line).markedSpans;e=Qe(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!e)return null;var r=t.from.ch,i=t.to.ch,o=0==tt(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,l=e[i],s=l.marker;null!=l.from&&!(s.inclusiveLeft?l.from<=t:l.from<t)&&(l.from!=t||"bookmark"!=s.type||n&&l.marker.insertLeft)||(o=null==l.to||(s.inclusiveRight?l.to>=t:l.to>t),(r=r||[]).push(new St(s,l.from,o?null:l.to)))}return r}(n,r,o),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o,l=e[i],s=l.marker;null!=l.to&&!(s.inclusiveRight?l.to>=t:l.to>t)&&(l.from!=t||"bookmark"!=s.type||n&&!l.marker.insertLeft)||(o=null==l.from||(s.inclusiveLeft?l.from<=t:l.from<t),(r=r||[]).push(new St(s,o?null:l.from-t,null==l.to?null:l.to-t)))}return r}(e,i,o),a=1==t.text.length,u=$(t.text).length+(a?r:0);if(l)for(var c=0;c<l.length;++c){var h,d=l[c];null==d.to&&((h=Lt(s,d.marker))?a&&(d.to=null==h.to?null:h.to+u):d.to=r)}if(s)for(var f=0;f<s.length;++f){var p=s[f];null!=p.to&&(p.to+=u),null==p.from?Lt(l,p.marker)||(p.from=u,a&&(l=l||[]).push(p)):(p.from+=u,a&&(l=l||[]).push(p))}l=l&&Tt(l),s&&s!=l&&(s=Tt(s));var g=[l];if(!a){var m,v=t.text.length-2;if(0<v&&l)for(var y=0;y<l.length;++y)null==l[y].to&&(m=m||[]).push(new St(l[y].marker,null,null));for(var b=0;b<v;++b)g.push(m);g.push(s)}return g}function Tt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Mt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Nt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ot(e){return e.inclusiveLeft?-1:0}function At(e){return e.inclusiveRight?1:0}function Dt(e,t){if(0!=(n=e.lines.length-t.lines.length))return n;var n=e.find(),r=t.find(),i=tt(n.from,r.from)||Ot(e)-Ot(t);return i?-i:(i=tt(n.to,r.to)||At(e)-At(t))||t.id-e.id}function Wt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Dt(n,i.marker)<0)&&(n=i.marker);return n}function Ht(e){return Wt(e,!0)}function Ft(e){return Wt(e,!1)}function Pt(e,t,n,r,i){e=Xe(e,t);var o=Ct&&e.markedSpans;if(o)for(var l=0;l<o.length;++l){var s=o[l];if(s.marker.collapsed){var a=s.marker.find(0),u=tt(a.from,n)||Ot(s.marker)-Ot(i),c=tt(a.to,r)||At(s.marker)-At(i);if(!(0<=u&&c<=0||u<=0&&0<=c)&&(u<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?0<=tt(a.to,n):0<tt(a.to,n))||0<=u&&(s.marker.inclusiveRight&&i.inclusiveLeft?tt(a.from,r)<=0:tt(a.from,r)<0)))return 1}}}function Et(e){for(var t;t=Ht(e);)e=t.find(-1,!0).line;return e}function zt(e,t){var n=Et(e=Xe(e,t));return e==n?t:qe(n)}function It(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!Rt(e,r))return t;for(;n=Ft(r);)r=n.find(1,!0).line;return qe(r)+1}function Rt(e,t){var n=Ct&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&function e(t,n,r){var i;if(null==r.to)return e(t,(i=r.marker.find(1,!0)).line,Lt(i.line.markedSpans,r.marker));if(r.marker.inclusiveRight&&r.to==n.text.length)return!0;for(var o=void 0,l=0;l<n.markedSpans.length;++l)if((o=n.markedSpans[l]).marker.collapsed&&!o.marker.widgetNode&&o.from==r.to&&(null==o.to||o.to!=r.from)&&(o.marker.inclusiveLeft||r.marker.inclusiveRight)&&e(t,n,o))return!0}(e,t,r))return!0}}function Bt(e){for(var t=0,n=(e=Et(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==n)break;t+=s.height}return t}function Gt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Ht(r);){var i=t.find(0,!0);r=i.from.line;n+=i.from.ch-i.to.ch}for(r=e;t=Ft(r);){var o=t.find(0,!0);n=(n-=r.text.length-o.from.ch)+((r=o.to.line).text.length-o.to.ch)}return n}function Ut(e){var t=e.display;e=e.doc;t.maxLine=Xe(e,e.first),t.maxLineLength=Gt(t.maxLine),t.maxLineChanged=!0,e.iter((function(e){var n=Gt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Vt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};Vt.prototype.lineNo=function(){return qe(this)},Se(Vt);var Kt={},jt={};function Xt(e,t){return!e||/^\s*$/.test(e)?null:(t=t.addModeClass?jt:Kt)[e]||(t[e]=e.replace(/\S+/g,"cm-$&"))}function Yt(e,t){var n=M("span",null,null,a?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,u=void 0;u=(r.pos=0,r.addToken=$t,function(e){if(null!=De)return De;var t=k(e,document.createTextNode("AخA")),n=W(t,0,1).getBoundingClientRect();t=W(t,1,2).getBoundingClientRect();return L(e),n&&n.left!=n.right&&(De=t.right-n.right<3)}(e.display.measure)&&(u=pe(o,e.doc.direction))&&(r.addToken=function(e,t){return function(n,r,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var h=void 0,d=0;d<t.length&&!((h=t[d]).to>u&&h.from<=u);d++);if(h.to>=c)return e(n,r,i,o,l,s,a);e(n,r.slice(0,h.to-u),i,o,null,s,a),o=null,r=r.slice(h.to-u),u=h.to}}}(r.addToken,u)),r.map=[],t!=e.display.externalMeasured&&qe(o));!function(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var l,s,a,u,c,h,d,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){a=u=c=s="",h=d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],C=x.marker;if("bookmark"==C.type&&x.from==p&&C.widgetNode)y.push(C);else if(x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==v&&(b=b||[]).push(C.endStyle,x.to),C.title&&((d=d||{}).title=C.title),C.attributes)for(var S in C.attributes)(d=d||{})[S]=C.attributes[S];C.collapsed&&(!h||Dt(h.marker,C)<0)&&(h=x)}else x.from>p&&v>x.from&&(v=x.from)}if(b)for(var L=0;L<b.length;L+=2)b[L+1]==v&&(u+=" "+b[L]);if(!h||h.from==p)for(var k=0;k<y.length;++k)_t(t,0,y[k]);if(h&&(h.from||0)==p){if(_t(t,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(f<=p)break;for(var T=Math.min(f,v);;){if(m){var M,N=p+m.length;if(h||(M=T<N?m.slice(0,T-p):m,t.addToken(t,M,l?l+a:a,c,p+M.length==v?u:"",s,d)),T<=N){m=m.slice(T-p),p=T;break}p=N,c=""}m=i.slice(o,o=n[g++]),l=Xt(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),Xt(n[O+1],t.cm.options))}(o,r,dt(e,o,u)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=D(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=D(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild((u=e.display.measure,o=void 0,null==Ae&&(o=T("span",""),k(u,T("span",[o,document.createTextNode("x")])),0!=u.firstChild.offsetHeight&&(Ae=o.offsetWidth<=1&&2<o.offsetHeight&&!(l&&s<8))),(u=Ae?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")).setAttribute("cm-text",""),u))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return a&&(n=r.content.lastChild,(/\bcm-tab\b/.test(n.className)||n.querySelector&&n.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")),be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function $t(e,t,n,r,i,o,a){if(t){var u=e.splitSpaces?function(e,t){if(1<e.length&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,c=e.cm.state.specialChars,h=!1;if(c.test(t))for(var d=document.createDocumentFragment(),f=0;;){c.lastIndex=f;var p=c.exec(t),g=p?p.index-f:t.length-f;if(g&&(m=document.createTextNode(u.slice(f,f+g)),l&&s<9?d.appendChild(T("span",[m])):d.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g),!p)break;f+=1+g;var m=void 0;"\t"==p[0]?(g=(g=e.cm.options.tabSize)-e.col%g,(m=d.appendChild(T("span",Y(g),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=g):("\r"==p[0]||"\n"==p[0]?(m=d.appendChild(T("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l&&s<9?d.appendChild(T("span",[m])):d.appendChild(m)),e.col+=1),e.map.push(e.pos,e.pos+1,m),e.pos++}else e.col+=t.length,d=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,d),l&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||a){h=n||"";var v=(r&&(h+=r),i&&(h+=i),T("span",[d],h,o));if(a)for(var y in a)a.hasOwnProperty(y)&&"style"!=y&&"class"!=y&&v.setAttribute(y,a[y]);return e.content.appendChild(v)}e.content.appendChild(d)}}function _t(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement("span"))).setAttribute("cm-marker",n.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function qt(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Ft(e);)e=t.find(1,!0).line,(n=n||[]).push(e);return n}(t),this.size=this.rest?qe($(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Rt(e,t)}function Zt(e,t,n){for(var r=[],i=t;i<n;i=l){var o=new qt(e.doc,Xe(e.doc,i),i),l=i+o.size;r.push(o)}return r}var Qt=null,Jt=null;function en(e,t){var n=ve(e,t);if(n.length)for(var r,i=Array.prototype.slice.call(arguments,2),o=(Qt?r=Qt.delayedCallbacks:Jt?r=Jt:(r=Jt=[],setTimeout(tn,0)),0);o<n.length;++o)!function(e){r.push((function(){return n[e].apply(null,i)}))}(o)}function tn(){var e=Jt;Jt=null;for(var t=0;t<e.length;++t)e[t]()}function nn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];if("text"==o){u=s=l=void 0;var l=e,s=t,a=s.text.className,u=on(l,s);s.text==s.node&&(s.node=u.pre),s.text.parentNode.replaceChild(u.pre,s.text),s.text=u.pre,u.bgClass!=s.bgClass||u.textClass!=s.textClass?(s.bgClass=u.bgClass,s.textClass=u.textClass,ln(l,s)):a&&(s.text.className=a)}else if("gutter"==o)sn(e,t,n,r);else if("class"==o)ln(e,t);else if("widget"==o){f=d=h=l=c=u=void 0;u=e;var c=t;l=r;c.alignable&&(c.alignable=null);for(var h=C("CodeMirror-linewidget"),d=c.node.firstChild,f=void 0;d;d=f)f=d.nextSibling,h.test(d.className)&&c.node.removeChild(d);an(u,c,l)}}t.changes=null}function rn(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&s<8&&(e.node.style.zIndex=2)),e.node}function on(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Yt(e,t)}function ln(e,t){(i=(n=t).bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass)&&(i+=" CodeMirror-linebackground"),n.background?i?n.background.className=i:(n.background.parentNode.removeChild(n.background),n.background=null):i&&(r=rn(n),n.background=r.insertBefore(T("div",null,i),r.firstChild),e.display.input.setUneditable(n.background)),t.line.wrapClass?rn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n,r,i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function sn(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass&&(o=rn(t),t.gutterBackground=T("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text));var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=rn(t),l=t.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),o.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(T("div",Je(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.display.gutterSpecs.length;++s){var a=e.display.gutterSpecs[s].className,u=i.hasOwnProperty(a)&&i[a];u&&l.appendChild(T("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[a]+"px; width: "+r.gutterWidth[a]+"px"))}}}function an(e,t,n){if(un(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)un(e,t.rest[r],t,n,!1)}function un(e,t,n,r,i){if(t.widgets)for(var o=rn(n),l=0,s=t.widgets;l<s.length;++l){var a=s[l],u=T("div",[a.node],"CodeMirror-linewidget"+(a.className?" "+a.className:"")),c=(a.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),d=d=h=c=void 0,a),h=u,d=n,f=r;c.noHScroll&&((d.alignable||(d.alignable=[])).push(h),d=f.wrapperWidth,h.style.left=f.fixedPos+"px",c.coverGutter||(d-=f.gutterTotalWidth,h.style.paddingLeft=f.gutterTotalWidth+"px"),h.style.width=d+"px"),c.coverGutter&&(h.style.zIndex=5,h.style.position="relative",c.noHScroll||(h.style.marginLeft=-f.gutterTotalWidth+"px")),e.display.input.setUneditable(u),i&&a.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),en(a,"redraw")}}function cn(e){if(null!=e.height)return e.height;var t,n=e.doc.cm;return n?(N(document.body,e.node)||(t="position: relative;",e.coverGutter&&(t+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(t+="width: "+n.display.wrapper.clientWidth+"px;"),k(n.display.measure,T("div",[e.node],null,t))),e.height=e.node.parentNode.offsetHeight):0}function hn(e,t){for(var n=Ne(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return 1}function dn(e){return e.lineSpace.offsetTop}function fn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function pn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,T("pre","x","CodeMirror-line-like"));t=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,t={left:parseInt(t.paddingLeft),right:parseInt(t.paddingRight)};return isNaN(t.left)||isNaN(t.right)||(e.cachedPaddingH=t),t}function gn(e){return 50-e.display.nativeBarWidth}function mn(e){return e.display.scroller.clientWidth-gn(e)-e.display.barWidth}function vn(e){return e.display.scroller.clientHeight-gn(e)-e.display.barHeight}function yn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(qe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function bn(e,t,n,r){return Cn(e,xn(e,t),n,r)}function wn(e,t){return t>=e.display.viewFrom&&t<e.display.viewTo?e.display.view[Zn(e,t)]:(e=e.display.externalMeasured)&&t>=e.lineN&&t<e.lineN+e.size?e:void 0}function xn(e,t){var n,r,i=qe(t),o=wn(e,i);o&&!o.text?o=null:o&&o.changes&&(nn(e,o,i,Xn(e)),e.curOp.forceUpdate=!0),o||(r=qe(n=Et(n=t)),(n=e.display.externalMeasured=new qt(e.doc,n,r)).lineN=r,r=n.built=Yt(e,n),n.text=r.pre,k(e.display.lineMeasure,r.pre),o=n),e=yn(o,t,i);return{line:t,view:o,rect:null,map:e.map,cache:e.cache,before:e.before,hasHeights:!1}}function Cn(e,t,n,r,i){var o,a=(n=t.before?-1:n)+(r||"");if(t.cache.hasOwnProperty(a))o=t.cache[a];else{if(t.rect||(t.rect=t.view.text.getBoundingClientRect()),!t.hasHeights){var u=e,c=t.view,h=t.rect,d=u.options.lineWrapping;u=d&&mn(u);if(!c.measure.heights||d&&c.measure.width!=u){var f=c.measure.heights=[];if(d){c.measure.width=u;for(var p=c.text.firstChild.getClientRects(),g=0;g<p.length-1;g++){var m=p[g],v=p[g+1];2<Math.abs(m.bottom-v.bottom)&&f.push((m.bottom+v.top)/2-h.top)}}f.push(h.bottom-h.top)}t.hasHeights=!0}(o=function(e,t,n,r){var i,o=kn(t.map,n,r),a=o.node,u=o.start,c=o.end,h=o.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&re(t.line.text.charAt(o.coverStart+c));)++c;if((i=l&&s<9&&0==u&&c==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():function(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;0<=i&&(n=e[i]).left==n.right;i--);return n}(W(a,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,h="right"}l&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Ee)return Ee;var t=(e=k(e,T("span","x"))).getBoundingClientRect();e=W(e,0,1).getBoundingClientRect();return Ee=1<Math.abs(t.left-e.left)}(e))return t;e=screen.logicalXDPI/screen.deviceXDPI;var n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*e,right:t.right*e,top:t.top*n,bottom:t.bottom*n}}(e.display.measure,i))}else 0<u&&(h=r="right"),i=e.options.lineWrapping&&1<(n=a.getClientRects()).length?n["right"==r?n.length-1:0]:a.getBoundingClientRect();!(l&&s<9)||u||i&&(i.left||i.right)||(i=(n=a.parentNode.getClientRects()[0])?{left:n.left,right:n.left+jn(e.display),top:n.top,bottom:n.bottom}:Ln);n=i.top-t.rect.top;for(var f=i.bottom-t.rect.top,p=(n+f)/2,g=t.view.measure.heights,m=0;m<g.length-1&&!(p<g[m]);m++);var v=m?g[m-1]:0,y=g[m];v={left:("right"==h?i.right:i.left)-t.rect.left,right:("left"==h?i.left:i.right)-t.rect.left,top:v,bottom:y};return i.left||i.right||(v.bogus=!0),e.options.singleCursorHeightPerLine||(v.rtop=n,v.rbottom=f),v}(e,t,n,r)).bogus||(t.cache[a]=o)}return{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Sn,Ln={left:0,right:0,top:0,bottom:0};function kn(e,t,n){for(var r,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?o=1+(i=t-s):(u==e.length-3||t==a&&e[u+3]>t)&&(i=(o=a-s)-1,a<=t&&(l="right")),null!=i){if(r=e[u+2],s==a&&n==(r.insertLeft?"left":"right")&&(l=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],l="left";if("right"==n&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],l="right";break}return{node:r,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Tn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Mn(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Tn(e.display.view[t])}function Nn(e){Mn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function On(e){return u&&m?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function An(e){return u&&m?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Dn(e){var t=Et(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=cn(t[r]));return n}function Wn(e,t,n,r,i){return i||(i=Dn(t),n.top+=i,n.bottom+=i),"line"==r||(r=r||"local",i=Bt(t),"local"==r?i+=dn(e.display):i-=e.display.viewOffset,"page"!=r&&"window"!=r||(i+=(t=e.display.lineSpace.getBoundingClientRect()).top+("window"==r?0:An(F(e))),t=t.left+("window"==r?0:On(F(e))),n.left+=t,n.right+=t),n.top+=i,n.bottom+=i),n}function Hn(e,t,n){if("div"==n)return t;var r=t.left;t=t.top,"page"==n?(r-=On(F(e)),t-=An(F(e))):"local"!=n&&n||(r+=(n=e.display.sizer.getBoundingClientRect()).left,t+=n.top),n=e.display.lineSpace.getBoundingClientRect();return{left:r-n.left,top:t-n.top}}function Fn(e,t,n,r,i){return Wn(e,r=r||Xe(e.doc,t.line),bn(e,r,t.ch,i),n)}function Pn(e,t,n,r,i,o){function l(t,l){return t=Cn(e,i,t,l?"right":"left",o),l?t.left=t.right:t.right=t.left,Wn(e,r,t,n)}r=r||Xe(e.doc,t.line),i=i||xn(e,r);var s=pe(r,e.doc.direction),a=t.ch;t=t.sticky;if(a>=r.text.length?(a=r.text.length,t="before"):a<=0&&(a=0,t="after"),!s)return l("before"==t?a-1:a,"before"==t);function u(e,t,n){return l(n?e-1:e,1==s[t].level!=n)}var c=se(s,a,t),h=le;c=u(a,c,"before"==t);return null!=h&&(c.other=u(a,h,"before"!=t)),c}function En(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=jn(e.display)*t.ch),t=Xe(e.doc,t.line);return{left:n,right:n,top:e=Bt(t)+dn(e.display),bottom:e+t.height}}function zn(e,t,n,r,i){return(e=et(e,t,n)).xRel=i,r&&(e.outside=r),e}function In(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return zn(r.first,0,null,-1,-1);var i=Ze(r,n),o=r.first+r.size-1;if(o<i)return zn(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=Xe(r,i);;){var s=function(e,t,n,r,i){i-=Bt(t);var o=xn(e,t),l=Dn(t),s=0,a=t.text.length,u=!0;(p=pe(t,e.doc.direction))&&(s=(u=1!=(p=(e.options.lineWrapping?Vn:Un)(e,t,n,o,p,r,i)).level)?p.from:p.to-1,a=u?p.to:p.from-1);var c,h,d=null,f=null,p=oe((function(t){var n=Cn(e,o,t);return n.top+=l,n.bottom+=l,Gn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=t,f=n),1)}),s,a),g=!1;return f?(c=r-f.left<f.right-r,p=d+((h=c==u)?0:1),h=h?"after":"before",c=c?f.left:f.right):(u||p!=a&&p!=s||p++,h=0==p||p!=t.text.length&&Cn(e,o,p-(u?1:0)).bottom+l<=i==u?"after":"before",c=(a=Pn(e,et(n,p,h),"line",t,o)).left,g=i<a.top?-1:i>=a.bottom?1:0),zn(n,p=ie(t.text,p,1),h,g,r-c)}(e,l,i,t,n),a=function(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Dt(n,o.marker)<0)&&(n=o.marker)}return n}(l,s.ch+(0<s.xRel||0<s.outside?1:0));if(!a)return s;if((s=a.find(1)).line==i)return s;l=Xe(r,i=s.line)}}function Rn(e,t,n,r){r-=Dn(t);var i=oe((function(t){return Cn(e,n,t-1).bottom<=r}),t=t.text.length,0);return{begin:i,end:oe((function(t){return Cn(e,n,t).top>r}),i,t)}}function Bn(e,t,n,r){return Rn(e,t,n=n||xn(e,t),Wn(e,t,Cn(e,n,r),"line").top)}function Gn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Un(e,t,n,r,i,o,l){var s,a=oe((function(s){var a=1!=(s=i[s]).level;return Gn(Pn(e,et(n,a?s.to:s.from,a?"before":"after"),"line",t,r),o,l,!0)}),0,i.length-1),u=i[a];return 0<a&&(s=1!=u.level,Gn(s=Pn(e,et(n,s?u.from:u.to,s?"after":"before"),"line",t,r),o,l,!0)&&s.top>l&&(u=i[a-1])),u}function Vn(e,t,n,r,i,o,l){for(var s=(l=Rn(e,t,r,l)).begin,a=l.end,u=(/\s/.test(t.text.charAt(a-1))&&a--,null),c=null,h=0;h<i.length;h++){var d,f=i[h];f.from>=a||f.to<=s||(d=(d=Cn(e,r,1!=f.level?Math.min(a,f.to)-1:Math.max(s,f.from)).right)<o?o-d+1e9:d-o,(!u||d<c)&&(u=f,c=d))}return(u=(u=u||i[i.length-1]).from<s?{from:s,to:u.to,level:u.level}:u).to>a?{from:u.from,to:a,level:u.level}:u}function Kn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Sn){Sn=T("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sn.appendChild(document.createTextNode("x")),Sn.appendChild(T("br"));Sn.appendChild(document.createTextNode("x"))}k(e.measure,Sn);var n=Sn.offsetHeight/50;return 3<n&&(e.cachedTextHeight=n),L(e.measure),n||1}function jn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=T("span","xxxxxxxxxx"),n=T("pre",[t],"CodeMirror-line-like");k(e.measure,n),n=t.getBoundingClientRect();return 2<(t=(n.right-n.left)/10)&&(e.cachedCharWidth=t),t||10}function Xn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var s=e.display.gutterSpecs[l].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Yn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Yn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function $n(e){var t=Kn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/jn(e.display)-3);return function(i){if(Rt(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function _n(e){var t=e.doc,n=$n(e);t.iter((function(e){var t=n(e);t!=e.height&&_e(e,t)}))}function qn(e,t,n,r){var i=e.display;if(!n&&"true"==Ne(t).getAttribute("cm-not-content"))return null;var o,l;n=i.lineSpace.getBoundingClientRect();try{o=t.clientX-n.left,l=t.clientY-n.top}catch(e){return null}return i=In(e,o,l),r&&0<i.xRel&&(t=Xe(e.doc,i.line).text).length==i.ch&&(n=I(t,t.length,e.options.tabSize)-t.length,i=et(i.line,Math.max(0,Math.round((o-pn(e.display).left)/jn(e.display))-n))),i}function Zn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Qn(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size);var i,o=e.display,l=((r=r||0)&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo?Ct&&zt(e.doc,t)<o.viewTo&&er(e):n<=o.viewFrom?Ct&&It(e.doc,n+r)>o.viewFrom?er(e):(o.viewFrom+=r,o.viewTo+=r):t<=o.viewFrom&&n>=o.viewTo?er(e):t<=o.viewFrom?(l=tr(e,n,n+r,1))?(o.view=o.view.slice(l.index),o.viewFrom=l.lineN,o.viewTo+=r):er(e):n>=o.viewTo?(l=tr(e,t,t,-1))?(o.view=o.view.slice(0,l.index),o.viewTo=l.lineN):er(e):(l=tr(e,t,t,-1),i=tr(e,n,n+r,1),l&&i?(o.view=o.view.slice(0,l.index).concat(Zt(e,l.lineN,i.lineN)).concat(o.view.slice(i.index)),o.viewTo+=r):er(e)),o.externalMeasured);l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(o.externalMeasured=null))}function Jn(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),t<r.viewFrom||t>=r.viewTo||null!=(i=r.view[Zn(e,t)]).node&&-1==B(r=i.changes||(i.changes=[]),n)&&r.push(n)}function er(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function tr(e,t,n,r){var i,o=Zn(e,t),l=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(0<r){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;zt(e.doc,n)!=n;){if(o==(r<0?0:l.length-1))return null;n+=r*l[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function nr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function rr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ir(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),l=e.options.$customCursor;l&&(t=!0);for(var s,a,u,c=0;c<n.sel.ranges.length;c++)!t&&c==n.sel.primIndex||(s=n.sel.ranges[c]).from().line>=e.display.viewTo||s.to().line<e.display.viewFrom||(a=s.empty(),l?(u=l(e,s))&&or(e,u,i):(a||e.options.showCursorWhenSelecting)&&or(e,s.head,i),a||function(e,t,n){var r,i=e.display,o=e.doc,l=document.createDocumentFragment(),s=pn(e.display),a=s.left,u=Math.max(i.sizerWidth,mn(e)-i.sizer.offsetLeft)-s.right,c="ltr"==o.direction;function h(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),l.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var i,l,s=Xe(o,t),d=s.text.length;function f(n,r){return Fn(e,et(t,n),"div",s,r)}function p(t,n,r){return t=Bn(e,s,null,t),n="ltr"==n==("after"==r)?"left":"right",f("after"==r?t.begin:t.end-(/\s/.test(s.text.charAt(t.end-1))?2:1),n)[n]}var g=pe(s,o.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<n&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?d:r,(function(e,t,o,s){var m,v,y,b,w,x="ltr"==o,C=f(e,x?"left":"right"),S=f(t-1,x?"right":"left"),L=null==n&&0==e,k=null==r&&t==d,T=0==s;s=!g||s==g.length-1;S.top-C.top<=3?(m=(c?L:k)&&T?a:(x?C:S).left,w=(c?k:L)&&s?u:(x?S:C).right,h(m,C.top,w-m,C.bottom)):(w=x?(v=c&&L&&T?a:C.left,y=c?u:p(e,o,"before"),b=c?a:p(t,o,"after"),c&&k&&s?u:S.right):(v=c?p(e,o,"before"):a,y=!c&&L&&T?u:C.right,b=!c&&k&&s?a:S.left,c?p(t,o,"after"):u),h(v,C.top,y-v,C.bottom),C.bottom<S.top&&h(a,C.bottom,null,S.top),h(b,S.top,w-b,S.bottom)),(!i||lr(C,i)<0)&&(i=C),lr(S,i)<0&&(i=S),(!l||lr(C,l)<0)&&(l=C),lr(S,l)<0&&(l=S)})),{start:i,end:l}}i=t.from(),s=t.to(),i.line==s.line?d(i.line,i.ch,s.ch):(t=Xe(o,i.line),r=Xe(o,s.line),r=Et(t)==Et(r),i=d(i.line,i.ch,r?t.text.length+1:null).end,t=d(s.line,r?0:null,s.ch).start,r&&(i.top<t.top-2?(h(i.right,i.top,null,i.bottom),h(a,t.top,t.left,t.bottom)):h(i.right,i.top,t.left-i.right,i.bottom)),i.bottom<t.top&&h(a,i.bottom,null,t.top)),n.appendChild(l)}(e,s,o));return r}function or(e,t,n){var r=Pn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(T("div"," ","CodeMirror-cursor"));i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)&&(t=(t=Fn(e,t,"div",null,null)).right-t.left,i.style.width=(0<t?t:e.defaultCharWidth())+"px"),r.other&&((i=n.appendChild(T("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"))).style.display="",i.style.left=r.other.left+"px",i.style.top=r.other.top+"px",i.style.height=.85*(r.other.bottom-r.other.top)+"px")}function lr(e,t){return e.top-t.top||e.left-t.left}function sr(e){var t,n;e.state.focused&&(t=e.display,clearInterval(t.blinker),n=!0,t.cursorDiv.style.visibility="",0<e.options.cursorBlinkRate?t.blinker=setInterval((function(){e.hasFocus()||hr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden"))}function ar(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||cr(e))}function ur(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&hr(e))}),100)}function cr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,A(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),a&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),sr(e))}function hr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function dr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,h=void 0,d=0;if(!u.hidden){var f;if(i+=u.line.height,l&&s<8?(h=(f=u.node.offsetTop+u.node.offsetHeight)-n,n=f):(h=(f=u.node.getBoundingClientRect()).bottom-f.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-f.left-1)),(.005<(c=u.line.height-h)||c<-.005)&&(i<r&&(o-=c),_e(u.line,h),fr(u.line),u.rest))for(var p=0;p<u.rest.length;p++)fr(u.rest[p]);d>e.display.sizerWidth&&(c=Math.ceil(d/jn(e.display)))>e.display.maxLineLength&&(e.display.maxLineLength=c,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}2<Math.abs(o)&&(t.scroller.scrollTop+=o)}function fr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function pr(e,t,n){var r,i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop,o=(i=Math.floor(i-dn(e)),n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight);i=Ze(t,i),o=Ze(t,o);return n&&n.ensure&&(r=n.ensure.from.line,n=n.ensure.to.line,r<i?o=Ze(t,Bt(Xe(t,i=r))+e.wrapper.clientHeight):Math.min(n,t.lastLine())>=o&&(i=Ze(t,Bt(Xe(t,n))-e.wrapper.clientHeight),o=n)),{from:i,to:Math.max(o,i+1)}}function gr(e,t){var n=e.display,r=Kn(e.display),i=(t.top<0&&(t.top=0),(e.curOp&&null!=e.curOp.scrollTop?e.curOp:n.scroller).scrollTop),o=vn(e),l={},s=(t.bottom-t.top>o&&(t.bottom=t.top+o),e.doc.height+fn(n)),a=t.top<r;r=t.bottom>s-r,t.top<i?l.scrollTop=a?0:t.top:t.bottom>i+o&&(a=Math.min(t.top,(r?s:t.bottom)-o))!=i&&(l.scrollTop=a),r=e.options.fixedGutter?0:n.gutters.offsetWidth,s=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-r,o=mn(e)-n.gutters.offsetWidth;return(i=t.right-t.left>o)&&(t.right=t.left+o),t.left<10?l.scrollLeft=0:t.left<s?l.scrollLeft=Math.max(0,t.left+r-(i?0:10)):t.right>o+s-3&&(l.scrollLeft=t.right+(i?0:10)-o),l}function mr(e,t){null!=t&&(br(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc:e.curOp).scrollTop+t)}function vr(e){br(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function yr(e,t,n){null==t&&null==n||br(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function br(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,wr(e,En(e,t.from),En(e,t.to),t.margin))}function wr(e,t,n,r){yr(e,(t=gr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r})).scrollLeft,t.scrollTop)}function xr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vr(e,{top:t}),Cr(e,t,!0),n&&Vr(e),Ir(e,100))}function Cr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Sr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Lr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+fn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function kr(e,t,n){this.cm=n;var r=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),me(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function Tr(){}function Mr(e,t){t=t||Lr(e);var n=e.display.barWidth,r=e.display.barHeight;Nr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&dr(e),Nr(e,Lr(e)),n=e.display.barWidth,r=e.display.barHeight}function Nr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}kr.prototype.update=function(e){var t,n=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return r?(this.vert.style.display="block",this.vert.style.bottom=n?i+"px":"0",t=e.viewHeight-(n?i:0),this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+t)+"px"):(this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0"),n?(this.horiz.style.display="block",this.horiz.style.right=r?i+"px":"0",this.horiz.style.left=e.barLeft+"px",t=e.viewWidth-e.barLeft-(r?i:0),this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+t)+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&0<e.clientHeight&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:n?i:0}},kr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},kr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},kr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!f?"12px":"18px",this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new R,this.disableVert=new R},kr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}))},kr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)},Tr.prototype.update=function(){return{bottom:0,right:0}},Tr.prototype.setScrollLeft=function(){},Tr.prototype.setScrollTop=function(){},Tr.prototype.clear=function(){};var Or={native:kr,null:Tr};function Ar(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Or[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){("horizontal"==n?Sr:xr)(e,t)}),e),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)}var Dr=0;function Wr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Dr,markArrays:null},e=e.curOp,Qt?Qt.ops.push(e):e.ownsGroup=Qt={ops:[e],delayedCallbacks:[]}}function Hr(e){if(e=e.curOp){if(e=e.ownsGroup)try{var t=e,n=t.delayedCallbacks,r=0;do{for(;r<n.length;r++)n[r].call(null);for(var i=0;i<t.ops.length;i++){var o=t.ops[i];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(r<n.length)}finally{Qt=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;for(var n=e.ops,r=0;r<n.length;r++){i=void 0;var i=n[r],o=i.cm,l=o.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=gn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=gn(e)+"px",t.scrollbarsClipped=!0)})(o),i.updateMaxLine&&Ut(o),i.mustUpdate=i.viewChanged||i.forceUpdate||null!=i.scrollTop||i.scrollToPos&&(i.scrollToPos.from.line<l.viewFrom||i.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&o.options.lineWrapping,i.update=i.mustUpdate&&new Br(o,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}for(var s=0;s<n.length;s++){a=void 0;var a=n[s];a.updatedDisplay=a.mustUpdate&&Gr(a.cm,a.update)}for(var u=0;u<n.length;u++){c=void 0,h=void 0,d=void 0;var c=n[u],h=c.cm,d=h.display;c.updatedDisplay&&dr(h),c.barMeasure=Lr(h),d.maxLineChanged&&!h.options.lineWrapping&&(c.adjustWidthTo=bn(h,d.maxLine,d.maxLine.text.length).left+3,h.display.sizerWidth=c.adjustWidthTo,c.barMeasure.scrollWidth=Math.max(d.scroller.clientWidth,d.sizer.offsetLeft+c.adjustWidthTo+gn(h)+h.display.barWidth),c.maxScrollLeft=Math.max(0,d.sizer.offsetLeft+c.adjustWidthTo-mn(h))),(c.updatedDisplay||c.selectionChanged)&&(c.preparedSelection=d.input.prepareSelection())}for(var f=0;f<n.length;f++){m=void 0;var g=n[f],m=g.cm;null!=g.adjustWidthTo&&(m.display.sizer.style.minWidth=g.adjustWidthTo+"px",g.maxScrollLeft<m.doc.scrollLeft&&Sr(m,Math.min(m.display.scroller.scrollLeft,g.maxScrollLeft),!0),m.display.maxLineChanged=!1);var v=g.focus&&g.focus==O(F(m));g.preparedSelection&&m.display.input.showSelection(g.preparedSelection,v),!g.updatedDisplay&&g.startHeight==m.doc.height||Mr(m,g.barMeasure),g.updatedDisplay&&jr(m,g.barMeasure),g.selectionChanged&&sr(m),m.state.focused&&g.updateInput&&m.display.input.reset(g.typing),v&&ar(g.cm)}for(var y,b=0;b<n.length;b++){w=void 0,C=void 0,S=void 0,y=void 0,M=void 0,N=void 0;var w=n[b],x=w.cm,C=x.display,S=x.doc;w.updatedDisplay&&Ur(x,w.update),null==C.wheelStartX||null==w.scrollTop&&null==w.scrollLeft&&!w.scrollToPos||(C.wheelStartX=C.wheelStartY=null),null!=w.scrollTop&&Cr(x,w.scrollTop,w.forceScroll),null!=w.scrollLeft&&Sr(x,w.scrollLeft,!0,!0),w.scrollToPos&&(y=function(e,t,n,r){null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var o,l=!1,s=Pn(e,t),a=n&&n!=t?Pn(e,n):s,u=(s=gr(e,o={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-r,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+r}),a=e.doc.scrollTop,e.doc.scrollLeft);if(null!=s.scrollTop&&(xr(e,s.scrollTop),1<Math.abs(e.doc.scrollTop-a)&&(l=!0)),null!=s.scrollLeft&&(Sr(e,s.scrollLeft),1<Math.abs(e.doc.scrollLeft-u)&&(l=!0)),!l)break}return o}(x,st(S,w.scrollToPos.from),st(S,w.scrollToPos.to),w.scrollToPos.margin),function(e,t){var n,r,i,o;we(e,"scrollCursorIntoView")||(o=(n=e.display).sizer.getBoundingClientRect(),r=null,i=n.wrapper.ownerDocument,t.top+o.top<0?r=!0:t.bottom+o.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(r=!1),null==r||p||(o=T("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-dn(e.display))+"px;\n height: "+(t.bottom-t.top+gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;"),e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)))}(x,y));var L=w.maybeHiddenMarkers,k=w.maybeUnhiddenMarkers;if(L)for(var M=0;M<L.length;++M)L[M].lines.length||be(L[M],"hide");if(k)for(var N=0;N<k.length;++N)k[N].lines.length&&be(k[N],"unhide");C.wrapper.offsetHeight&&(S.scrollTop=x.display.scroller.scrollTop),w.changeObjs&&be(x,"changes",x,w.changeObjs),w.update&&w.update.finish()}}(e)}}}function Fr(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{Hr(e)}}function Pr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{Hr(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Hr(this)}}}function zr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wr(t);try{return e.apply(this,arguments)}finally{Hr(t)}}}function Ir(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,E(Rr,e))}function Rr(e){var t,n,r,i=e.doc;i.highlightFrontier>=e.display.viewTo||(t=+new Date+e.options.workTime,n=ft(e,i.highlightFrontier),r=[],i.iter(n.line,Math.min(i.first+i.size,e.display.viewTo+500),(function(o){if(n.line>=e.display.viewFrom){for(var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Ue(i.mode,n.state):null,a=ht(e,o,n,!0),u=(s=(s&&(n.state=s),o.styles=a.styles,o.styleClasses),(a=a.classes)?o.styleClasses=a:s&&(o.styleClasses=null),!l||l.length!=o.styles.length||s!=a&&(!s||!a||s.bgClass!=a.bgClass||s.textClass!=a.textClass)),c=0;!u&&c<l.length;++c)u=l[c]!=o.styles[c];u&&r.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&pt(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>t)return Ir(e,e.options.workDelay),!0})),i.highlightFrontier=n.line,i.modeFrontier=Math.max(i.modeFrontier,n.line),r.length&&Fr(e,(function(){for(var t=0;t<r.length;t++)Jn(e,r[t],"text")})))}var Br=function(e,t,n){var r=e.display;this.viewport=t,this.visible=pr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=mn(e),this.force=n,this.dims=Xn(e),this.events=[]};function Gr(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return er(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==nr(e))return!1;Yr(e)&&(er(e),t.dims=Xn(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>l&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),Ct&&(o=zt(e.doc,o),l=It(e.doc,l)),r=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth,i=o,o=l,0==(h=(l=e).display).view.length||i>=h.viewTo||o<=h.viewFrom?(h.view=Zt(l,i,o),h.viewFrom=i):(h.viewFrom>i?h.view=Zt(l,i,h.viewFrom).concat(h.view):h.viewFrom<i&&(h.view=h.view.slice(Zn(l,i))),h.viewFrom=i,h.viewTo<o?h.view=h.view.concat(Zt(l,h.viewTo,o)):h.viewTo>o&&(h.view=h.view.slice(0,Zn(l,o)))),h.viewTo=o,n.viewOffset=Bt(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px",i=nr(e);if(!r&&0==i&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;l=function(e){if(e.hasFocus())return null;if(!(n=O(F(e)))||!N(e.display.lineDiv,n))return null;var t,n={activeElt:n};return window.getSelection&&(t=P(e).getSelection()).anchorNode&&t.extend&&N(e.display.lineDiv,t.anchorNode)&&(n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset),n}(e);var s=(4<i&&(n.lineDiv.style.display="none"),e),u=n.updateLineNumbers,c=t.dims,h=s.display,d=s.options.lineNumbers,f=h.lineDiv,p=f.firstChild;function g(e){var t=e.nextSibling;return a&&y&&s.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),t}for(var m=h.view,v=h.viewFrom,b=0;b<m.length;b++){var w=m[b];if(!w.hidden)if(w.node&&w.node.parentNode==f){for(;p!=w.node;)p=g(p);var x=d&&null!=u&&u<=v&&w.lineNumber;w.changes&&(-1<B(w.changes,"gutter")&&(x=!1),nn(s,w,v,c)),x&&(L(w.lineNumber),w.lineNumber.appendChild(document.createTextNode(Je(s.options,v)))),p=w.node.nextSibling}else x=function(e,t,n,r){var i=on(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ln(e,t),sn(e,t,n,r),an(e,t,r),t.node}(s,w,v,c),f.insertBefore(x,p);v+=w.size}for(;p;)p=g(p);return 4<i&&(n.lineDiv.style.display=""),n.renderedView=n.view,(o=l)&&o.activeElt&&o.activeElt!=O(o.activeElt.ownerDocument)&&(o.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(o.activeElt.nodeName)&&o.anchorNode&&N(document.body,o.anchorNode)&&N(document.body,o.focusNode)&&(i=(h=o.activeElt.ownerDocument).defaultView.getSelection(),(h=h.createRange()).setEnd(o.anchorNode,o.anchorOffset),h.collapse(!1),i.removeAllRanges(),i.addRange(h),i.extend(o.focusNode,o.focusOffset))),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,r&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ir(e,400)),!(n.updateLineNumbers=null)}function Ur(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=mn(e))r&&(t.visible=pr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+fn(e.display)-vn(e),n.top)}),t.visible=pr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Gr(e,t))break;dr(e);var i=Lr(e);rr(e),Mr(e,i),jr(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vr(e,t){var n;Gr(e,t=new Br(e,t))&&(dr(e),Ur(e,t),n=Lr(e),rr(e),Mr(e,n),jr(e,n),t.finish())}function Kr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",en(e,"gutterChanged",e)}function jr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+gn(e)+"px"}function Xr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Yn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l<n.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var s=n[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Yr(e){var t,n,r,i;if(e.options.lineNumbers)return t=e.doc,t=Je(e.options,t.first+t.size-1),n=e.display,t.length!=n.lineNumChars?(r=(i=n.measure.appendChild(T("div",[T("div",t)],"CodeMirror-linenumber CodeMirror-gutter-elt"))).firstChild.offsetWidth,i=i.offsetWidth-r,n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(r,n.lineGutter.offsetWidth-i)+1,n.lineNumWidth=n.lineNumInnerWidth+i,n.lineNumChars=n.lineNumInnerWidth?t.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Kr(e.display),1):void 0}function $r(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],l=null;if("string"!=typeof o&&(l=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:l})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function _r(e){var t=e.gutters,n=e.gutterSpecs;L(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=(o=n[r]).className,o=o.style,l=t.appendChild(T("div",null,"CodeMirror-gutter "+i));o&&(l.style.cssText=o),"CodeMirror-linenumbers"==i&&((e.lineGutter=l).style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Kr(e)}function qr(e){_r(e.display),Qn(e),Xr(e)}function Zr(e,t,r,i){var o=this,h=(this.input=r,o.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=M("div",null,"CodeMirror-code"),o.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=T("div",null,"CodeMirror-cursors"),o.measure=T("div",null,"CodeMirror-measure"),o.lineMeasure=T("div",null,"CodeMirror-measure"),o.lineSpace=M("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none"),M("div",[o.lineSpace],"CodeMirror-lines"));o.mover=T("div",[h],null,"position: relative"),o.sizer=T("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=T("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=T("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=T("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=T("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&105<=c&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),l&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),a||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=$r(i.gutters,i.lineNumbers),_r(o),r.init(o)}Br.prototype.signal=function(e,t){Ce(e,t)&&this.events.push(arguments)},Br.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var Qr=0,Jr=null;function ei(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ti(e,t){u&&102==c&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=(i=ei(t)).x,i=i.y,o=Jr,l=(0===t.deltaMode&&(r=t.deltaX,i=t.deltaY,o=1),e.display),s=l.scroller,d=s.scrollWidth>s.clientWidth,f=s.scrollHeight>s.clientHeight;if(r&&d||i&&f){if(i&&y&&a)e:for(var p=t.target,g=l.view;p!=s;p=p.parentNode)for(var m=0;m<g.length;m++)if(g[m].node==p){e.display.currentWheelTarget=p;break e}if(r&&!n&&!h&&null!=o)return i&&f&&xr(e,Math.max(0,s.scrollTop+i*o)),Sr(e,Math.max(0,s.scrollLeft+r*o)),i&&!f||Le(t),void(l.wheelStartX=null);i&&null!=o&&(f=(d=e.doc.scrollTop)+l.wrapper.clientHeight,(o*=i)<0?d=Math.max(0,d+o-50):f=Math.min(e.doc.height,f+o+50),Vr(e,{top:d,bottom:f})),Qr<20&&0!==t.deltaMode&&(null==l.wheelStartX?(l.wheelStartX=s.scrollLeft,l.wheelStartY=s.scrollTop,l.wheelDX=r,l.wheelDY=i,setTimeout((function(){var e,t;null!=l.wheelStartX&&(e=s.scrollLeft-l.wheelStartX,t=(t=s.scrollTop-l.wheelStartY)&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX,l.wheelStartX=l.wheelStartY=null,t&&(Jr=(Jr*Qr+t)/(Qr+1),++Qr))}),200)):(l.wheelDX+=r,l.wheelDY+=i))}}l?Jr=-.53:n?Jr=15:u?Jr=-.7:d&&(Jr=-1/3);var ni=function(e,t){this.ranges=e,this.primIndex=t},ri=(ni.prototype.primary=function(){return this.ranges[this.primIndex]},ni.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},ni.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ri(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new ni(e,this.primIndex)},ni.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ni.prototype.contains=function(e,t){t=t||e;for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(0<=tt(t,r.from())&&tt(e,r.to())<=0)return n}return-1},function(e,t){this.anchor=e,this.head=t});function ii(e,t,n){var r=e&&e.options.selectionsMayTouch;e=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=B(t,e);for(var i=1;i<t.length;i++){var o,l=t[i],s=t[i-1],a=tt(s.to(),l.from());(r&&!l.empty()?0<a:0<=a)&&(a=ot(s.from(),l.from()),o=it(s.to(),l.to()),l=s.empty()?l.from()==l.head:s.from()==s.head,i<=n&&--n,t.splice(--i,2,new ri(l?o:a,l?a:o)))}return new ni(t,n)}function oi(e,t){return new ni([new ri(e,t||e)],0)}function li(e){return e.text?et(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function si(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return li(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=li(t).ch-t.to.ch),et(n,r)}function ai(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ri(si(i.anchor,t),si(i.head,t)))}return ii(e.cm,n,e.sel.primIndex)}function ui(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function ci(e){e.doc.mode=Be(e.options,e.doc.modeOption),hi(e)}function hi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ir(e,100),e.state.modeGen++,e.curOp&&Qn(e)}function di(e,t){return 0==t.from.ch&&0==t.to.ch&&""==$(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function fi(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){var o,l;l=r,(o=e).text=n,o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null),null!=o.order&&(o.order=null),Mt(o),Nt(o,i),(n=l?l(o):1)!=o.height&&_e(o,n),en(e,"change",e,t)}function l(e,t){for(var n=[],o=e;o<t;++o)n.push(new Vt(c[o],i(o),r));return n}var s,a=t.from,u=t.to,c=t.text,h=Xe(e,a.line),d=Xe(e,u.line),f=$(c),p=i(c.length-1),g=u.line-a.line;t.full?(e.insert(0,l(0,c.length)),e.remove(c.length,e.size-c.length)):di(e,t)?(s=l(0,c.length-1),o(d,d.text,p),g&&e.remove(a.line,g),s.length&&e.insert(a.line,s)):h==d?1==c.length?o(h,h.text.slice(0,a.ch)+f+h.text.slice(u.ch),p):((s=l(1,c.length-1)).push(new Vt(f+h.text.slice(u.ch),p,r)),o(h,h.text.slice(0,a.ch)+c[0],i(0)),e.insert(a.line+1,s)):1==c.length?(o(h,h.text.slice(0,a.ch)+c[0]+d.text.slice(u.ch),i(0)),e.remove(a.line+1,g)):(o(h,h.text.slice(0,a.ch)+c[0],i(0)),o(d,f+d.text.slice(u.ch),p),s=l(1,c.length-1),1<g&&e.remove(a.line+1,g-1),e.insert(a.line+1,s)),en(e,"change",e,t)}function pi(e,t,n){!function e(r,i,o){if(r.linked)for(var l=0;l<r.linked.length;++l){var s,a=r.linked[l];a.doc!=i&&(s=o&&a.sharedHist,n&&!s||(t(a.doc,s),e(a.doc,r,s)))}}(e,null,!0)}function gi(e,t){if(t.cm)throw new Error("This document is already in use.");_n((e.doc=t).cm=e),ci(e),mi(e),e.options.direction=t.direction,e.options.lineWrapping||Ut(e),e.options.mode=t.modeOption,Qn(e)}function mi(e){("rtl"==e.doc.direction?A:S)(e.display.lineDiv,"CodeMirror-rtl")}function vi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function yi(e,t){var n={from:rt(t.from),to:li(t),text:Ye(e,t.from,t.to)};return Ci(e,n,t.from.line,t.to.line+1),pi(e,(function(e){return Ci(e,n,t.from.line,t.to.line+1)}),!0),n}function bi(e){for(;e.length&&$(e).ranges;)e.pop()}function wi(e,t,n,r){var i,o,l=e.history,s=(l.undone.length=0,+new Date);if((l.lastOp==r||l.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&l.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=(o=l).lastOp==r?(bi(o.done),$(o.done)):o.done.length&&!$(o.done).ranges?$(o.done):1<o.done.length&&!o.done[o.done.length-2].ranges?(o.done.pop(),$(o.done)):void 0))i=$(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,i.to)?i.to=li(t):o.changes.push(yi(e,t));else{var a=$(l.done);for(a&&a.ranges||xi(e.sel,l.done),o={changes:[yi(e,t)],generation:l.generation},l.done.push(o);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(n),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=s,l.lastOp=l.lastSelOp=r,l.lastOrigin=l.lastSelOrigin=t.origin,i||be(e,"historyAdded")}function xi(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ci(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i=i||(t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Si(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(function(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t=t||e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}(n[i]));return r}(e,t),r=kt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],l=r[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(n[i]=l)}return n}function Li(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ni.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];r.push({changes:s});for(var a=0;a<l.length;++a){var u,c=l[a];if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var h in c)(u=h.match(/^spans_(\d+)$/))&&-1<B(t,Number(u[1]))&&($(s)[h]=c[h],delete c[h])}}}return r}function ki(e,t,n,r){return r?(r=e.anchor,n&&((e=tt(t,r)<0)!=tt(n,r)<0?(r=t,t=n):e!=tt(t,n)<0&&(t=n)),new ri(r,t)):new ri(n||t,t)}function Ti(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Di(e,new ni([ki(e.sel.primary(),t,n,i)],0),r)}function Mi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=ki(e.sel.ranges[o],t[o],null,i);Di(e,ii(e.cm,r,e.sel.primIndex),n)}function Ni(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Di(e,ii(e.cm,i,e.sel.primIndex),r)}function Oi(e,t,n,r){Di(e,oi(t,n),r)}function Ai(e,t,n){var r=e.history.done,i=$(r);i&&i.ranges?Wi(e,r[r.length-1]=t,n):Di(e,t,n)}function Di(e,t,n){Wi(e,t,n),function(e,t,n,r){var i,o,l,s=e.history,a=r&&r.origin;n==s.lastSelOp||a&&s.lastSelOrigin==a&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==a||(i=a,o=$(s.done),l=t,"*"==(i=i.charAt(0))||"+"==i&&o.ranges.length==l.ranges.length&&o.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)))?s.done[s.done.length-1]=t:xi(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=a,s.lastSelOp=n,r&&!1!==r.clearRedo&&bi(s.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Wi(e,t,n){(Ce(e,"beforeSelectionChange")||e.cm&&Ce(e.cm,"beforeSelectionChange"))&&(r=e,o=n,o={ranges:(i=t).ranges,update:function(e){this.ranges=[];for(var t=0;t<e.length;t++)this.ranges[t]=new ri(st(r,e[t].anchor),st(r,e[t].head))},origin:o&&o.origin},be(r,"beforeSelectionChange",r,o),r.cm&&be(r.cm,"beforeSelectionChange",r.cm,o),t=o.ranges!=i.ranges?ii(r.cm,o.ranges,o.ranges.length-1):i);var r,i,o=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);Hi(e,Pi(e,t,o,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||vr(e.cm)}function Hi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),en(e,"cursorActivity",e))}function Fi(e){Hi(e,Pi(e,e.sel,null,!1))}function Pi(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=zi(e,l.anchor,s&&s.anchor,n,r);s=l.head==l.anchor?a:zi(e,l.head,s&&s.head,n,r);!i&&a==l.anchor&&s==l.head||((i=i||t.ranges.slice(0,o))[o]=new ri(a,s))}return i?ii(e.cm,i,t.primIndex):t}function Ei(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=(c=o.markedSpans[l]).marker,a="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,u="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==c.from||(a?c.from<=t.ch:c.from<t.ch))&&(null==c.to||(u?c.to>=t.ch:c.to>t.ch))){if(i&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(s.atomic){if(n){var c=s.find(r<0?1:-1),h=void 0;if((c=(r<0?u:a)?Ii(e,c,-r,c&&c.line==t.line?o:null):c)&&c.line==t.line&&(h=tt(c,n))&&(r<0?h<0:0<h))return Ei(e,c,t,r,i)}return h=s.find(r<0?-1:1),(h=(r<0?a:u)?Ii(e,h,r,h.line==t.line?o:null):h)?Ei(e,h,t,r,i):null}}}return t}function zi(e,t,n,r,i){return(i=Ei(e,t,n,r=r||1,i)||!i&&Ei(e,t,n,r,!0)||Ei(e,t,n,-r,i)||!i&&Ei(e,t,n,-r,!0))||(e.cantEdit=!0,et(e.first,0))}function Ii(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:0<n&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function Ri(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),U)}function Bi(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Gi(e,t,n){if(e.cm){if(!e.cm.curOp)return Pr(e.cm,Gi)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange"))||(t=Bi(e,t,!0))){var r=xt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r=r||[]).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var l=r[o],s=l.find(0),a=0;a<i.length;++a){var u,c,h,d=i[a];tt(d.to,s.from)<0||0<tt(d.from,s.to)||(u=[a,1],c=tt(d.from,s.from),h=tt(d.to,s.to),(c<0||!l.inclusiveLeft&&!c)&&u.push({from:d.from,to:s.from}),(0<h||!l.inclusiveRight&&!h)&&u.push({from:s.to,to:d.to}),i.splice.apply(i,u),a+=u.length-3)}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;0<=i;--i)Ui(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Ui(e,t)}}function Ui(e,t){var n,r;1==t.text.length&&""==t.text[0]&&0==tt(t.from,t.to)||(n=ai(e,t),wi(e,t,n,e.cm?e.cm.curOp.id:NaN),ji(e,t,n,kt(e,t)),r=[],pi(e,(function(e,n){n||-1!=B(r,e.history)||(_i(e.history,t),r.push(e.history)),ji(e,t,null,kt(e,t))})))}function Vi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,l=e.sel,s="undo"==t?o.done:o.undone,a="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(xi(i,a),n&&!i.equals(e.sel))return void Di(e,i,{clearRedo:!1});l=i}for(var c=[],h=(xi(l,a),a.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration,Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange")),d=i.changes.length-1;0<=d;--d){var f=function(n){var r=i.changes[n];if(r.origin=t,h&&!Bi(e,r,!1))return s.length=0,{};c.push(yi(e,r));var o=n?ai(e,r):$(s),l=(ji(e,r,o,Si(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:li(r)}),[]);pi(e,(function(e,t){t||-1!=B(l,e.history)||(_i(e.history,r),l.push(e.history)),ji(e,r,null,Si(e,r))}))}(d);if(f)return f.v}}}}function Ki(e,t){if(0!=t&&(e.first+=t,e.sel=new ni(_(e.sel.ranges,(function(e){return new ri(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Qn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Jn(e.cm,r,"gutter")}}function ji(e,t,n,r){if(e.cm&&!e.cm.curOp)return Pr(e.cm,ji)(e,t,n,r);if(t.to.line<e.first)Ki(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){t.from.line<e.first&&(Ki(e,i=t.text.length-1-(e.first-t.from.line)),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[$(t.text)],origin:t.origin});var i=e.lastLine();if((t=t.to.line>i?{from:t.from,to:et(i,Xe(e,i).text.length),text:[t.text[0]],origin:t.origin}:t).removed=Ye(e,t.from,t.to),n=n||ai(e,t),e.cm){var o=t,l=r,s=(i=e.cm).doc,a=i.display,u=o.from,c=o.to,h=!1,d=u.line,f=(i.options.lineWrapping||(d=qe(Et(Xe(s,u.line))),s.iter(d,c.line+1,(function(e){if(e==a.maxLine)return h=!0}))),-1<s.sel.contains(o.from,o.to)&&xe(i),fi(s,o,l,$n(i)),i.options.lineWrapping||(s.iter(d,u.line+o.text.length,(function(e){var t=Gt(e);t>a.maxLineLength&&(a.maxLine=e,a.maxLineLength=t,a.maxLineChanged=!0,h=!1)})),h&&(i.curOp.updateMaxLine=!0)),s),p=u.line;if(f.modeFrontier=Math.min(f.modeFrontier,p),!(f.highlightFrontier<p-10)){for(var g=f.first,m=p-1;g<m;m--){var v=Xe(f,m).stateAfter;if(v&&(!(v instanceof ut)||m+v.lookAhead<p)){g=m+1;break}}f.highlightFrontier=Math.min(f.highlightFrontier,g)}Ir(i,400),l=o.text.length-(c.line-u.line)-1,o.full?Qn(i):u.line!=c.line||1!=o.text.length||di(i.doc,o)?Qn(i,u.line,c.line+1,l):Jn(i,u.line,"text"),d=Ce(i,"changes"),((s=Ce(i,"change"))||d)&&(l={from:u,to:c,text:o.text,removed:o.removed,origin:o.origin},s&&en(i,"change",i,l),d&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(l)),i.display.selForContextMenu=null}else fi(e,t,r);Wi(e,n,U),e.cantEdit&&zi(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function Xi(e,t,n,r,i){var o;tt(r=r||n,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Gi(e,{from:n,to:r,text:t,origin:i})}function Yi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function $i(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)Yi(o.ranges[s].anchor,t,n,r),Yi(o.ranges[s].head,t,n,r)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(n<u.from.line)u.from=et(u.from.line+r,u.from.ch),u.to=et(u.to.line+r,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function _i(e,t){var n=t.from.line,r=t.to.line;t=t.text.length-(r-n)-1;$i(e.done,n,r,t),$i(e.undone,n,r,t)}function qi(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,lt(e,t)):i=qe(t),null==i?null:(r(o,i)&&e.cm&&Jn(e.cm,i,n),o)}function Zi(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Qi(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function Ji(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}function eo(e,t,n){Bt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&mr(e,n)}function to(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++no}ri.prototype.from=function(){return ot(this.anchor,this.head)},ri.prototype.to=function(){return it(this.anchor,this.head)},ri.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n,r=e,i=e+t;r<i;++r){var o=this.lines[r];this.height-=o.height,(n=o).parent=null,Mt(n),en(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Qi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n,r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e),s=i.height;if(i.removeInner(e,l),this.height-=s-i.height,o==l&&(this.children.splice(r--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}this.size-t<25&&(1<this.children.length||!(this.children[0]instanceof Zi))&&(this.collapse(n=[]),this.children=[new Zi(n)],this.children[0].parent=this)},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&50<i.lines.length){for(var l=i.lines.length%25+25,s=l;s<i.lines.length;){var a=new Zi(i.lines.slice(s,s+=25));i.height-=a.height,this.children.splice(++r,0,a),a.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t,n=new Qi(e.children.splice(e.children.length-5,5))}while(e.parent?(e.size-=n.size,e.height-=n.height,t=B(e.parent.children,e),e.parent.children.splice(t+1,0,n)):(((t=new Qi(e.children)).parent=e).children=[t,n],e=t),n.parent=e.parent,10<e.children.length);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e);if(i.iterN(e,l,n))return!0;if(0==(t-=l))break;e=0}else e-=o}}},Ji.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=qe(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=cn(this);_e(n,Math.max(0,n.height-o)),e&&(Fr(e,(function(){eo(e,n,-o),Jn(e,r,"widget")})),en(e,"lineWidgetCleared",e,this,r))}},Ji.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line,i=(this.height=null,cn(this)-t);i&&(Rt(this.doc,r)||_e(r,r.height+i),n&&Fr(n,(function(){n.curOp.forceUpdate=!0,eo(n,r,i),en(n,"lineWidgetChanged",n,e,qe(r))})))},Se(Ji);var no=0;function ro(e,t,n,r,i){if(r&&r.shared)return f=e,o=t,l=n,a=i,(s=z(s=r)).shared=!1,u=[ro(f,o,l,s,a)],c=u[0],h=s.widgetNode,pi(f,(function(e){h&&(s.widgetNode=h.cloneNode(!0)),u.push(ro(e,st(e,o),st(e,l),s,a));for(var t=0;t<e.linked.length;++t)if(e.linked[t].isParent)return;c=$(u)})),new io(u,c);var o,l,s,a,u,c,h;if(e.cm&&!e.cm.curOp)return Pr(e.cm,ro)(e,t,n,r,i);var d=new to(e,i),f=tt(t,n);if(r&&z(r,d,!1),0<f||0==f&&!1!==d.clearWhenEmpty)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=M("span",[d.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(Pt(e,t.line,t,n,d)||t.line!=n.line&&Pt(e,n.line,t,n,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}d.addToHistory&&wi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var p,g=t.line,m=e.cm;if(e.iter(g,n.line+1,(function(r){var i,o;m&&d.collapsed&&!m.options.lineWrapping&&Et(r)==m.display.maxLine&&(p=!0),d.collapsed&&g!=t.line&&_e(r,0),i=new St(d,g==t.line?t.ch:null,g==n.line?n.ch:null),(o=(o=e.cm&&e.cm.curOp)&&window.WeakSet&&(o.markedSpans||(o.markedSpans=new WeakSet)))&&r.markedSpans&&o.has(r.markedSpans)?r.markedSpans.push(i):(r.markedSpans=r.markedSpans?r.markedSpans.concat([i]):[i],o&&o.add(r.markedSpans)),i.marker.attachLine(r),++g})),d.collapsed&&e.iter(t.line,n.line+1,(function(t){Rt(e,t)&&_e(t,0)})),d.clearOnEnter&&me(d,"beforeCursorEnter",(function(){return d.clear()})),d.readOnly&&(xt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++no,d.atomic=!0),m){if(p&&(m.curOp.updateMaxLine=!0),d.collapsed)Qn(m,t.line,n.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var v=t.line;v<=n.line;v++)Jn(m,v,"text");d.atomic&&Fi(m.doc),en(m,"markerAdded",m,d)}return d}to.prototype.clear=function(){if(!this.explicitlyCleared){for(var e,t=this.doc.cm,n=t&&!t.curOp,r=(n&&Wr(t),!Ce(this,"clear")||(e=this.find())&&en(this,"clear",e.from,e.to),null),i=null,o=0;o<this.lines.length;++o){var l=this.lines[o],s=Lt(l.markedSpans,this);t&&!this.collapsed?Jn(t,qe(l),"text"):t&&(null!=s.to&&(i=qe(l)),null!=s.from&&(r=qe(l))),l.markedSpans=function(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n=n||[]).push(e[r]);return n}(l.markedSpans,s),null==s.from&&this.collapsed&&!Rt(this.doc,l)&&t&&_e(l,Kn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var a=0;a<this.lines.length;++a){var u=Et(this.lines[a]),c=Gt(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Qn(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Fi(t.doc)),t&&en(t,"markerCleared",t,this,r,i),n&&Hr(t),this.parent&&this.parent.clear()}},to.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],l=Lt(o.markedSpans,this);if(null!=l.from&&(n=et(t?o:qe(o),l.from),-1==e))return n;if(null!=l.to&&(r=et(t?o:qe(o),l.to),1==e))return r}return n&&{from:n,to:r}},to.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Fr(r,(function(){var i=t.line,o=qe(t.line);(o=wn(r,o))&&(Tn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,Rt(n.doc,i)||null==n.height||(o=n.height,n.height=null,(o=cn(n)-o)&&_e(i,i.height+o)),en(r,"markerChanged",r,e)}))},to.prototype.attachLine=function(e){var t;this.lines.length||!this.doc.cm||(t=this.doc.cm.curOp).maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this),this.lines.push(e)},to.prototype.detachLine=function(e){this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm&&((e=this.doc.cm.curOp).maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)},Se(to);var io=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function oo(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function lo(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];pi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function so(e,t,n,r,i){if(!(this instanceof so))return new so(e,t,n,r,i);null==n&&(n=0),Qi.call(this,[new Zi([new Vt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,n=et(this.modeFrontier=this.highlightFrontier=n,0),this.sel=oi(n),this.history=new vi(null),this.id=++ao,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),fi(this,{from:n,to:n,text:e}),Di(this,oi(n),U)}io.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();en(this,"clear")}},io.prototype.find=function(e,t){return this.primary.find(e,t)},Se(io);var ao=0,uo=((so.prototype=Z(Qi.prototype,{constructor:so,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=$e(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:zr((function(e){var t=et(this.first,0),n=this.first+this.size-1;Gi(this,{from:t,to:et(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&yr(this.cm,0,0),Di(this,oi(t),U)})),replaceRange:function(e,t,n,r){Xi(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){return e=Ye(this,st(this,e),st(this,t)),!1===n?e:""===n?e.join(""):e.join(n||this.lineSeparator())},getLine:function(e){return(e=this.getLineHandle(e))&&e.text},getLineHandle:function(e){if(Qe(this,e))return Xe(this,e)},getLineNumber:qe,getLineHandleVisualStart:function(e){return Et(e="number"==typeof e?Xe(this,e):e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return e=null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zr((function(e,t,n){Oi(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:zr((function(e,t,n){Oi(this,st(this,e),st(this,t||e),n)})),extendSelection:zr((function(e,t,n){Ti(this,st(this,e),t&&st(this,t),n)})),extendSelections:zr((function(e,t){Mi(this,at(this,e),t)})),extendSelectionsBy:zr((function(e,t){Mi(this,at(this,_(this.sel.ranges,e)),t)})),setSelections:zr((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ri(st(this,e[i].anchor),st(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Di(this,ii(this.cm,r,t),n)}})),addSelection:zr((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ri(st(this,e),st(this,t||e))),Di(this,ii(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t=this.sel.ranges,n=0;n<t.length;n++)var r=Ye(this,t[n].from(),t[n].to()),i=i?i.concat(r):r;return!1===e?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ye(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:zr((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var l=i.ranges[o];r[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:n}}t=t&&"end"!=t&&function(e,t,n){for(var r=[],i=u=et(e.first,0),o=0;o<t.length;o++){var l=t[o],s=ui(l.from,u,i),a=ui(li(l),u,i),u=l.to;i=a;"around"==n?(l=tt((l=e.sel.ranges[o]).head,l.anchor)<0,r[o]=new ri(l?a:s,l?s:a)):r[o]=new ri(s,s)}return new ni(r,e.sel.primIndex)}(this,r,t);for(var s=r.length-1;0<=s;s--)Gi(this,r[s]);t?Ai(this,t):this.cm&&vr(this.cm)})),undo:zr((function(){Vi(this,"undo")})),redo:zr((function(){Vi(this,"redo")})),undoSelection:zr((function(){Vi(this,"undo",!0)})),redoSelection:zr((function(){Vi(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new vi(this.history),pi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Li(this.history.done),undone:Li(this.history.undone)}},setHistory:function(e){var t=this.history=new vi(this.history);t.done=Li(e.done.slice(0),null,!0),t.undone=Li(e.undone.slice(0),null,!0)},setGutterMarker:zr((function(e,t,n){return qi(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return!(r[t]=n)&&te(r)&&(e.gutterMarkers=null),1}))})),clearGutter:zr((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&qi(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),1}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Qe(this,e))return null;if(!(e=Xe(this,t=e)))return null}else if(null==(t=qe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:zr((function(e,t,n){return qi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return;e[r]+=" "+n}else e[r]=n;return 1}))})),removeLineClass:zr((function(e,t,n){return qi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(i){if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return;var l=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return 1}}))})),addLineWidget:zr((function(e,t,n){return i=new Ji(r=this,t,n),(o=r.cm)&&i.noHScroll&&(o.display.alignWidgets=!0),qi(r,e,"widget",(function(e){var t=e.widgets||(e.widgets=[]);return null==i.insertAt?t.push(i):t.splice(Math.min(t.length,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Rt(r,e)&&(t=Bt(e)<r.scrollTop,_e(e,e.height+cn(i)),t&&mr(o,i.height),o.curOp.forceUpdate=!0),1})),o&&en(o,"lineWidgetAdded",o,i,"number"==typeof e?e:qe(e)),i;var r,i,o})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ro(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){return t={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents},ro(this,e=st(this,e),e,t,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||n&&!n(a.marker)||r.push(a.marker.parent||a.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){if(i=i.text.length+r,e<i)return t=e,!0;e-=i,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new so($e(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){for(var t=this.first,n=this.first+this.size,r=(n=(null!=(e=e||{}).from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to),new so($e(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction)),e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],n),i=oo(this),o=0;o<i.length;o++){var l=i[o],s=l.find(),a=r.clipPos(s.from);tt(a,s=r.clipPos(s.to))&&(a=ro(r,a,s,l.primary,l.primary.type),l.markers.push(a),a.parent=l)}return n},unlinkDoc:function(e){if(e instanceof tl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),lo(oo(this));break}}var n;e.history==this.history&&(n=[e.id],pi(e,(function(e){return n.push(e.id)}),!0),e.history=new vi(null),e.history.done=Li(this.history.done,n),e.history.undone=Li(this.history.undone,n))},iterLinkedDocs:function(e){pi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):He(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:zr((function(e){var t;(e="rtl"!=e?"ltr":e)!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Fr(t=this.cm,(function(){mi(t),Qn(t)})))}))})).eachLine=so.prototype.iter,0);function co(e){var t=this;if(ho(t),!we(t,e)&&!hn(t.display,e)){Le(e),l&&(uo=+new Date);var n=qn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,a=function(){++s==i&&Pr(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Gi(t.doc,e),Ai(t.doc,oi(st(t.doc,n),st(t.doc,li(e))))}))()},u=0;u<r.length;u++)!function(e,n){var r;t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type)?a():((r=new FileReader).onerror=function(){return a()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),a()},r.readAsText(e))}(r[u],u);else{if(t.state.draggingText&&-1<t.doc.sel.contains(n))return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var c,h=e.dataTransfer.getData("Text");if(h){if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),Wi(t.doc,oi(n,n)),c)for(var d=0;d<c.length;++d)Xi(t.doc,"",c[d].anchor,c[d].head,"drag");t.replaceSelection(h,"around","paste"),t.display.input.focus()}}catch(e){}}}}function ho(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function fo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var po=!1;function go(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var mo={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"},vo=0;vo<10;vo++)mo[vo+48]=mo[vo+96]=String(vo);for(var yo=65;yo<=90;yo++)mo[yo]=String.fromCharCode(yo);for(var bo=1;bo<=12;bo++)mo[bo+111]=mo[bo+63235]="F"+bo;var wo={};function xo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l<o.length-1;l++){var s=o[l];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r?"Shift-"+e:e}function Co(e,t,n,r){var i=(t=To(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Co(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var l=Co(e,t.fallthrough[o],n,r);if(l)return l}}}function So(e){return"Ctrl"==(e="string"==typeof e?e:mo[e.keyCode])||"Alt"==e||"Shift"==e||"Mod"==e}function Lo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r?"Shift-"+e:e}function ko(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=mo[e.keyCode];return null!=n&&!e.altGraphKey&&Lo(n=3==e.keyCode&&e.code?e.code:n,e,t)}function To(e){return"string"==typeof e?wo[e]:e}function Mo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,$(r).to)<=0;){var l=r.pop();if(tt(l.from,o.from)<0){o.from=l.from;break}}r.push(o)}Fr(e,(function(){for(var t=r.length-1;0<=t;t--)Xi(e.doc,"",r[t].from,r[t].to,"+delete");vr(e)}))}function No(e,t,n){return(t=ie(e.text,t+n,n))<0||t>e.text.length?null:t}function Oo(e,t,n){return null==(e=No(e,t.ch,n))?null:new et(t.line,e,n<0?"after":"before")}function Ao(e,t,n,r,i){var o,l,s,a;if(e&&("rtl"==t.doc.direction&&(i=-i),e=pe(n,t.doc.direction)))return o=i<0==(1==(e=i<0?$(e):e[0]).level)?"after":"before",0<e.level||"rtl"==t.doc.direction?(l=xn(t,n),s=i<0?n.text.length-1:0,a=Cn(t,l,s).top,s=oe((function(e){return Cn(t,l,e).top==a}),i<0==(1==e.level)?e.from:e.to-1,s),"before"==o&&(s=No(n,s,1))):s=i<0?e.to:e.from,new et(r,s,o);return new et(r,i<0?n.text.length:0,i<0?"before":"after")}wo.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"},wo.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"},wo.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"},wo.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"]},wo.default=y?wo.macDefault:wo.pcDefault;var Do={selectAll:Ri,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return Mo(e,(function(t){var n;return t.empty()?(n=Xe(e.doc,t.head.line).text.length,t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}):{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Mo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Mo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Mo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Mo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:n}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Wo(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Ho(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){var n=e,r=(t=t.head.line,Xe(n.doc,t)),i=function(e){for(var t;t=Ft(e);)e=t.find(1,!0).line;return e}(r);return i!=r&&(t=qe(i)),Ao(!0,n,r,t,-1)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){return t=e.cursorCoords(t.head,"div").top+5,e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:t},"div")}),K)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){return t=e.cursorCoords(t.head,"div").top+5,e.coordsChar({left:0,top:t},"div")}),K)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return(n=e.coordsChar({left:0,top:n},"div")).ch<e.getLine(n.line).search(/\S/)?Ho(e,t.head):n}),K)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from();o=I(e.getLine(o.line),o.ch,r);t.push(Y(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Fr(e,(function(){for(var t,n,r,i=e.listSelections(),o=[],l=0;l<i.length;l++)i[l].empty()&&(t=i[l].head,(n=Xe(e.doc,t.line).text)&&(0<(t=t.ch==n.length?new et(t.line,t.ch-1):t).ch?(t=new et(t.line,t.ch+1),e.replaceRange(n.charAt(t.ch-1)+n.charAt(t.ch-2),et(t.line,t.ch-2),t,"+transpose")):t.line>e.doc.first&&(r=Xe(e.doc,t.line-1).text)&&(t=new et(t.line,1),e.replaceRange(n.charAt(0)+e.doc.lineSeparator()+r.charAt(r.length-1),et(t.line-1,r.length-1),t,"+transpose"))),o.push(new ri(t,t)));e.setSelections(o)}))},newlineAndIndent:function(e){return Fr(e,(function(){for(var t=(n=e.listSelections()).length-1;0<=t;t--)e.replaceRange(e.doc.lineSeparator(),n[t].anchor,n[t].head,"+input");for(var n=e.listSelections(),r=0;r<n.length;r++)e.indentLine(n[r].from().line,null,!0);vr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Wo(e,t){var n=Xe(e.doc,t),r=Et(n);return Ao(!0,e,r,t=r!=n?qe(r):t,1)}function Ho(e,t){var n=Wo(e,t.line),r=Xe(e.doc,n.line);return(e=pe(r,e.doc.direction))&&0!=e[0].level?n:(e=Math.max(n.ch,r.text.search(/\S/)),r=t.line==n.line&&t.ch<=e&&t.ch,et(n.line,r?0:e,n.sticky))}function Fo(e,t,n){if("string"==typeof t&&!(t=Do[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=G}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var Po=new R;function Eo(e,t,n,r){var i=e.state.keySeq;if(i){if(So(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Po.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),zo(e,i+" "+t,n,r))return!0}return zo(e,t,n,r)}function zo(e,t,n,r){return r=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Co(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Co(t,e.options.extraKeys,n,e)||Co(t,e.options.keyMap,n,e)}(e,t,r),"multi"==r&&(e.state.keySeq=t),"handled"==r&&en(e,"keyHandled",e,t,n),"handled"!=r&&"multi"!=r||(Le(n),sr(e)),!!r}function Io(e,t){var n=ko(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?Eo(e,"Shift-"+n,t,(function(t){return Fo(e,t,!0)}))||Eo(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Fo(e,t)})):Eo(e,n,t,(function(t){return Fo(e,t)})))}var Ro,Bo,Go=null;function Uo(e){var t,r,i,o=this;function a(e){18!=e.keyCode&&e.altKey||(S(i,"CodeMirror-crosshair"),ye(document,"keyup",a),ye(document,"mouseover",a))}e.target&&e.target!=o.display.input.getField()||(o.curOp.focus=O(F(o)),we(o,e)||(l&&s<11&&27==e.keyCode&&(e.returnValue=!1),t=e.keyCode,o.display.shift=16==t||e.shiftKey,r=Io(o,e),h&&(Go=r?t:null,!r&&88==t&&!Pe&&(y?e.metaKey:e.ctrlKey)&&o.replaceSelection("",null,"cut")),n&&!y&&!r&&46==t&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=t||/\bCodeMirror-crosshair\b/.test(o.display.lineDiv.className)||(A(i=o.display.lineDiv,"CodeMirror-crosshair"),me(document,"keyup",a),me(document,"mouseover",a))))}function Vo(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function Ko(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||hn(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n,r=e.keyCode,i=e.charCode;if(h&&r==Go)return Go=null,void Le(e);h&&(!e.which||e.which<10)&&Io(t,e)||"\b"==(r=String.fromCharCode(null==i?r:i))||Eo(n=t,"'"+r+"'",e,(function(e){return Fo(n,e,!0)}))||t.display.input.onKeyPress(e)}}function jo(e,t,n){this.time=e,this.pos=t,this.button=n}function Xo(e){var t,n,r,i,o,u,c,h,f,p=this,g=p.display;we(p,e)||g.activeTouch&&g.input.supportsTouch()||(g.input.ensurePolled(),g.shift=e.shiftKey,hn(g,e)?a||(g.scroller.draggable=!1,setTimeout((function(){return g.scroller.draggable=!0}),100)):_o(p,e)||(t=qn(p,e),n=Oe(e),r=t?(i=t,o=n,r=+new Date,Bo&&Bo.compare(r,i,o)?(Ro=Bo=null,"triple"):Ro&&Ro.compare(r,i,o)?(Bo=new jo(r,i,o),Ro=null,"double"):(Ro=new jo(r,i,o),Bo=null,"single")):"single",P(p).focus(),1==n&&p.state.selectingText&&p.state.selectingText(e),t&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),Eo(e,Lo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if(!(t="string"==typeof t?Do[t]:t))return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=G}finally{e.state.suppressEdits=!1}return r}))}(p,n,t,r,e)||(1==n?t?(i=p,o=t,u=r,c=e,l?setTimeout(E(ar,i),0):i.curOp.focus=O(F(i)),h=function(e,t,n){var r,i;return null==(r=(r=e.getOption("configureMouse"))?r(e,t,n):{}).unit&&(i=b?n.shiftKey&&n.metaKey:n.altKey,r.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"),null!=r.extend&&!e.doc.extend||(r.extend=e.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=y?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(y?n.altKey:n.ctrlKey)),r}(i,u,c),f=i.doc.sel,(i.options.dragDrop&&We&&!i.isReadOnly()&&"single"==u&&-1<(u=f.contains(o))&&(tt((u=f.ranges[u]).from(),o)<0||0<o.xRel)&&(0<tt(u.to(),o)||o.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=Pr(e,(function(t){a&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ur(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",h),ye(i.scroller,"drop",u),o||(Le(t),r.addNew||Ti(e.doc,n,null,null,r.extend),a&&!d||l&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||10<=Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)},h=function(){return o=!0};a&&(i.scroller.draggable=!0),(e.state.draggingText=u).copy=!r.moveOnDrag,me(i.wrapper.ownerDocument,"mouseup",u),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",h),me(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}:function(e,t,n,r){l&&ur(e);var i=e.display,o=e.doc;Le(t);var s,a,u=o.sel,c=u.ranges;r.addNew&&!r.extend?(a=o.sel.contains(n),s=-1<a?c[a]:new ri(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==r.unit?(r.addNew||(s=new ri(n,n)),n=qn(e,t,!0,!0),a=-1):(t=Yo(e,n,r.unit),s=r.extend?ki(s,t.anchor,t.head,r.extend):t),r.addNew?-1==a?(a=c.length,Di(o,ii(e,c.concat([s]),a),{scroll:!1,origin:"*mouse"})):1<c.length&&c[a].empty()&&"char"==r.unit&&!r.extend?(Di(o,ii(e,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ni(o,a,s,V):(Di(o,new ni([s],a=0),V),u=o.sel);var h=n;var d=i.wrapper.getBoundingClientRect(),f=0;function p(t){e.state.selectingText=!1,f=1/0,t&&(Le(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",g),ye(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var g=Pr(e,(function(t){(0!==t.buttons&&Oe(t)?function t(l){var c,p,g=++f,m=qn(e,l,!0,"rectangle"==r.unit);m&&(0!=tt(m,h)?(e.curOp.focus=O(F(e)),function(t){if(0!=tt(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=I(Xe(o,n.line).text,n.ch,l),d=I(Xe(o,t.line).text,t.ch,l),f=Math.min(c,d),p=Math.max(c,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Xe(o,g).text,y=j(v,f,l);f==p?i.push(new ri(et(g,y),et(g,y))):v.length>y&&i.push(new ri(et(g,y),et(g,j(v,p,l))))}i.length||i.push(new ri(n,n)),Di(o,ii(e,u.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b;c=s,d=Yo(e,t,r.unit),t=c.anchor,t=0<tt(d.anchor,t)?(b=d.head,ot(c.from(),d.anchor)):(b=d.anchor,it(c.to(),d.head)),(c=u.ranges.slice(0))[a]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;if(!(i=pe(i)))return t;var o=se(i,n.ch,n.sticky),l=i[o];if(l.from!=n.ch&&l.to!=n.ch)return t;var s=o+(l.from==n.ch==(1!=l.level)?0:1);return 0==s||s==i.length?t:(l=r.line!=n.line?0<(r.line-n.line)*("ltr"==e.doc.direction?1:-1):(o=(e=se(i,r.ch,r.sticky))-o||(r.ch-n.ch)*(1==l.level?-1:1),e==s-1||e==s?o<0:0<o),i=(o=l==(1==(e=i[s+(l?-1:0)]).level))?e.from:e.to,s=o?"after":"before",n.ch==i&&n.sticky==s?t:new ri(new et(n.line,i,s),r))}(e,new ri(st(o,t),b)),Di(o,ii(e,c,a),V)}}(m),c=pr(i,o),(m.line>=c.to||m.line<c.from)&&setTimeout(Pr(e,(function(){f==g&&t(l)})),150)):(p=l.clientY<d.top?-20:l.clientY>d.bottom?20:0)&&setTimeout(Pr(e,(function(){f==g&&(i.scroller.scrollTop+=p,t(l))})),50))}:p)(t)})),m=Pr(e,p);e.state.selectingText=m,me(i.wrapper.ownerDocument,"mousemove",g),me(i.wrapper.ownerDocument,"mouseup",m)})(i,c,o,h)):Ne(e)==g.scroller&&Le(e):2==n?(t&&Ti(p.doc,t),setTimeout((function(){return g.input.focus()}),20)):3==n&&(x?p.display.input.onContextMenu(e):ur(p)))))}function Yo(e,t,n){return"char"==n?new ri(t,t):"word"==n?e.findWordAt(t):"line"==n?new ri(et(t.line,0),st(e.doc,et(t.line+1,0))):(n=n(e,t),new ri(n.from,n.to))}function $o(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Le(t);var l=e.display;if(o>(r=l.lineDiv.getBoundingClientRect()).bottom||!Ce(e,n))return Te(t);o-=r.top-l.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var a=l.gutters.childNodes[s];if(a&&a.getBoundingClientRect().right>=i)return be(e,n,e,Ze(e.doc,o),e.display.gutterSpecs[s].className,t),Te(t)}}function _o(e,t){return $o(e,t,"gutterClick",!0)}function qo(e,t){var n,r;hn(e.display,t)||(r=t,Ce(n=e,"gutterContextMenu")&&$o(n,r,"gutterContextMenu",!1))||we(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Zo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Nn(e)}jo.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Qo={toString:function(){return"CodeMirror.Init"}},Jo={},el={};function tl(e,t){var n=this;if(!(this instanceof tl))return new tl(e,t);this.options=t=t?z(t):{},z(Jo,t,!1);var r,i=t.value,o=("string"==typeof i?i=new so(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i,new tl.inputStyles[t.inputStyle](this)),u=(Zo((e=this.display=new Zr(e,i,o,t)).wrapper.CodeMirror=this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ar(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 R,keySeq:null,specialChars:null},t.autofocus&&!v&&e.input.focus(),l&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),this),c=u.display;me(c.scroller,"mousedown",Pr(u,Xo)),me(c.scroller,"dblclick",l&&s<11?Pr(u,(function(e){var t;we(u,e)||!(t=qn(u,e))||_o(u,e)||hn(u.display,e)||(Le(e),e=u.findWordAt(t),Ti(u.doc,e.anchor,e.head))})):function(e){return we(u,e)||Le(e)}),me(c.scroller,"contextmenu",(function(e){return qo(u,e)})),me(c.input.getField(),"contextmenu",(function(e){c.scroller.contains(e.target)||qo(u,e)}));var f,p={end:0};function g(){c.activeTouch&&(f=setTimeout((function(){return c.activeTouch=null}),1e3),(p=c.activeTouch).end=+new Date)}function m(e,t){if(null==t.left)return 1;var n=t.left-e.left;return 400<n*n+(t=t.top-e.top)*t}for(r in me(c.scroller,"touchstart",(function(e){var t;we(u,e)||function(e){if(1==e.touches.length)return(e=e.touches[0]).radiusX<=1&&e.radiusY<=1}(e)||_o(u,e)||(c.input.ensurePolled(),clearTimeout(f),t=+new Date,c.activeTouch={start:t,moved:!1,prev:t-p.end<=300?p:null},1==e.touches.length&&(c.activeTouch.left=e.touches[0].pageX,c.activeTouch.top=e.touches[0].pageY))})),me(c.scroller,"touchmove",(function(){c.activeTouch&&(c.activeTouch.moved=!0)})),me(c.scroller,"touchend",(function(e){var t,n=c.activeTouch;n&&!hn(c,e)&&null!=n.left&&!n.moved&&new Date-n.start<300&&(t=u.coordsChar(c.activeTouch,"page"),n=!n.prev||m(n,n.prev)?new ri(t,t):!n.prev.prev||m(n,n.prev.prev)?u.findWordAt(t):new ri(et(t.line,0),st(u.doc,et(t.line+1,0))),u.setSelection(n.anchor,n.head),u.focus(),Le(e)),g()})),me(c.scroller,"touchcancel",g),me(c.scroller,"scroll",(function(){c.scroller.clientHeight&&(xr(u,c.scroller.scrollTop),Sr(u,c.scroller.scrollLeft,!0),be(u,"scroll",u))})),me(c.scroller,"mousewheel",(function(e){return ti(u,e)})),me(c.scroller,"DOMMouseScroll",(function(e){return ti(u,e)})),me(c.wrapper,"scroll",(function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0})),c.dragFunctions={enter:function(e){we(u,e)||Me(e)},over:function(e){var t,n;we(u,e)||((n=qn(t=u,n=e))&&(or(t,n,n=document.createDocumentFragment()),t.display.dragCursor||(t.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,n)),Me(e))},start:function(e){var t,n;t=u,l&&(!t.state.draggingText||+new Date-uo<100)?Me(e):we(t,e)||hn(t.display,e)||(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d&&((n=T("img",null,null,"position: fixed; left: 0; top: 0;")).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)))},drop:Pr(u,co),leave:function(e){we(u,e)||ho(u)}},o=c.input.getField(),me(o,"keyup",(function(e){return Vo.call(u,e)})),me(o,"keydown",Pr(u,Uo)),me(o,"keypress",Pr(u,Ko)),me(o,"focus",(function(e){return cr(u,e)})),me(o,"blur",(function(e){return hr(u,e)})),function(){var e;po||(me(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,fo(go)}),100))})),me(window,"blur",(function(){return fo(hr)})),po=!0)}(),Wr(this),this.curOp.forceUpdate=!0,gi(this,i),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&cr(n)}),20):hr(this),el)el.hasOwnProperty(r)&&el[r](this,t[r],Qo);Yr(this),t.finishInit&&t.finishInit(this);for(var y=0;y<nl.length;++y)nl[y](this);Hr(this),a&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(e.lineDiv).textRendering&&(e.lineDiv.style.textRendering="auto")}tl.defaults=Jo,tl.optionHandlers=el;var nl=[];function rl(e,t,n,r){var i,o=e.doc,l=("smart"==(n=null==n?"add":n)&&(o.mode.indent?i=ft(e,t).state:n="prev"),e.options.tabSize),s=Xe(o,t),a=I(s.text,null,l),u=(s.stateAfter&&(s.stateAfter=null),s.text.match(/^\s*/)[0]);if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==G||150<c)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?I(Xe(o,t-1).text,null,l):0:"add"==n?c=a+e.options.indentUnit:"subtract"==n?c=a-e.options.indentUnit:"number"==typeof n&&(c=a+n);var c=Math.max(0,c),h="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/l);f;--f)d+=l,h+="\t";if(d<c&&(h+=Y(c-d)),h!=u)return Xi(o,h,et(t,0),et(t,u.length),"+input"),!(s.stateAfter=null);for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){g=et(t,u.length),Ni(o,p,new ri(g,g));break}}}tl.defineInitHook=function(e){return nl.push(e)};var il,ol,ll,sl,al,ul=null;function cl(e){ul=e}function hl(e,t,n,r,i){var o=e.doc,l=(e.display.shift=!1,r=r||o.sel,+new Date-200),s="paste"==i||e.state.pasteIncoming>l,a=He(t),u=null;if(s&&1<r.ranges.length)if(ul&&ul.text.join("\n")==t){if(r.ranges.length%ul.text.length==0){u=[];for(var c=0;c<ul.text.length;c++)u.push(o.splitLines(ul.text[c]))}}else a.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=_(a,(function(e){return[e]})));for(var h=e.curOp.updateInput,d=r.ranges.length-1;0<=d;d--){var f=(g=r.ranges[d]).from(),p=g.to(),g=(g.empty()&&(n&&0<n?f=et(f.line,f.ch-n):e.state.overwrite&&!s?p=et(p.line,Math.min(Xe(o,p.line).text.length,p.ch+$(a).length)):s&&ul&&ul.lineWise&&ul.text.join("\n")==a.join("\n")&&(f=p=et(f.line,0))),{from:f,to:p,text:u?u[d%u.length]:a,origin:i||(s?"paste":e.state.cutIncoming>l?"cut":"+input")});Gi(e.doc,g),en(e,"inputRead",e,g)}t&&!s&&fl(e,t),vr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dl(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");return n&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Fr(t,(function(){return hl(t,n,0,null,"paste")})),1)}function fl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0<=r;r--){var i=n.ranges[r];if(!(100<i.head.ch||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(-1<t.indexOf(o.electricChars.charAt(s))){l=rl(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=rl(e,i.head.line,"smart"));l&&en(e,"electricInput",e,i.head.line)}}}function pl(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i={anchor:et(i=e.doc.sel.ranges[r].head.line,0),head:et(i+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function gl(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function ml(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function vl(e,t,n,r,i){var o=t,l=n,s=Xe(e,t.line),a=i&&"rtl"==e.direction?-n:n;function u(o){var l;if(null==(l="codepoint"==r?(l=s.text.charCodeAt(t.ch+(0<n?0:-1)),isNaN(l)?null:(l=0<n?55296<=l&&l<56320:56320<=l&&l<57343,new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(l?2:1))),-n))):i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return Oo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(0<r?l.to>n.ch:l.from<n.ch))return Oo(t,n,r);function s(e,n){return No(t,e instanceof et?e.ch:e,n)}function a(n){return e.options.lineWrapping?(u=u||xn(e,t),Bn(e,t,u,n)):{begin:0,end:t.text.length}}var u,c=a("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==l.level){var h=1==l.level==r<0,d=s(n,h?1:-1);if(null!=d&&(h?d<=l.to&&d<=c.end:d>=l.from&&d>=c.begin))return new et(n.line,d,h?"before":"after")}function f(e,t,r){for(var o=function(e,t){return t?new et(n.line,s(e,1),"before"):new et(n.line,e,"after")};0<=e&&e<i.length;e+=t){var l=i[e],a=0<t==(1!=l.level),u=a?r.begin:s(r.end,-1);if(l.from<=u&&u<l.to)return o(u,a);if(u=a?l.from:s(l.to,-1),r.begin<=u&&u<r.end)return o(u,a)}}return(l=f(o+r,r,c))?l:null==(d=0<r?c.end:s(c.begin,-1))||0<r&&d==t.text.length||!(l=f(0<r?0:i.length-1,r,a(d)))?null:l}(e.cm,s,t,n):Oo(s,t,n))){if(o||(o=t.line+a)<e.first||o>=e.first+e.size||(t=new et(o,t.ch,t.sticky),!(s=Xe(e,o))))return;t=Ao(i,e.cm,s,t.line,a)}else t=l;return 1}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var p=ee(p=s.text.charAt(t.ch)||"\n",d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||p||(p="s"),c&&c!=p){n<0&&(n=1,u(),t.sticky="after");break}if(p&&(c=p),0<n&&!u(!f))break}return nt(o,l=zi(e,t,o,l,!0))&&(l.hitSide=!0),l}function yl(e,t,n,r){var i,o,l,s=e.doc,a=t.left;for("page"==r?(i=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||s(e).documentElement.clientHeight),i=Math.max(i-.5*Kn(e.display),3),o=(0<n?t.bottom:t.top)+n*i):"line"==r&&(o=0<n?t.bottom+3:t.top-3);(l=In(e,a,o)).outside;){if(n<0?o<=0:o>=s.height){l.hitSide=!0;break}o+=5*n}return l}function bl(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function wl(e,t){if(!(n=wn(e,t.line))||n.hidden)return null;var n=yn(n,r=Xe(e.doc,t.line),t.line),r=pe(r,e.doc.direction);e="left";return(r=(r&&(e=se(r,t.ch)%2?"right":"left"),kn(n.map,t.ch,e))).offset="right"==r.collapse?r.end:r.start,r}function xl(e,t){return t&&(e.bad=!0),e}function Cl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return xl(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){if((l=e.display.view[i]).node==r){var o=l,l=t,s=n,a=o.text.firstChild,u=!1;if(!l||!N(a,l))return xl(et(qe(o.line),0),!0);if(l==a&&(u=!0,l=a.childNodes[s],s=0,!l))return xl(et(qe(c=o.rest?$(o.rest):o.line),c.text.length),u);var c=3==l.nodeType?l:null,h=l;for(c||1!=l.childNodes.length||3!=l.firstChild.nodeType||(c=l.firstChild,s=s&&c.nodeValue.length);h.parentNode!=a;)h=h.parentNode;var d=o.measure,f=d.maps;function b(e,t,n){for(var r=-1;r<(f?f.length:0);r++)for(var i=r<0?d.map:f[r],l=0;l<i.length;l+=3){var s,a,u=i[l+2];if(u==e||u==t)return s=qe(r<0?o.line:o.rest[r]),a=i[l]+n,et(s,a=n<0||u!=e?i[l+(n?1:0)]:a)}}var p=b(c,h,s);if(p)return xl(p,u);for(var g=h.nextSibling,m=c?c.nodeValue.length-s:0;g;g=g.nextSibling){if(p=b(g,g.firstChild,0))return xl(et(p.line,p.ch-m),u);m+=g.textContent.length}for(var v=h.previousSibling,y=s;v;v=v.previousSibling){if(p=b(v,v.firstChild,-1))return xl(et(p.line,p.ch+y),u);y+=v.textContent.length}return}}}function Sl(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null,this.resetting=!1}function Ll(e,t,n,r){il.defaults[e]=t,n&&(ol[e]=r?function(e,t,r){r!=Qo&&n(e,t,r)}:n)}bl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return 1;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}}function l(e){if(o(e)&&!we(r,e)){if(r.somethingSelected())cl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=pl(r);cl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,U),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var l=ul.text.join("\n");if(e.clipboardData.setData("Text",l),e.clipboardData.getData("Text")==l)return void e.preventDefault()}var s=ml(),a=(gl(l=s.firstChild),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=ul.text.join("\n"),O(i.ownerDocument));H(l),setTimeout((function(){r.display.lineSpace.removeChild(s),a.focus(),a==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,gl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",(function(e){!o(e)||we(r,e)||dl(e,r)||s<=11&&setTimeout(Pr(r,(function(){return t.updateFromDOM()})),20)})),me(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),me(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),me(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),me(i,"touchstart",(function(){return n.forceCompositionEnd()})),me(i,"input",(function(){t.composing||t.readFromDOMSoon()})),me(i,"copy",l),me(i,"cut",l)},bl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},bl.prototype.prepareSelection=function(){var e=ir(this.cm,!1);return e.focus=O(this.div.ownerDocument)==this.div,e},bl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},bl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=(i=t.doc.sel.primary()).from(),i=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Cl(t,e.anchorNode,e.anchorOffset),l=Cl(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=tt(ot(o,l),r)||0!=tt(it(o,l),i)){o=t.display.view,l=r.line>=t.display.viewFrom&&wl(t,r)||{node:o[0].measure.map[2],offset:0};if((r=i.line<t.display.viewTo&&wl(t,i))||(r={node:(o=(i=o[o.length-1].measure).maps?i.maps[i.maps.length-1]:i.map)[o.length-1],offset:o[o.length-2]-o[o.length-3]}),l&&r){var s;i=e.rangeCount&&e.getRangeAt(0);try{s=W(l.node,l.offset,r.offset,r.node)}catch(e){}s&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),s.collapsed||(e.removeAllRanges(),e.addRange(s))):(e.removeAllRanges(),e.addRange(s)),i&&null==e.anchorNode?e.addRange(i):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},bl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},bl.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},bl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},bl.prototype.selectionInEditor=function(){var e=this.getSelection();return!!e.rangeCount&&(e=e.getRangeAt(0).commonAncestorContainer,N(this.div,e))},bl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&O(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},bl.prototype.blur=function(){this.div.blur()},bl.prototype.getField=function(){return this.div},bl.prototype.supportsTouch=function(){return!0},bl.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Fr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},bl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},bl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e,t,n=this.getSelection(),r=this.cm;if(m&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return 1}(n.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();this.composing||(this.rememberSelection(),e=Cl(r,n.anchorNode,n.anchorOffset),t=Cl(r,n.focusNode,n.focusOffset),e&&t&&Fr(r,(function(){Di(r.doc,oi(e,t),U),(e.bad||t.bad)&&(r.curOp.selectionChanged=!0)})))}},bl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t=this.cm,n=t.display,r=(i=t.doc.sel.primary()).from(),i=i.to();if(0==r.ch&&r.line>t.firstLine()&&(r=et(r.line-1,Xe(t.doc,r.line-1).length)),i.ch==Xe(t.doc,i.line).text.length&&i.line<t.lastLine()&&(i=et(i.line+1,0)),r.line<n.viewFrom||i.line>n.viewTo-1)return!1;var o,l=r.line==n.viewFrom||0==(l=Zn(t,r.line))?(e=qe(n.view[0].line),n.view[0].node):(e=qe(n.view[l].line),n.view[l-1].node.nextSibling);n=(i=Zn(t,i.line))==n.view.length-1?(o=n.viewTo-1,n.lineDiv.lastChild):(o=qe(n.view[i+1].line)-1,n.view[i+1].node.previousSibling);if(!l)return!1;for(var s=t.doc.splitLines(function(e,t,n,r,i){var o="",l=!1,s=e.doc.lineSeparator(),a=!1;function u(){l&&(o+=s,a&&(o+=s),l=a=!1)}function c(e){e&&(u(),o+=e)}for(;function t(n){if(1==n.nodeType){var o=n.getAttribute("cm-text");if(o)c(o);else if(o=n.getAttribute("cm-marker"))(o=e.findMarks(et(r,0),et(i+1,0),(d=+o,function(e){return e.id==d}))).length&&(o=o[0].find(0))&&c(Ye(e.doc,o.from,o.to).join(s));else if("false"!=n.getAttribute("contenteditable")&&(o=/^(pre|div|p|li|table|br)$/i.test(n.nodeName),/^br$/i.test(n.nodeName)||0!=n.textContent.length)){o&&u();for(var h=0;h<n.childNodes.length;h++)t(n.childNodes[h]);/^(pre|p)$/i.test(n.nodeName)&&(a=!0),o&&(l=!0)}}else 3==n.nodeType&&c(n.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var d}(t),t!=n;)t=t.nextSibling,a=!1;return o}(t,l,n,e,o)),a=Ye(t.doc,et(e,0),et(o,Xe(t.doc,o).text.length));1<s.length&&1<a.length;)if($(s)==$(a))s.pop(),a.pop(),o--;else{if(s[0]!=a[0])break;s.shift(),a.shift(),e++}for(var u=0,c=0,h=s[0],d=a[0],f=Math.min(h.length,d.length);u<f&&h.charCodeAt(u)==d.charCodeAt(u);)++u;for(var p=$(s),g=$(a),m=Math.min(p.length-(1==s.length?u:0),g.length-(1==a.length?u:0));c<m&&p.charCodeAt(p.length-c-1)==g.charCodeAt(g.length-c-1);)++c;if(1==s.length&&1==a.length&&e==r.line)for(;u&&u>r.ch&&p.charCodeAt(p.length-c-1)==g.charCodeAt(g.length-c-1);)u--,c++;return s[s.length-1]=p.slice(0,p.length-c).replace(/^\u200b+/,""),s[0]=s[0].slice(u).replace(/\u200b+$/,""),i=et(e,u),l=et(o,a.length?$(a).length-c:0),1<s.length||s[0]||tt(i,l)?(Xi(t.doc,s,i,l,"+input"),!0):void 0},bl.prototype.ensurePolled=function(){this.forceCompositionEnd()},bl.prototype.reset=function(){this.forceCompositionEnd()},bl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},bl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},bl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Fr(this.cm,(function(){return Qn(e.cm)}))},bl.prototype.setUneditable=function(e){e.contentEditable="false"},bl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pr(this.cm,hl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},bl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},bl.prototype.onContextMenu=function(){},bl.prototype.resetPosition=function(){},bl.prototype.needsContentAttribute=!0,Sl.prototype.init=function(e){var t=this,n=this,r=this.cm,i=(this.createField(e),this.textarea);function o(e){if(!we(r,e)){if(r.somethingSelected())cl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=pl(r);cl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),me(i,"input",(function(){l&&9<=s&&t.hasSelection&&(t.hasSelection=null),n.poll()})),me(i,"paste",(function(e){we(r,e)||dl(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",(function(t){if(!hn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){hn(e,t)||Le(t)})),me(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Sl.prototype.createField=function(e){this.wrapper=ml(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;gl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sl.prototype.prepareSelection=function(){var e,t=this.cm,n=t.display,r=t.doc,i=ir(t);return t.options.moveInputWithCursor&&(t=Pn(t,r.sel.primary().head,"div"),r=n.wrapper.getBoundingClientRect(),e=n.lineDiv.getBoundingClientRect(),i.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,t.top+e.top-r.top)),i.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,t.left+e.left-r.left))),i},Sl.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sl.prototype.reset=function(e){var t,n;this.contextMenuPending||this.composing&&e||(t=this.cm,this.resetting=!0,t.somethingSelected()?(this.prevInput="",n=t.getSelection(),this.textarea.value=n,t.state.focused&&H(this.textarea),l&&9<=s&&(this.hasSelection=n)):e||(this.prevInput=this.textarea.value="",l&&9<=s&&(this.hasSelection=null)),this.resetting=!1)},Sl.prototype.getField=function(){return this.textarea},Sl.prototype.supportsTouch=function(){return!1},Sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||O(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Sl.prototype.blur=function(){this.textarea.blur()},Sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sl.prototype.receivedFocus=function(){this.slowPoll()},Sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Sl.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Sl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(l&&9<=s&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,i.length);a<u&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Fr(t,(function(){hl(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),1e3<i.length||-1<i.indexOf("\n")?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sl.prototype.onKeyPress=function(){l&&9<=s&&(this.hasSelection=null),this.fastPoll()},Sl.prototype.onContextMenu=function(e){var t,n,r,i,o=this,u=o.cm,c=u.display,d=o.textarea,f=(o.contextMenuPending&&o.contextMenuPending(),qn(u,e)),p=c.scroller.scrollTop;function g(){var e,t;null!=d.selectionStart&&(t=""+((e=u.somethingSelected())?d.value:""),d.value="⇚",d.value=t,o.prevInput=e?"":"",d.selectionStart=1,d.selectionEnd=t.length,c.selForContextMenu=u.doc.sel)}function m(){var e,r;o.contextMenuPending==m&&(o.contextMenuPending=!1,o.wrapper.style.cssText=n,d.style.cssText=t,l&&s<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=p),null!=d.selectionStart&&((!l||s<9)&&g(),e=0,r=function(){c.selForContextMenu==u.doc.sel&&0==d.selectionStart&&0<d.selectionEnd&&""==o.prevInput?Pr(u,Ri)(u):e++<10?c.detectingSelectAll=setTimeout(r,500):(c.selForContextMenu=null,c.input.reset())},c.detectingSelectAll=setTimeout(r,200)))}f&&!h&&(u.options.resetSelectionOnContextMenu&&-1==u.doc.sel.contains(f)&&Pr(u,Di)(u.doc,oi(f),U),t=d.style.cssText,n=o.wrapper.style.cssText,f=o.wrapper.offsetParent.getBoundingClientRect(),o.wrapper.style.cssText="position: static",d.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",a&&(r=d.ownerDocument.defaultView.scrollY),c.input.focus(),a&&d.ownerDocument.defaultView.scrollTo(null,r),c.input.reset(),u.somethingSelected()||(d.value=o.prevInput=" "),o.contextMenuPending=m,c.selForContextMenu=u.doc.sel,clearTimeout(c.detectingSelectAll),l&&9<=s&&g(),x?(Me(e),i=function(){ye(window,"mouseup",i),setTimeout(m,20)},me(window,"mouseup",i)):setTimeout(m,50))},Sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Sl.prototype.setUneditable=function(){},Sl.prototype.needsContentAttribute=!1,ol=(il=tl).optionHandlers,il.defineOption=Ll,il.Init=Qo,Ll("value","",(function(e,t){return e.setValue(t)}),!0),Ll("mode",null,(function(e,t){e.doc.modeOption=t,ci(e)}),!0),Ll("indentUnit",2,ci,!0),Ll("indentWithTabs",!1),Ll("smartIndent",!0),Ll("tabSize",4,(function(e){hi(e),Nn(e),Qn(e)}),!0),Ll("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;0<=i;i--)Xi(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),Ll("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Qo&&e.refresh()})),Ll("specialCharPlaceholder",(function(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}),(function(e){return e.refresh()}),!0),Ll("electricChars",!0),Ll("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),Ll("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),Ll("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),Ll("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),Ll("rtlMoveVisually",!i),Ll("wholeLineUpdateBefore",!0),Ll("theme","default",(function(e){Zo(e),qr(e)}),!0),Ll("keyMap","default",(function(e,t,n){t=To(t),(n=n!=Qo&&To(n))&&n.detach&&n.detach(e,t),t.attach&&t.attach(e,n||null)})),Ll("extraKeys",null),Ll("configureMouse",null),Ll("lineWrapping",!1,(function(e){e.options.lineWrapping?(A(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),_n(e),Qn(e),Nn(e),setTimeout((function(){return Mr(e)}),100)}),!0),Ll("gutters",[],(function(e,t){e.display.gutterSpecs=$r(t,e.options.lineNumbers),qr(e)}),!0),Ll("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Yn(e.display)+"px":"0",e.refresh()}),!0),Ll("coverGutterNextToScrollbar",!1,(function(e){return Mr(e)}),!0),Ll("scrollbarStyle","native",(function(e){Ar(e),Mr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),Ll("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=$r(e.options.gutters,t),qr(e)}),!0),Ll("firstLineNumber",1,qr,!0),Ll("lineNumberFormatter",(function(e){return e}),qr,!0),Ll("showCursorWhenSelecting",!1,rr,!0),Ll("resetSelectionOnContextMenu",!0),Ll("lineWiseCopyCut",!0),Ll("pasteLinesPerSelection",!0),Ll("selectionsMayTouch",!1),Ll("readOnly",!1,(function(e,t){"nocursor"==t&&(hr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),Ll("screenReaderLabel",null,(function(e,t){e.display.input.screenReaderLabelChanged(t=""===t?null:t)})),Ll("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),Ll("dragDrop",!0,(function(e,t,n){!t!=!(n&&n!=Qo)&&(n=e.display.dragFunctions,(t=t?me:ye)(e.display.scroller,"dragstart",n.start),t(e.display.scroller,"dragenter",n.enter),t(e.display.scroller,"dragover",n.over),t(e.display.scroller,"dragleave",n.leave),t(e.display.scroller,"drop",n.drop))})),Ll("allowDropFileTypes",null),Ll("cursorBlinkRate",530),Ll("cursorScrollMargin",0),Ll("cursorHeight",1,rr,!0),Ll("singleCursorHeightPerLine",!0,rr,!0),Ll("workTime",100),Ll("workDelay",100),Ll("flattenSpans",!0,hi,!0),Ll("addModeClass",!1,hi,!0),Ll("pollInterval",100),Ll("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),Ll("historyEventDelay",1250),Ll("viewportMargin",10,(function(e){return e.refresh()}),!0),Ll("maxHighlightLength",1e4,hi,!0),Ll("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),Ll("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),Ll("autofocus",null),Ll("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),Ll("phrases",null),sl=(ll=tl).optionHandlers,al=ll.helpers={},ll.prototype={constructor:ll,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,sl.hasOwnProperty(e)&&Pr(this,sl[e])(this,t,r),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](To(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Er((function(e,t){if((n=e.token?e:ll.getMode(this.options,e)).startState)throw new Error("Overlays may not be stateful.");for(var n,r=this.state.overlays,i=function(e){return e.priority},o=0,l=i(n={mode:n,modeSpec:e,opaque:t&&t.opaque,priority:t&&t.priority||0});o<r.length&&i(r[o])<=l;)o++;r.splice(o,0,n),this.state.modeGen++,Qn(this)})),removeOverlay:Er((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Qn(this)}})),indentLine:Er((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Qe(this.doc,e)&&rl(this,e,t,n)})),indentSelection:Er((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){if((o=t[r]).empty())o.head.line>n&&(rl(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&vr(this));else{for(var i=o.from(),o=o.to(),l=Math.max(n,i.line),s=(n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1,l);s<n;++s)rl(this,s,e);o=this.doc.sel.ranges,0==i.ch&&t.length==o.length&&0<o[r].from().ch&&Ni(this.doc,r,new ri(i,o[r].to()),U)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=dt(this,Xe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]<o)){t=n[2*l+2];break}r=1+l}}return(e=t?t.indexOf("overlay "):-1)<0?t:0==e?null:t.slice(0,e-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?ll.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!al.hasOwnProperty(t))return n;var r=al[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var l=r[i[t][o]];l&&n.push(l)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(var s=0;s<r._global.length;s++){var a=r._global[s];a.pred(i,this)&&-1==B(n,a.val)&&n.push(a.val)}return n},getStateAfter:function(e,t){var n=this.doc;return ft(this,(e=lt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Pn(this,e=null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Fn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return In(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,Ze(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r=!1,i="number"==typeof e?(i=this.doc.first+this.doc.size-1,e<this.doc.first?e=this.doc.first:i<e&&(e=i,r=!0),Xe(this.doc,e)):e;return Wn(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-Bt(i):0)},defaultTextHeight:function(){return Kn(this.display)},defaultCharWidth:function(){return jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,l,s=this.display,a=(e=Pn(this,st(this.doc,e))).bottom,u=e.left;t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r?a=e.top:"above"!=r&&"near"!=r||(l=Math.max(s.wrapper.clientHeight,this.doc.height),o=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth),("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),u+t.offsetWidth>o&&(u=o-t.offsetWidth)),t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(null!=(l=gr(r=this,l={left:u,top:a,right:u+t.offsetWidth,bottom:a+t.offsetHeight})).scrollTop&&xr(r,l.scrollTop),null!=l.scrollLeft&&Sr(r,l.scrollLeft))},triggerOnKeyDown:Er(Uo),triggerOnKeyPress:Er(Ko),triggerOnKeyUp:Vo,triggerOnMouseDown:Er(Xo),execCommand:function(e){if(Do.hasOwnProperty(e))return Do[e].call(null,this)},triggerElectric:Er((function(e){fl(this,e)})),findPosH:function(e,t,n,r){for(var i=1,o=(t<0&&(i=-1,t=-t),st(this.doc,e)),l=0;l<t&&!(o=vl(this.doc,o,i,n,r)).hitSide;++l);return o},moveH:Er((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?vl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),K)})),deleteH:Er((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Mo(this,(function(n){var i=vl(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){for(var i=1,o=r,l=(t<0&&(i=-1,t=-t),st(this.doc,e)),s=0;s<t;++s){var a=Pn(this,l,"div");if(null==o?o=a.left:a.left=o,(l=yl(this,a,i,n)).hitSide)break}return l},moveV:Er((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(l){if(o)return e<0?l.from():l.to();var s=Pn(n,l.head,"div"),a=(null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left),yl(n,s,e,t));return"page"==t&&l==r.sel.primary()&&mr(n,Fn(n,a,"div").top-s.top),a}),K),i.length)for(var l=0;l<r.sel.ranges.length;l++)r.sel.ranges[l].goalColumn=i[l]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){for(var i=this.getHelper(e,"wordChars"),o=("before"!=e.sticky&&r!=t.length||!n?++r:--n,t.charAt(n)),l=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};0<n&&l(t.charAt(n-1));)--n;for(;r<t.length&&l(t.charAt(r));)++r}return new ri(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||(((this.state.overwrite=!this.state.overwrite)?A:S)(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Er((function(e,t){yr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-gn(this)-this.display.barHeight,width:e.scrollWidth-gn(this)-this.display.barWidth,clientHeight:vn(this),clientWidth:mn(this)}},scrollIntoView:Er((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?(t=e,br(this),this.curOp.scrollToPos=t):wr(this,e.from,e.to,e.margin)})),setSize:Er((function(e,t){function n(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var r=this,i=(null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&Mn(this),this.display.viewFrom);this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Jn(r,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return Fr(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return Hr(this)},refresh:Er((function(){var e=this.display.cachedTextHeight;Qn(this),this.curOp.forceUpdate=!0,Nn(this),yr(this,this.doc.scrollLeft,this.doc.scrollTop),Kr(this.display),(null==e||.5<Math.abs(e-Kn(this.display))||this.options.lineWrapping)&&_n(this),be(this,"refresh",this)})),swapDoc:Er((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),gi(this,e),Nn(this),this.display.input.reset(),yr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,en(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Se(ll),ll.registerHelper=function(e,t,n){al.hasOwnProperty(e)||(al[e]=ll[e]={_global:[]}),al[e][t]=n},ll.registerGlobalHelper=function(e,t,n,r){ll.registerHelper(e,t,r),al[e]._global.push({pred:n,val:r})};var kl,Tl="iter insert remove copy getEditor constructor".split(" ");for(kl in so.prototype)so.prototype.hasOwnProperty(kl)&&B(Tl,kl)<0&&(tl.prototype[kl]=function(e){return function(){return e.apply(this.doc,arguments)}}(so.prototype[kl]));return Se(so),tl.inputStyles={textarea:Sl,contenteditable:bl},tl.defineMode=function(e){tl.defaults.mode||"null"==e||(tl.defaults.mode=e),function(e,t){2<arguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}.apply(this,arguments)},tl.defineMIME=function(e,t){Ie[e]=t},tl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),tl.defineMIME("text/plain","null"),tl.defineExtension=function(e,t){tl.prototype[e]=t},tl.defineDocExtension=function(e,t){so.prototype[e]=t},tl.fromTextArea=function(e,t){var n;function r(){e.value=s.getValue()}if((t=t?z(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus&&(n=O(e.ownerDocument),t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body),e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form,o=i.submit;try{var l=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=l}}catch(n){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var s=tl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},(e=tl).off=ye,e.on=me,e.wheelEventPixels=function(e){return(e=ei(e)).x*=Jr,e.y*=Jr,e},e.Doc=so,e.splitLines=He,e.countColumn=I,e.findColumn=j,e.isWordChar=J,e.Pass=G,e.signal=be,e.Line=Vt,e.changeEnd=li,e.scrollbarModel=Or,e.Pos=et,e.cmpPos=tt,e.modes=ze,e.mimeModes=Ie,e.resolveMode=Re,e.getMode=Be,e.modeExtensions=Ge,e.extendMode=function(e,t){z(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})},e.copyState=Ue,e.startState=Ke,e.innerMode=Ve,e.commands=Do,e.keyMap=wo,e.keyName=ko,e.isModifierKey=So,e.lookupKey=Co,e.normalizeKeyMap=function(e){var t,n,r={};for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!/^(name|fallthrough|(de|at)tach)$/.test(t))if("..."==i)delete e[t];else{for(var o=_(t.split(" "),xo),l=0;l<o.length;l++){var s=void 0,a=l==o.length-1?(s=o.join(" "),i):(s=o.slice(0,l+1).join(" "),"..."),u=r[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else r[s]=a}delete e[t]}}for(n in r)e[n]=r[n];return e},e.StringStream=je,e.SharedTextMarker=io,e.TextMarker=to,e.LineWidget=Ji,e.e_preventDefault=Le,e.e_stopPropagation=ke,e.e_stop=Me,e.addClass=A,e.contains=N,e.rmClass=S,e.keyNames=mo,tl.version="5.65.12",tl})),function(e){"function"==typeof e.define&&e.define("core",["codemirror.js"],(function(t){e.CodeMirror=t}))}(this);
|