/*
  Copyright © 2016 Adobe Systems Incorporated.  All rights reserved.
  Generated by Adobe RoboHelp 2015
*/
(function(){var a,b,c,d,rh;null==window.rh&&(window.rh={}),rh=window.rh,null==rh._&&(rh._={}),rh.util=rh._,a=rh._,c=Array.prototype.forEach,d=Object.keys,b=Object.prototype.hasOwnProperty,a.time=function(){return(new Date).getTime()},a.delay=function(a,b){var c,d;for(c=[],d=1;++d<arguments.length;)c.push(arguments[d]);return setTimeout(function(){return a.apply(null,c)},b)},a.defer=function(a){var b,c;for(b=[],c=0;++c<arguments.length;)b.push(arguments[c]);return this.delay.apply(this,[a,1].concat(b))},a.debounce=function(a,b,c){var d;return d=null,function(){var e,f,g,h,i,j;for(f=[],h=0,i=arguments.length;h<i;h++)e=arguments[h],f.push(e);return j=this,g=function(){return c||a.apply(j,f),d=null},d?clearTimeout(d):c&&a.apply(j,f),d=setTimeout(g,b||100)}},a.throttle=function(a,b){var c,d;return d=null,c=!1,function(){var e,f,g,h,i,j;for(f=[],h=0,i=arguments.length;h<i;h++)e=arguments[h],f.push(e);return j=this,g=function(){return c||a.apply(j,f),d=null},d?(clearTimeout(d),c=!1):(a.apply(j,f),c=!0),d=setTimeout(g,b||100)}},a.timeout=function(a,b){return function(){var c,d,e,f,g,h;for(d=[],f=0,g=arguments.length;f<g;f++)c=arguments[f],d.push(c);return h=this,e=function(){return a.apply(h,d)},setTimeout(e,b)}},a.toggleTimeout=function(b,c,d){return function(){var e,f,g,h,i,j;for(f=[],h=0,i=arguments.length;h<i;h++)e=arguments[h],f.push(e);return j=this,g=function(){return b.apply(j,f)},d?(rh._debug&&f.push(a.stackTrace()),setTimeout(g,c)):g(),d=!d}},a.has=function(a,c){return null!=a&&b.call(a,c)},a.keys=function(b){var c,e;if(e=[],!a.isObject(b))return e;if(d)return d(b);for(c in b)a.has(b,c)&&e.push(c);return e},a.any=function(b,c,d){var e,f,g,h;if(null==d&&(d=this),null==b)return!1;for(g=b.length!==+b.length&&a.keys(b),h=(g||b).length,e=0;;){if(e>=h)break;if(f=g?g[e]:e,c.call(d,b[f],f,b))return!0;e++}return!1},a.each=function(a,b,d){var e,f,g,h,i;if(null==d&&(d=this),null!=a){if(c===a.forEach)a.forEach(b,d);else if(a.length===+a.length)for(e=f=0,h=a.length;f<h;e=++f)i=a[e],b.call(d,i,e,a);else for(g in a)i=a[g],b.call(d,i,g,a);return a}},a.map=function(b,c,d){var e;return null==d&&(d=this),e=[],a.each(b,function(a,b,f){return e.push(c.call(d,a,b,f))}),e},a.reduce=function(b,c,d,e){return null==e&&(e=this),a.each(b,function(a,b){return d=c.call(e,d,a,b)}),d},a.find=function(b,c,d){var e;return null==d&&(d=this),e=void 0,a.any(b,function(a,b,f){if(c.call(d,a,b,f))return e=a,!0}),e},a.findIndex=function(b,c,d){var e;return null==d&&(d=this),e=-1,a.any(b,function(a,b,f){if(c.call(d,a,b,f))return e=b,!0}),e},a.findParentNode=function(a,b,c,d){var e;for(null==b&&(b=document),null==d&&(d=this),e=null;;){if(!a||a===b)break;if(c.call(d,a)){e=a;break}a=a.parentNode}return e},a.filter=function(b,c,d){var e;return null==d&&(d=this),e=[],a.each(b,function(a,b,f){if(c.call(d,a,b,f))return e.push(a)}),e},a.flatten=function(b){return a.reduce(b,function(a,b){return a.concat(b)},[])},a.unique=function(b,c,d){return null==d&&(d=this),c&&(b=a.map(b,c,d)),a.filter(b,function(a,c){return b.indexOf(a)===c})},a.union=function(b,c,d){return null==d&&(d=this),c&&(b=a.map(b,c,d)),a.unique(a.flatten(b))},a.count=function(b,c,d){var e;return null==d&&(d=this),e=0,a.each(b,function(a,b,f){if(c.call(d,a,b,f))return e++}),e},a.extend=function(b,c,d){return c&&a.each(c,function(a,c){return b[c]=a}),d&&a.each(d,function(a,c){return b[c]=a}),b},a.clone=function(b){return a.isObject(b)?a.reduce(b,function(b,c,d){return b[d]=a.clone(c),b},{}):b},a.compact=function(b){return a.filter(b,function(a){return a})},a.compactObject=function(b){return null==b&&(b={}),a.reduce(b,function(b,c,d){return null!=c&&(a.isObject(c)?(c=a.compactObject(c),a.isEmptyObject(c)||(b[d]=c)):b[d]=c),b},{})},a.isString=function(a){return"string"==typeof a},a.isFunction=function(a){return"function"==typeof a},a.isObject=function(a){return null!==a&&"object"==typeof a},a.isDefined=function(a){return null!==a&&void 0!==a},a.isEmptyString=function(a){return 0===a.length},a.isUsefulString=function(b){return a.isDefined(b)&&!a.isEmptyString(b)},a.isEmptyObject=function(a){return 0===Object.keys(a).length},a.isEqual=function(b,c){if(typeof b!=typeof c)return!1;if(!a.isDefined(b)||!a.isDefined(c))return b===c;switch(typeof b){case"object":return a.isEqualObject(b,c);case"array":return!a.any(b,function(b,d){return!a.isEqual(b,c[d])});default:return b===c}},a.isEqualObject=function(b,c){var d,e;return d=a.filter(a.keys(b),function(a){return void 0!==b[a]}),e=a.filter(a.keys(c),function(a){return void 0!==c[a]}),d.length===e.length&&!a.any(d,function(d){return!a.isEqual(b[d],c[d])})},a.isZeroCSSValue=function(a){return"0"===a||"0px"===a||"0em"===a||"0%"===a},function(){var b;try{localStorage.setItem("testLocalDB",!0),b=null!=localStorage.getItem("testLocalDB"),localStorage.removeItem("testLocalDB")}catch(c){b=!1}return a.canUseLocalDB=function(){return b}}(),a.isIframe=function(){return parent!==window},a.loadScript=function(a,b,c,d){var e;return null==b&&(b=!0),null==d&&(d=!1),e=document.createElement("script"),e.type="text/javascript",e.async=b===!0,e.src=a,null!==c&&(e.onerror=e.onload=function(a){return d&&document.body.removeChild(e),c.apply(null,a)}),document.body.appendChild(e)},function(){var b;return b=function(){return Math.floor(65536*(1+Math.random())).toString(32).substring(1)},a.uniqueId=function(){return a.time().toString(32)+"_"+b()+b()+b()}}(),a.one=function(a){return function(){var b;if("function"==typeof a)return b=a,a=null,b.apply(this,arguments)}},a.cache=function(a,b){return null==b&&(b={}),function(c,d){return 1===arguments.length?b[c]:!a||a(d)?b[c]=d:void 0}},a.memoize=function(b,c){return null==c&&(c={}),function(){var d,e,f,g,h;for(f=0,h=arguments.length;f<h;f++)d=arguments[f],g=a.isString(d)?d:JSON.stringify(d),e=null!=e?e+", "+g:g;return e in c?c[e]:c[e]=b.apply(this,arguments)}},a.memoizeAsync=function(a,b){return null==b&&(b={}),function(){var c,d,e,f,g,h;for(d=[],g=0,h=arguments.length;g<h;g++)c=arguments[g],d.push(c);return d.length>1&&(e=d.pop()),f=d.join(", "),f in b?"function"==typeof e?e(b[f]):void 0:(d.push(function(a){return b[f]=a,"function"==typeof e?e(a):void 0}),a.apply(this,d))}},a.require=a.memoizeAsync(function(b,c){return a.loadScript(b,!0,function(){return c(a.exports())})}),function(){var b;return b=void 0,a.exports=function(a){var c;return c=b,b=null!=a?a:void 0,c}}()}).call(this),function(){var a,b,c,d;a=window.rh._,b=window.rh.consts,a.mapToEncodedString=function(b,c,d){return null==c&&(c="&"),null==d&&(d="="),a.reduce(b,function(a,b,e){return null!=b&&(a.length>0&&(a+=c),a+=""+e+d+encodeURIComponent(b)),a},"")},a.encodedStringToMap=function(b,c,d){var e;return null==c&&(c="&"),null==d&&(d="="),e=a.explodeAndMap(b,c,d,{"default":""}),a.each(e,function(a,b){return e[b]=decodeURIComponent(a)}),e},a.urlParams=function(b){return null==b&&(b=location.search.substring(1)),a.encodedStringToMap(b)},a.urlParam=function(b,c){return null==c&&(c=location.search.substring(1)),b&&a.urlParams(c)[b]},a.hashParams=function(b){return null==b&&(b=location.hash.substring(1)),a.encodedStringToMap(b)},a.hashParam=function(b){return b&&a.hashParams()[b]},a.updateHashMap=function(b,c){var d,e;return e=a.extend({},a.hashParams(),b),d=a.mapToEncodedString(e),d.length>0&&(d="#"+d),c?location.hash=d:""!==d&&location.hash!==d?location.replace(d):void 0},a.queueUpdateHashMap=function(b,c){return a.defer(function(){return a.updateHashMap(b,c)})},a.stripStringBetween=function(a,b,c){var d,e,f;return f=a.indexOf(b),f!==-1&&(d=a.indexOf(c),d<f&&(d=a.length),e=""+a.substring(0,f)+a.substring(d,a.length)),e||a},a.stripParam=function(b){return null==b&&(b=document.location.href),a.stripStringBetween(b,"?","#")},a.stripBookmark=function(b){return null==b&&(b=document.location.href),a.stripStringBetween(b,"#","?")},a.extractStringBetween=function(a,b,c){var d,e,f;return e=a.indexOf(b),e!==-1&&(d=a.indexOf(c),d<e&&(d=a.length),f=a.substring(e+1,d)),f||""},a.extractParamString=function(b){return null==b&&(b=document.location.href),a.extractStringBetween(b,"?","#")},a.extractHashString=function(b){return null==b&&(b=document.location.href),a.extractStringBetween(b,"#","?")},a.traverseToPath=function(a,b){return""},d=function(a,b,c){switch(null==c&&(c="/"),b){case".":return a;case"..":return a.substring(0,a.lastIndexOf(c));default:return a+c+b}},a.traverseByPath=function(a,b,c){var e,f,g,h;for(null==c&&(c="/"),a=a.substring(0,a.lastIndexOf(c)),h=b.split(c),e=0,f=h.length;e<f;e++)g=h[e],g.length>0&&(a=d(a,g,c));return a+c},a.scheme=function(a){var b,c;return b=a.indexOf(":"),b!==-1&&(c=a.substring(0,b+1).toLowerCase().trim()),c},a.protocol=function(a){var b,c,d;return b=a.trim().indexOf(":"),b!==-1&&(d=a.substring(0,b+1).toLowerCase()),d&&(c=d.match(/^[a-z]+:/),c&&c[0].length===d.length||(d=void 0)),d},a.isInternal=function(a){return 0!==a.indexOf("//")&&0!==a.indexOf("/&#47;")&&0!==a.indexOf("&#47;/")&&0!==a.indexOf("&#47;&#47;")},a.isJavaScriptUrl=function(b){return"javascript:"===a.scheme(b)},a.isRelativeUrl=function(b){return!a.scheme(b)&&b.trim().indexOf("/")},a.isValidFileUrl=function(b){var c;return"#"!==b[0]&&(c=a.scheme(b),!c||["http:","https:","ftp:","file:"].indexOf(c)!==-1)},a.makeRelativeUrl=function(b,c){var d,e,f;return null==c&&(c=decodeURI(document.location.href)),b===c?"":(d=a.filePath(b),e=a.filePath(c),f=a.makeRelativePath(d,e),""+f+b.substring(d.length))},a.makeRelativePath=function(b,c){var d,e,f,g,h,i;if(null==c&&(c=a.filePath()),!b||a.isRelativeUrl(b)||a.isRelativeUrl(c))h=b;else{for(i=b.split("/"),d=c.split("/"),f=0;;){if(i.length===f||d.length===f)break;if(i[f]!==d[f])break;f++}for(g=i.slice(f),h="",e=d.length-f-1;;){if(e<=0)break;h+="../",e--}h+=g.join("/")}return h},a.makeFullUrl=function(b,c){return null==c&&(c=rh._.parentPath()),a.isRelativeUrl(b)?window._getFullPath(c,b):b},a.isLocal=function(){return"file:"===window.location.protocol},a.isRemote=function(){return"file:"!==window.location.protocol},c=null,a.isSameOrigin=function(b){var d;return!!a.isLocal()||(d=window.location,null==c&&(c=d.origin),null==c&&(c=d.protocol+"//"+d.hostname,d.port&&(c+=":"+d.port)),c===b)},a.filePath=function(a){var b;return null==a&&(a=decodeURI(document.location.href)),b=a.indexOf("?"),b!==-1&&(a=a.substring(0,b)),b=a.indexOf("#"),b!==-1&&(a=a.substring(0,b)),a},a.parentPath=function(b){var c;return null==b&&(b=a.filePath()),c=b.lastIndexOf("/"),c!==-1&&(b=b.substring(0,c+1)),b},a.getFileName=function(b){var c,d,e;return d=a.filePath(b),e=d.lastIndexOf("/"),c=e!==-1?d.substring(e+1):d,c||""},a.getFileExtention=function(b){var c,d,e;return d=a.getFileName(b),e=null!=d?d.lastIndexOf("."):void 0,e!==-1&&(c=d.substring(e)),c||""}}.call(this),function(){var a,b,c,d;a=window.rh._,b=/\#{([^}]*)\}/g,d=/\$([_a-zA-Z][_a-zA-Z0-9]*)/g,c=/\B\/([^\/]*)\//g,a.toRegExp=function(b){var d,e,f,g,h;return b&&a.isString(b)?(f=b.match(c),e=f&&f[0],e&&(g=e.substring(1,e.length-1),d=b.substring(e.length),h=new RegExp(g,d)),h||b):b},a.splitAndTrim=function(b,c){return null==b&&(b=""),a.map(b.split(c),function(a){return a.trim()})},a.explodeAndMap=function(a,b,c,d){var e,f,g,h,i,j,k,l,m;for(null==a&&(a=" "),null==d&&(d={}),j=a.split(b),l=new RegExp(c+"(.+)?"),h={},e=0,g=j.length;e<g;e++)k=j[e],i=k.split(l),f=i[0].trim(),m=i[1],d.caseInsensitive&&(f=f.toLowerCase()),d.trim&&(m=m&&m.trim()),null!=d["default"]&&null==m&&(m=d["default"]),""!==f&&(h[f]=m);return h},a.resolveNamedVar=function(a){var b,c,e,f;if(f=a.match(d))for(b=0,c=f.length;b<c;b++)e=f[b],a=a.replace(e,"this.user_vars."+e.substring(1));return a},a.resolveEnclosedVar=function(a,c,d){var e,f,g,h,i,j;if(null==d&&(d=this),h=a.match(b))for(e=0,f=h.length;e<f;e++)g=h[e],i=g.substring(2,g.length-1).trim(),j=c.call(d,i),a=a.replace(g,null!=j?j:"");return a},a.resolveAttr=function(b){return a.reduce(a.explodeAndMap(b,";",":"),function(b,c,d){return a.each(d.split(","),function(a){return b[a.trim()]=c}),b},{})},a.resolveNiceJSON=function(a){return null==a&&(a=""),a=a.trim(),a?"{"===a[0]?JSON.parse(a):(a=a.replace(/'/g,'"'),a="{"+a+"}",JSON.parse(a.replace(/(\{|,)\s*(.+?)\s*:/g,'$1 "$2":'))):{}},a.resolvePipedExpression=function(b){var c;return null==b&&(b=""),c=!1,a.reduce(b.split("|"),function(a,b){var d;return c&&a.length>0&&(d=a[a.length-1]+" ||"+b,a.length=a.length-1),c=0===b.length,d&&(b=d),0!==b.length&&a.push(b.trim()),a},[])},a.resolveLoopExpr=function(b){var c,d;return c=b.split(":"),c.length>1?(d=a.splitAndTrim(c.shift(),","),{expr:c[0],index:d[0],item:d[1]}):{expr:c[0]}},a.resolveWidgetArgs=function(b){var c;return c=b.split(";"),a.map(c,function(b){var c,d,e,f,g;return d=a.resolvePipedExpression(b),c=d.shift()||"",c=c.split(/:(.+)?/),g=c[0].trim(),e=b.substring(g.length).trim(),":"===e[0]&&(e=e.substring(1)),(f=c[1])&&(f=-1!==f.search(":")?a.explodeAndMap(f,",",":",{trim:!0}):{arg:f}),{wName:g,wArg:f,pipedArgs:d,rawArg:e}})},a.resolveExprOptions=function(b){var c,d;return d=a.resolvePipedExpression(b),d[1]&&(c=a.resolveNiceJSON(d[1])),{expr:d[0],opts:c}},a.resolveInputKeys=function(b){var c,d,e;return e=a.resolvePipedExpression(b),e[1]&&(d=a.resolveNiceJSON(e[1])),c=a.explodeAndMap(e[0],",",":",{trim:!0}),{keys:c,opts:d}},a.applyCallbackOptions=function(b,c){var d;return d=b,c&&c.debounce&&(d=a.debounce(d,c.debounce)),c&&c.toggleTimeout&&(d=a.toggleTimeout(d,c.toggleTimeout)),c&&c.timeout&&(d=a.timeout(d,c.timeout)),c&&c.defer&&(d=a.timeout(d,1)),d},a.parseInt=function(a,b,c){return null==c&&(c=10),null!=a&&""!==a?parseInt(a,c):null!=b?b:a}}.call(this),function(){var a;a=window.rh._,a.stackTrace=function(){var a;return a=new Error,a.stack},a.safeExec=function(a){return function(){var b,c;try{return a.apply(this,arguments)}catch(c){return b=c,void(rh._debug&&rh._d("error","Function: "+a,b.message))}}}}.call(this),function(){var a;a=window.rh._,a.addEventListener=function(a,b,c){return null==a&&(a=window),null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):void 0},a.removeEventListener=function(a,b,c){return null==a&&(a=window),null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):void 0},a.isTouchEnabled=function(){return"ontouchstart"in document.documentElement},a.preventDefault=function(a){return null!=a.preventDefault?a.preventDefault():a.returnValue=!1},a.mouseButton=function(a){return"buttons"in a?a.buttons:"which"in a?a.which:a.button},a.initMouseMove=function(){var b;return b=!1,function(){if(!b)return b=!0,a.addEventListener(document,"mousemove",function(b){var c;if(!b.defaultPrevented&&(c={x:b.clientX,y:b.clientY,which:a.mouseButton(b)},rh.model.publish(rh.consts("EVT_MOUSEMOVE"),c,{sync:!0}),c.defaultPrevented))return a.preventDefault(b)})}}(),a.initTouchEvent=function(){var b;return b=!1,function(){var c,d,e,f,g;if(!b&&a.isTouchEnabled())return b=!0,e=g=d=f=0,c=a.debounce(function(){var a,b;return a=Math.atan((g-f)/(e-d)),b=e>d?a>Math.PI/4?"down":a<-Math.PI/4?"up":"right":a>Math.PI/4?"up":a<-Math.PI/4?"down":"left",rh.model.publish(".touchmove",{x:d,y:f,x1:e,y1:g}),rh.model.publish(rh.consts("EVT_SWIPE_DIR"),b,{sync:!0}),rh.model.publish(rh.consts("EVT_SWIPE_DIR"),null),d=f=0},200),a.addEventListener(document,"touchmove",function(b){var h,i;return e=(null!=(h=b.touches[0])?h.pageX:void 0)||0,g=(null!=(i=b.touches[0])?i.pageY:void 0)||0,0===d&&0===f&&(d=e,f=g),c(),a.preventDefault(b)})}}()}.call(this),function(){var a,b,c,d;a=window.rh._,d=/(^|[^\\])@([\w\.]*)\((.*)\)/,b=/(^|[^\\])@([\w\.]*)/,c=/@([A-Z][_A-Z0-9]*)/,a.resolvePublish=function(a){var b,c;for(c=new RegExp(d);;){if(b=c.exec(a),!b)break;a=a.replace(b[0],b[1]+" this.publish('"+b[2]+"', "+b[3]+")")}return a},a.resolveGet=function(a,c){var d,e;for(e=new RegExp(b);;){if(d=e.exec(a),!d)break;c&&-1===c.indexOf(d[2])&&c.push(d[2]),a=a.replace(d[0],d[1]+" this.get('"+d[2]+"')")}return a},a.resolveModelConst=function(a){var b,d,e,f,g;for(g="",f=new RegExp(c);;){if(e=f.exec(a),!e)break;d=rh.consts(e[1]),null!=d?a=a.replace(e[0],"@"+d):(b=e.index+e[1].length+1,g+=a.substring(0,b),a=a.substring(b))}return g+a},a.resolveModelKeys=function(a,b){return this.resolveGet(this.resolvePublish(this.resolveModelConst(a)),b)},a.isValidModelKey=function(a){var b;return"true"!==a&&"false"!==a&&(b=a.match(/[._a-zA-Z][._a-zA-Z0-9 ]*/),b&&b[0]===a)},a.isValidModelConstKey=function(a){var b;return b=a.match(/[A-Z][_A-Z0-9]*/),b&&b[0]===a},a.get=function(a,b){var c,d,e,f,g,h;for(f=b.split("."),d=c=0,g=f.length;c<g;d=++c)if(e=f[d],0===d)h=a[e];else{if(!h)break;h=h[e]}return h},a.isScreenAttached=function(a){return!0===rh.model.get(rh.consts("KEY_SCREEN")+"."+a+".attached")},a.parentKey=function(a){var b;return b=a.split("."),b.pop(),b.join(".")},a.lastKey=function(a){var b;return b=a.split("."),b[b.length-1]},a.splitKey=function(a){var b,c,d;return c=a.split("."),b=c.pop(),d=c.join("."),{key:b,parentKey:d}}}.call(this),function(){var a;a=window.rh._,a.hasNonAsciiChar=function(b){return null==b&&(b=""),a.any(b,function(a){return a.charCodeAt(0)>127})}}.call(this),function(){var a,b,rh;rh=window.rh,a=rh._,rh._params=a.urlParams(),rh._debugFilter=a.toRegExp(rh._params.rh_debug),rh._debug=null!=rh._debugFilter,rh._testFilter=a.toRegExp(rh._params.rh_test),rh._test=null!=rh._testFilter,rh._errorFilter=a.toRegExp(rh._params.rh_error),rh._error=null!=rh._errorFilter,rh._breakFilter=a.toRegExp(rh._params.rh_break),rh._break=null!=rh._breakFilter,b=function(a,b){return a.join(" ").match(b)},rh._d=function(){var c,d,e,f,g;if(d=window.console,rh._debug&&d&&a.isFunction(d.log)){for(c=[],f=-1;++f<arguments.length;)c.push(arguments[f]);if(["info","log","warn","debug","error"].indexOf(c[0])>-1?(e=d[c[0]],c=c.slice(1)):e=d.debug,g=["[ "+c[0]+" ]:"].concat(c.slice(1)),""===rh._debugFilter||b(g,rh._debugFilter))return rh._break&&b(g,rh._breakFilter)?Function("","debugger")():rh._error&&b(g,rh._errorFilter)?d.error.apply(d,g):e.apply(d,g)}}}.call(this),function(){var a,b,rh;rh=window.rh,a={},rh.consts=b=function(b,c){return 1===arguments.length?(rh._debug&&(b in a||rh._d("error","consts",b+" is not available")),a[b]):b in a?rh._debug?rh._d("error","consts",b+" is already registered"):void 0:a[b]=c},b("KEY_TEMP_DATA",".temp.data"),b("KEY_SHARED_INPUT","._sharedkeys.input"),b("KEY_SHARED_OUTPUT","._sharedkeys.output"),b("KEY_IFRAME_EVENTS",".l.iframe_events"),b("KEY_SCREEN",".l.screen"),b("KEY_DEFAULT_SCREEN",".l.default_screen"),b("KEY_SCREEN_NAMES",".l.screen_names"),b("KEY_SCREEN_DESKTOP",b("KEY_SCREEN")+".desktop.attached"),b("KEY_SCREEN_TABLET",b("KEY_SCREEN")+".tablet.attached"),b("KEY_SCREEN_TABLET_PORTRAIT",b("KEY_SCREEN")+".tablet_portrait.attached"),b("KEY_SCREEN_PHONE",b("KEY_SCREEN")+".phone.attached"),b("KEY_SCREEN_IOS",b("KEY_SCREEN")+".ios.attached"),b("KEY_SCREEN_IPAD",b("KEY_SCREEN")+".ipad.attached"),b("KEY_SCREEN_PRINT",b("KEY_SCREEN")+".print.attached"),b("EVT_ORIENTATION_CHANGE",".e.orientationchange"),b("EVT_HASH_CHANGE",".e.hashchange"),b("EVT_WIDGET_BEFORELOAD",".e.widget_beforeload"),b("EVT_WIDGET_LOADED",".e.widget_loaded"),b("EVT_BEFORE_UNLOAD",".e.before_unload"),b("EVT_UNLOAD",".e.unload"),b("EVT_MOUSEMOVE",".e.mousemove"),b("EVT_SWIPE_DIR",".e.swipe_dir"),b("EVT_FAST_CLICK",".e.fast_click"),b("EVT_CLICK_INSIDE_IFRAME",".e.click_inside_iframe"),b("EVT_SCROLL_INSIDE_IFRAME",".e.scroll_inside_iframe"),b("EVT_INSIDE_IFRAME_DOM_CONTENTLOADED","e.inside_iframe_dom_contentloaded"),b("RHMAPNO","rhmapno"),b("TOPIC_FILE","topic.htm"),b("HOME_PAGE","index.htm")}.call(this),function(){var a,b,rh;rh=window.rh,b=rh._,a=rh.$=function(a,b){var c;return null!=b&&0===b?document.querySelector(a):(c=document.querySelectorAll(a),null!=b&&b<c.length?c[b]:c)},a.find=function(){var a,b;return arguments.length>1?(a=arguments[0],b=arguments[1]):(a=document,b=arguments[0]),a.querySelectorAll(b)},a.traverseNode=function(b,c,d,e,f){return null==f&&(f=window),c&&c.call(f,b)&&(a.eachChildNode(b,function(b){if(!e||e.call(f,b))return a.traverseNode(b,c,d,e,f)}),d&&d.call(f,b)),b},a.eachChildNode=function(a,b,c){var d,e,f,g;for(null==c&&(c=window),g=a.children,e=0,f=g.length;e<f;e++)d=g[e],b.call(c,d)},a.eachChild=function(a,b,c,d){var e,f,g,h;for(null==d&&(d=window),h=this.find(a,b),e=0,f=h.length;e<f;e++)g=h[e],c.call(d,g)},a.eachDataNode=function(b,c,d,e){var f,g,h,i;for(null==e&&(e=window),i=this.find(b,"[data-"+c+"]"),f=0,g=i.length;f<g;f++)h=i[f],d.call(e,h,a.dataset(h,c))},a.eachAttributes=function(a,b,c){var d,e,f,g;for(g=function(){var b,c,e,f;for(e=a.attributes,f=[],b=0,c=e.length;b<c;b++)d=e[b],f.push([d.specified,d.name,d.value]);return f}(),e=-1;++e<g.length;)f=g[e],f[0]!==!1&&b.call(c||window,f[1],f[2],g)},a.getAttribute=function(a,b){if(null!=a.getAttribute)return a.getAttribute(b)},a.setAttribute=function(a,b,c){if(null!=a.setAttribute)return a.setAttribute(b,c)},a.removeAttribute=function(a,b){if(null!=a.removeAttribute)return a.removeAttribute(b)},a.hasAttribute=function(a,b){return null!=a.hasAttribute&&a.hasAttribute(b)},a.dataset=function(b,c,d){return 3===arguments.length?null!==d?a.setAttribute(b,"data-"+c,d):a.removeAttribute(b,"data-"+c):a.getAttribute(b,"data-"+c)},a.isDescendent=function(a,b){var c;for(c=b.parentNode;;){if(!c||c===a)break;c=c.parentNode}return c===a},a.addClass=function(a,b){return null!=a.classList?a.classList.add(b):a.className=a.className+" "+b},a.removeClass=function(a,b){return null!=a.classList?a.classList.remove(b):a.className=a.className.replace(b,"")},a.hasClass=function(a,b){return null!=a.classList?a.classList.contains(b):a.className?null!==a.className.match(new RegExp(b+"($| )")):void 0},a.toggleClass=function(b,c){return a.hasClass(b,c)?a.removeClass(b,c):a.addClass(b,c)},a.computedStyle=function(a){return a.currentStyle||window.getComputedStyle(a,null)},a.isVisibleNode=function(c){var d;return d=a.computedStyle(c),"none"!==d.display&&!b.isZeroCSSValue(d.opacity)&&!b.isZeroCSSValue(d["max-height"])},a.textContent=function(a,b){return 2===arguments.length?null!=a.textContent?a.textContent=b:a.innerText=b:a.textContent||a.innerText},a.innerHTML=function(a,b){return 2===arguments.length?a.innerHTML=b:a.innerHTML},a.css=function(a,b,c){return 3===arguments.length?a.style[b]=c:a.style[b]},a.nodeName=function(a){return a.nodeName},a.pageHeight=function(){var a,b,c,d;return c=document.documentElement,c&&(d=c.scrollHeight||c.clientHeight||c.offsetHeight),d||(d=window.innerHeight),a=document.body,b=a.scrollHeight||a.clientHeight||a.offsetHeight,d=Math.max(d,b),d+"px"},a.createElement=function(a,b){var c;return c=document.createElement(a),c.innerHTML=b,c}}.call(this),function(){var a,b,c,d,e,rh,f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;rh=window.rh,d=rh._,e=rh.consts,a=function(){function a(a,b){this.subscribers=null!=a?a:[],this.children=null!=b?b:{}}return a.prototype.getSubscribers=function(a,b,c,d){var e,f,g;return a.length>1?(d.push({fnsInfo:this.subscribers,key:b,value:c}),f=a[1],(e=this.children[f])&&(g=b+"."+f,e.getSubscribers(a.slice(1),g,null!=c?c[f]:void 0,d))):a.length>0&&this._getAllChildSubscribers(b,c,d),d},a.prototype.addSubscribers=function(b,c,d){var e,f;return 1===c.length?this.subscribers.push([b,d]):c.length>1?(f=c[1],null==(e=this.children)[f]&&(e[f]=new a),this.children[f].addSubscribers(b,c.slice(1),d)):void 0},a.prototype.removeSubscriber=function(a,b){return 1===b.length?this._deleteSubscriber(a):b.length>1?this.children[b[1]].removeSubscriber(a,b.slice(1)):void 0},a.prototype._deleteSubscriber=function(a){var b;return b=d.findIndex(this.subscribers,function(b){return b[0]===a}),null!=b&&b!==-1?this.subscribers.splice(b,1):rh._debug?rh._d("error","_unsubscribe",this+".{key} is not subscribed with "+a):void 0},a.prototype._getAllChildSubscribers=function(a,b,c){var d,e,f;if(c.push({fnsInfo:this.subscribers,key:a,value:b}),this.children){null==b&&(b={}),f=this.children;for(e in f)d=f[e],d._getAllChildSubscribers(a+"."+e,b[e],c)}return c},a}(),c=function(b){function c(a,b,d){this.subscribers=a,this.children=b,this.data=null!=d?d:{},c.__super__.constructor.call(this,this.subscribers,this.childs)}return f(c,b),c.prototype.getSubscribers=function(a){var b,c;return c=a[0],b=this.children[c],b?b.getSubscribers(a,""+a[0],this.data[a[0]],[]):[]},c.prototype.addSubscribers=function(b,c,d){var e,f;return f=c[0],null==(e=this.children)[f]&&(e[f]=new a),this.children[f].addSubscribers(b,c,d)},c.prototype.removeSubscriber=function(a,b){var c,d;return c=b[0],null!=(d=this.children[c])?d.removeSubscriber(a,b):void 0},c.prototype.getData=function(a){var b,c,e,f,g,h;for(b=this.data,e=c=0,g=a.length;c<g&&(f=a[e],d.isDefined(b));e=++c)e===a.length-1?h=b[f]:b=b[f];return h},c.prototype.setData=function(a,b){var c,e,f,g,h;for(c=this.data,f=e=0,h=a.length;e<h;f=++e)g=a[f],f===a.length-1?c[g]=b:(d.isDefined(c[g])||(c[g]={}),c=c[g])},c}(a),b=function(){function a(){this._rootNode=new c,this._count=b,b+=1}var b;return b=0,a.prototype.toString=function(){return"Model_"+this._count},a.prototype.get=function(a){var b;return this._isForGlobal(a)?rh.model.get(a):(d.isString(a)?b=this._rootNode.getData(this._getKeys(a)):rh._d("error","Get",this+"."+a+" is not a string"),rh._debug&&rh._d("log","Get",this+"."+a+": "+JSON.stringify(b)),b)},a.prototype.cget=function(a){return this.get(e(a))},a.prototype.publish=function(a,b,c){var e,f,g;return null==c&&(c={}),this._isForGlobal(a)?rh.model.publish(a,b,c):(rh._debug&&rh._d("log","Publish",this+"."+a+": "+JSON.stringify(b)),void(d.isString(a)?(this._rootNode.setData(this._getKeys(a),b),g=this._rootNode.getSubscribers(this._getKeys(a)),f="."===a[0]?a.length-1:a.length,e=d.map(g,function(a){var b;return b=d.filter(a.fnsInfo,function(b){return d.isDefined(b[0])&&(b[1].partial!==!1||a.key.length>=f)}),{key:a.key,value:a.value,fns:d.map(b,function(a){return a[0]})}}),d.each(e,function(a){return function(b){return d.each(b.fns,function(d){var e;return rh._debug&&rh._d("log","Publish call",a+"."+b.key+": "+JSON.stringify(b.value)),e=function(){return a._unsubscribe(b.key,d)},c.sync?d(b.value,b.key,e):rh._.defer(d,b.value,b.key,e)})}}(this))):rh._d("error","Publish",this+"."+a+" is not a string")))},a.prototype.cpublish=function(a,b,c){return this.publish(e(a),b,c)},a.prototype.isSubscribed=function(a){var b,c,d,e,f;if(this._isForGlobal(a))return rh.model.isSubscribed(a);for("."===a[0]&&(a=a.substring(1)),f=this._rootNode.getSubscribers(this._getKeys(a)),c=0,d=f.length;c<d;c++)e=f[c],e.key===a&&(b=!0);return b===!0},a.prototype.cisSubscribed=function(a){return this.isSubscribed(e(a))},a.prototype.subscribeOnce=function(a,b,c){var e;return null==c&&(c={}),e=d.isString(a)?[a]:a,this._subscribe(e.splice(0,1)[0],function(a){return function(d,f,g){return 0===e.length?b(d,f):a.subscribeOnce(e,b,c),g()}}(this),c)},a.prototype.csubscribeOnce=function(a,b,c){return this.subscribeOnce(e(a),b,c)},a.prototype.subscribe=function(a,b,c){var e;return null==c&&(c={}),d.isString(a)?this._subscribe(a,b,c):(e=d.map(a,function(a){return function(d){return a._subscribe(d,b,c)}}(this)),function(){return d.each(e,function(a){return a()})})},a.prototype.csubscribe=function(a,b,c){return this.subscribe(e(a),b,c)},a.prototype._subscribe=function(a,b,c){var d,e;return null==c&&(c={}),this._isForGlobal(a)?rh.model.subscribe(a,b,c):(rh._debug&&rh._d("log","Subscribe",this+"."+a),this._rootNode.addSubscribers(b,this._getKeys(a),c),e=this._rootNode.getData(this._getKeys(a)),d=function(c){return function(){return c._unsubscribe(a,b)}}(this),(c.forceInit||null!=e&&!c.initDone)&&b(e,a,d),d)},a.prototype._unsubscribe=function(a,b){return this._isForGlobal(a)?rh.model._unsubscribe(a):(rh._debug&&rh._d("log","_Unsubscribe",this+"."+a),this._rootNode.removeSubscriber(b,this._getKeys(a)))},a.prototype.isGlobal=function(){return this===rh.model},a.prototype.isGlobalKey=function(a){return a&&"."===a[0]},a.prototype._isForGlobal=function(a){return!this.isGlobal()&&this.isGlobalKey(a)},a.prototype._getKeys=function(a){var b;return b=a.split("."),""===b[0]&&(b=b.slice(1)),rh._debug&&0===b.length&&rh._d("error","Model",this+"."+a+" is invalid"),b},a}(),rh.Model=b,rh.model=new b,rh.model.toString=function(){return"GlobalModel"}}.call(this),function(){var a,b,c,d,e,f,rh;rh=window.rh,b=rh._,a=rh.$,f=rh.model,e=function(c,d){return b.each(a.find(c,"[data-rhwidget]"),function(e){var f;if(!a.dataset(e,"loaded")&&a.isDescendent(c,e))return f=a.dataset(e,"config"),f=f?b.resolveNiceJSON(f):{},b.each(b.resolveWidgetArgs(a.dataset(e,"rhwidget")),function(a){var c,g,h,i,j,k;return i=a.wName,h=a.wArg,c=a.pipedArgs,g=a.rawArg,i[0]===i[0].toLowerCase()?f.rawArg=g:(c.length>0&&(f.pipedArgs=c),h&&b.extend(f,h)),f.node=e,j=rh.widgets[i],k=new j(f),k.init(d)})})},c=function(c){var d,e,f,g,h,i,j;for(h=a.find(c,"[data-rhtags]"),i=[],e=0,f=h.length;e<f;e++)g=h[e],a.isDescendent(c,g)&&(d=a.dataset(g,"config"),d=d?b.resolveNiceJSON(d):{},d.ids=a.dataset(g,"rhtags").split(","),d.node=g,i.push(j=new rh.widgets.ContentFilter(d)));return i},d=function(a,b){return e(a,b),c(a)},b.loadWidgets=e,b.loadContentFilter=c,b.loadDataHandlers=d}.call(this),function(){var a,rh,b=function(a,b){return function(){return a.apply(b,arguments)}};rh=window.rh,a=function(){function a(){this.guard=b(this.guard,this)}return a.prototype.guard=function(a,b){if(null==this.guardedNames&&(this.guardedNames=[]),this.guardedNames.indexOf(b)===-1)return this.guardedNames.push(b),a.call(this),this.guardedNames.splice(this.guardedNames.indexOf(b),1)},a}(),rh.Guard=a,rh.guard=(new a).guard}.call(this),function(){var a,b,rh;rh=window.rh,b=rh._,a=function(){function a(){}return a.prototype.attachOwner=function(a){var b,c,d,e;if(null==this._ownerFns&&(this._ownerFns={}),this.hasOwner()&&this.detach(this.owner),this.owner=a,this._overrideNames)for(e=this._overrideNames,c=0,d=e.length;c<d;c++)b=e[c],this._overrideOwnerFn(b);return this.ownerIsChanged()},a.prototype.detachOwner=function(){var a;if(this.hasOwner()){if(this._ownerFns)for(a in this._ownerFns)this._restoreOwnerFn(a);return this.owner=null,this._ownerFns={},this.ownerIsChanged()}},a.prototype.ownerIsChanged=function(){},a.prototype.hasOwner=function(){return null!=this.owner},a.prototype.addOverrides=function(a){var b,c,d,e;for(null==this._overrideNames&&(this._overrideNames=[]),e=[],c=0,d=a.length;c<d;c++)b=a[c],this._overrideNames.push(b),e.push(this._overrideOwnerFn(b));return e},a.prototype.removeOverrides=function(a){var b,c,d,e,f;for(f=[],d=0,e=a.length;d<e;d++)b=a[d],this._restoreOwnerFn(b),c=this._overrideNames.indexOf(b),c>-1?f.push(this._overrideNames.splice(c,1)):f.push(void 0);return f},a.prototype._overrideOwnerFn=function(a){var b;if(this.hasOwner())return b=this.owner[a],this._ownerFns[a]=b,this.owner[a]=function(c){return function(){var d,e,f;for(d=[],f=-1;++f<arguments.length;)d.push(arguments[f]);return e=function(a){return null!=b&&"function"==typeof b.apply?b.apply(c.owner,a):void 0},c[a](e,d)}}(this)},a.prototype._restoreOwnerFn=function(a){if(this.hasOwner())return this.owner[a]=this._ownerFns[a],delete this._ownerFns[a]},a}(),rh.Plugin=a}.call(this),function(){var a,b,c,rh,d=function(a,b){function c(){this.constructor=a}for(var d in b)e.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},e={}.hasOwnProperty;rh=window.rh,c=rh._,a=rh.$,b=function(b){function e(){this.$el=a("#console",0),this.$el&&(null==window.console&&(window.console={}),this.attachOwner(window.console),this.addOverrides(g),c.each(g,function(a,b){return this[a]=function(){return this.color=f[b],this.logger.apply(this,arguments)}},this),this.createChildNodes(),this.setUpInputBox())}var f,g;return d(e,b),g=["info","log","warn","debug","error"],f=["#00FF00","#000000","#0000FF","#0000FF","#FF0000"],e.prototype.ownerIsChanged=function(){return this.$el.style.display=this.hasOwner()?"":this.$el?"none":void 0},e.prototype.logger=function(b,d,e){var f,g,h,i,j,k,l,m;for(null==e&&(e="span"),k=[],m=document.createElement(e),
i=0,j=d.length;i<j;i++)if(f=d[i],c.isFunction(f)||c.isString(f))k.push(f);else if(null!=f){try{l=JSON.stringify(f)}catch(h){g=h,l=g.name+": "+g.message}k.push(l)}else k.push("undefined");if("#FF0000"===this.color&&k.push(c.stackTrace()),m.style.color=this.color,a.textContent(m,k.join(" ")),this.$logNode.appendChild(m),this.$logNode.appendChild(document.createElement("br")),this.$el.scrollTop=this.$el.scrollHeight,b)return b(d)},e.prototype.createChildNodes=function(){var b;if(this.$logNode=a.find(this.$el,"p")[0],this.$logNode||(this.$logNode=document.createElement("p"),this.$logNode.className="console",this.$el.appendChild(this.$logNode)),this.$input=a.find(this.$el,"input")[0],!this.$input)return b=document.createElement("label"),a.textContent(b,"> "),b.style.color="blue",this.$input=document.createElement("input"),this.$input.type="text",this.$input.className="console",this.$input.style.width="98%",this.$input.style.border="0",this.$input.style.padding="2px",this.$input.placeholder="Enter a valid expression",b.appendChild(this.$input),this.$el.appendChild(b)},e.prototype.setUpInputBox=function(){return this.$input.onkeydown=function(a){return function(b){var c,d,e,f;if(13===b.keyCode){a.color="#0000FF",e=a.$input.value;try{return f=Function("event","return "+e)(b),a.$input.value="",a.logger(null,[e],"b"),a.logger(null,[f])}catch(d){return c=d,a.color="#FF1100",a.logger(null,[c.name+": "+c.message],"b")}}}}(this)},e}(rh.Plugin),rh.Console=b}.call(this),function(){var a,b,c,d,rh,e=function(a,b){return function(){return a.apply(b,arguments)}},f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;rh=window.rh,c=rh._,a=rh.$,d=rh.consts,b=function(b){function g(a){this.reRender=e(this.reRender,this);var b,c,d,f;for(h+=1,this._count=h,f=this.supportedArgs,b=0,d=f.length;b<d;b++)c=f[b],a[c]&&(this[c]=a[c]);(this.templateExpr||this.include)&&(this.useTemplate=!0),this.parseOpts(a),this.node||rh._d("error","constructor",this+" does not have a node")}var h;return f(g,b),h=0,g.prototype.toString=function(){return this.constructor.name+"_"+this._count},g.prototype.mapDataAttrMethods=function(a){return c.reduce(a,function(a,b){return a["data-"+b]="data_"+b,a},{})},g.prototype.dataAttrs=["repeat","init","stext","shtml","controller","class","animate","css","attr","value","checked","html","text","if","hidden","keydown","keyup","scroll","change","toggle","toggleclass","method","trigger","click","load","mouseover","mouseout","focus","blur","swipeleft","swiperight","swipeup","swipedown","screenvar"],g.prototype.dataAttrMethods=function(){return g.prototype.mapDataAttrMethods(g.prototype.dataAttrs)}(),g.prototype.dataIAttrs=["itext","ihtml","iclass","irepeat"],g.prototype.dataIAttrMethods=function(){return g.prototype.mapDataAttrMethods(g.prototype.dataIAttrs)}(),g.prototype.supportedArgs=["node","model","key","user_vars","templateExpr","include"],g.prototype.destruct=function(){var a,b,c,d;if(this.resetContent(),this._subscriptions)for(c=this._subscriptions,a=0,b=c.length;a<b;a++)(d=c[a])();return this._subscriptions=[],delete this.model,delete this.controllers},g.prototype.parseOpts=function(a){return this.opts=a,a.arg&&(this.key=a.arg),this.parsePipedArg()},g.prototype.parsePipedArg=function(){var a;if(a=this.opts.pipedArgs,null!=a?a.shift:void 0)return this.modelArgs=c.resolveNiceJSON(a.shift())},g.prototype.get=function(a){return null==this.model&&(this.model=new rh.Model),this.model.get(a)},g.prototype.publish=function(a,b,c){return null==this.model&&(this.model=new rh.Model),this.model.publish(a,b,c)},g.prototype.subscribe=function(a,b,c){var d;if(null!=a)return null==this.model&&(this.model=new rh.Model),d=this.model.subscribe(a,b,c),(this.model.isGlobal()||this.model.isGlobal(a))&&(d=this.storeSubscribe(d)),d},g.prototype.subscribeOnly=function(a,b,c){return null==c&&(c={}),c.initDone=!0,this.subscribe(a,b,c)},g.prototype.storeSubscribe=function(a){var b;return null==this._subscriptions&&(this._subscriptions=[]),b=function(c){return function(){var d;return d=c._subscriptions.indexOf(b),null!=d&&d!==-1&&c._subscriptions.splice(d,1),a()}}(this),this._subscriptions.push(b),b},g.prototype.patchScreenOptions=function(a,b){var e,f;return e=c.isString(b)?[b]:b,f=c.map(e,function(a){return"@"+d("KEY_SCREEN")+"."+a+".attached"}).join(" || "),f?f+" ? ("+a+") : null":a},g.prototype.patchDirOptions=function(a,b){return"@"+d("KEY_DIR")+" == '"+b+"' ? ("+a+") : null"},g.prototype.patchRawExprOptions=function(a,b){return b.screen&&(a=this.patchScreenOptions(a,b.screen)),null!=b.dir&&(a=this.patchDirOptions(a,b.dir)),a},g.prototype.patchRawExpr=function(a,b){return a&&c.isValidModelKey(a)&&(a="@"+a),b&&(a=this.patchRawExprOptions(a,b)),a},g.prototype.resolveEventRawExpr=c.memoize(function(a){var b,d,e,f,g;return g=c.resolveExprOptions(a),d=g.expr,f=g.opts,d=this.patchRawExpr(d,f),e=this._function("event, node",d),b=c.safeExec(e),b=c.applyCallbackOptions(b,f),{callback:b,opts:f}}),g.prototype.resolveRawExprWithValue=c.memoize(function(a){var b,d,e,f,g,h;return f=[],h=c.resolveExprOptions(a),d=h.expr,g=h.opts,d=this.patchRawExpr(d,g),e=this._evalFunction("",d,f),b=c.safeExec(e),b=c.applyCallbackOptions(b,g),{callback:b,keys:f,opts:g}}),g.prototype.subscribeExpr=function(a,b,c,d){var e,f,g,h,i,j,k,l,m;if(null!=a){for(k=this.resolveRawExprWithValue(a),e=k.callback,i=k.keys,f=k.expOpts,l=function(a){return function(){return b.call(a,e.call(a),f)}}(this),g=0,j=i.length;g<j;g++)h=i[g],m=this.subscribeOnly(h,l,d),c&&c.push(m);return l()}},g.prototype.resetContent=function(){var a,b,c,d,e,f,g,h;if(this.children)for(f=this.children,b=0,d=f.length;b<d;b++)a=f[b],a.destruct();if(this.htmlSubs)for(g=this.htmlSubs,c=0,e=g.length;c<e;c++)(h=g[c])();return this.children=[],this.htmlSubs=[]},g.prototype.addChild=function(a){return null==this.children&&(this.children=[]),this.children.push(a)},g.prototype.linkModel=function(a,b,c,d,e){var f;return null==e&&(e={}),f=null!=e.partial&&e.partial,this.storeSubscribe(a.subscribe(b,function(a){return function(b){return a.guard(function(){return c.publish(d,b,{sync:!0})},a.toString())}}(this),{partial:f}))},g.prototype.init=function(b){var c;if(!this.initDone)return this.initDone=!0,this.initParent(b),this.initModel(),(c=a.dataset(this.node,"init"))&&(this.data_init(this.node,c),a.dataset(this.node,"init",null)),this.render(),this.subscribeOnly(this.opts.renderkey,this.reRender,{partial:!1})},g.prototype.initParent=function(b){var d,e,f,g,h,i,j,k,l;return b&&b.addChild(this),h=(null!=b?b.model:void 0)||rh.model,d=null!=(i=a.dataset(this.node,"input"))?i.trim():void 0,g=null!=(j=a.dataset(this.node,"output"))?j.trim():void 0,"."===d||"."===g?this.model=h:((d||g||this.key)&&null==this.model&&(this.model=new rh.Model),d&&(k=c.resolveInputKeys(d),e=k.keys,f=k.opts,c.each(e,function(a,b){return null==a&&(a=b),this.linkModel(h,a,this.model,b,f)},this)),g?(l=c.resolveInputKeys(g),e=l.keys,f=l.opts,c.each(e,function(a,b){return null==a&&(a=b),this.linkModel(this.model,b,h,a,f)},this)):void 0)},g.prototype.initModel=function(){if(this.modelArgs)return c.each(this.modelArgs,function(a,b){return this.publish(b,a)},this),delete this.modelArgs},g.prototype.initUI=function(){var b;return rh._debug?(b=a.dataset(this.node,"loaded"),b&&(b=b+";"+this),a.dataset(this.node,"loaded",b||this)):a.dataset(this.node,"loaded",!0),this.templateExpr&&this.subscribeTemplateExpr(),this.include&&this.subscribeIncludePath(),null==this.tplNode&&(this.tplNode=this.node),this.resetContent()},g.prototype.subscribeTemplateExpr=function(){var b;return b=!0,this.subscribeExpr(this.templateExpr,function(c){if(this.tplNode=a.createElement("div",c).firstChild,!b)return this.reRender(!0)}),b=!1,this.templateExpr=void 0},g.prototype.subscribeIncludePath=function(){return c.require(this.include,function(a){return function(b){return a.setTemplate(b)}}(this)),this.include=void 0},g.prototype.setTemplate=function(b){return this.useTemplate=!0,this.tplNode=a.createElement("div",b).firstChild,this.reRender(!0)},g.prototype.reRender=function(a){if(a&&this.tplNode)return this.render()},g.prototype.preRender=function(){var a;return this.useTemplate&&(a=this.node,this.node=this.tplNode.cloneNode(!0)),a},g.prototype.postRender=function(a){if(a&&a.parentNode)return a.parentNode.replaceChild(this.node,a)},g.prototype.alterNodeContent=function(){},g.prototype.render=function(){var a;if(rh._test&&rh.model.publish("test."+this+".render.begin",c.time()),this.initUI(),a=this.preRender(),this.nodeHolder=new rh.NodeHolder([this.node]),this.alterNodeContent(),this.resolveDataAttrs(this.node),c.loadDataHandlers(this.node,this),this.postRender(a),rh._test)return rh.model.publish("test."+this+".render.end",c.time())},g.prototype.isVisible=function(){return this.nodeHolder.isVisible()},g.prototype.show=function(){return this.nodeHolder.show()},g.prototype.hide=function(){return this.nodeHolder.hide()},g.prototype.toggle=function(){return this.isVisible()?this.hide():this.show()},g.prototype.isWidgetNode=function(b){return a.dataset(b,"rhwidget")},g.prototype.isDescendent=function(a){var b,c,d;for(b=a;;){if(d=b.parentNode,!d)break;if(this.isWidgetNode(b)){c=d;break}if(this.node===d)break;b=d}return null!=c},g.prototype.eachChild=function(b,c){return a.eachChild(this.node,b,function(a){if(!this.isDescendent(a))return c.call(this,a)},this)},g.prototype.eachDataNode=function(b,c){return a.eachDataNode(this.node,b,function(a,b){if(!this.isDescendent(a))return c.call(this,a,b)},this)},g.prototype.traverseNode=function(b,c,d){return a.traverseNode(b,c,d,function(a){return!this.isDescendent(a)},this)},g.prototype.resolveDataAttrs=function(b){return this.traverseNode(b,function(b){var d;return c.isString(d=a.dataset(b,"repeat"))?(this.data_repeat(b,d),!1):(a.eachAttributes(b,function(a,c){var d;if(d=this.dataAttrMethods[a],d&&c)return this[d].call(this,b,c)},this),!0)})},g.prototype.resolveRepeatExpr=function(a){var b,d,e;return e=c.resolvePipedExpression(a),d=e[1]&&c.resolveNiceJSON(e[1]),b=c.resolveLoopExpr(e[0]),(null!=d?d.filter:void 0)&&(b.filter=this._evalFunction("item, index",d.filter)),b.step=(null!=d?d.step:void 0)||1,b},g.prototype.resolveRepeatVar=function(a,b,d,e,f){return e[a]=e[a]||function(){switch(a){case"@index":return d;case"@size":return b.length;case"this":return b;default:return c.isValidModelKey(a)?c.get(b,a):this.subscribeIDataExpr(f,a,b,d)}}.call(this)},g.prototype.resolveEnclosedVar=function(a,b,d,e,f){return c.resolveEnclosedVar(a,function(a){return this.resolveRepeatVar(a,b,d,e,f)},this)},g.prototype.updateEncloseVar=function(b,c,d,e,f,g){var h;return h=this.resolveEnclosedVar(c,d,e,f,g),""===h?a.removeAttribute(g,b):h!==c&&a.setAttribute(g,b,h),h},g.prototype.updateWidgetEncloseVar=function(b,d,e,f){return c.each(["rhwidget","input","output","init"],function(c){var g;if(g=a.dataset(f,c))return this.updateEncloseVar("data-"+c,g,b,d,e,f)},this)},g.prototype.isRepeat=function(b){return a.dataset(b,"repeat")||a.dataset(b,"irepeat")},g.prototype.resolveNestedRepeat=function(b,d,e,f){return c.each(["repeat","irepeat"],function(c){var g,h;if((h=a.dataset(b,c))&&(h=this.updateEncloseVar("data-"+c,h,d,e,f,b),""!==h))return"function"==typeof this[g="data_"+c]?this[g](b,h,d,e):void 0},this)},g.prototype.resolveItemIndex=function(b,d,e){var f;if(b.children)return f={},a.traverseNode(b,function(g){return function(h){return h!==b&&a.dataset(h,"rhwidget")?(g.updateWidgetEncloseVar(d,e,f,h),!1):g.isRepeat(h)?(g.resolveNestedRepeat(h,d,e,f),!1):(a.eachAttributes(h,function(b,g,i){var j;if(c.isString(g)){if(0===b.search("data-")&&(g=this.updateEncloseVar(b,g,d,e,f,h)),""===g)return;if(j=this.dataIAttrMethods[b]){if(this[j].call(this,h,g,d,e,i))return a.removeAttribute(h,b)}else if(0===b.search("data-i-"))return this.data_iHandler(h,g,d,e,b.substring(7)),a.removeAttribute(h,b)}},g),!0)}}(this))},g.prototype.guard=function(a,b){return null==b&&(b="ui"),g.__super__.guard.call(this,a,b)},g.prototype.data_repeat=function(b,c){var d,e;return a.dataset(b,"repeat",null),b.removeAttribute("data-repeat"),e=this.resolveRepeatExpr(c),d=new rh.NodeHolder([b]),this.subscribeDataExpr(e.expr,function(a){return function(c){return a._repeatNodes(d,c,e,b)}}(this),{partial:!1}),!0},g.prototype.resolve_rif=function(b,c,d){var e,f,g,h,i,j,k,l;if((k=a.dataset(b,"rif"))&&(e=this._evalFunction("item, index",k)),!e||e.call(this,c,d))for(h=b.cloneNode(!1),a.dataset(h,"rif",null),l=b.childNodes,i=0,j=l.length;i<j;i++)f=l[i],g=this.resolve_rif(f,c,d),g&&h.appendChild(g);return h},g.prototype.resolveExpression=c.memoize(function(a){var b;return b=[],{expr:c.resolveModelKeys(c.resolveNamedVar(a),b),keys:b}}),g.prototype._safeFunction=c.memoize(function(a,b){var c,d,e;try{e=new Function(a,b)}catch(d){c=d,e=function(){},rh._debug&&rh._d("error","Expression: "+b,c.message)}return e}),g.prototype._function=function(a,b,c){var d,e,f,g,h;if(d=this.resolveExpression(b),c)for(h=d.keys,e=0,g=h.length;e<g;e++)f=h[e],c.push(f);return this._safeFunction(a,d.expr)},g.prototype._evalFunction=function(a,b,c){return this._function(a,"return "+b+";",c)},g.prototype._setLoopVar=function(a,b,c){var d;return d={},a.item&&(d.item=this.user_vars[a.item],this.user_vars[a.item]=b),a.index&&(d.index=this.user_vars[a.index],this.user_vars[a.index]=c),d},g.prototype._repeatNodes=function(b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p;for(null==c&&(c=[]),null==this.user_vars&&(this.user_vars={}),l=[],g=d.filter,o=d.step,n=o,n>0?(i=h=0,k=c.length):i=h=c.length-1;n>0?h<k:h>=0;i=h+=n)j=c[i],m=this._setLoopVar(d,j,i),g&&!g.call(this,j,i)||(f=this.resolve_rif(e,j,i))&&(l.push(f),this.resolveItemIndex(f,j,i),this.resolveDataAttrs(f)),this._setLoopVar(d,m.item,m.index);return 0===l.length&&(p=e.cloneNode(!1),a.addClass(p,"rh-hide"),l.push(p)),b.updateNodes(l)},g.prototype.data_irepeat=function(b,c,d,e,f){var g,h,i;return a.dataset(b,"irepeat",null),h=this.resolveRepeatExpr(c),g=new rh.NodeHolder([b]),i=this.subscribeIDataExpr(b,h.expr,d,e),this._repeatNodes(g,i,h,b),!0},g.prototype.subscribeIDataExpr=function(a,b,c,d,e){var f,g,h;h=this._evalFunction("item, index, node",b);try{return h.call(this,c,d,a)}catch(g){if(f=g,rh._debug)return rh._d("error","iExpression: "+b,f.message)}},g.prototype.data_itext=function(b,c,d,e,f){return a.textContent(b,this.subscribeIDataExpr(b,c,d,e)),!0},g.prototype.data_ihtml=function(a,b,c,d,e){return a.innerHTML=this.subscribeIDataExpr(a,b,c,d),!0},g.prototype.data_iclass=function(b,c,d,e,f){var g;return g=this.subscribeIDataExpr(b,c,d,e),g&&a.addClass(b,g),!0},g.prototype.data_iHandler=function(b,c,d,e,f){var g;return g=this.subscribeIDataExpr(b,c,d,e),g&&a.setAttribute(b,f,g),!0},g.prototype.data_shtml=function(b,c){return a.removeAttribute(b,"data-shtml"),b.innerHTML=this.get(c)},g.prototype.data_stext=function(b,c){return a.removeAttribute(b,"data-stext"),a.textContent(b,this.get(c)||"")},g.prototype.data_init=function(a,b){var d,e;return e=c.resolveExprOptions(b),d=this._function("node",e.expr),d=c.applyCallbackOptions(d,e.opts),d.call(this,a)},g.prototype.subscribeDataExpr=function(a,b,c){return this.subscribeExpr(a,b,this.htmlSubs,c)},g.prototype._eventCallBackData={},g.prototype._data_event_callback=function(a){var b,d;return b=g.prototype._eventCallBackData[a],null==b&&(b={},d=c.resolvePipedExpression(a),b.callback=this._function("event, node",d[0]),d[1]&&(b.opts=c.resolveNiceJSON(d[1])),g.prototype._eventCallBackData[a]=b),b},g.prototype.data_if=function(a,b){var c;return c=new rh.NodeHolder([a]),this.subscribeDataExpr(b,function(a){return a?c.show():c.hide()})},g.prototype.data_hidden=function(a,b){var c;return c=new rh.NodeHolder([a]),this.subscribeDataExpr(b,function(a){return c.accessible(!a)})},g.prototype.data_html=function(b,c){return this.subscribeDataExpr(c,function(c){return null==c&&(c=""),b.innerHTML=c,a.eachChildNode(b,function(a){return resolveDataAttrs(a)})})},g.prototype.data_text=function(b,c){return this.subscribeDataExpr(c,function(c){return null==c&&(c=""),a.textContent(b,c)})},g.prototype.resolveAttr=function(){var a;return a={},function(b){var d;return d=a[b],null==d&&(d=c.resolveAttr(b),a[b]=d),d}}(),g.prototype.data_class=function(a,b){return c.each(this.resolveAttr(b),function(b,c){var d;return d=new rh.NodeHolder([a]),this.subscribeDataExpr(b,function(a){var b;return b=a?[c]:[],d.updateClass(b)})},this)},g.prototype.data_attr=function(b,d){return c.each(this.resolveAttr(d),function(c,d){return this.subscribeDataExpr(c,function(c){return null!=c?a.setAttribute(b,d,c):a.hasAttribute(b,d)?a.removeAttribute(b,d):void 0})},this)},g.prototype.data_css=function(b,d){return c.each(this.resolveAttr(d),function(c,d){return this.subscribeDataExpr(c,function(c){return null==c&&(c=null),a.css(b,d,c)})},this)},g.prototype.data_checked=function(b,e){var f;if(c.isValidModelConstKey(e)&&(e=d(e)),f=b.getAttribute("type"),"checkbox"===f||"radio"===f)return a.getAttribute(b,"checked")&&this.guard(function(){return this.publish(e,b.getAttribute("value",{sync:!0}))}),b.onclick=function(a){return function(){var c,d;return c=b.getAttribute("value"),d=null===c?b.checked:b.checked?c:void 0,a.guard(function(){return this.publish(e,d,{sync:!0})})}}(this),this.htmlSubs.push(this.subscribe(e,function(a){var c;return c=b.getAttribute("value"),null!=c?b.checked=a===c:b.checked=a===!0}))},g.prototype.data_value=function(a,b){var e;return c.isValidModelConstKey(b)&&(b=d(b)),e=Math.random(),a.value&&this.guard(function(){return this.publish(b,a.value,{sync:!0})},e),a.onchange=function(c){return function(){return c.guard(function(){return this.guard(function(){return this.publish(b,a.value,{sync:!0})})},e)}}(this),this.htmlSubs.push(this.subscribe(b,function(b){return function(c){return b.guard(function(){return a.value=c},e)}}(this)))},g.prototype._register_event_with_rawExpr=function(a,b,d){var e;return e=this.resolveEventRawExpr(d).callback,c.addEventListener(b,a,function(a){return function(b){return e.call(a,b,b.currentTarget)}}(this)),e},g.prototype.data_click=function(a,b){return this._register_event_with_rawExpr("click",a,b)},g.prototype.data_mouseover=function(a,b){return this._register_event_with_rawExpr("mouseover",a,b)},g.prototype.data_mouseout=function(a,b){return this._register_event_with_rawExpr("mouseout",a,b)},g.prototype.data_focus=function(a,b){return this._register_event_with_rawExpr("focus",a,b)},g.prototype.data_blur=function(a,b){return this._register_event_with_rawExpr("blur",a,b)},g.prototype.data_trigger=function(a,b){return c.isValidModelConstKey(b)&&(b=d(b)),c.addEventListener(a,"click",function(a){return function(){return a.publish(b,null)}}(this))},g.prototype.data_method=function(a,b){return c.addEventListener(a,"click",function(a){return function(c){if(!c.defaultPrevented)return(a[b]||window[b])(c)}}(this))},g.prototype._toggleData={},g.prototype.data_toggle=function(a,b){var d,e,f,h,i,j;return h=[],f=g.prototype._toggleData[b],null==f&&(j=c.resolvePipedExpression(b),e=j.shift()||"",e=c.explodeAndMap(e,";",":",{trim:!0}),j[0]&&(i=c.resolveNiceJSON(j[0])),f={keyValues:e,opts:i},g.prototype._toggleData[b]=f),c.each(f.keyValues,function(a,b){if(h.push(b),null!=a)return this.guard(function(){return this.publish(b,"true"===a,{sync:!0})})},this),d=function(a){return function(b){return a.guard(function(){return this.publish(b,!this.get(b),{sync:!0})})}}(this),f.opts&&(d=c.applyCallbackOptions(d,f.opts)),c.addEventListener(a,"click",function(a){return c.each(h,function(b){if(!a.defaultPrevented)return d(b)})})},g.prototype.data_toggleclass=function(b,d){var e;return e=c.splitAndTrim(d,","),c.addEventListener(b,"click",function(d){if(!d.defaultPrevented)return b=d.currentTarget,c.each(e,function(c){return a.hasClass(b,c)?a.removeClass(b,c):a.addClass(b,c)})})},g.prototype.data_change=function(a,b){var d,e;return e=this._data_event_callback(b),d=c.applyCallbackOptions(e.callback,e.opts),a.onchange=function(a){return function(b){return d.call(a,b,b.currentTarget)}}(this)},g.prototype.data_keydown=function(a,b){var d,e,f;return e=this._data_event_callback(b),d=c.applyCallbackOptions(e.callback,e.opts),f=e.opts&&e.opts.keyCode,a.onkeydown=function(a){return function(b){if(!f||f===b.keyCode)return d.call(a,b,b.currentTarget)}}(this)},g.prototype.data_keyup=function(a,b){var d,e,f;return e=this._data_event_callback(b),d=c.applyCallbackOptions(e.callback,e.opts),f=e.opts&&e.opts.keyCode,a.onkeyup=function(a){return function(b){if(!f||f===b.keyCode)return d.call(a,b,b.currentTarget)}}(this)},g.prototype.data_scroll=function(a,b){var d,e,f,g;return e=this._data_event_callback(b),g=e.opts,f=g&&g.delta||100,d=function(b){return function(c){var d;if(d=a.getBoundingClientRect(),a.scrollTop>a.scrollHeight-(d.height+f))return e.callback.call(b,c,a)}}(this),g&&(d=c.applyCallbackOptions(d,g)),c.addEventListener(a,"scroll",d)},g.prototype._loadData={},g.prototype.data_load=function(b,d){var e,f,h;if(h=d.split(":"),e=h[0],f=h[1],!g.prototype._loadData[e])return c.addEventListener(b,"click",function(d){return function(h){var i;if(!g.prototype._loadData[e])return g.prototype._loadData[e]=!0,f&&(a.addClass(b,"loading"),i=d.subscribeOnly(f,function(){return a.removeClass(b,"loading"),i()})),c.loadScript(e)}}(this))},g.prototype.data_controller=function(a,b){var d,e,f,g,h,i,j,k,l;for(null==this.user_vars&&(this.user_vars={}),l=c.splitAndTrim(b,";"),h=0,i=l.length;h<i;h++)g=l[h],k=c.resolvePipedExpression(g),k[1]&&(j=c.resolveNiceJSON(k[1])),k=c.splitAndTrim(k[0],":"),0===k.length&&(k=c.splitAndTrim(k[0]," as ")),null!=k[0]&&(e=rh.controller(k[0])),f=k[1],e&&!this.user_vars[f]?(d=new e(this,j),f&&(this.user_vars[f]=d)):rh._debug&&!e&&rh._d("error","Controller "+e+" not found")},g.prototype.data_screenvar=function(a,b){var e,f,g,h;return g=c.splitAndTrim(b,","),f=c.findIndex(this.get(d("KEY_SCREEN")),function(a,b){return a.attached}),e={},e[f]={},h=this.get(d("KEY_SCREEN")),c.each(c.keys(h),function(a){return this.subscribeOnly(d("KEY_SCREEN")+"."+a+".attached",function(b){return function(d){var h;if(d)return c.each(g,function(b){if(e[f][b]=this.get(b),null!=e[a])return this.publish(b,e[a][b])},b),null!=e[h=f=a]?e[h]:e[h]={}}}(this))},this)},g}(rh.Guard),rh.widgets={},rh.Widget=b,rh.widgets.Basic=b}.call(this),function(){var a,b,c,d,rh,e;rh=window.rh,b=rh._,a=rh.$,c=rh.consts,d=a("head",0),e=document.createElement("style"),e.innerHTML=".rh-hide:not(.rh-animate){display:none !important;}",d.insertBefore(e,d.childNodes[0]),b.addEventListener(document,"DOMContentLoaded",b.one(function(){return rh._debug&&null==rh.console&&(rh.console=new rh.Console),rh.model.publish(c("EVT_WIDGET_BEFORELOAD"),!0,{sync:!0}),b.loadWidgets(document),b.loadContentFilter(document),rh.model.publish(c("EVT_WIDGET_LOADED"),!0,{sync:!0})})),b.isIframe()&&(b.addEventListener(window,"beforeunload",function(){rh.model.publish(c("EVT_BEFORE_UNLOAD"),!0,{sync:!0})}),b.addEventListener(window,"unload",function(a){rh.model.publish(c("EVT_UNLOAD"),!0,{sync:!0})}))}.call(this),function(){var a,rh;rh=window.rh,a=rh._,a.addEventListener(window,"message",function(b){var c,d,e,f,g,h,i;if(a.isSameOrigin(b.origin)&&(d=b.data,a.isObject(d))){if(d.rhmodel_publish&&(c=d.rhmodel_publish))for(f in c)i=c[f],rh.iframe.publish(f,i,{sync:!0});return d.rhmodel_subscribe&&(c=d.rhmodel_subscribe,e=c.input||[],h=!rh.model.get("_sharedkeys.input"),g=a.reduce(e,function(a,b){return(h||b.nested!==!1)&&a.push(b.key),a},[]),(null!=g?g.length:void 0)&&rh.iframe.linkModel(b.source,c.id,g)),d.rhmodel_unsubscribe?(c=d.rhmodel_unsubscribe,rh.iframe.clean(c.id)):void 0}})}.call(this),function(){var a,b,c,d,rh,e=function(a,b){return function(){return a.apply(b,arguments)}},f=function(a,b){function c(){this.constructor=a}for(var d in b)g.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},g={}.hasOwnProperty;rh=window.rh,c=rh._,a=rh.$,d=rh.consts,b=function(a){function b(){this.unsubscribe=e(this.unsubscribe,this),this.linkedSubs={},c.isIframe()&&(rh.model.subscribe(d("EVT_BEFORE_UNLOAD"),this.unsubscribe),rh.model.subscribe(d("EVT_UNLOAD"),this.unsubscribe))}return f(b,a),b.prototype.toString=function(){return"Iframe"},b.prototype.unsubscribe=function(){var a;if(this.parent)return a={id:this.id},this.parent.postMessage({rhmodel_unsubscribe:a},"*"),this.parent=void 0},b.prototype.init=function(){var a,b,d,e;if(null==this.id&&(this.id=c.uniqueId()),this.parent=window.parent,c.isIframe()&&(a=rh.model.get("_sharedkeys.input"),a&&(b=c.map(a,function(a){return c.isString(a)?{key:a}:a}),d={input:b,id:this.id},this.parent.postMessage({rhmodel_subscribe:d},"*")),e=rh.model.get("_sharedkeys.output")))return this.linkModel(this.parent,this.id,e)},b.prototype.clean=function(a){var b,c,d,e;if(d=this.linkedSubs[a]){for(b=0,c=d.length;b<c;b++)(e=d[b])();return delete this.linkedSubs[a]}},b.prototype.linkModel=function(a,b,c){var d,e,f,g,h;for(null==c&&(c=[]),h=[],d=function(c){return function(d,e){return c.guard(function(){var b;return b={},b[e]=d,a.postMessage({rhmodel_publish:b},"*")},b)}}(this),e=0,g=c.length;e<g;e++)f=c[e],f=f.trim(),h.push(rh.model.subscribe(f,d));return this.clean(b),this.linkedSubs[b]=h},b.prototype.publish=function(a,b,c){return null==c&&(c={}),this.guard(function(){return rh.model.publish(a,b,c)})},b.prototype.guard=function(a,c){return null==c&&(c=this.id),b.__super__.guard.call(this,a,c)},b}(rh.Guard),rh.iframe=new b}.call(this),function(){var a,b,rh;rh=window.rh,b=rh._,a=function(){function a(){}return a.prototype.toString=function(){return"Storage"},a.prototype.init=function(a){var c,d;return this.namespace?rh._debug&&this.namespace!==a?rh._d("error","Storage","Namespace cann't be changed"):void 0:(this.namespace=a,b.canUseLocalDB()?c=localStorage.getItem(this.namespace):(d=b.explodeAndMap(document.cookie,";","="),d[this.namespace]&&(c=unescape(d[this.namespace]))),this.storageMap=c?JSON.parse(c):{})},a.prototype.isValid=function(){return rh._debug&&!this.storageMap&&rh._d("error","Storage","Namespace is not set yet."),null!=this.storageMap},a.prototype.persist=function(a,b){if(this.isValid())return this.storageMap[a]=b,this.dump()},a.prototype.fetch=function(a){if(this.isValid())return this.storageMap[a]},a.prototype.dump=function(){if(this.isValid())return b.canUseLocalDB()?localStorage.setItem(this.namespace,JSON.stringify(this.storageMap)):document.cookie=this.namespace+"="+escape(JSON.stringify(this.storageMap))},a}(),rh.storage=new a}.call(this),function(){var a,b,c,d,rh;rh=window.rh,b=rh._,c=rh.consts,d=rh.model,a=function(){function a(){this.subs=[],d.subscribe(c("EVT_ORIENTATION_CHANGE"),function(a){return function(){return b.each(a.subs,function(a){return a.eventHandler(a.mql)})}}(this)),rh._debug&&!this.isSupported()&&rh._d("error","Browser Issue","matchMedia is not supported.")}return a.prototype.toString=function(){return"Responsive"},a.prototype.isSupported=function(){return null!=window.matchMedia},a.prototype.attach=function(a,b,c){var d,e;if(this.isSupported)return e=window.matchMedia(a),d=function(a){return a.matches?b():c()},d(e),e.addListener(d),this.subs.push({mql:e,on:b,off:c,eventHandler:d})},a.prototype.detach=function(a,b,c){var d,e,f,g,h;for(g=this.subs,e=d=0,f=g.length;d<f;e=++d)if(h=g[e],h.mql.media===a&&h.on===b&&h.off===c){h.mql.removeListener(h.eventHandler),this.subs.splice(e);break}},a}(),rh.responsive=new a}.call(this),function(){var a,b,c,d,e,rh,f=function(a,b){return function(){return a.apply(b,arguments)}};rh=window.rh,b=rh._,c=rh.consts,e=rh.model,d={desktop:{media_query:"screen and (min-width: 1296px)"},tablet:{media_query:"screen and (min-width: 942px) and (max-width: 1295px)"},phone:{media_query:"screen and (max-width: 941px)"},ios:{user_agent:/(iPad|iPhone|iPod)/g},ipad:{user_agent:/(iPad)/g},print:{media_query:"print"}},a=function(){function a(){this.offScreen=f(this.offScreen,this),this.onScreen=f(this.onScreen,this),this.subscribeScreen=f(this.subscribeScreen,this);var a;a=b.extend({},d,e.get(c("KEY_SCREEN"))),a&&b.each(a,this.subscribeScreen)}return a.prototype.attachedKey=function(a){return c("KEY_SCREEN")+"."+a+".attached"},a.prototype.subscribeScreen=function(a,d){return a.user_agent&&!window.navigator.userAgent.match(b.toRegExp(a.user_agent))?this.offScreen(d):a.media_query?rh.responsive.isSupported()?rh.responsive.attach(a.media_query,function(a){return function(){return a.onScreen(d)}}(this),function(a){return function(){return a.offScreen(d)}}(this)):d===e.get(c("KEY_DEFAULT_SCREEN"))?this.onScreen(d):this.offScreen(d):this.onScreen(d)},a.prototype.onScreen=function(a){var b;return b=this.attachedKey(a),e.publish(b,!0)},a.prototype.offScreen=function(a){var b;if(b=this.attachedKey(a),!1!==e.get(b))return e.publish(b,!1)},a}(),e.subscribe(c("EVT_WIDGET_BEFORELOAD"),function(){var b;return b=null,function(){return null!=b?b:b=new a}}()),e.publish(c("KEY_SCREEN_NAMES"),["desktop","tablet","phone"]),e.publish(c("KEY_SCREEN"),d),e.publish(c("KEY_DEFAULT_SCREEN"),"phone")}.call(this),function(){var a,b,c,rh;rh=window.rh,a=rh.$,c=rh._,b=function(){function b(a){this.nodes=a}return b.prototype.isVisible=function(b){return null==b&&(b=this.nodes[0]),!a.hasClass(b,"rh-hide")},b.prototype.show=function(){return c.each(this.nodes,function(b){if(!this.isVisible(b))return a.removeClass(b,"rh-hide"),b.hidden=!1},this)},b.prototype.hide=function(){return c.each(this.nodes,function(b){if(this.isVisible(b))return a.addClass(b,"rh-hide"),b.hidden=!0},this)},b.prototype.accessible=function(a){return c.each(this.nodes,function(b){return b.hidden=a})},b.prototype.updateClass=function(b){var c,d,e,f,g,h,i,j,k,l;for(null==this.oldClasses&&(this.oldClasses=[]),k=this.nodes,d=0,g=k.length;d<g;d++){for(j=k[d],l=this.oldClasses,e=0,h=l.length;e<h;e++)c=l[e],a.removeClass(j,c);for(f=0,i=b.length;f<i;f++)c=b[f],c.length>0&&(a.addClass(j,c),this.oldClasses.push(c))}},b.prototype.updateNodes=function(a){var b,c,d,e,f,g,h,i;for(b=this.nodes[0],h=b.parentNode,c=0,e=a.length;c<e;c++)g=a[c],h.insertBefore(g,b);for(i=this.nodes,d=0,f=i.length;d<f;d++)g=i[d],h.removeChild(g);return this.nodes=a},b}(),rh.NodeHolder=b}.call(this),function(){var a,rh;rh=window.rh,a=rh._,rh.controller=a.cache(a.isFunction)}.call(this),function(){var a,b,c,d,e,f,g,rh,h=function(a,b){return function(){return a.apply(b,arguments)}};rh=window.rh,c=rh._,a=rh.$,e={async:!0},f=rh.formData=function(a){var b;return b=new window.FormData,c.each(a,function(a,c){return b.append(c,a)}),b},b=function(){function a(a,b){this.xhr=a,this.opts=b,this.onreadystatechange=h(this.onreadystatechange,this),null!=this.opts.success&&this.success(this.opts.success),null!=this.opts.error&&this.error(this.opts.error),this.xhr.onreadystatechange=this.onreadystatechange}return a.prototype.onreadystatechange=function(){var a,b,c;if(4===this.xhr.readyState)return c=this.xhr.responseText,b=this.xhr.status,a=function(a){return function(b){return a.xhr.getResponseHeader(b)}}(this),this.isSuccess(b)?this.successFn&&this.successFn(c,b,a,this.opts):this.errorFn&&this.errorFn(c,b,a,this.opts),this.finallyFn?this.finallyFn(c,b,a,this.opts):void 0},a.prototype.isSuccess=function(a){return a>=200&&a<300||304===a},a.prototype.success=function(a){return this.successFn=a,this},a.prototype.error=function(a){return this.errorFn=a,this},a.prototype["finally"]=function(a){return this.finallyFn=a,this},a}(),d=function(a){var c,d,e;return c=window.XMLHttpRequest||window.ActiveXObject("Microsoft.XMLHTTP"),e=new c,d=new b(e,a),{xhr:e,response:d}},g=rh.http=function(a){var b,f,g;return a=c.extend({},e,a),b=d(a),g=b.xhr,f=b.response,g.open(a.method,a.url,a.async),a["Content-type"]&&g.setRequestHeader("Content-type",a["Content-type"]),g.send(a.data),f},g.get=function(a,b){return g(c.extend({url:a,method:"GET"},b))},g.post=function(a,b,d){return g(c.extend({url:a,method:"POST",data:b},d))},g.put=function(a,b,d){return g(c.extend({url:a,method:"PUT",
data:b},d))},g.jsonp=function(b,d){var f,g;return d=c.extend({},e,d),g=a("script",0)||document.head.children[0],f=document.createElement("script"),f.async=d.async,f.src=b,g.parentNode.insertBefore(f,g)}}.call(this),function(){var a,b,c,d,e,f,g,rh;rh=window.rh,c=rh._,a=rh.$,d=rh.consts,g=rh.model,f=rh.http,e=rh.formData,b=function(){function a(){}return a.prototype.toString=function(){return"RoboHelpServer"},a.prototype.area=function(){return c.urlParam("area",c.extractParamString())},a.prototype.type=function(){return c.urlParam("type",c.extractParamString())},a.prototype.project=function(){return c.urlParam("project",c.extractParamString())},a.prototype.logTopicView=function(a){return g.subscribe(d("EVT_PROJECT_LOADED"),function(b){return function(){var e,h,i,j;if(e=g.get(d("KEY_PUBLISH_BASE_URL")),i=c.parentPath(c.filePath(c.getRootUrl())),j=c.isRelativeUrl(a)?i+a:a,e&&!c.isEmptyString(e))return h=c.mapToEncodedString(c.extend(d("RHS_LOG_TOPIC_VIEW"),{area:b.area(),tpc:c.filePath(j)})),f.get(e+"?"+h)}}(this))},a.prototype.preSearch=function(){var a,b;return b=g.get(d("KEY_SEARCH_TERM")),b&&!c.isEmptyString(b)&&(a=c.mapToEncodedString(c.extend(d("RHS_DO_SEARCH"),{area:this.area(),type:this.type(),project:this.project(),quesn:b,oldquesn:"",quesnsyn:""})),g.publish(d("KEY_SEARCHED_TERM"),b),g.publish(d("EVT_SEARCH_IN_PROGRESS"),!0),g.publish(d("KEY_SEARCH_PROGRESS"),0)),{searchText:b,hashString:a}},a.prototype.postSearch=function(a,b){var e,f,h,i;if(g.publish(d("EVT_SEARCH_IN_PROGRESS"),!1),g.publish(d("KEY_SEARCH_PROGRESS"),null),h=JSON.parse(b),h&&(i=h.topics,i&&i.length>0&&window.setResultsStringHTML(i.length,window._textToHtml_nonbsp(a)),f="?"+c.mapToEncodedString(c.extend({rhhlterm:a},{rhsyns:h.syns})),g.publish(d("KEY_SEARCH_RESULT_PARAMS"),f),g.publish(d("KEY_SEARCH_RESULTS"),i)),!h||!(null!=(e=h.topics)?e.length:void 0))return window.displayMsg(window.gsNoTopics)},a.prototype.doSearch=function(){var a,b,e,h,i;return h=g.get(d("KEY_PUBLISH_MODE")),a=g.get(d("KEY_PUBLISH_BASE_URL")),a&&!c.isEmptyString(a)&&(e=this.preSearch(),i=e.searchText,b=e.hashString,f.get(a+"?"+b).error(function(){return h=!1}).success(function(a){return function(b){return a.postSearch(i,b),h=!0}}(this))),h},a}(),rh.rhs=new b}.call(this),function(){var rh;rh=window.rh,rh.registerDataAttr=function(a,b,c){var d;return null==c&&(c=rh.Widget),d="data_"+a,c.prototype.dataAttrMethods["data-"+a]=d,c.prototype.dataAttrs.push(a),c.prototype[d]=function(a,c){return new b(this,a,c)}}}.call(this),function(){var a,b,c,d,rh,e=function(a,b){return function(){return a.apply(b,arguments)}};rh=window.rh,c=rh._,a=rh.$,d=rh.consts,b=function(){function a(a,b,f){var g,h,i;this.widget=a,this.node=b,this.handleMouseMove=e(this.handleMouseMove,this),this.handleMouseDown=e(this.handleMouseDown,this),i=this.widget.resolveRawExprWithValue(f),g=i.callback,h=i.opts,this.opts=h,this.callback=function(){return g.call(this.widget)},null==h.maxx&&(h.maxx=1),null==h.minx&&(h.minx=0),null==h.maxy&&(h.maxy=1),null==h.miny&&(h.miny=0),this.resize=!1,c.initMouseMove(),c.addEventListener(this.node,"mousedown",this.handleMouseDown),this.widget.subscribe(d("EVT_MOUSEMOVE"),this.handleMouseMove)}return a.prototype.handleMouseDown=function(a){var b;if(1===a.which)return this.resize=a.target===this.node&&!a.defaultPrevented,this.resize?(b=this.callback(),this.resize=b!==!1&&null!==b):void 0},a.prototype.handleMouseMove=function(a){if(a.defaultPrevented&&(this.resize=!1),this.resize)return a.defaultPrevented=!0,1===a.which?this.publish(a):this.resize=!1},a.prototype.getBaseWidth=function(){return this.opts.basex||document.body.offsetWidth},a.prototype.getBaseHeight=function(){return this.opts.basey||document.body.offsetHeight},a.prototype.publish=function(a){var b,c,e;if(b=this.getBaseWidth(),e="rtl"===this.widget.get(d("KEY_DIR")),c=e?b-a.x:a.x,!this.publishPos(b,this.opts.minx,this.opts.maxx,this.opts.x,c))return b=this.getBaseHeight(),c=e?b-a.y:a.y,this.publishPos(b,this.opts.miny,this.opts.maxy,this.opts.y,c)},a.prototype.publishPos=function(a,b,c,d,e){var f;if(null!=d&&null!=e&&(f=this.widget.get(d),f!==e))return c*a<e?e=c*a:b*a>e&&(e=b*a),this.widget.publish(d,e+"px"),this.callback(),!0},a}(),rh.registerDataAttr("resize",b)}.call(this),function(){var a,b,c,rh;rh=window.rh,c=rh._,a=rh.$,b=function(){function b(a,b,c){this.widget=a,this.node=b,this.widget.publish(c,this.extractRowColumnMatrix(this.node))}return b.prototype.extractRowColumnMatrix=function(b){var c,d;return c=[],d=[],this.widget.traverseNode(b,function(b){return"TD"===a.nodeName(b)?(d.push(a.innerHTML(b)),!1):("TR"===a.nodeName(b)&&(0!==d.length&&c.push(d),d=[]),!0)}),0!==d.length&&c.push(d),c},b}(),rh.registerDataAttr("table",b)}.call(this),function(){var a,b,c,rh,d=function(a,b){function c(){this.constructor=a}for(var d in b)e.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},e={}.hasOwnProperty;rh=window.rh,c=rh._,a=rh.$,b=function(b){function c(a){c.__super__.constructor.call(this,a),this.rowColMatrix=this.extractRowColumnMatrix(this.node)}return d(c,b),c.prototype.extractRowColumnMatrix=function(b){var c,d;return c=[],d=[],this.traverseNode(b,function(b){var e;return"TD"===a.nodeName(b)?(this.hasOnlyTable(b)?(e=this.extractRowColumnMatrix(b.children[0]),0!==e.length&&d.push({child:e})):d.push({html:a.innerHTML(b)}),!1):("TR"===a.nodeName(b)&&(0!==d.length&&c.push(d),d=[]),!0)}),0!==d.length&&c.push(d),c},c.prototype.hasOnlyTable=function(b){var c;return 1===(null!=(c=b.children)?c.length:void 0)&&"TABLE"===a.nodeName(b.children[0])},c}(rh.Widget),window.rh.widgets.TableNestedData=b}.call(this),function(){var a,b,rh,c,d=function(a,b){function c(){this.constructor=a}for(var d in b)e.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},e={}.hasOwnProperty;rh=window.rh,c=rh._,a=rh.$,b=function(a){function b(a){b.__super__.constructor.call(this,a),null==this.model&&(this.model=rh.model)}return d(b,a),b}(rh.Widget),window.rh.widgets.Global=b}.call(this),function(){var a,b,c,d,e,rh,f=function(a,b){return function(){return a.apply(b,arguments)}},g=function(a,b){function c(){this.constructor=a}for(var d in b)h.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},h={}.hasOwnProperty;rh=window.rh,d=rh._,a=rh.$,e=rh.consts,c=rh.Widget,b=function(b){function h(a){this.renderChunck=f(this.renderChunck,this),this.reRender=f(this.reRender,this),h.__super__.constructor.call(this,a),null==this.key&&(this.key="_"+this),null==this.path&&(this.path=[]),null==this.children&&(this.children=[]),null==this.user_vars&&(this.user_vars={}),this.useTemplate=!0,this.renderedIndex=0,this.renderedCount=0}return g(h,b),h.prototype.dataIAttrs=["child"].concat(c.prototype.dataIAttrs),h.prototype.dataIAttrMethods=function(){return c.prototype.mapDataAttrMethods(h.prototype.dataIAttrs)}(),h.prototype.supportedArgs=["node","model","key","user_vars","filter","spliton","path","tplNode","tplChildNodes"],h.prototype.init=function(a){if(!this.initDone)return h.__super__.init.call(this,a),this.subscribeOnly(this.key,this.reRender,{partial:!1}),this.subscribeExpr(this.keyexpr,function(a){return null==a&&(a=[]),this.publish(this.key,a,{sync:!0})}),this.subscribeOnly(this.opts.loadmore,this.renderChunck)},h.prototype.parseOpts=function(a){if(h.__super__.parseOpts.call(this,a),this.key&&(d.isValidModelConstKey(this.key)&&(this.key=e(this.key)),!d.isValidModelKey(this.key)))return this.keyexpr=this.key,this.key=null},h.prototype.parsePipedArg=function(){var a,b;if(b=this.opts.pipedArgs,(null!=b?b.shift:void 0)&&((a=b.shift())&&(this.filter=a),(a=b.shift())&&(this.spliton=a)),d.isString(this.filter)&&(this.filter=this.listItemExpr(this.filter)),d.isString(this.spliton))return this.spliton=this.listItemExpr(this.spliton)},h.prototype.notifyLoading=function(a){if(this.opts.loading)return this.publish(this.opts.loading,a)},h.prototype.listItemExpr=function(a){return this._evalFunction("item, index",a)},h.prototype.isWidgetNode=function(b){return h.__super__.isWidgetNode.apply(this,arguments)||a.dataset(b,"child")},h.prototype.reRender=function(a){return this.data=null,this.renderedIndex=0,this.renderedCount=0,h.__super__.reRender.call(this,a)},h.prototype.preRender=function(){var a,b;return b=this.node,null==this.tplChildNodes&&(this.tplChildNodes=function(){var b,c,d,e;for(d=this.tplNode.childNodes,e=[],b=0,c=d.length;b<c;b++)a=d[b],e.push(a);return e}.call(this)),this.node=this.tplNode.cloneNode(!1),b},h.prototype.alterNodeContent=function(){return null==this.data&&(this.data=this.get(this.key)||[]),this.renderChunck()},h.prototype.renderChunck=function(){var a,b,c,d,e;for(this.notifyLoading(!1),a=c=d=this.renderedIndex,e=this.data.length-1;c<=e;a=c+=1)if(b=this.data[a],!this.filter||this.filter(b,a)){if(this.spliton&&a!==this.renderedIndex&&this.spliton(b,a)){this.notifyLoading(!0);break}this.renderOneItem(b,a)}if(this.renderedIndex=a,0===this.renderedCount?this.hide():this.isVisible()||this.show(),this.opts.loaded&&a===this.data.length)return this.publish(this.opts.loaded,!0)},h.prototype.renderOneItem=function(b,c){var d,e,f,g,h,i,j;for(this.renderedIndex=c,d=this.opts.generateindex||rh._debug,j=this.tplChildNodes,f=0,g=j.length;f<g;f++)i=j[f],(h=this.resolve_rif(i,b,c))&&("undefined"!=typeof e&&null!==e||(this.renderedCount++,e=!0),d&&a.dataset(h,"listindex",this.renderedCount-1),h.hasChildNodes()&&this.renderChildList(h,b,c),this.node.appendChild(h),this.resolveItemIndex(h,b,c))},h.prototype.convertToListContainer=function(a){},h.prototype._pathId=function(a){var b;return b="_",b+=this.path.join("_"),null!=a&&(this.path.length>0&&(b+="_"),b+=a),b},h.prototype._pathKey=function(a){var b;return null==a&&(a=""),a=a.toString(),b=this.path.join("."),a.length>0&&b.length>0?"."+b+"."+a:a.length>0?"."+a:"."+b},h.prototype.resolveRepeatVar=function(a,b,c,d,e){return d[a]=d[a]||function(){switch(a){case"@itemkey":return this.key+"."+c;case"@key":return this.key;case"@id":return this._pathId(c);case"@pid":return this._pathId();case"@path":return this._pathKey(c);case"@ppath":return this._pathKey();case"@level":return this.path.length;default:return h.__super__.resolveRepeatVar.call(this,a,b,c,d,e)}}.call(this)},h.prototype.data_child=function(b,c,e,f,g){return d.isValidModelKey(c)||a.dataset(b,"child",this.subscribeIDataExpr(b,c,e,f)),!1},h.prototype.renderChildList=function(b,c,d){return a.eachDataNode(b,"child",function(e,f){var g,i,j,k;return this.convertToListContainer(b),this.resolveItemIndex(e,c,d),f=a.dataset(e,"child"),"undefined"===f||""===f?e.parentNode.removeChild(e):(g=f.split("|"),k=g[1],j=g[0],i=new h({node:e,model:this.model,key:j,user_vars:this.user_vars,path:this.path.concat([this.renderedCount-1]),filter:k,tplNode:e.cloneNode(!1),tplChildNodes:this.tplChildNodes}),i.init(this),this.children.push(i))},this)},h}(c),window.rh.widgets.List=b}.call(this),function(){var a,b,c,d,e,f,rh,g,h=function(a,b){function c(){this.constructor=a}for(var d in b)i.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},i={}.hasOwnProperty;for(rh=window.rh,g=rh._,a=rh.$,c=function(b){var c;return c=function(c){function d(c){d.__super__.constructor.call(this,c),null==this.model&&(this.model=rh.model),a.dataset(this.node,b,c.rawArg)}return h(d,c),d.prototype.toString=function(){return b+"_"+this._count},d.prototype.dataAttrMethods=function(){var a;return a={},a["data-"+b]="data_"+b,a}(),d.prototype.init=function(a){if(!this.initDone)return this.initDone=!0,this.initParent(a),this.initUI(),this.resolveDataAttrs(this.node)},d}(rh.Widget)},f=rh.Widget.prototype.dataAttrs,d=0,e=f.length;d<e;d++)b=f[d],window.rh.widgets[b]=c(b)}.call(this),function(a,b,c){"use strict";!function d(a,b,c){function e(g,h){if(!b[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,d,a,b,c)}return b[g].exports}for(var f="function"==typeof require&&require,g=0;g<c.length;g++)e(c[g]);return e}({1:[function(c,d,e){var rh=c("../../src/lib/rh");rh.IndigoSetSidebar=function(){var a=rh.model.get(rh.consts("SIDEBAR_STATE")),c=b.getElementsByTagName("body")[0],d=b.getElementById("toc-holder"),e=b.getElementById("idx-holder"),f=b.getElementById("glo-holder"),g=b.getElementById("fts-holder"),h=b.getElementById("filter-holder"),i=b.getElementById("favorites-holder"),j=b.getElementById("mobile-menu-holder"),k="layout-visible",l=function(a){if("undefined"!=typeof a&&null!=a){a.classList.add(k);var b=a.getElementsByTagName("input")[0];if("undefined"!=typeof b&&rh.model.get(rh.consts("KEY_SCREEN_DESKTOP")))b.classList.contains("wSearchField")?(rh.model.cpublish("EVT_CLOSE_SEARCH_SUGGESTION",!0),setTimeout(function(){b.focus()},300)):b.focus();else if(rh.model.get(rh.consts("KEY_SCREEN_DESKTOP"))){var c=a.getElementsByTagName("li");if("undefined"!=typeof c[0])c[0].focus();else{var d=a.getElementsByTagName("a");"undefined"!=typeof d[1]?d[1].focus():"undefined"!=typeof d[0]&&d[0].focus()}}}},m=function(a){"undefined"!=typeof a&&null!=a&&a.classList.remove(k)},n="has-delay",o="no-transform",p=function(){j.classList.add(n),setTimeout(function(){j.classList.remove(n),j.classList.add(o)},750)},q=function(){setTimeout(function(){j.classList.remove(o)},750)};switch(c.classList.add("popup-visible"),a){case"toc":p(),l(d),m(e),m(f),m(g),m(h),m(i),m(j);break;case"idx":p(),l(e),m(d),m(f),m(g),m(h),m(i),m(j);break;case"glo":p(),l(f),m(e),m(d),m(g),m(h),m(i),m(j);break;case"fts":p(),l(g),m(e),m(f),m(d),m(h),m(i),m(j);break;case"filter":p(),l(h),m(e),m(f),m(g),m(d),m(i),m(j);break;case"favorites":p(),l(i),m(e),m(f),m(g),m(d),m(h),m(j);break;case"menu":l(j),q(),m(e),m(f),m(g),m(d),m(i),m(h);break;default:m(e),m(f),m(g),m(d),m(h),m(i),m(j),q(),c.classList.remove("popup-visible"),rh.model.get(rh.consts("KEY_SCREEN_DESKTOP"))&&rh.IndigoSetFocusOnSearch()}},rh.IndigoSetFocusOnSearch=function(){for(var a=b.getElementsByTagName("input"),c=0;c<a.length;c++)if(a[c].classList.contains("wSearchField")){rh.model.cpublish("EVT_CLOSE_SEARCH_SUGGESTION",!0),setTimeout(function(){a[c].focus()},300);break}},rh.IndigoSetSidebarSearch=function(){rh.model.publish(rh.consts("SIDEBAR_STATE"),"fts")},rh.IndigoSetTransitionAllow=function(){var a=b.getElementsByTagName("body")[0],c="allow-phone-transitions",d="allow-tablet-transitions",e="allow-desktop-transitions";a.classList.remove(c),a.classList.remove(d),a.classList.remove(e);var f=!1;1==rh.model.get(rh.consts("KEY_SCREEN_PHONE"))?f=c:1==rh.model.get(rh.consts("KEY_SCREEN_TABLET"))?f=d:1==rh.model.get(rh.consts("KEY_SCREEN_DESKTOP"))&&(f=e),setTimeout(function(){a.classList.remove(c),a.classList.remove(d),a.classList.remove(e),a.classList.add(f)},10)},rh.initIndigo=function(){rh.model.subscribe(rh.consts("SIDEBAR_STATE"),rh.IndigoSetSidebar),rh.model.subscribe(rh.consts("EVT_SEARCH_IN_PROGRESS"),rh.IndigoSetSidebarSearch),rh.model.subscribe(rh.consts("KEY_SCREEN"),rh.IndigoSetTransitionAllow),setTimeout(function(){var a=getUrlParameter(RHHIGHLIGHTTERM);if(""!=a)for(var c=b.getElementsByTagName("input"),d=0;d<c.length;d++)if(c[d].classList.contains("wSearchField")){c[d].value=a;break}},250),b.onkeydown=function(b){b=b||a.event,27==b.keyCode&&(rh.model.publish(rh.consts("SIDEBAR_STATE"),!1),rh.IndigoSetFocusOnSearch())}}},{"../../src/lib/rh":3}],2:[function(a,b,c){a("../lib/rh"),a("../../lenient_src/indigo/handlers")},{"../../lenient_src/indigo/handlers":1,"../lib/rh":3}],3:[function(b,c,d){(function(a){c.exports=a.rh}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof a?a:{})},{}]},{},[2])}(window,document,window.location);