1!function(){"use strict";class e{constructor(){this._endpoint=null,this._searchURL=null,this._defaultQueryParams={},this._defaultSortParams={},this._facetOptions=[],this._keywordParam="q",this._orderParam=null,this._pagerParam="_page",this._sortParam=null}get endpoint(){return this._endpoint}set endpoint(e){this._endpoint=e}get facetOptions(){return this._facetOptions}set facetOptions(e){this._facetOptions=e}get searchURL(){return this._searchURL}set searchURL(e){this._searchURL=e}get defaultQueryParams(){return this._defaultQueryParams}set defaultQueryParams(e){this._defaultQueryParams=e}get defaultSortParams(){return this._defaultSortParams}set defaultSortParams(e){this._defaultSortParams=e}get keywordParam(){return this._keywordParam}set keywordParam(e){this._keywordParam=e}get orderParam(){return this._orderParam}set orderParam(e){this._orderParam=e}get pagerParam(){return this._pagerParam}set pagerParam(e){this._pagerParam=e}get sortParam(){return this._sortParam}set sortParam(e){this._sortParam=e}}let t=class{constructor(e){const{endpoint:t,keywordParam:n,searchURL:r,defaultQueryParams:a,serverSideRendered:i}=e;this._isLoading=!1,this._defaultQueryParams=a,this._queryParams=[],this._query={},this._title="Search",this._endpoint=t,this._keywordParam=n,this._searchURL=r,this._serverSideRendered=void 0!==i&&i,this._fetchOptions={method:"GET"}}get defaultQueryParams(){return this._defaultQueryParams}get endpoint(){return this._endpoint}set endpoint(e){this._endpoint=e}get fetchOptions(){return this._fetchOptions}set fetchOptions(e){this._fetchOptions=e}get keywordParam(){return this._keywordParam}get isLoading(){return this._isLoading}set isLoading(e){this._isLoading=e}get meta(){return this._meta}set meta(e){this._meta=e}get query(){return this._query}set query(e){this._query=e}get queryParams(){return this._queryParams}set queryParams(e){this._queryParams=e}get searchURL(){return this._searchURL}set searchURL(e){this._searchURL=e}get templates(){return this._templates}set templates(e){this._templates=e}get title(){return this._title}set title(e){this._title=e}get _buildQueryParams(){const e=[],t=this.query;return this.queryParams.map(function(n){this._isEmptyQuery(n,t[n])||e.push(n+"="+t[n])}.bind(this)),e.join("&")}compact(e){return e.filter((e=>null!==e))}debounce(e,t,n){let r;return function(){const a=this,i=arguments,s=function(){r=null,n||e.apply(a,i)},o=n&&!r;clearTimeout(r),r=setTimeout(s,t),o&&e.apply(a,i)}}init(){const{defaultQueryParams:e,queryParams:t}=this,n=Object.keys(e).concat(t),r=this.compact(n),a=this.uniq(r);return this.queryParams=a,this.query=this._initQuery(),!!this._serverSideRendered||this._fetchRequest()}uniq(e){const t=[];return e.forEach((e=>{t.indexOf(e)<0&&t.push(e)})),t}template(e,t){let n=this.templates[e];return t.map((function({variable:e,value:t}){n=n.replace(e,t)})),n}_fetchRequest(){$(this).trigger("isLoading",[!0]);const e=this.fetchOptions,t=this._buildEndpointURL();return new Promise(((n,r)=>{fetch(t,e).then((e=>e.json())).then(n).catch(r)})).then(this._handleResponse.bind(this)).catch(this._handleError.bind(this))}_buildURL(){const{searchURL:e,_buildQueryParams:t}=this;return t.length>1?`${e}?${t}`:`${e}`}_buildEndpointURL(){const{endpoint:e,_buildQueryParams:t}=this;return t.length>1?`${e}?${t}`:`${e}`}_buildQueryParamsFaker(e,t){const n=e+"="+this.query[e],r=e+"="+t;return this._buildURL().replace(n,r)}_handleError(e){$(this).trigger("isLoading",[!1]).trigger("HandleError",[e])}_handleResponse(e){this.meta=e.meta,$(this).trigger("isLoading",[!1]).trigger("HandleResponse",[e])}_helperUpdateKeywords(e){const{pagerParam:t,keywordParam:n}=this;this.query[t]=1,this.query[n]=e,this._updatePushState()}_initQuery(){const{defaultQueryParams:e,queryParams:t}=this,n=e;return t.map((function(e){const t=new RegExp(e+"=([^&]*)"),r=window.location.search.match(t);n[e]=r?r[1]:n[e]})),n}_isEmptyQuery(e,t){const{keywordParam:n}=this;return!t&&e!==n}_updatePushState(){const e=this._buildURL();history.pushState({search:e},this.title,e),this._fetchRequest()}_updateQueryParam(e,t){this.query[e]=t,this._updatePushState()}};
1class n extends t{constructor(e){super(e);const{pagerParam:t}=e;this._meta=null,this._pagerParam=t||"_page",this._pagerSeparator={current:!1,text:"...",link:null,value:null},this._pagerStates=[{default:3,threshold:5},{default:3,threshold:5},{default:3,threshold:5}]}get currentPage(){return Number(this.query[this._pagerParam])}get firstResult(){const{currentPage:e,limit:t}=this;return Number(Math.ceil(e*t-(t-1)))}get isFullPager(){const{totalPages:e}=this;return e<8}get keywords(){const{keywordParam:e}=this;return String(this.query[e])}get lastResult(){const{currentPage:e,limit:t,totalResults:n}=this,r=Math.ceil(e*t);return Number(r>n?n:r)}get limit(){return Number(this.query._limit)}get pagerParam(){return this._pagerParam}set pagerParam(e){this._pagerParam=e}get pagerStates(){return this._pagerStates}set pagerStates(e){this._pagerStates=e}get pagerSeparator(){return this._pagerSeparator}set pagerSeparator(e){this._pagerSeparator=e}get totalPages(){return Number(this.meta.totalPages)}set totalPages(e){this.meta||(this.meta={}),this.meta.totalPages=Number(e)}get totalResults(){return Number(this.meta.totalResults)}buildPager(){let e=this._pagerGroup1();const t=this._pagerGroup2(),n=this._pagerGroup3();return e=e.concat(t),e=e.concat(n),e}nextPage(){const{currentPage:e,totalPages:t}=this,n=e!==t?e+1:e;this._updateQueryParam(this.pagerParam,n)}previousPage(){const{currentPage:e}=this,t=e>1?Number(e)-1:e;this._updateQueryParam(this.pagerParam,t)}_pagerGroup1(){const{currentPage:e,pagerSeparator:t,pagerStates:n,totalPages:r}=this,a=n[1];let i=1;e<a.default&&(i=a.default),e>=a.default&&e<a.threshold&&(i=a.threshold),e===a.threshold&&r===a.threshold&&(i=a.threshold),r<=a.threshold&&(i=r),i=i>r?r:i;let s=this._buildPagerResults(1,i);return 1===i&&i!==r&&(s=s.concat([t])),s}_pagerGroup2(){const{currentPage:e,isFullPager:t,pagerSeparator:n,pagerStates:r,totalPages:a}=this,i=r[1],s=r[2];let o=e-1,l=e+1,u=[];if(a<=5)return u;if(6!==a&&7!==a||(o=a,l=a,e<3&&u.push(n)),6===a&&e>=5&&(o=a-2),7===a&&(5===e&&(o=a-3),e>5&&(o=a-2),e>=3&&e<5&&(o=l-1)),a>=8){if(a===i.threshold||a<i.threshold||e<i.threshold)return u;if(e>a-s.threshold+1&&!t)return u}l=l>a?a:l;const c=this._buildPagerResults(o,l);return u=u.concat(c),u}_pagerGroup3(){const{currentPage:e,isFullPager:t,pagerSeparator:n,pagerStates:r,totalPages:a}=this,i=r[2],s=a-i.default+1,o=a-i.threshold+1;if(t)return[];let l=a,u=a;e>s&&(l=s),(e===s||e>o&&e<s)&&(l=o),u=u>a?a:u;let c=l===u?[n]:[];const d=this._buildPagerResults(l,u);return c=c.concat(d),c}_buildPagerObject(e,t,n){return{current:Number(this.currentPage)===Number(n),link:e,text:t,value:n}}_buildPagerGroup(e,t){const n=[];for(let r=e;r<=t;r++)n.push(this._buildPagerObject(null,r,r));return n}_buildPagerResults(e,t){return this._buildPagerGroup(e,t).map(function(e){return e.link=this._buildQueryURL(e.text),e}.bind(this))}_buildQueryURL(e){return this._buildQueryParamsFaker(this.pagerParam,e)}_helperUpdatePage(e){this.query[this.pagerParam]=e,this._updatePushState()}}class r extends n{constructor(e){super(e);
1const{defaultSortParams:t,facetOptions:n,orderParam:r,sortParam:a}=e;this._defaultSortParams=t,this._facetOptions=n,this._orderParam=r||null,this._sortParam=a||null,this._initFacets(),this._initSorting()}get defaultSortParams(){return this._defaultSortParams}get facets(){return this._meta?this._meta.facets:[]}set facets(e){this.meta||(this.meta={}),this.meta.facets=e}get facetSettings(){const{facetOptions:e,facets:t}=this,n={};return e.map((e=>{n[e.name]=e})),t.map((e=>{n[e.name]&&(n[e.name]=Object.assign(n[e.name],e))})),n}get facetOptions(){return this._facetOptions}get orderParam(){return this._orderParam}get sortParam(){return this._sortParam}get sorts(){return this._meta.sorting}_helperUpdateFacet(e,t){const{facetSettings:n,query:r}=this,a=r[e]||null,i=n[e];if(r[this._pagerParam]=1,!a)return r[e]=t,this._updatePushState();if(a===t)return delete r[e],this._updatePushState();if(!i.isMultiCardinality)return delete r[e],r[e]=t,this._updatePushState();const s=a?a.split(","):[],o=s.indexOf(t);return o>=0?delete s[o]:s.push(t),r[e]=this.compact(s).join(","),this._updatePushState()}_helperUpdateSorting(e,t){const{orderParam:n,query:r,sortParam:a}=this;r[n]=t,r[a]=e,this._updatePushState()}_initFacets(){const{facetSettings:e,query:t,queryParams:n}=this,r=[];Object.keys(e).map((n=>{t[n]=e[n].default,r.push(n)}));const a=n.concat(r),i=this.compact(a),s=this.uniq(i);this.queryParams=s}_initSorting(){const{defaultSortParams:e,orderParam:t,query:n,queryParams:r,sortParam:a}=this;n[t]=e[t],n[a]=e[a];const i=r.concat([t,a]),s=this.compact(i),o=this.uniq(s);this.queryParams=o}_isFacetActive(e,t){const{facetSettings:n,query:r}=this,a=n[e]||{},i="boolean"===a.type,s=i?Boolean(t):t,o=i?Boolean(r[e]):r[e];return a.isMultiCardinality?!!o&&o.split(",").indexOf(t)>=0:o===s}}class a extends r{constructor(){const t=".faceted-search",n=new e;n.serverSideRendered=!0,n.keywordParam="keywords",n.sortParam="_sort",n.orderParam="_order",n.defaultQueryParams={_page:1,keywords:"",_limit:6},n.defaultSortParams={_sort:"date",_order:"desc"};const r=$(t).data();n.implementation=r.collection,n.endpoint=encodeURI(r.endpoint),n.searchURL=r.searchUrl?encodeURI(r.searchURL):window.location.pathname,n.facetOptions=[{name:"topic",isMultiCardinality:!0,default:null},{name:"type",isMultiCardinality:!1,default:null}],super(n),this.totalPages=r.totalPages||null,this.facets=r.facets||null,this._keywords="",this._searchContainer=t,this._searchField=".js-search-field",this._searchSubmit=".js-search-submit",this._clearButton=".js-filters-clear",this._resultsContainer=`${t}-results`,this._resultsText=`${t}-results-text`,this._activeFilters=`${t}-active-facets`,this._activeFiltersLink=`${t}-active-facets-link`,this._checkFacets=`${t}-facet[data-type="checkboxes"] input[type="checkbox"]`,this._radioFacets=`${t}-facet[data-type="radios"] input[type="radio"]`,this._noResults=`${t}-no-results`,this._sortContainer=`${t}-results-sort`,this._sortElement=`${t}-results-sort select`,this._pagination=`${t} .pagination`,$(this).on("isLoading",this._responseIsLoading.bind(this)).on("HandleResponse",this._searchResponse.bind(this)).on("HandleResponse",this._buildPagination.bind(this)).on("HandleResponse",this._buildSorts.bind(this)).on("HandleError",((e,t)=>console.error(t))),$("html").on("click",this._searchSubmit,this._keywordSearch.bind(this)).on("change",this._checkFacets,this._checkFacetTrigger.bind(this)).on("change",this._radioFacets,this._radioFacetTrigger.bind(this)).on("click",this._clearButton,this._clearFilters.bind(this)).on("click",this._activeFiltersLink,this._checkFacetTrigger.bind(this)).on("change",this._sortElement,this._sortingTrigger.bind(this)).on("click",".pagination-prev",this.previousPage.bind(this)).on("click",".pagination-next",this.nextPage.bind(this)).on("click",".pagination-pages a",this._paginationTrigger.bind(this))}get searchContainer(){return this._searchContainer||null}set searchContainer(e){this._searchContainer=e}_buildSorts(){const e=$(this._sortElement);e.empty(),this.sorts.map(this._buildSortItem.bind(this,e))}_buildSortItem(e,{label:t,order:n,value:r}){const a=this._isFacetActive("_sort",r)?"selected":"";e.append(`<option value="${r}" data-order="${n}" ${a}>${t}</option>`)}_sortingTrigger(e){e.preventDefault();const t=$(e.target),n=t[0].value,r=t[0].selectedOptions[0].getAttribute("data-order");this._helperUpdateSorting(n,r)}_buildPagination(){$(`${this._pagination} .pagination-pages`).empty(),$(`${this._pagination} .pagination-nav a`).attr("aria-hidden","true"),this.totalPages<=1||($(`${this._searchContainer} .pagination`).attr("aria-hidden","false"),$(`${this._pagination} .pagination-nav a`).attr("aria-hidden","false").attr("data-disabled","false"),$(`${this._pagination} .pagination-prev`).prop("disabled",1===this.currentPage),$(`${this._pagination} .pagination-next`).prop("disabled",this.currentPage===this.totalPages),this.buildPager().map(this._buildPaginationItem))}_buildPaginationItem(e){const{current:t,link:n,text:r,value:a}=e;let i=r;
1"number"==typeof r&&(i=r.toLocaleString());let s=`<a href="${n}" data-value="${a}"><span class="sr-text">Page </span>${i}</a>`;"..."===r&&(s=`<span class="pagination-pages-dots">${r}</span>`);const o=`<a href="#" data-value="${a}" data-current="true"><span class="sr-text">Page </span>${i}</a>`;$(".pagination-pages").append(t?o:s)}_paginationTrigger(e){e.preventDefault(),this._helperUpdatePage($(e.target).data("value"))}_keywordSearch(e){e.preventDefault(),this._keywords=$(this._searchField).val(),this._helperUpdateKeywords(this._keywords)}_checkFacetTrigger(e){e.preventDefault();const t=$(e.currentTarget),{name:n,value:r}=t[0];return this._updateQuery(n,r,"check"),this._updatePushState()}_radioFacetTrigger(e){e.preventDefault();const t=$(e.currentTarget),{name:n,value:r}=t[0];return this._updateQuery(n,r,"radio"),this._updatePushState()}_updateQuery(e,t){const{facetSettings:n,query:r}=this,a=r[e]||null,i=n[e];if(r[this._pagerParam]=1,"keywords"===e)return delete r[e],r[e]="",void $(this._searchField).val("");if(a||(r[e]=t),a===t&&(delete r[e],i.isMultiCardinality||($(`input[name="${e}"][value="${t}"]`).prop("checked",!1),i.options[0].value||$(`input[name="${e}"]`).first().prop("checked",!0))),i.isMultiCardinality||(delete r[e],a!==t&&(r[e]=t)),i.isMultiCardinality){const n=a?a.split(","):[],i=n.indexOf(t);i>=0?(delete n[i],$(`input[name="${e}"][value="${t}"]`).prop("checked",!1)):(n.push(t),$(`input[name="${e}"][value="${t}"]`).prop("checked",!0)),r[e]=this.compact(n).join(",")}}_responseIsLoading(e,t){!0===t?(window.falcoreLoading.addEvent(this.cssPrefix),$(this._activeFilters).attr("aria-hidden","true"),$(this._sortContainer).attr("aria-hidden","true"),$(this._resultsContainer).attr("aria-hidden","true"),$(this._pagination).attr("aria-hidden","true"),$(this._resultsText).attr("aria-hidden","true"),$(this._noResults).attr("aria-hidden","true")):($(this._resultsContainer).attr("aria-hidden","false"),window.falcoreLoading.endEvent(this.cssPrefix))}_clearFilters(e){e.preventDefault(),e.stopPropagation();const{query:t}=this;t._page=1,this.query._sort=this.defaultSortParams._sort,this.query._order=this.defaultSortParams._order,t.keywords="",$(this._searchField).val(""),this._initFacets(),$(this._checkFacets).prop("checked",!1),$(this._radioFacets).prop("checked",!1),$(this._radioFacets).first().val()||$(this._radioFacets).first().prop("checked",!0),this._updatePushState(),$(this._activeFilters).attr("aria-hidden","true")}_searchResponse(e,t){const{meta:n,results:r}=t,a=$(this._resultsContainer),i=n.totalResults.toLocaleString(),s=$(".faceted-search-active-facets-links");if($(".faceted-search-active-facets-link").remove(),0!==n.activeFacets.length?(n.activeFacets.map((e=>{s.prepend(`<button type="button" class="faceted-search-active-facets-link" name="${e.name}" value="${e.value}">${e.label}</button>`)})),$(this._activeFilters).attr("aria-hidden","false")):$(this._activeFilters).attr("aria-hidden","true"),a.empty(),!r.length)return $(this._resultsText).attr("aria-hidden","true"),$(this._noResults).attr("aria-hidden","false"),$(this._pagination).attr("aria-hidden","true"),void $(this._sortContainer).attr("aria-hidden","true");$(this._noResults).attr("aria-hidden","true"),$(this._sortContainer).attr("aria-hidden","false"),$(".faceted-search-results-text-num").text(i),$(this._resultsText).attr("aria-hidden","false"),r.map((({rendered:e})=>{a.append(e)}))}}var i=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];function s(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}function o(e,t){return n=(t||document).querySelectorAll(e),Array.prototype.slice.call(n);var n}function l(e){(e.querySelector("[autofocus]")||e).focus()}function u(){o("[data-a11y-dialog]").forEach((function(e){new s(e)}))}s.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=o('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEac
1h(function(e){e.addEventListener("click",this._show)}.bind(this));const e=this.$el;return this._closers=o("[data-a11y-dialog-hide]",this.$el).filter((function(t){return t.closest('[aria-modal="true"], [data-a11y-dialog]')===e})).concat(o('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(e){e.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},s.prototype.show=function(e){return this.shown||(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,l(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e)),this},s.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},s.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(e){e.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(e){e.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},s.prototype.on=function(e,t){return void 0===this._listeners[e]&&(this._listeners[e]=[]),this._listeners[e].push(t),this},s.prototype.off=function(e,t){var n=(this._listeners[e]||[]).indexOf(t);return n>-1&&this._listeners[e].splice(n,1),this},s.prototype._fire=function(e,t){var n=this._listeners[e]||[],r=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(r),n.forEach(function(e){e(this.$el,t)}.bind(this))},s.prototype._bindKeypress=function(e){const t=document.activeElement;t&&t.closest('[aria-modal="true"]')!==this.$el||(this.shown&&"Escape"===e.key&&"alertdialog"!==this.$el.getAttribute("role")&&(e.preventDefault(),this.hide(e)),this.shown&&"Tab"===e.key&&function(e,t){var n=function(e){return o(i.join(","),e).filter((function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}))}(e),r=n.indexOf(document.activeElement);t.shiftKey&&0===r?(n[n.length-1].focus(),t.preventDefault()):t.shiftKey||r!==n.length-1||(n[0].focus(),t.preventDefault())}(this.$el,e))},s.prototype._maintainFocus=function(e){!this.shown||e.target.closest('[aria-modal="true"]')||e.target.closest("[data-a11y-dialog-ignore-focus-trap]")||l(this.$el)},"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16));class c{constructor(e,t){this.selector=e,this.rootMargin=t||"0px 0px -100px 0px",window.Drupal?.behaviors&&window.once?window.Drupal.behaviors.falcoreAnimation=this:$((()=>{this.observe(document.querySelectorAll(this.selector))}))}attach(e){this.observe(window.once("falcoreAnimation",this.selector,e))}getObserver(){if(void 0!==this.observer)return this.observer;const e=!!window.IntersectionObserver;return this.observer=!!e&&new IntersectionObserver(((e,t)=>{e.forEach((e=>{if(e.isIntersecting){const n=$(e.target),r=n.data(),a=r.animation,i=r.animationDelay||null,s=r.animationDuration||null;n.css({animationDelay:i?`${i}ms`:"",animationDuration:s?`${s}ms`:""}).addClass(`-animated ${a}`),t.unobserve(e.target)}}))}),{rootMargin:this.rootMargin}),this.observer}observe(e){const t=this.getObserver();return!!t&&(e.forEach((e=>{t.observe(e)})),!0)}}var d=new WeakMap;function h(e,t){var n=d.get(e);if(n)return n.settings=t,n;this.form=e,this.settings=t,this.observer=null,d.set(e,this)}function f(e){var t;for(e.form&&(t=d.get(e.form));!t&&e;)t=d.get(e),e=e.parentNode;return t||(t=d.get(window)),t}function m(e){var t=f(e);return Array.prototype.filter.call(e.elements,(function(e){return!!(e.getAttribute("name")||t&&t.settings.validateNameless)}))}h.prototype={destroy:function(){d.delete(this.form),this._destruct&&this._destruct()}};var p,g=Object.create(null);
1function v(e){var t,n,r=Array.prototype.slice.call(arguments,1);return e in g&&(t=g[e].reduce((n=r,function(t,r){var a=r.apply({state:t,hook:e},n);return void 0!==a?a:t}),t)),t}function b(e,t){var n=t,r=Array.prototype.slice.call(arguments,1);return e in g&&(n=g[e].reduce((function(t,n){r[0]=t;var a=n.apply({state:t,hook:e},r);return void 0!==a?a:t}),n)),n}if(!((p=document.createEvent("Event")).initEvent("foo",!0,!0),p.preventDefault(),p.defaultPrevented)){var y=window.Event.prototype.preventDefault;window.Event.prototype.preventDefault=function(){this.cancelable&&(y.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bubbles,r=void 0===n||n,a=t.cancelable,i=void 0!==a&&a,s=document.createEvent("Event");return s.initEvent(e,r,i),s}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bubbles,a=void 0===r||r,i=n.cancelable,s=void 0!==i&&i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};for(var l in t instanceof window.Event||(t=w(t,{bubbles:a,cancelable:s})),o)o.hasOwnProperty(l)&&(t[l]=o[l]);return e.dispatchEvent(t),t}var P=["datetime","date","month","week","time"],k=P.concat(["number","range"],"datetime-local"),E=["email","url"],T=["email","date","month","week","time","datetime","datetime-local","number","range","color"],L=["text","search","tel","password"].concat(E),S=["checkbox","color","file","image","radio","submit"].concat(k,L),x=["button","hidden","reset"].concat(S),A=["select-one","select-multiple","textarea"];function M(e){if(e instanceof window.HTMLTextAreaElement)return"textarea";if(e instanceof window.HTMLSelectElement)return e.hasAttribute("multiple")?"select-multiple":"select-one";if(e instanceof window.HTMLButtonElement)return(e.getAttribute("type")||"submit").toLowerCase();if(e instanceof window.HTMLInputElement){var t=(e.getAttribute("type")||"").toLowerCase();return t&&x.indexOf(t)>-1?t:e.type||"text"}return""}function N(e){var t=b("is_validation_candidate",null,e);if(null!==t)return!!t;if(e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement||e instanceof window.HTMLInputElement){var n=M(e);if((A.indexOf(n)>-1||S.indexOf(n)>-1)&&!e.hasAttribute("disabled")&&!e.hasAttribute("readonly")){var r=f(e);if((r&&!r.settings.novalidateOnElements||!e.hasAttribute("novalidate")&&!e.noValidate)&&!function(e){for(var t=e.parentNode;t&&1===t.nodeType;){if(t instanceof window.HTMLFieldSetElement&&t.hasAttribute("disabled"))return!0;if("DATALIST"===t.nodeName.toUpperCase())return!0;if(t===e.form)break;t=t.parentNode}return!1}(e))return!0}}return!1}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw i}}}}function D(e){return["object","function"].indexOf(F(e))>-1&&(delete e.__hyperform,Object.defineProperty(e,"__hyperform",{configurable:!0,enumerable:!1,value:!0})),e}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;switch(t){case"date":return(e.toLocaleDateString||e.toDateString).call(e);
1case"time":return(e.toLocaleTimeString||e.toTimeString).call(e);case"month":return"toLocaleDateString"in e?e.toLocaleDateString(void 0,{year:"numeric",month:"2-digit"}):e.toDateString();default:return(e.toLocaleString||e.toString).call(e)}}function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=n.length,i=0;return e.replace(/%([0-9]+\$)?([sl])/g,(function(e,t,r){var s=i;t&&(s=Number(t.replace(/\$$/,""))-1),i+=1;var o="";return a>s&&(o=n[s]),(o instanceof Date||"number"==typeof o||o instanceof Number)&&(o="l"===r?(o.toLocaleString||o.toString).call(o):o.toString()),o}))}function q(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=e+"";n.length<t;)n="0"+n;return n}function H(e,t){if(!(e instanceof Date))return null;switch(t){case"datetime":return H(e,"date")+"T"+H(e,"time");case"datetime-local":return U("%s-%s-%sT%s:%s:%s.%s",e.getFullYear(),q(e.getMonth()+1),q(e.getDate()),q(e.getHours()),q(e.getMinutes()),q(e.getSeconds()),q(e.getMilliseconds(),3)).replace(/(:00)?\.000$/,"");case"date":return U("%s-%s-%s",e.getUTCFullYear(),q(e.getUTCMonth()+1),q(e.getUTCDate()));case"month":return U("%s-%s",e.getUTCFullYear(),q(e.getUTCMonth()+1));case"week":var n=function(e){(e=new Date(+e)).setUTCHours(0,0,0),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));var t=new Date(e.getUTCFullYear(),0,1),n=Math.ceil(((e-t)/864e5+1)/7);return[e.getUTCFullYear(),n]}(e);return U.call(null,"%s-W%s",n[0],q(n[1]));case"time":return U("%s:%s:%s.%s",q(e.getUTCHours()),q(e.getUTCMinutes()),q(e.getUTCSeconds()),q(e.getUTCMilliseconds(),3)).replace(/(:00)?\.000$/,"")}return null}function I(e,t){var n;switch(t){case"datetime":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e)?(n=new Date(e+"z"),isNaN(n.valueOf())?null:n):null;case"date":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(e)?(n=new Date(e),isNaN(n.valueOf())?null:n):null;case"month":return/^([0-9]{4})-(0[1-9]|1[012])$/.test(e)?(n=new Date(e),isNaN(n.valueOf())?null:n):null;case"week":return/^([0-9]{4})-W(0[1-9]|[1234][0-9]|5[0-3])$/.test(e)?function(e,t){var n=new Date(Date.UTC(t,0,1+7*(e-1)));return n.getUTCDay()<=4?n.setUTCDate(n.getUTCDate()-n.getUTCDay()+1):n.setUTCDate(n.getUTCDate()+8-n.getUTCDay()),n}(Number(RegExp.$2),Number(RegExp.$1)):null;case"time":return/^([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e)?n=new Date("1970-01-01T"+e+"z"):null}return null}function j(e,t){var n=I(e,t);return null!==n?+n:Number(e)}var V={en:{TextTooLong:"Please shorten this text to %l characters or less (you are currently using %l characters).",ValueMissing:"Please fill out this field.",CheckboxMissing:"Please check this box if you want to proceed.",RadioMissing:"Please select one of these options.",FileMissing:"Please select a file.",SelectMissing:"Please select an item in the list.",InvalidEmail:"Please enter an email address.",InvalidURL:"Please enter a URL.",PatternMismatch:"Please match the requested format.",PatternMismatchWithTitle:"Please match the requested format: %l.",NumberRangeOverflow:"Please select a value that is no more than %l.",DateRangeOverflow:"Please select a value that is no later than %l.",TimeRangeOverflow:"Please select a value that is no later than %l.",NumberRangeUnderflow:"Please select a value that is no less than %l.",DateRangeUnderflow:"Please select a value that is no earlier than %l.",TimeRangeUnderflow:"Please select a value that is no earlier than %l.",StepMismatch:"Please select a valid value. The two nearest valid values are %l and %l.",StepMismatchOneValue:"Please select a valid value. The nearest valid value is %l.",BadInputNumber:"Please enter a number."}},Q="en",W="en";function B(e,t){for(var n in e in V||(V[e]={}),t)t.hasOwnProperty(n)&&(V[e][n]=t[n])}function z(e){return Q in V&&e in V[Q]?V[Q][e]:W in V&&e in V[W]?V[W][e]:e in V.en?V.en[e]:e}var G={"datetime-local":60,datetime:60,time:60},K={"datetime-local":1e3,datetime:1e3,date:864e5,week:6048e5,time:1e3},Y={week:-2592e5},Z={range:0},J={range:100};function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M(e),r=e.getAttribute("min"),a=Z[n]||NaN;if(r){var i=j(r,n);isNaN(i)||(a=i)}var s=e.getAttribute("max"),o=J[n]||NaN;if(s){var l=j(s,n);isNaN(l)||(o=l)}var u=e.getAttribute("step"),c=G[n]||1;if(u&&"any"===u.toLowerCase())return[z("any value"),z("any value")];if(u){var d=j(u,n);isNaN(d)||(c=d)}var h=j(e.getAttribute("value"),n),f=j(e.value||e.getAttribute("value"),n);if(isNaN(f))return[z("any valid value"),z("any valid value")];var m=isNaN(a)?isNaN(h)?Y[n]||0:h:a,p=K[n]||1,g=m+Math.floor((f-m)/(c*p))*(c*p)*t,v=m+(Math.floor((f-m)/(c*p))+1)*(c*p)*t;return g<a?g=null:g>o&&(g=o),v>o?v=null:v<a&&(v=a),P.indexOf(n)>-1&&(g=H(new Date(g),n),v=H(new Date(v),n)),[g,v]}function ee(e){return e.match(/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g).length}var te=new WeakMap,ne={set:function(e,t,n){var r=te.get(e)||{};return r[t]=n,te.set(e,r),ne},get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=te.get(e);if(void 0===r||!(t in r)){var a="data-"+t.replace(/[A-Z]/g,"-$&").toLowerCase();return e.hasAttribute(a)?e.getAttribute(a):n}return r[t]},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return te.delete(e);var n=te.get(e)||{};
1return t in n&&(delete n[t],te.set(e,n),!0)}};function re(e){return e.form?Array.prototype.filter.call(e.form.elements,(function(t){return"radio"===t.type&&t.name===e.name})):[e]}var ae=new WeakMap;function ie(e){return"radio"===e.type?re(e)[0]:e}var se={set:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((e=ie(e))instanceof window.HTMLFieldSetElement){var r=f(e);if(r&&!r.settings.extendFieldset)return se}return"string"==typeof t&&(t=new String(t)),n&&(t.is_custom=!0),D(t),ae.set(e,t),"_original_setCustomValidity"in e&&e._original_setCustomValidity(t.toString()),se},get:function(e){e=ie(e);var t=ae.get(e);return void 0===t&&"_original_validationMessage"in e&&(t=new String(e._original_validationMessage)),t||new String("")},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"_original_setCustomValidity"in(e=ie(e))&&e._original_setCustomValidity("");var n=ae.get(e);return!(n&&t&&!n.is_custom)&&ae.delete(e)}},oe=new WeakMap,le={set:function(e,t){var n=oe.get(e)||[];return n.push(t),oe.set(e,n),le},get:function(e){return oe.get(e)||[]},delete:function(e){return oe.delete(e)}};var ue,ce=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function de(e){return e.replace(ce,"")}function he(e){return e.split(",").map((function(e){return de(e)})).filter((function(e){return e}))}var fe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function me(e,t){return function(n){var r=!e(n);return r&&t(n),r}}function pe(e,t,n){se.set(e,ne.get(e,t,n))}var ge=me((function(e){var t=M(e);if(-1===T.indexOf(t))return!0;if(!e.value)return!("_original_validity"in e&&!e._original_validity.__hyperform)||!e._original_validity.badInput;var n=!0;switch(t){case"color":n=/^#[a-f0-9]{6}$/.test(e.value);break;case"number":case"range":n=!isNaN(Number(e.value));break;case"datetime":case"date":case"month":case"week":case"time":n=null!==I(e.value,t);break;case"datetime-local":n=/^([0-9]{4,})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(e.value)}return n}),(function(e){return pe(e,"badInput",z("Please match the requested type."))}));function ve(e){if(e.__hf_custom_validation_running){var t=se.get(e);return t&&t.is_custom}var n=le.get(e),r=n.length,a=!0;if(r){e.__hf_custom_validation_running=!0;for(var i=0;i<r;i++){var s=n[i](e);if(void 0!==s&&!s){a=!1;break}}delete e.__hf_custom_validation_running}if(a){var o=se.get(e);a=!(o.toString()&&"is_custom"in o)}return!a}var be=me((function(e){return!e.value||!e.hasAttribute("pattern")||new RegExp("^(?:"+e.getAttribute("pattern")+")$").test(e.value)}),(function(e){pe(e,"patternMismatch",e.title?U(z("PatternMismatchWithTitle"),e.title):z("PatternMismatch"))})),ye=me((function(e){var t,n,r=M(e);return!e.value||!e.hasAttribute("max")||(P.indexOf(r)>-1?(t=null===(t=I(e.value,r))?NaN:+t,n=null===(n=I(e.getAttribute("max"),r))?NaN:+n):(t=Number(e.value),n=Number(e.getAttribute("max"))),isNaN(n)||isNaN(t)||t<=n)}),(function(e){var t,n=M(e),r=f(e),a=r&&r.settings.classes.outOfRange||"hf-out-of-range",i=r&&r.settings.classes.inRange||"hf-in-range";switch(n){case"date":case"datetime":case"datetime-local":t=U(z("DateRangeOverflow"),R(I(e.getAttribute("max"),n),n));break;case"time":t=U(z("TimeRangeOverflow"),R(I(e.getAttribute("max"),n),n));break;default:t=U(z("NumberRangeOverflow"),j(e.getAttribute("max"),n))}pe(e,"rangeOverflow",t),e.classList.add(a),e.classList.remove(i)})),we=me((function(e){var t,n,r=M(e);return!e.value||!e.hasAttribute("min")||(P.indexOf(r)>-1?(t=null===(t=I(e.value,r))?NaN:+t,n=null===(n=I(e.getAttribute("min"),r))?NaN:+n):(t=Number(e.value),n=Number(e.getAttribute("min"))),isNaN(n)||isNaN(t)||t>=n)}),(function(e){var t,n=M(e),r=f(e),a=r&&r.settings.classes.outOfRange||"hf-out-of-range",i=r&&r.settings.classes.inRange||"hf-in-range";switch(n){case"date":case"datetime":case"datetime-local":t=U(z("DateRangeUnderflow"),R(I(e.getAttribute("min"),n),n));break;case"time":t=U(z("TimeRangeUnderflow"),R(I(e.getAttribute("min"),n),n));break;default:t=U(z("NumberRangeUnderflow"),j(e.getAttribute("min"),n))}pe(e,"rangeUnderflow",t),e.classList.add(a),e.classList.remove(i)})),_e=me((function(e){var t=M(e);if(!e.value||-1===k.indexOf(t)||"any"===(e.getAttribute("step")||"").toLowerCase())return!0;var n=e.getAttribute("step");if((n=n?j(n,t):G[t]||1)<=0||isNaN(n))return!0;var r=K[t]||1,a=j(e.value,t),i=j(e.getAttribute("min")||e.getAttribute("value")||"",t);if(isNaN(a))return!0;
1isNaN(i)&&(i=Y[t]||0),"month"===t&&(i=12*new Date(i).getUTCFullYear()+new Date(i).getUTCMonth(),a=12*new Date(a).getUTCFullYear()+new Date(a).getUTCMonth());var s=Math.abs(i-a)%(n*r);return s<1e-8||s>n*r-1e-8}),(function(e){var t=X(e),n=t[0],r=t[1],a=!1;null===n?a=r:null===r&&(a=n),pe(e,"stepMismatch",!1!==a?U(z("StepMismatchOneValue"),a):U(z("StepMismatch"),n,r))})),$e=me((function(e){if(!e.value||-1===L.indexOf(M(e))||!e.hasAttribute("maxlength")||!e.getAttribute("maxlength"))return!0;var t=parseInt(e.getAttribute("maxlength"),10);return!!(isNaN(t)||t<0)||ee(e.value)<=t}),(function(e){pe(e,"tooLong",U(z("TextTooLong"),e.getAttribute("maxlength"),ee(e.value)))})),Pe=me((function(e){if(!e.value||-1===L.indexOf(M(e))||!e.hasAttribute("minlength")||!e.getAttribute("minlength"))return!0;var t=parseInt(e.getAttribute("minlength"),10);return!!(isNaN(t)||t<0)||ee(e.value)>=t}),(function(e){pe(e,"tooShort",U(z("Please lengthen this text to %l characters or more (you are currently using %l characters)."),e.getAttribute("minlength"),ee(e.value)))})),ke=me((function(e){var t=M(e);if("file"!==t&&!e.value||"file"!==t&&-1===E.indexOf(t))return!0;var n=!0;switch(t){case"url":ue||(ue=document.createElement("a"));var r=de(e.value);ue.href=r,n=ue.href===r||ue.href===r+"/";break;case"email":n=e.hasAttribute("multiple")?he(e.value).every((function(e){return fe.test(e)})):fe.test(de(e.value));break;case"file":if("files"in e&&e.files.length&&e.hasAttribute("accept")){var a=he(e.getAttribute("accept")).map((function(e){return/^(audio|video|image)\/\*$/.test(e)&&(e=new RegExp("^"+RegExp.$1+"/.+$")),e}));if(!a.length)break;e:for(var i=0;i<e.files.length;i++){var s=!1;t:for(var o=0;o<a.length;o++){var l=e.files[i],u=a[o],c=l.type;if("string"==typeof u&&"."===u.substr(0,1)){if(-1===l.name.search("."))continue t;c=l.name.substr(l.name.lastIndexOf("."))}if(0===c.search(u)){s=!0;break t}}if(!s){n=!1;break e}}}}return n}),(function(e){var t=z("Please use the appropriate format."),n=M(e);"email"===n?t=e.hasAttribute("multiple")?z("Please enter a comma separated list of email addresses."):z("InvalidEmail"):"url"===n?t=z("InvalidURL"):"file"===n&&(t=z("Please select a file of the correct type.")),pe(e,"typeMismatch",t)})),Ee=me((function(e){if("radio"===e.type){if(e.hasAttribute("required")&&e.checked)return!0;var t=re(e);return!t.some((function(e){return e.hasAttribute("required")}))||t.some((function(e){return e.checked}))}return!e.hasAttribute("required")||(e instanceof window.HTMLSelectElement?(r=!(n=e).multiple&&n.size<=1&&n.options.length>0&&n.options[0].parentNode==n&&""===n.options[0].value,n.selectedIndex>
1-1&&Array.prototype.some.call(n.options,(function(e){return(!r||0!==e.index)&&!e.disabled&&e.selected}))):"checkbox"===e.type?e.checked:!!e.value);var n,r}),(function(e){var t=z("ValueMissing"),n=M(e);"checkbox"===n?t=z("CheckboxMissing"):"radio"===n?t=z("RadioMissing"):"file"===n?t=e.hasAttribute("multiple")?z("Please select one or more files."):z("FileMissing"):e instanceof window.HTMLSelectElement&&(t=z("SelectMissing")),pe(e,"valueMissing",t)})),Te={badInput:ge,customError:ve,patternMismatch:be,rangeOverflow:ye,rangeUnderflow:we,stepMismatch:_e,tooLong:$e,tooShort:Pe,typeMismatch:ke,valueMissing:Ee,valid:function(e){var t=f(e),n=t&&t.settings.classes.valid||"hf-valid",r=t&&t.settings.classes.invalid||"hf-invalid",a=t&&t.settings.classes.userInvalid||"hf-user-invalid",i=t&&t.settings.classes.userValid||"hf-user-valid",s=t&&t.settings.classes.inRange||"hf-in-range",o=t&&t.settings.classes.outOfRange||"hf-out-of-range",l=t&&t.settings.classes.validated||"hf-validated";e.classList.add(l);for(var u=0,c=[ge,ve,be,ye,we,_e,$e,Pe,ke,Ee];u<c.length;u++){if((0,c[u])(e))return e.classList.add(r),e.classList.remove(n),e.classList.remove(i),("checkbox"===e.type||"radio"===e.type)&&e.checked!==e.defaultChecked||e.value!==e.defaultValue?e.classList.add(a):e.classList.remove(a),e.setAttribute("aria-invalid","true"),!1}return se.delete(e),e.classList.remove(r),e.classList.remove(a),e.classList.remove(o),e.classList.add(n),e.classList.add(s),e.value!==e.defaultValue?e.classList.add(i):e.classList.remove(i),e.setAttribute("aria-invalid","false"),!0}},Le=function e(t){if(!(t instanceof window.HTMLElement))throw new Error("cannot create a ValidityState for a non-element");var n=e.cache.get(t);return n||(this instanceof e?(this.element=t,void e.cache.set(t,this)):new e(t))},Se={};Le.prototype=Se,Le.cache=new WeakMap;var xe=function(e,t){return function(){return N(this.element)?t(this.element):"valid"===e}};for(var Ae in Te)Object.defineProperty(Se,Ae,{configurable:!0,enumerable:!0,get:xe(Ae,Te[Ae]),set:void 0});D(Se);var Me,Ne,Fe=(Me="checkValidity",Ne=function(e){if(e instanceof window.HTMLFormElement)return m(e).map(Fe).every((function(e){return e}));var t=Le(e).valid;if(t){var n=f(e);n&&n.settings.validEvent&&_(e,"valid")}else _(e,"invalid",{cancelable:!0});return t},function(){var e=v(Me,Array.prototype.slice.call(arguments));return void 0!==e?e:Ne.apply(this,arguments)}),Oe=0;function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hf_";return e+Oe+++Math.random().toString(36).substr(2)}var De=new WeakMap,Re={attachWarning:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},detachWarning:function(e,t){e.parentNode&&e.parentNode.removeChild(e)},showWarning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e,a=[e];if("radio"===e.type){var i=re(e);if(n&&i[0]!==e)return;r=i[0],a=i}t=De.get(r);var s=se.get(r).toString();if(s){if(!t){var o=f(r);(t=document.createElement("div")).className=o&&o.settings.classes.warning||"hf-warning",t.id=Ce(),t.setAttribute("aria-live","polite"),De.set(r,t)}a.forEach((function(e){e.setAttribute("aria-errormessage",t.id),e.hasAttribute("aria-describedby")||e.setAttribute("aria-describedby",t.id)})),Ue.setMessage(t,s,r),Ue.attachWarning(t,r)}else t&&t.parentNode&&(a.forEach((function(e){e.getAttribute("aria-describedby")===t.id&&e.removeAttribute("aria-describedby"),e.removeAttribute("aria-errormessage")})),Ue.detachWarning(t,r))},setMessage:function(e,t,n){e.textContent=t}},Ue={attachWarning:Re.attachWarning,detachWarning:Re.detachWarning,showWarning:Re.showWarning,setMessage:Re.setMessage,set:function(e,t){t||(t=Re[e]),Ue[e]=t},getWarning:function(e){return De.get(e)}};function qe(e){if(e instanceof window.HTMLFormElement){e.__hf_form_validation=!0;var t=m(e).map(qe).every((function(e){return e}));return delete e.__hf_form_validation,t}var n,r=Le(e).valid;if(r){var a=f(e);a&&a.settings.validEvent&&(n=_(e,"valid",{cancelable:!0}))}else n=_(e,"invalid",{cancelable:!0});return n&&n.defaultPrevented||Ue.showWarning(e,e.form&&e.form.__hf_form_validation),r}function He(e,t){t?se.set(e,t,!0):se.delete(e,!0);var n=Ue.getWarning(e);n&&Ue.setMessage(n,t,e),Te.valid(e)}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=M(e);if(P.indexOf(n)>-1){if(void 0!==t){if(null===t)e.value="";else{if(!(t instanceof Date))throw new window.DOMException("valueAsDate setter encountered invali
1d value","TypeError");isNaN(t.getTime())?e.value="":e.value=H(t,n)}return}var r=I(e.value,n);return r instanceof Date?r:null}if(void 0!==t)throw new window.DOMException("valueAsDate setter cannot set date on this element","InvalidStateError");return null}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=M(e);if(k.indexOf(n)>-1){if("range"===n&&e.hasAttribute("multiple"))return NaN;if(void 0!==t){if(isNaN(t))e.value="";else{if("number"!=typeof t||!window.isFinite(t))throw new window.DOMException("valueAsNumber setter encountered invalid value","TypeError");try{Ie(e,new Date(t))}catch(n){if(!(n instanceof window.DOMException))throw n;e.value=t.toString()}}return}return j(e.value,n)}if(void 0!==t)throw new window.DOMException("valueAsNumber setter cannot set number on this element","InvalidStateError");return NaN}function Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(-1===k.indexOf(M(e)))throw new window.DOMException("stepDown encountered invalid type","InvalidStateError");if("any"===(e.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepDown encountered step "any"',"InvalidStateError");var n=X(e,t)[0];null!==n&&je(e,n)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(-1===k.indexOf(M(e)))throw new window.DOMException("stepUp encountered invalid type","InvalidStateError");if("any"===(e.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepUp encountered step "any"',"InvalidStateError");var n=X(e,t)[1];null!==n&&je(e,n)}function We(e){var t=se.get(e);return t?t.toString():""}function Be(e){return N(e)}var ze=window.Element.prototype,Ge=ze.matches||ze.matchesSelector||ze.msMatchesSelector||ze.webkitMatchesSelector;function Ke(e){var t,n=w("submit",{cancelable:!0});n.preventDefault(),Object.defineProperty(n,"defaultPrevented",{value:!1,writable:!0}),Object.defineProperty(n,"preventDefault",{value:function(){return n.defaultPrevented=t=!0},writable:!0}),_(e.form,n,{},{submittedVia:e}),t||(!function(e){if(["image","submit"].indexOf(e.type)>-1&&e.name){var t=f(e.form)||{},n=t.submit_helper;n?n.parentNode&&n.parentNode.removeChild(n):((n=document.createElement("input")).type="hidden",t.submit_helper=n),n.name=e.name,n.value=e.value,e.form.appendChild(n)}}(e),window.HTMLFormElement.prototype.submit.call(e.form),window.setTimeout((function(){return function(e){if(["image","submit"].indexOf(e.type)>-1&&e.name){var t=(f(e.form)||{}).submit_helper;t&&t.parentNode&&t.parentNode.removeChild(t)}}(e)})))}function Ye(e){if(!_(e.form,"validate",{cancelable:!0}).defaultPrevented){var t,n=!0;e.form.__hf_form_validation=!0,m(e.form).map((function(e){qe(e)||(n=!1,!t&&"focus"in e&&(t=e))})),delete e.form.__hf_form_validation,n?Ke(e):t&&(t.focus(),_(e.form,"forminvalid"))}}function Ze(e){return!("INPUT"!==e.nodeName&&"BUTTON"!==e.nodeName||"image"!==e.type&&"submit"!==e.type)}function Je(e,t){return!e.defaultPrevented&&(!("button"in e)||e.button<2)&&Ze(t)&&t.form&&!t.form.hasAttribute("novalidate")}function Xe(e){return Ze(e)?e:function(e,t){return Ge.call(e,t)}(e,'button:not([type]) *, button[type="submit"] *')?Xe(e.parentNode):null}function et(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t){var n=Xe(t.target);n&&Je(t,n)&&(t.preventDefault(),e||n.hasAttribute("formnovalidate")?Ke(n):Ye(n))}}var tt=et(),nt=et(!0);function rt(e){return function(t){if(function(e){return!e.defaultPrevented&&(13===e.keyCode&&"INPUT"===e.target.nodeName&&L.indexOf(e.target.type)>-1||(13===e.keyCode||32===e.keyCode)&&Ze(e.target))&&e.target.form&&!e.target.form.hasAttribute("novalidate")}(t)){if(t.preventDefault(),(f(t.target.form)||{settings:{}}).settings.preventImplicitSubmit)return;for(var n,r=t.target.form.elements.length,a=0;a<r;a++)if(["image","submit"].indexOf(t.target.form.elements[a].type)>-1){n=t.target.form.elements[a];break}if(_(t.target.form,"implicit_submit",{cancelable:!0},{trigger:t.target,submittedVia:n||t.target}).defaultPrevented)return;n?n.click():e?Ke(t.target):Ye(t.target)}}}var at=rt(),it=rt(!0);function st(e,t,n){n.configurable=!0,n.enumerable=!0,"value"in n&&(n.writable=!0);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r&&(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)),r){if(!1===r.configurable){var a=f(e);return a&&a.settings.debug&&console.log("[hyperform] cannot install custom property "+t),!1}if(r.get&&r.get.__hyperform||r.value&&r.value.__hyperform)return;Object.defineProperty(e,"_original_"+t,r)}return delete e[t],Object.defineProperty(e,t,n),!0}function ot(e){return e instanceof window.HTMLButtonElement||e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLFieldSetElement||e===window.HTMLButtonElement.prototype||e===window.HTMLInputElement.prototype||e===window.HTMLSelectElement.prototype||e===window.HTMLTextAreaElement.prototype||e===window.HTMLFieldSetElement.prototype}function lt(e,t){try{delete e[t]}catch(r){var n=f(e);return n&&n.settings.debug&&console.log("[hyperform] cannot uninstall custom property "+t),!1}var r=Object.getOwnPropertyDescriptor(e,"_original_"+t);r&&Object.defineProperty(e,t,r)}var ut=function(e){return function(){return b("attr_get_"+e,this.getAttribute(e),this)}},ct=function(e){return function(t){this.setAttribute(e,b("attr_set_"+e,t,this))}},dt=function(e){return function(){return b("attr_get_"+e,this.hasAttribute(e),this)}},ht=function(e){return function(t){b("attr_set_"+e,t,this)?this.setAttribute(e,e):this.removeAttribute(e)}},ft=function(e){return function(){return b("attr_get_"+e,Math.max(0,Number(this.getAttribute(e))),this)}},mt=function(e){return function(t){t=b("attr_set_"+e,t,this),/^[0-9]+$/.test(t)&&this.setAttribute(e,t)}};var pt={checkValidity:{value:D((function(){return Fe(this)}))},reportValidity:{value:D((function(){return qe(this)}))},setCustomValidity:{value:D((function(e){return He(this,e)}))},stepDown:{value:D((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ve(this,e)}))},stepUp:{value:D((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Qe(this,e)}))},validationMessage:{get:D((function(){return We(this)}))},validity:{get:D((function(){return Le(this)}))},valueAsDate:{get:D((function(){return Ie(this)})),set:D((function(e){Ie(this,e)}))},valueAsNumber:{get:D((function(){return je(this)})),set:D((function(e){je(this,e)}))},willValidate:{get:D((function(){return Be(this)}))}};function gt(e){if(ot(e)){for(var t in pt)st(e,t,pt[t]);!function(e){for(var t=0,n=["accept","max","min","pattern","placeholder","step"];t<n.length;t++){var r=n[t];st(e,r,{get:ut(r),set:ct(r)})}for(var a=0,i=["multiple","required","readOnly"];a<i.length;a++){var s=i[a];st(e,s,{get:dt(s.toLowerCase()),set:ht(s.toLowerCase())})}for(var o=0,l=["minLength","maxLength"];o<l.length;o++){var u=l[o];st(e,u,{get:ft(u.toLowerCase()),set:mt(u.toLowerCase())})}}(e)}else(e instanceof window.HTMLFormElement||e===window.HTMLFormElement.prototype)&&(st(e,"checkValidity",pt.checkValidity),st(e,"reportValidity",pt.reportValidity))}function vt(e){ot(e)?(lt(e,"checkValidity"),lt(e,"reportValidity"),lt(e,"setCustomValidity"),lt(e,"stepDown"),lt(e,"stepUp"),lt(e,"validationMessage"),lt(e,"validity"),lt(e,"valueAsDate"),lt(e,"valueAsNumber"),lt(e,"
1willValidate"),function(e){for(var t=0,n=["accept","max","min","pattern","placeholder","step","multiple","required","readOnly","minLength","maxLength"];t<n.length;t++)lt(e,n[t])}(e)):e instanceof window.HTMLFormElement&&(lt(e,"checkValidity"),lt(e,"reportValidity"))}var bt=[window.HTMLButtonElement.prototype,window.HTMLInputElement.prototype,window.HTMLSelectElement.prototype,window.HTMLTextAreaElement.prototype,window.HTMLFieldSetElement.prototype];function yt(e,t){t instanceof window.Element&&(t=[t]);for(var n=t.length,r=0;r<n;r++)e(t[r])}function wt(e){var t=e.form;return function(){var n;if((n=t).removeEventListener("click",nt),n.removeEventListener("keypress",it),n.removeEventListener("click",tt),n.removeEventListener("keypress",at),t.removeEventListener("keyup",e.revalidator),t.removeEventListener("change",e.revalidator),t.removeEventListener("blur",e.revalidator,!0),t===window||9===t.nodeType)e.uninstall(bt),vt(window.HTMLFormElement);else if(t instanceof window.HTMLFormElement||t instanceof window.HTMLFieldSetElement)e.uninstall(t.elements),t instanceof window.HTMLFormElement&&vt(t);else if(t instanceof window.HTMLElement){e.observer.disconnect();var r,a=C(Array.prototype.slice.call(t.getElementsByTagName("form")));try{for(a.s();!(r=a.n()).done;){var i=r.value;e.uninstall(i.elements),vt(i)}}catch(e){a.e(e)}finally{a.f()}}}}function _t(e){var t=e.form,n=e.settings;if(e.revalidator=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hybrid";return function(t){if(t.target instanceof window.HTMLButtonElement||t.target instanceof window.HTMLTextAreaElement||t.target instanceof window.HTMLSelectElement||t.target instanceof window.HTMLInputElement){if(t.target.form&&t.target.form.hasAttribute("novalidate"))return;"hybrid"===e?("blur"===t.type&&t.target.value!==t.target.defaultValue||Le(t.target).valid||("keyup"===t.type&&9!==t.keyCode||"change"===t.type)&&Le(t.target).valid)&&qe(t.target):"keyup"===t.type&&9===t.keyCode||qe(t.target)}}}(n.revalidate),e.observer={disconnect:function(){}},e.install=function(e){return yt(gt,e)},e.uninstall=function(e){return yt(vt,e)},e._destruct=wt(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?(e.addEventListener("click",nt),e.addEventListener("keypress",it)):(e.addEventListener("click",tt),e.addEventListener("keypress",at))}(t,"never"===n.revalidate),t===window||9===t.nodeType)e.install(bt),gt(window.HTMLFormElement);else if(t instanceof window.HTMLFormElement||t instanceof window.HTMLFieldSetElement)e.install(t.elements),t instanceof window.HTMLFormElement&>(t);else{if(!(t instanceof window.HTMLElement))throw new Error("Hyperform must be used with a node or window.");var r,a=C(Array.prototype.slice.call(e.form.getElementsByTagName("form")));try{for(a.s();!(r=a.n()).done;){var i=r.value;e.install(i.elements),gt(i)}}catch(e){a.e(e)}finally{a.f()}e.observer=new window.MutationObserver((function(t){var n,r=C(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("childList"===a.type){var i,s=C(Array.prototype.slice.call(a.addedNodes));try{for(s.s();!(i=s.n()).done;){var o=i.value;o instanceof window.HTMLFormElement&&(e.install(o.elements),gt(o))}}catch(e){s.e(e)}finally{s.f()}var l,u=C(Array.prototype.slice.call(a.removedNodes));try{for(u.s();!(l=u.n()).done;){var c=l.value;c instanceof window.HTMLFormElement&&(e.uninstall(c.elements),vt(c))}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){r.e(e)}finally{r.f()}})),e.observer.observe(t,{subtree:!0,childList:!0})}"oninput"!==n.revalidate&&"hybrid"!==n.revalidate||(t.addEventListener("keyup",e.revalidator),t.addEventListener("change",e.revalidator)),"onblur"!==n.revalidate&&"hybrid"!==n.revalidate||t.addEventListener("blur",e.revalidator,!0)}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=t.debug,a=void 0!==r&&r,i=t.extendFieldset,s=t.novalidateOnElements,o=t.preventImplicitSubmit,l=void 0!==o&&o,u=t.revalidate,c=t.strict,d=void 0!==c&&c,f=t.validEvent,m=t.validateNameless,p=void 0!==m&&m;n||(n={}),void 0===i&&(i=!d),void 0===s&&(s=!d),void 0===l&&(l=!1),void 0===u&&(u=d?"onsubmit":"hybrid"),void 0===f&&(f=!d);var g={debug:a,strict:d,preventImplicitSubmit:l,revalidate:u,validEvent:f,extendFieldset:i,classes:n,novalidateOnElements:s,validateNameless:p};if(e instanceof window.NodeList||e instanceof window.HTMLCollection||e instanceof Array)return Array.prototype.map.call(e,(function(e){return $t(e,g)}));var v=new h(e,g);return _t(v),v}$t.version="0.12.1",$t.checkValidity=Fe,$t.reportValidity=qe,$t.setCustomValidity=He,$t.stepDown=Ve,$t.stepUp=Qe,$t.validationMessage=We,$t.ValidityState=Le,$t.valueAsDate=Ie,$t.valueAsNumber=je,$t.willValidate=Be,$t.setLanguage=function(e){var t;return Q=t=e,W=t.replace(/[-_].*/,""),$t},$t.addTranslation=function(e,t){return B(e,t),$t},$t.setRenderer=function(e,t){return Ue.set(e,t),$t},$t.addValidator=function(e,t){return le.set(e,t),$t},$t.setMessage=function(e,t,n){return ne.set(e,t,n),$t},$t.addHook=function(e,t,n){return function(e,t,n){e in g||(g[e]=[]),void 0===n&&(n=g[e].length),g[e].splice(n,0,t)}(e,t,n),$t},$t.removeHook=function(e,t){return function(e,t){if(e in g)for(var n=0;n<g[e].length;n++)if(g[e][n]===t){g[e].splice(n,1);break}}(e,t),$t},document.currentScript&&document.currentScript.hasAttribute("data-hf-autoload")&&$t(window);window.$=jQuery;const Pt={components:[[".mobile-menu",()=>{const e=$(".js-mobile-menu-open"),t=$(".js-mobile-menu-close"),n=$(".mobile-menu"),r=$(".mobile-menu-nav"),a=$(".mobile-menu-secondary");e.on("click",(()=>{$("html").attr("data-mobile-menu","open"),n.attr("aria-hidden","false"),setTimeout((()=>{t.focus()}),300)})),t.add(".js-blocker").on("click",(()=>{$("html").attr("data-mobile-menu","closed"),n.attr("aria-hidden","true"),setTimeout((()=>{e.focus()}),300)})),$(document).keydown((t=>{27===t.keyCode&&($("html").attr("data-mobile-menu","closed"),n.attr("aria-hidden","true"),setTimeout((()=>{e.focus()}),300))})),$(".js-mobile-menu-next").on("click",(e=>{e.preventDefault();const t=$(e.currentTarget).parent().next(),a=t.height();n.attr("data-level","2"),t.attr("aria-hidden","false"),r.css("height",a)})),$(".js-mobile-menu-back").on("click",(()=>{r.css("height",""),n.attr("data-level","1"),a.attr("aria-hidden","true")}))}],[".site-header",()=>{function e(){const e=window.innerWidth;$(".site-header-nav-item").each(((t,n)=>{const r=$(n).offset().left,a=$(n).find(".site-header-nav-item-dropdown"),i=a.outerWidth();
1a.css("left",0),i+r>e&&a.css("left",`-${i+r-e+15}px`)}))}((e,t="-focused-within")=>{const n=$(e);n.on("focus",":focusable",(({delegateTarget:e})=>{$(e).addClass(t)})).on("blur",":focusable",(({relatedTarget:r})=>{const a=$(r).parents(e);n.not(a).removeClass(t)}))})(".site-header-nav-item","-dropdown-open"),$('.site-header-nav-item-link[data-children="true"], .site-header-nav-item-dropdown').on("mouseenter mouseleave",(({type:e,currentTarget:t})=>{const n=$(t).parent();"mouseenter"===e?n.addClass("-dropdown-open"):n.removeClass("-dropdown-open")})),e(),$(window).on("resize",e)}],[".site-header-search",e=>{const t=$("html"),n=$(e),r=$(".js-search-open"),a=$(".js-search-field"),i=$(".js-search-submit"),s=n.find('form[role="search"]');r.on("click",(()=>{t.attr("data-search","open"),n.attr("aria-hidden","false"),setTimeout((()=>{a.trigger("focus")}),300)})),$(".js-search-close, .js-blocker").on("click",(()=>{t.attr("data-search","closed"),n.attr("aria-hidden","true"),setTimeout((()=>{r.trigger("focus")}),500)})),$(document).on("keydown",(({key:e})=>{"Esc"!==e&&"Escape"!==e||(t.attr("data-search","closed"),n.attr("aria-hidden","true"))})),a.on("input",(({currentTarget:e})=>{const t=$(e).val();t?i.prop("disabled",!1):i.prop("disabled",!0),a.val(t)})),s.on("submit",(e=>{e.preventDefault();const t=a.val().trim();if(t){const e=s.attr("action"),n=`#q=${encodeURIComponent(t)}`;window.location.href=`${e}${n}`}}))}],[".social-share",e=>{$(e).find("button:not(.icon-link").on("click",(({currentTarget:e})=>{let t;const n=window.location.href;switch($(e).data("service")){case"facebook":t="https://www.facebook.com/sharer/sharer.php?u="+n;break;case"twitter":t="https://twitter.com/intent/tweet/?url="+n;break;case"linkedin":t="https://www.linkedin.com/shareArticle?mini=true&url="+n}!function(e){const t=screen.height/3-150,n=screen.width/2-250;window.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=500,height=300,top="+t+",left="+n)}(t)}))}],[".coveo-search-results",()=>{if($(".search-layout").length){let e=!1;const t=$(".search-layout-filters-controller"),n=$(".search-layout-filters");$(window).resize((()=>{if(!(window.innerWidth>=900))return window.innerWidth<900&&e?(n.css("display","block"),void $(".coveo-dropdown-header-wrapper").css("display","none")):void(window.innerWidth<900&&!e&&(n.css("display","none"),$(".coveo-dropdown-header-wrapper").css("display","none")));n.css("display","block")})),t.click((r=>{r.preventDefault(),e?(e=!1,t.removeClass("-opened"),t.addClass("-closed"),n.slideToggle()):(e=!0,t.removeClass("-closed"),t.addClass("-opened"),n.slideToggle())}))}const e=e=>{let t=Coveo.$$(document).find(e);Coveo.$$(t).on("deferredQuerySuccess",(function(e,t){0==t.results.totalCount&&(Coveo.$$(document).find(".coveo-query-summary-no-results-string").innerHTML='\n <h3>Search Tips</h3>\n <p><strong>Tip 1</strong>: Search on detailed terms using complete words and avoid broad or partial terminology. </p>\n <p><strong>Tip 2:</strong> Punctuation can be used to enhance your search:</p>\n <ul>\n <li>Use quotes ("subluxated lens") to search exact terms.</li>\n <li>Add an asterisk (cornea*) as a placeholder for any wildcard terms. In this case, a search would return results including cornea, corneas, corneal, etc.</li>\n </ul>\n <p><strong>Tip 3</strong>: This search defaults to an AND search automatically, meaning if you type in two terms, the search will return only results containing both of those terms. For results including either term, add in “OR” between the terms (ex. “subluxated OR lens”).<br />\n <em>Note: At this time, the search does not support word elimination or “NOT” search functionality.</em></p>\n <p><strong>Tip 4</strong>: Avoid capitalization and conjunctions like "the," or "in." Also, avoid using media types like "video," "article," and "image."</p>\n <p><strong>Tip 5</strong>: Your results can be refined by using the “sort by” dropdown in the upper right-hand corner (Relevancy, Most Recent), or the filters on the left (by topic, by type, by meeting, or by date).</p>\n <p><strong>Tip 6</strong>
1: Once you have applied various filters to a search, a new search term entered into the Search box will retain those filters until the “Clear All Filters” button on the left-hand side is clicked.</p>\n <p>We are always trying to improve the ASCRS content and search capabilities. If you are having any trouble with search or would like to provide feedback to us, please contact us at <a href="mailto:[email protected]">[email protected]</a></p>\n ')}))};$('[data-search-interface-id="coveo4806c423"]').length&&e("#coveo4806c423"),$('[data-search-interface-id="coveo3af77b37"]').length&&e("#coveo3af77b37"),$('[data-search-interface-id="coveoa84282d5"]').length&&e("#coveoa84282d5")}],[".gdpr-alert",()=>{let e=sessionStorage.getItem("gdpr-alert");$(".gdpr-alert").length&&(e||(sessionStorage.setItem("gdpr-alert","true"),e=sessionStorage.getItem("gdpr-alert")),e&&"true"===e&&$(".gdpr-alert").addClass("-show-alert"),$(".gdpr-alert-close").on("click",(()=>{sessionStorage.setItem("gdpr-alert","false"),$(".gdpr-alert").slideToggle()})))}],[".modal",()=>{new s(document.getElementById("modal"));const e=document.querySelectorAll(".pledge-grid-item"),t=document.querySelectorAll(".modal-overlay, .modal-close");function n(){document.body.style.overflow="auto"}e.forEach((e=>{e.addEventListener("click",(function(){document.body.style.overflow="hidden"}))})),t.forEach((e=>{e.addEventListener("click",(function(){n()}))})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&n()}))}],[".members",e=>{$(e).find(".members-card-trigger").on("click",(e=>{const t=$(e.currentTarget),n=t.parents(".members-card"),r=n.find(".members-card-content");t.trigger("blur").attr("aria-expanded","true"===n.attr("data-expanded")?"false":"true").toggleClass("members-card-active"),r.attr("aria-hidden","true"===r.attr("aria-hidden")?"false":"true").slideToggle(250),n.attr("data-expanded","true"===n.attr("data-expanded")?"false":"true")})),$(".members-card-trigger").click((function(){$(".members-card-trigger").not(this).parent(".members-card").attr("data-expanded","false"),$(".members-card-trigger").not(this).attr("aria-expanded","false").next(".members-card-content").attr("aria-hidden","true"),$(".members-card-active").not(this).removeClass("members-card-active").next(".members-card-content").slideUp(250)}))}]],plugins:[()=>{$.extend($.expr[":"],{focusable:e=>$(e).is("a, button, :input, [tabindex]")})},()=>{class e{constructor(){this._loadingEvents=new Map,this._markup='<div class="loading-spinner"><div class="loading-spinner-text">Loading</div></div>',window.Drupal?.theme&&(window.Drupal.theme.ajaxProgressIndicatorFullscreen=()=>this._markup)}addEvent(e,t){if(this._loadingEvents.has(e)){if(!t){const t=this._loadingEvents.get(e)+1;this._loadingEvents.set(e,t)}}else this._loadingEvents.set(e,1);this._checkStatus()}endEvent(e){const t=this._loadingEvents.get(e);void 0!==t&&(t>1?this._loadingEvents.set(e,t-1):this._loadingEvents.delete(e),this._checkStatus())}_checkStatus(){this._loadingEvents.size?this._$loadingElement&&this._$loadingElement.parent().length||(this._$loadingElement=$(this._markup),this._$loadingElement.appendTo("body")):(this._$loadingElement&&this._$loadingElement.parent().length&&this._$loadingElement.remove(),this._$loadingElement=null)}}void 0===window.falcoreLoading&&(window.falcoreLoading=new e)},()=>{$("form").length&&($('form input[type="email"]').each(((e,t)=>{$t.setMessage(t,"typeMismatch","Please enter a valid email address.")})),$("form select").each(((e,t)=>{$t.setMessage(t,"valueMissing","Please select an option.")})),$t(window,{classes:{warning:"error-message",validated:"-validated",valid:"-valid",invalid:"-invalid"}}))},()=>{$("html").on("click",'a[href^="#"]:not([href="#"])',(e=>{if("#maincontent"!==e.currentTarget.hash){e.preventDefault();const t=e.currentTarget.hash,n=$(t);n.length&&((e,t=!0)=>{function n(e){e instanceof jQuery&&e.attr("id")&&history.pushState(null,null,"#"+e.attr("id"))}function r(e){e instanceof jQuery&&(e.focus(),e.is(":focus")||(e.attr("tabindex","-1"),e.focus()))}if(e instanceof jQuery&&!e.length)return;let a;if(e instanceof Element&&(e=$(e)),e instanceof jQuery)a=e.offset().top;else if(a=Number(e),Number.isNaN(a))throw"invalid smooth scroll target "+e;window.matchMedia("(prefers-reduced-motion: reduce)").matches?($("html, body").scrollTop(a),t&&n(e),r(e)):$("html, body").stop().animate({scrollTop:a},500,(()=>{t&&(n(e),r(e))}))})(n)}}))},()=>{$("html").on("click",".js-link-event",(({target:e,currentTarget:t})=>{if("A"===$(e).prop("tagName"))return;const n=$(t).find(".js-link-event-link");n.length&&n.get(0).click()})).on("focusin focusout",".js-link-event .js-link-event-link",(({currentTarget:e})=>
1{$(e).closest(".js-link-event").toggleClass("-focused")}))},()=>{$(".modal-close").on("click",(function(){$(this).closest(".modal").attr("aria-hidden","true")})),function(){const e=window.location.href,t=e.substring(e.indexOf("#")+1),n=$('[data-a11y-dialog="'+t+'"]');n.length>0&&setTimeout((()=>{n.attr("aria-hidden","false")}),800)}()},()=>{$(".icon-link").on("click",(function(){!function(e){navigator.clipboard&&navigator.clipboard.writeText(e)}(window.location.href+$(this).data("href")),function(){const e=$(".copied-popup");e.fadeIn(300,(function(){setTimeout((function(){e.fadeOut(300)}),1e3)}))}()}))},()=>{function e(e){const t=e.val(),n=$(".country-select.state"),r=$(".country-select.province"),a=$(".country-select.other-input");n.hide(),r.hide(),a.hide(),"usa"===t?n.show():"ca"===t?r.show():a.show()}$("#country").val("usa"),e($("#country")),$("#country").on("change",(function(){e($(this))}))}]};new class{constructor(e){this.initializer=e,this.callAll(this.initializer.plugins),new c("[data-animation]"),$((()=>{this.init()}))}init(){$(".faceted-search").length&&(new a).init(),this.callAll(this.initializer.components,this.initComponent),window.addEventListener("load",(()=>{navigator.serviceWorker.register("/service-worker.js",{scope:"/"})}))}callAll(e,t=(e=>e())){e.forEach(t)}initComponent([e,t]){const n=$(e);return n.length?n.each(((e,n)=>t(n))):null}}(Pt)}();
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.