diff --git a/app.js b/app.js index fd08bdb..4d23c74 100644 --- a/app.js +++ b/app.js @@ -1,16735 +1 @@ -/* Generated by the Nim Compiler v2.0.2 */ -var framePtr = null; -var excHandler = 0; -var lastJSError = null; -var NTI1426070160 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063905 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063484 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1426063485 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426071461 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426071236 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426071212 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426071205 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI754975002 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI721420297 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI805306404 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI805306405 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI754974826 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI754974825 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI754974728 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI754974815 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI754974811 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI754974818 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI754974817 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI754974723 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI754974816 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI754974813 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI721420295 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI721420296 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426067175 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426066550 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI134217753 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1459617826 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426068752 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1677721740 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063959 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426064688 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426064612 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426064493 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI33555179 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI134217746 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1426065065 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1426065064 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1073741903 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1073741909 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI33554447 = {size: 0,kind: 36,base: null,node: null,finalizer: null}; -var NTI1426065073 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI922746949 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI134217742 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1426063439 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1728053251 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI33555150 = {size: 0,kind: 41,base: null,node: null,finalizer: null}; -var NTI1426063382 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063380 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1426063376 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; -var NTI1426063375 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1426063374 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063373 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063372 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063371 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063364 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063368 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063367 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1459617857 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1459617821 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; -var NTI33554439 = {size: 0,kind: 35,base: null,node: null,finalizer: null}; -var NTI1459617824 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI704643165 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643164 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643163 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643162 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643161 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643160 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643159 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643158 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643157 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643156 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643155 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643154 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643153 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643152 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643151 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643150 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643149 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643148 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643147 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643146 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643145 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643144 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643143 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643142 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643141 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643214 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643102 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643261 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643258 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI704643257 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI704643137 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643260 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI704643138 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643207 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643096 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643196 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643208 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643097 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643195 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643194 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643213 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643101 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643193 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643192 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643209 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643098 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643191 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643190 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643089 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643087 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI704643189 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643188 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643088 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643187 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643186 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643199 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643210 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643099 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643198 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643212 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI704643211 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643100 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI33554466 = {size: 0,kind: 1,base: null,node: null,finalizer: null}; -var NTI704643183 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643086 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI704643197 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI704643090 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI33555183 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1442840657 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1442840649 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI1426063369 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI33554435 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1426063365 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063370 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1426063366 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1694498889 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1426063363 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI33554445 = {size: 0,kind: 36,base: null,node: null,finalizer: null}; -var NTI1677721603 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI872415638 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI134217745 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI134217749 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI134217751 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555173 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555181 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI33554449 = {size: 0,kind: 28,base: null,node: null,finalizer: null}; -var NTI33554450 = {size: 0,kind: 29,base: null,node: null,finalizer: null}; -var NTI33555180 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI33555177 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555178 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI134217741 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI134217743 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NNI134217743 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217743.node = NNI134217743; -var NNI134217741 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217741.node = NNI134217741; -var NNI33555178 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555178.node = NNI33555178; -NTI33555180.base = NTI33555177; -NTI33555181.base = NTI33555177; -var NNI33555177 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI33555180, name: "parent", sons: null}, -{kind: 1, offset: "name", len: 0, typ: NTI33554450, name: "name", sons: null}, -{kind: 1, offset: "message", len: 0, typ: NTI33554449, name: "msg", sons: null}, -{kind: 1, offset: "trace", len: 0, typ: NTI33554449, name: "trace", sons: null}, -{kind: 1, offset: "up", len: 0, typ: NTI33555181, name: "up", sons: null}]}; -NTI33555177.node = NNI33555177; -var NNI33555173 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555173.node = NNI33555173; -NTI33555177.base = NTI33555173; -NTI33555178.base = NTI33555177; -NTI134217741.base = NTI33555178; -NTI134217743.base = NTI134217741; -var NNI134217751 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217751.node = NNI134217751; -NTI134217751.base = NTI33555178; -var NNI134217749 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217749.node = NNI134217749; -NTI134217749.base = NTI33555178; -var NNI134217745 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217745.node = NNI134217745; -NTI134217745.base = NTI33555178; -NTI872415638.base = NTI33554449; -var NNI1677721603 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554445, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554445, name: "Field1", sons: null}]}; -NTI1677721603.node = NNI1677721603; -var NNI1426063363 = {kind: 2, len: 6, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "angleDeg", len: 0, typ: NTI33554445, name: "angleDeg", sons: null}, -{kind: 1, offset: "angleRad", len: 0, typ: NTI33554445, name: "angleRad", sons: null}, -{kind: 1, offset: "speed", len: 0, typ: NTI33554445, name: "speed", sons: null}, -{kind: 1, offset: "height", len: 0, typ: NTI33554445, name: "height", sons: null}, -{kind: 1, offset: "vel", len: 0, typ: NTI1677721603, name: "vel", sons: null}, -{kind: 1, offset: "gravity", len: 0, typ: NTI1677721603, name: "gravity", sons: null}]}; -NTI1426063363.node = NNI1426063363; -var NNI1694498889 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554445, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554445, name: "Field1", sons: null}]}; -NTI1694498889.node = NNI1694498889; -var NNI1426063365 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "pos", len: 0, typ: NTI1677721603, name: "pos", sons: null}, -{kind: 1, offset: "vel", len: 0, typ: NTI1677721603, name: "vel", sons: null}, -{kind: 1, offset: "time", len: 0, typ: NTI33554445, name: "time", sons: null}, -{kind: 1, offset: "speed", len: 0, typ: NTI33554445, name: "speed", sons: null}]}; -NTI1426063365.node = NNI1426063365; -NTI1426063370.base = NTI1426063365; -var NNI1426063366 = {kind: 2, len: 7, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "state", len: 0, typ: NTI1426063363, name: "state", sons: null}, -{kind: 1, offset: "points", len: 0, typ: NTI1426063370, name: "points", sons: null}, -{kind: 1, offset: "highestPoint", len: 0, typ: NTI33554435, name: "highestPoint", sons: null}, -{kind: 1, offset: "closestPoint", len: 0, typ: NTI33554435, name: "closestPoint", sons: null}, -{kind: 1, offset: "extraPoint", len: 0, typ: NTI33554435, name: "extraPoint", sons: null}, -{kind: 1, offset: "pinnedPoint", len: 0, typ: NTI33554435, name: "pinnedPoint", sons: null}, -{kind: 1, offset: "color", len: 0, typ: NTI33554435, name: "color", sons: null}]}; -NTI1426063366.node = NNI1426063366; -var NNI1442840657 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI1442840657.node = NNI1442840657; -var NNI33555183 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555183.node = NNI33555183; -NTI33555183.base = NTI33555173; -NTI1442840657.base = NTI33555183; -NTI1442840649.base = NTI1442840657; -var NNI704643183 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI704643183.node = NNI704643183; -NTI704643183.base = NTI33555173; -NTI704643086.base = NTI704643183; -NTI704643212.base = NTI704643090; -var NNI704643211 = {kind: 2, len: 10, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "acceptCharset", len: 0, typ: NTI33554450, name: "acceptCharset", sons: null}, -{kind: 1, offset: "action", len: 0, typ: NTI33554450, name: "action", sons: null}, -{kind: 1, offset: "autocomplete", len: 0, typ: NTI33554450, name: "autocomplete", sons: null}, -{kind: 1, offset: "elements", len: 0, typ: NTI704643212, name: "elements", sons: null}, -{kind: 1, offset: "encoding", len: 0, typ: NTI33554450, name: "encoding", sons: null}, -{kind: 1, offset: "enctype", len: 0, typ: NTI33554450, name: "enctype", sons: null}, -{kind: 1, offset: "length", len: 0, typ: NTI33554435, name: "length", sons: null}, -{kind: 1, offset: "method", len: 0, typ: NTI33554450, name: "method", sons: null}, -{kind: 1, offset: "noValidate", len: 0, typ: NTI33554466, name: "noValidate", sons: null}, -{kind: 1, offset: "target", len: 0, typ: NTI33554450, name: "target", sons: null}]}; -NTI704643211.node = NNI704643211; -NTI704643211.base = NTI704643197; -NTI704643100.base = NTI704643211; -var NNI704643210 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "defaultSelected", len: 0, typ: NTI33554466, name: "defaultSelected", sons: null}, -{kind: 1, offset: "selected", len: 0, typ: NTI33554466, name: "selected", sons: null}, -{kind: 1, offset: "selectedIndex", len: 0, typ: NTI33554435, name: "selectedIndex", sons: null}, -{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, -{kind: 1, offset: "value", len: 0, typ: NTI33554450, name: "value", sons: null}]}; -NTI704643210.node = NNI704643210; -NTI704643210.base = NTI704643197; -NTI704643099.base = NTI704643210; -NTI704643198.base = NTI704643099; -NTI704643199.base = NTI704643099; -var NNI704643197 = {kind: 2, len: 20, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "className", len: 0, typ: NTI33554450, name: "className", sons: null}, -{kind: 1, offset: "classList", len: 0, typ: NTI704643086, name: "classList", sons: null}, -{kind: 1, offset: "checked", len: 0, typ: NTI33554466, name: "checked", sons: null}, -{kind: 1, offset: "defaultChecked", len: 0, typ: NTI33554466, name: "defaultChecked", sons: null}, -{kind: 1, offset: "defaultValue", len: 0, typ: NTI33554450, name: "defaultValue", sons: null}, -{kind: 1, offset: "disabled", len: 0, typ: NTI33554466, name: "disabled", sons: null}, -{kind: 1, offset: "form", len: 0, typ: NTI704643100, name: "form", sons: null}, -{kind: 1, offset: "name", len: 0, typ: NTI33554450, name: "name", sons: null}, -{kind: 1, offset: "readOnly", len: 0, typ: NTI33554466, name: "readOnly", sons: null}, -{kind: 1, offset: "options", len: 0, typ: NTI704643198, name: "options", sons: null}, -{kind: 1, offset: "selectedOptions", len: 0, typ: NTI704643199, name: "selectedOptions", sons: null}, -{kind: 1, offset: "clientWidth", len: 0, typ: NTI33554435, name: "clientWidth", sons: null}, -{kind: 1, offset: "clientHeight", len: 0, typ: NTI33554435, name: "clientHeight", sons: null}, -{kind: 1, offset: "contentEditable", len: 0, typ: NTI33554450, name: "contentEditable", sons: null}, -{kind: 1, offset: "isContentEditable", len: 0, typ: NTI33554466, name: "isContentEditable", sons: null}, -{kind: 1, offset: "dir", len: 0, typ: NTI33554450, name: "dir", sons: null}, -{kind: 1, offset: "offsetHeight", len: 0, typ: NTI33554435, name: "offsetHeight", sons: null}, -{kind: 1, offset: "offsetWidth", len: 0, typ: NTI33554435, name: "offsetWidth", sons: null}, -{kind: 1, offset: "offsetLeft", len: 0, typ: NTI33554435, name: "offsetLeft", sons: null}, -{kind: 1, offset: "offsetTop", len: 0, typ: NTI33554435, name: "offsetTop", sons: null}]}; -NTI704643197.node = NNI704643197; -NTI704643088.base = NTI704643186; -NTI704643187.base = NTI704643088; -NTI704643188.base = NTI704643088; -NTI704643189.base = NTI704643088; -var NNI704643087 = {kind: 2, offset: 0, typ: null, name: null, len: 12, sons: {"1": {kind: 1, offset: 1, typ: NTI704643087, name: "ElementNode", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI704643087, name: "AttributeNode", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI704643087, name: "TextNode", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI704643087, name: "CDATANode", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI704643087, name: "EntityRefNode", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI704643087, name: "EntityNode", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI704643087, name: "ProcessingInstructionNode", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI704643087, name: "CommentNode", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI704643087, name: "DocumentNode", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI704643087, name: "DocumentTypeNode", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI704643087, name: "DocumentFragmentNode", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI704643087, name: "NotationNode", len: 0, sons: null}}}; -NTI704643087.node = NNI704643087; -var NNI704643209 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, -{kind: 1, offset: "x", len: 0, typ: NTI33554435, name: "x", sons: null}, -{kind: 1, offset: "y", len: 0, typ: NTI33554435, name: "y", sons: null}]}; -NTI704643209.node = NNI704643209; -NTI704643209.base = NTI704643197; -NTI704643098.base = NTI704643209; -NTI704643191.base = NTI704643098; -NTI704643192.base = NTI704643100; -var NNI704643213 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "border", len: 0, typ: NTI33554435, name: "border", sons: null}, -{kind: 1, offset: "complete", len: 0, typ: NTI33554466, name: "complete", sons: null}, -{kind: 1, offset: "height", len: 0, typ: NTI33554435, name: "height", sons: null}, -{kind: 1, offset: "hspace", len: 0, typ: NTI33554435, name: "hspace", sons: null}, -{kind: 1, offset: "lowsrc", len: 0, typ: NTI33554450, name: "lowsrc", sons: null}, -{kind: 1, offset: "src", len: 0, typ: NTI33554450, name: "src", sons: null}, -{kind: 1, offset: "vspace", len: 0, typ: NTI33554435, name: "vspace", sons: null}, -{kind: 1, offset: "width", len: 0, typ: NTI33554435, name: "width", sons: null}]}; -NTI704643213.node = NNI704643213; -NTI704643213.base = NTI704643197; -NTI704643101.base = NTI704643213; -NTI704643193.base = NTI704643101; -NTI704643194.base = NTI704643090; -var NNI704643208 = {kind: 2, len: 6, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "height", len: 0, typ: NTI33554435, name: "height", sons: null}, -{kind: 1, offset: "hspace", len: 0, typ: NTI33554435, name: "hspace", sons: null}, -{kind: 1, offset: "src", len: 0, typ: NTI33554450, name: "src", sons: null}, -{kind: 1, offset: "width", len: 0, typ: NTI33554435, name: "width", sons: null}, -{kind: 1, offset: "type", len: 0, typ: NTI33554450, name: "type", sons: null}, -{kind: 1, offset: "vspace", len: 0, typ: NTI33554435, name: "vspace", sons: null}]}; -NTI704643208.node = NNI704643208; -NTI704643208.base = NTI704643197; -NTI704643097.base = NTI704643208; -NTI704643195.base = NTI704643097; -var NNI704643207 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "target", len: 0, typ: NTI33554450, name: "target", sons: null}, -{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, -{kind: 1, offset: "x", len: 0, typ: NTI33554435, name: "x", sons: null}, -{kind: 1, offset: "y", len: 0, typ: NTI33554435, name: "y", sons: null}]}; -NTI704643207.node = NNI704643207; -NTI704643207.base = NTI704643197; -NTI704643096.base = NTI704643207; -NTI704643196.base = NTI704643096; -var NNI704643257 = {kind: 1, offset: "then", len: 0, typ: NTI704643258, name: "then", sons: null}; -NTI704643257.node = NNI704643257; -NTI704643137.base = NTI704643257; -var NNI704643260 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "ready", len: 0, typ: NTI704643137, name: "ready", sons: null}, -{kind: 1, offset: "onloadingdone", len: 0, typ: NTI704643261, name: "onloadingdone", sons: null}]}; -NTI704643260.node = NNI704643260; -NTI704643138.base = NTI704643260; -var NNI704643190 = {kind: 2, len: 25, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "activeElement", len: 0, typ: NTI704643090, name: "activeElement", sons: null}, -{kind: 1, offset: "documentElement", len: 0, typ: NTI704643090, name: "documentElement", sons: null}, -{kind: 1, offset: "alinkColor", len: 0, typ: NTI33554450, name: "alinkColor", sons: null}, -{kind: 1, offset: "bgColor", len: 0, typ: NTI33554450, name: "bgColor", sons: null}, -{kind: 1, offset: "body", len: 0, typ: NTI704643090, name: "body", sons: null}, -{kind: 1, offset: "charset", len: 0, typ: NTI33554450, name: "charset", sons: null}, -{kind: 1, offset: "cookie", len: 0, typ: NTI33554450, name: "cookie", sons: null}, -{kind: 1, offset: "defaultCharset", len: 0, typ: NTI33554450, name: "defaultCharset", sons: null}, -{kind: 1, offset: "fgColor", len: 0, typ: NTI33554450, name: "fgColor", sons: null}, -{kind: 1, offset: "head", len: 0, typ: NTI704643090, name: "head", sons: null}, -{kind: 1, offset: "hidden", len: 0, typ: NTI33554466, name: "hidden", sons: null}, -{kind: 1, offset: "lastModified", len: 0, typ: NTI33554450, name: "lastModified", sons: null}, -{kind: 1, offset: "linkColor", len: 0, typ: NTI33554450, name: "linkColor", sons: null}, -{kind: 1, offset: "referrer", len: 0, typ: NTI33554450, name: "referrer", sons: null}, -{kind: 1, offset: "title", len: 0, typ: NTI33554450, name: "title", sons: null}, -{kind: 1, offset: "URL", len: 0, typ: NTI33554450, name: "URL", sons: null}, -{kind: 1, offset: "visibilityState", len: 0, typ: NTI33554450, name: "visibilityState", sons: null}, -{kind: 1, offset: "vlinkColor", len: 0, typ: NTI33554450, name: "vlinkColor", sons: null}, -{kind: 1, offset: "anchors", len: 0, typ: NTI704643191, name: "anchors", sons: null}, -{kind: 1, offset: "forms", len: 0, typ: NTI704643192, name: "forms", sons: null}, -{kind: 1, offset: "images", len: 0, typ: NTI704643193, name: "images", sons: null}, -{kind: 1, offset: "applets", len: 0, typ: NTI704643194, name: "applets", sons: null}, -{kind: 1, offset: "embeds", len: 0, typ: NTI704643195, name: "embeds", sons: null}, -{kind: 1, offset: "links", len: 0, typ: NTI704643196, name: "links", sons: null}, -{kind: 1, offset: "fonts", len: 0, typ: NTI704643138, name: "fonts", sons: null}]}; -NTI704643190.node = NNI704643190; -NTI704643190.base = NTI704643186; -NTI704643089.base = NTI704643190; -var NNI704643214 = {kind: 2, len: 368, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "alignContent", len: 0, typ: NTI33554450, name: "alignContent", sons: null}, -{kind: 1, offset: "alignItems", len: 0, typ: NTI33554450, name: "alignItems", sons: null}, -{kind: 1, offset: "alignSelf", len: 0, typ: NTI33554450, name: "alignSelf", sons: null}, -{kind: 1, offset: "all", len: 0, typ: NTI33554450, name: "all", sons: null}, -{kind: 1, offset: "animation", len: 0, typ: NTI33554450, name: "animation", sons: null}, -{kind: 1, offset: "animationDelay", len: 0, typ: NTI33554450, name: "animationDelay", sons: null}, -{kind: 1, offset: "animationDirection", len: 0, typ: NTI33554450, name: "animationDirection", sons: null}, -{kind: 1, offset: "animationDuration", len: 0, typ: NTI33554450, name: "animationDuration", sons: null}, -{kind: 1, offset: "animationFillMode", len: 0, typ: NTI33554450, name: "animationFillMode", sons: null}, -{kind: 1, offset: "animationIterationCount", len: 0, typ: NTI33554450, name: "animationIterationCount", sons: null}, -{kind: 1, offset: "animationName", len: 0, typ: NTI33554450, name: "animationName", sons: null}, -{kind: 1, offset: "animationPlayState", len: 0, typ: NTI33554450, name: "animationPlayState", sons: null}, -{kind: 1, offset: "animationTimingFunction", len: 0, typ: NTI33554450, name: "animationTimingFunction", sons: null}, -{kind: 1, offset: "backdropFilter", len: 0, typ: NTI33554450, name: "backdropFilter", sons: null}, -{kind: 1, offset: "backfaceVisibility", len: 0, typ: NTI33554450, name: "backfaceVisibility", sons: null}, -{kind: 1, offset: "background", len: 0, typ: NTI33554450, name: "background", sons: null}, -{kind: 1, offset: "backgroundAttachment", len: 0, typ: NTI33554450, name: "backgroundAttachment", sons: null}, -{kind: 1, offset: "backgroundBlendMode", len: 0, typ: NTI33554450, name: "backgroundBlendMode", sons: null}, -{kind: 1, offset: "backgroundClip", len: 0, typ: NTI33554450, name: "backgroundClip", sons: null}, -{kind: 1, offset: "backgroundColor", len: 0, typ: NTI33554450, name: "backgroundColor", sons: null}, -{kind: 1, offset: "backgroundImage", len: 0, typ: NTI33554450, name: "backgroundImage", sons: null}, -{kind: 1, offset: "backgroundOrigin", len: 0, typ: NTI33554450, name: "backgroundOrigin", sons: null}, -{kind: 1, offset: "backgroundPosition", len: 0, typ: NTI33554450, name: "backgroundPosition", sons: null}, -{kind: 1, offset: "backgroundRepeat", len: 0, typ: NTI33554450, name: "backgroundRepeat", sons: null}, -{kind: 1, offset: "backgroundSize", len: 0, typ: NTI33554450, name: "backgroundSize", sons: null}, -{kind: 1, offset: "blockSize", len: 0, typ: NTI33554450, name: "blockSize", sons: null}, -{kind: 1, offset: "border", len: 0, typ: NTI33554450, name: "border", sons: null}, -{kind: 1, offset: "borderBlock", len: 0, typ: NTI33554450, name: "borderBlock", sons: null}, -{kind: 1, offset: "borderBlockColor", len: 0, typ: NTI33554450, name: "borderBlockColor", sons: null}, -{kind: 1, offset: "borderBlockEnd", len: 0, typ: NTI33554450, name: "borderBlockEnd", sons: null}, -{kind: 1, offset: "borderBlockEndColor", len: 0, typ: NTI33554450, name: "borderBlockEndColor", sons: null}, -{kind: 1, offset: "borderBlockEndStyle", len: 0, typ: NTI33554450, name: "borderBlockEndStyle", sons: null}, -{kind: 1, offset: "borderBlockEndWidth", len: 0, typ: NTI33554450, name: "borderBlockEndWidth", sons: null}, -{kind: 1, offset: "borderBlockStart", len: 0, typ: NTI33554450, name: "borderBlockStart", sons: null}, -{kind: 1, offset: "borderBlockStartColor", len: 0, typ: NTI33554450, name: "borderBlockStartColor", sons: null}, -{kind: 1, offset: "borderBlockStartStyle", len: 0, typ: NTI33554450, name: "borderBlockStartStyle", sons: null}, -{kind: 1, offset: "borderBlockStartWidth", len: 0, typ: NTI33554450, name: "borderBlockStartWidth", sons: null}, -{kind: 1, offset: "borderBlockStyle", len: 0, typ: NTI33554450, name: "borderBlockStyle", sons: null}, -{kind: 1, offset: "borderBlockWidth", len: 0, typ: NTI33554450, name: "borderBlockWidth", sons: null}, -{kind: 1, offset: "borderBottom", len: 0, typ: NTI33554450, name: "borderBottom", sons: null}, -{kind: 1, offset: "borderBottomColor", len: 0, typ: NTI33554450, name: "borderBottomColor", sons: null}, -{kind: 1, offset: "borderBottomLeftRadius", len: 0, typ: NTI33554450, name: "borderBottomLeftRadius", sons: null}, -{kind: 1, offset: "borderBottomRightRadius", len: 0, typ: NTI33554450, name: "borderBottomRightRadius", sons: null}, -{kind: 1, offset: "borderBottomStyle", len: 0, typ: NTI33554450, name: "borderBottomStyle", sons: null}, -{kind: 1, offset: "borderBottomWidth", len: 0, typ: NTI33554450, name: "borderBottomWidth", sons: null}, -{kind: 1, offset: "borderCollapse", len: 0, typ: NTI33554450, name: "borderCollapse", sons: null}, -{kind: 1, offset: "borderColor", len: 0, typ: NTI33554450, name: "borderColor", sons: null}, -{kind: 1, offset: "borderEndEndRadius", len: 0, typ: NTI33554450, name: "borderEndEndRadius", sons: null}, -{kind: 1, offset: "borderEndStartRadius", len: 0, typ: NTI33554450, name: "borderEndStartRadius", sons: null}, -{kind: 1, offset: "borderImage", len: 0, typ: NTI33554450, name: "borderImage", sons: null}, -{kind: 1, offset: "borderImageOutset", len: 0, typ: NTI33554450, name: "borderImageOutset", sons: null}, -{kind: 1, offset: "borderImageRepeat", len: 0, typ: NTI33554450, name: "borderImageRepeat", sons: null}, -{kind: 1, offset: "borderImageSlice", len: 0, typ: NTI33554450, name: "borderImageSlice", sons: null}, -{kind: 1, offset: "borderImageSource", len: 0, typ: NTI33554450, name: "borderImageSource", sons: null}, -{kind: 1, offset: "borderImageWidth", len: 0, typ: NTI33554450, name: "borderImageWidth", sons: null}, -{kind: 1, offset: "borderInline", len: 0, typ: NTI33554450, name: "borderInline", sons: null}, -{kind: 1, offset: "borderInlineColor", len: 0, typ: NTI33554450, name: "borderInlineColor", sons: null}, -{kind: 1, offset: "borderInlineEnd", len: 0, typ: NTI33554450, name: "borderInlineEnd", sons: null}, -{kind: 1, offset: "borderInlineEndColor", len: 0, typ: NTI33554450, name: "borderInlineEndColor", sons: null}, -{kind: 1, offset: "borderInlineEndStyle", len: 0, typ: NTI33554450, name: "borderInlineEndStyle", sons: null}, -{kind: 1, offset: "borderInlineEndWidth", len: 0, typ: NTI33554450, name: "borderInlineEndWidth", sons: null}, -{kind: 1, offset: "borderInlineStart", len: 0, typ: NTI33554450, name: "borderInlineStart", sons: null}, -{kind: 1, offset: "borderInlineStartColor", len: 0, typ: NTI33554450, name: "borderInlineStartColor", sons: null}, -{kind: 1, offset: "borderInlineStartStyle", len: 0, typ: NTI33554450, name: "borderInlineStartStyle", sons: null}, -{kind: 1, offset: "borderInlineStartWidth", len: 0, typ: NTI33554450, name: "borderInlineStartWidth", sons: null}, -{kind: 1, offset: "borderInlineStyle", len: 0, typ: NTI33554450, name: "borderInlineStyle", sons: null}, -{kind: 1, offset: "borderInlineWidth", len: 0, typ: NTI33554450, name: "borderInlineWidth", sons: null}, -{kind: 1, offset: "borderLeft", len: 0, typ: NTI33554450, name: "borderLeft", sons: null}, -{kind: 1, offset: "borderLeftColor", len: 0, typ: NTI33554450, name: "borderLeftColor", sons: null}, -{kind: 1, offset: "borderLeftStyle", len: 0, typ: NTI33554450, name: "borderLeftStyle", sons: null}, -{kind: 1, offset: "borderLeftWidth", len: 0, typ: NTI33554450, name: "borderLeftWidth", sons: null}, -{kind: 1, offset: "borderRadius", len: 0, typ: NTI33554450, name: "borderRadius", sons: null}, -{kind: 1, offset: "borderRight", len: 0, typ: NTI33554450, name: "borderRight", sons: null}, -{kind: 1, offset: "borderRightColor", len: 0, typ: NTI33554450, name: "borderRightColor", sons: null}, -{kind: 1, offset: "borderRightStyle", len: 0, typ: NTI33554450, name: "borderRightStyle", sons: null}, -{kind: 1, offset: "borderRightWidth", len: 0, typ: NTI33554450, name: "borderRightWidth", sons: null}, -{kind: 1, offset: "borderSpacing", len: 0, typ: NTI33554450, name: "borderSpacing", sons: null}, -{kind: 1, offset: "borderStartEndRadius", len: 0, typ: NTI33554450, name: "borderStartEndRadius", sons: null}, -{kind: 1, offset: "borderStartStartRadius", len: 0, typ: NTI33554450, name: "borderStartStartRadius", sons: null}, -{kind: 1, offset: "borderStyle", len: 0, typ: NTI33554450, name: "borderStyle", sons: null}, -{kind: 1, offset: "borderTop", len: 0, typ: NTI33554450, name: "borderTop", sons: null}, -{kind: 1, offset: "borderTopColor", len: 0, typ: NTI33554450, name: "borderTopColor", sons: null}, -{kind: 1, offset: "borderTopLeftRadius", len: 0, typ: NTI33554450, name: "borderTopLeftRadius", sons: null}, -{kind: 1, offset: "borderTopRightRadius", len: 0, typ: NTI33554450, name: "borderTopRightRadius", sons: null}, -{kind: 1, offset: "borderTopStyle", len: 0, typ: NTI33554450, name: "borderTopStyle", sons: null}, -{kind: 1, offset: "borderTopWidth", len: 0, typ: NTI33554450, name: "borderTopWidth", sons: null}, -{kind: 1, offset: "borderWidth", len: 0, typ: NTI33554450, name: "borderWidth", sons: null}, -{kind: 1, offset: "bottom", len: 0, typ: NTI33554450, name: "bottom", sons: null}, -{kind: 1, offset: "boxDecorationBreak", len: 0, typ: NTI33554450, name: "boxDecorationBreak", sons: null}, -{kind: 1, offset: "boxShadow", len: 0, typ: NTI33554450, name: "boxShadow", sons: null}, -{kind: 1, offset: "boxSizing", len: 0, typ: NTI33554450, name: "boxSizing", sons: null}, -{kind: 1, offset: "breakAfter", len: 0, typ: NTI33554450, name: "breakAfter", sons: null}, -{kind: 1, offset: "breakBefore", len: 0, typ: NTI33554450, name: "breakBefore", sons: null}, -{kind: 1, offset: "breakInside", len: 0, typ: NTI33554450, name: "breakInside", sons: null}, -{kind: 1, offset: "captionSide", len: 0, typ: NTI33554450, name: "captionSide", sons: null}, -{kind: 1, offset: "caretColor", len: 0, typ: NTI33554450, name: "caretColor", sons: null}, -{kind: 1, offset: "clear", len: 0, typ: NTI33554450, name: "clear", sons: null}, -{kind: 1, offset: "clip", len: 0, typ: NTI33554450, name: "clip", sons: null}, -{kind: 1, offset: "clipPath", len: 0, typ: NTI33554450, name: "clipPath", sons: null}, -{kind: 1, offset: "color", len: 0, typ: NTI33554450, name: "color", sons: null}, -{kind: 1, offset: "colorAdjust", len: 0, typ: NTI33554450, name: "colorAdjust", sons: null}, -{kind: 1, offset: "columnCount", len: 0, typ: NTI33554450, name: "columnCount", sons: null}, -{kind: 1, offset: "columnFill", len: 0, typ: NTI33554450, name: "columnFill", sons: null}, -{kind: 1, offset: "columnGap", len: 0, typ: NTI33554450, name: "columnGap", sons: null}, -{kind: 1, offset: "columnRule", len: 0, typ: NTI33554450, name: "columnRule", sons: null}, -{kind: 1, offset: "columnRuleColor", len: 0, typ: NTI33554450, name: "columnRuleColor", sons: null}, -{kind: 1, offset: "columnRuleStyle", len: 0, typ: NTI33554450, name: "columnRuleStyle", sons: null}, -{kind: 1, offset: "columnRuleWidth", len: 0, typ: NTI33554450, name: "columnRuleWidth", sons: null}, -{kind: 1, offset: "columnSpan", len: 0, typ: NTI33554450, name: "columnSpan", sons: null}, -{kind: 1, offset: "columnWidth", len: 0, typ: NTI33554450, name: "columnWidth", sons: null}, -{kind: 1, offset: "columns", len: 0, typ: NTI33554450, name: "columns", sons: null}, -{kind: 1, offset: "contain", len: 0, typ: NTI33554450, name: "contain", sons: null}, -{kind: 1, offset: "content", len: 0, typ: NTI33554450, name: "content", sons: null}, -{kind: 1, offset: "counterIncrement", len: 0, typ: NTI33554450, name: "counterIncrement", sons: null}, -{kind: 1, offset: "counterReset", len: 0, typ: NTI33554450, name: "counterReset", sons: null}, -{kind: 1, offset: "counterSet", len: 0, typ: NTI33554450, name: "counterSet", sons: null}, -{kind: 1, offset: "cursor", len: 0, typ: NTI33554450, name: "cursor", sons: null}, -{kind: 1, offset: "direction", len: 0, typ: NTI33554450, name: "direction", sons: null}, -{kind: 1, offset: "display", len: 0, typ: NTI33554450, name: "display", sons: null}, -{kind: 1, offset: "emptyCells", len: 0, typ: NTI33554450, name: "emptyCells", sons: null}, -{kind: 1, offset: "filter", len: 0, typ: NTI33554450, name: "filter", sons: null}, -{kind: 1, offset: "flex", len: 0, typ: NTI33554450, name: "flex", sons: null}, -{kind: 1, offset: "flexBasis", len: 0, typ: NTI33554450, name: "flexBasis", sons: null}, -{kind: 1, offset: "flexDirection", len: 0, typ: NTI33554450, name: "flexDirection", sons: null}, -{kind: 1, offset: "flexFlow", len: 0, typ: NTI33554450, name: "flexFlow", sons: null}, -{kind: 1, offset: "flexGrow", len: 0, typ: NTI33554450, name: "flexGrow", sons: null}, -{kind: 1, offset: "flexShrink", len: 0, typ: NTI33554450, name: "flexShrink", sons: null}, -{kind: 1, offset: "flexWrap", len: 0, typ: NTI33554450, name: "flexWrap", sons: null}, -{kind: 1, offset: "cssFloat", len: 0, typ: NTI33554450, name: "cssFloat", sons: null}, -{kind: 1, offset: "font", len: 0, typ: NTI33554450, name: "font", sons: null}, -{kind: 1, offset: "fontFamily", len: 0, typ: NTI33554450, name: "fontFamily", sons: null}, -{kind: 1, offset: "fontFeatureSettings", len: 0, typ: NTI33554450, name: "fontFeatureSettings", sons: null}, -{kind: 1, offset: "fontKerning", len: 0, typ: NTI33554450, name: "fontKerning", sons: null}, -{kind: 1, offset: "fontLanguageOverride", len: 0, typ: NTI33554450, name: "fontLanguageOverride", sons: null}, -{kind: 1, offset: "fontOpticalSizing", len: 0, typ: NTI33554450, name: "fontOpticalSizing", sons: null}, -{kind: 1, offset: "fontSize", len: 0, typ: NTI33554450, name: "fontSize", sons: null}, -{kind: 1, offset: "fontSizeAdjust", len: 0, typ: NTI33554450, name: "fontSizeAdjust", sons: null}, -{kind: 1, offset: "fontStretch", len: 0, typ: NTI33554450, name: "fontStretch", sons: null}, -{kind: 1, offset: "fontStyle", len: 0, typ: NTI33554450, name: "fontStyle", sons: null}, -{kind: 1, offset: "fontSynthesis", len: 0, typ: NTI33554450, name: "fontSynthesis", sons: null}, -{kind: 1, offset: "fontVariant", len: 0, typ: NTI33554450, name: "fontVariant", sons: null}, -{kind: 1, offset: "fontVariantAlternates", len: 0, typ: NTI33554450, name: "fontVariantAlternates", sons: null}, -{kind: 1, offset: "fontVariantCaps", len: 0, typ: NTI33554450, name: "fontVariantCaps", sons: null}, -{kind: 1, offset: "fontVariantEastAsian", len: 0, typ: NTI33554450, name: "fontVariantEastAsian", sons: null}, -{kind: 1, offset: "fontVariantLigatures", len: 0, typ: NTI33554450, name: "fontVariantLigatures", sons: null}, -{kind: 1, offset: "fontVariantNumeric", len: 0, typ: NTI33554450, name: "fontVariantNumeric", sons: null}, -{kind: 1, offset: "fontVariantPosition", len: 0, typ: NTI33554450, name: "fontVariantPosition", sons: null}, -{kind: 1, offset: "fontVariationSettings", len: 0, typ: NTI33554450, name: "fontVariationSettings", sons: null}, -{kind: 1, offset: "fontWeight", len: 0, typ: NTI33554450, name: "fontWeight", sons: null}, -{kind: 1, offset: "gap", len: 0, typ: NTI33554450, name: "gap", sons: null}, -{kind: 1, offset: "grid", len: 0, typ: NTI33554450, name: "grid", sons: null}, -{kind: 1, offset: "gridArea", len: 0, typ: NTI33554450, name: "gridArea", sons: null}, -{kind: 1, offset: "gridAutoColumns", len: 0, typ: NTI33554450, name: "gridAutoColumns", sons: null}, -{kind: 1, offset: "gridAutoFlow", len: 0, typ: NTI33554450, name: "gridAutoFlow", sons: null}, -{kind: 1, offset: "gridAutoRows", len: 0, typ: NTI33554450, name: "gridAutoRows", sons: null}, -{kind: 1, offset: "gridColumn", len: 0, typ: NTI33554450, name: "gridColumn", sons: null}, -{kind: 1, offset: "gridColumnEnd", len: 0, typ: NTI33554450, name: "gridColumnEnd", sons: null}, -{kind: 1, offset: "gridColumnStart", len: 0, typ: NTI33554450, name: "gridColumnStart", sons: null}, -{kind: 1, offset: "gridRow", len: 0, typ: NTI33554450, name: "gridRow", sons: null}, -{kind: 1, offset: "gridRowEnd", len: 0, typ: NTI33554450, name: "gridRowEnd", sons: null}, -{kind: 1, offset: "gridRowStart", len: 0, typ: NTI33554450, name: "gridRowStart", sons: null}, -{kind: 1, offset: "gridTemplate", len: 0, typ: NTI33554450, name: "gridTemplate", sons: null}, -{kind: 1, offset: "gridTemplateAreas", len: 0, typ: NTI33554450, name: "gridTemplateAreas", sons: null}, -{kind: 1, offset: "gridTemplateColumns", len: 0, typ: NTI33554450, name: "gridTemplateColumns", sons: null}, -{kind: 1, offset: "gridTemplateRows", len: 0, typ: NTI33554450, name: "gridTemplateRows", sons: null}, -{kind: 1, offset: "hangingPunctuation", len: 0, typ: NTI33554450, name: "hangingPunctuation", sons: null}, -{kind: 1, offset: "height", len: 0, typ: NTI33554450, name: "height", sons: null}, -{kind: 1, offset: "hyphens", len: 0, typ: NTI33554450, name: "hyphens", sons: null}, -{kind: 1, offset: "imageOrientation", len: 0, typ: NTI33554450, name: "imageOrientation", sons: null}, -{kind: 1, offset: "imageRendering", len: 0, typ: NTI33554450, name: "imageRendering", sons: null}, -{kind: 1, offset: "inlineSize", len: 0, typ: NTI33554450, name: "inlineSize", sons: null}, -{kind: 1, offset: "inset", len: 0, typ: NTI33554450, name: "inset", sons: null}, -{kind: 1, offset: "insetBlock", len: 0, typ: NTI33554450, name: "insetBlock", sons: null}, -{kind: 1, offset: "insetBlockEnd", len: 0, typ: NTI33554450, name: "insetBlockEnd", sons: null}, -{kind: 1, offset: "insetBlockStart", len: 0, typ: NTI33554450, name: "insetBlockStart", sons: null}, -{kind: 1, offset: "insetInline", len: 0, typ: NTI33554450, name: "insetInline", sons: null}, -{kind: 1, offset: "insetInlineEnd", len: 0, typ: NTI33554450, name: "insetInlineEnd", sons: null}, -{kind: 1, offset: "insetInlineStart", len: 0, typ: NTI33554450, name: "insetInlineStart", sons: null}, -{kind: 1, offset: "isolation", len: 0, typ: NTI33554450, name: "isolation", sons: null}, -{kind: 1, offset: "justifyContent", len: 0, typ: NTI33554450, name: "justifyContent", sons: null}, -{kind: 1, offset: "justifyItems", len: 0, typ: NTI33554450, name: "justifyItems", sons: null}, -{kind: 1, offset: "justifySelf", len: 0, typ: NTI33554450, name: "justifySelf", sons: null}, -{kind: 1, offset: "left", len: 0, typ: NTI33554450, name: "left", sons: null}, -{kind: 1, offset: "letterSpacing", len: 0, typ: NTI33554450, name: "letterSpacing", sons: null}, -{kind: 1, offset: "lineBreak", len: 0, typ: NTI33554450, name: "lineBreak", sons: null}, -{kind: 1, offset: "lineHeight", len: 0, typ: NTI33554450, name: "lineHeight", sons: null}, -{kind: 1, offset: "listStyle", len: 0, typ: NTI33554450, name: "listStyle", sons: null}, -{kind: 1, offset: "listStyleImage", len: 0, typ: NTI33554450, name: "listStyleImage", sons: null}, -{kind: 1, offset: "listStylePosition", len: 0, typ: NTI33554450, name: "listStylePosition", sons: null}, -{kind: 1, offset: "listStyleType", len: 0, typ: NTI33554450, name: "listStyleType", sons: null}, -{kind: 1, offset: "margin", len: 0, typ: NTI33554450, name: "margin", sons: null}, -{kind: 1, offset: "marginBlock", len: 0, typ: NTI33554450, name: "marginBlock", sons: null}, -{kind: 1, offset: "marginBlockEnd", len: 0, typ: NTI33554450, name: "marginBlockEnd", sons: null}, -{kind: 1, offset: "marginBlockStart", len: 0, typ: NTI33554450, name: "marginBlockStart", sons: null}, -{kind: 1, offset: "marginBottom", len: 0, typ: NTI33554450, name: "marginBottom", sons: null}, -{kind: 1, offset: "marginInline", len: 0, typ: NTI33554450, name: "marginInline", sons: null}, -{kind: 1, offset: "marginInlineEnd", len: 0, typ: NTI33554450, name: "marginInlineEnd", sons: null}, -{kind: 1, offset: "marginInlineStart", len: 0, typ: NTI33554450, name: "marginInlineStart", sons: null}, -{kind: 1, offset: "marginLeft", len: 0, typ: NTI33554450, name: "marginLeft", sons: null}, -{kind: 1, offset: "marginRight", len: 0, typ: NTI33554450, name: "marginRight", sons: null}, -{kind: 1, offset: "marginTop", len: 0, typ: NTI33554450, name: "marginTop", sons: null}, -{kind: 1, offset: "mask", len: 0, typ: NTI33554450, name: "mask", sons: null}, -{kind: 1, offset: "maskBorder", len: 0, typ: NTI33554450, name: "maskBorder", sons: null}, -{kind: 1, offset: "maskBorderMode", len: 0, typ: NTI33554450, name: "maskBorderMode", sons: null}, -{kind: 1, offset: "maskBorderOutset", len: 0, typ: NTI33554450, name: "maskBorderOutset", sons: null}, -{kind: 1, offset: "maskBorderRepeat", len: 0, typ: NTI33554450, name: "maskBorderRepeat", sons: null}, -{kind: 1, offset: "maskBorderSlice", len: 0, typ: NTI33554450, name: "maskBorderSlice", sons: null}, -{kind: 1, offset: "maskBorderSource", len: 0, typ: NTI33554450, name: "maskBorderSource", sons: null}, -{kind: 1, offset: "maskBorderWidth", len: 0, typ: NTI33554450, name: "maskBorderWidth", sons: null}, -{kind: 1, offset: "maskClip", len: 0, typ: NTI33554450, name: "maskClip", sons: null}, -{kind: 1, offset: "maskComposite", len: 0, typ: NTI33554450, name: "maskComposite", sons: null}, -{kind: 1, offset: "maskImage", len: 0, typ: NTI33554450, name: "maskImage", sons: null}, -{kind: 1, offset: "maskMode", len: 0, typ: NTI33554450, name: "maskMode", sons: null}, -{kind: 1, offset: "maskOrigin", len: 0, typ: NTI33554450, name: "maskOrigin", sons: null}, -{kind: 1, offset: "maskPosition", len: 0, typ: NTI33554450, name: "maskPosition", sons: null}, -{kind: 1, offset: "maskRepeat", len: 0, typ: NTI33554450, name: "maskRepeat", sons: null}, -{kind: 1, offset: "maskSize", len: 0, typ: NTI33554450, name: "maskSize", sons: null}, -{kind: 1, offset: "maskType", len: 0, typ: NTI33554450, name: "maskType", sons: null}, -{kind: 1, offset: "maxBlockSize", len: 0, typ: NTI33554450, name: "maxBlockSize", sons: null}, -{kind: 1, offset: "maxHeight", len: 0, typ: NTI33554450, name: "maxHeight", sons: null}, -{kind: 1, offset: "maxInlineSize", len: 0, typ: NTI33554450, name: "maxInlineSize", sons: null}, -{kind: 1, offset: "maxWidth", len: 0, typ: NTI33554450, name: "maxWidth", sons: null}, -{kind: 1, offset: "minBlockSize", len: 0, typ: NTI33554450, name: "minBlockSize", sons: null}, -{kind: 1, offset: "minHeight", len: 0, typ: NTI33554450, name: "minHeight", sons: null}, -{kind: 1, offset: "minInlineSize", len: 0, typ: NTI33554450, name: "minInlineSize", sons: null}, -{kind: 1, offset: "minWidth", len: 0, typ: NTI33554450, name: "minWidth", sons: null}, -{kind: 1, offset: "mixBlendMode", len: 0, typ: NTI33554450, name: "mixBlendMode", sons: null}, -{kind: 1, offset: "objectFit", len: 0, typ: NTI33554450, name: "objectFit", sons: null}, -{kind: 1, offset: "objectPosition", len: 0, typ: NTI33554450, name: "objectPosition", sons: null}, -{kind: 1, offset: "offset", len: 0, typ: NTI33554450, name: "offset", sons: null}, -{kind: 1, offset: "offsetAnchor", len: 0, typ: NTI33554450, name: "offsetAnchor", sons: null}, -{kind: 1, offset: "offsetDistance", len: 0, typ: NTI33554450, name: "offsetDistance", sons: null}, -{kind: 1, offset: "offsetPath", len: 0, typ: NTI33554450, name: "offsetPath", sons: null}, -{kind: 1, offset: "offsetRotate", len: 0, typ: NTI33554450, name: "offsetRotate", sons: null}, -{kind: 1, offset: "opacity", len: 0, typ: NTI33554450, name: "opacity", sons: null}, -{kind: 1, offset: "order", len: 0, typ: NTI33554450, name: "order", sons: null}, -{kind: 1, offset: "orphans", len: 0, typ: NTI33554450, name: "orphans", sons: null}, -{kind: 1, offset: "outline", len: 0, typ: NTI33554450, name: "outline", sons: null}, -{kind: 1, offset: "outlineColor", len: 0, typ: NTI33554450, name: "outlineColor", sons: null}, -{kind: 1, offset: "outlineOffset", len: 0, typ: NTI33554450, name: "outlineOffset", sons: null}, -{kind: 1, offset: "outlineStyle", len: 0, typ: NTI33554450, name: "outlineStyle", sons: null}, -{kind: 1, offset: "outlineWidth", len: 0, typ: NTI33554450, name: "outlineWidth", sons: null}, -{kind: 1, offset: "overflow", len: 0, typ: NTI33554450, name: "overflow", sons: null}, -{kind: 1, offset: "overflowAnchor", len: 0, typ: NTI33554450, name: "overflowAnchor", sons: null}, -{kind: 1, offset: "overflowBlock", len: 0, typ: NTI33554450, name: "overflowBlock", sons: null}, -{kind: 1, offset: "overflowInline", len: 0, typ: NTI33554450, name: "overflowInline", sons: null}, -{kind: 1, offset: "overflowWrap", len: 0, typ: NTI33554450, name: "overflowWrap", sons: null}, -{kind: 1, offset: "overflowX", len: 0, typ: NTI33554450, name: "overflowX", sons: null}, -{kind: 1, offset: "overflowY", len: 0, typ: NTI33554450, name: "overflowY", sons: null}, -{kind: 1, offset: "overscrollBehavior", len: 0, typ: NTI33554450, name: "overscrollBehavior", sons: null}, -{kind: 1, offset: "overscrollBehaviorBlock", len: 0, typ: NTI33554450, name: "overscrollBehaviorBlock", sons: null}, -{kind: 1, offset: "overscrollBehaviorInline", len: 0, typ: NTI33554450, name: "overscrollBehaviorInline", sons: null}, -{kind: 1, offset: "overscrollBehaviorX", len: 0, typ: NTI33554450, name: "overscrollBehaviorX", sons: null}, -{kind: 1, offset: "overscrollBehaviorY", len: 0, typ: NTI33554450, name: "overscrollBehaviorY", sons: null}, -{kind: 1, offset: "padding", len: 0, typ: NTI33554450, name: "padding", sons: null}, -{kind: 1, offset: "paddingBlock", len: 0, typ: NTI33554450, name: "paddingBlock", sons: null}, -{kind: 1, offset: "paddingBlockEnd", len: 0, typ: NTI33554450, name: "paddingBlockEnd", sons: null}, -{kind: 1, offset: "paddingBlockStart", len: 0, typ: NTI33554450, name: "paddingBlockStart", sons: null}, -{kind: 1, offset: "paddingBottom", len: 0, typ: NTI33554450, name: "paddingBottom", sons: null}, -{kind: 1, offset: "paddingInline", len: 0, typ: NTI33554450, name: "paddingInline", sons: null}, -{kind: 1, offset: "paddingInlineEnd", len: 0, typ: NTI33554450, name: "paddingInlineEnd", sons: null}, -{kind: 1, offset: "paddingInlineStart", len: 0, typ: NTI33554450, name: "paddingInlineStart", sons: null}, -{kind: 1, offset: "paddingLeft", len: 0, typ: NTI33554450, name: "paddingLeft", sons: null}, -{kind: 1, offset: "paddingRight", len: 0, typ: NTI33554450, name: "paddingRight", sons: null}, -{kind: 1, offset: "paddingTop", len: 0, typ: NTI33554450, name: "paddingTop", sons: null}, -{kind: 1, offset: "pageBreakAfter", len: 0, typ: NTI33554450, name: "pageBreakAfter", sons: null}, -{kind: 1, offset: "pageBreakBefore", len: 0, typ: NTI33554450, name: "pageBreakBefore", sons: null}, -{kind: 1, offset: "pageBreakInside", len: 0, typ: NTI33554450, name: "pageBreakInside", sons: null}, -{kind: 1, offset: "paintOrder", len: 0, typ: NTI33554450, name: "paintOrder", sons: null}, -{kind: 1, offset: "perspective", len: 0, typ: NTI33554450, name: "perspective", sons: null}, -{kind: 1, offset: "perspectiveOrigin", len: 0, typ: NTI33554450, name: "perspectiveOrigin", sons: null}, -{kind: 1, offset: "placeContent", len: 0, typ: NTI33554450, name: "placeContent", sons: null}, -{kind: 1, offset: "placeItems", len: 0, typ: NTI33554450, name: "placeItems", sons: null}, -{kind: 1, offset: "placeSelf", len: 0, typ: NTI33554450, name: "placeSelf", sons: null}, -{kind: 1, offset: "pointerEvents", len: 0, typ: NTI33554450, name: "pointerEvents", sons: null}, -{kind: 1, offset: "position", len: 0, typ: NTI33554450, name: "position", sons: null}, -{kind: 1, offset: "quotes", len: 0, typ: NTI33554450, name: "quotes", sons: null}, -{kind: 1, offset: "resize", len: 0, typ: NTI33554450, name: "resize", sons: null}, -{kind: 1, offset: "right", len: 0, typ: NTI33554450, name: "right", sons: null}, -{kind: 1, offset: "rotate", len: 0, typ: NTI33554450, name: "rotate", sons: null}, -{kind: 1, offset: "rowGap", len: 0, typ: NTI33554450, name: "rowGap", sons: null}, -{kind: 1, offset: "scale", len: 0, typ: NTI33554450, name: "scale", sons: null}, -{kind: 1, offset: "scrollBehavior", len: 0, typ: NTI33554450, name: "scrollBehavior", sons: null}, -{kind: 1, offset: "scrollMargin", len: 0, typ: NTI33554450, name: "scrollMargin", sons: null}, -{kind: 1, offset: "scrollMarginBlock", len: 0, typ: NTI33554450, name: "scrollMarginBlock", sons: null}, -{kind: 1, offset: "scrollMarginBlockEnd", len: 0, typ: NTI33554450, name: "scrollMarginBlockEnd", sons: null}, -{kind: 1, offset: "scrollMarginBlockStart", len: 0, typ: NTI33554450, name: "scrollMarginBlockStart", sons: null}, -{kind: 1, offset: "scrollMarginBottom", len: 0, typ: NTI33554450, name: "scrollMarginBottom", sons: null}, -{kind: 1, offset: "scrollMarginInline", len: 0, typ: NTI33554450, name: "scrollMarginInline", sons: null}, -{kind: 1, offset: "scrollMarginInlineEnd", len: 0, typ: NTI33554450, name: "scrollMarginInlineEnd", sons: null}, -{kind: 1, offset: "scrollMarginInlineStart", len: 0, typ: NTI33554450, name: "scrollMarginInlineStart", sons: null}, -{kind: 1, offset: "scrollMarginLeft", len: 0, typ: NTI33554450, name: "scrollMarginLeft", sons: null}, -{kind: 1, offset: "scrollMarginRight", len: 0, typ: NTI33554450, name: "scrollMarginRight", sons: null}, -{kind: 1, offset: "scrollMarginTop", len: 0, typ: NTI33554450, name: "scrollMarginTop", sons: null}, -{kind: 1, offset: "scrollPadding", len: 0, typ: NTI33554450, name: "scrollPadding", sons: null}, -{kind: 1, offset: "scrollPaddingBlock", len: 0, typ: NTI33554450, name: "scrollPaddingBlock", sons: null}, -{kind: 1, offset: "scrollPaddingBlockEnd", len: 0, typ: NTI33554450, name: "scrollPaddingBlockEnd", sons: null}, -{kind: 1, offset: "scrollPaddingBlockStart", len: 0, typ: NTI33554450, name: "scrollPaddingBlockStart", sons: null}, -{kind: 1, offset: "scrollPaddingBottom", len: 0, typ: NTI33554450, name: "scrollPaddingBottom", sons: null}, -{kind: 1, offset: "scrollPaddingInline", len: 0, typ: NTI33554450, name: "scrollPaddingInline", sons: null}, -{kind: 1, offset: "scrollPaddingInlineEnd", len: 0, typ: NTI33554450, name: "scrollPaddingInlineEnd", sons: null}, -{kind: 1, offset: "scrollPaddingInlineStart", len: 0, typ: NTI33554450, name: "scrollPaddingInlineStart", sons: null}, -{kind: 1, offset: "scrollPaddingLeft", len: 0, typ: NTI33554450, name: "scrollPaddingLeft", sons: null}, -{kind: 1, offset: "scrollPaddingRight", len: 0, typ: NTI33554450, name: "scrollPaddingRight", sons: null}, -{kind: 1, offset: "scrollPaddingTop", len: 0, typ: NTI33554450, name: "scrollPaddingTop", sons: null}, -{kind: 1, offset: "scrollSnapAlign", len: 0, typ: NTI33554450, name: "scrollSnapAlign", sons: null}, -{kind: 1, offset: "scrollSnapStop", len: 0, typ: NTI33554450, name: "scrollSnapStop", sons: null}, -{kind: 1, offset: "scrollSnapType", len: 0, typ: NTI33554450, name: "scrollSnapType", sons: null}, -{kind: 1, offset: "scrollbar3dLightColor", len: 0, typ: NTI33554450, name: "scrollbar3dLightColor", sons: null}, -{kind: 1, offset: "scrollbarArrowColor", len: 0, typ: NTI33554450, name: "scrollbarArrowColor", sons: null}, -{kind: 1, offset: "scrollbarBaseColor", len: 0, typ: NTI33554450, name: "scrollbarBaseColor", sons: null}, -{kind: 1, offset: "scrollbarColor", len: 0, typ: NTI33554450, name: "scrollbarColor", sons: null}, -{kind: 1, offset: "scrollbarDarkshadowColor", len: 0, typ: NTI33554450, name: "scrollbarDarkshadowColor", sons: null}, -{kind: 1, offset: "scrollbarFaceColor", len: 0, typ: NTI33554450, name: "scrollbarFaceColor", sons: null}, -{kind: 1, offset: "scrollbarHighlightColor", len: 0, typ: NTI33554450, name: "scrollbarHighlightColor", sons: null}, -{kind: 1, offset: "scrollbarShadowColor", len: 0, typ: NTI33554450, name: "scrollbarShadowColor", sons: null}, -{kind: 1, offset: "scrollbarTrackColor", len: 0, typ: NTI33554450, name: "scrollbarTrackColor", sons: null}, -{kind: 1, offset: "scrollbarWidth", len: 0, typ: NTI33554450, name: "scrollbarWidth", sons: null}, -{kind: 1, offset: "shapeImageThreshold", len: 0, typ: NTI33554450, name: "shapeImageThreshold", sons: null}, -{kind: 1, offset: "shapeMargin", len: 0, typ: NTI33554450, name: "shapeMargin", sons: null}, -{kind: 1, offset: "shapeOutside", len: 0, typ: NTI33554450, name: "shapeOutside", sons: null}, -{kind: 1, offset: "tabSize", len: 0, typ: NTI33554450, name: "tabSize", sons: null}, -{kind: 1, offset: "tableLayout", len: 0, typ: NTI33554450, name: "tableLayout", sons: null}, -{kind: 1, offset: "textAlign", len: 0, typ: NTI33554450, name: "textAlign", sons: null}, -{kind: 1, offset: "textAlignLast", len: 0, typ: NTI33554450, name: "textAlignLast", sons: null}, -{kind: 1, offset: "textCombineUpright", len: 0, typ: NTI33554450, name: "textCombineUpright", sons: null}, -{kind: 1, offset: "textDecoration", len: 0, typ: NTI33554450, name: "textDecoration", sons: null}, -{kind: 1, offset: "textDecorationColor", len: 0, typ: NTI33554450, name: "textDecorationColor", sons: null}, -{kind: 1, offset: "textDecorationLine", len: 0, typ: NTI33554450, name: "textDecorationLine", sons: null}, -{kind: 1, offset: "textDecorationSkipInk", len: 0, typ: NTI33554450, name: "textDecorationSkipInk", sons: null}, -{kind: 1, offset: "textDecorationStyle", len: 0, typ: NTI33554450, name: "textDecorationStyle", sons: null}, -{kind: 1, offset: "textDecorationThickness", len: 0, typ: NTI33554450, name: "textDecorationThickness", sons: null}, -{kind: 1, offset: "textEmphasis", len: 0, typ: NTI33554450, name: "textEmphasis", sons: null}, -{kind: 1, offset: "textEmphasisColor", len: 0, typ: NTI33554450, name: "textEmphasisColor", sons: null}, -{kind: 1, offset: "textEmphasisPosition", len: 0, typ: NTI33554450, name: "textEmphasisPosition", sons: null}, -{kind: 1, offset: "textEmphasisStyle", len: 0, typ: NTI33554450, name: "textEmphasisStyle", sons: null}, -{kind: 1, offset: "textIndent", len: 0, typ: NTI33554450, name: "textIndent", sons: null}, -{kind: 1, offset: "textJustify", len: 0, typ: NTI33554450, name: "textJustify", sons: null}, -{kind: 1, offset: "textOrientation", len: 0, typ: NTI33554450, name: "textOrientation", sons: null}, -{kind: 1, offset: "textOverflow", len: 0, typ: NTI33554450, name: "textOverflow", sons: null}, -{kind: 1, offset: "textRendering", len: 0, typ: NTI33554450, name: "textRendering", sons: null}, -{kind: 1, offset: "textShadow", len: 0, typ: NTI33554450, name: "textShadow", sons: null}, -{kind: 1, offset: "textTransform", len: 0, typ: NTI33554450, name: "textTransform", sons: null}, -{kind: 1, offset: "textUnderlineOffset", len: 0, typ: NTI33554450, name: "textUnderlineOffset", sons: null}, -{kind: 1, offset: "textUnderlinePosition", len: 0, typ: NTI33554450, name: "textUnderlinePosition", sons: null}, -{kind: 1, offset: "top", len: 0, typ: NTI33554450, name: "top", sons: null}, -{kind: 1, offset: "touchAction", len: 0, typ: NTI33554450, name: "touchAction", sons: null}, -{kind: 1, offset: "transform", len: 0, typ: NTI33554450, name: "transform", sons: null}, -{kind: 1, offset: "transformBox", len: 0, typ: NTI33554450, name: "transformBox", sons: null}, -{kind: 1, offset: "transformOrigin", len: 0, typ: NTI33554450, name: "transformOrigin", sons: null}, -{kind: 1, offset: "transformStyle", len: 0, typ: NTI33554450, name: "transformStyle", sons: null}, -{kind: 1, offset: "transition", len: 0, typ: NTI33554450, name: "transition", sons: null}, -{kind: 1, offset: "transitionDelay", len: 0, typ: NTI33554450, name: "transitionDelay", sons: null}, -{kind: 1, offset: "transitionDuration", len: 0, typ: NTI33554450, name: "transitionDuration", sons: null}, -{kind: 1, offset: "transitionProperty", len: 0, typ: NTI33554450, name: "transitionProperty", sons: null}, -{kind: 1, offset: "transitionTimingFunction", len: 0, typ: NTI33554450, name: "transitionTimingFunction", sons: null}, -{kind: 1, offset: "translate", len: 0, typ: NTI33554450, name: "translate", sons: null}, -{kind: 1, offset: "unicodeBidi", len: 0, typ: NTI33554450, name: "unicodeBidi", sons: null}, -{kind: 1, offset: "verticalAlign", len: 0, typ: NTI33554450, name: "verticalAlign", sons: null}, -{kind: 1, offset: "visibility", len: 0, typ: NTI33554450, name: "visibility", sons: null}, -{kind: 1, offset: "whiteSpace", len: 0, typ: NTI33554450, name: "whiteSpace", sons: null}, -{kind: 1, offset: "widows", len: 0, typ: NTI33554450, name: "widows", sons: null}, -{kind: 1, offset: "width", len: 0, typ: NTI33554450, name: "width", sons: null}, -{kind: 1, offset: "willChange", len: 0, typ: NTI33554450, name: "willChange", sons: null}, -{kind: 1, offset: "wordBreak", len: 0, typ: NTI33554450, name: "wordBreak", sons: null}, -{kind: 1, offset: "wordSpacing", len: 0, typ: NTI33554450, name: "wordSpacing", sons: null}, -{kind: 1, offset: "writingMode", len: 0, typ: NTI33554450, name: "writingMode", sons: null}, -{kind: 1, offset: "zIndex", len: 0, typ: NTI33554450, name: "zIndex", sons: null}]}; -NTI704643214.node = NNI704643214; -NTI704643214.base = NTI33555173; -NTI704643102.base = NTI704643214; -var NNI704643186 = {kind: 2, len: 22, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "attributes", len: 0, typ: NTI704643187, name: "attributes", sons: null}, -{kind: 1, offset: "childNodes", len: 0, typ: NTI704643188, name: "childNodes", sons: null}, -{kind: 1, offset: "children", len: 0, typ: NTI704643189, name: "children", sons: null}, -{kind: 1, offset: "data", len: 0, typ: NTI33554450, name: "data", sons: null}, -{kind: 1, offset: "firstChild", len: 0, typ: NTI704643088, name: "firstChild", sons: null}, -{kind: 1, offset: "lastChild", len: 0, typ: NTI704643088, name: "lastChild", sons: null}, -{kind: 1, offset: "nextSibling", len: 0, typ: NTI704643088, name: "nextSibling", sons: null}, -{kind: 1, offset: "nodeName", len: 0, typ: NTI33554450, name: "nodeName", sons: null}, -{kind: 1, offset: "nodeType", len: 0, typ: NTI704643087, name: "nodeType", sons: null}, -{kind: 1, offset: "nodeValue", len: 0, typ: NTI33554450, name: "nodeValue", sons: null}, -{kind: 1, offset: "parentNode", len: 0, typ: NTI704643088, name: "parentNode", sons: null}, -{kind: 1, offset: "content", len: 0, typ: NTI704643088, name: "content", sons: null}, -{kind: 1, offset: "previousSibling", len: 0, typ: NTI704643088, name: "previousSibling", sons: null}, -{kind: 1, offset: "ownerDocument", len: 0, typ: NTI704643089, name: "ownerDocument", sons: null}, -{kind: 1, offset: "innerHTML", len: 0, typ: NTI33554450, name: "innerHTML", sons: null}, -{kind: 1, offset: "outerHTML", len: 0, typ: NTI33554450, name: "outerHTML", sons: null}, -{kind: 1, offset: "innerText", len: 0, typ: NTI33554450, name: "innerText", sons: null}, -{kind: 1, offset: "textContent", len: 0, typ: NTI33554450, name: "textContent", sons: null}, -{kind: 1, offset: "style", len: 0, typ: NTI704643102, name: "style", sons: null}, -{kind: 1, offset: "baseURI", len: 0, typ: NTI33554450, name: "baseURI", sons: null}, -{kind: 1, offset: "parentElement", len: 0, typ: NTI704643090, name: "parentElement", sons: null}, -{kind: 1, offset: "isConnected", len: 0, typ: NTI33554466, name: "isConnected", sons: null}]}; -NTI704643186.node = NNI704643186; -var NNI704643141 = {kind: 2, len: 24, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "onabort", len: 0, typ: NTI704643142, name: "onabort", sons: null}, -{kind: 1, offset: "onblur", len: 0, typ: NTI704643143, name: "onblur", sons: null}, -{kind: 1, offset: "onchange", len: 0, typ: NTI704643144, name: "onchange", sons: null}, -{kind: 1, offset: "onclick", len: 0, typ: NTI704643145, name: "onclick", sons: null}, -{kind: 1, offset: "ondblclick", len: 0, typ: NTI704643146, name: "ondblclick", sons: null}, -{kind: 1, offset: "onerror", len: 0, typ: NTI704643147, name: "onerror", sons: null}, -{kind: 1, offset: "onfocus", len: 0, typ: NTI704643148, name: "onfocus", sons: null}, -{kind: 1, offset: "onkeydown", len: 0, typ: NTI704643149, name: "onkeydown", sons: null}, -{kind: 1, offset: "onkeypress", len: 0, typ: NTI704643150, name: "onkeypress", sons: null}, -{kind: 1, offset: "onkeyup", len: 0, typ: NTI704643151, name: "onkeyup", sons: null}, -{kind: 1, offset: "onload", len: 0, typ: NTI704643152, name: "onload", sons: null}, -{kind: 1, offset: "onmousedown", len: 0, typ: NTI704643153, name: "onmousedown", sons: null}, -{kind: 1, offset: "onmousemove", len: 0, typ: NTI704643154, name: "onmousemove", sons: null}, -{kind: 1, offset: "onmouseout", len: 0, typ: NTI704643155, name: "onmouseout", sons: null}, -{kind: 1, offset: "onmouseover", len: 0, typ: NTI704643156, name: "onmouseover", sons: null}, -{kind: 1, offset: "onmouseup", len: 0, typ: NTI704643157, name: "onmouseup", sons: null}, -{kind: 1, offset: "onreset", len: 0, typ: NTI704643158, name: "onreset", sons: null}, -{kind: 1, offset: "onselect", len: 0, typ: NTI704643159, name: "onselect", sons: null}, -{kind: 1, offset: "onstorage", len: 0, typ: NTI704643160, name: "onstorage", sons: null}, -{kind: 1, offset: "onsubmit", len: 0, typ: NTI704643161, name: "onsubmit", sons: null}, -{kind: 1, offset: "onunload", len: 0, typ: NTI704643162, name: "onunload", sons: null}, -{kind: 1, offset: "onloadstart", len: 0, typ: NTI704643163, name: "onloadstart", sons: null}, -{kind: 1, offset: "onprogress", len: 0, typ: NTI704643164, name: "onprogress", sons: null}, -{kind: 1, offset: "onloadend", len: 0, typ: NTI704643165, name: "onloadend", sons: null}]}; -NTI704643141.node = NNI704643141; -NTI704643141.base = NTI33555173; -NTI704643186.base = NTI704643141; -NTI704643197.base = NTI704643186; -NTI704643090.base = NTI704643197; -NTI1459617821.base = NTI1459617857; -var NNI1459617824 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "seconds", len: 0, typ: NTI33554439, name: "seconds", sons: null}, -{kind: 1, offset: "nanosecond", len: 0, typ: NTI1459617821, name: "nanosecond", sons: null}]}; -NTI1459617824.node = NNI1459617824; -var NNI1426063368 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "body", len: 0, typ: NTI1442840649, name: "body", sons: null}, -{kind: 1, offset: "imgSize", len: 0, typ: NTI1677721603, name: "imgSize", sons: null}]}; -NTI1426063368.node = NNI1426063368; -var NNI1426063364 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "body", len: 0, typ: NTI1442840649, name: "body", sons: null}, -{kind: 1, offset: "dragging", len: 0, typ: NTI33554466, name: "dragging", sons: null}, -{kind: 1, offset: "dragOffset", len: 0, typ: NTI33554445, name: "dragOffset", sons: null}, -{kind: 1, offset: "imgSize", len: 0, typ: NTI1677721603, name: "imgSize", sons: null}]}; -NTI1426063364.node = NNI1426063364; -NTI1426063371.base = NTI1442840649; -NTI1426063372.base = NTI33554435; -var NNI1426063367 = {kind: 2, len: 15, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "platform", len: 0, typ: NTI1426063368, name: "platform", sons: null}, -{kind: 1, offset: "base", len: 0, typ: NTI1426063364, name: "base", sons: null}, -{kind: 1, offset: "body", len: 0, typ: NTI1442840649, name: "body", sons: null}, -{kind: 1, offset: "pivot", len: 0, typ: NTI1677721603, name: "pivot", sons: null}, -{kind: 1, offset: "dragOffset", len: 0, typ: NTI33554445, name: "dragOffset", sons: null}, -{kind: 1, offset: "bullets", len: 0, typ: NTI1426063371, name: "bullets", sons: null}, -{kind: 1, offset: "bulletOptions", len: 0, typ: NTI1442840649, name: "bulletOptions", sons: null}, -{kind: 1, offset: "flyingBullets", len: 0, typ: NTI1426063372, name: "flyingBullets", sons: null}, -{kind: 1, offset: "bulletRadius", len: 0, typ: NTI33554435, name: "bulletRadius", sons: null}, -{kind: 1, offset: "bulletsLimit", len: 0, typ: NTI33554435, name: "bulletsLimit", sons: null}, -{kind: 1, offset: "dragging", len: 0, typ: NTI33554466, name: "dragging", sons: null}, -{kind: 1, offset: "imgSize", len: 0, typ: NTI1677721603, name: "imgSize", sons: null}, -{kind: 1, offset: "showVxArrow", len: 0, typ: NTI33554466, name: "showVxArrow", sons: null}, -{kind: 1, offset: "showVyArrow", len: 0, typ: NTI33554466, name: "showVyArrow", sons: null}, -{kind: 1, offset: "showVArrow", len: 0, typ: NTI33554466, name: "showVArrow", sons: null}]}; -NTI1426063367.node = NNI1426063367; -NTI1426063373.base = NTI1442840649; -NTI1426063374.base = NTI1426063366; -NTI1426063376.base = NTI1426063380; -NTI1426063382.base = NTI33555150; -var NNI1728053251 = {kind: 2, offset: 0, typ: null, name: null, len: 2, sons: {"0": {kind: 1, offset: 0, typ: NTI1728053251, name: "English", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1728053251, name: "Espa\xC3\xB1ol", len: 0, sons: null}}}; -NTI1728053251.node = NNI1728053251; -var NNI1426063369 = {kind: 2, len: 29, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "engine", len: 0, typ: NTI1442840649, name: "engine", sons: null}, -{kind: 1, offset: "render", len: 0, typ: NTI1442840649, name: "render", sons: null}, -{kind: 1, offset: "runner", len: 0, typ: NTI1442840649, name: "runner", sons: null}, -{kind: 1, offset: "canvas", len: 0, typ: NTI704643090, name: "canvas", sons: null}, -{kind: 1, offset: "canvasSize", len: 0, typ: NTI1677721603, name: "canvasSize", sons: null}, -{kind: 1, offset: "paused", len: 0, typ: NTI33554466, name: "paused", sons: null}, -{kind: 1, offset: "frozen", len: 0, typ: NTI33554466, name: "frozen", sons: null}, -{kind: 1, offset: "mouse", len: 0, typ: NTI1442840649, name: "mouse", sons: null}, -{kind: 1, offset: "mouseCons", len: 0, typ: NTI1442840649, name: "mouseCons", sons: null}, -{kind: 1, offset: "timeAtClick", len: 0, typ: NTI1459617824, name: "timeAtClick", sons: null}, -{kind: 1, offset: "canon", len: 0, typ: NTI1426063367, name: "canon", sons: null}, -{kind: 1, offset: "ground", len: 0, typ: NTI1442840649, name: "ground", sons: null}, -{kind: 1, offset: "blocks", len: 0, typ: NTI1426063373, name: "blocks", sons: null}, -{kind: 1, offset: "trajectories", len: 0, typ: NTI1426063374, name: "trajectories", sons: null}, -{kind: 1, offset: "currentTrajectory", len: 0, typ: NTI33554435, name: "currentTrajectory", sons: null}, -{kind: 1, offset: "draggingPoint", len: 0, typ: NTI33554466, name: "draggingPoint", sons: null}, -{kind: 1, offset: "followBullet", len: 0, typ: NTI33554466, name: "followBullet", sons: null}, -{kind: 1, offset: "onMousedown", len: 0, typ: NTI1426063375, name: "onMousedown", sons: null}, -{kind: 1, offset: "onMouseup", len: 0, typ: NTI1426063375, name: "onMouseup", sons: null}, -{kind: 1, offset: "onMousemove", len: 0, typ: NTI1426063375, name: "onMousemove", sons: null}, -{kind: 1, offset: "onMouseleave", len: 0, typ: NTI1426063375, name: "onMouseleave", sons: null}, -{kind: 1, offset: "onWheel", len: 0, typ: NTI1426063375, name: "onWheel", sons: null}, -{kind: 1, offset: "floatPrecision", len: 0, typ: NTI1426063376, name: "floatPrecision", sons: null}, -{kind: 1, offset: "startedRendering", len: 0, typ: NTI33554466, name: "startedRendering", sons: null}, -{kind: 1, offset: "studentMode", len: 0, typ: NTI33554466, name: "studentMode", sons: null}, -{kind: 1, offset: "showFormulaResults", len: 0, typ: NTI33554466, name: "showFormulaResults", sons: null}, -{kind: 1, offset: "showFormulaProc", len: 0, typ: NTI33554466, name: "showFormulaProc", sons: null}, -{kind: 1, offset: "lastUsed", len: 0, typ: NTI1426063382, name: "lastUsed", sons: null}, -{kind: 1, offset: "lang", len: 0, typ: NTI1728053251, name: "lang", sons: null}]}; -NTI1426063369.node = NNI1426063369; -var NNI1426063439 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI33554445, name: "a", sons: null}, -{kind: 1, offset: "b", len: 0, typ: NTI33554445, name: "b", sons: null}]}; -NTI1426063439.node = NNI1426063439; -var NNI134217742 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217742.node = NNI134217742; -NTI134217742.base = NTI134217741; -var NNI922746949 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI33554435, name: "a", sons: null}, -{kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; -NTI922746949.node = NNI922746949; -NTI1426065073.base = NTI33554447; -var NNI1073741909 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI1073741903, name: "a", sons: null}, -{kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; -NTI1073741909.node = NNI1073741909; -var NNI1426065064 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1426065065, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554447, name: "Field1", sons: null}]}; -NTI1426065064.node = NNI1426065064; -var NNI134217746 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217746.node = NNI134217746; -var NNI33555179 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555179.node = NNI33555179; -NTI33555179.base = NTI33555177; -NTI134217746.base = NTI33555179; -var NNI1426064493 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554449, name: "Field1", sons: null}]}; -NTI1426064493.node = NNI1426064493; -var NNI1426064612 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554466, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI1426063365, name: "Field1", sons: null}]}; -NTI1426064612.node = NNI1426064612; -var NNI1426064688 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554449, name: "Field1", sons: null}]}; -NTI1426064688.node = NNI1426064688; -var NNI1426063959 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554449, name: "Field1", sons: null}]}; -NTI1426063959.node = NNI1426063959; -var NNI1677721740 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554445, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554445, name: "Field1", sons: null}]}; -NTI1677721740.node = NNI1677721740; -NTI1426068752.base = NTI1442840649; -var NNI1459617826 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "seconds", len: 0, typ: NTI33554439, name: "seconds", sons: null}, -{kind: 1, offset: "nanosecond", len: 0, typ: NTI1459617821, name: "nanosecond", sons: null}]}; -NTI1459617826.node = NNI1459617826; -var NNI134217753 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI134217753.node = NNI134217753; -NTI134217753.base = NTI33555178; -var NNI1426066550 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554466, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI1677721603, name: "Field1", sons: null}]}; -NTI1426066550.node = NNI1426066550; -NTI1426067175.base = NTI1442840649; -var NNI721420295 = {kind: 2, offset: 0, typ: null, name: null, len: 6, sons: {"0": {kind: 1, offset: 0, typ: NTI721420295, name: "pkReplace", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI721420295, name: "pkRemove", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI721420295, name: "pkAppend", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI721420295, name: "pkInsertBefore", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI721420295, name: "pkDetach", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI721420295, name: "pkSame", len: 0, sons: null}}}; -NTI721420295.node = NNI721420295; -var NNI754974723 = {kind: 2, offset: 0, typ: null, name: null, len: 213, sons: {"0": {kind: 1, offset: 0, typ: NTI754974723, name: "#text", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI754974723, name: "#int", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI754974723, name: "#bool", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI754974723, name: "#vthunk", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI754974723, name: "#dthunk", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI754974723, name: "#component", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI754974723, name: "#verbatim", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI754974723, name: "html", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI754974723, name: "head", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI754974723, name: "title", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI754974723, name: "base", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI754974723, name: "link", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI754974723, name: "meta", len: 0, sons: null}, -"13": {kind: 1, offset: 13, typ: NTI754974723, name: "style", len: 0, sons: null}, -"14": {kind: 1, offset: 14, typ: NTI754974723, name: "script", len: 0, sons: null}, -"15": {kind: 1, offset: 15, typ: NTI754974723, name: "noscript", len: 0, sons: null}, -"16": {kind: 1, offset: 16, typ: NTI754974723, name: "body", len: 0, sons: null}, -"17": {kind: 1, offset: 17, typ: NTI754974723, name: "section", len: 0, sons: null}, -"18": {kind: 1, offset: 18, typ: NTI754974723, name: "nav", len: 0, sons: null}, -"19": {kind: 1, offset: 19, typ: NTI754974723, name: "article", len: 0, sons: null}, -"20": {kind: 1, offset: 20, typ: NTI754974723, name: "aside", len: 0, sons: null}, -"21": {kind: 1, offset: 21, typ: NTI754974723, name: "h1", len: 0, sons: null}, -"22": {kind: 1, offset: 22, typ: NTI754974723, name: "h2", len: 0, sons: null}, -"23": {kind: 1, offset: 23, typ: NTI754974723, name: "h3", len: 0, sons: null}, -"24": {kind: 1, offset: 24, typ: NTI754974723, name: "h4", len: 0, sons: null}, -"25": {kind: 1, offset: 25, typ: NTI754974723, name: "h5", len: 0, sons: null}, -"26": {kind: 1, offset: 26, typ: NTI754974723, name: "h6", len: 0, sons: null}, -"27": {kind: 1, offset: 27, typ: NTI754974723, name: "hgroup", len: 0, sons: null}, -"28": {kind: 1, offset: 28, typ: NTI754974723, name: "header", len: 0, sons: null}, -"29": {kind: 1, offset: 29, typ: NTI754974723, name: "footer", len: 0, sons: null}, -"30": {kind: 1, offset: 30, typ: NTI754974723, name: "address", len: 0, sons: null}, -"31": {kind: 1, offset: 31, typ: NTI754974723, name: "main", len: 0, sons: null}, -"32": {kind: 1, offset: 32, typ: NTI754974723, name: "p", len: 0, sons: null}, -"33": {kind: 1, offset: 33, typ: NTI754974723, name: "hr", len: 0, sons: null}, -"34": {kind: 1, offset: 34, typ: NTI754974723, name: "pre", len: 0, sons: null}, -"35": {kind: 1, offset: 35, typ: NTI754974723, name: "blockquote", len: 0, sons: null}, -"36": {kind: 1, offset: 36, typ: NTI754974723, name: "ol", len: 0, sons: null}, -"37": {kind: 1, offset: 37, typ: NTI754974723, name: "ul", len: 0, sons: null}, -"38": {kind: 1, offset: 38, typ: NTI754974723, name: "li", len: 0, sons: null}, -"39": {kind: 1, offset: 39, typ: NTI754974723, name: "dl", len: 0, sons: null}, -"40": {kind: 1, offset: 40, typ: NTI754974723, name: "dt", len: 0, sons: null}, -"41": {kind: 1, offset: 41, typ: NTI754974723, name: "dd", len: 0, sons: null}, -"42": {kind: 1, offset: 42, typ: NTI754974723, name: "figure", len: 0, sons: null}, -"43": {kind: 1, offset: 43, typ: NTI754974723, name: "figcaption", len: 0, sons: null}, -"44": {kind: 1, offset: 44, typ: NTI754974723, name: "div", len: 0, sons: null}, -"45": {kind: 1, offset: 45, typ: NTI754974723, name: "a", len: 0, sons: null}, -"46": {kind: 1, offset: 46, typ: NTI754974723, name: "em", len: 0, sons: null}, -"47": {kind: 1, offset: 47, typ: NTI754974723, name: "strong", len: 0, sons: null}, -"48": {kind: 1, offset: 48, typ: NTI754974723, name: "small", len: 0, sons: null}, -"49": {kind: 1, offset: 49, typ: NTI754974723, name: "s", len: 0, sons: null}, -"50": {kind: 1, offset: 50, typ: NTI754974723, name: "cite", len: 0, sons: null}, -"51": {kind: 1, offset: 51, typ: NTI754974723, name: "quote", len: 0, sons: null}, -"52": {kind: 1, offset: 52, typ: NTI754974723, name: "dfn", len: 0, sons: null}, -"53": {kind: 1, offset: 53, typ: NTI754974723, name: "abbr", len: 0, sons: null}, -"54": {kind: 1, offset: 54, typ: NTI754974723, name: "data", len: 0, sons: null}, -"55": {kind: 1, offset: 55, typ: NTI754974723, name: "time", len: 0, sons: null}, -"56": {kind: 1, offset: 56, typ: NTI754974723, name: "code", len: 0, sons: null}, -"57": {kind: 1, offset: 57, typ: NTI754974723, name: "var", len: 0, sons: null}, -"58": {kind: 1, offset: 58, typ: NTI754974723, name: "samp", len: 0, sons: null}, -"59": {kind: 1, offset: 59, typ: NTI754974723, name: "kbd", len: 0, sons: null}, -"60": {kind: 1, offset: 60, typ: NTI754974723, name: "sub", len: 0, sons: null}, -"61": {kind: 1, offset: 61, typ: NTI754974723, name: "sup", len: 0, sons: null}, -"62": {kind: 1, offset: 62, typ: NTI754974723, name: "i", len: 0, sons: null}, -"63": {kind: 1, offset: 63, typ: NTI754974723, name: "b", len: 0, sons: null}, -"64": {kind: 1, offset: 64, typ: NTI754974723, name: "u", len: 0, sons: null}, -"65": {kind: 1, offset: 65, typ: NTI754974723, name: "mark", len: 0, sons: null}, -"66": {kind: 1, offset: 66, typ: NTI754974723, name: "ruby", len: 0, sons: null}, -"67": {kind: 1, offset: 67, typ: NTI754974723, name: "rt", len: 0, sons: null}, -"68": {kind: 1, offset: 68, typ: NTI754974723, name: "rp", len: 0, sons: null}, -"69": {kind: 1, offset: 69, typ: NTI754974723, name: "bdi", len: 0, sons: null}, -"70": {kind: 1, offset: 70, typ: NTI754974723, name: "dbo", len: 0, sons: null}, -"71": {kind: 1, offset: 71, typ: NTI754974723, name: "span", len: 0, sons: null}, -"72": {kind: 1, offset: 72, typ: NTI754974723, name: "br", len: 0, sons: null}, -"73": {kind: 1, offset: 73, typ: NTI754974723, name: "wbr", len: 0, sons: null}, -"74": {kind: 1, offset: 74, typ: NTI754974723, name: "ins", len: 0, sons: null}, -"75": {kind: 1, offset: 75, typ: NTI754974723, name: "del", len: 0, sons: null}, -"76": {kind: 1, offset: 76, typ: NTI754974723, name: "img", len: 0, sons: null}, -"77": {kind: 1, offset: 77, typ: NTI754974723, name: "iframe", len: 0, sons: null}, -"78": {kind: 1, offset: 78, typ: NTI754974723, name: "embed", len: 0, sons: null}, -"79": {kind: 1, offset: 79, typ: NTI754974723, name: "object", len: 0, sons: null}, -"80": {kind: 1, offset: 80, typ: NTI754974723, name: "param", len: 0, sons: null}, -"81": {kind: 1, offset: 81, typ: NTI754974723, name: "video", len: 0, sons: null}, -"82": {kind: 1, offset: 82, typ: NTI754974723, name: "audio", len: 0, sons: null}, -"83": {kind: 1, offset: 83, typ: NTI754974723, name: "source", len: 0, sons: null}, -"84": {kind: 1, offset: 84, typ: NTI754974723, name: "track", len: 0, sons: null}, -"85": {kind: 1, offset: 85, typ: NTI754974723, name: "canvas", len: 0, sons: null}, -"86": {kind: 1, offset: 86, typ: NTI754974723, name: "map", len: 0, sons: null}, -"87": {kind: 1, offset: 87, typ: NTI754974723, name: "area", len: 0, sons: null}, -"88": {kind: 1, offset: 88, typ: NTI754974723, name: "animate", len: 0, sons: null}, -"89": {kind: 1, offset: 89, typ: NTI754974723, name: "animateMotion", len: 0, sons: null}, -"90": {kind: 1, offset: 90, typ: NTI754974723, name: "animateTransform", len: 0, sons: null}, -"91": {kind: 1, offset: 91, typ: NTI754974723, name: "circle", len: 0, sons: null}, -"92": {kind: 1, offset: 92, typ: NTI754974723, name: "clipPath", len: 0, sons: null}, -"93": {kind: 1, offset: 93, typ: NTI754974723, name: "defs", len: 0, sons: null}, -"94": {kind: 1, offset: 94, typ: NTI754974723, name: "desc", len: 0, sons: null}, -"95": {kind: 1, offset: 95, typ: NTI754974723, name: "discard", len: 0, sons: null}, -"96": {kind: 1, offset: 96, typ: NTI754974723, name: "ellipse", len: 0, sons: null}, -"97": {kind: 1, offset: 97, typ: NTI754974723, name: "feBlend", len: 0, sons: null}, -"98": {kind: 1, offset: 98, typ: NTI754974723, name: "feColorMatrix", len: 0, sons: null}, -"99": {kind: 1, offset: 99, typ: NTI754974723, name: "feComponentTransfer", len: 0, sons: null}, -"100": {kind: 1, offset: 100, typ: NTI754974723, name: "feComposite", len: 0, sons: null}, -"101": {kind: 1, offset: 101, typ: NTI754974723, name: "feConvolveMatrix", len: 0, sons: null}, -"102": {kind: 1, offset: 102, typ: NTI754974723, name: "feDiffuseLighting", len: 0, sons: null}, -"103": {kind: 1, offset: 103, typ: NTI754974723, name: "feDisplacementMap", len: 0, sons: null}, -"104": {kind: 1, offset: 104, typ: NTI754974723, name: "feDistantLight", len: 0, sons: null}, -"105": {kind: 1, offset: 105, typ: NTI754974723, name: "feDropShadow", len: 0, sons: null}, -"106": {kind: 1, offset: 106, typ: NTI754974723, name: "feFlood", len: 0, sons: null}, -"107": {kind: 1, offset: 107, typ: NTI754974723, name: "feFuncA", len: 0, sons: null}, -"108": {kind: 1, offset: 108, typ: NTI754974723, name: "feFuncB", len: 0, sons: null}, -"109": {kind: 1, offset: 109, typ: NTI754974723, name: "feFuncG", len: 0, sons: null}, -"110": {kind: 1, offset: 110, typ: NTI754974723, name: "feFuncR", len: 0, sons: null}, -"111": {kind: 1, offset: 111, typ: NTI754974723, name: "feGaussianBlur", len: 0, sons: null}, -"112": {kind: 1, offset: 112, typ: NTI754974723, name: "feImage", len: 0, sons: null}, -"113": {kind: 1, offset: 113, typ: NTI754974723, name: "feMerge", len: 0, sons: null}, -"114": {kind: 1, offset: 114, typ: NTI754974723, name: "feMergeNode", len: 0, sons: null}, -"115": {kind: 1, offset: 115, typ: NTI754974723, name: "feMorphology", len: 0, sons: null}, -"116": {kind: 1, offset: 116, typ: NTI754974723, name: "feOffset", len: 0, sons: null}, -"117": {kind: 1, offset: 117, typ: NTI754974723, name: "fePointLight", len: 0, sons: null}, -"118": {kind: 1, offset: 118, typ: NTI754974723, name: "feSpecularLighting", len: 0, sons: null}, -"119": {kind: 1, offset: 119, typ: NTI754974723, name: "feSpotLight", len: 0, sons: null}, -"120": {kind: 1, offset: 120, typ: NTI754974723, name: "feTile", len: 0, sons: null}, -"121": {kind: 1, offset: 121, typ: NTI754974723, name: "feTurbulence", len: 0, sons: null}, -"122": {kind: 1, offset: 122, typ: NTI754974723, name: "filter", len: 0, sons: null}, -"123": {kind: 1, offset: 123, typ: NTI754974723, name: "foreignObject", len: 0, sons: null}, -"124": {kind: 1, offset: 124, typ: NTI754974723, name: "g", len: 0, sons: null}, -"125": {kind: 1, offset: 125, typ: NTI754974723, name: "image", len: 0, sons: null}, -"126": {kind: 1, offset: 126, typ: NTI754974723, name: "line", len: 0, sons: null}, -"127": {kind: 1, offset: 127, typ: NTI754974723, name: "linearGradient", len: 0, sons: null}, -"128": {kind: 1, offset: 128, typ: NTI754974723, name: "marker", len: 0, sons: null}, -"129": {kind: 1, offset: 129, typ: NTI754974723, name: "mask", len: 0, sons: null}, -"130": {kind: 1, offset: 130, typ: NTI754974723, name: "metadata", len: 0, sons: null}, -"131": {kind: 1, offset: 131, typ: NTI754974723, name: "mpath", len: 0, sons: null}, -"132": {kind: 1, offset: 132, typ: NTI754974723, name: "path", len: 0, sons: null}, -"133": {kind: 1, offset: 133, typ: NTI754974723, name: "pattern", len: 0, sons: null}, -"134": {kind: 1, offset: 134, typ: NTI754974723, name: "polygon", len: 0, sons: null}, -"135": {kind: 1, offset: 135, typ: NTI754974723, name: "polyline", len: 0, sons: null}, -"136": {kind: 1, offset: 136, typ: NTI754974723, name: "radialGradient", len: 0, sons: null}, -"137": {kind: 1, offset: 137, typ: NTI754974723, name: "rect", len: 0, sons: null}, -"138": {kind: 1, offset: 138, typ: NTI754974723, name: "set", len: 0, sons: null}, -"139": {kind: 1, offset: 139, typ: NTI754974723, name: "stop", len: 0, sons: null}, -"140": {kind: 1, offset: 140, typ: NTI754974723, name: "svg", len: 0, sons: null}, -"141": {kind: 1, offset: 141, typ: NTI754974723, name: "switch", len: 0, sons: null}, -"142": {kind: 1, offset: 142, typ: NTI754974723, name: "symbol", len: 0, sons: null}, -"143": {kind: 1, offset: 143, typ: NTI754974723, name: "text", len: 0, sons: null}, -"144": {kind: 1, offset: 144, typ: NTI754974723, name: "textPath", len: 0, sons: null}, -"145": {kind: 1, offset: 145, typ: NTI754974723, name: "tspan", len: 0, sons: null}, -"146": {kind: 1, offset: 146, typ: NTI754974723, name: "unknown", len: 0, sons: null}, -"147": {kind: 1, offset: 147, typ: NTI754974723, name: "use", len: 0, sons: null}, -"148": {kind: 1, offset: 148, typ: NTI754974723, name: "view", len: 0, sons: null}, -"149": {kind: 1, offset: 149, typ: NTI754974723, name: "maction", len: 0, sons: null}, -"150": {kind: 1, offset: 150, typ: NTI754974723, name: "math", len: 0, sons: null}, -"151": {kind: 1, offset: 151, typ: NTI754974723, name: "menclose", len: 0, sons: null}, -"152": {kind: 1, offset: 152, typ: NTI754974723, name: "merror", len: 0, sons: null}, -"153": {kind: 1, offset: 153, typ: NTI754974723, name: "mfenced", len: 0, sons: null}, -"154": {kind: 1, offset: 154, typ: NTI754974723, name: "mfrac", len: 0, sons: null}, -"155": {kind: 1, offset: 155, typ: NTI754974723, name: "mglyph", len: 0, sons: null}, -"156": {kind: 1, offset: 156, typ: NTI754974723, name: "mi", len: 0, sons: null}, -"157": {kind: 1, offset: 157, typ: NTI754974723, name: "mlabeledtr", len: 0, sons: null}, -"158": {kind: 1, offset: 158, typ: NTI754974723, name: "mmultiscripts", len: 0, sons: null}, -"159": {kind: 1, offset: 159, typ: NTI754974723, name: "mn", len: 0, sons: null}, -"160": {kind: 1, offset: 160, typ: NTI754974723, name: "mo", len: 0, sons: null}, -"161": {kind: 1, offset: 161, typ: NTI754974723, name: "mover", len: 0, sons: null}, -"162": {kind: 1, offset: 162, typ: NTI754974723, name: "mpadded", len: 0, sons: null}, -"163": {kind: 1, offset: 163, typ: NTI754974723, name: "mphantom", len: 0, sons: null}, -"164": {kind: 1, offset: 164, typ: NTI754974723, name: "mroot", len: 0, sons: null}, -"165": {kind: 1, offset: 165, typ: NTI754974723, name: "mrow", len: 0, sons: null}, -"166": {kind: 1, offset: 166, typ: NTI754974723, name: "ms", len: 0, sons: null}, -"167": {kind: 1, offset: 167, typ: NTI754974723, name: "mspace", len: 0, sons: null}, -"168": {kind: 1, offset: 168, typ: NTI754974723, name: "msqrt", len: 0, sons: null}, -"169": {kind: 1, offset: 169, typ: NTI754974723, name: "mstyle", len: 0, sons: null}, -"170": {kind: 1, offset: 170, typ: NTI754974723, name: "msub", len: 0, sons: null}, -"171": {kind: 1, offset: 171, typ: NTI754974723, name: "msubsup", len: 0, sons: null}, -"172": {kind: 1, offset: 172, typ: NTI754974723, name: "msup", len: 0, sons: null}, -"173": {kind: 1, offset: 173, typ: NTI754974723, name: "mtable", len: 0, sons: null}, -"174": {kind: 1, offset: 174, typ: NTI754974723, name: "mtd", len: 0, sons: null}, -"175": {kind: 1, offset: 175, typ: NTI754974723, name: "mtext", len: 0, sons: null}, -"176": {kind: 1, offset: 176, typ: NTI754974723, name: "mtr", len: 0, sons: null}, -"177": {kind: 1, offset: 177, typ: NTI754974723, name: "munder", len: 0, sons: null}, -"178": {kind: 1, offset: 178, typ: NTI754974723, name: "munderover", len: 0, sons: null}, -"179": {kind: 1, offset: 179, typ: NTI754974723, name: "semantics", len: 0, sons: null}, -"180": {kind: 1, offset: 180, typ: NTI754974723, name: "table", len: 0, sons: null}, -"181": {kind: 1, offset: 181, typ: NTI754974723, name: "caption", len: 0, sons: null}, -"182": {kind: 1, offset: 182, typ: NTI754974723, name: "colgroup", len: 0, sons: null}, -"183": {kind: 1, offset: 183, typ: NTI754974723, name: "col", len: 0, sons: null}, -"184": {kind: 1, offset: 184, typ: NTI754974723, name: "tbody", len: 0, sons: null}, -"185": {kind: 1, offset: 185, typ: NTI754974723, name: "thead", len: 0, sons: null}, -"186": {kind: 1, offset: 186, typ: NTI754974723, name: "tfoot", len: 0, sons: null}, -"187": {kind: 1, offset: 187, typ: NTI754974723, name: "tr", len: 0, sons: null}, -"188": {kind: 1, offset: 188, typ: NTI754974723, name: "td", len: 0, sons: null}, -"189": {kind: 1, offset: 189, typ: NTI754974723, name: "th", len: 0, sons: null}, -"190": {kind: 1, offset: 190, typ: NTI754974723, name: "form", len: 0, sons: null}, -"191": {kind: 1, offset: 191, typ: NTI754974723, name: "fieldset", len: 0, sons: null}, -"192": {kind: 1, offset: 192, typ: NTI754974723, name: "legend", len: 0, sons: null}, -"193": {kind: 1, offset: 193, typ: NTI754974723, name: "label", len: 0, sons: null}, -"194": {kind: 1, offset: 194, typ: NTI754974723, name: "input", len: 0, sons: null}, -"195": {kind: 1, offset: 195, typ: NTI754974723, name: "button", len: 0, sons: null}, -"196": {kind: 1, offset: 196, typ: NTI754974723, name: "select", len: 0, sons: null}, -"197": {kind: 1, offset: 197, typ: NTI754974723, name: "datalist", len: 0, sons: null}, -"198": {kind: 1, offset: 198, typ: NTI754974723, name: "optgroup", len: 0, sons: null}, -"199": {kind: 1, offset: 199, typ: NTI754974723, name: "option", len: 0, sons: null}, -"200": {kind: 1, offset: 200, typ: NTI754974723, name: "textarea", len: 0, sons: null}, -"201": {kind: 1, offset: 201, typ: NTI754974723, name: "keygen", len: 0, sons: null}, -"202": {kind: 1, offset: 202, typ: NTI754974723, name: "output", len: 0, sons: null}, -"203": {kind: 1, offset: 203, typ: NTI754974723, name: "progress", len: 0, sons: null}, -"204": {kind: 1, offset: 204, typ: NTI754974723, name: "meter", len: 0, sons: null}, -"205": {kind: 1, offset: 205, typ: NTI754974723, name: "details", len: 0, sons: null}, -"206": {kind: 1, offset: 206, typ: NTI754974723, name: "summary", len: 0, sons: null}, -"207": {kind: 1, offset: 207, typ: NTI754974723, name: "command", len: 0, sons: null}, -"208": {kind: 1, offset: 208, typ: NTI754974723, name: "menu", len: 0, sons: null}, -"209": {kind: 1, offset: 209, typ: NTI754974723, name: "bdo", len: 0, sons: null}, -"210": {kind: 1, offset: 210, typ: NTI754974723, name: "dialog", len: 0, sons: null}, -"211": {kind: 1, offset: 211, typ: NTI754974723, name: "slot", len: 0, sons: null}, -"212": {kind: 1, offset: 212, typ: NTI754974723, name: "template", len: 0, sons: null}}}; -NTI754974723.node = NNI754974723; -NTI754974817.base = NTI754974813; -NTI754974818.base = NTI33554450; -var NNI754974728 = {kind: 2, offset: 0, typ: null, name: null, len: 37, sons: {"0": {kind: 1, offset: 0, typ: NTI754974728, name: "onclick", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI754974728, name: "oncontextmenu", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI754974728, name: "ondblclick", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI754974728, name: "onkeyup", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI754974728, name: "onkeydown", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI754974728, name: "onkeypressed", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI754974728, name: "onfocus", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI754974728, name: "onblur", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI754974728, name: "onchange", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI754974728, name: "onscroll", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI754974728, name: "onmousedown", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI754974728, name: "onmouseenter", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI754974728, name: "onmouseleave", len: 0, sons: null}, -"13": {kind: 1, offset: 13, typ: NTI754974728, name: "onmousemove", len: 0, sons: null}, -"14": {kind: 1, offset: 14, typ: NTI754974728, name: "onmouseout", len: 0, sons: null}, -"15": {kind: 1, offset: 15, typ: NTI754974728, name: "onmouseover", len: 0, sons: null}, -"16": {kind: 1, offset: 16, typ: NTI754974728, name: "onmouseup", len: 0, sons: null}, -"17": {kind: 1, offset: 17, typ: NTI754974728, name: "ondrag", len: 0, sons: null}, -"18": {kind: 1, offset: 18, typ: NTI754974728, name: "ondragend", len: 0, sons: null}, -"19": {kind: 1, offset: 19, typ: NTI754974728, name: "ondragenter", len: 0, sons: null}, -"20": {kind: 1, offset: 20, typ: NTI754974728, name: "ondragleave", len: 0, sons: null}, -"21": {kind: 1, offset: 21, typ: NTI754974728, name: "ondragover", len: 0, sons: null}, -"22": {kind: 1, offset: 22, typ: NTI754974728, name: "ondragstart", len: 0, sons: null}, -"23": {kind: 1, offset: 23, typ: NTI754974728, name: "ondrop", len: 0, sons: null}, -"24": {kind: 1, offset: 24, typ: NTI754974728, name: "onsubmit", len: 0, sons: null}, -"25": {kind: 1, offset: 25, typ: NTI754974728, name: "oninput", len: 0, sons: null}, -"26": {kind: 1, offset: 26, typ: NTI754974728, name: "onanimationstart", len: 0, sons: null}, -"27": {kind: 1, offset: 27, typ: NTI754974728, name: "onanimationend", len: 0, sons: null}, -"28": {kind: 1, offset: 28, typ: NTI754974728, name: "onanimationiteration", len: 0, sons: null}, -"29": {kind: 1, offset: 29, typ: NTI754974728, name: "onkeyupenter", len: 0, sons: null}, -"30": {kind: 1, offset: 30, typ: NTI754974728, name: "onkeyuplater", len: 0, sons: null}, -"31": {kind: 1, offset: 31, typ: NTI754974728, name: "onload", len: 0, sons: null}, -"32": {kind: 1, offset: 32, typ: NTI754974728, name: "ontransitioncancel", len: 0, sons: null}, -"33": {kind: 1, offset: 33, typ: NTI754974728, name: "ontransitionend", len: 0, sons: null}, -"34": {kind: 1, offset: 34, typ: NTI754974728, name: "ontransitionrun", len: 0, sons: null}, -"35": {kind: 1, offset: 35, typ: NTI754974728, name: "ontransitionstart", len: 0, sons: null}, -"36": {kind: 1, offset: 36, typ: NTI754974728, name: "onwheel", len: 0, sons: null}}}; -NTI754974728.node = NNI754974728; -var NNI754974815 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI754974728, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI754974825, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI754974826, name: "Field2", sons: null}]}; -NTI754974815.node = NNI754974815; -NTI754974811.base = NTI754974815; -var NNI805306404 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI805306404.node = NNI805306404; -NTI805306405.base = NTI805306404; -var NNI754974816 = {kind: 2, len: 11, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "kind", len: 0, typ: NTI754974723, name: "kind", sons: null}, -{kind: 1, offset: "index", len: 0, typ: NTI33554435, name: "index", sons: null}, -{kind: 1, offset: "id", len: 0, typ: NTI33554450, name: "id", sons: null}, -{kind: 1, offset: "class", len: 0, typ: NTI33554450, name: "class", sons: null}, -{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, -{kind: 1, offset: "kids", len: 0, typ: NTI754974817, name: "kids", sons: null}, -{kind: 1, offset: "attrs", len: 0, typ: NTI754974818, name: "attrs", sons: null}, -{kind: 1, offset: "events", len: 0, typ: NTI754974811, name: "events", sons: null}, -{kind: 1, offset: "style", len: 0, typ: NTI805306405, name: "style", sons: null}, -{kind: 1, offset: "styleVersion", len: 0, typ: NTI33554435, name: "styleVersion", sons: null}, -{kind: 1, offset: "dom", len: 0, typ: NTI704643088, name: "dom", sons: null}]}; -NTI754974816.node = NNI754974816; -NTI754974816.base = NTI33555173; -NTI754974813.base = NTI754974816; -var NNI721420296 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "k", len: 0, typ: NTI721420295, name: "k", sons: null}, -{kind: 1, offset: "parent", len: 0, typ: NTI704643088, name: "parent", sons: null}, -{kind: 1, offset: "current", len: 0, typ: NTI704643088, name: "current", sons: null}, -{kind: 1, offset: "newNode", len: 0, typ: NTI754974813, name: "newNode", sons: null}, -{kind: 1, offset: "oldNode", len: 0, typ: NTI754974813, name: "oldNode", sons: null}]}; -NTI721420296.node = NNI721420296; -var NNI721420297 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI754974813, name: "parent", sons: null}, -{kind: 1, offset: "newChild", len: 0, typ: NTI754974813, name: "newChild", sons: null}, -{kind: 1, offset: "pos", len: 0, typ: NTI33554435, name: "pos", sons: null}]}; -NTI721420297.node = NNI721420297; -NTI754975002.base = NTI33554450; -var NNI1426071205 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1426071205.node = NNI1426071205; -var NNI1426071212 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1426071212.node = NNI1426071212; -var NNI1426071236 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1426071236.node = NNI1426071236; -var NNI1426071461 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1426071461.node = NNI1426071461; -var NNI1426063485 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554447, name: "Field1", sons: null}]}; -NTI1426063485.node = NNI1426063485; -NTI1426063484.base = NTI1426063485; -var NNI1426063905 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1426063905.node = NNI1426063905; -NTI1426070160.base = NTI1426063365; - -function mnewString(len_33557003) { - var result = new Array(len_33557003); - for (var i = 0; i < len_33557003; i++) {result[i] = 0;} - return result; - - - -} - -function toJSStr(s_33556901) { - var result_33556902 = null; - - var res_33556943 = newSeq_33556919((s_33556901).length); - var i_33556944 = 0; - var j_33556945 = 0; - Label1: { - Label2: while (true) { - if (!(i_33556944 < (s_33556901).length)) break Label2; - var c_33556946 = s_33556901[i_33556944]; - if ((c_33556946 < 128)) { - res_33556943[j_33556945] = String.fromCharCode(c_33556946); - i_33556944 += 1; - } - else { - var helper_33556959 = newSeq_33556919(0); - Label3: { - Label4: while (true) { - if (!true) break Label4; - var code_33556960 = c_33556946.toString(16); - if ((((code_33556960) == null ? 0 : (code_33556960).length) == 1)) { - helper_33556959.push("%0");; - } - else { - helper_33556959.push("%");; - } - - helper_33556959.push(code_33556960);; - i_33556944 += 1; - if ((((s_33556901).length <= i_33556944) || (s_33556901[i_33556944] < 128))) { - break Label3; - } - - c_33556946 = s_33556901[i_33556944]; - } - }; -++excHandler; - try { - res_33556943[j_33556945] = decodeURIComponent(helper_33556959.join("")); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - res_33556943[j_33556945] = helper_33556959.join(""); - lastJSError = prevJSError; - } finally { - } - } - - j_33556945 += 1; - } - }; - if (res_33556943.length < j_33556945) { for (var i = res_33556943.length ; i < j_33556945 ; ++i) res_33556943.push(null); } - else { res_33556943.length = j_33556945; }; - result_33556902 = res_33556943.join(""); - - return result_33556902; - -} - -function raiseException(e_33556653, ename_33556654) { - e_33556653.name = ename_33556654; - if ((excHandler == 0)) { - unhandledException(e_33556653); - } - - throw e_33556653; - - -} - -function addInt(a_33557050, b_33557051) { - var result = a_33557050 + b_33557051; - checkOverflowInt(result); - return result; - - - -} - -function chckRange(i_33557324, a_33557325, b_33557326) { - var result_33557327 = 0; - - BeforeRet: { - if (((a_33557325 <= i_33557324) && (i_33557324 <= b_33557326))) { - result_33557327 = i_33557324; - break BeforeRet; - } - else { - raiseRangeError(); - } - - }; - - return result_33557327; - -} - -function setConstr() { - var result = {}; - for (var i = 0; i < arguments.length; ++i) { - var x = arguments[i]; - if (typeof(x) == "object") { - for (var j = x[0]; j <= x[1]; ++j) { - result[j] = true; - } - } else { - result[x] = true; - } - } - return result; - - - -} -var ConstSet1 = setConstr(17, 16, 4, 18, 27, 19, 23, 22, 21); - -function nimCopy(dest_33557268, src_33557269, ti_33557270) { - var result_33557279 = null; - - switch (ti_33557270.kind) { - case 21: - case 22: - case 23: - case 5: - if (!(isFatPointer_33557259(ti_33557270))) { - result_33557279 = src_33557269; - } - else { - result_33557279 = [src_33557269[0], src_33557269[1]]; - } - - break; - case 19: - if (dest_33557268 === null || dest_33557268 === undefined) { - dest_33557268 = {}; - } - else { - for (var key in dest_33557268) { delete dest_33557268[key]; } - } - for (var key in src_33557269) { dest_33557268[key] = src_33557269[key]; } - result_33557279 = dest_33557268; - - break; - case 18: - case 17: - if (!((ti_33557270.base == null))) { - result_33557279 = nimCopy(dest_33557268, src_33557269, ti_33557270.base); - } - else { - if ((ti_33557270.kind == 17)) { - result_33557279 = (dest_33557268 === null || dest_33557268 === undefined) ? {m_type: ti_33557270} : dest_33557268; - } - else { - result_33557279 = (dest_33557268 === null || dest_33557268 === undefined) ? {} : dest_33557268; - } - } - nimCopyAux(result_33557279, src_33557269, ti_33557270.node); - break; - case 4: - case 16: - if(ArrayBuffer.isView(src_33557269)) { - if(dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new src_33557269.constructor(src_33557269); - } else { - dest_33557268.set(src_33557269, 0); - } - result_33557279 = dest_33557268; - } else { - if (src_33557269 === null) { - result_33557279 = null; - } - else { - if (dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new Array(src_33557269.length); - } - result_33557279 = dest_33557268; - for (var i = 0; i < src_33557269.length; ++i) { - result_33557279[i] = nimCopy(result_33557279[i], src_33557269[i], ti_33557270.base); - } - } - } - - break; - case 24: - case 27: - if (src_33557269 === null) { - result_33557279 = null; - } - else { - if (dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new Array(src_33557269.length); - } - result_33557279 = dest_33557268; - for (var i = 0; i < src_33557269.length; ++i) { - result_33557279[i] = nimCopy(result_33557279[i], src_33557269[i], ti_33557270.base); - } - } - - break; - case 28: - if (src_33557269 !== null) { - result_33557279 = src_33557269.slice(0); - } - - break; - default: - result_33557279 = src_33557269; - break; - } - - return result_33557279; - -} - -function chckIndx(i_33557319, a_33557320, b_33557321) { - var result_33557322 = 0; - - BeforeRet: { - if (((a_33557320 <= i_33557319) && (i_33557319 <= b_33557321))) { - result_33557322 = i_33557319; - break BeforeRet; - } - else { - raiseIndexError(i_33557319, a_33557320, b_33557321); - } - - }; - - return result_33557322; - -} - -function makeNimstrLit(c_33556895) { - var result = []; - for (var i = 0; i < c_33556895.length; ++i) { - result[i] = c_33556895.charCodeAt(i); - } - return result; - - - -} - -function nimMax(a_33557108, b_33557109) { - var Temporary1; - - var result_33557110 = 0; - - BeforeRet: { - if ((b_33557109 <= a_33557108)) { - Temporary1 = a_33557108; - } - else { - Temporary1 = b_33557109; - } - - result_33557110 = Temporary1; - break BeforeRet; - }; - - return result_33557110; - -} - -function subInt(a_33557054, b_33557055) { - var result = a_33557054 - b_33557055; - checkOverflowInt(result); - return result; - - - -} - -function nimMin(a_33557104, b_33557105) { - var Temporary1; - - var result_33557106 = 0; - - BeforeRet: { - if ((a_33557104 <= b_33557105)) { - Temporary1 = a_33557104; - } - else { - Temporary1 = b_33557105; - } - - result_33557106 = Temporary1; - break BeforeRet; - }; - - return result_33557106; - -} -var ConstSet2 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet3 = setConstr(32, 9, 11, 13, 10, 12); - var speedLimit_1426063605 = {a: 125.0, b: 422.5}; - -function divInt(a_33557062, b_33557063) { - if (b_33557063 == 0) raiseDivByZero(); - if (b_33557063 == -1 && a_33557062 == 2147483647) raiseOverflow(); - return Math.trunc(a_33557062 / b_33557063); - - - -} -var ConstSet4 = setConstr(60, 62, 94); -var ConstSet5 = setConstr(60, 62, 94); -var ConstSet6 = setConstr(45, 43, 32); -var ConstSet7 = setConstr([48, 57]); -var ConstSet8 = setConstr([48, 57]); -var ConstSet9 = setConstr([48, 57]); - -function mulInt(a_33557058, b_33557059) { - var result = a_33557058 * b_33557059; - checkOverflowInt(result); - return result; - - - -} -var ConstSet10 = setConstr([65, 90], [97, 122]); - -function cstrToNimstr(c_33556898) { - var ln = c_33556898.length; - var result = new Array(ln); - var r = 0; - for (var i = 0; i < ln; ++i) { - var ch = c_33556898.charCodeAt(i); - - if (ch < 128) { - result[r] = ch; - } - else { - if (ch < 2048) { - result[r] = (ch >> 6) | 192; - } - else { - if (ch < 55296 || ch >= 57344) { - result[r] = (ch >> 12) | 224; - } - else { - ++i; - ch = 65536 + (((ch & 1023) << 10) | (c_33556898.charCodeAt(i) & 1023)); - result[r] = (ch >> 18) | 240; - ++r; - result[r] = ((ch >> 12) & 63) | 128; - } - ++r; - result[r] = ((ch >> 6) & 63) | 128; - } - ++r; - result[r] = (ch & 63) | 128; - } - ++r; - } - return result; - - - -} -var ConstSet11 = setConstr(46, 44); - -function nimCharToStr(x_33556441) { - var result_33556442 = []; - - result_33556442 = nimCopy(null, mnewString(1), NTI33554449); - result_33556442[0] = x_33556441; - - return result_33556442; - -} -var ConstSet12 = setConstr([65, 90]); -var ConstSet13 = setConstr([97, 122]); - -function addChar(x_33557415, c_33557416) { - x_33557415.push(c_33557416); - - -} - var unitWeights_1459617942 = new BigInt64Array([1n, 1000n, 1000000n, 1000000000n, 60000000000n, 3600000000000n, 86400000000000n, 604800000000000n]); - -function divInt64(a_33557084, b_33557085) { - if (b_33557085 == 0n) raiseDivByZero(); - if (b_33557085 == -1n && a_33557084 == 9223372036854775807n) raiseOverflow(); - return a_33557084 / b_33557085; - - - -} - -function modInt(a_33557066, b_33557067) { - if (b_33557067 == 0) raiseDivByZero(); - if (b_33557067 == -1 && a_33557066 == 2147483647) raiseOverflow(); - return Math.trunc(a_33557066 % b_33557067); - - - -} - -function modInt64(a_33557088, b_33557089) { - if (b_33557089 == 0n) raiseDivByZero(); - if (b_33557089 == -1n && a_33557088 == 9223372036854775807n) raiseOverflow(); - return a_33557088 % b_33557089; - - - -} - -function addInt64(a_33557072, b_33557073) { - var result = a_33557072 + b_33557073; - checkOverflowInt64(result); - return result; - - - -} - -function subInt64(a_33557076, b_33557077) { - var result = a_33557076 - b_33557077; - checkOverflowInt64(result); - return result; - - - -} - -function isObj(obj_33557398, subclass_33557399) { - var result_33557400 = false; - - BeforeRet: { - var x_33557401 = obj_33557398; - if ((x_33557401 == subclass_33557399)) { - result_33557400 = true; - break BeforeRet; - } - - Label1: { - Label2: while (true) { - if (!!((x_33557401 == subclass_33557399))) break Label2; - if ((x_33557401 == null)) { - result_33557400 = false; - break BeforeRet; - } - - x_33557401 = x_33557401.base; - } - }; - result_33557400 = true; - break BeforeRet; - }; - - return result_33557400; - -} - -function rawEcho() { - var buf = ""; - for (var i = 0; i < arguments.length; ++i) { - buf += toJSStr(arguments[i]); - } - console.log(buf); - - - -} - -function reraiseException() { - if ((lastJSError == null)) { - raiseException({message: [110,111,32,101,120,99,101,112,116,105,111,110,32,116,111,32,114,101,114,97,105,115,101], parent: null, m_type: NTI134217753, name: null, trace: [], up: null}, "ReraiseDefect"); - } - else { - if ((excHandler == 0)) { - if (isNimException_33556443()) { - unhandledException(lastJSError); - } - - } - - throw lastJSError; - } - - - -} - var trajectoryStrokeStyles_1426063558 = [[79,114,97,110,103,101], [75,104,97,107,105], [71,111,108,100], [89,101,108,108,111,119,71,114,101,101,110], [76,105,103,104,116,83,101,97,71,114,101,101,110], [114,103,98,40,50,48,48,44,32,50,48,48,44,32,50,53,48,41], [83,107,121,66,108,117,101], [67,111,114,110,102,108,111,119,101,114,66,108,117,101], [83,108,97,116,101,66,108,117,101], [68,97,114,107,79,114,99,104,105,100], [86,105,111,108,101,116], [80,105,110,107], [72,111,116,80,105,110,107], [67,114,105,109,115,111,110], [79,114,97,110,103,101,82,101,100], [83,97,108,109,111,110]]; -var ConstSet14 = setConstr([48, 57]); -var ConstSet15 = setConstr([48, 57]); -var ConstSet16 = setConstr([65, 90]); - var timeSteps_1426063536 = new Float64Array([0.25, 0.5, 1.0, 2.0, 3.0]); - var bulletsLimitRange_1426063613 = {a: 1, b: 100}; -var ConstSet17 = setConstr([88, 148]); - var toTag_754975044 = ["#text", "#int", "#bool", "#vthunk", "#dthunk", "#component", "#verbatim", "html", "head", "title", "base", "link", "meta", "style", "script", "noscript", "body", "section", "nav", "article", "aside", "h1", "h2", "h3", "h4", "h5", "h6", "hgroup", "header", "footer", "address", "main", "p", "hr", "pre", "blockquote", "ol", "ul", "li", "dl", "dt", "dd", "figure", "figcaption", "div", "a", "em", "strong", "small", "s", "cite", "quote", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "ruby", "rt", "rp", "bdi", "dbo", "span", "br", "wbr", "ins", "del", "img", "iframe", "embed", "object", "param", "video", "audio", "source", "track", "canvas", "map", "area", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "set", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "unknown", "use", "view", "maction", "math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "semantics", "table", "caption", "colgroup", "col", "tbody", "thead", "tfoot", "tr", "td", "th", "form", "fieldset", "legend", "label", "input", "button", "select", "datalist", "optgroup", "option", "textarea", "keygen", "output", "progress", "meter", "details", "summary", "command", "menu", "bdo", "dialog", "slot", "template"]; -var ConstSet18 = setConstr([149, 179]); -var ConstSet19 = setConstr([88, 148]); - var toEventName_754975121 = ["click", "contextmenu", "dblclick", "keyup", "keydown", "keypressed", "focus", "blur", "change", "scroll", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop", "submit", "input", "animationstart", "animationend", "animationiteration", "keyupenter", "keyuplater", "load", "transitioncancel", "transitionend", "transitionrun", "transitionstart", "wheel"]; -var ConstSet20 = setConstr([88, 148]); -var ConstSet21 = setConstr([48, 57]); -var ConstSet22 = setConstr(0, 125); -var ConstSet23 = setConstr([48, 57]); -var ConstSet24 = setConstr([65, 90]); -var ConstSet25 = setConstr([97, 122], [65, 90], [48, 57], [128, 255], 95); - -function reprEnum(e_33557576, typ_33557577) { - var result_33557578 = []; - - var tmp_33557579 = false; - var item_33557580 = typ_33557577.node.sons[e_33557576]; - tmp_33557579 = item_33557580 !== undefined - if (tmp_33557579) { - result_33557578 = nimCopy(null, makeNimstrLit(item_33557580.name), NTI33554449); - } - else { - result_33557578 = nimCopy(null, (HEX24_385875976(e_33557576) || []).concat([32,40,105,110,118,97,108,105,100,32,100,97,116,97,33,41] || []), NTI33554449); - } - - - return result_33557578; - -} - -function nimBoolToStr(x_33556438) { - var result_33556439 = []; - - if (x_33556438) { - result_33556439 = nimCopy(null, [116,114,117,101], NTI33554449); - } - else { - result_33556439 = nimCopy(null, [102,97,108,115,101], NTI33554449); - } - - - return result_33556439; - -} -var ConstSet26 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet27 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet28 = setConstr(32, 9, 11, 13, 10, 12); - var passwordRange_1426063619 = {a: 4, b: 20}; - var cb64safe_1627389957 = new Uint8Array([65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 45, 95]); - var cb64_1627389956 = new Uint8Array([65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 43, 47]); -var ConstSet29 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet30 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet31 = setConstr(32, 9, 11, 13, 10, 12); -var ConstSet32 = setConstr([97, 122], [65, 90], [48, 57], 95); -var ConstSet33 = setConstr([97, 122], [65, 90], [48, 57], 95); -var ConstSet34 = setConstr([48, 57]); -var ConstSet35 = setConstr([48, 57]); -var ConstSet36 = setConstr(101, 69); -var ConstSet37 = setConstr([48, 57]); -var ConstSet38 = setConstr([48, 57]); - -function nimParseBiggestFloat(s_33557448, number_33557449, number_33557449_Idx) { - var Temporary1; - - var result_33557450 = 0; - - BeforeRet: { - var sign_33557451 = false; - var i_33557452 = 0; - if ((s_33557448[i_33557452] == 43)) { - i_33557452 += 1; - } - else { - if ((s_33557448[i_33557452] == 45)) { - sign_33557451 = true; - i_33557452 += 1; - } - } - if (((s_33557448[i_33557452] == 78) || (s_33557448[i_33557452] == 110))) { - if (((s_33557448[(i_33557452 + 1)] == 65) || (s_33557448[(i_33557452 + 1)] == 97))) { - if (((s_33557448[(i_33557452 + 2)] == 78) || (s_33557448[(i_33557452 + 2)] == 110))) { - if (!((ConstSet32[s_33557448[(i_33557452 + 3)]] != undefined))) { - number_33557449[number_33557449_Idx] = NaN; - result_33557450 = (i_33557452 + 3); - break BeforeRet; - } - - } - - } - - result_33557450 = 0; - break BeforeRet; - } - - if (((s_33557448[i_33557452] == 73) || (s_33557448[i_33557452] == 105))) { - if (((s_33557448[(i_33557452 + 1)] == 78) || (s_33557448[(i_33557452 + 1)] == 110))) { - if (((s_33557448[(i_33557452 + 2)] == 70) || (s_33557448[(i_33557452 + 2)] == 102))) { - if (!((ConstSet33[s_33557448[(i_33557452 + 3)]] != undefined))) { - if (sign_33557451) { - Temporary1 = -Infinity; - } - else { - Temporary1 = Infinity; - } - - number_33557449[number_33557449_Idx] = Temporary1; - result_33557450 = (i_33557452 + 3); - break BeforeRet; - } - - } - - } - - result_33557450 = 0; - break BeforeRet; - } - - var buf_33557471 = []; - if (sign_33557451) { - addChar(buf_33557471, 45);; - } - - Label2: { - Label3: while (true) { - if (!(ConstSet34[s_33557448[i_33557452]] != undefined)) break Label3; - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - Label4: { - Label5: while (true) { - if (!(s_33557448[i_33557452] == 95)) break Label5; - i_33557452 += 1; - } - }; - } - }; - if ((s_33557448[i_33557452] == 46)) { - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - Label6: { - Label7: while (true) { - if (!(ConstSet35[s_33557448[i_33557452]] != undefined)) break Label7; - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - Label8: { - Label9: while (true) { - if (!(s_33557448[i_33557452] == 95)) break Label9; - i_33557452 += 1; - } - }; - } - }; - } - - if (((buf_33557471).length == (sign_33557451 ? 1 : 0))) { - result_33557450 = 0; - break BeforeRet; - } - - if ((ConstSet36[s_33557448[i_33557452]] != undefined)) { - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - if ((s_33557448[i_33557452] == 43)) { - i_33557452 += 1; - } - else { - if ((s_33557448[i_33557452] == 45)) { - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - } - } - if (!((ConstSet37[s_33557448[i_33557452]] != undefined))) { - result_33557450 = 0; - break BeforeRet; - } - - Label10: { - Label11: while (true) { - if (!(ConstSet38[s_33557448[i_33557452]] != undefined)) break Label11; - addChar(buf_33557471, s_33557448[i_33557452]);; - i_33557452 += 1; - Label12: { - Label13: while (true) { - if (!(s_33557448[i_33557452] == 95)) break Label13; - i_33557452 += 1; - } - }; - } - }; - } - - number_33557449[number_33557449_Idx] = parseFloatNative_33557428(buf_33557471); - result_33557450 = i_33557452; - }; - - return result_33557450; - -} -var svgNamespace_754974946 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,50,48,48,48,47,115,118,103]]; -var mathNamespace_754974947 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,49,57,57,56,47,77,97,116,104,47,77,97,116,104,77,76]]; -var gid_754975436 = [0]; -var objectID_1308623025 = [0]; -var vcomponents_788529165 = [{}]; -var kxi__ = null; -if (globalThis.utcInstance_1459619445 === undefined) { - globalThis.utcInstance_1459619445 = [null]; -} -if (globalThis.localInstance_1459619446 === undefined) { - globalThis.localInstance_1459619446 = [null]; -} -function getCircularReplacer() { - const ancestors = []; - return function (key, value) { - if (typeof value !== "object" || value === null) { - return value; - } - // this is the object that value is contained in, - // i.e., its direct parent. - while (ancestors.length > 0 && ancestors.at(-1) !== this) { - ancestors.pop(); - } - if (ancestors.includes(value)) { - return "[Circular]"; - } - ancestors.push(value); - return value; - }; -} - -function drawArrow(ctx, fromx, fromy, tox, toy, arrowWidth, color){ - //variables to be used when creating the arrow - var headlen = 10; - var angle = Math.atan2(toy-fromy,tox-fromx); - - //ctx.save(); - ctx.strokeStyle = color; - ctx.fillStyle = color; - - //starting path of the arrow from the start square to the end square - //and drawing the stroke - ctx.beginPath(); - ctx.moveTo(fromx, fromy); - ctx.lineTo(tox, toy); - ctx.lineWidth = arrowWidth; - ctx.stroke(); - - //starting a new path from the head of the arrow to one of the sides of - //the point - ctx.beginPath(); - ctx.moveTo(tox, toy); - ctx.lineTo(tox-headlen*Math.cos(angle-Math.PI/7), - toy-headlen*Math.sin(angle-Math.PI/7)); - - //path from the side point of the arrow, to the other side point - ctx.lineTo(tox-headlen*Math.cos(angle+Math.PI/7), - toy-headlen*Math.sin(angle+Math.PI/7)); - - //path from the side point back to the tip of the arrow, and then - //again to the opposite side point - ctx.lineTo(tox, toy); - ctx.lineTo(tox-headlen*Math.cos(angle-Math.PI/7), - toy-headlen*Math.sin(angle-Math.PI/7)); - - //draws the paths created above - ctx.stroke(); - //ctx.restore(); -} - - -function add_33556373(x_33556374, x_33556374_Idx, y_33556375) { - if (x_33556374[x_33556374_Idx] === null) { x_33556374[x_33556374_Idx] = []; } - var off = x_33556374[x_33556374_Idx].length; - x_33556374[x_33556374_Idx].length += y_33556375.length; - for (var i = 0; i < y_33556375.length; ++i) { - x_33556374[x_33556374_Idx][off+i] = y_33556375.charCodeAt(i); - } - - - -} - -function newSeq_33556919(len_33556921) { - var result_33556922 = []; - - result_33556922 = new Array(len_33556921); for (var i = 0 ; i < len_33556921 ; ++i) { result_33556922[i] = null; } - return result_33556922; - -} - -function unhandledException(e_33556649) { - var buf_33556650 = [[]]; - if (!(((e_33556649.message).length == 0))) { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; - buf_33556650[0].push.apply(buf_33556650[0], e_33556649.message);; - } - else { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; - } - - buf_33556650[0].push.apply(buf_33556650[0], [32,91]);; - add_33556373(buf_33556650, 0, e_33556649.name); - buf_33556650[0].push.apply(buf_33556650[0], [93,10]);; - var cbuf_33556651 = toJSStr(buf_33556650[0]); - if (typeof(Error) !== "undefined") { - throw new Error(cbuf_33556651); - } - else { - throw cbuf_33556651; - } - - - -} - -function raiseOverflow() { - raiseException({message: [111,118,101,114,45,32,111,114,32,117,110,100,101,114,102,108,111,119], parent: null, m_type: NTI134217743, name: null, trace: [], up: null}, "OverflowDefect"); - - -} - -function checkOverflowInt(a_33557048) { - if (a_33557048 > 2147483647 || a_33557048 < -2147483648) raiseOverflow(); - - - -} - -function raiseRangeError() { - raiseException({message: [118,97,108,117,101,32,111,117,116,32,111,102,32,114,97,110,103,101], parent: null, m_type: NTI134217751, name: null, trace: [], up: null}, "RangeDefect"); - - -} - -function addChars_301990090(result_301990092, result_301990092_Idx, x_301990093, start_301990094, n_301990095) { - var Temporary1; - - var old_301990096 = (result_301990092[result_301990092_Idx]).length; - if (result_301990092[result_301990092_Idx].length < (Temporary1 = chckRange(addInt(old_301990096, n_301990095), 0, 2147483647), Temporary1)) { for (var i = result_301990092[result_301990092_Idx].length; i < Temporary1; ++i) result_301990092[result_301990092_Idx].push(0); } - else {result_301990092[result_301990092_Idx].length = Temporary1; }; - Label2: { - var iHEX60gensym4_301990110 = 0; - var i_1711276634 = 0; - Label3: { - Label4: while (true) { - if (!(i_1711276634 < n_301990095)) break Label4; - iHEX60gensym4_301990110 = i_1711276634; - result_301990092[result_301990092_Idx][chckIndx(addInt(old_301990096, iHEX60gensym4_301990110), 0, (result_301990092[result_301990092_Idx]).length - 1)] = x_301990093.charCodeAt(chckIndx(addInt(start_301990094, iHEX60gensym4_301990110), 0, (x_301990093).length - 1)); - i_1711276634 = addInt(i_1711276634, 1); - } - }; - }; - - -} - -function addChars_301990086(result_301990088, result_301990088_Idx, x_301990089) { - addChars_301990090(result_301990088, result_301990088_Idx, x_301990089, 0, ((x_301990089) == null ? 0 : (x_301990089).length)); - - -} - -function addInt_301990111(result_301990112, result_301990112_Idx, x_301990113) { - addChars_301990086(result_301990112, result_301990112_Idx, ((x_301990113) + "")); - - -} - -function addInt_301990129(result_301990130, result_301990130_Idx, x_301990131) { - addInt_301990111(result_301990130, result_301990130_Idx, BigInt(x_301990131)); - - -} - -function HEX24_385875976(x_385875977) { - var result_385875978 = [[]]; - - addInt_301990129(result_385875978, 0, x_385875977); - - return result_385875978[0]; - -} - -function isFatPointer_33557259(ti_33557260) { - var result_33557261 = false; - - BeforeRet: { - result_33557261 = !((ConstSet1[ti_33557260.base.kind] != undefined)); - break BeforeRet; - }; - - return result_33557261; - -} - -function nimCopyAux(dest_33557272, src_33557273, n_33557274) { - switch (n_33557274.kind) { - case 0: - break; - case 1: - dest_33557272[n_33557274.offset] = nimCopy(dest_33557272[n_33557274.offset], src_33557273[n_33557274.offset], n_33557274.typ); - - break; - case 2: - for (var i = 0; i < n_33557274.sons.length; i++) { - nimCopyAux(dest_33557272, src_33557273, n_33557274.sons[i]); - } - - break; - case 3: - dest_33557272[n_33557274.offset] = nimCopy(dest_33557272[n_33557274.offset], src_33557273[n_33557274.offset], n_33557274.typ); - for (var i = 0; i < n_33557274.sons.length; ++i) { - nimCopyAux(dest_33557272, src_33557273, n_33557274.sons[i][1]); - } - - break; - } - - -} - -function raiseIndexError(i_33556812, a_33556813, b_33556814) { - var Temporary1; - - if ((b_33556814 < a_33556813)) { - Temporary1 = [105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,44,32,116,104,101,32,99,111,110,116,97,105,110,101,114,32,105,115,32,101,109,112,116,121]; - } - else { - Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_385875976(i_33556812) || [],[32,110,111,116,32,105,110,32] || [],HEX24_385875976(a_33556813) || [],[32,46,46,32] || [],HEX24_385875976(b_33556814) || []); - } - - raiseException({message: nimCopy(null, Temporary1, NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); - - -} - -function jsVec_1711276266(x_1711276269, y_1711276270) { - -function innerHEX60gensym56_1711276274() { - var result_1711276275 = null; - - BeforeRet: { - var a_1711276276 = null; - a_1711276276 = {}; - a_1711276276.x = x_1711276269; - a_1711276276.y = y_1711276270; - result_1711276275 = a_1711276276; - break BeforeRet; - }; - - return result_1711276275; - - } - - var result_1711276271 = null; - - result_1711276271 = innerHEX60gensym56_1711276274(); - - return result_1711276271; - -} - -function sysFatal_268435501(message_268435504) { - raiseException({message: nimCopy(null, message_268435504, NTI33554449), m_type: NTI134217745, parent: null, name: null, trace: [], up: null}, "AssertionDefect"); - - -} - -function raiseAssert_268435499(msg_268435500) { - sysFatal_268435501(msg_268435500); - - -} - -function failedAssertImpl_268435541(msg_268435542) { - raiseAssert_268435499(msg_268435542); - - -} - -function HEX3Aanonymous_1711276038(mouseCons_1711276039, bodies_1711276040) { - var Temporary4; - var Temporary5; - -function innerHEX60gensym83_1711276363() { - var result_1711276364 = null; - - BeforeRet: { - var a_1711276365 = null; - a_1711276365 = {}; - a_1711276365.mouse = mouse_1711276044; - a_1711276365.body = b_1711276086; - result_1711276364 = a_1711276365; - break BeforeRet; - }; - - return result_1711276364; - - } - - var mouse_1711276044 = mouseCons_1711276039.mouse; - var cons_1711276048 = mouseCons_1711276039.constraint; - var body_1711276052 = mouseCons_1711276039.body; - if (((!cons_1711276048.bodyB))) { - Label1: { - var b_1711276086 = null; - var colontmp__1711276625 = []; - colontmp__1711276625 = (bodies_1711276040); - var i_1711276627 = 0; - var L_1711276628 = (colontmp__1711276625).length; - Label2: { - Label3: while (true) { - if (!(i_1711276627 < L_1711276628)) break Label3; - b_1711276086 = colontmp__1711276625[chckIndx(i_1711276627, 0, (colontmp__1711276625).length - 1)]; - if (!(Matter.Bounds.contains((b_1711276086.bounds), (mouse_1711276044.position)))) Temporary4 = false; else { Temporary4 = (Matter.Detector.canCollide((b_1711276086.collisionFilter), (mouseCons_1711276039.collisionFilter))); } if (Temporary4) { - if ((1 < (b_1711276086.parts.length))) { - Temporary5 = 1; - } - else { - Temporary5 = 0; - } - - var i_1711276161 = Temporary5; - Label6: { - Label7: while (true) { - if (!(i_1711276161 < (b_1711276086.parts.length))) break Label7; - var part_1711276175 = b_1711276086.parts[i_1711276161]; - if ((Matter.Vertices.contains((part_1711276175.vertices), (mouse_1711276044.position)))) { - cons_1711276048.pointA = mouse_1711276044.position; - mouseCons_1711276039.body = b_1711276086; - cons_1711276048.bodyB = mouseCons_1711276039.body; - cons_1711276048.pointB = jsVec_1711276266((mouse_1711276044.position.x - b_1711276086.position.x), (mouse_1711276044.position.y - b_1711276086.position.y)); - cons_1711276048.angleB = b_1711276086.angle; - Matter.Sleeping.set((b_1711276086), (false)); - Matter.Events.trigger((mouseCons_1711276039), ("startdrag"), (innerHEX60gensym83_1711276363())); - break Label6; - } - - i_1711276161 = addInt(i_1711276161, 1); - } - }; - } - - i_1711276627 = addInt(i_1711276627, 1); - if (!(((colontmp__1711276625).length == L_1711276628))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - } - - - -} - -function HEX3Aanonymous_1711276438(mouseCons_1711276439) { - -function innerHEX60gensym113_1711276506() { - var result_1711276507 = null; - - BeforeRet: { - var a_1711276508 = null; - a_1711276508 = {}; - a_1711276508.mouse = mouse_1711276443; - a_1711276508.body = body_1711276451; - result_1711276507 = a_1711276508; - break BeforeRet; - }; - - return result_1711276507; - - } - - var mouse_1711276443 = mouseCons_1711276439.mouse; - var cons_1711276447 = mouseCons_1711276439.constraint; - var body_1711276451 = mouseCons_1711276439.body; - mouseCons_1711276439.body = null; - cons_1711276447.bodyB = mouseCons_1711276439.body; - cons_1711276447.pointB = null; - if ((body_1711276451)) { - Matter.Events.trigger((mouseCons_1711276439), ("enddrag"), (innerHEX60gensym113_1711276506())); - } - - - -} - -function HEX3Aanonymous_1711276560(mouseCons_1711276561) { - var mouse_1711276565 = mouseCons_1711276561.mouse; - var cons_1711276569 = mouseCons_1711276561.constraint; - if ((cons_1711276569.bodyB)) { - Matter.Sleeping.set((cons_1711276569.bodyB), (false)); - cons_1711276569.pointA = mouse_1711276565.position; - } - - - -} -Matter.MouseConstraint.onmousedown = HEX3Aanonymous_1711276038; -Matter.MouseConstraint.onmouseup = HEX3Aanonymous_1711276438; -Matter.MouseConstraint.update = HEX3Aanonymous_1711276560; - -function substrEq_872415487(s_872415488, pos_872415489, substr_872415490) { - var Temporary1; - - var result_872415491 = false; - - var length_872415492 = (substr_872415490).length; - if ((0 < length_872415492)) { - var i_872415493 = 0; - Label2: { - Label3: while (true) { - if (!(((i_872415493 < length_872415492) && (addInt(pos_872415489, i_872415493) < (s_872415488).length)) && (s_872415488[chckIndx(addInt(pos_872415489, i_872415493), 0, (s_872415488).length - 1)] == substr_872415490[chckIndx(i_872415493, 0, (substr_872415490).length - 1)]))) break Label3; - i_872415493 = addInt(i_872415493, 1); - } - }; - Temporary1 = (i_872415493 == length_872415492); - } - else { - Temporary1 = false; - } - - result_872415491 = Temporary1; - - return result_872415491; - -} - -function substr_33558079(s_33558080, first_33558081, last_33558082) { - var result_33558083 = []; - - var first_33558084 = nimMax(first_33558081, 0); - var L_33558085 = nimMax(addInt(subInt(nimMin(last_33558082, (s_33558080).length - 1), first_33558084), 1), 0); - result_33558083 = nimCopy(null, mnewString(chckRange(L_33558085, 0, 2147483647)), NTI33554449); - Label1: { - var i_33558090 = 0; - var colontmp__1862270995 = 0; - colontmp__1862270995 = subInt(L_33558085, 1); - var res_1862270996 = 0; - Label2: { - Label3: while (true) { - if (!(res_1862270996 <= colontmp__1862270995)) break Label3; - i_33558090 = res_1862270996; - result_33558083[chckIndx(i_33558090, 0, (result_33558083).length - 1)] = s_33558080[chckIndx(addInt(i_33558090, first_33558084), 0, (s_33558080).length - 1)]; - res_1862270996 = addInt(res_1862270996, 1); - } - }; - }; - - return result_33558083; - -} - -function nsuStrip(s_872417754, leading_872417755, trailing_872417756, chars_872417757) { - var result_872417758 = []; - - var first_872417759 = 0; - var last_872417760 = subInt((s_872417754).length, 1); - if (leading_872417755) { - Label1: { - Label2: while (true) { - if (!((first_872417759 <= last_872417760) && (chars_872417757[s_872417754[chckIndx(first_872417759, 0, (s_872417754).length - 1)]] != undefined))) break Label2; - first_872417759 = addInt(first_872417759, 1); - } - }; - } - - if (trailing_872417756) { - Label3: { - Label4: while (true) { - if (!((first_872417759 <= last_872417760) && (chars_872417757[s_872417754[chckIndx(last_872417760, 0, (s_872417754).length - 1)]] != undefined))) break Label4; - last_872417760 = subInt(last_872417760, 1); - } - }; - } - - result_872417758 = nimCopy(null, substr_33558079(s_872417754, first_872417759, last_872417760), NTI33554449); - - return result_872417758; - -} - -function nsuSplitString(s_872415807, sep_872415808, maxsplit_872415809) { - var Temporary2; - - var result_872415810 = []; - - result_872415810 = nimCopy(null, [], NTI872415638); - Label1: { - var xHEX60gensym69_872415816 = []; - if (((sep_872415808).length == 0)) { - Temporary2 = 1; - } - else { - Temporary2 = (sep_872415808).length; - } - - var sepLen_1426074242 = Temporary2; - var lastHEX60gensym41_1426074243 = 0; - var splitsHEX60gensym41_1426074244 = maxsplit_872415809; - Label3: { - Label4: while (true) { - if (!(lastHEX60gensym41_1426074243 <= (s_872415807).length)) break Label4; - var firstHEX60gensym41_1426074246 = lastHEX60gensym41_1426074243; - Label5: { - Label6: while (true) { - if (!((lastHEX60gensym41_1426074243 < (s_872415807).length) && !(substrEq_872415487(s_872415807, lastHEX60gensym41_1426074243, sep_872415808)))) break Label6; - lastHEX60gensym41_1426074243 = addInt(lastHEX60gensym41_1426074243, 1); - } - }; - if ((splitsHEX60gensym41_1426074244 == 0)) { - lastHEX60gensym41_1426074243 = (s_872415807).length; - } - - xHEX60gensym69_872415816 = substr_33558079(s_872415807, firstHEX60gensym41_1426074246, subInt(lastHEX60gensym41_1426074243, 1)); - var Temporary7 = nimCopy(null, xHEX60gensym69_872415816, NTI33554449); - result_872415810.push(Temporary7);; - if ((splitsHEX60gensym41_1426074244 == 0)) { - break Label3; - } - - splitsHEX60gensym41_1426074244 = subInt(splitsHEX60gensym41_1426074244, 1); - lastHEX60gensym41_1426074243 = addInt(lastHEX60gensym41_1426074243, sepLen_1426074242); - } - }; - }; - - return result_872415810; - -} - -function setAttr_822083896(s_822083897, a_822083898, value_822083899) { - BeforeRet: { - s_822083897.__version = addInt((s_822083897.__version || 0), 1);; - var i_822083900 = 0; - Label1: { - Label2: while (true) { - if (!(i_822083900 < s_822083897.length)) break Label2; - if ((s_822083897[i_822083900] == a_822083898)) { - s_822083897[addInt(i_822083900, 1)] = value_822083899; - break BeforeRet; - } - else { - if ((a_822083898 < s_822083897[i_822083900])) { - s_822083897.push(""); - s_822083897.push(""); - Label3: { - var j_822083941 = 0; - var colontmp__1426074250 = 0; - var colontmp__1426074251 = 0; - colontmp__1426074250 = subInt(s_822083897.length, 1); - colontmp__1426074251 = addInt(i_822083900, 3); - var res_1426074252 = colontmp__1426074250; - Label4: { - Label5: while (true) { - if (!(colontmp__1426074251 <= res_1426074252)) break Label5; - j_822083941 = res_1426074252; - s_822083897[j_822083941] = s_822083897[subInt(j_822083941, 2)]; - s_822083897[subInt(j_822083941, 1)] = s_822083897[subInt(j_822083941, 3)]; - res_1426074252 = subInt(res_1426074252, 2); - } - }; - }; - s_822083897[i_822083900] = a_822083898; - s_822083897[addInt(i_822083900, 1)] = value_822083899; - break BeforeRet; - } - } - i_822083900 = addInt(i_822083900, 2); - } - }; - s_822083897.push(a_822083898); - s_822083897.push(value_822083899); - }; - - -} - -function toCss_822084081(a_822084082) { - var result_822084083 = null; - - result_822084083 = new Array(0); - Label1: { - var ai_822084087 = []; - var sepLen_1426074232 = 1; - var lastHEX60gensym41_1426074233 = 0; - var splitsHEX60gensym41_1426074234 = (-1); - Label2: { - Label3: while (true) { - if (!(lastHEX60gensym41_1426074233 <= (a_822084082).length)) break Label3; - var firstHEX60gensym41_1426074236 = lastHEX60gensym41_1426074233; - Label4: { - Label5: while (true) { - if (!((lastHEX60gensym41_1426074233 < (a_822084082).length) && !(substrEq_872415487(a_822084082, lastHEX60gensym41_1426074233, [59])))) break Label5; - lastHEX60gensym41_1426074233 = addInt(lastHEX60gensym41_1426074233, 1); - } - }; - if ((splitsHEX60gensym41_1426074234 == 0)) { - lastHEX60gensym41_1426074233 = (a_822084082).length; - } - - ai_822084087 = substr_33558079(a_822084082, firstHEX60gensym41_1426074236, subInt(lastHEX60gensym41_1426074233, 1)); - Label6: { - var ai_822084088 = nsuStrip(ai_822084087, true, true, ConstSet2); - if (((ai_822084088).length == 0)) { - break Label6; - } - - var aj_822084089 = nsuSplitString(nsuStrip(ai_822084088, true, true, ConstSet3), [58], 1); - setAttr_822083896(result_822084083, toJSStr(aj_822084089[chckIndx(0, 0, (aj_822084089).length - 1)]), toJSStr(aj_822084089[chckIndx(1, 0, (aj_822084089).length - 1)])); - }; - if ((splitsHEX60gensym41_1426074234 == 0)) { - break Label2; - } - - splitsHEX60gensym41_1426074234 = subInt(splitsHEX60gensym41_1426074234, 1); - lastHEX60gensym41_1426074233 = addInt(lastHEX60gensym41_1426074233, sepLen_1426074232); - } - }; - }; - - return result_822084083; - -} -var formulaAccordionBodyStyle_1426063623 = toCss_822084081([112,97,100,100,105,110,103,45,108,101,102,116,58,32,48,46,53,101,109,59,32,111,118,101,114,102,108,111,119,58,32,97,117,116,111,59,32,115,99,114,111,108,108,98,97,114,45,119,105,100,116,104,58,32,116,104,105,110,59]); - -function radToDeg_1426063740(d_1426063742) { - var result_1426063743 = 0.0; - - result_1426063743 = (d_1426063742 / 0.017453292519943295); - - return result_1426063743; - -} - -function degToRad_1694498964(d_1694498966) { - var result_1694498967 = 0.0; - - result_1694498967 = (d_1694498966 * 0.017453292519943295); - - return result_1694498967; - -} - -function nimFloatToString_402653337(a_402653338) { - var result_402653339 = null; - - function nimOnlyDigitsOrMinus(n) { - return n.toString().match(/^-?\d+$/); - } - if (Number.isSafeInteger(a_402653338)) - result_402653339 = a_402653338 === 0 && 1 / a_402653338 < 0 ? "-0.0" : a_402653338+".0" - else { - result_402653339 = a_402653338+"" - if(nimOnlyDigitsOrMinus(result_402653339)){ - result_402653339 = a_402653338+".0" - } - } - - - return result_402653339; - -} - -function addFloat_33557563(result_33557565, result_33557565_Idx, x_33557566) { - add_33556373(result_33557565, result_33557565_Idx, nimFloatToString_402653337(x_33557566)); - - -} - -function addQuoted_1426063697(s_1426063699, s_1426063699_Idx, x_1426063700) { - addFloat_33557563(s_1426063699, s_1426063699_Idx, x_1426063700); - - -} - -function HEX24_1426063668(x_1426063670) { - var result_1426063671 = [[]]; - - result_1426063671[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym0_1426063682 = 0; - if ((0 < countHEX60gensym0_1426063682)) { - result_1426063671[0].push.apply(result_1426063671[0], [44,32]);; - } - - countHEX60gensym0_1426063682 += 1; - addQuoted_1426063697(result_1426063671, 0, x_1426063670["Field0"]); - if ((0 < countHEX60gensym0_1426063682)) { - result_1426063671[0].push.apply(result_1426063671[0], [44,32]);; - } - - countHEX60gensym0_1426063682 += 1; - addQuoted_1426063697(result_1426063671, 0, x_1426063670["Field1"]); - if ((countHEX60gensym0_1426063682 == 1)) { - result_1426063671[0].push.apply(result_1426063671[0], [44]);; - } - - result_1426063671[0].push.apply(result_1426063671[0], [41]);; - - return result_1426063671[0]; - -} - -function clamp_1426063727(x_1426063729, a_1426063730, b_1426063731) { - var result_1426063732 = 0.0; - - BeforeRet: { - if ((x_1426063729 < a_1426063730)) { - result_1426063732 = a_1426063730; - break BeforeRet; - } - - if ((b_1426063731 < x_1426063729)) { - result_1426063732 = b_1426063731; - break BeforeRet; - } - - result_1426063732 = x_1426063729; - break BeforeRet; - }; - - return result_1426063732; - -} - -function clamp_1426063663(val_1426063665, bounds_1426063666) { - var result_1426063667 = 0.0; - - if (!((bounds_1426063666.a <= bounds_1426063666.b))) { - failedAssertImpl_268435541(([109,97,116,104,46,110,105,109,40,49,50,57,57,44,32,51,41,32,96,98,111,117,110,100,115,46,97,32,60,61,32,98,111,117,110,100,115,46,98,96,32] || []).concat(HEX24_1426063668({Field0: bounds_1426063666.a, Field1: bounds_1426063666.b}) || [])); - } - - result_1426063667 = clamp_1426063727(val_1426063665, bounds_1426063666.a, bounds_1426063666.b); - - return result_1426063667; - -} - -function speedToVelRad_1694498977(speed_1694498978, angleRad_1694498979) { - var result_1694498982 = {Field0: 0.0, Field1: 0.0}; - - var colontmp__570425474 = (Math.cos(angleRad_1694498979) * speed_1694498978); - var colontmp__570425475 = (Math.sin(angleRad_1694498979) * speed_1694498978); - result_1694498982 = nimCopy(result_1694498982, {Field0: colontmp__570425474, Field1: colontmp__570425475}, NTI1694498889); - - return result_1694498982; - -} - -function setSpeed_1426063660(state_1426063661, speed_1426063662) { - state_1426063661.speed = clamp_1426063663(speed_1426063662, speedLimit_1426063605); - state_1426063661.vel = nimCopy(state_1426063661.vel, speedToVelRad_1694498977(state_1426063661.speed, state_1426063661.angleRad), NTI1677721603); - - -} - -function initCanonState_1426063733(angle_1426063734, deg_1426063735, speed_1426063736, gravity_1426063737, height_1426063738) { - var Temporary1; - var Temporary2; - - var result_1426063739 = [({angleDeg: 0.0, angleRad: 0.0, speed: 0.0, height: 0.0, vel: {Field0: 0.0, Field1: 0.0}, gravity: {Field0: 0.0, Field1: 0.0}})]; - - if (deg_1426063735) { - Temporary1 = angle_1426063734; - } - else { - Temporary1 = radToDeg_1426063740(angle_1426063734); - } - - var angleDeg_1426063744 = Temporary1; - if (deg_1426063735) { - Temporary2 = degToRad_1694498964(angle_1426063734); - } - else { - Temporary2 = angle_1426063734; - } - - var angleRad_1426063748 = Temporary2; - result_1426063739[0] = nimCopy(result_1426063739[0], {angleDeg: angleDeg_1426063744, angleRad: angleRad_1426063748, gravity: nimCopy(null, gravity_1426063737, NTI1677721603), height: height_1426063738, speed: 0.0, vel: {Field0: 0.0, Field1: 0.0}}, NTI1426063363); - setSpeed_1426063660(result_1426063739[0], speed_1426063736); - - return result_1426063739[0]; - -} - -function vec_1677721936(x_1677721937, y_1677721938) { - var result_1677721939 = {Field0: 0.0, Field1: 0.0}; - - var colontmp__570425476 = x_1677721937; - var colontmp__570425477 = y_1677721938; - result_1677721939 = nimCopy(result_1677721939, {Field0: colontmp__570425476, Field1: colontmp__570425477}, NTI1677721603); - - return result_1677721939; - -} - -function initTrajectory_1426063772() { - var result_1426063773 = ({state: ({angleDeg: 0.0, angleRad: 0.0, speed: 0.0, height: 0.0, vel: {Field0: 0.0, Field1: 0.0}, gravity: {Field0: 0.0, Field1: 0.0}}), points: [], highestPoint: 0, closestPoint: 0, extraPoint: 0, pinnedPoint: 0, color: 0}); - - result_1426063773 = nimCopy(result_1426063773, {closestPoint: (-1), highestPoint: (-1), pinnedPoint: (-1), extraPoint: (-1), state: initCanonState_1426063733(0.0, true, 250.0, vec_1677721936(0.0, 0.3515053763440861), 0.0), points: [], color: 0}, NTI1426063366); - - return result_1426063773; - -} - -function initParabolaState_1426066231() { - -function innerHEX60gensym465_1426066235() { - -function innerHEX60gensym481_1426066308() { - var result_1426066309 = null; - - BeforeRet: { - var a_1426066310 = null; - a_1426066310 = {}; - a_1426066310.mask = 0; - result_1426066309 = a_1426066310; - break BeforeRet; - }; - - return result_1426066309; - - } - - var result_1426066236 = null; - - BeforeRet: { - var a_1426066237 = null; - a_1426066237 = {}; - a_1426066237.zIndex = 0; - a_1426066237.isStatic = false; - a_1426066237.frictionAir = 0; - a_1426066237.friction = 1; - a_1426066237.frictionStatic = 1; - a_1426066237.collisionFilter = innerHEX60gensym481_1426066308(); - a_1426066237.sleepThreshold = 0.5; - a_1426066237.label = "bullet"; - result_1426066236 = a_1426066237; - break BeforeRet; - }; - - return result_1426066236; - - } - - var result_1426066232 = ({engine: null, render: null, runner: null, canvas: null, canvasSize: {Field0: 0.0, Field1: 0.0}, paused: false, frozen: false, mouse: null, mouseCons: null, timeAtClick: ({seconds: 0n, nanosecond: 0}), canon: ({platform: ({body: null, imgSize: {Field0: 0.0, Field1: 0.0}}), base: ({body: null, dragging: false, dragOffset: 0.0, imgSize: {Field0: 0.0, Field1: 0.0}}), body: null, pivot: {Field0: 0.0, Field1: 0.0}, dragOffset: 0.0, bullets: [], bulletOptions: null, flyingBullets: [], bulletRadius: 0, bulletsLimit: 0, dragging: false, imgSize: {Field0: 0.0, Field1: 0.0}, showVxArrow: false, showVyArrow: false, showVArrow: false}), ground: null, blocks: [], trajectories: [], currentTrajectory: 0, draggingPoint: false, followBullet: false, onMousedown: null, onMouseup: null, onMousemove: null, onMouseleave: null, onWheel: null, floatPrecision: 0, startedRendering: false, studentMode: false, showFormulaResults: false, showFormulaProc: false, lastUsed: [], lang: 0}); - - result_1426066232 = nimCopy(result_1426066232, {floatPrecision: 2, showFormulaResults: true, showFormulaProc: true, canon: {bulletRadius: 20, bulletsLimit: 7, showVArrow: true, showVxArrow: true, showVyArrow: true, bulletOptions: innerHEX60gensym465_1426066235(), platform: ({body: null, imgSize: {Field0: 0.0, Field1: 0.0}}), base: ({body: null, dragging: false, dragOffset: 0.0, imgSize: {Field0: 0.0, Field1: 0.0}}), body: null, pivot: {Field0: 0.0, Field1: 0.0}, dragOffset: 0.0, bullets: [], flyingBullets: [], dragging: false, imgSize: {Field0: 0.0, Field1: 0.0}}, trajectories: [initTrajectory_1426063772()], lang: 0, engine: null, render: null, runner: null, canvas: null, canvasSize: {Field0: 0.0, Field1: 0.0}, paused: false, frozen: false, mouse: null, mouseCons: null, timeAtClick: ({seconds: 0n, nanosecond: 0}), ground: null, blocks: [], currentTrajectory: 0, draggingPoint: false, followBullet: false, onMousedown: null, onMouseup: null, onMousemove: null, onMouseleave: null, onWheel: null, startedRendering: false, studentMode: false, lastUsed: []}, NTI1426063369); - - return result_1426066232; - -} - -function wrapObject_1426063895(state_1426063896) { - state_1426063896 = nimCopy(null, state_1426063896, NTI1426063369); - -function innerHEX60gensym15_1426063900() { - -function innerHEX60gensym23_1426063908() { - var result_1426063909 = null; - - BeforeRet: { - var a_1426063910 = null; - a_1426063910 = {}; - a_1426063910.x = 0; - a_1426063910.y = undefined; - result_1426063909 = a_1426063910; - break BeforeRet; - }; - - return result_1426063909; - - } - -function innerHEX60gensym36_1426063952() { - var result_1426063953 = null; - - BeforeRet: { - var a_1426063954 = null; - a_1426063954 = {}; - a_1426063954.x = state_1426063896.canvasSize.Field0; - a_1426063954.y = undefined; - result_1426063953 = a_1426063954; - break BeforeRet; - }; - - return result_1426063953; - - } - - var result_1426063901 = null; - - BeforeRet: { - var a_1426063902 = null; - a_1426063902 = {}; - a_1426063902.min = innerHEX60gensym23_1426063908(); - a_1426063902.max = innerHEX60gensym36_1426063952(); - result_1426063901 = a_1426063902; - break BeforeRet; - }; - - return result_1426063901; - - } - - var result_1426063897 = null; - - result_1426063897 = innerHEX60gensym15_1426063900(); - - return result_1426063897; - -} - -function HEX2EHEX2E_1426063562(a_1426063565, b_1426063566) { - var result_1426063569 = ({a: 0.0, b: 0.0}); - - result_1426063569 = nimCopy(result_1426063569, {a: a_1426063565, b: b_1426063566}, NTI1426063439); - - return result_1426063569; - -} - -function rotationLimit_1426064202(state_1426064203) { - var Temporary1; - - var result_1426064205 = ({a: 0.0, b: 0.0}); - - if ((state_1426064203.canon.imgSize.Field0 < state_1426064203.trajectories[chckIndx(state_1426064203.currentTrajectory, 0, (state_1426064203.trajectories).length - 1)].state.height)) { - Temporary1 = HEX2EHEX2E_1426063562(0.0, 360.0); - } - else { - if (((state_1426064203.canon.imgSize.Field1 / 2.0) < state_1426064203.trajectories[chckIndx(state_1426064203.currentTrajectory, 0, (state_1426064203.trajectories).length - 1)].state.height)) { - Temporary1 = HEX2EHEX2E_1426063562(0.0, 180.0); - } - else { - Temporary1 = HEX2EHEX2E_1426063562(0.0, 180.0); - } - } - result_1426064205 = nimCopy(result_1426064205, Temporary1, NTI1426063439); - - return result_1426064205; - -} - -function HEX2DHEX3D_1426064176(x_1426064178, x_1426064178_Idx, y_1426064179) { - x_1426064178[x_1426064178_Idx] = (x_1426064178[x_1426064178_Idx] - y_1426064179); - - -} - -function round_1426064172(x_1426064174) { - var result_1426064175 = [0.0]; - - if ((0.0 <= x_1426064174)) { - result_1426064175[0] = Math.round(x_1426064174); - } - else { - result_1426064175[0] = Math.ceil(x_1426064174); - if ((0.5 <= (result_1426064175[0] - x_1426064174))) { - HEX2DHEX3D_1426064176(result_1426064175, 0, 1.0); - } - - } - - - return result_1426064175[0]; - -} - -function round_1426064167(x_1426064169, places_1426064170) { - var result_1426064171 = 0.0; - - if ((places_1426064170 == 0)) { - result_1426064171 = round_1426064172(x_1426064169); - } - else { - var mult_1426064180 = Math.pow(10.0, places_1426064170); - result_1426064171 = (round_1426064172((x_1426064169 * mult_1426064180)) / mult_1426064180); - } - - - return result_1426064171; - -} - -function raiseDivByZero() { - raiseException({message: [100,105,118,105,115,105,111,110,32,98,121,32,122,101,114,111], parent: null, m_type: NTI134217742, name: null, trace: [], up: null}, "DivByZeroDefect"); - - -} - -function abs_905969874(x_905969876) { - var result_905969877 = 0.0; - - result_905969877 = Math.abs(x_905969876); - - return result_905969877; - -} - -function normalizeAngle_1426064160(rad_1426064161, p_1426064162) { - var Temporary1; - - var result_1426064163 = [0.0]; - - result_1426064163[0] = round_1426064167(radToDeg_1426063740(rad_1426064161), 0); - HEX2DHEX3D_1426064176(result_1426064163, 0, (divInt(((result_1426064163[0]) | 0), 360) * 360.0)); - if ((result_1426064163[0] < 0.0)) { - Temporary1 = abs_905969874(result_1426064163[0]); - } - else { - if ((0.0 < result_1426064163[0])) { - Temporary1 = (360.0 - result_1426064163[0]); - } - else { - Temporary1 = result_1426064163[0]; - } - } - result_1426064163[0] = Temporary1; - - return result_1426064163[0]; - -} - -function normalizedAngleDeg_1426064191(canon_1426064192, extraRad_1426064193) { - var result_1426064194 = 0.0; - - result_1426064194 = normalizeAngle_1426064160(((canon_1426064192.body.angle) + extraRad_1426064193), false); - - return result_1426064194; - -} - -function contains_1426064233(s_1426064237, value_1426064238) { - var result_1426064239 = false; - - result_1426064239 = ((s_1426064237.a <= value_1426064238) && (value_1426064238 <= s_1426064237.b)); - - return result_1426064239; - -} - -function jsVec_1677721758(v_1677721759) { - v_1677721759 = nimCopy(null, v_1677721759, NTI1677721603); - -function innerHEX60gensym44_1677721773() { - var result_1677721774 = null; - - BeforeRet: { - var a_1677721775 = null; - a_1677721775 = {}; - a_1677721775.x = v_1677721759.Field0; - a_1677721775.y = v_1677721759.Field1; - result_1677721774 = a_1677721775; - break BeforeRet; - }; - - return result_1677721774; - - } - - var result_1677721760 = null; - - result_1677721760 = innerHEX60gensym44_1677721773(); - - return result_1677721760; - -} - -function rotateCanon_1426064221(state_1426064222, rad_1426064226, limit_1426064227) { - var Temporary1; - - BeforeRet: { - if ((rad_1426064226 == 0.0)) { - break BeforeRet; - } - - var rad_1426064228 = rad_1426064226; - if (limit_1426064227) { - var rotationLimit_1426064229 = rotationLimit_1426064202(state_1426064222); - var desiredAngleDeg_1426064230 = normalizedAngleDeg_1426064191(state_1426064222.canon, rad_1426064228); - if (!(contains_1426064233(rotationLimit_1426064229, desiredAngleDeg_1426064230))) { - if ((180.0 < desiredAngleDeg_1426064230)) { - Temporary1 = (360.0 + rotationLimit_1426064229.a); - } - else { - Temporary1 = rotationLimit_1426064229.a; - } - - var lowerLimit_1426064240 = Temporary1; - if ((abs_905969874((desiredAngleDeg_1426064230 - lowerLimit_1426064240)) < abs_905969874((desiredAngleDeg_1426064230 - rotationLimit_1426064229.b)))) { - rad_1426064228 = degToRad_1694498964((normalizedAngleDeg_1426064191(state_1426064222.canon, 0.0) - rotationLimit_1426064229.a)); - } - else { - rad_1426064228 = degToRad_1694498964((normalizedAngleDeg_1426064191(state_1426064222.canon, 0.0) - rotationLimit_1426064229.b)); - } - - } - - } - - Matter.Body.rotate((state_1426064222.canon.body), (rad_1426064228), (jsVec_1677721758(state_1426064222.canon.pivot))); - state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.angleDeg = normalizedAngleDeg_1426064191(state_1426064222.canon, 0.0); - state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.angleRad = degToRad_1694498964(state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.angleDeg); - state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.vel = nimCopy(state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.vel, speedToVelRad_1694498977(state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.speed, state_1426064222.trajectories[chckIndx(state_1426064222.currentTrajectory, 0, (state_1426064222.trajectories).length - 1)].state.angleRad), NTI1677721603); - }; - - -} - -function canonYDiff_1426065254(state_1426065255) { - var result_1426065256 = 0.0; - - result_1426065256 = (state_1426065255.canon.base.imgSize.Field1 * 0.15); - - return result_1426065256; - -} - -function baseYRange_1426065257(state_1426065258) { - var result_1426065260 = ({a: 0.0, b: 0.0}); - - result_1426065260 = nimCopy(result_1426065260, HEX2EHEX2E_1426063562((state_1426065258.canon.imgSize.Field0 + canonYDiff_1426065254(state_1426065258)), ((state_1426065258.canvasSize.Field1 - 80.0) + canonYDiff_1426065254(state_1426065258))), NTI1426063439); - - return result_1426065260; - -} - -function getY_1677721829(body_1677721830) { - var result_1677721831 = 0.0; - - result_1677721831 = (body_1677721830.position.y); - - return result_1677721831; - -} - -function setY_1426065293(body_1426065295, y_1426065296) { - -function innerHEX60gensym248_1426065308() { - var result_1426065309 = null; - - BeforeRet: { - var a_1426065310 = null; - a_1426065310 = {}; - a_1426065310.x = body_1426065295.position.x; - a_1426065310.y = y_1426065296; - result_1426065309 = a_1426065310; - break BeforeRet; - }; - - return result_1426065309; - - } - - Matter.Body.setPosition((body_1426065295), (innerHEX60gensym248_1426065308())); - - -} - -function canonYRange_1426065266(state_1426065267) { - var result_1426065269 = ({a: 0.0, b: 0.0}); - - result_1426065269 = nimCopy(result_1426065269, HEX2EHEX2E_1426063562(state_1426065267.canon.imgSize.Field0, (baseYRange_1426065257(state_1426065267).b - canonYDiff_1426065254(state_1426065267))), NTI1426063439); - - return result_1426065269; - -} - -function getX_1677721816(body_1677721817) { - var result_1677721818 = 0.0; - - result_1677721818 = (body_1677721817.position.x); - - return result_1677721818; - -} - -function setPos_1426065360(body_1426065363, x_1426065364, y_1426065365) { - -function innerHEX60gensym267_1426065377() { - var result_1426065378 = null; - - BeforeRet: { - var a_1426065379 = null; - a_1426065379 = {}; - a_1426065379.x = x_1426065364; - a_1426065379.y = y_1426065365; - result_1426065378 = a_1426065379; - break BeforeRet; - }; - - return result_1426065378; - - } - - Matter.Body.setPosition((body_1426065363), (innerHEX60gensym267_1426065377())); - - -} - -function moveCanonTo_1426065275(state_1426065276, y_1426065277, first_1426065278) { - var Temporary1; - var Temporary2; - - var canonPrevAngle_1426065286 = (state_1426065276.canon.body.angle); - rotateCanon_1426064221(state_1426065276, -(canonPrevAngle_1426065286), false); - if ((y_1426065277 < 0.0)) { - if (first_1426065278) { - Temporary2 = baseYRange_1426065257(state_1426065276).b; - } - else { - Temporary2 = getY_1677721829(state_1426065276.canon.base.body); - } - - Temporary1 = Temporary2; - } - else { - Temporary1 = y_1426065277; - } - - var desiredBaseY_1426065287 = Temporary1; - var baseY_1426065292 = clamp_1426063663(desiredBaseY_1426065287, baseYRange_1426065257(state_1426065276)); - setY_1426065293(state_1426065276.canon.base.body, baseY_1426065292); - var canonY_1426065358 = clamp_1426063663((baseY_1426065292 - canonYDiff_1426065254(state_1426065276)), canonYRange_1426065266(state_1426065276)); - var canonX_1426065359 = (getX_1677721816(state_1426065276.canon.base.body) + (state_1426065276.canon.imgSize.Field0 / 3.0)); - setPos_1426065360(state_1426065276.canon.body, canonX_1426065359, canonY_1426065358); - state_1426065276.canon.pivot = nimCopy(state_1426065276.canon.pivot, vec_1677721936(getX_1677721816(state_1426065276.canon.base.body), canonY_1426065358), NTI1677721603); - state_1426065276.trajectories[chckIndx(state_1426065276.currentTrajectory, 0, (state_1426065276.trajectories).length - 1)].state.height = ((state_1426065276.canvasSize.Field1 - 80.0) - canonY_1426065358); - var platformY_1426065417 = ((baseY_1426065292 * 1.02) + (state_1426065276.canon.platform.imgSize.Field1 / 2.0)); - setY_1426065293(state_1426065276.canon.platform.body, platformY_1426065417); - rotateCanon_1426064221(state_1426065276, canonPrevAngle_1426065286, false); - - -} - -function HEX2A_1677721966(v1_1677721967, a_1677721968) { - var result_1677721969 = {Field0: 0.0, Field1: 0.0}; - - var colontmp__570425505 = (v1_1677721967.Field0 * a_1677721968); - var colontmp__570425506 = (v1_1677721967.Field1 * a_1677721968); - result_1677721969 = nimCopy(result_1677721969, {Field0: colontmp__570425505, Field1: colontmp__570425506}, NTI1677721603); - - return result_1677721969; - -} - -function contains_1459619435(s_1459619439, value_1459619440) { - var result_1459619441 = false; - - result_1459619441 = ((s_1459619439.a <= value_1459619440) && (value_1459619440 <= s_1459619439.b)); - - return result_1459619441; - -} - -function HEX2EHEX2E_1157627952(a_1157627955, b_1157627956) { - var result_1157627957 = ({a: 0, b: 0}); - - result_1157627957 = nimCopy(result_1157627957, {a: a_1157627955, b: b_1157627956}, NTI922746949); - - return result_1157627957; - -} - -function contains_1426064861(a_1426064863, index_1426064864) { - var result_1426064865 = false; - - result_1426064865 = contains_1459619435(HEX2EHEX2E_1157627952(0, (a_1426064863).length - 1), index_1426064864); - - return result_1426064865; - -} - -function HEX2AHEX3D_872417553(x_872417555, x_872417555_Idx, y_872417556) { - x_872417555[x_872417555_Idx] = (x_872417555[x_872417555_Idx] * y_872417556); - - -} - -function HEX5E_1677721994(x_1677721996, y_1677721997) { - var result_1677721998 = [0.0]; - - switch (y_1677721997) { - case 0: - result_1677721998[0] = 1.0; - break; - case 1: - result_1677721998[0] = x_1677721996; - break; - case 2: - result_1677721998[0] = (x_1677721996 * x_1677721996); - break; - case 3: - result_1677721998[0] = ((x_1677721996 * x_1677721996) * x_1677721996); - break; - default: - var x_1677721999 = [x_1677721996]; - var y_1677722000 = y_1677721997; - result_1677721998[0] = 1.0; - Label1: { - Label2: while (true) { - if (!true) break Label2; - if (!(((y_1677722000 & 1) == 0))) { - HEX2AHEX3D_872417553(result_1677721998, 0, x_1677721999[0]); - } - - y_1677722000 = chckRange((y_1677722000 >> 1), 0, 2147483647); - if ((y_1677722000 == 0)) { - break Label1; - } - - HEX2AHEX3D_872417553(x_1677721999, 0, x_1677721999[0]); - } - }; - break; - } - - return result_1677721998[0]; - -} - -function calcTotalTime_1426063464(initialState_1426063465) { - var result_1426063466 = 0.0; - - result_1426063466 = ((initialState_1426063465.vel.Field1 + Math.sqrt((HEX5E_1677721994(initialState_1426063465.vel.Field1, 2) + ((2.0 * initialState_1426063465.gravity.Field1) * initialState_1426063465.height)))) / initialState_1426063465.gravity.Field1); - - return result_1426063466; - -} - -function HEX5BHEX5D_1694499019(s_1694499023, x_1694499024) { - var result_1694499025 = []; - - var a_1694499027 = x_1694499024.a; - var L_1694499033 = addInt(subInt(subInt((s_1694499023).length, x_1694499024.b), a_1694499027), 1); - result_1694499025 = new Array(chckRange(L_1694499033, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1694499033, 0, 2147483647) ; ++i) { result_1694499025[i] = 0.0; } Label1: { - var i_1694499042 = 0; - var i_570425509 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425509 < L_1694499033)) break Label3; - i_1694499042 = i_570425509; - result_1694499025[chckIndx(i_1694499042, 0, (result_1694499025).length - 1)] = s_1694499023[chckIndx(addInt(i_1694499042, a_1694499027), 0, (s_1694499023).length - 1)]; - i_570425509 = addInt(i_570425509, 1); - } - }; - }; - - return result_1694499025; - -} - -function HEX2EHEX2E_1073741928(a_1073741931, b_1073741932) { - var result_1073741935 = ({a: 0, b: 0}); - - result_1073741935 = nimCopy(result_1073741935, {a: a_1073741931, b: b_1073741932}, NTI1073741909); - - return result_1073741935; - -} - -function calcX_1426063481(initialState_1426063482, t_1426063483) { - var result_1426063484 = 0.0; - - result_1426063484 = (t_1426063483 * initialState_1426063482.vel.Field0); - - return result_1426063484; - -} - -function calcY_1426063485(initialState_1426063486, t_1426063487) { - var result_1426063488 = 0.0; - - result_1426063488 = ((initialState_1426063486.height + (t_1426063487 * initialState_1426063486.vel.Field1)) - ((initialState_1426063486.gravity.Field1 * HEX5E_1677721994(t_1426063487, 2)) / 2.0)); - - return result_1426063488; - -} - -function calcPos_1426063493(initialState_1426063494, t_1426063495) { - var result_1426063496 = {Field0: 0.0, Field1: 0.0}; - - result_1426063496 = nimCopy(result_1426063496, vec_1677721936(calcX_1426063481(initialState_1426063494, t_1426063495), calcY_1426063485(initialState_1426063494, t_1426063495)), NTI1677721603); - - return result_1426063496; - -} - -function calcVel_1426063497(initialState_1426063498, t_1426063499) { - var result_1426063500 = {Field0: 0.0, Field1: 0.0}; - - result_1426063500 = nimCopy(result_1426063500, vec_1677721936(initialState_1426063498.vel.Field0, (initialState_1426063498.vel.Field1 - (initialState_1426063498.gravity.Field1 * t_1426063499))), NTI1677721603); - - return result_1426063500; - -} - -function magnitude_1426063518(v_1426063519) { - var result_1426063520 = 0.0; - - result_1426063520 = Math.sqrt((HEX5E_1677721994(v_1426063519.Field0, 2) + HEX5E_1677721994(v_1426063519.Field1, 2))); - - return result_1426063520; - -} - -function HEX2BHEX3D_872417557(x_872417559, x_872417559_Idx, y_872417560) { - x_872417559[x_872417559_Idx] = (x_872417559[x_872417559_Idx] + y_872417560); - - -} - -function calcMaxHeight_1426063474(initialState_1426063475) { - var result_1426063476 = 0.0; - - result_1426063476 = (initialState_1426063475.height + (HEX5E_1677721994(initialState_1426063475.vel.Field1, 2) / (2.0 * initialState_1426063475.gravity.Field1))); - - return result_1426063476; - -} - -function HEX5BHEX5D_1426064495(s_1426064497, i_1426064498) { - var result_1426064499 = null; - - result_1426064499 = s_1426064497[chckIndx(subInt((s_1426064497).length, i_1426064498), 0, (s_1426064497).length - 1)]; - - return result_1426064499; - -} - -function calcMaxRange_1426063471(initialState_1426063472) { - var result_1426063473 = 0.0; - - result_1426063473 = (initialState_1426063472.vel.Field0 * calcTotalTime_1426063464(initialState_1426063472)); - - return result_1426063473; - -} - -function toMuSpeed_1694499111(speed_1694499112) { - var result_1694499113 = 0.0; - - result_1694499113 = (speed_1694499112 / 10.0); - - return result_1694499113; - -} - -function toMuDistance_1694499108(m_1694499109) { - var result_1694499110 = 0.0; - - result_1694499110 = (m_1694499109 / 10.0); - - return result_1694499110; - -} - -function both_1677722062(v_1677722063, p_1677722066) { - var result_1677722067 = {Field0: 0.0, Field1: 0.0}; - - result_1677722067 = nimCopy(result_1677722067, vec_1677721936(p_1677722066(v_1677722063.Field0), p_1677722066(v_1677722063.Field1)), NTI1677721603); - - return result_1677722067; - -} - -function toMuAcceleration_1694499114(acceleration_1694499115) { - var result_1694499116 = 0.0; - - result_1694499116 = (acceleration_1694499115 / 10.0); - - return result_1694499116; - -} - -function toMu_1426063809(state_1426063810) { - -function HEX3Aanonymous_1426063831(a_1426063832) { - var result_1426063833 = 0.0; - - result_1426063833 = toMuAcceleration_1694499114(a_1426063832); - - return result_1426063833; - - } - - var result_1426063811 = ({angleDeg: 0.0, angleRad: 0.0, speed: 0.0, height: 0.0, vel: {Field0: 0.0, Field1: 0.0}, gravity: {Field0: 0.0, Field1: 0.0}}); - - result_1426063811 = nimCopy(result_1426063811, state_1426063810, NTI1426063363); - result_1426063811.speed = toMuSpeed_1694499111(result_1426063811.speed); - result_1426063811.height = toMuDistance_1694499108(result_1426063811.height); - result_1426063811.gravity = nimCopy(result_1426063811.gravity, both_1677722062(result_1426063811.gravity, HEX3Aanonymous_1426063831), NTI1677721603); - result_1426063811.vel = nimCopy(result_1426063811.vel, speedToVelRad_1694498977(result_1426063811.speed, result_1426063811.angleRad), NTI1677721603); - - return result_1426063811; - -} - -function classify_905969871(x_905969872) { - var result_905969873 = 0; - - BeforeRet: { - if ((x_905969872 == 0.0)) { - if (((1.0 / x_905969872) == Infinity)) { - result_905969873 = 2; - break BeforeRet; - } - else { - result_905969873 = 3; - break BeforeRet; - } - - } - - if (((x_905969872 * 0.5) == x_905969872)) { - if ((0.0 < x_905969872)) { - result_905969873 = 5; - break BeforeRet; - } - else { - result_905969873 = 6; - break BeforeRet; - } - - } - - if (!((x_905969872 == x_905969872))) { - result_905969873 = 4; - break BeforeRet; - } - - if ((abs_905969874(x_905969872) < 2.225073858507201e-308)) { - result_905969873 = 1; - break BeforeRet; - } - - result_905969873 = 0; - break BeforeRet; - }; - - return result_905969873; - -} - -function HEX24_33557559(x_33557561) { - var result_33557562 = [[]]; - - addFloat_33557563(result_33557562, 0, x_33557561); - - return result_33557562[0]; - -} - -function parseSaturatedNatural_889192854(s_889192855, b_889192856, b_889192856_Idx) { - var Temporary1; - var Temporary4; - - var result_889192857 = 0; - - var i_889192858 = 0; - if (((i_889192858 < (s_889192855).length) && (s_889192855[chckIndx(i_889192858, 0, (s_889192855).length - 1)] == 43))) { - i_889192858 = addInt(i_889192858, 1); - } - - if (!(i_889192858 < (s_889192855).length)) Temporary1 = false; else { Temporary1 = (ConstSet8[s_889192855[chckIndx(i_889192858, 0, (s_889192855).length - 1)]] != undefined); } if (Temporary1) { - b_889192856[b_889192856_Idx] = 0; - Label2: { - Label3: while (true) { - if (!(i_889192858 < (s_889192855).length)) Temporary4 = false; else { Temporary4 = (ConstSet9[s_889192855[chckIndx(i_889192858, 0, (s_889192855).length - 1)]] != undefined); } if (!Temporary4) break Label3; - var c_889192887 = subInt(s_889192855[chckIndx(i_889192858, 0, (s_889192855).length - 1)], 48); - if ((b_889192856[b_889192856_Idx] <= divInt(subInt(2147483647, c_889192887), 10))) { - b_889192856[b_889192856_Idx] = addInt(mulInt(b_889192856[b_889192856_Idx], 10), c_889192887); - } - else { - b_889192856[b_889192856_Idx] = 2147483647; - } - - i_889192858 = addInt(i_889192858, 1); - Label5: { - Label6: while (true) { - if (!((i_889192858 < (s_889192855).length) && (s_889192855[chckIndx(i_889192858, 0, (s_889192855).length - 1)] == 95))) break Label6; - i_889192858 = addInt(i_889192858, 1); - } - }; - } - }; - result_889192857 = i_889192858; - } - - - return result_889192857; - -} - -function parseSaturatedNatural_889193360(s_889193361, b_889193362, b_889193362_Idx, start_889193363) { - var result_889193364 = 0; - - result_889193364 = parseSaturatedNatural_889192854((s_889193361.slice(start_889193363, (s_889193361).length - 1 + 1)), b_889193362, b_889193362_Idx); - - return result_889193364; - -} - -function HEX5BHEX5D_872416539(s_872416542, x_872416543) { - var result_872416544 = []; - - var a_872416546 = x_872416543.a; - var L_872416548 = addInt(subInt(subInt((s_872416542).length, x_872416543.b), a_872416546), 1); - result_872416544 = nimCopy(null, mnewString(chckRange(L_872416548, 0, 2147483647)), NTI33554449); - Label1: { - var i_872416553 = 0; - var i_754975119 = 0; - Label2: { - Label3: while (true) { - if (!(i_754975119 < L_872416548)) break Label3; - i_872416553 = i_754975119; - result_872416544[chckIndx(i_872416553, 0, (result_872416544).length - 1)] = s_872416542[chckIndx(addInt(i_872416553, a_872416546), 0, (s_872416542).length - 1)]; - i_754975119 = addInt(i_754975119, 1); - } - }; - }; - - return result_872416544; - -} - -function parseStandardFormatSpecifier_1577058362(s_1577058363, start_1577058364, ignoreUnknownSuffix_1577058365) { - var Temporary1; - var Temporary2; - - var result_1577058366 = ({fill: 0, align: 0, sign: 0, alternateForm: false, padWithZero: false, minimumWidth: 0, precision: 0, typ: 0, endPosition: 0}); - - result_1577058366.fill = 32; - result_1577058366.align = 0; - result_1577058366.sign = 45; - var i_1577058368 = start_1577058364; - if (((addInt(i_1577058368, 1) < (s_1577058363).length) && (ConstSet4[s_1577058363[chckIndx(addInt(i_1577058368, 1), 0, (s_1577058363).length - 1)]] != undefined))) { - result_1577058366.fill = s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]; - result_1577058366.align = s_1577058363[chckIndx(addInt(i_1577058368, 1), 0, (s_1577058363).length - 1)]; - i_1577058368 = addInt(i_1577058368, 2); - } - else { - if (((i_1577058368 < (s_1577058363).length) && (ConstSet5[s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]] != undefined))) { - result_1577058366.align = s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]; - i_1577058368 = addInt(i_1577058368, 1); - } - } - if (((i_1577058368 < (s_1577058363).length) && (ConstSet6[s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]] != undefined))) { - result_1577058366.sign = s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]; - i_1577058368 = addInt(i_1577058368, 1); - } - - if (((i_1577058368 < (s_1577058363).length) && (s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)] == 35))) { - result_1577058366.alternateForm = true; - i_1577058368 = addInt(i_1577058368, 1); - } - - if (!((addInt(i_1577058368, 1) < (s_1577058363).length) && (s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)] == 48))) Temporary1 = false; else { Temporary1 = (ConstSet7[s_1577058363[chckIndx(addInt(i_1577058368, 1), 0, (s_1577058363).length - 1)]] != undefined); } if (Temporary1) { - result_1577058366.padWithZero = true; - i_1577058368 = addInt(i_1577058368, 1); - } - - var parsedLength_1577058410 = parseSaturatedNatural_889193360(s_1577058363, result_1577058366, "minimumWidth", i_1577058368); - i_1577058368 = addInt(i_1577058368, parsedLength_1577058410); - if (((i_1577058368 < (s_1577058363).length) && (s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)] == 46))) { - i_1577058368 = addInt(i_1577058368, 1); - var parsedLengthB_1577058421 = parseSaturatedNatural_889193360(s_1577058363, result_1577058366, "precision", i_1577058368); - i_1577058368 = addInt(i_1577058368, parsedLengthB_1577058421); - } - else { - result_1577058366.precision = (-1); - } - - if (!(i_1577058368 < (s_1577058363).length)) Temporary2 = false; else { Temporary2 = (ConstSet10[s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]] != undefined); } if (Temporary2) { - result_1577058366.typ = s_1577058363[chckIndx(i_1577058368, 0, (s_1577058363).length - 1)]; - i_1577058368 = addInt(i_1577058368, 1); - } - - result_1577058366.endPosition = i_1577058368; - if ((!((i_1577058368 == (s_1577058363).length)) && !(ignoreUnknownSuffix_1577058365))) { - raiseException({message: ([105,110,118,97,108,105,100,32,102,111,114,109,97,116,32,115,116,114,105,110,103,44,32,99,97,110,110,111,116,32,112,97,114,115,101,58,32] || []).concat(HEX5BHEX5D_872416539(s_1577058363, HEX2EHEX2E_1073741928(i_1577058368, 1)) || []), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - } - - - return result_1577058366; - -} - -function nsuformatBiggestFloat(f_872417347, format_872417348, precision_872417349, decimalSep_872417350) { - var result_872417351 = []; - - var precision_872417352 = precision_872417349; - if ((precision_872417352 == (-1))) { - precision_872417352 = 6; - } - - var res_872417353 = null; - switch (format_872417348) { - case 0: - res_872417353 = f_872417347.toString(); - break; - case 1: - res_872417353 = f_872417347.toFixed(precision_872417352); - break; - case 2: - res_872417353 = f_872417347.toExponential(precision_872417352); - break; - } - result_872417351 = nimCopy(null, cstrToNimstr(res_872417353), NTI33554449); - if (((1.0 / f_872417347) == -Infinity)) { - result_872417351 = nimCopy(null, ([45] || []).concat(cstrToNimstr(res_872417353) || []), NTI33554449); - } - - Label1: { - var i_872417358 = 0; - var colontmp__570425532 = 0; - colontmp__570425532 = (result_872417351).length; - var i_570425533 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425533 < colontmp__570425532)) break Label3; - i_872417358 = i_570425533; - if ((ConstSet11[result_872417351[chckIndx(i_872417358, 0, (result_872417351).length - 1)]] != undefined)) { - result_872417351[chckIndx(i_872417358, 0, (result_872417351).length - 1)] = decimalSep_872417350; - } - - i_570425533 = addInt(i_570425533, 1); - } - }; - }; - - return result_872417351; - -} - -function insert_33558003(x_33558004, x_33558004_Idx, item_33558005, i_33558006) { - var Temporary1; - - var xl_33558007 = (x_33558004[x_33558004_Idx]).length; - if (x_33558004[x_33558004_Idx].length < (Temporary1 = chckRange(addInt(xl_33558007, (item_33558005).length), 0, 2147483647), Temporary1)) { for (var i = x_33558004[x_33558004_Idx].length; i < Temporary1; ++i) x_33558004[x_33558004_Idx].push(0); } - else {x_33558004[x_33558004_Idx].length = Temporary1; }; - var j_33558008 = subInt(xl_33558007, 1); - Label2: { - Label3: while (true) { - if (!(i_33558006 <= j_33558008)) break Label3; - x_33558004[x_33558004_Idx][chckIndx(addInt(j_33558008, (item_33558005).length), 0, (x_33558004[x_33558004_Idx]).length - 1)] = x_33558004[x_33558004_Idx][chckIndx(j_33558008, 0, (x_33558004[x_33558004_Idx]).length - 1)]; - j_33558008 = subInt(j_33558008, 1); - } - }; - j_33558008 = 0; - Label4: { - Label5: while (true) { - if (!(j_33558008 < (item_33558005).length)) break Label5; - x_33558004[x_33558004_Idx][chckIndx(addInt(j_33558008, i_33558006), 0, (x_33558004[x_33558004_Idx]).length - 1)] = item_33558005[chckIndx(j_33558008, 0, (item_33558005).length - 1)]; - j_33558008 = addInt(j_33558008, 1); - } - }; - - -} - -function nsuRepeatChar(c_872416353, count_872416354) { - var result_872416355 = []; - - result_872416355 = nimCopy(null, mnewString(count_872416354), NTI33554449); - Label1: { - var i_872416360 = 0; - var colontmp__570425538 = 0; - colontmp__570425538 = subInt(count_872416354, 1); - var res_570425539 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425539 <= colontmp__570425538)) break Label3; - i_872416360 = res_570425539; - result_872416355[chckIndx(i_872416360, 0, (result_872416355).length - 1)] = c_872416353; - res_570425539 = addInt(res_570425539, 1); - } - }; - }; - - return result_872416355; - -} - -function validateUtf8_1140851024(s_1140851025) { - var result_1140851026 = 0; - - BeforeRet: { - var i_1140851027 = 0; - var L_1140851031 = (s_1140851025).length; - Label1: { - Label2: while (true) { - if (!(i_1140851027 < L_1140851031)) break Label2; - if ((s_1140851025[chckIndx(i_1140851027, 0, (s_1140851025).length - 1)] <= 127)) { - i_1140851027 = addInt(i_1140851027, 1); - } - else { - if (((s_1140851025[chckIndx(i_1140851027, 0, (s_1140851025).length - 1)] >>> 5) == 6)) { - if ((s_1140851025[chckIndx(i_1140851027, 0, (s_1140851025).length - 1)] < 194)) { - result_1140851026 = i_1140851027; - break BeforeRet; - } - - if (((addInt(i_1140851027, 1) < L_1140851031) && ((s_1140851025[chckIndx(addInt(i_1140851027, 1), 0, (s_1140851025).length - 1)] >>> 6) == 2))) { - i_1140851027 = addInt(i_1140851027, 2); - } - else { - result_1140851026 = i_1140851027; - break BeforeRet; - } - - } - else { - if (((s_1140851025[chckIndx(i_1140851027, 0, (s_1140851025).length - 1)] >>> 4) == 14)) { - if ((((addInt(i_1140851027, 2) < L_1140851031) && ((s_1140851025[chckIndx(addInt(i_1140851027, 1), 0, (s_1140851025).length - 1)] >>> 6) == 2)) && ((s_1140851025[chckIndx(addInt(i_1140851027, 2), 0, (s_1140851025).length - 1)] >>> 6) == 2))) { - i_1140851027 = addInt(i_1140851027, 3); - } - else { - result_1140851026 = i_1140851027; - break BeforeRet; - } - - } - else { - if (((s_1140851025[chckIndx(i_1140851027, 0, (s_1140851025).length - 1)] >>> 3) == 30)) { - if (((((addInt(i_1140851027, 3) < L_1140851031) && ((s_1140851025[chckIndx(addInt(i_1140851027, 1), 0, (s_1140851025).length - 1)] >>> 6) == 2)) && ((s_1140851025[chckIndx(addInt(i_1140851027, 2), 0, (s_1140851025).length - 1)] >>> 6) == 2)) && ((s_1140851025[chckIndx(addInt(i_1140851027, 3), 0, (s_1140851025).length - 1)] >>> 6) == 2))) { - i_1140851027 = addInt(i_1140851027, 4); - } - else { - result_1140851026 = i_1140851027; - break BeforeRet; - } - - } - else { - result_1140851026 = i_1140851027; - break BeforeRet; - } - }}} - } - }; - result_1140851026 = (-1); - break BeforeRet; - }; - - return result_1140851026; - -} - -function validateUtf8_1140858049(s_1140858050) { - var result_1140858051 = 0; - - result_1140858051 = validateUtf8_1140851024((s_1140858050.slice(0, (s_1140858050).length - 1 + 1))); - - return result_1140858051; - -} - -function nucruneLen(s_1140850716) { - var result_1140850717 = 0; - - result_1140850717 = 0; - var i_1140850718 = 0; - Label1: { - Label2: while (true) { - if (!(i_1140850718 < (s_1140850716).length)) break Label2; - if ((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] <= 127)) { - i_1140850718 = addInt(i_1140850718, 1); - } - else { - if (((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] >>> 5) == 6)) { - i_1140850718 = addInt(i_1140850718, 2); - } - else { - if (((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] >>> 4) == 14)) { - i_1140850718 = addInt(i_1140850718, 3); - } - else { - if (((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] >>> 3) == 30)) { - i_1140850718 = addInt(i_1140850718, 4); - } - else { - if (((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] >>> 2) == 62)) { - i_1140850718 = addInt(i_1140850718, 5); - } - else { - if (((s_1140850716[chckIndx(i_1140850718, 0, (s_1140850716).length - 1)] >>> 1) == 126)) { - i_1140850718 = addInt(i_1140850718, 6); - } - else { - i_1140850718 = addInt(i_1140850718, 1); - } - }}}}} - result_1140850717 = addInt(result_1140850717, 1); - } - }; - - return result_1140850717; - -} - -function runeLen_1140857877(s_1140857878) { - var result_1140857879 = 0; - - result_1140857879 = nucruneLen((s_1140857878.slice(0, (s_1140857878).length - 1 + 1))); - - return result_1140857879; - -} - -function alignString_1577058324(s_1577058325, minimumWidth_1577058326, align_1577058327, fill_1577058328) { - var Temporary1; - - var result_1577058329 = []; - - if ((minimumWidth_1577058326 == 0)) { - result_1577058329 = nimCopy(null, s_1577058325, NTI33554449); - } - else { - if ((validateUtf8_1140858049(s_1577058325) == (-1))) { - Temporary1 = runeLen_1140857877(s_1577058325); - } - else { - Temporary1 = (s_1577058325).length; - } - - var sRuneLen_1577058330 = Temporary1; - var toFill_1577058331 = subInt(minimumWidth_1577058326, sRuneLen_1577058330); - if ((toFill_1577058331 <= 0)) { - result_1577058329 = nimCopy(null, s_1577058325, NTI33554449); - } - else { - if (((align_1577058327 == 60) || (align_1577058327 == 0))) { - result_1577058329 = nimCopy(null, (s_1577058325 || []).concat(nsuRepeatChar(fill_1577058328, chckRange(toFill_1577058331, 0, 2147483647)) || []), NTI33554449); - } - else { - if ((align_1577058327 == 94)) { - var half_1577058332 = divInt(toFill_1577058331, 2); - result_1577058329 = nimCopy(null, (nsuRepeatChar(fill_1577058328, chckRange(half_1577058332, 0, 2147483647)) || []).concat(s_1577058325 || [],nsuRepeatChar(fill_1577058328, chckRange(subInt(toFill_1577058331, half_1577058332), 0, 2147483647)) || []), NTI33554449); - } - else { - result_1577058329 = nimCopy(null, (nsuRepeatChar(fill_1577058328, chckRange(toFill_1577058331, 0, 2147483647)) || []).concat(s_1577058325 || []), NTI33554449); - } - }} - } - - - return result_1577058329; - -} - -function nsuToUpperAsciiChar(c_872415336) { - var result_872415337 = 0; - - if ((ConstSet13[c_872415336] != undefined)) { - result_872415337 = (c_872415336 ^ 32); - } - else { - result_872415337 = c_872415336; - } - - - return result_872415337; - -} - -function nsuToUpperAsciiStr(s_872415343) { - var result_872415344 = []; - - result_872415344 = nimCopy(null, mnewString(chckRange((s_872415343).length, 0, 2147483647)), NTI33554449); - Label1: { - var iHEX60gensym11_872415350 = 0; - var colontmp__570425544 = 0; - colontmp__570425544 = subInt((s_872415343).length, 1); - var res_570425545 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425545 <= colontmp__570425544)) break Label3; - iHEX60gensym11_872415350 = res_570425545; - result_872415344[chckIndx(iHEX60gensym11_872415350, 0, (result_872415344).length - 1)] = nsuToUpperAsciiChar(s_872415343[chckIndx(iHEX60gensym11_872415350, 0, (s_872415343).length - 1)]); - res_570425545 = addInt(res_570425545, 1); - } - }; - }; - - return result_872415344; - -} - -function formatValue_1426064018(result_1426064020, result_1426064020_Idx, value_1426064021, specifier_1426064022) { - var Temporary1; - - BeforeRet: { - if (((specifier_1426064022).length == 0)) { - result_1426064020[result_1426064020_Idx].push.apply(result_1426064020[result_1426064020_Idx], HEX24_33557559(value_1426064021));; - break BeforeRet; - } - - var spec_1426064026 = parseStandardFormatSpecifier_1577058362(specifier_1426064022, 0, false); - var fmode_1426064027 = 0; - switch (spec_1426064026.typ) { - case 101: - case 69: - fmode_1426064027 = 2; - break; - case 102: - case 70: - fmode_1426064027 = 1; - break; - case 103: - case 71: - fmode_1426064027 = 0; - break; - case 0: - break; - default: - raiseException({message: (makeNimstrLit("invalid type in format string for number, expected one of \'e\', \'E\', \'f\', \'F\', \'g\', \'G\' but got: ") || []).concat([spec_1426064026.typ]), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - break; - } - var f_1426064029 = [nsuformatBiggestFloat(value_1426064021, fmode_1426064027, chckRange(spec_1426064026.precision, (-1), 32), 46)]; - var sign_1426064030 = false; - if ((0.0 <= value_1426064021)) { - if (!((spec_1426064026.sign == 45))) { - sign_1426064030 = true; - if ((value_1426064021 == 0.0)) { - if (((1.0 / value_1426064021) == Infinity)) { - insert_33558003(f_1426064029, 0, nimCharToStr(spec_1426064026.sign), 0); - } - - } - else { - insert_33558003(f_1426064029, 0, nimCharToStr(spec_1426064026.sign), 0); - } - - } - - } - else { - sign_1426064030 = true; - } - - if (spec_1426064026.padWithZero) { - var signStr_1426064031 = []; - if (sign_1426064030) { - signStr_1426064031 = nimCopy(null, nimCharToStr(f_1426064029[0][chckIndx(0, 0, (f_1426064029[0]).length - 1)]), NTI33554449); - f_1426064029[0] = nimCopy(null, HEX5BHEX5D_872416539(f_1426064029[0], HEX2EHEX2E_1073741928(1, 1)), NTI33554449); - } - - var toFill_1426064053 = subInt(subInt(spec_1426064026.minimumWidth, (f_1426064029[0]).length), (sign_1426064030 ? 1 : 0)); - if ((0 < toFill_1426064053)) { - f_1426064029[0] = nimCopy(null, (nsuRepeatChar(48, chckRange(toFill_1426064053, 0, 2147483647)) || []).concat(f_1426064029[0] || []), NTI33554449); - } - - if (sign_1426064030) { - f_1426064029[0] = nimCopy(null, (signStr_1426064031 || []).concat(f_1426064029[0] || []), NTI33554449); - } - - } - - if ((spec_1426064026.align == 0)) { - Temporary1 = 62; - } - else { - Temporary1 = spec_1426064026.align; - } - - var align_1426064054 = Temporary1; - var res_1426064055 = alignString_1577058324(f_1426064029[0], spec_1426064026.minimumWidth, align_1426064054, spec_1426064026.fill); - if ((ConstSet12[spec_1426064026.typ] != undefined)) { - result_1426064020[result_1426064020_Idx].push.apply(result_1426064020[result_1426064020_Idx], nsuToUpperAsciiStr(res_1426064055));; - } - else { - result_1426064020[result_1426064020_Idx].push.apply(result_1426064020[result_1426064020_Idx], res_1426064055);; - } - - }; - - -} - -function mkDigit_1577058309(v_1577058310, typ_1577058311) { - var Temporary1; - - var result_1577058312 = []; - - if (!((v_1577058310 < 26))) { - failedAssertImpl_268435541([115,116,114,102,111,114,109,97,116,46,110,105,109,40,51,50,52,44,32,57,41,32,96,118,32,60,32,50,54,96,32]); - } - - if ((v_1577058310 < 10)) { - result_1577058312 = nimCopy(null, nimCharToStr(chckRange(addInt(48, v_1577058310), 0, 255)), NTI33554449); - } - else { - if ((typ_1577058311 == 120)) { - Temporary1 = 97; - } - else { - Temporary1 = 65; - } - - result_1577058312 = nimCopy(null, nimCharToStr(chckRange(subInt(addInt(Temporary1, v_1577058310), 10), 0, 255)), NTI33554449); - } - - - return result_1577058312; - -} - -function formatInt_2214592759(n_2214592761, radix_2214592762, spec_2214592763) { - var Temporary1; - - var result_2214592764 = []; - - var n_2214592767 = BigInt(n_2214592761); - var negative_2214592768 = (n_2214592767 < 0n); - if (negative_2214592768) { - Temporary1 = BigInt.asUintN(64, (BigInt.asUintN(64, ~(n_2214592767)) + 1n)); - } - else { - Temporary1 = BigInt.asUintN(64, n_2214592767); - } - - var v_2214592769 = Temporary1; - var xx_2214592770 = []; - if (spec_2214592763.alternateForm) { - switch (spec_2214592763.typ) { - case 88: - xx_2214592770 = nimCopy(null, [48,120], NTI33554449); - break; - case 120: - xx_2214592770 = nimCopy(null, [48,120], NTI33554449); - break; - case 98: - xx_2214592770 = nimCopy(null, [48,98], NTI33554449); - break; - case 111: - xx_2214592770 = nimCopy(null, [48,111], NTI33554449); - break; - default: - break; - } - } - - if ((v_2214592769 == 0n)) { - result_2214592764 = nimCopy(null, [48], NTI33554449); - } - else { - result_2214592764 = nimCopy(null, [], NTI33554449); - Label2: { - Label3: while (true) { - if (!(0n < v_2214592769)) break Label3; - var d_2214592771 = (v_2214592769 % BigInt.asUintN(64, BigInt(radix_2214592762))); - v_2214592769 = BigInt.asUintN(64, (v_2214592769 / BigInt.asUintN(64, BigInt(radix_2214592762)))); - result_2214592764.push.apply(result_2214592764, mkDigit_1577058309(chckRange(Number(d_2214592771), (-2147483648), 2147483647), spec_2214592763.typ));; - } - }; - Label4: { - var idx_2214592776 = 0; - var colontmp__570425549 = 0; - colontmp__570425549 = divInt((result_2214592764).length, 2); - var i_570425550 = 0; - Label5: { - Label6: while (true) { - if (!(i_570425550 < colontmp__570425549)) break Label6; - idx_2214592776 = i_570425550; - var Temporary7 = result_2214592764[chckIndx(idx_2214592776, 0, (result_2214592764).length - 1)]; result_2214592764[chckIndx(idx_2214592776, 0, (result_2214592764).length - 1)] = result_2214592764[chckIndx(subInt(subInt((result_2214592764).length, idx_2214592776), 1), 0, (result_2214592764).length - 1)]; result_2214592764[chckIndx(subInt(subInt((result_2214592764).length, idx_2214592776), 1), 0, (result_2214592764).length - 1)] = Temporary7; i_570425550 = addInt(i_570425550, 1); - } - }; - }; - } - - if (spec_2214592763.padWithZero) { - var sign_2214592781 = (negative_2214592768 || !((spec_2214592763.sign == 45))); - var toFill_2214592785 = subInt(subInt(subInt(spec_2214592763.minimumWidth, (result_2214592764).length), (xx_2214592770).length), (sign_2214592781 ? 1 : 0)); - if ((0 < toFill_2214592785)) { - result_2214592764 = nimCopy(null, (nsuRepeatChar(48, chckRange(toFill_2214592785, 0, 2147483647)) || []).concat(result_2214592764 || []), NTI33554449); - } - - } - - if (negative_2214592768) { - result_2214592764 = nimCopy(null, ([45] || []).concat(xx_2214592770 || [],result_2214592764 || []), NTI33554449); - } - else { - if (!((spec_2214592763.sign == 45))) { - result_2214592764 = nimCopy(null, [spec_2214592763.sign].concat(xx_2214592770 || [],result_2214592764 || []), NTI33554449); - } - else { - result_2214592764 = nimCopy(null, (xx_2214592770 || []).concat(result_2214592764 || []), NTI33554449); - } - } - if ((spec_2214592763.align == 60)) { - Label8: { - var i_2214592790 = 0; - var colontmp__570425553 = 0; - colontmp__570425553 = (result_2214592764).length; - var i_570425554 = colontmp__570425553; - Label9: { - Label10: while (true) { - if (!(i_570425554 < spec_2214592763.minimumWidth)) break Label10; - i_2214592790 = i_570425554; - addChar(result_2214592764, spec_2214592763.fill);; - i_570425554 = addInt(i_570425554, 1); - } - }; - }; - } - else { - var toFill_2214592791 = subInt(spec_2214592763.minimumWidth, (result_2214592764).length); - if ((spec_2214592763.align == 94)) { - var half_2214592792 = divInt(toFill_2214592791, 2); - result_2214592764 = nimCopy(null, (nsuRepeatChar(spec_2214592763.fill, chckRange(half_2214592792, 0, 2147483647)) || []).concat(result_2214592764 || [],nsuRepeatChar(spec_2214592763.fill, chckRange(subInt(toFill_2214592791, half_2214592792), 0, 2147483647)) || []), NTI33554449); - } - else { - if ((0 < toFill_2214592791)) { - result_2214592764 = nimCopy(null, (nsuRepeatChar(spec_2214592763.fill, chckRange(toFill_2214592791, 0, 2147483647)) || []).concat(result_2214592764 || []), NTI33554449); - } - - } - - } - - - return result_2214592764; - -} - -function formatValue_1426064005(result_1426064007, result_1426064007_Idx, value_1426064008, specifier_1426064009) { - BeforeRet: { - if (((specifier_1426064009).length == 0)) { - result_1426064007[result_1426064007_Idx].push.apply(result_1426064007[result_1426064007_Idx], HEX24_385875976(value_1426064008));; - break BeforeRet; - } - - var spec_1426064010 = parseStandardFormatSpecifier_1577058362(specifier_1426064009, 0, false); - var radix_1426064011 = 10; - switch (spec_1426064010.typ) { - case 120: - case 88: - radix_1426064011 = 16; - break; - case 100: - case 0: - break; - case 98: - radix_1426064011 = 2; - break; - case 111: - radix_1426064011 = 8; - break; - default: - raiseException({message: (makeNimstrLit("invalid type in format string for number, expected one of \'x\', \'X\', \'b\', \'d\', \'o\' but got: ") || []).concat([spec_1426064010.typ]), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - break; - } - result_1426064007[result_1426064007_Idx].push.apply(result_1426064007[result_1426064007_Idx], formatInt_2214592759(value_1426064008, radix_1426064011, spec_1426064010));; - }; - - -} - -function strfloat_1426063991(state_1426063992, f_1426063993) { - var Temporary1; - - var result_1426063994 = [[]]; - - if ((classify_905969871(f_1426063993) == 3)) { - Temporary1 = 0.0; - } - else { - Temporary1 = f_1426063993; - } - - var f_1426064000 = Temporary1; - Label2: { - var fmtRes_1426064004 = [mnewString(0)]; - fmtRes_1426064004[0].push.apply(fmtRes_1426064004[0], [46]);; - formatValue_1426064005(fmtRes_1426064004, 0, state_1426063992.floatPrecision, []); - fmtRes_1426064004[0].push.apply(fmtRes_1426064004[0], [102]);; - }; - formatValue_1426064018(result_1426063994, 0, f_1426064000, fmtRes_1426064004[0]); - - return result_1426063994[0]; - -} - -function unsetDisabledTooltip_1426064420(id_1426064422) { - var Temporary1; - - var ele_1426064424 = id_1426064422; - if (!ele_1426064424.hasAttribute("data-tooltip")) Temporary1 = false; else { Temporary1 = ele_1426064424.hasAttribute("old-data-tooltip"); } if (Temporary1) { - ele_1426064424.setAttribute("data-tooltip", ele_1426064424.getAttribute("old-data-tooltip")); - ele_1426064424.removeAttribute("old-data-tooltip"); - } - - - -} - -function setDisabledTooltip_1426064425(id_1426064427) { - var ele_1426064429 = id_1426064427; - if (ele_1426064429.hasAttribute("data-tooltip")) { - if (!(ele_1426064429.hasAttribute("old-data-tooltip"))) { - ele_1426064429.setAttribute("old-data-tooltip", ele_1426064429.getAttribute("data-tooltip")); - } - - if (ele_1426064429.hasAttribute("disabled-data-tooltip")) { - ele_1426064429.setAttribute("data-tooltip", ele_1426064429.getAttribute("disabled-data-tooltip")); - } - - } - - - -} - -function toggleFormulaProc_1426064475(id_1426064477, to_1426064478, disabledTooltip_1426064479) { - var ele_1426064481 = document.getElementById(toJSStr(id_1426064477)); - var inp_1426064482 = ele_1426064481.firstChild; - var label_1426064483 = ele_1426064481.children[chckIndx(1, 0, (ele_1426064481.children).length - 1)]; - var icon_1426064484 = label_1426064483.firstChild; - if (to_1426064478) { - inp_1426064482.disabled = false; - icon_1426064484.style.setProperty("visibility", "visible", []); - unsetDisabledTooltip_1426064420(label_1426064483); - } - else { - inp_1426064482.disabled = true; - inp_1426064482.checked = false; - icon_1426064484.style.setProperty("visibility", "hidden", []); - if (disabledTooltip_1426064479) { - setDisabledTooltip_1426064425(label_1426064483); - } - - } - - - -} - -function runeLenAt_1140850782(s_1140850783, i_1140850784) { - var result_1140850785 = 0; - - if ((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] <= 127)) { - result_1140850785 = 1; - } - else { - if (((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] >>> 5) == 6)) { - result_1140850785 = 2; - } - else { - if (((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] >>> 4) == 14)) { - result_1140850785 = 3; - } - else { - if (((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] >>> 3) == 30)) { - result_1140850785 = 4; - } - else { - if (((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] >>> 2) == 62)) { - result_1140850785 = 5; - } - else { - if (((s_1140850783[chckIndx(i_1140850784, 0, (s_1140850783).length - 1)] >>> 1) == 126)) { - result_1140850785 = 6; - } - else { - result_1140850785 = 1; - } - }}}}} - - return result_1140850785; - -} - -function runeOffset_1140851406(s_1140851407, pos_1140851408, start_1140851409) { - var result_1140851410 = 0; - - BeforeRet: { - var i_1140851411 = 0; - var o_1140851412 = start_1140851409; - Label1: { - Label2: while (true) { - if (!(i_1140851411 < pos_1140851408)) break Label2; - o_1140851412 = addInt(o_1140851412, chckRange(runeLenAt_1140850782(s_1140851407, o_1140851412), 0, 2147483647)); - if (((s_1140851407).length <= o_1140851412)) { - result_1140851410 = (-1); - break BeforeRet; - } - - i_1140851411 = addInt(i_1140851411, 1); - } - }; - result_1140851410 = o_1140851412; - break BeforeRet; - }; - - return result_1140851410; - -} - -function runeOffset_1140858052(s_1140858053, pos_1140858054, start_1140858055) { - var result_1140858056 = 0; - - result_1140858056 = runeOffset_1140851406((s_1140858053.slice(0, (s_1140858053).length - 1 + 1)), pos_1140858054, start_1140858055); - - return result_1140858056; - -} - -function formatValue_1577058475(result_1577058476, result_1577058476_Idx, value_1577058477, specifier_1577058478) { - var Temporary1; - - var spec_1577058479 = parseStandardFormatSpecifier_1577058362(specifier_1577058478, 0, false); - var value_1577058480 = nimCopy(null, value_1577058477, NTI33554449); - switch (spec_1577058479.typ) { - case 115: - case 0: - break; - default: - raiseException({message: ([105,110,118,97,108,105,100,32,116,121,112,101,32,105,110,32,102,111,114,109,97,116,32,115,116,114,105,110,103,32,102,111,114,32,115,116,114,105,110,103,44,32,101,120,112,101,99,116,101,100,32,39,115,39,44,32,98,117,116,32,103,111,116,32] || []).concat([spec_1577058479.typ]), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - break; - } - if (!((spec_1577058479.precision == (-1)))) { - if ((spec_1577058479.precision < runeLen_1140857877(value_1577058480))) { - if (value_1577058480.length < (Temporary1 = chckRange(runeOffset_1140858052(value_1577058480, chckRange(spec_1577058479.precision, 0, 2147483647), 0), 0, 2147483647), Temporary1)) { for (var i = value_1577058480.length; i < Temporary1; ++i) value_1577058480.push(0); } - else {value_1577058480.length = Temporary1; }; - } - - } - - result_1577058476[result_1577058476_Idx].push.apply(result_1577058476[result_1577058476_Idx], alignString_1577058324(value_1577058480, spec_1577058479.minimumWidth, spec_1577058479.align, spec_1577058479.fill));; - - -} - -function unfreeze_1426064133(state_1426064134) { - state_1426064134.runner.enabled = true; - Matter.Render.run((state_1426064134.render)); - state_1426064134.frozen = false; - - -} - -function updateStateAccordion_1426064733(state_1426064734) { - var Temporary3; - var Temporary9; - - var siInitialState_1426064735 = toMu_1426063809(state_1426064734.trajectories[chckIndx(state_1426064734.currentTrajectory, 0, (state_1426064734.trajectories).length - 1)].state); - siInitialState_1426064735.gravity = nimCopy(siInitialState_1426064735.gravity, HEX2A_1677721966(siInitialState_1426064735.gravity, 279.0), NTI1677721603); - document.getElementById("state-input-h").value = toJSStr(strfloat_1426063991(state_1426064734, siInitialState_1426064735.height)); - Label1: { - var fmtRes_1426064739 = [mnewString(0)]; - formatValue_1426064018(fmtRes_1426064739, 0, siInitialState_1426064735.angleDeg, [46,48,102]); - }; - document.getElementById("state-input-a").value = toJSStr(fmtRes_1426064739[0]); - document.getElementById("state-input-s").value = toJSStr(strfloat_1426063991(state_1426064734, siInitialState_1426064735.speed)); - document.getElementById("state-input-vx").value = toJSStr(strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field0)); - document.getElementById("state-input-vy").value = toJSStr(strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field1)); - document.getElementById("state-input-g").value = toJSStr(strfloat_1426063991(state_1426064734, siInitialState_1426064735.gravity.Field1)); - Label2: { - toggleFormulaProc_1426064475([118,105,120], state_1426064734.showFormulaProc, false); - if (state_1426064734.showFormulaResults) { - Label4: { - var fmtRes_1426064753 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064753, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field0), []); - fmtRes_1426064753[0].push.apply(fmtRes_1426064753[0], [109,47,115]);; - }; - Temporary3 = fmtRes_1426064753[0]; - } - else { - Temporary3 = [95,95]; - } - - }; - Label5: { - var fmtRes_1426064757 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064757, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.speed), []); - fmtRes_1426064757[0].push.apply(fmtRes_1426064757[0], [109,47,115]);; - }; - Label6: { - var fmtRes_1426064761 = [mnewString(0)]; - formatValue_1426064018(fmtRes_1426064761, 0, siInitialState_1426064735.angleDeg, [46,48,102]); - fmtRes_1426064761[0].push.apply(fmtRes_1426064761[0], [194,176]);; - }; - Label7: { - var fmtRes_1426064770 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064770, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field0), []); - fmtRes_1426064770[0].push.apply(fmtRes_1426064770[0], [109,47,115]);; - }; - Label8: { - toggleFormulaProc_1426064475([118,105,121], state_1426064734.showFormulaProc, false); - if (state_1426064734.showFormulaResults) { - Label10: { - var fmtRes_1426064779 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064779, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field1), []); - fmtRes_1426064779[0].push.apply(fmtRes_1426064779[0], [109,47,115]);; - }; - Temporary9 = fmtRes_1426064779[0]; - } - else { - Temporary9 = [95,95]; - } - - }; - Label11: { - var fmtRes_1426064783 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064783, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.speed), []); - fmtRes_1426064783[0].push.apply(fmtRes_1426064783[0], [109,47,115]);; - }; - Label12: { - var fmtRes_1426064787 = [mnewString(0)]; - formatValue_1426064018(fmtRes_1426064787, 0, siInitialState_1426064735.angleDeg, [46,48,102]); - fmtRes_1426064787[0].push.apply(fmtRes_1426064787[0], [194,176]);; - }; - Label13: { - var fmtRes_1426064796 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064796, 0, strfloat_1426063991(state_1426064734, siInitialState_1426064735.vel.Field1), []); - fmtRes_1426064796[0].push.apply(fmtRes_1426064796[0], [109,47,115]);; - }; - var changes_1426064797 = [nimCopy(null, {Field0: makeNimstrLit("#vix > label:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, Temporary3, NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#vix > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064757[0], NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#vix > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(4) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064761[0], NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#vix > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064770[0], NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#viy > label:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, Temporary9, NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#viy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064783[0], NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#viy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(4) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064787[0], NTI33554449)}, NTI1426064493), nimCopy(null, {Field0: makeNimstrLit("#viy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064796[0], NTI33554449)}, NTI1426064493)]; - Label14: { - var query_1426064840 = []; - var value_1426064841 = []; - var i_570425524 = 0; - Label15: { - Label16: while (true) { - if (!true) break Label16; - var colontmp__570425527 = nimCopy(null, changes_1426064797[chckIndx(i_570425524, 0, (changes_1426064797).length - 1)], NTI1426064493); - query_1426064840 = colontmp__570425527["Field0"]; - value_1426064841 = colontmp__570425527["Field1"]; - document.querySelector(toJSStr(query_1426064840)).innerText = toJSStr(value_1426064841); - if ((7 <= i_570425524)) { - break Label15; - } - - i_570425524 = addInt(i_570425524, 1); - } - }; - }; - if (state_1426064734.frozen) { - unfreeze_1426064133(state_1426064734); - } - - - -} - -function toMu_1426063865(point_1426063866) { - -function HEX3Aanonymous_1426063868(d_1426063869) { - var result_1426063870 = 0.0; - - result_1426063870 = toMuDistance_1694499108(d_1426063869); - - return result_1426063870; - - } - -function HEX3Aanonymous_1426063871(v_1426063872) { - var result_1426063873 = 0.0; - - result_1426063873 = toMuSpeed_1694499111(v_1426063872); - - return result_1426063873; - - } - - var result_1426063867 = ({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0}); - - result_1426063867 = nimCopy(result_1426063867, point_1426063866, NTI1426063365); - result_1426063867.pos = nimCopy(result_1426063867.pos, both_1677722062(result_1426063867.pos, HEX3Aanonymous_1426063868), NTI1677721603); - result_1426063867.vel = nimCopy(result_1426063867.vel, both_1677722062(result_1426063867.vel, HEX3Aanonymous_1426063871), NTI1677721603); - result_1426063867.speed = toMuSpeed_1694499111(result_1426063867.speed); - - return result_1426063867; - -} - -function currentPoint_1426064858(state_1426064859) { - var result_1426064860 = {Field0: false, Field1: ({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0})}; - - if ((contains_1426064861(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points, state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].closestPoint) && ((state_1426064859.followBullet && (0 < (state_1426064859.canon.flyingBullets).length)) || state_1426064859.draggingPoint))) { - var colontmp__570425590 = true; - var colontmp__570425591 = toMu_1426063865(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points[chckIndx(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].closestPoint, 0, (state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points).length - 1)]); - result_1426064860 = nimCopy(result_1426064860, {Field0: colontmp__570425590, Field1: nimCopy(null, colontmp__570425591, NTI1426063365)}, NTI1426064612); - } - else { - if ((!(state_1426064859.draggingPoint) && contains_1426064861(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points, state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].pinnedPoint))) { - var colontmp__570425592 = true; - var colontmp__570425593 = toMu_1426063865(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points[chckIndx(state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].pinnedPoint, 0, (state_1426064859.trajectories[chckIndx(state_1426064859.currentTrajectory, 0, (state_1426064859.trajectories).length - 1)].points).length - 1)]); - result_1426064860 = nimCopy(result_1426064860, {Field0: colontmp__570425592, Field1: nimCopy(null, colontmp__570425593, NTI1426063365)}, NTI1426064612); - } - } - - return result_1426064860; - -} - -function toggleFormulaProc_1426064410(id_1426064412, to_1426064413, disabledTooltip_1426064414) { - var ele_1426064416 = id_1426064412; - var inp_1426064417 = ele_1426064416.firstChild; - var label_1426064418 = ele_1426064416.children[chckIndx(1, 0, (ele_1426064416.children).length - 1)]; - var icon_1426064419 = label_1426064418.firstChild; - if (to_1426064413) { - inp_1426064417.disabled = false; - icon_1426064419.style.setProperty("visibility", "visible", []); - unsetDisabledTooltip_1426064420(label_1426064418); - } - else { - inp_1426064417.disabled = true; - inp_1426064417.checked = false; - icon_1426064419.style.setProperty("visibility", "hidden", []); - if (disabledTooltip_1426064414) { - setDisabledTooltip_1426064425(label_1426064418); - } - - } - - - -} - -function updatePointAccordion_1426064918(state_1426064919) { - var Temporary1; - var Temporary2; - var Temporary7; - var Temporary8; - var Temporary24; - var Temporary26; - var Temporary27; - - var tmpTuple_1426064920 = currentPoint_1426064858(state_1426064919); - var show_1426064921 = tmpTuple_1426064920["Field0"]; - var point_1426064922 = nimCopy(null, tmpTuple_1426064920["Field1"], NTI1426063365); - if (show_1426064921) { - document.getElementById("point-input-x").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.pos.Field0)); - document.getElementById("point-input-y").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.pos.Field1)); - document.getElementById("point-input-t").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.time)); - document.getElementById("point-input-vx").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.vel.Field0)); - document.getElementById("point-input-vy").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.vel.Field1)); - document.getElementById("point-input-s").value = toJSStr(strfloat_1426063991(state_1426064919, point_1426064922.speed)); - } - else { - document.getElementById("point-input-x").value = ""; - document.getElementById("point-input-y").value = ""; - document.getElementById("point-input-t").value = ""; - document.getElementById("point-input-vx").value = ""; - document.getElementById("point-input-vy").value = ""; - document.getElementById("point-input-s").value = ""; - } - - var siInitialState_1426064923 = toMu_1426063809(state_1426064919.trajectories[chckIndx(state_1426064919.currentTrajectory, 0, (state_1426064919.trajectories).length - 1)].state); - siInitialState_1426064923.gravity = nimCopy(siInitialState_1426064923.gravity, HEX2A_1677721966(siInitialState_1426064923.gravity, 279.0), NTI1677721603); - var xEle_1426064924 = document.getElementById("x"); - var yEle_1426064925 = document.getElementById("y"); - var vyEle_1426064926 = document.getElementById("vy"); - if (!(show_1426064921)) { - toggleFormulaProc_1426064410(xEle_1426064924, false, true); - Temporary1 = [95,95]; - } - else { - toggleFormulaProc_1426064410(xEle_1426064924, state_1426064919.showFormulaProc, false); - if (state_1426064919.showFormulaResults) { - Label3: { - var fmtRes_1426064940 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064940, 0, strfloat_1426063991(state_1426064919, point_1426064922.pos.Field0), []); - fmtRes_1426064940[0].push.apply(fmtRes_1426064940[0], [109]);; - }; - Temporary2 = fmtRes_1426064940[0]; - } - else { - Temporary2 = [95,95]; - } - - Temporary1 = Temporary2; - } - - Label4: { - var fmtRes_1426064944 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064944, 0, strfloat_1426063991(state_1426064919, point_1426064922.time), []); - fmtRes_1426064944[0].push.apply(fmtRes_1426064944[0], [115]);; - }; - Label5: { - var fmtRes_1426064948 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064948, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.vel.Field0), []); - fmtRes_1426064948[0].push.apply(fmtRes_1426064948[0], [109,47,115]);; - }; - Label6: { - var fmtRes_1426064952 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064952, 0, strfloat_1426063991(state_1426064919, point_1426064922.pos.Field0), []); - fmtRes_1426064952[0].push.apply(fmtRes_1426064952[0], [109]);; - }; - if (!(show_1426064921)) { - toggleFormulaProc_1426064410(yEle_1426064925, false, true); - Temporary7 = [95,95]; - } - else { - toggleFormulaProc_1426064410(yEle_1426064925, state_1426064919.showFormulaProc, false); - if (state_1426064919.showFormulaResults) { - Label9: { - var fmtRes_1426064966 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064966, 0, strfloat_1426063991(state_1426064919, point_1426064922.pos.Field1), []); - fmtRes_1426064966[0].push.apply(fmtRes_1426064966[0], [109]);; - }; - Temporary8 = fmtRes_1426064966[0]; - } - else { - Temporary8 = [95,95]; - } - - Temporary7 = Temporary8; - } - - Label10: { - var fmtRes_1426064970 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064970, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.height), []); - fmtRes_1426064970[0].push.apply(fmtRes_1426064970[0], [109]);; - }; - Label11: { - var fmtRes_1426064974 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064974, 0, strfloat_1426063991(state_1426064919, point_1426064922.time), []); - fmtRes_1426064974[0].push.apply(fmtRes_1426064974[0], [115]);; - }; - Label12: { - var fmtRes_1426064978 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064978, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.vel.Field1), []); - fmtRes_1426064978[0].push.apply(fmtRes_1426064978[0], [109,47,115]);; - }; - Label13: { - var fmtRes_1426064982 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064982, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.gravity.Field1), []); - fmtRes_1426064982[0].push.apply(fmtRes_1426064982[0], [109,47,115,194,178]);; - }; - Label14: { - var fmtRes_1426064986 = [mnewString(0)]; - fmtRes_1426064986[0].push.apply(fmtRes_1426064986[0], [40]);; - formatValue_1577058475(fmtRes_1426064986, 0, strfloat_1426063991(state_1426064919, point_1426064922.time), []); - fmtRes_1426064986[0].push.apply(fmtRes_1426064986[0], [115,41]);; - }; - Label15: { - var fmtRes_1426064990 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064990, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.height), []); - fmtRes_1426064990[0].push.apply(fmtRes_1426064990[0], [109]);; - }; - Label16: { - var fmtRes_1426064994 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064994, 0, strfloat_1426063991(state_1426064919, (point_1426064922.time * siInitialState_1426064923.vel.Field1)), []); - fmtRes_1426064994[0].push.apply(fmtRes_1426064994[0], [109]);; - }; - Label17: { - var fmtRes_1426064998 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064998, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.gravity.Field1), []); - fmtRes_1426064998[0].push.apply(fmtRes_1426064998[0], [109,47,115,194,178]);; - }; - Label18: { - var fmtRes_1426065002 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065002, 0, strfloat_1426063991(state_1426064919, HEX5E_1677721994(point_1426064922.time, 2)), []); - fmtRes_1426065002[0].push.apply(fmtRes_1426065002[0], [115,194,178]);; - }; - Label19: { - var fmtRes_1426065010 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065010, 0, strfloat_1426063991(state_1426064919, (siInitialState_1426064923.height + (point_1426064922.time * siInitialState_1426064923.vel.Field1))), []); - fmtRes_1426065010[0].push.apply(fmtRes_1426065010[0], [109]);; - }; - Label20: { - var fmtRes_1426065014 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065014, 0, strfloat_1426063991(state_1426064919, (siInitialState_1426064923.gravity.Field1 * HEX5E_1677721994(point_1426064922.time, 2))), []); - fmtRes_1426065014[0].push.apply(fmtRes_1426065014[0], [109]);; - }; - Label21: { - var fmtRes_1426065022 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065022, 0, strfloat_1426063991(state_1426064919, (siInitialState_1426064923.height + (point_1426064922.time * siInitialState_1426064923.vel.Field1))), []); - fmtRes_1426065022[0].push.apply(fmtRes_1426065022[0], [109]);; - }; - Label22: { - var fmtRes_1426065026 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065026, 0, strfloat_1426063991(state_1426064919, ((siInitialState_1426064923.gravity.Field1 * HEX5E_1677721994(point_1426064922.time, 2)) / 2.0)), []); - fmtRes_1426065026[0].push.apply(fmtRes_1426065026[0], [109]);; - }; - Label23: { - var fmtRes_1426065034 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065034, 0, strfloat_1426063991(state_1426064919, point_1426064922.pos.Field1), []); - fmtRes_1426065034[0].push.apply(fmtRes_1426065034[0], [109]);; - }; - if (state_1426064919.showFormulaResults) { - Label25: { - var fmtRes_1426065038 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065038, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.vel.Field0), []); - fmtRes_1426065038[0].push.apply(fmtRes_1426065038[0], [109,47,115]);; - }; - Temporary24 = fmtRes_1426065038[0]; - } - else { - Temporary24 = [95,95]; - } - - if (!(show_1426064921)) { - toggleFormulaProc_1426064410(vyEle_1426064926, false, true); - Temporary26 = [95,95]; - } - else { - toggleFormulaProc_1426064410(vyEle_1426064926, state_1426064919.showFormulaProc, false); - if (state_1426064919.showFormulaResults) { - Label28: { - var fmtRes_1426065052 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065052, 0, strfloat_1426063991(state_1426064919, point_1426064922.vel.Field1), []); - fmtRes_1426065052[0].push.apply(fmtRes_1426065052[0], [109,47,115]);; - }; - Temporary27 = fmtRes_1426065052[0]; - } - else { - Temporary27 = [95,95]; - } - - Temporary26 = Temporary27; - } - - Label29: { - var fmtRes_1426065056 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065056, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.vel.Field1), []); - fmtRes_1426065056[0].push.apply(fmtRes_1426065056[0], [109,47,115]);; - }; - Label30: { - var fmtRes_1426065060 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065060, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.gravity.Field1), []); - fmtRes_1426065060[0].push.apply(fmtRes_1426065060[0], [109,47,115,194,178]);; - }; - Label31: { - var fmtRes_1426065064 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065064, 0, strfloat_1426063991(state_1426064919, point_1426064922.time), []); - fmtRes_1426065064[0].push.apply(fmtRes_1426065064[0], [115]);; - }; - Label32: { - var fmtRes_1426065068 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065068, 0, strfloat_1426063991(state_1426064919, siInitialState_1426064923.vel.Field1), []); - fmtRes_1426065068[0].push.apply(fmtRes_1426065068[0], [109,47,115]);; - }; - Label33: { - var fmtRes_1426065072 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065072, 0, strfloat_1426063991(state_1426064919, (siInitialState_1426064923.gravity.Field1 * point_1426064922.time)), []); - fmtRes_1426065072[0].push.apply(fmtRes_1426065072[0], [109,47,115]);; - }; - Label34: { - var fmtRes_1426065076 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426065076, 0, strfloat_1426063991(state_1426064919, point_1426064922.vel.Field1), []); - fmtRes_1426065076[0].push.apply(fmtRes_1426065076[0], [109,47,115]);; - }; - var changes_1426065077 = [nimCopy(null, {Field0: makeNimstrLit("#x > label:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, Temporary1, NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#x > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064944[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#x > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064948[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#x > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064952[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: [115,112,97,110,46,98,97,115,101,58,110,116,104,45,99,104,105,108,100,40,54,41,32,62,32,115,112,97,110,58,110,116,104,45,99,104,105,108,100,40,50,41], Field1: nimCopy(null, Temporary7, NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064970[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064974[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064978[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(5) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064982[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(5) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064986[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064990[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064994[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064998[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7)"), Field1: nimCopy(null, fmtRes_1426065002[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(3) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065010[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(3) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426065014[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(4) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065022[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(4) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065026[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#y > div:nth-child(3) > ul:nth-child(1) > li:nth-child(4) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065034[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vx > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, Temporary24, NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > label:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(5) > span:nth-child(2)"), Field1: nimCopy(null, Temporary26, NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065056[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065060[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065064[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065068[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065072[0], NTI33554449)}, NTI1426064688), nimCopy(null, {Field0: makeNimstrLit("#vy > div:nth-child(3) > ul:nth-child(1) > li:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426065076[0], NTI33554449)}, NTI1426064688)]; - Label35: { - var query_1426065120 = []; - var value_1426065121 = []; - var i_570425586 = 0; - Label36: { - Label37: while (true) { - if (!true) break Label37; - var colontmp__570425589 = nimCopy(null, changes_1426065077[chckIndx(i_570425586, 0, (changes_1426065077).length - 1)], NTI1426064688); - query_1426065120 = colontmp__570425589["Field0"]; - value_1426065121 = colontmp__570425589["Field1"]; - document.querySelector(toJSStr(query_1426065120)).innerText = toJSStr(value_1426065121); - if ((26 <= i_570425586)) { - break Label36; - } - - i_570425586 = addInt(i_570425586, 1); - } - }; - }; - if (state_1426064919.frozen) { - unfreeze_1426064133(state_1426064919); - } - - - -} - -function updateFormulaAccordion_1426064398(state_1426064399) { - var Temporary1; - var Temporary2; - var Temporary14; - var Temporary39; - - var siInitialState_1426064400 = toMu_1426063809(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].state); - siInitialState_1426064400.gravity = nimCopy(siInitialState_1426064400.gravity, HEX2A_1677721966(siInitialState_1426064400.gravity, 279.0), NTI1677721603); - var vySquared_1426064405 = HEX5E_1677721994(siInitialState_1426064400.vel.Field1, 2); - var gTwice_1426064406 = (siInitialState_1426064400.gravity.Field1 * 2.0); - var gTimesH_1426064407 = (siInitialState_1426064400.gravity.Field1 * siInitialState_1426064400.height); - var gTimesHTwice_1426064408 = (2.0 * gTimesH_1426064407); - var hmaxEle_1426064409 = document.getElementById("maxheight"); - if ((state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].highestPoint == 0)) { - toggleFormulaProc_1426064410(hmaxEle_1426064409, false, true); - Temporary1 = [95,95]; - } - else { - toggleFormulaProc_1426064410(hmaxEle_1426064409, state_1426064399.showFormulaProc, false); - if (state_1426064399.showFormulaResults) { - Label3: { - var fmtRes_1426064438 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064438, 0, strfloat_1426063991(state_1426064399, toMuDistance_1694499108(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points[chckIndx(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].highestPoint, 0, (state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points).length - 1)].pos.Field1)), []); - fmtRes_1426064438[0].push.apply(fmtRes_1426064438[0], [109]);; - }; - Temporary2 = fmtRes_1426064438[0]; - } - else { - Temporary2 = [95,95]; - } - - Temporary1 = Temporary2; - } - - Label4: { - var fmtRes_1426064442 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064442, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.height), []); - fmtRes_1426064442[0].push.apply(fmtRes_1426064442[0], [109]);; - }; - Label5: { - var fmtRes_1426064446 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064446, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064446[0].push.apply(fmtRes_1426064446[0], [109,47,115,194,178]);; - }; - Label6: { - var fmtRes_1426064450 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064450, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064450[0].push.apply(fmtRes_1426064450[0], [109,47,115]);; - }; - Label7: { - var fmtRes_1426064454 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064454, 0, strfloat_1426063991(state_1426064399, vySquared_1426064405), []); - fmtRes_1426064454[0].push.apply(fmtRes_1426064454[0], [109,194,178,47,115,194,178]);; - }; - Label8: { - var fmtRes_1426064458 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064458, 0, strfloat_1426063991(state_1426064399, gTwice_1426064406), []); - fmtRes_1426064458[0].push.apply(fmtRes_1426064458[0], [109,47,115,194,178]);; - }; - Label9: { - var fmtRes_1426064462 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064462, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.height), []); - fmtRes_1426064462[0].push.apply(fmtRes_1426064462[0], [109]);; - }; - Label10: { - var fmtRes_1426064466 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064466, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.height), []); - fmtRes_1426064466[0].push.apply(fmtRes_1426064466[0], [109]);; - }; - Label11: { - var fmtRes_1426064470 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064470, 0, strfloat_1426063991(state_1426064399, (vySquared_1426064405 / gTwice_1426064406)), []); - fmtRes_1426064470[0].push.apply(fmtRes_1426064470[0], [109]);; - }; - Label12: { - var fmtRes_1426064474 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064474, 0, strfloat_1426063991(state_1426064399, (siInitialState_1426064400.height + (vySquared_1426064405 / gTwice_1426064406))), []); - fmtRes_1426064474[0].push.apply(fmtRes_1426064474[0], [109]);; - }; - Label13: { - toggleFormulaProc_1426064475([116,105,109,101,102,108,105,103,104,116], state_1426064399.showFormulaProc, false); - if (state_1426064399.showFormulaResults) { - Label15: { - var fmtRes_1426064494 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064494, 0, strfloat_1426063991(state_1426064399, HEX5BHEX5D_1426064495(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points, 1).time), []); - fmtRes_1426064494[0].push.apply(fmtRes_1426064494[0], [115]);; - }; - Temporary14 = fmtRes_1426064494[0]; - } - else { - Temporary14 = [95,95]; - } - - }; - Label16: { - var fmtRes_1426064523 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064523, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064523[0].push.apply(fmtRes_1426064523[0], [109,47,115]);; - }; - Label17: { - var fmtRes_1426064527 = [mnewString(0)]; - fmtRes_1426064527[0].push.apply(fmtRes_1426064527[0], [40]);; - formatValue_1577058475(fmtRes_1426064527, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064527[0].push.apply(fmtRes_1426064527[0], [109,47,115,41]);; - }; - Label18: { - var fmtRes_1426064531 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064531, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064531[0].push.apply(fmtRes_1426064531[0], [109,47,115,194,178]);; - }; - Label19: { - var fmtRes_1426064535 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064535, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.height), []); - fmtRes_1426064535[0].push.apply(fmtRes_1426064535[0], [109]);; - }; - Label20: { - var fmtRes_1426064539 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064539, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064539[0].push.apply(fmtRes_1426064539[0], [109,47,115,194,178]);; - }; - Label21: { - var fmtRes_1426064543 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064543, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064543[0].push.apply(fmtRes_1426064543[0], [109,47,115]);; - }; - Label22: { - var fmtRes_1426064547 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064547, 0, strfloat_1426063991(state_1426064399, vySquared_1426064405), []); - fmtRes_1426064547[0].push.apply(fmtRes_1426064547[0], [109,194,178,47,115,194,178]);; - }; - Label23: { - var fmtRes_1426064551 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064551, 0, strfloat_1426063991(state_1426064399, gTimesH_1426064407), []); - fmtRes_1426064551[0].push.apply(fmtRes_1426064551[0], [109,194,178,47,115,194,178]);; - }; - Label24: { - var fmtRes_1426064555 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064555, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064555[0].push.apply(fmtRes_1426064555[0], [109,47,115,194,178]);; - }; - Label25: { - var fmtRes_1426064559 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064559, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064559[0].push.apply(fmtRes_1426064559[0], [109,47,115]);; - }; - Label26: { - var fmtRes_1426064563 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064563, 0, strfloat_1426063991(state_1426064399, vySquared_1426064405), []); - fmtRes_1426064563[0].push.apply(fmtRes_1426064563[0], [109,194,178,47,115,194,178]);; - }; - Label27: { - var fmtRes_1426064567 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064567, 0, strfloat_1426063991(state_1426064399, gTimesHTwice_1426064408), []); - fmtRes_1426064567[0].push.apply(fmtRes_1426064567[0], [109,194,178,47,115,194,178]);; - }; - Label28: { - var fmtRes_1426064571 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064571, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064571[0].push.apply(fmtRes_1426064571[0], [109,47,115,194,178]);; - }; - Label29: { - var fmtRes_1426064575 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064575, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064575[0].push.apply(fmtRes_1426064575[0], [109,47,115]);; - }; - Label30: { - var fmtRes_1426064579 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064579, 0, strfloat_1426063991(state_1426064399, (vySquared_1426064405 + gTimesHTwice_1426064408)), []); - }; - Label31: { - var fmtRes_1426064583 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064583, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064583[0].push.apply(fmtRes_1426064583[0], [109,47,115,194,178]);; - }; - Label32: { - var fmtRes_1426064587 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064587, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field1), []); - fmtRes_1426064587[0].push.apply(fmtRes_1426064587[0], [109,47,115]);; - }; - Label33: { - var fmtRes_1426064591 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064591, 0, strfloat_1426063991(state_1426064399, Math.sqrt((vySquared_1426064405 + gTimesHTwice_1426064408))), []); - fmtRes_1426064591[0].push.apply(fmtRes_1426064591[0], [109,47,115]);; - }; - Label34: { - var fmtRes_1426064595 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064595, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064595[0].push.apply(fmtRes_1426064595[0], [109,47,115,194,178]);; - }; - Label35: { - var fmtRes_1426064599 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064599, 0, strfloat_1426063991(state_1426064399, (siInitialState_1426064400.vel.Field1 + Math.sqrt((vySquared_1426064405 + gTimesHTwice_1426064408)))), []); - fmtRes_1426064599[0].push.apply(fmtRes_1426064599[0], [109,47,115]);; - }; - Label36: { - var fmtRes_1426064603 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064603, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.gravity.Field1), []); - fmtRes_1426064603[0].push.apply(fmtRes_1426064603[0], [109,47,115,194,178]);; - }; - Label37: { - var fmtRes_1426064607 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064607, 0, strfloat_1426063991(state_1426064399, ((siInitialState_1426064400.vel.Field1 + Math.sqrt((vySquared_1426064405 + gTimesHTwice_1426064408))) / siInitialState_1426064400.gravity.Field1)), []); - fmtRes_1426064607[0].push.apply(fmtRes_1426064607[0], [115]);; - }; - Label38: { - toggleFormulaProc_1426064475([109,97,120,114,97,110,103,101,100,105,118], state_1426064399.showFormulaProc, false); - if (state_1426064399.showFormulaResults) { - Label40: { - var fmtRes_1426064616 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064616, 0, strfloat_1426063991(state_1426064399, toMuDistance_1694499108(HEX5BHEX5D_1426064495(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points, 1).pos.Field0)), []); - fmtRes_1426064616[0].push.apply(fmtRes_1426064616[0], [109]);; - }; - Temporary39 = fmtRes_1426064616[0]; - } - else { - Temporary39 = [95,95]; - } - - }; - Label41: { - var fmtRes_1426064624 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064624, 0, strfloat_1426063991(state_1426064399, siInitialState_1426064400.vel.Field0), []); - fmtRes_1426064624[0].push.apply(fmtRes_1426064624[0], [109,47,115]);; - }; - Label42: { - var fmtRes_1426064628 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064628, 0, strfloat_1426063991(state_1426064399, HEX5BHEX5D_1426064495(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points, 1).time), []); - fmtRes_1426064628[0].push.apply(fmtRes_1426064628[0], [115]);; - }; - Label43: { - var fmtRes_1426064636 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426064636, 0, strfloat_1426063991(state_1426064399, toMuDistance_1694499108(HEX5BHEX5D_1426064495(state_1426064399.trajectories[chckIndx(state_1426064399.currentTrajectory, 0, (state_1426064399.trajectories).length - 1)].points, 1).pos.Field0)), []); - fmtRes_1426064636[0].push.apply(fmtRes_1426064636[0], [109]);; - }; - var changes_1426064641 = [nimCopy(null, {Field0: makeNimstrLit("#maxheight > label:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, Temporary1, NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064442[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(7)"), Field1: nimCopy(null, fmtRes_1426064446[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064450[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064454[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064458[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064462[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064466[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064470[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#mh4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064474[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#l_f-2 > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, Temporary14, NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064523[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064527[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(13)"), Field1: nimCopy(null, fmtRes_1426064531[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: [115,112,97,110,46,109,111,114,100,58,110,116,104,45,99,104,105,108,100,40,49,57,41], Field1: nimCopy(null, fmtRes_1426064535[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf1 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064539[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064543[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064547[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(13)"), Field1: nimCopy(null, fmtRes_1426064551[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf2 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064555[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf3 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064559[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf3 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064563[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf3 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(7)"), Field1: nimCopy(null, fmtRes_1426064567[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf3 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064571[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064575[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064579[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf4 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064583[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf5 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064587[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf5 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(7)"), Field1: nimCopy(null, fmtRes_1426064591[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf5 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064595[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf6 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(3) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064599[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf6 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(1)"), Field1: nimCopy(null, fmtRes_1426064603[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#tf6 > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064607[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#l_f-3 > span:nth-child(2) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, Temporary39, NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#maxRange > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(2) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064624[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#maxRange > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(3) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064628[0], NTI33554449)}, NTI1426063959), nimCopy(null, {Field0: makeNimstrLit("#maxRange > li:nth-child(1) > span:nth-child(1) > span:nth-child(1) > span:nth-child(2) > span:nth-child(4) > span:nth-child(2)"), Field1: nimCopy(null, fmtRes_1426064636[0], NTI33554449)}, NTI1426063959)]; - Label44: { - var query_1426064684 = []; - var value_1426064685 = []; - var i_570425635 = 0; - Label45: { - Label46: while (true) { - if (!true) break Label46; - var colontmp__570425638 = nimCopy(null, changes_1426064641[chckIndx(i_570425635, 0, (changes_1426064641).length - 1)], NTI1426063959); - query_1426064684 = colontmp__570425638["Field0"]; - value_1426064685 = colontmp__570425638["Field1"]; - document.querySelector(toJSStr(query_1426064684)).innerText = toJSStr(value_1426064685); - if ((36 <= i_570425635)) { - break Label45; - } - - i_570425635 = addInt(i_570425635, 1); - } - }; - }; - if (state_1426064399.frozen) { - unfreeze_1426064133(state_1426064399); - } - - - -} - -function calcTrajectory_1426065138(state_1426065139) { - if ((state_1426065139.followBullet && (0 < (state_1426065139.canon.flyingBullets).length))) { - document.getElementById("point-input-f").checked = false; - state_1426065139.followBullet = false; - } - - var initialState_1426065146 = nimCopy(null, state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].state, NTI1426063363); - initialState_1426065146.gravity = nimCopy(initialState_1426065146.gravity, HEX2A_1677721966(initialState_1426065146.gravity, 279.0), NTI1677721603); - var downwards_1426065147 = ((180.0 < initialState_1426065146.angleDeg) && (initialState_1426065146.angleDeg < 360.0)); - var prevHighestPoint_1426065152 = ((!((state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint == 0)) && contains_1426064861(state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points, state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint)) && (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].highestPoint == state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint)); - var prevLastPoint_1426065160 = ((!((state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint == 0)) && contains_1426064861(state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points, state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint)) && ((state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1 == state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint)); - var highest_1426065163 = {Field0: 0, Field1: 0.0}; - if (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.length < 0) { for (var i = state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.length ; i < 0 ; ++i) state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.push(({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0})); } - else { state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.length = 0; }; - Label1: { - var t_1426065168 = 0.0; - var colontmp__570425486 = new Float64Array(2); - colontmp__570425486 = nimCopy(colontmp__570425486, new Float64Array([0.0, calcTotalTime_1426063464(initialState_1426065146)]), NTI1426065073); - var res_570425494 = [colontmp__570425486[chckIndx(0, 0, (colontmp__570425486).length - 1)]]; - Label2: { - var i_570425496 = 0.0; - var colontmp__570425497 = []; - colontmp__570425497 = HEX5BHEX5D_1694499019(colontmp__570425486, HEX2EHEX2E_1073741928(1, 1)); - var i_570425498 = 0; - var L_570425499 = (colontmp__570425497).length; - Label3: { - Label4: while (true) { - if (!(i_570425498 < L_570425499)) break Label4; - i_570425496 = colontmp__570425497[chckIndx(i_570425498, 0, (colontmp__570425497).length - 1)]; - Label5: { - Label6: while (true) { - if (!(res_570425494[0] < i_570425496)) break Label6; - t_1426065168 = res_570425494[0]; - var point_1426065169 = ({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0}); - point_1426065169.time = round_1426064167(t_1426065168, state_1426065139.floatPrecision); - point_1426065169.pos = nimCopy(point_1426065169.pos, calcPos_1426063493(initialState_1426065146, point_1426065169.time), NTI1677721603); - point_1426065169.vel = nimCopy(point_1426065169.vel, calcVel_1426063497(initialState_1426065146, point_1426065169.time), NTI1677721603); - point_1426065169.speed = magnitude_1426063518(point_1426065169.vel); - var Temporary7 = nimCopy(null, point_1426065169, NTI1426063365); - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.push(Temporary7);; - if ((!(downwards_1426065147) && (highest_1426065163.Field1 < point_1426065169.pos.Field1))) { - var colontmp__570425484 = (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1; - var colontmp__570425485 = point_1426065169.pos.Field1; - highest_1426065163 = nimCopy(highest_1426065163, {Field0: colontmp__570425484, Field1: colontmp__570425485}, NTI1426065064); - } - - HEX2BHEX3D_872417557(res_570425494, 0, 0.018666666666666668); - } - }; - t_1426065168 = i_570425496; - var point_570425502 = ({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0}); - point_570425502.time = round_1426064167(t_1426065168, state_1426065139.floatPrecision); - point_570425502.pos = nimCopy(point_570425502.pos, calcPos_1426063493(initialState_1426065146, point_570425502.time), NTI1677721603); - point_570425502.vel = nimCopy(point_570425502.vel, calcVel_1426063497(initialState_1426065146, point_570425502.time), NTI1677721603); - point_570425502.speed = magnitude_1426063518(point_570425502.vel); - var Temporary8 = nimCopy(null, point_570425502, NTI1426063365); - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points.push(Temporary8);; - if ((!(downwards_1426065147) && (highest_1426065163.Field1 < point_570425502.pos.Field1))) { - var colontmp__570425503 = (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1; - var colontmp__570425504 = point_570425502.pos.Field1; - highest_1426065163 = nimCopy(highest_1426065163, {Field0: colontmp__570425503, Field1: colontmp__570425504}, NTI1426065064); - } - - i_570425498 = addInt(i_570425498, 1); - if (!(((colontmp__570425497).length == L_570425499))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - }; - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].highestPoint = highest_1426065163.Field0; - if (!(downwards_1426065147)) { - var highestPoint_1426065181 = nimCopy(null, state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points[chckIndx(highest_1426065163.Field0, 0, (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1)], NTI1426063365); - var initialStateB_1426065182 = nimCopy(null, initialState_1426065146, NTI1426063363); - initialStateB_1426065182.height = 0.0; - highestPoint_1426065181.pos.Field1 = round_1426064167(calcMaxHeight_1426063474(initialState_1426065146), state_1426065139.floatPrecision); - highestPoint_1426065181.time = round_1426064167((calcTotalTime_1426063464(initialStateB_1426065182) / 2.0), state_1426065139.floatPrecision); - highestPoint_1426065181.pos.Field0 = round_1426064167(calcX_1426063481(initialState_1426065146, highestPoint_1426065181.time), state_1426065139.floatPrecision); - highestPoint_1426065181.vel.Field1 = 0.0; - highestPoint_1426065181.speed = magnitude_1426063518(highestPoint_1426065181.vel); - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points[chckIndx(highest_1426065163.Field0, 0, (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1)] = nimCopy(state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points[chckIndx(highest_1426065163.Field0, 0, (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1)], highestPoint_1426065181, NTI1426063365); - } - - HEX5BHEX5D_1426064495(state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points, 1).pos = nimCopy(HEX5BHEX5D_1426064495(state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points, 1).pos, vec_1677721936(round_1426064167(calcMaxRange_1426063471(initialState_1426065146), state_1426065139.floatPrecision), 0.0), NTI1677721603); - if ((prevHighestPoint_1426065152 && !(downwards_1426065147))) { - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint = highest_1426065163.Field0; - } - else { - if (prevLastPoint_1426065160) { - state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].pinnedPoint = (state_1426065139.trajectories[chckIndx(state_1426065139.currentTrajectory, 0, (state_1426065139.trajectories).length - 1)].points).length - 1; - } - } - updateStateAccordion_1426064733(state_1426065139); - updatePointAccordion_1426064918(state_1426065139); - updateFormulaAccordion_1426064398(state_1426065139); - - -} - -function onResize_1426065422(state_1426065423, first_1426065424) { - -function innerHEX60gensym284_1426065458() { - -function innerHEX60gensym290_1426065466() { - var result_1426065467 = null; - - BeforeRet: { - var a_1426065468 = null; - a_1426065468 = {}; - a_1426065468.wrap = wrap_1426065451; - result_1426065467 = a_1426065468; - break BeforeRet; - }; - - return result_1426065467; - - } - - var result_1426065459 = null; - - BeforeRet: { - var a_1426065460 = null; - a_1426065460 = {}; - a_1426065460.plugin = innerHEX60gensym290_1426065466(); - result_1426065459 = a_1426065460; - break BeforeRet; - }; - - return result_1426065459; - - } - -function innerHEX60gensym298_1426065494() { - var result_1426065495 = null; - - BeforeRet: { - var a_1426065496 = null; - a_1426065496 = {}; - a_1426065496.wrap = wrap_1426065451; - result_1426065495 = a_1426065496; - break BeforeRet; - }; - - return result_1426065495; - - } - var Temporary4; - -function innerHEX60gensym322_1426065582() { - var result_1426065583 = null; - - BeforeRet: { - var a_1426065584 = null; - a_1426065584 = {}; - a_1426065584.x = ((state_1426065423.canvasSize.Field0) * b_1426065543.xratio); - a_1426065584.y = b_1426065543.position.y; - result_1426065583 = a_1426065584; - break BeforeRet; - }; - - return result_1426065583; - - } - -function innerHEX60gensym345_1426065655() { - var result_1426065656 = null; - - BeforeRet: { - var a_1426065657 = null; - a_1426065657 = {}; - a_1426065657.x = b_1426065543.position.x; - a_1426065657.y = ((state_1426065423.canvasSize.Field1) * b_1426065543.yratio); - result_1426065656 = a_1426065657; - break BeforeRet; - }; - - return result_1426065656; - - } - var Temporary5; - - BeforeRet: { - if ((!(first_1426065424) && !(state_1426065423.startedRendering))) { - break BeforeRet; - } - - state_1426065423.canvasSize.Field0 = state_1426065423.canvas.clientWidth; - state_1426065423.canvasSize.Field1 = state_1426065423.canvas.clientHeight; - state_1426065423.render.canvas.width = state_1426065423.canvasSize.Field0; - state_1426065423.render.canvas.height = state_1426065423.canvasSize.Field1; - var wrap_1426065451 = wrapObject_1426063895(state_1426065423); - if (!((state_1426065423.canon.bulletOptions))) { - state_1426065423.canon.bulletOptions = innerHEX60gensym284_1426065458(); - } - else { - state_1426065423.canon.bulletOptions.plugin = innerHEX60gensym298_1426065494(); - } - - Label1: { - var b_1426065543 = null; - var colontmp__570425479 = []; - colontmp__570425479 = (Matter.Composite.allBodies((state_1426065423.engine.world))); - var i_570425480 = 0; - var L_570425481 = (colontmp__570425479).length; - Label2: { - Label3: while (true) { - if (!(i_570425480 < L_570425481)) break Label3; - b_1426065543 = colontmp__570425479[chckIndx(i_570425480, 0, (colontmp__570425479).length - 1)]; - Matter.Sleeping.set((b_1426065543), (false)); - if (!b_1426065543.hasOwnProperty("plugin")) Temporary4 = false; else { Temporary4 = b_1426065543.plugin.hasOwnProperty("wrap"); } if (Temporary4) { - b_1426065543.plugin.wrap = wrap_1426065451; - } - - if (b_1426065543.hasOwnProperty("xratio")) { - var pos_1426065623 = innerHEX60gensym322_1426065582(); - Matter.Body.setPosition((b_1426065543), (pos_1426065623)); - } - - if (b_1426065543.hasOwnProperty("yratio")) { - Matter.Body.setPosition((b_1426065543), (innerHEX60gensym345_1426065655())); - } - - i_570425480 = addInt(i_570425480, 1); - if (!(((colontmp__570425479).length == L_570425481))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - if (state_1426065423.canon.base.dragging) { - Temporary5 = ((state_1426065423.mouse.position.y) + state_1426065423.canon.base.dragOffset); - } - else { - Temporary5 = -1.0; - } - - var y_1426065717 = Temporary5; - moveCanonTo_1426065275(state_1426065423, y_1426065717, first_1426065424); - if (!(first_1426065424)) { - calcTrajectory_1426065138(state_1426065423); - } - - }; - - -} - -function rotateCanonBack_1426064283(state_1426064284, rad_1426064288, limit_1426064289) { - rotateCanon_1426064221(state_1426064284, -(rad_1426064288), limit_1426064289); - - -} - -function nextBullet_1426064290(state_1426064291) { - var result_1426064292 = null; - - result_1426064292 = Matter.Bodies.circle((state_1426064291.canon.pivot.Field0), (state_1426064291.canon.pivot.Field1), (state_1426064291.canon.bulletRadius), (state_1426064291.canon.bulletOptions)); - Matter.Body.setAngle((result_1426064292), (state_1426064291.trajectories[chckIndx(state_1426064291.currentTrajectory, 0, (state_1426064291.trajectories).length - 1)].state.angleDeg)); - Matter.Body.setInertia((result_1426064292), (Infinity)); - - return result_1426064292; - -} - -function HEX3DHEX3D_1426065743(x_1426065745, y_1426065746) { - var result_1426065747 = false; - - BeforeRet: { - if (!((x_1426065745["Field0"] == y_1426065746["Field0"]))) { - result_1426065747 = false; - break BeforeRet; - } - - if (!((x_1426065745["Field1"] == y_1426065746["Field1"]))) { - result_1426065747 = false; - break BeforeRet; - } - - result_1426065747 = true; - break BeforeRet; - }; - - return result_1426065747; - -} - -function getPos_1677721842(body_1677721843) { - var result_1677721846 = {Field0: 0.0, Field1: 0.0}; - - var colontmp__570425661 = (body_1677721843.position.x); - var colontmp__570425662 = (body_1677721843.position.y); - result_1677721846 = nimCopy(result_1677721846, {Field0: colontmp__570425661, Field1: colontmp__570425662}, NTI1677721740); - - return result_1677721846; - -} - -function delete_1426065805(x_1426065807, x_1426065807_Idx, i_1426065808) { - x_1426065807[x_1426065807_Idx].splice(i_1426065808, 1); - - -} - -function find_1426065827(a_1426065830, item_1426065831) { - var result_1426065832 = 0; - - BeforeRet: { - result_1426065832 = 0; - Label1: { - var i_1426065836 = 0; - var i_570425669 = 0; - var L_570425670 = (a_1426065830).length; - Label2: { - Label3: while (true) { - if (!(i_570425669 < L_570425670)) break Label3; - i_1426065836 = a_1426065830[chckIndx(i_570425669, 0, (a_1426065830).length - 1)]; - if ((i_1426065836 == item_1426065831)) { - break BeforeRet; - } - - result_1426065832 = addInt(result_1426065832, 1); - i_570425669 = addInt(i_570425669, 1); - if (!(((a_1426065830).length == L_570425670))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - result_1426065832 = (-1); - }; - - return result_1426065832; - -} - -function delete_1426065859(x_1426065861, x_1426065861_Idx, i_1426065862) { - x_1426065861[x_1426065861_Idx].splice(i_1426065862, 1); - - -} - -function jsVec_1426066013(x_1426066016, y_1426066017) { - -function innerHEX60gensym405_1426066021() { - var result_1426066022 = null; - - BeforeRet: { - var a_1426066023 = null; - a_1426066023 = {}; - a_1426066023.x = x_1426066016; - a_1426066023.y = y_1426066017; - result_1426066022 = a_1426066023; - break BeforeRet; - }; - - return result_1426066022; - - } - - var result_1426066018 = null; - - result_1426066018 = innerHEX60gensym405_1426066021(); - - return result_1426066018; - -} - -function fireBullet_1426065718(state_1426065719) { - BeforeRet: { - var bullet_1426065720 = nextBullet_1426064290(state_1426065719); - Label1: { - var b_1426065742 = 0; - var i_570425641 = 0; - var L_570425642 = (state_1426065719.canon.flyingBullets).length; - Label2: { - Label3: while (true) { - if (!(i_570425641 < L_570425642)) break Label3; - b_1426065742 = state_1426065719.canon.flyingBullets[chckIndx(i_570425641, 0, (state_1426065719.canon.flyingBullets).length - 1)]; - if (HEX3DHEX3D_1426065743(getPos_1677721842(state_1426065719.canon.bullets[chckIndx(b_1426065742, 0, (state_1426065719.canon.bullets).length - 1)]), getPos_1677721842(bullet_1426065720))) { - break BeforeRet; - } - - i_570425641 = addInt(i_570425641, 1); - if (!(((state_1426065719.canon.flyingBullets).length == L_570425642))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - if ((addInt(state_1426065719.canon.bulletsLimit, 20) < addInt((state_1426065719.canon.bullets).length, 1))) { - var toDelete_1426065756 = []; - Label4: { - var i_1426065765 = 0; - var colontmp__570425645 = 0; - colontmp__570425645 = subInt((state_1426065719.canon.bullets).length, state_1426065719.canon.bulletsLimit); - var res_570425646 = 0; - Label5: { - Label6: while (true) { - if (!(res_570425646 <= colontmp__570425645)) break Label6; - i_1426065765 = res_570425646; - Matter.Composite.remove((state_1426065719.engine.world), (state_1426065719.canon.bullets[chckIndx(i_1426065765, 0, (state_1426065719.canon.bullets).length - 1)])); - toDelete_1426065756.push(i_1426065765);; - res_570425646 = addInt(res_570425646, 1); - } - }; - }; - Label7: { - var i_1426065804 = 0; - var colontmp__570425654 = 0; - colontmp__570425654 = (toDelete_1426065756).length - 1; - var res_570425655 = colontmp__570425654; - Label8: { - Label9: while (true) { - if (!(0 <= res_570425655)) break Label9; - i_1426065804 = res_570425655; - delete_1426065805(state_1426065719.canon, "bullets", chckRange(toDelete_1426065756[chckIndx(i_1426065804, 0, (toDelete_1426065756).length - 1)], 0, 2147483647)); - var a_1426065858 = find_1426065827(state_1426065719.canon.flyingBullets, toDelete_1426065756[chckIndx(i_1426065804, 0, (toDelete_1426065756).length - 1)]); - if ((0 <= a_1426065858)) { - delete_1426065859(state_1426065719.canon, "flyingBullets", chckRange(a_1426065858, 0, 2147483647)); - } - - Label10: { - var fi_1426065902 = null; - var fi_1426065902_Idx = 0; - var i_570425651 = 0; - var L_570425652 = (state_1426065719.canon.flyingBullets).length; - Label11: { - Label12: while (true) { - if (!(i_570425651 < L_570425652)) break Label12; - fi_1426065902 = state_1426065719.canon.flyingBullets; fi_1426065902_Idx = chckIndx(i_570425651, 0, (state_1426065719.canon.flyingBullets).length - 1); - if ((toDelete_1426065756[chckIndx(i_1426065804, 0, (toDelete_1426065756).length - 1)] < fi_1426065902[fi_1426065902_Idx])) { - fi_1426065902[fi_1426065902_Idx] = subInt(fi_1426065902[fi_1426065902_Idx], 1); - } - - i_570425651 = addInt(i_570425651, 1); - if (!(((state_1426065719.canon.flyingBullets).length == L_570425652))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(255, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - res_570425655 = subInt(res_570425655, 1); - } - }; - }; - } - else { - if ((state_1426065719.canon.bulletsLimit < addInt((state_1426065719.canon.bullets).length, 1))) { - Label13: { - var i_1426065919 = 0; - var colontmp__570425658 = 0; - colontmp__570425658 = subInt((state_1426065719.canon.bullets).length, state_1426065719.canon.bulletsLimit); - var res_570425659 = 0; - Label14: { - Label15: while (true) { - if (!(res_570425659 <= colontmp__570425658)) break Label15; - i_1426065919 = res_570425659; - state_1426065719.canon.bullets[chckIndx(i_1426065919, 0, (state_1426065719.canon.bullets).length - 1)].collisionFilter.mask = 0; - if ((state_1426065719.canon.bullets[chckIndx(i_1426065919, 0, (state_1426065719.canon.bullets).length - 1)].isSleeping)) { - Matter.Sleeping.set((state_1426065719.canon.bullets[chckIndx(i_1426065919, 0, (state_1426065719.canon.bullets).length - 1)]), (false)); - } - - var a_1426065965 = find_1426065827(state_1426065719.canon.flyingBullets, i_1426065919); - if ((0 <= a_1426065965)) { - delete_1426065859(state_1426065719.canon, "flyingBullets", chckRange(a_1426065965, 0, 2147483647)); - } - - res_570425659 = addInt(res_570425659, 1); - } - }; - }; - } - } - Matter.Composite.add((state_1426065719.engine.world), (bullet_1426065720)); - state_1426065719.canon.bullets.push(bullet_1426065720);; - state_1426065719.canon.flyingBullets.push((state_1426065719.canon.bullets).length - 1);; - Matter.Body.setVelocity((bullet_1426065720), (jsVec_1426066013(state_1426065719.trajectories[chckIndx(state_1426065719.currentTrajectory, 0, (state_1426065719.trajectories).length - 1)].state.vel.Field0, -(state_1426065719.trajectories[chckIndx(state_1426065719.currentTrajectory, 0, (state_1426065719.trajectories).length - 1)].state.vel.Field1)))); - if (state_1426065719.frozen) { - unfreeze_1426064133(state_1426065719); - } - - }; - - -} - -function unloadEvents_1426068541(state_1426068542) { - state_1426068542.mouse.element.removeEventListener(("mousedown"), (state_1426068542.onMousedown)); - state_1426068542.mouse.element.removeEventListener(("mouseup"), (state_1426068542.onMouseup)); - state_1426068542.mouse.element.removeEventListener(("mousemove"), (state_1426068542.onMousemove)); - state_1426068542.mouse.element.removeEventListener(("mouseleave"), (state_1426068542.onMouseleave)); - state_1426068542.mouse.element.removeEventListener(("wheel"), (state_1426068542.onWheel)); - - -} - -function HEX2A_1459617802(a_1459617803, b_1459617804) { - var result_1459617805 = 0n; - - result_1459617805 = (a_1459617803 * b_1459617804); - - return result_1459617805; - -} - -function convert_1459618361(unitFrom_1459618363, unitTo_1459618364, quantity_1459618365) { - var Temporary1; - - var result_1459618366 = 0; - - if ((unitFrom_1459618363 < unitTo_1459618364)) { - Temporary1 = chckRange(Number(divInt64(BigInt(quantity_1459618365), divInt64(unitWeights_1459617942[chckIndx(unitTo_1459618364, 0, (unitWeights_1459617942).length - 1)], unitWeights_1459617942[chckIndx(unitFrom_1459618363, 0, (unitWeights_1459617942).length - 1)]))), (-2147483648), 2147483647); - } - else { - Temporary1 = chckRange(Number(HEX2A_1459617802(divInt64(unitWeights_1459617942[chckIndx(unitFrom_1459618363, 0, (unitWeights_1459617942).length - 1)], unitWeights_1459617942[chckIndx(unitTo_1459618364, 0, (unitWeights_1459617942).length - 1)]), BigInt(quantity_1459618365))), (-2147483648), 2147483647); - } - - result_1459618366 = Temporary1; - - return result_1459618366; - -} - -function initTime_1459618873(unix_1459618874, nanosecond_1459618875) { - var result_1459618876 = ({seconds: 0n, nanosecond: 0}); - - result_1459618876.seconds = unix_1459618874; - result_1459618876.nanosecond = nanosecond_1459618875; - - return result_1459618876; - -} - -function getTime_1459618951() { - var result_1459618952 = ({seconds: 0n, nanosecond: 0}); - - var millis_1459618957 = new Date().getTime(); - var seconds_1459618963 = convert_1459618361(2, 3, millis_1459618957); - var nanos_1459618974 = convert_1459618361(2, 0, modInt(millis_1459618957, convert_1459618361(3, 2, 1))); - result_1459618952 = nimCopy(result_1459618952, initTime_1459618873(BigInt(seconds_1459618963), chckRange(nanos_1459618974, 0, 999999999)), NTI1459617824); - - return result_1459618952; - -} - -function ntLeDuration(a_1459618816, b_1459618817) { - var result_1459618818 = false; - - result_1459618818 = ((a_1459618816.seconds < b_1459618817.seconds) || ((a_1459618816.seconds == b_1459618817.seconds) && (a_1459618816.nanosecond <= b_1459618817.nanosecond))); - - return result_1459618818; - -} - -function HEX2B_1459617810(a_1459617811, b_1459617812) { - var result_1459617813 = 0n; - - result_1459617813 = (a_1459617811 + b_1459617812); - - return result_1459617813; - -} - -function convert_1459618294(unitFrom_1459618296, unitTo_1459618297, quantity_1459618298) { - var Temporary1; - - var result_1459618299 = 0n; - - if ((unitFrom_1459618296 < unitTo_1459618297)) { - Temporary1 = divInt64(quantity_1459618298, divInt64(unitWeights_1459617942[chckIndx(unitTo_1459618297, 0, (unitWeights_1459617942).length - 1)], unitWeights_1459617942[chckIndx(unitFrom_1459618296, 0, (unitWeights_1459617942).length - 1)])); - } - else { - Temporary1 = HEX2A_1459617802(divInt64(unitWeights_1459617942[chckIndx(unitFrom_1459618296, 0, (unitWeights_1459617942).length - 1)], unitWeights_1459617942[chckIndx(unitTo_1459618297, 0, (unitWeights_1459617942).length - 1)]), quantity_1459618298); - } - - result_1459618299 = Temporary1; - - return result_1459618299; - -} - -function checkOverflowInt64(a_33557070) { - if (a_33557070 > 9223372036854775807n || a_33557070 < -9223372036854775808n) raiseOverflow(); - - - -} - -function normalize_1459618351(seconds_1459618353, nanoseconds_1459618354) { - var result_1459618355 = ({seconds: 0n, nanosecond: 0}); - - result_1459618355.seconds = HEX2B_1459617810(seconds_1459618353, convert_1459618294(0, 3, nanoseconds_1459618354)); - var nanosecond_1459618371 = modInt64(nanoseconds_1459618354, BigInt(convert_1459618361(3, 0, 1))); - if ((nanosecond_1459618371 < 0n)) { - nanosecond_1459618371 = addInt64(nanosecond_1459618371, BigInt(BigInt(convert_1459618361(3, 0, 1)))); - result_1459618355.seconds = subInt64(result_1459618355.seconds, BigInt(1)); - } - - result_1459618355.nanosecond = chckRange(chckRange(Number(nanosecond_1459618371), (-2147483648), 2147483647), 0, 999999999); - - return result_1459618355; - -} - -function HEX2D_1459617818(a_1459617819, b_1459617820) { - var result_1459617821 = 0n; - - result_1459617821 = (a_1459617819 - b_1459617820); - - return result_1459617821; - -} - -function HEX2D_1459617822(a_1459617823, b_1459617824) { - var result_1459617825 = 0; - - result_1459617825 = (a_1459617823 - b_1459617824); - - return result_1459617825; - -} - -function ntDiffTime(a_1459618992, b_1459618993) { - var result_1459618994 = ({seconds: 0n, nanosecond: 0}); - - result_1459618994 = nimCopy(result_1459618994, normalize_1459618351(HEX2D_1459617818(a_1459618992.seconds, b_1459618993.seconds), BigInt(HEX2D_1459617822(a_1459618992.nanosecond, b_1459618993.nanosecond))), NTI1459617826); - - return result_1459618994; - -} - -function initDuration_1459618284(nanoseconds_1459618285, microseconds_1459618286, milliseconds_1459618287, seconds_1459618288, minutes_1459618289, hours_1459618290, days_1459618291, weeks_1459618292) { - var result_1459618293 = ({seconds: 0n, nanosecond: 0}); - - var seconds_1459618339 = HEX2B_1459617810(HEX2B_1459617810(HEX2B_1459617810(HEX2B_1459617810(HEX2B_1459617810(HEX2B_1459617810(HEX2B_1459617810(convert_1459618294(7, 3, weeks_1459618292), convert_1459618294(6, 3, days_1459618291)), convert_1459618294(4, 3, minutes_1459618289)), convert_1459618294(5, 3, hours_1459618290)), convert_1459618294(3, 3, seconds_1459618288)), convert_1459618294(2, 3, milliseconds_1459618287)), convert_1459618294(1, 3, microseconds_1459618286)), convert_1459618294(0, 3, nanoseconds_1459618285)); - var nanoseconds_1459618350 = chckRange(Number(HEX2B_1459617810(HEX2B_1459617810(convert_1459618294(2, 0, modInt64(milliseconds_1459618287, 1000n)), convert_1459618294(1, 0, modInt64(microseconds_1459618286, 1000000n))), modInt64(nanoseconds_1459618285, 1000000000n))), (-2147483648), 2147483647); - result_1459618293 = nimCopy(result_1459618293, normalize_1459618351(seconds_1459618339, BigInt(nanoseconds_1459618350)), NTI1459617826); - - return result_1459618293; - -} - -function distance_1677721990(v1_1677721991, v2_1677721992) { - var result_1677721993 = 0.0; - - result_1677721993 = Math.sqrt(abs_905969874((HEX5E_1677721994((v2_1677721992.Field0 - v1_1677721991.Field0), 2) + HEX5E_1677721994((v2_1677721992.Field1 - v1_1677721991.Field1), 2)))); - - return result_1677721993; - -} - -function getPos_1426063805(state_1426063806, p_1426063807) { - var result_1426063808 = {Field0: 0.0, Field1: 0.0}; - - result_1426063808.Field0 = (state_1426063806.canon.pivot.Field0 + p_1426063807.pos.Field0); - result_1426063808.Field1 = ((state_1426063806.canvasSize.Field1 - 80.0) - p_1426063807.pos.Field1); - - return result_1426063808; - -} - -function calcClosestTrajectoryPoint_1426066108(state_1426066109, point_1426066110, minRange_1426066111) { - var Temporary7; - var Temporary11; - - var result_1426066113 = (-1); - var closestDistance_1426066114 = 0.0; - var bulletsPoints_1426066115 = []; - var bulletsDistance_1426066116 = []; - var calcBullet_1426066123 = (state_1426066109.paused && (0 < (state_1426066109.canon.flyingBullets).length)); - Label1: { - var e_1426066134 = 0; - var colontmp__570425692 = 0; - colontmp__570425692 = (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1; - var res_570425693 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425693 <= colontmp__570425692)) break Label3; - e_1426066134 = res_570425693; - var d_1426066135 = distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(e_1426066134, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), point_1426066110); - if (((result_1426066113 < 0) || (d_1426066135 < closestDistance_1426066114))) { - closestDistance_1426066114 = d_1426066135; - result_1426066113 = e_1426066134; - } - - if (calcBullet_1426066123) { - Label4: { - var i_1426066146 = 0; - var colontmp__570425689 = 0; - colontmp__570425689 = (state_1426066109.canon.flyingBullets).length - 1; - var res_570425690 = 0; - Label5: { - Label6: while (true) { - if (!(res_570425690 <= colontmp__570425689)) break Label6; - i_1426066146 = res_570425690; - var d_1426066147 = distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(e_1426066134, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), getPos_1677721842(state_1426066109.canon.bullets[chckIndx(state_1426066109.canon.flyingBullets[chckIndx(i_1426066146, 0, (state_1426066109.canon.flyingBullets).length - 1)], 0, (state_1426066109.canon.bullets).length - 1)])); - if (((bulletsDistance_1426066116).length - 1 < i_1426066146)) { - bulletsDistance_1426066116.push(0.0);; - } - - if (((bulletsPoints_1426066115).length - 1 < i_1426066146)) { - bulletsPoints_1426066115.push((-1));; - } - - if (((bulletsPoints_1426066115[chckIndx(i_1426066146, 0, (bulletsPoints_1426066115).length - 1)] < 0) || (d_1426066147 < bulletsDistance_1426066116[chckIndx(i_1426066146, 0, (bulletsDistance_1426066116).length - 1)]))) { - bulletsDistance_1426066116[chckIndx(i_1426066146, 0, (bulletsDistance_1426066116).length - 1)] = d_1426066147; - bulletsPoints_1426066115[chckIndx(i_1426066146, 0, (bulletsPoints_1426066115).length - 1)] = e_1426066134; - } - - res_570425690 = addInt(res_570425690, 1); - } - }; - }; - } - - res_570425693 = addInt(res_570425693, 1); - } - }; - }; - if ((minRange_1426066111 && (40.0 < closestDistance_1426066114))) { - Temporary7 = (-1); - } - else { - if ((!((result_1426066113 == state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].highestPoint)) && (distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(result_1426066113, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].highestPoint, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)])) < 10.0))) { - Temporary7 = state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].highestPoint; - } - else { - if ((!((result_1426066113 == (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)) && (distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(result_1426066113, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), getPos_1426063805(state_1426066109, HEX5BHEX5D_1426064495(state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points, 1))) < 10.0))) { - Temporary7 = (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1; - } - else { - if ((!((result_1426066113 == 0)) && (distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(result_1426066113, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(0, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)])) < 10.0))) { - Temporary7 = 0; - } - else { - if (calcBullet_1426066123) { - var closestBulletPoint_1426066172 = (-1); - var closestBulletDistance_1426066173 = 0.0; - Label8: { - var i_1426066184 = 0; - var colontmp__570425696 = 0; - colontmp__570425696 = (state_1426066109.canon.flyingBullets).length - 1; - var res_570425697 = 0; - Label9: { - Label10: while (true) { - if (!(res_570425697 <= colontmp__570425696)) break Label10; - i_1426066184 = res_570425697; - var d_1426066185 = distance_1677721990(getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(result_1426066113, 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)]), getPos_1426063805(state_1426066109, state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points[chckIndx(bulletsPoints_1426066115[chckIndx(i_1426066184, 0, (bulletsPoints_1426066115).length - 1)], 0, (state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].points).length - 1)])); - if (((0 <= bulletsPoints_1426066115[chckIndx(i_1426066184, 0, (bulletsPoints_1426066115).length - 1)]) || (d_1426066185 < 8.0))) { - if (((closestBulletPoint_1426066172 < 0) || (d_1426066185 < closestBulletDistance_1426066173))) { - closestBulletPoint_1426066172 = bulletsPoints_1426066115[chckIndx(i_1426066184, 0, (bulletsPoints_1426066115).length - 1)]; - closestBulletDistance_1426066173 = d_1426066185; - } - - } - - res_570425697 = addInt(res_570425697, 1); - } - }; - }; - if ((closestBulletDistance_1426066173 < 8.0)) { - Temporary11 = closestBulletPoint_1426066172; - } - else { - Temporary11 = result_1426066113; - } - - Temporary7 = Temporary11; - } - else { - Temporary7 = result_1426066113; - } - }}}} - result_1426066113 = Temporary7; - state_1426066109.trajectories[chckIndx(state_1426066109.currentTrajectory, 0, (state_1426066109.trajectories).length - 1)].closestPoint = result_1426066113; - - -} - -function vec_1677721884(v_1677721885) { - var result_1677721886 = {Field0: 0.0, Field1: 0.0}; - - var colontmp__570425699 = (v_1677721885.x); - var colontmp__570425700 = (v_1677721885.y); - result_1677721886 = nimCopy(result_1677721886, {Field0: colontmp__570425699, Field1: colontmp__570425700}, NTI1677721603); - - return result_1677721886; - -} - -function HEX5BHEX5D_1426066207(s_1426066209, i_1426066210) { - var result_1426066211 = null; - var result_1426066211_Idx = 0; - - result_1426066211 = s_1426066209; result_1426066211_Idx = chckIndx(subInt((s_1426066209).length, i_1426066210), 0, (s_1426066209).length - 1); - - return [result_1426066211, result_1426066211_Idx]; - -} - -function calcClosestTrajectoryPointToBullet_1426066201(state_1426066202, index_1426066203) { - var Temporary1; - var Temporary2; - var Temporary6; - - BeforeRet: { - if (((state_1426066202.canon.flyingBullets).length == 0)) { - state_1426066202.trajectories[chckIndx(state_1426066202.currentTrajectory, 0, (state_1426066202.trajectories).length - 1)].closestPoint = (-1); - break BeforeRet; - } - - if ((index_1426066203 < 0)) { - Temporary1 = state_1426066202.canon.bullets[chckIndx((Temporary2 = HEX5BHEX5D_1426066207(state_1426066202.canon.flyingBullets, 1), Temporary2)[0][Temporary2[1]], 0, (state_1426066202.canon.bullets).length - 1)]; - } - else { - Temporary1 = state_1426066202.canon.bullets[chckIndx(index_1426066203, 0, (state_1426066202.canon.bullets).length - 1)]; - } - - var bullet_1426066215 = Temporary1; - var result_1426066217 = (-1); - var closestDistance_1426066218 = 0.0; - Label3: { - var e_1426066229 = 0; - var colontmp__570425723 = 0; - colontmp__570425723 = (state_1426066202.trajectories[chckIndx(state_1426066202.currentTrajectory, 0, (state_1426066202.trajectories).length - 1)].points).length - 1; - var res_570425724 = 0; - Label4: { - Label5: while (true) { - if (!(res_570425724 <= colontmp__570425723)) break Label5; - e_1426066229 = res_570425724; - var d_1426066230 = distance_1677721990(getPos_1426063805(state_1426066202, state_1426066202.trajectories[chckIndx(state_1426066202.currentTrajectory, 0, (state_1426066202.trajectories).length - 1)].points[chckIndx(e_1426066229, 0, (state_1426066202.trajectories[chckIndx(state_1426066202.currentTrajectory, 0, (state_1426066202.trajectories).length - 1)].points).length - 1)]), getPos_1677721842(bullet_1426066215)); - if (((result_1426066217 < 0) || (d_1426066230 < closestDistance_1426066218))) { - closestDistance_1426066218 = d_1426066230; - result_1426066217 = e_1426066229; - } - - res_570425724 = addInt(res_570425724, 1); - } - }; - }; - if ((40.0 < closestDistance_1426066218)) { - Temporary6 = (-1); - } - else { - Temporary6 = result_1426066217; - } - - state_1426066202.trajectories[chckIndx(state_1426066202.currentTrajectory, 0, (state_1426066202.trajectories).length - 1)].closestPoint = Temporary6; - }; - - -} - -function find_2315258045(a_2315258048, item_2315258049) { - var result_2315258050 = 0; - - BeforeRet: { - result_2315258050 = 0; - Label1: { - var i_2315258054 = 0; - var i_1862271393 = 0; - Label2: { - Label3: while (true) { - if (!(i_1862271393 < (a_2315258048).length)) break Label3; - i_2315258054 = a_2315258048[chckIndx(i_1862271393, 0, (a_2315258048).length - 1)]; - if ((i_2315258054 == item_2315258049)) { - break BeforeRet; - } - - result_2315258050 = addInt(result_2315258050, 1); - i_1862271393 = addInt(i_1862271393, 1); - } - }; - }; - result_2315258050 = (-1); - }; - - return result_2315258050; - -} - -function contains_2315258040(a_2315258042, item_2315258043) { - var result_2315258044 = false; - - BeforeRet: { - result_2315258044 = (0 <= find_2315258045(a_2315258042, item_2315258043)); - break BeforeRet; - }; - - return result_2315258044; - -} - -function runOnce_1677721610(render_1677721611) { - Matter.Render.world((render_1677721611), (0)); - render_1677721611.context.setTransform((render_1677721611.options.pixelRatio), (0), (0), (render_1677721611.options.pixelRatio), (0), (0)); - render_1677721611.context.setTransform((1), (0), (0), (1), (0), (0)); - - -} - -function freeze_1426064108(state_1426064109) { - state_1426064109.runner.enabled = false; - Matter.Render.stop((state_1426064109.render)); - runOnce_1677721610(state_1426064109.render); - state_1426064109.frozen = true; - - -} - -function isNimException_33556443() { - return lastJSError && lastJSError.m_type; - - -} - -function getCurrentException() { - var result_33556446 = null; - - if (isNimException_33556443()) { - result_33556446 = lastJSError; - } - - - return result_33556446; - -} - -function pause_1426064084(state_1426064085) { - state_1426064085.runner.enabled = false; - state_1426064085.paused = true; - - -} - -function onAfterUpdate_1426066513(state_1426066514, event_1426066515) { - var Temporary5; - var Temporary6; - var Temporary19; - -++excHandler; - try { - if ((0 < (state_1426066514.canon.flyingBullets).length)) { - if ((state_1426066514.followBullet && !(state_1426066514.paused))) { - calcClosestTrajectoryPointToBullet_1426066201(state_1426066514, (-1)); - updatePointAccordion_1426064918(state_1426066514); - } - - } - - var toDelete_1426066523 = []; - Label2: { - var e_1426066534 = 0; - var colontmp__570425702 = 0; - colontmp__570425702 = (state_1426066514.canon.bullets).length - 1; - var res_570425703 = 0; - Label3: { - Label4: while (true) { - if (!(res_570425703 <= colontmp__570425702)) break Label4; - e_1426066534 = res_570425703; - if (((state_1426066514.canvasSize.Field1 + (state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)].circleRadius)) < getY_1677721829(state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)]))) { - Matter.Composite.remove((state_1426066514.engine.world), (state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)])); - toDelete_1426066523.push(e_1426066534);; - } - else { - if (!contains_2315258040(state_1426066514.canon.flyingBullets, e_1426066534)) Temporary6 = false; else { Temporary6 = (state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)].collisionFilter.mask == (0)); } if (!Temporary6) Temporary5 = false; else { Temporary5 = (getY_1677721829(state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)]) < ((state_1426066514.canvasSize.Field1 - 80.0) - (state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)].circleRadius))); } if (Temporary5) { - state_1426066514.canon.bullets[chckIndx(e_1426066534, 0, (state_1426066514.canon.bullets).length - 1)].collisionFilter.mask = 2; - } - } - res_570425703 = addInt(res_570425703, 1); - } - }; - }; - Label7: { - var i_1426066617 = 0; - var colontmp__570425706 = 0; - colontmp__570425706 = (toDelete_1426066523).length - 1; - var res_570425707 = colontmp__570425706; - Label8: { - Label9: while (true) { - if (!(0 <= res_570425707)) break Label9; - i_1426066617 = res_570425707; - delete_1426065805(state_1426066514.canon, "bullets", chckRange(toDelete_1426066523[chckIndx(i_1426066617, 0, (toDelete_1426066523).length - 1)], 0, 2147483647)); - var a_1426066627 = find_1426065827(state_1426066514.canon.flyingBullets, toDelete_1426066523[chckIndx(i_1426066617, 0, (toDelete_1426066523).length - 1)]); - if ((0 <= a_1426066627)) { - delete_1426065859(state_1426066514.canon, "flyingBullets", chckRange(a_1426066627, 0, 2147483647)); - } - - res_570425707 = subInt(res_570425707, 1); - } - }; - }; - if ((0 < (toDelete_1426066523).length)) { - Label10: { - var i_1426066648 = 0; - var colontmp__570425714 = 0; - colontmp__570425714 = (state_1426066514.canon.flyingBullets).length - 1; - var res_570425715 = 0; - Label11: { - Label12: while (true) { - if (!(res_570425715 <= colontmp__570425714)) break Label12; - i_1426066648 = res_570425715; - Label13: { - var di_1426066652 = 0; - var i_570425711 = 0; - var L_570425712 = (toDelete_1426066523).length; - Label14: { - Label15: while (true) { - if (!(i_570425711 < L_570425712)) break Label15; - di_1426066652 = toDelete_1426066523[chckIndx(i_570425711, 0, (toDelete_1426066523).length - 1)]; - if ((di_1426066652 < state_1426066514.canon.flyingBullets[chckIndx(i_1426066648, 0, (state_1426066514.canon.flyingBullets).length - 1)])) { - state_1426066514.canon.flyingBullets[chckIndx(i_1426066648, 0, (state_1426066514.canon.flyingBullets).length - 1)] = subInt(state_1426066514.canon.flyingBullets[chckIndx(i_1426066648, 0, (state_1426066514.canon.flyingBullets).length - 1)], 1); - } - - i_570425711 = addInt(i_570425711, 1); - if (!(((toDelete_1426066523).length == L_570425712))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - res_570425715 = addInt(res_570425715, 1); - } - }; - }; - } - - var freeze_1426066658 = true; - Label16: { - var b_1426066682 = null; - var colontmp__570425718 = []; - colontmp__570425718 = (Matter.Composite.allBodies((state_1426066514.engine.world))); - var i_570425719 = 0; - var L_570425720 = (colontmp__570425718).length; - Label17: { - Label18: while (true) { - if (!(i_570425719 < L_570425720)) break Label18; - b_1426066682 = colontmp__570425718[chckIndx(i_570425719, 0, (colontmp__570425718).length - 1)]; - if (!!((b_1426066682.isSleeping))) Temporary19 = false; else { Temporary19 = !((b_1426066682.isStatic)); } if (Temporary19) { - freeze_1426066658 = false; - if ((1000.0 < (b_1426066682.speed))) { - Matter.Body.setSpeed((b_1426066682), (10)); - } - - } - - i_570425719 = addInt(i_570425719, 1); - if (!(((colontmp__570425718).length == L_570425720))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - if (((((freeze_1426066658 && !(state_1426066514.canon.base.dragging)) && !(state_1426066514.canon.dragging)) && !(state_1426066514.draggingPoint)) && !((state_1426066514.followBullet && (0 < (state_1426066514.canon.flyingBullets).length))))) { - freeze_1426064108(state_1426066514); - } - ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI33555177))) { - var ex_1426066734 = getCurrentException(); - pause_1426064084(state_1426066514); - rawEcho(ex_1426066734.message); - rawEcho(ex_1426066734.trace); - raiseException(ex_1426066734, "Exception"); - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - - -} - -function onCollisionStart_1426066735(state_1426066736, event_1426066737) { - var Temporary5; - var Temporary6; - - if ((0 < (state_1426066736.canon.flyingBullets).length)) { - Label1: { - var pair_1426066747 = null; - var colontmp__570425737 = null; - colontmp__570425737 = event_1426066737.pairs; - var v_570425738 = null; - for (var k in colontmp__570425737) { - if (!colontmp__570425737.hasOwnProperty(k)) { continue; } - v_570425738 = colontmp__570425737[k]; - pair_1426066747 = v_570425738; - var toDelete_1426066748 = []; - Label2: { - var i_1426066772 = 0; - var bi_1426066773 = 0; - var i_570425730 = 0; - var L_570425731 = (state_1426066736.canon.flyingBullets).length; - Label3: { - Label4: while (true) { - if (!(i_570425730 < L_570425731)) break Label4; - i_1426066772 = i_570425730; - bi_1426066773 = state_1426066736.canon.flyingBullets[chckIndx(i_570425730, 0, (state_1426066736.canon.flyingBullets).length - 1)]; - var b_1426066774 = state_1426066736.canon.bullets[chckIndx(bi_1426066773, 0, (state_1426066736.canon.bullets).length - 1)]; - if ((pair_1426066747.bodyA.id == b_1426066774.id)) Temporary5 = true; else { Temporary5 = (pair_1426066747.bodyB.id == b_1426066774.id); } if (Temporary5) { - if (((pair_1426066747.bodyA.collisionFilter.category) == 2)) Temporary6 = true; else { Temporary6 = ((pair_1426066747.bodyB.collisionFilter.category) == 2); } var collision_1426066827 = Temporary6; - if (collision_1426066827) { - b_1426066774.frictionAir = 0.1; - b_1426066774.collisionFilter.mask = 3; - toDelete_1426066748.push(i_1426066772);; - if (state_1426066736.followBullet) { - state_1426066736.trajectories[chckIndx(state_1426066736.currentTrajectory, 0, (state_1426066736.trajectories).length - 1)].pinnedPoint = (state_1426066736.trajectories[chckIndx(state_1426066736.currentTrajectory, 0, (state_1426066736.trajectories).length - 1)].points).length - 1; - state_1426066736.trajectories[chckIndx(state_1426066736.currentTrajectory, 0, (state_1426066736.trajectories).length - 1)].closestPoint = state_1426066736.trajectories[chckIndx(state_1426066736.currentTrajectory, 0, (state_1426066736.trajectories).length - 1)].pinnedPoint; - updatePointAccordion_1426064918(state_1426066736); - } - - } - - } - - i_570425730 = addInt(i_570425730, 1); - if (!(((state_1426066736.canon.flyingBullets).length == L_570425731))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(179, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - Label7: { - var i_1426066869 = 0; - var colontmp__570425734 = 0; - colontmp__570425734 = (toDelete_1426066748).length - 1; - var res_570425735 = colontmp__570425734; - Label8: { - Label9: while (true) { - if (!(0 <= res_570425735)) break Label9; - i_1426066869 = res_570425735; - delete_1426065859(state_1426066736.canon, "flyingBullets", chckRange(toDelete_1426066748[chckIndx(i_1426066869, 0, (toDelete_1426066748).length - 1)], 0, 2147483647)); - res_570425735 = subInt(res_570425735, 1); - } - }; - }; - } - }; - } - - - -} - -function drawVelocityArrows_1426066874(state_1426066875, ctx_1426066876) { - var Temporary4; - var Temporary5; - var Temporary6; - var Temporary7; - - Label1: { - var i_1426066888 = 0; - var colontmp__570425740 = 0; - colontmp__570425740 = (state_1426066875.canon.flyingBullets).length - 1; - var res_570425741 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425741 <= colontmp__570425740)) break Label3; - i_1426066888 = res_570425741; - if (!state_1426066875.canon.showVyArrow) Temporary4 = false; else { Temporary4 = !(contains_1426064233(HEX2EHEX2E_1426063562(-4.0, 4.0), (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.y))); } if (Temporary4) { - drawArrow(ctx_1426066876, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x, (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y + (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.y * (0.375))), (3), ("red")); - } - - if (!state_1426066875.canon.showVxArrow) Temporary5 = false; else { Temporary5 = !(contains_1426064233(HEX2EHEX2E_1426063562(-4.0, 4.0), (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.x))); } if (Temporary5) { - drawArrow(ctx_1426066876, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y, (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x + (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.x * (0.375))), state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y, (3), ("DodgerBlue")); - } - - if (!state_1426066875.canon.showVArrow) Temporary6 = false; else { if (!(contains_1426064233(HEX2EHEX2E_1426063562(-4.0, 4.0), (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.x)))) Temporary7 = true; else { Temporary7 = !(contains_1426064233(HEX2EHEX2E_1426063562(-4.0, 4.0), (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.y))); } Temporary6 = Temporary7; } if (Temporary6) { - drawArrow(ctx_1426066876, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x, state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y, (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.x + (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.x * (0.375))), (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].position.y + (state_1426066875.canon.bullets[chckIndx(state_1426066875.canon.flyingBullets[chckIndx(i_1426066888, 0, (state_1426066875.canon.flyingBullets).length - 1)], 0, (state_1426066875.canon.bullets).length - 1)].velocity.y * (0.375))), (3), ("white")); - } - - res_570425741 = addInt(res_570425741, 1); - } - }; - }; - - -} - -function contains_1426067200(a_1426067202, index_1426067203) { - var result_1426067204 = false; - - result_1426067204 = contains_1459619435(HEX2EHEX2E_1157627952(0, (a_1426067202).length - 1), index_1426067203); - - return result_1426067204; - -} - -function HEX5BHEX5D_1426067289(s_1426067291, i_1426067292) { - var result_1426067293 = ({pos: {Field0: 0.0, Field1: 0.0}, vel: {Field0: 0.0, Field1: 0.0}, time: 0.0, speed: 0.0}); - - result_1426067293 = nimCopy(result_1426067293, s_1426067291[chckIndx(subInt((s_1426067291).length, i_1426067292), 0, (s_1426067291).length - 1)], NTI1426063365); - - return result_1426067293; - -} - -function drawTrajectory_1426067109(state_1426067110, ctx_1426067111) { - var Temporary8; - - BeforeRet: { - Label1: { - var e_1426067122 = 0; - var colontmp__570425749 = 0; - colontmp__570425749 = (state_1426067110.trajectories).length - 1; - var res_570425750 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425750 <= colontmp__570425749)) break Label3; - e_1426067122 = res_570425750; - Label4: { - if (((state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points).length == 0)) { - break Label4; - } - - ctx_1426067111.beginPath(); - var pos0_1426067130 = getPos_1426063805(state_1426067110, state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points[chckIndx(0, 0, (state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points).length - 1)]); - ctx_1426067111.moveTo((pos0_1426067130.Field0), (pos0_1426067130.Field1)); - ctx_1426067111.strokeStyle = toJSStr(trajectoryStrokeStyles_1426063558[chckIndx(state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].color, 0, (trajectoryStrokeStyles_1426063558).length - 1)]); - ctx_1426067111.lineWidth = 2; - Label5: { - var pe_1426067178 = 0; - var colontmp__570425746 = 0; - colontmp__570425746 = (state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points).length - 1; - var res_570425747 = 0; - Label6: { - Label7: while (true) { - if (!(res_570425747 <= colontmp__570425746)) break Label7; - pe_1426067178 = res_570425747; - if ((0 < pe_1426067178)) { - var pos_1426067179 = getPos_1426063805(state_1426067110, state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points[chckIndx(pe_1426067178, 0, (state_1426067110.trajectories[chckIndx(e_1426067122, 0, (state_1426067110.trajectories).length - 1)].points).length - 1)]); - ctx_1426067111.lineTo((pos_1426067179.Field0), (pos_1426067179.Field1)); - } - - res_570425747 = addInt(res_570425747, 1); - } - }; - }; - }; - ctx_1426067111.stroke(); - res_570425750 = addInt(res_570425750, 1); - } - }; - }; - if (!(contains_1426067200(state_1426067110.trajectories, state_1426067110.currentTrajectory))) { - break BeforeRet; - } - - ctx_1426067111.fillStyle = "#47D916"; - if (contains_1426064861(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].highestPoint)) { - var middlePos_1426067238 = getPos_1426063805(state_1426067110, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points[chckIndx(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].highestPoint, 0, (state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points).length - 1)]); - ctx_1426067111.beginPath(); - ctx_1426067111.arc((middlePos_1426067238.Field0), (middlePos_1426067238.Field1), (5), (0), (6.283185307179586)); - ctx_1426067111.fill(); - } - - if ((0 < (state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points).length)) { - var lastPos_1426067297 = getPos_1426063805(state_1426067110, HEX5BHEX5D_1426067289(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points, 1)); - ctx_1426067111.beginPath(); - ctx_1426067111.arc((lastPos_1426067297.Field0), (lastPos_1426067297.Field1), (5), (0), (6.283185307179586)); - ctx_1426067111.fill(); - } - - if ((state_1426067110.followBullet && (0 < (state_1426067110.canon.flyingBullets).length))) { - Temporary8 = {Field0: false, Field1: {Field0: 0.0, Field1: 0.0}}; - } - else { - if ((state_1426067110.draggingPoint && contains_1426064861(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].closestPoint))) { - Temporary8 = {Field0: true, Field1: getPos_1426063805(state_1426067110, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points[chckIndx(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].closestPoint, 0, (state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points).length - 1)])}; - } - else { - if ((!(state_1426067110.draggingPoint) && contains_1426064861(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].pinnedPoint))) { - Temporary8 = {Field0: true, Field1: getPos_1426063805(state_1426067110, state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points[chckIndx(state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].pinnedPoint, 0, (state_1426067110.trajectories[chckIndx(state_1426067110.currentTrajectory, 0, (state_1426067110.trajectories).length - 1)].points).length - 1)])}; - } - else { - Temporary8 = {Field0: false, Field1: {Field0: 0.0, Field1: 0.0}}; - } - }} - var tmpTuple_1426067365 = nimCopy(null, Temporary8, NTI1426066550); - var drawPoint_1426067366 = tmpTuple_1426067365["Field0"]; - var pos_1426067367 = nimCopy(null, tmpTuple_1426067365["Field1"], NTI1677721603); - if (drawPoint_1426067366) { - ctx_1426067111.fillStyle = "#16B0D9"; - ctx_1426067111.beginPath(); - ctx_1426067111.arc((pos_1426067367.Field0), (pos_1426067367.Field1), (7), (0), (6.283185307179586)); - ctx_1426067111.fill(); - } - - }; - - -} - -function drawAngle_1426068018(state_1426068019, ctx_1426068020) { - ctx_1426068020.lineWidth = 2; - ctx_1426068020.strokeStyle = "#C7C7D1"; - var radius_1426068041 = (state_1426068019.canon.imgSize.Field0 / 1.25); - ctx_1426068020.beginPath(); - ctx_1426068020.moveTo((state_1426068019.canon.pivot.Field0), (state_1426068019.canon.pivot.Field1)); - ctx_1426068020.lineTo(((state_1426068019.canon.pivot.Field0 + radius_1426068041)), (state_1426068019.canon.pivot.Field1)); - ctx_1426068020.arc((state_1426068019.canon.pivot.Field0), (state_1426068019.canon.pivot.Field1), (radius_1426068041), (0), (-(state_1426068019.trajectories[chckIndx(state_1426068019.currentTrajectory, 0, (state_1426068019.trajectories).length - 1)].state.angleRad)), (true)); - ctx_1426068020.stroke(); - var angle_1426068130 = abs_905969874(state_1426068019.trajectories[chckIndx(state_1426068019.currentTrajectory, 0, (state_1426068019.trajectories).length - 1)].state.angleDeg); - Label1: { - var fmtRes_1426068134 = [mnewString(0)]; - formatValue_1426064018(fmtRes_1426068134, 0, angle_1426068130, [46,48,102]); - fmtRes_1426068134[0].push.apply(fmtRes_1426068134[0], [194,176]);; - }; - var text_1426068140 = nimCopy(null, fmtRes_1426068134[0], NTI33554449); - ctx_1426068020.font = "22px serif"; - ctx_1426068020.fillStyle = "white"; - ctx_1426068020.shadowColor = "black"; - ctx_1426068020.shadowOffsetX = 2; - ctx_1426068020.shadowOffsetY = 2; - ctx_1426068020.fillText((toJSStr(text_1426068140)), (((state_1426068019.canon.pivot.Field0 + radius_1426068041) + 10.0)), ((state_1426068019.canon.pivot.Field1 - 10.0))); - ctx_1426068020.shadowOffsetX = 0; - ctx_1426068020.shadowOffsetY = 0; - - -} - -function toFloat_33556008(i_33556009) { - var result_33556010 = 0.0; - - result_33556010 = i_33556009; - - return result_33556010; - -} - -function HEX2F_33556020(x_33556021, y_33556022) { - var result_33556023 = 0.0; - - result_33556023 = (toFloat_33556008(x_33556021) / toFloat_33556008(y_33556022)); - - return result_33556023; - -} - -function drawHeight_1426067455(state_1426067456, ctx_1426067457) { - Label1: { - var fmtRes_1426067462 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426067462, 0, strfloat_1426063991(state_1426067456, toMuDistance_1694499108(state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height)), []); - fmtRes_1426067462[0].push.apply(fmtRes_1426067462[0], [109]);; - }; - var text_1426067463 = nimCopy(null, fmtRes_1426067462[0], NTI33554449); - var xOffset_1426067464 = (-((state_1426067456.canon.platform.imgSize.Field0 / 2.0)) - 10.0); - if ((0.0 < state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height)) { - ctx_1426067457.beginPath(); - ctx_1426067457.moveTo((((state_1426067456.canon.pivot.Field0 + xOffset_1426067464) - 20.0)), ((state_1426067456.canvasSize.Field1 - 80.0))); - ctx_1426067457.lineTo(((state_1426067456.canon.pivot.Field0 + xOffset_1426067464)), ((state_1426067456.canvasSize.Field1 - 80.0))); - ctx_1426067457.moveTo((((state_1426067456.canon.pivot.Field0 + xOffset_1426067464) - 20.0)), (((state_1426067456.canvasSize.Field1 - 80.0) - state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height))); - ctx_1426067457.lineTo(((state_1426067456.canon.pivot.Field0 + xOffset_1426067464)), (((state_1426067456.canvasSize.Field1 - 80.0) - state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height))); - ctx_1426067457.moveTo((((state_1426067456.canon.pivot.Field0 + xOffset_1426067464) - HEX2F_33556020(20, 2))), ((state_1426067456.canvasSize.Field1 - 80.0))); - ctx_1426067457.lineTo((((state_1426067456.canon.pivot.Field0 + xOffset_1426067464) - HEX2F_33556020(20, 2))), (((state_1426067456.canvasSize.Field1 - 80.0) - state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height))); - ctx_1426067457.strokeStyle = "white"; - ctx_1426067457.lineWidth = 1; - ctx_1426067457.stroke(); - } - - ctx_1426067457.font = "22px serif"; - ctx_1426067457.fillStyle = "white"; - ctx_1426067457.shadowColor = "black"; - ctx_1426067457.shadowOffsetX = 2; - ctx_1426067457.shadowOffsetY = 2; - var metrics_1426067653 = ctx_1426067457.measureText((toJSStr(text_1426067463))); - var twidth_1426067670 = clamp_1426063663((metrics_1426067653.width), HEX2EHEX2E_1426063562(50.0, 100.0)); - var theight_1426067690 = clamp_1426063663(((metrics_1426067653.actualBoundingBoxAscent + metrics_1426067653.actualBoundingBoxDescent)), HEX2EHEX2E_1426063562(10.0, 25.0)); - ctx_1426067457.fillText((toJSStr(text_1426067463)), (((((state_1426067456.canon.pivot.Field0 + xOffset_1426067464) - HEX2F_33556020(20, 2)) - twidth_1426067670) - 5.0)), ((((state_1426067456.canvasSize.Field1 - 80.0) - (state_1426067456.trajectories[chckIndx(state_1426067456.currentTrajectory, 0, (state_1426067456.trajectories).length - 1)].state.height / 2.0)) - (theight_1426067690 / 2.0)))); - ctx_1426067457.shadowOffsetX = 0; - ctx_1426067457.shadowOffsetY = 0; - - -} - -function drawRange_1426067735(state_1426067736, ctx_1426067737) { - Label1: { - var fmtRes_1426067743 = [mnewString(0)]; - formatValue_1577058475(fmtRes_1426067743, 0, strfloat_1426063991(state_1426067736, toMuDistance_1694499108(HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0)), []); - fmtRes_1426067743[0].push.apply(fmtRes_1426067743[0], [109]);; - }; - var text_1426067748 = nimCopy(null, fmtRes_1426067743[0], NTI33554449); - if (!((HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0 == 0.0))) { - ctx_1426067737.beginPath(); - ctx_1426067737.moveTo((state_1426067736.canon.pivot.Field0), (((state_1426067736.canvasSize.Field1 - 80.0) + 50.0))); - ctx_1426067737.lineTo((state_1426067736.canon.pivot.Field0), ((((state_1426067736.canvasSize.Field1 - 80.0) + 50.0) + 10.0))); - ctx_1426067737.moveTo(((state_1426067736.canon.pivot.Field0 + HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0)), (((state_1426067736.canvasSize.Field1 - 80.0) + 50.0))); - ctx_1426067737.lineTo(((state_1426067736.canon.pivot.Field0 + HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0)), ((((state_1426067736.canvasSize.Field1 - 80.0) + 50.0) + 10.0))); - ctx_1426067737.moveTo((state_1426067736.canon.pivot.Field0), ((((state_1426067736.canvasSize.Field1 - 80.0) + 50.0) + HEX2F_33556020(10, 2)))); - ctx_1426067737.lineTo(((state_1426067736.canon.pivot.Field0 + HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0)), ((((state_1426067736.canvasSize.Field1 - 80.0) + 50.0) + HEX2F_33556020(10, 2)))); - ctx_1426067737.strokeStyle = "white"; - ctx_1426067737.lineWidth = 1; - ctx_1426067737.stroke(); - } - - ctx_1426067737.font = "22px serif"; - ctx_1426067737.fillStyle = "white"; - ctx_1426067737.shadowColor = "black"; - ctx_1426067737.shadowOffsetX = 2; - ctx_1426067737.shadowOffsetY = 2; - var textWidth_1426067969 = clamp_1426063663((ctx_1426067737.measureText((toJSStr(text_1426067748))).width), HEX2EHEX2E_1426063562(50.0, 100.0)); - ctx_1426067737.fillText((toJSStr(text_1426067748)), (((state_1426067736.canon.pivot.Field0 + (HEX5BHEX5D_1426067289(state_1426067736.trajectories[chckIndx(state_1426067736.currentTrajectory, 0, (state_1426067736.trajectories).length - 1)].points, 1).pos.Field0 / 2.0)) - (textWidth_1426067969 / 2.0))), ((state_1426067736.canvasSize.Field1 - 40.0))); - ctx_1426067737.shadowOffsetX = 0; - ctx_1426067737.shadowOffsetY = 0; - - -} - -function onAfterRender_1426068235(state_1426068236, event_1426068237) { -++excHandler; - try { - Matter.Render.startViewTransform((state_1426068236.render)); - var ctx_1426068254 = state_1426068236.render.context; - drawVelocityArrows_1426066874(state_1426068236, ctx_1426068254); - if ((0 < (state_1426068236.trajectories[chckIndx(state_1426068236.currentTrajectory, 0, (state_1426068236.trajectories).length - 1)].points).length)) { - drawTrajectory_1426067109(state_1426068236, ctx_1426068254); - drawAngle_1426068018(state_1426068236, ctx_1426068254); - drawHeight_1426067455(state_1426068236, ctx_1426068254); - drawRange_1426067735(state_1426068236, ctx_1426068254); - } - - var _ = Matter.Render.endViewTransform((state_1426068236.render)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI33555177))) { - var ex_1426068274 = getCurrentException(); - pause_1426064084(state_1426068236); - rawEcho(ex_1426068274.message); - rawEcho(ex_1426068274.trace); - raiseException(ex_1426068274, "Exception"); - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - - -} - -function newSeq_1426068339(len_1426068341) { - var result_1426068342 = []; - - result_1426068342 = new Array(len_1426068341); for (var i = 0 ; i < len_1426068341 ; ++i) { result_1426068342[i] = null; } - return result_1426068342; - -} - -function HEX2A_1056964616(x_1056964617, order_1056964618) { - var result_1056964619 = 0; - - var y_1056964624 = subInt(order_1056964618, 1); - result_1056964619 = subInt((x_1056964617 ^ y_1056964624), y_1056964624); - - return result_1056964619; - -} - -function mergeAlt_1426068372(a_1426068374, b_1426068375, lo_1426068376, m_1426068377, hi_1426068378, cmp_1426068381, order_1426068382) { - BeforeRet: { - if ((HEX2A_1056964616(cmp_1426068381(a_1426068374[chckIndx(m_1426068377, 0, (a_1426068374).length - 1)], a_1426068374[chckIndx(addInt(m_1426068377, 1), 0, (a_1426068374).length - 1)]), order_1426068382) <= 0)) { - break BeforeRet; - } - - var j_1426068383 = lo_1426068376; - if (!((j_1426068383 <= m_1426068377))) { - failedAssertImpl_268435541([97,108,103,111,114,105,116,104,109,46,110,105,109,40,51,51,56,44,32,51,41,32,96,106,32,60,61,32,109,96,32]); - } - - var bb_1426068389 = 0; - Label1: { - Label2: while (true) { - if (!(j_1426068383 <= m_1426068377)) break Label2; - b_1426068375[chckIndx(bb_1426068389, 0, (b_1426068375).length - 1)] = a_1426068374[chckIndx(j_1426068383, 0, (a_1426068374).length - 1)]; - bb_1426068389 = addInt(bb_1426068389, 1); - j_1426068383 = addInt(j_1426068383, 1); - } - }; - var i_1426068400 = 0; - var k_1426068401 = lo_1426068376; - Label3: { - Label4: while (true) { - if (!((k_1426068401 < j_1426068383) && (j_1426068383 <= hi_1426068378))) break Label4; - if ((HEX2A_1056964616(cmp_1426068381(b_1426068375[chckIndx(i_1426068400, 0, (b_1426068375).length - 1)], a_1426068374[chckIndx(j_1426068383, 0, (a_1426068374).length - 1)]), order_1426068382) <= 0)) { - a_1426068374[chckIndx(k_1426068401, 0, (a_1426068374).length - 1)] = b_1426068375[chckIndx(i_1426068400, 0, (b_1426068375).length - 1)]; - i_1426068400 = addInt(i_1426068400, 1); - } - else { - a_1426068374[chckIndx(k_1426068401, 0, (a_1426068374).length - 1)] = a_1426068374[chckIndx(j_1426068383, 0, (a_1426068374).length - 1)]; - j_1426068383 = addInt(j_1426068383, 1); - } - - k_1426068401 = addInt(k_1426068401, 1); - } - }; - Label5: { - Label6: while (true) { - if (!(k_1426068401 < j_1426068383)) break Label6; - a_1426068374[chckIndx(k_1426068401, 0, (a_1426068374).length - 1)] = b_1426068375[chckIndx(i_1426068400, 0, (b_1426068375).length - 1)]; - k_1426068401 = addInt(k_1426068401, 1); - i_1426068400 = addInt(i_1426068400, 1); - } - }; - }; - - -} - -function sort_1426068355(a_1426068357, cmp_1426068360, order_1426068361) { - var n_1426068365 = (a_1426068357).length; - var b_1426068369 = newSeq_1426068339(chckRange(divInt(n_1426068365, 2), 0, 2147483647)); - var s_1426068370 = 1; - Label1: { - Label2: while (true) { - if (!(s_1426068370 < n_1426068365)) break Label2; - var m_1426068371 = subInt(subInt(n_1426068365, 1), s_1426068370); - Label3: { - Label4: while (true) { - if (!(0 <= m_1426068371)) break Label4; - mergeAlt_1426068372(a_1426068357, b_1426068369, nimMax(addInt(subInt(m_1426068371, s_1426068370), 1), 0), m_1426068371, addInt(m_1426068371, s_1426068370), cmp_1426068360, order_1426068361); - m_1426068371 = subInt(m_1426068371, mulInt(s_1426068370, 2)); - } - }; - s_1426068370 = mulInt(s_1426068370, 2); - } - }; - - -} - -function sorted_1426068327(a_1426068329, cmp_1426068332, order_1426068333) { - var result_1426068334 = []; - - result_1426068334 = nimCopy(null, newSeq_1426068339(chckRange((a_1426068329).length, 0, 2147483647)), NTI1426067175); - Label1: { - var i_1426068354 = 0; - var colontmp__570425756 = 0; - colontmp__570425756 = (a_1426068329).length - 1; - var res_570425757 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425757 <= colontmp__570425756)) break Label3; - i_1426068354 = res_570425757; - result_1426068334[chckIndx(i_1426068354, 0, (result_1426068334).length - 1)] = a_1426068329[chckIndx(i_1426068354, 0, (a_1426068329).length - 1)]; - res_570425757 = addInt(res_570425757, 1); - } - }; - }; - sort_1426068355(result_1426068334, cmp_1426068332, order_1426068333); - - return result_1426068334; - -} - -function onAfterAdd_1426068275(state_1426068276, event_1426068277) { - -function HEX3Aanonymous_1426068291(a_1426068292, b_1426068293) { - var Temporary1; - var Temporary2; - - var result_1426068294 = 0; - - if ((a_1426068292.zIndex == null)) { - Temporary1 = 0; - } - else { - Temporary1 = (((a_1426068292.zIndex)) | 0); - } - - var z1_1426068308 = Temporary1; - if ((b_1426068293.zIndex == null)) { - Temporary2 = 0; - } - else { - Temporary2 = (((b_1426068293.zIndex)) | 0); - } - - var z2_1426068322 = Temporary2; - result_1426068294 = subInt(z1_1426068308, z2_1426068322); - - return result_1426068294; - - } - - state_1426068276.engine.world.bodies = sorted_1426068327((state_1426068276.engine.world.bodies), HEX3Aanonymous_1426068291, 1); - - -} - -function onStartdrag_1426068473(state_1426068474, event_1426068475) { - var toDelete_1426068476 = []; - Label1: { - var i_1426068482 = 0; - var bi_1426068483 = 0; - var i_570425765 = 0; - var L_570425766 = (state_1426068474.canon.flyingBullets).length; - Label2: { - Label3: while (true) { - if (!(i_570425765 < L_570425766)) break Label3; - i_1426068482 = i_570425765; - bi_1426068483 = state_1426068474.canon.flyingBullets[chckIndx(i_570425765, 0, (state_1426068474.canon.flyingBullets).length - 1)]; - var b_1426068484 = state_1426068474.canon.bullets[chckIndx(bi_1426068483, 0, (state_1426068474.canon.bullets).length - 1)]; - if ((event_1426068475.body.id == b_1426068484.id)) { - b_1426068484.frictionAir = 0.1; - b_1426068484.collisionFilter.mask = 3; - toDelete_1426068476.push(i_1426068482);; - if (state_1426068474.followBullet) { - state_1426068474.trajectories[chckIndx(state_1426068474.currentTrajectory, 0, (state_1426068474.trajectories).length - 1)].pinnedPoint = state_1426068474.trajectories[chckIndx(state_1426068474.currentTrajectory, 0, (state_1426068474.trajectories).length - 1)].closestPoint; - } - - } - - i_570425765 = addInt(i_570425765, 1); - if (!(((state_1426068474.canon.flyingBullets).length == L_570425766))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(179, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - Label4: { - var i_1426068536 = 0; - var colontmp__570425769 = 0; - colontmp__570425769 = (toDelete_1426068476).length - 1; - var res_570425770 = colontmp__570425769; - Label5: { - Label6: while (true) { - if (!(0 <= res_570425770)) break Label6; - i_1426068536 = res_570425770; - delete_1426065859(state_1426068474.canon, "flyingBullets", chckRange(toDelete_1426068476[chckIndx(i_1426068536, 0, (toDelete_1426068476).length - 1)], 0, 2147483647)); - res_570425770 = subInt(res_570425770, 1); - } - }; - }; - - -} - -function loadEvents_1426068643(state_1426068644) { - -function onMousedown_1426068685(event_1426068686) { - BeforeRet: { - if (!(state_1426068644.startedRendering)) { - break BeforeRet; - } - - if ( (event_1426068686.button) == 0 ){ var t_1426068694 = getTime_1459618951(); - if (ntLeDuration(ntDiffTime(t_1426068694, state_1426068644.timeAtClick), initDuration_1459618284(0n, 0n, 250n, 0n, 0n, 0n, 0n, 0n))) { - calcClosestTrajectoryPoint_1426066108(state_1426068644, vec_1677721884(state_1426068644.mouse.position), true); - if (contains_1426064861(state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].points, state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].closestPoint)) { - if ((state_1426068644.followBullet && (0 < (state_1426068644.canon.flyingBullets).length))) { - document.getElementById("point-input-f").checked = false; - state_1426068644.followBullet = false; - } - - state_1426068644.draggingPoint = true; - updatePointAccordion_1426064918(state_1426068644); - } - else { - if (contains_1426064861(state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].points, state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].pinnedPoint)) { - state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].pinnedPoint = (-1); - updatePointAccordion_1426064918(state_1426068644); - } - } - } - else { - if ((Matter.Bounds.contains((state_1426068644.canon.base.body.bounds), (state_1426068644.mouse.position)))) { - state_1426068644.canon.base.dragging = true; - state_1426068644.canon.base.dragOffset = (getY_1677721829(state_1426068644.canon.base.body) - (state_1426068644.mouse.position.y)); - } - else { - if ((Matter.Bounds.contains((state_1426068644.canon.body.bounds), (state_1426068644.mouse.position)))) { - state_1426068644.canon.dragging = true; - state_1426068644.canon.dragOffset = ((Matter.Vector.angle((jsVec_1677721758(state_1426068644.canon.pivot)), (state_1426068644.mouse.position))) - (state_1426068644.canon.body.angle)); - } - else { - if ((Matter.Bounds.contains((state_1426068644.canon.platform.body.bounds), (state_1426068644.mouse.position)))) { - state_1426068644.canon.base.dragging = true; - state_1426068644.canon.base.dragOffset = (getY_1677721829(state_1426068644.canon.base.body) - (state_1426068644.mouse.position.y)); - } - else { - if ((state_1426068644.frozen || !(state_1426068644.paused))) { - Matter.MouseConstraint.onmousedown((state_1426068644.mouseCons), (Matter.Composite.allBodies((state_1426068644.engine.world)))); - if (state_1426068644.frozen) { - unfreeze_1426064133(state_1426068644); - } - - } - }}}} - state_1426068644.timeAtClick = nimCopy(state_1426068644.timeAtClick, t_1426068694, NTI1459617824); - } - else if ( (event_1426068686.button) == 1 ){ fireBullet_1426065718(state_1426068644); - } - else{ - } - }; - - - } - -function onMouseup_1426068892(event_1426068893) { - BeforeRet: { - if (!(state_1426068644.startedRendering)) { - break BeforeRet; - } - - if ( (event_1426068893.button) == 0 ){ Matter.MouseConstraint.onmouseup((state_1426068644.mouseCons)); - if ((state_1426068644.draggingPoint && contains_1426064861(state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].points, state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].closestPoint))) { - state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].pinnedPoint = state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].closestPoint; - updatePointAccordion_1426064918(state_1426068644); - } - - state_1426068644.canon.dragging = false; - state_1426068644.canon.base.dragging = false; - state_1426068644.draggingPoint = false; - } - else{ - } - }; - - - } - -function onMousemove_1426068645(event_1426068646) { - BeforeRet: { - if (!(state_1426068644.startedRendering)) { - break BeforeRet; - } - - if (state_1426068644.canon.dragging) { - var targetAngle_1426068674 = ((Matter.Vector.angle((jsVec_1677721758(state_1426068644.canon.pivot)), (state_1426068644.mouse.position))) - state_1426068644.canon.dragOffset); - rotateCanon_1426064221(state_1426068644, (targetAngle_1426068674 - (state_1426068644.canon.body.angle)), true); - calcTrajectory_1426065138(state_1426068644); - } - else { - if (state_1426068644.canon.base.dragging) { - onResize_1426065422(state_1426068644, false); - rotateCanon_1426064221(state_1426068644, 0.0, true); - } - else { - if (state_1426068644.draggingPoint) { - calcClosestTrajectoryPoint_1426066108(state_1426068644, vec_1677721884(state_1426068644.mouse.position), false); - updatePointAccordion_1426064918(state_1426068644); - } - }} - }; - - - } - -function onMouseleave_1426068918(event_1426068919) { - BeforeRet: { - if (!(state_1426068644.startedRendering)) { - break BeforeRet; - } - - if ((state_1426068644.draggingPoint && contains_1426064861(state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].points, state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].closestPoint))) { - state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].pinnedPoint = state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].closestPoint; - updatePointAccordion_1426064918(state_1426068644); - } - - state_1426068644.canon.dragging = false; - state_1426068644.canon.base.dragging = false; - state_1426068644.draggingPoint = false; - Matter.MouseConstraint.onmouseup((state_1426068644.mouseCons)); - }; - - - } - -function onWheel_1426068937(event_1426068938) { - BeforeRet: { - if (!(state_1426068644.startedRendering)) { - break BeforeRet; - } - - var wheelDelta_1426068946 = (event_1426068938.wheelDelta); - if (!((wheelDelta_1426068946 == 0.0))) { - var change_1426068947 = (wheelDelta_1426068946 * 0.052083333333333336); - setSpeed_1426063660(state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].state, (state_1426068644.trajectories[chckIndx(state_1426068644.currentTrajectory, 0, (state_1426068644.trajectories).length - 1)].state.speed + change_1426068947)); - calcTrajectory_1426065138(state_1426068644); - } - - }; - - - } - -function innerHEX60gensym1032_1426068950() { - var result_1426068951 = null; - - BeforeRet: { - var a_1426068952 = null; - a_1426068952 = {}; - a_1426068952.passive = true; - result_1426068951 = a_1426068952; - break BeforeRet; - }; - - return result_1426068951; - - } - -function HEX3Aanonymous_1426069151(event_1426069152) { - onAfterUpdate_1426066513(state_1426068644, event_1426069152); - - - } - -function HEX3Aanonymous_1426069181(event_1426069182) { - onCollisionStart_1426066735(state_1426068644, event_1426069182); - - - } - -function HEX3Aanonymous_1426069211(event_1426069212) { - onAfterRender_1426068235(state_1426068644, event_1426069212); - - - } - -function HEX3Aanonymous_1426069244(event_1426069245) { - onAfterAdd_1426068275(state_1426068644, event_1426069245); - - - } - -function HEX3Aanonymous_1426069274(event_1426069275) { - onStartdrag_1426068473(state_1426068644, event_1426069275); - - - } - - state_1426068644.onMousedown = onMousedown_1426068685; - state_1426068644.onMouseup = onMouseup_1426068892; - state_1426068644.onMousemove = onMousemove_1426068645; - state_1426068644.onMouseleave = onMouseleave_1426068918; - state_1426068644.onWheel = onWheel_1426068937; - var pasiveTrue_1426068966 = innerHEX60gensym1032_1426068950(); - state_1426068644.mouse.element.addEventListener(("mousedown"), (state_1426068644.onMousedown), (pasiveTrue_1426068966)); - state_1426068644.mouse.element.removeEventListener(("mouseup"), (state_1426068644.mouse.mouseup)); - state_1426068644.mouse.element.addEventListener(("mouseup"), (state_1426068644.onMouseup), (pasiveTrue_1426068966)); - state_1426068644.mouse.element.addEventListener(("mouseup"), (state_1426068644.mouse.mouseup), (pasiveTrue_1426068966)); - state_1426068644.mouse.element.addEventListener(("mousemove"), (state_1426068644.onMousemove), (pasiveTrue_1426068966)); - state_1426068644.mouse.element.addEventListener(("mouseleave"), (state_1426068644.onMouseleave), (pasiveTrue_1426068966)); - state_1426068644.mouse.element.addEventListener(("wheel"), (state_1426068644.onWheel)); - Matter.Events.on((state_1426068644.engine), ("afterUpdate"), (HEX3Aanonymous_1426069151)); - Matter.Events.on((state_1426068644.engine), ("collisionStart"), (HEX3Aanonymous_1426069181)); - Matter.Events.on((state_1426068644.render), ("afterRender"), (HEX3Aanonymous_1426069211)); - Matter.Events.on((state_1426068644.engine.world), ("afterAdd"), (HEX3Aanonymous_1426069244)); - Matter.Events.on((state_1426068644.mouseCons), ("startdrag"), (HEX3Aanonymous_1426069274)); - - -} - -function integerOutOfRangeError_889192773() { - raiseException({message: [80,97,114,115,101,100,32,105,110,116,101,103,101,114,32,111,117,116,115,105,100,101,32,111,102,32,118,97,108,105,100,32,114,97,110,103,101], parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - - -} - -function rawParseInt_889192775(s_889192776, b_889192777, b_889192777_Idx) { - var Temporary1; - var Temporary4; - - var result_889192778 = 0; - - var sign_889192779 = (-1n); - var i_889192780 = 0; - if ((i_889192780 < (s_889192776).length)) { - if ((s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)] == 43)) { - i_889192780 += 1; - } - else { - if ((s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)] == 45)) { - i_889192780 += 1; - sign_889192779 = 1n; - } - } - } - - if (!(i_889192780 < (s_889192776).length)) Temporary1 = false; else { Temporary1 = (ConstSet14[s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)]] != undefined); } if (Temporary1) { - b_889192777[b_889192777_Idx] = 0n; - Label2: { - Label3: while (true) { - if (!(i_889192780 < (s_889192776).length)) Temporary4 = false; else { Temporary4 = (ConstSet15[s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)]] != undefined); } if (!Temporary4) break Label3; - var c_889192814 = (s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)] - 48); - if ((((-9223372036854775808n) + BigInt(c_889192814)) / 10n <= b_889192777[b_889192777_Idx])) { - b_889192777[b_889192777_Idx] = ((b_889192777[b_889192777_Idx] * 10n) - BigInt(c_889192814)); - } - else { - integerOutOfRangeError_889192773(); - } - - i_889192780 += 1; - Label5: { - Label6: while (true) { - if (!((i_889192780 < (s_889192776).length) && (s_889192776[chckIndx(i_889192780, 0, (s_889192776).length - 1)] == 95))) break Label6; - i_889192780 += 1; - } - }; - } - }; - if (((sign_889192779 == (-1n)) && (b_889192777[b_889192777_Idx] == (-9223372036854775808n)))) { - integerOutOfRangeError_889192773(); - } - else { - b_889192777[b_889192777_Idx] = (b_889192777[b_889192777_Idx] * sign_889192779); - result_889192778 = i_889192780; - } - - } - - - return result_889192778; - -} - -function npuParseBiggestInt(s_889192837, number_889192838, number_889192838_Idx) { - var result_889192839 = 0; - - var res_889192840 = [0n]; - result_889192839 = rawParseInt_889192775(s_889192837, res_889192840, 0); - if (!((result_889192839 == 0))) { - number_889192838[number_889192838_Idx] = res_889192840[0]; - } - - - return result_889192839; - -} - -function npuParseInt(s_889192842, number_889192843, number_889192843_Idx) { - var result_889192844 = 0; - - var res_889192845 = [0n]; - result_889192844 = npuParseBiggestInt(s_889192842, res_889192845, 0); - if (((res_889192845[0] < (-2147483648n)) || (2147483647n < res_889192845[0]))) { - integerOutOfRangeError_889192773(); - } - - if (!((result_889192844 == 0))) { - number_889192843[number_889192843_Idx] = chckRange(Number(res_889192845[0]), (-2147483648), 2147483647); - } - - - return result_889192844; - -} - -function parseInt_889193355(s_889193356, number_889193357, number_889193357_Idx, start_889193358) { - var result_889193359 = 0; - - result_889193359 = npuParseInt((s_889193356.slice(start_889193358, (s_889193356).length - 1 + 1)), number_889193357, number_889193357_Idx); - - return result_889193359; - -} - -function nsuParseInt(s_872416089) { - var result_872416090 = [0]; - - result_872416090[0] = 0; - var L_872416091 = parseInt_889193355(s_872416089, result_872416090, 0, 0); - if ((!((L_872416091 == (s_872416089).length)) || (L_872416091 == 0))) { - raiseException({message: ([105,110,118,97,108,105,100,32,105,110,116,101,103,101,114,58,32] || []).concat(s_872416089 || []), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - } - - - return result_872416090[0]; - -} - -function nsuNormalize(s_872415387) { - var result_872415388 = []; - - result_872415388 = nimCopy(null, mnewString(chckRange((s_872415387).length, 0, 2147483647)), NTI33554449); - var j_872415389 = 0; - Label1: { - var i_872415394 = 0; - var colontmp__570425782 = 0; - colontmp__570425782 = subInt((s_872415387).length, 1); - var res_570425783 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425783 <= colontmp__570425782)) break Label3; - i_872415394 = res_570425783; - if ((ConstSet16[s_872415387[chckIndx(i_872415394, 0, (s_872415387).length - 1)]] != undefined)) { - result_872415388[chckIndx(j_872415389, 0, (result_872415388).length - 1)] = chckRange(addInt(s_872415387[chckIndx(i_872415394, 0, (s_872415387).length - 1)], 32), 0, 255); - j_872415389 = addInt(j_872415389, 1); - } - else { - if (!((s_872415387[chckIndx(i_872415394, 0, (s_872415387).length - 1)] == 95))) { - result_872415388[chckIndx(j_872415389, 0, (result_872415388).length - 1)] = s_872415387[chckIndx(i_872415394, 0, (s_872415387).length - 1)]; - j_872415389 = addInt(j_872415389, 1); - } - } - res_570425783 = addInt(res_570425783, 1); - } - }; - }; - if (!((j_872415389 == (s_872415387).length))) { - if (result_872415388.length < chckRange(j_872415389, 0, 2147483647)) { for (var i = result_872415388.length; i < chckRange(j_872415389, 0, 2147483647); ++i) result_872415388.push(0); } - else {result_872415388.length = chckRange(j_872415389, 0, 2147483647); }; - } - - - return result_872415388; - -} - -function parseBool_872416339(s_872416340) { - var result_872416341 = false; - - switch (toJSStr(nsuNormalize(s_872416340))) { - case "y": - case "yes": - case "true": - case "1": - case "on": - result_872416341 = true; - break; - case "n": - case "no": - case "false": - case "0": - case "off": - result_872416341 = false; - break; - default: - raiseException({message: ([99,97,110,110,111,116,32,105,110,116,101,114,112,114,101,116,32,97,115,32,97,32,98,111,111,108,58,32] || []).concat(s_872416340 || []), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - break; - } - - return result_872416341; - -} - -function toggleStarsAnimation_1426069424(to_1426069425) { - var Temporary4; - - Label1: { - var e_1426069448 = null; - var colontmp__570425786 = []; - colontmp__570425786 = document.querySelectorAll(".stars"); - var i_570425788 = 0; - var L_570425789 = (colontmp__570425786).length; - Label2: { - Label3: while (true) { - if (!(i_570425788 < L_570425789)) break Label3; - e_1426069448 = colontmp__570425786[chckIndx(i_570425788, 0, (colontmp__570425786).length - 1)]; - if (to_1426069425) { - Temporary4 = [114,117,110,110,105,110,103]; - } - else { - Temporary4 = [112,97,117,115,101,100]; - } - - e_1426069448.style.animationPlayState = toJSStr(Temporary4); - i_570425788 = addInt(i_570425788, 1); - if (!(((colontmp__570425786).length == L_570425789))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - - -} - -function addQuoted_872416645(s_872416647, s_872416647_Idx, x_872416648) { - addInt_301990129(s_872416647, s_872416647_Idx, x_872416648); - - -} - -function HEX24_1426069494(x_1426069496) { - var result_1426069497 = [[]]; - - result_1426069497[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym1187_1426069508 = 0; - if ((0 < countHEX60gensym1187_1426069508)) { - result_1426069497[0].push.apply(result_1426069497[0], [44,32]);; - } - - countHEX60gensym1187_1426069508 += 1; - addQuoted_872416645(result_1426069497, 0, x_1426069496["Field0"]); - if ((0 < countHEX60gensym1187_1426069508)) { - result_1426069497[0].push.apply(result_1426069497[0], [44,32]);; - } - - countHEX60gensym1187_1426069508 += 1; - addQuoted_872416645(result_1426069497, 0, x_1426069496["Field1"]); - if ((countHEX60gensym1187_1426069508 == 1)) { - result_1426069497[0].push.apply(result_1426069497[0], [44]);; - } - - result_1426069497[0].push.apply(result_1426069497[0], [41]);; - - return result_1426069497[0]; - -} - -function clamp_2231370540(x_2231370542, a_2231370543, b_2231370544) { - var result_2231370545 = 0; - - BeforeRet: { - if ((x_2231370542 < a_2231370543)) { - result_2231370545 = a_2231370543; - break BeforeRet; - } - - if ((b_2231370544 < x_2231370542)) { - result_2231370545 = b_2231370544; - break BeforeRet; - } - - result_2231370545 = x_2231370542; - break BeforeRet; - }; - - return result_2231370545; - -} - -function clamp_1426069489(val_1426069491, bounds_1426069492) { - var result_1426069493 = 0; - - if (!((bounds_1426069492.a <= bounds_1426069492.b))) { - failedAssertImpl_268435541(([109,97,116,104,46,110,105,109,40,49,50,57,57,44,32,51,41,32,96,98,111,117,110,100,115,46,97,32,60,61,32,98,111,117,110,100,115,46,98,96,32] || []).concat(HEX24_1426069494({Field0: bounds_1426069492.a, Field1: bounds_1426069492.b}) || [])); - } - - result_1426069493 = clamp_2231370540(val_1426069491, bounds_1426069492.a, bounds_1426069492.b); - - return result_1426069493; - -} - -function changeBulletsLimit_1426069485(state_1426069486, bulletsLimit_1426069487, slider_1426069488) { - state_1426069486.canon.bulletsLimit = clamp_1426069489(bulletsLimit_1426069487, bulletsLimitRange_1426063613); - slider_1426069488.setAttribute("value", toJSStr(HEX24_385875976(bulletsLimit_1426069487))); - if ((state_1426069486.canon.bulletsLimit < (state_1426069486.canon.bullets).length)) { - Label1: { - var i_1426069560 = 0; - var colontmp__570425792 = 0; - colontmp__570425792 = subInt(subInt((state_1426069486.canon.bullets).length, state_1426069486.canon.bulletsLimit), 1); - var res_570425793 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425793 <= colontmp__570425792)) break Label3; - i_1426069560 = res_570425793; - state_1426069486.canon.bullets[chckIndx(i_1426069560, 0, (state_1426069486.canon.bullets).length - 1)].collisionFilter.mask = 0; - if ((state_1426069486.canon.bullets[chckIndx(i_1426069560, 0, (state_1426069486.canon.bullets).length - 1)].isSleeping)) { - Matter.Sleeping.set((state_1426069486.canon.bullets[chckIndx(i_1426069560, 0, (state_1426069486.canon.bullets).length - 1)]), (false)); - } - - var a_1426069606 = find_1426065827(state_1426069486.canon.flyingBullets, i_1426069560); - if ((0 <= a_1426069606)) { - delete_1426065859(state_1426069486.canon, "flyingBullets", chckRange(a_1426069606, 0, 2147483647)); - } - - res_570425793 = addInt(res_570425793, 1); - } - }; - }; - } - - - -} - -function changeBlocksCollision_1426069611(state_1426069612, to_1426069613) { - var Temporary4; - - Label1: { - var b_1426069617 = null; - var i_570425796 = 0; - var L_570425797 = (state_1426069612.blocks).length; - Label2: { - Label3: while (true) { - if (!(i_570425796 < L_570425797)) break Label3; - b_1426069617 = state_1426069612.blocks[chckIndx(i_570425796, 0, (state_1426069612.blocks).length - 1)]; - if (to_1426069613) { - Temporary4 = 2; - } - else { - Temporary4 = 1; - } - - b_1426069617.collisionFilter.category = Temporary4; - i_570425796 = addInt(i_570425796, 1); - if (!(((state_1426069612.blocks).length == L_570425797))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - - -} - -function HEX5BHEX5D_721421729(s_721421733, x_721421734) { - var result_721421735 = []; - - var a_721421737 = x_721421734.a; - var L_721421743 = addInt(subInt(subInt((s_721421733).length, x_721421734.b), a_721421737), 1); - result_721421735 = new Array(chckRange(L_721421743, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_721421743, 0, 2147483647) ; ++i) { result_721421735[i] = null; } Label1: { - var i_721421752 = 0; - var i_570425800 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425800 < L_721421743)) break Label3; - i_721421752 = i_570425800; - result_721421735[chckIndx(i_721421752, 0, (result_721421735).length - 1)] = s_721421733[chckIndx(addInt(i_721421752, a_721421737), 0, (s_721421733).length - 1)]; - i_570425800 = addInt(i_570425800, 1); - } - }; - }; - - return result_721421735; - -} - -function valueHEX3D_754975173(n_754975174, v_754975175) { - n_754975174.text = v_754975175; - - -} - -function value_754975170(n_754975171) { - var result_754975172 = null; - - result_754975172 = n_754975171.text; - - return result_754975172; - -} - -function addEventShell_721420381(d_721420382, name_721420383, h_721420384) { - d_721420382.addEventListener(name_721420383, h_721420384, false); - if ((d_721420382.karaxEvents == null)) { - d_721420382.karaxEvents = new Array(0); - } - - d_721420382.karaxEvents.push({Field0: name_721420383, Field1: h_721420384}); - - -} - -function wrapEvent_721420454(d_721420455, n_721420456, k_721420457, action_721420458) { - -function laterWrapper_721420538() { - -function HEX3Aanonymous_721420543(ev_721420544) { - -function wrapper_721420545() { - var vHEX60gensym15_721420547 = ev_721420544.target.value; - valueHEX3D_754975173(n_721420541, vHEX60gensym15_721420547); - if (!(!((action_721420540 == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); - } - - action_721420540(ev_721420544, n_721420541); - if (!((value_754975170(n_721420541) == vHEX60gensym15_721420547))) { - ev_721420544.target.value = value_754975170(n_721420541); - } - - - - } - - if (!((timer_721420542 == null))) { - clearTimeout(timer_721420542); - } - - timer_721420542 = setTimeout(wrapper_721420545, 400); - - - } - - var result_721420539 = null; - - var action_721420540 = action_721420458; - var n_721420541 = n_721420456; - var timer_721420542 = null; - result_721420539 = HEX3Aanonymous_721420543; - - return result_721420539; - - } - -function enterWrapper_721420505() { - -function HEX3Aanonymous_721420509(ev_721420510) { - if ((ev_721420510.keyCode == 13)) { - var vHEX60gensym8_721420512 = ev_721420510.target.value; - valueHEX3D_754975173(n_721420508, vHEX60gensym8_721420512); - if (!(!((action_721420507 == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); - } - - action_721420507(ev_721420510, n_721420508); - if (!((value_754975170(n_721420508) == vHEX60gensym8_721420512))) { - ev_721420510.target.value = value_754975170(n_721420508); - } - - } - - - - } - - var result_721420506 = null; - - var action_721420507 = action_721420458; - var n_721420508 = n_721420456; - result_721420506 = HEX3Aanonymous_721420509; - - return result_721420506; - - } - -function stdWrapper_721420460() { - -function HEX3Aanonymous_721420464(ev_721420465) { - if ((((n_721420463.kind == 200) || (n_721420463.kind == 194)) || (n_721420463.kind == 196))) { - var vHEX60gensym1_721420479 = ev_721420465.target.value; - valueHEX3D_754975173(n_721420463, vHEX60gensym1_721420479); - if (!(!((action_721420462 == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); - } - - action_721420462(ev_721420465, n_721420463); - if (!((value_754975170(n_721420463) == vHEX60gensym1_721420479))) { - ev_721420465.target.value = value_754975170(n_721420463); - } - - } - else { - action_721420462(ev_721420465, n_721420463); - } - - - - } - - var result_721420461 = null; - - var action_721420462 = action_721420458; - var n_721420463 = n_721420456; - result_721420461 = HEX3Aanonymous_721420464; - - return result_721420461; - - } - - var result_721420459 = null; - - switch (k_721420457) { - case 30: - result_721420459 = laterWrapper_721420538(); - addEventShell_721420381(d_721420455, "keyup", result_721420459); - break; - case 29: - result_721420459 = enterWrapper_721420505(); - addEventShell_721420381(d_721420455, "keyup", result_721420459); - break; - default: - result_721420459 = stdWrapper_721420460(); - addEventShell_721420381(d_721420455, toEventName_754975121[chckIndx(k_721420457, 0, (toEventName_754975121).length - 1)], result_721420459); - break; - } - - return result_721420459; - -} - -function applyEvents_721420581(n_721420582) { - var dest_721420583 = n_721420582.dom; - Label1: { - var i_721420591 = 0; - var colontmp__570425823 = 0; - colontmp__570425823 = (n_721420582.events).length; - var i_570425824 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425824 < colontmp__570425823)) break Label3; - i_721420591 = i_570425824; - n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field2"] = wrapEvent_721420454(dest_721420583, n_721420582, n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field0"], n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field1"]); - i_570425824 = addInt(i_570425824, 1); - } - }; - }; - - -} - -function applyStyle_822084094(n_822084095, s_822084096) { - n_822084095.style = {}; - Label1: { - var i_822084109 = 0; - var colontmp__570425827 = 0; - colontmp__570425827 = subInt(s_822084096.length, 1); - var res_570425828 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425828 <= colontmp__570425827)) break Label3; - i_822084109 = res_570425828; - n_822084095.style[s_822084096[i_822084109]] = s_822084096[addInt(i_822084109, 1)]; - res_570425828 = addInt(res_570425828, 2); - } - }; - }; - - -} - -function toDom_721420610(n_721420611, useAttachedNode_721420612, kxi_721420613) { - var Temporary1; - - var result_721420614 = null; - - BeforeRet: { - if (useAttachedNode_721420612) { - if (!((n_721420611.dom == null))) { - if (!((n_721420611.id == null))) { - kxi_721420613.byId[n_721420611.id] = n_721420611; - } - - result_721420614 = n_721420611.dom; - break BeforeRet; - } - - } - - if ((n_721420611.kind == 0)) { - result_721420614 = document.createTextNode(n_721420611.text); - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - } - else { - if ((n_721420611.kind == 6)) { - result_721420614 = document.createElement("div"); - result_721420614.innerHTML = n_721420611.text; - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - break BeforeRet; - } - else { - if ((n_721420611.kind == 3)) { - var x_721420654 = vcomponents_788529165[0][n_721420611.text](n_721420611.kids); - result_721420614 = toDom_721420610(x_721420654, useAttachedNode_721420612, kxi_721420613); - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - break BeforeRet; - } - else { - if ((n_721420611.kind == 4)) { - result_721420614 = n_721420611.dom; - if (!(!((result_721420614 == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,56,53,44,32,53,41,32,96,114,101,115,117,108,116,32,33,61,32,110,105,108,96,32]); - } - - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - break BeforeRet; - } - else { - if ((n_721420611.kind == 5)) { - var x_721420684 = n_721420611; - if (!((x_721420684.onAttachImpl == null))) { - x_721420684.onAttachImpl(x_721420684); - } - - if (!(!((x_721420684.renderImpl == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,57,50,44,32,53,41,32,96,120,46,114,101,110,100,101,114,73,109,112,108,32,33,61,32,110,105,108,96,32]); - } - - if ((x_721420684.expanded == null)) { - x_721420684.expanded = x_721420684.renderImpl(x_721420684); - } - - if (!(!((x_721420684.expanded == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,57,54,44,32,53,41,32,96,120,46,101,120,112,97,110,100,101,100,32,33,61,32,110,105,108,96,32]); - } - - result_721420614 = toDom_721420610(x_721420684.expanded, useAttachedNode_721420612, kxi_721420613); - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - break BeforeRet; - } - else { - if ((ConstSet17[n_721420611.kind] != undefined)) { - Temporary1 = document.createElementNS(toJSStr(svgNamespace_754974946[0]), toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); - } - else { - if ((ConstSet18[n_721420611.kind] != undefined)) { - Temporary1 = document.createElementNS(toJSStr(mathNamespace_754974947[0]), toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); - } - else { - Temporary1 = document.createElement(toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); - } - } - result_721420614 = Temporary1; - n_721420611.dom = result_721420614; - if (!((n_721420611.id == null))) { - kxi__.byId[n_721420611.id] = n_721420611; - } - - Label2: { - var k_721420731 = null; - Label3: { - var i_570425808 = 0; - var colontmp__570425809 = 0; - colontmp__570425809 = (n_721420611.kids).length; - var i_570425810 = 0; - Label4: { - Label5: while (true) { - if (!(i_570425810 < colontmp__570425809)) break Label5; - i_570425808 = i_570425810; - k_721420731 = n_721420611.kids[chckIndx(i_570425808, 0, (n_721420611.kids).length - 1)]; - result_721420614.appendChild(toDom_721420610(k_721420731, useAttachedNode_721420612, kxi_721420613)); - i_570425810 = addInt(i_570425810, 1); - } - }; - }; - }; - if (!((n_721420611.text == null))) { - result_721420614.value = n_721420611.text; - } - - } - }}}} - if (!((n_721420611.id == null))) { - result_721420614.id = n_721420611.id; - } - - if (!((n_721420611.class == null))) { - if ((ConstSet19[n_721420611.kind] != undefined)) { - result_721420614.className.baseVal = n_721420611.class; - } - else { - result_721420614.className = n_721420611.class; - } - - } - - Label6: { - var k_721420736 = null; - var v_721420737 = null; - Label7: { - var i_570425818 = 0; - var colontmp__570425819 = 0; - colontmp__570425819 = subInt((n_721420611.attrs).length, 2); - var res_570425820 = 0; - Label8: { - Label9: while (true) { - if (!(res_570425820 <= colontmp__570425819)) break Label9; - i_570425818 = res_570425820; - k_721420736 = n_721420611.attrs[chckIndx(i_570425818, 0, (n_721420611.attrs).length - 1)]; - v_721420737 = n_721420611.attrs[chckIndx(addInt(i_570425818, 1), 0, (n_721420611.attrs).length - 1)]; - if (!((v_721420737 == null))) { - result_721420614.setAttribute(k_721420736, v_721420737); - } - - res_570425820 = addInt(res_570425820, 2); - } - }; - }; - }; - applyEvents_721420581(n_721420611); - if (((!((kxi_721420613 == null)) && (n_721420611 == kxi_721420613.toFocusV)) && (kxi_721420613.toFocus == null))) { - kxi_721420613.toFocus = result_721420614; - } - - if (!((n_721420611.style == null))) { - applyStyle_822084094(result_721420614, n_721420611.style); - n_721420611.styleVersion = (n_721420611.style.__version || 0); - } - - }; - - return result_721420614; - -} - -function replaceById_721420830(id_721420831, newTree_721420832) { - var x_721420833 = document.getElementById(id_721420831); - x_721420833.parentNode.replaceChild(newTree_721420832, x_721420833); - newTree_721420832.id = id_721420831; - - -} - -function len_754975537(x_754975538) { - var result_754975539 = 0; - - result_754975539 = (x_754975538.kids).length; - - return result_754975539; - -} - -function HEX5BHEX5D_754975544(x_754975545, idx_754975546) { - var result_754975547 = null; - - result_754975547 = x_754975545.kids[chckIndx(idx_754975546, 0, (x_754975545.kids).length - 1)]; - - return result_754975547; - -} - -function eq_822083842(a_822083843, b_822083844) { - var result_822083845 = false; - - BeforeRet: { - if ((a_822083843 == null)) { - if ((b_822083844 == null)) { - result_822083845 = true; - break BeforeRet; - } - else { - result_822083845 = false; - break BeforeRet; - } - - } - else { - if ((b_822083844 == null)) { - result_822083845 = false; - break BeforeRet; - } - } - if (!((a_822083843.length == b_822083844.length))) { - result_822083845 = false; - break BeforeRet; - } - - Label1: { - var i_822083880 = 0; - var colontmp__570425854 = 0; - colontmp__570425854 = a_822083843.length; - var i_570425855 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425855 < colontmp__570425854)) break Label3; - i_822083880 = i_570425855; - if (!((a_822083843[i_822083880] == b_822083844[i_822083880]))) { - result_822083845 = false; - break BeforeRet; - } - - i_570425855 = addInt(i_570425855, 1); - } - }; - }; - result_822083845 = true; - break BeforeRet; - }; - - return result_822083845; - -} - -function versionMatch_822083889(s_822083890, version_822083891) { - var result_822083892 = false; - - result_822083892 = ((s_822083890 == null) || ((s_822083890.__version || 0) == version_822083891)); - - return result_822083892; - -} - -function sameAttrs_754975717(a_754975718, b_754975719) { - var result_754975720 = false; - - BeforeRet: { - if (((a_754975718.attrs).length == (b_754975719.attrs).length)) { - result_754975720 = true; - Label1: { - var i_754975734 = 0; - var colontmp__570425858 = 0; - colontmp__570425858 = (a_754975718.attrs).length; - var i_570425859 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425859 < colontmp__570425858)) break Label3; - i_754975734 = i_570425859; - if (!((a_754975718.attrs[chckIndx(i_754975734, 0, (a_754975718.attrs).length - 1)] == b_754975719.attrs[chckIndx(i_754975734, 0, (b_754975719.attrs).length - 1)]))) { - result_754975720 = false; - break BeforeRet; - } - - i_570425859 = addInt(i_570425859, 1); - } - }; - }; - } - - }; - - return result_754975720; - -} - -function eq_721420843(a_721420844, b_721420845, recursive_721420846) { - var result_721420847 = 0; - - BeforeRet: { - if (!((a_721420844.kind == b_721420845.kind))) { - result_721420847 = 1; - break BeforeRet; - } - - if (!((a_721420844.id == b_721420845.id))) { - result_721420847 = 1; - break BeforeRet; - } - - result_721420847 = 3; - if (!((a_721420844.index == b_721420845.index))) { - result_721420847 = 1; - break BeforeRet; - } - - if ((a_721420844.kind == 0)) { - if (!((a_721420844.text == b_721420845.text))) { - result_721420847 = 1; - break BeforeRet; - } - - } - else { - if ((a_721420844.kind == 3)) { - if (!((a_721420844.text == b_721420845.text))) { - result_721420847 = 1; - break BeforeRet; - } - - if (!((len_754975537(a_721420844) == len_754975537(b_721420845)))) { - result_721420847 = 1; - break BeforeRet; - } - - Label1: { - var i_721420864 = 0; - var colontmp__570425846 = 0; - colontmp__570425846 = len_754975537(a_721420844); - var i_570425847 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425847 < colontmp__570425846)) break Label3; - i_721420864 = i_570425847; - if ((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420864), HEX5BHEX5D_754975544(b_721420845, i_721420864), recursive_721420846) == 1)) { - result_721420847 = 1; - break BeforeRet; - } - - i_570425847 = addInt(i_570425847, 1); - } - }; - }; - } - else { - if ((a_721420844.kind == 4)) { - if ((a_721420844.dom == b_721420845.dom)) { - result_721420847 = 3; - break BeforeRet; - } - else { - result_721420847 = 1; - break BeforeRet; - } - - } - else { - if ((a_721420844.kind == 6)) { - if (!((a_721420844.text == b_721420845.text))) { - result_721420847 = 1; - break BeforeRet; - } - - } - else { - if ((b_721420845.kind == 5)) { - if (!((a_721420844.text == b_721420845.text))) { - result_721420847 = 1; - break BeforeRet; - } - - if (!((a_721420844.key == b_721420845.key))) { - result_721420847 = 1; - break BeforeRet; - } - - result_721420847 = 0; - break BeforeRet; - } - }}}} - if (((!((a_721420844.class == b_721420845.class)) || !((eq_822083842(a_721420844.style, b_721420845.style) && versionMatch_822083889(a_721420844.style, b_721420845.styleVersion)))) || !(sameAttrs_754975717(a_721420844, b_721420845)))) { - result_721420847 = 2; - break BeforeRet; - } - - if (recursive_721420846) { - if (!((len_754975537(a_721420844) == len_754975537(b_721420845)))) { - result_721420847 = 1; - break BeforeRet; - } - - Label4: { - var i_721420890 = 0; - var colontmp__570425850 = 0; - colontmp__570425850 = len_754975537(a_721420844); - var i_570425851 = 0; - Label5: { - Label6: while (true) { - if (!(i_570425851 < colontmp__570425850)) break Label6; - i_721420890 = i_570425851; - if (!((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420890), HEX5BHEX5D_754975544(b_721420845, i_721420890), true) == 3))) { - result_721420847 = 1; - break BeforeRet; - } - - i_570425851 = addInt(i_570425851, 1); - } - }; - }; - } - - break BeforeRet; - }; - - return result_721420847; - -} - -function updateStyles_721420911(newNode_721420912, oldNode_721420913) { - if (!((oldNode_721420913.dom == null))) { - if (!((newNode_721420912.style == null))) { - applyStyle_822084094(oldNode_721420913.dom, newNode_721420912.style); - newNode_721420912.styleVersion = (newNode_721420912.style.__version || 0); - } - else { - oldNode_721420913.dom.style = {m_type: NTI704643214, alignContent: null, alignItems: null, alignSelf: null, all: null, animation: null, animationDelay: null, animationDirection: null, animationDuration: null, animationFillMode: null, animationIterationCount: null, animationName: null, animationPlayState: null, animationTimingFunction: null, backdropFilter: null, backfaceVisibility: null, background: null, backgroundAttachment: null, backgroundBlendMode: null, backgroundClip: null, backgroundColor: null, backgroundImage: null, backgroundOrigin: null, backgroundPosition: null, backgroundRepeat: null, backgroundSize: null, blockSize: null, border: null, borderBlock: null, borderBlockColor: null, borderBlockEnd: null, borderBlockEndColor: null, borderBlockEndStyle: null, borderBlockEndWidth: null, borderBlockStart: null, borderBlockStartColor: null, borderBlockStartStyle: null, borderBlockStartWidth: null, borderBlockStyle: null, borderBlockWidth: null, borderBottom: null, borderBottomColor: null, borderBottomLeftRadius: null, borderBottomRightRadius: null, borderBottomStyle: null, borderBottomWidth: null, borderCollapse: null, borderColor: null, borderEndEndRadius: null, borderEndStartRadius: null, borderImage: null, borderImageOutset: null, borderImageRepeat: null, borderImageSlice: null, borderImageSource: null, borderImageWidth: null, borderInline: null, borderInlineColor: null, borderInlineEnd: null, borderInlineEndColor: null, borderInlineEndStyle: null, borderInlineEndWidth: null, borderInlineStart: null, borderInlineStartColor: null, borderInlineStartStyle: null, borderInlineStartWidth: null, borderInlineStyle: null, borderInlineWidth: null, borderLeft: null, borderLeftColor: null, borderLeftStyle: null, borderLeftWidth: null, borderRadius: null, borderRight: null, borderRightColor: null, borderRightStyle: null, borderRightWidth: null, borderSpacing: null, borderStartEndRadius: null, borderStartStartRadius: null, borderStyle: null, borderTop: null, borderTopColor: null, borderTopLeftRadius: null, borderTopRightRadius: null, borderTopStyle: null, borderTopWidth: null, borderWidth: null, bottom: null, boxDecorationBreak: null, boxShadow: null, boxSizing: null, breakAfter: null, breakBefore: null, breakInside: null, captionSide: null, caretColor: null, clear: null, clip: null, clipPath: null, color: null, colorAdjust: null, columnCount: null, columnFill: null, columnGap: null, columnRule: null, columnRuleColor: null, columnRuleStyle: null, columnRuleWidth: null, columnSpan: null, columnWidth: null, columns: null, contain: null, content: null, counterIncrement: null, counterReset: null, counterSet: null, cursor: null, direction: null, display: null, emptyCells: null, filter: null, flex: null, flexBasis: null, flexDirection: null, flexFlow: null, flexGrow: null, flexShrink: null, flexWrap: null, cssFloat: null, font: null, fontFamily: null, fontFeatureSettings: null, fontKerning: null, fontLanguageOverride: null, fontOpticalSizing: null, fontSize: null, fontSizeAdjust: null, fontStretch: null, fontStyle: null, fontSynthesis: null, fontVariant: null, fontVariantAlternates: null, fontVariantCaps: null, fontVariantEastAsian: null, fontVariantLigatures: null, fontVariantNumeric: null, fontVariantPosition: null, fontVariationSettings: null, fontWeight: null, gap: null, grid: null, gridArea: null, gridAutoColumns: null, gridAutoFlow: null, gridAutoRows: null, gridColumn: null, gridColumnEnd: null, gridColumnStart: null, gridRow: null, gridRowEnd: null, gridRowStart: null, gridTemplate: null, gridTemplateAreas: null, gridTemplateColumns: null, gridTemplateRows: null, hangingPunctuation: null, height: null, hyphens: null, imageOrientation: null, imageRendering: null, inlineSize: null, inset: null, insetBlock: null, insetBlockEnd: null, insetBlockStart: null, insetInline: null, insetInlineEnd: null, insetInlineStart: null, isolation: null, justifyContent: null, justifyItems: null, justifySelf: null, left: null, letterSpacing: null, lineBreak: null, lineHeight: null, listStyle: null, listStyleImage: null, listStylePosition: null, listStyleType: null, margin: null, marginBlock: null, marginBlockEnd: null, marginBlockStart: null, marginBottom: null, marginInline: null, marginInlineEnd: null, marginInlineStart: null, marginLeft: null, marginRight: null, marginTop: null, mask: null, maskBorder: null, maskBorderMode: null, maskBorderOutset: null, maskBorderRepeat: null, maskBorderSlice: null, maskBorderSource: null, maskBorderWidth: null, maskClip: null, maskComposite: null, maskImage: null, maskMode: null, maskOrigin: null, maskPosition: null, maskRepeat: null, maskSize: null, maskType: null, maxBlockSize: null, maxHeight: null, maxInlineSize: null, maxWidth: null, minBlockSize: null, minHeight: null, minInlineSize: null, minWidth: null, mixBlendMode: null, objectFit: null, objectPosition: null, offset: null, offsetAnchor: null, offsetDistance: null, offsetPath: null, offsetRotate: null, opacity: null, order: null, orphans: null, outline: null, outlineColor: null, outlineOffset: null, outlineStyle: null, outlineWidth: null, overflow: null, overflowAnchor: null, overflowBlock: null, overflowInline: null, overflowWrap: null, overflowX: null, overflowY: null, overscrollBehavior: null, overscrollBehaviorBlock: null, overscrollBehaviorInline: null, overscrollBehaviorX: null, overscrollBehaviorY: null, padding: null, paddingBlock: null, paddingBlockEnd: null, paddingBlockStart: null, paddingBottom: null, paddingInline: null, paddingInlineEnd: null, paddingInlineStart: null, paddingLeft: null, paddingRight: null, paddingTop: null, pageBreakAfter: null, pageBreakBefore: null, pageBreakInside: null, paintOrder: null, perspective: null, perspectiveOrigin: null, placeContent: null, placeItems: null, placeSelf: null, pointerEvents: null, position: null, quotes: null, resize: null, right: null, rotate: null, rowGap: null, scale: null, scrollBehavior: null, scrollMargin: null, scrollMarginBlock: null, scrollMarginBlockEnd: null, scrollMarginBlockStart: null, scrollMarginBottom: null, scrollMarginInline: null, scrollMarginInlineEnd: null, scrollMarginInlineStart: null, scrollMarginLeft: null, scrollMarginRight: null, scrollMarginTop: null, scrollPadding: null, scrollPaddingBlock: null, scrollPaddingBlockEnd: null, scrollPaddingBlockStart: null, scrollPaddingBottom: null, scrollPaddingInline: null, scrollPaddingInlineEnd: null, scrollPaddingInlineStart: null, scrollPaddingLeft: null, scrollPaddingRight: null, scrollPaddingTop: null, scrollSnapAlign: null, scrollSnapStop: null, scrollSnapType: null, scrollbar3dLightColor: null, scrollbarArrowColor: null, scrollbarBaseColor: null, scrollbarColor: null, scrollbarDarkshadowColor: null, scrollbarFaceColor: null, scrollbarHighlightColor: null, scrollbarShadowColor: null, scrollbarTrackColor: null, scrollbarWidth: null, shapeImageThreshold: null, shapeMargin: null, shapeOutside: null, tabSize: null, tableLayout: null, textAlign: null, textAlignLast: null, textCombineUpright: null, textDecoration: null, textDecorationColor: null, textDecorationLine: null, textDecorationSkipInk: null, textDecorationStyle: null, textDecorationThickness: null, textEmphasis: null, textEmphasisColor: null, textEmphasisPosition: null, textEmphasisStyle: null, textIndent: null, textJustify: null, textOrientation: null, textOverflow: null, textRendering: null, textShadow: null, textTransform: null, textUnderlineOffset: null, textUnderlinePosition: null, top: null, touchAction: null, transform: null, transformBox: null, transformOrigin: null, transformStyle: null, transition: null, transitionDelay: null, transitionDuration: null, transitionProperty: null, transitionTimingFunction: null, translate: null, unicodeBidi: null, verticalAlign: null, visibility: null, whiteSpace: null, widows: null, width: null, willChange: null, wordBreak: null, wordSpacing: null, writingMode: null, zIndex: null}; - } - - if ((ConstSet20[oldNode_721420913.kind] != undefined)) { - oldNode_721420913.dom.className.baseVal = newNode_721420912.class; - } - else { - oldNode_721420913.dom.className = newNode_721420912.class; - } - - } - - oldNode_721420913.style = newNode_721420912.style; - oldNode_721420913.class = newNode_721420912.class; - - -} - -function takeOverAttr_754975529(newNode_754975530, oldNode_754975531) { - oldNode_754975531.attrs = newNode_754975530.attrs; - - -} - -function updateAttributes_721421325(newNode_721421326, oldNode_721421327) { - if (!((oldNode_721421327.dom == null))) { - Label1: { - var k_721421332 = null; - var __721421333 = null; - Label2: { - var i_570425863 = 0; - var colontmp__570425864 = 0; - colontmp__570425864 = subInt((oldNode_721421327.attrs).length, 2); - var res_570425865 = 0; - Label3: { - Label4: while (true) { - if (!(res_570425865 <= colontmp__570425864)) break Label4; - i_570425863 = res_570425865; - k_721421332 = oldNode_721421327.attrs[chckIndx(i_570425863, 0, (oldNode_721421327.attrs).length - 1)]; - __721421333 = oldNode_721421327.attrs[chckIndx(addInt(i_570425863, 1), 0, (oldNode_721421327.attrs).length - 1)]; - oldNode_721421327.dom.removeAttribute(k_721421332); - res_570425865 = addInt(res_570425865, 2); - } - }; - }; - }; - Label5: { - var k_721421334 = null; - var v_721421335 = null; - Label6: { - var i_570425869 = 0; - var colontmp__570425870 = 0; - colontmp__570425870 = subInt((newNode_721421326.attrs).length, 2); - var res_570425871 = 0; - Label7: { - Label8: while (true) { - if (!(res_570425871 <= colontmp__570425870)) break Label8; - i_570425869 = res_570425871; - k_721421334 = newNode_721421326.attrs[chckIndx(i_570425869, 0, (newNode_721421326.attrs).length - 1)]; - v_721421335 = newNode_721421326.attrs[chckIndx(addInt(i_570425869, 1), 0, (newNode_721421326.attrs).length - 1)]; - if (!((v_721421335 == null))) { - oldNode_721421327.dom.setAttribute(k_721421334, v_721421335); - } - - res_570425871 = addInt(res_570425871, 2); - } - }; - }; - }; - } - - takeOverAttr_754975529(newNode_721421326, oldNode_721421327); - - -} - -function getAttr_754975516(n_754975517, key_754975518) { - var result_754975519 = null; - - BeforeRet: { - Label1: { - var i_754975528 = 0; - var colontmp__570425874 = 0; - colontmp__570425874 = subInt((n_754975517.attrs).length, 2); - var res_570425875 = 0; - Label2: { - Label3: while (true) { - if (!(res_570425875 <= colontmp__570425874)) break Label3; - i_754975528 = res_570425875; - if ((n_754975517.attrs[chckIndx(i_754975528, 0, (n_754975517.attrs).length - 1)] == key_754975518)) { - result_754975519 = n_754975517.attrs[chckIndx(addInt(i_754975528, 1), 0, (n_754975517.attrs).length - 1)]; - break BeforeRet; - } - - res_570425875 = addInt(res_570425875, 2); - } - }; - }; - }; - - return result_754975519; - -} - -function removeAllEventHandlers_721420412(d_721420413) { - if (!((d_721420413.karaxEvents == null))) { - Label1: { - var i_721420429 = 0; - var colontmp__570425878 = 0; - colontmp__570425878 = d_721420413.karaxEvents.length; - var i_570425879 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425879 < colontmp__570425878)) break Label3; - i_721420429 = i_570425879; - d_721420413.removeEventListener(d_721420413.karaxEvents[i_721420429]["Field0"], d_721420413.karaxEvents[i_721420429]["Field1"]); - i_570425879 = addInt(i_570425879, 1); - } - }; - }; - } - - - -} - -function mergeEvents_721421336(newNode_721421337, oldNode_721421338, kxi_721421339) { - var d_721421340 = oldNode_721421338.dom; - if (!((d_721421340 == null))) { - removeAllEventHandlers_721420412(d_721421340); - } - - oldNode_721421338.events = newNode_721421337.events; - applyEvents_721420581(oldNode_721421338); - - -} - -function addPatch_721421345(kxi_721421346, ka_721421347, parenta_721421348, currenta_721421349, na_721421350, oldNode_721421351) { - var L_721421352 = kxi_721421346.patchLen; - if (((kxi_721421346.patches).length <= L_721421352)) { - kxi_721421346.patches.push({k: ka_721421347, parent: parenta_721421348, current: currenta_721421349, newNode: na_721421350, oldNode: oldNode_721421351});; - } - else { - kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].k = ka_721421347; - kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].parent = parenta_721421348; - kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].current = currenta_721421349; - kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].newNode = na_721421350; - kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].oldNode = oldNode_721421351; - } - - kxi_721421346.patchLen = addInt(kxi_721421346.patchLen, 1); - - -} - -function diff_721421509(newNode_721421510, oldNode_721421511, parent_721421512, current_721421513, kxi_721421514) { - var Temporary1; - - BeforeRet: { - var result_721421515 = eq_721420843(newNode_721421510, oldNode_721421511, false); - switch (result_721421515) { - case 0: - kxi_721421514.components.push({oldNode: oldNode_721421511, newNode: newNode_721421510, parent: parent_721421512, current: current_721421513});; - break; - case 3: - case 2: - newNode_721421510.dom = oldNode_721421511.dom; - if ((result_721421515 == 2)) { - updateStyles_721420911(newNode_721421510, oldNode_721421511); - updateAttributes_721421325(newNode_721421510, oldNode_721421511); - if ((oldNode_721421511.kind == 0)) { - oldNode_721421511.text = newNode_721421510.text; - oldNode_721421511.dom.nodeValue = newNode_721421510.text; - } - - if ((oldNode_721421511.kind == 194)) { - oldNode_721421511.dom.value = newNode_721421510.text; - var checked_721421532 = getAttr_754975516(newNode_721421510, "checked"); - if ((checked_721421532 == null)) { - Temporary1 = false; - } - else { - Temporary1 = true; - } - - oldNode_721421511.dom.checked = Temporary1; - } - - } - - if ((!(((newNode_721421510.events).length == 0)) || !(((oldNode_721421511.events).length == 0)))) { - mergeEvents_721421336(newNode_721421510, oldNode_721421511, kxi_721421514); - } - - var newLength_721421539 = len_754975537(newNode_721421510); - var oldLength_721421540 = len_754975537(oldNode_721421511); - if (((newLength_721421539 == 0) && (oldLength_721421540 == 0))) { - break BeforeRet; - } - - var minLength_721421541 = nimMin(newLength_721421539, oldLength_721421540); - if (!((oldNode_721421511.kind == newNode_721421510.kind))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,53,50,52,44,32,53,41,32,96,111,108,100,78,111,100,101,46,107,105,110,100,32,61,61,32,110,101,119,78,111,100,101,46,107,105,110,100,96,32]); - } - - var commonPrefix_721421551 = 0; - Label2: { - Label3: while (true) { - if (!(commonPrefix_721421551 < minLength_721421541)) break Label3; - if ((eq_721420843(HEX5BHEX5D_754975544(newNode_721421510, commonPrefix_721421551), HEX5BHEX5D_754975544(oldNode_721421511, commonPrefix_721421551), true) == 3)) { - addPatch_721421345(kxi_721421514, 5, null, null, HEX5BHEX5D_754975544(newNode_721421510, commonPrefix_721421551), HEX5BHEX5D_754975544(oldNode_721421511, commonPrefix_721421551)); - commonPrefix_721421551 = addInt(commonPrefix_721421551, 1); - } - else { - break Label2; - } - - } - }; - var oldPos_721421561 = subInt(oldLength_721421540, 1); - var newPos_721421562 = subInt(newLength_721421539, 1); - Label4: { - Label5: while (true) { - if (!((commonPrefix_721421551 <= oldPos_721421561) && (commonPrefix_721421551 <= newPos_721421562))) break Label5; - if ((eq_721420843(HEX5BHEX5D_754975544(newNode_721421510, newPos_721421562), HEX5BHEX5D_754975544(oldNode_721421511, oldPos_721421561), true) == 3)) { - addPatch_721421345(kxi_721421514, 5, null, null, HEX5BHEX5D_754975544(newNode_721421510, newPos_721421562), HEX5BHEX5D_754975544(oldNode_721421511, oldPos_721421561)); - oldPos_721421561 = subInt(oldPos_721421561, 1); - newPos_721421562 = subInt(newPos_721421562, 1); - } - else { - break Label4; - } - - } - }; - var pos_721421577 = addInt(nimMin(oldPos_721421561, newPos_721421562), 1); - Label6: { - var i_721421582 = 0; - var colontmp__570425833 = 0; - colontmp__570425833 = subInt(pos_721421577, 1); - var res_570425834 = commonPrefix_721421551; - Label7: { - Label8: while (true) { - if (!(res_570425834 <= colontmp__570425833)) break Label8; - i_721421582 = res_570425834; - diff_721421509(HEX5BHEX5D_754975544(newNode_721421510, i_721421582), HEX5BHEX5D_754975544(oldNode_721421511, i_721421582), current_721421513, HEX5BHEX5D_754975544(oldNode_721421511, i_721421582).dom, kxi_721421514); - res_570425834 = addInt(res_570425834, 1); - } - }; - }; - if ((addInt(oldPos_721421561, 1) == oldLength_721421540)) { - Label9: { - var i_721421587 = 0; - var res_570425837 = pos_721421577; - Label10: { - Label11: while (true) { - if (!(res_570425837 <= newPos_721421562)) break Label11; - i_721421587 = res_570425837; - addPatch_721421345(kxi_721421514, 2, current_721421513, null, HEX5BHEX5D_754975544(newNode_721421510, i_721421587), null); - res_570425837 = addInt(res_570425837, 1); - } - }; - }; - } - else { - var before_721421588 = current_721421513.childNodes[chckIndx(addInt(oldPos_721421561, 1), 0, (current_721421513.childNodes).length - 1)]; - Label12: { - var i_721421593 = 0; - var res_570425840 = pos_721421577; - Label13: { - Label14: while (true) { - if (!(res_570425840 <= newPos_721421562)) break Label14; - i_721421593 = res_570425840; - addPatch_721421345(kxi_721421514, 3, current_721421513, before_721421588, HEX5BHEX5D_754975544(newNode_721421510, i_721421593), null); - res_570425840 = addInt(res_570425840, 1); - } - }; - }; - } - - Label15: { - var i_721421598 = 0; - var res_570425843 = pos_721421577; - Label16: { - Label17: while (true) { - if (!(res_570425843 <= oldPos_721421561)) break Label17; - i_721421598 = res_570425843; - addPatch_721421345(kxi__, 4, null, null, null, HEX5BHEX5D_754975544(oldNode_721421511, i_721421598)); - addPatch_721421345(kxi_721421514, 1, current_721421513, current_721421513.childNodes[chckIndx(i_721421598, 0, (current_721421513.childNodes).length - 1)], null, null); - res_570425843 = addInt(res_570425843, 1); - } - }; - }; - break; - case 1: - addPatch_721421345(kxi__, 4, null, null, null, oldNode_721421511); - addPatch_721421345(kxi_721421514, 0, parent_721421512, current_721421513, newNode_721421510, null); - break; - case 4: - if (true) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,53,54,54,44,32,50,54,41,32,96,102,97,108,115,101,96,32,101,113,32,114,101,116,117,114,110,101,100,32,117,115,101,110,101,119,78,111,100,101]); - } - - break; - } - }; - - -} - -function applyComponents_721421623(kxi_721421624) { - var i_721421625 = 0; - Label1: { - Label2: while (true) { - if (!(i_721421625 < (kxi_721421624.components).length)) break Label2; - var x_721421630 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].oldNode; - var newNode_721421631 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].newNode; - if ((!((x_721421630.changedImpl == null)) && x_721421630.changedImpl(x_721421630, newNode_721421631))) { - var current_721421636 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].current; - var parent_721421637 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].parent; - x_721421630.updatedImpl(x_721421630, newNode_721421631); - var oldExpanded_721421638 = x_721421630.expanded; - x_721421630.expanded = x_721421630.renderImpl(x_721421630); - x_721421630.renderedVersion = x_721421630.version; - if ((oldExpanded_721421638 == null)) { - addPatch_721421345(kxi__, 4, null, null, null, x_721421630); - addPatch_721421345(kxi_721421624, 0, parent_721421637, current_721421636, x_721421630.expanded, null); - } - else { - diff_721421509(x_721421630.expanded, oldExpanded_721421638, parent_721421637, current_721421636, kxi_721421624); - } - - } - - i_721421625 = addInt(i_721421625, 1); - } - }; - if (kxi_721421624.components.length < 0) { for (var i = kxi_721421624.components.length ; i < 0 ; ++i) kxi_721421624.components.push(({oldNode: null, newNode: null, parent: null, current: null})); } - else { kxi_721421624.components.length = 0; }; - - -} - -function reapplyEvents_721420592(n_721420593) { - removeAllEventHandlers_721420412(n_721420593.dom); - applyEvents_721420581(n_721420593); - - -} - -function moveDom_721421439(dest_721421440, src_721421441) { - dest_721421440.dom = src_721421441.dom; - src_721421441.dom = null; - reapplyEvents_721420592(dest_721421440); - if (!((dest_721421440.id == null))) { - kxi__.byId[dest_721421440.id] = dest_721421440; - } - - if (!((len_754975537(dest_721421440) == len_754975537(src_721421441)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,52,49,57,44,32,51,41,32,96,100,101,115,116,46,108,101,110,32,61,61,32,115,114,99,46,108,101,110,96,32]); - } - - Label1: { - var i_721421457 = 0; - var colontmp__570425889 = 0; - colontmp__570425889 = len_754975537(dest_721421440); - var i_570425890 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425890 < colontmp__570425889)) break Label3; - i_721421457 = i_570425890; - moveDom_721421439(HEX5BHEX5D_754975544(dest_721421440, i_721421457), HEX5BHEX5D_754975544(src_721421441, i_721421457)); - i_570425890 = addInt(i_570425890, 1); - } - }; - }; - - -} - -function HEX5BHEX5DHEX3D_754975548(x_754975549, idx_754975550, y_754975551) { - x_754975549.kids[chckIndx(idx_754975550, 0, (x_754975549.kids).length - 1)] = y_754975551; - - -} - -function applyPatch_721421458(kxi_721421459) { - Label1: { - var i_721421464 = 0; - var i_570425883 = 0; - Label2: { - Label3: while (true) { - if (!(i_570425883 < kxi_721421459.patchLen)) break Label3; - i_721421464 = i_570425883; - var p_721421465 = nimCopy(null, kxi_721421459.patches[chckIndx(i_721421464, 0, (kxi_721421459.patches).length - 1)], NTI721420296); - switch (p_721421465.k) { - case 0: - var nn_721421466 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); - if ((p_721421465.parent == null)) { - replaceById_721420830(kxi_721421459.rootId, nn_721421466); - } - else { - if ((p_721421465.current.parentNode == p_721421465.parent)) { - p_721421465.parent.replaceChild(nn_721421466, p_721421465.current); - } - else { - p_721421465.parent.appendChild(nn_721421466); - } - - } - - break; - case 5: - moveDom_721421439(p_721421465.newNode, p_721421465.oldNode); - break; - case 1: - p_721421465.parent.removeChild(p_721421465.current); - break; - case 2: - var nn_721421475 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); - p_721421465.parent.appendChild(nn_721421475); - break; - case 3: - var nn_721421476 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); - p_721421465.parent.insertBefore(nn_721421476, p_721421465.current); - break; - case 4: - var n_721421477 = p_721421465.oldNode; - if (!((n_721421477.id == null))) { - delete kxi_721421459.byId[n_721421477.id]; - } - - if ((n_721421477.kind == 5)) { - var x_721421487 = n_721421477; - if (!((x_721421487.onDetachImpl == null))) { - x_721421487.onDetachImpl(x_721421487); - } - - } - - if (!(kxi_721421459.surpressRedraws)) { - n_721421477.dom = null; - } - - break; - } - i_570425883 = addInt(i_570425883, 1); - } - }; - }; - kxi_721421459.patchLen = 0; - Label4: { - var i_721421496 = 0; - var i_570425886 = 0; - Label5: { - Label6: while (true) { - if (!(i_570425886 < kxi_721421459.patchLenV)) break Label6; - i_721421496 = i_570425886; - var p_721421497 = nimCopy(null, kxi_721421459.patchesV[chckIndx(i_721421496, 0, (kxi_721421459.patchesV).length - 1)], NTI721420297); - HEX5BHEX5DHEX3D_754975548(p_721421497.parent, p_721421497.pos, p_721421497.newChild); - if (!(!((p_721421497.newChild.dom == null)))) { - failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,52,53,56,44,32,53,41,32,96,112,46,110,101,119,67,104,105,108,100,46,100,111,109,32,33,61,32,110,105,108,96,32]); - } - - i_570425886 = addInt(i_570425886, 1); - } - }; - }; - kxi_721421459.patchLenV = 0; - - -} - -function dodraw_721421712(kxi_721421713) { - -function HEX3Aanonymous_721421717() { - dodraw_721421712(kxi_721421713); - - - } - - BeforeRet: { - if ((kxi_721421713.renderer == null)) { - break BeforeRet; - } - - kxi_721421713.renderId = 0; - if (kxi_721421713.rendering) { - kxi_721421713.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421717); - break BeforeRet; - } - - kxi_721421713.rendering = true; - var rdata_721421718 = {hashPart: null, queryString: null}; - if ((window.location.hash.indexOf("?")>=0)) { - var hashSplit_721421719 = window.location.hash.split("?"); - rdata_721421718.hashPart = hashSplit_721421719[chckIndx(0, 0, (hashSplit_721421719).length - 1)]; - rdata_721421718.queryString = (HEX5BHEX5D_721421729(hashSplit_721421719, HEX2EHEX2E_1073741928(1, 1)).join("?")); - } - else { - rdata_721421718.hashPart = window.location.hash; - rdata_721421718.queryString = window.location.search; - } - - var newtree_721421753 = kxi_721421713.renderer(rdata_721421718); - kxi_721421713.runCount = addInt(kxi_721421713.runCount, 1); - newtree_721421753.id = kxi_721421713.rootId; - kxi_721421713.toFocus = null; - if ((kxi_721421713.currentTree == null)) { - var asdom_721421763 = toDom_721420610(newtree_721421753, true, kxi_721421713); - replaceById_721420830(kxi_721421713.rootId, asdom_721421763); - } - else { - var olddom_721421764 = document.getElementById(kxi_721421713.rootId); - diff_721421509(newtree_721421753, kxi_721421713.currentTree, null, olddom_721421764, kxi_721421713); - } - - applyComponents_721421623(kxi_721421713); - applyPatch_721421458(kxi_721421713); - kxi_721421713.currentTree = newtree_721421753; - if (!((kxi_721421713.postRenderCallback == null))) { - kxi_721421713.postRenderCallback(rdata_721421718); - } - - if (!((kxi_721421713.toFocus == null))) { - kxi_721421713.toFocus.focus(); - } - - kxi_721421713.rendering = false; - }; - - -} - -function redraw_721421809(kxi_721421810) { - -function HEX3Aanonymous_721421811() { - dodraw_721421712(kxi_721421810); - - - } - - if ((kxi_721421810.renderId == 0)) { - kxi_721421810.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421811); - } - - - -} - -function loadSettings_1426069631(state_1426069632) { - var v_1426069633 = window.localStorage.getItem("lastUsed"); - if (!((v_1426069633 == null))) { - if ((0 < ((v_1426069633) == null ? 0 : (v_1426069633).length))) { - if (state_1426069632.lastUsed.length < 0) { for (var i = state_1426069632.lastUsed.length ; i < 0 ; ++i) state_1426069632.lastUsed.push(0); } - else { state_1426069632.lastUsed.length = 0; }; - var success_1426069638 = false; - Label1: { - var i_1426069639 = []; - var colontmp__570425773 = []; - colontmp__570425773 = cstrToNimstr(v_1426069633); - var lastHEX60gensym34_570425776 = 0; - var splitsHEX60gensym34_570425777 = (-1); - Label2: { - Label3: while (true) { - if (!(lastHEX60gensym34_570425776 <= (colontmp__570425773).length)) break Label3; - var firstHEX60gensym34_570425779 = lastHEX60gensym34_570425776; - Label4: { - Label5: while (true) { - if (!((lastHEX60gensym34_570425776 < (colontmp__570425773).length) && !((colontmp__570425773[chckIndx(lastHEX60gensym34_570425776, 0, (colontmp__570425773).length - 1)] == 46)))) break Label5; - lastHEX60gensym34_570425776 = addInt(lastHEX60gensym34_570425776, 1); - } - }; - if ((splitsHEX60gensym34_570425777 == 0)) { - lastHEX60gensym34_570425776 = (colontmp__570425773).length; - } - - i_1426069639 = substr_33558079(colontmp__570425773, firstHEX60gensym34_570425779, subInt(lastHEX60gensym34_570425776, 1)); -++excHandler; - try { - var b_1426069640 = nsuParseInt(i_1426069639); - if (!(contains_1459619435(HEX2EHEX2E_1157627952(0, 255), b_1426069640))) { - raiseException({message: [], parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - } - else { - success_1426069638 = true; - state_1426069632.lastUsed.push(b_1426069640);; - } - ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - success_1426069638 = false; - break Label1; - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - if ((splitsHEX60gensym34_570425777 == 0)) { - break Label2; - } - - splitsHEX60gensym34_570425777 = subInt(splitsHEX60gensym34_570425777, 1); - lastHEX60gensym34_570425776 = addInt(lastHEX60gensym34_570425776, 1); - } - }; - }; - if (success_1426069638) { - state_1426069632.studentMode = true; - document.getElementById("settings-stm").checked = true; - } - else { - state_1426069632.studentMode = false; - if (state_1426069632.lastUsed.length < 0) { for (var i = state_1426069632.lastUsed.length ; i < 0 ; ++i) state_1426069632.lastUsed.push(0); } - else { state_1426069632.lastUsed.length = 0; }; - window.localStorage.setItem("lastUsed", ""); - } - - } - - } - - var v_1426069671 = window.localStorage.getItem("starsAnimation"); - if (!((v_1426069671 == null))) { - var b_1426069672 = false; -++excHandler; - try { - b_1426069672 = parseBool_872416339(cstrToNimstr(v_1426069671)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - toggleStarsAnimation_1426069424(b_1426069672); - document.getElementById("settings-sa").checked = b_1426069672; - } - else { - toggleStarsAnimation_1426069424(false); - } - - var v_1426069673 = window.localStorage.getItem("showVArrow"); - if (!((v_1426069673 == null))) { - var b_1426069674 = true; -++excHandler; - try { - b_1426069674 = parseBool_872416339(cstrToNimstr(v_1426069673)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - state_1426069632.canon.showVArrow = b_1426069674; - document.getElementById("settings-v").checked = b_1426069674; - } - - var v_1426069675 = window.localStorage.getItem("showVxArrow"); - if (!((v_1426069675 == null))) { - var b_1426069676 = true; -++excHandler; - try { - b_1426069676 = parseBool_872416339(cstrToNimstr(v_1426069675)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - state_1426069632.canon.showVxArrow = b_1426069676; - document.getElementById("settings-vx").checked = b_1426069676; - } - - var v_1426069677 = window.localStorage.getItem("showVyArrow"); - if (!((v_1426069677 == null))) { - var b_1426069678 = true; -++excHandler; - try { - b_1426069678 = parseBool_872416339(cstrToNimstr(v_1426069677)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - state_1426069632.canon.showVyArrow = b_1426069678; - document.getElementById("settings-vy").checked = b_1426069678; - } - - var v_1426069679 = window.localStorage.getItem("formulaResults"); - if (!((v_1426069679 == null))) { - var b_1426069680 = true; -++excHandler; - try { - b_1426069680 = parseBool_872416339(cstrToNimstr(v_1426069679)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - state_1426069632.showFormulaResults = b_1426069680; - document.getElementById("settings-er").checked = b_1426069680; - } - - var v_1426069681 = window.localStorage.getItem("formulaProc"); - if (!((v_1426069681 == null))) { - var b_1426069682 = true; -++excHandler; - try { - b_1426069682 = parseBool_872416339(cstrToNimstr(v_1426069681)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - state_1426069632.showFormulaProc = b_1426069682; - document.getElementById("settings-erp").checked = b_1426069682; - } - - var v_1426069683 = window.localStorage.getItem("timescale"); - if (!((v_1426069683 == null))) { - var i_1426069684 = [0]; - var _ = parseInt_889193355(cstrToNimstr(v_1426069683), i_1426069684, 0, 0); - state_1426069632.engine.timing.timeScale = (0.028 * timeSteps_1426063536[chckIndx(i_1426069684[0], 0, (timeSteps_1426063536).length - 1)]); - } - - var v_1426069698 = window.localStorage.getItem("bulletsLimit"); - if (!((v_1426069698 == null))) { - var i_1426069699 = [0]; - var _ = parseInt_889193355(cstrToNimstr(v_1426069698), i_1426069699, 0, 0); - changeBulletsLimit_1426069485(state_1426069632, i_1426069699[0], document.getElementById("settings-bl")); - } - - var v_1426069700 = window.localStorage.getItem("collideWithBlocks"); - if (!((v_1426069700 == null))) { - var b_1426069701 = true; -++excHandler; - try { - b_1426069701 = parseBool_872416339(cstrToNimstr(v_1426069700)); ---excHandler; -} catch (EXCEPTION) { - var prevJSError = lastJSError; - lastJSError = EXCEPTION; - --excHandler; - if (lastJSError && (isObj(lastJSError.m_type, NTI134217746))) { - } - else { - reraiseException(); - } - lastJSError = prevJSError; - } finally { - } - changeBlocksCollision_1426069611(state_1426069632, b_1426069701); - document.getElementById("settings-cwb").checked = b_1426069701; - } - - var v_1426069702 = window.localStorage.getItem("lang"); - if (!((v_1426069702 == null))) { - var i_1426069703 = [0]; - var _ = parseInt_889193355(cstrToNimstr(v_1426069702), i_1426069703, 0, 0); - if (contains_1459619435(HEX2EHEX2E_1157627952(0, 1), i_1426069703[0])) { - state_1426069632.lang = chckRange(i_1426069703[0], 0, 1); - } - - if (!(kxi__.surpressRedraws)) { - redraw_721421809(kxi__); - } - - } - - document.getElementById("langSelect").value = toJSStr(HEX24_385875976(((state_1426069632.lang) | 0))); - - -} - -function sizeVec_1677721903(v_1677721904) { - var result_1677721905 = {Field0: 0.0, Field1: 0.0}; - - result_1677721905 = nimCopy(result_1677721905, {Field0: (v_1677721904.width), Field1: (v_1677721904.height)}, NTI1677721603); - - return result_1677721905; - -} - -function onImagesLoaded_1426069316(state_1426069317) { - state_1426069317.canon.imgSize = nimCopy(state_1426069317.canon.imgSize, sizeVec_1677721903(state_1426069317.render.textures["./img/canon.png"]), NTI1677721603); - state_1426069317.canon.base.imgSize = nimCopy(state_1426069317.canon.base.imgSize, sizeVec_1677721903(state_1426069317.render.textures["./img/canon.png"]), NTI1677721603); - state_1426069317.canon.platform.imgSize = nimCopy(state_1426069317.canon.platform.imgSize, sizeVec_1677721903(state_1426069317.render.textures["./img/canonPlatform.png"]), NTI1677721603); - Matter.Body.scale((state_1426069317.canon.body), (state_1426069317.canon.imgSize.Field0), (state_1426069317.canon.imgSize.Field1)); - Matter.Body.scale((state_1426069317.canon.base.body), (state_1426069317.canon.base.imgSize.Field0), (state_1426069317.canon.base.imgSize.Field1)); - Matter.Body.scale((state_1426069317.canon.platform.body), (state_1426069317.canon.platform.imgSize.Field0), (state_1426069317.canon.platform.imgSize.Field1)); - onResize_1426065422(state_1426069317, true); - rotateCanonBack_1426064283(state_1426069317, degToRad_1694498964(60.0), true); - calcTrajectory_1426065138(state_1426069317); - Matter.Render.run((state_1426069317.render)); - state_1426069317.startedRendering = true; - - -} - -function load_1426069741(state_1426069742) { - -function innerHEX60gensym1234_1426069792() { - -function innerHEX60gensym1242_1426069813() { - var result_1426069814 = null; - - BeforeRet: { - var a_1426069815 = null; - a_1426069815 = {}; - a_1426069815.timeScale = 0.028; - result_1426069814 = a_1426069815; - break BeforeRet; - }; - - return result_1426069814; - - } - - var result_1426069793 = null; - - BeforeRet: { - var a_1426069794 = null; - a_1426069794 = {}; - a_1426069794.gravity = gravity_1426069779; - a_1426069794.timing = innerHEX60gensym1242_1426069813(); - a_1426069794.enableSleeping = true; - result_1426069793 = a_1426069794; - break BeforeRet; - }; - - return result_1426069793; - - } - -function innerHEX60gensym1256_1426069854() { - -function innerHEX60gensym1278_1426069888() { - var result_1426069889 = null; - - BeforeRet: { - var a_1426069890 = null; - a_1426069890 = {}; - a_1426069890.width = state_1426069742.canvasSize.Field0; - a_1426069890.height = state_1426069742.canvasSize.Field1; - a_1426069890.showAngleIndicator = false; - a_1426069890.showSleeping = false; - a_1426069890.wireframes = false; - a_1426069890.showDebug = false; - a_1426069890.background = [116,114,97,110,115,112,97,114,101,110,116]; - result_1426069889 = a_1426069890; - break BeforeRet; - }; - - return result_1426069889; - - } - - var result_1426069855 = null; - - BeforeRet: { - var a_1426069856 = null; - a_1426069856 = {}; - a_1426069856.canvas = state_1426069742.canvas; - a_1426069856.engine = state_1426069742.engine; - a_1426069856.options = innerHEX60gensym1278_1426069888(); - result_1426069855 = a_1426069856; - break BeforeRet; - }; - - return result_1426069855; - - } - -function innerHEX60gensym1299_1426069997() { - var result_1426069998 = null; - - BeforeRet: { - var a_1426069999 = null; - a_1426069999 = {}; - a_1426069999.fps = 60; - result_1426069998 = a_1426069999; - break BeforeRet; - }; - - return result_1426069998; - - } - -function innerHEX60gensym1332_1426070072() { - -function innerHEX60gensym1342_1426070106() { - var result_1426070107 = null; - - BeforeRet: { - var a_1426070108 = null; - a_1426070108 = {}; - a_1426070108.mask = 0; - result_1426070107 = a_1426070108; - break BeforeRet; - }; - - return result_1426070107; - - } - -function innerHEX60gensym1353_1426070150() { - -function innerHEX60gensym1363_1426070158() { - var result_1426070159 = null; - - BeforeRet: { - var a_1426070160 = null; - a_1426070160 = {}; - a_1426070160.texture = "./img/canon.png"; - a_1426070160.xOffset = 0; - a_1426070160.yOffset = 0; - result_1426070159 = a_1426070160; - break BeforeRet; - }; - - return result_1426070159; - - } - - var result_1426070151 = null; - - BeforeRet: { - var a_1426070152 = null; - a_1426070152 = {}; - a_1426070152.sprite = innerHEX60gensym1363_1426070158(); - result_1426070151 = a_1426070152; - break BeforeRet; - }; - - return result_1426070151; - - } - - var result_1426070073 = null; - - BeforeRet: { - var a_1426070074 = null; - a_1426070074 = {}; - a_1426070074.zIndex = 3; - a_1426070074.isStatic = true; - a_1426070074.collisionFilter = innerHEX60gensym1342_1426070106(); - a_1426070074.label = "Canon"; - a_1426070074.render = innerHEX60gensym1353_1426070150(); - result_1426070073 = a_1426070074; - break BeforeRet; - }; - - return result_1426070073; - - } - -function innerHEX60gensym1396_1426070263() { - -function innerHEX60gensym1406_1426070297() { - var result_1426070298 = null; - - BeforeRet: { - var a_1426070299 = null; - a_1426070299 = {}; - a_1426070299.mask = 0; - result_1426070298 = a_1426070299; - break BeforeRet; - }; - - return result_1426070298; - - } - -function innerHEX60gensym1417_1426070341() { - -function innerHEX60gensym1427_1426070349() { - var result_1426070350 = null; - - BeforeRet: { - var a_1426070351 = null; - a_1426070351 = {}; - a_1426070351.texture = "./img/canonBase.png"; - a_1426070351.xOffset = 0; - a_1426070351.yOffset = 0; - result_1426070350 = a_1426070351; - break BeforeRet; - }; - - return result_1426070350; - - } - - var result_1426070342 = null; - - BeforeRet: { - var a_1426070343 = null; - a_1426070343 = {}; - a_1426070343.sprite = innerHEX60gensym1427_1426070349(); - result_1426070342 = a_1426070343; - break BeforeRet; - }; - - return result_1426070342; - - } - - var result_1426070264 = null; - - BeforeRet: { - var a_1426070265 = null; - a_1426070265 = {}; - a_1426070265.zIndex = 4; - a_1426070265.isStatic = true; - a_1426070265.collisionFilter = innerHEX60gensym1406_1426070297(); - a_1426070265.label = "Base"; - a_1426070265.render = innerHEX60gensym1417_1426070341(); - result_1426070264 = a_1426070265; - break BeforeRet; - }; - - return result_1426070264; - - } - -function innerHEX60gensym1461_1426070464() { - -function innerHEX60gensym1471_1426070498() { - var result_1426070499 = null; - - BeforeRet: { - var a_1426070500 = null; - a_1426070500 = {}; - a_1426070500.mask = 0; - result_1426070499 = a_1426070500; - break BeforeRet; - }; - - return result_1426070499; - - } - -function innerHEX60gensym1482_1426070542() { - -function innerHEX60gensym1492_1426070550() { - var result_1426070551 = null; - - BeforeRet: { - var a_1426070552 = null; - a_1426070552 = {}; - a_1426070552.texture = "./img/canonPlatform.png"; - a_1426070552.xOffset = 0; - a_1426070552.yOffset = 0; - result_1426070551 = a_1426070552; - break BeforeRet; - }; - - return result_1426070551; - - } - - var result_1426070543 = null; - - BeforeRet: { - var a_1426070544 = null; - a_1426070544 = {}; - a_1426070544.sprite = innerHEX60gensym1492_1426070550(); - result_1426070543 = a_1426070544; - break BeforeRet; - }; - - return result_1426070543; - - } - - var result_1426070465 = null; - - BeforeRet: { - var a_1426070466 = null; - a_1426070466 = {}; - a_1426070466.zIndex = 1; - a_1426070466.isStatic = true; - a_1426070466.collisionFilter = innerHEX60gensym1471_1426070498(); - a_1426070466.label = "Platform"; - a_1426070466.render = innerHEX60gensym1482_1426070542(); - result_1426070465 = a_1426070466; - break BeforeRet; - }; - - return result_1426070465; - - } - -function innerHEX60gensym1530_1426070665() { - -function innerHEX60gensym1548_1426070738() { - var result_1426070739 = null; - - BeforeRet: { - var a_1426070740 = null; - a_1426070740 = {}; - a_1426070740.category = 2; - a_1426070740.mask = 3; - result_1426070739 = a_1426070740; - break BeforeRet; - }; - - return result_1426070739; - - } - -function innerHEX60gensym1559_1426070782() { - var result_1426070783 = null; - - BeforeRet: { - var a_1426070784 = null; - a_1426070784 = {}; - a_1426070784.fillStyle = ""; - result_1426070783 = a_1426070784; - break BeforeRet; - }; - - return result_1426070783; - - } - - var result_1426070666 = null; - - BeforeRet: { - var a_1426070667 = null; - a_1426070667 = {}; - a_1426070667.zIndex = (-1); - a_1426070667.friction = 1; - a_1426070667.frictionStatic = 1; - a_1426070667.isStatic = true; - a_1426070667.label = "Ground"; - a_1426070667.collisionFilter = innerHEX60gensym1548_1426070738(); - a_1426070667.render = innerHEX60gensym1559_1426070782(); - result_1426070666 = a_1426070667; - break BeforeRet; - }; - - return result_1426070666; - - } - -function innerHEX60gensym1597_1426070871() { - -function innerHEX60gensym1615_1426070957() { - var result_1426070958 = null; - - BeforeRet: { - var a_1426070959 = null; - a_1426070959 = {}; - a_1426070959.wrap = wrapObject_1426063895(state_1426069742); - result_1426070958 = a_1426070959; - break BeforeRet; - }; - - return result_1426070958; - - } - -function innerHEX60gensym1626_1426070988() { - var result_1426070989 = null; - - BeforeRet: { - var a_1426070990 = null; - a_1426070990 = {}; - a_1426070990.category = 2; - a_1426070990.mask = 3; - result_1426070989 = a_1426070990; - break BeforeRet; - }; - - return result_1426070989; - - } - - var result_1426070872 = null; - - BeforeRet: { - var a_1426070873 = null; - a_1426070873 = {}; - a_1426070873.zIndex = 0; - a_1426070873.isStatic = false; - a_1426070873.label = "Block 1"; - a_1426070873.frictionAir = 0.1; - a_1426070873.friction = 1; - a_1426070873.frictionStatic = 1; - a_1426070873.plugin = innerHEX60gensym1615_1426070957(); - a_1426070873.collisionFilter = innerHEX60gensym1626_1426070988(); - a_1426070873.sleepThreshold = 0.5; - result_1426070872 = a_1426070873; - break BeforeRet; - }; - - return result_1426070872; - - } - -function innerHEX60gensym1666_1426071083() { - -function innerHEX60gensym1684_1426071169() { - var result_1426071170 = null; - - BeforeRet: { - var a_1426071171 = null; - a_1426071171 = {}; - a_1426071171.wrap = wrapObject_1426063895(state_1426069742); - result_1426071170 = a_1426071171; - break BeforeRet; - }; - - return result_1426071170; - - } - -function innerHEX60gensym1695_1426071200() { - var result_1426071201 = null; - - BeforeRet: { - var a_1426071202 = null; - a_1426071202 = {}; - a_1426071202.category = 2; - a_1426071202.mask = 3; - result_1426071201 = a_1426071202; - break BeforeRet; - }; - - return result_1426071201; - - } - - var result_1426071084 = null; - - BeforeRet: { - var a_1426071085 = null; - a_1426071085 = {}; - a_1426071085.zIndex = 0; - a_1426071085.isStatic = false; - a_1426071085.label = "Block 2"; - a_1426071085.frictionAir = 0.1; - a_1426071085.friction = 1; - a_1426071085.frictionStatic = 1; - a_1426071085.plugin = innerHEX60gensym1684_1426071169(); - a_1426071085.collisionFilter = innerHEX60gensym1695_1426071200(); - a_1426071085.sleepThreshold = 0.5; - result_1426071084 = a_1426071085; - break BeforeRet; - }; - - return result_1426071084; - - } - -function innerHEX60gensym1735_1426071295() { - -function innerHEX60gensym1753_1426071381() { - var result_1426071382 = null; - - BeforeRet: { - var a_1426071383 = null; - a_1426071383 = {}; - a_1426071383.wrap = wrapObject_1426063895(state_1426069742); - result_1426071382 = a_1426071383; - break BeforeRet; - }; - - return result_1426071382; - - } - -function innerHEX60gensym1764_1426071412() { - var result_1426071413 = null; - - BeforeRet: { - var a_1426071414 = null; - a_1426071414 = {}; - a_1426071414.category = 2; - a_1426071414.mask = 3; - result_1426071413 = a_1426071414; - break BeforeRet; - }; - - return result_1426071413; - - } - - var result_1426071296 = null; - - BeforeRet: { - var a_1426071297 = null; - a_1426071297 = {}; - a_1426071297.zIndex = 0; - a_1426071297.isStatic = false; - a_1426071297.label = "Block 3"; - a_1426071297.frictionAir = 0.1; - a_1426071297.friction = 1; - a_1426071297.frictionStatic = 1; - a_1426071297.plugin = innerHEX60gensym1753_1426071381(); - a_1426071297.collisionFilter = innerHEX60gensym1764_1426071412(); - a_1426071297.sleepThreshold = 0.5; - result_1426071296 = a_1426071297; - break BeforeRet; - }; - - return result_1426071296; - - } - -function innerHEX60gensym1791_1426071516() { - -function innerHEX60gensym1801_1426071537() { - var result_1426071538 = null; - - BeforeRet: { - var a_1426071539 = null; - a_1426071539 = {}; - a_1426071539.category = 2; - a_1426071539.mask = 3; - result_1426071538 = a_1426071539; - break BeforeRet; - }; - - return result_1426071538; - - } - -function innerHEX60gensym1814_1426071581() { - -function innerHEX60gensym1820_1426071589() { - var result_1426071590 = null; - - BeforeRet: { - var a_1426071591 = null; - a_1426071591 = {}; - a_1426071591.visible = false; - result_1426071590 = a_1426071591; - break BeforeRet; - }; - - return result_1426071590; - - } - - var result_1426071582 = null; - - BeforeRet: { - var a_1426071583 = null; - a_1426071583 = {}; - a_1426071583.render = innerHEX60gensym1820_1426071589(); - a_1426071583.stiffness = 1; - result_1426071582 = a_1426071583; - break BeforeRet; - }; - - return result_1426071582; - - } - - var result_1426071517 = null; - - BeforeRet: { - var a_1426071518 = null; - a_1426071518 = {}; - a_1426071518.mouse = state_1426069742.mouse; - a_1426071518.collisionFilter = innerHEX60gensym1801_1426071537(); - a_1426071518.constraint = innerHEX60gensym1814_1426071581(); - result_1426071517 = a_1426071518; - break BeforeRet; - }; - - return result_1426071517; - - } - -function innerHEX60gensym1845_1426071678() { - var result_1426071679 = null; - - BeforeRet: { - var a_1426071680 = null; - a_1426071680 = {}; - a_1426071680.isStatic = true; - a_1426071680.label = "Roof"; - result_1426071679 = a_1426071680; - break BeforeRet; - }; - - return result_1426071679; - - } - var Temporary4; - -function HEX3Aanonymous_1426071885() { - loadedImgCount_1426071784 = addInt(loadedImgCount_1426071784, 1); - if ((loadedImgCount_1426071784 == (images_1426071792).length)) { - renderMathInElement((document.body)); - onImagesLoaded_1426069316(state_1426069742); - } - - - - } - - Matter.use(("matter-wrap")); - Matter.Sleeping._motionSleepThreshold = 0.35; - Matter.Sleeping._motionWakeThreshold = 0.5; - var gravity_1426069779 = jsVec_1677721758(state_1426069742.trajectories[chckIndx(state_1426069742.currentTrajectory, 0, (state_1426069742.trajectories).length - 1)].state.gravity); - gravity_1426069779.scale = 1; - state_1426069742.canvas = document.getElementById("canvas"); - state_1426069742.canvasSize.Field0 = state_1426069742.canvas.clientWidth; - state_1426069742.canvasSize.Field1 = state_1426069742.canvas.clientHeight; - state_1426069742.canvas.focus(); - state_1426069742.engine = Matter.Engine.create(innerHEX60gensym1234_1426069792()); - state_1426069742.render = Matter.Render.create(innerHEX60gensym1256_1426069854()); - state_1426069742.runner = Matter.Runner.create((innerHEX60gensym1299_1426069997())); - Matter.Runner.run((state_1426069742.runner), (state_1426069742.engine)); - state_1426069742.canon.body = Matter.Bodies.rectangle((0), (0), (1), (1), (innerHEX60gensym1332_1426070072())); - state_1426069742.canon.base.body = Matter.Bodies.rectangle((0), (0), (1), (1), (innerHEX60gensym1396_1426070263())); - state_1426069742.canon.base.body.xratio = 0.2; - state_1426069742.canon.platform.body = Matter.Bodies.rectangle((0), (0), (1), (1), (innerHEX60gensym1461_1426070464())); - state_1426069742.canon.platform.body.xratio = 0.2; - state_1426069742.ground = Matter.Bodies.rectangle((0), (0), ((state_1426069742.canvasSize.Field0 * 1000.0)), (160.0), (innerHEX60gensym1530_1426070665())); - state_1426069742.ground.xratio = 0.5; - state_1426069742.ground.yratio = 1; - state_1426069742.blocks = nimCopy(null, [Matter.Bodies.rectangle((70), ((state_1426069742.canvasSize.Field1 * 0.8)), (60), (35), (innerHEX60gensym1597_1426070871())), Matter.Bodies.rectangle((70), ((state_1426069742.canvasSize.Field1 * 0.7)), (40), (55), (innerHEX60gensym1666_1426071083())), Matter.Bodies.rectangle((70), ((state_1426069742.canvasSize.Field1 * 0.6)), (20), (30), (innerHEX60gensym1735_1426071295()))], NTI1426068752); - state_1426069742.mouse = Matter.Mouse.create((state_1426069742.canvas)); - state_1426069742.render.mouse = state_1426069742.mouse; - state_1426069742.mouseCons = Matter.MouseConstraint.create((state_1426069742.engine), (innerHEX60gensym1791_1426071516())); - var roof_1426071721 = Matter.Bodies.rectangle((0), ((-100)), (1000), (20), (innerHEX60gensym1845_1426071678())); - roof_1426071721.xratio = 0.5; - loadEvents_1426068643(state_1426069742); - Matter.Composite.add((state_1426069742.engine.world), (([state_1426069742.canon.body, state_1426069742.mouseCons, state_1426069742.canon.base.body, state_1426069742.canon.platform.body, roof_1426071721, state_1426069742.ground]))); - Matter.Composite.add((state_1426069742.engine.world), ((state_1426069742.blocks))); - loadSettings_1426069631(state_1426069742); - var loadedImgCount_1426071784 = 0; - var images_1426071792 = newSeq_33556919(0); - Label1: { - var b_1426071816 = null; - var colontmp__570425678 = []; - colontmp__570425678 = (Matter.Composite.allBodies((state_1426069742.engine.world))); - var i_570425679 = 0; - var L_570425680 = (colontmp__570425678).length; - Label2: { - Label3: while (true) { - if (!(i_570425679 < L_570425680)) break Label3; - b_1426071816 = colontmp__570425678[chckIndx(i_570425679, 0, (colontmp__570425678).length - 1)]; - if (!!((b_1426071816.render.sprite.texture === undefined))) Temporary4 = false; else { Temporary4 = !(((b_1426071816.render.sprite.texture in state_1426069742.render.textures))); } if (Temporary4) { - images_1426071792.push((b_1426071816.render.sprite.texture));; - } - - i_570425679 = addInt(i_570425679, 1); - if (!(((colontmp__570425678).length == L_570425680))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - Label5: { - var src_1426071883 = null; - var i_570425684 = 0; - var L_570425685 = (images_1426071792).length; - Label6: { - Label7: while (true) { - if (!(i_570425684 < L_570425685)) break Label7; - src_1426071883 = images_1426071792[chckIndx(i_570425684, 0, (images_1426071792).length - 1)]; - var img_1426071884 = new Image(); - img_1426071884.onload = HEX3Aanonymous_1426071885; - img_1426071884.src = src_1426071883; - state_1426069742.render.textures[src_1426071883] = img_1426071884; - i_570425684 = addInt(i_570425684, 1); - if (!(((images_1426071792).length == L_570425685))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - - -} - -function reload_1426071973(state_1426071974) { - Matter.Composite.clear((state_1426071974.engine.world)); - Matter.Engine.clear((state_1426071974.engine)); - Matter.Render.stop((state_1426071974.render)); - Matter.Runner.stop((state_1426071974.runner)); - unloadEvents_1426068541(state_1426071974); - state_1426071974 = nimCopy(state_1426071974, initParabolaState_1426066231(), NTI1426063369); - document.getElementById("point-input-f").checked = false; - load_1426069741(state_1426071974); - if (!(kxi__.surpressRedraws)) { - redraw_721421809(kxi__); - } - - - -} - -function unpause_1426064096(state_1426064097) { - state_1426064097.runner.enabled = true; - state_1426064097.paused = false; - - -} - -function togglePause_1426064158(state_1426064159) { - if (state_1426064159.paused) { - unpause_1426064096(state_1426064159); - } - else { - pause_1426064084(state_1426064159); - } - - - -} - -function addTrajectory_1426073339(state_1426073340) { - if ((state_1426073340.startedRendering && ((state_1426073340.trajectories).length < 16))) { - var colIndex_1426073353 = (-1); - Label1: { - var e_1426073381 = 0; - var c_1426073382 = []; - var i_570425899 = 0; - Label2: { - Label3: while (true) { - if (!true) break Label3; - e_1426073381 = i_570425899; - c_1426073382 = trajectoryStrokeStyles_1426063558[chckIndx(i_570425899, 0, (trajectoryStrokeStyles_1426063558).length - 1)]; - var available_1426073383 = true; - Label4: { - var t_1426073405 = ({state: ({angleDeg: 0.0, angleRad: 0.0, speed: 0.0, height: 0.0, vel: {Field0: 0.0, Field1: 0.0}, gravity: {Field0: 0.0, Field1: 0.0}}), points: [], highestPoint: 0, closestPoint: 0, extraPoint: 0, pinnedPoint: 0, color: 0}); - var i_570425895 = 0; - var L_570425896 = (state_1426073340.trajectories).length; - Label5: { - Label6: while (true) { - if (!(i_570425895 < L_570425896)) break Label6; - t_1426073405 = state_1426073340.trajectories[chckIndx(i_570425895, 0, (state_1426073340.trajectories).length - 1)]; - if ((t_1426073405.color == e_1426073381)) { - available_1426073383 = false; - break Label4; - } - - i_570425895 = addInt(i_570425895, 1); - if (!(((state_1426073340.trajectories).length == L_570425896))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - if (available_1426073383) { - colIndex_1426073353 = e_1426073381; - } - - if ((15 <= i_570425899)) { - break Label2; - } - - i_570425899 = addInt(i_570425899, 1); - } - }; - }; - var Temporary7 = nimCopy(null, state_1426073340.trajectories[chckIndx(state_1426073340.currentTrajectory, 0, (state_1426073340.trajectories).length - 1)], NTI1426063366); - state_1426073340.trajectories.push(Temporary7);; - state_1426073340.currentTrajectory = (state_1426073340.trajectories).length - 1; - state_1426073340.trajectories[chckIndx(state_1426073340.currentTrajectory, 0, (state_1426073340.trajectories).length - 1)].color = colIndex_1426073353; - if ((rotationLimit_1426064202(state_1426073340).b <= (state_1426073340.trajectories[chckIndx(state_1426073340.currentTrajectory, 0, (state_1426073340.trajectories).length - 1)].state.angleDeg + 3.0))) { - rotateCanon_1426064221(state_1426073340, degToRad_1694498964((normalizedAngleDeg_1426064191(state_1426073340.canon, 0.0) - 60.0)), true); - } - else { - rotateCanonBack_1426064283(state_1426073340, degToRad_1694498964(6.0), true); - } - - calcTrajectory_1426065138(state_1426073340); - if (!(kxi__.surpressRedraws)) { - redraw_721421809(kxi__); - } - - } - - - -} - -function addEventListeners_1426074202(state_1426074203) { - -function HEX3Aanonymous_1426074204(event_1426074205) { - onResize_1426065422(state_1426074203, false); - - - } - -function HEX3Aanonymous_1426074206(event_1426074207) { - var Temporary1; - var Temporary2; - - BeforeRet: { - if (!(state_1426074203.startedRendering)) Temporary1 = true; else { if (!!((document.activeElement == null))) Temporary2 = false; else { Temporary2 = !((document.activeElement.id == "canvas")); } Temporary1 = Temporary2; } if (Temporary1) { - break BeforeRet; - } - - var event_1426074211 = event_1426074207; - switch (toJSStr(cstrToNimstr(event_1426074211.key))) { - case "ArrowRight": - rotateCanon_1426064221(state_1426074203, degToRad_1694498964(3.0), true); - calcTrajectory_1426065138(state_1426074203); - break; - case "ArrowLeft": - rotateCanonBack_1426064283(state_1426074203, degToRad_1694498964(3.0), true); - calcTrajectory_1426065138(state_1426074203); - break; - case "ArrowUp": - setSpeed_1426063660(state_1426074203.trajectories[chckIndx(state_1426074203.currentTrajectory, 0, (state_1426074203.trajectories).length - 1)].state, (state_1426074203.trajectories[chckIndx(state_1426074203.currentTrajectory, 0, (state_1426074203.trajectories).length - 1)].state.speed + 1.0)); - calcTrajectory_1426065138(state_1426074203); - break; - case "ArrowDown": - setSpeed_1426063660(state_1426074203.trajectories[chckIndx(state_1426074203.currentTrajectory, 0, (state_1426074203.trajectories).length - 1)].state, (state_1426074203.trajectories[chckIndx(state_1426074203.currentTrajectory, 0, (state_1426074203.trajectories).length - 1)].state.speed - 1.0)); - calcTrajectory_1426065138(state_1426074203); - break; - case " ": - fireBullet_1426065718(state_1426074203); - break; - case "Backspace": - reload_1426071973(state_1426074203); - break; - case "p": - togglePause_1426064158(state_1426074203); - if (!(kxi__.surpressRedraws)) { - redraw_721421809(kxi__); - } - - break; - case "Enter": - addTrajectory_1426073339(state_1426074203); - break; - case "d": - break; - default: - break; - } - }; - - - } - - window.addEventListener("resize", HEX3Aanonymous_1426074204, false); - document.addEventListener("keyup", HEX3Aanonymous_1426074206, false); - - -} - -function newState_570425354() { - var result_570425355 = null; - - result_570425355 = {parabola: initParabolaState_1426066231(), matterLoaded: false}; - addEventListeners_1426074202(result_570425355.parabola); - - return result_570425355; - -} - -function newSeq_721421866(len_721421868) { - var result_721421869 = []; - - result_721421869 = new Array(len_721421868); for (var i = 0 ; i < len_721421868 ; ++i) { result_721421869[i] = ({k: 0, parent: null, current: null, newNode: null, oldNode: null}); } - return result_721421869; - -} - -function newSeq_721421894(len_721421896) { - var result_721421897 = []; - - result_721421897 = new Array(len_721421896); for (var i = 0 ; i < len_721421896 ; ++i) { result_721421897[i] = ({parent: null, newChild: null, pos: 0}); } - return result_721421897; - -} - -function init_721421814(ev_721421815) { - -function HEX3Aanonymous_721421816() { - dodraw_721421712(kxi__); - - - } - - kxi__.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421816); - - -} - -function setRenderer_721421848(renderer_721421851, root_721421852, clientPostRenderCallback_721421855) { - -function HEX3Aanonymous_721421928() { - redraw_721421809(kxi__); - - - } - - var result_721421856 = null; - - if ((document.getElementById(root_721421852) == null)) { - var msg_721421860 = (("Could not find a