1if(!window.CQ_Analytics){window.CQ_Analytics={} 2}(function(){CQ_Analytics.DataProvider=(function(){var a=window.ContextHub; 3var h=window.ClientContext; 4var b=a||h; 5var e=b; 6function i(q){if(!q||typeof(q)!="string"){return[] 7}var p=q.match(new RegExp("\\$\\{([\\w/]*)\\}","ig")); 8return p?p:[] 9}function c(p){if(!p||p.length<2){return null 10}return p.substring(2,p.length-1) 11}return{hasStore:function o(p){if(e===a){return(ContextHub.getStore(p)!=="undefined") 12}else{return(CQ_Analytics.CCM.stores[p]!=="undefined") 13}},getStores:function f(){if(e===a){var p={}; 14var q=ContextHub.getAllStores(); 15Object.keys(q).forEach(function(s,t){var r=q[s]; 16p[r.name]={}; 17p[r.name].data=r.getTree() 18}); 19return p 20}else{return CQ_Analytics.CCM.getStores() 21}},setItem:function g(p,q,r){if(e===a){ContextHub.setItem("/store/"+p+"/"+q,r) 22}else{CQ_Analytics.CCM.stores[p].setProperty(q,r) 23}},getItem:function n(p,q){if(e===a){return ContextHub.getItem("/store/"+p+"/"+q)||"" 24}else{return CQ_Analytics.CCM.stores[p].getProperty(q) 25}},reset:function k(p){if(e===a){ContextHub.getStore(p).reset() 26}else{CQ_Analytics.CCM.stores[p].reset() 27}},exists:function m(){if(e===a){return(ContextHub&&ContextHub.version) 28}else{return(CQ_Analytics&&CQ_Analytics.ClientContextMgr&&CQ_Analytics.ClientContextMgr.isConfigLoaded) 29}},onReady:function j(p){if(e===a){ContextHub.eventing.on([ContextHub.Constants.EVENT_ALL_STORES_READY,ContextHub.Constants.EVENT_STORES_PARTIALLY_READY],function(q,r){p.call(this) 30},null,true) 31}else{if(CQ_Analytics.CCM.areStoresInitialized){p.call(this) 32}else{CQ_Analytics.CCM.addListener("storesinitialize",function(q){p.call(this) 33}) 34}}},setType:function d(p){e=p 35},getType:function l(){if(e){return e 36}return b 37},replaceVariables:function(t){if(!t){return t 38}var u=""; 39var s=t; 40var w=i(t); 41while(w.length>0&&u.indexOf(w.join())==-1){for(var r=0; 42r<w.length; 43r++){var q=c(w[r]); 44var p=""; 45if(e===a){p=ContextHub.getItem(q) 46}else{p=CQ_Analytics.ClientContext.get(q) 47}s=s.replace(new RegExp("\\$\\{"+q+"\\}","ig"),p) 48}u+=w.join(); 49w=i(s) 50}return s 51}} 52})() 53})();
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.