function DemandbaseLoad(n){function c(){function e(){o=!0;try{var i=Demandbase.CompanyAutocomplete.jQuery,e="",s=!1,f=null;typeof Demandbase.Config.forms.companyID!="undefined"?(f=i("#"+Demandbase.Config.forms.companyID),e=Demandbase.Config.forms.companyID):i.each(Demandbase.Config.forms.companyFields,function(){i("#"+this).length&&(f=i("#"+this),e=this)});f.attr("autocomplete",/Chrome/.test(navigator.userAgent)?!1:"off");Demandbase.jQuery.ajaxSetup({beforeSend:function(){this.url.match(/demandbase\.com\/autocomplete\?callback/g)!==null&&l(t,e)}});i.ui.autocomplete.prototype._resizeMenu=function(){this.menu.element.outerWidth(this.element.outerWidth(!0)+2)};i.ui.autocomplete.prototype._renderMenu=function(t,u){if(i.each(u,function(n,r){return i("<li><\/li>").data("ui-autocomplete-item",r).append(i("<a><\/a>").html(r.label)).appendTo(t)}),!t.parent().find("> div").length){t.prepend('<li class="wrapper-label">Select your company<\/li>');t.append('<li class="wrapper-label">Don\'t see your company? <a href="#" id="use-input-value">Close List &gt;<\/a><\/li>');i("#use-input-value").on("click",function(t){t.preventDefault();t.stopPropagation();f.autocomplete("close");r||n({},i)})}};f.attr("placeholder","").on("autocompletesearch",function(){u=!1}).on("autocompleteopen",function(){s=!1;u=!0}).on("autocompleteselect",function(t,r){s=!0;n(r.item.pick,i);c.call(t.delegateTarget,!1)}).on("keydown",function(t){t.keyCode!=13&&t.keyCode!=9||i("#ui-active-menuitem").length||(t.preventDefault(),i(this).autocomplete("close"),r||n({},i),c.call(t.delegateTarget,!0))}).on("blur",function(){setTimeout(function(){!f.val().length||s||r||n({},i)},200)})}catch(h){console.log("error")}}function n(n,u){var f=Demandbase.Config.forms,e=Object.keys(n).length?"#F8FEBE":"";if(i(),r=!0,u("#FormFillType").val(Object.keys(n).length?"Data Append":"None"),alreadyPickUpDemanBase=!!Object.keys(n).length,!Object.keys(n).length){u.each(f.fieldMap,function(n,t){var i=jQuery("#"+t);i.val("").css("backgroundColor",e).trigger("change")});return}u.each(f.fieldMap,function(t,i){var r=jQuery("#"+i);if(t=="country"){s=n.state;jQuery("#State_Province").on("populated",h);r.find('option[dbcountrycode="'+n[t]+'"]').prop("selected",!0)}else t=="employee_count"?(i=="DB_CompanySize"&&r.val(n[t]),u("#EmployeeCount").length&&(r=jQuery("#EmployeeCount"),r.val(MapCompanySize(n[t])).parents(".form-group").hide())):r.val(n[t]);r.trigger("change");r.is(":visible")&&r.css("backgroundColor",e)});u(t).find("select[demandbasefield=industry]").each(function(i,r){MapSIC(t,n.primary_sic,r.id)});disableFormValidCheck(t,!0)}function h(){jQuery("#State_Province").val(s).off("populated",h)}function c(n){var i=$(this);setTimeout(function(){var u=$(t).find(":input").filter(":visible"),r=!1;u.each(function(){if(r){if($(this).val()==""||n)return $(this).trigger("focus"),!1}else $(this).attr("id")!=i.attr("id")||r||(r=!0)})},10)}function l(){u===!1&&(f&&clearTimeout(f),f=setTimeout(function(){u===!1&&n({},Demandbase.CompanyAutocomplete.jQuery)},1800))}Demandbase.Config.forms.fieldMap.hasOwnProperty("watch_list_accountownersyslog")||(Demandbase.Config.forms.fieldMap.watch_list_accountownersyslog="AccountOwnerSyslogNg");Demandbase.Config.forms.fieldMap.hasOwnProperty("watch_list_accounttargetsyslog")||(Demandbase.Config.forms.fieldMap.watch_list_accounttargetsyslog="AccountTargetSyslogNg");var o=!1;if(!$(t).length){if(t="#frmManageAccount",!$(t).length)return!1;if(!$("#CreateAccountAnchor").length)return window.Demandbase.Config.isFormPage=function(){return!1},!1}typeof demandbasecall=="undefined"||demandbasecall||t=="#frmManageAccount"||(window.Demandbase.Config.isFormPage=function(){return!1},n({},$));setTimeout(function(){location.search=="?debug"&&console.log(typeof Demandbase.Config.forms.hooks);typeof Demandbase.Config.forms.hooks!="undefined"?$.extend(Demandbase.Config.forms.hooks,{init:e}):Demandbase.Config.forms.hooks={init:e};location.search=="?debug"&&console.log(Demandbase.Config.forms.hooks);var n=setInterval(function(){if(typeof Demandbase.jQuery=="function"){try{Demandbase.jQuery.ready()}catch(t){console.log('Demandbase jQuery ready "dom_ready" not a method')}clearInterval(n)}},10),t=setInterval(function(){try{o||typeof Demandbase.CompanyAutocomplete.jQuery!="function"||(clearInterval(n),clearInterval(t),e())}catch(i){}},100);setTimeout(function(){o||(clearInterval(n),clearInterval(t),i())},3e3)})}function i(){var n="#frmRegister";$(n).length?$(n).find("[firstscreen=0]").show():(n="#frmManageAccount",$(n).length&&$(n).find("[id^=tr_]").filter(":not([id=tr_OptInAccept])").filter(":not([id=tr_OptInPrivacy])").show());$("body").trigger("demandbase-form-error")}function e(){var n=siteTags.DbDomainTagId;$('<input type="hidden" id="db_PostalCode" name="db_PostalCode">').insertAfter($("#isdirty")),function(){typeof OnetrustActiveGroups!="string"||OnetrustActiveGroups.match(/,C0003,/)||i()}(),function(n,t,r,u,f){var e=t.createElement(r),o=t.getElementsByTagName(r)[0];e.async=1;e.id=f;e.src=u;e.onload=c;e.onerror=i;o.parentNode.insertBefore(e,o)}(window,document,"script","https://tag.demandbase.com/"+n+".min.js","demandbase_js_lib")}var t="#frmRegister",o;if(n){i();return}var r=!1,f=null,u=!1,s="",h=!1;typeof siteTags.DbDomainTagId=="undefined"&&console.warn("siteTags.DbDomainTagId is undefined. Using shared demandbase tag id as backup");o=setInterval(function(){typeof ga!="undefined"&&(h=!0,clearInterval(o),e())},10);setTimeout(function(){h||e()},4e3)}(function(){function r(){var i,u,f,r;if(l)return!1;if(l=!0,w(),i=$("#search"),u=$("#searchbox"),i.length){b();f=$(".coveo-show-if-no-results");f.text(f.text()).toLocaleString().trim();r=null;n=i.hasClass("coveo-search-v3");i.on("afterComponentsInitialization",function(){n&&($(this).removeClass("hidden"),$(this).find(".CoveoSearchbox input").attr("placeholder",$(this).find(".CoveoSearchbox input").attr("aria-label")),$(this).find(".CoveoFacet").each(function(n){n!==0&&$(this).coveo("collapse")}))}).on("preprocessResults",function(n,i){t=[];$.each(i.results.results,function(n,i){t.push(i.raw)})}).on("querySuccess",function(n,t){var i=encodeURI($(this).find(".magic-box-input input").val().trim().toLowerCase()),r;t.results.totalCount=="0"&&(i=i+"&cat=noresult");try{i!==""&&typeof ga=="function"&&(r=ga.getAll(),r.forEach(function(n){var t=n.get("name");ga(t+".send","pageview",document.location.pathname+"?q="+i)}))}catch(n){}}).on("DOMNodeInserted",".coveo-facet-column",function(){var n=this;r!==null&&clearTimeout(r);r=setTimeout(function(){$(n).find(".coveo-facet-search").each(function(){$(this).data("attrchangeStatus")===undefined&&$(this).attrchange({trackValues:!0,callback:p})});$(n).attrchange({trackValues:!0,callback:function(n){v.call(this,n,i)}});r=null},10)}).on("DOMNodeInserted",".CoveoResult",y).on("DOMNodeInserted",".coveo-results-header",function(){var n=$(".coveo-facet-dropdown-results-header");n.length&&n.html($(this).html())}).on("DOMNodeInserted",".magic-box-suggestions",h).on("populateOmnibox",c).on("keyup",".CoveoOmnibox input",s).on("focus",".coveo-facet-search-input",function(){$(this).parents(".coveo-facet-search").addClass("focus")}).on("blur",".coveo-facet-search-input",function(){$(this).parents(".coveo-facet-search").removeClass("focus")}).on("mousedown touchstart",".coveo-facet-header-settings",function(t){if(n){t.preventDefault();var i=$(t.target).closest(".CoveoFacet");i.hasClass("coveo-facet-collapsed")?i.coveo("expand"):i.coveo("collapse")}})}if(u.length)u.on("DOMNodeInserted",".magic-box-suggestions",h).on("populateOmnibox",c).on("keyup",".CoveoOmnibox input",s).on("newQuery",function(){$("#head-v3").length?$(".hv3-search, .hv3-search .search-wrapper").removeClass("open"):$("#search-button, #masthead-search").removeClass("open")});if(n)$(window).on("load",function(){processEllipsis()})}function v(n,t){var i=this;e!==null&&clearTimeout(e);e=setTimeout(function(){if(n.newValue==="coveo-facet-column"&&n.oldValue==="coveo-facet-column coveo-dropdown-content"&&($("#custom-facet-dropdown-header, .coveo-facet-dropdown-results-header").remove(),$(window).off("resize",u)),$(i).hasClass("coveo-facet-dropdown-content")){var r=$("#custom-facet-dropdown-header"),f=r.find(".coveo-facet-dropdown-results-header");if(!r.length){r=$('<div id="custom-facet-dropdown-header">').prependTo(i);r.append('Filters <div class="pull-right"><a href="#clear" class="custom-facet-clear">Clear All<\/a> | <a href="#done" class="custom-facet-done">Done<\/a><\/div>');f=$('<div class="coveo-facet-dropdown-results-header">').insertAfter(r);r.on("click",".custom-facet-done",{t:t},u).on("click",".custom-facet-clear",function(n){n.preventDefault();t.find(".coveo-breadcrumb-clear-all-icon").trigger("click")});$(window).on("resize",{t:t},u)}f.html(t.find(".coveo-results-header").html())}})}function y(){var o=$(this).find(".marketing-type"),r="",u=o.find('[data-field="@qxmarketingtype"]'),f=n?o.find('[data-field="@qxmarketingassettype"]'):o.find('[data-field="@qxcategory"]'),s=$(this).index(".CoveoResult"),e="";if(u.length)try{e=t[s].qxmarketingtype;r=e.toLowerCase().replace(/\s/g,"-").trim();u.find("> svg").length||(i[r]&&!n?$(a.replace("{{id}}",i[r])).prependTo(u):u.addClass("asset-type-"+r))}catch(h){}else if(f.length)try{e=n?t[s].qxmarketingtype:t[s].qxcategory;r=e.toLowerCase().replace(/\s/g,"-").trim();f.find("> svg").length||(i[r]&&!n?$(a.replace("{{id}}",i[r])).prependTo(f):f.addClass("asset-type-"+r))}catch(h){}}function p(n){var u=n.newValue,i=/coveo-facet-search-no-results/,t,r;i.test(u)&&i.test(n.oldValue)!==i.test(n.newValue)&&(t=null,$(this).parents(".CoveoFacet").find(".facet-no-result-msg").length?(t=$(this).next(),t.css({width:"auto",left:"0",bottom:"0"})):(r="No result found. Please modify your search query and try again.".toLocaleString(),t=$('<div class="facet-no-result-msg">'+r+"<\/div>").insertAfter(this)),t.css({width:$(this).outerWidth()+"px",left:$(this).css("marginLeft")+"px"}),t.css({bottom:-1*($(this).offset().top+$(this).outerHeight()-t.offset().top)+"px"}))}function w(){/oneidentity/.test(location.host)?$("html").addClass("oid"):/syslog/.test(location.host)&&$("html").addClass("syslog")}function s(){var n=$(this).parents(".CoveoSearchInterface");"View All Search Results"==n.find(".coveo-omnibox-selected").text()&&$(this).val(f)}function b(){(function(n){function i(){var n=document.createElement("p"),t=!1;if(n.addEventListener)n.addEventListener("DOMAttrModified",function(){t=!0},!1);else if(n.attachEvent)n.attachEvent("onDOMAttrModified",function(){t=!0});else return!1;return n.setAttribute("id","target"),t}function r(t,i){var r,u;t&&(r=this.data("attr-old-value"),i.attributeName.indexOf("style")>=0?(r.style||(r.style={}),u=i.attributeName.split("."),i.attributeName=u[0],i.oldValue=r.style[u[1]],i.newValue=u[1]+":"+this.prop("style")[n.camelCase(u[1])],r.style[u[1]]=i.newValue):(i.oldValue=r[i.attributeName],i.newValue=this.attr(i.attributeName),r[i.attributeName]=i.newValue),this.data("attr-old-value",r))}var t=window.MutationObserver||window.WebKitMutationObserver;n.fn.attrchange=function(u,f){var e,s,o;return typeof u=="object"?(e={trackValues:!1,callback:n.noop},typeof u=="function"?e.callback=u:n.extend(e,u),e.trackValues&&this.each(function(t,i){for(var u={},r,t=0,f=i.attributes,e=f.length;t<e;t++)r=f.item(t),u[r.nodeName]=r.value;n(this).data("attr-old-value",u)}),t)?(s={subtree:!1,attributes:!0,attributeOldValue:e.trackValues},o=new t(function(t){t.forEach(function(t){var i=t.target;e.trackValues&&(t.newValue=n(i).attr(t.attributeName));n(i).data("attrchange-status")==="connected"&&e.callback.call(i,t)})}),this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",o).each(function(){o.observe(this,s)})):i()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(t){t.originalEvent&&(t=t.originalEvent);t.attributeName=t.attrName;t.oldValue=t.prevValue;n(this).data("attrchange-status")==="connected"&&e.callback.call(this,t)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(t){t.attributeName=window.event.propertyName;r.call(n(this),e.trackValues,t);n(this).data("attrchange-status")==="connected"&&e.callback.call(this,t)}):this:typeof u=="string"&&n.fn.attrchange.hasOwnProperty("extensions")&&n.fn.attrchange.extensions.hasOwnProperty(u)?n.fn.attrchange.extensions[u].call(this,f):void 0}})(jQuery)}function h(){var n=this,t=$(this).data("magicBoxTimer");t!==null&&clearTimeout(t);t=setTimeout(function(){if(!$(n).find(".wrapper").length){var i=$(n).find("> div:lt(2)"),t=$('<div class="wrapper">').prependTo(n);$(n).find("#magic-box-suggestion-0").appendTo(t);$(n).find("#magic-box-suggestion-1").appendTo(t);t.find(".magic-box-suggestion").length>20&&t.find(".magic-box-suggestion:gt(20)").remove()}$(n).find(".magic-box-suggestion").filter(":not(.magic-box-suggestion-footer)").length?$(n).show():$(n).hide()},10);$(this).data("magicBoxTimer",t)}function c(n,t){f=t.completeQueryExpression.word;var i=$('<div><div class="magic-box-suggestion coveo-omnibox-selectable magic-box-suggestion-footer" style="font-weight: 700;">View All Search Results<\/div><\/div>');i.on("click keyboardSelect",".magic-box-suggestion",function(){var n=$(this).parents(".CoveoSearchInterface");"View All Search Results"==n.find(".coveo-omnibox-selected").text()&&n.find(".CoveoOmnibox input").val(f);$(this).parents(".CoveoSearchbox").find(".CoveoSearchButton").trigger("click");t.closeOmnibox()});t.rows.push({zIndex:0,element:i[0]})}function u(n){var t=n.data.t;n.preventDefault();t.find(".coveo-dropdown-background-active").trigger("click")}var l=!1,f="",a='<svg><use xlink:href="#{{id}}"><\/use><\/svg>',i={community:"Community",videos:"Video",pso:"Briefcase",training:"Certificate",trial:"Download",datasheet:"TextAnalytics",ebook:"BookLibrary",events:"Calendar",faq:"FormHint",solution:"Documents","case-study":"Library","white-papers":"Documents","on-demand-webcast":"Webcast",notification:"Bell","product-lifecycle":"Sync",essentials:"CheckList",software:"Software",documentation:"File","technical-briefs":"File"},t=[],e=null,n,o;document.addEventListener("DOMContentLoaded",function(){if(typeof $=="undefined"){var n=document.createElement("script");n.async=1;n.src="https://www.quest.com/static/library/jQuery/jquery-3.6.0.min.js";n.onload=function(){r()};document.head.appendChild(n)}else r()});o=setInterval(function(){(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive")&&(clearInterval(o),r())},10);setTimeout(function(){clearInterval(o)},2e3)})();DemandbaseLoad(!1),function(){function t(){String.toLocaleString({fr:{"What can we help you find?":"Pouvons-nous vous aider ?"},de:{"What can we help you find?":"Was suchen Sie?"},"pt-br":{"What can we help you find?":"Como podemos ajudar?"},"es-es":{"What can we help you find?":"¿Qué está buscando?"},"zh-cn":{"What can we help you find?":"我们可以帮助您查找什么内容？"},ja:{"What can we help you find?":"検索はこちらから"}})}function n(n){n?document.addEventListener("DOMContentLoaded",function(){i()}):i()}function i(){var n="search/gettoken";n=typeof RootPath!="undefined"?RootPath+n:"/"+n;var r=10,t=0,i=setInterval(function(){var u=Coveo.$$(document).find("#searchbox");t==r?clearInterval(i):u===null?t++:(clearInterval(i),$.ajax({url:n}).done(function(n){var t="/",i;typeof RootPath!="undefined"&&(t=RootPath);i=Coveo.$$(document).find("#searchbox");Coveo.SearchEndpoint.configureCloudV2Endpoint("",n.data);Coveo.initSearchbox(i,t+"search/results",{pipeline:"Marketing Global Search",Searchbox:{placeholder:"What can we help you find?".toLocaleString()}})}))},10)}function r(n,t,i){var r=document.createElement("script");r.async=1;r.src=n;typeof t!="undefined"&&(r.className=t);typeof i=="function"&&(r.onload=i);document.head.appendChild(r)}if($(".coveo-script").length)t(),n(!0);else if($("head").append('<!--[if lte IE 9]><style id="coveo-test-ie9"><\/style><![endif]-->'),!$("#coveo-test-ie9").length){var u={"cn-zh":"zh-cn","br-pt":"pt-br","fr-fr":"fr","de-de":"de","jp-ja":"ja","mx-es":"es-es","es-es":"es-es"};r("/static/coveo/js/coveojssearch.lazy.min.js","coveo-script",function(){var i=location.pathname.split("/")[1];u[i]!==undefined?r("/static/coveo/js/cultures/"+u[i]+".js","",function(){t();n(!1)}):n(!1)})}}()