1(function(e){'use strict';Drupal.ajax=Drupal.ajax||{};Drupal.settings.urlIsAjaxTrusted=Drupal.settings.urlIsAjaxTrusted||{};Drupal.behaviors.AJAX={attach:function(t,s){for(var a in s.ajax){if(!e('#'+a+'.ajax-processed').length){let element_settings=s.ajax[a];if(typeof element_settings.selector==='undefined'){element_settings.selector='#'+a};e(element_settings.selector).each(function(){element_settings.element=this;Drupal.ajax[a]=new Drupal.ajax(a,this,element_settings)});e('#'+a).addClass('ajax-processed')}};e('.use-ajax:not(.ajax-processed)').addClass('ajax-processed').each(function(){let element_settings={};element_settings.progress={'type':'throbber'};if(e(this).attr('href')){element_settings.url=e(this).attr('href');element_settings.event='click'};if(e(this).data('dialog')){element_settings.dialog=e(this).data('dialog-options')||{};let uri=element_settings.url;if(uri.indexOf('?')===-1){uri+='?'} 2else{uri+='&'};uri+='_format=drupal_dialog';element_settings.url=uri};let a=e(this).attr('id');Drupal.ajax[a]=new Drupal.ajax(a,this,element_settings)});e('.use-ajax-submit:not(.ajax-processed)').addClass('ajax-processed').each(function(){let element_settings={};element_settings.url=e(this.form).attr('action');element_settings.setClick=!0;element_settings.event='click';element_settings.progress={'type':'throbber'};let a=e(this).attr('id');Drupal.ajax[a]=new Drupal.ajax(a,this,element_settings)})}};Drupal.ajax=function(t,s,a){let defaults={url:'system/ajax',event:'mousedown',keypress:!0,selector:'#'+t,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Please wait...')},submit:{'js':!0}};e.extend(this,defaults,a);this.element=s;this.element_settings=a;this.url=a.url.replace(/\/nojs(\/|$|\?|&|#)/g,'/ajax$1');if(Drupal.settings.urlIsAjaxTrusted[a.url]){Drupal.settings.urlIsAjaxTrusted[this.url]=!0};this.wrapper='#'+a.wrapper;if(this.element.form){this.form=e(this.element.form)};let ajax=this;ajax.options={url:Drupal.sanitizeAjaxUrl(ajax.url),data:ajax.submit,beforeSerialize:function(e,t){return ajax.beforeSerialize(e,t)},beforeSubmit:function(e,t,s){ajax.ajaxing=!0;return ajax.beforeSubmit(e,t,s)},beforeSend:function(e,t){ajax.ajaxing=!0;return ajax.beforeSend(e,t)},success:function(t,s,a){if(typeof t==='string'){t=e.parseJSON(t)};if(t!==null&&!Drupal.settings.urlIsAjaxTrusted[ajax.url]){if(a.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){let customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(a,ajax.url,customMessage)}};a=null;return ajax.success(t,s)},complete:function(e,t){ajax.ajaxing=!1;if(t==='error'||t==='parsererror'){return ajax.error(e,ajax.url)};e=null},dataType:'json',jsonp:!1,type:'POST'};if(a.dialog){ajax.options.data.dialogOptions=a.dialog};if(navigator.userAgent.indexOf('MSIE')===-1){ajax.options.iframeSrc='about:blank'};e(ajax.element).bind(a.event,function(e){if(!Drupal.settings.urlIsAjaxTrusted[ajax.url]&&!Drupal.urlIsLocal(ajax.url)){throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}))};return ajax.eventResponse(this,e)});if(a.keypress){e(ajax.element).keypress(function(e){return ajax.keypressResponse(this,e)})};if(a.prevent){e(ajax.element).bind(a.prevent,!1)}};Drupal.ajax.prototype.keypressResponse=function(t,s){let ajax=this;if(s.which===13||(s.which===32&&t.type!=='text'&&t.type!=='textarea')){e(ajax.element_settings.element).trigger(ajax.element_settings.event);return!1}};Drupal.ajax.prototype.eventResponse=function(t,s){let ajax=this;if(ajax.ajaxing){return!1};try{if(ajax.form){if(ajax.setClick){t.form.clk=t};ajax.form.ajaxSubmit(ajax.options)} 3else{ajax.beforeSerialize(ajax.element,ajax.options);e.ajax(ajax.options)}}catch(a){ajax.ajaxing=!1;alert('An error occurred while attempting to process '+ajax.options.url+': '+a.message)};if(typeof t.type!='undefined'&&(t.type==='checkbox'||t.type==='radio')){return!0} 4else{return!1}};Drupal.ajax.prototype.beforeSerialize=function(s,t){if(this.form){let settings=this.settings||Drupal.settings;Drupal.detachBehaviors(this.form,settings,'serialize')};t.data['ajax_html_ids']=[];e('[id]').each(function(){t.data['ajax_html_ids'].push(this.id)});t.data['ajax_html_ids']=t.data['ajax_html_ids'].join(',');t.data['ajax_page_state[theme]']=Drupal.settings.ajaxPageState.theme;t.data['ajax_page_state[theme_token]']=Drupal.settings.ajaxPageState.theme_token;for(var a in Drupal.settings.ajaxPageState.css){t.data['ajax_page_state[css]['+a+']']=1};for(var a in Drupal.settings.ajaxPageState.js){t.data['ajax_page_state[js]['+a+']']=1};if(this.options.data.dialogOptions&&typeof this.options.data.dialogOptions!=='object'){e.error(Drupal.t('The data-dialog-options property on this link is not val
4id JSON.'))}};Drupal.ajax.prototype.beforeSubmit=function(e,t,s){};Drupal.ajax.prototype.beforeSend=function(t,s){if(this.form){s.extraData=s.extraData||{};s.extraData.ajax_iframe_upload='1';let v=e.fieldValue(this.element);if(v!==null){s.extraData[this.element.name]=Drupal.checkPlain(v)}};e(this.element).addClass('progress-disabled').attr('disabled',!0);if(this.progress.type==='bar'){let progressBar=new Drupal.progressBar('ajax-progress-'+this.element.id,e.noop,this.progress.method,e.noop);if(this.progress.message){progressBar.setProgress(-1,this.progress.message)};if(this.progress.url){progressBar.startMonitoring(this.progress.url,this.progress.interval||1500)};this.progress.element=e(progressBar.element).addClass('ajax-progress ajax-progress-bar');this.progress.object=progressBar;e(this.element).after(this.progress.element)} 5else if(this.progress.type==='throbber'){this.progress.element=e('<div class="ajax-progress ajax-progress-throbber"><div class="throbber"> </div></div>');if(this.progress.message){e('.throbber',this.progress.element).after('<div class="message">'+this.progress.message+'</div>')};e(this.element).after(this.progress.element)}};Drupal.ajax.prototype.success=function(t,s){if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.element).removeClass('progress-disabled').removeAttr('disabled');Drupal.freezeHeight();for(var a in t){if(t.hasOwnProperty(a)&&t[a]['command']&&this.commands[t[a]['command']]){this.commands[t[a]['command']](this,t[a],s)}};if(this.form){let settings=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,settings)};Drupal.unfreezeHeight();this.settings=null};Drupal.ajax.prototype.getEffect=function(e){let type=e.effect||this.effect;let speed=e.speed||this.speed;let effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed=''} 6else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed} 7else{effect.showEffect=type+'Toggle';effect.hideEffect=type+'Toggle';effect.showSpeed=speed};return effect};Drupal.ajax.prototype.error=function(t,s,a){Drupal.displayAjaxError(Drupal.ajaxError(t,s,a),t.status);if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.wrapper).show();e(this.element).removeClass('progress-disabled').removeAttr('disabled');if(this.form){let settings=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,settings)};t=null};Drupal.ajax.prototype.commands={insert:function(s,t,a){let wrapper=t.selector?e(t.selector):e(s.wrapper);let method=t.method||s.method;let effect=s.getEffect(t);let selector=t.selector?t.selector:'';let dom_ids=['.view-dom-id-authcache-blv-comments-comments-flat-node-pane','.view-dom-id-authcache-blv-comments-comments-flat-forum-pane','.view-dom-id-blv-search-content-search-block','.view-dom-id-blv-search-content-search-page','.view-dom-id-blv-search-comments-search-comments-page',];if(method==='infiniteScrollInsertView'||dom_ids.includes(selector)){try{if(typeof(pako.ungzip)!=='undefined'){let unzippedData=pako.ungzip(Uint8Array.from(atob(t.data),c=>c.charCodeAt(0)));let decoder=new TextDecoder();t.data=decoder.decode(unzippedData)} 8else{console.log('Decompressed string (inflate): unable to find ungzip')}}catch(r){console.e$('Error decompressing with inflate: ',r)}};let new_content_wrapped=e('<div></div>').html(t.data);let new_content=new_content_wrapped.contents();if(new_content.length!==1||new_content.get(0).nodeType!==1){new_content=new_content_wrapped};switch(method){case'html':case'replaceWith':case'replaceAll':case'empty':case'remove':let settings=t.settings||s.settings||Drupal.settings;Drupal.detachBehaviors(wrapper,settings)};wrapper[method](new_content);if(effect.showEffect!=='show'){new_content.hide()};if(e('.ajax-new-content',new_content).length>0){e('.ajax-new-content',new_content).hide();new_content.show();e('.ajax-new-content',new_content)[effect.showEffect](effect.showSpeed)} 9else if(effect.showEffect!=='show'){new_content[effect.showEffect](effect.showSpeed)};if(new_content.parents('html').length>0){let settings=t.settings||s.settings||Drupal.settings;Drupal.attachBehaviors(new_content,settings)}},remove:function(t,s,a){let settings=s.settings||t.settings||Drupal.settings;Drupal.detachBehaviors(e(s.selector),settings);e(s.selector).remove()},changed:function(t,s,a){if(!e(s.selector).hasClass('ajax-changed')){e(s.selector).addClass('ajax-changed');
9if(s.asterisk){e(s.selector).find(s.asterisk).append(' <span class="ajax-changed">*</span> ')}}},alert:function(e,t,s){alert(t.title+': '+t.text)},css:function(t,s,a){e(s.selector).css(s.argument)},settings:function(t,s,a){if(s.merge){e.extend(!0,Drupal.settings,s.settings)} 10else{t.settings=s.settings}},data:function(t,s,a){e(s.selector).data(s.name,s.value)},invoke:function(t,s,a){let $element=e(s.selector);$element[s.method].apply($element,s.arguments)},restripe:function(t,s,a){e('> tbody > tr:visible, > tr:visible',e(s.selector)).removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even')},add_css:function(t,s,a){e('head').prepend(s.data);let match,importMatch=/^@import url\("(.*)"\);$/igm;if(document.styleSheets[0].addImport&&importMatch.test(s.data)){importMatch.lastIndex=0;while(match=importMatch.exec(s.data)){document.styleSheets[0].addImport(match[1])}}},updateBuildId:function(t,s,a){e('input[name="form_build_id"][value="'+s['old']+'"]').val(s['new'])}}})(jQuery);(function(e){var t=e.ajax.prototype.beforeSerialize;e.ajax.prototype.beforeSerialize=function(s,a){t.call(this,s,a);a.data['ajax_page_state[jquery_version]']=e.settings.ajaxPageState.jquery_version;a.data['ajax_page_state[jquery_version_token]']=e.settings.ajaxPageState.jquery_version_token}})(Drupal);
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.