UNPKG

claire-agent

Version:

A Dialogflow agent for Claire Global

520 lines (446 loc) 27.9 kB
// Compiled by ClojureScript 1.10.520 {:target :nodejs} goog.provide('cljs.core.async.impl.ioc_helpers'); goog.require('cljs.core'); goog.require('cljs.core.async.impl.protocols'); cljs.core.async.impl.ioc_helpers.FN_IDX = (0); cljs.core.async.impl.ioc_helpers.STATE_IDX = (1); cljs.core.async.impl.ioc_helpers.VALUE_IDX = (2); cljs.core.async.impl.ioc_helpers.BINDINGS_IDX = (3); cljs.core.async.impl.ioc_helpers.EXCEPTION_FRAMES = (4); cljs.core.async.impl.ioc_helpers.CURRENT_EXCEPTION = (5); cljs.core.async.impl.ioc_helpers.USER_START_IDX = (6); cljs.core.async.impl.ioc_helpers.aset_object = (function cljs$core$async$impl$ioc_helpers$aset_object(arr,idx,o){ return (arr[idx][o]); }); cljs.core.async.impl.ioc_helpers.aget_object = (function cljs$core$async$impl$ioc_helpers$aget_object(arr,idx){ return (arr[idx]); }); /** * Returns true if the machine is in a finished state */ cljs.core.async.impl.ioc_helpers.finished_QMARK_ = (function cljs$core$async$impl$ioc_helpers$finished_QMARK_(state_array){ return cljs.core.keyword_identical_QMARK_.call(null,(state_array[(1)]),new cljs.core.Keyword(null,"finished","finished",-1018867731)); }); cljs.core.async.impl.ioc_helpers.fn_handler = (function cljs$core$async$impl$ioc_helpers$fn_handler(f){ if((typeof cljs !== 'undefined') && (typeof cljs.core !== 'undefined') && (typeof cljs.core.async !== 'undefined') && (typeof cljs.core.async.impl !== 'undefined') && (typeof cljs.core.async.impl.ioc_helpers !== 'undefined') && (typeof cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127 !== 'undefined')){ } else { /** * @constructor * @implements {cljs.core.async.impl.protocols.Handler} * @implements {cljs.core.IMeta} * @implements {cljs.core.IWithMeta} */ cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127 = (function (f,meta11128){ this.f = f; this.meta11128 = meta11128; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_11129,meta11128__$1){ var self__ = this; var _11129__$1 = this; return (new cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127(self__.f,meta11128__$1)); }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_11129){ var self__ = this; var _11129__$1 = this; return self__.meta11128; }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$async$impl$protocols$Handler$ = cljs.core.PROTOCOL_SENTINEL; cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$async$impl$protocols$Handler$active_QMARK_$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return true; }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$async$impl$protocols$Handler$blockable_QMARK_$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return true; }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.prototype.cljs$core$async$impl$protocols$Handler$commit$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return self__.f; }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.getBasis = (function (){ return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"f","f",43394975,null),new cljs.core.Symbol(null,"meta11128","meta11128",-1272904964,null)], null); }); cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.cljs$lang$type = true; cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.cljs$lang$ctorStr = "cljs.core.async.impl.ioc-helpers/t_cljs$core$async$impl$ioc_helpers11127"; cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127.cljs$lang$ctorPrWriter = (function (this__4374__auto__,writer__4375__auto__,opt__4376__auto__){ return cljs.core._write.call(null,writer__4375__auto__,"cljs.core.async.impl.ioc-helpers/t_cljs$core$async$impl$ioc_helpers11127"); }); /** * Positional factory function for cljs.core.async.impl.ioc-helpers/t_cljs$core$async$impl$ioc_helpers11127. */ cljs.core.async.impl.ioc_helpers.__GT_t_cljs$core$async$impl$ioc_helpers11127 = (function cljs$core$async$impl$ioc_helpers$fn_handler_$___GT_t_cljs$core$async$impl$ioc_helpers11127(f__$1,meta11128){ return (new cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127(f__$1,meta11128)); }); } return (new cljs.core.async.impl.ioc_helpers.t_cljs$core$async$impl$ioc_helpers11127(f,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.core.async.impl.ioc_helpers.run_state_machine = (function cljs$core$async$impl$ioc_helpers$run_state_machine(state){ return cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,(0)).call(null,state); }); cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped = (function cljs$core$async$impl$ioc_helpers$run_state_machine_wrapped(state){ try{return cljs.core.async.impl.ioc_helpers.run_state_machine.call(null,state); }catch (e11130){if((e11130 instanceof Object)){ var ex = e11130; cljs.core.async.impl.protocols.close_BANG_.call(null,cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,(6))); throw ex; } else { throw e11130; } }}); cljs.core.async.impl.ioc_helpers.take_BANG_ = (function cljs$core$async$impl$ioc_helpers$take_BANG_(state,blk,c){ var temp__5718__auto__ = cljs.core.async.impl.protocols.take_BANG_.call(null,c,cljs.core.async.impl.ioc_helpers.fn_handler.call(null,(function (x){ var statearr_11131_11133 = state; (statearr_11131_11133[(2)] = x); (statearr_11131_11133[(1)] = blk); return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,state); }))); if(cljs.core.truth_(temp__5718__auto__)){ var cb = temp__5718__auto__; var statearr_11132_11134 = state; (statearr_11132_11134[(2)] = cljs.core.deref.call(null,cb)); (statearr_11132_11134[(1)] = blk); return new cljs.core.Keyword(null,"recur","recur",-437573268); } else { return null; } }); cljs.core.async.impl.ioc_helpers.put_BANG_ = (function cljs$core$async$impl$ioc_helpers$put_BANG_(state,blk,c,val){ var temp__5718__auto__ = cljs.core.async.impl.protocols.put_BANG_.call(null,c,val,cljs.core.async.impl.ioc_helpers.fn_handler.call(null,(function (ret_val){ var statearr_11135_11137 = state; (statearr_11135_11137[(2)] = ret_val); (statearr_11135_11137[(1)] = blk); return cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped.call(null,state); }))); if(cljs.core.truth_(temp__5718__auto__)){ var cb = temp__5718__auto__; var statearr_11136_11138 = state; (statearr_11136_11138[(2)] = cljs.core.deref.call(null,cb)); (statearr_11136_11138[(1)] = blk); return new cljs.core.Keyword(null,"recur","recur",-437573268); } else { return null; } }); cljs.core.async.impl.ioc_helpers.return_chan = (function cljs$core$async$impl$ioc_helpers$return_chan(state,value){ var c = (state[(6)]); if((value == null)){ } else { cljs.core.async.impl.protocols.put_BANG_.call(null,c,value,cljs.core.async.impl.ioc_helpers.fn_handler.call(null,((function (c){ return (function (){ return null; });})(c)) )); } cljs.core.async.impl.protocols.close_BANG_.call(null,c); return c; }); /** * @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} */ cljs.core.async.impl.ioc_helpers.ExceptionFrame = (function (catch_block,catch_exception,finally_block,continue_block,prev,__meta,__extmap,__hash){ this.catch_block = catch_block; this.catch_exception = catch_exception; this.finally_block = finally_block; this.continue_block = continue_block; this.prev = prev; this.__meta = __meta; this.__extmap = __extmap; this.__hash = __hash; this.cljs$lang$protocol_mask$partition0$ = 2230716170; this.cljs$lang$protocol_mask$partition1$ = 139264; }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__4385__auto__,k__4386__auto__){ var self__ = this; var this__4385__auto____$1 = this; return this__4385__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__4386__auto__,null); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__4387__auto__,k11140,else__4388__auto__){ var self__ = this; var this__4387__auto____$1 = this; var G__11144 = k11140; var G__11144__$1 = (((G__11144 instanceof cljs.core.Keyword))?G__11144.fqn:null); switch (G__11144__$1) { case "catch-block": return self__.catch_block; break; case "catch-exception": return self__.catch_exception; break; case "finally-block": return self__.finally_block; break; case "continue-block": return self__.continue_block; break; case "prev": return self__.prev; break; default: return cljs.core.get.call(null,self__.__extmap,k11140,else__4388__auto__); } }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IKVReduce$_kv_reduce$arity$3 = (function (this__4404__auto__,f__4405__auto__,init__4406__auto__){ var self__ = this; var this__4404__auto____$1 = this; return cljs.core.reduce.call(null,((function (this__4404__auto____$1){ return (function (ret__4407__auto__,p__11145){ var vec__11146 = p__11145; var k__4408__auto__ = cljs.core.nth.call(null,vec__11146,(0),null); var v__4409__auto__ = cljs.core.nth.call(null,vec__11146,(1),null); return f__4405__auto__.call(null,ret__4407__auto__,k__4408__auto__,v__4409__auto__); });})(this__4404__auto____$1)) ,init__4406__auto__,this__4404__auto____$1); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (this__4399__auto__,writer__4400__auto__,opts__4401__auto__){ var self__ = this; var this__4399__auto____$1 = this; var pr_pair__4402__auto__ = ((function (this__4399__auto____$1){ return (function (keyval__4403__auto__){ return cljs.core.pr_sequential_writer.call(null,writer__4400__auto__,cljs.core.pr_writer,""," ","",opts__4401__auto__,keyval__4403__auto__); });})(this__4399__auto____$1)) ; return cljs.core.pr_sequential_writer.call(null,writer__4400__auto__,pr_pair__4402__auto__,"#cljs.core.async.impl.ioc-helpers.ExceptionFrame{",", ","}",opts__4401__auto__,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),self__.catch_block],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),self__.catch_exception],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"finally-block","finally-block",832982472),self__.finally_block],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),self__.continue_block],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"prev","prev",-1597069226),self__.prev],null))], null),self__.__extmap)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__11139){ var self__ = this; var G__11139__$1 = this; return (new cljs.core.RecordIter((0),G__11139__$1,5,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),new cljs.core.Keyword(null,"finally-block","finally-block",832982472),new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),new cljs.core.Keyword(null,"prev","prev",-1597069226)], null),(cljs.core.truth_(self__.__extmap)?cljs.core._iterator.call(null,self__.__extmap):cljs.core.nil_iter.call(null)))); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__4383__auto__){ var self__ = this; var this__4383__auto____$1 = this; return self__.__meta; }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ICloneable$_clone$arity$1 = (function (this__4380__auto__){ var self__ = this; var this__4380__auto____$1 = this; return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,self__.continue_block,self__.prev,self__.__meta,self__.__extmap,self__.__hash)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ICounted$_count$arity$1 = (function (this__4389__auto__){ var self__ = this; var this__4389__auto____$1 = this; return (5 + cljs.core.count.call(null,self__.__extmap)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IHash$_hash$arity$1 = (function (this__4381__auto__){ var self__ = this; var this__4381__auto____$1 = this; var h__4243__auto__ = self__.__hash; if((!((h__4243__auto__ == null)))){ return h__4243__auto__; } else { var h__4243__auto____$1 = ((function (h__4243__auto__,this__4381__auto____$1){ return (function (coll__4382__auto__){ return (846900531 ^ cljs.core.hash_unordered_coll.call(null,coll__4382__auto__)); });})(h__4243__auto__,this__4381__auto____$1)) .call(null,this__4381__auto____$1); self__.__hash = h__4243__auto____$1; return h__4243__auto____$1; } }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IEquiv$_equiv$arity$2 = (function (this11141,other11142){ var self__ = this; var this11141__$1 = this; return (((!((other11142 == null)))) && ((this11141__$1.constructor === other11142.constructor)) && (cljs.core._EQ_.call(null,this11141__$1.catch_block,other11142.catch_block)) && (cljs.core._EQ_.call(null,this11141__$1.catch_exception,other11142.catch_exception)) && (cljs.core._EQ_.call(null,this11141__$1.finally_block,other11142.finally_block)) && (cljs.core._EQ_.call(null,this11141__$1.continue_block,other11142.continue_block)) && (cljs.core._EQ_.call(null,this11141__$1.prev,other11142.prev)) && (cljs.core._EQ_.call(null,this11141__$1.__extmap,other11142.__extmap))); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IMap$_dissoc$arity$2 = (function (this__4394__auto__,k__4395__auto__){ var self__ = this; var this__4394__auto____$1 = this; if(cljs.core.contains_QMARK_.call(null,new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"finally-block","finally-block",832982472),null,new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),null,new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),null,new cljs.core.Keyword(null,"prev","prev",-1597069226),null,new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),null], null), null),k__4395__auto__)){ return cljs.core.dissoc.call(null,cljs.core._with_meta.call(null,cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,this__4394__auto____$1),self__.__meta),k__4395__auto__); } else { return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,self__.continue_block,self__.prev,self__.__meta,cljs.core.not_empty.call(null,cljs.core.dissoc.call(null,self__.__extmap,k__4395__auto__)),null)); } }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__4392__auto__,k__4393__auto__,G__11139){ var self__ = this; var this__4392__auto____$1 = this; var pred__11149 = cljs.core.keyword_identical_QMARK_; var expr__11150 = k__4393__auto__; if(cljs.core.truth_(pred__11149.call(null,new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),expr__11150))){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(G__11139,self__.catch_exception,self__.finally_block,self__.continue_block,self__.prev,self__.__meta,self__.__extmap,null)); } else { if(cljs.core.truth_(pred__11149.call(null,new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),expr__11150))){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,G__11139,self__.finally_block,self__.continue_block,self__.prev,self__.__meta,self__.__extmap,null)); } else { if(cljs.core.truth_(pred__11149.call(null,new cljs.core.Keyword(null,"finally-block","finally-block",832982472),expr__11150))){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,G__11139,self__.continue_block,self__.prev,self__.__meta,self__.__extmap,null)); } else { if(cljs.core.truth_(pred__11149.call(null,new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),expr__11150))){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,G__11139,self__.prev,self__.__meta,self__.__extmap,null)); } else { if(cljs.core.truth_(pred__11149.call(null,new cljs.core.Keyword(null,"prev","prev",-1597069226),expr__11150))){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,self__.continue_block,G__11139,self__.__meta,self__.__extmap,null)); } else { return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,self__.continue_block,self__.prev,self__.__meta,cljs.core.assoc.call(null,self__.__extmap,k__4393__auto__,G__11139),null)); } } } } } }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ISeqable$_seq$arity$1 = (function (this__4397__auto__){ var self__ = this; var this__4397__auto____$1 = this; return cljs.core.seq.call(null,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.MapEntry(new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),self__.catch_block,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),self__.catch_exception,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"finally-block","finally-block",832982472),self__.finally_block,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),self__.continue_block,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"prev","prev",-1597069226),self__.prev,null))], null),self__.__extmap)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__4384__auto__,G__11139){ var self__ = this; var this__4384__auto____$1 = this; return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(self__.catch_block,self__.catch_exception,self__.finally_block,self__.continue_block,self__.prev,G__11139,self__.__extmap,self__.__hash)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.prototype.cljs$core$ICollection$_conj$arity$2 = (function (this__4390__auto__,entry__4391__auto__){ var self__ = this; var this__4390__auto____$1 = this; if(cljs.core.vector_QMARK_.call(null,entry__4391__auto__)){ return this__4390__auto____$1.cljs$core$IAssociative$_assoc$arity$3(null,cljs.core._nth.call(null,entry__4391__auto__,(0)),cljs.core._nth.call(null,entry__4391__auto__,(1))); } else { return cljs.core.reduce.call(null,cljs.core._conj,this__4390__auto____$1,entry__4391__auto__); } }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.getBasis = (function (){ return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"catch-block","catch-block",-1479223021,null),cljs.core.with_meta(new cljs.core.Symbol(null,"catch-exception","catch-exception",-356775268,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Symbol(null,"Class","Class",2064526977,null)], null)),new cljs.core.Symbol(null,"finally-block","finally-block",-1821453297,null),new cljs.core.Symbol(null,"continue-block","continue-block",-211516323,null),new cljs.core.Symbol(null,"prev","prev",43462301,null)], null); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.cljs$lang$type = true; cljs.core.async.impl.ioc_helpers.ExceptionFrame.cljs$lang$ctorPrSeq = (function (this__4428__auto__){ return (new cljs.core.List(null,"cljs.core.async.impl.ioc-helpers/ExceptionFrame",null,(1),null)); }); cljs.core.async.impl.ioc_helpers.ExceptionFrame.cljs$lang$ctorPrWriter = (function (this__4428__auto__,writer__4429__auto__){ return cljs.core._write.call(null,writer__4429__auto__,"cljs.core.async.impl.ioc-helpers/ExceptionFrame"); }); /** * Positional factory function for cljs.core.async.impl.ioc-helpers/ExceptionFrame. */ cljs.core.async.impl.ioc_helpers.__GT_ExceptionFrame = (function cljs$core$async$impl$ioc_helpers$__GT_ExceptionFrame(catch_block,catch_exception,finally_block,continue_block,prev){ return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(catch_block,catch_exception,finally_block,continue_block,prev,null,null,null)); }); /** * Factory function for cljs.core.async.impl.ioc-helpers/ExceptionFrame, taking a map of keywords to field values. */ cljs.core.async.impl.ioc_helpers.map__GT_ExceptionFrame = (function cljs$core$async$impl$ioc_helpers$map__GT_ExceptionFrame(G__11143){ var extmap__4424__auto__ = (function (){var G__11152 = cljs.core.dissoc.call(null,G__11143,new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),new cljs.core.Keyword(null,"finally-block","finally-block",832982472),new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850),new cljs.core.Keyword(null,"prev","prev",-1597069226)); if(cljs.core.record_QMARK_.call(null,G__11143)){ return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,G__11152); } else { return G__11152; } })(); return (new cljs.core.async.impl.ioc_helpers.ExceptionFrame(new cljs.core.Keyword(null,"catch-block","catch-block",1175212748).cljs$core$IFn$_invoke$arity$1(G__11143),new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795).cljs$core$IFn$_invoke$arity$1(G__11143),new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(G__11143),new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850).cljs$core$IFn$_invoke$arity$1(G__11143),new cljs.core.Keyword(null,"prev","prev",-1597069226).cljs$core$IFn$_invoke$arity$1(G__11143),null,cljs.core.not_empty.call(null,extmap__4424__auto__),null)); }); cljs.core.async.impl.ioc_helpers.add_exception_frame = (function cljs$core$async$impl$ioc_helpers$add_exception_frame(state,catch_block,catch_exception,finally_block,continue_block){ var statearr_11154 = state; (statearr_11154[(4)] = cljs.core.async.impl.ioc_helpers.__GT_ExceptionFrame.call(null,catch_block,catch_exception,finally_block,continue_block,cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,(4)))); return statearr_11154; }); cljs.core.async.impl.ioc_helpers.process_exception = (function cljs$core$async$impl$ioc_helpers$process_exception(state){ while(true){ var exception_frame = cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,(4)); var catch_block = new cljs.core.Keyword(null,"catch-block","catch-block",1175212748).cljs$core$IFn$_invoke$arity$1(exception_frame); var catch_exception = new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795).cljs$core$IFn$_invoke$arity$1(exception_frame); var exception = cljs.core.async.impl.ioc_helpers.aget_object.call(null,state,(5)); if(cljs.core.truth_((function (){var and__4120__auto__ = exception; if(cljs.core.truth_(and__4120__auto__)){ return cljs.core.not.call(null,exception_frame); } else { return and__4120__auto__; } })())){ throw exception; } else { if(cljs.core.truth_((function (){var and__4120__auto__ = exception; if(cljs.core.truth_(and__4120__auto__)){ var and__4120__auto____$1 = catch_block; if(cljs.core.truth_(and__4120__auto____$1)){ return ((cljs.core._EQ_.call(null,new cljs.core.Keyword(null,"default","default",-1987822328),catch_exception)) || ((exception instanceof catch_exception))); } else { return and__4120__auto____$1; } } else { return and__4120__auto__; } })())){ var statearr_11155 = state; (statearr_11155[(1)] = catch_block); (statearr_11155[(2)] = exception); (statearr_11155[(5)] = null); (statearr_11155[(4)] = cljs.core.assoc.call(null,exception_frame,new cljs.core.Keyword(null,"catch-block","catch-block",1175212748),null,new cljs.core.Keyword(null,"catch-exception","catch-exception",-1997306795),null)); return statearr_11155; } else { if(cljs.core.truth_((function (){var and__4120__auto__ = exception; if(cljs.core.truth_(and__4120__auto__)){ return ((cljs.core.not.call(null,catch_block)) && (cljs.core.not.call(null,new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame)))); } else { return and__4120__auto__; } })())){ var statearr_11156_11160 = state; (statearr_11156_11160[(4)] = new cljs.core.Keyword(null,"prev","prev",-1597069226).cljs$core$IFn$_invoke$arity$1(exception_frame)); var G__11161 = state; state = G__11161; continue; } else { if(cljs.core.truth_((function (){var and__4120__auto__ = exception; if(cljs.core.truth_(and__4120__auto__)){ var and__4120__auto____$1 = cljs.core.not.call(null,catch_block); if(and__4120__auto____$1){ return new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame); } else { return and__4120__auto____$1; } } else { return and__4120__auto__; } })())){ var statearr_11157 = state; (statearr_11157[(1)] = new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame)); (statearr_11157[(4)] = cljs.core.assoc.call(null,exception_frame,new cljs.core.Keyword(null,"finally-block","finally-block",832982472),null)); return statearr_11157; } else { if(cljs.core.truth_((function (){var and__4120__auto__ = cljs.core.not.call(null,exception); if(and__4120__auto__){ return new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame); } else { return and__4120__auto__; } })())){ var statearr_11158 = state; (statearr_11158[(1)] = new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame)); (statearr_11158[(4)] = cljs.core.assoc.call(null,exception_frame,new cljs.core.Keyword(null,"finally-block","finally-block",832982472),null)); return statearr_11158; } else { if(((cljs.core.not.call(null,exception)) && (cljs.core.not.call(null,new cljs.core.Keyword(null,"finally-block","finally-block",832982472).cljs$core$IFn$_invoke$arity$1(exception_frame))))){ var statearr_11159 = state; (statearr_11159[(1)] = new cljs.core.Keyword(null,"continue-block","continue-block",-1852047850).cljs$core$IFn$_invoke$arity$1(exception_frame)); (statearr_11159[(4)] = new cljs.core.Keyword(null,"prev","prev",-1597069226).cljs$core$IFn$_invoke$arity$1(exception_frame)); return statearr_11159; } else { throw (new Error("No matching clause")); } } } } } } break; } }); //# sourceMappingURL=ioc_helpers.js.map?rel=1571758967919