emblem-source 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/dist/emblem.js +183 -162
- data/dist/emblem.min.js +2 -2
- metadata +2 -2
data/dist/emblem.js
CHANGED
@@ -635,21 +635,36 @@ Emblem.Parser = (function() {
|
|
635
635
|
return [tagOpenContent, new AST.ContentNode('</' + tagName + '>')];
|
636
636
|
}
|
637
637
|
},
|
638
|
-
peg$c122 = function(
|
638
|
+
peg$c122 = function(s) { return { shorthand: s, id: true}; },
|
639
|
+
peg$c123 = function(s) { return { shorthand: s }; },
|
640
|
+
peg$c124 = function(shorthands) {
|
641
|
+
var id, classes = [];
|
642
|
+
for(var i = 0, len = shorthands.length; i < len; ++i) {
|
643
|
+
var shorthand = shorthands[i];
|
644
|
+
if(shorthand.id) {
|
645
|
+
id = shorthand.shorthand;
|
646
|
+
} else {
|
647
|
+
classes.push(shorthand.shorthand);
|
648
|
+
}
|
649
|
+
}
|
650
|
+
|
651
|
+
return [id, classes];
|
652
|
+
},
|
653
|
+
peg$c125 = function(a) {
|
639
654
|
return [new AST.ContentNode(' ')].concat(a);
|
640
655
|
},
|
641
|
-
peg$
|
642
|
-
peg$
|
643
|
-
peg$
|
644
|
-
peg$
|
656
|
+
peg$c126 = /^[A-Za-z.:0-9_\-]/,
|
657
|
+
peg$c127 = "[A-Za-z.:0-9_\\-]",
|
658
|
+
peg$c128 = function(id) { return new AST.MustacheNode([id]); },
|
659
|
+
peg$c129 = function(event, mustacheNode) {
|
645
660
|
// Unshift the action helper and augment the hash
|
646
661
|
return [unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]])];
|
647
662
|
},
|
648
|
-
peg$
|
649
|
-
peg$
|
650
|
-
peg$
|
651
|
-
peg$
|
652
|
-
peg$
|
663
|
+
peg$c130 = function(value) { return value.replace(/ *$/, ''); },
|
664
|
+
peg$c131 = "!",
|
665
|
+
peg$c132 = "\"!\"",
|
666
|
+
peg$c133 = function(key, value) { return IS_EMBER; },
|
667
|
+
peg$c134 = function(key, value) {
|
653
668
|
var hashNode = new AST.HashNode([[key, new AST.StringNode(value)]]);
|
654
669
|
var params = [new AST.IdNode(['bindAttr'])];
|
655
670
|
var mustacheNode = new AST.MustacheNode(params, hashNode);
|
@@ -662,7 +677,7 @@ Emblem.Parser = (function() {
|
|
662
677
|
|
663
678
|
return [mustacheNode];
|
664
679
|
},
|
665
|
-
peg$
|
680
|
+
peg$c135 = function(key, id) {
|
666
681
|
var mustacheNode = new AST.MustacheNode([id]);
|
667
682
|
|
668
683
|
if(IS_EMBER && id._emblemSuffixModifier === '!') {
|
@@ -675,55 +690,55 @@ Emblem.Parser = (function() {
|
|
675
690
|
new AST.ContentNode('"'),
|
676
691
|
];
|
677
692
|
},
|
678
|
-
peg$
|
693
|
+
peg$c136 = function(key, nodes) {
|
679
694
|
var result = [ new AST.ContentNode(key + '=' + '"') ].concat(nodes);
|
680
695
|
return result.concat([new AST.ContentNode('"')]);
|
681
696
|
},
|
682
|
-
peg$
|
683
|
-
peg$
|
684
|
-
peg$
|
685
|
-
peg$
|
686
|
-
peg$
|
687
|
-
peg$
|
688
|
-
peg$
|
689
|
-
peg$
|
690
|
-
peg$
|
691
|
-
peg$
|
692
|
-
peg$
|
693
|
-
peg$
|
694
|
-
peg$
|
695
|
-
peg$
|
696
|
-
peg$
|
697
|
-
peg$
|
698
|
-
peg$
|
699
|
-
peg$
|
700
|
-
peg$
|
701
|
-
peg$
|
702
|
-
peg$
|
703
|
-
peg$
|
704
|
-
peg$
|
705
|
-
peg$
|
706
|
-
peg$
|
707
|
-
peg$
|
708
|
-
peg$
|
709
|
-
peg$
|
710
|
-
peg$
|
711
|
-
peg$
|
712
|
-
peg$
|
713
|
-
peg$
|
714
|
-
peg$
|
715
|
-
peg$
|
716
|
-
peg$
|
717
|
-
peg$
|
718
|
-
peg$
|
719
|
-
peg$
|
720
|
-
peg$
|
721
|
-
peg$
|
722
|
-
peg$
|
723
|
-
peg$
|
724
|
-
peg$
|
725
|
-
peg$
|
726
|
-
peg$
|
697
|
+
peg$c137 = "_",
|
698
|
+
peg$c138 = "\"_\"",
|
699
|
+
peg$c139 = "-",
|
700
|
+
peg$c140 = "\"-\"",
|
701
|
+
peg$c141 = "%",
|
702
|
+
peg$c142 = "\"%\"",
|
703
|
+
peg$c143 = "#",
|
704
|
+
peg$c144 = "\"#\"",
|
705
|
+
peg$c145 = function(c) { return c;},
|
706
|
+
peg$c146 = "CSSIdentifier",
|
707
|
+
peg$c147 = function(nmstart, nmchars) { return nmstart + nmchars; },
|
708
|
+
peg$c148 = /^[_a-zA-Z0-9\-]/,
|
709
|
+
peg$c149 = "[_a-zA-Z0-9\\-]",
|
710
|
+
peg$c150 = /^[_a-zA-Z]/,
|
711
|
+
peg$c151 = "[_a-zA-Z]",
|
712
|
+
peg$c152 = /^[\x80-\xFF]/,
|
713
|
+
peg$c153 = "[\\x80-\\xFF]",
|
714
|
+
peg$c154 = "KnownHTMLTagName",
|
715
|
+
peg$c155 = function(t) { return !!KNOWN_TAGS[t]; },
|
716
|
+
peg$c156 = function(t) { return t; },
|
717
|
+
peg$c157 = /^[:_a-zA-Z0-9\-]/,
|
718
|
+
peg$c158 = "[:_a-zA-Z0-9\\-]",
|
719
|
+
peg$c159 = "a JS event",
|
720
|
+
peg$c160 = function(t) { return !!KNOWN_EVENTS[t]; },
|
721
|
+
peg$c161 = "INDENT",
|
722
|
+
peg$c162 = "\uEFEF",
|
723
|
+
peg$c163 = "\"\\uEFEF\"",
|
724
|
+
peg$c164 = function() { return ''; },
|
725
|
+
peg$c165 = "DEDENT",
|
726
|
+
peg$c166 = "\uEFFE",
|
727
|
+
peg$c167 = "\"\\uEFFE\"",
|
728
|
+
peg$c168 = "Unmatched DEDENT",
|
729
|
+
peg$c169 = "\uEFEE",
|
730
|
+
peg$c170 = "\"\\uEFEE\"",
|
731
|
+
peg$c171 = "LineEnd",
|
732
|
+
peg$c172 = "\uEFFF",
|
733
|
+
peg$c173 = "\"\\uEFFF\"",
|
734
|
+
peg$c174 = "\n",
|
735
|
+
peg$c175 = "\"\\n\"",
|
736
|
+
peg$c176 = "ANYDEDENT",
|
737
|
+
peg$c177 = "RequiredWhitespace",
|
738
|
+
peg$c178 = "OptionalWhitespace",
|
739
|
+
peg$c179 = "InlineWhitespace",
|
740
|
+
peg$c180 = /^[ \t]/,
|
741
|
+
peg$c181 = "[ \\t]",
|
727
742
|
|
728
743
|
peg$currPos = 0,
|
729
744
|
peg$reportedPos = 0,
|
@@ -3770,66 +3785,72 @@ Emblem.Parser = (function() {
|
|
3770
3785
|
}
|
3771
3786
|
|
3772
3787
|
function peg$parseshorthandAttributes() {
|
3773
|
-
var s0;
|
3774
|
-
|
3775
|
-
s0 = peg$parseattributesAtLeastID();
|
3776
|
-
if (s0 === null) {
|
3777
|
-
s0 = peg$parseattributesAtLeastClass();
|
3778
|
-
}
|
3779
|
-
|
3780
|
-
return s0;
|
3781
|
-
}
|
3782
|
-
|
3783
|
-
function peg$parseattributesAtLeastID() {
|
3784
3788
|
var s0, s1, s2, s3;
|
3785
3789
|
|
3786
3790
|
s0 = peg$currPos;
|
3787
|
-
s1 =
|
3788
|
-
|
3789
|
-
|
3791
|
+
s1 = [];
|
3792
|
+
s2 = peg$currPos;
|
3793
|
+
s3 = peg$parseidShorthand();
|
3794
|
+
if (s3 !== null) {
|
3795
|
+
peg$reportedPos = s2;
|
3796
|
+
s3 = peg$c122(s3);
|
3797
|
+
}
|
3798
|
+
if (s3 === null) {
|
3799
|
+
peg$currPos = s2;
|
3800
|
+
s2 = s3;
|
3801
|
+
} else {
|
3802
|
+
s2 = s3;
|
3803
|
+
}
|
3804
|
+
if (s2 === null) {
|
3805
|
+
s2 = peg$currPos;
|
3790
3806
|
s3 = peg$parseclassShorthand();
|
3791
|
-
|
3792
|
-
s2
|
3793
|
-
s3 = peg$
|
3807
|
+
if (s3 !== null) {
|
3808
|
+
peg$reportedPos = s2;
|
3809
|
+
s3 = peg$c123(s3);
|
3794
3810
|
}
|
3795
|
-
if (
|
3796
|
-
peg$
|
3797
|
-
|
3798
|
-
if (s1 === null) {
|
3799
|
-
peg$currPos = s0;
|
3800
|
-
s0 = s1;
|
3801
|
-
} else {
|
3802
|
-
s0 = s1;
|
3803
|
-
}
|
3811
|
+
if (s3 === null) {
|
3812
|
+
peg$currPos = s2;
|
3813
|
+
s2 = s3;
|
3804
3814
|
} else {
|
3805
|
-
|
3806
|
-
s0 = peg$c0;
|
3815
|
+
s2 = s3;
|
3807
3816
|
}
|
3808
|
-
} else {
|
3809
|
-
peg$currPos = s0;
|
3810
|
-
s0 = peg$c0;
|
3811
3817
|
}
|
3812
|
-
|
3813
|
-
return s0;
|
3814
|
-
}
|
3815
|
-
|
3816
|
-
function peg$parseattributesAtLeastClass() {
|
3817
|
-
var s0, s1, s2;
|
3818
|
-
|
3819
|
-
s0 = peg$currPos;
|
3820
|
-
s1 = [];
|
3821
|
-
s2 = peg$parseclassShorthand();
|
3822
3818
|
if (s2 !== null) {
|
3823
3819
|
while (s2 !== null) {
|
3824
3820
|
s1.push(s2);
|
3825
|
-
s2 = peg$
|
3821
|
+
s2 = peg$currPos;
|
3822
|
+
s3 = peg$parseidShorthand();
|
3823
|
+
if (s3 !== null) {
|
3824
|
+
peg$reportedPos = s2;
|
3825
|
+
s3 = peg$c122(s3);
|
3826
|
+
}
|
3827
|
+
if (s3 === null) {
|
3828
|
+
peg$currPos = s2;
|
3829
|
+
s2 = s3;
|
3830
|
+
} else {
|
3831
|
+
s2 = s3;
|
3832
|
+
}
|
3833
|
+
if (s2 === null) {
|
3834
|
+
s2 = peg$currPos;
|
3835
|
+
s3 = peg$parseclassShorthand();
|
3836
|
+
if (s3 !== null) {
|
3837
|
+
peg$reportedPos = s2;
|
3838
|
+
s3 = peg$c123(s3);
|
3839
|
+
}
|
3840
|
+
if (s3 === null) {
|
3841
|
+
peg$currPos = s2;
|
3842
|
+
s2 = s3;
|
3843
|
+
} else {
|
3844
|
+
s2 = s3;
|
3845
|
+
}
|
3846
|
+
}
|
3826
3847
|
}
|
3827
3848
|
} else {
|
3828
3849
|
s1 = peg$c0;
|
3829
3850
|
}
|
3830
3851
|
if (s1 !== null) {
|
3831
3852
|
peg$reportedPos = s0;
|
3832
|
-
s1 = peg$
|
3853
|
+
s1 = peg$c124(s1);
|
3833
3854
|
}
|
3834
3855
|
if (s1 === null) {
|
3835
3856
|
peg$currPos = s0;
|
@@ -3880,7 +3901,7 @@ Emblem.Parser = (function() {
|
|
3880
3901
|
}
|
3881
3902
|
if (s2 !== null) {
|
3882
3903
|
peg$reportedPos = s0;
|
3883
|
-
s1 = peg$
|
3904
|
+
s1 = peg$c125(s2);
|
3884
3905
|
if (s1 === null) {
|
3885
3906
|
peg$currPos = s0;
|
3886
3907
|
s0 = s1;
|
@@ -3902,12 +3923,12 @@ Emblem.Parser = (function() {
|
|
3902
3923
|
function peg$parseboundAttributeValueChar() {
|
3903
3924
|
var s0;
|
3904
3925
|
|
3905
|
-
if (peg$
|
3926
|
+
if (peg$c126.test(input.charAt(peg$currPos))) {
|
3906
3927
|
s0 = input.charAt(peg$currPos);
|
3907
3928
|
peg$currPos++;
|
3908
3929
|
} else {
|
3909
3930
|
s0 = null;
|
3910
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3931
|
+
if (peg$silentFails === 0) { peg$fail(peg$c127); }
|
3911
3932
|
}
|
3912
3933
|
|
3913
3934
|
return s0;
|
@@ -3922,7 +3943,7 @@ Emblem.Parser = (function() {
|
|
3922
3943
|
s1 = peg$parsepathIdNode();
|
3923
3944
|
if (s1 !== null) {
|
3924
3945
|
peg$reportedPos = s0;
|
3925
|
-
s1 = peg$
|
3946
|
+
s1 = peg$c128(s1);
|
3926
3947
|
}
|
3927
3948
|
if (s1 === null) {
|
3928
3949
|
peg$currPos = s0;
|
@@ -4038,7 +4059,7 @@ Emblem.Parser = (function() {
|
|
4038
4059
|
s3 = peg$parseactionValue();
|
4039
4060
|
if (s3 !== null) {
|
4040
4061
|
peg$reportedPos = s0;
|
4041
|
-
s1 = peg$
|
4062
|
+
s1 = peg$c129(s1,s3);
|
4042
4063
|
if (s1 === null) {
|
4043
4064
|
peg$currPos = s0;
|
4044
4065
|
s0 = s1;
|
@@ -4120,7 +4141,7 @@ Emblem.Parser = (function() {
|
|
4120
4141
|
}
|
4121
4142
|
if (s5 !== null) {
|
4122
4143
|
peg$reportedPos = s0;
|
4123
|
-
s1 = peg$
|
4144
|
+
s1 = peg$c130(s3);
|
4124
4145
|
if (s1 === null) {
|
4125
4146
|
peg$currPos = s0;
|
4126
4147
|
s0 = s1;
|
@@ -4187,11 +4208,11 @@ Emblem.Parser = (function() {
|
|
4187
4208
|
s4 = peg$currPos;
|
4188
4209
|
peg$silentFails++;
|
4189
4210
|
if (input.charCodeAt(peg$currPos) === 33) {
|
4190
|
-
s5 = peg$
|
4211
|
+
s5 = peg$c131;
|
4191
4212
|
peg$currPos++;
|
4192
4213
|
} else {
|
4193
4214
|
s5 = null;
|
4194
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4215
|
+
if (peg$silentFails === 0) { peg$fail(peg$c132); }
|
4195
4216
|
}
|
4196
4217
|
peg$silentFails--;
|
4197
4218
|
if (s5 === null) {
|
@@ -4202,7 +4223,7 @@ Emblem.Parser = (function() {
|
|
4202
4223
|
}
|
4203
4224
|
if (s4 !== null) {
|
4204
4225
|
peg$reportedPos = peg$currPos;
|
4205
|
-
s5 = peg$
|
4226
|
+
s5 = peg$c133(s1,s3);
|
4206
4227
|
if (s5) {
|
4207
4228
|
s5 = peg$c1;
|
4208
4229
|
} else {
|
@@ -4210,7 +4231,7 @@ Emblem.Parser = (function() {
|
|
4210
4231
|
}
|
4211
4232
|
if (s5 !== null) {
|
4212
4233
|
peg$reportedPos = s0;
|
4213
|
-
s1 = peg$
|
4234
|
+
s1 = peg$c134(s1,s3);
|
4214
4235
|
if (s1 === null) {
|
4215
4236
|
peg$currPos = s0;
|
4216
4237
|
s0 = s1;
|
@@ -4258,7 +4279,7 @@ Emblem.Parser = (function() {
|
|
4258
4279
|
s3 = peg$parsepathIdNode();
|
4259
4280
|
if (s3 !== null) {
|
4260
4281
|
peg$reportedPos = s0;
|
4261
|
-
s1 = peg$
|
4282
|
+
s1 = peg$c135(s1,s3);
|
4262
4283
|
if (s1 === null) {
|
4263
4284
|
peg$currPos = s0;
|
4264
4285
|
s0 = s1;
|
@@ -4298,7 +4319,7 @@ Emblem.Parser = (function() {
|
|
4298
4319
|
s3 = peg$parseattributeTextNodes();
|
4299
4320
|
if (s3 !== null) {
|
4300
4321
|
peg$reportedPos = s0;
|
4301
|
-
s1 = peg$
|
4322
|
+
s1 = peg$c136(s1,s3);
|
4302
4323
|
if (s1 === null) {
|
4303
4324
|
peg$currPos = s0;
|
4304
4325
|
s0 = s1;
|
@@ -4364,19 +4385,19 @@ Emblem.Parser = (function() {
|
|
4364
4385
|
}
|
4365
4386
|
if (s0 === null) {
|
4366
4387
|
if (input.charCodeAt(peg$currPos) === 95) {
|
4367
|
-
s0 = peg$
|
4388
|
+
s0 = peg$c137;
|
4368
4389
|
peg$currPos++;
|
4369
4390
|
} else {
|
4370
4391
|
s0 = null;
|
4371
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4392
|
+
if (peg$silentFails === 0) { peg$fail(peg$c138); }
|
4372
4393
|
}
|
4373
4394
|
if (s0 === null) {
|
4374
4395
|
if (input.charCodeAt(peg$currPos) === 45) {
|
4375
|
-
s0 = peg$
|
4396
|
+
s0 = peg$c139;
|
4376
4397
|
peg$currPos++;
|
4377
4398
|
} else {
|
4378
4399
|
s0 = null;
|
4379
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4400
|
+
if (peg$silentFails === 0) { peg$fail(peg$c140); }
|
4380
4401
|
}
|
4381
4402
|
}
|
4382
4403
|
}
|
@@ -4390,11 +4411,11 @@ Emblem.Parser = (function() {
|
|
4390
4411
|
|
4391
4412
|
s0 = peg$currPos;
|
4392
4413
|
if (input.charCodeAt(peg$currPos) === 37) {
|
4393
|
-
s1 = peg$
|
4414
|
+
s1 = peg$c141;
|
4394
4415
|
peg$currPos++;
|
4395
4416
|
} else {
|
4396
4417
|
s1 = null;
|
4397
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4418
|
+
if (peg$silentFails === 0) { peg$fail(peg$c142); }
|
4398
4419
|
}
|
4399
4420
|
if (s1 !== null) {
|
4400
4421
|
s2 = peg$parsecssIdentifier();
|
@@ -4424,17 +4445,17 @@ Emblem.Parser = (function() {
|
|
4424
4445
|
|
4425
4446
|
s0 = peg$currPos;
|
4426
4447
|
if (input.charCodeAt(peg$currPos) === 35) {
|
4427
|
-
s1 = peg$
|
4448
|
+
s1 = peg$c143;
|
4428
4449
|
peg$currPos++;
|
4429
4450
|
} else {
|
4430
4451
|
s1 = null;
|
4431
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4452
|
+
if (peg$silentFails === 0) { peg$fail(peg$c144); }
|
4432
4453
|
}
|
4433
4454
|
if (s1 !== null) {
|
4434
4455
|
s2 = peg$parsecssIdentifier();
|
4435
4456
|
if (s2 !== null) {
|
4436
4457
|
peg$reportedPos = s0;
|
4437
|
-
s1 = peg$
|
4458
|
+
s1 = peg$c145(s2);
|
4438
4459
|
if (s1 === null) {
|
4439
4460
|
peg$currPos = s0;
|
4440
4461
|
s0 = s1;
|
@@ -4495,7 +4516,7 @@ Emblem.Parser = (function() {
|
|
4495
4516
|
peg$silentFails--;
|
4496
4517
|
if (s0 === null) {
|
4497
4518
|
s1 = null;
|
4498
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4519
|
+
if (peg$silentFails === 0) { peg$fail(peg$c146); }
|
4499
4520
|
}
|
4500
4521
|
|
4501
4522
|
return s0;
|
@@ -4520,7 +4541,7 @@ Emblem.Parser = (function() {
|
|
4520
4541
|
s2 = s3;
|
4521
4542
|
if (s2 !== null) {
|
4522
4543
|
peg$reportedPos = s0;
|
4523
|
-
s1 = peg$
|
4544
|
+
s1 = peg$c147(s1,s2);
|
4524
4545
|
if (s1 === null) {
|
4525
4546
|
peg$currPos = s0;
|
4526
4547
|
s0 = s1;
|
@@ -4542,12 +4563,12 @@ Emblem.Parser = (function() {
|
|
4542
4563
|
function peg$parsenmchar() {
|
4543
4564
|
var s0;
|
4544
4565
|
|
4545
|
-
if (peg$
|
4566
|
+
if (peg$c148.test(input.charAt(peg$currPos))) {
|
4546
4567
|
s0 = input.charAt(peg$currPos);
|
4547
4568
|
peg$currPos++;
|
4548
4569
|
} else {
|
4549
4570
|
s0 = null;
|
4550
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4571
|
+
if (peg$silentFails === 0) { peg$fail(peg$c149); }
|
4551
4572
|
}
|
4552
4573
|
if (s0 === null) {
|
4553
4574
|
s0 = peg$parsenonascii();
|
@@ -4559,12 +4580,12 @@ Emblem.Parser = (function() {
|
|
4559
4580
|
function peg$parsenmstart() {
|
4560
4581
|
var s0;
|
4561
4582
|
|
4562
|
-
if (peg$
|
4583
|
+
if (peg$c150.test(input.charAt(peg$currPos))) {
|
4563
4584
|
s0 = input.charAt(peg$currPos);
|
4564
4585
|
peg$currPos++;
|
4565
4586
|
} else {
|
4566
4587
|
s0 = null;
|
4567
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4588
|
+
if (peg$silentFails === 0) { peg$fail(peg$c151); }
|
4568
4589
|
}
|
4569
4590
|
if (s0 === null) {
|
4570
4591
|
s0 = peg$parsenonascii();
|
@@ -4576,12 +4597,12 @@ Emblem.Parser = (function() {
|
|
4576
4597
|
function peg$parsenonascii() {
|
4577
4598
|
var s0;
|
4578
4599
|
|
4579
|
-
if (peg$
|
4600
|
+
if (peg$c152.test(input.charAt(peg$currPos))) {
|
4580
4601
|
s0 = input.charAt(peg$currPos);
|
4581
4602
|
peg$currPos++;
|
4582
4603
|
} else {
|
4583
4604
|
s0 = null;
|
4584
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4605
|
+
if (peg$silentFails === 0) { peg$fail(peg$c153); }
|
4585
4606
|
}
|
4586
4607
|
|
4587
4608
|
return s0;
|
@@ -4615,11 +4636,11 @@ Emblem.Parser = (function() {
|
|
4615
4636
|
peg$silentFails++;
|
4616
4637
|
s0 = peg$currPos;
|
4617
4638
|
if (input.charCodeAt(peg$currPos) === 37) {
|
4618
|
-
s1 = peg$
|
4639
|
+
s1 = peg$c141;
|
4619
4640
|
peg$currPos++;
|
4620
4641
|
} else {
|
4621
4642
|
s1 = null;
|
4622
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4643
|
+
if (peg$silentFails === 0) { peg$fail(peg$c142); }
|
4623
4644
|
}
|
4624
4645
|
if (s1 !== null) {
|
4625
4646
|
s2 = peg$parsetagString();
|
@@ -4646,7 +4667,7 @@ Emblem.Parser = (function() {
|
|
4646
4667
|
peg$silentFails--;
|
4647
4668
|
if (s0 === null) {
|
4648
4669
|
s1 = null;
|
4649
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4670
|
+
if (peg$silentFails === 0) { peg$fail(peg$c154); }
|
4650
4671
|
}
|
4651
4672
|
|
4652
4673
|
return s0;
|
@@ -4659,7 +4680,7 @@ Emblem.Parser = (function() {
|
|
4659
4680
|
s1 = peg$parsetagString();
|
4660
4681
|
if (s1 !== null) {
|
4661
4682
|
peg$reportedPos = peg$currPos;
|
4662
|
-
s2 = peg$
|
4683
|
+
s2 = peg$c155(s1);
|
4663
4684
|
if (s2) {
|
4664
4685
|
s2 = peg$c1;
|
4665
4686
|
} else {
|
@@ -4667,7 +4688,7 @@ Emblem.Parser = (function() {
|
|
4667
4688
|
}
|
4668
4689
|
if (s2 !== null) {
|
4669
4690
|
peg$reportedPos = s0;
|
4670
|
-
s1 = peg$
|
4691
|
+
s1 = peg$c156(s1);
|
4671
4692
|
if (s1 === null) {
|
4672
4693
|
peg$currPos = s0;
|
4673
4694
|
s0 = s1;
|
@@ -4689,12 +4710,12 @@ Emblem.Parser = (function() {
|
|
4689
4710
|
function peg$parsetagChar() {
|
4690
4711
|
var s0;
|
4691
4712
|
|
4692
|
-
if (peg$
|
4713
|
+
if (peg$c157.test(input.charAt(peg$currPos))) {
|
4693
4714
|
s0 = input.charAt(peg$currPos);
|
4694
4715
|
peg$currPos++;
|
4695
4716
|
} else {
|
4696
4717
|
s0 = null;
|
4697
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4718
|
+
if (peg$silentFails === 0) { peg$fail(peg$c158); }
|
4698
4719
|
}
|
4699
4720
|
|
4700
4721
|
return s0;
|
@@ -4708,7 +4729,7 @@ Emblem.Parser = (function() {
|
|
4708
4729
|
s1 = peg$parsetagString();
|
4709
4730
|
if (s1 !== null) {
|
4710
4731
|
peg$reportedPos = peg$currPos;
|
4711
|
-
s2 = peg$
|
4732
|
+
s2 = peg$c160(s1);
|
4712
4733
|
if (s2) {
|
4713
4734
|
s2 = peg$c1;
|
4714
4735
|
} else {
|
@@ -4716,7 +4737,7 @@ Emblem.Parser = (function() {
|
|
4716
4737
|
}
|
4717
4738
|
if (s2 !== null) {
|
4718
4739
|
peg$reportedPos = s0;
|
4719
|
-
s1 = peg$
|
4740
|
+
s1 = peg$c156(s1);
|
4720
4741
|
if (s1 === null) {
|
4721
4742
|
peg$currPos = s0;
|
4722
4743
|
s0 = s1;
|
@@ -4734,7 +4755,7 @@ Emblem.Parser = (function() {
|
|
4734
4755
|
peg$silentFails--;
|
4735
4756
|
if (s0 === null) {
|
4736
4757
|
s1 = null;
|
4737
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4758
|
+
if (peg$silentFails === 0) { peg$fail(peg$c159); }
|
4738
4759
|
}
|
4739
4760
|
|
4740
4761
|
return s0;
|
@@ -4774,15 +4795,15 @@ Emblem.Parser = (function() {
|
|
4774
4795
|
peg$silentFails++;
|
4775
4796
|
s0 = peg$currPos;
|
4776
4797
|
if (input.charCodeAt(peg$currPos) === 61423) {
|
4777
|
-
s1 = peg$
|
4798
|
+
s1 = peg$c162;
|
4778
4799
|
peg$currPos++;
|
4779
4800
|
} else {
|
4780
4801
|
s1 = null;
|
4781
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4802
|
+
if (peg$silentFails === 0) { peg$fail(peg$c163); }
|
4782
4803
|
}
|
4783
4804
|
if (s1 !== null) {
|
4784
4805
|
peg$reportedPos = s0;
|
4785
|
-
s1 = peg$
|
4806
|
+
s1 = peg$c164();
|
4786
4807
|
}
|
4787
4808
|
if (s1 === null) {
|
4788
4809
|
peg$currPos = s0;
|
@@ -4793,7 +4814,7 @@ Emblem.Parser = (function() {
|
|
4793
4814
|
peg$silentFails--;
|
4794
4815
|
if (s0 === null) {
|
4795
4816
|
s1 = null;
|
4796
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4817
|
+
if (peg$silentFails === 0) { peg$fail(peg$c161); }
|
4797
4818
|
}
|
4798
4819
|
|
4799
4820
|
return s0;
|
@@ -4805,15 +4826,15 @@ Emblem.Parser = (function() {
|
|
4805
4826
|
peg$silentFails++;
|
4806
4827
|
s0 = peg$currPos;
|
4807
4828
|
if (input.charCodeAt(peg$currPos) === 61438) {
|
4808
|
-
s1 = peg$
|
4829
|
+
s1 = peg$c166;
|
4809
4830
|
peg$currPos++;
|
4810
4831
|
} else {
|
4811
4832
|
s1 = null;
|
4812
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4833
|
+
if (peg$silentFails === 0) { peg$fail(peg$c167); }
|
4813
4834
|
}
|
4814
4835
|
if (s1 !== null) {
|
4815
4836
|
peg$reportedPos = s0;
|
4816
|
-
s1 = peg$
|
4837
|
+
s1 = peg$c164();
|
4817
4838
|
}
|
4818
4839
|
if (s1 === null) {
|
4819
4840
|
peg$currPos = s0;
|
@@ -4824,7 +4845,7 @@ Emblem.Parser = (function() {
|
|
4824
4845
|
peg$silentFails--;
|
4825
4846
|
if (s0 === null) {
|
4826
4847
|
s1 = null;
|
4827
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4848
|
+
if (peg$silentFails === 0) { peg$fail(peg$c165); }
|
4828
4849
|
}
|
4829
4850
|
|
4830
4851
|
return s0;
|
@@ -4836,15 +4857,15 @@ Emblem.Parser = (function() {
|
|
4836
4857
|
peg$silentFails++;
|
4837
4858
|
s0 = peg$currPos;
|
4838
4859
|
if (input.charCodeAt(peg$currPos) === 61422) {
|
4839
|
-
s1 = peg$
|
4860
|
+
s1 = peg$c169;
|
4840
4861
|
peg$currPos++;
|
4841
4862
|
} else {
|
4842
4863
|
s1 = null;
|
4843
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4864
|
+
if (peg$silentFails === 0) { peg$fail(peg$c170); }
|
4844
4865
|
}
|
4845
4866
|
if (s1 !== null) {
|
4846
4867
|
peg$reportedPos = s0;
|
4847
|
-
s1 = peg$
|
4868
|
+
s1 = peg$c164();
|
4848
4869
|
}
|
4849
4870
|
if (s1 === null) {
|
4850
4871
|
peg$currPos = s0;
|
@@ -4855,7 +4876,7 @@ Emblem.Parser = (function() {
|
|
4855
4876
|
peg$silentFails--;
|
4856
4877
|
if (s0 === null) {
|
4857
4878
|
s1 = null;
|
4858
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4879
|
+
if (peg$silentFails === 0) { peg$fail(peg$c168); }
|
4859
4880
|
}
|
4860
4881
|
|
4861
4882
|
return s0;
|
@@ -4867,19 +4888,19 @@ Emblem.Parser = (function() {
|
|
4867
4888
|
peg$silentFails++;
|
4868
4889
|
s0 = peg$currPos;
|
4869
4890
|
if (input.charCodeAt(peg$currPos) === 61439) {
|
4870
|
-
s1 = peg$
|
4891
|
+
s1 = peg$c172;
|
4871
4892
|
peg$currPos++;
|
4872
4893
|
} else {
|
4873
4894
|
s1 = null;
|
4874
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4895
|
+
if (peg$silentFails === 0) { peg$fail(peg$c173); }
|
4875
4896
|
}
|
4876
4897
|
if (s1 !== null) {
|
4877
4898
|
if (input.charCodeAt(peg$currPos) === 10) {
|
4878
|
-
s2 = peg$
|
4899
|
+
s2 = peg$c174;
|
4879
4900
|
peg$currPos++;
|
4880
4901
|
} else {
|
4881
4902
|
s2 = null;
|
4882
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4903
|
+
if (peg$silentFails === 0) { peg$fail(peg$c175); }
|
4883
4904
|
}
|
4884
4905
|
if (s2 !== null) {
|
4885
4906
|
s1 = [s1, s2];
|
@@ -4895,7 +4916,7 @@ Emblem.Parser = (function() {
|
|
4895
4916
|
peg$silentFails--;
|
4896
4917
|
if (s0 === null) {
|
4897
4918
|
s1 = null;
|
4898
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4919
|
+
if (peg$silentFails === 0) { peg$fail(peg$c171); }
|
4899
4920
|
}
|
4900
4921
|
|
4901
4922
|
return s0;
|
@@ -4912,7 +4933,7 @@ Emblem.Parser = (function() {
|
|
4912
4933
|
peg$silentFails--;
|
4913
4934
|
if (s0 === null) {
|
4914
4935
|
s1 = null;
|
4915
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4936
|
+
if (peg$silentFails === 0) { peg$fail(peg$c176); }
|
4916
4937
|
}
|
4917
4938
|
|
4918
4939
|
return s0;
|
@@ -4940,7 +4961,7 @@ Emblem.Parser = (function() {
|
|
4940
4961
|
peg$silentFails--;
|
4941
4962
|
if (s0 === null) {
|
4942
4963
|
s1 = null;
|
4943
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4964
|
+
if (peg$silentFails === 0) { peg$fail(peg$c177); }
|
4944
4965
|
}
|
4945
4966
|
|
4946
4967
|
return s0;
|
@@ -4959,7 +4980,7 @@ Emblem.Parser = (function() {
|
|
4959
4980
|
peg$silentFails--;
|
4960
4981
|
if (s0 === null) {
|
4961
4982
|
s1 = null;
|
4962
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4983
|
+
if (peg$silentFails === 0) { peg$fail(peg$c178); }
|
4963
4984
|
}
|
4964
4985
|
|
4965
4986
|
return s0;
|
@@ -4969,17 +4990,17 @@ Emblem.Parser = (function() {
|
|
4969
4990
|
var s0, s1;
|
4970
4991
|
|
4971
4992
|
peg$silentFails++;
|
4972
|
-
if (peg$
|
4993
|
+
if (peg$c180.test(input.charAt(peg$currPos))) {
|
4973
4994
|
s0 = input.charAt(peg$currPos);
|
4974
4995
|
peg$currPos++;
|
4975
4996
|
} else {
|
4976
4997
|
s0 = null;
|
4977
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4998
|
+
if (peg$silentFails === 0) { peg$fail(peg$c181); }
|
4978
4999
|
}
|
4979
5000
|
peg$silentFails--;
|
4980
5001
|
if (s0 === null) {
|
4981
5002
|
s1 = null;
|
4982
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5003
|
+
if (peg$silentFails === 0) { peg$fail(peg$c179); }
|
4983
5004
|
}
|
4984
5005
|
|
4985
5006
|
return s0;
|
data/dist/emblem.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(function(e){(function(e){var t;t=function(){function e(e){this.str=e!=null?e:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset(),this}return e.prototype.bol=function(){return this.pos<=0||this.str[this.pos-1]==="\n"},e.prototype.captures=function(){return this.lastMatch.captures},e.prototype.check=function(e){var t;return this.str.substr(this.pos).search(e)!==0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),this.lastMatch.str)},e.prototype.checkUntil=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.captures=t.slice(1),this.lastMatch.str=this.str.substr(this.pos,n)+t[0])},e.prototype.clone=function(){var e,t,n,r;e=new this.constructor(this.str),e.pos=this.pos,e.lastMatch={},r=this.lastMatch;for(t in r)n=r[t],e.lastMatch[t]=n;return e},e.prototype.concat=function(e){return this.str+=e,this},e.prototype.eos=function(){return this.pos===this.str.length},e.prototype.exists=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),n)},e.prototype.getch=function(){return this.scan(/./)},e.prototype.match=function(){return this.lastMatch.str},e.prototype.matches=function(e){return this.check(e),this.matchSize()},e.prototype.matched=function(){return this.lastMatch.str!=null},e.prototype.matchSize=function(){return this.matched()?this.match().length:null},e.prototype.peek=function(e){return this.str.substr(this.pos,e)},e.prototype.pointer=function(){return this.pos},e.prototype.setPointer=function(e){return e=+e,e<0&&(e=0),e>this.str.length&&(e=this.str.length),this.pos=e},e.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},e.prototype.rest=function(){return this.str.substr(this.pos)},e.prototype.scan=function(e){var t;return t=this.check(e),t!=null&&(this.pos+=t.length),t},e.prototype.scanUntil=function(e){var t;return t=this.checkUntil(e),t!=null&&(this.pos+=t.length),t},e.prototype.skip=function(e){return this.scan(e),this.matchSize()},e.prototype.skipUntil=function(e){return this.scanUntil(e),this.matchSize()},e.prototype.string=function(){return this.str},e.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},e.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},e}(),t.prototype.beginningOfLine=t.prototype.bol,t.prototype.clear=t.prototype.terminate,t.prototype.dup=t.prototype.clone,t.prototype.endOfString=t.prototype.eos,t.prototype.exist=t.prototype.exists,t.prototype.getChar=t.prototype.getch,t.prototype.position=t.prototype.pointer,t.StringScanner=t,this.StringScanner=t})(this);var t=this.StringScanner,n;this.Emblem={},n=this.Emblem,n.VERSION="0.1.11",n.Parser=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i){function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,-1).join(", ")+" or "+e[e.length-1]}return i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}this.expected=e,this.found=t,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=s(e,t)}function r(e){function _r(){return e.substring(Nr,Tr)}function Dr(){return Nr}function Pr(){return Br(Nr).line}function Hr(){return Br(Nr).column}function Br(t){function n(t,n){var r,i;for(r=0;r<n;r++)i=e.charAt(r),i==="\n"?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):i==="\r"||i==="\u2028"||i==="\u2029"?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Cr!==t&&(Cr>t&&(Cr=0,kr={line:1,column:1,seenCR:!1}),Cr=t,n(kr,Cr)),kr}function jr(e){if(Tr<Lr)return;Tr>Lr&&(Lr=Tr,Ar=[]),Ar.push(e)}function Fr(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function Ir(){var e;return e=qr(),e}function qr(){var t,n,r,i,s,h,p,d,v;return t=Tr,n=Rr(),n!==null?(r=Tr,i=Cs(),i!==null?(e.substr(Tr,4)===a?(s=a,Tr+=4):(s=null,Or===0&&jr(f)),s!==null?(h=Ms(),h!==null?(p=Ls(),p!==null?(d=Ts(),d!==null?(v=Rr(),v!==null?(Nr=r,i=l(v),i===null?(Tr=r,r=i):r=i):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o),r===null&&(r=u),r!==null?(Nr=t,n=c(n,r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function Rr(){var e,t,n;e=Tr,t=[],n=Ur();while(n!==null)t.push(n),n=Ur();return t!==null&&(Nr=e,t=p(t)),t===null?(Tr=e,e=t):e=t,e}function Ur(){var e,t;return Or++,e=zr(),e===null&&(e=Kr(),e===null&&(e=Wr(),e===null&&(e=Vr(),e===null&&(e=Ai(),e===null&&(e=$r()))))),Or--,e===null&&(t=null,Or===0&&jr(d)),e}function zr(){var e,t,n;return e=Tr,t=Ms(),t!==null?(n=Ls(),n!==null?(Nr=e,t=v(),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e}function Wr(){var t,n,r,i,s,u,a,f;t=Tr,e.charCodeAt(Tr)===62?(n=m,Tr++):(n=null,Or===0&&jr(g));if(n!==null){r=Ms();if(r!==null){i=Xr();if(i!==null){s=Ms();if(s!==null){u=[],a=ai();while(a!==null)u.push(a),a=ai();u!==null?(a=Ms(),a!==null?(f=Ls(),f!==null?(Nr=t,n=y(i,u),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o}else Tr=t,t=o}else Tr=t,t=o;return t}function Xr(){var t,n,r,i;t=Tr,n=Tr,r=[],b.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(w));if(i!==null)while(i!==null)r.push(i),b.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(w));else r=o;return r!==null&&(r=e.substring(n,Tr)),n=r,n!==null&&(Nr=t,n=E(n)),n===null?(Tr=t,t=n):t=n,t}function Vr(){var e;return e=Yr(),e===null&&(e=Zr()),e}function $r(){var e,t;return e=Tr,t=ni(),t===null&&(t=Qr()),t!==null&&(Nr=e,t=S(t)),t===null?(Tr=e,e=t):e=t,e}function Jr(){var e,t,n,r,i,s,u,a;e=Tr,t=Ps();if(t!==null){n=Ls();if(n!==null){r=[],i=Tr,s=Ts();if(s!==null){u=[],a=Jr();if(a!==null)while(a!==null)u.push(a),a=Jr();else u=o;u!==null?(a=As(),a!==null?(s=[s,u,a],i=s):(Tr=i,i=o)):(Tr=i,i=o)}else Tr=i,i=o;while(i!==null){r.push(i),i=Tr,s=Ts();if(s!==null){u=[],a=Jr();if(a!==null)while(a!==null)u.push(a),a=Jr();else u=o;u!==null?(a=As(),a!==null?(s=[s,u,a],i=s):(Tr=i,i=o)):(Tr=i,i=o)}else Tr=i,i=o}r!==null?(Nr=e,t=v(),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o}else Tr=e,e=o;return e}function Kr(){var t,n,r;return t=Tr,e.charCodeAt(Tr)===47?(n=x,Tr++):(n=null,Or===0&&jr(T)),n!==null?(r=Jr(),r!==null?(Nr=t,n=v(),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function Qr(){var e;return e=Gr(),e===null&&(e=ei()),e}function Gr(){var t,n,r;return t=Tr,n=Tr,Or++,N.test(e.charAt(Tr))?(r=e.charAt(Tr),Tr++):(r=null,Or===0&&jr(C)),Or--,r!==null?(Tr=n,n=u):n=o,n!==null?(r=ei(),r!==null?(Nr=t,n=k(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function Yr(){var e,t,n,r,i,s,a,f,l;e=Tr,t=Yi();if(t!==null){n=Ms();if(n!==null){r=Ls();if(r!==null){i=Tr,s=[],a=zr();while(a!==null)s.push(a),a=zr();s!==null?(a=Ts(),a!==null?(f=Rr(),f!==null?(l=Cs(),l!==null?(s=[s,a,f,l],i=s):(Tr=i,i=o)):(Tr=i,i=o)):(Tr=i,i=o)):(Tr=i,i=o),i===null&&(i=u),i!==null?(Nr=e,t=L(t,i),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o}else Tr=e,e=o}else Tr=e,e=o;return e}function Zr(){var t,n,r,i,s,a,f,l;t=Tr,n=Yi();if(n!==null){e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O)),r===null&&(r=Tr,Or++,e.charCodeAt(Tr)===61?(i=M,Tr++):(i=null,Or===0&&jr(_)),Or--,i!==null?(Tr=r,r=u):r=o);if(r!==null){i=Ci();if(i!==null){s=Tr,a=Ts();if(a!==null){f=[],l=ki();if(l!==null)while(l!==null)f.push(l),l=ki();else f=o;f!==null?(l=Cs(),l!==null?(a=[a,f,l],s=a):(Tr=s,s=o)):(Tr=s,s=o)}else Tr=s,s=o;s===null&&(s=u),s!==null?(Nr=t,n=D(n,i,s),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o}else Tr=t,t=o;return t}function ei(){var e,t,n,r,i,s,a,f,l;e=ti();if(e===null){e=Tr,t=ri();if(t!==null){n=Ms();if(n!==null){r=Ls();if(r!==null){i=Tr,s=[],a=zr();while(a!==null)s.push(a),a=zr();s!==null?(a=Ts(),a!==null?(f=qr(),f!==null?(l=Cs(),l!==null?(s=[s,a,f,l],i=s):(Tr=i,i=o)):(Tr=i,i=o)):(Tr=i,i=o)):(Tr=i,i=o),i===null&&(i=u),i!==null?(Nr=e,t=P(t,i),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o}else Tr=e,e=o}else Tr=e,e=o}return e}function ti(){var e,t,n,r;return e=Tr,t=ri(),t!==null?(n=Ms(),n!==null?(r=Ai(),r!==null?(Nr=e,t=H(t,r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o),e}function ni(){var e,t,n;return e=Tr,t=Gi(),t!==null?(n=ei(),n!==null?(Nr=e,t=B(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e}function ri(){var t,n,r,i,s,a;t=Tr,e.charCodeAt(Tr)===62?(n=m,Tr++):(n=null,Or===0&&jr(g)),n===null&&(n=u);if(n!==null){r=Ms();if(r!==null){i=mi();if(i!==null){s=[],a=ai();while(a!==null)s.push(a),a=ai();s!==null?(a=fi(),a===null&&(a=u),a!==null?(Nr=t,n=j(n,i,s,a),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o}else Tr=t,t=o;return t}function ii(){var e,t;return e=Tr,t=cs(),t!==null&&(Nr=e,t=F(t)),t===null?(Tr=e,e=t):e=t,e===null&&(e=Tr,t=hs(),t!==null&&(Nr=e,t=I(t)),t===null?(Tr=e,e=t):e=t,e===null&&(e=Tr,t=ps(),t!==null&&(Nr=e,t=q(t)),t===null?(Tr=e,e=t):e=t)),e}function si(){var e;return e=oi(),e===null&&(e=ui()),e}function oi(){var e,t,n,r;e=Tr,t=hs();if(t!==null){n=[],r=ps();while(r!==null)n.push(r),r=ps();n!==null?(Nr=e,t=R(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o;return e}function ui(){var e,t,n;e=Tr,t=[],n=ps();if(n!==null)while(n!==null)t.push(n),n=ps();else t=o;return t!==null&&(Nr=e,t=U(t)),t===null?(Tr=e,e=t):e=t,e}function ai(){var e,t,n;return e=Tr,t=Ms(),t!==null?(n=ii(),n===null&&(n=pi()),n!==null?(Nr=e,t=z(n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e}function fi(){var e,t,n;e=Tr,t=[],n=hi();if(n!==null)while(n!==null)t.push(n),n=hi();else t=o;return t!==null&&(Nr=e,t=W(t)),t===null?(Tr=e,e=t):e=t,e}function li(){var t,n,r,i;Or++,e.substr(Tr,2)===V?(t=V,Tr+=2):(t=null,Or===0&&jr($));if(t===null){e.charCodeAt(Tr)===46?(t=J,Tr++):(t=null,Or===0&&jr(K));if(t===null){t=Tr,n=Tr,r=[],Q.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(G));if(i!==null)while(i!==null)r.push(i),Q.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(G));else r=o;r!==null&&(r=e.substring(n,Tr)),n=r,n!==null?(r=Tr,Or++,e.charCodeAt(Tr)===61?(i=M,Tr++):(i=null,Or===0&&jr(_)),Or--,i===null?r=u:(Tr=r,r=o),r!==null?(Nr=t,n=Y(n),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)}}return Or--,t===null&&(n=null,Or===0&&jr(X)),t}function ci(){var e,t;return Or++,e=vs(),Or--,e===null&&(t=null,Or===0&&jr(Z)),e}function hi(){var t,n,r,i,s,u;return t=Tr,n=Ms(),n!==null?(r=Tr,i=ci(),i!==null?(e.charCodeAt(Tr)===61?(s=M,Tr++):(s=null,Or===0&&jr(_)),s!==null?(u=mi(),u!==null?(i=[i,s,u],r=i):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o),r===null&&(r=Tr,i=ci(),i!==null?(e.charCodeAt(Tr)===61?(s=M,Tr++):(s=null,Or===0&&jr(_)),s!==null?(u=gi(),u!==null?(i=[i,s,u],r=i):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o),r===null&&(r=Tr,i=ci(),i!==null?(e.charCodeAt(Tr)===61?(s=M,Tr++):(s=null,Or===0&&jr(_)),s!==null?(u=yi(),u!==null?(i=[i,s,u],r=i):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o),r===null&&(r=Tr,i=ci(),i!==null?(e.charCodeAt(Tr)===61?(s=M,Tr++):(s=null,Or===0&&jr(_)),s!==null?(u=bi(),u!==null?(i=[i,s,u],r=i):(Tr=r,r=o)):(Tr=r,r=o)):(Tr=r,r=o)))),r!==null?(Nr=t,n=et(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function pi(){var e;return e=mi(),e===null&&(e=gi(),e===null&&(e=yi(),e===null&&(e=bi()))),e}function di(){var e,t,n,r,i,s;e=Tr,t=li();if(t!==null){n=[],r=Tr,i=vi(),i!==null?(s=li(),s!==null?(Nr=r,i=tt(s),i===null?(Tr=r,r=i):r=i):(Tr=r,r=o)):(Tr=r,r=o);while(r!==null)n.push(r),r=Tr,i=vi(),i!==null?(s=li(),s!==null?(Nr=r,i=tt(s),i===null?(Tr=r,r=i):r=i):(Tr=r,r=o)):(Tr=r,r=o);n!==null?(Nr=e,t=nt(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o;return e}function vi(){var t,n;return Or++,it.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(st)),Or--,t===null&&(n=null,Or===0&&jr(rt)),t}function mi(){var e,t;return e=Tr,t=di(),t!==null&&(Nr=e,t=ot(t)),t===null?(Tr=e,e=t):e=t,e}function gi(){var e,t;return e=Tr,t=Si(),t!==null&&(Nr=e,t=ut(t)),t===null?(Tr=e,e=t):e=t,e}function yi(){var e,t;return e=Tr,t=Ei(),t!==null&&(Nr=e,t=at(t)),t===null?(Tr=e,e=t):e=t,e}function bi(){var e,t;return e=Tr,t=wi(),t!==null&&(Nr=e,t=ft(t)),t===null?(Tr=e,e=t):e=t,e}function wi(){var t,n;return Or++,e.substr(Tr,4)===ct?(t=ct,Tr+=4):(t=null,Or===0&&jr(ht)),t===null&&(e.substr(Tr,5)===pt?(t=pt,Tr+=5):(t=null,Or===0&&jr(dt))),Or--,t===null&&(n=null,Or===0&&jr(lt)),t}function Ei(){var t,n,r,i;Or++,t=Tr,n=Tr,r=[],mt.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(gt));if(i!==null)while(i!==null)r.push(i),mt.test(e.charAt(Tr))?(i=e.charAt(Tr),Tr++):(i=null,Or===0&&jr(gt));else r=o;return r!==null&&(r=e.substring(n,Tr)),n=r,n!==null&&(Nr=t,n=yt(n)),n===null?(Tr=t,t=n):t=n,Or--,t===null&&(n=null,Or===0&&jr(vt)),t}function Si(){var t,n,r,i,s;return t=Tr,n=Tr,e.charCodeAt(Tr)===34?(r=bt,Tr++):(r=null,Or===0&&jr(wt)),r!==null?(i=xi(),i!==null?(e.charCodeAt(Tr)===34?(s=bt,Tr++):(s=null,Or===0&&jr(wt)),s!==null?(r=[r,i,s],n=r):(Tr=n,n=o)):(Tr=n,n=o)):(Tr=n,n=o),n===null&&(n=Tr,e.charCodeAt(Tr)===39?(r=Et,Tr++):(r=null,Or===0&&jr(St)),r!==null?(i=Ti(),i!==null?(e.charCodeAt(Tr)===39?(s=Et,Tr++):(s=null,Or===0&&jr(St)),s!==null?(r=[r,i,s],n=r):(Tr=n,n=o)):(Tr=n,n=o)):(Tr=n,n=o)),n!==null&&(Nr=t,n=xt(n)),n===null?(Tr=t,t=n):t=n,t}function xi(){var t,n,r,i,s;t=Tr,n=[],r=Tr,i=Tr,Or++,s=Ls(),Or--,s===null?i=u:(Tr=i,i=o),i!==null?(Tt.test(e.charAt(Tr))?(s=e.charAt(Tr),Tr++):(s=null,Or===0&&jr(Nt)),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);while(r!==null)n.push(r),r=Tr,i=Tr,Or++,s=Ls(),Or--,s===null?i=u:(Tr=i,i=o),i!==null?(Tt.test(e.charAt(Tr))?(s=e.charAt(Tr),Tr++):(s=null,Or===0&&jr(Nt)),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);return n!==null&&(n=e.substring(t,Tr)),t=n,t}function Ti(){var t,n,r,i,s;t=Tr,n=[],r=Tr,i=Tr,Or++,s=Ls(),Or--,s===null?i=u:(Tr=i,i=o),i!==null?(Ct.test(e.charAt(Tr))?(s=e.charAt(Tr),Tr++):(s=null,Or===0&&jr(kt)),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);while(r!==null)n.push(r),r=Tr,i=Tr,Or++,s=Ls(),Or--,s===null?i=u:(Tr=i,i=o),i!==null?(Ct.test(e.charAt(Tr))?(s=e.charAt(Tr),Tr++):(s=null,Or===0&&jr(kt)),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);return n!==null&&(n=e.substring(t,Tr)),t=n,t}function Ni(){var t;return Lt.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(At)),t}function Ci(){var e,t,n;return e=Tr,t=Ms(),t!==null?(n=ni(),n!==null?(Nr=e,t=Ot(n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e===null&&(e=Oi()),e}function ki(){var e,t,n,r,i;e=Tr,t=Ts();if(t!==null){n=Oi();if(n!==null){r=[],i=ki();while(i!==null)r.push(i),i=ki();r!==null?(i=As(),i!==null?(Nr=e,t=Mt(t,n,r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)}else Tr=e,e=o}else Tr=e,e=o;return e===null&&(e=Oi()),e}function Li(){var t,n,r;return t=Tr,_t.test(e.charAt(Tr))?(n=e.charAt(Tr),Tr++):(n=null,Or===0&&jr(Dt)),n!==null?(e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O)),r===null&&(r=u),r!==null?(Nr=t,n=Y(n),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t===null&&(t=Tr,n=Tr,Or++,e.charCodeAt(Tr)===60?(r=Pt,Tr++):(r=null,Or===0&&jr(Ht)),Or--,r!==null?(Tr=n,n=u):n=o,n!==null&&(Nr=t,n=Bt()),n===null?(Tr=t,t=n):t=n),t}function Ai(){var e,t,n,r,i,s,a;e=Tr,t=Li();if(t!==null){n=Oi();if(n!==null){r=Tr,i=Ts();if(i!==null){s=[],a=ki();while(a!==null)s.push(a),a=ki();s!==null?(a=Cs(),a!==null?(i=[i,s,a],r=i):(Tr=r,r=o)):(Tr=r,r=o)}else Tr=r,r=o;r===null&&(r=u),r!==null?(Nr=e,t=jt(t,n,r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o}else Tr=e,e=o;return e}function Oi(){var e,t,n,r,i,s;e=Tr,t=Fi(),t===null&&(t=u);if(t!==null){n=[],r=Tr,i=Di(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);while(r!==null)n.push(r),r=Tr,i=Di(),i!==null?(s=Fi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);n!==null?(r=Ls(),r!==null?(Nr=e,t=Ft(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)}else Tr=e,e=o;return e}function Mi(){var t,n,r,i;return t=Tr,e.charCodeAt(Tr)===34?(n=bt,Tr++):(n=null,Or===0&&jr(wt)),n!==null?(r=_i(),r!==null?(e.charCodeAt(Tr)===34?(i=bt,Tr++):(i=null,Or===0&&jr(wt)),i!==null?(Nr=t,n=It(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o),t}function _i(){var e,t,n,r,i,s;e=Tr,t=Bi(),t===null&&(t=u);if(t!==null){n=[],r=Tr,i=Di(),i!==null?(s=Bi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);while(r!==null)n.push(r),r=Tr,i=Di(),i!==null?(s=Bi(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(Tr=r,r=o)):(Tr=r,r=o);n!==null?(Nr=e,t=Ft(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o;return e}function Di(){var e;return e=Hi(),e===null&&(e=Pi()),e}function Pi(){var e,t,n,r,i,s;return e=Tr,t=Wi(),t!==null?(n=Ms(),n!==null?(r=ri(),r!==null?(i=Ms(),i!==null?(s=$i(),s!==null?(Nr=e,t=qt(r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o),e===null&&(e=Tr,t=Ki(),t!==null?(n=Ms(),n!==null?(r=ri(),r!==null?(i=Ms(),i!==null?(s=Qi(),s!==null?(Nr=e,t=qt(r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)),e}function Hi(){var e,t,n,r,i,s;return e=Tr,t=Xi(),t!==null?(n=Ms(),n!==null?(r=ri(),r!==null?(i=Ms(),i!==null?(s=Ji(),s!==null?(Nr=e,t=Rt(r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o),e}function Bi(){var t,n,r,i;t=Tr,n=Tr,r=[],i=ji();if(i!==null)while(i!==null)r.push(i),i=ji();else r=o;return r!==null&&(r=e.substring(n,Tr)),n=r,n!==null&&(Nr=t,n=Ut(n)),n===null?(Tr=t,t=n):t=n,t}function ji(){var t,n,r;return t=Tr,n=Tr,Or++,r=qi(),r===null&&(e.charCodeAt(Tr)===34?(r=bt,Tr++):(r=null,Or===0&&jr(wt))),Or--,r===null?n=u:(Tr=n,n=o),n!==null?(e.length>Tr?(r=e.charAt(Tr),Tr++):(r=null,Or===0&&jr(zt)),r!==null?(Nr=t,n=Wt(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function Fi(){var t,n,r,i;t=Tr,n=Tr,r=[],i=Ii();if(i!==null)while(i!==null)r.push(i),i=Ii();else r=o;return r!==null&&(r=e.substring(n,Tr)),n=r,n!==null&&(Nr=t,n=Ut(n)),n===null?(Tr=t,t=n):t=n,t}function Ii(){var t,n,r;return t=Tr,n=Tr,Or++,r=qi(),Or--,r===null?n=u:(Tr=n,n=o),n!==null?(e.length>Tr?(r=e.charAt(Tr),Tr++):(r=null,Or===0&&jr(zt)),r!==null?(Nr=t,n=Wt(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function qi(){var e;return e=Xi(),e===null&&(e=Wi(),e===null&&(e=Ki(),e===null&&(e=As(),e===null&&(e=Ls())))),e}function Ri(){var e,t,n,r,i,s;return e=Tr,t=zi(),t!==null?(n=Ms(),n!==null?(r=ri(),r!==null?(i=Ms(),i!==null?(s=Vi(),s!==null?(Nr=e,t=qt(r),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o)):(Tr=e,e=o),e}function Ui(){var e;return e=Ri(),e===null&&(e=Hi(),e===null&&(e=Pi())),e}function zi(){var t,n;return Or++,e.charCodeAt(Tr)===123?(t=Vt,Tr++):(t=null,Or===0&&jr($t)),Or--,t===null&&(n=null,Or===0&&jr(Xt)),t}function Wi(){var t,n;return Or++,e.substr(Tr,2)===Kt?(t=Kt,Tr+=2):(t=null,Or===0&&jr(Qt)),Or--,t===null&&(n=null,Or===0&&jr(Jt)),t}function Xi(){var t,n;return Or++,e.substr(Tr,3)===Yt?(t=Yt,Tr+=3):(t=null,Or===0&&jr(Zt)),Or--,t===null&&(n=null,Or===0&&jr(Gt)),t}function Vi(){var t,n;return Or++,e.charCodeAt(Tr)===125?(t=tn,Tr++):(t=null,Or===0&&jr(nn)),Or--,t===null&&(n=null,Or===0&&jr(en)),t}function $i(){var t,n;return Or++,e.substr(Tr,2)===sn?(t=sn,Tr+=2):(t=null,Or===0&&jr(on)),Or--,t===null&&(n=null,Or===0&&jr(rn)),t}function Ji(){var t,n;return Or++,e.substr(Tr,3)===an?(t=an,Tr+=3):(t=null,Or===0&&jr(fn)),Or--,t===null&&(n=null,Or===0&&jr(un)),t}function Ki(){var t,n;return Or++,e.substr(Tr,2)===cn?(t=cn,Tr+=2):(t=null,Or===0&&jr(hn)),Or--,t===null&&(n=null,Or===0&&jr(ln)),t}function Qi(){var t,n;return Or++,e.charCodeAt(Tr)===125?(t=tn,Tr++):(t=null,Or===0&&jr(nn)),Or--,t===null&&(n=null,Or===0&&jr(pn)),t}function Gi(){var t,n,r;return t=Tr,e.substr(Tr,2)===dn?(n=dn,Tr+=2):(n=null,Or===0&&jr(vn)),n!==null?(e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O)),r===null&&(r=u),r!==null?(Nr=t,n=mn(),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t===null&&(t=Tr,e.charCodeAt(Tr)===61?(n=M,Tr++):(n=null,Or===0&&jr(_)),n!==null?(e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O)),r===null&&(r=u),r!==null?(Nr=t,n=gn(),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)),t}function Yi(){var e,t,n,r,i,s,a;e=Tr,t=Tr,n=ws();if(n!==null){r=si(),r===null&&(r=u);if(r!==null){i=[],s=Ui();while(s!==null)i.push(s),s=Ui();if(i!==null){s=[],a=Zi();while(a!==null)s.push(a),a=Zi();s!==null?(Nr=t,n=yn(n,r,i,s),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o}else Tr=t,t=o;if(t===null){t=Tr,n=si();if(n!==null){r=[],i=Ui();while(i!==null)r.push(i),i=Ui();if(r!==null){i=[],s=Zi();while(s!==null)i.push(s),s=Zi();i!==null?(Nr=t,n=bn(n,r,i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o}return t!==null&&(Nr=e,t=wn(t)),t===null?(Tr=e,e=t):e=t,e}function si(){var e;return e=oi(),e===null&&(e=ui()),e}function oi(){var e,t,n,r;e=Tr,t=hs();if(t!==null){n=[],r=ps();while(r!==null)n.push(r),r=ps();n!==null?(Nr=e,t=R(t,n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)}else Tr=e,e=o;return e}function ui(){var e,t,n;e=Tr,t=[],n=ps();if(n!==null)while(n!==null)t.push(n),n=ps();else t=o;return t!==null&&(Nr=e,t=U(t)),t===null?(Tr=e,e=t):e=t,e}function Zi(){var t,n,r;t=Tr,n=[],e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(Tr)===32?(r=A,Tr++):(r=null,Or===0&&jr(O));else n=o;return n!==null?(r=rs(),r===null&&(r=ss(),r===null&&(r=os(),r===null&&(r=us()))),r!==null?(Nr=t,n=En(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function es(){var t;return Sn.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(xn)),t}function ts(){var e,t;return e=ns(),e===null&&(e=Tr,t=mi(),t!==null&&(Nr=e,t=Tn(t)),t===null?(Tr=e,e=t):e=t),e}function ns(){var t,n,r,i,s;return t=Tr,n=Tr,e.charCodeAt(Tr)===34?(r=bt,Tr++):(r=null,Or===0&&jr(wt)),r!==null?(i=ri(),i!==null?(e.charCodeAt(Tr)===34?(s=bt,Tr++):(s=null,Or===0&&jr(wt)),s!==null?(r=[r,i,s],n=r):(Tr=n,n=o)):(Tr=n,n=o)):(Tr=n,n=o),n===null&&(n=Tr,e.charCodeAt(Tr)===39?(r=Et,Tr++):(r=null,Or===0&&jr(St)),r!==null?(i=ri(),i!==null?(e.charCodeAt(Tr)===39?(s=Et,Tr++):(s=null,Or===0&&jr(St)),s!==null?(r=[r,i,s],n=r):(Tr=n,n=o)):(Tr=n,n=o)):(Tr=n,n=o)),n!==null&&(Nr=t,n=xt(n)),n===null?(Tr=t,t=n):t=n,t}function rs(){var t,n,r,i;return t=Tr,n=xs(),n!==null?(e.charCodeAt(Tr)===61?(r=M,Tr++):(r=null,Or===0&&jr(_)),r!==null?(i=ts(),i!==null?(Nr=t,n=Nn(n,i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o),t}function is(){var t,n,r,i,s,u;t=Tr,e.charCodeAt(Tr)===123?(n=Vt,Tr++):(n=null,Or===0&&jr($t));if(n!==null){r=Ms();if(r!==null){i=Tr,s=[],u=es(),u===null&&(e.charCodeAt(Tr)===32?(u=A,Tr++):(u=null,Or===0&&jr(O)));if(u!==null)while(u!==null)s.push(u),u=es(),u===null&&(e.charCodeAt(Tr)===32?(u=A,Tr++):(u=null,Or===0&&jr(O)));else s=o;s!==null&&(s=e.substring(i,Tr)),i=s,i!==null?(s=Ms(),s!==null?(e.charCodeAt(Tr)===125?(u=tn,Tr++):(u=null,Or===0&&jr(nn)),u!==null?(Nr=t,n=Cn(i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o)}else Tr=t,t=o}else Tr=t,t=o;if(t===null){t=Tr,n=[],r=es();if(r!==null)while(r!==null)n.push(r),r=es();else n=o;n!==null&&(n=e.substring(t,Tr)),t=n}return t}function ss(){var t,n,r,i,s,a;return t=Tr,n=ci(),n!==null?(e.charCodeAt(Tr)===61?(r=M,Tr++):(r=null,Or===0&&jr(_)),r!==null?(i=is(),i!==null?(s=Tr,Or++,e.charCodeAt(Tr)===33?(a=kn,Tr++):(a=null,Or===0&&jr(Ln)),Or--,a===null?s=u:(Tr=s,s=o),s!==null?(Nr=Tr,a=An(n,i),a?a=u:a=o,a!==null?(Nr=t,n=On(n,i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o),t}function os(){var t,n,r,i;return t=Tr,n=ci(),n!==null?(e.charCodeAt(Tr)===61?(r=M,Tr++):(r=null,Or===0&&jr(_)),r!==null?(i=mi(),i!==null?(Nr=t,n=Mn(n,i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o),t}function us(){var t,n,r,i;return t=Tr,n=ci(),n!==null?(e.charCodeAt(Tr)===61?(r=M,Tr++):(r=null,Or===0&&jr(_)),r!==null?(i=Mi(),i!==null?(Nr=t,n=_n(n,i),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o)):(Tr=t,t=o),t}function as(){var t,n,r;t=Tr,n=[],r=ls();while(r!==null)n.push(r),r=ls();return n!==null&&(n=e.substring(t,Tr)),t=n,t}function fs(){var e;return e=Si(),e===null&&(e=pi()),e}function ls(){var t;return t=Ni(),t===null&&(mt.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(gt)),t===null&&(e.charCodeAt(Tr)===95?(t=Dn,Tr++):(t=null,Or===0&&jr(Pn)),t===null&&(e.charCodeAt(Tr)===45?(t=Hn,Tr++):(t=null,Or===0&&jr(Bn))))),t}function cs(){var t,n,r;return t=Tr,e.charCodeAt(Tr)===37?(n=jn,Tr++):(n=null,Or===0&&jr(Fn)),n!==null?(r=ds(),r!==null?(Nr=t,n=Wt(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function hs(){var t,n,r;return t=Tr,e.charCodeAt(Tr)===35?(n=In,Tr++):(n=null,Or===0&&jr(qn)),n!==null?(r=ds(),r!==null?(Nr=t,n=Rn(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function ps(){var t,n,r;return t=Tr,e.charCodeAt(Tr)===46?(n=J,Tr++):(n=null,Or===0&&jr(K)),n!==null?(r=ds(),r!==null?(Nr=t,n=Wt(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function ds(){var e,t;return Or++,e=vs(),Or--,e===null&&(t=null,Or===0&&jr(Un)),e}function vs(){var t,n,r,i,s;t=Tr,n=gs();if(n!==null){r=Tr,i=[],s=ms();while(s!==null)i.push(s),s=ms();i!==null&&(i=e.substring(r,Tr)),r=i,r!==null?(Nr=t,n=zn(n,r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)}else Tr=t,t=o;return t}function ms(){var t;return Wn.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(Xn)),t===null&&(t=ys()),t}function gs(){var t;return Vn.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr($n)),t===null&&(t=ys()),t}function ys(){var t;return Jn.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(Kn)),t}function bs(){var t,n,r;t=Tr,n=[],r=Ss();if(r!==null)while(r!==null)n.push(r),r=Ss();else n=o;return n!==null&&(n=e.substring(t,Tr)),t=n,t}function ws(){var t,n,r;return Or++,t=Tr,e.charCodeAt(Tr)===37?(n=jn,Tr++):(n=null,Or===0&&jr(Fn)),n!==null?(r=bs(),r!==null?(Nr=t,n=Y(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t===null&&(t=Es()),Or--,t===null&&(n=null,Or===0&&jr(Qn)),t}function Es(){var e,t,n;return e=Tr,t=bs(),t!==null?(Nr=Tr,n=Gn(t),n?n=u:n=o,n!==null?(Nr=e,t=Yn(t),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e}function Ss(){var t;return Zn.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(er)),t}function xs(){var e,t,n;return Or++,e=Tr,t=bs(),t!==null?(Nr=Tr,n=nr(t),n?n=u:n=o,n!==null?(Nr=e,t=Yn(t),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),Or--,e===null&&(t=null,Or===0&&jr(tr)),e}function Ts(){var e,t,n;return e=Tr,t=Ns(),t!==null?(n=Os(),n!==null?(Nr=e,t=Y(n),t===null?(Tr=e,e=t):e=t):(Tr=e,e=o)):(Tr=e,e=o),e}function Ns(){var t,n;return Or++,t=Tr,e.charCodeAt(Tr)===61423?(n=ir,Tr++):(n=null,Or===0&&jr(sr)),n!==null&&(Nr=t,n=or()),n===null?(Tr=t,t=n):t=n,Or--,t===null&&(n=null,Or===0&&jr(rr)),t}function Cs(){var t,n;return Or++,t=Tr,e.charCodeAt(Tr)===61438?(n=ar,Tr++):(n=null,Or===0&&jr(fr)),n!==null&&(Nr=t,n=or()),n===null?(Tr=t,t=n):t=n,Or--,t===null&&(n=null,Or===0&&jr(ur)),t}function ks(){var t,n;return Or++,t=Tr,e.charCodeAt(Tr)===61422?(n=cr,Tr++):(n=null,Or===0&&jr(hr)),n!==null&&(Nr=t,n=or()),n===null?(Tr=t,t=n):t=n,Or--,t===null&&(n=null,Or===0&&jr(lr)),t}function Ls(){var t,n,r;return Or++,t=Tr,e.charCodeAt(Tr)===61439?(n=dr,Tr++):(n=null,Or===0&&jr(vr)),n!==null?(e.charCodeAt(Tr)===10?(r=mr,Tr++):(r=null,Or===0&&jr(gr)),r!==null?(n=[n,r],t=n):(Tr=t,t=o)):(Tr=t,t=o),Or--,t===null&&(n=null,Or===0&&jr(pr)),t}function As(){var e,t;return Or++,e=Cs(),e===null&&(e=ks()),Or--,e===null&&(t=null,Or===0&&jr(yr)),e}function Os(){var t,n,r;Or++,t=Tr,n=[],r=_s();if(r!==null)while(r!==null)n.push(r),r=_s();else n=o;return n!==null&&(n=e.substring(t,Tr)),t=n,Or--,t===null&&(n=null,Or===0&&jr(br)),t}function Ms(){var e,t;Or++,e=[],t=_s();while(t!==null)e.push(t),t=_s();return Or--,e===null&&(t=null,Or===0&&jr(wr)),e}function _s(){var t,n;return Or++,Sr.test(e.charAt(Tr))?(t=e.charAt(Tr),Tr++):(t=null,Or===0&&jr(xr)),Or--,t===null&&(n=null,Or===0&&jr(Er)),t}function Ds(){var t,n,r;return t=Tr,n=Tr,Or++,r=Ns(),r===null&&(r=Cs(),r===null&&(r=Ls())),Or--,r===null?n=u:(Tr=n,n=o),n!==null?(e.length>Tr?(r=e.charAt(Tr),Tr++):(r=null,Or===0&&jr(zt)),r!==null?(Nr=t,n=Wt(r),n===null?(Tr=t,t=n):t=n):(Tr=t,t=o)):(Tr=t,t=o),t}function Ps(){var t,n,r;t=Tr,n=[],r=Ds();while(r!==null)n.push(r),r=Ds();return n!==null&&(n=e.substring(t,Tr)),t=n,t}function Rs(e,t,n){var r=e.hash;if(n){r=r||new js.HashNode([]);for(var i=0;i<n.length;++i)r.pairs.push(n[i])}var s=[e.id].concat(e.params);return s.unshift(new js.IdNode([t])),new js.MustacheNode(s,r,!e.escaped)}function Us(e,t){var n=[];e&&n.push(e);for(var r=0;r<t.length;++r){var i=t[r];n.push(i[0]),i[1]&&n.push(i[1])}return n}function zs(e){Hs.log(9,e)}var r=arguments.length>1?arguments[1]:{},i={start:Ir},s=Ir,o=null,u="",a="else",f='"else"',l=function(e){return e},c=function(e,t){return new js.ProgramNode(e,t||[])},h=[],p=function(e){var t=[],n=[];for(var r=0;r<e.length;++r){var i=e[r];for(var s=0;s<i.length;++s){var o=i[s];if(o.type==="content"){o.string&&n.push(o.string);continue}n.length&&(t.push(new js.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new js.ContentNode(n.join(""))),t},d="BeginStatement",v=function(){return[]},m=">",g='">"',y=function(e,t){return[new js.PartialNode(e,t[0])]},b=/^[a-zA-Z0-9_$-\/]/,w="[a-zA-Z0-9_$-\\/]",E=function(e){return new js.PartialNameNode(e)},S=function(e){return[e]},x="/",T='"/"',N=/^[A-Z]/,C="[A-Z]",k=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!Bs||!n.match(/[A-Z]/)?e:(e.mustache=Rs(e.mustache,t),e)}var n=e.id.string.charAt(0);return!Bs||!n.match(/[A-Z]/)?e:Rs(e,t)},L=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},A=" ",O='" "',M="=",_='"="',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new js.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new js.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new js.ProgramNode(t,[]);return new js.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){if(e){var i=new js.PartialNameNode(t.string);return new js.PartialNode(i,n[0])}var s=[],o={},u=!1;for(var a=0;a<n.length;++a){var f=n[a],l=f[0];l=="tagName"||l=="elementId"||l=="class"?(u=!0,o[l]=o[l]||[],o[l].push(f[1])):s.push(f)}if(u){r=r||new js.HashNode([]);for(var c in o){if(!o.hasOwnProperty(c))continue;r.pairs.push([c,new js.StringNode(o[c].join(" "))])}}s.unshift(t);var h=new js.MustacheNode(s,r),p=t._emblemSuffixModifier;return p==="!"?Rs(h,"unbound"):p==="?"?Rs(h,"if"):p==="^"?Rs(h,"unless"):h},F=function(e){return["tagName",e]},I=function(e){return["elementId",e]},q=function(e){return["class",e]},R=function(e,t){return[e,t]},U=function(e){return[null,e]},z=function(e){return e},W=function(e){return new js.HashNode(e)},X="PathIdent",V="..",$='".."',J=".",K='"."',Q=/^[a-zA-Z0-9_$\-!?\^]/,G="[a-zA-Z0-9_$\\-!?\\^]",Y=function(e){return e},Z="Key",et=function(e){return[e[0],e[2]]},tt=function(e){return e},nt=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},rt="PathSeparator",it=/^[\/.]/,st="[\\/.]",ot=function(e){var t=e[e.length-1],n,r;if(n=t.match(/[!\?\^]$/))r=n[0],e[e.length-1]=t.slice(0,-1);var i=new js.IdNode(e);return i._emblemSuffixModifier=r,i},ut=function(e){return new js.StringNode(e)},at=function(e){return new js.IntegerNode(e)},ft=function(e){return new js.BooleanNode(e)},lt="Boolean",ct="true",ht='"true"',pt="false",dt='"false"',vt="Integer",mt=/^[0-9]/,gt="[0-9]",yt=function(e){return parseInt(e)},bt='"',wt='"\\""',Et="'",St='"\'"',xt=function(e){return e[1]},Tt=/^[^"}]/,Nt='[^"}]',Ct=/^[^'}]/,kt="[^'}]",Lt=/^[A-Za-z]/,At="[A-Za-z]",Ot=function(e){return[e]},Mt=function(e,t,n){t.unshift(new js.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new js.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},_t=/^[|`]/,Dt="[|`]",Pt="<",Ht='"<"',Bt=function(){return"<"},jt=function(e,t,n){(t.length||!n)&&t.push("\n");if(n){n=n[1];for(var r=0;r<n.length;++r)t=t.concat(n[r]),t.push("\n")}var i=[],s=e!=="`";for(var r=0;r<t.length;++r){var o=t[r];o=="\n"?s||i.push(new js.ContentNode("\n")):i.push(o)}return i},Ft=function(e,t){return Us(e,t)},It=function(e){return e},qt=function(e){return e.escaped=!0,e},Rt=function(e
|
2
|
-
){return e.escaped=!1,e},Ut=function(e){return new
|
1
|
+
(function(e){(function(e){var t;t=function(){function e(e){this.str=e!=null?e:"",this.str=""+this.str,this.pos=0,this.lastMatch={reset:function(){return this.str=null,this.captures=[],this}}.reset(),this}return e.prototype.bol=function(){return this.pos<=0||this.str[this.pos-1]==="\n"},e.prototype.captures=function(){return this.lastMatch.captures},e.prototype.check=function(e){var t;return this.str.substr(this.pos).search(e)!==0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),this.lastMatch.str)},e.prototype.checkUntil=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.captures=t.slice(1),this.lastMatch.str=this.str.substr(this.pos,n)+t[0])},e.prototype.clone=function(){var e,t,n,r;e=new this.constructor(this.str),e.pos=this.pos,e.lastMatch={},r=this.lastMatch;for(t in r)n=r[t],e.lastMatch[t]=n;return e},e.prototype.concat=function(e){return this.str+=e,this},e.prototype.eos=function(){return this.pos===this.str.length},e.prototype.exists=function(e){var t,n;return n=this.str.substr(this.pos).search(e),n<0?(this.lastMatch.reset(),null):(t=this.str.substr(this.pos+n).match(e),this.lastMatch.str=t[0],this.lastMatch.captures=t.slice(1),n)},e.prototype.getch=function(){return this.scan(/./)},e.prototype.match=function(){return this.lastMatch.str},e.prototype.matches=function(e){return this.check(e),this.matchSize()},e.prototype.matched=function(){return this.lastMatch.str!=null},e.prototype.matchSize=function(){return this.matched()?this.match().length:null},e.prototype.peek=function(e){return this.str.substr(this.pos,e)},e.prototype.pointer=function(){return this.pos},e.prototype.setPointer=function(e){return e=+e,e<0&&(e=0),e>this.str.length&&(e=this.str.length),this.pos=e},e.prototype.reset=function(){return this.lastMatch.reset(),this.pos=0,this},e.prototype.rest=function(){return this.str.substr(this.pos)},e.prototype.scan=function(e){var t;return t=this.check(e),t!=null&&(this.pos+=t.length),t},e.prototype.scanUntil=function(e){var t;return t=this.checkUntil(e),t!=null&&(this.pos+=t.length),t},e.prototype.skip=function(e){return this.scan(e),this.matchSize()},e.prototype.skipUntil=function(e){return this.scanUntil(e),this.matchSize()},e.prototype.string=function(){return this.str},e.prototype.terminate=function(){return this.pos=this.str.length,this.lastMatch.reset(),this},e.prototype.toString=function(){return"#<StringScanner "+(this.eos()?"fin":""+this.pos+"/"+this.str.length+" @ "+(this.str.length>8?""+this.str.substr(0,5)+"...":this.str))+">"},e}(),t.prototype.beginningOfLine=t.prototype.bol,t.prototype.clear=t.prototype.terminate,t.prototype.dup=t.prototype.clone,t.prototype.endOfString=t.prototype.eos,t.prototype.exist=t.prototype.exists,t.prototype.getChar=t.prototype.getch,t.prototype.position=t.prototype.pointer,t.StringScanner=t,this.StringScanner=t})(this);var t=this.StringScanner,n;this.Emblem={},n=this.Emblem,n.VERSION="0.1.11",n.Parser=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i){function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i;switch(e.length){case 0:r="end of input";break;case 1:r=e[0];break;default:r=e.slice(0,-1).join(", ")+" or "+e[e.length-1]}return i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}this.expected=e,this.found=t,this.offset=n,this.line=r,this.column=i,this.name="SyntaxError",this.message=s(e,t)}function r(e){function Hr(){return e.substring(Lr,kr)}function Br(){return Lr}function jr(){return Ir(Lr).line}function Fr(){return Ir(Lr).column}function Ir(t){function n(t,n){var r,i;for(r=0;r<n;r++)i=e.charAt(r),i==="\n"?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):i==="\r"||i==="\u2028"||i==="\u2029"?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Ar!==t&&(Ar>t&&(Ar=0,Or={line:1,column:1,seenCR:!1}),Ar=t,n(Or,Ar)),Or}function qr(e){if(kr<Mr)return;kr>Mr&&(Mr=kr,_r=[]),_r.push(e)}function Rr(e){var t=0;e.sort();while(t<e.length)e[t-1]===e[t]?e.splice(t,1):t++}function Ur(){var e;return e=zr(),e}function zr(){var t,n,r,i,s,h,p,d,v;return t=kr,n=Wr(),n!==null?(r=kr,i=As(),i!==null?(e.substr(kr,4)===a?(s=a,kr+=4):(s=null,Dr===0&&qr(f)),s!==null?(h=Ps(),h!==null?(p=Ms(),p!==null?(d=ks(),d!==null?(v=Wr(),v!==null?(Lr=r,i=l(v),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=u),r!==null?(Lr=t,n=c(n,r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Wr(){var e,t,n;e=kr,t=[],n=Xr();while(n!==null)t.push(n),n=Xr();return t!==null&&(Lr=e,t=p(t)),t===null?(kr=e,e=t):e=t,e}function Xr(){var e,t;return Dr++,e=Vr(),e===null&&(e=Yr(),e===null&&(e=$r(),e===null&&(e=Kr(),e===null&&(e=_i(),e===null&&(e=Qr()))))),Dr--,e===null&&(t=null,Dr===0&&qr(d)),e}function Vr(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=Ms(),n!==null?(Lr=e,t=v(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function $r(){var t,n,r,i,s,u,a,f;t=kr,e.charCodeAt(kr)===62?(n=m,kr++):(n=null,Dr===0&&qr(g));if(n!==null){r=Ps();if(r!==null){i=Jr();if(i!==null){s=Ps();if(s!==null){u=[],a=ci();while(a!==null)u.push(a),a=ci();u!==null?(a=Ps(),a!==null?(f=Ms(),f!==null?(Lr=t,n=y(i,u),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function Jr(){var t,n,r,i;t=kr,n=kr,r=[],b.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(w));if(i!==null)while(i!==null)r.push(i),b.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(w));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=E(n)),n===null?(kr=t,t=n):t=n,t}function Kr(){var e;return e=ti(),e===null&&(e=ni()),e}function Qr(){var e,t;return e=kr,t=si(),t===null&&(t=Zr()),t!==null&&(Lr=e,t=S(t)),t===null?(kr=e,e=t):e=t,e}function Gr(){var e,t,n,r,i,s,u,a;e=kr,t=js();if(t!==null){n=Ms();if(n!==null){r=[],i=kr,s=ks();if(s!==null){u=[],a=Gr();if(a!==null)while(a!==null)u.push(a),a=Gr();else u=o;u!==null?(a=_s(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o;while(i!==null){r.push(i),i=kr,s=ks();if(s!==null){u=[],a=Gr();if(a!==null)while(a!==null)u.push(a),a=Gr();else u=o;u!==null?(a=_s(),a!==null?(s=[s,u,a],i=s):(kr=i,i=o)):(kr=i,i=o)}else kr=i,i=o}r!==null?(Lr=e,t=v(),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Yr(){var t,n,r;return t=kr,e.charCodeAt(kr)===47?(n=x,kr++):(n=null,Dr===0&&qr(T)),n!==null?(r=Gr(),r!==null?(Lr=t,n=v(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Zr(){var e;return e=ei(),e===null&&(e=ri()),e}function ei(){var t,n,r;return t=kr,n=kr,Dr++,N.test(e.charAt(kr))?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(C)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null?(r=ri(),r!==null?(Lr=t,n=k(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ti(){var e,t,n,r,i,s,a,f,l;e=kr,t=ts();if(t!==null){n=Ps();if(n!==null){r=Ms();if(r!==null){i=kr,s=[],a=Vr();while(a!==null)s.push(a),a=Vr();s!==null?(a=ks(),a!==null?(f=Wr(),f!==null?(l=As(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=L(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o;return e}function ni(){var t,n,r,i,s,a,f,l;t=kr,n=ts();if(n!==null){e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=kr,Dr++,e.charCodeAt(kr)===61?(i=M,kr++):(i=null,Dr===0&&qr(_)),Dr--,i!==null?(kr=r,r=u):r=o);if(r!==null){i=Ai();if(i!==null){s=kr,a=ks();if(a!==null){f=[],l=Oi();if(l!==null)while(l!==null)f.push(l),l=Oi();else f=o;f!==null?(l=As(),l!==null?(a=[a,f,l],s=a):(kr=s,s=o)):(kr=s,s=o)}else kr=s,s=o;s===null&&(s=u),s!==null?(Lr=t,n=D(n,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ri(){var e,t,n,r,i,s,a,f,l;e=ii();if(e===null){e=kr,t=oi();if(t!==null){n=Ps();if(n!==null){r=Ms();if(r!==null){i=kr,s=[],a=Vr();while(a!==null)s.push(a),a=Vr();s!==null?(a=ks(),a!==null?(f=zr(),f!==null?(l=As(),l!==null?(s=[s,a,f,l],i=s):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o)):(kr=i,i=o),i===null&&(i=u),i!==null?(Lr=e,t=P(t,i),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o}else kr=e,e=o}return e}function ii(){var e,t,n,r;return e=kr,t=oi(),t!==null?(n=Ps(),n!==null?(r=_i(),r!==null?(Lr=e,t=H(t,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function si(){var e,t,n;return e=kr,t=es(),t!==null?(n=ri(),n!==null?(Lr=e,t=B(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function oi(){var t,n,r,i,s,a;t=kr,e.charCodeAt(kr)===62?(n=m,kr++):(n=null,Dr===0&&qr(g)),n===null&&(n=u);if(n!==null){r=Ps();if(r!==null){i=bi();if(i!==null){s=[],a=ci();while(a!==null)s.push(a),a=ci();s!==null?(a=hi(),a===null&&(a=u),a!==null?(Lr=t,n=j(n,i,s,a),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;return t}function ui(){var e,t;return e=kr,t=ds(),t!==null&&(Lr=e,t=F(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=vs(),t!==null&&(Lr=e,t=I(t)),t===null?(kr=e,e=t):e=t,e===null&&(e=kr,t=ms(),t!==null&&(Lr=e,t=q(t)),t===null?(kr=e,e=t):e=t)),e}function ai(){var e;return e=fi(),e===null&&(e=li()),e}function fi(){var e,t,n,r;e=kr,t=vs();if(t!==null){n=[],r=ms();while(r!==null)n.push(r),r=ms();n!==null?(Lr=e,t=R(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function li(){var e,t,n;e=kr,t=[],n=ms();if(n!==null)while(n!==null)t.push(n),n=ms();else t=o;return t!==null&&(Lr=e,t=U(t)),t===null?(kr=e,e=t):e=t,e}function ci(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=ui(),n===null&&(n=mi()),n!==null?(Lr=e,t=z(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function hi(){var e,t,n;e=kr,t=[],n=vi();if(n!==null)while(n!==null)t.push(n),n=vi();else t=o;return t!==null&&(Lr=e,t=W(t)),t===null?(kr=e,e=t):e=t,e}function pi(){var t,n,r,i;Dr++,e.substr(kr,2)===V?(t=V,kr+=2):(t=null,Dr===0&&qr($));if(t===null){e.charCodeAt(kr)===46?(t=J,kr++):(t=null,Dr===0&&qr(K));if(t===null){t=kr,n=kr,r=[],Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));if(i!==null)while(i!==null)r.push(i),Q.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(G));else r=o;r!==null&&(r=e.substring(n,kr)),n=r,n!==null?(r=kr,Dr++,e.charCodeAt(kr)===61?(i=M,kr++):(i=null,Dr===0&&qr(_)),Dr--,i===null?r=u:(kr=r,r=o),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)}}return Dr--,t===null&&(n=null,Dr===0&&qr(X)),t}function di(){var e,t;return Dr++,e=ys(),Dr--,e===null&&(t=null,Dr===0&&qr(Z)),e}function vi(){var t,n,r,i,s,u;return t=kr,n=Ps(),n!==null?(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=bi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=wi(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=Ei(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o),r===null&&(r=kr,i=di(),i!==null?(e.charCodeAt(kr)===61?(s=M,kr++):(s=null,Dr===0&&qr(_)),s!==null?(u=Si(),u!==null?(i=[i,s,u],r=i):(kr=r,r=o)):(kr=r,r=o)):(kr=r,r=o)))),r!==null?(Lr=t,n=et(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function mi(){var e;return e=bi(),e===null&&(e=wi(),e===null&&(e=Ei(),e===null&&(e=Si()))),e}function gi(){var e,t,n,r,i,s;e=kr,t=pi();if(t!==null){n=[],r=kr,i=yi(),i!==null?(s=pi(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=yi(),i!==null?(s=pi(),s!==null?(Lr=r,i=tt(s),i===null?(kr=r,r=i):r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=nt(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function yi(){var t,n;return Dr++,it.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(st)),Dr--,t===null&&(n=null,Dr===0&&qr(rt)),t}function bi(){var e,t;return e=kr,t=gi(),t!==null&&(Lr=e,t=ot(t)),t===null?(kr=e,e=t):e=t,e}function wi(){var e,t;return e=kr,t=Ni(),t!==null&&(Lr=e,t=ut(t)),t===null?(kr=e,e=t):e=t,e}function Ei(){var e,t;return e=kr,t=Ti(),t!==null&&(Lr=e,t=at(t)),t===null?(kr=e,e=t):e=t,e}function Si(){var e,t;return e=kr,t=xi(),t!==null&&(Lr=e,t=ft(t)),t===null?(kr=e,e=t):e=t,e}function xi(){var t,n;return Dr++,e.substr(kr,4)===ct?(t=ct,kr+=4):(t=null,Dr===0&&qr(ht)),t===null&&(e.substr(kr,5)===pt?(t=pt,kr+=5):(t=null,Dr===0&&qr(dt))),Dr--,t===null&&(n=null,Dr===0&&qr(lt)),t}function Ti(){var t,n,r,i;Dr++,t=kr,n=kr,r=[],mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));if(i!==null)while(i!==null)r.push(i),mt.test(e.charAt(kr))?(i=e.charAt(kr),kr++):(i=null,Dr===0&&qr(gt));else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=yt(n)),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(vt)),t}function Ni(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=Ci(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=ki(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function Ci(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Tt.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(Nt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function ki(){var t,n,r,i,s;t=kr,n=[],r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=kr,Dr++,s=Ms(),Dr--,s===null?i=u:(kr=i,i=o),i!==null?(Ct.test(e.charAt(kr))?(s=e.charAt(kr),kr++):(s=null,Dr===0&&qr(kt)),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);return n!==null&&(n=e.substring(t,kr)),t=n,t}function Li(){var t;return Lt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(At)),t}function Ai(){var e,t,n;return e=kr,t=Ps(),t!==null?(n=si(),n!==null?(Lr=e,t=Ot(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=Di()),e}function Oi(){var e,t,n,r,i;e=kr,t=ks();if(t!==null){n=Di();if(n!==null){r=[],i=Oi();while(i!==null)r.push(i),i=Oi();r!==null?(i=_s(),i!==null?(Lr=e,t=Mt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e===null&&(e=Di()),e}function Mi(){var t,n,r;return t=kr,_t.test(e.charAt(kr))?(n=e.charAt(kr),kr++):(n=null,Dr===0&&qr(Dt)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=Y(n),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,n=kr,Dr++,e.charCodeAt(kr)===60?(r=Pt,kr++):(r=null,Dr===0&&qr(Ht)),Dr--,r!==null?(kr=n,n=u):n=o,n!==null&&(Lr=t,n=Bt()),n===null?(kr=t,t=n):t=n),t}function _i(){var e,t,n,r,i,s,a;e=kr,t=Mi();if(t!==null){n=Di();if(n!==null){r=kr,i=ks();if(i!==null){s=[],a=Oi();while(a!==null)s.push(a),a=Oi();s!==null?(a=As(),a!==null?(i=[i,s,a],r=i):(kr=r,r=o)):(kr=r,r=o)}else kr=r,r=o;r===null&&(r=u),r!==null?(Lr=e,t=jt(t,n,r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o}else kr=e,e=o;return e}function Di(){var e,t,n,r,i,s;e=kr,t=Ri(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=Bi(),i!==null?(s=Ri(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=Bi(),i!==null?(s=Ri(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(r=Ms(),r!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)}else kr=e,e=o;return e}function Pi(){var t,n,r,i;return t=kr,e.charCodeAt(kr)===34?(n=bt,kr++):(n=null,Dr===0&&qr(wt)),n!==null?(r=Hi(),r!==null?(e.charCodeAt(kr)===34?(i=bt,kr++):(i=null,Dr===0&&qr(wt)),i!==null?(Lr=t,n=It(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function Hi(){var e,t,n,r,i,s;e=kr,t=Ii(),t===null&&(t=u);if(t!==null){n=[],r=kr,i=Bi(),i!==null?(s=Ii(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);while(r!==null)n.push(r),r=kr,i=Bi(),i!==null?(s=Ii(),s===null&&(s=u),s!==null?(i=[i,s],r=i):(kr=r,r=o)):(kr=r,r=o);n!==null?(Lr=e,t=Ft(t,n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)}else kr=e,e=o;return e}function Bi(){var e;return e=Fi(),e===null&&(e=ji()),e}function ji(){var e,t,n,r,i,s;return e=kr,t=$i(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Qi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e===null&&(e=kr,t=Yi(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Zi(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)),e}function Fi(){var e,t,n,r,i,s;return e=kr,t=Ji(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Gi(),s!==null?(Lr=e,t=Rt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function Ii(){var t,n,r,i;t=kr,n=kr,r=[],i=qi();if(i!==null)while(i!==null)r.push(i),i=qi();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function qi(){var t,n,r;return t=kr,n=kr,Dr++,r=zi(),r===null&&(e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt))),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function Ri(){var t,n,r,i;t=kr,n=kr,r=[],i=Ui();if(i!==null)while(i!==null)r.push(i),i=Ui();else r=o;return r!==null&&(r=e.substring(n,kr)),n=r,n!==null&&(Lr=t,n=Ut(n)),n===null?(kr=t,t=n):t=n,t}function Ui(){var t,n,r;return t=kr,n=kr,Dr++,r=zi(),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function zi(){var e;return e=Ji(),e===null&&(e=$i(),e===null&&(e=Yi(),e===null&&(e=_s(),e===null&&(e=Ms())))),e}function Wi(){var e,t,n,r,i,s;return e=kr,t=Vi(),t!==null?(n=Ps(),n!==null?(r=oi(),r!==null?(i=Ps(),i!==null?(s=Ki(),s!==null?(Lr=e,t=qt(r),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o)):(kr=e,e=o),e}function Xi(){var e;return e=Wi(),e===null&&(e=Fi(),e===null&&(e=ji())),e}function Vi(){var t,n;return Dr++,e.charCodeAt(kr)===123?(t=Vt,kr++):(t=null,Dr===0&&qr($t)),Dr--,t===null&&(n=null,Dr===0&&qr(Xt)),t}function $i(){var t,n;return Dr++,e.substr(kr,2)===Kt?(t=Kt,kr+=2):(t=null,Dr===0&&qr(Qt)),Dr--,t===null&&(n=null,Dr===0&&qr(Jt)),t}function Ji(){var t,n;return Dr++,e.substr(kr,3)===Yt?(t=Yt,kr+=3):(t=null,Dr===0&&qr(Zt)),Dr--,t===null&&(n=null,Dr===0&&qr(Gt)),t}function Ki(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(en)),t}function Qi(){var t,n;return Dr++,e.substr(kr,2)===sn?(t=sn,kr+=2):(t=null,Dr===0&&qr(on)),Dr--,t===null&&(n=null,Dr===0&&qr(rn)),t}function Gi(){var t,n;return Dr++,e.substr(kr,3)===an?(t=an,kr+=3):(t=null,Dr===0&&qr(fn)),Dr--,t===null&&(n=null,Dr===0&&qr(un)),t}function Yi(){var t,n;return Dr++,e.substr(kr,2)===cn?(t=cn,kr+=2):(t=null,Dr===0&&qr(hn)),Dr--,t===null&&(n=null,Dr===0&&qr(ln)),t}function Zi(){var t,n;return Dr++,e.charCodeAt(kr)===125?(t=tn,kr++):(t=null,Dr===0&&qr(nn)),Dr--,t===null&&(n=null,Dr===0&&qr(pn)),t}function es(){var t,n,r;return t=kr,e.substr(kr,2)===dn?(n=dn,kr+=2):(n=null,Dr===0&&qr(vn)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=mn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=kr,e.charCodeAt(kr)===61?(n=M,kr++):(n=null,Dr===0&&qr(_)),n!==null?(e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O)),r===null&&(r=u),r!==null?(Lr=t,n=gn(),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)),t}function ts(){var e,t,n,r,i,s,a;e=kr,t=kr,n=xs();if(n!==null){r=ai(),r===null&&(r=u);if(r!==null){i=[],s=Xi();while(s!==null)i.push(s),s=Xi();if(i!==null){s=[],a=ns();while(a!==null)s.push(a),a=ns();s!==null?(Lr=t,n=yn(n,r,i,s),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=ai();if(n!==null){r=[],i=Xi();while(i!==null)r.push(i),i=Xi();if(r!==null){i=[],s=ns();while(s!==null)i.push(s),s=ns();i!==null?(Lr=t,n=bn(n,r,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o}return t!==null&&(Lr=e,t=wn(t)),t===null?(kr=e,e=t):e=t,e}function ai(){var e,t,n,r;e=kr,t=[],n=kr,r=vs(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=ms(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);if(n!==null)while(n!==null)t.push(n),n=kr,r=vs(),r!==null&&(Lr=n,r=En(r)),r===null?(kr=n,n=r):n=r,n===null&&(n=kr,r=ms(),r!==null&&(Lr=n,r=Sn(r)),r===null?(kr=n,n=r):n=r);else t=o;return t!==null&&(Lr=e,t=xn(t)),t===null?(kr=e,e=t):e=t,e}function ns(){var t,n,r;t=kr,n=[],e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O));if(r!==null)while(r!==null)n.push(r),e.charCodeAt(kr)===32?(r=A,kr++):(r=null,Dr===0&&qr(O));else n=o;return n!==null?(r=os(),r===null&&(r=as(),r===null&&(r=fs(),r===null&&(r=ls()))),r!==null?(Lr=t,n=Tn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function rs(){var t;return Nn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cn)),t}function is(){var e,t;return e=ss(),e===null&&(e=kr,t=bi(),t!==null&&(Lr=e,t=kn(t)),t===null?(kr=e,e=t):e=t),e}function ss(){var t,n,r,i,s;return t=kr,n=kr,e.charCodeAt(kr)===34?(r=bt,kr++):(r=null,Dr===0&&qr(wt)),r!==null?(i=oi(),i!==null?(e.charCodeAt(kr)===34?(s=bt,kr++):(s=null,Dr===0&&qr(wt)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o),n===null&&(n=kr,e.charCodeAt(kr)===39?(r=Et,kr++):(r=null,Dr===0&&qr(St)),r!==null?(i=oi(),i!==null?(e.charCodeAt(kr)===39?(s=Et,kr++):(s=null,Dr===0&&qr(St)),s!==null?(r=[r,i,s],n=r):(kr=n,n=o)):(kr=n,n=o)):(kr=n,n=o)),n!==null&&(Lr=t,n=xt(n)),n===null?(kr=t,t=n):t=n,t}function os(){var t,n,r,i;return t=kr,n=Cs(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=is(),i!==null?(Lr=t,n=Ln(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function us(){var t,n,r,i,s,u;t=kr,e.charCodeAt(kr)===123?(n=Vt,kr++):(n=null,Dr===0&&qr($t));if(n!==null){r=Ps();if(r!==null){i=kr,s=[],u=rs(),u===null&&(e.charCodeAt(kr)===32?(u=A,kr++):(u=null,Dr===0&&qr(O)));if(u!==null)while(u!==null)s.push(u),u=rs(),u===null&&(e.charCodeAt(kr)===32?(u=A,kr++):(u=null,Dr===0&&qr(O)));else s=o;s!==null&&(s=e.substring(i,kr)),i=s,i!==null?(s=Ps(),s!==null?(e.charCodeAt(kr)===125?(u=tn,kr++):(u=null,Dr===0&&qr(nn)),u!==null?(Lr=t,n=An(i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)}else kr=t,t=o}else kr=t,t=o;if(t===null){t=kr,n=[],r=rs();if(r!==null)while(r!==null)n.push(r),r=rs();else n=o;n!==null&&(n=e.substring(t,kr)),t=n}return t}function as(){var t,n,r,i,s,a;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=us(),i!==null?(s=kr,Dr++,e.charCodeAt(kr)===33?(a=On,kr++):(a=null,Dr===0&&qr(Mn)),Dr--,a===null?s=u:(kr=s,s=o),s!==null?(Lr=kr,a=_n(n,i),a?a=u:a=o,a!==null?(Lr=t,n=Dn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function fs(){var t,n,r,i;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=bi(),i!==null?(Lr=t,n=Pn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function ls(){var t,n,r,i;return t=kr,n=di(),n!==null?(e.charCodeAt(kr)===61?(r=M,kr++):(r=null,Dr===0&&qr(_)),r!==null?(i=Pi(),i!==null?(Lr=t,n=Hn(n,i),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o)):(kr=t,t=o),t}function cs(){var t,n,r;t=kr,n=[],r=ps();while(r!==null)n.push(r),r=ps();return n!==null&&(n=e.substring(t,kr)),t=n,t}function hs(){var e;return e=Ni(),e===null&&(e=mi()),e}function ps(){var t;return t=Li(),t===null&&(mt.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(gt)),t===null&&(e.charCodeAt(kr)===95?(t=Bn,kr++):(t=null,Dr===0&&qr(jn)),t===null&&(e.charCodeAt(kr)===45?(t=Fn,kr++):(t=null,Dr===0&&qr(In))))),t}function ds(){var t,n,r;return t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function vs(){var t,n,r;return t=kr,e.charCodeAt(kr)===35?(n=Un,kr++):(n=null,Dr===0&&qr(zn)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wn(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function ms(){var t,n,r;return t=kr,e.charCodeAt(kr)===46?(n=J,kr++):(n=null,Dr===0&&qr(K)),n!==null?(r=gs(),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function gs(){var e,t;return Dr++,e=ys(),Dr--,e===null&&(t=null,Dr===0&&qr(Xn)),e}function ys(){var t,n,r,i,s;t=kr,n=ws();if(n!==null){r=kr,i=[],s=bs();while(s!==null)i.push(s),s=bs();i!==null&&(i=e.substring(r,kr)),r=i,r!==null?(Lr=t,n=Vn(n,r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)}else kr=t,t=o;return t}function bs(){var t;return $n.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Jn)),t===null&&(t=Es()),t}function ws(){var t;return Kn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Qn)),t===null&&(t=Es()),t}function Es(){var t;return Gn.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Yn)),t}function Ss(){var t,n,r;t=kr,n=[],r=Ns();if(r!==null)while(r!==null)n.push(r),r=Ns();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,t}function xs(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===37?(n=qn,kr++):(n=null,Dr===0&&qr(Rn)),n!==null?(r=Ss(),r!==null?(Lr=t,n=Y(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t===null&&(t=Ts()),Dr--,t===null&&(n=null,Dr===0&&qr(Zn)),t}function Ts(){var e,t,n;return e=kr,t=Ss(),t!==null?(Lr=kr,n=er(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Ns(){var t;return nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(rr)),t}function Cs(){var e,t,n;return Dr++,e=kr,t=Ss(),t!==null?(Lr=kr,n=sr(t),n?n=u:n=o,n!==null?(Lr=e,t=tr(t),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),Dr--,e===null&&(t=null,Dr===0&&qr(ir)),e}function ks(){var e,t,n;return e=kr,t=Ls(),t!==null?(n=Ds(),n!==null?(Lr=e,t=Y(n),t===null?(kr=e,e=t):e=t):(kr=e,e=o)):(kr=e,e=o),e}function Ls(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61423?(n=ur,kr++):(n=null,Dr===0&&qr(ar)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(or)),t}function As(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61438?(n=cr,kr++):(n=null,Dr===0&&qr(hr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(lr)),t}function Os(){var t,n;return Dr++,t=kr,e.charCodeAt(kr)===61422?(n=dr,kr++):(n=null,Dr===0&&qr(vr)),n!==null&&(Lr=t,n=fr()),n===null?(kr=t,t=n):t=n,Dr--,t===null&&(n=null,Dr===0&&qr(pr)),t}function Ms(){var t,n,r;return Dr++,t=kr,e.charCodeAt(kr)===61439?(n=gr,kr++):(n=null,Dr===0&&qr(yr)),n!==null?(e.charCodeAt(kr)===10?(r=br,kr++):(r=null,Dr===0&&qr(wr)),r!==null?(n=[n,r],t=n):(kr=t,t=o)):(kr=t,t=o),Dr--,t===null&&(n=null,Dr===0&&qr(mr)),t}function _s(){var e,t;return Dr++,e=As(),e===null&&(e=Os()),Dr--,e===null&&(t=null,Dr===0&&qr(Er)),e}function Ds(){var t,n,r;Dr++,t=kr,n=[],r=Hs();if(r!==null)while(r!==null)n.push(r),r=Hs();else n=o;return n!==null&&(n=e.substring(t,kr)),t=n,Dr--,t===null&&(n=null,Dr===0&&qr(Sr)),t}function Ps(){var e,t;Dr++,e=[],t=Hs();while(t!==null)e.push(t),t=Hs();return Dr--,e===null&&(t=null,Dr===0&&qr(xr)),e}function Hs(){var t,n;return Dr++,Nr.test(e.charAt(kr))?(t=e.charAt(kr),kr++):(t=null,Dr===0&&qr(Cr)),Dr--,t===null&&(n=null,Dr===0&&qr(Tr)),t}function Bs(){var t,n,r;return t=kr,n=kr,Dr++,r=Ls(),r===null&&(r=As(),r===null&&(r=Ms())),Dr--,r===null?n=u:(kr=n,n=o),n!==null?(e.length>kr?(r=e.charAt(kr),kr++):(r=null,Dr===0&&qr(zt)),r!==null?(Lr=t,n=Wt(r),n===null?(kr=t,t=n):t=n):(kr=t,t=o)):(kr=t,t=o),t}function js(){var t,n,r;t=kr,n=[],r=Bs();while(r!==null)n.push(r),r=Bs();return n!==null&&(n=e.substring(t,kr)),t=n,t}function Ws(e,t,n){var r=e.hash;if(n){r=r||new qs.HashNode([]);for(var i=0;i<n.length;++i)r.pairs.push(n[i])}var s=[e.id].concat(e.params);return s.unshift(new qs.IdNode([t])),new qs.MustacheNode(s,r,!e.escaped)}function Xs(e,t){var n=[];e&&n.push(e);for(var r=0;r<t.length;++r){var i=t[r];n.push(i[0]),i[1]&&n.push(i[1])}return n}function Vs(e){Fs.log(9,e)}var r=arguments.length>1?arguments[1]:{},i={start:Ur},s=Ur,o=null,u="",a="else",f='"else"',l=function(e){return e},c=function(e,t){return new qs.ProgramNode(e,t||[])},h=[],p=function(e){var t=[],n=[];for(var r=0;r<e.length;++r){var i=e[r];for(var s=0;s<i.length;++s){var o=i[s];if(o.type==="content"){o.string&&n.push(o.string);continue}n.length&&(t.push(new qs.ContentNode(n.join(""))),n=[]),t.push(o)}}return n.length&&t.push(new qs.ContentNode(n.join(""))),t},d="BeginStatement",v=function(){return[]},m=">",g='">"',y=function(e,t){return[new qs.PartialNode(e,t[0])]},b=/^[a-zA-Z0-9_$-\/]/,w="[a-zA-Z0-9_$-\\/]",E=function(e){return new qs.PartialNameNode(e)},S=function(e){return[e]},x="/",T='"/"',N=/^[A-Z]/,C="[A-Z]",k=function(e){var t="view";if(e.mustache){var n=e.mustache.id.string.charAt(0);return!Is||!n.match(/[A-Z]/)?e:(e.mustache=Ws(e.mustache,t),e)}var n=e.id.string.charAt(0);return!Is||!n.match(/[A-Z]/)?e:Ws(e,t)},L=function(e,t){var n=e[0];return t&&(n=n.concat(t[2])),e[1]&&n.push(e[1]),n},A=" ",O='" "',M="=",_='"="',D=function(e,t,n){var r=e[0];t&&(r=r.concat(t));if(n){n=n[1];for(var i=0;i<n.length;++i)r.push(new qs.ContentNode(" ")),r=r.concat(n[i])}return e[1]&&r.push(e[1]),r},P=function(e,t){if(!t)return e;var n=t[2];return new qs.BlockNode(e,n,n.inverse,e.id)},H=function(e,t){var n=new qs.ProgramNode(t,[]);return new qs.BlockNode(e,n,n.inverse,e.id)},B=function(e,t){var n=t.mustache||t;return n.escaped=e,t},j=function(e,t,n,r){if(e){var i=new qs.PartialNameNode(t.string);return new qs.PartialNode(i,n[0])}var s=[],o={},u=!1;for(var a=0;a<n.length;++a){var f=n[a],l=f[0];l=="tagName"||l=="elementId"||l=="class"?(u=!0,o[l]=o[l]||[],o[l].push(f[1])):s.push(f)}if(u){r=r||new qs.HashNode([]);for(var c in o){if(!o.hasOwnProperty(c))continue;r.pairs.push([c,new qs.StringNode(o[c].join(" "))])}}s.unshift(t);var h=new qs.MustacheNode(s,r),p=t._emblemSuffixModifier;return p==="!"?Ws(h,"unbound"):p==="?"?Ws(h,"if"):p==="^"?Ws(h,"unless"):h},F=function(e){return["tagName",e]},I=function(e){return["elementId",e]},q=function(e){return["class",e]},R=function(e,t){return[e,t]},U=function(e){return[null,e]},z=function(e){return e},W=function(e){return new qs.HashNode(e)},X="PathIdent",V="..",$='".."',J=".",K='"."',Q=/^[a-zA-Z0-9_$\-!?\^]/,G="[a-zA-Z0-9_$\\-!?\\^]",Y=function(e){return e},Z="Key",et=function(e){return[e[0],e[2]]},tt=function(e){return e},nt=function(e,t){var n=[e];for(var r=0;r<t.length;++r)n.push(t[r]);return n},rt="PathSeparator",it=/^[\/.]/,st="[\\/.]",ot=function(e){var t=e[e.length-1],n,r;if(n=t.match(/[!\?\^]$/))r=n[0],e[e.length-1]=t.slice(0,-1);var i=new qs.IdNode(e);return i._emblemSuffixModifier=r,i},ut=function(e){return new qs.StringNode(e)},at=function(e){return new qs.IntegerNode(e)},ft=function(e){return new qs.BooleanNode(e)},lt="Boolean",ct="true",ht='"true"',pt="false",dt='"false"',vt="Integer",mt=/^[0-9]/,gt="[0-9]",yt=function(e){return parseInt(e)},bt='"',wt='"\\""',Et="'",St='"\'"',xt=function(e){return e[1]},Tt=/^[^"}]/,Nt='[^"}]',Ct=/^[^'}]/,kt="[^'}]",Lt=/^[A-Za-z]/,At="[A-Za-z]",Ot=function(e){return[e]},Mt=function(e,t,n){t.unshift(new qs.ContentNode(e));for(var r=0;r<n.length;++r)t.push(new qs.ContentNode(e)),t=t.concat(n[r]),t.push("\n");return t},_t=/^[|`]/,Dt="[|`]",Pt="<",Ht='"<"',Bt=function(){return"<"},jt=function(e,t,n){(t.length||!n)&&t.push("\n");if(n){n=n[1];for(var r=0;r<n.length;++r)t=t.concat(n[r]),t.push("\n")}var i=[],s=e!=="`";for(var r=0;r<t.length;++r){var o=t[r];o=="\n"?s||i.push(new qs.ContentNode("\n")):i.push(o)}return i},Ft=function(e,t){return Xs(e,t)},It=function(e){return e},qt=function(e){return e.escaped=!0
|
2
|
+
,e},Rt=function(e){return e.escaped=!1,e},Ut=function(e){return new qs.ContentNode(e)},zt="any character",Wt=function(e){return e},Xt="SingleMustacheOpen",Vt="{",$t='"{"',Jt="DoubleMustacheOpen",Kt="{{",Qt='"{{"',Gt="TripleMustacheOpen",Yt="{{{",Zt='"{{{"',en="SingleMustacheClose",tn="}",nn='"}"',rn="DoubleMustacheClose",sn="}}",on='"}}"',un="TripleMustacheClose",an="}}}",fn='"}}}"',ln="InterpolationOpen",cn="#{",hn='"#{"',pn="InterpolationClose",dn="==",vn='"=="',mn=function(){return!1},gn=function(){return!0},yn=function(e,t,n,r){return[e,t,n,r]},bn=function(e,t,n){return[null,e,t,n]},wn=function(e){var t=e[0]||"div",n=e[1]||[],r=e[2],i=e[3],s=n[0],o=n[1],u=[];u.push(new qs.ContentNode("<"+t)),s&&u.push(new qs.ContentNode(' id="'+s+'"')),o&&o.length&&u.push(new qs.ContentNode(' class="'+o.join(" ")+'"'));for(var a=0;a<r.length;++a)u.push(new qs.ContentNode(" ")),u.push(r[a]);for(var a=0;a<i.length;++a)u=u.concat(i[a]);return Rs[t]?(u.push(new qs.ContentNode(" />")),[u]):(u.push(new qs.ContentNode(">")),[u,new qs.ContentNode("</"+t+">")])},En=function(e){return{shorthand:e,id:!0}},Sn=function(e){return{shorthand:e}},xn=function(e){var t,n=[];for(var r=0,i=e.length;r<i;++r){var s=e[r];s.id?t=s.shorthand:n.push(s.shorthand)}return[t,n]},Tn=function(e){return[new qs.ContentNode(" ")].concat(e)},Nn=/^[A-Za-z.:0-9_\-]/,Cn="[A-Za-z.:0-9_\\-]",kn=function(e){return new qs.MustacheNode([e])},Ln=function(e,t){return[Ws(t,"action",[["on",new qs.StringNode(e)]])]},An=function(e){return e.replace(/ *$/,"")},On="!",Mn='"!"',_n=function(e,t){return Is},Dn=function(e,t){var n=new qs.HashNode([[e,new qs.StringNode(t)]]),r=[new qs.IdNode(["bindAttr"])],i=new qs.MustacheNode(r,n);return[i]},Pn=function(e,t){var n=new qs.MustacheNode([t]);return Is&&t._emblemSuffixModifier==="!"&&(n=Ws(n,"unbound")),[new qs.ContentNode(e+"="+'"'),n,new qs.ContentNode('"')]},Hn=function(e,t){var n=[new qs.ContentNode(e+"="+'"')].concat(t);return n.concat([new qs.ContentNode('"')])},Bn="_",jn='"_"',Fn="-",In='"-"',qn="%",Rn='"%"',Un="#",zn='"#"',Wn=function(e){return e},Xn="CSSIdentifier",Vn=function(e,t){return e+t},$n=/^[_a-zA-Z0-9\-]/,Jn="[_a-zA-Z0-9\\-]",Kn=/^[_a-zA-Z]/,Qn="[_a-zA-Z]",Gn=/^[\x80-\xFF]/,Yn="[\\x80-\\xFF]",Zn="KnownHTMLTagName",er=function(e){return!!Us[e]},tr=function(e){return e},nr=/^[:_a-zA-Z0-9\-]/,rr="[:_a-zA-Z0-9\\-]",ir="a JS event",sr=function(e){return!!zs[e]},or="INDENT",ur="",ar='"\\uEFEF"',fr=function(){return""},lr="DEDENT",cr="",hr='"\\uEFFE"',pr="Unmatched DEDENT",dr="",vr='"\\uEFEE"',mr="LineEnd",gr="",yr='"\\uEFFF"',br="\n",wr='"\\n"',Er="ANYDEDENT",Sr="RequiredWhitespace",xr="OptionalWhitespace",Tr="InlineWhitespace",Nr=/^[ \t]/,Cr="[ \\t]",kr=0,Lr=0,Ar=0,Or={line:1,column:1,seenCR:!1},Mr=0,_r=[],Dr=0,Pr;if("startRule"in r){if(!(r.startRule in i))throw new Error("Can't start parsing from rule \""+r.startRule+'".');s=i[r.startRule]}var Fs=n.handlebarsVariant,Is=Fs.JavaScriptCompiler.prototype.namespace==="Ember.Handlebars",qs=Fs.AST,Rs={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Us={figcaption:!0,blockquote:!0,plaintext:!0,textarea:!0,progress:!0,optgroup:!0,noscript:!0,noframes:!0,frameset:!0,fieldset:!0,datalist:!0,colgroup:!0,basefont:!0,summary:!0,section:!0,marquee:!0,listing:!0,isindex:!0,details:!0,command:!0,caption:!0,bgsound:!0,article:!0,address:!0,acronym:!0,strong:!0,strike:!0,spacer:!0,source:!0,select:!0,script:!0,output:!0,option:!0,object:!0,legend:!0,keygen:!0,iframe:!0,hgroup:!0,header:!0,footer:!0,figure:!0,center:!0,canvas:!0,button:!0,applet:!0,video:!0,track:!0,title:!0,thead:!0,tfoot:!0,tbody:!0,table:!0,style:!0,small:!0,param:!0,meter:!0,label:!0,input:!0,frame:!0,embed:!0,blink:!0,audio:!0,aside:!0,time:!0,span:!0,samp:!0,ruby:!0,nobr:!0,meta:!0,menu:!0,mark:!0,main:!0,link:!0,html:!0,head:!0,form:!0,font:!0,data:!0,code:!0,cite:!0,body:!0,base:!0,area:!0,abbr:!0,xmp:!0,wbr:!0,"var":!0,sup:!0,sub:!0,pre:!0,nav:!0,map:!0,kbd:!0,ins:!0,img:!0,div:!0,dir:!0,dfn:!0,del:!0,col:!0,big:!0,bdo:!0,bdi:!0,ul:!0,tt:!0,tr:!0,th:!0,td:!0,rt:!0,rp:!0,ol:!0,li:!0,hr:!0,h6:!0,h5:!0,h4:!0,h3:!0,h2:!0,h1:!0,em:!0,dt:!0,dl:!0,dd:!0,br:!0,u:!0,s:!0,q:!0,p:!0,i:!0,b:!0,a:!0},zs={touchStart:!0,touchMove:!0,touchEnd:!0,touchCancel:!0,keyDown:!0,keyUp:!0,keyPress:!0,mouseDown:!0,mouseUp:!0,contextMenu:!0,click:!0,doubleClick:!0,mouseMove:!0,focusIn:!0,focusOut:!0,mouseEnter:!0,mouseLeave:!0,submit:!0,input:!0,change:!0,dragStart:!0,drag:!0,dragEnter:!0,dragLeave:!0,dragOver:!0,drop:!0,dragEnd:!0};Pr=s();if(Pr!==null&&kr===e.length)return Pr;throw Rr(_r),Lr=Math.max(kr,Mr),new t(_r,Lr<e.length?e.charAt(Lr):null,Lr,Ir(Lr).line,Ir(Lr).column)}return e(t,Error),{SyntaxError:t,parse:r}}();var n;n.throwCompileError=function(e,t){throw new Error("Emblem syntax error, line "+e+": "+t)},n.registerPartial=function(e,t,r){return r||(r=t,t=e,e=Handlebars),e.registerPartial(t,n.compile(e,r))},n.parse=function(e){var t,r,i,s;try{return s=n.Preprocessor.processSync(e),n.Parser.parse(s)}catch(o){if(o instanceof n.Parser.SyntaxError)return r=e.split("\n"),t=r[o.line-1],i=""+o.message+"\n"+t+"\n",i+=(new Array(o.column)).join("-"),i+="^",n.throwCompileError(o.line,i);throw o}},n.precompile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.precompile(i,r)},n.compile=function(e,t,r){var i;return r==null&&(r={}),n.handlebarsVariant=e,i=n.parse(t),e.compile(i,r)};var n,r,t;n.Preprocessor=r=function(){function l(){this.base=null,this.indents=[],this.context=[],this.context.peek=function(){return this.length?this[this.length-1]:null},this.context.err=function(e){throw new Error("Unexpected "+e)},this.output="",this.context.observe=function(t){var n;n=this.peek();switch(t){case r:this.push(t);break;case e:n!==r&&this.err(t),this.pop();break;case"\n":n!=="/"&&this.err(t),this.pop();break;case"/":this.push(t);break;case"end-\\":n!=="\\"&&this.err(t),this.pop();break;default:throw new Error("undefined token observed: "+t)}return this},this.StringScanner?this.ss=new this.StringScanner(""):n.StringScanner?this.ss=new n.StringScanner(""):this.ss=new t("")}var e,r,i,s,o,u,a,f;return f="\\t\\x0B\\f \\xA0\\u1680\\u180E\\u2000-\\u200A\\u202F\\u205F\\u3000\\uFEFF",r="",e="",s="",i="",o=RegExp("["+f+"\\n]*$"),u=RegExp("(?:["+f+"]*\\n)+"),l.prototype.p=function(e){return e&&(this.output+=e),e},l.prototype.scan=function(e){return this.p(this.ss.scan(e))},l.prototype.discard=function(e){return this.ss.scan(e)},a=function(t){return function(n){var a,l,c,h;t||(this.ss.concat(n),this.discard(u));while(!this.ss.eos())switch(this.context.peek()){case null:case r:if(this.ss.bol()||this.discard(u)){if(this.discard(RegExp("["+f+"]*\\n"))){this.p(""+i+"\n");continue}if(this.base!=null){if(this.discard(this.base)==null)throw new Error("inconsistent base indentation")}else a=this.discard(RegExp("["+f+"]*")),this.base=RegExp(""+a);if(this.indents.length===0)this.ss.check(RegExp("["+f+"]+"))&&(this.p(r),this.context.observe(r),this.indents.push(this.scan(RegExp("(["+f+"]+)"))));else{c=this.indents[this.indents.length-1];if(l=this.ss.check(RegExp("("+c+")")))this.discard(l),this.ss.check(RegExp("(["+f+"]+)"))&&(this.p(r),this.context.observe(r),this.indents.push(l+this.scan(RegExp("(["+f+"]+)"))));else{while(this.indents.length){c=this.indents[this.indents.length-1];if(this.discard(RegExp("(?:"+c+")")))break;this.context.observe(e),this.p(e),this.indents.pop()}if(h=this.discard(RegExp("["+f+"]+")))this.output=this.output.slice(0,-1),this.output+=s,this.p(r),this.context.observe(r),this.indents.push(h)}}}this.scan(/[^\n\\]+/),this.discard(/\n/)&&this.p(""+i+"\n")}if(t){this.scan(o);while(this.context.length&&r===this.context.peek())this.context.observe(e),this.p(e);if(this.context.length)throw new Error("Unclosed "+this.context.peek()+" at EOF")}}},l.prototype.processData=a(!1),l.prototype.processEnd=a(!0),l.processSync=function(e){var t;return e+="\n",t=new l,t.processData(e),t.processEnd(),t.output},l}();var i,n,s;n.compileScriptTags=function(){if(typeof Ember=="undefined"||Ember===null)throw new Error("Can't run Emblem.enableEmber before Ember has been defined");if(typeof document!="undefined"&&document!==null)return Ember.$('script[type="text/x-emblem"], script[type="text/x-raw-emblem"]',Ember.$(document)).each(function(){var e,t,r;return t=Ember.$(this),e=t.attr("type")==="text/x-raw-handlebars"?Handlebars:Ember.Handlebars,r=t.attr("data-template-name")||t.attr("id")||"application",Ember.TEMPLATES[r]=n.compile(e,t.html()),t.remove()})},this.ENV||(this.ENV={}),i=this.ENV,i.EMBER_LOAD_HOOKS||(i.EMBER_LOAD_HOOKS={}),(s=i.EMBER_LOAD_HOOKS).application||(s.application=[]),i.EMBER_LOAD_HOOKS.application.push(function(){return n.compileScriptTags()}),e.Emblem=n})(this);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emblem-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Emblem.js source code wrapper for (pre)compilation gems.
|
15
15
|
email:
|