1!function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=function(root,jQuery){return void 0===jQuery&&(jQuery="undefined"!=typeof window?require("jquery"):require("jquery")(root)),factory(jQuery),jQuery}:factory(jQuery)}((function($){"use strict";if(void 0!==$)if($.fn.jquery.match(/-ajax/))"console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version.");else{var opened=[],pruneOpened=function(remove){return opened=$.grep(opened,(function(fl){return fl!==remove&&fl.$instance.closest("body").length>0}))},iFrameAttributeSet={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1},eventMap={keyup:"onKeyUp",resize:"onResize"},globalEventHandler=function(event){$.each(Featherlight.opened().reverse(),(function(){if(!event.isDefaultPrevented()&&!1===this[eventMap[event.type]](event))return event.preventDefault(),event.stopPropagation(),!1}))},toggleGlobalEvents=function(set){if(set!==Featherlight._globalHandlerInstalled){Featherlight._globalHandlerInstalled=set;var events=$.map(eventMap,(function(_,name){return name+"."+Featherlight.prototype.namespace})).join(" ");$(window)[set?"on":"off"](events,globalEventHandler)}};Featherlight.prototype={constructor:Featherlight,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"✕",loading:"",persist:!1,otherClose:null,beforeOpen:$.noop,beforeContent:$.noop,beforeClose:$.noop,afterOpen:$.noop,afterContent:$.noop,afterClose:$.noop,onKeyUp:$.noop,onResize:$.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(target,config){"object"!=typeof target||target instanceof $!=!1||config||(config=target,target=void 0);var self=$.extend(this,config,{target:target}),css=self.resetCss?self.namespace+"-reset":self.namespace,$background=$(self.background||['<div class="'+css+"-loading "+css+'">','<div class="'+css+'-content">','<button class="'+css+"-close-icon "+self.namespace+'-close" aria-label="Close">',self.closeIcon,"</button>",'<div class="'+self.namespace+'-inner">'+self.loading+"</div>","</div>","</div>"].join("")),closeButtonSelector="."+self.namespace+"-close"+(self.otherClose?","+self.otherClose:"");return self.$instance=$background.clone().addClass(self.variant),self.$instance.on(self.closeTrigger+"."+self.namespace,(function(event){if(!event.isDefaultPrevented()){var $target=$(event.target);("background"===self.closeOnClick&&$target.is("."+self.namespace)||"anywhere"===self.closeOnClick||$target.closest(closeButtonSelector).length)&&(self.close(event),event.preventDefault())}})),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;var self=this,filters=this.constructor.contentFilters,readTargetAttr=function(name){return self.$currentTarget&&self.$currentTarget.attr(name)},targetValue=readTargetAttr(self.targetAttr),data=self.target||targetValue||"",filter=filters[self.type];if(!filter&&data in filters&&(filter=filters[data],data=self.target&&targetValue),data=data||readTargetAttr("href")||"",!filter)for(var filterName in filters)self[filterName]&&(filter=filters[filterName],data=self[filterName]);if(!filter){var target=data;if(data=null,$.each(self.contentFilters,(function(){return(filter=filters[this]).test&&(data=filter.test(target)),!data&&filter.regex&&target.match&&target.match(filter.regex)&&(data=target),!data})),!data)return"console"in window&&window.console.error("Featherlight: no content filter found "+(target?' for "'+target+'"':" (no target specified)")),!1}return filter.process.call(self,data)},setContent:function($content){return this.$instance.removeClass(this.namespace+"-loading"),this.$instance.toggleClass(this.namespace+"-iframe",$content.is("iframe")),this.$instance.find("."+this.namespace+"-inner").not($content).slice(1).remove().end().replaceWith($.contains(this.$instance[0],$content[0])?"":$content),this.$content=$content.addClass(this.namespace+"-inner"),this},open:function(event){var self=this;if(self.$instance.hide().appendTo(self.root),!(event&&event.isDefaultPrevented()||!1===self.beforeOpen(event))){event&&event.preventDefault();var $content=self.getContent();if($content)return opened.push(self),toggleGlobalEvents(!0),self.$instance.fadeIn(self.openSpeed),self.beforeContent(event),$.when($content).always((function($openendContent){$openendContent&&(self.setContent($openendContent),self.afterContent(event))})).then(self.$instance.promise()).done((function(){self.afterOpen(event)}))}return self.$instance.detach(),$.Deferred().reject().promise()},close:function(event){var self=this,deferred=$.Deferred();return!1===self.beforeClose(event)?deferred.reject():(0===pruneOpened(self).length&&toggleGlobalEvents(!1),self.$instance.fadeOut(self.closeSpeed,(function(){self.$instance.detach(),self.afterClose(event),deferred.resolve()}))),deferred.promise()},resize:function(w,h){if(w&&h){this.$content.css("width","").css("height","");var ratio=Math.max(w/(this.$content.parent().width()-1),h/(this.$content.parent().height()-1));ratio>1&&(ratio=h/Math.floor(h/ratio),this.$content.css("width",w/ratio+"px").css("height",h/ratio+"px"))}}
1,chainCallbacks:function(chain){for(var name in chain)this[name]=$.proxy(chain[name],this,$.proxy(this[name],this))}},$.extend(Featherlight,{id:0,autoBind:"[data-featherlight]",defaults:Featherlight.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(elem){return elem instanceof $&&elem},process:function(elem){return!1!==this.persist?$(elem):$(elem).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(url){var deferred=$.Deferred(),img=new Image,$img=$('<img src="'+url+'" alt="" class="'+this.namespace+'-image" />');return img.onload=function(){$img.naturalWidth=img.width,$img.naturalHeight=img.height,deferred.resolve($img)},img.onerror=function(){deferred.reject($img)},img.src=url,deferred.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(html){return $(html)}},ajax:{regex:/./,process:function(url){var deferred=$.Deferred(),$container=$("<div></div>").load(url,(function(response,status){"error"!==status&&deferred.resolve($container.contents()),deferred.reject()}));return deferred.promise()}},iframe:{process:function(url){var deferred=new $.Deferred,$content=$("<iframe/>"),css=function(obj,prefix){var attrs={},regex=new RegExp("^"+prefix+"([A-Z])(.*)");for(var key in obj){var match=key.match(regex);match&&(attrs[(match[1]+match[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=obj[key])}return attrs}(this,"iframe"),attrs=function(obj,set){var r={};for(var key in obj)key in set&&(r[key]=obj[key],delete obj[key]);return r}(css,iFrameAttributeSet);return $content.hide().attr("src",url).attr(attrs).css(css).on("load",(function(){deferred.resolve($content.show())})).appendTo(this.$instance.find("."+this.namespace+"-content")),deferred.promise()}},text:{process:function(text){return $("<div>",{text:text})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(element,namespace){var Klass=this,regexp=new RegExp("^data-"+namespace+"-(.*)"),config={};return element&&element.attributes&&$.each(element.attributes,(function(){var match=this.name.match(regexp);if(match){var val=this.value,name=$.camelCase(match[1]);if($.inArray(name,Klass.functionAttributes)>=0)val=new Function(val);else try{val=JSON.parse(val)}catch(e){}config[name]=val}})),config},extend:function(child,defaults){var Ctor=function(){this.constructor=child};return Ctor.prototype=this.prototype,child.prototype=new Ctor,child.__super__=this.prototype,$.extend(child,this,defaults),child.defaults=child.prototype,child},attach:function($source,$content,config){var Klass=this;"object"!=typeof $content||$content instanceof $!=!1||config||(config=$content,$content=void 0);var sharedPersist,namespace=(config=$.extend({},config)).namespace||Klass.defaults.namespace,tempConfig=$.extend({},Klass.defaults,Klass.readElementConfig($source[0],namespace),config),handler=function(event){var $target=$(event.currentTarget),elemConfig=$.extend({$source:$source,$currentTarget:$target},Klass.readElementConfig($source[0],tempConfig.namespace),Klass.readElementConfig(event.currentTarget,tempConfig.namespace),config),fl=sharedPersist||$target.data("featherlight-persisted")||new Klass($content,elemConfig);"shared"===fl.persist?sharedPersist=fl:!1!==fl.persist&&$target.data("featherlight-persisted",fl),elemConfig.$currentTarget.blur&&elemConfig.$currentTarget.blur(),fl.open(event)};return $source.on(tempConfig.openTrigger+"."+tempConfig.namespace,tempConfig.filter,handler),{filter:tempConfig.filter,handler:handler}},current:function(){var all=this.opened();return all[all.length-1]||null},opened:function(){var klass=this;return pruneOpened(),$.grep(opened,(function(fl){return fl instanceof klass}))},close:function(event){var cur=this.current();if(cur)return cur.close(event)},_onReady:function(){var Klass=this;if(Klass.autoBind){var $autobound=$(Klass.autoBind);$autobound.each((function(){Klass.attach($(this))})),$(document).on("click",Klass.autoBind,(function(evt){if(!evt.isDefaultPrevented()){var $cur=$(evt.currentTarget);if($autobound.length!==($autobound=$autobound.add($cur)).length){var data=Klass.attach($cur);(!data.filter||$(evt.target).parentsUntil($cur,data.filter).length>0)&&data.handler(evt)}}}))}},_callbackChain:{onKeyUp:function(_super,event){return 27===event.keyCode?(this.closeOnEsc&&$.featherlight.close(event),!1):_super(event)},beforeOpen:function(_super,event){return $(document.documentElement).addClass("with-featherlight"),this._previouslyActive=document.activeElement,this._$previouslyTabbable=$("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=$("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map((function(_i,elem){return $(elem).attr("tabindex")})),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur&&document.activeElement.blur(),_super(event)},afterClose:function(_super,event){var r=_super(event),self=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each((function(i,elem){$(elem).attr("tabindex",self._previousWithTabIndices[i])})),this._previouslyActive.focus(),0===Featherlight.opened().length&&$(document.documentElement).removeClass("with-featherlight"),r},onResize:function(_super,event){return this.resize(this.$content.naturalWi
1dth,this.$content.naturalHeight),_super(event)},afterContent:function(_super,event){var r=_super(event);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(event),r}}}),$.featherlight=Featherlight,$.fn.featherlight=function($content,config){return Featherlight.attach(this,$content,config),this},$(document).ready((function(){Featherlight._onReady()}))}else"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.");function Featherlight($content,config){if(!(this instanceof Featherlight)){var fl=new Featherlight($content,config);return fl.open(),fl}this.id=Featherlight.id++,this.setup($content,config),this.chainCallbacks(Featherlight._callbackChain)}})); 2//# sourceURL=https://cdn2.hubspot.net/hub/5348071/hub_generated/template_assets/14011822014/1702062764879/Clientpoint/js/featherlight.js
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.