@anysoftinc/anydb-sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +13 -0
  2. package/dist/anydb.datascript.core.js +336 -0
  3. package/dist/anydb.datascript.rules.js +29 -0
  4. package/dist/anydb.datascript.schema.js +35 -0
  5. package/dist/client.d.ts +1 -0
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +59 -0
  8. package/dist/cljs.core.js +38752 -0
  9. package/dist/cljs.reader.js +450 -0
  10. package/dist/cljs.tools.reader.edn.js +945 -0
  11. package/dist/cljs.tools.reader.impl.commons.js +205 -0
  12. package/dist/cljs.tools.reader.impl.errors.js +429 -0
  13. package/dist/cljs.tools.reader.impl.inspect.js +170 -0
  14. package/dist/cljs.tools.reader.impl.utils.js +413 -0
  15. package/dist/cljs.tools.reader.js +1815 -0
  16. package/dist/cljs.tools.reader.reader_types.js +826 -0
  17. package/dist/cljs_env.js +7672 -0
  18. package/dist/clojure.data.js +307 -0
  19. package/dist/clojure.edn.js +107 -0
  20. package/dist/clojure.set.js +394 -0
  21. package/dist/clojure.string.js +490 -0
  22. package/dist/clojure.walk.js +144 -0
  23. package/dist/datascript-backend.js +2 -2
  24. package/dist/datascript.built_ins.js +680 -0
  25. package/dist/datascript.conn.js +814 -0
  26. package/dist/datascript.core.js +1285 -0
  27. package/dist/datascript.db.js +4058 -0
  28. package/dist/datascript.impl.entity.js +588 -0
  29. package/dist/datascript.lru.js +213 -0
  30. package/dist/datascript.parser.js +8598 -0
  31. package/dist/datascript.pull_api.js +2287 -0
  32. package/dist/datascript.pull_parser.js +865 -0
  33. package/dist/datascript.query.js +2785 -0
  34. package/dist/datascript.serialize.js +352 -0
  35. package/dist/datascript.storage.js +50 -0
  36. package/dist/datascript.util.js +82 -0
  37. package/dist/extend_clj.core.js +134 -0
  38. package/dist/me.tonsky.persistent_sorted_set.arrays.js +54 -0
  39. package/dist/me.tonsky.persistent_sorted_set.js +2485 -0
  40. package/dist/nextauth-adapter.d.ts.map +1 -1
  41. package/dist/nextauth-adapter.js +8 -11
  42. package/package.json +5 -4
@@ -0,0 +1,826 @@
1
+ var $CLJS = require("./cljs_env");
2
+ var $jscomp = $CLJS.$jscomp;
3
+ var COMPILED = false;
4
+ require("./cljs.core.js");
5
+ require("./cljs.tools.reader.impl.utils.js");
6
+ var anydb=$CLJS.anydb || ($CLJS.anydb = {});
7
+ var clojure=$CLJS.clojure || ($CLJS.clojure = {});
8
+ var cljs=$CLJS.cljs || ($CLJS.cljs = {});
9
+ var goog=$CLJS.goog || ($CLJS.goog = {});
10
+ var datascript=$CLJS.datascript || ($CLJS.datascript = {});
11
+ var me=$CLJS.me || ($CLJS.me = {});
12
+ var extend_clj=$CLJS.extend_clj || ($CLJS.extend_clj = {});
13
+
14
+ $CLJS.SHADOW_ENV.setLoaded("cljs.tools.reader.reader_types.js");
15
+
16
+ goog.provide('cljs.tools.reader.reader_types');
17
+
18
+ /**
19
+ * @interface
20
+ */
21
+ cljs.tools.reader.reader_types.Reader = function(){};
22
+
23
+ var cljs$tools$reader$reader_types$Reader$read_char$dyn_8082 = (function (reader){
24
+ var x__5350__auto__ = (((reader == null))?null:reader);
25
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.read_char[goog.typeOf(x__5350__auto__)]);
26
+ if((!((m__5351__auto__ == null)))){
27
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5351__auto__.call(null,reader));
28
+ } else {
29
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.read_char["_"]);
30
+ if((!((m__5349__auto__ == null)))){
31
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5349__auto__.call(null,reader));
32
+ } else {
33
+ throw cljs.core.missing_protocol("Reader.read-char",reader);
34
+ }
35
+ }
36
+ });
37
+ /**
38
+ * Returns the next char from the Reader, nil if the end of stream has been reached
39
+ */
40
+ cljs.tools.reader.reader_types.read_char = (function cljs$tools$reader$reader_types$read_char(reader){
41
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$Reader$read_char$arity$1 == null)))))){
42
+ return reader.cljs$tools$reader$reader_types$Reader$read_char$arity$1(reader);
43
+ } else {
44
+ return cljs$tools$reader$reader_types$Reader$read_char$dyn_8082(reader);
45
+ }
46
+ });
47
+
48
+ var cljs$tools$reader$reader_types$Reader$peek_char$dyn_8084 = (function (reader){
49
+ var x__5350__auto__ = (((reader == null))?null:reader);
50
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.peek_char[goog.typeOf(x__5350__auto__)]);
51
+ if((!((m__5351__auto__ == null)))){
52
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5351__auto__.call(null,reader));
53
+ } else {
54
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.peek_char["_"]);
55
+ if((!((m__5349__auto__ == null)))){
56
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5349__auto__.call(null,reader));
57
+ } else {
58
+ throw cljs.core.missing_protocol("Reader.peek-char",reader);
59
+ }
60
+ }
61
+ });
62
+ /**
63
+ * Returns the next char from the Reader without removing it from the reader stream
64
+ */
65
+ cljs.tools.reader.reader_types.peek_char = (function cljs$tools$reader$reader_types$peek_char(reader){
66
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 == null)))))){
67
+ return reader.cljs$tools$reader$reader_types$Reader$peek_char$arity$1(reader);
68
+ } else {
69
+ return cljs$tools$reader$reader_types$Reader$peek_char$dyn_8084(reader);
70
+ }
71
+ });
72
+
73
+
74
+ /**
75
+ * @interface
76
+ */
77
+ cljs.tools.reader.reader_types.IPushbackReader = function(){};
78
+
79
+ var cljs$tools$reader$reader_types$IPushbackReader$unread$dyn_8090 = (function (reader,ch){
80
+ var x__5350__auto__ = (((reader == null))?null:reader);
81
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.unread[goog.typeOf(x__5350__auto__)]);
82
+ if((!((m__5351__auto__ == null)))){
83
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$2(reader,ch) : m__5351__auto__.call(null,reader,ch));
84
+ } else {
85
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.unread["_"]);
86
+ if((!((m__5349__auto__ == null)))){
87
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$2 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$2(reader,ch) : m__5349__auto__.call(null,reader,ch));
88
+ } else {
89
+ throw cljs.core.missing_protocol("IPushbackReader.unread",reader);
90
+ }
91
+ }
92
+ });
93
+ /**
94
+ * Pushes back a single character on to the stream
95
+ */
96
+ cljs.tools.reader.reader_types.unread = (function cljs$tools$reader$reader_types$unread(reader,ch){
97
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2 == null)))))){
98
+ return reader.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2(reader,ch);
99
+ } else {
100
+ return cljs$tools$reader$reader_types$IPushbackReader$unread$dyn_8090(reader,ch);
101
+ }
102
+ });
103
+
104
+
105
+ /**
106
+ * @interface
107
+ */
108
+ cljs.tools.reader.reader_types.IndexingReader = function(){};
109
+
110
+ var cljs$tools$reader$reader_types$IndexingReader$get_line_number$dyn_8097 = (function (reader){
111
+ var x__5350__auto__ = (((reader == null))?null:reader);
112
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.get_line_number[goog.typeOf(x__5350__auto__)]);
113
+ if((!((m__5351__auto__ == null)))){
114
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5351__auto__.call(null,reader));
115
+ } else {
116
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.get_line_number["_"]);
117
+ if((!((m__5349__auto__ == null)))){
118
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5349__auto__.call(null,reader));
119
+ } else {
120
+ throw cljs.core.missing_protocol("IndexingReader.get-line-number",reader);
121
+ }
122
+ }
123
+ });
124
+ /**
125
+ * Returns the line number of the next character to be read from the stream
126
+ */
127
+ cljs.tools.reader.reader_types.get_line_number = (function cljs$tools$reader$reader_types$get_line_number(reader){
128
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1 == null)))))){
129
+ return reader.cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1(reader);
130
+ } else {
131
+ return cljs$tools$reader$reader_types$IndexingReader$get_line_number$dyn_8097(reader);
132
+ }
133
+ });
134
+
135
+ var cljs$tools$reader$reader_types$IndexingReader$get_column_number$dyn_8109 = (function (reader){
136
+ var x__5350__auto__ = (((reader == null))?null:reader);
137
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.get_column_number[goog.typeOf(x__5350__auto__)]);
138
+ if((!((m__5351__auto__ == null)))){
139
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5351__auto__.call(null,reader));
140
+ } else {
141
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.get_column_number["_"]);
142
+ if((!((m__5349__auto__ == null)))){
143
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5349__auto__.call(null,reader));
144
+ } else {
145
+ throw cljs.core.missing_protocol("IndexingReader.get-column-number",reader);
146
+ }
147
+ }
148
+ });
149
+ /**
150
+ * Returns the column number of the next character to be read from the stream
151
+ */
152
+ cljs.tools.reader.reader_types.get_column_number = (function cljs$tools$reader$reader_types$get_column_number(reader){
153
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1 == null)))))){
154
+ return reader.cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1(reader);
155
+ } else {
156
+ return cljs$tools$reader$reader_types$IndexingReader$get_column_number$dyn_8109(reader);
157
+ }
158
+ });
159
+
160
+ var cljs$tools$reader$reader_types$IndexingReader$get_file_name$dyn_8113 = (function (reader){
161
+ var x__5350__auto__ = (((reader == null))?null:reader);
162
+ var m__5351__auto__ = (cljs.tools.reader.reader_types.get_file_name[goog.typeOf(x__5350__auto__)]);
163
+ if((!((m__5351__auto__ == null)))){
164
+ return (m__5351__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5351__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5351__auto__.call(null,reader));
165
+ } else {
166
+ var m__5349__auto__ = (cljs.tools.reader.reader_types.get_file_name["_"]);
167
+ if((!((m__5349__auto__ == null)))){
168
+ return (m__5349__auto__.cljs$core$IFn$_invoke$arity$1 ? m__5349__auto__.cljs$core$IFn$_invoke$arity$1(reader) : m__5349__auto__.call(null,reader));
169
+ } else {
170
+ throw cljs.core.missing_protocol("IndexingReader.get-file-name",reader);
171
+ }
172
+ }
173
+ });
174
+ /**
175
+ * Returns the file name the reader is reading from, or nil
176
+ */
177
+ cljs.tools.reader.reader_types.get_file_name = (function cljs$tools$reader$reader_types$get_file_name(reader){
178
+ if((((!((reader == null)))) && ((!((reader.cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1 == null)))))){
179
+ return reader.cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1(reader);
180
+ } else {
181
+ return cljs$tools$reader$reader_types$IndexingReader$get_file_name$dyn_8113(reader);
182
+ }
183
+ });
184
+
185
+
186
+ /**
187
+ * @constructor
188
+ * @implements {cljs.tools.reader.reader_types.Reader}
189
+ */
190
+ cljs.tools.reader.reader_types.StringReader = (function (s,s_len,s_pos){
191
+ this.s = s;
192
+ this.s_len = s_len;
193
+ this.s_pos = s_pos;
194
+ });
195
+ (cljs.tools.reader.reader_types.StringReader.prototype.cljs$tools$reader$reader_types$Reader$ = cljs.core.PROTOCOL_SENTINEL);
196
+
197
+ (cljs.tools.reader.reader_types.StringReader.prototype.cljs$tools$reader$reader_types$Reader$read_char$arity$1 = (function (reader){
198
+ var self__ = this;
199
+ var reader__$1 = this;
200
+ if((self__.s_len > self__.s_pos)){
201
+ var r = self__.s.charAt(self__.s_pos);
202
+ (self__.s_pos = (self__.s_pos + (1)));
203
+
204
+ return r;
205
+ } else {
206
+ return null;
207
+ }
208
+ }));
209
+
210
+ (cljs.tools.reader.reader_types.StringReader.prototype.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 = (function (reader){
211
+ var self__ = this;
212
+ var reader__$1 = this;
213
+ if((self__.s_len > self__.s_pos)){
214
+ return self__.s.charAt(self__.s_pos);
215
+ } else {
216
+ return null;
217
+ }
218
+ }));
219
+
220
+ (cljs.tools.reader.reader_types.StringReader.getBasis = (function (){
221
+ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"s","s",-948495851,null),new cljs.core.Symbol(null,"s-len","s-len",1869978331,null),cljs.core.with_meta(new cljs.core.Symbol(null,"s-pos","s-pos",-540562492,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null))], null);
222
+ }));
223
+
224
+ (cljs.tools.reader.reader_types.StringReader.cljs$lang$type = true);
225
+
226
+ (cljs.tools.reader.reader_types.StringReader.cljs$lang$ctorStr = "cljs.tools.reader.reader-types/StringReader");
227
+
228
+ (cljs.tools.reader.reader_types.StringReader.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
229
+ return cljs.core._write(writer__5288__auto__,"cljs.tools.reader.reader-types/StringReader");
230
+ }));
231
+
232
+ /**
233
+ * Positional factory function for cljs.tools.reader.reader-types/StringReader.
234
+ */
235
+ cljs.tools.reader.reader_types.__GT_StringReader = (function cljs$tools$reader$reader_types$__GT_StringReader(s,s_len,s_pos){
236
+ return (new cljs.tools.reader.reader_types.StringReader(s,s_len,s_pos));
237
+ });
238
+
239
+
240
+ /**
241
+ * @constructor
242
+ * @implements {cljs.tools.reader.reader_types.Reader}
243
+ */
244
+ cljs.tools.reader.reader_types.NodeReadableReader = (function (readable,buf){
245
+ this.readable = readable;
246
+ this.buf = buf;
247
+ });
248
+ (cljs.tools.reader.reader_types.NodeReadableReader.prototype.cljs$tools$reader$reader_types$Reader$ = cljs.core.PROTOCOL_SENTINEL);
249
+
250
+ (cljs.tools.reader.reader_types.NodeReadableReader.prototype.cljs$tools$reader$reader_types$Reader$read_char$arity$1 = (function (reader){
251
+ var self__ = this;
252
+ var reader__$1 = this;
253
+ if(cljs.core.truth_(self__.buf)){
254
+ var c = (self__.buf[(0)]);
255
+ (self__.buf = null);
256
+
257
+ return cljs.tools.reader.impl.utils.char$(c);
258
+ } else {
259
+ var c = cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.readable.read((1)));
260
+ if(cljs.core.truth_(c)){
261
+ return cljs.tools.reader.impl.utils.char$(c);
262
+ } else {
263
+ return null;
264
+ }
265
+ }
266
+ }));
267
+
268
+ (cljs.tools.reader.reader_types.NodeReadableReader.prototype.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 = (function (reader){
269
+ var self__ = this;
270
+ var reader__$1 = this;
271
+ if(cljs.core.truth_(self__.buf)){
272
+ } else {
273
+ (self__.buf = cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.readable.read((1))));
274
+ }
275
+
276
+ if(cljs.core.truth_(self__.buf)){
277
+ return cljs.tools.reader.impl.utils.char$((self__.buf[(0)]));
278
+ } else {
279
+ return null;
280
+ }
281
+ }));
282
+
283
+ (cljs.tools.reader.reader_types.NodeReadableReader.getBasis = (function (){
284
+ return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"readable","readable",2113054478,null),cljs.core.with_meta(new cljs.core.Symbol(null,"buf","buf",1426618187,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null))], null);
285
+ }));
286
+
287
+ (cljs.tools.reader.reader_types.NodeReadableReader.cljs$lang$type = true);
288
+
289
+ (cljs.tools.reader.reader_types.NodeReadableReader.cljs$lang$ctorStr = "cljs.tools.reader.reader-types/NodeReadableReader");
290
+
291
+ (cljs.tools.reader.reader_types.NodeReadableReader.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
292
+ return cljs.core._write(writer__5288__auto__,"cljs.tools.reader.reader-types/NodeReadableReader");
293
+ }));
294
+
295
+ /**
296
+ * Positional factory function for cljs.tools.reader.reader-types/NodeReadableReader.
297
+ */
298
+ cljs.tools.reader.reader_types.__GT_NodeReadableReader = (function cljs$tools$reader$reader_types$__GT_NodeReadableReader(readable,buf){
299
+ return (new cljs.tools.reader.reader_types.NodeReadableReader(readable,buf));
300
+ });
301
+
302
+
303
+ /**
304
+ * @constructor
305
+ * @implements {cljs.tools.reader.reader_types.Reader}
306
+ * @implements {cljs.tools.reader.reader_types.IPushbackReader}
307
+ */
308
+ cljs.tools.reader.reader_types.PushbackReader = (function (rdr,buf,buf_len,buf_pos){
309
+ this.rdr = rdr;
310
+ this.buf = buf;
311
+ this.buf_len = buf_len;
312
+ this.buf_pos = buf_pos;
313
+ });
314
+ (cljs.tools.reader.reader_types.PushbackReader.prototype.cljs$tools$reader$reader_types$Reader$ = cljs.core.PROTOCOL_SENTINEL);
315
+
316
+ (cljs.tools.reader.reader_types.PushbackReader.prototype.cljs$tools$reader$reader_types$Reader$read_char$arity$1 = (function (reader){
317
+ var self__ = this;
318
+ var reader__$1 = this;
319
+ var c = (((self__.buf_pos < self__.buf_len))?(self__.buf[self__.buf_pos]):self__.rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null));
320
+ if((self__.buf_pos < self__.buf_len)){
321
+ (self__.buf_pos = (self__.buf_pos + (1)));
322
+ } else {
323
+ }
324
+
325
+ return cljs.tools.reader.impl.utils.char$(c);
326
+ }));
327
+
328
+ (cljs.tools.reader.reader_types.PushbackReader.prototype.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 = (function (reader){
329
+ var self__ = this;
330
+ var reader__$1 = this;
331
+ var c = (((self__.buf_pos < self__.buf_len))?(self__.buf[self__.buf_pos]):self__.rdr.cljs$tools$reader$reader_types$Reader$peek_char$arity$1(null));
332
+ return cljs.tools.reader.impl.utils.char$(c);
333
+ }));
334
+
335
+ (cljs.tools.reader.reader_types.PushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$ = cljs.core.PROTOCOL_SENTINEL);
336
+
337
+ (cljs.tools.reader.reader_types.PushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2 = (function (reader,ch){
338
+ var self__ = this;
339
+ var reader__$1 = this;
340
+ if(cljs.core.truth_(ch)){
341
+ if((self__.buf_pos === (0))){
342
+ throw (new Error("Pushback buffer is full"));
343
+ } else {
344
+ }
345
+
346
+ (self__.buf_pos = (self__.buf_pos - (1)));
347
+
348
+ return (self__.buf[self__.buf_pos] = ch);
349
+ } else {
350
+ return null;
351
+ }
352
+ }));
353
+
354
+ (cljs.tools.reader.reader_types.PushbackReader.getBasis = (function (){
355
+ return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.with_meta(new cljs.core.Symbol(null,"rdr","rdr",190007785,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"not-native","not-native",-236392494,null)], null)),new cljs.core.Symbol(null,"buf","buf",1426618187,null),new cljs.core.Symbol(null,"buf-len","buf-len",404510846,null),cljs.core.with_meta(new cljs.core.Symbol(null,"buf-pos","buf-pos",-807229033,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null))], null);
356
+ }));
357
+
358
+ (cljs.tools.reader.reader_types.PushbackReader.cljs$lang$type = true);
359
+
360
+ (cljs.tools.reader.reader_types.PushbackReader.cljs$lang$ctorStr = "cljs.tools.reader.reader-types/PushbackReader");
361
+
362
+ (cljs.tools.reader.reader_types.PushbackReader.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
363
+ return cljs.core._write(writer__5288__auto__,"cljs.tools.reader.reader-types/PushbackReader");
364
+ }));
365
+
366
+ /**
367
+ * Positional factory function for cljs.tools.reader.reader-types/PushbackReader.
368
+ */
369
+ cljs.tools.reader.reader_types.__GT_PushbackReader = (function cljs$tools$reader$reader_types$__GT_PushbackReader(rdr,buf,buf_len,buf_pos){
370
+ return (new cljs.tools.reader.reader_types.PushbackReader(rdr,buf,buf_len,buf_pos));
371
+ });
372
+
373
+ cljs.tools.reader.reader_types.normalize_newline = (function cljs$tools$reader$reader_types$normalize_newline(rdr,ch){
374
+ if(("\r" === ch)){
375
+ var c = rdr.cljs$tools$reader$reader_types$Reader$peek_char$arity$1(null);
376
+ if(((("\f" === c)) || (("\n" === c)))){
377
+ rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null);
378
+ } else {
379
+ }
380
+
381
+ return "\n";
382
+ } else {
383
+ return ch;
384
+ }
385
+ });
386
+
387
+ /**
388
+ * @constructor
389
+ * @implements {cljs.tools.reader.reader_types.IndexingReader}
390
+ * @implements {cljs.tools.reader.reader_types.Reader}
391
+ * @implements {cljs.tools.reader.reader_types.IPushbackReader}
392
+ */
393
+ cljs.tools.reader.reader_types.IndexingPushbackReader = (function (rdr,line,column,line_start_QMARK_,prev,prev_column,file_name){
394
+ this.rdr = rdr;
395
+ this.line = line;
396
+ this.column = column;
397
+ this.line_start_QMARK_ = line_start_QMARK_;
398
+ this.prev = prev;
399
+ this.prev_column = prev_column;
400
+ this.file_name = file_name;
401
+ });
402
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$ = cljs.core.PROTOCOL_SENTINEL);
403
+
404
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$read_char$arity$1 = (function (reader){
405
+ var self__ = this;
406
+ var reader__$1 = this;
407
+ var temp__5804__auto__ = self__.rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null);
408
+ if(cljs.core.truth_(temp__5804__auto__)){
409
+ var ch = temp__5804__auto__;
410
+ var ch__$1 = cljs.tools.reader.reader_types.normalize_newline(self__.rdr,ch);
411
+ (self__.prev = self__.line_start_QMARK_);
412
+
413
+ (self__.line_start_QMARK_ = cljs.tools.reader.impl.utils.newline_QMARK_(ch__$1));
414
+
415
+ if(cljs.core.truth_(self__.line_start_QMARK_)){
416
+ (self__.prev_column = self__.column);
417
+
418
+ (self__.column = (0));
419
+
420
+ (self__.line = (self__.line + (1)));
421
+ } else {
422
+ }
423
+
424
+ (self__.column = (self__.column + (1)));
425
+
426
+ return ch__$1;
427
+ } else {
428
+ return null;
429
+ }
430
+ }));
431
+
432
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 = (function (reader){
433
+ var self__ = this;
434
+ var reader__$1 = this;
435
+ return self__.rdr.cljs$tools$reader$reader_types$Reader$peek_char$arity$1(null);
436
+ }));
437
+
438
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$ = cljs.core.PROTOCOL_SENTINEL);
439
+
440
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2 = (function (reader,ch){
441
+ var self__ = this;
442
+ var reader__$1 = this;
443
+ if(cljs.core.truth_(self__.line_start_QMARK_)){
444
+ (self__.line = (self__.line - (1)));
445
+
446
+ (self__.column = self__.prev_column);
447
+ } else {
448
+ (self__.column = (self__.column - (1)));
449
+ }
450
+
451
+ (self__.line_start_QMARK_ = self__.prev);
452
+
453
+ return self__.rdr.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2(null,ch);
454
+ }));
455
+
456
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$ = cljs.core.PROTOCOL_SENTINEL);
457
+
458
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1 = (function (reader){
459
+ var self__ = this;
460
+ var reader__$1 = this;
461
+ return (self__.line | (0));
462
+ }));
463
+
464
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1 = (function (reader){
465
+ var self__ = this;
466
+ var reader__$1 = this;
467
+ return (self__.column | (0));
468
+ }));
469
+
470
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1 = (function (reader){
471
+ var self__ = this;
472
+ var reader__$1 = this;
473
+ return self__.file_name;
474
+ }));
475
+
476
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.getBasis = (function (){
477
+ return new cljs.core.PersistentVector(null, 7, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.with_meta(new cljs.core.Symbol(null,"rdr","rdr",190007785,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"not-native","not-native",-236392494,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"line","line",1852876762,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"column","column",-576213674,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"line-start?","line-start?",1357012474,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"prev","prev",43462301,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"prev-column","prev-column",324083974,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),new cljs.core.Symbol(null,"file-name","file-name",-13685732,null)], null);
478
+ }));
479
+
480
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.cljs$lang$type = true);
481
+
482
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.cljs$lang$ctorStr = "cljs.tools.reader.reader-types/IndexingPushbackReader");
483
+
484
+ (cljs.tools.reader.reader_types.IndexingPushbackReader.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
485
+ return cljs.core._write(writer__5288__auto__,"cljs.tools.reader.reader-types/IndexingPushbackReader");
486
+ }));
487
+
488
+ /**
489
+ * Positional factory function for cljs.tools.reader.reader-types/IndexingPushbackReader.
490
+ */
491
+ cljs.tools.reader.reader_types.__GT_IndexingPushbackReader = (function cljs$tools$reader$reader_types$__GT_IndexingPushbackReader(rdr,line,column,line_start_QMARK_,prev,prev_column,file_name){
492
+ return (new cljs.tools.reader.reader_types.IndexingPushbackReader(rdr,line,column,line_start_QMARK_,prev,prev_column,file_name));
493
+ });
494
+
495
+ /**
496
+ * Returns an object of the same type and value as `obj`, with its
497
+ * metadata merged over `m`.
498
+ */
499
+ cljs.tools.reader.reader_types.merge_meta = (function cljs$tools$reader$reader_types$merge_meta(obj,m){
500
+ var orig_meta = cljs.core.meta(obj);
501
+ return cljs.core.with_meta(obj,cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([m,cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(orig_meta,new cljs.core.Keyword(null,"source","source",-433931539))], 0)));
502
+ });
503
+ /**
504
+ * Returns a string containing the contents of the top most source
505
+ * logging frame.
506
+ */
507
+ cljs.tools.reader.reader_types.peek_source_log = (function cljs$tools$reader$reader_types$peek_source_log(frames){
508
+ return cljs.core.subs.cljs$core$IFn$_invoke$arity$2(cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"buffer","buffer",617295198).cljs$core$IFn$_invoke$arity$1(frames)),cljs.core.first(new cljs.core.Keyword(null,"offset","offset",296498311).cljs$core$IFn$_invoke$arity$1(frames)));
509
+ });
510
+ /**
511
+ * Logs `char` to all currently active source logging frames.
512
+ */
513
+ cljs.tools.reader.reader_types.log_source_char = (function cljs$tools$reader$reader_types$log_source_char(frames,char$){
514
+ var temp__5804__auto__ = new cljs.core.Keyword(null,"buffer","buffer",617295198).cljs$core$IFn$_invoke$arity$1(frames);
515
+ if(cljs.core.truth_(temp__5804__auto__)){
516
+ var buffer = temp__5804__auto__;
517
+ return buffer.append(char$);
518
+ } else {
519
+ return null;
520
+ }
521
+ });
522
+ /**
523
+ * Removes the last logged character from all currently active source
524
+ * logging frames. Called when pushing a character back.
525
+ */
526
+ cljs.tools.reader.reader_types.drop_last_logged_char = (function cljs$tools$reader$reader_types$drop_last_logged_char(frames){
527
+ var temp__5804__auto__ = new cljs.core.Keyword(null,"buffer","buffer",617295198).cljs$core$IFn$_invoke$arity$1(frames);
528
+ if(cljs.core.truth_(temp__5804__auto__)){
529
+ var buffer = temp__5804__auto__;
530
+ return buffer.set(cljs.core.subs.cljs$core$IFn$_invoke$arity$3(cljs.core.str.cljs$core$IFn$_invoke$arity$1(buffer),(0),(buffer.getLength() - (1))));
531
+ } else {
532
+ return null;
533
+ }
534
+ });
535
+
536
+ /**
537
+ * @constructor
538
+ * @implements {cljs.tools.reader.reader_types.IndexingReader}
539
+ * @implements {cljs.tools.reader.reader_types.Reader}
540
+ * @implements {cljs.tools.reader.reader_types.IPushbackReader}
541
+ */
542
+ cljs.tools.reader.reader_types.SourceLoggingPushbackReader = (function (rdr,line,column,line_start_QMARK_,prev,prev_column,file_name,frames){
543
+ this.rdr = rdr;
544
+ this.line = line;
545
+ this.column = column;
546
+ this.line_start_QMARK_ = line_start_QMARK_;
547
+ this.prev = prev;
548
+ this.prev_column = prev_column;
549
+ this.file_name = file_name;
550
+ this.frames = frames;
551
+ });
552
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$ = cljs.core.PROTOCOL_SENTINEL);
553
+
554
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$read_char$arity$1 = (function (reader){
555
+ var self__ = this;
556
+ var reader__$1 = this;
557
+ var temp__5804__auto__ = self__.rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null);
558
+ if(cljs.core.truth_(temp__5804__auto__)){
559
+ var ch = temp__5804__auto__;
560
+ var ch__$1 = cljs.tools.reader.reader_types.normalize_newline(self__.rdr,ch);
561
+ (self__.prev = self__.line_start_QMARK_);
562
+
563
+ (self__.line_start_QMARK_ = cljs.tools.reader.impl.utils.newline_QMARK_(ch__$1));
564
+
565
+ if(cljs.core.truth_(self__.line_start_QMARK_)){
566
+ (self__.prev_column = self__.column);
567
+
568
+ (self__.column = (0));
569
+
570
+ (self__.line = (self__.line + (1)));
571
+ } else {
572
+ }
573
+
574
+ (self__.column = (self__.column + (1)));
575
+
576
+ cljs.tools.reader.reader_types.log_source_char(cljs.core.deref(self__.frames),ch__$1);
577
+
578
+ return ch__$1;
579
+ } else {
580
+ return null;
581
+ }
582
+ }));
583
+
584
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$Reader$peek_char$arity$1 = (function (reader){
585
+ var self__ = this;
586
+ var reader__$1 = this;
587
+ return self__.rdr.cljs$tools$reader$reader_types$Reader$peek_char$arity$1(null);
588
+ }));
589
+
590
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$ = cljs.core.PROTOCOL_SENTINEL);
591
+
592
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2 = (function (reader,ch){
593
+ var self__ = this;
594
+ var reader__$1 = this;
595
+ if(cljs.core.truth_(self__.line_start_QMARK_)){
596
+ (self__.line = (self__.line - (1)));
597
+
598
+ (self__.column = self__.prev_column);
599
+ } else {
600
+ (self__.column = (self__.column - (1)));
601
+ }
602
+
603
+ (self__.line_start_QMARK_ = self__.prev);
604
+
605
+ if(cljs.core.truth_(ch)){
606
+ cljs.tools.reader.reader_types.drop_last_logged_char(cljs.core.deref(self__.frames));
607
+ } else {
608
+ }
609
+
610
+ return self__.rdr.cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2(null,ch);
611
+ }));
612
+
613
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$ = cljs.core.PROTOCOL_SENTINEL);
614
+
615
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1 = (function (reader){
616
+ var self__ = this;
617
+ var reader__$1 = this;
618
+ return (self__.line | (0));
619
+ }));
620
+
621
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1 = (function (reader){
622
+ var self__ = this;
623
+ var reader__$1 = this;
624
+ return (self__.column | (0));
625
+ }));
626
+
627
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.prototype.cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1 = (function (reader){
628
+ var self__ = this;
629
+ var reader__$1 = this;
630
+ return self__.file_name;
631
+ }));
632
+
633
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.getBasis = (function (){
634
+ return new cljs.core.PersistentVector(null, 8, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.with_meta(new cljs.core.Symbol(null,"rdr","rdr",190007785,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"not-native","not-native",-236392494,null)], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"line","line",1852876762,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"column","column",-576213674,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"line-start?","line-start?",1357012474,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"prev","prev",43462301,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),cljs.core.with_meta(new cljs.core.Symbol(null,"prev-column","prev-column",324083974,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"mutable","mutable",875778266),true], null)),new cljs.core.Symbol(null,"file-name","file-name",-13685732,null),new cljs.core.Symbol(null,"frames","frames",-888748272,null)], null);
635
+ }));
636
+
637
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.cljs$lang$type = true);
638
+
639
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.cljs$lang$ctorStr = "cljs.tools.reader.reader-types/SourceLoggingPushbackReader");
640
+
641
+ (cljs.tools.reader.reader_types.SourceLoggingPushbackReader.cljs$lang$ctorPrWriter = (function (this__5287__auto__,writer__5288__auto__,opt__5289__auto__){
642
+ return cljs.core._write(writer__5288__auto__,"cljs.tools.reader.reader-types/SourceLoggingPushbackReader");
643
+ }));
644
+
645
+ /**
646
+ * Positional factory function for cljs.tools.reader.reader-types/SourceLoggingPushbackReader.
647
+ */
648
+ cljs.tools.reader.reader_types.__GT_SourceLoggingPushbackReader = (function cljs$tools$reader$reader_types$__GT_SourceLoggingPushbackReader(rdr,line,column,line_start_QMARK_,prev,prev_column,file_name,frames){
649
+ return (new cljs.tools.reader.reader_types.SourceLoggingPushbackReader(rdr,line,column,line_start_QMARK_,prev,prev_column,file_name,frames));
650
+ });
651
+
652
+ /**
653
+ * Returns true if the reader satisfies IndexingReader
654
+ */
655
+ cljs.tools.reader.reader_types.indexing_reader_QMARK_ = (function cljs$tools$reader$reader_types$indexing_reader_QMARK_(rdr){
656
+ if((!((rdr == null)))){
657
+ if(((false) || ((cljs.core.PROTOCOL_SENTINEL === rdr.cljs$tools$reader$reader_types$IndexingReader$)))){
658
+ return true;
659
+ } else {
660
+ return false;
661
+ }
662
+ } else {
663
+ return false;
664
+ }
665
+ });
666
+ /**
667
+ * Creates a StringReader from a given string
668
+ */
669
+ cljs.tools.reader.reader_types.string_reader = (function cljs$tools$reader$reader_types$string_reader(s){
670
+ return (new cljs.tools.reader.reader_types.StringReader(s,cljs.core.count(s),(0)));
671
+ });
672
+ /**
673
+ * Creates a PushbackReader from a given string
674
+ */
675
+ cljs.tools.reader.reader_types.string_push_back_reader = (function cljs$tools$reader$reader_types$string_push_back_reader(var_args){
676
+ var G__7999 = arguments.length;
677
+ switch (G__7999) {
678
+ case 1:
679
+ return cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
680
+
681
+ break;
682
+ case 2:
683
+ return cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
684
+
685
+ break;
686
+ default:
687
+ throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
688
+
689
+ }
690
+ });
691
+
692
+ (cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$1 = (function (s){
693
+ return cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$2(s,(1));
694
+ }));
695
+
696
+ (cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$2 = (function (s,buf_len){
697
+ return (new cljs.tools.reader.reader_types.PushbackReader(cljs.tools.reader.reader_types.string_reader(s),cljs.core.object_array.cljs$core$IFn$_invoke$arity$1(buf_len),buf_len,buf_len));
698
+ }));
699
+
700
+ (cljs.tools.reader.reader_types.string_push_back_reader.cljs$lang$maxFixedArity = 2);
701
+
702
+ cljs.tools.reader.reader_types.node_readable_push_back_reader = (function cljs$tools$reader$reader_types$node_readable_push_back_reader(readable){
703
+ return (new cljs.tools.reader.reader_types.PushbackReader((new cljs.tools.reader.reader_types.NodeReadableReader(readable,null)),cljs.core.object_array.cljs$core$IFn$_invoke$arity$1((1)),(1),(1)));
704
+ });
705
+ /**
706
+ * Creates an IndexingPushbackReader from a given string or PushbackReader
707
+ */
708
+ cljs.tools.reader.reader_types.indexing_push_back_reader = (function cljs$tools$reader$reader_types$indexing_push_back_reader(var_args){
709
+ var G__8004 = arguments.length;
710
+ switch (G__8004) {
711
+ case 1:
712
+ return cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
713
+
714
+ break;
715
+ case 2:
716
+ return cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
717
+
718
+ break;
719
+ case 3:
720
+ return cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
721
+
722
+ break;
723
+ default:
724
+ throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
725
+
726
+ }
727
+ });
728
+
729
+ (cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$1 = (function (s_or_rdr){
730
+ return cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$2(s_or_rdr,(1));
731
+ }));
732
+
733
+ (cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$2 = (function (s_or_rdr,buf_len){
734
+ return cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$3(s_or_rdr,buf_len,null);
735
+ }));
736
+
737
+ (cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$core$IFn$_invoke$arity$3 = (function (s_or_rdr,buf_len,file_name){
738
+ return (new cljs.tools.reader.reader_types.IndexingPushbackReader(((typeof s_or_rdr === 'string')?cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$2(s_or_rdr,buf_len):s_or_rdr),(1),(1),true,null,(0),file_name));
739
+ }));
740
+
741
+ (cljs.tools.reader.reader_types.indexing_push_back_reader.cljs$lang$maxFixedArity = 3);
742
+
743
+ /**
744
+ * Creates a SourceLoggingPushbackReader from a given string or PushbackReader
745
+ */
746
+ cljs.tools.reader.reader_types.source_logging_push_back_reader = (function cljs$tools$reader$reader_types$source_logging_push_back_reader(var_args){
747
+ var G__8008 = arguments.length;
748
+ switch (G__8008) {
749
+ case 1:
750
+ return cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
751
+
752
+ break;
753
+ case 2:
754
+ return cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
755
+
756
+ break;
757
+ case 3:
758
+ return cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
759
+
760
+ break;
761
+ default:
762
+ throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
763
+
764
+ }
765
+ });
766
+
767
+ (cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$1 = (function (s_or_rdr){
768
+ return cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$2(s_or_rdr,(1));
769
+ }));
770
+
771
+ (cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$2 = (function (s_or_rdr,buf_len){
772
+ return cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$3(s_or_rdr,buf_len,null);
773
+ }));
774
+
775
+ (cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$core$IFn$_invoke$arity$3 = (function (s_or_rdr,buf_len,file_name){
776
+ return (new cljs.tools.reader.reader_types.SourceLoggingPushbackReader(((typeof s_or_rdr === 'string')?cljs.tools.reader.reader_types.string_push_back_reader.cljs$core$IFn$_invoke$arity$2(s_or_rdr,buf_len):s_or_rdr),(1),(1),true,null,(0),file_name,cljs.core.atom.cljs$core$IFn$_invoke$arity$1(new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"buffer","buffer",617295198),(new goog.string.StringBuffer()),new cljs.core.Keyword(null,"offset","offset",296498311),cljs.core.list((0))], null))));
777
+ }));
778
+
779
+ (cljs.tools.reader.reader_types.source_logging_push_back_reader.cljs$lang$maxFixedArity = 3);
780
+
781
+ /**
782
+ * Reads a line from the reader or from *in* if no reader is specified
783
+ */
784
+ cljs.tools.reader.reader_types.read_line = (function cljs$tools$reader$reader_types$read_line(rdr){
785
+ var c = rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null);
786
+ var s = (new goog.string.StringBuffer());
787
+ while(true){
788
+ if(cljs.tools.reader.impl.utils.newline_QMARK_(c)){
789
+ return cljs.core.str.cljs$core$IFn$_invoke$arity$1(s);
790
+ } else {
791
+ var G__8184 = rdr.cljs$tools$reader$reader_types$Reader$read_char$arity$1(null);
792
+ var G__8185 = s.append(c);
793
+ c = G__8184;
794
+ s = G__8185;
795
+ continue;
796
+ }
797
+ break;
798
+ }
799
+ });
800
+ cljs.tools.reader.reader_types.source_logging_reader_QMARK_ = (function cljs$tools$reader$reader_types$source_logging_reader_QMARK_(rdr){
801
+ return (rdr instanceof cljs.tools.reader.reader_types.SourceLoggingPushbackReader);
802
+ });
803
+ /**
804
+ * Returns true if rdr is an IndexingReader and the current char starts a new line
805
+ */
806
+ cljs.tools.reader.reader_types.line_start_QMARK_ = (function cljs$tools$reader$reader_types$line_start_QMARK_(rdr){
807
+ if(cljs.tools.reader.reader_types.indexing_reader_QMARK_(rdr)){
808
+ return ((1) === rdr.cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1(null));
809
+ } else {
810
+ return null;
811
+ }
812
+ });
813
+ cljs.tools.reader.reader_types.log_source_STAR_ = (function cljs$tools$reader$reader_types$log_source_STAR_(reader,f){
814
+ var buffer = new cljs.core.Keyword(null,"buffer","buffer",617295198).cljs$core$IFn$_invoke$arity$1(cljs.core.deref(reader.frames));
815
+ try{cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$variadic(reader.frames,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"offset","offset",296498311)], null),cljs.core.conj,cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([buffer.getLength()], 0));
816
+
817
+ var ret = (f.cljs$core$IFn$_invoke$arity$0 ? f.cljs$core$IFn$_invoke$arity$0() : f.call(null));
818
+ if((((!((ret == null))))?(((((ret.cljs$lang$protocol_mask$partition0$ & (131072))) || ((cljs.core.PROTOCOL_SENTINEL === ret.cljs$core$IMeta$))))?true:false):false)){
819
+ return cljs.tools.reader.reader_types.merge_meta(ret,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"source","source",-433931539),cljs.tools.reader.reader_types.peek_source_log(cljs.core.deref(reader.frames))], null));
820
+ } else {
821
+ return ret;
822
+ }
823
+ }finally {cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$4(reader.frames,cljs.core.update_in,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"offset","offset",296498311)], null),cljs.core.rest);
824
+ }});
825
+
826
+ //# sourceMappingURL=cljs.tools.reader.reader_types.js.map