diff --git a/gollum.gemspec b/gollum.gemspec index 5b0f6688..f1127bfe 100644 --- a/gollum.gemspec +++ b/gollum.gemspec @@ -6,7 +6,7 @@ Gem::Specification.new do |s| s.name = 'gollum' s.version = '5.1.2' - s.date = '2020-12-01' + s.date = '2021-01-03' s.license = 'MIT' s.summary = 'A simple, Git-powered wiki.' @@ -68,15 +68,15 @@ Gem::Specification.new do |s| lib/gollum/app.rb lib/gollum/assets.rb lib/gollum/helpers.rb - lib/gollum/public/assets/.sprockets-manifest-459226ba5fc211b78ba9a3aa6ebde96c.json + lib/gollum/public/assets/.sprockets-manifest-35882cacf71c40928e0c2dc9b8acf8fe.json + lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css + lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css.gz lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js.gz - lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css - lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css.gz lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz - lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js - lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js.gz + lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js + lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js.gz lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz lib/gollum/public/gollum/javascript/HOWTO_UPDATE_ACE.md diff --git a/lib/gollum/public/assets/.sprockets-manifest-35882cacf71c40928e0c2dc9b8acf8fe.json b/lib/gollum/public/assets/.sprockets-manifest-35882cacf71c40928e0c2dc9b8acf8fe.json new file mode 100644 index 00000000..35d5dee2 --- /dev/null +++ b/lib/gollum/public/assets/.sprockets-manifest-35882cacf71c40928e0c2dc9b8acf8fe.json @@ -0,0 +1 @@ +{"files":{"app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js":{"logical_path":"app.js","mtime":"2021-01-03T19:24:22+05:00","size":136032,"digest":"6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd","integrity":"sha256-bpJeOKEqQMT6ngQAzIdOD0+Xtm/euQoUTepSfbtUT70="},"editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js":{"logical_path":"editor.js","mtime":"2020-12-30T18:08:26+05:00","size":747276,"digest":"b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08","integrity":"sha256-tiG/4suII1Fvs6lsMuggAbKX9nVBF7R72tblnbhanQg="},"app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css":{"logical_path":"app.css","mtime":"2021-01-03T19:58:10+05:00","size":298142,"digest":"4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5","integrity":"sha256-QhXlgAKkPEsunw98qgWoHHwJ0iqRjG/kDNjkI9sxELU="},"criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css":{"logical_path":"criticmarkup.css","mtime":"2020-12-30T18:08:26+05:00","size":646,"digest":"31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4","integrity":"sha256-Ma5dMoK7uOe3w8mRfp+2jjMVprSnXabOxI0huIRpBcQ="},"print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css":{"logical_path":"print.css","mtime":"2020-12-30T18:08:26+05:00","size":75,"digest":"512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb","integrity":"sha256-USSYw2i+DT+xuhBd+oQomuSDgOyfy++Ui9TiOwsJW/s="}},"assets":{"app.js":"app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js","editor.js":"editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js","app.css":"app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css","criticmarkup.css":"criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css","print.css":"print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css"}} \ No newline at end of file diff --git a/lib/gollum/public/assets/.sprockets-manifest-459226ba5fc211b78ba9a3aa6ebde96c.json b/lib/gollum/public/assets/.sprockets-manifest-459226ba5fc211b78ba9a3aa6ebde96c.json deleted file mode 100644 index 39380d57..00000000 --- a/lib/gollum/public/assets/.sprockets-manifest-459226ba5fc211b78ba9a3aa6ebde96c.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js":{"logical_path":"app.js","mtime":"2020-08-03T18:13:54+02:00","size":136032,"digest":"6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd","integrity":"sha256-bpJeOKEqQMT6ngQAzIdOD0+Xtm/euQoUTepSfbtUT70="},"editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js":{"logical_path":"editor.js","mtime":"2020-08-03T18:13:54+02:00","size":747273,"digest":"b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708","integrity":"sha256-ssEPIu9soeEglWotEf9MoZrETX5yQPXMQ+yUkYTYtwg="},"app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css":{"logical_path":"app.css","mtime":"2020-03-30T11:12:22+02:00","size":298111,"digest":"b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7","integrity":"sha256-sgXlk6MPHMAFTi6e2fyK82WNjvSmK5cIwg8gRWDe77c="},"criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css":{"logical_path":"criticmarkup.css","mtime":"2020-03-29T22:28:51+02:00","size":646,"digest":"31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4","integrity":"sha256-Ma5dMoK7uOe3w8mRfp+2jjMVprSnXabOxI0huIRpBcQ="},"print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css":{"logical_path":"print.css","mtime":"2020-03-30T11:12:22+02:00","size":75,"digest":"512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb","integrity":"sha256-USSYw2i+DT+xuhBd+oQomuSDgOyfy++Ui9TiOwsJW/s="}},"assets":{"app.js":"app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js","editor.js":"editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js","app.css":"app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css","criticmarkup.css":"criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css","print.css":"print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css"}} \ No newline at end of file diff --git a/lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css b/lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css similarity index 99% rename from lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css rename to lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css index 6f2ff2a0..3798c1b7 100644 --- a/lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css +++ b/lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css @@ -18,4 +18,4 @@ * http://primer.github.io * * Released under MIT license. Copyright (c) 2019 GitHub Inc. -*/@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.h000-mktg,.h00-mktg,.h0-mktg,.h1-mktg,.h2-mktg,.h3-mktg,.h4-mktg,.h5-mktg,.h6-mktg,.lead-mktg{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:500}.h000-mktg{font-size:48px !important}@media (min-width: 768px){.h000-mktg{font-size:64px !important}}.h00-mktg{font-size:40px !important}@media (min-width: 768px){.h00-mktg{font-size:48px !important}}.h0-mktg{font-size:32px !important}@media (min-width: 768px){.h0-mktg{font-size:40px !important}}.h1-mktg{font-size:26px !important}@media (min-width: 768px){.h1-mktg{font-size:32px !important}}.h2-mktg{font-size:22px !important}@media (min-width: 768px){.h2-mktg{font-size:24px !important}}.h3-mktg{font-size:18px !important}@media (min-width: 768px){.h3-mktg{font-size:20px !important}}.h4-mktg{font-size:16px !important}.h5-mktg{font-size:14px !important}.h6-mktg{font-size:12px !important}.lead-mktg{font-size:20px;font-weight:400}.pullquote{padding-top:0;padding-bottom:0;padding-left:8px;margin-bottom:24px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:16px;line-height:1.4;color:#586069;border-left:3px solid #e1e4e8}@media (min-width: 768px){.pullquote{padding-left:12px;margin-bottom:32px;margin-left:-15px;font-size:18px;line-height:1.5}}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.btn-mktg{display:inline-block;padding:16px 24px;font-size:14px;font-weight:500;color:#fff;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#1074e7;border:1px solid #1074e7;border-radius:3px;transition:.2s;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-mktg:hover{text-decoration:none;background-color:#0366d6;border-color:#0366d6}.btn-mktg:focus{outline:0;box-shadow:0 0 0 0.2em rgba(3,102,214,0.3)}.btn-mktg:disabled,.btn-mktg.disabled{pointer-events:none;cursor:default;opacity:0.65}.btn-primary-mktg{background-color:#2ebc4f;border-color:#2ebc4f}.btn-primary-mktg:hover{background-color:#28a745;border-color:#28a745}.btn-primary-mktg:focus{box-shadow:0 0 0 0.2em rgba(40,167,69,0.3)}.btn-large-mktg{padding:20px 32px;font-size:16px}.btn-outline-mktg{color:#1074e7;background-color:rgba(255,255,255,0);border-color:rgba(16,116,231,0.5)}.btn-outline-mktg:hover{color:#0366d6;text-decoration:none;background-color:rgba(255,255,255,0);border-color:#1074e7}.btn-transparent{color:#fff;background-color:transparent;background-image:none;border:1px solid rgba(255,255,255,0.5)}.btn-transparent:hover,.btn-transparent:active{color:#2f363d;background-color:#fff;background-image:none;border-color:#fff}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.grayscale{filter:grayscale(100%)}.top-0{top:0 !important}.right-0{right:0 !important}.bottom-0{bottom:0 !important}.left-0{left:0 !important}.top-n0{top:0 !important}.right-n0{right:0 !important}.bottom-n0{bottom:0 !important}.left-n0{left:0 !important}.top-1{top:4px !important}.right-1{right:4px !important}.bottom-1{bottom:4px !important}.left-1{left:4px !important}.top-n1{top:-4px !important}.right-n1{right:-4px !important}.bottom-n1{bottom:-4px !important}.left-n1{left:-4px !important}.top-2{top:8px !important}.right-2{right:8px !important}.bottom-2{bottom:8px !important}.left-2{left:8px !important}.top-n2{top:-8px !important}.right-n2{right:-8px !important}.bottom-n2{bottom:-8px !important}.left-n2{left:-8px !important}.top-3{top:16px !important}.right-3{right:16px !important}.bottom-3{bottom:16px !important}.left-3{left:16px !important}.top-n3{top:-16px !important}.right-n3{right:-16px !important}.bottom-n3{bottom:-16px !important}.left-n3{left:-16px !important}.top-4{top:24px !important}.right-4{right:24px !important}.bottom-4{bottom:24px !important}.left-4{left:24px !important}.top-n4{top:-24px !important}.right-n4{right:-24px !important}.bottom-n4{bottom:-24px !important}.left-n4{left:-24px !important}.top-5{top:32px !important}.right-5{right:32px !important}.bottom-5{bottom:32px !important}.left-5{left:32px !important}.top-n5{top:-32px !important}.right-n5{right:-32px !important}.bottom-n5{bottom:-32px !important}.left-n5{left:-32px !important}.top-6{top:40px !important}.right-6{right:40px !important}.bottom-6{bottom:40px !important}.left-6{left:40px !important}.top-n6{top:-40px !important}.right-n6{right:-40px !important}.bottom-n6{bottom:-40px !important}.left-n6{left:-40px !important}.top-7{top:48px !important}.right-7{right:48px !important}.bottom-7{bottom:48px !important}.left-7{left:48px !important}.top-n7{top:-48px !important}.right-n7{right:-48px !important}.bottom-n7{bottom:-48px !important}.left-n7{left:-48px !important}.top-8{top:64px !important}.right-8{right:64px !important}.bottom-8{bottom:64px !important}.left-8{left:64px !important}.top-n8{top:-64px !important}.right-n8{right:-64px !important}.bottom-n8{bottom:-64px !important}.left-n8{left:-64px !important}.top-9{top:80px !important}.right-9{right:80px !important}.bottom-9{bottom:80px !important}.left-9{left:80px !important}.top-n9{top:-80px !important}.right-n9{right:-80px !important}.bottom-n9{bottom:-80px !important}.left-n9{left:-80px !important}.top-10{top:96px !important}.right-10{right:96px !important}.bottom-10{bottom:96px !important}.left-10{left:96px !important}.top-n10{top:-96px !important}.right-n10{right:-96px !important}.bottom-n10{bottom:-96px !important}.left-n10{left:-96px !important}.top-11{top:112px !important}.right-11{right:112px !important}.bottom-11{bottom:112px !important}.left-11{left:112px !important}.top-n11{top:-112px !important}.right-n11{right:-112px !important}.bottom-n11{bottom:-112px !important}.left-n11{left:-112px !important}.top-12{top:128px !important}.right-12{right:128px !important}.bottom-12{bottom:128px !important}.left-12{left:128px !important}.top-n12{top:-128px !important}.right-n12{right:-128px !important}.bottom-n12{bottom:-128px !important}.left-n12{left:-128px !important}@media (min-width: 768px){.top-md-0{top:0 !important}.right-md-0{right:0 !important}.bottom-md-0{bottom:0 !important}.left-md-0{left:0 !important}.top-md-n0{top:0 !important}.right-md-n0{right:0 !important}.bottom-md-n0{bottom:0 !important}.left-md-n0{left:0 !important}.top-md-1{top:4px !important}.right-md-1{right:4px !important}.bottom-md-1{bottom:4px !important}.left-md-1{left:4px !important}.top-md-n1{top:-4px !important}.right-md-n1{right:-4px !important}.bottom-md-n1{bottom:-4px !important}.left-md-n1{left:-4px !important}.top-md-2{top:8px !important}.right-md-2{right:8px !important}.bottom-md-2{bottom:8px !important}.left-md-2{left:8px !important}.top-md-n2{top:-8px !important}.right-md-n2{right:-8px !important}.bottom-md-n2{bottom:-8px !important}.left-md-n2{left:-8px !important}.top-md-3{top:16px !important}.right-md-3{right:16px !important}.bottom-md-3{bottom:16px !important}.left-md-3{left:16px !important}.top-md-n3{top:-16px !important}.right-md-n3{right:-16px !important}.bottom-md-n3{bottom:-16px !important}.left-md-n3{left:-16px !important}.top-md-4{top:24px !important}.right-md-4{right:24px !important}.bottom-md-4{bottom:24px !important}.left-md-4{left:24px !important}.top-md-n4{top:-24px !important}.right-md-n4{right:-24px !important}.bottom-md-n4{bottom:-24px !important}.left-md-n4{left:-24px !important}.top-md-5{top:32px !important}.right-md-5{right:32px !important}.bottom-md-5{bottom:32px !important}.left-md-5{left:32px !important}.top-md-n5{top:-32px !important}.right-md-n5{right:-32px !important}.bottom-md-n5{bottom:-32px !important}.left-md-n5{left:-32px !important}.top-md-6{top:40px !important}.right-md-6{right:40px !important}.bottom-md-6{bottom:40px !important}.left-md-6{left:40px !important}.top-md-n6{top:-40px !important}.right-md-n6{right:-40px !important}.bottom-md-n6{bottom:-40px !important}.left-md-n6{left:-40px !important}.top-md-7{top:48px !important}.right-md-7{right:48px !important}.bottom-md-7{bottom:48px !important}.left-md-7{left:48px !important}.top-md-n7{top:-48px !important}.right-md-n7{right:-48px !important}.bottom-md-n7{bottom:-48px !important}.left-md-n7{left:-48px !important}.top-md-8{top:64px !important}.right-md-8{right:64px !important}.bottom-md-8{bottom:64px !important}.left-md-8{left:64px !important}.top-md-n8{top:-64px !important}.right-md-n8{right:-64px !important}.bottom-md-n8{bottom:-64px !important}.left-md-n8{left:-64px !important}.top-md-9{top:80px !important}.right-md-9{right:80px !important}.bottom-md-9{bottom:80px !important}.left-md-9{left:80px !important}.top-md-n9{top:-80px !important}.right-md-n9{right:-80px !important}.bottom-md-n9{bottom:-80px !important}.left-md-n9{left:-80px !important}.top-md-10{top:96px !important}.right-md-10{right:96px !important}.bottom-md-10{bottom:96px !important}.left-md-10{left:96px !important}.top-md-n10{top:-96px !important}.right-md-n10{right:-96px !important}.bottom-md-n10{bottom:-96px !important}.left-md-n10{left:-96px !important}.top-md-11{top:112px !important}.right-md-11{right:112px !important}.bottom-md-11{bottom:112px !important}.left-md-11{left:112px !important}.top-md-n11{top:-112px !important}.right-md-n11{right:-112px !important}.bottom-md-n11{bottom:-112px !important}.left-md-n11{left:-112px !important}.top-md-12{top:128px !important}.right-md-12{right:128px !important}.bottom-md-12{bottom:128px !important}.left-md-12{left:128px !important}.top-md-n12{top:-128px !important}.right-md-n12{right:-128px !important}.bottom-md-n12{bottom:-128px !important}.left-md-n12{left:-128px !important}}@media (min-width: 1012px){.top-lg-0{top:0 !important}.right-lg-0{right:0 !important}.bottom-lg-0{bottom:0 !important}.left-lg-0{left:0 !important}.top-lg-n0{top:0 !important}.right-lg-n0{right:0 !important}.bottom-lg-n0{bottom:0 !important}.left-lg-n0{left:0 !important}.top-lg-1{top:4px !important}.right-lg-1{right:4px !important}.bottom-lg-1{bottom:4px !important}.left-lg-1{left:4px !important}.top-lg-n1{top:-4px !important}.right-lg-n1{right:-4px !important}.bottom-lg-n1{bottom:-4px !important}.left-lg-n1{left:-4px !important}.top-lg-2{top:8px !important}.right-lg-2{right:8px !important}.bottom-lg-2{bottom:8px !important}.left-lg-2{left:8px !important}.top-lg-n2{top:-8px !important}.right-lg-n2{right:-8px !important}.bottom-lg-n2{bottom:-8px !important}.left-lg-n2{left:-8px !important}.top-lg-3{top:16px !important}.right-lg-3{right:16px !important}.bottom-lg-3{bottom:16px !important}.left-lg-3{left:16px !important}.top-lg-n3{top:-16px !important}.right-lg-n3{right:-16px !important}.bottom-lg-n3{bottom:-16px !important}.left-lg-n3{left:-16px !important}.top-lg-4{top:24px !important}.right-lg-4{right:24px !important}.bottom-lg-4{bottom:24px !important}.left-lg-4{left:24px !important}.top-lg-n4{top:-24px !important}.right-lg-n4{right:-24px !important}.bottom-lg-n4{bottom:-24px !important}.left-lg-n4{left:-24px !important}.top-lg-5{top:32px !important}.right-lg-5{right:32px !important}.bottom-lg-5{bottom:32px !important}.left-lg-5{left:32px !important}.top-lg-n5{top:-32px !important}.right-lg-n5{right:-32px !important}.bottom-lg-n5{bottom:-32px !important}.left-lg-n5{left:-32px !important}.top-lg-6{top:40px !important}.right-lg-6{right:40px !important}.bottom-lg-6{bottom:40px !important}.left-lg-6{left:40px !important}.top-lg-n6{top:-40px !important}.right-lg-n6{right:-40px !important}.bottom-lg-n6{bottom:-40px !important}.left-lg-n6{left:-40px !important}.top-lg-7{top:48px !important}.right-lg-7{right:48px !important}.bottom-lg-7{bottom:48px !important}.left-lg-7{left:48px !important}.top-lg-n7{top:-48px !important}.right-lg-n7{right:-48px !important}.bottom-lg-n7{bottom:-48px !important}.left-lg-n7{left:-48px !important}.top-lg-8{top:64px !important}.right-lg-8{right:64px !important}.bottom-lg-8{bottom:64px !important}.left-lg-8{left:64px !important}.top-lg-n8{top:-64px !important}.right-lg-n8{right:-64px !important}.bottom-lg-n8{bottom:-64px !important}.left-lg-n8{left:-64px !important}.top-lg-9{top:80px !important}.right-lg-9{right:80px !important}.bottom-lg-9{bottom:80px !important}.left-lg-9{left:80px !important}.top-lg-n9{top:-80px !important}.right-lg-n9{right:-80px !important}.bottom-lg-n9{bottom:-80px !important}.left-lg-n9{left:-80px !important}.top-lg-10{top:96px !important}.right-lg-10{right:96px !important}.bottom-lg-10{bottom:96px !important}.left-lg-10{left:96px !important}.top-lg-n10{top:-96px !important}.right-lg-n10{right:-96px !important}.bottom-lg-n10{bottom:-96px !important}.left-lg-n10{left:-96px !important}.top-lg-11{top:112px !important}.right-lg-11{right:112px !important}.bottom-lg-11{bottom:112px !important}.left-lg-11{left:112px !important}.top-lg-n11{top:-112px !important}.right-lg-n11{right:-112px !important}.bottom-lg-n11{bottom:-112px !important}.left-lg-n11{left:-112px !important}.top-lg-12{top:128px !important}.right-lg-12{right:128px !important}.bottom-lg-12{bottom:128px !important}.left-lg-12{left:128px !important}.top-lg-n12{top:-128px !important}.right-lg-n12{right:-128px !important}.bottom-lg-n12{bottom:-128px !important}.left-lg-n12{left:-128px !important}}.offset-n1{margin-left:-8.33333%}.offset-n2{margin-left:-16.66667%}.offset-n3{margin-left:-25%}.offset-n4{margin-left:-33.33333%}.offset-n5{margin-left:-41.66667%}.offset-n6{margin-left:-50%}.offset-n7{margin-left:-58.33333%}@media (min-width: 544px){.offset-sm-n1{margin-left:-8.33333%}.offset-sm-n2{margin-left:-16.66667%}.offset-sm-n3{margin-left:-25%}.offset-sm-n4{margin-left:-33.33333%}.offset-sm-n5{margin-left:-41.66667%}.offset-sm-n6{margin-left:-50%}.offset-sm-n7{margin-left:-58.33333%}}@media (min-width: 768px){.offset-md-n1{margin-left:-8.33333%}.offset-md-n2{margin-left:-16.66667%}.offset-md-n3{margin-left:-25%}.offset-md-n4{margin-left:-33.33333%}.offset-md-n5{margin-left:-41.66667%}.offset-md-n6{margin-left:-50%}.offset-md-n7{margin-left:-58.33333%}}@media (min-width: 1012px){.offset-lg-n1{margin-left:-8.33333%}.offset-lg-n2{margin-left:-16.66667%}.offset-lg-n3{margin-left:-25%}.offset-lg-n4{margin-left:-33.33333%}.offset-lg-n5{margin-left:-41.66667%}.offset-lg-n6{margin-left:-50%}.offset-lg-n7{margin-left:-58.33333%}}@media (min-width: 1280px){.offset-xl-n1{margin-left:-8.33333%}.offset-xl-n2{margin-left:-16.66667%}.offset-xl-n3{margin-left:-25%}.offset-xl-n4{margin-left:-33.33333%}.offset-xl-n5{margin-left:-41.66667%}.offset-xl-n6{margin-left:-50%}.offset-xl-n7{margin-left:-58.33333%}}.mt-7{margin-top:48px !important}.mb-7{margin-bottom:48px !important}.my-7{margin-top:48px !important;margin-bottom:48px !important}.mt-8{margin-top:64px !important}.mb-8{margin-bottom:64px !important}.my-8{margin-top:64px !important;margin-bottom:64px !important}.mt-9{margin-top:80px !important}.mb-9{margin-bottom:80px !important}.my-9{margin-top:80px !important;margin-bottom:80px !important}.mt-10{margin-top:96px !important}.mb-10{margin-bottom:96px !important}.my-10{margin-top:96px !important;margin-bottom:96px !important}.mt-11{margin-top:112px !important}.mb-11{margin-bottom:112px !important}.my-11{margin-top:112px !important;margin-bottom:112px !important}.mt-12{margin-top:128px !important}.mb-12{margin-bottom:128px !important}.my-12{margin-top:128px !important;margin-bottom:128px !important}@media (min-width: 544px){.mt-sm-7{margin-top:48px !important}.mb-sm-7{margin-bottom:48px !important}.my-sm-7{margin-top:48px !important;margin-bottom:48px !important}.mt-sm-8{margin-top:64px !important}.mb-sm-8{margin-bottom:64px !important}.my-sm-8{margin-top:64px !important;margin-bottom:64px !important}.mt-sm-9{margin-top:80px !important}.mb-sm-9{margin-bottom:80px !important}.my-sm-9{margin-top:80px !important;margin-bottom:80px !important}.mt-sm-10{margin-top:96px !important}.mb-sm-10{margin-bottom:96px !important}.my-sm-10{margin-top:96px !important;margin-bottom:96px !important}.mt-sm-11{margin-top:112px !important}.mb-sm-11{margin-bottom:112px !important}.my-sm-11{margin-top:112px !important;margin-bottom:112px !important}.mt-sm-12{margin-top:128px !important}.mb-sm-12{margin-bottom:128px !important}.my-sm-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 768px){.mt-md-7{margin-top:48px !important}.mb-md-7{margin-bottom:48px !important}.my-md-7{margin-top:48px !important;margin-bottom:48px !important}.mt-md-8{margin-top:64px !important}.mb-md-8{margin-bottom:64px !important}.my-md-8{margin-top:64px !important;margin-bottom:64px !important}.mt-md-9{margin-top:80px !important}.mb-md-9{margin-bottom:80px !important}.my-md-9{margin-top:80px !important;margin-bottom:80px !important}.mt-md-10{margin-top:96px !important}.mb-md-10{margin-bottom:96px !important}.my-md-10{margin-top:96px !important;margin-bottom:96px !important}.mt-md-11{margin-top:112px !important}.mb-md-11{margin-bottom:112px !important}.my-md-11{margin-top:112px !important;margin-bottom:112px !important}.mt-md-12{margin-top:128px !important}.mb-md-12{margin-bottom:128px !important}.my-md-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 1012px){.mt-lg-7{margin-top:48px !important}.mb-lg-7{margin-bottom:48px !important}.my-lg-7{margin-top:48px !important;margin-bottom:48px !important}.mt-lg-8{margin-top:64px !important}.mb-lg-8{margin-bottom:64px !important}.my-lg-8{margin-top:64px !important;margin-bottom:64px !important}.mt-lg-9{margin-top:80px !important}.mb-lg-9{margin-bottom:80px !important}.my-lg-9{margin-top:80px !important;margin-bottom:80px !important}.mt-lg-10{margin-top:96px !important}.mb-lg-10{margin-bottom:96px !important}.my-lg-10{margin-top:96px !important;margin-bottom:96px !important}.mt-lg-11{margin-top:112px !important}.mb-lg-11{margin-bottom:112px !important}.my-lg-11{margin-top:112px !important;margin-bottom:112px !important}.mt-lg-12{margin-top:128px !important}.mb-lg-12{margin-bottom:128px !important}.my-lg-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 1280px){.mt-xl-7{margin-top:48px !important}.mb-xl-7{margin-bottom:48px !important}.my-xl-7{margin-top:48px !important;margin-bottom:48px !important}.mt-xl-8{margin-top:64px !important}.mb-xl-8{margin-bottom:64px !important}.my-xl-8{margin-top:64px !important;margin-bottom:64px !important}.mt-xl-9{margin-top:80px !important}.mb-xl-9{margin-bottom:80px !important}.my-xl-9{margin-top:80px !important;margin-bottom:80px !important}.mt-xl-10{margin-top:96px !important}.mb-xl-10{margin-bottom:96px !important}.my-xl-10{margin-top:96px !important;margin-bottom:96px !important}.mt-xl-11{margin-top:112px !important}.mb-xl-11{margin-bottom:112px !important}.my-xl-11{margin-top:112px !important;margin-bottom:112px !important}.mt-xl-12{margin-top:128px !important}.mb-xl-12{margin-bottom:128px !important}.my-xl-12{margin-top:128px !important;margin-bottom:128px !important}}.p-7{padding:48px !important}.pt-7{padding-top:48px !important}.pr-7{padding-right:48px !important}.pb-7{padding-bottom:48px !important}.pl-7{padding-left:48px !important}.py-7{padding-top:48px !important;padding-bottom:48px !important}.p-8{padding:64px !important}.pt-8{padding-top:64px !important}.pr-8{padding-right:64px !important}.pb-8{padding-bottom:64px !important}.pl-8{padding-left:64px !important}.py-8{padding-top:64px !important;padding-bottom:64px !important}.p-9{padding:80px !important}.pt-9{padding-top:80px !important}.pr-9{padding-right:80px !important}.pb-9{padding-bottom:80px !important}.pl-9{padding-left:80px !important}.py-9{padding-top:80px !important;padding-bottom:80px !important}.p-10{padding:96px !important}.pt-10{padding-top:96px !important}.pr-10{padding-right:96px !important}.pb-10{padding-bottom:96px !important}.pl-10{padding-left:96px !important}.py-10{padding-top:96px !important;padding-bottom:96px !important}.p-11{padding:112px !important}.pt-11{padding-top:112px !important}.pr-11{padding-right:112px !important}.pb-11{padding-bottom:112px !important}.pl-11{padding-left:112px !important}.py-11{padding-top:112px !important;padding-bottom:112px !important}.p-12{padding:128px !important}.pt-12{padding-top:128px !important}.pr-12{padding-right:128px !important}.pb-12{padding-bottom:128px !important}.pl-12{padding-left:128px !important}.py-12{padding-top:128px !important;padding-bottom:128px !important}@media (min-width: 544px){.p-sm-7{padding:48px !important}.pt-sm-7{padding-top:48px !important}.pr-sm-7{padding-right:48px !important}.pb-sm-7{padding-bottom:48px !important}.pl-sm-7{padding-left:48px !important}.py-sm-7{padding-top:48px !important;padding-bottom:48px !important}.p-sm-8{padding:64px !important}.pt-sm-8{padding-top:64px !important}.pr-sm-8{padding-right:64px !important}.pb-sm-8{padding-bottom:64px !important}.pl-sm-8{padding-left:64px !important}.py-sm-8{padding-top:64px !important;padding-bottom:64px !important}.p-sm-9{padding:80px !important}.pt-sm-9{padding-top:80px !important}.pr-sm-9{padding-right:80px !important}.pb-sm-9{padding-bottom:80px !important}.pl-sm-9{padding-left:80px !important}.py-sm-9{padding-top:80px !important;padding-bottom:80px !important}.p-sm-10{padding:96px !important}.pt-sm-10{padding-top:96px !important}.pr-sm-10{padding-right:96px !important}.pb-sm-10{padding-bottom:96px !important}.pl-sm-10{padding-left:96px !important}.py-sm-10{padding-top:96px !important;padding-bottom:96px !important}.p-sm-11{padding:112px !important}.pt-sm-11{padding-top:112px !important}.pr-sm-11{padding-right:112px !important}.pb-sm-11{padding-bottom:112px !important}.pl-sm-11{padding-left:112px !important}.py-sm-11{padding-top:112px !important;padding-bottom:112px !important}.p-sm-12{padding:128px !important}.pt-sm-12{padding-top:128px !important}.pr-sm-12{padding-right:128px !important}.pb-sm-12{padding-bottom:128px !important}.pl-sm-12{padding-left:128px !important}.py-sm-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 768px){.p-md-7{padding:48px !important}.pt-md-7{padding-top:48px !important}.pr-md-7{padding-right:48px !important}.pb-md-7{padding-bottom:48px !important}.pl-md-7{padding-left:48px !important}.py-md-7{padding-top:48px !important;padding-bottom:48px !important}.p-md-8{padding:64px !important}.pt-md-8{padding-top:64px !important}.pr-md-8{padding-right:64px !important}.pb-md-8{padding-bottom:64px !important}.pl-md-8{padding-left:64px !important}.py-md-8{padding-top:64px !important;padding-bottom:64px !important}.p-md-9{padding:80px !important}.pt-md-9{padding-top:80px !important}.pr-md-9{padding-right:80px !important}.pb-md-9{padding-bottom:80px !important}.pl-md-9{padding-left:80px !important}.py-md-9{padding-top:80px !important;padding-bottom:80px !important}.p-md-10{padding:96px !important}.pt-md-10{padding-top:96px !important}.pr-md-10{padding-right:96px !important}.pb-md-10{padding-bottom:96px !important}.pl-md-10{padding-left:96px !important}.py-md-10{padding-top:96px !important;padding-bottom:96px !important}.p-md-11{padding:112px !important}.pt-md-11{padding-top:112px !important}.pr-md-11{padding-right:112px !important}.pb-md-11{padding-bottom:112px !important}.pl-md-11{padding-left:112px !important}.py-md-11{padding-top:112px !important;padding-bottom:112px !important}.p-md-12{padding:128px !important}.pt-md-12{padding-top:128px !important}.pr-md-12{padding-right:128px !important}.pb-md-12{padding-bottom:128px !important}.pl-md-12{padding-left:128px !important}.py-md-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 1012px){.p-lg-7{padding:48px !important}.pt-lg-7{padding-top:48px !important}.pr-lg-7{padding-right:48px !important}.pb-lg-7{padding-bottom:48px !important}.pl-lg-7{padding-left:48px !important}.py-lg-7{padding-top:48px !important;padding-bottom:48px !important}.p-lg-8{padding:64px !important}.pt-lg-8{padding-top:64px !important}.pr-lg-8{padding-right:64px !important}.pb-lg-8{padding-bottom:64px !important}.pl-lg-8{padding-left:64px !important}.py-lg-8{padding-top:64px !important;padding-bottom:64px !important}.p-lg-9{padding:80px !important}.pt-lg-9{padding-top:80px !important}.pr-lg-9{padding-right:80px !important}.pb-lg-9{padding-bottom:80px !important}.pl-lg-9{padding-left:80px !important}.py-lg-9{padding-top:80px !important;padding-bottom:80px !important}.p-lg-10{padding:96px !important}.pt-lg-10{padding-top:96px !important}.pr-lg-10{padding-right:96px !important}.pb-lg-10{padding-bottom:96px !important}.pl-lg-10{padding-left:96px !important}.py-lg-10{padding-top:96px !important;padding-bottom:96px !important}.p-lg-11{padding:112px !important}.pt-lg-11{padding-top:112px !important}.pr-lg-11{padding-right:112px !important}.pb-lg-11{padding-bottom:112px !important}.pl-lg-11{padding-left:112px !important}.py-lg-11{padding-top:112px !important;padding-bottom:112px !important}.p-lg-12{padding:128px !important}.pt-lg-12{padding-top:128px !important}.pr-lg-12{padding-right:128px !important}.pb-lg-12{padding-bottom:128px !important}.pl-lg-12{padding-left:128px !important}.py-lg-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 1280px){.p-xl-7{padding:48px !important}.pt-xl-7{padding-top:48px !important}.pr-xl-7{padding-right:48px !important}.pb-xl-7{padding-bottom:48px !important}.pl-xl-7{padding-left:48px !important}.py-xl-7{padding-top:48px !important;padding-bottom:48px !important}.p-xl-8{padding:64px !important}.pt-xl-8{padding-top:64px !important}.pr-xl-8{padding-right:64px !important}.pb-xl-8{padding-bottom:64px !important}.pl-xl-8{padding-left:64px !important}.py-xl-8{padding-top:64px !important;padding-bottom:64px !important}.p-xl-9{padding:80px !important}.pt-xl-9{padding-top:80px !important}.pr-xl-9{padding-right:80px !important}.pb-xl-9{padding-bottom:80px !important}.pl-xl-9{padding-left:80px !important}.py-xl-9{padding-top:80px !important;padding-bottom:80px !important}.p-xl-10{padding:96px !important}.pt-xl-10{padding-top:96px !important}.pr-xl-10{padding-right:96px !important}.pb-xl-10{padding-bottom:96px !important}.pl-xl-10{padding-left:96px !important}.py-xl-10{padding-top:96px !important;padding-bottom:96px !important}.p-xl-11{padding:112px !important}.pt-xl-11{padding-top:112px !important}.pr-xl-11{padding-right:112px !important}.pb-xl-11{padding-bottom:112px !important}.pl-xl-11{padding-left:112px !important}.py-xl-11{padding-top:112px !important;padding-bottom:112px !important}.p-xl-12{padding:128px !important}.pt-xl-12{padding-top:128px !important}.pr-xl-12{padding-right:128px !important}.pb-xl-12{padding-bottom:128px !important}.pl-xl-12{padding-left:128px !important}.py-xl-12{padding-top:128px !important;padding-bottom:128px !important}}a{-moz-outline:none !important}.jaws{display:block;height:1px;left:-5000px;overflow:hidden;position:absolute;top:-5000px;width:1px}.disabled{color:lightgray}a.tabnav-tab:focus{outline:none}#gollum-editor-body-ace{overflow:hidden;font-family:Consolas, "Liberation Mono", Courier, monospace;font-size:1em}#gollum-editor .singleline{display:block;margin:0 0 0.7em 0}#gollum-editor .singleline input{font-size:1.1em;font-family:"Helvetica Neue", Helvetica, Arial, freesans, clean, sans-serif;line-height:1.5em;margin:1em 0 0.4em;padding:0.5em;width:100%}#gollum-editor .singleline input.ph{color:#999}.ie #gollum-editor .singleline input{padding-top:0.25em;padding-bottom:0.75em}#gollum-editor .path_note{text-align:right;font-size:small;padding-top:5px;padding-right:5px}#gollum-editor #gollum-editor-type-switcher{display:none}#gollum-editor #gollum-editor-function-bar{border-bottom:1px solid #ddd;padding:0}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar{overflow:hidden}}#gollum-editor #gollum-editor-function-bar #gollum-editor-function-buttons{display:none}#gollum-editor #gollum-editor-function-bar.active #gollum-editor-function-buttons{display:block;margin:0;padding:0}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar.active #gollum-editor-function-buttons{overflow:hidden;margin:0;padding:0 0 1.1em 0;float:left}}#gollum-editor #gollum-editor-function-bar a.function-button{float:left;overflow:hidden;margin:1px 1px 0 0;width:32px;height:32px;display:block;font-weight:bold;color:#333;background-color:#f7f7f7;border:1px solid #d4d4d4;text-shadow:0 1px 0 #fff;cursor:pointer;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');background:-webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));background:-moz-linear-gradient(top, #f4f4f4, #ececec);border-radius:3px}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button{width:25px;height:25px}}#gollum-editor #gollum-editor-function-bar a.function-button:hover{color:#fff;background:#3072b3;border-color:#518cc6 #518cc6 #2a65a0;text-shadow:0 -1px 0 rgba(0,0,0,0.3);text-decoration:none;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');background:-webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));background:-moz-linear-gradient(top, #599bdc, #3072b3)}#gollum-editor #gollum-editor-function-bar a.function-button:visited{text-decoration:none}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button{margin:0.2em 0.5em 0 0}}#gollum-editor #gollum-editor-function-bar a.function-button span{display:block;background-image:url("../images/icon-sprite.png");background-repeat:no-repeat;overflow:hidden;text-indent:-5000px;width:32px;height:32px}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button span{width:25px;height:25px}}#gollum-editor #gollum-editor-function-bar a.disabled{display:none}#gollum-editor #gollum-editor-function-bar span.function-divider{display:none}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar span.function-divider{display:block;width:0.5em;float:left}}#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector{padding:0.2em 0 0.5em 0;clear:both}#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector:after{content:".";display:block;clear:both;visibility:hidden}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector{clear:none;text-align:right}}#gollum-editor textarea{height:30em;overflow:hidden}#gollum-editor .collapsed,#gollum-editor .expanded{border-bottom:1px solid #ddd;display:block;overflow:hidden;padding:0.5em 0 0}#gollum-editor .collapsed button,#gollum-editor .expanded button{margin-bottom:6px}#gollum-editor .collapsed h4,#gollum-editor .expanded h4{font-size:1.6em;margin:0;display:inline-block;padding:0.25em 0 0 0.3em;text-shadow:0 -1px 0 #fff;line-height:32px}@media all and (min-width: 940px){#gollum-editor .collapsed h4,#gollum-editor .expanded h4{line-height:25px}}#gollum-editor .collapsed h4{color:#bbb}#gollum-editor .collapsed a.button span{background-position:-348px 3px}#gollum-editor .collapsed a.button:hover span{background-position:-348px -25px}@media all and (min-width: 940px){#gollum-editor .collapsed a.button span{background-position:-351px 0}#gollum-editor .collapsed a.button:hover span{background-position:-351px -28px}}#gollum-editor .collapsed textarea{display:none}#gollum-editor .expanded a.button span{background-position:-375px 3px}#gollum-editor .expanded a.button:hover span{background-position:-375px -25px}@media all and (min-width: 940px){#gollum-editor .expanded a.button span{background-position:-378px 0}#gollum-editor .expanded a.button:hover span{background-position:-378px -28px}}#gollum-editor .expanded textarea{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:block;clear:both;font-size:1em;font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;line-height:1.4em;margin:0 0 0.4em;padding:0.5em;width:100%;height:7em}@media all and (min-width: 940px){#gollum-editor .expanded textarea{margin:1em 0 0.4em}}#gollum-editor #gollum-editor-body+.collapsed,#gollum-editor #gollum-editor-body+.expanded{border-top:1px solid #ddd;margin-top:0.7em}#gollum-editor-title-field.active{border-bottom:1px solid #ddd;display:block;margin:0 0 0.3em 0;padding:0 0 0.5em 0}#gollum-editor-title-field input#gollum-editor-page-title{font-weight:bold;margin-top:0}#gollum-editor-title-field input#gollum-editor-page-title.ph{color:#000}#gollum-editor-title-field+#gollum-editor-function-bar{margin-top:0.6em}a#function-bold span{background-position:3px 3px}a#function-bold:hover span{background-position:3px -25px}@media all and (min-width: 940px){a#function-bold span{background-position:0px 0}a#function-bold:hover span{background-position:0px -28px}}a#function-italic span{background-position:-24px 3px}a#function-italic:hover span{background-position:-24px -25px}@media all and (min-width: 940px){a#function-italic span{background-position:-27px 0}a#function-italic:hover span{background-position:-27px -28px}}a#function-underline span{background-position:-51px 3px}a#function-underline:hover span{background-position:-51px -25px}@media all and (min-width: 940px){a#function-underline span{background-position:-54px 0}a#function-underline:hover span{background-position:-54px -28px}}a#function-code span{background-position:-78px 3px}a#function-code:hover span{background-position:-78px -25px}@media all and (min-width: 940px){a#function-code span{background-position:-81px 0}a#function-code:hover span{background-position:-81px -28px}}a#function-ul span{background-position:-105px 3px}a#function-ul:hover span{background-position:-105px -25px}@media all and (min-width: 940px){a#function-ul span{background-position:-108px 0}a#function-ul:hover span{background-position:-108px -28px}}a#function-ol span{background-position:-132px 3px}a#function-ol:hover span{background-position:-132px -25px}@media all and (min-width: 940px){a#function-ol span{background-position:-135px 0}a#function-ol:hover span{background-position:-135px -28px}}a#function-blockquote span{background-position:-159px 3px}a#function-blockquote:hover span{background-position:-159px -25px}@media all and (min-width: 940px){a#function-blockquote span{background-position:-162px 0}a#function-blockquote:hover span{background-position:-162px -28px}}a#function-hr span{background-position:-186px 3px}a#function-hr:hover span{background-position:-186px -25px}@media all and (min-width: 940px){a#function-hr span{background-position:-189px 0}a#function-hr:hover span{background-position:-189px -28px}}a#function-h1 span{background-position:-213px 3px}a#function-h1:hover span{background-position:-213px -25px}@media all and (min-width: 940px){a#function-h1 span{background-position:-216px 0}a#function-h1:hover span{background-position:-216px -28px}}a#function-h2 span{background-position:-240px 3px}a#function-h2:hover span{background-position:-240px -25px}@media all and (min-width: 940px){a#function-h2 span{background-position:-243px 0}a#function-h2:hover span{background-position:-243px -28px}}a#function-h3 span{background-position:-267px 3px}a#function-h3:hover span{background-position:-267px -25px}@media all and (min-width: 940px){a#function-h3 span{background-position:-270px 0}a#function-h3:hover span{background-position:-270px -28px}}a#function-link span{background-position:-294px 3px}a#function-link:hover span{background-position:-294px -25px}@media all and (min-width: 940px){a#function-link span{background-position:-297px 0}a#function-link:hover span{background-position:-297px -28px}}a#function-image span{background-position:-321px 3px}a#function-image:hover span{background-position:-321px -25px}@media all and (min-width: 940px){a#function-image span{background-position:-324px 0}a#function-image:hover span{background-position:-324px -28px}}a#function-critic-accept span{background-position:-348px 3px}a#function-critic-accept:hover span{background-position:-348px -25px}@media all and (min-width: 940px){a#function-critic-accept span{background-position:-351px 0}a#function-critic-accept:hover span{background-position:-351px -28px}}a#function-critic-reject span{background-position:-375px 3px}a#function-critic-reject:hover span{background-position:-375px -25px}@media all and (min-width: 940px){a#function-critic-reject span{background-position:-378px 0}a#function-critic-reject:hover span{background-position:-378px -28px}}a#function-help span{background-position:-402px 3px}a#function-help:hover span{background-position:-402px -25px}@media all and (min-width: 940px){a#function-help span{background-position:-405px 0}a#function-help:hover span{background-position:-405px -28px}}a#function-search span{background-position:-429px 3px}a#function-search:hover span{background-position:-429px -25px}@media all and (min-width: 940px){a#function-search span{background-position:-432px 0}a#function-search:hover span{background-position:-432px -28px}}#gollum-editor-body-ace+div{display:none}#gollum-editor-body-ace.dragging{box-shadow:0 0 10px #AAE000}#gollum-editor-body-ace.uploading{opacity:1}#gollum-editor-body-ace.uploading+div{display:block}#gollum-editor-help{clear:both;margin:0;overflow:hidden;padding:0;border:1px solid #ddd;border-width:0 1px 1px 1px}@media all and (min-width: 940px){#gollum-editor-help{clear:none}}#gollum-editor-help-parent,#gollum-editor-help-list{display:block;list-style-type:none;margin:0;float:left;width:50%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}@media all and (min-width: 940px){#gollum-editor-help-parent,#gollum-editor-help-list{height:17em;width:18%;overflow:auto;padding:1em 0}}#gollum-editor-help-parent li,#gollum-editor-help-list li{font-size:1.2em;line-height:1.6em;margin:0;padding:0}#gollum-editor-help-parent li a,#gollum-editor-help-list li a{border:1px solid transparent;border-width:1px 0;display:block;font-weight:bold;height:100%;width:auto;padding:0.2em 1em;text-shadow:0 -1px 0 #fff;font-size:0.8em}@media all and (min-width: 940px){#gollum-editor-help-parent li a,#gollum-editor-help-list li a{font-size:1em}}#gollum-editor-help-parent li a:hover,#gollum-editor-help-list li a:hover{background:#fff;border-color:#f0f0f0;text-decoration:none;box-shadow:none}#gollum-editor-help-parent li a.selected,#gollum-editor-help-list li a.selected{border:1px solid #eee;border-bottom-color:#e7e7e7;border-width:1px 0;background:#fff;color:#000;box-shadow:0 1px 2px #f0f0f0}#gollum-editor-help-parent{border-right:1px solid #eee}#gollum-editor-help-list{background:#fafafa;border-right:1px solid #eee}#gollum-editor-help-wrapper{background:#fff;overflow:auto;height:17em;padding:1em;clear:both}@media all and (min-width: 940px){#gollum-editor-help-wrapper{clear:none}}#gollum-editor-help-content{font-size:1.2em;margin:0 1em 0 0.5em;padding:0;line-height:1.8em}#gollum-editor-help-content p{margin:0 0 1em 0;padding:0}#gollum-dialog-dialog{display:block;overflow:visible;position:absolute;top:0;left:0;width:100%;height:100%;z-index:999999}@media all and (min-width: 480px){#gollum-dialog-dialog{position:absolute;position:fixed;width:auto;height:auto}}@media all and (min-width: 940px){#gollum-dialog-dialog{position:absolute;top:50%;left:50%}}#gollum-dialog-dialog.active{display:block}#gollum-dialog-dialog-inner{margin:0px;width:100%;height:100%;padding:1em;overflow:hidden;background-color:white;webkit-box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);moz-box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);top:0px;right:0px;bottom:0px;left:0px}@media all and (min-width: 480px){#gollum-dialog-dialog-inner{margin:auto;position:fixed;width:auto;height:auto;min-width:280px;min-height:380px;max-width:450px;max-height:450px;top:10px;right:10px;bottom:10px;left:10px}}@media all and (min-width: 940px){#gollum-dialog-dialog-inner{margin:0 0 0 -225px;position:relative;width:450px;top:auto;right:auto;bottom:auto;left:auto}}#gollum-dialog-dialog-inner h4{border-bottom:1px solid #ddd;color:#000;font-size:1.8em;line-height:normal;font-weight:bold;margin:0 0 0.75em 0;padding:0 0 0.3em 0}#gollum-dialog-dialog-bg{padding:1em;height:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}@media all and (min-width: 480px){#gollum-dialog-dialog-bg{overflow:hidden;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f7f7f7', endColorstr='#ffffff');background:-webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#fff));background:-moz-linear-gradient(top, #f7f7f7, #fff)}}@media all and (min-width: 940px){#gollum-dialog-dialog-bg{height:auto}}#gollum-dialog-dialog-body{font-size:1.2em;line-height:1.6em}#gollum-dialog-dialog-body fieldset{display:block;border:0;margin:0;padding:0}#gollum-dialog-dialog-body fieldset:after{content:".";display:block;clear:both;visibility:hidden}#gollum-dialog-dialog-body fieldset .field{margin:0 0 1.5em 0;padding:0}#gollum-dialog-dialog-body fieldset .field:last-child{margin:0 0 1em 0}#gollum-dialog-dialog-body fieldset .field label{color:#000;display:block;font-size:1.2em;font-weight:bold;line-height:1.6em;margin:0;padding:0;min-width:80px}#gollum-dialog-dialog-body fieldset .field input.code{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace}#gollum-dialog-dialog-body fieldset .field span.context{font-size:.9em;color:#666}#gollum-dialog-dialog-body fieldset .field span.context span.path{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;font-weight:bold}#gollum-dialog-dialog-buttons{overflow:hidden}.criticmarkup mark{background-color:#fffd38;text-decoration:none}.criticmarkup del{background-color:#f6a9a9;text-decoration:line-through}.criticmarkup ins{background-color:#a9f6a9;text-decoration:none}.criticmarkup ins.break{display:block;line-height:2px;padding:0 !important;margin:0 !important}.criticmarkup ins.break span{line-height:1.5em}.criticmarkup .popover{background-color:#fffd38;color:#000}.criticmarkup .critic.comment{display:none}.criticmarkup .popover:hover span.critic.comment{display:block;position:absolute;width:200px;left:30%;font-size:0.8em;color:#ccc;background-color:#333;z-index:10;padding:0.5em 1em;border-radius:0.5em}#user-icons a,#user-icons img,#user-icons span,#user-icons svg{vertical-align:middle}#user-icons img,#user-icons svg{width:20px;height:20px}.history #footer{margin-bottom:7em}.overview{border:none}.compare .data table tr td{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;line-height:1.5em}.compare .data table tr td+td+td{width:100%}.compare .data table tr td.line_numbers{border-right:1px solid #999;color:#999;padding:0 0 0 0.5em}.emoji{width:20px;height:20px;vertical-align:-18%}*{margin:0;padding:0}div{display:block}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}html,body{color:#333}body{background-color:white;font:13.34px "Helvetica Neue", Helvetica, Arial, freesans, clean, sans-serif;font-size:small;line-height:1.4;counter-reset:h1}img{border:0}a{color:#4183c4;text-decoration:none}a.absent{color:#c00}a:focus{outline:thin dotted}a:active,a:hover{outline:0}.header-enum{--header-enum-style: decimal}.header-enum h2{counter-reset:h3}.header-enum h3{counter-reset:h4}.header-enum h4{counter-reset:h5}.header-enum h5{counter-reset:h6}.header-enum h1:before{counter-increment:h1;content:counter(h1,var(--header-enum-style)) ". "}.header-enum h2:before{counter-increment:h2;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) ". "}.header-enum h3:before{counter-increment:h3;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) ". "}.header-enum h4:before{counter-increment:h4;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) ". "}.header-enum h5:before{counter-increment:h5;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) "." counter(h5,var(--header-enum-style)) ". "}.header-enum h6:before{counter-increment:h6;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) "." counter(h5,var(--header-enum-style)) "." counter(h6,var(--header-enum-style)) ". "}#footer{margin-bottom:7em;clear:both}.markdown-body{padding:1em 1em 1em 0;font-size:15px;line-height:1.7;overflow:hidden;word-wrap:break-word}.markdown-body table.toc{width:auto;display:inline-table}.markdown-body table.toc .anchor{display:none}.markdown-body .anchor{display:inline-block;position:absolute;opacity:0;background:url('data:image/svg+xml;utf8,') no-repeat;background-size:0.6em 1.35em;padding-right:0.5em;padding-top:0.4em;margin-left:-0.8em;width:1em;height:1em;text-decoration:none;transition-property:opacity;transition:0.1s}.markdown-body *:hover>.anchor,.markdown-body .anchor:focus{opacity:1}.markdown-body .anchor.edit{margin-left:2em !important;margin-top:0.5em;height:0.5em;background:url('data:image/svg+xml;utf8,') no-repeat}.markdown-body a.absent{color:#c00}.markdown-body a[id].wiki-toc-anchor{color:inherit;text-decoration:none}.markdown-body a:first-child h1,.markdown-body a:first-child h2,.markdown-body a:first-child h3,.markdown-body a:first-child h4,.markdown-body a:first-child h5,.markdown-body a:first-child h6{margin-top:0;padding-top:0}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body>*:last-child{margin-bottom:0 !important}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{font-size:inherit}.markdown-body h1+p,.markdown-body h2+p,.markdown-body h3+p,.markdown-body h4+p,.markdown-body h5+p,.markdown-body h6+p{margin-top:0}.markdown-body h1{border-bottom:1px solid #ddd;margin-top:20px;margin-bottom:10px}.markdown-body h1+h2+h3{margin-top:30px}.markdown-body h2{border-bottom:1px solid #eee}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre{margin:15px 0}.markdown-body ul,.markdown-body ol{padding-left:30px}.markdown-body dl{padding:0}.markdown-body dl dt{font-size:14px;font-weight:bold;font-style:italic;padding:0;margin:15px 0 5px}.markdown-body dl dt:first-child{padding:0}.markdown-body dl dt>:first-child{margin-top:0}.markdown-body dl dt>:last-child{margin-bottom:0}.markdown-body dl dd{margin:0 0 15px;padding:0 15px}.markdown-body dl dd>:first-child{margin-top:0}.markdown-body dl dd>:last-child{margin-bottom:0}.markdown-body li{margin:0px}.markdown-body li p.first{display:inline-block}.markdown-body blockquote{border-left:4px solid #DDD;padding:0 15px;color:#777}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body table{padding:0;border-collapse:collapse;border-spacing:0}.markdown-body table tr{border-top:1px solid #ccc;background-color:#fff;margin:0;padding:0}.markdown-body table tr:nth-child(2n){background-color:#f8f8f8}.markdown-body table tr th,.markdown-body table tr td,.markdown-body table tr table{border:1px solid #ccc;text-align:none;margin:0;padding:6px 13px}.markdown-body table tr th>:first-child,.markdown-body table tr td>:first-child,.markdown-body table tr table>:first-child{margin-top:0}.markdown-body table tr th>:last-child,.markdown-body table tr td>:last-child,.markdown-body table tr table>:last-child{margin-bottom:0}.markdown-body table tr th{font-weight:bold}.markdown-body img{max-width:100%}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{border:1px solid #ddd;display:block;float:left;overflow:hidden;margin:13px 0 0;padding:7px;width:auto}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{clear:both;color:#333;display:block;padding:5px 0 0}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;overflow:hidden;margin:13px auto 0;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;overflow:hidden;margin:13px 0 0;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;margin-right:13px;overflow:hidden;float:left}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;margin-left:13px;overflow:hidden;float:right}.markdown-body span.float-right>span{display:block;overflow:hidden;margin:13px auto 0;text-align:right}.markdown-body code,.markdown-body pre,.markdown-body tt{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;font-size:12px}.markdown-body code,.markdown-body tt{margin:0 2px;padding:0 5px;white-space:nowrap;border:1px solid #ddd;background-color:#f8f8f8;border-radius:3px}.markdown-body pre{background-color:#f8f8f8;border:1px solid #ccc;font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:3px}.markdown-body pre>tt,.markdown-body pre>code{margin:0;padding:0;white-space:pre;border:none;background:transparent}.markdown-body pre pre,.markdown-body pre code,.markdown-body pre tt{background-color:transparent;border:none}.markdown-body pre pre{margin:0;padding:0}.toc{background-color:white;border:1px solid #ddd;padding:5px 10px;margin:0;border-radius:3px}.toc ul{padding-left:10px;margin:0}.toc ul li{margin:0}.toc ul ul{font-size:15px}.toc ul ul ul{font-size:14px}.toc>ul{margin-left:10px;font-size:15px}.toc-title{color:#888;font-size:14px;line-height:1.6;padding:2px;border-bottom:1px solid #ddd;margin-bottom:3px}#header-content .toc,#footer-content .toc,#sidebar-content .toc{border:none}.highlight{background:#fff}.highlight .c{color:#998;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .k,.highlight .o{font-weight:bold}.highlight .cm,.highlight .c1{color:#998;font-style:italic}.highlight .cp{color:#999;font-weight:bold}.highlight .cs{color:#999;font-weight:bold;font-style:italic}.highlight .gd{color:#000;background-color:#fdd}.highlight .gd .x{color:#000;background-color:#faa}.highlight .ge{font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .gi .x{color:#000;background-color:#afa}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:bold}.highlight .gt{color:#a00}.highlight .gu{color:#800080;font-weight:bold}.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr{font-weight:bold}.highlight .kt{color:#458;font-weight:bold}.highlight .m{color:#099}.highlight .s{color:#d14}.highlight .na,.highlight .no,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:#008080}.highlight .nb{color:#0086B3}.highlight .nc{color:#458;font-weight:bold}.highlight .ni{color:#800080}.highlight .ne,.highlight .nf{color:#900;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:#000080}.highlight .ow{font-weight:bold}.highlight .w{color:#bbb}.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,.highlight .il{color:#099}.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .s1{color:#d14}.highlight .sr{color:#009926}.highlight .ss{color:#990073}.highlight .bp{color:#999}.highlight .gc{color:#999;background-color:#EAF2F5}.type-csharp .highlight .k,.type-csharp .highlight .kt{color:#00F}.type-csharp .highlight .nf{color:#000;font-weight:normal}.type-csharp .highlight .nc{color:#2B91AF}.type-csharp .highlight .nn{color:#000}.type-csharp .highlight .s,.type-csharp .highlight .sc{color:#A31515}div.pagination a.disabled{pointer-events:none}.search-results .search-context li:nth-child(n+4){display:none}@-webkit-keyframes spinner-animation{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@-moz-keyframes spinner-animation{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-ms-keyframes spinner-animation{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(360deg)}}@-o-keyframes spinner-animation{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(100deg)}}@keyframes spinner-animation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dotted-spinner{background-color:transparent;border:3px dotted #1277c2;border-radius:50%;border-top-color:transparent;border-right-color:transparent;width:1.4em;height:1.4em;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-animation:spinner-animation 0.65s infinite linear;-moz-animation:spinner-animation 0.65s infinite linear;-o-animation:spinner-animation 0.65s infinite linear;-ms-animation:spinner-animation 0.65s infinite linear;animation:spinner-animation 0.65s infinite linear;vertical-align:top}.dotted-spinner.hidden{display:none} +*/@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.h000-mktg,.h00-mktg,.h0-mktg,.h1-mktg,.h2-mktg,.h3-mktg,.h4-mktg,.h5-mktg,.h6-mktg,.lead-mktg{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:500}.h000-mktg{font-size:48px !important}@media (min-width: 768px){.h000-mktg{font-size:64px !important}}.h00-mktg{font-size:40px !important}@media (min-width: 768px){.h00-mktg{font-size:48px !important}}.h0-mktg{font-size:32px !important}@media (min-width: 768px){.h0-mktg{font-size:40px !important}}.h1-mktg{font-size:26px !important}@media (min-width: 768px){.h1-mktg{font-size:32px !important}}.h2-mktg{font-size:22px !important}@media (min-width: 768px){.h2-mktg{font-size:24px !important}}.h3-mktg{font-size:18px !important}@media (min-width: 768px){.h3-mktg{font-size:20px !important}}.h4-mktg{font-size:16px !important}.h5-mktg{font-size:14px !important}.h6-mktg{font-size:12px !important}.lead-mktg{font-size:20px;font-weight:400}.pullquote{padding-top:0;padding-bottom:0;padding-left:8px;margin-bottom:24px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:16px;line-height:1.4;color:#586069;border-left:3px solid #e1e4e8}@media (min-width: 768px){.pullquote{padding-left:12px;margin-bottom:32px;margin-left:-15px;font-size:18px;line-height:1.5}}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.btn-mktg{display:inline-block;padding:16px 24px;font-size:14px;font-weight:500;color:#fff;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#1074e7;border:1px solid #1074e7;border-radius:3px;transition:.2s;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-mktg:hover{text-decoration:none;background-color:#0366d6;border-color:#0366d6}.btn-mktg:focus{outline:0;box-shadow:0 0 0 0.2em rgba(3,102,214,0.3)}.btn-mktg:disabled,.btn-mktg.disabled{pointer-events:none;cursor:default;opacity:0.65}.btn-primary-mktg{background-color:#2ebc4f;border-color:#2ebc4f}.btn-primary-mktg:hover{background-color:#28a745;border-color:#28a745}.btn-primary-mktg:focus{box-shadow:0 0 0 0.2em rgba(40,167,69,0.3)}.btn-large-mktg{padding:20px 32px;font-size:16px}.btn-outline-mktg{color:#1074e7;background-color:rgba(255,255,255,0);border-color:rgba(16,116,231,0.5)}.btn-outline-mktg:hover{color:#0366d6;text-decoration:none;background-color:rgba(255,255,255,0);border-color:#1074e7}.btn-transparent{color:#fff;background-color:transparent;background-image:none;border:1px solid rgba(255,255,255,0.5)}.btn-transparent:hover,.btn-transparent:active{color:#2f363d;background-color:#fff;background-image:none;border-color:#fff}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:local("Inter"),local("Inter-Regular"),url("/primer-marketing-support/fonts/Inter-Regular.woff") format("woff")}@font-face{font-family:Inter;font-style:normal;font-weight:500;src:local("Inter Medium"),local("Inter-Medium"),url("/primer-marketing-support/fonts/Inter-Medium.woff") format("woff")}.grayscale{filter:grayscale(100%)}.top-0{top:0 !important}.right-0{right:0 !important}.bottom-0{bottom:0 !important}.left-0{left:0 !important}.top-n0{top:0 !important}.right-n0{right:0 !important}.bottom-n0{bottom:0 !important}.left-n0{left:0 !important}.top-1{top:4px !important}.right-1{right:4px !important}.bottom-1{bottom:4px !important}.left-1{left:4px !important}.top-n1{top:-4px !important}.right-n1{right:-4px !important}.bottom-n1{bottom:-4px !important}.left-n1{left:-4px !important}.top-2{top:8px !important}.right-2{right:8px !important}.bottom-2{bottom:8px !important}.left-2{left:8px !important}.top-n2{top:-8px !important}.right-n2{right:-8px !important}.bottom-n2{bottom:-8px !important}.left-n2{left:-8px !important}.top-3{top:16px !important}.right-3{right:16px !important}.bottom-3{bottom:16px !important}.left-3{left:16px !important}.top-n3{top:-16px !important}.right-n3{right:-16px !important}.bottom-n3{bottom:-16px !important}.left-n3{left:-16px !important}.top-4{top:24px !important}.right-4{right:24px !important}.bottom-4{bottom:24px !important}.left-4{left:24px !important}.top-n4{top:-24px !important}.right-n4{right:-24px !important}.bottom-n4{bottom:-24px !important}.left-n4{left:-24px !important}.top-5{top:32px !important}.right-5{right:32px !important}.bottom-5{bottom:32px !important}.left-5{left:32px !important}.top-n5{top:-32px !important}.right-n5{right:-32px !important}.bottom-n5{bottom:-32px !important}.left-n5{left:-32px !important}.top-6{top:40px !important}.right-6{right:40px !important}.bottom-6{bottom:40px !important}.left-6{left:40px !important}.top-n6{top:-40px !important}.right-n6{right:-40px !important}.bottom-n6{bottom:-40px !important}.left-n6{left:-40px !important}.top-7{top:48px !important}.right-7{right:48px !important}.bottom-7{bottom:48px !important}.left-7{left:48px !important}.top-n7{top:-48px !important}.right-n7{right:-48px !important}.bottom-n7{bottom:-48px !important}.left-n7{left:-48px !important}.top-8{top:64px !important}.right-8{right:64px !important}.bottom-8{bottom:64px !important}.left-8{left:64px !important}.top-n8{top:-64px !important}.right-n8{right:-64px !important}.bottom-n8{bottom:-64px !important}.left-n8{left:-64px !important}.top-9{top:80px !important}.right-9{right:80px !important}.bottom-9{bottom:80px !important}.left-9{left:80px !important}.top-n9{top:-80px !important}.right-n9{right:-80px !important}.bottom-n9{bottom:-80px !important}.left-n9{left:-80px !important}.top-10{top:96px !important}.right-10{right:96px !important}.bottom-10{bottom:96px !important}.left-10{left:96px !important}.top-n10{top:-96px !important}.right-n10{right:-96px !important}.bottom-n10{bottom:-96px !important}.left-n10{left:-96px !important}.top-11{top:112px !important}.right-11{right:112px !important}.bottom-11{bottom:112px !important}.left-11{left:112px !important}.top-n11{top:-112px !important}.right-n11{right:-112px !important}.bottom-n11{bottom:-112px !important}.left-n11{left:-112px !important}.top-12{top:128px !important}.right-12{right:128px !important}.bottom-12{bottom:128px !important}.left-12{left:128px !important}.top-n12{top:-128px !important}.right-n12{right:-128px !important}.bottom-n12{bottom:-128px !important}.left-n12{left:-128px !important}@media (min-width: 768px){.top-md-0{top:0 !important}.right-md-0{right:0 !important}.bottom-md-0{bottom:0 !important}.left-md-0{left:0 !important}.top-md-n0{top:0 !important}.right-md-n0{right:0 !important}.bottom-md-n0{bottom:0 !important}.left-md-n0{left:0 !important}.top-md-1{top:4px !important}.right-md-1{right:4px !important}.bottom-md-1{bottom:4px !important}.left-md-1{left:4px !important}.top-md-n1{top:-4px !important}.right-md-n1{right:-4px !important}.bottom-md-n1{bottom:-4px !important}.left-md-n1{left:-4px !important}.top-md-2{top:8px !important}.right-md-2{right:8px !important}.bottom-md-2{bottom:8px !important}.left-md-2{left:8px !important}.top-md-n2{top:-8px !important}.right-md-n2{right:-8px !important}.bottom-md-n2{bottom:-8px !important}.left-md-n2{left:-8px !important}.top-md-3{top:16px !important}.right-md-3{right:16px !important}.bottom-md-3{bottom:16px !important}.left-md-3{left:16px !important}.top-md-n3{top:-16px !important}.right-md-n3{right:-16px !important}.bottom-md-n3{bottom:-16px !important}.left-md-n3{left:-16px !important}.top-md-4{top:24px !important}.right-md-4{right:24px !important}.bottom-md-4{bottom:24px !important}.left-md-4{left:24px !important}.top-md-n4{top:-24px !important}.right-md-n4{right:-24px !important}.bottom-md-n4{bottom:-24px !important}.left-md-n4{left:-24px !important}.top-md-5{top:32px !important}.right-md-5{right:32px !important}.bottom-md-5{bottom:32px !important}.left-md-5{left:32px !important}.top-md-n5{top:-32px !important}.right-md-n5{right:-32px !important}.bottom-md-n5{bottom:-32px !important}.left-md-n5{left:-32px !important}.top-md-6{top:40px !important}.right-md-6{right:40px !important}.bottom-md-6{bottom:40px !important}.left-md-6{left:40px !important}.top-md-n6{top:-40px !important}.right-md-n6{right:-40px !important}.bottom-md-n6{bottom:-40px !important}.left-md-n6{left:-40px !important}.top-md-7{top:48px !important}.right-md-7{right:48px !important}.bottom-md-7{bottom:48px !important}.left-md-7{left:48px !important}.top-md-n7{top:-48px !important}.right-md-n7{right:-48px !important}.bottom-md-n7{bottom:-48px !important}.left-md-n7{left:-48px !important}.top-md-8{top:64px !important}.right-md-8{right:64px !important}.bottom-md-8{bottom:64px !important}.left-md-8{left:64px !important}.top-md-n8{top:-64px !important}.right-md-n8{right:-64px !important}.bottom-md-n8{bottom:-64px !important}.left-md-n8{left:-64px !important}.top-md-9{top:80px !important}.right-md-9{right:80px !important}.bottom-md-9{bottom:80px !important}.left-md-9{left:80px !important}.top-md-n9{top:-80px !important}.right-md-n9{right:-80px !important}.bottom-md-n9{bottom:-80px !important}.left-md-n9{left:-80px !important}.top-md-10{top:96px !important}.right-md-10{right:96px !important}.bottom-md-10{bottom:96px !important}.left-md-10{left:96px !important}.top-md-n10{top:-96px !important}.right-md-n10{right:-96px !important}.bottom-md-n10{bottom:-96px !important}.left-md-n10{left:-96px !important}.top-md-11{top:112px !important}.right-md-11{right:112px !important}.bottom-md-11{bottom:112px !important}.left-md-11{left:112px !important}.top-md-n11{top:-112px !important}.right-md-n11{right:-112px !important}.bottom-md-n11{bottom:-112px !important}.left-md-n11{left:-112px !important}.top-md-12{top:128px !important}.right-md-12{right:128px !important}.bottom-md-12{bottom:128px !important}.left-md-12{left:128px !important}.top-md-n12{top:-128px !important}.right-md-n12{right:-128px !important}.bottom-md-n12{bottom:-128px !important}.left-md-n12{left:-128px !important}}@media (min-width: 1012px){.top-lg-0{top:0 !important}.right-lg-0{right:0 !important}.bottom-lg-0{bottom:0 !important}.left-lg-0{left:0 !important}.top-lg-n0{top:0 !important}.right-lg-n0{right:0 !important}.bottom-lg-n0{bottom:0 !important}.left-lg-n0{left:0 !important}.top-lg-1{top:4px !important}.right-lg-1{right:4px !important}.bottom-lg-1{bottom:4px !important}.left-lg-1{left:4px !important}.top-lg-n1{top:-4px !important}.right-lg-n1{right:-4px !important}.bottom-lg-n1{bottom:-4px !important}.left-lg-n1{left:-4px !important}.top-lg-2{top:8px !important}.right-lg-2{right:8px !important}.bottom-lg-2{bottom:8px !important}.left-lg-2{left:8px !important}.top-lg-n2{top:-8px !important}.right-lg-n2{right:-8px !important}.bottom-lg-n2{bottom:-8px !important}.left-lg-n2{left:-8px !important}.top-lg-3{top:16px !important}.right-lg-3{right:16px !important}.bottom-lg-3{bottom:16px !important}.left-lg-3{left:16px !important}.top-lg-n3{top:-16px !important}.right-lg-n3{right:-16px !important}.bottom-lg-n3{bottom:-16px !important}.left-lg-n3{left:-16px !important}.top-lg-4{top:24px !important}.right-lg-4{right:24px !important}.bottom-lg-4{bottom:24px !important}.left-lg-4{left:24px !important}.top-lg-n4{top:-24px !important}.right-lg-n4{right:-24px !important}.bottom-lg-n4{bottom:-24px !important}.left-lg-n4{left:-24px !important}.top-lg-5{top:32px !important}.right-lg-5{right:32px !important}.bottom-lg-5{bottom:32px !important}.left-lg-5{left:32px !important}.top-lg-n5{top:-32px !important}.right-lg-n5{right:-32px !important}.bottom-lg-n5{bottom:-32px !important}.left-lg-n5{left:-32px !important}.top-lg-6{top:40px !important}.right-lg-6{right:40px !important}.bottom-lg-6{bottom:40px !important}.left-lg-6{left:40px !important}.top-lg-n6{top:-40px !important}.right-lg-n6{right:-40px !important}.bottom-lg-n6{bottom:-40px !important}.left-lg-n6{left:-40px !important}.top-lg-7{top:48px !important}.right-lg-7{right:48px !important}.bottom-lg-7{bottom:48px !important}.left-lg-7{left:48px !important}.top-lg-n7{top:-48px !important}.right-lg-n7{right:-48px !important}.bottom-lg-n7{bottom:-48px !important}.left-lg-n7{left:-48px !important}.top-lg-8{top:64px !important}.right-lg-8{right:64px !important}.bottom-lg-8{bottom:64px !important}.left-lg-8{left:64px !important}.top-lg-n8{top:-64px !important}.right-lg-n8{right:-64px !important}.bottom-lg-n8{bottom:-64px !important}.left-lg-n8{left:-64px !important}.top-lg-9{top:80px !important}.right-lg-9{right:80px !important}.bottom-lg-9{bottom:80px !important}.left-lg-9{left:80px !important}.top-lg-n9{top:-80px !important}.right-lg-n9{right:-80px !important}.bottom-lg-n9{bottom:-80px !important}.left-lg-n9{left:-80px !important}.top-lg-10{top:96px !important}.right-lg-10{right:96px !important}.bottom-lg-10{bottom:96px !important}.left-lg-10{left:96px !important}.top-lg-n10{top:-96px !important}.right-lg-n10{right:-96px !important}.bottom-lg-n10{bottom:-96px !important}.left-lg-n10{left:-96px !important}.top-lg-11{top:112px !important}.right-lg-11{right:112px !important}.bottom-lg-11{bottom:112px !important}.left-lg-11{left:112px !important}.top-lg-n11{top:-112px !important}.right-lg-n11{right:-112px !important}.bottom-lg-n11{bottom:-112px !important}.left-lg-n11{left:-112px !important}.top-lg-12{top:128px !important}.right-lg-12{right:128px !important}.bottom-lg-12{bottom:128px !important}.left-lg-12{left:128px !important}.top-lg-n12{top:-128px !important}.right-lg-n12{right:-128px !important}.bottom-lg-n12{bottom:-128px !important}.left-lg-n12{left:-128px !important}}.offset-n1{margin-left:-8.33333%}.offset-n2{margin-left:-16.66667%}.offset-n3{margin-left:-25%}.offset-n4{margin-left:-33.33333%}.offset-n5{margin-left:-41.66667%}.offset-n6{margin-left:-50%}.offset-n7{margin-left:-58.33333%}@media (min-width: 544px){.offset-sm-n1{margin-left:-8.33333%}.offset-sm-n2{margin-left:-16.66667%}.offset-sm-n3{margin-left:-25%}.offset-sm-n4{margin-left:-33.33333%}.offset-sm-n5{margin-left:-41.66667%}.offset-sm-n6{margin-left:-50%}.offset-sm-n7{margin-left:-58.33333%}}@media (min-width: 768px){.offset-md-n1{margin-left:-8.33333%}.offset-md-n2{margin-left:-16.66667%}.offset-md-n3{margin-left:-25%}.offset-md-n4{margin-left:-33.33333%}.offset-md-n5{margin-left:-41.66667%}.offset-md-n6{margin-left:-50%}.offset-md-n7{margin-left:-58.33333%}}@media (min-width: 1012px){.offset-lg-n1{margin-left:-8.33333%}.offset-lg-n2{margin-left:-16.66667%}.offset-lg-n3{margin-left:-25%}.offset-lg-n4{margin-left:-33.33333%}.offset-lg-n5{margin-left:-41.66667%}.offset-lg-n6{margin-left:-50%}.offset-lg-n7{margin-left:-58.33333%}}@media (min-width: 1280px){.offset-xl-n1{margin-left:-8.33333%}.offset-xl-n2{margin-left:-16.66667%}.offset-xl-n3{margin-left:-25%}.offset-xl-n4{margin-left:-33.33333%}.offset-xl-n5{margin-left:-41.66667%}.offset-xl-n6{margin-left:-50%}.offset-xl-n7{margin-left:-58.33333%}}.mt-7{margin-top:48px !important}.mb-7{margin-bottom:48px !important}.my-7{margin-top:48px !important;margin-bottom:48px !important}.mt-8{margin-top:64px !important}.mb-8{margin-bottom:64px !important}.my-8{margin-top:64px !important;margin-bottom:64px !important}.mt-9{margin-top:80px !important}.mb-9{margin-bottom:80px !important}.my-9{margin-top:80px !important;margin-bottom:80px !important}.mt-10{margin-top:96px !important}.mb-10{margin-bottom:96px !important}.my-10{margin-top:96px !important;margin-bottom:96px !important}.mt-11{margin-top:112px !important}.mb-11{margin-bottom:112px !important}.my-11{margin-top:112px !important;margin-bottom:112px !important}.mt-12{margin-top:128px !important}.mb-12{margin-bottom:128px !important}.my-12{margin-top:128px !important;margin-bottom:128px !important}@media (min-width: 544px){.mt-sm-7{margin-top:48px !important}.mb-sm-7{margin-bottom:48px !important}.my-sm-7{margin-top:48px !important;margin-bottom:48px !important}.mt-sm-8{margin-top:64px !important}.mb-sm-8{margin-bottom:64px !important}.my-sm-8{margin-top:64px !important;margin-bottom:64px !important}.mt-sm-9{margin-top:80px !important}.mb-sm-9{margin-bottom:80px !important}.my-sm-9{margin-top:80px !important;margin-bottom:80px !important}.mt-sm-10{margin-top:96px !important}.mb-sm-10{margin-bottom:96px !important}.my-sm-10{margin-top:96px !important;margin-bottom:96px !important}.mt-sm-11{margin-top:112px !important}.mb-sm-11{margin-bottom:112px !important}.my-sm-11{margin-top:112px !important;margin-bottom:112px !important}.mt-sm-12{margin-top:128px !important}.mb-sm-12{margin-bottom:128px !important}.my-sm-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 768px){.mt-md-7{margin-top:48px !important}.mb-md-7{margin-bottom:48px !important}.my-md-7{margin-top:48px !important;margin-bottom:48px !important}.mt-md-8{margin-top:64px !important}.mb-md-8{margin-bottom:64px !important}.my-md-8{margin-top:64px !important;margin-bottom:64px !important}.mt-md-9{margin-top:80px !important}.mb-md-9{margin-bottom:80px !important}.my-md-9{margin-top:80px !important;margin-bottom:80px !important}.mt-md-10{margin-top:96px !important}.mb-md-10{margin-bottom:96px !important}.my-md-10{margin-top:96px !important;margin-bottom:96px !important}.mt-md-11{margin-top:112px !important}.mb-md-11{margin-bottom:112px !important}.my-md-11{margin-top:112px !important;margin-bottom:112px !important}.mt-md-12{margin-top:128px !important}.mb-md-12{margin-bottom:128px !important}.my-md-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 1012px){.mt-lg-7{margin-top:48px !important}.mb-lg-7{margin-bottom:48px !important}.my-lg-7{margin-top:48px !important;margin-bottom:48px !important}.mt-lg-8{margin-top:64px !important}.mb-lg-8{margin-bottom:64px !important}.my-lg-8{margin-top:64px !important;margin-bottom:64px !important}.mt-lg-9{margin-top:80px !important}.mb-lg-9{margin-bottom:80px !important}.my-lg-9{margin-top:80px !important;margin-bottom:80px !important}.mt-lg-10{margin-top:96px !important}.mb-lg-10{margin-bottom:96px !important}.my-lg-10{margin-top:96px !important;margin-bottom:96px !important}.mt-lg-11{margin-top:112px !important}.mb-lg-11{margin-bottom:112px !important}.my-lg-11{margin-top:112px !important;margin-bottom:112px !important}.mt-lg-12{margin-top:128px !important}.mb-lg-12{margin-bottom:128px !important}.my-lg-12{margin-top:128px !important;margin-bottom:128px !important}}@media (min-width: 1280px){.mt-xl-7{margin-top:48px !important}.mb-xl-7{margin-bottom:48px !important}.my-xl-7{margin-top:48px !important;margin-bottom:48px !important}.mt-xl-8{margin-top:64px !important}.mb-xl-8{margin-bottom:64px !important}.my-xl-8{margin-top:64px !important;margin-bottom:64px !important}.mt-xl-9{margin-top:80px !important}.mb-xl-9{margin-bottom:80px !important}.my-xl-9{margin-top:80px !important;margin-bottom:80px !important}.mt-xl-10{margin-top:96px !important}.mb-xl-10{margin-bottom:96px !important}.my-xl-10{margin-top:96px !important;margin-bottom:96px !important}.mt-xl-11{margin-top:112px !important}.mb-xl-11{margin-bottom:112px !important}.my-xl-11{margin-top:112px !important;margin-bottom:112px !important}.mt-xl-12{margin-top:128px !important}.mb-xl-12{margin-bottom:128px !important}.my-xl-12{margin-top:128px !important;margin-bottom:128px !important}}.p-7{padding:48px !important}.pt-7{padding-top:48px !important}.pr-7{padding-right:48px !important}.pb-7{padding-bottom:48px !important}.pl-7{padding-left:48px !important}.py-7{padding-top:48px !important;padding-bottom:48px !important}.p-8{padding:64px !important}.pt-8{padding-top:64px !important}.pr-8{padding-right:64px !important}.pb-8{padding-bottom:64px !important}.pl-8{padding-left:64px !important}.py-8{padding-top:64px !important;padding-bottom:64px !important}.p-9{padding:80px !important}.pt-9{padding-top:80px !important}.pr-9{padding-right:80px !important}.pb-9{padding-bottom:80px !important}.pl-9{padding-left:80px !important}.py-9{padding-top:80px !important;padding-bottom:80px !important}.p-10{padding:96px !important}.pt-10{padding-top:96px !important}.pr-10{padding-right:96px !important}.pb-10{padding-bottom:96px !important}.pl-10{padding-left:96px !important}.py-10{padding-top:96px !important;padding-bottom:96px !important}.p-11{padding:112px !important}.pt-11{padding-top:112px !important}.pr-11{padding-right:112px !important}.pb-11{padding-bottom:112px !important}.pl-11{padding-left:112px !important}.py-11{padding-top:112px !important;padding-bottom:112px !important}.p-12{padding:128px !important}.pt-12{padding-top:128px !important}.pr-12{padding-right:128px !important}.pb-12{padding-bottom:128px !important}.pl-12{padding-left:128px !important}.py-12{padding-top:128px !important;padding-bottom:128px !important}@media (min-width: 544px){.p-sm-7{padding:48px !important}.pt-sm-7{padding-top:48px !important}.pr-sm-7{padding-right:48px !important}.pb-sm-7{padding-bottom:48px !important}.pl-sm-7{padding-left:48px !important}.py-sm-7{padding-top:48px !important;padding-bottom:48px !important}.p-sm-8{padding:64px !important}.pt-sm-8{padding-top:64px !important}.pr-sm-8{padding-right:64px !important}.pb-sm-8{padding-bottom:64px !important}.pl-sm-8{padding-left:64px !important}.py-sm-8{padding-top:64px !important;padding-bottom:64px !important}.p-sm-9{padding:80px !important}.pt-sm-9{padding-top:80px !important}.pr-sm-9{padding-right:80px !important}.pb-sm-9{padding-bottom:80px !important}.pl-sm-9{padding-left:80px !important}.py-sm-9{padding-top:80px !important;padding-bottom:80px !important}.p-sm-10{padding:96px !important}.pt-sm-10{padding-top:96px !important}.pr-sm-10{padding-right:96px !important}.pb-sm-10{padding-bottom:96px !important}.pl-sm-10{padding-left:96px !important}.py-sm-10{padding-top:96px !important;padding-bottom:96px !important}.p-sm-11{padding:112px !important}.pt-sm-11{padding-top:112px !important}.pr-sm-11{padding-right:112px !important}.pb-sm-11{padding-bottom:112px !important}.pl-sm-11{padding-left:112px !important}.py-sm-11{padding-top:112px !important;padding-bottom:112px !important}.p-sm-12{padding:128px !important}.pt-sm-12{padding-top:128px !important}.pr-sm-12{padding-right:128px !important}.pb-sm-12{padding-bottom:128px !important}.pl-sm-12{padding-left:128px !important}.py-sm-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 768px){.p-md-7{padding:48px !important}.pt-md-7{padding-top:48px !important}.pr-md-7{padding-right:48px !important}.pb-md-7{padding-bottom:48px !important}.pl-md-7{padding-left:48px !important}.py-md-7{padding-top:48px !important;padding-bottom:48px !important}.p-md-8{padding:64px !important}.pt-md-8{padding-top:64px !important}.pr-md-8{padding-right:64px !important}.pb-md-8{padding-bottom:64px !important}.pl-md-8{padding-left:64px !important}.py-md-8{padding-top:64px !important;padding-bottom:64px !important}.p-md-9{padding:80px !important}.pt-md-9{padding-top:80px !important}.pr-md-9{padding-right:80px !important}.pb-md-9{padding-bottom:80px !important}.pl-md-9{padding-left:80px !important}.py-md-9{padding-top:80px !important;padding-bottom:80px !important}.p-md-10{padding:96px !important}.pt-md-10{padding-top:96px !important}.pr-md-10{padding-right:96px !important}.pb-md-10{padding-bottom:96px !important}.pl-md-10{padding-left:96px !important}.py-md-10{padding-top:96px !important;padding-bottom:96px !important}.p-md-11{padding:112px !important}.pt-md-11{padding-top:112px !important}.pr-md-11{padding-right:112px !important}.pb-md-11{padding-bottom:112px !important}.pl-md-11{padding-left:112px !important}.py-md-11{padding-top:112px !important;padding-bottom:112px !important}.p-md-12{padding:128px !important}.pt-md-12{padding-top:128px !important}.pr-md-12{padding-right:128px !important}.pb-md-12{padding-bottom:128px !important}.pl-md-12{padding-left:128px !important}.py-md-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 1012px){.p-lg-7{padding:48px !important}.pt-lg-7{padding-top:48px !important}.pr-lg-7{padding-right:48px !important}.pb-lg-7{padding-bottom:48px !important}.pl-lg-7{padding-left:48px !important}.py-lg-7{padding-top:48px !important;padding-bottom:48px !important}.p-lg-8{padding:64px !important}.pt-lg-8{padding-top:64px !important}.pr-lg-8{padding-right:64px !important}.pb-lg-8{padding-bottom:64px !important}.pl-lg-8{padding-left:64px !important}.py-lg-8{padding-top:64px !important;padding-bottom:64px !important}.p-lg-9{padding:80px !important}.pt-lg-9{padding-top:80px !important}.pr-lg-9{padding-right:80px !important}.pb-lg-9{padding-bottom:80px !important}.pl-lg-9{padding-left:80px !important}.py-lg-9{padding-top:80px !important;padding-bottom:80px !important}.p-lg-10{padding:96px !important}.pt-lg-10{padding-top:96px !important}.pr-lg-10{padding-right:96px !important}.pb-lg-10{padding-bottom:96px !important}.pl-lg-10{padding-left:96px !important}.py-lg-10{padding-top:96px !important;padding-bottom:96px !important}.p-lg-11{padding:112px !important}.pt-lg-11{padding-top:112px !important}.pr-lg-11{padding-right:112px !important}.pb-lg-11{padding-bottom:112px !important}.pl-lg-11{padding-left:112px !important}.py-lg-11{padding-top:112px !important;padding-bottom:112px !important}.p-lg-12{padding:128px !important}.pt-lg-12{padding-top:128px !important}.pr-lg-12{padding-right:128px !important}.pb-lg-12{padding-bottom:128px !important}.pl-lg-12{padding-left:128px !important}.py-lg-12{padding-top:128px !important;padding-bottom:128px !important}}@media (min-width: 1280px){.p-xl-7{padding:48px !important}.pt-xl-7{padding-top:48px !important}.pr-xl-7{padding-right:48px !important}.pb-xl-7{padding-bottom:48px !important}.pl-xl-7{padding-left:48px !important}.py-xl-7{padding-top:48px !important;padding-bottom:48px !important}.p-xl-8{padding:64px !important}.pt-xl-8{padding-top:64px !important}.pr-xl-8{padding-right:64px !important}.pb-xl-8{padding-bottom:64px !important}.pl-xl-8{padding-left:64px !important}.py-xl-8{padding-top:64px !important;padding-bottom:64px !important}.p-xl-9{padding:80px !important}.pt-xl-9{padding-top:80px !important}.pr-xl-9{padding-right:80px !important}.pb-xl-9{padding-bottom:80px !important}.pl-xl-9{padding-left:80px !important}.py-xl-9{padding-top:80px !important;padding-bottom:80px !important}.p-xl-10{padding:96px !important}.pt-xl-10{padding-top:96px !important}.pr-xl-10{padding-right:96px !important}.pb-xl-10{padding-bottom:96px !important}.pl-xl-10{padding-left:96px !important}.py-xl-10{padding-top:96px !important;padding-bottom:96px !important}.p-xl-11{padding:112px !important}.pt-xl-11{padding-top:112px !important}.pr-xl-11{padding-right:112px !important}.pb-xl-11{padding-bottom:112px !important}.pl-xl-11{padding-left:112px !important}.py-xl-11{padding-top:112px !important;padding-bottom:112px !important}.p-xl-12{padding:128px !important}.pt-xl-12{padding-top:128px !important}.pr-xl-12{padding-right:128px !important}.pb-xl-12{padding-bottom:128px !important}.pl-xl-12{padding-left:128px !important}.py-xl-12{padding-top:128px !important;padding-bottom:128px !important}}a{-moz-outline:none !important}.jaws{display:block;height:1px;left:-5000px;overflow:hidden;position:absolute;top:-5000px;width:1px}.disabled{color:lightgray}a.tabnav-tab:focus{outline:none}#gollum-editor-body-ace{overflow:hidden;font-family:Consolas, "Liberation Mono", Courier, monospace;font-size:1em}#gollum-editor .singleline{display:block;margin:0 0 0.7em 0}#gollum-editor .singleline input{font-size:1.1em;font-family:"Helvetica Neue", Helvetica, Arial, freesans, clean, sans-serif;line-height:1.5em;margin:1em 0 0.4em;padding:0.5em;width:100%}#gollum-editor .singleline input.ph{color:#999}.ie #gollum-editor .singleline input{padding-top:0.25em;padding-bottom:0.75em}#gollum-editor .path_note{text-align:right;font-size:small;padding-top:5px;padding-right:5px}#gollum-editor #gollum-editor-type-switcher{display:none}#gollum-editor #gollum-editor-function-bar{border-bottom:1px solid #ddd;padding:0}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar{overflow:hidden}}#gollum-editor #gollum-editor-function-bar #gollum-editor-function-buttons{display:none}#gollum-editor #gollum-editor-function-bar.active #gollum-editor-function-buttons{display:block;margin:0;padding:0}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar.active #gollum-editor-function-buttons{overflow:hidden;margin:0;padding:0 0 1.1em 0;float:left}}#gollum-editor #gollum-editor-function-bar a.function-button{float:left;overflow:hidden;margin:1px 1px 0 0;width:32px;height:32px;display:block;font-weight:bold;color:#333;background-color:#f7f7f7;border:1px solid #d4d4d4;text-shadow:0 1px 0 #fff;cursor:pointer;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');background:-webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));background:-moz-linear-gradient(top, #f4f4f4, #ececec);border-radius:3px}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button{width:25px;height:25px}}#gollum-editor #gollum-editor-function-bar a.function-button:hover{color:#fff;background:#3072b3;border-color:#518cc6 #518cc6 #2a65a0;text-shadow:0 -1px 0 rgba(0,0,0,0.3);text-decoration:none;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');background:-webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));background:-moz-linear-gradient(top, #599bdc, #3072b3)}#gollum-editor #gollum-editor-function-bar a.function-button:visited{text-decoration:none}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button{margin:0.2em 0.5em 0 0}}#gollum-editor #gollum-editor-function-bar a.function-button span{display:block;background-image:url("../images/icon-sprite.png");background-repeat:no-repeat;overflow:hidden;text-indent:-5000px;width:32px;height:32px}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar a.function-button span{width:25px;height:25px}}#gollum-editor #gollum-editor-function-bar a.disabled{display:none}#gollum-editor #gollum-editor-function-bar span.function-divider{display:none}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar span.function-divider{display:block;width:0.5em;float:left}}#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector{padding:0.2em 0 0.5em 0;clear:both}#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector:after{content:".";display:block;clear:both;visibility:hidden}@media all and (min-width: 940px){#gollum-editor #gollum-editor-function-bar #gollum-editor-format-selector{clear:none;text-align:right}}#gollum-editor textarea{height:30em;overflow:hidden}#gollum-editor .collapsed,#gollum-editor .expanded{border-bottom:1px solid #ddd;display:block;overflow:hidden;padding:0.5em 0 0}#gollum-editor .collapsed button,#gollum-editor .expanded button{margin-bottom:6px}#gollum-editor .collapsed h4,#gollum-editor .expanded h4{font-size:1.6em;margin:0;display:inline-block;padding:0.25em 0 0 0.3em;text-shadow:0 -1px 0 #fff;line-height:32px}@media all and (min-width: 940px){#gollum-editor .collapsed h4,#gollum-editor .expanded h4{line-height:25px}}#gollum-editor .collapsed h4{color:#bbb}#gollum-editor .collapsed a.button span{background-position:-348px 3px}#gollum-editor .collapsed a.button:hover span{background-position:-348px -25px}@media all and (min-width: 940px){#gollum-editor .collapsed a.button span{background-position:-351px 0}#gollum-editor .collapsed a.button:hover span{background-position:-351px -28px}}#gollum-editor .collapsed textarea{display:none}#gollum-editor .expanded a.button span{background-position:-375px 3px}#gollum-editor .expanded a.button:hover span{background-position:-375px -25px}@media all and (min-width: 940px){#gollum-editor .expanded a.button span{background-position:-378px 0}#gollum-editor .expanded a.button:hover span{background-position:-378px -28px}}#gollum-editor .expanded textarea{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;display:block;clear:both;font-size:1em;font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;line-height:1.4em;margin:0 0 0.4em;padding:0.5em;width:100%;height:7em}@media all and (min-width: 940px){#gollum-editor .expanded textarea{margin:1em 0 0.4em}}#gollum-editor #gollum-editor-body+.collapsed,#gollum-editor #gollum-editor-body+.expanded{border-top:1px solid #ddd;margin-top:0.7em}#gollum-editor-title-field.active{border-bottom:1px solid #ddd;display:block;margin:0 0 0.3em 0;padding:0 0 0.5em 0}#gollum-editor-title-field input#gollum-editor-page-title{font-weight:bold;margin-top:0}#gollum-editor-title-field input#gollum-editor-page-title.ph{color:#000}#gollum-editor-title-field+#gollum-editor-function-bar{margin-top:0.6em}a#function-bold span{background-position:3px 3px}a#function-bold:hover span{background-position:3px -25px}@media all and (min-width: 940px){a#function-bold span{background-position:0px 0}a#function-bold:hover span{background-position:0px -28px}}a#function-italic span{background-position:-24px 3px}a#function-italic:hover span{background-position:-24px -25px}@media all and (min-width: 940px){a#function-italic span{background-position:-27px 0}a#function-italic:hover span{background-position:-27px -28px}}a#function-underline span{background-position:-51px 3px}a#function-underline:hover span{background-position:-51px -25px}@media all and (min-width: 940px){a#function-underline span{background-position:-54px 0}a#function-underline:hover span{background-position:-54px -28px}}a#function-code span{background-position:-78px 3px}a#function-code:hover span{background-position:-78px -25px}@media all and (min-width: 940px){a#function-code span{background-position:-81px 0}a#function-code:hover span{background-position:-81px -28px}}a#function-ul span{background-position:-105px 3px}a#function-ul:hover span{background-position:-105px -25px}@media all and (min-width: 940px){a#function-ul span{background-position:-108px 0}a#function-ul:hover span{background-position:-108px -28px}}a#function-ol span{background-position:-132px 3px}a#function-ol:hover span{background-position:-132px -25px}@media all and (min-width: 940px){a#function-ol span{background-position:-135px 0}a#function-ol:hover span{background-position:-135px -28px}}a#function-blockquote span{background-position:-159px 3px}a#function-blockquote:hover span{background-position:-159px -25px}@media all and (min-width: 940px){a#function-blockquote span{background-position:-162px 0}a#function-blockquote:hover span{background-position:-162px -28px}}a#function-hr span{background-position:-186px 3px}a#function-hr:hover span{background-position:-186px -25px}@media all and (min-width: 940px){a#function-hr span{background-position:-189px 0}a#function-hr:hover span{background-position:-189px -28px}}a#function-h1 span{background-position:-213px 3px}a#function-h1:hover span{background-position:-213px -25px}@media all and (min-width: 940px){a#function-h1 span{background-position:-216px 0}a#function-h1:hover span{background-position:-216px -28px}}a#function-h2 span{background-position:-240px 3px}a#function-h2:hover span{background-position:-240px -25px}@media all and (min-width: 940px){a#function-h2 span{background-position:-243px 0}a#function-h2:hover span{background-position:-243px -28px}}a#function-h3 span{background-position:-267px 3px}a#function-h3:hover span{background-position:-267px -25px}@media all and (min-width: 940px){a#function-h3 span{background-position:-270px 0}a#function-h3:hover span{background-position:-270px -28px}}a#function-link span{background-position:-294px 3px}a#function-link:hover span{background-position:-294px -25px}@media all and (min-width: 940px){a#function-link span{background-position:-297px 0}a#function-link:hover span{background-position:-297px -28px}}a#function-image span{background-position:-321px 3px}a#function-image:hover span{background-position:-321px -25px}@media all and (min-width: 940px){a#function-image span{background-position:-324px 0}a#function-image:hover span{background-position:-324px -28px}}a#function-critic-accept span{background-position:-348px 3px}a#function-critic-accept:hover span{background-position:-348px -25px}@media all and (min-width: 940px){a#function-critic-accept span{background-position:-351px 0}a#function-critic-accept:hover span{background-position:-351px -28px}}a#function-critic-reject span{background-position:-375px 3px}a#function-critic-reject:hover span{background-position:-375px -25px}@media all and (min-width: 940px){a#function-critic-reject span{background-position:-378px 0}a#function-critic-reject:hover span{background-position:-378px -28px}}a#function-help span{background-position:-402px 3px}a#function-help:hover span{background-position:-402px -25px}@media all and (min-width: 940px){a#function-help span{background-position:-405px 0}a#function-help:hover span{background-position:-405px -28px}}a#function-search span{background-position:-429px 3px}a#function-search:hover span{background-position:-429px -25px}@media all and (min-width: 940px){a#function-search span{background-position:-432px 0}a#function-search:hover span{background-position:-432px -28px}}#gollum-editor-body-ace+div{display:none}#gollum-editor-body-ace.dragging{box-shadow:0 0 10px #AAE000}#gollum-editor-body-ace.uploading{opacity:1}#gollum-editor-body-ace.uploading+div{display:block}#gollum-editor-help{clear:both;margin:0;overflow:hidden;padding:0;border:1px solid #ddd;border-width:0 1px 1px 1px}@media all and (min-width: 940px){#gollum-editor-help{clear:none}}#gollum-editor-help-parent,#gollum-editor-help-list{display:block;list-style-type:none;margin:0;float:left;width:50%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}@media all and (min-width: 940px){#gollum-editor-help-parent,#gollum-editor-help-list{height:17em;width:18%;overflow:auto;padding:1em 0}}#gollum-editor-help-parent li,#gollum-editor-help-list li{font-size:1.2em;line-height:1.6em;margin:0;padding:0}#gollum-editor-help-parent li a,#gollum-editor-help-list li a{border:1px solid transparent;border-width:1px 0;display:block;font-weight:bold;height:100%;width:auto;padding:0.2em 1em;text-shadow:0 -1px 0 #fff;font-size:0.8em}@media all and (min-width: 940px){#gollum-editor-help-parent li a,#gollum-editor-help-list li a{font-size:1em}}#gollum-editor-help-parent li a:hover,#gollum-editor-help-list li a:hover{background:#fff;border-color:#f0f0f0;text-decoration:none;box-shadow:none}#gollum-editor-help-parent li a.selected,#gollum-editor-help-list li a.selected{border:1px solid #eee;border-bottom-color:#e7e7e7;border-width:1px 0;background:#fff;color:#000;box-shadow:0 1px 2px #f0f0f0}#gollum-editor-help-parent{border-right:1px solid #eee}#gollum-editor-help-list{background:#fafafa;border-right:1px solid #eee}#gollum-editor-help-wrapper{background:#fff;overflow:auto;height:17em;padding:1em;clear:both}@media all and (min-width: 940px){#gollum-editor-help-wrapper{clear:none}}#gollum-editor-help-content{font-size:1.2em;margin:0 1em 0 0.5em;padding:0;line-height:1.8em}#gollum-editor-help-content p{margin:0 0 1em 0;padding:0}#gollum-dialog-dialog{display:block;overflow:visible;position:absolute;top:0;left:0;width:100%;height:100%;z-index:999999}@media all and (min-width: 480px){#gollum-dialog-dialog{position:absolute;position:fixed;width:auto;height:auto}}@media all and (min-width: 940px){#gollum-dialog-dialog{position:absolute;top:50%;left:50%}}#gollum-dialog-dialog.active{display:block}#gollum-dialog-dialog-inner{margin:0px;width:100%;height:100%;padding:1em;overflow:hidden;background-color:white;webkit-box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);moz-box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);box-shadow:8px 7px 21px 0px rgba(0,0,0,0.68);top:0px;right:0px;bottom:0px;left:0px}@media all and (min-width: 480px){#gollum-dialog-dialog-inner{margin:auto;position:fixed;width:auto;height:auto;min-width:280px;min-height:380px;max-width:450px;max-height:450px;top:10px;right:10px;bottom:10px;left:10px}}@media all and (min-width: 940px){#gollum-dialog-dialog-inner{margin:0 0 0 -225px;position:relative;width:450px;top:auto;right:auto;bottom:auto;left:auto}}#gollum-dialog-dialog-inner h4{border-bottom:1px solid #ddd;color:#000;font-size:1.8em;line-height:normal;font-weight:bold;margin:0 0 0.75em 0;padding:0 0 0.3em 0}#gollum-dialog-dialog-bg{padding:1em;height:100%;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box}@media all and (min-width: 480px){#gollum-dialog-dialog-bg{overflow:hidden;filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f7f7f7', endColorstr='#ffffff');background:-webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#fff));background:-moz-linear-gradient(top, #f7f7f7, #fff)}}@media all and (min-width: 940px){#gollum-dialog-dialog-bg{height:auto}}#gollum-dialog-dialog-body{font-size:1.2em;line-height:1.6em}#gollum-dialog-dialog-body fieldset{display:block;border:0;margin:0;padding:0}#gollum-dialog-dialog-body fieldset:after{content:".";display:block;clear:both;visibility:hidden}#gollum-dialog-dialog-body fieldset .field{margin:0 0 1.5em 0;padding:0}#gollum-dialog-dialog-body fieldset .field:last-child{margin:0 0 1em 0}#gollum-dialog-dialog-body fieldset .field label{color:#000;display:block;font-size:1.2em;font-weight:bold;line-height:1.6em;margin:0;padding:0;min-width:80px}#gollum-dialog-dialog-body fieldset .field input.code{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace}#gollum-dialog-dialog-body fieldset .field span.context{font-size:.9em;color:#666}#gollum-dialog-dialog-body fieldset .field span.context span.path{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;font-weight:bold}#gollum-dialog-dialog-buttons{overflow:hidden}.criticmarkup mark{background-color:#fffd38;text-decoration:none}.criticmarkup del{background-color:#f6a9a9;text-decoration:line-through}.criticmarkup ins{background-color:#a9f6a9;text-decoration:none}.criticmarkup ins.break{display:block;line-height:2px;padding:0 !important;margin:0 !important}.criticmarkup ins.break span{line-height:1.5em}.criticmarkup .popover{background-color:#fffd38;color:#000}.criticmarkup .critic.comment{display:none}.criticmarkup .popover:hover span.critic.comment{display:block;position:absolute;width:200px;left:30%;font-size:0.8em;color:#ccc;background-color:#333;z-index:10;padding:0.5em 1em;border-radius:0.5em}#user-icons a,#user-icons img,#user-icons span,#user-icons svg{vertical-align:middle}#user-icons img,#user-icons svg{width:20px;height:20px}.history #footer{margin-bottom:7em}.overview{border:none}.compare .data table tr td{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;line-height:1.5em}.compare .data table tr td+td+td{width:100%}.compare .data table tr td.line_numbers{border-right:1px solid #999;color:#999;padding:0 0 0 0.5em}.emoji{width:20px;height:20px;vertical-align:-18%}*{margin:0;padding:0}div{display:block}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}html,body{color:#333}body{background-color:white;font:13.34px "Helvetica Neue", Helvetica, Arial, freesans, clean, sans-serif;font-size:small;line-height:1.4;counter-reset:h1}img{border:0}a{color:#4183c4;text-decoration:none}a.absent{color:#c00}a:focus{outline:thin dotted}a:active,a:hover{outline:0}.header-enum{--header-enum-style: decimal}.header-enum h2{counter-reset:h3}.header-enum h3{counter-reset:h4}.header-enum h4{counter-reset:h5}.header-enum h5{counter-reset:h6}.header-enum h1:before{counter-increment:h1;content:counter(h1,var(--header-enum-style)) ". "}.header-enum h2:before{counter-increment:h2;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) ". "}.header-enum h3:before{counter-increment:h3;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) ". "}.header-enum h4:before{counter-increment:h4;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) ". "}.header-enum h5:before{counter-increment:h5;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) "." counter(h5,var(--header-enum-style)) ". "}.header-enum h6:before{counter-increment:h6;content:counter(h1,var(--header-enum-style)) "." counter(h2,var(--header-enum-style)) "." counter(h3,var(--header-enum-style)) "." counter(h4,var(--header-enum-style)) "." counter(h5,var(--header-enum-style)) "." counter(h6,var(--header-enum-style)) ". "}#footer{margin-bottom:7em;clear:both}.markdown-body{padding:1em 1em 1em 0;font-size:15px;line-height:1.7;overflow:hidden;word-wrap:break-word}.markdown-body table.toc{width:auto;display:inline-table}.markdown-body table.toc .anchor{display:none}.markdown-body .anchor{display:inline-block;position:absolute;opacity:0;background:url('data:image/svg+xml;utf8,') no-repeat;background-size:0.6em 1.35em;padding-right:0.5em;padding-top:0.4em;margin-left:-0.8em;width:1em;height:1em;text-decoration:none;transition-property:opacity;transition:0.1s}.markdown-body *:hover>.anchor,.markdown-body .anchor:focus{opacity:1}.markdown-body .anchor.edit{margin-left:2em !important;margin-top:0.5em;height:0.5em;background:url('data:image/svg+xml;utf8,') no-repeat}.markdown-body a.absent{color:#c00}.markdown-body a[id].wiki-toc-anchor{color:inherit;text-decoration:none}.markdown-body a:first-child h1,.markdown-body a:first-child h2,.markdown-body a:first-child h3,.markdown-body a:first-child h4,.markdown-body a:first-child h5,.markdown-body a:first-child h6{margin-top:0;padding-top:0}.markdown-body>*:first-child{margin-top:0 !important}.markdown-body>*:last-child{margin-bottom:0 !important}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{font-size:inherit}.markdown-body h1+p,.markdown-body h2+p,.markdown-body h3+p,.markdown-body h4+p,.markdown-body h5+p,.markdown-body h6+p{margin-top:0}.markdown-body h1{border-bottom:1px solid #ddd;margin-top:20px;margin-bottom:10px}.markdown-body h1+h2+h3{margin-top:30px}.markdown-body h2{border-bottom:1px solid #eee}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre{margin:15px 0}.markdown-body ul,.markdown-body ol{padding-left:30px}.markdown-body dl{padding:0}.markdown-body dl dt{font-size:14px;font-weight:bold;font-style:italic;padding:0;margin:15px 0 5px}.markdown-body dl dt:first-child{padding:0}.markdown-body dl dt>:first-child{margin-top:0}.markdown-body dl dt>:last-child{margin-bottom:0}.markdown-body dl dd{margin:0 0 15px;padding:0 15px}.markdown-body dl dd>:first-child{margin-top:0}.markdown-body dl dd>:last-child{margin-bottom:0}.markdown-body li{margin:0px}.markdown-body li p.first{display:inline-block}.markdown-body blockquote{border-left:4px solid #DDD;padding:0 15px;color:#777}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body table{padding:0;border-collapse:collapse;border-spacing:0}.markdown-body table tr{border-top:1px solid #ccc;background-color:#fff;margin:0;padding:0}.markdown-body table tr:nth-child(2n){background-color:#f8f8f8}.markdown-body table tr th,.markdown-body table tr td,.markdown-body table tr table{border:1px solid #ccc;text-align:none;margin:0;padding:6px 13px}.markdown-body table tr th>:first-child,.markdown-body table tr td>:first-child,.markdown-body table tr table>:first-child{margin-top:0}.markdown-body table tr th>:last-child,.markdown-body table tr td>:last-child,.markdown-body table tr table>:last-child{margin-bottom:0}.markdown-body table tr th{font-weight:bold}.markdown-body img{max-width:100%}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{border:1px solid #ddd;display:block;float:left;overflow:hidden;margin:13px 0 0;padding:7px;width:auto}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{clear:both;color:#333;display:block;padding:5px 0 0}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;overflow:hidden;margin:13px auto 0;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;overflow:hidden;margin:13px 0 0;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;margin-right:13px;overflow:hidden;float:left}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;margin-left:13px;overflow:hidden;float:right}.markdown-body span.float-right>span{display:block;overflow:hidden;margin:13px auto 0;text-align:right}.markdown-body code,.markdown-body pre,.markdown-body tt{font-family:Inconsolata, Consolas, "Liberation Mono", "Monaco", "Andale Mono", "Courier New", monospace;font-size:12px}.markdown-body code,.markdown-body tt{margin:0 2px;padding:0 5px;white-space:nowrap;border:1px solid #ddd;background-color:#f8f8f8;border-radius:3px}.markdown-body pre{background-color:#f8f8f8;border:1px solid #ccc;font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:3px}.markdown-body pre>tt,.markdown-body pre>code{margin:0;padding:0;white-space:pre;border:none;background:transparent}.markdown-body pre pre,.markdown-body pre code,.markdown-body pre tt{background-color:transparent;border:none}.markdown-body pre pre{margin:0;padding:0}.toc{background-color:white;border:1px solid #ddd;padding:5px 10px;margin:0;border-radius:3px}.toc ul{padding-left:10px;margin:0}.toc ul li{margin:0}.toc ul ul{font-size:15px}.toc ul ul ul{font-size:14px}.toc>ul{margin-left:10px;font-size:15px}.toc-title{color:#888;font-size:14px;line-height:1.6;padding:2px;border-bottom:1px solid #ddd;margin-bottom:3px}#header-content .toc,#footer-content .toc,#sidebar-content .toc{border:none}.highlight{background:#fff}.highlight .c{color:#998;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .k,.highlight .o{font-weight:bold}.highlight .cm,.highlight .c1{color:#998;font-style:italic}.highlight .cp{color:#999;font-weight:bold}.highlight .cs{color:#999;font-weight:bold;font-style:italic}.highlight .gd{color:#000;background-color:#fdd}.highlight .gd .x{color:#000;background-color:#faa}.highlight .ge{font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .gi .x{color:#000;background-color:#afa}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:bold}.highlight .gt{color:#a00}.highlight .gu{color:#800080;font-weight:bold}.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr{font-weight:bold}.highlight .kt{color:#458;font-weight:bold}.highlight .m{color:#099}.highlight .s{color:#d14}.highlight .na,.highlight .no,.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:#008080}.highlight .nb{color:#0086B3}.highlight .nc{color:#458;font-weight:bold}.highlight .ni{color:#800080}.highlight .ne,.highlight .nf{color:#900;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:#000080}.highlight .ow{font-weight:bold}.highlight .w{color:#bbb}.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,.highlight .il{color:#099}.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .s1{color:#d14}.highlight .sr{color:#009926}.highlight .ss{color:#990073}.highlight .bp{color:#999}.highlight .gc{color:#999;background-color:#EAF2F5}.highlight .gg{color:#000000a0}.type-csharp .highlight .k,.type-csharp .highlight .kt{color:#00F}.type-csharp .highlight .nf{color:#000;font-weight:normal}.type-csharp .highlight .nc{color:#2B91AF}.type-csharp .highlight .nn{color:#000}.type-csharp .highlight .s,.type-csharp .highlight .sc{color:#A31515}div.pagination a.disabled{pointer-events:none}.search-results .search-context li:nth-child(n+4){display:none}@-webkit-keyframes spinner-animation{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@-moz-keyframes spinner-animation{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(360deg)}}@-ms-keyframes spinner-animation{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(360deg)}}@-o-keyframes spinner-animation{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(100deg)}}@keyframes spinner-animation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.dotted-spinner{background-color:transparent;border:3px dotted #1277c2;border-radius:50%;border-top-color:transparent;border-right-color:transparent;width:1.4em;height:1.4em;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-animation:spinner-animation 0.65s infinite linear;-moz-animation:spinner-animation 0.65s infinite linear;-o-animation:spinner-animation 0.65s infinite linear;-ms-animation:spinner-animation 0.65s infinite linear;animation:spinner-animation 0.65s infinite linear;vertical-align:top}.dotted-spinner.hidden{display:none} diff --git a/lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css.gz b/lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css.gz similarity index 98% rename from lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css.gz rename to lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css.gz index 6354f16c..83ca1788 100644 Binary files a/lib/gollum/public/assets/app-b205e593a30f1cc0054e2e9ed9fc8af3658d8ef4a62b9708c20f204560deefb7.css.gz and b/lib/gollum/public/assets/app-4215e58002a43c4b2e9f0f7caa05a81c7c09d22a918c6fe40cd8e423db3110b5.css.gz differ diff --git a/lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js.gz b/lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js.gz index 314b1220..fde8c9be 100644 Binary files a/lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js.gz and b/lib/gollum/public/assets/app-6e925e38a12a40c4fa9e0400cc874e0f4f97b66fdeb90a144dea527dbb544fbd.js.gz differ diff --git a/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz b/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz index 343ad328..8cffc7e1 100644 Binary files a/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz and b/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz differ diff --git a/lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js b/lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js similarity index 98% rename from lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js rename to lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js index 45b8102a..31604474 100644 --- a/lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js +++ b/lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js @@ -16,7 +16,7 @@ this.add("semicolon","insertion",function(e,t,n,i,o){if(";"===o&&n.selection.isE var l,c,h=t.line,u=e.firstLine(),d=e.lastLine(),g=h;if(i){for(;u<=g&&g<=d&&n>0;)a(g),s(g,i)&&n--,g+=i;return new Rt(g,0)}var p=e.state.vim;if(p.visualLine&&s(h,1,!0)){var f=p.sel.anchor;s(f.line,-1,!0)&&(!o||f.line!=h)&&(h+=1)}var m=r(h);for(g=h;g<=d&&n;g++)s(g,1,!0)&&(!o||r(g)!=m)&&n--;for(c=new Rt(g,0),g>d&&!m?m=!0:o=!1,g=h;g>u&&(o&&r(g)!=m&&g!=h||!s(g,-1,!0));g--);return l=new Rt(g,0),{start:l,end:c}}function Ce(e,t,n,i){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!d(e,t.ln))return t.line=null,t.ln=null,t.pos=null,void 0;t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function r(e,t,n,i){var r=e.getLine(t),s=""===r,a={line:r,ln:t,pos:n,dir:i},l={ln:a.ln,pos:a.pos},c=""===a.line;for(o(e,a);null!==a.line;){if(l.ln=a.ln,l.pos=a.pos,""===a.line&&!c)return{ln:a.ln,pos:a.pos};if(s&&""!==a.line&&!v(a.line[a.pos]))return{ln:a.ln,pos:a.pos};b(a.line[a.pos])&&!s&&(a.pos===a.line.length-1||v(a.line[a.pos+1]))&&(s=!0),o(e,a)}var r=e.getLine(l.ln);l.pos=0;for(var h=r.length-1;h>=0;--h)if(!v(r[h])){l.pos=h;break}return l}function s(e,t,n,i){var r=e.getLine(t),s={line:r,ln:t,pos:n,dir:i},a={ln:s.ln,pos:null},l=""===s.line;for(o(e,s);null!==s.line;){if(""===s.line&&!l)return null!==a.pos?a:{ln:s.ln,pos:s.pos};if(b(s.line[s.pos])&&null!==a.pos&&(s.ln!==a.ln||s.pos+1!==a.pos))return a;""!==s.line&&!v(s.line[s.pos])&&(l=!1,a={ln:s.ln,pos:s.pos}),o(e,s)}var r=e.getLine(a.ln);a.pos=0;for(var c=0;c0;)a=i<0?s(e,a.ln,a.pos,i):r(e,a.ln,a.pos,i),n--;return Rt(a.ln,a.pos)}function Se(e,t,n,i){var o,r,s=t,a={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],c=e.getLine(s.line).charAt(s.ch),h=c===l?1:0;if(o=e.scanForBracket(Rt(s.line,s.ch+h),-1,undefined,{bracketRegex:a}),r=e.scanForBracket(Rt(s.line,s.ch+h),1,undefined,{bracketRegex:a}),!o||!r)return{start:s,end:s};if(o=o.pos,r=r.pos,o.line==r.line&&o.ch>r.ch||o.line>r.line){var u=o;o=r,r=u}return i?r.ch+=1:o.ch+=1,{start:o,end:r}}function $e(e,t,n,i){var o,r,s,a,l=K(t),c=e.getLine(l.line),h=c.split(""),u=h.indexOf(n);if(l.ch-1&&!o;s--)h[s]==n&&(o=s+1);else o=l.ch+1;if(o&&!r)for(s=o,a=h.length;s'+t+"",{bottom:!0,duration:5e3}):alert(t)}function Ne(e,t){var n=''+(e||"")+'';return t&&(n+=' '+t+""),n}function De(e,t){var n=(t.prefix||"")+" "+(t.desc||"");Le(e,Ne(t.prefix,t.desc),n,t.onClose,t)}function Pe(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],i=0;i=t&&e<=n:e==t}function je(e){var t=e.ace.renderer;return{top:t.getFirstFullyVisibleRow(),bottom:t.getLastFullyVisibleRow()}}function qe(e,t,n){var i=t.marks[n];return i&&i.find()}function Xe(e,t,n,i,o,r,s,a,l){function c(){e.operation(function(){for(;!p;)h(),u();d()})}function h(){var t=e.getRange(r.from(),r.to()),n=t.replace(s,a);r.replace(n)}function u(){for(;r.findNext()&&Ge(r.from(),i,o);)if(n||!f||r.from().line!=f.line)return e.scrollIntoView(r.from(),30),e.setSelection(r.from(),r.to()),f=r.from(),p=!1,void 0;p=!0}function d(t){if(t&&t(),e.focus(),f){e.setCursor(f);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=f.ch}l&&l()}function g(t,n,i){switch(_t.e_stop(t),_t.keyName(t)){case"Y":h(),u();break;case"N":u();break;case"A":var o=l;l=undefined,e.operation(c),l=o;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":d(i)}return p&&d(i),!0}e.state.vim.exMode=!0;var p=!1,f=r.from();return u(),p?void He(e,"No matches for "+s.source):t?void De(e,{prefix:"replace with "+a+" (y/n/a/q/l)",onKeyDown:g}):(c(),void(l&&l()))}function Qe(e){var t=e.state.vim,n=Ut.macroModeState,i=Ut.registerController.getRegister("."),o=n.isPlaying,r=n.lastInsertModeChanges;o||(e.off("change",it),_t.off(e.getInputField(),"keydown",lt)),!o&&t.insertModeRepeat>1&&(ct(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(r.changes.join("")),_t.signal(e,"vim-mode-change",{mode:"normal"}),n.isRecording&&tt(n)}function Ye(e){At.unshift(e)}function Je(e,t,n,i,o){var r={keys:e,type:t};r[t]=n,r[t+"Args"]=i;for(var s in o)r[s]=o[s];Ye(r)}function Ze(e,t,n,i){var o=Ut.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&sn.processCommand(e,o.keyBuffer[0]),void(n.isPlaying=!1);var r=o.keyBuffer,s=0;n.isPlaying=!0,n.replaySearchQueries=o.searchQueries.slice(0);for(var a=0;a|<\w+>|./.exec(h),c=l[0],h=h.substring(l.index+c.length),_t.Vim.handleKey(e,c,"macro"),t.insertMode){var u=o.insertModeChanges[s++].changes;Ut.macroModeState.lastInsertModeChanges.changes=u,ht(e,u,1),Qe(e)}n.isPlaying=!1}function et(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Ut.registerController.getRegister(n);i&&i.pushText(t)}}function tt(e){if(!e.isPlaying){var t=e.latestRegister,n=Ut.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function nt(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Ut.registerController.getRegister(n);i&&i.pushSearchQuery&&i.pushSearchQuery(t)}}function it(e,t){var n=Ut.macroModeState,i=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(i.expectCursorActivityForChange=!0,i.ignoreCount>1)i.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||t.origin===undefined){var o=e.listSelections().length;o>1&&(i.ignoreCount=o);var r=t.text.join("\n");i.maybeReset&&(i.changes=[],i.maybeReset=!1),r&&(e.state.overwrite&&!/\n/.test(r)?i.changes.push([r]):i.changes.push(r))}t=t.next}}function ot(e){var t=e.state.vim;if(t.insertMode){var n=Ut.macroModeState;if(n.isPlaying)return;var i=n.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else e.curOp.isVimOp||st(e,t);t.visualMode&&rt(e)}function rt(e){var t=e.state.vim,n=B(e,K(t.sel.head)),i=N(n,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(n,i,{className:"cm-animate-fat-cursor"})}function st(e,t,n){var i=e.getCursor("anchor"),o=e.getCursor("head");if(t.visualMode&&!e.somethingSelected()?le(e,!1):!t.visualMode&&!t.insertMode&&e.somethingSelected()&&(t.visualMode=!0,t.visualLine=!1,_t.signal(e,"vim-mode-change",{mode:"visual"})),t.visualMode){var r=U(o,i)?0:-1,s=U(o,i)?-1:0;o=N(o,0,r),i=N(i,0,s),t.sel={anchor:i,head:o},ye(e,t,"<",G(o,i)),ye(e,t,">",j(o,i))}else!t.insertMode&&!n&&(t.lastHPos=e.getCursor().ch)}function at(e){this.keyName=e}function lt(e){function t(){return i.maybeReset&&(i.changes=[],i.maybeReset=!1),i.changes.push(new at(o)),!0}var n=Ut.macroModeState,i=n.lastInsertModeChanges,o=_t.keyName(e);o&&(-1!=o.indexOf("Delete")||-1!=o.indexOf("Backspace"))&&_t.lookupKey(o,"vim-insert",t)}function ct(e,t,n,i){function o(){a?qt.processAction(e,t,t.lastEditActionCommand):qt.evalInput(e,t)}function r(n){if(s.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var i=s.lastInsertModeChanges;ht(e,i.changes,n)}}var s=Ut.macroModeState;s.isPlaying=!0;var a=!!t.lastEditActionCommand,l=t.inputState;if(t.inputState=t.lastEditInputState,a&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c1&&"n"==t[0]&&(t=t.replace("numpad","")),t=an[t]||t;var i="";return n.ctrlKey&&(i+="C-"),n.altKey&&(i+="A-"),(i||t.length>1)&&n.shiftKey&&(i+="S-"),i+=t,i.length>1&&(i="<"+i+">"),i}function dt(e){var t=new e.constructor;return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i=i.slice():i&&"object"==typeof i&&i.constructor!=Object&&(i=dt(i)),t[n]=i}),e.sel&&(t.sel={head:e.sel.head&&K(e.sel.head),anchor:e.sel.anchor&&K(e.sel.anchor)}),t}function gt(e,t,n){var i=!1,o=Tt.maybeInitVimState_(e),r=o.visualBlock||o.wasInVisualBlock,s=e.ace.inMultiSelectMode;if(o.wasInVisualBlock&&!s?o.wasInVisualBlock=!1:s&&o.visualBlock&&(o.wasInVisualBlock=!0),""!=t||o.insertMode||o.visualMode||!s)if(r||!s||e.ace.inVirtualSelectionMode)i=Tt.handleKey(e,t,n);else{var a=dt(o);e.operation(function(){e.ace.forEachSelection(function(){var o=e.ace.selection;e.state.vim.lastHPos=null==o.$desiredColumn?o.lead.column:o.$desiredColumn;var r=e.getCursor("head"),s=e.getCursor("anchor"),l=U(r,s)?0:-1,c=U(r,s)?-1:0;r=N(r,0,l),s=N(s,0,c),e.state.vim.sel.head=r,e.state.vim.sel.anchor=s,i=ln(e,t,n),o.$desiredColumn=-1==e.state.vim.lastHPos?null:e.state.vim.lastHPos,e.virtualSelectionMode()&&(e.state.vim=dt(a))}),e.curOp.cursorActivity&&!i&&(e.curOp.cursorActivity=!1)},!0)}else e.ace.exitMultiSelectMode();return i&&!o.visualMode&&!o.insert&&o.visualMode!=e.somethingSelected()&&st(e,o,!0),i}function pt(e,t){t.off("beforeEndOperation",pt);var n=t.state.cm.vimCmd;n&&t.execCommand(n.exec?n:n.name,n.args),t.curOp=t.prevOp}var ft=e("../range").Range,mt=e("../lib/event_emitter").EventEmitter,vt=e("../lib/dom"),bt=e("../lib/oop"),wt=e("../lib/keys"),yt=e("../lib/event"),xt=e("../search").Search,kt=e("../lib/useragent"),Ct=e("../search_highlight").SearchHighlight,St=e("../commands/multi_select_commands"),$t=e("../mode/text").Mode.prototype.tokenRe;e("../multi_select");var _t=function(e){this.ace=e,this.state={},this.marks={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};_t.Pos=function(e,t){if(!(this instanceof Rt))return new Rt(e,t);this.line=e,this.ch=t},_t.defineOption=function(){},_t.commands={redo:function(e){e.ace.redo()},undo:function(e){e.ace.undo()},newlineAndIndent:function(e){e.ace.insert("\n")}},_t.keyMap={},_t.addClass=_t.rmClass=function(){},_t.e_stop=_t.e_preventDefault=yt.stopEvent,_t.keyName=function(e){var t=wt[e.keyCode]||e.key||"";return 1==t.length&&(t=t.toUpperCase()),t=yt.getModifierString(e).replace(/(^|-)\w/g,function(e){return e.toUpperCase()})+t},_t.keyMap["default"]=function(e){return function(t){var n=t.ace.commands.commandKeyBinding[e.toLowerCase()];return n&&!1!==t.ace.execCommand(n)}},_t.lookupKey=function e(t,n,i){n||(n="default"),"string"==typeof n&&(n=_t.keyMap[n]);var o="function"==typeof n?n(t):n[t];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&i(o))return"handled";if(n.fallthrough){if(!Array.isArray(n.fallthrough))return e(t,n.fallthrough,i);for(var r=0;r0?(a.row+=o,a.column+=a.row==i.row?r:0):!t&&c<=0&&(a.row=n.row,a.column=n.column,0===c&&(a.bias=1))}}};var e=function(e,t,n,i){this.cm=e,this.id=t,this.row=n,this.column=i,e.marks[this.id]=this};e.prototype.clear=function(){delete this.cm.marks[this.id]},e.prototype.find=function(){return i(this)},this.setBookmark=function(t,n){var i=new e(this,this.$uid++,t.line,t.ch);return n&&n.insertLeft||(i.$insertRight=!0),this.marks[i.id]=i,i},this.moveH=function(e,t){if("char"==t){var n=this.ace.selection;n.clearSelection(),n.moveCursorBy(0,e)}},this.findPosV=function(e,t,n,o){if("page"==n){var r=this.ace.renderer,s=r.layerConfig;t*=Math.floor(s.height/s.lineHeight),n="line"}if("line"==n){var a=this.ace.session.documentToScreenPosition(e.line,e.ch);null!=o&&(a.column=o),a.row+=t,a.row=Math.min(Math.max(0,a.row),this.ace.session.getScreenLength()-1);return i(this.ace.session.screenToDocumentPosition(a.row,a.column))}},this.charCoords=function(e,t){if("div"==t||!t){var n=this.ace.session.documentToScreenPosition(e.line,e.ch);return{left:n.column,top:n.row}}if("local"==t){var i=this.ace.renderer,n=this.ace.session.documentToScreenPosition(e.line,e.ch),o=i.layerConfig.lineHeight,r=i.layerConfig.characterWidth,s=o*n.row;return{left:n.column*r,top:s,bottom:s+o}}},this.coordsChar=function(e,t){var n=this.ace.renderer;if("local"==t){var o=Math.max(0,Math.floor(e.top/n.lineHeight)),r=Math.max(0,Math.floor(e.left/n.characterWidth));return i(n.session.screenToDocumentPosition(o,r))}if("div"==t)throw"not implemented"},this.getSearchCursor=function(e,t){var n=!1,o=!1;e instanceof RegExp&&!e.global&&(n=!e.ignoreCase,e=e.source,o=!0);var r=new xt;t.ch==undefined&&(t.ch=Number.MAX_VALUE);var s={row:t.line,column:t.ch},a=this,l=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){r.setOptions({needle:e,caseSensitive:n,wrap:!1,backwards:t,regExp:o,start:l||s});var i=r.find(a.ace.session);return i&&i.isEmpty()&&a.getLine(i.start.row).length==i.start.column&&(r.$options.start=i,i=r.find(a.ace.session)),l=i},from:function(){return l&&i(l.start)},to:function(){return l&&i(l.end)},replace:function(e){l&&(l.end=a.ace.session.doc.replace(l,e))}}},this.scrollTo=function(e,t){var n=this.ace.renderer,i=n.layerConfig,o=i.maxHeight;o-=(n.$size.scrollerHeight-n.lineHeight)*n.$scrollPastEnd,null!=t&&this.ace.session.setScrollTop(Math.max(0,Math.min(t,o))),null!=e&&this.ace.session.setScrollLeft(Math.max(0,Math.min(e,i.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(e,t){if(e){var i=this.ace.renderer,o={top:0,bottom:t};i.scrollCursorIntoView(n(e),2*i.lineHeight/i.$size.scrollerHeight,o)}},this.getLine=function(e){return this.ace.session.getLine(e)},this.getRange=function(e,t){return this.ace.session.getTextRange(new ft(e.line,e.ch,t.line,t.ch))},this.replaceRange=function(e,t,n){return n||(n=t),this.ace.session.replace(new ft(t.line,t.ch,n.line,n.ch),e)},this.replaceSelections=function(e){var t=this.ace.selection;if(this.ace.inVirtualSelectionMode)return void this.ace.session.replace(t.getRange(),e[0]||"");t.inVirtualSelectionMode=!0;var n=t.rangeList.ranges;n.length||(n=[this.ace.multiSelect.getRange()]);for(var i=n.length;i--;)this.ace.session.replace(n[i],e[i]||"");t.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(e){return this.getRange(e.anchor,e.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var t={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(e,n){switch(this.state[e]=n,e){case"indentWithTabs":e=t[e],n=!n;break;case"keyMap":return void(this.state.$keyMap=n);default:e=t[e]}e&&this.ace.setOption(e,n)},this.getOption=function(e,n){var i=t[e];switch(i&&(n=this.ace.getOption(i)),e){case"indentWithTabs":return e=t[e],!n;case"keyMap":return this.state.$keyMap}return i?n:this.state[e]},this.toggleOverwrite=function(e){return this.state.overwrite=e,this.ace.setOverwrite(e)},this.addOverlay=function(e){if(!this.$searchHighlight||!this.$searchHighlight.session){var t=new Ct(null,"ace_highlight-marker","text"),n=this.ace.session.addDynamicMarker(t);t.id=n.id,t.session=this.ace.session,t.destroy=function(){t.session.off("change",t.updateOnChange),t.session.off("changeEditor",t.destroy),t.session.removeMarker(t.id),t.session=null},t.updateOnChange=function(e){var n=e.start.row;n==e.end.row?t.cache[n]=undefined:t.cache.splice(n,t.cache.length)},t.session.on("changeEditor",t.destroy),t.session.on("change",t.updateOnChange)}var i=new RegExp(e.query.source,"gmi");this.$searchHighlight=e.highlight=t,this.$searchHighlight.setRegexp(i),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var e=this.ace.renderer,t=e.layerConfig;return{left:e.scrollLeft,top:e.scrollTop,height:t.maxHeight,width:t.width,clientHeight:t.height,clientWidth:t.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(e){return this.ace.setValue(e,-1)},this.getTokenTypeAt=function(e){var t=this.ace.session.getTokenAt(e.line,e.ch);return t&&/comment|string/.test(t.type)?"string":""},this.findMatchingBracket=function(e){var t=this.ace.session.findMatchingBracket(n(e));return{to:t&&i(t)}},this.indentLine=function(e,t){!0===t?this.ace.session.indentRows(e,e,"\t"):!1===t&&this.ace.session.outdentRows(new ft(e,0,e,0))},this.indexFromPos=function(e){return this.ace.session.doc.positionToIndex(n(e))},this.posFromIndex=function(e){return i(this.ace.session.doc.indexToPosition(e))},this.focus=function(){return this.ace.textInput.focus()},this.blur=function(){return this.ace.blur()},this.defaultTextHeight=function(){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(e,t,o,r){var s=r.bracketRegex.source,a=/paren|text|operator|tag/;if(1==t)var l=this.ace.session.$findClosingBracket(s.slice(1,2),n(e),a);else var l=this.ace.session.$findOpeningBracket(s.slice(-2,-1),{row:e.line,column:e.ch+1},a);return l&&{pos:i(l)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(){}}.call(_t.prototype),(_t.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0}).prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},_t.defineExtension=function(e,t){_t.prototype[e]=t},vt.importCssString(".normal-mode .ace_cursor{ border: none; background-color: rgba(255,0,0,0.5);}.normal-mode .ace_hidden-cursors .ace_cursor{ background-color: transparent; border: 1px solid red; opacity: 0.7}.ace_dialog { position: absolute; left: 0; right: 0; background: inherit; z-index: 15; padding: .1em .8em; overflow: hidden; color: inherit;}.ace_dialog-top { border-bottom: 1px solid #444; top: 0;}.ace_dialog-bottom { border-top: 1px solid #444; bottom: 0;}.ace_dialog input { border: none; outline: none; background: transparent; width: 20em; color: inherit; font-family: monospace;}","vimMode"),function(){function e(e,t,n){var i;return i=e.ace.container.appendChild(document.createElement("div")),i.className=n?"ace_dialog ace_dialog-bottom":"ace_dialog ace_dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function t(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}_t.defineExtension("openDialog",function(n,i,o){function r(e){if("string"==typeof e)h.value=e;else{if(a)return;if(e&&"blur"==e.type&&document.activeElement===h)return;l.state.dialog=null,a=!0,s.parentNode.removeChild(s),l.focus(),o.onClose&&o.onClose(s)}}if(!this.virtualSelectionMode()){o||(o={}),t(this,null);var s=e(this,n,o.bottom),a=!1,l=this;this.state.dialog=s;var c,h=s.getElementsByTagName("input")[0];return h?(o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&_t.on(h,"input",function(e){o.onInput(e,h.value,r)}),o.onKeyUp&&_t.on(h,"keyup",function(e){o.onKeyUp(e,h.value,r)}),_t.on(h,"keydown",function(e){o&&o.onKeyDown&&o.onKeyDown(e,h.value,r)||(13==e.keyCode&&i(h.value),(27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(h.blur(),_t.e_stop(e),r()))}),!1!==o.closeOnBlur&&_t.on(h,"blur",r),h.focus()):(c=s.getElementsByTagName("button")[0])&&(_t.on(c,"click",function(){r(),l.focus()}),!1!==o.closeOnBlur&&_t.on(c,"blur",r),c.focus()),r}}),_t.defineExtension("openNotification",function(n,i){function o(){a||(a=!0,clearTimeout(r),s.parentNode.removeChild(s))}if(!this.virtualSelectionMode()){t(this,o);var r,s=e(this,n,i&&i.bottom),a=!1,l=i&&"undefined"!=typeof i.duration?i.duration:5e3;return _t.on(s,"click",function(e){_t.e_preventDefault(e),o()}),l&&(r=setTimeout(o,l)),o}})}();var At=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{ forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Lt=At.length,Mt=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Rt=_t.Pos,Tt=function(){return jt};_t.defineOption("vimMode",!1,function(e,t,n){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&n!=_t.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")});var Et={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},Ot={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"},It=/[\d]/,Ft=[_t.isWordChar,function(e){return e&&!_t.isWordChar(e)&&!/\s/.test(e)}],Bt=[function(e){return/\S/.test(e)}],Ht=u(65,26),Nt=u(97,26),Dt=u(48,10),Pt=[].concat(Ht,Nt,Dt,["<",">"]),Wt=[].concat(Ht,Nt,Dt,["-",'"',".",":","/"]),zt={};y("filetype",undefined,"string",["ft"],function(e,t){if(t!==undefined){if(e===undefined){var n=t.getOption("mode");return"null"==n?"":n}var n=""==e?"null":e;t.setOption("mode",n)}});var Kt=function(){function e(e,t,a){function l(t){var o=++i%n,r=s[o];r&&r.clear(),s[o]=e.setBookmark(t)}var c=i%n,h=s[c];if(h){var u=h.find();u&&!V(u,t)&&l(t)}else l(t);l(a),o=i,(r=i-n+1)<0&&(r=0)}function t(e,t){i+=t,i>o?i=o:i0?1:-1,h=e.getCursor();do{if(i+=c,(a=s[(n+i)%n])&&(l=a.find())&&!V(h,l))break}while(ir)}return a}var n=100,i=-1,o=0,r=0,s=new Array(n);return{cachedCursor:undefined,add:e,move:t}},Vt=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var e=Ut.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=undefined,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=Ut.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};var Ut,Gt,jt={buildKeyMap:function(){},getRegisterController:function(){return Ut.registerController},resetVimGlobalState_:$,getVimGlobalState_:function(){return Ut},maybeInitVimState_:S,suppressErrorLogging:!1,InsertModeKey:at,map:function(e,t,n){sn.map(e,t,n)},unmap:function(e,t){sn.unmap(e,t)},noremap:function(e,t,n){function i(e){return e?[e]:["normal","insert","visual"]}for(var o=i(n),r=At.length,s=Lt,a=r-s;a=0;o--){var r=i[o];if(e!==r.context)if(r.context)this._mapCommand(r);else{var s=["normal","insert","visual"];for(var a in s)if(s[a]!==e){var l={};for(var c in r)l[c]=r[c];l.context=s[a],this._mapCommand(l)}}}},setOption:x,getOption:k,defineOption:y,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;rn[e]=n,sn.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var i=this.findKey(e,t,n);if("function"==typeof i)return i()},findKey:function(e,t,n){function i(){var i=Ut.macroModeState;if(i.isRecording){if("q"==t)return i.exitMacroRecordMode(),A(e),!0;"mapping"!=n&&et(i,t)}}function o(){if(""==t)return A(e),c.visualMode?le(e):c.insertMode&&Qe(e),!0}function r(n){for(var i;n;)i=/<\w+-.+?>|<\w+>|./.exec(n),t=i[0],n=n.substring(i.index+t.length),_t.Vim.handleKey(e,t,"mapping")}function s(){if(o())return!0;for(var n=c.inputState.keyBuffer=c.inputState.keyBuffer+t,i=1==t.length,r=qt.matchCommand(n,At,c.inputState,"insert");n.length>1&&"full"!=r.type;){var n=c.inputState.keyBuffer=n.slice(1),s=qt.matchCommand(n,At,c.inputState,"insert");"none"!=s.type&&(r=s)}if("none"==r.type)return A(e),!1;if("partial"==r.type)return Gt&&window.clearTimeout(Gt),Gt=window.setTimeout(function(){c.insertMode&&c.inputState.keyBuffer&&A(e)},k("insertModeEscKeysTimeout")),!i;if(Gt&&window.clearTimeout(Gt),i){for(var a=e.listSelections(),l=0;l0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},L.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(Vt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},R.prototype={pushText:function(e,t,n,i,o){i&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var r=this.isValidRegister(e)?this.getRegister(e):null;if(!r){switch(t){case"yank":this.registers[0]=new L(n,i,o);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new L(n,i):(this.shiftNumericRegisters_(),this.registers[1]=new L(n,i))}return void this.unnamedRegister.setText(n,i,o)}m(e)?r.pushText(n,i):r.setText(n,i,o),this.unnamedRegister.setText(r.toString(),i)},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new L),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&w(e,Wt)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},T.prototype={nextMatch:function(e,t){var n=this.historyBuffer,i=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var o=this.iterator+i;t?o>=0:o=n.length?(this.iterator=n.length,this.initialPrefix):o<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var qt={matchCommand:function(e,t,n,i){var o=D(e,t,i,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var r,s=0;s"==r.keys.slice(-11)){var l=W(e);if(//.test(l)||!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:r}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=H(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var i=t.inputState;if(i.operator){if(i.operator==n.operator)return i.motion="expandToLine",i.motionArgs={linewise:!0},this.evalInput(e,t),void 0;A(e)}i.operator=n.operator,i.operatorArgs=H(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,re(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var i=t.visualMode,o=H(n.operatorMotionArgs);o&&i&&o.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),i||this.processMotion(e,t,n)},processAction:function(e,t,n){var i=t.inputState,o=i.getRepeat(),r=!!o,s=H(n.actionArgs)||{};i.selectedCharacter&&(s.selectedCharacter=i.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),s.repeat=o||1,s.repeatIsExplicit=r,s.registerName=i.registerName,A(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,i,n),Yt[n.action](e,s,t)},processSearch:function(e,t,n){function i(i,o,r){Ut.searchHistoryController.pushInput(i),Ut.searchHistoryController.reset();try{We(e,i,o,r)}catch(t){return He(e,"Invalid regex: "+i),void A(e)}qt.processMotion(e,t,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:n.searchArgs.toJumplist}})}function o(e){i(e,!0,!0);var t=Ut.macroModeState;t.isRecording&&nt(t,e)}function r(t,n,i){var o,r,s=_t.keyName(t);"Up"==s||"Down"==s?(o="Up"==s,r=t.target?t.target.selectionEnd:0,n=Ut.searchHistoryController.nextMatch(n,o)||"",i(n),r&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(r,t.target.value.length))):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Ut.searchHistoryController.reset();var l;try{l=We(e,n,!0,!0)}catch(t){}l?e.scrollIntoView(Ve(e,!a,l),30):(Ue(e),e.scrollTo(u.left,u.top))}function s(t,n,i){var o=_t.keyName(t);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==n?(Ut.searchHistoryController.pushInput(n),Ut.searchHistoryController.reset(),We(e,h),Ue(e),e.scrollTo(u.left,u.top),_t.e_stop(t),A(e),i(),e.focus()):"Up"==o||"Down"==o?_t.e_stop(t):"Ctrl-U"==o&&(_t.e_stop(t),i(""))}if(e.getSearchCursor){var a=n.searchArgs.forward,l=n.searchArgs.wholeWordOnly;Ae(e).setReversed(!a);var c=a?"/":"?",h=Ae(e).getQuery(),u=e.getScrollInfo();switch(n.searchArgs.querySrc){case"prompt":var d=Ut.macroModeState;if(d.isPlaying){var g=d.replaySearchQueries.shift();i(g,!0,!1)}else De(e,{onClose:o,prefix:c,desc:nn,onKeyUp:r,onKeyDown:s});break;case"wordUnderCursor":var p=de(e,!1,!0,!1,!0),f=!0;if(p||(p=de(e,!1,!0,!1,!1),f=!1),!p)return;var g=e.getLine(p.start.line).substring(p.start.ch,p.end.ch);g=f&&l?"\\b"+g+"\\b":Y(g),Ut.jumpList.cachedCursor=e.getCursor(),e.setCursor(p.start),i(g,!0,!1)}}},processEx:function(e,t,n){function i(t){Ut.exCommandHistoryController.pushInput(t),Ut.exCommandHistoryController.reset(),sn.processCommand(e,t)}function o(t,n,i){var o,r,s=_t.keyName(t);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==n)&&(Ut.exCommandHistoryController.pushInput(n),Ut.exCommandHistoryController.reset(),_t.e_stop(t),A(e),i(),e.focus()),"Up"==s||"Down"==s?(_t.e_stop(t),o="Up"==s,r=t.target?t.target.selectionEnd:0,n=Ut.exCommandHistoryController.nextMatch(n,o)||"",i(n),r&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(r,t.target.value.length))):"Ctrl-U"==s?(_t.e_stop(t),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Ut.exCommandHistoryController.reset()}"keyToEx"==n.type?sn.processCommand(e,n.exArgs.input):t.visualMode?De(e,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):De(e,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,t){var n,i,o,r=t.inputState,s=r.motion,a=r.motionArgs||{},l=r.operator,c=r.operatorArgs||{},h=r.registerName,u=t.sel,d=K(t.visualMode?B(e,u.head):e.getCursor("head")),g=K(t.visualMode?B(e,u.anchor):e.getCursor("anchor")),p=K(d),f=K(g);if(l&&this.recordLastEdit(t,r),o=r.repeatOverride!==undefined?r.repeatOverride:r.getRepeat(),o>0&&a.explicitRepeat?a.repeatIsExplicit=!0:(a.noRepeat||!a.explicitRepeat&&0===o)&&(o=1,a.repeatIsExplicit=!1),r.selectedCharacter&&(a.selectedCharacter=c.selectedCharacter=r.selectedCharacter),a.repeat=o,A(e),s){var m=Xt[s](e,d,a,t);if(t.lastMotion=Xt[s],!m)return;if(a.toJumplist){!l&&null!=e.ace.curOp&&(e.ace.curOp.command.scrollIntoView="center-animate");var v=Ut.jumpList,b=v.cachedCursor;b?(ge(e,b,m),delete v.cachedCursor):ge(e,d,m)}m instanceof Array?(i=m[0],n=m[1]):n=m,n||(n=K(d)),t.visualMode?(t.visualBlock&&n.ch===Infinity||(n=B(e,n,t.visualBlock)),i&&(i=B(e,i,!0)),i=i||f,u.anchor=i,u.head=n,re(e),ye(e,t,"<",U(i,n)?i:n),ye(e,t,">",U(i,n)?n:i)):l||(n=B(e,n),e.setCursor(n.line,n.ch))}if(l){if(c.lastSel){i=f;var w=c.lastSel,y=Math.abs(w.head.line-w.anchor.line),x=Math.abs(w.head.ch-w.anchor.ch);n=w.visualLine?Rt(f.line+y,f.ch):w.visualBlock?Rt(f.line+y,f.ch+x):w.head.line==w.anchor.line?Rt(f.line,f.ch+x):Rt(f.line+y,f.ch),t.visualMode=!0,t.visualLine=w.visualLine,t.visualBlock=w.visualBlock,u=t.sel={anchor:i,head:n},re(e)}else t.visualMode&&(c.lastSel={anchor:K(u.anchor),head:K(u.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var k,C,S,$,_;if(t.visualMode){if(k=G(u.head,u.anchor),C=j(u.head,u.anchor),S=t.visualLine||c.linewise,$=t.visualBlock?"block":S?"line":"char",_=se(e,{anchor:k,head:C},$),S){var L=_.ranges;if("block"==$)for(var M=0;Mc&&o.line==c)return this.moveToEol(e,t,n,i,!0);var h=e.ace.session.getFoldLine(a);return h&&(n.forward?a>h.start.row&&(a=h.end.row+1):a=h.start.row),n.toFirstChar&&(r=ue(e.getLine(a)),i.lastHPos=r),i.lastHSPos=e.charCoords(Rt(a,r),"div").left,Rt(a,r)},moveByDisplayLines:function(e,t,n,i){var o=t;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var r=n.repeat,s=e.findPosV(o,n.forward?r:-r,"line",i.lastHSPos);if(s.hitSide)if(n.forward)var a=e.charCoords(s,"div"),l={top:a.top+8,left:i.lastHSPos},s=e.coordsChar(l,"div");else{var c=e.charCoords(Rt(e.firstLine(),0),"div");c.left=i.lastHSPos,s=e.coordsChar(c,"div")}return i.lastHPos=s.ch,s},moveByPage:function(e,t,n){var i=t,o=n.repeat;return e.findPosV(i,n.forward?o:-o,"page")},moveByParagraph:function(e,t,n){var i=n.forward?1:-1;return ke(e,t,n.repeat,i)},moveBySentence:function(e,t,n){var i=n.forward?1:-1;return Ce(e,t,n.repeat,i)},moveByScroll:function(e,t,n,i){var o=e.getScrollInfo(),r=null,s=n.repeat;s||(s=o.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");n.repeat=s;var r=Xt.moveByDisplayLines(e,t,n,i);if(!r)return null;var l=e.charCoords(r,"local");return e.scrollTo(null,o.top+l.top-a.top),r},moveByWords:function(e,t,n){return ve(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var i=n.repeat,o=be(e,i,n.forward,n.selectedCharacter),r=n.forward?-1:1;return pe(r,n),o?(o.ch+=r,o):null},moveToCharacter:function(e,t,n){var i=n.repeat;return pe(0,n),be(e,i,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return fe(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,i){var o=n.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(t,"div").left,we(e,o)},moveToEol:function(e,t,n,i,o){var r=t,s=Rt(r.line+n.repeat-1,Infinity),a=e.clipPos(s);return a.ch--,o||(i.lastHPos=Infinity,i.lastHSPos=e.charCoords(a,"div").left),s},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return Rt(n.line,ue(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,i=t,o=i.line,r=i.ch,s=e.getLine(o);r]/.test(s[r])?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(Rt(o,r+1),{bracketRegex:l}).to}return i},moveToStartOfLine:function(e,t){return Rt(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var i=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(i=n.repeat-e.getOption("firstLineNumber")),Rt(i,ue(e.getLine(i)))},textObjectManipulation:function(e,t,n,i){var o={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},r={"'":!0,'"':!0,"`":!0},s=n.selectedCharacter;"b"==s?s="(":"B"==s&&(s="{");var a,l=!n.textObjectInner;if(o[s])a=Se(e,t,s,l);else if(r[s])a=$e(e,t,s,l);else if("W"===s)a=de(e,l,!0,!0);else if("w"===s)a=de(e,l,!0,!1);else{if("p"!==s)return null;if(a=ke(e,t,n.repeat,0,l),n.linewise=!0,i.visualMode)i.visualLine||(i.visualLine=!0);else{var c=i.inputState.operatorArgs;c&&(c.linewise=!0),a.end.line--}}return e.state.vim.visualMode?oe(e,a.start,a.end):[a.start,a.end]},repeatLastCharacterSearch:function(e,t,n){var i=Ut.lastCharacterSearch,o=n.repeat,r=n.forward===i.forward,s=(i.increment?1:0)*(r?-1:1);e.moveH(-s,"char"),n.inclusive=!!r;var a=be(e,o,r,i.selectedCharacter);return a?(a.ch+=s,a):(e.moveH(s,"char"),t)}},Qt={change:function(e,t,n){var i,o,r=e.state.vim,s=n[0].anchor,a=n[0].head;if(r.visualMode)if(t.fullLine)a.ch=Number.MAX_VALUE,a.line--,e.setSelection(s,a),o=e.getSelection(),e.replaceSelections(""),i=s;else{o=e.getSelection();var l=O("",n.length);e.replaceSelections(l),i=G(n[0].head,n[0].anchor)}else{o=e.getRange(s,a);var c=r.lastEditInputState||{};if("moveByWords"==c.motion&&!v(o)){var h=/\s+$/.exec(o);h&&c.motionArgs&&c.motionArgs.forward&&(a=N(a,0,-h[0].length),o=o.slice(0,-h[0].length))}var u=new Rt(s.line-1,Number.MAX_VALUE),d=e.firstLine()==e.lastLine();a.line>e.lastLine()&&t.linewise&&!d?e.replaceRange("",u,a):e.replaceRange("",s,a),t.linewise&&(d||(e.setCursor(u),_t.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),i=s}Ut.registerController.pushText(t.registerName,"change",o,t.linewise,n.length>1),Yt.enterInsertMode(e,{head:i},e.state.vim)},"delete":function(e,t,n){var i,o,r=e.state.vim;if(r.visualBlock){o=e.getSelection();var s=O("",n.length);e.replaceSelections(s),i=n[0].anchor}else{var a=n[0].anchor,l=n[0].head;t.linewise&&l.line!=e.firstLine()&&a.line==e.lastLine()&&a.line==l.line-1&&(a.line==e.firstLine()?a.ch=0:a=Rt(a.line-1,X(e,a.line-1))),o=e.getRange(a,l),e.replaceRange("",a,l),i=a,t.linewise&&(i=Xt.moveToFirstNonWhiteSpaceCharacter(e,a))}return Ut.registerController.pushText(t.registerName,"delete",o,t.linewise,r.visualBlock),B(e,i,r.insertMode)},indent:function(e,t,n){var i=e.state.vim,o=n[0].anchor.line,r=i.visualBlock?n[n.length-1].anchor.line:n[0].head.line,s=i.visualMode?t.repeat:1;t.linewise&&r--;for(var a=o;a<=r;a++)for(var l=0;lc.top?(l.line+=(a-c.top)/o,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,a);else{var h=a+e.getScrollInfo().clientHeight;h=o.anchor.line?N(o.head,0,1):Rt(o.anchor.line,0)}else if("inplace"==i&&n.visualMode)return;e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),_t.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),_t.signal(e,"vim-mode-change",{mode:"insert"})),Ut.macroModeState.isPlaying||(e.on("change",it),_t.on(e.getInputField(),"keydown",lt)),n.visualMode&&le(e),ee(e,r,s)}},toggleVisualMode:function(e,t,n){var i,o=t.repeat,r=e.getCursor();n.visualMode?n.visualLine^t.linewise||n.visualBlock^t.blockwise?(n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e)):le(e):(n.visualMode=!0,n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,i=B(e,Rt(r.line,r.ch+o-1),!0),n.sel={anchor:r,head:i},_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e),ye(e,n,"<",G(r,i)),ye(e,n,">",j(r,i)))},reselectLastSelection:function(e,t,n){var i=n.lastSelection;if(n.visualMode&&ie(e,n),i){var o=i.anchorMark.find(),r=i.headMark.find();if(!o||!r)return;n.sel={anchor:o,head:r},n.visualMode=!0,n.visualLine=i.visualLine,n.visualBlock=i.visualBlock,re(e),ye(e,n,"<",G(o,r)),ye(e,n,">",j(o,r)),_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var i,o;if(n.visualMode){if(i=e.getCursor("anchor"),o=e.getCursor("head"),U(o,i)){var r=o;o=i,i=r}o.ch=X(e,o.line)-1}else{var s=Math.max(t.repeat,2);i=e.getCursor(),o=B(e,Rt(i.line+s-1,Infinity))}for(var a=0,l=i.line;l1)var r=Array(t.repeat+1).join(r);var g=o.linewise,p=o.blockwise;if(p){r=r.split("\n"),g&&r.pop();for(var f=0;fe.lastLine()&&e.replaceRange("\n",Rt($,0));var _=X(e,$);_l.length&&(i=l.length),o=Rt(s.line,i)}if("\n"==r)n.visualMode||e.replaceRange("",s,o),(_t.commands.newlineAndIndentContinueComment||_t.commands.newlineAndIndent)(e);else{var c=e.getRange(s,o);if(c=c.replace(/[^\n]/g,r),n.visualBlock){var h=new Array(e.getOption("tabSize")+1).join(" ");c=e.getSelection(),c=c.replace(/\t/g,h).replace(/[^\n]/g,r).split("\n"),e.replaceSelections(c)}else e.replaceRange(c,s,o);n.visualMode?(s=U(a[0].anchor,a[0].head)?a[0].anchor:a[0].head,e.setCursor(s),le(e,!1)):e.setCursor(N(o,0,-1))}},incrementNumberToken:function(e,t){for(var n,i,o,r,s=e.getCursor(),a=e.getLine(s.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(a))&&(i=n.index,o=i+n[0].length,!(s.ch=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};y("pcre",!0,"boolean"),_e.prototype={getQuery:function(){return Ut.query},setQuery:function(e){Ut.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return Ut.isReversed},setReversed:function(e){Ut.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var en={"\\n":"\n","\\r":"\r","\\t":"\t"},tn={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t"},nn="(Javascript regexp)",on=function(){this.buildCommandMap_()};on.prototype={processCommand:function(e,t,n){var i=this;e.operation(function(){e.curOp.isVimOp=!0,i._processCommand(e,t,n)})},_processCommand:function(e,t,n){var i=e.state.vim,o=Ut.registerController.getRegister(":"),r=o.toString();i.visualMode&&le(e);var s=new _t.StringStream(t);o.setText(t);var a=n||{};a.input=t;try{this.parseInput_(e,s,a)}catch(t){throw He(e,t),t}var l,c;if(a.commandName){if(l=this.matchCommand_(a.commandName)){if(c=l.name,l.excludeFromCommandHistory&&o.setText(r),this.parseCommandArgs_(s,a,l),"exToKey"==l.type){for(var h=0;h0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var i=this.commandMap_[n];if(0===i.name.indexOf(e))return i}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e
";if(n){var r;n=n.join("");for(var s=0;s"}}else for(var r in i){var l=i[r].toString();l.length&&(o+='"'+r+" "+l+"
")}He(e,o)},sort:function(e,t){function n(){if(t.argString){var e=new _t.StringStream(t.argString);if(e.eat("!")&&(r=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var n=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!e.eol())return"Invalid arguments";if(n[1]){s=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var i=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,o=-1!=n[1].indexOf("x")&&1,h=-1!=n[1].indexOf("o")&&1;if(i+o+h>1)return"Invalid arguments";l=i&&"decimal"||o&&"hex"||h&&"octal"}n[2]&&(c=new RegExp(n[2].substr(1,n[2].length-2),s?"i":""))}}function i(e,t){if(r){var n;n=e,e=t,t=n}s&&(e=e.toLowerCase(),t=t.toLowerCase());var i=l&&m.exec(e),o=l&&m.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),v),o=parseInt((o[1]+o[2]).toLowerCase(),v),i-o):e")}if(!i)return void He(e,h);var d=0,g=function(){if(d=c)return void He(e,"Invalid argument: "+t.argString.substring(o));for(var h=0;h<=c-l;h++){var u=String.fromCharCode(l+h);delete n.marks[u]}}else delete n.marks[r]}}},sn=new on;_t.keyMap.vim={attach:a,detach:s,call:l},y("insertModeEscKeysTimeout",200,"number"),_t.keyMap["vim-insert"]={fallthrough:["default"],attach:a,detach:s,call:l},_t.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:a,detach:s,call:l},$(),_t.Vim=Tt(),Tt=_t.Vim;var an={"return":"CR",backspace:"BS","delete":"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},ln=Tt.handleKey.bind(Tt);Tt.handleKey=function(e,t,n){return e.operation(function(){return ln(e,t,n)},!0)},t.CodeMirror=_t;var cn=Tt.maybeInitVimState_;t.handler={$id:"ace/keyboard/vim",drawCursor:function(e,t,n,i,o){var r=this.state.vim||{},s=n.characterWidth,a=n.lineHeight,l=t.top,c=t.left;if(!r.insertMode){!(i.cursor?ft.comparePoints(i.cursor,i.start)<=0:o.selection.isBackwards()||o.selection.isEmpty())&&c>s&&(c-=s)}!r.insertMode&&r.status&&(a/=2,l+=a),vt.translate(e,c,l),vt.setStyle(e.style,"width",s+"px"),vt.setStyle(e.style,"height",a+"px")},handleKeyboard:function(e,t,n,i,o){var r=e.editor,s=r.state.cm,a=cn(s);if(-1!=i){if(a.insertMode||(-1==t?(n.charCodeAt(0)>255&&e.inputKey&&(n=e.inputKey)&&4==e.inputHash&&(n=n.toUpperCase()),e.inputChar=n):4==t||0==t?e.inputKey==n&&e.inputHash==t&&e.inputChar?(n=e.inputChar,t=-1):(e.inputChar=null,e.inputKey=n,e.inputHash=t):e.inputChar=e.inputKey=null),"c"==n&&1==t&&!kt.isMac&&r.getCopyText())return r.once("copy",function(){r.selection.clearSelection()}),{command:"null",passEvent:!0};if("esc"==n&&!a.insertMode&&!a.visualMode&&!s.ace.inMultiSelectMode){var l=Ae(s),c=l.getOverlay();c&&s.removeOverlay(c)}if(-1==t||1&t||0===t&&n.length>1){var h=a.insertMode,u=ut(t,n,o||{});null==a.status&&(a.status="");var d=gt(s,u,"user");if(a=cn(s),d&&null!=a.status?a.status+=u:null==a.status&&(a.status=""),s._signal("changeStatus"),!d&&(-1!=t||h))return;return{command:"null",passEvent:!d}}}},attach:function(e){function t(){var t=cn(n).insertMode;n.ace.renderer.setStyle("normal-mode",!t),e.textInput.setCommandMode(!t),e.renderer.$keepTextAreaAtCursor=t,e.renderer.$blockCursor=!t}e.state||(e.state={});var n=new _t(e);e.state.cm=n,e.$vimModeHandler=this,_t.keyMap.vim.attach(n),cn(n).status=null,n.on("vim-command-done",function(){n.virtualSelectionMode()||(cn(n).status=null,n.ace._signal("changeStatus"),n.ace.session.markUndoGroup())}),n.on("changeStatus",function(){n.ace.renderer.updateCursor(),n.ace._signal("changeStatus")}),n.on("vim-mode-change",function(){n.virtualSelectionMode()||(t(),n._signal("changeStatus"))}),t(),e.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(n)},detach:function(e){var t=e.state.cm;_t.keyMap.vim.detach(t),t.destroy(),e.state.cm=null,e.$vimModeHandler=null,e.renderer.$cursorLayer.drawCursor=null,e.renderer.setStyle("normal-mode",!1),e.textInput.setCommandMode(!1),e.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(e){var t=e.state.cm,n=cn(t);if(n.insertMode)return"INSERT";var i="";return n.visualMode&&(i+="VISUAL",n.visualLine&&(i+=" LINE"),n.visualBlock&&(i+=" BLOCK")),n.status&&(i+=(i?" ":"")+n.status),i}},Tt.defineOption({name:"wrap",set:function(e,t){t&&t.ace.setOption("wrap",e)},type:"boolean"},!1),Tt.defineEx("write","w",function(){console.log(":write is not implemented")}),At.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Yt.aceCommand=function(e,t){e.vimCmd=t,e.ace.inVirtualSelectionMode?e.ace.on("beforeEndOperation",pt):pt(null,e.ace)},Yt.fold=function(e,t){e.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(t.all?2:0)+(t.open?1:0)])},t.handler.defaultKeymap=At,t.handler.actions=Yt,t.Vim=Tt}),function(){ace.require(["ace/keyboard/vim"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/occur",["require","exports","module","ace/lib/oop","ace/range","ace/search","ace/edit_session","ace/search_highlight","ace/lib/dom"],function(e,t){"use strict";function n(){}var i=e("./lib/oop"),o=(e("./range").Range,e("./search").Search),r=e("./edit_session").EditSession,s=e("./search_highlight").SearchHighlight;i.inherits(n,o),function(){this.enter=function(e,t){if(!t.needle)return!1;var n=e.getCursorPosition();this.displayOccurContent(e,t);var i=this.originalToOccurPosition(e.session,n);return e.moveCursorToPosition(i),!0},this.exit=function(e,t){var n=t.translatePosition&&e.getCursorPosition(),i=n&&this.occurToOriginalPosition(e.session,n);return this.displayOriginalContent(e),i&&e.moveCursorToPosition(i),!0},this.highlight=function(e,t){(e.$occurHighlight=e.$occurHighlight||e.addDynamicMarker(new s(null,"ace_occur-highlight","text"))).setRegexp(t),e._emit("changeBackMarker")},this.displayOccurContent=function(e,t){this.$originalSession=e.session;var n=this.matchingLines(e.session,t),i=n.map(function(e){return e.content}),o=new r(i.join("\n"));o.$occur=this,o.$occurMatchingLines=n,e.setSession(o),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,o.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(o,t.re),o._emit("changeBackMarker")},this.displayOriginalContent=function(e){e.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},this.originalToOccurPosition=function(e,t){var n=e.$occurMatchingLines,i={row:0,column:0};if(!n)return i;for(var o=0;o30&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data[t]||"";e&&(n+=e),n&&(this.$data[t]=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join("\n")},pop:function(){return this.$data.length>1&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}}),function(){ace.require(["ace/keyboard/emacs"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t){"use strict";var n=function(e){this.$editor=e;var t=this,n=[],i=!1;this.onAfterExec=function(){i=!1,t.processRows(n),n=[]},this.onExec=function(){i=!0},this.onChange=function(e){i&&(-1==n.indexOf(e.start.row)&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;for(var t=[],n=0,i=e.length;n-1))for(var r=this.$findCellWidthsForBlock(o),s=this.$setBlockCellWidthsToMax(r.cellWidths),a=r.firstRow,l=0,c=s.length;l=0&&(t=this.$cellWidthsForRow(i),0!=t.length);)n.unshift(t),i--;var o=i+1;i=e;for(var r=this.$editor.session.getLength();i0&&(this.$editor.session.getDocument().insertInLine({row:e,column:c+1},Array(h+1).join(" ")+"\t"),this.$editor.session.getDocument().removeInLine(e,c,c+1),i+=h),h<0&&g>=-h&&(this.$editor.session.getDocument().removeInLine(e,c+h,c),i+=h)}}},this.$izip_longest=function(e){if(!e[0])return[];for(var t=e[0].length,n=e.length,i=1;it&&(t=o)}for(var r=[],s=0;s=t.length?t.length:e.length,i=[],o=0;o'+t.command+' : '+t.key+""},"");r.id="kbshortcutmenu",r.innerHTML="

Keyboard Shortcuts

"+s+"",n(t,r)}}var o=e("../editor").Editor;n.exports.init=function(e){o.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){e.showKeyboardShortcuts()}}])}}),function(){ace.require(["ace/ext/keybinding_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],function(e,t){"use strict";function n(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=e("./lib/lang"),s=e("./range").Range,a=e("./range_list").RangeList,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,h=e("./clipboard"),u={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(){return h.getText&&h.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:n.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:n.bind(null,{year:"2-digit"}),CURRENT_MONTH:n.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:n.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:n.bind(null,{month:"short"}),CURRENT_DATE:n.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:n.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:n.bind(null,{weekday:"short"}),CURRENT_HOUR:n.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:n.bind(null,{minute:"2-digit"}),CURRENT_SECOND:n.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,o),this.getTokenizer=function(){return d.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag="",""},next:"formatString"};return d.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var o=e(t.substr(1));return i.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\0"}).split("\0");return n[0].choices=i,[i[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=u,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var i=t.flag||"",o=t.guard;o=new RegExp(o,i.replace(/[^gim]/g,""));var r="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(o,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(r,n),i="E",o=0;o1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,w+=e}else e&&(e.start?e.end={row:v,column:b}:e.start={row:v,column:b})});var y=e.getSelectionRange(),x=e.session.replace(y,w),k=new g(e),C=e.inVirtualSelectionMode&&e.selection.index;k.addTabstops(l,y.start,x,C)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some(function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n},this),!!n&&(!(!t||!t.dryRun)||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null,!0))},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function n(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function i(e,t,i){return e=n(e),t=n(t),i?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function o(e){e.scope||(e.scope=t||"_"),t=e.scope,s[t]||(s[t]=[],a[t]={});var n=a[t];if(e.name){var o=n[e.name];o&&l.unregister(o),n[e.name]=e}s[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=r.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=i(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=i(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var s=this.snippetMap,a=this.snippetNameMap,l=this;e||(e=[]),e&&e.content?o(e):Array.isArray(e)&&e.forEach(o),this._signal("registerSnippets",{scope:t})}, +;var i=this.$editor.session,o=this.find(i),r=this.$editor.emacsMark?!!this.$editor.emacsMark():!this.$editor.selection.isEmpty();return o&&(n.backwards&&(o=l.fromPoints(o.end,o.start)),this.$editor.selection.setRange(l.fromPoints(r?this.$startPos:o.end,o.end)),e&&(this.$currentPos=o.end),this.highlight(n.re)),this.statusMessage(o),o},this.addString=function(e){return this.highlightAndFindWithNeedle(!1,function(t){if(!i(t))return t+e;var n=o(t);return n.expression+=e,s(n)})},this.removeChar=function(){return this.highlightAndFindWithNeedle(!1,function(e){if(!i(e))return e.substring(0,e.length-1);var t=o(e);return t.expression=t.expression.substring(0,t.expression.length-1),s(t)})},this.next=function(e){return e=e||{},this.$options.backwards=!!e.backwards,this.$currentPos=this.$editor.getCursorPosition(),this.highlightAndFindWithNeedle(!0,function(t){return e.useCurrentOrPrevSearch&&0===t.length?this.$prevNeedle||"":t})},this.onMouseDown=function(){return this.deactivate(),!0},this.onPaste=function(e){this.addString(e)},this.convertNeedleToRegExp=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?e:r(e,"ig")})},this.convertNeedleToString=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?o(e).expression:e})},this.statusMessage=function(e){var t=this.$options,n="";n+=t.backwards?"reverse-":"",n+="isearch: "+t.needle,n+=e?"":" (not found)",this.message(n)},this.message=function(e){this.$editor.showCommandLine?(this.$editor.showCommandLine(e),this.$editor.focus()):console.log(e)}}.call(n.prototype),t.IncrementalSearch=n;var g=e("./lib/dom");g.importCssString&&g.importCssString(".ace_marker-layer .ace_isearch-result { position: absolute; z-index: 6; box-sizing: border-box;}div.ace_isearch-result { border-radius: 4px; background-color: rgba(255, 200, 0, 0.5); box-shadow: 0 0 4px rgb(255, 200, 0);}.ace_dark div.ace_isearch-result { background-color: rgb(100, 110, 160); box-shadow: 0 0 4px rgb(80, 90, 140);}","incremental-search-highlighting");var p=e("./commands/command_manager");(function(){this.setupIncrementalSearch=function(e,t){if(this.usesIncrementalSearch!=t){this.usesIncrementalSearch=t;var n=u.iSearchStartCommands;this[t?"addCommands":"removeCommands"](n)}}}).call(p.CommandManager.prototype);var f=e("./editor").Editor;e("./config").defineOptions(f.prototype,"editor",{useIncrementalSearch:{set:function(e){this.keyBinding.$handlers.forEach(function(t){t.setupIncrementalSearch&&t.setupIncrementalSearch(this,e)}),this._emit("incrementalSearchSettingChanged",{isEnabled:e})}}})}),ace.define("ace/keyboard/emacs",["require","exports","module","ace/lib/dom","ace/incremental_search","ace/commands/incremental_search_commands","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t){"use strict";var n=e("../lib/dom");e("../incremental_search");var i=e("../commands/incremental_search_commands"),o=e("./hash_handler").HashHandler;t.handler=new o,t.handler.isEmacs=!0,t.handler.$id="ace/keyboard/emacs";var r,s,a=!1;t.handler.attach=function(e){a||(a=!0,n.importCssString(" .emacs-mode .ace_cursor{ border: 1px rgba(50,250,50,0.8) solid!important; box-sizing: border-box!important; background-color: rgba(0,250,0,0.9); opacity: 0.5; } .emacs-mode .ace_hidden-cursors .ace_cursor{ opacity: 1; background-color: transparent; } .emacs-mode .ace_overwrite-cursors .ace_cursor { opacity: 1; background-color: transparent; border-width: 0 0 2px 2px !important; } .emacs-mode .ace_text-layer { z-index: 4 } .emacs-mode .ace_cursor-layer { z-index: 2 }","emacsMode")),r=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.$emacsMark=null,e.session.$emacsMarkRing=e.session.$emacsMarkRing||[],e.emacsMark=function(){return this.session.$emacsMark},e.setEmacsMark=function(e){this.session.$emacsMark=e},e.pushEmacsMark=function(e,t){var n=this.session.$emacsMark;n&&this.session.$emacsMarkRing.push(n),!e||t?this.setEmacsMark(e):this.session.$emacsMarkRing.push(e)},e.popEmacsMark=function(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.session.$emacsMarkRing.pop()},e.getLastEmacsMark=function(){return this.session.$emacsMark||this.session.$emacsMarkRing.slice(-1)[0]},e.emacsMarkForSelection=function(e){var t=this.selection,n=this.multiSelect?this.multiSelect.getAllRanges().length:1,i=t.index||0,o=this.session.$emacsMarkRing,r=o.length-(n-i),s=o[r]||t.anchor;return e&&o.splice(r,1,"row"in e&&"column"in e?e:undefined),s},e.on("click",c),e.on("changeSession",l),e.renderer.$blockCursor=!0,e.setStyle("emacs-mode"),e.commands.addCommands(d),t.handler.platform=e.commands.platform,e.$emacsModeHandler=this,e.addEventListener("copy",this.onCopy),e.addEventListener("paste",this.onPaste)},t.handler.detach=function(e){e.renderer.$blockCursor=!1,e.session.$selectLongWords=r,e.session.$useEmacsStyleLineStart=s,e.removeEventListener("click",c),e.removeEventListener("changeSession",l),e.unsetStyle("emacs-mode"),e.commands.removeCommands(d),e.removeEventListener("copy",this.onCopy),e.removeEventListener("paste",this.onPaste),e.$emacsModeHandler=null};var l=function(e){e.oldSession&&(e.oldSession.$selectLongWords=r,e.oldSession.$useEmacsStyleLineStart=s),r=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.hasOwnProperty("$emacsMark")||(e.session.$emacsMark=null),e.session.hasOwnProperty("$emacsMarkRing")||(e.session.$emacsMarkRing=[])},c=function(e){e.editor.session.$emacsMark=null},h=e("../lib/keys").KEY_MODS,u={C:"ctrl",S:"shift",M:"alt",CMD:"command"};["C-S-M-CMD","S-M-CMD","C-M-CMD","C-S-CMD","C-S-M","M-CMD","S-CMD","S-M","C-CMD","C-M","C-S","CMD","M","S","C"].forEach(function(e){var t=0;e.split("-").forEach(function(e){t|=h[u[e]]}),u[t]=e.toLowerCase()+"-"}),t.handler.onCopy=function(e,n){n.$handlesEmacsOnCopy||(n.$handlesEmacsOnCopy=!0,t.handler.commands.killRingSave.exec(n),n.$handlesEmacsOnCopy=!1)},t.handler.onPaste=function(e,t){t.pushEmacsMark(t.getCursorPosition())},t.handler.bindKey=function(e,t){if("object"==typeof e&&(e=e[this.platform]),e){var n=this.commandKeyBinding;e.split("|").forEach(function(e){e=e.toLowerCase(),n[e]=t,e.split(" ").slice(0,-1).reduce(function(e,t,n){var i=e[n-1]?e[n-1]+" ":"";return e.concat([i+t])},[]).forEach(function(e){n[e]||(n[e]="null")})},this)}},t.handler.getStatusText=function(e,t){var n="";return t.count&&(n+=t.count),t.keyChain&&(n+=" "+t.keyChain),n},t.handler.handleKeyboard=function(e,t,n,i){if(-1===i)return undefined;var o=e.editor;if(o._signal("changeStatus"),-1==t&&(o.pushEmacsMark(),e.count)){var r=new Array(e.count+1).join(n);return e.count=null,{command:"insertstring",args:r}}var s=u[t];if("c-"==s||e.count){var a=parseInt(n[n.length-1]);if("number"==typeof a&&!isNaN(a))return e.count=Math.max(e.count,0)||0,e.count=10*e.count+a,{command:"null"}}s&&(n=s+n),e.keyChain&&(n=e.keyChain+=" "+n);var l=this.commandKeyBinding[n];if(e.keyChain="null"==l?n:"",!l)return undefined;if("null"===l)return{command:"null"};if("universalArgument"===l)return e.count=-4,{command:"null"};var c;if("string"!=typeof l&&(c=l.args,l.command&&(l=l.command),"goorselect"===l&&(l=o.emacsMark()?c[1]:c[0],c=null)),"string"==typeof l&&(("insertstring"===l||"splitline"===l||"togglecomment"===l)&&o.pushEmacsMark(),!(l=this.commands[l]||o.commands.commands[l])))return undefined;if(!l.readOnly&&!l.isYank&&(e.lastCommand=null),!l.readOnly&&o.emacsMark()&&o.setEmacsMark(null),e.count){var a=e.count;if(e.count=0,!l||!l.handlesCount)return{args:c,command:{exec:function(e,t){for(var n=0;n30&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data[t]||"";e&&(n+=e),n&&(this.$data[t]=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join("\n")},pop:function(){return this.$data.length>1&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}}),function(){ace.require(["ace/keyboard/emacs"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t){"use strict";var n=function(e){this.$editor=e;var t=this,n=[],i=!1;this.onAfterExec=function(){i=!1,t.processRows(n),n=[]},this.onExec=function(){i=!0},this.onChange=function(e){i&&(-1==n.indexOf(e.start.row)&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;for(var t=[],n=0,i=e.length;n-1))for(var r=this.$findCellWidthsForBlock(o),s=this.$setBlockCellWidthsToMax(r.cellWidths),a=r.firstRow,l=0,c=s.length;l=0&&(t=this.$cellWidthsForRow(i),0!=t.length);)n.unshift(t),i--;var o=i+1;i=e;for(var r=this.$editor.session.getLength();i0&&(this.$editor.session.getDocument().insertInLine({row:e,column:c+1},Array(h+1).join(" ")+"\t"),this.$editor.session.getDocument().removeInLine(e,c,c+1),i+=h),h<0&&g>=-h&&(this.$editor.session.getDocument().removeInLine(e,c+h,c),i+=h)}}},this.$izip_longest=function(e){if(!e[0])return[];for(var t=e[0].length,n=e.length,i=1;it&&(t=o)}for(var r=[],s=0;s=t.length?t.length:e.length,i=[],o=0;o'+t.command+' : '+t.key+""},"");r.id="kbshortcutmenu",r.innerHTML="

Keyboard Shortcuts

"+s+"",n(t,r)}}var o=e("../editor").Editor;n.exports.init=function(e){o.prototype.showKeyboardShortcuts=function(){i(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){e.showKeyboardShortcuts()}}])}}),function(){ace.require(["ace/ext/keybinding_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],function(e,t){"use strict";function n(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,r=e("./lib/lang"),s=e("./range").Range,a=e("./range_list").RangeList,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,h=e("./clipboard"),u={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(){return h.getText&&h.getText()},FILENAME:function(e){return/[^\/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^\/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^\/\\]*$/,"")},FILEPATH:function(){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:n.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:n.bind(null,{year:"2-digit"}),CURRENT_MONTH:n.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:n.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:n.bind(null,{month:"short"}),CURRENT_DATE:n.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:n.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:n.bind(null,{weekday:"short"}),CURRENT_HOUR:n.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:n.bind(null,{minute:"2-digit"}),CURRENT_SECOND:n.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,o),this.getTokenizer=function(){return d.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag="",""},next:"formatString"};return d.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,i){var o=e(t.substr(1));return i.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\0"}).split("\0");return n[0].choices=i,[i[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:i>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=u,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var i=t.flag||"",o=t.guard;o=new RegExp(o,i.replace(/[^gim]/g,""));var r="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(o,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(r,n),i="E",o=0;o1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,w+=e}else e&&(e.start?e.end={row:v,column:b}:e.start={row:v,column:b})});var y=e.getSelectionRange(),x=e.session.replace(y,w),k=new g(e),C=e.inVirtualSelectionMode&&e.selection.index;k.addTabstops(l,y.start,x,C)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some(function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n},this),!!n&&(!(!t||!t.dryRun)||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null,!0))},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){function n(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function i(e,t,i){return e=n(e),t=n(t),i?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function o(e){e.scope||(e.scope=t||"_"),t=e.scope,s[t]||(s[t]=[],a[t]={});var n=a[t];if(e.name){var o=n[e.name];o&&l.unregister(o),n[e.name]=e}s[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=r.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=i(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=i(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var s=this.snippetMap,a=this.snippetNameMap,l=this;e||(e=[]),e&&e.content?o(e):Array.isArray(e)&&e.forEach(o),this._signal("registerSnippets",{scope:t})}, this.unregister=function(e,t){function n(e){var n=o[e.scope||t];if(n&&n[e.name]){delete n[e.name];var r=i[e.scope||t],s=r&&r.indexOf(e);s>=0&&r.splice(s,1)}}var i=this.snippetMap,o=this.snippetNameMap;e.content?n(e):Array.isArray(e)&&e.forEach(n)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(e){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],s=t[3];if("regex"==r){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(s)[1],i.trigger=a.exec(s)[1],i.endTrigger=a.exec(s)[1],i.endGuard=a.exec(s)[1]}else"snippet"==r?(i.tabTrigger=s.match(/^\S*/)[0],i.name||(i.name=s)):i[r]=s}}return n},this.getSnippetByName=function(e,t){var n,i=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var o=i[t];return o&&(n=o[e]),!!n},this),n}}).call(d.prototype);var g=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=r.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop&&this.selectedTabstop.parents||{},i=(this.tabstops||[]).slice(),o=0;o2&&(this.tabstops.length&&l.push(l.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,l))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),-1!=t&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),-1!=t&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(){return!1}})}).call(g.prototype);var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},f=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new d;var m=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(m.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t){"use strict";var n=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,r=e("../lib/event"),s=e("../lib/lang"),a=e("../lib/dom"),l=function(e){var t=new n(e);t.$maxLines=4;var o=new i(t);return o.setHighlightActiveLine(!1),o.setShowPrintMargin(!1),o.renderer.setShowGutter(!1),o.renderer.setHighlightGutterLine(!1),o.$mouseHandler.$focusTimeout=0,o.$highlightTagPending=!0,o},c=function(e){var t=a.createElement("div"),n=new l(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),u.start.row=u.end.row=t.row,e.stop()});var c,h=new o(-1,0,-1,Infinity),u=new o(-1,0,-1,Infinity);u.id=n.session.addMarker(u,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?h.id&&(n.session.removeMarker(h.id),h.id=null):h.id=n.session.addMarker(h,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",function(e){if(!c)return void(c=e);if(c.x!=e.x||c.y!=e.y){c=e,c.scrollTop=n.renderer.scrollTop;var t=c.getDocumentPosition().row;h.start.row!=t&&(h.id||n.setRow(t),g(t))}}),n.renderer.on("beforeRender",function(){if(c&&-1!=h.start.row){c.$pos=null;var e=c.getDocumentPosition().row;h.id||n.setRow(e),g(e,!0)}}),n.renderer.on("afterRender",function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow];i!==t.selectedNode&&t.selectedNode&&a.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=i,i&&a.addCssClass(i,"ace_selected")});var d=function(){g(-1)},g=function(e,t){e!==h.start.row&&(h.start.row=h.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return h.start.row},r.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var p=n.session.bgTokenizer;return p.$tokenizeRow=function(e){function t(e,t){e&&o.push({type:(i.className||"")+(t||""),value:e})}var i=n.data[e],o=[];if(!i)return o;"string"==typeof i&&(i={value:i});for(var r=i.caption||i.value||i.name,s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,c=0,h=0;h<=a.length;h++)if(h!=c&&(i.matchMask&1<r/2&&!i&&h+t+l>r?(a.$maxPixelHeight=h-2*this.$borderSize,o.style.top="",o.style.bottom=r-h+"px",n.isTopdown=!1):(h+=t,a.$maxPixelHeight=r-h-.2*t,o.style.top=h+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="";var u=e.left;u+o.offsetWidth>s&&(u=s-o.offsetWidth),o.style.left=u+"px",this._signal("show"),c=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};a.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=c,t.$singleLineEditor=l}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r=0&&i.test(e[r]);r--)o.push(e[r]);return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var o=[],r=t;rthis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var n=null;t=t.filter(function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,h=-1,u=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var g=a.toLowerCase().indexOf(o);if(g>-1)d=g;else for(var p=0;p=0&&(m<0||f0&&(-1===h&&(d+=10),d+=c,u|=1<",r.escapeHTML(e.caption),"","
",r.escapeHTML(e.snippet)].join(""))}},h=[c,a,l];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=a,t.keyWordCompleter=l,t.snippetCompleter=c;var u={name:"expandSnippet",exec:function(e){return n.expandWithTab(e)},bindKey:"Tab"},d=function(e,t){g(t.session.$mode)},g=function(e){var t=e.$id;n.files||(n.files={}),p(t),e.modes&&e.modes.forEach(g)},p=function(e){if(e&&!n.files[e]){var t=e.replace("mode","snippets");n.files[e]={},o.loadModule(t,function(t){t&&(n.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=n.parseSnippetFile(t.snippetText)),n.register(t.snippets||[],t.scope),t.includeScopes&&(n.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){p("ace/mode/"+e)})))})}},f=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){var o=s.getCompletionPrefix(t);if(o&&!n){var r=i["for"](t);r.autoInsert=!1,r.showPopup(t)}}},m=e("../editor").Editor;e("../config").defineOptions(m.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",f)):this.commands.removeListener("afterExec",f)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(u),this.on("changeMode",d),d(null,this)):(this.commands.removeCommand(u),this.off("changeMode",d))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,t){function n(e){var n=e.editor;if(e.getAccelKey()){var n=e.editor,i=e.getDocumentPosition(),o=n.session,r=o.getTokenAt(i.row,i.column);t.previousLinkingHover&&t.previousLinkingHover!=r&&n._emit("linkHoverOut"),n._emit("linkHover",{position:i,token:r}),t.previousLinkingHover=r}else t.previousLinkingHover&&(n._emit("linkHoverOut"),t.previousLinkingHover=!1)}function i(e){var t=e.getAccelKey();if(0==e.getButton()&&t){var n=e.editor,i=e.getDocumentPosition(),o=n.session,r=o.getTokenAt(i.row,i.column);n._emit("linkClick",{position:i,token:r})}}var o=e("../editor").Editor;e("../config").defineOptions(o.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",i),this.on("mousemove",n)):(this.off("click",i),this.off("mousemove",n))},value:!1}}),t.previousLinkingHover=!1}),function(){ace.require(["ace/ext/linking"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/ext/rtl",["require","exports","module","ace/editor","ace/config"],function(e){"use strict";function t(e,t){var n=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(n.row)&&0===n.column&&(t.session.$bidiHandler.isMoveLeftOperation&&n.row>0?t.getSelection().moveCursorTo(n.row-1,t.session.getLine(n.row-1).length):t.getSelection().isEmpty()?n.column+=1:n.setPosition(n.row,n.column+1))}function n(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function i(e,t){var n=t.session;if(n.$bidiHandler.currentRow=null,n.$bidiHandler.isRtlLine(e.start.row)&&"insert"===e.action&&e.lines.length>1)for(var i=e.start.row;il))&&(s[0]||(t.lastIndex=a+=1,!(a>=o.length))););}this.searchCounter.textContent=i+" of "+(n>l?l+"+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),t=!e&&this.searchInput.value;n.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(c.prototype),t.SearchBox=c,t.Search=function(e,t){(e.searchBox||new c(e)).show(e.session.getTextRange(),t)}}),function(){ace.require(["ace/ext/searchbox"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)})}(),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";e("../../lib/dom").importCssString("#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}"),n.exports.overlayPage=function(e,t,n){function i(e){27===e.keyCode&&o()}function o(){r&&(document.removeEventListener("keydown",i),r.parentNode.removeChild(r),e.focus(),r=null,n&&n())}var r=document.createElement("div");return r.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",r.addEventListener("click",function(){o()}),document.addEventListener("keydown",i),t.addEventListener("click",function(e){e.stopPropagation()}),r.appendChild(t),document.body.appendChild(r),e.blur(),{close:o}}}),ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){for(var t=l.text,n=e.split(/[\/\\]/).pop(),i=0;i 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o")}return this.textContent&&e.push(this.textContent),"fragment"!=this.type&&e.push(""),e.join("")};var h={createTextNode:function(e){return c(e)},createElement:function(e){return new i(e)},createFragment:function(){ return new i("fragment")}},u=function(){this.config={},this.dom=h};u.prototype=r.prototype;var d=function(e,t,n){var i=e.className.match(/lang-(\w+)/),o=t.mode||i&&"ace/mode/"+i[1];if(!o)return!1;var r=t.theme||"ace/theme/textmate",s="",a=[];if(e.firstElementChild)for(var c=0,h=0;h");e.push("")}var r=null,s={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},l={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:r,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:r,useSoftTabs:r,showInvisibles:r},c=[];c.push("");for(var h in t.defaultOptions)c.push(""),c.push("");c.push("
SettingValue
",s[h],""),o(c,h,l[h],i.getOption(h)),c.push("
"),e.innerHTML=c.join("");for(var u=function(e){var t=e.currentTarget;i.setOption(t.title,t.value)},d=function(e){var t=e.currentTarget;i.setOption(t.title,t.checked)},g=e.getElementsByTagName("select"),p=0;p0&&!(r%h)&&!(c%h)&&(i[h]=(i[h]||0)+1),n[c]=(n[c]||0)+1}r=c}for(;ad.score&&(d={score:p,length:a})}if(d.score&&d.score>1.4)var f=d.length;return o>g+1?((1==f||go+1?{ch:" ",length:f}:void 0},t.detectIndentation=function(e){var n=e.getLines(0,1e3),i=t.$detectIndentation(n)||{};return i.ch&&e.setUseSoftTabs(" "==i.ch),i.length&&e.setTabSize(i.length),i},t.trimTrailingSpace=function(e,t){var n=e.getDocument(),i=n.getAllLines(),o=t&&t.trimEmpty?-1:0,r=[],s=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(e,t,n){var i=n[t+1];i&&i.cursor.row==e.cursor.row||r.push(e.cursor)}):r.push(e.selection.getCursor()),s=0);for(var a=r[s]&&r[s].row,l=0,c=i.length;lo&&(u=r[s].column),s++,a=r[s]?r[s].row:-1),u>o&&n.removeInLine(l,u,h.length)}},t.convertIndentation=function(e,t,i){var o=e.getTabString()[0],r=e.getTabSize();i||(i=r),t||(t=o);for(var s="\t"==t?t:n.stringRepeat(t,i),a=e.doc,l=a.getAllLines(),c={},h={},u=0,d=l.length;u=i&&r[2].charAt(0)==o?(n.splice(0,3),this.next=n.shift(),this.token):(this.next="",this.token)}},{defaultToken:"support.function"}],startCodeBlockMatch=function(e,t,n){var i=new RegExp(this.regex).exec(e);return n.unshift("githubblock",[],[i[2].length,i[2].charAt(0)],t),this.token},GollumCodeStart={token:"support.function",regex:"^( {0,3})(```)[^`]*$",onMatch:startCodeBlockMatch,next:"githubblock"},MarkdownCodeStart={token:"support.function",regex:"^( {0,3})(~~[~]+)[^`~]*$",onMatch:startCodeBlockMatch,next:"githubblock"};ace.define("GollumRstHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rst_highlight_rules").RSTHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumAsciidocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/asciidoc_highlight_rules").AsciidocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextileHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/textile_highlight_rules").TextileHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/text_highlight_rules").TextHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumRdocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rdoc_highlight_rules").RDocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumMarkdownHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.$rules.start.unshift(MarkdownCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),function(e){var t={asciidoc:{mode:"asciidoc",highlighter:"GollumAsciidocHighlightRules"},creole:{mode:"text",highlighter:"GollumTextHighlightRules"},markdown:{mode:"markdown",highlighter:"GollumMarkdownHighlightRules"},mediawiki:{mode:"text",highlighter:"GollumTextHighlightRules"},bib:{mode:"latex"},org:{mode:"text",highlighter:"GollumTextHighlightRules"},rst:{mode:"rst",highlighter:"GollumRstHighlightRules"},txt:{mode:"text"},pod:{mode:"text",highlighter:"GollumTextHighlightRules"},rdoc:{mode:"rdoc",highlighter:"GollumRdocHighlightRules"},textile:{mode:"textile",highlighter:"GollumTextileHighlightRules"}};e.getEditorMode=function(e){var n=null;if(n=t[e]){var i=n.mode,o=n.highlighter;if(o){var r=ace.require("ace/mode/"+i).Mode,s=new r;return s.HighlightRules=ace.require(o).GollumHighlightRules,s}return"ace/mode/"+i}return null}}(jQuery),function(e){function t(e){return new RegExp("^[^A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufdfe-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]").test(e)}function n(e){window.ace_editor.session.$bidiHandler.$isRtl=e,window.ace_editor.session.$bidiHandler.updateBidiMap(),window.ace_editor.renderer.updateFull()}function i(){s&&clearTimeout(s),e("#gollum-saved-msg").text("Saving..."),s=setTimeout(function(){localStorage.setItem(a,window.ace_editor.getSession().getValue()),e("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").each(function(e,t){var n=a+t.id.replace("gollum-editor-","_");localStorage.setItem(n,t.value)}),e("#gollum-saved-msg").text("Saved recovery text")},2e3)}var o={MarkupType:"markdown",EditorMode:"code",NewFile:!1,HasFunctionBar:!0,Debug:!1,NoDefinitionsFor:[]},r={},s=null,a="gollum_autorecover_"+window.location;e.GollumEditor=function(s){if(r=e.extend(o,s),e('textarea[id="gollum-editor-body"]').each(function(){var o=e(this),s=o.attr("data-markup-lang")?o.attr("data-markup-lang"):"markdown",l=e("
",{position:"absolute",height:o.height(),"class":o.attr("class"),id:"gollum-editor-body-ace"}).insertAfter(o);o.css("display","none");var c=ace.edit(l[0],{rtlText:!0});window.ace_editor=c;var h=localStorage.getItem(a);h&&(e("#gollum-autorecover-button").click(function(t){c.getSession().setValue(h),["header","footer","sidebar"].forEach(function(t){var n=localStorage.getItem(a+"_"+t);n&&e("#gollum-editor-"+t).val(n)}),e("#gollum-autorecover-msg")[0].hidden=!0,t.preventDefault()}),e("#gollum-autorecover-msg")[0].hidden=!1),c.setTheme("ace/theme/tomorrow"),c.setKeyboardHandler(),c.renderer.setShowGutter(!1),c.getSession().setUseWrapMode(!0),c.getSession().setValue(o.val()),c.getSession().setMode(e.getEditorMode(s)),c.getSession().on("change",function(){o.val(c.getSession().getValue()),i()}),e("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").on("change keyup paste",i),t(c.getSession().getLine(0))&&n(!0),c.commands.addCommand({name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){ace.config.loadModule("ace/ext/keybinding_menu",function(t){t.init(e),e.showKeyboardShortcuts()})}}),r.commands&&e.each(r.commands,function(e,t){c.commands.addCommand(t)})}),e("#gollum-editor-body-ace").resize(function(){window.ace_editor.resize()}),e("#wiki_format").change(function(){var t=e(this).val(),n=window.ace_editor;window.ace_editor.getSession().setMode(e.getEditorMode(t)),d.updateCommitMessage(t),n.focus()}),e("#keybinding").change(function(){var t=e(this).val(),n=window.ace_editor;"default"==t?n.setKeyboardHandler():"vim"==t||"emacs"==t?n.setKeyboardHandler("ace/keyboard/"+t):n.setKeyboardHandler(),n.focus()}),e("#gollum-editor-submit, #gollum-editor-cancel").click(function(){var e="gollum_autorecover_"+window.location;localStorage.removeItem(e),["header","footer","sidebar"].forEach(function(t){localStorage.removeItem(e+"_"+t)})}),l("GollumEditor loading"),h.baseEditorMarkup()){if(h.titleDisplayed()&&e("#gollum-editor-title-field").addClass("active"),h.editSummaryMarkup()&&(e.GollumEditor.Placeholder.add(e("#gollum-editor-edit-summary input")),e('#gollum-editor form[name="gollum-editor"]').submit(function(t){t.preventDefault(),l("submitting"),e(this).unbind("submit"),e(this).submit()})),h.collapsibleInputs()&&e("#gollum-editor .collapsed button.collapsable, #gollum-editor .expanded button.collapsable").click(function(t){t.preventDefault(),e(this).parent().toggleClass("expanded"),e(this).parent().toggleClass("collapsed"),buttons=e(this).parent().children("button"),hidden_button=buttons.filter(":hidden")[0],shown_button=buttons.not(":hidden")[0],hidden_button.hidden=!1,shown_button.hidden=!0}),h.previewButton()){e("#gollum-editor #gollum-editor-preview").click(function(){var t=e("#gollum-editor form").attr("action"),n=e(e("#gollum-editor form").get(0));n.attr("action",this.href||routePath("preview")),n.attr("target","_blank");var i=window.location.pathname.split("/");return n.attr("page",i[i.length-1]||""),n.submit(),n.attr("action",t),n.removeAttr("target"),!1})}if(h.functionBar()){var u=e("#gollum-editor-body").attr("data-markup-lang");u&&(r.MarkupType=u),c.setActiveLanguage(r.MarkupType),h.formatSelector()&&d.init(e("#wiki_format")),h.dir()&&e("#function-text-direction").click(function(e){e.preventDefault(),n(!window.ace_editor.session.$bidiHandler.$isRtl)}),h.help()&&(e("#gollum-editor-help").hide(),e("#gollum-editor-help").removeClass("jaws"))}if(r.section&&e.markupSupportsEditableSections(r.MarkupType)){var g=e.findSection(r.section,c.getDefinitionFor("gollum-helpers"));g&&(window.ace_editor.gotoLine(g+1,0,animate=!1),window.ace_editor.scrollToLine(g,center=!1,animate=!1),window.ace_editor.focus())}if(h.dragDropUpload()){var p=e("#gollum-editor-body-ace"),f=e("#gollum-editor-body-ace")[0];f.ondragover=function(){return p.addClass("dragging"),!1},f.ondragleave=function(){return p.removeClass("dragging"),!1},f.ondrop=function(t){l("dropped file"),t.preventDefault(),p.removeClass("dragging").addClass("uploading");var n=t.dataTransfer.files[0],i=new FormData;return i.append("file",n),e.ajax({url:routePath("upload_file"),data:i,cache:!1,contentType:!1,processData:!1,type:"POST",success:function(){p.removeClass("uploading");var e=n.name.split(".").pop().toLowerCase(),t=["jpg","jpeg","tif","tiff","png","gif","svg","bmp"];if(uploadDest=uploadDest.replace(/%20/g," "),t.indexOf(e)>-1)var i="[[/"+uploadDest+"/"+n.name+"]]";else var i="[["+n.name+"|/"+uploadDest+"/"+n.name+"]]";window.ace_editor.insert(i)},error:function(e,t,n){409==e.status?alert("This file already exists."):alert("Error uploading file: "+t+" "+n),p.removeClass("uploading")}}),!1}}}},e.GollumEditor.defineLanguage=function(e,t){"object"==typeof t?c.define(e,t):l("GollumEditor.defineLanguage: definition for "+e+" is not an object")};var l=function(e){r.Debug&&"undefined"!=typeof console&&console.log(e)},c={_ACTIVE_LANG:"",_LOADED_LANGS:[],_LANG:{},define:function(t,n){if(c._ACTIVE_LANG=t,c._LOADED_LANGS.push(t),"object"==typeof e.GollumEditor.WikiLanguage){var i={};e.extend(i,e.GollumEditor.WikiLanguage,n),c._LANG[t]=i}else c._LANG[t]=n},getActiveLanguage:function(){return c._ACTIVE_LANG},setActiveLanguage:function(e){function t(e){return function(){var t=c.getDefinitionFor(e);"object"==typeof t&&u.executeAction(t)}}null!=c._ACTIVE_LANG&&c._ACTIVE_LANG.length<=0&&d.updateCommitMessage(e),c.getHookFunctionFor("deactivate")&&c.getHookFunctionFor("deactivate")(),c.isLoadedFor(e)?(c._ACTIVE_LANG=e,u.refresh(),c.getHookFunctionFor("activate")&&c.getHookFunctionFor("activate")()):(c._ACTIVE_LANG=null,h.functionBar()&&u.refresh(),c.isValid()&&h.formatSelector()&&d.updateSelected(),c.getHookFunctionFor("activate")&&c.getHookFunctionFor("activate")()),window.ace_editor.commands.addCommand({name:"header-1",bindKey:{win:"Ctrl-1",mac:"Command-1"},exec:t("function-h1")}),window.ace_editor.commands.addCommand({name:"header-2",bindKey:{win:"Ctrl-2",mac:"Command-2"},exec:t("function-h2")}),window.ace_editor.commands.addCommand({name:"header-3",bindKey:{win:"Ctrl-3",mac:"Command-3"},exec:t("function-h3")}),window.ace_editor.commands.addCommand({name:"bold-text",bindKey:{win:"Ctrl-b",mac:"Command-b"},exec:t("function-bold")}),window.ace_editor.commands.addCommand({name:"italic-text",bindKey:{win:"Ctrl-i",mac:"Command-i"},exec:t("function-italic")})},getHookFunctionFor:function(e,t){return t||(t=c._ACTIVE_LANG),c.isLoadedFor(t)&&c._LANG[t][e]&&"function"==typeof c._LANG[t][e]?c._LANG[t][e]:null},getDefinitionFor:function(e,t){return t||(t=c._ACTIVE_LANG),c.isLoadedFor(t)&&c._LANG[t][e]&&"object"==typeof c._LANG[t][e]?c._LANG[t][e]:null},isLoadedFor:function(e){if(0===c._LOADED_LANGS.length)return!1;for(var t=0;t0},help:function(){return e("#gollum-editor #gollum-editor-help").length&&e("#gollum-editor #function-help").length},dir:function(){return e("#gollum-editor #function-text-direction").length},previewButton:function(){return e("#gollum-editor #gollum-editor-preview").length},titleDisplayed:function(){return r.NewFile},dragDropUpload:function(){return e("#gollum-editor.uploads-allowed").length}},u={isActive:!1,activate:function(){l("Activating function bar"),e("#gollum-editor-function-bar button.function-button").each(function(){c.getDefinitionFor(e(this).attr("id"))?(e(this).click(u.evtFunctionButtonClick),e(this).attr("disabled",!1)):["function-help","function-text-direction"].includes(e(this).attr("id"))||e(this).attr("disabled",!0)}),e("#gollum-editor-function-bar").addClass("active"),u.isActive=!0},deactivate:function(){e("#gollum-editor-function-bar button.function-button").not("#function-text-direction").unbind("click"),e("#gollum-editor-function-bar").removeClass("active"),u.isActive=!1},evtFunctionButtonClick:function(t){t.preventDefault();var n=c.getDefinitionFor(e(this).attr("id"));"object"==typeof n&&u.executeAction(n)},executeAction:function(t){var n=window.ace_editor,i=n.getValue(),o=!1,r=!1,s=n.getSelectionRange(),a=n.getSelectedText(),c=a.length,h=!1;if(""==a)if(t.whole_line&&1==t.whole_line){h=!0;var u=s.start.row;a=n.session.getLine(u);var d=ace.require("ace/range").Range;s=new d(u,0,u,a.length) diff --git a/lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js.gz b/lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js.gz similarity index 80% rename from lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js.gz rename to lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js.gz index 482ce371..c8c21d71 100644 Binary files a/lib/gollum/public/assets/editor-b2c10f22ef6ca1e120956a2d11ff4ca19ac44d7e7240f5cc43ec949184d8b708.js.gz and b/lib/gollum/public/assets/editor-b621bfe2cb8823516fb3a96c32e82001b297f6754117b47bdad6e59db85a9d08.js.gz differ diff --git a/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz b/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz index c4a9abda..845befd0 100644 Binary files a/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz and b/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz differ diff --git a/lib/gollum/public/gollum/stylesheets/template.scss.erb b/lib/gollum/public/gollum/stylesheets/template.scss.erb index 85340dca..e3a40da3 100644 --- a/lib/gollum/public/gollum/stylesheets/template.scss.erb +++ b/lib/gollum/public/gollum/stylesheets/template.scss.erb @@ -615,6 +615,10 @@ a { color: #999; background-color: #EAF2F5; } + + .gg { + color: #000000a0; + } } .type-csharp { diff --git a/lib/gollum/views/commit.rb b/lib/gollum/views/commit.rb index fabd21c0..9c930ea3 100644 --- a/lib/gollum/views/commit.rb +++ b/lib/gollum/views/commit.rb @@ -23,12 +23,19 @@ module Precious end def files - files = @diff.split(%r{^diff --git a/.+ b/.+$}).reject(&:empty?) + files = @diff.force_encoding(Encoding::UTF_8).scan(%r{ + ^diff\ --git\ # diff start + .+? # diff body + (?=^diff\ --git|\Z) # scan until next diff or string + }sxmu) + files.map do |diff| - matched = diff.match(%r{(?<=^--- a/).+$}) - matched = diff.match(%r{(?<=^\+\+\+ b/).+$}) if matched.nil? + match = diff.match(%r{^diff --git (")?[ab]/(.+)(?(1)") (")?[ab]/(.+)(?(3)")}) + path = match[2] + path = match[4] if path.nil? + { - path: matched[0], + path: path, lines: lines(diff) } end diff --git a/lib/gollum/views/compare.rb b/lib/gollum/views/compare.rb index aea2e8de..ab2e83db 100644 --- a/lib/gollum/views/compare.rb +++ b/lib/gollum/views/compare.rb @@ -19,16 +19,21 @@ module Precious def lines(diff = @diff) lines = [] - lines_to_parse = diff.split("\n")[4..-1] - # If the diff is of a rename, the diff header will be one line longer than normal because it will contain a line starting with '+++' to indicate the 'new' filename. - # Make sure to skip that header line if it is present. - lines_to_parse = lines_to_parse[1..-1] if lines_to_parse[0].start_with?('+++') + lines_to_parse = diff.split("\n")[3..-1] + lines_to_parse = lines_to_parse[2..-1] if lines_to_parse[0].start_with?('---') + + if lines_to_parse.nil? || lines_to_parse.empty? + lines_to_parse = [] # File is created without content + else + lines_to_parse = lines_to_parse[1..-1] if lines_to_parse[0].start_with?('+++') + end + lines_to_parse.each_with_index do |line, line_index| lines << { :line => line, :class => line_class(line), :ldln => left_diff_line_number(line), :rdln => right_diff_line_number(line) } - end if diff + end lines end @@ -41,6 +46,8 @@ module Precious def line_class(line) if line =~ /^@@/ 'gc' + elsif git_line?(line) + 'gg' elsif line =~ /^\+/ 'gi' elsif line =~ /^\-/ @@ -53,7 +60,7 @@ module Precious @left_diff_line_number = nil def left_diff_line_number(line) - if line =~ /^@@/ + if git_line?(line) m, li = *line.match(/\-(\d+)/) @left_diff_line_number = li.to_i @current_line_number = @left_diff_line_number @@ -75,7 +82,7 @@ module Precious @right_diff_line_number = nil def right_diff_line_number(line) - if line =~ /^@@/ + if git_line?(line) m, ri = *line.match(/\+(\d+)/) @right_diff_line_number = ri.to_i @current_line_number = @right_diff_line_number @@ -93,6 +100,10 @@ module Precious end ret end + + def git_line?(line) + !!(line =~ /^(\\ No newline|Binary files|@@)/) + end end end end diff --git a/test/examples/lotr.git/logs/HEAD b/test/examples/lotr.git/logs/HEAD index 31af843f..b48cf99d 100644 --- a/test/examples/lotr.git/logs/HEAD +++ b/test/examples/lotr.git/logs/HEAD @@ -10,3 +10,4 @@ cfea406f5f77afc7fb673a43e97721234385b1bd 629aa678272b017a4d136d35e77ac94d80b08dc 563cc3701db990caf63e4ce9c3697a062890ca48 874f597a5659b4c3b153674ea04e406ff393975e Charles Pence 1363478075 -0400 push 874f597a5659b4c3b153674ea04e406ff393975e 7bdfe65face6f7cf9877d8c1d8c1dd974a63745e Nathan Lowe 1421012322 -0500 push 7bdfe65face6f7cf9877d8c1d8c1dd974a63745e f803c64d11407b23797325e3843f3f378b78f611 Dawa Ometto 1492034760 +0200 push +f803c64d11407b23797325e3843f3f378b78f611 181c757cca395d4da18701d069a6b8123e88e040 ViChyavIn 1609841455 +0500 push diff --git a/test/examples/lotr.git/logs/refs/heads/master b/test/examples/lotr.git/logs/refs/heads/master index 31af843f..b48cf99d 100644 --- a/test/examples/lotr.git/logs/refs/heads/master +++ b/test/examples/lotr.git/logs/refs/heads/master @@ -10,3 +10,4 @@ cfea406f5f77afc7fb673a43e97721234385b1bd 629aa678272b017a4d136d35e77ac94d80b08dc 563cc3701db990caf63e4ce9c3697a062890ca48 874f597a5659b4c3b153674ea04e406ff393975e Charles Pence 1363478075 -0400 push 874f597a5659b4c3b153674ea04e406ff393975e 7bdfe65face6f7cf9877d8c1d8c1dd974a63745e Nathan Lowe 1421012322 -0500 push 7bdfe65face6f7cf9877d8c1d8c1dd974a63745e f803c64d11407b23797325e3843f3f378b78f611 Dawa Ometto 1492034760 +0200 push +f803c64d11407b23797325e3843f3f378b78f611 181c757cca395d4da18701d069a6b8123e88e040 ViChyavIn 1609841455 +0500 push diff --git a/test/examples/lotr.git/objects/18/1c757cca395d4da18701d069a6b8123e88e040 b/test/examples/lotr.git/objects/18/1c757cca395d4da18701d069a6b8123e88e040 new file mode 100644 index 00000000..d310b091 Binary files /dev/null and b/test/examples/lotr.git/objects/18/1c757cca395d4da18701d069a6b8123e88e040 differ diff --git a/test/examples/lotr.git/objects/74/f14ff2ba122cef4b15862503d3138df0674353 b/test/examples/lotr.git/objects/74/f14ff2ba122cef4b15862503d3138df0674353 new file mode 100644 index 00000000..c48c71de Binary files /dev/null and b/test/examples/lotr.git/objects/74/f14ff2ba122cef4b15862503d3138df0674353 differ diff --git a/test/examples/lotr.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 b/test/examples/lotr.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 new file mode 100644 index 00000000..71122389 Binary files /dev/null and b/test/examples/lotr.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 differ diff --git a/test/examples/lotr.git/refs/heads/master b/test/examples/lotr.git/refs/heads/master index 3a743f29..9a418836 100644 --- a/test/examples/lotr.git/refs/heads/master +++ b/test/examples/lotr.git/refs/heads/master @@ -1 +1 @@ -f803c64d11407b23797325e3843f3f378b78f611 +181c757cca395d4da18701d069a6b8123e88e040 diff --git a/test/test_compare.rb b/test/test_compare.rb new file mode 100644 index 00000000..26fa8060 --- /dev/null +++ b/test/test_compare.rb @@ -0,0 +1,47 @@ +# ~*~ encoding: utf-8 ~*~ +require File.expand_path(File.join(File.dirname(__FILE__), 'helper')) +require File.expand_path '../../lib/gollum/views/commit', __FILE__ + +def get_commit_diff(sha1) + commit = @wiki.repo.commit(sha1) + @wiki.repo.diff(commit.parent.id, sha1) +end + +context "Precious::Views::Compare" do + setup do + @path = cloned_testpath('examples/lotr.git') + # Precious::App.set(:gollum_path, @path) + @wiki = Gollum::Wiki.new(@path) + end + + test 'file addition diff' do + view = Precious::Views::Compare.new + diff = get_commit_diff 'fbabba862dfa7ac35b39042dd4ad780c9f67b8cb' + view.instance_variable_set(:@diff, diff) + + assert_equal [ + {:line=>"@@ -0,0 +1 @@", :class=>"gc", :ldln=>"...", :rdln=>"..."}, + {:line=>"+# Eye Of Sauron", :class=>"gi", :ldln=>" ", :rdln=>"1"} + ], view.lines + end + + test 'empty file addition diff' do + view = Precious::Views::Compare.new + diff = get_commit_diff '181c757cca395d4da18701d069a6b8123e88e040' + view.instance_variable_set(:@diff, diff) + + assert_equal [], view.lines + end + + test 'binary file addition diff' do + view = Precious::Views::Compare.new + diff = get_commit_diff 'afe2034d400ba21e13361f38f74900c51dbc7fde' + view.instance_variable_set(:@diff, diff) + + lines = view.lines + line = lines[0].delete :line + + assert_match %r{Binary files (/dev/null and b/Mordor/eye.jpg )?differ}, line + assert_equal [{:class=>"gg", :ldln=>"...", :rdln=>"..."}], lines + end +end diff --git a/test/test_latest_changes_view.rb b/test/test_latest_changes_view.rb index 4704c793..c15fd5f2 100644 --- a/test/test_latest_changes_view.rb +++ b/test/test_latest_changes_view.rb @@ -35,9 +35,11 @@ context 'Precious::Views::LatestChanges' do get(@url) body = last_response.body + commits_list_elements = body.scan(%r{
  • }) + assert !commits_list_elements.nil?, "the commits should be listed with this tag" + assert commits_list_elements.length == 10, "/latest_changes should include the :pagination_count commit" + assert body.include?("Charles Pence"), "/latest_changes should include Author Charles Pence" - assert body.include?('1db89eb'), "/latest_changes should include the :pagination_count commit" - assert !body.include?('a8ad3c0'), "/latest_changes should not include more than :pagination_count commits" assert body.include?('Data-Two.csv'), "/latest_changes include links to modified files in #{body}" assert body.include?('Hobbit.md'), "/latest_changes should include links to modified pages in #{body}" end