/** * @license Asciidoctor.js 3.0.0-alpha.4 | MIT | https://github.com/asciidoctor/asciidoctor.js */ function e(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(e){var t=e.klass,r=e.defs,n=[];return e.nil,e.add_stubs("new"),function(n,i,o){var s=t(n,null,"File"),a=[s].concat(o),$=e.$r(a);return r(s,"$read",(function(e){var t="",r=-1;try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.addEventListener("load",(function(){0!==(r=this.status)&&200!==r||(t=this.responseText)})),n.overrideMimeType("text/plain"),n.send()}catch(t){throw $("IOError").$new("Error reading file or directory: "+e+"; reason: "+t.message)}if(404===r||0===r&&!t)throw $("IOError").$new("No such file or directory: "+e);return t}))}(n[0],0,n)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(t){var r,n,i,o,s=t.const_set,a=t.top,$=[];if(t.nil,t.add_stubs("require"),"object"==typeof e&&"object"==typeof e.runtime){var l=e.runtime;r=l.platform,n=l.engine,i=l.framework,o=l.ioModule}return r=r||"browser",n=n||"",i=i||"",s($[0],"JAVASCRIPT_IO_MODULE",o=o||"xmlhttprequest"),s($[0],"JAVASCRIPT_PLATFORM",r),s($[0],"JAVASCRIPT_ENGINE",n),s($[0],"JAVASCRIPT_FRAMEWORK",i),a.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(e){var t=e.module,r=e.klass,n=e.hash2,i=e.truthy,o=e.def,s=[],a=e.nil,$=e.$$$;return e.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(s,l){var u=[t(s,"Asciidoctor")].concat(l);return function(t,s,l){var u=r(t,null,"AbstractNode"),c=[u].concat(l),_=e.$r(c);return u.$$prototype.document=a,o(u,"$read_contents",(function(t,r){var o=this,s=a,l=a,u=a;if(null==r&&(r=n([],{})),s=o.document,!(i(_("Helpers")["$uriish?"](t))||i(l=r["$[]"]("start"))&&i(_("Helpers")["$uriish?"](l))&&i(t=s.$path_resolver().$web_path(t,l))))return t=o.$normalize_system_path(t,r["$[]"]("start"),a,n(["target_name"],{target_name:i(u=r["$[]"]("label"))?u:"asset"})),o.$read_asset(t,n(["normalize","warn_on_failure","label"],{normalize:r["$[]"]("normalize"),warn_on_failure:r.$fetch("warn_on_failure",!0),label:r["$[]"]("label")}));if(!(i(s.$path_resolver()["$descends_from?"](t,s.$base_dir()))||i(t["$start_with?"]("chrome://"))||i(s["$attr?"]("allow-uri-read"))))return i(r.$fetch("warn_on_failure",!0))&&o.$logger().$warn("cannot retrieve contents of "+(i(u=r["$[]"]("label"))?u:"asset")+" at URI: "+t+" (allow-uri-read attribute not enabled)"),a;try{return i(r["$[]"]("normalize"))?_("Helpers").$prepare_source_string($("File").$read(t)).$join(_("LF")):$("File").$read(t)}catch(n){if(!e.rescue(n,[_("StandardError")]))throw n;try{return i(r.$fetch("warn_on_failure",!0))&&o.$logger().$warn("could not retrieve contents of "+(i(u=r["$[]"]("label"))?u:"asset")+" at URI: "+t),a}finally{e.pop_exception()}}}),-2),o(u,"$generate_data_uri_from_uri",(function(e,t){var r="",n="",i=-1;try{var o=new XMLHttpRequest;o.open("GET",e,!1),o.overrideMimeType("text/plain; charset=x-user-defined"),o.addEventListener("load",(function(){if(0===(i=this.status)||200===i){for(var e="",t=this.responseText,o=0,s=t.length;o=,==,-,_original_byteslice,unpack,_original_unpack"),t=r([][0],null,"String"),n(t["$method_defined?"]("limit_bytesize"))||o(t,"$limit_bytesize",(function(e){var t=this;return n(i(e,t.$bytes().$length()))?t.$byteslice(0,e).$to_s():t.$to_s()})),n(t["$method_defined?"]("limit"))||s(t,"limit","limit_bytesize"),s(t,"_original_byteslice","byteslice"),o(t,"$byteslice",(function(e,t){var r=this;return null==t&&(t=1),$(e,3)&&n(a(t,e))&&n(65279===r.charCodeAt())?r.substr(1).$byteslice(0,l(t,3)):r.$_original_byteslice(e,t)}),-2),s(t,"_original_unpack","unpack"),o(t,"$unpack",(function(e){var t=this;if($(e,"C3")){if(n(65279===t.charCodeAt()))return[239,187,191];for(var r=[],i=0;i<3;i++)i"),function(o,s,a){var $=t(o,s,"Number"),l=[$].concat(a),u=e.$r(l);return i($,"$round",(function(e){return e=u("Opal")["$coerce_to!"](e,u("Integer"),"to_int"),r(n(e,0))?Number(this.toFixed(e)):Math.round(this)}),-1)}(o[0],s("Numeric"),o)},Opal.modules["asciidoctor/js/opal_ext"]=function(e){var t=e.top;e.nil,e.add_stubs("require"),t.$require("asciidoctor/js/opal_ext/kernel"),t.$require("asciidoctor/js/opal_ext/file"),t.$require("asciidoctor/js/opal_ext/match_data"),t.$require("asciidoctor/js/opal_ext/string"),t.$require("asciidoctor/js/opal_ext/uri"),t.$require("asciidoctor/js/opal_ext/base64"),t.$require("asciidoctor/js/opal_ext/number"),e.config.unsupported_features_severity="ignore",t.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(e){var t=e.module,r=e.const_set,n=e.send,i=e.gvars,o=e.truthy,s=e.defs,a=e.rb_plus,$=[],l=e.nil;return e.add_stubs("gsub,+,unpack_hex_range"),function($,u){var c=t($,"Asciidoctor"),_=[c].concat(u),d=e.$r(_);return r(_[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),s(c,"$unpack_hex_range",(function(e){return n(e,"gsub",[d("HEX_RANGE_RX")],(function(){var e,t;return"\\u"+((e=i["~"])===l?l:e["$[]"](1))+(o(t=(e=i["~"])===l?l:e["$[]"](2))?"-\\u"+((e=i["~"])===l?l:e["$[]"](2)):t)}))})),r(_[0],"P_L",a("A-Za-z",c.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),r(_[0],"P_Nl",c.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),r(_[0],"P_Nd",a("0-9",c.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),r(_[0],"P_Pc",c.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),r(_[0],"CC_ALPHA",""+d("P_L")+d("P_Nl")),r(_[0],"CG_ALPHA","["+d("CC_ALPHA")+"]"),r(_[0],"CC_ALNUM",""+d("CC_ALPHA")+d("P_Nd")),r(_[0],"CG_ALNUM","["+d("CC_ALNUM")+"]"),r(_[0],"CC_WORD",""+d("CC_ALNUM")+d("P_Pc")),r(_[0],"CG_WORD","["+d("CC_WORD")+"]"),r(_[0],"CG_BLANK","[ \\t]"),r(_[0],"CC_EOL","(?=\\n|$)"),r(_[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),r(_[0],"CC_ALL","[\\s\\S]"),r(_[0],"CC_ANY","[^\\n]")}($[0],$)},Opal.modules.strscan=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.eqeqeq,o=e.Opal,s=e.return_ivar,a=e.send,$=e.alias,l=[],u=e.nil;return e.add_stubs("attr_reader,anchor,empty?,===,to_s,coerce_to!,scan_until,length,size,rest,pos=,beginning_of_line?,get_byte,private"),function(l,c,_){var d=t(l,null,"StringScanner"),p=[d].concat(_),h=e.$r(p),f=d.$$prototype;return f.pos=f.string=f.working=f.matched=f.prev_pos=f.match=u,d.$attr_reader("pos","matched"),r(d,"$initialize",(function(e){var t=this;return t.string=e,t.pos=0,t.matched=u,t.working=e,t.match=[]})),d.$attr_reader("string"),r(d,"$beginning_of_line?",(function(){var e=this;return 0===e.pos||"\n"===e.string.charAt(e.pos-1)})),r(d,"$scan",(function(e){var t=this,r=(e=t.$anchor(e)).exec(t.working);return null==r?t.matched=u:(t.prev_pos=t.pos,t.pos+=r[0].length,t.working=t.working.substring(r[0].length),t.matched=r[0],t.match=r,r[0])})),r(d,"$scan_until",(function(e){var t=this;e=t.$anchor(e);for(var r=t.working,n=0;r.length!=n;++n){var i=e.exec(r.substr(n));if(null!==i){var o=n+i[0].length,s=r.substr(0,o);return t.matched=i[0],t.match=i,t.prev_pos=t.pos+n,t.pos+=o,t.working=r.substr(o),s}}return t.matched=u})),r(d,"$[]",(function(e){var t;if(n(this.match["$empty?"]()))return u;i(h("Symbol"),t=e)?e=e.$to_s():i(h("String"),t)||(e=o["$coerce_to!"](e,h("Integer"),"to_int"));var r=this.match;return e<0&&(e+=r.length),e<0||e>=r.length||null==r[e]?u:r[e]})),r(d,"$check",(function(e){var t=this,r=(e=t.$anchor(e)).exec(t.working);return t.matched=null==r?u:r[0]})),r(d,"$check_until",(function(e){var t=this,r=t.prev_pos,n=t.pos,i=t.working,o=t.$scan_until(e);return t.prev_pos=r,t.pos=n,t.working=i,o})),r(d,"$peek",(function(e){return this.working.substring(0,e)})),r(d,"$eos?",(function(){return 0===this.working.length})),r(d,"$exist?",(function(e){var t=e.exec(this.working);return null==t?u:0==t.index?0:t.index+1})),r(d,"$skip",(function(e){var t=this,r=(e=t.$anchor(e)).exec(t.working);if(null==r)return t.match=[],t.matched=u;var n=r[0],i=n.length;return t.matched=n,t.match=r,t.prev_pos=t.pos,t.pos+=i,t.working=t.working.substring(i),i})),r(d,"$skip_until",(function(e){var t=this.$scan_until(e);return t===u?u:(this.matched=t.substr(-1),t.length)})),r(d,"$get_byte",(function(){var e=this,t=u;return e.pos,inject,merge,[]"),t(c("Hash").$instance_method("merge").$arity(),1)?c("Hash").$send("prepend",r(c("Module"),"new",[],(function e(){return l(null==e.$$s?this:e.$$s,"$merge",(function e(t){var l,u,c,d=this;return e.$$p=null,l=n(arguments),i(o(c=(u=l).$length(),1))?d.$dup():i(s(c,1))?r(u,"inject",[d],(function(e,t){return null==e&&(e=_),null==t&&(t=_),e.$merge(t)})):a(d,$(d,"merge",e,!1,!0),"merge",[u["$[]"](0)],null)}),-1)}),{$$s:u})):_},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(e){var t,r=e.truthy,n=e.klass,i=e.def,o=[],s=e.$r(o),a=e.nil;return e.add_stubs("method_defined?"),r(s("MatchData")["$method_defined?"]("names"))?a:(t=n(o[0],null,"MatchData"),i(t,"$names",(function(){return[]})))},Opal.modules["asciidoctor/core_ext"]=function(e){var t=e.top;return e.nil,t.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),t.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),t.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(e){var t=e.module,r=e.truthy,n=e.eqeq,i=e.gvars,o=e.def,s=e.send,a=e.neqeq,$=e.const_set,l=e.hash2,u=e.to_ary,c=e.rb_times,_=e.eqeqeq,d=e.rb_plus,p=e.Class,h=e.Object,f=[],m=e.nil,g=e.$$$;return e.add_stubs("module_function,require,include?,include,==,path,message,raise,warn,logger,chomp,empty?,slice,unpack,[],[]=,byteslice,bytesize,map,rstrip,encode,encoding,nil_or_empty?,!=,tap,each_line,<<,match?,gsub,rindex,index,basename,extname,!,length,directory?,dirname,mkdir_p,mkdir,private_constant,join,divmod,*,===,+,to_s,to_i,succ,class_for_name,const_get"),function(f,b){var v=[t(f,"Asciidoctor")].concat(b);return function(f,b){var v=t(f,"Helpers"),y=[v].concat(b),x=e.$r(y);return v.$module_function(),o(v,"$require_library",(function(t,o,s){var a=this,$=m;null==i["!"]&&(i["!"]=m),null==o&&(o=!0),null==s&&(s="abort");try{return a.$require(t)}catch(l){if(!e.rescue(l,[g("LoadError")]))throw l;try{if(r(a["$include?"](x("Logging")))||a.$include(x("Logging")),r(o))switch(n(o,!0)&&(o=t),s){case"abort":$=n(i["!"].$path(),o)?"":" (reason: "+(r(i["!"].$path())?"cannot load '"+i["!"].$path()+"'":i["!"].$message())+")",a.$raise(g("LoadError"),"asciidoctor: FAILED: required gem '"+o+"' is not available"+$+". Processing aborted.");break;case"warn":$=n(i["!"].$path(),o)?"":" (reason: "+(r(i["!"].$path())?"cannot load '"+i["!"].$path()+"'":i["!"].$message())+")",a.$logger().$warn("optional gem '"+o+"' is not available"+$+". Functionality disabled.")}else switch(s){case"abort":a.$raise(g("LoadError"),"asciidoctor: FAILED: "+i["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":a.$logger().$warn(i["!"].$message().$chomp(".")+". Functionality disabled.")}return m}finally{e.pop_exception()}}}),-2),o(v,"$prepare_source_array",(function(e,t){var i,o=m,a=m;return null==t&&(t=!0),r(e["$empty?"]())?[]:n(i=(o=(a=e["$[]"](0)).$unpack("C3")).$slice(0,2),x("BOM_BYTES_UTF_16LE"))?(e["$[]="](0,a.$byteslice(2,a.$bytesize())),r(t)?s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8"),g(g("Encoding"),"UTF_16LE")).$rstrip()})):s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8"),g(g("Encoding"),"UTF_16LE")).$chomp()}))):n(i,x("BOM_BYTES_UTF_16BE"))?(e["$[]="](0,a.$byteslice(2,a.$bytesize())),r(t)?s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8"),g(g("Encoding"),"UTF_16BE")).$rstrip()})):s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8"),g(g("Encoding"),"UTF_16BE")).$chomp()}))):(n(o,x("BOM_BYTES_UTF_8"))&&e["$[]="](0,a.$byteslice(3,a.$bytesize())),n(a.$encoding(),x("UTF_8"))?r(t)?s(e,"map",[],(function(e){return null==e&&(e=m),e.$rstrip()})):s(e,"map",[],(function(e){return null==e&&(e=m),e.$chomp()})):r(t)?s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8")).$rstrip()})):s(e,"map",[],(function(e){return null==e&&(e=m),e.$encode(x("UTF_8")).$chomp()})))}),-2),o(v,"$prepare_source_string",(function(e,t){var i,o=m;return null==t&&(t=!0),r(e["$nil_or_empty?"]())?[]:(n(i=(o=e.$unpack("C3")).$slice(0,2),x("BOM_BYTES_UTF_16LE"))?e=e.$byteslice(2,e.$bytesize()).$encode(x("UTF_8"),g(g("Encoding"),"UTF_16LE")):n(i,x("BOM_BYTES_UTF_16BE"))?e=e.$byteslice(2,e.$bytesize()).$encode(x("UTF_8"),g(g("Encoding"),"UTF_16BE")):n(o,x("BOM_BYTES_UTF_8"))?(e=e.$byteslice(3,e.$bytesize()),n(e.$encoding(),x("UTF_8"))||(e=e.$encode(x("UTF_8")))):a(e.$encoding(),x("UTF_8"))&&(e=e.$encode(x("UTF_8"))),r(t)?s([],"tap",[],(function(t){return null==t&&(t=m),s(e,"each_line",[],(function(e){return null==e&&(e=m),t["$<<"](e.$rstrip())}))})):s([],"tap",[],(function(t){return null==t&&(t=m),s(e,"each_line",[],(function(e){return null==e&&(e=m),t["$<<"](e.$chomp())}))})))}),-2),o(v,"$uriish?",(function(e){var t;return r(t=e["$include?"](":"))?x("UriSniffRx")["$match?"](e):t})),o(v,"$encode_uri_component",(function(e){return encodeURIComponent(e).replace(/%20|[!'()*]/g,(function(e){return"%20"===e?"+":"%"+e.charCodeAt(0).toString(16)}))})),o(v,"$encode_spaces_in_uri",(function(e){return r(e["$include?"](" "))?e.$gsub(" ","%20"):e})),o(v,"$rootname",(function(e){var t;return r(t=e.$rindex("."))?r(e.$index("/",t))?e:e.$slice(0,t):e})),o(v,"$basename",(function(e,t){return null==t&&(t=m),r(t)?g("File").$basename(e,n(t,!0)?this.$extname(e):t):g("File").$basename(e)}),-2),o(v,"$extname?",(function(e){var t,n;return r(t=n=e.$rindex("."))?e.$index("/",n)["$!"]():t})),r(g(g("File"),"ALT_SEPARATOR"))?o(v,"$extname",(function(e,t){var n;return null==t&&(t=""),r(n=e.$rindex("."))?r(e.$index("/",n))||r(e.$index(g(g("File"),"ALT_SEPARATOR"),n))?t:e.$slice(n,e.$length()):t}),-2):o(v,"$extname",(function(e,t){var n;return null==t&&(t=""),r(n=e.$rindex("."))?r(e.$index("/",n))?t:e.$slice(n,e.$length()):t}),-2),o(v,"$mkdir_p",(function(t){var i=m;if(r(g("File")["$directory?"](t)))return m;n(i=g("File").$dirname(t),".")||this.$mkdir_p(i);try{return g("Dir").$mkdir(t)}catch(n){if(!e.rescue(n,[g("SystemCallError")]))throw n;try{return r(g("File")["$directory?"](t))?m:this.$raise()}finally{e.pop_exception()}}})),$(y[0],"ROMAN_NUMERALS",l(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),v.$private_constant("ROMAN_NUMERALS"),o(v,"$int_to_roman",(function(e){return s(x("ROMAN_NUMERALS"),"map",[],(function(t,r){var n,i,o;return null==t&&(t=m),null==r&&(r=m),i=e.$divmod(r),o=null==(n=u(i))[0]?m:n[0],e=null==n[1]?m:n[1],c(t,o)})).$join()})),o(v,"$nextval",(function(e){var t=m;return _(g("Integer"),e)?d(e,1):n((t=e.$to_i()).$to_s(),e.$to_s())?d(t,1):e.$succ()})),o(v,"$resolve_class",(function(e){return _(p,e)?e:_(g("String"),e)?this.$class_for_name(e):m})),o(v,"$class_for_name",(function(t){var r=m;try{return _(p,r=h.$const_get(t,!1))||this.$raise(),r}catch(r){if(!e.rescue(r,[x("StandardError")]))throw r;try{return this.$raise(g("NameError"),"Could not resolve class for name: "+t)}finally{e.pop_exception()}}}))}(v[0],v)}(f[0],f)},Opal.modules.logger=function(e){var t=e.klass,r=e.module,n=e.const_set,i=e.send,o=e.def,s=e.eqeqeq,a=e.rb_plus,$=e.truthy,l=e.rb_le,u=e.rb_lt,c=[],_=e.nil,d=e.$$$;return e.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(c,p,h){var f=t(c,null,"Logger"),m=[f].concat(h),g=e.$r(m),b=f.$$prototype;return b.level=b.progname=b.pipe=b.formatter=_,function(e,t){var i=[r(e,"Severity")].concat(t);n(i[0],"DEBUG",0),n(i[0],"INFO",1),n(i[0],"WARN",2),n(i[0],"ERROR",3),n(i[0],"FATAL",4),n(i[0],"UNKNOWN",5)}(m[0],m),f.$include(g("Severity")),n(m[0],"SEVERITY_LABELS",i(g("Severity").$constants(),"map",[],(function(e){return null==e&&(e=_),[g("Severity").$const_get(e),e.$to_s()]})).$to_h()),function(r,i,l){var u=t(r,null,"Formatter"),c=[u].concat(l),p=e.$r(c);n(c[0],"MESSAGE_FORMAT","%s, [%s] %5s -- %s: %s\n"),n(c[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),o(u,"$call",(function(e,t,r,n){return this.$format(p("MESSAGE_FORMAT"),e.$chr(),t.$strftime(p("DATE_TIME_FORMAT")),e,r,this.$message_as_string(n))})),o(u,"$message_as_string",(function(e){var t,r=_;return s(d("String"),t=e)?e:s(d("Exception"),t)?a(e.$message()+" ("+e.$class()+")\n",($(r=e.$backtrace())?r:[]).$join("\n")):e.$inspect()}))}(m[0],0,m),f.$attr_reader("level"),f.$attr_accessor("progname"),f.$attr_accessor("formatter"),o(f,"$initialize",(function(e){var t=this;return t.pipe=e,t.level=g("DEBUG"),t.formatter=g("Formatter").$new()})),o(f,"$level=",(function(e){var t=this,r=_;return s(d("Integer"),e)?t.level=e:$(r=g("SEVERITY_LABELS").$key(e.$to_s().$upcase()))?t.level=r:t.$raise(g("ArgumentError"),"invalid log level: "+e)})),o(f,"$info",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("INFO"),_,t],r.$to_proc())}),-1),o(f,"$debug",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("DEBUG"),_,t],r.$to_proc())}),-1),o(f,"$warn",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("WARN"),_,t],r.$to_proc())}),-1),o(f,"$error",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("ERROR"),_,t],r.$to_proc())}),-1),o(f,"$fatal",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("FATAL"),_,t],r.$to_proc())}),-1),o(f,"$unknown",(function e(t){var r=e.$$p||_;return e.$$p=null,null==t&&(t=_),i(this,"add",[g("UNKNOWN"),_,t],r.$to_proc())}),-1),o(f,"$info?",(function(){return l(this.level,g("INFO"))})),o(f,"$debug?",(function(){return l(this.level,g("DEBUG"))})),o(f,"$warn?",(function(){return l(this.level,g("WARN"))})),o(f,"$error?",(function(){return l(this.level,g("ERROR"))})),o(f,"$fatal?",(function(){return l(this.level,g("FATAL"))})),o(f,"$add",(function t(r,n,i){var o=t.$$p||_,s=this,a=_;return t.$$p=null,null==n&&(n=_),null==i&&(i=_),$(u(r=$(a=r)?a:g("UNKNOWN"),s.level))||(i=$(a=i)?a:s.progname,$(n)||(o!==_?n=e.yieldX(o,[]):(n=i,i=s.progname)),s.pipe.$write(s.formatter.$call($(a=g("SEVERITY_LABELS")["$[]"](r))?a:"ANY",d("Time").$now(),i,n))),!0}),-2)}(c[0],0,c)},Opal.modules["asciidoctor/logging"]=function(e){var t=e.module,r=e.klass,n=e.slice,i=e.send2,o=e.find_super,s=e.to_a,a=e.send,$=e.def,l=e.truthy,u=e.rb_gt,c=e.const_set,_=e.hash2,d=e.eqeqeq,p=e.gvars,h=e.alias,f=e.defs,m=e.top,g=[],b=e.nil,v=e.$$$;return e.add_stubs("require,attr_reader,progname=,formatter=,new,level=,>,[],===,inspect,to_h,map,constants,const_get,<<,clear,empty?,max,attr_accessor,memoize_logger,private,logger,extend,private_class_method,merge"),m.$require("logger"),function(m,g){var y=[t(m,"Asciidoctor")].concat(g);return function(p,h,f){var m=r(p,h,"Logger"),g=[m].concat(f),y=e.$r(g);m.$$prototype.max_severity=b,m.$attr_reader("max_severity"),$(m,"$initialize",(function e(t){var r,$,l=e.$$p||b,u=this;return e.$$p=null,r=n(arguments),i(u,o(u,"initialize",e,!1,!0),"initialize",s(r),l),u["$progname="]("asciidoctor"),u["$formatter="](y("BasicFormatter").$new()),$=[y("WARN")],a(u,"level=",$),$[$.length-1]}),-1),$(m,"$add",(function e(t,r,n){var s=e.$$p||b,a=this,$=b;return e.$$p=null,null==r&&(r=b),null==n&&(n=b),l(u(t=l($=t)?$:y("UNKNOWN"),a.max_severity=l($=a.max_severity)?$:t))&&(a.max_severity=t),i(a,o(a,"add",e,!1,!0),"add",[t,r,n],s)}),-2),function(t,n,i){var o=r(t,n,"BasicFormatter"),s=[o].concat(i),a=e.$r(s);c(s[0],"SEVERITY_LABEL_SUBSTITUTES",_(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),$(o,"$call",(function(e,t,r,n){var i;return r+": "+(l(i=a("SEVERITY_LABEL_SUBSTITUTES")["$[]"](e))?i:e)+": "+(d(v("String"),n)?n:n.$inspect())+a("LF")}))}(g[0],y("Formatter"),g),function(e){var r=t(e,"AutoFormattingMessage");$(r,"$inspect",(function(){var e,t=this;return l(e=t["$[]"]("source_location"))?e+": "+t["$[]"]("text"):t["$[]"]("text")}))}(g[0])}(y[0],v("Logger"),y),function(t,n,i){var o=r(t,n,"MemoryLogger"),s=[o].concat(i),u=e.$r(s);o.$$prototype.messages=b,c(s[0],"SEVERITY_SYMBOL_BY_VALUE",a(u("Severity").$constants(!1),"map",[],(function(e){return null==e&&(e=b),[u("Severity").$const_get(e),e]})).$to_h()),o.$attr_reader("messages"),$(o,"$initialize",(function(){return this["$level="](u("WARN")),this.messages=[]})),$(o,"$add",(function t(r,n,i){var o=t.$$p||b,s=b;return t.$$p=null,null==n&&(n=b),null==i&&(i=b),n=l(s=n)?s:o!==b?e.yieldX(o,[]):i,this.messages["$<<"](_(["severity","message"],{severity:u("SEVERITY_SYMBOL_BY_VALUE")["$[]"](l(s=r)?s:u("UNKNOWN")),message:n})),!0}),-2),$(o,"$clear",(function(){return this.messages.$clear()})),$(o,"$empty?",(function(){return this.messages["$empty?"]()})),$(o,"$max_severity",(function(){return l(this["$empty?"]())?b:a(this.messages,"map",[],(function(e){return null==e&&(e=b),u("Severity").$const_get(e["$[]"]("severity"))})).$max()}))}(y[0],v("Logger"),y),function(t,n,i){var o=r(t,n,"NullLogger"),s=[o].concat(i),c=e.$r(s);o.$$prototype.max_severity=b,o.$attr_reader("max_severity"),$(o,"$initialize",(function(){var e;return e=[c("WARN")],a(this,"level=",e),e[e.length-1]})),$(o,"$add",(function(e,t,r){var n=this,i=b;return l(u(e=l(i=e)?i:c("UNKNOWN"),n.max_severity=l(i=n.max_severity)?i:e))&&(n.max_severity=e),!0}),-2)}(y[0],v("Logger"),y),function(r,n){var i=t(r,"LoggerManager"),o=[i].concat(n),s=e.$r(o);i.logger_class=s("Logger"),function(t,r){t.$attr_accessor("logger_class"),$(t,"$logger",(function(e){var t,r=this;return null==r.logger&&(r.logger=b),null==r.logger_class&&(r.logger_class=b),null==p.stderr&&(p.stderr=b),null==e&&(e=p.stderr),r.$memoize_logger(),r.logger=l(t=r.logger)?t:r.logger_class.$new(e)}),-1),$(t,"$logger=",(function(e){var t,r=this;return null==r.logger_class&&(r.logger_class=b),null==p.stderr&&(p.stderr=b),r.logger=l(t=e)?t:r.logger_class.$new(p.stderr)})),t.$private(),$(t,"$memoize_logger",(function(){return function(e,t){return h(e,"logger","logger"),e.$attr_reader("logger")}(e.get_singleton_class(this))}))}(e.get_singleton_class(i))}(y[0],y),function(r,n){var i=t(r,"Logging"),o=[i].concat(n),s=e.$r(o);return f(i,"$included",(function(e){return e.$extend(s("Logging"))})),i.$private_class_method("included"),$(i,"$logger",(function(){return s("LoggerManager").$logger()})),$(i,"$message_with_context",(function(e,t){return null==t&&(t=_([],{})),_(["text"],{text:e}).$merge(t).$extend(v(s("Logger"),"AutoFormattingMessage"))}),-2)}(y[0],y)}(g[0],g)},Opal.modules["asciidoctor/rx"]=function(e){var t=e.module,r=e.const_set,n=e.regexp,i=e.hash2,o=e.send,s=e.truthy,a=e.hash,$=[],l=e.nil,u=e.$$$;return e.add_stubs("join,to_a,new,[]=,empty?,escape"),function($,c){var _=[t($,"Asciidoctor")].concat(c),d=e.$r(_);return t(_[0],"Rx"),r(_[0],"AuthorInfoLineRx",n(["^(",d("CG_WORD"),"[",d("CC_WORD"),"\\-'.]*)(?: +(",d("CG_WORD"),"[",d("CC_WORD"),"\\-'.]*))?(?: +(",d("CG_WORD"),"[",d("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),r(_[0],"AuthorDelimiterRx",/;(?: |$)/),r(_[0],"RevisionInfoLineRx",n(["^(?:[^\\d{]*(",d("CC_ANY"),"*?),)? *(?!:)(",d("CC_ANY"),"*?)(?: *(?!^),?: *(",d("CC_ANY"),"*))?$"])),r(_[0],"ManpageTitleVolnumRx",n(["^(",d("CC_ANY"),"+?) *\\( *(",d("CC_ANY"),"+?) *\\)$"])),r(_[0],"ManpageNamePurposeRx",n(["^(",d("CC_ANY"),"+?) +- +(",d("CC_ANY"),"+)$"])),r(_[0],"ConditionalDirectiveRx",n(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",d("CC_ANY"),"+)?\\]$"])),r(_[0],"EvalExpressionRx",n(["^(",d("CC_ANY"),"+?) *([=!><]=|[><]) *(",d("CC_ANY"),"+)$"])),r(_[0],"IncludeDirectiveRx",n(["^(\\\\)?include::([^\\[][^\\[]*)\\[(",d("CC_ANY"),"+)?\\]$"])),r(_[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),r(_[0],"AttributeEntryRx",n(["^:(!?",d("CG_WORD"),"[^:]*):(?:[ \\t]+(",d("CC_ANY"),"*))?$"])),r(_[0],"InvalidAttributeNameCharsRx",n(["[^",d("CC_WORD"),"-]"])),r(_[0],"AttributeEntryPassMacroRx",n(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",d("CC_ALL"),"*)\\]$"])),r(_[0],"AttributeReferenceRx",n(["(\\\\)?\\{(",d("CG_WORD"),"[",d("CC_WORD"),"-]*|(set|counter2?):",d("CC_ANY"),"+?)(\\\\)?\\}"])),r(_[0],"BlockAnchorRx",n(["^\\[\\[(?:|([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+))?)\\]\\]$"])),r(_[0],"BlockAttributeListRx",n(["^\\[(|[",d("CC_WORD"),".#%{,\"']",d("CC_ANY"),"*)\\]$"])),r(_[0],"BlockAttributeLineRx",n(["^\\[(?:|[",d("CC_WORD"),".#%{,\"']",d("CC_ANY"),"*|\\[(?:|[",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*(?:, *",d("CC_ANY"),"+)?)\\])\\]$"])),r(_[0],"BlockTitleRx",n(["^\\.(\\.?[^ \\t.]",d("CC_ANY"),"*)$"])),r(_[0],"AdmonitionParagraphRx",n(["^(",d("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),r(_[0],"LiteralParagraphRx",n(["^([ \\t]+",d("CC_ANY"),"*)$"])),r(_[0],"AtxSectionTitleRx",n(["^(=={0,5})[ \\t]+(",d("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),r(_[0],"ExtAtxSectionTitleRx",n(["^(=={0,5}|#\\#{0,5})[ \\t]+(",d("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),r(_[0],"SetextSectionTitleRx",n(["^((?!\\.)",d("CC_ANY"),"*?",d("CG_ALNUM"),d("CC_ANY"),"*)$"])),r(_[0],"InlineSectionAnchorRx",n([" (\\\\)?\\[\\[([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+))?\\]\\]$"])),r(_[0],"InvalidSectionIdCharsRx",n(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",d("CC_WORD"),"\\-.]+?"])),r(_[0],"SectionLevelStyleRx",/^sect\d$/),r(_[0],"AnyListRx",n(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",d("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),r(_[0],"UnorderedListRx",n(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",d("CC_ANY"),"*)$"])),r(_[0],"OrderedListRx",n(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",d("CC_ANY"),"*)$"])),r(_[0],"OrderedListMarkerRxMap",i(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),r(_[0],"DescriptionListRx",n(["^(?!//[^/])[ \\t]*([^ \\t]",d("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",d("CC_ANY"),"*)$)"])),r(_[0],"DescriptionListSiblingRx",i(["::",":::","::::",";;"],{"::":n(["^(?!//[^/])[ \\t]*([^ \\t]",d("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",d("CC_ANY"),"*)$)"]),":::":n(["^(?!//[^/])[ \\t]*([^ \\t]",d("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",d("CC_ANY"),"*)$)"]),"::::":n(["^(?!//[^/])[ \\t]*([^ \\t]",d("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",d("CC_ANY"),"*)$)"]),";;":n(["^(?!//[^/])[ \\t]*([^ \\t]",d("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",d("CC_ANY"),"*)$)"])})),r(_[0],"CalloutListRx",n(["^<(\\d+|\\.)>[ \\t]+(",d("CC_ANY"),"*)$"])),r(_[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?(?=(?: ?\\?)*$)/),r(_[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),r(_[0],"CalloutExtractRxMap",o(u("Hash"),"new",[],(function(e,t){var r;return null==e&&(e=l),null==t&&(t=l),r=[t,n(["(",s(t["$empty?"]())?"":u("Regexp").$escape(t)+" ?",")?",d("CalloutExtractRxt")])],o(e,"[]=",r),r[r.length-1]}))),r(_[0],"CalloutScanRx",n(["\\\\?(?=(?: ?\\\\?)*",d("CC_EOL"),")"])),r(_[0],"CalloutSourceRx",n(["((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*",d("CC_EOL"),")"])),r(_[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+d("CC_EOL")+")"),r(_[0],"CalloutSourceRxMap",o(u("Hash"),"new",[],(function(e,t){var r;return null==e&&(e=l),null==t&&(t=l),r=[t,n(["(",s(t["$empty?"]())?"":u("Regexp").$escape(t)+" ?",")?",d("CalloutSourceRxt")])],o(e,"[]=",r),r[r.length-1]}))),r(_[0],"ListRxMap",i(["ulist","olist","dlist","colist"],{ulist:d("UnorderedListRx"),olist:d("OrderedListRx"),dlist:d("DescriptionListRx"),colist:d("CalloutListRx")})),r(_[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),r(_[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),r(_[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),r(_[0],"CustomBlockMacroRx",n(["^(",d("CG_WORD"),"[",d("CC_WORD"),"-]*)::(|\\S|\\S",d("CC_ANY"),"*?\\S)\\[(",d("CC_ANY"),"+)?\\]$"])),r(_[0],"BlockMediaMacroRx",n(["^(image|video|audio)::(\\S|\\S",d("CC_ANY"),"*?\\S)\\[(",d("CC_ANY"),"+)?\\]$"])),r(_[0],"BlockTocMacroRx",n(["^toc::\\[(",d("CC_ANY"),"+)?\\]$"])),r(_[0],"InlineAnchorRx",n(["(\\\\)?(?:\\[\\[([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+?))?\\]\\]|anchor:([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",d("CC_ANY"),"*?[^\\\\])\\]))"])),r(_[0],"InlineAnchorScanRx",n(["(?:^|[^\\\\\\[])\\[\\[([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",d("CC_ANY"),"*?[^\\\\])\\])"])),r(_[0],"LeadingInlineAnchorRx",n(["^\\[\\[([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+?))?\\]\\]"])),r(_[0],"InlineBiblioAnchorRx",n(["^\\[\\[\\[([",d("CC_ALPHA"),"_:][",d("CC_WORD"),"\\-:.]*)(?:, *(",d("CC_ANY"),"+?))?\\]\\]\\]"])),r(_[0],"InlineEmailRx",n(["([\\\\>:/])?",d("CG_WORD"),"(?:&|[",d("CC_WORD"),"\\-.%+])*@",d("CG_ALNUM"),"[",d("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),r(_[0],"InlineFootnoteMacroRx",n(["\\\\?footnote(?:(ref):|:([",d("CC_WORD"),"-]+)?)\\[(?:|(",d("CC_ALL"),"*?[^\\\\]))\\](?!)"],"m")),r(_[0],"InlineImageMacroRx",n(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",d("CC_ALL"),"*?[^\\\\])\\]"],"m")),r(_[0],"InlineIndextermMacroRx",n(["\\\\?(?:(indexterm2?):\\[(",d("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",d("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),r(_[0],"InlineKbdBtnMacroRx",n(["(\\\\)?(kbd|btn):\\[(",d("CC_ALL"),"*?[^\\\\])\\]"],"m")),r(_[0],"InlineLinkRx",n(["(^|link:|",d("CG_BLANK"),"|<|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|",d("CC_ALL"),"*?[^\\\\])\\])?"],"m")),r(_[0],"InlineLinkMacroRx",n(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",d("CC_ALL"),"*?[^\\\\])\\]"],"m")),r(_[0],"MacroNameRx",n(["^",d("CG_WORD"),"[",d("CC_WORD"),"-]*$"])),r(_[0],"InlineStemMacroRx",n(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",d("CC_ALL"),"*?[^\\\\])\\]"],"m")),r(_[0],"InlineMenuMacroRx",n(["\\\\?menu:(",d("CG_WORD"),"|[",d("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",d("CC_ALL"),"*?[^\\\\]))\\]"],"m")),r(_[0],"InlineMenuRx",n(['\\\\?"([',d("CC_WORD"),'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'])),r(_[0],"InlinePassRx",a(!1,["+","`",n(["(^|[^",d("CC_WORD"),";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S",d("CC_ALL"),"*?\\S)\\4)(?!",d("CG_WORD"),")"],"m")],!0,["`",l,n(["(^|[^`",d("CC_WORD"),"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]",d("CC_ALL"),"*?\\S)\\4)(?![`",d("CC_WORD"),"])"],"m")])),r(_[0],"SinglePlusInlinePassRx",n(["^(\\\\)?\\+(\\S|\\S",d("CC_ALL"),"*?\\S)\\+$"],"m")),r(_[0],"InlinePassMacroRx",n(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",d("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",d("CC_ALL"),"*?[^\\\\])\\])"],"m")),r(_[0],"InlineXrefMacroRx",n(["\\\\?(?:<<([",d("CC_WORD"),"#/.:{]",d("CC_ALL"),"*?)>>|xref:([",d("CC_WORD"),"#/.:{]",d("CC_ALL"),"*?)\\[(?:\\]|(",d("CC_ALL"),"*?[^\\\\])\\]))"],"m")),r(_[0],"HardLineBreakRx",n(["^(",d("CC_ANY"),"*) \\+$"],"m")),r(_[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),r(_[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),r(_[0],"BlankLineRx",/\n{2,}/),r(_[0],"EscapedSpaceRx",/\\([ \t\n])/),r(_[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),r(_[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),r(_[0],"SubModifierSniffRx",/[+-]/),r(_[0],"TrailingDigitsRx",/\d+$/),r(_[0],"UriSniffRx",n(["^",d("CG_ALPHA"),"[",d("CC_ALNUM"),".+-]+:/{0,2}"])),r(_[0],"XmlSanitizeRx",/<[^>]+>/)}($[0],$)},Opal.modules["asciidoctor/substitutors"]=function(e){var t=e.module,r=e.const_set,n=e.hash2,i=e.hash,o=e.rb_plus,s=e.regexp,a=e.not,$=e.truthy,l=e.send,u=e.def,c=e.alias,_=e.gvars,d=e.eqeq,p=e.to_ary,h=e.neqeq,f=e.to_a,m=e.eqeqeq,g=e.rb_gt,b=e.slice,v=e.rb_minus,y=e.rb_lt,x=e.rb_times,k=[],w=e.nil,A=e.$$$;return e.add_stubs("freeze,+,keys,!,empty?,===,[],join,include?,extract_passthroughs,each,sub_specialchars,sub_quotes,sub_attributes,sub_replacements,sub_macros,highlight_source,sub_callouts,sub_post_replacements,warn,logger,restore_passthroughs,clear,split,apply_subs,gsub,match?,compat_mode,convert_quoted_text,attributes,==,shift,store_attribute,!=,attribute_undefined,counter,key?,downcase,attribute_missing,info,squeeze,delete,reject,start_with?,do_replacement,inline_macros?,extensions,inline_macros,regexp,instance,slice,length,names,config,merge,[]=,normalize_text,parse_attributes,process_method,expand_subs,text=,text,convert,class,strip,index,min,compact,>,end_with?,map,chop,new,pop,rstrip,register,tr,basename,parse,lstrip,split_simple_csv,-,partition,extract_attributes_from_text,sub,encode_uri_component,style,extname?,rindex,catalog,info?,fetch,outfilesuffix,natural_xrefs,resolve_id,find,footnotes,id,<,size,<<,attr?,attr,to_s,read_next_id,callouts,highlight?,syntax_highlighter,sub_source,extract_callouts,name,to_i,to_sym,resolve_lines_to_highlight,highlight,nil_or_empty?,restore_callouts,count,to_a,|,sort,*,parse_quoted_text_attributes,resolve_pass_subs,extract_inner_passthrough,basebackend?,error,chr,drop,&,resolve_subs,resolve_block_subs,parse_into,private,=~,shorthand_property_syntax,each_char"),function(k,E){var S=[t(k,"Asciidoctor")].concat(E);return function(k,E){var S=t(k,"Substitutors"),C=[S].concat(E),O=e.$r(C);return r(C[0],"SpecialCharsRx",/[<&>]/),r(C[0],"SpecialCharsTr",n([">","<","&"],{">":">","<":"<","&":"&"})),r(C[0],"QuotedTextSniffRx",i(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),r(C[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),r(C[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),r(C[0],"NO_SUBS",[]).$freeze(),r(C[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),r(C[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),r(C[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),r(C[0],"SUB_GROUPS",n(["none","normal","verbatim","specialchars"],{none:O("NO_SUBS"),normal:O("NORMAL_SUBS"),verbatim:O("VERBATIM_SUBS"),specialchars:O("BASIC_SUBS")})),r(C[0],"SUB_HINTS",n(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),r(C[0],"SUB_OPTIONS",n(["block","inline"],{block:o(o(O("SUB_GROUPS").$keys(),O("NORMAL_SUBS")),["callouts"]),inline:o(O("SUB_GROUPS").$keys(),O("NORMAL_SUBS"))})),r(C[0],"CAN",""),r(C[0],"DEL",""),r(C[0],"PASS_START","–"),r(C[0],"PASS_END","—"),r(C[0],"PassSlotRx",s([O("PASS_START"),"(\\d+)",O("PASS_END")])),r(C[0],"HighlightedPassSlotRx",s(["]*>",O("PASS_START"),"[^\\d]*(\\d+)[^\\d]*]*>",O("PASS_END"),""])),r(C[0],"RS","\\"),r(C[0],"R_SB","]"),r(C[0],"ESC_R_SB","\\]"),r(C[0],"PLUS","+"),u(S,"$apply_subs",(function(e,t){var r,n=this,i=w,o=w,s=w;return null==n.passthroughs&&(n.passthroughs=w),null==n.passthroughs_locked&&(n.passthroughs_locked=w),null==t&&(t=O("NORMAL_SUBS")),$(e["$empty?"]())||a(t)?e:($(r=A("Array")["$==="](e))&&(e=$(e["$[]"](1))?e.$join(O("LF")):e["$[]"](0)),$(t["$include?"]("macros"))&&(e=n.$extract_passthroughs(e),$(n.passthroughs["$empty?"]())||(i=n.passthroughs,n.passthroughs_locked=$(o=n.passthroughs_locked)?o:s=!0)),l(t,"each",[],(function r(n){var i=null==r.$$s?this:r.$$s;switch(null==n&&(n=w),n){case"specialcharacters":return e=i.$sub_specialchars(e);case"quotes":return e=i.$sub_quotes(e);case"attributes":return $(e["$include?"](O("ATTR_REF_HEAD")))?e=i.$sub_attributes(e):w;case"replacements":return e=i.$sub_replacements(e);case"macros":return e=i.$sub_macros(e);case"highlight":return e=i.$highlight_source(e,t["$include?"]("callouts"));case"callouts":return $(t["$include?"]("highlight"))?w:e=i.$sub_callouts(e);case"post_replacements":return e=i.$sub_post_replacements(e);default:return i.$logger().$warn("unknown substitution type "+n)}}),{$$s:n}),$(i)&&(e=n.$restore_passthroughs(e),$(s)&&(i.$clear(),n.passthroughs_locked=w)),$(r)?e.$split(O("LF"),-1):e)}),-2),u(S,"$apply_normal_subs",(function(e){return this.$apply_subs(e,O("NORMAL_SUBS"))})),u(S,"$apply_header_subs",(function(e){return this.$apply_subs(e,O("HEADER_SUBS"))})),c(S,"apply_title_subs","apply_subs"),u(S,"$apply_reftext_subs",(function(e){return this.$apply_subs(e,O("REFTEXT_SUBS"))})),u(S,"$sub_specialchars",(function(e){return $(e["$include?"](">"))||$(e["$include?"]("&"))||$(e["$include?"]("<"))?e.$gsub(O("SpecialCharsRx"),O("SpecialCharsTr")):e})),c(S,"sub_specialcharacters","sub_specialchars"),u(S,"$sub_quotes",(function(e){var t,r=this;return null==r.document&&(r.document=w),$(O("QuotedTextSniffRx")["$[]"](t=r.document.$compat_mode())["$match?"](e))&&l(O("QUOTE_SUBS")["$[]"](t),"each",[],(function t(r,n,i){return null==r&&(r=w),null==n&&(n=w),null==i&&(i=w),e=l(e,"gsub",[i],(function e(){var t=null==e.$$s?this:e.$$s;return null==_["~"]&&(_["~"]=w),t.$convert_quoted_text(_["~"],r,n)}),{$$s:null==t.$$s?this:t.$$s})}),{$$s:r}),e})),u(S,"$sub_attributes",(function(e,t){var r=this,i=w,o=w,s=w,a=w,u=w,c=w,m=w,g=w;return null==r.document&&(r.document=w),null==t&&(t=n([],{})),i=r.document.$attributes(),o=s=a=u=c=m=w,e=l(e,"gsub",[O("AttributeReferenceRx")],(function e(){var r,n,g=null==e.$$s?this:e.$$s,b=w,v=w,y=w,x=w,k=w,A=w;if(null==g.document&&(g.document=w),d((r=_["~"])===w?w:r["$[]"](1),O("RS"))||d((r=_["~"])===w?w:r["$[]"](4),O("RS")))return"{"+((r=_["~"])===w?w:r["$[]"](2))+"}";if($((r=_["~"])===w?w:r["$[]"](3)))switch((b=((r=_["~"])===w?w:r["$[]"](2)).$split(":",3)).$shift()){case"set":return n=O("Parser").$store_attribute(b["$[]"](0),$(v=b["$[]"](1))?v:"",g.document),null==(r=p(n))[0]||r[0],y=null==r[1]?w:r[1],o=$(y)||h(c=$(v=c)?v:$(x=i["$[]"]("attribute-undefined"))?x:O("Compliance").$attribute_undefined(),"drop-line")?u=O("DEL"):s=O("CAN");case"counter2":return l(g.document,"counter",f(b)),o=u=O("DEL");default:return l(g.document,"counter",f(b))}else{if($(i["$key?"](k=((r=_["~"])===w?w:r["$[]"](2)).$downcase())))return i["$[]"](k);if($(y=O("INTRINSIC_ATTRIBUTES")["$[]"](k)))return y;switch(m=$(v=m)?v:$(x=$(A=t["$[]"]("attribute_missing"))?A:i["$[]"]("attribute-missing"))?x:O("Compliance").$attribute_missing()){case"drop":return o=u=O("DEL");case"drop-line":return d(a=$(v=a)?v:$(x=t["$[]"]("drop_line_severity"))?x:"info","info")&&l(g.$logger(),"info",[],(function(){return"dropping line containing reference to missing attribute: "+k})),o=s=O("CAN");case"warn":return g.$logger().$warn("skipping reference to missing attribute: "+k),(r=_["~"])===w?w:r["$[]"](0);default:return(r=_["~"])===w?w:r["$[]"](0)}}}),{$$s:r}),$(o)?$(u)?(g=e.$squeeze(O("DEL")).$split(O("LF"),-1),$(s)?l(g,"reject",[],(function(e){var t,r,n;return null==e&&(e=w),$(t=$(r=$(n=e["$=="](O("DEL")))?n:e["$=="](O("CAN")))?r:e["$start_with?"](O("CAN")))?t:e["$include?"](O("CAN"))})).$join(O("LF")).$delete(O("DEL")):l(g,"reject",[],(function(e){return null==e&&(e=w),e["$=="](O("DEL"))})).$join(O("LF")).$delete(O("DEL"))):$(e["$include?"](O("LF")))?l(e.$split(O("LF"),-1),"reject",[],(function(e){var t,r;return null==e&&(e=w),$(t=$(r=e["$=="](O("CAN")))?r:e["$start_with?"](O("CAN")))?t:e["$include?"](O("CAN"))})).$join(O("LF")):"":e}),-2),u(S,"$sub_replacements",(function(e){return $(O("ReplaceableTextRx")["$match?"](e))&&l(O("REPLACEMENTS"),"each",[],(function t(r,n,i){return null==r&&(r=w),null==n&&(n=w),null==i&&(i=w),e=l(e,"gsub",[r],(function e(){var t=null==e.$$s?this:e.$$s;return null==_["~"]&&(_["~"]=w),t.$do_replacement(_["~"],n,i)}),{$$s:null==t.$$s?this:t.$$s})}),{$$s:this}),e})),u(S,"$sub_macros",(function(t){var r,i,s,u,c=this,y=w,x=w,k=w,E=w;return null==c.document&&(c.document=w),null==c.parent&&(c.parent=w),null==c.context&&(c.context=w),r=t["$include?"]("["),i=t["$include?"](":"),s=$(y=r)?i:y,u=$(y=s)?t["$include?"](":["):y,x=(k=c.document).$attributes(),$(E=k.$extensions())&&$(E["$inline_macros?"]())&&l(E.$inline_macros(),"each",[],(function r(i){var o=null==r.$$s?this:r.$$s;return null==i&&(i=w),t=l(t,"gsub",[i.$instance().$regexp()],(function t(){var r,o,s=null==t.$$s?this:t.$$s,a=w,u=w,c=w,p=w,h=w,f=w,g=w,b=w,v=w;return null==_["~"]&&(_["~"]=w),$((a=(r=_["~"])===w?w:r["$[]"](0))["$start_with?"](O("RS")))?((r=_["~"])===w?w:r["$[]"](0)).$slice(1,((r=_["~"])===w?w:r["$[]"](0)).$length()):($(_["~"].$names()["$empty?"]())?(u=(r=[(o=_["~"])===w?w:o["$[]"](1),(o=_["~"])===w?w:o["$[]"](2)])[0],c=r[1]):(u=(r=[function(){try{return _["~"]["$[]"]("target")}catch(t){if(!e.rescue(t,[O("StandardError")]))throw t;try{return w}finally{e.pop_exception()}}}(),function(){try{return _["~"]["$[]"]("content")}catch(t){if(!e.rescue(t,[O("StandardError")]))throw t;try{return w}finally{e.pop_exception()}}}()])[0],c=r[1]),p=$(h=(f=i.$config())["$[]"]("default_attrs"))?h.$merge():n([],{}),$(c)&&($(c["$empty?"]())?d(f["$[]"]("content_model"),"attributes")||p["$[]="]("text",c):(c=s.$normalize_text(c,!0,!0),d(f["$[]"]("content_model"),"attributes")?s.$parse_attributes(c,$(y=$(g=f["$[]"]("positional_attrs"))?g:f["$[]"]("pos_attrs"))?y:[],n(["into"],{into:p})):p["$[]="]("text",c)),u=$(y=u)?y:d(f["$[]"]("format"),"short")?c:u),m(O("Inline"),b=i.$process_method()["$[]"](s,u,p))?($(v=b.$attributes().$delete("subs"))&&$(v=s.$expand_subs(v,"custom inline macro"))&&b["$text="](s.$apply_subs(b.$text(),v)),b.$convert()):$(b)?(l(s.$logger(),"info",[],(function(){return"expected substitution value for custom inline macro to be of type Inline; got "+b.$class()+": "+a})),b):"")}),{$$s:o})}),{$$s:c}),$(x["$key?"]("experimental"))&&($(u)&&($(t["$include?"]("kbd:"))||$(t["$include?"]("btn:")))&&(t=l(t,"gsub",[O("InlineKbdBtnMacroRx")],(function e(){var t,r=null==e.$$s?this:e.$$s,i=w,s=w,a=w;return $((t=_["~"])===w?w:t["$[]"](1))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):d((t=_["~"])===w?w:t["$[]"](2),"kbd")?($((i=((t=_["~"])===w?w:t["$[]"](3)).$strip())["$include?"](O("R_SB")))&&(i=i.$gsub(O("ESC_R_SB"),O("R_SB"))),$(g(i.$length(),1))&&$(s=$(s=i.$index(",",1))?[s,i.$index("+",1)].$compact().$min():i.$index("+",1))?(a=i.$slice(s,1),$(i["$end_with?"](a))?(i=l(i.$chop().$split(a,-1),"map",[],(function(e){return null==e&&(e=w),e.$strip()})))["$[]="](-1,o(i["$[]"](-1),a)):i=l(i.$split(a),"map",[],(function(e){return null==e&&(e=w),e.$strip()}))):i=[i],O("Inline").$new(r,"kbd",w,n(["attributes"],{attributes:n(["keys"],{keys:i})})).$convert()):O("Inline").$new(r,"button",r.$normalize_text((t=_["~"])===w?w:t["$[]"](3),!0,!0)).$convert()}),{$$s:c})),$(s)&&$(t["$include?"]("menu:"))&&(t=l(t,"gsub",[O("InlineMenuMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,o=w,s=w,a=w,u=w;return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(r=(t=_["~"])===w?w:t["$[]"](1),$(o=(t=_["~"])===w?w:t["$[]"](2))?($(o["$include?"](O("R_SB")))&&(o=o.$gsub(O("ESC_R_SB"),O("R_SB"))),$(s=$(o["$include?"](">"))?">":$(o["$include?"](","))?",":w)?u=(a=l(o.$split(s),"map",[],(function(e){return null==e&&(e=w),e.$strip()}))).$pop():(a=(t=[[],o.$rstrip()])[0],u=t[1])):(a=(t=[[],w])[0],u=t[1]),O("Inline").$new(i,"menu",w,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:r,submenus:a,menuitem:u})})).$convert())}),{$$s:c})),$(t["$include?"]('"'))&&$(t["$include?"](">"))&&(t=l(t,"gsub",[O("InlineMenuRx")],(function e(){var t,r,i,o,s,a=null==e.$$s?this:e.$$s,u=w;return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(r=l(((i=_["~"])===w?w:i["$[]"](1)).$split(">"),"map",[],(function(e){return null==e&&(e=w),e.$strip()})),o=null==(t=p(r))[0]?w:t[0],s=(u=b(t,1)).$pop(),O("Inline").$new(a,"menu",w,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:o,submenus:u,menuitem:s})})).$convert())}),{$$s:c}))),$(s)&&($(t["$include?"]("image:"))||$(t["$include?"]("icon:")))&&(t=l(t,"gsub",[O("InlineImageMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,o=w,s=w,a=w;return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):($(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"]("icon:"))?(o=(t=["icon",["size"]])[0],s=t[1]):(o=(t=["image",["alt","width","height"]])[0],s=t[1]),r=(t=_["~"])===w?w:t["$[]"](1),a=i.$parse_attributes((t=_["~"])===w?w:t["$[]"](2),s,n(["unescape_input"],{unescape_input:!0})),d(o,"icon")||(k.$register("images",r),a["$[]="]("imagesdir",x["$[]"]("imagesdir"))),$(y=a["$[]"]("alt"))||a["$[]="]("alt",(t=["default-alt",O("Helpers").$basename(r,!0).$tr("_-"," ")],l(a,"[]=",t),t[t.length-1])),O("Inline").$new(i,"image",w,n(["type","target","attributes"],{type:o,target:r,attributes:a})).$convert())}),{$$s:c})),($(t["$include?"]("(("))&&$(t["$include?"]("))"))||$(u)&&$(t["$include?"]("dexterm")))&&(t=l(t,"gsub",[O("InlineIndextermMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,o=w,s=w,a=w,u=w,c=w,d=w,h=w,f=w,m=w,g=w,y=w,x=w,k=w,A=w;switch((t=_["~"])===w?w:t["$[]"](1)){case"indexterm":return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):($((o=i.$normalize_text((t=_["~"])===w?w:t["$[]"](2),!0,!0))["$include?"]("="))?$(s=(a=O("AttributeList").$new(o,i).$parse())["$[]"](1))?(a["$[]="]("terms",[s]),$(u=a["$[]"]("see-also"))&&a["$[]="]("see-also",$(u["$include?"](","))?l(u.$split(","),"map",[],(function(e){return null==e&&(e=w),e.$lstrip()})):[u])):a=n(["terms"],{terms:o}):a=n(["terms"],{terms:i.$split_simple_csv(o)}),O("Inline").$new(i,"indexterm",w,n(["attributes"],{attributes:a})).$convert());case"indexterm2":return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):($((c=i.$normalize_text((t=_["~"])===w?w:t["$[]"](2),!0,!0))["$include?"]("="))&&(c=$(d=$(h=(a=O("AttributeList").$new(c,i).$parse())["$[]"](1))?h:a=w)?d:c,$(a)&&$(u=a["$[]"]("see-also"))&&a["$[]="]("see-also",$(u["$include?"](","))?l(u.$split(","),"map",[],(function(e){return null==e&&(e=w),e.$lstrip()})):[u])),O("Inline").$new(i,"indexterm",c,n(["attributes","type"],{attributes:a,type:"visible"})).$convert());default:if(f=(t=_["~"])===w?w:t["$[]"](3),$(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))){if(!$(f["$start_with?"]("("))||!$(f["$end_with?"](")")))return((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length());f=f.$slice(1,v(f.$length(),2)),m=(t=[!0,"(",")"])[0],g=t[1],y=t[2]}else m=!0,$(f["$start_with?"]("("))?$(f["$end_with?"](")"))?(t=[f.$slice(1,v(f.$length(),2)),!1],f=t[0],m=t[1]):(t=[f.$slice(1,f.$length()),"(",""],f=t[0],g=t[1],y=t[2]):$(f["$end_with?"](")"))&&(t=[f.$chop(),"",")"],f=t[0],g=t[1],y=t[2]);return $(m)?($((c=i.$normalize_text(f,!0))["$include?"](";&"))&&($(c["$include?"](" >> "))?(r=c.$partition(" >> "),c=null==(t=p(r))[0]?w:t[0],null==t[1]||t[1],x=null==t[2]?w:t[2],a=n(["see"],{see:x})):$(c["$include?"](" &> "))&&(r=c.$split(" &> "),c=null==(t=p(r))[0]?w:t[0],u=b(t,1),a=n(["see-also"],{"see-also":u}))),k=O("Inline").$new(i,"indexterm",c,n(["attributes","type"],{attributes:a,type:"visible"})).$convert()):(a=n([],{}),$((A=i.$normalize_text(f,!0))["$include?"](";&"))&&($(A["$include?"](" >> "))?(r=A.$partition(" >> "),A=null==(t=p(r))[0]?w:t[0],null==t[1]||t[1],x=null==t[2]?w:t[2],a["$[]="]("see",x)):$(A["$include?"](" &> "))&&(r=A.$split(" &> "),A=null==(t=p(r))[0]?w:t[0],u=b(t,1),a["$[]="]("see-also",u))),a["$[]="]("terms",i.$split_simple_csv(A)),k=O("Inline").$new(i,"indexterm",w,n(["attributes"],{attributes:a})).$convert()),$(g)?""+g+k+y:k}}),{$$s:c})),$(i)&&$(t["$include?"]("://"))&&(t=l(t,"gsub",[O("InlineLinkRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,s=w,u=w,c=w,h=w,f=w,m=w,g=w,b=w;if($((s=(t=_["~"])===w?w:t["$[]"](2))["$start_with?"](O("RS"))))return""+((t=_["~"])===w?w:t["$[]"](1))+s.$slice(1,s.$length())+((t=_["~"])===w?w:t["$[]"](4));if(u=(t=[(r=_["~"])===w?w:r["$[]"](1),""])[0],c=t[1],$((t=_["~"])===w?w:t["$[]"](4)))d(u,"link:")&&(u=""),$((h=(t=_["~"])===w?w:t["$[]"](4))["$empty?"]())&&(h=w);else{switch(u){case"link:":case'"':case"'":return(t=_["~"])===w?w:t["$[]"](0)}switch((t=_["~"])===w?w:t["$[]"](3)){case")":case"?":case"!":if(s=s.$chop(),d(c=(t=_["~"])===w?w:t["$[]"](3),")")&&$(s["$end_with?"](".","?","!"))&&(c=o(s["$[]"](-1),c),s=s.$chop()),$(s["$end_with?"]("://")))return(t=_["~"])===w?w:t["$[]"](0);break;case";":if($(u["$start_with?"]("<"))&&$(s["$end_with?"](">"))?(u=u.$slice(4,u.$length()),s=s.$slice(0,v(s.$length(),4))):$((s=s.$chop())["$end_with?"](")"))?(s=s.$chop(),c=");"):c=";",$(s["$end_with?"]("://")))return(t=_["~"])===w?w:t["$[]"](0);break;case":":if($((s=s.$chop())["$end_with?"](")"))?(s=s.$chop(),c="):"):c=":",$(s["$end_with?"]("://")))return(t=_["~"])===w?w:t["$[]"](0)}}return f=(t=[w,n(["type"],{type:"link"})])[0],m=t[1],$(h)?($(h["$include?"](O("R_SB")))&&(g=h=h.$gsub(O("ESC_R_SB"),O("R_SB"))),a(k.$compat_mode())&&$(h["$include?"]("="))&&(r=i.$extract_attributes_from_text(h,""),h=null==(t=p(r))[0]?w:t[0],f=null==t[1]?w:t[1],g=h,m["$[]="]("id",f["$[]"]("id"))),$(h["$end_with?"]("^"))&&(g=h=h.$chop(),$(f)?$(y=f["$[]"]("window"))||f["$[]="]("window","_blank"):f=n(["window"],{window:"_blank"})),$(g)&&$(g["$empty?"]())&&(h=$(x["$key?"]("hide-uri-scheme"))?s.$sub(O("UriSniffRx"),""):s,b=!0)):(h=$(x["$key?"]("hide-uri-scheme"))?s.$sub(O("UriSniffRx"),""):s,b=!0),$(b)&&($(f)?f["$[]="]("role",$(f["$key?"]("role"))?"bare "+f["$[]"]("role"):"bare"):f=n(["role"],{role:"bare"})),k.$register("links",(l(m,"[]=",t=["target",s]),t[t.length-1])),$(f)&&m["$[]="]("attributes",f),""+u+O("Inline").$new(i,"anchor",h,m).$convert()+c}),{$$s:c})),$(s)&&($(t["$include?"]("link:"))||$(t["$include?"]("ilto:")))&&(t=l(t,"gsub",[O("InlineLinkMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,s=w,u=w,c=w,d=w,h=w,f=w;return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(u=$(s=(t=_["~"])===w?w:t["$[]"](1))?o("mailto:",c=(t=_["~"])===w?w:t["$[]"](2)):(t=_["~"])===w?w:t["$[]"](2),d=(t=[w,n(["type"],{type:"link"})])[0],h=t[1],$((f=(t=_["~"])===w?w:t["$[]"](3))["$empty?"]())||($(f["$include?"](O("R_SB")))&&(f=f.$gsub(O("ESC_R_SB"),O("R_SB"))),$(s)?a(k.$compat_mode())&&$(f["$include?"](","))&&(r=i.$extract_attributes_from_text(f,""),f=null==(t=p(r))[0]?w:t[0],d=null==t[1]?w:t[1],h["$[]="]("id",d["$[]"]("id")),$(d["$key?"](2))&&(u=$(d["$key?"](3))?u+"?subject="+O("Helpers").$encode_uri_component(d["$[]"](2))+"&body="+O("Helpers").$encode_uri_component(d["$[]"](3)):u+"?subject="+O("Helpers").$encode_uri_component(d["$[]"](2)))):a(k.$compat_mode())&&$(f["$include?"]("="))&&(r=i.$extract_attributes_from_text(f,""),f=null==(t=p(r))[0]?w:t[0],d=null==t[1]?w:t[1],h["$[]="]("id",d["$[]"]("id"))),$(f["$end_with?"]("^"))&&(f=f.$chop(),$(d)?$(y=d["$[]"]("window"))||d["$[]="]("window","_blank"):d=n(["window"],{window:"_blank"}))),$(f["$empty?"]())&&($(s)?f=c:($(x["$key?"]("hide-uri-scheme"))?$((f=u.$sub(O("UriSniffRx"),""))["$empty?"]())&&(f=u):f=u,$(d)?d["$[]="]("role",$(d["$key?"]("role"))?"bare "+d["$[]"]("role"):"bare"):d=n(["role"],{role:"bare"}))),k.$register("links",(l(h,"[]=",t=["target",u]),t[t.length-1])),$(d)&&h["$[]="]("attributes",d),O("Inline").$new(i,"anchor",f,h).$convert())}),{$$s:c})),$(t["$include?"]("@"))&&(t=l(t,"gsub",[O("InlineEmailRx")],(function e(){var t,r,i,s=null==e.$$s?this:e.$$s;return $((t=_["~"])===w?w:t["$[]"](1))?d((t=_["~"])===w?w:t["$[]"](1),O("RS"))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(t=_["~"])===w?w:t["$[]"](0):(r=o("mailto:",i=(t=_["~"])===w?w:t["$[]"](0)),k.$register("links",r),O("Inline").$new(s,"anchor",i,n(["type","target"],{type:"link",target:r})).$convert())}),{$$s:c})),$(r)&&d(c.context,"list_item")&&d(c.parent.$style(),"bibliography")&&(t=l(t,"sub",[O("InlineBiblioAnchorRx")],(function e(){var t,r=null==e.$$s?this:e.$$s;return O("Inline").$new(r,"anchor",(t=_["~"])===w?w:t["$[]"](2),n(["type","id"],{type:"bibref",id:(t=_["~"])===w?w:t["$[]"](1)})).$convert()}),{$$s:c})),($(r)&&$(t["$include?"]("[["))||$(s)&&$(t["$include?"]("or:")))&&(t=l(t,"gsub",[O("InlineAnchorRx")],(function e(){var t,r=null==e.$$s?this:e.$$s,i=w,o=w;return $((t=_["~"])===w?w:t["$[]"](1))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):($(i=(t=_["~"])===w?w:t["$[]"](2))?o=(t=_["~"])===w?w:t["$[]"](3):(i=(t=_["~"])===w?w:t["$[]"](4),$(o=(t=_["~"])===w?w:t["$[]"](5))&&$(o["$include?"](O("R_SB")))&&(o=o.$gsub(O("ESC_R_SB"),O("R_SB")))),O("Inline").$new(r,"anchor",o,n(["type","id"],{type:"ref",id:i})).$convert())}),{$$s:c})),($(t["$include?"]("&"))&&$(t["$include?"](";&l"))||$(s)&&$(t["$include?"]("xref:")))&&(t=l(t,"gsub",[O("InlineXrefMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,s=w,u=w,c=w,m=w,b=w,x=w,A=w,E=w,S=w,C=w;return $(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(s=n([],{}),$(u=(t=_["~"])===w?w:t["$[]"](1))?$(u["$include?"](","))&&(r=u.$partition(","),u=null==(t=p(r))[0]?w:t[0],null==t[1]||t[1],c=null==t[2]?w:t[2],$((c=c.$lstrip())["$empty?"]())&&(c=w)):(m=!0,u=(t=_["~"])===w?w:t["$[]"](2),$(c=(t=_["~"])===w?w:t["$[]"](3))&&($(c["$include?"](O("R_SB")))&&(c=c.$gsub(O("ESC_R_SB"),O("R_SB"))),a(k.$compat_mode())&&$(c["$include?"]("="))&&(r=i.$extract_attributes_from_text(c),c=null==(t=p(r))[0]?w:t[0],s=null==t[1]?w:t[1]))),$(k.$compat_mode())?b=u:$(x=u.$index("#"))?$(g(x,0))?($(g(A=v(v(u.$length(),1),x),0))?(E=(t=[u.$slice(0,x),u.$slice(o(x,1),A)])[0],b=t[1]):E=u.$chop(),$(m)?$(E["$end_with?"](".adoc"))?S=E=E.$slice(0,v(E.$length(),5)):a(O("Helpers")["$extname?"](E))&&(S=E):S=$(l(E,"end_with?",f(O("ASCIIDOC_EXTENSIONS").$keys())))?E=E.$slice(0,E.$rindex(".")):E):(C=(t=[u,u.$slice(1,u.$length())])[0],b=t[1]):$(m)?$(u["$end_with?"](".adoc"))?S=E=u.$slice(0,v(u.$length(),5)):$(O("Helpers")["$extname?"](u))?E=u:b=u:b=u,$(C)?(u=b,$(i.$logger()["$info?"]())&&a(k.$catalog()["$[]"]("refs")["$[]"](u))&&i.$logger().$info("possible invalid reference: "+u)):$(E)?$(S)&&(d(k.$attributes()["$[]"]("docname"),E)||$(k.$catalog()["$[]"]("includes")["$[]"](E)))?$(b)?(u=(t=[b,w,"#"+b])[0],E=t[1],C=t[2],$(i.$logger()["$info?"]())&&a(k.$catalog()["$[]"]("refs")["$[]"](u))&&i.$logger().$info("possible invalid reference: "+u)):(u=(t=[w,w,"#"])[0],E=t[1],C=t[2]):(u=(t=[E,""+($(y=k.$attributes()["$[]"]("relfileprefix"))?y:"")+E+($(S)?k.$attributes().$fetch("relfilesuffix",k.$outfilesuffix()):"")])[0],E=t[1],$(b)?(u=(t=[u+"#"+b,E+"#"+b])[0],C=t[1]):C=E):$(k.$compat_mode())||a(O("Compliance").$natural_xrefs())?(u=(t=[b,"#"+b])[0],C=t[1],$(i.$logger()["$info?"]())&&a(k.$catalog()["$[]"]("refs")["$[]"](u))&&i.$logger().$info("possible invalid reference: "+u)):$(k.$catalog()["$[]"]("refs")["$[]"](b))?(u=(t=[b,"#"+b])[0],C=t[1]):($(b["$include?"](" "))||h(b.$downcase(),b))&&$(u=k.$resolve_id(b))?(b=(t=[u,"#"+u])[0],C=t[1]):(u=(t=[b,"#"+b])[0],C=t[1],$(i.$logger()["$info?"]())&&i.$logger().$info("possible invalid reference: "+u)),s["$[]="]("path",E),s["$[]="]("fragment",b),s["$[]="]("refid",u),O("Inline").$new(i,"anchor",c,n(["type","target","attributes"],{type:"xref",target:C,attributes:s})).$convert())}),{$$s:c})),$(s)&&$(t["$include?"]("tnote"))&&(t=l(t,"gsub",[O("InlineFootnoteMacroRx")],(function e(){var t,r,i,o=null==e.$$s?this:e.$$s,s=w,a=w,u=w,c=w,d=w,h=w;if($(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS"))))return((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length());if($((t=_["~"])===w?w:t["$[]"](1))){if(!$((t=_["~"])===w?w:t["$[]"](3)))return(t=_["~"])===w?w:t["$[]"](0);r=((i=_["~"])===w?w:i["$[]"](3)).$split(",",2),t=p(r),s=null==t[0]?w:t[0],a=null==t[1]?w:t[1],$(k.$compat_mode())||o.$logger().$warn("found deprecated footnoteref macro: "+((t=_["~"])===w?w:t["$[]"](0))+"; use footnote macro with target instead")}else s=(t=_["~"])===w?w:t["$[]"](2),a=(t=_["~"])===w?w:t["$[]"](3);if($(s))$(u=l(k.$footnotes(),"find",[],(function(e){return null==e&&(e=w),e.$id()["$=="](s)})))?(c=(t=[u.$index(),u.$text()])[0],a=t[1],d=(t=["xref",s,w])[0],h=t[1],s=t[2]):$(a)?(a=o.$restore_passthroughs(o.$normalize_text(a,!0,!0)),c=k.$counter("footnote-number"),k.$register("footnotes",A(O("Document"),"Footnote").$new(c,s,a)),d=(t=["ref",w])[0],h=t[1]):(o.$logger().$warn("invalid footnote reference: "+s),d=(t=["xref",s,s,w])[0],h=t[1],a=t[2],s=t[3]);else{if(!$(a))return(t=_["~"])===w?w:t["$[]"](0);a=o.$restore_passthroughs(o.$normalize_text(a,!0,!0)),c=k.$counter("footnote-number"),k.$register("footnotes",A(O("Document"),"Footnote").$new(c,s,a)),d=h=w}return O("Inline").$new(o,"footnote",a,n(["attributes","id","target","type"],{attributes:n(["index"],{index:c}),id:s,target:h,type:d})).$convert()}),{$$s:c})),t})),u(S,"$sub_post_replacements",(function(e){var t=this,r=w,i=w;return null==t.document&&(t.document=w),null==t.attributes&&(t.attributes=w),$(t.attributes["$[]"]("hardbreaks-option"))||$(t.document.$attributes()["$[]"]("hardbreaks-option"))?(r=e.$split(O("LF"),-1),$(y(r.$size(),2))?e:(i=r.$pop(),l(r,"map",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=w),O("Inline").$new(r,"break",$(t["$end_with?"](O("HARD_LINE_BREAK")))?t.$slice(0,v(t.$length(),2)):t,n(["type"],{type:"line"})).$convert()}),{$$s:t})["$<<"](i).$join(O("LF")))):$(e["$include?"](O("PLUS")))&&$(e["$include?"](O("HARD_LINE_BREAK")))?l(e,"gsub",[O("HardLineBreakRx")],(function e(){var t,r=null==e.$$s?this:e.$$s;return O("Inline").$new(r,"break",(t=_["~"])===w?w:t["$[]"](1),n(["type"],{type:"line"})).$convert()}),{$$s:t}):e})),u(S,"$sub_source",(function(e,t){var r=this;return $(t)?r.$sub_callouts(r.$sub_specialchars(e)):r.$sub_specialchars(e)})),u(S,"$sub_callouts",(function(e){var t,r=this,i=w;return t=$(r["$attr?"]("line-comment"))?O("CalloutSourceRxMap")["$[]"](r.$attr("line-comment")):O("CalloutSourceRx"),i=0,l(e,"gsub",[t],(function e(){var t,r=null==e.$$s?this:e.$$s,s=w;return null==r.document&&(r.document=w),$((t=_["~"])===w?w:t["$[]"](2))?((t=_["~"])===w?w:t["$[]"](0)).$sub(O("RS"),""):O("Inline").$new(r,"callout",d((t=_["~"])===w?w:t["$[]"](4),".")?(i=o(i,1)).$to_s():(t=_["~"])===w?w:t["$[]"](4),n(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:$(s=(t=_["~"])===w?w:t["$[]"](1))?s:d((t=_["~"])===w?w:t["$[]"](3),"--")?["\x3c!--","--\x3e"]:w})})).$convert()}),{$$s:r})})),u(S,"$highlight_source",(function(e,t){var r,i,o,s,a,l=this,u=w,c=w,_=w,d=w,h=w,f=w,m=w;return null==l.document&&(l.document=w),null==l.passthroughs&&(l.passthroughs=w),$(u=l.document.$syntax_highlighter())&&$(u["$highlight?"]())?($(t)&&(i=l.$extract_callouts(e),e=null==(r=p(i))[0]?w:r[0],c=null==r[1]?w:r[1]),_=l.document.$attributes(),o=u.$name(),$(s=$(l["$attr?"]("linenums"))?($(h=_["$[]"](o+"-linenums-mode"))?h:"table").$to_sym():w)&&$(y(d=l.$attr("start",1).$to_i(),1))&&(d=1),$(l["$attr?"]("highlight"))&&(f=l.$resolve_lines_to_highlight(e,l.$attr("highlight"),d)),i=u.$highlight(l,e,l.$attr("language"),n(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:c,css_mode:($(h=_["$[]"](o+"-css"))?h:"class").$to_sym(),highlight_lines:f,number_lines:s,start_line_number:d,style:_["$[]"](o+"-style")})),m=null==(r=p(i))[0]?w:r[0],a=null==r[1]?w:r[1],$(l.passthroughs["$empty?"]())||(m=m.$gsub(O("HighlightedPassSlotRx"),O("PASS_START")+"\\1"+O("PASS_END"))),$(c["$nil_or_empty?"]())?m:l.$restore_callouts(m,c,a)):l.$sub_source(e,t)})),u(S,"$resolve_lines_to_highlight",(function(t,r,n){var i,s=w;return null==n&&(n=w),s=[],$(r["$include?"](" "))&&(r=r.$delete(" ")),l($(r["$include?"](","))?r.$split(","):r.$split(";"),"map",[],(function(r){var n,i,l,u=w,c=w,_=w,d=w;return null==r&&(r=w),$(r["$start_with?"]("!"))&&(r=r.$slice(1,r.$length()),u=!0),$(l=$(r["$include?"](".."))?"..":$(r["$include?"]("-"))?"-":w)?(i=r.$partition(l),c=null==(n=p(i))[0]?w:n[0],null==n[1]||n[1],_=null==n[2]?w:n[2],($(_["$empty?"]())||$(y(_=_.$to_i(),0)))&&(_=o(t.$count(O("LF")),1)),s=$(u)?v(s,e.Range.$new(c.$to_i(),_,!1).$to_a()):s["$|"](e.Range.$new(c.$to_i(),_,!1).$to_a())):$(u)?s.$delete(r.$to_i()):a(s["$include?"](d=r.$to_i()))?s["$<<"](d):w})),d(i=$(n)?v(n,1):0,0)||(s=l(s,"map",[],(function(e){return null==e&&(e=w),v(e,i)}))),s.$sort()}),-3),u(S,"$extract_passthroughs",(function(e){var t,r,i,o,s,u,c=this,h=w;return null==c.document&&(c.document=w),null==c.passthroughs&&(c.passthroughs=w),i=c.document.$compat_mode(),h=c.passthroughs,($(e["$include?"]("++"))||$(e["$include?"]("$$"))||$(e["$include?"]("ss:")))&&(e=l(e,"gsub",[O("InlinePassMacroRx")],(function e(){var t,r,o,s=null==e.$$s?this:e.$$s,a=w,l=w,u=w,c=w,p=w,f=w,m=w;if($(r=(t=_["~"])===w?w:t["$[]"](4))){if($(i)&&d(r,"++"))return($((t=_["~"])===w?w:t["$[]"](2))?((t=_["~"])===w?w:t["$[]"](1))+"["+((t=_["~"])===w?w:t["$[]"](2))+"]"+((t=_["~"])===w?w:t["$[]"](3)):""+((t=_["~"])===w?w:t["$[]"](1))+((t=_["~"])===w?w:t["$[]"](3)))+"++"+s.$extract_passthroughs((t=_["~"])===w?w:t["$[]"](5))+"++";if($(a=(t=_["~"])===w?w:t["$[]"](2))){if($(g(l=((t=_["~"])===w?w:t["$[]"](3)).$length(),0)))return((t=_["~"])===w?w:t["$[]"](1))+"["+a+"]"+x(O("RS"),v(l,1))+r+((t=_["~"])===w?w:t["$[]"](5))+r;d((t=_["~"])===w?w:t["$[]"](1),O("RS"))?u="["+a+"]":(d(r,"++")&&$(a["$end_with?"]("x-"))&&(c=!0,a=a.$slice(0,v(a.$length(),2))),p=s.$parse_quoted_text_attributes(a))}else if($(g(l=((t=_["~"])===w?w:t["$[]"](3)).$length(),0)))return""+x(O("RS"),v(l,1))+r+((t=_["~"])===w?w:t["$[]"](5))+r;f=d(r,"+++")?[]:O("BASIC_SUBS"),$(p)?$(c)?h["$[]="](m=h.$size(),n(["text","subs","type","attributes"],{text:(t=_["~"])===w?w:t["$[]"](5),subs:O("NORMAL_SUBS"),type:"monospaced",attributes:p})):h["$[]="](m=h.$size(),n(["text","subs","type","attributes"],{text:(t=_["~"])===w?w:t["$[]"](5),subs:f,type:"unquoted",attributes:p})):h["$[]="](m=h.$size(),n(["text","subs"],{text:(t=_["~"])===w?w:t["$[]"](5),subs:f}))}else{if(d((t=_["~"])===w?w:t["$[]"](6),O("RS")))return((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length());$(f=(t=_["~"])===w?w:t["$[]"](7))?h["$[]="](m=h.$size(),n(["text","subs"],{text:s.$normalize_text((t=_["~"])===w?w:t["$[]"](8),w,!0),subs:s.$resolve_pass_subs(f)})):h["$[]="](m=h.$size(),n(["text"],{text:s.$normalize_text((t=_["~"])===w?w:t["$[]"](8),w,!0)}))}return""+($(o=u)?o:"")+O("PASS_START")+m+O("PASS_END")}),{$$s:c})),r=O("InlinePassRx")["$[]"](i),o=null==(t=p(r))[0]?w:t[0],s=null==t[1]?w:t[1],u=null==t[2]?w:t[2],($(e["$include?"](o))||$(s)&&$(e["$include?"](s)))&&(e=l(e,"gsub",[u],(function e(){var t,r,o,s=null==e.$$s?this:e.$$s,l=w,u=w,c=w,p=w,f=w,m=w,g=w,b=w,y=w;if(l=(t=_["~"])===w?w:t["$[]"](1),u=(t=_["~"])===w?w:t["$[]"](2),$((c=(t=_["~"])===w?w:t["$[]"](3))["$start_with?"](O("RS")))&&(p=O("RS")),r=(t=_["~"])===w?w:t["$[]"](4),o=(t=_["~"])===w?w:t["$[]"](5),$(i)?f=!0:$(f=$(m=u)?u["$end_with?"]("x-"):m)&&(u=u.$slice(0,v(u.$length(),2))),$(u)){if(d(r,"`")&&a(f))return s.$extract_inner_passthrough(o,l+"["+u+"]"+p);if($(p))return l+"["+u+"]"+c.$slice(1,c.$length());d(l,O("RS"))?l="["+u+"]":g=s.$parse_quoted_text_attributes(u)}else{if(d(r,"`")&&a(f))return s.$extract_inner_passthrough(o,""+l+p);if($(p))return""+l+c.$slice(1,c.$length())}return $(i)?h["$[]="](b=h.$size(),n(["text","subs","attributes","type"],{text:o,subs:O("BASIC_SUBS"),attributes:g,type:"monospaced"})):$(g)?$(f)?(y=d(r,"`")?O("BASIC_SUBS"):O("NORMAL_SUBS"),h["$[]="](b=h.$size(),n(["text","subs","attributes","type"],{text:o,subs:y,attributes:g,type:"monospaced"}))):h["$[]="](b=h.$size(),n(["text","subs","attributes","type"],{text:o,subs:O("BASIC_SUBS"),attributes:g,type:"unquoted"})):h["$[]="](b=h.$size(),n(["text","subs"],{text:o,subs:O("BASIC_SUBS")})),""+l+O("PASS_START")+b+O("PASS_END")}),{$$s:c})),$(e["$include?"](":"))&&($(e["$include?"]("stem:"))||$(e["$include?"]("math:")))&&(e=l(e,"gsub",[O("InlineStemMacroRx")],(function e(){var t,r,i=null==e.$$s?this:e.$$s,o=w,s=w,a=w;return null==i.document&&(i.document=w),$(((t=_["~"])===w?w:t["$[]"](0))["$start_with?"](O("RS")))?((t=_["~"])===w?w:t["$[]"](0)).$slice(1,((t=_["~"])===w?w:t["$[]"](0)).$length()):(d(o=((t=_["~"])===w?w:t["$[]"](1)).$to_sym(),"stem")&&(o=O("STEM_TYPE_ALIASES")["$[]"](i.document.$attributes()["$[]"]("stem")).$to_sym()),s=(t=_["~"])===w?w:t["$[]"](2),a=i.$normalize_text((t=_["~"])===w?w:t["$[]"](3),w,!0),d(o,"latexmath")&&$(a["$start_with?"]("$"))&&$(a["$end_with?"]("$"))&&(a=a.$slice(1,v(a.$length(),2))),s=$(s)?i.$resolve_pass_subs(s):$(i.document["$basebackend?"]("html"))?O("BASIC_SUBS"):w,h["$[]="](r=h.$size(),n(["text","subs","type"],{text:a,subs:s,type:o})),""+O("PASS_START")+r+O("PASS_END"))}),{$$s:c})),e})),u(S,"$restore_passthroughs",(function(e){var t=this,r=w;return null==t.passthroughs&&(t.passthroughs=w),r=t.passthroughs,l(e,"gsub",[O("PassSlotRx")],(function t(){var i,o=null==t.$$s?this:t.$$s,s=w,a=w,l=w,u=w,c=w;return $(s=r["$[]"](((i=_["~"])===w?w:i["$[]"](1)).$to_i()))?(a=o.$apply_subs(s["$[]"]("text"),s["$[]"]("subs")),$(l=s["$[]"]("type"))&&($(u=s["$[]"]("attributes"))&&(c=u["$[]"]("id")),a=O("Inline").$new(o,"quoted",a,n(["type","id","attributes"],{type:l,id:c,attributes:u})).$convert()),$(a["$include?"](O("PASS_START")))?o.$restore_passthroughs(a):a):(o.$logger().$error("unresolved passthrough detected: "+e),"??pass??")}),{$$s:t})})),u(S,"$resolve_subs",(function(e,t,r,n){var i,s,a=w,u=w;return null==t&&(t="block"),null==r&&(r=w),null==n&&(n=w),$(e["$nil_or_empty?"]())?w:(a=w,$(e["$include?"](" "))&&(e=e.$delete(" ")),i=O("SubModifierSniffRx")["$match?"](e),l(e.$split(","),"each",[],(function(e){var n=w,s=w,l=w,u=w,c=w,_=w;if(null==e&&(e=w),n=w,$(i)&&(d(s=e.$chr(),"+")?(n="append",e=e.$slice(1,e.$length())):d(s,"-")?(n="remove",e=e.$slice(1,e.$length())):$(e["$end_with?"]("+"))&&(n="prepend",e=e.$chop())),e=e.$to_sym(),d(t,"inline")&&(d(e,"verbatim")||d(e,"v"))?l=O("BASIC_SUBS"):$(O("SUB_GROUPS")["$key?"](e))?l=O("SUB_GROUPS")["$[]"](e):d(t,"inline")&&d(e.$length(),1)&&$(O("SUB_HINTS")["$key?"](e))?(u=O("SUB_HINTS")["$[]"](e),l=$(c=O("SUB_GROUPS")["$[]"](u))?c:[u]):l=[e],!$(n))return a=$(_=a)?_:[],a=o(a,l);switch(a=$(_=a)?_:$(r)?r.$drop(0):[],n){case"append":return a=o(a,l);case"prepend":return a=o(l,a);case"remove":return a=v(a,l);default:return w}})),$(a)?(s=a["$&"](O("SUB_OPTIONS")["$[]"](t)),$(v(a,s)["$empty?"]())||(u=v(a,s),this.$logger().$warn("invalid substitution type"+($(g(u.$size(),1))?"s":"")+($(n)?" for ":"")+n+": "+u.$join(", "))),s):w)}),-2),u(S,"$resolve_block_subs",(function(e,t,r){return this.$resolve_subs(e,"block",t,r)})),u(S,"$resolve_pass_subs",(function(e){return this.$resolve_subs(e,"inline",w,"passthrough macro")})),u(S,"$expand_subs",(function(e,t){var r,n=w,i=w;return null==t&&(t=w),m(A("Symbol"),r=e)?d(e,"none")?w:$(n=O("SUB_GROUPS")["$[]"](e))?n:[e]:m(A("Array"),r)?(i=[],l(e,"each",[],(function(e){var t=w;return null==e&&(e=w),d(e,"none")?w:$(t=O("SUB_GROUPS")["$[]"](e))?i=o(i,t):i["$<<"](e)})),$(i["$empty?"]())?w:i):this.$resolve_subs(e,"inline",w,t)}),-2),u(S,"$commit_subs",(function(){var e,t=this,r=w,n=w,i=w,o=w;if(null==t.default_subs&&(t.default_subs=w),null==t.content_model&&(t.content_model=w),null==t.context&&(t.context=w),null==t.subs&&(t.subs=w),null==t.attributes&&(t.attributes=w),null==t.document&&(t.document=w),null==t.style&&(t.style=w),!$(r=t.default_subs))switch(t.content_model){case"simple":r=O("NORMAL_SUBS");break;case"verbatim":r=d(t.context,"verse")?O("NORMAL_SUBS"):O("VERBATIM_SUBS");break;case"raw":r=d(t.context,"stem")?O("BASIC_SUBS"):O("NO_SUBS");break;default:return t.subs}return $(e=t.attributes["$[]"]("subs"))?t.subs=$(n=t.$resolve_block_subs(e,r,t.context))?n:[]:t.subs=r.$drop(0),d(t.context,"listing")&&d(t.style,"source")&&$(o=t.document.$syntax_highlighter())&&$(o["$highlight?"]())&&$(i=t.subs.$index("specialcharacters"))&&t.subs["$[]="](i,"highlight"),w})),u(S,"$parse_attributes",(function(e,t,r){var i,o=this,s=w;return null==o.document&&(o.document=w),null==t&&(t=[]),null==r&&(r=n([],{})),$(!$(e)||e["$empty?"]())?n([],{}):($(r["$[]"]("unescape_input"))&&(e=o.$normalize_text(e,!0,!0)),$(r["$[]"]("sub_input"))&&$(e["$include?"](O("ATTR_REF_HEAD")))&&(e=o.document.$sub_attributes(e)),$(r["$[]"]("sub_result"))&&(s=o),$(i=r["$[]"]("into"))?O("AttributeList").$new(e,s).$parse_into(i,t):O("AttributeList").$new(e,s).$parse(t))}),-2),S.$private(),u(S,"$extract_attributes_from_text",(function(e,t){var r,n,i=w;return null==t&&(t=w),r=$(e["$include?"](O("LF")))?e.$tr(O("LF")," "):e,$(n=(i=O("AttributeList").$new(r,this).$parse())["$[]"](1))?d(n,r)?[e,i.$clear()]:[n,i]:[t,i]}),-2),u(S,"$extract_callouts",(function(e){var t,r=w,i=w,s=w,a=w;return r=n([],{}),i=s=0,a=w,t=$(this["$attr?"]("line-comment"))?O("CalloutExtractRxMap")["$[]"](this.$attr("line-comment")):O("CalloutExtractRx"),e=l(e.$split(O("LF"),-1),"map",[],(function(e){return null==e&&(e=w),s=o(s,1),l(e,"gsub",[t],(function(){var e,t=w;return $((e=_["~"])===w?w:e["$[]"](2))?((e=_["~"])===w?w:e["$[]"](0)).$sub(O("RS"),""):(($(t=r["$[]"](s))?t:(e=[s,[]],l(r,"[]=",e),e[e.length-1]))["$<<"]([$(t=(e=_["~"])===w?w:e["$[]"](1))?t:d((e=_["~"])===w?w:e["$[]"](3),"--")?["\x3c!--","--\x3e"]:w,d((e=_["~"])===w?w:e["$[]"](4),".")?(i=o(i,1)).$to_s():(e=_["~"])===w?w:e["$[]"](4)]),a=s,"")}))})).$join(O("LF")),$(a)?d(a,s)&&(e=""+e+O("LF")):r=w,[e,r]})),u(S,"$restore_callouts",(function(e,t,r){var i=w,s=w;return null==r&&(r=w),$(r)?(i=e.$slice(0,r),e=e.$slice(r,e.$length())):i="",s=0,o(i,l(e.$split(O("LF"),-1),"map",[],(function e(r){var i,a,u=null==e.$$s?this:e.$$s,c=w,_=w,h=w;return null==u.document&&(u.document=w),null==r&&(r=w),$(c=t.$delete(s=o(s,1)))?d(c.$size(),1)?(a=c["$[]"](0),_=null==(i=p(a))[0]?w:i[0],h=null==i[1]?w:i[1],""+r+O("Inline").$new(u,"callout",h,n(["id","attributes"],{id:u.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:_})})).$convert()):""+r+l(c,"map",[],(function e(t,r){var i=null==e.$$s?this:e.$$s;return null==i.document&&(i.document=w),null==t&&(t=w),null==r&&(r=w),O("Inline").$new(i,"callout",r,n(["id","attributes"],{id:i.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:t})})).$convert()}),{$$s:u}).$join(" "):r}),{$$s:this}).$join(O("LF")))}),-3),u(S,"$extract_inner_passthrough",(function(e,t){var r,i=this,o=w;return null==i.passthroughs&&(i.passthroughs=w),$(e["$end_with?"]("+"))&&$(e["$start_with?"]("+","\\+"))&&$(O("SinglePlusInlinePassRx")["$=~"](e))?$((r=_["~"])===w?w:r["$[]"](1))?t+"`+"+((r=_["~"])===w?w:r["$[]"](2))+"+`":(i.passthroughs["$[]="](o=i.passthroughs.$size(),n(["text","subs"],{text:(r=_["~"])===w?w:r["$[]"](2),subs:O("BASIC_SUBS")})),t+"`"+O("PASS_START")+o+O("PASS_END")+"`"):t+"`"+e+"`"})),u(S,"$convert_quoted_text",(function(e,t,r){var i=this,o=w,s=w,a=w,l=w,u=w;if($(e["$[]"](0)["$start_with?"](O("RS")))){if(!d(r,"constrained")||!$(o=e["$[]"](2)))return e["$[]"](0).$slice(1,e["$[]"](0).$length());s="["+o+"]"}return d(r,"constrained")?$(s)?""+s+O("Inline").$new(i,"quoted",e["$[]"](3),n(["type"],{type:t})).$convert():($(a=e["$[]"](2))&&(l=(u=i.$parse_quoted_text_attributes(a))["$[]"]("id"),d(t,"mark")&&(t="unquoted")),""+e["$[]"](1)+O("Inline").$new(i,"quoted",e["$[]"](3),n(["type","id","attributes"],{type:t,id:l,attributes:u})).$convert()):($(a=e["$[]"](1))&&(l=(u=i.$parse_quoted_text_attributes(a))["$[]"]("id"),d(t,"mark")&&(t="unquoted")),O("Inline").$new(i,"quoted",e["$[]"](2),n(["type","id","attributes"],{type:t,id:l,attributes:u})).$convert())})),u(S,"$do_replacement",(function(e,t,r){var n=w;if($((n=e["$[]"](0))["$include?"](O("RS"))))return n.$sub(O("RS"),"");switch(r){case"none":return t;case"bounding":return o(o(e["$[]"](1),t),e["$[]"](2));default:return o(e["$[]"](1),t)}})),u(S,"$parse_quoted_text_attributes",(function(e){var t,r,i=w,s=w,a=w,l=w,u=w;return $(e["$include?"](O("ATTR_REF_HEAD")))&&(e=this.$sub_attributes(e)),$(e["$include?"](","))&&(e=e.$slice(0,e.$index(","))),$((e=e.$strip())["$empty?"]())?n([],{}):$(e["$start_with?"](".","#"))&&$(O("Compliance").$shorthand_property_syntax())?(r=e.$partition("#"),i=null==(t=p(r))[0]?w:t[0],null==t[1]||t[1],s=null==t[2]?w:t[2],a=n([],{}),$(s["$empty?"]())?$(g(i.$length(),1))&&a["$[]="]("role",i.$tr("."," ").$lstrip()):(r=s.$partition("."),l=null==(t=p(r))[0]?w:t[0],null==t[1]||t[1],u=null==t[2]?w:t[2],$(l["$empty?"]())||a["$[]="]("id",l),$(u["$empty?"]())?$(g(i.$length(),1))&&a["$[]="]("role",i.$tr("."," ").$lstrip()):$(g(i.$length(),1))?a["$[]="]("role",o(o(i,"."),u).$tr("."," ").$lstrip()):a["$[]="]("role",u.$tr("."," "))),a):n(["role"],{role:e})})),u(S,"$normalize_text",(function(e,t,r){return null==t&&(t=w),null==r&&(r=w),$(e["$empty?"]())||($(t)&&(e=e.$strip().$tr(O("LF")," ")),$(r)&&$(e["$include?"](O("R_SB")))&&(e=e.$gsub(O("ESC_R_SB"),O("R_SB")))),e}),-2),u(S,"$split_simple_csv",(function(e){var t=w,r=w,n=w;return $(e["$empty?"]())?[]:$(e["$include?"]('"'))?(t=[],r="",n=w,l(e,"each_char",[],(function(e){switch(null==e&&(e=w),e){case",":return $(n)?r=o(r,e):(t["$<<"](r.$strip()),r="");case'"':return n=n["$!"]();default:return r=o(r,e)}})),t["$<<"](r.$strip())):l(e.$split(","),"map",[],(function(e){return null==e&&(e=w),e.$strip()}))}))}(S[0],S)}(k[0],k)},Opal.modules["asciidoctor/version"]=function(e){var t=e.module,r=e.const_set,n=[];return e.nil,function(e,n){var i=[t(e,"Asciidoctor")].concat(n);return r(i[0],"VERSION","2.0.18")}(n[0],n)},Opal.modules["asciidoctor/abstract_node"]=function(e){var t=e.module,r=e.klass,n=e.hash2,i=e.eqeq,o=e.truthy,s=e.def,a=e.send,$=e.rb_minus,l=e.eqeqeq,u=e.rb_lt,c=e.not,_=e.to_ary,d=[],p=e.nil,h=e.$$$;return e.add_stubs("include,attr_reader,attr_accessor,==,document,to_s,[],merge,raise,converter,attributes,key?,[]=,delete,tap,new,each_key,end_with?,<<,slice,-,length,update,split,include?,===,join,empty?,apply_reftext_subs,attr?,attr,extname?,image_uri,<,safe,normalize_web_path,uriish?,encode_spaces_in_uri,generate_data_uri_from_uri,generate_data_uri,extname,normalize_system_path,readable?,strict_encode64,binread,warn,logger,require_library,!,open_uri,content_type,read,base_dir,root?,path_resolver,system_path,web_path,!=,prepare_source_string,fetch,read_asset"),function(d,f){var m=[t(d,"Asciidoctor")].concat(f);return function(t,d,f){var m=r(t,null,"AbstractNode"),g=[m].concat(f),b=e.$r(g),v=m.$$prototype;return v.document=v.attributes=v.parent=p,m.$include(b("Logging")),m.$include(b("Substitutors")),m.$attr_reader("attributes"),m.$attr_reader("context"),m.$attr_reader("document"),m.$attr_accessor("id"),m.$attr_reader("node_name"),m.$attr_reader("parent"),s(m,"$initialize",(function(e,t,r){var s=this,a=p;return null==r&&(r=n([],{})),i(t,"document")?s.document=s:o(e)&&(s.document=(s.parent=e).$document()),s.node_name=(s.context=t).$to_s(),s.attributes=o(a=r["$[]"]("attributes"))?a.$merge():n([],{}),s.passthroughs=[]}),-3),s(m,"$block?",(function(){return this.$raise(h("NotImplementedError"))})),s(m,"$inline?",(function(){return this.$raise(h("NotImplementedError"))})),s(m,"$converter",(function(){return this.document.$converter()})),s(m,"$parent=",(function(e){var t;return t=[e,e.$document()],this.parent=t[0],this.document=t[1],t})),s(m,"$attr",(function(e,t,r){var n,s=this,a=p,$=p,l=p;return null==t&&(t=p),null==r&&(r=p),o(n=s.attributes["$[]"](e.$to_s()))?n:o(a=o($=o(l=r)?s.parent:l)?s.document.$attributes()["$[]"]((i(r,!0)?e:r).$to_s()):$)?a:t}),-2),s(m,"$attr?",(function(e,t,r){var n=this,s=p;return null==t&&(t=p),null==r&&(r=p),o(t)?t["$=="](o(s=n.attributes["$[]"](e.$to_s()))?s:o(r)&&o(n.parent)?n.document.$attributes()["$[]"]((i(r,!0)?e:r).$to_s()):p):o(s=n.attributes["$key?"](e.$to_s()))?s:!(!o(r)||!o(n.parent))&&n.document.$attributes()["$key?"]((i(r,!0)?e:r).$to_s())}),-2),s(m,"$set_attr",(function(e,t,r){return null==t&&(t=""),null==r&&(r=!0),(!i(r,!1)||!o(this.attributes["$key?"](e)))&&(this.attributes["$[]="](e,t),!0)}),-2),s(m,"$remove_attr",(function(e){return this.attributes.$delete(e)})),s(m,"$option?",(function(e){return!!o(this.attributes["$[]"](e+"-option"))})),s(m,"$set_option",(function(e){return this.attributes["$[]="](e+"-option",""),p})),s(m,"$enabled_options",(function(){return a(h("Set").$new(),"tap",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.attributes&&(r.attributes=p),null==t&&(t=p),a(r.attributes,"each_key",[],(function(e){return null==e&&(e=p),o(e.$to_s()["$end_with?"]("-option"))?t["$<<"](e.$slice(0,$(e.$length(),7))):p}))}),{$$s:this})})),s(m,"$update_attributes",(function(e){return this.attributes.$update(e)})),s(m,"$role",(function(){return this.attributes["$[]"]("role")})),s(m,"$roles",(function(){var e=p;return o(e=this.attributes["$[]"]("role"))?e.$split():[]})),s(m,"$role?",(function(e){return null==e&&(e=p),o(e)?e["$=="](this.attributes["$[]"]("role")):this.attributes["$key?"]("role")}),-1),s(m,"$has_role?",(function(e){var t;return!!o(t=this.attributes["$[]"]("role"))&&(" "+t+" ")["$include?"](" "+e+" ")})),s(m,"$role=",(function(e){var t;return t=["role",l(h("Array"),e)?e.$join(" "):e],a(this.attributes,"[]=",t),t[t.length-1]})),s(m,"$add_role",(function(e){var t,r=this;return o(t=r.attributes["$[]"]("role"))?!o((" "+t+" ")["$include?"](" "+e+" "))&&(r.attributes["$[]="]("role",t+" "+e),!0):(r.attributes["$[]="]("role",e),!0)})),s(m,"$remove_role",(function(e){var t=this,r=p;return!(!o(r=t.attributes["$[]"]("role"))||!o((r=r.$split()).$delete(e)))&&(o(r["$empty?"]())?t.attributes.$delete("role"):t.attributes["$[]="]("role",r.$join(" ")),!0)})),s(m,"$reftext",(function(){var e;return o(e=this.attributes["$[]"]("reftext"))?this.$apply_reftext_subs(e):p})),s(m,"$reftext?",(function(){return this.attributes["$key?"]("reftext")})),s(m,"$icon_uri",(function(e){var t=this,r=p;return o(t["$attr?"]("icon"))?(r=t.$attr("icon"),o(b("Helpers")["$extname?"](r))||(r=r+"."+t.document.$attr("icontype","png"))):r=e+"."+t.document.$attr("icontype","png"),t.$image_uri(r,"iconsdir")})),s(m,"$image_uri",(function(e,t){var r=this,n=p,i=p;return null==t&&(t="imagesdir"),o(u((n=r.document).$safe(),h(b("SafeMode"),"SECURE")))&&o(n["$attr?"]("data-uri"))?o(b("Helpers")["$uriish?"](e))&&o(e=b("Helpers").$encode_spaces_in_uri(e))||o(t)&&o(i=n.$attr(t))&&o(b("Helpers")["$uriish?"](i))&&o(e=r.$normalize_web_path(e,i,!1))?o(n["$attr?"]("allow-uri-read"))?r.$generate_data_uri_from_uri(e,n["$attr?"]("cache-uri")):e:r.$generate_data_uri(e,t):r.$normalize_web_path(e,o(t)?n.$attr(t):p)}),-2),s(m,"$media_uri",(function(e,t){return null==t&&(t="imagesdir"),this.$normalize_web_path(e,o(t)?this.document.$attr(t):p)}),-2),s(m,"$generate_data_uri",(function(e,t){var r=this,s=p,a=p,$=p;return null==t&&(t=p),a=o(s=b("Helpers").$extname(e,p))?i(s,".svg")?"image/svg+xml":"image/"+s.$slice(1,s.$length()):"application/octet-stream",$=o(t)?r.$normalize_system_path(e,r.document.$attr(t),p,n(["target_name"],{target_name:"image"})):r.$normalize_system_path(e),o(h("File")["$readable?"]($))?"data:"+a+";base64,"+h("Base64").$strict_encode64(h("File").$binread($)):(r.$logger().$warn("image to embed not found or not readable: "+$),"data:"+a+";base64,")}),-2),s(m,"$generate_data_uri_from_uri",(function(t,r){var n,i,s=p,$=p;null==r&&(r=!1),o(r)?b("Helpers").$require_library("open-uri/cached","open-uri-cached"):c(b("RUBY_ENGINE_OPAL"))&&h("OpenURI");try{return i=a(h("OpenURI"),"open_uri",[t,b("URI_READ_MODE")],(function(e){return null==e&&(e=p),[e.$content_type(),e.$read()]})),s=null==(n=_(i))[0]?p:n[0],$=null==n[1]?p:n[1],"data:"+s+";base64,"+h("Base64").$strict_encode64($)}catch(r){if(!e.rescue(r,[b("StandardError")]))throw r;try{return this.$logger().$warn("could not retrieve image data from URI: "+t),t}finally{e.pop_exception()}}}),-2),s(m,"$normalize_asset_path",(function(e,t,r){return null==t&&(t="path"),null==r&&(r=!0),this.$normalize_system_path(e,this.document.$base_dir(),p,n(["target_name","recover"],{target_name:t,recover:r}))}),-2),s(m,"$normalize_system_path",(function(e,t,r,i){var s=p,a=p;return null==t&&(t=p),null==r&&(r=p),null==i&&(i=n([],{})),o(u((s=this.document).$safe(),h(b("SafeMode"),"SAFE")))?o(t)?o(s.$path_resolver()["$root?"](t))||(t=h("File").$join(s.$base_dir(),t)):t=s.$base_dir():(t=o(a=t)?a:s.$base_dir(),r=o(a=r)?a:s.$base_dir()),s.$path_resolver().$system_path(e,t,r,i)}),-2),s(m,"$normalize_web_path",(function(e,t,r){return null==t&&(t=p),null==r&&(r=!0),o(r)&&o(b("Helpers")["$uriish?"](e))?b("Helpers").$encode_spaces_in_uri(e):this.document.$path_resolver().$web_path(e,t)}),-2),s(m,"$read_asset",(function(e,t){var r=p;return null==t&&(t=n([],{})),l(h("Hash"),t)||(t=n(["warn_on_failure"],{warn_on_failure:t["$!="](!1)})),o(h("File")["$readable?"](e))?o(t["$[]"]("normalize"))?b("Helpers").$prepare_source_string(h("File").$read(e,n(["mode"],{mode:b("FILE_READ_MODE")}))).$join(b("LF")):h("File").$read(e,n(["mode"],{mode:b("FILE_READ_MODE")})):o(t["$[]"]("warn_on_failure"))?(this.$logger().$warn((o(r=this.$attr("docfile"))?r:"")+": "+(o(r=t["$[]"]("label"))?r:"file")+" does not exist or cannot be read: "+e),p):p}),-2),s(m,"$read_contents",(function(t,r){var i=this,s=p,$=p,l=p,u=p;if(null==r&&(r=n([],{})),s=i.document,o(b("Helpers")["$uriish?"](t))||o($=r["$[]"]("start"))&&o(b("Helpers")["$uriish?"]($))&&o(t=s.$path_resolver().$web_path(t,$)))if(o(s["$attr?"]("allow-uri-read"))){o(s["$attr?"]("cache-uri"))&&b("Helpers").$require_library("open-uri/cached","open-uri-cached");try{l=o(r["$[]"]("normalize"))?b("Helpers").$prepare_source_string(a(h("OpenURI"),"open_uri",[t,b("URI_READ_MODE")],(function(e){return null==e&&(e=p),e.$read()}))).$join(b("LF")):a(h("OpenURI"),"open_uri",[t,b("URI_READ_MODE")],(function(e){return null==e&&(e=p),e.$read()}))}catch(n){if(!e.rescue(n,[b("StandardError")]))throw n;try{o(r.$fetch("warn_on_failure",!0))&&i.$logger().$warn("could not retrieve contents of "+(o(u=r["$[]"]("label"))?u:"asset")+" at URI: "+t)}finally{e.pop_exception()}}}else o(r.$fetch("warn_on_failure",!0))&&i.$logger().$warn("cannot retrieve contents of "+(o(u=r["$[]"]("label"))?u:"asset")+" at URI: "+t+" (allow-uri-read attribute not enabled)");else t=i.$normalize_system_path(t,r["$[]"]("start"),p,n(["target_name"],{target_name:o(u=r["$[]"]("label"))?u:"asset"})),l=i.$read_asset(t,n(["normalize","warn_on_failure","label"],{normalize:r["$[]"]("normalize"),warn_on_failure:r.$fetch("warn_on_failure",!0),label:r["$[]"]("label")}));return o(l)&&o(r["$[]"]("warn_if_empty"))&&o(l["$empty?"]())&&i.$logger().$warn("contents of "+(o(u=r["$[]"]("label"))?u:"asset")+" is empty: "+t),l}),-2),s(m,"$is_uri?",(function(e){return b("Helpers")["$uriish?"](e)}))}(m[0],0,m)}(d[0],d)},Opal.modules["asciidoctor/abstract_block"]=function(e){var t=e.module,r=e.klass,n=e.hash2,i=e.send2,o=e.find_super,s=e.eqeq,a=e.eqeqeq,$=e.def,l=e.return_val,u=e.truthy,c=e.alias,_=e.send,d=e.rb_plus,p=e.not,h=e.neqeq,f=[],m=e.nil,g=e.$$$;return e.add_stubs("attr_reader,attr_writer,attr_accessor,==,===,level,file,lineno,playback_attributes,convert,converter,join,map,to_s,parent,parent=,<<,empty?,Integer,find_by_internal,to_proc,find_by,context,[],items,+,find_index,include?,next_adjacent_block,blocks,select,sub_specialchars,match?,sub_replacements,title,apply_title_subs,delete,!,reftext,nil_or_empty?,sub_placeholder,sub_quotes,compat_mode,attributes,chomp,increment_and_store_counter,index=,numbered,sectname,numeral=,counter,caption=,numeral,int_to_roman,each,assign_numeral,reindex_sections,protected,has_role?,raise,header?,!=,flatten,head,rows,merge,body,foot,style,inner_document"),function(f,b){var v=[t(f,"Asciidoctor")].concat(b),y=e.$r(v);return function(t,f,b){var v=r(t,f,"AbstractBlock"),y=[v].concat(b),x=e.$r(y),k=v.$$prototype;return k.source_location=k.document=k.attributes=k.blocks=k.numeral=k.context=k.parent=k.caption=k.style=k.converted_title=k.title=k.subs=k.next_section_index=k.next_section_ordinal=k.id=k.header=m,v.$attr_reader("blocks"),v.$attr_writer("caption"),v.$attr_accessor("content_model"),v.$attr_accessor("level"),v.$attr_accessor("numeral"),v.$attr_accessor("source_location"),v.$attr_accessor("style"),v.$attr_reader("subs"),$(v,"$initialize",(function e(t,r,$){var l=e.$$p||m,u=this;return e.$$p=null,null==$&&($=n([],{})),i(u,o(u,"initialize",e,!1,!0),"initialize",[t,r,$],l),u.content_model="compound",u.blocks=[],u.subs=[],u.id=u.title=u.caption=u.numeral=u.style=u.default_subs=u.source_location=m,s(r,"document")||s(r,"section")?(u.level=u.next_section_index=0,u.next_section_ordinal=1):a(x("AbstractBlock"),t)?u.level=t.$level():u.level=m}),-3),$(v,"$block?",l(!0)),$(v,"$inline?",l(!1)),$(v,"$file",(function(){var e;return u(e=this.source_location)?this.source_location.$file():e})),$(v,"$lineno",(function(){var e;return u(e=this.source_location)?this.source_location.$lineno():e})),$(v,"$convert",(function(){var e=this;return e.document.$playback_attributes(e.attributes),e.$converter().$convert(e)})),c(v,"render","convert"),$(v,"$content",(function(){return _(this.blocks,"map",[],(function(e){return null==e&&(e=m),e.$convert()})).$join(x("LF"))})),$(v,"$context=",(function(e){return this.node_name=(this.context=e).$to_s()})),$(v,"$<<",(function(e){var t=this;return s(e.$parent(),t)||e["$parent="](t),t.blocks["$<<"](e),t})),c(v,"append","<<"),$(v,"$blocks?",(function(){return!u(this.blocks["$empty?"]())})),$(v,"$sections?",l(!1)),$(v,"$number",(function(){var t=this;try{return t.$Integer(t.numeral)}catch(r){if(!e.rescue(r,[x("StandardError")]))throw r;try{return t.numeral}finally{e.pop_exception()}}})),$(v,"$number=",(function(e){return this.numeral=e.$to_s()})),$(v,"$find_by",(function t(r){var i=t.$$p||m,o=m;t.$$p=null,null==r&&(r=n([],{}));try{return _(this,"find_by_internal",[r,o=[]],i.$to_proc())}catch(t){if(!e.rescue(t,[g("StopIteration")]))throw t;try{return o}finally{e.pop_exception()}}}),-1),c(v,"query","find_by"),$(v,"$next_adjacent_block",(function(){var e=this,t=m,r=m;return s(e.context,"document")?m:s((t=e.parent).$context(),"dlist")&&s(e.context,"list_item")?u(r=t.$items()["$[]"](d(_(t.$items(),"find_index",[],(function e(t,r){var n,i=null==e.$$s?this:e.$$s;return null==t&&(t=m),null==r&&(r=m),u(n=t["$include?"](i))?n:r["$=="](i)}),{$$s:e}),1)))?r:t.$next_adjacent_block():u(r=t.$blocks()["$[]"](d(t.$blocks().$find_index(e),1)))?r:t.$next_adjacent_block()})),$(v,"$sections",(function(){return _(this.blocks,"select",[],(function(e){return null==e&&(e=m),e.$context()["$=="]("section")}))})),$(v,"$alt",(function(){var e=this,t=m;return u(t=e.attributes["$[]"]("alt"))?s(t,e.attributes["$[]"]("default-alt"))?e.$sub_specialchars(t):(t=e.$sub_specialchars(t),u(x("ReplaceableTextRx")["$match?"](t))?e.$sub_replacements(t):t):""})),$(v,"$caption",(function(){var e=this;return s(e.context,"admonition")?e.attributes["$[]"]("textlabel"):e.caption})),$(v,"$captioned_title",(function(){return""+this.caption+this.$title()})),$(v,"$list_marker_keyword",(function(e){var t;return null==e&&(e=m),x("ORDERED_LIST_KEYWORDS")["$[]"](u(t=e)?t:this.style)}),-1),$(v,"$title",(function(){var e,t=this,r=m;return t.converted_title=u(e=t.converted_title)?e:u(r=t.title)?t.$apply_title_subs(t.title):r})),$(v,"$title?",(function(){return!!u(this.title)})),$(v,"$title=",(function(e){return this.converted_title=m,this.title=e})),$(v,"$sub?",(function(e){return this.subs["$include?"](e)})),$(v,"$remove_sub",(function(e){return this.subs.$delete(e),m})),$(v,"$xreftext",(function(e){var t=this,r=m,n=m,i=m,o=m;if(null==e&&(e=m),u(r=t.$reftext())&&p(r["$empty?"]()))return r;if(!(u(e)&&u(t.title)&&p(t.caption["$nil_or_empty?"]())))return t.$title();switch(e){case"full":return n=t.$sub_placeholder(t.$sub_quotes(u(t.document.$compat_mode())?"``%s''":'"`%s`"'),t.$title()),u(t.numeral)&&u(o=x("CAPTION_ATTRIBUTE_NAMES")["$[]"](t.context))&&u(i=t.document.$attributes()["$[]"](o))?i+" "+t.numeral+", "+n:t.caption.$chomp(". ")+", "+n;case"short":return u(t.numeral)&&u(o=x("CAPTION_ATTRIBUTE_NAMES")["$[]"](t.context))&&u(i=t.document.$attributes()["$[]"](o))?i+" "+t.numeral:t.caption.$chomp(". ");default:return t.$title()}}),-1),$(v,"$assign_caption",(function(e,t){var r=this,n=m,i=m,o=m;return null==t&&(t=r.context),u(r.caption)||p(r.title)||u(r.caption=u(n=e)?n:r.document.$attributes()["$[]"]("caption"))?m:u(o=x("CAPTION_ATTRIBUTE_NAMES")["$[]"](t))&&u(i=r.document.$attributes()["$[]"](o))?(r.caption=i+" "+(r.numeral=r.document.$increment_and_store_counter(t+"-number",r))+". ",m):m}),-2),$(v,"$assign_numeral",(function(e){var t,r,n=this,i=m,o=m;return n.next_section_index=d((t=[n.next_section_index],_(e,"index=",t),t[t.length-1]),1),u(r=e.$numbered())&&(s(i=e.$sectname(),"appendix")?(e["$numeral="](n.document.$counter("appendix-number","A")),e["$caption="](u(o=n.document.$attributes()["$[]"]("appendix-caption"))?o+" "+e.$numeral()+": ":e.$numeral()+". ")):s(i,"chapter")||s(r,"chapter")?e["$numeral="](n.document.$counter("chapter-number",1).$to_s()):(e["$numeral="](s(i,"part")?x("Helpers").$int_to_roman(n.next_section_ordinal):n.next_section_ordinal.$to_s()),n.next_section_ordinal=d(n.next_section_ordinal,1))),m})),$(v,"$reindex_sections",(function(){var e=this;return e.next_section_index=0,e.next_section_ordinal=1,_(e.blocks,"each",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=m),s(t.$context(),"section")?(r.$assign_numeral(t),t.$reindex_sections()):m}),{$$s:e})})),v.$protected(),$(v,"$find_by_internal",(function t(r,i){var o,a,$=t.$$p||m,l=this,c=m,f=m,b=m,v=m;if(t.$$p=null,null==r&&(r=n([],{})),null==i&&(i=[]),(u(o=!u(a=r["$[]"]("context"))||m)||s(a,l.context))&&(p(b=r["$[]"]("style"))||s(b,l.style))&&(p(f=r["$[]"]("role"))||u(l["$has_role?"](f)))&&(p(c=r["$[]"]("id"))||s(c,l.id)))if($!==m)if(u(v=e.yield1($,l)))switch(v){case"prune":return i["$<<"](l),u(c)&&l.$raise(g("StopIteration")),i;case"reject":return u(c)&&l.$raise(g("StopIteration")),i;case"stop":l.$raise(g("StopIteration"));break;default:i["$<<"](l),u(c)&&l.$raise(g("StopIteration"))}else u(c)&&l.$raise(g("StopIteration"));else i["$<<"](l),u(c)&&l.$raise(g("StopIteration"));switch(l.context){case"document":s(a,"document")||(u(l["$header?"]())&&(u(o)||s(a,"section"))&&_(l.header,"find_by_internal",[r,i],$.$to_proc()),_(l.blocks,"each",[],(function(e){return null==e&&(e=m),s(a,"section")&&h(e.$context(),"section")?m:_(e,"find_by_internal",[r,i],$.$to_proc())})));break;case"dlist":(u(o)||h(a,"section"))&&_(l.blocks.$flatten(),"each",[],(function(e){return null==e&&(e=m),u(e)?_(e,"find_by_internal",[r,i],$.$to_proc()):m}));break;case"table":u(r["$[]"]("traverse_documents"))?(_(l.$rows().$head(),"each",[],(function(e){return null==e&&(e=m),_(e,"each",[],(function(e){return null==e&&(e=m),_(e,"find_by_internal",[r,i],$.$to_proc())}))})),s(a,"inner_document")&&(r=r.$merge(n(["context"],{context:"document"}))),_(d(l.$rows().$body(),l.$rows().$foot()),"each",[],(function(e){return null==e&&(e=m),_(e,"each",[],(function(e){return null==e&&(e=m),_(e,"find_by_internal",[r,i],$.$to_proc()),s(e.$style(),"asciidoc")?_(e.$inner_document(),"find_by_internal",[r,i],$.$to_proc()):m}))}))):_(d(d(l.$rows().$head(),l.$rows().$body()),l.$rows().$foot()),"each",[],(function(e){return null==e&&(e=m),_(e,"each",[],(function(e){return null==e&&(e=m),_(e,"find_by_internal",[r,i],$.$to_proc())}))}));break;default:_(l.blocks,"each",[],(function(e){return null==e&&(e=m),s(a,"section")&&h(e.$context(),"section")?m:_(e,"find_by_internal",[r,i],$.$to_proc())}))}return i}),-1)}(v[0],y("AbstractNode"),v)}(f[0],f)},Opal.modules["asciidoctor/attribute_list"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.hash,o=e.regexp,s=e.hash2,a=e.def,$=e.truthy,l=e.rb_plus,u=e.send,c=e.defs,_=e.eqeqeq,d=e.eqeq,p=e.rb_times,h=[],f=e.nil,m=e.$$$;return e.add_stubs("new,[],update,parse,parse_attribute,eos?,skip_delimiter,+,rekey,each_with_index,[]=,private,skip_blank,===,peek,parse_attribute_value,get_byte,start_with?,scan_name,end_with?,rstrip,string,==,unscan,scan_to_delimiter,*,include?,delete,each,split,empty?,apply_subs,scan_to_quote,gsub,skip,scan"),function(h,g){var b=[t(h,"Asciidoctor")].concat(g);return function(t,h,g){var b=r(t,null,"AttributeList"),v=[b].concat(g),y=e.$r(v),x=b.$$prototype;return x.attributes=x.scanner=x.delimiter=x.block=x.delimiter_skip_pattern=x.delimiter_boundary_pattern=f,n(v[0],"APOS","'"),n(v[0],"BACKSLASH","\\"),n(v[0],"QUOT",'"'),n(v[0],"BoundaryRx",i(y("QUOT"),/.*?[^\\](?=")/,y("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),n(v[0],"EscapedQuotes",i(y("QUOT"),'\\"',y("APOS"),"\\'")),n(v[0],"NameRx",o([y("CG_WORD"),"[",y("CC_WORD"),"\\-.]*"])),n(v[0],"BlankRx",/[ \t]+/),n(v[0],"SkipRx",s([","],{",":/[ \t]*(,|$)/})),a(b,"$initialize",(function(e,t,r){var n=this;return null==t&&(t=f),null==r&&(r=","),n.scanner=m("StringScanner").$new(e),n.block=t,n.delimiter=r,n.delimiter_skip_pattern=y("SkipRx")["$[]"](r),n.delimiter_boundary_pattern=y("BoundaryRx")["$[]"](r),n.attributes=f}),-2),a(b,"$parse_into",(function(e,t){return null==t&&(t=[]),e.$update(this.$parse(t))}),-2),a(b,"$parse",(function(e){var t=this,r=f;if(null==e&&(e=[]),$(t.attributes))return t.attributes;for(t.attributes=s([],{}),r=0;$(t.$parse_attribute(r,e))&&!$(t.scanner["$eos?"]());)t.$skip_delimiter(),r=l(r,1);return t.attributes}),-1),a(b,"$rekey",(function(e){return y("AttributeList").$rekey(this.attributes,e)})),c(b,"$rekey",(function(e,t){return u(t,"each_with_index",[],(function(t,r){var n,i=f;return null==t&&(t=f),null==r&&(r=f),$(t)&&$(i=e["$[]"](l(r,1)))?(u(e,"[]=",n=[t,i]),n[n.length-1]):f})),e})),b.$private(),a(b,"$parse_attribute",(function(e,t){var r,n=this,i=f,o=f,s=f,a=f,c=f,h=f,m=f,g=f,b=f;if(i=!0,n.$skip_blank(),_(y("QUOT"),r=n.scanner.$peek(1)))o=n.$parse_attribute_value(n.scanner.$get_byte());else if(_(y("APOS"),r))o=n.$parse_attribute_value(n.scanner.$get_byte()),$(o["$start_with?"](y("APOS")))||(s=!0);else if(a=$(c=$(h=o=n.$scan_name())?n.$skip_blank():h)?c:0,$(n.scanner["$eos?"]())){if(!$(o)&&!$(n.scanner.$string().$rstrip()["$end_with?"](n.delimiter)))return f;i=f}else if(d(m=n.scanner.$get_byte(),n.delimiter))n.scanner.$unscan();else if($(o))if(d(m,"=")){if(n.$skip_blank(),_(y("QUOT"),c=m=n.scanner.$get_byte()))g=n.$parse_attribute_value(m);else if(_(y("APOS"),c))g=n.$parse_attribute_value(m),$(g["$start_with?"](y("APOS")))||(s=!0);else if(_(n.delimiter,c))g="",n.scanner.$unscan();else if(_(f,c))g="";else if(g=""+m+n.$scan_to_delimiter(),d(g,"None"))return!0}else o=""+o+p(" ",a)+m+n.$scan_to_delimiter();else o=""+m+n.$scan_to_delimiter();if($(g))switch(o){case"options":case"opts":$(g["$include?"](","))?($(g["$include?"](" "))&&(g=g.$delete(" ")),u(g.$split(","),"each",[],(function e(t){var r,n=null==e.$$s?this:e.$$s;return null==n.attributes&&(n.attributes=f),null==t&&(t=f),$(t["$empty?"]())?f:(r=[t+"-option",""],u(n.attributes,"[]=",r),r[r.length-1])}),{$$s:n})):$(g["$empty?"]())||n.attributes["$[]="](g+"-option","");break;default:if($(s)&&$(n.block))switch(o){case"title":case"reftext":n.attributes["$[]="](o,g);break;default:n.attributes["$[]="](o,n.block.$apply_subs(g))}else n.attributes["$[]="](o,g)}else $(s)&&$(n.block)&&(o=n.block.$apply_subs(o)),$(b=t["$[]"](e))&&$(o)&&n.attributes["$[]="](b,o),n.attributes["$[]="](l(e,1),o);return i})),a(b,"$parse_attribute_value",(function(e){var t=this,r=f;return d(t.scanner.$peek(1),e)?(t.scanner.$get_byte(),""):$(r=t.$scan_to_quote(e))?(t.scanner.$get_byte(),$(r["$include?"](y("BACKSLASH")))?r.$gsub(y("EscapedQuotes")["$[]"](e),e):r):""+e+t.$scan_to_delimiter()})),a(b,"$skip_blank",(function(){return this.scanner.$skip(y("BlankRx"))})),a(b,"$skip_delimiter",(function(){return this.scanner.$skip(this.delimiter_skip_pattern)})),a(b,"$scan_name",(function(){return this.scanner.$scan(y("NameRx"))})),a(b,"$scan_to_delimiter",(function(){return this.scanner.$scan(this.delimiter_boundary_pattern)})),a(b,"$scan_to_quote",(function(e){return this.scanner.$scan(y("BoundaryRx")["$[]"](e))}))}(b[0],0,b)}(h[0],h)},Opal.modules["asciidoctor/block"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.hash2,o=e.alias,s=e.send2,a=e.find_super,$=e.truthy,l=e.eqeqeq,u=e.def,c=e.rb_lt,_=e.eqeq,d=[],p=e.nil,h=e.$$$;return e.add_stubs("default=,context,attr_accessor,[],key?,===,drop,delete,[]=,to_s,commit_subs,nil_or_empty?,prepare_source_string,apply_subs,join,<,size,empty?,rstrip,shift,pop,==,warn,logger,class,object_id,inspect"),function(d,f){var m=[t(d,"Asciidoctor")].concat(f),g=e.$r(m);return function(t,d,f){var m=r(t,d,"Block"),g=[m].concat(f),b=e.$r(g),v=m.$$prototype;return v.attributes=v.content_model=v.lines=v.subs=v.blocks=v.context=v.style=p,n(g[0],"DEFAULT_CONTENT_MODEL",i(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"}))["$default="]("simple"),o(m,"blockname","context"),m.$attr_accessor("lines"),u(m,"$initialize",(function e(t,r,n){var o=e.$$p||p,u=this,c=p,_=p,d=p;return e.$$p=null,null==n&&(n=i([],{})),s(u,a(u,"initialize",e,!1,!0),"initialize",[t,r,n],o),u.content_model=$(c=n["$[]"]("content_model"))?c:b("DEFAULT_CONTENT_MODEL")["$[]"](r),$(n["$key?"]("subs"))?$(_=n["$[]"]("subs"))?(l("default",c=_)?u.default_subs=n["$[]"]("default_subs"):l(h("Array"),c)?(u.default_subs=_.$drop(0),u.attributes.$delete("subs")):(u.default_subs=p,u.attributes["$[]="]("subs",_.$to_s())),u.$commit_subs()):(u.default_subs=[],u.attributes.$delete("subs")):u.default_subs=p,$((d=n["$[]"]("source"))["$nil_or_empty?"]())?u.lines=[]:l(h("String"),d)?u.lines=b("Helpers").$prepare_source_string(d):u.lines=d.$drop(0)}),-3),u(m,"$content",(function e(){var t=e.$$p||p,r=this,n=p,i=p,o=p,l=p;switch(e.$$p=null,r.content_model){case"compound":return s(r,a(r,"content",e,!1,!0),"content",[],t);case"simple":return r.$apply_subs(r.lines.$join(b("LF")),r.subs);case"verbatim":case"raw":if(n=r.$apply_subs(r.lines,r.subs),$(c(n.$size(),2)))return n["$[]"](0);for(;$($(i=o=n["$[]"](0))?o.$rstrip()["$empty?"]():i);)n.$shift();for(;$($(i=l=n["$[]"](-1))?l.$rstrip()["$empty?"]():i);)n.$pop();return n.$join(b("LF"));default:return _(r.content_model,"empty")||r.$logger().$warn("unknown content model '"+r.content_model+"' for block: "+r),p}})),u(m,"$source",(function(){return this.lines.$join(b("LF"))})),u(m,"$to_s",(function(){var e,t=this;return e=_(t.content_model,"compound")?"blocks: "+t.blocks.$size():"lines: "+t.lines.$size(),"#<"+t.$class()+"@"+t.$object_id()+" {context: "+t.context.$inspect()+", content_model: "+t.content_model.$inspect()+", style: "+t.style.$inspect()+", "+e+"}>"}))}(m[0],g("AbstractBlock"),m)}(d[0],d)},Opal.modules["asciidoctor/callouts"]=function(e){var t,r=e.module,n=e.klass,i=e.def,o=e.hash2,s=e.rb_plus,a=e.truthy,$=e.rb_le,l=e.rb_minus,u=e.send,c=e.eqeq,_=e.rb_lt,d=[],p=e.nil;return e.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),t=d,function(e,t){var r=n(e,null,"Callouts"),d=r.$$prototype;return d.co_index=d.lists=d.list_index=p,i(r,"$initialize",(function(){var e=this;return e.lists=[],e.list_index=0,e.$next_list()})),i(r,"$register",(function(e){var t,r=this;return r.$current_list()["$<<"](o(["ordinal","id"],{ordinal:e.$to_i(),id:t=r.$generate_next_callout_id()})),r.co_index=s(r.co_index,1),t})),i(r,"$read_next_id",(function(){var e=this,t=p,r=p;return t=p,r=e.$current_list(),a($(e.co_index,r.$size()))&&(t=r["$[]"](l(e.co_index,1))["$[]"]("id")),e.co_index=s(e.co_index,1),t})),i(r,"$callout_ids",(function(e){return u(this.$current_list(),"map",[],(function(t){return null==t&&(t=p),c(t["$[]"]("ordinal"),e)?t["$[]"]("id")+" ":""})).$join().$chop()})),i(r,"$current_list",(function(){return this.lists["$[]"](l(this.list_index,1))})),i(r,"$next_list",(function(){var e=this;return e.list_index=s(e.list_index,1),a(_(e.lists.$size(),e.list_index))&&e.lists["$<<"]([]),e.co_index=1,p})),i(r,"$rewind",(function(){return this.list_index=1,this.co_index=1,p})),r.$private(),i(r,"$generate_next_callout_id",(function(){var e=this;return e.$generate_callout_id(e.list_index,e.co_index)})),i(r,"$generate_callout_id",(function(e,t){return"CO"+e+"-"+t}))}([r(d[0],"Asciidoctor")].concat(t)[0])},Opal.modules["asciidoctor/converter/composite"]=function(e){var t=e.module,r=e.klass,n=e.slice,i=e.extract_kwargs,o=e.ensure_kwargs,s=e.send,a=e.truthy,$=e.def,l=e.thrower,u=[],c=e.nil,_=e.$$$;return e.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(u,d){var p=[t(u,"Asciidoctor")].concat(d),h=e.$r(p);return function(e,t){var u=r(e,t,"CompositeConverter"),d=u.$$prototype;return d.converter_cache=d.converters=c,u.$attr_reader("converters"),$(u,"$initialize",(function(e,t,r){var $,l,u,d,p=this;return $=n(arguments,1),l=i($),u=$,null==(d=(l=o(l)).$$smap.backend_traits_source)&&(d=c),p.backend=e,s(p.converters=u,"each",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=c),a(t["$respond_to?"]("composed"))?t.$composed(r):c}),{$$s:p}),a(d)&&p.$init_backend_traits(d.$backend_traits()),p.converter_cache=s(_("Hash"),"new",[],(function e(t,r){var n;return null==t&&(t=c),null==r&&(r=c),n=[r,(null==e.$$s?this:e.$$s).$find_converter(r)],s(t,"[]=",n),n[n.length-1]}),{$$s:p})}),-2),$(u,"$convert",(function(e,t,r){var n;return null==t&&(t=c),null==r&&(r=c),this.$converter_for(t=a(n=t)?n:e.$node_name()).$convert(e,t,r)}),-2),$(u,"$converter_for",(function(e){return this.converter_cache["$[]"](e)})),$(u,"$find_converter",(function(e){try{var t=l("return");return s(this.converters,"each",[],(function(r){if(null==r&&(r=c),!a(r["$handles?"](e)))return c;t.$throw(r)}),{$$ret:t}),this.$raise("Could not find a converter to handle transform: "+e)}catch(e){if(e===t)return e.$v;throw e}}))}(h("Converter"),_(h("Converter"),"Base"))}(u[0],u)},Opal.modules["asciidoctor/converter"]=function(e){var t=e.module,r=e.hash2,n=e.def,i=e.return_val,o=e.truthy,s=e.eqeq,a=e.defs,$=e.send,l=e.alias,u=e.slice,c=e.to_a,_=e.extract_kwargs,d=e.ensure_kwargs,p=e.eqeqeq,h=e.Class,f=e.klass,m=e.class_variable_set,g=e.class_variable_get,b=e.rb_plus,v=e.gvars,y=[],x=e.nil,k=e.$$$;return e.add_stubs("autoload,attr_reader,raise,class,[],sub,slice,length,==,[]=,backend_traits,derive_backend_traits,register,map,to_s,new,create,default,each,default=,registry,for,===,supports_templates?,merge,private,include,delete,clear,send,extend,private_class_method,node_name,+,name,receiver,warn,logger,respond_to?,content"),function(y,w){var A=[t(y,"Asciidoctor")].concat(w);return function(y,w){var A=t(y,"Converter"),E=[A].concat(w),S=e.$r(E);return A.$autoload("CompositeConverter","asciidoctor/converter/composite"),A.$attr_reader("backend"),n(A,"$initialize",(function(e,t){return null==t&&(t=r([],{})),this.backend=e}),-2),n(A,"$convert",(function(e,t,r){var n=this;return null==n.backend&&(n.backend=x),n.$raise(k("NotImplementedError"),n.$class()+" (backend: "+n.backend+") must implement the #convert method")}),-2),n(A,"$handles?",i(!0)),a(A,"$derive_backend_traits",(function(e,t){var n,i=x,a=x;return null==t&&(t=x),o(e)?(o(i=S("DEFAULT_EXTENSIONS")["$[]"](t=o(n=t)?n:e.$sub(S("TrailingDigitsRx"),"")))?a=i.$slice(1,i.$length()):i="."+(a=t),s(a,"html")?r(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:t,filetype:a,htmlsyntax:"html",outfilesuffix:i}):r(["basebackend","filetype","outfilesuffix"],{basebackend:t,filetype:a,outfilesuffix:i})):r([],{})}),-2),function(i,s){var u=t(i,"BackendTraits"),c=[u].concat(s),_=e.$r(c);n(u,"$basebackend",(function(e){var t;return null==e&&(e=x),o(e)?(t=["basebackend",e],$(this.$backend_traits(e),"[]=",t),t[t.length-1]):this.$backend_traits()["$[]"]("basebackend")}),-1),n(u,"$filetype",(function(e){var t;return null==e&&(e=x),o(e)?(t=["filetype",e],$(this.$backend_traits(),"[]=",t),t[t.length-1]):this.$backend_traits()["$[]"]("filetype")}),-1),n(u,"$htmlsyntax",(function(e){var t;return null==e&&(e=x),o(e)?(t=["htmlsyntax",e],$(this.$backend_traits(),"[]=",t),t[t.length-1]):this.$backend_traits()["$[]"]("htmlsyntax")}),-1),n(u,"$outfilesuffix",(function(e){var t;return null==e&&(e=x),o(e)?(t=["outfilesuffix",e],$(this.$backend_traits(),"[]=",t),t[t.length-1]):this.$backend_traits()["$[]"]("outfilesuffix")}),-1),n(u,"$supports_templates",(function(e){var t;return null==e&&(e=!0),t=["supports_templates",e],$(this.$backend_traits(),"[]=",t),t[t.length-1]}),-1),n(u,"$supports_templates?",(function(){return this.$backend_traits()["$[]"]("supports_templates")})),n(u,"$init_backend_traits",(function(e){var t;return null==e&&(e=x),this.backend_traits=o(t=e)?t:r([],{})}),-1),n(u,"$backend_traits",(function(e){var t,r=this;return null==r.backend_traits&&(r.backend_traits=x),null==r.backend&&(r.backend=x),null==e&&(e=x),r.backend_traits=o(t=r.backend_traits)?t:_("Converter").$derive_backend_traits(r.backend,e)}),-1),l(u,"backend_info","backend_traits"),a(u,"$derive_backend_traits",(function(e,t){return null==t&&(t=x),_("Converter").$derive_backend_traits(e,t)}),-2)}(E[0],E),function(r,i){var o=t(r,"Config"),s=[o].concat(i),a=e.$r(s);n(o,"$register_for",(function(e){var t,r=this;return t=u(arguments),$(a("Converter"),"register",[r].concat(c($(t,"map",[],(function(e){return null==e&&(e=x),e.$to_s()})))))}),-1)}(E[0],E),function(i,l){var c=t(i,"Factory"),f=[c].concat(l),m=e.$r(f);a(c,"$new",(function(e,t){var r,n,i,s;return r=u(arguments),n=_(r),n=d(n),r.length>0&&(i=r.shift()),null==i&&(i=x),null==(s=n.$$smap.proxy_default)&&(s=!0),o(s)?m("DefaultFactoryProxy").$new(i):m("CustomFactory").$new(i)}),-1),a(c,"$default",(function(e){return u(arguments),m("Converter")}),-1),a(c,"$create",(function(e,t){return null==t&&(t=r([],{})),this.$default().$create(e,t)}),-2),n(c,"$register",(function(e,t){var r;return r=u(arguments,1),$(r,"each",[],(function t(r){var n,i=null==t.$$s?this:t.$$s;return null==r&&(r=x),s(r,"*")?(n=[e],$(i.$registry(),"default=",n),n[n.length-1]):(n=[r,e],$(i.$registry(),"[]=",n),n[n.length-1])}),{$$s:this})}),-2),n(c,"$for",(function(e){return this.$registry()["$[]"](e)})),n(c,"$create",(function(e,t){var n=x,i=x,s=x;return null==t&&(t=r([],{})),o(n=this.$for(e))?(p(h,n)&&(n=n.$new(e,t)),o(i=t["$[]"]("template_dirs"))&&p(m("BackendTraits"),n)&&o(n["$supports_templates?"]())?m("CompositeConverter").$new(e,m("TemplateConverter").$new(e,i,t),n,r(["backend_traits_source"],{backend_traits_source:n})):n):o(i=t["$[]"]("template_dirs"))?o(s=t["$[]"]("delegate_backend"))&&o(n=this.$for(s))?(p(h,n)&&(n=n.$new(s,t)),m("CompositeConverter").$new(e,m("TemplateConverter").$new(e,i,t),n,r(["backend_traits_source"],{backend_traits_source:n}))):m("TemplateConverter").$new(e,i,t):x}),-2),n(c,"$converters",(function(){return this.$registry().$merge()})),c.$private(),n(c,"$registry",(function(){return this.$raise(k("NotImplementedError"),m("Factory")+" subclass "+this.$class()+" must implement the #registry method")}))}(E[0],E),function(t,i,s){var a=f(t,null,"CustomFactory"),l=[a].concat(s),u=e.$r(l);a.$include(u("Factory")),n(a,"$initialize",(function(e){return null==e&&(e=x),o(e)?(e["$default="](e.$delete("*")),this.registry=e):this.registry=r([],{})}),-1),n(a,"$unregister_all",(function(){var e;return e=[x],$(this.$registry().$clear(),"default=",e),e[e.length-1]})),a.$private(),a.$attr_reader("registry")}(E[0],0,E),function(i,o){var s=t(i,"DefaultFactory"),a=[s].concat(o),$=e.$r(a);s.$include($("Factory")),s.$private(),m(a[0],"@@registry",r([],{})),n(s,"$registry",(function(){return g(a[0],"@@registry",!1)}))}(E[0],E),function(t,r,n){var i=f(t,r,"DefaultFactoryProxy"),o=[i].concat(n),s=e.$r(o);i.$include(s("DefaultFactory"))}(E[0],S("CustomFactory"),E),a(A,"$included",(function(e){return e.$send("include",S("BackendTraits")),e.$extend(S("Config"))})),A.$private_class_method("included"),function(t,r,a){var $=f(t,null,"Base"),l=[$].concat(a),u=e.$r(l);$.$$prototype.backend=x,$.$include(u("Logging")),$.$include(u("Converter")),n($,"$convert",(function(t,r,n){var i=this,a=x;null==v["!"]&&(v["!"]=x),null==r&&(r=t.$node_name()),null==n&&(n=x);try{return o(n)?i.$send(b("convert_",r),t,n):i.$send(b("convert_",r),t)}catch(t){if(!e.rescue(t,[u("StandardError")]))throw t;try{return p(k("NoMethodError"),a=v["!"])&&s(a.$receiver(),i)&&s(a.$name().$to_s(),r)||i.$raise(),i.$logger().$warn("missing convert handler for "+a.$name()+" node in "+i.backend+" backend ("+i.$class()+")"),x}finally{e.pop_exception()}}}),-2),n($,"$handles?",(function(e){return this["$respond_to?"]("convert_"+e)})),n($,"$content_only",(function(e){return e.$content()})),n($,"$skip",i(x))}(E[0],0,E),A.$extend(S("DefaultFactory"))}(A[0],A)}(y[0],y)},Opal.modules["asciidoctor/document"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.send,o=e.alias,s=e.truthy,a=e.def,$=e.hash2,l=e.not,u=e.to_ary,c=e.return_ivar,_=e.send2,d=e.find_super,p=e.rb_minus,h=e.eqeq,f=e.eqeqeq,m=e.hash,g=e.rb_ge,b=e.rb_plus,v=e.neqeq,y=e.thrower,x=e.rb_gt,k=e.rb_lt,w=e.gvars,A=e.to_a,E=[],S=e.nil,C=e.$$$;return e.add_stubs("new,target,attr_reader,nil?,<<,[],[]=,main,include?,strip,squeeze,gsub,!,empty?,rpartition,attr_accessor,catalog,delete,base_dir,options,merge,instance_variable_get,attributes,safe,compat_mode,outfilesuffix,sourcemap,path_resolver,converter,extensions,syntax_highlighter,each,end_with?,start_with?,slice,-,length,chop,==,downcase,===,extname,value_for_name,key?,freeze,attribute_undefined,attribute_missing,update,&,keys,name_for_value,expand_path,pwd,to_s,>=,+,abs,to_i,delete_if,update_doctype_attributes,cursor,parse,restore_attributes,update_backend_attributes,fetch,fill_datetime_attributes,activate,groups,create,to_proc,preprocessors?,preprocessors,process_method,tree_processors?,tree_processors,!=,counter,nil_or_empty?,attribute_locked?,nextval,value,save_to,increment_and_store_counter,register,tap,xreftext,>,source,source_lines,doctitle,sectname=,title=,first_section,title,reftext,<,find,context,header?,assign_numeral,clear_playback_attributes,save_attributes,name,negate,rewind,replace,apply_attribute_value_subs,delete?,start,doctype,content_model,warn,logger,content,convert,postprocessors?,postprocessors,record,write,respond_to?,chomp,class,write_alternate_pages,map,split,resolve_docinfo_subs,normalize_system_path,read_asset,apply_subs,docinfo_processors?,join,concat,compact,docinfo_processors,object_id,inspect,size,private,=~,resolve_pass_subs,apply_header_subs,limit_bytesize,bytesize,valid_encoding?,byteslice,resolve_subs,utc,at,Integer,now,index,strftime,year,utc_offset,partition,create_converter,basebackend,filetype,htmlsyntax,derive_backend_traits,raise"),function(E,O){var R=[t(E,"Asciidoctor")].concat(O),I=e.$r(R);return function(t,E,O){var R=r(t,E,"Document"),I=[R].concat(O),T=e.$r(I),z=R.$$prototype;return z.attributes=z.safe=z.sourcemap=z.reader=z.base_dir=z.parsed=z.parent_document=z.extensions=z.options=z.counters=z.catalog=z.reftexts=z.next_section_index=z.header=z.blocks=z.header_attributes=z.attributes_modified=z.backend=z.attribute_overrides=z.timings=z.converter=z.outfilesuffix=z.docinfo_processor_extensions=z.document=z.max_attribute_value_size=z.id=z.doctype=S,n(I[0],"ImageReference",i(C("Struct"),"new",["target","imagesdir"],(function e(){return o(null==e.$$s?this:e.$$s,"to_s","target")}),{$$s:R})),n(I[0],"Footnote",C("Struct").$new("index","id","text")),function(e,t){var n=r(e,null,"AttributeEntry");n.$attr_reader("name","value","negate"),a(n,"$initialize",(function(e,t,r){var n=this;return null==r&&(r=S),n.name=e,n.value=t,n.negate=s(r["$nil?"]())?t["$nil?"]():r}),-3),a(n,"$save_to",(function(e){var t,r;return(s(r=e["$[]"]("attribute_entries"))?r:(t=["attribute_entries",[]],i(e,"[]=",t),t[t.length-1]))["$<<"](this),this}))}(I[0]),function(t,n,i){var _=r(t,null,"Title"),d=[_].concat(i),p=e.$r(d);_.$$prototype.subtitle=S,_.$attr_reader("main"),o(_,"title","main"),_.$attr_reader("subtitle"),_.$attr_reader("combined"),a(_,"$initialize",(function(e,t){var r,n,i,o=this,a=S;return null==t&&(t=$([],{})),s(o.sanitized=t["$[]"]("sanitize"))&&s(e["$include?"]("<"))&&(e=e.$gsub(p("XmlSanitizeRx"),"").$squeeze(" ").$strip()),s((a=s(i=t["$[]"]("separator"))?i:":")["$empty?"]())||l(e["$include?"](a+=" "))?(o.main=e,o.subtitle=S):(n=e.$rpartition(a),r=u(n),o.main=null==r[0]?S:r[0],null==r[1]||r[1],o.subtitle=null==r[2]?S:r[2]),o.combined=e}),-2),a(_,"$sanitized?",c("sanitized")),a(_,"$subtitle?",(function(){return!!s(this.subtitle)})),a(_,"$to_s",c("combined"))}(I[0],0,I),n(I[0],"Author",C("Struct").$new("name","firstname","middlename","lastname","initials","email")),R.$attr_reader("safe"),R.$attr_reader("compat_mode"),R.$attr_reader("backend"),R.$attr_reader("doctype"),R.$attr_accessor("sourcemap"),R.$attr_reader("catalog"),o(R,"references","catalog"),R.$attr_reader("counters"),R.$attr_reader("header"),R.$attr_reader("base_dir"),R.$attr_reader("options"),R.$attr_reader("outfilesuffix"),R.$attr_reader("parent_document"),R.$attr_reader("reader"),R.$attr_reader("path_resolver"),R.$attr_reader("converter"),R.$attr_reader("syntax_highlighter"),R.$attr_reader("extensions"),a(R,"$initialize",(function t(r,n){var o,a,u,c,v,y,x,k=this,w=S,A=S,E=S,O=S,R=S,I=S,z=S,F=S,N=S,L=S,D=S,q=S,B=S,M=S,j=S;return t.$$p=null,null==r&&(r=S),null==n&&(n=$([],{})),_(k,d(k,"initialize",t,!1,!0),"initialize",[k,"document"],null),s(w=n.$delete("parent"))?(k.parent_document=w,s(A=n["$[]"]("base_dir"))||n["$[]="]("base_dir",w.$base_dir()),s(w.$options()["$[]"]("catalog_assets"))&&n["$[]="]("catalog_assets",!0),s(w.$options()["$[]"]("to_dir"))&&n["$[]="]("to_dir",w.$options()["$[]"]("to_dir")),k.catalog=w.$catalog().$merge($(["footnotes"],{footnotes:[]})),k.attribute_overrides=E=w.$instance_variable_get("@attribute_overrides").$merge(w.$attributes()),E.$delete("compat-mode"),O=E.$delete("doctype"),E.$delete("notitle"),E.$delete("showtitle"),E.$delete("toc"),k.attributes["$[]="]("toc-placement",s(A=E.$delete("toc-placement"))?A:"auto"),E.$delete("toc-position"),k.safe=w.$safe(),s(k.compat_mode=w.$compat_mode())&&k.attributes["$[]="]("compat-mode",""),k.outfilesuffix=w.$outfilesuffix(),k.sourcemap=w.$sourcemap(),k.timings=S,k.path_resolver=w.$path_resolver(),k.converter=w.$converter(),R=S,k.extensions=w.$extensions(),k.syntax_highlighter=w.$syntax_highlighter()):(k.parent_document=S,k.catalog=$(["ids","refs","footnotes","links","images","callouts","includes"],{ids:$([],{}),refs:$([],{}),footnotes:[],links:[],images:[],callouts:T("Callouts").$new(),includes:$([],{})}),k.attribute_overrides=E=$([],{}),i(s(A=n["$[]"]("attributes"))?A:$([],{}),"each",[],(function(e,t){var r;return null==e&&(e=S),null==t&&(t=S),s(e["$end_with?"]("@"))?s(e["$start_with?"]("!"))?(r=[e.$slice(1,p(e.$length(),2)),!1],e=r[0],t=r[1]):s(e["$end_with?"]("!@"))?(r=[e.$slice(0,p(e.$length(),2)),!1],e=r[0],t=r[1]):(r=[e.$chop(),t+"@"],e=r[0],t=r[1]):s(e["$start_with?"]("!"))?(r=[e.$slice(1,e.$length()),!h(t,"@")&&S],e=r[0],t=r[1]):s(e["$end_with?"]("!"))&&(r=[e.$chop(),!h(t,"@")&&S],e=r[0],t=r[1]),r=[e.$downcase(),t],i(E,"[]=",r),r[r.length-1]})),f(C("String"),I=n["$[]"]("to_file"))&&E["$[]="]("outfilesuffix",T("Helpers").$extname(I)),l(z=n["$[]"]("safe"))?k.safe=C(T("SafeMode"),"SECURE"):f(C("Integer"),z)?k.safe=z:k.safe=function(){try{return T("SafeMode").$value_for_name(z)}catch(t){if(!e.rescue(t,[T("StandardError")]))throw t;try{return C(T("SafeMode"),"SECURE")}finally{e.pop_exception()}}}(),F=n.$delete("input_mtime"),k.compat_mode=E["$key?"]("compat-mode"),k.sourcemap=n["$[]"]("sourcemap"),k.timings=n.$delete("timings"),k.path_resolver=T("PathResolver").$new(),R=s((o=C("::","Asciidoctor","skip_raise"))&&C(o,"Extensions","skip_raise")?"constant":S)||s(n["$key?"]("extensions"))?C(C("Asciidoctor"),"Extensions"):S,k.extensions=S,s(n["$key?"]("header_footer"))&&l(n["$key?"]("standalone"))&&n["$[]="]("standalone",n["$[]"]("header_footer"))),k.parsed=k.reftexts=k.header=k.header_attributes=S,k.counters=$([],{}),k.attributes_modified=C("Set").$new(),k.docinfo_processor_extensions=$([],{}),v=n["$[]"]("standalone"),(k.options=n).$freeze(),N=k.attributes,s(w)||(N["$[]="]("attribute-undefined",T("Compliance").$attribute_undefined()),N["$[]="]("attribute-missing",T("Compliance").$attribute_missing()),N.$update(T("DEFAULT_ATTRIBUTES"))),s(v)?(E["$[]="]("embedded",S),N["$[]="]("copycss",""),N["$[]="]("iconfont-remote",""),N["$[]="]("stylesheet",""),N["$[]="]("webfonts","")):(E["$[]="]("embedded",""),s(E["$key?"]("showtitle"))&&h(E.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?E["$[]="]("notitle",m(S,"",!1,"@","@",!1)["$[]"](E["$[]"]("showtitle"))):s(E["$key?"]("notitle"))?E["$[]="]("showtitle",m(S,"",!1,"@","@",!1)["$[]"](E["$[]"]("notitle"))):N["$[]="]("notitle","")),E["$[]="]("asciidoctor",""),E["$[]="]("asciidoctor-version",C(C("Asciidoctor"),"VERSION")),E["$[]="]("safe-mode-name",y=T("SafeMode").$name_for_value(k.safe)),E["$[]="]("safe-mode-"+y,""),E["$[]="]("safe-mode-level",k.safe),s(A=E["$[]"]("max-include-depth"))||E["$[]="]("max-include-depth",64),s(A=E["$[]"]("allow-uri-read"))||E["$[]="]("allow-uri-read",S),s(E["$key?"]("numbered"))&&E["$[]="]("sectnums",E.$delete("numbered")),s(E["$key?"]("hardbreaks"))&&E["$[]="]("hardbreaks-option",E.$delete("hardbreaks")),s(x=n["$[]"]("base_dir"))?k.base_dir=(a=["docdir",C("File").$expand_path(x)],i(E,"[]=",a),a[a.length-1]):s(E["$[]"]("docdir"))?k.base_dir=E["$[]"]("docdir"):k.base_dir=(a=["docdir",C("Dir").$pwd()],i(E,"[]=",a),a[a.length-1]),s(L=n["$[]"]("backend"))&&E["$[]="]("backend",L.$to_s()),s(D=n["$[]"]("doctype"))&&E["$[]="]("doctype",D.$to_s()),s(g(k.safe,C(T("SafeMode"),"SERVER")))?(s(A=E["$[]"]("copycss"))||E["$[]="]("copycss",S),s(A=E["$[]"]("source-highlighter"))||E["$[]="]("source-highlighter",S),s(A=E["$[]"]("backend"))||E["$[]="]("backend",T("DEFAULT_BACKEND")),l(w)&&s(E["$key?"]("docfile"))&&E["$[]="]("docfile",E["$[]"]("docfile")["$[]"](e.Range.$new(b(E["$[]"]("docdir").$length(),1),-1,!1))),E["$[]="]("docdir",""),s(A=E["$[]"]("user-home"))||E["$[]="]("user-home","."),s(g(k.safe,C(T("SafeMode"),"SECURE")))&&(s(E["$key?"]("max-attribute-value-size"))||E["$[]="]("max-attribute-value-size",4096),s(E["$key?"]("linkcss"))||E["$[]="]("linkcss",""),s(A=E["$[]"]("icons"))||E["$[]="]("icons",S))):s(A=E["$[]"]("user-home"))||E["$[]="]("user-home",T("USER_HOME")),k.max_attribute_value_size=s(q=s(A=E["$[]"]("max-attribute-value-size"))?A:(i(E,"[]=",a=["max-attribute-value-size",S]),a[a.length-1]))?q.$to_i().$abs():S,i(E,"delete_if",[],(function(e,t){var r,n=S;return null==e&&(e=S),null==t&&(t=S),s(t)?(f(C("String"),t)&&s(t["$end_with?"]("@"))&&(r=[t.$chop(),!0],t=r[0],n=r[1]),N["$[]="](e,t)):(N.$delete(e),n=t["$=="](!1)),n})),s(w)?(k.backend=N["$[]"]("backend"),h(k.doctype=(i(N,"[]=",a=["doctype",O]),a[a.length-1]),T("DEFAULT_DOCTYPE"))||k.$update_doctype_attributes(T("DEFAULT_DOCTYPE")),k.reader=T("Reader").$new(r,n["$[]"]("cursor")),s(k.sourcemap)&&(k.source_location=k.reader.$cursor()),T("Parser").$parse(k.reader,k),k.$restore_attributes(),k.parsed=!0):(k.backend=S,h(B=s(A=N["$[]"]("backend"))?A:T("DEFAULT_BACKEND"),"manpage")?k.doctype=(a=["doctype",(u=["doctype","manpage"],i(E,"[]=",u),u[u.length-1])],i(N,"[]=",a),a[a.length-1]):k.doctype=s(A=N["$[]"]("doctype"))?A:(a=["doctype",T("DEFAULT_DOCTYPE")],i(N,"[]=",a),a[a.length-1]),k.$update_backend_attributes(B,!0),s(A=N["$[]"]("stylesdir"))||N["$[]="]("stylesdir","."),s(A=N["$[]"]("iconsdir"))||N["$[]="]("iconsdir",N.$fetch("imagesdir","./images")+"/icons"),k.$fill_datetime_attributes(N,F),s(R)&&(s(M=n["$[]"]("extension_registry"))?(f(C(T("Extensions"),"Registry"),M)||s((c=C("::","AsciidoctorJ","skip_raise"))&&(u=C(c,"Extensions","skip_raise"))&&(a=C(u,"ExtensionRegistry","skip_raise"))?"constant":S)&&f(C(C(C("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),M))&&(k.extensions=M.$activate(k)):s((j=n["$[]"]("extensions"))["$nil?"]())?s(T("Extensions").$groups()["$empty?"]())||(k.extensions=C(T("Extensions"),"Registry").$new().$activate(k)):f(C("Proc"),j)&&(k.extensions=i(T("Extensions"),"create",[],j.$to_proc()).$activate(k))),k.reader=T("PreprocessorReader").$new(k,r,C(T("Reader"),"Cursor").$new(N["$[]"]("docfile"),k.base_dir),$(["normalize"],{normalize:!0})),s(k.sourcemap)?k.source_location=k.reader.$cursor():S)}),-1),a(R,"$parse",(function(e){var t=this,r=S,n=S;return null==e&&(e=S),s(t.parsed)?t:(r=t,s(e)&&(t.reader=T("PreprocessorReader").$new(r,e,C(T("Reader"),"Cursor").$new(t.attributes["$[]"]("docfile"),t.base_dir),$(["normalize"],{normalize:!0})),s(t.sourcemap)&&(t.source_location=t.reader.$cursor())),s(n=s(t.parent_document)?S:t.extensions)&&s(n["$preprocessors?"]())&&i(n.$preprocessors(),"each",[],(function e(t){var n,i=null==e.$$s?this:e.$$s;return null==i.reader&&(i.reader=S),null==t&&(t=S),i.reader=s(n=t.$process_method()["$[]"](r,i.reader))?n:i.reader}),{$$s:t}),T("Parser").$parse(t.reader,r,$(["header_only"],{header_only:t.options["$[]"]("parse_header_only")})),t.$restore_attributes(),s(n)&&s(n["$tree_processors?"]())&&i(n.$tree_processors(),"each",[],(function(e){var t;return null==e&&(e=S),s(t=e.$process_method()["$[]"](r))&&f(T("Document"),t)&&v(t,r)?r=t:S})),t.parsed=!0,r)}),-1),a(R,"$parsed?",c("parsed")),a(R,"$counter",(function(e,t){var r,n,o=this,a=S,$=S;return null==t&&(t=S),s(o.parent_document)?o.parent_document.$counter(e,t):(s(n=o["$attribute_locked?"](e))&&s(a=o.counters["$[]"](e))||l((a=o.attributes["$[]"](e))["$nil_or_empty?"]())?(r=[e,T("Helpers").$nextval(a)],i(o.counters,"[]=",r),$=r[r.length-1]):s(t)?(r=[e,h(t,t.$to_i().$to_s())?t.$to_i():t],i(o.counters,"[]=",r),$=r[r.length-1]):(r=[e,1],i(o.counters,"[]=",r),$=r[r.length-1]),s(n)||o.attributes["$[]="](e,$),$)}),-2),a(R,"$increment_and_store_counter",(function(e,t){return T("AttributeEntry").$new(e,this.$counter(e)).$save_to(t.$attributes()).$value()})),o(R,"counter_increment","increment_and_store_counter"),a(R,"$register",(function(e,t){var r=this,n=S,i=S,o=S;switch(e){case"ids":return r.$register("refs",[n=t["$[]"](0),T("Inline").$new(r,"anchor",t["$[]"](1),$(["type","id"],{type:"ref",id:n}))]);case"refs":return i=r.catalog["$[]"]("refs"),s(i["$[]"](t["$[]"](0)))||i["$[]="](t["$[]"](0),o=t["$[]"](1)),o;case"footnotes":return r.catalog["$[]"](e)["$<<"](t);default:return s(r.options["$[]"]("catalog_assets"))?r.catalog["$[]"](e)["$<<"](h(e,"images")?T("ImageReference").$new(t,r.attributes["$[]"]("imagesdir")):t):S}})),a(R,"$resolve_id",(function(e){var t=this,r=S,n=S;return s(t.reftexts)?t.reftexts["$[]"](e):s(t.parsed)?i(t.reftexts=$([],{}),"tap",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.catalog&&(r.catalog=S),null==t&&(t=S),i(r.catalog["$[]"]("refs"),"each",[],(function(e,r){var n,o;return null==e&&(e=S),null==r&&(r=S),s(o=t["$[]"](r.$xreftext()))?o:(n=[r.$xreftext(),e],i(t,"[]=",n),n[n.length-1])}))}),{$$s:t})["$[]"](e):(r=S,t.reftexts=n=$([],{}),function(){try{var o=y("break");i(t.catalog["$[]"]("refs"),"each",[],(function(t,a){var $,l,u;return null==t&&(t=S),null==a&&(a=S),h(l=a.$xreftext(),e)&&(r=t,o.$throw()),s(u=n["$[]"](l))?u:(i(n,"[]=",$=[l,t]),$[$.length-1])}))}catch(e){if(e===o)return e.$v;throw e}}(),t.reftexts=S,r)})),a(R,"$sections?",(function(){return x(this.next_section_index,0)})),a(R,"$footnotes?",(function(){return!s(this.catalog["$[]"]("footnotes")["$empty?"]())})),a(R,"$footnotes",(function(){return this.catalog["$[]"]("footnotes")})),a(R,"$callouts",(function(){return this.catalog["$[]"]("callouts")})),a(R,"$nested?",(function(){return!!s(this.parent_document)})),a(R,"$embedded?",(function(){return this.attributes["$key?"]("embedded")})),a(R,"$extensions?",(function(){return!!s(this.extensions)})),a(R,"$source",(function(){return s(this.reader)?this.reader.$source():S})),a(R,"$source_lines",(function(){return s(this.reader)?this.reader.$source_lines():S})),a(R,"$basebackend?",(function(e){return this.attributes["$[]"]("basebackend")["$=="](e)})),a(R,"$title",(function(){return this.$doctitle()})),a(R,"$title=",(function(e){var t,r=this,n=S;return s(n=r.header)||(n=r.header=T("Section").$new(r,0))["$sectname="]("header"),i(n,"title=",t=[e]),t[t.length-1]})),a(R,"$doctitle",(function(e){var t,r=this,n=S,i=S,o=S;if(null==e&&(e=$([],{})),!s(n=r.attributes["$[]"]("title")))if(s(i=r.$first_section()))n=i.$title();else if(l(s(o=e["$[]"]("use_fallback"))?n=r.attributes["$[]"]("untitled-label"):o))return S;return s(t=e["$[]"]("partition"))?T("Title").$new(n,e.$merge($(["separator"],{separator:h(t,!0)?r.attributes["$[]"]("title-separator"):t}))):s(e["$[]"]("sanitize"))&&s(n["$include?"]("<"))?n.$gsub(T("XmlSanitizeRx"),"").$squeeze(" ").$strip():n}),-1),o(R,"name","doctitle"),a(R,"$xreftext",(function(e){var t=S;return s(t=this.$reftext())&&l(t["$empty?"]())?t:this.$title()}),-1),a(R,"$author",(function(){return this.attributes["$[]"]("author")})),a(R,"$authors",(function(){var e=S,t=S,r=S,n=S,i=S;if(s((e=this.attributes)["$key?"]("author"))){if(t=[T("Author").$new(e["$[]"]("author"),e["$[]"]("firstname"),e["$[]"]("middlename"),e["$[]"]("lastname"),e["$[]"]("authorinitials"),e["$[]"]("email"))],s(x(r=s(n=e["$[]"]("authorcount"))?n:0,1)))for(i=1;s(k(i,r));)i=b(i,1),t["$<<"](T("Author").$new(e["$[]"]("author_"+i),e["$[]"]("firstname_"+i),e["$[]"]("middlename_"+i),e["$[]"]("lastname_"+i),e["$[]"]("authorinitials_"+i),e["$[]"]("email_"+i)));return t}return[]})),a(R,"$revdate",(function(){return this.attributes["$[]"]("revdate")})),a(R,"$notitle",(function(){return this.attributes["$key?"]("notitle")})),a(R,"$noheader",(function(){return this.attributes["$key?"]("noheader")})),a(R,"$nofooter",(function(){return this.attributes["$key?"]("nofooter")})),a(R,"$first_section",(function(){var e;return s(e=this.header)?e:i(this.blocks,"find",[],(function(e){return null==e&&(e=S),e.$context()["$=="]("section")}))})),a(R,"$header?",(function(){return!!s(this.header)})),o(R,"has_header?","header?"),a(R,"$<<",(function e(t){var r=e.$$p||S,n=this;return e.$$p=null,h(t.$context(),"section")&&n.$assign_numeral(t),_(n,d(n,"<<",e,!1,!0),"<<",[t],r)})),a(R,"$finalize_header",(function(e,t){return null==t&&(t=!0),this.$clear_playback_attributes(e),this.$save_attributes(),s(t)||e["$[]="]("invalid-header",!0),e}),-2),a(R,"$playback_attributes",(function(e){return s(e["$key?"]("attribute_entries"))?i(e["$[]"]("attribute_entries"),"each",[],(function e(t){var r,n=null==e.$$s?this:e.$$s;return null==n.attributes&&(n.attributes=S),null==t&&(t=S),r=t.$name(),s(t.$negate())?(n.attributes.$delete(r),h(r,"compat-mode")?n.compat_mode=!1:S):(n.attributes["$[]="](r,t.$value()),h(r,"compat-mode")?n.compat_mode=!0:S)}),{$$s:this}):S})),a(R,"$restore_attributes",(function(){var e=this;return s(e.parent_document)||e.catalog["$[]"]("callouts").$rewind(),e.attributes.$replace(e.header_attributes)})),a(R,"$set_attribute",(function(e,t){var r=this,n=S;if(null==t&&(t=""),s(r["$attribute_locked?"](e)))return S;if(s(t["$empty?"]())||(t=r.$apply_attribute_value_subs(t)),s(r.header_attributes))r.attributes["$[]="](e,t);else{switch(e){case"backend":r.$update_backend_attributes(t,s(n=r.attributes_modified["$delete?"]("htmlsyntax"))?t["$=="](r.backend):n);break;case"doctype":r.$update_doctype_attributes(t);break;default:r.attributes["$[]="](e,t)}r.attributes_modified["$<<"](e)}return t}),-2),a(R,"$delete_attribute",(function(e){var t=this;return!s(t["$attribute_locked?"](e))&&(t.attributes.$delete(e),t.attributes_modified["$<<"](e),!0)})),a(R,"$attribute_locked?",(function(e){return this.attribute_overrides["$key?"](e)})),a(R,"$set_header_attribute",(function(e,t,r){var n,i=S;return null==t&&(t=""),null==r&&(r=!0),i=s(n=this.header_attributes)?n:this.attributes,(!h(r,!1)||!s(i["$key?"](e)))&&(i["$[]="](e,t),!0)}),-2),a(R,"$convert",(function(e){var t,r=this,n=S,o=S,a=S,l=S,u=S;return null==e&&(e=$([],{})),s(r.timings)&&r.timings.$start("convert"),s(r.parsed)||r.$parse(),s(g(r.safe,C(T("SafeMode"),"SERVER")))||s(e["$empty?"]())||(s((t=["outfile",e["$[]"]("outfile")],i(r.attributes,"[]=",t),t[t.length-1]))||r.attributes.$delete("outfile"),s((t=["outdir",e["$[]"]("outdir")],i(r.attributes,"[]=",t),t[t.length-1]))||r.attributes.$delete("outdir")),h(r.$doctype(),"inline")?s(n=s(o=r.blocks["$[]"](0))?o:r.header)&&(h(n.$content_model(),"compound")||h(n.$content_model(),"empty")?r.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):a=n.$content()):(l=s(e["$key?"]("standalone"))?s(e["$[]"]("standalone"))?"document":"embedded":s(e["$key?"]("header_footer"))?s(e["$[]"]("header_footer"))?"document":"embedded":s(r.options["$[]"]("standalone"))?"document":"embedded",a=r.converter.$convert(r,l)),s(r.parent_document)||s(u=r.extensions)&&s(u["$postprocessors?"]())&&i(u.$postprocessors(),"each",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=S),a=t.$process_method()["$[]"](r,a)}),{$$s:r}),s(r.timings)&&r.timings.$record("convert"),a}),-1),o(R,"render","convert"),a(R,"$write",(function(e,t){var r=this;return s(r.timings)&&r.timings.$start("write"),f(T("Writer"),r.converter)?r.converter.$write(e,t):(s(t["$respond_to?"]("write"))?s(e["$nil_or_empty?"]())||(t.$write(e.$chomp()),t.$write(T("LF"))):C("File").$write(t,e,$(["mode"],{mode:T("FILE_WRITE_MODE")})),h(r.backend,"manpage")&&f(C("String"),t)&&s(r.converter.$class()["$respond_to?"]("write_alternate_pages"))&&r.converter.$class().$write_alternate_pages(r.attributes["$[]"]("mannames"),r.attributes["$[]"]("manvolnum"),t)),s(r.timings)&&r.timings.$record("write"),S})),a(R,"$content",(function e(){var t=e.$$p||S,r=this;return e.$$p=null,r.attributes.$delete("title"),_(r,d(r,"content",e,!1,!0),"content",[],t)})),a(R,"$docinfo",(function(e,t){var r,n=this,o=S,a=S,l=S,u=S,c=S,_=S,d=S,p=S,f=S,m=S;return null==e&&(e="head"),null==t&&(t=S),s(k(n.$safe(),C(T("SafeMode"),"SECURE")))&&(h(e,"head")||(o="-"+e),t=s(a=t)?a:n.outfilesuffix,l=s((l=n.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?s(n.attributes["$key?"]("docinfo2"))?["private","shared"]:s(n.attributes["$key?"]("docinfo1"))?["shared"]:s(l)?["private"]:S:i(l.$split(","),"map",[],(function(e){return null==e&&(e=S),e.$strip()})),s(l)&&(u=[],c=(r=["docinfo"+o+t,n.attributes["$[]"]("docinfodir"),n.$resolve_docinfo_subs()])[0],_=r[1],d=r[2],s(l["$&"](["shared","shared-"+e])["$empty?"]())||(p=n.$normalize_system_path(c,_),s(f=n.$read_asset(p,$(["normalize"],{normalize:!0})))&&u["$<<"](n.$apply_subs(f,d))),s(n.attributes["$[]"]("docname")["$nil_or_empty?"]())||s(l["$&"](["private","private-"+e])["$empty?"]())||(p=n.$normalize_system_path(n.attributes["$[]"]("docname")+"-"+c,_),s(m=n.$read_asset(p,$(["normalize"],{normalize:!0})))&&u["$<<"](n.$apply_subs(m,d))))),s(n.extensions)&&s(n["$docinfo_processors?"](e))?(s(a=u)?a:[]).$concat(i(n.docinfo_processor_extensions["$[]"](e),"map",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=S),t.$process_method()["$[]"](r)}),{$$s:n}).$compact()).$join(T("LF")):s(u)?u.$join(T("LF")):""}),-1),a(R,"$docinfo_processors?",(function(e){var t,r=this;return null==e&&(e="head"),s(r.docinfo_processor_extensions["$key?"](e))?r.docinfo_processor_extensions["$[]"](e)["$!="](!1):s(r.extensions)&&s(r.document.$extensions()["$docinfo_processors?"](e))?(t=[e,r.document.$extensions().$docinfo_processors(e)],i(r.docinfo_processor_extensions,"[]=",t),t[t.length-1])["$!"]()["$!"]():(t=[e,!1],i(r.docinfo_processor_extensions,"[]=",t),t[t.length-1])}),-1),a(R,"$to_s",(function(){var e,t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {doctype: "+t.$doctype().$inspect()+", doctitle: "+(s(e=t.header)?t.header.$title():e).$inspect()+", blocks: "+t.blocks.$size()+"}>"})),R.$private(),a(R,"$apply_attribute_value_subs",(function(e){var t,r=this;return s(T("AttributeEntryPassMacroRx")["$=~"](e))?(e=(t=w["~"])===S?S:t["$[]"](2),s((t=w["~"])===S?S:t["$[]"](1))&&(e=r.$apply_subs(e,r.$resolve_pass_subs((t=w["~"])===S?S:t["$[]"](1))))):e=r.$apply_header_subs(e),s(r.max_attribute_value_size)?r.$limit_bytesize(e,r.max_attribute_value_size):e})),a(R,"$limit_bytesize",(function(e,t){if(s(x(e.$bytesize(),t)))for(;!s((e=e.$byteslice(0,t))["$valid_encoding?"]());)t=p(t,1);return e})),a(R,"$resolve_docinfo_subs",(function(){var e=this;return s(e.attributes["$key?"]("docinfosubs"))?e.$resolve_subs(e.attributes["$[]"]("docinfosubs"),"block",S,"docinfo"):["attributes"]})),a(R,"$create_converter",(function(e,t){var r,n,i,o=this,a=S,l=S;return a=$(["document","htmlsyntax"],{document:o,htmlsyntax:o.attributes["$[]"]("htmlsyntax")}),s(r=s(n=(l=o.options)["$[]"]("template_dirs"))?n:l["$[]"]("template_dir"))&&(a["$[]="]("template_dirs",[].concat(A(r))),a["$[]="]("template_cache",l.$fetch("template_cache",!0)),a["$[]="]("template_engine",l["$[]"]("template_engine")),a["$[]="]("template_engine_options",l["$[]"]("template_engine_options")),a["$[]="]("eruby",l["$[]"]("eruby")),a["$[]="]("safe",o.safe),s(t)&&a["$[]="]("delegate_backend",t)),s(i=l["$[]"]("converter"))?C(T("Converter"),"CustomFactory").$new(m(e,i)).$create(e,a):l.$fetch("converter_factory",T("Converter")).$create(e,a)})),a(R,"$clear_playback_attributes",(function(e){return e.$delete("attribute_entries")})),a(R,"$save_attributes",(function(){var e,t=this,r=S,n=S,o=S,a=S,u=S,c=S,_=S,d=S,p=S,f=S,m=S,g=S,b=S;if(s((n=t.attributes)["$key?"]("doctitle"))||l(r=t.$doctitle())||n["$[]="]("doctitle",r),t.id=s(o=t.id)?o:n["$[]"]("css-signature"),s(a=s(n.$delete("toc2"))?"left":n["$[]"]("toc"))&&(u=s(c=n.$fetch("toc-placement","macro"))&&v(c,"auto")?c:n["$[]"]("toc-position"),!s(a["$empty?"]())||!s(u["$nil_or_empty?"]()))){switch(_="left",d="toc2",p=s(u["$nil_or_empty?"]())?s(a["$empty?"]())?_:a:u,n["$[]="]("toc",""),n["$[]="]("toc-placement","auto"),p){case"left":case"<":case"<":n["$[]="]("toc-position","left");break;case"right":case">":case">":n["$[]="]("toc-position","right");break;case"top":case"^":n["$[]="]("toc-position","top");break;case"bottom":case"v":n["$[]="]("toc-position","bottom");break;case"preamble":case"macro":n["$[]="]("toc-position","content"),n["$[]="]("toc-placement",p),d=S;break;default:n.$delete("toc-position"),d=S}s(d)&&(s(o=n["$[]"]("toc-class"))||n["$[]="]("toc-class",d))}if(s(e=n["$[]"]("icons"))&&l(n["$key?"]("icontype")))switch(e){case"":case"font":break;default:n["$[]="]("icons",""),h(e,"image")||n["$[]="]("icontype",e)}return s(t.compat_mode=n["$key?"]("compat-mode"))&&s(n["$key?"]("language"))&&n["$[]="]("source-language",n["$[]"]("language")),s(t.parent_document)||(h(f=n["$[]"]("basebackend"),"html")?s(m=n["$[]"]("source-highlighter"))&&l(n["$[]"](m+"-unavailable"))&&(s(g=t.options["$[]"]("syntax_highlighter_factory"))?t.syntax_highlighter=g.$create(m,t.backend,$(["document"],{document:t})):s(b=t.options["$[]"]("syntax_highlighters"))?t.syntax_highlighter=C(T("SyntaxHighlighter"),"DefaultFactoryProxy").$new(b).$create(m,t.backend,$(["document"],{document:t})):t.syntax_highlighter=T("SyntaxHighlighter").$create(m,t.backend,$(["document"],{document:t}))):h(f,"docbook")&&(s(t["$attribute_locked?"]("toc"))||s(t.attributes_modified["$include?"]("toc"))||n["$[]="]("toc",""),s(t["$attribute_locked?"]("sectnums"))||s(t.attributes_modified["$include?"]("sectnums"))||n["$[]="]("sectnums","")),t.outfilesuffix=n["$[]"]("outfilesuffix"),i(T("FLEXIBLE_ATTRIBUTES"),"each",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.attribute_overrides&&(r.attribute_overrides=S),null==t&&(t=S),s(r.attribute_overrides["$key?"](t))&&s(r.attribute_overrides["$[]"](t))?r.attribute_overrides.$delete(t):S}),{$$s:t})),t.header_attributes=n.$merge()})),a(R,"$fill_datetime_attributes",(function(e,t){var r,n,o,a,$=S,l=S,u=S,c=S,_=S;return $=s(C("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?l=C("Time").$at(this.$Integer(C("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():C("Time").$now(),s(u=e["$[]"]("localdate"))?s(c=e["$[]"]("localyear"))||e["$[]="]("localyear",h(u.$index("-"),4)?u.$slice(0,4):S):(r=["localdate",$.$strftime("%F")],i(e,"[]=",r),u=r[r.length-1],s(c=e["$[]"]("localyear"))||e["$[]="]("localyear",$.$year().$to_s())),n=s(c=e["$[]"]("localtime"))?c:(r=["localtime",$.$strftime("%T "+(h($.$utc_offset(),0)?"UTC":"%z"))],i(e,"[]=",r),r[r.length-1]),s(c=e["$[]"]("localdatetime"))||e["$[]="]("localdatetime",u+" "+n),t=s(c=s(o=l)?o:t)?c:$,s(_=e["$[]"]("docdate"))?s(c=e["$[]"]("docyear"))||e["$[]="]("docyear",h(_.$index("-"),4)?_.$slice(0,4):S):(r=["docdate",t.$strftime("%F")],i(e,"[]=",r),_=r[r.length-1],s(c=e["$[]"]("docyear"))||e["$[]="]("docyear",t.$year().$to_s())),a=s(c=e["$[]"]("doctime"))?c:(r=["doctime",t.$strftime("%T "+(h(t.$utc_offset(),0)?"UTC":"%z"))],i(e,"[]=",r),r[r.length-1]),s(c=e["$[]"]("docdatetime"))||e["$[]="]("docdatetime",_+" "+a),S})),a(R,"$update_backend_attributes",(function(e,t){var r,n,o=this,a=S,$=S,l=S,c=S,_=S,d=S,p=S,h=S,m=S,g=S,b=S,y=S,x=S,k=S;return null==t&&(t=S),s(t)||v(e,o.backend)?(a=o.backend,$=(l=o.attributes)["$[]"]("basebackend"),c=o.doctype,s(e["$include?"](":"))&&(n=e.$partition(":"),_=null==(r=u(n))[0]?S:r[0],null==r[1]||r[1],e=null==r[2]?S:r[2]),s(e["$start_with?"]("xhtml"))?(l["$[]="]("htmlsyntax","xml"),e=e.$slice(1,e.$length())):s(e["$start_with?"]("html"))&&(s(d=l["$[]"]("htmlsyntax"))||l["$[]="]("htmlsyntax","html")),e=s(d=T("BACKEND_ALIASES")["$[]"](e))?d:e,s(_)&&(e=(r=[_,e])[0],p=r[1]),s(c)?(s(a)&&(l.$delete("backend-"+a),l.$delete("backend-"+a+"-doctype-"+c)),l["$[]="]("backend-"+e+"-doctype-"+c,""),l["$[]="]("doctype-"+c,"")):s(a)&&l.$delete("backend-"+a),l["$[]="]("backend-"+e,""),o.backend=(i(l,"[]=",r=["backend",e]),r[r.length-1]),f(C(T("Converter"),"BackendTraits"),h=o.$create_converter(e,p))?(m=h.$basebackend(),g=h.$filetype(),s(b=h.$htmlsyntax())&&l["$[]="]("htmlsyntax",b),s(t)?s(d=l["$[]"]("outfilesuffix"))||l["$[]="]("outfilesuffix",h.$outfilesuffix()):s(o["$attribute_locked?"]("outfilesuffix"))||l["$[]="]("outfilesuffix",h.$outfilesuffix())):s(h)?(m=(y=T("Converter").$derive_backend_traits(e))["$[]"]("basebackend"),g=y["$[]"]("filetype"),s(t)?s(d=l["$[]"]("outfilesuffix"))||l["$[]="]("outfilesuffix",y["$[]"]("outfilesuffix")):s(o["$attribute_locked?"]("outfilesuffix"))||l["$[]="]("outfilesuffix",y["$[]"]("outfilesuffix"))):o.$raise(C("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+e+"'. Processing aborted."),o.converter=h,s(x=l["$[]"]("filetype"))&&l.$delete("filetype-"+x),l["$[]="]("filetype",g),l["$[]="]("filetype-"+g,""),s(k=T("DEFAULT_PAGE_WIDTHS")["$[]"](m))?l["$[]="]("pagewidth",k):l.$delete("pagewidth"),v(m,$)&&(s(c)?(s($)&&(l.$delete("basebackend-"+$),l.$delete("basebackend-"+$+"-doctype-"+c)),l["$[]="]("basebackend-"+m+"-doctype-"+c,"")):s($)&&l.$delete("basebackend-"+$),l["$[]="]("basebackend-"+m,""),l["$[]="]("basebackend",m)),e):S}),-2),a(R,"$update_doctype_attributes",(function(e){var t,r=this,n=S,o=S,a=S,$=S;return s(e)&&v(e,r.doctype)?(o=(t=[r.backend,(n=r.attributes)["$[]"]("basebackend"),r.doctype])[0],a=t[1],$=t[2],s($)?(n.$delete("doctype-"+$),s(o)&&(n.$delete("backend-"+o+"-doctype-"+$),n["$[]="]("backend-"+o+"-doctype-"+e,"")),s(a)&&(n.$delete("basebackend-"+a+"-doctype-"+$),n["$[]="]("basebackend-"+a+"-doctype-"+e,""))):(s(o)&&n["$[]="]("backend-"+o+"-doctype-"+e,""),s(a)&&n["$[]="]("basebackend-"+a+"-doctype-"+e,"")),n["$[]="]("doctype-"+e,""),r.doctype=(i(n,"[]=",t=["doctype",e]),t[t.length-1])):S}))}(R[0],I("AbstractBlock"),R)}(E[0],E)},Opal.modules["asciidoctor/inline"]=function(e){var t=e.module,r=e.klass,n=e.hash2,i=e.send2,o=e.find_super,s=e.def,a=e.return_val,$=e.alias,l=e.truthy,u=[],c=e.nil;return e.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(u,_){var d=[t(u,"Asciidoctor")].concat(_),p=e.$r(d);return function(e,t){var u=r(e,t,"Inline"),_=u.$$prototype;return _.text=_.type=c,u.$attr_accessor("text"),u.$attr_reader("type"),u.$attr_accessor("target"),s(u,"$initialize",(function e(t,r,s,a){var $=this;return e.$$p=null,null==s&&(s=c),null==a&&(a=n([],{})),i($,o($,"initialize",e,!1,!0),"initialize",[t,r,a],null),$.node_name="inline_"+r,$.text=s,$.id=a["$[]"]("id"),$.type=a["$[]"]("type"),$.target=a["$[]"]("target")}),-3),s(u,"$block?",a(!1)),s(u,"$inline?",a(!0)),s(u,"$convert",(function(){return this.$converter().$convert(this)})),$(u,"render","convert"),s(u,"$alt",(function(){var e;return l(e=this.$attr("alt"))?e:""})),s(u,"$reftext?",(function(){var e,t=this,r=c;return l(e=t.text)?l(r=t.type["$=="]("ref"))?r:t.type["$=="]("bibref"):e})),s(u,"$reftext",(function(){var e;return l(e=this.text)?this.$apply_reftext_subs(e):c})),s(u,"$xreftext",(function(e){return this.$reftext()}),-1)}(d[0],p("AbstractNode"))}(u[0],u)},Opal.modules["asciidoctor/list"]=function(e){var t=e.module,r=e.klass,n=e.alias,i=e.hash2,o=e.send2,s=e.find_super,a=e.def,$=e.truthy,l=e.eqeq,u=[],c=e.nil;return e.add_stubs("blocks,blocks?,==,next_list,callouts,convert,class,object_id,inspect,size,items,parent,attr_accessor,level,drop,nil_or_empty?,apply_subs,attr_writer,empty?,===,[],outline?,!,simple?,source,shift,context"),function(u,_){var d=[t(u,"Asciidoctor")].concat(_),p=e.$r(d);return function(e,t){var u=r(e,t,"List"),_=u.$$prototype;_.context=_.document=_.style=c,n(u,"items","blocks"),n(u,"content","blocks"),n(u,"items?","blocks?"),a(u,"$initialize",(function e(t,r,n){var a=e.$$p||c;return e.$$p=null,null==n&&(n=i([],{})),o(this,s(this,"initialize",e,!1,!0),"initialize",[t,r,n],a)}),-3),a(u,"$outline?",(function(){var e;return $(e=this.context["$=="]("ulist"))?e:this.context["$=="]("olist")})),a(u,"$convert",(function e(){var t=e.$$p||c,r=this,n=c;return e.$$p=null,l(r.context,"colist")?(n=o(r,s(r,"convert",e,!1,!0),"convert",[],t),r.document.$callouts().$next_list(),n):o(r,s(r,"convert",e,!1,!0),"convert",[],t)})),n(u,"render","convert"),a(u,"$to_s",(function(){var e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {context: "+e.context.$inspect()+", style: "+e.style.$inspect()+", items: "+e.$items().$size()+"}>"}))}(d[0],p("AbstractBlock")),function(t,i,l){var u=r(t,i,"ListItem"),_=[u].concat(l),d=e.$r(_),p=u.$$prototype;return p.text=p.subs=p.blocks=c,n(u,"list","parent"),u.$attr_accessor("marker"),a(u,"$initialize",(function e(t,r){var n=this;return e.$$p=null,null==r&&(r=c),o(n,s(n,"initialize",e,!1,!0),"initialize",[t,"list_item"],null),n.text=r,n.level=t.$level(),n.subs=d("NORMAL_SUBS").$drop(0)}),-2),a(u,"$text?",(function(){return!$(this.text["$nil_or_empty?"]())})),a(u,"$text",(function(){var e,t=this;return $(e=t.text)?t.$apply_subs(t.text,t.subs):e})),u.$attr_writer("text"),a(u,"$simple?",(function(){var e,t=this,r=c,n=c,i=c;return $(e=t.blocks["$empty?"]())?e:$(r=$(n=t.blocks.$size()["$=="](1))?d("List")["$==="](i=t.blocks["$[]"](0)):n)?i["$outline?"]():r})),a(u,"$compound?",(function(){return this["$simple?"]()["$!"]()})),a(u,"$fold_first",(function(){var e=this;return e.text=$(e.text["$nil_or_empty?"]())?e.blocks.$shift().$source():""+e.text+d("LF")+e.blocks.$shift().$source(),c})),a(u,"$to_s",(function(){var e,t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {list_context: "+t.$parent().$context().$inspect()+", text: "+t.text.$inspect()+", blocks: "+($(e=t.blocks)?e:[]).$size()+"}>"}))}(d[0],p("AbstractBlock"),d)}(u[0],u)},Opal.modules["asciidoctor/parser"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.send,o=e.truthy,s=e.hash2,a=e.to_ary,$=e.defs,l=e.eqeq,u=e.not,c=e.gvars,_=e.neqeq,d=e.rb_plus,p=e.rb_lt,h=e.rb_gt,f=e.to_a,m=e.eqeqeq,g=e.rb_minus,b=e.rb_times,v=e.thrower,y=[],x=e.nil,k=e.$$$;return e.add_stubs("include,new,proc,start_with?,match?,is_delimited_block?,private_class_method,parse_document_header,[],has_more_lines?,next_section,assign_numeral,<<,blocks,skip_blank_lines,parse_block_metadata_lines,attributes,is_next_line_doctitle?,[]=,finalize_header,nil_or_empty?,title=,sourcemap,cursor,parse_section_title,id=,include?,sub_specialchars,sub_attributes,source_location=,header,attribute_locked?,id,clear,delete,instance_variable_get,parse_header_metadata,==,!,register,process_authors,update,doctype,parse_manpage_header,=~,downcase,error,logger,message_with_context,cursor_at_line,backend,save,is_next_line_section?,initialize_section,join,map,read_lines_until,lstrip,split,title,restore_save,discard_save,header?,empty?,context,!=,attr?,attr,key?,document,+,level,special,sectname,to_i,<,>,warn,next_block,blocks?,style,context=,style=,parent=,size,content_model,shift,unwrap_standalone_preamble,source_location,merge,fetch,parse_block_metadata_line,extensions,block_macros?,mark,read_line,terminator,to_s,masq,to_sym,registered_for_block?,debug?,debug,cursor_at_mark,strict_verbatim_paragraphs,unshift_line,markdown_syntax,keys,chr,uniform?,length,end_with?,parse_attributes,attribute_missing,tr,basename,assign_caption,registered_for_block_macro?,config,process_method,replace,parse_callout_list,callouts,===,parse_list,parse_description_list,underline_style_section_titles,is_section_title?,peek_line,atx_section_title?,generate_id,level=,read_paragraph_lines,adjust_indentation!,map!,slice,pop,build_block,apply_subs,chop,catalog_inline_anchors,rekey,index,strip,-,parse_table,each,raise,title?,update_attributes,commit_subs,sub?,catalog_callouts,source,remove_sub,block_terminates_paragraph,to_proc,nil?,lines,parse_blocks,parse_list_item,items,scan,gsub,count,advance,dup,match,callout_ids,next_list,catalog_inline_anchor,marker=,catalog_inline_biblio_anchor,set_option,text=,resolve_ordered_list_marker,read_lines_for_list_item,skip_line_comments,unshift_lines,fold_first,text?,is_sibling_list_item?,concat,find,casecmp,sectname=,special=,numbered=,numbered,lineno,peek_lines,setext_section_title?,abs,cursor_at_prev_line,process_attribute_entries,next_line_empty?,apply_header_subs,rstrip,each_with_index,compact,to_h,squeeze,to_a,parse_style_attribute,process_attribute_entry,skip_comment_lines,store_attribute,sanitize_attribute_name,set_attribute,save_to,delete_attribute,ord,int_to_roman,resolve_list_marker,parse_colspecs,create_columns,has_header_option=,format,starts_with_delimiter?,close_open_cell,parse_cellspec,delimiter,match_delimiter,pre_match,post_match,buffer_has_unclosed_quotes?,skip_past_delimiter,buffer=,buffer,skip_past_escaped_delimiter,keep_cell_open,push_cellspec,close_cell,cell_open?,columns,assign_column_widths,partition_header_footer,upto,partition,shorthand_property_syntax,each_char,yield_buffered_attribute,any?,*,each_byte,%"),function(y,w){var A=[t(y,"Asciidoctor")].concat(w);return function(t,y,w){var A=r(t,null,"Parser"),E=[A].concat(w),S=e.$r(E);return A.$include(S("Logging")),n(E[0],"BlockMatchData",S("Struct").$new("context","masq","tip","terminator")),n(E[0],"TAB","\t"),n(E[0],"TabIndentRx",/^\t+/),n(E[0],"StartOfBlockProc",i(A,"proc",[],(function e(t){var r,n,i=null==e.$$s?this:e.$$s;return null==t&&(t=x),o(r=o(n=t["$start_with?"]("["))?S("BlockAttributeLineRx")["$match?"](t):n)?r:i["$is_delimited_block?"](t)}),{$$s:A})),n(E[0],"StartOfListProc",i(A,"proc",[],(function(e){return null==e&&(e=x),S("AnyListRx")["$match?"](e)}))),n(E[0],"StartOfBlockOrListProc",i(A,"proc",[],(function e(t){var r,n,i=x;return null==t&&(t=x),o(r=o(n=(null==e.$$s?this:e.$$s)["$is_delimited_block?"](t))?n:o(i=t["$start_with?"]("["))?S("BlockAttributeLineRx")["$match?"](t):i)?r:S("AnyListRx")["$match?"](t)}),{$$s:A})),n(E[0],"NoOp",x),n(E[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),n(E[0],"TableCellHorzAlignments",s(["<",">","^"],{"<":"left",">":"right","^":"center"})),n(E[0],"TableCellVertAlignments",s(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),n(E[0],"TableCellStyles",s(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),A.$private_class_method("new"),$(A,"$parse",(function(e,t,r){var n,i,$,l=x,u=x;if(null==r&&(r=s([],{})),l=this.$parse_document_header(e,t,$=r["$[]"]("header_only")),!o($))for(;o(e["$has_more_lines?"]());)i=this.$next_section(e,t,l),u=null==(n=a(i))[0]?x:n[0],l=null==n[1]?x:n[1],o(u)&&(t.$assign_numeral(u),t.$blocks()["$<<"](u));return t}),-3),$(A,"$parse_document_header",(function(e,t,r){var n,$,c,_,d=this,p=x,h=x,f=x,m=x,g=x,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x,O=x;return null==r&&(r=!1),p=o(e.$skip_blank_lines())?d.$parse_block_metadata_lines(e,t):s([],{}),h=t.$attributes(),o(_=d["$is_next_line_doctitle?"](e,p,h["$[]"]("leveloffset")))&&o(p["$[]"]("title"))?(h["$[]="]("authorcount",0),t.$finalize_header(p,!1)):(o((f=h["$[]"]("doctitle"))["$nil_or_empty?"]())||t["$title="](m=f),o(_)?(o(t.$sourcemap())&&(g=e.$cursor()),$=d.$parse_section_title(e,t),c=[null==(n=a($))[0]?x:n[0]],i(t,"id=",c),null==n[1]||n[1],b=null==n[2]?x:n[2],null==n[3]||n[3],v=null==n[4]?x:n[4],o(m)?b=x:(t["$title="](b),o((n=["doctitle",m=t.$sub_specialchars(b)],i(h,"[]=",n),n[n.length-1])["$include?"](S("ATTR_REF_HEAD")))&&h["$[]="]("doctitle",m=t.$sub_attributes(m,s(["attribute_missing"],{attribute_missing:"skip"})))),o(g)&&t.$header()["$source_location="](g),o(v)||o(t["$attribute_locked?"]("compat-mode"))||h["$[]="]("compat-mode",""),o(y=p["$[]"]("separator"))&&(o(t["$attribute_locked?"]("title-separator"))||h["$[]="]("title-separator",y)),o(k=p["$[]"]("id"))?t["$id="](k):k=t.$id(),o(w=p["$[]"]("role"))&&h["$[]="]("role",w),o(A=p["$[]"]("reftext"))&&h["$[]="]("reftext",A),p.$clear(),(E=t.$instance_variable_get("@attributes_modified")).$delete("doctitle"),d.$parse_header_metadata(e,t,x),o(E["$include?"]("doctitle"))?o((f=h["$[]"]("doctitle"))["$nil_or_empty?"]())||l(f,m)?h["$[]="]("doctitle",m):t["$title="](f):u(b)&&E["$<<"]("doctitle"),o(k)&&t.$register("refs",[k,t])):o(C=h["$[]"]("author"))?(O=d.$process_authors(C,!0,!1),o(h["$[]"]("authorinitials"))&&O.$delete("authorinitials"),h.$update(O)):o(C=h["$[]"]("authors"))?(O=d.$process_authors(C,!0),h.$update(O)):h["$[]="]("authorcount",0),l(t.$doctype(),"manpage")&&d.$parse_manpage_header(e,t,p,r),t.$finalize_header(p))}),-3),$(A,"$parse_manpage_header",(function(e,t,r,n){var a,$=this,u=x,_=x,d=x,p=x,h=x,f=x,m=x,g=x,b=x,v=x,y=x,k=x;return null==n&&(n=!1),o(S("ManpageTitleVolnumRx")["$=~"]((u=t.$attributes())["$[]"]("doctitle")))?(u["$[]="]("manvolnum",_=(a=c["~"])===x?x:a["$[]"](2)),u["$[]="]("mantitle",(o((d=(a=c["~"])===x?x:a["$[]"](1))["$include?"](S("ATTR_REF_HEAD")))?t.$sub_attributes(d):d).$downcase())):($.$logger().$error($.$message_with_context("non-conforming manpage title",s(["source_location"],{source_location:e.$cursor_at_line(1)}))),u["$[]="]("mantitle",o(p=o(h=u["$[]"]("doctitle"))?h:u["$[]"]("docname"))?p:"command"),u["$[]="]("manvolnum",_="1")),o(f=u["$[]"]("manname"))&&o(u["$[]"]("manpurpose"))?(o(p=u["$[]"]("manname-title"))||u["$[]="]("manname-title","Name"),u["$[]="]("mannames",[f]),l(t.$backend(),"manpage")&&(u["$[]="]("docname",f),u["$[]="]("outfilesuffix","."+_))):o(n)||(e.$skip_blank_lines(),e.$save(),r.$update($.$parse_block_metadata_lines(e,t)),o(m=$["$is_next_line_section?"](e,s([],{})))?l(m,1)?(g=$.$initialize_section(e,t,s([],{})),b=i(e.$read_lines_until(s(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(function(e){return null==e&&(e=x),e.$lstrip()})).$join(" "),o(S("ManpageNamePurposeRx")["$=~"](b))?(o((f=(a=c["~"])===x?x:a["$[]"](1))["$include?"](S("ATTR_REF_HEAD")))&&(f=t.$sub_attributes(f)),o(f["$include?"](","))?f=(v=i(f.$split(","),"map",[],(function(e){return null==e&&(e=x),e.$lstrip()})))["$[]"](0):v=[f],o((y=(a=c["~"])===x?x:a["$[]"](2))["$include?"](S("ATTR_REF_HEAD")))&&(y=t.$sub_attributes(y)),o(p=u["$[]"]("manname-title"))||u["$[]="]("manname-title",g.$title()),o(g.$id())&&u["$[]="]("manname-id",g.$id()),u["$[]="]("manname",f),u["$[]="]("mannames",v),u["$[]="]("manpurpose",y),l(t.$backend(),"manpage")&&(u["$[]="]("docname",f),u["$[]="]("outfilesuffix","."+_))):k="non-conforming name section body"):k="name section must be at level 1":k="name section expected",o(k)?(e.$restore_save(),$.$logger().$error($.$message_with_context(k,s(["source_location"],{source_location:e.$cursor()}))),u["$[]="]("manname",f=o(p=u["$[]"]("docname"))?p:"command"),u["$[]="]("mannames",[f]),l(t.$backend(),"manpage")&&(u["$[]="]("docname",f),u["$[]="]("outfilesuffix","."+_))):e.$discard_save()),x}),-4),$(A,"$next_section",(function(e,t,r){var n,i,$=this,c=x,f=x,m=x,g=x,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x,z=x,F=x,N=x,L=x;for(null==r&&(r=s([],{})),c=f=m=!1,l(t.$context(),"document")&&o(t.$blocks()["$empty?"]())&&(o(g=t["$header?"]())||o(r.$delete("invalid-header"))||u($["$is_next_line_section?"](e,r)))?(b=(v=t).$doctype()["$=="]("book"),(o(g)||o(b)&&_(r["$[]"](1),"abstract"))&&(c=f=S("Block").$new(t,"preamble",s(["content_model"],{content_model:"compound"})),o(b)&&o(t["$attr?"]("preface-title"))&&c["$title="](t.$attr("preface-title")),t.$blocks()["$<<"](c)),y=t,k=0,o(t.$attributes()["$key?"]("fragment"))?w=-1:o(b)?(w=(n=[1,0])[0],A=n[1]):w=1):(b=(v=t.$document()).$doctype()["$=="]("book"),y=$.$initialize_section(e,t,r),r=o(E=r["$[]"]("title"))?s(["title"],{title:E}):s([],{}),w=d(k=y.$level(),1),l(k,0)?m=b:l(k,1)&&o(y.$special())&&(l(C=y.$sectname(),"appendix")||l(C,"preface")||l(C,"abstract")||(w=x))),e.$skip_blank_lines();o(e["$has_more_lines?"]());){if($.$parse_block_metadata_lines(e,v,r),o(O=$["$is_next_line_section?"](e,r)))if(o(v["$attr?"]("leveloffset"))&&(O=d(O,v.$attr("leveloffset").$to_i()),o(p(O,0))&&(O=0)),o(h(O,k)))o(w)?l(O,w)||o(A)&&l(O,A)||o(p(w,0))||(R=o(A)?"expected levels "+A+" or "+w:"expected level "+w,$.$logger().$warn($.$message_with_context("section title out of sequence: "+R+", got level "+O,s(["source_location"],{source_location:e.$cursor()})))):$.$logger().$error($.$message_with_context(C+" sections do not support nested sections",s(["source_location"],{source_location:e.$cursor()}))),i=$.$next_section(e,y,r),I=null==(n=a(i))[0]?x:n[0],r=null==n[1]?x:n[1],y.$assign_numeral(I),y.$blocks()["$<<"](I);else{if(!l(O,0)||!l(y,v))break;o(b)||$.$logger().$error($.$message_with_context("level 0 sections can only be used when doctype is book",s(["source_location"],{source_location:e.$cursor()}))),i=$.$next_section(e,y,r),I=null==(n=a(i))[0]?x:n[0],r=null==n[1]?x:n[1],y.$assign_numeral(I),y.$blocks()["$<<"](I)}else T=e.$cursor(),o(z=$.$next_block(e,o(F=f)?F:y,r,s(["parse_metadata"],{parse_metadata:!1})))&&(o(m)&&(u(y["$blocks?"]())?_(z.$style(),"partintro")&&(l(z.$context(),"paragraph")?(z["$context="]("open"),z["$style="]("partintro")):(z["$parent="](f=S("Block").$new(y,"open",s(["content_model"],{content_model:"compound"}))),f["$style="]("partintro"),y.$blocks()["$<<"](f))):l(y.$blocks().$size(),1)&&(N=y.$blocks()["$[]"](0),u(f)&&l(N.$content_model(),"compound")?$.$logger().$error($.$message_with_context("illegal block content outside of partintro block",s(["source_location"],{source_location:T}))):_(N.$content_model(),"compound")&&(z["$parent="](f=S("Block").$new(y,"open",s(["content_model"],{content_model:"compound"}))),f["$style="]("partintro"),y.$blocks().$shift(),l(N.$style(),"partintro")&&(N["$context="]("paragraph"),N["$style="](x)),f["$<<"](N),y.$blocks()["$<<"](f)))),(o(F=f)?F:y).$blocks()["$<<"](z),r.$clear());if(!o(F=e.$skip_blank_lines()))break}if(o(m))o(y["$blocks?"]())&&l(y.$blocks()["$[]"](-1).$context(),"section")||$.$logger().$error($.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",s(["source_location"],{source_location:e.$cursor()})));else if(o(c))if(o(c["$blocks?"]()))if(o(b)||o(v.$blocks()["$[]"](1))||u(S("Compliance").$unwrap_standalone_preamble()))o(v.$sourcemap())&&c["$source_location="](c.$blocks()["$[]"](0).$source_location());else for(v.$blocks().$shift();o(L=c.$blocks().$shift());)v["$<<"](L);else v.$blocks().$shift();return[l(y,t)?x:y,r.$merge()]}),-3),$(A,"$next_block",(function(e,t,r,n){var $,b,v,y=this,k=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x,z=x,F=x,N=x,L=x,D=x,q=x,B=x,M=x,j=x,P=x,U=x,H=x,Y=x,G=x,W=x,K=x,X=x,V=x,J=x,Z=x,Q=x,ee=x,te=x,re=x,ne=x,ie=x,oe=x,se=x,ae=x,$e=x,le=x,ue=x,ce=x,_e=x,de=x,pe=x,he=x,fe=x,me=x;if(null==c["~"]&&(c["~"]=x),null==r&&(r=s([],{})),null==n&&(n=s([],{})),!o(k=e.$skip_blank_lines()))return x;if(o(w=n["$[]"]("text_only"))&&o(h(k,0))&&(n.$delete("text_only"),w=x),A=t.$document(),o(n.$fetch("parse_metadata",!0)))for(;o(y.$parse_block_metadata_line(e,A,r,n));)if(e.$shift(),!o(E=e.$skip_blank_lines()))return x;if(o(C=A.$extensions())&&(O=($=[C["$blocks?"](),C["$block_macros?"]()])[0],R=$[1]),e.$mark(),I=($=[e.$read_line(),A.$attributes(),r["$[]"](1)])[0],T=$[1],z=$[2],F=N=L=D=x,o(q=y["$is_delimited_block?"](I,!0))&&(N=L=q.$context(),D=q.$terminator(),o(z)?l(z,N.$to_s())||(o(q.$masq()["$include?"](z))?N=z.$to_sym():o(q.$masq()["$include?"]("admonition"))&&o(S("ADMONITION_STYLES")["$include?"](z))?N="admonition":o(O)&&o(C["$registered_for_block?"](z,N))?N=z.$to_sym():(o(y.$logger()["$debug?"]())&&y.$logger().$debug(y.$message_with_context("unknown style for "+N+" block: "+z,s(["source_location"],{source_location:e.$cursor_at_mark()}))),z=N.$to_s())):($=["style",N.$to_s()],i(r,"[]=",$),z=$[$.length-1])),!o(q))for(;o(!0);){if(o(z)&&o(S("Compliance").$strict_verbatim_paragraphs())&&o(S("VERBATIM_STYLES")["$include?"](z))){N=z.$to_sym(),e.$unshift_line(I);break}if(o(w))B=I["$start_with?"](" ",S("TAB"));else if(M=S("Compliance").$markdown_syntax(),o(I["$start_with?"](" "))){if(B=($=[!0," "])[0],j=$[1],o(M)&&o(i(I.$lstrip(),"start_with?",f(S("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&o(S("MarkdownThematicBreakRx")["$match?"](I))){F=S("Block").$new(t,"thematic_break",s(["content_model"],{content_model:"empty"}));break}}else if(o(I["$start_with?"](S("TAB"))))B=($=[!0,S("TAB")])[0],j=$[1];else{if(B=($=[!1,I.$chr()])[0],j=$[1],P=o(M)?S("HYBRID_LAYOUT_BREAK_CHARS"):S("LAYOUT_BREAK_CHARS"),o(P["$key?"](j))&&o(o(M)?S("ExtLayoutBreakRx")["$match?"](I):o(E=y["$uniform?"](I,j,U=I.$length()))?h(U,2):E)){F=S("Block").$new(t,P["$[]"](j),s(["content_model"],{content_model:"empty"}));break}if(o(I["$end_with?"]("]"))&&o(I["$include?"]("::"))){if((l(j,"i")||o(I["$start_with?"]("video:","audio:")))&&o(S("BlockMediaMacroRx")["$=~"](I))){if(H=($=[((b=c["~"])===x?x:b["$[]"](1)).$to_sym(),(b=c["~"])===x?x:b["$[]"](2),(b=c["~"])===x?x:b["$[]"](3)])[0],Y=$[1],G=$[2],F=S("Block").$new(t,H,s(["content_model"],{content_model:"empty"})),o(G)){switch(H){case"video":W=["poster","width","height"];break;case"audio":W=[];break;default:W=["alt","width","height"]}F.$parse_attributes(G,W,s(["sub_input","into"],{sub_input:!0,into:r}))}if(o(r["$key?"]("style"))&&r.$delete("style"),o(Y["$include?"](S("ATTR_REF_HEAD")))){if(o((K=F.$sub_attributes(Y))["$empty?"]())&&l(o(E=T["$[]"]("attribute-missing"))?E:S("Compliance").$attribute_missing(),"drop-line")&&o(F.$sub_attributes(d(Y," "),s(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return r.$clear(),x;Y=K}l(H,"image")&&(A.$register("images",Y),r["$[]="]("imagesdir",T["$[]"]("imagesdir")),o(E=r["$[]"]("alt"))||r["$[]="]("alt",o(X=z)?X:($=["default-alt",S("Helpers").$basename(Y,!0).$tr("_-"," ")],i(r,"[]=",$),$[$.length-1])),o((V=r.$delete("scaledwidth"))["$nil_or_empty?"]())||r["$[]="]("scaledwidth",o(S("TrailingDigitsRx")["$match?"](V))?V+"%":V),o(r["$[]"]("title"))&&(F["$title="](J=r.$delete("title")),F.$assign_caption(r.$delete("caption"),"figure"))),r["$[]="]("target",Y);break}if(l(j,"t")&&o(I["$start_with?"]("toc:"))&&o(S("BlockTocMacroRx")["$=~"](I))){F=S("Block").$new(t,"toc",s(["content_model"],{content_model:"empty"})),o(($=c["~"])===x?x:$["$[]"](1))&&F.$parse_attributes(($=c["~"])===x?x:$["$[]"](1),[],s(["into"],{into:r}));break}if(o(o(R)?o(E=o(X=S("CustomBlockMacroRx")["$=~"](I))?Z=C["$registered_for_block_macro?"](($=c["~"])===x?x:$["$[]"](1)):X)?E:Q=y.$logger()["$debug?"]():o(E=y.$logger()["$debug?"]())?Q=S("CustomBlockMacroRx")["$=~"](I):E)){if(!o(Q)){if(ee=($=c["~"])===x?x:$["$[]"](3),o((Y=($=c["~"])===x?x:$["$[]"](2))["$include?"](S("ATTR_REF_HEAD")))){if(o((K=t.$sub_attributes(Y))["$empty?"]())&&l(o(E=T["$[]"]("attribute-missing"))?E:S("Compliance").$attribute_missing(),"drop-line")&&o(t.$sub_attributes(d(Y," "),s(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return r.$clear(),x;Y=K}if(l((te=Z.$config())["$[]"]("content_model"),"attributes")?o(ee)&&A.$parse_attributes(ee,o(E=o(X=te["$[]"]("positional_attrs"))?X:te["$[]"]("pos_attrs"))?E:[],s(["sub_input","into"],{sub_input:!0,into:r})):r["$[]="]("text",o(E=ee)?E:""),o(re=te["$[]"]("default_attrs"))&&i(r,"update",[re],(function(e,t){return null==t&&(t=x),t})),o(F=Z.$process_method()["$[]"](t,Y,r))&&_(F,t)){r.$replace(F.$attributes());break}return r.$clear(),x}y.$logger().$debug(y.$message_with_context("unknown name for block macro: "+(($=c["~"])===x?x:$["$[]"](1)),s(["source_location"],{source_location:e.$cursor_at_mark()})))}}}if(u(B)&&l(j=o(E=j)?E:I.$chr(),"<")&&o(S("CalloutListRx")["$=~"](I))){e.$unshift_line(I),F=y.$parse_callout_list(e,c["~"],t,A.$callouts()),r["$[]="]("style","arabic");break}if(o(S("UnorderedListRx")["$match?"](I))){e.$unshift_line(I),u(z)&&m(S("Section"),t)&&l(t.$sectname(),"bibliography")&&r["$[]="]("style",z="bibliography"),F=y.$parse_list(e,"ulist",t,z);break}if(o(S("OrderedListRx")["$match?"](I))){e.$unshift_line(I),F=y.$parse_list(e,"olist",t,z),o(F.$style())&&r["$[]="]("style",F.$style());break}if((o(I["$include?"]("::"))||o(I["$include?"](";;")))&&o(S("DescriptionListRx")["$=~"](I))){e.$unshift_line(I),F=y.$parse_description_list(e,c["~"],t);break}if((l(z,"float")||l(z,"discrete"))&&o(o(S("Compliance").$underline_style_section_titles())?y["$is_section_title?"](I,e.$peek_line()):o(E=B["$!"]())?y["$atx_section_title?"](I):E)){e.$unshift_line(I),b=y.$parse_section_title(e,A,r["$[]"]("id")),ne=null==($=a(b))[0]?x:$[0],ie=null==$[1]?x:$[1],J=null==$[2]?x:$[2],oe=null==$[3]?x:$[3],o(ie)&&r["$[]="]("reftext",ie),(F=S("Block").$new(t,"floating_title",s(["content_model"],{content_model:"empty"})))["$title="](J),r.$delete("title"),F["$id="](o(E=ne)?E:o(T["$key?"]("sectids"))?S("Section").$generate_id(F.$title(),A):x),F["$level="](oe);break}if(o(z)&&_(z,"normal")){if(o(S("PARAGRAPH_STYLES")["$include?"](z))){N=z.$to_sym(),L="paragraph",e.$unshift_line(I);break}if(o(S("ADMONITION_STYLES")["$include?"](z))){N="admonition",L="paragraph",e.$unshift_line(I);break}if(o(O)&&o(C["$registered_for_block?"](z,"paragraph"))){N=z.$to_sym(),L="paragraph",e.$unshift_line(I);break}o(y.$logger()["$debug?"]())&&y.$logger().$debug(y.$message_with_context("unknown style for paragraph: "+z,s(["source_location"],{source_location:e.$cursor_at_mark()}))),z=x}if(e.$unshift_line(I),o(B)&&u(z))se=y.$read_paragraph_lines(e,ae=l(k,0)?n["$[]"]("list_type"):x,s(["skip_line_comments"],{skip_line_comments:w})),y["$adjust_indentation!"](se),F=o(w)||l(ae,"dlist")?S("Block").$new(t,"paragraph",s(["content_model","source","attributes"],{content_model:"simple",source:se,attributes:r})):S("Block").$new(t,"literal",s(["content_model","source","attributes"],{content_model:"verbatim",source:se,attributes:r}));else{if(se=y.$read_paragraph_lines(e,o(E=k["$=="](0))?n["$[]"]("list_type"):E,s(["skip_line_comments"],{skip_line_comments:!0})),o(w))o(B)&&l(z,"normal")&&y["$adjust_indentation!"](se),F=S("Block").$new(t,"paragraph",s(["content_model","source","attributes"],{content_model:"simple",source:se,attributes:r}));else if(o(S("ADMONITION_STYLE_HEADS")["$include?"](j))&&o(I["$include?"](":"))&&o(S("AdmonitionParagraphRx")["$=~"](I)))se["$[]="](0,($=c["~"])===x?x:$.$post_match()),r["$[]="]("name",$e=($=["style",(b=c["~"])===x?x:b["$[]"](1)],i(r,"[]=",$),$[$.length-1]).$downcase()),r["$[]="]("textlabel",o(E=r.$delete("caption"))?E:T["$[]"]($e+"-caption")),F=S("Block").$new(t,"admonition",s(["content_model","source","attributes"],{content_model:"simple",source:se,attributes:r}));else if(o(M)&&l(j,">")&&o(I["$start_with?"]("> "))){if(i(se,"map!",[],(function(e){return null==e&&(e=x),l(e,">")?e.$slice(1,e.$length()):o(e["$start_with?"]("> "))?e.$slice(2,e.$length()):e})),o(se["$[]"](-1)["$start_with?"]("-- "))&&(le=(le=se.$pop()).$slice(3,le.$length()),!o(se["$empty?"]())))for(;o(se["$[]"](-1)["$empty?"]());)se.$pop();r["$[]="]("style","quote"),F=y.$build_block("quote","compound",!1,t,S("Reader").$new(se),r),o(le)&&(b=F.$apply_subs(le).$split(", ",2),ue=null==($=a(b))[0]?x:$[0],ce=null==$[1]?x:$[1],o(ue)&&r["$[]="]("attribution",ue),o(ce)&&r["$[]="]("citetitle",ce))}else if(l(j,'"')&&o(h(se.$size(),1))&&o(se["$[]"](-1)["$start_with?"]("-- "))&&o(se["$[]"](-2)["$end_with?"]('"'))){for(se["$[]="](0,I.$slice(1,I.$length())),le=(le=se.$pop()).$slice(3,le.$length());o(se["$[]"](-1)["$empty?"]());)se.$pop();se["$<<"](se.$pop().$chop()),r["$[]="]("style","quote"),b=(F=S("Block").$new(t,"quote",s(["content_model","source","attributes"],{content_model:"simple",source:se,attributes:r}))).$apply_subs(le).$split(", ",2),ue=null==($=a(b))[0]?x:$[0],ce=null==$[1]?x:$[1],o(ue)&&r["$[]="]("attribution",ue),o(ce)&&r["$[]="]("citetitle",ce)}else o(B)&&l(z,"normal")&&y["$adjust_indentation!"](se),F=S("Block").$new(t,"paragraph",s(["content_model","source","attributes"],{content_model:"simple",source:se,attributes:r}));y.$catalog_inline_anchors(se.$join(S("LF")),F,A,e)}break}if(!o(F))switch(N){case"listing":case"source":(l(N,"source")||u(r["$[]"](1))&&o(_e=o(X=r["$[]"](2))?X:T["$[]"]("source-language")))&&(o(_e)?(r["$[]="]("style","source"),r["$[]="]("language",_e),S("AttributeList").$rekey(r,[x,x,"linenums"])):(S("AttributeList").$rekey(r,[x,"language","linenums"]),o(r["$key?"]("language"))||o(T["$key?"]("source-language"))&&r["$[]="]("language",T["$[]"]("source-language"))),o(r["$key?"]("linenums"))||(o(r["$[]"]("linenums-option"))||o(T["$[]"]("source-linenums-option")))&&r["$[]="]("linenums",""),o(r["$key?"]("indent"))||o(T["$key?"]("source-indent"))&&r["$[]="]("indent",T["$[]"]("source-indent"))),F=y.$build_block("listing","verbatim",D,t,e,r);break;case"fenced_code":r["$[]="]("style","source"),o(h(U=I.$length(),3))&&(o(de=(_e=I.$slice(3,U)).$index(","))?o(h(de,0))?(_e=_e.$slice(0,de).$strip(),o(p(de,g(U,4)))&&r["$[]="]("linenums","")):o(h(U,4))&&r["$[]="]("linenums",""):_e=_e.$lstrip()),o(_e["$nil_or_empty?"]())?o(T["$key?"]("source-language"))&&r["$[]="]("language",T["$[]"]("source-language")):r["$[]="]("language",_e),o(r["$key?"]("linenums"))||(o(r["$[]"]("linenums-option"))||o(T["$[]"]("source-linenums-option")))&&r["$[]="]("linenums",""),o(r["$key?"]("indent"))||o(T["$key?"]("source-indent"))&&r["$[]="]("indent",T["$[]"]("source-indent")),D=D.$slice(0,3),F=y.$build_block("listing","verbatim",D,t,e,r);break;case"table":pe=e.$cursor(),he=S("Reader").$new(e.$read_lines_until(s(["terminator","skip_line_comments","context","cursor"],{terminator:D,skip_line_comments:!0,context:"table",cursor:"at_mark"})),pe),o(D["$start_with?"]("|","!"))||o(X=r["$[]"]("format"))||r["$[]="]("format",o(D["$start_with?"](","))?"csv":"dsv"),F=y.$parse_table(he,t,r);break;case"sidebar":F=y.$build_block(N,"compound",D,t,e,r);break;case"admonition":r["$[]="]("name",$e=z.$downcase()),r["$[]="]("textlabel",o(X=r.$delete("caption"))?X:T["$[]"]($e+"-caption")),F=y.$build_block(N,"compound",D,t,e,r);break;case"open":case"abstract":case"partintro":F=y.$build_block("open","compound",D,t,e,r);break;case"literal":F=y.$build_block(N,"verbatim",D,t,e,r);break;case"example":o(r["$[]"]("collapsible-option"))&&r["$[]="]("caption",""),F=y.$build_block(N,"compound",D,t,e,r);break;case"quote":case"verse":S("AttributeList").$rekey(r,[x,"attribution","citetitle"]),F=y.$build_block(N,l(N,"verse")?"verbatim":"compound",D,t,e,r);break;case"stem":case"latexmath":case"asciimath":l(N,"stem")&&r["$[]="]("style",S("STEM_TYPE_ALIASES")["$[]"](o(X=r["$[]"](2))?X:T["$[]"]("stem"))),F=y.$build_block("stem","raw",D,t,e,r);break;case"pass":F=y.$build_block(N,"raw",D,t,e,r);break;case"comment":return y.$build_block(N,"skip",D,t,e,r),r.$clear(),x;default:if(o(O)&&o(Z=C["$registered_for_block?"](N,L))){if(l(fe=(te=Z.$config())["$[]"]("content_model"),"skip")||(o((me=o(X=te["$[]"]("positional_attrs"))?X:te["$[]"]("pos_attrs"))["$nil_or_empty?"]())||S("AttributeList").$rekey(r,d([x],me)),o(re=te["$[]"]("default_attrs"))&&i(re,"each",[],(function(e,t){var n;return null==e&&(e=x),null==t&&(t=x),o(X=r["$[]"](e))?X:(i(r,"[]=",n=[e,t]),n[n.length-1])})),r["$[]="]("cloaked-context",L)),!o(F=y.$build_block(N,fe,D,t,e,r,s(["extension"],{extension:Z}))))return r.$clear(),x}else y.$raise("Unsupported block type "+N+" at "+e.$cursor())}return o(A.$sourcemap())&&F["$source_location="](e.$cursor_at_mark()),o(r["$[]"]("title"))&&(F["$title="](J=r.$delete("title")),o(S("CAPTION_ATTRIBUTE_NAMES")["$[]"](F.$context()))&&F.$assign_caption(r.$delete("caption"))),F["$style="](r["$[]"]("style")),o(v=o(E=F.$id())?E:($=[r["$[]"]("id")],i(F,"id=",$),$[$.length-1]))&&(o(o(J)?J["$include?"](S("ATTR_REF_HEAD")):F["$title?"]())&&F.$title(),o(A.$register("refs",[v,F]))||y.$logger().$warn(y.$message_with_context("id assigned to block already in use: "+v,s(["source_location"],{source_location:e.$cursor_at_mark()})))),o(r["$empty?"]())||F.$update_attributes(r),F.$commit_subs(),o(F["$sub?"]("callouts"))&&(o(y.$catalog_callouts(F.$source(),A))||F.$remove_sub("callouts")),F}),-3),$(A,"$read_paragraph_lines",(function(e,t,r){var n=x;return null==r&&(r=s([],{})),r["$[]="]("break_on_blank_lines",!0),r["$[]="]("break_on_list_continuation",!0),r["$[]="]("preserve_last_line",!0),n=o(t)?o(S("Compliance").$block_terminates_paragraph())?S("StartOfBlockOrListProc"):S("StartOfListProc"):o(S("Compliance").$block_terminates_paragraph())?S("StartOfBlockProc"):S("NoOp"),i(e,"read_lines_until",[r],n.$to_proc())}),-3),$(A,"$is_delimited_block?",(function(e,t){var r,n,i,s,$=x,u=x,c=x;if(null==t&&(t=x),!o(h($=e.$length(),1))||!o(S("DELIMITED_BLOCK_HEADS")["$[]"](e.$slice(0,2))))return x;if(l($,2))u=e,c=2;else if(o(p($,5))?(u=e,c=$):u=e.$slice(0,c=4),o(S("Compliance").$markdown_syntax())&&o(u["$start_with?"]("`"))){if(l(c,4)){if(l(u,"````")||_(u=u.$chop(),"```"))return x;e=u,$=c=3}else if(_(u,"```"))return x}else if(l(c,3))return x;return n=S("DELIMITED_BLOCKS")["$[]"](u),i=null==(r=a(n))[0]?x:r[0],s=null==r[1]?x:r[1],o(i)&&(l($,c)||o(this["$uniform?"](e.$slice(1,$),S("DELIMITED_BLOCK_TAILS")["$[]"](u),g($,1))))?!o(t)||S("BlockMatchData").$new(i,s,u,e):x}),-2),$(A,"$build_block",(function(e,t,r,n,i,a,$){var c,d=this,p=x,f=x,g=x,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x;switch(null==$&&($=s([],{})),t){case"skip":p=(c=[!0,"simple"])[0],f=c[1];break;case"raw":p=(c=[!1,"simple"])[0],f=c[1];break;default:p=(c=[!1,t])[0],f=c[1]}switch(o(r["$nil?"]())?(l(f,"verbatim")?g=i.$read_lines_until(s(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(l(t,"compound")&&(t="simple"),g=d.$read_paragraph_lines(i,!1,s(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:p}))),b=x):_(f,"compound")?(g=i.$read_lines_until(s(["terminator","skip_processing","context","cursor"],{terminator:r,skip_processing:p,context:e,cursor:"at_mark"})),b=x):l(r,!1)?(g=x,b=i):(g=x,v=i.$cursor(),b=S("Reader").$new(i.$read_lines_until(s(["terminator","skip_processing","context","cursor"],{terminator:r,skip_processing:p,context:e,cursor:"at_mark"})),v)),t){case"verbatim":y=(o(k=a["$[]"]("tabsize"))?k:n.$document().$attributes()["$[]"]("tabsize")).$to_i(),o(w=a["$[]"]("indent"))?d["$adjust_indentation!"](g,w.$to_i(),y):o(h(y,0))&&d["$adjust_indentation!"](g,-1,y);break;case"skip":return x}if(o(A=$["$[]"]("extension"))){if(a.$delete("style"),!o(E=A.$process_method()["$[]"](n,o(C=b)?C:S("Reader").$new(g),a.$merge()))||!_(E,n))return x;a.$replace(E.$attributes()),l(E.$content_model(),"compound")&&m(S("Block"),E)&&u((g=E.$lines())["$empty?"]())&&(t="compound",b=S("Reader").$new(g))}else E=S("Block").$new(n,e,s(["content_model","source","attributes"],{content_model:t,source:g,attributes:a}));return l(t,"compound")&&d.$parse_blocks(b,E),E}),-7),$(A,"$parse_blocks",(function(e,t,r){var n=x,i=x,s=x;if(null==r&&(r=x),o(r))for(;o(o(n=o(i=s=this.$next_block(e,t,r.$merge()))?t.$blocks()["$<<"](s):i)?n:e["$has_more_lines?"]()););else for(;o(o(n=o(i=s=this.$next_block(e,t))?t.$blocks()["$<<"](s):i)?n:e["$has_more_lines?"]()););return x}),-3),$(A,"$parse_list",(function(e,t,r,n){var i,s=x,a=x,$=x,l=x;for(null==c["~"]&&(c["~"]=x),s=S("List").$new(r,t),a=S("ListRxMap")["$[]"](t);o(o($=e["$has_more_lines?"]())?a["$=~"](e.$peek_line()):$)&&(o(l=this.$parse_list_item(e,s,c["~"],(i=c["~"])===x?x:i["$[]"](1),n))&&s.$items()["$<<"](l),o($=e.$skip_blank_lines())););return s})),$(A,"$catalog_callouts",(function(e,t){var r=x,n=x;return r=!1,n=0,o(e["$include?"]("<"))&&i(e,"scan",[S("CalloutScanRx")],(function(){var e;return o(((e=c["~"])===x?x:e["$[]"](0))["$start_with?"]("\\"))||t.$callouts().$register(l((e=c["~"])===x?x:e["$[]"](2),".")?(n=d(n,1)).$to_s():(e=c["~"])===x?x:e["$[]"](2)),r=!0})),r})),$(A,"$catalog_inline_anchor",(function(e,t,r,n,i){return null==i&&(i=r.$document()),o(t)&&o(t["$include?"](S("ATTR_REF_HEAD")))&&(t=i.$sub_attributes(t)),o(i.$register("refs",[e,S("Inline").$new(r,"anchor",t,s(["type","id"],{type:"ref",id:e}))]))||(m(S("Reader"),n)&&(n=n.$cursor()),this.$logger().$warn(this.$message_with_context("id assigned to anchor already in use: "+e,s(["source_location"],{source_location:n})))),x}),-5),$(A,"$catalog_inline_anchors",(function(e,t,r,n){return(o(e["$include?"]("[["))||o(e["$include?"]("or:")))&&i(e,"scan",[S("InlineAnchorScanRx")],(function e(){var i,a=null==e.$$s?this:e.$$s,$=x,l=x,u=x,_=x;if(o($=(i=c["~"])===x?x:i["$[]"](1))){if(o(l=(i=c["~"])===x?x:i["$[]"](2))&&o(l["$include?"](S("ATTR_REF_HEAD")))&&o((l=r.$sub_attributes(l))["$empty?"]()))return x}else if($=(i=c["~"])===x?x:i["$[]"](3),o(l=(i=c["~"])===x?x:i["$[]"](4)))if(o(l["$include?"]("]")))l=l.$gsub("\\]","]"),o(l["$include?"](S("ATTR_REF_HEAD")))&&(l=r.$sub_attributes(l));else if(o(l["$include?"](S("ATTR_REF_HEAD")))&&o((l=r.$sub_attributes(l))["$empty?"]()))return x;return o(r.$register("refs",[$,S("Inline").$new(t,"anchor",l,s(["type","id"],{type:"ref",id:$}))]))?x:(u=n.$cursor_at_mark(),o(h(_=d(((i=c["~"])===x?x:i.$pre_match()).$count(S("LF")),o(((i=c["~"])===x?x:i["$[]"](0))["$start_with?"](S("LF")))?1:0),0))&&(u=u.$dup()).$advance(_),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+$,s(["source_location"],{source_location:u}))))}),{$$s:this}),x})),$(A,"$catalog_inline_biblio_anchor",(function(e,t,r,n){var i;return o(r.$document().$register("refs",[e,S("Inline").$new(r,"anchor",o(i=t)?"["+t+"]":i,s(["type","id"],{type:"bibref",id:e}))]))||this.$logger().$warn(this.$message_with_context("id assigned to bibliography anchor already in use: "+e,s(["source_location"],{source_location:n.$cursor()}))),x})),$(A,"$parse_description_list",(function(e,t,r){var n=x,i=x,s=x,a=x,$=x;for(null==c["~"]&&(c["~"]=x),n=S("List").$new(r,"dlist"),i=S("DescriptionListSiblingRx")["$[]"](t["$[]"](2)),n.$items()["$<<"](s=this.$parse_list_item(e,n,t,i));o(o(a=e["$has_more_lines?"]())?i["$=~"](e.$peek_line()):a);)$=this.$parse_list_item(e,n,c["~"],i),o(s["$[]"](1))?n.$items()["$<<"](s=$):(s["$[]"](0)["$<<"]($["$[]"](0)["$[]"](0)),s["$[]="](1,$["$[]"](1)));return n})),$(A,"$parse_callout_list",(function(e,t,r,n){var i=this,a=x,$=x,u=x,c=x,_=x,p=x,h=x,f=x;for(a=S("List").$new(r,"colist"),$=1,u=0;o(o(c=t)?c:o(_=t=S("CalloutListRx").$match(e.$peek_line()))?e.$mark():_);)l(p=t["$[]"](1),".")&&(p=(u=d(u,1)).$to_s()),l(p,$.$to_s())||i.$logger().$warn(i.$message_with_context("callout list item index: expected "+$+", got "+p,s(["source_location"],{source_location:e.$cursor_at_mark()}))),o(h=i.$parse_list_item(e,a,t,"<1>"))&&(a.$items()["$<<"](h),o((f=n.$callout_ids(a.$items().$size()))["$empty?"]())?i.$logger().$warn(i.$message_with_context("no callout found for <"+a.$items().$size()+">",s(["source_location"],{source_location:e.$cursor_at_mark()}))):h.$attributes()["$[]="]("coids",f)),$=d($,1),t=x;return n.$next_list(),a})),$(A,"$parse_list_item",(function(e,t,r,n,i){var $,_,d,p,h=this,f=x,m=x,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x,z=x,F=x,N=x,L=x;if(null==i&&(i=x),l(d=t.$context(),"dlist"))f=!0,m=S("ListItem").$new(t,b=r["$[]"](1)),o(b["$start_with?"]("[["))&&o(S("LeadingInlineAnchorRx")["$=~"](b))&&h.$catalog_inline_anchor(($=c["~"])===x?x:$["$[]"](1),o(v=($=c["~"])===x?x:$["$[]"](2))?v:(($=c["~"])===x?x:$.$post_match()).$lstrip(),m,e),o(y=r["$[]"](3))&&(k=!0),w=S("ListItem").$new(t,y),o(t.$document().$sourcemap())&&(m["$source_location="](e.$cursor()),o(k)?w["$source_location="](m.$source_location()):A=!0);else switch(k=!0,w=S("ListItem").$new(t,y=r["$[]"](2)),o(t.$document().$sourcemap())&&w["$source_location="](e.$cursor()),d){case"ulist":w["$marker="](n),o(y["$start_with?"]("["))&&(o(i)&&l(i,"bibliography")?o(S("InlineBiblioAnchorRx")["$=~"](y))&&h.$catalog_inline_biblio_anchor(($=c["~"])===x?x:$["$[]"](1),($=c["~"])===x?x:$["$[]"](2),w,e):o(y["$start_with?"]("[["))?o(S("LeadingInlineAnchorRx")["$=~"](y))&&h.$catalog_inline_anchor(($=c["~"])===x?x:$["$[]"](1),($=c["~"])===x?x:$["$[]"](2),w,e):o(y["$start_with?"]("[ ] ","[x] ","[*] "))&&(t.$set_option("checklist"),w.$attributes()["$[]="]("checkbox",""),o(y["$start_with?"]("[ "))||w.$attributes()["$[]="]("checked",""),w["$text="](y.$slice(4,y.$length()))));break;case"olist":_=h.$resolve_ordered_list_marker(n,E=t.$items().$size(),!0,e),n=null==($=a(_))[0]?x:$[0],C=null==$[1]?x:$[1],w["$marker="](n),l(E,0)&&u(i)&&t["$style="](o(O=C)?O:(o(R=S("ORDERED_LIST_STYLES")["$[]"](g(n.$length(),1)))?R:"arabic").$to_s()),o(y["$start_with?"]("[["))&&o(S("LeadingInlineAnchorRx")["$=~"](y))&&h.$catalog_inline_anchor(($=c["~"])===x?x:$["$[]"](1),($=c["~"])===x?x:$["$[]"](2),w,e);break;default:w["$marker="](n),o(y["$start_with?"]("[["))&&o(S("LeadingInlineAnchorRx")["$=~"](y))&&h.$catalog_inline_anchor(($=c["~"])===x?x:$["$[]"](1),($=c["~"])===x?x:$["$[]"](2),w,e)}if(e.$shift(),p=e.$cursor(),I=S("Reader").$new(h.$read_lines_for_list_item(e,d,n,k),p),o(I["$has_more_lines?"]())){for(o(A)&&w["$source_location="](p),T=I.$skip_line_comments(),o(z=I.$peek_line())&&(o(T["$empty?"]())||I.$unshift_lines(T),o(z["$empty?"]())||(F=!0,o(f)||(k=x))),o(N=h.$next_block(I,w,s([],{}),s(["text_only","list_type"],{text_only:!o(k)||x,list_type:d})))&&w.$blocks()["$<<"](N);o(I["$has_more_lines?"]());)o(N=h.$next_block(I,w,s([],{}),s(["list_type"],{list_type:d})))&&w.$blocks()["$<<"](N);o(F)&&o(L=w.$blocks()["$[]"](0))&&l(L.$context(),"paragraph")&&w.$fold_first()}return o(f)?[[m],o(w["$text?"]())||o(w["$blocks?"]())?w:x]:w}),-5),$(A,"$read_lines_for_list_item",(function(e,t,r,n){var a,$,d=this,p=x,h=x,f=x,m=x,g=x,b=x,v=x,y=x,k=x,w=x;for(null==r&&(r=x),null==n&&(n=!0),p=[],h="inactive",f=!1,m=x,$=t["$=="]("dlist");o(e["$has_more_lines?"]())&&(g=e.$read_line(),!o(d["$is_sibling_list_item?"](g,t,r)));)if(b=o(p["$empty?"]())?x:p["$[]"](-1),l(b,S("LIST_CONTINUATION"))&&(l(h,"inactive")&&(h="active",n=!0,o(f)||p["$[]="](-1,"")),l(g,S("LIST_CONTINUATION"))))_(h,"frozen")&&(h="frozen",p["$<<"](g)),g=x;else{if(o(v=d["$is_delimited_block?"](g,!0))){if(!l(h,"active"))break;p["$<<"](g),p.$concat(e.$read_lines_until(s(["terminator","read_last_line","context"],{terminator:v.$terminator(),read_last_line:!0,context:x}))),h="inactive"}else{if(o($)&&_(h,"active")&&o(S("BlockAttributeLineRx")["$match?"](g)))break;if(l(h,"active")&&u(g["$empty?"]()))o(S("LiteralParagraphRx")["$match?"](g))?(e.$unshift_line(g),o($)?p.$concat(i(e,"read_lines_until",[s(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(function e(n){return null==n&&(n=x),(null==e.$$s?this:e.$$s)["$is_sibling_list_item?"](n,t,r)}),{$$s:d})):p.$concat(e.$read_lines_until(s(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),h="inactive"):o(S("BlockTitleRx")["$match?"](g))||o(S("BlockAttributeLineRx")["$match?"](g))||o(S("AttributeEntryRx")["$match?"](g))?p["$<<"](g):(o(y=i(o(f)?["dlist"]:S("NESTABLE_LIST_CONTEXTS"),"find",[],(function(e){return null==e&&(e=x),S("ListRxMap")["$[]"](e)["$match?"](g)})))&&(f=!0,l(y,"dlist")&&o(((a=c["~"])===x?x:a["$[]"](3))["$nil_or_empty?"]())&&(n=!1)),p["$<<"](g),h="inactive");else if(o(b)&&o(b["$empty?"]())){if(o(g["$empty?"]())){if(!o(g=o(k=e.$skip_blank_lines())?e.$read_line():k))break;if(o(d["$is_sibling_list_item?"](g,t,r)))break}if(l(g,S("LIST_CONTINUATION")))m=p.$size(),p["$<<"](g);else if(o(n)){if(o(d["$is_sibling_list_item?"](g,t,r)))break;if(o(y=i(S("NESTABLE_LIST_CONTEXTS"),"find",[],(function(e){return null==e&&(e=x),S("ListRxMap")["$[]"](e)["$=~"](g)}))))p["$<<"](g),f=!0,l(y,"dlist")&&o(((a=c["~"])===x?x:a["$[]"](3))["$nil_or_empty?"]())&&(n=!1);else{if(!o(S("LiteralParagraphRx")["$match?"](g)))break;e.$unshift_line(g),o($)?p.$concat(i(e,"read_lines_until",[s(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(function e(n){return null==n&&(n=x),(null==e.$$s?this:e.$$s)["$is_sibling_list_item?"](n,t,r)}),{$$s:d})):p.$concat(e.$read_lines_until(s(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})))}}else o(f)||p.$pop(),p["$<<"](g),n=!0}else o(g["$empty?"]())||(n=!0),o(y=i(o(f)?["dlist"]:S("NESTABLE_LIST_CONTEXTS"),"find",[],(function(e){return null==e&&(e=x),S("ListRxMap")["$[]"](e)["$=~"](g)})))&&(f=!0,l(y,"dlist")&&o(((a=c["~"])===x?x:a["$[]"](3))["$nil_or_empty?"]())&&(n=!1)),p["$<<"](g)}g=x}for(o(g)&&e.$unshift_line(g),o(m)&&p["$[]="](m,"");!o(p["$empty?"]());){if(!o((w=p["$[]"](-1))["$empty?"]())){l(w,S("LIST_CONTINUATION"))&&p.$pop();break}p.$pop()}return p}),-3),$(A,"$initialize_section",(function(e,t,r){var n,$,c,_,d,p,f,m=this,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x;return null==r&&(r=s([],{})),c=(v=(b=t.$document()).$doctype())["$=="]("book"),o(b.$sourcemap())&&(y=e.$cursor()),k=r["$[]"](1),$=m.$parse_section_title(e,b,r["$[]"]("id")),_=null==(n=a($))[0]?x:n[0],d=null==n[1]?x:n[1],w=null==n[2]?x:n[2],A=null==n[3]?x:n[3],p=null==n[4]?x:n[4],o(k)?o(c)&&l(k,"abstract")?(E=(n=["chapter",1])[0],A=n[1]):o(k["$start_with?"]("sect"))&&o(S("SectionLevelStyleRx")["$match?"](k))?E="section":(E=(n=[k,!0])[0],C=n[1],l(A,0)&&(A=1),O=E["$=="]("appendix")):o(c)?E=l(A,0)?"part":o(h(A,1))?"section":"chapter":l(v,"manpage")&&l(w.$casecmp("synopsis"),0)?(E=(n=["synopsis",!0])[0],C=n[1]):E="section",o(d)&&r["$[]="]("reftext",d),R=S("Section").$new(t,A),$=[(n=[_,w,E,y])[0]],i(R,"id=",$),$[$.length-1],$=[n[1]],i(R,"title=",$),$[$.length-1],$=[n[2]],i(R,"sectname=",$),$[$.length-1],$=[n[3]],i(R,"source_location=",$),$[$.length-1],o(C)?(R["$special="](!0),o(O)?R["$numbered="](!0):l(b.$attributes()["$[]"]("sectnums"),"all")&&R["$numbered="](!o(c)||!l(A,1)||"chapter")):o(b.$attributes()["$[]"]("sectnums"))&&o(h(A,0))?R["$numbered="](!o(R.$special())||(o(I=t.$numbered())||I)):o(c)&&l(A,0)&&o(b.$attributes()["$[]"]("partnums"))&&R["$numbered="](!0),o(f=o(I=R.$id())?I:(n=[o(b.$attributes()["$key?"]("sectids"))?T=S("Section").$generate_id(R.$title(),b):x],i(R,"id=",n),n[n.length-1]))&&(o(T)||u(w["$include?"](S("ATTR_REF_HEAD")))||R.$title(),o(b.$register("refs",[f,R]))||m.$logger().$warn(m.$message_with_context("id assigned to section already in use: "+f,s(["source_location"],{source_location:e.$cursor_at_line(g(e.$lineno(),o(p)?1:2))})))),R.$update_attributes(r),e.$skip_blank_lines(),R}),-3),$(A,"$is_next_line_section?",(function(e,t){var r=x,n=x,i=x;return o(r=t["$[]"](1))&&(l(r,"discrete")||l(r,"float"))?x:o(S("Compliance").$underline_style_section_titles())?(n=e.$peek_lines(2,o(i=r)?r["$=="]("comment"):i),this["$is_section_title?"](o(i=n["$[]"](0))?i:"",n["$[]"](1))):this["$atx_section_title?"](o(i=e.$peek_line())?i:"")})),$(A,"$is_next_line_doctitle?",(function(e,t,r){var n=x,i=x;return o(r)?o(n=i=this["$is_next_line_section?"](e,t))?d(i,r.$to_i())["$=="](0):n:this["$is_next_line_section?"](e,t)["$=="](0)})),$(A,"$is_section_title?",(function(e,t){var r;return null==t&&(t=x),o(r=this["$atx_section_title?"](e))?r:o(t["$nil_or_empty?"]())?x:this["$setext_section_title?"](e,t)}),-2),$(A,"$atx_section_title?",(function(e){var t,r=x;return o(o(S("Compliance").$markdown_syntax())?o(r=e["$start_with?"]("=","#"))?S("ExtAtxSectionTitleRx")["$=~"](e):r:o(r=e["$start_with?"]("="))?S("AtxSectionTitleRx")["$=~"](e):r)?g(((t=c["~"])===x?x:t["$[]"](1)).$length(),1):x})),$(A,"$setext_section_title?",(function(e,t){var r,n,i=x;return o(r=S("SETEXT_SECTION_LEVELS")["$[]"](n=t.$chr()))&&o(this["$uniform?"](t,n,i=t.$length()))&&o(S("SetextSectionTitleRx")["$match?"](e))&&o(p(g(e.$length(),i).$abs(),2))?r:x})),$(A,"$parse_section_title",(function(e,t,r){var n,i,s=x,a=x,$=x,l=x,_=x,h=x,f=x,m=x,b=x;return null==r&&(r=x),s=x,a=e.$read_line(),o(o(S("Compliance").$markdown_syntax())?o($=a["$start_with?"]("=","#"))?S("ExtAtxSectionTitleRx")["$=~"](a):$:o($=a["$start_with?"]("="))?S("AtxSectionTitleRx")["$=~"](a):$)?(l=(n=[g(((i=c["~"])===x?x:i["$[]"](1)).$length(),1),(i=c["~"])===x?x:i["$[]"](2),!0])[0],_=n[1],h=n[2],o(r)||o(_["$end_with?"]("]]"))&&o(S("InlineSectionAnchorRx")["$=~"](_))&&u((n=c["~"])===x?x:n["$[]"](1))&&(n=[_.$slice(0,g(_.$length(),((i=c["~"])===x?x:i["$[]"](0)).$length())),(i=c["~"])===x?x:i["$[]"](2),(i=c["~"])===x?x:i["$[]"](3)],_=n[0],r=n[1],s=n[2])):o(S("Compliance").$underline_style_section_titles())&&o(b=e.$peek_line(!0))&&o(l=S("SETEXT_SECTION_LEVELS")["$[]"](m=b.$chr()))&&o(this["$uniform?"](b,m,f=b.$length()))&&o(_=o($=S("SetextSectionTitleRx")["$=~"](a))?(n=c["~"])===x?x:n["$[]"](1):$)&&o(p(g(a.$length(),f).$abs(),2))?(h=!1,o(r)||o(_["$end_with?"]("]]"))&&o(S("InlineSectionAnchorRx")["$=~"](_))&&u((n=c["~"])===x?x:n["$[]"](1))&&(n=[_.$slice(0,g(_.$length(),((i=c["~"])===x?x:i["$[]"](0)).$length())),(i=c["~"])===x?x:i["$[]"](2),(i=c["~"])===x?x:i["$[]"](3)],_=n[0],r=n[1],s=n[2]),e.$shift()):this.$raise("Unrecognized section at "+e.$cursor_at_prev_line()),o(t["$attr?"]("leveloffset"))&&(l=d(l,t.$attr("leveloffset").$to_i()),o(p(l,0))&&(l=0)),[r,s,_,l,h]}),-3),$(A,"$parse_header_metadata",(function(e,t,r){var n,a,$=this,c=x,p=x,f=x,m=x,g=x,b=x,v=x,y=x,k=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x,z=x;if(null==t&&(t=x),null==r&&(r=!0),c=o(a=t)?t.$attributes():a,$.$process_attribute_entries(e,t),o(e["$has_more_lines?"]())&&u(e["$next_line_empty?"]())?(p=(f=$.$process_authors(e.$read_line())).$delete("authorcount"),o(t)&&o(h((i(c,"[]=",n=["authorcount",p]),n[n.length-1]),0))&&(i(f,"each",[],(function(e,r){var n;return null==e&&(e=x),null==r&&(r=x),o(c["$key?"](e))?x:(n=[e,t.$apply_header_subs(r)],i(c,"[]=",n),n[n.length-1])})),m=c["$[]"]("author"),g=c["$[]"]("authorinitials"),b=c["$[]"]("authors")),f["$[]="]("authorcount",p),$.$process_attribute_entries(e,t),o(e["$has_more_lines?"]())&&u(e["$next_line_empty?"]())&&(v=e.$read_line(),o(y=S("RevisionInfoLineRx").$match(v))?(k=s([],{}),o(y["$[]"](1))&&k["$[]="]("revnumber",y["$[]"](1).$rstrip()),o((w=y["$[]"](2).$strip())["$empty?"]())||(u(y["$[]"](1))&&o(w["$start_with?"]("v"))?k["$[]="]("revnumber",w.$slice(1,w.$length())):k["$[]="]("revdate",w)),o(y["$[]"](3))&&k["$[]="]("revremark",y["$[]"](3).$rstrip()),o(t)&&u(k["$empty?"]())&&i(k,"each",[],(function(e,r){var n;return null==e&&(e=x),null==r&&(r=x),o(c["$key?"](e))?x:(n=[e,t.$apply_header_subs(r)],i(c,"[]=",n),n[n.length-1])}))):e.$unshift_line(v)),$.$process_attribute_entries(e,t),e.$skip_blank_lines()):f=s([],{}),o(t)){if(o(c["$key?"]("author"))&&_(A=c["$[]"]("author"),m))E=$.$process_authors(A,!0,!1),_(c["$[]"]("authorinitials"),g)&&E.$delete("authorinitials");else if(o(c["$key?"]("authors"))&&_(A=c["$[]"]("authors"),b))E=$.$process_authors(A,!0);else{for(C=(n=[[],1,"author_1",!1,!1])[0],O=n[1],R=n[2],I=n[3],T=n[4];o(c["$key?"](R));)l(z=c["$[]"](R),f["$[]"](R))?(C["$<<"](x),T=!0):(C["$<<"](z),I=!0),R="author_"+(O=d(O,1));o(I)?(o(T)&&i(C,"each_with_index",[],(function(e,t){var r,n;return null==e&&(e=x),null==t&&(t=x),o(e)?x:(r=[t,i([f["$[]"]("firstname_"+(n=d(t,1))),f["$[]"]("middlename_"+n),f["$[]"]("lastname_"+n)].$compact(),"map",[],(function(e){return null==e&&(e=x),e.$tr(" ","_")})).$join(" ")],i(C,"[]=",r),r[r.length-1])})),E=$.$process_authors(C,!0,!1)):E=s(["authorcount"],{authorcount:0})}l(E["$[]"]("authorcount"),0)?o(p)?E=x:c["$[]="]("authorcount",0):(c.$update(E),u(c["$key?"]("email"))&&o(c["$key?"]("email_1"))&&c["$[]="]("email",c["$[]"]("email_1")))}return o(r)?f.$merge(k.$to_h(),E.$to_h()):x}),-2),$(A,"$process_authors",(function(e,t,r){var n=x,a=x;return null==t&&(t=!1),null==r&&(r=!0),n=s([],{}),a=0,i(o(r)&&o(e["$include?"](";"))?e.$split(S("AuthorDelimiterRx")):[].concat(f(e)),"each",[],(function(e){var r,$=x,c=x,_=x,p=x,h=x,f=x,m=x;return null==e&&(e=x),o(e["$empty?"]())?x:($=s([],{}),l(a=d(a,1),1)?i(S("AuthorKeys"),"each",[],(function(e){var t;return null==e&&(e=x),t=[e.$to_sym(),e],i($,"[]=",t),t[t.length-1]})):i(S("AuthorKeys"),"each",[],(function(e){var t;return null==e&&(e=x),t=[e.$to_sym(),e+"_"+a],i($,"[]=",t),t[t.length-1]})),o(t)?(o(e["$include?"]("<"))&&(n["$[]="]($["$[]"]("author"),e.$tr("_"," ")),e=e.$gsub(S("XmlSanitizeRx"),"")),l((c=e.$split(x,3)).$size(),3)&&c["$<<"](c.$pop().$squeeze(" "))):o(_=S("AuthorInfoLineRx").$match(e))&&(c=_.$to_a()).$shift(),o(c)?(r=[$["$[]"]("firstname"),h=c["$[]"](0).$tr("_"," ")],i(n,"[]=",r),p=r[r.length-1],n["$[]="]($["$[]"]("authorinitials"),h.$chr()),o(c["$[]"](1))&&(o(c["$[]"](2))?(n["$[]="]($["$[]"]("middlename"),f=c["$[]"](1).$tr("_"," ")),n["$[]="]($["$[]"]("lastname"),m=c["$[]"](2).$tr("_"," ")),p=d(d(d(d(h," "),f)," "),m),n["$[]="]($["$[]"]("authorinitials"),""+h.$chr()+f.$chr()+m.$chr())):(n["$[]="]($["$[]"]("lastname"),m=c["$[]"](1).$tr("_"," ")),p=d(d(h," "),m),n["$[]="]($["$[]"]("authorinitials"),""+h.$chr()+m.$chr()))),o(n["$[]"]($["$[]"]("author")))||n["$[]="]($["$[]"]("author"),p),o(t)||u(c["$[]"](3))||n["$[]="]($["$[]"]("email"),c["$[]"](3))):(n["$[]="]($["$[]"]("author"),(r=[$["$[]"]("firstname"),h=e.$squeeze(" ").$strip()],i(n,"[]=",r),r[r.length-1])),n["$[]="]($["$[]"]("authorinitials"),h.$chr())),l(a,1)?(r=["authors",n["$[]"]($["$[]"]("author"))],i(n,"[]=",r),r[r.length-1]):(l(a,2)&&i(S("AuthorKeys"),"each",[],(function(e){var t;return null==e&&(e=x),o(n["$key?"](e))?(t=[e+"_1",n["$[]"](e)],i(n,"[]=",t),t[t.length-1]):x})),r=["authors",n["$[]"]("authors")+", "+n["$[]"]($["$[]"]("author"))],i(n,"[]=",r),r[r.length-1]))})),n["$[]="]("authorcount",a),n}),-2),$(A,"$parse_block_metadata_lines",(function(e,t,r,n){for(null==r&&(r=s([],{})),null==n&&(n=s([],{}));o(this.$parse_block_metadata_line(e,t,r,n))&&(e.$shift(),o(e.$skip_blank_lines())););return r}),-3),$(A,"$parse_block_metadata_line",(function(e,t,r,n){var i,a=this,$=x,_=x,d=x,p=x,h=x,f=x;if(null==c["~"]&&(c["~"]=x),null==n&&(n=s([],{})),o(_=e.$peek_line())&&o(o(n["$[]"]("text_only"))?_["$start_with?"]("[","/"):$=_["$start_with?"]("[",".","/",":")))if(o(_["$start_with?"]("["))){if(o(_["$start_with?"]("[["))){if(o(_["$end_with?"]("]]"))&&o(S("BlockAnchorRx")["$=~"](_)))return r["$[]="]("id",(i=c["~"])===x?x:i["$[]"](1)),o(d=(i=c["~"])===x?x:i["$[]"](2))&&r["$[]="]("reftext",o(d["$include?"](S("ATTR_REF_HEAD")))?t.$sub_attributes(d):d),!0}else if(o(_["$end_with?"]("]"))&&o(S("BlockAttributeListRx")["$=~"](_)))return p=r["$[]"](1),o(t.$parse_attributes((i=c["~"])===x?x:i["$[]"](1),[],s(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:r}))["$[]"](1))&&r["$[]="](1,o(h=a.$parse_style_attribute(r,e))?h:p),!0}else if(o($)&&o(_["$start_with?"]("."))){if(o(S("BlockTitleRx")["$=~"](_)))return r["$[]="]("title",(i=c["~"])===x?x:i["$[]"](1)),!0}else if(u($)||o(_["$start_with?"]("/"))){if(o(_["$start_with?"]("//"))){if(l(_,"//"))return!0;if(o($)&&o(a["$uniform?"](_,"/",f=_.$length()))){if(!l(f,3))return e.$read_lines_until(s(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:_,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!o(_["$start_with?"]("///")))return!0}}else if(o($)&&o(_["$start_with?"](":"))&&o(S("AttributeEntryRx")["$=~"](_)))return a.$process_attribute_entry(e,t,r,c["~"]),!0;return x}),-4),$(A,"$process_attribute_entries",(function(e,t,r){for(null==r&&(r=x),e.$skip_comment_lines();o(this.$process_attribute_entry(e,t,r));)e.$shift(),e.$skip_comment_lines()}),-3),$(A,"$process_attribute_entry",(function(e,t,r,n){var i,s=x,a=x,$=x,l=x,u=x,c=x;if(null==r&&(r=x),null==n&&(n=x),o(n)||o(n=o(e["$has_more_lines?"]())?S("AttributeEntryRx").$match(e.$peek_line()):x)){if(o((s=n["$[]"](2))["$nil_or_empty?"]()))s="";else if(o(s["$end_with?"](S("LINE_CONTINUATION"),S("LINE_CONTINUATION_LEGACY"))))for(a=(i=[s.$slice(g(s.$length(),2),2),s.$slice(0,g(s.$length(),2)).$rstrip()])[0],s=i[1];o(o($=e.$advance())?(l=o(u=e.$peek_line())?u:"")["$empty?"]()["$!"]():$)&&(l=l.$lstrip(),o(c=l["$end_with?"](a))&&(l=l.$slice(0,g(l.$length(),2)).$rstrip()),s=""+s+(o(s["$end_with?"](S("HARD_LINE_BREAK")))?S("LF"):" ")+l,o(c)););return this.$store_attribute(n["$[]"](1),s,t,r),!0}return x}),-3),$(A,"$store_attribute",(function(e,t,r,n){var i=x;return null==r&&(r=x),null==n&&(n=x),o(e["$end_with?"]("!"))?(e=e.$chop(),t=x):o(e["$start_with?"]("!"))&&(e=e.$slice(1,e.$length()),t=x),l(e=this.$sanitize_attribute_name(e),"numbered")?e="sectnums":l(e,"hardbreaks")?e="hardbreaks-option":l(e,"showtitle")&&this.$store_attribute("notitle",o(t)?x:"",r,n),o(r)?o(t)?(l(e,"leveloffset")&&(o(t["$start_with?"]("+"))?t=d(r.$attr("leveloffset",0).$to_i(),t.$slice(1,t.$length()).$to_i()).$to_s():o(t["$start_with?"]("-"))&&(t=g(r.$attr("leveloffset",0).$to_i(),t.$slice(1,t.$length()).$to_i()).$to_s())),o(i=r.$set_attribute(e,t))&&(t=i,o(n)&&k(S("Document"),"AttributeEntry").$new(e,t).$save_to(n))):o(r.$delete_attribute(e))&&o(n)&&k(S("Document"),"AttributeEntry").$new(e,t).$save_to(n):o(n)&&k(S("Document"),"AttributeEntry").$new(e,t).$save_to(n),[e,t]}),-3),$(A,"$resolve_list_marker",(function(e,t,r,n,i){switch(null==r&&(r=0),null==n&&(n=!1),null==i&&(i=x),e){case"ulist":return t;case"olist":return this.$resolve_ordered_list_marker(t,r,n,i)["$[]"](0);default:return"<1>"}}),-3),$(A,"$resolve_ordered_list_marker",(function(e,t,r,n){var a,$=x,l=x;if(null==t&&(t=0),null==r&&(r=!1),null==n&&(n=x),o(e["$start_with?"](".")))return[e];switch(a=i(S("ORDERED_LIST_STYLES"),"find",[],(function(t){return null==t&&(t=x),S("OrderedListMarkerRxMap")["$[]"](t)["$match?"](e)}))){case"arabic":o(r)&&($=d(t,1),l=e.$to_i()),e="1.";break;case"loweralpha":o(r)&&($=d("a"["$[]"](0).$ord(),t).$chr(),l=e.$chop()),e="a.";break;case"upperalpha":o(r)&&($=d("A"["$[]"](0).$ord(),t).$chr(),l=e.$chop()),e="A.";break;case"lowerroman":o(r)&&($=S("Helpers").$int_to_roman(d(t,1)).$downcase(),l=e.$chop()),e="i)";break;case"upperroman":o(r)&&($=S("Helpers").$int_to_roman(d(t,1)),l=e.$chop()),e="I)"}return o(r)&&_($,l)&&this.$logger().$warn(this.$message_with_context("list item index: expected "+$+", got "+l,s(["source_location"],{source_location:n.$cursor()}))),[e,a]}),-2),$(A,"$is_sibling_list_item?",(function(e,t,r){var n,i=x;return m(k("Regexp"),r)?r["$match?"](e):o(i=S("ListRxMap")["$[]"](t)["$=~"](e))?r["$=="](this.$resolve_list_marker(t,(n=c["~"])===x?x:n["$[]"](1))):i})),$(A,"$parse_table",(function(e,t,r){var n,s,$,c,_,p=this,f=x,g=x,b=x,v=x,y=x,w=x,A=x,E=x,C=x,O=x,R=x,I=x,T=x,z=x,F=x,N=x;for(f=S("Table").$new(t,r),o(r["$key?"]("cols"))&&u((g=p.$parse_colspecs(r["$[]"]("cols")))["$empty?"]())&&(f.$create_columns(g),b=!0),c=o(v=e.$skip_blank_lines())?v:0,o(r["$[]"]("header-option"))?f["$has_header_option="](!0):l(c,0)&&u(r["$[]"]("noheader-option"))&&(f["$has_header_option="]("implicit"),y=!0),_=(n=[(w=k(S("Table"),"ParserContext").$new(e,f,r)).$format(),-1,x])[0],A=n[1],E=n[2];o(C=e.$read_line());){for(o(O=h(A=d(A,1),0))&&o(C["$empty?"]())?(C=x,o(E)&&(E=d(E,1))):l(_,"psv")&&(o(w["$starts_with_delimiter?"](C))?(C=C.$slice(1,C.$length()),w.$close_open_cell(),o(E)&&(E=x)):(s=p.$parse_cellspec(C,"start",w.$delimiter()),R=null==(n=a(s))[0]?x:n[0],C=null==n[1]?x:n[1],o(R)?(w.$close_open_cell(R),o(E)&&(E=x)):o(E)&&l(E,A)&&f["$has_header_option="](y=E=x))),o(O)||(e.$mark(),o(y)&&(o(e["$has_more_lines?"]())&&o(e.$peek_line()["$empty?"]())?E=1:f["$has_header_option="](y=x))),n=!1;n||o(!0);){if(n=!1,!o(C)||!o(I=w.$match_delimiter(C))){switch(w["$buffer="](""+w.$buffer()+C+S("LF")),_){case"csv":o(w["$buffer_has_unclosed_quotes?"]())?(o(E)&&l(A,0)&&f["$has_header_option="](y=E=x),w.$keep_cell_open()):w.$close_cell(!0);break;case"dsv":w.$close_cell(!0);break;default:w.$keep_cell_open()}break}if(T=(s=[I.$pre_match(),I.$post_match()])[0],z=s[1],m("csv",v=_)){if(o(w["$buffer_has_unclosed_quotes?"](T))){if(w.$skip_past_delimiter(T),o((C=z)["$empty?"]()))break;n=!0;continue}w["$buffer="](""+w.$buffer()+T)}else if(m("dsv",v)){if(o(T["$end_with?"]("\\"))){if(w.$skip_past_escaped_delimiter(T),o((C=z)["$empty?"]())){w["$buffer="](""+w.$buffer()+S("LF")),w.$keep_cell_open();break}n=!0;continue}w["$buffer="](""+w.$buffer()+T)}else{if(o(T["$end_with?"]("\\"))){if(w.$skip_past_escaped_delimiter(T),o((C=z)["$empty?"]())){w["$buffer="](""+w.$buffer()+S("LF")),w.$keep_cell_open();break}n=!0;continue}$=p.$parse_cellspec(T),R=null==(s=a($))[0]?x:s[0],F=null==s[1]?x:s[1],w.$push_cellspec(R),w["$buffer="](""+w.$buffer()+F)}o((C=z)["$empty?"]())&&(C=x),w.$close_cell()}if(o(w["$cell_open?"]()))o(e["$has_more_lines?"]())||w.$close_cell(!0);else if(!o(v=e.$skip_blank_lines()))break}return l((N=f.$attributes(),o(v=N["$[]"]("colcount"))?v:(n=["colcount",f.$columns().$size()],i(N,"[]=",n),n[n.length-1])),0)||o(b)||f.$assign_column_widths(),o(y)&&f["$has_header_option="](!0),f.$partition_header_footer(r),f})),$(A,"$parse_colspecs",(function(e){var t=x;return o(e["$include?"](" "))&&(e=e.$delete(" ")),l(e,e.$to_i().$to_s())?i(k("Array"),"new",[e.$to_i()],(function(){return s(["width"],{width:1})})):(t=[],i(o(e["$include?"](","))?e.$split(",",-1):e.$split(";",-1),"each",[],(function(e){var r,n,$=x,c=x,_=x,d=x,p=x;return null==e&&(e=x),o(e["$empty?"]())?t["$<<"](s(["width"],{width:1})):o($=S("ColumnSpecRx").$match(e))?(c=s([],{}),o($["$[]"](2))&&(n=$["$[]"](2).$split("."),_=null==(r=a(n))[0]?x:r[0],d=null==r[1]?x:r[1],u(_["$nil_or_empty?"]())&&o(S("TableCellHorzAlignments")["$key?"](_))&&c["$[]="]("halign",S("TableCellHorzAlignments")["$[]"](_)),u(d["$nil_or_empty?"]())&&o(S("TableCellVertAlignments")["$key?"](d))&&c["$[]="]("valign",S("TableCellVertAlignments")["$[]"](d))),o(p=$["$[]"](3))?c["$[]="]("width",l(p,"~")?-1:p.$to_i()):c["$[]="]("width",1),o($["$[]"](4))&&o(S("TableCellStyles")["$key?"]($["$[]"](4)))&&c["$[]="]("style",S("TableCellStyles")["$[]"]($["$[]"](4))),o($["$[]"](1))?i(1,"upto",[$["$[]"](1).$to_i()],(function(){return t["$<<"](c.$merge())})):t["$<<"](c)):x})),t)})),$(A,"$parse_cellspec",(function(e,t,r){var n,i,$=x,c=x,_=x,d=x,p=x,h=x;if(null==t&&(t="end"),null==r&&(r=x),$=(n=[x,""])[0],c=n[1],l(t,"start")){if(!o(e["$include?"](r)))return[x,e];if(i=e.$partition(r),_=null==(n=a(i))[0]?x:n[0],null==n[1]||n[1],c=null==n[2]?x:n[2],!o($=S("CellSpecStartRx").$match(_)))return[x,e];if(o($["$[]"](0)["$empty?"]()))return[s([],{}),c]}else{if(!o($=S("CellSpecEndRx").$match(e)))return[s([],{}),e];if(o($["$[]"](0).$lstrip()["$empty?"]()))return[s([],{}),e.$rstrip()];c=$.$pre_match()}if(d=s([],{}),o($["$[]"](1)))switch(i=$["$[]"](1).$split("."),p=null==(n=a(i))[0]?x:n[0],h=null==n[1]?x:n[1],p=o(p["$nil_or_empty?"]())?1:p.$to_i(),h=o(h["$nil_or_empty?"]())?1:h.$to_i(),$["$[]"](2)){case"+":l(p,1)||d["$[]="]("colspan",p),l(h,1)||d["$[]="]("rowspan",h);break;case"*":l(p,1)||d["$[]="]("repeatcol",p)}return o($["$[]"](3))&&(i=$["$[]"](3).$split("."),p=null==(n=a(i))[0]?x:n[0],h=null==n[1]?x:n[1],u(p["$nil_or_empty?"]())&&o(S("TableCellHorzAlignments")["$key?"](p))&&d["$[]="]("halign",S("TableCellHorzAlignments")["$[]"](p)),u(h["$nil_or_empty?"]())&&o(S("TableCellVertAlignments")["$key?"](h))&&d["$[]="]("valign",S("TableCellVertAlignments")["$[]"](h))),o($["$[]"](4))&&o(S("TableCellStyles")["$key?"]($["$[]"](4)))&&d["$[]="]("style",S("TableCellStyles")["$[]"]($["$[]"](4))),[d,c]}),-2),$(A,"$parse_style_attribute",(function(e,t){var r,n=x,a=x,$=x,l=x,c=x,_=x;return null==t&&(t=x),o(n=e["$[]"](1))&&u(n["$include?"](" "))&&o(S("Compliance").$shorthand_property_syntax())?(a=x,$="",l=s([],{}),i(n,"each_char",[],(function e(r){var n=null==e.$$s?this:e.$$s;switch(null==r&&(r=x),r){case".":return n.$yield_buffered_attribute(l,a,$,t),$="",a="role";case"#":return n.$yield_buffered_attribute(l,a,$,t),$="",a="id";case"%":return n.$yield_buffered_attribute(l,a,$,t),$="",a="option";default:return $=d($,r)}}),{$$s:this}),o(a)?(this.$yield_buffered_attribute(l,a,$,t),o(c=l["$[]"]("style"))&&e["$[]="]("style",c),o(l["$key?"]("id"))&&e["$[]="]("id",l["$[]"]("id")),o(l["$key?"]("role"))&&e["$[]="]("role",o((_=e["$[]"]("role"))["$nil_or_empty?"]())?l["$[]"]("role").$join(" "):_+" "+l["$[]"]("role").$join(" ")),o(l["$key?"]("option"))&&i(l["$[]"]("option"),"each",[],(function(t){var r;return null==t&&(t=x),i(e,"[]=",r=[t+"-option",""]),r[r.length-1]})),c):(i(e,"[]=",r=["style",n]),r[r.length-1])):(i(e,"[]=",r=["style",n]),r[r.length-1])}),-2),$(A,"$yield_buffered_attribute",(function(e,t,r,n){var a,$=this,u=x;return o(t)?o(r["$empty?"]())?o(n)?$.$logger().$warn($.$message_with_context("invalid empty "+t+" detected in style attribute",s(["source_location"],{source_location:n.$cursor_at_prev_line()}))):$.$logger().$warn("invalid empty "+t+" detected in style attribute"):l(t,"id")?(o(e["$key?"]("id"))&&(o(n)?$.$logger().$warn($.$message_with_context("multiple ids detected in style attribute",s(["source_location"],{source_location:n.$cursor_at_prev_line()}))):$.$logger().$warn("multiple ids detected in style attribute")),e["$[]="](t,r)):(o(u=e["$[]"](t))?u:(a=[t,[]],i(e,"[]=",a),a[a.length-1]))["$<<"](r):o(r["$empty?"]())||e["$[]="]("style",r),x})),$(A,"$adjust_indentation!",(function(e,t,r){var n=x,s=x,a=x;return null==t&&(t=0),null==r&&(r=0),o(e["$empty?"]())?x:(o(h(r,0))&&o(i(e,"any?",[],(function(e){return null==e&&(e=x),e["$include?"](S("TAB"))})))&&(n=b(" ",r),i(e,"map!",[],(function(e){var t=x,s=x,a=x,$=x,u=x;return null==e&&(e=x),o(e["$empty?"]())||o((t=e.$index(S("TAB")))["$nil?"]())||l(t,0)&&(s=0,function(){try{var t=v("break");i(e,"each_byte",[],(function(e){return null==e&&(e=x),l(e,9)||t.$throw(),s=d(s,1)}))}catch(e){if(e===t)return e.$v;throw e}}(),e=""+b(n,s)+e.$slice(s,e.$length()),!o(e["$include?"](S("TAB"))))?e:(a=0,$=0,u="",i(e,"each_char",[],(function(e){var t=x,i=x;return null==e&&(e=x),l(e,S("TAB"))?l((t=d($,a))["$%"](r),0)?(a=d(a,g(r,1)),u=d(u,n)):(l(i=g(r,t["$%"](r)),1)||(a=d(a,g(i,1))),u=d(u,b(" ",i))):u=d(u,e),$=d($,1)})),u)}))),o(p(t,0))||(s=x,function(){try{var t=v("break");i(e,"each",[],(function(e){var r;return null==e&&(e=x),o(e["$empty?"]())?x:(l(r=g(e.$length(),e.$lstrip().$length()),0)&&(s=x,t.$throw()),o(s)&&o(p(s,r))?x:s=r)}))}catch(e){if(e===t)return e.$v;throw e}}(),l(t,0)?o(s)&&i(e,"map!",[],(function(e){return null==e&&(e=x),o(e["$empty?"]())?e:e.$slice(s,e.$length())})):(a=b(" ",t),o(s)?i(e,"map!",[],(function(e){return null==e&&(e=x),o(e["$empty?"]())?e:d(a,e.$slice(s,e.$length()))})):i(e,"map!",[],(function(e){return null==e&&(e=x),o(e["$empty?"]())?e:d(a,e)})))),x)}),-2),$(A,"$uniform?",(function(e,t,r){return e.$count(t)["$=="](r)})),$(A,"$sanitize_attribute_name",(function(e){return e.$gsub(S("InvalidAttributeNameCharsRx"),"").$downcase()}))}(A[0],0,A)}(y[0],y)},Opal.modules["asciidoctor/path_resolver"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.truthy,o=e.hash2,s=e.def,a=e.eqeq,$=e.alias,l=e.rb_plus,u=e.to_ary,c=e.send,_=e.not,d=e.neqeq,p=e.rb_gt,h=e.gvars,f=[],m=e.nil,g=e.$$$;return e.add_stubs("include,attr_accessor,root?,posixify,expand_path,pwd,start_with?,==,match?,absolute_path?,+,length,descends_from?,slice,to_s,relative_path_from,new,include?,tr,partition_path,each,pop,<<,join_path,[],web_root?,unc?,index,split,delete,[]=,join,raise,!,fetch,warn,logger,empty?,nil_or_empty?,chomp,!=,>,size,extract_uri_prefix,end_with?,gsub,private,=~"),function(f,b){var v=[t(f,"Asciidoctor")].concat(b);return function(t,f,b){var v=r(t,null,"PathResolver"),y=[v].concat(b),x=e.$r(y),k=v.$$prototype;return k.file_separator=k._partition_path_web=k._partition_path_sys=k.working_dir=m,v.$include(x("Logging")),n(y[0],"DOT","."),n(y[0],"DOT_DOT",".."),n(y[0],"DOT_SLASH","./"),n(y[0],"SLASH","/"),n(y[0],"BACKSLASH","\\"),n(y[0],"DOUBLE_SLASH","//"),n(y[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),v.$attr_accessor("file_separator"),v.$attr_accessor("working_dir"),s(v,"$initialize",(function(e,t){var r,n,s=this;return null==e&&(e=m),null==t&&(t=m),s.file_separator=i(r=i(n=e)?n:g(g("File"),"ALT_SEPARATOR"))?r:g(g("File"),"SEPARATOR"),s.working_dir=i(t)?i(s["$root?"](t))?s.$posixify(t):g("File").$expand_path(t):g("Dir").$pwd(),s._partition_path_sys=o([],{}),s._partition_path_web=o([],{})}),-1),s(v,"$absolute_path?",(function(e){var t,r=m;return i(t=e["$start_with?"](x("SLASH")))?t:i(r=this.file_separator["$=="](x("BACKSLASH")))?x("WindowsRootRx")["$match?"](e):r})),a(x("RUBY_ENGINE"),"opal")&&a(g("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?s(v,"$root?",(function(e){var t;return i(t=this["$absolute_path?"](e))?t:e["$start_with?"]("file://","http://","https://")})):$(v,"root?","absolute_path?"),s(v,"$unc?",(function(e){return e["$start_with?"](x("DOUBLE_SLASH"))})),s(v,"$web_root?",(function(e){return e["$start_with?"](x("SLASH"))})),s(v,"$descends_from?",(function(e,t){var r=m;return a(t,e)?0:a(t,x("SLASH"))?i(r=e["$start_with?"](x("SLASH")))?1:r:i(r=e["$start_with?"](l(t,x("SLASH"))))?l(t.$length(),1):r})),s(v,"$relative_path",(function(t,r){var n=m;if(!i(this["$root?"](t)))return t;if(i(n=this["$descends_from?"](t,r)))return t.$slice(n,t.$length());try{return x("Pathname").$new(t).$relative_path_from(x("Pathname").$new(r)).$to_s()}catch(r){if(!e.rescue(r,[x("StandardError")]))throw r;try{return t}finally{e.pop_exception()}}})),s(v,"$posixify",(function(e){return i(e)?a(this.file_separator,x("BACKSLASH"))&&i(e["$include?"](x("BACKSLASH")))?e.$tr(x("BACKSLASH"),x("SLASH")):e:""})),$(v,"posixfy","posixify"),s(v,"$expand_path",(function(e){var t,r,n,o,s=this,$=m;return r=s.$partition_path(e),n=null==(t=u(r))[0]?m:t[0],o=null==t[1]?m:t[1],i(e["$include?"](x("DOT_DOT")))?($=[],c(n,"each",[],(function(e){return null==e&&(e=m),a(e,x("DOT_DOT"))?$.$pop():$["$<<"](e)})),s.$join_path($,o)):s.$join_path(n,o)})),s(v,"$partition_path",(function(e,t){var r,n,o=this,s=m,a=m,$=m,u=m;return null==t&&(t=m),i(n=(s=i(t)?o._partition_path_web:o._partition_path_sys)["$[]"](e))?n:(a=o.$posixify(e),i(t)?i(o["$web_root?"](a))?$=x("SLASH"):i(a["$start_with?"](x("DOT_SLASH")))&&($=x("DOT_SLASH")):i(o["$root?"](a))?$=i(o["$unc?"](a))?x("DOUBLE_SLASH"):i(a["$start_with?"](x("SLASH")))?x("SLASH"):a.$slice(0,l(a.$index(x("SLASH")),1)):i(a["$start_with?"](x("DOT_SLASH")))&&($=x("DOT_SLASH")),(u=(i($)?a.$slice($.$length(),a.$length()):a).$split(x("SLASH"))).$delete(x("DOT")),c(s,"[]=",r=[e,[u,$]]),r[r.length-1])}),-2),s(v,"$join_path",(function(e,t){return null==t&&(t=m),i(t)?""+t+e.$join(x("SLASH")):e.$join(x("SLASH"))}),-2),s(v,"$system_path",(function(e,t,r,n){var s,$,h=this,f=m,b=m,v=m,y=m,k=m,w=m,A=m,E=m,S=m,C=m,O=m;if(null==t&&(t=m),null==r&&(r=m),null==n&&(n=o([],{})),i(r)&&(i(h["$root?"](r))||h.$raise(g("SecurityError"),"Jail is not an absolute path: "+r),r=h.$posixify(r)),i(e)){if(i(h["$root?"](e))){if(f=h.$expand_path(e),i(r)&&_(h["$descends_from?"](f,r))){if(i(n.$fetch("recover",!0)))return h.$logger().$warn((i(b=n["$[]"]("target_name"))?b:"path")+" is outside of jail; recovering automatically"),$=h.$partition_path(f),v=null==(s=u($))[0]?m:s[0],$=h.$partition_path(r),s=u($),y=null==s[0]?m:s[0],k=null==s[1]?m:s[1],h.$join_path(l(y,v),k);h.$raise(g("SecurityError"),(i(b=n["$[]"]("target_name"))?b:"path")+" "+e+" is outside of jail: "+r+" (disallowed in safe mode)")}return f}$=h.$partition_path(e),v=null==(s=u($))[0]?m:s[0]}else v=[];if(i(v["$empty?"]())){if(i(t["$nil_or_empty?"]()))return i(b=r)?b:h.working_dir;if(i(h["$root?"](t))){if(!i(r))return h.$expand_path(t);t=h.$posixify(t)}else $=h.$partition_path(t),v=null==(s=u($))[0]?m:s[0],t=i(b=r)?b:h.working_dir}else i(t["$nil_or_empty?"]())?t=i(b=r)?b:h.working_dir:i(h["$root?"](t))?i(r)&&(t=h.$posixify(t)):t=(i(b=r)?b:h.working_dir).$chomp("/")+"/"+t;return i(r)&&i(w=h["$descends_from?"](t,r)["$!"]())&&a(h.file_separator,x("BACKSLASH"))?($=h.$partition_path(t),A=null==(s=u($))[0]?m:s[0],E=null==s[1]?m:s[1],$=h.$partition_path(r),s=u($),y=null==s[0]?m:s[0],k=null==s[1]?m:s[1],d(E,k)&&(i(n.$fetch("recover",!0))?(h.$logger().$warn("start path for "+(i(b=n["$[]"]("target_name"))?b:"path")+" is outside of jail root; recovering automatically"),A=y,w=!1):h.$raise(g("SecurityError"),"start path for "+(i(b=n["$[]"]("target_name"))?b:"path")+" "+t+" refers to location outside jail root: "+r+" (disallowed in safe mode)"))):($=h.$partition_path(t),A=null==(s=u($))[0]?m:s[0],k=null==s[1]?m:s[1]),i((S=l(A,v))["$include?"](x("DOT_DOT")))&&(C=(s=[S,[]])[0],S=s[1],i(r)?(i(y)||($=h.$partition_path(r),s=u($),y=null==s[0]?m:s[0]),O=!1,c(C,"each",[],(function t(o){var s=null==t.$$s?this:t.$$s;return null==o&&(o=m),a(o,x("DOT_DOT"))?i(p(S.$size(),y.$size()))?S.$pop():i(n.$fetch("recover",!0))?i(O)?m:(s.$logger().$warn((i(b=n["$[]"]("target_name"))?b:"path")+" has illegal reference to ancestor of jail; recovering automatically"),O=!0):s.$raise(g("SecurityError"),(i(b=n["$[]"]("target_name"))?b:"path")+" "+e+" refers to location outside jail: "+r+" (disallowed in safe mode)"):S["$<<"](o)}),{$$s:h})):c(C,"each",[],(function(e){return null==e&&(e=m),a(e,x("DOT_DOT"))?S.$pop():S["$<<"](e)}))),i(w)?(f=h.$join_path(S,k),i(h["$descends_from?"](f,r))?f:i(n.$fetch("recover",!0))?(h.$logger().$warn((i(b=n["$[]"]("target_name"))?b:"path")+" is outside of jail; recovering automatically"),i(y)||($=h.$partition_path(r),s=u($),y=null==s[0]?m:s[0]),h.$join_path(l(y,v),k)):h.$raise(g("SecurityError"),(i(b=n["$[]"]("target_name"))?b:"path")+" "+e+" is outside of jail: "+r+" (disallowed in safe mode)")):h.$join_path(S,k)}),-2),s(v,"$web_path",(function(e,t){var r,n,o,s,$=this,l=m,_=m,p=m;return null==t&&(t=m),e=$.$posixify(e),t=$.$posixify(t),i(t["$nil_or_empty?"]())||i($["$web_root?"](e))||(n=$.$extract_uri_prefix(""+t+(i(t["$end_with?"](x("SLASH")))?"":x("SLASH"))+e),e=null==(r=u(n))[0]?m:r[0],l=null==r[1]?m:r[1]),n=$.$partition_path(e,!0),o=null==(r=u(n))[0]?m:r[0],s=null==r[1]?m:r[1],_=[],c(o,"each",[],(function(e){return null==e&&(e=m),a(e,x("DOT_DOT"))?i(_["$empty?"]())?i(s)&&d(s,x("DOT_SLASH"))?m:_["$<<"](e):a(_["$[]"](-1),x("DOT_DOT"))?_["$<<"](e):_.$pop():_["$<<"](e)})),i((p=$.$join_path(_,s))["$include?"](" "))&&(p=p.$gsub(" ","%20")),i(l)?""+l+p:p}),-2),v.$private(),s(v,"$extract_uri_prefix",(function(e){var t;return i(e["$include?"](":"))&&i(x("UriSniffRx")["$=~"](e))?[e.$slice(((t=h["~"])===m?m:t["$[]"](0)).$length(),e.$length()),(t=h["~"])===m?m:t["$[]"](0)]:e}))}(v[0],0,v)}(f[0],f)},Opal.modules["asciidoctor/reader"]=function(e){var t=e.module,r=e.klass,n=e.def,i=e.rb_plus,o=e.alias,s=e.hash2,a=e.not,$=e.eqeqeq,l=e.to_ary,u=e.truthy,c=e.rb_gt,_=e.send,d=e.rb_minus,p=e.thrower,h=e.eqeq,f=e.rb_times,m=e.neqeq,g=e.to_a,b=e.assign_ivar_val,v=e.send2,y=e.find_super,x=e.rb_ge,k=e.gvars,w=e.rb_lt,A=e.hash,E=[],S=e.nil,C=e.$$$;return e.add_stubs("include,attr_reader,+,line_info,attr_accessor,!,===,split,file,dir,dirname,path,basename,lineno,reverse,prepare_lines,empty?,nil_or_empty?,peek_line,>,slice,[],length,process_line,times,shift,read_line,<<,-,unshift_all,has_more_lines?,read_lines,join,unshift,unshift_line,unshift_lines,replace_next_line,start_with?,==,*,read_lines_until,size,clear,cursor,[]=,fetch,!=,cursor_at_mark,warn,logger,message_with_context,pop,push,respond_to?,reverse_each,new,tap,each,instance_variables,instance_variable_get,drop,instance_variable_set,class,object_id,inspect,private,prepare_source_array,prepare_source_string,chomp,valid_encoding?,to_s,raise,to_i,attributes,catalog,pop_include,parse,path=,dup,end_with?,keys,rindex,rootname,key?,attr,reverse!,>=,exceeds_max_depth?,nil?,include_processors?,extensions,extensions?,include_processors,map,skip_front_matter!,adjust_indentation!,include?,=~,preprocess_conditional_directive,preprocess_include_directive,downcase,error,none?,any?,all?,strip,send,resolve_expr_val,rstrip,sub_attributes,attribute_missing,info,parse_attributes,find,handles?,instance,process_method,safe,resolve_include_path,method,split_delimited_value,partition,<,to_a,uniq,sort,call,each_line,infinite?,push_include,delete,first,values,value?,create_include_cursor,delete_at,keep_if,read,uriish?,attr?,require_library,normalize_system_path,file?,relative_path,path_resolver,base_dir,to_f"),function(E,O){var R=[t(E,"Asciidoctor")].concat(O),I=e.$r(R);return function(t,v,y){var x=r(t,null,"Reader"),k=[x].concat(y),w=e.$r(k),A=x.$$prototype;A.file=A.lines=A.look_ahead=A.unescape_next_line=A.lineno=A.process_lines=A.dir=A.path=A.mark=A.source_lines=A.saved=S,x.$include(w("Logging")),function(e,t){var s=r(e,null,"Cursor"),a=s.$$prototype;a.lineno=a.path=S,s.$attr_reader("file","dir","path","lineno"),n(s,"$initialize",(function(e,t,r,n){var i,o=this;return null==t&&(t=S),null==r&&(r=S),null==n&&(n=1),i=[e,t,r,n],o.file=i[0],o.dir=i[1],o.path=i[2],o.lineno=i[3],i}),-2),n(s,"$advance",(function(e){return this.lineno=i(this.lineno,e)})),n(s,"$line_info",(function(){return this.path+": line "+this.lineno})),o(s,"to_s","line_info")}(k[0]),x.$attr_reader("file"),x.$attr_reader("dir"),x.$attr_reader("path"),x.$attr_reader("lineno"),x.$attr_reader("source_lines"),x.$attr_accessor("process_lines"),x.$attr_accessor("unterminated"),n(x,"$initialize",(function(e,t,r){var n,i,o=this,c=S;return null==e&&(e=S),null==t&&(t=S),null==r&&(r=s([],{})),a(t)?(o.file=S,o.dir=".",o.path="",o.lineno=1):$(C("String"),t)?(o.file=t,i=C("File").$split(o.file),n=l(i),o.dir=null==n[0]?S:n[0],o.path=null==n[1]?S:n[1],o.lineno=1):(u(o.file=t.$file())?(o.dir=u(c=t.$dir())?c:C("File").$dirname(o.file),o.path=u(c=t.$path())?c:C("File").$basename(o.file)):(o.dir=u(c=t.$dir())?c:".",o.path=u(c=t.$path())?c:""),o.lineno=u(c=t.$lineno())?c:1),o.lines=(o.source_lines=o.$prepare_lines(e,r)).$reverse(),o.mark=S,o.look_ahead=0,o.process_lines=!0,o.unescape_next_line=!1,o.unterminated=S,o.saved=S}),-1),n(x,"$has_more_lines?",(function(){return!u(this.lines["$empty?"]())||(this.look_ahead=0,!1)})),n(x,"$empty?",(function(){return!!u(this.lines["$empty?"]())&&(this.look_ahead=0,!0)})),o(x,"eof?","empty?"),n(x,"$next_line_empty?",(function(){return this.$peek_line()["$nil_or_empty?"]()})),n(x,"$peek_line",(function(e){var t=this,r=S,n=S;return null==e&&(e=!1),u(e)||u(c(t.look_ahead,0))?u(t.unescape_next_line)?(r=t.lines["$[]"](-1)).$slice(1,r.$length()):t.lines["$[]"](-1):u(t.lines["$empty?"]())?(t.look_ahead=0,S):u(n=t.$process_line(t.lines["$[]"](-1)))?n:t.$peek_line()}),-1),n(x,"$peek_lines",(function(e,t){var r,n=this,i=S,o=S;return null==e&&(e=S),null==t&&(t=!1),r=n.look_ahead,i=[],function(){try{var r=p("break");_(u(o=e)?o:w("MAX_INT"),"times",[],(function e(){var n,o=null==e.$$s?this:e.$$s;if(null==o.lineno&&(o.lineno=S),u(n=u(t)?o.$shift():o.$read_line()))return i["$<<"](n);u(t)&&(o.lineno=d(o.lineno,1)),r.$throw()}),{$$s:n})}catch(e){if(e===r)return e.$v;throw e}}(),u(i["$empty?"]())||(n.$unshift_all(i),u(t)&&(n.look_ahead=r)),i}),-1),n(x,"$read_line",(function(){var e=this;return u(c(e.look_ahead,0))||u(e["$has_more_lines?"]())?e.$shift():S})),n(x,"$read_lines",(function(){var e=S;for(e=[];u(this["$has_more_lines?"]());)e["$<<"](this.$shift());return e})),o(x,"readlines","read_lines"),n(x,"$read",(function(){return this.$read_lines().$join(w("LF"))})),n(x,"$advance",(function(){return!!u(this.$shift())})),n(x,"$unshift_line",(function(e){return this.$unshift(e),S})),o(x,"restore_line","unshift_line"),n(x,"$unshift_lines",(function(e){return this.$unshift_all(e)})),o(x,"restore_lines","unshift_lines"),n(x,"$replace_next_line",(function(e){return this.$shift(),this.$unshift(e),!0})),o(x,"replace_line","replace_next_line"),n(x,"$skip_blank_lines",(function(){var e=this,t=S,r=S;if(u(e["$empty?"]()))return S;for(t=0;u(r=e.$peek_line());){if(!u(r["$empty?"]()))return t;e.$shift(),t=i(t,1)}})),n(x,"$skip_comment_lines",(function(){var e=this,t=S,r=S,n=S;if(u(e["$empty?"]()))return S;for(;u(u(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)&&u(r["$start_with?"]("//"));)if(u(r["$start_with?"]("///"))){if(!u(c(n=r.$length(),3))||!h(r,f("/",n)))break;e.$read_lines_until(s(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:r,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}))}else e.$shift();return S})),n(x,"$skip_line_comments",(function(){var e=this,t=S,r=S,n=S;if(u(e["$empty?"]()))return[];for(t=[];u(u(r=n=e.$peek_line())?n["$empty?"]()["$!"]():r)&&u(n["$start_with?"]("//"));)t["$<<"](e.$shift());return t})),n(x,"$terminate",(function(){var e=this;return e.lineno=i(e.lineno,e.lines.$size()),e.lines.$clear(),e.look_ahead=0,S})),n(x,"$read_lines_until",(function t(r){var n,i,o,$=t.$$p||S,l=this,c=S,p=S,f=S,g=S,b=S,v=S,y=S,x=S,k=S,A=S,E=S,C=S,O=S,R=S;for(t.$$p=null,null==r&&(r=s([],{})),c=[],u(l.process_lines)&&u(r["$[]"]("skip_processing"))&&(l.process_lines=!1,p=!0),u(i=r["$[]"]("terminator"))?(f=u(g=r["$[]"]("cursor"))?g:l.$cursor(),b=!1,v=!1):(b=r["$[]"]("break_on_blank_lines"),v=r["$[]"]("break_on_list_continuation")),o=r["$[]"]("skip_line_comments"),y=x=S,u(r["$[]"]("skip_first_line"))&&l.$shift();u(k=l.$read_line());){if(u(u(i)?k["$=="](i):u(g=u(A=u(E=b)?k["$empty?"]():E)?A:u(E=u(C=u(O=v)?y:O)?k["$=="](w("LIST_CONTINUATION")):C)?(_(r,"[]=",n=["preserve_last_line",!0]),n[n.length-1]):E)?g:u(A=$!==S)?e.yield1($,k):A)){u(r["$[]"]("read_last_line"))&&c["$<<"](k),u(r["$[]"]("preserve_last_line"))&&(l.$unshift(k),x=!0);break}u(o)&&u(k["$start_with?"]("//"))&&a(k["$start_with?"]("///"))||(c["$<<"](k),y=!0)}return u(p)&&(l.process_lines=!0,u(x)&&a(i)&&(l.look_ahead=d(l.look_ahead,1))),u(i)&&m(i,k)&&u(R=r.$fetch("context",i))&&(h(f,"at_mark")&&(f=l.$cursor_at_mark()),l.$logger().$warn(l.$message_with_context("unterminated "+R+" block",s(["source_location"],{source_location:f}))),l.unterminated=!0),c}),-1),n(x,"$shift",(function(){var e=this;return e.lineno=i(e.lineno,1),h(e.look_ahead,0)||(e.look_ahead=d(e.look_ahead,1)),e.lines.$pop()})),n(x,"$unshift",(function(e){var t=this;return t.lineno=d(t.lineno,1),t.look_ahead=i(t.look_ahead,1),t.lines.$push(e),S})),h(C("RUBY_ENGINE"),"jruby")?n(x,"$unshift_all",(function(e){var t=this;return t.lineno=d(t.lineno,e.$size()),t.look_ahead=i(t.look_ahead,e.$size()),u(e["$respond_to?"]("reverse"))?_(t.lines,"push",g(e.$reverse())):_(e,"reverse_each",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.lines&&(r.lines=S),null==t&&(t=S),r.lines.$push(t)}),{$$s:t}),S})):n(x,"$unshift_all",(function(e){var t=this;return t.lineno=d(t.lineno,e.$size()),t.look_ahead=i(t.look_ahead,e.$size()),_(t.lines,"push",g(e.$reverse())),S})),n(x,"$cursor",(function(){var e=this;return w("Cursor").$new(e.file,e.dir,e.path,e.lineno)})),n(x,"$cursor_at_line",(function(e){var t=this;return w("Cursor").$new(t.file,t.dir,t.path,e)})),n(x,"$cursor_at_mark",(function(){var e=this;return u(e.mark)?_(w("Cursor"),"new",g(e.mark)):e.$cursor()})),n(x,"$cursor_before_mark",(function(){var e,t,r=this,n=S,i=S,o=S,s=S;return u(r.mark)?(t=r.mark,n=null==(e=l(t))[0]?S:e[0],i=null==e[1]?S:e[1],o=null==e[2]?S:e[2],s=null==e[3]?S:e[3],w("Cursor").$new(n,i,o,d(s,1))):w("Cursor").$new(r.file,r.dir,r.path,d(r.lineno,1))})),n(x,"$cursor_at_prev_line",(function(){var e=this;return w("Cursor").$new(e.file,e.dir,e.path,d(e.lineno,1))})),n(x,"$mark",(function(){var e=this;return e.mark=[e.file,e.dir,e.path,e.lineno]})),n(x,"$line_info",(function(){return this.path+": line "+this.lineno})),n(x,"$lines",(function(){return this.lines.$reverse()})),n(x,"$string",(function(){return this.lines.$reverse().$join(w("LF"))})),n(x,"$source",(function(){return this.source_lines.$join(w("LF"))})),n(x,"$save",(function(){return this.saved=_(s([],{}),"tap",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==t&&(t=S),_(r.$instance_variables(),"each",[],(function e(r){var n,i=null==e.$$s?this:e.$$s,o=S;return null==r&&(r=S),h(r,"@saved")||h(r,"@source_lines")?S:(n=[r,$(C("Array"),o=i.$instance_variable_get(r))?o.$drop(0):o],_(t,"[]=",n),n[n.length-1])}),{$$s:r})}),{$$s:this}),S})),n(x,"$restore_save",(function(){var e=this;return u(e.saved)?(_(e.saved,"each",[],(function e(t,r){return null==t&&(t=S),null==r&&(r=S),(null==e.$$s?this:e.$$s).$instance_variable_set(t,r)}),{$$s:e}),e.saved=S):S})),n(x,"$discard_save",b("saved",S)),n(x,"$to_s",(function(){var e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {path: "+e.path.$inspect()+", line: "+e.lineno+"}>"})),x.$private(),n(x,"$prepare_lines",(function(t,r){var n=S;null==r&&(r=s([],{}));try{return u(n=r["$[]"]("normalize"))?$(C("Array"),t)?w("Helpers").$prepare_source_array(t,n["$!="]("chomp")):w("Helpers").$prepare_source_string(t,n["$!="]("chomp")):$(C("Array"),t)?t.$drop(0):u(t)?t.$chomp().$split(w("LF"),-1):[]}catch(r){if(!e.rescue(r,[w("StandardError")]))throw r;try{return u(($(C("Array"),t)?t.$join():t.$to_s())["$valid_encoding?"]())?this.$raise():this.$raise(C("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{e.pop_exception()}}}),-2),n(x,"$process_line",(function(e){var t=this;return u(t.process_lines)&&(t.look_ahead=i(t.look_ahead,1)),e}))}(R[0],0,R),function(t,f,b){var E=r(t,f,"PreprocessorReader"),O=[E].concat(b),R=e.$r(O),I=E.$$prototype;return I.include_stack=I.lines=I.file=I.dir=I.path=I.lineno=I.maxdepth=I.process_lines=I.includes=I.document=I.unescape_next_line=I.include_processor_extensions=I.look_ahead=I.skipping=I.conditional_stack=S,E.$attr_reader("include_stack"),n(E,"$initialize",(function e(t,r,n,i){var o,a,$=this;return e.$$p=null,null==r&&(r=S),null==n&&(n=S),null==i&&(i=s([],{})),$.document=t,v($,y($,"initialize",e,!1,!0),"initialize",[r,n,i],null),u(c(o=(u(a=t.$attributes()["$[]"]("max-include-depth"))?a:64).$to_i(),0))?$.maxdepth=s(["abs","curr","rel"],{abs:o,curr:o,rel:o}):$.maxdepth=S,$.include_stack=[],$.includes=t.$catalog()["$[]"]("includes"),$.skipping=!1,$.conditional_stack=[],$.include_processor_extensions=S}),-2),n(E,"$has_more_lines?",(function(){return!!u(this.$peek_line())})),n(E,"$empty?",(function(){return!u(this.$peek_line())})),o(E,"eof?","empty?"),n(E,"$peek_line",(function e(t){var r,n=e.$$p||S,i=this;return e.$$p=null,null==t&&(t=!1),u(r=v(i,y(i,"peek_line",e,!1,!0),"peek_line",[t],n))?r:u(i.include_stack["$empty?"]())?S:(i.$pop_include(),i.$peek_line(t))}),-1),n(E,"$push_include",(function(e,t,r,n,o){var a=this,l=S,p=S,f=S,m=S,b=S,v=S;return null==t&&(t=S),null==r&&(r=S),null==n&&(n=1),null==o&&(o=s([],{})),a.include_stack["$<<"]([a.lines,a.file,a.dir,a.path,a.lineno,a.maxdepth,a.process_lines]),u(a.file=t)?($(C("String"),t)?a.dir=C("File").$dirname(t):u(R("RUBY_ENGINE_OPAL"))?a.dir=C("URI").$parse(C("File").$dirname(t=t.$to_s())):((a.dir=t.$dup())["$path="](h(l=C("File").$dirname(t.$path()),"/")?"":l),t=t.$to_s()),a.path=r=u(p=r)?p:C("File").$basename(t),u(a.process_lines=_(t,"end_with?",g(R("ASCIIDOC_EXTENSIONS").$keys())))&&(u(p=a.includes["$[]"](r.$slice(0,r.$rindex("."))))||a.includes["$[]="](r.$slice(0,r.$rindex(".")),!u(o["$[]"]("partial-option"))||S))):(a.dir=".",a.process_lines=!0,u(a.path=r)?u(p=a.includes["$[]"](R("Helpers").$rootname(r)))||a.includes["$[]="](R("Helpers").$rootname(r),!u(o["$[]"]("partial-option"))||S):a.path=""),a.lineno=n,u(a.maxdepth)&&u(o["$key?"]("depth"))&&(u(c(f=o["$[]"]("depth").$to_i(),0))?(u(c(m=i(a.include_stack.$size(),f),b=a.maxdepth["$[]"]("abs")))&&(m=f=b),a.maxdepth=s(["abs","curr","rel"],{abs:b,curr:m,rel:f})):a.maxdepth=s(["abs","curr","rel"],{abs:a.maxdepth["$[]"]("abs"),curr:a.include_stack.$size(),rel:0})),u((a.lines=a.$prepare_lines(e,s(["normalize","condense","indent"],{normalize:u(p=a.process_lines)?p:"chomp",condense:!1,indent:o["$[]"]("indent")})))["$empty?"]())?a.$pop_include():(u(o["$key?"]("leveloffset"))?(a.lines=i(i([u(v=a.document.$attr("leveloffset"))?":leveloffset: "+v:":leveloffset!:",""],a.lines.$reverse()),["",":leveloffset: "+o["$[]"]("leveloffset")]),a.lineno=d(a.lineno,2)):a.lines["$reverse!"](),a.look_ahead=0),a}),-2),n(E,"$include_depth",(function(){return this.include_stack.$size()})),n(E,"$exceeds_max_depth?",(function(){var e,t,r=this;return u(e=u(t=r.maxdepth)?x(r.include_stack.$size(),r.maxdepth["$[]"]("curr")):t)?r.maxdepth["$[]"]("rel"):e})),o(E,"exceeded_max_depth?","exceeds_max_depth?"),n(E,"$shift",(function e(){var t=e.$$p||S,r=this,n=S;return e.$$p=null,u(r.unescape_next_line)?(r.unescape_next_line=!1,(n=v(r,y(r,"shift",e,!1,!0),"shift",[],t)).$slice(1,n.$length())):v(r,y(r,"shift",e,!1,!0),"shift",[],t)})),n(E,"$include_processors?",(function(){var e=this;return u(e.include_processor_extensions["$nil?"]())?u(e.document["$extensions?"]())&&u(e.document.$extensions()["$include_processors?"]())?(e.include_processor_extensions=e.document.$extensions().$include_processors())["$!"]()["$!"]():e.include_processor_extensions=!1:e.include_processor_extensions["$!="](!1)})),n(E,"$create_include_cursor",(function(e,t,r){var n=S;return $(C("String"),e)?n=C("File").$dirname(e):u(R("RUBY_ENGINE_OPAL"))?n=C("File").$dirname(e=e.$to_s()):(n=h(n=C("File").$dirname(e.$path()),"")?"/":n,e=e.$to_s()),R("Cursor").$new(e,n,t,r)})),n(E,"$to_s",(function(){var e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {path: "+e.path.$inspect()+", line: "+e.lineno+", include depth: "+e.include_stack.$size()+", include stack: ["+_(e.include_stack,"map",[],(function(e){return null==e&&(e=S),e.$to_s()})).$join(", ")+"]}>"})),E.$private(),n(E,"$prepare_lines",(function e(t,r){var n=e.$$p||S,i=this,o=S,a=S,$=S,l=S;if(e.$$p=null,null==r&&(r=s([],{})),o=v(i,y(i,"prepare_lines",e,!1,!0),"prepare_lines",[t,r],n),u(i.document)&&u(i.document.$attributes()["$[]"]("skip-front-matter"))&&u(a=i["$skip_front_matter!"](o))&&i.document.$attributes()["$[]="]("front-matter",a.$join(R("LF"))),u(r.$fetch("condense",!0)))for(;u(u($=l=o["$[]"](-1))?l["$empty?"]():$);)o.$pop();return u(r["$[]"]("indent"))&&R("Parser")["$adjust_indentation!"](o,r["$[]"]("indent").$to_i(),i.document.$attr("tabsize").$to_i()),o}),-2),n(E,"$process_line",(function(e){var t,r=this;return u(r.process_lines)?u(e["$empty?"]())?(r.look_ahead=i(r.look_ahead,1),e):u(e["$end_with?"]("]"))&&a(e["$start_with?"]("["))&&u(e["$include?"]("::"))?u(e["$include?"]("if"))&&u(R("ConditionalDirectiveRx")["$=~"](e))?h((t=k["~"])===S?S:t["$[]"](1),"\\")?(r.unescape_next_line=!0,r.look_ahead=i(r.look_ahead,1),e.$slice(1,e.$length())):u(r.$preprocess_conditional_directive((t=k["~"])===S?S:t["$[]"](2),(t=k["~"])===S?S:t["$[]"](3),(t=k["~"])===S?S:t["$[]"](4),(t=k["~"])===S?S:t["$[]"](5)))?(r.$shift(),S):(r.look_ahead=i(r.look_ahead,1),e):u(r.skipping)?(r.$shift(),S):u(e["$start_with?"]("inc","\\inc"))&&u(R("IncludeDirectiveRx")["$=~"](e))?h((t=k["~"])===S?S:t["$[]"](1),"\\")?(r.unescape_next_line=!0,r.look_ahead=i(r.look_ahead,1),e.$slice(1,e.$length())):u(r.$preprocess_include_directive((t=k["~"])===S?S:t["$[]"](2),(t=k["~"])===S?S:t["$[]"](3)))?S:(r.look_ahead=i(r.look_ahead,1),e):(r.look_ahead=i(r.look_ahead,1),e):u(r.skipping)?(r.$shift(),S):(r.look_ahead=i(r.look_ahead,1),e):e})),n(E,"$preprocess_conditional_directive",(function(t,r,n,i){var o,$,l=this,c=S,p=S,f=S,m=S,g=S;if(u($=r["$empty?"]())||(r=r.$downcase()),h(t,"endif"))return u(i)?l.$logger().$error(l.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+r+"["+i+"]",s(["source_location"],{source_location:l.$cursor()}))):u(l.conditional_stack["$empty?"]())?l.$logger().$error(l.$message_with_context("unmatched preprocessor directive: endif::"+r+"[]",s(["source_location"],{source_location:l.$cursor()}))):u($)||h(r,(c=l.conditional_stack["$[]"](-1))["$[]"]("target"))?(l.conditional_stack.$pop(),l.skipping=!u(l.conditional_stack["$empty?"]())&&l.conditional_stack["$[]"](-1)["$[]"]("skipping")):l.$logger().$error(l.$message_with_context("mismatched preprocessor directive: endif::"+r+"[], expected endif::"+c["$[]"]("target")+"[]",s(["source_location"],{source_location:l.$cursor()}))),!0;if(u(l.skipping))p=!1;else switch(t){case"ifdef":if(u($))return l.$logger().$error(l.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+i+"]",s(["source_location"],{source_location:l.$cursor()}))),!0;switch(n){case",":p=_(r.$split(",",-1),"none?",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.document&&(r.document=S),null==t&&(t=S),r.document.$attributes()["$key?"](t)}),{$$s:l});break;case"+":p=_(r.$split("+",-1),"any?",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.document&&(r.document=S),null==t&&(t=S),r.document.$attributes()["$key?"](t)["$!"]()}),{$$s:l});break;default:p=l.document.$attributes()["$key?"](r)["$!"]()}break;case"ifndef":if(u($))return l.$logger().$error(l.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+i+"]",s(["source_location"],{source_location:l.$cursor()}))),!0;switch(n){case",":p=_(r.$split(",",-1),"any?",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.document&&(r.document=S),null==t&&(t=S),r.document.$attributes()["$key?"](t)}),{$$s:l});break;case"+":p=_(r.$split("+",-1),"all?",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.document&&(r.document=S),null==t&&(t=S),r.document.$attributes()["$key?"](t)}),{$$s:l});break;default:p=l.document.$attributes()["$key?"](r)}break;case"ifeval":if(!u($))return l.$logger().$error(l.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+r+"["+i+"]",s(["source_location"],{source_location:l.$cursor()}))),!0;if(!u(i)||!u(R("EvalExpressionRx")["$=~"](i.$strip())))return l.$logger().$error(l.$message_with_context("malformed preprocessor directive - "+(u(i)?"invalid expression":"missing expression")+": ifeval::["+i+"]",s(["source_location"],{source_location:l.$cursor()}))),!0;f=(o=k["~"])===S?S:o["$[]"](1),m=(o=k["~"])===S?S:o["$[]"](2),g=(o=k["~"])===S?S:o["$[]"](3),p=function(){try{return!u(l.$resolve_expr_val(f).$send(m,l.$resolve_expr_val(g)))}catch(t){if(!e.rescue(t,[R("StandardError")]))throw t;try{return!0}finally{e.pop_exception()}}}()}return h(t,"ifeval")||a(i)?(u(p)&&(l.skipping=!0),l.conditional_stack["$<<"](s(["target","skip","skipping"],{target:r,skip:p,skipping:l.skipping}))):u(l.skipping)||u(p)||(l.$replace_next_line(i.$rstrip()),l.$unshift(""),u(i["$start_with?"]("include::"))&&(l.look_ahead=d(l.look_ahead,1))),!0})),n(E,"$preprocess_include_directive",(function(t,r){var n,o,f=this,g=S,b=S,v=S,y=S,E=S,O=S,I=S,T=S,z=S,F=S,N=S,L=S,D=S,q=S,B=S,M=S,j=S,P=S,U=S,H=S,Y=S,G=S,W=S,K=S,X=S,V=S,J=S;if(g=f.document,u((b=t)["$include?"](R("ATTR_REF_HEAD")))&&u((b=g.$sub_attributes(t,s(["attribute_missing"],{attribute_missing:h(v=u(y=g.$attributes()["$[]"]("attribute-missing"))?y:R("Compliance").$attribute_missing(),"warn")?"drop-line":v})))["$empty?"]()))return h(v,"drop-line")&&u(g.$sub_attributes(i(t," "),s(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(_(f.$logger(),"info",[],(function e(){var n=null==e.$$s?this:e.$$s;return n.$message_with_context("include dropped due to missing attribute: include::"+t+"["+r+"]",s(["source_location"],{source_location:n.$cursor()}))}),{$$s:f}),f.$shift(),!0):u(g.$parse_attributes(r,[],s(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(_(f.$logger(),"info",[],(function e(){var n=null==e.$$s?this:e.$$s;return n.$message_with_context("optional include dropped "+(h(v,"warn")&&u(g.$sub_attributes(i(t," "),s(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+t+"["+r+"]",s(["source_location"],{source_location:n.$cursor()}))}),{$$s:f}),f.$shift(),!0):(f.$logger().$warn(f.$message_with_context("include dropped "+(h(v,"warn")&&u(g.$sub_attributes(i(t," "),s(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?"due to missing attribute":"because resolved target is blank")+": include::"+t+"["+r+"]",s(["source_location"],{source_location:f.$cursor()}))),f.$replace_next_line("Unresolved directive in "+f.path+" - include::"+t+"["+r+"]"));if(u(f["$include_processors?"]())&&u(E=_(f.include_processor_extensions,"find",[],(function(e){return null==e&&(e=S),e.$instance()["$handles?"](b)}))))return f.$shift(),E.$process_method()["$[]"](g,f,b,g.$parse_attributes(r,[],s(["sub_input"],{sub_input:!0}))),!0;if(u(x(g.$safe(),C(R("SafeMode"),"SECURE"))))return f.$replace_next_line("link:"+b+"[role=include]");if(u(f.maxdepth)){if(u(x(f.include_stack.$size(),f.maxdepth["$[]"]("curr"))))return f.$logger().$error(f.$message_with_context("maximum include depth of "+f.maxdepth["$[]"]("rel")+" exceeded",s(["source_location"],{source_location:f.$cursor()}))),S;switch(O=g.$parse_attributes(r,[],s(["sub_input"],{sub_input:!0})),o=f.$resolve_include_path(b,r,O),n=l(o),I=null==n[0]?S:n[0],T=null==n[1]?S:n[1],z=null==n[2]?S:n[2],T){case"file":F=C("File").$method("open"),N=R("FILE_READ_MODE");break;case"uri":F=C("OpenURI").$method("open_uri"),N=R("URI_READ_MODE");break;default:return I}if(u(R("RUBY_ENGINE_OPAL"))||u(L=O["$[]"]("encoding"))&&u(function(){try{return C("Encoding").$find(L)}catch(t){if(!e.rescue(t,[R("StandardError")]))throw t;try{return S}finally{e.pop_exception()}}}())&&((D=N.$split(":"))["$[]="](1,L),N=D.$join(":")),q=B=S,u(r)&&(u(O["$key?"]("lines"))?(q=[],_(f.$split_delimited_value(O["$[]"]("lines")),"each",[],(function(t){var r,n,o=S,s=S;return null==t&&(t=S),u(t["$include?"](".."))?(n=t.$partition(".."),o=null==(r=l(n))[0]?S:r[0],null==r[1]||r[1],s=null==r[2]?S:r[2],q=i(q,u(s["$empty?"]())||u(w(s=s.$to_i(),0))?[o.$to_i(),C(C("Float"),"INFINITY")]:e.Range.$new(o.$to_i(),s,!1).$to_a())):q["$<<"](t.$to_i())})),q=u(q["$empty?"]())?S:q.$sort().$uniq()):u(O["$key?"]("tag"))?u((M=O["$[]"]("tag"))["$empty?"]())||h(M,"!")||(B=u(M["$start_with?"]("!"))?A(M.$slice(1,M.$length()),!1):A(M,!0)):u(O["$key?"]("tags"))&&(B=s([],{}),_(f.$split_delimited_value(O["$[]"]("tags")),"each",[],(function(e){var t;return null==e&&(e=S),u(e["$empty?"]())||h(e,"!")?S:u(e["$start_with?"]("!"))?(t=[e.$slice(1,e.$length()),!1],_(B,"[]=",t),t[t.length-1]):(_(B,"[]=",t=[e,!0]),t[t.length-1])})),u(B["$empty?"]())&&(B=S))),u(q)){j=(n=[[],S,0])[0],P=n[1],U=n[2];try{_(F,"call",[I,N],(function(e){var t=S;return null==e&&(e=S),t=S,function(){try{var r=p("break");return _(e,"each_line",[],(function(e){var n=S;return null==e&&(e=S),U=i(U,1),u(t)||$(C("Float"),n=q["$[]"](0))&&u(t=n["$infinite?"]())?(P=u(y=P)?y:U,j["$<<"](e)):(h(n,U)&&(P=u(y=P)?y:U,j["$<<"](e),q.$shift()),u(q["$empty?"]())?void r.$throw():S)}))}catch(e){if(e===r)return e.$v;throw e}}()}))}catch(t){if(!e.rescue(t,[R("StandardError")]))throw t;try{return f.$logger().$error(f.$message_with_context("include "+T+" not readable: "+I,s(["source_location"],{source_location:f.$cursor()}))),f.$replace_next_line("Unresolved directive in "+f.path+" - include::"+b+"["+r+"]")}finally{e.pop_exception()}}f.$shift(),u(P)&&(O["$[]="]("partial-option",""),f.$push_include(j,I,z,P,O))}else if(u(B)){n=[[],S,0,[],C("Set").$new(),S],j=n[0],P=n[1],U=n[2],H=n[3],Y=n[4],G=n[5],u(B["$key?"]("**"))?(W=K=B.$delete("**"),u(B["$key?"]("*"))?X=B.$delete("*"):a(W)&&h(B.$values().$first(),!1)&&(X=!0)):u(B["$key?"]("*"))?h(B.$keys().$first(),"*")?W=K=(X=B.$delete("*"))["$!"]():(W=K=!1,X=B.$delete("*")):W=K=B["$value?"](!0)["$!"]();try{_(F,"call",[I,N],(function e(t){var r,n,o;return null==t&&(t=S),n=(r=["::","[]"])[0],o=r[1],_(t,"each_line",[],(function e(t){var r,$,c=null==e.$$s?this:e.$$s,d=S,p=S,f=S;return null==t&&(t=S),U=i(U,1),u(t["$include?"](n))&&u(t["$include?"](o))&&u(R("TagDirectiveRx")["$=~"](t))?(d=(r=k["~"])===S?S:r["$[]"](2),u((r=k["~"])===S?S:r["$[]"](1))?h(d,G)?(H.$pop(),$=u(H["$empty?"]())?[S,K]:H["$[]"](-1),r=l($),G=null==r[0]?S:r[0],W=null==r[1]?S:r[1],$):u(B["$key?"](d))?(p=c.$create_include_cursor(I,b,U),u(f=_(H,"rindex",[],(function(e){return null==e&&(e=S),e["$=="](d)}),{$$has_trailing_comma_in_args:!0}))?(h(f,0)?H.$shift():H.$delete_at(f),c.$logger().$warn(c.$message_with_context("mismatched end tag (expected '"+G+"' but found '"+d+"') at line "+U+" of include "+T+": "+I,s(["source_location","include_location"],{source_location:c.$cursor(),include_location:p})))):c.$logger().$warn(c.$message_with_context("unexpected end tag '"+d+"' at line "+U+" of include "+T+": "+I,s(["source_location","include_location"],{source_location:c.$cursor(),include_location:p})))):S:u(B["$key?"](d))?(u(W=B["$[]"](d))&&Y["$<<"](d),H["$<<"]([G=d,W,U])):a(X["$nil?"]())?(W=(!u(G)||!a(W))&&X,H["$<<"]([G=d,W,U])):S):u(W)?(P=u(y=P)?y:U,j["$<<"](t)):S}),{$$s:null==e.$$s?this:e.$$s})}),{$$s:f})}catch(t){if(!e.rescue(t,[R("StandardError")]))throw t;try{return f.$logger().$error(f.$message_with_context("include "+T+" not readable: "+I,s(["source_location"],{source_location:f.$cursor()}))),f.$replace_next_line("Unresolved directive in "+f.path+" - include::"+b+"["+r+"]")}finally{e.pop_exception()}}u(H["$empty?"]())||_(H,"each",[],(function e(t,r,n){var i=null==e.$$s?this:e.$$s;return null==t&&(t=S),null==n&&(n=S),i.$logger().$warn(i.$message_with_context("detected unclosed tag '"+t+"' starting at line "+n+" of include "+T+": "+I,s(["source_location","include_location"],{source_location:i.$cursor(),include_location:i.$create_include_cursor(I,b,n)})))}),{$$s:f}),u((V=d(_(B,"keep_if",[],(function(e,t){return null==t&&(t=S),t})).$keys(),Y.$to_a()))["$empty?"]())||f.$logger().$warn(f.$message_with_context("tag"+(u(c(V.$size(),1))?"s":"")+" '"+V.$join(", ")+"' not found in include "+T+": "+I,s(["source_location"],{source_location:f.$cursor()}))),f.$shift(),u(P)&&(u(K)&&m(X,!1)&&u(B["$empty?"]())||O["$[]="]("partial-option",""),f.$push_include(j,I,z,P,O))}else try{J=_(F,"call",[I,N],(function(e){return null==e&&(e=S),e.$read()})),f.$shift(),f.$push_include(J,I,z,1,O)}catch(t){if(!e.rescue(t,[R("StandardError")]))throw t;try{return f.$logger().$error(f.$message_with_context("include "+T+" not readable: "+I,s(["source_location"],{source_location:f.$cursor()}))),f.$replace_next_line("Unresolved directive in "+f.path+" - include::"+b+"["+r+"]")}finally{e.pop_exception()}}return!0}return S})),n(E,"$resolve_include_path",(function(e,t,r){var n,i=this,o=S,l=S,c=S;return o=i.document,u(R("Helpers")["$uriish?"](e))||u($(C("String"),i.dir)?S:e=i.dir+"/"+e)?u(o["$attr?"]("allow-uri-read"))?(u(o["$attr?"]("cache-uri"))?u((n=C("::","OpenURI","skip_raise"))&&C(n,"Cache","skip_raise")?"constant":S)||R("Helpers").$require_library("open-uri/cached","open-uri-cached"):a(R("RUBY_ENGINE_OPAL"))&&C("OpenURI"),[C("URI").$parse(e),"uri",e]):i.$replace_next_line("link:"+e+"[role=include]"):(l=o.$normalize_system_path(e,i.dir,S,s(["target_name"],{target_name:"include file"})),u(C("File")["$file?"](l))?(c=o.$path_resolver().$relative_path(l,o.$base_dir()),[l,"file",c]):u(r["$[]"]("optional-option"))?(_(i.$logger(),"info",[],(function e(){var t=null==e.$$s?this:e.$$s;return t.$message_with_context("optional include dropped because include file not found: "+l,s(["source_location"],{source_location:t.$cursor()}))}),{$$s:i}),i.$shift(),!0):(i.$logger().$error(i.$message_with_context("include file not found: "+l,s(["source_location"],{source_location:i.$cursor()}))),i.$replace_next_line("Unresolved directive in "+i.path+" - include::"+e+"["+t+"]")))})),n(E,"$pop_include",(function(){var e,t,r=this;return u(r.include_stack["$empty?"]())||(t=r.include_stack.$pop(),e=l(t),r.lines=null==e[0]?S:e[0],r.file=null==e[1]?S:e[1],r.dir=null==e[2]?S:e[2],r.path=null==e[3]?S:e[3],r.lineno=null==e[4]?S:e[4],r.maxdepth=null==e[5]?S:e[5],r.process_lines=null==e[6]?S:e[6],r.look_ahead=0),S})),n(E,"$split_delimited_value",(function(e){return u(e["$include?"](","))?e.$split(","):e.$split(";")})),n(E,"$skip_front_matter!",(function(e,t){var r,n=this,o=S,s=S,a=S,$=S;if(null==t&&(t=!0),!h(r=e["$[]"](0),"---"))return S;for(o=e.$drop(0),e.$shift(),s=[],u(t)&&(n.lineno=i(n.lineno,1));!u(u(a=$=e["$empty?"]())?a:e["$[]"](0)["$=="](r));)s["$<<"](e.$shift()),u(t)&&(n.lineno=i(n.lineno,1));return u($)?(_(e,"unshift",g(o)),u(t)&&(n.lineno=d(n.lineno,o.$size())),S):(e.$shift(),u(t)&&(n.lineno=i(n.lineno,1)),s)}),-2),n(E,"$resolve_expr_val",(function(e){var t=S;return u(e["$start_with?"]('"'))&&u(e["$end_with?"]('"'))||u(e["$start_with?"]("'"))&&u(e["$end_with?"]("'"))?(t=!0,e=e.$slice(1,d(e.$length(),1))):t=!1,u(e["$include?"](R("ATTR_REF_HEAD")))&&(e=this.document.$sub_attributes(e,s(["attribute_missing"],{attribute_missing:"drop"}))),u(t)?e:u(e["$empty?"]())?S:!!h(e,"true")||!h(e,"false")&&(u(e.$rstrip()["$empty?"]())?" ":u(e["$include?"]("."))?e.$to_f():e.$to_i())}))}(R[0],I("Reader"),R)}(E[0],E)},Opal.modules["asciidoctor/section"]=function(e){var t=e.module,r=e.klass,n=e.hash2,i=e.send2,o=e.find_super,s=e.eqeqeq,a=e.truthy,$=e.rb_plus,l=e.def,u=e.alias,c=e.rb_gt,_=e.eqeq,d=e.not,p=e.send,h=e.defs,f=[],m=e.nil;return e.add_stubs("attr_accessor,attr_reader,===,+,level,special,title,generate_id,>,==,sectnum,!,empty?,reftext,sub_placeholder,sub_quotes,compat_mode,[],attributes,context,assign_numeral,class,object_id,inspect,size,[]=,chr,length,gsub,downcase,delete,tr_s,end_with?,chop,start_with?,slice,key?,catalog,unique_id_start_index"),function(f,g){var b=[t(f,"Asciidoctor")].concat(g),v=e.$r(b);return function(t,f,g){var b=r(t,f,"Section"),v=[b].concat(g),y=e.$r(v),x=b.$$prototype;return x.document=x.next_section_index=x.parent=x.level=x.numeral=x.numbered=x.sectname=x.title=x.blocks=m,b.$attr_accessor("index"),b.$attr_accessor("sectname"),b.$attr_accessor("special"),b.$attr_accessor("numbered"),b.$attr_reader("caption"),l(b,"$initialize",(function e(t,r,l,u){var c,_=this,d=m;return e.$$p=null,null==t&&(t=m),null==r&&(r=m),null==l&&(l=!1),null==u&&(u=n([],{})),i(_,o(_,"initialize",e,!1,!0),"initialize",[t,"section",u],null),s(y("Section"),t)?(c=[a(d=r)?d:$(t.$level(),1),t.$special()],_.level=c[0],_.special=c[1]):(c=[a(d=r)?d:1,!1],_.level=c[0],_.special=c[1]),_.numbered=l,_.index=0}),-1),u(b,"name","title"),l(b,"$generate_id",(function(){return y("Section").$generate_id(this.$title(),this.document)})),l(b,"$sections?",(function(){return c(this.next_section_index,0)})),l(b,"$sectnum",(function(e,t){var r,n=this;return null==e&&(e="."),null==t&&(t=m),t=a(r=t)?r:_(t,!1)?"":e,a(c(n.level,1))&&s(y("Section"),n.parent)?""+n.parent.$sectnum(e,e)+n.numeral+t:""+n.numeral+t}),-1),l(b,"$xreftext",(function(e){var t=this,r=m,n=m,i=m,o=m;if(null==e&&(e=m),a(r=t.$reftext())&&d(r["$empty?"]()))return r;if(!a(e))return t.$title();if(!a(t.numbered))return _(n=t.sectname,"chapter")||_(n,"appendix")?t.$sub_placeholder(t.$sub_quotes("_%s_"),t.$title()):t.$title();switch(e){case"full":return i=_(n=t.sectname,"chapter")||_(n,"appendix")?t.$sub_placeholder(t.$sub_quotes("_%s_"),t.$title()):t.$sub_placeholder(t.$sub_quotes(a(t.document.$compat_mode())?"``%s''":'"`%s`"'),t.$title()),a(o=t.document.$attributes()["$[]"](n+"-refsig"))?o+" "+t.$sectnum(".",",")+" "+i:t.$sectnum(".",",")+" "+i;case"short":return a(o=t.document.$attributes()["$[]"](t.sectname+"-refsig"))?o+" "+t.$sectnum(".",""):t.$sectnum(".","");default:return _(n=t.sectname,"chapter")||_(n,"appendix")?t.$sub_placeholder(t.$sub_quotes("_%s_"),t.$title()):t.$title()}}),-1),l(b,"$<<",(function e(t){var r=e.$$p||m,n=this;return e.$$p=null,_(t.$context(),"section")&&n.$assign_numeral(t),i(n,o(n,"<<",e,!1,!0),"<<",[t],r)})),l(b,"$to_s",(function e(){var t=e.$$p||m,r=this,n=m;return e.$$p=null,a(r.title)?(n=a(r.numbered)?r.$sectnum()+" "+r.title:r.title,"#<"+r.$class()+"@"+r.$object_id()+" {level: "+r.level+", title: "+n.$inspect()+", blocks: "+r.blocks.$size()+"}>"):i(r,o(r,"to_s",e,!1,!0),"to_s",[],t)})),h(b,"$generate_id",(function(e,t){var r,n,i=m,o=m,s=m,l=m,u=m,c=m,h=m,f=m,g=m;if(i=t.$attributes(),o=a(n=i["$[]"]("idprefix"))?n:"_",a(s=i["$[]"]("idseparator"))?(_(s.$length(),1)||d(l=s["$empty?"]())&&a((r=["idseparator",s.$chr()],p(i,"[]=",r),s=r[r.length-1])))&&(u=_(s,"-")||_(s,".")?" .-":" "+s+".-"):(s=(r=["_"," _.-"])[0],u=r[1]),c=""+o+e.$downcase().$gsub(y("InvalidSectionIdCharsRx"),""),a(l)?c=c.$delete(" "):(c=c.$tr_s(u,s),a(c["$end_with?"](s))&&(c=c.$chop()),a(o["$empty?"]())&&a(c["$start_with?"](s))&&(c=c.$slice(1,c.$length()))),a(t.$catalog()["$[]"]("refs")["$key?"](c))){for(h=t.$catalog()["$[]"]("refs"),f=y("Compliance").$unique_id_start_index();a(h["$[]"](g=""+c+s+f));)f=$(f,1);return g}return c}))}(b[0],v("AbstractBlock"),b)}(f[0],f)},Opal.modules["asciidoctor/stylesheets"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.return_ivar,o=e.defs,s=e.def,a=e.truthy,$=e.hash2,l=[],u=e.nil,c=e.$$$;return e.add_stubs("join,new,rstrip,read,primary_stylesheet_data,write,primary_stylesheet_name,stylesheet_basename,for,read_stylesheet,coderay_stylesheet_data,coderay_stylesheet_name,pygments_stylesheet_data,pygments_stylesheet_name"),function(l,_){var d=[t(l,"Asciidoctor")].concat(_);return function(t,l,_){var d=r(t,null,"Stylesheets"),p=[d].concat(_),h=e.$r(p);return d.$$prototype.primary_stylesheet_data=u,n(p[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),n(p[0],"STYLESHEETS_DIR",c("File").$join(h("DATA_DIR"),"stylesheets")),d.__instance__=d.$new(),o(d,"$instance",i("__instance__")),s(d,"$primary_stylesheet_name",(function(){return h("DEFAULT_STYLESHEET_NAME")})),s(d,"$primary_stylesheet_data",(function(){var e;return this.primary_stylesheet_data=a(e=this.primary_stylesheet_data)?e:c("File").$read(c("File").$join(h("STYLESHEETS_DIR"),"asciidoctor-default.css"),$(["mode"],{mode:h("FILE_READ_MODE")})).$rstrip()})),s(d,"$embed_primary_stylesheet",(function(){return""})),s(d,"$write_primary_stylesheet",(function(e){return null==e&&(e="."),c("File").$write(c("File").$join(e,this.$primary_stylesheet_name()),this.$primary_stylesheet_data(),$(["mode"],{mode:h("FILE_WRITE_MODE")}))}),-1),s(d,"$coderay_stylesheet_name",(function(){return h("SyntaxHighlighter").$for("coderay").$stylesheet_basename()})),s(d,"$coderay_stylesheet_data",(function(){return h("SyntaxHighlighter").$for("coderay").$read_stylesheet()})),s(d,"$embed_coderay_stylesheet",(function(){return""})),s(d,"$write_coderay_stylesheet",(function(e){return null==e&&(e="."),c("File").$write(c("File").$join(e,this.$coderay_stylesheet_name()),this.$coderay_stylesheet_data(),$(["mode"],{mode:h("FILE_WRITE_MODE")}))}),-1),s(d,"$pygments_stylesheet_name",(function(e){return null==e&&(e=u),h("SyntaxHighlighter").$for("pygments").$stylesheet_basename(e)}),-1),s(d,"$pygments_stylesheet_data",(function(e){return null==e&&(e=u),h("SyntaxHighlighter").$for("pygments").$read_stylesheet(e)}),-1),s(d,"$embed_pygments_stylesheet",(function(e){return null==e&&(e=u),""}),-1),s(d,"$write_pygments_stylesheet",(function(e,t){return null==e&&(e="."),null==t&&(t=u),c("File").$write(c("File").$join(e,this.$pygments_stylesheet_name(t)),this.$pygments_stylesheet_data(t),$(["mode"],{mode:h("FILE_WRITE_MODE")}))}),-1)}(d[0],0,d)}(l[0],l)},Opal.modules["asciidoctor/table"]=function(e){var t=e.module,r=e.klass,n=e.const_set,i=e.def,o=e.alias,s=e.hash2,a=e.send2,$=e.find_super,l=e.truthy,u=e.rb_lt,c=e.rb_gt,_=e.eqeq,d=e.rb_times,p=e.rb_divide,h=e.send,f=e.rb_plus,m=e.rb_minus,g=e.return_val,b=e.to_a,v=e.gvars,y=e.neqeq,x=e.return_ivar,k=e.to_ary,w=e.regexp,A=e.not,E=e.thrower,S=[],C=e.nil,O=e.$$$;return e.add_stubs("attr_accessor,send,attr_reader,new,[],<,>,to_i,==,[]=,attributes,truncate,*,/,to_f,empty?,body,each,<<,size,+,assign_column_widths,warn,logger,-,update_attributes,assign_width,round,head=,map,shift,reinitialize,nil?,unshift,foot=,pop,parent,sourcemap,dup,header_row?,table,style,merge,delete,start_with?,rstrip,slice,length,advance,lstrip,strip,split,include?,readlines,catalog_inline_anchor,=~,apply_subs,attr_writer,convert,text,!=,file,lineno,include,to_set,mark,key?,nested?,document,error,message_with_context,cursor_at_prev_line,nil_or_empty?,escape,columns,match,chop,end_with?,gsub,!,push_cellspec,cell_open?,close_cell,take_cellspec,squeeze,upto,times,cursor_before_mark,rowspan,activate_rowspan,colspan,end_of_row?,close_row,private,rows,effective_column_visits"),function(S,R){var I=[t(S,"Asciidoctor")].concat(R),T=e.$r(I);return function(t,g,b){var v=r(t,g,"Table"),y=[v].concat(b),x=e.$r(y),k=v.$$prototype;k.attributes=k.document=k.rows=k.has_header_option=k.columns=C,n(y[0],"DEFAULT_PRECISION",4),function(e,t){var n=r(e,null,"Rows"),a=n.$$prototype;a.head=a.body=a.foot=C,n.$attr_accessor("head","foot","body"),i(n,"$initialize",(function(e,t,r){var n=this;return null==e&&(e=[]),null==t&&(t=[]),null==r&&(r=[]),n.head=e,n.foot=t,n.body=r}),-1),o(n,"[]","send"),i(n,"$by_section",(function(){var e=this;return[["head",e.head],["body",e.body],["foot",e.foot]]})),i(n,"$to_h",(function(){var e=this;return s(["head","body","foot"],{head:e.head,body:e.body,foot:e.foot})}))}(y[0]),v.$attr_accessor("columns"),v.$attr_accessor("rows"),v.$attr_accessor("has_header_option"),v.$attr_reader("caption"),i(v,"$initialize",(function e(t,r){var n,i=this,o=C,s=C,f=C;return e.$$p=null,a(i,$(i,"initialize",e,!1,!0),"initialize",[t,"table"],null),i.rows=x("Rows").$new(),i.columns=[],i.has_header_option=!1,l(o=r["$[]"]("width"))?(l(c(s=o.$to_i(),100))||l(u(s,1)))&&(_(s,0)&&(_(o,"0")||_(o,"0%"))||(s=100)):s=100,i.attributes["$[]="]("tablepcwidth",s),l(i.document.$attributes()["$[]"]("pagewidth"))&&i.attributes["$[]="]("tableabswidth",_(f=d(p(s,100),i.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(x("DEFAULT_PRECISION")),f.$to_i())?f.$to_i():f),l(r["$[]"]("rotate-option"))?(n=["orientation","landscape"],h(i.attributes,"[]=",n),n[n.length-1]):C})),i(v,"$header_row?",(function(){var e;return l(e=this.has_header_option)&&l(this.rows.$body()["$empty?"]())?e:C})),i(v,"$create_columns",(function(e){var t,r=this,n=C,i=C,o=C;return n=[],i=C,o=0,h(e,"each",[],(function e(t){var r,s=null==e.$$s?this:e.$$s,a=C;return null==t&&(t=C),r=t["$[]"]("width"),n["$<<"](x("Column").$new(s,n.$size(),t)),l(u(r,0))?(i=l(a=i)?a:[])["$<<"](n["$[]"](-1)):o=f(o,r)}),{$$s:r}),l(c(t=(r.columns=n).$size(),0))&&(r.attributes["$[]="]("colcount",t),l(c(o,0))||l(i)||(o=C),r.$assign_column_widths(o,i)),C})),i(v,"$assign_column_widths",(function(e,t){var r,n=this,i=C,o=C,a=C,$=C;return null==e&&(e=C),null==t&&(t=C),r=x("DEFAULT_PRECISION"),i=o=0,l(e)?(l(t)&&(l(c(e,100))?(a=0,n.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+e+"%")):(a=p(m(100,e),t.$size()).$truncate(r),_(a.$to_i(),a)&&(a=a.$to_i()),e=100),$=s(["width","autowidth-option"],{width:a,"autowidth-option":""}),h(t,"each",[],(function(e){return null==e&&(e=C),e.$update_attributes($)}))),h(n.columns,"each",[],(function(t){return null==t&&(t=C),i=f(i,o=t.$assign_width(C,e,r))}))):(o=p(100,n.columns.$size()).$truncate(r),_(o.$to_i(),o)&&(o=o.$to_i()),h(n.columns,"each",[],(function(e){return null==e&&(e=C),i=f(i,e.$assign_width(o,C,r))}))),_(i,100)||n.columns["$[]"](-1).$assign_width(f(m(100,i),o).$round(r),C,r),C}),-1),i(v,"$partition_header_footer",(function(e){var t,r=this,n=C,i=C;return t=["rowcount",(i=r.rows.$body()).$size()],h(r.attributes,"[]=",t),l(c(n=t[t.length-1],0))&&(l(r.has_header_option)?(r.rows["$head="]([h(i.$shift(),"map",[],(function(e){return null==e&&(e=C),e.$reinitialize(!0)}))]),n=m(n,1)):l(r.has_header_option["$nil?"]())&&(r.has_header_option=!1,i.$unshift(h(i.$shift(),"map",[],(function(e){return null==e&&(e=C),e.$reinitialize(!1)}))))),l(c(n,0))&&l(e["$[]"]("footer-option"))&&r.rows["$foot="]([i.$pop()]),C}))}(I[0],T("AbstractBlock"),I),function(e,t){var n=r(e,t,"Column");n.$$prototype.attributes=C,n.$attr_accessor("style"),i(n,"$initialize",(function e(t,r,n){var i=this;return e.$$p=null,null==n&&(n=s([],{})),a(i,$(i,"initialize",e,!1,!0),"initialize",[t,"table_column"],null),i.style=n["$[]"]("style"),n["$[]="]("colnumber",f(r,1)),l(n["$[]"]("width"))||n["$[]="]("width",1),l(n["$[]"]("halign"))||n["$[]="]("halign","left"),l(n["$[]"]("valign"))||n["$[]="]("valign","top"),i.$update_attributes(n)}),-3),o(n,"table","parent"),i(n,"$assign_width",(function(e,t,r){var n,i=this,o=C;return l(t)&&(e=p(d(i.attributes["$[]"]("width").$to_f(),100),t).$truncate(r),_(e.$to_i(),e)&&(e=e.$to_i())),l(i.$parent().$attributes()["$[]"]("tableabswidth"))&&i.attributes["$[]="]("colabswidth",_(o=d(p(e,100),i.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(r),o.$to_i())?o.$to_i():o),n=["colpcwidth",e],h(i.attributes,"[]=",n),n[n.length-1]})),i(n,"$block?",g(!1)),i(n,"$inline?",g(!1))}(T("Table"),T("AbstractNode")),function(t,c,p){var m=r(t,c,"Cell"),g=[m].concat(p),k=e.$r(g),w=m.$$prototype;w.document=w.reinitialize_args=w.attributes=w.cursor=w.text=w.subs=w.style=w.inner_document=w.source_location=w.colspan=w.rowspan=C,n(g[0],"DOUBLE_LF",d(k("LF"),2)),m.$attr_accessor("colspan"),m.$attr_accessor("rowspan"),o(m,"column","parent"),m.$attr_reader("inner_document"),i(m,"$initialize",(function e(t,r,n,i){var o,c=this,d=C,p=C,m=C,g=C,v=C,y=C,x=C,w=C,A=C,E=C,S=C,O=C,R=C;if(e.$$p=null,null==n&&(n=s([],{})),null==i&&(i=s([],{})),a(c,$(c,"initialize",e,!1,!0),"initialize",[t,"table_cell"],null),c.cursor=c.reinitialize_args=C,l(c.document.$sourcemap())&&(c.source_location=i["$[]"]("cursor").$dup()),l(t)&&(l(d=t.$table()["$header_row?"]())?_(d,"implicit")&&l(p=l(m=t.$style())?m:l(g=n)?n["$[]"]("style"):g)&&((_(p,"asciidoc")||_(p,"literal"))&&(c.reinitialize_args=[t,r,l(m=n)?n.$merge():m,i]),p=C):p=t.$style(),c.$update_attributes(t.$attributes())),l(n))switch(l(n["$empty?"]())?c.colspan=c.rowspan=C:(o=[n.$delete("colspan"),n.$delete("rowspan")],c.colspan=o[0],c.rowspan=o[1],l(d)||(p=l(m=n["$[]"]("style"))?m:p),c.$update_attributes(n)),p){case"asciidoc":if(v=!0,y=i["$[]"]("cursor"),l((r=r.$rstrip())["$start_with?"](k("LF")))){for(x=1;l((r=r.$slice(1,r.$length()))["$start_with?"](k("LF")));)x=f(x,1);y.$advance(x)}else r=r.$lstrip();break;case"literal":for(w=!0,r=r.$rstrip();l(r["$start_with?"](k("LF")));)r=r.$slice(1,r.$length());break;default:A=!0,r=l(r)?r.$strip():""}else c.colspan=c.rowspan=C,_(p,"asciidoc")&&(v=!0,y=i["$[]"]("cursor"));return l(v)?(E=c.document.$attributes().$delete("doctitle"),S=r.$split(k("LF"),-1),l(S["$empty?"]())||l((O=S["$[]"](0))["$include?"]("::"))&&(R=k("PreprocessorReader").$new(c.document,[O]).$readlines(),_(O,R["$[]"](0))&&l(u(R.$size(),2))||(S.$shift(),l(R["$empty?"]())||h(S,"unshift",b(R)))),c.inner_document=k("Document").$new(S,s(["standalone","parent","cursor"],{standalone:!1,parent:c.document,cursor:y})),l(E["$nil?"]())||c.document.$attributes()["$[]="]("doctitle",E),c.subs=C):l(w)?(c.content_model="verbatim",c.subs=k("BASIC_SUBS")):(l(A)&&(l(d)?c.cursor=i["$[]"]("cursor"):c.$catalog_inline_anchor(r,i["$[]"]("cursor"))),c.content_model="simple",c.subs=k("NORMAL_SUBS")),c.text=r,c.style=p}),-3),i(m,"$reinitialize",(function(e){var t=this;if(l(e))t.reinitialize_args=C;else{if(l(t.reinitialize_args))return h(O(k("Table"),"Cell"),"new",b(t.reinitialize_args));t.style=t.attributes["$[]"]("style")}return l(t.cursor)&&t.$catalog_inline_anchor(),t})),i(m,"$catalog_inline_anchor",(function(e,t){var r,n=this;return null==e&&(e=n.text),null==t&&(t=C),l(t)||(t=(r=[n.cursor,C])[0],n.cursor=r[1]),l(e["$start_with?"]("[["))&&l(k("LeadingInlineAnchorRx")["$=~"](e))?k("Parser").$catalog_inline_anchor((r=v["~"])===C?C:r["$[]"](1),(r=v["~"])===C?C:r["$[]"](2),n,t,n.document):C}),-1),i(m,"$text",(function(){var e=this;return e.$apply_subs(e.text,e.subs)})),m.$attr_writer("text"),i(m,"$content",(function(){var e,t=this,r=C;return _(e=t.style,"asciidoc")?t.inner_document.$convert():l(t.text["$include?"](k("DOUBLE_LF")))?h(t.$text().$split(k("BlankLineRx")),"map",[],(function t(r){var n=null==t.$$s?this:t.$$s;return null==r&&(r=C),l(e)&&y(e,"header")?k("Inline").$new(n.$parent(),"quoted",r,s(["type"],{type:e})).$convert():r}),{$$s:t}):l((r=t.$text())["$empty?"]())?[]:l(e)&&y(e,"header")?[k("Inline").$new(t.$parent(),"quoted",r,s(["type"],{type:e})).$convert()]:[r]})),i(m,"$lines",(function(){return this.text.$split(k("LF"))})),i(m,"$source",x("text")),i(m,"$file",(function(){var e;return l(e=this.source_location)?this.source_location.$file():e})),i(m,"$lineno",(function(){var e;return l(e=this.source_location)?this.source_location.$lineno():e})),i(m,"$to_s",(function e(){var t=e.$$p||C,r=this,n=C;return e.$$p=null,a(r,$(r,"to_s",e,!1,!0),"to_s",[],t)+" - [text: "+r.text+", colspan: "+(l(n=r.colspan)?n:1)+", rowspan: "+(l(n=r.rowspan)?n:1)+", attributes: "+r.attributes+"]"}))}(T("Table"),T("AbstractBlock"),I),function(t,o,a){var $=r(t,null,"ParserContext"),u=[$].concat(a),d=e.$r(u),p=$.$$prototype;return p.delimiter=p.delimiter_rx=p.buffer=p.cellspecs=p.cell_open=p.format=p.start_cursor_data=p.reader=p.table=p.current_row=p.colcount=p.column_visits=p.active_rowspans=p.linenum=C,$.$include(d("Logging")),n(u[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),n(u[0],"DELIMITERS",s(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:["\t",/\t/],"!sv":["!",/!/]})),$.$attr_accessor("table"),$.$attr_accessor("format"),$.$attr_reader("colcount"),$.$attr_accessor("buffer"),$.$attr_reader("delimiter"),$.$attr_reader("delimiter_re"),i($,"$initialize",(function(e,t,r){var n,i,o=this,a=C,$=C;return null==r&&(r=s([],{})),o.start_cursor_data=(o.reader=e).$mark(),o.table=t,l(r["$key?"]("format"))?l(d("FORMATS")["$include?"](a=r["$[]"]("format")))?_(a,"tsv")?o.format="csv":_(o.format=a,"psv")&&l(t.$document()["$nested?"]())&&(a="!sv"):(o.$logger().$error(o.$message_with_context("illegal table format: "+a,s(["source_location"],{source_location:e.$cursor_at_prev_line()}))),n=["psv",l(t.$document()["$nested?"]())?"!sv":"psv"],o.format=n[0],a=n[1]):(n=["psv",l(t.$document()["$nested?"]())?"!sv":"psv"],o.format=n[0],a=n[1]),l(r["$key?"]("separator"))?l(($=r["$[]"]("separator"))["$nil_or_empty?"]())?(i=d("DELIMITERS")["$[]"](a),n=k(i),o.delimiter=null==n[0]?C:n[0],o.delimiter_rx=null==n[1]?C:n[1]):_($,"\\t")?(i=d("DELIMITERS")["$[]"]("tsv"),n=k(i),o.delimiter=null==n[0]?C:n[0],o.delimiter_rx=null==n[1]?C:n[1]):(n=[$,w([O("Regexp").$escape($)])],o.delimiter=n[0],o.delimiter_rx=n[1]):(i=d("DELIMITERS")["$[]"](a),n=k(i),o.delimiter=null==n[0]?C:n[0],o.delimiter_rx=null==n[1]?C:n[1]),o.colcount=l(t.$columns()["$empty?"]())?-1:t.$columns().$size(),o.buffer="",o.cellspecs=[],o.cell_open=!1,o.active_rowspans=[0],o.column_visits=0,o.current_row=[],o.linenum=-1}),-3),i($,"$starts_with_delimiter?",(function(e){return e["$start_with?"](this.delimiter)})),i($,"$match_delimiter",(function(e){return this.delimiter_rx.$match(e)})),i($,"$skip_past_delimiter",(function(e){var t=this;return t.buffer=""+t.buffer+e+t.delimiter,C})),i($,"$skip_past_escaped_delimiter",(function(e){var t=this;return t.buffer=""+t.buffer+e.$chop()+t.delimiter,C})),i($,"$buffer_has_unclosed_quotes?",(function(e,t){var r=C,n=C,i=C,o=C;return null==e&&(e=C),null==t&&(t='"'),!!_(r=l(e)?f(this.buffer,e).$strip():this.buffer.$strip(),t)||!!l(r["$start_with?"](t))&&(n=f(t,t),l(i=r["$end_with?"](t))&&l(r["$end_with?"](n))||l(r["$start_with?"](n))?l(o=(r=r.$gsub(n,""))["$start_with?"](t))?r["$end_with?"](t)["$!"]():o:i["$!"]())}),-1),i($,"$take_cellspec",(function(){return this.cellspecs.$shift()})),i($,"$push_cellspec",(function(e){var t;return null==e&&(e=s([],{})),this.cellspecs["$<<"](l(t=e)?t:s([],{})),C}),-1),i($,"$keep_cell_open",(function(){return this.cell_open=!0,C})),i($,"$mark_cell_closed",(function(){return this.cell_open=!1,C})),i($,"$cell_open?",x("cell_open")),i($,"$cell_closed?",(function(){return this.cell_open["$!"]()})),i($,"$close_open_cell",(function(e){var t=this;return null==e&&(e=s([],{})),t.$push_cellspec(e),l(t["$cell_open?"]())&&t.$close_cell(!0),t.$advance(),C}),-1),i($,"$close_cell",(function(e){try{var t=E("return"),r=this,n=C,i=C,o=C,a=C,$=C;return null==e&&(e=!1),_(r.format,"psv")?(n=r.buffer,r.buffer="",l(i=r.$take_cellspec())?o=l(a=i.$delete("repeatcol"))?a:1:(r.$logger().$error(r.$message_with_context("table missing leading separator; recovering automatically",s(["source_location"],{source_location:h(O(d("Reader"),"Cursor"),"new",b(r.start_cursor_data))}))),i=s([],{}),o=1)):(n=r.buffer.$strip(),r.buffer="",i=C,o=1,_(r.format,"csv")&&A(n["$empty?"]())&&l(n["$include?"]($='"'))&&(l(n["$start_with?"]($))&&l(n["$end_with?"]($))?l(n=n.$slice(1,m(n.$length(),2)))?n=n.$strip().$squeeze($):(r.$logger().$error(r.$message_with_context("unclosed quote in CSV data; setting cell to empty",s(["source_location"],{source_location:r.reader.$cursor_at_prev_line()}))),n=""):n=n.$squeeze($))),h(1,"upto",[o],(function r($){var u=null==r.$$s?this:r.$$s,p=C,g=C,b=C,v=C;return null==u.colcount&&(u.colcount=C),null==u.table&&(u.table=C),null==u.current_row&&(u.current_row=C),null==u.reader&&(u.reader=C),null==u.column_visits&&(u.column_visits=C),null==u.linenum&&(u.linenum=C),null==$&&($=C),_(u.colcount,-1)?(u.table.$columns()["$<<"](p=O(d("Table"),"Column").$new(u.table,m(f(u.table.$columns().$size(),$),1))),l(i)&&l(i["$key?"]("colspan"))&&l(c(g=m(i["$[]"]("colspan").$to_i(),1),0))&&(b=u.table.$columns().$size(),h(g,"times",[],(function e(t){var r=null==e.$$s?this:e.$$s;return null==r.table&&(r.table=C),null==t&&(t=C),r.table.$columns()["$<<"](O(d("Table"),"Column").$new(r.table,f(b,t)))}),{$$s:u}))):l(p=u.table.$columns()["$[]"](u.current_row.$size()))||(u.$logger().$error(u.$message_with_context("dropping cell because it exceeds specified number of columns",s(["source_location"],{source_location:u.reader.$cursor_before_mark()}))),t.$throw()),v=O(d("Table"),"Cell").$new(p,n,i,s(["cursor"],{cursor:u.reader.$cursor_before_mark()})),u.reader.$mark(),A(v.$rowspan())||_(v.$rowspan(),1)||u.$activate_rowspan(v.$rowspan(),l(a=v.$colspan())?a:1),u.column_visits=f(u.column_visits,l(a=v.$colspan())?a:1),u.current_row["$<<"](v),l(u["$end_of_row?"]())&&(y(u.colcount,-1)||l(c(u.linenum,0))||l(e)&&_($,o))?u.$close_row():C}),{$$s:r,$$ret:t}),r.cell_open=!1,C}catch(e){if(e===t)return e.$v;throw e}}),-1),$.$private(),i($,"$close_row",(function(){var e=this;return e.table.$rows().$body()["$<<"](e.current_row),_(e.colcount,-1)&&(e.colcount=e.column_visits),e.column_visits=0,e.current_row=[],e.active_rowspans.$shift(),l(e.active_rowspans["$[]"](0))||e.active_rowspans["$[]="](0,0),C})),i($,"$activate_rowspan",(function(e,t){return h(1,"upto",[m(e,1)],(function e(r){var n,i,o=null==e.$$s?this:e.$$s;return null==o.active_rowspans&&(o.active_rowspans=C),null==r&&(r=C),n=[r,f(l(i=o.active_rowspans["$[]"](r))?i:0,t)],h(o.active_rowspans,"[]=",n),n[n.length-1]}),{$$s:this}),C})),i($,"$end_of_row?",(function(){var e,t=this;return l(e=t.colcount["$=="](-1))?e:t.$effective_column_visits()["$=="](t.colcount)})),i($,"$effective_column_visits",(function(){return f(this.column_visits,this.active_rowspans["$[]"](0))})),i($,"$advance",(function(){return this.linenum=f(this.linenum,1)}))}(T("Table"),0,I)}(S[0],S)},Opal.modules["asciidoctor/writer"]=function(e){var t=e.module,r=e.truthy,n=e.rb_plus,i=e.hash2,o=e.def,s=e.return_val,a=[],$=e.nil,l=e.$$$;return e.add_stubs("respond_to?,write,+,chomp,include"),function(a,u){var c=[t(a,"Asciidoctor")].concat(u);return function(s,a){var u=t(s,"Writer"),c=[u].concat(a),_=e.$r(c);o(u,"$write",(function(e,t){return r(t["$respond_to?"]("write"))?t.$write(n(e.$chomp(),_("LF"))):l("File").$write(t,e,i(["mode"],{mode:_("FILE_WRITE_MODE")})),$}))}(c[0],c),function(r,n){var i=t(r,"VoidWriter"),a=[i].concat(n),l=e.$r(a);return i.$include(l("Writer")),o(i,"$write",s($))}(c[0],c)}(a[0],a)},Opal.modules["asciidoctor/load"]=function(e){var t=e.module,r=e.hash2,n=e.truthy,i=e.neqeq,o=e.not,s=e.eqeqeq,a=e.send,$=e.to_ary,l=e.rb_plus,u=e.eqeq,c=e.def,_=[],d=e.nil,p=e.$$$;return e.add_stubs("merge,[],start,!=,logger,key?,logger=,new,!,===,dup,tap,each,partition,[]=,split,gsub,+,respond_to?,keys,raise,join,ancestors,class,==,at,to_i,mtime,absolute_path,path,dirname,basename,extname,read,rewind,drop,record,parse,exception,message,set_backtrace,backtrace,stack_trace=,stack_trace,open,load"),function(_,h){var f=t(_,"Asciidoctor"),m=[f].concat(h);return function(t,_){var h=[t].concat(_),f=e.$r(h);return c(t,"$load",(function(t,c){var _,h,m,g=this,b=d,v=d,y=d,x=d,k=d,w=d,A=d,E=d,S=d,C=d;null==c&&(c=r([],{}));try{if(c=c.$merge(),n(b=c["$[]"]("timings"))&&b.$start("read"),n(c["$key?"]("logger"))&&i(v=c["$[]"]("logger"),f("LoggerManager").$logger())&&f("LoggerManager")["$logger="](n(y=v)?y:f("NullLogger").$new()),o(x=c["$[]"]("attributes"))?x=r([],{}):s(p("Hash"),x)?x=x.$merge():n((h=p("::","Java","skip_raise"))&&(_=p(h,"JavaUtil","skip_raise"))&&p(_,"Map","skip_raise")?"constant":d)&&s(p(p(p("Java"),"JavaUtil"),"Map"),x)?x=x.$dup():s(p("Array"),x)?x=a(r([],{}),"tap",[],(function(e){return null==e&&(e=d),a(x,"each",[],(function(t){var r,n,i,o;return null==t&&(t=d),n=t.$partition("="),i=null==(r=$(n))[0]?d:r[0],null==r[1]?d:r[1],o=null==r[2]?d:r[2],a(e,"[]=",r=[i,o]),r[r.length-1]}))})):s(p("String"),x)?x=a(r([],{}),"tap",[],(function(e){return null==e&&(e=d),a(x.$gsub(f("SpaceDelimiterRx"),l("\\1",f("NULL"))).$gsub(f("EscapedSpaceRx"),"\\1").$split(f("NULL")),"each",[],(function(t){var r,n,i,o;return null==t&&(t=d),n=t.$partition("="),i=null==(r=$(n))[0]?d:r[0],null==r[1]?d:r[1],o=null==r[2]?d:r[2],a(e,"[]=",r=[i,o]),r[r.length-1]}))})):n(x["$respond_to?"]("keys"))&&n(x["$respond_to?"]("[]"))?x=a(r([],{}),"tap",[],(function(e){return null==e&&(e=d),a(x.$keys(),"each",[],(function(t){var r;return null==t&&(t=d),r=[t,x["$[]"](t)],a(e,"[]=",r),r[r.length-1]}))})):g.$raise(p("ArgumentError"),"illegal type for attributes option: "+x.$class().$ancestors().$join(" < ")),s(p("File"),t))c["$[]="]("input_mtime",u(f("RUBY_ENGINE"),"jruby")?p("Time").$at(t.$mtime().$to_i()):t.$mtime()),x["$[]="]("docfile",k=p("File").$absolute_path(t.$path())),x["$[]="]("docdir",p("File").$dirname(k)),x["$[]="]("docname",f("Helpers").$basename(k,(m=["docfilesuffix",f("Helpers").$extname(k)],a(x,"[]=",m),m[m.length-1]))),w=t.$read();else if(n(t["$respond_to?"]("read"))){try{t.$rewind()}catch(t){if(!e.rescue(t,[f("StandardError")]))throw t;e.pop_exception()}w=t.$read()}else s(p("String"),t)?w=t:s(p("Array"),t)?w=t.$drop(0):n(t)&&g.$raise(p("ArgumentError"),"unsupported input type: "+t.$class());return n(b)&&(b.$record("read"),b.$start("parse")),c["$[]="]("attributes",x),A=u(c["$[]"]("parse"),!1)?f("Document").$new(w,c):f("Document").$new(w,c).$parse(),n(b)&&b.$record("parse"),A}catch(t){if(!e.rescue(t,[f("StandardError")]))throw t;E=t;try{try{S="asciidoctor: FAILED: "+(n(y=x["$[]"]("docfile"))?y:"")+": Failed to load AsciiDoc document",n(E["$respond_to?"]("exception"))?(C=E.$exception(S+" - "+E.$message())).$set_backtrace(E.$backtrace()):(C=E.$class().$new(S,E))["$stack_trace="](E.$stack_trace())}catch(t){if(!e.rescue(t,[f("StandardError")]))throw t;try{C=E}finally{e.pop_exception()}}return g.$raise(C)}finally{e.pop_exception()}}}),-2),c(t,"$load_file",(function(e,t){return null==t&&(t=r([],{})),a(p("File"),"open",[e,f("FILE_READ_MODE")],(function e(r){return null==r&&(r=d),(null==e.$$s?this:e.$$s).$load(r,t)}),{$$s:this})}),-2)}(e.get_singleton_class(f),m)}(_[0],_)},Opal.modules["asciidoctor/convert"]=function(e){var t=e.module,r=e.hash2,n=e.eqeqeq,i=e.truthy,o=e.eqeq,s=e.rb_ge,a=e.not,$=e.rb_lt,l=e.neqeq,u=e.def,c=e.send,_=e.alias,d=[],p=e.nil,h=e.$$$;return e.add_stubs("delete,merge,===,absolute_path,path,load,respond_to?,[]=,key?,fetch,[],dirname,expand_path,join,attributes,outfilesuffix,==,raise,pwd,>=,safe,normalize_system_path,mkdir_p,directory?,!,convert,write,attr,uriish?,basebackend?,attr?,<,include?,syntax_highlighter,write_stylesheet?,write_primary_stylesheet,instance,to_s,read_asset,file?,!=,write_stylesheet,open,convert_file"),function(d,f){var m=t(d,"Asciidoctor"),g=[m].concat(f);return function(t,d){var f=[t].concat(d),m=e.$r(f);return u(t,"$convert",(function(e,t){var u,c,_=this,d=p,f=p,g=p,b=p,v=p,y=p,x=p,k=p,w=p,A=p,E=p,S=p,C=p,O=p,R=p,I=p,T=p,z=p,F=p,N=p,L=p,D=p;if(null==t&&(t=r([],{})),(t=t.$merge()).$delete("parse"),u=t.$delete("to_dir"),c=t.$delete("mkdirs"),n(!0,d=f=t.$delete("to_file"))||n(p,d))i(g=u)||n(h("File"),e)&&(b=h("File").$absolute_path(e.$path())),f=p;else if(n(!1,d))f=p;else{if(n("/dev/null",d))return _.$load(e,t);i(v=f["$respond_to?"]("write"))||t["$[]="]("to_file",g=f)}return i(t["$key?"]("standalone"))||(i(b)||i(g)?t["$[]="]("standalone",t.$fetch("header_footer",!0)):i(t["$key?"]("header_footer"))&&t["$[]="]("standalone",t["$[]"]("header_footer"))),i(b)?t["$[]="]("to_dir",y=h("File").$dirname(b)):i(g)&&(i(u)?i(f)?t["$[]="]("to_dir",h("File").$dirname(h("File").$expand_path(f,u))):t["$[]="]("to_dir",h("File").$expand_path(u)):i(f)&&t["$[]="]("to_dir",h("File").$dirname(h("File").$expand_path(f)))),x=_.$load(e,t),i(b)?(k=h("File").$join(y,""+x.$attributes()["$[]"]("docname")+x.$outfilesuffix()),o(k,b)&&_.$raise(h("IOError"),"input file and output file cannot be the same: "+k)):i(g)?(w=i(t["$key?"]("base_dir"))?h("File").$expand_path(t["$[]"]("base_dir")):h("Dir").$pwd(),A=i(s(x.$safe(),h(m("SafeMode"),"SAFE")))?w:p,i(u)?(y=x.$normalize_system_path(u,w,A,r(["target_name","recover"],{target_name:"to_dir",recover:!1})),i(f)?(k=x.$normalize_system_path(f,y,p,r(["target_name","recover"],{target_name:"to_dir",recover:!1})),y=h("File").$dirname(k)):k=h("File").$join(y,""+x.$attributes()["$[]"]("docname")+x.$outfilesuffix())):i(f)&&(k=x.$normalize_system_path(f,w,A,r(["target_name","recover"],{target_name:"to_dir",recover:!1})),y=h("File").$dirname(k)),n(h("File"),e)&&o(k,h("File").$absolute_path(e.$path()))&&_.$raise(h("IOError"),"input file and output file cannot be the same: "+k),i(c)?m("Helpers").$mkdir_p(y):i(h("File")["$directory?"](y))||_.$raise(h("IOError"),"target directory does not exist: "+u+" (hint: set :mkdirs option)")):(k=f,y=p),E=i(k)&&a(v)?x.$convert(r(["outfile","outdir"],{outfile:k,outdir:y})):x.$convert(),i(k)?(x.$write(E,k),a(v)&&i($(x.$safe(),h(m("SafeMode"),"SECURE")))&&i(x["$attr?"]("linkcss"))&&i(x["$attr?"]("copycss"))&&i(x["$basebackend?"]("html"))&&a(i(d=S=x.$attr("stylesdir"))?m("Helpers")["$uriish?"](S):d)&&(i(C=x.$attr("stylesheet"))&&(i(m("DEFAULT_STYLESHEET_KEYS")["$include?"](C))?O=!0:a(m("Helpers")["$uriish?"](C))&&(R=!0)),I=i(d=T=x.$syntax_highlighter())?T["$write_stylesheet?"](x):d,(i(O)||i(R)||i(I))&&(z=x.$normalize_system_path(S,y,i(s(x.$safe(),h(m("SafeMode"),"SAFE")))?y:p),i(c)?m("Helpers").$mkdir_p(z):i(h("File")["$directory?"](z))||_.$raise(h("IOError"),"target stylesheet directory does not exist: "+z+" (hint: set :mkdirs option)"),i(O)?m("Stylesheets").$instance().$write_primary_stylesheet(z):i(R)&&(F=o(F=x.$attr("copycss"),"")||o(F,!0)?x.$normalize_system_path(C):x.$normalize_system_path(F.$to_s()),N=x.$normalize_system_path(C,z,i(s(x.$safe(),h(m("SafeMode"),"SAFE")))?y:p),l(F,N)&&i(L=x.$read_asset(F,r(["warn_on_failure","label"],{warn_on_failure:h("File")["$file?"](N)["$!"](),label:"stylesheet"})))&&(l(D=h("File").$dirname(N),z)&&a(h("File")["$directory?"](D))&&(i(c)?m("Helpers").$mkdir_p(D):_.$raise(h("IOError"),"target stylesheet directory does not exist: "+D+" (hint: set :mkdirs option)")),h("File").$write(N,L,r(["mode"],{mode:m("FILE_WRITE_MODE")})))),i(I)&&T.$write_stylesheet(x,z))),x):E}),-2),u(t,"$convert_file",(function(e,t){return null==t&&(t=r([],{})),c(h("File"),"open",[e,m("FILE_READ_MODE")],(function e(r){return null==r&&(r=p),(null==e.$$s?this:e.$$s).$convert(r,t)}),{$$s:this})}),-2),_(t,"render","convert"),_(t,"render_file","convert_file")}(e.get_singleton_class(m),g)}(d[0],d)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(e){var t=e.module,r=e.klass,n=e.slice,i=e.send2,o=e.find_super,s=e.to_a,a=e.def,$=e.hash2,l=e.send,u=e.truthy,c=e.return_val,_=e.eqeq,d=[],p=e.nil,h=e.$$$;return e.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(d,f){var m=[t(d,"Asciidoctor")].concat(f),g=e.$r(m);return function(t,d,h){var f=r(t,d,"HighlightJsAdapter"),m=[f].concat(h),g=e.$r(m);return f.$register_for("highlightjs","highlight.js"),a(f,"$initialize",(function e(t){var r,a=e.$$p||p,$=this;return e.$$p=null,r=n(arguments),i($,o($,"initialize",e,!1,!0),"initialize",s(r),a),$.name=$.pre_class="highlightjs"}),-1),a(f,"$format",(function e(t,r,n){var s=this;return e.$$p=null,i(s,o(s,"format",e,!1,!0),"format",[t,r,n.$merge($(["transform"],{transform:l(s,"proc",[],(function(e,t){var n,i;return null==t&&(t=p),n=["class","language-"+(u(i=r)?i:"none")+" hljs"],l(t,"[]=",n),n[n.length-1]}))}))],null)})),a(f,"$docinfo?",c(!0)),a(f,"$docinfo",(function(e,t,r){var n;return n=t.$attr("highlightjsdir",r["$[]"]("cdn_base_url")+"/highlight.js/"+g("HIGHLIGHT_JS_VERSION")),_(e,"head")?'":'