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