PageSourceSearch

https://fxboss.firstcitizens.com/app/assets/js-core/jquery-ui-core.js?v=9.0.2

js firstcitizens.com collected 2026-09-24 21:50:31 UTC 10,291 bytes, 303 lines download raw bytes

vendor: 10,291 bytes, lines 1-303
1/*!
2 * jQuery UI Core @VERSION
3 * http://jqueryui.com
4 *
5 * Copyright 2014 jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
8 *
9 * http://api.jqueryui.com/category/ui-core/
10 */
11(function( factory ) {
12    if ( typeof define === "function" && define.amd ) {
13
14        // AMD. Register as an anonymous module.
15        define( [ "jquery" ], factory );
16    } else {
17
18        // Browser globals
19        factory( jQuery );
20    }
21}(function( $ ) {
22
23// $.ui might exist from components with no dependencies, e.g., $.ui.position
24    $.ui = $.ui || {};
25
26    $.extend( $.ui, {
27        version: "@VERSION",
28
29        keyCode: {
30            BACKSPACE: 8,
31            COMMA: 188,
32            DELETE: 46,
33            DOWN: 40,
34            END: 35,
35            ENTER: 13,
36            ESCAPE: 27,
37            HOME: 36,
38            LEFT: 37,
39            PAGE_DOWN: 34,
40            PAGE_UP: 33,
41            PERIOD: 190,
42            RIGHT: 39,
43            SPACE: 32,
44            TAB: 9,
45            UP: 38
46        }
47    });
48
49// plugins
50    $.fn.extend({
51        scrollParent: function() {
52            var position = this.css( "position" ),
53                excludeStaticParent = position === "absolute",
54                scrollParent = this.parents().filter( function() {
55                    var parent = $( this );
56                    if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
57                        return false;
58                    }
59                    return (/(auto|scroll)/).test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
60                }).eq( 0 );
61
62            return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
63        },
64
65        uniqueId: (function() {
66            var uuid = 0;
67
68            return function() {
69                return this.each(function() {
70                    if ( !this.id ) {
71                        this.id = "ui-id-" + ( ++uuid );
72                    }
73                });
74            };
75        })(),
76
77        removeUniqueId: function() {
78            return this.each(function() {
79                if ( /^ui-id-\d+$/.test( this.id ) ) {
80                    $( this ).removeAttr( "id" );
81                }
82            });
83        }
84    });
85
86// selectors
87    function focusable( element, isTabIndexNotNaN ) {
88        var map, mapName, img,
89            nodeName = element.nodeName.toLowerCase();
90        if ( "area" === nodeName ) {
91            map = element.parentNode;
92            mapName = map.name;
93            if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
94                return false;
95            }
96            img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
97            return !!img && visible( img );
98        }
99        return ( /input|select|textarea|button|object/.test( nodeName ) ?
100            !element.disabled :
101            "a" === nodeName ?
102            element.href || isTabIndexNotNaN :
103                isTabIndexNotNaN) &&
104            // the element and all of its ancestors must be visible
105        visible( element );
106    }
107
108    function visible( element ) {
109        return $.expr.filters.visible( element ) &&
110        !$( element ).parents().addBack().filter(function() {
111            return $.css( this, "visibility" ) === "hidden";
112        }).length;
113    }
114
115    $.extend( $.expr[ ":" ], {
116        data: $.expr.createPseudo ?
117            $.expr.createPseudo(function( dataName ) {
118                return function( elem ) {
119                    return !!$.data( elem, dataName );
120                };
121            }) :
122            // support: jQuery <1.8
123            function( elem, i, match ) {
124                return !!$.data( elem, match[ 3 ] );
125            },
126
127        focusable: function( element ) {
128            return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
129        },
130
131        tabbable: function( element ) {
132            var tabIndex = $.attr( element, "tabindex" ),
133                isTabIndexNaN = isNaN( tabIndex );
134            return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
135        }
136    });
137
138// support: jQuery <1.8
139    if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
140        $.each( [ "Width", "Height" ], function( i, name ) {
141            var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
142                type = name.toLowerCase(),
143                orig = {
144                    innerWidth: $.fn.innerWidth,
145                    innerHeight: $.fn.innerHeight,
146                    outerWidth: $.fn.outerWidth,
147                    outerHeight: $.fn.outerHeight
148                };
149
150            function reduce( elem, size, border, margin ) {
151                $.each( side, function() {
152                    size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
153                    if ( border ) {
154                        size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
155                    }
156                    if ( margin ) {
157                        size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
158                    }
159                });
160                return size;
161            }
162
163            $.fn[ "inner" + name ] = function( size ) {
164                if ( size === undefined ) {
165                    return orig[ "inner" + name ].call( this );
166                }
167
168                return this.each(function() {
169                    $( this ).css( type, reduce( this, size ) + "px" );
170                });
171            };
172
173            $.fn[ "outer" + name] = function( size, margin ) {
174                if ( typeof size !== "number" ) {
175                    return orig[ "outer" + name ].call( this, size );
176                }
177
178                return this.each(function() {
179                    $( this).css( type, reduce( this, size, true, margin ) + "px" );
180                });
181            };
182        });
183    }
184
185// support: jQuery <1.8
186    if ( !$.fn.addBack ) {
187        $.fn.addBack = function( selector ) {
188            return this.add( selector == null ?
189                    this.prevObject : this.prevObject.filter( selector )
190            );
191        };
192    }
193
194// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
195    if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
196        $.fn.removeData = (function( removeData ) {
197            return function( key ) {
198                if ( arguments.length ) {
199                    return removeData.call( this, $.camelCase( key ) );
200                } else {
201                    return removeData.call( this );
202                }
203            };
204        })( $.fn.removeData );
205    }
206
207// deprecated
208    $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
209
210    $.fn.extend({
211        focus: (function( orig ) {
212            return function( delay, fn ) {
213                return typeof delay === "number" ?
214                    this.each(function() {
215                        var elem = this;
216                        setTimeout(function() {
217                            $( elem ).focus();
218                            if ( fn ) {
219                                fn.call( elem );
220                            }
221                        }, delay );
222                    }) :
223                    orig.apply( this, arguments );
224            };
225        })( $.fn.focus ),
226
227        disableSelection: (function() {
228            var eventType = "onselectstart" in document.createElement( "div" ) ?
229                "selectstart" :
230                "mousedown";
231
232            return function() {
233                return this.bind( eventType + ".ui-disableSelection", function( event ) {
234                    event.preventDefault();
235                });
236            };
237        })(),
238
239        enableSelection: function() {
240            return this.unbind( ".ui-disableSelection" );
241        },
242
243        zIndex: function( zIndex ) {
244            if ( zIndex !== undefined ) {
245                return this.css( "zIndex", zIndex );
246            }
247
248            if ( this.length ) {
249                var elem = $( this[ 0 ] ), position, value;
250                while ( elem.length && elem[ 0 ] !== document ) {
251                    // Ignore z-index if position is set to a value where z-index is ignored by the browser
252                    // This makes behavior of this function consistent across browsers
253                    // WebKit always returns auto if the element is positioned
254                    position = elem.css( "position" );
255                    if ( position === "absolute" || position === "relative" || position === "fixed" ) {
256                        // IE returns 0 when zIndex is not specified
257                        // other browsers return a string
258                        // we ignore the case of nested elements with an explicit value of 0
259                        // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
260                        value = parseInt( elem.css( "zIndex" ), 10 );
261                        if ( !isNaN( value ) && value !== 0 ) {
262                            return value;
263                        }
264                    }
265                    elem = elem.parent();
266                }
267            }
268
269            return 0;
270        }
271    });
272
273// $.ui.plugin is deprecated. Use $.widget() extensions instead.
274    $.ui.plugin = {
275        add: function( module, option, set ) {
276            var i,
277                proto = $.ui[ module ].prototype;
278            for ( i in set ) {
279                proto.plugins[ i ] = proto.plugins[ i ] || [];
280                proto.plugins[ i ].push( [ option, set[ i ] ] );
281            }
282        },
283        call: function( instance, name, args, allowDisconnected ) {
284            var i,
285                set = instance.plugins[ name ];
286
287            if ( !set ) {
288                return;
289            }
290
291            if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
292                return;
293            }
294
295            for ( i = 0; i < set.length; i++ ) {
296                if ( instance.options[ set[ i ][ 0 ] ] ) {
297                    set[ i ][ 1 ].apply( instance.element, args );
298                }
299            }
300        }
301    };
302
303}));

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.