PageSourceSearch

https://magnaflux.eu/scripts/titanscripts.required.js

js magnaflux.eu collected 2026-10-08 14:55:26 UTC 25,902 bytes, 1 lines download raw bytes

1var JSDEBUG=!1,NWS=NWS||function(){return{initNamespace:function(namespace,initFunction){var thisObj,names,n;if(typeof initFunction=="undefined"){console.warn("Must be a function expression who's return value defines the namespace");return}for(thisObj=this,names=namespace.split("."),n=names[0]==="NWS"?1:0;n<names.length;n++)thisObj[names[n]]=thisObj[names[n]]||(n===names.length-1?initFunction():{}),thisObj=thisObj[names[n]];const namespaceCreatedEvent=new CustomEvent("NamespaceCreated",{detail:namespace});return window.dispatchEvent(namespaceCreatedEvent),thisObj}}}();NWS.initNamespace("NWS.Block",function(){var _={SeeAllLess:function(evt){NWS.Util.Event.Cancel(evt,!0);let fieldset=NWS.Util.GetClosest(evt.target,"fieldset");fieldset&&(_.RecalcSeeAllLess(fieldset),["seeMore","seeLess"].forEach(className=>fieldset.classList.toggle(className)))},RecalcSeeAllLess:function(fieldset){if(fieldset.hasAttribute("limitNum")){let limit=parseInt(fieldset.getAttribute("limitNum"),10);if(limit&&!(limit>1e3)){let inputs=NWS.Util.QueryGet("div.inputs",fieldset);if(inputs){let selected=NWS.Util.QueryGetAll("div.selected[id]",inputs);selected.forEach(div=>div.classList.remove("seeMore"));limit-=selected.length;let selector=["div[id]:not(.selected)",fieldset.classList.contains("hideZero")?":not(.zero)":""].join(""),unselected=NWS.Util.QueryGetAll(selector,inputs);unselected.forEach(div=>{limit--<=0?div.classList.add("seeMore"):div.classList.remove("seeMore")});let hasHidden=NWS.Util.QueryGet("div.seeMore",inputs)!==null;NWS.Util.QueryGetAll(".more, .less",fieldset).forEach(el=>el.style.display=hasHidden?"":"none")}}}},HandleExpand:function(evt){let fieldset=NWS.Util.GetClosest(evt.target,"fieldset");fieldset&&(_.RecalcSeeAllLess(fieldset),evt.target.setAttribute("aria-expanded",fieldset.classList.toggle("min")?"false":"true"))}};return{CallInit:function(initFunc,initArgs){let func=NWS.Modules.Parse(initFunc,window,"function");if(!func){setTimeout(NWS.Block.CallInit,100,initFunc,initArgs);return}func.apply(window,initArgs)},UI:{Tabs:{ShowTab:function(ctl,blockID){for(var jj,tabUL=ctl.parentNode,tabLIs=tabUL.getElementsByTagName("LI"),container=tabUL.parentNode,selectedDiv=container.querySelector("div#"+ctl.id+"_Content"),tabDivs=container.querySelector("div#TabsContent_"+blockID).getElementsByTagName("DIV"),ii=0;ii<tabLIs.length;++ii)tabLIs[ii].classList.remove("selected");for(jj=0;jj<tabDivs.length;++jj)tabDivs[jj].classList.remove("selected");ctl.classList.add("selected");selectedDiv.classList.add("selected")}},Fieldset:{Init:function(fieldset){let titleSpan=NWS.Util.QueryGet(".head > span[role='button'][aria-expanded]",fieldset);titleSpan&&(["onclick","onkeypress"].forEach(attr=>titleSpan.removeAttribute(attr)),titleSpan.addEventListener("click",_.HandleExpand,!1),titleSpan.addEventListener("keypress",function(evt){NWS.Util.UI.DefaultButton(evt,titleSpan)},!1));NWS.Util.QueryGetAll(".more, .less",fieldset).forEach(el=>el.addEventListener("click",_.SeeAllLess,!1))}},InitializePagination:function(resultsDiv,callback){resultsDiv&&callback&&(resultsDiv.addEventListener("click",function(evt){let button=NWS.Util.GetClosest(evt.target,"a[data-pageid], button[data-pageid]");button&&callback(button.getAttribute("data-pageid"),evt)}),resultsDiv.addEventListener("change",function(evt){let dropdown=NWS.Util.GetClosest(evt.target,"select[data-pageid]");dropdown&&callback(dropdown.value,evt)}))}}}});NWS.initNamespace("NWS.Util",function(){function Notifier(eventName){this.EventName=eventName;this.Callbacks=[];this.Errors=[]}var _={getBaseID:function(id){return id.lastIndexOf("_")===-1?id:id.substring(0,id.lastIndexOf("_"))},get:function(id){return document.getElementById(id)},getSet:function(name){return document.getElementsByName(name)},getBaseNode:function(ctl){return _.getClosest(ctl,".Field")},getClosest:function(ctl,selector){return ctl===null||selector===null?null:(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){var el=this;do{if(el.matches(s))return el;el=el.parentElement||el.parentNode}while(el!==null&&el.nodeType===1);return null}),ctl.closest(selector))},queryGet:function(selector,target){return target=target||document,target.querySelector(selector)},queryGetAll:function(selector,target){return target=target||document,target.querySelectorAll(selector)}};return Notifier.prototype.Notify=function(target){this.Callbacks.forEach(c=>{let func=c.func,args=c.args.slice(0);args.push(target);try{func.apply(window,args)}catch(ex){this.Errors.find(e=>e.who===c.who).error=ex.message}});this.Errors.filter(e=>
1e.error!==null).forEach(e=>{NWS.Logging.Warn(["Error calling ",e.who,": ",e.error].join("")),e.error=null});this.Callbacks=this.Callbacks.filter(c=>!c.once);this.Errors=this.Errors.filter(e=>this.Callbacks.some(c=>c.who===e.who))},Notifier.prototype.Subscribe=function(who,callback,callbackArgs=[],once=false){this.Callbacks.filter(function(c){return c.who===who}).length>0||(callbackArgs=callbackArgs||[],this.Callbacks.push({who:who,func:callback,args:callbackArgs,once:once}),this.Errors.push({who:who,error:null}))},Notifier.prototype.Unsubscribe=function(who){this.Callbacks=this.Callbacks.filter(function(c){return c.who!==who});this.Errors=this.Errors.filter(e=>e.who!==who)},{Get:function(id){return _.get(id)},GetBaseID:function(id){return _.getBaseID(id)},GetBaseNodeForCtl:function(element){return _.getBaseNode(element)},GetBaseNodeForID:function(id){var element=_.get(id)||_.getSet(id);return _.getBaseNode(element)},GetClosest:function(element,selector){return _.getClosest(element,selector)},GetSet:function(name){return[].slice.call(_.getSet(name))},QueryGet:function(selector,target){return _.queryGet(selector,target)},QueryGetAll:function(selector,target){return[].slice.call(_.queryGetAll(selector,target))},Remove:function(element){element&&element.parentNode&&element.parentNode.removeChild(element)},ReplaceHtml:function(element,newHtml){if(element&&newHtml!==null){while(element.lastChild)element.removeChild(element.lastChild);newHtml&&element.insertAdjacentHTML("afterbegin",newHtml)}},ScrollTo:function(element,options){options=options||{behavior:"smooth",block:"end",inline:"nearest"};element.scrollIntoView(options)},Date:{Now:function(){return(new Date).toLocaleString("en-US").replace(/[^0-9/:apm]/gi," ").replace(/\s+/g," ")}},Event:{Cancel:function(evt,doPrevent){evt instanceof Event&&(evt.stopPropagation(),doPrevent&&evt.preventDefault())},CancelInline:function(func,doPrevent){if(func instanceof Function&&func.caller!==undefined){let evt=[...func.caller.arguments].find(arg=>arg instanceof Event);NWS.Util.Event.Cancel(evt,doPrevent)}},Debounce:function(delay,func,extraEvtArgs,ignore){extraEvtArgs=extraEvtArgs||{};ignore=ignore||[];var timer;return function(e){timer&&clearTimeout(timer);let d=delay;e instanceof InputEvent&&e.inputType==="insertReplacementText"?d=0:e.key&&ignore.indexOf(e.key)!==-1&&(d=0);timer=setTimeout(function(){e.Args=extraEvtArgs;func(e);timer=null},d)}},DoMouseEvent:function(ctl,eventType){var evt=typeof Event=="function"?new MouseEvent(eventType,{target:ctl,bubbles:!0,cancelable:!0}):null;evt===null&&(evt=document.createEvent("MouseEvent"),evt.initEvent(eventType,!0,!0),evt.target=ctl);ctl.dispatchEvent(evt)},DoEvent:function(ctl,eventType){var evt=typeof Event=="function"?new Event(eventType,{target:ctl,bubbles:!0,cancelable:!0}):null;evt===null&&(evt=document.createEvent("Event"),evt.initEvent(eventType,!0,!0),evt.target=ctl);ctl instanceof NodeList&&ctl.length>0?ctl[0].dispatchEvent(evt):Array.isArray(ctl)&&ctl.length>0?ctl[0].dispatchEvent(evt):ctl.dispatchEvent(evt)},DoHandlerForKeypress:function(evt,key,handler){var evtKey=NWS.Util.KeyValue[evt.key]||evt.key;if(evtKey)return evtKey!==key?void 0:(NWS.Util.Event.Cancel(evt,key===NWS.Util.KeyValue.Enter),handler.apply(window,[evt]))}},Notifier:Notifier,KeyValue:{Win:"Meta",Down:"ArrowDown",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Del:"Delete",Apps:"ContextMenu",Esc:"Escape",Enter:"Enter",Tab:"Tab",Meta:"Meta",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",Delete:"Delete",ContextMenu:"ContextMenu",Escape:"Escape",Insert:"Insert","":""},Print:{PrintPage:function(printPageString){printPageString&&printPageString.length&&printPageString[printPageString.length-1]!=="&"&&(printPageString+="&");var params=NWS.Util.Print.FormatParams();if(typeof params=="undefined"){setTimeout(NWS.Util.Print.PrintPage,100,printPageString);return}window.open(window.location.protocol+"//"+window.location.host+window.location.pathname+printPageString+params)},Email:function(subjectLine){var params=NWS.Util.Print.FormatParams();if(typeof params=="undefined"){setTimeout(NWS.Util.Print.Email,100,subjectLine);return}window.open("mailto:?subject="+encodeURIComponent(subjectLine)+"&body="+encodeURIComponent(window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+params),"_self")}
1,LogParams:function(){var params=NWS.Util.Print.FormatParams();if(typeof params=="undefined"){setTimeout(NWS.Util.Print.LogParams,100);return}console.log("?"+params)},FormatParams:function(){if(!NWS.Block.Aggregation){NWS.Modules.LoadResources(["/Views/Display/Blocks/AggregationV2/AggregationV2Display.js"],[{func:"NWS.Util.UI.FormatParams"}]);return}return NWS.Block.Aggregation.BuildFullQueryString(-1)}},UI:{InitRouterForm:function(){let formsToInit=NWS.Util.QueryGetAll("form[id][data-init]",document);if(formsToInit.length!==0){let func=(mutations,thisObserver)=>{try{thisObserver.forms.forEach(form=>{let elements=NWS.Util.QueryGetAll(form.getAttribute("data-init"),document).filter(el=>el.form!==undefined&&el.form===null);elements.forEach(el=>el.setAttribute("form",form.id))})}catch(err){NWS.Logging.Warn(err)}},observer=new MutationObserver(func);observer.forms=formsToInit;func([],observer);observer.observe(document.body,{childList:!0,subtree:!0,attributes:!1})}},DefaultButton:function(evt,btn){btn&&NWS.Util.Event.DoHandlerForKeypress(evt,NWS.Util.KeyValue.Enter,function(){NWS.Util.Event.DoMouseEvent(btn,"click")})},SearchSubmit:function(baseURL,searchCtl){if(searchCtl.classList.remove("error"),searchCtl.value.trim()===""){searchCtl.classList.add("error");return}location.href=baseURL.indexOf("?")>0?baseURL+"&Search_Keywords="+encodeURIComponent(searchCtl.value):baseURL+"?Search_Keywords="+encodeURIComponent(searchCtl.value)},GoBack:function(evt){return NWS.Util.Event.Cancel(evt,!0),history.back(),!1},FreeformPreviewTidy:function(data){var retVal=data,tidySteps=[{Pattern:new RegExp("on(click|keyup|keydown|change|focus|blur)\\s*=\\s*'[^']*?'","gi"),Replacement:"on$1='javascript:window.console.log(&quot;on$1 action disabled in preview.&quot;);return false;'"},{Pattern:new RegExp('on(click|keyup|keydown|change|focus|blur)\\s*=\\s*"[^"]*?"',"gi"),Replacement:"on$1='javascript:window.console.log(&quot;on$1 action disabled in preview.&quot;);return false;'"},{Pattern:new RegExp("href\\s*=\\s*'[^']*?'","gi"),Replacement:"href='#' onclick='javascript:window.console.log(&quot;Links are not available in this view.&quot;);return false;'"},{Pattern:new RegExp('href\\s*=\\s*"[^"]*?"',"gi"),Replacement:"href='#' onclick='javascript:window.console.log(&quot;Links are not available in this view.&quot;);return false;'"}];return tidySteps.filter(step=>
1step.Pattern.test(retVal)).forEach(step=>retVal=retVal.replace(step.Pattern,step.Replacement)),retVal},FollowPreviewLink:function(link,evt){if(NWS.Util.Event.Cancel(evt,!0),link.getAttribute("alert")==="true"){window.alert("Links are not available in this view");return}let orig=link.getAttribute("originalHref"),dest=orig;if(/^[a-z][a-z0-9+-.]+:\/\//gi.test(orig)||["3","5","9"].includes(link.getAttribute("linkType"))||(dest="/LinkPreview?PreviewUrl="+encodeURIComponent(orig)),link.getAttribute("origTarget")==="_blank"){window.open(dest,"_blank","noopener=true,noreferrer=true");return}window.location.href=dest}}}});NWS.initNamespace("NWS.Logging",function(){var _={IsDebug:function(){return typeof JSDEBUG!="undefined"&&JSDEBUG}};return{Log:function(msg){_.IsDebug()&&console.log(msg)},Warn:function(msg){_.IsDebug()&&console.warn(msg)},Track:function(data){window.dataLayer=window.dataLayer||[];window.dataLayer.push(data)}}});NWS.initNamespace("NWS.Bundling",function(){function ExtConfig(tagName,urlAttributeName,attributes,extensions){this.TagName=tagName;this.UrlAttribute=urlAttributeName;this.StaticAttributes=attributes;this.Extensions=extensions}function Resource(url,callback){this.Url=url;this.Callbacks=[callback||new Callback]}function Callback(onSuccess,onError,onComplete){this.Success=onSuccess||null;this.Error=onError||null;this.Complete=onComplete||null;this.Status="waiting"}function Bundle(fileExtension,config){if(fileExtension==="")throw"No file extension provided";fileExtension=fileExtension.indexOf(".")===0?fileExtension:"."+fileExtension;this.Extension=fileExtension;this.ExtensionConfig=null;this.Resources=[];this.Status="waiting";this.ExtensionConfig=_.GetExtensionConfig(config,fileExtension)}const _absUrlRegEx=/^https?:\/\/|^\/\//i,DEFAULT_EXT_CONFIG=[new ExtConfig("script","src",[{name:"language",value:"javascript"},{name:"type",value:"text/javascript"}],[".js"]),new ExtConfig("link","href",[{name:"rel",value:"stylesheet"},{name:"type",value:"text/css"}],[".css"])],PRELOAD_EXT_CONFIG=[new ExtConfig("link","href",[{name:"rel",value:"preload"},{name:"as",value:"script"}],[".js"]),new ExtConfig("link","href",[{name:"rel",value:"preload"},{name:"as",value:"style"}],[".css"])];var _={ProcessNewElement:function(url,parentSelector,config,callbacks){var parent,newElement;_.Exists(url,config)||(parentSelector=parentSelector||"html head",parent=document.querySelector(parentSelector),parent)&&(newElement=document.createElement(config.TagName),newElement.setAttribute(config.UrlAttribute,url),config.StaticAttributes.forEach(function(attr){newElement.setAttribute(attr.name,attr.value)}),callbacks.reduce(function(newCallbacks,callbackOrCallbackArray){return newCallbacks.concat(callbackOrCallbackArray)},[]).forEach(function(callback){callback.ListenTo(newElement)}),NWS.Logging.Log("Pushing url to callstack: "+url),parent.appendChild(newElement))},Exists:function(url,config){var loaded=[].slice.call(document.querySelectorAll(config.TagName)).filter(function(el){return el.hasAttribute(config.UrlAttribute)&&el.getAttribute(config.UrlAttribute).toLowerCase()===url.toLowerCase()});return loaded.length===0?!1:loaded.filter(function(el){return config.StaticAttributes.filter(function(attr){return el.getAttribute(attr.name)===attr.value})[0]}).length>0?(NWS.Logging.Warn("Duplicate resource called: "+url+".  It will not be loaded again."),!0):!1},Remove:function(url,config){if(_.Exists(url,config)){var loaded=[].slice.call(document.querySelectorAll(config.TagName)).filter(function(el){return el.hasAttribute(config.UrlAttribute)&&el.getAttribute(config.UrlAttribute).toLowerCase()===url.toLowerCase()}).filter(function(el){return config.StaticAttributes.filter(function(attr){return el.getAttribute(attr.name)===attr.value})[0]});loaded.forEach(function(el){el.remove()})}},GetExtensionConfig:function(config,ext){var extConfig=null,extFilter=function(c){return c.IsValid()&&c.Extensions.indexOf(ext)>-1};return Array.isArray(config)?extConfig=config.map(c=>c instanceof ExtConfig?c:Object.assign(new NWS.Bundling.ExtConfig,c)).filter(extFilter):config instanceof Object&&(extConfig=[config].map(c=>c instanceof ExtConfig?c:Object.assign(new NWS.Bundling.ExtConfig,c)).filter(extFilter)),(extConfig===null||extConfig.length===0)&&(config=typeof config=="string"&&config==="preload"?PRELOAD_EXT_CONFIG:DEFAULT_EXT_CONFIG,extConfig=config.filter(extFilter)),extConfig.length>
11&&NWS.Logging.Warn("Only one configuration per extension is supported.  Only the first configuration provided will be used."),extConfig[0]}};return ExtConfig.prototype.IsValid=function(){return this.TagName!==undefined&&this.UrlAttribute!==undefined&&Array.isArray(this.StaticAttributes)&&Array.isArray(this.Extensions)},Resource.prototype.GetExtension=function(){var url=this.Url,qsIdx=url.indexOf("?");return qsIdx>0&&(url=url.substring(0,qsIdx)),url.substring(url.lastIndexOf("."))},Resource.prototype.IsAbsolute=function(){return _absUrlRegEx.test(this.Url)},Resource.prototype.Exists=function(config){var extFilter=function(c){return c.Extensions.indexOf(this.GetExtension())>-1}.bind(this);return config=config||DEFAULT_EXT_CONFIG.filter(extFilter)[0],_.Exists(this.Url,config)},Resource.prototype.Load=function(config,parentSelector){config=_.GetExtensionConfig(config,this.GetExtension());_.ProcessNewElement(this.Url,parentSelector,config,this.Callbacks)},Resource.prototype.Remove=function(config){config=_.GetExtensionConfig(config,this.GetExtension());_.Remove(this.Url,config)},Callback.prototype.ListenTo=function(element){if(element instanceof Element){var func=function(evt){var type=evt.type,thisCallback=this,resource=evt.target.getAttribute("src")||evt.target.getAttribute("href");thisCallback.Status="complete";NWS.Logging.Log("Following resource returned:"+resource);switch(type){case"error":thisCallback.Error&&(NWS.Logging.Log("Calling load error method for "+resource),thisCallback.Error(evt));break;default:thisCallback.Success&&(NWS.Logging.Log("Calling load success method for "+resource),thisCallback.Success(evt))}thisCallback.Complete&&(NWS.Logging.Log("Calling load complete method for "+resource),thisCallback.Complete(evt));NWS.Logging.Log("Callback complete for "+resource)};element.addEventListener("load",func.bind(this),!1);element.addEventListener("error",func.bind(this),!1)}},Bundle.prototype.AddResource=function(resource){if(!(resource instanceof Resource))throw"Invalid resource";var existingResource=this.Resources.filter(function(existingResource){return existingResource.Url===resource.Url})[0];existingResource?existingResource.Callbacks=existingResource.Callbacks.concat(resource.Callbacks):this.Resources.push(resource)},Bundle.prototype.GetBundleUrl=function(){var relativeUrls=this.Resources.filter(function(resource){return!resource.IsAbsolute()}).map(function(resource){return encodeURIComponent(resource.Url)});return relativeUrls.length?["/_bundle",this.Extension,"?file=",relativeUrls.join("&file=")].join(""):""},Bundle.prototype.GetBundleCallbacks=function(){return this.Resources.filter(function(resource){return!resource.IsAbsolute()}).map(function(resource){return resource.Callbacks})},Bundle.prototype.GetAbsoluteUrls=function(){return this.Resources.filter(function(resource){return resource.IsAbsolute()}).map(function(resource){return resource.Url})},Bundle.prototype.Load=function(contentLoadedCallback,parentSelector){if(this.Status!=="waiting"){NWS.Logging.Warn("Bundle is already loaded");return}var bundleCompleteCallback=function(){var stillWaiting=this.Resources.map(function(resource){return resource.Callbacks}).reduce(function(newCallbacks,callbackOrCallbackArray){return newCallbacks.concat(callbackOrCallbackArray)},[]).filter(function(callback){return callback.Status==="waiting"}).length>0,func;stillWaiting||(this.Status="complete",func=function(){typeof contentLoadedCallback=="function"&&contentLoadedCallback&&contentLoadedCallback()},document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?func():document.addEventListener("DOMContentLoaded",func,!1))}.bind(this),bundleUrl=this.GetBundleUrl(),bundleCallbacks=this.GetBundleCallbacks();bundleUrl.length>0&&(bundleCallbacks.push(new Callback(null,null,bundleCompleteCallback)),_.ProcessNewElement(bundleUrl,parentSelector,this.ExtensionConfig,bundleCallbacks));this.Resources.filter(function(resource){return resource.IsAbsolute()}).forEach(function(externalResource){externalResource.Callbacks.push(new Callback(null,null,bundleCompleteCallback));_.ProcessNewElement(externalResource.Url,parentSelector,this.ExtensionConfig,externalResource.Callbacks)}.bind(this))},{Callback:Callback,Bundle:Bundle,ExtConfig:ExtConfig,Resource:Resource}});NWS.initNamespace("NWS.Modules",function(){var _manager={requests:[],ready:[],running:!1,isNotReady:function(resource){var url=resource instanceof NWS.Bundling.Resource?resource.Url:resource;return _manager.ready.indexOf(url)===-1},isNotFinished:function(request){return!request.finished}
1,onResourceReady:function(evt){var url=evt.target.getAttribute("src")||evt.target.getAttribute("href"),finalize;_manager.ready.indexOf(url)===-1&&_manager.ready.push(url);finalize=[];_manager.requests.forEach(function(request,idx){request.resources=request.resources.filter(res=>_manager.isNotReady(res)&&!res.Exists(request.extConfigs));request.resources.length!==0||request.finished||finalize.push(idx)});finalize.forEach(function(idx){_manager.doInitList(_manager.requests[idx].initList);_manager.requests[idx].finished=!0});_manager.requests=_manager.requests.filter(_manager.isNotFinished);_manager.process()},process:function(){if(_manager.requests.length===0){_manager.running=!1;return}let toProcess=_manager.requests.filter(req=>!req.finished&&req.resources.length);if(toProcess.length){let config=toProcess[0].extConfigs,next=toProcess[0].resources.filter(res=>_manager.isNotReady(res)&&!res.Exists(config))[0];next&&next.Load(config)}},doInitList:function(initList){initList.forEach(function(init){NWS.Modules.ExecuteFunctionByName(init.func,window,init.args)})}},_={ProcessResources:function(resourceUrls,initList,extConfigs=null){var notReady=resourceUrls.filter(_manager.isNotReady);if(notReady.length===0){_manager.doInitList(initList);return}_manager.requests.push({resources:notReady.map(function(url){return new NWS.Bundling.Resource(url,new NWS.Bundling.Callback(null,null,_manager.onResourceReady))}),initList:initList,extConfigs:extConfigs,finished:!1});_manager.running||(_manager.running=!0,_manager.process())},initializedModules:[],moduleInitialized:function(moduleNamespaceToInitialize){return _.initializedModules.indexOf(moduleNamespaceToInitialize)===-1?(_.initializedModules.push(moduleNamespaceToInitialize),!1):!0}};return{LoadResources:function(resourcePaths,initList,extConfigsOverride){if(!Array.isArray(resourcePaths)){NWS.Logging.Warn("Must provide an array of resource paths");return}_.ProcessResources(resourcePaths.reverse(),initList||[],extConfigsOverride)},ExecuteFunctionByName:function(funcName,context,args){var func=NWS.Modules.Parse(funcName,context,"function"),argsArray;if(func!==null){argsArray=Array.isArray(args)?args:[args];try{return func.apply(this,argsArray)}catch(e){console.log(e.message)}}},Parse:function(name,context,type){var namespaces,func,ii;for(context=context||window,namespaces=name.split("."),func=namespaces.pop(),ii=0;ii<namespaces.length;ii++)if(context=context[namespaces[ii]],!context)return null;return context[func]&&typeof context[func]===type?context[func]:null},Register:function(resourceUrls,contentLoadedCallback,extConfigsOverride){var extensions,bundles,bundlesLoadedCallback;if(!Array.isArray(resourceUrls)){alert("Must provide an array of module resource urls");return}extensions=[];bundles=[];
1resourceUrls.forEach(function(url){var resource=url instanceof NWS.Bundling.Resource?url:new NWS.Bundling.Resource(url),ext=resource.GetExtension(),idx=extensions.indexOf(ext);idx===-1&&(idx=extensions.length,extensions.push(ext),bundles.push(new NWS.Bundling.Bundle(ext,extConfigsOverride)));bundles[idx].AddResource(resource)});bundlesLoadedCallback=function(){var stillWaiting=bundles.filter(function(bundle){return bundle.Status==="waiting"}).length>0,func;stillWaiting||(func=function(){typeof contentLoadedCallback=="function"&&contentLoadedCallback&&contentLoadedCallback()},document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?func():document.addEventListener("DOMContentLoaded",func,!1))};bundles.forEach(function(bundle){return bundle.Load(bundlesLoadedCallback)})},InitModule:function(moduleNamespace,params){var namespaceCreatedCallback=function(evt){if(evt.detail===moduleNamespace&&!_.moduleInitialized(moduleNamespace)){var initFunc=NWS.Modules.Parse([moduleNamespace,".init"].join(""),window,"function");initFunc(typeof params=="object"?params:{})}},moduleInitFunc=NWS.Modules.Parse([moduleNamespace,".init"].join(""),window,"function");if(!moduleInitFunc){window.addEventListener("NamespaceCreated",namespaceCreatedCallback,!1);return}_.moduleInitialized(moduleNamespace)||moduleInitFunc(typeof params=="object"?params:{})}}});NWS.initNamespace("NWS.Xml",function(){function processAttributes(attributes){var node=NWS.Xml.Parse("<T/>"),element=node.querySelector(":root");return attributes&&Array.isArray(attributes)&&attributes.filter(function(a){return typeof a.name!==undefined&&typeof a.value!==undefined}).forEach(function(a){element.setAttribute(a.name,a.value)}),NWS.Xml.ToString(node).slice(2,-2)}return{MakeTag:function(tagName,data,attributes,doCData){return data===null&&attributes===null?"":data===null&&!doCData?["<",tagName,processAttributes(attributes),"/>"].join(""):[NWS.Xml.MakeStartTag(tagName,attributes,doCData),data,NWS.Xml.MakeEndTag(tagName,doCData)].join("")},MakeStartTag:function(tagName,attributes=null,doCData=false){return!tagName||tagName.length===0?"":["<",tagName,processAttributes(attributes),">",doCData?"<![CDATA[":""].join("")},MakeEndTag:function(tagName,doCData=false){return!tagName||tagName.length===0?"":[doCData?"]\]>":"","<\/",tagName,">"].join("")},Parse:function(xmlString){try{var parser=new DOMParser,xml=parser.parseFromString(xmlString,"application/xml"),errors=xml.querySelectorAll("parsererror");return errors.length!==0?null:xml}catch(ex){return null}},ToString:function(xml){var serializer=new XMLSerializer;return serializer.serializeToString(xml)}}})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.