@kotlinx-branch-build/kotlinx-html
Version:
Library for building HTML in Kotlin
1,332 lines • 838 kB
JavaScript
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports', 'kotlin'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('kotlin'));
else {
if (typeof kotlin === 'undefined') {
throw new Error("Error loading module 'kotlinx-html-js'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'kotlinx-html-js'.");
}root['kotlinx-html-js'] = factory(typeof this['kotlinx-html-js'] === 'undefined' ? {} : this['kotlinx-html-js'], kotlin);
}
}(this, function (_, Kotlin) {
'use strict';
var $$importsForInline$$ = _.$$importsForInline$$ || (_.$$importsForInline$$ = {});
var Kind_INTERFACE = Kotlin.Kind.INTERFACE;
var defineInlineFunction = Kotlin.defineInlineFunction;
var wrapFunction = Kotlin.wrapFunction;
var emptyMap = Kotlin.kotlin.collections.emptyMap_q3lmfv$;
var StringBuilder_init = Kotlin.kotlin.text.StringBuilder_init;
var Kind_CLASS = Kotlin.Kind.CLASS;
var Annotation = Kotlin.kotlin.Annotation;
var setOf = Kotlin.kotlin.collections.setOf_mh5how$;
var listOf = Kotlin.kotlin.collections.listOf_mh5how$;
var equals = Kotlin.equals;
var Map = Kotlin.kotlin.collections.Map;
var Map$Entry = Kotlin.kotlin.collections.Map.Entry;
var LinkedHashMap_init = Kotlin.kotlin.collections.LinkedHashMap_init_q3lmfv$;
var IllegalStateException_init = Kotlin.kotlin.IllegalStateException_init_pdl1vj$;
var Kind_OBJECT = Kotlin.Kind.OBJECT;
var IllegalArgumentException_init = Kotlin.kotlin.IllegalArgumentException_init_pdl1vj$;
var toSet = Kotlin.kotlin.collections.toSet_7wnvza$;
var joinToString = Kotlin.kotlin.collections.joinToString_fmv235$;
var ensureNotNull = Kotlin.ensureNotNull;
var emptySet = Kotlin.kotlin.collections.emptySet_287e2$;
var Regex_init = Kotlin.kotlin.text.Regex_init_61zpoe$;
var ArrayList_init = Kotlin.kotlin.collections.ArrayList_init_287e2$;
var Unit = Kotlin.kotlin.Unit;
var LinkedHashMap_init_0 = Kotlin.kotlin.collections.LinkedHashMap_init_73mtqc$;
var MutableMap = Kotlin.kotlin.collections.MutableMap;
var throwCCE = Kotlin.throwCCE;
var Enum = Kotlin.kotlin.Enum;
var throwISE = Kotlin.throwISE;
var UnsupportedOperationException_init = Kotlin.kotlin.UnsupportedOperationException_init_pdl1vj$;
var HashSet_init = Kotlin.kotlin.collections.HashSet_init_287e2$;
var listOf_0 = Kotlin.kotlin.collections.listOf_i5x0yv$;
var mapCapacity = Kotlin.kotlin.collections.mapCapacity_za3lpa$;
var coerceAtLeast = Kotlin.kotlin.ranges.coerceAtLeast_dqglrj$;
var LinkedHashMap_init_1 = Kotlin.kotlin.collections.LinkedHashMap_init_bwtc7$;
var StringBuilder_init_0 = Kotlin.kotlin.text.StringBuilder_init_za3lpa$;
var toBoxedChar = Kotlin.toBoxedChar;
var to = Kotlin.kotlin.to_ujzrz7$;
var mapOf = Kotlin.kotlin.collections.mapOf_qfcya0$;
var unboxChar = Kotlin.unboxChar;
var maxOrNull = Kotlin.kotlin.collections.maxOrNull_exjks8$;
var toChar = Kotlin.toChar;
var CharRange = Kotlin.kotlin.ranges.CharRange;
var contains = Kotlin.kotlin.text.contains_sgbm27$;
var indexOf = Kotlin.kotlin.text.indexOf_l5u8uk$;
var checkIndexOverflow = Kotlin.kotlin.collections.checkIndexOverflow_za3lpa$;
var collectionSizeOrDefault = Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$;
var ArrayList_init_0 = Kotlin.kotlin.collections.ArrayList_init_ww73n8$;
var Array_0 = Array;
var iterator = Kotlin.kotlin.text.iterator_gw00vp$;
var get_lastIndex = Kotlin.kotlin.collections.get_lastIndex_55thoc$;
var toString = Kotlin.toString;
var last = Kotlin.kotlin.collections.last_2p1efm$;
var asList = Kotlin.org.w3c.dom.asList_kt9thq$;
var first = Kotlin.kotlin.collections.first_2p1efm$;
var emptyList = Kotlin.kotlin.collections.emptyList_287e2$;
var addAll = Kotlin.kotlin.collections.addAll_ipc267$;
var Throwable = Error;
StringAttribute.prototype = Object.create(Attribute.prototype);
StringAttribute.prototype.constructor = StringAttribute;
BooleanAttribute.prototype = Object.create(Attribute.prototype);
BooleanAttribute.prototype.constructor = BooleanAttribute;
TickerAttribute.prototype = Object.create(Attribute.prototype);
TickerAttribute.prototype.constructor = TickerAttribute;
EnumAttribute.prototype = Object.create(Attribute.prototype);
EnumAttribute.prototype.constructor = EnumAttribute;
StringSetAttribute.prototype = Object.create(Attribute.prototype);
StringSetAttribute.prototype.constructor = StringSetAttribute;
PredicateResult.prototype = Object.create(Enum.prototype);
PredicateResult.prototype.constructor = PredicateResult;
Entities.prototype = Object.create(Enum.prototype);
Entities.prototype.constructor = Entities;
Dir.prototype = Object.create(Enum.prototype);
Dir.prototype.constructor = Dir;
Draggable.prototype = Object.create(Enum.prototype);
Draggable.prototype.constructor = Draggable;
RunAt.prototype = Object.create(Enum.prototype);
RunAt.prototype.constructor = RunAt;
AreaShape.prototype = Object.create(Enum.prototype);
AreaShape.prototype.constructor = AreaShape;
ButtonFormEncType.prototype = Object.create(Enum.prototype);
ButtonFormEncType.prototype.constructor = ButtonFormEncType;
ButtonFormMethod.prototype = Object.create(Enum.prototype);
ButtonFormMethod.prototype.constructor = ButtonFormMethod;
ButtonType.prototype = Object.create(Enum.prototype);
ButtonType.prototype.constructor = ButtonType;
CommandType.prototype = Object.create(Enum.prototype);
CommandType.prototype.constructor = CommandType;
FormEncType.prototype = Object.create(Enum.prototype);
FormEncType.prototype.constructor = FormEncType;
FormMethod.prototype = Object.create(Enum.prototype);
FormMethod.prototype.constructor = FormMethod;
IframeSandbox.prototype = Object.create(Enum.prototype);
IframeSandbox.prototype.constructor = IframeSandbox;
InputType.prototype = Object.create(Enum.prototype);
InputType.prototype.constructor = InputType;
InputFormEncType.prototype = Object.create(Enum.prototype);
InputFormEncType.prototype.constructor = InputFormEncType;
InputFormMethod.prototype = Object.create(Enum.prototype);
InputFormMethod.prototype.constructor = InputFormMethod;
KeyGenKeyType.prototype = Object.create(Enum.prototype);
KeyGenKeyType.prototype.constructor = KeyGenKeyType;
TextAreaWrap.prototype = Object.create(Enum.prototype);
TextAreaWrap.prototype.constructor = TextAreaWrap;
ThScope.prototype = Object.create(Enum.prototype);
ThScope.prototype.constructor = ThScope;
A.prototype = Object.create(HTMLTag.prototype);
A.prototype.constructor = A;
ABBR.prototype = Object.create(HTMLTag.prototype);
ABBR.prototype.constructor = ABBR;
ADDRESS.prototype = Object.create(HTMLTag.prototype);
ADDRESS.prototype.constructor = ADDRESS;
AREA.prototype = Object.create(HTMLTag.prototype);
AREA.prototype.constructor = AREA;
ARTICLE.prototype = Object.create(HTMLTag.prototype);
ARTICLE.prototype.constructor = ARTICLE;
ASIDE.prototype = Object.create(HTMLTag.prototype);
ASIDE.prototype.constructor = ASIDE;
AUDIO.prototype = Object.create(HTMLTag.prototype);
AUDIO.prototype.constructor = AUDIO;
B.prototype = Object.create(HTMLTag.prototype);
B.prototype.constructor = B;
BASE.prototype = Object.create(HTMLTag.prototype);
BASE.prototype.constructor = BASE;
BDI.prototype = Object.create(HTMLTag.prototype);
BDI.prototype.constructor = BDI;
BDO.prototype = Object.create(HTMLTag.prototype);
BDO.prototype.constructor = BDO;
BLOCKQUOTE.prototype = Object.create(HTMLTag.prototype);
BLOCKQUOTE.prototype.constructor = BLOCKQUOTE;
BODY.prototype = Object.create(HTMLTag.prototype);
BODY.prototype.constructor = BODY;
BR.prototype = Object.create(HTMLTag.prototype);
BR.prototype.constructor = BR;
BUTTON.prototype = Object.create(HTMLTag.prototype);
BUTTON.prototype.constructor = BUTTON;
CANVAS.prototype = Object.create(HTMLTag.prototype);
CANVAS.prototype.constructor = CANVAS;
CAPTION.prototype = Object.create(HTMLTag.prototype);
CAPTION.prototype.constructor = CAPTION;
CITE.prototype = Object.create(HTMLTag.prototype);
CITE.prototype.constructor = CITE;
CODE.prototype = Object.create(HTMLTag.prototype);
CODE.prototype.constructor = CODE;
COL.prototype = Object.create(HTMLTag.prototype);
COL.prototype.constructor = COL;
COLGROUP.prototype = Object.create(HTMLTag.prototype);
COLGROUP.prototype.constructor = COLGROUP;
COMMAND.prototype = Object.create(HTMLTag.prototype);
COMMAND.prototype.constructor = COMMAND;
DATALIST.prototype = Object.create(HTMLTag.prototype);
DATALIST.prototype.constructor = DATALIST;
DD.prototype = Object.create(HTMLTag.prototype);
DD.prototype.constructor = DD;
DEL.prototype = Object.create(HTMLTag.prototype);
DEL.prototype.constructor = DEL;
DETAILS.prototype = Object.create(HTMLTag.prototype);
DETAILS.prototype.constructor = DETAILS;
DFN.prototype = Object.create(HTMLTag.prototype);
DFN.prototype.constructor = DFN;
DIALOG.prototype = Object.create(HTMLTag.prototype);
DIALOG.prototype.constructor = DIALOG;
DIV.prototype = Object.create(HTMLTag.prototype);
DIV.prototype.constructor = DIV;
DL.prototype = Object.create(HTMLTag.prototype);
DL.prototype.constructor = DL;
DT.prototype = Object.create(HTMLTag.prototype);
DT.prototype.constructor = DT;
EM.prototype = Object.create(HTMLTag.prototype);
EM.prototype.constructor = EM;
EMBED.prototype = Object.create(HTMLTag.prototype);
EMBED.prototype.constructor = EMBED;
FIELDSET.prototype = Object.create(HTMLTag.prototype);
FIELDSET.prototype.constructor = FIELDSET;
FIGCAPTION.prototype = Object.create(HTMLTag.prototype);
FIGCAPTION.prototype.constructor = FIGCAPTION;
FIGURE.prototype = Object.create(HTMLTag.prototype);
FIGURE.prototype.constructor = FIGURE;
FOOTER.prototype = Object.create(HTMLTag.prototype);
FOOTER.prototype.constructor = FOOTER;
FORM.prototype = Object.create(HTMLTag.prototype);
FORM.prototype.constructor = FORM;
H1.prototype = Object.create(HTMLTag.prototype);
H1.prototype.constructor = H1;
H2.prototype = Object.create(HTMLTag.prototype);
H2.prototype.constructor = H2;
H3.prototype = Object.create(HTMLTag.prototype);
H3.prototype.constructor = H3;
H4.prototype = Object.create(HTMLTag.prototype);
H4.prototype.constructor = H4;
H5.prototype = Object.create(HTMLTag.prototype);
H5.prototype.constructor = H5;
H6.prototype = Object.create(HTMLTag.prototype);
H6.prototype.constructor = H6;
HEAD.prototype = Object.create(HTMLTag.prototype);
HEAD.prototype.constructor = HEAD;
HEADER.prototype = Object.create(HTMLTag.prototype);
HEADER.prototype.constructor = HEADER;
HGROUP.prototype = Object.create(HTMLTag.prototype);
HGROUP.prototype.constructor = HGROUP;
HR.prototype = Object.create(HTMLTag.prototype);
HR.prototype.constructor = HR;
HTML.prototype = Object.create(HTMLTag.prototype);
HTML.prototype.constructor = HTML;
I.prototype = Object.create(HTMLTag.prototype);
I.prototype.constructor = I;
IFRAME.prototype = Object.create(HTMLTag.prototype);
IFRAME.prototype.constructor = IFRAME;
IMG.prototype = Object.create(HTMLTag.prototype);
IMG.prototype.constructor = IMG;
INPUT.prototype = Object.create(HTMLTag.prototype);
INPUT.prototype.constructor = INPUT;
INS.prototype = Object.create(HTMLTag.prototype);
INS.prototype.constructor = INS;
KBD.prototype = Object.create(HTMLTag.prototype);
KBD.prototype.constructor = KBD;
KEYGEN.prototype = Object.create(HTMLTag.prototype);
KEYGEN.prototype.constructor = KEYGEN;
LABEL.prototype = Object.create(HTMLTag.prototype);
LABEL.prototype.constructor = LABEL;
LEGEND.prototype = Object.create(HTMLTag.prototype);
LEGEND.prototype.constructor = LEGEND;
LI.prototype = Object.create(HTMLTag.prototype);
LI.prototype.constructor = LI;
LINK.prototype = Object.create(HTMLTag.prototype);
LINK.prototype.constructor = LINK;
MAIN.prototype = Object.create(HTMLTag.prototype);
MAIN.prototype.constructor = MAIN;
MAP.prototype = Object.create(HTMLTag.prototype);
MAP.prototype.constructor = MAP;
MARK.prototype = Object.create(HTMLTag.prototype);
MARK.prototype.constructor = MARK;
MATH.prototype = Object.create(HTMLTag.prototype);
MATH.prototype.constructor = MATH;
MATHML.prototype = Object.create(HTMLTag.prototype);
MATHML.prototype.constructor = MATHML;
META.prototype = Object.create(HTMLTag.prototype);
META.prototype.constructor = META;
METER.prototype = Object.create(HTMLTag.prototype);
METER.prototype.constructor = METER;
NAV.prototype = Object.create(HTMLTag.prototype);
NAV.prototype.constructor = NAV;
NOSCRIPT.prototype = Object.create(HTMLTag.prototype);
NOSCRIPT.prototype.constructor = NOSCRIPT;
OBJECT.prototype = Object.create(HTMLTag.prototype);
OBJECT.prototype.constructor = OBJECT;
OL.prototype = Object.create(HTMLTag.prototype);
OL.prototype.constructor = OL;
OPTGROUP.prototype = Object.create(HTMLTag.prototype);
OPTGROUP.prototype.constructor = OPTGROUP;
OPTION.prototype = Object.create(HTMLTag.prototype);
OPTION.prototype.constructor = OPTION;
OUTPUT.prototype = Object.create(HTMLTag.prototype);
OUTPUT.prototype.constructor = OUTPUT;
P.prototype = Object.create(HTMLTag.prototype);
P.prototype.constructor = P;
PARAM.prototype = Object.create(HTMLTag.prototype);
PARAM.prototype.constructor = PARAM;
PICTURE.prototype = Object.create(HTMLTag.prototype);
PICTURE.prototype.constructor = PICTURE;
PRE.prototype = Object.create(HTMLTag.prototype);
PRE.prototype.constructor = PRE;
PROGRESS.prototype = Object.create(HTMLTag.prototype);
PROGRESS.prototype.constructor = PROGRESS;
Q.prototype = Object.create(HTMLTag.prototype);
Q.prototype.constructor = Q;
RP.prototype = Object.create(HTMLTag.prototype);
RP.prototype.constructor = RP;
RT.prototype = Object.create(HTMLTag.prototype);
RT.prototype.constructor = RT;
RUBY.prototype = Object.create(HTMLTag.prototype);
RUBY.prototype.constructor = RUBY;
SAMP.prototype = Object.create(HTMLTag.prototype);
SAMP.prototype.constructor = SAMP;
SCRIPT.prototype = Object.create(HTMLTag.prototype);
SCRIPT.prototype.constructor = SCRIPT;
SECTION.prototype = Object.create(HTMLTag.prototype);
SECTION.prototype.constructor = SECTION;
SELECT.prototype = Object.create(HTMLTag.prototype);
SELECT.prototype.constructor = SELECT;
SMALL.prototype = Object.create(HTMLTag.prototype);
SMALL.prototype.constructor = SMALL;
SOURCE.prototype = Object.create(HTMLTag.prototype);
SOURCE.prototype.constructor = SOURCE;
SPAN.prototype = Object.create(HTMLTag.prototype);
SPAN.prototype.constructor = SPAN;
STRONG.prototype = Object.create(HTMLTag.prototype);
STRONG.prototype.constructor = STRONG;
STYLE.prototype = Object.create(HTMLTag.prototype);
STYLE.prototype.constructor = STYLE;
SUB.prototype = Object.create(HTMLTag.prototype);
SUB.prototype.constructor = SUB;
SUMMARY.prototype = Object.create(HTMLTag.prototype);
SUMMARY.prototype.constructor = SUMMARY;
SUP.prototype = Object.create(HTMLTag.prototype);
SUP.prototype.constructor = SUP;
SVG.prototype = Object.create(HTMLTag.prototype);
SVG.prototype.constructor = SVG;
TABLE.prototype = Object.create(HTMLTag.prototype);
TABLE.prototype.constructor = TABLE;
TBODY.prototype = Object.create(HTMLTag.prototype);
TBODY.prototype.constructor = TBODY;
TD.prototype = Object.create(HTMLTag.prototype);
TD.prototype.constructor = TD;
TEXTAREA.prototype = Object.create(HTMLTag.prototype);
TEXTAREA.prototype.constructor = TEXTAREA;
TFOOT.prototype = Object.create(HTMLTag.prototype);
TFOOT.prototype.constructor = TFOOT;
TH.prototype = Object.create(HTMLTag.prototype);
TH.prototype.constructor = TH;
THEAD.prototype = Object.create(HTMLTag.prototype);
THEAD.prototype.constructor = THEAD;
TIME.prototype = Object.create(HTMLTag.prototype);
TIME.prototype.constructor = TIME;
TITLE.prototype = Object.create(HTMLTag.prototype);
TITLE.prototype.constructor = TITLE;
TR.prototype = Object.create(HTMLTag.prototype);
TR.prototype.constructor = TR;
UL.prototype = Object.create(HTMLTag.prototype);
UL.prototype.constructor = UL;
VAR.prototype = Object.create(HTMLTag.prototype);
VAR.prototype.constructor = VAR;
VIDEO.prototype = Object.create(HTMLTag.prototype);
VIDEO.prototype.constructor = VIDEO;
function TagConsumer() {
}
TagConsumer.prototype.onTagError_cjwpn3$ = function (tag, exception) {
throw exception;
};
TagConsumer.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'TagConsumer',
interfaces: []
};
function Tag() {
}
Tag.prototype.unaryPlus_lvwjq6$ = function ($receiver) {
this.entity_ws8or7$($receiver);
};
Tag.prototype.unaryPlus_pdl1vz$ = function ($receiver) {
this.text_61zpoe$($receiver);
};
Tag.prototype.text_61zpoe$ = function (s) {
this.consumer.onTagContent_6bul2c$(s);
};
Tag.prototype.text_3p81yu$ = function (n) {
this.text_61zpoe$(n.toString());
};
Tag.prototype.entity_ws8or7$ = function (e) {
this.consumer.onTagContentEntity_ws8or7$(e);
};
Tag.prototype.comment_61zpoe$ = function (s) {
this.consumer.onTagComment_6bul2c$(s);
};
Tag.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'Tag',
interfaces: []
};
function Unsafe() {
}
Unsafe.prototype.unaryPlus_lvwjq6$ = function ($receiver) {
this.unaryPlus_pdl1vz$($receiver.text);
};
Unsafe.prototype.raw_61zpoe$ = function (s) {
this.unaryPlus_pdl1vz$(s);
};
Unsafe.prototype.raw_ws8or7$ = function (entity) {
this.unaryPlus_lvwjq6$(entity);
};
Unsafe.prototype.raw_3p81yu$ = function (n) {
this.unaryPlus_pdl1vz$(n.toString());
};
Unsafe.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'Unsafe',
interfaces: []
};
function AttributeEnum() {
}
AttributeEnum.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'AttributeEnum',
interfaces: []
};
var visit = defineInlineFunction('kotlinx-html-js.kotlinx.html.visit_xwv8ym$', wrapFunction(function () {
var Unit = Kotlin.kotlin.Unit;
var visitTag = _.kotlinx.html.visitTag_xwv8ym$;
function visit$lambda(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
return function ($receiver, block) {
visitTag($receiver, visit$lambda(block));
};
}));
var visitAndFinalize = defineInlineFunction('kotlinx-html-js.kotlinx.html.visitAndFinalize_g9qte5$', wrapFunction(function () {
var Unit = Kotlin.kotlin.Unit;
var visitTagAndFinalize = _.kotlinx.html.visitTagAndFinalize_g9qte5$;
function visitAndFinalize$lambda(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
return function ($receiver, consumer, block) {
return visitTagAndFinalize($receiver, consumer, visitAndFinalize$lambda(block));
};
}));
function attributesMapOf() {
return emptyMap_0;
}
function attributesMapOf_0(key, value) {
if (value == null)
return emptyMap_0;
else
return singletonMapOf(key, value);
}
function attributesMapOf_1(pairs) {
var tmp$;
var result = null;
tmp$ = pairs.length - 1 | 0;
for (var i = 0; i <= tmp$; i += 2) {
var k = pairs[i];
var v = pairs[i + 1 | 0];
if (k != null && v != null) {
if (result == null) {
result = LinkedHashMap_init();
}result.put_xwzc9p$(k, v);
}}
return result != null ? result : emptyMap_0;
}
function singletonMapOf(key, value) {
return new SingletonStringMap(key, value);
}
function unsafe($receiver, block) {
$receiver.consumer.onTagContentUnsafe_kntra7$(block);
}
var emptyMap_0;
function DefaultUnsafe() {
this.sb_0 = StringBuilder_init();
}
DefaultUnsafe.prototype.unaryPlus_pdl1vz$ = function ($receiver) {
this.sb_0.append_pdl1vj$($receiver);
};
DefaultUnsafe.prototype.toString = function () {
return this.sb_0.toString();
};
DefaultUnsafe.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'DefaultUnsafe',
interfaces: [Unsafe]
};
function HtmlTagMarker() {
}
HtmlTagMarker.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'HtmlTagMarker',
interfaces: [Annotation]
};
function SingletonStringMap(key, value) {
this.key_fdtcub$_0 = key;
this.value_484qs5$_0 = value;
}
Object.defineProperty(SingletonStringMap.prototype, 'key', {
get: function () {
return this.key_fdtcub$_0;
}
});
Object.defineProperty(SingletonStringMap.prototype, 'value', {
get: function () {
return this.value_484qs5$_0;
}
});
Object.defineProperty(SingletonStringMap.prototype, 'entries', {
configurable: true,
get: function () {
return setOf(this);
}
});
Object.defineProperty(SingletonStringMap.prototype, 'keys', {
configurable: true,
get: function () {
return setOf(this.key);
}
});
Object.defineProperty(SingletonStringMap.prototype, 'size', {
configurable: true,
get: function () {
return 1;
}
});
Object.defineProperty(SingletonStringMap.prototype, 'values', {
configurable: true,
get: function () {
return listOf(this.value);
}
});
SingletonStringMap.prototype.containsKey_11rb$ = function (key) {
return equals(key, this.key);
};
SingletonStringMap.prototype.containsValue_11rc$ = function (value) {
return equals(value, this.value);
};
SingletonStringMap.prototype.get_11rb$ = function (key) {
return equals(key, this.key) ? this.value : null;
};
SingletonStringMap.prototype.isEmpty = function () {
return false;
};
SingletonStringMap.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'SingletonStringMap',
interfaces: [Map$Entry, Map]
};
SingletonStringMap.prototype.component1 = function () {
return this.key;
};
SingletonStringMap.prototype.component2 = function () {
return this.value;
};
SingletonStringMap.prototype.copy_puj7f4$ = function (key, value) {
return new SingletonStringMap(key === void 0 ? this.key : key, value === void 0 ? this.value : value);
};
SingletonStringMap.prototype.toString = function () {
return 'SingletonStringMap(key=' + Kotlin.toString(this.key) + (', value=' + Kotlin.toString(this.value)) + ')';
};
SingletonStringMap.prototype.hashCode = function () {
var result = 0;
result = result * 31 + Kotlin.hashCode(this.key) | 0;
result = result * 31 + Kotlin.hashCode(this.value) | 0;
return result;
};
SingletonStringMap.prototype.equals = function (other) {
return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && (Kotlin.equals(this.key, other.key) && Kotlin.equals(this.value, other.value)))));
};
function AttributeEncoder() {
}
AttributeEncoder.prototype.empty_l5rr1g$ = function (attributeName, tag) {
throw IllegalStateException_init('Attribute ' + attributeName + ' is not yet defined for tag ' + tag.tagName);
};
AttributeEncoder.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'AttributeEncoder',
interfaces: []
};
function Attribute(encoder) {
this.encoder = encoder;
}
Attribute.prototype.get_txhc1s$ = function (thisRef, attributeName) {
var tmp$, tmp$_0;
return (tmp$_0 = (tmp$ = thisRef.attributes.get_11rb$(attributeName)) != null ? this.encoder.decode_puj7f4$(attributeName, tmp$) : null) != null ? tmp$_0 : this.encoder.empty_l5rr1g$(attributeName, thisRef);
};
Attribute.prototype.set_fid0sb$ = function (thisRef, attributeName, value) {
thisRef.attributes.put_xwzc9p$(attributeName, this.encoder.encode_yuqcw7$(attributeName, value));
};
Attribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'Attribute',
interfaces: []
};
function StringEncoder() {
StringEncoder_instance = this;
}
StringEncoder.prototype.encode_yuqcw7$ = function (attributeName, value) {
return value;
};
StringEncoder.prototype.decode_puj7f4$ = function (attributeName, value) {
return value;
};
StringEncoder.$metadata$ = {
kind: Kind_OBJECT,
simpleName: 'StringEncoder',
interfaces: [AttributeEncoder]
};
var StringEncoder_instance = null;
function StringEncoder_getInstance() {
if (StringEncoder_instance === null) {
new StringEncoder();
}return StringEncoder_instance;
}
function StringAttribute() {
Attribute.call(this, StringEncoder_getInstance());
}
StringAttribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'StringAttribute',
interfaces: [Attribute]
};
function booleanEncode($receiver) {
return $receiver.toString();
}
function BooleanEncoder(trueValue, falseValue) {
if (trueValue === void 0)
trueValue = 'true';
if (falseValue === void 0)
falseValue = 'false';
this.trueValue = trueValue;
this.falseValue = falseValue;
}
BooleanEncoder.prototype.encode_yuqcw7$ = function (attributeName, value) {
return value ? this.trueValue : this.falseValue;
};
BooleanEncoder.prototype.decode_puj7f4$ = function (attributeName, value) {
if (equals(value, this.trueValue))
return true;
else if (equals(value, this.falseValue))
return false;
else
throw IllegalArgumentException_init('Unknown value ' + value + ' for ' + attributeName);
};
BooleanEncoder.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'BooleanEncoder',
interfaces: [AttributeEncoder]
};
function BooleanAttribute(trueValue, falseValue) {
if (trueValue === void 0)
trueValue = 'true';
if (falseValue === void 0)
falseValue = 'false';
Attribute.call(this, new BooleanEncoder(trueValue, falseValue));
}
BooleanAttribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'BooleanAttribute',
interfaces: [Attribute]
};
function tickerEncode($receiver, attributeName) {
return $receiver ? attributeName : '';
}
function TickerEncoder() {
TickerEncoder_instance = this;
}
TickerEncoder.prototype.encode_yuqcw7$ = function (attributeName, value) {
return tickerEncode(value, attributeName);
};
TickerEncoder.prototype.decode_puj7f4$ = function (attributeName, value) {
return equals(value, attributeName);
};
TickerEncoder.$metadata$ = {
kind: Kind_OBJECT,
simpleName: 'TickerEncoder',
interfaces: [AttributeEncoder]
};
var TickerEncoder_instance = null;
function TickerEncoder_getInstance() {
if (TickerEncoder_instance === null) {
new TickerEncoder();
}return TickerEncoder_instance;
}
function TickerAttribute() {
Attribute.call(this, TickerEncoder_getInstance());
}
TickerAttribute.prototype.set_fid0sb$ = function (thisRef, attributeName, value) {
if (value) {
thisRef.attributes.put_xwzc9p$(attributeName, attributeName);
} else {
thisRef.attributes.remove_11rb$(attributeName);
}
};
TickerAttribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'TickerAttribute',
interfaces: [Attribute]
};
function EnumEncoder(valuesMap) {
this.valuesMap = valuesMap;
}
EnumEncoder.prototype.encode_yuqcw7$ = function (attributeName, value) {
return value.realValue;
};
EnumEncoder.prototype.decode_puj7f4$ = function (attributeName, value) {
var tmp$;
tmp$ = this.valuesMap.get_11rb$(value);
if (tmp$ == null) {
throw IllegalArgumentException_init('Unknown value ' + value + ' for ' + attributeName);
}return tmp$;
};
EnumEncoder.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'EnumEncoder',
interfaces: [AttributeEncoder]
};
function enumEncode($receiver) {
return $receiver.realValue;
}
function EnumAttribute(values) {
Attribute.call(this, new EnumEncoder(values));
this.values = values;
}
EnumAttribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'EnumAttribute',
interfaces: [Attribute]
};
function stringSetDecode(value) {
var tmp$, tmp$_0;
var tmp$_1;
if ((tmp$ = value != null ? Regex_init('\\s+').split_905azu$(value, 0) : null) != null) {
var destination = ArrayList_init();
var tmp$_2;
tmp$_2 = tmp$.iterator();
while (tmp$_2.hasNext()) {
var element = tmp$_2.next();
if (!(element.length === 0))
destination.add_11rb$(element);
}
tmp$_1 = destination;
} else
tmp$_1 = null;
return (tmp$_0 = tmp$_1) != null ? toSet(tmp$_0) : null;
}
function stringSetEncode($receiver) {
return joinToString($receiver, ' ');
}
function StringSetEncoder() {
StringSetEncoder_instance = this;
}
StringSetEncoder.prototype.encode_yuqcw7$ = function (attributeName, value) {
return joinToString(value, ' ');
};
StringSetEncoder.prototype.decode_puj7f4$ = function (attributeName, value) {
return ensureNotNull(stringSetDecode(value));
};
StringSetEncoder.prototype.empty_l5rr1g$ = function (attributeName, tag) {
return emptySet();
};
StringSetEncoder.$metadata$ = {
kind: Kind_OBJECT,
simpleName: 'StringSetEncoder',
interfaces: [AttributeEncoder]
};
var StringSetEncoder_instance = null;
function StringSetEncoder_getInstance() {
if (StringSetEncoder_instance === null) {
new StringSetEncoder();
}return StringSetEncoder_instance;
}
function StringSetAttribute() {
Attribute.call(this, StringSetEncoder_getInstance());
}
StringSetAttribute.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'StringSetAttribute',
interfaces: [Attribute]
};
function visitAndFinalize$lambda(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visit$lambda(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visit$lambda_0(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visit$lambda_1(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visitAndFinalize$lambda_0(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visitAndFinalize$lambda_1(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visit$lambda_2(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function visit$lambda_3(closure$block) {
return function ($receiver) {
closure$block($receiver);
return Unit;
};
}
function legEnd$lambda($receiver) {
return Unit;
}
function legEnd($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = legEnd$lambda;
return visitTagAndFinalize(new LEGEND(attributesMapOf_0('class', classes), $receiver), $receiver, visitAndFinalize$lambda(block));
}
function legEnd$lambda_0($receiver) {
return Unit;
}
function legEnd_0($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = legEnd$lambda_0;
visitTag(new LEGEND(attributesMapOf_0('class', classes), $receiver.consumer), visit$lambda(block));
}
function legEnd$lambda_1($receiver) {
return Unit;
}
function legEnd_1($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = legEnd$lambda_1;
visitTag(new LEGEND(attributesMapOf_0('class', classes), $receiver.consumer), visit$lambda_0(block));
}
function legEnd$lambda_2($receiver) {
return Unit;
}
function legEnd_2($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = legEnd$lambda_2;
visitTag(new LEGEND(attributesMapOf_0('class', classes), $receiver.consumer), visit$lambda_1(block));
}
var get_true_ = defineInlineFunction('kotlinx-html-js.kotlinx.html.get_true__sh13o2$', wrapFunction(function () {
var Draggable = _.kotlinx.html.Draggable;
return function ($receiver) {
return Draggable.htmlTrue;
};
}));
var get_false_ = defineInlineFunction('kotlinx-html-js.kotlinx.html.get_false__sh13o2$', wrapFunction(function () {
var Draggable = _.kotlinx.html.Draggable;
return function ($receiver) {
return Draggable.htmlFalse;
};
}));
function object_$lambda($receiver) {
return Unit;
}
function object_($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = object_$lambda;
return visitTagAndFinalize(new OBJECT(attributesMapOf_0('class', classes), $receiver), $receiver, visitAndFinalize$lambda_0(block));
}
function var_$lambda($receiver) {
return Unit;
}
function var_($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = var_$lambda;
return visitTagAndFinalize(new VAR(attributesMapOf_0('class', classes), $receiver), $receiver, visitAndFinalize$lambda_1(block));
}
function var__0($receiver, classes, block) {
if (classes === void 0)
classes = null;
visitTag(new VAR(attributesMapOf_0('class', classes), $receiver.consumer), visit$lambda_2(block));
}
function object_$lambda_0($receiver) {
return Unit;
}
function object__0($receiver, classes, block) {
if (classes === void 0)
classes = null;
if (block === void 0)
block = object_$lambda_0;
visitTag(new OBJECT(attributesMapOf_0('class', classes), $receiver.consumer), visit$lambda_3(block));
}
function get_for_($receiver) {
return $receiver.htmlFor;
}
function set_for_($receiver, value) {
$receiver.htmlFor = value;
}
function get_for__0($receiver) {
return $receiver.htmlFor;
}
function set_for__0($receiver, value) {
$receiver.htmlFor = value;
}
function get_onTouchcancel($receiver) {
return get_onTouchCancel($receiver);
}
function set_onTouchcancel($receiver, newValue) {
set_onTouchCancel($receiver, newValue);
}
function get_onTouchmove($receiver) {
return get_onTouchMove($receiver);
}
function set_onTouchmove($receiver, newValue) {
set_onTouchMove($receiver, newValue);
}
function DelayedConsumer(downstream) {
this.downstream = downstream;
this.delayed_0 = null;
}
DelayedConsumer.prototype.onTagStart_tkgjla$ = function (tag) {
this.processDelayedTag_0();
this.delayed_0 = tag;
};
DelayedConsumer.prototype.onTagAttributeChange_5n2z71$ = function (tag, attribute, value) {
if (this.delayed_0 == null || !equals(this.delayed_0, tag)) {
throw IllegalStateException_init("You can't change tag attribute because it was already passed to the downstream");
}};
DelayedConsumer.prototype.onTagEvent_azi6uv$ = function (tag, event, value) {
if (this.delayed_0 == null || !equals(this.delayed_0, tag)) {
throw IllegalStateException_init("You can't change tag attribute because it was already passed to the downstream");
}};
DelayedConsumer.prototype.onTagEnd_tkgjla$ = function (tag) {
this.processDelayedTag_0();
this.downstream.onTagEnd_tkgjla$(tag);
};
DelayedConsumer.prototype.onTagContent_6bul2c$ = function (content) {
this.processDelayedTag_0();
this.downstream.onTagContent_6bul2c$(content);
};
DelayedConsumer.prototype.onTagContentEntity_ws8or7$ = function (entity) {
this.processDelayedTag_0();
this.downstream.onTagContentEntity_ws8or7$(entity);
};
DelayedConsumer.prototype.onTagError_cjwpn3$ = function (tag, exception) {
this.processDelayedTag_0();
this.downstream.onTagError_cjwpn3$(tag, exception);
};
DelayedConsumer.prototype.onTagComment_6bul2c$ = function (content) {
this.processDelayedTag_0();
this.downstream.onTagComment_6bul2c$(content);
};
DelayedConsumer.prototype.finalize = function () {
this.processDelayedTag_0();
return this.downstream.finalize();
};
DelayedConsumer.prototype.onTagContentUnsafe_kntra7$ = function (block) {
this.processDelayedTag_0();
return this.downstream.onTagContentUnsafe_kntra7$(block);
};
DelayedConsumer.prototype.processDelayedTag_0 = function () {
var tmp$;
if ((tmp$ = this.delayed_0) != null) {
this.delayed_0 = null;
this.downstream.onTagStart_tkgjla$(tmp$);
}};
DelayedConsumer.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'DelayedConsumer',
interfaces: [TagConsumer]
};
function delayed($receiver) {
return Kotlin.isType($receiver, DelayedConsumer) ? $receiver : new DelayedConsumer($receiver);
}
function DelegatingMap(initialValues, tag, consumer) {
this.tag_0 = tag;
this.consumer_0 = consumer;
this.backing_0 = initialValues;
this.backingMutable_0 = false;
}
Object.defineProperty(DelegatingMap.prototype, 'size', {
configurable: true,
get: function () {
return this.backing_0.size;
}
});
DelegatingMap.prototype.isEmpty = function () {
return this.backing_0.isEmpty();
};
DelegatingMap.prototype.containsKey_11rb$ = function (key) {
return this.backing_0.containsKey_11rb$(key);
};
DelegatingMap.prototype.containsValue_11rc$ = function (value) {
return this.backing_0.containsValue_11rc$(value);
};
DelegatingMap.prototype.get_11rb$ = function (key) {
return this.backing_0.get_11rb$(key);
};
DelegatingMap.prototype.put_xwzc9p$ = function (key, value) {
var mutable = this.switchToMutable_0();
var old = mutable.put_xwzc9p$(key, value);
if (!equals(old, value)) {
this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0, key, value);
}return old;
};
DelegatingMap.prototype.remove_11rb$ = function (key) {
var tmp$;
var mutable = this.switchToMutable_0();
var tmp$_0;
if ((tmp$ = mutable.remove_11rb$(key)) != null) {
this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0, key, null);
tmp$_0 = tmp$;
} else
tmp$_0 = null;
return tmp$_0;
};
DelegatingMap.prototype.putAll_a2k3zr$ = function (from) {
if (from.isEmpty())
return;
var consumer = this.consumer_0();
var mutable = this.switchToMutable_0();
var tmp$;
tmp$ = from.entries.iterator();
while (tmp$.hasNext()) {
var element = tmp$.next();
if (!equals(mutable.put_xwzc9p$(element.key, element.value), element.value)) {
consumer.onTagAttributeChange_5n2z71$(this.tag_0, element.key, element.value);
}}
};
DelegatingMap.prototype.clear = function () {
var tmp$;
tmp$ = this.backing_0.entries.iterator();
while (tmp$.hasNext()) {
var element = tmp$.next();
this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0, element.key, null);
}
this.backing_0 = emptyMap();
this.backingMutable_0 = false;
};
Object.defineProperty(DelegatingMap.prototype, 'immutableEntries', {
configurable: true,
get: function () {
return this.backing_0.entries;
}
});
DelegatingMap.prototype.switchToMutable_0 = function () {
var tmp$, tmp$_0;
if (this.backingMutable_0) {
tmp$ = this.backing_0;
} else {
this.backingMutable_0 = true;
this.backing_0 = LinkedHashMap_init_0(this.backing_0);
tmp$ = this.backing_0;
}
return Kotlin.isType(tmp$_0 = tmp$, MutableMap) ? tmp$_0 : throwCCE();
};
Object.defineProperty(DelegatingMap.prototype, 'keys', {
configurable: true,
get: function () {
return this.switchToMutable_0().keys;
}
});
Object.defineProperty(DelegatingMap.prototype, 'values', {
configurable: true,
get: function () {
return this.switchToMutable_0().values;
}
});
Object.defineProperty(DelegatingMap.prototype, 'entries', {
configurable: true,
get: function () {
return this.switchToMutable_0().entries;
}
});
DelegatingMap.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'DelegatingMap',
interfaces: [MutableMap]
};
function DelegatingExceptionConsumer(underlying, handler) {
this.underlying = underlying;
this.handler = handler;
}
DelegatingExceptionConsumer.prototype.onTagError_cjwpn3$ = function (tag, exception) {
this.handler(this.underlying, exception);
};
DelegatingExceptionConsumer.prototype.finalize = function () {
return this.underlying.finalize();
};
DelegatingExceptionConsumer.prototype.onTagAttributeChange_5n2z71$ = function (tag, attribute, value) {
return this.underlying.onTagAttributeChange_5n2z71$(tag, attribute, value);
};
DelegatingExceptionConsumer.prototype.onTagComment_6bul2c$ = function (content) {
return this.underlying.onTagComment_6bul2c$(content);
};
DelegatingExceptionConsumer.prototype.onTagContent_6bul2c$ = function (content) {
return this.underlying.onTagContent_6bul2c$(content);
};
DelegatingExceptionConsumer.prototype.onTagContentEntity_ws8or7$ = function (entity) {
return this.underlying.onTagContentEntity_ws8or7$(entity);
};
DelegatingExceptionConsumer.prototype.onTagContentUnsafe_kntra7$ = function (block) {
return this.underlying.onTagContentUnsafe_kntra7$(block);
};
DelegatingExceptionConsumer.prototype.onTagEnd_tkgjla$ = function (tag) {
return this.underlying.onTagEnd_tkgjla$(tag);
};
DelegatingExceptionConsumer.prototype.onTagEvent_azi6uv$ = function (tag, event, value) {
return this.underlying.onTagEvent_azi6uv$(tag, event, value);
};
DelegatingExceptionConsumer.prototype.onTagStart_tkgjla$ = function (tag) {
return this.underlying.onTagStart_tkgjla$(tag);
};
DelegatingExceptionConsumer.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'DelegatingExceptionConsumer',
interfaces: [TagConsumer]
};
function catch_0($receiver, handler) {
return new DelegatingExceptionConsumer($receiver, handler);
}
function PredicateResults() {
PredicateResults_instance = this;
this.PASS = PredicateResult$PASS_getInstance();
this.SKIP = PredicateResult$SKIP_getInstance();
this.DROP = PredicateResult$DROP_getInstance();
}
PredicateResults.$metadata$ = {
kind: Kind_OBJECT,
simpleName: 'PredicateResults',
interfaces: []
};
var PredicateResults_instance = null;
function PredicateResults_getInstance() {
if (PredicateResults_instance === null) {
new PredicateResults();
}return PredicateResults_instance;
}
function PredicateResult(name, ordinal) {
Enum.call(this);
this.name$ = name;
this.ordinal$ = ordinal;
}
function PredicateResult_initFields() {
PredicateResult_initFields = function () {
};
PredicateResult$PASS_instance = new PredicateResult('PASS', 0);
PredicateResult$SKIP_instance = new PredicateResult('SKIP', 1);
PredicateResult$DROP_instance = new PredicateResult('DROP', 2);
}
var PredicateResult$PASS_instance;
function PredicateResult$PASS_getInstance() {
PredicateResult_initFields();
return PredicateResult$PASS_instance;
}
var PredicateResult$SKIP_instance;
function PredicateResult$SKIP_getInstance() {
PredicateResult_initFields();
return PredicateResult$SKIP_instance;
}
var PredicateResult$DROP_instance;
function PredicateResult$DROP_getInstance() {
PredicateResult_initFields();
return PredicateResult$DROP_instance;
}
PredicateResult.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'PredicateResult',
interfaces: [Enum]
};
function PredicateResult$values() {
return [PredicateResult$PASS_getInstance(), PredicateResult$SKIP_getInstance(), PredicateResult$DROP_getInstance()];
}
PredicateResult.values = PredicateResult$values;
function PredicateResult$valueOf(name) {
switch (name) {
case 'PASS':
return PredicateResult$PASS_getInstance();
case 'SKIP':
return PredicateResult$SKIP_getInstance();
case 'DROP':
return PredicateResult$DROP_getInstance();
default:throwISE('No enum constant kotlinx.html.consumers.PredicateResult.' + name);
}
}
PredicateResult.valueOf_61zpoe$ = PredicateResult$valueOf;
function FilterTagConsumer(downstream, predicate) {
this.downstream = downstream;
this.predicate = predicate;
this.currentLevel_0 = 0;
this.skippedLevels_0 = HashSet_init();
this.dropLevel_0 = null;
}
FilterTagConsumer.prototype.onTagStart_tkgjla$ = function (tag) {
this.currentLevel_0 = this.currentLevel_0 + 1 | 0;
if (this.dropLevel_0 == null) {
switch (this.predicate(tag).name) {
case 'PASS':
this.downstream.onTagStart_tkgjla$(tag);
break;
case 'SKIP':
this.skippedLevels_0.add_11rb$(this.currentLevel_0);
break;
case 'DROP':
this.dropLevel_0 = this.currentLevel_0;
break;
default:Kotlin.noWhenBranchMatched();
break;
}
}};
FilterTagConsumer.prototype.onTagAttributeChange_5n2z71$ = function (tag, attribute, value) {
throw UnsupportedOperationException_init("this filter doesn't support attribute change");
};
FilterTagConsumer.prototype.onTagEvent_azi6uv$ = function (tag, event, value) {
throw UnsupportedOperationException_init("this filter doesn't support attribute change");
};
FilterTagConsumer.prototype.onTagEnd_tkgjla$ = function (tag) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagEnd_tkgjla$(tag);
}this.skippedLevels_0.remove_11rb$(this.currentLevel_0);
if (this.dropLevel_0 === this.currentLevel_0) {
this.dropLevel_0 = null;
}this.currentLevel_0 = this.currentLevel_0 - 1 | 0;
};
FilterTagConsumer.prototype.onTagContent_6bul2c$ = function (content) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagContent_6bul2c$(content);
}};
FilterTagConsumer.prototype.onTagContentEntity_ws8or7$ = function (entity) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagContentEntity_ws8or7$(entity);
}};
FilterTagConsumer.prototype.onTagContentUnsafe_kntra7$ = function (block) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagContentUnsafe_kntra7$(block);
}};
FilterTagConsumer.prototype.canPassCurrentLevel_0 = function () {
return this.dropLevel_0 == null && !this.skippedLevels_0.contains_11rb$(this.currentLevel_0);
};
FilterTagConsumer.prototype.onTagError_cjwpn3$ = function (tag, exception) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagError_cjwpn3$(tag, exception);
}};
FilterTagConsumer.prototype.onTagComment_6bul2c$ = function (content) {
if (this.canPassCurrentLevel_0()) {
this.downstream.onTagComment_6bul2c$(content);
}};
FilterTagConsumer.prototype.finalize = function () {
return this.downstream.finalize();
};
FilterTagConsumer.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'FilterTagConsumer',
interfaces: [TagConsumer]
};
function filter$lambda(closure$predicate) {
return function (it) {
return closure$predicate(PredicateResults_getInstance(), it);
};
}
function filter($receiver, predicate) {
return delayed(new FilterTagConsumer($receiver, filter$lambda(predicate)));
}
function FinalizeConsumer(downstream, block) {
this.downstream = downstream;
this.block = block;
this.level_0 = 0;
}
FinalizeConsumer.prototype.onTagStart_tkgjla$ = function (tag) {
this.downstream.onTagStart_tkgjla$(tag);
this.level_0 = this.level_0 + 1 | 0;
};
FinalizeConsumer.prototype.onTagEnd_tkgjla$ = function (tag) {
this.downstream.onTagEnd_tkgjla$(tag);
this.level_0 = this.level_0 - 1 | 0;
};
FinalizeConsumer.prototype.onTagAttributeChange_5n2z71$ = function (tag, attribute, value) {
this.downstream.onTagAttributeChange_5n2z71$(tag, attribute, value);
};
FinalizeConsumer.prototype.onTagEvent_azi6uv$ = function (tag, event, value) {
this.downstream.onTagEvent_azi6uv$(tag, event, value);
};
FinalizeConsumer.prototype.onTagContent_6bul2c$ = function (content) {
this.downstream.onTagContent_6bul2c$(content);
};
FinalizeConsumer.prototype.onTagContentEntity_ws8or7$ = function (entity) {
this.downstream.onTagContentEntity_ws8or7$(entity);
};
FinalizeConsumer.prototype.onTagContentUnsafe_kntra7$ = function (block) {
this.downstream.onTagContentUnsafe_kntra7$(block);
};
FinalizeConsumer.prototype.onTagError_cjwpn3$ = function (tag, exception) {
this.downstream.onTagError_cjwpn3$(tag, exception);
};
FinalizeConsumer.prototype.onTagComment_6bul2c$ = function (content) {
this.downstream.onTagComment_6bul2c$(content);
};
FinalizeConsumer.prototype.finalize = function () {
return this.block(this.downstream.finalize(), this.level_0 > 0);
};
FinalizeConsumer.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'FinalizeConsumer',
interfaces: [TagConsumer]
};
function onFinalize$lambda(closure$block) {
return function (to, partial) {
closure$block(to, partial);
return to;
};
}
function onFinalize($receiver, block) {
return new FinalizeConsumer($receiver, onFinalize$lambda(block));
}
function onFinalizeMap($receiver, block) {
return new FinalizeConsumer($receiver, block);
}
function CommonAttributeGroupFacade() {
}
CommonAttributeGroupFacade.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'CommonAttributeGroupFacade',
interfaces: [Tag]
};
function get_enableTheming($receiver) {
return attributeBooleanBoolean.get_txhc1s$($receiver, 'EnableTheming');
}
function set_enableTheming($receiver, newValue) {