PageSourceSearch

http://10000-people.com/js/js_ab0mx-2ticf1-sbawo2ulohp_gu4czpymjm6v3tn9tu.js

js 10000-people.com collected 2026-10-05 02:06:49 UTC 72,001 bytes, 120 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.validate.js. */
2(function(e,i,t){'use strict';if(typeof t.cvJqueryValidateOptions==='undefined'){t.cvJqueryValidateOptions={}};if(t.clientside_validation_jquery.force_validate_on_blur){t.cvJqueryValidateOptions.onfocusout=function(e){this.element(e)}};e.extend(e.validator.messages,t.clientside_validation_jquery.messages);e(document).trigger('cv-jquery-validate-options-update',t.cvJqueryValidateOptions);i.behaviors.cvJqueryValidate={attach:function(a){if(typeof i.Ajax!=='undefined'){if(typeof i.Ajax.prototype.beforeSubmitCVOriginal==='undefined'){var r=2;try{r=t.clientside_validation_jquery.validate_all_ajax_forms}catch(o){};i.Ajax.prototype.beforeSubmitCVOriginal=i.Ajax.prototype.beforeSubmit;i.Ajax.prototype.beforeSubmit=function(t,i,a){if(typeof this.$form!=='undefined'&&(r===1||e(this.element).hasClass('cv-validate-before-ajax'))){e(this.$form).removeClass('ajax-submit-prevented');e(this.$form).validate();if(!(e(this.$form).valid())){this.ajaxing=!1;e(this.$form).addClass('ajax-submit-prevented');return!1}};return this.beforeSubmitCVOriginal.apply(this,arguments)}}};e(a).find('form').once('cvJqueryValidate').each(function(){e(this).val
2idate(t.cvJqueryValidateOptions)})}}})(jQuery,Drupal,drupalSettings);
3/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.validate.js. */;
4/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.ckeditor.js. */
5(function(e,t,a,n){t.behaviors.cvJqueryValidateCKEditor={attach:function(i){if(typeof n==='undefined'){return};var c=':hidden',r=[];for(var s in n.instances){if(n.instances.hasOwnProperty(s)){r.push('#'+s)}};c+=r.length?':not('+r.join(', ')+')':'';e('form').each(function(){var t=e(this).data('validator');if(!t){return};t.settings.ignore=c;t.settings.errorPlacement=function(e,t){var a=t.attr('id'),i=t[0];if(n.instances.hasOwnProperty(a)){i=n.instances[a].container.$};e.insertAfter(i)}});var t=function(n){return a(function(t){n.updateElement();var a=e.extend(!0,{},t.data.$);delete a.target;delete a.explicitOriginalTarget;delete a.originalTarget;delete a.currentTarget;e(n.element.$).trigger(new e.Event(t.name,a))},250)};n.on('instanceReady',function(){for(var e in n.instances){if(n.instances.hasOwnProperty(e)){n.instances[e].document.on('keyup',t(n.instances[e]));n.instances[e].document.on('paste',t(n.instances[e]));n.instances[e].document.on('keypress',t(n.instances[e]));n.instances[e].document.on('blur',t(n.instances[e]));n.instances[e].document.on('change',t(n.instances[e]))}}})}}})(jQuery,Drupal,Drupal.debounce,(typeof CKEDITOR==='undefined')?undefined:CKEDITOR);
6/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.ckeditor.js. */;
7/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.ife.js. */
8(function(r){r(document).once('cvjquery').on('cv-jquery-validate-options-update',function(o,e){e.errorElement='strong';e.showErrors=function(o,e){for(var t in e){r(e[t].element).parent().find('.form-item--error-message').remove()};this.defaultShowErrors();r(this.currentForm).find('strong.error').each(function(){if(!r(this).parent().hasClass('form-item--error-message')){r(this).wrap('<div class="form-item--error-message"/>')}})}})})(jQuery);
9/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/clientside_validation/clientside_validation_jquery/js/cv.jquery.ife.js. */;
10/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/misc/progress.js. */
11(function(s,e){e.theme.progressBar=function(s){return'<div id="'.concat(s,'" class="progress" aria-live="polite">')+'<div class="progress__label">&nbsp;</div><div class="progress__track"><div class="progress__bar"></div></div><div class="progress__percentage"></div><div class="progress__description">&nbsp;</div></div>'};e.ProgressBar=function(r,i,t,a){this.id=r;this.method=t||'GET';this.updateCallback=i;this.errorCallback=a;this.element=s(e.theme('progressBar',r))};s.extend(e.ProgressBar.prototype,{setProgress:function(e,r,i){if(e>=0&&e<=100){s(this.element).find('div.progress__bar').css('width',''.concat(e,'%'));s(this.element).find('div.progress__percentage').html(''.concat(e,'%'))};s('div.progress__description',this.element).html(r);s('div.progress__label',this.element).html(i);if(this.updateCallback){this.updateCallback(e,r,this)}},startMonitoring:function(s,e){this.delay=e;this.uri=s;this.sendPing()},stopMonitoring:function(){clearTimeout(this.timer);this.uri=null},sendPing:function(){if(this.timer){clearTimeout(this.timer)};if(this.uri){var r=this,i=this.uri;if(i.indexOf('?')===-1){i+='?'}
12else{i+='&'};i+='_format=json';s.ajax({type:this.method,url:i,data:'',dataType:'json',success:function(s){if(s.status===0){r.displayError(s.data);return};r.setProgress(s.percentage,s.message,s.label);r.timer=setTimeout(function(){r.sendPing()},r.delay)},error:function(s){var i=new e.AjaxError(s,r.uri);r.displayError('<pre>'.concat(i.message,'</pre>'))}})}},displayError:function(e){var r=s('<div class="messages messages--error"></div>').html(e);s(this.element).before(r).hide();if(this.errorCallback){this.errorCallback(this)}}})})(jQuery,Drupal);
13/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/misc/progress.js. */;
14/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/modules/responsive_image/js/responsive_image.ajax.js. */
15(function(i){i.behaviors.responsiveImageAJAX={attach:function(){if(window.picturefill){window.picturefill()}}}})(Drupal);
16/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/modules/responsive_image/js/responsive_image.ajax.js. */;
17/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/misc/ajax.js. */
18;function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()};function _nonIterableSpread(){throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')};function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==='string')return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==='Object'&&e.constructor)r=e.constructor.name;if(r==='Map'||r==='Set')return Array.from(e);if(r==='Arguments'||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)};function _iterableToArray(e){if(typeof Symbol!=='undefined'&&e[Symbol.iterator]!=null||e['@@iterator']!=null)return Array.from(e)};function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)};function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,a=new Array(t);r<t;r++){a[r]=e[r]};return a}(function(e,r,t,a,s){var o=s.isFocusable,n=s.tabbable;t.behaviors.AJAX={attach:function(r,a){function s(r){var s=a.ajax[r];if(typeof s.selector==='undefined'){s.selector='#'.concat(r)};
18once('drupal-ajax',e(s.selector)).forEach(function(e){s.element=e;s.base=r;t.ajax(s)})};Object.keys(a.ajax||{}).forEach(function(e){return s(e)});t.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach(function(r){var a={};a.url=e(r.form).attr('action');a.setClick=!0;a.event='click';a.progress={type:'throbber'};a.base=r.id;a.element=r;t.ajax(a)})},detach:function(e,r,a){if(a==='unload'){t.ajax.expired().forEach(function(e){t.ajax.instances[e.instanceIndex]=null})}}};t.AjaxError=function(e,r,a){var o,n,s;if(e.status){o='\n'.concat(t.t('An AJAX HTTP error occurred.'),'\n').concat(t.t('HTTP Result Code: !status',{'!status':e.status}))}
19else{o='\n'.concat(t.t('An AJAX HTTP request terminated abnormally.'))};o+='\n'.concat(t.t('Debugging information follows.'));var l='\n'.concat(t.t('Path: !uri',{'!uri':r}));n='';try{n='\n'.concat(t.t('StatusText: !statusText',{'!statusText':e.statusText.trim()}))}catch(i){};s='';try{s='\n'.concat(t.t('ResponseText: !responseText',{'!responseText':e.responseText.trim()}))}catch(i){};s=s.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');s=s.replace(/[\n]+\s+/g,'\n');var c=e.status===0?'\n'.concat(t.t('ReadyState: !readyState',{'!readyState':e.readyState})):'';a=a?'\n'.concat(t.t('CustomMessage: !customMessage',{'!customMessage':a})):'';this.message=o+l+n+a+s+c;this.name='AjaxError'};t.AjaxError.prototype=new Error();t.AjaxError.prototype.constructor=t.AjaxError;t.ajax=function(e){if(arguments.length!==1){throw new Error('Drupal.ajax() function must be called with one configuration object only')};var s=e.base||!1,a=e.element||!1;delete e.base;delete e.element;if(!e.progress&&!a){e.progress=!1};var r=new t.Ajax(s,a,e);r.instanceIndex=t.ajax.instances.length;t.ajax.instances.push(r);return r};t.ajax.instances=[];t.ajax.expired=function(){return t.ajax.instances.filter(function(e){return e&&e.element!==!1&&!document.body.contains(e.element)})};t.ajax.bindAjaxLinks=function(r){once('ajax','.use-ajax',r).forEach(function(r){var a=e(r),s={progress:{type:'throbber'},dialogType:a.data('dialog-type'),dialog:a.data('dialog-options'),dialogRenderer:a.data('dialog-renderer'),base:a.attr('id'),element:r};var o=a.attr('href');if(o){s.url=o;s.event='click'};t.ajax(s)})};t.Ajax=function(r,s,o){var f={event:s?'mousedown':null,keypress:!0,selector:r?'#'.concat(r):null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:t.t('Please wait...')},submit:{js:!0}};e.extend(this,f,o);this.commands=new t.AjaxCommands();this.instanceIndex=!1;if(this.wrapper){this.wrapper='#'.concat(this.wrapper)};this.element=s;this.element_settings=o;this.elementSettings=o;if(this.element&&this.element.form){this.$form=e(this.element.form)};if(!this.url){var c=e(this.element);if(c.is('a')){this.url=c.attr('href')}
20else if(this.element&&s.form){this.url=this.$form.attr('action')}};var l=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(a.ajaxTrustedUrl[l]){a.ajaxTrustedUrl[this.url]=!0};var n=this;n.options={url:n.url,data:n.submit,beforeSerialize:function(e,t){return n.beforeSerialize(e,t)},beforeSubmit:function(e,t,r){n.ajaxing=!0;return n.beforeSubmit(e,t,r)},beforeSend:function(e,t){n.ajaxing=!0;return n.beforeSend(e,t)},success:function(r,s,o){if(typeof r==='string'){r=e.parseJSON(r)};if(r!==null&&!a.ajaxTrustedUrl[n.url]){if(o.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){var i=t.t('The response failed verification so will not be processed.');return n.error(o,n.url,i)}};return n.success(r,s)},complete:function(e,t){n.ajaxing=!1;if(t==='error'||t==='parsererror'){return n.error(e,n.url)}},dataType:'json',jsonp:!1,type:'POST'};if(o.dialog){n.options.data.dialogOptions=o.dialog};if(n.options.url.indexOf('?')===-1){n.options.url+='?'}
21else{n.options.url+='&'};var i='drupal_'.concat(o.dialogType||'ajax');if(o.dialogRenderer){i+='.'.concat(o.dialogRenderer)};n.options.url+=''.concat(t.ajax.WRAPPER_FORMAT,'=').concat(i);e(n.element).on(o.event,function(e){if(!a.ajaxTrustedUrl[n.url]&&!t.url.isLocal(n.url)){throw new Error(t.t('The callback URL is not local and not trusted: !url',{'!url':n.url}))};return n.eventResponse(this,e)});if(o.keypress){e(n.element).on('keypress',function(e){return n.keypressResponse(this,e)})};if(o.prevent){e(n.element).on(o.prevent,!1)}};t.ajax.WRAPPER_FORMAT='_wrapper_format';t.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';t.Ajax.prototype.execute=function(){if(this.ajaxing){return};try{this.beforeSerialize(this.element,this.options);return e.ajax(this.options)}catch(t){this.ajaxing=!1;r.alert('An error occurred while attempting to process '.concat(this.options.url,': ').concat(t.message));return e.Deferred().reject()}};t.Ajax.prototype.keypressResponse=function(t,r){var a=this;if(r.which===13||r.which===32&&t.type!=='text'&&t.type!=='textarea'&&t.type!=='tel'&&t.type!=='number'){r.preventDefault();r.stopPropagation();e(t).trigger(a.elementSettings.event)}};t.Ajax.prototype.eventResponse=function(t,a){a.preventDefault();a.stopPropagation();var s=this;if(s.ajaxing){return};try{if(s.$form){if(s.setClick){t.form.clk=t};s.$form.ajaxSubmit(s.options)}
22else{s.beforeSerialize(s.element,s.options);e.ajax(s.options)}}catch(o){s.ajaxing=!1;r.alert('An error occurred while attempting to process '.concat(s.options.url,': ').concat(o.message))}};t.Ajax.prototype.beforeSerialize=function(e,r){if(this.$form&&document.body.contains(this.$form.get(0))){var o=this.settings||a;t.detachBehaviors(this.$form.get(0),o,'serialize')};r.data[t.Ajax.AJAX_REQUEST_PARAMETER]=1;var s=a.ajaxPageState;r.data['ajax_page_state[theme]']=s.theme;r.data['ajax_page_state[theme_token]']=s.theme_token;r.data['ajax_page_state[libraries]']=s.libraries};t.Ajax.prototype.beforeSubmit=function(e,t,r){};t.Ajax.prototype.beforeSend=function(t,r){if(this.$form){r.extraData=r.extraData||{};r.extraData.ajax_iframe_upload='1';var s=e.fieldValue(this.element);if(s!==null){r.extraData[this.element.name]=s}};e(this.element).prop('disabled',!0);if(!this.progress||!this.progress.type){return};var a='setProgressIndicator'.concat(this.progress.type.slice(0,1).toUpperCase()).concat(this.progress.type.slice(1).toLowerCase());if(a in this&&typeof this[a]==='function'){this[a].call(this)}};t.theme.ajaxProgressThrobber=function(e){var r=typeof e==='string'?t.theme('ajaxProgressMessage',e):'',a='<div class="throbber">&nbsp;</div>';return'<div class="ajax-progress ajax-progress-throbber">'.concat(a).concat(r,'</div>')};t.theme.ajaxProgressIndicatorFullscreen=function(){return'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>'};t.theme.ajaxProgressMessage=function(e){return'<div class="message">'.concat(e,'</div>')};t.theme.ajaxProgressBar=function(t){return e('<div class="ajax-progress ajax-progress-bar"></div>').append(t)};t.Ajax.prototype.setProgressIndicatorBar=function(){var r=new t.ProgressBar('ajax-progress-'.concat(this.element.i
22d),e.noop,this.progress.method,e.noop);if(this.progress.message){r.setProgress(-1,this.progress.message)};if(this.progress.url){r.startMonitoring(this.progress.url,this.progress.interval||1500)};this.progress.element=e(t.theme('ajaxProgressBar',r.element));this.progress.object=r;e(this.element).after(this.progress.element)};t.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=e(t.theme('ajaxProgressThrobber',this.progress.message));e(this.element).after(this.progress.element)};t.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=e(t.theme('ajaxProgressIndicatorFullscreen'));e('body').append(this.progress.element)};t.Ajax.prototype.success=function(r,s){var i=this;if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.element).prop('disabled',!1);var c=e(this.element).parents('[data-drupal-selector]').addBack().toArray(),l=!1;Object.keys(r||{}).forEach(function(e){if(r[e].command&&i.commands[r[e].command]){i.commands[r[e].command](i,r[e],s);if(r[e].command==='invoke'&&r[e].method==='focus'||r[e].command==='focusFirst'){l=!0}}});if(!l&&this.element&&!e(this.element).data('disable-refocus')){var o=!1;for(var n=c.length-1;!o&&n>=0;n--){o=document.querySelector('[data-drupal-selector="'.concat(c[n].getAttribute('data-drupal-selector'),'"]'))};if(o){e(o).trigger('focus')}};if(this.$form&&document.body.contains(this.$form.get(0))){var f=this.settings||a;t.attachBehaviors(this.$form.get(0),f)};this.settings=null};t.Ajax.prototype.getEffect=function(e){var r=e.effect||this.effect,a=e.speed||this.speed,t={};if(r==='none'){t.showEffect='show';t.hideEffect='hide';t.showSpeed=''}
23else if(r==='fade'){t.showEffect='fadeIn';t.hideEffect='fadeOut';t.showSpeed=a}
24else{t.showEffect=''.concat(r,'Toggle');t.hideEffect=''.concat(r,'Toggle');t.showSpeed=a};return t};t.Ajax.prototype.error=function(r,s,o){if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.wrapper).show();e(this.element).prop('disabled',!1);if(this.$form&&document.body.contains(this.$form.get(0))){var n=this.settings||a;t.attachBehaviors(this.$form.get(0),n)};throw new t.AjaxError(r,s,o)};t.theme.ajaxWrapperNewContent=function(e,r,a){return(a.effect||r.effect)!=='none'&&e.filter(function(t){return!(e[t].nodeName==='#comment'||e[t].nodeName==='#text'&&/^(\s|\n|\r)*$/.test(e[t].textContent))}).length>1?t.theme('ajaxWrapperMultipleRootElements',e):e};t.theme.ajaxWrapperMultipleRootElements=function(t){return e('<div></div>').append(t)};t.AjaxCommands=function(){};t.AjaxCommands.prototype={insert:function(r,s){var c=s.selector?e(s.selector):e(r.wrapper),l=s.method||r.method,n=r.getEffect(s),f=s.settings||r.settings||a,o=e(e.parseHTML(s.data,document,!0));o=t.theme('ajaxWrapperNewContent',o,r,s);switch(l){case'html':case'replaceWith':case'replaceAll':case'empty':case'remove':t.detachBehaviors(c.get(0),f);break;default:break};c[l](o);if(n.showEffect!=='show'){o.hide()};var i=o.find('.ajax-new-content');if(i.length){i.hide();o.show();i[n.showEffect](n.showSpeed)}
25else if(n.showEffect!=='show'){o[n.showEffect](n.showSpeed)};if(o.parents('html').length){o.each(function(e,r){if(r.nodeType===Node.ELEMENT_NODE){t.attachBehaviors(r,f)}})}},remove:function(r,s,o){var n=s.settings||r.settings||a;e(s.selector).each(function(){t.detachBehaviors(this,n)}).remove()},changed:function(r,a,s){var o=e(a.selector);if(!o.hasClass('ajax-changed')){o.addClass('ajax-changed');if(a.asterisk){o.find(a.asterisk).append(' <abbr class="ajax-changed" title="'.concat(t.t('Changed'),'">*</abbr> '))}}},alert:function(e,t,a){r.alert(t.text)},announce:function(e,r){if(r.priority){t.announce(r.text,r.priority)}
26else{t.announce(r.text)}},redirect:function(e,t,a){r.location=t.url},css:function(t,r,a){e(r.selector).css(r.argument)},settings:function(r,s,o){var n=a.ajax;if(n){t.ajax.expired().forEach(function(e){if(e.selector){var t=e.selector.replace('#','');if(t in n){delete n[t]}}})};if(s.merge){e.extend(!0,a,s.settings)}
27else{r.settings=s.settings}},data:function(t,r,a){e(r.selector).data(r.name,r.value)},focusFirst:function(e,t,r){var s=!1,a=document.querySelector(t.selector);if(a){var i=n(a);if(i.length){i[0].focus();s=!0}
28else if(o(a)){a.focus();s=!0}};if(e.hasOwnProperty('element')&&!s){e.element.focus()}},invoke:function(t,r,a){var s=e(r.selector);s[r.method].apply(s,_toConsumableArray(r.args))},restripe:function(t,r,a){e(r.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even')},update_build_id:function(t,r,a){e('input[name="form_build_id"][value="'.concat(r.old,'"]')).val(r.new)},add_css:function(t,r,a){e('head').prepend(r.data)},message:function(e,r){var a=new t.Message(document.querySelector(r.messageWrapperQuerySelector));if(r.clearPrevious){a.clear()};a.add(r.message,r.messageOptions)}}})(jQuery,window,Drupal,drupalSettings,window.tabbable);
29/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/misc/ajax.js. */;
30/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/themes/stable/js/ajax.js. */
31(function(a){a.theme.ajaxProgressBar=function(a){return a.addClass('ajax-progress ajax-progress-bar')}})(Drupal);
32/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/themes/stable/js/ajax.js. */;
33/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/blazy/js/base/io/bio.ajax.min.js. */
34!function(s,t){"use strict";var c,i,u=t.blazy||{};(t=(t.Ajax||{}).prototype).success=(i=t.success,function(t,e){var n,o=u.init;return o&&(n=u.options,clearTimeout(c),c=setTimeout(function(){var t=s.findAll(document,s.selector(n,!0));t.length&&o.load(t,!0,n)},100)),i.apply(this,arguments)})}(dBlazy,Drupal);
35
36/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/blazy/js/base/io/bio.ajax.min.js. */;
37/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/assets/vendor/jquery-form/jquery.form.min.js. */
38/*!
39 * jQuery Form Plugin
40 * version: 4.3.0
41 * Requires jQuery v1.7.2 or later
42 * Project repository: https://github.com/jquery-form/form
43
44 * Copyright 2017 Kevin Morris
45 * Copyright 2006 M. Alsup
46
47 * Dual licensed under the LGPL-2.1+ or MIT licenses
48 * https://github.com/jquery-form/form#license
49
50 * This library is free software; you can redistribute it and/or
51 * modify it under the terms of the GNU Lesser General Public
vendor: 16,397 bytes, lines 52-59
52 * License as published by the Free Software Foundation; either
53 * version 2.1 of the License, or (at your option) any later version.
54 * This library is distributed in the hope that it will be useful,
55 * but WITHOUT ANY WARRANTY; without even the implied warranty of
56 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
57 * Lesser General Public License for more details.
58 */
59!function(r){"function"==typeof define&&define.amd?define(["jquery"],r):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),r(t),t}:r(jQuery)}(function(q){"use strict";var m=/\r?\n/g,S={};S.fileapi=void 0!==q('<input type="file">').get(0).files,S.formdata=void 0!==window.FormData;var _=!!q.fn.prop;function o(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),q(e.target).closest("form").ajaxSubmit(t))}function i(e){var t=e.target,r=q(t);if(!r.is("[type=submit],[type=image]")){var a=r.closest("[type=submit]");if(0===a.length)return;t=a[0]}var n,o=t.form;"image"===(o.clk=t).type&&(void 0!==e.offsetX?(o.clk_x=e.offsetX,o.clk_y=e.offsetY):"function"==typeof q.fn.offset?(n=r.offset(),o.clk_x=e.pageX-n.left,o.clk_y=e.pageY-n.top):(o.clk_x=e.pageX-t.offsetLeft,o.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function N(){var e;q.fn.ajaxSubmit.debug&&(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e))}q.fn.attr2=function(){if(!_)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},q.fn.ajaxSubmit=function(M,e,t,r){if(!this.length)return N("ajaxSubmit: skipping submit process - no element selected"),this;var O,a,n,o,X=this;"function"==typeof M?M={success:M}:"string"==typeof M||!1===M&&0<arguments.length?(M={url:M,data:e,dataType:t},"function"==typeof r&&(M.success=r)):void 0===M&&(M={}),O=M.method||M.type||this.attr2("method"),n=(n=(n="string"==typeof(a=M.url||this.attr2("action"))?q.trim(a):"")||window.location.href||"")&&(n.match(/^([^#]+)/)||[])[1],o=/(MSIE|Trident)/.test(navigator.userAgent||"")&&/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",M=q.extend(!0,{url:n,success:q.ajaxSettings.success,type:O||q.ajaxSettings.type,iframeSrc:o},M);var i={};if(this.trigger("form-pre-serialize",[this,M,i]),i.veto)return N("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(M.beforeSerialize&&!1===M.beforeSerialize(this,M))return N("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var s=M.traditional;void 0===s&&(s=q.ajaxSettings.traditional);var u,c,C=[],l=this.formToArray(M.semantic,C,M.filtering);if(M.data&&(c=q.isFunction(M.data)?M.data(l):M.data,M.extraData=c,u=q.param(c,s)),M.beforeSubmit&&!1===M.beforeSubmit(l,this,M))return N("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[l,this,M,i]),i.veto)return N("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var f=q.param(l,s);u&&(f=f?f+"&"+u:u),"GET"===M.type.toUpperCase()?(M.url+=(0<=M.url.indexOf("?")?"&":"?")+f,M.data=null):M.data=f;var d,m,p,h=[];M.resetForm&&h.push(function(){X.resetForm()}),M.clearForm&&h.push(function(){X.clearForm(M.includeHidden)}),!M.dataType&&M.target?(d=M.success||function(){},h.push(function(e,t,r){var a=arguments,n=M.replaceTarget?"replaceWith":"html";q(M.target)[n](e).each(function(){d.apply(this,a)})})):M.success&&(q.isArray(M.success)?q.merge(h,M.success):h.push(M.success)),M.success=function(e,t,r){for(var a=M.context||this,n=0,o=h.length;n<o;n++)h[n].apply(a,[e,t,r||X,X])},M.error&&(m=M.error,M.error=function(e,t,r){var a=M.context||this;m.apply(a,[e,t,r,X])}),M.complete&&(p=M.complete,M.complete=function(e,t){var r=M.context||this;p.apply(r,[e,t,X])});var v=0<q("input[type=file]:enabled",this).filter(function(){return""!==q(this).val()}).length,g="multipart/form-data",x=X.attr("enctype")===g||X.attr("encoding")===g,y=S.fileapi&&S.formdata;N("fileAPI :"+y);var b,T=(v||x)&&!y;!1!==M.iframe&&(M.iframe||T)?M.closeKeepAlive?q.get(M.closeKeepAlive,function(){b=w(l)}):b=w(l):b=(v||x)&&y?function(e){for(var r=new FormData,t=0;t<e.length;t++)r.append(e[t].name,e[t].value);if(M.extraData){var a=function(e){var t,r,a=q.param(e,M.traditional).split("&"),n=a.length,o=[];for(t=0;t<n;t++)a[t]=a[t].replace(/\+/g," "),r=a[t].split("="),o.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return o}(M.extraData);for(t=0;t<a.length;t++)a[t]&&r.append(a[t][0],a[t][1])}M.data=null;var n=q.extend(!0,{},q.ajaxSettings,M,{contentType:!1,processData:!1,cache:!1,type:O||"POST"});M.uploadProgress&&(n.xhr=function(){var e=q.ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",function(e){var t=0,r=e.loaded||e.position,a=e.total;e.lengthComputable&&(t=Math.ceil(r/a*100)),M.uploadProgress(e,r,a,t)},!1),e});n.data=null;var o=n.beforeSend;return n.beforeSend=function(e,t){M.formData?t.data=M.formData:t.data=r,o&&o.call(this,e,t)},q.ajax(n)}(l):q.ajax(M),X.removeData("jqxhr").data("jqxhr",b);for(var j=0;j<C.length;j++)C[j]=null;return this.trigger("form-submit-notify",[this,M]),this;function w(e){var t,r,l,f,o,d,m,p,a,n,h,v,i=X[0],g=q.Deferred();if(g.abort=function(e){p.abort(e)},e)for(r=0;r<C.length;r++)t=q(C[r]),_?t.prop("disabled",!1):t.removeAttr("disabled");(l=q.extend(!0,{},q.ajaxSettings,M)).context=l.context||l,o="jqFormIO"+(new Date).getTime();var s=i.ownerDocument,u=X.closest("body");if(l.iframeTarget?(n=(d=q(l.iframeTarget,s)).attr2("name"))?o=n:d.attr2("name",o):(d=q('<iframe name="'+o+'" src="'+l.iframeSrc+'" />',s)).css({position:"absolute",top:"-1000px",left:"-1000px"}),m=d[0],p={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";N("aborting upload... "+t),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch(e){}d.attr("src",l.iframeSrc),p.error=t,l.error&&l.error.call(l.context,p,t,e),f&&q.event.trigger("ajaxError",[p,l,t]),l.complete&&l.complete.call(l.context,p,t)}},(f=l.global)&&0==q.active++&&q.event.trigger("ajaxStart"),f&&q.event.trigger("ajaxSend",[p,l]),l.beforeSend&&!1===l.beforeSend.call(l.context,p,l))return l.global&&q.active--,g.reject(),g;if(p.aborted)return g.reject(),g;(a=i.clk)&&(n=a.name)&&!a.disabled&&(l.extraData=l.extraData||{},l.extraData[n]=a.value,"image"===a.type&&(l.extraData[n+".x"]=i.clk_x,l.extraData[n+".y"]=i.clk_y));var x=1,y=2;function b(t){var r=null;try{t.contentWindow&&(r=t.contentWindow.document)}catch(e){N("cannot get iframe.contentWindow document: "+e)}if(r)return r;try{r=t.contentDocument?t.contentDocument:t.document}catch(e){N("cannot get iframe.contentDocument: "+e),r=t.document}return r}var c=q("meta[name=csrf-token]").attr("content"),T=q("meta[name=csrf-param]").attr("content");function j(){var e=X.attr2("target"),t=X.attr2("action"),r=X.attr("enctype")||X.attr("encoding")||"multipart/form-data";i.setAttribute("target",o),O&&!/post/i.test(O)||i.setAttribute("method","POST"),t!==l.url&&i.setAttribute("action",l.url),l.skipEncodingOverride||O&&!/post/i.test(O)||X.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),l.timeout&&(v=setTimeout(function(){h=!0,A(x)},l.timeout));var a=[];try{if(l.extraData)for(var n in l.extraData)l.extraData.hasOwnProperty(n)&&(q.isPlainObject(l.extraData[n])&&l.extraData[n].hasOwnProperty("name")&&l.extraData[n].hasOwnProperty("value")?a.push(q('<input type="hidden" name="'+l.extraData[n].name+'">',s).val(l.extraData[n].value).appendTo(i)[0]):a.push(q('<input type="hidden" name="'+n+'">',s).val(l.extraData[n]).appendTo(i)[0]));l.iframeTarget||d.appendTo(u),m.attachEvent?m.attachEvent("onload",A):m.addEventListener("load",A,!1),setTimeout(function e(){try{var t=b(m).readyState;N("state = "+t),t&&"uninitialized"===t.toLowerCase()&&setTimeout(e,50)}catch(e){N("Server abort: ",e," (",e.name,")"),A(y),v&&clearTimeout(v),v=void 0}},15);try{i.submit()}catch(e){document.createElement("form").submit.apply(i)}}finally{i.setAttribute("action",t),i.setAttribute("enctype",r),e?i.setAttribute("target",e):X.removeAttr("target"),q(a).remove()}}T&&c&&(l.extraData=l.extraData||{},l.extraData[T]=c),l.forceSync?j():setTimeout(j,10);var w,S,k,D=50;function A(e){if(!p.aborted&&!k){if((S=b(m))||(N("cannot access response document"),e=y),e===x&&p)return p.abort("timeout"),void g.reject(p,"timeout");if(e===y&&p)return p.abort("server abort"),void g.reject(p,"error","server abort");if(S&&S.location.href!==l.iframeSrc||h){m.detachEvent?m.detachEvent("onload",A):m.removeEventListener("load",A,!1);var t,r="success";try{if(h)throw"timeout";var a="xml"===l.dataType||S.XMLDocument||q.isXMLDoc(S);if(N("isXml="+a),!a&&window.opera&&(null===S.body||!S.body.innerHTML)&&--D)return N("requeing onLoad callback, DOM not available"),void setTimeout(A,250);var n=S.body?S.body:S.documentElement;p.responseText=n?n.innerHTML:null,p.responseXML=S.XMLDocument?S.XMLDocument:S,a&&(l.dataType="xml"),p.getResponseHeader=function(e){return{"content-type":l.dataType}[e.toLowerCase()]},n&&(p.status=Number(n.getAttribute("status"))||p.status,p.statusText=n.getAttribute("statusText")||p.statusText);var o,i,s,u=(l.dataType||"").toLowerCase(),c=/(json|script|text)/.test(u);c||l.textarea?(o=S.getElementsByTagName("textarea")[0])?(p.responseText=o.value,p.status=Number(o.getAttribute("status"))||p.status,p.statusText=o.getAttribute("statusText")||p.statusText):c&&(i=S.getElementsByTagName("pre")[0],s=S.getElementsByTagName("body")[0],i?p.responseText=i.textContent?i.textContent:i.innerText:s&&(p.responseText=s.textContent?s.textContent:s.innerText)):"xml"===u&&!p.responseXML&&p.responseText&&(p.responseXML=F(p.responseText));try{w=E(p,u,l)}catch(e){r="parsererror",p.error=t=e||r}}catch(e){N("error caught: ",e),r="error",p.error=t=e||r}p.aborted&&(N("upload aborted"),r=null),p.status&&(r=200<=p.status&&p.status<300||304===p.status?"success":"error"),"success"===r?(l.success&&l.success.call(l.context,w,"success",p),g.resolve(p.responseText,"success",p),f&&q.event.trigger("ajaxSuccess",[p,l])):r&&(void 0===t&&(t=p.statusText),l.error&&l.error.call(l.context,p,r,t),g.reject(p,"error",t),f&&q.event.trigger("ajaxError",[p,l,t])),f&&q.event.trigger("ajaxComplete",[p,l]),f&&!--q.active&&q.event.trigger("ajaxStop"),l.complete&&l.complete.call(l.context,p,r),k=!0,l.timeout&&clearTimeout(v),setTimeout(function(){l.iframeTarget?d.attr("src",l.iframeSrc):d.remove(),p.responseXML=null},100)}}}var F=q.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},L=q.parseJSON||function(e){return window.eval("("+e+")")},E=function(e,t,r){var a=e.getResponseHeader("content-type")||"",n=("xml"===t||!t)&&0<=a.indexOf("xml"),o=n?e.responseXML:e.responseText;return n&&"parsererror"===o.documentElement.nodeName&&q.error&&q.error("parsererror"),r&&r.dataFilter&&(o=r.dataFilter(o,t)),"string"==typeof o&&(("json"===t||!t)&&0<=a.indexOf("json")?o=L(o):("script"===t||!t)&&0<=a.indexOf("javascript")&&q.globalEval(o)),o};return g}},q.fn.ajaxForm=function(e,t,r,a){if(("string"==typeof e||!1===e&&0<arguments.length)&&(e={url:e,data:t,dataType:r},"function"==typeof a&&(e.success=a)),(e=e||{}).delegation=e.delegation&&q.isFunction(q.fn.on),e.delegation||0!==this.length)return e.delegation?(q(document).off("submit.form-plugin",this.selector,o).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,e,o).on("click.form-plugin",this.selector,e,i),this):(e.beforeFormUnbind&&e.beforeFormUnbind(this,e),this.ajaxFormUnbind().on("submit.form-plugin",e,o).on("click.form-plugin",e,i));var n={s:this.selector,c:this.context};return!q.isReady&&n.s?(N("DOM not ready, queuing ajaxForm"),q(function(){q(n.s,n.c).ajaxForm(e)})):N("terminating; zero elements found by selector"+(q.isReady?"":" (DOM not ready)")),this},q.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},q.fn.formToArray=function(e,t,r){var a=[];if(0===this.length)return a;var n,o,i,s,u,c,l,f,d,m,p=this[0],h=this.attr("id"),v=(v=e||void 0===p.elements?p.getElementsByTagName("*"):p.elements)&&q.makeArray(v);if(h&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(n=q(':input[form="'+h+'"]').get()).length&&(v=(v||[]).concat(n)),!v||!v.length)return a;for(q.isFunction(r)&&(v=q.map(v,r)),o=0,c=v.length;o<c;o++)if((m=(u=v[o]).name)&&!u.disabled)if(e&&p.clk&&"image"===u.type)p.clk===u&&(a.push({name:m,value:q(u).val(),type:u.type}),a.push({name:m+".x",value:p.clk_x},{name:m+".y",value:p.clk_y}));else if((s=q.fieldValue(u,!0))&&s.constructor===Array)for(t&&t.push(u),i=0,l=s.length;i<l;i++)a.push({name:m,value:s[i]});else if(S.fileapi&&"file"===u.type){t&&t.push(u);var g=u.files;if(g.length)for(i=0;i<g.length;i++)a.push({name:m,value:g[i],type:u.type});else a.push({name:m,value:"",type:u.type})}else null!=s&&(t&&t.push(u),a.push({name:m,value:s,type:u.type,required:u.required}));return e||!p.clk||(m=(d=(f=q(p.clk))[0]).name)&&!d.disabled&&"image"===d.type&&(a.push({name:m,value:f.val()}),a.push({name:m+".x",value:p.clk_x},{name:m+".y",value:p.clk_y})),a},q.fn.formSerialize=function(e){return q.param(this.formToArray(e))},q.fn.fieldSerialize=function(n){var o=[];return this.each(function(){var e=this.name;if(e){var t=q.fieldValue(this,n);if(t&&t.constructor===Array)for(var r=0,a=t.length;r<a;r++)o.push({name:e,value:t[r]});else null!=t&&o.push({name:this.name,value:t})}}),q.param(o)},q.fn.fieldValue=function(e){for(var t=[],r=0,a=this.length;r<a;r++){var n=this[r],o=q.fieldValue(n,e);null==o||o.constructor===Array&&!o.length||(o.constructor===Array?q.merge(t,o):t.push(o))}return t},q.fieldValue=function(e,t){var r=e.name,a=e.type,n=e.tagName.toLowerCase();if(void 0===t&&(t=!0),t&&(!r||e.disabled||"reset"===a||"button"===a||("checkbox"===a||"radio"===a)&&!e.checked||("submit"===a||"image"===a)&&e.form&&e.form.clk!==e||"select"===n&&-1===e.selectedIndex))return null;if("select"!==n)return q(e).val().replace(m,"\r\n");var o=e.selectedIndex;if(o<0)return null;for(var i=[],s=e.options,u="select-one"===a,c=u?o+1:s.length,l=u?o:0;l<c;l++){var f=s[l];if(f.selected&&!f.disabled){var d=(d=f.value)||(f.attributes&&f.attributes.value&&!f.attributes.value.specified?f.text:f.value);if(u)return d;i.push(d)}}return i},q.fn.clearForm=function(e){return this.each(function(){q("input,select,textarea",this).clearFields(e)})},q.fn.clearFields=q.fn.clearInputs=function(r){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();a.test(e)||"textarea"===t?this.value="":"checkbox"===e||"radio"===e?this.checked=!1:"select"===t?this.selectedIndex=-1:"file"===e?/MSIE/.test(navigator.userAgent)?q(this).replaceWith(q(this).clone(!0)):q(this).val(""):r&&(!0===r&&/hidden/.test(e)||"string"==typeof r&&q(this).is(r))&&(this.value="")})},q.fn.resetForm=function(){return this.each(function(){var t=q(this),e=this.tagName.toLowerCase();switch(e){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var r=t.parents("select");return r.length&&r[0].multiple?"option"===e?this.selected=this.defaultSelected:t.find("option").resetForm():r.resetForm(),!0;case"select":return t.find("option").each(function(e){if(this.selected=this.defaultSelected,this.defaultSelected&&!t[0].multiple)return t[0].selectedIndex=e,!1}),!0;case"label":var a=q(t.attr("for")),n=t.find("input,select,textarea");return a[0]&&n.unshift(a[0]),n.resetForm(),!0;case"form":return"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset(),!0;default:return t.find("form,input,label,select,textarea").resetForm(),!0}})},q.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},q.fn.selected=function(r){return void 0===r&&(r=!0),this.each(function(){var e,t=this.t
59ype;"checkbox"===t||"radio"===t?this.checked=r:"option"===this.tagName.toLowerCase()&&(e=q(this).parent("select"),r&&e[0]&&"select-one"===e[0].type&&e.find("option").selected(!1),this.selected=r)})},q.fn.ajaxSubmit.debug=!1});
60
61/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/assets/vendor/jquery-form/jquery.form.min.js. */;
62/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/modules/views/js/base.js. */
63(function(n,t,e){t.Views={};t.Views.parseQueryString=function(t){var s={};var i=t.indexOf('?');if(i!==-1){t=t.substring(i+1)};var n,r=t.split('&');for(var e=0;e<r.length;e++){n=r[e].split('=');if(n[0]!=='q'&&n[1]){s[decodeURIComponent(n[0].replace(/\+/g,' '))]=decodeURIComponent(n[1].replace(/\+/g,' '))}};return s};t.Views.parseViewArgs=function(n,g){var s={};var r=t.Views.getPath(n),i=t.url(g).substring(e.path.baseUrl.length);if(i&&r.substring(0,i.length+1)===''.concat(i,'/')){s.view_args=decodeURIComponent(r.substring(i.length+1,r.length));s.view_path=r};return s};t.Views.pathPortion=function(t){var n=window.location.protocol;if(t.substring(0,n.length)===n){t=t.substring(t.indexOf('/',n.length+2))};return t};t.Views.getPath=function(n){n=t.Views.pathPortion(n);n=n.substring(e.path.baseUrl.length,n.length);if(n.substring(0,3)==='?q='){n=n.substring(3,n.length)};var i=['#','?','&'];for(var r=0;r<i.length;r++){if(n.indexOf(i[r])>-1){n=n.substr(0,n.indexOf(i[r]))}};return n}})(jQuery,Drupal,drupalSettings);
64/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/modules/views/js/base.js. */;
65/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/modules/views/js/ajax_view.js. */
66(function(e,t,i){t.behaviors.ViewsAjaxView={};t.behaviors.ViewsAjaxView.attach=function(e,i){if(i&&i.views&&i.views.ajaxViews){var s=i.views.ajaxViews;Object.keys(s||{}).forEach(function(e){t.views.instances[e]=new t.views.ajaxView(s[e])})}};t.behaviors.ViewsAjaxView.detach=function(i,s,a){if(a==='unload'){if(s&&s.views&&s.views.ajaxViews){var r=s.views.ajaxViews;Object.keys(r||{}).forEach(function(a){var o='.js-view-dom-id-'.concat(r[a].view_dom_id);if(e(o,i).length){delete t.views.instances[a];delete s.views.ajaxViews[a]}})}}};t.views={};t.views.instances={};t.views.ajaxView=function(s){var o='.js-view-dom-id-'.concat(s.view_dom_id);this.$view=e(o);var r=i.views.ajax_path;if(r.constructor.toString().indexOf('Array')!==-1){r=r[0]};var a=window.location.search||'';if(a!==''){a=a.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/,'');if(a!==''){a=(/\?/.test(r)?'&':'?')+a}};this.element_settings={url:r+a,submit:s,setClick:!0,event:'click',selector:o,progress:{type:'fullscreen'}};this.settings=s;this.$exposed_form=e('form#views-exposed-form-'.concat(s.view_name.replace(/_/g,'-'),'-').concat(s.view_display_id.replace(/_/g,'-')));once('exposed-form',this.$exposed_form).forEach(e.proxy(this.attachExposedFormAjax,this));once('ajax-pager',this.$view.filter(e.proxy(this.filterNestedViews,this))).forEach(e.proxy(this.attachPagerAjax,this));var n=e.extend({},this.element_settings,{event:'RefreshView',base:this.selector,element:this.$view.get(0)});this.refreshViewAjax=t.ajax(n)};t.views.ajaxView.prototype.attachExposedFormAjax=function(){var i=this;this.exposedFormAjax=[];e('input[type=submit], button[type=submit], input[type=image]',this.$exposed_form).not('[data-drupal-selector=edit-reset]').each(function(s){var a=e.extend({},i.element_settings,{base:e(this).attr('id'),element:this});i.exposedFormAjax[s]=t.ajax(a)})};t.views.ajaxView.prototype.filterNestedViews=function(){return!this.$view.parents('.view').length};t.views.ajaxView.prototype.attachPagerAjax=function(){this.$view.find('ul.js-pager__items > li > a, th.views-field a, .attachment .views-summary a').each(e.proxy(this.attachPagerLinkAjax,this))};t.views.ajaxView.prototype.attachPagerLinkAjax=function(i,s){var n=e(s),r={};var a=n.attr('href');e.extend(r,this.settings,t.Views.parseQueryString(a),t.Views.parseViewArgs(a,this.settings.view_base_path));var o=e.extend({},this.element_settings,{submit:r,base:!1,element:s});this.pagerAjax=t.ajax(o)};t.AjaxCommands.prototype.viewsScrollTop=function(t,i){var a=e(i.selector).offset(),s=i.selector;while(e(s).scrollTop()===0&&e(s).parent()){s=e(s).parent()};if(a.top-10<e(s).scrollTop()){e(s).animate({scrollTop:a.top-10},500)}}})(jQuery,Drupal,drupalSettings);
67/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/modules/views/js/ajax_view.js. */;
68/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/better_exposed_filters/js/better_exposed_filters.js. */
69(function(e,t,c){t.behaviors.betterExposedFilters={attach:function(t,c){e('.bef-tree input[type=checkbox], .bef-checkboxes input[type=checkbox]').change(function(){i(this,t)}).filter(':checked').closest('.form-item',t).addClass('highlight')}};function i(i,t){$elem=e(i,t);$elem.attr('checked')?$elem.closest('.form-item',t).addClass('highlight'):$elem.closest('.form-item',t).removeClass('highlight')}})(jQuery,Drupal,drupalSettings);
70/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/better_exposed_filters/js/better_exposed_filters.js. */;
71/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/misc/form.js. */
72(function(r,t,a){r.fn.drupalGetSummary=function(){var r=this.data('summaryCallback');return this[0]&&r?r(this[0]).trim():''};r.fn.drupalSetSummary=function(r){var a=this;if(typeof r!=='function'){var t=r;r=function(){return t}};return this.data('summaryCallback',r).off('formUpdated.summary').on('formUpdated.summary',function(){a.trigger('summaryUpdated')}).trigger('summaryUpdated')};t.behaviors.formSingleSubmit={attach:function(){function t(t){var a=r(t.currentTarget),n=a.serialize(),o=a.attr('data-drupal-form-submit-last');
72if(o===n){t.preventDefault()}
73else{a.attr('data-drupal-form-submit-last',n)}};r(once('form-single-submit','body')).on('submit.singleSubmit','form:not([method~="GET"])',t)}};function o(t){r(t).trigger('formUpdated')};function e(t){var a=r(t).find('[name]').map(function(r,t){return t.getAttribute('id')});return r.makeArray(a)};t.behaviors.formUpdated={attach:function(t){var i=r(t),f=i.is('form'),u=r(once('form-updated',f?i:i.find('form'))),n;if(u.length){r.makeArray(u).forEach(function(t){var i='change.formUpdated input.formUpdated ',f=a(function(r){o(r.target)},300);n=e(t).join(',');t.setAttribute('data-drupal-form-fields',n);r(t).on(i,f)})};if(f){n=e(t).join(',');var m=r(t).attr('data-drupal-form-fields');if(n!==m){o(t)}}},detach:function(t,a,o){var n=r(t),e=n.is('form');if(o==='unload'){once.remove('form-updated',e?n:n.find('form')).forEach(function(t){t.removeAttribute('data-drupal-form-fields');r(t).off('.formUpdated')})}}};t.behaviors.fillUserInfoFromBrowser={attach:function(t,n){var o=['name','mail','homepage'],a=r(once('user-info-from-browser','[data-user-info-from-browser]'));if(a.length){o.forEach(function(r){var t=a.find('[name='.concat(r,']')),n=localStorage.getItem('Drupal.visitor.'.concat(r)),o=t.val()===''||t.attr('data-drupal-default-value')===t.val();if(t.length&&o&&n){t.val(n)}})};a.on('submit',function(){o.forEach(function(r){var t=a.find('[name='.concat(r,']'));if(t.length){localStorage.setItem('Drupal.visitor.'.concat(r),t.val())}})})}};var i=function(t){var a;if(t.type==='click'){a=t.currentTarget.location?t.currentTarget.location:t.currentTarget}
74else{a=window.location};var o=a.hash.substr(1);if(o){var n=r('#'.concat(o));r('body').trigger('formFragmentLinkClickOrHashChange',[n]);setTimeout(function(){return n.trigger('focus')},300)}},n=a(i,300,!0);r(window).on('hashchange.form-fragment',n);r(document).on('click.form-fragment','a[href*="#"]',n)})(jQuery,Drupal,Drupal.debounce);
75/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/misc/form.js. */;
76/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/misc/jquery.tabbable.shim.js. */
77(function(e,a,r){var t=r.isTabbable;e.extend(e.expr[':'],{tabbable:function(e){a.deprecationError({message:'The :tabbable selector is deprecated in Drupal 9.2.0 and will be removed in Drupal 10.0.0. Use the core/tabbable library instead. See https://www.drupal.org/node/3183730'});if(e.tagName==='SUMMARY'||e.tagName==='DETAILS'){var r=e.getAttribute('tabIndex');if(r===null||r<0){return!1}};return t(e)}})})(jQuery,Drupal,window.tabbable);
78/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/misc/jquery.tabbable.shim.js. */;
79/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/core/misc/position.js. */
80(function(t){var o=null,l=Math.max,e=Math.abs,c=/left|center|right/,a=/top|center|bottom/,h=/[+-]\d+(\.[\d]+)?%?/,r=/^\w+/,f=/%$/,p=t.fn.position;function s(t,e,i){return[parseFloat(t[0])*(f.test(t[0])?e/100:1),parseFloat(t[1])*(f.test(t[1])?i/100:1)]};function n(e,i){return parseInt(t.css(e,i),10)||0};function g(e){var i=e[0];if(i.nodeType===9){return{width:e.width(),height:e.height(),offset:{top:0,left:0}}};if(t.isWindow(i)){return{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}};if(i.preventDefault){return{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}};return{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}};var i={fit:{left:function(t,e){var f=e.within,o=f.isWindow?f.scrollLeft:f.offset.left,s=f.width,r=t.left-e.collisionPosition.marginLeft,i=o-r,n=r+e.collisionWidth-s-o,h;if(e.collisionWidth>s){if(i>0&&n<=0){h=t.left+i+e.collisionWidth-s-o;t.left+=i-h}
81else if(n>0&&i<=0){t.left=o}
82else if(i>n){t.left=o+s-e.collisionWidth}
83else{t.left=o}}
84else if(i>0){t.left+=i}
85else if(n>0){t.left-=n}
86else{t.left=l(t.left-r,t.left)}},top:function(t,e){var s=e.within,o=s.isWindow?s.scrollTop:s.offset.top,f=e.within.height,r=t.top-e.collisionPosition.marginTop,i=o-r,n=r+e.collisionHeight-f-o,h;if(e.collisionHeight>f){if(i>
860&&n<=0){h=t.top+i+e.collisionHeight-f-o;t.top+=i-h}
87else if(n>0&&i<=0){t.top=o}
88else if(i>n){t.top=o+f-e.collisionHeight}
89else{t.top=o}}
90else if(i>0){t.top+=i}
91else if(n>0){t.top-=n}
92else{t.top=l(t.top-r,t.top)}}},flip:{left:function(t,i){var o=i.within,d=o.offset.left+o.scrollLeft,a=o.width,s=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-i.collisionPosition.marginLeft,p=c-s,g=c+i.collisionWidth-a-s,l=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,n=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,f=-2*i.offset[0],r,h;if(p<0){r=t.left+l+n+f+i.collisionWidth-a-d;if(r<0||r<e(p)){t.left+=l+n+f}}
93else if(g>0){h=t.left-i.collisionPosition.marginLeft+l+n+f-s;if(h>0||e(h)<g){t.left+=l+n+f}}},top:function d(t,i){var o=i.within,u=o.offset.top+o.scrollTop,a=o.height,s=o.isWindow?o.scrollTop:o.offset.top,c=t.top-i.collisionPosition.marginTop,p=c-s,g=c+i.collisionHeight-a-s,d=i.my[1]==="top",l=d?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,n=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,f=-2*i.offset[1],r,h;if(p<0){h=t.top+l+n+f+i.collisionHeight-a-u;if(h<0||h<e(p)){t.top+=l+n+f}}
94else if(g>0){r=t.top-i.collisionPosition.marginTop+l+n+f-s;if(r>0||e(r)<g){t.top+=l+n+f}}}},flipfit:{left:function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++){e[t]=arguments[t]};i.flip.left.apply(this,e);i.fit.left.apply(this,e)},top:function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++){e[t]=arguments[t]};i.flip.top.apply(this,e);i.fit.top.apply(this,e)}}};t.position={scrollbarWidth:function(){if(o!==undefined){return o};var e=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=e.children()[0];t("body").append(e);var l=n.offsetWidth;e.css("overflow","scroll");var i=n.offsetWidth;if(l===i){i=e[0].clientWidth};e.remove();o=l-i;return o},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),o=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),l=i==="scroll"||i==="auto"&&e.width<e.element[0].scrollWidth,n=o==="scroll"||o==="auto"&&e.height<e.element[0].scrollHeight;return{width:n?t.position.scrollbarWidth():0,height:l?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),o=t.isWindow(i[0]),l=!!i[0]&&i[0].nodeType===9,n=!o&&!l;return{element:i,isWindow:o,isDocument:l,offset:n?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}};t.fn.position=function(o){if(!o||!o.of){return p.apply(this,arguments)};o=t.extend({},o);var x=t.position.getWithinInfo(o.within),T=t.position.getScrollInfo(x),w=(o.collision||"flip").split(" "),H={};var W=typeof o.of==="string"?t(document).find(o.of):t(o.of),y=g(W),f=y.width,d=y.height,m=y.offset;if(W[0].preventDefault){o.at="left top"};var u=t.extend({},m);t.each(["my","at"],function(){var t=(o[this]||"").split(" ");if(t.length===1){t=c.test(t[0])?t.concat(["center"]):a.test(t[0])?["center"].concat(t):["center","center"]};t[0]=c.test(t[0])?t[0]:"center";t[1]=a.test(t[1])?t[1]:"center";var e=h.exec(t[0]),i=h.exec(t[1]);H[this]=[e?e[0]:0,i?i[0]:0];o[this]=[r.exec(t[0])[0],r.exec(t[1])[0]]});if(w.length===1){w[1]=w[0]};if(o.at[0]==="right"){u.left+=f}
95else if(o.at[0]==="center"){u.left+=f/2};if(o.at[1]==="bottom"){u.top+=d}
96else if(o.at[1]==="center"){u.top+=d/2};var v=s(H.at,f,d);u.left+=v[0];u.top+=v[1];return this.each(function(){var g,h=t(this),a=h.outerWidth(),c=h.outerHeight(),y=n(this,"marginLeft"),b=n(this,"marginTop"),P=a+y+n(this,"marginRight")+T.width,D=c+b+n(this,"marginBottom")+T.height,r=t.extend({},u);var p=s(H.my,h.outerWidth(),h.outerHeight());if(o.my[0]==="right"){r.left-=a}
97else if(o.my[0]==="center"){r.left-=a/2};if(o.my[1]==="bottom"){r.top-=c}
98else if(o.my[1]==="center"){r.top-=c/2};r.left+=p[0];r.top+=p[1];var L={marginLeft:y,marginTop:b};t.each(["left","top"],function(t,e){if(i[w[t]]){i[w[t]][e](r,{targetWidth:f,targetHeight:d,elemWidth:a,elemHeight:c,collisionPosition:L,collisionWidth:P,collisionHeight:D,offset:[v[0]+p[0],v[1]+
98p[1]],my:o.my,at:o.at,within:x,elem:h})}});if(o.using){g=function(t){var n=m.left-r.left,p=n+f-a,s=m.top-r.top,g=s+d-c,i={target:{element:W,left:m.left,top:m.top,width:f,height:d},element:{element:h,left:r.left,top:r.top,width:a,height:c},horizontal:p<0?"left":n>0?"right":"center",vertical:g<0?"top":s>0?"bottom":"middle"};if(f<a&&e(n+p)<f){i.horizontal="center"};if(d<c&&e(s+g)<d){i.vertical="middle"};if(l(e(n),e(p))>l(e(s),e(g))){i.important="horizontal"}
99else{i.important="vertical"};o.using.call(this,t,i)}};h.offset(t.extend(r,{using:g}))})};if(!t.hasOwnProperty("ui")){t.ui={}};t.ui.position=i})(jQuery);
100/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/core/misc/position.js. */;
101/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/geolocation/js/geolocation-geocoder-api.js. */
102(function(e,o){'use strict';o.geolocation=o.geolocation||{};o.geolocation.geocoder=o.geolocation.geocoder||{};o.geolocation.geocoder.resultCallback=function(l,c){o.geolocation.geocoder.resultCallbacks=o.geolocation.geocoder.resultCallbacks||[];e.each(o.geolocation.geocoder.resultCallbacks,function(e,o){if(o.elementId===c){o.callback(l)}})};o.geolocation.geocoder.addResultCallback=function(e,l){if(typeof l==='undefined'){return};o.geolocation.geocoder.resultCallbacks=o.geolocation.geocoder.resultCallbacks||[];o.geolocation.geocoder.resultCallbacks.push({callback:e,elementId:l})};o.geolocation.geocoder.clearCallback=function(l){o.geolocation.geocoder.clearCallbacks=o.geolocation.geocoder.clearCallbacks||[];e.each(o.geolocation.geocoder.clearCallbacks,function(e,o){if(o.elementId===l){o.
102callback()}})};o.geolocation.geocoder.addClearCallback=function(e,l){if(typeof l==='undefined'){return};o.geolocation.geocoder.clearCallbacks=o.geolocation.geocoder.clearCallbacks||[];o.geolocation.geocoder.clearCallbacks.push({callback:e,elementId:l})}})(jQuery,Drupal);
103/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/geolocation/js/geolocation-geocoder-api.js. */;
104/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/geolocation/js/LocationInput/geocoder.js. */
105(function(o,i){'use strict';i.behaviors.locationInputGeocoder={attach:function(t,e){o.each(e.geolocation.locationInput.geocoder,function(a,e){var n=o('.location-input-geocoder.'+e.identifier,t).once('location-input-processed').first();if(n.length){if(e.hideForm){n.hide()};var c=n.find('input.geolocation-input-latitude').first(),l=n.find('input.geolocation-input-longitude').first();i.geolocation.geocoder.addResultCallback(function(o){if(typeof o.geometry.location==='undefined'){return!1};c.val(o.geometry.location.lat());l.val(o.geometry.location.lng());if(e.autoSubmit){n.closest('form').find('input.js-form-submit').first().click()}},e.identifier);i.geolocation.geocoder.addClearCallback(function(){c.val('');l.val('')},e.identifier)}})}}})(jQuery,Drupal);
106/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/geolocation/js/LocationInput/geocoder.js. */;
107/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/geolocation/js/geolocation-api.js. */
108(function(e,t){'use strict';t.geolocation=t.geolocation||{};t.geolocation.maps=t.geolocation.maps||[];t.geolocation.mapCenter=t.geolocation.mapCenter||{};function a(e){this.settings=e.settings||{};this.wrapper=e.wrapper;this.container=e.wrapper.find('.geolocation-map-container').first();if(this.container.length!==1){throw'Geolocation - Map container not found'};this.initialized=!1;this.populated=!1;this.lat=e.lat;this.lng=e.lng;if(typeof e.id==='undefined'){this.id='map'+Math.floor(Math.random()*10000)}
109else{this.id=e.id};this.mapCenter=e.map_center;this.mapMarkers=this.mapMarkers||[];this.mapShapes=this.mapShapes||[];return this};a.prototype={addControl:function(e){},removeControls:function(){},getZoom:function(){},setZoom:function(e,t){},getCenter:function(){},setCenter:function(){if(typeof this.wrapper.data('preserve-map-center')!=='undefined'){return};this.setZoom();this.setCenterByCoordinates({lat:this.lat,lng:this.lng});if(typeof this.mapCenter!=='undefined'){var e=this,a=Object.keys(e.mapCenter).map(function(t){return e.mapCenter[t]}).sort(function(e,t){return e.weight-t.weight});a.some(function(a){if(typeof t.geolocation.mapCenter[a.map_center_id]==='function'){return t.geolocation.mapCenter[a.map_center_id](e,a)}})}},setCenterByCoordinates:function(e,t,a){this.centerUpdatedCallback(e,t,a)},setMapMarker:function(e){this.mapMarkers.push(e);this.markerAddedCallback(e)},removeMapMarker:function(t){var a=this;e.each(this.mapMarkers,function(e,i){if(i===t){a.markerRemoveCallback(t);a.mapMarkers.splice(Number(e),1)}})},removeMapMarkers:function(){var t=this,a=e.extend({},this.mapMarkers);e.each(a,function(e,a){if(typeof a==='undefined'){return};t.removeMapMarker(a)})},addShape:function(e){this.mapShapes.push(e)},removeShape:function(t){var a=this;e.each(this.mapShapes,function(e,i){if(i===t){a.mapShapes.splice(Number(e),1)}})},removeShapes:function(){var t=this,a=e.extend({},this.mapShapes);e.each(a,function(e,a){if(typeof a==='undefined'){return};t.removeShape(a)})},fitMapToMarkers:function(e,t){var a=this.getMarkerBoundaries();if(a===!1){return!1};this.fitBoundaries(a,t)},getMarkerBoundaries:function(e){},fitBoundaries:function(e,t){this.centerUpdatedCallback(this.getCenter(),null,t)},clickCallback:function(t){this.clickCallbacks=this.clickCallbacks||[];e.each(this.clickCallbacks,function(e,a){a(t)})},addClickCallback:function(e){this.clickCallbacks=this.clickCallbacks||[];this.clickCallbacks.push(e)},doubleClickCallback:function(t){this.doubleClickCallbacks=this.doubleClickCallbacks||[];e.each(this.doubleClickCallbacks,function(e,a){a(t)})},addDoubleClickCallback:function(e){this.doubleClickCallbacks=this.doubleClickCallbacks||[];this.doubleClickCallbacks.push(e)},contextClickCallback:function(t){this.contextClickCallbacks=this.contextClickCallbacks||[];e.each(this.contextClickCallbacks,function(e,a){a(t)})},addContextClickCallback:function(e){this.contextClickCallbacks=this.contextClickCallbacks||[];this.contextClickCallbacks.push(e)},initializedCallback:function(){this.initializedCallbacks=this.initializedCallbacks||[];while(this.initializedCallbacks.length>0){this.initializedCallbacks.shift()(this)};this.initialized=!0},addInitializedCallback:function(e){if(this.initialized){e(this)}
110else{this.initializedCallbacks=this.initializedCallbacks||[];this.initializedCallbacks.push(e)}},updatedCallback:function(e){var t=this;this.updatedCallbacks=this.updatedCallbacks||[];this.updatedCallbacks.forEach(function(a){a(t,e)})},addUpdatedCallback:function(e){this.updatedCallbacks=this.updatedCallbacks||[];this.updatedCallbacks.push(e)},centerUpdatedCallback:function(t,a,i){this.centerUpdatedCallbacks=this.centerUpdatedCallbacks||[];
110e.each(this.centerUpdatedCallbacks,function(e,n){n(t,a,i)})},addCenterUpdatedCallback:function(e){this.centerUpdatedCallbacks=this.centerUpdatedCallbacks||[];this.centerUpdatedCallbacks.push(e)},markerAddedCallback:function(t){this.markerAddedCallbacks=this.markerAddedCallbacks||[];e.each(this.markerAddedCallbacks,function(e,a){a(t)})},addMarkerAddedCallback:function(t,a){a=a||!0;if(a){e.each(this.mapMarkers,function(e,a){t(a)})};this.markerAddedCallbacks=this.markerAddedCallbacks||[];this.markerAddedCallbacks.push(t)},markerRemoveCallback:function(t){this.markerRemoveCallbacks=this.markerRemoveCallbacks||[];e.each(this.markerRemoveCallbacks,function(e,a){a(t)})},addMarkerRemoveCallback:function(e){this.markerRemoveCallbacks=this.markerRemoveCallbacks||[];this.markerRemoveCallbacks.push(e)},populatedCallback:function(){this.populatedCallbacks=this.populatedCallbacks||[];while(this.populatedCallbacks.length>0){this.populatedCallbacks.shift()(this)};this.populated=!0},addPopulatedCallback:function(e){if(this.populated){e(this)}
111else{this.populatedCallbacks=this.populatedCallbacks||[];this.populatedCallbacks.push(e)}},loadMarkersFromContainer:function(){var t=[];this.wrapper.find('.geolocation-location').each(function(a,i){var n=e(i),r={lat:Number(n.data('lat')),lng:Number(n.data('lng'))};var o={position:r,title:n.find('.location-title').text().trim(),setMarker:!0,locationWrapper:n};if(typeof n.data('icon')!=='undefined'){o.icon=n.data('icon').toString()};if(typeof n.data('label')!=='undefined'){o.label=n.data('label').toString()};if(n.data('set-marker')==='false'){o.setMarker=!1};t.push(o)});return t},loadShapesFromContainer:function(){var t=[];this.wrapper.find('.geolocation-shape').each(function(a,i){var n=e(i),r=n.find('span[typeof="GeoShape"] meta').first();if(r.length===0){return};var l=r.attr('property').toString(),s=[];e.each(r.attr('content').toString().split(' '),function(e,t){var a=t.split(',');if(a[0].length===0||a[1].length===0){return};s.push({lat:parseFloat(a[0]),lng:parseFloat(a[1])})});var o={coordinates:s,shape:l,shapeWrapper:n};switch(l){case'line':o.title=n.find('.polyline-title').text().trim();break;case'polygon':o.title=n.find('.polygon-title').text().trim();if(typeof n.data('fillColor')!=='undefined'){o.fillColor=n.data('fillColor').toString()};if(typeof n.data('fillOpacity')!=='undefined'){o.fillOpacity=parseFloat(n.data('fillOpacity').toString())};break};if(typeof n.data('strokeColor')!=='undefined'){o.strokeColor=n.data('strokeColor').toString()};if(typeof n.data('strokeWidth')!=='undefined'){o.strokeWidth=parseInt(n.data('strokeWidth').toString())};if(typeof n.data('strokeOpacity')!=='undefined'){o.strokeOpacity=parseFloat(n.data('strokeOpacity').toString())};t.push(o)});return t},boundariesNormalized:function(e){if(typeof e.north==='number'&&typeof e.east==='number'&&typeof e.south==='number'&&typeof e.west==='number'){return!0};return!1},normalizeBoundaries:function(a){var i=this;if(i.boundariesNormalized(a)){return a};if(typeof a.north!=='undefined'&&typeof a.south!=='undefined'&&typeof a.east!=='undefined'&&typeof a.west!=='undefined'){var n={north:Number(a.north),east:Number(a.east),south:Number(a.south),west:Number(a.west)};if(i.boundariesNormalized(n)){return n}};e.each(t.geolocation.MapProviders,function(e,n){if(typeof t.geolocation[n].prototype.normalizeBoundaries!=='undefined'){var o=t.geolocation[n].prototype.normalizeBoundaries.call(null,a)};if(i.boundariesNormalized(o)){a=o;return!1}});if(i.boundariesNormalized(a)){return a};return!1}};t.geolocation.GeolocationMapBase=a;function i(e,a){a=a||!1;e.type=e.type||'google_maps';var i=null,n=t.geolocation.getMapById(e.id);if(a===!0||!n){if(typeof t.geolocation[t.geolocation.MapProviders[e.type]]!=='undefined'){var o=t.geolocation[t.geolocation.MapProviders[e.type]];i=new o(e);t.geolocation.maps.push(i)}}
112else{i=n;i.updatedCallback(e)};if(!i){console.error('Map could not be initialized.');return!1};if(typeof i.container==='undefined'){console.error('Map container not set.');return!1};if(i.container.length!==1){console.error('Map container not unique.');return!1};return i};t.geolocation.Factory=i;
112t.geolocation.MapProviders={};t.geolocation.addMapProvider=function(e,a){t.geolocation.MapProviders[e]=a};t.geolocation.getMapById=function(a){var i=!1;e.each(t.geolocation.maps,function(e,t){if(t.id===a){i=t}});if(!i){return!1};if(typeof i.container==='undefined'){console.error('Existing map container not set.');return!1};if(i.container.length!==1){console.error('Existing map container not unique.');return!1};return i};t.geolocation.executeFeatureOnAllMaps=function(a,i,n){if(typeof n.geolocation==='undefined'){return!1};e.each(n.geolocation.maps,function(e,n){if(typeof n[a]==='undefined'){return};if(!n[a].enable){return};var o=t.geolocation.getMapById(e);if(!o){return};o.features=o.features||{};o.features[a]=o.features[a]||{};if(typeof o.features[a].executed==='undefined'){o.features[a].executed=!1};if(o.features[a].executed){return};o.addPopulatedCallback(function(e){if(e.features[a].executed){return};var t=i(e,n[a]);if(t===!0){e.features[a].executed=!0}})})}})(jQuery,Drupal);
113/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/geolocation/js/geolocation-api.js. */;
114/* Source and licensing information for the line(s) below can be found at https://www.ymca.org/modules/contrib/geolocation/modules/geolocation_google_maps/js/geolocation-google-maps-api.js. */
115(function(e,o){'use strict';o.geolocation.google=o.geolocation.google||{};function t(t){this.type='google_maps';o.geolocation.GeolocationMapBase.call(this,t);var a={panControl:!1,scaleControl:!1,rotateControl:!1,mapTypeId:'roadmap',zoom:2,maxZoom:20,minZoom:0,style:[],gestureHandling:'auto'};this.settings.google_map_settings=e.extend(a,this.settings.google_map_settings);this.container.css({height:this.settings.google_map_settings.height,width:this.settings.google_map_settings.width});this.addInitializedCallback(function(o){var n=new google.maps.LatLng(o.lat,o.lng);o.googleMap=new google.maps.Map(o.container[0],{zoom:o.settings.google_map_settings.zoom,maxZoom:o.settings.google_map_settings.maxZoom,minZoom:o.settings.google_map_settings.minZoom,center:n,mapTypeId:google.maps.MapTypeId[o.settings.google_map_settings.type],mapTypeControl:!1,zoomControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,scaleControl:o.settings.google_map_settings.scaleControl,panControl:o.settings.google_map_settings.panControl,gestureHandling:o.settings.google_map_settings.gestureHandling,styles:(typeof o.settings.google_map_settings.style!=='undefined')?o.settings.google_map_settings.style:null});var e,t;google.maps.event.addListener(o.googleMap,'click',function(n){e=setTimeout(function(){o.clickCallback({lat:n.latLng.lat(),lng:n.latLng.lng()})},500);t=Date.now()});google.maps.event.addListener(o.googleMap,'dblclick',function(t){clearTimeout(e);o.doubleClickCallback({lat:t.latLng.lat(),lng:t.latLng.lng()})});google.maps.event.addListener(o.googleMap,'rightclick',function(e){o.contextClickCallback({lat:e.latLng.lat(),lng:e.latLng.lng()})});google.maps.event.addListenerOnce(o.googleMap,'tilesloaded',function(){o.populatedCallback()})});if(this.initialized){this.initializedCallback()}
116else{var n=this;o.geolocation.google.addLoadedCallback(function(){n.initializedCallback()});o.geolocation.google.load()}};t.prototype=Object.create(o.geolocation.GeolocationMapBase.prototype);t.prototype.constructor=t;t.prototype.setMapMarker=function(e){if(typeof e.setMarker!=='undefined'){if(e.setMarker===!1){return}};e.position=new google.maps.LatLng(Number(e.position.lat),Number(e.position.lng));e.map=this.googleMap;if(typeof this.settings.google_map_settings.marker_icon_path==='string'){if(this.settings.google_map_settings.marker_icon_path&&typeof e.icon==='undefined'){e.icon=this.settings.google_map_settings.marker_icon_path}};var t=new google.maps.Marker(e);o.geolocation.GeolocationMapBase.prototype.setMapMarker.call(this,t);return t};t.prototype.removeMapMarker=function(e){if(typeof e==='undefined'){return};o.geolocation.GeolocationMapBase.prototype.removeMapMarker.call(this,e);e.setMap(null)};t.prototype.addShape=function(e){if(typeof e==='undefined'){return};var t;switch(e.shape){case'line':t=new google.maps.Polyline({path:e.coordinates,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWidth});break;case'polygon':t=new google.maps.Polygon({paths:e.coordinates,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWidth,fillColor:e.fillColor,fillOpacity:e.fillOpacity});break};if(typeof e.title!=='undefined'&&e.title.length){var n=new google.maps.InfoWindow(),a=this;google.maps.event.addListener(t,'mouseover',function(o){n.setPosition(o.latLng);n.setContent(e.title);n.open(a.googleMap)});google.maps.event.addListener(t,'mouseout',function(){n.close()})};t.setMap(this.googleMap);o.geolocation.GeolocationMapBase.prototype.addShape.call(this,t);return t};t.prototype.removeShape=function(e){if(typeof e==='undefined'){return};o.geolocation.GeolocationMapBase.prototype.removeShape.call(this,e);e.setMap(null)};t.prototype.getMarkerBoundaries=function(o){o=o||this.mapMarkers;if(o.length===0){return!1};var t=new google.maps.LatLngBounds();e.each(o,function(o,e){t.extend(e.getPosition())});return t};t.prototype.fitBoundaries=function(e,t){e=this.denormalizeBoundaries(e);if(!e){return};var n=this.googleMap.getBounds();if(!n||!n.equals(e)){this.googleMap.fitBounds(e);o.geolocation.GeolocationMapBase.prototype.fitBoundaries.call(this,e,t)}};t.prototype.getZoom=function(){var o=this;return new Promise(function(e,t){google.maps.event.addListenerOnce(o.googleMap,'idle',function(){e(o.googleMap.getZoom())})})};t.prototype.setZoom=function(o,e){if(typeof o==='undefined'){o=this.settings.google_map_settings.zoom};
116o=parseInt(o);this.googleMap.setZoom(o);var t=this;if(e){google.maps.event.addListenerOnce(this.googleMap,'idle',function(){t.googleMap.setZoom(o)})}};t.prototype.getCenter=function(){var o=this.googleMap.getCenter();return{lat:o.lat(),lng:o.lng()}};t.prototype.setCenterByCoordinates=function(e,t,a){o.geolocation.GeolocationMapBase.prototype.setCenterByCoordinates.call(this,e,t,a);if(typeof t==='undefined'){this.googleMap.setCenter(e);return};var n=this.addAccuracyIndicatorCircle(e,t);this.googleMap.fitBounds(n.getBounds());setInterval(i,200);function i(){var e=n.get('fillOpacity');e-=0.01;var o=n.get('strokeOpacity');o-=0.02;if(o>0&&e>0){n.setOptions({fillOpacity:e,strokeOpacity:o})}
117else{n.setMap(null)}}};t.prototype.normalizeBoundaries=function(o){if(o instanceof google.maps.LatLngBounds){var e=o.getNorthEast(),t=o.getSouthWest();return{north:e.lat(),east:e.lng(),south:t.lat(),west:t.lng()}};return!1};t.prototype.denormalizeBoundaries=function(e){if(typeof e==='undefined'){return!1};if(e instanceof google.maps.LatLngBounds){return e};if(o.geolocation.GeolocationMapBase.prototype.boundariesNormalized.call(this,e)){return new google.maps.LatLngBounds({lat:e.south,lng:e.west},{lat:e.north,lng:e.east})}
118else{e=o.geolocation.GeolocationMapBase.prototype.normalizeBoundaries.call(this,e);if(e){return new google.maps.LatLngBounds({lat:e.south,lng:e.west},{lat:e.north,lng:e.east})}};return!1};t.prototype.addControl=function(o){o=e(o);var t=google.maps.ControlPosition.TOP_LEFT;if(typeof o.data('googleMapControlPosition')!=='undefined'){var i=o.data('googleMapControlPosition');if(typeof google.maps.ControlPosition[i]!=='undefined'){t=google.maps.ControlPosition[i]}};var n=!1,a=0;this.googleMap.controls[t].forEach(function(t,i){var l=e(t);if(o[0].getAttribute('class')===l[0].getAttribute('class')){n=!0;a=i}});if(!n){o.show();this.googleMap.controls[t].push(o[0]);return o}
119else{o.remove();return this.googleMap.controls[t].getAt(a)}};t.prototype.removeControls=function(){e.each(this.googleMap.controls,function(o,e){if(typeof e==='undefined'){return};if(typeof e.clear==='function'){e.clear()}})};o.geolocation.GeolocationGoogleMap=t;o.geolocation.addMapProvider('google_maps','GeolocationGoogleMap');t.prototype.addAccuracyIndicatorCircle=function(o,e){return new google.maps.Circle({center:o,radius:e,map:this.googleMap,fillColor:'#4285F4',fillOpacity:0.15,strokeColor:'#4285F4',strokeOpacity:0.3,strokeWeight:1,clickable:!1})};o.geolocation.google.addLoadedCallback=function(e){o.geolocation.google.loadedCallbacks=o.geolocation.google.loadedCallbacks||[];o.geolocation.google.loadedCallbacks.push(e)};o.geolocation.google.load=function(){if(typeof google==='undefined'||typeof google.maps==='undefined'){console.error('Geolocation - GoogleMaps could not be initialized.');return};e.each(o.geolocation.google.loadedCallbacks,function(o,e){e()});o.geolocation.google.loadedCallbacks=[]}})(jQuery,Drupal);
120/* Source and licensing information for the above line(s) can be found at https://www.ymca.org/modules/contrib/geolocation/modules/geolocation_google_maps/js/geolocation-google-maps-api.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.