!function(){var l,e="object"==typeof exports,f=(l=e?exports:window.dale={},function(){return Object.prototype.toString.call(arguments).match("arguments")}()),p=function(e,t){var n=typeof e;return"function"===n?Object.prototype.toString.call(e).match(/regexp/i)?"regex":"function":"object"!==n&&"number"!==n?n:e instanceof Array?"array":"number"===n?isNaN(e)?"nan":isFinite(e)?e%1==0?"integer":"float":"infinity":null===e?"null":"array"===(n=Object.prototype.toString.call(e).replace("[object ","").replace("]","").toLowerCase())||"date"===n?n:"regexp"===n?"regex":t?!f&&"function"===n(e.callee)?"arguments":n:"object"};try{l.clog=console.log.bind(console)}catch(t){l.clog=function(){var e=l.go(arguments,function(e){return e===undefined?"undefined":e}).join(" ");window.console?window.console.log(e):alert(e)}}e=function(d){return function(e,t,n,r){var o,i,a,u;if("go"===d?(i=t,a=!0===n,u=[],o=0):"fil"===d?(i=n,a=!0===r,u=[],o=0):"obj"!==d?(i=n,a=!0===r):u="object"===p(t)?(i=n,a=!0===r,t):(i=t,a=!0===n,{}),"function"!==p(i))return l.clog(("go"===d||"obj"===d&&"object"!==p(t)?"Second":"Third")+" argument passed to dale."+d+" must be a function but instead is",i,"with type",p(i)),!1;if(e!==undefined){s="go"===d?function(e){u[o++]=e}:"fil"===d?function(e){e!==t&&(u[o++]=e)}:"obj"===d?function(e){if(e!==undefined)return"array"!==p(e)||2!==e.length?(l.clog("array"===p(e)?"fun passed to dale.obj must return undefined or an array of length 2 but instead returned an array of length "+e.length:"fun passed to dale.obj must return undefined or an array of length 2 but instead returned a value of type "+p(e)),!(u=!1)):void(u[e[0]]=e[1])}:function(e){return u=e,"stop"===d?e===t:e!==t};var s,r=p(e);if("object"!==r||"[object Arguments]"!==Object.prototype.toString.call(e)&&(f||"function"!==p(e.callee))||(r="array",e=[].slice.call(e)),"array"===r)for(var c=0;c/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},u.v=function(t,e){var n,r,o=c(t);return"array"===o&&a(u.k.tags,t[0])?(r="object"===c(t[1])?t[1]:undefined,n=t[r?2:1],!0===(r=i.v([["lith length",t.length,{min:1,max:3},i.test.range],[r===undefined,["length of lith without attributes",t.length,{max:2},i.test.range]],[["lith attribute keys","start with an ASCII letter, underscore or colon, and be followed by letters, digits, underscores, colons, periods, dashes, extended ASCII characters, or any non-ASCII characters."],s.keys(r),/^[a-zA-Z_:][a-zA-Z_:0-9.\-\u0080-\uffff]*$/,"each",i.test.match],["lith attribute values",r,["string","integer","float","undefined","null","boolean"],"eachOf"],"LITERAL"===t[0]?["lith LITERAL contents",n,"string"]:["lith contents",n,u.k.lithbagElements,"oneOf"]],!!e||function(e){d("lith.v - Invalid lith",{error:e,"original input":t})},!0))?"Lith":!!e&&{error:r,"original input":t}):!0===(r=i.v([["lithbag",o,u.k.lithbagElements,"oneOf",i.test.equal],["array"===o,["lithbag elements",t,u.k.lithbagElements,"eachOf"]]],!!e||function(e){d("lith.v - Invalid lithbag",{error:e,"original input":t})},!0))?"Lithbag":!!e&&{error:r,"original input":t}},u.g=function(e,t){return t||u.prod?!0!==(t||u.prod)?d("lith.g","prod or lith.prod must be true or undefined."):"array"===c(e)&&a(u.k.tags,e[0])?u.generateLith(e,!0):u.generateLithbag(e,!1,!0):!!(t=u.v(e))&&u["generate"+t](e)},u.generateLithbag=function(e,t,n){var r="";return!1!==s.stop(e,!1,function(e){if(e!==undefined)return c(e),"array"!==c(e)?r+=t?e:u.entityify(e+"",n):!1!==(e=u.g(e,n))&&void(r+=e)})&&r},u.generateLith=function(e,n){var t="object"===c(e[1])?e[1]:undefined,r=e[t?2:1];if("LITERAL"===e[0])return r;var o="<"+e[0];if(s.go(t,function(e,t){!e&&0!==e||(o+=" "+u.entityify(t+"",n)+'="'+u.entityify(e+"",n)+'"')}),o+=">","array"===c(r)){t=("style"===e[0]?u.css:u).g(r,n);if(!1===t)return!1;o+=t}else o+=u.generateLithbag(r,"style"===e[0]||"script"===e[0],n);return a(u.k.voidTags,e[0])||(o+=""+e[0]+">"),o},u.css={},u.css.v=function(t,e){var n,r,o=i.v(["litc or litcbag",t,"array"],!!e||function(e){d("lith.css.v - Invalid litc or litcbag",{error:e,"original input":t})},!0);return!0!==o?!!e&&{error:o,"original input":t}:0===t.length||"array"===c(t[0])||(n="object"===c(t[1])?t[1]:undefined,r=t[n?2:1],!0===(o=i.v([["litc length",t.length,{min:1,max:3},i.test.range],[n===undefined,["length of litc without attributes",t.length,{max:2},i.test.range]],["litc selector",t[0],"string"],u.css.vAttributes(n),"LITERAL"===t[0]?["litc LITERAL contents",r,"string"]:["litc contents",r,["undefined","array"],"oneOf"]],!!e||function(e){d("lith.css.v - Invalid litc",{error:e,"original input":t})},!0))?o:!!e&&{error:o,"original input":t})},u.css.vAttributes=function(e){return i.v([["litc attribute values",e,["string","integer","float","object","undefined","null","boolean"],"eachOf"]],undefined,!0)},u.css.g=function(e,n,r){if(n||u.prod){if(!0!==(n||u.prod))return d("lith.css.g","prod or lith.prod must be true or undefined.");n=!0}if(!n&&!1===u.css.v(e))return!1;if(0===e.length)return"";if("LITERAL"===e[0])return e[1];var o="";if("array"===c(e[0]))return!1!==s.stop(e,!1,function(e,t){e=u.css.g(e,n,r);if(!1===e)return!1;o+=e})&&o;r===undefined&&(r="");var t="object"===c(e[1])?e[1]:undefined,i=e[t?2:1],a=(r=s.go(r.split(/,\s*/),function(t){return s.go(e[0].split(/,\s*/),function(e){return e.match(/&/)?e.replace("&",t):t+(0===t.length?"":" ")+e}).join(", ")}).join(", "),o+=r+"{",function(e){return!1!==u.css.vAttributes(e)&&s.stop(e,!1,function(t,e){if(t||0===t){var n=c(t);if("object"===n)return a(t);"integer"===n&&(t<0||1,:]+$/)?o[0]:o)}).nodeListToArray=function(e){for(var t=[],n=0;n\[\]]+$/i)?(n=t.match("#")?"id":t.match(/\./)?"class":undefined,r=2!==(t=t.split(/#|\./)).length&&n?undefined:t[0].toUpperCase(),s.fil(f.nodeListToArray(e.getElementsByTagName(r||"*")),undefined,function(e){if(("class"!==n||u((e.className||"").split(/\s/),c.last(t)))&&("id"!==n||e.id===c.last(t)))return e})):l("The selector "+t+" is not supported in IE <= 7 or Firefox <= 3.")):(o=t.shift(),i=[],s.stop(t,!1,function(e,t){e=f.find(e);if(!1===e)return i=!1;i=0===t&&":not"!==o?e:f.setop(o.replace(":",""),i,e)}),i))},f.empty=function(e){f(e,function(e){e.innerHTML=""})},f.fill=function(e,t){if(!f.prod&&c.stop("c.fill",["html",t,"string"],undefined,!0))return!1;f(e,function(e){e.innerHTML=t})},f.place=function(e,t,n){if(!f.prod&&c.stop("c.place",[["where",t,["beforeBegin","afterBegin","beforeEnd","afterEnd"],"oneOf",c.test.equal],["html",n,"string"]],undefined,!0))return!1;f(e,function(e){e.insertAdjacentHTML(t,n)})},f.get=function(e,n,r){var o;return!(!f.prod&&c.stop("c.get",["attributes",n,["string","array","undefined"],"oneOf"],undefined,!0))&&(o=[null,"",!1,0,"false"],f(e,function(t){return n!==undefined?s.obj(n,function(e){return r?[e,t.style[e]||null]:[e,t.getAttribute(e)]}):r?s.obj(t.style.length?s.times(t.style.length,0):s.keys(t.style),function(e){return t.style.length?[t.style[e],t.style[t.style[e]]]:u(o,t.style[e])?void 0:[e,t.style[e]]}):s.obj(t.attributes,t["class"]||t.className?{"class":t["class"]||t.className}:{},function(e,t){if(e&&e.nodeName&&!u(o,e.nodeValue))return[e.nodeName,e.nodeValue]})}))},f.set=function(e,t,r,o){if(!f.prod&&c.stop("c.set",[["attributes",t,"object"],[["attribute keys","start with an ASCII letter, underscore or colon, and be followed by letters, digits, underscores, colons, periods, dashes, extended ASCII characters, or any non-ASCII characters."],s.keys(t),/^[a-zA-Z_:][a-zA-Z_:0-9.\-\u0080-\uffff]*$/,"each",c.test.match],["attribute values",t,["integer","float","string","null"],"eachOf"]],undefined,!0))return!1;f(e,function(n){s.go(t,function(e,t){r?n.style[t]=null===e?"":e:null===e?n.removeAttribute(t):n.setAttribute(t,e)}),o||f.fire(n,"change")})},f.fire=function(e,r){if(!f.prod&&c.stop("c.fire",["event type",r,"string"],undefined,!0))return!1;f(e,function(e){var t;try{t=new Event(r)}catch(n){t=document.createEvent?document.createEvent("Event"):document.createEventObject(),document.createEvent&&t.initEvent(r,!1,!1)}if(e.dispatchEvent)return e.dispatchEvent(t);if(!e.fireEvent)return l("c.fire error","Unfortunately, this browser supports neither EventTarget.dispatchEvent nor element.fireEvent.");try{e.fireEvent("on"+r,t)}catch(n){e["on"+r]&&e["on"+r]()}})},f.ready=function(e){var t;return window.addEventListener?window.addEventListener("load",e,!1):window.attachEvent?window.attachEvent("onload",e):void setInterval(function(){"complete"!==document.readyState||e()||clearInterval(t)},10)},f.cookie=function(e){return!1===e?s.go(document.cookie.split(/;\s*/),function(e){return document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()),e}):s.obj((e||document.cookie).split(/;\s*/),function(e){if(""!==e)return[(e=e.split("="))[0],e.slice(1).join("=")]})},f.ajax=function(e,t,n,r,o){var i;return e=e||"GET",n=n||{},r=r||"",o=o||function(){},!(!f.prod&&c.stop("c.ajax",[["method",e,"string"],["path",t,"string"],["headers",n,"object"],["callback",o,"function"]],undefined,!0))&&((i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).open(e.toUpperCase(),t,!0),c.complex(r)&&"formdata"!==d(r,!0)&&(n["content-type"]=n["content-type"]||"application/json",r=c.str(r)),s.go(n,function(e,t){i.setRequestHeader(t,e)}),i.onreadystatechange=function(){if(4===i.readyState){if(200!==i.status&&304!==i.status)return o(i);var n,e={xhr:i,headers:s.obj(i.getAllResponseHeaders().split(/\r?\n/),function(e){var t;if(""!==e)return t=e.match(/^[^:]+/)[0],e=e.replace(t,"").replace(/:\s+/,""),t.match(/^content-type/i)&&e.match(/application\/json/i)&&(n=!0),[t,e]})};e.body=n?c.parse(i.responseText):i.responseText,o(null,e)}},i.send(r),{headers:n,body:r,xhr:i})},f.loadScript=function(e,r){return r=r||function(){},f.ajax("get",e,{},"",function(e,t){if(e)return r(e);var n=document.createElement("script");try{n.appendChild(document.createTextNode(t.body))}catch(e){n.text=t.body}document.body.appendChild(n),r(null,t)})},f.test=function(e,a){if(!f.prod&&c.stop("c.test",[["tests",e,"array"],["tests",e,"array","each"],s.go(e,function(e,t){return 0===e.length?[]:[["test length",e.length,{min:2,max:3},c.test.range],["test #"+(t+1)+" tag",e[0],"string"],2===e.length?["test #"+(t+1)+" check",e[1],"function"]:[["test #"+(t+1)+" action",e[1],"function"],["test #"+(t+1)+" check",e[2],"function"]]]}),["callback",a,["function","undefined"],"oneOf"]],undefined,!0))return!1;a=a||function(e,t){if(e)throw new Error("c.test: Test failed: "+e.test+"; result: "+e.result);l("c.test","All tests finished successfully ("+(c.time()-n)+" ms)")};var n=c.time(),u=function(r){var o,i=e[r];return i?0===i.length?u(r+1):(o=function(e,t){var n=i[i.length-1]();if(!t||!0!==n&&e||clearInterval(t),!0===n)return u(r+1);e||a({test:i[0],result:n})},l("c.test","Running test:",i[0]),2===i.length?o():void(i[1](function(e,t){if(e===undefined)return o();if("integer"!==d(e)||e<0)throw new Error("c.test: `wait` parameter must be undefined, zero or a positive integer but instead is "+e);if(t===undefined)return setTimeout(o,e);if("integer"!==d(t)||t<1)throw new Error("c.test: `ms` parameter must be undefined or a positive integer but instead is "+t);var n=c.time()+e,r=setInterval(function(){o(c.time()<=n,r)},t)})!==undefined&&o())):a(null,c.time()-n)};u(0)})}(),function(){var v,c,p,d,a,l,w,g,j;"object"==typeof exports?console.log("gotoв only works in a browser!"):(v=window.dale,c=window.teishi,p=window.lith,d=window.R(),a=window.c,l=c.type,w=c.inc,g=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},j=window.B={v:"2.3.2",B:"в",t:g(),r:d,responders:d.responders,store:d.store,log:d.log,call:d.call,respond:d.respond,forget:d.forget},d.error=j.error=function(){var e="object"===l(arguments[0])?arguments[0]:undefined,t=v.go(arguments,function(e){return e}).slice(e?1:0);return j.call.apply(null,[e||{},"error"].concat(t)),!1},j.respond({id:"error",verb:"error",path:[],match:function(e){return"error"===e.verb}},function(){document.body.innerHTML+=p.g(["div",{id:"eventlog-snackbar",style:p.css.style({position:"fixed","font-weight":"bold",opacity:"0.8",top:0,left:.1,width:.8,padding:10,color:"white","background-color":"black","z-index":"10001","text-align":"center"})},"There was an error."],!0),setTimeout(function(){a("#eventlog-snackbar")&&document.body.removeChild(a("#eventlog-snackbar"))},3e3),j.eventlog()}),j.eventlog=function(t){a("#eventlog")&&document.body.removeChild(a("#eventlog"));var r={},o=["#fe6f6c","#465775","#e086c3","#8332ac","#462749","#044389","#59c9a6","#ffad05","#7cafc4","#5b6c5d"],i=0;document.body.innerHTML+=p.g(["table",{id:"eventlog"},[["style",["#eventlog",{display:"block","table-layout":"fixed","border-collapse":"collapse","font-family":"monospace","font-size":18,position:"absolute","top, left":4,width:(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-22,"z-index":"10000",border:"solid 4px #4488DD"},["th, td",{"padding-left, padding-right":10,"border-bottom, border-right":"solid 1px black","word-wrap":"break-word","max-width":(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/4}]]],["tr",v.go(["#","ms","type","id","from","verb","path","args"],function(e){return["th",{style:p.css.style({"background-color":"#efefef"})},e]})],v.go(j.log,function(e){var n;if(t===undefined||JSON.stringify(e).match(new RegExp(t,"i")))return n="E"!==e.id[0]&&e.from&&e.from.match(/^E\d+$/)?e.id+"/"+e.from:undefined,r[n||e.id]=i++,["tr",{style:p.css.style({"background-color":{0:"#fcfcfc",1:"#efefef"}[(i-1)%2]}),"class":"E"===e.id[0]?"evlog-ev":"evlog-resp"},v.go(["#"+i,e.t-j.t,e.id.match(/^E\d+$/)?"event":"responder",e.id,e.from,e.verb,e.path.join(":"),v.go(e.args,function(e){return e=j.str(e,!0),t=300,e.length,:]+)$/))return j.error("B.mount","Target must be either 'body' or an id selector, but instead is:",e);var n="body"===e?document.body:document.getElementById(e.replace(/.*#/g,""));if(!j.prod){if(!n)return j.error("B.mount","Target not found:",e);if("function"!==l(t))return j.error("B.mount","fun must be a function but instead is",t,"with type",l(t))}n=t();if(!j.prod){t=j.validateLith(n);if("Lith"!==t&&"Lithbag"!==t)return j.error("B.mount","fun returned invalid lith or lithbag",t.error)}a.place(e,"beforeEnd",p.g(n,!0))},j.unmount=function(e){var t;return!j.prod&&"string"!==l(e)||!e.match(/^(body|[a-z0-9]*#[^\s\[>,:]+)$/)?j.error("B.unmount","Target must be either 'body' or an id selector, but instead is "+e):(t="body"===e?document.body:document.getElementById(e.replace(/.*#/g,"")),j.prod||t?(a({selector:"*",from:t},function(e){e.id&&e.id.match(/^в[0-9a-f]+$/g)&&j.responders[e.id]&&j.forget(e.id)}),void(t.innerHTML="")):j.error("B.unmount","Target not found:",e))},j.view=function(o,i){var a,u,s="array"!==l(o)?[[o]]:"array"!==l(o[0])?[o]:o;return!(!j.prod&&c.stop("B.view",[v.stopNot(s,!1,function(e){return!!d.isPath(e)||j.error("B.view","Invalid path:",e)}),function(){return["fun",i,"function"]}],function(e){j.error("B.view","Validation error:",e,"Path:",o)},!1))&&(a=j.B+j.internal.count++,u=function(){var e=j.internal.count,t=[],n=i.apply(null,v.go(s,j.get)),r=j.prod?"Lith":j.validateLith(n);if("Lith"!==r)return j.error("B.view","View function at path",o,"must return a lith element but instead returned"+(r.error?" an invalid lith: ":" a lithbag")+(r.error||""));if(!j.prod&&"object"===l(n[1])&&n[1].id!==undefined)return j.error("B.view","View function at path",o,"must return a lith element without an id attribute but instead returned an element with id "+n[1].id);v.go(v.times(j.internal.count-e,e),function(e){e=j.responders[j.B+e];e.parent||(t.push(e.id),e.parent=a),e.priority=e.priority+j.responders[a].priority});r=v.obj("object"===l(n[1])?n[1]:{},{id:a,path:v.go(s,function(e){return e.join(":")||":"}).join(", ")},function(e,t){if(!w(["id","path"],t.toLowerCase()))return[t,e]}),n=n.slice();return"object"!==l(n[1])?n.splice(1,0,r):n[1]=r,j.responders[a].elem=n,j.responders[a].children=t,n},j.respond("change",[],{id:a,priority:-1,match:function(t){return v.stop(s,!0,function(e){return j.changeResponder(t,{verb:"change",path:e})})}},function(e){var t=j.responders[a].elem,n=j.responders[a].children,r=g();u()&&j.redraw(e,a,t,n,g()-r)}),u())},j.internal={count:1,timeout:200,queue:[],redrawing:!1},document.body.fireEvent&&!document.body.dispatchEvent&&(j.internal.oldIE=!0),!document.querySelectorAll&&j.internal.oldIE&&(j.internal.olderIE=!0),document.querySelectorAll||j.internal.oldIE||(j.internal.oldFF=!0),navigator.userAgent.match("Opera")&&(j.internal.oldOpera=!0),j.validateLith=function(e){var t=p.v(e,!0);return"Lith"!==t&&"Lithbag"!==t?t:"Lith"===t?"array"!==l(c.last(e))||"Lith"===(t="style"===e[0]?j.validateLitc(c.last(e)):j.validateLith(c.last(e)))||"Lithbag"===t||!0===t?"Lith":t:v.stopNot(e,undefined,function(e){return"array"===l(e)&&"Lith"!==(e=j.validateLith(e))&&"Lithbag"!==e?e:void 0})||"Lithbag"},j.validateLitc=function(e){var t=p.css.v(e,!0);return!0!==t?t:"array"===l(e[0])?v.stopNot(e,!0,j.validateLitc):"array"!==l(c.last(e))||j.validateLitc(c.last(e))},document.body.contains||(document.body.contains=function(e){for(;e=e.parentNode;)if(e===document.body)return!0;return!1}),j.redraw=function(e,t,n,r,o,i){if(j.internal.redrawing&&!i)return j.internal.queue.push([e,t,n,r,o]);j.internal.redrawing=!0;var i=j.responders[t],a=document.getElementById(t),u=g();if(!(j.prod||a&&document.body.contains(a)))return j.error(e,"B.redraw","Attempt to redraw dangling element.","Responder:",i);var n=[j.prediff(n),j.prediff(i.elem)],s=g(),n=j.diff(n[0],n[1]),c=g();if(v.go(r,function(e){j.forget(e)}),!1===n){var d=(a=document.getElementById(t)).parentNode,l=a.nextSibling,r=p.g(i.elem,!0);if(d.removeChild(a),l&&l.insertAdjacentHTML)l.insertAdjacentHTML("beforeBegin",r);else if(l&&!l.insertAdjacentHTML){var f=document.createElement("div");for(f.innerHTML=r;f.firstChild;)d.insertBefore(f.firstChild,l)}else d.insertAdjacentHTML("beforeEnd",r)}else{t=j.applyDiff(a,n);if(!j.prod&&t!==undefined)return j.error(e,"B.redraw","Redraw error: DOM element missing.",{diffIndex:t,diffElement:n[t],diff:n,responder:i.id})}j.call(e,"redraw",e.path,{responder:i.id,ms:{create:o,prediff:s-u,diff:c-s,DOM:g()-c,total:g()-u+o},diff:!1!==n&&{length:n.length,edits:n.edits}});r=v.stopNot(j.internal.queue,undefined,function(){var e=j.internal.queue.shift();if(j.responders[e[1]])return e});r?j.redraw.apply(null,r.concat(!0)):j.internal.redrawing=!1},j.prediff=function(e,t){if("array"!==l(e)||"LITERAL"===e[0])return e===undefined||""===e?void 0:"L"!==t[t.length-1].substr(0,1)?t.push("L "+p.g(e,!0)):t[t.length-1]+=p.g(e,!0);if(t=t||[],!w(p.k.tags,e[0]))return v.go(e,function(e){j.prediff(e,t)});e[1]&&e[1].id&&(e[1].id+"").match(/^в[0-9a-f]+$/g)&&t.length&&(e=j.responders[e[1].id].elem);var n,r,o="object"!==l(e[1])?undefined:v.obj(e[1],function(e,t){if(!w(["",null,!1,undefined],e))return[t,e]}),i=e[o?2:1];return t.push("O "+e[0]),o&&(t[t.length-1]+=" "+JSON.stringify(o)),o&&o.opaque?(o=t[t.length-1].length,t[t.length-1]="P "+o+t[t.length-1].slice(1)+" "+p.g(i,!0)):("style"===e[0]&&"array"===l(i)&&(i=p.css.g(i,!0)),"table"===e[0]&&(n=t.length),j.prediff(i,t),"table"===e[0]&&t[n]&&(t[n].match(/^O thead/)&&(r=0,v.stopNot(v.times(t.length-n,n),undefined,function(e){if("O"===t[e].substr(0,1)&&r++,"C"===t[e].substr(0,1)&&r--,0===r)return n=e+1})),t[n]&&!t[n].match(/^O tbody/)&&(t.splice(n,0,"O tbody"),t.push("C tbody")),j.internal.olderIE)&&!t[n]&&t.splice(n,0,"O tbody","C tbody"),j.internal.olderIE&&"table"===e[0]&&!t[n]&&t.splice(n,0,"O tbody","C tbody"),t.push("C "+e[0])),t},j.applyDiff=function(r,a){var o,u=[],s=[],i={},c=r.parentNode,d=r.nextSibling,l=[r,null],f=[],e=v.stopNot(a,undefined,function(e,t){if("C"===e[1].substr(0,1))"rem"!==e[0]&&(f.pop(),f[f.length-1]++),"add"!==e[0]&&l.pop();else if("rem"!==e[0]&&(s[t]=f.slice(),"O"===e[1].substr(0,1)?(i[s[t].join(",")]=t,f.push(0)):f[f.length-1]++),"add"!==e[0]){var n=0===t?r:l[l.length-1]?l[l.length-1].nextSibling:l[l.length-2].firstChild;if(!j.prod&&!n)return t;(u[t]=n)===document.activeElement&&(o=n),l[l.length-1]=n,"O"===e[1].substr(0,1)&&l.push(null)}});if(e!==undefined)return e;var p=function(e,t){return"tag"===t?e.match(/(O|P) [^\s]+/)[0].replace(/(O|P) /,""):e.match("{")?JSON.parse(e.replace(/[^{]+/,"")):{}},g=function(e,t){var n=0===e.length?c:u[i[e.slice(0,-1).join(",")]],r=n.children||n.childNodes;if(0===e.length){if(d&&d.previousSibling===t)return;if(!d&&r[r.length-1]===t)return}0j.internal.timeout)return!1;for(o=-s,n=u[u.length-1]||{1:0},u.push(r={});o<=s;){for(i=o===-s||o!==s&&n[o+1]>n[o-1]?n[o+1]:n[o-1]+1;iu[s-1][o-1]){for(o++;i>(0===s?0:u[s-1][o]);)a.unshift(["keep",e[i-1]]),i--;0u[s-1][o];)a.unshift(["keep",e[i]]),i--;a.unshift(["rem",e[i]])}s--}return a}o+=2}s++}})}();