1define(['jquery'],function($){'use strict';var MOBILE_MAX_WIDTH=767;var resizeTimer;function isMobile(){if(window.matchMedia){return window.matchMedia('(max-width: '+MOBILE_MAX_WIDTH+'px)').matches;} 2return $(window).width()<=MOBILE_MAX_WIDTH;} 3function setState($root,collapsed){var $toggle=$root.data('mobileToggle');var $content=$root.data('mobileContent');if(!$toggle||!$content){return;} 4$root.toggleClass('is-collapsed',collapsed);$content.attr('aria-hidden',collapsed?'true':'false');$toggle.attr('aria-expanded',(!collapsed).toString());var text=collapsed?$toggle.data('text-show'):$toggle.data('text-hide');if(text){$toggle.text(text);}} 5function refreshState($root){setState($root,$root.hasClass('is-collapsed'));} 6function applyResponsiveState($root){if(!isMobile()){setState($root,false);$root.data('mobileCollapsibleInteracted',false);return;} 7if(!$root.data('mobileCollapsibleInteracted')){setState($root,true);}else{refreshState($root);}} 8function bindToggle($root){var $toggle=$root.data('mobileToggle');if(!$toggle){return;} 9$toggle.on('click',function(event){event.preventDefault();if(!isMobile()){return;} 10var collapsed=$root.hasClass('is-collapsed');setState($root,!collapsed);$root.data('mobileCollapsibleInteracted',true);});} 11function initCollapsible($root){var $toggle=$root.find('.mobile-collapsible__toggle');var $content=$root.find('.mobile-collapsible__content');if(!$toggle.length||!$content.length){return;} 12$root.data('mobileToggle',$toggle);$root.data('mobileContent',$content);$root.data('mobileCollapsibleInteracted',false);bindToggle($root);applyResponsiveState($root);} 13function handleResize($collapsibles){$collapsibles.each(function(){applyResponsiveState($(this));});} 14function init(){var $collapsibles=$('.mobile-collapsible');if(!$collapsibles.length){return;} 15$collapsibles.each(function(){initCollapsible($(this));});$(window).on('resize.mobileCollapsible orientationchange.mobileCollapsible',function(){if(resizeTimer){window.clearTimeout(resizeTimer);} 16resizeTimer=window.setTimeout(function(){handleResize($collapsibles);},150);});} 17return{init:init};});
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.