From 0699de0144b92b216ea956e746a689233a876ad8 Mon Sep 17 00:00:00 2001 From: giles Date: Fri, 27 Mar 2026 01:13:52 +0000 Subject: [PATCH] Fix some primitive: return callback result, not element List.find returns the element that matched, but SX some should return the callback's truthy return value. This caused get-verb-info to return "get" (the verb string) instead of the {method, url} dict. Also added _active_vm tracking to VM for future HO primitive optimization, and reverted get-verb-info to use some (no longer needs for-each workaround). Co-Authored-By: Claude Opus 4.6 (1M context) --- hosts/ocaml/lib/sx_primitives.ml | 8 ++++++-- hosts/ocaml/lib/sx_vm.ml | 20 ++++++++++++++++++-- shared/static/wasm/sx/engine.sx | 21 +++++++-------------- shared/static/wasm/sx/engine.sxbc.json | 2 +- shared/static/wasm/sx_browser.bc.wasm.js | 2 +- web/engine.sx | 21 +++++++-------------- 6 files changed, 40 insertions(+), 34 deletions(-) diff --git a/hosts/ocaml/lib/sx_primitives.ml b/hosts/ocaml/lib/sx_primitives.ml index 92fc4533..fed61f94 100644 --- a/hosts/ocaml/lib/sx_primitives.ml +++ b/hosts/ocaml/lib/sx_primitives.ml @@ -731,8 +731,12 @@ let () = register "some" (fun args -> match args with | [f; (List items | ListRef { contents = items })] -> - (try List.find (fun x -> sx_truthy (call_any f [x])) items - with Not_found -> Bool false) + let rec find = function + | [] -> Bool false + | x :: rest -> + let result = call_any f [x] in + if sx_truthy result then result else find rest + in find items | [_; Nil] -> Bool false | _ -> raise (Eval_error "some: expected (fn list)")); register "every?" (fun args -> diff --git a/hosts/ocaml/lib/sx_vm.ml b/hosts/ocaml/lib/sx_vm.ml index 9eb90075..ed5fd150 100644 --- a/hosts/ocaml/lib/sx_vm.ml +++ b/hosts/ocaml/lib/sx_vm.ml @@ -41,6 +41,13 @@ let jit_failed_sentinel = { let is_jit_failed cl = cl.vm_code.vc_arity = -1 +(** Current active VM — allows HO primitives (map, filter, for-each, some) + to call VmClosure callbacks on the same VM instead of creating a new one. + This is critical: creating a new VM per callback loses the calling VM's + stack/frame context, causing upvalue-captured host objects to become + inaccessible. *) +let _active_vm : vm option ref = ref None + let create globals = { stack = Array.make 4096 Nil; sp = 0; frames = []; globals } @@ -125,11 +132,20 @@ let code_from_value v = Used for entry points: JIT Lambda calls, module execution, cross-boundary. *) let rec call_closure cl args globals = incr _vm_call_count; + let prev_vm = !_active_vm in let vm = create globals in + _active_vm := Some vm; push_closure_frame vm cl args; - (try run vm with e -> raise e); + (try run vm with e -> _active_vm := prev_vm; raise e); + _active_vm := prev_vm; pop vm +(** Call a VmClosure on the active VM if one exists, otherwise create a new one. + This is the path used by HO primitives (map, filter, for-each, some) so + callbacks can access upvalues that reference the calling VM's state. *) +and call_closure_reuse cl args = + call_closure cl args cl.vm_env_ref + (** Call a value as a function — dispatch by type. VmClosure: pushes frame on current VM (fast intra-VM path). Lambda: tries JIT then falls back to CEK. @@ -629,4 +645,4 @@ let jit_compile_lambda (l : lambda) globals = (* Wire up forward references *) let () = jit_compile_ref := jit_compile_lambda let () = _vm_call_closure_ref := (fun cl args -> - call_closure cl args cl.vm_env_ref) + call_closure_reuse cl args) diff --git a/shared/static/wasm/sx/engine.sx b/shared/static/wasm/sx/engine.sx index e66deaff..a0482137 100644 --- a/shared/static/wasm/sx/engine.sx +++ b/shared/static/wasm/sx/engine.sx @@ -86,20 +86,13 @@ :effects (io) (fn (el) - (let - ((result nil)) - (for-each - (fn - (verb) - (when - (not result) - (let - ((url (dom-get-attr el (str "sx-" verb)))) - (when - url - (set! result (dict "method" (upper verb) "url" url)))))) - ENGINE_VERBS) - result))) + (some + (fn + (verb) + (let + ((url (dom-get-attr el (str "sx-" verb)))) + (if url (dict "method" (upper verb) "url" url) nil))) + ENGINE_VERBS))) (define build-request-headers diff --git a/shared/static/wasm/sx/engine.sxbc.json b/shared/static/wasm/sx/engine.sxbc.json index bc73a481..1ede4615 100644 --- a/shared/static/wasm/sx/engine.sxbc.json +++ b/shared/static/wasm/sx/engine.sxbc.json @@ -1 +1 @@ -{"magic":"SXBC","version":1,"hash":"0d3ce0ff69929e45","module":{"bytecode":[1,2,0,1,3,0,1,4,0,1,5,0,1,6,0,52,1,0,5,128,0,0,5,1,8,0,128,7,0,5,51,10,0,128,9,0,5,51,12,0,128,11,0,5,51,14,0,128,13,0,5,51,16,0,128,15,0,5,51,18,0,128,17,0,5,51,20,0,128,19,0,5,51,22,0,128,21,0,5,51,24,0,128,23,0,5,51,26,0,128,25,0,5,51,28,0,128,27,0,5,51,30,0,128,29,0,5,51,32,0,128,31,0,5,51,34,0,128,33,0,5,51,36,0,128,35,0,5,51,38,0,128,37,0,5,51,40,0,128,39,0,5,51,42,0,128,41,0,5,51,44,0,128,43,0,5,51,46,0,128,45,0,5,51,48,0,128,47,0,5,51,50,0,128,49,0,5,51,52,0,128,51,0,5,51,54,0,128,53,0,5,51,56,0,128,55,0,5,1,58,0,128,57,0,5,51,60,0,128,59,0,5,51,62,0,128,61,0,5,51,64,0,128,63,0,5,51,66,0,128,65,0,5,51,68,0,128,67,0,5,51,70,0,128,69,0,50],"constants":[{"t":"s","v":"ENGINE_VERBS"},{"t":"s","v":"list"},{"t":"s","v":"get"},{"t":"s","v":"post"},{"t":"s","v":"put"},{"t":"s","v":"delete"},{"t":"s","v":"patch"},{"t":"s","v":"DEFAULT_SWAP"},{"t":"s","v":"outerHTML"},{"t":"s","v":"parse-time"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,6,0,1,1,0,32,74,0,16,0,1,3,0,52,2,0,2,33,12,0,16,0,1,1,0,52,4,0,2,32,50,0,16,0,1,5,0,52,2,0,2,33,29,0,16,0,1,5,0,1,8,0,52,7,0,3,1,1,0,52,4,0,2,1,9,0,52,6,0,2,32,9,0,16,0,1,1,0,52,4,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"n","v":0},{"t":"s","v":"ends-with?"},{"t":"s","v":"ms"},{"t":"s","v":"parse-int"},{"t":"s","v":"s"},{"t":"s","v":"*"},{"t":"s","v":"replace"},{"t":"s","v":""},{"t":"n","v":1000}],"arity":1}},{"t":"s","v":"parse-trigger-spec"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,4,0,2,32,27,0,16,0,1,2,0,52,1,0,2,17,1,51,4,0,51,6,0,16,1,52,5,0,2,52,3,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"split"},{"t":"s","v":","},{"t":"s","v":"filter"},{"t":"code","v":{"bytecode":[16,0,52,1,0,1,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"nil?"}],"arity":1}},{"t":"s","v":"map"},{"t":"code","v":{"bytecode":[16,0,52,1,0,1,1,2,0,52,0,0,2,17,1,16,1,52,3,0,1,33,4,0,2,32,111,0,16,1,52,5,0,1,1,6,0,52,4,0,2,6,33,14,0,5,16,1,52,8,0,1,1,9,0,52,7,0,2,33,37,0,1,11,0,1,6,0,1,12,0,1,13,0,20,14,0,16,1,1,16,0,52,15,0,2,48,1,52,10,0,2,52,10,0,4,32,40,0,52,10,0,0,17,2,51,18,0,1,2,16,1,52,19,0,1,52,17,0,2,5,1,11,0,16,1,52,5,0,1,1,12,0,16,2,52,10,0,4,50],"constants":[{"t":"s","v":"split"},{"t":"s","v":"trim"},{"t":"s","v":" "},{"t":"s","v":"empty?"},{"t":"s","v":"="},{"t":"s","v":"first"},{"t":"s","v":"every"},{"t":"s","v":">="},{"t":"s","v":"len"},{"t":"n","v":2},{"t":"s","v":"dict"},{"t":"s","v":"event"},{"t":"s","v":"modifiers"},{"t":"s","v":"interval"},{"t":"s","v":"parse-time"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,13,0,18,0,1,1,0,3,52,2,0,3,32,97,0,16,0,1,3,0,52,0,0,2,33,13,0,18,0,1,3,0,3,52,2,0,3,32,72,0,16,0,1,5,0,52,4,0,2,33,26,0,18,0,1,6,0,20,7,0,16,0,1,9,0,52,8,0,2,48,1,52,2,0,3,32,34,0,16,0,1,10,0,52,4,0,2,33,21,0,18,0,1,11,0,16,0,1,12,0,52,8,0,2,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"once"},{"t":"s","v":"dict-set!"},{"t":"s","v":"changed"},{"t":"s","v":"starts-with?"},{"t":"s","v":"delay:"},{"t":"s","v":"delay"},{"t":"s","v":"parse-time"},{"t":"s","v":"slice"},{"t":"n","v":6},{"t":"s","v":"from:"},{"t":"s","v":"from"},{"t":"n","v":5}],"arity":1,"upvalue-count":1}},{"t":"s","v":"rest"}],"arity":1}}],"arity":1}},{"t":"s","v":"default-trigger"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,24,0,1,4,0,1,5,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,32,85,0,16,0,1,7,0,52,0,0,2,6,34,24,0,5,16,0,1,8,0,52,0,0,2,6,34,10,0,5,16,0,1,9,0,52,0,0,2,33,24,0,1,4,0,1,10,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,32,21,0,1,4,0,1,11,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"FORM"},{"t":"s","v":"list"},{"t":"s","v":"dict"},{"t":"s","v":"event"},{"t":"s","v":"submit"},{"t":"s","v":"modifiers"},{"t":"s","v":"INPUT"},{"t":"s","v":"SELECT"},{"t":"s","v":"TEXTAREA"},{"t":"s","v":"change"},{"t":"s","v":"click"}],"arity":1}},{"t":"s","v":"get-verb-info"},{"t":"code","v":{"bytecode":[2,17,1,51,1,0,1,1,1,0,20,2,0,52,0,0,2,5,16,1,50],"constants":[{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[18,0,52,0,0,1,33,50,0,20,1,0,18,1,1,3,0,16,0,52,2,0,2,48,2,17,1,16,1,33,23,0,1,5,0,16,0,52,6,0,1,1,7,0,16,1,52,4,0,4,19,0,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"str"},{"t":"s","v":"sx-"},{"t":"s","v":"dict"},{"t":"s","v":"method"},{"t":"s","v":"upper"},{"t":"s","v":"url"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"ENGINE_VERBS"}],"arity":1}},{"t":"s","v":"build-request-headers"},{"t":"code","v":{"bytecode":[1,1,0,1,2,0,1,3,0,20,4,0,48,0,52,0,0,4,17,3,20,5,0,16,0,1,6,0,48,2,17,4,16,4,33,14,0,16,3,1,8,0,16,4,52,7,0,3,32,1,0,2,5,20,5,0,20,9,0,1,10,0,48,1,1,11,0,48,2,17,4,16,4,33,14,0,16,3,1,12,0,16,4,52,7,0,3,32,1,0,2,5,16,2,33,14,0,16,3,1,13,0,16,2,52,7,0,3,32,1,0,2,5,20,5,0,16,0,1,14,0,48,2,17,4,16,4,33,38,0,20,15,0,16,4,48,1,17,5,16,5,33,20,0,51,17,0,1,3,1,5,16,5,52,18,0,1,52,16,0,2,32,1,0,2,32,1,0,2,5,16,3,50],"constants":[{"t":"s","v":"dict"},{"t":"s","v":"SX-Request"},{"t":"s","v":"true"},{"t":"s","v":"SX-Current-URL"},{"t":"s","v":"browser-location-href"},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-target"},{"t":"s","v":"dict-set!"},{"t":"s","v":"SX-Target"},{"t":"s","v":"dom-query"},{"t":"s","v":"script[data-components][data-hash]"},{"t":"s","v":"data-hash"},{"t":"s","v":"SX-Components-Hash"},{"t":"s","v":"SX-Css"},{"t":"s","v":"sx-headers"},{"t":"s","v":"parse-header-value"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[18,0,16,0,18,1,16,0,52,2,0,2,52,1,0,1,52,0,0,3,50],"constants":[{"t":"s","v":"dict-set!"},{"t":"s","v":"str"},{"t":"s","v":"get"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"keys"}],"arity":3}},{"t":"s","v":"process-response-headers"},{"t":"code","v":{"bytecode":[1,1,0,16,0,1,2,0,48,1,1,3,0,16,0,1,4,0,48,1,1,5,0,16,0,1,6,0,48,1,1,7,0,16,0,1,8,0,48,1,1,9,0,16,0,1,10,0,48,1,1,11,0,16,0,1,12,0,48,1,1,13,0,16,0,1,14,0,48,1,1,15,0,16,0,1,16,0,48,1,1,17,0,16,0,1,18,0,48,1,1,19,0,16,0,1,20,0,48,1,1,21,0,16,0,1,22,0,48,1,1,23,0,16,0,1,24,0,48,1,1,25,0,16,0,1,26,0,48,1,52,0,0,26,50],"constants":[{"t":"s","v":"dict"},{"t":"s","v":"redirect"},{"t":"s","v":"SX-Redirect"},{"t":"s","v":"refresh"},{"t":"s","v":"SX-Refresh"},{"t":"s","v":"trigger"},{"t":"s","v":"SX-Trigger"},{"t":"s","v":"retarget"},{"t":"s","v":"SX-Retarget"},{"t":"s","v":"reswap"},{"t":"s","v":"SX-Reswap"},{"t":"s","v":"location"},{"t":"s","v":"SX-Location"},{"t":"s","v":"replace-url"},{"t":"s","v":"SX-Replace-Url"},{"t":"s","v":"css-hash"},{"t":"s","v":"SX-Css-Hash"},{"t":"s","v":"trigger-swap"},{"t":"s","v":"SX-Trigger-After-Swap"},{"t":"s","v":"trigger-settle"},{"t":"s","v":"SX-Trigger-After-Settle"},{"t":"s","v":"content-type"},{"t":"s","v":"Content-Type"},{"t":"s","v":"cache-invalidate"},{"t":"s","v":"SX-Cache-Invalidate"},{"t":"s","v":"cache-update"},{"t":"s","v":"SX-Cache-Update"}],"arity":1}},{"t":"s","v":"parse-swap-spec"},{"t":"code","v":{"bytecode":[16,0,6,34,4,0,5,20,1,0,1,2,0,52,0,0,2,17,2,16,2,52,3,0,1,17,3,16,1,17,4,51,5,0,1,4,16,2,52,6,0,1,52,4,0,2,5,1,8,0,16,3,1,9,0,16,4,52,7,0,4,50],"constants":[{"t":"s","v":"split"},{"t":"s","v":"DEFAULT_SWAP"},{"t":"s","v":" "},{"t":"s","v":"first"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,6,0,3,19,0,32,19,0,16,0,1,2,0,52,0,0,2,33,6,0,4,19,0,32,1,0,2,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"transition:true"},{"t":"s","v":"transition:false"}],"arity":1,"upvalue-count":1}},{"t":"s","v":"rest"},{"t":"s","v":"dict"},{"t":"s","v":"style"},{"t":"s","v":"transition"}],"arity":2}},{"t":"s","v":"parse-retry-spec"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,4,0,2,32,62,0,16,0,1,2,0,52,1,0,2,17,1,1,4,0,16,1,52,5,0,1,1,6,0,16,1,1,9,0,52,8,0,2,1,10,0,52,7,0,2,1,11,0,16,1,1,12,0,52,8,0,2,1,13,0,52,7,0,2,52,3,0,6,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"split"},{"t":"s","v":":"},{"t":"s","v":"dict"},{"t":"s","v":"strategy"},{"t":"s","v":"first"},{"t":"s","v":"start-ms"},{"t":"s","v":"parse-int"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"n","v":1000},{"t":"s","v":"cap-ms"},{"t":"n","v":2},{"t":"n","v":30000}],"arity":1}},{"t":"s","v":"next-retry-ms"},{"t":"code","v":{"bytecode":[16,0,1,2,0,52,1,0,2,16,1,52,0,0,2,50],"constants":[{"t":"s","v":"min"},{"t":"s","v":"*"},{"t":"n","v":2}],"arity":2}},{"t":"s","v":"filter-params"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,5,0,16,1,32,116,0,16,0,1,2,0,52,1,0,2,33,7,0,52,3,0,0,32,97,0,16,0,1,4,0,52,1,0,2,33,5,0,16,1,32,80,0,16,0,1,6,0,52,5,0,2,33,39,0,20,8,0,16,0,1,11,0,52,10,0,2,1,12,0,52,9,0,2,52,7,0,2,17,2,51,14,0,1,2,16,1,52,13,0,2,32,29,0,20,8,0,16,0,1,12,0,52,9,0,2,52,7,0,2,17,2,51,15,0,1,2,16,1,52,13,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"="},{"t":"s","v":"none"},{"t":"s","v":"list"},{"t":"s","v":"*"},{"t":"s","v":"starts-with?"},{"t":"s","v":"not "},{"t":"s","v":"map"},{"t":"s","v":"trim"},{"t":"s","v":"split"},{"t":"s","v":"slice"},{"t":"n","v":4},{"t":"s","v":","},{"t":"s","v":"filter"},{"t":"code","v":{"bytecode":[18,0,16,0,52,2,0,1,52,1,0,2,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"contains?"},{"t":"s","v":"first"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[18,0,16,0,52,1,0,1,52,0,0,2,50],"constants":[{"t":"s","v":"contains?"},{"t":"s","v":"first"}],"arity":1,"upvalue-count":1}}],"arity":2}},{"t":"s","v":"resolve-target"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,52,2,0,1,6,34,10,0,5,16,1,1,4,0,52,3,0,2,33,5,0,16,0,32,29,0,16,1,1,5,0,52,3,0,2,33,10,0,20,6,0,16,0,49,1,32,7,0,20,7,0,16,1,49,1,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-target"},{"t":"s","v":"nil?"},{"t":"s","v":"="},{"t":"s","v":"this"},{"t":"s","v":"closest"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-query"}],"arity":1}},{"t":"s","v":"apply-optimistic"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,52,2,0,1,33,4,0,2,32,191,0,20,3,0,16,0,48,1,6,34,3,0,5,16,0,17,2,1,5,0,16,2,1,6,0,16,1,52,4,0,4,17,3,16,1,1,8,0,52,7,0,2,33,50,0,16,3,1,10,0,20,11,0,16,2,1,10,0,48,2,52,9,0,3,5,20,12,0,16,2,1,10,0,1,13,0,48,3,5,20,12,0,16,2,1,14,0,1,15,0,48,3,32,94,0,16,1,1,16,0,52,7,0,2,33,34,0,16,3,1,17,0,20,18,0,16,2,1,17,0,48,2,52,9,0,3,5,20,19,0,16,2,1,17,0,3,48,3,32,48,0,16,1,1,21,0,52,20,0,2,33,35,0,16,1,1,23,0,52,22,0,2,17,4,16,3,1,24,0,16,4,52,9,0,3,5,20,25,0,16,2,16,4,48,2,32,1,0,2,5,16,3,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-optimistic"},{"t":"s","v":"nil?"},{"t":"s","v":"resolve-target"},{"t":"s","v":"dict"},{"t":"s","v":"target"},{"t":"s","v":"directive"},{"t":"s","v":"="},{"t":"s","v":"remove"},{"t":"s","v":"dict-set!"},{"t":"s","v":"opacity"},{"t":"s","v":"dom-get-style"},{"t":"s","v":"dom-set-style"},{"t":"s","v":"0"},{"t":"s","v":"pointer-events"},{"t":"s","v":"none"},{"t":"s","v":"disable"},{"t":"s","v":"disabled"},{"t":"s","v":"dom-get-prop"},{"t":"s","v":"dom-set-prop"},{"t":"s","v":"starts-with?"},{"t":"s","v":"add-class:"},{"t":"s","v":"slice"},{"t":"n","v":10},{"t":"s","v":"add-class"},{"t":"s","v":"dom-add-class"}],"arity":1}},{"t":"s","v":"revert-optimistic"},{"t":"code","v":{"bytecode":[16,0,33,153,0,16,0,1,1,0,52,0,0,2,17,1,16,0,1,2,0,52,0,0,2,17,2,16,2,1,4,0,52,3,0,2,33,44,0,20,5,0,16,1,1,6,0,16,0,1,6,0,52,0,0,2,6,34,4,0,5,1,7,0,48,3,5,20,5,0,16,1,1,8,0,1,7,0,49,3,32,72,0,16,2,1,9,0,52,3,0,2,33,28,0,20,10,0,16,1,1,11,0,16,0,1,11,0,52,0,0,2,6,34,2,0,5,4,49,3,32,32,0,16,0,1,12,0,52,0,0,2,33,19,0,20,13,0,16,1,16,0,1,12,0,52,0,0,2,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"get"},{"t":"s","v":"target"},{"t":"s","v":"directive"},{"t":"s","v":"="},{"t":"s","v":"remove"},{"t":"s","v":"dom-set-style"},{"t":"s","v":"opacity"},{"t":"s","v":""},{"t":"s","v":"pointer-events"},{"t":"s","v":"disable"},{"t":"s","v":"dom-set-prop"},{"t":"s","v":"disabled"},{"t":"s","v":"add-class"},{"t":"s","v":"dom-remove-class"}],"arity":1}},{"t":"s","v":"find-oob-swaps"},{"t":"code","v":{"bytecode":[52,0,0,0,17,1,51,2,0,1,0,1,1,1,3,0,1,4,0,52,0,0,2,52,1,0,2,5,16,1,50],"constants":[{"t":"s","v":"list"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,18,0,1,2,0,16,0,1,3,0,52,1,0,3,48,2,17,1,51,5,0,1,0,0,1,16,1,52,4,0,2,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"str"},{"t":"s","v":"["},{"t":"s","v":"]"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,18,0,48,2,6,34,4,0,5,1,1,0,17,1,20,2,0,16,0,48,1,17,2,20,3,0,16,0,18,0,48,2,5,16,2,33,29,0,20,4,0,18,1,1,6,0,16,0,1,7,0,16,1,1,8,0,16,2,52,5,0,6,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-id"},{"t":"s","v":"dom-remove-attr"},{"t":"s","v":"append!"},{"t":"s","v":"dict"},{"t":"s","v":"element"},{"t":"s","v":"swap-type"},{"t":"s","v":"target-id"}],"arity":1,"upvalue-count":2}}],"arity":1,"upvalue-count":2}},{"t":"s","v":"sx-swap-oob"},{"t":"s","v":"hx-swap-oob"}],"arity":1}},{"t":"s","v":"morph-node"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,11,0,5,20,0,0,16,0,1,2,0,48,2,33,4,0,2,32,137,1,20,0,0,16,0,1,3,0,48,2,6,33,55,0,5,20,4,0,16,0,1,5,0,48,2,6,33,40,0,5,20,0,0,16,1,1,3,0,48,2,6,33,25,0,5,20,7,0,16,0,1,3,0,48,2,20,7,0,16,1,1,3,0,48,2,52,6,0,2,33,12,0,20,8,0,16,0,16,1,49,2,32,53,1,20,10,0,16,0,48,1,20,10,0,16,1,48,1,52,6,0,2,52,9,0,1,6,34,23,0,5,20,11,0,16,0,48,1,20,11,0,16,1,48,1,52,6,0,2,52,9,0,1,33,24,0,20,12,0,20,13,0,16,0,48,1,20,14,0,16,1,48,1,16,0,49,3,32,233,0,20,10,0,16,0,48,1,1,15,0,52,6,0,2,6,34,15,0,5,20,10,0,16,0,48,1,1,16,0,52,6,0,2,33,46,0,20,17,0,16,0,48,1,20,17,0,16,1,48,1,52,6,0,2,52,9,0,1,33,17,0,20,18,0,16,0,20,17,0,16,1,48,1,49,2,32,1,0,2,32,151,0,20,10,0,16,0,48,1,1,19,0,52,6,0,2,33,133,0,20,0,0,16,0,1,3,0,48,2,6,33,44,0,5,20,0,0,16,1,1,3,0,48,2,6,33,29,0,5,20,7,0,16,0,1,3,0,48,2,20,7,0,16,1,1,3,0,48,2,52,6,0,2,52,9,0,1,33,18,0,20,20,0,16,0,48,1,5,20,21,0,16,0,48,1,32,1,0,2,5,20,22,0,16,0,16,1,48,2,5,20,23,0,16,0,48,1,6,33,8,0,5,20,24,0,16,0,48,1,52,9,0,1,33,12,0,20,25,0,16,0,16,1,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-preserve"},{"t":"s","v":"sx-ignore"},{"t":"s","v":"data-sx-island"},{"t":"s","v":"is-processed?"},{"t":"s","v":"island-hydrated"},{"t":"s","v":"="},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"morph-island-children"},{"t":"s","v":"not"},{"t":"s","v":"dom-node-type"},{"t":"s","v":"dom-node-name"},{"t":"s","v":"dom-replace-child"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-clone"},{"t":"n","v":3},{"t":"n","v":8},{"t":"s","v":"dom-text-content"},{"t":"s","v":"dom-set-text-content"},{"t":"n","v":1},{"t":"s","v":"dispose-island"},{"t":"s","v":"dispose-islands-in"},{"t":"s","v":"sync-attrs"},{"t":"s","v":"dom-is-active-element?"},{"t":"s","v":"dom-is-input-element?"},{"t":"s","v":"morph-children"}],"arity":2}},{"t":"s","v":"sync-attrs"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,4,0,5,1,2,0,17,2,16,2,52,3,0,1,33,7,0,52,4,0,0,32,9,0,16,2,1,6,0,52,5,0,2,17,3,51,8,0,1,0,1,3,20,9,0,16,1,48,1,52,7,0,2,5,51,10,0,1,1,1,3,1,0,20,9,0,16,0,48,1,52,7,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-reactive-attrs"},{"t":"s","v":""},{"t":"s","v":"empty?"},{"t":"s","v":"list"},{"t":"s","v":"split"},{"t":"s","v":","},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,17,1,16,0,1,2,0,52,1,0,2,17,2,20,5,0,18,0,16,1,48,2,16,2,52,4,0,2,52,3,0,1,6,33,13,0,5,18,1,16,1,52,6,0,2,52,3,0,1,33,14,0,20,7,0,18,0,16,1,16,2,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"first"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"s","v":"not"},{"t":"s","v":"="},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"contains?"},{"t":"s","v":"dom-set-attr"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"dom-attr-list"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,17,1,20,2,0,18,0,16,1,48,2,52,1,0,1,6,33,31,0,5,18,1,16,1,52,3,0,2,52,1,0,1,6,33,14,0,5,16,1,1,5,0,52,4,0,2,52,1,0,1,33,12,0,20,6,0,18,2,16,1,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"first"},{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"contains?"},{"t":"s","v":"="},{"t":"s","v":"data-sx-reactive-attrs"},{"t":"s","v":"dom-remove-attr"}],"arity":1,"upvalue-count":3}}],"arity":2}},{"t":"s","v":"morph-children"},{"t":"code","v":{"bytecode":[20,0,0,16,0,48,1,17,2,20,0,0,16,1,48,1,17,3,51,2,0,52,3,0,0,16,2,52,1,0,3,17,4,1,4,0,17,5,51,6,0,1,4,1,5,1,2,1,0,16,3,52,5,0,2,5,51,7,0,1,5,1,2,1,0,16,5,16,2,52,9,0,1,52,8,0,2,52,5,0,2,50],"constants":[{"t":"s","v":"dom-child-list"},{"t":"s","v":"reduce"},{"t":"code","v":{"bytecode":[20,0,0,16,1,48,1,17,2,16,2,33,16,0,16,0,16,2,16,1,52,1,0,3,5,16,0,32,2,0,16,0,50],"constants":[{"t":"s","v":"dom-id"},{"t":"s","v":"dict-set!"}],"arity":2}},{"t":"s","v":"dict"},{"t":"n","v":0},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,48,1,17,1,16,1,33,11,0,18,0,16,1,52,1,0,2,32,1,0,2,17,2,16,2,6,33,11,0,5,16,2,52,3,0,1,52,2,0,1,33,100,0,18,1,18,2,52,5,0,1,52,4,0,2,6,33,19,0,5,16,2,18,2,18,1,52,7,0,2,52,6,0,2,52,2,0,1,33,39,0,20,8,0,18,3,16,2,18,1,18,2,52,5,0,1,52,4,0,2,33,11,0,18,2,18,1,52,7,0,2,32,1,0,2,48,3,32,1,0,2,5,20,9,0,16,2,16,0,48,2,5,18,1,52,10,0,1,19,1,32,100,0,18,1,18,2,52,5,0,1,52,4,0,2,33,71,0,18,2,18,1,52,7,0,2,17,3,20,0,0,16,3,48,1,6,33,7,0,5,16,1,52,2,0,1,33,19,0,20,8,0,18,3,20,11,0,16,0,48,1,16,3,49,3,32,18,0,20,9,0,16,3,16,0,48,2,5,18,1,52,10,0,1,19,1,32,14,0,20,12,0,18,3,20,11,0,16,0,48,1,49,2,50],"constants":[{"t":"s","v":"dom-id"},{"t":"s","v":"dict-get"},{"t":"s","v":"not"},{"t":"s","v":"nil?"},{"t":"s","v":"<"},{"t":"s","v":"len"},{"t":"s","v":"="},{"t":"s","v":"nth"},{"t":"s","v":"dom-insert-before"},{"t":"s","v":"morph-node"},{"t":"s","v":"inc"},{"t":"s","v":"dom-clone"},{"t":"s","v":"dom-append"}],"arity":1,"upvalue-count":4}},{"t":"code","v":{"bytecode":[16,0,18,0,52,0,0,2,33,76,0,18,1,16,0,52,1,0,2,17,1,20,2,0,16,1,18,2,48,2,6,33,34,0,5,20,4,0,16,1,1,5,0,48,2,52,3,0,1,6,33,15,0,5,20,4,0,16,1,1,6,0,48,2,52,3,0,1,33,12,0,20,7,0,18,2,16,1,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":">="},{"t":"s","v":"nth"},{"t":"s","v":"dom-is-child-of?"},{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-preserve"},{"t":"s","v":"sx-ignore"},{"t":"s","v":"dom-remove-child"}],"arity":1,"upvalue-count":3}},{"t":"s","v":"range"},{"t":"s","v":"len"}],"arity":2}},{"t":"s","v":"morph-island-children"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,2,20,0,0,16,1,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,20,0,0,16,1,1,2,0,48,2,17,5,52,3,0,0,17,6,52,3,0,0,17,7,51,5,0,1,6,16,3,52,4,0,2,5,51,6,0,1,7,16,5,52,4,0,2,5,51,7,0,1,6,16,2,52,4,0,2,5,51,8,0,1,7,1,0,16,4,52,4,0,2,5,20,9,0,16,1,49,1,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"[data-sx-lake]"},{"t":"s","v":"[data-sx-marsh]"},{"t":"s","v":"dict"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,13,0,18,0,16,1,16,0,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-lake"},{"t":"s","v":"dict-set!"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,13,0,18,0,16,1,16,0,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-marsh"},{"t":"s","v":"dict-set!"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,18,0,16,1,52,2,0,2,17,2,16,2,33,22,0,20,3,0,16,0,16,2,48,2,5,20,4,0,16,0,16,2,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-lake"},{"t":"s","v":"dict-get"},{"t":"s","v":"sync-attrs"},{"t":"s","v":"morph-children"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,18,0,16,1,52,2,0,2,17,2,16,2,33,14,0,20,3,0,16,0,16,2,18,1,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-marsh"},{"t":"s","v":"dict-get"},{"t":"s","v":"morph-marsh"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"process-signal-updates"}],"arity":2}},{"t":"s","v":"morph-marsh"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,20,3,0,16,1,48,1,17,5,16,4,6,33,18,0,5,16,5,6,33,11,0,5,16,5,52,5,0,1,52,4,0,1,33,61,0,20,6,0,16,5,48,1,17,6,16,3,33,16,0,20,7,0,16,3,16,6,52,8,0,1,48,2,32,2,0,16,6,17,7,20,9,0,16,0,48,1,5,20,10,0,16,0,51,11,0,1,7,1,4,1,0,49,2,32,19,0,20,12,0,16,0,16,1,48,2,5,20,13,0,16,0,16,1,49,2,50],"constants":[{"t":"s","v":"dom-get-data"},{"t":"s","v":"sx-marsh-transform"},{"t":"s","v":"sx-marsh-env"},{"t":"s","v":"dom-inner-html"},{"t":"s","v":"not"},{"t":"s","v":"empty?"},{"t":"s","v":"parse"},{"t":"s","v":"cek-call"},{"t":"s","v":"list"},{"t":"s","v":"dispose-marsh-scope"},{"t":"s","v":"with-marsh-scope"},{"t":"code","v":{"bytecode":[20,0,0,18,0,18,1,2,48,3,17,0,20,1,0,18,2,2,48,2,5,20,2,0,18,2,16,0,49,2,50],"constants":[{"t":"s","v":"render-to-dom"},{"t":"s","v":"dom-remove-children-after"},{"t":"s","v":"dom-append"}],"upvalue-count":3}},{"t":"s","v":"sync-attrs"},{"t":"s","v":"morph-children"}],"arity":3}},{"t":"s","v":"process-signal-updates"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,51,3,0,16,1,52,2,0,2,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"[data-sx-signal]"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,94,0,16,1,1,3,0,52,2,0,2,17,2,16,2,1,5,0,52,4,0,2,33,67,0,16,1,1,5,0,16,2,52,6,0,3,17,3,16,1,16,2,1,8,0,52,7,0,2,52,6,0,2,17,4,20,9,0,16,4,48,1,17,5,20,10,0,20,11,0,16,3,48,1,16,5,48,2,5,20,12,0,16,0,1,1,0,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-signal"},{"t":"s","v":"index-of"},{"t":"s","v":":"},{"t":"s","v":">"},{"t":"n","v":0},{"t":"s","v":"slice"},{"t":"s","v":"+"},{"t":"n","v":1},{"t":"s","v":"json-parse"},{"t":"s","v":"reset!"},{"t":"s","v":"use-store"},{"t":"s","v":"dom-remove-attr"}],"arity":1}}],"arity":1}},{"t":"s","v":"swap-dom-nodes"},{"t":"code","v":{"bytecode":[16,2,6,1,0,0,52,1,0,2,33,56,0,5,20,2,0,16,1,48,1,33,12,0,20,3,0,16,0,16,1,49,2,32,30,0,20,4,0,1,5,0,2,48,2,17,3,20,6,0,16,3,16,1,48,2,5,20,3,0,16,0,16,3,49,2,32,73,1,6,1,7,0,52,1,0,2,33,117,0,5,20,8,0,16,0,48,1,17,3,20,9,0,16,1,48,1,17,4,20,2,0,16,1,48,1,33,71,0,20,10,0,16,1,48,1,17,5,16,5,33,45,0,20,9,0,16,5,48,1,17,4,5,20,11,0,16,3,16,4,16,0,48,3,5,20,12,0,16,5,48,1,17,6,20,13,0,16,3,16,4,16,6,48,3,32,9,0,20,14,0,16,3,16,0,48,2,32,11,0,20,11,0,16,3,16,4,16,0,48,3,5,16,4,32,201,0,6,1,15,0,52,1,0,2,33,13,0,5,20,16,0,16,0,16,1,49,2,32,177,0,6,1,17,0,52,1,0,2,33,13,0,5,20,6,0,16,0,16,1,49,2,32,153,0,6,1,18,0,52,1,0,2,33,13,0,5,20,19,0,16,0,16,1,49,2,32,129,0,6,1,20,0,52,1,0,2,33,20,0,5,20,21,0,20,8,0,16,0,48,1,16,1,16,0,49,3,32,98,0,6,1,22,0,52,1,0,2,33,18,0,5,20,14,0,20,8,0,16,0,48,1,16,0,49,2,32,69,0,6,1,23,0,52,1,0,2,33,5,0,5,2,32,53,0,5,20,2,0,16,1,48,1,33,12,0,20,3,0,16,0,16,1,49,2,32,30,0,20,4,0,1,5,0,2,48,2,17,3,20,6,0,16,3,16,1,48,2,5,20,3,0,16,0,16,3,49,2,50],"constants":[{"t":"s","v":"innerHTML"},{"t":"s","v":"="},{"t":"s","v":"dom-is-fragment?"},{"t":"s","v":"morph-children"},{"t":"s","v":"dom-create-element"},{"t":"s","v":"div"},{"t":"s","v":"dom-append"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-clone"},{"t":"s","v":"dom-first-child"},{"t":"s","v":"dom-replace-child"},{"t":"s","v":"dom-next-sibling"},{"t":"s","v":"insert-remaining-siblings"},{"t":"s","v":"dom-remove-child"},{"t":"s","v":"afterend"},{"t":"s","v":"dom-insert-after"},{"t":"s","v":"beforeend"},{"t":"s","v":"afterbegin"},{"t":"s","v":"dom-prepend"},{"t":"s","v":"beforebegin"},{"t":"s","v":"dom-insert-before"},{"t":"s","v":"delete"},{"t":"s","v":"none"}],"arity":3}},{"t":"s","v":"insert-remaining-siblings"},{"t":"code","v":{"bytecode":[16,2,33,33,0,20,0,0,16,2,48,1,17,3,20,1,0,16,1,16,2,48,2,5,20,2,0,16,0,16,2,16,3,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-next-sibling"},{"t":"s","v":"dom-insert-after"},{"t":"s","v":"insert-remaining-siblings"}],"arity":3}},{"t":"s","v":"swap-html-string"},{"t":"code","v":{"bytecode":[16,2,6,1,0,0,52,1,0,2,33,13,0,5,20,2,0,16,0,16,1,49,2,32,212,0,6,1,3,0,52,1,0,2,33,38,0,5,20,4,0,16,0,48,1,17,3,20,5,0,16,0,1,6,0,16,1,48,3,5,20,7,0,16,3,16,0,48,2,5,16,3,32,163,0,6,1,6,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,6,0,16,1,49,3,32,136,0,6,1,8,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,8,0,16,1,49,3,32,109,0,6,1,9,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,9,0,16,1,49,3,32,82,0,6,1,10,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,10,0,16,1,49,3,32,55,0,6,1,11,0,52,1,0,2,33,18,0,5,20,7,0,20,4,0,16,0,48,1,16,0,49,2,32,26,0,6,1,12,0,52,1,0,2,33,5,0,5,2,32,10,0,5,20,2,0,16,0,16,1,49,2,50],"constants":[{"t":"s","v":"innerHTML"},{"t":"s","v":"="},{"t":"s","v":"dom-set-inner-html"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-insert-adjacent-html"},{"t":"s","v":"afterend"},{"t":"s","v":"dom-remove-child"},{"t":"s","v":"beforeend"},{"t":"s","v":"afterbegin"},{"t":"s","v":"beforebegin"},{"t":"s","v":"delete"},{"t":"s","v":"none"}],"arity":3}},{"t":"s","v":"handle-history"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,16,2,1,4,0,52,3,0,2,17,5,16,5,33,10,0,20,5,0,16,5,49,1,32,101,0,16,3,6,33,14,0,5,16,3,1,8,0,52,7,0,2,52,6,0,1,33,27,0,20,9,0,16,3,1,10,0,52,7,0,2,33,5,0,16,1,32,2,0,16,3,49,1,32,51,0,16,4,6,33,14,0,5,16,4,1,8,0,52,7,0,2,52,6,0,1,33,27,0,20,5,0,16,4,1,10,0,52,7,0,2,33,5,0,16,1,32,2,0,16,4,49,1,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-push-url"},{"t":"s","v":"sx-replace-url"},{"t":"s","v":"get"},{"t":"s","v":"replace-url"},{"t":"s","v":"browser-replace-state"},{"t":"s","v":"not"},{"t":"s","v":"="},{"t":"s","v":"false"},{"t":"s","v":"browser-push-state"},{"t":"s","v":"true"}],"arity":3}},{"t":"s","v":"PRELOAD_TTL"},{"t":"n","v":30000},{"t":"s","v":"preload-cache-get"},{"t":"code","v":{"bytecode":[16,0,16,1,52,0,0,2,17,2,16,2,52,1,0,1,33,4,0,2,32,52,0,20,4,0,48,0,16,2,1,6,0,52,5,0,2,52,3,0,2,20,7,0,52,2,0,2,33,13,0,16,0,16,1,52,8,0,2,5,2,32,11,0,16,0,16,1,52,8,0,2,5,16,2,50],"constants":[{"t":"s","v":"dict-get"},{"t":"s","v":"nil?"},{"t":"s","v":">"},{"t":"s","v":"-"},{"t":"s","v":"now-ms"},{"t":"s","v":"get"},{"t":"s","v":"timestamp"},{"t":"s","v":"PRELOAD_TTL"},{"t":"s","v":"dict-delete!"}],"arity":2}},{"t":"s","v":"preload-cache-set"},{"t":"code","v":{"bytecode":[16,0,16,1,1,2,0,16,2,1,3,0,16,3,1,4,0,20,5,0,48,0,52,1,0,6,52,0,0,3,50],"constants":[{"t":"s","v":"dict-set!"},{"t":"s","v":"dict"},{"t":"s","v":"text"},{"t":"s","v":"content-type"},{"t":"s","v":"timestamp"},{"t":"s","v":"now-ms"}],"arity":4}},{"t":"s","v":"classify-trigger"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,17,1,16,1,1,3,0,52,2,0,2,33,6,0,1,4,0,32,57,0,16,1,1,5,0,52,2,0,2,33,6,0,1,5,0,32,39,0,16,1,1,6,0,52,2,0,2,33,6,0,1,6,0,32,21,0,16,1,1,7,0,52,2,0,2,33,6,0,1,7,0,32,3,0,1,1,0,50],"constants":[{"t":"s","v":"get"},{"t":"s","v":"event"},{"t":"s","v":"="},{"t":"s","v":"every"},{"t":"s","v":"poll"},{"t":"s","v":"intersect"},{"t":"s","v":"load"},{"t":"s","v":"revealed"}],"arity":1}},{"t":"s","v":"should-boost-link?"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,6,33,119,0,5,16,1,1,4,0,52,3,0,2,52,2,0,1,6,33,101,0,5,16,1,1,5,0,52,3,0,2,52,2,0,1,6,33,83,0,5,16,1,1,6,0,52,3,0,2,52,2,0,1,6,33,65,0,5,20,7,0,16,1,48,1,6,33,53,0,5,20,8,0,16,0,1,9,0,48,2,52,2,0,1,6,33,34,0,5,20,8,0,16,0,1,10,0,48,2,52,2,0,1,6,33,15,0,5,20,8,0,16,0,1,11,0,48,2,52,2,0,1,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"href"},{"t":"s","v":"not"},{"t":"s","v":"starts-with?"},{"t":"s","v":"#"},{"t":"s","v":"javascript:"},{"t":"s","v":"mailto:"},{"t":"s","v":"browser-same-origin?"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-get"},{"t":"s","v":"sx-post"},{"t":"s","v":"sx-disable"}],"arity":1}},{"t":"s","v":"should-boost-form?"},{"t":"code","v":{"bytecode":[20,1,0,16,0,1,2,0,48,2,52,0,0,1,6,33,34,0,5,20,1,0,16,0,1,3,0,48,2,52,0,0,1,6,33,15,0,5,20,1,0,16,0,1,4,0,48,2,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-get"},{"t":"s","v":"sx-post"},{"t":"s","v":"sx-disable"}],"arity":1}},{"t":"s","v":"parse-sse-swap"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,4,0,5,1,2,0,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-sse-swap"},{"t":"s","v":"message"}],"arity":1}}]}} \ No newline at end of file +{"magic":"SXBC","version":1,"hash":"e038227f8fc8f0ad","module":{"bytecode":[1,2,0,1,3,0,1,4,0,1,5,0,1,6,0,52,1,0,5,128,0,0,5,1,8,0,128,7,0,5,51,10,0,128,9,0,5,51,12,0,128,11,0,5,51,14,0,128,13,0,5,51,16,0,128,15,0,5,51,18,0,128,17,0,5,51,20,0,128,19,0,5,51,22,0,128,21,0,5,51,24,0,128,23,0,5,51,26,0,128,25,0,5,51,28,0,128,27,0,5,51,30,0,128,29,0,5,51,32,0,128,31,0,5,51,34,0,128,33,0,5,51,36,0,128,35,0,5,51,38,0,128,37,0,5,51,40,0,128,39,0,5,51,42,0,128,41,0,5,51,44,0,128,43,0,5,51,46,0,128,45,0,5,51,48,0,128,47,0,5,51,50,0,128,49,0,5,51,52,0,128,51,0,5,51,54,0,128,53,0,5,51,56,0,128,55,0,5,1,58,0,128,57,0,5,51,60,0,128,59,0,5,51,62,0,128,61,0,5,51,64,0,128,63,0,5,51,66,0,128,65,0,5,51,68,0,128,67,0,5,51,70,0,128,69,0,50],"constants":[{"t":"s","v":"ENGINE_VERBS"},{"t":"s","v":"list"},{"t":"s","v":"get"},{"t":"s","v":"post"},{"t":"s","v":"put"},{"t":"s","v":"delete"},{"t":"s","v":"patch"},{"t":"s","v":"DEFAULT_SWAP"},{"t":"s","v":"outerHTML"},{"t":"s","v":"parse-time"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,6,0,1,1,0,32,74,0,16,0,1,3,0,52,2,0,2,33,12,0,16,0,1,1,0,52,4,0,2,32,50,0,16,0,1,5,0,52,2,0,2,33,29,0,16,0,1,5,0,1,8,0,52,7,0,3,1,1,0,52,4,0,2,1,9,0,52,6,0,2,32,9,0,16,0,1,1,0,52,4,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"n","v":0},{"t":"s","v":"ends-with?"},{"t":"s","v":"ms"},{"t":"s","v":"parse-int"},{"t":"s","v":"s"},{"t":"s","v":"*"},{"t":"s","v":"replace"},{"t":"s","v":""},{"t":"n","v":1000}],"arity":1}},{"t":"s","v":"parse-trigger-spec"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,4,0,2,32,27,0,16,0,1,2,0,52,1,0,2,17,1,51,4,0,51,6,0,16,1,52,5,0,2,52,3,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"split"},{"t":"s","v":","},{"t":"s","v":"filter"},{"t":"code","v":{"bytecode":[16,0,52,1,0,1,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"nil?"}],"arity":1}},{"t":"s","v":"map"},{"t":"code","v":{"bytecode":[16,0,52,1,0,1,1,2,0,52,0,0,2,17,1,16,1,52,3,0,1,33,4,0,2,32,111,0,16,1,52,5,0,1,1,6,0,52,4,0,2,6,33,14,0,5,16,1,52,8,0,1,1,9,0,52,7,0,2,33,37,0,1,11,0,1,6,0,1,12,0,1,13,0,20,14,0,16,1,1,16,0,52,15,0,2,48,1,52,10,0,2,52,10,0,4,32,40,0,52,10,0,0,17,2,51,18,0,1,2,16,1,52,19,0,1,52,17,0,2,5,1,11,0,16,1,52,5,0,1,1,12,0,16,2,52,10,0,4,50],"constants":[{"t":"s","v":"split"},{"t":"s","v":"trim"},{"t":"s","v":" "},{"t":"s","v":"empty?"},{"t":"s","v":"="},{"t":"s","v":"first"},{"t":"s","v":"every"},{"t":"s","v":">="},{"t":"s","v":"len"},{"t":"n","v":2},{"t":"s","v":"dict"},{"t":"s","v":"event"},{"t":"s","v":"modifiers"},{"t":"s","v":"interval"},{"t":"s","v":"parse-time"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,13,0,18,0,1,1,0,3,52,2,0,3,32,97,0,16,0,1,3,0,52,0,0,2,33,13,0,18,0,1,3,0,3,52,2,0,3,32,72,0,16,0,1,5,0,52,4,0,2,33,26,0,18,0,1,6,0,20,7,0,16,0,1,9,0,52,8,0,2,48,1,52,2,0,3,32,34,0,16,0,1,10,0,52,4,0,2,33,21,0,18,0,1,11,0,16,0,1,12,0,52,8,0,2,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"once"},{"t":"s","v":"dict-set!"},{"t":"s","v":"changed"},{"t":"s","v":"starts-with?"},{"t":"s","v":"delay:"},{"t":"s","v":"delay"},{"t":"s","v":"parse-time"},{"t":"s","v":"slice"},{"t":"n","v":6},{"t":"s","v":"from:"},{"t":"s","v":"from"},{"t":"n","v":5}],"arity":1,"upvalue-count":1}},{"t":"s","v":"rest"}],"arity":1}}],"arity":1}},{"t":"s","v":"default-trigger"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,24,0,1,4,0,1,5,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,32,85,0,16,0,1,7,0,52,0,0,2,6,34,24,0,5,16,0,1,8,0,52,0,0,2,6,34,10,0,5,16,0,1,9,0,52,0,0,2,33,24,0,1,4,0,1,10,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,32,21,0,1,4,0,1,11,0,1,6,0,52,3,0,0,52,3,0,4,52,2,0,1,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"FORM"},{"t":"s","v":"list"},{"t":"s","v":"dict"},{"t":"s","v":"event"},{"t":"s","v":"submit"},{"t":"s","v":"modifiers"},{"t":"s","v":"INPUT"},{"t":"s","v":"SELECT"},{"t":"s","v":"TEXTAREA"},{"t":"s","v":"change"},{"t":"s","v":"click"}],"arity":1}},{"t":"s","v":"get-verb-info"},{"t":"code","v":{"bytecode":[51,1,0,1,0,20,2,0,52,0,0,2,50],"constants":[{"t":"s","v":"some"},{"t":"code","v":{"bytecode":[20,0,0,18,0,1,2,0,16,0,52,1,0,2,48,2,17,1,16,1,33,21,0,1,4,0,16,0,52,5,0,1,1,6,0,16,1,52,3,0,4,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"str"},{"t":"s","v":"sx-"},{"t":"s","v":"dict"},{"t":"s","v":"method"},{"t":"s","v":"upper"},{"t":"s","v":"url"}],"arity":1,"upvalue-count":1}},{"t":"s","v":"ENGINE_VERBS"}],"arity":1}},{"t":"s","v":"build-request-headers"},{"t":"code","v":{"bytecode":[1,1,0,1,2,0,1,3,0,20,4,0,48,0,52,0,0,4,17,3,20,5,0,16,0,1,6,0,48,2,17,4,16,4,33,14,0,16,3,1,8,0,16,4,52,7,0,3,32,1,0,2,5,20,5,0,20,9,0,1,10,0,48,1,1,11,0,48,2,17,4,16,4,33,14,0,16,3,1,12,0,16,4,52,7,0,3,32,1,0,2,5,16,2,33,14,0,16,3,1,13,0,16,2,52,7,0,3,32,1,0,2,5,20,5,0,16,0,1,14,0,48,2,17,4,16,4,33,38,0,20,15,0,16,4,48,1,17,5,16,5,33,20,0,51,17,0,1,3,1,5,16,5,52,18,0,1,52,16,0,2,32,1,0,2,32,1,0,2,5,16,3,50],"constants":[{"t":"s","v":"dict"},{"t":"s","v":"SX-Request"},{"t":"s","v":"true"},{"t":"s","v":"SX-Current-URL"},{"t":"s","v":"browser-location-href"},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-target"},{"t":"s","v":"dict-set!"},{"t":"s","v":"SX-Target"},{"t":"s","v":"dom-query"},{"t":"s","v":"script[data-components][data-hash]"},{"t":"s","v":"data-hash"},{"t":"s","v":"SX-Components-Hash"},{"t":"s","v":"SX-Css"},{"t":"s","v":"sx-headers"},{"t":"s","v":"parse-header-value"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[18,0,16,0,18,1,16,0,52,2,0,2,52,1,0,1,52,0,0,3,50],"constants":[{"t":"s","v":"dict-set!"},{"t":"s","v":"str"},{"t":"s","v":"get"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"keys"}],"arity":3}},{"t":"s","v":"process-response-headers"},{"t":"code","v":{"bytecode":[1,1,0,16,0,1,2,0,48,1,1,3,0,16,0,1,4,0,48,1,1,5,0,16,0,1,6,0,48,1,1,7,0,16,0,1,8,0,48,1,1,9,0,16,0,1,10,0,48,1,1,11,0,16,0,1,12,0,48,1,1,13,0,16,0,1,14,0,48,1,1,15,0,16,0,1,16,0,48,1,1,17,0,16,0,1,18,0,48,1,1,19,0,16,0,1,20,0,48,1,1,21,0,16,0,1,22,0,48,1,1,23,0,16,0,1,24,0,48,1,1,25,0,16,0,1,26,0,48,1,52,0,0,26,50],"constants":[{"t":"s","v":"dict"},{"t":"s","v":"redirect"},{"t":"s","v":"SX-Redirect"},{"t":"s","v":"refresh"},{"t":"s","v":"SX-Refresh"},{"t":"s","v":"trigger"},{"t":"s","v":"SX-Trigger"},{"t":"s","v":"retarget"},{"t":"s","v":"SX-Retarget"},{"t":"s","v":"reswap"},{"t":"s","v":"SX-Reswap"},{"t":"s","v":"location"},{"t":"s","v":"SX-Location"},{"t":"s","v":"replace-url"},{"t":"s","v":"SX-Replace-Url"},{"t":"s","v":"css-hash"},{"t":"s","v":"SX-Css-Hash"},{"t":"s","v":"trigger-swap"},{"t":"s","v":"SX-Trigger-After-Swap"},{"t":"s","v":"trigger-settle"},{"t":"s","v":"SX-Trigger-After-Settle"},{"t":"s","v":"content-type"},{"t":"s","v":"Content-Type"},{"t":"s","v":"cache-invalidate"},{"t":"s","v":"SX-Cache-Invalidate"},{"t":"s","v":"cache-update"},{"t":"s","v":"SX-Cache-Update"}],"arity":1}},{"t":"s","v":"parse-swap-spec"},{"t":"code","v":{"bytecode":[16,0,6,34,4,0,5,20,1,0,1,2,0,52,0,0,2,17,2,16,2,52,3,0,1,17,3,16,1,17,4,51,5,0,1,4,16,2,52,6,0,1,52,4,0,2,5,1,8,0,16,3,1,9,0,16,4,52,7,0,4,50],"constants":[{"t":"s","v":"split"},{"t":"s","v":"DEFAULT_SWAP"},{"t":"s","v":" "},{"t":"s","v":"first"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,33,6,0,3,19,0,32,19,0,16,0,1,2,0,52,0,0,2,33,6,0,4,19,0,32,1,0,2,50],"constants":[{"t":"s","v":"="},{"t":"s","v":"transition:true"},{"t":"s","v":"transition:false"}],"arity":1,"upvalue-count":1}},{"t":"s","v":"rest"},{"t":"s","v":"dict"},{"t":"s","v":"style"},{"t":"s","v":"transition"}],"arity":2}},{"t":"s","v":"parse-retry-spec"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,4,0,2,32,62,0,16,0,1,2,0,52,1,0,2,17,1,1,4,0,16,1,52,5,0,1,1,6,0,16,1,1,9,0,52,8,0,2,1,10,0,52,7,0,2,1,11,0,16,1,1,12,0,52,8,0,2,1,13,0,52,7,0,2,52,3,0,6,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"split"},{"t":"s","v":":"},{"t":"s","v":"dict"},{"t":"s","v":"strategy"},{"t":"s","v":"first"},{"t":"s","v":"start-ms"},{"t":"s","v":"parse-int"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"n","v":1000},{"t":"s","v":"cap-ms"},{"t":"n","v":2},{"t":"n","v":30000}],"arity":1}},{"t":"s","v":"next-retry-ms"},{"t":"code","v":{"bytecode":[16,0,1,2,0,52,1,0,2,16,1,52,0,0,2,50],"constants":[{"t":"s","v":"min"},{"t":"s","v":"*"},{"t":"n","v":2}],"arity":2}},{"t":"s","v":"filter-params"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,33,5,0,16,1,32,116,0,16,0,1,2,0,52,1,0,2,33,7,0,52,3,0,0,32,97,0,16,0,1,4,0,52,1,0,2,33,5,0,16,1,32,80,0,16,0,1,6,0,52,5,0,2,33,39,0,20,8,0,16,0,1,11,0,52,10,0,2,1,12,0,52,9,0,2,52,7,0,2,17,2,51,14,0,1,2,16,1,52,13,0,2,32,29,0,20,8,0,16,0,1,12,0,52,9,0,2,52,7,0,2,17,2,51,15,0,1,2,16,1,52,13,0,2,50],"constants":[{"t":"s","v":"nil?"},{"t":"s","v":"="},{"t":"s","v":"none"},{"t":"s","v":"list"},{"t":"s","v":"*"},{"t":"s","v":"starts-with?"},{"t":"s","v":"not "},{"t":"s","v":"map"},{"t":"s","v":"trim"},{"t":"s","v":"split"},{"t":"s","v":"slice"},{"t":"n","v":4},{"t":"s","v":","},{"t":"s","v":"filter"},{"t":"code","v":{"bytecode":[18,0,16,0,52,2,0,1,52,1,0,2,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"contains?"},{"t":"s","v":"first"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[18,0,16,0,52,1,0,1,52,0,0,2,50],"constants":[{"t":"s","v":"contains?"},{"t":"s","v":"first"}],"arity":1,"upvalue-count":1}}],"arity":2}},{"t":"s","v":"resolve-target"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,52,2,0,1,6,34,10,0,5,16,1,1,4,0,52,3,0,2,33,5,0,16,0,32,29,0,16,1,1,5,0,52,3,0,2,33,10,0,20,6,0,16,0,49,1,32,7,0,20,7,0,16,1,49,1,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-target"},{"t":"s","v":"nil?"},{"t":"s","v":"="},{"t":"s","v":"this"},{"t":"s","v":"closest"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-query"}],"arity":1}},{"t":"s","v":"apply-optimistic"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,52,2,0,1,33,4,0,2,32,191,0,20,3,0,16,0,48,1,6,34,3,0,5,16,0,17,2,1,5,0,16,2,1,6,0,16,1,52,4,0,4,17,3,16,1,1,8,0,52,7,0,2,33,50,0,16,3,1,10,0,20,11,0,16,2,1,10,0,48,2,52,9,0,3,5,20,12,0,16,2,1,10,0,1,13,0,48,3,5,20,12,0,16,2,1,14,0,1,15,0,48,3,32,94,0,16,1,1,16,0,52,7,0,2,33,34,0,16,3,1,17,0,20,18,0,16,2,1,17,0,48,2,52,9,0,3,5,20,19,0,16,2,1,17,0,3,48,3,32,48,0,16,1,1,21,0,52,20,0,2,33,35,0,16,1,1,23,0,52,22,0,2,17,4,16,3,1,24,0,16,4,52,9,0,3,5,20,25,0,16,2,16,4,48,2,32,1,0,2,5,16,3,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-optimistic"},{"t":"s","v":"nil?"},{"t":"s","v":"resolve-target"},{"t":"s","v":"dict"},{"t":"s","v":"target"},{"t":"s","v":"directive"},{"t":"s","v":"="},{"t":"s","v":"remove"},{"t":"s","v":"dict-set!"},{"t":"s","v":"opacity"},{"t":"s","v":"dom-get-style"},{"t":"s","v":"dom-set-style"},{"t":"s","v":"0"},{"t":"s","v":"pointer-events"},{"t":"s","v":"none"},{"t":"s","v":"disable"},{"t":"s","v":"disabled"},{"t":"s","v":"dom-get-prop"},{"t":"s","v":"dom-set-prop"},{"t":"s","v":"starts-with?"},{"t":"s","v":"add-class:"},{"t":"s","v":"slice"},{"t":"n","v":10},{"t":"s","v":"add-class"},{"t":"s","v":"dom-add-class"}],"arity":1}},{"t":"s","v":"revert-optimistic"},{"t":"code","v":{"bytecode":[16,0,33,153,0,16,0,1,1,0,52,0,0,2,17,1,16,0,1,2,0,52,0,0,2,17,2,16,2,1,4,0,52,3,0,2,33,44,0,20,5,0,16,1,1,6,0,16,0,1,6,0,52,0,0,2,6,34,4,0,5,1,7,0,48,3,5,20,5,0,16,1,1,8,0,1,7,0,49,3,32,72,0,16,2,1,9,0,52,3,0,2,33,28,0,20,10,0,16,1,1,11,0,16,0,1,11,0,52,0,0,2,6,34,2,0,5,4,49,3,32,32,0,16,0,1,12,0,52,0,0,2,33,19,0,20,13,0,16,1,16,0,1,12,0,52,0,0,2,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"get"},{"t":"s","v":"target"},{"t":"s","v":"directive"},{"t":"s","v":"="},{"t":"s","v":"remove"},{"t":"s","v":"dom-set-style"},{"t":"s","v":"opacity"},{"t":"s","v":""},{"t":"s","v":"pointer-events"},{"t":"s","v":"disable"},{"t":"s","v":"dom-set-prop"},{"t":"s","v":"disabled"},{"t":"s","v":"add-class"},{"t":"s","v":"dom-remove-class"}],"arity":1}},{"t":"s","v":"find-oob-swaps"},{"t":"code","v":{"bytecode":[52,0,0,0,17,1,51,2,0,1,0,1,1,1,3,0,1,4,0,52,0,0,2,52,1,0,2,5,16,1,50],"constants":[{"t":"s","v":"list"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,18,0,1,2,0,16,0,1,3,0,52,1,0,3,48,2,17,1,51,5,0,1,0,0,1,16,1,52,4,0,2,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"str"},{"t":"s","v":"["},{"t":"s","v":"]"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,18,0,48,2,6,34,4,0,5,1,1,0,17,1,20,2,0,16,0,48,1,17,2,20,3,0,16,0,18,0,48,2,5,16,2,33,29,0,20,4,0,18,1,1,6,0,16,0,1,7,0,16,1,1,8,0,16,2,52,5,0,6,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-id"},{"t":"s","v":"dom-remove-attr"},{"t":"s","v":"append!"},{"t":"s","v":"dict"},{"t":"s","v":"element"},{"t":"s","v":"swap-type"},{"t":"s","v":"target-id"}],"arity":1,"upvalue-count":2}}],"arity":1,"upvalue-count":2}},{"t":"s","v":"sx-swap-oob"},{"t":"s","v":"hx-swap-oob"}],"arity":1}},{"t":"s","v":"morph-node"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,11,0,5,20,0,0,16,0,1,2,0,48,2,33,4,0,2,32,137,1,20,0,0,16,0,1,3,0,48,2,6,33,55,0,5,20,4,0,16,0,1,5,0,48,2,6,33,40,0,5,20,0,0,16,1,1,3,0,48,2,6,33,25,0,5,20,7,0,16,0,1,3,0,48,2,20,7,0,16,1,1,3,0,48,2,52,6,0,2,33,12,0,20,8,0,16,0,16,1,49,2,32,53,1,20,10,0,16,0,48,1,20,10,0,16,1,48,1,52,6,0,2,52,9,0,1,6,34,23,0,5,20,11,0,16,0,48,1,20,11,0,16,1,48,1,52,6,0,2,52,9,0,1,33,24,0,20,12,0,20,13,0,16,0,48,1,20,14,0,16,1,48,1,16,0,49,3,32,233,0,20,10,0,16,0,48,1,1,15,0,52,6,0,2,6,34,15,0,5,20,10,0,16,0,48,1,1,16,0,52,6,0,2,33,46,0,20,17,0,16,0,48,1,20,17,0,16,1,48,1,52,6,0,2,52,9,0,1,33,17,0,20,18,0,16,0,20,17,0,16,1,48,1,49,2,32,1,0,2,32,151,0,20,10,0,16,0,48,1,1,19,0,52,6,0,2,33,133,0,20,0,0,16,0,1,3,0,48,2,6,33,44,0,5,20,0,0,16,1,1,3,0,48,2,6,33,29,0,5,20,7,0,16,0,1,3,0,48,2,20,7,0,16,1,1,3,0,48,2,52,6,0,2,52,9,0,1,33,18,0,20,20,0,16,0,48,1,5,20,21,0,16,0,48,1,32,1,0,2,5,20,22,0,16,0,16,1,48,2,5,20,23,0,16,0,48,1,6,33,8,0,5,20,24,0,16,0,48,1,52,9,0,1,33,12,0,20,25,0,16,0,16,1,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-preserve"},{"t":"s","v":"sx-ignore"},{"t":"s","v":"data-sx-island"},{"t":"s","v":"is-processed?"},{"t":"s","v":"island-hydrated"},{"t":"s","v":"="},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"morph-island-children"},{"t":"s","v":"not"},{"t":"s","v":"dom-node-type"},{"t":"s","v":"dom-node-name"},{"t":"s","v":"dom-replace-child"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-clone"},{"t":"n","v":3},{"t":"n","v":8},{"t":"s","v":"dom-text-content"},{"t":"s","v":"dom-set-text-content"},{"t":"n","v":1},{"t":"s","v":"dispose-island"},{"t":"s","v":"dispose-islands-in"},{"t":"s","v":"sync-attrs"},{"t":"s","v":"dom-is-active-element?"},{"t":"s","v":"dom-is-input-element?"},{"t":"s","v":"morph-children"}],"arity":2}},{"t":"s","v":"sync-attrs"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,4,0,5,1,2,0,17,2,16,2,52,3,0,1,33,7,0,52,4,0,0,32,9,0,16,2,1,6,0,52,5,0,2,17,3,51,8,0,1,0,1,3,20,9,0,16,1,48,1,52,7,0,2,5,51,10,0,1,1,1,3,1,0,20,9,0,16,0,48,1,52,7,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-reactive-attrs"},{"t":"s","v":""},{"t":"s","v":"empty?"},{"t":"s","v":"list"},{"t":"s","v":"split"},{"t":"s","v":","},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,17,1,16,0,1,2,0,52,1,0,2,17,2,20,5,0,18,0,16,1,48,2,16,2,52,4,0,2,52,3,0,1,6,33,13,0,5,18,1,16,1,52,6,0,2,52,3,0,1,33,14,0,20,7,0,18,0,16,1,16,2,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"first"},{"t":"s","v":"nth"},{"t":"n","v":1},{"t":"s","v":"not"},{"t":"s","v":"="},{"t":"s","v":"dom-get-attr"},{"t":"s","v":"contains?"},{"t":"s","v":"dom-set-attr"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"dom-attr-list"},{"t":"code","v":{"bytecode":[16,0,52,0,0,1,17,1,20,2,0,18,0,16,1,48,2,52,1,0,1,6,33,31,0,5,18,1,16,1,52,3,0,2,52,1,0,1,6,33,14,0,5,16,1,1,5,0,52,4,0,2,52,1,0,1,33,12,0,20,6,0,18,2,16,1,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"first"},{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"contains?"},{"t":"s","v":"="},{"t":"s","v":"data-sx-reactive-attrs"},{"t":"s","v":"dom-remove-attr"}],"arity":1,"upvalue-count":3}}],"arity":2}},{"t":"s","v":"morph-children"},{"t":"code","v":{"bytecode":[20,0,0,16,0,48,1,17,2,20,0,0,16,1,48,1,17,3,51,2,0,52,3,0,0,16,2,52,1,0,3,17,4,1,4,0,17,5,51,6,0,1,4,1,5,1,2,1,0,16,3,52,5,0,2,5,51,7,0,1,5,1,2,1,0,16,5,16,2,52,9,0,1,52,8,0,2,52,5,0,2,50],"constants":[{"t":"s","v":"dom-child-list"},{"t":"s","v":"reduce"},{"t":"code","v":{"bytecode":[20,0,0,16,1,48,1,17,2,16,2,33,16,0,16,0,16,2,16,1,52,1,0,3,5,16,0,32,2,0,16,0,50],"constants":[{"t":"s","v":"dom-id"},{"t":"s","v":"dict-set!"}],"arity":2}},{"t":"s","v":"dict"},{"t":"n","v":0},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,48,1,17,1,16,1,33,11,0,18,0,16,1,52,1,0,2,32,1,0,2,17,2,16,2,6,33,11,0,5,16,2,52,3,0,1,52,2,0,1,33,100,0,18,1,18,2,52,5,0,1,52,4,0,2,6,33,19,0,5,16,2,18,2,18,1,52,7,0,2,52,6,0,2,52,2,0,1,33,39,0,20,8,0,18,3,16,2,18,1,18,2,52,5,0,1,52,4,0,2,33,11,0,18,2,18,1,52,7,0,2,32,1,0,2,48,3,32,1,0,2,5,20,9,0,16,2,16,0,48,2,5,18,1,52,10,0,1,19,1,32,100,0,18,1,18,2,52,5,0,1,52,4,0,2,33,71,0,18,2,18,1,52,7,0,2,17,3,20,0,0,16,3,48,1,6,33,7,0,5,16,1,52,2,0,1,33,19,0,20,8,0,18,3,20,11,0,16,0,48,1,16,3,49,3,32,18,0,20,9,0,16,3,16,0,48,2,5,18,1,52,10,0,1,19,1,32,14,0,20,12,0,18,3,20,11,0,16,0,48,1,49,2,50],"constants":[{"t":"s","v":"dom-id"},{"t":"s","v":"dict-get"},{"t":"s","v":"not"},{"t":"s","v":"nil?"},{"t":"s","v":"<"},{"t":"s","v":"len"},{"t":"s","v":"="},{"t":"s","v":"nth"},{"t":"s","v":"dom-insert-before"},{"t":"s","v":"morph-node"},{"t":"s","v":"inc"},{"t":"s","v":"dom-clone"},{"t":"s","v":"dom-append"}],"arity":1,"upvalue-count":4}},{"t":"code","v":{"bytecode":[16,0,18,0,52,0,0,2,33,76,0,18,1,16,0,52,1,0,2,17,1,20,2,0,16,1,18,2,48,2,6,33,34,0,5,20,4,0,16,1,1,5,0,48,2,52,3,0,1,6,33,15,0,5,20,4,0,16,1,1,6,0,48,2,52,3,0,1,33,12,0,20,7,0,18,2,16,1,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":">="},{"t":"s","v":"nth"},{"t":"s","v":"dom-is-child-of?"},{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-preserve"},{"t":"s","v":"sx-ignore"},{"t":"s","v":"dom-remove-child"}],"arity":1,"upvalue-count":3}},{"t":"s","v":"range"},{"t":"s","v":"len"}],"arity":2}},{"t":"s","v":"morph-island-children"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,2,20,0,0,16,1,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,20,0,0,16,1,1,2,0,48,2,17,5,52,3,0,0,17,6,52,3,0,0,17,7,51,5,0,1,6,16,3,52,4,0,2,5,51,6,0,1,7,16,5,52,4,0,2,5,51,7,0,1,6,16,2,52,4,0,2,5,51,8,0,1,7,1,0,16,4,52,4,0,2,5,20,9,0,16,1,49,1,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"[data-sx-lake]"},{"t":"s","v":"[data-sx-marsh]"},{"t":"s","v":"dict"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,13,0,18,0,16,1,16,0,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-lake"},{"t":"s","v":"dict-set!"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,13,0,18,0,16,1,16,0,52,2,0,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-marsh"},{"t":"s","v":"dict-set!"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,18,0,16,1,52,2,0,2,17,2,16,2,33,22,0,20,3,0,16,0,16,2,48,2,5,20,4,0,16,0,16,2,49,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-lake"},{"t":"s","v":"dict-get"},{"t":"s","v":"sync-attrs"},{"t":"s","v":"morph-children"}],"arity":1,"upvalue-count":1}},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,18,0,16,1,52,2,0,2,17,2,16,2,33,14,0,20,3,0,16,0,16,2,18,1,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-marsh"},{"t":"s","v":"dict-get"},{"t":"s","v":"morph-marsh"}],"arity":1,"upvalue-count":2}},{"t":"s","v":"process-signal-updates"}],"arity":2}},{"t":"s","v":"morph-marsh"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,20,3,0,16,1,48,1,17,5,16,4,6,33,18,0,5,16,5,6,33,11,0,5,16,5,52,5,0,1,52,4,0,1,33,61,0,20,6,0,16,5,48,1,17,6,16,3,33,16,0,20,7,0,16,3,16,6,52,8,0,1,48,2,32,2,0,16,6,17,7,20,9,0,16,0,48,1,5,20,10,0,16,0,51,11,0,1,7,1,4,1,0,49,2,32,19,0,20,12,0,16,0,16,1,48,2,5,20,13,0,16,0,16,1,49,2,50],"constants":[{"t":"s","v":"dom-get-data"},{"t":"s","v":"sx-marsh-transform"},{"t":"s","v":"sx-marsh-env"},{"t":"s","v":"dom-inner-html"},{"t":"s","v":"not"},{"t":"s","v":"empty?"},{"t":"s","v":"parse"},{"t":"s","v":"cek-call"},{"t":"s","v":"list"},{"t":"s","v":"dispose-marsh-scope"},{"t":"s","v":"with-marsh-scope"},{"t":"code","v":{"bytecode":[20,0,0,18,0,18,1,2,48,3,17,0,20,1,0,18,2,2,48,2,5,20,2,0,18,2,16,0,49,2,50],"constants":[{"t":"s","v":"render-to-dom"},{"t":"s","v":"dom-remove-children-after"},{"t":"s","v":"dom-append"}],"upvalue-count":3}},{"t":"s","v":"sync-attrs"},{"t":"s","v":"morph-children"}],"arity":3}},{"t":"s","v":"process-signal-updates"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,51,3,0,16,1,52,2,0,2,50],"constants":[{"t":"s","v":"dom-query-all"},{"t":"s","v":"[data-sx-signal]"},{"t":"s","v":"for-each"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,33,94,0,16,1,1,3,0,52,2,0,2,17,2,16,2,1,5,0,52,4,0,2,33,67,0,16,1,1,5,0,16,2,52,6,0,3,17,3,16,1,16,2,1,8,0,52,7,0,2,52,6,0,2,17,4,20,9,0,16,4,48,1,17,5,20,10,0,20,11,0,16,3,48,1,16,5,48,2,5,20,12,0,16,0,1,1,0,49,2,32,1,0,2,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"data-sx-signal"},{"t":"s","v":"index-of"},{"t":"s","v":":"},{"t":"s","v":">"},{"t":"n","v":0},{"t":"s","v":"slice"},{"t":"s","v":"+"},{"t":"n","v":1},{"t":"s","v":"json-parse"},{"t":"s","v":"reset!"},{"t":"s","v":"use-store"},{"t":"s","v":"dom-remove-attr"}],"arity":1}}],"arity":1}},{"t":"s","v":"swap-dom-nodes"},{"t":"code","v":{"bytecode":[16,2,6,1,0,0,52,1,0,2,33,56,0,5,20,2,0,16,1,48,1,33,12,0,20,3,0,16,0,16,1,49,2,32,30,0,20,4,0,1,5,0,2,48,2,17,3,20,6,0,16,3,16,1,48,2,5,20,3,0,16,0,16,3,49,2,32,73,1,6,1,7,0,52,1,0,2,33,117,0,5,20,8,0,16,0,48,1,17,3,20,9,0,16,1,48,1,17,4,20,2,0,16,1,48,1,33,71,0,20,10,0,16,1,48,1,17,5,16,5,33,45,0,20,9,0,16,5,48,1,17,4,5,20,11,0,16,3,16,4,16,0,48,3,5,20,12,0,16,5,48,1,17,6,20,13,0,16,3,16,4,16,6,48,3,32,9,0,20,14,0,16,3,16,0,48,2,32,11,0,20,11,0,16,3,16,4,16,0,48,3,5,16,4,32,201,0,6,1,15,0,52,1,0,2,33,13,0,5,20,16,0,16,0,16,1,49,2,32,177,0,6,1,17,0,52,1,0,2,33,13,0,5,20,6,0,16,0,16,1,49,2,32,153,0,6,1,18,0,52,1,0,2,33,13,0,5,20,19,0,16,0,16,1,49,2,32,129,0,6,1,20,0,52,1,0,2,33,20,0,5,20,21,0,20,8,0,16,0,48,1,16,1,16,0,49,3,32,98,0,6,1,22,0,52,1,0,2,33,18,0,5,20,14,0,20,8,0,16,0,48,1,16,0,49,2,32,69,0,6,1,23,0,52,1,0,2,33,5,0,5,2,32,53,0,5,20,2,0,16,1,48,1,33,12,0,20,3,0,16,0,16,1,49,2,32,30,0,20,4,0,1,5,0,2,48,2,17,3,20,6,0,16,3,16,1,48,2,5,20,3,0,16,0,16,3,49,2,50],"constants":[{"t":"s","v":"innerHTML"},{"t":"s","v":"="},{"t":"s","v":"dom-is-fragment?"},{"t":"s","v":"morph-children"},{"t":"s","v":"dom-create-element"},{"t":"s","v":"div"},{"t":"s","v":"dom-append"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-clone"},{"t":"s","v":"dom-first-child"},{"t":"s","v":"dom-replace-child"},{"t":"s","v":"dom-next-sibling"},{"t":"s","v":"insert-remaining-siblings"},{"t":"s","v":"dom-remove-child"},{"t":"s","v":"afterend"},{"t":"s","v":"dom-insert-after"},{"t":"s","v":"beforeend"},{"t":"s","v":"afterbegin"},{"t":"s","v":"dom-prepend"},{"t":"s","v":"beforebegin"},{"t":"s","v":"dom-insert-before"},{"t":"s","v":"delete"},{"t":"s","v":"none"}],"arity":3}},{"t":"s","v":"insert-remaining-siblings"},{"t":"code","v":{"bytecode":[16,2,33,33,0,20,0,0,16,2,48,1,17,3,20,1,0,16,1,16,2,48,2,5,20,2,0,16,0,16,2,16,3,49,3,32,1,0,2,50],"constants":[{"t":"s","v":"dom-next-sibling"},{"t":"s","v":"dom-insert-after"},{"t":"s","v":"insert-remaining-siblings"}],"arity":3}},{"t":"s","v":"swap-html-string"},{"t":"code","v":{"bytecode":[16,2,6,1,0,0,52,1,0,2,33,13,0,5,20,2,0,16,0,16,1,49,2,32,212,0,6,1,3,0,52,1,0,2,33,38,0,5,20,4,0,16,0,48,1,17,3,20,5,0,16,0,1,6,0,16,1,48,3,5,20,7,0,16,3,16,0,48,2,5,16,3,32,163,0,6,1,6,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,6,0,16,1,49,3,32,136,0,6,1,8,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,8,0,16,1,49,3,32,109,0,6,1,9,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,9,0,16,1,49,3,32,82,0,6,1,10,0,52,1,0,2,33,16,0,5,20,5,0,16,0,1,10,0,16,1,49,3,32,55,0,6,1,11,0,52,1,0,2,33,18,0,5,20,7,0,20,4,0,16,0,48,1,16,0,49,2,32,26,0,6,1,12,0,52,1,0,2,33,5,0,5,2,32,10,0,5,20,2,0,16,0,16,1,49,2,50],"constants":[{"t":"s","v":"innerHTML"},{"t":"s","v":"="},{"t":"s","v":"dom-set-inner-html"},{"t":"s","v":"outerHTML"},{"t":"s","v":"dom-parent"},{"t":"s","v":"dom-insert-adjacent-html"},{"t":"s","v":"afterend"},{"t":"s","v":"dom-remove-child"},{"t":"s","v":"beforeend"},{"t":"s","v":"afterbegin"},{"t":"s","v":"beforebegin"},{"t":"s","v":"delete"},{"t":"s","v":"none"}],"arity":3}},{"t":"s","v":"handle-history"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,3,20,0,0,16,0,1,2,0,48,2,17,4,16,2,1,4,0,52,3,0,2,17,5,16,5,33,10,0,20,5,0,16,5,49,1,32,101,0,16,3,6,33,14,0,5,16,3,1,8,0,52,7,0,2,52,6,0,1,33,27,0,20,9,0,16,3,1,10,0,52,7,0,2,33,5,0,16,1,32,2,0,16,3,49,1,32,51,0,16,4,6,33,14,0,5,16,4,1,8,0,52,7,0,2,52,6,0,1,33,27,0,20,5,0,16,4,1,10,0,52,7,0,2,33,5,0,16,1,32,2,0,16,4,49,1,32,1,0,2,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-push-url"},{"t":"s","v":"sx-replace-url"},{"t":"s","v":"get"},{"t":"s","v":"replace-url"},{"t":"s","v":"browser-replace-state"},{"t":"s","v":"not"},{"t":"s","v":"="},{"t":"s","v":"false"},{"t":"s","v":"browser-push-state"},{"t":"s","v":"true"}],"arity":3}},{"t":"s","v":"PRELOAD_TTL"},{"t":"n","v":30000},{"t":"s","v":"preload-cache-get"},{"t":"code","v":{"bytecode":[16,0,16,1,52,0,0,2,17,2,16,2,52,1,0,1,33,4,0,2,32,52,0,20,4,0,48,0,16,2,1,6,0,52,5,0,2,52,3,0,2,20,7,0,52,2,0,2,33,13,0,16,0,16,1,52,8,0,2,5,2,32,11,0,16,0,16,1,52,8,0,2,5,16,2,50],"constants":[{"t":"s","v":"dict-get"},{"t":"s","v":"nil?"},{"t":"s","v":">"},{"t":"s","v":"-"},{"t":"s","v":"now-ms"},{"t":"s","v":"get"},{"t":"s","v":"timestamp"},{"t":"s","v":"PRELOAD_TTL"},{"t":"s","v":"dict-delete!"}],"arity":2}},{"t":"s","v":"preload-cache-set"},{"t":"code","v":{"bytecode":[16,0,16,1,1,2,0,16,2,1,3,0,16,3,1,4,0,20,5,0,48,0,52,1,0,6,52,0,0,3,50],"constants":[{"t":"s","v":"dict-set!"},{"t":"s","v":"dict"},{"t":"s","v":"text"},{"t":"s","v":"content-type"},{"t":"s","v":"timestamp"},{"t":"s","v":"now-ms"}],"arity":4}},{"t":"s","v":"classify-trigger"},{"t":"code","v":{"bytecode":[16,0,1,1,0,52,0,0,2,17,1,16,1,1,3,0,52,2,0,2,33,6,0,1,4,0,32,57,0,16,1,1,5,0,52,2,0,2,33,6,0,1,5,0,32,39,0,16,1,1,6,0,52,2,0,2,33,6,0,1,6,0,32,21,0,16,1,1,7,0,52,2,0,2,33,6,0,1,7,0,32,3,0,1,1,0,50],"constants":[{"t":"s","v":"get"},{"t":"s","v":"event"},{"t":"s","v":"="},{"t":"s","v":"every"},{"t":"s","v":"poll"},{"t":"s","v":"intersect"},{"t":"s","v":"load"},{"t":"s","v":"revealed"}],"arity":1}},{"t":"s","v":"should-boost-link?"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,17,1,16,1,6,33,119,0,5,16,1,1,4,0,52,3,0,2,52,2,0,1,6,33,101,0,5,16,1,1,5,0,52,3,0,2,52,2,0,1,6,33,83,0,5,16,1,1,6,0,52,3,0,2,52,2,0,1,6,33,65,0,5,20,7,0,16,1,48,1,6,33,53,0,5,20,8,0,16,0,1,9,0,48,2,52,2,0,1,6,33,34,0,5,20,8,0,16,0,1,10,0,48,2,52,2,0,1,6,33,15,0,5,20,8,0,16,0,1,11,0,48,2,52,2,0,1,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"href"},{"t":"s","v":"not"},{"t":"s","v":"starts-with?"},{"t":"s","v":"#"},{"t":"s","v":"javascript:"},{"t":"s","v":"mailto:"},{"t":"s","v":"browser-same-origin?"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-get"},{"t":"s","v":"sx-post"},{"t":"s","v":"sx-disable"}],"arity":1}},{"t":"s","v":"should-boost-form?"},{"t":"code","v":{"bytecode":[20,1,0,16,0,1,2,0,48,2,52,0,0,1,6,33,34,0,5,20,1,0,16,0,1,3,0,48,2,52,0,0,1,6,33,15,0,5,20,1,0,16,0,1,4,0,48,2,52,0,0,1,50],"constants":[{"t":"s","v":"not"},{"t":"s","v":"dom-has-attr?"},{"t":"s","v":"sx-get"},{"t":"s","v":"sx-post"},{"t":"s","v":"sx-disable"}],"arity":1}},{"t":"s","v":"parse-sse-swap"},{"t":"code","v":{"bytecode":[20,0,0,16,0,1,1,0,48,2,6,34,4,0,5,1,2,0,50],"constants":[{"t":"s","v":"dom-get-attr"},{"t":"s","v":"sx-sse-swap"},{"t":"s","v":"message"}],"arity":1}}]}} \ No newline at end of file diff --git a/shared/static/wasm/sx_browser.bc.wasm.js b/shared/static/wasm/sx_browser.bc.wasm.js index 59ddd718..b7eff53a 100644 --- a/shared/static/wasm/sx_browser.bc.wasm.js +++ b/shared/static/wasm/sx_browser.bc.wasm.js @@ -1792,7 +1792,7 @@ blake2_js_for_wasm_create: blake2_js_for_wasm_create}; } (globalThis)) -({"link":[["runtime-0db9b496",0],["prelude-d7e4b000",0],["stdlib-23ce0836",[]],["sx-31fbd690",[2]],["jsoo_runtime-f96b44a8",[2]],["js_of_ocaml-651f6707",[2,4]],["dune__exe__Sx_browser-c7255f12",[2,3,5]],["std_exit-10fb8830",[2]],["start-29cf9a72",0]],"generated":(b=>{var +({"link":[["runtime-0db9b496",0],["prelude-d7e4b000",0],["stdlib-23ce0836",[]],["sx-48fa79b9",[2]],["jsoo_runtime-f96b44a8",[2]],["js_of_ocaml-651f6707",[2,4]],["dune__exe__Sx_browser-3f86f26c",[2,3,5]],["std_exit-10fb8830",[2]],["start-29cf9a72",0]],"generated":(b=>{var c=b,a=b?.module?.export||b;return{"env":{"caml_ba_kind_of_typed_array":()=>{throw new Error("caml_ba_kind_of_typed_array not implemented")},"caml_exn_with_js_backtrace":()=>{throw new Error("caml_exn_with_js_backtrace not implemented")},"caml_int64_create_lo_mi_hi":()=>{throw new diff --git a/web/engine.sx b/web/engine.sx index e66deaff..a0482137 100644 --- a/web/engine.sx +++ b/web/engine.sx @@ -86,20 +86,13 @@ :effects (io) (fn (el) - (let - ((result nil)) - (for-each - (fn - (verb) - (when - (not result) - (let - ((url (dom-get-attr el (str "sx-" verb)))) - (when - url - (set! result (dict "method" (upper verb) "url" url)))))) - ENGINE_VERBS) - result))) + (some + (fn + (verb) + (let + ((url (dom-get-attr el (str "sx-" verb)))) + (if url (dict "method" (upper verb) "url" url) nil))) + ENGINE_VERBS))) (define build-request-headers