forked from schmittjoh/twig.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwig.dev.js
More file actions
682 lines (682 loc) · 38.2 KB
/
twig.dev.js
File metadata and controls
682 lines (682 loc) · 38.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
/**
* twig.js
* https://github.com/schmittjoh/twig.js
*
* (C) 2011 Johannes M. Schmitt <schmittjoh@gmail.com>
* Licensed under the Apache 2.0 License.
*
* Portions of this code are from the Google Closure Library received
* from the Closure Authors under the Apache 2.0 License.
*/
(function() {var $JSCompiler_prototypeAlias$$, $goog$global$$ = this;
function $goog$exportPath_$$($name$$55_parts$$, $opt_object$$, $cur_opt_objectToExportTo$$) {
$name$$55_parts$$ = $name$$55_parts$$.split(".");
$cur_opt_objectToExportTo$$ = $cur_opt_objectToExportTo$$ || $goog$global$$;
$name$$55_parts$$[0] in $cur_opt_objectToExportTo$$ || !$cur_opt_objectToExportTo$$.execScript || $cur_opt_objectToExportTo$$.execScript("var " + $name$$55_parts$$[0]);
for(var $part$$;$name$$55_parts$$.length && ($part$$ = $name$$55_parts$$.shift());) {
$name$$55_parts$$.length || void 0 === $opt_object$$ ? $cur_opt_objectToExportTo$$ = $cur_opt_objectToExportTo$$[$part$$] ? $cur_opt_objectToExportTo$$[$part$$] : $cur_opt_objectToExportTo$$[$part$$] = {} : $cur_opt_objectToExportTo$$[$part$$] = $opt_object$$
}
}
function $goog$typeOf$$($value$$39$$) {
var $s$$2$$ = typeof $value$$39$$;
if("object" == $s$$2$$) {
if($value$$39$$) {
if($value$$39$$ instanceof Array) {
return"array"
}
if($value$$39$$ instanceof Object) {
return $s$$2$$
}
var $className$$1$$ = Object.prototype.toString.call($value$$39$$);
if("[object Window]" == $className$$1$$) {
return"object"
}
if("[object Array]" == $className$$1$$ || "number" == typeof $value$$39$$.length && "undefined" != typeof $value$$39$$.splice && "undefined" != typeof $value$$39$$.propertyIsEnumerable && !$value$$39$$.propertyIsEnumerable("splice")) {
return"array"
}
if("[object Function]" == $className$$1$$ || "undefined" != typeof $value$$39$$.call && "undefined" != typeof $value$$39$$.propertyIsEnumerable && !$value$$39$$.propertyIsEnumerable("call")) {
return"function"
}
}else {
return"null"
}
}else {
if("function" == $s$$2$$ && "undefined" == typeof $value$$39$$.call) {
return"object"
}
}
return $s$$2$$
}
function $goog$isArray$$($val$$3$$) {
return"array" == $goog$typeOf$$($val$$3$$)
}
function $goog$isString$$($val$$6$$) {
return"string" == typeof $val$$6$$
}
function $goog$isObject$$($val$$10$$) {
var $type$$52$$ = typeof $val$$10$$;
return"object" == $type$$52$$ && null != $val$$10$$ || "function" == $type$$52$$
}
var $goog$UID_PROPERTY_$$ = "closure_uid_" + (1E9 * Math.random() >>> 0), $goog$uidCounter_$$ = 0;
function $goog$bindNative_$$($fn$$, $selfObj$$1$$, $var_args$$26$$) {
return $fn$$.call.apply($fn$$.bind, arguments)
}
function $goog$bindJs_$$($fn$$1$$, $selfObj$$2$$, $var_args$$27$$) {
if(!$fn$$1$$) {
throw Error();
}
if(2 < arguments.length) {
var $boundArgs$$ = Array.prototype.slice.call(arguments, 2);
return function() {
var $newArgs$$ = Array.prototype.slice.call(arguments);
Array.prototype.unshift.apply($newArgs$$, $boundArgs$$);
return $fn$$1$$.apply($selfObj$$2$$, $newArgs$$)
}
}
return function() {
return $fn$$1$$.apply($selfObj$$2$$, arguments)
}
}
function $goog$bind$$($fn$$2$$, $selfObj$$3$$, $var_args$$28$$) {
$goog$bind$$ = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? $goog$bindNative_$$ : $goog$bindJs_$$;
return $goog$bind$$.apply(null, arguments)
}
function $goog$exportSymbol$$($publicPath$$, $object$$) {
$goog$exportPath_$$($publicPath$$, $object$$, void 0)
}
function $goog$inherits$$($childCtor$$, $parentCtor$$) {
function $tempCtor$$() {
}
$tempCtor$$.prototype = $parentCtor$$.prototype;
$childCtor$$.$superClass_$ = $parentCtor$$.prototype;
$childCtor$$.prototype = new $tempCtor$$
}
;function $goog$string$subs$$($str$$12$$, $var_args$$31$$) {
for(var $splitParts$$ = $str$$12$$.split("%s"), $returnString$$ = "", $subsArguments$$ = Array.prototype.slice.call(arguments, 1);$subsArguments$$.length && 1 < $splitParts$$.length;) {
$returnString$$ += $splitParts$$.shift() + $subsArguments$$.shift()
}
return $returnString$$ + $splitParts$$.join("%s")
}
var $goog$string$amperRe_$$ = /&/g, $goog$string$ltRe_$$ = /</g, $goog$string$gtRe_$$ = />/g, $goog$string$quotRe_$$ = /\"/g, $goog$string$allRe_$$ = /[&<>\"]/, $goog$string$specialEscapeChars_$$ = {"\x00":"\\0", "\b":"\\b", "\f":"\\f", "\n":"\\n", "\r":"\\r", "\t":"\\t", "\x0B":"\\x0B", '"':'\\"', "\\":"\\\\"}, $goog$string$jsEscapeCache_$$ = {"'":"\\'"};
function $goog$string$StringBuffer$$($opt_a1$$, $var_args$$33$$) {
null != $opt_a1$$ && this.append.apply(this, arguments)
}
$goog$string$StringBuffer$$.prototype.$buffer_$ = "";
$goog$string$StringBuffer$$.prototype.append = function $$goog$string$StringBuffer$$$$append$($a1$$, $opt_a2$$, $var_args$$34$$) {
this.$buffer_$ += $a1$$;
if(null != $opt_a2$$) {
for(var $i$$11$$ = 1;$i$$11$$ < arguments.length;$i$$11$$++) {
this.$buffer_$ += arguments[$i$$11$$]
}
}
return this
};
$goog$string$StringBuffer$$.prototype.toString = function $$goog$string$StringBuffer$$$$toString$() {
return this.$buffer_$
};
function $goog$object$forEach$$($obj$$24$$, $f$$, $opt_obj$$1$$) {
for(var $key$$16$$ in $obj$$24$$) {
$f$$.call($opt_obj$$1$$, $obj$$24$$[$key$$16$$], $key$$16$$, $obj$$24$$)
}
}
function $goog$object$getValues$$($obj$$33$$) {
var $res$$2$$ = [], $i$$12$$ = 0, $key$$24$$;
for($key$$24$$ in $obj$$33$$) {
$res$$2$$[$i$$12$$++] = $obj$$33$$[$key$$24$$]
}
return $res$$2$$
}
function $goog$object$getKeys$$($obj$$34$$) {
var $res$$3$$ = [], $i$$13$$ = 0, $key$$25$$;
for($key$$25$$ in $obj$$34$$) {
$res$$3$$[$i$$13$$++] = $key$$25$$
}
return $res$$3$$
}
function $goog$object$findKey$$($obj$$38$$, $f$$5$$) {
for(var $key$$28$$ in $obj$$38$$) {
if($f$$5$$.call(void 0, $obj$$38$$[$key$$28$$], $key$$28$$, $obj$$38$$)) {
return $key$$28$$
}
}
}
function $goog$object$clone$$($obj$$47$$) {
var $res$$4$$ = {}, $key$$36$$;
for($key$$36$$ in $obj$$47$$) {
$res$$4$$[$key$$36$$] = $obj$$47$$[$key$$36$$]
}
return $res$$4$$
}
var $goog$object$PROTOTYPE_FIELDS_$$ = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function $goog$object$extend$$($target$$40$$, $var_args$$36$$) {
for(var $key$$39$$, $source$$2$$, $i$$16$$ = 1;$i$$16$$ < arguments.length;$i$$16$$++) {
$source$$2$$ = arguments[$i$$16$$];
for($key$$39$$ in $source$$2$$) {
$target$$40$$[$key$$39$$] = $source$$2$$[$key$$39$$]
}
for(var $j$$1$$ = 0;$j$$1$$ < $goog$object$PROTOTYPE_FIELDS_$$.length;$j$$1$$++) {
$key$$39$$ = $goog$object$PROTOTYPE_FIELDS_$$[$j$$1$$], Object.prototype.hasOwnProperty.call($source$$2$$, $key$$39$$) && ($target$$40$$[$key$$39$$] = $source$$2$$[$key$$39$$])
}
}
}
;function $goog$debug$Error$$($opt_msg$$) {
Error.captureStackTrace ? Error.captureStackTrace(this, $goog$debug$Error$$) : this.stack = Error().stack || "";
$opt_msg$$ && (this.message = String($opt_msg$$))
}
$goog$inherits$$($goog$debug$Error$$, Error);
function $goog$asserts$AssertionError$$($messagePattern$$, $messageArgs$$) {
$messageArgs$$.unshift($messagePattern$$);
$goog$debug$Error$$.call(this, $goog$string$subs$$.apply(null, $messageArgs$$));
$messageArgs$$.shift();
this.$messagePattern$ = $messagePattern$$
}
$goog$inherits$$($goog$asserts$AssertionError$$, $goog$debug$Error$$);
function $goog$asserts$assert$$($condition$$1$$, $opt_message$$8$$, $var_args$$39$$) {
if(!$condition$$1$$) {
var $givenArgs$$inline_6$$ = Array.prototype.slice.call(arguments, 2), $message$$inline_9$$ = "Assertion failed";
if($opt_message$$8$$) {
var $message$$inline_9$$ = $message$$inline_9$$ + (": " + $opt_message$$8$$), $args$$inline_10$$ = $givenArgs$$inline_6$$
}
throw new $goog$asserts$AssertionError$$("" + $message$$inline_9$$, $args$$inline_10$$ || []);
}
}
;var $goog$array$ARRAY_PROTOTYPE_$$ = Array.prototype, $goog$array$indexOf$$ = $goog$array$ARRAY_PROTOTYPE_$$.indexOf ? function($arr$$10$$, $obj$$52$$, $opt_fromIndex$$6$$) {
$goog$asserts$assert$$(null != $arr$$10$$.length);
return $goog$array$ARRAY_PROTOTYPE_$$.indexOf.call($arr$$10$$, $obj$$52$$, $opt_fromIndex$$6$$)
} : function($arr$$11$$, $obj$$53$$, $fromIndex_i$$19_opt_fromIndex$$7$$) {
$fromIndex_i$$19_opt_fromIndex$$7$$ = null == $fromIndex_i$$19_opt_fromIndex$$7$$ ? 0 : 0 > $fromIndex_i$$19_opt_fromIndex$$7$$ ? Math.max(0, $arr$$11$$.length + $fromIndex_i$$19_opt_fromIndex$$7$$) : $fromIndex_i$$19_opt_fromIndex$$7$$;
if($goog$isString$$($arr$$11$$)) {
return $goog$isString$$($obj$$53$$) && 1 == $obj$$53$$.length ? $arr$$11$$.indexOf($obj$$53$$, $fromIndex_i$$19_opt_fromIndex$$7$$) : -1
}
for(;$fromIndex_i$$19_opt_fromIndex$$7$$ < $arr$$11$$.length;$fromIndex_i$$19_opt_fromIndex$$7$$++) {
if($fromIndex_i$$19_opt_fromIndex$$7$$ in $arr$$11$$ && $arr$$11$$[$fromIndex_i$$19_opt_fromIndex$$7$$] === $obj$$53$$) {
return $fromIndex_i$$19_opt_fromIndex$$7$$
}
}
return-1
}, $goog$array$forEach$$ = $goog$array$ARRAY_PROTOTYPE_$$.forEach ? function($arr$$14$$, $f$$7$$, $opt_obj$$6$$) {
$goog$asserts$assert$$(null != $arr$$14$$.length);
$goog$array$ARRAY_PROTOTYPE_$$.forEach.call($arr$$14$$, $f$$7$$, $opt_obj$$6$$)
} : function($arr$$15$$, $f$$8$$, $opt_obj$$7$$) {
for(var $l$$2$$ = $arr$$15$$.length, $arr2$$ = $goog$isString$$($arr$$15$$) ? $arr$$15$$.split("") : $arr$$15$$, $i$$21$$ = 0;$i$$21$$ < $l$$2$$;$i$$21$$++) {
$i$$21$$ in $arr2$$ && $f$$8$$.call($opt_obj$$7$$, $arr2$$[$i$$21$$], $i$$21$$, $arr$$15$$)
}
};
function $goog$array$removeDuplicates$$($arr$$45$$) {
for(var $seen$$1$$ = {}, $cursorInsert$$ = 0, $cursorRead$$ = 0;$cursorRead$$ < $arr$$45$$.length;) {
var $current$$ = $arr$$45$$[$cursorRead$$++], $key$$41$$ = $goog$isObject$$($current$$) ? "o" + ($current$$[$goog$UID_PROPERTY_$$] || ($current$$[$goog$UID_PROPERTY_$$] = ++$goog$uidCounter_$$)) : (typeof $current$$).charAt(0) + $current$$;
Object.prototype.hasOwnProperty.call($seen$$1$$, $key$$41$$) || ($seen$$1$$[$key$$41$$] = !0, $arr$$45$$[$cursorInsert$$++] = $current$$)
}
$arr$$45$$.length = $cursorInsert$$
}
;var $twig$bind$$ = $goog$bind$$, $goog$UID_PROPERTY_$$ = "twig_ui_" + Math.floor(2147483648 * Math.random()).toString(36);
function $twig$empty$$($value$$57$$) {
return null === $value$$57$$ || !1 === $value$$57$$ || void 0 === $value$$57$$ || 0 === $value$$57$$ ? !0 : $twig$countable$$($value$$57$$) ? 0 === $twig$count$$($value$$57$$) : !1
}
function $twig$extend$$($target$$42$$, $var_args$$53$$) {
$goog$object$extend$$.apply(null, Array.prototype.slice.call(arguments, 0));
return $target$$42$$
}
function $twig$countable$$($v$$1$$) {
return $goog$isArray$$($v$$1$$) || $goog$isString$$($v$$1$$) || $goog$isObject$$($v$$1$$)
}
function $twig$count$$($JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$) {
if($goog$isArray$$($JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$)) {
$JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$ = $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$.length
}else {
if($goog$isString$$($JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$)) {
$JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$ = $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$.length
}else {
if($goog$isObject$$($JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$)) {
var $rv$$inline_13$$ = 0, $key$$inline_14$$;
for($key$$inline_14$$ in $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$) {
$rv$$inline_13$$++
}
$JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$ = $rv$$inline_13$$
}else {
$JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$ = ("number" === typeof $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$ ? $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$.toString() : "").length
}
}
}
return $JSCompiler_temp$$1_JSCompiler_temp$$2_JSCompiler_temp$$3_v$$2$$
}
function $twig$forEach$$($v$$3$$, $func$$3$$, $opt_this$$2$$) {
$goog$isArray$$($v$$3$$) ? $goog$array$forEach$$($v$$3$$, $func$$3$$, $opt_this$$2$$) : $goog$object$forEach$$($v$$3$$, $func$$3$$, $opt_this$$2$$)
}
function $twig$pregQuote$$($string$$2$$) {
return $string$$2$$.replace(/[\.\\+*?\[\]<>(){}^$=!|:-]/g, "\\$\x26")
}
;function $twig$Template$$($env$$) {
this.env_ = $env$$;
this.$blocks_$ = [];
this.$traits_$ = {}
}
$JSCompiler_prototypeAlias$$ = $twig$Template$$.prototype;
$JSCompiler_prototypeAlias$$.$getBlocks$ = function $$JSCompiler_prototypeAlias$$$$getBlocks$$() {
return this.$blocks_$
};
$JSCompiler_prototypeAlias$$.$setBlocks$ = function $$JSCompiler_prototypeAlias$$$$setBlocks$$($blocks$$) {
this.$blocks_$ = $blocks$$
};
$JSCompiler_prototypeAlias$$.$setTraits$ = function $$JSCompiler_prototypeAlias$$$$setTraits$$($traits$$) {
this.$traits_$ = $traits$$
};
$JSCompiler_prototypeAlias$$.getParent = function $$JSCompiler_prototypeAlias$$$getParent$($context_parent$$2$$) {
$context_parent$$2$$ = this.getParent_($context_parent$$2$$);
return!1 === $context_parent$$2$$ ? !1 : this.env_.$createTemplate$($context_parent$$2$$)
};
$JSCompiler_prototypeAlias$$.$renderParentBlock$ = function $$JSCompiler_prototypeAlias$$$$renderParentBlock$$($name$$61$$, $context$$1$$, $opt_blocks$$) {
if($name$$61$$ in this.$traits_$) {
var $parent$$3_sb$$2$$ = new $goog$string$StringBuffer$$;
this.$traits_$[$name$$61$$]($parent$$3_sb$$2$$, $context$$1$$, $opt_blocks$$ || {});
return $parent$$3_sb$$2$$.toString()
}
$parent$$3_sb$$2$$ = this.getParent($context$$1$$);
if(!1 !== $parent$$3_sb$$2$$) {
return $parent$$3_sb$$2$$.$renderBlock$($name$$61$$, $context$$1$$, $opt_blocks$$)
}
throw Error("The template '" + this.$getTemplateName$() + "' has no parent, and no trait defining the block '" + $name$$61$$ + "'.");
};
$JSCompiler_prototypeAlias$$.$renderBlock$ = function $$JSCompiler_prototypeAlias$$$$renderBlock$$($name$$62$$, $context$$2$$, $opt_blocks$$1$$) {
if($opt_blocks$$1$$ && $name$$62$$ in $opt_blocks$$1$$) {
var $parent$$4_sb$$3$$ = new $goog$string$StringBuffer$$, $block$$ = $opt_blocks$$1$$[$name$$62$$];
delete $opt_blocks$$1$$[$name$$62$$];
$block$$($parent$$4_sb$$3$$, $context$$2$$, $opt_blocks$$1$$);
return $parent$$4_sb$$3$$.toString()
}
if($name$$62$$ in this.$blocks_$) {
return $parent$$4_sb$$3$$ = new $goog$string$StringBuffer$$, this.$blocks_$[$name$$62$$]($parent$$4_sb$$3$$, $context$$2$$, $opt_blocks$$1$$ || null), $parent$$4_sb$$3$$.toString()
}
$parent$$4_sb$$3$$ = this.getParent($context$$2$$);
return!1 !== $parent$$4_sb$$3$$ ? $parent$$4_sb$$3$$.$renderBlock$($name$$62$$, $context$$2$$, $opt_blocks$$1$$) : ""
};
$JSCompiler_prototypeAlias$$.$render$ = function $$JSCompiler_prototypeAlias$$$$render$$($opt_context$$5$$, $opt_blocks$$2$$) {
var $sb$$4$$ = new $goog$string$StringBuffer$$;
this.render_($sb$$4$$, $opt_context$$5$$ || {}, $opt_blocks$$2$$ || {});
return $sb$$4$$.toString()
};
$JSCompiler_prototypeAlias$$.$callMacro$ = function $$JSCompiler_prototypeAlias$$$$callMacro$$($template$$, $macro$$1$$, $args$$3$$, $opt_namedNames$$) {
if(!$template$$["macro_" + $macro$$1$$]) {
throw Error("The macro " + $macro$$1$$ + " is not defined in " + $template$$.$getTemplateName$() + ".");
}
if(void 0 === $opt_namedNames$$) {
return $template$$["macro_" + $macro$$1$$].apply($template$$, $args$$3$$)
}
throw Error("Positional arguments, or default values in macro arguments are not supported, yet.");
};
function $twig$Markup$$($content$$) {
this.$content_$ = $content$$
}
$twig$Markup$$.prototype.toString = function $$twig$Markup$$$$toString$() {
return this.$content_$
};
function $twig$filter$escape$$($env$$2_s$$inline_16_str$$inline_147$$, $sb$$inline_17_value$$60$$, $i$$inline_18_opt_type$$6$$, $JSCompiler_temp_const$$140_opt_charset$$, $JSCompiler_temp_const$$139_opt_autoescape$$) {
if($JSCompiler_temp_const$$139_opt_autoescape$$ && $sb$$inline_17_value$$60$$ instanceof $twig$Markup$$) {
return $sb$$inline_17_value$$60$$.toString()
}
$sb$$inline_17_value$$60$$ = null == $sb$$inline_17_value$$60$$ ? "" : String($sb$$inline_17_value$$60$$);
if($twig$filter$escape$Type$JAVASCRIPT$$ === $i$$inline_18_opt_type$$6$$) {
$env$$2_s$$inline_16_str$$inline_147$$ = String($sb$$inline_17_value$$60$$);
if($env$$2_s$$inline_16_str$$inline_147$$.quote) {
$sb$$inline_17_value$$60$$ = $env$$2_s$$inline_16_str$$inline_147$$.quote()
}else {
$sb$$inline_17_value$$60$$ = ['"'];
for($i$$inline_18_opt_type$$6$$ = 0;$i$$inline_18_opt_type$$6$$ < $env$$2_s$$inline_16_str$$inline_147$$.length;$i$$inline_18_opt_type$$6$$++) {
var $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ = $env$$2_s$$inline_16_str$$inline_147$$.charAt($i$$inline_18_opt_type$$6$$), $cc$$inline_20_rv$$inline_144$$ = $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$.charCodeAt(0);
$JSCompiler_temp_const$$140_opt_charset$$ = $sb$$inline_17_value$$60$$;
$JSCompiler_temp_const$$139_opt_autoescape$$ = $i$$inline_18_opt_type$$6$$ + 1;
var $JSCompiler_temp$$141_cc$$inline_145$$;
if(!($JSCompiler_temp$$141_cc$$inline_145$$ = $goog$string$specialEscapeChars_$$[$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$])) {
if(!(31 < $cc$$inline_20_rv$$inline_144$$ && 127 > $cc$$inline_20_rv$$inline_144$$)) {
if($JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ in $goog$string$jsEscapeCache_$$) {
$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ = $goog$string$jsEscapeCache_$$[$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$]
}else {
if($JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ in $goog$string$specialEscapeChars_$$) {
$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ = $goog$string$jsEscapeCache_$$[$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$] = $goog$string$specialEscapeChars_$$[$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$]
}else {
$cc$$inline_20_rv$$inline_144$$ = $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$;
$JSCompiler_temp$$141_cc$$inline_145$$ = $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$.charCodeAt(0);
if(31 < $JSCompiler_temp$$141_cc$$inline_145$$ && 127 > $JSCompiler_temp$$141_cc$$inline_145$$) {
$cc$$inline_20_rv$$inline_144$$ = $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$
}else {
if(256 > $JSCompiler_temp$$141_cc$$inline_145$$) {
if($cc$$inline_20_rv$$inline_144$$ = "\\x", 16 > $JSCompiler_temp$$141_cc$$inline_145$$ || 256 < $JSCompiler_temp$$141_cc$$inline_145$$) {
$cc$$inline_20_rv$$inline_144$$ += "0"
}
}else {
$cc$$inline_20_rv$$inline_144$$ = "\\u", 4096 > $JSCompiler_temp$$141_cc$$inline_145$$ && ($cc$$inline_20_rv$$inline_144$$ += "0")
}
$cc$$inline_20_rv$$inline_144$$ += $JSCompiler_temp$$141_cc$$inline_145$$.toString(16).toUpperCase()
}
$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$ = $goog$string$jsEscapeCache_$$[$JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$] = $cc$$inline_20_rv$$inline_144$$
}
}
}
$JSCompiler_temp$$141_cc$$inline_145$$ = $JSCompiler_temp$$142_c$$inline_143_ch$$inline_19$$
}
$JSCompiler_temp_const$$140_opt_charset$$[$JSCompiler_temp_const$$139_opt_autoescape$$] = $JSCompiler_temp$$141_cc$$inline_145$$
}
$sb$$inline_17_value$$60$$.push('"');
$sb$$inline_17_value$$60$$ = $sb$$inline_17_value$$60$$.join("")
}
return $sb$$inline_17_value$$60$$.substring(1, $sb$$inline_17_value$$60$$.length - 1)
}
if(!$i$$inline_18_opt_type$$6$$ || $twig$filter$escape$Type$HTML$$ === $i$$inline_18_opt_type$$6$$) {
return $env$$2_s$$inline_16_str$$inline_147$$ = $sb$$inline_17_value$$60$$, $goog$string$allRe_$$.test($env$$2_s$$inline_16_str$$inline_147$$) && (-1 != $env$$2_s$$inline_16_str$$inline_147$$.indexOf("\x26") && ($env$$2_s$$inline_16_str$$inline_147$$ = $env$$2_s$$inline_16_str$$inline_147$$.replace($goog$string$amperRe_$$, "\x26amp;")), -1 != $env$$2_s$$inline_16_str$$inline_147$$.indexOf("\x3c") && ($env$$2_s$$inline_16_str$$inline_147$$ = $env$$2_s$$inline_16_str$$inline_147$$.replace($goog$string$ltRe_$$,
"\x26lt;")), -1 != $env$$2_s$$inline_16_str$$inline_147$$.indexOf("\x3e") && ($env$$2_s$$inline_16_str$$inline_147$$ = $env$$2_s$$inline_16_str$$inline_147$$.replace($goog$string$gtRe_$$, "\x26gt;")), -1 != $env$$2_s$$inline_16_str$$inline_147$$.indexOf('"') && ($env$$2_s$$inline_16_str$$inline_147$$ = $env$$2_s$$inline_16_str$$inline_147$$.replace($goog$string$quotRe_$$, "\x26quot;"))), $env$$2_s$$inline_16_str$$inline_147$$
}
if($twig$filter$escape$Type$URL$$ === $i$$inline_18_opt_type$$6$$) {
return encodeURIComponent($sb$$inline_17_value$$60$$)
}
throw Error("The type '" + $i$$inline_18_opt_type$$6$$ + "' is not supported.");
}
var $twig$filter$escape$Type$HTML$$ = "html", $twig$filter$escape$Type$JAVASCRIPT$$ = "js", $twig$filter$escape$Type$URL$$ = "url";
function $twig$Environment$$() {
this.$extensions_$ = {};
this.$filters_$ = {};
this.$functions_$ = {};
this.$tests_$ = {};
this.$createdTemplates_$ = {};
this.$globals_$ = {};
this.$runtimeInitialized$ = !1;
this.$charset_$ = "UTF-8"
}
$JSCompiler_prototypeAlias$$ = $twig$Environment$$.prototype;
$JSCompiler_prototypeAlias$$.$render$ = function $$JSCompiler_prototypeAlias$$$$render$$($ctor$$2$$, $opt_context$$6$$) {
var $template$$1$$ = this.$createTemplate$($ctor$$2$$);
return $template$$1$$.$render$.call($template$$1$$, $twig$extend$$({}, this.$globals_$, $opt_context$$6$$ || {}))
};
$JSCompiler_prototypeAlias$$.filter = function $$JSCompiler_prototypeAlias$$$filter$($name$$63$$, $arg1$$, $var_args$$55$$) {
if(!($name$$63$$ in this.$filters_$)) {
throw Error("The filter '" + $name$$63$$ + "' does not exist.");
}
return this.$filters_$[$name$$63$$].apply(null, Array.prototype.slice.call(arguments, 1))
};
$JSCompiler_prototypeAlias$$.$invoke$ = function $$JSCompiler_prototypeAlias$$$$invoke$$($name$$64$$, $arg1$$1$$, $var_args$$56$$) {
if(!($name$$64$$ in this.$functions_$)) {
throw Error("The function '" + $name$$64$$ + "' does not exist.");
}
return this.$functions_$[$name$$64$$].apply(null, Array.prototype.slice.call(arguments, 1))
};
$JSCompiler_prototypeAlias$$.test = function $$JSCompiler_prototypeAlias$$$test$($name$$65$$, $arg1$$2$$, $var_args$$57$$) {
if(!($name$$65$$ in this.$tests_$)) {
throw Error("The test '" + $name$$65$$ + "' does not exist.");
}
return this.$tests_$[$name$$65$$].apply(null, Array.prototype.slice.call(arguments, 1))
};
$JSCompiler_prototypeAlias$$.escape = function $$JSCompiler_prototypeAlias$$$escape$($value$$71$$, $opt_type$$7$$, $opt_charset$$1$$, $opt_autoescape$$1$$) {
return $twig$filter$escape$$(0, $value$$71$$, $opt_type$$7$$, 0, $opt_autoescape$$1$$)
};
$JSCompiler_prototypeAlias$$.$macro$ = function $$JSCompiler_prototypeAlias$$$$macro$$($templateCtor$$, $macroName$$, $var_args$$58$$) {
var $template$$2$$ = this.$createTemplate$($templateCtor$$), $macro$$2$$ = $template$$2$$["macro_" + $macroName$$];
if(!$macro$$2$$) {
throw Error("The macro '" + $macroName$$ + "' does not exist on template '" + $template$$2$$.$getTemplateName$() + "'.");
}
return $macro$$2$$.apply($template$$2$$, Array.prototype.slice.call(arguments, 2)).toString()
};
$JSCompiler_prototypeAlias$$.$setFilter$ = function $$JSCompiler_prototypeAlias$$$$setFilter$$($name$$66$$, $filter$$) {
this.$filters_$[$name$$66$$] = $filter$$
};
$JSCompiler_prototypeAlias$$.$setFunction$ = function $$JSCompiler_prototypeAlias$$$$setFunction$$($name$$67$$, $func$$4$$) {
this.$functions_$[$name$$67$$] = $func$$4$$
};
$JSCompiler_prototypeAlias$$.$setTest$ = function $$JSCompiler_prototypeAlias$$$$setTest$$($name$$68$$, $func$$5$$) {
this.$tests_$[$name$$68$$] = $func$$5$$
};
$JSCompiler_prototypeAlias$$.$setGlobals$ = function $$JSCompiler_prototypeAlias$$$$setGlobals$$($globals$$) {
this.$globals_$ = $globals$$
};
$JSCompiler_prototypeAlias$$.$setGlobal$ = function $$JSCompiler_prototypeAlias$$$$setGlobal$$($key$$45$$, $value$$72$$) {
this.$globals_$[$key$$45$$] = $value$$72$$
};
$JSCompiler_prototypeAlias$$.$getGlobals$ = function $$JSCompiler_prototypeAlias$$$$getGlobals$$() {
return this.$globals_$
};
$JSCompiler_prototypeAlias$$.$initRuntime$ = function $$JSCompiler_prototypeAlias$$$$initRuntime$$() {
this.$runtimeInitialized$ = !0;
$goog$object$forEach$$(this.$extensions_$, function($extension$$) {
$extension$$.$initRuntime$()
}, this)
};
$JSCompiler_prototypeAlias$$.$hasExtension$ = function $$JSCompiler_prototypeAlias$$$$hasExtension$$($name$$69$$) {
return $name$$69$$ in this.$extensions_$
};
$JSCompiler_prototypeAlias$$.getExtension = function $$JSCompiler_prototypeAlias$$$getExtension$($name$$70$$) {
if(!($name$$70$$ in this.$extensions_$)) {
throw Error('The "' + $name$$70$$ + '" extension is not enabled.');
}
return this.$extensions_$[$name$$70$$]
};
$JSCompiler_prototypeAlias$$.$addExtension$ = function $$JSCompiler_prototypeAlias$$$$addExtension$$($extension$$1$$) {
this.$extensions_$[$extension$$1$$.getName()] = $extension$$1$$
};
$JSCompiler_prototypeAlias$$.$removeExtension$ = function $$JSCompiler_prototypeAlias$$$$removeExtension$$($name$$71$$) {
delete this.$extensions_$[$name$$71$$]
};
$JSCompiler_prototypeAlias$$.$setExtensions$ = function $$JSCompiler_prototypeAlias$$$$setExtensions$$($extensions$$) {
$goog$object$forEach$$($extensions$$, function($extension$$2$$) {
this.$addExtension$($extension$$2$$)
})
};
$JSCompiler_prototypeAlias$$.$getExtensions$ = function $$JSCompiler_prototypeAlias$$$$getExtensions$$() {
return this.$extensions_$
};
$JSCompiler_prototypeAlias$$.$createTemplate$ = function $$JSCompiler_prototypeAlias$$$$createTemplate$$($ctor$$3_template$$3$$) {
var $uid$$ = $ctor$$3_template$$3$$[$goog$UID_PROPERTY_$$] || ($ctor$$3_template$$3$$[$goog$UID_PROPERTY_$$] = ++$goog$uidCounter_$$);
if($uid$$ in this.$createdTemplates_$) {
return this.$createdTemplates_$[$uid$$]
}
!1 === this.$runtimeInitialized$ && this.$initRuntime$();
$ctor$$3_template$$3$$ = new $ctor$$3_template$$3$$(this);
return this.$createdTemplates_$[$uid$$] = $ctor$$3_template$$3$$
};
window.Twig = new $twig$Environment$$;
$goog$exportSymbol$$("goog.provide", function($name$$57$$) {
$goog$exportPath_$$($name$$57$$)
});
$goog$exportSymbol$$("goog.require", function() {
});
$goog$exportSymbol$$("twig.attr", function($obj$$61$$, $attr_functionName$$, $opt_args$$1$$, $accessType_opt_accessType$$, $isTest_opt_isTest$$) {
$accessType_opt_accessType$$ = $accessType_opt_accessType$$ || "any";
$isTest_opt_isTest$$ = void 0 !== $isTest_opt_isTest$$ ? $isTest_opt_isTest$$ : !1;
if(!$goog$isObject$$($obj$$61$$) && !$goog$isArray$$($obj$$61$$)) {
return $isTest_opt_isTest$$ ? !1 : null
}
if($attr_functionName$$ in $obj$$61$$) {
if("array" !== $accessType_opt_accessType$$ && "function" == $goog$typeOf$$($obj$$61$$[$attr_functionName$$])) {
return $isTest_opt_isTest$$ ? !0 : $obj$$61$$[$attr_functionName$$].apply($obj$$61$$, $opt_args$$1$$ || [])
}
if("method" !== $accessType_opt_accessType$$) {
return $isTest_opt_isTest$$ ? !0 : $obj$$61$$[$attr_functionName$$]
}
}
if("array" === $accessType_opt_accessType$$ || $goog$isArray$$($obj$$61$$)) {
return $isTest_opt_isTest$$ ? !1 : null
}
$attr_functionName$$ = $attr_functionName$$.toLowerCase();
var $getter$$ = "get" + $attr_functionName$$, $isser$$ = "is" + $attr_functionName$$, $macro$$ = "macro_" + $attr_functionName$$;
return($attr_functionName$$ = $goog$object$findKey$$($obj$$61$$, function($v$$, $k$$) {
$k$$ = $k$$.toLowerCase();
return $k$$ === $getter$$ || $k$$ === $isser$$ || $k$$ === $macro$$
})) && "function" == $goog$typeOf$$($obj$$61$$[$attr_functionName$$]) ? $isTest_opt_isTest$$ ? !0 : $obj$$61$$[$attr_functionName$$].apply($obj$$61$$, $opt_args$$1$$ || []) : $isTest_opt_isTest$$ ? !1 : null
});
$goog$exportSymbol$$("twig.bind", $twig$bind$$);
$goog$exportSymbol$$("twig.inherits", $goog$inherits$$);
$goog$exportSymbol$$("twig.extend", $twig$extend$$);
$goog$exportSymbol$$("twig.spaceless", function($s$$15$$) {
return $s$$15$$.replace(/>[\s\xa0]+</g, "\x3e\x3c").replace(/^[\s\xa0]+|[\s\xa0]+$/g, "")
});
$goog$exportSymbol$$("twig.range", function($start$$7$$, $end$$3$$) {
for(var $rs$$ = [];$start$$7$$ <= $end$$3$$;$start$$7$$ += 1) {
$rs$$.push($start$$7$$)
}
return $rs$$
});
$goog$exportSymbol$$("twig.contains", function($haystack$$, $needle$$) {
var $JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$;
if($goog$isArray$$($haystack$$)) {
$JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$ = 0 <= $goog$array$indexOf$$($haystack$$, $needle$$)
}else {
if($goog$isString$$($haystack$$)) {
$JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$ = -1 != $haystack$$.indexOf($needle$$) && ("" !== $needle$$ || "" === $haystack$$)
}else {
a: {
for($JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$ in $haystack$$) {
if($haystack$$[$JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$] == $needle$$) {
$JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$ = !0;
break a
}
}
$JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$ = !1
}
}
}
return $JSCompiler_temp$$137_JSCompiler_temp$$138_key$$inline_151$$
});
$goog$exportSymbol$$("twig.countable", $twig$countable$$);
$goog$exportSymbol$$("twig.count", $twig$count$$);
$goog$exportSymbol$$("twig.forEach", $twig$forEach$$);
$goog$exportSymbol$$("twig.empty", $twig$empty$$);
$goog$exportSymbol$$("twig.createObj", function($var_args$$54$$) {
for(var $rs$$1$$ = {}, $i$$48$$ = 0;$i$$48$$ < arguments.length;$i$$48$$ += 2) {
$rs$$1$$[arguments[$i$$48$$]] = arguments[$i$$48$$ + 1]
}
return $rs$$1$$
});
$goog$exportSymbol$$("twig.pregQuote", $twig$pregQuote$$);
$goog$exportSymbol$$("twig.filter.capitalize", function($env$$1$$, $str$$49$$) {
return $str$$49$$.charAt(0).toUpperCase() + $str$$49$$.substring(1)
});
$goog$exportSymbol$$("twig.filter.escape", $twig$filter$escape$$);
$goog$exportSymbol$$("twig.filter.first", function($env$$6$$, $value$$65$$) {
return $goog$isArray$$($value$$65$$) ? $value$$65$$[0] : $goog$isObject$$($value$$65$$) ? $value$$65$$[Object.keys($value$$65$$)[0]] : $goog$isString$$($value$$65$$) ? $value$$65$$.charAt(0) : ""
});
$goog$exportSymbol$$("twig.filter.length", function($env$$3$$, $value$$61$$) {
return $twig$count$$($value$$61$$)
});
$goog$exportSymbol$$("twig.filter.def", function($value$$59$$, $opt_default$$) {
return $twig$empty$$($value$$59$$) ? $opt_default$$ || "" : $value$$59$$
});
$goog$exportSymbol$$("twig.filter.replace", function($str$$48$$, $map$$) {
for(var $key$$44$$ in $map$$) {
var $escapedKey$$;
$escapedKey$$ = $twig$pregQuote$$($key$$44$$);
$str$$48$$ = $str$$48$$.replace(RegExp($escapedKey$$, "g"), $map$$[$key$$44$$])
}
return $str$$48$$
});
$goog$exportSymbol$$("twig.filter.join", function($value$$62$$, $opt_glue$$) {
var $glue$$ = $opt_glue$$ || "", $buffer$$8$$ = new $goog$string$StringBuffer$$, $first$$1$$ = !0;
$twig$forEach$$($value$$62$$, function($v$$4$$) {
$first$$1$$ || $buffer$$8$$.append($glue$$);
$first$$1$$ = !1;
$buffer$$8$$.append($v$$4$$)
});
return $buffer$$8$$.toString()
});
$goog$exportSymbol$$("twig.filter.keys", $goog$object$getKeys$$);
$goog$exportSymbol$$("twig.filter.upper", function($env$$4$$, $value$$63$$) {
return $value$$63$$.toUpperCase()
});
$goog$exportSymbol$$("twig.filter.lower", function($env$$5$$, $value$$64$$) {
return $value$$64$$.toLowerCase()
});
$goog$exportSymbol$$("twig.filter.nl2br", function($str$$50$$) {
return $str$$50$$.replace(/\n/g, "\x3cbr /\x3e")
});
$goog$exportSymbol$$("twig.filter.abs", function($n$$5$$) {
return Math.abs($n$$5$$)
});
$goog$exportSymbol$$("twig.filter.title", function($env$$8$$, $value$$67$$) {
return $value$$67$$.split(" ").map(function($word$$) {
return $word$$.charAt(0).toUpperCase() + $word$$.substr(1).toLowerCase()
}).join(" ")
});
$goog$exportSymbol$$("twig.filter.trim", function($value$$68$$, $opt_charactermask$$) {
var $mask$$5$$ = "\n ";
$opt_charactermask$$ && ($mask$$5$$ = $twig$pregQuote$$($opt_charactermask$$));
$value$$68$$ = $value$$68$$.replace(RegExp("^[" + $mask$$5$$ + "]+"), "");
return $value$$68$$ = $value$$68$$.replace(RegExp("[" + $mask$$5$$ + "]+$"), "")
});
$goog$exportSymbol$$("twig.filter.json_encode", function($value$$69$$) {
return JSON.stringify($value$$69$$)
});
$goog$exportSymbol$$("twig.filter.last", function($env$$7$$, $value$$66$$) {
if($goog$isArray$$($value$$66$$)) {
return $value$$66$$[$value$$66$$.length - 1]
}
if($goog$isObject$$($value$$66$$)) {
var $keys$$1$$ = Object.keys($value$$66$$);
return $value$$66$$[$keys$$1$$[$keys$$1$$.length - 1]]
}
return $goog$isString$$($value$$66$$) ? $value$$66$$.charAt($value$$66$$.length - 1) : ""
});
$goog$exportSymbol$$("twig.filter.reverse", function($env$$9$$, $value$$70$$) {
if($goog$isArray$$($value$$70$$)) {
return $value$$70$$.reverse()
}
if($goog$isObject$$($value$$70$$)) {
for(var $reverse$$ = {}, $reverseKeys$$ = $goog$object$getKeys$$($value$$70$$).reverse(), $i$$49$$ = 0;$i$$49$$ < $reverseKeys$$.length;$i$$49$$++) {
$reverse$$[$reverseKeys$$[$i$$49$$]] = $value$$70$$[$reverseKeys$$[$i$$49$$]]
}
return $reverse$$
}
return $goog$isString$$($value$$70$$) ? $value$$70$$.split("").reverse().join("") : $value$$70$$
});
$goog$exportSymbol$$("twig.filter.batch", function($array$$16$$, $batchSize$$, $opt_filler$$) {
for(var $batches$$ = Array(Math.ceil($array$$16$$.length / $batchSize$$)), $iterations$$ = $batches$$.length * $batchSize$$, $i$$50$$ = 0;$i$$50$$ < $iterations$$;$i$$50$$++) {
var $batchIndex$$ = Math.floor($i$$50$$ / $batchSize$$);
"undefined" === typeof $batches$$[$batchIndex$$] && ($batches$$[$batchIndex$$] = []);
"undefined" !== typeof $array$$16$$[$i$$50$$] ? $batches$$[$batchIndex$$].push($array$$16$$[$i$$50$$]) : $goog$isString$$($opt_filler$$) && $batches$$[$batchIndex$$].push($opt_filler$$)
}
return $batches$$
});
$goog$exportSymbol$$("twig.filter.merge", function($value1$$6$$, $value2$$6$$) {
var $merged$$ = [];
$goog$isArray$$($value1$$6$$) && $goog$isArray$$($value2$$6$$) ? ($merged$$ = $value1$$6$$.concat($value2$$6$$), $goog$array$removeDuplicates$$($merged$$)) : $goog$isObject$$($value1$$6$$) && $goog$isObject$$($value2$$6$$) && ($merged$$ = $goog$object$clone$$($value1$$6$$), $goog$object$forEach$$($value2$$6$$, function($element$$7$$, $index$$53$$) {
$merged$$[$index$$53$$] = $element$$7$$
}));
return $merged$$
});
$goog$exportSymbol$$("twig.functions.max", function($value$$73$$) {
return $goog$isArray$$($value$$73$$) ? Math.max.apply(null, $value$$73$$) : $goog$isObject$$($value$$73$$) ? Math.max.apply(null, $goog$object$getValues$$($value$$73$$)) : Math.max.apply(null, arguments)
});
$goog$exportSymbol$$("twig.functions.min", function($value$$74$$) {
return $goog$isArray$$($value$$74$$) ? Math.min.apply(null, $value$$74$$) : $goog$isObject$$($value$$74$$) ? Math.min.apply(null, $goog$object$getValues$$($value$$74$$)) : Math.min.apply(null, arguments)
});
$goog$exportSymbol$$("twig.functions.random", function($env$$10$$, $value$$75$$) {
return $goog$isArray$$($value$$75$$) || $goog$isString$$($value$$75$$) ? $value$$75$$[Math.floor(Math.random() * $value$$75$$.length)] : "number" == typeof $value$$75$$ ? Math.floor(Math.random() * $value$$75$$) : null === $value$$75$$ || "undefined" === typeof $value$$75$$ ? Math.floor(2147483647 * Math.random()) : ""
});
$goog$exportSymbol$$("twig.StringBuffer", $goog$string$StringBuffer$$);
$goog$string$StringBuffer$$.prototype.append = $goog$string$StringBuffer$$.prototype.append;
$goog$string$StringBuffer$$.prototype.toString = $goog$string$StringBuffer$$.prototype.toString;
$goog$exportSymbol$$("twig.Environment", $twig$Environment$$);
$twig$Environment$$.prototype.createTemplate = $twig$Environment$$.prototype.$createTemplate$;
$twig$Environment$$.prototype.filter = $twig$Environment$$.prototype.filter;
$twig$Environment$$.prototype.invoke = $twig$Environment$$.prototype.$invoke$;
$twig$Environment$$.prototype.test = $twig$Environment$$.prototype.test;
$twig$Environment$$.prototype.escape = $twig$Environment$$.prototype.escape;
$twig$Environment$$.prototype.macro = $twig$Environment$$.prototype.$macro$;
$twig$Environment$$.prototype.setFilter = $twig$Environment$$.prototype.$setFilter$;
$twig$Environment$$.prototype.setFunction = $twig$Environment$$.prototype.$setFunction$;
$twig$Environment$$.prototype.setTest = $twig$Environment$$.prototype.$setTest$;
$twig$Environment$$.prototype.render = $twig$Environment$$.prototype.$render$;
$twig$Environment$$.prototype.getGlobals = $twig$Environment$$.prototype.$getGlobals$;
$twig$Environment$$.prototype.setGlobals = $twig$Environment$$.prototype.$setGlobals$;
$twig$Environment$$.prototype.setGlobal = $twig$Environment$$.prototype.$setGlobal$;
$twig$Environment$$.prototype.initRuntime = $twig$Environment$$.prototype.$initRuntime$;
$twig$Environment$$.prototype.hasExtension = $twig$Environment$$.prototype.$hasExtension$;
$twig$Environment$$.prototype.getExtension = $twig$Environment$$.prototype.getExtension;
$twig$Environment$$.prototype.addExtension = $twig$Environment$$.prototype.$addExtension$;
$twig$Environment$$.prototype.removeExtension = $twig$Environment$$.prototype.$removeExtension$;
$twig$Environment$$.prototype.setExtensions = $twig$Environment$$.prototype.$setExtensions$;
$twig$Environment$$.prototype.getExtensions = $twig$Environment$$.prototype.$getExtensions$;
$goog$exportSymbol$$("twig.Template", $twig$Template$$);
$twig$Template$$.prototype.setTraits = $twig$Template$$.prototype.$setTraits$;
$twig$Template$$.prototype.setBlocks = $twig$Template$$.prototype.$setBlocks$;
$twig$Template$$.prototype.getBlocks = $twig$Template$$.prototype.$getBlocks$;
$twig$Template$$.prototype.renderParentBlock = $twig$Template$$.prototype.$renderParentBlock$;
$twig$Template$$.prototype.renderBlock = $twig$Template$$.prototype.$renderBlock$;
$twig$Template$$.prototype.callMacro = $twig$Template$$.prototype.$callMacro$;
$goog$exportSymbol$$("twig.Markup", $twig$Markup$$);
})();