From 581cb917b7ea8910a8539b25f1f8ec239c7702bb Mon Sep 17 00:00:00 2001 From: Maxime Cesson Date: Tue, 23 Aug 2022 11:49:45 +0200 Subject: [PATCH 1/5] Render AsciiDoc preview --- www/code/inner.js | 6 + www/common/requireconfig.js | 4 +- www/lib/asciidoctor/asciidoctor.min.js | 1476 ++++++++++++++++++++++++ www/lib/changelog.md | 1 + 4 files changed, 1486 insertions(+), 1 deletion(-) create mode 100644 www/lib/asciidoctor/asciidoctor.min.js diff --git a/www/code/inner.js b/www/code/inner.js index 1f436a03f..d234d4374 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -143,6 +143,12 @@ define([ previews['htmlmixed'] = function (val, $div, common) { DiffMd.apply(val, $div, common); }; + previews['asciidoc'] = function (val, $div, common) { + require(['asciidoctor'], function (asciidoctor) { + var html = asciidoctor.convert(val, { attributes: 'showtitle' }); + DiffMd.apply(html, $div, common); + }); + }; var mkPreviewPane = function (editor, CodeMirror, framework, isPresentMode) { var $previewContainer = $('#cp-app-code-preview'); diff --git a/www/common/requireconfig.js b/www/common/requireconfig.js index 9ec96df2b..e69ae0f71 100644 --- a/www/common/requireconfig.js +++ b/www/common/requireconfig.js @@ -20,7 +20,9 @@ define([ 'netflux-client': '/bower_components/netflux-websocket/netflux-client', 'chainpad-netflux': '/bower_components/chainpad-netflux/chainpad-netflux', 'chainpad-listmap': '/bower_components/chainpad-listmap/chainpad-listmap', - 'cm-extra': '/lib/codemirror-extra-modes' + 'cm-extra': '/lib/codemirror-extra-modes', + // asciidoctor same + 'asciidoctor': '/lib/asciidoctor/asciidoctor.min' }, map: { '*': { diff --git a/www/lib/asciidoctor/asciidoctor.min.js b/www/lib/asciidoctor/asciidoctor.min.js new file mode 100644 index 000000000..2e95798fa --- /dev/null +++ b/www/lib/asciidoctor/asciidoctor.min.js @@ -0,0 +1,1476 @@ +/* + Asciidoctor.js 2.2.6 | MIT | https://github.com/asciidoctor/asciidoctor.js +*/ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var t=0;return function(){return t=u}},"es6","es3");$jscomp.polyfill("Object.is",function(b){return b?b:function(b,B){return b===B?0!==b||1/b===1/B:b!==b&&B!==B}},"es6","es3"); +$jscomp.polyfill("Array.prototype.includes",function(b){return b?b:function(b,B){var t=this;t instanceof String&&(t=String(t));var u=t.length;B=B||0;for(0>B&&(B=Math.max(B+u,0));Bb||1342177279>>=1)t+=t;return A}},"es6","es3"); +$jscomp.polyfill("Array.from",function(b){return b?b:function(b,B,A){B=null!=B?B:function(b){return b};var u=[],q="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof q){b=q.call(b);for(var g=0;!(q=b.next()).done;)u.push(B.call(A,q.value,g++))}else for(q=b.length,g=0;g $coerce_to! $!= $[] $upcase".split(" "));return function(g,t){g=u(g,"Opal");var l=[g].concat(t),G,y,m,Q,P,M,K,k,J,S,D,H,ia,X;b.defs(g,"$bridge",G=function(a,d){return b.bridge(a,d)},G.$$arity=2);b.defs(g,"$type_error",y=function(a,b,v,E){var d;null==v&&(v=B);null==E&&(E=B);return q(q(d=v)?E:d)?A(l,"TypeError").$new("can't convert "+ +a.$class()+" into "+b+" ("+a.$class()+"#"+v+" gives "+E.$class()+")"):A(l,"TypeError").$new("no implicit conversion of "+a.$class()+" into "+b)},y.$$arity=-3);b.defs(g,"$coerce_to",m=function(a,b,v){if(q(b["$==="](a)))return a;q(a["$respond_to?"](v))||this.$raise(this.$type_error(a,b));return a.$__send__(v)},m.$$arity=3);b.defs(g,"$coerce_to!",Q=function(a,b,v){var d=this.$coerce_to(a,b,v);q(b["$==="](d))||this.$raise(this.$type_error(a,b,v,d));return d},Q.$$arity=3);b.defs(g,"$coerce_to?",P=function(a, +b,v){if(!q(a["$respond_to?"](v)))return B;var d=this.$coerce_to(a,b,v);if(q(d["$nil?"]()))return B;q(b["$==="](d))||this.$raise(this.$type_error(a,b,v,d));return d},P.$$arity=3);b.defs(g,"$try_convert",M=function(a,b,v){return q(b["$==="](a))?a:q(a["$respond_to?"](v))?a.$__send__(v):B},M.$$arity=3);b.defs(g,"$compare",K=function(a,b){var d=a["$<=>"](b);q(d===B)&&this.$raise(A(l,"ArgumentError"),"comparison of "+a.$class()+" with "+b.$class()+" failed");return d},K.$$arity=2);b.defs(g,"$destructure", +k=function(a){if(1==a.length)return a[0];if(a.$$is_array)return a;for(var b=Array(a.length),v=0,k=b.length;va.length||"@@"!==a.slice(0,2))&&this.$raise(A(l,"NameError").$new("`"+a+"' is not allowed as a class variable name",a));return a},H.$$arity=1);b.defs(g,"$const_name!",ia=function(a){a=A(l,"Opal")["$coerce_to!"](a,A(l,"String"),"to_str");q(a["$[]"](0)["$!="](a["$[]"](0).$upcase()))&&this.$raise(A(l, +"NameError"),"wrong constant name "+a);return a},ia.$$arity=1);b.defs(g,"$pristine",X=function(a,d){var v=b.slice.call(arguments,1,arguments.length);for(var k,O=v.length-1;0<=O;O--)k=v[O],(k=a.$$prototype["$"+k])&&!k.$$stub&&(k.$$pristine=!0);return B},X.$$arity=-2)}(t[0],t)}; +Opal.modules["corelib/module"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b $nil? $attr_reader $attr_writer $class_variable_name! $new $const_name! $=~ $inject $split $const_get $== $!~ $start_with? $bind $call $class $append_features $included $name $cover? $size $merge $compile $proc $any? $prepend_features $prepended $to_s $__id__ $constants $include? $copy_class_variables $copy_constants".split(" ")); +return function(Q,$super,M){Q=g(Q,$super,"Module");var K=[Q].concat(M),k,B,S,D,H,ia,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba,La,Ea,ja,wa,ra,I,V,ka,Ja,Ca,Na,na,qa,Ma,Ua,Ta,Ra,la,va,ha;b.defs(Q,"$allocate",k=function(){var a=b.allocate_module(A,function(){});this!==b.Module&&Object.setPrototypeOf(a,this.$$prototype);return a},k.$$arity=0);b.def(Q,"$initialize",B=function(){var a=B.$$p,b=a||A;a&&(B.$$p=null);a&&(B.$$p=null);return b!==A?J(this,"module_eval",[],b.$to_proc()): +A},B.$$arity=0);b.def(Q,"$===",S=function(a){return l(null==a)?!1:b.is_a(a,this)},S.$$arity=1);b.def(Q,"$<",D=function(a){l(q(K,"Module")["$==="](a))||this.$raise(q(K,"TypeError"),"compared with non class/module");var e;if(this===a)return!1;var c=0;var f=b.ancestors(this);for(e=f.length;c",ia=function(a){l(q(K,"Module")["$==="](a))||this.$raise(q(K,"TypeError"),"compared with non class/module");return t(a,this)},ia.$$arity=1);b.def(Q,"$>=",X=function(a){var b;return l(b=this["$equal?"](a))?b:"number"===typeof this&&"number"===typeof a?this>a:this["$>"](a)},X.$$arity=1);b.def(Q,"$<=>",a=function(a){if(this===a)return 0;if(!l(q(K,"Module")["$==="](a)))return A;a=t(this,a);return l(a["$nil?"]())?A:l(a)?-1:1},a.$$arity=1);b.def(Q,"$alias_method",d=function(a,e){b.alias(this,a,e);return this}, +d.$$arity=2);b.def(Q,"$alias_native",v=function(a,e){null==e&&(e=a);b.alias_native(this,a,e);return this},v.$$arity=-2);b.def(Q,"$ancestors",E=function(){return b.ancestors(this)},E.$$arity=0);b.def(Q,"$append_features",O=function(a){b.append_features(this,a);return this},O.$$arity=1);b.def(Q,"$attr_accessor",p=function(a){var e=b.slice.call(arguments,0,arguments.length);J(this,"attr_reader",b.to_a(e));return J(this,"attr_writer",b.to_a(e))},p.$$arity=-1);b.alias(Q,"attr","attr_accessor");b.def(Q, +"$attr_reader",h=function(a){var e=b.slice.call(arguments,0,arguments.length);for(var c=this.$$prototype,f=e.length-1;0<=f;f--){var d=e[f],n="$"+d;d=b.ivar(d);var h=function(a){return function(){return null==this[a]?A:this[a]}}(d);b.defineProperty(c,d,A);h.$$parameters=[];h.$$arity=0;b.defn(this,n,h)}return A},h.$$arity=-1);b.def(Q,"$attr_writer",e=function(a){var e=b.slice.call(arguments,0,arguments.length);for(var c=this.$$prototype,f=e.length-1;0<=f;f--){var d=e[f],n="$"+d+"=";d=b.ivar(d);var h= +function(a){return function(b){return this[a]=b}}(d);h.$$parameters=[["req"]];h.$$arity=1;b.defineProperty(c,d,A);b.defn(this,n,h)}return A},e.$$arity=-1);b.def(Q,"$autoload",z=function(a,e){null==this.$$autoload&&(this.$$autoload={});b.const_cache_version++;this.$$autoload[a]=e;return A},z.$$arity=2);b.def(Q,"$class_variables",r=function(){return Object.keys(b.class_variables(this))},r.$$arity=0);b.def(Q,"$class_variable_get",U=function(a){a=q(K,"Opal")["$class_variable_name!"](a);var e=b.class_variables(this)[a]; +null==e&&this.$raise(q(K,"NameError").$new("uninitialized class variable "+a+" in "+this,a));return e},U.$$arity=1);b.def(Q,"$class_variable_set",F=function(a,e){a=q(K,"Opal")["$class_variable_name!"](a);return b.class_variable_set(this,a,e)},F.$$arity=2);b.def(Q,"$class_variable_defined?",n=function(a){a=q(K,"Opal")["$class_variable_name!"](a);return b.class_variables(this).hasOwnProperty(a)},n.$$arity=1);b.def(Q,"$remove_class_variable",c=function(a){a=q(K,"Opal")["$class_variable_name!"](a);if(b.hasOwnProperty.call(this.$$cvars, +a)){var e=this.$$cvars[a];delete this.$$cvars[a];return e}this.$raise(q(K,"NameError"),"cannot remove "+a+" for "+this)},c.$$arity=1);b.def(Q,"$constants",f=function(a){null==a&&(a=!0);return b.constants(this,a)},f.$$arity=-1);b.defs(Q,"$constants",W=function(a){if(null==a){a=(this.$$nesting||[]).concat(b.Object);var e,c={},f;var d=0;for(f=a.length;d"},Ua.$$arity=0);b.def(Q,"$undef_method",Ta=function(a){var e=b.slice.call(arguments,0,arguments.length);for(var c=0,f=e.length;c":k?"#>":g(this,b.find_super_dispatcher(this,"to_s",B,!1),[],null)},B.$$arity=0),A)&&"to_s"}(B[0],null,B)}; +Opal.modules["corelib/basic_object"]=function(b){var t=[],B=b.nil,A=b.const_get_qualified,u=b.klass,q=b.truthy,g=b.range,J=b.hash2,l=b.send;b.add_stubs("$== $! $nil? $cover? $size $raise $merge $compile $proc $any? $inspect $new".split(" "));return function(G,$super,m){G=u(G,$super,"BasicObject");[G].concat(m);var t,P,M,K,k,sa,S,D,H,ia,X,a,d,v;b.def(G,"$initialize",t=function(a){b.slice.call(arguments,0,arguments.length);return B},t.$$arity=-1);b.def(G,"$==",P=function(a){return this===a},P.$$arity= +1);b.def(G,"$eql?",M=function(a){return this["$=="](a)},M.$$arity=1);b.alias(G,"equal?","==");b.def(G,"$__id__",K=function(){if(null!=this.$$id)return this.$$id;b.defineProperty(this,"$$id",b.uid());return this.$$id},K.$$arity=0);b.def(G,"$__send__",k=function(a,d){var p=k.$$p,h=p||B;p&&(k.$$p=null);p&&(k.$$p=null);p=b.slice.call(arguments,1,arguments.length);var e=this["$"+a];if(e)return h!==B&&(e.$$p=h),e.apply(this,p);h!==B&&(this.$method_missing.$$p=h);return this.$method_missing.apply(this,[a].concat(p))}, +k.$$arity=-2);b.def(G,"$!",sa=function(){return!1},sa.$$arity=0);b.def(G,"$!=",S=function(a){return this["$=="](a)["$!"]()},S.$$arity=1);b.def(G,"$instance_eval",D=function(a){var d=D.$$p,p=d||B,h,e,v=B,r=B,k=r=r=B;d&&(D.$$p=null);d&&(D.$$p=null);d=b.slice.call(arguments,0,arguments.length);q(q(h=p["$nil?"]())?!!b.compile:h)?(q(g(1,3,!1)["$cover?"](d.$size()))||A("::","Kernel").$raise(A("::","ArgumentError"),"wrong number of arguments (0 for 1..3)"),h=[].concat(b.to_a(d)),v=null==h[0]?B:h[0],r=null== +h[1]?B:h[1],h,r=J(["file","eval"],{file:q(h=r)?h:"(eval)",eval:!0}),r=b.hash({arity_check:!1}).$merge(r),k=A("::","Opal").$compile(v,r),p=l(A("::","Kernel"),"proc",[],(e=function(){return function(a){return eval(k)}(e.$$s||this)},e.$$s=this,e.$$arity=0,e))):q(d["$any?"]())&&A("::","Kernel").$raise(A("::","ArgumentError"),"wrong number of arguments ("+d.$size()+" for 0)");h=p.$$s;p.$$s=null;if(this.$$is_a_module){this.$$eval=!0;try{var E=p.call(this,this)}finally{this.$$eval=!1}}else E=p.call(this, +this);p.$$s=h;return E},D.$$arity=-1);b.def(G,"$instance_exec",H=function(a){var d=H.$$p,p=d||B;d&&(H.$$p=null);d&&(H.$$p=null);d=b.slice.call(arguments,0,arguments.length);q(p)||A("::","Kernel").$raise(A("::","ArgumentError"),"no block given");var h=p.$$s;p.$$s=null;if(this.$$is_a_module){this.$$eval=!0;try{var e=p.apply(this,d)}finally{this.$$eval=!1}}else e=p.apply(this,d);p.$$s=h;return e},H.$$arity=-1);b.def(G,"$singleton_method_added",ia=function(a){b.slice.call(arguments,0,arguments.length); +return B},ia.$$arity=-1);b.def(G,"$singleton_method_removed",X=function(a){b.slice.call(arguments,0,arguments.length);return B},X.$$arity=-1);b.def(G,"$singleton_method_undefined",a=function(a){b.slice.call(arguments,0,arguments.length);return B},a.$$arity=-1);b.def(G,"$class",d=function(){return this.$$class},d.$$arity=0);return(b.def(G,"$method_missing",v=function(a,d){var p=v.$$p;p&&(v.$$p=null);p&&(v.$$p=null);b.slice.call(arguments,1,arguments.length);p=q(this.$inspect&&!this.$inspect.$$stub)? +"undefined method `"+a+"' for "+this.$inspect()+":"+this.$$class:"undefined method `"+a+"' for "+this.$$class;return A("::","Kernel").$raise(A("::","NoMethodError").$new(p,a))},v.$$arity=-2),B)&&"method_missing"}(t[0],null,t)}; +Opal.modules["corelib/kernel"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b<=g:b["$<="](g)}var B=[],A=b.nil,u=b.const_get_qualified,q=b.const_get_relative,g=b.module,J=b.truthy,l=b.gvars,G=b.hash2,y=b.send,m=b.klass;b.add_stubs("$raise $new $inspect $! $=~ $== $object_id $class $coerce_to? $<< $allocate $copy_instance_variables $copy_singleton_methods $initialize_clone $initialize_copy $define_method $singleton_class $to_proc $initialize_dup $for $empty? $pop $call $coerce_to $append_features $extend_object $extended $__id__ $to_s $instance_variable_name! $respond_to? $to_int $coerce_to! $Integer $nil? $=== $enum_for $result $any? $print $format $puts $each $<= $length $[] $exception $is_a? $rand $respond_to_missing? $try_convert! $expand_path $join $start_with? $new_seed $srand $sym $arg $open $include".split(" "));(function(m, +P){m=g(m,"Kernel");var M=[m].concat(P),K,k,B,S,D,H,Q,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba,La,Ea,ja,wa,ra,I,V,ka,Ja,Ca,Na,na,qa,Ma,Ua,Ta,Ra,la,va,ha,Aa,Ka,ua,Ha,Fa,Da;b.def(m,"$method_missing",K=function(a,e){var c=K.$$p;c&&(K.$$p=null);c&&(K.$$p=null);c=b.slice.call(arguments,1,arguments.length);return this.$raise(q(M,"NoMethodError").$new("undefined method `"+a+"' for "+this.$inspect(),a,c))},K.$$arity=-2);b.def(m,"$=~",k=function(a){return!1},k.$$arity=1);b.def(m, +"$!~",B=function(a){return this["$=~"](a)["$!"]()},B.$$arity=1);b.def(m,"$===",S=function(a){var b;return J(b=this.$object_id()["$=="](a.$object_id()))?b:this["$=="](a)},S.$$arity=1);b.def(m,"$<=>",D=function(a){this.$$comparable=!0;return(a=this["$=="](a))&&a!==A?0:A},D.$$arity=1);b.def(m,"$method",H=function(a){var b=this["$"+a];b&&!b.$$stub||this.$raise(q(M,"NameError").$new("undefined method `"+a+"' for class `"+this.$class()+"'",a));return q(M,"Method").$new(this,b.$$owner||this.$class(),b,a)}, +H.$$arity=1);b.def(m,"$methods",Q=function(a){null==a&&(a=!0);return J(a)?b.methods(this):b.own_methods(this)},Q.$$arity=-1);b.def(m,"$public_methods",X=function(a){null==a&&(a=!0);return J(a)?b.methods(this):b.receiver_methods(this)},X.$$arity=-1);b.def(m,"$Array",a=function(a){if(a===A)return[];if(a.$$is_array)return a;var b=q(M,"Opal")["$coerce_to?"](a,q(M,"Array"),"to_ary");if(b!==A)return b;b=q(M,"Opal")["$coerce_to?"](a,q(M,"Array"),"to_a");return b!==A?b:[a]},a.$$arity=1);b.def(m,"$at_exit", +d=function(){var a=d.$$p,b=a||A,e;null==l.__at_exit__&&(l.__at_exit__=A);a&&(d.$$p=null);a&&(d.$$p=null);l.__at_exit__=J(e=l.__at_exit__)?e:[];return l.__at_exit__["$<<"](b)},d.$$arity=0);b.def(m,"$caller",v=function(a){b.slice.call(arguments,0,arguments.length);return[]},v.$$arity=-1);b.def(m,"$class",E=function(){return this.$$class},E.$$arity=0);b.def(m,"$copy_instance_variables",O=function(a){var b=Object.keys(a),e;var c=0;for(e=b.length;cb||36=b?b-1:"9a-"+String.fromCharCode(97+(b-11)));(new RegExp("^\\s*[+-]?["+f+"]+\\s*$")).test(c)||e.$raise(q(M,"ArgumentError"),'invalid value for Integer(): "'+a+'"');c=parseInt(c,b);isNaN(c)&&e.$raise(q(M,"ArgumentError"),'invalid value for Integer(): "'+a+'"');return c},ya.$$arity=-2);b.def(m,"$Float",ea=function(a){a===A&&this.$raise(q(M,"TypeError"),"can't convert nil into Float");if(a.$$is_string){var b=a.toString();b=b.replace(/(\d)_(?=\d)/g,"$1");if(/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(b))return this.$Integer(b); +/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(b)||this.$raise(q(M,"ArgumentError"),'invalid value for Float(): "'+a+'"');return parseFloat(b)}return q(M,"Opal")["$coerce_to!"](a,q(M,"Float"),"to_f")},ea.$$arity=1);b.def(m,"$Hash",xa=function(a){var b;return J(J(b=a["$nil?"]())?b:a["$=="]([]))?G([],{}):J(q(M,"Hash")["$==="](a))?a:q(M,"Opal")["$coerce_to!"](a,q(M,"Hash"),"to_hash")},xa.$$arity=1);b.def(m,"$is_a?",ta=function(a){a.$$is_class||a.$$is_module||this.$raise(q(M,"TypeError"),"class or module required"); +return b.is_a(this,a)},ta.$$arity=1);b.def(m,"$itself",T=function(){return this},T.$$arity=0);b.alias(m,"kind_of?","is_a?");b.def(m,"$lambda",fa=function(){var a=fa.$$p,e=a||A;a&&(fa.$$p=null);a&&(fa.$$p=null);return b.lambda(e)},fa.$$arity=0);b.def(m,"$load",Ba=function(a){a=q(M,"Opal")["$coerce_to!"](a,q(M,"String"),"to_str");return b.load(a)},Ba.$$arity=1);b.def(m,"$loop",La=function(){var a,e=La.$$p,c=e||A,f=A;e&&(La.$$p=null);if(c===A)return y(this,"enum_for",["loop"],(a=function(){return u(q(M, +"Float"),"INFINITY")},a.$$s=this,a.$$arity=0,a));for(;J(!0);)try{b.yieldX(c,[])}catch(za){if(b.rescue(za,[q(M,"StopIteration")])){f=za;try{return f.$result()}finally{b.pop_exception()}}else throw za;}return this},La.$$arity=0);b.def(m,"$nil?",Ea=function(){return!1},Ea.$$arity=0);b.alias(m,"object_id","__id__");b.def(m,"$printf",ja=function(a){var e=b.slice.call(arguments,0,arguments.length);J(e["$any?"]())&&this.$print(y(this,"format",b.to_a(e)));return A},ja.$$arity=-1);b.def(m,"$proc",wa=function(){var a= +wa.$$p,b=a||A;a&&(wa.$$p=null);a&&(wa.$$p=null);J(b)||this.$raise(q(M,"ArgumentError"),"tried to create Proc object without a block");b.$$is_lambda=!1;return b},wa.$$arity=0);b.def(m,"$puts",ra=function(a){null==l.stdout&&(l.stdout=A);var e=b.slice.call(arguments,0,arguments.length);return y(l.stdout,"puts",b.to_a(e))},ra.$$arity=-1);b.def(m,"$p",I=function(a){var e;var c=b.slice.call(arguments,0,arguments.length);y(c,"each",[],(e=function(a){null==l.stdout&&(l.stdout=A);null==a&&(a=A);return l.stdout.$puts(a.$inspect())}, +e.$$s=this,e.$$arity=1,e));return J(t(c.$length(),1))?c["$[]"](0):c},I.$$arity=-1);b.def(m,"$print",V=function(a){null==l.stdout&&(l.stdout=A);var e=b.slice.call(arguments,0,arguments.length);return y(l.stdout,"print",b.to_a(e))},V.$$arity=-1);b.def(m,"$warn",ka=function(a){var e;null==l.VERBOSE&&(l.VERBOSE=A);null==l.stderr&&(l.stderr=A);var c=b.slice.call(arguments,0,arguments.length);return J(J(e=l.VERBOSE["$nil?"]())?e:c["$empty?"]())?A:y(l.stderr,"puts",b.to_a(c))},ka.$$arity=-1);b.def(m,"$raise", +Ja=function(a,e,c){null==l["!"]&&(l["!"]=A);null==e&&(e=A);if(null==a&&l["!"]!==A)throw l["!"];null==a?a=q(M,"RuntimeError").$new():a.$$is_string?a=q(M,"RuntimeError").$new(a):a.$$is_class&&a["$respond_to?"]("exception")?a=a.$exception(e):a["$is_a?"](q(M,"Exception"))||(a=q(M,"TypeError").$new("exception class/object expected"));l["!"]!==A&&b.exceptions.push(l["!"]);l["!"]=a;throw a;},Ja.$$arity=-1);b.alias(m,"fail","raise");b.def(m,"$rand",Ca=function(a){if(void 0===a)return u(q(M,"Random"),"DEFAULT").$rand(); +a.$$is_number&&(0>a&&(a=Math.abs(a)),0!==a%1&&(a=a.$to_i()),0===a&&(a=void 0));return u(q(M,"Random"),"DEFAULT").$rand(a)},Ca.$$arity=-1);b.def(m,"$respond_to?",Na=function(a,b){null==b&&(b=!1);if(J(this["$respond_to_missing?"](a,b)))return!0;a=this["$"+a];return"function"!==typeof a||a.$$stub?!1:!0},Na.$$arity=-2);b.def(m,"$respond_to_missing?",na=function(a,b){return!1},na.$$arity=-2);b.def(m,"$require",qa=function(a){a=q(M,"Opal")["$coerce_to!"](a,q(M,"String"),"to_str");return b.require(a)},qa.$$arity= +1);b.def(m,"$require_relative",Ma=function(a){q(M,"Opal")["$try_convert!"](a,q(M,"String"),"to_str");a=q(M,"File").$expand_path(q(M,"File").$join(b.current_file,"..",a));return b.require(a)},Ma.$$arity=1);b.def(m,"$require_tree",Ua=function(a){var e=[];a=q(M,"File").$expand_path(a);a=b.normalize(a);"."===a&&(a="");for(var c in b.modules)c["$start_with?"](a)&&e.push([c,b.require(c)]);return e},Ua.$$arity=1);b.alias(m,"send","__send__");b.alias(m,"public_send","__send__");b.def(m,"$singleton_class", +Ta=function(){return b.get_singleton_class(this)},Ta.$$arity=0);b.def(m,"$sleep",Ra=function(a){null==a&&(a=A);a===A&&this.$raise(q(M,"TypeError"),"can't convert NilClass into time interval");a.$$is_number||this.$raise(q(M,"TypeError"),"can't convert "+a.$class()+" into time interval");0>a&&this.$raise(q(M,"ArgumentError"),"time interval must be positive");for(var e=b.global.performance?function(){return performance.now()}:function(){return new Date},c=e();e()-c<=1E3*a;);return a},Ra.$$arity=-1); +b.def(m,"$srand",la=function(a){null==a&&(a=q(M,"Random").$new_seed());return q(M,"Random").$srand(a)},la.$$arity=-1);b.def(m,"$String",va=function(a){var b;return J(b=q(M,"Opal")["$coerce_to?"](a,q(M,"String"),"to_str"))?b:q(M,"Opal")["$coerce_to!"](a,q(M,"String"),"to_s")},va.$$arity=1);b.def(m,"$tap",ha=function(){var a=ha.$$p,e=a||A;a&&(ha.$$p=null);a&&(ha.$$p=null);b.yield1(e,this);return this},ha.$$arity=0);b.def(m,"$to_proc",Aa=function(){return this},Aa.$$arity=0);b.def(m,"$to_s",Ka=function(){return"#<"+ +this.$class()+":0x"+this.$__id__().$to_s(16)+">"},Ka.$$arity=0);b.def(m,"$catch",ua=function(a){var e=ua.$$p,c=e||A;e&&(ua.$$p=null);try{return b.yieldX(c,[])}catch(Ga){if(b.rescue(Ga,[q(M,"UncaughtThrowError")])){e=Ga;try{return e.$sym()["$=="](a)?e.$arg():this.$raise()}finally{b.pop_exception()}}else throw Ga;}},ua.$$arity=1);b.def(m,"$throw",Ha=function(a){var e=b.slice.call(arguments,0,arguments.length);return this.$raise(q(M,"UncaughtThrowError"),e)},Ha.$$arity=-1);b.def(m,"$open",Fa=function(a){var e= +Fa.$$p,c=e||A;e&&(Fa.$$p=null);e&&(Fa.$$p=null);e=b.slice.call(arguments,0,arguments.length);return y(q(M,"File"),"open",b.to_a(e),c.$to_proc())},Fa.$$arity=-1);b.def(m,"$yield_self",Da=function(){var a,e=Da.$$p,c=e||A;e&&(Da.$$p=null);return c===A?y(this,"enum_for",["yield_self"],(a=function(){return 1},a.$$s=this,a.$$arity=0,a)):b.yield1(c,this)},Da.$$arity=0)})(B[0],B);return function(b,$super,g){b=m(b,$super,"Object");g=[b].concat(g);return b.$include(q(g,"Kernel"))}(B[0],null,B)}; +Opal.modules["corelib/error"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.klass,q=b.send,g=b.truthy,J=b.module,l=b.hash2;b.add_stubs("$new $clone $to_s $empty? $class $raise $+ $attr_reader $[] $> $length $inspect".split(" "));(function(l,$super,m){l=u(l,$super,"Exception");var t=[l].concat(m),G,M,K,k,J,S,D,H,ia;l.$$prototype.message=B;b.defs(l,"$new",G=function(a){var d=b.slice.call(arguments,0,arguments.length);var v=0"},D.$$arity=0);b.def(l,"$set_backtrace",H=function(a){var b=!0,v;if(a=== +B)this.backtrace=B;else if(a.$$is_string)this.backtrace=[a];else{if(a.$$is_array){var k=0;for(v=a.length;k"](1);g(m)&&(this.arg=l["$[]"](1));return q(this,b.find_super_dispatcher(this,"initialize",t,!1),["uncaught throw "+this.sym.$inspect()],null)},t.$$arity=1),B)&&"initialize"})(t[0],A(t,"ArgumentError"),t);(function(g,$super,l){g=u(g,$super,"NameError");[g].concat(l);var m;g.$attr_reader("name");return(b.def(g,"$initialize",m=function(g, +l){m.$$p&&(m.$$p=null);null==l&&(l=B);q(this,b.find_super_dispatcher(this,"initialize",m,!1),[g],null);return this.name=l},m.$$arity=-2),B)&&"initialize"})(t[0],null,t);(function(g,$super,l){g=u(g,$super,"NoMethodError");[g].concat(l);var m;g.$attr_reader("args");return(b.def(g,"$initialize",m=function(g,l,t){m.$$p&&(m.$$p=null);null==l&&(l=B);null==t&&(t=[]);q(this,b.find_super_dispatcher(this,"initialize",m,!1),[g,l],null);return this.args=t},m.$$arity=-2),B)&&"initialize"})(t[0],null,t);(function(b, +$super,g){b=u(b,$super,"StopIteration");[b].concat(g);return b.$attr_reader("result")})(t[0],null,t);(function(t,$super,m){t=u(t,$super,"KeyError");var G=[t].concat(m),P,M,K;t.$$prototype.receiver=t.$$prototype.key=B;b.def(t,"$initialize",P=function(k,g){P.$$p&&(P.$$p=null);if(null==g)g=l([],{});else if(!g.$$is_hash)throw b.ArgumentError.$new("expected kwargs");var m=g.$$smap.receiver;null==m&&(m=B);g=g.$$smap.key;null==g&&(g=B);q(this,b.find_super_dispatcher(this,"initialize",P,!1),[k],null);this.receiver= +m;return this.key=g},P.$$arity=-2);b.def(t,"$receiver",M=function(){var b;return g(b=this.receiver)?b:this.$raise(A(G,"ArgumentError"),"no receiver is available")},M.$$arity=0);return(b.def(t,"$key",K=function(){var b;return g(b=this.key)?b:this.$raise(A(G,"ArgumentError"),"no key is available")},K.$$arity=0),B)&&"key"})(t[0],null,t);return function(b,g){b=[J(b,"JS")].concat(g);[u(b[0],null,"Error")].concat(b)}(t[0],t)}; +Opal.modules["corelib/constants"]=function(b){var t=[],B=b.const_get_relative;b.const_set(t[0],"RUBY_PLATFORM","opal");b.const_set(t[0],"RUBY_ENGINE","opal");b.const_set(t[0],"RUBY_VERSION","2.5.1");b.const_set(t[0],"RUBY_ENGINE_VERSION","0.11.99.dev");b.const_set(t[0],"RUBY_RELEASE_DATE","2018-12-25");b.const_set(t[0],"RUBY_PATCHLEVEL",0);b.const_set(t[0],"RUBY_REVISION",0);b.const_set(t[0],"RUBY_COPYRIGHT","opal - Copyright (C) 2013-2018 Adam Beynon and the Opal contributors");return b.const_set(t[0], +"RUBY_DESCRIPTION","opal "+B(t,"RUBY_ENGINE_VERSION")+" ("+B(t,"RUBY_RELEASE_DATE")+" revision "+B(t,"RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(b){var t=b.top;b.add_stubs(["$require"]);t.$require("corelib/runtime");t.$require("corelib/helpers");t.$require("corelib/module");t.$require("corelib/class");t.$require("corelib/basic_object");t.$require("corelib/kernel");t.$require("corelib/error");return t.$require("corelib/constants")}; +Opal.modules["corelib/nil"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.klass,q=b.hash2,g=b.truthy;b.add_stubs("$raise $name $new $> $length $Rational".split(" "));(function(t,$super,G){t=u(t,$super,"NilClass");var y=[t].concat(G),m,J,P,M,K,k,sa,S,D,H,ia,X,a,d,v,E,O,p;t.$$prototype.$$meta=t;(function(a,e){var d=[a].concat(e),h;b.def(a,"$allocate",h=function(){return this.$raise(A(d,"TypeError"),"allocator undefined for "+this.$name())},h.$$arity=0);b.udef(a,"$new");return B})(b.get_singleton_class(t), +y);b.def(t,"$!",m=function(){return!0},m.$$arity=0);b.def(t,"$&",J=function(a){return!1},J.$$arity=1);b.def(t,"$|",P=function(a){return!1!==a&&a!==B},P.$$arity=1);b.def(t,"$^",M=function(a){return!1!==a&&a!==B},M.$$arity=1);b.def(t,"$==",K=function(a){return a===B},K.$$arity=1);b.def(t,"$dup",k=function(){return B},k.$$arity=0);b.def(t,"$clone",sa=function(a){if(null==a)q([],{});else if(!a.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return B},sa.$$arity=-1);b.def(t,"$inspect",S=function(){return"nil"}, +S.$$arity=0);b.def(t,"$nil?",D=function(){return!0},D.$$arity=0);b.def(t,"$singleton_class",H=function(){return A(y,"NilClass")},H.$$arity=0);b.def(t,"$to_a",ia=function(){return[]},ia.$$arity=0);b.def(t,"$to_h",X=function(){return b.hash()},X.$$arity=0);b.def(t,"$to_i",a=function(){return 0},a.$$arity=0);b.alias(t,"to_f","to_i");b.def(t,"$to_s",d=function(){return""},d.$$arity=0);b.def(t,"$to_c",v=function(){return A(y,"Complex").$new(0,0)},v.$$arity=0);b.def(t,"$rationalize",E=function(a){var e= +b.slice.call(arguments,0,arguments.length).$length();e="number"===typeof e?1"](1);g(e)&&this.$raise(A(y,"ArgumentError"));return this.$Rational(0,1)},E.$$arity=-1);b.def(t,"$to_r",O=function(){return this.$Rational(0,1)},O.$$arity=0);return(b.def(t,"$instance_variables",p=function(){return[]},p.$$arity=0),B)&&"instance_variables"})(t[0],null,t);return b.const_set(t[0],"NIL",B)}; +Opal.modules["corelib/boolean"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.klass,q=b.hash2;b.add_stubs(["$raise","$name"]);(function(g,$super,l){g=u(g,$super,"Boolean");var t=[g].concat(l),y,m,Q,P,M,K,k,sa,S,D;b.defineProperty(g.$$prototype,"$$is_boolean",!0);b.defineProperty(g.$$prototype,"$$meta",g);(function(k,g){var l=[k].concat(g),a;b.def(k,"$allocate",a=function(){return this.$raise(A(l,"TypeError"),"allocator undefined for "+this.$name())},a.$$arity=0);b.udef(k,"$new");return B})(b.get_singleton_class(g), +t);b.def(g,"$__id__",y=function(){return this.valueOf()?2:0},y.$$arity=0);b.alias(g,"object_id","__id__");b.def(g,"$!",m=function(){return 1!=this},m.$$arity=0);b.def(g,"$&",Q=function(b){return 1==this?!1!==b&&b!==B:!1},Q.$$arity=1);b.def(g,"$|",P=function(b){return 1==this?!0:!1!==b&&b!==B},P.$$arity=1);b.def(g,"$^",M=function(b){return 1==this?!1===b||b===B:!1!==b&&b!==B},M.$$arity=1);b.def(g,"$==",K=function(b){return 1==this===b.valueOf()},K.$$arity=1);b.alias(g,"equal?","==");b.alias(g,"eql?", +"==");b.def(g,"$singleton_class",k=function(){return A(t,"Boolean")},k.$$arity=0);b.def(g,"$to_s",sa=function(){return 1==this?"true":"false"},sa.$$arity=0);b.def(g,"$dup",S=function(){return this},S.$$arity=0);return(b.def(g,"$clone",D=function(k){if(null==k)q([],{});else if(!k.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return this},D.$$arity=-1),B)&&"clone"})(t[0],Boolean,t);b.const_set(t[0],"TrueClass",A(t,"Boolean"));b.const_set(t[0],"FalseClass",A(t,"Boolean"));b.const_set(t[0], +"TRUE",!0);return b.const_set(t[0],"FALSE",!1)}; +Opal.modules["corelib/comparable"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b $< $equal? $<=> $normalize $raise $class".split(" "));return function(l,G){l=g(l,"Comparable");var y=[l].concat(G),m,A,P,M,K,k,sa,S;b.defs(l,"$normalize",m=function(b){return J(q(y,"Integer")["$==="](b))?b:J(t(b,0))? +1:J(B(b,0))?-1:0},m.$$arity=1);b.def(l,"$==",A=function(k){var g=u;try{return J(this["$equal?"](k))?!0:this["$<=>"]==b.Kernel["$<=>"]?!1:this.$$comparable?(delete this.$$comparable,!1):J(g=this["$<=>"](k))?0==q(y,"Comparable").$normalize(g):!1}catch(ia){if(b.rescue(ia,[q(y,"StandardError")]))try{return!1}finally{b.pop_exception()}else throw ia;}},A.$$arity=1);b.def(l,"$>",P=function(b){var k;J(k=this["$<=>"](b))||this.$raise(q(y,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+ +" failed");return 0=",M=function(b){var k;J(k=this["$<=>"](b))||this.$raise(q(y,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0<=q(y,"Comparable").$normalize(k)},M.$$arity=1);b.def(l,"$<",K=function(b){var k;J(k=this["$<=>"](b))||this.$raise(q(y,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0>q(y,"Comparable").$normalize(k)},K.$$arity=1);b.def(l,"$<=",k=function(b){var k; +J(k=this["$<=>"](b))||this.$raise(q(y,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0>=q(y,"Comparable").$normalize(k)},k.$$arity=1);b.def(l,"$between?",sa=function(b,k){return B(this,b)||t(this,k)?!1:!0},sa.$$arity=2);b.def(l,"$clamp",S=function(b,k){var g=b["$<=>"](k);J(g)||this.$raise(q(y,"ArgumentError"),"comparison of "+b.$class()+" with "+k.$class()+" failed");J(t(q(y,"Comparable").$normalize(g),0))&&this.$raise(q(y,"ArgumentError"),"min argument must be smaller than max argument"); +return J(B(q(y,"Comparable").$normalize(this["$<=>"](b)),0))?b:J(t(q(y,"Comparable").$normalize(this["$<=>"](k)),0))?k:this},S.$$arity=2)}(A[0],A)}; +Opal.modules["corelib/regexp"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.klass,q=b.send,g=b.truthy,J=b.gvars;b.add_stubs("$nil? $[] $raise $escape $options $to_str $new $join $coerce_to! $! $match $coerce_to? $begin $coerce_to $=~ $attr_reader $=== $inspect $to_a".split(" "));(function(b,$super,g){[u(b,$super,"RegexpError")].concat(g);return B})(t[0],A(t,"StandardError"),t);(function(l,$super,t){l=u(l,$super,"Regexp");var m=[l].concat(t),y,P,M,K,k,sa,S,D,H,ia;b.const_set(m[0],"IGNORECASE", +1);b.const_set(m[0],"EXTENDED",2);b.const_set(m[0],"MULTILINE",4);b.defineProperty(l.$$prototype,"$$is_regexp",!0);(function(k,a){var d=[k].concat(a),v,E,l,p,h;b.def(k,"$allocate",v=function(){var a=v.$$p,d;a&&(v.$$p=null);var h=0;var p=arguments.length;for(d=Array(p);ha&&(a+=g.length,0>a))return J["~"]=B;for(var E=b.global_regexp(this);;){d=E.exec(g);if(null===d)return J["~"]=B;if(d.index>=a)return J["~"]=A(m,"MatchData").$new(E,d),v===B?J["~"]:b.yield1(v,J["~"]);E.lastIndex= +d.index+1}},k.$$arity=-2);b.def(l,"$match?",sa=function(k,a){this.uninitialized&&this.$raise(A(m,"TypeError"),"uninitialized Regexp");if(void 0===a)return k===B?!1:this.test(A(m,"Opal").$coerce_to(k,A(m,"String"),"to_str"));a=A(m,"Opal").$coerce_to(a,A(m,"Integer"),"to_int");if(k===B)return!1;k=A(m,"Opal").$coerce_to(k,A(m,"String"),"to_str");if(0>a&&(a+=k.length,0>a))return!1;k=b.global_regexp(this).exec(k);return null===k||k.index"},D.$$arity=0);b.def(l,"$length",H=function(){return this.matches.length},H.$$arity=0);b.alias(l,"size","length");b.def(l,"$to_a",ia=function(){return this.matches},ia.$$arity=0);b.def(l,"$to_s",X=function(){return this.matches[0]},X.$$arity=0);return(b.def(l,"$values_at",a=function(a){var d=b.slice.call(arguments,0,arguments.length);var k,g=[];for(k=0;kp&&(p+=this.matches.length,0>p)){g.push(B);continue}g.push(this.matches[p])}return g},a.$$arity=-1),B)&&"values_at"}(t[0],null,t)}; +Opal.modules["corelib/string"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b/g:b["$/"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var A=b.top,u=[],q=b.nil,g=b.const_get_relative,J=b.klass,l=b.truthy,G=b.send,y=b.gvars;b.add_stubs("$require $include $coerce_to? $coerce_to $raise $=== $format $to_s $respond_to? $to_str $<=> $== $=~ $new $force_encoding $casecmp $empty? $ljust $ceil $/ $+ $rjust $floor $to_a $each_char $to_proc $coerce_to! $copy_singleton_methods $initialize_clone $initialize_dup $enum_for $size $chomp $[] $to_i $each_line $class $match $match? $captures $proc $succ $escape".split(" ")); +A.$require("corelib/comparable");A.$require("corelib/regexp");(function(m,$super,u){function P(a){function b(a){var b="",e,c=a.length;for(e=0;ef&&K.$raise(g(k,"ArgumentError"),'invalid range "'+d+"-"+f+'" in string transliteration');for(d+=1;da&&this.$raise(g(k,"ArgumentError"),"negative argument");if(0===a)return this.$$cast("");var b="",e=this.toString();for(268435456<=e.length*a&&this.$raise(g(k,"RangeError"),"multiply count must not overflow maximum string size");;){1===(a&1)&&(b+=e);a>>>=1;if(0===a)break;e+=e}return this.$$cast(b)},X.$$arity=1);b.def(K,"$+",a=function(a){a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str");return this+ +a.$to_s()},a.$$arity=1);b.def(K,"$<=>",d=function(a){if(l(a["$respond_to?"]("to_str")))return a=a.$to_str().$to_s(),this>a?1:this"](this);return a===q?q:0a?1:0},d.$$arity=1);b.def(K,"$==",v=function(a){return a.$$is_string?this.toString()===a.toString():g(k,"Opal")["$respond_to?"](a,"to_str")?a["$=="](this):!1},v.$$arity=1);b.alias(K,"eql?","==");b.alias(K,"===","==");b.def(K,"$=~",E=function(a){a.$$is_string&&this.$raise(g(k,"TypeError"),"type mismatch: String given");return a["$=~"](this)}, +E.$$arity=1);b.def(K,"$[]",O=function(a,b){var e=this.length;if(a.$$is_range){var c=a.excl;b=g(k,"Opal").$coerce_to(a.end,g(k,"Integer"),"to_int");a=g(k,"Opal").$coerce_to(a.begin,g(k,"Integer"),"to_int");if(Math.abs(a)>e)return q;0>a&&(a+=e);0>b&&(b+=e);c||(b+=1);b-=a;0>b&&(b=0);return this.$$cast(this.substr(a,b))}if(a.$$is_string)return null!=b&&this.$raise(g(k,"TypeError")),-1!==this.indexOf(a)?this.$$cast(a):q;if(a.$$is_regexp){e=this.match(a);if(null===e)return y["~"]=q;y["~"]=g(k,"MatchData").$new(a, +e);if(null==b)return this.$$cast(e[0]);b=g(k,"Opal").$coerce_to(b,g(k,"Integer"),"to_int");return 0>b&&-ba&&(a+=e);if(null==b)return a>=e||0>a?q:this.$$cast(this.substr(a,1));b=g(k,"Opal").$coerce_to(b,g(k,"Integer"),"to_int");return 0>b||a>e||0>a?q:this.$$cast(this.substr(a,b))},O.$$arity=-2);b.alias(K,"byteslice","[]");b.def(K,"$b",p=function(){return this.$force_encoding("binary")}, +p.$$arity=0);b.def(K,"$capitalize",h=function(){return this.$$cast(this.charAt(0).toUpperCase()+this.substr(1).toLowerCase())},h.$$arity=0);b.def(K,"$casecmp",e=function(a){var b=this;if(!l(a["$respond_to?"]("to_str")))return q;a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str").$to_s();var e=/^[\x00-\x7F]*$/;e.test(b)&&e.test(a)&&(b=b.toLowerCase(),a=a.toLowerCase());return b["$<=>"](a)},e.$$arity=1);b.def(K,"$casecmp?",z=function(a){a=this.$casecmp(a);return a===q?q:0===a},z.$$arity=1);b.def(K,"$center", +r=function(a,b){null==b&&(b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&this.$raise(g(k,"ArgumentError"),"zero width padding");if(l(a<=this.length))return this;var e=this.$ljust(t(B(a,this.length),2).$ceil(),b);a=this.$rjust(t(B(a,this.length),2).$floor(),b);return this.$$cast(a+e.slice(this.length))},r.$$arity=-2);b.def(K,"$chars",U=function(){var a=U.$$p,b=a||q;a&&(U.$$p=null);a&&(U.$$p=null);return l(b)? +G(this,"each_char",[],b.$to_proc()):this.$each_char().$to_a()},U.$$arity=0);b.def(K,"$chomp",F=function(a){null==y["/"]&&(y["/"]=q);null==a&&(a=y["/"]);if(l(a===q||0===this.length))return this;a=g(k,"Opal")["$coerce_to!"](a,g(k,"String"),"to_str").$to_s();var b;"\n"===a?b=this.replace(/\r?\n?$/,""):""===a?b=this.replace(/(\r?\n)+$/,""):this.length>=a.length&&this.substr(this.length-a.length,a.length)===a&&(b=this.substr(0,this.length-a.length));return null!=b?this.$$cast(b):this},F.$$arity=-1);b.def(K, +"$chop",n=function(){var a=this.length;a=1>=a?"":"\n"===this.charAt(a-1)&&"\r"===this.charAt(a-2)?this.substr(0,a-2):this.substr(0,a-1);return this.$$cast(a)},n.$$arity=0);b.def(K,"$chr",c=function(){return this.charAt(0)},c.$$arity=0);b.def(K,"$clone",f=function(){var a=this.slice();a.$copy_singleton_methods(this);a.$initialize_clone(this);return a},f.$$arity=0);b.def(K,"$dup",W=function(){var a=this.slice();a.$initialize_dup(this);return a},W.$$arity=0);b.def(K,"$count",aa=function(a){var e=b.slice.call(arguments, +0,arguments.length);0===e.length&&this.$raise(g(k,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");e=P(e);return null===e?0:this.length-this.replace(new RegExp(e,"g"),"").length},aa.$$arity=-1);b.def(K,"$delete",pa=function(a){var e=b.slice.call(arguments,0,arguments.length);0===e.length&&this.$raise(g(k,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");e=P(e);return null===e?this:this.$$cast(this.replace(new RegExp(e,"g"),""))},pa.$$arity=-1);b.def(K, +"$delete_prefix",L=function(a){a.$$is_string||(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"));return this.slice(0,a.length)===a?this.$$cast(this.slice(a.length)):this},L.$$arity=1);b.def(K,"$delete_suffix",R=function(a){a.$$is_string||(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"));return this.slice(this.length-a.length)===a?this.$$cast(this.slice(0,this.length-a.length)):this},R.$$arity=1);b.def(K,"$downcase",ba=function(){return this.$$cast(this.toLowerCase())},ba.$$arity=0);b.def(K,"$each_char", +x=function(){var a=x.$$p,e=a||q,c;a&&(x.$$p=null);a&&(x.$$p=null);if(e===q)return G(this,"enum_for",["each_char"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));a=0;for(var f=this.length;a=d.length&&this.substr(this.length-d.length,d.length)==d)return!0}return!1},ya.$$arity=-1);b.alias(K,"equal?","===");b.def(K,"$gsub",ea=function(a,e){var c=ea.$$p,f=c||q,d=this;c&&(ea.$$p=null);c&&(ea.$$p=null);if(void 0===e&&f===q)return d.$enum_for("gsub",a);c="";var w=q,n=0;a.$$is_regexp?a=b.global_multiline_regexp(a):(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g, +"\\$&"),"gm"));for(var C;;){var h=a.exec(d);if(null===h){y["~"]=q;c+=d.slice(n);break}w=g(k,"MatchData").$new(a,h);if(void 0===e){C=a.lastIndex;var r=f(h[0]);a.lastIndex=C}else e.$$is_hash?r=e["$[]"](h[0]).$to_s():(e.$$is_string||(e=g(k,"Opal").$coerce_to(e,g(k,"String"),"to_str")),r=e.replace(/([\\]+)([0-9+&`'])/g,function(a,b,e){if(0===b.length%2)return a;switch(e){case "+":for(a=h.length-1;0e&&(e+=this.length,0>e))return q;if(a.$$is_regexp)for(c=b.global_multiline_regexp(a);;){a=c.exec(this);if(null===a){y["~"]=q;e=-1;break}if(a.index>=e){y["~"]=g(k,"MatchData").$new(c,a);e=a.index;break}c.lastIndex=a.index+1}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),e=0===a.length&&e>this.length?-1:this.indexOf(a,e); +return-1===e?q:e},fa.$$arity=-2);b.def(K,"$inspect",Ba=function(){var a={"\u0007":"\\a","\u001b":"\\e","\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\x0B":"\\v",'"':'\\"',"\\":"\\\\"};return'"'+this.replace(/[\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,function(b){return a[b]||"\\u"+("0000"+b.charCodeAt(0).toString(16).toUpperCase()).slice(-4)}).replace(/#[\$@\{]/g,"\\$&")+'"'},Ba.$$arity=0);b.def(K,"$intern",La=function(){return this.toString()}, +La.$$arity=0);b.def(K,"$lines",Ea=function(a){var b=Ea.$$p,e=b||q;null==y["/"]&&(y["/"]=q);b&&(Ea.$$p=null);b&&(Ea.$$p=null);null==a&&(a=y["/"]);a=G(this,"each_line",[a],e.$to_proc());return l(e)?this:a.$to_a()},Ea.$$arity=-1);b.def(K,"$length",ja=function(){return this.length},ja.$$arity=0);b.def(K,"$ljust",wa=function(a,b){null==b&&(b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&this.$raise(g(k,"ArgumentError"), +"zero width padding");if(l(a<=this.length))return this;var e=-1,c="";for(a-=this.length;++e=f||65<=f&&90>=f||97<=f&&122>=f)switch(f){case 57:c=!0;f=48;break;case 90:c=!0;f=65;break;case 122:c=!0;f=97;break;default:c=!1,f+=1}else-1===e?255===f?(c=!0,f=0):(c=!1,f+=1):c=!0;b=b.slice(0,a)+String.fromCharCode(f)+b.slice(a+1);if(c&&(0===a||a===e)){switch(f){case 65:break;case 97:break;default:f+=1}b=0===a?String.fromCharCode(f)+b:b.slice(0,a)+String.fromCharCode(f)+ +b.slice(a);c=!1}if(!c)break}return this.$$cast(b)},Ja.$$arity=0);b.def(K,"$oct",Ca=function(){var a=this;var b=8;if(/^\s*_/.test(a))return 0;a=a.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(a,e,c,f){switch(f.charAt(0)){case "+":case "-":return a;case "0":if("x"===f.charAt(1)&&"0x"===c)return a}switch(c){case "0b":b=2;break;case "0":case "0o":b=8;break;case "0d":b=10;break;case "0x":b=16}return e+f});a=parseInt(a.replace(/_(?!_)/g,""),b);return isNaN(a)?0:a},Ca.$$arity=0);b.def(K,"$ord",Na=function(){return this.charCodeAt(0)}, +Na.$$arity=0);b.def(K,"$partition",na=function(a){if(a.$$is_regexp){var b=a.exec(this);null===b?b=-1:(g(k,"MatchData").$new(a,b),a=b[0],b=b.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),b=this.indexOf(a);return-1===b?[this,"",""]:[this.slice(0,b),this.slice(b,b+a.length),this.slice(b+a.length)]},na.$$arity=1);b.def(K,"$reverse",qa=function(){return this.split("").reverse().join("")},qa.$$arity=0);b.def(K,"$rindex",Ma=function(a,e){if(void 0===e)e=this.length;else if(e=g(k,"Opal").$coerce_to(e, +g(k,"Integer"),"to_int"),0>e&&(e+=this.length,0>e))return q;if(a.$$is_regexp){var c=null;for(a=b.global_multiline_regexp(a);;){var f=a.exec(this);if(null===f||f.index>e)break;c=f;a.lastIndex=c.index+1}null===c?(y["~"]=q,e=-1):(g(k,"MatchData").$new(a,c),e=c.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),e=this.lastIndexOf(a,e);return-1===e?q:e},Ma.$$arity=-2);b.def(K,"$rjust",Ua=function(a,b){null==b&&(b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b, +g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&this.$raise(g(k,"ArgumentError"),"zero width padding");if(l(a<=this.length))return this;a=Math.floor(a-this.length);var e=Array(Math.floor(a/b.length)+1).join(b);return this.$$cast(e+b.slice(0,a-e.length)+this)},Ua.$$arity=-2);b.def(K,"$rpartition",Ta=function(a){var e;if(a.$$is_regexp){var c=null;for(e=b.global_multiline_regexp(a);;){var f=e.exec(this);if(null===f)break;c=f;e.lastIndex=c.index+1}null===c?c=-1:(g(k,"MatchData").$new(e,c),a=c[0],c= +c.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),c=this.lastIndexOf(a);return-1===c?["","",this]:[this.slice(0,c),this.slice(c,c+a.length),this.slice(c+a.length)]},Ta.$$arity=1);b.def(K,"$rstrip",Ra=function(){return this.replace(/[\s\u0000]*$/,"")},Ra.$$arity=0);b.def(K,"$scan",la=function(a){var e=la.$$p,c=e||q;e&&(la.$$p=null);e&&(la.$$p=null);e=[];var f=q,d;a.$$is_regexp?a=b.global_multiline_regexp(a):(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g, +"\\$&"),"gm"));for(;null!=(d=a.exec(this));)f=g(k,"MatchData").$new(a,d),c===q?1==d.length?e.push(d[0]):e.push(f.$captures()):1==d.length?c(d[0]):c.call(this,f.$captures()),a.lastIndex===d.index&&(a.lastIndex+=1);y["~"]=f;return c!==q?this:e},la.$$arity=1);b.alias(K,"size","length");b.alias(K,"slice","[]");b.def(K,"$split",va=function(a,e){function c(){for(h=0;he){if(null!==r&&""===r[0]&&-1===a.source.indexOf("(?="))for(h=0,a=r.length;h=w.length)return c(),w;for(h=0;null!==r;){h++;n=a.lastIndex;if(h+1===e)break;r=a.exec(f)}w.splice(e-1,w.length-1,f.slice(n));c();return w},va.$$arity=-1);b.def(K,"$squeeze",ha=function(a){var e=b.slice.call(arguments,0,arguments.length);if(0===e.length)return this.$$cast(this.replace(/(.)\1+/g,"$1")); +e=P(e);return null===e?this:this.$$cast(this.replace(new RegExp("("+e+")\\1+","g"),"$1"))},ha.$$arity=-1);b.def(K,"$start_with?",Aa=function(a){var e=b.slice.call(arguments,0,arguments.length);for(var c=0,f=e.length;c=a?b:b&Math.pow(2,a)-1},Ha.$$arity=-1);b.def(K,"$swapcase",Fa=function(){var a=this.replace(/([a-z]+)|([A-Z]+)/g,function(a,b,e){return b?a.toUpperCase():a.toLowerCase()});return this.constructor===String?a:this.$class().$new(a)},Fa.$$arity=0);b.def(K,"$to_f",Da=function(){if("_"===this.charAt(0))return 0;var a=parseFloat(this.replace(/_/g, +""));return isNaN(a)||Infinity==a||-Infinity==a?0:a},Da.$$arity=0);b.def(K,"$to_i",Sa=function(a){null==a&&(a=10);var b=this.toLowerCase(),e=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");(1===e||0>e||36p&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(r)+"-"+String.fromCharCode(p)+'" in string transliteration'); +for(r+=1;rp&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(r)+"-"+String.fromCharCode(p)+'" in string transliteration');for(r+=1;rp&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(r)+"-"+String.fromCharCode(p)+'" in string transliteration');for(r+=1;rp&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(r)+"-"+String.fromCharCode(p)+'" in string transliteration');for(r+=1;rk:b["$>"](k)}function B(b,k){return"number"===typeof b&&"number"===typeof k?b+k:b["$+"](k)}function A(b,k){return"number"===typeof b&&"number"===typeof k?b-k:b["$-"](k)}function u(b,k){return"number"===typeof b&&"number"===typeof k?b<=k:b["$<="](k)}var q=[],g=b.nil,J=b.const_get_qualified,l=b.const_get_relative,G=b.module,y=b.truthy,m=b.send,Q=b.falsy,P=b.hash2,M=b.lambda;b.add_stubs("$each $public_send $destructure $to_enum $enumerator_size $new $yield $raise $slice_when $! $enum_for $flatten $map $warn $proc $== $nil? $respond_to? $coerce_to! $> $* $coerce_to $try_convert $< $+ $- $ceil $/ $size $__send__ $length $<= $[] $push $<< $[]= $=== $inspect $<=> $first $reverse $sort $to_proc $compare $call $dup $to_a $sort! $map! $key? $values $zip".split(" ")); +return function(q,k){function K(a){0===a.length&&(a=[g]);1=a)))return g;var d=[],n;this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments);b.yield1(c,a);d.push(a)};this.$each();if(0===d.length)return g;if(a===g)for(;;)for(e=0,n=d.length;ea)&&this.$raise(l(S,"ArgumentError"), +"attempt to drop negative size");var b=[],e=0;this.$each.$$p=function(){a<=e&&b.push(l(S,"Opal").$destructure(arguments));e++};this.$each();return b},p.$$arity=1);b.def(q,"$drop_while",h=function(){var a=h.$$p,e=a||g;a&&(h.$$p=null);a&&(h.$$p=null);if(e===g)return this.$enum_for("drop_while");var c=[],f=!0;this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments);if(f){var d=b.yield1(e,a);Q(d)&&(f=!1,c.push(a))}else c.push(a)};this.$each();return c},h.$$arity=0);b.def(q,"$each_cons",e=function(a){var c= +e.$$p,f=c||g,d;c&&(e.$$p=null);c&&(e.$$p=null);y(1!=arguments.length)&&this.$raise(l(S,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)");a=l(S,"Opal").$try_convert(a,l(S,"Integer"),"to_int");y(0>=a)&&this.$raise(l(S,"ArgumentError"),"invalid size");if(f===g)return m(this,"enum_for",["each_cons",a],(d=function(){var b;var e=(d.$$s||this).$enumerator_size();return y(e["$nil?"]())?g:y(y(b=e["$=="](0))?b:"number"===typeof e&&"number"===typeof a?ea&&n.shift();n.length==a&&b.yield1(f,n.slice(0,a))};this.$each();return g},e.$$arity=1);b.def(q,"$each_entry",z=function(a){var e=z.$$p,c=e||g,f;e&&(z.$$p=null);e&&(z.$$p=null);e=b.slice.call(arguments,0,arguments.length);if(c===g)return m(this,"to_enum",["each_entry"].concat(b.to_a(e)),(f=function(){return(f.$$s||this).$enumerator_size()},f.$$s=this,f.$$arity=0,f));this.$each.$$p= +function(){var a=l(S,"Opal").$destructure(arguments);b.yield1(c,a)};this.$each.apply(this,e);return this},z.$$arity=-1);b.def(q,"$each_slice",r=function(a){var e=r.$$p,c=e||g,f;e&&(r.$$p=null);e&&(r.$$p=null);a=l(S,"Opal").$coerce_to(a,l(S,"Integer"),"to_int");y(0>=a)&&this.$raise(l(S,"ArgumentError"),"invalid slice size");if(c===g)return m(this,"enum_for",["each_slice",a],(f=function(){var b=f.$$s||this;return y(b["$respond_to?"]("size"))?(b=b.$size(),("number"===typeof b&&"number"===typeof a?b/ +a:b["$/"](a)).$ceil()):g},f.$$s=this,f.$$arity=0,f));var d=[];this.$each.$$p=function(){var e=l(S,"Opal").$destructure(arguments);d.push(e);d.length===a&&(b.yield1(c,d),d=[])};this.$each();0a)&&this.$raise(l(S,"ArgumentError"),"attempt to take negative size");if(y(0==a))return[]; +d=0;m(this,"each",[],(c=function(e){var c=b.slice.call(arguments,0,arguments.length);f.push(l(S,"Opal").$destructure(c));if(y(a<=++d))b.ret(f);else return g},c.$$s=this,c.$$arity=-1,c));return f}catch(va){if(va===b.returner)return va.$v;throw va;}},W.$$arity=-1);b.alias(q,"flat_map","collect_concat");b.def(q,"$grep",aa=function(a){var e=aa.$$p,c=e||g,f,d=g;e&&(aa.$$p=null);e&&(aa.$$p=null);d=[];m(this,"each",[],(f=function(e){var f=b.slice.call(arguments,0,arguments.length);var n=K(f);if(!y(m(a,"__send__", +["==="].concat(b.to_a(n)))))return g;c!==g?(y(t(f.$length(),1))&&(f=[f]),f=b.yieldX(c,b.to_a(f))):y(u(f.$length(),1))&&(f=f["$[]"](0));return d.$push(f)},f.$$s=this,f.$$arity=-1,f));return d},aa.$$arity=1);b.def(q,"$grep_v",pa=function(a){var e=pa.$$p,c=e||g,f,d=g;e&&(pa.$$p=null);e&&(pa.$$p=null);d=[];m(this,"each",[],(f=function(e){var f=b.slice.call(arguments,0,arguments.length);var n=K(f);if(y(m(a,"__send__",["==="].concat(b.to_a(n)))))return g;c!==g?(y(t(f.$length(),1))&&(f=[f]),f=b.yieldX(c, +b.to_a(f))):y(u(f.$length(),1))&&(f=f["$[]"](0));return d.$push(f)},f.$$s=this,f.$$arity=-1,f));return d},pa.$$arity=1);b.def(q,"$group_by",L=function(){var a=L.$$p,e=a||g,c,f,d=g,n=g;a&&(L.$$p=null);a&&(L.$$p=null);if(e===g)return m(this,"enum_for",["group_by"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));d=P([],{});this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments),c=b.yield1(e,a);(y(f=d["$[]"](c))?f:(n=[c,[]],m(d,"[]=",b.to_a(n)),n[A(n.length, +1)]))["$<<"](a)};this.$each();return d},L.$$arity=0);b.def(q,"$include?",R=function(a){try{var e;m(this,"each",[],(e=function(e){var c=b.slice.call(arguments,0,arguments.length);if(l(S,"Opal").$destructure(c)["$=="](a))b.ret(!0);else return g},e.$$s=this,e.$$arity=-1,e));return!1}catch(Ta){if(Ta===b.returner)return Ta.$v;throw Ta;}},R.$$arity=1);b.def(q,"$inject",ba=function(a,e){var c=ba.$$p,f=c||g;c&&(ba.$$p=null);c&&(ba.$$p=null);var d=a;f!==g&&void 0===e?this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments); +void 0!==d&&(a=b.yieldX(f,[d,a]));d=a}:(void 0===e&&(l(S,"Symbol")["$==="](a)||this.$raise(l(S,"TypeError"),""+a.$inspect()+" is not a Symbol"),e=a,d=void 0),this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments);d=void 0===d?a:d.$__send__(e,a)});this.$each();return void 0==d?g:d},ba.$$arity=-1);b.def(q,"$lazy",x=function(){var a;return m(J(l(S,"Enumerator"),"Lazy"),"new",[this,this.$enumerator_size()],(a=function(a,e){null==a&&(a=g);var c=b.slice.call(arguments,1,arguments.length);return m(a, +"yield",b.to_a(c))},a.$$s=this,a.$$arity=-2,a))},x.$$arity=0);b.def(q,"$enumerator_size",ca=function(){return y(this["$respond_to?"]("size"))?this.$size():g},ca.$$arity=0);b.alias(q,"map","collect");b.def(q,"$max",da=function(a){var e=da.$$p,c=e||g,f=this;e&&(da.$$p=null);e&&(da.$$p=null);if(void 0===a||a===g){var d,n;f.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments);void 0===d?d=a:(n=c!==g?b.yieldX(c,[a,d]):a["$<=>"](d),n===g&&f.$raise(l(S,"ArgumentError"),"comparison failed"),0"](d)&& +(f=a,d=c)};this.$each();return void 0===f?g:f},ya.$$arity=0);b.alias(q,"member?","include?");b.def(q,"$min",ea=function(){var a=ea.$$p,b=a||g,e=this;a&&(ea.$$p=null);a&&(ea.$$p=null);var c;e.$each.$$p=b!==g?function(){var a=l(S,"Opal").$destructure(arguments);if(void 0===c)c=a;else{var f=b(a,c);f===g&&e.$raise(l(S,"ArgumentError"),"comparison failed");0>f&&(c=a)}}:function(){var a=l(S,"Opal").$destructure(arguments);void 0===c?c=a:0>l(S,"Opal").$compare(a,c)&&(c=a)};e.$each();return void 0===c?g: +c},ea.$$arity=0);b.def(q,"$min_by",xa=function(){var a=xa.$$p,e=a||g,c;a&&(xa.$$p=null);a&&(xa.$$p=null);if(!y(e))return m(this,"enum_for",["min_by"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));var f,d;this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments),c=b.yield1(e,a);void 0===f?(f=a,d=c):0>c["$<=>"](d)&&(f=a,d=c)};this.$each();return void 0===f?g:f},xa.$$arity=0);b.def(q,"$minmax",ta=function(){var a=ta.$$p,b=a||g,e,c,f=this;a&&(ta.$$p=null); +a&&(ta.$$p=null);b=y(e=b)?e:m(f,"proc",[],(c=function(a,b){null==a&&(a=g);null==b&&(b=g);return a["$<=>"](b)},c.$$s=f,c.$$arity=2,c));var d=g,n=g,h=!0;f.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments);if(h)d=n=a,h=!1;else{var e=b.$call(d,a);e===g?f.$raise(l(S,"ArgumentError"),"comparison failed"):0e&&(n=a)}};f.$each();return[d,n]},ta.$$arity=0);b.def(q,"$minmax_by",T=function(){var a=T.$$p;a&&(T.$$p= +null);a&&(T.$$p=null);return this.$raise(l(S,"NotImplementedError"))},T.$$arity=0);b.def(q,"$none?",fa=function(a){try{var e=fa.$$p,c=e||g,f,d,n;e&&(fa.$$p=null);e&&(fa.$$p=null);y(void 0!==a)?m(this,"each",[],(f=function(e){var c=b.slice.call(arguments,0,arguments.length);c=K(c);if(y(m(a,"public_send",["==="].concat(b.to_a(c)))))b.ret(!1);else return g},f.$$s=this,f.$$arity=-1,f)):c!==g?m(this,"each",[],(d=function(a){var e=b.slice.call(arguments,0,arguments.length);if(y(b.yieldX(c,b.to_a(e))))b.ret(!1); +else return g},d.$$s=this,d.$$arity=-1,d)):m(this,"each",[],(n=function(a){var e=b.slice.call(arguments,0,arguments.length);e=l(S,"Opal").$destructure(e);if(y(e))b.ret(!1);else return g},n.$$s=this,n.$$arity=-1,n));return!0}catch(ha){if(ha===b.returner)return ha.$v;throw ha;}},fa.$$arity=-1);b.def(q,"$one?",Ba=function(a){try{var e=Ba.$$p,c=e||g,f,d,n,h=g;e&&(Ba.$$p=null);e&&(Ba.$$p=null);h=0;y(void 0!==a)?m(this,"each",[],(f=function(e){var c=b.slice.call(arguments,0,arguments.length);c=K(c);if(y(m(a, +"public_send",["==="].concat(b.to_a(c)))))if(h=B(h,1),y(t(h,1)))b.ret(!1);else return g;else return g},f.$$s=this,f.$$arity=-1,f)):c!==g?m(this,"each",[],(d=function(a){var e=b.slice.call(arguments,0,arguments.length);if(!y(b.yieldX(c,b.to_a(e))))return g;h=B(h,1);if(y(t(h,1)))b.ret(!1);else return g},d.$$s=this,d.$$arity=-1,d)):m(this,"each",[],(n=function(a){var e=b.slice.call(arguments,0,arguments.length);if(!y(l(S,"Opal").$destructure(e)))return g;h=B(h,1);if(y(t(h,1)))b.ret(!1);else return g}, +n.$$s=this,n.$$arity=-1,n));return h["$=="](1)}catch(Aa){if(Aa===b.returner)return Aa.$v;throw Aa;}},Ba.$$arity=-1);b.def(q,"$partition",La=function(){var a=La.$$p,e=a||g,c;a&&(La.$$p=null);a&&(La.$$p=null);if(e===g)return m(this,"enum_for",["partition"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));var f=[],d=[];this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments),c=b.yield1(e,a);y(c)?f.push(a):d.push(a)};this.$each();return[f,d]},La.$$arity=0);b.alias(q, +"reduce","inject");b.def(q,"$reject",Ea=function(){var a=Ea.$$p,e=a||g,c;a&&(Ea.$$p=null);a&&(Ea.$$p=null);if(e===g)return m(this,"enum_for",["reject"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));var f=[];this.$each.$$p=function(){var a=l(S,"Opal").$destructure(arguments),c=b.yield1(e,a);Q(c)&&f.push(a)};this.$each();return f},Ea.$$arity=0);b.def(q,"$reverse_each",ja=function(){var a=ja.$$p,e=a||g,c;a&&(ja.$$p=null);a&&(ja.$$p=null);if(e===g)return m(this,"enum_for", +["reverse_each"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));var f=[];this.$each.$$p=function(){f.push(arguments)};this.$each();for(a=f.length-1;0<=a;a--)b.yieldX(e,f[a]);return f},ja.$$arity=0);b.alias(q,"select","find_all");b.def(q,"$slice_before",wa=function(a){var e=wa.$$p,c=e||g,f;e&&(wa.$$p=null);e&&(wa.$$p=null);y(void 0===a&&c===g)&&this.$raise(l(S,"ArgumentError"),"both pattern and block are given");y(void 0!==a&&c!==g||1"](b)},e.$$s=this,e.$$arity=2,e)));return m(c,"sort",[],b.$to_proc())},V.$$arity=0);b.def(q,"$sort_by",ka=function(){var a=ka.$$p,e=a||g,c,f,d,n,h=g;a&&(ka.$$p=null);a&&(ka.$$p=null);if(e===g)return m(this,"enum_for",["sort_by"],(c=function(){return(c.$$s||this).$enumerator_size()},c.$$s=this,c.$$arity=0,c));h=m(this,"map",[],(f=function(){var a=l(S,"Opal").$destructure(arguments);return[b.yield1(e,a),a]},f.$$s=this,f.$$arity=0,f));m(h,"sort!",[],(d=function(a,b){null== +a&&(a=g);null==b&&(b=g);return a[0]["$<=>"](b[0])},d.$$s=this,d.$$arity=2,d));return m(h,"map!",[],(n=function(a){null==a&&(a=g);return a[1]},n.$$s=this,n.$$arity=1,n))},ka.$$arity=0);b.def(q,"$sum",Ja=function(a){var e,c=Ja.$$p,f=c||g,d=g;c&&(Ja.$$p=null);null==a&&(a=0);d=a;m(this,"each",[],(e=function(a){var e=b.slice.call(arguments,0,arguments.length);e=f!==g?b.yieldX(f,b.to_a(e)):l(S,"Opal").$destructure(e);return d=B(d,e)},e.$$s=this,e.$$arity=-1,e));return d},Ja.$$arity=-1);b.def(q,"$take", +Ca=function(a){return this.$first(a)},Ca.$$arity=1);b.def(q,"$take_while",Na=function(){try{var a=Na.$$p,e=a||g,c,f=g;a&&(Na.$$p=null);a&&(Na.$$p=null);if(!y(e))return this.$enum_for("take_while");f=[];return m(this,"each",[],(c=function(a){var c=b.slice.call(arguments,0,arguments.length);c=l(S,"Opal").$destructure(c);y(b.yield1(e,c))||b.ret(f);return f.push(c)},c.$$s=this,c.$$arity=-1,c))}catch(la){if(la===b.returner)return la.$v;throw la;}},Na.$$arity=0);b.def(q,"$uniq",na=function(){var a=na.$$p, +e=a||g,c,f=g;a&&(na.$$p=null);a&&(na.$$p=null);f=P([],{});m(this,"each",[],(c=function(a){var c=b.slice.call(arguments,0,arguments.length);c=l(S,"Opal").$destructure(c);var d=e!==g?b.yield1(e,c):c;if(y(f["$key?"](d)))return g;c=[d,c];m(f,"[]=",b.to_a(c));return c[A(c.length,1)]},c.$$s=this,c.$$arity=-1,c));return f.$values()},na.$$arity=0);b.alias(q,"to_a","entries");b.def(q,"$zip",qa=function(a){var e=qa.$$p;e&&(qa.$$p=null);e&&(qa.$$p=null);e=b.slice.call(arguments,0,arguments.length);return m(this.$to_a(), +"zip",b.to_a(e))},qa.$$arity=-1)}(q[0],q)}; +Opal.modules["corelib/enumerator"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b")},X.$$arity=0);(function(a,$super,k){a=G(a,$super,"Generator");var v=[a].concat(k),l,p;a.$$prototype.block=q;a.$include(g(v,"Enumerable"));b.def(a,"$initialize",l=function(){var a=l.$$p,b=a||q;a&&(l.$$p=null);a&&(l.$$p=null);y(b)||this.$raise(g(v,"LocalJumpError"),"no block given");return this.block=b},l.$$arity=0);return(b.def(a,"$each",p=function(a){var e=p.$$p,h=e||q;e&& +(p.$$p=null);e&&(p.$$p=null);e=b.slice.call(arguments,0,arguments.length);h=m(g(v,"Yielder"),"new",[],h.$to_proc());try{e.unshift(h),b.yieldX(this.block,e)}catch(r){if(r===J)return J.$v;throw r;}return this},p.$$arity=-1),q)&&"each"})(k[0],null,k);(function(a,$super,k){a=G(a,$super,"Yielder");[a].concat(k);var g,v,p;a.$$prototype.block=q;b.def(a,"$initialize",g=function(){var a=g.$$p,b=a||q;a&&(g.$$p=null);a&&(g.$$p=null);return this.block=b},g.$$arity=0);b.def(a,"$yield",v=function(a){var e=b.slice.call(arguments, +0,arguments.length);e=b.yieldX(this.block,e);if(e===J)throw J;return e},v.$$arity=-1);return(b.def(a,"$<<",p=function(a){var e=b.slice.call(arguments,0,arguments.length);m(this,"yield",b.to_a(e));return this},p.$$arity=-1),q)&&"<<"})(k[0],null,k);return function(a,$super,k){a=G(a,$super,"Lazy");var v=[a].concat(k),l,p,h,e,z,r,U,F,n,c,f,W,aa;a.$$prototype.enumerator=q;(function(a,$super,b){[G(a,$super,"StopLazyError")].concat(b);return q})(v[0],g(v,"Exception"),v);b.def(a,"$initialize",l=function(a, +e){var c=l.$$p,f=c||q,n;c&&(l.$$p=null);c&&(l.$$p=null);null==e&&(e=q);f===q&&this.$raise(g(v,"ArgumentError"),"tried to call lazy new without a block");this.enumerator=a;return m(this,b.find_super_dispatcher(this,"initialize",l,!1),[e],(n=function(e,c){var h=n.$$s||this,r;null==e&&(e=q);var p=b.slice.call(arguments,1,arguments.length);try{return m(a,"each",b.to_a(p),(r=function(a){var c=b.slice.call(arguments,0,arguments.length);c.unshift(e);b.yieldX(f,c)},r.$$s=h,r.$$arity=-1,r))}catch(ta){if(b.rescue(ta, +[g(v,"Exception")]))try{return q}finally{b.pop_exception()}else throw ta;}},n.$$s=this,n.$$arity=-2,n))},l.$$arity=-2);b.alias(a,"force","to_a");b.def(a,"$lazy",p=function(){return this},p.$$arity=0);b.def(a,"$collect",h=function(){var a=h.$$p,e=a||q,c;a&&(h.$$p=null);a&&(h.$$p=null);y(e)||this.$raise(g(v,"ArgumentError"),"tried to call lazy map without a block");return m(g(v,"Lazy"),"new",[this,this.$enumerator_size()],(c=function(a,c){null==a&&(a=q);var f=b.slice.call(arguments,1,arguments.length); +f=b.yieldX(e,f);a.$yield(f)},c.$$s=this,c.$$arity=-2,c))},h.$$arity=0);b.def(a,"$collect_concat",e=function(){var a=e.$$p,c=a||q,f;a&&(e.$$p=null);a&&(e.$$p=null);y(c)||this.$raise(g(v,"ArgumentError"),"tried to call lazy map without a block");return m(g(v,"Lazy"),"new",[this,q],(f=function(a,e){var n=f.$$s||this,h,r;null==a&&(a=q);var p=b.slice.call(arguments,1,arguments.length);p=b.yieldX(c,p);p["$respond_to?"]("force")&&p["$respond_to?"]("each")?m(p,"each",[],(h=function(b){null==b&&(b=q);return a.$yield(b)}, +h.$$s=n,h.$$arity=1,h)):g(v,"Opal").$try_convert(p,g(v,"Array"),"to_ary")===q?a.$yield(p):m(p,"each",[],(r=function(b){null==b&&(b=q);return a.$yield(b)},r.$$s=n,r.$$arity=1,r))},f.$$s=this,f.$$arity=-2,f))},e.$$arity=0);b.def(a,"$drop",z=function(a){var e,c=q,f=c=q;a=g(v,"Opal").$coerce_to(a,g(v,"Integer"),"to_int");y(B(a,0))&&this.$raise(g(v,"ArgumentError"),"attempt to drop negative size");c=this.$enumerator_size();c=y(g(v,"Integer")["$==="](c))?y(B(a,c))?a:c:c;f=0;return m(g(v,"Lazy"),"new",[this, +c],(e=function(e,c){null==e&&(e=q);var n=b.slice.call(arguments,1,arguments.length);return y(B(f,a))?f=t(f,1):m(e,"yield",b.to_a(n))},e.$$s=this,e.$$arity=-2,e))},z.$$arity=1);b.def(a,"$drop_while",r=function(){var a=r.$$p,e=a||q,c,f=q;a&&(r.$$p=null);a&&(r.$$p=null);y(e)||this.$raise(g(v,"ArgumentError"),"tried to call lazy drop_while without a block");f=!0;return m(g(v,"Lazy"),"new",[this,q],(c=function(a,c){null==a&&(a=q);var n=b.slice.call(arguments,1,arguments.length);if(y(f)){var h=b.yieldX(e, +n);Q(h)&&(f=!1,m(a,"yield",b.to_a(n)))}else return m(a,"yield",b.to_a(n))},c.$$s=this,c.$$arity=-2,c))},r.$$arity=0);b.def(a,"$enum_for",U=function(a,e){var c=U.$$p,f=c||q;c&&(U.$$p=null);c&&(U.$$p=null);c=b.slice.call(arguments,0,arguments.length);if(0"},aa.$$arity=0),q)&&"inspect"}(k[0],u,k)}(u[0],null,u)}; +Opal.modules["corelib/numeric"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b*g:b["$*"](g)}function A(b,g){return"number"===typeof b&&"number"===typeof g?b".split(" ")); +q.$require("corelib/comparable");return function(g,$super,q){g=y(g,$super,"Numeric");var k=[g].concat(q),K,P,D,H,ia,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba;g.$include(G(k,"Comparable"));b.def(g,"$coerce",K=function(a){return m(a["$instance_of?"](this.$class()))?[a,this]:[this.$Float(a),this.$Float(this)]},K.$$arity=1);b.def(g,"$__coerced__",P=function(a,e){if(m(e["$respond_to?"]("coerce"))){e=e.$coerce(this);var c=b.to_ary(e);var f=null==c[0]?J:c[0];c=null==c[1]? +J:c[1];e;return f.$__send__(a,c)}return"+"["$==="](a)||"-"["$==="](a)||"*"["$==="](a)||"/"["$==="](a)||"%"["$==="](a)||"&"["$==="](a)||"|"["$==="](a)||"^"["$==="](a)||"**"["$==="](a)?this.$raise(G(k,"TypeError"),""+e.$class()+" can't be coerced into Numeric"):">"["$==="](a)||">="["$==="](a)||"<"["$==="](a)||"<="["$==="](a)||"<=>"["$==="](a)?this.$raise(G(k,"ArgumentError"),"comparison of "+this.$class()+" with "+e.$class()+" failed"):J},P.$$arity=2);b.def(g,"$<=>",D=function(a){return m(this["$equal?"](a))? +0:J},D.$$arity=1);b.def(g,"$+@",H=function(){return this},H.$$arity=0);b.def(g,"$-@",ia=function(){return t(0,this)},ia.$$arity=0);b.def(g,"$%",X=function(a){return t(this,B(a,this.$div(a)))},X.$$arity=1);b.def(g,"$abs",a=function(){return A(this,0)?this["$-@"]():this},a.$$arity=0);b.def(g,"$abs2",d=function(){return B(this,this)},d.$$arity=0);b.def(g,"$angle",v=function(){return A(this,0)?l(G(k,"Math"),"PI"):0},v.$$arity=0);b.alias(g,"arg","angle");b.def(g,"$ceil",E=function(a){null==a&&(a=0);return this.$to_f().$ceil(a)}, +E.$$arity=-1);b.def(g,"$conj",O=function(){return this},O.$$arity=0);b.alias(g,"conjugate","conj");b.def(g,"$denominator",p=function(){return this.$to_r().$denominator()},p.$$arity=0);b.def(g,"$div",h=function(a){a["$=="](0)&&this.$raise(G(k,"ZeroDivisionError"),"divided by o");return u(this,a).$floor()},h.$$arity=1);b.def(g,"$divmod",e=function(a){return[this.$div(a),this["$%"](a)]},e.$$arity=1);b.def(g,"$fdiv",z=function(a){return u(this.$to_f(),a)},z.$$arity=1);b.def(g,"$floor",r=function(a){null== +a&&(a=0);return this.$to_f().$floor(a)},r.$$arity=-1);b.def(g,"$i",U=function(){return this.$Complex(0,this)},U.$$arity=0);b.def(g,"$imag",F=function(){return 0},F.$$arity=0);b.alias(g,"imaginary","imag");b.def(g,"$integer?",n=function(){return!1},n.$$arity=0);b.alias(g,"magnitude","abs");b.alias(g,"modulo","%");b.def(g,"$nonzero?",c=function(){return m(this["$zero?"]())?J:this},c.$$arity=0);b.def(g,"$numerator",f=function(){return this.$to_r().$numerator()},f.$$arity=0);b.alias(g,"phase","arg"); +b.def(g,"$polar",W=function(){return[this.$abs(),this.$arg()]},W.$$arity=0);b.def(g,"$quo",aa=function(a){return u(G(k,"Opal")["$coerce_to!"](this,G(k,"Rational"),"to_r"),a)},aa.$$arity=1);b.def(g,"$real",pa=function(){return this},pa.$$arity=0);b.def(g,"$real?",L=function(){return!0},L.$$arity=0);b.def(g,"$rect",R=function(){return[this,0]},R.$$arity=0);b.alias(g,"rectangular","rect");b.def(g,"$round",ba=function(a){return this.$to_f().$round(a)},ba.$$arity=-1);b.def(g,"$to_c",x=function(){return this.$Complex(this, +0)},x.$$arity=0);b.def(g,"$to_int",ca=function(){return this.$to_i()},ca.$$arity=0);b.def(g,"$truncate",da=function(a){null==a&&(a=0);return this.$to_f().$truncate(a)},da.$$arity=-1);b.def(g,"$zero?",ya=function(){return this["$=="](0)},ya.$$arity=0);b.def(g,"$positive?",ea=function(){return"number"===typeof this?0"](0)},ea.$$arity=0);b.def(g,"$negative?",xa=function(){return A(this,0)},xa.$$arity=0);b.def(g,"$dup",ta=function(){return this},ta.$$arity=0);b.def(g,"$clone",T=function(a){if(null== +a)Q([],{});else if(!a.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return this},T.$$arity=-1);b.def(g,"$finite?",fa=function(){return!0},fa.$$arity=0);return(b.def(g,"$infinite?",Ba=function(){return J},Ba.$$arity=0),J)&&"infinite?"}(g[0],null,g)}; +Opal.modules["corelib/array"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}var B=b.top,A=[],u=b.nil,q=b.const_get_qualified,g=b.const_get_relative,J=b.klass,l=b.truthy,G=b.hash2,y=b.send,m=b.gvars;b.add_stubs("$require $include $to_a $warn $raise $replace $respond_to? $to_ary $coerce_to $coerce_to? $=== $join $to_str $class $hash $<=> $== $object_id $inspect $enum_for $bsearch_index $to_proc $nil? $coerce_to! $> $* $enumerator_size $empty? $size $map $equal? $dup $each $[] $dig $eql? $length $begin $end $exclude_end? $flatten $__id__ $to_s $new $max $min $! $>= $** $delete_if $reverse $rotate $rand $at $keep_if $shuffle! $< $sort $sort_by $!= $times $[]= $- $<< $values $is_a? $last $first $upto $reject $pristine $singleton_class".split(" ")); +B.$require("corelib/enumerable");B.$require("corelib/numeric");return function(A,$super,B){function K(a,e){return e.$$name===b.Array?a:e.$allocate().$replace(a.$to_a())}function k(a,e){var c=a.length;var f=e.excl;var d=b.Opal.$coerce_to(e.begin,b.Integer,"to_int");e=b.Opal.$coerce_to(e.end,b.Integer,"to_int");if(0>d&&(d+=c,0>d)||d>c)return u;if(0>e&&(e+=c,0>e))return[];f||(e+=1);c=a.slice(d,e);return K(c,a.$class())}function M(a,e,c){var f=a.length;e=b.Opal.$coerce_to(e,b.Integer,"to_int");if(0>e&& +(e+=f,0>e))return u;if(void 0===c)return e>=f||0>e?u:a[e];c=b.Opal.$coerce_to(c,b.Integer,"to_int");if(0>c||e>f||0>e)return u;e=a.slice(e,e+c);return K(e,a.$class())}function S(a,b){return a===b||0===b?1:0b?S(a-1,b-1)+S(a-1,b):0}var D=J(A,$super,"Array"),H=[D].concat(B),Q,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba,La,Ea,ja,wa,ra,I,V,ka,Ja,Ca,Na,na,qa,Ma,Ua,Ta,Ra,la,va,ha,Aa,Ka,ua,Ha,Fa,Da,Sa,Qa,Oa,Ga,za,Ya,Pa,Va,Wa,ab,Xa,Y,w,C,ma,N,Z,oa,db,Ia,bb,cb,hb,lb,mb,nb, +Za,$a,fb,ob,ib,pb,jb,gb;D.$include(g(H,"Enumerable"));b.defineProperty(D.$$prototype,"$$is_array",!0);b.defs(D,"$[]",Q=function(a){var e=b.slice.call(arguments,0,arguments.length);return K(e,this)},Q.$$arity=-1);b.def(D,"$initialize",X=function(a,b){var e=X.$$p,c=e||u;e&&(X.$$p=null);e&&(X.$$p=null);null==a&&(a=u);null==b&&(b=u);b!==u&&c!==u&&this.$warn("warning: block supersedes default value argument");a>q(g(H,"Integer"),"MAX")&&this.$raise(g(H,"ArgumentError"),"array size too big");2a&&this.$raise(g(H,"ArgumentError"),"negative array size");this.splice(0,this.length);if(c===u)for(e=0;ea)&&this.$raise(g(H,"ArgumentError"),"negative argument");for(var b=[],e=this.$to_a(),c=0;c",e=function(a){if(l(g(H,"Array")["$==="](a)))a=a.$to_a();else if(l(a["$respond_to?"]("to_ary")))a=a.$to_ary().$to_a();else return u;if(this.$hash()===a.$hash())return 0;for(var b=Math.min(this.length,a.length),e=0;e"](a[e]);if(0!==c)return c}return this.length["$<=>"](a.length)},e.$$arity=1);b.def(D,"$==",z=function(a){function b(a,c){var f;if(a===c)return!0; +if(!c.$$is_array)return g(H,"Opal")["$respond_to?"](c,"to_ary")?c["$=="](a):!1;a.$$constructor!==Array&&(a=a.$to_a());c.$$constructor!==Array&&(c=c.$to_a());if(a.length!==c.length)return!1;e[a.$object_id()]=!0;var d=0;for(f=a.length;de&&(e+=f,0>e&&this.$raise(g(H,"RangeError"),""+a.$inspect()+" out of range"));0>w&&(w+=f);d||(w+=1);if(e>f)for(;fw?this.splice.apply(this, +[e,0].concat(c)):this.splice.apply(this,[e,w-e].concat(c))}else{l(void 0===e)?w=1:(w=b,b=e,c=l(g(H,"Array")["$==="](b))?b.$to_a():l(b["$respond_to?"]("to_ary"))?b.$to_ary().$to_a():[b]);a=g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");w=g(H,"Opal").$coerce_to(w,g(H,"Integer"),"to_int");0>a&&(d=a,a+=f,0>a&&this.$raise(g(H,"IndexError"),"index "+d+" too small for array; minimum "+-this.length));0>w&&this.$raise(g(H,"IndexError"),"negative length ("+w+")");if(a>f)for(;fa&&(a+=this.length);return 0>a||a>=this.length?u:this[a]},c.$$arity=1);b.def(D,"$bsearch_index",f=function(){var a=f.$$p,e=a||u;a&&(f.$$p=null);a&&(f.$$p=null);if(e===u)return this.$enum_for("bsearch_index");a=0;for(var c=this.length,d,w,n=!1,h=u;aw}else this.$raise(g(H,"TypeError"),"wrong argument type "+w.$class()+" (must be numeric, true, false or nil)"); +n?c=d:a=d+1}return h},f.$$arity=0);b.def(D,"$bsearch",W=function(){var a=W.$$p,b=a||u;a&&(W.$$p=null);a&&(W.$$p=null);if(b===u)return this.$enum_for("bsearch");a=y(this,"bsearch_index",[],b.$to_proc());return null!=a&&a.$$is_number?this[a]:a},W.$$arity=0);b.def(D,"$cycle",aa=function(a){var e=aa.$$p,c=e||u,f,d;e&&(aa.$$p=null);e&&(aa.$$p=null);null==a&&(a=u);if(c===u)return y(this,"enum_for",["cycle",a],(f=function(){var b=f.$$s||this;if(l(a["$nil?"]()))return q(g(H,"Float"),"INFINITY");a=g(H,"Opal")["$coerce_to!"](a, +g(H,"Integer"),"to_int");return l(t(a,0))?(b=b.$enumerator_size(),"number"===typeof b&&"number"===typeof a?b*a:b["$*"](a)):0},f.$$s=this,f.$$arity=0,f));if(l(l(d=this["$empty?"]())?d:a["$=="](0)))return u;if(a===u)for(;;)for(e=0,d=this.length;e=a)return this;for(;0a&&(a+=this.length);if(0>a||a>=this.length)return u;var b=this[a];this.splice(a,1);return b},T.$$arity=1);b.def(D,"$delete_if",fa=function(){var a=fa.$$p,b=a||u,e;a&&(fa.$$p=null);a&&(fa.$$p=null);if(b===u)return y(this,"enum_for",["delete_if"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var c=this.length,f;a< +c;a++)f=b(this[a]),!1!==f&&f!==u&&(this.splice(a,1),c--,a--);return this},fa.$$arity=0);b.def(D,"$dig",Ba=function(a,e){var c=b.slice.call(arguments,1,arguments.length);var f=this["$[]"](a);if(f===u||0===c.length)return f;l(f["$respond_to?"]("dig"))||this.$raise(g(H,"TypeError"),""+f.$class()+" does not have #dig method");return y(f,"dig",b.to_a(c))},Ba.$$arity=-2);b.def(D,"$drop",La=function(a){0>a&&this.$raise(g(H,"ArgumentError"));return this.slice(a)},La.$$arity=1);b.def(D,"$dup",Ea=function(){var a= +Ea.$$p,e;a&&(Ea.$$p=null);var c=0;var f=arguments.length;for(e=Array(f);ca&&(a+=this.length);if(0<= +a&&ad)&&(d+=this.length),l(0>d)&&this.$raise(g(H,"RangeError"),""+e.$inspect()+" out of range"),w=g(H,"Opal").$coerce_to(e.$end(),g(H,"Integer"),"to_int"),l(0>w)&&(w+=this.length),l(e["$exclude_end?"]())||(w+=1),l(w<=d))return this}else if(l(e))if(d=g(H,"Opal").$coerce_to(e,g(H,"Integer"),"to_int"),l(0>d)&&(d+=this.length),l(0>d)&&(d=0),l(w)){w=g(H,"Opal").$coerce_to(w,g(H,"Integer"),"to_int");if(l(0== +w))return this;w+=d}else w=this.length;else d=0,w=this.length;if(l(d>this.length))for(e=this.length;ethis.length)&&(this.length=w);if(l(c))for(;da&&this.$raise(g(H,"ArgumentError"),"negative array size");return this.slice(0,a)},Ja.$$arity=-1);b.def(D,"$flatten",Ca=function(a){function b(a, +c){var f=[],d;a=a.$to_a();var w=0;for(d=a.length;wa&&(a+=this.length+1,0>a&&this.$raise(g(H,"IndexError"),""+a+" is out of bounds"));if(a>this.length)for(var f=this.length;fa&&this.$raise(g(H,"ArgumentError"),"negative array size");a>this.length&&(a=this.length);return this.slice(this.length-a,this.length)},va.$$arity=-1);b.def(D,"$length",ha=function(){return this.length},ha.$$arity=0);b.alias(D,"map","collect"); +b.alias(D,"map!","collect!");b.def(D,"$max",Aa=function(a){var b=Aa.$$p,e=b||u;b&&(Aa.$$p=null);b&&(Aa.$$p=null);return y(this.$each(),"max",[a],e.$to_proc())},Aa.$$arity=-1);b.def(D,"$min",Ka=function(){var a=Ka.$$p,b=a||u;a&&(Ka.$$p=null);a&&(Ka.$$p=null);return y(this.$each(),"min",[],b.$to_proc())},Ka.$$arity=0);b.def(D,"$permutation",ua=function(a){var e=ua.$$p,c=e||u,f,d=this,w=u,n=u;e&&(ua.$$p=null);e&&(ua.$$p=null);if(c===u)return y(d,"enum_for",["permutation",a],(f=function(){var b=f.$$s|| +this,e=b.length;b=void 0===a?b.length:a;for(var c=0<=b?1:0;b;)c*=e,e--,b--;return c},f.$$s=d,f.$$arity=0,f));var h;a=void 0===a?d.length:g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");if(!(0>a||d.length="](0))?a.$size()["$**"](w):0},c.$$s=this,c.$$arity=0,c));e(w,[],this.slice());return this},Ha.$$arity=1);b.def(D,"$pop",Fa=function(a){if(l(void 0===a))return l(0===this.length)?u:this.pop();a=g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");l(0>a)&&this.$raise(g(H,"ArgumentError"),"negative array size");return l(0===this.length)?[]:l(a>this.length)?this.splice(0,this.length):this.splice(this.length-a,this.length)},Fa.$$arity=-1);b.def(D,"$product",Da=function(a){var e=Da.$$p, +c=e||u;e&&(Da.$$p=null);e&&(Da.$$p=null);var f=b.slice.call(arguments,0,arguments.length);e=c!==u?null:[];var d=f.length+1,w=Array(d),n=Array(d),h=Array(d),r;var p=1;h[0]=this;for(r=1;r--r)break a;w[r]++}}return e||this},Da.$$arity=-1);b.def(D,"$push",Sa=function(a){var e=b.slice.call(arguments,0,arguments.length);for(var c=0,f=e.length;c=this.length);b--){if(this[b]["$=="](a))return b}else if(e!==u)for(b=this.length-1;0<=b&&!(b>=this.length);b--){if(a=e(this[b]),!1!==a&&a!==u)return b}else if(null==a)return this.$enum_for("rindex"); +return u},Wa.$$arity=-1);b.def(D,"$rotate",ab=function(a){null==a&&(a=1);a=g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");if(1===this.length)return this.slice();if(0===this.length)return[];var b=this.slice();var e=a%b.length;a=b.slice(e);b=b.slice(0,e);return a.concat(b)},ab.$$arity=-1);b.def(D,"$rotate!",Xa=function(a){null==a&&(a=1);if(0===this.length||1===this.length)return this;a=g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");a=this.$rotate(a);return this.$replace(a)},Xa.$$arity=-1);(function(a, +$super,e){a=J(a,$super,"SampleRandom");var c=[a].concat(e),f,d;a.$$prototype.rng=u;b.def(a,"$initialize",f=function(a){return this.rng=a},f.$$arity=1);return(b.def(a,"$rand",d=function(a){var b=g(c,"Opal").$coerce_to(this.rng.$rand(a),g(c,"Integer"),"to_int");l(0>b)&&this.$raise(g(c,"RangeError"),"random value must be >= 0");l(ba:e)&&this.$raise(g(H,"ArgumentError"),"count must be greater than 0");l(b)&&(c=b["$[]"]("random"));c=l(l(e=c)?c["$respond_to?"]("rand"):e)?g(H,"SampleRandom").$new(c):g(H,"Kernel");if(!l(a))return this[c.$rand(this.length)]; +a>this.length&&(a=this.length);switch(a){case 0:return[];case 1:return[this[c.$rand(this.length)]];case 2:var f=c.$rand(this.length);var d=c.$rand(this.length);f===d&&(d=0===f?f+1:f-1);return[this[f],this[d]];default:if(3a)&&this.$raise(g(H,"ArgumentError"),"negative array size"); +return l(0===this.length)?[]:this.splice(0,a)},ma.$$arity=-1);b.alias(D,"size","length");b.def(D,"$shuffle",N=function(a){return this.$dup().$to_a()["$shuffle!"](a)},N.$$arity=-1);b.def(D,"$shuffle!",Z=function(a){var b,e=this.length;void 0!==a&&(a=g(H,"Opal")["$coerce_to?"](a,g(H,"Hash"),"to_hash"),a!==u&&(a=a["$[]"]("random"),a!==u&&a["$respond_to?"]("rand")&&(b=a)));for(;e;){b?(a=b.$rand(e).$to_int(),0>a&&this.$raise(g(H,"RangeError"),"random number too small "+a),a>=e&&this.$raise(g(H,"RangeError"), +"random number too big "+a)):a=this.$rand(e);var c=this[--e];this[e]=this[a];this[a]=c}return this},Z.$$arity=-1);b.alias(D,"slice","[]");b.def(D,"$slice!",oa=function(a,b){if(l(void 0===b))if(l(g(H,"Range")["$==="](a))){var e=this["$[]"](a);b=g(H,"Opal").$coerce_to(a.$begin(),g(H,"Integer"),"to_int");var c=g(H,"Opal").$coerce_to(a.$end(),g(H,"Integer"),"to_int");0>b&&(b+=this.length);0>c?c+=this.length:c>=this.length&&(c=this.length-1,a.excl&&(c+=1));var f=c-b;a.excl?--c:f+=1;ba&&(a+=this.length);if(0>a||a>=this.length)return u;e=this[a];0===a?this.shift():this.splice(a,1)}else{a=g(H,"Opal").$coerce_to(a,g(H,"Integer"),"to_int");b=g(H,"Opal").$coerce_to(b,g(H,"Integer"),"to_int");if(0>b)return u;e=this["$[]"](a,b);0>a&&(a+=this.length);a+b>this.length&&(b=this.length-a);a"](b)});return e.slice().sort(function(a,c){var f=b(a,c);f===u&&e.$raise(g(H,"ArgumentError"),"comparison of "+a.$inspect()+" with "+c.$inspect()+" failed");return t(f,0)?1:("number"===typeof f?0>f:f["$<"](0))?-1:0})},db.$$arity=0);b.def(D,"$sort!",Ia=function(){var a=Ia.$$p,b=a||u;a&&(Ia.$$p=null);a&&(Ia.$$p=null);a=b!==u?y(this.slice(),"sort",[],b.$to_proc()):this.slice().$sort();b=this.length= +0;for(var e=a.length;ba&&this.$raise(g(H,"ArgumentError"));return this.slice(0,a)},cb.$$arity=1);b.def(D,"$take_while",hb=function(){var a=hb.$$p,b=a|| +u;a&&(hb.$$p=null);a&&(hb.$$p=null);a=[];for(var e=0,c=this.length,f,d;ew)return w+=b.length, +u;0>d&&(d+=b.length);a["$exclude_end?"]()&&d--;return d=g:b["$>="](g)}var B=b.top,A=[],u=b.nil,q=b.const_get_relative,g=b.klass,J=b.send,l=b.hash2,G=b.truthy;b.add_stubs("$require $include $coerce_to? $[] $merge! $allocate $raise $coerce_to! $each $fetch $>= $> $== $compare_by_identity $lambda? $abs $arity $enum_for $size $respond_to? $class $dig $new $inspect $map $to_proc $flatten $eql? $default $dup $default_proc $default_proc= $- $default= $proc".split(" "));B.$require("corelib/enumerable"); +return function(y,$super,A){y=g(y,$super,"Hash");var B=[y].concat(A),M,K,k,Q,S,D,H,ia,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba,La,Ea,ja,wa,ra,I,V,ka,Ja,Ca,Na,na,qa,Ma,Ua,Ta,Ra,la,va,ha,Aa,Ka;y.$include(q(B,"Enumerable"));y.$$prototype.$$is_hash=!0;b.defs(y,"$[]",M=function(a){var e=b.slice.call(arguments,0,arguments.length);var c=e.length,f;if(1===c){var d=q(B,"Opal")["$coerce_to?"](e["$[]"](0),q(B,"Hash"),"to_hash");if(d!==u)return this.$allocate()["$merge!"](d); +e=q(B,"Opal")["$coerce_to?"](e["$[]"](0),q(B,"Array"),"to_ary");e===u&&this.$raise(q(B,"ArgumentError"),"odd number of arguments for Hash");c=e.length;d=this.$allocate();for(f=0;f=",D=function(a){var b,e=u;a=q(B,"Opal")["$coerce_to!"](a,q(B,"Hash"),"to_hash");if(this.$$keys.length",H=function(a){a=q(B,"Opal")["$coerce_to!"](a,q(B,"Hash"),"to_hash");return this.$$keys.length<=a.$$keys.length?!1:t(this,a)},H.$$arity=1);b.def(y,"$<",ia=function(a){a=q(B,"Opal")["$coerce_to!"](a,q(B,"Hash"),"to_hash");return"number"===typeof a&&"number"===typeof this?a>this:a["$>"](this)},ia.$$arity=1);b.def(y,"$<=",X=function(a){a= +q(B,"Opal")["$coerce_to!"](a,q(B,"Hash"),"to_hash");return t(a,this)},X.$$arity=1);b.def(y,"$[]",a=function(a){var e=b.hash_get(this,a);return void 0!==e?e:this.$default(a)},a.$$arity=1);b.def(y,"$[]=",d=function(a,e){b.hash_put(this,a,e);return e},d.$$arity=2);b.def(y,"$assoc",v=function(a){for(var b=0,e=this.$$keys,c=e.length,f;b"+n.$inspect());return"{"+e.join(", ")+"}"}finally{a&&(ua=void 0)}},T.$$arity=0);b.def(y,"$invert",fa= +function(){for(var a=b.hash(),e=0,c=this.$$keys,f=c.length,d,n;eg:b["$>"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b $** $new $< $to_f $== $nan? $infinite? $enum_for $+ $- $gcd $lcm $% $/ $frexp $to_i $ldexp $rationalize $* $<< $to_r $truncate $-@ $size $<= $>= $<=> $compare $any?".split(" "));J.$require("corelib/numeric");(function(k,$super,l){k=Q(k,$super,"Number");var D=[k].concat(l),H,J,S,a,d, +v,E,O,p,h,e,z,r,U,F,n,c,f,W,aa,pa,L,R,ba,x,ca,da,ya,ea,xa,ta,T,fa,Ba,La,Ea,ja,wa,ra,I,V,ka,Ja,Ca,Na,na,qa,Ma,Ua,Ta,Ra,la,va,ha,Aa,Ka,ua,Ha,Fa,Da,Sa,Qa,Oa,Ga,za,Ya,Pa,Va,Wa,ab,Xa,Y;m(D,"Opal").$bridge(Number,k);b.defineProperty(k.$$prototype,"$$is_number",!0);k.$$is_number_class=!0;(function(a,e){var c=[a].concat(e),f;b.def(a,"$allocate",f=function(){return this.$raise(m(c,"TypeError"),"allocator undefined for "+this.$name())},f.$$arity=0);b.udef(a,"$new");return G})(b.get_singleton_class(k),D);b.def(k, +"$coerce",H=function(a){if(a!==G){if(a.$$is_string)return[this.$Float(a),this];if(a["$respond_to?"]("to_f"))return[m(D,"Opal")["$coerce_to!"](a,m(D,"Float"),"to_f"),this];if(a.$$is_number)return[a,this]}this.$raise(m(D,"TypeError"),"can't convert "+a.$class()+" into Float")},H.$$arity=1);b.def(k,"$__id__",J=function(){return 2*this+1},J.$$arity=0);b.alias(k,"object_id","__id__");b.def(k,"$+",S=function(a){return a.$$is_number?this+a:this.$__coerced__("+",a)},S.$$arity=1);b.def(k,"$-",a=function(a){return a.$$is_number? +this-a:this.$__coerced__("-",a)},a.$$arity=1);b.def(k,"$*",d=function(a){return a.$$is_number?this*a:this.$__coerced__("*",a)},d.$$arity=1);b.def(k,"$/",v=function(a){return a.$$is_number?this/a:this.$__coerced__("/",a)},v.$$arity=1);b.alias(k,"fdiv","/");b.def(k,"$%",E=function(a){if(a.$$is_number){if(-Infinity==a)return a;if(0==a)this.$raise(m(D,"ZeroDivisionError"),"divided by 0");else return 0>a||0>this?(this%a+a)%a:this%a}else return this.$__coerced__("%",a)},E.$$arity=1);b.def(k,"$&",O=function(a){return a.$$is_number? +this&a:this.$__coerced__("&",a)},O.$$arity=1);b.def(k,"$|",p=function(a){return a.$$is_number?this|a:this.$__coerced__("|",a)},p.$$arity=1);b.def(k,"$^",h=function(a){return a.$$is_number?this^a:this.$__coerced__("^",a)},h.$$arity=1);b.def(k,"$<",e=function(a){return a.$$is_number?this",r=function(a){return a.$$is_number?this>a:this.$__coerced__(">", +a)},r.$$arity=1);b.def(k,"$>=",U=function(a){return a.$$is_number?this>=a:this.$__coerced__(">=",a)},U.$$arity=1);b.def(k,"$<=>",F=function(a){try{return a.$$is_number?isNaN(this)||isNaN(a)?G:this>a?1:this",a)}catch(C){if(b.rescue(C,[m(D,"ArgumentError")]))try{return G}finally{b.pop_exception()}else throw C;}},F.$$arity=1);b.def(k,"$<<",n=function(a){a=m(D,"Opal")["$coerce_to!"](a,m(D,"Integer"),"to_int");return 0>-a},n.$$arity=1);b.def(k,"$>>",c=function(a){a= +m(D,"Opal")["$coerce_to!"](a,m(D,"Integer"),"to_int");return 0>a:this<<-a},c.$$arity=1);b.def(k,"$[]",f=function(a){a=m(D,"Opal")["$coerce_to!"](a,m(D,"Integer"),"to_int");return 0>a?0:32<=a?0>this?1:0:this>>a&1},f.$$arity=1);b.def(k,"$+@",W=function(){return+this},W.$$arity=0);b.def(k,"$-@",aa=function(){return-this},aa.$$arity=0);b.def(k,"$~",pa=function(){return~this},pa.$$arity=0);b.def(k,"$**",L=function(a){var b,e;return P(m(D,"Integer")["$==="](a))?P(P(b=m(D,"Integer")["$==="](this)["$!"]())? +b:t(a,0))?Math.pow(this,a):m(D,"Rational").$new(this,1)["$**"](a):P(B(this,0)?P(e=m(D,"Float")["$==="](a))?e:m(D,"Rational")["$==="](a):B(this,0))?m(D,"Complex").$new(this,0)["$**"](a.$to_f()):P(null!=a.$$is_number)?Math.pow(this,a):this.$__coerced__("**",a)},L.$$arity=1);b.def(k,"$===",R=function(a){return a.$$is_number?this.valueOf()===a.valueOf():a["$respond_to?"]("==")?a["$=="](this):!1},R.$$arity=1);b.def(k,"$==",ba=function(a){return a.$$is_number?this.valueOf()===a.valueOf():a["$respond_to?"]("==")? +a["$=="](this):!1},ba.$$arity=1);b.def(k,"$abs",x=function(){return Math.abs(this)},x.$$arity=0);b.def(k,"$abs2",ca=function(){return Math.abs(this*this)},ca.$$arity=0);b.def(k,"$allbits?",da=function(a){a=m(D,"Opal")["$coerce_to!"](a,m(D,"Integer"),"to_int");return(this&a)==a},da.$$arity=1);b.def(k,"$anybits?",ya=function(a){a=m(D,"Opal")["$coerce_to!"](a,m(D,"Integer"),"to_int");return 0!==(this&a)},ya.$$arity=1);b.def(k,"$angle",ea=function(){return P(this["$nan?"]())?this:0==this?0<1/this?0:Math.PI: +0>this?Math.PI:0},ea.$$arity=0);b.alias(k,"arg","angle");b.alias(k,"phase","angle");b.def(k,"$bit_length",xa=function(){P(m(D,"Integer")["$==="](this))||this.$raise(m(D,"NoMethodError").$new("undefined method `bit_length` for "+this+":Float","bit_length"));if(0===this||-1===this)return 0;for(var a=0,b=0>this?~this:this;0!=b;)a+=1,b>>>=1;return a},xa.$$arity=0);b.def(k,"$ceil",ta=function(a){null==a&&(a=0);var b=this.$to_f();if(0===b%1&&0<=a)return b;a=Math.pow(10,a);a=Math.ceil(b*a)/a;0===b%1&&(a= +Math.round(a));return a},ta.$$arity=-1);b.def(k,"$chr",T=function(a){return String.fromCharCode(this)},T.$$arity=-1);b.def(k,"$denominator",fa=function(){var a,e=fa.$$p,c;e&&(fa.$$p=null);var f=0;var d=arguments.length;for(c=Array(d);f=a;b--)e(b);return this},Ba.$$arity=1);b.alias(k,"eql?","==");b.def(k,"$equal?",La=function(a){var b;return P(b=this["$=="](a))?b:isNaN(this)&&isNaN(a)}, +La.$$arity=1);b.def(k,"$even?",Ea=function(){return 0===this%2},Ea.$$arity=0);b.def(k,"$floor",ja=function(a){null==a&&(a=0);var b=this.$to_f();if(0===b%1&&0<=a)return b;a=Math.pow(10,a);a=Math.floor(b*a)/a;0===b%1&&(a=Math.round(a));return a},ja.$$arity=-1);b.def(k,"$gcd",wa=function(a){P(m(D,"Integer")["$==="](a))||this.$raise(m(D,"TypeError"),"not an integer");var b=Math.abs(this);for(a=Math.abs(a);0a&&this.$raise(m(D,"TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified");m(D,"Integer")["$==="](b)||this.$raise(m(D,"TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers");0===b&&this.$raise(m(D,"ZeroDivisionError"),"divided by 0");return this["$**"](a)["$%"](b)},Ta.$$arity= +-2);b.def(k,"$pred",Ra=function(){return this-1},Ra.$$arity=0);b.def(k,"$quo",la=function(a){var e=la.$$p,c;e&&(la.$$p=null);var f=0;var d=arguments.length;for(c=Array(d);fthis.$size())return 0; +a=Math.pow(10,a);var c=Math.floor((Math.abs(c)+a/2)/a)*a;return 0>this?-c:c}P(P(e=this["$nan?"]())?null==a:e)&&this.$raise(m(D,"FloatDomainError"),"NaN");a=m(D,"Opal")["$coerce_to!"](a||0,m(D,"Integer"),"to_int");if(P("number"===typeof a?0>=a:a["$<="](0)))P(this["$nan?"]())?this.$raise(m(D,"RangeError"),"NaN"):P(this["$infinite?"]())&&this.$raise(m(D,"FloatDomainError"),"Infinity");else{if(a["$=="](0))return Math.round(this);if(P(P(e=this["$nan?"]())?e:this["$infinite?"]()))return this}c=m(D,"Math").$frexp(this); +e=b.to_ary(c);e=null==e[1]?G:e[1];c;c=u(A(y(m(D,"Float"),"DIG"),2),P(t(e,0))?q(e,4):u(q(e,3),1));c="number"===typeof a&&"number"===typeof c?a>=c:a["$>="](c);return P(c)?this:P(B(a,(P(t(e,0))?A(q(e,3),1):q(e,4))["$-@"]()))?0:Math.round(this*Math.pow(10,a))/Math.pow(10,a)},Aa.$$arity=-1);b.def(k,"$step",Ka=function(a,e,c){function f(){void 0!==C&&(v=C);void 0===v&&(v=G);k===G&&g.$raise(m(D,"TypeError"),"step must be numeric");0===k&&g.$raise(m(D,"ArgumentError"),"step can't be 0");void 0!==l&&(k=l); +if(k===G||null==k)k=1;var a=k["$<=>"](0);a===G&&g.$raise(m(D,"ArgumentError"),"0 can't be coerced into "+k.$class());if(v===G||null==v)v=0v||0>k&&gv||0>k&&gr&&(r=v),h(r),w+=1}else if(p=g,0=v;)h(p),p+=k;return g},Ka.$$arity=-1);b.alias(k,"succ","next");b.def(k,"$times",ua=function(){var a=ua.$$p,b=a||G,e;a&&(ua.$$p=null);a&&(ua.$$p=null);if(!P(b))return M(this,"enum_for",["times"],(e=function(){return e.$$s||this},e.$$s=this,e.$$arity=0,e));for(a=0;a1/this},Y.$$arity=0),G)&&"negative?"})(l[0],m(l,"Numeric"),l);b.const_set(l[0],"Fixnum",m(l,"Number"));(function(g,$super,l){g=Q(g,$super,"Integer");l=[g].concat(l);g.$$is_number_class=!0;(function(g,k){var l=[g].concat(k),q,a,d;b.def(g,"$allocate",q=function(){return this.$raise(m(l,"TypeError"),"allocator undefined for "+this.$name())},q.$$arity=0);b.udef(g,"$new");b.def(g,"$===",a=function(a){return a.$$is_number?0===a%1:!1},a.$$arity=1);return(b.def(g, +"$sqrt",d=function(a){a=m(l,"Opal")["$coerce_to!"](a,m(l,"Integer"),"to_int");0>a&&this.$raise(y(m(l,"Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"');return parseInt(Math.sqrt(a),10)},d.$$arity=1),G)&&"sqrt"})(b.get_singleton_class(g),l);b.const_set(l[0],"MAX",Math.pow(2,30)-1);return b.const_set(l[0],"MIN",-Math.pow(2,30))})(l[0],m(l,"Numeric"),l);return function(g,$super,l){g=Q(g,$super,"Float");l=[g].concat(l);g.$$is_number_class=!0;(function(g,k){var l=[g].concat(k),q,a; +b.def(g,"$allocate",q=function(){return this.$raise(m(l,"TypeError"),"allocator undefined for "+this.$name())},q.$$arity=0);b.udef(g,"$new");return(b.def(g,"$===",a=function(a){return!!a.$$is_number},a.$$arity=1),G)&&"==="})(b.get_singleton_class(g),l);b.const_set(l[0],"INFINITY",Infinity);b.const_set(l[0],"MAX",Number.MAX_VALUE);b.const_set(l[0],"MIN",Number.MIN_VALUE);b.const_set(l[0],"NAN",NaN);b.const_set(l[0],"DIG",15);b.const_set(l[0],"MANT_DIG",53);b.const_set(l[0],"RADIX",2);return b.const_set(l[0], +"EPSILON",Number.EPSILON||2.220446049250313E-16)}(l[0],m(l,"Numeric"),l)}; +Opal.modules["corelib/range"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b<=g:b["$<="](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?bg:b["$>"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var q=b.top,g=[],J=b.nil,l=b.const_get_qualified,G=b.const_get_relative,y=b.klass,m=b.truthy,Q=b.send;b.add_stubs("$require $include $attr_reader $raise $<=> $include? $<= $< $enum_for $upto $to_proc $respond_to? $class $succ $! $== $=== $exclude_end? $eql? $begin $end $last $to_a $> $- $abs $to_i $coerce_to! $ceil $/ $size $loop $+ $* $>= $each_with_index $% $bsearch $inspect $[] $hash".split(" ")); +q.$require("corelib/enumerable");return function(g,$super,q){g=y(g,$super,"Range");var k=[g].concat(q),K,S,D,H,P,X,a,d,v,E,O,p,h,e,z,r,U,F;g.$$prototype.begin=g.$$prototype.end=g.$$prototype.excl=J;g.$include(G(k,"Enumerable"));g.$$prototype.$$is_range=!0;g.$attr_reader("begin","end");b.def(g,"$initialize",K=function(a,b,e){null==e&&(e=!1);m(this.begin)&&this.$raise(G(k,"NameError"),"'initialize' called twice");m(a["$<=>"](b))||this.$raise(G(k,"ArgumentError"),"bad value for range");this.begin=a; +this.end=b;return this.excl=e},K.$$arity=-3);b.def(g,"$==",S=function(a){return a.$$is_range?this.excl===a.excl&&this.begin==a.begin&&this.end==a.end:!1},S.$$arity=1);b.def(g,"$===",D=function(a){return this["$include?"](a)},D.$$arity=1);b.def(g,"$cover?",H=function(a){var b;var e=this.begin["$<=>"](a);if(!m(m(b=e)?t(e,0):b))return!1;a=a["$<=>"](this.end);return m(this.excl)?m(b=a)?B(a,0):b:m(b=a)?t(a,0):b},H.$$arity=1);b.def(g,"$each",P=function(){var a=P.$$p,e=a||J;a&&(P.$$p=null);a&&(P.$$p=null); +if(e===J)return this.$enum_for("each");if(this.begin.$$is_number&&this.end.$$is_number){0===this.begin%1&&0===this.end%1||this.$raise(G(k,"TypeError"),"can't iterate from Float");var f=this.begin;for(a=this.end+(m(this.excl)?0:1);f"](d), +0));)b.yield1(e,a),a=a.$succ();m(m(f=this.excl["$!"]())?a["$=="](d):f)&&b.yield1(e,a);return this},P.$$arity=0);b.def(g,"$eql?",X=function(a){var b,e;return m(G(k,"Range")["$==="](a))?m(b=m(e=this.excl["$==="](a["$exclude_end?"]()))?this.begin["$eql?"](a.$begin()):e)?this.end["$eql?"](a.$end()):b:!1},X.$$arity=1);b.def(g,"$exclude_end?",a=function(){return this.excl},a.$$arity=0);b.def(g,"$first",d=function(a){var e=d.$$p,f;e&&(d.$$p=null);var n=0;var h=arguments.length;for(f=Array(h);na?v.$raise(G(k,"ArgumentError"),"step can't be negative"):0===a&&v.$raise(G(k,"ArgumentError"),"step can't be 0")}function f(){if(!v.begin["$respond_to?"]("succ")||v.begin.$$is_string&& +v.end.$$is_string)return J;if(0===a%1){var b=v.$size();return("number"===typeof b&&"number"===typeof a?b/a:b["$/"](a)).$ceil()}b=v.begin;var e=v.end,c=Math.abs,f=Math.floor;c=(c(b)+c(e)+c(e-b))/c(a)*l(G(k,"Float"),"EPSILON");.5=c:f["$>="](c),m(c)&&b.brk(J,e)):m(A(f,c.end))&&b.brk(J,e);b.yield1(p,f);return x=u(x,1)},n.$$s=v,n.$$brk=e,n.$$arity=0,n))}catch(da){if(da===e)return da.$v;throw da;}}()):(v.begin.$$is_string&&v.end.$$is_string&& +0!==a%1&&v.$raise(G(k,"TypeError"),"no implicit conversion to float from string"),Q(v,"each_with_index",[],(r=function(e,c){null==e&&(e=J);null==c&&(c=J);return c["$%"](a)["$=="](0)?b.yield1(p,e):J},r.$$s=v,r.$$arity=2,r)));return v},h.$$arity=-1);b.def(g,"$bsearch",e=function(){var a=e.$$p,b=a||J;a&&(e.$$p=null);a&&(e.$$p=null);if(b===J)return this.$enum_for("bsearch");m(this.begin.$$is_number&&this.end.$$is_number)||this.$raise(G(k,"TypeError"),"can't do binary search for "+this.begin.$class()); +return Q(this.$to_a(),"bsearch",[],b.$to_proc())},e.$$arity=0);b.def(g,"$to_s",z=function(){return""+this.begin+(m(this.excl)?"...":"..")+this.end},z.$$arity=0);b.def(g,"$inspect",r=function(){return""+this.begin.$inspect()+(m(this.excl)?"...":"..")+this.end.$inspect()},r.$$arity=0);b.def(g,"$marshal_load",U=function(a){this.begin=a["$[]"]("begin");this.end=a["$[]"]("end");return this.excl=a["$[]"]("excl")},U.$$arity=1);return(b.def(g,"$hash",F=function(){return[this.begin,this.end,this.excl].$hash()}, +F.$$arity=0),J)&&"hash"}(g[0],null,g)}; +Opal.modules["corelib/proc"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.slice,q=b.klass,g=b.truthy;b.add_stubs(["$raise","$coerce_to!"]);return function(t,$super,G){t=q(t,$super,"Proc");var y=[t].concat(G),m,J,P,M,K,k,sa,S,D,H;b.defineProperty(t.$$prototype,"$$is_proc",!0);b.defineProperty(t.$$prototype,"$$is_lambda",!1);b.defs(t,"$new",m=function(){var b=m.$$p,k=b||B;b&&(m.$$p=null);b&&(m.$$p=null);g(k)||this.$raise(A(y,"ArgumentError"),"tried to create a Proc object without a block");return k}, +m.$$arity=0);b.def(t,"$call",J=function(g){var k=J.$$p,a=k||B;k&&(J.$$p=null);k&&(J.$$p=null);k=b.slice.call(arguments,0,arguments.length);a!==B&&(this.$$p=a);if(a=this.$$brk)try{var d=this.$$is_lambda?this.apply(null,k):b.yieldX(this,k)}catch(v){if(v===a)return a.$v;throw v;}else d=this.$$is_lambda?this.apply(null,k):b.yieldX(this,k);return d},J.$$arity=-1);b.alias(t,"[]","call");b.alias(t,"===","call");b.alias(t,"yield","call");b.def(t,"$to_proc",P=function(){return this},P.$$arity=0);b.def(t,"$lambda?", +M=function(){return!!this.$$is_lambda},M.$$arity=0);b.def(t,"$arity",K=function(){return this.$$is_curried?-1:this.$$arity},K.$$arity=0);b.def(t,"$source_location",k=function(){return B},k.$$arity=0);b.def(t,"$binding",sa=function(){this.$$is_curried&&this.$raise(A(y,"ArgumentError"),"Can't create Binding");return B},sa.$$arity=0);b.def(t,"$parameters",S=function(){if(this.$$is_curried)return[["rest"]];if(this.$$parameters){if(this.$$is_lambda)return this.$$parameters;var b=[],g;var a=0;for(g=this.$$parameters.length;a< +g;a++){var d=this.$$parameters[a];"req"===d[0]&&(d=["opt",d[1]]);b.push(d)}return b}return[]},S.$$arity=0);b.def(t,"$curry",D=function(b){function g(){var d=u.call(arguments),v=d.length;v>b&&a.$$is_lambda&&!a.$$is_curried&&a.$raise(A(y,"ArgumentError"),"wrong number of arguments ("+v+" for "+b+")");if(v>=b)return a.$call.apply(a,d);v=function(){return g.apply(null,d.concat(u.call(arguments)))};v.$$is_lambda=a.$$is_lambda;v.$$is_curried=!0;return v}var a=this;void 0===b?b=a.length:(b=A(y,"Opal")["$coerce_to!"](b, +A(y,"Integer"),"to_int"),a.$$is_lambda&&b!==a.length&&a.$raise(A(y,"ArgumentError"),"wrong number of arguments ("+b+" for "+a.length+")"));g.$$is_lambda=a.$$is_lambda;g.$$is_curried=!0;return g},D.$$arity=-1);b.def(t,"$dup",H=function(){var b=this.$$original_proc||this,g=function(){return b.apply(this,arguments)},a;for(a in this)this.hasOwnProperty(a)&&(g[a]=this[a]);return g},H.$$arity=0);return b.alias(t,"clone","dup")}(t[0],Function,t)}; +Opal.modules["corelib/method"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.klass,q=b.truthy;b.add_stubs("$attr_reader $arity $new $class $join $source_location $raise".split(" "));(function(g,$super,l){g=u(g,$super,"Method");var t=[g].concat(l),y,m,Q,P,M,K,k,sa,S;g.$$prototype.method=g.$$prototype.receiver=g.$$prototype.owner=g.$$prototype.name=B;g.$attr_reader("owner","receiver","name");b.def(g,"$initialize",y=function(b,g,k,l){this.receiver=b;this.owner=g;this.name=l;return this.method= +k},y.$$arity=4);b.def(g,"$arity",m=function(){return this.method.$arity()},m.$$arity=0);b.def(g,"$parameters",Q=function(){return this.method.$$parameters},Q.$$arity=0);b.def(g,"$source_location",P=function(){var b;return q(b=this.method.$$source_location)?b:["(eval)",0]},P.$$arity=0);b.def(g,"$comments",M=function(){var b;return q(b=this.method.$$comments)?b:[]},M.$$arity=0);b.def(g,"$call",K=function(g){var k=K.$$p,l=k||B;k&&(K.$$p=null);k&&(K.$$p=null);k=b.slice.call(arguments,0,arguments.length); +this.method.$$p=l;return this.method.apply(this.receiver,k)},K.$$arity=-1);b.alias(g,"[]","call");b.def(g,"$unbind",k=function(){return A(t,"UnboundMethod").$new(this.receiver.$class(),this.owner,this.method,this.name)},k.$$arity=0);b.def(g,"$to_proc",sa=function(){var b=this.$call.bind(this);b.$$unbound=this.method;b.$$is_lambda=!0;b.$$arity=this.method.$$arity;b.$$parameters=this.method.$$parameters;return b},sa.$$arity=0);return(b.def(g,"$inspect",S=function(){return"#<"+this.$class()+": "+this.receiver.$class()+ +"#"+this.name+" (defined in "+this.owner+" in "+this.$source_location().$join(":")+")>"},S.$$arity=0),B)&&"inspect"})(t[0],null,t);return function(g,$super,l){g=u(g,$super,"UnboundMethod");var t=[g].concat(l),y,m,Q,P,M,K,k;g.$$prototype.method=g.$$prototype.owner=g.$$prototype.name=g.$$prototype.source=B;g.$attr_reader("source","owner","name");b.def(g,"$initialize",y=function(b,g,k,l){this.source=b;this.owner=g;this.method=k;return this.name=l},y.$$arity=4);b.def(g,"$arity",m=function(){return this.method.$arity()}, +m.$$arity=0);b.def(g,"$parameters",Q=function(){return this.method.$$parameters},Q.$$arity=0);b.def(g,"$source_location",P=function(){var b;return q(b=this.method.$$source_location)?b:["(eval)",0]},P.$$arity=0);b.def(g,"$comments",M=function(){var b;return q(b=this.method.$$comments)?b:[]},M.$$arity=0);b.def(g,"$bind",K=function(g){if(this.owner.$$is_module||b.is_a(g,this.owner))return A(t,"Method").$new(g,this.owner,this.method,this.name);this.$raise(A(t,"TypeError"),"can't bind singleton method to a different class (expected "+ +g+".kind_of?("+this.owner+" to be true)")},K.$$arity=1);return(b.def(g,"$inspect",k=function(){return"#<"+this.$class()+": "+this.source+"#"+this.name+" (defined in "+this.owner+" in "+this.$source_location().$join(":")+")>"},k.$$arity=0),B)&&"inspect"}(t[0],null,t)}; +Opal.modules["corelib/variables"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.gvars,q=b.hash2;b.add_stubs(["$new"]);u["&"]=u["~"]=u["`"]=u["'"]=B;u.LOADED_FEATURES=u['"']=b.loaded_features;u.LOAD_PATH=u[":"]=[];u["/"]="\n";u[","]=B;b.const_set(t[0],"ARGV",[]);b.const_set(t[0],"ARGF",A(t,"Object").$new());b.const_set(t[0],"ENV",q([],{}));u.VERBOSE=!1;u.DEBUG=!1;return u.SAFE=0}; +Opal.modules["opal/regexp_anchors"]=function(b){var t=[],B=b.nil,A=b.const_get_relative,u=b.module;b.add_stubs(["$==","$new"]);t=[u(t[0],"Opal")].concat(t);b.const_set(t[0],"REGEXP_START",A(t,"RUBY_ENGINE")["$=="]("opal")?"^":B);b.const_set(t[0],"REGEXP_END",A(t,"RUBY_ENGINE")["$=="]("opal")?"$":B);b.const_set(t[0],"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F");b.const_set(t[0],"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"); +b.const_set(t[0],"INLINE_IDENTIFIER_REGEXP",A(t,"Regexp").$new("[^"+A(t,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+A(t,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]"));b.const_set(t[0],"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F");b.const_set(t[0],"CONST_NAME_REGEXP",A(t,"Regexp").$new(""+A(t,"REGEXP_START")+"(::)?[A-Z][^"+A(t,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+A(t,"REGEXP_END")))}; +Opal.modules["opal/mini"]=function(b){var t=b.top;b.add_stubs(["$require"]);t.$require("opal/base");t.$require("corelib/nil");t.$require("corelib/boolean");t.$require("corelib/string");t.$require("corelib/comparable");t.$require("corelib/enumerable");t.$require("corelib/enumerator");t.$require("corelib/array");t.$require("corelib/hash");t.$require("corelib/number");t.$require("corelib/range");t.$require("corelib/proc");t.$require("corelib/method");t.$require("corelib/regexp");t.$require("corelib/variables"); +return t.$require("opal/regexp_anchors")}; +Opal.modules["corelib/string/encoding"]=function(b){function t(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var B,A,u,q,g,J=b.top,l=[],G=b.nil,y=b.const_get_qualified,m=b.const_get_relative,Q=b.klass,P=b.hash2,M=b.truthy,K=b.send;b.add_stubs("$require $+ $[] $new $to_proc $each $const_set $sub $== $default_external $upcase $raise $attr_accessor $attr_reader $register $length $bytes $to_a $each_byte $dup $bytesize $enum_for $coerce_to! $find $<".split(" "));J.$require("corelib/string"); +(function(g,$super,l){g=Q(g,$super,"Encoding");var k=[g].concat(l),q,y,u,a,d,v,E,O,p;g.$$prototype.ascii=g.$$prototype.dummy=g.$$prototype.name=G;b.defineProperty(g,"$$register",{});b.defs(g,"$register",q=function(a,b){var e=q.$$p,d=e||G,h,g,n=G,c=G,f=G;e&&(q.$$p=null);e&&(q.$$p=null);null==b&&(b=P([],{}));n=t([a],M(h=b["$[]"]("aliases"))?h:[]);c=K(m(k,"Class"),"new",[this],d.$to_proc()).$new(a,n,M(h=b["$[]"]("ascii"))?h:!1,M(h=b["$[]"]("dummy"))?h:!1);f=this.$$register;return K(n,"each",[],(g=function(a){var b= +g.$$s||this;null==a&&(a=G);b.$const_set(a.$sub("-","_"),c);return f["$$"+a]=c},g.$$s=this,g.$$arity=1,g))},q.$$arity=-2);b.defs(g,"$find",y=function(a){var b;if(a["$=="]("default_external"))return this.$default_external();var d=this.$$register;d=M(b=d["$$"+a])?b:d["$$"+a.$upcase()];M(d)||this.$raise(m(k,"ArgumentError"),"unknown encoding name - "+a);return d},y.$$arity=1);(function(a,b){[a].concat(b);return a.$attr_accessor("default_external")})(b.get_singleton_class(g),k);g.$attr_reader("name","names"); +b.def(g,"$initialize",u=function(a,b,d,r){this.name=a;this.names=b;this.ascii=d;return this.dummy=r},u.$$arity=4);b.def(g,"$ascii_compatible?",a=function(){return this.ascii},a.$$arity=0);b.def(g,"$dummy?",d=function(){return this.dummy},d.$$arity=0);b.def(g,"$to_s",v=function(){return this.name},v.$$arity=0);b.def(g,"$inspect",E=function(){return"#"},E.$$arity=0);b.def(g,"$each_byte",O=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(m(k, +"NotImplementedError"))},O.$$arity=-1);b.def(g,"$bytesize",p=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(m(k,"NotImplementedError"))},p.$$arity=-1);(function(a,$super,b){[Q(a,$super,"EncodingError")].concat(b);return G})(k[0],m(k,"StandardError"),k);return function(a,$super,b){[Q(a,$super,"CompatibilityError")].concat(b);return G}(k[0],m(k,"EncodingError"),k)})(l[0],null,l);K(m(l,"Encoding"),"register",["UTF-8",P(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],(B= +function(){var g=B.$$s||this,l,m;b.def(g,"$each_byte",l=function(g){var k=l.$$p,m=k||G;k&&(l.$$p=null);k&&(l.$$p=null);k=Infinity;for(var q,a=g.length,d=null,v=0;vq){if(!d){if(56319q){-1<(k-=3)&&(b.yield1(m,239),b.yield1(m,191),b.yield1(m,189));d=q;continue}q=(d-55296<<10|q- +56320)+65536}else d&&-1<(k-=3)&&(b.yield1(m,239),b.yield1(m,191),b.yield1(m,189));d=null;if(128>q){if(0>--k)break;b.yield1(m,q)}else if(2048>q){if(0>(k-=2))break;b.yield1(m,q>>6|192);b.yield1(m,q&63|128)}else if(65536>q){if(0>(k-=3))break;b.yield1(m,q>>12|224);b.yield1(m,q>>6&63|128);b.yield1(m,q&63|128)}else if(1114112>q){if(0>(k-=4))break;b.yield1(m,q>>18|240);b.yield1(m,q>>12&63|128);b.yield1(m,q>>6&63|128);b.yield1(m,q&63|128)}}},l.$$arity=1);return(b.def(g,"$bytesize",m=function(b){return b.$bytes().$length()}, +m.$$arity=1),G)&&"bytesize"},B.$$s=J,B.$$arity=0,B));K(m(l,"Encoding"),"register",["UTF-16LE"],(A=function(){var g=A.$$s||this,l,m;b.def(g,"$each_byte",l=function(g){var k=l.$$p,m=k||G;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var q=g.length;k>8)}},l.$$arity=1);return(b.def(g,"$bytesize",m=function(b){return b.$bytes().$length()},m.$$arity=1),G)&&"bytesize"},A.$$s=J,A.$$arity=0,A));K(m(l,"Encoding"),"register",["UTF-16BE"],(u=function(){var g= +u.$$s||this,l,m;b.def(g,"$each_byte",l=function(g){var k=l.$$p,m=k||G;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var q=g.length;k>8);b.yield1(m,a&255)}},l.$$arity=1);return(b.def(g,"$bytesize",m=function(b){return b.$bytes().$length()},m.$$arity=1),G)&&"bytesize"},u.$$s=J,u.$$arity=0,u));K(m(l,"Encoding"),"register",["UTF-32LE"],(q=function(){var g=q.$$s||this,l,m;b.def(g,"$each_byte",l=function(g){var k=l.$$p,m=k||G;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var q= +g.length;k>8)}},l.$$arity=1);return(b.def(g,"$bytesize",m=function(b){return b.$bytes().$length()},m.$$arity=1),G)&&"bytesize"},q.$$s=J,q.$$arity=0,q));K(m(l,"Encoding"),"register",["ASCII-8BIT",P(["aliases","ascii","dummy"],{aliases:["BINARY","US-ASCII","ASCII"],ascii:!0,dummy:!0})],(g=function(){var k=g.$$s||this,l,m;b.def(k,"$each_byte",l=function(g){var k=l.$$p,m=k||G;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var q=g.length;k>8)}},l.$$arity=1);return(b.def(k,"$bytesize",m=function(b){return b.$bytes().$length()},m.$$arity=1),G)&&"bytesize"},g.$$s=J,g.$$arity=0,g));return function(g,$super,l){g=Q(g,$super,"String");var k=[g].concat(l),q,t,u,a,d,v,E;g.$$prototype.bytes=g.$$prototype.internal_encoding=G;g.$attr_reader("encoding");g.$attr_reader("internal_encoding");b.defineProperty(String.prototype,"bytes",G);b.defineProperty(String.prototype,"encoding",y(m(k,"Encoding"),"UTF_8")); +b.defineProperty(String.prototype,"internal_encoding",y(m(k,"Encoding"),"UTF_8"));b.def(g,"$bytes",q=function(){var a;this.bytes=M(a=this.bytes)?a:this.$each_byte().$to_a();return this.bytes.$dup()},q.$$arity=0);b.def(g,"$bytesize",t=function(){return this.internal_encoding.$bytesize(this)},t.$$arity=0);b.def(g,"$each_byte",u=function(){var a=u.$$p,b=a||G;a&&(u.$$p=null);a&&(u.$$p=null);if(b===G)return this.$enum_for("each_byte");K(this.internal_encoding,"each_byte",[this],b.$to_proc());return this}, +u.$$arity=0);b.def(g,"$encode",a=function(a){return b.enc(this,a)},a.$$arity=1);b.def(g,"$force_encoding",d=function(a){if(a===this.encoding)return this;a=m(k,"Opal")["$coerce_to!"](a,m(k,"String"),"to_s");a=m(k,"Encoding").$find(a);if(a===this.encoding)return this;this.encoding=a;return this},d.$$arity=1);b.def(g,"$getbyte",v=function(a){var b=this.$bytes();a=m(k,"Opal")["$coerce_to!"](a,m(k,"Integer"),"to_int");var d=b.$length();d="number"===typeof d&&"number"===typeof a?dg:b["$>"](g)}function B(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function A(b,g){return"number"===typeof b&&"number"===typeof g?b=g:b["$>="](g)}function q(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var g=b.top,J=[],l=b.nil,G=b.const_get_relative,y=b.klass,m=b.hash2, +Q=b.truthy,P=b.send;b.add_stubs("$require $include $const_name! $unshift $map $coerce_to! $new $each $define_struct_attribute $allocate $initialize $alias_method $module_eval $to_proc $const_set $== $raise $<< $members $define_method $instance_eval $class $last $> $length $- $keys $any? $join $[] $[]= $each_with_index $hash $=== $< $-@ $size $>= $include? $to_sym $instance_of? $__id__ $eql? $enum_for $name $+ $each_pair $inspect $each_with_object $flatten $to_a $respond_to? $dig".split(" "));g.$require("corelib/enumerable"); +return function(g,$super,k){g=y(g,$super,"Struct");var J=[g].concat(k),M,D,H,ia,X,a,d,v,E,O,p,h,e,z,r,U,F,n,c;g.$include(G(J,"Enumerable"));b.defs(g,"$new",M=function(a,e,c){var f=M.$$p,d=f||l,n,h;var r=l;f&&(M.$$p=null);f&&(M.$$p=null);var g=b.slice.call(arguments,1,arguments.length);r=b.extract_kwargs(g);if(null==r)r=m([],{});else if(!r.$$is_hash)throw b.ArgumentError.$new("expected kwargs");f=r.$$smap.keyword_init;null==f&&(f=!1);if(Q(a))try{a=G(J,"Opal")["$const_name!"](a)}catch(da){if(b.rescue(da, +[G(J,"TypeError"),G(J,"NameError")]))try{g.$unshift(a),a=l}finally{b.pop_exception()}else throw da;}P(g,"map",[],(n=function(a){null==a&&(a=l);return G(J,"Opal")["$coerce_to!"](a,G(J,"String"),"to_str")},n.$$s=this,n.$$arity=1,n));r=P(G(J,"Class"),"new",[this],(h=function(){var a=h.$$s||this,e;P(g,"each",[],(e=function(a){var b=e.$$s||this;null==a&&(a=l);return b.$define_struct_attribute(a)},e.$$s=a,e.$$arity=1,e));return function(a,e){[a].concat(e);var c;b.def(a,"$new",c=function(a){var e=b.slice.call(arguments, +0,arguments.length);var c=this.$allocate();c.$$data={};P(c,"initialize",b.to_a(e));return c},c.$$arity=-1);return a.$alias_method("[]","new")}(b.get_singleton_class(a),J)},h.$$s=this,h.$$arity=0,h));Q(d)&&P(r,"module_eval",[],d.$to_proc());r.$$keyword_init=f;Q(a)&&G(J,"Struct").$const_set(a,r);return r},M.$$arity=-2);b.defs(g,"$define_struct_attribute",D=function(a){var b,e;this["$=="](G(J,"Struct"))&&this.$raise(G(J,"ArgumentError"),"you cannot define attributes to the Struct class");this.$members()["$<<"](a); +P(this,"define_method",[a],(b=function(){return(b.$$s||this).$$data[a]},b.$$s=this,b.$$arity=0,b));return P(this,"define_method",[""+a+"="],(e=function(b){var c=e.$$s||this;null==b&&(b=l);return c.$$data[a]=b},e.$$s=this,e.$$arity=1,e))},D.$$arity=1);b.defs(g,"$members",H=function(){var a;null==this.members&&(this.members=l);this["$=="](G(J,"Struct"))&&this.$raise(G(J,"ArgumentError"),"the Struct class has no members");return this.members=Q(a=this.members)?a:[]},H.$$arity=0);b.defs(g,"$inherited", +ia=function(a){var b,e=l;null==this.members&&(this.members=l);e=this.members;return P(a,"instance_eval",[],(b=function(){return(b.$$s||this).members=e},b.$$s=this,b.$$arity=0,b))},ia.$$arity=1);b.def(g,"$initialize",X=function(a){var e,c,f,d=l,n=l;var h=b.slice.call(arguments,0,arguments.length);if(Q(this.$class().$$keyword_init))return d=Q(e=h.$last())?e:m([],{}),Q(Q(e=t(h.$length(),1))?e:1===h.length&&!d.$$is_hash)&&this.$raise(G(J,"ArgumentError"),"wrong number of arguments (given "+h.$length()+ +", expected 0)"),n=B(d.$keys(),this.$class().$members()),Q(n["$any?"]())&&this.$raise(G(J,"ArgumentError"),"unknown keywords: "+n.$join(", ")),P(this.$class().$members(),"each",[],(c=function(a){var e=c.$$s||this;null==a&&(a=l);a=[a,d["$[]"](a)];P(e,"[]=",b.to_a(a));return a[B(a.length,1)]},c.$$s=this,c.$$arity=1,c));Q(t(h.$length(),this.$class().$members().$length()))&&this.$raise(G(J,"ArgumentError"),"struct size differs");return P(this.$class().$members(),"each_with_index",[],(f=function(a,e){var c= +f.$$s||this;null==a&&(a=l);null==e&&(e=l);a=[a,h["$[]"](e)];P(c,"[]=",b.to_a(a));return a[B(a.length,1)]},f.$$s=this,f.$$arity=2,f))},X.$$arity=-1);b.def(g,"$members",a=function(){return this.$class().$members()},a.$$arity=0);b.def(g,"$hash",d=function(){return G(J,"Hash").$new(this.$$data).$hash()},d.$$arity=0);b.def(g,"$[]",v=function(a){Q(G(J,"Integer")["$==="](a))?(Q(A(a,this.$class().$members().$size()["$-@"]()))&&this.$raise(G(J,"IndexError"),"offset "+a+" too small for struct(size:"+this.$class().$members().$size()+ +")"),Q(u(a,this.$class().$members().$size()))&&this.$raise(G(J,"IndexError"),"offset "+a+" too large for struct(size:"+this.$class().$members().$size()+")"),a=this.$class().$members()["$[]"](a)):Q(G(J,"String")["$==="](a))?this.$$data.hasOwnProperty(a)||this.$raise(G(J,"NameError").$new("no member '"+a+"' in struct",a)):this.$raise(G(J,"TypeError"),"no implicit conversion of "+a.$class()+" into Integer");a=G(J,"Opal")["$coerce_to!"](a,G(J,"String"),"to_str");return this.$$data[a]},v.$$arity=1);b.def(g, +"$[]=",E=function(a,b){Q(G(J,"Integer")["$==="](a))?(Q(A(a,this.$class().$members().$size()["$-@"]()))&&this.$raise(G(J,"IndexError"),"offset "+a+" too small for struct(size:"+this.$class().$members().$size()+")"),Q(u(a,this.$class().$members().$size()))&&this.$raise(G(J,"IndexError"),"offset "+a+" too large for struct(size:"+this.$class().$members().$size()+")"),a=this.$class().$members()["$[]"](a)):Q(G(J,"String")["$==="](a))?Q(this.$class().$members()["$include?"](a.$to_sym()))||this.$raise(G(J, +"NameError").$new("no member '"+a+"' in struct",a)):this.$raise(G(J,"TypeError"),"no implicit conversion of "+a.$class()+" into Integer");a=G(J,"Opal")["$coerce_to!"](a,G(J,"String"),"to_str");return this.$$data[a]=b},E.$$arity=2);b.def(g,"$==",O=function(a){function b(a,f){var d;e[a.$__id__()]=!0;c[f.$__id__()]=!0;for(d in a.$$data){var n=a.$$data[d];var h=f.$$data[d];if(G(J,"Struct")["$==="](n)){if(!(e.hasOwnProperty(n.$__id__())&&c.hasOwnProperty(h.$__id__())||b(n,h)))return!1}else if(!n["$=="](h))return!1}return!0} +if(!Q(a["$instance_of?"](this.$class())))return!1;var e={},c={};return b(this,a)},O.$$arity=1);b.def(g,"$eql?",p=function(a){function b(a,f){var d;e[a.$__id__()]=!0;c[f.$__id__()]=!0;for(d in a.$$data){var n=a.$$data[d];var h=f.$$data[d];if(G(J,"Struct")["$==="](n)){if(!(e.hasOwnProperty(n.$__id__())&&c.hasOwnProperty(h.$__id__())||b(n,h)))return!1}else if(!n["$eql?"](h))return!1}return!0}if(!Q(a["$instance_of?"](this.$class())))return!1;var e={},c={};return b(this,a)},p.$$arity=1);b.def(g,"$each", +h=function(){var a,e,c=h.$$p,d=c||l;c&&(h.$$p=null);if(d===l)return P(this,"enum_for",["each"],(a=function(){return(a.$$s||this).$size()},a.$$s=this,a.$$arity=0,a));P(this.$class().$members(),"each",[],(e=function(a){var c=e.$$s||this;null==a&&(a=l);return b.yield1(d,c["$[]"](a))},e.$$s=this,e.$$arity=1,e));return this},h.$$arity=0);b.def(g,"$each_pair",e=function(){var a,c,d=e.$$p,n=d||l;d&&(e.$$p=null);if(n===l)return P(this,"enum_for",["each_pair"],(a=function(){return(a.$$s||this).$size()},a.$$s= +this,a.$$arity=0,a));P(this.$class().$members(),"each",[],(c=function(a){var e=c.$$s||this;null==a&&(a=l);return b.yield1(n,[a,e["$[]"](a)])},c.$$s=this,c.$$arity=1,c));return this},e.$$arity=0);b.def(g,"$length",z=function(){return this.$class().$members().$length()},z.$$arity=0);b.alias(g,"size","length");b.def(g,"$to_a",r=function(){var a;return P(this.$class().$members(),"map",[],(a=function(b){var e=a.$$s||this;null==b&&(b=l);return e["$[]"](b)},a.$$s=this,a.$$arity=1,a))},r.$$arity=0);b.alias(g, +"values","to_a");b.def(g,"$inspect",U=function(){var a,b,e=l;e="#")},U.$$arity=0);b.alias(g,"to_s","inspect");b.def(g,"$to_h",F=function(){var a;return P(this.$class().$members(),"each_with_object",[m([],{})],(a=function(e,c){var f=a.$$s|| +this;null==e&&(e=l);null==c&&(c=l);e=[e,f["$[]"](e)];P(c,"[]=",b.to_a(e));return e[B(e.length,1)]},a.$$s=this,a.$$arity=2,a))},F.$$arity=0);b.def(g,"$values_at",n=function(a){var e;var c=b.slice.call(arguments,0,arguments.length);c=P(c,"map",[],(e=function(a){null==a&&(a=l);return a.$$is_range?a.$to_a():a},e.$$s=this,e.$$arity=1,e)).$flatten();e=[];for(var f=0,d=c.length;f"},q.$$arity=0);a.def(d,"$==",x=function(a){var b,e;return r(this["$equal?"](a))?!0:r(a["$instance_of?"](this.$class()))?this.hash["$=="](a.$instance_variable_get("@hash")):r(r(b=a["$is_a?"](h(n,"Set")))?this.$size()["$=="](a.$size()):b)?m(a,"all?",[],(e=function(a){var b=e.$$s||this;null==b.hash&&(b.hash=p);null==a&&(a=p);return b.hash["$include?"](a)},e.$$s=this,e.$$arity=1,e)):!1},x.$$arity=1);a.def(d,"$add",O=function(e){e=[e,!0];m(this.hash,"[]=",a.to_a(e));e[b(e.length, +1)];return this},O.$$arity=1);a.alias(d,"<<","add");a.def(d,"$classify",E=function(){var e=E.$$p,f=e||p,d,g,r=p;e&&(E.$$p=null);e&&(E.$$p=null);if(f===p)return this.$enum_for("classify");r=m(h(n,"Hash"),"new",[],(d=function(e,f){var n=d.$$s||this;null==e&&(e=p);null==f&&(f=p);f=[f,n.$class().$new()];m(e,"[]=",a.to_a(f));return f[b(f.length,1)]},d.$$s=this,d.$$arity=2,d));m(this,"each",[],(g=function(b){null==b&&(b=p);return r["$[]"](a.yield1(f,b)).$add(b)},g.$$s=this,g.$$arity=1,g));return r},E.$$arity= +0);a.def(d,"$collect!",t=function(){var b=t.$$p,e=b||p,f,d=p;b&&(t.$$p=null);b&&(t.$$p=null);if(e===p)return this.$enum_for("collect!");d=this.$class().$new();m(this,"each",[],(f=function(b){null==b&&(b=p);return d["$<<"](a.yield1(e,b))},f.$$s=this,f.$$arity=1,f));return this.$replace(d)},t.$$arity=0);a.alias(d,"map!","collect!");a.def(d,"$delete",U=function(a){this.hash.$delete(a);return this},U.$$arity=1);a.def(d,"$delete?",u=function(a){return r(this["$include?"](a))?(this.$delete(a),this):p}, +u.$$arity=1);a.def(d,"$delete_if",y=function(){var b,e,f=y.$$p,d=f||p;f&&(y.$$p=null);if(d===p)return this.$enum_for("delete_if");m(m(this,"select",[],(b=function(b){null==b&&(b=p);return a.yield1(d,b)},b.$$s=this,b.$$arity=1,b)),"each",[],(e=function(a){var b=e.$$s||this;null==b.hash&&(b.hash=p);null==a&&(a=p);return b.hash.$delete(a)},e.$$s=this,e.$$arity=1,e));return this},y.$$arity=0);a.def(d,"$add?",T=function(a){return r(this["$include?"](a))?p:this.$add(a)},T.$$arity=1);a.def(d,"$each",fa= +function(){var a=fa.$$p,b=a||p;a&&(fa.$$p=null);a&&(fa.$$p=null);if(b===p)return this.$enum_for("each");m(this.hash,"each_key",[],b.$to_proc());return this},fa.$$arity=0);a.def(d,"$empty?",B=function(){return this.hash["$empty?"]()},B.$$arity=0);a.def(d,"$eql?",D=function(a){var b;return this.hash["$eql?"](m(a,"instance_eval",[],(b=function(){var a=b.$$s||this;null==a.hash&&(a.hash=p);return a.hash},b.$$s=this,b.$$arity=0,b)))},D.$$arity=1);a.def(d,"$clear",A=function(){this.hash.$clear();return this}, +A.$$arity=0);a.def(d,"$include?",ja=function(a){return this.hash["$include?"](a)},ja.$$arity=1);a.alias(d,"member?","include?");a.def(d,"$merge",wa=function(a){var b;m(a,"each",[],(b=function(a){var e=b.$$s||this;null==a&&(a=p);return e.$add(a)},b.$$s=this,b.$$arity=1,b));return this},wa.$$arity=1);a.def(d,"$replace",ra=function(a){this.$clear();this.$merge(a);return this},ra.$$arity=1);a.def(d,"$size",I=function(){return this.hash.$size()},I.$$arity=0);a.alias(d,"length","size");a.def(d,"$subtract", +G=function(a){var b;m(a,"each",[],(b=function(a){var e=b.$$s||this;null==a&&(a=p);return e.$delete(a)},b.$$s=this,b.$$arity=1,b));return this},G.$$arity=1);a.def(d,"$|",ka=function(a){r(a["$respond_to?"]("each"))||this.$raise(h(n,"ArgumentError"),"value must be enumerable");return this.$dup().$merge(a)},ka.$$arity=1);a.def(d,"$superset?",J=function(a){var b,e;r(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return r(g(this.$size(),a.$size()))?!1:m(a,"all?",[], +(e=function(a){var b=e.$$s||this;null==a&&(a=p);return b["$include?"](a)},e.$$s=this,e.$$arity=1,e))},J.$$arity=1);a.alias(d,">=","superset?");a.def(d,"$proper_superset?",K=function(a){var b,e;r(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return r(k(this.$size(),a.$size()))?!1:m(a,"all?",[],(e=function(a){var b=e.$$s||this;null==a&&(a=p);return b["$include?"](a)},e.$$s=this,e.$$arity=1,e))},K.$$arity=1);a.alias(d,">","proper_superset?");a.def(d,"$subset?", +H=function(a){var b,e;r(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return r(g(a.$size(),this.$size()))?!1:m(this,"all?",[],(e=function(b){null==b&&(b=p);return a["$include?"](b)},e.$$s=this,e.$$arity=1,e))},H.$$arity=1);a.alias(d,"<=","subset?");a.def(d,"$proper_subset?",na=function(a){var b,e;r(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return r(k(a.$size(),this.$size()))?!1:m(this,"all?",[],(e=function(b){null== +b&&(b=p);return a["$include?"](b)},e.$$s=this,e.$$arity=1,e))},na.$$arity=1);a.alias(d,"<","proper_subset?");a.alias(d,"+","|");a.alias(d,"union","|");return(a.def(d,"$to_a",qa=function(){return this.hash.$keys()},qa.$$arity=0),p)&&"to_a"})(l[0],null,l);return function(b,e){b=F(b,"Enumerable");var c=[b].concat(e),d;a.def(b,"$to_set",d=function(b,e){var f=d.$$p,n=f||p;f&&(d.$$p=null);f&&(d.$$p=null);f=a.slice.call(arguments,0,arguments.length);if(0= $- $_original_byteslice $_original_unpack".split(" ")); +return function(b,$super,e){b=k(b,$super,"String");[b].concat(e);var d,r,p;l(b["$method_defined?"]("limit_bytesize"))||a.def(b,"$limit_bytesize",d=function(a){var b=this.$bytes().$length();b="number"===typeof a&&"number"===typeof b?a=a:b["$>="](a):a["$=="](3))?65279===this.charCodeAt():e)?this.substr(1).$byteslice(0,"number"===typeof b?b-3:b["$-"](3)):this.$_original_byteslice(a,b)},r.$$arity=-2);a.alias(b,"_original_unpack","unpack");return(a.def(b,"$unpack",p=function(a){if(a["$=="]("C3")){if(l(65279===this.charCodeAt()))return[239,187,191];a=[];for(var b=0;3>b;b++)b"]);return function(b,$super,d){b=l(b,$super,"Number");var h=[b].concat(d),v;return(a.def(b,"$round",v=function(a){a=k(h,"Opal")["$coerce_to!"](a,k(h,"Integer"),"to_int");return p("number"===typeof a?0"](0))?Number(this.toFixed(a)):Math.round(this)},v.$$arity=-1),g)&&"round"}(b[0],k(b,"Numeric"),b)};Opal.modules["asciidoctor/js/opal_ext"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/js/opal_ext/kernel"); +b.$require("asciidoctor/js/opal_ext/file");b.$require("asciidoctor/js/opal_ext/match_data");b.$require("asciidoctor/js/opal_ext/string");b.$require("asciidoctor/js/opal_ext/uri");b.$require("asciidoctor/js/opal_ext/base64");b.$require("asciidoctor/js/opal_ext/number");a.config.unsupported_features_severity="ignore";b.$require("asciidoctor/js/opal_ext/browser")};Opal.modules["asciidoctor/js/rx"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil, +l=a.const_get_relative,p=a.module,h=a.send,e=a.gvars,m=a.truthy;a.add_stubs(["$gsub","$+","$unpack_hex_range"]);return function(d,g){d=p(d,"Asciidoctor");var r=[d].concat(g),n;a.const_set(r[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/);a.defs(d,"$unpack_hex_range",n=function(a){var b;return h(a,"gsub",[l(r,"HEX_RANGE_RX")],(b=function(){var a,b;return"\\u"+((a=e["~"])===k?k:a["$[]"](1))+(m(a=(b=e["~"])===k?k:b["$[]"](2))?"-\\u"+((b=e["~"])===k?k:b["$[]"](2)):a)},b.$$s=this,b.$$arity=0,b))}, +n.$$arity=1);a.const_set(r[0],"P_L",b("A-Za-z",d.$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"))); +a.const_set(r[0],"P_Nl",d.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF"));a.const_set(r[0],"P_Nd",b("0-9",d.$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")));a.const_set(r[0], +"P_Pc",d.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F"));a.const_set(r[0],"CC_ALPHA",""+l(r,"P_L")+l(r,"P_Nl"));a.const_set(r[0],"CG_ALPHA","["+l(r,"CC_ALPHA")+"]");a.const_set(r[0],"CC_ALNUM",""+l(r,"CC_ALPHA")+l(r,"P_Nd"));a.const_set(r[0],"CG_ALNUM","["+l(r,"CC_ALNUM")+"]");a.const_set(r[0],"CC_WORD",""+l(r,"CC_ALNUM")+l(r,"P_Pc"));a.const_set(r[0],"CG_WORD","["+l(r,"CC_WORD")+"]");a.const_set(r[0],"CG_BLANK","[ \\t]");a.const_set(r[0],"CC_EOL","(?=\\n|$)");a.const_set(r[0],"CG_GRAPH", +"[^\\s\\x00-\\x1F\\x7F]");a.const_set(r[0],"CC_ALL","[\\s\\S]");a.const_set(r[0],"CC_ANY","[^\\n]")}(g[0],g)};Opal.modules.strscan=function(a){var b=[],g=a.nil,k=a.klass,l=a.send;a.add_stubs("$attr_reader $anchor $scan_until $length $size $rest $pos= $- $private".split(" "));return function(b,$super,e){b=k(b,$super,"StringScanner");[b].concat(e);var d,r,p,v,n,c,f,m,q,t,L,R,E,x,O,u,y,ea,xa,B,T,fa,D,A,G;b.$$prototype.pos=b.$$prototype.string=b.$$prototype.working=b.$$prototype.matched=b.$$prototype.prev_pos= +b.$$prototype.match=g;b.$attr_reader("pos");b.$attr_reader("matched");a.def(b,"$initialize",d=function(a){this.string=a;this.pos=0;this.matched=g;this.working=a;return this.match=[]},d.$$arity=1);b.$attr_reader("string");a.def(b,"$beginning_of_line?",r=function(){return 0===this.pos||"\n"===this.string.charAt(this.pos-1)},r.$$arity=0);a.alias(b,"bol?","beginning_of_line?");a.def(b,"$scan",p=function(a){a=this.$anchor(a);a=a.exec(this.working);return null==a?this.matched=g:"object"===typeof a?(this.prev_pos= +this.pos,this.pos+=a[0].length,this.working=this.working.substring(a[0].length),this.matched=a[0],this.match=a,a[0]):"string"===typeof a?(this.pos+=a.length,this.working=this.working.substring(a.length),a):g},p.$$arity=1);a.def(b,"$scan_until",v=function(a){a=this.$anchor(a);for(var b=this.pos,e=this.working,c;;)if(c=a.exec(e),b+=1,e=e.substr(1),null==c){if(0===e.length)return this.matched=g}else return this.matched=this.string.substr(this.pos,b-this.pos-1+c[0].length),this.prev_pos=b-1,this.pos= +b,this.working=e.substr(c[0].length),this.matched},v.$$arity=1);a.def(b,"$[]",n=function(a){var b=this.match;0>a&&(a+=b.length);return 0>a||a>=b.length||null==b[a]?g:b[a]},n.$$arity=1);a.def(b,"$check",c=function(a){a=this.$anchor(a);a=a.exec(this.working);return null==a?this.matched=g:this.matched=a[0]},c.$$arity=1);a.def(b,"$check_until",f=function(a){var b=this.prev_pos,e=this.pos;a=this.$scan_until(a);a!==g&&(this.matched=a.substr(-1),this.working=this.string.substr(e));this.prev_pos=b;this.pos= +e;return a},f.$$arity=1);a.def(b,"$peek",m=function(a){return this.working.substring(0,a)},m.$$arity=1);a.def(b,"$eos?",q=function(){return 0===this.working.length},q.$$arity=0);a.def(b,"$exist?",t=function(a){a=a.exec(this.working);return null==a?g:0==a.index?0:a.index+1},t.$$arity=1);a.def(b,"$skip",L=function(a){a=this.$anchor(a);a=a.exec(this.working);if(null==a)return this.matched=g;a=a[0];var b=a.length;this.matched=a;this.prev_pos=this.pos;this.pos+=b;this.working=this.working.substring(b); +return b},L.$$arity=1);a.def(b,"$skip_until",R=function(a){a=this.$scan_until(a);if(a===g)return g;this.matched=a.substr(-1);return a.length},R.$$arity=1);a.def(b,"$get_byte",E=function(){var a=g;this.posa&&(a+=this.string.$length());this.pos=a;return this.working=this.string.slice(a)},O.$$arity=1);a.def(b,"$matched_size",u=function(){return this.matched===g?g:this.matched.length},u.$$arity=0);a.def(b,"$post_match",y=function(){return this.matched===g?g:this.string.substr(this.pos)},y.$$arity=0);a.def(b,"$pre_match",ea=function(){return this.matched===g?g:this.string.substr(0,this.prev_pos)},ea.$$arity=0);a.def(b, +"$reset",xa=function(){this.working=this.string;this.matched=g;return this.pos=0},xa.$$arity=0);a.def(b,"$rest",B=function(){return this.working},B.$$arity=0);a.def(b,"$rest?",T=function(){return 0!==this.working.length},T.$$arity=0);a.def(b,"$rest_size",fa=function(){return this.$rest().$size()},fa.$$arity=0);a.def(b,"$terminate",D=function(){this.match=g;var b=[this.string.$length()];l(this,"pos=",a.to_a(b));var e=b.length;e="number"===typeof e?e-1:e["$-"](1);return b[e]},D.$$arity=0);a.def(b,"$unscan", +A=function(){this.pos=this.prev_pos;this.match=this.prev_pos=g;return this},A.$$arity=0);b.$private();return(a.def(b,"$anchor",G=function(a){var b=a.toString().match(/\/([^\/]+)$/);b=b?b[1]:void 0;return new RegExp("^(?:"+a.source+")",b)},G.$$arity=1),g)&&"anchor"}(b[0],null,b)};Opal.modules["asciidoctor/js"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/js/opal_ext");b.$require("asciidoctor/js/rx");return b.$require("strscan")};Opal.modules["asciidoctor/core_ext/nil_or_empty"]= +function(a){var b=[],g=a.nil,k=a.klass,l=a.truthy;a.add_stubs(["$method_defined?"]);(function(b,$super,e){b=k(b,$super,"NilClass");[b].concat(e);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","nil?")})(b[0],null,b);(function(b,$super,e){b=k(b,$super,"String");[b].concat(e);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);(function(b,$super,e){b=k(b,$super,"Array");[b].concat(e);return l(b["$method_defined?"]("nil_or_empty?"))? +g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);(function(b,$super,e){b=k(b,$super,"Hash");[b].concat(e);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);return function(b,$super,e){b=k(b,$super,"Numeric");[b].concat(e);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","nil?")}(b[0],null,b)};Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b? +a $inject $merge $[]".split(" "));return h(l,"Hash").$instance_method("merge").$arity()["$=="](1)?h(l,"Hash").$send("prepend",e(h(l,"Module"),"new",[],(g=function(){var d;return(a.def(g.$$s||this,"$merge",d=function(g){var h,n=p;d.$$p&&(d.$$p=null);var c=a.slice.call(arguments,0,arguments.length);return m(b(n=c.$length(),1))?this.$dup():m("number"=== +typeof n?1"](1))?e(c,"inject",[this],(h=function(a,b){null==a&&(a=p);null==b&&(b=p);return a.$merge(b)},h.$$s=this,h.$$arity=2,h)):e(this,a.find_super_dispatcher(this,"merge",d,!1),[c["$[]"](0)],null)},d.$$arity=-1),p)&&"merge"},g.$$s=k,g.$$arity=0,g))):p};Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.truthy,p=a.klass;a.add_stubs(["$method_defined?"]);return l(k(b,"MatchData")["$method_defined?"]("names"))?g:function(b,$super, +d){b=p(b,$super,"MatchData");[b].concat(d);var h;return(a.def(b,"$names",h=function(){return[]},h.$$arity=0),g)&&"names"}(b[0],null,b)};Opal.modules["asciidoctor/core_ext"]=function(a){var b=a.top,g=a.nil,k=a.const_get_relative;a.add_stubs(["$=="]);b.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty");b.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge");return k([],"RUBY_ENGINE")["$=="]("opal")?b.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names"):g};Opal.modules["asciidoctor/helpers"]= +function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var k=[],l=a.nil,p=a.const_get_qualified,h=a.const_get_relative,e=a.module,m=a.truthy,r=a.gvars,q=a.send,F=a.hash2;a.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".split(" ")); +return function(d,c){d=[e(d,"Asciidoctor")].concat(c);(function(c,d){c=e(c,"Helpers");var f=[c].concat(d),n,k,v,z,x,t,E,O,U,W,u,y,fa,B,D,A;c.$module_function();a.def(c,"$require_library",n=function(b,e,c){var d=l,n=l;null==r["!"]&&(r["!"]=l);null==e&&(e=!0);null==c&&(c="abort");try{return this.$require(b)}catch(ka){if(a.rescue(ka,[p("::","LoadError")]))try{return m(this["$include?"](h(f,"Logging")))||this.$include(h(f,"Logging")),m(e)?(e["$=="](!0)&&(e=b),d=c,"abort"["$==="](d)?(n=r["!"].$path()["$=="](e)? +"":" (reason: "+(m(r["!"].$path())?"cannot load '"+r["!"].$path()+"'":r["!"].$message())+")",this.$raise(p("::","LoadError"),"asciidoctor: FAILED: required gem '"+e+"' is not available"+n+". Processing aborted.")):"warn"["$==="](d)&&(n=r["!"].$path()["$=="](e)?"":" (reason: "+(m(r["!"].$path())?"cannot load '"+r["!"].$path()+"'":r["!"].$message())+")",this.$logger().$warn("optional gem '"+e+"' is not available"+n+". Functionality disabled."))):(d=c,"abort"["$==="](d)?this.$raise(p("::","LoadError"), +"asciidoctor: FAILED: "+r["!"].$message().$chomp(".")+". Processing aborted."):"warn"["$==="](d)&&this.$logger().$warn(""+r["!"].$message().$chomp(".")+". Functionality disabled.")),l}finally{a.pop_exception()}else throw ka;}},n.$$arity=-2);a.def(c,"$prepare_source_array",k=function(e,c){var d,n,g,r,k,x,v,R,z=this,F=l,t=l,L=l;F=l;null==c&&(c=!0);if(m(e["$empty?"]()))return[];if((F=(t=(L=e["$[]"](0)).$unpack("C3")).$slice(0,2))["$=="](h(f,"BOM_BYTES_UTF_16LE")))return F=[0,L.$byteslice(2,L.$bytesize())], +q(e,"[]=",a.to_a(F)),F[b(F.length,1)],function(){return m(c)?q(e,"map",[],(d=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16LE")).$rstrip()},d.$$s=z,d.$$arity=1,d)):q(e,"map",[],(n=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16LE")).$chomp()},n.$$s=z,n.$$arity=1,n))}();if(F["$=="](h(f,"BOM_BYTES_UTF_16BE")))return F=[0,L.$byteslice(2,L.$bytesize())],q(e,"[]=",a.to_a(F)),F[b(F.length,1)],function(){return m(c)?q(e,"map",[], +(g=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16BE")).$rstrip()},g.$$s=z,g.$$arity=1,g)):q(e,"map",[],(r=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16BE")).$chomp()},r.$$s=z,r.$$arity=1,r))}();t["$=="](h(f,"BOM_BYTES_UTF_8"))&&(F=[0,L.$byteslice(3,L.$bytesize())],q(e,"[]=",a.to_a(F)),F[b(F.length,1)]);return L.$encoding()["$=="](h(f,"UTF_8"))?m(c)?q(e,"map",[],(k=function(a){null==a&&(a=l);return a.$rstrip()},k.$$s=z, +k.$$arity=1,k)):q(e,"map",[],(x=function(a){null==a&&(a=l);return a.$chomp()},x.$$s=z,x.$$arity=1,x)):m(c)?q(e,"map",[],(v=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8")).$rstrip()},v.$$s=z,v.$$arity=1,v)):q(e,"map",[],(R=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8")).$chomp()},R.$$s=z,R.$$arity=1,R))},k.$$arity=-2);a.def(c,"$prepare_source_string",v=function(a,b){var e,c,d=l,n=l;null==b&&(b=!0);if(m(a["$nil_or_empty?"]()))return[];(d=(n=a.$unpack("C3")).$slice(0,2))["$=="](h(f, +"BOM_BYTES_UTF_16LE"))?a=a.$byteslice(2,a.$bytesize()).$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16LE")):d["$=="](h(f,"BOM_BYTES_UTF_16BE"))?a=a.$byteslice(2,a.$bytesize()).$encode(h(f,"UTF_8"),p(p("::","Encoding"),"UTF_16BE")):n["$=="](h(f,"BOM_BYTES_UTF_8"))?(a=a.$byteslice(3,a.$bytesize()),a.$encoding()["$=="](h(f,"UTF_8"))||(a=a.$encode(h(f,"UTF_8")))):m(a.$encoding()["$!="](h(f,"UTF_8")))&&(a=a.$encode(h(f,"UTF_8")));return m(b)?q([],"tap",[],(e=function(b){var c=e.$$s||this,f;null==b&& +(b=l);return q(a,"each_line",[],(f=function(a){null==a&&(a=l);return b["$<<"](a.$rstrip())},f.$$s=c,f.$$arity=1,f))},e.$$s=this,e.$$arity=1,e)):q([],"tap",[],(c=function(b){var e=c.$$s||this,f;null==b&&(b=l);return q(a,"each_line",[],(f=function(a){null==a&&(a=l);return b["$<<"](a.$chomp())},f.$$s=e,f.$$arity=1,f))},c.$$s=this,c.$$arity=1,c))},v.$$arity=-2);a.def(c,"$uriish?",z=function(a){var b;return m(b=a["$include?"](":"))?h(f,"UriSniffRx")["$match?"](a):b},z.$$arity=1);h(f,"RUBY_ENGINE")["$=="]("opal")? +a.def(c,"$encode_uri_component",x=function(a){return encodeURIComponent(a).replace(/%20|[!'()*]/g,function(a){return"%20"===a?"+":"%"+a.charCodeAt(0).toString(16)})},x.$$arity=1):l;a.def(c,"$encode_spaces_in_uri",t=function(a){return m(a["$include?"](" "))?a.$gsub(" ","%20"):a},t.$$arity=1);a.def(c,"$rootname",E=function(a){var b;return m(b=a.$rindex("."))?m(a.$index("/",b))?a:a.$slice(0,b):a},E.$$arity=1);a.def(c,"$basename",O=function(a,b){null==b&&(b=l);return m(b)?p("::","File").$basename(a,b["$=="](!0)? +this.$extname(a):b):p("::","File").$basename(a)},O.$$arity=-2);a.def(c,"$extname?",U=function(a){var b,e=l;return m(b=e=a.$rindex("."))?a.$index("/",e)["$!"]():b},U.$$arity=1);m(p(p("::","File"),"ALT_SEPARATOR"))?a.def(c,"$extname",W=function(a,b){var e,c;null==b&&(b="");return m(c=a.$rindex("."))?m(m(e=a.$index("/",c))?e:a.$index(p(p("::","File"),"ALT_SEPARATOR"),c))?b:a.$slice(c,a.$length()):b},W.$$arity=-2):a.def(c,"$extname",u=function(a,b){var e;null==b&&(b="");return m(e=a.$rindex("."))?m(a.$index("/", +e))?b:a.$slice(e,a.$length()):b},u.$$arity=-2);a.def(c,"$mkdir_p",y=function(b){var e;if(m(p("::","File")["$directory?"](b)))return l;(e=p("::","File").$dirname(b))["$=="](".")||this.$mkdir_p(e);try{return p("::","Dir").$mkdir(b)}catch(ra){if(a.rescue(ra,[p("::","SystemCallError")]))try{return m(p("::","File")["$directory?"](b))?l:this.$raise()}finally{a.pop_exception()}else throw ra;}},y.$$arity=1);a.const_set(f[0],"ROMAN_NUMERALS",F("M CM D CD C XC L XL X IX V IV I".split(" "),{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}));c.$private_constant("ROMAN_NUMERALS");a.def(c,"$int_to_roman",fa=function(b){var e;return q(h(f,"ROMAN_NUMERALS"),"map",[],(e=function(e,c){null==e&&(e=l);null==c&&(c=l);var f=b.$divmod(c);c=a.to_ary(f);var d=null==c[0]?l:c[0];b=null==c[1]?l:c[1];f;return"number"===typeof e&&"number"===typeof d?e*d:e["$*"](d)},e.$$s=this,e.$$arity=2,e)).$join()},fa.$$arity=1);a.def(c,"$nextval",B=function(a){var b;return m(p("::","Integer")["$==="](a))?g(a,1): +(b=a.$to_i()).$to_s()["$=="](a.$to_s())?g(b,1):a.$succ()},B.$$arity=1);a.def(c,"$resolve_class",D=function(a){return m(p("::","Class")["$==="](a))?a:m(p("::","String")["$==="](a))?this.$class_for_name(a):l},D.$$arity=1);a.def(c,"$class_for_name",A=function(b){var e=l;try{return m(p("::","Class")["$==="](e=p("::","Object").$const_get(b,!1)))||this.$raise(),e}catch(ra){if(a.rescue(ra,[h(f,"StandardError")]))try{return this.$raise(p("::","NameError"),"Could not resolve class for name: "+b)}finally{a.pop_exception()}else throw ra; +}},A.$$arity=1)})(d[0],d)}(k[0],k)};Opal.modules.logger=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a<=b:a["$<="](b)}var g=[],k=a.nil,l=a.const_get_qualified,p=a.const_get_relative,h=a.klass,e=a.module,m=a.send,r=a.truthy;a.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".split(" ")); +return function(d,$super,n){d=h(d,$super,"Logger");var c=[d].concat(n),f,g,v,q,z,R,t,x,E,O,u,U,y,B,T;d.$$prototype.level=d.$$prototype.progname=d.$$prototype.pipe=d.$$prototype.formatter=k;(function(b,c){b=[e(b,"Severity")].concat(c);a.const_set(b[0],"DEBUG",0);a.const_set(b[0],"INFO",1);a.const_set(b[0],"WARN",2);a.const_set(b[0],"ERROR",3);a.const_set(b[0],"FATAL",4);a.const_set(b[0],"UNKNOWN",5)})(c[0],c);d.$include(p(c,"Severity"));a.const_set(c[0],"SEVERITY_LABELS",m(p(c,"Severity").$constants(), +"map",[],(f=function(a){null==a&&(a=k);return[p(c,"Severity").$const_get(a),a.$to_s()]},f.$$s=d,f.$$arity=1,f)).$to_h());(function(b,$super,e){b=h(b,$super,"Formatter");var c=[b].concat(e),f,d;a.const_set(c[0],"MESSAGE_FORMAT","%s, [%s] %5s -- %s: %s\n");a.const_set(c[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N");a.def(b,"$call",f=function(a,b,e,f){return this.$format(p(c,"MESSAGE_FORMAT"),a.$chr(),b.$strftime(p(c,"DATE_TIME_FORMAT")),a,e,this.$message_as_string(f))},f.$$arity=4);return(a.def(b, +"$message_as_string",d=function(a){var b,e=k;return function(){e=a;if(l("::","String")["$==="](e))return a;if(l("::","Exception")["$==="](e)){var c=""+a.$message()+" ("+a.$class()+")\n",f=(r(b=a.$backtrace())?b:[]).$join("\n");return"number"===typeof c&&"number"===typeof f?c+f:c["$+"](f)}return a.$inspect()}()},d.$$arity=1),k)&&"message_as_string"})(c[0],null,c);d.$attr_reader("level");d.$attr_accessor("progname");d.$attr_accessor("formatter");a.def(d,"$initialize",g=function(a){this.pipe=a;this.level= +p(c,"DEBUG");return this.formatter=p(c,"Formatter").$new()},g.$$arity=1);a.def(d,"$level=",v=function(a){var b;return r(l("::","Integer")["$==="](a))?this.level=a:r(b=p(c,"SEVERITY_LABELS").$key(a.$to_s().$upcase()))?this.level=b:this.$raise(p(c,"ArgumentError"),"invalid log level: "+a)},v.$$arity=1);a.def(d,"$info",q=function(a){var b=q.$$p,e=b||k;b&&(q.$$p=null);b&&(q.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"INFO"),k,a],e.$to_proc())},q.$$arity=-1);a.def(d,"$debug",z=function(a){var b= +z.$$p,e=b||k;b&&(z.$$p=null);b&&(z.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"DEBUG"),k,a],e.$to_proc())},z.$$arity=-1);a.def(d,"$warn",R=function(a){var b=R.$$p,e=b||k;b&&(R.$$p=null);b&&(R.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"WARN"),k,a],e.$to_proc())},R.$$arity=-1);a.def(d,"$error",t=function(a){var b=t.$$p,e=b||k;b&&(t.$$p=null);b&&(t.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"ERROR"),k,a],e.$to_proc())},t.$$arity=-1);a.def(d,"$fatal",x=function(a){var b=x.$$p,e= +b||k;b&&(x.$$p=null);b&&(x.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"FATAL"),k,a],e.$to_proc())},x.$$arity=-1);a.def(d,"$unknown",E=function(a){var b=E.$$p,e=b||k;b&&(E.$$p=null);b&&(E.$$p=null);null==a&&(a=k);return m(this,"add",[p(c,"UNKNOWN"),k,a],e.$to_proc())},E.$$arity=-1);a.def(d,"$info?",O=function(){return b(this.level,p(c,"INFO"))},O.$$arity=0);a.def(d,"$debug?",u=function(){return b(this.level,p(c,"DEBUG"))},u.$$arity=0);a.def(d,"$warn?",U=function(){return b(this.level,p(c,"WARN"))}, +U.$$arity=0);a.def(d,"$error?",y=function(){return b(this.level,p(c,"ERROR"))},y.$$arity=0);a.def(d,"$fatal?",B=function(){return b(this.level,p(c,"FATAL"))},B.$$arity=0);return(a.def(d,"$add",T=function(b,e,f){var d=T.$$p,n=d||k,g;d&&(T.$$p=null);d&&(T.$$p=null);null==e&&(e=k);null==f&&(f=k);d=b=r(g=b)?g:p(c,"UNKNOWN");var h=this.level;d="number"===typeof d&&"number"===typeof h?db:a["$>"](b)}var k=a.top,l=[],p=a.nil,h=a.const_get_qualified,e=a.const_get_relative,m=a.module,r=a.klass,q=a.send,F=a.truthy,n=a.hash2,c=a.gvars;a.add_stubs("$require $attr_reader $progname= $- $new $formatter= $level= $> $[] $=== $inspect $to_h $map $constants $const_get $<< $clear $empty? $max $attr_accessor $memoize_logger $private $extend $private_class_method $logger $merge".split(" ")); +k.$require("logger");return function(f,d){f=[m(f,"Asciidoctor")].concat(d);(function(c,$super,f){c=r(c,$super,"Logger");var d=[c].concat(f),k,l;c.$$prototype.max_severity=p;c.$attr_reader("max_severity");a.def(c,"$initialize",k=function(c){var f=k.$$p,n;f&&(k.$$p=null);var g=0;var h=arguments.length;for(n=Array(h);g]+)>)?$"));a.const_set(c[0],"AuthorDelimiterRx",/;(?: |$)/);a.const_set(c[0],"RevisionInfoLineRx",new RegExp("^(?:[^\\d{]*("+p(c,"CC_ANY")+"*?),)? *(?!:)("+p(c,"CC_ANY")+"*?)(?: *(?!^),?: *("+p(c,"CC_ANY")+"*))?$"));a.const_set(c[0],"ManpageTitleVolnumRx",new RegExp("^("+p(c,"CC_ANY")+"+?) *\\( *("+p(c,"CC_ANY")+"+?) *\\)$"));a.const_set(c[0],"ManpageNamePurposeRx", +new RegExp("^("+p(c,"CC_ANY")+"+?) +- +("+p(c,"CC_ANY")+"+)$"));a.const_set(c[0],"ConditionalDirectiveRx",new RegExp("^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[("+p(c,"CC_ANY")+"+)?\\]$"));a.const_set(c[0],"EvalExpressionRx",new RegExp("^("+p(c,"CC_ANY")+"+?) *([=!><]=|[><]) *("+p(c,"CC_ANY")+"+)$"));a.const_set(c[0],"IncludeDirectiveRx",new RegExp("^(\\\\)?include::([^\\[][^\\[]*)\\[("+p(c,"CC_ANY")+"+)?\\]$"));a.const_set(c[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m); +a.const_set(c[0],"AttributeEntryRx",new RegExp("^:(!?"+p(c,"CG_WORD")+"[^:]*):(?:[ \\t]+("+p(c,"CC_ANY")+"*))?$"));a.const_set(c[0],"InvalidAttributeNameCharsRx",new RegExp("[^"+p(c,"CC_WORD")+"-]"));p(c,"RUBY_ENGINE")["$=="]("opal")?a.const_set(c[0],"AttributeEntryPassMacroRx",new RegExp("^pass:([a-z]+(?:,[a-z-]+)*)?\\[("+p(c,"CC_ALL")+"*)\\]$")):k;a.const_set(c[0],"AttributeReferenceRx",new RegExp("(\\\\)?\\{("+p(c,"CG_WORD")+"["+p(c,"CC_WORD")+"-]*|(set|counter2?):"+p(c,"CC_ANY")+"+?)(\\\\)?\\}")); +a.const_set(c[0],"BlockAnchorRx",new RegExp("^\\[\\[(?:|(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+))?)\\]\\]$"));a.const_set(c[0],"BlockAttributeListRx",new RegExp("^\\[(|["+p(c,"CC_WORD")+".#%{,\"']"+p(c,"CC_ANY")+"*)\\]$"));a.const_set(c[0],"BlockAttributeLineRx",new RegExp("^\\[(?:|["+p(c,"CC_WORD")+".#%{,\"']"+p(c,"CC_ANY")+"*|\\[(?:|["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*(?:, *"+p(c,"CC_ANY")+"+)?)\\])\\]$"));a.const_set(c[0],"BlockTitleRx",new RegExp("^\\.(\\.?[^ \\t.]"+ +p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"AdmonitionParagraphRx",new RegExp("^("+p(c,"ADMONITION_STYLES").$to_a().$join("|")+"):[ \\t]+"));a.const_set(c[0],"LiteralParagraphRx",new RegExp("^([ \\t]+"+p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"AtxSectionTitleRx",new RegExp("^(=={0,5})[ \\t]+("+p(c,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$"));a.const_set(c[0],"ExtAtxSectionTitleRx",new RegExp("^(=={0,5}|#\\#{0,5})[ \\t]+("+p(c,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$"));a.const_set(c[0],"SetextSectionTitleRx",new RegExp("^((?!\\.)"+ +p(c,"CC_ANY")+"*?"+p(c,"CG_ALNUM")+p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"InlineSectionAnchorRx",new RegExp(" (\\\\)?\\[\\[(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+))?\\]\\]$"));a.const_set(c[0],"InvalidSectionIdCharsRx",new RegExp("<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ "+p(c,"CC_WORD")+"\\-.]+?"));a.const_set(c[0],"SectionLevelStyleRx",/^sect\d$/);a.const_set(c[0],"AnyListRx",new RegExp("^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]"+ +p(c,"CC_ANY")+"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"));a.const_set(c[0],"UnorderedListRx",new RegExp("^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+("+p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"OrderedListRx",new RegExp("^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+("+p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"OrderedListMarkerRxMap",e(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})); +a.const_set(c[0],"DescriptionListRx",new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+p(c,"CC_ANY")+"*?)(:::{0,2}|;;)(?:$|[ \\t]+("+p(c,"CC_ANY")+"*)$)"));a.const_set(c[0],"DescriptionListSiblingRx",e(["::",":::","::::",";;"],{"::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+p(c,"CC_ANY")+"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+("+p(c,"CC_ANY")+"*)$)"),":::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+p(c,"CC_ANY")+"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+("+p(c,"CC_ANY")+"*)$)"),"::::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+ +p(c,"CC_ANY")+"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+("+p(c,"CC_ANY")+"*)$)"),";;":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+p(c,"CC_ANY")+"*?)(;;)(?:$|[ \\t]+("+p(c,"CC_ANY")+"*)$)")}));a.const_set(c[0],"CalloutListRx",new RegExp("^<(\\d+|\\.)>[ \\t]+("+p(c,"CC_ANY")+"*)$"));a.const_set(c[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?(?=(?: ?\\?)*$)/);a.const_set(c[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");a.const_set(c[0],"CalloutExtractRxMap", +m(l("::","Hash"),"new",[],(f=function(e,f){null==e&&(e=k);null==f&&(f=k);f=[f,new RegExp("("+(r(f["$empty?"]())?"":""+l("::","Regexp").$escape(f)+" ?")+")?"+p(c,"CalloutExtractRxt"))];m(e,"[]=",a.to_a(f));return f[b(f.length,1)]},f.$$s=d,f.$$arity=2,f)));a.const_set(c[0],"CalloutScanRx",new RegExp("\\\\?(?=(?: ?\\\\?)*"+p(c,"CC_EOL")+")"));a.const_set(c[0],"CalloutSourceRx",new RegExp("((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*"+ +p(c,"CC_EOL")+")"));a.const_set(c[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+p(c,"CC_EOL")+")");a.const_set(c[0],"CalloutSourceRxMap",m(l("::","Hash"),"new",[],(n=function(e,f){null==e&&(e=k);null==f&&(f=k);f=[f,new RegExp("("+(r(f["$empty?"]())?"":""+l("::","Regexp").$escape(f)+" ?")+")?"+p(c,"CalloutSourceRxt"))];m(e,"[]=",a.to_a(f));return f[b(f.length,1)]},n.$$s=d,n.$$arity=2,n)));a.const_set(c[0],"ListRxMap",e(["ulist","olist","dlist","colist"],{ulist:p(c, +"UnorderedListRx"),olist:p(c,"OrderedListRx"),dlist:p(c,"DescriptionListRx"),colist:p(c,"CalloutListRx")}));a.const_set(c[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);a.const_set(c[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);a.const_set(c[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);a.const_set(c[0],"CustomBlockMacroRx", +new RegExp("^("+p(c,"CG_WORD")+"["+p(c,"CC_WORD")+"-]*)::(|\\S|\\S"+p(c,"CC_ANY")+"*?\\S)\\[("+p(c,"CC_ANY")+"+)?\\]$"));a.const_set(c[0],"BlockMediaMacroRx",new RegExp("^(image|video|audio)::(\\S|\\S"+p(c,"CC_ANY")+"*?\\S)\\[("+p(c,"CC_ANY")+"+)?\\]$"));a.const_set(c[0],"BlockTocMacroRx",new RegExp("^toc::\\[("+p(c,"CC_ANY")+"+)?\\]$"));a.const_set(c[0],"InlineAnchorRx",new RegExp("(\\\\)?(?:\\[\\[(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+?))?\\]\\]|anchor:(["+p(c, +"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+p(c,"CC_ANY")+"*?[^\\\\])\\]))"));a.const_set(c[0],"InlineAnchorScanRx",new RegExp("(?:^|[^\\\\\\[])\\[\\[(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+?))?\\]\\]|(?:^|[^\\\\])anchor:(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+p(c,"CC_ANY")+"*?[^\\\\])\\])"));a.const_set(c[0],"LeadingInlineAnchorRx",new RegExp("^\\[\\[(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+?))?\\]\\]")); +a.const_set(c[0],"InlineBiblioAnchorRx",new RegExp("^\\[\\[\\[(["+p(c,"CC_ALPHA")+"_:]["+p(c,"CC_WORD")+"\\-:.]*)(?:, *("+p(c,"CC_ANY")+"+?))?\\]\\]\\]"));a.const_set(c[0],"InlineEmailRx",new RegExp("([\\\\>:/])?"+p(c,"CG_WORD")+"(?:&|["+p(c,"CC_WORD")+"\\-.%+])*@"+p(c,"CG_ALNUM")+"["+p(c,"CC_ALNUM")+"_\\-.]*\\.[a-zA-Z]{2,5}\\b"));a.const_set(c[0],"InlineFootnoteMacroRx",new RegExp("\\\\?footnote(?:(ref):|:(["+p(c,"CC_WORD")+"-]+)?)\\[(?:|("+p(c,"CC_ALL")+"*?[^\\\\]))\\](?!)","m"));a.const_set(c[0], +"InlineImageMacroRx",new RegExp("\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|"+p(c,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(c[0],"InlineIndextermMacroRx",new RegExp("\\\\?(?:(indexterm2?):\\[("+p(c,"CC_ALL")+"*?[^\\\\])\\]|\\(\\(("+p(c,"CC_ALL")+"+?)\\)\\)(?!\\)))","m"));a.const_set(c[0],"InlineKbdBtnMacroRx",new RegExp("(\\\\)?(kbd|btn):\\[("+p(c,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(c[0],"InlineLinkRx",new RegExp("(^|link:|"+p(c,"CG_BLANK")+"|<|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|"+ +p(c,"CC_ALL")+"*?[^\\\\])\\])?","m"));a.const_set(c[0],"InlineLinkMacroRx",new RegExp("\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|"+p(c,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(c[0],"MacroNameRx",new RegExp("^"+p(c,"CG_WORD")+"["+p(c,"CC_WORD")+"-]*$"));a.const_set(c[0],"InlineStemMacroRx",new RegExp("\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[("+p(c,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(c[0],"InlineMenuMacroRx",new RegExp("\\\\?menu:("+p(c,"CG_WORD")+"|["+p(c,"CC_WORD")+ +"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|("+p(c,"CC_ALL")+"*?[^\\\\]))\\]","m"));a.const_set(c[0],"InlineMenuRx",new RegExp('\\\\?"(['+p(c,"CC_WORD")+'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'));a.const_set(c[0],"InlinePassRx",q(!1,["+","`",new RegExp("(^|[^"+p(c,"CC_WORD")+";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S"+p(c,"CC_ALL")+"*?\\S)\\4)(?!"+p(c,"CG_WORD")+")","m")],!0,["`",k,new RegExp("(^|[^`"+p(c,"CC_WORD")+"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]"+p(c,"CC_ALL")+"*?\\S)\\4)(?![`"+p(c,"CC_WORD")+ +"])","m")]));a.const_set(c[0],"SinglePlusInlinePassRx",new RegExp("^(\\\\)?\\+(\\S|\\S"+p(c,"CC_ALL")+"*?\\S)\\+$","m"));a.const_set(c[0],"InlinePassMacroRx",new RegExp("(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)("+p(c,"CC_ALL")+"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|"+p(c,"CC_ALL")+"*?[^\\\\])\\])","m"));a.const_set(c[0],"InlineXrefMacroRx",new RegExp("\\\\?(?:<<(["+p(c,"CC_WORD")+"#/.:{]"+p(c,"CC_ALL")+"*?)>>|xref:(["+p(c,"CC_WORD")+"#/.:{]"+p(c,"CC_ALL")+"*?)\\[(?:\\]|("+ +p(c,"CC_ALL")+"*?[^\\\\])\\]))","m"));p(c,"RUBY_ENGINE")["$=="]("opal")?a.const_set(c[0],"HardLineBreakRx",new RegExp("^("+p(c,"CC_ANY")+"*) \\+$","m")):k;a.const_set(c[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/);a.const_set(c[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);a.const_set(c[0],"BlankLineRx",/\n{2,}/);a.const_set(c[0],"EscapedSpaceRx",/\\([ \t\n])/);a.const_set(c[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/);a.const_set(c[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/); +a.const_set(c[0],"SubModifierSniffRx",/[+-]/);a.const_set(c[0],"TrailingDigitsRx",/\d+$/);a.const_set(c[0],"UriSniffRx",new RegExp("^"+p(c,"CG_ALPHA")+"["+p(c,"CC_ALNUM")+".+-]+:/{0,2}"));a.const_set(c[0],"XmlSanitizeRx",/<[^>]+>/)}(g[0],g)};Opal.modules["asciidoctor/substitutors"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function k(a,b){return"number"===typeof a&&"number"=== +typeof b?a>b:a["$>"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a $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 $info? $catalog $fetch $outfilesuffix $natural_xrefs $resolve_id $find $footnotes $id $< $size $<< $attr? $attr $to_s $read_next_id $callouts $syntax_highlighter $highlight? $sub_source $extract_callouts $name $to_sym $to_i $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".split(" ")); +return function(d,h){d=[F(d,"Asciidoctor")].concat(h);(function(d,h){d=F(d,"Substitutors");var x=[d].concat(h),v,R,z,L,E,O,U,y,W,B,D,pa,A,ra,I,G,J,K,H,aa,na,qa,ba,M,P,Q,la,va,ha,Aa,Ka;a.const_set(x[0],"SpecialCharsRx",/[<&>]/);a.const_set(x[0],"SpecialCharsTr",n([">","<","&"],{">":">","<":"<","&":"&"}));a.const_set(x[0],"QuotedTextSniffRx",c(!1,/[*_`#^~]/,!0,/[*'_+#^~]/));a.const_set(x[0],"BASIC_SUBS",["specialcharacters"]).$freeze();a.const_set(x[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(); +a.const_set(x[0],"NO_SUBS",[]).$freeze();a.const_set(x[0],"NORMAL_SUBS","specialcharacters quotes attributes replacements macros post_replacements".split(" ")).$freeze();a.const_set(x[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze();a.const_set(x[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze();a.const_set(x[0],"SUB_GROUPS",n(["none","normal","verbatim","specialchars"],{none:r(x,"NO_SUBS"),normal:r(x,"NORMAL_SUBS"),verbatim:r(x,"VERBATIM_SUBS"),specialchars:r(x, +"BASIC_SUBS")}));a.const_set(x[0],"SUB_HINTS",n("amnpqrcv".split(""),{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"}));a.const_set(x[0],"SUB_OPTIONS",n(["block","inline"],{block:b(b(r(x,"SUB_GROUPS").$keys(),r(x,"NORMAL_SUBS")),["callouts"]),inline:b(r(x,"SUB_GROUPS").$keys(),r(x,"NORMAL_SUBS"))}));a.const_set(x[0],"CAN","\u0018");a.const_set(x[0],"DEL","\u007f");a.const_set(x[0],"PASS_START","\u0096");a.const_set(x[0],"PASS_END", +"\u0097");a.const_set(x[0],"PassSlotRx",new RegExp(""+r(x,"PASS_START")+"(\\d+)"+r(x,"PASS_END")));a.const_set(x[0],"HighlightedPassSlotRx",new RegExp("]*>"+r(x,"PASS_START")+"[^\\d]*(\\d+)[^\\d]*]*>"+r(x,"PASS_END")+""));a.const_set(x[0],"RS","\\");a.const_set(x[0],"R_SB","]");a.const_set(x[0],"ESC_R_SB","\\]");a.const_set(x[0],"PLUS","+");a.def(d,"$apply_subs",v=function(a,b){var c,d,g=e,n=e,h=e;null==this.passthroughs&&(this.passthroughs=e);null==this.passthroughs_locked&& +(this.passthroughs_locked=e);null==b&&(b=r(x,"NORMAL_SUBS"));if(f(f(c=a["$empty?"]())?c:b["$!"]()))return a;f(g=m("::","Array")["$==="](a))&&(a=f(a["$[]"](1))?a.$join(r(x,"LF")):a["$[]"](0));f(b["$include?"]("macros"))&&(a=this.$extract_passthroughs(a),f(this.passthroughs["$empty?"]())||(n=this.passthroughs,this.passthroughs_locked=f(c=this.passthroughs_locked)?c:h=!0));t(b,"each",[],(d=function(c){var g=d.$$s||this;null==c&&(c=e);var n=c;return"specialcharacters"["$==="](n)?a=g.$sub_specialchars(a): +"quotes"["$==="](n)?a=g.$sub_quotes(a):"attributes"["$==="](n)?f(a["$include?"](r(x,"ATTR_REF_HEAD")))?a=g.$sub_attributes(a):e:"replacements"["$==="](n)?a=g.$sub_replacements(a):"macros"["$==="](n)?a=g.$sub_macros(a):"highlight"["$==="](n)?a=g.$highlight_source(a,b["$include?"]("callouts")):"callouts"["$==="](n)?f(b["$include?"]("highlight"))?e:a=g.$sub_callouts(a):"post_replacements"["$==="](n)?a=g.$sub_post_replacements(a):g.$logger().$warn("unknown substitution type "+c)},d.$$s=this,d.$$arity= +1,d));f(n)&&(a=this.$restore_passthroughs(a),f(h)&&(n.$clear(),this.passthroughs_locked=e));return f(g)?a.$split(r(x,"LF"),-1):a},v.$$arity=-2);a.def(d,"$apply_normal_subs",R=function(a){return this.$apply_subs(a,r(x,"NORMAL_SUBS"))},R.$$arity=1);a.def(d,"$apply_header_subs",z=function(a){return this.$apply_subs(a,r(x,"HEADER_SUBS"))},z.$$arity=1);a.alias(d,"apply_title_subs","apply_subs");a.def(d,"$apply_reftext_subs",L=function(a){return this.$apply_subs(a,r(x,"REFTEXT_SUBS"))},L.$$arity=1);r(x, +"RUBY_ENGINE")["$=="]("opal")?a.def(d,"$sub_specialchars",E=function(a){var b,e;return f(f(b=f(e=a["$include?"](">"))?e:a["$include?"]("&"))?b:a["$include?"]("<"))?a.$gsub(r(x,"SpecialCharsRx"),r(x,"SpecialCharsTr")):a},E.$$arity=1):e;a.alias(d,"sub_specialcharacters","sub_specialchars");a.def(d,"$sub_quotes",O=function(a){var b,c=e;null==this.document&&(this.document=e);f(r(x,"QuotedTextSniffRx")["$[]"](c=this.document.$compat_mode())["$match?"](a))&&t(r(x,"QUOTE_SUBS")["$[]"](c),"each",[],(b=function(c, +f,d){var g=b.$$s||this,n;null==c&&(c=e);null==f&&(f=e);null==d&&(d=e);return a=t(a,"gsub",[d],(n=function(){var a=n.$$s||this;null==u["~"]&&(u["~"]=e);return a.$convert_quoted_text(u["~"],c,f)},n.$$s=g,n.$$arity=0,n))},b.$$s=this,b.$$arity=3,b));return a},O.$$arity=1);a.def(d,"$sub_attributes",U=function(b,c){var d,g,h,k,l=e,p=e,v=e,m=e,q=e,R=e,z=e,F=e;null==this.document&&(this.document=e);null==c&&(c=n([],{}));l=this.document.$attributes();p=v=m=q=R=z=e;b=t(b,"gsub",[r(x,"AttributeReferenceRx")], +(d=function(){var b=d.$$s||this,g,n,h,k,F=e,Z=e,L=e,E=e;null==b.document&&(b.document=e);return f(f(g=((n=u["~"])===e?e:n["$[]"](1))["$=="](r(x,"RS")))?g:((n=u["~"])===e?e:n["$[]"](4))["$=="](r(x,"RS")))?"{"+((g=u["~"])===e?e:g["$[]"](2))+"}":f((g=u["~"])===e?e:g["$[]"](3))?function(){F=(Z=((g=u["~"])===e?e:g["$[]"](2)).$split(":",3)).$shift();return"set"["$==="](F)?(n=r(x,"Parser").$store_attribute(Z["$[]"](0),f(h=Z["$[]"](1))?h:"",b.document),g=a.to_ary(n),L=null==g[1]?e:g[1],n,f(f(g=L)?g:(R=f(n= +R)?n:f(h=l["$[]"]("attribute-undefined"))?h:r(x,"Compliance").$attribute_undefined())["$!="]("drop-line"))?p=q=r(x,"DEL"):p=v=r(x,"CAN")):"counter2"["$==="](F)?(t(b.document,"counter",a.to_a(Z)),p=q=r(x,"DEL")):t(b.document,"counter",a.to_a(Z))}():f(l["$key?"](E=((g=u["~"])===e?e:g["$[]"](2)).$downcase()))?l["$[]"](E):f(L=r(x,"INTRINSIC_ATTRIBUTES")["$[]"](E))?L:function(){F=z=f(g=z)?g:f(n=f(h=c["$[]"]("attribute_missing"))?h:l["$[]"]("attribute-missing"))?n:r(x,"Compliance").$attribute_missing(); +if("drop"["$==="](F))return p=q=r(x,"DEL");if("drop-line"["$==="](F))return(m=f(g=m)?g:f(n=c["$[]"]("drop_line_severity"))?n:"info")["$=="]("info")&&t(b.$logger(),"info",[],(k=function(){return"dropping line containing reference to missing attribute: "+E},k.$$s=b,k.$$arity=0,k)),p=v=r(x,"CAN");"warn"["$==="](F)&&b.$logger().$warn("skipping reference to missing attribute: "+E);return(g=u["~"])===e?e:g["$[]"](0)}()},d.$$s=this,d.$$arity=0,d));return f(p)?f(q)?(F=b.$squeeze(r(x,"DEL")).$split(r(x,"LF"), +-1),f(v)?t(F,"reject",[],(g=function(a){var b,c,d;null==a&&(a=e);return f(b=f(c=f(d=a["$=="](r(x,"DEL")))?d:a["$=="](r(x,"CAN")))?c:a["$start_with?"](r(x,"CAN")))?b:a["$include?"](r(x,"CAN"))},g.$$s=this,g.$$arity=1,g)).$join(r(x,"LF")).$delete(r(x,"DEL")):t(F,"reject",[],(h=function(a){null==a&&(a=e);return a["$=="](r(x,"DEL"))},h.$$s=this,h.$$arity=1,h)).$join(r(x,"LF")).$delete(r(x,"DEL"))):f(b["$include?"](r(x,"LF")))?t(b.$split(r(x,"LF"),-1),"reject",[],(k=function(a){var b,c;null==a&&(a=e); +return f(b=f(c=a["$=="](r(x,"CAN")))?c:a["$start_with?"](r(x,"CAN")))?b:a["$include?"](r(x,"CAN"))},k.$$s=this,k.$$arity=1,k)).$join(r(x,"LF")):"":b},U.$$arity=-2);a.def(d,"$sub_replacements",y=function(a){var b;f(r(x,"ReplaceableTextRx")["$match?"](a))&&t(r(x,"REPLACEMENTS"),"each",[],(b=function(c,f,d){var g=b.$$s||this,n;null==c&&(c=e);null==f&&(f=e);null==d&&(d=e);return a=t(a,"gsub",[c],(n=function(){var a=n.$$s||this;null==u["~"]&&(u["~"]=e);return a.$do_replacement(u["~"],f,d)},n.$$s=g,n.$$arity= +0,n))},b.$$s=this,b.$$arity=3,b));return a},y.$$arity=1);a.def(d,"$sub_macros",W=function(c){var d,h,l,p,v,R,F,z,L,E,O,U,y,W,Y,w=e,C=e,ma=e,N=e,Z=e,oa=e,db=e;null==this.document&&(this.document=e);null==this.context&&(this.context=e);null==this.parent&&(this.parent=e);w=c["$include?"]("[");C=c["$include?"](":");ma=f(d=w)?C:d;N=f(d=ma)?c["$include?"](":["):d;Z=(oa=this.document).$attributes();f(f(d=db=oa.$extensions())?db["$inline_macros?"]():d)&&t(db.$inline_macros(),"each",[],(h=function(b){var d= +h.$$s||this,w;null==b&&(b=e);return c=t(c,"gsub",[b.$instance().$regexp()],(w=function(){var c=w.$$s||this,d,h,k,l=e,bb=e,p=e,v=e,C=e,m=e,cb=e,q=e,R=e;null==u["~"]&&(u["~"]=e);if(f((l=(d=u["~"])===e?e:d["$[]"](0))["$start_with?"](r(x,"RS"))))return((d=u["~"])===e?e:d["$[]"](0)).$slice(1,((d=u["~"])===e?e:d["$[]"](0)).$length());if(f(u["~"].$names()["$empty?"]()))d=[(h=u["~"])===e?e:h["$[]"](1),(h=u["~"])===e?e:h["$[]"](2)];else{a:{try{var F=u["~"]["$[]"]("target");break a}catch(eb){if(a.rescue(eb, +[r(x,"StandardError")]))try{F=e;break a}finally{a.pop_exception()}else throw eb;}F=void 0}d=F;a:{try{var z=u["~"]["$[]"]("content");break a}catch(eb){if(a.rescue(eb,[r(x,"StandardError")]))try{z=e;break a}finally{a.pop_exception()}else throw eb;}z=void 0}d=[d,z]}bb=d[0];p=d[1];d;v=f(C=(m=b.$config())["$[]"]("default_attrs"))?C.$merge():n([],{});f(p)&&(f(p["$empty?"]())?m["$[]"]("content_model")["$=="]("attributes")||(cb=["text",p],t(v,"[]=",a.to_a(cb)),cb[g(cb.length,1)]):(p=c.$normalize_text(p,!0, +!0),m["$[]"]("content_model")["$=="]("attributes")?c.$parse_attributes(p,f(d=f(h=m["$[]"]("positional_attrs"))?h:m["$[]"]("pos_attrs"))?d:[],n(["into"],{into:v})):(cb=["text",p],t(v,"[]=",a.to_a(cb)),cb[g(cb.length,1)])),bb=f(d=bb)?d:m["$[]"]("format")["$=="]("short")?p:bb);return f(r(x,"Inline")["$==="](q=b.$process_method()["$[]"](c,bb,v)))?(f(f(d=R=q.$attributes().$delete("subs"))?R=c.$expand_subs(R,"custom inline macro"):d)&&(cb=[c.$apply_subs(q.$text(),R)],t(q,"text=",a.to_a(cb)),cb[g(cb.length, +1)]),q.$convert()):f(q)?(t(c.$logger(),"info",[],(k=function(){return"expected substitution value for custom inline macro to be of type Inline; got "+q.$class()+": "+l},k.$$s=c,k.$$arity=0,k)),q):""},w.$$s=d,w.$$arity=0,w))},h.$$s=this,h.$$arity=1,h));f(Z["$key?"]("experimental"))&&(f(f(d=N)?f(l=c["$include?"]("kbd:"))?l:c["$include?"]("btn:"):d)&&(c=t(c,"gsub",[r(x,"InlineKbdBtnMacroRx")],(p=function(){var c=p.$$s||this,d,h,w,l=e,v=e,C=e;C=e;return f((d=u["~"])===e?e:d["$[]"](1))?((d=u["~"])===e? +e:d["$[]"](0)).$slice(1,((d=u["~"])===e?e:d["$[]"](0)).$length()):((d=u["~"])===e?e:d["$[]"](2))["$=="]("kbd")?(f((l=((d=u["~"])===e?e:d["$[]"](3)).$strip())["$include?"](r(x,"R_SB")))&&(l=l.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))),f(f(d=k(l.$length(),1))?v=f(v=l.$index(",",1))?[v,l.$index("+",1)].$compact().$min():l.$index("+",1):d)?(C=l.$slice(v,1),f(l["$end_with?"](C))?(l=t(l.$chop().$split(C,-1),"map",[],(h=function(a){null==a&&(a=e);return a.$strip()},h.$$s=c,h.$$arity=1,h)),C=[-1,b(l["$[]"](-1), +C)],t(l,"[]=",a.to_a(C)),C[g(C.length,1)]):l=t(l.$split(C),"map",[],(w=function(a){null==a&&(a=e);return a.$strip()},w.$$s=c,w.$$arity=1,w))):l=[l],r(x,"Inline").$new(c,"kbd",e,n(["attributes"],{attributes:n(["keys"],{keys:l})})).$convert()):r(x,"Inline").$new(c,"button",c.$normalize_text((d=u["~"])===e?e:d["$[]"](3),!0,!0)).$convert()},p.$$s=this,p.$$arity=0,p))),f(f(d=ma)?c["$include?"]("menu:"):d)&&(c=t(c,"gsub",[r(x,"InlineMenuMacroRx")],(v=function(){var a=v.$$s||this,b,c,d=e,g=e,h=e;h=g=e;if(f(((b= +u["~"])===e?e:b["$[]"](0))["$start_with?"](r(x,"RS"))))return((b=u["~"])===e?e:b["$[]"](0)).$slice(1,((b=u["~"])===e?e:b["$[]"](0)).$length());d=(b=u["~"])===e?e:b["$[]"](1);f(g=(b=u["~"])===e?e:b["$[]"](2))?(f(g["$include?"](r(x,"R_SB")))&&(g=g.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))),f(h=f(g["$include?"](">"))?">":f(g["$include?"](","))?",":e)?(g=t(g.$split(h),"map",[],(c=function(a){null==a&&(a=e);return a.$strip()},c.$$s=a,c.$$arity=1,c)),h=g.$pop()):(b=[[],g.$rstrip()],g=b[0],h=b[1],b)):(b= +[[],e],g=b[0],h=b[1],b);return r(x,"Inline").$new(a,"menu",e,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:d,submenus:g,menuitem:h})})).$convert()},v.$$s=this,v.$$arity=0,v))),f(f(d=c["$include?"]('"'))?c["$include?"](">"):d)&&(c=t(c,"gsub",[r(x,"InlineMenuRx")],(R=function(){var b=R.$$s||this,c,d,g,h=e,w=e;var k=e;if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());k=t(((d= +u["~"])===e?e:d["$[]"](1)).$split(">"),"map",[],(g=function(a){null==a&&(a=e);return a.$strip()},g.$$s=b,g.$$arity=1,g));c=a.to_ary(k);h=null==c[0]?e:c[0];w=q.call(c,1);k;k=w.$pop();return r(x,"Inline").$new(b,"menu",e,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:h,submenus:w,menuitem:k})})).$convert()},R.$$s=this,R.$$arity=0,R))));f(f(d=ma)?f(l=c["$include?"]("image:"))?l:c["$include?"]("icon:"):d)&&(c=t(c,"gsub",[r(x,"InlineImageMacroRx")],(F=function(){var b=F.$$s||this, +c,d,h,w=e;if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"]("icon:"))?(c=["icon",["size"]],d=c[0],h=c[1]):(c=["image",["alt","width","height"]],d=c[0],h=c[1]);c;var k=(c=u["~"])===e?e:c["$[]"](1);h=b.$parse_attributes((c=u["~"])===e?e:c["$[]"](2),h,n(["unescape_input"],{unescape_input:!0}));d["$=="]("icon")||(oa.$register("images",k),w=["imagesdir", +Z["$[]"]("imagesdir")],t(h,"[]=",a.to_a(w)),w[g(w.length,1)]);f(c=h["$[]"]("alt"))?c:(w=["alt",(w=["default-alt",r(x,"Helpers").$basename(k,!0).$tr("_-"," ")],t(h,"[]=",a.to_a(w)),w[g(w.length,1)])],t(h,"[]=",a.to_a(w)),w[g(w.length,1)]);return r(x,"Inline").$new(b,"image",e,n(["type","target","attributes"],{type:d,target:k,attributes:h})).$convert()},F.$$s=this,F.$$arity=0,F)));f(f(d=f(l=c["$include?"]("(("))?c["$include?"]("))"):l)?d:f(l=N)?c["$include?"]("dexterm"):l)&&(c=t(c,"gsub",[r(x,"InlineIndextermMacroRx")], +(z=function(){var b=z.$$s||this,c,d,h,w,k=e,l=e,p=e,v=e,C=e,m=e,R=e,F=e,Z=e,N=e,ma=e,L=e,E=e,O=e;return function(){k=(c=u["~"])===e?e:c["$[]"](1);if("indexterm"["$==="](k)){if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());f((l=b.$normalize_text((c=u["~"])===e?e:c["$[]"](2),!0,!0))["$include?"]("="))?f(p=(v=r(x,"AttributeList").$new(l,b).$parse())["$[]"](1))?(C=["terms",[p]],t(v,"[]=",a.to_a(C)), +C[g(C.length,1)],f(m=v["$[]"]("see-also"))&&(C=["see-also",function(){return f(m["$include?"](","))?t(m.$split(","),"map",[],(d=function(a){null==a&&(a=e);return a.$lstrip()},d.$$s=b,d.$$arity=1,d)):[m]}()],t(v,"[]=",a.to_a(C)),C[g(C.length,1)])):v=n(["terms"],{terms:l}):v=n(["terms"],{terms:b.$split_simple_csv(l)});return r(x,"Inline").$new(b,"indexterm",e,n(["attributes"],{attributes:v})).$convert()}if("indexterm2"["$==="](k)){if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c= +u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());f((R=b.$normalize_text((c=u["~"])===e?e:c["$[]"](2),!0,!0))["$include?"]("="))&&(R=f(c=f(h=(v=r(x,"AttributeList").$new(R,b).$parse())["$[]"](1))?h:v=e)?c:R,f(f(c=v)?m=v["$[]"]("see-also"):c)&&(C=["see-also",function(){return f(m["$include?"](","))?t(m.$split(","),"map",[],(w=function(a){null==a&&(a=e);return a.$lstrip()},w.$$s=b,w.$$arity=1,w)):[m]}()],t(v,"[]=",a.to_a(C)),C[g(C.length,1)]));return r(x,"Inline").$new(b, +"indexterm",R,n(["attributes","type"],{attributes:v,type:"visible"})).$convert()}F=(c=u["~"])===e?e:c["$[]"](3);if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))if(f(f(c=F["$start_with?"]("("))?F["$end_with?"](")"):c))F=F.$slice(1,g(F.$length(),2)),c=[!0,"(",")"],Z=c[0],N=c[1],ma=c[2],c;else return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());else Z=!0,f(F["$start_with?"]("("))?(f(F["$end_with?"](")"))?(c=[F.$slice(1,g(F.$length(),2)),!1],F=c[0], +Z=c[1]):(c=[F.$slice(1,F.$length()),"(",""],F=c[0],N=c[1],ma=c[2]),c):f(F["$end_with?"](")"))&&(c=[F.$chop(),"",")"],F=c[0],N=c[1],ma=c[2],c);f(Z)?(f((R=b.$normalize_text(F,!0))["$include?"](";&"))&&(f(R["$include?"](" >> "))?(h=R.$partition(" >> "),c=a.to_ary(h),R=null==c[0]?e:c[0],L=null==c[2]?e:c[2],h,v=n(["see"],{see:L})):f(R["$include?"](" &> "))&&(h=R.$split(" &> "),c=a.to_ary(h),R=null==c[0]?e:c[0],m=q.call(c,1),h,v=n(["see-also"],{"see-also":m}))),E=r(x,"Inline").$new(b, +"indexterm",R,n(["attributes","type"],{attributes:v,type:"visible"})).$convert()):(v=n([],{}),f((O=b.$normalize_text(F,!0))["$include?"](";&"))&&(f(O["$include?"](" >> "))?(h=O.$partition(" >> "),c=a.to_ary(h),O=null==c[0]?e:c[0],L=null==c[2]?e:c[2],h,C=["see",L],t(v,"[]=",a.to_a(C)),C[g(C.length,1)]):f(O["$include?"](" &> "))&&(h=O.$split(" &> "),c=a.to_ary(h),O=null==c[0]?e:c[0],m=q.call(c,1),h,C=["see-also",m],t(v,"[]=",a.to_a(C)),C[g(C.length,1)])),C=["terms",b.$split_simple_csv(O)], +t(v,"[]=",a.to_a(C)),C[g(C.length,1)],E=r(x,"Inline").$new(b,"indexterm",e,n(["attributes"],{attributes:v})).$convert());return f(N)?""+N+E+ma:E}()},z.$$s=this,z.$$arity=0,z)));f(f(d=C)?c["$include?"]("://"):d)&&(c=t(c,"gsub",[r(x,"InlineLinkRx")],(L=function(){var c=L.$$s||this,d,h,w,k=e,l=e,p=e,v=e;if(f((w=(d=u["~"])===e?e:d["$[]"](2))["$start_with?"](r(x,"RS"))))return""+((d=u["~"])===e?e:d["$[]"](1))+w.$slice(1,w.$length())+((d=u["~"])===e?e:d["$[]"](4));d=[(h=u["~"])===e?e:h["$[]"](1),""];var C= +d[0];var m=d[1];d;if(f((d=u["~"])===e?e:d["$[]"](4)))C["$=="]("link:")&&(C=""),f((k=(d=u["~"])===e?e:d["$[]"](4))["$empty?"]())&&(k=e);else{var q=C;if("link:"["$==="](q)||'"'["$==="](q)||"'"["$==="](q))return(d=u["~"])===e?e:d["$[]"](0);q=(d=u["~"])===e?e:d["$[]"](3);if(")"["$==="](q)||"?"["$==="](q)||"!"["$==="](q)){if(w=w.$chop(),f((d=(m=(h=u["~"])===e?e:h["$[]"](3))["$=="](")"))?w["$end_with?"](".","?","!"):(m=(h=u["~"])===e?e:h["$[]"](3))["$=="](")"))&&(m=b(w["$[]"](-1),m),w=w.$chop()),f(w["$end_with?"]("://")))return(d= +u["~"])===e?e:d["$[]"](0)}else if(";"["$==="](q)){if(f(f(d=C["$start_with?"]("<"))?w["$end_with?"](">"):d)?(C=C.$slice(4,C.$length()),w=w.$slice(0,g(w.$length(),4))):f((w=w.$chop())["$end_with?"](")"))?(w=w.$chop(),m=");"):m=";",f(w["$end_with?"]("://")))return(d=u["~"])===e?e:d["$[]"](0)}else if(":"["$==="](q)&&(f((w=w.$chop())["$end_with?"](")"))?(w=w.$chop(),m="):"):m=":",f(w["$end_with?"]("://"))))return(d=u["~"])===e?e:d["$[]"](0)}d=[e,n(["type"],{type:"link"})];q=d[0];var R=d[1];d;f(k)? +(f(k["$include?"](r(x,"R_SB")))&&(l=k=k.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))),f(f(d=oa.$compat_mode()["$!"]())?k["$include?"]("="):d)&&(h=c.$extract_attributes_from_text(k,""),d=a.to_ary(h),k=null==d[0]?e:d[0],q=null==d[1]?e:d[1],h,l=k,p=["id",q["$[]"]("id")],t(R,"[]=",a.to_a(p)),p[g(p.length,1)]),f(k["$end_with?"]("^"))&&(l=k=k.$chop(),f(q)?f(d=q["$[]"]("window"))?d:(p=["window","_blank"],t(q,"[]=",a.to_a(p)),p[g(p.length,1)]):q=n(["window"],{window:"_blank"})),f(f(d=l)?l["$empty?"]():d)&&(k=f(Z["$key?"]("hide-uri-scheme"))? +w.$sub(r(x,"UriSniffRx"),""):w,v=!0)):(k=f(Z["$key?"]("hide-uri-scheme"))?w.$sub(r(x,"UriSniffRx"),""):w,v=!0);f(v)&&(f(q)?(p=["role",f(q["$key?"]("role"))?"bare "+q["$[]"]("role"):"bare"],t(q,"[]=",a.to_a(p)),p[g(p.length,1)]):q=n(["role"],{role:"bare"}));oa.$register("links",(p=["target",w],t(R,"[]=",a.to_a(p)),p[g(p.length,1)]));f(q)&&(p=["attributes",q],t(R,"[]=",a.to_a(p)),p[g(p.length,1)]);return""+C+r(x,"Inline").$new(c,"anchor",k,R).$convert()+m},L.$$s=this,L.$$arity=0,L)));f(f(d=ma)?f(l= +c["$include?"]("link:"))?l:c["$include?"]("ilto:"):d)&&(c=t(c,"gsub",[r(x,"InlineLinkMacroRx")],(E=function(){var c=E.$$s||this,d,h,w=e,k;var l=e;if(f(((d=u["~"])===e?e:d["$[]"](0))["$start_with?"](r(x,"RS"))))return((d=u["~"])===e?e:d["$[]"](0)).$slice(1,((d=u["~"])===e?e:d["$[]"](0)).$length());var p=f(h=(d=u["~"])===e?e:d["$[]"](1))?b("mailto:",w=(d=u["~"])===e?e:d["$[]"](2)):(d=u["~"])===e?e:d["$[]"](2);d=[e,n(["type"],{type:"link"})];var v=d[0];var C=d[1];d;f((k=(d=u["~"])===e?e:d["$[]"](3))["$empty?"]())|| +(f(k["$include?"](r(x,"R_SB")))&&(k=k.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))),f(h)?f(f(d=oa.$compat_mode()["$!"]())?k["$include?"](","):d)&&(l=c.$extract_attributes_from_text(k,""),d=a.to_ary(l),k=null==d[0]?e:d[0],v=null==d[1]?e:d[1],l,l=["id",v["$[]"]("id")],t(C,"[]=",a.to_a(l)),l[g(l.length,1)],f(v["$key?"](2))&&(p=f(v["$key?"](3))?""+p+"?subject="+r(x,"Helpers").$encode_uri_component(v["$[]"](2))+"&body="+r(x,"Helpers").$encode_uri_component(v["$[]"](3)):""+p+"?subject="+r(x,"Helpers").$encode_uri_component(v["$[]"](2)))): +f(f(d=oa.$compat_mode()["$!"]())?k["$include?"]("="):d)&&(l=c.$extract_attributes_from_text(k,""),d=a.to_ary(l),k=null==d[0]?e:d[0],v=null==d[1]?e:d[1],l,l=["id",v["$[]"]("id")],t(C,"[]=",a.to_a(l)),l[g(l.length,1)]),f(k["$end_with?"]("^"))&&(k=k.$chop(),f(v)?f(d=v["$[]"]("window"))?d:(l=["window","_blank"],t(v,"[]=",a.to_a(l)),l[g(l.length,1)]):v=n(["window"],{window:"_blank"})));f(k["$empty?"]())&&(f(h)?k=w:(f(Z["$key?"]("hide-uri-scheme"))?f((k=p.$sub(r(x,"UriSniffRx"),""))["$empty?"]())&&(k=p): +k=p,f(v)?(l=["role",f(v["$key?"]("role"))?"bare "+v["$[]"]("role"):"bare"],t(v,"[]=",a.to_a(l)),l[g(l.length,1)]):v=n(["role"],{role:"bare"})));oa.$register("links",(l=["target",p],t(C,"[]=",a.to_a(l)),l[g(l.length,1)]));f(v)&&(l=["attributes",v],t(C,"[]=",a.to_a(l)),l[g(l.length,1)]);return r(x,"Inline").$new(c,"anchor",k,C).$convert()},E.$$s=this,E.$$arity=0,E)));f(c["$include?"]("@"))&&(c=t(c,"gsub",[r(x,"InlineEmailRx")],(O=function(){var a=O.$$s||this,c,d;if(f((c=u["~"])===e?e:c["$[]"](1)))return((c= +u["~"])===e?e:c["$[]"](1))["$=="](r(x,"RS"))?((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length()):(c=u["~"])===e?e:c["$[]"](0);var g=b("mailto:",d=(c=u["~"])===e?e:c["$[]"](0));oa.$register("links",g);return r(x,"Inline").$new(a,"anchor",d,n(["type","target"],{type:"link",target:g})).$convert()},O.$$s=this,O.$$arity=0,O)));f(f(d=f(l=w)?this.context["$=="]("list_item"):l)?this.parent.$style()["$=="]("bibliography"):d)&&(c=t(c,"sub",[r(x,"InlineBiblioAnchorRx")],(U=function(){var a= +U.$$s||this,b;return r(x,"Inline").$new(a,"anchor",(b=u["~"])===e?e:b["$[]"](2),n(["type","id"],{type:"bibref",id:(b=u["~"])===e?e:b["$[]"](1)})).$convert()},U.$$s=this,U.$$arity=0,U)));f(f(d=f(l=w)?c["$include?"]("[["):l)?d:f(l=ma)?c["$include?"]("or:"):l)&&(c=t(c,"gsub",[r(x,"InlineAnchorRx")],(y=function(){var a=y.$$s||this,b,c,d,g=e;if(f((b=u["~"])===e?e:b["$[]"](1)))return((b=u["~"])===e?e:b["$[]"](0)).$slice(1,((b=u["~"])===e?e:b["$[]"](0)).$length());f(d=(b=u["~"])===e?e:b["$[]"](2))?g=(b= +u["~"])===e?e:b["$[]"](3):(d=(b=u["~"])===e?e:b["$[]"](4),f(f(b=g=(c=u["~"])===e?e:c["$[]"](5))?g["$include?"](r(x,"R_SB")):b)&&(g=g.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))));return r(x,"Inline").$new(a,"anchor",g,n(["type","id"],{type:"ref",id:d})).$convert()},y.$$s=this,y.$$arity=0,y)));f(f(d=f(l=c["$include?"]("&"))?c["$include?"](";&l"):l)?d:f(l=ma)?c["$include?"]("xref:"):l)&&(c=t(c,"gsub",[r(x,"InlineXrefMacroRx")],(W=function(){var c=W.$$s||this,d,h,w=e,l=e,p=e,v,C,m=C=e,q=e;if(f(((d=u["~"])=== +e?e:d["$[]"](0))["$start_with?"](r(x,"RS"))))return((d=u["~"])===e?e:d["$[]"](0)).$slice(1,((d=u["~"])===e?e:d["$[]"](0)).$length());var R=n([],{});if(f(h=(d=u["~"])===e?e:d["$[]"](1))){if(f(h["$include?"](","))){var F=h.$partition(",");d=a.to_ary(F);h=null==d[0]?e:d[0];w=null==d[2]?e:d[2];F;f((w=w.$lstrip())["$empty?"]())&&(w=e)}}else l=!0,h=(d=u["~"])===e?e:d["$[]"](2),f(w=(d=u["~"])===e?e:d["$[]"](3))&&(f(w["$include?"](r(x,"R_SB")))&&(w=w.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))),f(f(d=oa.$compat_mode()["$!"]())? +w["$include?"]("="):d)&&(F=c.$extract_attributes_from_text(w),d=a.to_ary(F),w=null==d[0]?e:d[0],R=null==d[1]?e:d[1],F));f(oa.$compat_mode())?p=h:f(v=h.$index("#"))?f(k(v,0))?(f(k(C=g(g(h.$length(),1),v),0))?(d=[h.$slice(0,v),h.$slice(b(v,1),C)],C=d[0],p=d[1],d):C=h.$chop(),f(l)?f(C["$end_with?"](".adoc"))?m=C=C.$slice(0,g(C.$length(),5)):f(r(x,"Helpers")["$extname?"](C)["$!"]())&&(m=C):m=f(t(C,"end_with?",a.to_a(r(x,"ASCIIDOC_EXTENSIONS").$keys())))?C=C.$slice(0,C.$rindex(".")):C):(d=[h,h.$slice(1, +h.$length())],q=d[0],p=d[1],d):f(l)?f(h["$end_with?"](".adoc"))?m=C=h.$slice(0,g(h.$length(),5)):f(r(x,"Helpers")["$extname?"](h))?C=h:p=h:p=h;f(q)?(h=p,f(f(d=c.$logger()["$info?"]())?oa.$catalog()["$[]"]("refs")["$[]"](h)["$!"]():d)&&c.$logger().$info("possible invalid reference: "+h)):f(C)?f(f(d=m)?f(F=oa.$attributes()["$[]"]("docname")["$=="](C))?F:oa.$catalog()["$[]"]("includes")["$[]"](C):d)?f(p)?(d=[p,e,"#"+p],h=d[0],C=d[1],q=d[2],d,f(f(d=c.$logger()["$info?"]())?oa.$catalog()["$[]"]("refs")["$[]"](h)["$!"](): +d)&&c.$logger().$info("possible invalid reference: "+h)):(d=[e,e,"#"],h=d[0],C=d[1],q=d[2],d):(d=[C,""+(f(F=oa.$attributes()["$[]"]("relfileprefix"))?F:"")+C+(f(m)?oa.$attributes().$fetch("relfilesuffix",oa.$outfilesuffix()):"")],h=d[0],C=d[1],d,f(p)?(d=[""+h+"#"+p,""+C+"#"+p],h=d[0],q=d[1],d):q=C):f(f(d=oa.$compat_mode())?d:r(x,"Compliance").$natural_xrefs()["$!"]())?(d=[p,"#"+p],h=d[0],q=d[1],d,f(f(d=c.$logger()["$info?"]())?oa.$catalog()["$[]"]("refs")["$[]"](h)["$!"]():d)&&c.$logger().$info("possible invalid reference: "+ +h)):f(oa.$catalog()["$[]"]("refs")["$[]"](p))?(d=[p,"#"+p],h=d[0],q=d[1],d):f(f(d=f(F=p["$include?"](" "))?F:p.$downcase()["$!="](p))?h=oa.$resolve_id(p):d)?(d=[h,"#"+h],p=d[0],q=d[1],d):(d=[p,"#"+p],h=d[0],q=d[1],d,f(c.$logger()["$info?"]())&&c.$logger().$info("possible invalid reference: "+h));d=["path",C];t(R,"[]=",a.to_a(d));d[g(d.length,1)];d=["fragment",p];t(R,"[]=",a.to_a(d));d[g(d.length,1)];d=["refid",h];t(R,"[]=",a.to_a(d));d[g(d.length,1)];return r(x,"Inline").$new(c,"anchor",w,n(["type", +"target","attributes"],{type:"xref",target:q,attributes:R})).$convert()},W.$$s=this,W.$$arity=0,W)));f(f(d=ma)?c["$include?"]("tnote"):d)&&(c=t(c,"gsub",[r(x,"InlineFootnoteMacroRx")],(Y=function(){var b=Y.$$s||this,c,d,g,h,w=e,k=e,l=d=e,p=d=e;if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());if(f((c=u["~"])===e?e:c["$[]"](1)))if(f((c=u["~"])===e?e:c["$[]"](3)))d=((g=u["~"])===e?e:g["$[]"](3)).$split(",", +2),c=a.to_ary(d),w=null==c[0]?e:c[0],k=null==c[1]?e:c[1],d,f(oa.$compat_mode())||b.$logger().$warn("found deprecated footnoteref macro: "+((c=u["~"])===e?e:c["$[]"](0))+"; use footnote macro with target instead");else return(c=u["~"])===e?e:c["$[]"](0);else w=(c=u["~"])===e?e:c["$[]"](2),k=(c=u["~"])===e?e:c["$[]"](3);if(f(w))f(d=t(oa.$footnotes(),"find",[],(h=function(a){null==a&&(a=e);return a.$id()["$=="](w)},h.$$s=b,h.$$arity=1,h)))?(c=[d.$index(),d.$text()],l=c[0],k=c[1],c,c=["xref",w,e],d=c[0], +p=c[1],w=c[2]):f(k)?(k=b.$restore_passthroughs(b.$normalize_text(k,!0,!0)),l=oa.$counter("footnote-number"),oa.$register("footnotes",m(r(x,"Document"),"Footnote").$new(l,w,k)),c=["ref",e],d=c[0],p=c[1]):(b.$logger().$warn("invalid footnote reference: "+w),c=["xref",w,w,e],d=c[0],p=c[1],k=c[2],w=c[3]),c;else if(f(k))k=b.$restore_passthroughs(b.$normalize_text(k,!0,!0)),l=oa.$counter("footnote-number"),oa.$register("footnotes",m(r(x,"Document"),"Footnote").$new(l,w,k)),d=p=e;else return(c=u["~"])=== +e?e:c["$[]"](0);return r(x,"Inline").$new(b,"footnote",k,n(["attributes","id","target","type"],{attributes:n(["index"],{index:l}),id:w,target:p,type:d})).$convert()},Y.$$s=this,Y.$$arity=0,Y)));return c},W.$$arity=1);a.def(d,"$sub_post_replacements",B=function(a){var b,c,d,h=e,k=e;null==this.attributes&&(this.attributes=e);null==this.document&&(this.document=e);if(f(f(b=this.attributes["$[]"]("hardbreaks-option"))?b:this.document.$attributes()["$[]"]("hardbreaks-option"))){h=a.$split(r(x,"LF"),-1); +if(f(l(h.$size(),2)))return a;k=h.$pop();return t(h,"map",[],(c=function(a){var b=c.$$s||this;null==a&&(a=e);return r(x,"Inline").$new(b,"break",f(a["$end_with?"](r(x,"HARD_LINE_BREAK")))?a.$slice(0,g(a.$length(),2)):a,n(["type"],{type:"line"})).$convert()},c.$$s=this,c.$$arity=1,c))["$<<"](k).$join(r(x,"LF"))}return f(f(b=a["$include?"](r(x,"PLUS")))?a["$include?"](r(x,"HARD_LINE_BREAK")):b)?t(a,"gsub",[r(x,"HardLineBreakRx")],(d=function(){var a=d.$$s||this,b;return r(x,"Inline").$new(a,"break", +(b=u["~"])===e?e:b["$[]"](1),n(["type"],{type:"line"})).$convert()},d.$$s=this,d.$$arity=0,d)):a},B.$$arity=1);a.def(d,"$sub_source",D=function(a,b){return f(b)?this.$sub_callouts(this.$sub_specialchars(a)):this.$sub_specialchars(a)},D.$$arity=2);a.def(d,"$sub_callouts",pa=function(a){var c,d=e,g=e;d=f(this["$attr?"]("line-comment"))?r(x,"CalloutSourceRxMap")["$[]"](this.$attr("line-comment")):r(x,"CalloutSourceRx");g=0;return t(a,"gsub",[d],(c=function(){var a=c.$$s||this,d,h;null==a.document&&(a.document= +e);return f((d=u["~"])===e?e:d["$[]"](2))?((d=u["~"])===e?e:d["$[]"](0)).$sub(r(x,"RS"),""):r(x,"Inline").$new(a,"callout",((d=u["~"])===e?e:d["$[]"](4))["$=="](".")?(g=b(g,1)).$to_s():(d=u["~"])===e?e:d["$[]"](4),n(["id","attributes"],{id:a.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:f(d=(h=u["~"])===e?e:h["$[]"](1))?d:((h=u["~"])===e?e:h["$[]"](3))["$=="]("--")?["\x3c!--","--\x3e"]:e})})).$convert()},c.$$s=this,c.$$arity=0,c))},pa.$$arity=1);a.def(d,"$highlight_source",A= +function(b,c){var d,g,h=e,k=e,p,v=e,m=e;null==this.document&&(this.document=e);null==this.passthroughs&&(this.passthroughs=e);if(!f(f(d=h=this.document.$syntax_highlighter())?h["$highlight?"]():d))return this.$sub_source(b,c);if(f(c)){var q=this.$extract_callouts(b);d=a.to_ary(q);b=null==d[0]?e:d[0];k=null==d[1]?e:d[1];q}c=this.document.$attributes();var t=h.$name();f(f(d=p=f(this["$attr?"]("linenums"))?(f(q=c["$[]"](""+t+"-linenums-mode"))?q:"table").$to_sym():e)?l(v=this.$attr("start",1).$to_i(), +1):d)&&(v=1);f(this["$attr?"]("highlight"))&&(m=this.$resolve_lines_to_highlight(b,this.$attr("highlight"),v));q=h.$highlight(this,b,this.$attr("language"),n("callouts css_mode highlight_lines number_lines start_line_number style".split(" "),{callouts:k,css_mode:(f(g=c["$[]"](""+t+"-css"))?g:"class").$to_sym(),highlight_lines:m,number_lines:p,start_line_number:v,style:c["$[]"](""+t+"-style")}));d=a.to_ary(q);b=null==d[0]?e:d[0];d=null==d[1]?e:d[1];q;f(this.passthroughs["$empty?"]())||(b=b.$gsub(r(x, +"HighlightedPassSlotRx"),""+r(x,"PASS_START")+"\\1"+r(x,"PASS_END")));return f(k["$nil_or_empty?"]())?b:this.$restore_callouts(b,k,d)},A.$$arity=2);a.def(d,"$resolve_lines_to_highlight",ra=function(c,d,n){var h,k,p=e,v=e;null==n&&(n=e);p=[];f(d["$include?"](" "))&&(d=d.$delete(" "));t(f(d["$include?"](","))?d.$split(","):d.$split(";"),"map",[],(h=function(d){var n,h=e;var k=e;null==d&&(d=e);f(d["$start_with?"]("!"))&&(d=d.$slice(1,d.$length()),h=!0);if(f(n=f(d["$include?"](".."))?"..":f(d["$include?"]("-"))? +"-":e)){n=d.$partition(n);d=a.to_ary(n);k=null==d[0]?e:d[0];var v=null==d[2]?e:d[2];n;f(f(d=v["$empty?"]())?d:l(v=v.$to_i(),0))&&(v=b(c.$count(r(x,"LF")),1));return f(h)?p=g(p,a.Range.$new(k.$to_i(),v,!1).$to_a()):p=p["$|"](a.Range.$new(k.$to_i(),v,!1).$to_a())}return f(h)?p.$delete(d.$to_i()):f(p["$include?"](k=d.$to_i())["$!"]())?p["$<<"](k):e},h.$$s=this,h.$$arity=1,h));(v=f(n)?g(n,1):0)["$=="](0)||(p=t(p,"map",[],(k=function(a){null==a&&(a=e);return g(a,v)},k.$$s=this,k.$$arity=1,k)));return p.$sort()}, +ra.$$arity=-3);a.def(d,"$extract_passthroughs",I=function(b){var c,d,h,l,v,m=e,q=e,R=e,F=e,z=e;null==this.document&&(this.document=e);null==this.passthroughs&&(this.passthroughs=e);m=this.document.$compat_mode();q=this.passthroughs;f(f(c=f(d=b["$include?"]("++"))?d:b["$include?"]("$$"))?c:b["$include?"]("ss:"))&&(b=t(b,"gsub",[r(x,"InlinePassMacroRx")],(h=function(){var b=h.$$s||this,c,d,l,v,w=e,C=e,R=e,F=l=e;if(f(d=(c=u["~"])===e?e:c["$[]"](4))){if(f(f(c=m)?d["$=="]("++"):c))return(f((c=u["~"])=== +e?e:c["$[]"](2))?""+((c=u["~"])===e?e:c["$[]"](1))+"["+((c=u["~"])===e?e:c["$[]"](2))+"]"+((c=u["~"])===e?e:c["$[]"](3)):""+((c=u["~"])===e?e:c["$[]"](1))+((c=u["~"])===e?e:c["$[]"](3)))+"++"+b.$extract_passthroughs((c=u["~"])===e?e:c["$[]"](5))+"++";if(f(l=(c=u["~"])===e?e:c["$[]"](2))){if(f(k(v=((c=u["~"])===e?e:c["$[]"](3)).$length(),0)))return""+((c=u["~"])===e?e:c["$[]"](1))+"["+l+"]"+p(r(x,"RS"),g(v,1))+d+((c=u["~"])===e?e:c["$[]"](5))+d;((c=u["~"])===e?e:c["$[]"](1))["$=="](r(x,"RS"))?w="["+ +l+"]":(f((c=d["$=="]("++"))?l["$end_with?"]("x-"):d["$=="]("++"))&&(C=!0,l=l.$slice(0,g(l.$length(),2))),R=b.$parse_quoted_text_attributes(l))}else if(f(k(v=((c=u["~"])===e?e:c["$[]"](3)).$length(),0)))return""+p(r(x,"RS"),g(v,1))+d+((c=u["~"])===e?e:c["$[]"](5))+d;l=d["$=="]("+++")?[]:r(x,"BASIC_SUBS");b=f(R)?f(C)?[F=q.$size(),n(["text","subs","type","attributes"],{text:(c=u["~"])===e?e:c["$[]"](5),subs:r(x,"NORMAL_SUBS"),type:"monospaced",attributes:R})]:[F=q.$size(),n(["text","subs","type","attributes"], +{text:(c=u["~"])===e?e:c["$[]"](5),subs:l,type:"unquoted",attributes:R})]:[F=q.$size(),n(["text","subs"],{text:(c=u["~"])===e?e:c["$[]"](5),subs:l})]}else{if(((c=u["~"])===e?e:c["$[]"](6))["$=="](r(x,"RS")))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());b=f(l=(c=u["~"])===e?e:c["$[]"](7))?[F=q.$size(),n(["text","subs"],{text:b.$normalize_text((c=u["~"])===e?e:c["$[]"](8),e,!0),subs:b.$resolve_pass_subs(l)})]:[F=q.$size(),n(["text"],{text:b.$normalize_text((c= +u["~"])===e?e:c["$[]"](8),e,!0)})]}t(q,"[]=",a.to_a(b));b[g(b.length,1)];return""+(f(c=w)?c:"")+r(x,"PASS_START")+F+r(x,"PASS_END")},h.$$s=this,h.$$arity=0,h)));d=r(x,"InlinePassRx")["$[]"](m);c=a.to_ary(d);R=null==c[0]?e:c[0];F=null==c[1]?e:c[1];z=null==c[2]?e:c[2];d;f(f(c=b["$include?"](R))?c:f(d=F)?b["$include?"](F):d)&&(b=t(b,"gsub",[z],(l=function(){var b=l.$$s||this,c,d,h=e,k=e,w=e;var p=(c=u["~"])===e?e:c["$[]"](1);var v=(c=u["~"])===e?e:c["$[]"](2);f((d=(c=u["~"])===e?e:c["$[]"](3))["$start_with?"](r(x, +"RS")))&&(h=r(x,"RS"));var R=(c=u["~"])===e?e:c["$[]"](4);var F=(c=u["~"])===e?e:c["$[]"](5);f(m)?k=!0:f(k=f(c=v)?v["$end_with?"]("x-"):c)&&(v=v.$slice(0,g(v.$length(),2)));if(f(v)){if(f(R["$=="]("`")?k["$!"]():R["$=="]("`")))return b.$extract_inner_passthrough(F,""+p+"["+v+"]"+h);if(f(h))return""+p+"["+v+"]"+d.$slice(1,d.$length());p["$=="](r(x,"RS"))?p="["+v+"]":w=b.$parse_quoted_text_attributes(v)}else{if(f(R["$=="]("`")?k["$!"]():R["$=="]("`")))return b.$extract_inner_passthrough(F,""+p+h);if(f(h))return""+ +p+d.$slice(1,d.$length())}f(m)?F=[b=q.$size(),n(["text","subs","attributes","type"],{text:F,subs:r(x,"BASIC_SUBS"),attributes:w,type:"monospaced"})]:f(w)?f(k)?(c=R["$=="]("`")?r(x,"BASIC_SUBS"):r(x,"NORMAL_SUBS"),F=[b=q.$size(),n(["text","subs","attributes","type"],{text:F,subs:c,attributes:w,type:"monospaced"})]):F=[b=q.$size(),n(["text","subs","attributes","type"],{text:F,subs:r(x,"BASIC_SUBS"),attributes:w,type:"unquoted"})]:F=[b=q.$size(),n(["text","subs"],{text:F,subs:r(x,"BASIC_SUBS")})];t(q, +"[]=",a.to_a(F));F[g(F.length,1)];return""+p+r(x,"PASS_START")+b+r(x,"PASS_END")},l.$$s=this,l.$$arity=0,l)));f(f(c=b["$include?"](":"))?f(d=b["$include?"]("stem:"))?d:b["$include?"]("math:"):c)&&(b=t(b,"gsub",[r(x,"InlineStemMacroRx")],(v=function(){var b=v.$$s||this,c,d;null==b.document&&(b.document=e);if(f(((c=u["~"])===e?e:c["$[]"](0))["$start_with?"](r(x,"RS"))))return((c=u["~"])===e?e:c["$[]"](0)).$slice(1,((c=u["~"])===e?e:c["$[]"](0)).$length());(d=((c=u["~"])===e?e:c["$[]"](1)).$to_sym())["$=="]("stem")&& +(d=r(x,"STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym());var h=(c=u["~"])===e?e:c["$[]"](2);var k=b.$normalize_text((c=u["~"])===e?e:c["$[]"](3),e,!0);f(f(c=d["$=="]("latexmath")?k["$start_with?"]("$"):d["$=="]("latexmath"))?k["$end_with?"]("$"):c)&&(k=k.$slice(1,g(k.$length(),2)));h=f(h)?b.$resolve_pass_subs(h):f(b.document["$basebackend?"]("html"))?r(x,"BASIC_SUBS"):e;d=[b=q.$size(),n(["text","subs","type"],{text:k,subs:h,type:d})];t(q,"[]=",a.to_a(d));d[g(d.length, +1)];return""+r(x,"PASS_START")+b+r(x,"PASS_END")},v.$$s=this,v.$$arity=0,v)));return b},I.$$arity=1);a.def(d,"$restore_passthroughs",G=function(a){var b,c=e;null==this.passthroughs&&(this.passthroughs=e);c=this.passthroughs;return t(a,"gsub",[r(x,"PassSlotRx")],(b=function(){var d=b.$$s||this,g,h,k,l,p=e;if(f(h=c["$[]"](((g=u["~"])===e?e:g["$[]"](1)).$to_i())))return g=d.$apply_subs(h["$[]"]("text"),h["$[]"]("subs")),f(k=h["$[]"]("type"))&&(f(l=h["$[]"]("attributes"))&&(p=l["$[]"]("id")),g=r(x,"Inline").$new(d, +"quoted",g,n(["type","id","attributes"],{type:k,id:p,attributes:l})).$convert()),f(g["$include?"](r(x,"PASS_START")))?d.$restore_passthroughs(g):g;d.$logger().$error("unresolved passthrough detected: "+a);return"??pass??"},b.$$s=this,b.$$arity=0,b))},G.$$arity=1);a.def(d,"$resolve_subs",J=function(a,c,d,n){var h,l=e,p=e,v=e,m=e;null==c&&(c="block");null==d&&(d=e);null==n&&(n=e);if(f(a["$nil_or_empty?"]()))return e;l=e;f(a["$include?"](" "))&&(a=a.$delete(" "));p=r(x,"SubModifierSniffRx")["$match?"](a); +t(a.$split(","),"each",[],(h=function(a){var n,h,k=e;null==a&&(a=e);var v=e;f(p)&&((n=a.$chr())["$=="]("+")?(v="append",a=a.$slice(1,a.$length())):n["$=="]("-")?(v="remove",a=a.$slice(1,a.$length())):f(a["$end_with?"]("+"))&&(v="prepend",a=a.$chop()));a=a.$to_sym();f((n=c["$=="]("inline"))?f(h=a["$=="]("verbatim"))?h:a["$=="]("v"):c["$=="]("inline"))?a=r(x,"BASIC_SUBS"):f(r(x,"SUB_GROUPS")["$key?"](a))?a=r(x,"SUB_GROUPS")["$[]"](a):f(f(n=c["$=="]("inline")?a.$length()["$=="](1):c["$=="]("inline"))? +r(x,"SUB_HINTS")["$key?"](a):n)?(a=r(x,"SUB_HINTS")["$[]"](a),a=f(k=r(x,"SUB_GROUPS")["$[]"](a))?k:[a]):a=[a];if(f(v))return l=f(n=l)?n:f(d)?d.$drop(0):[],"append"["$==="](v)?l=b(l,a):"prepend"["$==="](v)?l=b(a,l):"remove"["$==="](v)?l=g(l,a):e;l=f(n=l)?n:[];return l=b(l,a)},h.$$s=this,h.$$arity=1,h));if(!f(l))return e;v=l["$&"](r(x,"SUB_OPTIONS")["$[]"](c));f(g(l,v)["$empty?"]())||(m=g(l,v),this.$logger().$warn("invalid substitution type"+(f(k(m.$size(),1))?"s":"")+(f(n)?" for ":"")+n+": "+m.$join(", "))); +return v},J.$$arity=-2);a.def(d,"$resolve_block_subs",K=function(a,b,e){return this.$resolve_subs(a,"block",b,e)},K.$$arity=3);a.def(d,"$resolve_pass_subs",H=function(a){return this.$resolve_subs(a,"inline",e,"passthrough macro")},H.$$arity=1);a.def(d,"$expand_subs",aa=function(a,c){var d,g,n=this,h=e,k=e;null==c&&(c=e);return function(){h=a;return m("::","Symbol")["$==="](h)?a["$=="]("none")?e:f(d=r(x,"SUB_GROUPS")["$[]"](a))?d:[a]:m("::","Array")["$==="](h)?(k=[],t(a,"each",[],(g=function(a){var c; +null==a&&(a=e);return a["$=="]("none")?e:f(c=r(x,"SUB_GROUPS")["$[]"](a))?k=b(k,c):k["$<<"](a)},g.$$s=n,g.$$arity=1,g)),f(k["$empty?"]())?e:k):n.$resolve_subs(a,"inline",e,c)}()},aa.$$arity=-2);a.def(d,"$commit_subs",na=function(){var b,c,d,n,h=e,k=e,l=e;null==this.default_subs&&(this.default_subs=e);null==this.content_model&&(this.content_model=e);null==this.context&&(this.context=e);null==this.subs&&(this.subs=e);null==this.attributes&&(this.attributes=e);null==this.style&&(this.style=e);null== +this.document&&(this.document=e);if(!f(n=this.default_subs))if(n=this.content_model,"simple"["$==="](n))n=r(x,"NORMAL_SUBS");else if("verbatim"["$==="](n))n=this.context["$=="]("verse")?r(x,"NORMAL_SUBS"):r(x,"VERBATIM_SUBS");else if("raw"["$==="](n))n=this.context["$=="]("stem")?r(x,"BASIC_SUBS"):r(x,"NO_SUBS");else return this.subs;f(h=this.attributes["$[]"]("subs"))?this.subs=f(b=this.$resolve_block_subs(h,n,this.context))?b:[]:this.subs=n.$drop(0);f(f(b=f(c=f(d=this.context["$=="]("listing")? +this.style["$=="]("source"):this.context["$=="]("listing"))?k=this.document.$syntax_highlighter():d)?k["$highlight?"]():c)?l=this.subs.$index("specialcharacters"):b)&&(b=[l,"highlight"],t(this.subs,"[]=",a.to_a(b)),b[g(b.length,1)]);return e},na.$$arity=0);a.def(d,"$parse_attributes",qa=function(a,b,c){var d,g=e,h=e;null==this.document&&(this.document=e);null==b&&(b=[]);null==c&&(c=n([],{}));if(f(f(a)?a["$empty?"]():!0))return n([],{});f(c["$[]"]("unescape_input"))&&(a=this.$normalize_text(a,!0,!0)); +f(f(d=c["$[]"]("sub_input"))?a["$include?"](r(x,"ATTR_REF_HEAD")):d)&&(a=this.document.$sub_attributes(a));f(c["$[]"]("sub_result"))&&(g=this);return f(h=c["$[]"]("into"))?r(x,"AttributeList").$new(a,g).$parse_into(h,b):r(x,"AttributeList").$new(a,g).$parse(b)},qa.$$arity=-2);d.$private();a.def(d,"$extract_attributes_from_text",ba=function(a,b){var c=e,d=e;null==b&&(b=e);var g=f(a["$include?"](r(x,"LF")))?a.$tr(r(x,"LF")," "):a;return f(c=(d=r(x,"AttributeList").$new(g,this).$parse())["$[]"](1))? +c["$=="](g)?[a,d.$clear()]:[c,d]:[b,d]},ba.$$arity=-2);a.def(d,"$extract_callouts",M=function(c){var d,h=e,k=e,l=e,p=e,v=e;h=n([],{});k=l=0;p=e;v=f(this["$attr?"]("line-comment"))?r(x,"CalloutExtractRxMap")["$[]"](this.$attr("line-comment")):r(x,"CalloutExtractRx");c=t(c.$split(r(x,"LF"),-1),"map",[],(d=function(c){var n=d.$$s||this,m;null==c&&(c=e);l=b(l,1);return t(c,"gsub",[v],(m=function(){var c,d,n=e;if(f((c=u["~"])===e?e:c["$[]"](2)))return((c=u["~"])===e?e:c["$[]"](0)).$sub(r(x,"RS"),"");(f(c= +h["$[]"](l))?c:(n=[l,[]],t(h,"[]=",a.to_a(n)),n[g(n.length,1)]))["$<<"]([f(c=(d=u["~"])===e?e:d["$[]"](1))?c:((d=u["~"])===e?e:d["$[]"](3))["$=="]("--")?["\x3c!--","--\x3e"]:e,((c=u["~"])===e?e:c["$[]"](4))["$=="](".")?(k=b(k,1)).$to_s():(c=u["~"])===e?e:c["$[]"](4)]);p=l;return""},m.$$s=n,m.$$arity=0,m))},d.$$s=this,d.$$arity=1,d)).$join(r(x,"LF"));f(p)?p["$=="](l)&&(c=""+c+r(x,"LF")):h=e;return[c,h]},M.$$arity=1);a.def(d,"$restore_callouts",P=function(c,d,g){var h,k=e,l=e;null==g&&(g=e);f(g)?(k= +c.$slice(0,g),c=c.$slice(g,c.$length())):k="";l=0;return b(k,t(c.$split(r(x,"LF"),-1),"map",[],(h=function(c){var g=h.$$s||this,k,p,v=k=e;var m=e;null==g.document&&(g.document=e);null==c&&(c=e);return f(k=d.$delete(l=b(l,1)))?k.$size()["$=="](1)?(k=k["$[]"](0),m=a.to_ary(k),v=null==m[0]?e:m[0],m=null==m[1]?e:m[1],k,""+c+r(x,"Inline").$new(g,"callout",m,n(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:v})})).$convert()):""+c+t(k,"map",[],(p=function(a, +b){var c=p.$$s||this;null==c.document&&(c.document=e);null==a&&(a=e);null==b&&(b=e);return r(x,"Inline").$new(c,"callout",b,n(["id","attributes"],{id:c.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:a})})).$convert()},p.$$s=g,p.$$arity=2,p)).$join(" "):c},h.$$s=this,h.$$arity=1,h)).$join(r(x,"LF")))},P.$$arity=-3);a.def(d,"$extract_inner_passthrough",Q=function(b,c){var d,h;null==this.passthroughs&&(this.passthroughs=e);if(f(f(d=f(h=b["$end_with?"]("+"))?b["$start_with?"]("+", +"\\+"):h)?r(x,"SinglePlusInlinePassRx")["$=~"](b):d)){if(f((d=u["~"])===e?e:d["$[]"](1)))return""+c+"`+"+((d=u["~"])===e?e:d["$[]"](2))+"+`";b=[h=this.passthroughs.$size(),n(["text","subs"],{text:(d=u["~"])===e?e:d["$[]"](2),subs:r(x,"BASIC_SUBS")})];t(this.passthroughs,"[]=",a.to_a(b));b[g(b.length,1)];return""+c+"`"+r(x,"PASS_START")+h+r(x,"PASS_END")+"`"}return""+c+"`"+b+"`"},Q.$$arity=2);a.def(d,"$convert_quoted_text",la=function(a,b,c){var d=e,g=e,h=e,k=e;if(f(a["$[]"](0)["$start_with?"](r(x, +"RS"))))if(f(c["$=="]("constrained")?d=a["$[]"](2):c["$=="]("constrained")))g="["+d+"]";else return a["$[]"](0).$slice(1,a["$[]"](0).$length());if(c["$=="]("constrained")){if(f(g))return""+g+r(x,"Inline").$new(this,"quoted",a["$[]"](3),n(["type"],{type:b})).$convert();f(c=a["$[]"](2))&&(h=(k=this.$parse_quoted_text_attributes(c))["$[]"]("id"),b["$=="]("mark")&&(b="unquoted"));return""+a["$[]"](1)+r(x,"Inline").$new(this,"quoted",a["$[]"](3),n(["type","id","attributes"],{type:b,id:h,attributes:k})).$convert()}f(c= +a["$[]"](1))&&(h=(k=this.$parse_quoted_text_attributes(c))["$[]"]("id"),b["$=="]("mark")&&(b="unquoted"));return r(x,"Inline").$new(this,"quoted",a["$[]"](2),n(["type","id","attributes"],{type:b,id:h,attributes:k})).$convert()},la.$$arity=3);a.def(d,"$do_replacement",va=function(a,e,c){var d;return f((d=a["$[]"](0))["$include?"](r(x,"RS")))?d.$sub(r(x,"RS"),""):"none"["$==="](c)?e:"bounding"["$==="](c)?b(b(a["$[]"](1),e),a["$[]"](2)):b(a["$[]"](1),e)},va.$$arity=3);r(x,"RUBY_ENGINE")["$=="]("opal")|| +e;a.def(d,"$parse_quoted_text_attributes",ha=function(c){var d;f(c["$include?"](r(x,"ATTR_REF_HEAD")))&&(c=this.$sub_attributes(c));f(c["$include?"](","))&&(c=c.$slice(0,c.$index(",")));if(f((c=c.$strip())["$empty?"]()))return n([],{});if(f(f(d=c["$start_with?"](".","#"))?r(x,"Compliance").$shorthand_property_syntax():d)){var h=c.$partition("#");d=a.to_ary(h);c=null==d[0]?e:d[0];d=null==d[2]?e:d[2];h;var l=n([],{});if(f(d["$empty?"]()))f(k(c.$length(),1))&&(h=["role",c.$tr("."," ").$lstrip()],t(l, +"[]=",a.to_a(h)),h[g(h.length,1)]);else{h=d.$partition(".");d=a.to_ary(h);var p=null==d[0]?e:d[0];d=null==d[2]?e:d[2];h;f(p["$empty?"]())||(h=["id",p],t(l,"[]=",a.to_a(h)),h[g(h.length,1)]);f(d["$empty?"]())?f(k(c.$length(),1))&&(h=["role",c.$tr("."," ").$lstrip()],t(l,"[]=",a.to_a(h)),h[g(h.length,1)]):(h=f(k(c.$length(),1))?["role",b(b(c,"."),d).$tr("."," ").$lstrip()]:["role",d.$tr("."," ")],t(l,"[]=",a.to_a(h)),h[g(h.length,1)])}return l}return n(["role"],{role:c})},ha.$$arity=1);a.def(d,"$normalize_text", +Aa=function(a,b,c){var d;null==b&&(b=e);null==c&&(c=e);f(a["$empty?"]())||(f(b)&&(a=a.$strip().$tr(r(x,"LF")," ")),f(f(d=c)?a["$include?"](r(x,"R_SB")):d)&&(a=a.$gsub(r(x,"ESC_R_SB"),r(x,"R_SB"))));return a},Aa.$$arity=-2);a.def(d,"$split_simple_csv",Ka=function(a){var c,d,g=e,h=e,n=e;return f(a["$empty?"]())?[]:f(a["$include?"]('"'))?(g=[],h="",n=e,t(a,"each_char",[],(c=function(a){var c=e;null==a&&(a=e);return function(){c=a;if(","["$==="](c)){if(f(n))return h=b(h,a);g["$<<"](h.$strip());return h= +""}return'"'["$==="](c)?n=n["$!"]():h=b(h,a)}()},c.$$s=this,c.$$arity=1,c)),g["$<<"](h.$strip())):t(a.$split(","),"map",[],(d=function(a){null==a&&(a=e);return a.$strip()},d.$$s=this,d.$$arity=1,d))},Ka.$$arity=1)})(d[0],d)}(h[0],h)};Opal.modules["asciidoctor/version"]=function(a){var b=[],g=a.module;b=[g(b[0],"Asciidoctor")].concat(b);a.const_set(b[0],"VERSION","2.0.17")};Opal.modules["asciidoctor/abstract_node"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)} +function g(a,b){return"number"===typeof a&&"number"===typeof b?a")+": "+(q(c=b["$[]"]("label"))?c:"file")+" does not exist or cannot be read: "+a);return l},la.$$arity=-2);a.def(c,"$read_contents",va=function(b,c){var e,f,g,n,k,v=l,x=l,m=l;null==c&&(c=r([],{}));v=this.document;if(q(q(e=h(d,"Helpers")["$uriish?"](b))?e:q(f=q(g=x=c["$[]"]("start"))?h(d,"Helpers")["$uriish?"](x):g)?b=v.$path_resolver().$web_path(b,x):f))if(q(v["$attr?"]("allow-uri-read"))){q(v["$attr?"]("cache-uri"))&& +h(d,"Helpers").$require_library("open-uri/cached","open-uri-cached");try{m=q(c["$[]"]("normalize"))?h(d,"Helpers").$prepare_source_string(t(p("::","OpenURI"),"open_uri",[b,h(d,"URI_READ_MODE")],(n=function(a){null==a&&(a=l);return a.$read()},n.$$s=this,n.$$arity=1,n))).$join(h(d,"LF")):t(p("::","OpenURI"),"open_uri",[b,h(d,"URI_READ_MODE")],(k=function(a){null==a&&(a=l);return a.$read()},k.$$s=this,k.$$arity=1,k))}catch(za){if(a.rescue(za,[h(d,"StandardError")]))try{q(c.$fetch("warn_on_failure",!0))&& +this.$logger().$warn("could not retrieve contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" at URI: "+b)}finally{a.pop_exception()}else throw za;}}else q(c.$fetch("warn_on_failure",!0))&&this.$logger().$warn("cannot retrieve contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" at URI: "+b+" (allow-uri-read attribute not enabled)");else b=this.$normalize_system_path(b,c["$[]"]("start"),l,r(["target_name"],{target_name:q(e=c["$[]"]("label"))?e:"asset"})),m=this.$read_asset(b,r(["normalize","warn_on_failure", +"label"],{normalize:c["$[]"]("normalize"),warn_on_failure:c.$fetch("warn_on_failure",!0),label:c["$[]"]("label")}));q(q(e=q(f=m)?c["$[]"]("warn_if_empty"):f)?m["$empty?"]():e)&&this.$logger().$warn("contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" is empty: "+b);return m},va.$$arity=-2);return(a.def(c,"$is_uri?",ha=function(a){return h(d,"Helpers")["$uriish?"](a)},ha.$$arity=1),l)&&"is_uri?"})(d[0],null,d)}(k[0],k)};Opal.modules["asciidoctor/abstract_block"]=function(a){function b(a,b){return"number"=== +typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var k=[],l=a.nil,p=a.const_get_qualified,h=a.const_get_relative,e=a.module,q=a.klass,r=a.hash2,m=a.send,t=a.truthy;a.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 $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 $counter $numeral= $numeral $caption= $int_to_roman $each $assign_numeral $reindex_sections $protected $has_role? $raise $header? $!= $flatten $head $rows $merge $body $foot $style $inner_document".split(" ")); +return function(d,c){d=[e(d,"Asciidoctor")].concat(c);(function(c,$super,e){c=q(c,$super,"AbstractBlock");var d=[c].concat(e),f,n,k,v,u,z,F,E,y,O,T,B,D,U,A,ja,G,ra,I,J,K,H,aa,M,na,qa,P,Q,S,Ra;c.$$prototype.source_location=c.$$prototype.document=c.$$prototype.attributes=c.$$prototype.blocks=c.$$prototype.numeral=c.$$prototype.context=c.$$prototype.parent=c.$$prototype.caption=c.$$prototype.style=c.$$prototype.converted_title=c.$$prototype.title=c.$$prototype.subs=c.$$prototype.next_section_index=c.$$prototype.next_section_ordinal= +c.$$prototype.id=c.$$prototype.header=l;c.$attr_reader("blocks");c.$attr_writer("caption");c.$attr_accessor("content_model");c.$attr_accessor("level");c.$attr_accessor("numeral");c.$attr_accessor("source_location");c.$attr_accessor("style");c.$attr_reader("subs");a.def(c,"$initialize",f=function(b,c,e){var g,n=f.$$p,k;n&&(f.$$p=null);var p=0;var v=arguments.length;for(k=Array(v);px:x["$<"](2);if(m(x))return h["$[]"](0);for(;m(m(b=l=h["$[]"](0))?l.$rstrip()["$empty?"]():b);)h.$shift();for(;m(m(b=r=h["$[]"](-1))?r.$rstrip()["$empty?"]():b);)h.$pop();return h.$join(p(g,"LF"))}e.content_model["$=="]("empty")||e.$logger().$warn("Unknown content model '"+e.content_model+"' for block: "+e);return k}()},n.$$arity=0);a.def(c,"$source",v=function(){return this.lines.$join(p(g,"LF"))},v.$$arity=0);return(a.def(c,"$to_s",t=function(){var a=this.content_model["$=="]("compound")? +"blocks: "+this.blocks.$size():"lines: "+this.lines.$size();return"#<"+this.$class()+"@"+this.$object_id()+" {context: "+this.context.$inspect()+", content_model: "+this.content_model.$inspect()+", style: "+this.style.$inspect()+", "+a+"}>"},t.$$arity=0),k)&&"to_s"})(d[0],p(d,"AbstractBlock"),d)}(g[0],g)};Opal.modules["asciidoctor/callouts"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a-b: +a["$-"](b)}var k=[],l=a.nil,p=a.module,h=a.klass,e=a.hash2,q=a.truthy,r=a.send;a.add_stubs("$next_list $<< $current_list $to_i $generate_next_callout_id $+ $<= $size $[] $- $chop $join $map $== $< $private $generate_callout_id".split(" "));return function(d,k){d=[p(d,"Asciidoctor")].concat(k);(function(d,$super,f){d=h(d,$super,"Callouts");[d].concat(f);var n,k,p,v,m,t,x,u,z;d.$$prototype.co_index=d.$$prototype.lists=d.$$prototype.list_index=l;a.def(d,"$initialize",n=function(){this.lists=[];this.list_index= +0;return this.$next_list()},n.$$arity=0);a.def(d,"$register",k=function(a){this.$current_list()["$<<"](e(["ordinal","id"],{ordinal:a.$to_i(),id:a=this.$generate_next_callout_id()}));this.co_index=b(this.co_index,1);return a},k.$$arity=1);a.def(d,"$read_next_id",p=function(){var a=l;var e=this.$current_list();var d=this.co_index;var f=e.$size();d="number"===typeof d&&"number"===typeof f?d<=f:d["$<="](f);q(d)&&(a=e["$[]"](g(this.co_index,1))["$[]"]("id"));this.co_index=b(this.co_index,1);return a}, +p.$$arity=0);a.def(d,"$callout_ids",v=function(a){var b;return r(this.$current_list(),"map",[],(b=function(b){null==b&&(b=l);return b["$[]"]("ordinal")["$=="](a)?""+b["$[]"]("id")+" ":""},b.$$s=this,b.$$arity=1,b)).$join().$chop()},v.$$arity=1);a.def(d,"$current_list",m=function(){return this.lists["$[]"](g(this.list_index,1))},m.$$arity=0);a.def(d,"$next_list",t=function(){this.list_index=b(this.list_index,1);var a=this.lists.$size();var e=this.list_index;a="number"===typeof a&&"number"===typeof e? +a=b:a["$>="](b)}function k(a, +b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function p(a,b){return"number"===typeof a&&"number"===typeof b?a= $+ $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 $attribute_locked? $nil_or_empty? $nextval $value $save_to $register $tap $xreftext $> $source $source_lines $doctitle $sectname= $title= $first_section $title $reftext $< $find $context $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".split(" ")); +return function(d,h){d=[m(d,"Asciidoctor")].concat(h);(function(d,$super,h){d=t(d,$super,"Document");var v=[d].concat(h),x,m,R,z,F,E,L,O,B,D,A,W,G,U,J,K,H,pa,aa,na,qa,M,P,Q,S,la,va,ha,Aa,X,ua,Ha,Fa,Da,Sa,Qa,Oa,Ga,za,Ya,Pa,Va,Wa,ab,Xa,Y,w,C,ma,N,Z,oa,db;d.$$prototype.attributes=d.$$prototype.safe=d.$$prototype.sourcemap=d.$$prototype.reader=d.$$prototype.base_dir=d.$$prototype.parsed=d.$$prototype.parent_document=d.$$prototype.extensions=d.$$prototype.options=d.$$prototype.counters=d.$$prototype.catalog= +d.$$prototype.reftexts=d.$$prototype.next_section_index=d.$$prototype.header=d.$$prototype.blocks=d.$$prototype.header_attributes=d.$$prototype.attributes_modified=d.$$prototype.backend=d.$$prototype.attribute_overrides=d.$$prototype.timings=d.$$prototype.converter=d.$$prototype.outfilesuffix=d.$$prototype.docinfo_processor_extensions=d.$$prototype.document=d.$$prototype.max_attribute_value_size=d.$$prototype.id=d.$$prototype.doctype=e;a.const_set(v[0],"ImageReference",n(q("::","Struct"),"new",["target", +"imagesdir"],(x=function(){return a.alias(x.$$s||this,"to_s","target")},x.$$s=d,x.$$arity=0,x)));a.const_set(v[0],"Footnote",q("::","Struct").$new("index","id","text"));(function(d,$super,f){d=t(d,$super,"AttributeEntry");[d].concat(f);var g,h;d.$attr_reader("name","value","negate");a.def(d,"$initialize",g=function(a,b,d){null==d&&(d=e);this.name=a;this.value=b;return this.negate=c(d["$nil?"]())?b["$nil?"]():d},g.$$arity=-3);return(a.def(d,"$save_to",h=function(d){var f,g=e;(c(f=d["$[]"]("attribute_entries"))? +f:(g=["attribute_entries",[]],n(d,"[]=",a.to_a(g)),g[b(g.length,1)]))["$<<"](this);return this},h.$$arity=1),e)&&"save_to"})(v[0],null,v);(function(b,$super,d){b=t(b,$super,"Title");var g=[b].concat(d),h,n,w,k;b.$$prototype.sanitized=b.$$prototype.subtitle=b.$$prototype.combined=e;b.$attr_reader("main");a.alias(b,"title","main");b.$attr_reader("subtitle");b.$attr_reader("combined");a.def(b,"$initialize",h=function(b,d){var h,n,w=e;null==d&&(d=f([],{}));c(c(h=this.sanitized=d["$[]"]("sanitize"))?b["$include?"]("<"): +h)&&(b=b.$gsub(r(g,"XmlSanitizeRx"),"").$squeeze(" ").$strip());c(c(h=(w=c(n=d["$[]"]("separator"))?n:":")["$empty?"]())?h:b["$include?"](w=""+w+" ")["$!"]())?(this.main=b,this.subtitle=e):(n=b.$rpartition(w),h=a.to_ary(n),this.main=null==h[0]?e:h[0],this.subtitle=null==h[2]?e:h[2],n);return this.combined=b},h.$$arity=-2);a.def(b,"$sanitized?",n=function(){return this.sanitized},n.$$arity=0);a.def(b,"$subtitle?",w=function(){return c(this.subtitle)?!0:!1},w.$$arity=0);return(a.def(b,"$to_s",k=function(){return this.combined}, +k.$$arity=0),e)&&"to_s"})(v[0],null,v);a.const_set(v[0],"Author",q("::","Struct").$new("name","firstname","middlename","lastname","initials","email"));d.$attr_reader("safe");d.$attr_reader("compat_mode");d.$attr_reader("backend");d.$attr_reader("doctype");d.$attr_accessor("sourcemap");d.$attr_reader("catalog");a.alias(d,"references","catalog");d.$attr_reader("counters");d.$attr_reader("header");d.$attr_reader("base_dir");d.$attr_reader("options");d.$attr_reader("outfilesuffix");d.$attr_reader("parent_document"); +d.$attr_reader("reader");d.$attr_reader("path_resolver");d.$attr_reader("converter");d.$attr_reader("syntax_highlighter");d.$attr_reader("extensions");a.def(d,"$initialize",m=function(d,h){var w,l,p,x,C,t,R,Z=e,N=e,z=e,F=e,bb=e,ma=e,E=ma=ma=e,Ia=e,L=E=e,oa=E=E=e;Z=Z=Z=e;m.$$p&&(m.$$p=null);null==d&&(d=e);null==h&&(h=f([],{}));n(this,a.find_super_dispatcher(this,"initialize",m,!1),[this,"document"],null);if(c(Z=h.$delete("parent")))this.parent_document=Z,c(w=h["$[]"]("base_dir"))?w:(N=["base_dir", +Z.$base_dir()],n(h,"[]=",a.to_a(N)),N[b(N.length,1)]),c(Z.$options()["$[]"]("catalog_assets"))&&(N=["catalog_assets",!0],n(h,"[]=",a.to_a(N)),N[b(N.length,1)]),this.catalog=Z.$catalog().$merge(f(["footnotes"],{footnotes:[]})),this.attribute_overrides=z=Z.$instance_variable_get("@attribute_overrides").$merge(Z.$attributes()),z.$delete("compat-mode"),F=z.$delete("doctype"),z.$delete("notitle"),z.$delete("showtitle"),z.$delete("toc"),N=["toc-placement",c(w=z.$delete("toc-placement"))?w:"auto"],n(this.attributes, +"[]=",a.to_a(N)),N[b(N.length,1)],z.$delete("toc-position"),this.safe=Z.$safe(),c(this.compat_mode=Z.$compat_mode())&&(N=["compat-mode",""],n(this.attributes,"[]=",a.to_a(N)),N[b(N.length,1)]),this.outfilesuffix=Z.$outfilesuffix(),this.sourcemap=Z.$sourcemap(),this.timings=e,this.path_resolver=Z.$path_resolver(),this.converter=Z.$converter(),bb=e,this.extensions=Z.$extensions(),this.syntax_highlighter=Z.$syntax_highlighter();else{this.parent_document=e;this.catalog=f("ids refs footnotes links images callouts includes".split(" "), +{ids:f([],{}),refs:f([],{}),footnotes:[],links:[],images:[],callouts:r(v,"Callouts").$new(),includes:f([],{})});this.attribute_overrides=z=f([],{});n(c(w=h["$[]"]("attributes"))?w:f([],{}),"each",[],(l=function(d,f){var g;null==d&&(d=e);null==f&&(f=e);c(d["$end_with?"]("@"))?(c(d["$start_with?"]("!"))?(g=[d.$slice(1,b(d.$length(),2)),!1],d=g[0],f=g[1]):c(d["$end_with?"]("!@"))?(g=[d.$slice(0,b(d.$length(),2)),!1],d=g[0],f=g[1]):(g=[d.$chop(),""+f+"@"],d=g[0],f=g[1]),g):c(d["$start_with?"]("!"))?(g= +[d.$slice(1,d.$length()),f["$=="]("@")?!1:e],d=g[0],f=g[1],g):c(d["$end_with?"]("!"))&&(g=[d.$chop(),f["$=="]("@")?!1:e],d=g[0],f=g[1],g);N=[d.$downcase(),f];n(z,"[]=",a.to_a(N));return N[b(N.length,1)]},l.$$s=this,l.$$arity=2,l));c(q("::","String")["$==="](ma=h["$[]"]("to_file")))&&(N=["outfilesuffix",r(v,"Helpers").$extname(ma)],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);if(c((ma=h["$[]"]("safe"))["$!"]()))this.safe=q(r(v,"SafeMode"),"SECURE");else if(c(q("::","Integer")["$==="](ma)))this.safe=ma;else{a:{try{var y= +r(v,"SafeMode").$value_for_name(ma);break a}catch(qb){if(a.rescue(qb,[r(v,"StandardError")]))try{y=q(r(v,"SafeMode"),"SECURE");break a}finally{a.pop_exception()}else throw qb;}y=void 0}this.safe=y}ma=h.$delete("input_mtime");this.compat_mode=z["$key?"]("compat-mode");this.sourcemap=h["$[]"]("sourcemap");this.timings=h.$delete("timings");this.path_resolver=r(v,"PathResolver").$new();bb=c(c(w=(p=q("::","Asciidoctor","skip_raise"))&&q(p,"Extensions","skip_raise")?"constant":e)?w:h["$key?"]("extensions"))? +q(q("::","Asciidoctor"),"Extensions"):e;this.extensions=e;c(c(w=h["$key?"]("header_footer"))?h["$key?"]("standalone")["$!"]():w)&&(N=["standalone",h["$[]"]("header_footer")],n(h,"[]=",a.to_a(N)),N[b(N.length,1)])}this.parsed=this.reftexts=this.header=this.header_attributes=e;this.counters=f([],{});this.attributes_modified=q("::","Set").$new();this.docinfo_processor_extensions=f([],{});E=h["$[]"]("standalone");(this.options=h).$freeze();Ia=this.attributes;c(Z)||(N=["attribute-undefined",r(v,"Compliance").$attribute_undefined()], +n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)],N=["attribute-missing",r(v,"Compliance").$attribute_missing()],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)],Ia.$update(r(v,"DEFAULT_ATTRIBUTES")));c(E)?(N=["embedded",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)],N=["copycss",""],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)],N=["iconfont-remote",""],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)],N=["stylesheet",""],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)],N=["webfonts",""],n(Ia,"[]=",a.to_a(N))):(N=["embedded",""],n(z,"[]=",a.to_a(N)), +N[b(N.length,1)],c(c(w=z["$key?"]("showtitle"))?z.$keys()["$&"](["notitle","showtitle"])["$[]"](-1)["$=="]("showtitle"):w)?(N=["notitle",u(e,"",!1,"@","@",!1)["$[]"](z["$[]"]("showtitle"))],n(z,"[]=",a.to_a(N))):c(z["$key?"]("notitle"))?(N=["showtitle",u(e,"",!1,"@","@",!1)["$[]"](z["$[]"]("notitle"))],n(z,"[]=",a.to_a(N))):(N=["notitle",""],n(Ia,"[]=",a.to_a(N))));N[b(N.length,1)];N=["asciidoctor",""];n(z,"[]=",a.to_a(N));N[b(N.length,1)];N=["asciidoctor-version",q(q("::","Asciidoctor"),"VERSION")]; +n(z,"[]=",a.to_a(N));N[b(N.length,1)];N=["safe-mode-name",E=r(v,"SafeMode").$name_for_value(this.safe)];n(z,"[]=",a.to_a(N));N[b(N.length,1)];N=["safe-mode-"+E,""];n(z,"[]=",a.to_a(N));N[b(N.length,1)];N=["safe-mode-level",this.safe];n(z,"[]=",a.to_a(N));N[b(N.length,1)];c(w=z["$[]"]("max-include-depth"))?w:(N=["max-include-depth",64],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(w=z["$[]"]("allow-uri-read"))?w:(N=["allow-uri-read",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(z["$key?"]("numbered"))&&(N= +["sectnums",z.$delete("numbered")],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(z["$key?"]("hardbreaks"))&&(N=["hardbreaks-option",z.$delete("hardbreaks")],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(L=h["$[]"]("base_dir"))?this.base_dir=(N=["docdir",q("::","File").$expand_path(L)],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]):c(z["$[]"]("docdir"))?this.base_dir=z["$[]"]("docdir"):this.base_dir=(N=["docdir",q("::","Dir").$pwd()],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(E=h["$[]"]("backend"))&&(N=["backend",E.$to_s()], +n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(E=h["$[]"]("doctype"))&&(N=["doctype",E.$to_s()],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);c(g(this.safe,q(r(v,"SafeMode"),"SERVER")))?(c(w=z["$[]"]("copycss"))?w:(N=["copycss",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),c(w=z["$[]"]("source-highlighter"))?w:(N=["source-highlighter",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),c(w=z["$[]"]("backend"))?w:(N=["backend",r(v,"DEFAULT_BACKEND")],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),c(c(w=Z["$!"]())?z["$key?"]("docfile"): +w)&&(N=["docfile",z["$[]"]("docfile")["$[]"](a.Range.$new(k(z["$[]"]("docdir").$length(),1),-1,!1))],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),N=["docdir",""],n(z,"[]=",a.to_a(N)),N[b(N.length,1)],c(w=z["$[]"]("user-home"))?w:(N=["user-home","."],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),c(g(this.safe,q(r(v,"SafeMode"),"SECURE")))&&(c(z["$key?"]("max-attribute-value-size"))||(N=["max-attribute-value-size",4096],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]),c(z["$key?"]("linkcss"))||(N=["linkcss",""],n(z,"[]=", +a.to_a(N)),N[b(N.length,1)]),c(w=z["$[]"]("icons"))?w:(N=["icons",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]))):c(w=z["$[]"]("user-home"))?w:(N=["user-home",r(v,"USER_HOME")],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]);this.max_attribute_value_size=c(oa=c(w=z["$[]"]("max-attribute-value-size"))?w:(N=["max-attribute-value-size",e],n(z,"[]=",a.to_a(N)),N[b(N.length,1)]))?oa.$to_i().$abs():e;n(z,"delete_if",[],(x=function(d,f){var g,h=e;null==d&&(d=e);null==f&&(f=e);c(f)?(c(c(g=q("::","String")["$==="](f))? +f["$end_with?"]("@"):g)&&(g=[f.$chop(),!0],f=g[0],h=g[1],g),N=[d,f],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]):(Ia.$delete(d),h=f["$=="](!1));return h},x.$$s=this,x.$$arity=2,x));if(c(Z))return this.backend=Ia["$[]"]("backend"),(this.doctype=(N=["doctype",F],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]))["$=="](r(v,"DEFAULT_DOCTYPE"))||this.$update_doctype_attributes(r(v,"DEFAULT_DOCTYPE")),this.reader=r(v,"Reader").$new(d,h["$[]"]("cursor")),c(this.sourcemap)&&(this.source_location=this.reader.$cursor()), +r(v,"Parser").$parse(this.reader,this),this.$restore_attributes(),this.parsed=!0;this.backend=e;(Z=c(w=Ia["$[]"]("backend"))?w:r(v,"DEFAULT_BACKEND"))["$=="]("manpage")?this.doctype=(N=["doctype",(N=["doctype","manpage"],n(z,"[]=",a.to_a(N)),N[b(N.length,1)])],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]):this.doctype=c(w=Ia["$[]"]("doctype"))?w:(N=["doctype",r(v,"DEFAULT_DOCTYPE")],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]);this.$update_backend_attributes(Z,!0);c(w=Ia["$[]"]("stylesdir"))?w:(N=["stylesdir", +"."],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]);c(w=Ia["$[]"]("iconsdir"))?w:(N=["iconsdir",""+Ia.$fetch("imagesdir","./images")+"/icons"],n(Ia,"[]=",a.to_a(N)),N[b(N.length,1)]);this.$fill_datetime_attributes(Ia,ma);c(bb)&&(c(Z=h["$[]"]("extension_registry"))?c(c(w=q(r(v,"Extensions"),"Registry")["$==="](Z))?w:c(C=(R=q("::","AsciidoctorJ","skip_raise"))&&(t=q(R,"Extensions","skip_raise"))&&q(t,"ExtensionRegistry","skip_raise")?"constant":e)?q(q(q("::","AsciidoctorJ"),"Extensions"),"ExtensionRegistry")["$==="](Z): +C)&&(this.extensions=Z.$activate(this)):c((Z=h["$[]"]("extensions"))["$nil?"]())?c(r(v,"Extensions").$groups()["$empty?"]())||(this.extensions=q(r(v,"Extensions"),"Registry").$new().$activate(this)):c(q("::","Proc")["$==="](Z))&&(this.extensions=n(r(v,"Extensions"),"create",[],Z.$to_proc()).$activate(this)));this.reader=r(v,"PreprocessorReader").$new(this,d,q(r(v,"Reader"),"Cursor").$new(Ia["$[]"]("docfile"),this.base_dir),f(["normalize"],{normalize:!0}));return c(this.sourcemap)?this.source_location= +this.reader.$cursor():e},m.$$arity=-1);a.def(d,"$parse",R=function(a){var b,d,g,h=e,w=e;null==a&&(a=e);if(c(this.parsed))return this;h=this;c(a)&&(this.reader=r(v,"PreprocessorReader").$new(h,a,q(r(v,"Reader"),"Cursor").$new(this.attributes["$[]"]("docfile"),this.base_dir),f(["normalize"],{normalize:!0})),c(this.sourcemap)&&(this.source_location=this.reader.$cursor()));c(c(b=w=c(this.parent_document)?e:this.extensions)?w["$preprocessors?"]():b)&&n(w.$preprocessors(),"each",[],(d=function(a){var b= +d.$$s||this,f;null==b.reader&&(b.reader=e);null==a&&(a=e);return b.reader=c(f=a.$process_method()["$[]"](h,b.reader))?f:b.reader},d.$$s=this,d.$$arity=1,d));r(v,"Parser").$parse(this.reader,h,f(["header_only"],{header_only:this.options["$[]"]("parse_header_only")}));this.$restore_attributes();c(c(b=w)?w["$tree_processors?"]():b)&&n(w.$tree_processors(),"each",[],(g=function(a){var b,d,f=e;null==a&&(a=e);return c(c(b=c(d=f=a.$process_method()["$[]"](h))?r(v,"Document")["$==="](f):d)?f["$!="](h):b)? +h=f:e},g.$$s=this,g.$$arity=1,g));this.parsed=!0;return h},R.$$arity=-1);a.def(d,"$parsed?",z=function(){return this.parsed},z.$$arity=0);a.def(d,"$counter",F=function(d,f){var g,h,w,l=e,k=e;null==f&&(f=e);if(c(this.parent_document))return this.parent_document.$counter(d,f);f=c(c(g=c(h=w=this["$attribute_locked?"](d))?l=this.counters["$[]"](d):h)?g:(l=this.attributes["$[]"](d))["$nil_or_empty?"]()["$!"]())?(k=[d,r(v,"Helpers").$nextval(l)],n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]):c(f)?(k= +[d,f["$=="](f.$to_i().$to_s())?f.$to_i():f],n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]):(k=[d,1],n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]);c(w)||(k=[d,f],n(this.attributes,"[]=",a.to_a(k)),k[b(k.length,1)]);return f},F.$$arity=-2);a.def(d,"$increment_and_store_counter",E=function(a,b){return r(v,"AttributeEntry").$new(a,this.$counter(a)).$save_to(b.$attributes()).$value()},E.$$arity=2);a.alias(d,"counter_increment","increment_and_store_counter");a.def(d,"$register",L=function(d,g){var h, +w=this,k=e,l=e,p=e,q=e,x=e;return function(){k=d;return"ids"["$==="](k)?w.$register("refs",[l=g["$[]"](0),r(v,"Inline").$new(w,"anchor",g["$[]"](1),f(["type","id"],{type:"ref",id:l}))]):"refs"["$==="](k)?(p=w.catalog["$[]"]("refs"),c(h=p["$[]"](g["$[]"](0)))?h:(q=[g["$[]"](0),x=g["$[]"](1)],n(p,"[]=",a.to_a(q)),q[b(q.length,1)]),x):"footnotes"["$==="](k)?w.catalog["$[]"](d)["$<<"](g):c(w.options["$[]"]("catalog_assets"))?w.catalog["$[]"](d)["$<<"](d["$=="]("images")?r(v,"ImageReference").$new(g,w.attributes["$[]"]("imagesdir")): +g):e}()},L.$$arity=2);a.def(d,"$resolve_id",O=function(d){var g,h,w=this,k=e,l=e;if(c(w.reftexts))return w.reftexts["$[]"](d);if(c(w.parsed))return n(w.reftexts=f([],{}),"tap",[],(g=function(d){var f=g.$$s||this,h;null==f.catalog&&(f.catalog=e);null==d&&(d=e);return n(f.catalog["$[]"]("refs"),"each",[],(h=function(f,g){var h,w=e;null==f&&(f=e);null==g&&(g=e);return c(h=d["$[]"](g.$xreftext()))?h:(w=[g.$xreftext(),f],n(d,"[]=",a.to_a(w)),w[b(w.length,1)])},h.$$s=f,h.$$arity=2,h))},g.$$s=w,g.$$arity= +1,g))["$[]"](d);k=e;w.reftexts=l=f([],{});(function(){var f=a.new_brk();try{return n(w.catalog["$[]"]("refs"),"each",[],(h=function(g,h){var w,r=e;null==g&&(g=e);null==h&&(h=e);(h=h.$xreftext())["$=="](d)&&(k=g,a.brk(e,f));return c(w=l["$[]"](h))?w:(r=[h,g],n(l,"[]=",a.to_a(r)),r[b(r.length,1)])},h.$$s=w,h.$$brk=f,h.$$arity=2,h))}catch(Za){if(Za===f)return Za.$v;throw Za;}})();w.reftexts=e;return k},O.$$arity=1);a.def(d,"$sections?",B=function(){return l(this.next_section_index,0)},B.$$arity=0);a.def(d, +"$footnotes?",D=function(){return c(this.catalog["$[]"]("footnotes")["$empty?"]())?!1:!0},D.$$arity=0);a.def(d,"$footnotes",A=function(){return this.catalog["$[]"]("footnotes")},A.$$arity=0);a.def(d,"$callouts",W=function(){return this.catalog["$[]"]("callouts")},W.$$arity=0);a.def(d,"$nested?",G=function(){return c(this.parent_document)?!0:!1},G.$$arity=0);a.def(d,"$embedded?",U=function(){return this.attributes["$key?"]("embedded")},U.$$arity=0);a.def(d,"$extensions?",J=function(){return c(this.extensions)? +!0:!1},J.$$arity=0);a.def(d,"$source",K=function(){return c(this.reader)?this.reader.$source():e},K.$$arity=0);a.def(d,"$source_lines",H=function(){return c(this.reader)?this.reader.$source_lines():e},H.$$arity=0);a.def(d,"$basebackend?",pa=function(a){return this.attributes["$[]"]("basebackend")["$=="](a)},pa.$$arity=1);a.def(d,"$title",aa=function(){return this.$doctitle()},aa.$$arity=0);a.def(d,"$title=",na=function(e){var d;if(!c(d=this.header)){var f=["header"];n(d=this.header=r(v,"Section").$new(this, +0),"sectname=",a.to_a(f));f[b(f.length,1)]}f=[e];n(d,"title=",a.to_a(f));return f[b(f.length,1)]},na.$$arity=1);a.def(d,"$doctitle",qa=function(a){var b,d,g,h=e;null==a&&(a=f([],{}));if(!c(d=this.attributes["$[]"]("title")))if(c(g=this.$first_section()))d=g.$title();else if(c((c(b=a["$[]"]("use_fallback"))?d=this.attributes["$[]"]("untitled-label"):b)["$!"]()))return e;return c(h=a["$[]"]("partition"))?r(v,"Title").$new(d,a.$merge(f(["separator"],{separator:h["$=="](!0)?this.attributes["$[]"]("title-separator"): +h}))):c(c(b=a["$[]"]("sanitize"))?d["$include?"]("<"):b)?d.$gsub(r(v,"XmlSanitizeRx"),"").$squeeze(" ").$strip():d},qa.$$arity=-1);a.alias(d,"name","doctitle");a.def(d,"$xreftext",M=function(a){var b;a=e;return c(c(b=a=this.$reftext())?a["$empty?"]()["$!"]():b)?a:this.$title()},M.$$arity=-1);a.def(d,"$author",P=function(){return this.attributes["$[]"]("author")},P.$$arity=0);a.def(d,"$authors",Q=function(){var a,b,e;if(c((b=this.attributes)["$key?"]("author"))){var d=[r(v,"Author").$new(b["$[]"]("author"), +b["$[]"]("firstname"),b["$[]"]("middlename"),b["$[]"]("lastname"),b["$[]"]("authorinitials"),b["$[]"]("email"))];if(c(l(e=c(a=b["$[]"]("authorcount"))?a:0,1)))for(a=1;c(p(a,e));)a=k(a,1),d["$<<"](r(v,"Author").$new(b["$[]"]("author_"+a),b["$[]"]("firstname_"+a),b["$[]"]("middlename_"+a),b["$[]"]("lastname_"+a),b["$[]"]("authorinitials_"+a),b["$[]"]("email_"+a)));return d}return[]},Q.$$arity=0);a.def(d,"$revdate",S=function(){return this.attributes["$[]"]("revdate")},S.$$arity=0);a.def(d,"$notitle", +la=function(){return this.attributes["$key?"]("notitle")},la.$$arity=0);a.def(d,"$noheader",va=function(){return this.attributes["$key?"]("noheader")},va.$$arity=0);a.def(d,"$nofooter",ha=function(){return this.attributes["$key?"]("nofooter")},ha.$$arity=0);a.def(d,"$first_section",Aa=function(){var a,b;return c(a=this.header)?a:n(this.blocks,"find",[],(b=function(a){null==a&&(a=e);return a.$context()["$=="]("section")},b.$$s=this,b.$$arity=1,b))},Aa.$$arity=0);a.def(d,"$header?",X=function(){return c(this.header)? +!0:!1},X.$$arity=0);a.alias(d,"has_header?","header?");a.def(d,"$<<",ua=function(b){var c=ua.$$p,e;c&&(ua.$$p=null);var d=0;var f=arguments.length;for(e=Array(f);d"},ab.$$arity=0);d.$private();a.def(d,"$apply_attribute_value_subs",Xa=function(a){var b;c(r(v,"AttributeEntryPassMacroRx")["$=~"](a))?(a=(b=y["~"])===e?e:b["$[]"](2),c((b=y["~"])===e?e:b["$[]"](1))&&(a=this.$apply_subs(a,this.$resolve_pass_subs((b=y["~"])===e?e:b["$[]"](1))))):a=this.$apply_header_subs(a);return c(this.max_attribute_value_size)? +this.$limit_bytesize(a,this.max_attribute_value_size):a},Xa.$$arity=1);a.def(d,"$limit_bytesize",Y=function(a,e){if(c(l(a.$bytesize(),e)))for(;!c((a=a.$byteslice(0,e))["$valid_encoding?"]());)e=b(e,1);return a},Y.$$arity=2);a.def(d,"$resolve_docinfo_subs",w=function(){return c(this.attributes["$key?"]("docinfosubs"))?this.$resolve_subs(this.attributes["$[]"]("docinfosubs"),"block",e,"docinfo"):["attributes"]},w.$$arity=0);a.def(d,"$create_converter",C=function(d,g){var h,w,k=e,l;var p=f(["document", +"htmlsyntax"],{document:this,htmlsyntax:this.attributes["$[]"]("htmlsyntax")});c(w=c(h=(k=this.options)["$[]"]("template_dirs"))?h:k["$[]"]("template_dir"))&&(h=["template_dirs",[].concat(a.to_a(w))],n(p,"[]=",a.to_a(h)),h[b(h.length,1)],h=["template_cache",k.$fetch("template_cache",!0)],n(p,"[]=",a.to_a(h)),h[b(h.length,1)],h=["template_engine",k["$[]"]("template_engine")],n(p,"[]=",a.to_a(h)),h[b(h.length,1)],h=["template_engine_options",k["$[]"]("template_engine_options")],n(p,"[]=",a.to_a(h)), +h[b(h.length,1)],h=["eruby",k["$[]"]("eruby")],n(p,"[]=",a.to_a(h)),h[b(h.length,1)],h=["safe",this.safe],n(p,"[]=",a.to_a(h)),h[b(h.length,1)],c(g)&&(h=["delegate_backend",g],n(p,"[]=",a.to_a(h)),h[b(h.length,1)]));return c(l=k["$[]"]("converter"))?q(r(v,"Converter"),"CustomFactory").$new(u(d,l)).$create(d,p):k.$fetch("converter_factory",r(v,"Converter")).$create(d,p)},C.$$arity=2);a.def(d,"$clear_playback_attributes",ma=function(a){return a.$delete("attribute_entries")},ma.$$arity=1);a.def(d,"$save_attributes", +N=function(){var d,g,h=e,w=e,k=e,l=k=e,p=e,x=e,m=e,C=m=m=l=x=e,t=e,N=e;c(c(d=(h=this.attributes)["$key?"]("doctitle"))?d:(w=this.$doctitle())["$!"]())||(k=["doctitle",w],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]);this.id=c(d=this.id)?d:h["$[]"]("css-signature");c(k=c(h.$delete("toc2"))?"left":h["$[]"]("toc"))&&(l=c(c(d=p=h.$fetch("toc-placement","macro"))?p["$!="]("auto"):d)?p:h["$[]"]("toc-position"),c(c(d=k["$empty?"]())?l["$nil_or_empty?"]():d)||(x="left",m="toc2",x=c(l["$nil_or_empty?"]())?c(k["$empty?"]())? +x:k:l,k=["toc",""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],k=["toc-placement","auto"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],l=x,"left"["$==="](l)||"<"["$==="](l)||"<"["$==="](l)?(k=["toc-position","left"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):"right"["$==="](l)||">"["$==="](l)||">"["$==="](l)?(k=["toc-position","right"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):"top"["$==="](l)||"^"["$==="](l)?(k=["toc-position","top"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):"bottom"["$==="](l)||"v"["$==="](l)?(k= +["toc-position","bottom"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):("preamble"["$==="](l)||"macro"["$==="](l)?(k=["toc-position","content"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],k=["toc-placement",x],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):h.$delete("toc-position"),m=e),c(m)&&(c(d=h["$[]"]("toc-class"))?d:(k=["toc-class",m],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]))));c(c(d=m=h["$[]"]("icons"))?h["$key?"]("icontype")["$!"]():d)&&(l=m,""["$==="](l)||"font"["$==="](l)?e:(k=["icons",""],n(h,"[]=",a.to_a(k)), +k[b(k.length,1)],m["$=="]("image")||(k=["icontype",m],n(h,"[]=",a.to_a(k)),k[b(k.length,1)])));c(c(d=this.compat_mode=h["$key?"]("compat-mode"))?h["$key?"]("language"):d)&&(k=["source-language",h["$[]"]("language")],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]);c(this.parent_document)||((m=h["$[]"]("basebackend"))["$=="]("html")?c(c(d=C=h["$[]"]("source-highlighter"))?h["$[]"](""+C+"-unavailable")["$!"]():d)&&(c(t=this.options["$[]"]("syntax_highlighter_factory"))?this.syntax_highlighter=t.$create(C,this.backend, +f(["document"],{document:this})):c(N=this.options["$[]"]("syntax_highlighters"))?this.syntax_highlighter=q(r(v,"SyntaxHighlighter"),"DefaultFactoryProxy").$new(N).$create(C,this.backend,f(["document"],{document:this})):this.syntax_highlighter=r(v,"SyntaxHighlighter").$create(C,this.backend,f(["document"],{document:this}))):m["$=="]("docbook")&&(c(c(d=this["$attribute_locked?"]("toc"))?d:this.attributes_modified["$include?"]("toc"))||(k=["toc",""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]),c(c(d=this["$attribute_locked?"]("sectnums"))? +d:this.attributes_modified["$include?"]("sectnums"))||(k=["sectnums",""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)])),this.outfilesuffix=h["$[]"]("outfilesuffix"),n(r(v,"FLEXIBLE_ATTRIBUTES"),"each",[],(g=function(a){var b=g.$$s||this,d;null==b.attribute_overrides&&(b.attribute_overrides=e);null==a&&(a=e);return c(c(d=b.attribute_overrides["$key?"](a))?b.attribute_overrides["$[]"](a):d)?b.attribute_overrides.$delete(a):e},g.$$s=this,g.$$arity=1,g)));return this.header_attributes=h.$merge()},N.$$arity= +0);a.def(d,"$fill_datetime_attributes",Z=function(d,f){var g,h,w=e,k,l=e;var r=c(q("::","ENV")["$key?"]("SOURCE_DATE_EPOCH"))?w=q("::","Time").$at(this.$Integer(q("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():q("::","Time").$now();c(k=d["$[]"]("localdate"))?c(g=d["$[]"]("localyear"))?g:(l=["localyear",k.$index("-")["$=="](4)?k.$slice(0,4):e],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]):(k=(l=["localdate",r.$strftime("%F")],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]),c(g=d["$[]"]("localyear"))?g:(l=["localyear", +r.$year().$to_s()],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]));var p=c(g=d["$[]"]("localtime"))?g:(l=["localtime",r.$strftime("%T "+(r.$utc_offset()["$=="](0)?"UTC":"%z"))],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]);c(g=d["$[]"]("localdatetime"))?g:(l=["localdatetime",""+k+" "+p],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]);f=c(g=c(h=w)?h:f)?g:r;c(h=d["$[]"]("docdate"))?c(g=d["$[]"]("docyear"))?g:(l=["docyear",h.$index("-")["$=="](4)?h.$slice(0,4):e],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]):(h=(l=["docdate",f.$strftime("%F")], +n(d,"[]=",a.to_a(l)),l[b(l.length,1)]),c(g=d["$[]"]("docyear"))?g:(l=["docyear",f.$year().$to_s()],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]));f=c(g=d["$[]"]("doctime"))?g:(l=["doctime",f.$strftime("%T "+(f.$utc_offset()["$=="](0)?"UTC":"%z"))],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]);c(g=d["$[]"]("docdatetime"))?g:(l=["docdatetime",""+h+" "+f],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]);return e},Z.$$arity=2);a.def(d,"$update_backend_attributes",oa=function(d,f){var g,h,w=e,k=e,l=e,p=e,x=e,m;null==f&&(f=e); +if(c(c(g=f)?g:d["$!="](this.backend))){var C=this.backend;var t=(h=this.attributes)["$[]"]("basebackend");var N=this.doctype;if(c(d["$include?"](":"))){var u=d.$partition(":");g=a.to_ary(u);w=null==g[0]?e:g[0];d=null==g[2]?e:g[2];u}c(d["$start_with?"]("xhtml"))?(k=["htmlsyntax","xml"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],d=d.$slice(1,d.$length())):c(d["$start_with?"]("html"))&&(c(g=h["$[]"]("htmlsyntax"))?g:(k=["htmlsyntax","html"],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]));d=c(g=r(v,"BACKEND_ALIASES")["$[]"](d))? +g:d;c(w)&&(g=[w,d],d=g[0],l=g[1],g);c(N)?(c(C)&&(h.$delete("backend-"+C),h.$delete("backend-"+C+"-doctype-"+N)),k=["backend-"+d+"-doctype-"+N,""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],k=["doctype-"+N,""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):c(C)&&h.$delete("backend-"+C);k=["backend-"+d,""];n(h,"[]=",a.to_a(k));k[b(k.length,1)];this.backend=(k=["backend",d],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]);c(q(r(v,"Converter"),"BackendTraits")["$==="](u=this.$create_converter(d,l)))?(p=u.$basebackend(),x=u.$filetype(), +c(C=u.$htmlsyntax())&&(k=["htmlsyntax",C],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]),c(f)?c(g=h["$[]"]("outfilesuffix"))?g:(k=["outfilesuffix",u.$outfilesuffix()],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):c(this["$attribute_locked?"]("outfilesuffix"))||(k=["outfilesuffix",u.$outfilesuffix()],n(h,"[]=",a.to_a(k)),k[b(k.length,1)])):c(u)?(C=r(v,"Converter").$derive_backend_traits(d),p=C["$[]"]("basebackend"),x=C["$[]"]("filetype"),c(f)?c(g=h["$[]"]("outfilesuffix"))?g:(k=["outfilesuffix",C["$[]"]("outfilesuffix")], +n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):c(this["$attribute_locked?"]("outfilesuffix"))||(k=["outfilesuffix",C["$[]"]("outfilesuffix")],n(h,"[]=",a.to_a(k)),k[b(k.length,1)])):this.$raise(q("::","NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+d+"'. Processing aborted.");this.converter=u;c(m=h["$[]"]("filetype"))&&h.$delete("filetype-"+m);k=["filetype",x];n(h,"[]=",a.to_a(k));k[b(k.length,1)];k=["filetype-"+x,""];n(h,"[]=",a.to_a(k));k[b(k.length,1)];c(f=r(v,"DEFAULT_PAGE_WIDTHS")["$[]"](p))? +(k=["pagewidth",f],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):h.$delete("pagewidth");c(p["$!="](t))&&(c(N)?(c(t)&&(h.$delete("basebackend-"+t),h.$delete("basebackend-"+t+"-doctype-"+N)),k=["basebackend-"+p+"-doctype-"+N,""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]):c(t)&&h.$delete("basebackend-"+t),k=["basebackend-"+p,""],n(h,"[]=",a.to_a(k)),k[b(k.length,1)],k=["basebackend",p],n(h,"[]=",a.to_a(k)),k[b(k.length,1)]);return d}return e},oa.$$arity=-2);return(a.def(d,"$update_doctype_attributes",db=function(d){var f, +g;if(c(c(f=d)?d["$!="](this.doctype):f)){f=[this.backend,(g=this.attributes)["$[]"]("basebackend"),this.doctype];var h=f[0];var w=f[1];var k=f[2];f;c(k)?(g.$delete("doctype-"+k),c(h)&&(g.$delete("backend-"+h+"-doctype-"+k),f=["backend-"+h+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]),c(w)&&(g.$delete("basebackend-"+w+"-doctype-"+k),f=["basebackend-"+w+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)])):(c(h)&&(f=["backend-"+h+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]), +c(w)&&(f=["basebackend-"+w+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]));f=["doctype-"+d,""];n(g,"[]=",a.to_a(f));f[b(f.length,1)];return this.doctype=(f=["doctype",d],n(g,"[]=",a.to_a(f)),f[b(f.length,1)])}return e},db.$$arity=1),e)&&"update_doctype_attributes"})(d[0],r(d,"AbstractBlock"),d)}(h[0],h)};Opal.modules["asciidoctor/inline"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,p=a.klass,h=a.hash2,e=a.send,q=a.truthy;a.add_stubs("$attr_accessor $attr_reader $[] $convert $converter $attr $== $apply_reftext_subs $reftext".split(" ")); +return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,c){b=p(b,$super,"Inline");[b].concat(c);var d,k,l,r,v,m,t,x;b.$$prototype.text=b.$$prototype.type=g;b.$attr_accessor("text");b.$attr_reader("type");b.$attr_accessor("target");a.def(b,"$initialize",d=function(b,c,f,k){d.$$p&&(d.$$p=null);null==f&&(f=g);null==k&&(k=h([],{}));e(this,a.find_super_dispatcher(this,"initialize",d,!1),[b,c,k],null);this.node_name="inline_"+c;this.text=f;this.id=k["$[]"]("id");this.type=k["$[]"]("type"); +return this.target=k["$[]"]("target")},d.$$arity=-3);a.def(b,"$block?",k=function(){return!1},k.$$arity=0);a.def(b,"$inline?",l=function(){return!0},l.$$arity=0);a.def(b,"$convert",r=function(){return this.$converter().$convert(this)},r.$$arity=0);a.alias(b,"render","convert");a.def(b,"$alt",v=function(){var a;return q(a=this.$attr("alt"))?a:""},v.$$arity=0);a.def(b,"$reftext?",m=function(){var a,b;return q(a=this.text)?q(b=this.type["$=="]("ref"))?b:this.type["$=="]("bibref"):a},m.$$arity=0);a.def(b, +"$reftext",t=function(){var a;return q(a=this.text)?this.$apply_reftext_subs(a):g},t.$$arity=0);return(a.def(b,"$xreftext",x=function(a){return this.$reftext()},x.$$arity=-1),g)&&"xreftext"})(b[0],k(b,"AbstractNode"),b)}(b[0],b)};Opal.modules["asciidoctor/list"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,p=a.klass,h=a.hash2,e=a.send,q=a.truthy;a.add_stubs("$== $next_list $callouts $class $object_id $inspect $size $items $attr_accessor $level $drop $nil_or_empty? $apply_subs $attr_writer $empty? $=== $[] $outline? $! $simple? $source $shift $context $parent".split(" ")); +return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,c){b=p(b,$super,"List");[b].concat(c);var d,k,l,r;b.$$prototype.context=b.$$prototype.document=b.$$prototype.style=g;a.alias(b,"items","blocks");a.alias(b,"content","blocks");a.alias(b,"items?","blocks?");a.def(b,"$initialize",d=function(b,c,f){var g=d.$$p,k;g&&(d.$$p=null);var l=0;var r=arguments.length;for(k=Array(r);l"},r.$$arity=0),g)&&"to_s"})(b[0],k(b,"AbstractBlock"),b);(function(b,$super,c){b=p(b,$super,"ListItem");var d=[b].concat(c),h,l,r,v,m,t,x;b.$$prototype.text=b.$$prototype.subs=b.$$prototype.blocks=g;a.alias(b,"list","parent");b.$attr_accessor("marker");a.def(b,"$initialize",h=function(b,c){h.$$p&& +(h.$$p=null);null==c&&(c=g);e(this,a.find_super_dispatcher(this,"initialize",h,!1),[b,"list_item"],null);this.text=c;this.level=b.$level();return this.subs=k(d,"NORMAL_SUBS").$drop(0)},h.$$arity=-2);a.def(b,"$text?",l=function(){return q(this.text["$nil_or_empty?"]())?!1:!0},l.$$arity=0);a.def(b,"$text",r=function(){var a;return q(a=this.text)?this.$apply_subs(this.text,this.subs):a},r.$$arity=0);b.$attr_writer("text");a.def(b,"$simple?",v=function(){var a,b,c=g;return q(a=this.blocks["$empty?"]())? +a:q(b=this.blocks.$size()["$=="](1)?k(d,"List")["$==="](c=this.blocks["$[]"](0)):this.blocks.$size()["$=="](1))?c["$outline?"]():b},v.$$arity=0);a.def(b,"$compound?",m=function(){return this["$simple?"]()["$!"]()},m.$$arity=0);a.def(b,"$fold_first",t=function(){this.text=q(this.text["$nil_or_empty?"]())?this.blocks.$shift().$source():""+this.text+k(d,"LF")+this.blocks.$shift().$source();return g},t.$$arity=0);return(a.def(b,"$to_s",x=function(){var a;return"#<"+this.$class()+"@"+this.$object_id()+ +" {list_context: "+this.$parent().$context().$inspect()+", text: "+this.text.$inspect()+", blocks: "+(q(a=this.blocks)?a:[]).$size()+"}>"},x.$$arity=0),g)&&"to_s"})(b[0],k(b,"AbstractBlock"),b)}(b[0],b)};Opal.modules["asciidoctor/parser"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?ab:a["$>"](b)}function p(a,b){return"number"===typeof a&&"number"===typeof b?a*b:a["$*"](b)}var h=[],e=a.nil,q=a.const_get_qualified,r=a.const_get_relative,m=a.module,t=a.klass,n=a.send,c=a.truthy,f=a.hash2,u=a.gvars;a.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 $context $empty? $header? $!= $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 $%".split(" ")); +return function(d,h){d=[m(d,"Asciidoctor")].concat(h);(function(d,$super,h){d=t(d,$super,"Parser");var v=[d].concat(h),m,z,E,F,y,L,B,D,A,O,G,U,J,K,I,W,H,pa,Ca,ba,na,qa,aa,M,P,Q,S,va,ha,Aa,X,ua,Ha,Fa,Da,Sa,Qa,Oa,Ga,za,Ya,Pa,Va,Wa,ab,Xa;d.$include(r(v,"Logging"));a.const_set(v[0],"BlockMatchData",r(v,"Struct").$new("context","masq","tip","terminator"));a.const_set(v[0],"TAB","\t");a.const_set(v[0],"TabIndentRx",/^\t+/);a.const_set(v[0],"StartOfBlockProc",n(d,"proc",[],(m=function(a){var b=m.$$s||this, +d,f;null==a&&(a=e);return c(d=c(f=a["$start_with?"]("["))?r(v,"BlockAttributeLineRx")["$match?"](a):f)?d:b["$is_delimited_block?"](a)},m.$$s=d,m.$$arity=1,m)));a.const_set(v[0],"StartOfListProc",n(d,"proc",[],(z=function(a){null==a&&(a=e);return r(v,"AnyListRx")["$match?"](a)},z.$$s=d,z.$$arity=1,z)));a.const_set(v[0],"StartOfBlockOrListProc",n(d,"proc",[],(E=function(a){var b=E.$$s||this,d,f,g;null==a&&(a=e);return c(d=c(f=b["$is_delimited_block?"](a))?f:c(g=a["$start_with?"]("["))?r(v,"BlockAttributeLineRx")["$match?"](a): +g)?d:r(v,"AnyListRx")["$match?"](a)},E.$$s=d,E.$$arity=1,E)));a.const_set(v[0],"NoOp",e);a.const_set(v[0],"AuthorKeys","author authorinitials firstname middlename lastname email".split(" "));a.const_set(v[0],"TableCellHorzAlignments",f(["<",">","^"],{"<":"left",">":"right","^":"center"}));a.const_set(v[0],"TableCellVertAlignments",f(["<",">","^"],{"<":"top",">":"bottom","^":"middle"}));a.const_set(v[0],"TableCellStyles",f("dsemhla".split(""),{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header", +l:"literal",a:"asciidoc"}));d.$private_class_method("new");a.defs(d,"$parse",F=function(b,d,g){null==g&&(g=f([],{}));var h=this.$parse_document_header(b,d,g=g["$[]"]("header_only"));if(!c(g))for(;c(b["$has_more_lines?"]());){g=this.$next_section(b,d,h);h=a.to_ary(g);var n=null==h[0]?e:h[0];h=null==h[1]?e:h[1];g;c(n)&&(d.$assign_numeral(n),d.$blocks()["$<<"](n))}return d},F.$$arity=-3);a.defs(d,"$parse_document_header",y=function(d,g,h){var k,w,l,p=e,q=e;null==h&&(h=!1);var m=c(d.$skip_blank_lines())? +this.$parse_block_metadata_lines(d,g):f([],{});var t=g.$attributes();if(c(c(k=w=this["$is_next_line_doctitle?"](d,m,t["$[]"]("leveloffset")))?m["$[]"]("title"):k)){var C=["authorcount",0];n(t,"[]=",a.to_a(C));C[b(C.length,1)];return g.$finalize_header(m,!1)}c((l=t["$[]"]("doctitle"))["$nil_or_empty?"]())||(C=[p=l],n(g,"title=",a.to_a(C)),C[b(C.length,1)]);if(c(w)){c(g.$sourcemap())&&(q=d.$cursor());C=this.$parse_section_title(d,g);k=a.to_ary(C);g["$id="](null==k[0]?e:k[0]);w=null==k[2]?e:k[2];var u= +null==k[4]?e:k[4];C;c(p)?w=e:(C=[w],n(g,"title=",a.to_a(C)),C[b(C.length,1)],c((C=["doctitle",p=g.$sub_specialchars(w)],n(t,"[]=",a.to_a(C)),C[b(C.length,1)])["$include?"](r(v,"ATTR_REF_HEAD")))&&(C=["doctitle",p=g.$sub_attributes(p,f(["attribute_missing"],{attribute_missing:"skip"}))],n(t,"[]=",a.to_a(C)),C[b(C.length,1)]));c(q)&&(C=[q],n(g.$header(),"source_location=",a.to_a(C)),C[b(C.length,1)]);c(c(k=u)?k:g["$attribute_locked?"]("compat-mode"))||(C=["compat-mode",""],n(t,"[]=",a.to_a(C)),C[b(C.length, +1)]);c(C=m["$[]"]("separator"))&&!c(g["$attribute_locked?"]("title-separator"))&&(C=["title-separator",C],n(t,"[]=",a.to_a(C)),C[b(C.length,1)]);c(q=m["$[]"]("id"))?(C=[q],n(g,"id=",a.to_a(C)),C[b(C.length,1)]):q=g.$id();c(C=m["$[]"]("role"))&&(C=["role",C],n(t,"[]=",a.to_a(C)),C[b(C.length,1)]);c(C=m["$[]"]("reftext"))&&(C=["reftext",C],n(t,"[]=",a.to_a(C)),C[b(C.length,1)]);m.$clear();(C=g.$instance_variable_get("@attributes_modified")).$delete("doctitle");this.$parse_header_metadata(d,g,e);if(c(C["$include?"]("doctitle")))c(c(k= +(l=t["$[]"]("doctitle"))["$nil_or_empty?"]())?k:l["$=="](p))?(C=["doctitle",p],n(t,"[]=",a.to_a(C))):(C=[l],n(g,"title=",a.to_a(C))),C[b(C.length,1)];else if(c(w["$!"]()))C["$<<"]("doctitle");c(q)&&g.$register("refs",[q,g])}else c(k=t["$[]"]("author"))?(k=this.$process_authors(k,!0,!1),c(t["$[]"]("authorinitials"))&&k.$delete("authorinitials"),t.$update(k)):c(k=t["$[]"]("authors"))?(k=this.$process_authors(k,!0),t.$update(k)):(C=["authorcount",0],n(t,"[]=",a.to_a(C)),C[b(C.length,1)]);g.$doctype()["$=="]("manpage")&& +this.$parse_manpage_header(d,g,m,h);return g.$finalize_header(m)},y.$$arity=-3);a.defs(d,"$parse_manpage_header",L=function(d,g,h,k){var w,l,p,q,m=e,C=e,t=e,x=e,z=e,E=e,F=E=e,ma=e,y=e,L=e;null==k&&(k=!1);c(r(v,"ManpageTitleVolnumRx")["$=~"]((m=g.$attributes())["$[]"]("doctitle")))?(C=["manvolnum",t=(w=u["~"])===e?e:w["$[]"](2)],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["mantitle",(c((x=(w=u["~"])===e?e:w["$[]"](1))["$include?"](r(v,"ATTR_REF_HEAD")))?g.$sub_attributes(x):x).$downcase()]):(this.$logger().$error(this.$message_with_context("non-conforming manpage title", +f(["source_location"],{source_location:d.$cursor_at_line(1)}))),C=["mantitle",c(w=c(l=m["$[]"]("doctitle"))?l:m["$[]"]("docname"))?w:"command"],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["manvolnum",t="1"]);n(m,"[]=",a.to_a(C));C[b(C.length,1)];c(c(w=z=m["$[]"]("manname"))?m["$[]"]("manpurpose"):w)?(c(w=m["$[]"]("manname-title"))?w:(C=["manname-title","Name"],n(m,"[]=",a.to_a(C)),C[b(C.length,1)]),C=["mannames",[z]],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],g.$backend()["$=="]("manpage")&&(C=["docname", +z],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["outfilesuffix","."+t],n(m,"[]=",a.to_a(C)),C[b(C.length,1)])):c(k)||(d.$skip_blank_lines(),d.$save(),h.$update(this.$parse_block_metadata_lines(d,g)),c(E=this["$is_next_line_section?"](d,f([],{})))?E["$=="](1)?(E=this.$initialize_section(d,g,f([],{})),F=n(d.$read_lines_until(f(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(p=function(a){null==a&&(a=e);return a.$lstrip()},p.$$s=this,p.$$arity=1, +p)).$join(" "),c(r(v,"ManpageNamePurposeRx")["$=~"](F))?(c((z=(w=u["~"])===e?e:w["$[]"](1))["$include?"](r(v,"ATTR_REF_HEAD")))&&(z=g.$sub_attributes(z)),c(z["$include?"](","))?z=(ma=n(z.$split(","),"map",[],(q=function(a){null==a&&(a=e);return a.$lstrip()},q.$$s=this,q.$$arity=1,q)))["$[]"](0):ma=[z],c((y=(w=u["~"])===e?e:w["$[]"](2))["$include?"](r(v,"ATTR_REF_HEAD")))&&(y=g.$sub_attributes(y)),c(w=m["$[]"]("manname-title"))?w:(C=["manname-title",E.$title()],n(m,"[]=",a.to_a(C)),C[b(C.length,1)]), +c(E.$id())&&(C=["manname-id",E.$id()],n(m,"[]=",a.to_a(C)),C[b(C.length,1)]),C=["manname",z],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["mannames",ma],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["manpurpose",y],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],g.$backend()["$=="]("manpage")&&(C=["docname",z],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["outfilesuffix","."+t],n(m,"[]=",a.to_a(C)),C[b(C.length,1)])):L="non-conforming name section body"):L="name section must be at level 1":L="name section expected",c(L)? +(d.$restore_save(),this.$logger().$error(this.$message_with_context(L,f(["source_location"],{source_location:d.$cursor()}))),C=["manname",z=c(w=m["$[]"]("docname"))?w:"command"],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["mannames",[z]],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],g.$backend()["$=="]("manpage")&&(C=["docname",z],n(m,"[]=",a.to_a(C)),C[b(C.length,1)],C=["outfilesuffix","."+t],n(m,"[]=",a.to_a(C)),C[b(C.length,1)])):d.$discard_save());return e},L.$$arity=-4);a.defs(d,"$next_section",B=function(d, +h,p){var w,q,m,C,t,u,x=e,z,E,F=e,y=E=e,L;null==p&&(p=f([],{}));var Y=t=u=!1;if(c(c(w=(q=h.$context()["$=="]("document"))?h.$blocks()["$empty?"]():h.$context()["$=="]("document"))?c(q=c(m=x=h["$header?"]())?m:p.$delete("invalid-header"))?q:this["$is_next_line_section?"](d,p)["$!"]():w)){var B=(z=h).$doctype()["$=="]("book");if(c(c(w=x)?w:c(q=B)?p["$[]"](1)["$!="]("abstract"):q)){Y=t=r(v,"Block").$new(h,"preamble",f(["content_model"],{content_model:"compound"}));if(c(c(w=B)?h["$attr?"]("preface-title"): +w)){var D=[h.$attr("preface-title")];n(Y,"title=",a.to_a(D));D[b(D.length,1)]}h.$blocks()["$<<"](Y)}x=h;E=0;if(c(h.$attributes()["$key?"]("fragment")))var A=-1;else c(B)?(w=[1,0],A=w[0],F=w[1],w):A=1}else B=(z=h.$document()).$doctype()["$=="]("book"),x=this.$initialize_section(d,h,p),p=c(E=p["$[]"]("title"))?f(["title"],{title:E}):f([],{}),A=g(E=x.$level(),1),E["$=="](0)?u=B:c((w=E["$=="](1))?x.$special():E["$=="](1))&&!c(c(w=c(q=(y=x.$sectname())["$=="]("appendix"))?q:y["$=="]("preface"))?w:y["$=="]("abstract"))&& +(A=e);for(d.$skip_blank_lines();c(d["$has_more_lines?"]());){this.$parse_block_metadata_lines(d,z,p);if(c(L=this["$is_next_line_section?"](d,p)))if(c(z["$attr?"]("leveloffset"))&&(L=g(L,z.$attr("leveloffset").$to_i()),c(k(L,0))&&(L=0)),c(l(L,E)))c(A)?c(c(q=c(m=L["$=="](A))?m:c(C=F)?L["$=="](F):C)?q:k(A,0))||(q=c(F)?"expected levels "+F+" or "+A:"expected level "+A,this.$logger().$warn(this.$message_with_context("section title out of sequence: "+q+", got level "+L,f(["source_location"],{source_location:d.$cursor()})))): +this.$logger().$error(this.$message_with_context(""+y+" sections do not support nested sections",f(["source_location"],{source_location:d.$cursor()}))),m=this.$next_section(d,x,p),q=a.to_ary(m),L=null==q[0]?e:q[0],p=null==q[1]?e:q[1],m,x.$assign_numeral(L),x.$blocks()["$<<"](L);else if(c((q=L["$=="](0))?x["$=="](z):L["$=="](0)))c(B)||this.$logger().$error(this.$message_with_context("level 0 sections can only be used when doctype is book",f(["source_location"],{source_location:d.$cursor()}))),m=this.$next_section(d, +x,p),q=a.to_ary(m),L=null==q[0]?e:q[0],p=null==q[1]?e:q[1],m,x.$assign_numeral(L),x.$blocks()["$<<"](L);else break;else if(D=d.$cursor(),c(L=this.$next_block(d,c(q=t)?q:x,p,f(["parse_metadata"],{parse_metadata:!1})))){if(c(u))if(c(x["$blocks?"]()["$!"]()))c(L.$style()["$!="]("partintro"))&&(L.$context()["$=="]("paragraph")?(D=["open"],n(L,"context=",a.to_a(D)),D[b(D.length,1)],D=["partintro"],n(L,"style=",a.to_a(D)),D[b(D.length,1)]):(D=[t=r(v,"Block").$new(x,"open",f(["content_model"],{content_model:"compound"}))], +n(L,"parent=",a.to_a(D)),D[b(D.length,1)],D=["partintro"],n(t,"style=",a.to_a(D)),D[b(D.length,1)],x.$blocks()["$<<"](t)));else if(x.$blocks().$size()["$=="](1)){var O=x.$blocks()["$[]"](0);c(c(q=t["$!"]())?O.$content_model()["$=="]("compound"):q)?this.$logger().$error(this.$message_with_context("illegal block content outside of partintro block",f(["source_location"],{source_location:D}))):c(O.$content_model()["$!="]("compound"))&&(D=[t=r(v,"Block").$new(x,"open",f(["content_model"],{content_model:"compound"}))], +n(L,"parent=",a.to_a(D)),D[b(D.length,1)],D=["partintro"],n(t,"style=",a.to_a(D)),D[b(D.length,1)],x.$blocks().$shift(),O.$style()["$=="]("partintro")&&(D=["paragraph"],n(O,"context=",a.to_a(D)),D[b(D.length,1)],D=[e],n(O,"style=",a.to_a(D)),D[b(D.length,1)]),t["$<<"](O),x.$blocks()["$<<"](t))}(c(q=t)?q:x).$blocks()["$<<"](L);p.$clear()}if(c(q=d.$skip_blank_lines()))q;else break}if(c(u))c(c(w=x["$blocks?"]())?x.$blocks()["$[]"](-1).$context()["$=="]("section"):w)||this.$logger().$error(this.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)", +f(["source_location"],{source_location:d.$cursor()})));else if(c(Y))if(c(Y["$blocks?"]()))if(c(c(w=c(q=B)?q:z.$blocks()["$[]"](1))?w:r(v,"Compliance").$unwrap_standalone_preamble()["$!"]()))c(z.$sourcemap())&&(D=[Y.$blocks()["$[]"](0).$source_location()],n(Y,"source_location=",a.to_a(D)),D[b(D.length,1)]);else for(z.$blocks().$shift();c(d=Y.$blocks().$shift());)z["$<<"](d);else z.$blocks().$shift();return[x["$=="](h)?e:x,p.$merge()]},B.$$arity=-3);a.defs(d,"$next_block",D=function(d,h,p,q){try{var w, +m,t,C,x,z,E,F=e,y=e,ma=e,L=e,D=e,B=e,A=e,O=e,Y=e,T=e,G=e,U=e,J=e,K=e,I=e,ja=e,xa=e,ea=e,W=e,na=e,qa=e,H=e,fa=e,ca=e,ra=e,da=e,pa=e,wa=e,ta=e,ba=e,Ca=e,ka=e,Ga=e,aa=e,M=e,Ea=e,V=e,P=e,Q=e,ya=e,Ja=e,Ma=e,za=e,S=e,Ua=e,Ba=e,La=e,Oa=e,ha=e;null==u["~"]&&(u["~"]=e);null==p&&(p=f([],{}));null==q&&(q=f([],{}));if(!c(F=d.$skip_blank_lines()))return e;c(c(w=y=q["$[]"]("text_only"))?l(F,0):w)&&(q.$delete("text_only"),y=e);ma=h.$document();if(c(q.$fetch("parse_metadata",!0)))for(;c(this.$parse_block_metadata_line(d, +ma,p,q));)d.$shift(),c(m=d.$skip_blank_lines())?m:a.ret(e);c(L=ma.$extensions())&&(w=[L["$blocks?"](),L["$block_macros?"]()],D=w[0],B=w[1],w);d.$mark();w=[d.$read_line(),ma.$attributes(),p["$[]"](1)];A=w[0];O=w[1];Y=w[2];w;T=G=U=J=e;c(K=this["$is_delimited_block?"](A,!0))&&(G=U=K.$context(),J=K.$terminator(),c(Y)?Y["$=="](G.$to_s())||(c(K.$masq()["$include?"](Y))?G=Y.$to_sym():c(c(w=K.$masq()["$include?"]("admonition"))?r(v,"ADMONITION_STYLES")["$include?"](Y):w)?G="admonition":c(c(w=D)?L["$registered_for_block?"](Y, +G):w)?G=Y.$to_sym():(c(this.$logger()["$debug?"]())&&this.$logger().$debug(this.$message_with_context("unknown style for "+G+" block: "+Y,f(["source_location"],{source_location:d.$cursor_at_mark()}))),Y=G.$to_s())):Y=(I=["style",G.$to_s()],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]));if(!c(K))for(;c(!0);){if(c(c(m=c(t=Y)?r(v,"Compliance").$strict_verbatim_paragraphs():t)?r(v,"VERBATIM_STYLES")["$include?"](Y):m)){G=Y.$to_sym();d.$unshift_line(A);break}if(c(y))ja=A["$start_with?"](" ",r(v,"TAB"));else if(xa= +r(v,"Compliance").$markdown_syntax(),c(A["$start_with?"](" "))){if(m=[!0," "],ja=m[0],ea=m[1],m,c(c(m=c(t=xa)?n(A.$lstrip(),"start_with?",a.to_a(r(v,"MARKDOWN_THEMATIC_BREAK_CHARS").$keys())):t)?r(v,"MarkdownThematicBreakRx")["$match?"](A):m)){T=r(v,"Block").$new(h,"thematic_break",f(["content_model"],{content_model:"empty"}));break}}else if(c(A["$start_with?"](r(v,"TAB"))))m=[!0,r(v,"TAB")],ja=m[0],ea=m[1],m;else if(m=[!1,A.$chr()],ja=m[0],ea=m[1],m,W=c(xa)?r(v,"HYBRID_LAYOUT_BREAK_CHARS"):r(v,"LAYOUT_BREAK_CHARS"), +c(c(m=W["$key?"](ea))?c(xa)?r(v,"ExtLayoutBreakRx")["$match?"](A):c(t=this["$uniform?"](A,ea,na=A.$length()))?l(na,2):t:m)){T=r(v,"Block").$new(h,W["$[]"](ea),f(["content_model"],{content_model:"empty"}));break}else if(c(c(m=A["$end_with?"]("]"))?A["$include?"]("::"):m))if(c(c(m=c(t=ea["$=="]("i"))?t:A["$start_with?"]("video:","audio:"))?r(v,"BlockMediaMacroRx")["$=~"](A):m)){m=[((t=u["~"])===e?e:t["$[]"](1)).$to_sym(),(t=u["~"])===e?e:t["$[]"](2),(t=u["~"])===e?e:t["$[]"](3)];qa=m[0];H=m[1];fa=m[2]; +m;T=r(v,"Block").$new(h,qa,f(["content_model"],{content_model:"empty"}));c(fa)&&(ca=qa,ra="video"["$==="](ca)?["poster","width","height"]:"audio"["$==="](ca)?[]:["alt","width","height"],T.$parse_attributes(fa,ra,f(["sub_input","into"],{sub_input:!0,into:p})));c(p["$key?"]("style"))&&p.$delete("style");if(c(H["$include?"](r(v,"ATTR_REF_HEAD")))){if(c(c(m=c(t=(da=T.$sub_attributes(H))["$empty?"]())?(c(C=O["$[]"]("attribute-missing"))?C:r(v,"Compliance").$attribute_missing())["$=="]("drop-line"):t)? +T.$sub_attributes(g(H," "),f(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return p.$clear(),e;H=da}qa["$=="]("image")&&(ma.$register("images",H),I=["imagesdir",O["$[]"]("imagesdir")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],c(m=p["$[]"]("alt"))?m:(I=["alt",c(t=Y)?t:(I=["default-alt",r(v,"Helpers").$basename(H,!0).$tr("_-"," ")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),c((pa=p.$delete("scaledwidth"))["$nil_or_empty?"]())|| +(I=["scaledwidth",c(r(v,"TrailingDigitsRx")["$match?"](pa))?""+pa+"%":pa],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),c(p["$[]"]("title"))&&(I=[wa=p.$delete("title")],n(T,"title=",a.to_a(I)),I[b(I.length,1)],T.$assign_caption(p.$delete("caption"),"figure")));I=["target",H];n(p,"[]=",a.to_a(I));I[b(I.length,1)];break}else if(c(c(m=(t=ea["$=="]("t"))?A["$start_with?"]("toc:"):ea["$=="]("t"))?r(v,"BlockTocMacroRx")["$=~"](A):m)){T=r(v,"Block").$new(h,"toc",f(["content_model"],{content_model:"empty"}));c((m= +u["~"])===e?e:m["$[]"](1))&&T.$parse_attributes((m=u["~"])===e?e:m["$[]"](1),[],f(["into"],{into:p}));break}else if(c(c(B)?c(m=c(t=r(v,"CustomBlockMacroRx")["$=~"](A))?ta=L["$registered_for_block_macro?"]((C=u["~"])===e?e:C["$[]"](1)):t)?m:ba=this.$logger()["$debug?"]():c(m=this.$logger()["$debug?"]())?ba=r(v,"CustomBlockMacroRx")["$=~"](A):m))if(c(ba))this.$logger().$debug(this.$message_with_context("unknown name for block macro: "+((m=u["~"])===e?e:m["$[]"](1)),f(["source_location"],{source_location:d.$cursor_at_mark()}))); +else{Ca=(m=u["~"])===e?e:m["$[]"](3);if(c((H=(m=u["~"])===e?e:m["$[]"](2))["$include?"](r(v,"ATTR_REF_HEAD")))){if(c(c(m=c(t=(da=h.$sub_attributes(H))["$empty?"]())?(c(C=O["$[]"]("attribute-missing"))?C:r(v,"Compliance").$attribute_missing())["$=="]("drop-line"):t)?h.$sub_attributes(g(H," "),f(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return p.$clear(),e;H=da}(ka=ta.$config())["$[]"]("content_model")["$=="]("attributes")? +c(Ca)&&ma.$parse_attributes(Ca,c(m=c(t=ka["$[]"]("positional_attrs"))?t:ka["$[]"]("pos_attrs"))?m:[],f(["sub_input","into"],{sub_input:!0,into:p})):(I=["text",c(m=Ca)?m:""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]);c(Ga=ka["$[]"]("default_attrs"))&&n(p,"update",[Ga],(x=function(a,b){null==b&&(b=e);return b},x.$$s=this,x.$$arity=2,x));if(c(c(m=T=ta.$process_method()["$[]"](h,H,p))?T["$!="](h):m)){p.$replace(T.$attributes());break}else return p.$clear(),e}if(c(c(m=c(t=ja["$!"]())?(ea=c(C=ea)?C:A.$chr())["$=="]("<"): +t)?r(v,"CalloutListRx")["$=~"](A):m)){d.$unshift_line(A);T=this.$parse_callout_list(d,u["~"],h,ma.$callouts());I=["style","arabic"];n(p,"[]=",a.to_a(I));I[b(I.length,1)];break}else if(c(r(v,"UnorderedListRx")["$match?"](A))){d.$unshift_line(A);c(c(m=c(t=Y["$!"]())?r(v,"Section")["$==="](h):t)?h.$sectname()["$=="]("bibliography"):m)&&(I=["style",Y="bibliography"],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]);T=this.$parse_list(d,"ulist",h,Y);break}else if(c(r(v,"OrderedListRx")["$match?"](A))){d.$unshift_line(A); +T=this.$parse_list(d,"olist",h,Y);c(T.$style())&&(I=["style",T.$style()],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]);break}else if(c(c(m=c(t=A["$include?"]("::"))?t:A["$include?"](";;"))?r(v,"DescriptionListRx")["$=~"](A):m)){d.$unshift_line(A);T=this.$parse_description_list(d,u["~"],h);break}else if(c(c(m=c(t=Y["$=="]("float"))?t:Y["$=="]("discrete"))?c(r(v,"Compliance").$underline_style_section_titles())?this["$is_section_title?"](A,d.$peek_line()):c(t=ja["$!"]())?this["$atx_section_title?"](A):t:m)){d.$unshift_line(A); +t=this.$parse_section_title(d,ma,p["$[]"]("id"));m=a.to_ary(t);aa=null==m[0]?e:m[0];M=null==m[1]?e:m[1];wa=null==m[2]?e:m[2];Ea=null==m[3]?e:m[3];t;c(M)&&(I=["reftext",M],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]);T=r(v,"Block").$new(h,"floating_title",f(["content_model"],{content_model:"empty"}));I=[wa];n(T,"title=",a.to_a(I));I[b(I.length,1)];p.$delete("title");I=[c(m=aa)?m:c(O["$key?"]("sectids"))?r(v,"Section").$generate_id(T.$title(),ma):e];n(T,"id=",a.to_a(I));I[b(I.length,1)];I=[Ea];n(T,"level=", +a.to_a(I));I[b(I.length,1)];break}else if(c(c(m=Y)?Y["$!="]("normal"):m))if(c(r(v,"PARAGRAPH_STYLES")["$include?"](Y))){G=Y.$to_sym();U="paragraph";d.$unshift_line(A);break}else if(c(r(v,"ADMONITION_STYLES")["$include?"](Y))){G="admonition";U="paragraph";d.$unshift_line(A);break}else if(c(c(m=D)?L["$registered_for_block?"](Y,"paragraph"):m)){G=Y.$to_sym();U="paragraph";d.$unshift_line(A);break}else c(this.$logger()["$debug?"]())&&this.$logger().$debug(this.$message_with_context("unknown style for paragraph: "+ +Y,f(["source_location"],{source_location:d.$cursor_at_mark()}))),Y=e;d.$unshift_line(A);if(c(c(m=ja)?Y["$!"]():m))V=this.$read_paragraph_lines(d,P=F["$=="](0)?q["$[]"]("list_type"):e,f(["skip_line_comments"],{skip_line_comments:y})),this["$adjust_indentation!"](V),T=c(c(m=y)?m:P["$=="]("dlist"))?r(v,"Block").$new(h,"paragraph",f(["content_model","source","attributes"],{content_model:"simple",source:V,attributes:p})):r(v,"Block").$new(h,"literal",f(["content_model","source","attributes"],{content_model:"verbatim", +source:V,attributes:p}));else{V=this.$read_paragraph_lines(d,(m=F["$=="](0))?q["$[]"]("list_type"):F["$=="](0),f(["skip_line_comments"],{skip_line_comments:!0}));if(c(y)){if(c(c(m=ja)?Y["$=="]("normal"):m))this["$adjust_indentation!"](V);T=r(v,"Block").$new(h,"paragraph",f(["content_model","source","attributes"],{content_model:"simple",source:V,attributes:p}))}else if(c(c(m=c(t=r(v,"ADMONITION_STYLE_HEADS")["$include?"](ea))?A["$include?"](":"):t)?r(v,"AdmonitionParagraphRx")["$=~"](A):m))I=[0,(m= +u["~"])===e?e:m.$post_match()],n(V,"[]=",a.to_a(I)),I[b(I.length,1)],I=["name",Q=(I=["style",(m=u["~"])===e?e:m["$[]"](1)],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]).$downcase()],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],I=["textlabel",c(m=p.$delete("caption"))?m:O["$[]"](""+Q+"-caption")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],T=r(v,"Block").$new(h,"admonition",f(["content_model","source","attributes"],{content_model:"simple",source:V,attributes:p}));else if(c(c(m=c(t=xa)?ea["$=="](">"):t)?A["$start_with?"]("> "): +m)){n(V,"map!",[],(z=function(a){null==a&&(a=e);return a["$=="](">")?a.$slice(1,a.$length()):c(a["$start_with?"]("> "))?a.$slice(2,a.$length()):a},z.$$s=this,z.$$arity=1,z));if(c(V["$[]"](-1)["$start_with?"]("-- "))&&(ya=(ya=V.$pop()).$slice(3,ya.$length()),!c(V["$empty?"]())))for(;c(V["$[]"](-1)["$empty?"]());)V.$pop();I=["style","quote"];n(p,"[]=",a.to_a(I));I[b(I.length,1)];T=this.$build_block("quote","compound",!1,h,r(v,"Reader").$new(V),p);c(ya)&&(t=T.$apply_subs(ya).$split(", ",2),m=a.to_ary(t), +Ja=null==m[0]?e:m[0],Ma=null==m[1]?e:m[1],t,c(Ja)&&(I=["attribution",Ja],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),c(Ma)&&(I=["citetitle",Ma],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]))}else if(c(c(m=c(t=(C=ea["$=="]('"'))?l(V.$size(),1):ea["$=="]('"'))?V["$[]"](-1)["$start_with?"]("-- "):t)?V["$[]"](-2)["$end_with?"]('"'):m)){I=[0,A.$slice(1,A.$length())];n(V,"[]=",a.to_a(I));I[b(I.length,1)];for(ya=(ya=V.$pop()).$slice(3,ya.$length());c(V["$[]"](-1)["$empty?"]());)V.$pop();V["$<<"](V.$pop().$chop());I= +["style","quote"];n(p,"[]=",a.to_a(I));I[b(I.length,1)];T=r(v,"Block").$new(h,"quote",f(["content_model","source","attributes"],{content_model:"simple",source:V,attributes:p}));t=T.$apply_subs(ya).$split(", ",2);m=a.to_ary(t);Ja=null==m[0]?e:m[0];Ma=null==m[1]?e:m[1];t;c(Ja)&&(I=["attribution",Ja],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]);c(Ma)&&(I=["citetitle",Ma],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])}else{if(c(c(m=ja)?Y["$=="]("normal"):m))this["$adjust_indentation!"](V);T=r(v,"Block").$new(h,"paragraph", +f(["content_model","source","attributes"],{content_model:"simple",source:V,attributes:p}))}this.$catalog_inline_anchors(V.$join(r(v,"LF")),T,ma,d)}break}if(!c(T))if(ca=G,"listing"["$==="](ca)||"source"["$==="](ca))c(c(w=G["$=="]("source"))?w:c(m=p["$[]"](1)["$!"]())?za=c(t=p["$[]"](2))?t:O["$[]"]("source-language"):m)&&(c(za)?(I=["style","source"],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],I=["language",za],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],r(v,"AttributeList").$rekey(p,[e,e,"linenums"])):(r(v,"AttributeList").$rekey(p, +[e,"language","linenums"]),!c(p["$key?"]("language"))&&c(O["$key?"]("source-language"))&&(I=["language",O["$[]"]("source-language")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])),!c(p["$key?"]("linenums"))&&c(c(w=p["$[]"]("linenums-option"))?w:O["$[]"]("source-linenums-option"))&&(I=["linenums",""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),!c(p["$key?"]("indent"))&&c(O["$key?"]("source-indent"))&&(I=["indent",O["$[]"]("source-indent")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])),T=this.$build_block("listing", +"verbatim",J,h,d,p);else if("fenced_code"["$==="](ca))I=["style","source"],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],c(l(na=A.$length(),3))&&(c(S=(za=A.$slice(3,na)).$index(","))?c(l(S,0))?(za=za.$slice(0,S).$strip(),c(k(S,b(na,4)))&&(I=["linenums",""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])):c(l(na,4))&&(I=["linenums",""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]):za=za.$lstrip()),c(za["$nil_or_empty?"]())?c(O["$key?"]("source-language"))&&(I=["language",O["$[]"]("source-language")],n(p,"[]=",a.to_a(I)), +I[b(I.length,1)]):(I=["language",za],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),!c(p["$key?"]("linenums"))&&c(c(w=p["$[]"]("linenums-option"))?w:O["$[]"]("source-linenums-option"))&&(I=["linenums",""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),!c(p["$key?"]("indent"))&&c(O["$key?"]("source-indent"))&&(I=["indent",O["$[]"]("source-indent")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),J=J.$slice(0,3),T=this.$build_block("listing","verbatim",J,h,d,p);else if("table"["$==="](ca))Ua=d.$cursor(),Ba=r(v,"Reader").$new(d.$read_lines_until(f(["terminator", +"skip_line_comments","context","cursor"],{terminator:J,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Ua),c(J["$start_with?"]("|","!"))||(c(w=p["$[]"]("format"))?w:(I=["format",c(J["$start_with?"](","))?"csv":"dsv"],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])),T=this.$parse_table(Ba,h,p);else if("sidebar"["$==="](ca))T=this.$build_block(G,"compound",J,h,d,p);else if("admonition"["$==="](ca))I=["name",Q=Y.$downcase()],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],I=["textlabel",c(w=p.$delete("caption"))? +w:O["$[]"](""+Q+"-caption")],n(p,"[]=",a.to_a(I)),I[b(I.length,1)],T=this.$build_block(G,"compound",J,h,d,p);else if("open"["$==="](ca)||"abstract"["$==="](ca)||"partintro"["$==="](ca))T=this.$build_block("open","compound",J,h,d,p);else if("literal"["$==="](ca))T=this.$build_block(G,"verbatim",J,h,d,p);else if("example"["$==="](ca))c(p["$[]"]("collapsible-option"))&&(I=["caption",""],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),T=this.$build_block(G,"compound",J,h,d,p);else if("quote"["$==="](ca)||"verse"["$==="](ca))r(v, +"AttributeList").$rekey(p,[e,"attribution","citetitle"]),T=this.$build_block(G,G["$=="]("verse")?"verbatim":"compound",J,h,d,p);else if("stem"["$==="](ca)||"latexmath"["$==="](ca)||"asciimath"["$==="](ca))G["$=="]("stem")&&(I=["style",r(v,"STEM_TYPE_ALIASES")["$[]"](c(w=p["$[]"](2))?w:O["$[]"]("stem"))],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),T=this.$build_block("stem","raw",J,h,d,p);else if("pass"["$==="](ca))T=this.$build_block(G,"raw",J,h,d,p);else{if("comment"["$==="](ca))return this.$build_block(G, +"skip",J,h,d,p),p.$clear(),e;if(c(c(w=D)?ta=L["$registered_for_block?"](G,U):w)){if((La=(ka=ta.$config())["$[]"]("content_model"))["$=="]("skip")||(c((Oa=c(w=ka["$[]"]("positional_attrs"))?w:ka["$[]"]("pos_attrs"))["$nil_or_empty?"]())||r(v,"AttributeList").$rekey(p,g([e],Oa)),c(Ga=ka["$[]"]("default_attrs"))&&n(Ga,"each",[],(E=function(d,f){var g;null==d&&(d=e);null==f&&(f=e);return c(g=p["$[]"](d))?g:(I=[d,f],n(p,"[]=",a.to_a(I)),I[b(I.length,1)])},E.$$s=this,E.$$arity=2,E)),I=["cloaked-context", +U],n(p,"[]=",a.to_a(I)),I[b(I.length,1)]),!c(T=this.$build_block(G,La,J,h,d,p,f(["extension"],{extension:ta}))))return p.$clear(),e}else this.$raise("Unsupported block type "+G+" at "+d.$cursor())}c(ma.$sourcemap())&&(I=[d.$cursor_at_mark()],n(T,"source_location=",a.to_a(I)),I[b(I.length,1)]);c(p["$[]"]("title"))&&(I=[wa=p.$delete("title")],n(T,"title=",a.to_a(I)),I[b(I.length,1)],c(r(v,"CAPTION_ATTRIBUTE_NAMES")["$[]"](T.$context()))&&T.$assign_caption(p.$delete("caption")));I=[p["$[]"]("style")]; +n(T,"style=",a.to_a(I));I[b(I.length,1)];c(ha=c(w=T.$id())?w:(I=[p["$[]"]("id")],n(T,"id=",a.to_a(I)),I[b(I.length,1)]))&&(c(c(wa)?wa["$include?"](r(v,"ATTR_REF_HEAD")):T["$title?"]())&&T.$title(),c(ma.$register("refs",[ha,T]))||this.$logger().$warn(this.$message_with_context("id assigned to block already in use: "+ha,f(["source_location"],{source_location:d.$cursor_at_mark()}))));c(p["$empty?"]())||T.$update_attributes(p);T.$commit_subs();c(T["$sub?"]("callouts"))&&!c(this.$catalog_callouts(T.$source(), +ma))&&T.$remove_sub("callouts");return T}catch(kb){if(kb===a.returner)return kb.$v;throw kb;}},D.$$arity=-3);a.defs(d,"$read_paragraph_lines",A=function(e,d,g){null==g&&(g=f([],{}));var h=["break_on_blank_lines",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];h=["break_on_list_continuation",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];h=["preserve_last_line",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];d=c(d)?c(r(v,"Compliance").$block_terminates_paragraph())?r(v,"StartOfBlockOrListProc"):r(v,"StartOfListProc"): +c(r(v,"Compliance").$block_terminates_paragraph())?r(v,"StartOfBlockProc"):r(v,"NoOp");return n(e,"read_lines_until",[g],d.$to_proc())},A.$$arity=-3);a.defs(d,"$is_delimited_block?",O=function(d,f){var g,h;null==f&&(f=e);if(!c(c(g=l(h=d.$length(),1))?r(v,"DELIMITED_BLOCK_HEADS")["$[]"](d.$slice(0,2)):g))return e;if(h["$=="](2)){var n=d;var w=2}else if(c(k(h,5))?(n=d,w=h):n=d.$slice(0,w=4),c(c(g=r(v,"Compliance").$markdown_syntax())?n["$start_with?"]("`"):g))if(w["$=="](4)){if(c(c(g=n["$=="]("````"))? +g:(n=n.$chop())["$!="]("```")))return e;d=n;h=w=3}else{if(c(n["$!="]("```")))return e}else if(w["$=="](3))return e;var p=r(v,"DELIMITED_BLOCKS")["$[]"](n);g=a.to_ary(p);var m=null==g[0]?e:g[0];var q=null==g[1]?e:g[1];p;return c(c(g=m)?c(p=h["$=="](w))?p:this["$uniform?"](d.$slice(1,h),r(v,"DELIMITED_BLOCK_TAILS")["$[]"](n),b(h,1)):g)?c(f)?r(v,"BlockMatchData").$new(m,q,n,d):!0:e},O.$$arity=-2);a.defs(d,"$build_block",G=function(a,b,d,g,h,n,k){var w,p,m,q,t=e;null==k&&(k=f([],{}));var C=b;"skip"["$==="](C)? +(w=[!0,"simple"],m=w[0],q=w[1]):"raw"["$==="](C)?(w=[!1,"simple"],m=w[0],q=w[1]):(w=[!1,b],m=w[0],q=w[1]);w;c(d["$nil?"]())?(q["$=="]("verbatim")?q=h.$read_lines_until(f(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(b["$=="]("compound")&&(b="simple"),q=this.$read_paragraph_lines(h,!1,f(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:m}))),d=e):c(q["$!="]("compound"))?(q=h.$read_lines_until(f(["terminator", +"skip_processing","context","cursor"],{terminator:d,skip_processing:m,context:a,cursor:"at_mark"})),d=e):d["$=="](!1)?(q=e,d=h):(q=e,C=h.$cursor(),d=r(v,"Reader").$new(h.$read_lines_until(f(["terminator","skip_processing","context","cursor"],{terminator:d,skip_processing:m,context:a,cursor:"at_mark"})),C));C=b;if("verbatim"["$==="](C))if(h=(c(w=n["$[]"]("tabsize"))?w:g.$document().$attributes()["$[]"]("tabsize")).$to_i(),c(C=n["$[]"]("indent")))this["$adjust_indentation!"](q,C.$to_i(),h);else{if(c(l(h, +0)))this["$adjust_indentation!"](q,-1,h)}else if("skip"["$==="](C))return e;if(c(k=k["$[]"]("extension")))if(n.$delete("style"),c(c(w=t=k.$process_method()["$[]"](g,c(p=d)?p:r(v,"Reader").$new(q),n.$merge()))?t["$!="](g):w))n.$replace(t.$attributes()),c(c(w=t.$content_model()["$=="]("compound")?r(v,"Block")["$==="](t):t.$content_model()["$=="]("compound"))?(q=t.$lines())["$empty?"]()["$!"]():w)&&(b="compound",d=r(v,"Reader").$new(q));else return e;else t=r(v,"Block").$new(g,a,f(["content_model","source", +"attributes"],{content_model:b,source:q,attributes:n}));b["$=="]("compound")&&this.$parse_blocks(d,t);return t},G.$$arity=-7);a.defs(d,"$parse_blocks",U=function(a,b,d){var f,g,h=e;null==d&&(d=e);if(c(d))for(;c(c(f=c(g=h=this.$next_block(a,b,d.$merge()))?b.$blocks()["$<<"](h):g)?f:a["$has_more_lines?"]()););else for(;c(c(f=c(g=h=this.$next_block(a,b))?b.$blocks()["$<<"](h):g)?f:a["$has_more_lines?"]()););return e},U.$$arity=-3);a.defs(d,"$parse_list",J=function(a,b,d,f){var g,h;null==u["~"]&&(u["~"]= +e);d=r(v,"List").$new(d,b);for(b=r(v,"ListRxMap")["$[]"](b);c(c(g=a["$has_more_lines?"]())?b["$=~"](a.$peek_line()):g);){if(c(h=this.$parse_list_item(a,d,u["~"],(g=u["~"])===e?e:g["$[]"](1),f)))d.$items()["$<<"](h);if(c(g=a.$skip_blank_lines()))g;else break}return d},J.$$arity=4);a.defs(d,"$catalog_callouts",K=function(a,b){var d,f=e,h=e;f=!1;h=0;c(a["$include?"]("<"))&&n(a,"scan",[r(v,"CalloutScanRx")],(d=function(){var a;c(((a=u["~"])===e?e:a["$[]"](0))["$start_with?"]("\\"))||b.$callouts().$register(((a= +u["~"])===e?e:a["$[]"](2))["$=="](".")?(h=g(h,1)).$to_s():(a=u["~"])===e?e:a["$[]"](2));return f=!0},d.$$s=this,d.$$arity=0,d));return f},K.$$arity=2);a.defs(d,"$catalog_inline_anchor",I=function(a,b,d,g,h){var n;null==h&&(h=d.$document());c(c(n=b)?b["$include?"](r(v,"ATTR_REF_HEAD")):n)&&(b=h.$sub_attributes(b));c(h.$register("refs",[a,r(v,"Inline").$new(d,"anchor",b,f(["type","id"],{type:"ref",id:a}))]))||(c(r(v,"Reader")["$==="](g))&&(g=g.$cursor()),this.$logger().$warn(this.$message_with_context("id assigned to anchor already in use: "+ +a,f(["source_location"],{source_location:g}))));return e},I.$$arity=-5);a.defs(d,"$catalog_inline_anchors",W=function(a,b,d,h){var k,w;c(c(k=a["$include?"]("[["))?k:a["$include?"]("or:"))&&n(a,"scan",[r(v,"InlineAnchorScanRx")],(w=function(){var a=w.$$s||this,n,k,p,m,q=e,t=e;if(c(m=(n=u["~"])===e?e:n["$[]"](1))){if(c(c(n=c(k=q=(p=u["~"])===e?e:p["$[]"](2))?q["$include?"](r(v,"ATTR_REF_HEAD")):k)?(q=d.$sub_attributes(q))["$empty?"]():n))return e}else if(m=(n=u["~"])===e?e:n["$[]"](3),c(q=(n=u["~"])=== +e?e:n["$[]"](4)))if(c(q["$include?"]("]")))q=q.$gsub("\\]","]"),c(q["$include?"](r(v,"ATTR_REF_HEAD")))&&(q=d.$sub_attributes(q));else if(c(c(n=q["$include?"](r(v,"ATTR_REF_HEAD")))?(q=d.$sub_attributes(q))["$empty?"]():n))return e;if(c(d.$register("refs",[m,r(v,"Inline").$new(b,"anchor",q,f(["type","id"],{type:"ref",id:m}))])))return e;k=h.$cursor_at_mark();c(l(t=g(((n=u["~"])===e?e:n.$pre_match()).$count(r(v,"LF")),c(((n=u["~"])===e?e:n["$[]"](0))["$start_with?"](r(v,"LF")))?1:0),0))&&(k=k.$dup()).$advance(t); +return a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+m,f(["source_location"],{source_location:k})))},w.$$s=this,w.$$arity=0,w));return e},W.$$arity=4);a.defs(d,"$catalog_inline_biblio_anchor",H=function(a,b,d,g){c(d.$document().$register("refs",[a,r(v,"Inline").$new(d,"anchor",c(b)?"["+b+"]":b,f(["type","id"],{type:"bibref",id:a}))]))||this.$logger().$warn(this.$message_with_context("id assigned to bibliography anchor already in use: "+a,f(["source_location"], +{source_location:g.$cursor()})));return e},H.$$arity=4);a.defs(d,"$parse_description_list",pa=function(d,f,g){var h;null==u["~"]&&(u["~"]=e);g=r(v,"List").$new(g,"dlist");var k=r(v,"DescriptionListSiblingRx")["$[]"](f["$[]"](2));for(g.$items()["$<<"](f=this.$parse_list_item(d,g,f,k));c(c(h=d["$has_more_lines?"]())?k["$=~"](d.$peek_line()):h);){var w=this.$parse_list_item(d,g,u["~"],k);if(c(f["$[]"](1)))g.$items()["$<<"](f=w);else f["$[]"](0)["$<<"](w["$[]"](0)["$[]"](0)),w=[1,w["$[]"](1)],n(f,"[]=", +a.to_a(w)),w[b(w.length,1)]}return g},pa.$$arity=3);a.defs(d,"$parse_callout_list",Ca=function(d,h,k,l){var w,p,m,q;k=r(v,"List").$new(k,"colist");var t=1;for(m=0;c(c(w=h)?w:c(p=h=r(v,"CalloutListRx").$match(d.$peek_line()))?d.$mark():p);)(q=h["$[]"](1))["$=="](".")&&(q=(m=g(m,1)).$to_s()),q["$=="](t.$to_s())||this.$logger().$warn(this.$message_with_context("callout list item index: expected "+t+", got "+q,f(["source_location"],{source_location:d.$cursor_at_mark()}))),c(h=this.$parse_list_item(d, +k,h,"<1>"))&&(k.$items()["$<<"](h),c((q=l.$callout_ids(k.$items().$size()))["$empty?"]())?this.$logger().$warn(this.$message_with_context("no callout found for <"+k.$items().$size()+">",f(["source_location"],{source_location:d.$cursor_at_mark()}))):(q=["coids",q],n(h.$attributes(),"[]=",a.to_a(q)),q[b(q.length,1)])),t=g(t,1),h=e;l.$next_list();return k},Ca.$$arity=4);a.defs(d,"$parse_list_item",ba=function(d,g,h,k,l){var w,p,m,q=e,t=e,C,x=e,z=e,N,E=e,F=e;null==l&&(l=e);if((m=g.$context())["$=="]("dlist")){if(q= +!0,t=r(v,"ListItem").$new(g,l=h["$[]"](1)),c(c(w=l["$start_with?"]("[["))?r(v,"LeadingInlineAnchorRx")["$=~"](l):w)&&this.$catalog_inline_anchor((w=u["~"])===e?e:w["$[]"](1),c(w=(p=u["~"])===e?e:p["$[]"](2))?w:((p=u["~"])===e?e:p.$post_match()).$lstrip(),t,d),c(C=h["$[]"](3))&&(x=!0),h=r(v,"ListItem").$new(g,C),c(g.$document().$sourcemap())){var y=[d.$cursor()];n(t,"source_location=",a.to_a(y));y[b(y.length,1)];c(x)?(y=[t.$source_location()],n(h,"source_location=",a.to_a(y)),y[b(y.length,1)]):z=!0}}else if(x= +!0,h=r(v,"ListItem").$new(g,C=h["$[]"](2)),c(g.$document().$sourcemap())&&(y=[d.$cursor()],n(h,"source_location=",a.to_a(y)),y[b(y.length,1)]),"ulist"["$==="](m))y=[k],n(h,"marker=",a.to_a(y)),y[b(y.length,1)],c(C["$start_with?"]("["))&&(c(c(w=l)?l["$=="]("bibliography"):w)?c(r(v,"InlineBiblioAnchorRx")["$=~"](C))&&this.$catalog_inline_biblio_anchor((w=u["~"])===e?e:w["$[]"](1),(w=u["~"])===e?e:w["$[]"](2),h,d):c(C["$start_with?"]("[["))?c(r(v,"LeadingInlineAnchorRx")["$=~"](C))&&this.$catalog_inline_anchor((w= +u["~"])===e?e:w["$[]"](1),(w=u["~"])===e?e:w["$[]"](2),h,d):c(C["$start_with?"]("[ ] ","[x] ","[*] "))&&(g.$set_option("checklist"),y=["checkbox",""],n(h.$attributes(),"[]=",a.to_a(y)),y[b(y.length,1)],c(C["$start_with?"]("[ "))||(y=["checked",""],n(h.$attributes(),"[]=",a.to_a(y)),y[b(y.length,1)]),y=[C.$slice(4,C.$length())],n(h,"text=",a.to_a(y)),y[b(y.length,1)]));else{if("olist"["$==="](m)){p=this.$resolve_ordered_list_marker(k,N=g.$items().$size(),!0,d);w=a.to_ary(p);k=null==w[0]?e:w[0];var I= +null==w[1]?e:w[1];p;y=[k];n(h,"marker=",a.to_a(y));y[b(y.length,1)];c((w=N["$=="](0))?l["$!"]():N["$=="](0))&&(y=[c(w=I)?w:(c(p=r(v,"ORDERED_LIST_STYLES")["$[]"](b(k.$length(),1)))?p:"arabic").$to_s()],n(g,"style=",a.to_a(y)),y[b(y.length,1)])}else y=[k],n(h,"marker=",a.to_a(y)),y[b(y.length,1)];c(c(w=C["$start_with?"]("[["))?r(v,"LeadingInlineAnchorRx")["$=~"](C):w)&&this.$catalog_inline_anchor((w=u["~"])===e?e:w["$[]"](1),(w=u["~"])===e?e:w["$[]"](2),h,d)}d.$shift();g=d.$cursor();d=r(v,"Reader").$new(this.$read_lines_for_list_item(d, +m,k,x),g);if(c(d["$has_more_lines?"]())){c(z)&&(y=[g],n(h,"source_location=",a.to_a(y)),y[b(y.length,1)]);z=d.$skip_line_comments();c(k=d.$peek_line())&&(c(z["$empty?"]())||d.$unshift_lines(z),c(k["$empty?"]())||(E=!0,c(q)||(x=e)));if(c(x=this.$next_block(d,h,f([],{}),f(["text_only","list_type"],{text_only:c(x)?e:!0,list_type:m}))))h.$blocks()["$<<"](x);for(;c(d["$has_more_lines?"]());)if(c(x=this.$next_block(d,h,f([],{}),f(["list_type"],{list_type:m}))))h.$blocks()["$<<"](x);c(c(w=c(p=E)?F=h.$blocks()["$[]"](0): +p)?F.$context()["$=="]("paragraph"):w)&&h.$fold_first()}return c(q)?[[t],c(c(w=h["$text?"]())?w:h["$blocks?"]())?h:e]:h},ba.$$arity=-5);a.defs(d,"$read_lines_for_list_item",na=function(d,g,h,k){var w,l,p,m,q,t,x,C=e,z=e,y=e,E=e,F=e,I=e,L=e,A=e;z=L=A=e;null==h&&(h=e);null==k&&(k=!0);C=[];z="inactive";y=!1;E=e;for(F=g["$=="]("dlist");c(d["$has_more_lines?"]());){I=d.$read_line();if(c(this["$is_sibling_list_item?"](I,g,h)))break;L=c(C["$empty?"]())?e:C["$[]"](-1);if(L["$=="](r(v,"LIST_CONTINUATION"))&& +(z["$=="]("inactive")&&(z="active",k=!0,c(y)||(A=[-1,""],n(C,"[]=",a.to_a(A)),A[b(A.length,1)])),I["$=="](r(v,"LIST_CONTINUATION")))){c(z["$!="]("frozen"))&&(z="frozen",C["$<<"](I));I=e;continue}if(c(A=this["$is_delimited_block?"](I,!0)))if(z["$=="]("active"))C["$<<"](I),C.$concat(d.$read_lines_until(f(["terminator","read_last_line","context"],{terminator:A.$terminator(),read_last_line:!0,context:e}))),z="inactive";else break;else if(c(c(w=c(l=F)?z["$!="]("active"):l)?r(v,"BlockAttributeLineRx")["$match?"](I): +w))break;else if(c((w=z["$=="]("active"))?I["$empty?"]()["$!"]():z["$=="]("active")))if(c(r(v,"LiteralParagraphRx")["$match?"](I)))d.$unshift_line(I),c(F)?C.$concat(n(d,"read_lines_until",[f(["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})],(p=function(a){var b=p.$$s||this;null==a&&(a=e);return b["$is_sibling_list_item?"](a,g,h)},p.$$s=this,p.$$arity=1,p))):C.$concat(d.$read_lines_until(f(["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}))),z="inactive";else if(c(c(w=c(l=r(v,"BlockTitleRx")["$match?"](I))?l:r(v,"BlockAttributeLineRx")["$match?"](I))?w:r(v,"AttributeEntryRx")["$match?"](I)))C["$<<"](I);else c(L=n(c(y)?["dlist"]:r(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(m=function(a){null==a&&(a=e);return r(v,"ListRxMap")["$[]"](a)["$match?"](I)},m.$$s=this,m.$$arity=1,m)))&&(y=!0,c((w=L["$=="]("dlist"))? +((l=u["~"])===e?e:l["$[]"](3))["$nil_or_empty?"]():L["$=="]("dlist"))&&(k=!1)),C["$<<"](I),z="inactive";else if(c(c(w=L)?L["$empty?"]():w)){if(c(I["$empty?"]())){if(!c(I=c(w=d.$skip_blank_lines())?d.$read_line():w))break;if(c(this["$is_sibling_list_item?"](I,g,h)))break}if(I["$=="](r(v,"LIST_CONTINUATION")))E=C.$size(),C["$<<"](I);else if(c(k))if(c(this["$is_sibling_list_item?"](I,g,h)))break;else if(c(L=n(r(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(q=function(a){null==a&&(a=e);return r(v,"ListRxMap")["$[]"](a)["$=~"](I)}, +q.$$s=this,q.$$arity=1,q))))C["$<<"](I),y=!0,c((w=L["$=="]("dlist"))?((l=u["~"])===e?e:l["$[]"](3))["$nil_or_empty?"]():L["$=="]("dlist"))&&(k=!1);else if(c(r(v,"LiteralParagraphRx")["$match?"](I)))d.$unshift_line(I),c(F)?C.$concat(n(d,"read_lines_until",[f(["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})],(t=function(a){var b=t.$$s||this;null==a&&(a=e);return b["$is_sibling_list_item?"](a,g,h)}, +t.$$s=this,t.$$arity=1,t))):C.$concat(d.$read_lines_until(f(["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 break;else c(y)||C.$pop(),C["$<<"](I),k=!0}else c(I["$empty?"]())||(k=!0),c(L=n(c(y)?["dlist"]:r(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(x=function(a){null==a&&(a=e);return r(v,"ListRxMap")["$[]"](a)["$=~"](I)},x.$$s=this,x.$$arity=1,x)))&&(y=!0,c((w=L["$=="]("dlist"))?((l=u["~"])=== +e?e:l["$[]"](3))["$nil_or_empty?"]():L["$=="]("dlist"))&&(k=!1)),C["$<<"](I);I=e}c(I)&&d.$unshift_line(I);c(E)&&(A=[E,""],n(C,"[]=",a.to_a(A)),A[b(A.length,1)]);for(;!c(C["$empty?"]());)if(c((z=C["$[]"](-1))["$empty?"]()))C.$pop();else{z["$=="](r(v,"LIST_CONTINUATION"))&&C.$pop();break}return C},na.$$arity=-3);a.defs(d,"$initialize_section",qa=function(d,g,h){var k,w=e,p=e,m=e,q=e,t=e;null==h&&(h=f([],{}));var C=g.$document();var x=(k=C.$doctype())["$=="]("book");c(C.$sourcemap())&&(w=d.$cursor()); +var u=h["$[]"](1);var z=this.$parse_section_title(d,C,h["$[]"]("id"));var y=a.to_ary(z);var E=null==y[0]?e:y[0];var F=null==y[1]?e:y[1];var I=null==y[2]?e:y[2];var L=null==y[3]?e:y[3];var A=null==y[4]?e:y[4];z;c(u)?c(c(y=x)?u["$=="]("abstract"):y)?(y=["chapter",1],k=y[0],L=y[1],y):c(c(y=u["$start_with?"]("sect"))?r(v,"SectionLevelStyleRx")["$match?"](u):y)?k="section":(y=[u,!0],k=y[0],p=y[1],y,L["$=="](0)&&(L=1),m=k["$=="]("appendix")):c(x)?k=L["$=="](0)?"part":c(l(L,1))?"section":"chapter":c(k["$=="]("manpage")? +I.$casecmp("synopsis")["$=="](0):k["$=="]("manpage"))?(y=["synopsis",!0],k=y[0],p=y[1],y):k="section";c(F)&&(q=["reftext",F],n(h,"[]=",a.to_a(q)),q[b(q.length,1)]);F=r(v,"Section").$new(g,L);y=[E,I,k,w];F["$id="](y[0]);F["$title="](y[1]);F["$sectname="](y[2]);F["$source_location="](y[3]);y;c(p)?(q=[!0],n(F,"special=",a.to_a(q)),q[b(q.length,1)],c(m)?(q=[!0],n(F,"numbered=",a.to_a(q)),q[b(q.length,1)]):C.$attributes()["$[]"]("sectnums")["$=="]("all")&&(q=[c(c(y=x)?L["$=="](1):y)?"chapter":!0],n(F, +"numbered=",a.to_a(q)),q[b(q.length,1)])):c(c(y=C.$attributes()["$[]"]("sectnums"))?l(L,0):y)?(q=[c(F.$special())?c(y=g.$numbered())?!0:y:!0],n(F,"numbered=",a.to_a(q)),q[b(q.length,1)]):c(c(y=c(z=x)?L["$=="](0):z)?C.$attributes()["$[]"]("partnums"):y)&&(q=[!0],n(F,"numbered=",a.to_a(q)),q[b(q.length,1)]);c(g=c(y=F.$id())?y:(q=[c(C.$attributes()["$key?"]("sectids"))?t=r(v,"Section").$generate_id(F.$title(),C):e],n(F,"id=",a.to_a(q)),q[b(q.length,1)]))&&(c(c(y=t)?y:I["$include?"](r(v,"ATTR_REF_HEAD"))["$!"]())|| +F.$title(),c(C.$register("refs",[g,F]))||this.$logger().$warn(this.$message_with_context("id assigned to section already in use: "+g,f(["source_location"],{source_location:d.$cursor_at_line(b(d.$lineno(),c(A)?1:2))}))));F.$update_attributes(h);d.$skip_blank_lines();return F},qa.$$arity=-3);a.defs(d,"$is_next_line_section?",aa=function(a,b){var d,f,g=e;return c(c(d=g=b["$[]"](1))?c(f=g["$=="]("discrete"))?f:g["$=="]("float"):d)?e:c(r(v,"Compliance").$underline_style_section_titles())?(a=a.$peek_lines(2, +c(d=g)?g["$=="]("comment"):d),this["$is_section_title?"](c(d=a["$[]"](0))?d:"",a["$[]"](1))):this["$atx_section_title?"](c(d=a.$peek_line())?d:"")},aa.$$arity=2);a.defs(d,"$is_next_line_doctitle?",M=function(a,b,d){var f,h=e;return c(d)?c(f=h=this["$is_next_line_section?"](a,b))?g(h,d.$to_i())["$=="](0):f:this["$is_next_line_section?"](a,b)["$=="](0)},M.$$arity=3);a.defs(d,"$is_section_title?",P=function(a,b){var d;null==b&&(b=e);return c(d=this["$atx_section_title?"](a))?d:c(b["$nil_or_empty?"]())? +e:this["$setext_section_title?"](a,b)},P.$$arity=-2);a.defs(d,"$atx_section_title?",Q=function(a){var d;return c(c(r(v,"Compliance").$markdown_syntax())?c(d=a["$start_with?"]("=","#"))?r(v,"ExtAtxSectionTitleRx")["$=~"](a):d:c(d=a["$start_with?"]("="))?r(v,"AtxSectionTitleRx")["$=~"](a):d)?b(((d=u["~"])===e?e:d["$[]"](1)).$length(),1):e},Q.$$arity=1);a.defs(d,"$setext_section_title?",S=function(a,d){var f,g,h,n,w=e,l=e;return c(c(f=c(g=c(h=n=r(v,"SETEXT_SECTION_LEVELS")["$[]"](w=d.$chr()))?this["$uniform?"](d, +w,l=d.$length()):h)?r(v,"SetextSectionTitleRx")["$match?"](a):g)?k(b(a.$length(),l).$abs(),2):f)?n:e},S.$$arity=2);a.defs(d,"$parse_section_title",va=function(a,d,f){var h,n,w,l,p,m=e,q=e,t=e,x=e,C=e,z=e;null==f&&(f=e);var y=e;var F=a.$read_line();c(c(r(v,"Compliance").$markdown_syntax())?c(h=F["$start_with?"]("=","#"))?r(v,"ExtAtxSectionTitleRx")["$=~"](F):h:c(h=F["$start_with?"]("="))?r(v,"AtxSectionTitleRx")["$=~"](F):h)?(h=[b(((n=u["~"])===e?e:n["$[]"](1)).$length(),1),(n=u["~"])===e?e:n["$[]"](2), +!0],m=h[0],q=h[1],t=h[2],h,!c(f)&&c(c(h=c(n=q["$end_with?"]("]]"))?r(v,"InlineSectionAnchorRx")["$=~"](q):n)?((n=u["~"])===e?e:n["$[]"](1))["$!"]():h)&&(h=[q.$slice(0,b(q.$length(),((n=u["~"])===e?e:n["$[]"](0)).$length())),(n=u["~"])===e?e:n["$[]"](2),(n=u["~"])===e?e:n["$[]"](3)],q=h[0],f=h[1],y=h[2],h)):c(c(h=c(n=c(w=c(l=c(p=r(v,"Compliance").$underline_style_section_titles())?x=a.$peek_line(!0):p)?m=r(v,"SETEXT_SECTION_LEVELS")["$[]"](C=x.$chr()):l)?this["$uniform?"](x,C,z=x.$length()):w)?q=c(w= +r(v,"SetextSectionTitleRx")["$=~"](F))?(l=u["~"])===e?e:l["$[]"](1):w:n)?k(b(F.$length(),z).$abs(),2):h)?(t=!1,!c(f)&&c(c(h=c(n=q["$end_with?"]("]]"))?r(v,"InlineSectionAnchorRx")["$=~"](q):n)?((n=u["~"])===e?e:n["$[]"](1))["$!"]():h)&&(h=[q.$slice(0,b(q.$length(),((n=u["~"])===e?e:n["$[]"](0)).$length())),(n=u["~"])===e?e:n["$[]"](2),(n=u["~"])===e?e:n["$[]"](3)],q=h[0],f=h[1],y=h[2],h),a.$shift()):this.$raise("Unrecognized section at "+a.$cursor_at_prev_line());c(d["$attr?"]("leveloffset"))&&(m= +g(m,d.$attr("leveloffset").$to_i()),c(k(m,0))&&(m=0));return[f,y,q,m,t]},va.$$arity=-3);a.defs(d,"$parse_header_metadata",ha=function(d,h,k){var w,p,m,q,t=e,x=e,C=e,u=e,z=e,y=e,F=e,E=e,I=e,L=e,A=E=e,D=e,T=e,O=E=I=e,B=e,G=e;null==h&&(h=e);null==k&&(k=!0);t=c(w=h)?h.$attributes():w;this.$process_attribute_entries(d,h);c(c(w=d["$has_more_lines?"]())?d["$next_line_empty?"]()["$!"]():w)?(x=(C=this.$process_authors(d.$read_line())).$delete("authorcount"),c(c(w=h)?l((u=["authorcount",x],n(t,"[]=",a.to_a(u)), +u[b(u.length,1)]),0):w)&&(n(C,"each",[],(p=function(d,f){null==d&&(d=e);null==f&&(f=e);if(c(t["$key?"](d)))return e;u=[d,h.$apply_header_subs(f)];n(t,"[]=",a.to_a(u));return u[b(u.length,1)]},p.$$s=this,p.$$arity=2,p)),z=t["$[]"]("author"),y=t["$[]"]("authorinitials"),F=t["$[]"]("authors")),u=["authorcount",x],n(C,"[]=",a.to_a(u)),u[b(u.length,1)],this.$process_attribute_entries(d,h),c(c(w=d["$has_more_lines?"]())?d["$next_line_empty?"]()["$!"]():w)&&(E=d.$read_line(),c(I=r(v,"RevisionInfoLineRx").$match(E))? +(L=f([],{}),c(I["$[]"](1))&&(u=["revnumber",I["$[]"](1).$rstrip()],n(L,"[]=",a.to_a(u)),u[b(u.length,1)]),c((E=I["$[]"](2).$strip())["$empty?"]())||(u=c(c(w=I["$[]"](1)["$!"]())?E["$start_with?"]("v"):w)?["revnumber",E.$slice(1,E.$length())]:["revdate",E],n(L,"[]=",a.to_a(u)),u[b(u.length,1)]),c(I["$[]"](3))&&(u=["revremark",I["$[]"](3).$rstrip()],n(L,"[]=",a.to_a(u)),u[b(u.length,1)]),c(c(w=h)?L["$empty?"]()["$!"]():w)&&n(L,"each",[],(m=function(d,f){null==d&&(d=e);null==f&&(f=e);if(c(t["$key?"](d)))return e; +u=[d,h.$apply_header_subs(f)];n(t,"[]=",a.to_a(u));return u[b(u.length,1)]},m.$$s=this,m.$$arity=2,m))):d.$unshift_line(E)),this.$process_attribute_entries(d,h),d.$skip_blank_lines()):C=f([],{});if(c(h)){if(c(c(w=t["$key?"]("author"))?(A=t["$[]"]("author"))["$!="](z):w))D=this.$process_authors(A,!0,!1),c(t["$[]"]("authorinitials")["$!="](y))&&D.$delete("authorinitials");else if(c(c(w=t["$key?"]("authors"))?(A=t["$[]"]("authors"))["$!="](F):w))D=this.$process_authors(A,!0);else{w=[[],1,"author_1", +!1,!1];T=w[0];I=w[1];E=w[2];O=w[3];B=w[4];for(w;c(t["$key?"](E));)(G=t["$[]"](E))["$=="](C["$[]"](E))?(T["$<<"](e),B=!0):(T["$<<"](G),O=!0),E="author_"+(I=g(I,1));c(O)?(c(B)&&n(T,"each_with_index",[],(q=function(d,f){var h=q.$$s||this,k,w=e;null==d&&(d=e);null==f&&(f=e);if(c(d))return e;u=[f,n([C["$[]"]("firstname_"+(w=g(f,1))),C["$[]"]("middlename_"+w),C["$[]"]("lastname_"+w)].$compact(),"map",[],(k=function(a){null==a&&(a=e);return a.$tr(" ","_")},k.$$s=h,k.$$arity=1,k)).$join(" ")];n(T,"[]=",a.to_a(u)); +return u[b(u.length,1)]},q.$$s=this,q.$$arity=2,q)),D=this.$process_authors(T,!0,!1)):D=f(["authorcount"],{authorcount:0})}D["$[]"]("authorcount")["$=="](0)?c(x)?D=e:(u=["authorcount",0],n(t,"[]=",a.to_a(u)),u[b(u.length,1)]):(t.$update(D),c(c(w=t["$key?"]("email")["$!"]())?t["$key?"]("email_1"):w)&&(u=["email",t["$[]"]("email_1")],n(t,"[]=",a.to_a(u)),u[b(u.length,1)]))}return c(k)?C.$merge(L.$to_h(),D.$to_h()):e},ha.$$arity=-2);a.defs(d,"$process_authors",Aa=function(d,h,k){var w,l,p=e,m=e,q=e; +null==h&&(h=!1);null==k&&(k=!0);p=f([],{});m=0;n(c(c(w=k)?d["$include?"](";"):w)?d.$split(r(v,"AuthorDelimiterRx")):[].concat(a.to_a(d)),"each",[],(l=function(d){var k=l.$$s||this,w,q,t,u,x=e,C=e,z=e,y=e,E=e,F=e,N=e,I=e;null==d&&(d=e);if(c(d["$empty?"]()))return e;x=f([],{});(m=g(m,1))["$=="](1)?n(r(v,"AuthorKeys"),"each",[],(w=function(c){null==c&&(c=e);c=[c.$to_sym(),c];n(x,"[]=",a.to_a(c));return c[b(c.length,1)]},w.$$s=k,w.$$arity=1,w)):n(r(v,"AuthorKeys"),"each",[],(q=function(c){null==c&&(c= +e);c=[c.$to_sym(),""+c+"_"+m];n(x,"[]=",a.to_a(c));return c[b(c.length,1)]},q.$$s=k,q.$$arity=1,q));if(c(h)){if(c(d["$include?"]("<"))&&(C=[x["$[]"]("author"),d.$tr("_"," ")],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],d=d.$gsub(r(v,"XmlSanitizeRx"),"")),(z=d.$split(e,3)).$size()["$=="](3))z["$<<"](z.$pop().$squeeze(" "))}else c(y=r(v,"AuthorInfoLineRx").$match(d))&&(z=y.$to_a()).$shift();c(z)?(E=(C=[x["$[]"]("firstname"),F=z["$[]"](0).$tr("_"," ")],n(p,"[]=",a.to_a(C)),C[b(C.length,1)]),C=[x["$[]"]("authorinitials"), +F.$chr()],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],c(z["$[]"](1))&&(c(z["$[]"](2))?(C=[x["$[]"]("middlename"),N=z["$[]"](1).$tr("_"," ")],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],C=[x["$[]"]("lastname"),I=z["$[]"](2).$tr("_"," ")],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],E=g(g(g(g(F," "),N)," "),I),C=[x["$[]"]("authorinitials"),""+F.$chr()+N.$chr()+I.$chr()]):(C=[x["$[]"]("lastname"),I=z["$[]"](1).$tr("_"," ")],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],E=g(g(F," "),I),C=[x["$[]"]("authorinitials"),""+F.$chr()+ +I.$chr()]),n(p,"[]=",a.to_a(C)),C[b(C.length,1)]),c(t=p["$[]"](x["$[]"]("author")))?t:(C=[x["$[]"]("author"),E],n(p,"[]=",a.to_a(C)),C[b(C.length,1)]),c(c(t=h)?t:z["$[]"](3)["$!"]())||(C=[x["$[]"]("email"),z["$[]"](3)],n(p,"[]=",a.to_a(C)),C[b(C.length,1)])):(C=[x["$[]"]("author"),(C=[x["$[]"]("firstname"),F=d.$squeeze(" ").$strip()],n(p,"[]=",a.to_a(C)),C[b(C.length,1)])],n(p,"[]=",a.to_a(C)),C[b(C.length,1)],C=[x["$[]"]("authorinitials"),F.$chr()],n(p,"[]=",a.to_a(C)),C[b(C.length,1)]);m["$=="](1)? +C=["authors",p["$[]"](x["$[]"]("author"))]:(m["$=="](2)&&n(r(v,"AuthorKeys"),"each",[],(u=function(d){null==d&&(d=e);return c(p["$key?"](d))?(C=[""+d+"_1",p["$[]"](d)],n(p,"[]=",a.to_a(C)),C[b(C.length,1)]):e},u.$$s=k,u.$$arity=1,u)),C=["authors",""+p["$[]"]("authors")+", "+p["$[]"](x["$[]"]("author"))]);n(p,"[]=",a.to_a(C));return C[b(C.length,1)]},l.$$s=this,l.$$arity=1,l));q=["authorcount",m];n(p,"[]=",a.to_a(q));q[b(q.length,1)];return p},Aa.$$arity=-2);a.defs(d,"$parse_block_metadata_lines", +X=function(a,b,e,d){var g;null==e&&(e=f([],{}));for(null==d&&(d=f([],{}));c(this.$parse_block_metadata_line(a,b,e,d));)if(a.$shift(),c(g=a.$skip_blank_lines()))g;else break;return e},X.$$arity=-3);a.defs(d,"$parse_block_metadata_line",ua=function(d,g,h,k){var w,l,p=e,m=e,q=e;null==u["~"]&&(u["~"]=e);null==k&&(k=f([],{}));if(c(c(w=p=d.$peek_line())?c(k["$[]"]("text_only"))?p["$start_with?"]("[","/"):m=p["$start_with?"]("[",".","/",":"):w))if(c(p["$start_with?"]("[")))if(c(p["$start_with?"]("[["))){if(c(c(w= +p["$end_with?"]("]]"))?r(v,"BlockAnchorRx")["$=~"](p):w))return d=["id",(w=u["~"])===e?e:w["$[]"](1)],n(h,"[]=",a.to_a(d)),d[b(d.length,1)],c(d=(w=u["~"])===e?e:w["$[]"](2))&&(d=["reftext",c(d["$include?"](r(v,"ATTR_REF_HEAD")))?g.$sub_attributes(d):d],n(h,"[]=",a.to_a(d)),d[b(d.length,1)]),!0}else{if(c(c(w=p["$end_with?"]("]"))?r(v,"BlockAttributeListRx")["$=~"](p):w))return k=h["$[]"](1),c(g.$parse_attributes((w=u["~"])===e?e:w["$[]"](1),[],f(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0, +into:h}))["$[]"](1))&&(d=[1,c(w=this.$parse_style_attribute(h,d))?w:k],n(h,"[]=",a.to_a(d)),d[b(d.length,1)]),!0}else if(c(c(w=m)?p["$start_with?"]("."):w)){if(c(r(v,"BlockTitleRx")["$=~"](p)))return d=["title",(w=u["~"])===e?e:w["$[]"](1)],n(h,"[]=",a.to_a(d)),d[b(d.length,1)],!0}else if(c(c(w=m["$!"]())?w:p["$start_with?"]("/"))){if(c(p["$start_with?"]("//"))){if(p["$=="]("//"))return!0;if(c(c(w=m)?this["$uniform?"](p,"/",q=p.$length()):w)){if(!q["$=="](3))return d.$read_lines_until(f(["terminator", +"skip_first_line","preserve_last_line","skip_processing","context"],{terminator:p,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!c(p["$start_with?"]("///")))return!0}}else if(c(c(w=c(l=m)?p["$start_with?"](":"):l)?r(v,"AttributeEntryRx")["$=~"](p):w))return this.$process_attribute_entry(d,g,h,u["~"]),!0;return e},ua.$$arity=-4);a.defs(d,"$process_attribute_entries",Ha=function(a,b,d){null==d&&(d=e);for(a.$skip_comment_lines();c(this.$process_attribute_entry(a, +b,d));)a.$shift(),a.$skip_comment_lines()},Ha.$$arity=-3);a.defs(d,"$process_attribute_entry",Fa=function(a,d,f,g){var h,n,k,w,l=e;null==f&&(f=e);null==g&&(g=e);if(c(c(h=g)?h:g=c(a["$has_more_lines?"]())?r(v,"AttributeEntryRx").$match(a.$peek_line()):e)){if(c((w=g["$[]"](2))["$nil_or_empty?"]()))w="";else if(c(w["$end_with?"](r(v,"LINE_CONTINUATION"),r(v,"LINE_CONTINUATION_LEGACY")))){h=[w.$slice(b(w.$length(),2),2),w.$slice(0,b(w.$length(),2)).$rstrip()];var p=h[0];w=h[1];for(h;c(c(n=a.$advance())? +(l=c(k=a.$peek_line())?k:"")["$empty?"]()["$!"]():n)&&(l=l.$lstrip(),c(h=l["$end_with?"](p))&&(l=l.$slice(0,b(l.$length(),2)).$rstrip()),w=""+w+(c(w["$end_with?"](r(v,"HARD_LINE_BREAK")))?r(v,"LF"):" ")+l,c(h)););}this.$store_attribute(g["$[]"](1),w,d,f);return!0}return e},Fa.$$arity=-3);a.defs(d,"$store_attribute",Da=function(a,d,f,h){var n;null==f&&(f=e);null==h&&(h=e);c(a["$end_with?"]("!"))?(a=a.$chop(),d=e):c(a["$start_with?"]("!"))&&(a=a.$slice(1,a.$length()),d=e);(a=this.$sanitize_attribute_name(a))["$=="]("numbered")? +a="sectnums":a["$=="]("hardbreaks")?a="hardbreaks-option":a["$=="]("showtitle")&&this.$store_attribute("notitle",c(d)?e:"",f,h);c(f)?c(d)?(a["$=="]("leveloffset")&&(c(d["$start_with?"]("+"))?d=g(f.$attr("leveloffset",0).$to_i(),d.$slice(1,d.$length()).$to_i()).$to_s():c(d["$start_with?"]("-"))&&(d=b(f.$attr("leveloffset",0).$to_i(),d.$slice(1,d.$length()).$to_i()).$to_s())),c(f=f.$set_attribute(a,d))&&(d=f,c(h)&&q(r(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h))):c(c(n=f.$delete_attribute(a))? +h:n)&&q(r(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h):c(h)&&q(r(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h);return[a,d]},Da.$$arity=-3);a.defs(d,"$resolve_list_marker",Sa=function(a,b,c,d,f){null==c&&(c=0);null==d&&(d=!1);null==f&&(f=e);return"ulist"["$==="](a)?b:"olist"["$==="](a)?this.$resolve_ordered_list_marker(b,c,d,f)["$[]"](0):"<1>"},Sa.$$arity=-3);a.defs(d,"$resolve_ordered_list_marker",Qa=function(a,b,d,h){var k,w,l=e,p=e,m=e,q=e;null==b&&(b=0);null==d&&(d=!1);null==h&& +(h=e);if(c(a["$start_with?"](".")))return[a];l=p=n(r(v,"ORDERED_LIST_STYLES"),"find",[],(k=function(b){null==b&&(b=e);return r(v,"OrderedListMarkerRxMap")["$[]"](b)["$match?"](a)},k.$$s=this,k.$$arity=1,k));"arabic"["$==="](l)?(c(d)&&(m=g(b,1),q=a.$to_i()),a="1."):"loweralpha"["$==="](l)?(c(d)&&(m=g("a"["$[]"](0).$ord(),b).$chr(),q=a.$chop()),a="a."):"upperalpha"["$==="](l)?(c(d)&&(m=g("A"["$[]"](0).$ord(),b).$chr(),q=a.$chop()),a="A."):"lowerroman"["$==="](l)?(c(d)&&(m=r(v,"Helpers").$int_to_roman(g(b, +1)).$downcase(),q=a.$chop()),a="i)"):"upperroman"["$==="](l)&&(c(d)&&(m=r(v,"Helpers").$int_to_roman(g(b,1)),q=a.$chop()),a="I)");c(c(w=d)?m["$!="](q):w)&&this.$logger().$warn(this.$message_with_context("list item index: expected "+m+", got "+q,f(["source_location"],{source_location:h.$cursor()})));return[a,p]},Qa.$$arity=-2);a.defs(d,"$is_sibling_list_item?",Oa=function(a,b,d){var f,g;return c(q("::","Regexp")["$==="](d))?d["$match?"](a):c(f=r(v,"ListRxMap")["$[]"](b)["$=~"](a))?d["$=="](this.$resolve_list_marker(b, +(g=u["~"])===e?e:g["$[]"](1))):f},Oa.$$arity=3);a.defs(d,"$parse_table",Ga=function(d,f,h){var k,w,p,m=e,t=e,u=p=e,x=e,C,z=e,y=e;f=r(v,"Table").$new(f,h);c(c(k=h["$key?"]("cols"))?(m=this.$parse_colspecs(h["$[]"]("cols")))["$empty?"]()["$!"]():k)&&(f.$create_columns(m),t=!0);m=c(k=d.$skip_blank_lines())?k:0;c(h["$[]"]("header-option"))?(p=[!0],n(f,"has_header_option=",a.to_a(p)),p[b(p.length,1)]):c(m["$=="](0)?h["$[]"]("noheader-option")["$!"]():m["$=="](0))&&(p=["implicit"],n(f,"has_header_option=", +a.to_a(p)),p[b(p.length,1)],u=!0);m=q(r(v,"Table"),"ParserContext").$new(d,f,h);k=[m.$format(),-1,e];var E=k[0];var F=k[1];var I=k[2];k;for(k=!1;k||c(x=d.$read_line());){k=!1;if(c(c(w=C=l(F=g(F,1),0))?x["$empty?"]():w))x=e,c(I)&&(I=g(I,1));else if(E["$=="]("psv"))if(c(m["$starts_with_delimiter?"](x)))x=x.$slice(1,x.$length()),m.$close_open_cell(),c(I)&&(I=e);else{var L=this.$parse_cellspec(x,"start",m.$delimiter());w=a.to_ary(L);var A=null==w[0]?e:w[0];x=null==w[1]?e:w[1];L;c(A)?(m.$close_open_cell(A), +c(I)&&(I=e)):c(c(w=I)?I["$=="](F):w)&&(p=[u=I=e],n(f,"has_header_option=",a.to_a(p)),p[b(p.length,1)])}c(C)||(d.$mark(),c(u)&&(c(c(w=d["$has_more_lines?"]())?d.$peek_line()["$empty?"]():w)?I=1:(p=[u=e],n(f,"has_header_option=",a.to_a(p)),p[b(p.length,1)])));for(w=!1;w||c(!0);)if(w=!1,c(c(L=x)?z=m.$match_delimiter(x):L)){L=[z.$pre_match(),z.$post_match()];C=L[0];x=L[1];L;A=E;if("csv"["$==="](A)){if(c(m["$buffer_has_unclosed_quotes?"](C))){m.$skip_past_delimiter(C);if(c(x["$empty?"]()))break;w=!0;continue}p= +[""+m.$buffer()+C]}else if("dsv"["$==="](A)){if(c(C["$end_with?"]("\\"))){m.$skip_past_escaped_delimiter(C);if(c(x["$empty?"]())){p=[""+m.$buffer()+r(v,"LF")];n(m,"buffer=",a.to_a(p));p[b(p.length,1)];m.$keep_cell_open();break}w=!0;continue}p=[""+m.$buffer()+C]}else{if(c(C["$end_with?"]("\\"))){m.$skip_past_escaped_delimiter(C);if(c(x["$empty?"]())){p=[""+m.$buffer()+r(v,"LF")];n(m,"buffer=",a.to_a(p));p[b(p.length,1)];m.$keep_cell_open();break}w=!0;continue}p=this.$parse_cellspec(C);L=a.to_ary(p); +A=null==L[0]?e:L[0];C=null==L[1]?e:L[1];p;m.$push_cellspec(A);p=[""+m.$buffer()+C]}n(m,"buffer=",a.to_a(p));p[b(p.length,1)];c(x["$empty?"]())&&(x=e);m.$close_cell()}else{p=[""+m.$buffer()+x+r(v,"LF")];n(m,"buffer=",a.to_a(p));p[b(p.length,1)];A=E;"csv"["$==="](A)?c(m["$buffer_has_unclosed_quotes?"]())?(c(c(L=I)?F["$=="](0):L)&&(p=[u=I=e],n(f,"has_header_option=",a.to_a(p)),p[b(p.length,1)]),m.$keep_cell_open()):m.$close_cell(!0):"dsv"["$==="](A)?m.$close_cell(!0):m.$keep_cell_open();break}if(c(m["$cell_open?"]()))c(d["$has_more_lines?"]())|| +m.$close_cell(!0);else if(c(w=d.$skip_blank_lines()))w;else break}c(c(k=(y=f.$attributes(),c(w=y["$[]"]("colcount"))?w:(p=["colcount",f.$columns().$size()],n(y,"[]=",a.to_a(p)),p[b(p.length,1)]))["$=="](0))?k:t)||f.$assign_column_widths();c(u)&&(p=[!0],n(f,"has_header_option=",a.to_a(p)),p[b(p.length,1)]);f.$partition_header_footer(h);return f},Ga.$$arity=3);a.defs(d,"$parse_colspecs",za=function(d){var g,h,k=e;c(d["$include?"](" "))&&(d=d.$delete(" "));if(d["$=="](d.$to_i().$to_s()))return n(q("::", +"Array"),"new",[d.$to_i()],(g=function(){return f(["width"],{width:1})},g.$$s=this,g.$$arity=0,g));k=[];n(c(d["$include?"](","))?d.$split(",",-1):d.$split(";",-1),"each",[],(h=function(d){var g=h.$$s||this,w,l=e,p=e,m=e,q=e,t=m=e;null==d&&(d=e);if(c(d["$empty?"]()))return k["$<<"](f(["width"],{width:1}));if(c(l=r(v,"ColumnSpecRx").$match(d))){p=f([],{});if(c(l["$[]"](2))){d=l["$[]"](2).$split(".");var x=a.to_ary(d);m=null==x[0]?e:x[0];q=null==x[1]?e:x[1];d;c(c(x=m["$nil_or_empty?"]()["$!"]())?r(v, +"TableCellHorzAlignments")["$key?"](m):x)&&(m=["halign",r(v,"TableCellHorzAlignments")["$[]"](m)],n(p,"[]=",a.to_a(m)),m[b(m.length,1)]);c(c(x=q["$nil_or_empty?"]()["$!"]())?r(v,"TableCellVertAlignments")["$key?"](q):x)&&(m=["valign",r(v,"TableCellVertAlignments")["$[]"](q)],n(p,"[]=",a.to_a(m)),m[b(m.length,1)])}m=c(t=l["$[]"](3))?["width",t["$=="]("~")?-1:t.$to_i()]:["width",1];n(p,"[]=",a.to_a(m));m[b(m.length,1)];c(c(x=l["$[]"](4))?r(v,"TableCellStyles")["$key?"](l["$[]"](4)):x)&&(m=["style", +r(v,"TableCellStyles")["$[]"](l["$[]"](4))],n(p,"[]=",a.to_a(m)),m[b(m.length,1)]);return c(l["$[]"](1))?n(1,"upto",[l["$[]"](1).$to_i()],(w=function(){return k["$<<"](p.$merge())},w.$$s=g,w.$$arity=0,w)):k["$<<"](p)}return e},h.$$s=this,h.$$arity=1,h));return k},za.$$arity=1);a.defs(d,"$parse_cellspec",Ya=function(d,g,h){null==g&&(g="end");null==h&&(h=e);var k=[e,""];k;if(g["$=="]("start"))if(c(d["$include?"](h))){var w=d.$partition(h);k=a.to_ary(w);h=null==k[0]?e:k[0];g=null==k[2]?e:k[2];w;if(c(h= +r(v,"CellSpecStartRx").$match(h))){if(c(h["$[]"](0)["$empty?"]()))return[f([],{}),g]}else return[e,d]}else return[e,d];else if(c(h=r(v,"CellSpecEndRx").$match(d))){if(c(h["$[]"](0).$lstrip()["$empty?"]()))return[f([],{}),d.$rstrip()];g=h.$pre_match()}else return[f([],{}),d];d=f([],{});if(c(h["$[]"](1))){w=h["$[]"](1).$split(".");k=a.to_ary(w);var l=null==k[0]?e:k[0];var p=null==k[1]?e:k[1];w;l=c(l["$nil_or_empty?"]())?1:l.$to_i();p=c(p["$nil_or_empty?"]())?1:p.$to_i();w=h["$[]"](2);"+"["$==="](w)? +(l["$=="](1)||(w=["colspan",l],n(d,"[]=",a.to_a(w)),w[b(w.length,1)]),p["$=="](1)||(w=["rowspan",p],n(d,"[]=",a.to_a(w)),w[b(w.length,1)])):"*"["$==="](w)&&!l["$=="](1)&&(w=["repeatcol",l],n(d,"[]=",a.to_a(w)),w[b(w.length,1)])}c(h["$[]"](3))&&(w=h["$[]"](3).$split("."),k=a.to_ary(w),l=null==k[0]?e:k[0],p=null==k[1]?e:k[1],w,c(c(k=l["$nil_or_empty?"]()["$!"]())?r(v,"TableCellHorzAlignments")["$key?"](l):k)&&(w=["halign",r(v,"TableCellHorzAlignments")["$[]"](l)],n(d,"[]=",a.to_a(w)),w[b(w.length,1)]), +c(c(k=p["$nil_or_empty?"]()["$!"]())?r(v,"TableCellVertAlignments")["$key?"](p):k)&&(w=["valign",r(v,"TableCellVertAlignments")["$[]"](p)],n(d,"[]=",a.to_a(w)),w[b(w.length,1)]));c(c(k=h["$[]"](4))?r(v,"TableCellStyles")["$key?"](h["$[]"](4)):k)&&(w=["style",r(v,"TableCellStyles")["$[]"](h["$[]"](4))],n(d,"[]=",a.to_a(w)),w[b(w.length,1)]);return[d,g]},Ya.$$arity=-2);a.defs(d,"$parse_style_attribute",Pa=function(d,h){var k,w,l,p,m=e,q=e,t=e,x=e,u=e,z=e,y=e;null==h&&(h=e);if(c(c(k=c(w=m=d["$[]"](1))? +m["$include?"](" ")["$!"]():w)?r(v,"Compliance").$shorthand_property_syntax():k)){q=e;t="";x=f([],{});n(m,"each_char",[],(l=function(a){var b=l.$$s||this,c=e;null==a&&(a=e);return function(){c=a;return"."["$==="](c)?(b.$yield_buffered_attribute(x,q,t,h),t="",q="role"):"#"["$==="](c)?(b.$yield_buffered_attribute(x,q,t,h),t="",q="id"):"%"["$==="](c)?(b.$yield_buffered_attribute(x,q,t,h),t="",q="option"):t=g(t,a)}()},l.$$s=this,l.$$arity=1,l));if(c(q))return this.$yield_buffered_attribute(x,q,t,h),c(u= +x["$[]"]("style"))&&(z=["style",u],n(d,"[]=",a.to_a(z)),z[b(z.length,1)]),c(x["$key?"]("id"))&&(z=["id",x["$[]"]("id")],n(d,"[]=",a.to_a(z)),z[b(z.length,1)]),c(x["$key?"]("role"))&&(z=["role",c((y=d["$[]"]("role"))["$nil_or_empty?"]())?x["$[]"]("role").$join(" "):""+y+" "+x["$[]"]("role").$join(" ")],n(d,"[]=",a.to_a(z)),z[b(z.length,1)]),c(x["$key?"]("option"))&&n(x["$[]"]("option"),"each",[],(p=function(c){null==c&&(c=e);z=[""+c+"-option",""];n(d,"[]=",a.to_a(z));return z[b(z.length,1)]},p.$$s= +this,p.$$arity=1,p)),u;z=["style",m];n(d,"[]=",a.to_a(z));return z[b(z.length,1)]}z=["style",m];n(d,"[]=",a.to_a(z));return z[b(z.length,1)]},Pa.$$arity=-2);a.defs(d,"$yield_buffered_attribute",Va=function(d,g,h,k){var w,l=e;if(c(g))if(c(h["$empty?"]()))c(k)?this.$logger().$warn(this.$message_with_context("invalid empty "+g+" detected in style attribute",f(["source_location"],{source_location:k.$cursor_at_prev_line()}))):this.$logger().$warn("invalid empty "+g+" detected in style attribute");else if(g["$=="]("id"))c(d["$key?"]("id"))&& +(c(k)?this.$logger().$warn(this.$message_with_context("multiple ids detected in style attribute",f(["source_location"],{source_location:k.$cursor_at_prev_line()}))):this.$logger().$warn("multiple ids detected in style attribute")),l=[g,h],n(d,"[]=",a.to_a(l)),l[b(l.length,1)];else(c(w=d["$[]"](g))?w:(l=[g,[]],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]))["$<<"](h);else c(h["$empty?"]())||(l=["style",h],n(d,"[]=",a.to_a(l)),l[b(l.length,1)]);return e},Va.$$arity=4);a.defs(d,"$adjust_indentation!",Wa=function(d, +f,h){var w,m,q,t,x,u,C,z=this,y=e,F=e,E=e;null==f&&(f=0);null==h&&(h=0);if(c(d["$empty?"]()))return e;c(c(w=l(h,0))?n(d,"any?",[],(m=function(a){null==a&&(a=e);return a["$include?"](r(v,"TAB"))},m.$$s=z,m.$$arity=1,m)):w)&&(y=p(" ",h),function(){var f=a.new_brk();try{return n(d,"map!",[],(q=function(d){var f=q.$$s||this,k,w,l,m=e,t=e,x=e,u=e,C=e;null==d&&(d=e);if(c(c(k=d["$empty?"]())?k:(m=d.$index(r(v,"TAB")))["$nil?"]())||m["$=="](0)&&(t=0,function(){var b=a.new_brk();try{return n(d,"each_byte", +[],(w=function(c){null==c&&(c=e);c["$=="](9)||a.brk(e,b);return t=g(t,1)},w.$$s=f,w.$$brk=b,w.$$arity=1,w))}catch(eb){if(eb===b)return eb.$v;throw eb;}}(),d=""+p(y,t)+d.$slice(t,d.$length()),!c(d["$include?"](r(v,"TAB")))))return d;u=x=0;C="";n(d,"each_char",[],(l=function(a){var c;null==a&&(a=e);a["$=="](r(v,"TAB"))?(a=g(u,x))["$%"](h)["$=="](0)?(x=g(x,b(h,1)),C=g(C,y)):((c=b(h,a["$%"](h)))["$=="](1)||(x=g(x,b(c,1))),C=g(C,p(" ",c))):C=g(C,a);return u=g(u,1)},l.$$s=f,l.$$arity=1,l));return C},q.$$s= +z,q.$$brk=f,q.$$arity=1,q))}catch(Za){if(Za===f)return Za.$v;throw Za;}}());if(c(k(f,0)))return e;F=e;(function(){var f=a.new_brk();try{return n(d,"each",[],(t=function(d){var h;null==d&&(d=e);if(c(d["$empty?"]()))return e;(d=b(d.$length(),d.$lstrip().$length()))["$=="](0)&&(F=e,a.brk(e,f));return c(c(h=F)?k(F,d):h)?e:F=d},t.$$s=z,t.$$brk=f,t.$$arity=1,t))}catch(Za){if(Za===f)return Za.$v;throw Za;}})();f["$=="](0)?c(F)&&n(d,"map!",[],(x=function(a){null==a&&(a=e);return c(a["$empty?"]())?a:a.$slice(F, +a.$length())},x.$$s=z,x.$$arity=1,x)):(E=p(" ",f),c(F)?n(d,"map!",[],(u=function(a){null==a&&(a=e);return c(a["$empty?"]())?a:g(E,a.$slice(F,a.$length()))},u.$$s=z,u.$$arity=1,u)):n(d,"map!",[],(C=function(a){null==a&&(a=e);return c(a["$empty?"]())?a:g(E,a)},C.$$s=z,C.$$arity=1,C)));return e},Wa.$$arity=-2);a.defs(d,"$uniform?",ab=function(a,b,c){return a.$count(b)["$=="](c)},ab.$$arity=3);return(a.defs(d,"$sanitize_attribute_name",Xa=function(a){return a.$gsub(r(v,"InvalidAttributeNameCharsRx"), +"").$downcase()},Xa.$$arity=1),e)&&"sanitize_attribute_name"})(d[0],null,d)}(h[0],h)};Opal.modules["asciidoctor/path_resolver"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil,l=a.const_get_qualified,p=a.const_get_relative,h=a.module,e=a.klass,m=a.truthy,r=a.hash2,q=a.send,t=a.gvars;a.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 $=~".split(" ")); +return function(d,c){d=[h(d,"Asciidoctor")].concat(c);(function(c,$super,d){c=e(c,$super,"PathResolver");var f=[c].concat(d),h,g,n,v,u,z,y,F,E,A,D,B,O,G;c.$$prototype.file_separator=c.$$prototype._partition_path_web=c.$$prototype._partition_path_sys=c.$$prototype.working_dir=k;c.$include(p(f,"Logging"));a.const_set(f[0],"DOT",".");a.const_set(f[0],"DOT_DOT","..");a.const_set(f[0],"DOT_SLASH","./");a.const_set(f[0],"SLASH","/");a.const_set(f[0],"BACKSLASH","\\");a.const_set(f[0],"DOUBLE_SLASH","//"); +a.const_set(f[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/);c.$attr_accessor("file_separator");c.$attr_accessor("working_dir");a.def(c,"$initialize",h=function(a,b){var c,e;null==a&&(a=k);null==b&&(b=k);this.file_separator=m(c=m(e=a)?e:l(l("::","File"),"ALT_SEPARATOR"))?c:l(l("::","File"),"SEPARATOR");this.working_dir=m(b)?m(this["$root?"](b))?this.$posixify(b):l("::","File").$expand_path(b):l("::","Dir").$pwd();this._partition_path_sys=r([],{});return this._partition_path_web=r([],{})},h.$$arity=-1); +a.def(c,"$absolute_path?",g=function(a){var b;return m(b=a["$start_with?"](p(f,"SLASH")))?b:this.file_separator["$=="](p(f,"BACKSLASH"))?p(f,"WindowsRootRx")["$match?"](a):this.file_separator["$=="](p(f,"BACKSLASH"))},g.$$arity=1);m(p(f,"RUBY_ENGINE")["$=="]("opal")?l("::","JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest"):p(f,"RUBY_ENGINE")["$=="]("opal"))?a.def(c,"$root?",n=function(a){var b;return m(b=this["$absolute_path?"](a))?b:a["$start_with?"]("file://","http://","https://")},n.$$arity=1):a.alias(c, +"root?","absolute_path?");a.def(c,"$unc?",v=function(a){return a["$start_with?"](p(f,"DOUBLE_SLASH"))},v.$$arity=1);a.def(c,"$web_root?",u=function(a){return a["$start_with?"](p(f,"SLASH"))},u.$$arity=1);a.def(c,"$descends_from?",z=function(a,c){var e;return c["$=="](a)?0:c["$=="](p(f,"SLASH"))?m(e=a["$start_with?"](p(f,"SLASH")))?1:e:m(e=a["$start_with?"](b(c,p(f,"SLASH"))))?b(c.$length(),1):e},z.$$arity=2);a.def(c,"$relative_path",y=function(b,c){var e;if(m(this["$root?"](b))){if(m(e=this["$descends_from?"](b, +c)))return b.$slice(e,b.$length());try{return p(f,"Pathname").$new(b).$relative_path_from(p(f,"Pathname").$new(c)).$to_s()}catch(ra){if(a.rescue(ra,[p(f,"StandardError")]))try{return b}finally{a.pop_exception()}else throw ra;}}else return b},y.$$arity=2);a.def(c,"$posixify",F=function(a){return m(a)?m(this.file_separator["$=="](p(f,"BACKSLASH"))?a["$include?"](p(f,"BACKSLASH")):this.file_separator["$=="](p(f,"BACKSLASH")))?a.$tr(p(f,"BACKSLASH"),p(f,"SLASH")):a:""},F.$$arity=1);a.alias(c,"posixfy", +"posixify");a.def(c,"$expand_path",E=function(b){var c,e,d=k,h=c=k;var g=this.$partition_path(b);c=a.to_ary(g);d=null==c[0]?k:c[0];c=null==c[1]?k:c[1];g;return m(b["$include?"](p(f,"DOT_DOT")))?(h=[],q(d,"each",[],(e=function(a){null==a&&(a=k);return a["$=="](p(f,"DOT_DOT"))?h.$pop():h["$<<"](a)},e.$$s=this,e.$$arity=1,e)),this.$join_path(h,c)):this.$join_path(d,c)},E.$$arity=1);a.def(c,"$partition_path",A=function(c,e){var d,h,g=k;null==e&&(e=k);if(m(d=(h=m(e)?this._partition_path_web:this._partition_path_sys)["$[]"](c)))return d; +d=this.$posixify(c);m(e)?m(this["$web_root?"](d))?g=p(f,"SLASH"):m(d["$start_with?"](p(f,"DOT_SLASH")))&&(g=p(f,"DOT_SLASH")):m(this["$root?"](d))?g=m(this["$unc?"](d))?p(f,"DOUBLE_SLASH"):m(d["$start_with?"](p(f,"SLASH")))?p(f,"SLASH"):d.$slice(0,b(d.$index(p(f,"SLASH")),1)):m(d["$start_with?"](p(f,"DOT_SLASH")))&&(g=p(f,"DOT_SLASH"));e=(m(g)?d.$slice(g.$length(),d.$length()):d).$split(p(f,"SLASH"));e.$delete(p(f,"DOT"));c=[c,[e,g]];q(h,"[]=",a.to_a(c));h=c.length;h="number"===typeof h?h-1:h["$-"](1); +return c[h]},A.$$arity=-2);a.def(c,"$join_path",D=function(a,b){null==b&&(b=k);return m(b)?""+b+a.$join(p(f,"SLASH")):a.$join(p(f,"SLASH"))},D.$$arity=-2);a.def(c,"$system_path",B=function(c,e,d,h){var g,n,v,t=k,x=k,u=k,z=k,y=t=k,F=k,R=k,E=y=k;null==e&&(e=k);null==d&&(d=k);null==h&&(h=r([],{}));m(d)&&(m(this["$root?"](d))||this.$raise(l("::","SecurityError"),"Jail is not an absolute path: "+d),d=this.$posixify(d));if(m(c)){if(m(this["$root?"](c))){t=this.$expand_path(c);if(m(m(g=d)?this["$descends_from?"](t, +d)["$!"]():g)){if(m(h.$fetch("recover",!0))){this.$logger().$warn(""+(m(g=h["$[]"]("target_name"))?g:"path")+" is outside of jail; recovering automatically");var L=this.$partition_path(t);g=a.to_ary(L);x=null==g[0]?k:g[0];L;L=this.$partition_path(d);g=a.to_ary(L);u=null==g[0]?k:g[0];z=null==g[1]?k:g[1];L;return this.$join_path(b(u,x),z)}this.$raise(l("::","SecurityError"),""+(m(g=h["$[]"]("target_name"))?g:"path")+" "+c+" is outside of jail: "+d+" (disallowed in safe mode)")}return t}L=this.$partition_path(c); +g=a.to_ary(L);x=null==g[0]?k:g[0];L}else x=[];if(m(x["$empty?"]())){if(m(e["$nil_or_empty?"]()))return m(g=d)?g:this.working_dir;if(m(this["$root?"](e)))if(m(d))e=this.$posixify(e);else return this.$expand_path(e);else L=this.$partition_path(e),g=a.to_ary(L),x=null==g[0]?k:g[0],L,e=m(g=d)?g:this.working_dir}else m(e["$nil_or_empty?"]())?e=m(g=d)?g:this.working_dir:m(this["$root?"](e))?m(d)&&(e=this.$posixify(e)):e=""+(m(g=d)?g:this.working_dir).$chomp("/")+"/"+e;m(m(g=m(L=d)?t=this["$descends_from?"](e, +d)["$!"]():L)?this.file_separator["$=="](p(f,"BACKSLASH")):g)?(L=this.$partition_path(e),g=a.to_ary(L),y=null==g[0]?k:g[0],F=null==g[1]?k:g[1],L,L=this.$partition_path(d),g=a.to_ary(L),u=null==g[0]?k:g[0],z=null==g[1]?k:g[1],L,m(F["$!="](z))&&(m(h.$fetch("recover",!0))?(this.$logger().$warn("start path for "+(m(g=h["$[]"]("target_name"))?g:"path")+" is outside of jail root; recovering automatically"),y=u,t=!1):this.$raise(l("::","SecurityError"),"start path for "+(m(g=h["$[]"]("target_name"))?g:"path")+ +" "+e+" refers to location outside jail root: "+d+" (disallowed in safe mode)"))):(L=this.$partition_path(e),g=a.to_ary(L),y=null==g[0]?k:g[0],z=null==g[1]?k:g[1],L);m((R=b(y,x))["$include?"](p(f,"DOT_DOT")))&&(g=[R,[]],y=g[0],R=g[1],g,m(d)?(m(u)||(L=this.$partition_path(d),g=a.to_ary(L),u=null==g[0]?k:g[0],L),E=!1,q(y,"each",[],(n=function(a){var b=n.$$s||this,e;null==a&&(a=k);if(a["$=="](p(f,"DOT_DOT"))){a=R.$size();var g=u.$size();a="number"===typeof a&&"number"===typeof g?a>g:a["$>"](g);if(m(a))return R.$pop(); +if(m(h.$fetch("recover",!0))){if(m(E))return k;b.$logger().$warn(""+(m(e=h["$[]"]("target_name"))?e:"path")+" has illegal reference to ancestor of jail; recovering automatically");return E=!0}return b.$raise(l("::","SecurityError"),""+(m(e=h["$[]"]("target_name"))?e:"path")+" "+c+" refers to location outside jail: "+d+" (disallowed in safe mode)")}return R["$<<"](a)},n.$$s=this,n.$$arity=1,n))):q(y,"each",[],(v=function(a){null==a&&(a=k);return a["$=="](p(f,"DOT_DOT"))?R.$pop():R["$<<"](a)},v.$$s= +this,v.$$arity=1,v)));return m(t)?(t=this.$join_path(R,z),m(this["$descends_from?"](t,d))?t:m(h.$fetch("recover",!0))?(this.$logger().$warn(""+(m(g=h["$[]"]("target_name"))?g:"path")+" is outside of jail; recovering automatically"),m(u)||(L=this.$partition_path(d),g=a.to_ary(L),u=null==g[0]?k:g[0],L),this.$join_path(b(u,x),z)):this.$raise(l("::","SecurityError"),""+(m(g=h["$[]"]("target_name"))?g:"path")+" "+c+" is outside of jail: "+d+" (disallowed in safe mode)")):this.$join_path(R,z)},B.$$arity= +-2);a.def(c,"$web_path",O=function(b,c){var e,d,g=k,h=k,n=k,l=k,r=k;null==c&&(c=k);b=this.$posixify(b);c=this.$posixify(c);m(m(e=c["$nil_or_empty?"]())?e:this["$web_root?"](b))||(c=this.$extract_uri_prefix(""+c+(m(c["$end_with?"](p(f,"SLASH")))?"":p(f,"SLASH"))+b),e=a.to_ary(c),b=null==e[0]?k:e[0],g=null==e[1]?k:e[1],c);c=this.$partition_path(b,!0);e=a.to_ary(c);h=null==e[0]?k:e[0];n=null==e[1]?k:e[1];c;l=[];q(h,"each",[],(d=function(a){var b;null==a&&(a=k);return a["$=="](p(f,"DOT_DOT"))?m(l["$empty?"]())? +m(m(b=n)?n["$!="](p(f,"DOT_SLASH")):b)?k:l["$<<"](a):l["$[]"](-1)["$=="](p(f,"DOT_DOT"))?l["$<<"](a):l.$pop():l["$<<"](a)},d.$$s=this,d.$$arity=1,d));m((r=this.$join_path(l,n))["$include?"](" "))&&(r=r.$gsub(" ","%20"));return m(g)?""+g+r:r},O.$$arity=-2);c.$private();return(a.def(c,"$extract_uri_prefix",G=function(a){var b;return m(m(b=a["$include?"](":"))?p(f,"UriSniffRx")["$=~"](a):b)?[a.$slice(((b=t["~"])===k?k:b["$[]"](0)).$length(),a.$length()),(b=t["~"])===k?k:b["$[]"](0)]:a},G.$$arity=1), +k)&&"extract_uri_prefix"})(d[0],null,d)}(g[0],g)};Opal.modules["asciidoctor/reader"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a>=b:a["$>="](b)}var p=[],h=a.nil,e=a.const_get_qualified,m=a.const_get_relative,r=a.module,q=a.klass,t=a.hash2, +n=a.truthy,c=a.send,f=a.gvars,u=a.hash;a.add_stubs("$include $attr_reader $+ $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? $join $read_lines $unshift $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! $>= $nil? $extensions? $include_processors? $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 $replace_next_line $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".split(" ")); +return function(d,p){d=[r(d,"Asciidoctor")].concat(p);(function(d,$super,f){d=q(d,$super,"Reader");var l=[d].concat(f),p,r,v,u,y,z,F,E,L,A,D,B,O,G,I,U,J,K,H,W,na,qa,ba,M,P,Q,aa,pa,S,Aa,X,ua,Ha,Fa,Da,Sa,Qa,Oa;d.$$prototype.file=d.$$prototype.lines=d.$$prototype.look_ahead=d.$$prototype.unescape_next_line=d.$$prototype.lineno=d.$$prototype.process_lines=d.$$prototype.dir=d.$$prototype.path=d.$$prototype.mark=d.$$prototype.source_lines=d.$$prototype.saved=h;d.$include(m(l,"Logging"));(function(c,$super, +e){c=q(c,$super,"Cursor");[c].concat(e);var d,f,g;c.$$prototype.lineno=c.$$prototype.path=h;c.$attr_reader("file","dir","path","lineno");a.def(c,"$initialize",d=function(a,b,c,e){var d;null==b&&(b=h);null==c&&(c=h);null==e&&(e=1);return d=[a,b,c,e],this.file=d[0],this.dir=d[1],this.path=d[2],this.lineno=d[3],d},d.$$arity=-2);a.def(c,"$advance",f=function(a){return this.lineno=b(this.lineno,a)},f.$$arity=1);a.def(c,"$line_info",g=function(){return""+this.path+": line "+this.lineno},g.$$arity=0);return a.alias(c, +"to_s","line_info")})(l[0],null,l);d.$attr_reader("file");d.$attr_reader("dir");d.$attr_reader("path");d.$attr_reader("lineno");d.$attr_reader("source_lines");d.$attr_accessor("process_lines");d.$attr_accessor("unterminated");a.def(d,"$initialize",p=function(b,c,d){null==b&&(b=h);null==c&&(c=h);null==d&&(d=t([],{}));if(n(c["$!"]()))this.file=h,this.dir=".",this.path="",this.lineno=1;else if(n(e("::","String")["$==="](c))){this.file=c;c=e("::","File").$split(this.file);var f=a.to_ary(c);this.dir= +null==f[0]?h:f[0];this.path=null==f[1]?h:f[1];c;this.lineno=1}else n(this.file=c.$file())?(this.dir=n(f=c.$dir())?f:e("::","File").$dirname(this.file),this.path=n(f=c.$path())?f:e("::","File").$basename(this.file)):(this.dir=n(f=c.$dir())?f:".",this.path=n(f=c.$path())?f:""),this.lineno=n(f=c.$lineno())?f:1;this.lines=(this.source_lines=this.$prepare_lines(b,d)).$reverse();this.mark=h;this.look_ahead=0;this.process_lines=!0;this.unescape_next_line=!1;return this.saved=this.unterminated=h}, +p.$$arity=-1);a.def(d,"$has_more_lines?",r=function(){return n(this.lines["$empty?"]())?(this.look_ahead=0,!1):!0},r.$$arity=0);a.def(d,"$empty?",v=function(){return n(this.lines["$empty?"]())?(this.look_ahead=0,!0):!1},v.$$arity=0);a.alias(d,"eof?","empty?");a.def(d,"$next_line_empty?",u=function(){return this.$peek_line()["$nil_or_empty?"]()},u.$$arity=0);a.def(d,"$peek_line",y=function(a){var b,c=h;null==a&&(a=!1);return n(n(b=a)?b:g(this.look_ahead,0))?n(this.unescape_next_line)?(c=this.lines["$[]"](-1)).$slice(1, +c.$length()):this.lines["$[]"](-1):n(this.lines["$empty?"]())?(this.look_ahead=0,h):n(b=this.$process_line(this.lines["$[]"](-1)))?b:this.$peek_line()},y.$$arity=-1);a.def(d,"$peek_lines",z=function(b,e){var d,f,g=this,p=h,r=h;null==b&&(b=h);null==e&&(e=!1);p=g.look_ahead;r=[];(function(){var p=a.new_brk();try{return c(n(d=b)?d:m(l,"MAX_INT"),"times",[],(f=function(){var b=f.$$s||this,c;null==b.lineno&&(b.lineno=h);if(n(c=n(e)?b.$shift():b.$read_line()))return r["$<<"](c);n(e)&&(b.lineno=k(b.lineno, +1));a.brk(h,p)},f.$$s=g,f.$$brk=p,f.$$arity=0,f))}catch(Y){if(Y===p)return Y.$v;throw Y;}})();n(r["$empty?"]())||(g.$unshift_all(r),n(e)&&(g.look_ahead=p));return r},z.$$arity=-1);a.def(d,"$read_line",F=function(){var a;return n(n(a=g(this.look_ahead,0))?a:this["$has_more_lines?"]())?this.$shift():h},F.$$arity=0);a.def(d,"$read_lines",E=function(){var a;for(a=[];n(this["$has_more_lines?"]());)a["$<<"](this.$shift());return a},E.$$arity=0);a.alias(d,"readlines","read_lines");a.def(d,"$read",L=function(){return this.$read_lines().$join(m(l, +"LF"))},L.$$arity=0);a.def(d,"$advance",A=function(){return n(this.$shift())?!0:!1},A.$$arity=0);a.def(d,"$unshift_line",D=function(a){this.$unshift(a);return h},D.$$arity=1);a.alias(d,"restore_line","unshift_line");a.def(d,"$unshift_lines",B=function(a){return this.$unshift_all(a)},B.$$arity=1);a.alias(d,"restore_lines","unshift_lines");a.def(d,"$replace_next_line",O=function(a){this.$shift();this.$unshift(a);return!0},O.$$arity=1);a.alias(d,"replace_line","replace_next_line");a.def(d,"$skip_blank_lines", +G=function(){var a,c;if(n(this["$empty?"]()))return h;for(a=0;n(c=this.$peek_line());)if(n(c["$empty?"]()))this.$shift(),a=b(a,1);else return a},G.$$arity=0);a.def(d,"$skip_comment_lines",I=function(){var a,b=h,c=h;if(n(this["$empty?"]()))return h;for(;n(n(a=b=this.$peek_line())?b["$empty?"]()["$!"]():a);)if(n(b["$start_with?"]("//")))if(n(b["$start_with?"]("///")))if(n(n(a=g(c=b.$length(),3))?b["$=="]("/"["$*"](c)):a))this.$read_lines_until(t(["terminator","skip_first_line","read_last_line","skip_processing", +"context"],{terminator:b,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else this.$shift();else break;return h},I.$$arity=0);a.def(d,"$skip_line_comments",U=function(){var a,b,c=h;if(n(this["$empty?"]()))return[];for(b=[];n(n(a=c=this.$peek_line())?c["$empty?"]()["$!"]():a);)if(n(c["$start_with?"]("//")))b["$<<"](this.$shift());else break;return b},U.$$arity=0);a.def(d,"$terminate",J=function(){this.lineno=b(this.lineno,this.lines.$size());this.lines.$clear(); +this.look_ahead=0;return h},J.$$arity=0);a.def(d,"$read_lines_until",K=function(b){var e,d,f,g,p,r,v=K.$$p,q=v||h,w=h,x,u=h,y,z,F,E=h,I=h;v&&(K.$$p=null);null==b&&(b=t([],{}));v=[];n(n(e=this.process_lines)?b["$[]"]("skip_processing"):e)&&(this.process_lines=!1,w=!0);if(n(x=b["$[]"]("terminator"))){u=n(e=b["$[]"]("cursor"))?e:this.$cursor();var L=y=!1}else y=b["$[]"]("break_on_blank_lines"),L=b["$[]"]("break_on_list_continuation");var A=b["$[]"]("skip_line_comments");var D=z=h;for(n(b["$[]"]("skip_first_line"))&& +this.$shift();n(F=this.$read_line());){if(n(n(x)?F["$=="](x):n(d=n(f=n(g=y)?F["$empty?"]():g)?f:n(g=n(p=n(r=L)?D:r)?F["$=="](m(l,"LIST_CONTINUATION")):p)?(E=["preserve_last_line",!0],c(b,"[]=",a.to_a(E)),E[k(E.length,1)]):g)?d:(f=q!==h)?a.yield1(q,F):q!==h)){if(n(b["$[]"]("read_last_line")))v["$<<"](F);n(b["$[]"]("preserve_last_line"))&&(this.$unshift(F),z=!0);break}n(n(d=n(f=A)?F["$start_with?"]("//"):f)?F["$start_with?"]("///")["$!"]():d)||(v["$<<"](F),D=!0)}n(w)&&(this.process_lines=!0,n(n(e=z)? +x["$!"]():e)&&(this.look_ahead=k(this.look_ahead,1)));n(n(e=n(d=x)?x["$!="](F):d)?I=b.$fetch("context",x):e)&&(u["$=="]("at_mark")&&(u=this.$cursor_at_mark()),this.$logger().$warn(this.$message_with_context("unterminated "+I+" block",t(["source_location"],{source_location:u}))),this.unterminated=!0);return v},K.$$arity=-1);a.def(d,"$shift",H=function(){this.lineno=b(this.lineno,1);this.look_ahead["$=="](0)||(this.look_ahead=k(this.look_ahead,1));return this.lines.$pop()},H.$$arity=0);a.def(d,"$unshift", +W=function(a){this.lineno=k(this.lineno,1);this.look_ahead=b(this.look_ahead,1);this.lines.$push(a);return h},W.$$arity=1);e("::","RUBY_ENGINE")["$=="]("jruby")?a.def(d,"$unshift_all",na=function(e){var d;this.lineno=k(this.lineno,e.$size());this.look_ahead=b(this.look_ahead,e.$size());n(e["$respond_to?"]("reverse"))?c(this.lines,"push",a.to_a(e.$reverse())):c(e,"reverse_each",[],(d=function(a){var b=d.$$s||this;null==b.lines&&(b.lines=h);null==a&&(a=h);return b.lines.$push(a)},d.$$s=this,d.$$arity= +1,d));return h},na.$$arity=1):a.def(d,"$unshift_all",qa=function(e){this.lineno=k(this.lineno,e.$size());this.look_ahead=b(this.look_ahead,e.$size());c(this.lines,"push",a.to_a(e.$reverse()));return h},qa.$$arity=1);a.def(d,"$cursor",ba=function(){return m(l,"Cursor").$new(this.file,this.dir,this.path,this.lineno)},ba.$$arity=0);a.def(d,"$cursor_at_line",M=function(a){return m(l,"Cursor").$new(this.file,this.dir,this.path,a)},M.$$arity=1);a.def(d,"$cursor_at_mark",P=function(){return n(this.mark)? +c(m(l,"Cursor"),"new",a.to_a(this.mark)):this.$cursor()},P.$$arity=0);a.def(d,"$cursor_before_mark",Q=function(){if(n(this.mark)){var b=this.mark;var c=a.to_ary(b);var e=null==c[0]?h:c[0];var d=null==c[1]?h:c[1];var f=null==c[2]?h:c[2];c=null==c[3]?h:c[3];b;return m(l,"Cursor").$new(e,d,f,k(c,1))}return m(l,"Cursor").$new(this.file,this.dir,this.path,k(this.lineno,1))},Q.$$arity=0);a.def(d,"$cursor_at_prev_line",aa=function(){return m(l,"Cursor").$new(this.file,this.dir,this.path,k(this.lineno,1))}, +aa.$$arity=0);a.def(d,"$mark",pa=function(){return this.mark=[this.file,this.dir,this.path,this.lineno]},pa.$$arity=0);a.def(d,"$line_info",S=function(){return""+this.path+": line "+this.lineno},S.$$arity=0);a.def(d,"$lines",Aa=function(){return this.lines.$reverse()},Aa.$$arity=0);a.def(d,"$string",X=function(){return this.lines.$reverse().$join(m(l,"LF"))},X.$$arity=0);a.def(d,"$source",ua=function(){return this.source_lines.$join(m(l,"LF"))},ua.$$arity=0);a.def(d,"$save",Ha=function(){var b;this.saved= +c(t([],{}),"tap",[],(b=function(d){var f=b.$$s||this,g;null==d&&(d=h);return c(f.$instance_variables(),"each",[],(g=function(b){var f=g.$$s||this,l,p=h;null==b&&(b=h);if(n(n(l=b["$=="]("@saved"))?l:b["$=="]("@source_lines")))return h;b=[b,n(e("::","Array")["$==="](p=f.$instance_variable_get(b)))?p.$drop(0):p];c(d,"[]=",a.to_a(b));return b[k(b.length,1)]},g.$$s=f,g.$$arity=1,g))},b.$$s=this,b.$$arity=1,b));return h},Ha.$$arity=0);a.def(d,"$restore_save",Fa=function(){var a;return n(this.saved)?(c(this.saved, +"each",[],(a=function(b,c){var e=a.$$s||this;null==b&&(b=h);null==c&&(c=h);return e.$instance_variable_set(b,c)},a.$$s=this,a.$$arity=2,a)),this.saved=h):h},Fa.$$arity=0);a.def(d,"$discard_save",Da=function(){return this.saved=h},Da.$$arity=0);a.def(d,"$to_s",Sa=function(){return"#<"+this.$class()+"@"+this.$object_id()+" {path: "+this.path.$inspect()+", line: "+this.lineno+"}>"},Sa.$$arity=0);d.$private();a.def(d,"$prepare_lines",Qa=function(b,c){var d=h;null==c&&(c=t([],{}));try{return n(d=c["$[]"]("normalize"))? +n(e("::","Array")["$==="](b))?m(l,"Helpers").$prepare_source_array(b,d["$!="]("chomp")):m(l,"Helpers").$prepare_source_string(b,d["$!="]("chomp")):n(e("::","Array")["$==="](b))?b.$drop(0):n(b)?b.$chomp().$split(m(l,"LF"),-1):[]}catch(Pa){if(a.rescue(Pa,[m(l,"StandardError")]))try{return n((n(e("::","Array")["$==="](b))?b.$join():b.$to_s())["$valid_encoding?"]())?this.$raise():this.$raise(e("::","ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw Pa; +}},Qa.$$arity=-2);return(a.def(d,"$process_line",Oa=function(a){n(this.process_lines)&&(this.look_ahead=b(this.look_ahead,1));return a},Oa.$$arity=1),h)&&"process_line"})(d[0],null,d);(function(d,$super,p){d=q(d,$super,"PreprocessorReader");var r=[d].concat(p),v,y,z,F,E,A,D,L,B,O,G,U,J,K,I,H,W,ba,M,P;d.$$prototype.include_stack=d.$$prototype.lines=d.$$prototype.file=d.$$prototype.dir=d.$$prototype.path=d.$$prototype.lineno=d.$$prototype.maxdepth=d.$$prototype.process_lines=d.$$prototype.includes= +d.$$prototype.document=d.$$prototype.unescape_next_line=d.$$prototype.include_processor_extensions=d.$$prototype.look_ahead=d.$$prototype.skipping=d.$$prototype.conditional_stack=h;d.$attr_reader("include_stack");a.def(d,"$initialize",v=function(b,e,d,f){var k,l;v.$$p&&(v.$$p=null);null==e&&(e=h);null==d&&(d=h);null==f&&(f=t([],{}));this.document=b;c(this,a.find_super_dispatcher(this,"initialize",v,!1),[e,d,f],null);n(g(l=(n(k=b.$attributes()["$[]"]("max-include-depth"))?k:64).$to_i(),0))?this.maxdepth= +t(["abs","curr","rel"],{abs:l,curr:l,rel:l}):this.maxdepth=h;this.include_stack=[];this.includes=b.$catalog()["$[]"]("includes");this.skipping=!1;this.conditional_stack=[];return this.include_processor_extensions=h},v.$$arity=-2);a.def(d,"$has_more_lines?",y=function(){return n(this.$peek_line())?!0:!1},y.$$arity=0);a.def(d,"$empty?",z=function(){return n(this.$peek_line())?!1:!0},z.$$arity=0);a.alias(d,"eof?","empty?");a.def(d,"$peek_line",F=function(b){var e=F.$$p,d;e&&(F.$$p=null);var f=0;var g= +arguments.length;for(d=Array(g);f";this.lineno=p;n(n(q=this.maxdepth)?v["$key?"]("depth"):q)&&(n(g(f=v["$[]"]("depth").$to_i(),0))?(n(g(l=b(this.include_stack.$size(),f),x=this.maxdepth["$[]"]("abs")))&&(l=f=x),this.maxdepth=t(["abs","curr","rel"],{abs:x,curr:l,rel:f})):this.maxdepth= +t(["abs","curr","rel"],{abs:this.maxdepth["$[]"]("abs"),curr:this.include_stack.$size(),rel:0}));if(n((this.lines=this.$prepare_lines(d,t(["normalize","condense","indent"],{normalize:n(q=this.process_lines)?q:"chomp",condense:!1,indent:v["$[]"]("indent")})))["$empty?"]()))this.$pop_include();else{if(n(v["$key?"]("leveloffset")))this.lines=b(b([n(y=this.document.$attr("leveloffset"))?":leveloffset: "+y:":leveloffset!:",""],this.lines.$reverse()),["",":leveloffset: "+v["$[]"]("leveloffset")]),this.lineno= +k(this.lineno,2);else this.lines["$reverse!"]();this.look_ahead=0}return this},E.$$arity=-2);a.def(d,"$include_depth",A=function(){return this.include_stack.$size()},A.$$arity=0);a.def(d,"$exceeds_max_depth?",D=function(){var a,b;return n(a=n(b=this.maxdepth)?l(this.include_stack.$size(),this.maxdepth["$[]"]("curr")):b)?this.maxdepth["$[]"]("rel"):a},D.$$arity=0);a.alias(d,"exceeded_max_depth?","exceeds_max_depth?");a.def(d,"$shift",L=function(){var b=L.$$p,e=h,d;b&&(L.$$p=null);var f=0;var g=arguments.length; +for(d=Array(g);f"},G.$$arity=0);d.$private();a.def(d,"$prepare_lines",U=function(b,e){var d,f,g=U.$$p,l=h,p=h,v;g&&(U.$$p=null);var q=0;var u=arguments.length;for(v=Array(u);qf:f["$<"](0));c=n(f)?[c.$to_i(),e(e("::","Float"),"INFINITY")]:a.Range.$new(c.$to_i(),g,!1).$to_a();return w=b(d,c)}return w["$<<"](c.$to_i())},F.$$s=B,F.$$arity=1,F)),w=n(w["$empty?"]())?h:w.$sort().$uniq()):n(K["$key?"]("tag"))?n(n(v=(ma=K["$[]"]("tag"))["$empty?"]())?v:ma["$=="]("!"))||(C=n(ma["$start_with?"]("!"))?u(ma.$slice(1,ma.$length()),!1):u(ma,!0)):n(K["$key?"]("tags"))&&(C=t([],{}),c(B.$split_delimited_value(K["$[]"]("tags")), +"each",[],(E=function(b){var e;null==b&&(b=h);if(n(n(e=b["$empty?"]())?e:b["$=="]("!")))return h;da=n(b["$start_with?"]("!"))?[b.$slice(1,b.$length()),!1]:[b,!0];c(C,"[]=",a.to_a(da));return da[k(da.length,1)]},E.$$s=B,E.$$arity=1,E)),n(C["$empty?"]())&&(C=h)));if(n(w)){v=[[],h,0];N=v[0];Z=v[1];oa=v[2];v;try{(function(){var d=a.new_brk();try{return c(ca,"call",[H,fa],(I=function(d){var f=I.$$s||this,g,k=h;null==d&&(d=h);k=h;return function(){var l=a.new_brk();try{return c(d,"each_line",[],(g=function(c){var d, +f,g=h;null==c&&(c=h);oa=b(oa,1);if(n(n(d=k)?d:n(f=e("::","Float")["$==="](g=w["$[]"](0)))?k=g["$infinite?"]():f))return Z=n(d=Z)?d:oa,N["$<<"](c);g["$=="](oa)&&(Z=n(d=Z)?d:oa,N["$<<"](c),w.$shift());if(n(w["$empty?"]()))a.brk(h,l);else return h},g.$$s=f,g.$$brk=l,g.$$arity=1,g))}catch(gb){if(gb===l)return gb.$v;throw gb;}}()},I.$$s=B,I.$$brk=d,I.$$arity=1,I))}catch(fb){if(fb===d)return fb.$v;throw fb;}})()}catch($a){if(a.rescue($a,[m(r,"StandardError")]))try{return B.$logger().$error(B.$message_with_context("include "+ +W+" not readable: "+H,t(["source_location"],{source_location:B.$cursor()}))),B.$replace_next_line("Unresolved directive in "+B.path+" - include::"+G+"["+p+"]")}finally{a.pop_exception()}else throw $a;}B.$shift();n(Z)&&(da=["partial-option",""],c(K,"[]=",a.to_a(da)),da[k(da.length,1)],B.$push_include(N,H,xa,Z,K))}else if(n(C)){v=[[],h,0,[],e("::","Set").$new(),h];N=v[0];Z=v[1];oa=v[2];ta=v[3];ra=v[4];ba=v[5];v;n(C["$key?"]("**"))?(M=V=C.$delete("**"),n(C["$key?"]("*"))?ja=C.$delete("*"):n(n(v=M["$!"]())? +C.$values().$first()["$=="](!1):v)&&(ja=!0)):n(C["$key?"]("*"))?C.$keys().$first()["$=="]("*")?M=V=(ja=C.$delete("*"))["$!"]():(M=V=!1,ja=C.$delete("*")):M=V=C["$value?"](!0)["$!"]();try{c(ca,"call",[H,fa],(A=function(e){var d=A.$$s||this,g,k=h,l=h;null==e&&(e=h);var w=["::","[]"];k=w[0];l=w[1];w;return c(e,"each_line",[],(g=function(e){var d=g.$$s||this,w,p,v,q=h,u=h,x=h;null==e&&(e=h);oa=b(oa,1);if(n(n(w=n(p=e["$include?"](k))?e["$include?"](l):p)?m(r,"TagDirectiveRx")["$=~"](e):w)){q=(w=f["~"])=== +h?h:w["$[]"](2);if(n((w=f["~"])===h?h:w["$[]"](1)))return q["$=="](ba)?(ta.$pop(),p=n(ta["$empty?"]())?[h,V]:ta["$[]"](-1),w=a.to_ary(p),ba=null==w[0]?h:w[0],M=null==w[1]?h:w[1],p):n(C["$key?"](q))?(u=d.$create_include_cursor(H,G,oa),n(x=c(ta,"rindex",[],(v=function(a){null==a&&(a=h);return a["$=="](q)},v.$$s=d,v.$$arity=1,v.$$has_trailing_comma_in_args=!0,v)))?(x["$=="](0)?ta.$shift():ta.$delete_at(x),d.$logger().$warn(d.$message_with_context("mismatched end tag (expected '"+ba+"' but found '"+q+ +"') at line "+oa+" of include "+W+": "+H,t(["source_location","include_location"],{source_location:d.$cursor(),include_location:u})))):d.$logger().$warn(d.$message_with_context("unexpected end tag '"+q+"' at line "+oa+" of include "+W+": "+H,t(["source_location","include_location"],{source_location:d.$cursor(),include_location:u})))):h;if(n(C["$key?"](q))){if(n(M=C["$[]"](q)))ra["$<<"](q);return ta["$<<"]([ba=q,M,oa])}return n(ja["$nil?"]()["$!"]())?(M=n(n(w=ba)?M["$!"]():w)?!1:ja,ta["$<<"]([ba=q, +M,oa])):h}return n(M)?(Z=n(w=Z)?w:oa,N["$<<"](e)):h},g.$$s=d,g.$$arity=1,g))},A.$$s=B,A.$$arity=1,A))}catch($a){if(a.rescue($a,[m(r,"StandardError")]))try{return B.$logger().$error(B.$message_with_context("include "+W+" not readable: "+H,t(["source_location"],{source_location:B.$cursor()}))),B.$replace_next_line("Unresolved directive in "+B.path+" - include::"+G+"["+p+"]")}finally{a.pop_exception()}else throw $a;}n(ta["$empty?"]())||c(ta,"each",[],(D=function(a,b,c){b=D.$$s||this;null==a&&(a=h);null== +c&&(c=h);return b.$logger().$warn(b.$message_with_context("detected unclosed tag '"+a+"' starting at line "+c+" of include "+W+": "+H,t(["source_location","include_location"],{source_location:b.$cursor(),include_location:b.$create_include_cursor(H,G,c)})))},D.$$s=B,D.$$arity=3,D));n((P=k(c(C,"keep_if",[],(L=function(a,b){null==b&&(b=h);return b},L.$$s=B,L.$$arity=2,L)).$keys(),ra.$to_a()))["$empty?"]())||B.$logger().$warn(B.$message_with_context("tag"+(n(g(P.$size(),1))?"s":"")+" '"+P.$join(", ")+ +"' not found in include "+W+": "+H,t(["source_location"],{source_location:B.$cursor()})));B.$shift();n(Z)&&(n(n(v=n(q=V)?ja["$!="](!1):q)?C["$empty?"]():v)||(da=["partial-option",""],c(K,"[]=",a.to_a(da)),da[k(da.length,1)]),B.$push_include(N,H,xa,Z,K))}else try{na=c(ca,"call",[H,fa],(T=function(a){null==a&&(a=h);return a.$read()},T.$$s=B,T.$$arity=1,T)),B.$shift(),B.$push_include(na,H,xa,1,K)}catch($a){if(a.rescue($a,[m(r,"StandardError")]))try{return B.$logger().$error(B.$message_with_context("include "+ +W+" not readable: "+H,t(["source_location"],{source_location:B.$cursor()}))),B.$replace_next_line("Unresolved directive in "+B.path+" - include::"+G+"["+p+"]")}finally{a.pop_exception()}else throw $a;}return!0}return h},I.$$arity=2);a.def(d,"$resolve_include_path",H=function(a,b,d){var f,g,k,l=h,p=h;l=h;l=this.document;if(n(n(f=m(r,"Helpers")["$uriish?"](a))?f:n(e("::","String")["$==="](this.dir))?h:a=""+this.dir+"/"+a)){if(!n(l["$attr?"]("allow-uri-read")))return this.$replace_next_line("link:"+ +a+"["+b+"]");n(l["$attr?"]("cache-uri"))?n((g=e("::","OpenURI","skip_raise"))&&(f=e(g,"Cache","skip_raise"))?"constant":h)||m(r,"Helpers").$require_library("open-uri/cached","open-uri-cached"):n(m(r,"RUBY_ENGINE_OPAL")["$!"]())&&e("::","OpenURI");return[e("::","URI").$parse(a),"uri",a]}p=l.$normalize_system_path(a,this.dir,h,t(["target_name"],{target_name:"include file"}));if(!n(e("::","File")["$file?"](p))){if(n(d["$[]"]("optional-option")))return c(this.$logger(),"info",[],(k=function(){var a=k.$$s|| +this;return a.$message_with_context("optional include dropped because include file not found: "+p,t(["source_location"],{source_location:a.$cursor()}))},k.$$s=this,k.$$arity=0,k)),this.$shift(),!0;this.$logger().$error(this.$message_with_context("include file not found: "+p,t(["source_location"],{source_location:this.$cursor()})));return this.$replace_next_line("Unresolved directive in "+this.path+" - include::"+a+"["+b+"]")}l=l.$path_resolver().$relative_path(p,l.$base_dir());return[p,"file",l]}, +H.$$arity=3);a.def(d,"$pop_include",W=function(){if(!n(this.include_stack["$empty?"]())){var b=this.include_stack.$pop();var c=a.to_ary(b);this.lines=null==c[0]?h:c[0];this.file=null==c[1]?h:c[1];this.dir=null==c[2]?h:c[2];this.path=null==c[3]?h:c[3];this.lineno=null==c[4]?h:c[4];this.maxdepth=null==c[5]?h:c[5];this.process_lines=null==c[6]?h:c[6];b;this.look_ahead=0}return h},W.$$arity=0);a.def(d,"$split_delimited_value",ba=function(a){return n(a["$include?"](","))?a.$split(","):a.$split(";")},ba.$$arity= +1);a.def(d,"$skip_front_matter!",M=function(e,d){var f;null==d&&(d=!0);var g=h;if(e["$[]"](0)["$=="]("---")){var k=e.$drop(0);e.$shift();g=[];n(d)&&(this.lineno=b(this.lineno,1));for(;n(n(f=e["$empty?"]()["$!"]())?e["$[]"](0)["$!="]("---"):f);)g["$<<"](e.$shift()),n(d)&&(this.lineno=b(this.lineno,1));n(e["$empty?"]())?(c(e,"unshift",a.to_a(k)),n(d)&&(this.lineno=0),g=h):(e.$shift(),n(d)&&(this.lineno=b(this.lineno,1)))}return g},M.$$arity=-2);return(a.def(d,"$resolve_expr_val",P=function(a){var b, +c;n(n(b=n(c=a["$start_with?"]('"'))?a["$end_with?"]('"'):c)?b:n(c=a["$start_with?"]("'"))?a["$end_with?"]("'"):c)?(b=!0,a=a.$slice(1,k(a.$length(),1))):b=!1;n(a["$include?"](m(r,"ATTR_REF_HEAD")))&&(a=this.document.$sub_attributes(a,t(["attribute_missing"],{attribute_missing:"drop"})));return n(b)?a:n(a["$empty?"]())?h:a["$=="]("true")?!0:a["$=="]("false")?!1:n(a.$rstrip()["$empty?"]())?" ":n(a["$include?"]("."))?a.$to_f():a.$to_i()},P.$$arity=1),h)&&"resolve_expr_val"})(d[0],m(d,"Reader"),d)}(p[0], +p)};Opal.modules["asciidoctor/section"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}var k=[],l=a.nil,p=a.const_get_relative,h=a.module,e=a.klass,m=a.hash2,r=a.send,q=a.truthy;a.add_stubs("$attr_accessor $attr_reader $=== $+ $level $special $generate_id $title $> $== $sectnum $reftext $! $empty? $sub_placeholder $sub_quotes $compat_mode $[] $attributes $context $assign_numeral $class $object_id $inspect $size $length $chr $[]= $- $gsub $downcase $delete $tr_s $end_with? $chop $start_with? $slice $key? $catalog $unique_id_start_index".split(" ")); +return function(d,k){d=[h(d,"Asciidoctor")].concat(k);(function(c,$super,d){c=e(c,$super,"Section");var h=[c].concat(d),k,n,v,t,u,z,y,F;c.$$prototype.document=c.$$prototype.next_section_index=c.$$prototype.level=c.$$prototype.parent=c.$$prototype.numeral=c.$$prototype.numbered=c.$$prototype.sectname=c.$$prototype.title=c.$$prototype.blocks=l;c.$attr_accessor("index");c.$attr_accessor("sectname");c.$attr_accessor("special");c.$attr_accessor("numbered");c.$attr_reader("caption");a.def(c,"$initialize", +k=function(c,e,d,g){var n,v;k.$$p&&(k.$$p=null);null==c&&(c=l);null==e&&(e=l);null==d&&(d=!1);null==g&&(g=m([],{}));r(this,a.find_super_dispatcher(this,"initialize",k,!1),[c,"section",g],null);q(p(h,"Section")["$==="](c))?(n=[q(v=e)?v:b(c.$level(),1),c.$special()],this.level=n[0],this.special=n[1]):(n=[q(v=e)?v:1,!1],this.level=n[0],this.special=n[1]);n;this.numbered=d;return this.index=0},k.$$arity=-1);a.alias(c,"name","title");a.def(c,"$generate_id",n=function(){return p(h,"Section").$generate_id(this.$title(), +this.document)},n.$$arity=0);a.def(c,"$sections?",v=function(){return g(this.next_section_index,0)},v.$$arity=0);a.def(c,"$sectnum",t=function(a,b){var c;null==a&&(a=".");null==b&&(b=l);b=q(c=b)?c:b["$=="](!1)?"":a;return q(q(c=g(this.level,1))?p(h,"Section")["$==="](this.parent):c)?""+this.parent.$sectnum(a,a)+this.numeral+b:""+this.numeral+b},t.$$arity=-1);a.def(c,"$xreftext",u=function(a){var b,c=l,e=l,d=l;null==a&&(a=l);q(q(b=c=this.$reftext())?c["$empty?"]()["$!"]():b)?b=c:q(a)?(q(this.numbered)? +"full"["$==="](a)?(a=q(q(b=(e=this.sectname)["$=="]("chapter"))?b:e["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):this.$sub_placeholder(this.$sub_quotes(q(this.document.$compat_mode())?"``%s''":'"`%s`"'),this.$title()),a=q(d=this.document.$attributes()["$[]"](""+e+"-refsig"))?""+d+" "+this.$sectnum(".",",")+" "+a:""+this.$sectnum(".",",")+" "+a):a="short"["$==="](a)?q(d=this.document.$attributes()["$[]"](""+this.sectname+"-refsig"))?""+d+" "+this.$sectnum(".",""): +this.$sectnum(".",""):q(q(b=(e=this.sectname)["$=="]("chapter"))?b:e["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):this.$title():a=q(q(b=(e=this.sectname)["$=="]("chapter"))?b:e["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):this.$title(),b=a):b=this.$title();return b},u.$$arity=-1);a.def(c,"$<<",z=function(b){var c=z.$$p,e;c&&(z.$$p=null);var d=0;var g=arguments.length;for(e=Array(g);d"):r(this,a.find_super_dispatcher(this,"to_s",y,!1),c,b)},y.$$arity= +0);return(a.defs(c,"$generate_id",F=function(c,e){var d,g,k,n=l,m=g=l;var v=e.$attributes();var t=q(d=v["$[]"]("idprefix"))?d:"_";q(k=v["$[]"]("idseparator"))?(q(d=k.$length()["$=="](1))?v=d:q(g=(n=k["$empty?"]())["$!"]())?(g=["idseparator",k.$chr()],r(v,"[]=",a.to_a(g)),k=g,v=g.length,v="number"===typeof v?v-1:v["$-"](1),v=k=k[v]):v=g,q(v)&&(m=q(q(d=k["$=="]("-"))?d:k["$=="]("."))?" .-":" "+k+".-")):(d=["_"," _.-"],k=d[0],m=d[1],d);c=""+t+c.$downcase().$gsub(p(h,"InvalidSectionIdCharsRx"),"");q(n)? +c=c.$delete(" "):(c=c.$tr_s(m,k),q(c["$end_with?"](k))&&(c=c.$chop()),q(q(d=t["$empty?"]())?c["$start_with?"](k):d)&&(c=c.$slice(1,c.$length())));if(q(e.$catalog()["$[]"]("refs")["$key?"](c))){e=e.$catalog()["$[]"]("refs");for(d=p(h,"Compliance").$unique_id_start_index();q(e["$[]"](t=""+c+k+d));)d=b(d,1);return t}return c},F.$$arity=2),l)&&"generate_id"})(d[0],p(d,"AbstractBlock"),d)}(k[0],k)};Opal.modules["asciidoctor/stylesheets"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.const_get_relative, +p=a.module,h=a.klass,e=a.truthy,m=a.hash2;a.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".split(" "));return function(b,d){b=[p(b,"Asciidoctor")].concat(d);(function(b,$super,c){b=h(b,$super,"Stylesheets");var d=[b].concat(c),p,r,v,q,t,u,x,z,y,F,E,A,B;b.$$prototype.primary_stylesheet_data=g;a.const_set(d[0], +"DEFAULT_STYLESHEET_NAME","asciidoctor.css");a.const_set(d[0],"STYLESHEETS_DIR",k("::","File").$join(l(d,"DATA_DIR"),"stylesheets"));b.__instance__=b.$new();a.defs(b,"$instance",p=function(){null==this.__instance__&&(this.__instance__=g);return this.__instance__},p.$$arity=0);a.def(b,"$primary_stylesheet_name",r=function(){return l(d,"DEFAULT_STYLESHEET_NAME")},r.$$arity=0);a.def(b,"$primary_stylesheet_data",v=function(){var a;return this.primary_stylesheet_data=e(a=this.primary_stylesheet_data)? +a:k("::","File").$read(k("::","File").$join(l(d,"STYLESHEETS_DIR"),"asciidoctor-default.css"),m(["mode"],{mode:l(d,"FILE_READ_MODE")})).$rstrip()},v.$$arity=0);a.def(b,"$embed_primary_stylesheet",q=function(){return""},q.$$arity=0);a.def(b,"$write_primary_stylesheet",t=function(a){null==a&&(a=".");return k("::","File").$write(k("::","File").$join(a,this.$primary_stylesheet_name()),this.$primary_stylesheet_data(),m(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))}, +t.$$arity=-1);a.def(b,"$coderay_stylesheet_name",u=function(){return l(d,"SyntaxHighlighter").$for("coderay").$stylesheet_basename()},u.$$arity=0);a.def(b,"$coderay_stylesheet_data",x=function(){return l(d,"SyntaxHighlighter").$for("coderay").$read_stylesheet()},x.$$arity=0);a.def(b,"$embed_coderay_stylesheet",z=function(){return""},z.$$arity=0);a.def(b,"$write_coderay_stylesheet",y=function(a){null==a&&(a=".");return k("::","File").$write(k("::", +"File").$join(a,this.$coderay_stylesheet_name()),this.$coderay_stylesheet_data(),m(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))},y.$$arity=-1);a.def(b,"$pygments_stylesheet_name",F=function(a){null==a&&(a=g);return l(d,"SyntaxHighlighter").$for("pygments").$stylesheet_basename(a)},F.$$arity=-1);a.def(b,"$pygments_stylesheet_data",E=function(a){null==a&&(a=g);return l(d,"SyntaxHighlighter").$for("pygments").$read_stylesheet(a)},E.$$arity=-1);a.def(b,"$embed_pygments_stylesheet",A=function(a){null==a&& +(a=g);return""},A.$$arity=-1);return(a.def(b,"$write_pygments_stylesheet",B=function(a,b){null==a&&(a=".");null==b&&(b=g);return k("::","File").$write(k("::","File").$join(a,this.$pygments_stylesheet_name(b)),this.$pygments_stylesheet_data(b),m(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))},B.$$arity=-1),g)&&"write_pygments_stylesheet"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/table"]=function(a){function b(a,b){return"number"===typeof a&& +"number"===typeof b?a>b:a["$>"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a $to_i $< $== $[]= $- $attributes $truncate $* $/ $to_f $empty? $body $each $<< $size $+ $assign_column_widths $warn $logger $update_attributes $assign_width $round $map $shift $reinitialize $head= $nil? $unshift $pop $foot= $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".split(" ")); +return function(e,d){e=[t(e,"Asciidoctor")].concat(d);(function(e,$super,d){e=n(e,$super,"Table");var r=[e].concat(d),v,t,x,y,R;e.$$prototype.attributes=e.$$prototype.document=e.$$prototype.has_header_option=e.$$prototype.rows=e.$$prototype.columns=m;a.const_set(r[0],"DEFAULT_PRECISION",4);(function(b,$super,e){b=n(b,$super,"Rows");[b].concat(e);var d,f,g;b.$$prototype.head=b.$$prototype.body=b.$$prototype.foot=m;b.$attr_accessor("head","foot","body");a.def(b,"$initialize",d=function(a,b,c){null== +a&&(a=[]);null==b&&(b=[]);null==c&&(c=[]);this.head=a;this.foot=b;return this.body=c},d.$$arity=-1);a.alias(b,"[]","send");a.def(b,"$by_section",f=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]},f.$$arity=0);return(a.def(b,"$to_h",g=function(){return c(["head","body","foot"],{head:this.head,body:this.body,foot:this.foot})},g.$$arity=0),m)&&"to_h"})(r[0],null,r);e.$attr_accessor("columns");e.$attr_accessor("rows");e.$attr_accessor("has_header_option");e.$attr_reader("caption"); +a.def(e,"$initialize",v=function(c,e){var d,h,n=m,t=m,x=m;v.$$p&&(v.$$p=null);f(this,a.find_super_dispatcher(this,"initialize",v,!1),[c,"table"],null);this.rows=q(r,"Rows").$new();this.columns=[];this.has_header_option=!1;u(n=e["$[]"]("width"))?u(u(d=b(t=n.$to_i(),100))?d:g(t,1))&&!u(t["$=="](0)?u(h=n["$=="]("0"))?h:n["$=="]("0%"):t["$=="](0))&&(t=100):t=100;c=["tablepcwidth",t];f(this.attributes,"[]=",a.to_a(c));c[k(c.length,1)];u(this.document.$attributes()["$[]"]("pagewidth"))&&(c=["tableabswidth", +(x=l(p(t,100),this.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(q(r,"DEFAULT_PRECISION")))["$=="](x.$to_i())?x.$to_i():x],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]);return u(e["$[]"]("rotate-option"))?(c=["orientation","landscape"],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]):m},v.$$arity=2);a.def(e,"$header_row?",t=function(){var a,b;return u(u(a=b=this.has_header_option)?this.rows.$body()["$empty?"]():a)?b:m},t.$$arity=0);a.def(e,"$create_columns",x=function(c){var e, +d,n=m,l=m,p=m,v=m;v=m;n=[];l=m;p=0;f(c,"each",[],(e=function(a){var b=e.$$s||this,c;null==a&&(a=m);var d=a["$[]"]("width");n["$<<"](q(r,"Column").$new(b,n.$size(),a));return u(g(d,0))?(l=u(c=l)?c:[])["$<<"](n["$[]"](-1)):p=h(p,d)},e.$$s=this,e.$$arity=1,e));u(b(v=(this.columns=n).$size(),0))&&(v=["colcount",v],f(this.attributes,"[]=",a.to_a(v)),v[k(v.length,1)],u(u(d=b(p,0))?d:l)||(p=m),this.$assign_column_widths(p,l));return m},x.$$arity=1);a.def(e,"$assign_column_widths",y=function(a,e){var d,g, +n,l=m,v=m,t=m,x=m,y=m;null==a&&(a=m);null==e&&(e=m);l=q(r,"DEFAULT_PRECISION");v=t=0;u(a)?(u(e)&&(u(b(a,100))?(x=0,this.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+a+"%")):(x=p(k(100,a),e.$size()).$truncate(l),x.$to_i()["$=="](x)&&(x=x.$to_i()),a=100),y=c(["width","autowidth-option"],{width:x,"autowidth-option":""}),f(e,"each",[],(d=function(a){null==a&&(a=m);return a.$update_attributes(y)},d.$$s=this,d.$$arity=1,d))),f(this.columns,"each",[],(g=function(b){null== +b&&(b=m);return v=h(v,t=b.$assign_width(m,a,l))},g.$$s=this,g.$$arity=1,g))):(t=p(100,this.columns.$size()).$truncate(l),t.$to_i()["$=="](t)&&(t=t.$to_i()),f(this.columns,"each",[],(n=function(a){null==a&&(a=m);return v=h(v,a.$assign_width(t,m,l))},n.$$s=this,n.$$arity=1,n)));v["$=="](100)||this.columns["$[]"](-1).$assign_width(h(k(100,v),t).$round(l),m,l);return m},y.$$arity=-1);return(a.def(e,"$partition_header_footer",R=function(c){var e,d,g,h=m,n=m,l=m;h=(n=["rowcount",(l=this.rows.$body()).$size()], +f(this.attributes,"[]=",a.to_a(n)),n[k(n.length,1)]);u(b(h,0))&&(u(this.has_header_option)?(n=[[f(l.$shift(),"map",[],(e=function(a){null==a&&(a=m);return a.$reinitialize(!0)},e.$$s=this,e.$$arity=1,e))]],f(this.rows,"head=",a.to_a(n)),n[k(n.length,1)],h=k(h,1)):u(this.has_header_option["$nil?"]())&&(this.has_header_option=!1,l.$unshift(f(l.$shift(),"map",[],(d=function(a){null==a&&(a=m);return a.$reinitialize(!1)},d.$$s=this,d.$$arity=1,d)))));u(u(g=b(h,0))?c["$[]"]("footer-option"):g)&&(n=[[l.$pop()]], +f(this.rows,"foot=",a.to_a(n)),n[k(n.length,1)]);return m},R.$$arity=1),m)&&"partition_header_footer"})(e[0],q(e,"AbstractBlock"),e);(function(b,$super,e){b=n(b,$super,"Column");[b].concat(e);var d,g,r,v;b.$$prototype.attributes=m;b.$attr_accessor("style");a.def(b,"$initialize",d=function(b,e,g){var n;d.$$p&&(d.$$p=null);null==g&&(g=c([],{}));f(this,a.find_super_dispatcher(this,"initialize",d,!1),[b,"table_column"],null);this.style=g["$[]"]("style");b=["colnumber",h(e,1)];f(g,"[]=",a.to_a(b));b[k(b.length, +1)];u(n=g["$[]"]("width"))?n:(b=["width",1],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);u(n=g["$[]"]("halign"))?n:(b=["halign","left"],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);u(n=g["$[]"]("valign"))?n:(b=["valign","top"],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);return this.$update_attributes(g)},d.$$arity=-3);a.alias(b,"table","parent");a.def(b,"$assign_width",g=function(b,c,e){var d=m;u(c)&&(b=p(l(this.attributes["$[]"]("width").$to_f(),100),c).$truncate(e),b.$to_i()["$=="](b)&&(b=b.$to_i()));u(this.$parent().$attributes()["$[]"]("tableabswidth"))&& +(c=["colabswidth",(d=l(p(b,100),this.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(e))["$=="](d.$to_i())?d.$to_i():d],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]);c=["colpcwidth",b];f(this.attributes,"[]=",a.to_a(c));return c[k(c.length,1)]},g.$$arity=3);a.def(b,"$block?",r=function(){return!1},r.$$arity=0);return(a.def(b,"$inline?",v=function(){return!1},v.$$arity=0),m)&&"inline?"})(q(e,"Table"),q(e,"AbstractNode"),e);(function(b,$super,e){b=n(b,$super,"Cell");var d=[b].concat(e), +p,v,t,x,z,F,R,E,A,B;b.$$prototype.document=b.$$prototype.reinitialize_args=b.$$prototype.attributes=b.$$prototype.cursor=b.$$prototype.text=b.$$prototype.subs=b.$$prototype.style=b.$$prototype.inner_document=b.$$prototype.source_location=b.$$prototype.colspan=b.$$prototype.rowspan=m;a.const_set(d[0],"DOUBLE_LF",l(q(d,"LF"),2));b.$attr_accessor("colspan");b.$attr_accessor("rowspan");a.alias(b,"column","parent");b.$attr_reader("inner_document");a.def(b,"$initialize",p=function(b,e,n,l){var r,v,t,x= +m,y=m,z=m,F=m,R=m,E=m,A=m;p.$$p&&(p.$$p=null);null==n&&(n=c([],{}));null==l&&(l=c([],{}));f(this,a.find_super_dispatcher(this,"initialize",p,!1),[b,"table_cell"],null);this.cursor=this.reinitialize_args=m;u(this.document.$sourcemap())&&(this.source_location=l["$[]"]("cursor").$dup());u(b)&&(u(x=b.$table()["$header_row?"]())?u((r=x["$=="]("implicit"))?y=u(v=b.$style())?v:u(t=n)?n["$[]"]("style"):t:x["$=="]("implicit"))&&(u(u(r=y["$=="]("asciidoc"))?r:y["$=="]("literal"))&&(this.reinitialize_args=[b, +e,u(r=n)?n.$merge():r,l]),y=m):y=b.$style(),this.$update_attributes(b.$attributes()));if(u(n))if(u(n["$empty?"]())?this.colspan=this.rowspan=m:(r=[n.$delete("colspan"),n.$delete("rowspan")],this.colspan=r[0],this.rowspan=r[1],r,u(x)||(y=u(r=n["$[]"]("style"))?r:y),this.$update_attributes(n)),b=y,"asciidoc"["$==="](b))if(z=!0,F=l["$[]"]("cursor"),u((e=e.$rstrip())["$start_with?"](q(d,"LF")))){for(b=1;u((e=e.$slice(1,e.$length()))["$start_with?"](q(d,"LF")));)b=h(b,1);F.$advance(b)}else e=e.$lstrip(); +else if("literal"["$==="](b))for(R=!0,e=e.$rstrip();u(e["$start_with?"](q(d,"LF")));)e=e.$slice(1,e.$length());else E=!0,e=u(e)?e.$strip():"";else this.colspan=this.rowspan=m,y["$=="]("asciidoc")&&(z=!0,F=l["$[]"]("cursor"));u(z)?(l=this.document.$attributes().$delete("doctitle"),x=e.$split(q(d,"LF"),-1),!u(x["$empty?"]())&&u((A=x["$[]"](0))["$include?"]("::"))&&(z=q(d,"PreprocessorReader").$new(this.document,[A]).$readlines(),u(A["$=="](z["$[]"](0))?g(z.$size(),2):A["$=="](z["$[]"](0)))||(x.$shift(), +u(z["$empty?"]())||f(x,"unshift",a.to_a(z)))),this.inner_document=q(d,"Document").$new(x,c(["standalone","parent","cursor"],{standalone:!1,parent:this.document,cursor:F})),u(l["$nil?"]())||(F=["doctitle",l],f(this.document.$attributes(),"[]=",a.to_a(F)),F[k(F.length,1)]),this.subs=m):u(R)?(this.content_model="verbatim",this.subs=q(d,"BASIC_SUBS")):(u(E)&&(u(x)?this.cursor=l["$[]"]("cursor"):this.$catalog_inline_anchor(e,l["$[]"]("cursor"))),this.content_model="simple",this.subs=q(d,"NORMAL_SUBS")); +this.text=e;return this.style=y},p.$$arity=-3);a.def(b,"$reinitialize",v=function(b){if(u(b))this.reinitialize_args=m;else{if(u(this.reinitialize_args))return f(r(q(d,"Table"),"Cell"),"new",a.to_a(this.reinitialize_args));this.style=this.attributes["$[]"]("style")}u(this.cursor)&&this.$catalog_inline_anchor();return this},v.$$arity=1);a.def(b,"$catalog_inline_anchor",t=function(a,b){null==a&&(a=this.text);null==b&&(b=m);if(!u(b)){var c=[this.cursor,m];b=c[0];this.cursor=c[1];c}return u(u(c=a["$start_with?"]("[["))? +q(d,"LeadingInlineAnchorRx")["$=~"](a):c)?q(d,"Parser").$catalog_inline_anchor((c=y["~"])===m?m:c["$[]"](1),(c=y["~"])===m?m:c["$[]"](2),this,b,this.document):m},t.$$arity=-1);a.def(b,"$text",x=function(){return this.$apply_subs(this.text,this.subs)},x.$$arity=0);b.$attr_writer("text");a.def(b,"$content",z=function(){var a,b,e=m,g=m;return(e=this.style)["$=="]("asciidoc")?this.inner_document.$convert():u(this.text["$include?"](q(d,"DOUBLE_LF")))?f(this.$text().$split(q(d,"BlankLineRx")),"map",[], +(a=function(b){var f=a.$$s||this,g;null==b&&(b=m);return u(u(g=e)?e["$!="]("header"):g)?q(d,"Inline").$new(f.$parent(),"quoted",b,c(["type"],{type:e})).$convert():b},a.$$s=this,a.$$arity=1,a)):u((g=this.$text())["$empty?"]())?[]:u(u(b=e)?e["$!="]("header"):b)?[q(d,"Inline").$new(this.$parent(),"quoted",g,c(["type"],{type:e})).$convert()]:[g]},z.$$arity=0);a.def(b,"$lines",F=function(){return this.text.$split(q(d,"LF"))},F.$$arity=0);a.def(b,"$source",R=function(){return this.text},R.$$arity=0);a.def(b, +"$file",E=function(){var a;return u(a=this.source_location)?this.source_location.$file():a},E.$$arity=0);a.def(b,"$lineno",A=function(){var a;return u(a=this.source_location)?this.source_location.$lineno():a},A.$$arity=0);return(a.def(b,"$to_s",B=function(){var b,c=B.$$p,e;c&&(B.$$p=null);var d=0;var g=arguments.length;for(e=Array(g);d")+": Failed to load AsciiDoc document",r(D["$respond_to?"]("exception"))?(G=D.$exception(""+L+" - "+D.$message()),G.$set_backtrace(D.$backtrace())):(G=D.$class().$new(L,D),F=[D.$stack_trace()],q(G,"stack_trace=",a.to_a(F)),F[b(F.length,1)])}catch(V){if(a.rescue(V,[h(d,"StandardError")]))try{G=D}finally{a.pop_exception()}else throw V;}return this.$raise(G)}finally{a.pop_exception()}}else throw I;}},f.$$arity= +-2);return(a.def(c,"$load_file",k=function(a,b){var c;null==b&&(b=m([],{}));return q(p("::","File"),"open",[a,h(d,"FILE_READ_MODE")],(c=function(a){var e=c.$$s||this;null==a&&(a=l);return e.$load(a,b)},c.$$s=this,c.$$arity=1,c))},k.$$arity=-2),l)&&"load_file"})(a.get_singleton_class(d),k)}(k[0],k)};Opal.modules["asciidoctor/convert"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>=b:a["$>="](b)} +var k=[],l=a.nil,p=a.const_get_qualified,h=a.const_get_relative,e=a.module,m=a.hash2,r=a.truthy,q=a.send;a.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? $basebackend? $attr $uriish? $include? $syntax_highlighter $write_stylesheet? $write_primary_stylesheet $instance $to_s $!= $read_asset $file? $write_stylesheet $open".split(" ")); +return function(d,k){d=e(d,"Asciidoctor");k=[d].concat(k);(function(c,e){var d=[c].concat(e),f,k;a.def(c,"$convert",f=function(c,e){var f,k,n,v,t,u,y=l,F=l,z=t=l,E=l,A=l,B=l,R=l,D=l,G=l,L=l,I=l,J=l;null==e&&(e=m([],{}));(e=e.$merge()).$delete("parse");var O=e.$delete("to_dir");var K=e.$delete("mkdirs");var H=u=e.$delete("to_file");if((!0)["$==="](H)||l["$==="](H))r(y=O)||r(p("::","File")["$==="](c))&&(F=p("::","File").$absolute_path(c.$path())),u=l;else if((!1)["$==="](H))u=l;else{if("/dev/null"["$==="](H))return this.$load(c, +e);r(t=u["$respond_to?"]("write"))||(H=["to_file",y=u],q(e,"[]=",a.to_a(H)),H[b(H.length,1)])}r(e["$key?"]("standalone"))||(r(r(f=F)?f:y)?(H=["standalone",e.$fetch("header_footer",!0)],q(e,"[]=",a.to_a(H)),H[b(H.length,1)]):r(e["$key?"]("header_footer"))&&(H=["standalone",e["$[]"]("header_footer")],q(e,"[]=",a.to_a(H)),H[b(H.length,1)]));r(F)?(H=["to_dir",z=p("::","File").$dirname(F)],q(e,"[]=",a.to_a(H)),H[b(H.length,1)]):r(y)&&(r(O)?(H=r(u)?["to_dir",p("::","File").$dirname(p("::","File").$expand_path(u, +O))]:["to_dir",p("::","File").$expand_path(O)],q(e,"[]=",a.to_a(H)),H[b(H.length,1)]):r(u)&&(H=["to_dir",p("::","File").$dirname(p("::","File").$expand_path(u))],q(e,"[]=",a.to_a(H)),H[b(H.length,1)]));H=this.$load(c,e);r(F)?(E=p("::","File").$join(z,""+H.$attributes()["$[]"]("docname")+H.$outfilesuffix()),E["$=="](F)&&this.$raise(p("::","IOError"),"input file and output file cannot be the same: "+E)):r(y)?(e=r(e["$key?"]("base_dir"))?p("::","File").$expand_path(e["$[]"]("base_dir")):p("::","Dir").$pwd(), +y=r(g(H.$safe(),p(h(d,"SafeMode"),"SAFE")))?e:l,r(O)?(z=H.$normalize_system_path(O,e,y,m(["target_name","recover"],{target_name:"to_dir",recover:!1})),r(u)?(E=H.$normalize_system_path(u,z,l,m(["target_name","recover"],{target_name:"to_dir",recover:!1})),z=p("::","File").$dirname(E)):E=p("::","File").$join(z,""+H.$attributes()["$[]"]("docname")+H.$outfilesuffix())):r(u)&&(E=H.$normalize_system_path(u,e,y,m(["target_name","recover"],{target_name:"to_dir",recover:!1})),z=p("::","File").$dirname(E)), +r(r(f=p("::","File")["$==="](c))?E["$=="](p("::","File").$absolute_path(c.$path())):f)&&this.$raise(p("::","IOError"),"input file and output file cannot be the same: "+E),r(K)?h(d,"Helpers").$mkdir_p(z):r(p("::","File")["$directory?"](z))||this.$raise(p("::","IOError"),"target directory does not exist: "+O+" (hint: set :mkdirs option)")):(E=u,z=l);c=r(r(f=E)?t["$!"]():f)?H.$convert(m(["outfile","outdir"],{outfile:E,outdir:z})):H.$convert();return r(E)?(H.$write(c,E),r(t=t["$!"]())&&(t=H.$safe(),E= +p(h(d,"SafeMode"),"SECURE"),t="number"===typeof t&&"number"===typeof E?t":'