File: /home/s76vzjg2kvav/public_html/clients/n3results/js/loader.js
!function t(e,n,o){function r(a,s){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return r(n?n:t)},c,c.exports,t,e,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r}({1:[function(t,e,n){(function(t){var n,o,r;r=function(t){var e;try{return t.location.origin||(e=t.location.port,t.location.origin=t.location.protocol+"//"+t.location.hostname+(null!=e?e:":"+e||"")),(null==t||!t.location.origin.match(/static\.olark\.com$/))&&(null!=t&&t.parent.document,!0)}catch(t){return!1}},o=(n=function(e){if(e=e||t.window)return r(e)&&e!==t.window.top?(null!=e?e.parent.olark:void 0)?e.parent:n(e.parent):e})(),e.exports={getOlark:function(){return null!=o?o.olark:void 0},getWindow:function(){return o},getDocument:function(){return null!=o?o.document:void 0},getLocation:function(){return null!=o?o.location:void 0},getProtectedWindow:function(){return t.window},manuallySetHostWindow:function(t){return o=t}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){var o,r=function(t,e){return function(){return t.apply(e,arguments)}},i={}.hasOwnProperty;o=function(){function t(t){this._assign=r(this._assign,this),this._window=t.window||window,this._document=t.document||this._window.document,this._olark=t.olark||this._window.olark,this._data={},this._data.version=this._assign(t.version,function(){var t,e;return(null!=(t=this._olark)&&null!=(e=t._)?e.chatboxBucketPostfix:void 0)||"framestore"}),this._data.location=this._assign(t.location,function(){return this._document.location.href.toString().slice(0,50)}),this._data.referrer=this._assign(t.referrer,function(){return this._document.referrer.toString().slice(0,15)}),this._data.message=this._assign(t.message,function(){return null}),this._data.stack=this._assign(t.stack,function(){return null}),this._data.tabname=this._assign(t.tabName,function(){return this._getTabName()}),this._data.conversation_id=this._assign(t.conversationId,function(){return this._getConversationId()}),this._data.visitor_id=this._assign(t.visitorId,function(){return this._getVisitorId()}),this._data.site_id=this._assign(t.siteId,function(){return this._getSiteId()}),this._data.bucket=this._assign(t.bucket,function(){return this._getBucket()}),this._data.level=this._assign(t.level,function(){return"info"}),this._data.timestamp=this._assign(t.timestamp,function(){return+new Date}),this._data.properties=this._assign(t.properties,function(){return{}}),this._data.recent_logs=this._assign(t.recentLogs,function(){return[]})}return t.prototype._assign=function(t,e){switch(t){case null:return null;default:return null!=t?t:e.bind(this)()}},t.prototype._getTabName=function(){var t;return(t=this._window).name||(t.name=Math.random().toString().replace("0.","oktab")),/^oktab/.test(this._window.name)?this._window.name:"unknown"},t.prototype._getConversationId=function(){var t,e;return null!=(t=this._olark)&&null!=(e=t._)?e.conversationId:void 0},t.prototype._getVisitorId=function(){var t,e;return null!=(t=this._olark)&&null!=(e=t._)?e.visitorId:void 0},t.prototype._getSiteId=function(){var t,e;return null!=(t=this._olark)&&null!=(e=t._)?e.siteId:void 0},t.prototype._getBucket=function(){var t,e;return null!=(t=this._olark)&&null!=(e=t._)?e.chatboxBucket:void 0},t.prototype.simplify=function(){return{bucket:this._data.bucket,conversation_id:this._data.conversation_id,level:this._data.level,location:this._data.location,message:this._data.message,referrer:this._data.referrer,tabname:this._data.tabname,timestamp:String(new Date(this._data.timestamp)),version:this._data.version}},t.prototype.getLevel=function(){return this._data.level},t.prototype.getMessage=function(){return this._data.message},t.prototype.getStack=function(){return this._data.stack},t.prototype.getEncodedLogEvent=function(){var t,e,n,o,r;for(t in n=[],o=this._data)i.call(o,t)&&null!=this._data[t]&&""!==this._data[t]&&(r=this._data[t],"properties"!==t&&"recent_logs"!==t||(r=JSON.stringify(r)),e=t+"="+encodeURIComponent(r),n.push(e));return n.join("&")},t}(),e.exports=o},{}],3:[function(t,e,n){var o=t("./HostPage"),r=t("../chatbox/LogMessage"),i=function(t){t&&t.hasOwnProperty("window")?t.hasOwnProperty("window")||(this._window=t.window):this._window=o.getWindow()};i.prototype.log=function(t){var e=new r({bucket:"loader",level:"pre-load",message:t});this._send(e)},i.prototype._send=function(t){var e=t.getEncodedLogEvent(),n=new this._window.Image;n.src="//log.olark.com/jslog/log.png?"+e,n.onload=function(){n=null}},e.exports=i},{"../chatbox/LogMessage":2,"./HostPage":1}],4:[function(t,e,n){var o,r,i;o=[/^static.olark.com$/,/^.+\.olark\.net:900[1-2]$/,/^localhost:900[1-2]$/,/((^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)).+:900[1-2]/],i=function(t){var e,n,r,i,a,s;i=null;try{i=localStorage.getItem("OLARK_HOST")}catch(t){}for(r=!1,a=0,s=o.length;a<s;a++)o[a].test(i)&&(r=!0);return r||(i=null),e=(n=t.olark._.l.replace(/loader[0-1]?\.js/,"app.js")).split("/").shift(),i&&(n=n.replace(e,i)),"//"+n},r=function(t,e,n){var o,r,i;return(o=e.createElement("iframe")).setAttribute("data-olark",!0),o.setAttribute("aria-hidden",!0),o.setAttribute("title","empty"),o.setAttribute("tabIndex",-1),(o.frameElement||o).style.cssText="width:0px;height:0px;position:absolute;left:0px;bottom:0px;border:none;",r=0,(i=function(){var t,a;if(e.body)return r=0,a="<html><body><script data-olark='true' aria-hidden='true' tabindex='-1' src='"+n+"' async defer></script></body></html>",t=new Blob([a],{type:"text/html"}),o.src=URL.createObjectURL(t),o.srcdoc=a,e.body.appendChild(o);if((r+=1)>100)throw new Error("[olark] Could not access document.body when trying to write the olark iframe");return setTimeout(i,100)})()},e.exports={fif:r,getApplicationUrl:i}},{}],5:[function(t,e,n){var o,r,i,a,s;r=!1,o=/OLARK_DEBUG=true/g,i="Olark is currently undergoing scheduled maintenance. To see up-to-date status visit: http://status.olark.com",a=function(t){var e;if("undefined"!=typeof window&&null!==window&&null!=(e=window.console)?e.warn:void 0)return console.warn("[olark]",t)},s=function(t){var e;return r?document.location.search&&(e=document.location.search.split("?").pop(),o.test(e))?(a("Loading jsclient while in maintenance mode"),t()):a(i):t()},e.exports={logToConsoleAndBootIfAllowed:s}},{}],6:[function(t,e,n){var o,r,i,a,s;o=t("../chatbox/HostPage"),a=t("./friendlyIframe"),i=t("./olark-shim").createOlarkShim,r=t("../chatbox/MiniLogger"),s=new r,e.exports=function(t,e){var n,o,r;return n=function(){var n,o,r,i;for(o=0,r=(i=e.querySelectorAll("[data-olark]")).length;o<r;o++)if("IFRAME"===(n=i[o]).tagName)return n.contentWindow;return t},o=function(t,e){if(e)return setTimeout(function(){return o(t)},0);try{return t.remove()}catch(e){if(null!=t?t.parentElement:void 0)return t.parentElement.removeChild(t)}},t.olark._.reset=r=function(){var l,u,c,d,f,h,g,p;for(h=t.olark,f=h._.l,u=[],l=h._.preloadCallstack.shift();l;)u.push(l),l=h._.preloadCallstack.shift();for(n().onunload=function(){var n;(h=i(t,f,"loader-reset"))._.s=u,h._.reset=r;try{return a.fif(t,e,a.getApplicationUrl(t))}catch(t){return n=t,s.log(n.message),s.log("#iframe-reload-failure")}},c=0,d=(p=e.querySelectorAll("[data-olark]")).length;c<d;c++)g=p[c],o(g,"IFRAME"===g.tagName);return!1}}},{"../chatbox/HostPage":1,"../chatbox/MiniLogger":3,"./friendlyIframe":4,"./olark-shim":7}],7:[function(t,e,n){var o;o=function(t,e,n){var o;return o={s:[],t:[(new Date).getTime()],c:{},l:e,P:[],legacyLoaderName:n||"loader-reset"},t.olark=function(){return o.s.push(arguments),o.t.push((new Date).getTime()),this},t.olark._=o,t.olark.extend=function(e,n){return t.olark("extend",e,n)},t.olark.identify=function(e){return t.olark("identify",o.i=e)},t.olark.configure=function(e,n){return t.olark("configure",e,n),o.c[e]=n},t.olark},e.exports={createOlarkShim:o}},{}],8:[function(t,e,n){(function(e){var n=e.window||window,o=n.document;t("../../loaders/olark-reset")(n,o);var r=t("../../chatbox/MiniLogger"),i=t("../../loaders/friendlyIframe"),a=t("../../loaders/maintenance"),s=new r;a.logToConsoleAndBootIfAllowed(function(){try{i.fif(n,o,i.getApplicationUrl(n))}catch(t){s.log(t.message),s.log("#iframe-load-failure")}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../chatbox/MiniLogger":3,"../../loaders/friendlyIframe":4,"../../loaders/maintenance":5,"../../loaders/olark-reset":6}]},{},[8]);