Socket
Socket
Sign inDemoInstall

jquery

Package Overview
Dependencies
0
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.1 to 4.0.0-beta

dist-module/jquery.module.js

38

AUTHORS.txt

@@ -0,1 +1,3 @@

Authors ordered by first contribution.
John Resig <jeresig@gmail.com>

@@ -32,3 +34,2 @@ Gilles van den Hoven <gilles0181@gmail.com>

Damian Janowski <damian.janowski@gmail.com>
Anton Kovalyov <anton@kovalyov.net>
Dušan B. Jovanovic <dbjdbj@gmail.com>

@@ -71,3 +72,2 @@ Earle Castledine <mrspeaker@gmail.com>

Ryan W Tenney <ryan@10e.us>
Alex Sexton <AlexSexton@gmail.com>
Pinhook <contact@pinhooklabs.com>

@@ -77,2 +77,3 @@ Ron Otten <r.j.g.otten@gmail.com>

Anton Matzneller <obhvsbypqghgc@gmail.com>
Alex Sexton <AlexSexton@gmail.com>
Dan Heberden <danheberden@gmail.com>

@@ -91,5 +92,6 @@ Henri Wiechers <hwiechers@gmail.com>

Lee Carpenter <elcarpie@gmail.com>
Timmy Willison <4timmywil@gmail.com>
Timmy Willison <timmywil@users.noreply.github.com>
Corey Frang <gnarf37@gmail.com>
Digitalxero <digitalxero>
Anton Kovalyov <anton@kovalyov.net>
David Murdoch <david@davidmurdoch.com>

@@ -116,3 +118,3 @@ Josh Varner <josh.varner@gmail.com>

Denis Knauf <Denis.Knauf@gmail.com>
Timo Tijhof <krinklemail@gmail.com>
Timo Tijhof <krinkle@fastmail.com>
Steen Nielsen <swinedk@gmail.com>

@@ -157,3 +159,2 @@ Anton Ryzhov <anton@ryzhov.me>

Daniel Chatfield <chatfielddaniel@gmail.com>
Daniel Gálvez <dgalvez@editablething.com>
Nikita Govorov <nikita.govorov@gmail.com>

@@ -169,5 +170,3 @@ Wesley Walser <waw325@gmail.com>

Benjamin Truyman <bentruyman@gmail.com>
Jay Merrifield <fracmak@gmail.com>
James Huston <james@jameshuston.net>
Sai Lung Wong <sai.wong@huffingtonpost.com>
Erick Ruiz de Chávez <erickrdch@gmail.com>

@@ -182,4 +181,7 @@ David Bonner <dbonner@cogolabs.com>

Greg Lavallee <greglavallee@wapolabs.com>
Daniel Gálvez <dgalvez@editablething.com>
Sai Lung Wong <sai.wong@huffingtonpost.com>
Tom H Fuertes <TomFuertes@gmail.com>
Roland Eckl <eckl.roland@googlemail.com>
Jay Merrifield <fracmak@gmail.com>
Yiming He <yiminghe@gmail.com>

@@ -201,5 +203,5 @@ David Fox <dfoxinator@gmail.com>

Mark Raddatz <mraddatz@gmail.com>
Pascal Borreli <pascal@borreli.com>
Isaac Z. Schlueter <i@izs.me>
Karl Sieburg <ksieburg@yahoo.com>
Pascal Borreli <pascal@borreli.com>
Nguyen Phuc Lam <ruado1987@gmail.com>

@@ -212,3 +214,2 @@ Dmitry Gusev <dmitry.gusev@gmail.com>

Frederic Junod <frederic.junod@camptocamp.com>
Tom H Fuertes <tomfuertes@gmail.com>
Mitch Foley <mitch@thefoley.net>

@@ -261,3 +262,2 @@ ros3cin <ros3@cin.ufpe.br>

Amit Merchant <bullredeyes@gmail.com>
Jason Bedard <jason+github@jbedard.ca>
Veaceslav Grimalschi <grimalschi@yandex.ru>

@@ -285,3 +285,2 @@ Richard McDaniel <rm0026@uah.edu>

Alexander O'Mara <me@alexomara.com>
Chris Rebert <github@rebertia.com>
Bastian Buchholz <buchholz.bastian@googlemail.com>

@@ -292,2 +291,3 @@ Mu Haibao <mhbseal@163.com>

Gabriel Schulhof <gabriel.schulhof@intel.com>
Chris Rebert <github@rebertia.com>
Gilad Peleg <giladp007@gmail.com>

@@ -311,7 +311,5 @@ Julian Alexander Murillo <julian.alexander.murillo@gmail.com>

Joelle Fleurantin <joasqueeniebee@gmail.com>
Steve Mao <maochenyan@gmail.com>
Jon Dufresne <jon.dufresne@gmail.com>
Jae Sung Park <alberto.park@gmail.com>
Josh Soref <apache@soref.com>
Saptak Sengupta <saptak013@gmail.com>
Henry Wong <henryw4k@gmail.com>

@@ -321,2 +319,3 @@ Jun Sun <klsforever@gmail.com>

Devin Wilson <dwilson6.github@gmail.com>
Steve Mao <maochenyan@gmail.com>
Damian Senn <jquery@topaxi.codes>

@@ -352,2 +351,3 @@ Zack Hall <zackhall@outlook.com>

basil.belokon <basil.belokon@gmail.com>
Saptak Sengupta <saptak013@gmail.com>
Andrey Meshkov <ay.meshkov@gmail.com>

@@ -361,7 +361,8 @@ tmybr11 <tomas.perone@gmail.com>

Siddharth Dungarwal <sd5869@gmail.com>
abnud1 <ahmad13932013@hotmail.com>
Andrei Fangli <andrei_fangli@outlook.com>
Marja Hölttä <marja.holtta@gmail.com>
abnud1 <ahmad13932013@hotmail.com>
buddh4 <mail@jharrer.de>
Hoang <dangkyokhoang@gmail.com>
Sean Robinson <sean.robinson@scottsdalecc.edu>
Wonseop Kim <wonseop.kim@samsung.com>

@@ -373,17 +374,18 @@ Pat O'Callaghan <patocallaghan@gmail.com>

Christian Wenz <christian@wenz.org>
Sean Robinson <sean.robinson@scottsdalecc.edu>
Jonathan <vanillajonathan@users.noreply.github.com>
Ed Sanders <ejsanders@gmail.com>
Pierre Grimaud <grimaud.pierre@gmail.com>
Beatriz Rezener <beatrizrezener@users.noreply.github.com>
Natalia Sroka <37873210+natipo@users.noreply.github.com>
Necmettin Karakaya <necmettin.karakaya@gmail.com>
Wonhyoung Park <wh05.park@samsung.com>
Dallas Fraser <dallas.fraser.waterloo@gmail.com>
高灰 <www@zeroplace.cn>
fecore1 <89127124+fecore1@users.noreply.github.com>
ygj6 <7699524+ygj6@users.noreply.github.com>
Bruno PIERRE <brunopierre4@yahoo.fr>
Simon Legner <Simon.Legner@gmail.com>
Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Baoshuo Ren <i@baoshuo.ren>
Anders Kaseorg <andersk@mit.edu>
Alex <aleksandrosansan@gmail.com>
Timo Tijhof <krinkle@fastmail.com>
Gabriela Gutierrez <gabigutierrez@google.com>
Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>

@@ -5,3 +5,37 @@ {

"description": "JavaScript library for DOM operations",
"version": "3.7.1",
"version": "4.0.0-beta",
"type": "module",
"exports": {
".": {
"node": {
"module": "./dist-module/jquery.module.js",
"import": "./dist-module/jquery.node-module-wrapper.js",
"require": "./dist/jquery.js"
},
"production": "./dist-module/jquery.module.min.js",
"development": "./dist-module/jquery.module.js",
"script": "./dist/jquery.min.js",
"default": "./dist-module/jquery.module.min.js"
},
"./slim": {
"node": {
"module": "./dist-module/jquery.slim.module.js",
"import": "./dist-module/jquery.node-module-wrapper.slim.js",
"require": "./dist/jquery.slim.js"
},
"production": "./dist-module/jquery.slim.module.min.js",
"development": "./dist-module/jquery.slim.module.js",
"script": "./dist/jquery.slim.min.js",
"default": "./dist-module/jquery.slim.module.min.js"
},
"./factory": {
"node": "./dist/jquery.factory.js",
"default": "./dist-module/jquery.factory.module.js"
},
"./factory-slim": {
"node": "./dist/jquery.factory.slim.js",
"default": "./dist-module/jquery.factory.slim.module.js"
},
"./src/*.js": "./src/*.js"
},
"main": "dist/jquery.js",

@@ -11,3 +45,3 @@ "homepage": "https://jquery.com",

"name": "OpenJS Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/3.7.1/AUTHORS.txt"
"url": "https://github.com/jquery/jquery/blob/main/AUTHORS.txt"
},

@@ -27,99 +61,3 @@ "repository": {

},
"license": "MIT",
"devDependencies": {
"@babel/core": "7.3.3",
"@babel/plugin-transform-for-of": "7.2.0",
"bootstrap": "5.3.0",
"colors": "1.4.0",
"commitplease": "3.2.0",
"core-js": "2.6.5",
"eslint-config-jquery": "3.0.0",
"grunt": "1.5.3",
"grunt-babel": "8.0.0",
"grunt-cli": "1.4.3",
"grunt-compare-size": "0.4.2",
"grunt-contrib-uglify": "3.4.0",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "22.0.0",
"grunt-git-authors": "3.2.0",
"grunt-jsonlint": "2.1.2",
"grunt-karma": "4.0.2",
"grunt-newer": "1.3.0",
"grunt-npmcopy": "0.2.0",
"gzip-js": "0.3.2",
"husky": "4.2.5",
"jsdom": "19.0.0",
"karma": "6.4.1",
"karma-browserstack-launcher": "1.6.0",
"karma-chrome-launcher": "3.1.1",
"karma-firefox-launcher": "2.1.2",
"karma-ie-launcher": "1.0.0",
"karma-jsdom-launcher": "12.0.0",
"karma-qunit": "4.1.2",
"karma-webkit-launcher": "2.1.0",
"load-grunt-tasks": "5.1.0",
"native-promise-only": "0.8.1",
"playwright-webkit": "1.30.0",
"promises-aplus-tests": "2.1.2",
"q": "1.5.1",
"qunit": "2.9.2",
"raw-body": "2.3.3",
"requirejs": "2.3.6",
"sinon": "2.3.7",
"strip-json-comments": "2.0.1",
"testswarm": "1.1.2",
"uglify-js": "3.4.7"
},
"scripts": {
"build": "npm install && npm run build-all-variants",
"build-all-variants": "grunt custom:slim --filename=jquery.slim.js && grunt custom",
"start": "grunt watch",
"test:browserless": "grunt && npm run test:node_smoke_tests && grunt test:slow",
"test:browser": "grunt && grunt karma:main",
"test:amd": "grunt && grunt karma:amd",
"test:no-deprecated": "grunt test:prepare && grunt custom:-deprecated && grunt karma:main",
"test:selector-native": "grunt test:prepare && grunt custom:-selector && grunt karma:main",
"test:slim": "grunt test:prepare && grunt custom:slim && grunt karma:main",
"test:node_smoke_tests:full": "grunt node_smoke_tests:./dist/jquery.js",
"test:node_smoke_tests:slim": "grunt node_smoke_tests:./dist/jquery.slim.js",
"test:node_smoke_tests": "npm run test:node_smoke_tests:full && npm run test:node_smoke_tests:slim",
"test": "npm run test:browserless && npm run test:slim && npm run test:no-deprecated && npm run test:selector-native && grunt && grunt test:slow && grunt karma:main && grunt karma:amd",
"jenkins": "npm run test:browserless"
},
"commitplease": {
"nohook": true,
"components": [
"Docs",
"Tests",
"Build",
"Support",
"Release",
"Core",
"Ajax",
"Attributes",
"Callbacks",
"CSS",
"Data",
"Deferred",
"Deprecated",
"Dimensions",
"Effects",
"Event",
"Manipulation",
"Offset",
"Queue",
"Selector",
"Serialize",
"Traversing",
"Wrap"
],
"markerPattern": "^((clos|fix|resolv)(e[sd]|ing))|^(refs?)",
"ticketPattern": "^((Closes|Fixes) ([a-zA-Z]{2,}-)[0-9]+)|^(Refs? [^#])"
},
"husky": {
"hooks": {
"commit-msg": "commitplease .git/COMMIT_EDITMSG",
"pre-commit": "grunt lint:newer qunit_fixture"
}
}
}
"license": "MIT"
}

@@ -8,3 +8,3 @@ # jQuery

If upgrading, please see the [blog post for 3.7.1](https://blog.jquery.com/2023/08/28/jquery-3-7-1-released-reliable-table-row-dimensions/). This includes notable differences from the previous version and a more readable changelog.
If upgrading, please see the [blog post for 4.0.0-beta](https://blog.jquery.com/2024/02/06/jquery-4-0-0-beta/). This includes notable differences from the previous version and a more readable changelog.

@@ -20,11 +20,98 @@ ## Including jQuery

```html
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://code.jquery.com/jquery-4.0.0-beta.min.js"></script>
```
#### Webpack / Browserify / Babel
or, to use the jQuery ECMAScript module:
There are several ways to use [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this:
```html
<script type="module">
import { $ } from "https://code.jquery.com/jquery-4.0.0-beta.module.min.js";
</script>
```
or:
```html
<script type="module">
import { jQuery } from "https://code.jquery.com/jquery-4.0.0-beta.module.min.js";
</script>
```
All jQuery modules export named `$` & `jQuery` tokens; the further examples will just show `$`. The default import also works:
```html
<script type="module">
import $ from "https://code.jquery.com/jquery-4.0.0-beta.module.min.js";
</script>
```
However, named imports provide better interoperability across tooling and are therefore recommended.
Sometimes you don’t need AJAX, or you prefer to use one of the many standalone libraries that focus on AJAX requests. And often it is simpler to use a combination of CSS, class manipulation or the Web Animations API. Similarly, many projects opt into relying on native browser promises instead of jQuery Deferreds. Along with the regular version of jQuery that includes the `ajax`, `callbacks`, `deferred`, `effects` & `queue` modules, we’ve released a “slim” version that excludes these modules. You can load it as a regular script:
```html
<script src="https://code.jquery.com/jquery-4.0.0-beta.slim.min.js"></script>
```
or as a module:
```html
<script type="module">
import { $ } from "https://code.jquery.com/jquery-4.0.0-beta.module.slim.min.js";
</script>
```
#### Import maps
To avoid repeating long import paths that change on each jQuery release, you can use import maps - they are now supported in every modern browser. Put the following script tag before any `<script type="module">`:
```html
<script type="importmap">
{
"imports": {
"jquery": "https://code.jquery.com/jquery-4.0.0-beta.module.min.js",
"jquery/slim": "https://code.jquery.com/jquery-4.0.0-beta.module.slim.min.js"
}
}
</script>
```
Now, the following will work to get the full version:
```html
<script type="module">
import { $ } from "jquery";
// Use $ here
</script>
```
and the following to get the slim one:
```html
<script type="module">
import { $ } from "jquery/slim";
// Use $ here
</script>
```
The advantage of these specific mappings is they match the ones embedded in the jQuery npm package, providing better interoperability between the environments.
You can also use jQuery from npm even in the browser setup. Read along for more details.
### Using jQuery from npm
There are several ways to use jQuery from npm. One is to use a build tool like [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Babel](https://babeljs.io/). For more information on using these tools, please refer to the corresponding project's documentation.
Another way is to use jQuery directly in Node.js. See the [Node.js pre-requisites](#nodejs-pre-requisites) section for more details on the Node.js-specific part of this.
To install the jQuery npm package, invoke:
```sh
npm install jquery
```
In the script, including jQuery will usually look like this:
```js
import $ from "jquery";
import { $ } from "jquery";
```

@@ -35,7 +122,27 @@

```js
var $ = require( "jquery" );
const $ = require( "jquery" );
```
#### AMD (Asynchronous Module Definition)
#### Individual modules
jQuery is authored in ECMAScript modules; it's also possible to use them directly. They are contained in the `src/` folder; inspect the package contents to see what's there. Full file names are required, including the `.js` extension.
Be aware that this is an advanced & low-level interface, and we don't consider it stable, even between minor or patch releases - this is especially the case for modules in subdirectories or `src/`. If you rely on it, verify your setup before updating jQuery.
All top-level modules, i.e. files directly in the `src/` directory export jQuery. Importing multiple modules will all attach to the same jQuery instance.
Remember that some modules have other dependencies (e.g. the `event` module depends on the `selector` one) so in some cases you may get more than you expect.
Example usage:
```js
import { $ } from "jquery/src/css.js"; // adds the `.css()` method
import "jquery/src/event.js"; // adds the `.on()` method; pulls "selector" as a dependency
$( ".toggle" ).on( "click", function() {
$( this ).css( "color", "red" );
} );
```
### AMD (Asynchronous Module Definition)
AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](https://requirejs.org/docs/whyamd.html).

@@ -49,11 +156,20 @@

### Node
Node.js doesn't understand AMD natively so this method is mostly used in a browser setup.
To include jQuery in [Node](https://nodejs.org/), first install with npm.
### Node.js pre-requisites
```sh
npm install jquery
For jQuery to work in Node, a `window` with a `document` is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/jsdom/jsdom). This can be useful for testing purposes.
For Node-based environments that don't have a global `window`, jQuery exposes a dedicated `jquery/factory` entry point.
To `import` jQuery using this factory, use the following:
```js
import { JSDOM } from "jsdom";
const { window } = new JSDOM( "" );
import { jQueryFactory } from "jquery/factory";
const $ = jQueryFactory( window );
```
For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/jsdom/jsdom). This can be useful for testing purposes.
or, if you use `require`:

@@ -63,3 +179,8 @@ ```js

const { window } = new JSDOM( "" );
const $ = require( "jquery" )( window );
const { jQueryFactory } = require( "jquery/factory" );
const $ = jQueryFactory( window );
```
#### Slim build in Node.js
To use the slim build of jQuery in Node.js, use `"jquery/slim"` instead of `"jquery"` in both `require` or `import` calls above. To use the slim build in Node.js with factory mode, use `jquery/factory-slim` instead of `jquery/factory`.

@@ -1,19 +0,14 @@

define( [
"./core",
"./var/document",
"./var/isFunction",
"./var/rnothtmlwhite",
"./ajax/var/location",
"./ajax/var/nonce",
"./ajax/var/rquery",
import { jQuery } from "./core.js";
import { document } from "./var/document.js";
import { rnothtmlwhite } from "./var/rnothtmlwhite.js";
import { location } from "./ajax/var/location.js";
import { nonce } from "./ajax/var/nonce.js";
import { rquery } from "./ajax/var/rquery.js";
"./core/init",
"./core/parseXML",
"./event/trigger",
"./deferred",
"./serialize" // jQuery.param
], function( jQuery, document, isFunction, rnothtmlwhite, location, nonce, rquery ) {
import "./core/init.js";
import "./core/parseXML.js";
import "./event/trigger.js";
import "./deferred.js";
import "./serialize.js"; // jQuery.param
"use strict";
var

@@ -71,3 +66,3 @@ r20 = /%20/g,

if ( isFunction( func ) ) {
if ( typeof func === "function" ) {

@@ -464,2 +459,8 @@ // For each dataType in the dataTypeExpression

while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
// Support: IE 11+
// `getResponseHeader( key )` in IE doesn't combine all header
// values for the provided key into a single result with values
// joined by commas as other browsers do. Instead, it returns
// them on separate lines.
responseHeaders[ match[ 1 ].toLowerCase() + " " ] =

@@ -547,3 +548,3 @@ ( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )

// Support: IE <=8 - 11, Edge 12 - 15
// Support: IE <=8 - 11+
// IE throws exception on accessing the href property if url is malformed,

@@ -554,3 +555,3 @@ // e.g. http://example.com:80x/

// Support: IE <=8 - 11 only
// Support: IE <=8 - 11+
// Anchor's host property isn't correctly set when s.url is relative

@@ -568,2 +569,5 @@ urlAnchor.href = urlAnchor.href;

// Apply prefilters
inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
// Convert data if not already a string

@@ -574,5 +578,2 @@ if ( s.data && s.processData && typeof s.data !== "string" ) {

// Apply prefilters
inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
// If request was aborted inside a prefilter, stop there

@@ -584,3 +585,3 @@ if ( completed ) {

// We can fire global events as of now if asked to
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)
// Don't fire events if jQuery.event is undefined in an ESM-usage scenario (trac-15118)
fireGlobals = jQuery.event && s.global;

@@ -621,4 +622,4 @@

cacheURL = cacheURL.replace( rantiCache, "$1" );
uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) +
uncached;
uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" +
( nonce.guid++ ) + uncached;
}

@@ -856,4 +857,5 @@

// Shift arguments if data argument was omitted
if ( isFunction( data ) ) {
// Shift arguments if data argument was omitted.
// Handle the null callback placeholder.
if ( typeof data === "function" || data === null ) {
type = type || callback;

@@ -884,3 +886,2 @@ callback = data;

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,10 +0,6 @@

define( [
"../core",
"../var/isFunction",
"./var/nonce",
"./var/rquery",
"../ajax"
], function( jQuery, isFunction, nonce, rquery ) {
import { jQuery } from "../core.js";
import { nonce } from "./var/nonce.js";
import { rquery } from "./var/rquery.js";
"use strict";
import "../ajax.js";

@@ -25,3 +21,3 @@ var oldCallbacks = [],

// Detect, normalize options and install callbacks for jsonp requests
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
jQuery.ajaxPrefilter( "jsonp", function( s, originalSettings, jqXHR ) {

@@ -37,69 +33,63 @@ var callbackName, overwritten, responseContainer,

// Handle iff the expected data type is "jsonp" or we have a parameter to set
if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
// Get callback name, remembering preexisting value associated with it
callbackName = s.jsonpCallback = typeof s.jsonpCallback === "function" ?
s.jsonpCallback() :
s.jsonpCallback;
// Get callback name, remembering preexisting value associated with it
callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
s.jsonpCallback() :
s.jsonpCallback;
// Insert callback into url or form data
if ( jsonProp ) {
s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
} else if ( s.jsonp !== false ) {
s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
}
// Insert callback into url or form data
if ( jsonProp ) {
s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
} else if ( s.jsonp !== false ) {
s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
// Use data converter to retrieve json after script execution
s.converters[ "script json" ] = function() {
if ( !responseContainer ) {
jQuery.error( callbackName + " was not called" );
}
return responseContainer[ 0 ];
};
// Use data converter to retrieve json after script execution
s.converters[ "script json" ] = function() {
if ( !responseContainer ) {
jQuery.error( callbackName + " was not called" );
}
return responseContainer[ 0 ];
};
// Force json dataType
s.dataTypes[ 0 ] = "json";
// Force json dataType
s.dataTypes[ 0 ] = "json";
// Install callback
overwritten = window[ callbackName ];
window[ callbackName ] = function() {
responseContainer = arguments;
};
// Install callback
overwritten = window[ callbackName ];
window[ callbackName ] = function() {
responseContainer = arguments;
};
// Clean-up function (fires after converters)
jqXHR.always( function() {
// Clean-up function (fires after converters)
jqXHR.always( function() {
// If previous value didn't exist - remove it
if ( overwritten === undefined ) {
jQuery( window ).removeProp( callbackName );
// If previous value didn't exist - remove it
if ( overwritten === undefined ) {
jQuery( window ).removeProp( callbackName );
// Otherwise restore preexisting value
} else {
window[ callbackName ] = overwritten;
}
// Otherwise restore preexisting value
} else {
window[ callbackName ] = overwritten;
}
// Save back as free
if ( s[ callbackName ] ) {
// Save back as free
if ( s[ callbackName ] ) {
// Make sure that re-using the options doesn't screw things around
s.jsonpCallback = originalSettings.jsonpCallback;
// Make sure that re-using the options doesn't screw things around
s.jsonpCallback = originalSettings.jsonpCallback;
// Save the callback name for future use
oldCallbacks.push( callbackName );
}
// Save the callback name for future use
oldCallbacks.push( callbackName );
}
// Call if it was a function and we have a response
if ( responseContainer && typeof overwritten === "function" ) {
overwritten( responseContainer[ 0 ] );
}
// Call if it was a function and we have a response
if ( responseContainer && isFunction( overwritten ) ) {
overwritten( responseContainer[ 0 ] );
}
responseContainer = overwritten = undefined;
} );
responseContainer = overwritten = undefined;
} );
// Delegate to script
return "script";
}
// Delegate to script
return "script";
} );
} );

@@ -1,13 +0,9 @@

define( [
"../core",
"../core/stripAndCollapse",
"../var/isFunction",
"../core/parseHTML",
"../ajax",
"../traversing",
"../manipulation",
"../selector"
], function( jQuery, stripAndCollapse, isFunction ) {
import { jQuery } from "../core.js";
import { stripAndCollapse } from "../core/stripAndCollapse.js";
"use strict";
import "../core/parseHTML.js";
import "../ajax.js";
import "../traversing.js";
import "../manipulation.js";
import "../selector.js";

@@ -28,3 +24,3 @@ /**

// If it's a function
if ( isFunction( params ) ) {
if ( typeof params === "function" ) {

@@ -77,3 +73,1 @@ // We assume that it's the callback

};
} );

@@ -1,17 +0,32 @@

define( [
"../core",
"../var/document",
"../ajax"
], function( jQuery, document ) {
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
"use strict";
import "../ajax.js";
// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
jQuery.ajaxPrefilter( function( s ) {
if ( s.crossDomain ) {
s.contents.script = false;
}
} );
function canUseScriptTag( s ) {
// Install script dataType
// A script tag can only be used for async, cross domain or forced-by-attrs requests.
// Requests with headers cannot use a script tag. However, when both `scriptAttrs` &
// `headers` options are specified, both are impossible to satisfy together; we
// prefer `scriptAttrs` then.
// Sync requests remain handled differently to preserve strict script ordering.
return s.scriptAttrs || (
!s.headers &&
(
s.crossDomain ||
// When dealing with JSONP (`s.dataTypes` include "json" then)
// don't use a script tag so that error responses still may have
// `responseJSON` set. Continue using a script tag for JSONP requests that:
// * are cross-domain as AJAX requests won't work without a CORS setup
// * have `scriptAttrs` set as that's a script-only functionality
// Note that this means JSONP requests violate strict CSP script-src settings.
// A proper solution is to migrate from using JSONP to a CORS setup.
( s.async && jQuery.inArray( "json", s.dataTypes ) < 0 )
)
);
}
// Install script dataType. Don't specify `contents.script` so that an explicit
// `dataType: "script"` is required (see gh-2432, gh-4822)
jQuery.ajaxSetup( {

@@ -22,5 +37,2 @@ accepts: {

},
contents: {
script: /\b(?:java|ecma)script\b/
},
converters: {

@@ -39,3 +51,6 @@ "text script": function( text ) {

}
if ( s.crossDomain ) {
// These types of requests are handled via a script tag
// so force their methods to GET.
if ( canUseScriptTag( s ) ) {
s.type = "GET";

@@ -47,5 +62,3 @@ }

jQuery.ajaxTransport( "script", function( s ) {
// This transport only deals with cross domain or forced-by-attrs requests
if ( s.crossDomain || s.scriptAttrs ) {
if ( canUseScriptTag( s ) ) {
var script, callback;

@@ -76,3 +89,1 @@ return {

} );
} );

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return window.location;
} );
export var location = window.location;

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return { guid: Date.now() };
} );
export var nonce = { guid: Date.now() };

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return ( /\?/ );
} );
export var rquery = /\?/;

@@ -1,13 +0,7 @@

define( [
"../core",
"../var/support",
"../ajax"
], function( jQuery, support ) {
import { jQuery } from "../core.js";
"use strict";
import "../ajax.js";
jQuery.ajaxSettings.xhr = function() {
try {
return new window.XMLHttpRequest();
} catch ( e ) {}
return new window.XMLHttpRequest();
};

@@ -17,155 +11,105 @@

// File protocol always yields status code 0, assume 200
0: 200,
// File protocol always yields status code 0, assume 200
0: 200
};
// Support: IE <=9 only
// trac-1450: sometimes IE returns 1223 when it should be 204
1223: 204
},
xhrSupported = jQuery.ajaxSettings.xhr();
support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
support.ajax = xhrSupported = !!xhrSupported;
jQuery.ajaxTransport( function( options ) {
var callback, errorCallback;
var callback;
// Cross domain only allowed if supported through XMLHttpRequest
if ( support.cors || xhrSupported && !options.crossDomain ) {
return {
send: function( headers, complete ) {
var i,
xhr = options.xhr();
return {
send: function( headers, complete ) {
var i,
xhr = options.xhr();
xhr.open(
options.type,
options.url,
options.async,
options.username,
options.password
);
xhr.open(
options.type,
options.url,
options.async,
options.username,
options.password
);
// Apply custom fields if provided
if ( options.xhrFields ) {
for ( i in options.xhrFields ) {
xhr[ i ] = options.xhrFields[ i ];
}
// Apply custom fields if provided
if ( options.xhrFields ) {
for ( i in options.xhrFields ) {
xhr[ i ] = options.xhrFields[ i ];
}
}
// Override mime type if needed
if ( options.mimeType && xhr.overrideMimeType ) {
xhr.overrideMimeType( options.mimeType );
}
// Override mime type if needed
if ( options.mimeType && xhr.overrideMimeType ) {
xhr.overrideMimeType( options.mimeType );
}
// X-Requested-With header
// For cross-domain requests, seeing as conditions for a preflight are
// akin to a jigsaw puzzle, we simply never set it to be sure.
// (it can always be set on a per-request basis or even using ajaxSetup)
// For same-domain requests, won't change header if already provided.
if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
headers[ "X-Requested-With" ] = "XMLHttpRequest";
}
// X-Requested-With header
// For cross-domain requests, seeing as conditions for a preflight are
// akin to a jigsaw puzzle, we simply never set it to be sure.
// (it can always be set on a per-request basis or even using ajaxSetup)
// For same-domain requests, won't change header if already provided.
if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
headers[ "X-Requested-With" ] = "XMLHttpRequest";
}
// Set headers
for ( i in headers ) {
xhr.setRequestHeader( i, headers[ i ] );
}
// Set headers
for ( i in headers ) {
xhr.setRequestHeader( i, headers[ i ] );
}
// Callback
callback = function( type ) {
return function() {
if ( callback ) {
callback = errorCallback = xhr.onload =
xhr.onerror = xhr.onabort = xhr.ontimeout =
xhr.onreadystatechange = null;
// Callback
callback = function( type ) {
return function() {
if ( callback ) {
callback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = null;
if ( type === "abort" ) {
xhr.abort();
} else if ( type === "error" ) {
if ( type === "abort" ) {
xhr.abort();
} else if ( type === "error" ) {
complete(
// Support: IE <=9 only
// On a manual native abort, IE9 throws
// errors on any property access that is not readyState
if ( typeof xhr.status !== "number" ) {
complete( 0, "error" );
} else {
complete(
// File: protocol always yields status 0; see trac-8605, trac-14207
xhr.status,
xhr.statusText
);
} else {
complete(
xhrSuccessStatus[ xhr.status ] || xhr.status,
xhr.statusText,
// File: protocol always yields status 0; see trac-8605, trac-14207
xhr.status,
xhr.statusText
);
}
} else {
complete(
xhrSuccessStatus[ xhr.status ] || xhr.status,
xhr.statusText,
// Support: IE <=9 only
// IE9 has no XHR2 but throws on binary (trac-11426)
// For XHR2 non-text, let the caller handle it (gh-2498)
( xhr.responseType || "text" ) !== "text" ||
typeof xhr.responseText !== "string" ?
{ binary: xhr.response } :
{ text: xhr.responseText },
xhr.getAllResponseHeaders()
);
}
// For XHR2 non-text, let the caller handle it (gh-2498)
( xhr.responseType || "text" ) === "text" ?
{ text: xhr.responseText } :
{ binary: xhr.response },
xhr.getAllResponseHeaders()
);
}
};
}
};
};
// Listen to events
xhr.onload = callback();
errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
// Listen to events
xhr.onload = callback();
xhr.onabort = xhr.onerror = xhr.ontimeout = callback( "error" );
// Support: IE 9 only
// Use onreadystatechange to replace onabort
// to handle uncaught aborts
if ( xhr.onabort !== undefined ) {
xhr.onabort = errorCallback;
} else {
xhr.onreadystatechange = function() {
// Create the abort callback
callback = callback( "abort" );
// Check readyState before timeout as it changes
if ( xhr.readyState === 4 ) {
try {
// Allow onerror to be called first,
// but that will not handle a native abort
// Also, save errorCallback to a variable
// as xhr.onerror cannot be accessed
window.setTimeout( function() {
if ( callback ) {
errorCallback();
}
} );
}
};
}
// Do send the request (this may raise an exception)
xhr.send( options.hasContent && options.data || null );
} catch ( e ) {
// Create the abort callback
callback = callback( "abort" );
try {
// Do send the request (this may raise an exception)
xhr.send( options.hasContent && options.data || null );
} catch ( e ) {
// trac-14683: Only rethrow if this hasn't been notified as an error yet
if ( callback ) {
throw e;
}
}
},
abort: function() {
// trac-14683: Only rethrow if this hasn't been notified as an error yet
if ( callback ) {
callback();
throw e;
}
}
};
}
} );
},
abort: function() {
if ( callback ) {
callback();
}
}
};
} );

@@ -1,13 +0,9 @@

define( [
"./core",
"./attributes/attr",
"./attributes/prop",
"./attributes/classes",
"./attributes/val"
], function( jQuery ) {
import { jQuery } from "./core.js";
"use strict";
import "./attributes/attr.js";
import "./attributes/prop.js";
import "./attributes/classes.js";
import "./attributes/val.js";
// Return jQuery for attributes-only inclusion
return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,15 +0,7 @@

define( [
"../core",
"../core/access",
"../core/nodeName",
"./support",
"../var/rnothtmlwhite",
"../selector"
], function( jQuery, access, nodeName, support, rnothtmlwhite ) {
import { jQuery } from "../core.js";
import { access } from "../core/access.js";
import { nodeName } from "../core/nodeName.js";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
import { isIE } from "../var/isIE.js";
"use strict";
var boolHook,
attrHandle = jQuery.expr.attrHandle;
jQuery.fn.extend( {

@@ -45,4 +37,3 @@ attr: function( name, value ) {

if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
hooks = jQuery.attrHooks[ name.toLowerCase() ];
}

@@ -61,3 +52,3 @@

elem.setAttribute( name, value + "" );
elem.setAttribute( name, value );
return value;

@@ -70,3 +61,3 @@ }

ret = jQuery.find.attr( elem, name );
ret = elem.getAttribute( name );

@@ -77,17 +68,3 @@ // Non-existent attributes return null, we normalize to undefined

attrHooks: {
type: {
set: function( elem, value ) {
if ( !support.radioValue && value === "radio" &&
nodeName( elem, "input" ) ) {
var val = elem.value;
elem.setAttribute( "type", value );
if ( val ) {
elem.value = val;
}
return value;
}
}
}
},
attrHooks: {},

@@ -110,37 +87,46 @@ removeAttr: function( elem, value ) {

// Hooks for boolean attributes
boolHook = {
set: function( elem, value, name ) {
if ( value === false ) {
// Remove boolean attributes when set to false
jQuery.removeAttr( elem, name );
} else {
elem.setAttribute( name, name );
// Support: IE <=11+
// An input loses its value after becoming a radio
if ( isIE ) {
jQuery.attrHooks.type = {
set: function( elem, value ) {
if ( value === "radio" && nodeName( elem, "input" ) ) {
var val = elem.value;
elem.setAttribute( "type", value );
if ( val ) {
elem.value = val;
}
return value;
}
}
return name;
}
};
};
}
jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( _i, name ) {
var getter = attrHandle[ name ] || jQuery.find.attr;
// HTML boolean attributes have special behavior:
// we consider the lowercase name to be the only valid value, so
// getting (if the attribute is present) normalizes to that, as does
// setting to any non-`false` value (and setting to `false` removes the attribute).
// See https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
jQuery.each( (
"checked selected async autofocus autoplay controls defer disabled " +
"hidden ismap loop multiple open readonly required scoped"
).split( " " ), function( _i, name ) {
jQuery.attrHooks[ name ] = {
get: function( elem ) {
return elem.getAttribute( name ) != null ?
name.toLowerCase() :
null;
},
attrHandle[ name ] = function( elem, name, isXML ) {
var ret, handle,
lowercaseName = name.toLowerCase();
set: function( elem, value, name ) {
if ( value === false ) {
if ( !isXML ) {
// Avoid an infinite loop by temporarily removing this function from the getter
handle = attrHandle[ lowercaseName ];
attrHandle[ lowercaseName ] = ret;
ret = getter( elem, name, isXML ) != null ?
lowercaseName :
null;
attrHandle[ lowercaseName ] = handle;
// Remove boolean attributes when set to false
jQuery.removeAttr( elem, name );
} else {
elem.setAttribute( name, name );
}
return name;
}
return ret;
};
} );
} );

@@ -1,11 +0,6 @@

define( [
"../core",
"../core/stripAndCollapse",
"../var/isFunction",
"../var/rnothtmlwhite",
"../data/var/dataPriv",
"../core/init"
], function( jQuery, stripAndCollapse, isFunction, rnothtmlwhite, dataPriv ) {
import { jQuery } from "../core.js";
import { stripAndCollapse } from "../core/stripAndCollapse.js";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
"use strict";
import "../core/init.js";

@@ -30,3 +25,3 @@ function getClass( elem ) {

if ( isFunction( value ) ) {
if ( typeof value === "function" ) {
return this.each( function( j ) {

@@ -67,3 +62,3 @@ jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );

if ( isFunction( value ) ) {
if ( typeof value === "function" ) {
return this.each( function( j ) {

@@ -110,7 +105,5 @@ jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );

toggleClass: function( value, stateVal ) {
var classNames, className, i, self,
type = typeof value,
isValidValue = type === "string" || Array.isArray( value );
var classNames, className, i, self;
if ( isFunction( value ) ) {
if ( typeof value === "function" ) {
return this.each( function( i ) {

@@ -124,3 +117,3 @@ jQuery( this ).toggleClass(

if ( typeof stateVal === "boolean" && isValidValue ) {
if ( typeof stateVal === "boolean" ) {
return stateVal ? this.addClass( value ) : this.removeClass( value );

@@ -131,4 +124,4 @@ }

return this.each( function() {
if ( isValidValue ) {
if ( classNames.length ) {
return this.each( function() {

@@ -148,25 +141,6 @@ // Toggle individual class names

}
} );
}
// Toggle whole class name
} else if ( value === undefined || type === "boolean" ) {
className = getClass( this );
if ( className ) {
// Store className if set
dataPriv.set( this, "__className__", className );
}
// If the element has a class name or if we're passed `false`,
// then remove the whole classname (if there was one, the above saved it).
// Otherwise bring back whatever was previously saved (if anything),
// falling back to the empty string if nothing was stored.
if ( this.setAttribute ) {
this.setAttribute( "class",
className || value === false ?
"" :
dataPriv.get( this, "__className__" ) || ""
);
}
}
} );
return this;
},

@@ -189,3 +163,1 @@

} );
} );

@@ -1,10 +0,5 @@

define( [
"../core",
"../core/access",
"./support",
"../selector"
], function( jQuery, access, support ) {
import { jQuery } from "../core.js";
import { access } from "../core/access.js";
import { isIE } from "../var/isIE.js";
"use strict";
var rfocusable = /^(?:input|select|textarea|button)$/i,

@@ -62,7 +57,7 @@ rclickable = /^(?:a|area)$/i;

// Support: IE <=9 - 11 only
// Support: IE <=9 - 11+
// elem.tabIndex doesn't always return the
// correct value when it hasn't been explicitly set
// Use proper attribute retrieval (trac-12072)
var tabindex = jQuery.find.attr( elem, "tabindex" );
var tabindex = elem.getAttribute( "tabindex" );

@@ -75,4 +70,6 @@ if ( tabindex ) {

rfocusable.test( elem.nodeName ) ||
rclickable.test( elem.nodeName ) &&
elem.href
// href-less anchor's `tabIndex` property value is `0` and
// the `tabindex` attribute value: `null`. We want `-1`.
rclickable.test( elem.nodeName ) && elem.href
) {

@@ -93,18 +90,14 @@ return 0;

// Support: IE <=11 only
// Accessing the selectedIndex property
// forces the browser to respect setting selected
// on the option
// The getter ensures a default option is selected
// when in an optgroup
// eslint rule "no-unused-expressions" is disabled for this code
// since it considers such accessions noop
if ( !support.optSelected ) {
// Support: IE <=11+
// Accessing the selectedIndex property forces the browser to respect
// setting selected on the option. The getter ensures a default option
// is selected when in an optgroup. ESLint rule "no-unused-expressions"
// is disabled for this code since it considers such accessions noop.
if ( isIE ) {
jQuery.propHooks.selected = {
get: function( elem ) {
/* eslint no-unused-expressions: "off" */
var parent = elem.parentNode;
if ( parent && parent.parentNode ) {
// eslint-disable-next-line no-unused-expressions
parent.parentNode.selectedIndex;

@@ -116,9 +109,10 @@ }

/* eslint no-unused-expressions: "off" */
var parent = elem.parentNode;
if ( parent ) {
// eslint-disable-next-line no-unused-expressions
parent.selectedIndex;
if ( parent.parentNode ) {
// eslint-disable-next-line no-unused-expressions
parent.parentNode.selectedIndex;

@@ -145,3 +139,1 @@ }

} );
} );

@@ -1,15 +0,8 @@

define( [
"../core",
"../core/stripAndCollapse",
"./support",
"../core/nodeName",
"../var/isFunction",
import { jQuery } from "../core.js";
import { isIE } from "../var/isIE.js";
import { stripAndCollapse } from "../core/stripAndCollapse.js";
import { nodeName } from "../core/nodeName.js";
"../core/init"
], function( jQuery, stripAndCollapse, support, nodeName, isFunction ) {
import "../core/init.js";
"use strict";
var rreturn = /\r/g;
jQuery.fn.extend( {

@@ -34,7 +27,2 @@ val: function( value ) {

// Handle most common string cases
if ( typeof ret === "string" ) {
return ret.replace( rreturn, "" );
}
// Handle cases where value is null/undef or number

@@ -47,3 +35,3 @@ return ret == null ? "" : ret;

valueIsFunction = isFunction( value );
valueIsFunction = typeof value === "function";

@@ -88,16 +76,2 @@ return this.each( function( i ) {

valHooks: {
option: {
get: function( elem ) {
var val = jQuery.find.attr( elem, "value" );
return val != null ?
val :
// Support: IE <=10 - 11 only
// option.text throws exceptions (trac-14686, trac-14858)
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
stripAndCollapse( jQuery.text( elem ) );
}
},
select: {

@@ -123,5 +97,3 @@ get: function( elem ) {

// Support: IE <=9 only
// IE8-9 doesn't update selected after form reset (trac-2551)
if ( ( option.selected || i === index ) &&
if ( option.selected &&

@@ -158,11 +130,7 @@ // Don't return options that are disabled or in a disabled optgroup

/* eslint-disable no-cond-assign */
if ( option.selected =
jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
) {
if ( ( option.selected =
jQuery.inArray( jQuery( option ).val(), values ) > -1
) ) {
optionSet = true;
}
/* eslint-enable no-cond-assign */
}

@@ -180,2 +148,19 @@

if ( isIE ) {
jQuery.valHooks.option = {
get: function( elem ) {
var val = elem.getAttribute( "value" );
return val != null ?
val :
// Support: IE <=10 - 11+
// option.text throws exceptions (trac-14686, trac-14858)
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
stripAndCollapse( jQuery.text( elem ) );
}
};
}
// Radios and checkboxes getter/setter

@@ -190,9 +175,2 @@ jQuery.each( [ "radio", "checkbox" ], function() {

};
if ( !support.checkOn ) {
jQuery.valHooks[ this ].get = function( elem ) {
return elem.getAttribute( "value" ) === null ? "on" : elem.value;
};
}
} );
} );

@@ -1,10 +0,5 @@

define( [
"./core",
"./core/toType",
"./var/isFunction",
"./var/rnothtmlwhite"
], function( jQuery, toType, isFunction, rnothtmlwhite ) {
import { jQuery } from "./core.js";
import { toType } from "./core/toType.js";
import { rnothtmlwhite } from "./var/rnothtmlwhite.js";
"use strict";
// Convert String-formatted options into Object-formatted ones

@@ -130,3 +125,3 @@ function createOptions( options ) {

jQuery.each( args, function( _, arg ) {
if ( isFunction( arg ) ) {
if ( typeof arg === "function" ) {
if ( !options.unique || !self.has( arg ) ) {

@@ -236,3 +231,2 @@ list.push( arg );

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,30 +0,18 @@

/* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
import { arr } from "./var/arr.js";
import { getProto } from "./var/getProto.js";
import { slice } from "./var/slice.js";
import { flat } from "./var/flat.js";
import { push } from "./var/push.js";
import { indexOf } from "./var/indexOf.js";
import { class2type } from "./var/class2type.js";
import { toString } from "./var/toString.js";
import { hasOwn } from "./var/hasOwn.js";
import { fnToString } from "./var/fnToString.js";
import { ObjectFunctionString } from "./var/ObjectFunctionString.js";
import { support } from "./var/support.js";
import { isArrayLike } from "./core/isArrayLike.js";
import { DOMEval } from "./core/DOMEval.js";
define( [
"./var/arr",
"./var/getProto",
"./var/slice",
"./var/flat",
"./var/push",
"./var/indexOf",
"./var/class2type",
"./var/toString",
"./var/hasOwn",
"./var/fnToString",
"./var/ObjectFunctionString",
"./var/support",
"./var/isFunction",
"./var/isWindow",
"./core/DOMEval",
"./core/toType"
], function( arr, getProto, slice, flat, push, indexOf,
class2type, toString, hasOwn, fnToString, ObjectFunctionString,
support, isFunction, isWindow, DOMEval, toType ) {
var version = "4.0.0-beta",
"use strict";
var version = "3.7.1",
rhtmlSuffix = /HTML$/i,

@@ -124,9 +112,3 @@

return this.prevObject || this.constructor();
},
// For internal use only.
// Behaves like an Array's method, not like a jQuery method.
push: push,
sort: arr.sort,
splice: arr.splice
}
};

@@ -151,3 +133,3 @@

// Handle case when target is a string or something (possible in deep copy)
if ( typeof target !== "object" && !isFunction( target ) ) {
if ( typeof target !== "object" && typeof target !== "function" ) {
target = {};

@@ -310,2 +292,3 @@ }

// results is for internal usage only

@@ -342,4 +325,16 @@ makeArray: function( arr, results ) {

// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
// Note: an element does not contain itself
contains: function( a, b ) {
var bup = b && b.parentNode;
return a === bup || !!( bup && bup.nodeType === 1 && (
// Support: IE 9 - 11+
// IE doesn't have `contains` on SVG.
a.contains ?
a.contains( bup ) :
a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
) );
},
merge: function( first, second ) {

@@ -428,20 +423,2 @@ var len = +second.length,

function isArrayLike( obj ) {
// Support: real iOS 8.2 only (not reproducible in simulator)
// `in` check used to prevent JIT error (gh-2145)
// hasOwn isn't used here due to false negatives
// regarding Nodelist length in IE
var length = !!obj && "length" in obj && obj.length,
type = toType( obj );
if ( isFunction( obj ) || isWindow( obj ) ) {
return false;
}
return type === "array" || length === 0 ||
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
}
return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,12 +0,7 @@

define( [
"../core",
"../core/toType",
"../var/isFunction"
], function( jQuery, toType, isFunction ) {
import { jQuery } from "../core.js";
import { toType } from "../core/toType.js";
"use strict";
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
export function access( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,

@@ -27,3 +22,3 @@ len = elems.length,

if ( !isFunction( value ) ) {
if ( typeof value !== "function" ) {
raw = true;

@@ -69,6 +64,2 @@ }

return len ? fn( elems[ 0 ], key ) : emptyGet;
};
return access;
} );
}

@@ -1,8 +0,3 @@

define( [], function() {
"use strict";
// Matches dashed string for camelizing
var rmsPrefix = /^-ms-/,
rdashAlpha = /-([a-z])/g;
var rdashAlpha = /-([a-z])/g;

@@ -14,11 +9,5 @@ // Used by camelCase as callback to replace()

// Convert dashed to camelCase; used by the css and data modules
// Support: IE <=9 - 11, Edge 12 - 15
// Microsoft forgot to hump their vendor prefix (trac-9572)
function camelCase( string ) {
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
// Convert dashed to camelCase
export function camelCase( string ) {
return string.replace( rdashAlpha, fcamelCase );
}
return camelCase;
} );

@@ -1,43 +0,26 @@

define( [
"../var/document"
], function( document ) {
"use strict";
import { document } from "../var/document.js";
var preservedScriptAttributes = {
type: true,
src: true,
nonce: true,
noModule: true
};
var preservedScriptAttributes = {
type: true,
src: true,
nonce: true,
noModule: true
};
function DOMEval( code, node, doc ) {
doc = doc || document;
export function DOMEval( code, node, doc ) {
doc = doc || document;
var i, val,
script = doc.createElement( "script" );
var i,
script = doc.createElement( "script" );
script.text = code;
if ( node ) {
for ( i in preservedScriptAttributes ) {
// Support: Firefox 64+, Edge 18+
// Some browsers don't support the "nonce" property on scripts.
// On the other hand, just using `getAttribute` is not enough as
// the `nonce` attribute is reset to an empty string whenever it
// becomes browsing-context connected.
// See https://github.com/whatwg/html/issues/2369
// See https://html.spec.whatwg.org/#nonce-attributes
// The `node.getAttribute` check was added for the sake of
// `jQuery.globalEval` so that it can fake a nonce-containing node
// via an object.
val = node[ i ] || node.getAttribute && node.getAttribute( i );
if ( val ) {
script.setAttribute( i, val );
}
}
script.text = code;
for ( i in preservedScriptAttributes ) {
if ( node && node[ i ] ) {
script[ i ] = node[ i ];
}
doc.head.appendChild( script ).parentNode.removeChild( script );
}
return DOMEval;
} );
if ( doc.head.appendChild( script ).parentNode ) {
script.parentNode.removeChild( script );
}
}
// Initialize a jQuery object
define( [
"../core",
"../var/document",
"../var/isFunction",
"./var/rsingleTag",
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
import { rsingleTag } from "./var/rsingleTag.js";
import { isObviousHtml } from "./isObviousHtml.js";
"../traversing/findFilter"
], function( jQuery, document, isFunction, rsingleTag ) {
import "../traversing/findFilter.js";
"use strict";
// A central reference to the root jQuery(document)

@@ -22,3 +18,3 @@ var rootjQuery,

init = jQuery.fn.init = function( selector, context, root ) {
init = jQuery.fn.init = function( selector, context ) {
var match, elem;

@@ -31,20 +27,37 @@

// Method init() accepts an alternate rootjQuery
// so migrate can support jQuery.sub (gh-2101)
root = root || rootjQuery;
// HANDLE: $(DOMElement)
if ( selector.nodeType ) {
this[ 0 ] = selector;
this.length = 1;
return this;
// Handle HTML strings
if ( typeof selector === "string" ) {
if ( selector[ 0 ] === "<" &&
selector[ selector.length - 1 ] === ">" &&
selector.length >= 3 ) {
// HANDLE: $(function)
// Shortcut for document ready
} else if ( typeof selector === "function" ) {
return rootjQuery.ready !== undefined ?
rootjQuery.ready( selector ) :
// Assume that strings that start and end with <> are HTML and skip the regex check
// Execute immediately if ready is not present
selector( jQuery );
} else {
// Handle obvious HTML strings
match = selector + "";
if ( isObviousHtml( match ) ) {
// Assume that strings that start and end with <> are HTML and skip
// the regex check. This also handles browser-supported HTML wrappers
// like TrustedHTML.
match = [ null, selector, null ];
// Handle HTML strings or selectors
} else if ( typeof selector === "string" ) {
match = rquickExpr.exec( selector );
} else {
match = rquickExpr.exec( selector );
return jQuery.makeArray( selector, this );
}
// Match html or make sure no context is specified for #id
// Note: match[1] may be a string or a TrustedHTML wrapper
if ( match && ( match[ 1 ] || !context ) ) {

@@ -69,3 +82,3 @@

// Properties of context are called as methods if possible
if ( isFunction( this[ match ] ) ) {
if ( typeof this[ match ] === "function" ) {
this[ match ]( context[ match ] );

@@ -95,5 +108,5 @@

// HANDLE: $(expr, $(...))
// HANDLE: $(expr) & $(expr, $(...))
} else if ( !context || context.jquery ) {
return ( context || root ).find( selector );
return ( context || rootjQuery ).find( selector );

@@ -105,20 +118,4 @@ // HANDLE: $(expr, context)

}
// HANDLE: $(DOMElement)
} else if ( selector.nodeType ) {
this[ 0 ] = selector;
this.length = 1;
return this;
// HANDLE: $(function)
// Shortcut for document ready
} else if ( isFunction( selector ) ) {
return root.ready !== undefined ?
root.ready( selector ) :
// Execute immediately if ready is not present
selector( jQuery );
}
return jQuery.makeArray( selector, this );
};

@@ -131,5 +128,1 @@

rootjQuery = jQuery( document );
return init;
} );

@@ -1,26 +0,19 @@

define( [
"../core",
"../var/documentElement",
"../selector/contains" // jQuery.contains
], function( jQuery, documentElement ) {
"use strict";
import { jQuery } from "../core.js";
import { documentElement } from "../var/documentElement.js";
var isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem );
},
composed = { composed: true };
var isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
},
composed = { composed: true };
// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only
// Check attachment across shadow DOM boundaries when possible (gh-3504)
// Support: iOS 10.0-10.2 only
// Early iOS 10 versions support `attachShadow` but not `getRootNode`,
// leading to errors. We need to check for `getRootNode`.
if ( documentElement.getRootNode ) {
isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
};
}
// Support: IE 9 - 11+
// Check attachment across shadow DOM boundaries when possible (gh-3504).
// Provide a fallback for browsers without Shadow DOM v1 support.
if ( !documentElement.getRootNode ) {
isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem );
};
}
return isAttached;
} );
export { isAttached };

@@ -1,13 +0,3 @@

define( function() {
"use strict";
function nodeName( elem, name ) {
export function nodeName( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
}
return nodeName;
} );

@@ -1,14 +0,8 @@

define( [
"../core",
"../var/document",
"./var/rsingleTag",
"../manipulation/buildFragment",
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
import { rsingleTag } from "./var/rsingleTag.js";
import { buildFragment } from "../manipulation/buildFragment.js";
import { isObviousHtml } from "./isObviousHtml.js";
// This is the only module that needs core/support
"./support"
], function( jQuery, document, rsingleTag, buildFragment, support ) {
"use strict";
// Argument "data" should be string of html
// Argument "data" should be string of html or a TrustedHTML wrapper of obvious HTML
// context (optional): If specified, the fragment will be created in this context,

@@ -18,3 +12,3 @@ // defaults to document

jQuery.parseHTML = function( data, context, keepScripts ) {
if ( typeof data !== "string" ) {
if ( typeof data !== "string" && !isObviousHtml( data + "" ) ) {
return [];

@@ -33,14 +27,10 @@ }

// by using document.implementation
if ( support.createHTMLDocument ) {
context = document.implementation.createHTMLDocument( "" );
context = document.implementation.createHTMLDocument( "" );
// Set the base href for the created document
// so any parsed elements with URLs
// are based on the document's URL (gh-2965)
base = context.createElement( "base" );
base.href = document.location.href;
context.head.appendChild( base );
} else {
context = document;
}
// Set the base href for the created document
// so any parsed elements with URLs
// are based on the document's URL (gh-2965)
base = context.createElement( "base" );
base.href = document.location.href;
context.head.appendChild( base );
}

@@ -64,5 +54,1 @@

};
return jQuery.parseHTML;
} );

@@ -1,7 +0,3 @@

define( [
"../core"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
// Cross-browser xml parsing

@@ -14,3 +10,3 @@ jQuery.parseXML = function( data ) {

// Support: IE 9 - 11 only
// Support: IE 9 - 11+
// IE throws on parseFromString with invalid input.

@@ -33,5 +29,1 @@ try {

};
return jQuery.parseXML;
} );

@@ -1,9 +0,4 @@

define( [
"../core",
"../var/document",
"../var/isFunction"
], function( jQuery, document, isFunction ) {
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
"use strict";
var readyCallbacks = [],

@@ -56,3 +51,3 @@ whenReady = function( fn ) {

fn = readyCallbacks.shift();
if ( isFunction( fn ) ) {
if ( typeof fn === "function" ) {
executeReady( fn );

@@ -81,6 +76,3 @@ }

// after the browser event has already occurred.
// Support: IE9-10 only
// Older IE sometimes signals "interactive" too soon
if ( document.readyState === "complete" ||
( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
if ( document.readyState !== "loading" ) {

@@ -98,3 +90,1 @@ // Handle it asynchronously to allow scripts the opportunity to delay ready

}
} );

@@ -1,9 +0,6 @@

define( [
"../core",
"../var/document",
"../core/readyException",
"../deferred"
], function( jQuery, document ) {
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
"use strict";
import "../core/readyException.js";
import "../deferred.js";

@@ -69,6 +66,3 @@ // The deferred used on DOM ready

// after the browser event has already occurred.
// Support: IE <=9 - 10 only
// Older IE sometimes signals "interactive" too soon
if ( document.readyState === "complete" ||
( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
if ( document.readyState !== "loading" ) {

@@ -86,3 +80,1 @@ // Handle it asynchronously to allow scripts the opportunity to delay ready

}
} );

@@ -1,7 +0,3 @@

define( [
"../core"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
jQuery.readyException = function( error ) {

@@ -12,3 +8,1 @@ window.setTimeout( function() {

};
} );

@@ -1,14 +0,8 @@

define( [
"../var/rnothtmlwhite"
], function( rnothtmlwhite ) {
"use strict";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
// Strip and collapse whitespace according to HTML spec
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
function stripAndCollapse( value ) {
var tokens = value.match( rnothtmlwhite ) || [];
return tokens.join( " " );
}
return stripAndCollapse;
} );
// Strip and collapse whitespace according to HTML spec
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
export function stripAndCollapse( value ) {
var tokens = value.match( rnothtmlwhite ) || [];
return tokens.join( " " );
}

@@ -1,9 +0,5 @@

define( [
"../var/class2type",
"../var/toString"
], function( class2type, toString ) {
import { class2type } from "../var/class2type.js";
import { toString } from "../var/toString.js";
"use strict";
function toType( obj ) {
export function toType( obj ) {
if ( obj == null ) {

@@ -13,9 +9,5 @@ return obj + "";

// Support: Android <=2.3 only (functionish RegExp)
return typeof obj === "object" || typeof obj === "function" ?
return typeof obj === "object" ?
class2type[ toString.call( obj ) ] || "object" :
typeof obj;
}
return toType;
} );

@@ -1,7 +0,3 @@

define( function() {
"use strict";
// rsingleTag matches a string consisting of a single HTML element with no attributes
// and captures the element's name
return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
} );
// rsingleTag matches a string consisting of a single HTML element with no attributes
// and captures the element's name
export var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;

@@ -1,27 +0,21 @@

define( [
"./core",
"./core/access",
"./core/camelCase",
"./core/nodeName",
"./var/rcssNum",
"./css/var/rnumnonpx",
"./css/var/rcustomProp",
"./css/var/cssExpand",
"./css/var/getStyles",
"./css/var/swap",
"./css/curCSS",
"./css/adjustCSS",
"./css/addGetHookIf",
"./css/support",
"./css/finalPropName",
import { jQuery } from "./core.js";
import { access } from "./core/access.js";
import { nodeName } from "./core/nodeName.js";
import { rcssNum } from "./var/rcssNum.js";
import { isIE } from "./var/isIE.js";
import { rnumnonpx } from "./css/var/rnumnonpx.js";
import { rcustomProp } from "./css/var/rcustomProp.js";
import { cssExpand } from "./css/var/cssExpand.js";
import { isAutoPx } from "./css/isAutoPx.js";
import { cssCamelCase } from "./css/cssCamelCase.js";
import { getStyles } from "./css/var/getStyles.js";
import { swap } from "./css/var/swap.js";
import { curCSS } from "./css/curCSS.js";
import { adjustCSS } from "./css/adjustCSS.js";
import { finalPropName } from "./css/finalPropName.js";
import { support } from "./css/support.js";
"./core/init",
"./core/ready",
"./selector" // contains
], function( jQuery, access, camelCase, nodeName, rcssNum, rnumnonpx,
rcustomProp, cssExpand, getStyles, swap, curCSS, adjustCSS, addGetHookIf,
support, finalPropName ) {
import "./core/init.js";
import "./core/ready.js";
"use strict";
var

@@ -129,3 +123,3 @@

// Fake content-box until we know it's needed to know the true value.
boxSizingNeeded = !support.boxSizingReliable() || extra,
boxSizingNeeded = isIE || extra,
isBorderBox = boxSizingNeeded &&

@@ -138,3 +132,2 @@ jQuery.css( elem, "boxSizing", false, styles ) === "border-box",

// Support: Firefox <=54
// Return a confounding non-pixel value or feign ignorance, as appropriate.

@@ -149,13 +142,4 @@ if ( rnumnonpx.test( val ) ) {

// Support: IE 9 - 11 only
// Use offsetWidth/offsetHeight for when box sizing is unreliable.
// In those cases, the computed value can be trusted to be border-box.
if ( ( !support.boxSizingReliable() && isBorderBox ||
if ( (
// Support: IE 10 - 11+, Edge 15 - 18+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Interestingly, in some cases IE 9 doesn't suffer from this issue.
!support.reliableTrDimensions() && nodeName( elem, "tr" ) ||
// Fall back to offsetWidth/offsetHeight when value is "auto"

@@ -165,6 +149,15 @@ // This happens for inline elements with no explicit setting (gh-3571)

// Support: Android <=4.1 - 4.3 only
// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) &&
// Support: IE 9 - 11+
// Use offsetWidth/offsetHeight for when box sizing is unreliable.
// In those cases, the computed value can be trusted to be border-box.
( isIE && isBorderBox ) ||
// Support: IE 10 - 11+
// IE misreports `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Support: Firefox 70+
// Firefox includes border widths
// in computed dimensions for table rows. (gh-4529)
( !support.reliableTrDimensions() && nodeName( elem, "tr" ) ) ) &&
// Make sure the element is visible & connected

@@ -206,52 +199,4 @@ elem.getClientRects().length ) {

// behavior of getting and setting a style property
cssHooks: {
opacity: {
get: function( elem, computed ) {
if ( computed ) {
cssHooks: {},
// We should always get a number back from opacity
var ret = curCSS( elem, "opacity" );
return ret === "" ? "1" : ret;
}
}
}
},
// Don't automatically add "px" to these possibly-unitless properties
cssNumber: {
animationIterationCount: true,
aspectRatio: true,
borderImageSlice: true,
columnCount: true,
flexGrow: true,
flexShrink: true,
fontWeight: true,
gridArea: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnStart: true,
gridRow: true,
gridRowEnd: true,
gridRowStart: true,
lineHeight: true,
opacity: true,
order: true,
orphans: true,
scale: true,
widows: true,
zIndex: true,
zoom: true,
// SVG-related
fillOpacity: true,
floodOpacity: true,
stopOpacity: true,
strokeMiterlimit: true,
strokeOpacity: true
},
// Add in properties whose names you wish to fix before
// setting or getting the value
cssProps: {},
// Get and set the style property on a DOM Node

@@ -267,3 +212,3 @@ style: function( elem, name, value, extra ) {

var ret, type, hooks,
origName = camelCase( name ),
origName = cssCamelCase( name ),
isCustomProp = rcustomProp.test( name ),

@@ -299,11 +244,10 @@ style = elem.style;

// If a number was passed in, add the unit (except for certain CSS properties)
// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
// "px" to a few hardcoded values.
if ( type === "number" && !isCustomProp ) {
value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
// If the value is a number, add `px` for certain CSS properties
if ( type === "number" ) {
value += ret && ret[ 3 ] || ( isAutoPx( origName ) ? "px" : "" );
}
// background-* props affect original clone's values
if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
// Support: IE <=9 - 11+
// background-* props of a cloned element affect the source element (trac-8908)
if ( isIE && value === "" && name.indexOf( "background" ) === 0 ) {
style[ name ] = "inherit";

@@ -339,3 +283,3 @@ }

var val, num, hooks,
origName = camelCase( name ),
origName = cssCamelCase( name ),
isCustomProp = rcustomProp.test( name );

@@ -387,6 +331,6 @@

// Support: Safari 8+
// Table columns in Safari have non-zero offsetWidth & zero
// Support: Safari <=8 - 12+, Chrome <=73+
// Table columns in WebKit/Blink have non-zero offsetWidth & zero
// getBoundingClientRect().width unless display is changed.
// Support: IE <=11 only
// Support: IE <=11+
// Running getBoundingClientRect on a disconnected node

@@ -406,10 +350,4 @@ // in IE throws an error.

// Only read styles.position if the test has a chance to fail
// to avoid forcing a reflow.
scrollboxSizeBuggy = !support.scrollboxSize() &&
styles.position === "absolute",
// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)
boxSizingNeeded = scrollboxSizeBuggy || extra,
isBorderBox = boxSizingNeeded &&
isBorderBox = extra &&
jQuery.css( elem, "boxSizing", false, styles ) === "border-box",

@@ -426,13 +364,2 @@ subtract = extra ?

// Account for unreliable border-box dimensions by comparing offset* to computed and
// faking a content-box to get border and padding (gh-3699)
if ( isBorderBox && scrollboxSizeBuggy ) {
subtract -= Math.ceil(
elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
parseFloat( styles[ dimension ] ) -
boxModelAdjustment( elem, dimension, "border", false, styles ) -
0.5
);
}
// Convert to pixels if value adjustment is needed

@@ -451,15 +378,2 @@ if ( subtract && ( matches = rcssNum.exec( value ) ) &&

jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
function( elem, computed ) {
if ( computed ) {
return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
elem.getBoundingClientRect().left -
swap( elem, { marginLeft: 0 }, function() {
return elem.getBoundingClientRect().left;
} )
) + "px";
}
}
);
// These hooks are used by animate to expand properties

@@ -518,3 +432,2 @@ jQuery.each( {

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,9 +0,6 @@

define( [
"../core",
"../var/rcssNum"
], function( jQuery, rcssNum ) {
import { jQuery } from "../core.js";
import { isAutoPx } from "./isAutoPx.js";
import { rcssNum } from "../var/rcssNum.js";
"use strict";
function adjustCSS( elem, prop, valueParts, tween ) {
export function adjustCSS( elem, prop, valueParts, tween ) {
var adjusted, scale,

@@ -19,7 +16,7 @@ maxIterations = 20,

initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
unit = valueParts && valueParts[ 3 ] || ( isAutoPx( prop ) ? "px" : "" ),
// Starting value computation is required for potential unit mismatches
initialInUnit = elem.nodeType &&
( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
( !isAutoPx( prop ) || unit !== "px" && +initial ) &&
rcssNum.exec( jQuery.css( elem, prop ) );

@@ -29,3 +26,3 @@

// Support: Firefox <=54
// Support: Firefox <=54 - 66+
// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)

@@ -74,4 +71,1 @@ initial = initial / 2;

}
return adjustCSS;
} );

@@ -1,32 +0,20 @@

define( [
"../core",
"../core/isAttached",
"./var/rboxStyle",
"./var/rnumnonpx",
"./var/getStyles",
"./var/rcustomProp",
"../var/rtrimCSS",
"./support"
], function( jQuery, isAttached, rboxStyle, rnumnonpx, getStyles,
rcustomProp, rtrimCSS, support ) {
import { jQuery } from "../core.js";
import { isAttached } from "../core/isAttached.js";
import { getStyles } from "./var/getStyles.js";
import { rcustomProp } from "./var/rcustomProp.js";
import { rtrimCSS } from "../var/rtrimCSS.js";
"use strict";
export function curCSS( elem, name, computed ) {
var ret,
isCustomProp = rcustomProp.test( name );
function curCSS( elem, name, computed ) {
var width, minWidth, maxWidth, ret,
isCustomProp = rcustomProp.test( name ),
// Support: Firefox 51+
// Retrieving style before computed somehow
// fixes an issue with getting wrong values
// on detached elements
style = elem.style;
computed = computed || getStyles( elem );
// getPropertyValue is needed for:
// .css('filter') (IE 9 only, trac-12537)
// .css('--customProperty) (gh-3144)
// getPropertyValue is needed for `.css('--customProperty')` (gh-3144)
if ( computed ) {
// A fallback to direct property access is needed as `computed`, being
// the output of `getComputedStyle`, contains camelCased keys and
// `getPropertyValue` requires kebab-case ones.
//
// Support: IE <=9 - 11+

@@ -67,24 +55,2 @@ // IE only supports `"float"` in `getPropertyValue`; in computed styles

}
// A tribute to the "awesome hack by Dean Edwards"
// Android Browser returns percentage for some values,
// but width seems to be reliably pixels.
// This is against the CSSOM draft spec:
// https://drafts.csswg.org/cssom/#resolved-values
if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
// Remember the original values
width = style.width;
minWidth = style.minWidth;
maxWidth = style.maxWidth;
// Put in the new values to get a computed value out
style.minWidth = style.maxWidth = style.width = ret;
ret = computed.width;
// Revert the changed values
style.width = width;
style.minWidth = minWidth;
style.maxWidth = maxWidth;
}
}

@@ -94,3 +60,3 @@

// Support: IE <=9 - 11 only
// Support: IE <=9 - 11+
// IE returns zIndex value as an integer.

@@ -100,4 +66,1 @@ ret + "" :

}
return curCSS;
} );

@@ -1,8 +0,3 @@

define( [
"../var/document",
"../core"
], function( document, jQuery ) {
import { document } from "../var/document.js";
"use strict";
var cssPrefixes = [ "Webkit", "Moz", "ms" ],

@@ -27,5 +22,5 @@ emptyStyle = document.createElement( "div" ).style,

// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
function finalPropName( name ) {
var final = jQuery.cssProps[ name ] || vendorProps[ name ];
// Return a potentially-mapped vendor prefixed property
export function finalPropName( name ) {
var final = vendorProps[ name ];

@@ -40,5 +35,1 @@ if ( final ) {

}
return finalPropName;
} );

@@ -1,7 +0,4 @@

define( [
"../core",
"../selector"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
import "../selector.js";

@@ -14,3 +11,1 @@ jQuery.expr.pseudos.hidden = function( elem ) {

};
} );

@@ -1,9 +0,5 @@

define( [
"../core",
"../data/var/dataPriv",
"../css/var/isHiddenWithinTree"
], function( jQuery, dataPriv, isHiddenWithinTree ) {
import { jQuery } from "../core.js";
import { dataPriv } from "../data/var/dataPriv.js";
import { isHiddenWithinTree } from "../css/var/isHiddenWithinTree.js";
"use strict";
var defaultDisplayMap = {};

@@ -34,3 +30,3 @@

function showHide( elements, show ) {
export function showHide( elements, show ) {
var display, elem,

@@ -104,4 +100,1 @@ values = [],

} );
return showHide;
} );

@@ -1,152 +0,67 @@

define( [
"../core",
"../var/document",
"../var/documentElement",
"../var/support"
], function( jQuery, document, documentElement, support ) {
import { document } from "../var/document.js";
import { documentElement } from "../var/documentElement.js";
import { support } from "../var/support.js";
"use strict";
( function() {
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the second computation.
function computeStyleTests() {
var reliableTrDimensionsVal,
div = document.createElement( "div" );
// This is a singleton, we need to execute it only once
if ( !div ) {
return;
}
// Finish early in limited (non-browser) environments
if ( !div.style ) {
return;
}
container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
"margin-top:1px;padding:0;border:0";
div.style.cssText =
"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
"margin:auto;border:1px;padding:1px;" +
"width:60%;top:1%";
documentElement.appendChild( container ).appendChild( div );
// Support: IE 10 - 11+
// IE misreports `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Support: Firefox 70+
// Only Firefox includes border widths
// in computed dimensions. (gh-4529)
support.reliableTrDimensions = function() {
var table, tr, trStyle;
if ( reliableTrDimensionsVal == null ) {
table = document.createElement( "table" );
tr = document.createElement( "tr" );
var divStyle = window.getComputedStyle( div );
pixelPositionVal = divStyle.top !== "1%";
table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
tr.style.cssText = "box-sizing:content-box;border:1px solid";
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
// Support: Chrome 86+
// Height set through cssText does not get applied.
// Computed height then comes back as 0.
tr.style.height = "1px";
div.style.height = "9px";
// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
// Some styles come back with percentage values, even though they shouldn't
div.style.right = "60%";
pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
// Support: Android Chrome 86+
// In our bodyBackground.html iframe,
// display for all div elements is set to "inline",
// which causes a problem only in Android Chrome, but
// not consistently across all devices.
// Ensuring the div is `display: block`
// gets around this issue.
div.style.display = "block";
// Support: IE 9 - 11 only
// Detect misreporting of content dimensions for box-sizing:border-box elements
boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
documentElement
.appendChild( table )
.appendChild( tr )
.appendChild( div );
// Support: IE 9 only
// Detect overflow:scroll screwiness (gh-3699)
// Support: Chrome <=64
// Don't get tricked when zoom affects offsetWidth (gh-4029)
div.style.position = "absolute";
scrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;
// Don't run until window is visible
if ( table.offsetWidth === 0 ) {
documentElement.removeChild( table );
return;
}
documentElement.removeChild( container );
trStyle = window.getComputedStyle( tr );
reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +
parseInt( trStyle.borderTopWidth, 10 ) +
parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;
// Nullify the div so it wouldn't be stored in the memory and
// it will also be a sign that checks already performed
div = null;
documentElement.removeChild( table );
}
function roundPixelMeasures( measure ) {
return Math.round( parseFloat( measure ) );
}
var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
reliableTrDimensionsVal, reliableMarginLeftVal,
container = document.createElement( "div" ),
div = document.createElement( "div" );
// Finish early in limited (non-browser) environments
if ( !div.style ) {
return;
}
// Support: IE <=9 - 11 only
// Style of cloned element affects source element cloned (trac-8908)
div.style.backgroundClip = "content-box";
div.cloneNode( true ).style.backgroundClip = "";
support.clearCloneStyle = div.style.backgroundClip === "content-box";
jQuery.extend( support, {
boxSizingReliable: function() {
computeStyleTests();
return boxSizingReliableVal;
},
pixelBoxStyles: function() {
computeStyleTests();
return pixelBoxStylesVal;
},
pixelPosition: function() {
computeStyleTests();
return pixelPositionVal;
},
reliableMarginLeft: function() {
computeStyleTests();
return reliableMarginLeftVal;
},
scrollboxSize: function() {
computeStyleTests();
return scrollboxSizeVal;
},
// Support: IE 9 - 11+, Edge 15 - 18+
// IE/Edge misreport `getComputedStyle` of table rows with width/height
// set in CSS while `offset*` properties report correct values.
// Behavior in IE 9 is more subtle than in newer versions & it passes
// some versions of this test; make sure not to make it pass there!
//
// Support: Firefox 70+
// Only Firefox includes border widths
// in computed dimensions. (gh-4529)
reliableTrDimensions: function() {
var table, tr, trChild, trStyle;
if ( reliableTrDimensionsVal == null ) {
table = document.createElement( "table" );
tr = document.createElement( "tr" );
trChild = document.createElement( "div" );
table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
tr.style.cssText = "box-sizing:content-box;border:1px solid";
// Support: Chrome 86+
// Height set through cssText does not get applied.
// Computed height then comes back as 0.
tr.style.height = "1px";
trChild.style.height = "9px";
// Support: Android 8 Chrome 86+
// In our bodyBackground.html iframe,
// display for all div elements is set to "inline",
// which causes a problem only in Android 8 Chrome 86.
// Ensuring the div is `display: block`
// gets around this issue.
trChild.style.display = "block";
documentElement
.appendChild( table )
.appendChild( tr )
.appendChild( trChild );
trStyle = window.getComputedStyle( tr );
reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +
parseInt( trStyle.borderTopWidth, 10 ) +
parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;
documentElement.removeChild( table );
}
return reliableTrDimensionsVal;
}
} );
return reliableTrDimensionsVal;
};
} )();
return support;
} );
export { support };

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return [ "Top", "Right", "Bottom", "Left" ];
} );
export var cssExpand = [ "Top", "Right", "Bottom", "Left" ];

@@ -1,17 +0,15 @@

define( function() {
"use strict";
export function getStyles( elem ) {
return function( elem ) {
// Support: IE <=11+ (trac-14150)
// In IE popup's `window` is the opener window which makes `window.getComputedStyle( elem )`
// break. Using `elem.ownerDocument.defaultView` avoids the issue.
var view = elem.ownerDocument.defaultView;
// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)
// IE throws on elements created in popups
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
var view = elem.ownerDocument.defaultView;
// `document.implementation.createHTMLDocument( "" )` has a `null` `defaultView`
// property; check `defaultView` truthiness to fallback to window in such a case.
if ( !view ) {
view = window;
}
if ( !view || !view.opener ) {
view = window;
}
return view.getComputedStyle( elem );
};
} );
return view.getComputedStyle( elem );
}

@@ -1,34 +0,20 @@

define( [
"../../core",
"../../core/isAttached"
import { jQuery } from "../../core.js";
// css is assumed
], function( jQuery, isAttached ) {
"use strict";
// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
// through the CSS cascade), which is useful in deciding whether or not to make it visible.
// It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways:
// * A hidden ancestor does not force an element to be classified as hidden.
// * Being disconnected from the document does not force an element to be classified as hidden.
// These differences improve the behavior of .toggle() et al. when applied to elements that are
// detached or contained within hidden ancestors (gh-2404, gh-2863).
export function isHiddenWithinTree( elem, el ) {
// isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or
// through the CSS cascade), which is useful in deciding whether or not to make it visible.
// It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways:
// * A hidden ancestor does not force an element to be classified as hidden.
// * Being disconnected from the document does not force an element to be classified as hidden.
// These differences improve the behavior of .toggle() et al. when applied to elements that are
// detached or contained within hidden ancestors (gh-2404, gh-2863).
return function( elem, el ) {
// isHiddenWithinTree might be called from jQuery#filter function;
// in that case, element will be second argument
elem = el || elem;
// isHiddenWithinTree might be called from jQuery#filter function;
// in that case, element will be second argument
elem = el || elem;
// Inline style trumps all
return elem.style.display === "none" ||
elem.style.display === "" &&
// Otherwise, check computed style
// Support: Firefox <=43 - 45
// Disconnected elements can have computed display: none, so first confirm that elem is
// in the document.
isAttached( elem ) &&
jQuery.css( elem, "display" ) === "none";
};
} );
// Inline style trumps all
return elem.style.display === "none" ||
elem.style.display === "" &&
jQuery.css( elem, "display" ) === "none";
}

@@ -1,7 +0,1 @@

define( function() {
"use strict";
return /^--/;
} );
export var rcustomProp = /^--/;

@@ -1,7 +0,3 @@

define( [
"../../var/pnum"
], function( pnum ) {
"use strict";
import { pnum } from "../../var/pnum.js";
return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
} );
export var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );

@@ -1,7 +0,3 @@

define( function() {
"use strict";
// A method for quickly swapping in/out CSS properties to get correct calculations.
return function( elem, options, callback ) {
export function swap( elem, options, callback ) {
var ret, name,

@@ -24,4 +20,2 @@ old = {};

return ret;
};
} );
}

@@ -1,11 +0,7 @@

define( [
"./core",
"./core/access",
"./core/camelCase",
"./data/var/dataPriv",
"./data/var/dataUser"
], function( jQuery, access, camelCase, dataPriv, dataUser ) {
import { jQuery } from "./core.js";
import { access } from "./core/access.js";
import { camelCase } from "./core/camelCase.js";
import { dataPriv } from "./data/var/dataPriv.js";
import { dataUser } from "./data/var/dataUser.js";
"use strict";
// Implementation Summary

@@ -111,3 +107,3 @@ //

// Support: IE 11 only
// Support: IE 11+
// The attrs elements can be null (trac-14894)

@@ -180,3 +176,2 @@ if ( attrs[ i ] ) {

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,11 +0,7 @@

define( [
"../core",
"../core/camelCase",
"../var/rnothtmlwhite",
"./var/acceptData"
], function( jQuery, camelCase, rnothtmlwhite, acceptData ) {
import { jQuery } from "../core.js";
import { camelCase } from "../core/camelCase.js";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
import { acceptData } from "./var/acceptData.js";
"use strict";
function Data() {
export function Data() {
this.expando = jQuery.expando + Data.uid++;

@@ -25,3 +21,3 @@ }

if ( !value ) {
value = {};
value = Object.create( null );

@@ -69,3 +65,3 @@ // We can accept data for non-element nodes in modern browsers,

}
return cache;
return value;
},

@@ -146,3 +142,3 @@ get: function( owner, key ) {

// Support: Chrome <=35 - 45
// Support: Chrome <=35 - 45+
// Webkit & Blink performance suffers when deleting properties

@@ -163,4 +159,1 @@ // from DOM nodes, so set to undefined instead

};
return Data;
} );

@@ -1,9 +0,5 @@

define( function() {
"use strict";
/**
* Determines whether an object can have data
*/
return function( owner ) {
export function acceptData( owner ) {

@@ -17,4 +13,2 @@ // Accepts only:

return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
};
} );
}

@@ -1,7 +0,3 @@

define( [
"../Data"
], function( Data ) {
"use strict";
import { Data } from "../Data.js";
return new Data();
} );
export var dataPriv = new Data();

@@ -1,7 +0,3 @@

define( [
"../Data"
], function( Data ) {
"use strict";
import { Data } from "../Data.js";
return new Data();
} );
export var dataUser = new Data();

@@ -1,9 +0,5 @@

define( [
"./core",
"./var/isFunction",
"./var/slice",
"./callbacks"
], function( jQuery, isFunction, slice ) {
import { jQuery } from "./core.js";
import { slice } from "./var/slice.js";
"use strict";
import "./callbacks.js";

@@ -23,7 +19,7 @@ function Identity( v ) {

// Check for promise aspect first to privilege synchronous behavior
if ( value && isFunction( ( method = value.promise ) ) ) {
if ( value && typeof( method = value.promise ) === "function" ) {
method.call( value ).done( resolve ).fail( reject );
// Other thenables
} else if ( value && isFunction( ( method = value.then ) ) ) {
} else if ( value && typeof( method = value.then ) === "function" ) {
method.call( value, resolve, reject );

@@ -44,6 +40,3 @@

} catch ( value ) {
// Support: Android 4.0 only
// Strict mode functions invoked without .call/.apply get global-object context
reject.apply( undefined, [ value ] );
reject( value );
}

@@ -75,3 +68,3 @@ }

},
"catch": function( fn ) {
catch: function( fn ) {
return promise.then( null, fn );

@@ -88,3 +81,4 @@ },

// Map tuples (progress, done, fail) to arguments (done, fail, progress)
var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
var fn = typeof fns[ tuple[ 4 ] ] === "function" &&
fns[ tuple[ 4 ] ];

@@ -96,3 +90,3 @@ // deferred.progress(function() { bind to newDefer or newDefer.notify })

var returned = fn && fn.apply( this, arguments );
if ( returned && isFunction( returned.promise ) ) {
if ( returned && typeof returned.promise === "function" ) {
returned.promise()

@@ -151,3 +145,3 @@ .progress( newDefer.notify )

// Handle a returned thenable
if ( isFunction( then ) ) {
if ( typeof then === "function" ) {

@@ -235,9 +229,2 @@ // Special processors (notify) just wait for resolution

process.error = jQuery.Deferred.getErrorHook();
// The deprecated alias of the above. While the name suggests
// returning the stack, not an error instance, jQuery just passes
// it directly to `console.warn` so both will work; an instance
// just better cooperates with source maps.
} else if ( jQuery.Deferred.getStackHook ) {
process.error = jQuery.Deferred.getStackHook();
}

@@ -256,3 +243,3 @@ window.setTimeout( process );

newDefer,
isFunction( onProgress ) ?
typeof onProgress === "function" ?
onProgress :

@@ -269,3 +256,3 @@ Identity,

newDefer,
isFunction( onFulfilled ) ?
typeof onFulfilled === "function" ?
onFulfilled :

@@ -281,3 +268,3 @@ Identity

newDefer,
isFunction( onRejected ) ?
typeof onRejected === "function" ?
onRejected :

@@ -400,3 +387,3 @@ Thrower

if ( primary.state() === "pending" ||
isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
typeof( resolveValues[ i ] && resolveValues[ i ].then ) === "function" ) {

@@ -416,3 +403,2 @@ return primary.then();

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,7 +0,4 @@

define( [
"../core",
"../deferred"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
import "../deferred.js";

@@ -17,10 +14,9 @@ // These usually indicate a programmer mistake during development,

// Support: IE 8 - 9 only
// Console exists when dev tools are open, which can happen at any time
if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
window.console.warn( "jQuery.Deferred exception: " + error.message,
error.stack, asyncError );
if ( error && rerrorNames.test( error.name ) ) {
window.console.warn(
"jQuery.Deferred exception",
error,
asyncError
);
}
};
} );

@@ -1,22 +0,7 @@

define( [
"./core",
"./core/nodeName",
"./core/camelCase",
"./core/toType",
"./var/isFunction",
"./var/isWindow",
"./var/slice",
import { jQuery } from "./core.js";
import { slice } from "./var/slice.js";
"./deprecated/ajax-event-alias",
"./deprecated/event"
], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
import "./deprecated/ajax-event-alias.js";
import "./deprecated/event.js";
"use strict";
// Support: Android <=4.0 only
// Make sure we trim BOM and NBSP
// Require that the "whitespace run" starts from a non-whitespace
// to avoid O(N^2) behavior when the engine would try matching "\s+$" at each space position.
var rtrim = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
// Bind a function to a context, optionally partially applying any

@@ -37,3 +22,3 @@ // arguments.

// this throws a TypeError, but we will just return undefined.
if ( !isFunction( fn ) ) {
if ( typeof fn !== "function" ) {
return undefined;

@@ -61,31 +46,3 @@ }

};
jQuery.isArray = Array.isArray;
jQuery.parseJSON = JSON.parse;
jQuery.nodeName = nodeName;
jQuery.isFunction = isFunction;
jQuery.isWindow = isWindow;
jQuery.camelCase = camelCase;
jQuery.type = toType;
jQuery.now = Date.now;
jQuery.isNumeric = function( obj ) {
// As of jQuery 3.0, isNumeric is limited to
// strings and numbers (primitives or objects)
// that can be coerced to finite numbers (gh-2662)
var type = jQuery.type( obj );
return ( type === "number" || type === "string" ) &&
// parseFloat NaNs numeric-cast false positives ("")
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
// subtraction forces infinities to NaN
!isNaN( obj - parseFloat( obj ) );
};
jQuery.trim = function( text ) {
return text == null ?
"" :
( text + "" ).replace( rtrim, "$1" );
};
} );
export { jQuery, jQuery as $ };

@@ -1,8 +0,5 @@

define( [
"../core",
"../ajax",
"../event"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
import "../ajax.js";
import "../event.js";

@@ -21,3 +18,1 @@ jQuery.each( [

} );
} );

@@ -1,10 +0,6 @@

define( [
"../core",
import { jQuery } from "../core.js";
"../event",
"../event/trigger"
], function( jQuery ) {
import "../event.js";
import "../event/trigger.js";
"use strict";
jQuery.fn.extend( {

@@ -51,3 +47,1 @@

);
} );

@@ -1,9 +0,6 @@

define( [
"./core",
"./core/access",
"./var/isWindow",
"./css"
], function( jQuery, access, isWindow ) {
import { jQuery } from "./core.js";
import { access } from "./core/access.js";
import { isWindow } from "./var/isWindow.js";
"use strict";
import "./css.js";

@@ -59,3 +56,2 @@ // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,26 +0,20 @@

define( [
"./core",
"./core/camelCase",
"./var/document",
"./var/isFunction",
"./var/rcssNum",
"./var/rnothtmlwhite",
"./css/var/cssExpand",
"./css/var/isHiddenWithinTree",
"./css/adjustCSS",
"./data/var/dataPriv",
"./css/showHide",
import { jQuery } from "./core.js";
import { document } from "./var/document.js";
import { rcssNum } from "./var/rcssNum.js";
import { rnothtmlwhite } from "./var/rnothtmlwhite.js";
import { cssExpand } from "./css/var/cssExpand.js";
import { isHiddenWithinTree } from "./css/var/isHiddenWithinTree.js";
import { adjustCSS } from "./css/adjustCSS.js";
import { cssCamelCase } from "./css/cssCamelCase.js";
import { dataPriv } from "./data/var/dataPriv.js";
import { showHide } from "./css/showHide.js";
"./core/init",
"./queue",
"./deferred",
"./traversing",
"./manipulation",
"./css",
"./effects/Tween"
], function( jQuery, camelCase, document, isFunction, rcssNum, rnothtmlwhite, cssExpand,
isHiddenWithinTree, adjustCSS, dataPriv, showHide ) {
import "./core/init.js";
import "./queue.js";
import "./deferred.js";
import "./traversing.js";
import "./manipulation.js";
import "./css.js";
import "./effects/Tween.js";
"use strict";
var

@@ -36,3 +30,3 @@ fxNow, inProgress,

} else {
window.setTimeout( schedule, jQuery.fx.interval );
window.setTimeout( schedule, 13 );
}

@@ -153,6 +147,5 @@

// Support: IE <=9 - 11, Edge 12 - 15
// Support: IE <=9 - 11+
// Record all 3 overflow attributes because IE does not infer the shorthand
// from identically-valued overflowX and overflowY and Edge just mirrors
// the overflowX value there.
// from identically-valued overflowX and overflowY.
opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];

@@ -218,3 +211,3 @@

} else {
dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
dataShow = dataPriv.set( elem, "fxshow", { display: restoreDisplay } );
}

@@ -232,8 +225,5 @@

/* eslint-disable no-loop-func */
// eslint-disable-next-line no-loop-func
anim.done( function() {
/* eslint-enable no-loop-func */
// The final step of a "hide" animation is actually hiding the element

@@ -267,3 +257,3 @@ if ( !hidden ) {

for ( index in props ) {
name = camelCase( index );
name = cssCamelCase( index );
easing = specialEasing[ name ];

@@ -317,6 +307,3 @@ value = props[ index ];

// Support: Android 2.3 only
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (trac-12497)
temp = remaining / animation.duration || 0,
percent = 1 - temp,
percent = 1 - ( remaining / animation.duration || 0 ),
index = 0,

@@ -394,3 +381,3 @@ length = animation.tweens.length;

if ( result ) {
if ( isFunction( result.stop ) ) {
if ( typeof result.stop === "function" ) {
jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =

@@ -405,3 +392,3 @@ result.stop.bind( result );

if ( isFunction( animation.opts.start ) ) {
if ( typeof animation.opts.start === "function" ) {
animation.opts.start.call( elem, animation );

@@ -439,3 +426,3 @@ }

tweener: function( props, callback ) {
if ( isFunction( props ) ) {
if ( typeof props === "function" ) {
callback = props;

@@ -471,6 +458,6 @@ props = [ "*" ];

var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
complete: fn || !fn && easing ||
isFunction( speed ) && speed,
complete: fn || easing ||
typeof speed === "function" && speed,
duration: speed,
easing: fn && easing || easing && !isFunction( easing ) && easing
easing: fn && easing || easing && typeof easing !== "function" && easing
};

@@ -502,3 +489,3 @@

opt.complete = function() {
if ( isFunction( opt.old ) ) {
if ( typeof opt.old === "function" ) {
opt.old.call( this );

@@ -690,3 +677,2 @@ }

jQuery.fx.interval = 13;
jQuery.fx.start = function() {

@@ -713,3 +699,2 @@ if ( inProgress ) {

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,8 +0,5 @@

define( [
"../core",
"../selector",
"../effects"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
import "../selector.js";
import "../effects.js";

@@ -14,3 +11,1 @@ jQuery.expr.pseudos.animated = function( elem ) {

};
} );

@@ -1,10 +0,7 @@

define( [
"../core",
"../css/finalPropName",
import { jQuery } from "../core.js";
import { isAutoPx } from "../css/isAutoPx.js";
import { finalPropName } from "../css/finalPropName.js";
"../css"
], function( jQuery, finalPropName ) {
import "../css.js";
"use strict";
function Tween( elem, options, prop, end, easing ) {

@@ -24,3 +21,3 @@ return new Tween.prototype.init( elem, options, prop, end, easing );

this.end = end;
this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
this.unit = unit || ( isAutoPx( prop ) ? "px" : "" );
},

@@ -101,12 +98,2 @@ cur: function() {

// Support: IE <=9 only
// Panic based approach to setting things on disconnected nodes
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
set: function( tween ) {
if ( tween.elem.nodeType && tween.elem.parentNode ) {
tween.elem[ tween.prop ] = tween.now;
}
}
};
jQuery.easing = {

@@ -126,3 +113,1 @@ linear: function( p ) {

jQuery.fx.step = {};
} );

@@ -1,20 +0,14 @@

define( [
"./core",
"./var/document",
"./var/documentElement",
"./var/isFunction",
"./var/rnothtmlwhite",
"./var/rcheckableType",
"./var/slice",
"./data/var/acceptData",
"./data/var/dataPriv",
"./core/nodeName",
import { jQuery } from "./core.js";
import { documentElement } from "./var/documentElement.js";
import { rnothtmlwhite } from "./var/rnothtmlwhite.js";
import { rcheckableType } from "./var/rcheckableType.js";
import { slice } from "./var/slice.js";
import { isIE } from "./var/isIE.js";
import { acceptData } from "./data/var/acceptData.js";
import { dataPriv } from "./data/var/dataPriv.js";
import { nodeName } from "./core/nodeName.js";
"./core/init",
"./selector"
], function( jQuery, document, documentElement, isFunction, rnothtmlwhite,
rcheckableType, slice, acceptData, dataPriv, nodeName ) {
import "./core/init.js";
import "./selector.js";
"use strict";
var rtypenamespace = /^([^.]*)(?:\.(.+)|)/;

@@ -97,4 +91,2 @@

global: {},
add: function( elem, types, handler, data, selector ) {

@@ -207,5 +199,2 @@

}
// Keep track of which events have ever been used, for event optimization
jQuery.event.global[ type ] = true;
}

@@ -366,10 +355,6 @@

// Support: IE <=9
// Black-hole SVG <use> instance trees (trac-13180)
cur.nodeType &&
// Support: Firefox <=42
// Support: Firefox <=42 - 66+
// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
// Support: IE 11 only
// Support: IE 11+
// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)

@@ -421,3 +406,3 @@ !( event.type === "click" && event.button >= 1 ) ) {

get: isFunction( hook ) ?
get: typeof hook === "function" ?
function() {

@@ -451,3 +436,3 @@ if ( this.originalEvent ) {

special: {
special: jQuery.extend( Object.create( null ), {
load: {

@@ -509,4 +494,5 @@

// Support: Firefox 20+
// Firefox doesn't alert if the returnValue field is not set.
// Support: Chrome <=73+
// Chrome doesn't alert on `event.preventDefault()`
// as the standard mandates.
if ( event.result !== undefined && event.originalEvent ) {

@@ -517,3 +503,3 @@ event.originalEvent.returnValue = event.result;

}
}
} )
};

@@ -626,7 +612,3 @@

// by a handler lower down the tree; reflect the correct value.
this.isDefaultPrevented = src.defaultPrevented ||
src.defaultPrevented === undefined &&
// Support: Android <=2.3 only
src.returnValue === false ?
this.isDefaultPrevented = src.defaultPrevented ?
returnTrue :

@@ -636,8 +618,3 @@ returnFalse;

// Create target properties
// Support: Safari <=6 - 7 only
// Target should not be a text node (trac-504, trac-13143)
this.target = ( src.target && src.target.nodeType === 3 ) ?
src.target.parentNode :
src.target;
this.target = src.target;
this.currentTarget = src.currentTarget;

@@ -740,37 +717,21 @@ this.relatedTarget = src.relatedTarget;

// Support: IE 11+
// Attach a single focusin/focusout handler on the document while someone wants focus/blur.
// This is because the former are synchronous in IE while the latter are async. In other
// browsers, all those handlers are invoked synchronously.
function focusMappedHandler( nativeEvent ) {
if ( document.documentMode ) {
// Support: IE 11+
// Attach a single focusin/focusout handler on the document while someone wants
// focus/blur. This is because the former are synchronous in IE while the latter
// are async. In other browsers, all those handlers are invoked synchronously.
// `eventHandle` would already wrap the event, but we need to change the `type` here.
var event = jQuery.event.fix( nativeEvent );
event.type = nativeEvent.type === "focusin" ? "focus" : "blur";
event.isSimulated = true;
// `handle` from private data would already wrap the event, but we need
// to change the `type` here.
var handle = dataPriv.get( this, "handle" ),
event = jQuery.event.fix( nativeEvent );
event.type = nativeEvent.type === "focusin" ? "focus" : "blur";
event.isSimulated = true;
// focus/blur don't bubble while focusin/focusout do; simulate the former by only
// invoking the handler at the lower level.
if ( event.target === event.currentTarget ) {
// First, handle focusin/focusout
handle( nativeEvent );
// ...then, handle focus/blur
//
// focus/blur don't bubble while focusin/focusout do; simulate the former by only
// invoking the handler at the lower level.
if ( event.target === event.currentTarget ) {
// The setup part calls `leverageNative`, which, in turn, calls
// `jQuery.event.add`, so event handle will already have been set
// by this point.
handle( event );
}
} else {
// For non-IE browsers, attach a single capturing handler on the document
// while someone wants focusin/focusout.
jQuery.event.simulate( delegateType, nativeEvent.target,
jQuery.event.fix( nativeEvent ) );
// The setup part calls `leverageNative`, which, in turn, calls
// `jQuery.event.add`, so event handle will already have been set
// by this point.
dataPriv.get( this, "handle" )( event );
}

@@ -784,4 +745,2 @@ }

var attaches;
// Claim the first handler

@@ -792,13 +751,4 @@ // dataPriv.set( this, "focus", ... )

if ( document.documentMode ) {
// Support: IE 9 - 11+
// We use the same native handler for focusin & focus (and focusout & blur)
// so we need to coordinate setup & teardown parts between those events.
// Use `delegateType` as the key as `type` is already used by `leverageNative`.
attaches = dataPriv.get( this, delegateType );
if ( !attaches ) {
this.addEventListener( delegateType, focusMappedHandler );
}
dataPriv.set( this, delegateType, ( attaches || 0 ) + 1 );
if ( isIE ) {
this.addEventListener( delegateType, focusMappedHandler );
} else {

@@ -820,12 +770,4 @@

teardown: function() {
var attaches;
if ( document.documentMode ) {
attaches = dataPriv.get( this, delegateType ) - 1;
if ( !attaches ) {
this.removeEventListener( delegateType, focusMappedHandler );
dataPriv.remove( this, delegateType );
} else {
dataPriv.set( this, delegateType, attaches );
}
if ( isIE ) {
this.removeEventListener( delegateType, focusMappedHandler );
} else {

@@ -846,54 +788,2 @@

};
// Support: Firefox <=44
// Firefox doesn't have focus(in | out) events
// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
//
// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
// focus(in | out) events fire after focus & blur events,
// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
//
// Support: IE 9 - 11+
// To preserve relative focusin/focus & focusout/blur event order guaranteed on the 3.x branch,
// attach a single handler for both events in IE.
jQuery.event.special[ delegateType ] = {
setup: function() {
// Handle: regular nodes (via `this.ownerDocument`), window
// (via `this.document`) & document (via `this`).
var doc = this.ownerDocument || this.document || this,
dataHolder = document.documentMode ? this : doc,
attaches = dataPriv.get( dataHolder, delegateType );
// Support: IE 9 - 11+
// We use the same native handler for focusin & focus (and focusout & blur)
// so we need to coordinate setup & teardown parts between those events.
// Use `delegateType` as the key as `type` is already used by `leverageNative`.
if ( !attaches ) {
if ( document.documentMode ) {
this.addEventListener( delegateType, focusMappedHandler );
} else {
doc.addEventListener( type, focusMappedHandler, true );
}
}
dataPriv.set( dataHolder, delegateType, ( attaches || 0 ) + 1 );
},
teardown: function() {
var doc = this.ownerDocument || this.document || this,
dataHolder = document.documentMode ? this : doc,
attaches = dataPriv.get( dataHolder, delegateType ) - 1;
if ( !attaches ) {
if ( document.documentMode ) {
this.removeEventListener( delegateType, focusMappedHandler );
} else {
doc.removeEventListener( type, focusMappedHandler, true );
}
dataPriv.remove( dataHolder, delegateType );
} else {
dataPriv.set( dataHolder, delegateType, attaches );
}
}
};
} );

@@ -904,7 +794,2 @@

// Do the same for pointerenter/pointerleave and pointerover/pointerout
//
// Support: Safari 7 only
// Safari sends mouseenter too often; see:
// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
// for the description of the bug (it existed in older Chrome versions as well).
jQuery.each( {

@@ -984,3 +869,2 @@ mouseenter: "mouseover",

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,13 +0,9 @@

define( [
"../core",
"../var/document",
"../data/var/dataPriv",
"../data/var/acceptData",
"../var/hasOwn",
"../var/isFunction",
"../var/isWindow",
"../event"
], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) {
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
import { dataPriv } from "../data/var/dataPriv.js";
import { acceptData } from "../data/var/acceptData.js";
import { hasOwn } from "../var/hasOwn.js";
import { isWindow } from "../var/isWindow.js";
"use strict";
import "../event.js";

@@ -132,3 +128,3 @@ var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,

// Don't do default actions on window, that's where global variables be (trac-6170)
if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
if ( ontype && typeof elem[ type ] === "function" && !isWindow( elem ) ) {

@@ -198,4 +194,1 @@ // Don't re-trigger an onFOO event when we call its FOO() method

} );
return jQuery;
} );

@@ -1,7 +0,3 @@

define( [
"../core"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
// Register as a named AMD module, since jQuery can be concatenated with other

@@ -25,3 +21,1 @@ // files that may use define, but not via a proper concatenation script that

}
} );

@@ -1,7 +0,3 @@

define( [
"../core"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
var

@@ -28,3 +24,3 @@

// Expose jQuery and $ identifiers, even in AMD
// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557)
// (trac-7102#comment:10, gh-557)
// and CommonJS for browser emulators (trac-13566)

@@ -34,3 +30,1 @@ if ( typeof noGlobal === "undefined" ) {

}
} );

@@ -1,40 +0,38 @@

define( [
"./core",
"./selector",
"./traversing",
"./callbacks",
"./deferred",
"./deferred/exceptionHook",
"./core/ready",
"./data",
"./queue",
"./queue/delay",
"./attributes",
"./event",
"./manipulation",
"./manipulation/_evalUrl",
"./wrap",
"./css",
"./css/hiddenVisibleSelectors",
"./serialize",
"./ajax",
"./ajax/xhr",
"./ajax/script",
"./ajax/jsonp",
"./ajax/load",
"./core/parseXML",
"./core/parseHTML",
"./effects",
"./effects/animatedSelector",
"./offset",
"./dimensions",
"./deprecated",
"./exports/amd",
"./exports/global"
], function( jQuery ) {
import { jQuery } from "./core.js";
"use strict";
import "./selector.js";
import "./traversing.js";
import "./callbacks.js";
import "./deferred.js";
import "./deferred/exceptionHook.js";
import "./core/ready.js";
import "./data.js";
import "./queue.js";
import "./queue/delay.js";
import "./attributes.js";
import "./event.js";
import "./event/trigger.js";
import "./manipulation.js";
import "./manipulation/_evalUrl.js";
import "./wrap.js";
import "./css.js";
import "./css/hiddenVisibleSelectors.js";
import "./css/showHide.js";
import "./serialize.js";
import "./ajax.js";
import "./ajax/xhr.js";
import "./ajax/script.js";
import "./ajax/jsonp.js";
import "./ajax/binary.js";
import "./ajax/load.js";
import "./core/parseXML.js";
import "./core/parseHTML.js";
import "./effects.js";
import "./effects/animatedSelector.js";
import "./offset.js";
import "./dimensions.js";
import "./deprecated.js";
import "./exports/amd.js";
import "./exports/global.js";
return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,46 +0,26 @@

define( [
"./core",
"./core/isAttached",
"./var/flat",
"./var/isFunction",
"./var/push",
"./var/rcheckableType",
"./core/access",
"./manipulation/var/rtagName",
"./manipulation/var/rscriptType",
"./manipulation/wrapMap",
"./manipulation/getAll",
"./manipulation/setGlobalEval",
"./manipulation/buildFragment",
"./manipulation/support",
import { jQuery } from "./core.js";
import { isAttached } from "./core/isAttached.js";
import { isIE } from "./var/isIE.js";
import { push } from "./var/push.js";
import { access } from "./core/access.js";
import { rtagName } from "./manipulation/var/rtagName.js";
import { wrapMap } from "./manipulation/wrapMap.js";
import { getAll } from "./manipulation/getAll.js";
import { domManip } from "./manipulation/domManip.js";
import { setGlobalEval } from "./manipulation/setGlobalEval.js";
import { dataPriv } from "./data/var/dataPriv.js";
import { dataUser } from "./data/var/dataUser.js";
import { acceptData } from "./data/var/acceptData.js";
import { nodeName } from "./core/nodeName.js";
"./data/var/dataPriv",
"./data/var/dataUser",
"./data/var/acceptData",
"./core/DOMEval",
"./core/nodeName",
import "./core/init.js";
import "./traversing.js";
import "./event.js";
"./core/init",
"./traversing",
"./selector",
"./event"
], function( jQuery, isAttached, flat, isFunction, push, rcheckableType,
access, rtagName, rscriptType,
wrapMap, getAll, setGlobalEval, buildFragment, support,
dataPriv, dataUser, acceptData, DOMEval, nodeName ) {
"use strict";
var
// Support: IE <=10 - 11, Edge 12 - 13 only
// In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/
rnoInnerhtml = /<script|<style|<link/i,
// Support: IE <=10 - 11+
// In IE using regex groups here causes severe slowdowns.
rnoInnerhtml = /<script|<style|<link/i;
// checked="checked" or checked
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
rcleanScript = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
// Prefer a tbody over its parent table for containing new rows

@@ -57,19 +37,5 @@ function manipulationTarget( elem, content ) {

// Replace/restore the type attribute of script elements for safe DOM manipulation
function disableScript( elem ) {
elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
return elem;
}
function restoreScript( elem ) {
if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
elem.type = elem.type.slice( 5 );
} else {
elem.removeAttribute( "type" );
}
return elem;
}
function cloneCopyEvent( src, dest ) {
var i, l, type, pdataOld, udataOld, udataCur, events;
var type, i, l,
events = dataPriv.get( src, "events" );

@@ -81,13 +47,7 @@ if ( dest.nodeType !== 1 ) {

// 1. Copy private data: events, handlers, etc.
if ( dataPriv.hasData( src ) ) {
pdataOld = dataPriv.get( src );
events = pdataOld.events;
if ( events ) {
dataPriv.remove( dest, "handle events" );
for ( type in events ) {
for ( i = 0, l = events[ type ].length; i < l; i++ ) {
jQuery.event.add( dest, type, events[ type ][ i ] );
}
if ( events ) {
dataPriv.remove( dest, "handle events" );
for ( type in events ) {
for ( i = 0, l = events[ type ].length; i < l; i++ ) {
jQuery.event.add( dest, type, events[ type ][ i ] );
}

@@ -99,121 +59,6 @@ }

if ( dataUser.hasData( src ) ) {
udataOld = dataUser.access( src );
udataCur = jQuery.extend( {}, udataOld );
dataUser.set( dest, udataCur );
dataUser.set( dest, jQuery.extend( {}, dataUser.get( src ) ) );
}
}
// Fix IE bugs, see support tests
function fixInput( src, dest ) {
var nodeName = dest.nodeName.toLowerCase();
// Fails to persist the checked state of a cloned checkbox or radio button.
if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
dest.checked = src.checked;
// Fails to return the selected option to the default selected state when cloning options
} else if ( nodeName === "input" || nodeName === "textarea" ) {
dest.defaultValue = src.defaultValue;
}
}
function domManip( collection, args, callback, ignored ) {
// Flatten any nested arrays
args = flat( args );
var fragment, first, scripts, hasScripts, node, doc,
i = 0,
l = collection.length,
iNoClone = l - 1,
value = args[ 0 ],
valueIsFunction = isFunction( value );
// We can't cloneNode fragments that contain checked, in WebKit
if ( valueIsFunction ||
( l > 1 && typeof value === "string" &&
!support.checkClone && rchecked.test( value ) ) ) {
return collection.each( function( index ) {
var self = collection.eq( index );
if ( valueIsFunction ) {
args[ 0 ] = value.call( this, index, self.html() );
}
domManip( self, args, callback, ignored );
} );
}
if ( l ) {
fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
first = fragment.firstChild;
if ( fragment.childNodes.length === 1 ) {
fragment = first;
}
// Require either new content or an interest in ignored elements to invoke the callback
if ( first || ignored ) {
scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
hasScripts = scripts.length;
// Use the original fragment for the last item
// instead of the first because it can end up
// being emptied incorrectly in certain situations (trac-8070).
for ( ; i < l; i++ ) {
node = fragment;
if ( i !== iNoClone ) {
node = jQuery.clone( node, true, true );
// Keep references to cloned scripts for later restoration
if ( hasScripts ) {
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
jQuery.merge( scripts, getAll( node, "script" ) );
}
}
callback.call( collection[ i ], node, i );
}
if ( hasScripts ) {
doc = scripts[ scripts.length - 1 ].ownerDocument;
// Re-enable scripts
jQuery.map( scripts, restoreScript );
// Evaluate executable scripts on first document insertion
for ( i = 0; i < hasScripts; i++ ) {
node = scripts[ i ];
if ( rscriptType.test( node.type || "" ) &&
!dataPriv.access( node, "globalEval" ) &&
jQuery.contains( doc, node ) ) {
if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) {
// Optional AJAX dependency, but won't run scripts if not present
if ( jQuery._evalUrl && !node.noModule ) {
jQuery._evalUrl( node.src, {
nonce: node.nonce || node.getAttribute( "nonce" )
}, doc );
}
} else {
// Unwrap a CDATA section containing script contents. This shouldn't be
// needed as in XML documents they're already not visible when
// inspecting element contents and in HTML documents they have no
// meaning but we're preserving that logic for backwards compatibility.
// This will be removed completely in 4.0. See gh-4904.
DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
}
}
}
}
}
}
return collection;
}
function remove( elem, selector, keepData ) {

@@ -251,3 +96,3 @@ var node,

// Fix IE cloning issues
if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
if ( isIE && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
!jQuery.isXMLDoc( elem ) ) {

@@ -261,3 +106,9 @@

for ( i = 0, l = srcElements.length; i < l; i++ ) {
fixInput( srcElements[ i ], destElements[ i ] );
// Support: IE <=11+
// IE fails to set the defaultValue to the correct value when
// cloning textareas.
if ( nodeName( destElements[ i ], "textarea" ) ) {
destElements[ i ].defaultValue = srcElements[ i ].defaultValue;
}
}

@@ -482,6 +333,3 @@ }

jQuery( insert[ i ] )[ original ]( elems );
// Support: Android <=4.0 only, PhantomJS 1 only
// .get() because push.apply(_, arraylike) throws on ancient WebKit
push.apply( ret, elems.get() );
push.apply( ret, elems );
}

@@ -493,3 +341,2 @@

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,7 +0,3 @@

define( [
"../ajax"
], function( jQuery ) {
import { jQuery } from "../ajax.js";
"use strict";
jQuery._evalUrl = function( url, options, doc ) {

@@ -17,2 +13,3 @@ return jQuery.ajax( {

global: false,
scriptAttrs: options.crossOrigin ? { "crossOrigin": options.crossOrigin } : undefined,

@@ -30,5 +27,1 @@ // Only evaluate the response if it is successful (gh-4126)

};
return jQuery._evalUrl;
} );

@@ -1,17 +0,15 @@

define( [
"../core",
"../core/toType",
"../core/isAttached",
"./var/rtagName",
"./var/rscriptType",
"./wrapMap",
"./getAll",
"./setGlobalEval"
], function( jQuery, toType, isAttached, rtagName, rscriptType, wrapMap, getAll, setGlobalEval ) {
import { jQuery } from "../core.js";
import { toType } from "../core/toType.js";
import { isAttached } from "../core/isAttached.js";
import { arr } from "../var/arr.js";
import { rtagName } from "./var/rtagName.js";
import { rscriptType } from "./var/rscriptType.js";
import { wrapMap } from "./wrapMap.js";
import { getAll } from "./getAll.js";
import { setGlobalEval } from "./setGlobalEval.js";
import { isArrayLike } from "../core/isArrayLike.js";
"use strict";
var rhtml = /<|&#?\w+;/;
function buildFragment( elems, context, scripts, selection, ignored ) {
export function buildFragment( elems, context, scripts, selection, ignored ) {
var elem, tmp, tag, wrap, attached, j,

@@ -29,6 +27,3 @@ fragment = context.createDocumentFragment(),

// Add nodes directly
if ( toType( elem ) === "object" ) {
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
if ( toType( elem ) === "object" && ( elem.nodeType || isArrayLike( elem ) ) ) {
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );

@@ -46,13 +41,12 @@

tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
wrap = wrapMap[ tag ] || wrapMap._default;
tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
wrap = wrapMap[ tag ] || arr;
// Descend through wrappers to the right content
j = wrap[ 0 ];
while ( j-- ) {
tmp = tmp.lastChild;
// Create wrappers & descend into them.
j = wrap.length;
while ( --j > -1 ) {
tmp = tmp.appendChild( context.createElement( wrap[ j ] ) );
}
// Support: Android <=4.0 only, PhantomJS 1 only
// push.apply(_, arraylike) throws on ancient WebKit
tmp.innerHTML = jQuery.htmlPrefilter( elem );
jQuery.merge( nodes, tmp.childNodes );

@@ -106,4 +100,1 @@

}
return buildFragment;
} );

@@ -1,11 +0,7 @@

define( [
"../core",
"../core/nodeName"
], function( jQuery, nodeName ) {
import { jQuery } from "../core.js";
import { nodeName } from "../core/nodeName.js";
"use strict";
export function getAll( context, tag ) {
function getAll( context, tag ) {
// Support: IE <=9 - 11 only
// Support: IE <=9 - 11+
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)

@@ -30,4 +26,1 @@ var ret;

}
return getAll;
} );

@@ -1,9 +0,5 @@

define( [
"../data/var/dataPriv"
], function( dataPriv ) {
import { dataPriv } from "../data/var/dataPriv.js";
"use strict";
// Mark scripts as having already been evaluated
function setGlobalEval( elems, refElements ) {
export function setGlobalEval( elems, refElements ) {
var i = 0,

@@ -20,4 +16,1 @@ l = elems.length;

}
return setGlobalEval;
} );

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return ( /^$|^module$|\/(?:java|ecma)script/i );
} );
export var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;

@@ -1,8 +0,4 @@

define( function() {
"use strict";
// rtagName captures the name from the first start tag in a string of HTML
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
return ( /<([a-z][^\/\0>\x20\t\r\n\f]*)/i );
} );
// rtagName captures the name from the first start tag in a string of HTML
// https://html.spec.whatwg.org/multipage/syntax.html#tag-open-state
// https://html.spec.whatwg.org/multipage/syntax.html#tag-name-state
export var rtagName = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i;

@@ -1,19 +0,12 @@

define( [
"./support"
], function( support ) {
export var wrapMap = {
"use strict";
// We have to close these tags to support XHTML (trac-13200)
var wrapMap = {
// Table parts need to be wrapped with `<table>` or they're
// stripped to their contents when put in a div.
// XHTML parsers do not magically insert elements in the
// same way that tag soup parsers do. So we cannot shorten
// same way that tag soup parsers do, so we cannot shorten
// this by omitting <tbody> or other required elements.
thead: [ 1, "<table>", "</table>" ],
col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
tr: [ 2, "<table><tbody>", "</tbody></table>" ],
td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
_default: [ 0, "", "" ]
thead: [ "table" ],
col: [ "colgroup", "table" ],
tr: [ "tbody", "table" ],
td: [ "tr", "tbody", "table" ]
};

@@ -23,9 +16,1 @@

wrapMap.th = wrapMap.td;
// Support: IE <=9 only
if ( !support.option ) {
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
}
return wrapMap;
} );

@@ -1,18 +0,8 @@

define( [
"./core",
"./core/access",
"./var/documentElement",
"./var/isFunction",
"./css/var/rnumnonpx",
"./css/curCSS",
"./css/addGetHookIf",
"./css/support",
"./var/isWindow",
"./core/init",
"./css",
"./selector" // contains
], function( jQuery, access, documentElement, isFunction, rnumnonpx,
curCSS, addGetHookIf, support, isWindow ) {
import { jQuery } from "./core.js";
import { access } from "./core/access.js";
import { documentElement } from "./var/documentElement.js";
import { isWindow } from "./var/isWindow.js";
"use strict";
import "./core/init.js";
import "./css.js";

@@ -49,3 +39,3 @@ jQuery.offset = {

if ( isFunction( options ) ) {
if ( typeof options === "function" ) {

@@ -94,3 +84,3 @@ // Use jQuery.extend here to allow modification of coordinates argument (gh-1848)

// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
// Support: IE <=11 only
// Support: IE <=11+
// Running getBoundingClientRect on a

@@ -212,24 +202,2 @@ // disconnected node in IE throws an error

// Support: Safari <=7 - 9.1, Chrome <=37 - 49
// Add the top/left cssHooks using jQuery.fn.position
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
// getComputedStyle returns percent when specified for top/left/bottom/right;
// rather than make the css module depend on the offset module, just check for it here
jQuery.each( [ "top", "left" ], function( _i, prop ) {
jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
function( elem, computed ) {
if ( computed ) {
computed = curCSS( elem, prop );
// If curCSS returns percentage, fallback to offset
return rnumnonpx.test( computed ) ?
jQuery( elem ).position()[ prop ] + "px" :
computed;
}
}
);
} );
return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,9 +0,6 @@

define( [
"./core",
"./data/var/dataPriv",
"./deferred",
"./callbacks"
], function( jQuery, dataPriv ) {
import { jQuery } from "./core.js";
import { dataPriv } from "./data/var/dataPriv.js";
"use strict";
import "./deferred.js";
import "./callbacks.js";

@@ -21,3 +18,3 @@ jQuery.extend( {

if ( !queue || Array.isArray( data ) ) {
queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
queue = dataPriv.set( elem, type, jQuery.makeArray( data ) );
} else {

@@ -69,3 +66,3 @@ queue.push( data );

var key = type + "queueHooks";
return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
return dataPriv.get( elem, key ) || dataPriv.set( elem, key, {
empty: jQuery.Callbacks( "once memory" ).add( function() {

@@ -146,3 +143,2 @@ dataPriv.remove( elem, [ type + "queue", key ] );

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,8 +0,5 @@

define( [
"../core",
"../queue",
"../effects" // Delay is optional because of this dependency
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
import "../queue.js";
import "../effects.js"; // Delay is optional because of this dependency

@@ -21,4 +18,1 @@ // Based off of the plugin by Clint Helfers, with permission.

};
return jQuery.fn.delay;
} );

@@ -1,16 +0,1 @@

define( [
"./core",
"./var/document",
"./var/documentElement",
"./var/hasOwn",
"./var/indexOf",
"./var/slice",
// The following utils are attached directly to the jQuery object.
"./selector/contains",
"./selector/escapeSelector"
], function( jQuery, document, documentElement, hasOwn, indexOf, slice ) {
"use strict";
/*

@@ -26,9 +11,6 @@ * Optional limited selector module for custom builds.

* * State-based selectors (:animated; :visible; :hidden; etc.)
* * :has(selector)
* * :not(complex selector)
* * :has(selector) in browsers without native support
* * :not(complex selector) in IE
* * custom selectors via jQuery extensions
* * Leading combinators (e.g., $collection.find("> *"))
* * Reliable functionality on XML fragments
* * Requiring all parts of a selector to match elements under context
* (e.g., $div.find("div > *") now matches children of $div)
* * Matching against non-elements

@@ -43,91 +25,31 @@ * * Reliable sorting of disconnected nodes

var hasDuplicate, sortInput,
sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
matches = documentElement.matches ||
documentElement.webkitMatchesSelector ||
documentElement.msMatchesSelector;
import { jQuery } from "./core.js";
import { document } from "./var/document.js";
import { whitespace } from "./var/whitespace.js";
import { isIE } from "./var/isIE.js";
import { rleadingCombinator } from "./selector/var/rleadingCombinator.js";
import { rdescend } from "./selector/var/rdescend.js";
import { rsibling } from "./selector/var/rsibling.js";
import { matches } from "./selector/var/matches.js";
import { testContext } from "./selector/testContext.js";
import { filterMatchExpr } from "./selector/filterMatchExpr.js";
import { preFilter } from "./selector/preFilter.js";
import { tokenize } from "./selector/tokenize.js";
import { toSelector } from "./selector/toSelector.js";
function sortOrder( a, b ) {
// The following utils are attached directly to the jQuery object.
import "./selector/escapeSelector.js";
import "./selector/uniqueSort.js";
// Flag for duplicate removal
if ( a === b ) {
hasDuplicate = true;
return 0;
}
var matchExpr = jQuery.extend( {
needsContext: new RegExp( "^" + whitespace + "*[>+~]" )
}, filterMatchExpr );
// Sort on method existence if only one input has compareDocumentPosition
var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
if ( compare ) {
return compare;
}
// Calculate position if both inputs belong to the same document
compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
a.compareDocumentPosition( b ) :
// Otherwise we know they are disconnected
1;
// Disconnected nodes
if ( compare & 1 ) {
// Choose the first element that is related to our preferred document
if ( a === document || a.ownerDocument === document &&
jQuery.contains( document, a ) ) {
return -1;
}
if ( b === document || b.ownerDocument === document &&
jQuery.contains( document, b ) ) {
return 1;
}
// Maintain original order
return sortInput ?
( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
0;
}
return compare & 4 ? -1 : 1;
}
function uniqueSort( results ) {
var elem,
duplicates = [],
j = 0,
i = 0;
hasDuplicate = false;
sortInput = !sortStable && results.slice( 0 );
results.sort( sortOrder );
if ( hasDuplicate ) {
while ( ( elem = results[ i++ ] ) ) {
if ( elem === results[ i ] ) {
j = duplicates.push( i );
}
}
while ( j-- ) {
results.splice( duplicates[ j ], 1 );
}
}
// Clear input after sorting to release objects
// See https://github.com/jquery/sizzle/pull/225
sortInput = null;
return results;
}
jQuery.extend( {
find: function( selector, context, results, seed ) {
var elem, nid, groups, newSelector,
newContext = context && context.ownerDocument,
// This method cannot be shared with the main selector module
// as it does in 4.x because of an edge case quirk of putting
// disconnected elements in the preferred document before other
// elements in the full selector module. This will be a minor
// breaking change in 4.0.0.
uniqueSort: uniqueSort,
unique: uniqueSort,
find: function( selector, context, results, seed ) {
var elem, nodeType,
// nodeType defaults to 9, since context defaults to document
nodeType = context ? context.nodeType : 9,
i = 0;

@@ -144,3 +66,3 @@

// Early return if context is not an element, document or document fragment
if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 && nodeType !== 11 ) {
if ( nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
return [];

@@ -156,3 +78,50 @@ }

} else {
jQuery.merge( results, context.querySelectorAll( selector ) );
newSelector = selector;
newContext = context;
// qSA considers elements outside a scoping root when evaluating child or
// descendant combinators, which is not what we want.
// In such cases, we work around the behavior by prefixing every selector in the
// list with an ID selector referencing the scope context.
// The technique has to be used as well when a leading combinator is used
// as such selectors are not recognized by querySelectorAll.
// Thanks to Andrew Dupont for this technique.
if ( nodeType === 1 &&
( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {
// Expand context for sibling selectors
newContext = rsibling.test( selector ) &&
testContext( context.parentNode ) ||
context;
// Outside of IE, if we're not changing the context we can
// use :scope instead of an ID.
if ( newContext !== context || isIE ) {
// Capture the context ID, setting it first if necessary
if ( ( nid = context.getAttribute( "id" ) ) ) {
nid = jQuery.escapeSelector( nid );
} else {
context.setAttribute( "id", ( nid = jQuery.expando ) );
}
}
// Prefix every selector in the list
groups = tokenize( selector );
i = groups.length;
while ( i-- ) {
groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
toSelector( groups[ i ] );
}
newSelector = groups.join( "," );
}
try {
jQuery.merge( results, newContext.querySelectorAll( newSelector ) );
} finally {
if ( nid === jQuery.expando ) {
context.removeAttribute( "id" );
}
}
}

@@ -163,15 +132,11 @@

expr: {
attrHandle: {},
match: {
bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
"|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
needsContext: /^[\x20\t\r\n\f]*[>+~]/
}
// Can be adjusted by the user
cacheLength: 50,
match: matchExpr,
preFilter: preFilter
}
} );
jQuery.fn.uniqueSort = function() {
return this.pushStack( jQuery.uniqueSort( slice.apply( this ) ) );
};
jQuery.extend( jQuery.find, {

@@ -184,13 +149,5 @@ matches: function( expr, elements ) {

},
attr: function( elem, name ) {
var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
// Don't get fooled by Object.prototype properties (jQuery trac-13807)
value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
fn( elem, name, jQuery.isXMLDoc( elem ) ) :
undefined;
return value !== undefined ? value : elem.getAttribute( name );
}
tokenize: tokenize
} );
} );
export { jQuery, jQuery as $ };

@@ -1,36 +0,32 @@

define( [
"./core",
"./core/nodeName",
"./var/arr",
"./var/document",
"./var/indexOf",
"./var/hasOwn",
"./var/pop",
"./var/push",
"./var/slice",
"./var/sort",
"./var/splice",
"./var/whitespace",
"./var/rtrimCSS",
"./var/support",
import { jQuery } from "./core.js";
import { nodeName } from "./core/nodeName.js";
import { document as preferredDoc } from "./var/document.js";
import { indexOf } from "./var/indexOf.js";
import { pop } from "./var/pop.js";
import { push } from "./var/push.js";
import { whitespace } from "./var/whitespace.js";
import { rbuggyQSA } from "./selector/rbuggyQSA.js";
import { rtrimCSS } from "./var/rtrimCSS.js";
import { isIE } from "./var/isIE.js";
import { identifier } from "./selector/var/identifier.js";
import { rleadingCombinator } from "./selector/var/rleadingCombinator.js";
import { rdescend } from "./selector/var/rdescend.js";
import { rsibling } from "./selector/var/rsibling.js";
import { matches } from "./selector/var/matches.js";
import { createCache } from "./selector/createCache.js";
import { testContext } from "./selector/testContext.js";
import { filterMatchExpr } from "./selector/filterMatchExpr.js";
import { preFilter } from "./selector/preFilter.js";
import { selectorError } from "./selector/selectorError.js";
import { unescapeSelector } from "./selector/unescapeSelector.js";
import { tokenize } from "./selector/tokenize.js";
import { toSelector } from "./selector/toSelector.js";
// The following utils are attached directly to the jQuery object.
"./selector/contains",
"./selector/escapeSelector"
], function( jQuery, nodeName, arr, document, indexOf, hasOwn, pop, push,
slice, sort, splice, whitespace, rtrimCSS, support ) {
// The following utils are attached directly to the jQuery object.
import "./attributes/attr.js"; // jQuery.attr
import "./selector/escapeSelector.js";
import "./selector/uniqueSort.js";
"use strict";
var preferredDoc = document,
pushNative = push;
( function() {
var i,
Expr,
outermostContext,
sortInput,
hasDuplicate,
push = pushNative,

@@ -41,74 +37,18 @@ // Local document vars

documentIsHTML,
rbuggyQSA,
matches,
// Instance-specific data
expando = jQuery.expando,
dirruns = 0,
done = 0,
classCache = createCache(),
tokenCache = createCache(),
compilerCache = createCache(),
nonnativeSelectorCache = createCache(),
sortOrder = function( a, b ) {
if ( a === b ) {
hasDuplicate = true;
}
return 0;
},
booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|" +
"loop|multiple|open|readonly|required|scoped",
// Regular expressions
// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors
attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
// Operator (capture 2)
"*([*^$|!~]?=)" + whitespace +
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
whitespace + "*\\]",
pseudos = ":(" + identifier + ")(?:\\((" +
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
// 1. quoted (capture 3; capture 4 or capture 5)
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
// 2. simple (capture 6)
"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
// 3. anything else (capture 2)
".*" +
")\\)|)",
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
rwhitespace = new RegExp( whitespace + "+", "g" ),
rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" +
whitespace + "*" ),
rdescend = new RegExp( whitespace + "|>" ),
rpseudo = new RegExp( pseudos ),
ridentifier = new RegExp( "^" + identifier + "$" ),
matchExpr = {
ID: new RegExp( "^#(" + identifier + ")" ),
CLASS: new RegExp( "^\\.(" + identifier + ")" ),
TAG: new RegExp( "^(" + identifier + "|[*])" ),
ATTR: new RegExp( "^" + attributes ),
PSEUDO: new RegExp( "^" + pseudos ),
CHILD: new RegExp(
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
bool: new RegExp( "^(?:" + booleans + ")$", "i" ),
matchExpr = jQuery.extend( {

@@ -120,3 +60,3 @@ // For use in libraries implementing .is()

"*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
},
}, filterMatchExpr ),

@@ -129,30 +69,6 @@ rinputs = /^(?:input|select|textarea|button)$/i,

rsibling = /[+~]/,
// CSS escapes
// https://www.w3.org/TR/CSS21/syndata.html#escaped-characters
runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace +
"?|\\\\([^\\r\\n\\f])", "g" ),
funescape = function( escape, nonHex ) {
var high = "0x" + escape.slice( 1 ) - 0x10000;
if ( nonHex ) {
// Strip the backslash prefix from a non-hex escape sequence
return nonHex;
}
// Replace a hexadecimal escape sequence with the encoded Unicode code point
// Support: IE <=11+
// For values outside the Basic Multilingual Plane (BMP), manually construct a
// surrogate pair
return high < 0 ?
String.fromCharCode( high + 0x10000 ) :
String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
},
// Used for iframes; see `setDocument`.
// Support: IE 9 - 11+, Edge 12 - 18+
// Support: IE 9 - 11+
// Removing the function wrapper causes a "Permission Denied"
// error in IE/Edge.
// error in IE.
unloadHandler = function() {

@@ -169,33 +85,2 @@ setDocument();

// Support: IE <=9 only
// Accessing document.activeElement can throw unexpectedly
// https://bugs.jquery.com/ticket/13393
function safeActiveElement() {
try {
return document.activeElement;
} catch ( err ) { }
}
// Optimize for push.apply( _, NodeList )
try {
push.apply(
( arr = slice.call( preferredDoc.childNodes ) ),
preferredDoc.childNodes
);
// Support: Android <=4.0
// Detect silently failing push.apply
// eslint-disable-next-line no-unused-expressions
arr[ preferredDoc.childNodes.length ].nodeType;
} catch ( e ) {
push = {
apply: function( target, els ) {
pushNative.apply( target, slice.call( els ) );
},
call: function( target ) {
pushNative.apply( target, slice.call( arguments, 1 ) );
}
};
}
function find( selector, context, results, seed ) {

@@ -234,21 +119,10 @@ var m, i, elem, nid, match, groups, newSelector,

if ( ( elem = context.getElementById( m ) ) ) {
// Support: IE 9 only
// getElementById can match elements by name instead of ID
if ( elem.id === m ) {
push.call( results, elem );
return results;
}
} else {
return results;
push.call( results, elem );
}
return results;
// Element context
} else {
// Support: IE 9 only
// getElementById can match elements by name instead of ID
if ( newContext && ( elem = newContext.getElementById( m ) ) &&
find.contains( context, elem ) &&
elem.id === m ) {
jQuery.contains( context, elem ) ) {

@@ -290,12 +164,13 @@ push.call( results, elem );

// Expand context for sibling selectors
newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
newContext = rsibling.test( selector ) &&
testContext( context.parentNode ) ||
context;
// We can use :scope instead of the ID hack if the browser
// supports it & if we're not changing the context.
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when
// strict-comparing two documents; shallow comparisons work.
// Outside of IE, if we're not changing the context we can
// use :scope instead of an ID.
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( newContext != context || !support.scope ) {
if ( newContext != context || isIE ) {

@@ -306,3 +181,3 @@ // Capture the context ID, setting it first if necessary

} else {
context.setAttribute( "id", ( nid = expando ) );
context.setAttribute( "id", ( nid = jQuery.expando ) );
}

@@ -329,3 +204,3 @@ }

} finally {
if ( nid === expando ) {
if ( nid === jQuery.expando ) {
context.removeAttribute( "id" );

@@ -343,25 +218,2 @@ }

/**
* Create key-value caches of limited size
* @returns {function(string, object)} Returns the Object data after storing it on itself with
* property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
* deleting the oldest entry
*/
function createCache() {
var keys = [];
function cache( key, value ) {
// Use (key + " ") to avoid collision with native prototype properties
// (see https://github.com/jquery/sizzle/issues/157)
if ( keys.push( key + " " ) > Expr.cacheLength ) {
// Only keep the most recent entries
delete cache[ keys.shift() ];
}
return ( cache[ key + " " ] = value );
}
return cache;
}
/**
* Mark a function for special use by jQuery selector module

@@ -371,3 +223,3 @@ * @param {Function} fn The function to mark

function markFunction( fn ) {
fn[ expando ] = true;
fn[ jQuery.expando ] = true;
return fn;

@@ -377,25 +229,2 @@ }

/**
* Support testing using an element
* @param {Function} fn Passed the created element and returns a boolean result
*/
function assert( fn ) {
var el = document.createElement( "fieldset" );
try {
return !!fn( el );
} catch ( e ) {
return false;
} finally {
// Remove from its parent by default
if ( el.parentNode ) {
el.parentNode.removeChild( el );
}
// release memory in IE
el = null;
}
}
/**
* Returns a function to use in pseudos for input types

@@ -499,14 +328,4 @@ * @param {String} type

/**
* Checks a node for validity as a jQuery selector context
* @param {Element|Object=} context
* @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
*/
function testContext( context ) {
return context && typeof context.getElementsByTagName !== "undefined" && context;
}
/**
* Sets document-related variables once based on the current document
* @param {Element|Object} [node] An element or document object to use to set the document
* @returns {Object} Returns the current document
*/

@@ -518,8 +337,8 @@ function setDocument( node ) {

// Return early if doc is invalid or already selected
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {
return document;
if ( doc == document || doc.nodeType !== 9 ) {
return;
}

@@ -532,290 +351,12 @@

// Support: iOS 7 only, IE 9 - 11+
// Older browsers didn't support unprefixed `matches`.
matches = documentElement.matches ||
documentElement.webkitMatchesSelector ||
documentElement.msMatchesSelector;
// Support: IE 9 - 11+, Edge 12 - 18+
// Accessing iframe documents after unload throws "permission denied" errors
// (see trac-13936).
// Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,
// all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.
if ( documentElement.msMatchesSelector &&
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
preferredDoc != document &&
// Support: IE 9 - 11+
// Accessing iframe documents after unload throws "permission denied" errors (see trac-13936)
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( isIE && preferredDoc != document &&
( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {
// Support: IE 9 - 11+, Edge 12 - 18+
subWindow.addEventListener( "unload", unloadHandler );
}
// Support: IE <10
// Check if getElementById returns elements by name
// The broken getElementById methods don't pick up programmatically-set names,
// so use a roundabout getElementsByName test
support.getById = assert( function( el ) {
documentElement.appendChild( el ).id = jQuery.expando;
return !document.getElementsByName ||
!document.getElementsByName( jQuery.expando ).length;
} );
// Support: IE 9 only
// Check to see if it's possible to do matchesSelector
// on a disconnected node.
support.disconnectedMatch = assert( function( el ) {
return matches.call( el, "*" );
} );
// Support: IE 9 - 11+, Edge 12 - 18+
// IE/Edge don't support the :scope pseudo-class.
support.scope = assert( function() {
return document.querySelectorAll( ":scope" );
} );
// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only
// Make sure the `:has()` argument is parsed unforgivingly.
// We include `*` in the test to detect buggy implementations that are
// _selectively_ forgiving (specifically when the list includes at least
// one valid selector).
// Note that we treat complete lack of support for `:has()` as if it were
// spec-compliant support, which is fine because use of `:has()` in such
// environments will fail in the qSA path and fall back to jQuery traversal
// anyway.
support.cssHas = assert( function() {
try {
document.querySelector( ":has(*,:jqfake)" );
return false;
} catch ( e ) {
return true;
}
} );
// ID filter and find
if ( support.getById ) {
Expr.filter.ID = function( id ) {
var attrId = id.replace( runescape, funescape );
return function( elem ) {
return elem.getAttribute( "id" ) === attrId;
};
};
Expr.find.ID = function( id, context ) {
if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
var elem = context.getElementById( id );
return elem ? [ elem ] : [];
}
};
} else {
Expr.filter.ID = function( id ) {
var attrId = id.replace( runescape, funescape );
return function( elem ) {
var node = typeof elem.getAttributeNode !== "undefined" &&
elem.getAttributeNode( "id" );
return node && node.value === attrId;
};
};
// Support: IE 6 - 7 only
// getElementById is not reliable as a find shortcut
Expr.find.ID = function( id, context ) {
if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
var node, i, elems,
elem = context.getElementById( id );
if ( elem ) {
// Verify the id attribute
node = elem.getAttributeNode( "id" );
if ( node && node.value === id ) {
return [ elem ];
}
// Fall back on getElementsByName
elems = context.getElementsByName( id );
i = 0;
while ( ( elem = elems[ i++ ] ) ) {
node = elem.getAttributeNode( "id" );
if ( node && node.value === id ) {
return [ elem ];
}
}
}
return [];
}
};
}
// Tag
Expr.find.TAG = function( tag, context ) {
if ( typeof context.getElementsByTagName !== "undefined" ) {
return context.getElementsByTagName( tag );
// DocumentFragment nodes don't have gEBTN
} else {
return context.querySelectorAll( tag );
}
};
// Class
Expr.find.CLASS = function( className, context ) {
if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
return context.getElementsByClassName( className );
}
};
/* QSA/matchesSelector
---------------------------------------------------------------------- */
// QSA and matchesSelector support
rbuggyQSA = [];
// Build QSA regex
// Regex strategy adopted from Diego Perini
assert( function( el ) {
var input;
documentElement.appendChild( el ).innerHTML =
"<a id='" + expando + "' href='' disabled='disabled'></a>" +
"<select id='" + expando + "-\r\\' disabled='disabled'>" +
"<option selected=''></option></select>";
// Support: iOS <=7 - 8 only
// Boolean attributes and "value" are not treated correctly in some XML documents
if ( !el.querySelectorAll( "[selected]" ).length ) {
rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
}
// Support: iOS <=7 - 8 only
if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
rbuggyQSA.push( "~=" );
}
// Support: iOS 8 only
// https://bugs.webkit.org/show_bug.cgi?id=136851
// In-page `selector#id sibling-combinator selector` fails
if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
rbuggyQSA.push( ".#.+[+~]" );
}
// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+
// In some of the document kinds, these selectors wouldn't work natively.
// This is probably OK but for backwards compatibility we want to maintain
// handling them through jQuery traversal in jQuery 3.x.
if ( !el.querySelectorAll( ":checked" ).length ) {
rbuggyQSA.push( ":checked" );
}
// Support: Windows 8 Native Apps
// The type and name attributes are restricted during .innerHTML assignment
input = document.createElement( "input" );
input.setAttribute( "type", "hidden" );
el.appendChild( input ).setAttribute( "name", "D" );
// Support: IE 9 - 11+
// IE's :disabled selector does not pick up the children of disabled fieldsets
// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+
// In some of the document kinds, these selectors wouldn't work natively.
// This is probably OK but for backwards compatibility we want to maintain
// handling them through jQuery traversal in jQuery 3.x.
documentElement.appendChild( el ).disabled = true;
if ( el.querySelectorAll( ":disabled" ).length !== 2 ) {
rbuggyQSA.push( ":enabled", ":disabled" );
}
// Support: IE 11+, Edge 15 - 18+
// IE 11/Edge don't find elements on a `[name='']` query in some cases.
// Adding a temporary attribute to the document before the selection works
// around the issue.
// Interestingly, IE 10 & older don't seem to have the issue.
input = document.createElement( "input" );
input.setAttribute( "name", "" );
el.appendChild( input );
if ( !el.querySelectorAll( "[name='']" ).length ) {
rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" +
whitespace + "*(?:''|\"\")" );
}
} );
if ( !support.cssHas ) {
// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+
// Our regular `try-catch` mechanism fails to detect natively-unsupported
// pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`)
// in browsers that parse the `:has()` argument as a forgiving selector list.
// https://drafts.csswg.org/selectors/#relational now requires the argument
// to be parsed unforgivingly, but browsers have not yet fully adjusted.
rbuggyQSA.push( ":has" );
}
rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) );
/* Sorting
---------------------------------------------------------------------- */
// Document order sorting
sortOrder = function( a, b ) {
// Flag for duplicate removal
if ( a === b ) {
hasDuplicate = true;
return 0;
}
// Sort on method existence if only one input has compareDocumentPosition
var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
if ( compare ) {
return compare;
}
// Calculate position if both inputs belong to the same document
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
compare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?
a.compareDocumentPosition( b ) :
// Otherwise we know they are disconnected
1;
// Disconnected nodes
if ( compare & 1 ||
( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {
// Choose the first element that is related to our preferred document
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( a === document || a.ownerDocument == preferredDoc &&
find.contains( preferredDoc, a ) ) {
return -1;
}
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( b === document || b.ownerDocument == preferredDoc &&
find.contains( preferredDoc, b ) ) {
return 1;
}
// Maintain original order
return sortInput ?
( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
0;
}
return compare & 4 ? -1 : 1;
};
return document;
}

@@ -835,12 +376,3 @@

try {
var ret = matches.call( elem, expr );
// IE 9's matchesSelector returns false on disconnected nodes
if ( ret || support.disconnectedMatch ||
// As well, disconnected nodes are said to be in a document
// fragment in IE 9
elem.document && elem.document.nodeType !== 11 ) {
return ret;
}
return matches.call( elem, expr );
} catch ( e ) {

@@ -854,88 +386,4 @@ nonnativeSelectorCache( expr, true );

find.contains = function( context, elem ) {
jQuery.expr = {
// Set document vars if needed
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( ( context.ownerDocument || context ) != document ) {
setDocument( context );
}
return jQuery.contains( context, elem );
};
find.attr = function( elem, name ) {
// Set document vars if needed
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.
// eslint-disable-next-line eqeqeq
if ( ( elem.ownerDocument || elem ) != document ) {
setDocument( elem );
}
var fn = Expr.attrHandle[ name.toLowerCase() ],
// Don't get fooled by Object.prototype properties (see trac-13807)
val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
fn( elem, name, !documentIsHTML ) :
undefined;
if ( val !== undefined ) {
return val;
}
return elem.getAttribute( name );
};
find.error = function( msg ) {
throw new Error( "Syntax error, unrecognized expression: " + msg );
};
/**
* Document sorting and removing duplicates
* @param {ArrayLike} results
*/
jQuery.uniqueSort = function( results ) {
var elem,
duplicates = [],
j = 0,
i = 0;
// Unless we *know* we can detect duplicates, assume their presence
//
// Support: Android <=4.0+
// Testing for detecting duplicates is unpredictable so instead assume we can't
// depend on duplicate detection in all browsers without a stable sort.
hasDuplicate = !support.sortStable;
sortInput = !support.sortStable && slice.call( results, 0 );
sort.call( results, sortOrder );
if ( hasDuplicate ) {
while ( ( elem = results[ i++ ] ) ) {
if ( elem === results[ i ] ) {
j = duplicates.push( i );
}
}
while ( j-- ) {
splice.call( results, duplicates[ j ], 1 );
}
}
// Clear input after sorting to release objects
// See https://github.com/jquery/sizzle/pull/225
sortInput = null;
return results;
};
jQuery.fn.uniqueSort = function() {
return this.pushStack( jQuery.uniqueSort( slice.apply( this ) ) );
};
Expr = jQuery.expr = {
// Can be adjusted by the user

@@ -948,104 +396,52 @@ cacheLength: 50,

attrHandle: {},
find: {},
relative: {
">": { dir: "parentNode", first: true },
" ": { dir: "parentNode" },
"+": { dir: "previousSibling", first: true },
"~": { dir: "previousSibling" }
},
preFilter: {
ATTR: function( match ) {
match[ 1 ] = match[ 1 ].replace( runescape, funescape );
// Move the given value to match[3] whether quoted or unquoted
match[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || "" )
.replace( runescape, funescape );
if ( match[ 2 ] === "~=" ) {
match[ 3 ] = " " + match[ 3 ] + " ";
find: {
ID: function( id, context ) {
if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
var elem = context.getElementById( id );
return elem ? [ elem ] : [];
}
return match.slice( 0, 4 );
},
CHILD: function( match ) {
TAG: function( tag, context ) {
if ( typeof context.getElementsByTagName !== "undefined" ) {
return context.getElementsByTagName( tag );
/* matches from matchExpr["CHILD"]
1 type (only|nth|...)
2 what (child|of-type)
3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
4 xn-component of xn+y argument ([+-]?\d*n|)
5 sign of xn-component
6 x of xn-component
7 sign of y-component
8 y of y-component
*/
match[ 1 ] = match[ 1 ].toLowerCase();
if ( match[ 1 ].slice( 0, 3 ) === "nth" ) {
// nth-* requires argument
if ( !match[ 3 ] ) {
find.error( match[ 0 ] );
}
// numeric x and y parameters for Expr.filter.CHILD
// remember that false/true cast respectively to 0/1
match[ 4 ] = +( match[ 4 ] ?
match[ 5 ] + ( match[ 6 ] || 1 ) :
2 * ( match[ 3 ] === "even" || match[ 3 ] === "odd" )
);
match[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === "odd" );
// other types prohibit arguments
} else if ( match[ 3 ] ) {
find.error( match[ 0 ] );
// DocumentFragment nodes don't have gEBTN
} else {
return context.querySelectorAll( tag );
}
return match;
},
PSEUDO: function( match ) {
var excess,
unquoted = !match[ 6 ] && match[ 2 ];
if ( matchExpr.CHILD.test( match[ 0 ] ) ) {
return null;
CLASS: function( className, context ) {
if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
return context.getElementsByClassName( className );
}
}
},
// Accept quoted arguments as-is
if ( match[ 3 ] ) {
match[ 2 ] = match[ 4 ] || match[ 5 ] || "";
relative: {
">": { dir: "parentNode", first: true },
" ": { dir: "parentNode" },
"+": { dir: "previousSibling", first: true },
"~": { dir: "previousSibling" }
},
// Strip excess characters from unquoted arguments
} else if ( unquoted && rpseudo.test( unquoted ) &&
preFilter: preFilter,
// Get excess from tokenize (recursively)
( excess = tokenize( unquoted, true ) ) &&
// advance to the next closing parenthesis
( excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length ) ) {
// excess is a negative index
match[ 0 ] = match[ 0 ].slice( 0, excess );
match[ 2 ] = unquoted.slice( 0, excess );
}
// Return only captures needed by the pseudo filter method (type and argument)
return match.slice( 0, 3 );
}
},
filter: {
ID: function( id ) {
var attrId = unescapeSelector( id );
return function( elem ) {
return elem.getAttribute( "id" ) === attrId;
};
},
TAG: function( nodeNameSelector ) {
var expectedNodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
var expectedNodeName = unescapeSelector( nodeNameSelector ).toLowerCase();
return nodeNameSelector === "*" ?
function() {
return true;
} :
function( elem ) {

@@ -1074,3 +470,3 @@ return nodeName( elem, expectedNodeName );

return function( elem ) {
var result = find.attr( elem, name );
var result = jQuery.attr( elem, name );

@@ -1160,3 +556,4 @@ if ( result == null ) {

// Seek `elem` from a previously-cached index
outerCache = parent[ expando ] || ( parent[ expando ] = {} );
outerCache = parent[ jQuery.expando ] ||
( parent[ jQuery.expando ] = {} );
cache = outerCache[ type ] || [];

@@ -1183,3 +580,4 @@ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];

if ( useCache ) {
outerCache = elem[ expando ] || ( elem[ expando ] = {} );
outerCache = elem[ jQuery.expando ] ||
( elem[ jQuery.expando ] = {} );
cache = outerCache[ type ] || [];

@@ -1205,4 +603,4 @@ nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];

if ( useCache ) {
outerCache = node[ expando ] ||
( node[ expando ] = {} );
outerCache = node[ jQuery.expando ] ||
( node[ jQuery.expando ] = {} );
outerCache[ type ] = [ dirruns, diff ];

@@ -1232,5 +630,5 @@ }

// Remember that setFilters inherits from pseudos
var args,
fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
find.error( "unsupported pseudo: " + pseudo );
var fn = jQuery.expr.pseudos[ pseudo ] ||
jQuery.expr.setFilters[ pseudo.toLowerCase() ] ||
selectorError( "unsupported pseudo: " + pseudo );

@@ -1240,24 +638,6 @@ // The user may use createPseudo to indicate that

// just as jQuery does
if ( fn[ expando ] ) {
if ( fn[ jQuery.expando ] ) {
return fn( argument );
}
// But maintain support for old signatures
if ( fn.length > 1 ) {
args = [ pseudo, pseudo, "", argument ];
return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
markFunction( function( seed, matches ) {
var idx,
matched = fn( seed, argument ),
i = matched.length;
while ( i-- ) {
idx = indexOf.call( seed, matched[ i ] );
seed[ idx ] = !( matches[ idx ] = matched[ i ] );
}
} ) :
function( elem ) {
return fn( elem, 0, args );
};
}
return fn;

@@ -1279,3 +659,3 @@ }

return matcher[ expando ] ?
return matcher[ jQuery.expando ] ?
markFunction( function( seed, matches, _context, xml ) {

@@ -1311,3 +691,3 @@ var elem,

contains: markFunction( function( text ) {
text = text.replace( runescape, funescape );
text = unescapeSelector( text );
return function( elem ) {

@@ -1329,5 +709,5 @@ return ( elem.textContent || jQuery.text( elem ) ).indexOf( text ) > -1;

if ( !ridentifier.test( lang || "" ) ) {
find.error( "unsupported lang: " + lang );
selectorError( "unsupported lang: " + lang );
}
lang = lang.replace( runescape, funescape ).toLowerCase();
lang = unescapeSelector( lang ).toLowerCase();
return function( elem ) {

@@ -1359,3 +739,3 @@ var elemLang;

focus: function( elem ) {
return elem === safeActiveElement() &&
return elem === document.activeElement &&
document.hasFocus() &&

@@ -1383,3 +763,3 @@ !!( elem.type || elem.href || ~elem.tabIndex );

// selected when in an optgroup.
if ( elem.parentNode ) {
if ( isIE && elem.parentNode ) {
// eslint-disable-next-line no-unused-expressions

@@ -1408,3 +788,3 @@ elem.parentNode.selectedIndex;

parent: function( elem ) {
return !Expr.pseudos.empty( elem );
return !jQuery.expr.pseudos.empty( elem );
},

@@ -1427,10 +807,3 @@

text: function( elem ) {
var attr;
return nodeName( elem, "input" ) && elem.type === "text" &&
// Support: IE <10 only
// New HTML5 attribute values (e.g., "search") appear
// with elem.type === "text"
( ( attr = elem.getAttribute( "type" ) ) == null ||
attr.toLowerCase() === "text" );
return nodeName( elem, "input" ) && elem.type === "text";
},

@@ -1494,10 +867,10 @@

Expr.pseudos.nth = Expr.pseudos.eq;
jQuery.expr.pseudos.nth = jQuery.expr.pseudos.eq;
// Add button/input type pseudos
for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
Expr.pseudos[ i ] = createInputPseudo( i );
jQuery.expr.pseudos[ i ] = createInputPseudo( i );
}
for ( i in { submit: true, reset: true } ) {
Expr.pseudos[ i ] = createButtonPseudo( i );
jQuery.expr.pseudos[ i ] = createButtonPseudo( i );
}

@@ -1507,87 +880,5 @@

function setFilters() {}
setFilters.prototype = Expr.filters = Expr.pseudos;
Expr.setFilters = new setFilters();
setFilters.prototype = jQuery.expr.filters = jQuery.expr.pseudos;
jQuery.expr.setFilters = new setFilters();
function tokenize( selector, parseOnly ) {
var matched, match, tokens, type,
soFar, groups, preFilters,
cached = tokenCache[ selector + " " ];
if ( cached ) {
return parseOnly ? 0 : cached.slice( 0 );
}
soFar = selector;
groups = [];
preFilters = Expr.preFilter;
while ( soFar ) {
// Comma and first run
if ( !matched || ( match = rcomma.exec( soFar ) ) ) {
if ( match ) {
// Don't consume trailing commas as valid
soFar = soFar.slice( match[ 0 ].length ) || soFar;
}
groups.push( ( tokens = [] ) );
}
matched = false;
// Combinators
if ( ( match = rleadingCombinator.exec( soFar ) ) ) {
matched = match.shift();
tokens.push( {
value: matched,
// Cast descendant combinators to space
type: match[ 0 ].replace( rtrimCSS, " " )
} );
soFar = soFar.slice( matched.length );
}
// Filters
for ( type in Expr.filter ) {
if ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||
( match = preFilters[ type ]( match ) ) ) ) {
matched = match.shift();
tokens.push( {
value: matched,
type: type,
matches: match
} );
soFar = soFar.slice( matched.length );
}
}
if ( !matched ) {
break;
}
}
// Return the length of the invalid excess
// if we're just parsing
// Otherwise, throw an error or return tokens
if ( parseOnly ) {
return soFar.length;
}
return soFar ?
find.error( selector ) :
// Cache the tokens
tokenCache( selector, groups ).slice( 0 );
}
function toSelector( tokens ) {
var i = 0,
len = tokens.length,
selector = "";
for ( ; i < len; i++ ) {
selector += tokens[ i ].value;
}
return selector;
}
function addCombinator( matcher, combinator, base ) {

@@ -1629,3 +920,3 @@ var dir = combinator.dir,

if ( elem.nodeType === 1 || checkNonElements ) {
outerCache = elem[ expando ] || ( elem[ expando ] = {} );
outerCache = elem[ jQuery.expando ] || ( elem[ jQuery.expando ] = {} );

@@ -1701,6 +992,6 @@ if ( skip && nodeName( elem, skip ) ) {

function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
if ( postFilter && !postFilter[ expando ] ) {
if ( postFilter && !postFilter[ jQuery.expando ] ) {
postFilter = setMatcher( postFilter );
}
if ( postFinder && !postFinder[ expando ] ) {
if ( postFinder && !postFinder[ jQuery.expando ] ) {
postFinder = setMatcher( postFinder, postSelector );

@@ -1803,4 +1094,4 @@ }

len = tokens.length,
leadingRelative = Expr.relative[ tokens[ 0 ].type ],
implicitRelative = leadingRelative || Expr.relative[ " " ],
leadingRelative = jQuery.expr.relative[ tokens[ 0 ].type ],
implicitRelative = leadingRelative || jQuery.expr.relative[ " " ],
i = leadingRelative ? 1 : 0,

@@ -1817,4 +1108,4 @@

// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.

@@ -1834,9 +1125,9 @@ // eslint-disable-next-line eqeqeq

for ( ; i < len; i++ ) {
if ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {
if ( ( matcher = jQuery.expr.relative[ tokens[ i ].type ] ) ) {
matchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];
} else {
matcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
matcher = jQuery.expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );
// Return special upon seeing a positional matcher
if ( matcher[ expando ] ) {
if ( matcher[ jQuery.expando ] ) {

@@ -1846,3 +1137,3 @@ // Find the next relative operator (if any) for proper handling

for ( ; j < len; j++ ) {
if ( Expr.relative[ tokens[ j ].type ] ) {
if ( jQuery.expr.relative[ tokens[ j ].type ] ) {
break;

@@ -1884,12 +1175,11 @@ }

// We must always have either seed elements or outermost context
elems = seed || byElement && Expr.find.TAG( "*", outermost ),
elems = seed || byElement && jQuery.expr.find.TAG( "*", outermost ),
// Use integer dirruns iff this is the outermost matcher
dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),
len = elems.length;
dirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 );
if ( outermost ) {
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.

@@ -1901,11 +1191,8 @@ // eslint-disable-next-line eqeqeq

// Add elements passing elementMatchers directly to results
// Support: iOS <=7 - 9 only
// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching
// elements by id. (see trac-14142)
for ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {
for ( ; ( elem = elems[ i ] ) != null; i++ ) {
if ( byElement && elem ) {
j = 0;
// Support: IE 11+, Edge 17 - 18+
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
// Support: IE 11+
// IE sometimes throws a "Permission denied" error when strict-comparing
// two documents; shallow comparisons work.

@@ -2015,3 +1302,3 @@ // eslint-disable-next-line eqeqeq

cached = matcherFromTokens( match[ i ] );
if ( cached[ expando ] ) {
if ( cached[ jQuery.expando ] ) {
setMatchers.push( cached );

@@ -2056,6 +1343,7 @@ } else {

if ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === "ID" &&
context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {
context.nodeType === 9 && documentIsHTML &&
jQuery.expr.relative[ tokens[ 1 ].type ] ) {
context = ( Expr.find.ID(
token.matches[ 0 ].replace( runescape, funescape ),
context = ( jQuery.expr.find.ID(
unescapeSelector( token.matches[ 0 ] ),
context

@@ -2080,10 +1368,10 @@ ) || [] )[ 0 ];

// Abort if we hit a combinator
if ( Expr.relative[ ( type = token.type ) ] ) {
if ( jQuery.expr.relative[ ( type = token.type ) ] ) {
break;
}
if ( ( find = Expr.find[ type ] ) ) {
if ( ( find = jQuery.expr.find[ type ] ) ) {
// Search, expanding context for leading sibling combinators
if ( ( seed = find(
token.matches[ 0 ].replace( runescape, funescape ),
unescapeSelector( token.matches[ 0 ] ),
rsibling.test( tokens[ 0 ].type ) &&

@@ -2119,25 +1407,7 @@ testContext( context.parentNode ) || context

// One-time assignments
// Support: Android <=4.0 - 4.1+
// Sort stability
support.sortStable = expando.split( "" ).sort( sortOrder ).join( "" ) === expando;
// Initialize against the default document
setDocument();
// Support: Android <=4.0 - 4.1+
// Detached nodes confoundingly follow *each other*
support.sortDetached = assert( function( el ) {
// Should return 1, but returns 4 (following)
return el.compareDocumentPosition( document.createElement( "fieldset" ) ) & 1;
} );
jQuery.find = find;
// Deprecated
jQuery.expr[ ":" ] = jQuery.expr.pseudos;
jQuery.unique = jQuery.uniqueSort;
// These have always been private, but they used to be documented as part of

@@ -2150,13 +1420,2 @@ // Sizzle so let's maintain them for now for backwards compatibility purposes.

find.escape = jQuery.escapeSelector;
find.getText = jQuery.text;
find.isXML = jQuery.isXMLDoc;
find.selectors = jQuery.expr;
find.support = jQuery.support;
find.uniqueSort = jQuery.uniqueSort;
/* eslint-enable */
} )();
} );
export { jQuery, jQuery as $ };

@@ -1,7 +0,3 @@

define( [
"../core"
], function( jQuery ) {
import { jQuery } from "../core.js";
"use strict";
// CSS string/identifier serialization

@@ -30,3 +26,1 @@ // https://drafts.csswg.org/cssom/#common-serializing-idioms

};
} );

@@ -1,12 +0,8 @@

define( [
"./core",
"./core/toType",
"./var/rcheckableType",
"./var/isFunction",
"./core/init",
"./traversing", // filter
"./attributes/prop"
], function( jQuery, toType, rcheckableType, isFunction ) {
import { jQuery } from "./core.js";
import { toType } from "./core/toType.js";
import { rcheckableType } from "./var/rcheckableType.js";
"use strict";
import "./core/init.js";
import "./traversing.js"; // filter
import "./attributes/prop.js";

@@ -65,3 +61,3 @@ var

// If value is a function, invoke it and use its return value
var value = isFunction( valueOrFunction ) ?
var value = typeof valueOrFunction === "function" ?
valueOrFunction() :

@@ -134,3 +130,2 @@ valueOrFunction;

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,17 +0,13 @@

define( [
"./core",
"./var/getProto",
"./var/indexOf",
"./traversing/var/dir",
"./traversing/var/siblings",
"./traversing/var/rneedsContext",
"./core/nodeName",
import { jQuery } from "./core.js";
import { getProto } from "./var/getProto.js";
import { indexOf } from "./var/indexOf.js";
import { dir } from "./traversing/var/dir.js";
import { siblings } from "./traversing/var/siblings.js";
import { rneedsContext } from "./traversing/var/rneedsContext.js";
import { nodeName } from "./core/nodeName.js";
"./core/init",
"./traversing/findFilter",
"./selector"
], function( jQuery, getProto, indexOf, dir, siblings, rneedsContext, nodeName ) {
import "./core/init.js";
import "./traversing/findFilter.js";
import "./selector.js";
"use strict";
var rparentsprev = /^(?:parents|prev(?:Until|All))/,

@@ -159,3 +155,3 @@

// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
// Support: IE 9 - 11+
// Treat the template element as a regular one in browsers that

@@ -198,3 +194,2 @@ // don't support it.

return jQuery;
} );
export { jQuery, jQuery as $ };

@@ -1,14 +0,10 @@

define( [
"../core",
"../var/indexOf",
"../var/isFunction",
"./var/rneedsContext",
"../selector"
], function( jQuery, indexOf, isFunction, rneedsContext ) {
import { jQuery } from "../core.js";
import { indexOf } from "../var/indexOf.js";
import { rneedsContext } from "./var/rneedsContext.js";
"use strict";
import "../selector.js";
// Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) {
if ( isFunction( qualifier ) ) {
if ( typeof qualifier === "function" ) {
return jQuery.grep( elements, function( elem, i ) {

@@ -96,3 +92,1 @@ return !!qualifier.call( elem, i, elem ) !== not;

} );
} );

@@ -1,8 +0,4 @@

define( [
"../../core"
], function( jQuery ) {
import { jQuery } from "../../core.js";
"use strict";
return function( elem, dir, until ) {
export function dir( elem, dir, until ) {
var matched = [],

@@ -20,4 +16,2 @@ truncate = until !== undefined;

return matched;
};
} );
}

@@ -1,8 +0,5 @@

define( [
"../../core",
"../../selector"
], function( jQuery ) {
"use strict";
import { jQuery } from "../../core.js";
return jQuery.expr.match.needsContext;
} );
import "../../selector.js";
export var rneedsContext = jQuery.expr.match.needsContext;

@@ -1,6 +0,2 @@

define( function() {
"use strict";
return function( n, elem ) {
export function siblings( n, elem ) {
var matched = [];

@@ -15,4 +11,2 @@

return matched;
};
} );
}

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return [];
} );
export var arr = [];

@@ -1,6 +0,2 @@

define( function() {
"use strict";
// [[Class]] -> type pairs
return {};
} );
// [[Class]] -> type pairs
export var class2type = {};

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return window.document;
} );
export var document = window.document;

@@ -1,7 +0,3 @@

define( [
"./document"
], function( document ) {
"use strict";
import { document } from "./document.js";
return document.documentElement;
} );
export var documentElement = document.documentElement;

@@ -1,11 +0,6 @@

define( [
"./arr"
], function( arr ) {
import { arr } from "./arr.js";
"use strict";
// Support: IE 9 - 11+, Edge 18+, Android Browser 4.0 - 4.3 only, iOS 7 - 11 only, Safari 11 only,
// Firefox <= 61 only
// Provide fallback for browsers without Array#flat.
return arr.flat ? function( array ) {
// Support: IE 11+
// IE doesn't have Array#flat; provide a fallback.
export var flat = arr.flat ? function( array ) {
return arr.flat.call( array );

@@ -15,3 +10,1 @@ } : function( array ) {

};
} );

@@ -1,7 +0,3 @@

define( [
"./hasOwn"
], function( hasOwn ) {
"use strict";
import { hasOwn } from "./hasOwn.js";
return hasOwn.toString;
} );
export var fnToString = hasOwn.toString;

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return Object.getPrototypeOf;
} );
export var getProto = Object.getPrototypeOf;

@@ -1,7 +0,3 @@

define( [
"./class2type"
], function( class2type ) {
"use strict";
import { class2type } from "./class2type.js";
return class2type.hasOwnProperty;
} );
export var hasOwn = class2type.hasOwnProperty;

@@ -1,7 +0,3 @@

define( [
"./arr"
], function( arr ) {
"use strict";
import { arr } from "./arr.js";
return arr.indexOf;
} );
export var indexOf = arr.indexOf;

@@ -1,8 +0,3 @@

define( function() {
"use strict";
return function isWindow( obj ) {
return obj != null && obj === obj.window;
};
} );
export function isWindow( obj ) {
return obj != null && obj === obj.window;
}

@@ -1,7 +0,3 @@

define( [
"./fnToString"
], function( fnToString ) {
"use strict";
import { fnToString } from "./fnToString.js";
return fnToString.call( Object );
} );
export var ObjectFunctionString = fnToString.call( Object );

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
} );
export var pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;

@@ -1,9 +0,3 @@

define( [
"./arr"
], function( arr ) {
import { arr } from "./arr.js";
"use strict";
return arr.pop;
} );
export var pop = arr.pop;

@@ -1,7 +0,3 @@

define( [
"./arr"
], function( arr ) {
"use strict";
import { arr } from "./arr.js";
return arr.push;
} );
export var push = arr.push;

@@ -1,5 +0,1 @@

define( function() {
"use strict";
return ( /^(?:checkbox|radio)$/i );
} );
export var rcheckableType = /^(?:checkbox|radio)$/i;

@@ -1,9 +0,3 @@

define( [
"../var/pnum"
], function( pnum ) {
import { pnum } from "../var/pnum.js";
"use strict";
return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
} );
export var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );

@@ -1,8 +0,4 @@

define( function() {
"use strict";
// Only count HTML whitespace
// Other whitespace should count in values
// https://infra.spec.whatwg.org/#ascii-whitespace
return ( /[^\x20\t\r\n\f]+/g );
} );
// Only count HTML whitespace
// Other whitespace should count in values
// https://infra.spec.whatwg.org/#ascii-whitespace
export var rnothtmlwhite = /[^\x20\t\r\n\f]+/g;

@@ -1,12 +0,6 @@

define( [
"./whitespace"
], function( whitespace ) {
import { whitespace } from "./whitespace.js";
"use strict";
return new RegExp(
export var rtrimCSS = new RegExp(
"^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$",
"g"
);
} );

@@ -1,7 +0,3 @@

define( [
"./arr"
], function( arr ) {
"use strict";
import { arr } from "./arr.js";
return arr.slice;
} );
export var slice = arr.slice;

@@ -1,9 +0,3 @@

define( [
"./arr"
], function( arr ) {
import { arr } from "./arr.js";
"use strict";
return arr.sort;
} );
export var sort = arr.sort;

@@ -1,9 +0,3 @@

define( [
"./arr"
], function( arr ) {
import { arr } from "./arr.js";
"use strict";
return arr.splice;
} );
export var splice = arr.splice;

@@ -1,6 +0,2 @@

define( function() {
"use strict";
// All support tests are defined in their respective modules.
return {};
} );
// All support tests are defined in their respective modules.
export var support = {};

@@ -1,7 +0,3 @@

define( [
"./class2type"
], function( class2type ) {
"use strict";
import { class2type } from "./class2type.js";
return class2type.toString;
} );
export var toString = class2type.toString;

@@ -1,8 +0,2 @@

define( function() {
"use strict";
// https://www.w3.org/TR/css3-selectors/#whitespace
return "[\\x20\\t\\r\\n\\f]";
} );
export var whitespace = "[\\x20\\t\\r\\n\\f]";

@@ -1,10 +0,6 @@

define( [
"./core",
"./var/isFunction",
"./core/init",
"./manipulation", // clone
"./traversing" // parent, contents
], function( jQuery, isFunction ) {
import { jQuery } from "./core.js";
"use strict";
import "./core/init.js";
import "./manipulation.js"; // clone
import "./traversing.js"; // parent, contents

@@ -16,3 +12,3 @@ jQuery.fn.extend( {

if ( this[ 0 ] ) {
if ( isFunction( html ) ) {
if ( typeof html === "function" ) {
html = html.call( this[ 0 ] );

@@ -43,3 +39,3 @@ }

wrapInner: function( html ) {
if ( isFunction( html ) ) {
if ( typeof html === "function" ) {
return this.each( function( i ) {

@@ -64,3 +60,3 @@ jQuery( this ).wrapInner( html.call( this, i ) );

wrap: function( html ) {
var htmlIsFunction = isFunction( html );
var htmlIsFunction = typeof html === "function";

@@ -80,3 +76,2 @@ return this.each( function( i ) {

return jQuery;
} );
export { jQuery, jQuery as $ };

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc