UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

1,099 lines (960 loc) 702 kB
goog.provide('com.rpl.specter.impl'); com.rpl.specter.impl.NONE = new cljs.core.Keyword("com.rpl.specter.impl","NONE","com.rpl.specter.impl/NONE",1085349969); com.rpl.specter.impl.spy = (function com$rpl$specter$impl$spy(e){ cljs.core.println.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["SPY:"], 0)); cljs.core.println.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([e], 0))], 0)); return e; }); com.rpl.specter.impl.smart_str_STAR_ = (function com$rpl$specter$impl$smart_str_STAR_(o){ if(cljs.core.coll_QMARK_(o)){ return cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([o], 0)); } else { return cljs.core.str.cljs$core$IFn$_invoke$arity$1(o); } }); com.rpl.specter.impl.smart_str = (function com$rpl$specter$impl$smart_str(var_args){ var args__4742__auto__ = []; var len__4736__auto___52061 = arguments.length; var i__4737__auto___52062 = (0); while(true){ if((i__4737__auto___52062 < len__4736__auto___52061)){ args__4742__auto__.push((arguments[i__4737__auto___52062])); var G__52063 = (i__4737__auto___52062 + (1)); i__4737__auto___52062 = G__52063; continue; } else { } break; } var argseq__4743__auto__ = ((((0) < args__4742__auto__.length))?(new cljs.core.IndexedSeq(args__4742__auto__.slice((0)),(0),null)):null); return com.rpl.specter.impl.smart_str.cljs$core$IFn$_invoke$arity$variadic(argseq__4743__auto__); }); (com.rpl.specter.impl.smart_str.cljs$core$IFn$_invoke$arity$variadic = (function (elems){ return cljs.core.apply.cljs$core$IFn$_invoke$arity$2(cljs.core.str,cljs.core.map.cljs$core$IFn$_invoke$arity$2(com.rpl.specter.impl.smart_str_STAR_,elems)); })); (com.rpl.specter.impl.smart_str.cljs$lang$maxFixedArity = (0)); /** @this {Function} */ (com.rpl.specter.impl.smart_str.cljs$lang$applyTo = (function (seq49029){ var self__4724__auto__ = this; return self__4724__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq(seq49029)); })); com.rpl.specter.impl.fast_constantly = (function com$rpl$specter$impl$fast_constantly(v){ return (function() { var G__52064 = null; var G__52064__0 = (function (){ return v; }); var G__52064__1 = (function (a1){ return v; }); var G__52064__2 = (function (a1,a2){ return v; }); var G__52064__3 = (function (a1,a2,a3){ return v; }); var G__52064__4 = (function (a1,a2,a3,a4){ return v; }); var G__52064__5 = (function (a1,a2,a3,a4,a5){ return v; }); var G__52064__6 = (function (a1,a2,a3,a4,a5,a6){ return v; }); var G__52064__7 = (function (a1,a2,a3,a4,a5,a6,a7){ return v; }); var G__52064__8 = (function (a1,a2,a3,a4,a5,a6,a7,a8){ return v; }); var G__52064__9 = (function (a1,a2,a3,a4,a5,a6,a7,a8,a9){ return v; }); var G__52064__10 = (function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){ return v; }); var G__52064__11 = (function() { var G__52074__delegate = function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r){ return v; }; var G__52074 = function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,var_args){ var r = null; if (arguments.length > 10) { var G__52076__i = 0, G__52076__a = new Array(arguments.length - 10); while (G__52076__i < G__52076__a.length) {G__52076__a[G__52076__i] = arguments[G__52076__i + 10]; ++G__52076__i;} r = new cljs.core.IndexedSeq(G__52076__a,0,null); } return G__52074__delegate.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r);}; G__52074.cljs$lang$maxFixedArity = 10; G__52074.cljs$lang$applyTo = (function (arglist__52077){ var a1 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a2 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a3 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a4 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a5 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a6 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a7 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a8 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a9 = cljs.core.first(arglist__52077); arglist__52077 = cljs.core.next(arglist__52077); var a10 = cljs.core.first(arglist__52077); var r = cljs.core.rest(arglist__52077); return G__52074__delegate(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r); }); G__52074.cljs$core$IFn$_invoke$arity$variadic = G__52074__delegate; return G__52074; })() ; G__52064 = function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,var_args){ var r = var_args; switch(arguments.length){ case 0: return G__52064__0.call(this); case 1: return G__52064__1.call(this,a1); case 2: return G__52064__2.call(this,a1,a2); case 3: return G__52064__3.call(this,a1,a2,a3); case 4: return G__52064__4.call(this,a1,a2,a3,a4); case 5: return G__52064__5.call(this,a1,a2,a3,a4,a5); case 6: return G__52064__6.call(this,a1,a2,a3,a4,a5,a6); case 7: return G__52064__7.call(this,a1,a2,a3,a4,a5,a6,a7); case 8: return G__52064__8.call(this,a1,a2,a3,a4,a5,a6,a7,a8); case 9: return G__52064__9.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9); case 10: return G__52064__10.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); default: var G__52081 = null; if (arguments.length > 10) { var G__52082__i = 0, G__52082__a = new Array(arguments.length - 10); while (G__52082__i < G__52082__a.length) {G__52082__a[G__52082__i] = arguments[G__52082__i + 10]; ++G__52082__i;} G__52081 = new cljs.core.IndexedSeq(G__52082__a,0,null); } return G__52064__11.cljs$core$IFn$_invoke$arity$variadic(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, G__52081); } throw(new Error('Invalid arity: ' + arguments.length)); }; G__52064.cljs$lang$maxFixedArity = 10; G__52064.cljs$lang$applyTo = G__52064__11.cljs$lang$applyTo; G__52064.cljs$core$IFn$_invoke$arity$0 = G__52064__0; G__52064.cljs$core$IFn$_invoke$arity$1 = G__52064__1; G__52064.cljs$core$IFn$_invoke$arity$2 = G__52064__2; G__52064.cljs$core$IFn$_invoke$arity$3 = G__52064__3; G__52064.cljs$core$IFn$_invoke$arity$4 = G__52064__4; G__52064.cljs$core$IFn$_invoke$arity$5 = G__52064__5; G__52064.cljs$core$IFn$_invoke$arity$6 = G__52064__6; G__52064.cljs$core$IFn$_invoke$arity$7 = G__52064__7; G__52064.cljs$core$IFn$_invoke$arity$8 = G__52064__8; G__52064.cljs$core$IFn$_invoke$arity$9 = G__52064__9; G__52064.cljs$core$IFn$_invoke$arity$10 = G__52064__10; G__52064.cljs$core$IFn$_invoke$arity$variadic = G__52064__11.cljs$core$IFn$_invoke$arity$variadic; return G__52064; })() }); com.rpl.specter.impl.throw_illegal_STAR_ = (function com$rpl$specter$impl$throw_illegal_STAR_(var_args){ var args__4742__auto__ = []; var len__4736__auto___52085 = arguments.length; var i__4737__auto___52086 = (0); while(true){ if((i__4737__auto___52086 < len__4736__auto___52085)){ args__4742__auto__.push((arguments[i__4737__auto___52086])); var G__52087 = (i__4737__auto___52086 + (1)); i__4737__auto___52086 = G__52087; continue; } else { } break; } var argseq__4743__auto__ = ((((0) < args__4742__auto__.length))?(new cljs.core.IndexedSeq(args__4742__auto__.slice((0)),(0),null)):null); return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(argseq__4743__auto__); }); (com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic = (function (args){ throw (new Error(cljs.core.apply.cljs$core$IFn$_invoke$arity$2(cljs.core.str,args))); })); (com.rpl.specter.impl.throw_illegal_STAR_.cljs$lang$maxFixedArity = (0)); /** @this {Function} */ (com.rpl.specter.impl.throw_illegal_STAR_.cljs$lang$applyTo = (function (seq49060){ var self__4724__auto__ = this; return self__4724__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq(seq49060)); })); com.rpl.specter.impl.cljs_analyzer_macroexpand_1 = (function com$rpl$specter$impl$cljs_analyzer_macroexpand_1(){ return cljs.analyzer.macroexpand_1; }); com.rpl.specter.impl.clj_macroexpand_all = (function com$rpl$specter$impl$clj_macroexpand_all(form){ return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["not implemented"], 0)); }); com.rpl.specter.impl.intern_STAR_ = (function com$rpl$specter$impl$intern_STAR_(ns,name,val){ return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["intern not supported in ClojureScript"], 0)); }); com.rpl.specter.impl.benchmark = (function com$rpl$specter$impl$benchmark(iters,afn){ var start__4626__auto__ = cljs.core.system_time(); var ret__4627__auto__ = (function (){var n__4613__auto__ = iters; var _ = (0); while(true){ if((_ < n__4613__auto__)){ (afn.cljs$core$IFn$_invoke$arity$0 ? afn.cljs$core$IFn$_invoke$arity$0() : afn.call(null)); var G__52094 = (_ + (1)); _ = G__52094; continue; } else { return null; } break; } })(); cljs.core.prn.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([["Elapsed time: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1((cljs.core.system_time() - start__4626__auto__).toFixed((6)))," msecs"].join('')], 0)); return ret__4627__auto__; }); com.rpl.specter.impl.exec_select_STAR_ = (function com$rpl$specter$impl$exec_select_STAR_(this$,vals,structure,next_fn){ return this$.com$rpl$specter$protocols$RichNavigator$select_STAR_$arity$4(null,vals,structure,next_fn); }); com.rpl.specter.impl.exec_transform_STAR_ = (function com$rpl$specter$impl$exec_transform_STAR_(this$,vals,structure,next_fn){ return this$.com$rpl$specter$protocols$RichNavigator$transform_STAR_$arity$4(null,vals,structure,next_fn); }); /** * @interface */ com.rpl.specter.impl.PathComposer = function(){}; var com$rpl$specter$impl$PathComposer$do_comp_paths$dyn_52108 = (function (paths){ var x__4428__auto__ = (((paths == null))?null:paths); var m__4429__auto__ = (com.rpl.specter.impl.do_comp_paths[goog.typeOf(x__4428__auto__)]); if((!((m__4429__auto__ == null)))){ return (m__4429__auto__.cljs$core$IFn$_invoke$arity$1 ? m__4429__auto__.cljs$core$IFn$_invoke$arity$1(paths) : m__4429__auto__.call(null,paths)); } else { var m__4426__auto__ = (com.rpl.specter.impl.do_comp_paths["_"]); if((!((m__4426__auto__ == null)))){ return (m__4426__auto__.cljs$core$IFn$_invoke$arity$1 ? m__4426__auto__.cljs$core$IFn$_invoke$arity$1(paths) : m__4426__auto__.call(null,paths)); } else { throw cljs.core.missing_protocol("PathComposer.do-comp-paths",paths); } } }); com.rpl.specter.impl.do_comp_paths = (function com$rpl$specter$impl$do_comp_paths(paths){ if((((!((paths == null)))) && ((!((paths.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1 == null)))))){ return paths.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1(paths); } else { return com$rpl$specter$impl$PathComposer$do_comp_paths$dyn_52108(paths); } }); com.rpl.specter.impl.rich_nav_QMARK_ = (function com$rpl$specter$impl$rich_nav_QMARK_(n){ if((!((n == null)))){ if(((false) || ((cljs.core.PROTOCOL_SENTINEL === n.com$rpl$specter$protocols$RichNavigator$)))){ return true; } else { if((!n.cljs$lang$protocol_mask$partition$)){ return cljs.core.native_satisfies_QMARK_(com.rpl.specter.protocols.RichNavigator,n); } else { return false; } } } else { return cljs.core.native_satisfies_QMARK_(com.rpl.specter.protocols.RichNavigator,n); } }); com.rpl.specter.impl.comp_paths_STAR_ = (function com$rpl$specter$impl$comp_paths_STAR_(p){ if(com.rpl.specter.impl.rich_nav_QMARK_(p)){ return p; } else { return com.rpl.specter.impl.do_comp_paths(p); } }); com.rpl.specter.impl.coerce_object = (function com$rpl$specter$impl$coerce_object(this$){ if(com.rpl.specter.impl.rich_nav_QMARK_(this$)){ return this$; } else { if((((!((this$ == null))))?((((false) || ((cljs.core.PROTOCOL_SENTINEL === this$.com$rpl$specter$protocols$ImplicitNav$))))?true:(((!this$.cljs$lang$protocol_mask$partition$))?cljs.core.native_satisfies_QMARK_(com.rpl.specter.protocols.ImplicitNav,this$):false)):cljs.core.native_satisfies_QMARK_(com.rpl.specter.protocols.ImplicitNav,this$))){ return com.rpl.specter.protocols.implicit_nav(this$); } else { return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Not a navigator: ",this$," ",cljs.core.pr_str.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([cljs.core.type(this$)], 0))], 0)); } } }); /** * @interface */ com.rpl.specter.impl.CoercePath = function(){}; var com$rpl$specter$impl$CoercePath$coerce_path$dyn_52110 = (function (this$){ var x__4428__auto__ = (((this$ == null))?null:this$); var m__4429__auto__ = (com.rpl.specter.impl.coerce_path[goog.typeOf(x__4428__auto__)]); if((!((m__4429__auto__ == null)))){ return (m__4429__auto__.cljs$core$IFn$_invoke$arity$1 ? m__4429__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__4429__auto__.call(null,this$)); } else { var m__4426__auto__ = (com.rpl.specter.impl.coerce_path["_"]); if((!((m__4426__auto__ == null)))){ return (m__4426__auto__.cljs$core$IFn$_invoke$arity$1 ? m__4426__auto__.cljs$core$IFn$_invoke$arity$1(this$) : m__4426__auto__.call(null,this$)); } else { throw cljs.core.missing_protocol("CoercePath.coerce-path",this$); } } }); com.rpl.specter.impl.coerce_path = (function com$rpl$specter$impl$coerce_path(this$){ if((((!((this$ == null)))) && ((!((this$.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 == null)))))){ return this$.com$rpl$specter$impl$CoercePath$coerce_path$arity$1(this$); } else { return com$rpl$specter$impl$CoercePath$coerce_path$dyn_52110(this$); } }); goog.object.set(com.rpl.specter.impl.CoercePath,"null",true); goog.object.set(com.rpl.specter.impl.coerce_path,"null",(function (this$){ return com.rpl.specter.impl.coerce_object(this$); })); (cljs.core.PersistentVector.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.PersistentVector.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.do_comp_paths(this$__$1); })); (cljs.core.IndexedSeq.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.IndexedSeq.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.coerce_path(cljs.core.vec(this$__$1)); })); (cljs.core.EmptyList.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.EmptyList.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.coerce_path(cljs.core.vec(this$__$1)); })); (cljs.core.List.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.List.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.coerce_path(cljs.core.vec(this$__$1)); })); (cljs.core.LazySeq.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.LazySeq.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.coerce_path(cljs.core.vec(this$__$1)); })); (cljs.core.Subvec.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.Subvec.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){ var this$__$1 = this; return com.rpl.specter.impl.coerce_path(cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentVector.EMPTY,this$__$1)); })); goog.object.set(com.rpl.specter.impl.CoercePath,"_",true); goog.object.set(com.rpl.specter.impl.coerce_path,"_",(function (this$){ return com.rpl.specter.impl.coerce_object(this$); })); com.rpl.specter.impl.STAY_STAR_ = (function (){ if((typeof com !== 'undefined') && (typeof com.rpl !== 'undefined') && (typeof com.rpl.specter !== 'undefined') && (typeof com.rpl.specter.impl !== 'undefined') && (typeof com.rpl.specter.impl.t_com$rpl$specter$impl49132 !== 'undefined')){ } else { /** * @constructor * @implements {cljs.core.IMeta} * @implements {com.rpl.specter.protocols.RichNavigator} * @implements {cljs.core.IWithMeta} */ com.rpl.specter.impl.t_com$rpl$specter$impl49132 = (function (meta49133){ this.meta49133 = meta49133; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_49134,meta49133__$1){ var self__ = this; var _49134__$1 = this; return (new com.rpl.specter.impl.t_com$rpl$specter$impl49132(meta49133__$1)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_49134){ var self__ = this; var _49134__$1 = this; return self__.meta49133; })); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.prototype.com$rpl$specter$protocols$RichNavigator$ = cljs.core.PROTOCOL_SENTINEL); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.prototype.com$rpl$specter$protocols$RichNavigator$select_STAR_$arity$4 = (function (this$,vals,structure,next_fn){ var self__ = this; var this$__$1 = this; return (next_fn.cljs$core$IFn$_invoke$arity$2 ? next_fn.cljs$core$IFn$_invoke$arity$2(vals,structure) : next_fn.call(null,vals,structure)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.prototype.com$rpl$specter$protocols$RichNavigator$transform_STAR_$arity$4 = (function (this$,vals,structure,next_fn){ var self__ = this; var this$__$1 = this; return (next_fn.cljs$core$IFn$_invoke$arity$2 ? next_fn.cljs$core$IFn$_invoke$arity$2(vals,structure) : next_fn.call(null,vals,structure)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.getBasis = (function (){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"meta49133","meta49133",-951082773,null)], null); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.cljs$lang$type = true); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl49132"); (com.rpl.specter.impl.t_com$rpl$specter$impl49132.cljs$lang$ctorPrWriter = (function (this__4369__auto__,writer__4370__auto__,opt__4371__auto__){ return cljs.core._write(writer__4370__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl49132"); })); /** * Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl49132. */ com.rpl.specter.impl.__GT_t_com$rpl$specter$impl49132 = (function com$rpl$specter$impl$__GT_t_com$rpl$specter$impl49132(meta49133){ return (new com.rpl.specter.impl.t_com$rpl$specter$impl49132(meta49133)); }); } return (new com.rpl.specter.impl.t_com$rpl$specter$impl49132(cljs.core.PersistentArrayMap.EMPTY)); })() ; com.rpl.specter.impl.combine_two_navs = (function com$rpl$specter$impl$combine_two_navs(nav1,nav2){ if((typeof com !== 'undefined') && (typeof com.rpl !== 'undefined') && (typeof com.rpl.specter !== 'undefined') && (typeof com.rpl.specter.impl !== 'undefined') && (typeof com.rpl.specter.impl.t_com$rpl$specter$impl49144 !== 'undefined')){ } else { /** * @constructor * @implements {cljs.core.IMeta} * @implements {com.rpl.specter.protocols.RichNavigator} * @implements {cljs.core.IWithMeta} */ com.rpl.specter.impl.t_com$rpl$specter$impl49144 = (function (nav1,nav2,meta49145){ this.nav1 = nav1; this.nav2 = nav2; this.meta49145 = meta49145; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_49146,meta49145__$1){ var self__ = this; var _49146__$1 = this; return (new com.rpl.specter.impl.t_com$rpl$specter$impl49144(self__.nav1,self__.nav2,meta49145__$1)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_49146){ var self__ = this; var _49146__$1 = this; return self__.meta49145; })); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.prototype.com$rpl$specter$protocols$RichNavigator$ = cljs.core.PROTOCOL_SENTINEL); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.prototype.com$rpl$specter$protocols$RichNavigator$select_STAR_$arity$4 = (function (this$,vals,structure,next_fn){ var self__ = this; var this$__$1 = this; return com.rpl.specter.impl.exec_select_STAR_(self__.nav1,vals,structure,(function (vals_next,structure_next){ return com.rpl.specter.impl.exec_select_STAR_(self__.nav2,vals_next,structure_next,next_fn); })); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.prototype.com$rpl$specter$protocols$RichNavigator$transform_STAR_$arity$4 = (function (this$,vals,structure,next_fn){ var self__ = this; var this$__$1 = this; return com.rpl.specter.impl.exec_transform_STAR_(self__.nav1,vals,structure,(function (vals_next,structure_next){ return com.rpl.specter.impl.exec_transform_STAR_(self__.nav2,vals_next,structure_next,next_fn); })); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.getBasis = (function (){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"nav1","nav1",-228471230,null),new cljs.core.Symbol(null,"nav2","nav2",2108276356,null),new cljs.core.Symbol(null,"meta49145","meta49145",-81531178,null)], null); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.cljs$lang$type = true); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl49144"); (com.rpl.specter.impl.t_com$rpl$specter$impl49144.cljs$lang$ctorPrWriter = (function (this__4369__auto__,writer__4370__auto__,opt__4371__auto__){ return cljs.core._write(writer__4370__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl49144"); })); /** * Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl49144. */ com.rpl.specter.impl.__GT_t_com$rpl$specter$impl49144 = (function com$rpl$specter$impl$combine_two_navs_$___GT_t_com$rpl$specter$impl49144(nav1__$1,nav2__$1,meta49145){ return (new com.rpl.specter.impl.t_com$rpl$specter$impl49144(nav1__$1,nav2__$1,meta49145)); }); } return (new com.rpl.specter.impl.t_com$rpl$specter$impl49144(nav1,nav2,cljs.core.PersistentArrayMap.EMPTY)); }); goog.object.set(com.rpl.specter.impl.PathComposer,"null",true); goog.object.set(com.rpl.specter.impl.do_comp_paths,"null",(function (o){ return com.rpl.specter.impl.coerce_path(o); })); goog.object.set(com.rpl.specter.impl.PathComposer,"_",true); goog.object.set(com.rpl.specter.impl.do_comp_paths,"_",(function (o){ return com.rpl.specter.impl.coerce_path(o); })); (cljs.core.PersistentVector.prototype.com$rpl$specter$impl$PathComposer$ = cljs.core.PROTOCOL_SENTINEL); (cljs.core.PersistentVector.prototype.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1 = (function (navigators){ var navigators__$1 = this; var coerced = cljs.core.map.cljs$core$IFn$_invoke$arity$2(com.rpl.specter.impl.coerce_path,navigators__$1); if(cljs.core.empty_QMARK_(coerced)){ return com.rpl.specter.impl.STAY_STAR_; } else { if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2((1),cljs.core.count(coerced))){ return cljs.core.first(coerced); } else { return cljs.core.reduce.cljs$core$IFn$_invoke$arity$2(com.rpl.specter.impl.combine_two_navs,coerced); } } })); /** * @interface */ com.rpl.specter.impl.PMutableCell = function(){}; var com$rpl$specter$impl$PMutableCell$set_cell$dyn_52152 = (function (cell,x){ var x__4428__auto__ = (((cell == null))?null:cell); var m__4429__auto__ = (com.rpl.specter.impl.set_cell[goog.typeOf(x__4428__auto__)]); if((!((m__4429__auto__ == null)))){ return (m__4429__auto__.cljs$core$IFn$_invoke$arity$2 ? m__4429__auto__.cljs$core$IFn$_invoke$arity$2(cell,x) : m__4429__auto__.call(null,cell,x)); } else { var m__4426__auto__ = (com.rpl.specter.impl.set_cell["_"]); if((!((m__4426__auto__ == null)))){ return (m__4426__auto__.cljs$core$IFn$_invoke$arity$2 ? m__4426__auto__.cljs$core$IFn$_invoke$arity$2(cell,x) : m__4426__auto__.call(null,cell,x)); } else { throw cljs.core.missing_protocol("PMutableCell.set_cell",cell); } } }); com.rpl.specter.impl.set_cell = (function com$rpl$specter$impl$set_cell(cell,x){ if((((!((cell == null)))) && ((!((cell.com$rpl$specter$impl$PMutableCell$set_cell$arity$2 == null)))))){ return cell.com$rpl$specter$impl$PMutableCell$set_cell$arity$2(cell,x); } else { return com$rpl$specter$impl$PMutableCell$set_cell$dyn_52152(cell,x); } }); /** * @constructor * @implements {com.rpl.specter.impl.PMutableCell} */ com.rpl.specter.impl.MutableCell = (function (q){ this.q = q; }); (com.rpl.specter.impl.MutableCell.prototype.com$rpl$specter$impl$PMutableCell$ = cljs.core.PROTOCOL_SENTINEL); (com.rpl.specter.impl.MutableCell.prototype.com$rpl$specter$impl$PMutableCell$set_cell$arity$2 = (function (this$,x){ var self__ = this; var this$__$1 = this; return (self__.q = x); })); (com.rpl.specter.impl.MutableCell.getBasis = (function (){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.with_meta(new cljs.core.Symbol(null,"q","q",-1965434072,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"volatile-mutable","volatile-mutable",1731728411),true], null))], null); })); (com.rpl.specter.impl.MutableCell.cljs$lang$type = true); (com.rpl.specter.impl.MutableCell.cljs$lang$ctorStr = "com.rpl.specter.impl/MutableCell"); (com.rpl.specter.impl.MutableCell.cljs$lang$ctorPrWriter = (function (this__4369__auto__,writer__4370__auto__,opt__4371__auto__){ return cljs.core._write(writer__4370__auto__,"com.rpl.specter.impl/MutableCell"); })); /** * Positional factory function for com.rpl.specter.impl/MutableCell. */ com.rpl.specter.impl.__GT_MutableCell = (function com$rpl$specter$impl$__GT_MutableCell(q){ return (new com.rpl.specter.impl.MutableCell(q)); }); com.rpl.specter.impl.mutable_cell = (function com$rpl$specter$impl$mutable_cell(var_args){ var G__49209 = arguments.length; switch (G__49209) { case 0: return com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$0(); break; case 1: return com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); (com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$0 = (function (){ return com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1(null); })); (com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1 = (function (init){ return (new com.rpl.specter.impl.MutableCell(init)); })); (com.rpl.specter.impl.mutable_cell.cljs$lang$maxFixedArity = 1); com.rpl.specter.impl.set_cell_BANG_ = (function com$rpl$specter$impl$set_cell_BANG_(cell,val){ return com.rpl.specter.impl.set_cell(cell,val); }); com.rpl.specter.impl.get_cell = (function com$rpl$specter$impl$get_cell(cell){ return cell.q; }); com.rpl.specter.impl.update_cell_BANG_ = (function com$rpl$specter$impl$update_cell_BANG_(cell,afn){ var ret = (function (){var G__49227 = com.rpl.specter.impl.get_cell(cell); return (afn.cljs$core$IFn$_invoke$arity$1 ? afn.cljs$core$IFn$_invoke$arity$1(G__49227) : afn.call(null,G__49227)); })(); com.rpl.specter.impl.set_cell_BANG_(cell,ret); return ret; }); com.rpl.specter.impl.compiled_traverse_with_vals_STAR_ = (function com$rpl$specter$impl$compiled_traverse_with_vals_STAR_(path,result_fn,vals,structure){ return com.rpl.specter.impl.exec_select_STAR_(path,vals,structure,(function (vals__$1,structure__$1){ if((vals__$1 === cljs.core.PersistentVector.EMPTY)){ return (result_fn.cljs$core$IFn$_invoke$arity$1 ? result_fn.cljs$core$IFn$_invoke$arity$1(structure__$1) : result_fn.call(null,structure__$1)); } else { var G__49245 = cljs.core.conj.cljs$core$IFn$_invoke$arity$2(vals__$1,structure__$1); return (result_fn.cljs$core$IFn$_invoke$arity$1 ? result_fn.cljs$core$IFn$_invoke$arity$1(G__49245) : result_fn.call(null,G__49245)); } })); }); com.rpl.specter.impl.compiled_traverse_STAR_ = (function com$rpl$specter$impl$compiled_traverse_STAR_(path,result_fn,structure){ return com.rpl.specter.impl.compiled_traverse_with_vals_STAR_(path,result_fn,cljs.core.PersistentVector.EMPTY,structure); }); com.rpl.specter.impl.do_compiled_traverse_STAR_ = (function com$rpl$specter$impl$do_compiled_traverse_STAR_(apath,structure){ if((typeof com !== 'undefined') && (typeof com.rpl !== 'undefined') && (typeof com.rpl.specter !== 'undefined') && (typeof com.rpl.specter.impl !== 'undefined') && (typeof com.rpl.specter.impl.t_com$rpl$specter$impl49260 !== 'undefined')){ } else { /** * @constructor * @implements {cljs.core.IMeta} * @implements {cljs.core.IWithMeta} * @implements {cljs.core.IReduce} */ com.rpl.specter.impl.t_com$rpl$specter$impl49260 = (function (apath,structure,meta49261){ this.apath = apath; this.structure = structure; this.meta49261 = meta49261; this.cljs$lang$protocol_mask$partition0$ = 917504; this.cljs$lang$protocol_mask$partition1$ = 0; }); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_49262,meta49261__$1){ var self__ = this; var _49262__$1 = this; return (new com.rpl.specter.impl.t_com$rpl$specter$impl49260(self__.apath,self__.structure,meta49261__$1)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_49262){ var self__ = this; var _49262__$1 = this; return self__.meta49261; })); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.prototype.cljs$core$IReduce$_reduce$arity$2 = (function (this$,afn){ var self__ = this; var this$__$1 = this; return this$__$1.cljs$core$IReduce$_reduce$arity$3(null,afn,(afn.cljs$core$IFn$_invoke$arity$0 ? afn.cljs$core$IFn$_invoke$arity$0() : afn.call(null))); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.prototype.cljs$core$IReduce$_reduce$arity$3 = (function (this$,afn,start){ var self__ = this; var this$__$1 = this; var cell = com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1(start); com.rpl.specter.impl.compiled_traverse_STAR_(self__.apath,(function (elem){ var curr = com.rpl.specter.impl.get_cell(cell); var newv = (afn.cljs$core$IFn$_invoke$arity$2 ? afn.cljs$core$IFn$_invoke$arity$2(curr,elem) : afn.call(null,curr,elem)); com.rpl.specter.impl.set_cell_BANG_(cell,newv); return newv; }),self__.structure); return com.rpl.specter.impl.get_cell(cell); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.getBasis = (function (){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"apath","apath",567854908,null),new cljs.core.Symbol(null,"structure","structure",-1090603686,null),new cljs.core.Symbol(null,"meta49261","meta49261",-1945599588,null)], null); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.cljs$lang$type = true); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl49260"); (com.rpl.specter.impl.t_com$rpl$specter$impl49260.cljs$lang$ctorPrWriter = (function (this__4369__auto__,writer__4370__auto__,opt__4371__auto__){ return cljs.core._write(writer__4370__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl49260"); })); /** * Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl49260. */ com.rpl.specter.impl.__GT_t_com$rpl$specter$impl49260 = (function com$rpl$specter$impl$do_compiled_traverse_STAR__$___GT_t_com$rpl$specter$impl49260(apath__$1,structure__$1,meta49261){ return (new com.rpl.specter.impl.t_com$rpl$specter$impl49260(apath__$1,structure__$1,meta49261)); }); } return (new com.rpl.specter.impl.t_com$rpl$specter$impl49260(apath,structure,cljs.core.PersistentArrayMap.EMPTY)); }); com.rpl.specter.impl.call_reduce_interface = (function com$rpl$specter$impl$call_reduce_interface(traverser,afn,start){ return traverser.cljs$core$IReduce$_reduce$arity$3(null,afn,start); }); com.rpl.specter.impl.do_compiled_traverse = (function com$rpl$specter$impl$do_compiled_traverse(apath,structure){ var traverser = com.rpl.specter.impl.do_compiled_traverse_STAR_(apath,structure); if((typeof com !== 'undefined') && (typeof com.rpl !== 'undefined') && (typeof com.rpl.specter !== 'undefined') && (typeof com.rpl.specter.impl !== 'undefined') && (typeof com.rpl.specter.impl.t_com$rpl$specter$impl49289 !== 'undefined')){ } else { /** * @constructor * @implements {cljs.core.IMeta} * @implements {cljs.core.IWithMeta} * @implements {cljs.core.IReduce} */ com.rpl.specter.impl.t_com$rpl$specter$impl49289 = (function (apath,structure,traverser,meta49290){ this.apath = apath; this.structure = structure; this.traverser = traverser; this.meta49290 = meta49290; this.cljs$lang$protocol_mask$partition0$ = 917504; this.cljs$lang$protocol_mask$partition1$ = 0; }); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_49291,meta49290__$1){ var self__ = this; var _49291__$1 = this; return (new com.rpl.specter.impl.t_com$rpl$specter$impl49289(self__.apath,self__.structure,self__.traverser,meta49290__$1)); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_49291){ var self__ = this; var _49291__$1 = this; return self__.meta49290; })); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.prototype.cljs$core$IReduce$_reduce$arity$2 = (function (this$,afn){ var self__ = this; var this$__$1 = this; return this$__$1.cljs$core$IReduce$_reduce$arity$3(null,afn,(afn.cljs$core$IFn$_invoke$arity$0 ? afn.cljs$core$IFn$_invoke$arity$0() : afn.call(null))); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.prototype.cljs$core$IReduce$_reduce$arity$3 = (function (this$,afn,start){ var self__ = this; var this$__$1 = this; var res = com.rpl.specter.impl.call_reduce_interface(self__.traverser,afn,start); return cljs.core.unreduced(res); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.getBasis = (function (){ return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"apath","apath",567854908,null),new cljs.core.Symbol(null,"structure","structure",-1090603686,null),new cljs.core.Symbol(null,"traverser","traverser",1631431381,null),new cljs.core.Symbol(null,"meta49290","meta49290",-1543439801,null)], null); })); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.cljs$lang$type = true); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl49289"); (com.rpl.specter.impl.t_com$rpl$specter$impl49289.cljs$lang$ctorPrWriter = (function (this__4369__auto__,writer__4370__auto__,opt__4371__auto__){ return cljs.core._write(writer__4370__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl49289"); })); /** * Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl49289. */ com.rpl.specter.impl.__GT_t_com$rpl$specter$impl49289 = (function com$rpl$specter$impl$do_compiled_traverse_$___GT_t_com$rpl$specter$impl49289(apath__$1,structure__$1,traverser__$1,meta49290){ return (new com.rpl.specter.impl.t_com$rpl$specter$impl49289(apath__$1,structure__$1,traverser__$1,meta49290)); }); } return (new com.rpl.specter.impl.t_com$rpl$specter$impl49289(apath,structure,traverser,cljs.core.PersistentArrayMap.EMPTY)); }); com.rpl.specter.impl.compiled_traverse_all_STAR_ = (function com$rpl$specter$impl$compiled_traverse_all_STAR_(path){ return (function (xf){ return (function() { var G__52188 = null; var G__52188__0 = (function (){ return (xf.cljs$core$IFn$_invoke$arity$0 ? xf.cljs$core$IFn$_invoke$arity$0() : xf.call(null)); }); var G__52188__1 = (function (result){ return (xf.cljs$core$IFn$_invoke$arity$1 ? xf.cljs$core$IFn$_invoke$arity$1(result) : xf.call(null,result)); }); var G__52188__2 = (function (result,input){ return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3((function (r,i){ return (xf.cljs$core$IFn$_invoke$arity$2 ? xf.cljs$core$IFn$_invoke$arity$2(r,i) : xf.call(null,r,i)); }),result,com.rpl.specter.impl.do_compiled_traverse_STAR_(path,input)); }); G__52188 = function(result,input){ switch(arguments.length){ case 0: return G__52188__0.call(this); case 1: return G__52188__1.call(this,result); case 2: return G__52188__2.call(this,result,input); } throw(new Error('Invalid arity: ' + arguments.length)); }; G__52188.cljs$core$IFn$_invoke$arity$0 = G__52188__0; G__52188.cljs$core$IFn$_invoke$arity$1 = G__52188__1; G__52188.cljs$core$IFn$_invoke$arity$2 = G__52188__2; return G__52188; })() }); }); com.rpl.specter.impl.compiled_select_STAR_ = (function com$rpl$specter$impl$compiled_select_STAR_(path,structure){ var res = com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1(cljs.core.transient$(cljs.core.PersistentVector.EMPTY)); var result_fn = (function (structure__$1){ var curr = com.rpl.specter.impl.get_cell(res); return com.rpl.specter.impl.set_cell_BANG_(res,cljs.core.conj_BANG_.cljs$core$IFn$_invoke$arity$2(curr,structure__$1)); }); com.rpl.specter.impl.compiled_traverse_STAR_(path,result_fn,structure); return cljs.core.persistent_BANG_(com.rpl.specter.impl.get_cell(res)); }); com.rpl.specter.impl.compiled_select_one_STAR_ = (function com$rpl$specter$impl$compiled_select_one_STAR_(path,structure){ var res = com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1(com.rpl.specter.impl.NONE); var result_fn = (function (structure__$1){ var curr = com.rpl.specter.impl.get_cell(res); if((curr === com.rpl.specter.impl.NONE)){ return com.rpl.specter.impl.set_cell_BANG_(res,structure__$1); } else { return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["More than one element found in structure: ",structure__$1], 0)); } }); com.rpl.specter.impl.compiled_traverse_STAR_(path,result_fn,structure); var ret = com.rpl.specter.impl.get_cell(res); if((ret === com.rpl.specter.impl.NONE)){ return null; } else { return ret; } }); com.rpl.specter.impl.compiled_select_one_BANG__STAR_ = (function com$rpl$specter$impl$compiled_select_one_BANG__STAR_(path,structure){ var res = com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1(com.rpl.specter.impl.NONE); var result_fn = (function (structure__$1){ var curr = com.rpl.specter.impl.get_cell(res); if((curr === com.rpl.specter.impl.NONE)){ return com.rpl.specter.impl.set_cell_BANG_(res,structure__$1); } else { return com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["More than one element found in structure: ",structure__$1], 0)); } }); com.rpl.specter.impl.compiled_traverse_STAR_(path,result_fn,structure); var ret = com.rpl.specter.impl.get_cell(res); if((com.rpl.specter.impl.NONE === ret)){ com.rpl.specter.impl.throw_illegal_STAR_.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["Found no elements for select-one! on ",structure], 0)); } else { } return ret; }); com.rpl.specter.impl.compiled_select_any_STAR_ = (function com$rpl$specter$impl$compiled_select_any_STAR_(var_args){ var G__49334 = arguments.length; switch (G__49334) { case 2: return com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; case 3: return com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); (com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2 = (function (path,structure){ return com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$3(path,cljs.core.PersistentVector.EMPTY,structure); })); (com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$3 = (function (path,vals,structure){ return cljs.core.unreduced(com.rpl.specter.impl.compiled_traverse_with_vals_STAR_(path,cljs.core.reduced,vals,structure)); })); (com.rpl.specter.impl.compiled_select_any_STAR_.cljs$lang$maxFixedArity = 3); com.rpl.specter.impl.compiled_select_first_STAR_ = (function com$rpl$specter$impl$compiled_select_first_STAR_(path,structure){ var ret = com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2(path,structure); if((ret === com.rpl.specter.impl.NONE)){ return null; } else { return ret; } }); com.rpl.specter.impl.compiled_selected_any_QMARK__STAR_ = (function com$rpl$specter$impl$compiled_selected_any_QMARK__STAR_(path,structure){ return (!((com.rpl.specter.impl.NONE === com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2(path,structure)))); }); com.rpl.specter.impl.terminal_STAR_ = (function com$rpl$specter$impl$terminal_STAR_(afn,vals,structure){ if((vals === cljs.core.PersistentVector.EMPTY)){ return (afn.cljs$core$IFn$_invoke$arity$1 ? afn.cljs$core$IFn$_invoke$arity$1(structure) : afn.call(null,structure)); } else { return cljs.core.apply.cljs$core$IFn$_invoke$arity$2(afn,cljs.core.conj.cljs$core$IFn$_invoke$arity$2(vals,structure)); } }); com.rpl.specter.impl.compiled_transform_STAR_ = (function com$rpl$specter$impl$compiled_transform_STAR_(nav,transform_fn,structure){ return com.rpl.specter.impl.exec_transform_STAR_(nav,cljs.core.PersistentVector.EMPTY,structure,(function (vals,structure__$1){ return com.rpl.specter.impl.terminal_STAR_(transform_fn,vals,structure__$1); })); }); com.rpl.specter.impl.compiled_vtransform_STAR_ = (function com$rpl$specter$impl$compiled_vtransform_STAR_(nav,transform_fn,structure){ return com.rpl.specter.impl.exec_transform_STAR_(nav,cljs.core.PersistentVector.EMPTY,structure,transform_fn); }); com.rpl.specter.impl.fn_invocation_QMARK_ = (function com$rpl$specter$impl$fn_invocation_QMARK_(f){ return (((f instanceof cljs.core.LazySeq)) || (cljs.core.list_QMARK_(f))); }); /** * @constructor * @implements {cljs.core.IRecord} * @implements {cljs.core.IKVReduce} * @implements {cljs.core.IEquiv} * @implements {cljs.core.IHash} * @implements {cljs.core.ICollection} * @implements {cljs.core.ICounted} * @implements {cljs.core.ISeqable} * @implements {cljs.core.IMeta} * @implements {cljs.core.ICloneable} * @implements {cljs.core.IPrintWithWriter} * @implements {cljs.core.IIterable} * @implements {cljs.core.IWithMeta} * @implements {cljs.core.IAssociative} * @implements {cljs.core.IMap} * @implements {cljs.core.ILookup} */ com.rpl.specter.impl.LocalSym = (function (val,sym,__meta,__extmap,__hash){ this.val = val; this.sym = sym; this.__meta = __meta; this.__extmap = __extmap; this.__hash = __hash; this.cljs$lang$protocol_mask$partition0$ = 2230716170; this.cljs$lang$protocol_mask$partition1$ = 139264; }); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__4380__auto__,k__4381__auto__){ var self__ = this; var this__4380__auto____$1 = this; return this__4380__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__4381__auto__,null); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__4382__auto__,k49350,else__4383__auto__){ var self__ = this; var this__4382__auto____$1 = this; var G__49359 = k49350; var G__49359__$1 = (((G__49359 instanceof cljs.core.Keyword))?G__49359.fqn:null); switch (G__49359__$1) { case "val": return self__.val; break; case "sym": return self__.sym; break; default: return cljs.core.get.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k49350,else__4383__auto__); } })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IKVReduce$_kv_reduce$arity$3 = (function (this__4399__auto__,f__4400__auto__,init__4401__auto__){ var self__ = this; var this__4399__auto____$1 = this; return cljs.core.reduce.cljs$core$IFn$_invoke$arity$3((function (ret__4402__auto__,p__49363){ var vec__49364 = p__49363; var k__4403__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__49364,(0),null); var v__4404__auto__ = cljs.core.nth.cljs$core$IFn$_invoke$arity$3(vec__49364,(1),null); return (f__4400__auto__.cljs$core$IFn$_invoke$arity$3 ? f__4400__auto__.cljs$core$IFn$_invoke$arity$3(ret__4402__auto__,k__4403__auto__,v__4404__auto__) : f__4400__auto__.call(null,ret__4402__auto__,k__4403__auto__,v__4404__auto__)); }),init__4401__auto__,this__4399__auto____$1); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (this__4394__auto__,writer__4395__auto__,opts__4396__auto__){ var self__ = this; var this__4394__auto____$1 = this; var pr_pair__4397__auto__ = (function (keyval__4398__auto__){ return cljs.core.pr_sequential_writer(writer__4395__auto__,cljs.core.pr_writer,""," ","",opts__4396__auto__,keyval__4398__auto__); }); return cljs.core.pr_sequential_writer(writer__4395__auto__,pr_pair__4397__auto__,"#com.rpl.specter.impl.LocalSym{",", ","}",opts__4396__auto__,cljs.core.concat.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"val","val",128701612),self__.val],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"sym","sym",-1444860305),self__.sym],null))], null),self__.__extmap)); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__49349){ var self__ = this; var G__49349__$1 = this; return (new cljs.core.RecordIter((0),G__49349__$1,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"val","val",128701612),new cljs.core.Keyword(null,"sym","sym",-1444860305)], null),(cljs.core.truth_(self__.__extmap)?cljs.core._iterator(self__.__extmap):cljs.core.nil_iter()))); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__4378__auto__){ var self__ = this; var this__4378__auto____$1 = this; return self__.__meta; })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$ICloneable$_clone$arity$1 = (function (this__4375__auto__){ var self__ = this; var this__4375__auto____$1 = this; return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,self__.__extmap,self__.__hash)); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$ICounted$_count$arity$1 = (function (this__4384__auto__){ var self__ = this; var this__4384__auto____$1 = this; return (2 + cljs.core.count(self__.__extmap)); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IHash$_hash$arity$1 = (function (this__4376__auto__){ var self__ = this; var this__4376__auto____$1 = this; var h__4238__auto__ = self__.__hash; if((!((h__4238__auto__ == null)))){ return h__4238__auto__; } else { var h__4238__auto____$1 = (function (coll__4377__auto__){ return (1023826277 ^ cljs.core.hash_unordered_coll(coll__4377__auto__)); })(this__4376__auto____$1); (self__.__hash = h__4238__auto____$1); return h__4238__auto____$1; } })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IEquiv$_equiv$arity$2 = (function (this49351,other49352){ var self__ = this; var this49351__$1 = this; return (((!((other49352 == null)))) && ((this49351__$1.constructor === other49352.constructor)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this49351__$1.val,other49352.val)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this49351__$1.sym,other49352.sym)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(this49351__$1.__extmap,other49352.__extmap))); })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IMap$_dissoc$arity$2 = (function (this__4389__auto__,k__4390__auto__){ var self__ = this; var this__4389__auto____$1 = this; if(cljs.core.contains_QMARK_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"sym","sym",-1444860305),null], null), null),k__4390__auto__)){ return cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(cljs.core._with_meta(cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentArrayMap.EMPTY,this__4389__auto____$1),self__.__meta),k__4390__auto__); } else { return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,cljs.core.not_empty(cljs.core.dissoc.cljs$core$IFn$_invoke$arity$2(self__.__extmap,k__4390__auto__)),null)); } })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__4387__auto__,k__4388__auto__,G__49349){ var self__ = this; var this__4387__auto____$1 = this; var pred__49374 = cljs.core.keyword_identical_QMARK_; var expr__49375 = k__4388__auto__; if(cljs.core.truth_((pred__49374.cljs$core$IFn$_invoke$arity$2 ? pred__49374.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"val","val",128701612),expr__49375) : pred__49374.call(null,new cljs.core.Keyword(null,"val","val",128701612),expr__49375)))){ return (new com.rpl.specter.impl.LocalSym(G__49349,self__.sym,self__.__meta,self__.__extmap,null)); } else { if(cljs.core.truth_((pred__49374.cljs$core$IFn$_invoke$arity$2 ? pred__49374.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"sym","sym",-1444860305),expr__49375) : pred__49374.call(null,new cljs.core.Keyword(null,"sym","sym",-1444860305),expr__49375)))){ return (new com.rpl.specter.impl.LocalSym(self__.val,G__49349,self__.__meta,self__.__extmap,null)); } else { return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(self__.__extmap,k__4388__auto__,G__49349),null)); } } })); (com.rpl.specter.impl.LocalSym.prototype.cljs$core$ISeqable$_seq$arity$1 = (function (this__4392__auto__){ var self__ = this; var this__4392__auto____$1 = this; return cljs.core.seq(cljs.core.concat.cljs$core$I