/*! * Copyright MadCap Software * http://www.madcapsoftware.com/ * Unlicensed use is strictly prohibited * * v18.0.8213.28862 */ (function(){window.MadCap={};MadCap.CreateNamespace=function(n){for(var n,r=n.split("."),t=MadCap,i=0,u=r.length;i1)throw new Error("Object.create implementation only accepts the first parameter.");return t.prototype=n,new t});typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var i=this.length>>>0,t=Number(arguments[1])||0;for(t=t<0?Math.ceil(t):Math.floor(t),t<0&&(t+=i);t=0&&n.charAt(t)==" ";t--);return n.substring(0,t+1)};n.ToBool=function(n,t){var r=t,i;if(n!=null){if(i=n.toLowerCase(),i!="true"&&i!="false"&&i!="1"&&i!="0"&&i!="yes"&&i!="no")throw new MadCap.Exception(-1,"The string can not be converted to a boolean value.");r=i=="true"||i=="1"||i=="yes"}return r};n.ToInt=function(n,t){var i=t;return n!=null&&(i=parseInt(n)),i};n.ToDashed=function(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})};n.LocaleCompare=function(n,t,i){if(i){if(typeof Intl!="undefined"&&typeof Intl.Collator!="undefined"){var r=new Intl.Collator(i);if(r)return r.compare(n,t)}if(String.prototype.localeCompare)return n.localeCompare(t,i)}return nt?1:0};n.Compare=function(n,t){for(var f,e,r=n.length,u=t.length,i=0;ie)return 1}return ru?1:0};n.IsPunctuation=function(n){var t=n.charCodeAt(0);return t>=33&&t<=35||t>=37&&t<=42||t>=44&&t<=47||t==58||t==59||t==63||t==64||t>=91&&t<=93||t==95||t==123||t==125||t==161||t==171||t==173||t==183||t==187||t==191||t==894||t==903||t>=1370&&t<=1375||t==1417||t==1418||t==1470||t==1472||t==1475||t==1478||t==1523||t==1524||t==1548||t==1549||t==1563||t==1566||t==1567||t>=1642&&t<=1645||t==1748||t>=1792&&t<=1805||t>=2039&&t<=2041||t==2404||t==2405||t==2416||t==3572||t>=3663&&t<=3675||t>=3844&&t<=3858||t>=3898&&t<=3901||t==3973||t==4048||t==4049||t>=4170&&t<=4175||t==4347||t>=4961&&t<=4968||t==5741||t==5742||t==5787||t==5788||t>=5867&&t<=5869||t==5941||t==5942||t>=6100&&t<=6102||t>=6104&&t<=6106||t>=6144&&t<=6154||t==6468||t==6469||t==6622||t==6623||t==6686||t==6687||t>=7002&&t<=7008||t>=8208&&t<=8231||t>=8240&&t<=8259||t>=8261&&t<=8273||t>=8275&&t<=8286||t==8317||t==8318||t==8333||t==8334||t==9001||t==9002||t>=10088&&t<=10101||t>=10181&&t<=10182||t>=10214&&t<=10219||t>=10627&&t<=10648||t>=10712&&t<=10715||t==10748||t==10749||t>=11513&&t<=11516||t==11518||t==11519||t>=11776&&t<=11799||t==11804||t==11805||t>=12289&&t<=12291||t>=12296&&t<=12305||t>=12308&&t<=12319||t==12336||t==12349||t==12448||t==12539||t>=43124&&t<=43127||t==64830||t==64831||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65121||t==65123||t==65128||t==65130||t==65131||t>=65281&&t<=65283||t>=65285&&t<=65290||t>=65292&&t<=65295||t==65306||t==65307||t==65311||t==65312||t>=65339&&t<=65341||t==65343||t==65371||t==65373||t>=65375&&t<=65381};n.Split=function(n,t){for(var u=n.length,f=[],r=-1,e=-1,i=0;i<=u;i++)i==u||t(n.charAt(i))?r>-1&&(f.push(n.slice(r,e)),r=-1):(r==-1&&(r=i),e=i+1);return f}}(),function(){MadCap.CreateNamespace("DEBUG");var n=MadCap.DEBUG;n.Log={};n.Log.Create=function(){var n=document.createElement("div"),t,i,r,u;n.setAttribute("id","DEBUG_Log");t=document.createElement("div");$(t).addClass("MCDebugLogHeader");t.appendChild(document.createTextNode("Log Console"));n.appendChild(t);i=document.createElement("div");$(i).addClass("MCDebugLogBody");n.appendChild(i);r=document.createElement("div");$(r).addClass("MCDebugLogFooter");n.appendChild(r);document.body.appendChild(n);u=new MadCap.DragDrop(n,t)};n.Log._LoadTime=new Date;n.Log.AddLine=function(t){var r,i,f;if(parent!=window&&MadCap.Utilities.MessageBus.GetIsCrossFrame()){MadCap.Utilities.MessageBus.PostMessageRequest(parent,"DEBUG-AddLine",[t],null);return}if(r=document.getElementById("DEBUG_Log"),r!=null){var e=new Date,o=e-n.Log._LoadTime,u=document.createElement("p");$(u).addClass("MCDebugLogEntryTime");u.appendChild(document.createTextNode(o+"ms "+e.toLocaleTimeString()));i=document.createElement("div");$(i).addClass("MCDebugLogEntry");i.appendChild(u);i.appendChild(document.createTextNode(t));f=MadCap.Dom.GetElementsByClassName("MCDebugLogBody","div",r)[0];f.insertBefore(i,f.firstChild)}}}();/*! * Copyright MadCap Software * http://www.madcapsoftware.com/ * Unlicensed use is strictly prohibited * * v18.0.8213.28862 */ (function(){MadCap.CreateNamespace("Dom");var n=MadCap.Dom;n.Dataset=function(n,t){return n.getAttribute("data-"+MadCap.String.ToDashed(t))};n.GetElementsByClassName=function(n,t,i){var r,f,u,o,e;for(t=t||"*",i=i||document,r=[],f=i.getElementsByTagName(t),u=0,o=f.length;u0&&(n=document.documentElement.scrollLeft,t=document.documentElement.scrollTop),{X:n,Y:t}}})();/*! * Copyright MadCap Software * http://www.madcapsoftware.com/ * Unlicensed use is strictly prohibited * * v18.0.8213.28862 */ (function(){var t,i,r,n;MadCap.CreateNamespace("Utilities");MadCap.Utilities.Dictionary=function(n){this._Map={};this._Overflows=[];this._Length=0;this._IgnoreCase=n==!0};t=MadCap.Utilities.Dictionary;t.prototype.GetLength=function(){return this._Length};t.prototype.ForEach=function(n){var e=this._Map,r,o,u,i,s,f,t;for(r in e)if(o=e[r],t=n(r,o),t!=undefined&&!t)return;for(u=this._Overflows,i=0,s=u.length;i=0&&(t=this._Overflows[i].Value)):(t=this._Map[n],typeof t=="undefined"&&(t=null)),t};t.prototype.GetItemOverflowIndex=function(n){var i,t,r;for(this._IgnoreCase&&(n=n.toLowerCase()),i=this._Overflows,t=0,r=i.length;t=0&&(this._Overflows.splice(t,1),this._Length--)}else typeof this._Map[n]!="undefined"&&(delete this._Map[n],this._Length--)};t.prototype.Add=function(n,t){if(this._IgnoreCase&&(n=n.toLowerCase()),typeof this._Map[n]=="function"){var i=this.GetItem(n);i!=null&&this.Remove(n);this._Overflows[this._Overflows.length]={Key:n,Value:t}}else this._Map[n]=t;this._Length++};t.prototype.AddUnique=function(n,t){this._IgnoreCase&&(n=n.toLowerCase());var i=this.GetItem(n);typeof i!="undefined"&&i||this.Add(n,t)};MadCap.Utilities.DateTime=function(n){var t=/\/Date\(([0-9]+)\)\//i.exec(n);this.Date=t!=null?new Date(parseInt(t[1])):new Date(n)};i=MadCap.Utilities.DateTime;i.Months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];MadCap.Utilities.TimeSpan=function(n,t){typeof n=="undefined"&&(n=new Date);typeof t=="undefined"&&(t=new Date);n>t?(this.FromDate=t,this.ToDate=n):(this.FromDate=n,this.ToDate=t);this.Ticks=this.ToDate-this.FromDate;this.Seconds=this.Ticks/1e3;this.Minutes=this.Seconds/60;this.Hours=this.Minutes/60;this.Days=this.Hours/24};r=MadCap.Utilities.TimeSpan;r.prototype.ToDurationString=function(){if(this.Minutes<1)return"Just now";if(this.Hours<1)return parseInt(this.Minutes)+" minutes ago";if(this.Days<1)return parseInt(this.Hours)+" hours ago";if(this.Days<30)return parseInt(this.Days)+" days ago";var n=i.Months[this.FromDate.getMonth()]+" "+this.FromDate.getDate();return this.FromDate.getFullYear()!=this.ToDate.getFullYear()&&(n+=", "+this.FromDate.getFullYear()),n};MadCap.Utilities.Url=function(n){var t=this,i=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/;this._Segments=[];this.FullPath=null;this.Path=null;this.PlainPath=null;this.Name=null;this.Extension=null;this.NameWithExtension=null;this.FullFragment=null;this.Fragment=null;this.Query=null;this.Origin=null;this.LocalPath=null;this.IsAbsolute=!1;this.IsRootRelative=!1;this.IsFolder=!1;this.QueryMap=new MadCap.Utilities.Dictionary(!0);this.HashMap=new MadCap.Utilities.Dictionary(!0),function(){function d(n,t,i){for(var o=n.split(t),u=0,h=o.length;u=0?(e=decodeURIComponent(r.substring(0,f)),s=decodeURIComponent(r.substring(f+1))):e=r;i.Add(e,s)}}var p="",w="",b="",a="",u=n.indexOf("#"),e=n.indexOf("?"),r,o,k,c,y,h,f,s,l;u!=-1&&(w=n.substring(u),p=u>e?n.substring(u):n.substring(u,e));e!=-1&&(b=e>u?n.substring(e):n.substring(e,u));r=u>-1?e>-1?Math.min(u,e):u:e;o=n.substring(0,r==-1?n.length:r);r=o.lastIndexOf("/");k=o.substring(0,r+1);c=o.substring(r+1);r=c.lastIndexOf(".");var g=c.substring(0,r),nt=c.substring(r+1),v="";r=o.indexOf(":");r>=0&&(v=o.substring(0,r));y=!MadCap.String.IsNullOrEmpty(v);MadCap.String.IsNullOrEmpty(n)||(h=n,MadCap.String.EndsWith(h,"/")&&(h=h.substring(0,h.length-1)),t._Segments=h.split("/"),y&&(f=n.match(i),f&&(a=f[4]?f[1]+":"+f[2]+f[3]+":"+f[4]:f[1]+":"+f[2]+f[3],t.Origin=a)),t.LocalPath=n.substring(a.length));t.FullPath=n;t.Path=k;t.PlainPath=o;t.Name=g;t.Extension=nt;t.NameWithExtension=c;t.Scheme=v;t.IsAbsolute=y;t.IsRootRelative=MadCap.String.StartsWith(o,"/",!1);t.IsFolder=MadCap.String.EndsWith(o,"/");t.FullFragment=w;t.Fragment=p;t.Query=b;s=t.Query;MadCap.String.IsNullOrEmpty(s)||(s=s.substring(1),s=s.replace(/\+/g," "),d(s,"&",t.QueryMap));l=t.Fragment;MadCap.String.IsNullOrEmpty(l)||(l=l.substring(1),d(l,"&",t.HashMap))}()};n=MadCap.Utilities.Url;n.GetDocumentUrl=function(){return new n(document.location.href)};n.GetAbsolutePath=function(t){var r=n.GetDocumentUrl(),i=new MadCap.Utilities.Url(r.PlainPath);return i.IsFolder||(i=i.ToFolder()),i.CombinePath(t).FullPath};n.EnsureUrlSafety=function(t){var i=encodeURI(decodeURI(t));return n.StripInvalidCharacters(i)};n.StripInvalidCharacters=function(n){return n.replace(/(javascript:|data:|[<>])/gi,"")};n.GetSafetyProcessedComponent=function(n){return decodeURI(encodeURIComponent(n))};n.SanitizeHash=function(){var i=MadCap.Utilities.Url.CurrentHash(),n,t;i&&(n=decodeURIComponent(i.slice(1)),t=MadCap.Utilities.Url.StripInvalidCharacters(n),n!=t&&(document.location.hash=encodeURI(t)))};n.ReplaceReservedCharacters=function(n,t){for(var i=n.split(""),r=0;r127||i[r].match(/[ ()&;,!'$]/))&&(i[r]=t);return i.join("")};n.Navigate=function(t){document.location=n.EnsureUrlSafety(t)};n.GenerateNavigateTopicPath=function(t){var i=t.IsRootRelative?t.PlainPath:n.GetAbsolutePath(t.PlainPath),r=n.GetDocumentUrl().QueryMap.GetItem("skinName")||t.QueryMap.GetItem("skinName");return r!=null&&(i+="?skinName="+r),t.FullFragment.indexOf("#search-")==0?i+=t.FullFragment:(t.QueryMap.GetLength()>0&&(i+=r==null?"?":"&",t.QueryMap.ForEach(function(n,t){t&&["skinName","highlight"].indexOf(n)==-1&&(i+=n+"="+encodeURIComponent(t)+"&")}),i=i.slice(0,-1)),i+=t.Fragment),i};n.NavigateTopic=function(t){var i=n.GenerateNavigateTopicPath(t);n.Navigate(i)};n.OnNavigateTopic=function(t){var r=$(this).attr("href"),i;if(typeof r!="undefined")if(i=new n(r),MadCap.String.IsNullOrEmpty(r)||i.IsAbsolute||!i.PlainPath)i.HashMap.GetLength()>0&&i.Fragment!="#"&&(n.NavigateHash(i.Fragment),$(window).trigger("hashchange"),t.preventDefault());else{var u=n.GenerateNavigateTopicPath(i),f=new MadCap.Utilities.Url(u),r=new MadCap.Utilities.Url(document.location.href);decodeURI(f.PlainPath)==decodeURI(r.PlainPath)&&i.HashMap.GetLength()>0?(n.NavigateHash(i.Fragment),$(window).trigger("hashchange"),t.preventDefault()):u!=n.GetAbsolutePath(i.PlainPath)&&(MadCap.Utilities.PreventDefault(t),n.Navigate(u))}};n.NavigateHash=function(t){document.location.hash=n.StripInvalidCharacters(t)};n.CurrentHash=function(){return new MadCap.Utilities.Url(document.location.href).FullFragment};n.prototype.AddFile=function(t){var r,i;if(typeof t=="string"&&(t=new n(t)),t.IsAbsolute)return t;if(r=t.FullPath,r.charAt(0)=="/"){var u=document.location,f=u.href.lastIndexOf(u.pathname),e=u.href.substring(0,f);return new n(e+r)}return i=this.FullPath,MadCap.String.EndsWith(i,"/")||(i=i+"/"),new n(i+r)};n.prototype.CombinePath=function(t){var f,r,s,u;if(typeof t=="string"&&(t=new n(t)),t.IsAbsolute)throw new MadCap.Exception(-1,"Cannot combine two absolute paths.");var h=t.FullPath,e=t.FullPath.split("/"),i=this.FullPath,o="";if(this.Origin&&t.IsRootRelative)return new n(this.Origin+h);for(this.Scheme=="mk"&&(f=i.indexOf("::"),o=i.substring(0,f+2),i=i.substring(f+2)),r=0,s=e.length;r1&&MadCap.String.EndsWith(i,"/")&&(i=i.substring(0,i.length-1)),u=="."?i+="/":u==".."?i=i.substring(0,i.lastIndexOf("/")+1):(i==""||MadCap.String.EndsWith(i,"/")||(i+="/"),i+=u);return i=o+i,new n(i)};n.prototype.ToQuery=function(t){var i=this.PlainPath+"?"+t+this.Fragment;return new n(i)};n.prototype.ToFolder=function(){var t=this.PlainPath,i,r;return MadCap.String.EndsWith(t,"/")&&(t=t.substring(0,t.length-1)),i=t.lastIndexOf("/"),r=t.substring(0,i+1),new n(r)};n.prototype.ToRelative=function(t){var i,f,e,o,u,s,r;if(typeof t=="string"&&(t=new n(t)),this.IsAbsolute!=t.IsAbsolute)return this;for(i=0,f=t._Segments.length;ii&&(u+="/"),u+=this._Segments[r];return new n(u)};n.prototype.ToExtension=function(t){var i=this.FullPath,r=i.lastIndexOf("."),u=i.substring(0,r),f=u+"."+t;return new n(f)};n.prototype.ToScheme=function(t){var i=this.FullPath,r;return(pos=i.indexOf(":"),pos<0)?this:(r=t+":"+i.substring(pos),new n(r))};n.prototype.ToPath=function(){return new n(this.Path)};n.prototype.ToPlainPath=function(){return new n(this.PlainPath)};n.prototype.ToNoQuery=function(){return new n(this.PlainPath+this.Fragment)};n.prototype.ToNoFragment=function(){return new n(this.PlainPath+this.Query)};MadCap.Utilities.PreventDefault=function(n){n.preventDefault?n.preventDefault():event.returnValue=!1};MadCap.Utilities.EncodeHtml=function(n){var t=document.createElement("textarea");return t.textContent=n,t.innerHTML};MadCap.Utilities.DecodeHtml=function(n){var t=document.createElement("textarea");return t.innerHTML=n,t.textContent};MadCap.Utilities.GenerateRandomGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})};MadCap.Utilities.AsyncForeach=function(n,t,i){function r(){var u=n.shift();t(u,function(){n.length>0?r():i()})}n=n.slice(0);n.length>0?r():i()};MadCap.Utilities.CopyToClipboard=function(n){var t=$("
"),i=t.html(n.html().replace(/
/g,"\n")).text();t=$("