-
Notifications
You must be signed in to change notification settings - Fork 3
/
parembrace_compiled.js
9107 lines (9087 loc) · 531 KB
/
parembrace_compiled.js
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
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
if(!lt.util.load.provided_QMARK_('cljs.extended.reader')) {
goog.provide('cljs.extended.reader');
goog.require('cljs.core');
goog.require('clojure.string');
goog.require('clojure.string');
goog.require('goog.string');
goog.require('goog.string');
cljs.extended.reader.specials = new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 19, [new cljs.core.Symbol(null,"deftype*","deftype*",-978581244,null),null,new cljs.core.Symbol(null,"new","new",-1640422567,null),null,new cljs.core.Symbol(null,"try*","try*",-1636962424,null),null,new cljs.core.Symbol(null,"quote","quote",-1532577739,null),null,new cljs.core.Symbol(null,"&","&",-1640531489,null),null,new cljs.core.Symbol(null,"set!","set!",-1637004872,null),null,new cljs.core.Symbol(null,"recur","recur",-1532142362,null),null,new cljs.core.Symbol(null,".",".",-1640531481,null),null,new cljs.core.Symbol(null,"ns","ns",-1640528002,null),null,new cljs.core.Symbol(null,"do","do",-1640528316,null),null,new cljs.core.Symbol(null,"fn*","fn*",-1640430053,null),null,new cljs.core.Symbol(null,"throw","throw",-1530191713,null),null,new cljs.core.Symbol(null,"letfn*","letfn*",1548249632,null),null,new cljs.core.Symbol(null,"js*","js*",-1640426054,null),null,new cljs.core.Symbol(null,"defrecord*","defrecord*",774272013,null),null,new cljs.core.Symbol(null,"let*","let*",-1637213400,null),null,new cljs.core.Symbol(null,"loop*","loop*",-1537374273,null),null,new cljs.core.Symbol(null,"if","if",-1640528170,null),null,new cljs.core.Symbol(null,"def","def",-1640432194,null),null], null), null);
cljs.extended.reader.symbol_pattern = cljs.core.re_pattern.call(null,"^[:]?([^0-9/].*/)?([^0-9/][^/]*)$");
cljs.extended.reader.Reader = (function (){var obj8858 = {};return obj8858;
})();
cljs.extended.reader.read_char = (function read_char(reader){if((function (){var and__6359__auto__ = reader;if(and__6359__auto__)
{return reader.cljs$extended$reader$Reader$read_char$arity$1;
} else
{return and__6359__auto__;
}
})())
{return reader.cljs$extended$reader$Reader$read_char$arity$1(reader);
} else
{var x__6998__auto__ = (((reader == null))?null:reader);return (function (){var or__6371__auto__ = (cljs.extended.reader.read_char[goog.typeOf(x__6998__auto__)]);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = (cljs.extended.reader.read_char["_"]);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{throw cljs.core.missing_protocol.call(null,"Reader.read-char",reader);
}
}
})().call(null,reader);
}
});
cljs.extended.reader.peek_char = (function peek_char(reader){if((function (){var and__6359__auto__ = reader;if(and__6359__auto__)
{return reader.cljs$extended$reader$Reader$peek_char$arity$1;
} else
{return and__6359__auto__;
}
})())
{return reader.cljs$extended$reader$Reader$peek_char$arity$1(reader);
} else
{var x__6998__auto__ = (((reader == null))?null:reader);return (function (){var or__6371__auto__ = (cljs.extended.reader.peek_char[goog.typeOf(x__6998__auto__)]);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = (cljs.extended.reader.peek_char["_"]);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{throw cljs.core.missing_protocol.call(null,"Reader.peek-char",reader);
}
}
})().call(null,reader);
}
});
cljs.extended.reader.IPushbackReader = (function (){var obj8860 = {};return obj8860;
})();
cljs.extended.reader.unread = (function unread(reader,ch){if((function (){var and__6359__auto__ = reader;if(and__6359__auto__)
{return reader.cljs$extended$reader$IPushbackReader$unread$arity$2;
} else
{return and__6359__auto__;
}
})())
{return reader.cljs$extended$reader$IPushbackReader$unread$arity$2(reader,ch);
} else
{var x__6998__auto__ = (((reader == null))?null:reader);return (function (){var or__6371__auto__ = (cljs.extended.reader.unread[goog.typeOf(x__6998__auto__)]);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = (cljs.extended.reader.unread["_"]);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{throw cljs.core.missing_protocol.call(null,"IPushbackReader.unread",reader);
}
}
})().call(null,reader,ch);
}
});
cljs.extended.reader.IndexingReader = (function (){var obj8862 = {};return obj8862;
})();
cljs.extended.reader.get_line_number = (function get_line_number(reader){if((function (){var and__6359__auto__ = reader;if(and__6359__auto__)
{return reader.cljs$extended$reader$IndexingReader$get_line_number$arity$1;
} else
{return and__6359__auto__;
}
})())
{return reader.cljs$extended$reader$IndexingReader$get_line_number$arity$1(reader);
} else
{var x__6998__auto__ = (((reader == null))?null:reader);return (function (){var or__6371__auto__ = (cljs.extended.reader.get_line_number[goog.typeOf(x__6998__auto__)]);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = (cljs.extended.reader.get_line_number["_"]);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{throw cljs.core.missing_protocol.call(null,"IndexingReader.get-line-number",reader);
}
}
})().call(null,reader);
}
});
cljs.extended.reader.get_column_number = (function get_column_number(reader){if((function (){var and__6359__auto__ = reader;if(and__6359__auto__)
{return reader.cljs$extended$reader$IndexingReader$get_column_number$arity$1;
} else
{return and__6359__auto__;
}
})())
{return reader.cljs$extended$reader$IndexingReader$get_column_number$arity$1(reader);
} else
{var x__6998__auto__ = (((reader == null))?null:reader);return (function (){var or__6371__auto__ = (cljs.extended.reader.get_column_number[goog.typeOf(x__6998__auto__)]);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = (cljs.extended.reader.get_column_number["_"]);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{throw cljs.core.missing_protocol.call(null,"IndexingReader.get-column-number",reader);
}
}
})().call(null,reader);
}
});
/**
* @constructor
*/
cljs.extended.reader.StringReader = (function (s,s_len,s_pos){
this.s = s;
this.s_len = s_len;
this.s_pos = s_pos;
})
cljs.extended.reader.StringReader.cljs$lang$type = true;
cljs.extended.reader.StringReader.cljs$lang$ctorStr = "cljs.extended.reader/StringReader";
cljs.extended.reader.StringReader.cljs$lang$ctorPrWriter = (function (this__6938__auto__,writer__6939__auto__,opt__6940__auto__){return cljs.core._write.call(null,writer__6939__auto__,"cljs.extended.reader/StringReader");
});
cljs.extended.reader.StringReader.prototype.cljs$extended$reader$Reader$ = true;
cljs.extended.reader.StringReader.prototype.cljs$extended$reader$Reader$read_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;if((self__.s_len > self__.s_pos))
{var r = (self__.s[self__.s_pos]);self__.s_pos = (self__.s_pos + 1);
return r;
} else
{return null;
}
});
cljs.extended.reader.StringReader.prototype.cljs$extended$reader$Reader$peek_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;if((self__.s_len > self__.s_pos))
{return (self__.s[self__.s_pos]);
} else
{return null;
}
});
cljs.extended.reader.__GT_StringReader = (function __GT_StringReader(s,s_len,s_pos){return (new cljs.extended.reader.StringReader(s,s_len,s_pos));
});
/**
* @constructor
*/
cljs.extended.reader.PushbackReader = (function (rdr,buf,buf_len,buf_pos){
this.rdr = rdr;
this.buf = buf;
this.buf_len = buf_len;
this.buf_pos = buf_pos;
})
cljs.extended.reader.PushbackReader.cljs$lang$type = true;
cljs.extended.reader.PushbackReader.cljs$lang$ctorStr = "cljs.extended.reader/PushbackReader";
cljs.extended.reader.PushbackReader.cljs$lang$ctorPrWriter = (function (this__6938__auto__,writer__6939__auto__,opt__6940__auto__){return cljs.core._write.call(null,writer__6939__auto__,"cljs.extended.reader/PushbackReader");
});
cljs.extended.reader.PushbackReader.prototype.cljs$extended$reader$IPushbackReader$ = true;
cljs.extended.reader.PushbackReader.prototype.cljs$extended$reader$IPushbackReader$unread$arity$2 = (function (reader,ch){var self__ = this;
var reader__$1 = this;if(cljs.core.truth_(ch))
{if((self__.buf_pos === 0))
{throw (new Error("Pushback buffer is full"));
} else
{}
self__.buf_pos = (self__.buf_pos - 1);
return (self__.buf[self__.buf_pos] = ch);
} else
{return null;
}
});
cljs.extended.reader.PushbackReader.prototype.cljs$extended$reader$Reader$ = true;
cljs.extended.reader.PushbackReader.prototype.cljs$extended$reader$Reader$read_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;if((self__.buf_pos < self__.buf_len))
{var r = (self__.buf[self__.buf_pos]);self__.buf_pos = (self__.buf_pos + 1);
return r;
} else
{return cljs.extended.reader.read_char.call(null,self__.rdr);
}
});
cljs.extended.reader.PushbackReader.prototype.cljs$extended$reader$Reader$peek_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;if((self__.buf_pos < self__.buf_len))
{return (self__.buf[self__.buf_pos]);
} else
{return cljs.extended.reader.peek_char.call(null,self__.rdr);
}
});
cljs.extended.reader.__GT_PushbackReader = (function __GT_PushbackReader(rdr,buf,buf_len,buf_pos){return (new cljs.extended.reader.PushbackReader(rdr,buf,buf_len,buf_pos));
});
cljs.extended.reader.normalize_newline = (function normalize_newline(rdr,ch){if(("\r" === ch))
{var c = cljs.extended.reader.peek_char.call(null,rdr);if(("\f" === c))
{cljs.extended.reader.read_char.call(null,rdr);
} else
{}
return "\n";
} else
{return ch;
}
});
/**
* @constructor
*/
cljs.extended.reader.IndexingPushbackReader = (function (rdr,line,column,line_start_QMARK_,prev){
this.rdr = rdr;
this.line = line;
this.column = column;
this.line_start_QMARK_ = line_start_QMARK_;
this.prev = prev;
})
cljs.extended.reader.IndexingPushbackReader.cljs$lang$type = true;
cljs.extended.reader.IndexingPushbackReader.cljs$lang$ctorStr = "cljs.extended.reader/IndexingPushbackReader";
cljs.extended.reader.IndexingPushbackReader.cljs$lang$ctorPrWriter = (function (this__6938__auto__,writer__6939__auto__,opt__6940__auto__){return cljs.core._write.call(null,writer__6939__auto__,"cljs.extended.reader/IndexingPushbackReader");
});
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$IndexingReader$ = true;
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$IndexingReader$get_line_number$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return (self__.line + 1);
});
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$IndexingReader$get_column_number$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return self__.column;
});
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$IPushbackReader$ = true;
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$IPushbackReader$unread$arity$2 = (function (reader,ch){var self__ = this;
var reader__$1 = this;if(cljs.core.truth_(self__.line_start_QMARK_))
{self__.line = (self__.line - 1);
} else
{}
self__.line_start_QMARK_ = self__.prev;
self__.column = (self__.column - 1);
return cljs.extended.reader.unread.call(null,self__.rdr,ch);
});
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$Reader$ = true;
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$Reader$read_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;var temp__4092__auto__ = cljs.extended.reader.read_char.call(null,self__.rdr);if(cljs.core.truth_(temp__4092__auto__))
{var ch = temp__4092__auto__;var ch__$1 = cljs.extended.reader.normalize_newline.call(null,self__.rdr,ch);self__.prev = self__.line_start_QMARK_;
self__.line_start_QMARK_ = cljs.extended.reader.newline_QMARK_.call(null,ch__$1);
if(cljs.core.truth_(self__.line_start_QMARK_))
{self__.column = 0;
self__.line = (self__.line + 1);
} else
{}
self__.column = (self__.column + 1);
return ch__$1;
} else
{return null;
}
});
cljs.extended.reader.IndexingPushbackReader.prototype.cljs$extended$reader$Reader$peek_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return cljs.extended.reader.peek_char.call(null,self__.rdr);
});
cljs.extended.reader.__GT_IndexingPushbackReader = (function __GT_IndexingPushbackReader(rdr,line,column,line_start_QMARK_,prev){return (new cljs.extended.reader.IndexingPushbackReader(rdr,line,column,line_start_QMARK_,prev));
});
/**
* Returns an object of the same type and value as `obj`, with its metadata merged over `m`.
*/
cljs.extended.reader.merge_meta = (function merge_meta(obj,m){var orig_meta = cljs.core.meta.call(null,obj);return cljs.core.with_meta.call(null,obj,cljs.core.merge.call(null,m,cljs.core.dissoc.call(null,orig_meta,new cljs.core.Keyword(null,"source","source",4412365709))));
});
/**
* Returns a string containing the contents of the top most source logging frame.
*/
cljs.extended.reader.peek_source_log = (function peek_source_log(source_log_frames){var current_frame = cljs.core.deref.call(null,source_log_frames);return new cljs.core.Keyword(null,"buffer","buffer",3930752946).cljs$core$IFn$_invoke$arity$1(current_frame).toString().substring(new cljs.core.Keyword(null,"offset","offset",4289091589).cljs$core$IFn$_invoke$arity$1(current_frame));
});
/**
* Logs `char` to all currently active source logging frames.
*/
cljs.extended.reader.log_source_char = (function log_source_char(source_log_frames,char$){var temp__4092__auto__ = new cljs.core.Keyword(null,"buffer","buffer",3930752946).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,source_log_frames));if(cljs.core.truth_(temp__4092__auto__))
{var buffer = temp__4092__auto__;return buffer.append(char$);
} else
{return null;
}
});
/**
* Removes the last logged character from all currently active source logging frames. Called when pushing a character back.
*/
cljs.extended.reader.drop_last_logged_char = (function drop_last_logged_char(source_log_frames){var temp__4092__auto__ = new cljs.core.Keyword(null,"buffer","buffer",3930752946).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,source_log_frames));if(cljs.core.truth_(temp__4092__auto__))
{var buffer = temp__4092__auto__;var s = buffer.toString();return buffer.set(s.substring(0,(buffer.getLength() - 1)));
} else
{return null;
}
});
/**
* @constructor
*/
cljs.extended.reader.SourceLoggingPushbackReader = (function (rdr,line,column,line_start_QMARK_,prev,source_log_frames){
this.rdr = rdr;
this.line = line;
this.column = column;
this.line_start_QMARK_ = line_start_QMARK_;
this.prev = prev;
this.source_log_frames = source_log_frames;
})
cljs.extended.reader.SourceLoggingPushbackReader.cljs$lang$type = true;
cljs.extended.reader.SourceLoggingPushbackReader.cljs$lang$ctorStr = "cljs.extended.reader/SourceLoggingPushbackReader";
cljs.extended.reader.SourceLoggingPushbackReader.cljs$lang$ctorPrWriter = (function (this__6938__auto__,writer__6939__auto__,opt__6940__auto__){return cljs.core._write.call(null,writer__6939__auto__,"cljs.extended.reader/SourceLoggingPushbackReader");
});
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$IndexingReader$ = true;
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$IndexingReader$get_line_number$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return (self__.line | 0);
});
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$IndexingReader$get_column_number$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return (self__.column | 0);
});
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$IPushbackReader$ = true;
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$IPushbackReader$unread$arity$2 = (function (reader,ch){var self__ = this;
var reader__$1 = this;if(cljs.core.truth_(self__.line_start_QMARK_))
{self__.line = (self__.line - 1);
} else
{self__.column = (self__.column - 1);
}
self__.line_start_QMARK_ = self__.prev;
if(cljs.core.truth_(ch))
{cljs.extended.reader.drop_last_logged_char.call(null,self__.source_log_frames);
} else
{}
return cljs.extended.reader.unread.call(null,self__.rdr,ch);
});
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$Reader$ = true;
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$Reader$read_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;var temp__4092__auto__ = cljs.extended.reader.read_char.call(null,self__.rdr);if(cljs.core.truth_(temp__4092__auto__))
{var ch = temp__4092__auto__;var ch__$1 = cljs.extended.reader.normalize_newline.call(null,self__.rdr,ch);self__.prev = self__.line_start_QMARK_;
self__.line_start_QMARK_ = cljs.extended.reader.newline_QMARK_.call(null,ch__$1);
if(cljs.core.truth_(self__.line_start_QMARK_))
{self__.column = 0;
self__.line = (self__.line + 1);
} else
{}
self__.column = (self__.column + 1);
cljs.extended.reader.log_source_char.call(null,self__.source_log_frames,ch__$1);
return ch__$1;
} else
{return null;
}
});
cljs.extended.reader.SourceLoggingPushbackReader.prototype.cljs$extended$reader$Reader$peek_char$arity$1 = (function (reader){var self__ = this;
var reader__$1 = this;return cljs.extended.reader.peek_char.call(null,self__.rdr);
});
cljs.extended.reader.__GT_SourceLoggingPushbackReader = (function __GT_SourceLoggingPushbackReader(rdr,line,column,line_start_QMARK_,prev,source_log_frames){return (new cljs.extended.reader.SourceLoggingPushbackReader(rdr,line,column,line_start_QMARK_,prev,source_log_frames));
});
/**
* Creates a StringReader from a given string
*/
cljs.extended.reader.string_reader = (function string_reader(s){return (new cljs.extended.reader.StringReader(s,cljs.core.count.call(null,s),0));
});
/**
* Creates a PushbackReader from a given string
*/
cljs.extended.reader.string_push_back_reader = (function() {
var string_push_back_reader = null;
var string_push_back_reader__1 = (function (s){return string_push_back_reader.call(null,s,1);
});
var string_push_back_reader__2 = (function (s,buf_len){return (new cljs.extended.reader.PushbackReader(cljs.extended.reader.string_reader.call(null,s),cljs.core.object_array.call(null,buf_len),buf_len,buf_len));
});
string_push_back_reader = function(s,buf_len){
switch(arguments.length){
case 1:
return string_push_back_reader__1.call(this,s);
case 2:
return string_push_back_reader__2.call(this,s,buf_len);
}
throw(new Error('Invalid arity: ' + arguments.length));
};
string_push_back_reader.cljs$core$IFn$_invoke$arity$1 = string_push_back_reader__1;
string_push_back_reader.cljs$core$IFn$_invoke$arity$2 = string_push_back_reader__2;
return string_push_back_reader;
})()
;
/**
* Creates an IndexingPushbackReader from a given string
*/
cljs.extended.reader.indexing_push_back_reader = (function() {
var indexing_push_back_reader = null;
var indexing_push_back_reader__1 = (function (s){return (new cljs.extended.reader.IndexingPushbackReader(cljs.extended.reader.string_push_back_reader.call(null,s),0,1,true,null));
});
var indexing_push_back_reader__2 = (function (s,buf_len){return (new cljs.extended.reader.IndexingPushbackReader(cljs.extended.reader.string_push_back_reader.call(null,s,buf_len),0,1,true,null));
});
indexing_push_back_reader = function(s,buf_len){
switch(arguments.length){
case 1:
return indexing_push_back_reader__1.call(this,s);
case 2:
return indexing_push_back_reader__2.call(this,s,buf_len);
}
throw(new Error('Invalid arity: ' + arguments.length));
};
indexing_push_back_reader.cljs$core$IFn$_invoke$arity$1 = indexing_push_back_reader__1;
indexing_push_back_reader.cljs$core$IFn$_invoke$arity$2 = indexing_push_back_reader__2;
return indexing_push_back_reader;
})()
;
/**
* Creates a SourceLoggingPushbackReader from a given string or PushbackReader
*/
cljs.extended.reader.source_logging_push_back_reader = (function() {
var source_logging_push_back_reader = null;
var source_logging_push_back_reader__1 = (function (s_or_rdr){return source_logging_push_back_reader.call(null,s_or_rdr,1);
});
var source_logging_push_back_reader__2 = (function (s_or_rdr,buf_len){return source_logging_push_back_reader.call(null,s_or_rdr,buf_len,null);
});
var source_logging_push_back_reader__3 = (function (s_or_rdr,buf_len,file_name){return (new cljs.extended.reader.SourceLoggingPushbackReader(((typeof s_or_rdr === 'string')?cljs.extended.reader.string_push_back_reader.call(null,s_or_rdr,buf_len):s_or_rdr),1,1,true,null,cljs.core.atom.call(null,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"buffer","buffer",3930752946),(new goog.string.StringBuffer()),new cljs.core.Keyword(null,"offset","offset",4289091589),0], null))));
});
source_logging_push_back_reader = function(s_or_rdr,buf_len,file_name){
switch(arguments.length){
case 1:
return source_logging_push_back_reader__1.call(this,s_or_rdr);
case 2:
return source_logging_push_back_reader__2.call(this,s_or_rdr,buf_len);
case 3:
return source_logging_push_back_reader__3.call(this,s_or_rdr,buf_len,file_name);
}
throw(new Error('Invalid arity: ' + arguments.length));
};
source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$1 = source_logging_push_back_reader__1;
source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$2 = source_logging_push_back_reader__2;
source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$3 = source_logging_push_back_reader__3;
return source_logging_push_back_reader;
})()
;
/**
* Checks whether a given character is whitespace
*/
cljs.extended.reader.whitespace_QMARK_ = (function whitespace_QMARK_(ch){var or__6371__auto__ = goog.string.isBreakingWhitespace(ch);if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return ("," === ch);
}
});
/**
* Checks whether a given character is numeric
*/
cljs.extended.reader.numeric_QMARK_ = (function numeric_QMARK_(ch){return goog.string.isNumeric(ch);
});
/**
* Checks whether the character is a newline.
*/
cljs.extended.reader.newline_QMARK_ = (function newline_QMARK_(ch){return ("\n" === ch);
});
/**
* Checks whether the character begins a comment.
*/
cljs.extended.reader.comment_prefix_QMARK_ = (function comment_prefix_QMARK_(ch){return (";" === ch);
});
/**
* Checks whether the reader is at the start of a number literal
*/
cljs.extended.reader.number_literal_QMARK_ = (function number_literal_QMARK_(reader,initch){return (cljs.extended.reader.numeric_QMARK_.call(null,initch)) || (((("+" === initch)) || (("-" === initch))) && (cljs.extended.reader.numeric_QMARK_.call(null,cljs.extended.reader.peek_char.call(null,reader))));
});
/**
* @param {...*} var_args
*/
cljs.extended.reader.reader_error = (function() {
var reader_error__delegate = function (rdr,msg){var error_msg = cljs.core.apply.call(null,cljs.core.str,msg);throw (new Error([cljs.core.str(error_msg),cljs.core.str((((function (){var G__8864 = rdr;if(G__8864)
{var bit__7021__auto__ = null;if(cljs.core.truth_((function (){var or__6371__auto__ = bit__7021__auto__;if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return G__8864.cljs$extended$reader$IndexingReader$;
}
})()))
{return true;
} else
{if((!G__8864.cljs$lang$protocol_mask$partition$))
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8864);
} else
{return false;
}
}
} else
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8864);
}
})())?[cljs.core.str(", on line: "),cljs.core.str(cljs.extended.reader.get_line_number.call(null,rdr)),cljs.core.str(", on column: "),cljs.core.str(cljs.extended.reader.get_column_number.call(null,rdr))].join(''):null))].join('')));
};
var reader_error = function (rdr,var_args){
var msg = null;if (arguments.length > 1) {
msg = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1),0);}
return reader_error__delegate.call(this,rdr,msg);};
reader_error.cljs$lang$maxFixedArity = 1;
reader_error.cljs$lang$applyTo = (function (arglist__8956){
var rdr = cljs.core.first(arglist__8956);
var msg = cljs.core.rest(arglist__8956);
return reader_error__delegate(rdr,msg);
});
reader_error.cljs$core$IFn$_invoke$arity$variadic = reader_error__delegate;
return reader_error;
})()
;
cljs.extended.reader.macro_terminating_QMARK_ = (function macro_terminating_QMARK_(ch){var and__6359__auto__ = !((ch === "#"));if(and__6359__auto__)
{var and__6359__auto____$1 = !((ch === "'"));if(and__6359__auto____$1)
{var and__6359__auto____$2 = !((ch === ":"));if(and__6359__auto____$2)
{return cljs.extended.reader.macros.call(null,ch);
} else
{return and__6359__auto____$2;
}
} else
{return and__6359__auto____$1;
}
} else
{return and__6359__auto__;
}
});
cljs.extended.reader.read_token = (function read_token(rdr,initch){var sb = (new goog.string.StringBuffer(initch));var ch = cljs.extended.reader.read_char.call(null,rdr);while(true){
if(((ch == null)) || (cljs.extended.reader.whitespace_QMARK_.call(null,ch)) || (cljs.extended.reader.macro_terminating_QMARK_.call(null,ch)))
{cljs.extended.reader.unread.call(null,rdr,ch);
return sb.toString();
} else
{{
var G__8957 = (function (){sb.append(ch);
return sb;
})();
var G__8958 = cljs.extended.reader.read_char.call(null,rdr);
sb = G__8957;
ch = G__8958;
continue;
}
}
break;
}
});
/**
* Reads to the end of a line and returns the line.
*/
cljs.extended.reader.read_line = (function read_line(rdr){var sb = (new goog.string.StringBuffer());var ch = cljs.extended.reader.read_char.call(null,rdr);while(true){
if(((ch == null)) && (cljs.core._EQ_.call(null,0,sb.getLength())))
{return null;
} else
{if(((ch === "\n")) || ((ch === "\r")) || ((ch == null)))
{return sb.toString();
} else
{if(new cljs.core.Keyword(null,"else","else",1017020587))
{{
var G__8959 = (function (){sb.append(ch);
return sb;
})();
var G__8960 = cljs.extended.reader.read_char.call(null,rdr);
sb = G__8959;
ch = G__8960;
continue;
}
} else
{return null;
}
}
}
break;
}
});
cljs.extended.reader.line_seq = (function line_seq(rdr){var temp__4092__auto__ = cljs.extended.reader.read_line.call(null,rdr);if(cljs.core.truth_(temp__4092__auto__))
{var line = temp__4092__auto__;return cljs.core.cons.call(null,line,(new cljs.core.LazySeq(null,((function (line,temp__4092__auto__){
return (function (){return line_seq.call(null,rdr);
});})(line,temp__4092__auto__))
,null,null)));
} else
{return null;
}
});
/**
* Advances the reader to the end of a line. Returns the reader
*/
cljs.extended.reader.skip_line = (function skip_line(reader,_){while(true){
var ch = cljs.extended.reader.read_char.call(null,reader);if(((ch === "\n")) || ((ch === "\r")) || ((ch == null)))
{return reader;
} else
{{
continue;
}
}
break;
}
});
cljs.extended.reader.int_pattern = cljs.core.re_pattern.call(null,"^([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?$");
cljs.extended.reader.ratio_pattern = cljs.core.re_pattern.call(null,"([-+]?[0-9]+)/([0-9]+)");
cljs.extended.reader.float_pattern = cljs.core.re_pattern.call(null,"([-+]?[0-9]+(\\.[0-9]*)?([eE][-+]?[0-9]+)?)(M)?");
cljs.extended.reader.re_find_STAR_ = (function re_find_STAR_(re,s){var matches = re.exec(s);if((matches == null))
{return null;
} else
{if((matches.length === 1))
{return (matches[0]);
} else
{return matches;
}
}
});
cljs.extended.reader.match_int = (function match_int(s){var groups = cljs.extended.reader.re_find_STAR_.call(null,cljs.extended.reader.int_pattern,s);var group3 = (groups[2]);if(!(((group3 == null)) || ((group3.length < 1))))
{return 0;
} else
{var negate = ((("-" === (groups[1])))?-1:1);var a = (cljs.core.truth_((groups[3]))?[(groups[3]),10]:(cljs.core.truth_((groups[4]))?[(groups[4]),16]:(cljs.core.truth_((groups[5]))?[(groups[5]),8]:(cljs.core.truth_((groups[7]))?[(groups[7]),parseInt((groups[7]))]:((new cljs.core.Keyword(null,"default","default",2558708147))?[null,null]:null)))));var n = (a[0]);var radix = (a[1]);if((n == null))
{return null;
} else
{return (negate * parseInt(n,radix));
}
}
});
cljs.extended.reader.match_ratio = (function match_ratio(s){var groups = cljs.extended.reader.re_find_STAR_.call(null,cljs.extended.reader.ratio_pattern,s);var numinator = (groups[1]);var denominator = (groups[2]);return (parseInt(numinator) / parseInt(denominator));
});
cljs.extended.reader.match_float = (function match_float(s){return parseFloat(s);
});
cljs.extended.reader.re_matches_STAR_ = (function re_matches_STAR_(re,s){var matches = re.exec(s);if((!((matches == null))) && (((matches[0]) === s)))
{if((matches.length === 1))
{return (matches[0]);
} else
{return matches;
}
} else
{return null;
}
});
cljs.extended.reader.match_number = (function match_number(s){if(cljs.core.truth_(cljs.extended.reader.re_matches_STAR_.call(null,cljs.extended.reader.int_pattern,s)))
{return cljs.extended.reader.match_int.call(null,s);
} else
{if(cljs.core.truth_(cljs.extended.reader.re_matches_STAR_.call(null,cljs.extended.reader.ratio_pattern,s)))
{return cljs.extended.reader.match_ratio.call(null,s);
} else
{if(cljs.core.truth_(cljs.extended.reader.re_matches_STAR_.call(null,cljs.extended.reader.float_pattern,s)))
{return cljs.extended.reader.match_float.call(null,s);
} else
{return null;
}
}
}
});
cljs.extended.reader.escape_char_map = (function escape_char_map(c){if((c === "t"))
{return "\t";
} else
{if((c === "r"))
{return "\r";
} else
{if((c === "n"))
{return "\n";
} else
{if((c === "\\"))
{return "\\";
} else
{if((c === "\""))
{return "\"";
} else
{if((c === "b"))
{return "\b";
} else
{if((c === "f"))
{return "\f";
} else
{if(new cljs.core.Keyword(null,"else","else",1017020587))
{return null;
} else
{return null;
}
}
}
}
}
}
}
}
});
cljs.extended.reader.read_2_chars = (function read_2_chars(reader){return (new goog.string.StringBuffer(cljs.extended.reader.read_char.call(null,reader),cljs.extended.reader.read_char.call(null,reader))).toString();
});
cljs.extended.reader.read_4_chars = (function read_4_chars(reader){return (new goog.string.StringBuffer(cljs.extended.reader.read_char.call(null,reader),cljs.extended.reader.read_char.call(null,reader),cljs.extended.reader.read_char.call(null,reader),cljs.extended.reader.read_char.call(null,reader))).toString();
});
cljs.extended.reader.unicode_2_pattern = cljs.core.re_pattern.call(null,"[0-9A-Fa-f]{2}");
cljs.extended.reader.octal_pattern = cljs.core.re_pattern.call(null,"[0-7]{1,3}");
cljs.extended.reader.unicode_4_pattern = cljs.core.re_pattern.call(null,"[0-9A-Fa-f]{4}");
cljs.extended.reader.validate_unicode_escape = (function validate_unicode_escape(unicode_pattern,reader,escape_char,unicode_str){if(cljs.core.truth_(cljs.core.re_matches.call(null,unicode_pattern,unicode_str)))
{return unicode_str;
} else
{return cljs.extended.reader.reader_error.call(null,reader,"Unexpected unicode escape \\",escape_char,unicode_str);
}
});
/**
* @param {...*} var_args
*/
cljs.extended.reader.make_unicode_char = (function() {
var make_unicode_char__delegate = function (code_str,p__8865){var vec__8867 = p__8865;var base = cljs.core.nth.call(null,vec__8867,0,null);var base__$1 = (function (){var or__6371__auto__ = base;if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return 16;
}
})();var code = parseInt(code_str,base__$1);return String.fromCharCode(code);
};
var make_unicode_char = function (code_str,var_args){
var p__8865 = null;if (arguments.length > 1) {
p__8865 = cljs.core.array_seq(Array.prototype.slice.call(arguments, 1),0);}
return make_unicode_char__delegate.call(this,code_str,p__8865);};
make_unicode_char.cljs$lang$maxFixedArity = 1;
make_unicode_char.cljs$lang$applyTo = (function (arglist__8961){
var code_str = cljs.core.first(arglist__8961);
var p__8865 = cljs.core.rest(arglist__8961);
return make_unicode_char__delegate(code_str,p__8865);
});
make_unicode_char.cljs$core$IFn$_invoke$arity$variadic = make_unicode_char__delegate;
return make_unicode_char;
})()
;
cljs.extended.reader.escape_char = (function escape_char(buffer,reader){var ch = cljs.extended.reader.read_char.call(null,reader);var mapresult = cljs.extended.reader.escape_char_map.call(null,ch);if(cljs.core.truth_(mapresult))
{return mapresult;
} else
{if((ch === "x"))
{return cljs.extended.reader.make_unicode_char.call(null,cljs.extended.reader.validate_unicode_escape.call(null,cljs.extended.reader.unicode_2_pattern,reader,ch,cljs.extended.reader.read_2_chars.call(null,reader)));
} else
{if((ch === "u"))
{return cljs.extended.reader.make_unicode_char.call(null,cljs.extended.reader.validate_unicode_escape.call(null,cljs.extended.reader.unicode_4_pattern,reader,ch,cljs.extended.reader.read_4_chars.call(null,reader)));
} else
{if(cljs.extended.reader.numeric_QMARK_.call(null,ch))
{return String.fromCharCode(ch);
} else
{if(new cljs.core.Keyword(null,"else","else",1017020587))
{return cljs.extended.reader.reader_error.call(null,reader,"Unexpected unicode escape \\",ch);
} else
{return null;
}
}
}
}
}
});
/**
* Read until first character that doesn't match pred, returning
* char.
*/
cljs.extended.reader.read_past = (function read_past(pred,rdr){var ch = cljs.extended.reader.read_char.call(null,rdr);while(true){
if(cljs.core.truth_(pred.call(null,ch)))
{{
var G__8962 = cljs.extended.reader.read_char.call(null,rdr);
ch = G__8962;
continue;
}
} else
{return ch;
}
break;
}
});
cljs.extended.reader.read_delimited_list = (function read_delimited_list(delim,rdr,recursive_QMARK_){var a = cljs.core.transient$.call(null,cljs.core.PersistentVector.EMPTY);while(true){
var ch = cljs.extended.reader.read_past.call(null,cljs.extended.reader.whitespace_QMARK_,rdr);if(cljs.core.truth_(ch))
{} else
{cljs.extended.reader.reader_error.call(null,rdr,"EOF while reading");
}
if((delim === ch))
{return cljs.core.persistent_BANG_.call(null,a);
} else
{var temp__4090__auto__ = cljs.extended.reader.macros.call(null,ch);if(cljs.core.truth_(temp__4090__auto__))
{var macrofn = temp__4090__auto__;var mret = macrofn.call(null,rdr,ch);{
var G__8963 = (((mret === rdr))?a:cljs.core.conj_BANG_.call(null,a,mret));
a = G__8963;
continue;
}
} else
{cljs.extended.reader.unread.call(null,rdr,ch);
var o = cljs.extended.reader.read.call(null,rdr,true,null,recursive_QMARK_);{
var G__8964 = (((o === rdr))?a:cljs.core.conj_BANG_.call(null,a,o));
a = G__8964;
continue;
}
}
}
break;
}
});
cljs.extended.reader.not_implemented = (function not_implemented(rdr,ch){return cljs.extended.reader.reader_error.call(null,rdr,"Reader for ",ch," not implemented yet");
});
cljs.extended.reader.read_dispatch = (function read_dispatch(rdr,_){var ch = cljs.extended.reader.read_char.call(null,rdr);var dm = cljs.extended.reader.dispatch_macros.call(null,ch);if(cljs.core.truth_(dm))
{return dm.call(null,rdr,_);
} else
{var temp__4090__auto__ = cljs.extended.reader.maybe_read_tagged_type.call(null,rdr,ch);if(cljs.core.truth_(temp__4090__auto__))
{var obj = temp__4090__auto__;return obj;
} else
{return cljs.extended.reader.reader_error.call(null,rdr,"No dispatch macro for ",ch);
}
}
});
cljs.extended.reader.read_unmatched_delimiter = (function read_unmatched_delimiter(rdr,ch){return cljs.extended.reader.reader_error.call(null,rdr,"Unmatched delimiter ",ch);
});
cljs.extended.reader.maybe_get_pos = (function maybe_get_pos(rdr){if((function (){var G__8869 = rdr;if(G__8869)
{var bit__7021__auto__ = null;if(cljs.core.truth_((function (){var or__6371__auto__ = bit__7021__auto__;if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return G__8869.cljs$extended$reader$IndexingReader$;
}
})()))
{return true;
} else
{if((!G__8869.cljs$lang$protocol_mask$partition$))
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8869);
} else
{return false;
}
}
} else
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8869);
}
})())
{return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"line","line",1017226086),cljs.extended.reader.get_line_number.call(null,rdr),new cljs.core.Keyword(null,"column","column",3954034376),(cljs.extended.reader.get_column_number.call(null,rdr) - 1)], null);
} else
{return null;
}
});
cljs.extended.reader.prep_meta = (function prep_meta(rdr,pos,source){if(cljs.core.truth_(pos))
{return cljs.core.merge.call(null,pos,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"end-line","end-line",2693041432),cljs.extended.reader.get_line_number.call(null,rdr),new cljs.core.Keyword(null,"end-column","end-column",3799845882),cljs.extended.reader.get_column_number.call(null,rdr),new cljs.core.Keyword(null,"source","source",4412365709),source], null));
} else
{return null;
}
});
cljs.extended.reader.with_source_log = (function with_source_log(rdr,f,prefix){if(cljs.core._EQ_.call(null,cljs.extended.reader.SourceLoggingPushbackReader,cljs.core.type.call(null,rdr)))
{var frame = rdr.source_log_frames;var new_frame = cljs.core.atom.call(null,cljs.core.assoc_in.call(null,cljs.core.deref.call(null,frame),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"offset","offset",4289091589)], null),new cljs.core.Keyword(null,"buffer","buffer",3930752946).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,frame)).getLength()));var ret = f.call(null);var source = [cljs.core.str(prefix),cljs.core.str(cljs.extended.reader.peek_source_log.call(null,new_frame))].join('');return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [ret,source], null);
} else
{return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f.call(null),null], null);
}
});
cljs.extended.reader.read_list = (function read_list(rdr,_){var pos = cljs.extended.reader.maybe_get_pos.call(null,rdr);var vec__8871 = cljs.extended.reader.with_source_log.call(null,rdr,((function (pos){
return (function (){return cljs.extended.reader.read_delimited_list.call(null,")",rdr,true);
});})(pos))
,"(");var the_list = cljs.core.nth.call(null,vec__8871,0,null);var source = cljs.core.nth.call(null,vec__8871,1,null);return cljs.core.with_meta.call(null,cljs.core.apply.call(null,cljs.core.list,the_list),cljs.extended.reader.prep_meta.call(null,rdr,pos,source));
});
cljs.extended.reader.read_comment = cljs.extended.reader.skip_line;
cljs.extended.reader.read_vector = (function read_vector(rdr,_){var pos = cljs.extended.reader.maybe_get_pos.call(null,rdr);var vec__8873 = cljs.extended.reader.with_source_log.call(null,rdr,((function (pos){
return (function (){return cljs.extended.reader.read_delimited_list.call(null,"]",rdr,true);
});})(pos))
,"[");var the_vec = cljs.core.nth.call(null,vec__8873,0,null);var source = cljs.core.nth.call(null,vec__8873,1,null);return cljs.core.with_meta.call(null,cljs.core.identity.call(null,the_vec),cljs.extended.reader.prep_meta.call(null,rdr,pos,source));
});
cljs.extended.reader.read_map = (function read_map(rdr,_){var pos = cljs.extended.reader.maybe_get_pos.call(null,rdr);var vec__8875 = cljs.extended.reader.with_source_log.call(null,rdr,((function (pos){
return (function (){return cljs.extended.reader.read_delimited_list.call(null,"}",rdr,true);
});})(pos))
,"{");var l = cljs.core.nth.call(null,vec__8875,0,null);var source = cljs.core.nth.call(null,vec__8875,1,null);if(cljs.core.odd_QMARK_.call(null,cljs.core.count.call(null,l)))
{cljs.extended.reader.reader_error.call(null,rdr,"Map literal must contain an even number of forms");
} else
{}
return cljs.core.with_meta.call(null,cljs.core.apply.call(null,cljs.core.hash_map,l),cljs.extended.reader.prep_meta.call(null,rdr,pos,source));
});
cljs.extended.reader.read_number = (function read_number(reader,initch){var buffer = (new goog.string.StringBuffer(initch));var ch = cljs.extended.reader.read_char.call(null,reader);while(true){
if(cljs.core.truth_((function (){var or__6371__auto__ = (ch == null);if(or__6371__auto__)
{return or__6371__auto__;
} else
{var or__6371__auto____$1 = cljs.extended.reader.whitespace_QMARK_.call(null,ch);if(or__6371__auto____$1)
{return or__6371__auto____$1;
} else
{return cljs.extended.reader.macros.call(null,ch);
}
}
})()))
{cljs.extended.reader.unread.call(null,reader,ch);
var s = buffer.toString();var or__6371__auto__ = cljs.extended.reader.match_number.call(null,s);if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return cljs.extended.reader.reader_error.call(null,reader,"Invalid number format [",s,"]");
}
} else
{{
var G__8965 = (function (){buffer.append(ch);
return buffer;
})();
var G__8966 = cljs.extended.reader.read_char.call(null,reader);
buffer = G__8965;
ch = G__8966;
continue;
}
}
break;
}
});
cljs.extended.reader.read_string_STAR_ = (function read_string_STAR_(reader,_){var buffer = (new goog.string.StringBuffer());var ch = cljs.extended.reader.read_char.call(null,reader);while(true){
if((ch == null))
{return cljs.extended.reader.reader_error.call(null,reader,"EOF while reading");
} else
{if(("\\" === ch))
{{
var G__8967 = (function (){buffer.append(cljs.extended.reader.escape_char.call(null,buffer,reader));
return buffer;
})();
var G__8968 = cljs.extended.reader.read_char.call(null,reader);
buffer = G__8967;
ch = G__8968;
continue;
}
} else
{if(("\"" === ch))
{return buffer.toString();
} else
{if(new cljs.core.Keyword(null,"default","default",2558708147))
{{
var G__8969 = (function (){buffer.append(ch);
return buffer;
})();
var G__8970 = cljs.extended.reader.read_char.call(null,reader);
buffer = G__8969;
ch = G__8970;
continue;
}
} else
{return null;
}
}
}
}
break;
}
});
cljs.extended.reader.special_symbols = (function special_symbols(t,not_found){if((t === "nil"))
{return null;
} else
{if((t === "true"))
{return true;
} else
{if((t === "false"))
{return false;
} else
{if(new cljs.core.Keyword(null,"else","else",1017020587))
{return not_found;
} else
{return null;
}
}
}
}
});
cljs.extended.reader.parse_symbol = (function parse_symbol(token){if(cljs.core.truth_(goog.string.contains(token,"/")))
{return cljs.core.symbol.call(null,cljs.core.subs.call(null,token,0,token.indexOf("/")),cljs.core.subs.call(null,token,(token.indexOf("/") + 1),token.length));
} else
{return cljs.extended.reader.special_symbols.call(null,token,cljs.core.symbol.call(null,token));
}
});
cljs.extended.reader.read_symbol = (function read_symbol(reader,initch){var pos = cljs.extended.reader.maybe_get_pos.call(null,reader);var vec__8878 = cljs.extended.reader.with_source_log.call(null,reader,((function (pos){
return (function (){return cljs.extended.reader.read_token.call(null,reader,initch);
});})(pos))
,initch);var token = cljs.core.nth.call(null,vec__8878,0,null);var source = cljs.core.nth.call(null,vec__8878,1,null);if((function (){var G__8879 = token;if(G__8879)
{var bit__7021__auto__ = (G__8879.cljs$lang$protocol_mask$partition0$ & 262144);if((bit__7021__auto__) || (G__8879.cljs$core$IWithMeta$))
{return true;
} else
{if((!G__8879.cljs$lang$protocol_mask$partition0$))
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.core.IWithMeta,G__8879);
} else
{return false;
}
}
} else
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.core.IWithMeta,G__8879);
}
})())
{return cljs.core.with_meta.call(null,cljs.extended.reader.parse_symbol.call(null,token),cljs.extended.reader.prep_meta.call(null,reader,pos,source));
} else
{return cljs.extended.reader.parse_symbol.call(null,token);
}
});
cljs.extended.reader.read_keyword = (function read_keyword(reader,initch){var tok = cljs.extended.reader.read_token.call(null,reader,cljs.extended.reader.read_char.call(null,reader));var a = cljs.extended.reader.re_matches_STAR_.call(null,cljs.extended.reader.symbol_pattern,tok);var token = (a[0]);var ns = (a[1]);var name = (a[2]);if(((!((void 0 === ns))) && ((ns.substring((ns.length - 2),ns.length) === ":/"))) || (((name[(name.length - 1)]) === ":")) || (!((token.indexOf("::",1) === -1))))
{return cljs.extended.reader.reader_error.call(null,reader,"Invalid token: ",token);
} else
{if((!((ns == null))) && ((ns.length > 0)))
{return cljs.core.keyword.call(null,ns.substring(0,ns.indexOf("/")),name);
} else
{return cljs.core.keyword.call(null,token.substring(1));
}
}
});
cljs.extended.reader.desugar_meta = (function desugar_meta(f){if((f instanceof cljs.core.Symbol))
{return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",1014018828),f], null);
} else
{if(typeof f === 'string')
{return new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",1014018828),f], null);
} else
{if((f instanceof cljs.core.Keyword))
{return new cljs.core.PersistentArrayMap.fromArray([f,true], true, false);
} else
{if(new cljs.core.Keyword(null,"else","else",1017020587))
{return f;
} else
{return null;
}
}
}
}
});
cljs.extended.reader.wrapping_reader = (function wrapping_reader(sym){return (function (rdr,_){return cljs.core._conj.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,cljs.extended.reader.read.call(null,rdr,true,null,true)),sym);
});
});
cljs.extended.reader.throwing_reader = (function throwing_reader(msg){return (function (rdr,_){return cljs.extended.reader.reader_error.call(null,rdr,msg);
});
});
cljs.extended.reader.read_meta = (function read_meta(rdr,_){var vec__8883 = (((function (){var G__8884 = rdr;if(G__8884)
{var bit__7021__auto__ = null;if(cljs.core.truth_((function (){var or__6371__auto__ = bit__7021__auto__;if(cljs.core.truth_(or__6371__auto__))
{return or__6371__auto__;
} else
{return G__8884.cljs$extended$reader$IndexingReader$;
}
})()))
{return true;
} else
{if((!G__8884.cljs$lang$protocol_mask$partition$))
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8884);
} else
{return false;
}
}
} else
{return cljs.core.native_satisfies_QMARK_.call(null,cljs.extended.reader.IndexingReader,G__8884);
}
})())?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.extended.reader.get_line_number.call(null,rdr),(cljs.extended.reader.get_column_number.call(null,rdr) - 1)], null):null);var line = cljs.core.nth.call(null,vec__8883,0,null);var column = cljs.core.nth.call(null,vec__8883,1,null);var m = cljs.extended.reader.desugar_meta.call(null,cljs.extended.reader.read.call(null,rdr,true,null,true));if(cljs.core.map_QMARK_.call(null,m))
{} else
{cljs.extended.reader.reader_error.call(null,rdr,"Metadata must be Symbol,Keyword,String or Map");
}
var o = cljs.extended.reader.read.call(null,rdr,true,null,true);if((function (){var G__8885 = o;if(G__8885)
{var bit__7021__auto__ = (G__8885.cljs$lang$protocol_mask$partition0$ & 262144);if((bit__7021__auto__) || (G__8885.cljs$core$IWithMeta$))