Added files for Juan
This commit is contained in:
27
ExACTRegressionScripts/node_modules/loglevel/.editorconfig
generated
vendored
Normal file
27
ExACTRegressionScripts/node_modules/loglevel/.editorconfig
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
# EditorConfig defines and maintains consistent coding styles between different
|
||||
# editors and IDEs: http://EditorConfig.org/
|
||||
# Top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# All files
|
||||
[*.*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = true
|
||||
max_line_length = 80
|
||||
|
||||
[*.md]
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
|
||||
[*.{yaml,yml}]
|
||||
indent_size = 2
|
||||
|
||||
[vendor/grunt-template-jasmine-requirejs/**/*]
|
||||
indent_size = 2
|
||||
1
ExACTRegressionScripts/node_modules/loglevel/.github/FUNDING.yml
generated
vendored
Normal file
1
ExACTRegressionScripts/node_modules/loglevel/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
tidelift: "npm/loglevel"
|
||||
108
ExACTRegressionScripts/node_modules/loglevel/.github/workflows/ci.yml
generated
vendored
Normal file
108
ExACTRegressionScripts/node_modules/loglevel/.github/workflows/ci.yml
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
name: Continuous Integration
|
||||
|
||||
on:
|
||||
pull_request: {}
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
# Allow manual runs if needed.
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Code
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: 'package.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: JSHint
|
||||
run: npm run lint
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: 'package.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run dist-build
|
||||
|
||||
node-tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node_version: [8, 10, 12, 14, 16, 18, 20]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
cache: npm
|
||||
cache-dependency-path: 'package.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Unit Tests
|
||||
run: npm run test-node
|
||||
|
||||
browser-tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: 'package.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Unit Tests
|
||||
run: npm run test-browser
|
||||
|
||||
types:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: 'package.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Typescript Tests
|
||||
run: npm run test-types
|
||||
14
ExACTRegressionScripts/node_modules/loglevel/.jshintrc
generated
vendored
Normal file
14
ExACTRegressionScripts/node_modules/loglevel/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"curly": false,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"node": true
|
||||
}
|
||||
65
ExACTRegressionScripts/node_modules/loglevel/CONTRIBUTING.md
generated
vendored
Normal file
65
ExACTRegressionScripts/node_modules/loglevel/CONTRIBUTING.md
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
Filing tickets against loglevel
|
||||
===============================
|
||||
|
||||
If you'd like to file a bug or a feature request for loglevel, the best option is to [open an issue on Github](https://github.com/pimterry/loglevel/issues/new).
|
||||
|
||||
If you're filing a feature request, please remember:
|
||||
|
||||
* Feature requests significantly expanding the scope of loglevel outside the description in [the readme](https://github.com/pimterry/loglevel/blob/master/README.md) will probably be rejected.
|
||||
* Features that can't be meaningfully implemented in a cross-environment compatible manner won't be implemented.
|
||||
* Please check the previously opened issues to see if somebody else has suggested it first.
|
||||
* Consider submitting a pull request to add the feature instead, if you're confident it fits within the above
|
||||
|
||||
If you're filing a bug, please remember:
|
||||
|
||||
* To provide detailed steps to reproduce the behaviour
|
||||
* If possible, provide a Jasmine test which reproduces the behaviour
|
||||
* Please specify the exact details of the environment in which it fails: OS + Environment (i.e. Browser or Node) + version
|
||||
* Consider submitting a pull request to fix the bug instead
|
||||
|
||||
Helping develop loglevel
|
||||
================================
|
||||
|
||||
If you'd like to help develop loglevel further, please submit a pull request! I'm very keen to improve loglevel further, and good pull requests will be enthusiastically merged.
|
||||
|
||||
Before submitting a pull request to fix a bug or add a new feature, please check the lists above to ensure it'll be accepted. Browser compatibility is particularly important here; if you add a feature or fix a bug which breaks things on other browsers it will not be merged, no matter how awesome it may be.
|
||||
|
||||
To be more specific, before submitting your pull request please ensure:
|
||||
|
||||
* You haven't broken the existing test suite in any obvious browsers (at least check latest IE/FF/Chrome)
|
||||
* You've added relevant tests for the bug you're fixing/the new feature you're adding/etc, which pass in all the relevant browsers
|
||||
* JSHint is happy with your new code
|
||||
* You've updated the API docs (in README.md) to detail any changes you've made to the public interface
|
||||
* Your change is backward compatible (or you've explicitly said if it's not; this isn't great, but will be considered)
|
||||
* You haven't changed any files in dist/ (these are auto-generated, and should only be changed on release)
|
||||
|
||||
Project structure
|
||||
-----------------
|
||||
|
||||
The core project code is all in lib/loglevel.js, and this should be the only file you need to touch for functional changes themselves.
|
||||
|
||||
The released code is in dist/*.js, and should not be touched by anything except releases
|
||||
|
||||
The test suite is entirely in test/*.js:
|
||||
|
||||
* Every file ending in '-test.js' is a unit test, is written in RequireJS, and should pass in any environment
|
||||
* global-integration.js and node-integration.js are quick integration smoke tests for node and for browser global usage
|
||||
* test-helpers.js contains some test utilities
|
||||
* manual-test.html is a test page which includes the current loglevel build, so you can manually check it works in a given browser
|
||||
|
||||
How to make your change and submit it
|
||||
-------------------------------------
|
||||
|
||||
1. Fork loglevel
|
||||
2. Clone your fork locally
|
||||
3. Create a branch from master for your change
|
||||
4. Write some tests in /test for your change, as relevant
|
||||
5. Make your code changes in /lib/loglevel.js
|
||||
6. Check your code all passes (run `grunt`) - if you have any issues try running `grunt jasmine:requirejs:src:build` (or a different test build instead of 'requirejs': see the jasmine config in Gruntfile.js) and debugging the generated _SpecRunner.html in a browser
|
||||
7. Commit your changes
|
||||
8. Open a pull request back to master in loglevel
|
||||
|
||||
Reporting security issues
|
||||
-------------------------
|
||||
|
||||
Tidelift acts as the security contact for loglevel. Issues can be reported to security@tidelift.com, see https://tidelift.com/security for more details.
|
||||
164
ExACTRegressionScripts/node_modules/loglevel/Gruntfile.js
generated
vendored
Normal file
164
ExACTRegressionScripts/node_modules/loglevel/Gruntfile.js
generated
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
'use strict';
|
||||
|
||||
var Jasmine = require('jasmine');
|
||||
|
||||
module.exports = function (grunt) {
|
||||
var jasmineRequireJsOptions = {
|
||||
specs: 'test/*-test.js',
|
||||
helpers: 'test/*-helper.js',
|
||||
};
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
// Metadata.
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %>' +
|
||||
' - <%= pkg.homepage %>' +
|
||||
' - (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>' +
|
||||
' - licensed <%= pkg.license %> */\n',
|
||||
// Task configuration.
|
||||
concat: {
|
||||
options: {
|
||||
banner: '<%= banner %>',
|
||||
stripBanners: true
|
||||
},
|
||||
dist: {
|
||||
src: ['lib/<%= pkg.name %>.js'],
|
||||
dest: 'dist/<%= pkg.name %>.js'
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '<%= banner %>'
|
||||
},
|
||||
dist: {
|
||||
src: '<%= concat.dist.dest %>',
|
||||
dest: 'dist/<%= pkg.name %>.min.js'
|
||||
}
|
||||
},
|
||||
jasmine: {
|
||||
requirejs: {
|
||||
src: [],
|
||||
options: {
|
||||
specs: jasmineRequireJsOptions.specs,
|
||||
helpers: jasmineRequireJsOptions.helpers,
|
||||
template: require('./vendor/grunt-template-jasmine-requirejs')
|
||||
}
|
||||
},
|
||||
global: {
|
||||
src: 'lib/**/*.js',
|
||||
options: {
|
||||
specs: 'test/global-integration.js',
|
||||
}
|
||||
},
|
||||
context: {
|
||||
src: 'test/test-context-using-apply.generated.js',
|
||||
options: {
|
||||
specs: 'test/global-integration-with-new-context.js',
|
||||
}
|
||||
}
|
||||
},
|
||||
jasmine_node: {
|
||||
options: {
|
||||
specs: ['test/node-integration.js']
|
||||
}
|
||||
},
|
||||
open: {
|
||||
jasmine: {
|
||||
path: 'http://127.0.0.1:8000/_SpecRunner.html'
|
||||
}
|
||||
},
|
||||
connect: {
|
||||
test: {
|
||||
port: 8000,
|
||||
keepalive: true
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
gruntfile: {
|
||||
src: 'Gruntfile.js'
|
||||
},
|
||||
lib: {
|
||||
options: {
|
||||
jshintrc: 'lib/.jshintrc'
|
||||
},
|
||||
src: ['lib/**/*.js']
|
||||
},
|
||||
test: {
|
||||
options: {
|
||||
jshintrc: 'test/.jshintrc'
|
||||
},
|
||||
src: ['test/*.js', '!test/*.generated.js']
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
gruntfile: {
|
||||
files: '<%= jshint.gruntfile.src %>',
|
||||
tasks: ['jshint:gruntfile']
|
||||
},
|
||||
lib: {
|
||||
files: '<%= jshint.lib.src %>',
|
||||
tasks: ['jshint:lib', 'test']
|
||||
},
|
||||
test: {
|
||||
files: '<%= jshint.test.src %>',
|
||||
tasks: ['jshint:test', 'test']
|
||||
}
|
||||
},
|
||||
preprocess: {
|
||||
"test-context-using-apply": {
|
||||
src: 'test/test-context-using-apply.js',
|
||||
dest: 'test/test-context-using-apply.generated.js'
|
||||
}
|
||||
},
|
||||
clean:{
|
||||
test:['test/test-context-using-apply.generated.js']
|
||||
}
|
||||
});
|
||||
|
||||
// These plugins provide necessary tasks.
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-jasmine');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||
grunt.loadNpmTasks('grunt-open');
|
||||
grunt.loadNpmTasks('grunt-preprocess');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
|
||||
// Run Jasmine with Node.js tests (as opposed to browser tests).
|
||||
//
|
||||
// NOTE: This is designed for Jasmine 2.4, which matches the version used
|
||||
// in `grunt-contrib-jasmine`. If that package is updated, this should also
|
||||
// be updated to match.
|
||||
grunt.registerTask('jasmine_node', 'Run Jasmine in Node.js', function() {
|
||||
var done = this.async();
|
||||
|
||||
var jasmine = new Jasmine({ projectBaseDir: __dirname });
|
||||
jasmine.onComplete(function(success) {
|
||||
done(success);
|
||||
});
|
||||
|
||||
jasmine.execute(this.options().specs);
|
||||
});
|
||||
|
||||
// Build a distributable release
|
||||
grunt.registerTask('dist', ['test', 'dist-build']);
|
||||
grunt.registerTask('dist-build', ['concat', 'uglify']);
|
||||
|
||||
// Check everything is good
|
||||
grunt.registerTask('test', ['jshint', 'test-browser', 'test-node']);
|
||||
grunt.registerTask('test-browser', ['jasmine:global', 'preprocess', 'jasmine:context', 'clean:test', 'jasmine:requirejs']);
|
||||
grunt.registerTask('test-node', ['jasmine_node']);
|
||||
|
||||
// Test with a live server and an actual browser
|
||||
grunt.registerTask('integration-test', ['jasmine:requirejs:src:build', 'open:jasmine', 'connect:test:keepalive']);
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', 'test');
|
||||
};
|
||||
22
ExACTRegressionScripts/node_modules/loglevel/LICENSE-MIT
generated
vendored
Normal file
22
ExACTRegressionScripts/node_modules/loglevel/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2013 Tim Perry
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
406
ExACTRegressionScripts/node_modules/loglevel/README.md
generated
vendored
Normal file
406
ExACTRegressionScripts/node_modules/loglevel/README.md
generated
vendored
Normal file
@@ -0,0 +1,406 @@
|
||||
|
||||
# loglevel [![NPM version][npm-image]][npm-url] [](https://www.npmjs.com/package/loglevel) [](https://github.com/pimterry/loglevel/actions/workflows/ci.yml)
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/loglevel.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/loglevel
|
||||
|
||||
> _Don't debug with logs alone - check out [HTTP Toolkit](https://httptoolkit.tech/javascript): beautiful, powerful & open-source tools for building, testing & debugging HTTP(S)_
|
||||
|
||||
Minimal lightweight simple logging for JavaScript (browsers, node.js or elsewhere). loglevel extends console.log() & friends with level-based logging and filtering, with none of console's downsides.
|
||||
|
||||
Test it out live in your browser console at https://pimterry.github.io/loglevel/demo/index.html
|
||||
|
||||
Loglevel is a barebones reliable everyday logging library. It does not do fancy things, it does not let you reconfigure appenders or add complex log filtering rules or boil tea (more's the pity), but it does have the all core functionality that you actually use:
|
||||
|
||||
## Features
|
||||
|
||||
### Simple
|
||||
|
||||
* Log things at a given level (trace/debug/info/warn/error) to the console object (as seen in all modern browsers & node.js)
|
||||
* Filter logging by level (all the above or 'silent'), so you can disable all but error logging in production, and then run log.setLevel("trace") in your console to turn it all back on for a furious debugging session
|
||||
* Single file, no dependencies, weighs in at 1.1KB minified and gzipped
|
||||
|
||||
### Effective
|
||||
|
||||
* Log methods gracefully fall back to simpler console logging methods if more specific ones aren't available: so calls to log.debug() go to console.debug() if possible, or console.log() if not
|
||||
* Logging calls still succeed even if there's no console object at all, so your site doesn't break when people visit with old browsers that don't support the console object (here's looking at you IE) and similar
|
||||
* This then comes together giving a consistent reliable API that works in every JavaScript environment with a console available, and never breaks anything anywhere else
|
||||
|
||||
### Convenient
|
||||
|
||||
* Log output keeps line numbers: most JS logging frameworks call console.log methods through wrapper functions, clobbering your stacktrace and making the extra info many browsers provide useless. We'll have none of that thanks.
|
||||
* It works with all the standard JavaScript loading systems out of the box (CommonJS, AMD, or just as a global)
|
||||
* Logging is filtered to "warn" level by default, to keep your live site clean in normal usage (or you can trivially re-enable everything with an initial log.enableAll() call)
|
||||
* Magically handles situations where console logging is not initially available (IE8/9), and automatically enables logging as soon as it does become available (when developer console is opened)
|
||||
* TypeScript type definitions included, so no need for extra `@types` packages
|
||||
* Extensible, to add other log redirection, filtering, or formatting functionality, while keeping all the above (except you will clobber your stacktrace, see Plugins below)
|
||||
|
||||
## Downloading loglevel
|
||||
|
||||
If you're using NPM, you can just run `npm install loglevel`.
|
||||
|
||||
Alternatively, loglevel is also available via [Bower](https://github.com/bower/bower) (`bower install loglevel`), as a [Webjar](http://www.webjars.org/), or an [Atmosphere package](https://atmospherejs.com/spacejamio/loglevel) (for Meteor)
|
||||
|
||||
Alternatively if you just want to grab the file yourself, you can download either the current stable [production version][min] or the [development version][max] directly, or reference it remotely on unpkg at [`https://unpkg.com/loglevel/dist/loglevel.min.js`][cdn] (this will redirect to a latest version, use the resulting redirected URL if you want to pin that version).
|
||||
|
||||
Finally, if you want to tweak loglevel to your own needs or you immediately need the cutting-edge version, clone this repo and see [Developing & Contributing](#developing--contributing) below for build instructions.
|
||||
|
||||
[min]: https://raw.github.com/pimterry/loglevel/master/dist/loglevel.min.js
|
||||
[max]: https://raw.github.com/pimterry/loglevel/master/dist/loglevel.js
|
||||
[cdn]: https://unpkg.com/loglevel/dist/loglevel.min.js
|
||||
|
||||
## Setting it up
|
||||
|
||||
loglevel supports AMD (e.g. RequireJS), CommonJS (e.g. Node.js) and direct usage (e.g. loading globally with a <script> tag) loading methods. You should be able to do nearly anything, and then skip to the next section anyway and have it work. Just in case though, here's some specific examples that definitely do the right thing:
|
||||
|
||||
### CommonsJS (e.g. Node)
|
||||
|
||||
```javascript
|
||||
var log = require('loglevel');
|
||||
log.warn("unreasonably simple");
|
||||
```
|
||||
|
||||
### AMD (e.g. RequireJS)
|
||||
|
||||
```javascript
|
||||
define(['loglevel'], function(log) {
|
||||
log.warn("dangerously convenient");
|
||||
});
|
||||
```
|
||||
|
||||
### Directly in your web page
|
||||
|
||||
```html
|
||||
<script src="loglevel.min.js"></script>
|
||||
<script>
|
||||
log.warn("too easy");
|
||||
</script>
|
||||
```
|
||||
|
||||
### As an ES6 module
|
||||
|
||||
loglevel is written as a UMD module, with a single object exported. Unfortunately ES6 module loaders & transpilers don't all handle this the same way. Some will treat the object as the default export, while others use it as the root exported object. In addition, loglevel includes `default` property on the root object, designed to help handle this differences. Nonetheless, there's two possible syntaxes that might work for you:
|
||||
|
||||
For most tools, using the default import is the most convenient and flexible option:
|
||||
|
||||
```javascript
|
||||
import log from 'loglevel';
|
||||
log.warn("module-tastic");
|
||||
```
|
||||
|
||||
For some tools though, it might better to wildcard import the whole object:
|
||||
|
||||
```javascript
|
||||
import * as log from 'loglevel';
|
||||
log.warn("module-tastic");
|
||||
```
|
||||
|
||||
There's no major difference, unless you're using TypeScript & building a loglevel plugin (in that case, see <https://github.com/pimterry/loglevel/issues/149>). In general though, just use whichever suits your environment, and everything should work out fine.
|
||||
|
||||
### With noConflict()
|
||||
|
||||
If you're using another JavaScript library that exposes a 'log' global, you can run into conflicts with loglevel. Similarly to jQuery, you can solve this by putting loglevel into no-conflict mode immediately after it is loaded onto the page. This resets to 'log' global to its value before loglevel was loaded (typically `undefined`), and returns the loglevel object, which you can then bind to another name yourself.
|
||||
|
||||
For example:
|
||||
|
||||
```html
|
||||
<script src="loglevel.min.js"></script>
|
||||
<script>
|
||||
var logging = log.noConflict();
|
||||
|
||||
logging.warn("still pretty easy");
|
||||
</script>
|
||||
```
|
||||
|
||||
### TypeScript
|
||||
|
||||
loglevel includes its own type definitions, assuming you're using a modern module environment (e.g. Node.JS, webpack, etc), you should be able to use the ES6 syntax above, and everything will work immediately. If not, file a bug!
|
||||
|
||||
If you really want to use LogLevel as a global however, but from TypeScript, you'll need to declare it as such first. To do that:
|
||||
|
||||
* Create a `loglevel.d.ts` file
|
||||
* Ensure that file is included in your build (e.g. add it to `include` in your tsconfig, pass it on the command line, or use `///<reference path="./loglevel.d.ts" />`)
|
||||
* In that file, add:
|
||||
|
||||
```typescript
|
||||
import * as log from 'loglevel';
|
||||
export as namespace log;
|
||||
export = log;
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
### Methods
|
||||
|
||||
The loglevel API is extremely minimal. All methods are available on the root loglevel object, which it's suggested you name 'log' (this is the default if you import it in globally, and is what's set up in the above examples). The API consists of:
|
||||
|
||||
#### Logging Methods
|
||||
|
||||
5 actual logging methods, ordered and available as:
|
||||
|
||||
* `log.trace(msg)`
|
||||
* `log.debug(msg)`
|
||||
* `log.info(msg)`
|
||||
* `log.warn(msg)`
|
||||
* `log.error(msg)`
|
||||
|
||||
`log.log(msg)` is also available, as an alias for `log.debug(msg)`, to improve compatibility with `console`, and make migration easier.
|
||||
|
||||
Exact output formatting of these will depend on the console available in the current context of your application. For example, many environments will include a full stack trace with all trace() calls, and icons or similar to highlight other calls.
|
||||
|
||||
These methods should never fail in any environment, even if no console object is currently available, and should always fall back to an available log method even if the specific method called (e.g. warn) isn't available.
|
||||
|
||||
Be aware that all this means that these method won't necessarily always produce exactly the output you expect in every environment; loglevel only guarantees that these methods will never explode on you, and that it will call the most relevant method it can find, with your argument. For example, `log.trace(msg)` in Firefox before version 64 prints the stacktrace by itself, and doesn't include your message (see [#84](https://github.com/pimterry/loglevel/issues/84)).
|
||||
|
||||
#### `log.setLevel(level, [persist])`
|
||||
|
||||
This disables all logging below the given level, so that after a `log.setLevel("warn")` call `log.warn("something")` or `log.error("something")` will output messages, but `log.info("something")` will not.
|
||||
|
||||
This can take either a log level name or `'silent'` (which disables everything) in one of a few forms:
|
||||
|
||||
* As a log level from the internal levels list, e.g. `log.levels.SILENT` ← _for type safety_
|
||||
* As a string, like `'error'` (case-insensitive) ← _for a reasonable practical balance_
|
||||
* As a numeric index from `0` (trace) to `5` (silent) ← _deliciously terse, and more easily programmable (...although, why?)_
|
||||
|
||||
Where possible, the log level will be persisted. LocalStorage will be used if available, falling back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass `false` as the optional 'persist' second argument, persistence will be skipped.
|
||||
|
||||
If `log.setLevel()` is called when a console object is not available (in IE 8 or 9 before the developer tools have been opened, for example) logging will remain silent until the console becomes available, and then begin logging at the requested level.
|
||||
|
||||
#### `log.setDefaultLevel(level)`
|
||||
|
||||
This sets the current log level only if one has not been persisted and can’t be loaded. This is useful when initializing modules or scripts; if a developer or user has previously called `setLevel()`, this won’t alter their settings. For example, your application might set the log level to `error` in a production environment, but when debugging an issue, you might call `setLevel("trace")` on the console to see all the logs. If that `error` setting was set using `setDefaultLevel()`, it will still stay as `trace` on subsequent page loads and refreshes instead of resetting to `error`.
|
||||
|
||||
The `level` argument takes is the same values that you might pass to `setLevel()`. Levels set using `setDefaultLevel()` never persist to subsequent page loads.
|
||||
|
||||
#### `log.resetLevel()`
|
||||
|
||||
This resets the current log level to the logger's default level (if no explicit default was set, then it resets it to the root logger's level, or to `WARN`) and clears the persisted level if one was previously persisted.
|
||||
|
||||
#### `log.enableAll()` and `log.disableAll()`
|
||||
|
||||
These enable or disable all log messages, and are equivalent to log.setLevel("trace") and log.setLevel("silent") respectively.
|
||||
|
||||
#### `log.getLevel()`
|
||||
|
||||
Returns the current logging level, as a number from 0 (trace) to 5 (silent)
|
||||
|
||||
It's very unlikely you'll need to use this for normal application logging; it's provided partly to help plugin development, and partly to let you optimize logging code as below, where debug data is only generated if the level is set such that it'll actually be logged. This probably doesn't affect you, unless you've run profiling on your code and you have hard numbers telling you that your log data generation is a real performance problem.
|
||||
|
||||
```javascript
|
||||
if (log.getLevel() <= log.levels.DEBUG) {
|
||||
var logData = runExpensiveDataGeneration();
|
||||
log.debug(logData);
|
||||
}
|
||||
```
|
||||
|
||||
This notably isn't the right solution to avoid the cost of string concatenation in your logging. Firstly, it's very unlikely that string concatenation in your logging is really an important performance problem. Even if you do genuinely have hard metrics showing that it is though, the better solution that wrapping your log statements in this is to use multiple arguments, as below. The underlying console API will automatically concatenate these for you if logging is enabled, and if it isn't then all log methods are no-ops, and no concatenation will be done at all.
|
||||
|
||||
```javascript
|
||||
// Prints 'My concatenated log message'
|
||||
log.debug("My ", "concatenated ", "log message");
|
||||
```
|
||||
|
||||
#### `log.getLogger(loggerName)`
|
||||
|
||||
This gets you a new logger object that works exactly like the root `log` object, but can have its level and logging methods set independently. All loggers must have a name (which is a non-empty string, or a [Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)). Calling `getLogger()` multiple times with the same name will return an identical logger object.
|
||||
|
||||
In large applications, it can be incredibly useful to turn logging on and off for particular modules as you are working with them. Using the `getLogger()` method lets you create a separate logger for each part of your application with its own logging level.
|
||||
|
||||
Likewise, for small, independent modules, using a named logger instead of the default root logger allows developers using your module to selectively turn on deep, trace-level logging when trying to debug problems, while logging only errors or silencing logging altogether under normal circumstances.
|
||||
|
||||
Example usage _(using CommonJS modules, but you could do the same with any module system):_
|
||||
|
||||
```javascript
|
||||
// In module-one.js:
|
||||
var log = require("loglevel").getLogger("module-one");
|
||||
function doSomethingAmazing() {
|
||||
log.debug("Amazing message from module one.");
|
||||
}
|
||||
|
||||
// In module-two.js:
|
||||
var log = require("loglevel").getLogger("module-two");
|
||||
function doSomethingSpecial() {
|
||||
log.debug("Special message from module two.");
|
||||
}
|
||||
|
||||
// In your main application module:
|
||||
var log = require("loglevel");
|
||||
var moduleOne = require("module-one");
|
||||
var moduleTwo = require("module-two");
|
||||
log.getLogger("module-two").setLevel("TRACE");
|
||||
|
||||
moduleOne.doSomethingAmazing();
|
||||
moduleTwo.doSomethingSpecial();
|
||||
// logs "Special message from module two."
|
||||
// (but nothing from module one.)
|
||||
```
|
||||
|
||||
Loggers returned by `getLogger()` support all the same properties and methods as the default root logger, excepting `noConflict()` and the `getLogger()` method itself.
|
||||
|
||||
Like the root logger, other loggers can have their logging level saved. If a logger’s level has not been saved, it will inherit the root logger’s level when it is first created. If the root logger’s level changes later, the new level will not affect other loggers that have already been created. Loggers with Symbol names (rather than string names) will be always considered as unique instances, and will never have their logging level saved or restored.
|
||||
|
||||
Likewise, loggers will inherit the root logger’s `methodFactory`. After creation, each logger can have its `methodFactory` independently set. See the _plugins_ section below for more about `methodFactory`.
|
||||
|
||||
#### `log.getLoggers()`
|
||||
|
||||
This will return you the dictionary of all loggers created with `getLogger`, keyed off of their names.
|
||||
|
||||
#### `log.rebuild()`
|
||||
|
||||
Ensure the various logging methods (`log.info()`, `log.warn()`, etc.) behave as expected given the currently set logging level and `methodFactory`. It will also rebuild all child loggers of the logger this was called on.
|
||||
|
||||
This is mostly useful for plugin development. When you call `log.setLevel()` or `log.setDefaultLevel()`, the logger is rebuilt automatically. However, if you change the logger’s `methodFactory`, you should use this to rebuild all the logging methods with your new factory.
|
||||
|
||||
It is also useful if you change the level of the root logger and want it to affect child loggers that you’ve already created (and have not called `someChildLogger.setLevel()` or `someChildLogger.setDefaultLevel()` on). For example:
|
||||
|
||||
```js
|
||||
var childLogger1 = log.getLogger("child1");
|
||||
childLogger1.getLevel(); // WARN (inherited from the root logger)
|
||||
|
||||
var childLogger2 = log.getLogger("child2");
|
||||
childLogger2.setDefaultLevel("TRACE");
|
||||
childLogger2.getLevel(); // TRACE
|
||||
|
||||
log.setLevel("ERROR");
|
||||
|
||||
// At this point, the child loggers have not changed:
|
||||
childLogger1.getLevel(); // WARN
|
||||
childLogger2.getLevel(); // TRACE
|
||||
|
||||
// To update them:
|
||||
log.rebuild();
|
||||
childLogger1.getLevel(); // ERROR (still inheriting from root logger)
|
||||
childLogger2.getLevel(); // TRACE (no longer inheriting because `.setDefaultLevel() was called`)
|
||||
```
|
||||
|
||||
## Plugins
|
||||
|
||||
### Existing plugins
|
||||
|
||||
[loglevel-plugin-prefix](https://github.com/kutuluk/loglevel-plugin-prefix) - plugin for loglevel message prefixing.
|
||||
|
||||
[loglevel-plugin-remote](https://github.com/kutuluk/loglevel-plugin-remote) - plugin for sending loglevel messages to a remote log server.
|
||||
|
||||
ServerSend - <https://github.com/artemyarulin/loglevel-serverSend> - Forward your log messages to a remote server.
|
||||
|
||||
DEBUG - <https://github.com/vectrlabs/loglevel-debug> - Control logging from a DEBUG environmental variable (similar to the classic [Debug](https://github.com/visionmedia/debug) module)
|
||||
|
||||
### Writing plugins
|
||||
|
||||
Loglevel provides a simple reliable minimal base for console logging that works everywhere. This means it doesn't include lots of fancy functionality that might be useful in some cases, such as log formatting and redirection (e.g. also sending log messages to a server over AJAX)
|
||||
|
||||
Including that would increase the size and complexity of the library, but more importantly would remove stacktrace information. Currently log methods are either disabled, or enabled with directly bound versions of the console.log methods (where possible). This means your browser shows the log message as coming from your code at the call to `log.info("message!")` not from within loglevel, since it really calls the bound console method directly, without indirection. The indirection required to dynamically format, further filter, or redirect log messages would stop this.
|
||||
|
||||
There's clearly enough enthusiasm for this even at that cost though that loglevel now includes a plugin API. To use it, redefine `log.methodFactory(methodName, logLevel, loggerName)` with a function of your own. This will be called for each enabled method each time the level is set (including initially), and should return a function to be used for the given log method `methodName`, at the given _configured_ (not actual) level `logLevel`, for a logger with the given name `loggerName`. If you'd like to retain all the reliability and features of loglevel, it's recommended that this wraps the initially provided value of `log.methodFactory`.
|
||||
|
||||
For example, a plugin to prefix all log messages with "Newsflash: " would look like:
|
||||
|
||||
```javascript
|
||||
var originalFactory = log.methodFactory;
|
||||
log.methodFactory = function (methodName, logLevel, loggerName) {
|
||||
var rawMethod = originalFactory(methodName, logLevel, loggerName);
|
||||
|
||||
return function (message) {
|
||||
rawMethod("Newsflash: " + message);
|
||||
};
|
||||
};
|
||||
log.rebuild(); // Be sure to call the rebuild method in order to apply plugin.
|
||||
```
|
||||
|
||||
*(The above supports only a single string `log.warn("...")` argument for clarity, but it's easy to extend to a [fuller variadic version](http://jsbin.com/xehoye/edit?html,console).)*
|
||||
|
||||
If you develop and release a plugin, please get in contact! I'd be happy to reference it here for future users. Some consistency is helpful; naming your plugin 'loglevel-PLUGINNAME' (e.g. loglevel-newsflash) is preferred, as is giving it the 'loglevel-plugin' keyword in your package.json
|
||||
|
||||
## Developing & Contributing
|
||||
|
||||
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
|
||||
|
||||
Builds can be run with npm: run `npm run dist` to build a distributable version of the project (in /dist), or `npm test` to just run the tests and linting. During development you can run `npm run watch` and it will monitor source files, and rerun the tests and linting as appropriate when they're changed.
|
||||
|
||||
_Also, please don't manually edit files in the "dist" subdirectory as they are generated via Grunt. You'll find source code in the "lib" subdirectory!_
|
||||
|
||||
#### Release process
|
||||
|
||||
To do a release of loglevel:
|
||||
|
||||
* Update the version number in package.json and bower.json
|
||||
* Run `npm run dist` to build a distributable version in dist/
|
||||
* Update the release history in this file (below)
|
||||
* Commit the built code, tagging it with the version number and a brief message about the release
|
||||
* Push to Github
|
||||
* Run `npm publish .` to publish to NPM
|
||||
|
||||
## Release History
|
||||
|
||||
v0.1.0 - First working release with apparent compatibility with everything tested
|
||||
|
||||
v0.2.0 - Updated release with various tweaks and polish and real proper documentation attached
|
||||
|
||||
v0.3.0 - Some bugfixes (#12, #14), cookie-based log level persistence, doc tweaks, support for Bower and JamJS
|
||||
|
||||
v0.3.1 - Fixed incorrect text in release build banner, various other minor tweaks
|
||||
|
||||
v0.4.0 - Use LocalStorage for level persistence if available, compatibility improvements for IE, improved error messages, multi-environment tests
|
||||
|
||||
v0.5.0 - Fix for Modernizr+IE8 issues, improved setLevel error handling, support for auto-activation of desired logging when console eventually turns up in IE8
|
||||
|
||||
v0.6.0 - Handle logging in Safari private browsing mode (#33), fix TRACE level persistence bug (#35), plus various minor tweaks
|
||||
|
||||
v1.0.0 - Official stable release! Fixed a bug with localStorage in Android webviews, improved CommonJS detection, and added noConflict().
|
||||
|
||||
v1.1.0 - Added support for including loglevel with preprocessing and .apply() (#50), and fixed QUnit dep version which made tests potentially unstable.
|
||||
|
||||
v1.2.0 - New plugin API! Plus various bits of refactoring and tidy up, nicely simplifying things and trimming the size down.
|
||||
|
||||
v1.3.0 - Make persistence optional in setLevel, plus lots of documentation updates and other small tweaks
|
||||
|
||||
v1.3.1 - With the new optional persistence, stop unnecessarily persisting the initially set default level (warn)
|
||||
|
||||
v1.4.0 - Add getLevel(), setDefaultLevel() and getLogger() functionality for more fine-grained log level control
|
||||
|
||||
v1.4.1 - Reorder UMD (#92) to improve bundling tool compatibility
|
||||
|
||||
v1.5.0 - Fix log.debug (#111) after V8 changes deprecating console.debug, check for `window` upfront (#104), and add `.log` alias for `.debug` (#64)
|
||||
|
||||
v1.5.1 - Fix bug (#112) in level-persistence cookie fallback, which failed if it wasn't the first cookie present
|
||||
|
||||
v1.6.0 - Add a name property to loggers and add log.getLoggers() (#114), and recommend unpkg as CDN instead of CDNJS.
|
||||
|
||||
v1.6.1 - Various small documentation & test updates
|
||||
|
||||
v1.6.2 - Include TypeScript type definitions in the package itself
|
||||
|
||||
v1.6.3 - Avoid TypeScript type conflicts with other global `log` types (e.g. `core-js`)
|
||||
|
||||
v1.6.4 - Ensure package.json's 'main' is a fully qualified path, to fix webpack issues
|
||||
|
||||
v1.6.5 - Ensure the provided message is included when calling trace() in IE11
|
||||
|
||||
v1.6.6 - Fix bugs in v1.6.5, which caused issues in node.js & IE < 9
|
||||
|
||||
v1.6.7 - Fix a bug in environments with `window` defined but no `window.navigator`
|
||||
|
||||
v1.6.8 - Update TypeScript type definitions to include `log.log()`.
|
||||
|
||||
v1.7.0 - Add support for Symbol-named loggers, and a `.default` property to help with ES6 module usage.
|
||||
|
||||
v1.7.1 - Update TypeScript types to support Symbol-named loggers.
|
||||
|
||||
v1.8.0 - Add `resetLevel()` method to clear persisted levels & reset to defaults
|
||||
|
||||
v1.8.1 - Fix incorrect type definitions for MethodFactory
|
||||
|
||||
v1.9.0 - Added `rebuild()` method, overhaul dev & test setup, and fix some bugs (notably around cookies) en route
|
||||
|
||||
v1.9.1 - Fix a bug introduced in 1.9.0 that broke `setLevel()` in some ESM-focused runtime environments
|
||||
|
||||
## `loglevel` for enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of `loglevel` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-loglevel?utm_source=npm-loglevel&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
|
||||
## License
|
||||
|
||||
Copyright (c) 2013 Tim Perry
|
||||
Licensed under the MIT license.
|
||||
1
ExACTRegressionScripts/node_modules/loglevel/_config.yml
generated
vendored
Normal file
1
ExACTRegressionScripts/node_modules/loglevel/_config.yml
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
theme: jekyll-theme-minimal
|
||||
11
ExACTRegressionScripts/node_modules/loglevel/bower.json
generated
vendored
Normal file
11
ExACTRegressionScripts/node_modules/loglevel/bower.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "loglevel",
|
||||
"version": "1.9.1",
|
||||
"main": "dist/loglevel.min.js",
|
||||
"dependencies": {},
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"components"
|
||||
]
|
||||
}
|
||||
139
ExACTRegressionScripts/node_modules/loglevel/demo/index.html
generated
vendored
Normal file
139
ExACTRegressionScripts/node_modules/loglevel/demo/index.html
generated
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-GB">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>loglevel Demo</title>
|
||||
<meta
|
||||
name="description"
|
||||
content="A demo to show the features of loglevel."
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,600,0,0"
|
||||
/>
|
||||
</head>
|
||||
<main>
|
||||
<h1>loglevel Demo</h1>
|
||||
<form id="LogForm" class="code-container">
|
||||
<code>
|
||||
log.
|
||||
<select name="logLevel" aria-label="Log type" required>
|
||||
<option value="trace">trace</option>
|
||||
<option value="debug">debug</option>
|
||||
<option value="info">info</option>
|
||||
<option value="warn">warn</option>
|
||||
<option value="error">error</option>
|
||||
</select>
|
||||
("
|
||||
<input
|
||||
name="debugMessage"
|
||||
type="text"
|
||||
placeholder="Log text"
|
||||
aria-label="Log text"
|
||||
required
|
||||
/>
|
||||
")
|
||||
</code>
|
||||
<button type="submit">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Choose your level of logging and enter some text to output it to the console using logLevel.
|
||||
<a href="https://github.com/pimterry/loglevel#logging-methods">Documentation for logging methods.</a>
|
||||
</details>
|
||||
</form>
|
||||
<form id="SetLevel" class="code-container">
|
||||
<code>
|
||||
log.setLevel("
|
||||
<select name="level" aria-label="Log type" required>
|
||||
<option value="0">trace</option>
|
||||
<option value="1">debug</option>
|
||||
<option value="2">info</option>
|
||||
<option value="3">warn</option>
|
||||
<option value="4">error</option>
|
||||
<option value="5">silent</option>
|
||||
</select>
|
||||
",
|
||||
<select name="persist" aria-label="Log type" required>
|
||||
<option value="true">true</option>
|
||||
<option value="false">false</option>
|
||||
</select>
|
||||
)
|
||||
</code>
|
||||
<button type="submit">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Disable all logging below the given level.
|
||||
<a href="https://github.com/pimterry/loglevel#logsetlevellevel-persist">Documentation for setLevel().</a>
|
||||
</details>
|
||||
</form>
|
||||
<form id="SetDefaultLevel" class="code-container">
|
||||
<code>
|
||||
log.setDefaultLevel("
|
||||
<select name="level" aria-label="Log type" required>
|
||||
<option value="0">trace</option>
|
||||
<option value="1">debug</option>
|
||||
<option value="2">info</option>
|
||||
<option value="3">warn</option>
|
||||
<option value="4">error</option>
|
||||
<option value="5">silent</option>
|
||||
</select>
|
||||
")
|
||||
</code>
|
||||
<button type="submit">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Select a level and run to set the default logging level.
|
||||
<a href="https://github.com/pimterry/loglevel#logsetdefaultlevellevel">Documentation for setDefaultLevel().</a>
|
||||
</details>
|
||||
</form>
|
||||
<div class="code-container">
|
||||
<code>
|
||||
log.resetLevel()
|
||||
</code>
|
||||
<button id="ResetLevelButton" type="button">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Reset the current logging level to default.
|
||||
<a href="https://github.com/pimterry/loglevel#logresetlevel">Documentation for resetLevel().</a>
|
||||
</details>
|
||||
</div>
|
||||
<div class="code-container">
|
||||
<code>
|
||||
log.enableAll()
|
||||
</code>
|
||||
<button id="EnableAllButton" type="button">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Enables all logs - equivalent of <code>setLevel('trace')</code>.
|
||||
<a href="https://github.com/pimterry/loglevel##logenableall-and-logdisableall">Documentation for enableAll().</a>
|
||||
</details>
|
||||
</div>
|
||||
<div class="code-container">
|
||||
<code>
|
||||
log.disableAll()
|
||||
</code>
|
||||
<button id="DisableAllButton" type="button">Run</button>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Disables all logs - equivalent of <code>setLevel('silent')</code>.
|
||||
<a href="https://github.com/pimterry/loglevel##logenableall-and-logdisableall">Documentation for disableAll().</a>
|
||||
</details>
|
||||
</div>
|
||||
<h2>Log State</h2>
|
||||
<div id="LogState" class="code-container">
|
||||
<label>
|
||||
Current log level
|
||||
<input name="currentLevel" aria-label="Current log level" readonly>
|
||||
</label>
|
||||
<details>
|
||||
<summary>More information...</summary>
|
||||
Uses the <code>getLevel()</code> method to display the current log level.
|
||||
<a href="https://github.com/pimterry/loglevel##logenableall-and-logdisableall">Documentation for disableAll().</a>
|
||||
</details>
|
||||
</div>
|
||||
</main>
|
||||
<script src="../dist/loglevel.js"></script>
|
||||
<script src="script.js"></script>
|
||||
</html>
|
||||
86
ExACTRegressionScripts/node_modules/loglevel/demo/script.js
generated
vendored
Normal file
86
ExACTRegressionScripts/node_modules/loglevel/demo/script.js
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
log.setDefaultLevel(log.levels.TRACE, false);
|
||||
|
||||
const demoForm = document.getElementById('LogForm');
|
||||
const setLevelForm = document.getElementById('SetLevel');
|
||||
const setDefaultLevelForm = document.getElementById('SetDefaultLevel');
|
||||
const resetLevelButton = document.getElementById('ResetLevelButton');
|
||||
const enableAllButton = document.getElementById('EnableAllButton');
|
||||
const disableAllButton = document.getElementById('DisableAllButton');
|
||||
|
||||
if (demoForm) {
|
||||
demoForm.addEventListener('submit', onSubmitDemoForm);
|
||||
}
|
||||
|
||||
if (setLevelForm) {
|
||||
setLevelForm.addEventListener('submit', onSubmitSetLevelForm);
|
||||
}
|
||||
|
||||
if (setDefaultLevelForm) {
|
||||
setDefaultLevelForm.addEventListener('submit', onSubmitSetDefaultLevelForm);
|
||||
}
|
||||
|
||||
if (resetLevelButton) {
|
||||
resetLevelButton.addEventListener('click', () => {
|
||||
log.resetLevel();
|
||||
updateLogStateForm();
|
||||
});
|
||||
}
|
||||
|
||||
if (enableAllButton) {
|
||||
enableAllButton.addEventListener('click', () => {
|
||||
log.enableAll();
|
||||
updateLogStateForm();
|
||||
});
|
||||
}
|
||||
|
||||
if (disableAllButton) {
|
||||
disableAllButton.addEventListener('click', () => {
|
||||
log.disableAll();
|
||||
updateLogStateForm();
|
||||
});
|
||||
}
|
||||
|
||||
updateLogStateForm();
|
||||
});
|
||||
|
||||
function onSubmitDemoForm(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const form = event.currentTarget;
|
||||
const formData = new FormData(form)
|
||||
const debugMessage = formData.get('debugMessage');
|
||||
const logLevel = formData.get('logLevel');
|
||||
|
||||
if (debugMessage && logLevel) {
|
||||
log[logLevel](debugMessage);
|
||||
}
|
||||
}
|
||||
|
||||
function onSubmitSetLevelForm(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const form = event.currentTarget;
|
||||
const formData = new FormData(form)
|
||||
log.setLevel(parseInt(formData.get('level')), formData.get('persist') === 'true');
|
||||
updateLogStateForm();
|
||||
}
|
||||
|
||||
function onSubmitSetDefaultLevelForm(event) {
|
||||
event.preventDefault();
|
||||
|
||||
const form = event.currentTarget;
|
||||
const formData = new FormData(form)
|
||||
log.setDefaultLevel(parseInt(formData.get('level')));
|
||||
updateLogStateForm();
|
||||
}
|
||||
|
||||
function updateLogStateForm() {
|
||||
const logState = document.getElementById('LogState');
|
||||
|
||||
if (logState) {
|
||||
const currentLevel = logState.querySelector('input[name="currentLevel"]');
|
||||
const logLevel = log.getLevel();
|
||||
currentLevel.value = Object.keys(log.levels).find(key => log.levels[key] === logLevel);
|
||||
}
|
||||
}
|
||||
107
ExACTRegressionScripts/node_modules/loglevel/demo/styles.css
generated
vendored
Normal file
107
ExACTRegressionScripts/node_modules/loglevel/demo/styles.css
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
color: #161230;
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 18px;
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
form {
|
||||
}
|
||||
|
||||
label {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
input,
|
||||
select,
|
||||
button {
|
||||
/* flex-grow: 1; */
|
||||
font-size: 1rem;
|
||||
padding: 0.25rem;
|
||||
border: 1px solid;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
align-self: center;
|
||||
padding: 0.5rem 1.5rem;
|
||||
background-color: #161230;
|
||||
color: #fafafa;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
code,
|
||||
code > input,
|
||||
code > select {
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
code {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
code input,
|
||||
code select {
|
||||
border-color: #a9b7c9;
|
||||
}
|
||||
|
||||
code button {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
details {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
summary {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
details code {
|
||||
display: inline-block;
|
||||
font-size: 1.1rem;
|
||||
margin-left: 0.2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.code-container {
|
||||
width: 80vw;
|
||||
max-width: 800px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
border: 1px solid;
|
||||
border-radius: 4px;
|
||||
background-color: #eaf3ff;
|
||||
padding: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
352
ExACTRegressionScripts/node_modules/loglevel/dist/loglevel.js
generated
vendored
Normal file
352
ExACTRegressionScripts/node_modules/loglevel/dist/loglevel.js
generated
vendored
Normal file
@@ -0,0 +1,352 @@
|
||||
/*! loglevel - v1.9.1 - https://github.com/pimterry/loglevel - (c) 2024 Tim Perry - licensed MIT */
|
||||
(function (root, definition) {
|
||||
"use strict";
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(definition);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
module.exports = definition();
|
||||
} else {
|
||||
root.log = definition();
|
||||
}
|
||||
}(this, function () {
|
||||
"use strict";
|
||||
|
||||
// Slightly dubious tricks to cut down minimized file size
|
||||
var noop = function() {};
|
||||
var undefinedType = "undefined";
|
||||
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
||||
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
||||
);
|
||||
|
||||
var logMethods = [
|
||||
"trace",
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error"
|
||||
];
|
||||
|
||||
var _loggersByName = {};
|
||||
var defaultLogger = null;
|
||||
|
||||
// Cross-browser bind equivalent that works at least back to IE6
|
||||
function bindMethod(obj, methodName) {
|
||||
var method = obj[methodName];
|
||||
if (typeof method.bind === 'function') {
|
||||
return method.bind(obj);
|
||||
} else {
|
||||
try {
|
||||
return Function.prototype.bind.call(method, obj);
|
||||
} catch (e) {
|
||||
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
||||
return function() {
|
||||
return Function.prototype.apply.apply(method, [obj, arguments]);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
||||
function traceForIE() {
|
||||
if (console.log) {
|
||||
if (console.log.apply) {
|
||||
console.log.apply(console, arguments);
|
||||
} else {
|
||||
// In old IE, native console methods themselves don't have apply().
|
||||
Function.prototype.apply.apply(console.log, [console, arguments]);
|
||||
}
|
||||
}
|
||||
if (console.trace) console.trace();
|
||||
}
|
||||
|
||||
// Build the best logging method possible for this env
|
||||
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
||||
function realMethod(methodName) {
|
||||
if (methodName === 'debug') {
|
||||
methodName = 'log';
|
||||
}
|
||||
|
||||
if (typeof console === undefinedType) {
|
||||
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
||||
} else if (methodName === 'trace' && isIE) {
|
||||
return traceForIE;
|
||||
} else if (console[methodName] !== undefined) {
|
||||
return bindMethod(console, methodName);
|
||||
} else if (console.log !== undefined) {
|
||||
return bindMethod(console, 'log');
|
||||
} else {
|
||||
return noop;
|
||||
}
|
||||
}
|
||||
|
||||
// These private functions always need `this` to be set properly
|
||||
|
||||
function replaceLoggingMethods() {
|
||||
/*jshint validthis:true */
|
||||
var level = this.getLevel();
|
||||
|
||||
// Replace the actual methods.
|
||||
for (var i = 0; i < logMethods.length; i++) {
|
||||
var methodName = logMethods[i];
|
||||
this[methodName] = (i < level) ?
|
||||
noop :
|
||||
this.methodFactory(methodName, level, this.name);
|
||||
}
|
||||
|
||||
// Define log.log as an alias for log.debug
|
||||
this.log = this.debug;
|
||||
|
||||
// Return any important warnings.
|
||||
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
||||
return "No console available for logging";
|
||||
}
|
||||
}
|
||||
|
||||
// In old IE versions, the console isn't present until you first open it.
|
||||
// We build realMethod() replacements here that regenerate logging methods
|
||||
function enableLoggingWhenConsoleArrives(methodName) {
|
||||
return function () {
|
||||
if (typeof console !== undefinedType) {
|
||||
replaceLoggingMethods.call(this);
|
||||
this[methodName].apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// By default, we use closely bound real methods wherever possible, and
|
||||
// otherwise we wait for a console to appear, and then try again.
|
||||
function defaultMethodFactory(methodName, _level, _loggerName) {
|
||||
/*jshint validthis:true */
|
||||
return realMethod(methodName) ||
|
||||
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
||||
}
|
||||
|
||||
function Logger(name, factory) {
|
||||
// Private instance variables.
|
||||
var self = this;
|
||||
/**
|
||||
* The level inherited from a parent logger (or a global default). We
|
||||
* cache this here rather than delegating to the parent so that it stays
|
||||
* in sync with the actual logging methods that we have installed (the
|
||||
* parent could change levels but we might not have rebuilt the loggers
|
||||
* in this child yet).
|
||||
* @type {number}
|
||||
*/
|
||||
var inheritedLevel;
|
||||
/**
|
||||
* The default level for this logger, if any. If set, this overrides
|
||||
* `inheritedLevel`.
|
||||
* @type {number|null}
|
||||
*/
|
||||
var defaultLevel;
|
||||
/**
|
||||
* A user-specific level for this logger. If set, this overrides
|
||||
* `defaultLevel`.
|
||||
* @type {number|null}
|
||||
*/
|
||||
var userLevel;
|
||||
|
||||
var storageKey = "loglevel";
|
||||
if (typeof name === "string") {
|
||||
storageKey += ":" + name;
|
||||
} else if (typeof name === "symbol") {
|
||||
storageKey = undefined;
|
||||
}
|
||||
|
||||
function persistLevelIfPossible(levelNum) {
|
||||
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
||||
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
// Use localStorage if available
|
||||
try {
|
||||
window.localStorage[storageKey] = levelName;
|
||||
return;
|
||||
} catch (ignore) {}
|
||||
|
||||
// Use session cookie as fallback
|
||||
try {
|
||||
window.document.cookie =
|
||||
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
function getPersistedLevel() {
|
||||
var storedLevel;
|
||||
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
try {
|
||||
storedLevel = window.localStorage[storageKey];
|
||||
} catch (ignore) {}
|
||||
|
||||
// Fallback to cookies if local storage gives us nothing
|
||||
if (typeof storedLevel === undefinedType) {
|
||||
try {
|
||||
var cookie = window.document.cookie;
|
||||
var cookieName = encodeURIComponent(storageKey);
|
||||
var location = cookie.indexOf(cookieName + "=");
|
||||
if (location !== -1) {
|
||||
storedLevel = /^([^;]+)/.exec(
|
||||
cookie.slice(location + cookieName.length + 1)
|
||||
)[1];
|
||||
}
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
// If the stored level is not valid, treat it as if nothing was stored.
|
||||
if (self.levels[storedLevel] === undefined) {
|
||||
storedLevel = undefined;
|
||||
}
|
||||
|
||||
return storedLevel;
|
||||
}
|
||||
|
||||
function clearPersistedLevel() {
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
// Use localStorage if available
|
||||
try {
|
||||
window.localStorage.removeItem(storageKey);
|
||||
} catch (ignore) {}
|
||||
|
||||
// Use session cookie as fallback
|
||||
try {
|
||||
window.document.cookie =
|
||||
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
function normalizeLevel(input) {
|
||||
var level = input;
|
||||
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
||||
level = self.levels[level.toUpperCase()];
|
||||
}
|
||||
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
||||
return level;
|
||||
} else {
|
||||
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Public logger API - see https://github.com/pimterry/loglevel for details
|
||||
*
|
||||
*/
|
||||
|
||||
self.name = name;
|
||||
|
||||
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
||||
"ERROR": 4, "SILENT": 5};
|
||||
|
||||
self.methodFactory = factory || defaultMethodFactory;
|
||||
|
||||
self.getLevel = function () {
|
||||
if (userLevel != null) {
|
||||
return userLevel;
|
||||
} else if (defaultLevel != null) {
|
||||
return defaultLevel;
|
||||
} else {
|
||||
return inheritedLevel;
|
||||
}
|
||||
};
|
||||
|
||||
self.setLevel = function (level, persist) {
|
||||
userLevel = normalizeLevel(level);
|
||||
if (persist !== false) { // defaults to true
|
||||
persistLevelIfPossible(userLevel);
|
||||
}
|
||||
|
||||
// NOTE: in v2, this should call rebuild(), which updates children.
|
||||
return replaceLoggingMethods.call(self);
|
||||
};
|
||||
|
||||
self.setDefaultLevel = function (level) {
|
||||
defaultLevel = normalizeLevel(level);
|
||||
if (!getPersistedLevel()) {
|
||||
self.setLevel(level, false);
|
||||
}
|
||||
};
|
||||
|
||||
self.resetLevel = function () {
|
||||
userLevel = null;
|
||||
clearPersistedLevel();
|
||||
replaceLoggingMethods.call(self);
|
||||
};
|
||||
|
||||
self.enableAll = function(persist) {
|
||||
self.setLevel(self.levels.TRACE, persist);
|
||||
};
|
||||
|
||||
self.disableAll = function(persist) {
|
||||
self.setLevel(self.levels.SILENT, persist);
|
||||
};
|
||||
|
||||
self.rebuild = function () {
|
||||
if (defaultLogger !== self) {
|
||||
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
||||
}
|
||||
replaceLoggingMethods.call(self);
|
||||
|
||||
if (defaultLogger === self) {
|
||||
for (var childName in _loggersByName) {
|
||||
_loggersByName[childName].rebuild();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize all the internal levels.
|
||||
inheritedLevel = normalizeLevel(
|
||||
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
||||
);
|
||||
var initialLevel = getPersistedLevel();
|
||||
if (initialLevel != null) {
|
||||
userLevel = normalizeLevel(initialLevel);
|
||||
}
|
||||
replaceLoggingMethods.call(self);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Top-level API
|
||||
*
|
||||
*/
|
||||
|
||||
defaultLogger = new Logger();
|
||||
|
||||
defaultLogger.getLogger = function getLogger(name) {
|
||||
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
||||
throw new TypeError("You must supply a name when creating a logger.");
|
||||
}
|
||||
|
||||
var logger = _loggersByName[name];
|
||||
if (!logger) {
|
||||
logger = _loggersByName[name] = new Logger(
|
||||
name,
|
||||
defaultLogger.methodFactory
|
||||
);
|
||||
}
|
||||
return logger;
|
||||
};
|
||||
|
||||
// Grab the current global log variable in case of overwrite
|
||||
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
||||
defaultLogger.noConflict = function() {
|
||||
if (typeof window !== undefinedType &&
|
||||
window.log === defaultLogger) {
|
||||
window.log = _log;
|
||||
}
|
||||
|
||||
return defaultLogger;
|
||||
};
|
||||
|
||||
defaultLogger.getLoggers = function getLoggers() {
|
||||
return _loggersByName;
|
||||
};
|
||||
|
||||
// ES6 default export, for compatibility
|
||||
defaultLogger['default'] = defaultLogger;
|
||||
|
||||
return defaultLogger;
|
||||
}));
|
||||
3
ExACTRegressionScripts/node_modules/loglevel/dist/loglevel.min.js
generated
vendored
Normal file
3
ExACTRegressionScripts/node_modules/loglevel/dist/loglevel.min.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/*! loglevel - v1.9.1 - https://github.com/pimterry/loglevel - (c) 2024 Tim Perry - licensed MIT */
|
||||
|
||||
!function(e,o){"use strict";"function"==typeof define&&define.amd?define(o):"object"==typeof module&&module.exports?module.exports=o():e.log=o()}(this,function(){"use strict";var l=function(){},f="undefined",i=typeof window!==f&&typeof window.navigator!==f&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],p={},d=null;function r(o,e){var n=o[e];if("function"==typeof n.bind)return n.bind(o);try{return Function.prototype.bind.call(n,o)}catch(e){return function(){return Function.prototype.apply.apply(n,[o,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function v(){for(var e=this.getLevel(),o=0;o<s.length;o++){var n=s[o];this[n]=o<e?l:this.methodFactory(n,e,this.name)}if(this.log=this.debug,typeof console===f&&e<this.levels.SILENT)return"No console available for logging"}function y(e,o,n){return"debug"===(t=e)&&(t="log"),typeof console!==f&&("trace"===t&&i?c:void 0!==console[t]?r(console,t):void 0!==console.log?r(console,"log"):l)||function(e){return function(){typeof console!==f&&(v.call(this),this[e].apply(this,arguments))}}.apply(this,arguments);var t}function n(e,o){var n,t,l,i=this,r="loglevel";function c(){var e;if(typeof window!==f&&r){try{e=window.localStorage[r]}catch(e){}if(typeof e===f)try{var o=window.document.cookie,n=encodeURIComponent(r),t=o.indexOf(n+"=");-1!==t&&(e=/^([^;]+)/.exec(o.slice(t+n.length+1))[1])}catch(e){}return void 0===i.levels[e]&&(e=void 0),e}}function a(e){var o=e;if("string"==typeof o&&void 0!==i.levels[o.toUpperCase()]&&(o=i.levels[o.toUpperCase()]),"number"==typeof o&&0<=o&&o<=i.levels.SILENT)return o;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?r+=":"+e:"symbol"==typeof e&&(r=void 0),i.name=e,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=o||y,i.getLevel=function(){return null!=l?l:null!=t?t:n},i.setLevel=function(e,o){return l=a(e),!1!==o&&function(e){var o=(s[e]||"silent").toUpperCase();if(typeof window!==f&&r){try{return window.localStorage[r]=o}catch(e){}try{window.document.cookie=encodeURIComponent(r)+"="+o+";"}catch(e){}}}(l),v.call(i)},i.setDefaultLevel=function(e){t=a(e),c()||i.setLevel(e,!1)},i.resetLevel=function(){l=null,function(){if(typeof window!==f&&r){try{window.localStorage.removeItem(r)}catch(e){}try{window.document.cookie=encodeURIComponent(r)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),v.call(i)},i.enableAll=function(e){i.setLevel(i.levels.TRACE,e)},i.disableAll=function(e){i.setLevel(i.levels.SILENT,e)},i.rebuild=function(){if(d!==i&&(n=a(d.getLevel())),v.call(i),d===i)for(var e in p)p[e].rebuild()},n=a(d?d.getLevel():"WARN");var u=c();null!=u&&(l=a(u)),v.call(i)}(d=new n).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var o=p[e];return o||(o=p[e]=new n(e,d.methodFactory)),o};var e=typeof window!==f?window.log:void 0;return d.noConflict=function(){return typeof window!==f&&window.log===d&&(window.log=e),d},d.getLoggers=function(){return p},d.default=d});
|
||||
203
ExACTRegressionScripts/node_modules/loglevel/index.d.ts
generated
vendored
Normal file
203
ExACTRegressionScripts/node_modules/loglevel/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,203 @@
|
||||
// Originally from Definitely Typed, see:
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/b4683d7/types/loglevel/index.d.ts
|
||||
// Original definitions by: Stefan Profanter <https://github.com/Pro>
|
||||
// Gabor Szmetanko <https://github.com/szmeti>
|
||||
// Christian Rackerseder <https://github.com/screendriver>
|
||||
|
||||
declare const log: log.RootLogger;
|
||||
export = log;
|
||||
|
||||
declare namespace log {
|
||||
/**
|
||||
* Log levels
|
||||
*/
|
||||
interface LogLevel {
|
||||
TRACE: 0;
|
||||
DEBUG: 1;
|
||||
INFO: 2;
|
||||
WARN: 3;
|
||||
ERROR: 4;
|
||||
SILENT: 5;
|
||||
}
|
||||
|
||||
/**
|
||||
* Possible log level numbers.
|
||||
*/
|
||||
type LogLevelNumbers = LogLevel[keyof LogLevel];
|
||||
|
||||
/**
|
||||
* Possible log level descriptors, may be string, lower or upper case, or number.
|
||||
*/
|
||||
type LogLevelDesc = LogLevelNumbers | LogLevelNames | 'silent' | keyof LogLevel;
|
||||
|
||||
type LogLevelNames =
|
||||
| 'trace'
|
||||
| 'debug'
|
||||
| 'info'
|
||||
| 'warn'
|
||||
| 'error';
|
||||
|
||||
type LoggingMethod = (...message: any[]) => void;
|
||||
|
||||
type MethodFactory = (methodName: LogLevelNames, level: LogLevelNumbers, loggerName: string | symbol) => LoggingMethod;
|
||||
|
||||
interface RootLogger extends Logger {
|
||||
/**
|
||||
* If you're using another JavaScript library that exposes a 'log' global, you can run into conflicts with loglevel.
|
||||
* Similarly to jQuery, you can solve this by putting loglevel into no-conflict mode immediately after it is loaded
|
||||
* onto the page. This resets to 'log' global to its value before loglevel was loaded (typically undefined), and
|
||||
* returns the loglevel object, which you can then bind to another name yourself.
|
||||
*/
|
||||
noConflict(): any;
|
||||
|
||||
/**
|
||||
* This gets you a new logger object that works exactly like the root log object, but can have its level and
|
||||
* logging methods set independently. All loggers must have a name (which is a non-empty string or a symbol)
|
||||
* Calling * getLogger() multiple times with the same name will return an identical logger object.
|
||||
* In large applications, it can be incredibly useful to turn logging on and off for particular modules as you are
|
||||
* working with them. Using the getLogger() method lets you create a separate logger for each part of your
|
||||
* application with its own logging level. Likewise, for small, independent modules, using a named logger instead
|
||||
* of the default root logger allows developers using your module to selectively turn on deep, trace-level logging
|
||||
* when trying to debug problems, while logging only errors or silencing logging altogether under normal
|
||||
* circumstances.
|
||||
* @param name The name of the produced logger
|
||||
*/
|
||||
getLogger(name: string | symbol): Logger;
|
||||
|
||||
/**
|
||||
* This will return you the dictionary of all loggers created with getLogger, keyed off of their names.
|
||||
*/
|
||||
getLoggers(): { [name: string]: Logger };
|
||||
|
||||
/**
|
||||
* A .default property for ES6 default import compatibility
|
||||
*/
|
||||
default: RootLogger;
|
||||
}
|
||||
|
||||
interface Logger {
|
||||
/**
|
||||
* Available log levels.
|
||||
*/
|
||||
readonly levels: LogLevel;
|
||||
|
||||
/**
|
||||
* Plugin API entry point. This will be called for each enabled method each time the level is set
|
||||
* (including initially), and should return a MethodFactory to be used for the given log method, at the given level,
|
||||
* for a logger with the given name. If you'd like to retain all the reliability and features of loglevel, it's
|
||||
* recommended that this wraps the initially provided value of log.methodFactory
|
||||
*/
|
||||
methodFactory: MethodFactory;
|
||||
|
||||
/**
|
||||
* Output trace message to console.
|
||||
* This will also include a full stack trace
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
trace(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* Output debug message to console including appropriate icons
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
debug(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* Output debug message to console including appropriate icons
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
log(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* Output info message to console including appropriate icons
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
info(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* Output warn message to console including appropriate icons
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
warn(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* Output error message to console including appropriate icons
|
||||
*
|
||||
* @param msg any data to log to the console
|
||||
*/
|
||||
error(...msg: any[]): void;
|
||||
|
||||
/**
|
||||
* This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something")
|
||||
* or log.error("something") will output messages, but log.info("something") will not.
|
||||
*
|
||||
* @param level as a string, like 'error' (case-insensitive) or as a number from 0 to 5 (or as log.levels. values)
|
||||
* @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling
|
||||
* back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass
|
||||
* false as the optional 'persist' second argument, persistence will be skipped.
|
||||
*/
|
||||
setLevel(level: LogLevelDesc, persist?: boolean): void;
|
||||
|
||||
/**
|
||||
* Returns the current logging level, as a value from LogLevel.
|
||||
* It's very unlikely you'll need to use this for normal application logging; it's provided partly to help plugin
|
||||
* development, and partly to let you optimize logging code as below, where debug data is only generated if the
|
||||
* level is set such that it'll actually be logged. This probably doesn't affect you, unless you've run profiling
|
||||
* on your code and you have hard numbers telling you that your log data generation is a real performance problem.
|
||||
*/
|
||||
getLevel(): LogLevel[keyof LogLevel];
|
||||
|
||||
/**
|
||||
* This sets the current log level only if one has not been persisted and can’t be loaded. This is useful when
|
||||
* initializing scripts; if a developer or user has previously called setLevel(), this won’t alter their settings.
|
||||
* For example, your application might set the log level to error in a production environment, but when debugging
|
||||
* an issue, you might call setLevel("trace") on the console to see all the logs. If that error setting was set
|
||||
* using setDefaultLevel(), it will still say as trace on subsequent page loads and refreshes instead of resetting
|
||||
* to error.
|
||||
*
|
||||
* The level argument takes is the same values that you might pass to setLevel(). Levels set using
|
||||
* setDefaultLevel() never persist to subsequent page loads.
|
||||
*
|
||||
* @param level as a string, like 'error' (case-insensitive) or as a number from 0 to 5 (or as log.levels. values)
|
||||
*/
|
||||
setDefaultLevel(level: LogLevelDesc): void;
|
||||
|
||||
/**
|
||||
* This resets the current log level to the default level (or `warn` if no explicit default was set) and clears
|
||||
* the persisted level if one was previously persisted.
|
||||
*/
|
||||
resetLevel(): void;
|
||||
|
||||
/**
|
||||
* This enables all log messages, and is equivalent to log.setLevel("trace").
|
||||
*
|
||||
* @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling
|
||||
* back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass
|
||||
* false as the optional 'persist' second argument, persistence will be skipped.
|
||||
*/
|
||||
enableAll(persist?: boolean): void;
|
||||
|
||||
/**
|
||||
* This disables all log messages, and is equivalent to log.setLevel("silent").
|
||||
*
|
||||
* @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling
|
||||
* back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass
|
||||
* false as the optional 'persist' second argument, persistence will be skipped.
|
||||
*/
|
||||
disableAll(persist?: boolean): void;
|
||||
|
||||
/**
|
||||
* Rebuild the logging methods on this logger and its child loggers.
|
||||
*
|
||||
* This is mostly intended for plugin developers, but can be useful if you update a logger's `methodFactory` or
|
||||
* if you want to apply the root logger’s level to any *pre-existing* child loggers (this updates the level on
|
||||
* any child logger that hasn't used `setLevel()` or `setDefaultLevel()`).
|
||||
*/
|
||||
rebuild(): void;
|
||||
}
|
||||
}
|
||||
21
ExACTRegressionScripts/node_modules/loglevel/lib/.jshintrc
generated
vendored
Normal file
21
ExACTRegressionScripts/node_modules/loglevel/lib/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"curly": false,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"es3": true,
|
||||
"notypeof": true,
|
||||
"globals": {
|
||||
"console": false,
|
||||
"exports": false,
|
||||
"define": false,
|
||||
"module": false,
|
||||
"window": false
|
||||
}
|
||||
}
|
||||
357
ExACTRegressionScripts/node_modules/loglevel/lib/loglevel.js
generated
vendored
Normal file
357
ExACTRegressionScripts/node_modules/loglevel/lib/loglevel.js
generated
vendored
Normal file
@@ -0,0 +1,357 @@
|
||||
/*
|
||||
* loglevel - https://github.com/pimterry/loglevel
|
||||
*
|
||||
* Copyright (c) 2013 Tim Perry
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
(function (root, definition) {
|
||||
"use strict";
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(definition);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
module.exports = definition();
|
||||
} else {
|
||||
root.log = definition();
|
||||
}
|
||||
}(this, function () {
|
||||
"use strict";
|
||||
|
||||
// Slightly dubious tricks to cut down minimized file size
|
||||
var noop = function() {};
|
||||
var undefinedType = "undefined";
|
||||
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
||||
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
||||
);
|
||||
|
||||
var logMethods = [
|
||||
"trace",
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error"
|
||||
];
|
||||
|
||||
var _loggersByName = {};
|
||||
var defaultLogger = null;
|
||||
|
||||
// Cross-browser bind equivalent that works at least back to IE6
|
||||
function bindMethod(obj, methodName) {
|
||||
var method = obj[methodName];
|
||||
if (typeof method.bind === 'function') {
|
||||
return method.bind(obj);
|
||||
} else {
|
||||
try {
|
||||
return Function.prototype.bind.call(method, obj);
|
||||
} catch (e) {
|
||||
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
||||
return function() {
|
||||
return Function.prototype.apply.apply(method, [obj, arguments]);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
||||
function traceForIE() {
|
||||
if (console.log) {
|
||||
if (console.log.apply) {
|
||||
console.log.apply(console, arguments);
|
||||
} else {
|
||||
// In old IE, native console methods themselves don't have apply().
|
||||
Function.prototype.apply.apply(console.log, [console, arguments]);
|
||||
}
|
||||
}
|
||||
if (console.trace) console.trace();
|
||||
}
|
||||
|
||||
// Build the best logging method possible for this env
|
||||
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
||||
function realMethod(methodName) {
|
||||
if (methodName === 'debug') {
|
||||
methodName = 'log';
|
||||
}
|
||||
|
||||
if (typeof console === undefinedType) {
|
||||
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
||||
} else if (methodName === 'trace' && isIE) {
|
||||
return traceForIE;
|
||||
} else if (console[methodName] !== undefined) {
|
||||
return bindMethod(console, methodName);
|
||||
} else if (console.log !== undefined) {
|
||||
return bindMethod(console, 'log');
|
||||
} else {
|
||||
return noop;
|
||||
}
|
||||
}
|
||||
|
||||
// These private functions always need `this` to be set properly
|
||||
|
||||
function replaceLoggingMethods() {
|
||||
/*jshint validthis:true */
|
||||
var level = this.getLevel();
|
||||
|
||||
// Replace the actual methods.
|
||||
for (var i = 0; i < logMethods.length; i++) {
|
||||
var methodName = logMethods[i];
|
||||
this[methodName] = (i < level) ?
|
||||
noop :
|
||||
this.methodFactory(methodName, level, this.name);
|
||||
}
|
||||
|
||||
// Define log.log as an alias for log.debug
|
||||
this.log = this.debug;
|
||||
|
||||
// Return any important warnings.
|
||||
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
||||
return "No console available for logging";
|
||||
}
|
||||
}
|
||||
|
||||
// In old IE versions, the console isn't present until you first open it.
|
||||
// We build realMethod() replacements here that regenerate logging methods
|
||||
function enableLoggingWhenConsoleArrives(methodName) {
|
||||
return function () {
|
||||
if (typeof console !== undefinedType) {
|
||||
replaceLoggingMethods.call(this);
|
||||
this[methodName].apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// By default, we use closely bound real methods wherever possible, and
|
||||
// otherwise we wait for a console to appear, and then try again.
|
||||
function defaultMethodFactory(methodName, _level, _loggerName) {
|
||||
/*jshint validthis:true */
|
||||
return realMethod(methodName) ||
|
||||
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
||||
}
|
||||
|
||||
function Logger(name, factory) {
|
||||
// Private instance variables.
|
||||
var self = this;
|
||||
/**
|
||||
* The level inherited from a parent logger (or a global default). We
|
||||
* cache this here rather than delegating to the parent so that it stays
|
||||
* in sync with the actual logging methods that we have installed (the
|
||||
* parent could change levels but we might not have rebuilt the loggers
|
||||
* in this child yet).
|
||||
* @type {number}
|
||||
*/
|
||||
var inheritedLevel;
|
||||
/**
|
||||
* The default level for this logger, if any. If set, this overrides
|
||||
* `inheritedLevel`.
|
||||
* @type {number|null}
|
||||
*/
|
||||
var defaultLevel;
|
||||
/**
|
||||
* A user-specific level for this logger. If set, this overrides
|
||||
* `defaultLevel`.
|
||||
* @type {number|null}
|
||||
*/
|
||||
var userLevel;
|
||||
|
||||
var storageKey = "loglevel";
|
||||
if (typeof name === "string") {
|
||||
storageKey += ":" + name;
|
||||
} else if (typeof name === "symbol") {
|
||||
storageKey = undefined;
|
||||
}
|
||||
|
||||
function persistLevelIfPossible(levelNum) {
|
||||
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
||||
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
// Use localStorage if available
|
||||
try {
|
||||
window.localStorage[storageKey] = levelName;
|
||||
return;
|
||||
} catch (ignore) {}
|
||||
|
||||
// Use session cookie as fallback
|
||||
try {
|
||||
window.document.cookie =
|
||||
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
function getPersistedLevel() {
|
||||
var storedLevel;
|
||||
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
try {
|
||||
storedLevel = window.localStorage[storageKey];
|
||||
} catch (ignore) {}
|
||||
|
||||
// Fallback to cookies if local storage gives us nothing
|
||||
if (typeof storedLevel === undefinedType) {
|
||||
try {
|
||||
var cookie = window.document.cookie;
|
||||
var cookieName = encodeURIComponent(storageKey);
|
||||
var location = cookie.indexOf(cookieName + "=");
|
||||
if (location !== -1) {
|
||||
storedLevel = /^([^;]+)/.exec(
|
||||
cookie.slice(location + cookieName.length + 1)
|
||||
)[1];
|
||||
}
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
// If the stored level is not valid, treat it as if nothing was stored.
|
||||
if (self.levels[storedLevel] === undefined) {
|
||||
storedLevel = undefined;
|
||||
}
|
||||
|
||||
return storedLevel;
|
||||
}
|
||||
|
||||
function clearPersistedLevel() {
|
||||
if (typeof window === undefinedType || !storageKey) return;
|
||||
|
||||
// Use localStorage if available
|
||||
try {
|
||||
window.localStorage.removeItem(storageKey);
|
||||
} catch (ignore) {}
|
||||
|
||||
// Use session cookie as fallback
|
||||
try {
|
||||
window.document.cookie =
|
||||
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
||||
} catch (ignore) {}
|
||||
}
|
||||
|
||||
function normalizeLevel(input) {
|
||||
var level = input;
|
||||
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
||||
level = self.levels[level.toUpperCase()];
|
||||
}
|
||||
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
||||
return level;
|
||||
} else {
|
||||
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Public logger API - see https://github.com/pimterry/loglevel for details
|
||||
*
|
||||
*/
|
||||
|
||||
self.name = name;
|
||||
|
||||
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
||||
"ERROR": 4, "SILENT": 5};
|
||||
|
||||
self.methodFactory = factory || defaultMethodFactory;
|
||||
|
||||
self.getLevel = function () {
|
||||
if (userLevel != null) {
|
||||
return userLevel;
|
||||
} else if (defaultLevel != null) {
|
||||
return defaultLevel;
|
||||
} else {
|
||||
return inheritedLevel;
|
||||
}
|
||||
};
|
||||
|
||||
self.setLevel = function (level, persist) {
|
||||
userLevel = normalizeLevel(level);
|
||||
if (persist !== false) { // defaults to true
|
||||
persistLevelIfPossible(userLevel);
|
||||
}
|
||||
|
||||
// NOTE: in v2, this should call rebuild(), which updates children.
|
||||
return replaceLoggingMethods.call(self);
|
||||
};
|
||||
|
||||
self.setDefaultLevel = function (level) {
|
||||
defaultLevel = normalizeLevel(level);
|
||||
if (!getPersistedLevel()) {
|
||||
self.setLevel(level, false);
|
||||
}
|
||||
};
|
||||
|
||||
self.resetLevel = function () {
|
||||
userLevel = null;
|
||||
clearPersistedLevel();
|
||||
replaceLoggingMethods.call(self);
|
||||
};
|
||||
|
||||
self.enableAll = function(persist) {
|
||||
self.setLevel(self.levels.TRACE, persist);
|
||||
};
|
||||
|
||||
self.disableAll = function(persist) {
|
||||
self.setLevel(self.levels.SILENT, persist);
|
||||
};
|
||||
|
||||
self.rebuild = function () {
|
||||
if (defaultLogger !== self) {
|
||||
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
||||
}
|
||||
replaceLoggingMethods.call(self);
|
||||
|
||||
if (defaultLogger === self) {
|
||||
for (var childName in _loggersByName) {
|
||||
_loggersByName[childName].rebuild();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Initialize all the internal levels.
|
||||
inheritedLevel = normalizeLevel(
|
||||
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
||||
);
|
||||
var initialLevel = getPersistedLevel();
|
||||
if (initialLevel != null) {
|
||||
userLevel = normalizeLevel(initialLevel);
|
||||
}
|
||||
replaceLoggingMethods.call(self);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Top-level API
|
||||
*
|
||||
*/
|
||||
|
||||
defaultLogger = new Logger();
|
||||
|
||||
defaultLogger.getLogger = function getLogger(name) {
|
||||
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
||||
throw new TypeError("You must supply a name when creating a logger.");
|
||||
}
|
||||
|
||||
var logger = _loggersByName[name];
|
||||
if (!logger) {
|
||||
logger = _loggersByName[name] = new Logger(
|
||||
name,
|
||||
defaultLogger.methodFactory
|
||||
);
|
||||
}
|
||||
return logger;
|
||||
};
|
||||
|
||||
// Grab the current global log variable in case of overwrite
|
||||
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
||||
defaultLogger.noConflict = function() {
|
||||
if (typeof window !== undefinedType &&
|
||||
window.log === defaultLogger) {
|
||||
window.log = _log;
|
||||
}
|
||||
|
||||
return defaultLogger;
|
||||
};
|
||||
|
||||
defaultLogger.getLoggers = function getLoggers() {
|
||||
return _loggersByName;
|
||||
};
|
||||
|
||||
// ES6 default export, for compatibility
|
||||
defaultLogger['default'] = defaultLogger;
|
||||
|
||||
return defaultLogger;
|
||||
}));
|
||||
62
ExACTRegressionScripts/node_modules/loglevel/package.json
generated
vendored
Normal file
62
ExACTRegressionScripts/node_modules/loglevel/package.json
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "loglevel",
|
||||
"description": "Minimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods",
|
||||
"version": "1.9.1",
|
||||
"homepage": "https://github.com/pimterry/loglevel",
|
||||
"author": {
|
||||
"name": "Tim Perry",
|
||||
"email": "pimterry@gmail.com",
|
||||
"url": "http://tim-perry.co.uk"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/pimterry/loglevel.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/pimterry/loglevel/issues"
|
||||
},
|
||||
"funding": {
|
||||
"type": "tidelift",
|
||||
"url": "https://tidelift.com/funding/github/npm/loglevel"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "lib/loglevel.js",
|
||||
"types": "./index.d.ts",
|
||||
"engines": {
|
||||
"node": ">= 0.6.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "grunt jshint",
|
||||
"test": "grunt test && npm run test-types",
|
||||
"test-browser": "grunt test-browser",
|
||||
"test-node": "grunt test-node",
|
||||
"test-types": "tsc --noEmit ./test/type-test.ts",
|
||||
"dist": "grunt dist",
|
||||
"dist-build": "grunt dist-build",
|
||||
"watch": "grunt watch"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@types/core-js": "2.5.0",
|
||||
"@types/node": "^12.0.4",
|
||||
"grunt": "~1.0.4",
|
||||
"grunt-cli": "~1.2.0",
|
||||
"grunt-contrib-clean": "^1.1.0",
|
||||
"grunt-contrib-concat": "~0.5.0",
|
||||
"grunt-contrib-connect": "^1.0.2",
|
||||
"grunt-contrib-jasmine": "^4.0.0",
|
||||
"grunt-contrib-jshint": "^1.1.0",
|
||||
"grunt-contrib-uglify": "^3.4.0",
|
||||
"grunt-contrib-watch": "^1.1.0",
|
||||
"grunt-open": "~0.2.3",
|
||||
"grunt-preprocess": "^5.1.0",
|
||||
"jasmine": "^2.4.1",
|
||||
"typescript": "^3.5.1"
|
||||
},
|
||||
"keywords": [
|
||||
"log",
|
||||
"logger",
|
||||
"logging",
|
||||
"browser"
|
||||
]
|
||||
}
|
||||
34
ExACTRegressionScripts/node_modules/loglevel/test/.jshintrc
generated
vendored
Normal file
34
ExACTRegressionScripts/node_modules/loglevel/test/.jshintrc
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"curly": true,
|
||||
"globalstrict": true,
|
||||
"eqeqeq": true,
|
||||
"immed": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"sub": true,
|
||||
"undef": true,
|
||||
"boss": true,
|
||||
"eqnull": true,
|
||||
"es3": true,
|
||||
"globals": {
|
||||
"window": true,
|
||||
"console": true,
|
||||
"define": false,
|
||||
"require": false,
|
||||
"exports": false,
|
||||
"_": false,
|
||||
"afterEach": false,
|
||||
"beforeEach": false,
|
||||
"confirm": false,
|
||||
"context": false,
|
||||
"describe": false,
|
||||
"xdescribe": false,
|
||||
"expect": false,
|
||||
"it": false,
|
||||
"jasmine": false,
|
||||
"waitsFor": false,
|
||||
"runs": false,
|
||||
"Symbol": false
|
||||
}
|
||||
}
|
||||
101
ExACTRegressionScripts/node_modules/loglevel/test/console-fallback-test.js
generated
vendored
Normal file
101
ExACTRegressionScripts/node_modules/loglevel/test/console-fallback-test.js
generated
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
"use strict";
|
||||
|
||||
function consoleLogIsCalledBy(log, methodName) {
|
||||
it(methodName + " calls console.log", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log[methodName]("Log message for call to " + methodName);
|
||||
expect(console.log.calls.count()).toEqual(1);
|
||||
});
|
||||
}
|
||||
|
||||
function mockConsole() {
|
||||
return {"log" : jasmine.createSpy("console.log")};
|
||||
}
|
||||
|
||||
define(['../lib/loglevel', 'test/test-helpers'], function(log, testHelpers) {
|
||||
var originalConsole = window.console;
|
||||
|
||||
describe("Fallback functionality:", function() {
|
||||
describe("with no console present", function() {
|
||||
beforeEach(function() {
|
||||
window.console = undefined;
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
it("silent method calls are allowed", function() {
|
||||
var result = log.setLevel(log.levels.SILENT);
|
||||
log.trace("hello");
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
|
||||
it("setting an active level gently returns an error string", function() {
|
||||
var result = log.setLevel(log.levels.TRACE);
|
||||
expect(result).toEqual("No console available for logging");
|
||||
});
|
||||
|
||||
it("active method calls are allowed, once the active setLevel fails", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log.trace("hello");
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
describe("if a console later appears", function () {
|
||||
it("logging is re-enabled and works correctly when next used", function () {
|
||||
log.setLevel(log.levels.WARN);
|
||||
|
||||
window.console = mockConsole();
|
||||
log.error("error");
|
||||
|
||||
expect(window.console.log).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("logging is re-enabled but does nothing when used at a blocked level", function () {
|
||||
log.setLevel(log.levels.WARN);
|
||||
|
||||
window.console = mockConsole();
|
||||
log.trace("trace");
|
||||
|
||||
expect(window.console.log).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("changing level works correctly from that point", function () {
|
||||
window.console = mockConsole();
|
||||
var result = log.setLevel(log.levels.WARN);
|
||||
|
||||
expect(result).toBeUndefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("with a console that only supports console.log", function() {
|
||||
beforeEach(function() {
|
||||
window.console = mockConsole();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
it("log can be set to silent", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
it("log can be set to an active level", function() {
|
||||
log.setLevel(log.levels.ERROR);
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
consoleLogIsCalledBy(log, "trace");
|
||||
consoleLogIsCalledBy(log, "debug");
|
||||
consoleLogIsCalledBy(log, "info");
|
||||
consoleLogIsCalledBy(log, "warn");
|
||||
consoleLogIsCalledBy(log, "trace");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
122
ExACTRegressionScripts/node_modules/loglevel/test/cookie-test.js
generated
vendored
Normal file
122
ExACTRegressionScripts/node_modules/loglevel/test/cookie-test.js
generated
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
var originalConsole = window.console;
|
||||
var originalDocument = window.document;
|
||||
|
||||
describeIf(testHelpers.isCookieStorageAvailable() && !testHelpers.isLocalStorageAvailable(),
|
||||
"Cookie-only persistence tests:", function() {
|
||||
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel,
|
||||
"toBeTheStoredLevel" : testHelpers.toBeTheLevelStoredByCookie
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
describe("If no level is saved", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
it("log level is set to warn by default", function(log) {
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("warn is persisted as the current level", function(log) {
|
||||
expect("warn").toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log can be set to info level", function(log) {
|
||||
log.setLevel("info");
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log.setLevel() sets a cookie with the given level", function(log) {
|
||||
log.setLevel("debug");
|
||||
expect("debug").toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("If info level is saved", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setStoredLevel("info");
|
||||
});
|
||||
|
||||
it("info is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log can be changed to warn level", function(log) {
|
||||
log.setLevel("warn");
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("log.setLevel() overwrites the saved level", function(log) {
|
||||
log.setLevel("error");
|
||||
|
||||
expect("error").toBeTheStoredLevel();
|
||||
expect("info").not.toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("If the level is saved with other data", function() {
|
||||
beforeEach(function() {
|
||||
window.document.cookie = "qwe=asd";
|
||||
window.document.cookie = "loglevel=ERROR";
|
||||
window.document.cookie = "msg=hello world";
|
||||
});
|
||||
|
||||
it("error is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("error");
|
||||
});
|
||||
|
||||
it("log can be changed to silent level", function(log) {
|
||||
log.setLevel("silent");
|
||||
expect(log).toBeAtLevel("silent");
|
||||
});
|
||||
|
||||
it("log.setLevel() overrides the saved level only", function(log) {
|
||||
log.setLevel("debug");
|
||||
|
||||
expect('debug').toBeTheStoredLevel();
|
||||
expect(window.document.cookie).toContain("msg=hello world");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If the level cookie is set incorrectly", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setCookieStoredLevel('gibberish');
|
||||
});
|
||||
|
||||
it("warn is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("warn is persisted as the current level, overriding the invalid cookie", function(log) {
|
||||
expect("warn").toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log can be changed to info level", function(log) {
|
||||
log.setLevel("info");
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log.setLevel() overrides the saved level with the new level", function(log) {
|
||||
expect('debug').not.toBeTheStoredLevel();
|
||||
|
||||
log.setLevel("debug");
|
||||
|
||||
expect('debug').toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
81
ExACTRegressionScripts/node_modules/loglevel/test/default-level-test.js
generated
vendored
Normal file
81
ExACTRegressionScripts/node_modules/loglevel/test/default-level-test.js
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
var originalConsole = window.console;
|
||||
|
||||
describe("Setting default log level tests:", function() {
|
||||
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel,
|
||||
"toBeTheStoredLevel" : testHelpers.toBeTheLevelStoredByLocalStorage
|
||||
});
|
||||
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
describe("If no level is saved", function() {
|
||||
beforeEach(function () {
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
it("new level is always set", function(log) {
|
||||
log.setDefaultLevel("trace");
|
||||
expect(log).toBeAtLevel("trace");
|
||||
});
|
||||
|
||||
it("level is not persisted", function(log) {
|
||||
log.setDefaultLevel("debug");
|
||||
expect("debug").not.toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("If a level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("trace");
|
||||
});
|
||||
|
||||
it("saved level is not modified", function (log) {
|
||||
log.setDefaultLevel("debug");
|
||||
expect(log).toBeAtLevel("trace");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If the level is stored incorrectly", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setLocalStorageStoredLevel("gibberish");
|
||||
});
|
||||
|
||||
it("new level is set", function(log) {
|
||||
log.setDefaultLevel("debug");
|
||||
expect(log).toBeAtLevel("debug");
|
||||
expect("debug").not.toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.resetLevel() resets the log", function() {
|
||||
it("to warn if no explicit default is set", function(log) {
|
||||
log.setLevel("debug");
|
||||
log.resetLevel();
|
||||
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("to info if default is set to info", function(log) {
|
||||
log.setDefaultLevel("info");
|
||||
log.setLevel("debug");
|
||||
log.resetLevel();
|
||||
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
52
ExACTRegressionScripts/node_modules/loglevel/test/get-current-level-test.js
generated
vendored
Normal file
52
ExACTRegressionScripts/node_modules/loglevel/test/get-current-level-test.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
var originalConsole = window.console;
|
||||
|
||||
describe("Setting default log level tests:", function() {
|
||||
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
describe("If no level is saved", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
it("current level is the default level", function(log) {
|
||||
log.setDefaultLevel("trace");
|
||||
expect(log.getLevel()).toBe(log.levels.TRACE);
|
||||
});
|
||||
});
|
||||
|
||||
describe("If a level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("trace");
|
||||
});
|
||||
|
||||
it("current level is the level which has been saved", function (log) {
|
||||
log.setDefaultLevel("debug");
|
||||
expect(log.getLevel()).toBe(log.levels.TRACE);
|
||||
});
|
||||
});
|
||||
|
||||
describe("If the level is stored incorrectly", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setLocalStorageStoredLevel("gibberish");
|
||||
});
|
||||
|
||||
it("current level is the default level", function(log) {
|
||||
log.setDefaultLevel("debug");
|
||||
expect(log.getLevel()).toBe(log.levels.DEBUG);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
30
ExACTRegressionScripts/node_modules/loglevel/test/global-integration-with-new-context.js
generated
vendored
Normal file
30
ExACTRegressionScripts/node_modules/loglevel/test/global-integration-with-new-context.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/* global MyCustomLogger, log */
|
||||
"use strict";
|
||||
|
||||
describe("loglevel from a global <script> tag with a custom context", function () {
|
||||
it("is available globally", function () {
|
||||
expect(MyCustomLogger).not.toBeUndefined();
|
||||
});
|
||||
|
||||
it("doesn't have log defined globally", function () {
|
||||
expect(window.log).not.toBeDefined();
|
||||
});
|
||||
|
||||
it("allows setting the logging level", function () {
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.TRACE);
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.DEBUG);
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.INFO);
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.WARN);
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.ERROR);
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
it("successfully logs", function () {
|
||||
window.console = { "log": jasmine.createSpy("log") };
|
||||
|
||||
MyCustomLogger.setLevel(MyCustomLogger.levels.INFO);
|
||||
MyCustomLogger.info("test message");
|
||||
|
||||
expect(console.log).toHaveBeenCalledWith("test message");
|
||||
});
|
||||
});
|
||||
44
ExACTRegressionScripts/node_modules/loglevel/test/global-integration.js
generated
vendored
Normal file
44
ExACTRegressionScripts/node_modules/loglevel/test/global-integration.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/* global log */
|
||||
"use strict";
|
||||
|
||||
describe("loglevel from a global <script> tag", function () {
|
||||
it("is available globally", function () {
|
||||
expect(log).not.toBeUndefined();
|
||||
});
|
||||
|
||||
it("allows setting the logging level", function () {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
log.setLevel(log.levels.INFO);
|
||||
log.setLevel(log.levels.WARN);
|
||||
log.setLevel(log.levels.ERROR);
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
it("successfully logs", function () {
|
||||
window.console = { "log": jasmine.createSpy("log") };
|
||||
|
||||
log.setLevel(log.levels.INFO);
|
||||
log.info("test message");
|
||||
|
||||
expect(console.log).toHaveBeenCalledWith("test message");
|
||||
});
|
||||
|
||||
describe("noConflict()", function () {
|
||||
var globalLog;
|
||||
|
||||
beforeEach(function () {
|
||||
globalLog = window.log;
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
window.log = globalLog;
|
||||
});
|
||||
|
||||
it("removes global reference to `log`", function () {
|
||||
var local = log.noConflict();
|
||||
expect(window.log).toBeUndefined();
|
||||
expect(local).toEqual(globalLog);
|
||||
});
|
||||
});
|
||||
});
|
||||
71
ExACTRegressionScripts/node_modules/loglevel/test/integration-smoke-test.js
generated
vendored
Normal file
71
ExACTRegressionScripts/node_modules/loglevel/test/integration-smoke-test.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
|
||||
define(['../lib/loglevel', 'test/test-helpers'], function(log, testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var itIf = testHelpers.itIf;
|
||||
|
||||
describe("Integration smoke tests:", function() {
|
||||
describe("log methods", function() {
|
||||
it("can all be disabled", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
log.trace("trace");
|
||||
log.debug("debug");
|
||||
log.log("log");
|
||||
log.info("info");
|
||||
log.warn("warn");
|
||||
log.error("error");
|
||||
expect().nothing();
|
||||
});
|
||||
});
|
||||
|
||||
describeIf(typeof console !== "undefined", "log methods", function() {
|
||||
it("can all be called", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log.trace("trace");
|
||||
log.debug("debug");
|
||||
log.log("log");
|
||||
log.info("info");
|
||||
log.warn("warn");
|
||||
log.error("error");
|
||||
expect().nothing();
|
||||
});
|
||||
});
|
||||
|
||||
describeIf(typeof console !== "undefined", "log levels", function() {
|
||||
beforeEach(function() {
|
||||
jasmine.addMatchers({
|
||||
"toBeTheStoredLevel" : testHelpers.toBeTheStoredLevel
|
||||
});
|
||||
});
|
||||
|
||||
it("are all settable", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
log.setLevel(log.levels.INFO);
|
||||
log.setLevel(log.levels.WARN);
|
||||
log.setLevel(log.levels.ERROR);
|
||||
expect().nothing();
|
||||
});
|
||||
|
||||
itIf(testHelpers.isAnyLevelStoragePossible(), "are persisted", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
expect('trace').toBeTheStoredLevel();
|
||||
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
expect('debug').toBeTheStoredLevel();
|
||||
|
||||
log.setLevel(log.levels.INFO);
|
||||
expect('info').toBeTheStoredLevel();
|
||||
|
||||
log.setLevel(log.levels.WARN);
|
||||
expect('warn').toBeTheStoredLevel();
|
||||
|
||||
log.setLevel(log.levels.ERROR);
|
||||
expect('error').toBeTheStoredLevel();
|
||||
|
||||
log.setLevel(log.levels.SILENT);
|
||||
expect('silent').toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
281
ExACTRegressionScripts/node_modules/loglevel/test/level-setting-test.js
generated
vendored
Normal file
281
ExACTRegressionScripts/node_modules/loglevel/test/level-setting-test.js
generated
vendored
Normal file
@@ -0,0 +1,281 @@
|
||||
"use strict";
|
||||
|
||||
var logMethods = [
|
||||
"trace",
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error"
|
||||
];
|
||||
|
||||
function getConsoleMethod(logMethodName) {
|
||||
if (logMethodName === 'debug') {
|
||||
return console.log;
|
||||
} else {
|
||||
return console[logMethodName];
|
||||
}
|
||||
}
|
||||
|
||||
define(['../lib/loglevel'], function(log) {
|
||||
var originalConsole = window.console;
|
||||
|
||||
describe("Basic log levels changing tests:", function() {
|
||||
beforeEach(function() {
|
||||
window.console = {};
|
||||
|
||||
for (var ii = 0; ii < logMethods.length; ii++) {
|
||||
window.console[logMethods[ii]] = jasmine.createSpy(logMethods[ii]);
|
||||
}
|
||||
|
||||
window.console.log = jasmine.createSpy('log');
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
describe("log.enableAll()", function() {
|
||||
it("enables all log methods", function() {
|
||||
log.enableAll(false);
|
||||
|
||||
for (var ii = 0; ii < logMethods.length; ii++) {
|
||||
var method = logMethods[ii];
|
||||
log[method]("a log message");
|
||||
|
||||
expect(getConsoleMethod(method)).toHaveBeenCalled();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.disableAll()", function() {
|
||||
it("disables all log methods", function() {
|
||||
log.disableAll(false);
|
||||
|
||||
for (var ii = 0; ii < logMethods.length; ii++) {
|
||||
var method = logMethods[ii];
|
||||
log[method]("a log message");
|
||||
|
||||
expect(getConsoleMethod(method)).not.toHaveBeenCalled();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.setLevel() throws errors if given", function() {
|
||||
it("no level argument", function() {
|
||||
expect(function() {
|
||||
log.setLevel();
|
||||
}).toThrowError(TypeError, "log.setLevel() called with invalid level: undefined");
|
||||
});
|
||||
|
||||
it("a null level argument", function() {
|
||||
expect(function() {
|
||||
log.setLevel(null);
|
||||
}).toThrowError(TypeError, "log.setLevel() called with invalid level: null");
|
||||
});
|
||||
|
||||
it("an undefined level argument", function() {
|
||||
expect(function() {
|
||||
log.setLevel(undefined);
|
||||
}).toThrowError(TypeError, "log.setLevel() called with invalid level: undefined");
|
||||
});
|
||||
|
||||
it("an invalid log level index", function() {
|
||||
expect(function() {
|
||||
log.setLevel(-1);
|
||||
}).toThrowError(TypeError, "log.setLevel() called with invalid level: -1");
|
||||
});
|
||||
|
||||
it("an invalid log level name", function() {
|
||||
expect(function() {
|
||||
log.setLevel("InvalidLevelName");
|
||||
}).toThrowError(TypeError, "log.setLevel() called with invalid level: InvalidLevelName");
|
||||
});
|
||||
});
|
||||
|
||||
describe("setting log level by name", function() {
|
||||
function itCanSetLogLevelTo(level) {
|
||||
it("can set log level to " + level, function() {
|
||||
log.setLevel(level, false);
|
||||
|
||||
log[level]("log message");
|
||||
expect(getConsoleMethod(level)).toHaveBeenCalled();
|
||||
});
|
||||
}
|
||||
|
||||
itCanSetLogLevelTo("trace");
|
||||
itCanSetLogLevelTo("debug");
|
||||
itCanSetLogLevelTo("info");
|
||||
itCanSetLogLevelTo("warn");
|
||||
itCanSetLogLevelTo("error");
|
||||
});
|
||||
|
||||
describe("log level settings", function() {
|
||||
describe("log.trace", function() {
|
||||
it("is enabled at trace level", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
|
||||
log.trace("a log message");
|
||||
expect(console.trace).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at debug level", function() {
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
|
||||
log.trace("a log message");
|
||||
expect(console.trace).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.trace("a log message");
|
||||
expect(console.trace).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.debug", function() {
|
||||
it("is enabled at trace level", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
|
||||
log.debug("a log message");
|
||||
expect(console.log).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is enabled at debug level", function() {
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
|
||||
log.debug("a log message");
|
||||
expect(console.log).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at info level", function() {
|
||||
log.setLevel(log.levels.INFO);
|
||||
|
||||
log.debug("a log message");
|
||||
expect(console.log).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.debug("a log message");
|
||||
expect(console.log).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.log", function() {
|
||||
it("is enabled at trace level", function() {
|
||||
log.setLevel(log.levels.TRACE);
|
||||
|
||||
log.log("a log message");
|
||||
expect(console.log).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is enabled at debug level", function() {
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
|
||||
log.log("a log message");
|
||||
expect(console.log).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at info level", function() {
|
||||
log.setLevel(log.levels.INFO);
|
||||
|
||||
log.log("a log message");
|
||||
expect(console.log).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.log("a log message");
|
||||
expect(console.log).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.info", function() {
|
||||
it("is enabled at debug level", function() {
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
|
||||
log.info("a log message");
|
||||
expect(console.info).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is enabled at info level", function() {
|
||||
log.setLevel(log.levels.INFO);
|
||||
|
||||
log.info("a log message");
|
||||
expect(console.info).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at warn level", function() {
|
||||
log.setLevel(log.levels.WARN);
|
||||
|
||||
log.info("a log message");
|
||||
expect(console.info).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.info("a log message");
|
||||
expect(console.info).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.warn", function() {
|
||||
it("is enabled at info level", function() {
|
||||
log.setLevel(log.levels.INFO);
|
||||
|
||||
log.warn("a log message");
|
||||
expect(console.warn).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is enabled at warn level", function() {
|
||||
log.setLevel(log.levels.WARN);
|
||||
|
||||
log.warn("a log message");
|
||||
expect(console.warn).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at error level", function() {
|
||||
log.setLevel(log.levels.ERROR);
|
||||
|
||||
log.warn("a log message");
|
||||
expect(console.warn).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.warn("a log message");
|
||||
expect(console.warn).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe("log.error", function() {
|
||||
it("is enabled at warn level", function() {
|
||||
log.setLevel(log.levels.WARN);
|
||||
|
||||
log.error("a log message");
|
||||
expect(console.error).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is enabled at error level", function() {
|
||||
log.setLevel(log.levels.ERROR);
|
||||
|
||||
log.error("a log message");
|
||||
expect(console.error).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("is disabled at silent level", function() {
|
||||
log.setLevel(log.levels.SILENT);
|
||||
|
||||
log.error("a log message");
|
||||
expect(console.error).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
210
ExACTRegressionScripts/node_modules/loglevel/test/local-storage-test.js
generated
vendored
Normal file
210
ExACTRegressionScripts/node_modules/loglevel/test/local-storage-test.js
generated
vendored
Normal file
@@ -0,0 +1,210 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
var originalConsole = window.console;
|
||||
|
||||
describeIf(testHelpers.isLocalStorageAvailable(), "Local storage persistence tests:", function() {
|
||||
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel,
|
||||
"toBeTheStoredLevel" : testHelpers.toBeTheLevelStoredByLocalStorage,
|
||||
"toBeTheLevelStoredByLocalStorage": testHelpers.toBeTheLevelStoredByLocalStorage,
|
||||
"toBeTheLevelStoredByCookie": testHelpers.toBeTheLevelStoredByCookie
|
||||
});
|
||||
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
describe("If no level is saved", function() {
|
||||
it("log level is set to warn by default", function(log) {
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("warn is not persisted as the current level", function(log) {
|
||||
expect("warn").not.toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log can be set to info level", function(log) {
|
||||
log.setLevel("info");
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log.setLevel() sets a cookie with the given level", function(log) {
|
||||
log.setLevel("debug");
|
||||
expect("debug").toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log.setLevel() does not set a cookie if `persist` argument is false", function(log) {
|
||||
log.setLevel("debug", false);
|
||||
expect("debug").not.toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("If trace level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("trace");
|
||||
});
|
||||
|
||||
it("trace is the default log level", function (log) {
|
||||
expect(log).toBeAtLevel("trace");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If debug level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("debug");
|
||||
});
|
||||
|
||||
it("debug is the default log level", function (log) {
|
||||
expect(log).toBeAtLevel("debug");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If info level is saved", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setStoredLevel("info");
|
||||
});
|
||||
|
||||
it("info is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log can be changed to warn level", function(log) {
|
||||
log.setLevel("warn");
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("log.setLevel() overwrites the saved level", function(log) {
|
||||
log.setLevel("error");
|
||||
|
||||
expect("error").toBeTheStoredLevel();
|
||||
expect("info").not.toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log.setLevel() does not overwrite the saved level if `persist` argument is false", function(log) {
|
||||
log.setLevel("error", false);
|
||||
|
||||
expect("info").toBeTheStoredLevel();
|
||||
expect("error").not.toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log.resetLevel() clears the saved level", function(log) {
|
||||
log.resetLevel();
|
||||
|
||||
expect(undefined).toBeTheStoredLevel();
|
||||
expect("info").not.toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describe("If warn level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("warn");
|
||||
});
|
||||
|
||||
it("warn is the default log level", function (log) {
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If error level is saved", function () {
|
||||
beforeEach(function () {
|
||||
testHelpers.setStoredLevel("error");
|
||||
});
|
||||
|
||||
it("error is the default log level", function (log) {
|
||||
expect(log).toBeAtLevel("error");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe("If the level is saved with other data", function() {
|
||||
beforeEach(function() {
|
||||
window.localStorage['qwe'] = "asd";
|
||||
window.localStorage['loglevel'] = "ERROR";
|
||||
window.localStorage['msg'] = "hello world";
|
||||
});
|
||||
|
||||
it("error is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("error");
|
||||
});
|
||||
|
||||
it("log can be changed to silent level", function(log) {
|
||||
log.setLevel("silent");
|
||||
expect(log).toBeAtLevel("silent");
|
||||
});
|
||||
|
||||
it("log.setLevel() overrides the saved level only", function(log) {
|
||||
log.setLevel("debug");
|
||||
|
||||
expect('debug').toBeTheStoredLevel();
|
||||
expect(window.localStorage['msg']).toBe("hello world");
|
||||
});
|
||||
});
|
||||
|
||||
describe("If the level is stored incorrectly", function() {
|
||||
beforeEach(function() {
|
||||
testHelpers.setLocalStorageStoredLevel('gibberish');
|
||||
});
|
||||
|
||||
it("warn is the default log level", function(log) {
|
||||
expect(log).toBeAtLevel("warn");
|
||||
});
|
||||
|
||||
it("warn is not persisted as the current level", function(log) {
|
||||
expect("warn").not.toBeTheStoredLevel();
|
||||
});
|
||||
|
||||
it("log can be changed to info level", function(log) {
|
||||
log.setLevel("info");
|
||||
expect(log).toBeAtLevel("info");
|
||||
});
|
||||
|
||||
it("log.setLevel() overrides the saved level with the new level", function(log) {
|
||||
expect('debug').not.toBeTheStoredLevel();
|
||||
|
||||
log.setLevel("debug");
|
||||
|
||||
expect('debug').toBeTheStoredLevel();
|
||||
});
|
||||
});
|
||||
|
||||
describeIf(testHelpers.isCookieStorageAvailable() && testHelpers.isLocalStorageAvailable(),
|
||||
"if localStorage and cookies are both available", function () {
|
||||
|
||||
it("the level stored in cookies is ignored if a local storage level is set", function (log, done) {
|
||||
testHelpers.setCookieStoredLevel("info");
|
||||
testHelpers.setLocalStorageStoredLevel("debug");
|
||||
|
||||
testHelpers.withFreshLog(function (log) {
|
||||
expect(log).toBeAtLevel("debug");
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("the level stored in cookies is used if no local storage level is set", function (log, done) {
|
||||
testHelpers.setCookieStoredLevel("info");
|
||||
window.localStorage.clear();
|
||||
|
||||
testHelpers.withFreshLog(function (log) {
|
||||
expect(log).toBeAtLevel("info");
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it("the local storage level is set and the cookie level is not", function (log) {
|
||||
log.setLevel("error");
|
||||
expect("error").toBeTheLevelStoredByLocalStorage();
|
||||
expect("error").not.toBeTheLevelStoredByCookie();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
8
ExACTRegressionScripts/node_modules/loglevel/test/manual-test.html
generated
vendored
Normal file
8
ExACTRegressionScripts/node_modules/loglevel/test/manual-test.html
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Standalone manual test bed for loglevel</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../lib/loglevel.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
42
ExACTRegressionScripts/node_modules/loglevel/test/method-factory-test.js
generated
vendored
Normal file
42
ExACTRegressionScripts/node_modules/loglevel/test/method-factory-test.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
describe("Setting the methodFactory tests:", function() {
|
||||
|
||||
it("methodFactory should be called once for each loggable level", function(log) {
|
||||
log.methodFactory = jasmine.createSpy("methodFactory");
|
||||
|
||||
log.setLevel("trace");
|
||||
expect(log.methodFactory.calls.count()).toEqual(5);
|
||||
expect(log.methodFactory.calls.argsFor(0)).toEqual(["trace", 0, undefined]);
|
||||
expect(log.methodFactory.calls.argsFor(1)).toEqual(["debug", 0, undefined]);
|
||||
expect(log.methodFactory.calls.argsFor(2)).toEqual(["info", 0, undefined]);
|
||||
expect(log.methodFactory.calls.argsFor(3)).toEqual(["warn", 0, undefined]);
|
||||
expect(log.methodFactory.calls.argsFor(4)).toEqual(["error", 0, undefined]);
|
||||
|
||||
log.setLevel("error");
|
||||
expect(log.methodFactory.calls.count()).toEqual(6);
|
||||
expect(log.methodFactory.calls.argsFor(5)).toEqual(["error", 4, undefined]);
|
||||
});
|
||||
|
||||
it("functions returned by methodFactory should be used as logging functions", function(log) {
|
||||
var logFunction = function() {};
|
||||
log.methodFactory = function() { return logFunction; };
|
||||
log.setLevel("error");
|
||||
|
||||
expect(log.warn).not.toEqual(logFunction);
|
||||
expect(log.error).toEqual(logFunction);
|
||||
});
|
||||
|
||||
it("the third argument should be logger's name", function(log) {
|
||||
var logger = log.getLogger("newLogger");
|
||||
logger.methodFactory = jasmine.createSpy("methodFactory");
|
||||
|
||||
logger.setLevel("error");
|
||||
expect(logger.methodFactory.calls.argsFor(0)).toEqual(["error", 4, "newLogger"]);
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
275
ExACTRegressionScripts/node_modules/loglevel/test/multiple-logger-test.js
generated
vendored
Normal file
275
ExACTRegressionScripts/node_modules/loglevel/test/multiple-logger-test.js
generated
vendored
Normal file
@@ -0,0 +1,275 @@
|
||||
"use strict";
|
||||
|
||||
define(['test/test-helpers'], function(testHelpers) {
|
||||
var describeIf = testHelpers.describeIf;
|
||||
var it = testHelpers.itWithFreshLog;
|
||||
|
||||
var originalConsole = window.console;
|
||||
|
||||
describe("Multiple logger instances tests:", function() {
|
||||
|
||||
describe("log.getLogger()", function() {
|
||||
it("returns a new logger that is not the default one", function(log) {
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).not.toEqual(log);
|
||||
expect(newLogger.trace).toBeDefined();
|
||||
expect(newLogger.debug).toBeDefined();
|
||||
expect(newLogger.info).toBeDefined();
|
||||
expect(newLogger.warn).toBeDefined();
|
||||
expect(newLogger.error).toBeDefined();
|
||||
expect(newLogger.setLevel).toBeDefined();
|
||||
expect(newLogger.setDefaultLevel).toBeDefined();
|
||||
expect(newLogger.enableAll).toBeDefined();
|
||||
expect(newLogger.disableAll).toBeDefined();
|
||||
expect(newLogger.methodFactory).toBeDefined();
|
||||
});
|
||||
|
||||
it("returns loggers without `getLogger()` and `noConflict()`", function(log) {
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger.getLogger).toBeUndefined();
|
||||
expect(newLogger.noConflict).toBeUndefined();
|
||||
});
|
||||
|
||||
it("returns the same instance when called repeatedly with the same name", function(log) {
|
||||
var logger1 = log.getLogger("newLogger");
|
||||
var logger2 = log.getLogger("newLogger");
|
||||
|
||||
expect(logger1).toEqual(logger2);
|
||||
});
|
||||
|
||||
it("should throw if called with no name", function(log) {
|
||||
expect(function() {
|
||||
log.getLogger();
|
||||
}).toThrow();
|
||||
});
|
||||
|
||||
it("should throw if called with empty string for name", function(log) {
|
||||
expect(function() {
|
||||
log.getLogger("");
|
||||
}).toThrow();
|
||||
});
|
||||
|
||||
it("should throw if called with a non-string name", function(log) {
|
||||
expect(function() { log.getLogger(true); }).toThrow();
|
||||
expect(function() { log.getLogger({}); }).toThrow();
|
||||
expect(function() { log.getLogger([]); }).toThrow();
|
||||
expect(function() { log.getLogger(10); }).toThrow();
|
||||
expect(function() { log.getLogger(function(){}); }).toThrow();
|
||||
expect(function() { log.getLogger(null); }).toThrow();
|
||||
expect(function() { log.getLogger(undefined); }).toThrow();
|
||||
});
|
||||
|
||||
// NOTE: this test is the same as the similarly-named test in
|
||||
// `node-integration.js` (which only runs in Node.js). If making
|
||||
// changes here, be sure to adjust that test as well.
|
||||
it(typeof Symbol !== "undefined", "supports using symbols as names", function(log) {
|
||||
var s1 = Symbol("a-symbol");
|
||||
var s2 = Symbol("a-symbol");
|
||||
|
||||
var logger1 = log.getLogger(s1);
|
||||
var defaultLevel = logger1.getLevel();
|
||||
logger1.setLevel(log.levels.TRACE);
|
||||
|
||||
var logger2 = log.getLogger(s2);
|
||||
|
||||
// Should be unequal: same name, but different symbol instances
|
||||
expect(logger1).not.toEqual(logger2);
|
||||
expect(logger2.getLevel()).toEqual(defaultLevel);
|
||||
});
|
||||
});
|
||||
|
||||
describe("inheritance", function() {
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel
|
||||
});
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
it("loggers are created with the same level as the default logger", function(log) {
|
||||
log.setLevel("ERROR");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("error");
|
||||
});
|
||||
|
||||
it("if a logger's level is persisted, it uses that level rather than the default logger's level", function(log) {
|
||||
testHelpers.setStoredLevel("error", "newLogger");
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("error");
|
||||
});
|
||||
|
||||
it("other loggers do not change when the default logger's level is changed", function(log) {
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
log.setLevel("ERROR");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
expect(log.getLogger("newLogger")).toBeAtLevel("TRACE");
|
||||
});
|
||||
|
||||
it("loggers are created with the same methodFactory as the default logger", function(log) {
|
||||
log.methodFactory = function(methodName, level) {
|
||||
return function() {};
|
||||
};
|
||||
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger.methodFactory).toEqual(log.methodFactory);
|
||||
});
|
||||
|
||||
it("loggers have independent method factories", function(log) {
|
||||
var log1 = log.getLogger('logger1');
|
||||
var log2 = log.getLogger('logger2');
|
||||
|
||||
var log1Spy = jasmine.createSpy('log1spy');
|
||||
log1.methodFactory = function(methodName, level) {
|
||||
return log1Spy;
|
||||
};
|
||||
log1.setLevel(log1.getLevel());
|
||||
|
||||
var log2Spy = jasmine.createSpy('log2spy');
|
||||
log2.methodFactory = function(methodName, level) {
|
||||
return log2Spy;
|
||||
};
|
||||
log2.setLevel(log2.getLevel());
|
||||
|
||||
log1.error('test1');
|
||||
log2.error('test2');
|
||||
|
||||
expect(log1Spy).toHaveBeenCalledWith("test1");
|
||||
expect(log2Spy).toHaveBeenCalledWith("test2");
|
||||
});
|
||||
|
||||
it("new loggers correctly inherit a logging level of `0`", function(log) {
|
||||
log.setLevel(0);
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("trace");
|
||||
});
|
||||
});
|
||||
|
||||
describe("logger.resetLevel()", function() {
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel
|
||||
});
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
it("resets to the inherited level if no local level was set", function(log) {
|
||||
testHelpers.setStoredLevel("ERROR", "newLogger");
|
||||
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
|
||||
newLogger.resetLevel();
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
// resetLevel() should not have broken inheritance.
|
||||
log.setLevel("DEBUG");
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("DEBUG");
|
||||
});
|
||||
|
||||
it("resets to the inherited level if no default level was set", function(log) {
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
newLogger.setLevel("ERROR");
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
|
||||
newLogger.resetLevel();
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
// resetLevel() should not have broken inheritance.
|
||||
log.setLevel("DEBUG");
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("DEBUG");
|
||||
});
|
||||
|
||||
it("resets to the default level if one was set", function(log) {
|
||||
testHelpers.setStoredLevel("ERROR", "newLogger");
|
||||
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
newLogger.setDefaultLevel("INFO");
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
|
||||
newLogger.resetLevel();
|
||||
expect(newLogger).toBeAtLevel("INFO");
|
||||
|
||||
// resetLevel() should not have caused inheritance to start.
|
||||
log.setLevel("DEBUG");
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("INFO");
|
||||
});
|
||||
});
|
||||
|
||||
describe("logger.rebuild()", function() {
|
||||
beforeEach(function() {
|
||||
window.console = {"log" : jasmine.createSpy("console.log")};
|
||||
jasmine.addMatchers({
|
||||
"toBeAtLevel" : testHelpers.toBeAtLevel
|
||||
});
|
||||
testHelpers.clearStoredLevels();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
window.console = originalConsole;
|
||||
});
|
||||
|
||||
it("rebuilds existing child loggers", function(log) {
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
log.setLevel("ERROR");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
});
|
||||
|
||||
it("should not change a child's persisted level", function(log) {
|
||||
testHelpers.setStoredLevel("ERROR", "newLogger");
|
||||
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("ERROR");
|
||||
});
|
||||
|
||||
it("should not change a child's level set with `setLevel()`", function(log) {
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
newLogger.setLevel("DEBUG", false);
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("DEBUG");
|
||||
});
|
||||
|
||||
it("should not change a child's level set with `setDefaultLevel()`", function(log) {
|
||||
log.setLevel("TRACE");
|
||||
var newLogger = log.getLogger("newLogger");
|
||||
expect(newLogger).toBeAtLevel("TRACE");
|
||||
|
||||
newLogger.setDefaultLevel("DEBUG");
|
||||
log.rebuild();
|
||||
expect(newLogger).toBeAtLevel("DEBUG");
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
47
ExACTRegressionScripts/node_modules/loglevel/test/node-integration.js
generated
vendored
Normal file
47
ExACTRegressionScripts/node_modules/loglevel/test/node-integration.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
|
||||
describe("loglevel included via node", function () {
|
||||
it("is included successfully", function () {
|
||||
expect(require('../lib/loglevel')).not.toBeUndefined();
|
||||
});
|
||||
|
||||
it("allows setting the logging level", function () {
|
||||
var log = require('../lib/loglevel');
|
||||
|
||||
log.setLevel(log.levels.TRACE);
|
||||
log.setLevel(log.levels.DEBUG);
|
||||
log.setLevel(log.levels.INFO);
|
||||
log.setLevel(log.levels.WARN);
|
||||
log.setLevel(log.levels.ERROR);
|
||||
});
|
||||
|
||||
it("successfully logs", function () {
|
||||
var log = require('../lib/loglevel');
|
||||
console.info = jasmine.createSpy("info");
|
||||
|
||||
log.setLevel(log.levels.INFO);
|
||||
log.info("test message");
|
||||
|
||||
expect(console.info).toHaveBeenCalledWith("test message");
|
||||
});
|
||||
|
||||
// NOTE: this test is the same as the similarly-named test in
|
||||
// `multiple-logger-test.js` (which only runs in browsers). If making
|
||||
// changes here, be sure to adjust that test as well.
|
||||
it("supports using symbols as names", function() {
|
||||
var log = require('../lib/loglevel');
|
||||
|
||||
var s1 = Symbol("a-symbol");
|
||||
var s2 = Symbol("a-symbol");
|
||||
|
||||
var logger1 = log.getLogger(s1);
|
||||
var defaultLevel = logger1.getLevel();
|
||||
logger1.setLevel(log.levels.TRACE);
|
||||
|
||||
var logger2 = log.getLogger(s2);
|
||||
|
||||
// Should be unequal: same name, but different symbol instances
|
||||
expect(logger1).not.toEqual(logger2);
|
||||
expect(logger2.getLevel()).toEqual(defaultLevel);
|
||||
});
|
||||
});
|
||||
6
ExACTRegressionScripts/node_modules/loglevel/test/test-context-using-apply.js
generated
vendored
Normal file
6
ExACTRegressionScripts/node_modules/loglevel/test/test-context-using-apply.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
/* jshint node:true */
|
||||
var MyCustomLogger = (function() {
|
||||
// @include ../lib/loglevel.js
|
||||
return this.log;
|
||||
}).apply({});
|
||||
237
ExACTRegressionScripts/node_modules/loglevel/test/test-helpers.js
generated
vendored
Normal file
237
ExACTRegressionScripts/node_modules/loglevel/test/test-helpers.js
generated
vendored
Normal file
@@ -0,0 +1,237 @@
|
||||
"use strict";
|
||||
|
||||
if (typeof window === "undefined") {
|
||||
window = {};
|
||||
}
|
||||
|
||||
var logMethods = [
|
||||
"trace",
|
||||
"debug",
|
||||
"info",
|
||||
"warn",
|
||||
"error"
|
||||
];
|
||||
|
||||
define(function () {
|
||||
function getStorageKey(loggerName) {
|
||||
var key = "loglevel";
|
||||
if (loggerName) {
|
||||
key += ":" + loggerName;
|
||||
}
|
||||
return key;
|
||||
}
|
||||
|
||||
var self = {};
|
||||
|
||||
// Jasmine matcher to check the log level of a log object. Usage:
|
||||
// expect(log).toBeAtLevel("DEBUG");
|
||||
self.toBeAtLevel = function toBeAtLevel() {
|
||||
return {
|
||||
compare: function (log, level) {
|
||||
var expectedWorkingCalls = log.levels.SILENT - log.levels[level.toUpperCase()];
|
||||
var realLogMethod = window.console.log;
|
||||
var priorCalls = realLogMethod.calls.count();
|
||||
|
||||
for (var ii = 0; ii < logMethods.length; ii++) {
|
||||
var methodName = logMethods[ii];
|
||||
log[methodName](methodName);
|
||||
}
|
||||
|
||||
var actualCalls = realLogMethod.calls.count() - priorCalls;
|
||||
var actualLevel = logMethods[log.levels.SILENT - actualCalls];
|
||||
return {
|
||||
pass: actualCalls === expectedWorkingCalls,
|
||||
message: "Expected level to be '" + level + "' but found '" + actualLevel + "'"
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
self.isCookieStorageAvailable = function isCookieStorageAvailable() {
|
||||
if (window && window.document && window.document.cookie != null) {
|
||||
// We need to check not just that the cookie objects are available, but that they work, because
|
||||
// if we run from file:// URLs they appear present but are non-functional
|
||||
window.document.cookie = "test=hi;";
|
||||
|
||||
var result = window.document.cookie.indexOf('test=hi') !== -1;
|
||||
window.document.cookie = "test=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
|
||||
|
||||
return result;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
self.isLocalStorageAvailable = function isLocalStorageAvailable() {
|
||||
try {
|
||||
return !!window.localStorage;
|
||||
} catch (e){
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
self.isAnyLevelStoragePossible = function isAnyLevelStoragePossible() {
|
||||
return self.isCookieStorageAvailable() || self.isLocalStorageAvailable();
|
||||
};
|
||||
|
||||
// Check whether a cookie is storing the given level for the given logger
|
||||
// name. If level is `undefined`, this will check that it is *not* stored.
|
||||
function isLevelInCookie(level, name) {
|
||||
level = level === undefined ? undefined : level.toUpperCase();
|
||||
var storageKey = encodeURIComponent(getStorageKey(name));
|
||||
|
||||
if(level === undefined) {
|
||||
return window.document.cookie.indexOf(storageKey + "=") === -1;
|
||||
} else if (window.document.cookie.indexOf(storageKey + "=" + level) !== -1) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Jasmine matcher to check whether the given log level is in a cookie.
|
||||
// Usage: `expect("DEBUG").toBeTheLevelStoredByCookie("name-of-logger")`
|
||||
self.toBeTheLevelStoredByCookie = function toBeTheLevelStoredByCookie() {
|
||||
return {
|
||||
compare: function (actual, name) {
|
||||
return {
|
||||
pass: isLevelInCookie(actual, name),
|
||||
message: "Level '" + actual + "' for the " + (name || "default") + " logger is not stored in a cookie"
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// Check whether local storage is storing the given level for the given
|
||||
// logger name. If level is `undefined`, this will check that it is *not*
|
||||
// stored.
|
||||
function isLevelInLocalStorage(level, name) {
|
||||
level = level === undefined ? undefined : level.toUpperCase();
|
||||
|
||||
if (window.localStorage[getStorageKey(name)] === level) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Jasmine matcher to check whether the given log level is in local storage.
|
||||
// Usage: `expect("DEBUG").toBeTheLevelStoredByLocalStorage("name-of-logger")`
|
||||
self.toBeTheLevelStoredByLocalStorage = function toBeTheLevelStoredByLocalStorage() {
|
||||
return {
|
||||
compare: function (actual, name) {
|
||||
return {
|
||||
pass: isLevelInLocalStorage(actual, name),
|
||||
message: "Level '" + actual + "' for the " + (name || "default") + " logger is not stored in local storage"
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// Jasmine matcher to check whether a given level has been persisted.
|
||||
self.toBeTheStoredLevel = function toBeTheStoredLevel() {
|
||||
return {
|
||||
compare: function (actual, name) {
|
||||
return {
|
||||
pass: isLevelInLocalStorage(actual, name) ||
|
||||
isLevelInCookie(actual, name),
|
||||
message: "Level '" + actual + "' is not persisted for the " + (name || "default") + " logger"
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
self.setCookieStoredLevel = function setCookieStoredLevel(level, name) {
|
||||
window.document.cookie =
|
||||
encodeURIComponent(getStorageKey(name)) + "=" +
|
||||
level.toUpperCase() + ";";
|
||||
};
|
||||
|
||||
self.setLocalStorageStoredLevel = function setLocalStorageStoredLevel(level, name) {
|
||||
window.localStorage[getStorageKey(name)] = level.toUpperCase();
|
||||
};
|
||||
|
||||
self.setStoredLevel = function setStoredLevel(level, name) {
|
||||
if (self.isCookieStorageAvailable()) {
|
||||
self.setCookieStoredLevel(level, name);
|
||||
}
|
||||
if (self.isLocalStorageAvailable()) {
|
||||
self.setLocalStorageStoredLevel(level, name);
|
||||
}
|
||||
};
|
||||
|
||||
self.clearStoredLevels = function clearStoredLevels() {
|
||||
if (self.isLocalStorageAvailable()) {
|
||||
window.localStorage.clear();
|
||||
}
|
||||
if (self.isCookieStorageAvailable()) {
|
||||
var storedKeys = window.document.cookie.match(/(?:^|;\s)(loglevel(%3a\w+)?)(?=\=)/ig);
|
||||
if (storedKeys) {
|
||||
for (var i = 0; i < storedKeys.length; i++) {
|
||||
window.document.cookie = storedKeys[i] + "=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
self.describeIf = function describeIf(condition, name, test) {
|
||||
var env = jasmine.getEnv();
|
||||
var implementation = condition ? env.describe : env.xdescribe;
|
||||
return implementation(name, test);
|
||||
};
|
||||
|
||||
self.itIf = function itIf(condition, name, test) {
|
||||
var env = jasmine.getEnv();
|
||||
var implementation = condition ? env.it : env.xit;
|
||||
return implementation(name, test);
|
||||
};
|
||||
|
||||
// Forcibly reloads loglevel and asynchronously hands the resulting log to
|
||||
// a callback.
|
||||
self.withFreshLog = function withFreshLog(toRun, onError) {
|
||||
require.undef("lib/loglevel");
|
||||
|
||||
require(['lib/loglevel'], function(log) {
|
||||
toRun(log);
|
||||
});
|
||||
};
|
||||
|
||||
// Wraps Jasmine's `it(name, test)` call to reload the loglevel module
|
||||
// for the given test. An optional boolean first argument causes this to
|
||||
// behave like `itIf()` instead of `it()`.
|
||||
//
|
||||
// Normal usage:
|
||||
// itWithFreshLog("test name", function(log) {
|
||||
// // test code
|
||||
// });
|
||||
//
|
||||
// Conditional usage:
|
||||
// itWithFreshLog(shouldRunTest(), "test name", function(log) {
|
||||
// // test code
|
||||
// });
|
||||
self.itWithFreshLog = function itWithFreshLog(condition, name, test) {
|
||||
if (!test) {
|
||||
test = name;
|
||||
name = condition;
|
||||
condition = true;
|
||||
}
|
||||
|
||||
self.itIf(condition, name, function(done) {
|
||||
function runTest (log) {
|
||||
if (test.length > 1) {
|
||||
return test(log, done);
|
||||
} else {
|
||||
try {
|
||||
test(log);
|
||||
done();
|
||||
} catch (error) {
|
||||
done.fail(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
self.withFreshLog(runTest);
|
||||
});
|
||||
};
|
||||
|
||||
return self;
|
||||
});
|
||||
8
ExACTRegressionScripts/node_modules/loglevel/test/type-test.ts
generated
vendored
Normal file
8
ExACTRegressionScripts/node_modules/loglevel/test/type-test.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import * as log from '..';
|
||||
|
||||
log.setLevel('warn');
|
||||
log.warn('Test warning');
|
||||
|
||||
// CoreJS defines a global `log` variable. We need to make sure that
|
||||
// that doesn't conflict with the loglevel typings:
|
||||
import * as _coreJS from 'core-js';
|
||||
274
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/README.md
generated
vendored
Normal file
274
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/README.md
generated
vendored
Normal file
@@ -0,0 +1,274 @@
|
||||
# FORK OF grunt-template-jasmine-requirejs
|
||||
|
||||
This is a local fork of the grunt-template-jasmine-requirejs package, which is no longer maintained. It is based on commit 0d5f278c19b997a19bd894d354078b64b0453698 from https://github.com/cloudchen/grunt-template-jasmine-requirejs.
|
||||
|
||||
This copy includes slight tweaks in order to maintain compatibility with the versions of Grunt and other tools in use by loglevel. All changes are marked by `LOGLEVEL-FORK:` and `END LOGLEVEL-FORK` comments, e.g:
|
||||
|
||||
```js
|
||||
// LOGLEVEL-FORK: Work with current versions of lodash.
|
||||
return _.template("xyz")({ data: "ok" });
|
||||
// END LOGLEVEL-FORK
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
RequireJS template for Jasmine unit tests [](https://travis-ci.org/cloudchen/grunt-template-jasmine-requirejs)
|
||||
-----------------------------------------
|
||||
|
||||
## Installation
|
||||
By default, this template works with Jasmine 2.x
|
||||
```
|
||||
npm install grunt-template-jasmine-requirejs --save-dev
|
||||
```
|
||||
|
||||
## Support for both Jasmine 1.x and 2.x
|
||||
You'd install `~0.1` version of this template if your test specs are based on Jasmine 1.x
|
||||
```
|
||||
npm install grunt-template-jasmine-requirejs@~0.1 --save-dev
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### vendor
|
||||
Type: `String|Array`
|
||||
|
||||
Works same as original. But they are loaded **before** require.js script file
|
||||
|
||||
### helpers
|
||||
Type: `String|Array`
|
||||
|
||||
Works same as original. But they are loaded **after** require.js script file
|
||||
|
||||
## Template Options
|
||||
|
||||
### templateOptions.version
|
||||
Type: `String`
|
||||
Options: `2.0.0` to `2.1.10` or path to a local file system version(relative to Gruntfile.js). Absolute path is allowed as well. Default: latest requirejs version included
|
||||
|
||||
The version of requirejs to use.
|
||||
|
||||
### templateOptions.requireConfigFile
|
||||
Type `String` or `Array`
|
||||
|
||||
This can be a single path to a require config file or an array of paths to multiple require config files. The configuration is extracted from the require.config({}) call(s) in the file, and is passed into the require.config({}) call in the template.
|
||||
|
||||
Files are loaded from left to right (using a deep merge). This is so you can have a main config and then override specific settings in additional config files (like a test config) without having to duplicate entire requireJS configs.
|
||||
|
||||
If `requireConfig` is also specified then it will be deep-merged onto the settings specified by this directive.
|
||||
|
||||
### templateOptions.requireConfig
|
||||
Type: `Object`
|
||||
|
||||
This object is `JSON.stringify()`-ed ( **support serialize Function object** ) into the template and passed into `var require` variable
|
||||
|
||||
If `requireConfigFile` is specified then it will be loaded first and the settings specified by this directive will be deep-merged onto those.
|
||||
|
||||
|
||||
## Sample usage
|
||||
|
||||
```js
|
||||
// Example configuration using a single requireJS config file
|
||||
grunt.initConfig({
|
||||
connect: {
|
||||
test : {
|
||||
port : 8000
|
||||
}
|
||||
},
|
||||
jasmine: {
|
||||
taskName: {
|
||||
src: 'src/**/*.js',
|
||||
options: {
|
||||
specs: 'spec/*Spec.js',
|
||||
helpers: 'spec/*Helper.js',
|
||||
host: 'http://127.0.0.1:8000/',
|
||||
template: require('grunt-template-jasmine-requirejs'),
|
||||
templateOptions: {
|
||||
requireConfigFile: 'src/main.js'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
```js
|
||||
// Example configuration using an inline requireJS config
|
||||
grunt.initConfig({
|
||||
connect: {
|
||||
test : {
|
||||
port : 8000
|
||||
}
|
||||
},
|
||||
jasmine: {
|
||||
taskName: {
|
||||
src: 'src/**/*.js',
|
||||
options: {
|
||||
specs: 'spec/*Spec.js',
|
||||
helpers: 'spec/*Helper.js',
|
||||
host: 'http://127.0.0.1:8000/',
|
||||
template: require('grunt-template-jasmine-requirejs'),
|
||||
templateOptions: {
|
||||
requireConfig: {
|
||||
baseUrl: 'src/',
|
||||
paths: {
|
||||
"jquery": "path/to/jquery"
|
||||
},
|
||||
shim: {
|
||||
'foo': {
|
||||
deps: ['bar'],
|
||||
exports: 'Foo',
|
||||
init: function (bar) {
|
||||
return this.Foo.noConflict();
|
||||
}
|
||||
}
|
||||
},
|
||||
deps: ['jquery'],
|
||||
callback: function($) {
|
||||
// do initialization stuff
|
||||
/*
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
|
||||
```js
|
||||
// Example using a base requireJS config file and specifying
|
||||
// overrides with an inline requireConfig file.
|
||||
grunt.initConfig({
|
||||
connect: {
|
||||
test : {
|
||||
port : 8000
|
||||
}
|
||||
},
|
||||
jasmine: {
|
||||
taskName: {
|
||||
src: 'src/**/*.js',
|
||||
options: {
|
||||
specs: 'spec/*Spec.js',
|
||||
helpers: 'spec/*Helper.js',
|
||||
host: 'http://127.0.0.1:8000/',
|
||||
template: require('grunt-template-jasmine-requirejs'),
|
||||
templateOptions: {
|
||||
requireConfigFile: 'src/main.js',
|
||||
requireConfig: {
|
||||
baseUrl: 'overridden/baseUrl',
|
||||
shim: {
|
||||
// foo will override the 'foo' shim in main.js
|
||||
'foo': {
|
||||
deps: ['bar'],
|
||||
exports: 'Foo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
```js
|
||||
// Example using a multiple requireJS config files. Useful for
|
||||
// testing.
|
||||
grunt.initConfig({
|
||||
connect: {
|
||||
test : {
|
||||
port : 8000
|
||||
}
|
||||
},
|
||||
jasmine: {
|
||||
taskName: {
|
||||
src: 'src/**/*.js',
|
||||
options: {
|
||||
specs: 'spec/*Spec.js',
|
||||
helpers: 'spec/*Helper.js',
|
||||
host: 'http://127.0.0.1:8000/',
|
||||
template: require('grunt-template-jasmine-requirejs'),
|
||||
templateOptions: {
|
||||
requireConfigFile: ['src/config.js', 'spec/config.js']
|
||||
requireConfig: {
|
||||
baseUrl: 'overridden/baseUrl'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
*Note* the usage of the 'connect' task configuration. You will need to use a task like
|
||||
[grunt-contrib-connect][] if you need to test your tasks on a running server.
|
||||
|
||||
[grunt-contrib-connect]: https://github.com/gruntjs/grunt-contrib-connect
|
||||
|
||||
## RequireJS notes
|
||||
|
||||
If you end up using this template, it's worth looking at the
|
||||
[source]() in order to familiarize yourself with how it loads your files. The load process
|
||||
consists of a series of nested `require` blocks, incrementally loading your source and specs:
|
||||
|
||||
```js
|
||||
require([*YOUR SOURCE*], function() {
|
||||
require([*YOUR SPECS*], function() {
|
||||
require([*GRUNT-CONTRIB-JASMINE FILES*], function() {
|
||||
// at this point your tests are already running.
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If "callback" function is defined in requireConfig, above code will be injected to the end of body of "callback" definition
|
||||
```js
|
||||
templateOptions: {
|
||||
callback: function() {
|
||||
// suppose we define a module here
|
||||
define("config", {
|
||||
"endpoint": "/path/to/endpoint"
|
||||
})
|
||||
}
|
||||
}
|
||||
```
|
||||
Generated runner page with require configuration looks like:
|
||||
```js
|
||||
var require = {
|
||||
...
|
||||
callback: function() {
|
||||
// suppose we define a module here
|
||||
define("config", {
|
||||
"endpoint": "/path/to/endpoint"
|
||||
})
|
||||
|
||||
require([*YOUR SOURCE*], function() {
|
||||
require([*YOUR SPECS*], function() {
|
||||
require([*GRUNT-CONTRIB-JASMINE FILES*], function() {
|
||||
// at this point your tests are already running.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
...
|
||||
}
|
||||
```
|
||||
This automation can help to avoid unexpected dependency order issue
|
||||
|
||||
## Change Log
|
||||
* v0.2.3 Fixed path issues [#77](https://github.com/cloudchen/grunt-template-jasmine-requirejs/pull/77)
|
||||
* v0.2.2 Fixed regression which casued by [#65](https://github.com/cloudchen/grunt-template-jasmine-requirejs/pull/65)
|
||||
* v0.2.1 Fixed [#65](https://github.com/cloudchen/grunt-template-jasmine-requirejs/pull/65)
|
||||
* v0.2.0 Added Jasmine 2 support
|
||||
* v0.1.10 03.14.14, Fixed [#53](https://github.com/cloudchen/grunt-template-jasmine-requirejs/pull/53), [#52](https://github.com/cloudchen/grunt-template-jasmine-requirejs/issues/52), [#46](https://github.com/cloudchen/grunt-template-jasmine-requirejs/issues/46), [#36](https://github.com/cloudchen/grunt-template-jasmine-requirejs/issues/36) wrong path error when runner outfile is specified at elsewhere
|
||||
* v0.1.9, 02.04.14, [#57](https://github.com/cloudchen/grunt-template-jasmine-requirejs/issues/57) prevents conflict with `grunt-contrib-jasmine` 0.6.x, added requirejs 2.1.9 & 2.1.10
|
||||
|
||||
### Authors / Maintainers
|
||||
|
||||
- Jarrod Overson (@jsoverson)
|
||||
- Cloud Chen (@cloudchen)
|
||||
52
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/package.json
generated
vendored
Normal file
52
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/package.json
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "grunt-template-jasmine-requirejs",
|
||||
"version": "0.2.3",
|
||||
"description": "Requirejs template for grunt-contrib-jasmine",
|
||||
"main": "src/template-jasmine-requirejs.js",
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cloudchen/grunt-template-jasmine-requirejs"
|
||||
},
|
||||
"keywords": [
|
||||
"grunt",
|
||||
"template",
|
||||
"requirejs",
|
||||
"jasmine",
|
||||
"test"
|
||||
],
|
||||
"author": "Cloud Chen <cloudcmh@gmail.com>",
|
||||
"contributors": [
|
||||
"Gunnar A. Reinseth <gar@prepost.net>",
|
||||
"Tim Snadden <tim@snadden.com>",
|
||||
"James Pamplin <james@jamespamplin.com>",
|
||||
"Jarrod Overson <joverson@onehealth.com>",
|
||||
"Jarrod Overson <jsoverson@gmail.com>",
|
||||
"Cina S <cinas@spiceworks.com>",
|
||||
"tmartensen <travis.martensen@gmail.com>",
|
||||
"Kevin Chiu <korprulu9@gmail.com>",
|
||||
"Ohgyun Ahn <ohgyun@gmail.com>",
|
||||
"Ross-Hunter <ross-hunter@ross-hunter.com>",
|
||||
"Celso Ulises Juarez Ramirez <celsojuarez@gmail.com>",
|
||||
"Kevin Chiu <kevin@readmoo.com>",
|
||||
"Zach Dennis <zach.dennis@gmail.com>",
|
||||
"reinseth <gar@prepost.net>",
|
||||
"Ben <benjamin.livermore@cengage.com>",
|
||||
"Ben Livermore <benjamin.livermore@cengage.com>",
|
||||
"Ghn <ghugon@gmail.com>",
|
||||
"E.J. Dyksen <ej@dyksen.net>",
|
||||
"Brian Ng <bng@prospricing.com>"
|
||||
],
|
||||
"license": "BSD",
|
||||
"devDependencies": {
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-watch": "~0.1.4",
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-jasmine": "~0.6",
|
||||
"grunt-contrib-connect": "~0.2.0",
|
||||
"grunt-bump": "0.0.13",
|
||||
"grunt-npm": "0.0.2"
|
||||
}
|
||||
}
|
||||
3569
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/esprima.js
generated
vendored
Normal file
3569
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/esprima.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
146
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/lang.js
generated
vendored
Normal file
146
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/lang.js
generated
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||||
* Available via the MIT or new BSD license.
|
||||
* see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var lang,
|
||||
hasOwn = Object.prototype.hasOwnProperty;
|
||||
|
||||
function hasProp(obj, prop) {
|
||||
return hasOwn.call(obj, prop);
|
||||
}
|
||||
|
||||
lang = {
|
||||
backSlashRegExp: /\\/g,
|
||||
ostring: Object.prototype.toString,
|
||||
|
||||
isArray: Array.isArray || function(it) {
|
||||
return lang.ostring.call(it) === "[object Array]";
|
||||
},
|
||||
|
||||
isFunction: function(it) {
|
||||
return lang.ostring.call(it) === "[object Function]";
|
||||
},
|
||||
|
||||
isRegExp: function(it) {
|
||||
return it && it instanceof RegExp;
|
||||
},
|
||||
|
||||
hasProp: hasProp,
|
||||
|
||||
//returns true if the object does not have an own property prop,
|
||||
//or if it does, it is a falsy value.
|
||||
falseProp: function(obj, prop) {
|
||||
return !hasProp(obj, prop) || !obj[prop];
|
||||
},
|
||||
|
||||
//gets own property value for given prop on object
|
||||
getOwn: function(obj, prop) {
|
||||
return hasProp(obj, prop) && obj[prop];
|
||||
},
|
||||
|
||||
_mixin: function(dest, source, override) {
|
||||
var name;
|
||||
for (name in source) {
|
||||
if (source.hasOwnProperty(name)
|
||||
&& (override || !dest.hasOwnProperty(name))) {
|
||||
dest[name] = source[name];
|
||||
}
|
||||
}
|
||||
|
||||
return dest; // Object
|
||||
},
|
||||
|
||||
/**
|
||||
* mixin({}, obj1, obj2) is allowed. If the last argument is a boolean,
|
||||
* then the source objects properties are force copied over to dest.
|
||||
*/
|
||||
mixin: function(dest) {
|
||||
var parameters = Array.prototype.slice.call(arguments),
|
||||
override, i, l;
|
||||
|
||||
if (!dest) {
|
||||
dest = {};
|
||||
}
|
||||
|
||||
if (parameters.length > 2 && typeof arguments[parameters.length - 1] === 'boolean') {
|
||||
override = parameters.pop();
|
||||
}
|
||||
|
||||
for (i = 1, l = parameters.length; i < l; i++) {
|
||||
lang._mixin(dest, parameters[i], override);
|
||||
}
|
||||
return dest; // Object
|
||||
},
|
||||
|
||||
delegate: (function() {
|
||||
// boodman/crockford delegation w/ cornford optimization
|
||||
function TMP() {
|
||||
}
|
||||
|
||||
return function(obj, props) {
|
||||
TMP.prototype = obj;
|
||||
var tmp = new TMP();
|
||||
TMP.prototype = null;
|
||||
if (props) {
|
||||
lang.mixin(tmp, props);
|
||||
}
|
||||
return tmp; // Object
|
||||
};
|
||||
}()),
|
||||
|
||||
/**
|
||||
* Helper function for iterating over an array. If the func returns
|
||||
* a true value, it will break out of the loop.
|
||||
*/
|
||||
each: function each(ary, func) {
|
||||
if (ary) {
|
||||
var i;
|
||||
for (i = 0; i < ary.length; i += 1) {
|
||||
if (func(ary[i], i, ary)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Cycles over properties in an object and calls a function for each
|
||||
* property value. If the function returns a truthy value, then the
|
||||
* iteration is stopped.
|
||||
*/
|
||||
eachProp: function eachProp(obj, func) {
|
||||
var prop;
|
||||
for (prop in obj) {
|
||||
if (hasProp(obj, prop)) {
|
||||
if (func(obj[prop], prop)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
//Similar to Function.prototype.bind, but the "this" object is specified
|
||||
//first, since it is easier to read/figure out what "this" will be.
|
||||
bind: function bind(obj, fn) {
|
||||
return function() {
|
||||
return fn.apply(obj, arguments);
|
||||
};
|
||||
},
|
||||
|
||||
//Escapes a content string to be be a string that has characters escaped
|
||||
//for inclusion as part of a JS string.
|
||||
jsEscape: function(content) {
|
||||
return content.replace(/(["'\\])/g, '\\$1')
|
||||
.replace(/[\f]/g, "\\f")
|
||||
.replace(/[\b]/g, "\\b")
|
||||
.replace(/[\n]/g, "\\n")
|
||||
.replace(/[\t]/g, "\\t")
|
||||
.replace(/[\r]/g, "\\r");
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = lang;
|
||||
819
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/parse.js
generated
vendored
Normal file
819
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/lib/parse.js
generated
vendored
Normal file
@@ -0,0 +1,819 @@
|
||||
/**
|
||||
* @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||||
* Available via the MIT or new BSD license.
|
||||
* see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var esprima = require('./esprima'),
|
||||
lang = require('./lang');
|
||||
|
||||
function arrayToString(ary) {
|
||||
var output = '[';
|
||||
if (ary) {
|
||||
ary.forEach(function(item, i) {
|
||||
output += (i > 0 ? ',' : '') + '"' + lang.jsEscape(item) + '"';
|
||||
});
|
||||
}
|
||||
output += ']';
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
//This string is saved off because JSLint complains
|
||||
//about obj.arguments use, as 'reserved word'
|
||||
var argPropName = 'arguments';
|
||||
|
||||
//From an esprima example for traversing its ast.
|
||||
function traverse(object, visitor) {
|
||||
var key, child;
|
||||
|
||||
if (!object) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (visitor.call(null, object) === false) {
|
||||
return false;
|
||||
}
|
||||
for (key in object) {
|
||||
if (object.hasOwnProperty(key)) {
|
||||
child = object[key];
|
||||
if (typeof child === 'object' && child !== null) {
|
||||
if (traverse(child, visitor) === false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Pulls out dependencies from an array literal with just string members.
|
||||
* If string literals, will just return those string values in an array,
|
||||
* skipping other items in the array.
|
||||
*
|
||||
* @param {Node} node an AST node.
|
||||
*
|
||||
* @returns {Array} an array of strings.
|
||||
* If null is returned, then it means the input node was not a valid
|
||||
* dependency.
|
||||
*/
|
||||
function getValidDeps(node) {
|
||||
if (!node || node.type !== 'ArrayExpression' || !node.elements) {
|
||||
return;
|
||||
}
|
||||
|
||||
var deps = [];
|
||||
|
||||
node.elements.some(function(elem) {
|
||||
if (elem.type === 'Literal') {
|
||||
deps.push(elem.value);
|
||||
}
|
||||
});
|
||||
|
||||
return deps.length ? deps : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Main parse function. Returns a string of any valid require or
|
||||
* define/require.def calls as part of one JavaScript source string.
|
||||
* @param {String} moduleName the module name that represents this file.
|
||||
* It is used to create a default define if there is not one already for the
|
||||
* file. This allows properly tracing dependencies for builds. Otherwise, if
|
||||
* the file just has a require() call, the file dependencies will not be
|
||||
* properly reflected: the file will come before its dependencies.
|
||||
* @param {String} moduleName
|
||||
* @param {String} fileName
|
||||
* @param {String} fileContents
|
||||
* @param {Object} options optional options. insertNeedsDefine: true will
|
||||
* add calls to require.needsDefine() if appropriate.
|
||||
* @returns {String} JS source string or null, if no require or
|
||||
* define/require.def calls are found.
|
||||
*/
|
||||
function parse(moduleName, fileName, fileContents, options) {
|
||||
options = options || {};
|
||||
|
||||
//Set up source input
|
||||
var i, moduleCall, depString,
|
||||
moduleDeps = [],
|
||||
result = '',
|
||||
moduleList = [],
|
||||
needsDefine = true,
|
||||
astRoot = esprima.parse(fileContents);
|
||||
|
||||
parse.recurse(astRoot, function(callName, config, name, deps) {
|
||||
if (!deps) {
|
||||
deps = [];
|
||||
}
|
||||
|
||||
if (callName === 'define' && (!name || name === moduleName)) {
|
||||
needsDefine = false;
|
||||
}
|
||||
|
||||
if (!name) {
|
||||
//If there is no module name, the dependencies are for
|
||||
//this file/default module name.
|
||||
moduleDeps = moduleDeps.concat(deps);
|
||||
} else {
|
||||
moduleList.push({
|
||||
name: name,
|
||||
deps: deps
|
||||
});
|
||||
}
|
||||
|
||||
//If define was found, no need to dive deeper, unless
|
||||
//the config explicitly wants to dig deeper.
|
||||
return !!options.findNestedDependencies;
|
||||
}, options);
|
||||
|
||||
if (options.insertNeedsDefine && needsDefine) {
|
||||
result += 'require.needsDefine("' + moduleName + '");';
|
||||
}
|
||||
|
||||
if (moduleDeps.length || moduleList.length) {
|
||||
for (i = 0; i < moduleList.length; i++) {
|
||||
moduleCall = moduleList[i];
|
||||
if (result) {
|
||||
result += '\n';
|
||||
}
|
||||
|
||||
//If this is the main module for this file, combine any
|
||||
//"anonymous" dependencies (could come from a nested require
|
||||
//call) with this module.
|
||||
if (moduleCall.name === moduleName) {
|
||||
moduleCall.deps = moduleCall.deps.concat(moduleDeps);
|
||||
moduleDeps = [];
|
||||
}
|
||||
|
||||
depString = arrayToString(moduleCall.deps);
|
||||
result += 'define("' + moduleCall.name + '",' +
|
||||
depString + ');';
|
||||
}
|
||||
if (moduleDeps.length) {
|
||||
if (result) {
|
||||
result += '\n';
|
||||
}
|
||||
depString = arrayToString(moduleDeps);
|
||||
result += 'define("' + moduleName + '",' + depString + ');';
|
||||
}
|
||||
}
|
||||
|
||||
return result || null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles parsing a file recursively for require calls.
|
||||
* @param {Array} parentNode the AST node to start with.
|
||||
* @param {Function} onMatch function to call on a parse match.
|
||||
* @param {Object} [options] This is normally the build config options if
|
||||
* it is passed.
|
||||
*/
|
||||
parse.recurse = function(object, onMatch, options) {
|
||||
//Like traverse, but skips if branches that would not be processed
|
||||
//after has application that results in tests of true or false boolean
|
||||
//literal values.
|
||||
var key, child,
|
||||
hasHas = options && options.has;
|
||||
|
||||
if (!object) {
|
||||
return;
|
||||
}
|
||||
|
||||
//If has replacement has resulted in if(true){} or if(false){}, take
|
||||
//the appropriate branch and skip the other one.
|
||||
if (hasHas && object.type === 'IfStatement' && object.test.type &&
|
||||
object.test.type === 'Literal') {
|
||||
if (object.test.value) {
|
||||
//Take the if branch
|
||||
this.recurse(object.consequent, onMatch, options);
|
||||
} else {
|
||||
//Take the else branch
|
||||
this.recurse(object.alternate, onMatch, options);
|
||||
}
|
||||
} else {
|
||||
if (this.parseNode(object, onMatch) === false) {
|
||||
return;
|
||||
}
|
||||
for (key in object) {
|
||||
if (object.hasOwnProperty(key)) {
|
||||
child = object[key];
|
||||
if (typeof child === 'object' && child !== null) {
|
||||
this.recurse(child, onMatch, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines if the file defines the require/define module API.
|
||||
* Specifically, it looks for the `define.amd = ` expression.
|
||||
* @param {String} fileName
|
||||
* @param {String} fileContents
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
parse.definesRequire = function(fileName, fileContents) {
|
||||
var found = false;
|
||||
|
||||
traverse(esprima.parse(fileContents), function(node) {
|
||||
if (parse.hasDefineAmd(node)) {
|
||||
found = true;
|
||||
|
||||
//Stop traversal
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
return found;
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds require("") calls inside a CommonJS anonymous module wrapped in a
|
||||
* define(function(require, exports, module){}) wrapper. These dependencies
|
||||
* will be added to a modified define() call that lists the dependencies
|
||||
* on the outside of the function.
|
||||
* @param {String} fileName
|
||||
* @param {String} fileContents
|
||||
* @returns {Array} an array of module names that are dependencies. Always
|
||||
* returns an array, but could be of length zero.
|
||||
*/
|
||||
parse.getAnonDeps = function(fileName, fileContents) {
|
||||
var astRoot = esprima.parse(fileContents),
|
||||
defFunc = this.findAnonDefineFactory(astRoot);
|
||||
|
||||
return parse.getAnonDepsFromNode(defFunc);
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds require("") calls inside a CommonJS anonymous module wrapped
|
||||
* in a define function, given an AST node for the definition function.
|
||||
* @param {Node} node the AST node for the definition function.
|
||||
* @returns {Array} and array of dependency names. Can be of zero length.
|
||||
*/
|
||||
parse.getAnonDepsFromNode = function(node) {
|
||||
var deps = [],
|
||||
funcArgLength;
|
||||
|
||||
if (node) {
|
||||
this.findRequireDepNames(node, deps);
|
||||
|
||||
//If no deps, still add the standard CommonJS require, exports,
|
||||
//module, in that order, to the deps, but only if specified as
|
||||
//function args. In particular, if exports is used, it is favored
|
||||
//over the return value of the function, so only add it if asked.
|
||||
funcArgLength = node.params && node.params.length;
|
||||
if (funcArgLength) {
|
||||
deps = (funcArgLength > 1 ? ["require", "exports", "module"] :
|
||||
["require"]).concat(deps);
|
||||
}
|
||||
}
|
||||
return deps;
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds the function in define(function (require, exports, module){});
|
||||
* @param {Array} node
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
parse.findAnonDefineFactory = function(node) {
|
||||
var match;
|
||||
|
||||
traverse(node, function(node) {
|
||||
var arg0, arg1;
|
||||
|
||||
if (node && node.type === 'CallExpression' &&
|
||||
node.callee && node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'define' && node[argPropName]) {
|
||||
|
||||
//Just the factory function passed to define
|
||||
arg0 = node[argPropName][0];
|
||||
if (arg0 && arg0.type === 'FunctionExpression') {
|
||||
match = arg0;
|
||||
return false;
|
||||
}
|
||||
|
||||
//A string literal module ID followed by the factory function.
|
||||
arg1 = node[argPropName][1];
|
||||
if (arg0.type === 'Literal' &&
|
||||
arg1 && arg1.type === 'FunctionExpression') {
|
||||
match = arg1;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return match;
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds any config that is passed to requirejs. That includes calls to
|
||||
* require/requirejs.config(), as well as require({}, ...) and
|
||||
* requirejs({}, ...)
|
||||
* @param {String} fileContents
|
||||
*
|
||||
* @returns {Object} a config details object with the following properties:
|
||||
* - config: {Object} the config object found. Can be undefined if no
|
||||
* config found.
|
||||
* - range: {Array} the start index and end index in the contents where
|
||||
* the config was found. Can be undefined if no config found.
|
||||
* Can throw an error if the config in the file cannot be evaluated in
|
||||
* a build context to valid JavaScript.
|
||||
*/
|
||||
parse.findConfig = function(fileContents) {
|
||||
/*jslint evil: true */
|
||||
var jsConfig, foundRange, foundConfig,
|
||||
astRoot = esprima.parse(fileContents, {
|
||||
range: true
|
||||
});
|
||||
|
||||
traverse(astRoot, function(node) {
|
||||
var arg,
|
||||
requireType = parse.hasRequire(node);
|
||||
|
||||
if (requireType && (requireType === 'require' ||
|
||||
requireType === 'requirejs' ||
|
||||
requireType === 'requireConfig' ||
|
||||
requireType === 'requirejsConfig')) {
|
||||
|
||||
arg = node[argPropName] && node[argPropName][0];
|
||||
|
||||
if (arg && arg.type === 'ObjectExpression') {
|
||||
jsConfig = parse.nodeToString(fileContents, arg);
|
||||
foundRange = arg.range;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
arg = parse.getRequireObjectLiteral(node);
|
||||
if (arg) {
|
||||
jsConfig = parse.nodeToString(fileContents, arg);
|
||||
foundRange = arg.range;
|
||||
return false;
|
||||
} else {
|
||||
arg = parse.getObjectLiteral(node);
|
||||
if (arg) {
|
||||
jsConfig = parse.nodeToString(fileContents, arg);
|
||||
foundRange = arg.range;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (jsConfig) {
|
||||
foundConfig = eval('(' + jsConfig + ')');
|
||||
}
|
||||
|
||||
return {
|
||||
config: foundConfig,
|
||||
range: foundRange
|
||||
};
|
||||
};
|
||||
|
||||
/** Returns the node for the object literal assigned to require/requirejs,
|
||||
* for holding a declarative config.
|
||||
*/
|
||||
parse.getRequireObjectLiteral = function(node) {
|
||||
if (node.id && node.id.type === 'Identifier' &&
|
||||
(node.id.name === 'require' || node.id.name === 'requirejs') &&
|
||||
node.init && node.init.type === 'ObjectExpression') {
|
||||
return node.init;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* for holding requirejs build file
|
||||
*/
|
||||
parse.getObjectLiteral = function (node) {
|
||||
if (node.type && node.type === 'ExpressionStatement' &&
|
||||
(node.expression && !node.arguments) &&
|
||||
(node.expression.type && node.expression.type === 'ObjectExpression') &&
|
||||
(node.expression.properties && node.expression.properties.length > 0) &&
|
||||
(node.expression.properties[0].type && node.expression.properties[0].type === 'Property'))
|
||||
|
||||
return node;
|
||||
};
|
||||
/**
|
||||
* Renames require/requirejs/define calls to be ns + '.' + require/requirejs/define
|
||||
* Does *not* do .config calls though. See pragma.namespace for the complete
|
||||
* set of namespace transforms. This function is used because require calls
|
||||
* inside a define() call should not be renamed, so a simple regexp is not
|
||||
* good enough.
|
||||
* @param {String} fileContents the contents to transform.
|
||||
* @param {String} ns the namespace, *not* including trailing dot.
|
||||
* @return {String} the fileContents with the namespace applied
|
||||
*/
|
||||
parse.renameNamespace = function(fileContents, ns) {
|
||||
var ranges = [],
|
||||
astRoot = esprima.parse(fileContents, {
|
||||
range: true
|
||||
});
|
||||
|
||||
parse.recurse(astRoot, function(callName, config, name, deps, node) {
|
||||
ranges.push(node.range);
|
||||
//Do not recurse into define functions, they should be using
|
||||
//local defines.
|
||||
return callName !== 'define';
|
||||
}, {});
|
||||
|
||||
//Go backwards through the found ranges, adding in the namespace name
|
||||
//in front.
|
||||
ranges.reverse();
|
||||
ranges.forEach(function(range) {
|
||||
fileContents = fileContents.substring(0, range[0]) +
|
||||
ns + '.' +
|
||||
fileContents.substring(range[0]);
|
||||
});
|
||||
|
||||
return fileContents;
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds all dependencies specified in dependency arrays and inside
|
||||
* simplified commonjs wrappers.
|
||||
* @param {String} fileName
|
||||
* @param {String} fileContents
|
||||
*
|
||||
* @returns {Array} an array of dependency strings. The dependencies
|
||||
* have not been normalized, they may be relative IDs.
|
||||
*/
|
||||
parse.findDependencies = function(fileName, fileContents, options) {
|
||||
var dependencies = [],
|
||||
astRoot = esprima.parse(fileContents);
|
||||
|
||||
parse.recurse(astRoot, function(callName, config, name, deps) {
|
||||
if (deps) {
|
||||
dependencies = dependencies.concat(deps);
|
||||
}
|
||||
}, options);
|
||||
|
||||
return dependencies;
|
||||
};
|
||||
|
||||
/**
|
||||
* Finds only CJS dependencies, ones that are the form
|
||||
* require('stringLiteral')
|
||||
*/
|
||||
parse.findCjsDependencies = function(fileName, fileContents) {
|
||||
var dependencies = [];
|
||||
|
||||
traverse(esprima.parse(fileContents), function(node) {
|
||||
var arg;
|
||||
|
||||
if (node && node.type === 'CallExpression' && node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'require' && node[argPropName] &&
|
||||
node[argPropName].length === 1) {
|
||||
arg = node[argPropName][0];
|
||||
if (arg.type === 'Literal') {
|
||||
dependencies.push(arg.value);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return dependencies;
|
||||
};
|
||||
|
||||
//function define() {}
|
||||
parse.hasDefDefine = function(node) {
|
||||
return node.type === 'FunctionDeclaration' && node.id &&
|
||||
node.id.type === 'Identifier' && node.id.name === 'define';
|
||||
};
|
||||
|
||||
//define.amd = ...
|
||||
parse.hasDefineAmd = function(node) {
|
||||
return node && node.type === 'AssignmentExpression' &&
|
||||
node.left && node.left.type === 'MemberExpression' &&
|
||||
node.left.object && node.left.object.name === 'define' &&
|
||||
node.left.property && node.left.property.name === 'amd';
|
||||
};
|
||||
|
||||
//require(), requirejs(), require.config() and requirejs.config()
|
||||
parse.hasRequire = function(node) {
|
||||
var callName,
|
||||
c = node && node.callee;
|
||||
|
||||
if (node && node.type === 'CallExpression' && c) {
|
||||
if (c.type === 'Identifier' &&
|
||||
(c.name === 'require' ||
|
||||
c.name === 'requirejs')) {
|
||||
//A require/requirejs({}, ...) call
|
||||
callName = c.name;
|
||||
} else if (c.type === 'MemberExpression' &&
|
||||
c.object &&
|
||||
c.object.type === 'Identifier' &&
|
||||
(c.object.name === 'require' ||
|
||||
c.object.name === 'requirejs') &&
|
||||
c.property && c.property.name === 'config') {
|
||||
// require/requirejs.config({}) call
|
||||
callName = c.object.name + 'Config';
|
||||
}
|
||||
}
|
||||
|
||||
return callName;
|
||||
};
|
||||
|
||||
//define()
|
||||
parse.hasDefine = function(node) {
|
||||
return node && node.type === 'CallExpression' && node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'define';
|
||||
};
|
||||
|
||||
/**
|
||||
* If there is a named define in the file, returns the name. Does not
|
||||
* scan for mulitple names, just the first one.
|
||||
*/
|
||||
parse.getNamedDefine = function(fileContents) {
|
||||
var name;
|
||||
traverse(esprima.parse(fileContents), function(node) {
|
||||
if (node && node.type === 'CallExpression' && node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'define' &&
|
||||
node[argPropName] && node[argPropName][0] &&
|
||||
node[argPropName][0].type === 'Literal') {
|
||||
name = node[argPropName][0].value;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
return name;
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines if define(), require({}|[]) or requirejs was called in the
|
||||
* file. Also finds out if define() is declared and if define.amd is called.
|
||||
*/
|
||||
parse.usesAmdOrRequireJs = function(fileName, fileContents) {
|
||||
var uses;
|
||||
|
||||
traverse(esprima.parse(fileContents), function(node) {
|
||||
var type, callName, arg;
|
||||
|
||||
if (parse.hasDefDefine(node)) {
|
||||
//function define() {}
|
||||
type = 'declaresDefine';
|
||||
} else if (parse.hasDefineAmd(node)) {
|
||||
type = 'defineAmd';
|
||||
} else {
|
||||
callName = parse.hasRequire(node);
|
||||
if (callName) {
|
||||
arg = node[argPropName] && node[argPropName][0];
|
||||
if (arg && (arg.type === 'ObjectExpression' ||
|
||||
arg.type === 'ArrayExpression')) {
|
||||
type = callName;
|
||||
}
|
||||
} else if (parse.hasDefine(node)) {
|
||||
type = 'define';
|
||||
}
|
||||
}
|
||||
|
||||
if (type) {
|
||||
if (!uses) {
|
||||
uses = {};
|
||||
}
|
||||
uses[type] = true;
|
||||
}
|
||||
});
|
||||
|
||||
return uses;
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines if require(''), exports.x =, module.exports =,
|
||||
* __dirname, __filename are used. So, not strictly traditional CommonJS,
|
||||
* also checks for Node variants.
|
||||
*/
|
||||
parse.usesCommonJs = function(fileName, fileContents) {
|
||||
var uses = null,
|
||||
assignsExports = false;
|
||||
|
||||
|
||||
traverse(esprima.parse(fileContents), function(node) {
|
||||
var type,
|
||||
exp = node.expression;
|
||||
|
||||
if (node.type === 'Identifier' &&
|
||||
(node.name === '__dirname' || node.name === '__filename')) {
|
||||
type = node.name.substring(2);
|
||||
} else if (node.type === 'VariableDeclarator' && node.id &&
|
||||
node.id.type === 'Identifier' &&
|
||||
node.id.name === 'exports') {
|
||||
//Hmm, a variable assignment for exports, so does not use cjs
|
||||
//exports.
|
||||
type = 'varExports';
|
||||
} else if (exp && exp.type === 'AssignmentExpression' && exp.left &&
|
||||
exp.left.type === 'MemberExpression' && exp.left.object) {
|
||||
if (exp.left.object.name === 'module' && exp.left.property &&
|
||||
exp.left.property.name === 'exports') {
|
||||
type = 'moduleExports';
|
||||
} else if (exp.left.object.name === 'exports' &&
|
||||
exp.left.property) {
|
||||
type = 'exports';
|
||||
}
|
||||
|
||||
} else if (node && node.type === 'CallExpression' && node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'require' && node[argPropName] &&
|
||||
node[argPropName].length === 1 &&
|
||||
node[argPropName][0].type === 'Literal') {
|
||||
type = 'require';
|
||||
}
|
||||
|
||||
if (type) {
|
||||
if (type === 'varExports') {
|
||||
assignsExports = true;
|
||||
} else if (type !== 'exports' || !assignsExports) {
|
||||
if (!uses) {
|
||||
uses = {};
|
||||
}
|
||||
uses[type] = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return uses;
|
||||
};
|
||||
|
||||
|
||||
parse.findRequireDepNames = function(node, deps) {
|
||||
traverse(node, function(node) {
|
||||
var arg;
|
||||
|
||||
if (node && node.type === 'CallExpression' && node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'require' &&
|
||||
node[argPropName] && node[argPropName].length === 1) {
|
||||
|
||||
arg = node[argPropName][0];
|
||||
if (arg.type === 'Literal') {
|
||||
deps.push(arg.value);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines if a specific node is a valid require or define/require.def
|
||||
* call.
|
||||
* @param {Array} node
|
||||
* @param {Function} onMatch a function to call when a match is found.
|
||||
* It is passed the match name, and the config, name, deps possible args.
|
||||
* The config, name and deps args are not normalized.
|
||||
*
|
||||
* @returns {String} a JS source string with the valid require/define call.
|
||||
* Otherwise null.
|
||||
*/
|
||||
parse.parseNode = function(node, onMatch) {
|
||||
var name, deps, cjsDeps, arg, factory,
|
||||
args = node && node[argPropName],
|
||||
callName = parse.hasRequire(node);
|
||||
|
||||
if (callName === 'require' || callName === 'requirejs') {
|
||||
//A plain require/requirejs call
|
||||
arg = node[argPropName] && node[argPropName][0];
|
||||
if (arg.type !== 'ArrayExpression') {
|
||||
if (arg.type === 'ObjectExpression') {
|
||||
//A config call, try the second arg.
|
||||
arg = node[argPropName][1];
|
||||
}
|
||||
}
|
||||
|
||||
deps = getValidDeps(arg);
|
||||
if (!deps) {
|
||||
return;
|
||||
}
|
||||
|
||||
return onMatch("require", null, null, deps, node);
|
||||
} else if (parse.hasDefine(node) && args && args.length) {
|
||||
name = args[0];
|
||||
deps = args[1];
|
||||
factory = args[2];
|
||||
|
||||
if (name.type === 'ArrayExpression') {
|
||||
//No name, adjust args
|
||||
factory = deps;
|
||||
deps = name;
|
||||
name = null;
|
||||
} else if (name.type === 'FunctionExpression') {
|
||||
//Just the factory, no name or deps
|
||||
factory = name;
|
||||
name = deps = null;
|
||||
} else if (name.type !== 'Literal') {
|
||||
//An object literal, just null out
|
||||
name = deps = factory = null;
|
||||
}
|
||||
|
||||
if (name && name.type === 'Literal' && deps) {
|
||||
if (deps.type === 'FunctionExpression') {
|
||||
//deps is the factory
|
||||
factory = deps;
|
||||
deps = null;
|
||||
} else if (deps.type === 'ObjectExpression') {
|
||||
//deps is object literal, null out
|
||||
deps = factory = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (deps && deps.type === 'ArrayExpression') {
|
||||
deps = getValidDeps(deps);
|
||||
} else if (factory && factory.type === 'FunctionExpression') {
|
||||
//If no deps and a factory function, could be a commonjs sugar
|
||||
//wrapper, scan the function for dependencies.
|
||||
cjsDeps = parse.getAnonDepsFromNode(factory);
|
||||
if (cjsDeps.length) {
|
||||
deps = cjsDeps;
|
||||
}
|
||||
} else if (deps || factory) {
|
||||
//Does not match the shape of an AMD call.
|
||||
return;
|
||||
}
|
||||
|
||||
//Just save off the name as a string instead of an AST object.
|
||||
if (name && name.type === 'Literal') {
|
||||
name = name.value;
|
||||
}
|
||||
|
||||
return onMatch("define", null, name, deps, node);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts an AST node into a JS source string by extracting
|
||||
* the node's location from the given contents string. Assumes
|
||||
* esprima.parse() with ranges was done.
|
||||
* @param {String} contents
|
||||
* @param {Object} node
|
||||
* @returns {String} a JS source string.
|
||||
*/
|
||||
parse.nodeToString = function(contents, node) {
|
||||
var range = node.range;
|
||||
return contents.substring(range[0], range[1]);
|
||||
};
|
||||
|
||||
/**
|
||||
* Extracts license comments from JS text.
|
||||
* @param {String} fileName
|
||||
* @param {String} contents
|
||||
* @returns {String} a string of license comments.
|
||||
*/
|
||||
parse.getLicenseComments = function(fileName, contents) {
|
||||
var commentNode, refNode, subNode, value, i, j,
|
||||
ast = esprima.parse(contents, {
|
||||
comment: true
|
||||
}),
|
||||
result = '',
|
||||
existsMap = {},
|
||||
lineEnd = contents.indexOf('\r') === -1 ? '\n' : '\r\n';
|
||||
|
||||
if (ast.comments) {
|
||||
for (i = 0; i < ast.comments.length; i++) {
|
||||
commentNode = ast.comments[i];
|
||||
|
||||
if (commentNode.type === 'Line') {
|
||||
value = '//' + commentNode.value + lineEnd;
|
||||
refNode = commentNode;
|
||||
|
||||
if (i + 1 >= ast.comments.length) {
|
||||
value += lineEnd;
|
||||
} else {
|
||||
//Look for immediately adjacent single line comments
|
||||
//since it could from a multiple line comment made out
|
||||
//of single line comments. Like this comment.
|
||||
for (j = i + 1; j < ast.comments.length; j++) {
|
||||
subNode = ast.comments[j];
|
||||
if (subNode.type === 'Line' &&
|
||||
subNode.range[0] === refNode.range[1]) {
|
||||
//Adjacent single line comment. Collect it.
|
||||
value += '//' + subNode.value + lineEnd;
|
||||
refNode = subNode;
|
||||
} else {
|
||||
//No more single line comment blocks. Break out
|
||||
//and continue outer looping.
|
||||
break;
|
||||
}
|
||||
}
|
||||
value += lineEnd;
|
||||
i = j - 1;
|
||||
}
|
||||
} else {
|
||||
value = '/*' + commentNode.value + '*/' + lineEnd + lineEnd;
|
||||
}
|
||||
|
||||
if (!existsMap[value] && (value.indexOf('license') !== -1 ||
|
||||
(commentNode.type === 'Block' &&
|
||||
value.indexOf('/*!') === 0) ||
|
||||
value.indexOf('opyright') !== -1 ||
|
||||
value.indexOf('(c)') !== -1)) {
|
||||
|
||||
result += value;
|
||||
existsMap[value] = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
module.exports = parse;
|
||||
201
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/template-jasmine-requirejs.js
generated
vendored
Normal file
201
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/template-jasmine-requirejs.js
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
"use strict";
|
||||
|
||||
// LOGLEVEL-FORK: Summary
|
||||
//
|
||||
// The changes here are mostly about working with current versions of lodash.
|
||||
// Grunt used to include lodash as `grunt.util._` for plugins to use, but has
|
||||
// since deprecated it can be dangerous -- each plugin should really declare
|
||||
// a dependency on a given version of lodash in its `package.json` and then
|
||||
// require lodash directly so that updates to Grunt don't break plugins.
|
||||
//
|
||||
// However, this plugin is pretty old and uses lodash throughout, so we've
|
||||
// just updated the broken callsites. Future Grunt upgrades could potentially
|
||||
// require other changes to `grunt.util._.<whatever>` calls here.
|
||||
//
|
||||
// END LOGLEVEL-FORK
|
||||
|
||||
var template = __dirname + '/templates/jasmine-requirejs.html',
|
||||
requirejs = {
|
||||
'2.0.0' : __dirname + '/../vendor/require-2.0.0.js',
|
||||
'2.0.1' : __dirname + '/../vendor/require-2.0.1.js',
|
||||
'2.0.2' : __dirname + '/../vendor/require-2.0.2.js',
|
||||
'2.0.3' : __dirname + '/../vendor/require-2.0.3.js',
|
||||
'2.0.4' : __dirname + '/../vendor/require-2.0.4.js',
|
||||
'2.0.5' : __dirname + '/../vendor/require-2.0.5.js',
|
||||
'2.0.6' : __dirname + '/../vendor/require-2.0.6.js',
|
||||
'2.1.0' : __dirname + '/../vendor/require-2.1.0.js',
|
||||
'2.1.1' : __dirname + '/../vendor/require-2.1.1.js',
|
||||
'2.1.2' : __dirname + '/../vendor/require-2.1.2.js',
|
||||
'2.1.3' : __dirname + '/../vendor/require-2.1.3.js',
|
||||
'2.1.4' : __dirname + '/../vendor/require-2.1.4.js',
|
||||
'2.1.5' : __dirname + '/../vendor/require-2.1.5.js',
|
||||
'2.1.6' : __dirname + '/../vendor/require-2.1.6.js',
|
||||
'2.1.7' : __dirname + '/../vendor/require-2.1.7.js',
|
||||
'2.1.8' : __dirname + '/../vendor/require-2.1.8.js',
|
||||
'2.1.9' : __dirname + '/../vendor/require-2.1.9.js',
|
||||
'2.1.10' : __dirname + '/../vendor/require-2.1.10.js'
|
||||
},
|
||||
path = require('path'),
|
||||
parse = require('./lib/parse');
|
||||
|
||||
function filterGlobPatterns(scripts) {
|
||||
Object.keys(scripts).forEach(function (group) {
|
||||
if (Array.isArray(scripts[group])) {
|
||||
scripts[group] = scripts[group].filter(function(script) {
|
||||
return script.indexOf('*') === -1;
|
||||
});
|
||||
} else {
|
||||
scripts[group] = [];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function resolvePath(filepath) {
|
||||
filepath = filepath.trim();
|
||||
if (filepath.substr(0,1) === '~') {
|
||||
filepath = process.env.HOME + filepath.substr(1);
|
||||
}
|
||||
return path.resolve(filepath);
|
||||
}
|
||||
|
||||
// LOGLEVEL-FORK: copying tempfiles now requires info from the `context` object.
|
||||
function moveRequireJs(grunt, task, context, versionOrPath) {
|
||||
var pathToRequireJS,
|
||||
versionReg = /^(\d\.?)*$/;
|
||||
|
||||
if (versionReg.test(versionOrPath)) { // is version
|
||||
if (versionOrPath in requirejs) {
|
||||
pathToRequireJS = requirejs[versionOrPath];
|
||||
} else {
|
||||
throw new Error('specified requirejs version [' + versionOrPath + '] is not defined');
|
||||
}
|
||||
} else { // is path
|
||||
pathToRequireJS = resolvePath(versionOrPath);
|
||||
if (!grunt.file.exists(pathToRequireJS)) {
|
||||
throw new Error('local file path of requirejs [' + versionOrPath + '] was not found');
|
||||
}
|
||||
}
|
||||
task.copyTempFile(pathToRequireJS, path.join(context.temp, 'require.js'));
|
||||
}
|
||||
// END LOGLEVEL-FORK
|
||||
|
||||
|
||||
exports.process = function(grunt, task, context) {
|
||||
|
||||
var version = context.options.version;
|
||||
|
||||
// find the latest version if none given
|
||||
if (!version) {
|
||||
version = Object.keys(requirejs).sort().pop();
|
||||
}
|
||||
|
||||
// Remove glob patterns from scripts (see https://github.com/gruntjs/grunt-contrib-jasmine/issues/42)
|
||||
filterGlobPatterns(context.scripts);
|
||||
|
||||
// Extract config from main require config file
|
||||
if (context.options.requireConfigFile) {
|
||||
// Remove mainConfigFile from src files
|
||||
var requireConfigFiles = grunt.util._.flatten([context.options.requireConfigFile]);
|
||||
|
||||
var normalizedPaths = grunt.util._.map(requireConfigFiles, function(configFile){
|
||||
return path.normalize(configFile);
|
||||
});
|
||||
context.scripts.src = grunt.util._.reject(context.scripts.src, function (script) {
|
||||
// LOGLEVEL-FORK: Work with current versions of lodash.
|
||||
return grunt.util._.includes(normalizedPaths, path.normalize(script));
|
||||
// END LOGLEVEL-FORK
|
||||
});
|
||||
|
||||
var configFromFiles = {};
|
||||
grunt.util._.map(requireConfigFiles, function (configFile) {
|
||||
grunt.util._.merge(configFromFiles, parse.findConfig(grunt.file.read(configFile)).config);
|
||||
});
|
||||
|
||||
context.options.requireConfig = grunt.util._.merge(configFromFiles, context.options.requireConfig);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Find and resolve specified baseUrl.
|
||||
*/
|
||||
function getBaseUrl() {
|
||||
var outDir = path.dirname(path.join(process.cwd(), context.outfile));
|
||||
var requireBaseUrl = context.options.requireConfig && context.options.requireConfig.baseUrl;
|
||||
|
||||
if (requireBaseUrl && grunt.file.isDir(outDir, requireBaseUrl)) {
|
||||
return requireBaseUrl;
|
||||
} else {
|
||||
return outDir;
|
||||
}
|
||||
}
|
||||
var baseUrl = getBaseUrl();
|
||||
|
||||
/**
|
||||
* Retrieves the module URL for a require call relative to the specified Base URL.
|
||||
*/
|
||||
function getRelativeModuleUrl(src) {
|
||||
return path.relative(baseUrl, src).replace(/\.js$/, '');
|
||||
}
|
||||
|
||||
// Remove baseUrl and .js from src files
|
||||
context.scripts.src = grunt.util._.map(context.scripts.src, getRelativeModuleUrl);
|
||||
|
||||
|
||||
// Prepend loaderPlugins to the appropriate files
|
||||
if (context.options.loaderPlugin) {
|
||||
Object.keys(context.options.loaderPlugin).forEach(function(type){
|
||||
if (context.scripts[type]) {
|
||||
context.scripts[type].forEach(function(file,i){
|
||||
context.scripts[type][i] = context.options.loaderPlugin[type] + '!' + file;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// LOGLEVEL-FORK: this function now requires context info
|
||||
moveRequireJs(grunt, task, context, version);
|
||||
// END LOGLEVEL-FORK
|
||||
|
||||
context.serializeRequireConfig = function(requireConfig) {
|
||||
var funcCounter = 0;
|
||||
var funcs = {};
|
||||
|
||||
function isUnserializable(val) {
|
||||
var unserializables = [Function, RegExp];
|
||||
var typeTests = unserializables.map(function(unserializableType) {
|
||||
return val instanceof unserializableType;
|
||||
});
|
||||
return !!~typeTests.indexOf(true);
|
||||
}
|
||||
|
||||
function generateFunctionId() {
|
||||
return '$template-jasmine-require_' + new Date().getTime() + '_' + (++funcCounter);
|
||||
}
|
||||
|
||||
var jsonString = JSON.stringify(requireConfig, function(key, val) {
|
||||
var funcId;
|
||||
if (isUnserializable(val)) {
|
||||
funcId = generateFunctionId();
|
||||
funcs[funcId] = val;
|
||||
return funcId;
|
||||
}
|
||||
return val;
|
||||
}, 2);
|
||||
|
||||
Object.keys(funcs).forEach(function(id) {
|
||||
jsonString = jsonString.replace('"' + id + '"', funcs[id].toString());
|
||||
});
|
||||
|
||||
return jsonString;
|
||||
};
|
||||
|
||||
// update relative path of .grunt folder to the location of spec runner
|
||||
context.temp = path.relative(path.dirname(context.outfile),
|
||||
context.temp);
|
||||
|
||||
var source = grunt.file.read(template);
|
||||
|
||||
// LOGLEVEL-FORK: Work with current versions of lodash.
|
||||
return grunt.util._.template(source)(context);
|
||||
// END LOGLEVEL-FORK
|
||||
};
|
||||
104
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/templates/jasmine-requirejs.html
generated
vendored
Normal file
104
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/src/templates/jasmine-requirejs.html
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Jasmine Spec Runner</title>
|
||||
|
||||
<% css.forEach(function(style){ %>
|
||||
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
||||
<% }) %>
|
||||
|
||||
<% with (scripts) { %>
|
||||
<% [].concat(vendor).forEach(function(script){ %>
|
||||
<script src="<%= script %>"></script>
|
||||
<% }) %>
|
||||
<% }; %>
|
||||
|
||||
<script src="<%= temp ? temp + "/" : temp %>require.js"></script>
|
||||
|
||||
<% with (scripts) { %>
|
||||
<% /* LOGLEVEL-FORK: Include new script types used by grunt-contrib-jasmine v4 */ %>
|
||||
<% [].concat(polyfills, jasmine, boot, boot2, helpers).forEach(function(script){ %>
|
||||
<script src="<%= script %>"></script>
|
||||
<% }) %>
|
||||
<% /* END LOGLEVEL-FORK */ %>
|
||||
<% }; %>
|
||||
|
||||
<script>
|
||||
require.onError = function(error) {
|
||||
var message = error.requireType + ': ';
|
||||
if (error.requireType === 'scripterror' || error.requireType === 'notloaded' && error.requireModules) {
|
||||
message += 'Illegal path or script error: ' + '[\'' + error.requireModules.join("', '") + '\']';
|
||||
} else {
|
||||
message += error.message;
|
||||
}
|
||||
|
||||
throw Error(message);
|
||||
};
|
||||
</script>
|
||||
|
||||
<script>
|
||||
<% if (options.mainRequireConfig) { %>
|
||||
require.config(<%= serializeRequireConfig(options.mainRequireConfig) %>);
|
||||
<% } %>
|
||||
|
||||
<% var hasCallback = false;
|
||||
if (options.requireConfig) {
|
||||
if ('callback' in options.requireConfig) {
|
||||
/* Inserting launchTest() as the last statement in callback function
|
||||
to make sure spec is called after all initialization stuffs */
|
||||
|
||||
// capture the arguments and body fo callback function
|
||||
options.requireConfig['callback'].toString().replace(/^function\s+\w*\(([^\)]*)\)\s*\{((?:.|[\n\r])*)}/m, function(match, args, body) {
|
||||
var being_recreated_function = [];
|
||||
if (args.length > 0) {
|
||||
args = args.split(/,\s*/);
|
||||
being_recreated_function = being_recreated_function.concat(args);
|
||||
}
|
||||
// append launchTest() to the end of function body
|
||||
body += '\nlaunchTest();';
|
||||
|
||||
being_recreated_function = being_recreated_function.concat(body);
|
||||
|
||||
// recreate an anonymouse function with modified body
|
||||
// re-assign callback property by just created new function
|
||||
// (return value dosen't matter)
|
||||
options.requireConfig['callback'] = Function.apply(this, being_recreated_function);
|
||||
hasCallback = true;
|
||||
});
|
||||
}
|
||||
%>
|
||||
require.config(<%= serializeRequireConfig(options.requireConfig) %>);
|
||||
<% } %>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// Delay onLoad function until we are ready
|
||||
var startTests = window.onload;
|
||||
window.onload = null;
|
||||
|
||||
function launchTest() {
|
||||
require([
|
||||
<% scripts.src.forEach(function(script, i){ %>
|
||||
<% script = script.replace(/\\/g, '/') // replace all backward slashes to forward slash %>
|
||||
'<%= script %>' <%= i < scripts.src.length-1 ? ',' : '' %>
|
||||
<% }) %>
|
||||
],
|
||||
function(){
|
||||
require(['<%= [].concat(scripts.specs,scripts.reporters).join("','") %>'], function(){
|
||||
startTests();
|
||||
});
|
||||
}
|
||||
)
|
||||
}
|
||||
</script>
|
||||
|
||||
<% if (!hasCallback) { %>
|
||||
<script>
|
||||
launchTest();
|
||||
</script>
|
||||
<% } %>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
4
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/tasks/.npmignore
generated
vendored
Normal file
4
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/tasks/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.0.js
generated
vendored
Normal file
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.0.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
RequireJS 2.0.0 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function v(b){return I.call(b)==="[object Function]"}function E(b){return I.call(b)==="[object Array]"}function n(b,d){if(b){var f;for(f=0;f<b.length;f+=1)if(d(b[f],f,b))break}}function L(b,d){if(b){var f;for(f=b.length-1;f>-1;f-=1)if(d(b[f],f,b))break}}function A(b,d){for(var f in b)if(b.hasOwnProperty(f)&&d(b[f],f))break}function R(b,d,f){d&&A(d,function(d,e){if(f||!b.hasOwnProperty(e))b[e]=d})}function s(b,d){return function(){return d.apply(b,arguments)}}function $(b){if(!b)return b;
|
||||
var d=Z;n(b.split("."),function(b){d=d[b]});return d}function aa(b,d,f){return function(){var g=ga.call(arguments,0),e;if(f&&v(e=g[g.length-1]))e.__requireJsBuild=!0;g.push(d);return b.apply(null,g)}}function ba(b,d,f){n([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(g){b[g[0]]=aa(d[g[1]||g[0]],f)})}function F(b,d,f,g){d=Error(d+"\nhttp://requirejs.org/docs/errors.html#"+b);d.requireType=b;d.requireModules=g;if(f)d.originalError=f;return d}function ha(){if(G&&
|
||||
G.readyState==="interactive")return G;L(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return G=b});return G}var ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ca=/\.js$/,ka=/^\.\//,I=Object.prototype.toString,w=Array.prototype,ga=w.slice,la=w.splice,x=!!(typeof window!=="undefined"&&navigator&&document),da=!x&&typeof importScripts!=="undefined",ma=x&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,
|
||||
S=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",u={},q={},M=[],J=!1,m,t,B,y,C,G,H,N,ea;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(v(requirejs))return;q=requirejs;requirejs=void 0}typeof require!=="undefined"&&!v(require)&&(q=require,require=void 0);m=requirejs=function(b,d,f,g){var e="_",n;!E(b)&&typeof b!=="string"&&(n=b,E(d)?(b=d,d=f,f=g):b=[]);if(n&&n.context)e=n.context;(g=u[e])||(g=u[e]=m.s.newContext(e));n&&g.configure(n);return g.require(b,d,f)};
|
||||
m.config=function(b){return m(b)};require||(require=m);m.version="2.0.0";m.jsExtRegExp=/^\/|:|\?|\.js$/;m.isBrowser=x;w=m.s={contexts:u,newContext:function(b){function d(a,c,j){var r=c&&c.split("/"),b=k.map,l=b&&b["*"],h,d,f,e;if(a&&a.charAt(0)===".")if(c){r=k.pkgs[c]?[c]:r.slice(0,r.length-1);c=a=r.concat(a.split("/"));for(h=0;c[h];h+=1)if(d=c[h],d===".")c.splice(h,1),h-=1;else if(d==="..")if(h===1&&(c[2]===".."||c[0]===".."))break;else h>0&&(c.splice(h-1,2),h-=2);h=k.pkgs[c=a[0]];a=a.join("/");
|
||||
h&&a===c+"/"+h.main&&(a=c)}else a.indexOf("./")===0&&(a=a.substring(2));if(j&&(r||l)&&b){c=a.split("/");for(h=c.length;h>0;h-=1){f=c.slice(0,h).join("/");if(r)for(d=r.length;d>0;d-=1)if(j=b[r.slice(0,d).join("/")])if(j=j[f]){e=j;break}!e&&l&&l[f]&&(e=l[f]);if(e){c.splice(0,h,e);a=c.join("/");break}}}return a}function f(a){x&&n(document.getElementsByTagName("script"),function(c){if(c.getAttribute("data-requiremodule")===a&&c.getAttribute("data-requirecontext")===i.contextName)return c.parentNode.removeChild(c),
|
||||
!0})}function g(a){var c=k.paths[a];if(c&&E(c)&&c.length>1)return f(a),c.shift(),i.undef(a),i.require([a]),!0}function e(a,c,j,r){var b=a?a.indexOf("!"):-1,l=null,h=c?c.name:null,e=a,f=!0,g,k,m;a||(f=!1,a="_@r"+(L+=1));b!==-1&&(l=a.substring(0,b),a=a.substring(b+1,a.length));l&&(l=d(l,h,r));a&&(l?g=(m=p[l])&&m.normalize?m.normalize(a,function(a){return d(a,h,r)}):d(a,h,r):(g=d(a,h,r),k=O[g],k||(k=i.nameToUrl(a,null,c),O[g]=k)));a=l&&!m&&!j?"_unnormalized"+(N+=1):"";return{prefix:l,name:g,parentMap:c,
|
||||
unnormalized:!!a,url:k,originalName:e,isDefine:f,id:(l?l+"!"+(g||""):g)+a}}function q(a){var c=a.id,j=o[c];j||(j=o[c]=new i.Module(a));return j}function t(a,c,j){var b=a.id,fa=o[b];if(p.hasOwnProperty(b)&&(!fa||fa.defineEmitComplete))c==="defined"&&j(p[b]);else q(a).on(c,j)}function z(a,c){var j=a.requireModules,b=!1;if(c)c(a);else if(n(j,function(c){if(c=o[c])c.error=a,c.events.error&&(b=!0,c.emit("error",a))}),!b)m.onError(a)}function w(){M.length&&(la.apply(D,[D.length-1,0].concat(M)),M=[])}function u(a,
|
||||
c,j){a=a&&a.map;c=aa(j||i.require,a,c);ba(c,i,a);return c}function y(a){delete o[a];n(K,function(c,j){if(c.map.id===a)return K.splice(j,1),c.defined||(i.waitCount-=1),!0})}function B(a,c){var j=a.map.id,b=a.depMaps,d;if(a.inited){if(c[j])return a;c[j]=!0;n(b,function(a){if(a=o[a.id])return!a.inited||!a.enabled?(d=null,delete c[j],!0):d=B(a,c)});return d}}function C(a,c,j){var b=a.map.id,d=a.depMaps;if(a.inited&&a.map.isDefine){if(c[b])return p[b];c[b]=a;n(d,function(d){var d=d.id,h=o[d];!P[d]&&h&&
|
||||
(!h.inited||!h.enabled?j[b]=!0:(h=C(h,c,j),j[d]||a.defineDepById(d,h)))});a.check(!0);return p[b]}}function H(a){a.check()}function T(){var a=k.waitSeconds*1E3,c=a&&i.startTime+a<(new Date).getTime(),j=[],b=!1,d=!0,l,h,e;if(!U){U=!0;A(o,function(a){l=a.map;h=l.id;if(a.enabled&&!a.error)if(!a.inited&&c)g(h)?b=e=!0:(j.push(h),f(h));else if(!a.inited&&a.fetched&&l.isDefine&&(b=!0,!l.prefix))return d=!1});if(c&&j.length)return a=F("timeout","Load timeout for modules: "+j,null,j),a.contextName=i.contextName,
|
||||
z(a);d&&(n(K,function(a){if(!a.defined){var a=B(a,{}),c={};a&&(C(a,c,{}),A(c,H))}}),A(o,H));if((!c||e)&&b)if((x||da)&&!V)V=setTimeout(function(){V=0;T()},50);U=!1}}function W(a){q(e(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,c=i.onScriptLoad;a.detachEvent&&!S?a.detachEvent("onreadystatechange",c):a.removeEventListener("load",c,!1);c=i.onScriptError;a.detachEvent&&!S||a.removeEventListener("error",c,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}
|
||||
var k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},o={},X={},D=[],p={},O={},Q={},L=1,N=1,K=[],U,Y,i,P,V;P={require:function(a){return u(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=p[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return k.config&&k.config[a.map.id]||{}},exports:p[a.map.id]}}};Y=function(a){this.events=X[a.id]||{};this.map=a;this.shim=k.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=
|
||||
[];this.pluginMaps={};this.depCount=0};Y.prototype={init:function(a,c,b,d){d=d||{};if(!this.inited){this.factory=c;if(b)this.on("error",b);else this.events.error&&(b=s(this,function(a){this.emit("error",a)}));n(a,s(this,function(a,c){typeof a==="string"&&(a=e(a,this.map.isDefine?this.map:this.map.parentMap,!1,!0),this.depMaps.push(a));var d=P[a.id];d?this.depExports[c]=d(this):(this.depCount+=1,t(a,"defined",s(this,function(a){this.defineDep(c,a);this.check()})),b&&t(a,"error",b))}));this.inited=
|
||||
!0;this.ignore=d.ignore;d.enabled||this.enabled?this.enable():this.check()}},defineDepById:function(a,c){var b;n(this.depMaps,function(c,d){if(c.id===a)return b=d,!0});return this.defineDep(b,c)},defineDep:function(a,c){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=c)},fetch:function(){if(!this.fetched)this.fetched=!0,i.startTime=(new Date).getTime(),this.map.prefix?this.callPlugin():this.shim?u(this,!0)(this.shim.deps||[],s(this,function(){this.load()})):this.load()},
|
||||
load:function(){var a=this.map.url;Q[a]||(Q[a]=!0,i.load(this.map.id,a))},check:function(a){if(this.enabled){var c=this.map.id,b=this.depExports,d=this.exports,e=this.factory,l;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(v(e)){if(this.events.error)try{d=i.execCb(c,e,b,d)}catch(h){l=h}else d=i.execCb(c,e,b,d);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)d=b.exports;
|
||||
else if(d===void 0&&this.usingExports)d=this.exports;if(l)return l.requireMap=this.map,l.requireModules=[this.map.id],l.requireType="define",z(this.error=l)}else d=e;this.exports=d;if(this.map.isDefine&&!this.ignore&&(p[c]=d,m.onResourceLoad))m.onResourceLoad(i,this.map,this.depMaps);delete o[c];this.defined=!0;i.waitCount-=1;i.waitCount===0&&(K=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},
|
||||
callPlugin:function(){var a=this.map,c=a.id,b=e(a.prefix,null,!1,!0);t(b,"defined",s(this,function(b){var j=this.map.name,l=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(j=b.normalize(j,function(a){return d(a,l,!0)})),b=e(a.prefix+"!"+j),t(b,"defined",s(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=o[b.id]){if(this.events.error)b.on("error",s(this,function(a){this.emit("error",a)}));b.enable()}}else j=s(this,function(a){this.init([],
|
||||
function(){return a},null,{enabled:!0})}),j.error=s(this,function(a){this.inited=!0;this.error=a;a.requireModules=[c];A(o,function(a){a.map.id.indexOf(c+"_unnormalized")===0&&y(a.map.id)});z(a)}),j.fromText=function(a,c){var b=J;b&&(J=!1);m.exec(c);b&&(J=!0);i.completeLoad(a)},b.load(a.name,u(a.parentMap,!0,function(a,c){return i.require(a,c)}),j,k)}));i.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=!0;if(!this.waitPushed)K.push(this),i.waitCount+=1,this.waitPushed=!0;n(this.depMaps,
|
||||
s(this,function(a){var c=a.id,b=o[c];!P[c]&&b&&!b.enabled&&i.enable(a,this)}));A(this.pluginMaps,s(this,function(a){var c=o[a.id];c&&!c.enabled&&i.enable(a,this)}));this.check()},on:function(a,c){var b=this.events[a];b||(b=this.events[a]=[]);b.push(c)},emit:function(a,c){n(this.events[a],function(a){a(c)});a==="error"&&delete this.events[a]}};return i={config:k,contextName:b,registry:o,defined:p,urlMap:O,urlFetched:Q,waitCount:0,defQueue:D,Module:Y,makeModuleMap:e,configure:function(a){a.baseUrl&&
|
||||
a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var c=k.paths,b=k.pkgs,d=k.shim,e=k.map||{};R(k,a,!0);R(c,a.paths,!0);k.paths=c;if(a.map)R(e,a.map,!0),k.map=e;if(a.shim)A(a.shim,function(a,c){E(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=i.makeShimExports(a.exports);d[c]=a}),k.shim=d;if(a.packages)n(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(ca,"")}}),k.pkgs=
|
||||
b;if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){var c;return typeof a==="string"?(c=function(){return $(a)},c.exports=a,c):function(){return a.apply(Z,arguments)}},requireDefined:function(a,c){var b=e(a,c,!1,!0).id;return p.hasOwnProperty(b)},requireSpecified:function(a,c){a=e(a,c,!1,!0).id;return p.hasOwnProperty(a)||o.hasOwnProperty(a)},require:function(a,c,d,f){var g;if(typeof a==="string"){if(v(c))return z(F("requireargs","Invalid require call"),d);if(m.get)return m.get(i,
|
||||
a,c);a=e(a,c,!1,!0);a=a.id;return!p.hasOwnProperty(a)?z(F("notloaded",'Module name "'+a+'" has not been loaded yet for context: '+b)):p[a]}d&&!v(d)&&(f=d,d=void 0);c&&!v(c)&&(f=c,c=void 0);for(w();D.length;)if(g=D.shift(),g[0]===null)return z(F("mismatch","Mismatched anonymous define() module: "+g[g.length-1]));else W(g);q(e(null,f)).init(a,c,d,{enabled:!0});T();return i.require},undef:function(a){var c=e(a,null,!0),b=o[a];delete p[a];delete O[a];delete Q[c.url];delete X[a];if(b){if(b.events.defined)X[a]=
|
||||
b.events;y(a)}},enable:function(a){o[a.id]&&q(a).enable()},completeLoad:function(a){var c=k.shim[a]||{},b=c.exports&&c.exports.exports,d,e;for(w();D.length;){e=D.shift();if(e[0]===null){e[0]=a;if(d)break;d=!0}else e[0]===a&&(d=!0);W(e)}e=o[a];if(!d&&!p[a]&&e&&!e.inited)if(k.enforceDefine&&(!b||!$(b)))if(g(a))return;else return z(F("nodefine","No define call for "+a,null,[a]));else W([a,c.deps||[],c.exports]);T()},toUrl:function(a,c){var b=a.lastIndexOf("."),d=null;b!==-1&&(d=a.substring(b,a.length),
|
||||
a=a.substring(0,b));return i.nameToUrl(a,d,c)},nameToUrl:function(a,c,b){var e,f,g,h,i,a=d(a,b&&b.id,!0);if(m.jsExtRegExp.test(a))c=a+(c||"");else{e=k.paths;f=k.pkgs;b=a.split("/");for(h=b.length;h>0;h-=1)if(i=b.slice(0,h).join("/"),g=f[i],i=e[i]){E(i)&&(i=i[0]);b.splice(0,h,i);break}else if(g){a=a===g.name?g.location+"/"+g.main:g.location;b.splice(0,h,a);break}c=b.join("/")+(c||".js");c=(c.charAt(0)==="/"||c.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+c}return k.urlArgs?c+((c.indexOf("?")===-1?"?":"&")+
|
||||
k.urlArgs):c},load:function(a,b){m.load(i,a,b)},execCb:function(a,b,d,e){return b.apply(e,d)},onScriptLoad:function(a){if(a.type==="load"||ma.test((a.currentTarget||a.srcElement).readyState))G=null,a=I(a),i.completeLoad(a.id)},onScriptError:function(a){var b=I(a);if(!g(b.id))return z(F("scripterror","Script error",a,[b.id]))}}}};m({});ba(m,u._);if(x&&(t=w.head=document.getElementsByTagName("head")[0],B=document.getElementsByTagName("base")[0]))t=w.head=B.parentNode;m.onError=function(b){throw b;};
|
||||
m.load=function(b,d,f){var g=b&&b.config||{},e;if(x)return e=g.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),e.type=g.scriptType||"text/javascript",e.charset="utf-8",e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",d),e.attachEvent&&!(e.attachEvent.toString&&e.attachEvent.toString().indexOf("[native code")<0)&&!S?(J=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",
|
||||
b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=f,H=e,B?t.insertBefore(e,B):t.appendChild(e),H=null,e;else da&&(importScripts(f),b.completeLoad(d))};x&&L(document.getElementsByTagName("script"),function(b){if(!t)t=b.parentNode;if(y=b.getAttribute("data-main")){if(!q.baseUrl)C=y.split("/"),N=C.pop(),ea=C.length?C.join("/")+"/":"./",q.baseUrl=ea,y=N.replace(ca,"");q.deps=q.deps?q.deps.concat(y):[y];return!0}});define=function(b,d,f){var g,e;typeof b!=="string"&&(f=d,d=b,b=null);
|
||||
E(d)||(f=d,d=[]);!d.length&&v(f)&&f.length&&(f.toString().replace(ia,"").replace(ja,function(b,e){d.push(e)}),d=(f.length===1?["require"]:["require","exports","module"]).concat(d));if(J&&(g=H||ha()))b||(b=g.getAttribute("data-requiremodule")),e=u[g.getAttribute("data-requirecontext")];(e?e.defQueue:M).push([b,d,f])};define.amd={jQuery:!0};m.exec=function(b){return eval(b)};m(q)}})(this);
|
||||
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.1.js
generated
vendored
Normal file
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.1.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
RequireJS 2.0.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function w(b){return I.call(b)==="[object Function]"}function E(b){return I.call(b)==="[object Array]"}function n(b,d){if(b){var f;for(f=0;f<b.length;f+=1)if(d(b[f],f,b))break}}function L(b,d){if(b){var f;for(f=b.length-1;f>-1;f-=1)if(d(b[f],f,b))break}}function A(b,d){for(var f in b)if(b.hasOwnProperty(f)&&d(b[f],f))break}function R(b,d,f){d&&A(d,function(d,e){if(f||!b.hasOwnProperty(e))b[e]=d})}function s(b,d){return function(){return d.apply(b,arguments)}}function $(b){if(!b)return b;
|
||||
var d=Z;n(b.split("."),function(b){d=d[b]});return d}function aa(b,d,f){return function(){var g=ga.call(arguments,0),e;if(f&&w(e=g[g.length-1]))e.__requireJsBuild=!0;g.push(d);return b.apply(null,g)}}function ba(b,d,f){n([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(g){b[g[0]]=aa(d[g[1]||g[0]],f)})}function F(b,d,f,g){d=Error(d+"\nhttp://requirejs.org/docs/errors.html#"+b);d.requireType=b;d.requireModules=g;if(f)d.originalError=f;return d}function ha(){if(G&&
|
||||
G.readyState==="interactive")return G;L(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return G=b});return G}var ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ca=/\.js$/,ka=/^\.\//,I=Object.prototype.toString,x=Array.prototype,ga=x.slice,la=x.splice,u=!!(typeof window!=="undefined"&&navigator&&document),da=!u&&typeof importScripts!=="undefined",ma=u&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,
|
||||
S=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",v={},q={},M=[],J=!1,l,t,B,y,C,G,H,N,ea;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(w(requirejs))return;q=requirejs;requirejs=void 0}typeof require!=="undefined"&&!w(require)&&(q=require,require=void 0);l=requirejs=function(b,d,f,g){var e="_",n;!E(b)&&typeof b!=="string"&&(n=b,E(d)?(b=d,d=f,f=g):b=[]);if(n&&n.context)e=n.context;(g=v[e])||(g=v[e]=l.s.newContext(e));n&&g.configure(n);return g.require(b,d,f)};
|
||||
l.config=function(b){return l(b)};require||(require=l);l.version="2.0.1";l.jsExtRegExp=/^\/|:|\?|\.js$/;l.isBrowser=u;x=l.s={contexts:v,newContext:function(b){function d(a,c,j){var r=c&&c.split("/"),b=k.map,m=b&&b["*"],h,d,f,e;if(a&&a.charAt(0)===".")if(c){r=k.pkgs[c]?[c]:r.slice(0,r.length-1);c=a=r.concat(a.split("/"));for(h=0;c[h];h+=1)if(d=c[h],d===".")c.splice(h,1),h-=1;else if(d==="..")if(h===1&&(c[2]===".."||c[0]===".."))break;else h>0&&(c.splice(h-1,2),h-=2);h=k.pkgs[c=a[0]];a=a.join("/");
|
||||
h&&a===c+"/"+h.main&&(a=c)}else a.indexOf("./")===0&&(a=a.substring(2));if(j&&(r||m)&&b){c=a.split("/");for(h=c.length;h>0;h-=1){f=c.slice(0,h).join("/");if(r)for(d=r.length;d>0;d-=1)if(j=b[r.slice(0,d).join("/")])if(j=j[f]){e=j;break}!e&&m&&m[f]&&(e=m[f]);if(e){c.splice(0,h,e);a=c.join("/");break}}}return a}function f(a){u&&n(document.getElementsByTagName("script"),function(c){if(c.getAttribute("data-requiremodule")===a&&c.getAttribute("data-requirecontext")===i.contextName)return c.parentNode.removeChild(c),
|
||||
!0})}function g(a){var c=k.paths[a];if(c&&E(c)&&c.length>1)return f(a),c.shift(),i.undef(a),i.require([a]),!0}function e(a,c,j,r){var b=a?a.indexOf("!"):-1,m=null,h=c?c.name:null,e=a,f=!0,g="",k,l;a||(f=!1,a="_@r"+(L+=1));b!==-1&&(m=a.substring(0,b),a=a.substring(b+1,a.length));m&&(m=d(m,h,r),l=p[m]);a&&(m?g=l&&l.normalize?l.normalize(a,function(a){return d(a,h,r)}):d(a,h,r):(g=d(a,h,r),k=O[g],k||(k=i.nameToUrl(a,null,c),O[g]=k)));a=m&&!l&&!j?"_unnormalized"+(N+=1):"";return{prefix:m,name:g,parentMap:c,
|
||||
unnormalized:!!a,url:k,originalName:e,isDefine:f,id:(m?m+"!"+g:g)+a}}function q(a){var c=a.id,j=o[c];j||(j=o[c]=new i.Module(a));return j}function t(a,c,j){var b=a.id,fa=o[b];if(p.hasOwnProperty(b)&&(!fa||fa.defineEmitComplete))c==="defined"&&j(p[b]);else q(a).on(c,j)}function z(a,c){var j=a.requireModules,b=!1;if(c)c(a);else if(n(j,function(c){if(c=o[c])c.error=a,c.events.error&&(b=!0,c.emit("error",a))}),!b)l.onError(a)}function x(){M.length&&(la.apply(D,[D.length-1,0].concat(M)),M=[])}function v(a,
|
||||
c,j){a=a&&a.map;c=aa(j||i.require,a,c);ba(c,i,a);c.isBrowser=u;return c}function y(a){delete o[a];n(K,function(c,j){if(c.map.id===a)return K.splice(j,1),c.defined||(i.waitCount-=1),!0})}function B(a,c){var j=a.map.id,b=a.depMaps,d;if(a.inited){if(c[j])return a;c[j]=!0;n(b,function(a){if(a=o[a.id])return!a.inited||!a.enabled?(d=null,delete c[j],!0):d=B(a,c)});return d}}function C(a,c,j){var b=a.map.id,d=a.depMaps;if(a.inited&&a.map.isDefine){if(c[b])return p[b];c[b]=a;n(d,function(d){var d=d.id,h=
|
||||
o[d];!P[d]&&h&&(!h.inited||!h.enabled?j[b]=!0:(h=C(h,c,j),j[d]||a.defineDepById(d,h)))});a.check(!0);return p[b]}}function H(a){a.check()}function T(){var a=k.waitSeconds*1E3,c=a&&i.startTime+a<(new Date).getTime(),j=[],b=!1,d=!0,m,h,e;if(!U){U=!0;A(o,function(a){m=a.map;h=m.id;if(a.enabled&&!a.error)if(!a.inited&&c)g(h)?b=e=!0:(j.push(h),f(h));else if(!a.inited&&a.fetched&&m.isDefine&&(b=!0,!m.prefix))return d=!1});if(c&&j.length)return a=F("timeout","Load timeout for modules: "+j,null,j),a.contextName=
|
||||
i.contextName,z(a);d&&(n(K,function(a){if(!a.defined){var a=B(a,{}),c={};a&&(C(a,c,{}),A(c,H))}}),A(o,H));if((!c||e)&&b)if((u||da)&&!V)V=setTimeout(function(){V=0;T()},50);U=!1}}function W(a){q(e(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,c=i.onScriptLoad;a.detachEvent&&!S?a.detachEvent("onreadystatechange",c):a.removeEventListener("load",c,!1);c=i.onScriptError;a.detachEvent&&!S||a.removeEventListener("error",c,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}
|
||||
var k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},o={},X={},D=[],p={},O={},Q={},L=1,N=1,K=[],U,Y,i,P,V;P={require:function(a){return v(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=p[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return k.config&&k.config[a.map.id]||{}},exports:p[a.map.id]}}};Y=function(a){this.events=X[a.id]||{};this.map=a;this.shim=k.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=
|
||||
[];this.pluginMaps={};this.depCount=0};Y.prototype={init:function(a,c,b,d){d=d||{};if(!this.inited){this.factory=c;if(b)this.on("error",b);else this.events.error&&(b=s(this,function(a){this.emit("error",a)}));n(a,s(this,function(a,c){typeof a==="string"&&(a=e(a,this.map.isDefine?this.map:this.map.parentMap,!1,!0),this.depMaps.push(a));var d=P[a.id];d?this.depExports[c]=d(this):(this.depCount+=1,t(a,"defined",s(this,function(a){this.defineDep(c,a);this.check()})),b&&t(a,"error",b))}));this.inited=
|
||||
!0;this.ignore=d.ignore;d.enabled||this.enabled?this.enable():this.check()}},defineDepById:function(a,c){var b;n(this.depMaps,function(c,d){if(c.id===a)return b=d,!0});return this.defineDep(b,c)},defineDep:function(a,c){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=c)},fetch:function(){if(!this.fetched)this.fetched=!0,i.startTime=(new Date).getTime(),this.map.prefix?this.callPlugin():this.shim?v(this,!0)(this.shim.deps||[],s(this,function(){this.load()})):this.load()},
|
||||
load:function(){var a=this.map.url;Q[a]||(Q[a]=!0,i.load(this.map.id,a))},check:function(a){if(this.enabled){var c=this.map.id,b=this.depExports,d=this.exports,e=this.factory,m;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(w(e)){if(this.events.error)try{d=i.execCb(c,e,b,d)}catch(h){m=h}else d=i.execCb(c,e,b,d);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)d=b.exports;
|
||||
else if(d===void 0&&this.usingExports)d=this.exports;if(m)return m.requireMap=this.map,m.requireModules=[this.map.id],m.requireType="define",z(this.error=m)}else d=e;this.exports=d;if(this.map.isDefine&&!this.ignore&&(p[c]=d,l.onResourceLoad))l.onResourceLoad(i,this.map,this.depMaps);delete o[c];this.defined=!0;i.waitCount-=1;i.waitCount===0&&(K=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},
|
||||
callPlugin:function(){var a=this.map,c=a.id,b=e(a.prefix,null,!1,!0);t(b,"defined",s(this,function(b){var j=this.map.name,m=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(j=b.normalize(j,function(a){return d(a,m,!0)})||""),b=e(a.prefix+"!"+j),t(b,"defined",s(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=o[b.id]){if(this.events.error)b.on("error",s(this,function(a){this.emit("error",a)}));b.enable()}}else j=s(this,function(a){this.init([],
|
||||
function(){return a},null,{enabled:!0})}),j.error=s(this,function(a){this.inited=!0;this.error=a;a.requireModules=[c];A(o,function(a){a.map.id.indexOf(c+"_unnormalized")===0&&y(a.map.id)});z(a)}),j.fromText=function(a,c){var b=J;b&&(J=!1);l.exec(c);b&&(J=!0);i.completeLoad(a)},b.load(a.name,v(a.parentMap,!0,function(a,c){return i.require(a,c)}),j,k)}));i.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=!0;if(!this.waitPushed)K.push(this),i.waitCount+=1,this.waitPushed=!0;n(this.depMaps,
|
||||
s(this,function(a){var c=a.id,b=o[c];!P[c]&&b&&!b.enabled&&i.enable(a,this)}));A(this.pluginMaps,s(this,function(a){var c=o[a.id];c&&!c.enabled&&i.enable(a,this)}));this.check()},on:function(a,c){var b=this.events[a];b||(b=this.events[a]=[]);b.push(c)},emit:function(a,c){n(this.events[a],function(a){a(c)});a==="error"&&delete this.events[a]}};return i={config:k,contextName:b,registry:o,defined:p,urlMap:O,urlFetched:Q,waitCount:0,defQueue:D,Module:Y,makeModuleMap:e,configure:function(a){a.baseUrl&&
|
||||
a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var c=k.paths,b=k.pkgs,d=k.shim,e=k.map||{};R(k,a,!0);R(c,a.paths,!0);k.paths=c;if(a.map)R(e,a.map,!0),k.map=e;if(a.shim)A(a.shim,function(a,c){E(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=i.makeShimExports(a.exports);d[c]=a}),k.shim=d;if(a.packages)n(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(ca,"")}}),k.pkgs=
|
||||
b;if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){var c;return typeof a==="string"?(c=function(){return $(a)},c.exports=a,c):function(){return a.apply(Z,arguments)}},requireDefined:function(a,c){var b=e(a,c,!1,!0).id;return p.hasOwnProperty(b)},requireSpecified:function(a,c){a=e(a,c,!1,!0).id;return p.hasOwnProperty(a)||o.hasOwnProperty(a)},require:function(a,c,d,f){var g;if(typeof a==="string"){if(w(c))return z(F("requireargs","Invalid require call"),d);if(l.get)return l.get(i,
|
||||
a,c);a=e(a,c,!1,!0);a=a.id;return!p.hasOwnProperty(a)?z(F("notloaded",'Module name "'+a+'" has not been loaded yet for context: '+b)):p[a]}d&&!w(d)&&(f=d,d=void 0);c&&!w(c)&&(f=c,c=void 0);for(x();D.length;)if(g=D.shift(),g[0]===null)return z(F("mismatch","Mismatched anonymous define() module: "+g[g.length-1]));else W(g);q(e(null,f)).init(a,c,d,{enabled:!0});T();return i.require},undef:function(a){var c=e(a,null,!0),b=o[a];delete p[a];delete O[a];delete Q[c.url];delete X[a];if(b){if(b.events.defined)X[a]=
|
||||
b.events;y(a)}},enable:function(a){o[a.id]&&q(a).enable()},completeLoad:function(a){var c=k.shim[a]||{},b=c.exports&&c.exports.exports,d,e;for(x();D.length;){e=D.shift();if(e[0]===null){e[0]=a;if(d)break;d=!0}else e[0]===a&&(d=!0);W(e)}e=o[a];if(!d&&!p[a]&&e&&!e.inited)if(k.enforceDefine&&(!b||!$(b)))if(g(a))return;else return z(F("nodefine","No define call for "+a,null,[a]));else W([a,c.deps||[],c.exports]);T()},toUrl:function(a,c){var b=a.lastIndexOf("."),d=null;b!==-1&&(d=a.substring(b,a.length),
|
||||
a=a.substring(0,b));return i.nameToUrl(a,d,c)},nameToUrl:function(a,c,b){var e,f,g,h,i,a=d(a,b&&b.id,!0);if(l.jsExtRegExp.test(a))c=a+(c||"");else{e=k.paths;f=k.pkgs;b=a.split("/");for(h=b.length;h>0;h-=1)if(i=b.slice(0,h).join("/"),g=f[i],i=e[i]){E(i)&&(i=i[0]);b.splice(0,h,i);break}else if(g){a=a===g.name?g.location+"/"+g.main:g.location;b.splice(0,h,a);break}c=b.join("/")+(c||".js");c=(c.charAt(0)==="/"||c.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+c}return k.urlArgs?c+((c.indexOf("?")===-1?"?":"&")+
|
||||
k.urlArgs):c},load:function(a,b){l.load(i,a,b)},execCb:function(a,b,d,e){return b.apply(e,d)},onScriptLoad:function(a){if(a.type==="load"||ma.test((a.currentTarget||a.srcElement).readyState))G=null,a=I(a),i.completeLoad(a.id)},onScriptError:function(a){var b=I(a);if(!g(b.id))return z(F("scripterror","Script error",a,[b.id]))}}}};l({});ba(l,v._);if(u&&(t=x.head=document.getElementsByTagName("head")[0],B=document.getElementsByTagName("base")[0]))t=x.head=B.parentNode;l.onError=function(b){throw b;};
|
||||
l.load=function(b,d,f){var g=b&&b.config||{},e;if(u)return e=g.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),e.type=g.scriptType||"text/javascript",e.charset="utf-8",e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",d),e.attachEvent&&!(e.attachEvent.toString&&e.attachEvent.toString().indexOf("[native code")<0)&&!S?(J=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",
|
||||
b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=f,H=e,B?t.insertBefore(e,B):t.appendChild(e),H=null,e;else da&&(importScripts(f),b.completeLoad(d))};u&&L(document.getElementsByTagName("script"),function(b){if(!t)t=b.parentNode;if(y=b.getAttribute("data-main")){if(!q.baseUrl)C=y.split("/"),N=C.pop(),ea=C.length?C.join("/")+"/":"./",q.baseUrl=ea,y=N.replace(ca,"");q.deps=q.deps?q.deps.concat(y):[y];return!0}});define=function(b,d,f){var g,e;typeof b!=="string"&&(f=d,d=b,b=null);
|
||||
E(d)||(f=d,d=[]);!d.length&&w(f)&&f.length&&(f.toString().replace(ia,"").replace(ja,function(b,e){d.push(e)}),d=(f.length===1?["require"]:["require","exports","module"]).concat(d));if(J&&(g=H||ha()))b||(b=g.getAttribute("data-requiremodule")),e=v[g.getAttribute("data-requirecontext")];(e?e.defQueue:M).push([b,d,f])};define.amd={jQuery:!0};l.exec=function(b){return eval(b)};l(q)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.2.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.2.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.0.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function w(b){return J.call(b)==="[object Function]"}function G(b){return J.call(b)==="[object Array]"}function q(b,d){if(b){var f;for(f=0;f<b.length;f+=1)if(b[f]&&d(b[f],f,b))break}}function N(b,d){if(b){var f;for(f=b.length-1;f>-1;f-=1)if(b[f]&&d(b[f],f,b))break}}function x(b,d){for(var f in b)if(b.hasOwnProperty(f)&&d(b[f],f))break}function K(b,d,f,g){d&&x(d,function(d,k){if(f||!b.hasOwnProperty(k))g&&typeof d!=="string"?(b[k]||(b[k]={}),K(b[k],d,f,g)):b[k]=d});return b}function s(b,
|
||||
d){return function(){return d.apply(b,arguments)}}function $(b){if(!b)return b;var d=Z;q(b.split("."),function(b){d=d[b]});return d}function aa(b,d,f){return function(){var g=ga.call(arguments,0),e;if(f&&w(e=g[g.length-1]))e.__requireJsBuild=!0;g.push(d);return b.apply(null,g)}}function ba(b,d,f){q([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(g){var e=g[1]||g[0];b[g[0]]=d?aa(d[e],f):function(){var b=t[O];return b[e].apply(b,arguments)}})}function H(b,
|
||||
d,f,g){d=Error(d+"\nhttp://requirejs.org/docs/errors.html#"+b);d.requireType=b;d.requireModules=g;if(f)d.originalError=f;return d}function ha(){if(I&&I.readyState==="interactive")return I;N(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return I=b});return I}var ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ca=/\.js$/,ka=/^\.\//,J=Object.prototype.toString,y=Array.prototype,ga=y.slice,la=y.splice,u=!!(typeof window!==
|
||||
"undefined"&&navigator&&document),da=!u&&typeof importScripts!=="undefined",ma=u&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,O="_",S=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",t={},p={},P=[],L=!1,k,v,C,z,D,I,E,ea,fa;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(w(requirejs))return;p=requirejs;requirejs=void 0}typeof require!=="undefined"&&!w(require)&&(p=require,require=void 0);k=requirejs=function(b,d,f,g){var e=O,r;!G(b)&&
|
||||
typeof b!=="string"&&(r=b,G(d)?(b=d,d=f,f=g):b=[]);if(r&&r.context)e=r.context;(g=t[e])||(g=t[e]=k.s.newContext(e));r&&g.configure(r);return g.require(b,d,f)};k.config=function(b){return k(b)};require||(require=k);k.version="2.0.2";k.jsExtRegExp=/^\/|:|\?|\.js$/;k.isBrowser=u;y=k.s={contexts:t,newContext:function(b){function d(a,c,l){var A=c&&c.split("/"),b=m.map,i=b&&b["*"],h,d,f,e;if(a&&a.charAt(0)===".")if(c){A=m.pkgs[c]?[c]:A.slice(0,A.length-1);c=a=A.concat(a.split("/"));for(h=0;c[h];h+=1)if(d=
|
||||
c[h],d===".")c.splice(h,1),h-=1;else if(d==="..")if(h===1&&(c[2]===".."||c[0]===".."))break;else h>0&&(c.splice(h-1,2),h-=2);h=m.pkgs[c=a[0]];a=a.join("/");h&&a===c+"/"+h.main&&(a=c)}else a.indexOf("./")===0&&(a=a.substring(2));if(l&&(A||i)&&b){c=a.split("/");for(h=c.length;h>0;h-=1){f=c.slice(0,h).join("/");if(A)for(d=A.length;d>0;d-=1)if(l=b[A.slice(0,d).join("/")])if(l=l[f]){e=l;break}!e&&i&&i[f]&&(e=i[f]);if(e){c.splice(0,h,e);a=c.join("/");break}}}return a}function f(a){u&&q(document.getElementsByTagName("script"),
|
||||
function(c){if(c.getAttribute("data-requiremodule")===a&&c.getAttribute("data-requirecontext")===j.contextName)return c.parentNode.removeChild(c),!0})}function g(a){var c=m.paths[a];if(c&&G(c)&&c.length>1)return f(a),c.shift(),j.undef(a),j.require([a]),!0}function e(a,c,l,b){var T=a?a.indexOf("!"):-1,i=null,h=c?c.name:null,f=a,e=!0,g="",k,m;a||(e=!1,a="_@r"+(N+=1));T!==-1&&(i=a.substring(0,T),a=a.substring(T+1,a.length));i&&(i=d(i,h,b),m=o[i]);a&&(i?g=m&&m.normalize?m.normalize(a,function(a){return d(a,
|
||||
h,b)}):d(a,h,b):(g=d(a,h,b),k=j.nameToUrl(a,null,c)));a=i&&!m&&!l?"_unnormalized"+(O+=1):"";return{prefix:i,name:g,parentMap:c,unnormalized:!!a,url:k,originalName:f,isDefine:e,id:(i?i+"!"+g:g)+a}}function r(a){var c=a.id,l=n[c];l||(l=n[c]=new j.Module(a));return l}function p(a,c,l){var b=a.id,d=n[b];if(o.hasOwnProperty(b)&&(!d||d.defineEmitComplete))c==="defined"&&l(o[b]);else r(a).on(c,l)}function B(a,c){var l=a.requireModules,b=!1;if(c)c(a);else if(q(l,function(c){if(c=n[c])c.error=a,c.events.error&&
|
||||
(b=!0,c.emit("error",a))}),!b)k.onError(a)}function v(){P.length&&(la.apply(F,[F.length-1,0].concat(P)),P=[])}function t(a,c,l){a=a&&a.map;c=aa(l||j.require,a,c);ba(c,j,a);c.isBrowser=u;return c}function y(a){delete n[a];q(M,function(c,l){if(c.map.id===a)return M.splice(l,1),c.defined||(j.waitCount-=1),!0})}function z(a,c){var l=a.map.id,b=a.depMaps,d;if(a.inited){if(c[l])return a;c[l]=!0;q(b,function(a){if(a=n[a.id])return!a.inited||!a.enabled?(d=null,delete c[l],!0):d=z(a,K({},c))});return d}}function C(a,
|
||||
c,b){var d=a.map.id,e=a.depMaps;if(a.inited&&a.map.isDefine){if(c[d])return o[d];c[d]=a;q(e,function(i){var i=i.id,h=n[i];!Q[i]&&h&&(!h.inited||!h.enabled?b[d]=!0:(h=C(h,c,b),b[i]||a.defineDepById(i,h)))});a.check(!0);return o[d]}}function D(a){a.check()}function E(){var a=m.waitSeconds*1E3,c=a&&j.startTime+a<(new Date).getTime(),b=[],d=!1,e=!0,i,h,k;if(!U){U=!0;x(n,function(a){i=a.map;h=i.id;if(a.enabled&&!a.error)if(!a.inited&&c)g(h)?d=k=!0:(b.push(h),f(h));else if(!a.inited&&a.fetched&&i.isDefine&&
|
||||
(d=!0,!i.prefix))return e=!1});if(c&&b.length)return a=H("timeout","Load timeout for modules: "+b,null,b),a.contextName=j.contextName,B(a);e&&(q(M,function(a){if(!a.defined){var a=z(a,{}),c={};a&&(C(a,c,{}),x(c,D))}}),x(n,D));if((!c||k)&&d)if((u||da)&&!V)V=setTimeout(function(){V=0;E()},50);U=!1}}function W(a){r(e(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,c=j.onScriptLoad;a.detachEvent&&!S?a.detachEvent("onreadystatechange",c):a.removeEventListener("load",c,
|
||||
!1);c=j.onScriptError;a.detachEvent&&!S||a.removeEventListener("error",c,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}var m={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},n={},X={},F=[],o={},R={},N=1,O=1,M=[],U,Y,j,Q,V;Q={require:function(a){return t(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=o[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&m.config[a.map.id]||{}},exports:o[a.map.id]}}};
|
||||
Y=function(a){this.events=X[a.id]||{};this.map=a;this.shim=m.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};Y.prototype={init:function(a,c,b,d){d=d||{};if(!this.inited){this.factory=c;if(b)this.on("error",b);else this.events.error&&(b=s(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.depMaps.rjsSkipMap=a.rjsSkipMap;this.errback=b;this.inited=!0;this.ignore=d.ignore;d.enabled||this.enabled?this.enable():this.check()}},defineDepById:function(a,
|
||||
c){var b;q(this.depMaps,function(c,d){if(c.id===a)return b=d,!0});return this.defineDep(b,c)},defineDep:function(a,c){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=c)},fetch:function(){if(!this.fetched){this.fetched=!0;j.startTime=(new Date).getTime();var a=this.map;if(this.shim)t(this,!0)(this.shim.deps||[],s(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;R[a]||
|
||||
(R[a]=!0,j.load(this.map.id,a))},check:function(a){if(this.enabled&&!this.enabling){var c=this.map.id,b=this.depExports,d=this.exports,e=this.factory,i;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(w(e)){if(this.events.error)try{d=j.execCb(c,e,b,d)}catch(h){i=h}else d=j.execCb(c,e,b,d);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)d=b.exports;else if(d===void 0&&this.usingExports)d=
|
||||
this.exports;if(i)return i.requireMap=this.map,i.requireModules=[this.map.id],i.requireType="define",B(this.error=i)}else d=e;this.exports=d;if(this.map.isDefine&&!this.ignore&&(o[c]=d,k.onResourceLoad))k.onResourceLoad(j,this.map,this.depMaps);delete n[c];this.defined=!0;j.waitCount-=1;j.waitCount===0&&(M=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},callPlugin:function(){var a=
|
||||
this.map,c=a.id,b=e(a.prefix,null,!1,!0);p(b,"defined",s(this,function(b){var l=this.map.name,i=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(l=b.normalize(l,function(a){return d(a,i,!0)})||""),b=e(a.prefix+"!"+l,this.map.parentMap,!1,!0),p(b,"defined",s(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=n[b.id]){if(this.events.error)b.on("error",s(this,function(a){this.emit("error",a)}));b.enable()}}else l=s(this,function(a){this.init([],
|
||||
function(){return a},null,{enabled:!0})}),l.error=s(this,function(a){this.inited=!0;this.error=a;a.requireModules=[c];x(n,function(a){a.map.id.indexOf(c+"_unnormalized")===0&&y(a.map.id)});B(a)}),l.fromText=function(a,c){var b=L;b&&(L=!1);r(e(a));k.exec(c);b&&(L=!0);j.completeLoad(a)},b.load(a.name,t(a.parentMap,!0,function(a,c){a.rjsSkipMap=!0;return j.require(a,c)}),l,m)}));j.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=!0;if(!this.waitPushed)M.push(this),j.waitCount+=
|
||||
1,this.waitPushed=!0;this.enabling=!0;q(this.depMaps,s(this,function(a,c){var b,d;if(typeof a==="string"){a=e(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.depMaps.rjsSkipMap);this.depMaps[c]=a;if(b=Q[a.id]){this.depExports[c]=b(this);return}this.depCount+=1;p(a,"defined",s(this,function(a){this.defineDep(c,a);this.check()}));this.errback&&p(a,"error",this.errback)}b=a.id;d=n[b];!Q[b]&&d&&!d.enabled&&j.enable(a,this)}));x(this.pluginMaps,s(this,function(a){var c=n[a.id];c&&!c.enabled&&
|
||||
j.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,c){var b=this.events[a];b||(b=this.events[a]=[]);b.push(c)},emit:function(a,c){q(this.events[a],function(a){a(c)});a==="error"&&delete this.events[a]}};return j={config:m,contextName:b,registry:n,defined:o,urlFetched:R,waitCount:0,defQueue:F,Module:Y,makeModuleMap:e,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var c=m.pkgs,b=m.shim,d=m.paths,f=m.map;K(m,a,!0);m.paths=K(d,a.paths,!0);if(a.map)m.map=
|
||||
K(f||{},a.map,!0,!0);if(a.shim)x(a.shim,function(a,c){G(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=j.makeShimExports(a.exports);b[c]=a}),m.shim=b;if(a.packages)q(a.packages,function(a){a=typeof a==="string"?{name:a}:a;c[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(ca,"")}}),m.pkgs=c;x(n,function(a,c){a.map=e(c)});if(a.deps||a.callback)j.require(a.deps||[],a.callback)},makeShimExports:function(a){var c;return typeof a==="string"?
|
||||
(c=function(){return $(a)},c.exports=a,c):function(){return a.apply(Z,arguments)}},requireDefined:function(a,c){var b=e(a,c,!1,!0).id;return o.hasOwnProperty(b)},requireSpecified:function(a,c){a=e(a,c,!1,!0).id;return o.hasOwnProperty(a)||n.hasOwnProperty(a)},require:function(a,c,d,f){var g;if(typeof a==="string"){if(w(c))return B(H("requireargs","Invalid require call"),d);if(k.get)return k.get(j,a,c);a=e(a,c,!1,!0);a=a.id;return!o.hasOwnProperty(a)?B(H("notloaded",'Module name "'+a+'" has not been loaded yet for context: '+
|
||||
b)):o[a]}d&&!w(d)&&(f=d,d=void 0);c&&!w(c)&&(f=c,c=void 0);for(v();F.length;)if(g=F.shift(),g[0]===null)return B(H("mismatch","Mismatched anonymous define() module: "+g[g.length-1]));else W(g);r(e(null,f)).init(a,c,d,{enabled:!0});E();return j.require},undef:function(a){var c=e(a,null,!0),b=n[a];delete o[a];delete R[c.url];delete X[a];if(b){if(b.events.defined)X[a]=b.events;y(a)}},enable:function(a){n[a.id]&&r(a).enable()},completeLoad:function(a){var c=m.shim[a]||{},b=c.exports&&c.exports.exports,
|
||||
d,e;for(v();F.length;){e=F.shift();if(e[0]===null){e[0]=a;if(d)break;d=!0}else e[0]===a&&(d=!0);W(e)}e=n[a];if(!d&&!o[a]&&e&&!e.inited)if(m.enforceDefine&&(!b||!$(b)))if(g(a))return;else return B(H("nodefine","No define call for "+a,null,[a]));else W([a,c.deps||[],c.exports]);E()},toUrl:function(a,b){var d=a.lastIndexOf("."),e=null;d!==-1&&(e=a.substring(d,a.length),a=a.substring(0,d));return j.nameToUrl(a,e,b)},nameToUrl:function(a,b,e){var f,g,i,h,j,a=d(a,e&&e.id,!0);if(k.jsExtRegExp.test(a))b=
|
||||
a+(b||"");else{f=m.paths;g=m.pkgs;e=a.split("/");for(h=e.length;h>0;h-=1)if(j=e.slice(0,h).join("/"),i=g[j],j=f[j]){G(j)&&(j=j[0]);e.splice(0,h,j);break}else if(i){a=a===i.name?i.location+"/"+i.main:i.location;e.splice(0,h,a);break}b=e.join("/")+(b||".js");b=(b.charAt(0)==="/"||b.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+b}return m.urlArgs?b+((b.indexOf("?")===-1?"?":"&")+m.urlArgs):b},load:function(a,b){k.load(j,a,b)},execCb:function(a,b,d,e){return b.apply(e,d)},onScriptLoad:function(a){if(a.type===
|
||||
"load"||ma.test((a.currentTarget||a.srcElement).readyState))I=null,a=J(a),j.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!g(b.id))return B(H("scripterror","Script error",a,[b.id]))}}}};k({});ba(k);if(u&&(v=y.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))v=y.head=C.parentNode;k.onError=function(b){throw b;};k.load=function(b,d,f){var g=b&&b.config||{},e;if(u)return e=g.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):
|
||||
document.createElement("script"),e.type=g.scriptType||"text/javascript",e.charset="utf-8",e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",d),e.attachEvent&&!(e.attachEvent.toString&&e.attachEvent.toString().indexOf("[native code")<0)&&!S?(L=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=f,E=e,C?v.insertBefore(e,C):v.appendChild(e),E=null,e;else da&&(importScripts(f),
|
||||
b.completeLoad(d))};u&&N(document.getElementsByTagName("script"),function(b){if(!v)v=b.parentNode;if(z=b.getAttribute("data-main")){D=z.split("/");ea=D.pop();fa=D.length?D.join("/")+"/":"./";if(!p.baseUrl)p.baseUrl=fa;z=ea.replace(ca,"");p.deps=p.deps?p.deps.concat(z):[z];return!0}});define=function(b,d,f){var g,e;typeof b!=="string"&&(f=d,d=b,b=null);G(d)||(f=d,d=[]);!d.length&&w(f)&&f.length&&(f.toString().replace(ia,"").replace(ja,function(b,e){d.push(e)}),d=(f.length===1?["require"]:["require",
|
||||
"exports","module"]).concat(d));if(L&&(g=E||ha()))b||(b=g.getAttribute("data-requiremodule")),e=t[g.getAttribute("data-requirecontext")];(e?e.defQueue:P).push([b,d,f])};define.amd={jQuery:!0};k.exec=function(b){return eval(b)};k(p)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.3.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.3.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.0.3 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Y){function x(b){return J.call(b)==="[object Function]"}function G(b){return J.call(b)==="[object Array]"}function q(b,c){if(b){var e;for(e=0;e<b.length;e+=1)if(b[e]&&c(b[e],e,b))break}}function N(b,c){if(b){var e;for(e=b.length-1;e>-1;e-=1)if(b[e]&&c(b[e],e,b))break}}function y(b,c){for(var e in b)if(b.hasOwnProperty(e)&&c(b[e],e))break}function K(b,c,e,i){c&&y(c,function(c,j){if(e||!b.hasOwnProperty(j))i&&typeof c!=="string"?(b[j]||(b[j]={}),K(b[j],c,e,i)):b[j]=c});return b}function s(b,
|
||||
c){return function(){return c.apply(b,arguments)}}function Z(b){if(!b)return b;var c=Y;q(b.split("."),function(b){c=c[b]});return c}function $(b,c,e){return function(){var i=fa.call(arguments,0),g;if(e&&x(g=i[i.length-1]))g.__requireJsBuild=!0;i.push(c);return b.apply(null,i)}}function aa(b,c,e){q([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(i){var g=i[1]||i[0];b[i[0]]=c?$(c[g],e):function(){var b=z[O];return b[g].apply(b,arguments)}})}function H(b,
|
||||
c,e,i){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=i;if(e)c.originalError=e;return c}function ga(){if(I&&I.readyState==="interactive")return I;N(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return I=b});return I}var ha=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ia=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ba=/\.js$/,ja=/^\.\//,J=Object.prototype.toString,A=Array.prototype,fa=A.slice,ka=A.splice,w=!!(typeof window!==
|
||||
"undefined"&&navigator&&document),ca=!w&&typeof importScripts!=="undefined",la=w&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,O="_",S=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",z={},p={},P=[],L=!1,j,t,C,u,D,I,E,da,ea;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(x(requirejs))return;p=requirejs;requirejs=void 0}typeof require!=="undefined"&&!x(require)&&(p=require,require=void 0);j=requirejs=function(b,c,e,i){var g=O,r;!G(b)&&
|
||||
typeof b!=="string"&&(r=b,G(c)?(b=c,c=e,e=i):b=[]);if(r&&r.context)g=r.context;(i=z[g])||(i=z[g]=j.s.newContext(g));r&&i.configure(r);return i.require(b,c,e)};j.config=function(b){return j(b)};require||(require=j);j.version="2.0.3";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=w;A=j.s={contexts:z,newContext:function(b){function c(a,d,o){var l=d&&d.split("/"),f=l,b=k.map,c=b&&b["*"],e,g,h;if(a&&a.charAt(0)===".")if(d){f=k.pkgs[d]?l=[d]:l.slice(0,l.length-1);d=a=f.concat(a.split("/"));for(f=0;d[f];f+=
|
||||
1)if(e=d[f],e===".")d.splice(f,1),f-=1;else if(e==="..")if(f===1&&(d[2]===".."||d[0]===".."))break;else f>0&&(d.splice(f-1,2),f-=2);f=k.pkgs[d=a[0]];a=a.join("/");f&&a===d+"/"+f.main&&(a=d)}else a.indexOf("./")===0&&(a=a.substring(2));if(o&&(l||c)&&b){d=a.split("/");for(f=d.length;f>0;f-=1){g=d.slice(0,f).join("/");if(l)for(e=l.length;e>0;e-=1)if(o=b[l.slice(0,e).join("/")])if(o=o[g]){h=o;break}!h&&c&&c[g]&&(h=c[g]);if(h){d.splice(0,f,h);a=d.join("/");break}}}return a}function e(a){w&&q(document.getElementsByTagName("script"),
|
||||
function(d){if(d.getAttribute("data-requiremodule")===a&&d.getAttribute("data-requirecontext")===h.contextName)return d.parentNode.removeChild(d),!0})}function i(a){var d=k.paths[a];if(d&&G(d)&&d.length>1)return e(a),d.shift(),h.undef(a),h.require([a]),!0}function g(a,d,o,b){var f=a?a.indexOf("!"):-1,v=null,e=d?d.name:null,g=a,i=!0,j="",k,m;a||(i=!1,a="_@r"+(N+=1));f!==-1&&(v=a.substring(0,f),a=a.substring(f+1,a.length));v&&(v=c(v,e,b),m=n[v]);a&&(v?j=m&&m.normalize?m.normalize(a,function(a){return c(a,
|
||||
e,b)}):c(a,e,b):(j=c(a,e,b),k=h.nameToUrl(j)));a=v&&!m&&!o?"_unnormalized"+(O+=1):"";return{prefix:v,name:j,parentMap:d,unnormalized:!!a,url:k,originalName:g,isDefine:i,id:(v?v+"!"+j:j)+a}}function r(a){var d=a.id,o=m[d];o||(o=m[d]=new h.Module(a));return o}function p(a,d,o){var b=a.id,f=m[b];if(n.hasOwnProperty(b)&&(!f||f.defineEmitComplete))d==="defined"&&o(n[b]);else r(a).on(d,o)}function B(a,d){var b=a.requireModules,l=!1;if(d)d(a);else if(q(b,function(d){if(d=m[d])d.error=a,d.events.error&&(l=
|
||||
!0,d.emit("error",a))}),!l)j.onError(a)}function u(){P.length&&(ka.apply(F,[F.length-1,0].concat(P)),P=[])}function t(a,d,b){a=a&&a.map;d=$(b||h.require,a,d);aa(d,h,a);d.isBrowser=w;return d}function z(a){delete m[a];q(M,function(d,b){if(d.map.id===a)return M.splice(b,1),d.defined||(h.waitCount-=1),!0})}function A(a,d){var b=a.map.id,l=a.depMaps,f;if(a.inited){if(d[b])return a;d[b]=!0;q(l,function(a){if(a=m[a.id])return!a.inited||!a.enabled?(f=null,delete d[b],!0):f=A(a,K({},d))});return f}}function C(a,
|
||||
d,b){var l=a.map.id,f=a.depMaps;if(a.inited&&a.map.isDefine){if(d[l])return n[l];d[l]=a;q(f,function(f){var f=f.id,c=m[f];!Q[f]&&c&&(!c.inited||!c.enabled?b[l]=!0:(c=C(c,d,b),b[f]||a.defineDepById(f,c)))});a.check(!0);return n[l]}}function D(a){a.check()}function E(){var a=k.waitSeconds*1E3,d=a&&h.startTime+a<(new Date).getTime(),b=[],l=!1,f=!0,c,g,j;if(!T){T=!0;y(m,function(a){c=a.map;g=c.id;if(a.enabled&&!a.error)if(!a.inited&&d)i(g)?l=j=!0:(b.push(g),e(g));else if(!a.inited&&a.fetched&&c.isDefine&&
|
||||
(l=!0,!c.prefix))return f=!1});if(d&&b.length)return a=H("timeout","Load timeout for modules: "+b,null,b),a.contextName=h.contextName,B(a);f&&(q(M,function(a){if(!a.defined){var a=A(a,{}),d={};a&&(C(a,d,{}),y(d,D))}}),y(m,D));if((!d||j)&&l)if((w||ca)&&!U)U=setTimeout(function(){U=0;E()},50);T=!1}}function V(a){r(g(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,d=h.onScriptLoad;a.detachEvent&&!S?a.detachEvent("onreadystatechange",d):a.removeEventListener("load",d,
|
||||
!1);d=h.onScriptError;a.detachEvent&&!S||a.removeEventListener("error",d,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}var k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},m={},W={},F=[],n={},R={},N=1,O=1,M=[],T,X,h,Q,U;Q={require:function(a){return t(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=n[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return k.config&&k.config[a.map.id]||{}},exports:n[a.map.id]}}};
|
||||
X=function(a){this.events=W[a.id]||{};this.map=a;this.shim=k.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,d,b,l){l=l||{};if(!this.inited){this.factory=d;if(b)this.on("error",b);else this.events.error&&(b=s(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.depMaps.rjsSkipMap=a.rjsSkipMap;this.errback=b;this.inited=!0;this.ignore=l.ignore;l.enabled||this.enabled?this.enable():this.check()}},defineDepById:function(a,
|
||||
d){var b;q(this.depMaps,function(d,f){if(d.id===a)return b=f,!0});return this.defineDep(b,d)},defineDep:function(a,d){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=d)},fetch:function(){if(!this.fetched){this.fetched=!0;h.startTime=(new Date).getTime();var a=this.map;if(this.shim)t(this,!0)(this.shim.deps||[],s(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;R[a]||
|
||||
(R[a]=!0,h.load(this.map.id,a))},check:function(a){if(this.enabled&&!this.enabling){var d=this.map.id,b=this.depExports,c=this.exports,f=this.factory,e;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(x(f)){if(this.events.error)try{c=h.execCb(d,f,b,c)}catch(g){e=g}else c=h.execCb(d,f,b,c);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)c=b.exports;else if(c===void 0&&this.usingExports)c=
|
||||
this.exports;if(e)return e.requireMap=this.map,e.requireModules=[this.map.id],e.requireType="define",B(this.error=e)}else c=f;this.exports=c;if(this.map.isDefine&&!this.ignore&&(n[d]=c,j.onResourceLoad))j.onResourceLoad(h,this.map,this.depMaps);delete m[d];this.defined=!0;h.waitCount-=1;h.waitCount===0&&(M=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},callPlugin:function(){var a=
|
||||
this.map,d=a.id,b=g(a.prefix,null,!1,!0);p(b,"defined",s(this,function(b){var f=this.map.name,e=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(f=b.normalize(f,function(a){return c(a,e,!0)})||""),b=g(a.prefix+"!"+f,this.map.parentMap,!1,!0),p(b,"defined",s(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=m[b.id]){if(this.events.error)b.on("error",s(this,function(a){this.emit("error",a)}));b.enable()}}else f=s(this,function(a){this.init([],
|
||||
function(){return a},null,{enabled:!0})}),f.error=s(this,function(a){this.inited=!0;this.error=a;a.requireModules=[d];y(m,function(a){a.map.id.indexOf(d+"_unnormalized")===0&&z(a.map.id)});B(a)}),f.fromText=function(a,d){var b=L;b&&(L=!1);r(g(a));j.exec(d);b&&(L=!0);h.completeLoad(a)},b.load(a.name,t(a.parentMap,!0,function(a,d){a.rjsSkipMap=!0;return h.require(a,d)}),f,k)}));h.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=!0;if(!this.waitPushed)M.push(this),h.waitCount+=
|
||||
1,this.waitPushed=!0;this.enabling=!0;q(this.depMaps,s(this,function(a,d){var b,c;if(typeof a==="string"){a=g(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.depMaps.rjsSkipMap);this.depMaps[d]=a;if(b=Q[a.id]){this.depExports[d]=b(this);return}this.depCount+=1;p(a,"defined",s(this,function(a){this.defineDep(d,a);this.check()}));this.errback&&p(a,"error",this.errback)}b=a.id;c=m[b];!Q[b]&&c&&!c.enabled&&h.enable(a,this)}));y(this.pluginMaps,s(this,function(a){var b=m[a.id];b&&!b.enabled&&
|
||||
h.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){q(this.events[a],function(a){a(b)});a==="error"&&delete this.events[a]}};return h={config:k,contextName:b,registry:m,defined:n,urlFetched:R,waitCount:0,defQueue:F,Module:X,makeModuleMap:g,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,e=k.paths,f=k.map;K(k,a,!0);k.paths=K(e,a.paths,!0);if(a.map)k.map=
|
||||
K(f||{},a.map,!0,!0);if(a.shim)y(a.shim,function(a,b){G(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=h.makeShimExports(a.exports);c[b]=a}),k.shim=c;if(a.packages)q(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ba,"")}}),k.pkgs=b;y(m,function(a,b){a.map=g(b)});if(a.deps||a.callback)h.require(a.deps||[],a.callback)},makeShimExports:function(a){var b;return typeof a==="string"?
|
||||
(b=function(){return Z(a)},b.exports=a,b):function(){return a.apply(Y,arguments)}},requireDefined:function(a,b){var c=g(a,b,!1,!0).id;return n.hasOwnProperty(c)},requireSpecified:function(a,b){a=g(a,b,!1,!0).id;return n.hasOwnProperty(a)||m.hasOwnProperty(a)},require:function(a,d,c,e){var f;if(typeof a==="string"){if(x(d))return B(H("requireargs","Invalid require call"),c);if(j.get)return j.get(h,a,d);a=g(a,d,!1,!0);a=a.id;return!n.hasOwnProperty(a)?B(H("notloaded",'Module name "'+a+'" has not been loaded yet for context: '+
|
||||
b)):n[a]}c&&!x(c)&&(e=c,c=void 0);d&&!x(d)&&(e=d,d=void 0);for(u();F.length;)if(f=F.shift(),f[0]===null)return B(H("mismatch","Mismatched anonymous define() module: "+f[f.length-1]));else V(f);r(g(null,e)).init(a,d,c,{enabled:!0});E();return h.require},undef:function(a){var b=g(a,null,!0),c=m[a];delete n[a];delete R[b.url];delete W[a];if(c){if(c.events.defined)W[a]=c.events;z(a)}},enable:function(a){m[a.id]&&r(a).enable()},completeLoad:function(a){var b=k.shim[a]||{},c=b.exports&&b.exports.exports,
|
||||
e,f;for(u();F.length;){f=F.shift();if(f[0]===null){f[0]=a;if(e)break;e=!0}else f[0]===a&&(e=!0);V(f)}f=m[a];if(!e&&!n[a]&&f&&!f.inited)if(k.enforceDefine&&(!c||!Z(c)))if(i(a))return;else return B(H("nodefine","No define call for "+a,null,[a]));else V([a,b.deps||[],b.exports]);E()},toUrl:function(a,b){var e=a.lastIndexOf("."),g=null;e!==-1&&(g=a.substring(e,a.length),a=a.substring(0,e));return h.nameToUrl(c(a,b&&b.id,!0),g)},nameToUrl:function(a,b){var c,e,f,g,h,i;if(j.jsExtRegExp.test(a))g=a+(b||
|
||||
"");else{c=k.paths;e=k.pkgs;g=a.split("/");for(h=g.length;h>0;h-=1)if(i=g.slice(0,h).join("/"),f=e[i],i=c[i]){G(i)&&(i=i[0]);g.splice(0,h,i);break}else if(f){c=a===f.name?f.location+"/"+f.main:f.location;g.splice(0,h,c);break}g=g.join("/")+(b||".js");g=(g.charAt(0)==="/"||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((g.indexOf("?")===-1?"?":"&")+k.urlArgs):g},load:function(a,b){j.load(h,a,b)},execCb:function(a,b,c,e){return b.apply(e,c)},onScriptLoad:function(a){if(a.type==="load"||
|
||||
la.test((a.currentTarget||a.srcElement).readyState))I=null,a=J(a),h.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!i(b.id))return B(H("scripterror","Script error",a,[b.id]))}}}};j({});aa(j);if(w&&(t=A.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))t=A.head=C.parentNode;j.onError=function(b){throw b;};j.load=function(b,c,e){var i=b&&b.config||{},g;if(w)return g=i.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),
|
||||
g.type=i.scriptType||"text/javascript",g.charset="utf-8",g.async=!0,g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&g.attachEvent.toString().indexOf("[native code")<0)&&!S?(L=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=e,E=g,C?t.insertBefore(g,C):t.appendChild(g),E=null,g;else ca&&(importScripts(e),b.completeLoad(c))};
|
||||
w&&N(document.getElementsByTagName("script"),function(b){if(!t)t=b.parentNode;if(u=b.getAttribute("data-main")){if(!p.baseUrl)D=u.split("/"),da=D.pop(),ea=D.length?D.join("/")+"/":"./",p.baseUrl=ea,u=da;u=u.replace(ba,"");p.deps=p.deps?p.deps.concat(u):[u];return!0}});define=function(b,c,e){var i,g;typeof b!=="string"&&(e=c,c=b,b=null);G(c)||(e=c,c=[]);!c.length&&x(e)&&e.length&&(e.toString().replace(ha,"").replace(ia,function(b,e){c.push(e)}),c=(e.length===1?["require"]:["require","exports","module"]).concat(c));
|
||||
if(L&&(i=E||ga()))b||(b=i.getAttribute("data-requiremodule")),g=z[i.getAttribute("data-requirecontext")];(g?g.defQueue:P).push([b,c,e])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(p)}})(this);
|
||||
2030
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.4.js
generated
vendored
Normal file
2030
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.4.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.5.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.5.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.0.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Y){function w(b){return I.call(b)==="[object Function]"}function D(b){return I.call(b)==="[object Array]"}function o(b,c){if(b){var d;for(d=0;d<b.length;d+=1)if(b[d]&&c(b[d],d,b))break}}function M(b,c){if(b){var d;for(d=b.length-1;d>-1;d-=1)if(b[d]&&c(b[d],d,b))break}}function x(b,c){for(var d in b)if(b.hasOwnProperty(d)&&c(b[d],d))break}function J(b,c,d,g){c&&x(c,function(c,j){if(d||!E.call(b,j))g&&typeof c!=="string"?(b[j]||(b[j]={}),J(b[j],c,d,g)):b[j]=c});return b}function t(b,c){return function(){return c.apply(b,
|
||||
arguments)}}function Z(b){if(!b)return b;var c=Y;o(b.split("."),function(b){c=c[b]});return c}function $(b,c,d){return function(){var g=ga.call(arguments,0),f;if(d&&w(f=g[g.length-1]))f.__requireJsBuild=!0;g.push(c);return b.apply(null,g)}}function aa(b,c,d){o([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(g){var f=g[1]||g[0];b[g[0]]=c?$(c[f],d):function(){var b=y[N];return b[f].apply(b,arguments)}})}function F(b,c,d,g){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+
|
||||
b);c.requireType=b;c.requireModules=g;if(d)c.originalError=d;return c}function ha(){if(G&&G.readyState==="interactive")return G;M(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return G=b});return G}var j,p,u,A,s,B,G,H,ba,ca,ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,da=/\.js$/,ka=/^\.\//;p=Object.prototype;var I=p.toString,E=p.hasOwnProperty;p=Array.prototype;var ga=p.slice,la=p.splice,v=!!(typeof window!==
|
||||
"undefined"&&navigator&&document),ea=!v&&typeof importScripts!=="undefined",ma=v&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,N="_",R=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",y={},r={},O=[],K=!1;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(w(requirejs))return;r=requirejs;requirejs=void 0}typeof require!=="undefined"&&!w(require)&&(r=require,require=void 0);j=requirejs=function(b,c,d,g){var f,o=N;!D(b)&&typeof b!=="string"&&
|
||||
(f=b,D(c)?(b=c,c=d,d=g):b=[]);if(f&&f.context)o=f.context;(g=y[o])||(g=y[o]=j.s.newContext(o));f&&g.configure(f);return g.require(b,c,d)};j.config=function(b){return j(b)};require||(require=j);j.version="2.0.5";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=v;p=j.s={contexts:y,newContext:function(b){function c(a,e,k){var m,b,n,c,f,d,h,g=e&&e.split("/");m=g;var j=l.map,i=j&&j["*"];if(a&&a.charAt(0)===".")if(e){m=l.pkgs[e]?g=[e]:g.slice(0,g.length-1);e=a=m.concat(a.split("/"));for(m=0;e[m];m+=1)if(b=e[m],
|
||||
b===".")e.splice(m,1),m-=1;else if(b==="..")if(m===1&&(e[2]===".."||e[0]===".."))break;else m>0&&(e.splice(m-1,2),m-=2);m=l.pkgs[e=a[0]];a=a.join("/");m&&a===e+"/"+m.main&&(a=e)}else a.indexOf("./")===0&&(a=a.substring(2));if(k&&(g||i)&&j){e=a.split("/");for(m=e.length;m>0;m-=1){n=e.slice(0,m).join("/");if(g)for(b=g.length;b>0;b-=1)if(k=j[g.slice(0,b).join("/")])if(k=k[n]){c=k;f=m;break}if(c)break;!d&&i&&i[n]&&(d=i[n],h=m)}!c&&d&&(c=d,f=h);c&&(e.splice(0,f,c),a=e.join("/"))}return a}function d(a){v&&
|
||||
o(document.getElementsByTagName("script"),function(e){if(e.getAttribute("data-requiremodule")===a&&e.getAttribute("data-requirecontext")===h.contextName)return e.parentNode.removeChild(e),!0})}function g(a){var e=l.paths[a];if(e&&D(e)&&e.length>1)return d(a),e.shift(),h.undef(a),h.require([a]),!0}function f(a,e,k,m){var b,n,f=a?a.indexOf("!"):-1,d=null,g=e?e.name:null,j=a,l=!0,i="";a||(l=!1,a="_@r"+(M+=1));f!==-1&&(d=a.substring(0,f),a=a.substring(f+1,a.length));d&&(d=c(d,g,m),n=q[d]);a&&(d?i=n&&
|
||||
n.normalize?n.normalize(a,function(a){return c(a,g,m)}):c(a,g,m):(i=c(a,g,m),b=h.nameToUrl(i)));a=d&&!n&&!k?"_unnormalized"+(N+=1):"";return{prefix:d,name:i,parentMap:e,unnormalized:!!a,url:b,originalName:j,isDefine:l,id:(d?d+"!"+i:i)+a}}function p(a){var e=a.id,k=i[e];k||(k=i[e]=new h.Module(a));return k}function r(a,e,k){var b=a.id,c=i[b];if(E.call(q,b)&&(!c||c.defineEmitComplete))e==="defined"&&k(q[b]);else p(a).on(e,k)}function z(a,e){var k=a.requireModules,b=!1;if(e)e(a);else if(o(k,function(e){if(e=
|
||||
i[e])e.error=a,e.events.error&&(b=!0,e.emit("error",a))}),!b)j.onError(a)}function s(){O.length&&(la.apply(C,[C.length-1,0].concat(O)),O=[])}function u(a,e,k){a=a&&a.map;e=$(k||h.require,a,e);aa(e,h,a);e.isBrowser=v;return e}function y(a){delete i[a];o(L,function(e,k){if(e.map.id===a)return L.splice(k,1),e.defined||(h.waitCount-=1),!0})}function A(a,e){var k=a.map.id,b=a.depMaps,c;if(a.inited){if(e[k])return a;e[k]=!0;o(b,function(a){if(a=i[a.id])return!a.inited||!a.enabled?(c=null,delete e[k],!0):
|
||||
c=A(a,J({},e))});return c}}function B(a,e,k){var b=a.map.id,c=a.depMaps;if(a.inited&&a.map.isDefine){if(e[b])return q[b];e[b]=a;o(c,function(c){var c=c.id,d=i[c];!P[c]&&d&&(!d.inited||!d.enabled?k[b]=!0:(d=B(d,e,k),k[c]||a.defineDepById(c,d)))});a.check(!0);return q[b]}}function H(a){a.check()}function S(){var a,e,b,c,f=(b=l.waitSeconds*1E3)&&h.startTime+b<(new Date).getTime(),n=[],j=!1,fa=!0;if(!T){T=!0;x(i,function(b){a=b.map;e=a.id;if(b.enabled&&!b.error)if(!b.inited&&f)g(e)?j=c=!0:(n.push(e),
|
||||
d(e));else if(!b.inited&&b.fetched&&a.isDefine&&(j=!0,!a.prefix))return fa=!1});if(f&&n.length)return b=F("timeout","Load timeout for modules: "+n,null,n),b.contextName=h.contextName,z(b);fa&&(o(L,function(a){if(!a.defined){var a=A(a,{}),e={};a&&(B(a,e,{}),x(e,H))}}),x(i,H));if((!f||c)&&j)if((v||ea)&&!U)U=setTimeout(function(){U=0;S()},50);T=!1}}function V(a){p(f(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,e=h.onScriptLoad;a.detachEvent&&!R?a.detachEvent("onreadystatechange",
|
||||
e):a.removeEventListener("load",e,!1);e=h.onScriptError;a.detachEvent&&!R||a.removeEventListener("error",e,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}var T,W,h,P,U,l={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},i={},X={},C=[],q={},Q={},M=1,N=1,L=[];P={require:function(a){return u(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=q[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return l.config&&l.config[a.map.id]||
|
||||
{}},exports:q[a.map.id]}}};W=function(a){this.events=X[a.id]||{};this.map=a;this.shim=l.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};W.prototype={init:function(a,e,b,c){c=c||{};if(!this.inited){this.factory=e;if(b)this.on("error",b);else this.events.error&&(b=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.depMaps.rjsSkipMap=a.rjsSkipMap;this.errback=b;this.inited=!0;this.ignore=c.ignore;c.enabled||this.enabled?this.enable():
|
||||
this.check()}},defineDepById:function(a,e){var b;o(this.depMaps,function(e,c){if(e.id===a)return b=c,!0});return this.defineDep(b,e)},defineDep:function(a,e){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=e)},fetch:function(){if(!this.fetched){this.fetched=!0;h.startTime=(new Date).getTime();var a=this.map;if(this.shim)u(this,!0)(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},
|
||||
load:function(){var a=this.map.url;Q[a]||(Q[a]=!0,h.load(this.map.id,a))},check:function(a){if(this.enabled&&!this.enabling){var e,b,c=this.map.id;b=this.depExports;var d=this.exports,n=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(w(n)){if(this.events.error)try{d=h.execCb(c,n,b,d)}catch(f){e=f}else d=h.execCb(c,n,b,d);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)d=
|
||||
b.exports;else if(d===void 0&&this.usingExports)d=this.exports;if(e)return e.requireMap=this.map,e.requireModules=[this.map.id],e.requireType="define",z(this.error=e)}else d=n;this.exports=d;if(this.map.isDefine&&!this.ignore&&(q[c]=d,j.onResourceLoad))j.onResourceLoad(h,this.map,this.depMaps);delete i[c];this.defined=!0;h.waitCount-=1;h.waitCount===0&&(L=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},
|
||||
callPlugin:function(){var a=this.map,e=a.id,b=f(a.prefix,null,!1,!0);r(b,"defined",t(this,function(b){var d;d=this.map.name;var k=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(d=b.normalize(d,function(a){return c(a,k,!0)})||""),b=f(a.prefix+"!"+d,this.map.parentMap,!1,!0),r(b,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=i[b.id]){if(this.events.error)b.on("error",t(this,function(a){this.emit("error",a)}));
|
||||
b.enable()}}else d=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),d.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=[e];x(i,function(a){a.map.id.indexOf(e+"_unnormalized")===0&&y(a.map.id)});z(a)}),d.fromText=function(a,b){var e=K;e&&(K=!1);p(f(a));j.exec(b);e&&(K=!0);h.completeLoad(a)},b.load(a.name,u(a.parentMap,!0,function(a,b,e){a.rjsSkipMap=!0;return h.require(a,b,e)}),d,l)}));h.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=
|
||||
!0;if(!this.waitPushed)L.push(this),h.waitCount+=1,this.waitPushed=!0;this.enabling=!0;o(this.depMaps,t(this,function(a,b){var c,d;if(typeof a==="string"){a=f(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.depMaps.rjsSkipMap);this.depMaps[b]=a;if(c=P[a.id]){this.depExports[b]=c(this);return}this.depCount+=1;r(a,"defined",t(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&r(a,"error",this.errback)}c=a.id;d=i[c];!P[c]&&d&&!d.enabled&&h.enable(a,this)}));x(this.pluginMaps,
|
||||
t(this,function(a){var b=i[a.id];b&&!b.enabled&&h.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){o(this.events[a],function(a){a(b)});a==="error"&&delete this.events[a]}};return h={config:l,contextName:b,registry:i,defined:q,urlFetched:Q,waitCount:0,defQueue:C,Module:W,makeModuleMap:f,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var b=l.pkgs,c=l.shim,d=l.paths,
|
||||
g=l.map;J(l,a,!0);l.paths=J(d,a.paths,!0);if(a.map)l.map=J(g||{},a.map,!0,!0);if(a.shim)x(a.shim,function(a,b){D(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=h.makeShimExports(a.exports);c[b]=a}),l.shim=c;if(a.packages)o(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(da,"")}}),l.pkgs=b;x(i,function(a,b){if(!a.inited&&!a.map.unnormalized)a.map=f(b)});if(a.deps||a.callback)h.require(a.deps||
|
||||
[],a.callback)},makeShimExports:function(a){var b;return typeof a==="string"?(b=function(){return Z(a)},b.exports=a,b):function(){return a.apply(Y,arguments)}},requireDefined:function(a,b){var c=f(a,b,!1,!0).id;return E.call(q,c)},requireSpecified:function(a,b){a=f(a,b,!1,!0).id;return E.call(q,a)||E.call(i,a)},require:function(a,e,c,d){var g;if(typeof a==="string"){if(w(e))return z(F("requireargs","Invalid require call"),c);if(j.get)return j.get(h,a,e);a=f(a,e,!1,!0);a=a.id;return!E.call(q,a)?z(F("notloaded",
|
||||
'Module name "'+a+'" has not been loaded yet for context: '+b)):q[a]}c&&!w(c)&&(d=c,c=void 0);e&&!w(e)&&(d=e,e=void 0);for(s();C.length;)if(g=C.shift(),g[0]===null)return z(F("mismatch","Mismatched anonymous define() module: "+g[g.length-1]));else V(g);p(f(null,d)).init(a,e,c,{enabled:!0});S();return h.require},undef:function(a){s();var b=f(a,null,!0),c=i[a];delete q[a];delete Q[b.url];delete X[a];if(c){if(c.events.defined)X[a]=c.events;y(a)}},enable:function(a){i[a.id]&&p(a).enable()},completeLoad:function(a){var b,
|
||||
c,d=l.shim[a]||{},f=d.exports&&d.exports.exports;for(s();C.length;){c=C.shift();if(c[0]===null){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);V(c)}c=i[a];if(!b&&!q[a]&&c&&!c.inited)if(l.enforceDefine&&(!f||!Z(f)))if(g(a))return;else return z(F("nodefine","No define call for "+a,null,[a]));else V([a,d.deps||[],d.exports]);S()},toUrl:function(a,b){var d=a.lastIndexOf("."),f=null;d!==-1&&(f=a.substring(d,a.length),a=a.substring(0,d));return h.nameToUrl(c(a,b&&b.id,!0),f)},nameToUrl:function(a,b){var c,
|
||||
d,f,g,h,i;if(j.jsExtRegExp.test(a))g=a+(b||"");else{c=l.paths;d=l.pkgs;g=a.split("/");for(h=g.length;h>0;h-=1)if(i=g.slice(0,h).join("/"),f=d[i],i=c[i]){D(i)&&(i=i[0]);g.splice(0,h,i);break}else if(f){c=a===f.name?f.location+"/"+f.main:f.location;g.splice(0,h,c);break}g=g.join("/");g+=b||(/\?/.test(g)?"":".js");g=(g.charAt(0)==="/"||g.match(/^[\w\+\.\-]+:/)?"":l.baseUrl)+g}return l.urlArgs?g+((g.indexOf("?")===-1?"?":"&")+l.urlArgs):g},load:function(a,b){j.load(h,a,b)},execCb:function(a,b,c,d){return b.apply(d,
|
||||
c)},onScriptLoad:function(a){if(a.type==="load"||ma.test((a.currentTarget||a.srcElement).readyState))G=null,a=I(a),h.completeLoad(a.id)},onScriptError:function(a){var b=I(a);if(!g(b.id))return z(F("scripterror","Script error",a,[b.id]))}}}};j({});aa(j);if(v&&(u=p.head=document.getElementsByTagName("head")[0],A=document.getElementsByTagName("base")[0]))u=p.head=A.parentNode;j.onError=function(b){throw b;};j.load=function(b,c,d){var g=b&&b.config||{},f;if(v)return f=g.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||
"html:script"):document.createElement("script"),f.type=g.scriptType||"text/javascript",f.charset="utf-8",f.async=!0,f.setAttribute("data-requirecontext",b.contextName),f.setAttribute("data-requiremodule",c),f.attachEvent&&!(f.attachEvent.toString&&f.attachEvent.toString().indexOf("[native code")<0)&&!R?(K=!0,f.attachEvent("onreadystatechange",b.onScriptLoad)):(f.addEventListener("load",b.onScriptLoad,!1),f.addEventListener("error",b.onScriptError,!1)),f.src=d,H=f,A?u.insertBefore(f,A):u.appendChild(f),
|
||||
H=null,f;else ea&&(importScripts(d),b.completeLoad(c))};v&&M(document.getElementsByTagName("script"),function(b){if(!u)u=b.parentNode;if(s=b.getAttribute("data-main")){if(!r.baseUrl)B=s.split("/"),ba=B.pop(),ca=B.length?B.join("/")+"/":"./",r.baseUrl=ca,s=ba;s=s.replace(da,"");r.deps=r.deps?r.deps.concat(s):[s];return!0}});define=function(b,c,d){var g,f;typeof b!=="string"&&(d=c,c=b,b=null);D(c)||(d=c,c=[]);!c.length&&w(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),
|
||||
c=(d.length===1?["require"]:["require","exports","module"]).concat(c));if(K&&(g=H||ha()))b||(b=g.getAttribute("data-requiremodule")),f=y[g.getAttribute("data-requirecontext")];(f?f.defQueue:O).push([b,c,d])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(r)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.6.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.0.6.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.0.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function x(b){return J.call(b)==="[object Function]"}function E(b){return J.call(b)==="[object Array]"}function o(b,e){if(b){var f;for(f=0;f<b.length;f+=1)if(b[f]&&e(b[f],f,b))break}}function M(b,e){if(b){var f;for(f=b.length-1;f>-1;f-=1)if(b[f]&&e(b[f],f,b))break}}function y(b,e){for(var f in b)if(b.hasOwnProperty(f)&&e(b[f],f))break}function N(b,e,f,h){e&&y(e,function(e,j){if(f||!F.call(b,j))h&&typeof e!=="string"?(b[j]||(b[j]={}),N(b[j],e,f,h)):b[j]=e});return b}function t(b,e){return function(){return e.apply(b,
|
||||
arguments)}}function $(b){if(!b)return b;var e=Z;o(b.split("."),function(b){e=e[b]});return e}function aa(b,e,f){return function(){var h=ga.call(arguments,0),c;if(f&&x(c=h[h.length-1]))c.__requireJsBuild=!0;h.push(e);return b.apply(null,h)}}function ba(b,e,f){o([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(h){var c=h[1]||h[0];b[h[0]]=e?aa(e[c],f):function(){var b=z[O];return b[c].apply(b,arguments)}})}function G(b,e,f,h){e=Error(e+"\nhttp://requirejs.org/docs/errors.html#"+
|
||||
b);e.requireType=b;e.requireModules=h;if(f)e.originalError=f;return e}function ha(){if(H&&H.readyState==="interactive")return H;M(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return H=b});return H}var j,p,u,B,s,C,H,I,ca,da,ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ka=/^\.\//;p=Object.prototype;var J=p.toString,F=p.hasOwnProperty;p=Array.prototype;var ga=p.slice,la=p.splice,w=!!(typeof window!==
|
||||
"undefined"&&navigator&&document),fa=!w&&typeof importScripts!=="undefined",ma=w&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,O="_",S=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",z={},r={},P=[],K=!1;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(x(requirejs))return;r=requirejs;requirejs=void 0}typeof require!=="undefined"&&!x(require)&&(r=require,require=void 0);j=requirejs=function(b,e,f,h){var c,o=O;!E(b)&&typeof b!=="string"&&
|
||||
(c=b,E(e)?(b=e,e=f,f=h):b=[]);if(c&&c.context)o=c.context;(h=z[o])||(h=z[o]=j.s.newContext(o));c&&h.configure(c);return h.require(b,e,f)};j.config=function(b){return j(b)};require||(require=j);j.version="2.0.6";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=w;p=j.s={contexts:z,newContext:function(b){function e(a,d,k){var l,b,i,v,e,c,f,g=d&&d.split("/");l=g;var h=m.map,j=h&&h["*"];if(a&&a.charAt(0)===".")if(d){l=m.pkgs[d]?g=[d]:g.slice(0,g.length-1);d=a=l.concat(a.split("/"));for(l=0;d[l];l+=1)if(b=d[l],
|
||||
b===".")d.splice(l,1),l-=1;else if(b==="..")if(l===1&&(d[2]===".."||d[0]===".."))break;else l>0&&(d.splice(l-1,2),l-=2);l=m.pkgs[d=a[0]];a=a.join("/");l&&a===d+"/"+l.main&&(a=d)}else a.indexOf("./")===0&&(a=a.substring(2));if(k&&(g||j)&&h){d=a.split("/");for(l=d.length;l>0;l-=1){i=d.slice(0,l).join("/");if(g)for(b=g.length;b>0;b-=1)if(k=h[g.slice(0,b).join("/")])if(k=k[i]){v=k;e=l;break}if(v)break;!c&&j&&j[i]&&(c=j[i],f=l)}!v&&c&&(v=c,e=f);v&&(d.splice(0,e,v),a=d.join("/"))}return a}function f(a){w&&
|
||||
o(document.getElementsByTagName("script"),function(d){if(d.getAttribute("data-requiremodule")===a&&d.getAttribute("data-requirecontext")===g.contextName)return d.parentNode.removeChild(d),!0})}function h(a){var d=m.paths[a];if(d&&E(d)&&d.length>1)return f(a),d.shift(),g.undef(a),g.require([a]),!0}function c(a,d,k,l){var b,i,v=a?a.indexOf("!"):-1,c=null,f=d?d.name:null,h=a,j=!0,m="";a||(j=!1,a="_@r"+(M+=1));v!==-1&&(c=a.substring(0,v),a=a.substring(v+1,a.length));c&&(c=e(c,f,l),i=q[c]);a&&(c?m=i&&
|
||||
i.normalize?i.normalize(a,function(a){return e(a,f,l)}):e(a,f,l):(m=e(a,f,l),b=g.nameToUrl(m)));a=c&&!i&&!k?"_unnormalized"+(O+=1):"";return{prefix:c,name:m,parentMap:d,unnormalized:!!a,url:b,originalName:h,isDefine:j,id:(c?c+"!"+m:m)+a}}function p(a){var d=a.id,k=n[d];k||(k=n[d]=new g.Module(a));return k}function r(a,d,k){var b=a.id,c=n[b];if(F.call(q,b)&&(!c||c.defineEmitComplete))d==="defined"&&k(q[b]);else p(a).on(d,k)}function A(a,d){var k=a.requireModules,b=!1;if(d)d(a);else if(o(k,function(d){if(d=
|
||||
n[d])d.error=a,d.events.error&&(b=!0,d.emit("error",a))}),!b)j.onError(a)}function s(){P.length&&(la.apply(D,[D.length-1,0].concat(P)),P=[])}function u(a,d,k){a=a&&a.map;d=aa(k||g.require,a,d);ba(d,g,a);d.isBrowser=w;return d}function z(a){delete n[a];o(L,function(d,k){if(d.map.id===a)return L.splice(k,1),d.defined||(g.waitCount-=1),!0})}function B(a,d,k){var b=a.map.id,c=a.depMaps,i;if(a.inited){if(d[b])return a;d[b]=!0;o(c,function(a){var a=a.id,b=n[a];return!b||k[a]||!b.inited||!b.enabled?void 0:
|
||||
i=B(b,d,k)});k[b]=!0;return i}}function C(a,d,b){var l=a.map.id,c=a.depMaps;if(a.inited&&a.map.isDefine){if(d[l])return q[l];d[l]=a;o(c,function(i){var i=i.id,c=n[i];!Q[i]&&c&&(!c.inited||!c.enabled?b[l]=!0:(c=C(c,d,b),b[i]||a.defineDepById(i,c)))});a.check(!0);return q[l]}}function I(a){a.check()}function T(){var a,d,b,l,c=(b=m.waitSeconds*1E3)&&g.startTime+b<(new Date).getTime(),i=[],e=!1,j=!0;if(!U){U=!0;y(n,function(b){a=b.map;d=a.id;if(b.enabled&&!b.error)if(!b.inited&&c)h(d)?e=l=!0:(i.push(d),
|
||||
f(d));else if(!b.inited&&b.fetched&&a.isDefine&&(e=!0,!a.prefix))return j=!1});if(c&&i.length)return b=G("timeout","Load timeout for modules: "+i,null,i),b.contextName=g.contextName,A(b);j&&(o(L,function(a){if(!a.defined){var a=B(a,{},{}),d={};a&&(C(a,d,{}),y(d,I))}}),y(n,I));if((!c||l)&&e)if((w||fa)&&!V)V=setTimeout(function(){V=0;T()},50);U=!1}}function W(a){p(c(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,d=g.onScriptLoad;a.detachEvent&&!S?a.detachEvent("onreadystatechange",
|
||||
d):a.removeEventListener("load",d,!1);d=g.onScriptError;a.detachEvent&&!S||a.removeEventListener("error",d,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}var U,X,g,Q,V,m={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{}},n={},Y={},D=[],q={},R={},M=1,O=1,L=[];Q={require:function(a){return u(a)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports=q[a.map.id]={}},module:function(a){return a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&m.config[a.map.id]||
|
||||
{}},exports:q[a.map.id]}}};X=function(a){this.events=Y[a.id]||{};this.map=a;this.shim=m.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,d,b,c){c=c||{};if(!this.inited){this.factory=d;if(b)this.on("error",b);else this.events.error&&(b=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.depMaps.rjsSkipMap=a.rjsSkipMap;this.errback=b;this.inited=!0;this.ignore=c.ignore;c.enabled||this.enabled?this.enable():
|
||||
this.check()}},defineDepById:function(a,d){var b;o(this.depMaps,function(d,c){if(d.id===a)return b=c,!0});return this.defineDep(b,d)},defineDep:function(a,d){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=d)},fetch:function(){if(!this.fetched){this.fetched=!0;g.startTime=(new Date).getTime();var a=this.map;if(this.shim)u(this,!0)(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},
|
||||
load:function(){var a=this.map.url;R[a]||(R[a]=!0,g.load(this.map.id,a))},check:function(a){if(this.enabled&&!this.enabling){var d,b,c=this.map.id;b=this.depExports;var e=this.exports,i=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(x(i)){if(this.events.error)try{e=g.execCb(c,i,b,e)}catch(f){d=f}else e=g.execCb(c,i,b,e);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)e=
|
||||
b.exports;else if(e===void 0&&this.usingExports)e=this.exports;if(d)return d.requireMap=this.map,d.requireModules=[this.map.id],d.requireType="define",A(this.error=d)}else e=i;this.exports=e;if(this.map.isDefine&&!this.ignore&&(q[c]=e,j.onResourceLoad))j.onResourceLoad(g,this.map,this.depMaps);delete n[c];this.defined=!0;g.waitCount-=1;g.waitCount===0&&(L=[])}this.defining=!1;if(!a&&this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},
|
||||
callPlugin:function(){var a=this.map,d=a.id,b=c(a.prefix,null,!1,!0);r(b,"defined",t(this,function(b){var k;k=this.map.name;var i=this.map.parentMap?this.map.parentMap.name:null;if(this.map.unnormalized){if(b.normalize&&(k=b.normalize(k,function(a){return e(a,i,!0)})||""),b=c(a.prefix+"!"+k,this.map.parentMap,!1,!0),r(b,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),b=n[b.id]){if(this.events.error)b.on("error",t(this,function(a){this.emit("error",a)}));
|
||||
b.enable()}}else k=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),k.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=[d];y(n,function(a){a.map.id.indexOf(d+"_unnormalized")===0&&z(a.map.id)});A(a)}),k.fromText=function(a,b){var d=K;d&&(K=!1);p(c(a));j.exec(b);d&&(K=!0);g.completeLoad(a)},b.load(a.name,u(a.parentMap,!0,function(a,b,d){a.rjsSkipMap=!0;return g.require(a,b,d)}),k,m)}));g.enable(b,this);this.pluginMaps[b.id]=b},enable:function(){this.enabled=
|
||||
!0;if(!this.waitPushed)L.push(this),g.waitCount+=1,this.waitPushed=!0;this.enabling=!0;o(this.depMaps,t(this,function(a,b){var k,e;if(typeof a==="string"){a=c(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.depMaps.rjsSkipMap);this.depMaps[b]=a;if(k=Q[a.id]){this.depExports[b]=k(this);return}this.depCount+=1;r(a,"defined",t(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&r(a,"error",this.errback)}k=a.id;e=n[k];!Q[k]&&e&&!e.enabled&&g.enable(a,this)}));y(this.pluginMaps,
|
||||
t(this,function(a){var b=n[a.id];b&&!b.enabled&&g.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){o(this.events[a],function(a){a(b)});a==="error"&&delete this.events[a]}};return g={config:m,contextName:b,registry:n,defined:q,urlFetched:R,waitCount:0,defQueue:D,Module:X,makeModuleMap:c,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var b=m.pkgs,e=m.shim,f=m.paths,
|
||||
j=m.map;N(m,a,!0);m.paths=N(f,a.paths,!0);if(a.map)m.map=N(j||{},a.map,!0,!0);if(a.shim)y(a.shim,function(a,b){E(a)&&(a={deps:a});if(a.exports&&!a.exports.__buildReady)a.exports=g.makeShimExports(a.exports);e[b]=a}),m.shim=e;if(a.packages)o(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(ea,"")}}),m.pkgs=b;y(n,function(a,b){if(!a.inited&&!a.map.unnormalized)a.map=c(b)});if(a.deps||a.callback)g.require(a.deps||
|
||||
[],a.callback)},makeShimExports:function(a){var b;return typeof a==="string"?(b=function(){return $(a)},b.exports=a,b):function(){return a.apply(Z,arguments)}},requireDefined:function(a,b){var e=c(a,b,!1,!0).id;return F.call(q,e)},requireSpecified:function(a,b){a=c(a,b,!1,!0).id;return F.call(q,a)||F.call(n,a)},require:function(a,d,e,f){var h;if(typeof a==="string"){if(x(d))return A(G("requireargs","Invalid require call"),e);if(j.get)return j.get(g,a,d);a=c(a,d,!1,!0);a=a.id;return!F.call(q,a)?A(G("notloaded",
|
||||
'Module name "'+a+'" has not been loaded yet for context: '+b)):q[a]}e&&!x(e)&&(f=e,e=void 0);d&&!x(d)&&(f=d,d=void 0);for(s();D.length;)if(h=D.shift(),h[0]===null)return A(G("mismatch","Mismatched anonymous define() module: "+h[h.length-1]));else W(h);p(c(null,f)).init(a,d,e,{enabled:!0});T();return g.require},undef:function(a){s();var b=c(a,null,!0),e=n[a];delete q[a];delete R[b.url];delete Y[a];if(e){if(e.events.defined)Y[a]=e.events;z(a)}},enable:function(a){n[a.id]&&p(a).enable()},completeLoad:function(a){var b,
|
||||
c,e=m.shim[a]||{},f=e.exports&&e.exports.exports;for(s();D.length;){c=D.shift();if(c[0]===null){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);W(c)}c=n[a];if(!b&&!q[a]&&c&&!c.inited)if(m.enforceDefine&&(!f||!$(f)))if(h(a))return;else return A(G("nodefine","No define call for "+a,null,[a]));else W([a,e.deps||[],e.exports]);T()},toUrl:function(a,b){var c=a.lastIndexOf("."),f=null;c!==-1&&(f=a.substring(c,a.length),a=a.substring(0,c));return g.nameToUrl(e(a,b&&b.id,!0),f)},nameToUrl:function(a,b){var c,
|
||||
e,f,i,h,g;if(j.jsExtRegExp.test(a))i=a+(b||"");else{c=m.paths;e=m.pkgs;i=a.split("/");for(h=i.length;h>0;h-=1)if(g=i.slice(0,h).join("/"),f=e[g],g=c[g]){E(g)&&(g=g[0]);i.splice(0,h,g);break}else if(f){c=a===f.name?f.location+"/"+f.main:f.location;i.splice(0,h,c);break}i=i.join("/");i+=b||(/\?/.test(i)?"":".js");i=(i.charAt(0)==="/"||i.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+i}return m.urlArgs?i+((i.indexOf("?")===-1?"?":"&")+m.urlArgs):i},load:function(a,b){j.load(g,a,b)},execCb:function(a,b,c,e){return b.apply(e,
|
||||
c)},onScriptLoad:function(a){if(a.type==="load"||ma.test((a.currentTarget||a.srcElement).readyState))H=null,a=J(a),g.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!h(b.id))return A(G("scripterror","Script error",a,[b.id]))}}}};j({});ba(j);if(w&&(u=p.head=document.getElementsByTagName("head")[0],B=document.getElementsByTagName("base")[0]))u=p.head=B.parentNode;j.onError=function(b){throw b;};j.load=function(b,e,f){var h=b&&b.config||{},c;if(w)return c=h.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||
"html:script"):document.createElement("script"),c.type=h.scriptType||"text/javascript",c.charset="utf-8",c.async=!0,c.setAttribute("data-requirecontext",b.contextName),c.setAttribute("data-requiremodule",e),c.attachEvent&&!(c.attachEvent.toString&&c.attachEvent.toString().indexOf("[native code")<0)&&!S?(K=!0,c.attachEvent("onreadystatechange",b.onScriptLoad)):(c.addEventListener("load",b.onScriptLoad,!1),c.addEventListener("error",b.onScriptError,!1)),c.src=f,I=c,B?u.insertBefore(c,B):u.appendChild(c),
|
||||
I=null,c;else fa&&(importScripts(f),b.completeLoad(e))};w&&M(document.getElementsByTagName("script"),function(b){if(!u)u=b.parentNode;if(s=b.getAttribute("data-main")){if(!r.baseUrl)C=s.split("/"),ca=C.pop(),da=C.length?C.join("/")+"/":"./",r.baseUrl=da,s=ca;s=s.replace(ea,"");r.deps=r.deps?r.deps.concat(s):[s];return!0}});define=function(b,e,f){var h,c;typeof b!=="string"&&(f=e,e=b,b=null);E(e)||(f=e,e=[]);!e.length&&x(f)&&f.length&&(f.toString().replace(ia,"").replace(ja,function(b,c){e.push(c)}),
|
||||
e=(f.length===1?["require"]:["require","exports","module"]).concat(e));if(K&&(h=I||ha()))b||(b=h.getAttribute("data-requiremodule")),c=z[h.getAttribute("data-requirecontext")];(c?c.defQueue:P).push([b,e,f])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(r)}})(this);
|
||||
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.0.js
generated
vendored
Normal file
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.0.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
RequireJS 2.1.0 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(U){function D(b){return M.call(b)==="[object Function]"}function E(b){return M.call(b)==="[object Array]"}function s(b,c){if(b){var d;for(d=0;d<b.length;d+=1)if(b[d]&&c(b[d],d,b))break}}function N(b,c){if(b){var d;for(d=b.length-1;d>-1;d-=1)if(b[d]&&c(b[d],d,b))break}}function F(b,c){for(var d in b)if(b.hasOwnProperty(d)&&c(b[d],d))break}function J(b,c,d,h){c&&F(c,function(c,j){if(d||!G.call(b,j))h&&typeof c!=="string"?(b[j]||(b[j]={}),J(b[j],c,d,h)):b[j]=c});return b}function q(b,c){return function(){return c.apply(b,
|
||||
arguments)}}function V(b){if(!b)return b;var c=U;s(b.split("."),function(b){c=c[b]});return c}function H(b,c,d,h){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=h;if(d)c.originalError=d;return c}function aa(){if(I&&I.readyState==="interactive")return I;N(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return I=b});return I}var h,r,u,y,p,A,I,B,W,X,ba=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ca=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
||||
Y=/\.js$/,da=/^\.\//;r=Object.prototype;var M=r.toString,G=r.hasOwnProperty,ea=Array.prototype.splice,v=!!(typeof window!=="undefined"&&navigator&&document),Z=!v&&typeof importScripts!=="undefined",fa=v&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,Q=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",w={},n={},O=[],K=!1;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(D(requirejs))return;n=requirejs;requirejs=void 0}typeof require!=="undefined"&&
|
||||
!D(require)&&(n=require,require=void 0);h=requirejs=function(b,c,d,t){var g,j="_";!E(b)&&typeof b!=="string"&&(g=b,E(c)?(b=c,c=d,d=t):b=[]);if(g&&g.context)j=g.context;(t=w[j])||(t=w[j]=h.s.newContext(j));g&&t.configure(g);return t.require(b,c,d)};h.config=function(b){return h(b)};h.nextTick=typeof setTimeout!=="undefined"?function(b){setTimeout(b,4)}:function(b){b()};require||(require=h);h.version="2.1.0";h.jsExtRegExp=/^\/|:|\?|\.js$/;h.isBrowser=v;r=h.s={contexts:w,newContext:function(b){function c(a,
|
||||
f,x){var e,b,k,c,d,i,g,h=f&&f.split("/");e=h;var j=m.map,l=j&&j["*"];if(a&&a.charAt(0)===".")if(f){e=m.pkgs[f]?h=[f]:h.slice(0,h.length-1);f=a=e.concat(a.split("/"));for(e=0;f[e];e+=1)if(b=f[e],b===".")f.splice(e,1),e-=1;else if(b==="..")if(e===1&&(f[2]===".."||f[0]===".."))break;else e>0&&(f.splice(e-1,2),e-=2);e=m.pkgs[f=a[0]];a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else a.indexOf("./")===0&&(a=a.substring(2));if(x&&(h||l)&&j){f=a.split("/");for(e=f.length;e>0;e-=1){k=f.slice(0,e).join("/");if(h)for(b=
|
||||
h.length;b>0;b-=1)if(x=j[h.slice(0,b).join("/")])if(x=x[k]){c=x;d=e;break}if(c)break;!i&&l&&l[k]&&(i=l[k],g=e)}!c&&i&&(c=i,d=g);c&&(f.splice(0,d,c),a=f.join("/"))}return a}function d(a){v&&s(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function t(a){var f=m.paths[a];if(f&&E(f)&&f.length>1)return d(a),f.shift(),i.require.undef(a),i.require([a]),!0}function g(a){var f,
|
||||
b=a?a.indexOf("!"):-1;b>-1&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function j(a,f,b,e){var $,k,d=null,h=f?f.name:null,j=a,m=!0,l="";a||(m=!1,a="_@r"+(M+=1));a=g(a);d=a[0];a=a[1];d&&(d=c(d,h,e),k=o[d]);a&&(d?l=k&&k.normalize?k.normalize(a,function(a){return c(a,h,e)}):c(a,h,e):(l=c(a,h,e),a=g(l),d=a[0],l=a[1],b=!0,$=i.nameToUrl(l)));b=d&&!k&&!b?"_unnormalized"+(N+=1):"";return{prefix:d,name:l,parentMap:f,unnormalized:!!b,url:$,originalName:j,isDefine:m,id:(d?d+"!"+l:l)+b}}function n(a){var f=
|
||||
a.id,b=l[f];b||(b=l[f]=new i.Module(a));return b}function p(a,f,b){var e=a.id,c=l[e];if(G.call(o,e)&&(!c||c.defineEmitComplete))f==="defined"&&b(o[e]);else n(a).on(f,b)}function z(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(s(b,function(f){if(f=l[f])f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)h.onError(a)}function r(){O.length&&(ea.apply(C,[C.length-1,0].concat(O)),O=[])}function u(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,s(a.depMaps,function(e,k){var c=e.id,
|
||||
d=l[c];d&&!a.depMatched[k]&&!b[c]&&(f[c]?(a.defineDep(k,o[c]),a.check()):u(d,f,b))}),b[e]=!0)}function w(){var a,f,b,e,c=(b=m.waitSeconds*1E3)&&i.startTime+b<(new Date).getTime(),k=[],h=[],g=!1,j=!0;if(!B){B=!0;F(l,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||h.push(b),!b.error))if(!b.inited&&c)t(f)?g=e=!0:(k.push(f),d(f));else if(!b.inited&&b.fetched&&a.isDefine&&(g=!0,!a.prefix))return j=!1});if(c&&k.length)return b=H("timeout","Load timeout for modules: "+k,null,k),b.contextName=i.contextName,
|
||||
z(b);j&&s(h,function(a){u(a,{},{})});if((!c||e)&&g)if((v||Z)&&!R)R=setTimeout(function(){R=0;w()},50);B=!1}}function y(a){n(j(a[0],null,!0)).init(a[1],a[2])}function A(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!Q?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;a.detachEvent&&!Q||a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}var B,S,i,L,R,m={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},
|
||||
shim:{}},l={},T={},C=[],o={},P={},M=1,N=1;L={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=o[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&m.config[a.map.id]||{}},exports:o[a.map.id]}}};S=function(a){this.events=T[a.id]||{};this.map=a;this.shim=m.shim[a.id];this.depExports=[];this.depMaps=[];
|
||||
this.depMatched=[];this.pluginMaps={};this.depCount=0};S.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=q(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=
|
||||
!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],q(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;P[a]||(P[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,d=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);
|
||||
else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(D(d)){if(this.events.error)try{e=i.execCb(c,d,b,e)}catch(k){a=k}else e=i.execCb(c,d,b,e);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)e=b.exports;else if(e===void 0&&this.usingExports)e=this.exports;if(a)return a.requireMap=this.map,a.requireModules=[this.map.id],a.requireType="define",z(this.error=a)}else e=d;this.exports=e;if(this.map.isDefine&&!this.ignore&&(o[c]=e,h.onResourceLoad))h.onResourceLoad(i,
|
||||
this.map,this.depMaps);delete l[c];this.defined=!0}this.defining=!1;if(this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=j(a.prefix);this.depMaps.push(d);p(d,"defined",q(this,function(e){var d,k;k=this.map.name;var x=this.map.parentMap?this.map.parentMap.name:null,g=i.makeRequire(a.parentMap,{enableBuildCallback:!0,skipMap:!0});if(this.map.unnormalized){if(e.normalize&&
|
||||
(k=e.normalize(k,function(a){return c(a,x,!0)})||""),e=j(a.prefix+"!"+k,this.map.parentMap),p(e,"defined",q(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),k=l[e.id]){this.depMaps.push(e);if(this.events.error)k.on("error",q(this,function(a){this.emit("error",a)}));k.enable()}}else d=q(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),d.error=q(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];F(l,function(a){a.map.id.indexOf(b+
|
||||
"_unnormalized")===0&&delete l[a.map.id]});z(a)}),d.fromText=q(this,function(b,e){var f=a.name,c=j(f),k=K;e&&(b=e);k&&(K=!1);n(c);try{h.exec(b)}catch(x){throw Error("fromText eval for "+f+" failed: "+x);}k&&(K=!0);this.depMaps.push(c);i.completeLoad(f);g([f],d)}),e.load(a.name,g,d,m)}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){this.enabling=this.enabled=!0;s(this.depMaps,q(this,function(a,b){var c,e;if(typeof a==="string"){a=j(a,this.map.isDefine?this.map:this.map.parentMap,!1,
|
||||
!this.skipMap);this.depMaps[b]=a;if(c=L[a.id]){this.depExports[b]=c(this);return}this.depCount+=1;p(a,"defined",q(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&p(a,"error",this.errback)}c=a.id;e=l[c];!L[c]&&e&&!e.enabled&&i.enable(a,this)}));F(this.pluginMaps,q(this,function(a){var b=l[a.id];b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){s(this.events[a],function(a){a(b)});
|
||||
a==="error"&&delete this.events[a]}};i={config:m,contextName:b,registry:l,defined:o,urlFetched:P,defQueue:C,Module:S,makeModuleMap:j,nextTick:h.nextTick,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var b=m.pkgs,c=m.shim,e=m.paths,d=m.map;J(m,a,!0);m.paths=J(e,a.paths,!0);if(a.map)m.map=J(d||{},a.map,!0,!0);if(a.shim)F(a.shim,function(a,b){E(a)&&(a={deps:a});if(a.exports&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),m.shim=c;if(a.packages)s(a.packages,
|
||||
function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(da,"").replace(Y,"")}}),m.pkgs=b;F(l,function(a,b){if(!a.inited&&!a.map.unnormalized)a.map=j(b)});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(U,arguments));return b||V(a.exports)}},makeRequire:function(a,f){function d(e,c,k){var g,m;if(f.enableBuildCallback&&c&&D(c))c.__requireJsBuild=!0;
|
||||
if(typeof e==="string"){if(D(c))return z(H("requireargs","Invalid require call"),k);if(a&&L[e])return L[e](l[a.id]);if(h.get)return h.get(i,e,a);g=j(e,a,!1,!0);g=g.id;return!G.call(o,g)?z(H("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):o[g]}for(r();C.length;)if(g=C.shift(),g[0]===null)return z(H("mismatch","Mismatched anonymous define() module: "+g[g.length-1]));else y(g);i.nextTick(function(){m=n(j(null,a));m.skipMap=f.skipMap;m.init(e,c,k,
|
||||
{enabled:!0});w()});return d}f=f||{};J(d,{isBrowser:v,toUrl:function(b){var f=b.lastIndexOf("."),d=null;f!==-1&&(d=b.substring(f,b.length),b=b.substring(0,f));return i.nameToUrl(c(b,a&&a.id,!0),d)},defined:function(b){b=j(b,a,!1,!0).id;return G.call(o,b)},specified:function(b){b=j(b,a,!1,!0).id;return G.call(o,b)||G.call(l,b)}});if(!a)d.undef=function(b){r();var c=j(b,a,!0),f=l[b];delete o[b];delete P[c.url];delete T[b];if(f){if(f.events.defined)T[b]=f.events;delete l[b]}};return d},enable:function(a){l[a.id]&&
|
||||
n(a).enable()},completeLoad:function(a){var b,c,e=m.shim[a]||{},d=e.exports;for(r();C.length;){c=C.shift();if(c[0]===null){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);y(c)}c=l[a];if(!b&&!o[a]&&c&&!c.inited)if(m.enforceDefine&&(!d||!V(d)))if(t(a))return;else return z(H("nodefine","No define call for "+a,null,[a]));else y([a,e.deps||[],e.exportsFn]);w()},nameToUrl:function(a,b){var c,e,d,g,i,j;if(h.jsExtRegExp.test(a))g=a+(b||"");else{c=m.paths;e=m.pkgs;g=a.split("/");for(i=g.length;i>0;i-=1)if(j=
|
||||
g.slice(0,i).join("/"),d=e[j],j=c[j]){E(j)&&(j=j[0]);g.splice(0,i,j);break}else if(d){c=a===d.name?d.location+"/"+d.main:d.location;g.splice(0,i,c);break}g=g.join("/");g+=b||(/\?/.test(g)?"":".js");g=(g.charAt(0)==="/"||g.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+g}return m.urlArgs?g+((g.indexOf("?")===-1?"?":"&")+m.urlArgs):g},load:function(a,b){h.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if(a.type==="load"||fa.test((a.currentTarget||a.srcElement).readyState))I=
|
||||
null,a=A(a),i.completeLoad(a.id)},onScriptError:function(a){var b=A(a);if(!t(b.id))return z(H("scripterror","Script error",a,[b.id]))}};i.require=i.makeRequire();return i}};h({});s(["toUrl","undef","defined","specified"],function(b){h[b]=function(){var c=w._;return c.require[b].apply(c,arguments)}});if(v&&(u=r.head=document.getElementsByTagName("head")[0],y=document.getElementsByTagName("base")[0]))u=r.head=y.parentNode;h.onError=function(b){throw b;};h.load=function(b,c,d){var h=b&&b.config||{},
|
||||
g;if(v)return g=h.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),g.type=h.scriptType||"text/javascript",g.charset="utf-8",g.async=!0,g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&g.attachEvent.toString().indexOf("[native code")<0)&&!Q?(K=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",
|
||||
b.onScriptError,!1)),g.src=d,B=g,y?u.insertBefore(g,y):u.appendChild(g),B=null,g;else Z&&(importScripts(d),b.completeLoad(c))};v&&N(document.getElementsByTagName("script"),function(b){if(!u)u=b.parentNode;if(p=b.getAttribute("data-main")){if(!n.baseUrl)A=p.split("/"),W=A.pop(),X=A.length?A.join("/")+"/":"./",n.baseUrl=X,p=W;p=p.replace(Y,"");n.deps=n.deps?n.deps.concat(p):[p];return!0}});define=function(b,c,d){var h,g;typeof b!=="string"&&(d=c,c=b,b=null);E(c)||(d=c,c=[]);!c.length&&D(d)&&d.length&&
|
||||
(d.toString().replace(ba,"").replace(ca,function(b,d){c.push(d)}),c=(d.length===1?["require"]:["require","exports","module"]).concat(c));if(K&&(h=B||aa()))b||(b=h.getAttribute("data-requiremodule")),g=w[h.getAttribute("data-requirecontext")];(g?g.defQueue:O).push([b,c,d])};define.amd={jQuery:!0};h.exec=function(b){return eval(b)};h(n)}})(this);
|
||||
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.1.js
generated
vendored
Normal file
34
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.1.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
RequireJS 2.1.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(W){function D(b){return M.call(b)==="[object Function]"}function E(b){return M.call(b)==="[object Array]"}function t(b,c){if(b){var d;for(d=0;d<b.length;d+=1)if(b[d]&&c(b[d],d,b))break}}function N(b,c){if(b){var d;for(d=b.length-1;d>-1;d-=1)if(b[d]&&c(b[d],d,b))break}}function A(b,c){for(var d in b)if(b.hasOwnProperty(d)&&c(b[d],d))break}function O(b,c,d,g){c&&A(c,function(c,j){if(d||!F.call(b,j))g&&typeof c!=="string"?(b[j]||(b[j]={}),O(b[j],c,d,g)):b[j]=c});return b}function r(b,c){return function(){return c.apply(b,
|
||||
arguments)}}function X(b){if(!b)return b;var c=W;t(b.split("."),function(b){c=c[b]});return c}function G(b,c,d,g){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=g;if(d)c.originalError=d;return c}function ba(){if(H&&H.readyState==="interactive")return H;N(document.getElementsByTagName("script"),function(b){if(b.readyState==="interactive")return H=b});return H}var g,s,u,y,q,B,H,I,Y,Z,ca=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,da=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
||||
$=/\.js$/,ea=/^\.\//;s=Object.prototype;var M=s.toString,F=s.hasOwnProperty,fa=Array.prototype.splice,v=!!(typeof window!=="undefined"&&navigator&&document),aa=!v&&typeof importScripts!=="undefined",ga=v&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,R=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",w={},n={},P=[],J=!1;if(typeof define==="undefined"){if(typeof requirejs!=="undefined"){if(D(requirejs))return;n=requirejs;requirejs=void 0}typeof require!=="undefined"&&
|
||||
!D(require)&&(n=require,require=void 0);g=requirejs=function(b,c,d,p){var i,j="_";!E(b)&&typeof b!=="string"&&(i=b,E(c)?(b=c,c=d,d=p):b=[]);if(i&&i.context)j=i.context;(p=w[j])||(p=w[j]=g.s.newContext(j));i&&p.configure(i);return p.require(b,c,d)};g.config=function(b){return g(b)};g.nextTick=typeof setTimeout!=="undefined"?function(b){setTimeout(b,4)}:function(b){b()};require||(require=g);g.version="2.1.1";g.jsExtRegExp=/^\/|:|\?|\.js$/;g.isBrowser=v;s=g.s={contexts:w,newContext:function(b){function c(a,
|
||||
f,x){var e,m,b,c,d,h,i,g=f&&f.split("/");e=g;var j=k.map,l=j&&j["*"];if(a&&a.charAt(0)===".")if(f){e=k.pkgs[f]?g=[f]:g.slice(0,g.length-1);f=a=e.concat(a.split("/"));for(e=0;f[e];e+=1)if(m=f[e],m===".")f.splice(e,1),e-=1;else if(m==="..")if(e===1&&(f[2]===".."||f[0]===".."))break;else e>0&&(f.splice(e-1,2),e-=2);e=k.pkgs[f=a[0]];a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else a.indexOf("./")===0&&(a=a.substring(2));if(x&&(g||l)&&j){f=a.split("/");for(e=f.length;e>0;e-=1){b=f.slice(0,e).join("/");if(g)for(m=
|
||||
g.length;m>0;m-=1)if(x=j[g.slice(0,m).join("/")])if(x=x[b]){c=x;d=e;break}if(c)break;!h&&l&&l[b]&&(h=l[b],i=e)}!c&&h&&(c=h,d=i);c&&(f.splice(0,d,c),a=f.join("/"))}return a}function d(a){v&&t(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===h.contextName)return f.parentNode.removeChild(f),!0})}function p(a){var f=k.paths[a];if(f&&E(f)&&f.length>1)return d(a),f.shift(),h.require.undef(a),h.require([a]),!0}function i(a){var f,
|
||||
b=a?a.indexOf("!"):-1;b>-1&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function j(a,f,b,e){var m,K,d=null,g=f?f.name:null,j=a,l=!0,k="";a||(l=!1,a="_@r"+(M+=1));a=i(a);d=a[0];a=a[1];d&&(d=c(d,g,e),K=o[d]);a&&(d?k=K&&K.normalize?K.normalize(a,function(a){return c(a,g,e)}):c(a,g,e):(k=c(a,g,e),a=i(k),d=a[0],k=a[1],b=!0,m=h.nameToUrl(k)));b=d&&!K&&!b?"_unnormalized"+(N+=1):"";return{prefix:d,name:k,parentMap:f,unnormalized:!!b,url:m,originalName:j,isDefine:l,id:(d?d+"!"+k:k)+b}}function n(a){var f=
|
||||
a.id,b=l[f];b||(b=l[f]=new h.Module(a));return b}function q(a,f,b){var e=a.id,m=l[e];if(F.call(o,e)&&(!m||m.defineEmitComplete))f==="defined"&&b(o[e]);else n(a).on(f,b)}function z(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(t(b,function(f){if(f=l[f])f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)g.onError(a)}function s(){P.length&&(fa.apply(C,[C.length-1,0].concat(P)),P=[])}function u(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,t(a.depMaps,function(e,c){var d=e.id,
|
||||
g=l[d];g&&!a.depMatched[c]&&!b[d]&&(f[d]?(a.defineDep(c,o[d]),a.check()):u(g,f,b))}),b[e]=!0)}function w(){var a,f,b,e,m=(b=k.waitSeconds*1E3)&&h.startTime+b<(new Date).getTime(),c=[],g=[],i=!1,j=!0;if(!S){S=!0;A(l,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&m)p(f)?i=e=!0:(c.push(f),d(f));else if(!b.inited&&b.fetched&&a.isDefine&&(i=!0,!a.prefix))return j=!1});if(m&&c.length)return b=G("timeout","Load timeout for modules: "+c,null,c),b.contextName=h.contextName,
|
||||
z(b);j&&t(g,function(a){u(a,{},{})});if((!m||e)&&i)if((v||aa)&&!T)T=setTimeout(function(){T=0;w()},50);S=!1}}function y(a){n(j(a[0],null,!0)).init(a[1],a[2])}function B(a){var a=a.currentTarget||a.srcElement,b=h.onScriptLoad;a.detachEvent&&!R?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=h.onScriptError;a.detachEvent&&!R||a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function I(){var a;for(s();C.length;)if(a=C.shift(),a[0]===
|
||||
null)return z(G("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));else y(a)}var S,U,h,L,T,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},map:{},config:{}},l={},V={},C=[],o={},Q={},M=1,N=1;L={require:function(a){return a.require?a.require:a.require=h.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=o[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return k.config&&
|
||||
k.config[a.map.id]||{}},exports:o[a.map.id]}}};U=function(a){this.events=V[a.id]||{};this.map=a;this.shim=k.shim[a.id];this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};U.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=r(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},
|
||||
defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;h.startTime=(new Date).getTime();var a=this.map;if(this.shim)h.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],r(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;Q[a]||(Q[a]=!0,h.load(this.map.id,a))},check:function(){if(this.enabled&&
|
||||
!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,m=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(this.depCount<1&&!this.defined){if(D(m)){if(this.events.error)try{e=h.execCb(c,m,b,e)}catch(d){a=d}else e=h.execCb(c,m,b,e);if(this.map.isDefine)if((b=this.module)&&b.exports!==void 0&&b.exports!==this.exports)e=b.exports;else if(e===void 0&&this.usingExports)e=this.exports;if(a)return a.requireMap=this.map,
|
||||
a.requireModules=[this.map.id],a.requireType="define",z(this.error=a)}else e=m;this.exports=e;if(this.map.isDefine&&!this.ignore&&(o[c]=e,g.onResourceLoad))g.onResourceLoad(h,this.map,this.depMaps);delete l[c];this.defined=!0}this.defining=!1;if(this.defined&&!this.defineEmitted)this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=j(a.prefix);this.depMaps.push(d);q(d,"defined",r(this,function(e){var m,
|
||||
d;d=this.map.name;var x=this.map.parentMap?this.map.parentMap.name:null,i=h.makeRequire(a.parentMap,{enableBuildCallback:!0,skipMap:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,x,!0)})||""),e=j(a.prefix+"!"+d,this.map.parentMap),q(e,"defined",r(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=l[e.id]){this.depMaps.push(e);if(this.events.error)d.on("error",r(this,function(a){this.emit("error",a)}));d.enable()}}else m=r(this,
|
||||
function(a){this.init([],function(){return a},null,{enabled:!0})}),m.error=r(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];A(l,function(a){a.map.id.indexOf(b+"_unnormalized")===0&&delete l[a.map.id]});z(a)}),m.fromText=r(this,function(b,e){var f=a.name,c=j(f),d=J;e&&(b=e);d&&(J=!1);n(c);try{g.exec(b)}catch(x){throw Error("fromText eval for "+f+" failed: "+x);}d&&(J=!0);this.depMaps.push(c);h.completeLoad(f);i([f],m)}),e.load(a.name,i,m,k)}));h.enable(d,this);this.pluginMaps[d.id]=
|
||||
d},enable:function(){this.enabling=this.enabled=!0;t(this.depMaps,r(this,function(a,b){var c,e;if(typeof a==="string"){a=j(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=L[a.id]){this.depExports[b]=c(this);return}this.depCount+=1;q(a,"defined",r(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&q(a,"error",this.errback)}c=a.id;e=l[c];!L[c]&&e&&!e.enabled&&h.enable(a,this)}));A(this.pluginMaps,r(this,function(a){var b=l[a.id];b&&!b.enabled&&
|
||||
h.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){t(this.events[a],function(a){a(b)});a==="error"&&delete this.events[a]}};h={config:k,contextName:b,registry:l,defined:o,urlFetched:Q,defQueue:C,Module:U,makeModuleMap:j,nextTick:g.nextTick,configure:function(a){a.baseUrl&&a.baseUrl.charAt(a.baseUrl.length-1)!=="/"&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,e={paths:!0,config:!0,map:!0};A(a,function(a,b){e[b]?
|
||||
b==="map"?O(k[b],a,!0,!0):O(k[b],a,!0):k[b]=a});if(a.shim)A(a.shim,function(a,b){E(a)&&(a={deps:a});if(a.exports&&!a.exportsFn)a.exportsFn=h.makeShimExports(a);c[b]=a}),k.shim=c;if(a.packages)t(a.packages,function(a){a=typeof a==="string"?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ea,"").replace($,"")}}),k.pkgs=b;A(l,function(a,b){if(!a.inited&&!a.map.unnormalized)a.map=j(b)});if(a.deps||a.callback)h.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;
|
||||
a.init&&(b=a.init.apply(W,arguments));return b||X(a.exports)}},makeRequire:function(a,f){function d(e,c,i){var k,p;if(f.enableBuildCallback&&c&&D(c))c.__requireJsBuild=!0;if(typeof e==="string"){if(D(c))return z(G("requireargs","Invalid require call"),i);if(a&&L[e])return L[e](l[a.id]);if(g.get)return g.get(h,e,a);k=j(e,a,!1,!0);k=k.id;return!F.call(o,k)?z(G("notloaded",'Module name "'+k+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):o[k]}I();h.nextTick(function(){I();p=
|
||||
n(j(null,a));p.skipMap=f.skipMap;p.init(e,c,i,{enabled:!0});w()});return d}f=f||{};O(d,{isBrowser:v,toUrl:function(b){var d=b.lastIndexOf("."),f=null;d!==-1&&(f=b.substring(d,b.length),b=b.substring(0,d));return h.nameToUrl(c(b,a&&a.id,!0),f)},defined:function(b){b=j(b,a,!1,!0).id;return F.call(o,b)},specified:function(b){b=j(b,a,!1,!0).id;return F.call(o,b)||F.call(l,b)}});if(!a)d.undef=function(b){s();var c=j(b,a,!0),d=l[b];delete o[b];delete Q[c.url];delete V[b];if(d){if(d.events.defined)V[b]=
|
||||
d.events;delete l[b]}};return d},enable:function(a){l[a.id]&&n(a).enable()},completeLoad:function(a){var b,c,d=k.shim[a]||{},g=d.exports;for(s();C.length;){c=C.shift();if(c[0]===null){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);y(c)}c=l[a];if(!b&&!o[a]&&c&&!c.inited)if(k.enforceDefine&&(!g||!X(g)))if(p(a))return;else return z(G("nodefine","No define call for "+a,null,[a]));else y([a,d.deps||[],d.exportsFn]);w()},nameToUrl:function(a,b){var c,d,i,h,j,l;if(g.jsExtRegExp.test(a))h=a+(b||"");else{c=
|
||||
k.paths;d=k.pkgs;h=a.split("/");for(j=h.length;j>0;j-=1)if(l=h.slice(0,j).join("/"),i=d[l],l=c[l]){E(l)&&(l=l[0]);h.splice(0,j,l);break}else if(i){c=a===i.name?i.location+"/"+i.main:i.location;h.splice(0,j,c);break}h=h.join("/");h+=b||(/\?/.test(h)?"":".js");h=(h.charAt(0)==="/"||h.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+h}return k.urlArgs?h+((h.indexOf("?")===-1?"?":"&")+k.urlArgs):h},load:function(a,b){g.load(h,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if(a.type===
|
||||
"load"||ga.test((a.currentTarget||a.srcElement).readyState))H=null,a=B(a),h.completeLoad(a.id)},onScriptError:function(a){var b=B(a);if(!p(b.id))return z(G("scripterror","Script error",a,[b.id]))}};h.require=h.makeRequire();return h}};g({});t(["toUrl","undef","defined","specified"],function(b){g[b]=function(){var c=w._;return c.require[b].apply(c,arguments)}});if(v&&(u=s.head=document.getElementsByTagName("head")[0],y=document.getElementsByTagName("base")[0]))u=s.head=y.parentNode;g.onError=function(b){throw b;
|
||||
};g.load=function(b,c,d){var g=b&&b.config||{},i;if(v)return i=g.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),i.type=g.scriptType||"text/javascript",i.charset="utf-8",i.async=!0,i.setAttribute("data-requirecontext",b.contextName),i.setAttribute("data-requiremodule",c),i.attachEvent&&!(i.attachEvent.toString&&i.attachEvent.toString().indexOf("[native code")<0)&&!R?(J=!0,i.attachEvent("onreadystatechange",b.onScriptLoad)):(i.addEventListener("load",
|
||||
b.onScriptLoad,!1),i.addEventListener("error",b.onScriptError,!1)),i.src=d,I=i,y?u.insertBefore(i,y):u.appendChild(i),I=null,i;else aa&&(importScripts(d),b.completeLoad(c))};v&&N(document.getElementsByTagName("script"),function(b){if(!u)u=b.parentNode;if(q=b.getAttribute("data-main")){if(!n.baseUrl)B=q.split("/"),Y=B.pop(),Z=B.length?B.join("/")+"/":"./",n.baseUrl=Z,q=Y;q=q.replace($,"");n.deps=n.deps?n.deps.concat(q):[q];return!0}});define=function(b,c,d){var g,i;typeof b!=="string"&&(d=c,c=b,b=
|
||||
null);E(c)||(d=c,c=[]);!c.length&&D(d)&&d.length&&(d.toString().replace(ca,"").replace(da,function(b,d){c.push(d)}),c=(d.length===1?["require"]:["require","exports","module"]).concat(c));if(J&&(g=I||ba()))b||(b=g.getAttribute("data-requiremodule")),i=w[g.getAttribute("data-requirecontext")];(i?i.defQueue:P).push([b,c,d])};define.amd={jQuery:!0};g.exec=function(b){return eval(b)};g(n)}})(this);
|
||||
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.10.js
generated
vendored
Normal file
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.10.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.10 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(ca){function G(b){return"[object Function]"===N.call(b)}function H(b){return"[object Array]"===N.call(b)}function v(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function U(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function s(b,c){return ga.call(b,c)}function j(b,c){return s(b,c)&&b[c]}function B(b,c){for(var d in b)if(s(b,d)&&c(b[d],d))break}function V(b,c,d,g){c&&B(c,function(c,h){if(d||!s(b,h))g&&"object"===typeof c&&c&&!H(c)&&!G(c)&&!(c instanceof
|
||||
RegExp)?(b[h]||(b[h]={}),V(b[h],c,d,g)):b[h]=c});return b}function t(b,c){return function(){return c.apply(b,arguments)}}function da(b){throw b;}function ea(b){if(!b)return b;var c=ca;v(b.split("."),function(b){c=c[b]});return c}function C(b,c,d,g){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=g;d&&(c.originalError=d);return c}function ha(b){function c(a,e,b){var f,n,c,d,g,h,i,I=e&&e.split("/");n=I;var m=l.map,k=m&&m["*"];if(a&&"."===a.charAt(0))if(e){n=
|
||||
I.slice(0,I.length-1);a=a.split("/");e=a.length-1;l.nodeIdCompat&&R.test(a[e])&&(a[e]=a[e].replace(R,""));n=a=n.concat(a);d=n.length;for(e=0;e<d;e++)if(c=n[e],"."===c)n.splice(e,1),e-=1;else if(".."===c)if(1===e&&(".."===n[2]||".."===n[0]))break;else 0<e&&(n.splice(e-1,2),e-=2);a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&m&&(I||k)){n=a.split("/");e=n.length;a:for(;0<e;e-=1){d=n.slice(0,e).join("/");if(I)for(c=I.length;0<c;c-=1)if(b=j(m,I.slice(0,c).join("/")))if(b=j(b,d)){f=b;
|
||||
g=e;break a}!h&&(k&&j(k,d))&&(h=j(k,d),i=e)}!f&&h&&(f=h,g=i);f&&(n.splice(0,g,f),a=n.join("/"))}return(f=j(l.pkgs,a))?f:a}function d(a){z&&v(document.getElementsByTagName("script"),function(e){if(e.getAttribute("data-requiremodule")===a&&e.getAttribute("data-requirecontext")===i.contextName)return e.parentNode.removeChild(e),!0})}function g(a){var e=j(l.paths,a);if(e&&H(e)&&1<e.length)return e.shift(),i.require.undef(a),i.require([a]),!0}function u(a){var e,b=a?a.indexOf("!"):-1;-1<b&&(e=a.substring(0,
|
||||
b),a=a.substring(b+1,a.length));return[e,a]}function m(a,e,b,f){var n,d,g=null,h=e?e.name:null,l=a,m=!0,k="";a||(m=!1,a="_@r"+(N+=1));a=u(a);g=a[0];a=a[1];g&&(g=c(g,h,f),d=j(p,g));a&&(g?k=d&&d.normalize?d.normalize(a,function(a){return c(a,h,f)}):c(a,h,f):(k=c(a,h,f),a=u(k),g=a[0],k=a[1],b=!0,n=i.nameToUrl(k)));b=g&&!d&&!b?"_unnormalized"+(Q+=1):"";return{prefix:g,name:k,parentMap:e,unnormalized:!!b,url:n,originalName:l,isDefine:m,id:(g?g+"!"+k:k)+b}}function q(a){var e=a.id,b=j(k,e);b||(b=k[e]=new i.Module(a));
|
||||
return b}function r(a,e,b){var f=a.id,n=j(k,f);if(s(p,f)&&(!n||n.defineEmitComplete))"defined"===e&&b(p[f]);else if(n=q(a),n.error&&"error"===e)b(n.error);else n.on(e,b)}function w(a,e){var b=a.requireModules,f=!1;if(e)e(a);else if(v(b,function(e){if(e=j(k,e))e.error=a,e.events.error&&(f=!0,e.emit("error",a))}),!f)h.onError(a)}function x(){S.length&&(ia.apply(A,[A.length,0].concat(S)),S=[])}function y(a){delete k[a];delete W[a]}function F(a,e,b){var f=a.map.id;a.error?a.emit("error",a.error):(e[f]=
|
||||
!0,v(a.depMaps,function(f,c){var d=f.id,g=j(k,d);g&&(!a.depMatched[c]&&!b[d])&&(j(e,d)?(a.defineDep(c,p[d]),a.check()):F(g,e,b))}),b[f]=!0)}function D(){var a,e,b=(a=1E3*l.waitSeconds)&&i.startTime+a<(new Date).getTime(),f=[],c=[],h=!1,k=!0;if(!X){X=!0;B(W,function(a){var i=a.map,m=i.id;if(a.enabled&&(i.isDefine||c.push(a),!a.error))if(!a.inited&&b)g(m)?h=e=!0:(f.push(m),d(m));else if(!a.inited&&(a.fetched&&i.isDefine)&&(h=!0,!i.prefix))return k=!1});if(b&&f.length)return a=C("timeout","Load timeout for modules: "+
|
||||
f,null,f),a.contextName=i.contextName,w(a);k&&v(c,function(a){F(a,{},{})});if((!b||e)&&h)if((z||fa)&&!Y)Y=setTimeout(function(){Y=0;D()},50);X=!1}}function E(a){s(p,a[0])||q(m(a[0],null,!0)).init(a[1],a[2])}function L(a){var a=a.currentTarget||a.srcElement,e=i.onScriptLoad;a.detachEvent&&!Z?a.detachEvent("onreadystatechange",e):a.removeEventListener("load",e,!1);e=i.onScriptError;(!a.detachEvent||Z)&&a.removeEventListener("error",e,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function M(){var a;
|
||||
for(x();A.length;){a=A.shift();if(null===a[0])return w(C("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));E(a)}}var X,$,i,K,Y,l={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},k={},W={},aa={},A=[],p={},T={},ba={},N=1,Q=1;K={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=p[a.map.id]={}},module:function(a){return a.module?a.module:
|
||||
a.module={id:a.map.id,uri:a.map.url,config:function(){return j(l.config,a.map.id)||{}},exports:K.exports(a)}}};$=function(a){this.events=j(aa,a.id)||{};this.map=a;this.shim=j(l.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};$.prototype={init:function(a,e,b,f){f=f||{};if(!this.inited){this.factory=e;if(b)this.on("error",b);else this.events.error&&(b=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=b;this.inited=
|
||||
!0;this.ignore=f.ignore;f.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,e){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=e)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;T[a]||(T[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,e,b=this.map.id;e=this.depExports;var f=this.exports,c=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(G(c)){if(this.events.error&&this.map.isDefine||h.onError!==da)try{f=i.execCb(b,c,e,f)}catch(d){a=d}else f=i.execCb(b,c,e,f);this.map.isDefine&&void 0===f&&((e=this.module)?f=e.exports:this.usingExports&&
|
||||
(f=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else f=c;this.exports=f;if(this.map.isDefine&&!this.ignore&&(p[b]=f,h.onResourceLoad))h.onResourceLoad(i,this.map,this.depMaps);y(b);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=
|
||||
this.map,b=a.id,d=m(a.prefix);this.depMaps.push(d);r(d,"defined",t(this,function(f){var d,g;g=j(ba,this.map.id);var J=this.map.name,u=this.map.parentMap?this.map.parentMap.name:null,p=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(J=f.normalize(J,function(a){return c(a,u,!0)})||""),f=m(a.prefix+"!"+J,this.map.parentMap),r(f,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),g=j(k,f.id)){this.depMaps.push(f);
|
||||
if(this.events.error)g.on("error",t(this,function(a){this.emit("error",a)}));g.enable()}}else g?(this.map.url=i.nameToUrl(g),this.load()):(d=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),d.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(k,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),d.fromText=t(this,function(f,c){var g=a.name,J=m(g),k=O;c&&(f=c);k&&(O=!1);q(J);s(l.config,b)&&(l.config[g]=l.config[b]);try{h.exec(f)}catch(j){return w(C("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+j,j,[b]))}k&&(O=!0);this.depMaps.push(J);i.completeLoad(g);p([g],d)}),f.load(a.name,p,d,l))}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){W[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,t(this,function(a,b){var c,f;if("string"===typeof a){a=m(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=j(K,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;r(a,"defined",t(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&r(a,"error",t(this,this.errback))}c=a.id;f=k[c];!s(K,c)&&(f&&!f.enabled)&&i.enable(a,this)}));B(this.pluginMaps,t(this,function(a){var b=j(k,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:l,contextName:b,registry:k,defined:p,urlFetched:T,defQueue:A,Module:$,makeModuleMap:m,
|
||||
nextTick:h.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=l.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(l[b]||(l[b]={}),V(l[b],a,!0,!0)):l[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(ba[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);b[c]=a}),l.shim=b);a.packages&&v(a.packages,function(a){var b,
|
||||
a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(l.paths[b]=a.location);l.pkgs[b]=a.name+"/"+(a.main||"main").replace(ja,"").replace(R,"")});B(k,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=m(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ca,arguments));return b||a.exports&&ea(a.exports)}},makeRequire:function(a,e){function g(f,c,d){var j,l;e.enableBuildCallback&&(c&&G(c))&&(c.__requireJsBuild=
|
||||
!0);if("string"===typeof f){if(G(c))return w(C("requireargs","Invalid require call"),d);if(a&&s(K,f))return K[f](k[a.id]);if(h.get)return h.get(i,f,a,g);j=m(f,a,!1,!0);j=j.id;return!s(p,j)?w(C("notloaded",'Module name "'+j+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):p[j]}M();i.nextTick(function(){M();l=q(m(null,a));l.skipMap=e.skipMap;l.init(f,c,d,{enabled:!0});D()});return g}e=e||{};V(g,{isBrowser:z,toUrl:function(b){var e,d=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==
|
||||
d&&(!("."===g||".."===g)||1<d))e=b.substring(d,b.length),b=b.substring(0,d);return i.nameToUrl(c(b,a&&a.id,!0),e,!0)},defined:function(b){return s(p,m(b,a,!1,!0).id)},specified:function(b){b=m(b,a,!1,!0).id;return s(p,b)||s(k,b)}});a||(g.undef=function(b){x();var c=m(b,a,!0),e=j(k,b);d(b);delete p[b];delete T[c.url];delete aa[b];U(A,function(a,c){a[0]===b&&A.splice(c,1)});e&&(e.events.defined&&(aa[b]=e.events),y(b))});return g},enable:function(a){j(k,a.id)&&q(a).enable()},completeLoad:function(a){var b,
|
||||
c,f=j(l.shim,a)||{},d=f.exports;for(x();A.length;){c=A.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);E(c)}c=j(k,a);if(!b&&!s(p,a)&&c&&!c.inited){if(l.enforceDefine&&(!d||!ea(d)))return g(a)?void 0:w(C("nodefine","No define call for "+a,null,[a]));E([a,f.deps||[],f.exportsFn])}D()},nameToUrl:function(a,b,c){var f,d,g;(f=j(l.pkgs,a))&&(a=f);if(f=j(ba,a))return i.nameToUrl(f,b,c);if(h.jsExtRegExp.test(a))f=a+(b||"");else{f=l.paths;a=a.split("/");for(d=a.length;0<d;d-=1)if(g=a.slice(0,
|
||||
d).join("/"),g=j(f,g)){H(g)&&(g=g[0]);a.splice(0,d,g);break}f=a.join("/");f+=b||(/^data\:|\?/.test(f)||c?"":".js");f=("/"===f.charAt(0)||f.match(/^[\w\+\.\-]+:/)?"":l.baseUrl)+f}return l.urlArgs?f+((-1===f.indexOf("?")?"?":"&")+l.urlArgs):f},load:function(a,b){h.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=L(a),i.completeLoad(a.id)},onScriptError:function(a){var b=L(a);if(!g(b.id))return w(C("scripterror",
|
||||
"Script error for: "+b.id,a,[b.id]))}};i.require=i.makeRequire();return i}var h,x,y,D,L,E,P,M,q,Q,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,R=/\.js$/,ja=/^\.\//;x=Object.prototype;var N=x.toString,ga=x.hasOwnProperty,ia=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),fa=!z&&"undefined"!==typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,
|
||||
Z="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),F={},r={},S=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(G(requirejs))return;r=requirejs;requirejs=void 0}"undefined"!==typeof require&&!G(require)&&(r=require,require=void 0);h=requirejs=function(b,c,d,g){var u,m="_";!H(b)&&"string"!==typeof b&&(u=b,H(c)?(b=c,c=d,d=g):b=[]);u&&u.context&&(m=u.context);(g=j(F,m))||(g=F[m]=h.s.newContext(m));u&&g.configure(u);return g.require(b,c,d)};h.config=function(b){return h(b)};
|
||||
h.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=h);h.version="2.1.10";h.jsExtRegExp=/^\/|:|\?|\.js$/;h.isBrowser=z;x=h.s={contexts:F,newContext:ha};h({});v(["toUrl","undef","defined","specified"],function(b){h[b]=function(){var c=F._;return c.require[b].apply(c,arguments)}});if(z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0]))y=x.head=D.parentNode;h.onError=da;h.createNode=function(b){var c=
|
||||
b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};h.load=function(b,c,d){var g=b&&b.config||{};if(z)return g=h.createNode(g,c,d),g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&0>g.attachEvent.toString().indexOf("[native code"))&&!Z?(O=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):
|
||||
(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,M=g,D?y.insertBefore(g,D):y.appendChild(g),M=null,g;if(fa)try{importScripts(d),b.completeLoad(c)}catch(j){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,j,[c]))}};z&&!r.skipDataMain&&U(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(L=b.getAttribute("data-main"))return q=L,r.baseUrl||(E=q.split("/"),q=E.pop(),Q=E.length?E.join("/")+"/":"./",r.baseUrl=
|
||||
Q),q=q.replace(R,""),h.jsExtRegExp.test(q)&&(q=L),r.deps=r.deps?r.deps.concat(q):[q],!0});define=function(b,c,d){var g,h;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(la,"").replace(ma,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(g=M))P&&"interactive"===P.readyState||U(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),g=P;g&&(b||
|
||||
(b=g.getAttribute("data-requiremodule")),h=F[g.getAttribute("data-requirecontext")])}(h?h.defQueue:S).push([b,c,d])};define.amd={jQuery:!0};h.exec=function(b){return eval(b)};h(r)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.2.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.2.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.1.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Y){function H(b){return"[object Function]"===L.call(b)}function I(b){return"[object Array]"===L.call(b)}function x(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function r(b,c){return da.call(b,c)}function i(b,c){return r(b,c)&&b[c]}function E(b,c){for(var d in b)if(r(b,d)&&c(b[d],d))break}function Q(b,c,d,i){c&&E(c,function(c,h){if(d||!r(b,h))i&&"string"!==typeof c?(b[h]||(b[h]={}),Q(b[h],
|
||||
c,d,i)):b[h]=c});return b}function t(b,c){return function(){return c.apply(b,arguments)}}function Z(b){if(!b)return b;var c=Y;x(b.split("."),function(b){c=c[b]});return c}function J(b,c,d,i){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=i;d&&(c.originalError=d);return c}function ea(b){function c(a,g,v){var e,n,b,c,d,j,f,h=g&&g.split("/");e=h;var l=m.map,k=l&&l["*"];if(a&&"."===a.charAt(0))if(g){e=i(m.pkgs,g)?h=[g]:h.slice(0,h.length-1);g=a=e.concat(a.split("/"));
|
||||
for(e=0;g[e];e+=1)if(n=g[e],"."===n)g.splice(e,1),e-=1;else if(".."===n)if(1===e&&(".."===g[2]||".."===g[0]))break;else 0<e&&(g.splice(e-1,2),e-=2);e=i(m.pkgs,g=a[0]);a=a.join("/");e&&a===g+"/"+e.main&&(a=g)}else 0===a.indexOf("./")&&(a=a.substring(2));if(v&&(h||k)&&l){g=a.split("/");for(e=g.length;0<e;e-=1){b=g.slice(0,e).join("/");if(h)for(n=h.length;0<n;n-=1)if(v=i(l,h.slice(0,n).join("/")))if(v=i(v,b)){c=v;d=e;break}if(c)break;!j&&(k&&i(k,b))&&(j=i(k,b),f=e)}!c&&j&&(c=j,d=f);c&&(g.splice(0,d,
|
||||
c),a=g.join("/"))}return a}function d(a){z&&x(document.getElementsByTagName("script"),function(g){if(g.getAttribute("data-requiremodule")===a&&g.getAttribute("data-requirecontext")===j.contextName)return g.parentNode.removeChild(g),!0})}function y(a){var g=i(m.paths,a);if(g&&I(g)&&1<g.length)return d(a),g.shift(),j.require.undef(a),j.require([a]),!0}function f(a){var g,b=a?a.indexOf("!"):-1;-1<b&&(g=a.substring(0,b),a=a.substring(b+1,a.length));return[g,a]}function h(a,g,b,e){var n,u,d=null,h=g?g.name:
|
||||
null,l=a,m=!0,k="";a||(m=!1,a="_@r"+(L+=1));a=f(a);d=a[0];a=a[1];d&&(d=c(d,h,e),u=i(p,d));a&&(d?k=u&&u.normalize?u.normalize(a,function(a){return c(a,h,e)}):c(a,h,e):(k=c(a,h,e),a=f(k),d=a[0],k=a[1],b=!0,n=j.nameToUrl(k)));b=d&&!u&&!b?"_unnormalized"+(M+=1):"";return{prefix:d,name:k,parentMap:g,unnormalized:!!b,url:n,originalName:l,isDefine:m,id:(d?d+"!"+k:k)+b}}function q(a){var g=a.id,b=i(k,g);b||(b=k[g]=new j.Module(a));return b}function s(a,g,b){var e=a.id,n=i(k,e);if(r(p,e)&&(!n||n.defineEmitComplete))"defined"===
|
||||
g&&b(p[e]);else q(a).on(g,b)}function C(a,g){var b=a.requireModules,e=!1;if(g)g(a);else if(x(b,function(g){if(g=i(k,g))g.error=a,g.events.error&&(e=!0,g.emit("error",a))}),!e)l.onError(a)}function w(){R.length&&(fa.apply(F,[F.length-1,0].concat(R)),R=[])}function A(a,g,b){var e=a.map.id;a.error?a.emit("error",a.error):(g[e]=!0,x(a.depMaps,function(e,c){var d=e.id,h=i(k,d);h&&(!a.depMatched[c]&&!b[d])&&(i(g,d)?(a.defineDep(c,p[d]),a.check()):A(h,g,b))}),b[e]=!0)}function B(){var a,g,b,e,n=(b=1E3*m.waitSeconds)&&
|
||||
j.startTime+b<(new Date).getTime(),c=[],h=[],f=!1,l=!0;if(!T){T=!0;E(k,function(b){a=b.map;g=a.id;if(b.enabled&&(a.isDefine||h.push(b),!b.error))if(!b.inited&&n)y(g)?f=e=!0:(c.push(g),d(g));else if(!b.inited&&(b.fetched&&a.isDefine)&&(f=!0,!a.prefix))return l=!1});if(n&&c.length)return b=J("timeout","Load timeout for modules: "+c,null,c),b.contextName=j.contextName,C(b);l&&x(h,function(a){A(a,{},{})});if((!n||e)&&f)if((z||$)&&!U)U=setTimeout(function(){U=0;B()},50);T=!1}}function D(a){r(p,a[0])||
|
||||
q(h(a[0],null,!0)).init(a[1],a[2])}function G(a){var a=a.currentTarget||a.srcElement,b=j.onScriptLoad;a.detachEvent&&!V?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=j.onScriptError;(!a.detachEvent||V)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();F.length;){a=F.shift();if(null===a[0])return C(J("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var T,W,j,N,U,m={waitSeconds:7,
|
||||
baseUrl:"./",paths:{},pkgs:{},shim:{},map:{},config:{}},k={},X={},F=[],p={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=j.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=p[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&i(m.config,a.map.id)||{}},exports:p[a.map.id]}}};W=function(a){this.events=i(X,a.id)||{};this.map=a;this.shim=
|
||||
i(m.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};W.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=
|
||||
b)},fetch:function(){if(!this.fetched){this.fetched=!0;j.startTime=(new Date).getTime();var a=this.map;if(this.shim)j.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;S[a]||(S[a]=!0,j.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,n=this.factory;
|
||||
if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(H(n)){if(this.events.error)try{e=j.execCb(c,n,b,e)}catch(d){a=d}else e=j.execCb(c,n,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=[this.map.id],a.requireType="define",C(this.error=a)}else e=n;this.exports=e;if(this.map.isDefine&&
|
||||
!this.ignore&&(p[c]=e,l.onResourceLoad))l.onResourceLoad(j,this.map,this.depMaps);delete k[c];this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=h(a.prefix);this.depMaps.push(d);s(d,"defined",t(this,function(e){var n,d;d=this.map.name;var v=this.map.parentMap?this.map.parentMap.name:null,f=j.makeRequire(a.parentMap,{enableBuildCallback:!0,
|
||||
skipMap:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,v,!0)})||""),e=h(a.prefix+"!"+d,this.map.parentMap),s(e,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=i(k,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",t(this,function(a){this.emit("error",a)}));d.enable()}}else n=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=t(this,function(a){this.inited=!0;this.error=
|
||||
a;a.requireModules=[b];E(k,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&delete k[a.map.id]});C(a)}),n.fromText=t(this,function(e,c){var d=a.name,u=h(d),v=O;c&&(e=c);v&&(O=!1);q(u);r(m.config,b)&&(m.config[d]=m.config[b]);try{l.exec(e)}catch(k){throw Error("fromText eval for "+d+" failed: "+k);}v&&(O=!0);this.depMaps.push(u);j.completeLoad(d);f([d],n)}),e.load(a.name,f,n,m)}));j.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){this.enabling=this.enabled=!0;x(this.depMaps,t(this,function(a,
|
||||
b){var c,e;if("string"===typeof a){a=h(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=i(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;s(a,"defined",t(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&s(a,"error",this.errback)}c=a.id;e=k[c];!r(N,c)&&(e&&!e.enabled)&&j.enable(a,this)}));E(this.pluginMaps,t(this,function(a){var b=i(k,a.id);b&&!b.enabled&&j.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=
|
||||
this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){x(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};j={config:m,contextName:b,registry:k,defined:p,urlFetched:S,defQueue:F,Module:W,makeModuleMap:h,nextTick:l.nextTick,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=m.pkgs,c=m.shim,e={paths:!0,config:!0,map:!0};E(a,function(a,b){e[b]?"map"===b?Q(m[b],a,!0,!0):Q(m[b],a,!0):m[b]=a});a.shim&&(E(a.shim,function(a,
|
||||
b){I(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=j.makeShimExports(a);c[b]=a}),m.shim=c);a.packages&&(x(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ga,"").replace(aa,"")}}),m.pkgs=b);E(k,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=h(b))});if(a.deps||a.callback)j.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Y,arguments));
|
||||
return b||a.exports&&Z(a.exports)}},makeRequire:function(a,d){function f(e,c,u){var i,m;d.enableBuildCallback&&(c&&H(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(H(c))return C(J("requireargs","Invalid require call"),u);if(a&&r(N,e))return N[e](k[a.id]);if(l.get)return l.get(j,e,a);i=h(e,a,!1,!0);i=i.id;return!r(p,i)?C(J("notloaded",'Module name "'+i+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):p[i]}K();j.nextTick(function(){K();m=q(h(null,a));m.skipMap=d.skipMap;
|
||||
m.init(e,c,u,{enabled:!0});B()});return f}d=d||{};Q(f,{isBrowser:z,toUrl:function(b){var d=b.lastIndexOf("."),g=null;-1!==d&&(g=b.substring(d,b.length),b=b.substring(0,d));return j.nameToUrl(c(b,a&&a.id,!0),g)},defined:function(b){return r(p,h(b,a,!1,!0).id)},specified:function(b){b=h(b,a,!1,!0).id;return r(p,b)||r(k,b)}});a||(f.undef=function(b){w();var c=h(b,a,!0),d=i(k,b);delete p[b];delete S[c.url];delete X[b];d&&(d.events.defined&&(X[b]=d.events),delete k[b])});return f},enable:function(a){i(k,
|
||||
a.id)&&q(a).enable()},completeLoad:function(a){var b,c,d=i(m.shim,a)||{},h=d.exports;for(w();F.length;){c=F.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);D(c)}c=i(k,a);if(!b&&!r(p,a)&&c&&!c.inited){if(m.enforceDefine&&(!h||!Z(h)))return y(a)?void 0:C(J("nodefine","No define call for "+a,null,[a]));D([a,d.deps||[],d.exportsFn])}B()},nameToUrl:function(a,b){var c,d,h,f,j,k;if(l.jsExtRegExp.test(a))f=a+(b||"");else{c=m.paths;d=m.pkgs;f=a.split("/");for(j=f.length;0<j;j-=1)if(k=
|
||||
f.slice(0,j).join("/"),h=i(d,k),k=i(c,k)){I(k)&&(k=k[0]);f.splice(0,j,k);break}else if(h){c=a===h.name?h.location+"/"+h.main:h.location;f.splice(0,j,c);break}f=f.join("/");f+=b||(/\?/.test(f)?"":".js");f=("/"===f.charAt(0)||f.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+f}return m.urlArgs?f+((-1===f.indexOf("?")?"?":"&")+m.urlArgs):f},load:function(a,b){l.load(j,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ha.test((a.currentTarget||a.srcElement).readyState))P=
|
||||
null,a=G(a),j.completeLoad(a.id)},onScriptError:function(a){var b=G(a);if(!y(b.id))return C(J("scripterror","Script error",a,[b.id]))}};j.require=j.makeRequire();return j}var l,w,A,D,s,G,P,K,ba,ca,ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,aa=/\.js$/,ga=/^\.\//;w=Object.prototype;var L=w.toString,da=w.hasOwnProperty,fa=Array.prototype.splice,z=!!("undefined"!==typeof window&&navigator&&document),$=!z&&"undefined"!==typeof importScripts,ha=z&&
|
||||
"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,V="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),B={},q={},R=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(H(requirejs))return;q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!H(require)&&(q=require,require=void 0);l=requirejs=function(b,c,d,y){var f,h="_";!I(b)&&"string"!==typeof b&&(f=b,I(c)?(b=c,c=d,d=y):b=[]);f&&f.context&&(h=f.context);(y=i(B,h))||(y=B[h]=l.s.newContext(h));
|
||||
f&&y.configure(f);return y.require(b,c,d)};l.config=function(b){return l(b)};l.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=l);l.version="2.1.2";l.jsExtRegExp=/^\/|:|\?|\.js$/;l.isBrowser=z;w=l.s={contexts:B,newContext:ea};l({});x(["toUrl","undef","defined","specified"],function(b){l[b]=function(){var c=B._;return c.require[b].apply(c,arguments)}});if(z&&(A=w.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0]))A=
|
||||
w.head=D.parentNode;l.onError=function(b){throw b;};l.load=function(b,c,d){var i=b&&b.config||{},f;if(z)return f=i.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),f.type=i.scriptType||"text/javascript",f.charset="utf-8",f.async=!0,f.setAttribute("data-requirecontext",b.contextName),f.setAttribute("data-requiremodule",c),f.attachEvent&&!(f.attachEvent.toString&&0>f.attachEvent.toString().indexOf("[native code"))&&!V?(O=!0,f.attachEvent("onreadystatechange",
|
||||
b.onScriptLoad)):(f.addEventListener("load",b.onScriptLoad,!1),f.addEventListener("error",b.onScriptError,!1)),f.src=d,K=f,D?A.insertBefore(f,D):A.appendChild(f),K=null,f;$&&(importScripts(d),b.completeLoad(c))};z&&M(document.getElementsByTagName("script"),function(b){A||(A=b.parentNode);if(s=b.getAttribute("data-main"))return q.baseUrl||(G=s.split("/"),ba=G.pop(),ca=G.length?G.join("/")+"/":"./",q.baseUrl=ca,s=ba),s=s.replace(aa,""),q.deps=q.deps?q.deps.concat(s):[s],!0});define=function(b,c,d){var i,
|
||||
f;"string"!==typeof b&&(d=c,c=b,b=null);I(c)||(d=c,c=[]);!c.length&&H(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(i=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),i=P;i&&(b||(b=i.getAttribute("data-requiremodule")),f=B[i.getAttribute("data-requirecontext")])}(f?f.defQueue:R).push([b,c,d])};define.amd=
|
||||
{jQuery:!0};l.exec=function(b){return eval(b)};l(q)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.3.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.3.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.1.3 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Y){function I(b){return"[object Function]"===L.call(b)}function J(b){return"[object Array]"===L.call(b)}function x(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function r(b,c){return da.call(b,c)}function i(b,c){return r(b,c)&&b[c]}function E(b,c){for(var d in b)if(r(b,d)&&c(b[d],d))break}function Q(b,c,d,i){c&&E(c,function(c,h){if(d||!r(b,h))i&&"string"!==typeof c?(b[h]||(b[h]={}),Q(b[h],
|
||||
c,d,i)):b[h]=c});return b}function t(b,c){return function(){return c.apply(b,arguments)}}function Z(b){if(!b)return b;var c=Y;x(b.split("."),function(b){c=c[b]});return c}function F(b,c,d,i){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=i;d&&(c.originalError=d);return c}function ea(b){function c(a,f,v){var e,n,b,c,d,k,g,h=f&&f.split("/");e=h;var l=m.map,j=l&&l["*"];if(a&&"."===a.charAt(0))if(f){e=i(m.pkgs,f)?h=[f]:h.slice(0,h.length-1);f=a=e.concat(a.split("/"));
|
||||
for(e=0;f[e];e+=1)if(n=f[e],"."===n)f.splice(e,1),e-=1;else if(".."===n)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=i(m.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(v&&(h||j)&&l){f=a.split("/");for(e=f.length;0<e;e-=1){b=f.slice(0,e).join("/");if(h)for(n=h.length;0<n;n-=1)if(v=i(l,h.slice(0,n).join("/")))if(v=i(v,b)){c=v;d=e;break}if(c)break;!k&&(j&&i(j,b))&&(k=i(j,b),g=e)}!c&&k&&(c=k,d=g);c&&(f.splice(0,d,
|
||||
c),a=f.join("/"))}return a}function d(a){z&&x(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===k.contextName)return f.parentNode.removeChild(f),!0})}function y(a){var f=i(m.paths,a);if(f&&J(f)&&1<f.length)return d(a),f.shift(),k.require.undef(a),k.require([a]),!0}function g(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function h(a,f,b,e){var n,u,d=null,h=f?f.name:
|
||||
null,l=a,m=!0,j="";a||(m=!1,a="_@r"+(L+=1));a=g(a);d=a[0];a=a[1];d&&(d=c(d,h,e),u=i(p,d));a&&(d?j=u&&u.normalize?u.normalize(a,function(a){return c(a,h,e)}):c(a,h,e):(j=c(a,h,e),a=g(j),d=a[0],j=a[1],b=!0,n=k.nameToUrl(j)));b=d&&!u&&!b?"_unnormalized"+(M+=1):"";return{prefix:d,name:j,parentMap:f,unnormalized:!!b,url:n,originalName:l,isDefine:m,id:(d?d+"!"+j:j)+b}}function q(a){var f=a.id,b=i(j,f);b||(b=j[f]=new k.Module(a));return b}function s(a,f,b){var e=a.id,n=i(j,e);if(r(p,e)&&(!n||n.defineEmitComplete))"defined"===
|
||||
f&&b(p[e]);else q(a).on(f,b)}function A(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(x(b,function(f){if(f=i(j,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)l.onError(a)}function w(){R.length&&(fa.apply(G,[G.length-1,0].concat(R)),R=[])}function B(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,x(a.depMaps,function(e,c){var d=e.id,h=i(j,d);h&&(!a.depMatched[c]&&!b[d])&&(i(f,d)?(a.defineDep(c,p[d]),a.check()):B(h,f,b))}),b[e]=!0)}function C(){var a,f,b,e,n=(b=1E3*m.waitSeconds)&&
|
||||
k.startTime+b<(new Date).getTime(),c=[],h=[],g=!1,l=!0;if(!T){T=!0;E(j,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||h.push(b),!b.error))if(!b.inited&&n)y(f)?g=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(g=!0,!a.prefix))return l=!1});if(n&&c.length)return b=F("timeout","Load timeout for modules: "+c,null,c),b.contextName=k.contextName,A(b);l&&x(h,function(a){B(a,{},{})});if((!n||e)&&g)if((z||$)&&!U)U=setTimeout(function(){U=0;C()},50);T=!1}}function D(a){r(p,a[0])||
|
||||
q(h(a[0],null,!0)).init(a[1],a[2])}function H(a){var a=a.currentTarget||a.srcElement,b=k.onScriptLoad;a.detachEvent&&!V?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=k.onScriptError;(!a.detachEvent||V)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=G.shift();if(null===a[0])return A(F("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var T,W,k,N,U,m={waitSeconds:7,
|
||||
baseUrl:"./",paths:{},pkgs:{},shim:{},map:{},config:{}},j={},X={},G=[],p={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=k.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=p[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&i(m.config,a.map.id)||{}},exports:p[a.map.id]}}};W=function(a){this.events=i(X,a.id)||{};this.map=a;this.shim=
|
||||
i(m.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};W.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=
|
||||
b)},fetch:function(){if(!this.fetched){this.fetched=!0;k.startTime=(new Date).getTime();var a=this.map;if(this.shim)k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;S[a]||(S[a]=!0,k.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,n=this.factory;
|
||||
if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(I(n)){if(this.events.error)try{e=k.execCb(c,n,b,e)}catch(d){a=d}else e=k.execCb(c,n,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=[this.map.id],a.requireType="define",A(this.error=a)}else e=n;this.exports=e;if(this.map.isDefine&&
|
||||
!this.ignore&&(p[c]=e,l.onResourceLoad))l.onResourceLoad(k,this.map,this.depMaps);delete j[c];this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=h(a.prefix);this.depMaps.push(d);s(d,"defined",t(this,function(e){var n,d;d=this.map.name;var v=this.map.parentMap?this.map.parentMap.name:null,g=k.makeRequire(a.parentMap,{enableBuildCallback:!0});
|
||||
if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,v,!0)})||""),e=h(a.prefix+"!"+d,this.map.parentMap),s(e,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=i(j,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",t(this,function(a){this.emit("error",a)}));d.enable()}}else n=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=
|
||||
[b];E(j,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&delete j[a.map.id]});A(a)}),n.fromText=t(this,function(e,c){var d=a.name,u=h(d),v=O;c&&(e=c);v&&(O=!1);q(u);r(m.config,b)&&(m.config[d]=m.config[b]);try{l.exec(e)}catch(j){return A(F("fromtexteval","fromText eval for "+b+" failed: "+j,j,[b]))}v&&(O=!0);this.depMaps.push(u);k.completeLoad(d);g([d],n)}),e.load(a.name,g,n,m)}));k.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){this.enabling=this.enabled=!0;x(this.depMaps,t(this,function(a,
|
||||
b){var c,e;if("string"===typeof a){a=h(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=i(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;s(a,"defined",t(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&s(a,"error",this.errback)}c=a.id;e=j[c];!r(N,c)&&(e&&!e.enabled)&&k.enable(a,this)}));E(this.pluginMaps,t(this,function(a){var b=i(j,a.id);b&&!b.enabled&&k.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=
|
||||
this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){x(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};k={config:m,contextName:b,registry:j,defined:p,urlFetched:S,defQueue:G,Module:W,makeModuleMap:h,nextTick:l.nextTick,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=m.pkgs,c=m.shim,e={paths:!0,config:!0,map:!0};E(a,function(a,b){e[b]?"map"===b?Q(m[b],a,!0,!0):Q(m[b],a,!0):m[b]=a});a.shim&&(E(a.shim,function(a,
|
||||
b){J(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=k.makeShimExports(a);c[b]=a}),m.shim=c);a.packages&&(x(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ga,"").replace(aa,"")}}),m.pkgs=b);E(j,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=h(b))});if(a.deps||a.callback)k.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Y,arguments));
|
||||
return b||a.exports&&Z(a.exports)}},makeRequire:function(a,d){function g(e,c,u){var i,m;d.enableBuildCallback&&(c&&I(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(I(c))return A(F("requireargs","Invalid require call"),u);if(a&&r(N,e))return N[e](j[a.id]);if(l.get)return l.get(k,e,a);i=h(e,a,!1,!0);i=i.id;return!r(p,i)?A(F("notloaded",'Module name "'+i+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):p[i]}K();k.nextTick(function(){K();m=q(h(null,a));m.skipMap=d.skipMap;
|
||||
m.init(e,c,u,{enabled:!0});C()});return g}d=d||{};Q(g,{isBrowser:z,toUrl:function(b){var d,f=b.lastIndexOf("."),h=b.split("/")[0];if(-1!==f&&(!("."===h||".."===h)||1<f))d=b.substring(f,b.length),b=b.substring(0,f);b=k.nameToUrl(c(b,a&&a.id,!0),d||".fake");return d?b:b.substring(0,b.length-5)},defined:function(b){return r(p,h(b,a,!1,!0).id)},specified:function(b){b=h(b,a,!1,!0).id;return r(p,b)||r(j,b)}});a||(g.undef=function(b){w();var c=h(b,a,!0),d=i(j,b);delete p[b];delete S[c.url];delete X[b];
|
||||
d&&(d.events.defined&&(X[b]=d.events),delete j[b])});return g},enable:function(a){i(j,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,d=i(m.shim,a)||{},h=d.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);D(c)}c=i(j,a);if(!b&&!r(p,a)&&c&&!c.inited){if(m.enforceDefine&&(!h||!Z(h)))return y(a)?void 0:A(F("nodefine","No define call for "+a,null,[a]));D([a,d.deps||[],d.exportsFn])}C()},nameToUrl:function(a,b){var c,d,h,g,k,j;if(l.jsExtRegExp.test(a))g=
|
||||
a+(b||"");else{c=m.paths;d=m.pkgs;g=a.split("/");for(k=g.length;0<k;k-=1)if(j=g.slice(0,k).join("/"),h=i(d,j),j=i(c,j)){J(j)&&(j=j[0]);g.splice(0,k,j);break}else if(h){c=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,k,c);break}g=g.join("/");g+=b||(/\?/.test(g)?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+g}return m.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+m.urlArgs):g},load:function(a,b){l.load(k,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===
|
||||
a.type||ha.test((a.currentTarget||a.srcElement).readyState))P=null,a=H(a),k.completeLoad(a.id)},onScriptError:function(a){var b=H(a);if(!y(b.id))return A(F("scripterror","Script error",a,[b.id]))}};k.require=k.makeRequire();return k}var l,w,B,D,s,H,P,K,ba,ca,ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,aa=/\.js$/,ga=/^\.\//;w=Object.prototype;var L=w.toString,da=w.hasOwnProperty,fa=Array.prototype.splice,z=!!("undefined"!==typeof window&&navigator&&
|
||||
document),$=!z&&"undefined"!==typeof importScripts,ha=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,V="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),C={},q={},R=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(I(requirejs))return;q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!I(require)&&(q=require,require=void 0);l=requirejs=function(b,c,d,y){var g,h="_";!J(b)&&"string"!==typeof b&&(g=b,J(c)?(b=c,c=d,d=y):b=[]);
|
||||
g&&g.context&&(h=g.context);(y=i(C,h))||(y=C[h]=l.s.newContext(h));g&&y.configure(g);return y.require(b,c,d)};l.config=function(b){return l(b)};l.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=l);l.version="2.1.3";l.jsExtRegExp=/^\/|:|\?|\.js$/;l.isBrowser=z;w=l.s={contexts:C,newContext:ea};l({});x(["toUrl","undef","defined","specified"],function(b){l[b]=function(){var c=C._;return c.require[b].apply(c,arguments)}});if(z&&(B=w.head=document.getElementsByTagName("head")[0],
|
||||
D=document.getElementsByTagName("base")[0]))B=w.head=D.parentNode;l.onError=function(b){throw b;};l.load=function(b,c,d){var i=b&&b.config||{},g;if(z)return g=i.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),g.type=i.scriptType||"text/javascript",g.charset="utf-8",g.async=!0,g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&0>g.attachEvent.toString().indexOf("[native code"))&&
|
||||
!V?(O=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,K=g,D?B.insertBefore(g,D):B.appendChild(g),K=null,g;$&&(importScripts(d),b.completeLoad(c))};z&&M(document.getElementsByTagName("script"),function(b){B||(B=b.parentNode);if(s=b.getAttribute("data-main"))return q.baseUrl||(H=s.split("/"),ba=H.pop(),ca=H.length?H.join("/")+"/":"./",q.baseUrl=ca,s=ba),s=s.replace(aa,""),q.deps=q.deps?q.deps.concat(s):
|
||||
[s],!0});define=function(b,c,d){var i,g;"string"!==typeof b&&(d=c,c=b,b=null);J(c)||(d=c,c=[]);!c.length&&I(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(i=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),i=P;i&&(b||(b=i.getAttribute("data-requiremodule")),g=C[i.getAttribute("data-requirecontext")])}(g?
|
||||
g.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};l.exec=function(b){return eval(b)};l(q)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.4.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.4.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.1.4 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Y){function I(b){return"[object Function]"===L.call(b)}function J(b){return"[object Array]"===L.call(b)}function x(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function r(b,c){return da.call(b,c)}function i(b,c){return r(b,c)&&b[c]}function E(b,c){for(var d in b)if(r(b,d)&&c(b[d],d))break}function Q(b,c,d,i){c&&E(c,function(c,h){if(d||!r(b,h))i&&"string"!==typeof c?(b[h]||(b[h]={}),Q(b[h],
|
||||
c,d,i)):b[h]=c});return b}function t(b,c){return function(){return c.apply(b,arguments)}}function Z(b){if(!b)return b;var c=Y;x(b.split("."),function(b){c=c[b]});return c}function F(b,c,d,i){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=i;d&&(c.originalError=d);return c}function ea(b){function c(a,f,v){var e,n,b,c,d,k,g,h=f&&f.split("/");e=h;var l=m.map,j=l&&l["*"];if(a&&"."===a.charAt(0))if(f){e=i(m.pkgs,f)?h=[f]:h.slice(0,h.length-1);f=a=e.concat(a.split("/"));
|
||||
for(e=0;f[e];e+=1)if(n=f[e],"."===n)f.splice(e,1),e-=1;else if(".."===n)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=i(m.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(v&&(h||j)&&l){f=a.split("/");for(e=f.length;0<e;e-=1){b=f.slice(0,e).join("/");if(h)for(n=h.length;0<n;n-=1)if(v=i(l,h.slice(0,n).join("/")))if(v=i(v,b)){c=v;d=e;break}if(c)break;!k&&(j&&i(j,b))&&(k=i(j,b),g=e)}!c&&k&&(c=k,d=g);c&&(f.splice(0,d,
|
||||
c),a=f.join("/"))}return a}function d(a){z&&x(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===k.contextName)return f.parentNode.removeChild(f),!0})}function y(a){var f=i(m.paths,a);if(f&&J(f)&&1<f.length)return d(a),f.shift(),k.require.undef(a),k.require([a]),!0}function g(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function h(a,f,b,e){var n,u,d=null,h=f?f.name:
|
||||
null,l=a,m=!0,j="";a||(m=!1,a="_@r"+(L+=1));a=g(a);d=a[0];a=a[1];d&&(d=c(d,h,e),u=i(p,d));a&&(d?j=u&&u.normalize?u.normalize(a,function(a){return c(a,h,e)}):c(a,h,e):(j=c(a,h,e),a=g(j),d=a[0],j=a[1],b=!0,n=k.nameToUrl(j)));b=d&&!u&&!b?"_unnormalized"+(M+=1):"";return{prefix:d,name:j,parentMap:f,unnormalized:!!b,url:n,originalName:l,isDefine:m,id:(d?d+"!"+j:j)+b}}function q(a){var f=a.id,b=i(j,f);b||(b=j[f]=new k.Module(a));return b}function s(a,f,b){var e=a.id,n=i(j,e);if(r(p,e)&&(!n||n.defineEmitComplete))"defined"===
|
||||
f&&b(p[e]);else q(a).on(f,b)}function A(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(x(b,function(f){if(f=i(j,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)l.onError(a)}function w(){R.length&&(fa.apply(G,[G.length-1,0].concat(R)),R=[])}function B(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,x(a.depMaps,function(e,c){var d=e.id,h=i(j,d);h&&(!a.depMatched[c]&&!b[d])&&(i(f,d)?(a.defineDep(c,p[d]),a.check()):B(h,f,b))}),b[e]=!0)}function C(){var a,f,b,e,n=(b=1E3*m.waitSeconds)&&
|
||||
k.startTime+b<(new Date).getTime(),c=[],h=[],g=!1,l=!0;if(!T){T=!0;E(j,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||h.push(b),!b.error))if(!b.inited&&n)y(f)?g=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(g=!0,!a.prefix))return l=!1});if(n&&c.length)return b=F("timeout","Load timeout for modules: "+c,null,c),b.contextName=k.contextName,A(b);l&&x(h,function(a){B(a,{},{})});if((!n||e)&&g)if((z||$)&&!U)U=setTimeout(function(){U=0;C()},50);T=!1}}function D(a){r(p,a[0])||
|
||||
q(h(a[0],null,!0)).init(a[1],a[2])}function H(a){var a=a.currentTarget||a.srcElement,b=k.onScriptLoad;a.detachEvent&&!V?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=k.onScriptError;(!a.detachEvent||V)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=G.shift();if(null===a[0])return A(F("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var T,W,k,N,U,m={waitSeconds:7,
|
||||
baseUrl:"./",paths:{},pkgs:{},shim:{},map:{},config:{}},j={},X={},G=[],p={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=k.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=p[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m.config&&i(m.config,a.map.id)||{}},exports:p[a.map.id]}}};W=function(a){this.events=i(X,a.id)||{};this.map=a;this.shim=
|
||||
i(m.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};W.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=t(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=
|
||||
b)},fetch:function(){if(!this.fetched){this.fetched=!0;k.startTime=(new Date).getTime();var a=this.map;if(this.shim)k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],t(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;S[a]||(S[a]=!0,k.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,n=this.factory;
|
||||
if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(I(n)){if(this.events.error)try{e=k.execCb(c,n,b,e)}catch(d){a=d}else e=k.execCb(c,n,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=[this.map.id],a.requireType="define",A(this.error=a)}else e=n;this.exports=e;if(this.map.isDefine&&
|
||||
!this.ignore&&(p[c]=e,l.onResourceLoad))l.onResourceLoad(k,this.map,this.depMaps);delete j[c];this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=h(a.prefix);this.depMaps.push(d);s(d,"defined",t(this,function(e){var n,d;d=this.map.name;var v=this.map.parentMap?this.map.parentMap.name:null,g=k.makeRequire(a.parentMap,{enableBuildCallback:!0});
|
||||
if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,v,!0)})||""),e=h(a.prefix+"!"+d,this.map.parentMap),s(e,"defined",t(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=i(j,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",t(this,function(a){this.emit("error",a)}));d.enable()}}else n=t(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=t(this,function(a){this.inited=!0;this.error=a;a.requireModules=
|
||||
[b];E(j,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&delete j[a.map.id]});A(a)}),n.fromText=t(this,function(e,c){var d=a.name,u=h(d),v=O;c&&(e=c);v&&(O=!1);q(u);r(m.config,b)&&(m.config[d]=m.config[b]);try{l.exec(e)}catch(j){return A(F("fromtexteval","fromText eval for "+b+" failed: "+j,j,[b]))}v&&(O=!0);this.depMaps.push(u);k.completeLoad(d);g([d],n)}),e.load(a.name,g,n,m)}));k.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){this.enabling=this.enabled=!0;x(this.depMaps,t(this,function(a,
|
||||
b){var c,e;if("string"===typeof a){a=h(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=i(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;s(a,"defined",t(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&s(a,"error",this.errback)}c=a.id;e=j[c];!r(N,c)&&(e&&!e.enabled)&&k.enable(a,this)}));E(this.pluginMaps,t(this,function(a){var b=i(j,a.id);b&&!b.enabled&&k.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=
|
||||
this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){x(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};k={config:m,contextName:b,registry:j,defined:p,urlFetched:S,defQueue:G,Module:W,makeModuleMap:h,nextTick:l.nextTick,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=m.pkgs,c=m.shim,e={paths:!0,config:!0,map:!0};E(a,function(a,b){e[b]?"map"===b?Q(m[b],a,!0,!0):Q(m[b],a,!0):m[b]=a});a.shim&&(E(a.shim,function(a,
|
||||
b){J(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=k.makeShimExports(a);c[b]=a}),m.shim=c);a.packages&&(x(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ga,"").replace(aa,"")}}),m.pkgs=b);E(j,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=h(b))});if(a.deps||a.callback)k.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Y,arguments));
|
||||
return b||a.exports&&Z(a.exports)}},makeRequire:function(a,d){function g(e,c,u){var i,m;d.enableBuildCallback&&(c&&I(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(I(c))return A(F("requireargs","Invalid require call"),u);if(a&&r(N,e))return N[e](j[a.id]);if(l.get)return l.get(k,e,a);i=h(e,a,!1,!0);i=i.id;return!r(p,i)?A(F("notloaded",'Module name "'+i+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):p[i]}K();k.nextTick(function(){K();m=q(h(null,a));m.skipMap=d.skipMap;
|
||||
m.init(e,c,u,{enabled:!0});C()});return g}d=d||{};Q(g,{isBrowser:z,toUrl:function(b){var d,f=b.lastIndexOf("."),h=b.split("/")[0];if(-1!==f&&(!("."===h||".."===h)||1<f))d=b.substring(f,b.length),b=b.substring(0,f);b=k.nameToUrl(c(b,a&&a.id,!0),d||".fake");return d?b:b.substring(0,b.length-5)},defined:function(b){return r(p,h(b,a,!1,!0).id)},specified:function(b){b=h(b,a,!1,!0).id;return r(p,b)||r(j,b)}});a||(g.undef=function(b){w();var c=h(b,a,!0),d=i(j,b);delete p[b];delete S[c.url];delete X[b];
|
||||
d&&(d.events.defined&&(X[b]=d.events),delete j[b])});return g},enable:function(a){i(j,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,d=i(m.shim,a)||{},h=d.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);D(c)}c=i(j,a);if(!b&&!r(p,a)&&c&&!c.inited){if(m.enforceDefine&&(!h||!Z(h)))return y(a)?void 0:A(F("nodefine","No define call for "+a,null,[a]));D([a,d.deps||[],d.exportsFn])}C()},nameToUrl:function(a,b){var c,d,h,g,k,j;if(l.jsExtRegExp.test(a))g=
|
||||
a+(b||"");else{c=m.paths;d=m.pkgs;g=a.split("/");for(k=g.length;0<k;k-=1)if(j=g.slice(0,k).join("/"),h=i(d,j),j=i(c,j)){J(j)&&(j=j[0]);g.splice(0,k,j);break}else if(h){c=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,k,c);break}g=g.join("/");g+=b||(/\?/.test(g)?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":m.baseUrl)+g}return m.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+m.urlArgs):g},load:function(a,b){l.load(k,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===
|
||||
a.type||ha.test((a.currentTarget||a.srcElement).readyState))P=null,a=H(a),k.completeLoad(a.id)},onScriptError:function(a){var b=H(a);if(!y(b.id))return A(F("scripterror","Script error",a,[b.id]))}};k.require=k.makeRequire();return k}var l,w,B,D,s,H,P,K,ba,ca,ia=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ja=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,aa=/\.js$/,ga=/^\.\//;w=Object.prototype;var L=w.toString,da=w.hasOwnProperty,fa=Array.prototype.splice,z=!!("undefined"!==typeof window&&navigator&&
|
||||
document),$=!z&&"undefined"!==typeof importScripts,ha=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,V="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),C={},q={},R=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(I(requirejs))return;q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!I(require)&&(q=require,require=void 0);l=requirejs=function(b,c,d,y){var g,h="_";!J(b)&&"string"!==typeof b&&(g=b,J(c)?(b=c,c=d,d=y):b=[]);
|
||||
g&&g.context&&(h=g.context);(y=i(C,h))||(y=C[h]=l.s.newContext(h));g&&y.configure(g);return y.require(b,c,d)};l.config=function(b){return l(b)};l.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=l);l.version="2.1.4";l.jsExtRegExp=/^\/|:|\?|\.js$/;l.isBrowser=z;w=l.s={contexts:C,newContext:ea};l({});x(["toUrl","undef","defined","specified"],function(b){l[b]=function(){var c=C._;return c.require[b].apply(c,arguments)}});if(z&&(B=w.head=document.getElementsByTagName("head")[0],
|
||||
D=document.getElementsByTagName("base")[0]))B=w.head=D.parentNode;l.onError=function(b){throw b;};l.load=function(b,c,d){var i=b&&b.config||{},g;if(z)return g=i.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),g.type=i.scriptType||"text/javascript",g.charset="utf-8",g.async=!0,g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&0>g.attachEvent.toString().indexOf("[native code"))&&
|
||||
!V?(O=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,K=g,D?B.insertBefore(g,D):B.appendChild(g),K=null,g;$&&(importScripts(d),b.completeLoad(c))};z&&M(document.getElementsByTagName("script"),function(b){B||(B=b.parentNode);if(s=b.getAttribute("data-main"))return q.baseUrl||(H=s.split("/"),ba=H.pop(),ca=H.length?H.join("/")+"/":"./",q.baseUrl=ca,s=ba),s=s.replace(aa,""),q.deps=q.deps?q.deps.concat(s):
|
||||
[s],!0});define=function(b,c,d){var i,g;"string"!==typeof b&&(d=c,c=b,b=null);J(c)||(d=c,c=[]);!c.length&&I(d)&&d.length&&(d.toString().replace(ia,"").replace(ja,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(i=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),i=P;i&&(b||(b=i.getAttribute("data-requiremodule")),g=C[i.getAttribute("data-requirecontext")])}(g?
|
||||
g.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};l.exec=function(b){return eval(b)};l(q)}})(this);
|
||||
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.5.js
generated
vendored
Normal file
35
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.5.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
RequireJS 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(aa){function I(b){return"[object Function]"===L.call(b)}function J(b){return"[object Array]"===L.call(b)}function y(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function s(b,c){return ga.call(b,c)}function m(b,c){return s(b,c)&&b[c]}function G(b,c){for(var d in b)if(s(b,d)&&c(b[d],d))break}function R(b,c,d,m){c&&G(c,function(c,j){if(d||!s(b,j))m&&"string"!==typeof c?(b[j]||(b[j]={}),R(b[j],
|
||||
c,d,m)):b[j]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function ba(b){if(!b)return b;var c=aa;y(b.split("."),function(b){c=c[b]});return c}function B(b,c,d,m){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=m;d&&(c.originalError=d);return c}function ha(b){function c(a,f,b){var e,n,c,g,d,S,i,h=f&&f.split("/");e=h;var j=k.map,l=j&&j["*"];if(a&&"."===a.charAt(0))if(f){e=m(k.pkgs,f)?h=[f]:h.slice(0,h.length-1);f=a=e.concat(a.split("/"));
|
||||
for(e=0;f[e];e+=1)if(n=f[e],"."===n)f.splice(e,1),e-=1;else if(".."===n)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=m(k.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&j&&(h||l)){f=a.split("/");for(e=f.length;0<e;e-=1){c=f.slice(0,e).join("/");if(h)for(n=h.length;0<n;n-=1)if(b=m(j,h.slice(0,n).join("/")))if(b=m(b,c)){g=b;d=e;break}if(g)break;!S&&(l&&m(l,c))&&(S=m(l,c),i=e)}!g&&S&&(g=S,d=i);g&&(f.splice(0,d,
|
||||
g),a=f.join("/"))}return a}function d(a){A&&y(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function z(a){var f=m(k.paths,a);if(f&&J(f)&&1<f.length)return d(a),f.shift(),i.require.undef(a),i.require([a]),!0}function h(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function j(a,f,b,e){var n,C,g=null,d=f?f.name:
|
||||
null,j=a,l=!0,k="";a||(l=!1,a="_@r"+(M+=1));a=h(a);g=a[0];a=a[1];g&&(g=c(g,d,e),C=m(q,g));a&&(g?k=C&&C.normalize?C.normalize(a,function(a){return c(a,d,e)}):c(a,d,e):(k=c(a,d,e),a=h(k),g=a[0],k=a[1],b=!0,n=i.nameToUrl(k)));b=g&&!C&&!b?"_unnormalized"+(Q+=1):"";return{prefix:g,name:k,parentMap:f,unnormalized:!!b,url:n,originalName:j,isDefine:l,id:(g?g+"!"+k:k)+b}}function r(a){var f=a.id,b=m(p,f);b||(b=p[f]=new i.Module(a));return b}function t(a,f,b){var e=a.id,n=m(p,e);if(s(q,e)&&(!n||n.defineEmitComplete))"defined"===
|
||||
f&&b(q[e]);else r(a).on(f,b)}function v(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(y(b,function(f){if(f=m(p,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)l.onError(a)}function w(){T.length&&(ia.apply(H,[H.length-1,0].concat(T)),T=[])}function x(a){delete p[a];delete V[a]}function F(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,y(a.depMaps,function(e,c){var g=e.id,d=m(p,g);d&&(!a.depMatched[c]&&!b[g])&&(m(f,g)?(a.defineDep(c,q[g]),a.check()):F(d,f,b))}),b[e]=!0)}
|
||||
function D(){var a,f,b,e,n=(b=1E3*k.waitSeconds)&&i.startTime+b<(new Date).getTime(),c=[],g=[],h=!1,j=!0;if(!W){W=!0;G(V,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&n)z(f)?h=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(h=!0,!a.prefix))return j=!1});if(n&&c.length)return b=B("timeout","Load timeout for modules: "+c,null,c),b.contextName=i.contextName,v(b);j&&y(g,function(a){F(a,{},{})});if((!n||e)&&h)if((A||da)&&!X)X=setTimeout(function(){X=
|
||||
0;D()},50);W=!1}}function E(a){s(q,a[0])||r(j(a[0],null,!0)).init(a[1],a[2])}function K(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!Y?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||Y)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function L(){var a;for(w();H.length;){a=H.shift();if(null===a[0])return v(B("mismatch","Mismatched anonymous define() module: "+a[a.length-
|
||||
1]));E(a)}}var W,Z,i,N,X,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},V={},$={},H=[],q={},U={},M=1,Q=1;N={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=q[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return k.config&&m(k.config,a.map.id)||{}},exports:q[a.map.id]}}};Z=function(a){this.events=
|
||||
m($,a.id)||{};this.map=a;this.shim=m(k.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};Z.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=
|
||||
!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;U[a]||(U[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;
|
||||
var e=this.exports,n=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(I(n)){if(this.events.error)try{e=i.execCb(c,n,b,e)}catch(d){a=d}else e=i.execCb(c,n,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=[this.map.id],a.requireType="define",v(this.error=
|
||||
a)}else e=n;this.exports=e;if(this.map.isDefine&&!this.ignore&&(q[c]=e,l.onResourceLoad))l.onResourceLoad(i,this.map,this.depMaps);x(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=j(a.prefix);this.depMaps.push(d);t(d,"defined",u(this,function(e){var n,d;d=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,h=
|
||||
i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,g,!0)})||""),e=j(a.prefix+"!"+d,this.map.parentMap),t(e,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=m(p,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else n=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=u(this,
|
||||
function(a){this.inited=!0;this.error=a;a.requireModules=[b];G(p,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&x(a.map.id)});v(a)}),n.fromText=u(this,function(e,c){var d=a.name,g=j(d),C=O;c&&(e=c);C&&(O=!1);r(g);s(k.config,b)&&(k.config[d]=k.config[b]);try{l.exec(e)}catch(ca){return v(B("fromtexteval","fromText eval for "+b+" failed: "+ca,ca,[b]))}C&&(O=!0);this.depMaps.push(g);i.completeLoad(d);h([d],n)}),e.load(a.name,h,n,k)}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){V[this.map.id]=
|
||||
this;this.enabling=this.enabled=!0;y(this.depMaps,u(this,function(a,b){var c,e;if("string"===typeof a){a=j(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;t(a,"defined",u(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&t(a,"error",this.errback)}c=a.id;e=p[c];!s(N,c)&&(e&&!e.enabled)&&i.enable(a,this)}));G(this.pluginMaps,u(this,function(a){var b=m(p,a.id);b&&!b.enabled&&i.enable(a,
|
||||
this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){y(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:p,defined:q,urlFetched:U,defQueue:H,Module:Z,makeModuleMap:j,nextTick:l.nextTick,onError:v,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,e={paths:!0,config:!0,map:!0};G(a,function(a,b){e[b]?
|
||||
"map"===b?(k.map||(k.map={}),R(k[b],a,!0,!0)):R(k[b],a,!0):k[b]=a});a.shim&&(G(a.shim,function(a,b){J(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),k.shim=c);a.packages&&(y(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ea,"")}}),k.pkgs=b);G(p,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=j(b))});if(a.deps||a.callback)i.require(a.deps||[],
|
||||
a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(aa,arguments));return b||a.exports&&ba(a.exports)}},makeRequire:function(a,f){function d(e,c,h){var g,k;f.enableBuildCallback&&(c&&I(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(I(c))return v(B("requireargs","Invalid require call"),h);if(a&&s(N,e))return N[e](p[a.id]);if(l.get)return l.get(i,e,a,d);g=j(e,a,!1,!0);g=g.id;return!s(q,g)?v(B("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+
|
||||
b+(a?"":". Use require([])"))):q[g]}L();i.nextTick(function(){L();k=r(j(null,a));k.skipMap=f.skipMap;k.init(e,c,h,{enabled:!0});D()});return d}f=f||{};R(d,{isBrowser:A,toUrl:function(b){var d,f=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==f&&(!("."===g||".."===g)||1<f))d=b.substring(f,b.length),b=b.substring(0,f);return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return s(q,j(b,a,!1,!0).id)},specified:function(b){b=j(b,a,!1,!0).id;return s(q,b)||s(p,b)}});a||(d.undef=function(b){w();var c=
|
||||
j(b,a,!0),d=m(p,b);delete q[b];delete U[c.url];delete $[b];d&&(d.events.defined&&($[b]=d.events),x(b))});return d},enable:function(a){m(p,a.id)&&r(a).enable()},completeLoad:function(a){var b,c,e=m(k.shim,a)||{},d=e.exports;for(w();H.length;){c=H.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);E(c)}c=m(p,a);if(!b&&!s(q,a)&&c&&!c.inited){if(k.enforceDefine&&(!d||!ba(d)))return z(a)?void 0:v(B("nodefine","No define call for "+a,null,[a]));E([a,e.deps||[],e.exportsFn])}D()},nameToUrl:function(a,
|
||||
b,c){var e,d,h,g,j,i;if(l.jsExtRegExp.test(a))g=a+(b||"");else{e=k.paths;d=k.pkgs;g=a.split("/");for(j=g.length;0<j;j-=1)if(i=g.slice(0,j).join("/"),h=m(d,i),i=m(e,i)){J(i)&&(i=i[0]);g.splice(0,j,i);break}else if(h){a=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,j,a);break}g=g.join("/");g+=b||(/\?/.test(g)||c?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+k.urlArgs):g},load:function(a,b){l.load(i,a,b)},execCb:function(a,
|
||||
b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=K(a),i.completeLoad(a.id)},onScriptError:function(a){var b=K(a);if(!z(b.id))return v(B("scripterror","Script error",a,[b.id]))}};i.require=i.makeRequire();return i}var l,w,x,D,t,E,P,K,Q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=
|
||||
Array.prototype.splice,A=!!("undefined"!==typeof window&&navigator&&document),da=!A&&"undefined"!==typeof importScripts,ka=A&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),F={},r={},T=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(I(requirejs))return;r=requirejs;requirejs=void 0}"undefined"!==typeof require&&!I(require)&&(r=require,require=void 0);l=requirejs=function(b,c,d,z){var h,
|
||||
j="_";!J(b)&&"string"!==typeof b&&(h=b,J(c)?(b=c,c=d,d=z):b=[]);h&&h.context&&(j=h.context);(z=m(F,j))||(z=F[j]=l.s.newContext(j));h&&z.configure(h);return z.require(b,c,d)};l.config=function(b){return l(b)};l.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=l);l.version="2.1.5";l.jsExtRegExp=/^\/|:|\?|\.js$/;l.isBrowser=A;w=l.s={contexts:F,newContext:ha};l({});y(["toUrl","undef","defined","specified"],function(b){l[b]=function(){var c=F._;return c.require[b].apply(c,
|
||||
arguments)}});if(A&&(x=w.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0]))x=w.head=D.parentNode;l.onError=function(b){throw b;};l.load=function(b,c,d){var l=b&&b.config||{},h;if(A)return h=l.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script"),h.type=l.scriptType||"text/javascript",h.charset="utf-8",h.async=!0,h.setAttribute("data-requirecontext",b.contextName),h.setAttribute("data-requiremodule",c),
|
||||
h.attachEvent&&!(h.attachEvent.toString&&0>h.attachEvent.toString().indexOf("[native code"))&&!Y?(O=!0,h.attachEvent("onreadystatechange",b.onScriptLoad)):(h.addEventListener("load",b.onScriptLoad,!1),h.addEventListener("error",b.onScriptError,!1)),h.src=d,K=h,D?x.insertBefore(h,D):x.appendChild(h),K=null,h;if(da)try{importScripts(d),b.completeLoad(c)}catch(j){b.onError(B("importscripts","importScripts failed for "+c+" at "+d,j,[c]))}};A&&M(document.getElementsByTagName("script"),function(b){x||(x=
|
||||
b.parentNode);if(t=b.getAttribute("data-main"))return r.baseUrl||(E=t.split("/"),Q=E.pop(),fa=E.length?E.join("/")+"/":"./",r.baseUrl=fa,t=Q),t=t.replace(ea,""),r.deps=r.deps?r.deps.concat(t):[t],!0});define=function(b,c,d){var l,h;"string"!==typeof b&&(d=c,c=b,b=null);J(c)||(d=c,c=[]);!c.length&&I(d)&&d.length&&(d.toString().replace(la,"").replace(ma,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c));if(O){if(!(l=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),
|
||||
function(b){if("interactive"===b.readyState)return P=b}),l=P;l&&(b||(b=l.getAttribute("data-requiremodule")),h=F[l.getAttribute("data-requirecontext")])}(h?h.defQueue:T).push([b,c,d])};define.amd={jQuery:!0};l.exec=function(b){return eval(b)};l(r)}})(this);
|
||||
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.6.js
generated
vendored
Normal file
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.6.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.6 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(ba){function J(b){return"[object Function]"===N.call(b)}function K(b){return"[object Array]"===N.call(b)}function z(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function O(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function t(b,c){return ha.call(b,c)}function m(b,c){return t(b,c)&&b[c]}function H(b,c){for(var d in b)if(t(b,d)&&c(b[d],d))break}function S(b,c,d,m){c&&H(c,function(c,l){if(d||!t(b,l))m&&"string"!==typeof c?(b[l]||(b[l]={}),S(b[l],
|
||||
c,d,m)):b[l]=c});return b}function v(b,c){return function(){return c.apply(b,arguments)}}function ca(b){throw b;}function da(b){if(!b)return b;var c=ba;z(b.split("."),function(b){c=c[b]});return c}function B(b,c,d,m){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=m;d&&(c.originalError=d);return c}function ia(b){function c(a,f,C){var e,n,b,c,d,T,k,g=f&&f.split("/");e=g;var l=j.map,h=l&&l["*"];if(a&&"."===a.charAt(0))if(f){e=m(j.pkgs,f)?g=[f]:g.slice(0,g.length-
|
||||
1);f=a=e.concat(a.split("/"));for(e=0;f[e];e+=1)if(n=f[e],"."===n)f.splice(e,1),e-=1;else if(".."===n)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=m(j.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(C&&l&&(g||h)){f=a.split("/");for(e=f.length;0<e;e-=1){b=f.slice(0,e).join("/");if(g)for(n=g.length;0<n;n-=1)if(C=m(l,g.slice(0,n).join("/")))if(C=m(C,b)){c=C;d=e;break}if(c)break;!T&&(h&&m(h,b))&&(T=m(h,b),k=e)}!c&&
|
||||
T&&(c=T,d=k);c&&(f.splice(0,d,c),a=f.join("/"))}return a}function d(a){A&&z(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===k.contextName)return f.parentNode.removeChild(f),!0})}function p(a){var f=m(j.paths,a);if(f&&K(f)&&1<f.length)return d(a),f.shift(),k.require.undef(a),k.require([a]),!0}function g(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function l(a,
|
||||
f,b,e){var n,D,i=null,d=f?f.name:null,l=a,h=!0,j="";a||(h=!1,a="_@r"+(N+=1));a=g(a);i=a[0];a=a[1];i&&(i=c(i,d,e),D=m(r,i));a&&(i?j=D&&D.normalize?D.normalize(a,function(a){return c(a,d,e)}):c(a,d,e):(j=c(a,d,e),a=g(j),i=a[0],j=a[1],b=!0,n=k.nameToUrl(j)));b=i&&!D&&!b?"_unnormalized"+(O+=1):"";return{prefix:i,name:j,parentMap:f,unnormalized:!!b,url:n,originalName:l,isDefine:h,id:(i?i+"!"+j:j)+b}}function s(a){var f=a.id,b=m(q,f);b||(b=q[f]=new k.Module(a));return b}function u(a,f,b){var e=a.id,n=m(q,
|
||||
e);if(t(r,e)&&(!n||n.defineEmitComplete))"defined"===f&&b(r[e]);else if(n=s(a),n.error&&"error"===f)b(n.error);else n.on(f,b)}function w(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(z(b,function(f){if(f=m(q,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)h.onError(a)}function x(){U.length&&(ja.apply(I,[I.length-1,0].concat(U)),U=[])}function y(a){delete q[a];delete W[a]}function G(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,z(a.depMaps,function(e,c){var d=e.id,
|
||||
g=m(q,d);g&&(!a.depMatched[c]&&!b[d])&&(m(f,d)?(a.defineDep(c,r[d]),a.check()):G(g,f,b))}),b[e]=!0)}function E(){var a,f,b,e,n=(b=1E3*j.waitSeconds)&&k.startTime+b<(new Date).getTime(),c=[],i=[],g=!1,l=!0;if(!X){X=!0;H(W,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||i.push(b),!b.error))if(!b.inited&&n)p(f)?g=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(g=!0,!a.prefix))return l=!1});if(n&&c.length)return b=B("timeout","Load timeout for modules: "+c,null,c),b.contextName=
|
||||
k.contextName,w(b);l&&z(i,function(a){G(a,{},{})});if((!n||e)&&g)if((A||ea)&&!Y)Y=setTimeout(function(){Y=0;E()},50);X=!1}}function F(a){t(r,a[0])||s(l(a[0],null,!0)).init(a[1],a[2])}function L(a){var a=a.currentTarget||a.srcElement,b=k.onScriptLoad;a.detachEvent&&!Z?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=k.onScriptError;(!a.detachEvent||Z)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function M(){var a;for(x();I.length;){a=
|
||||
I.shift();if(null===a[0])return w(B("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));F(a)}}var X,$,k,P,Y,j={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},q={},W={},aa={},I=[],r={},V={},N=1,O=1;P={require:function(a){return a.require?a.require:a.require=k.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){var b=
|
||||
m(j.pkgs,a.map.id);return(b?m(j.config,a.map.id+"/"+b.main):m(j.config,a.map.id))||{}},exports:r[a.map.id]}}};$=function(a){this.events=m(aa,a.id)||{};this.map=a;this.shim=m(j.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};$.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=v(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=
|
||||
!0;this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;k.startTime=(new Date).getTime();var a=this.map;if(this.shim)k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],v(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;V[a]||(V[a]=!0,k.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,n=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(J(n)){if(this.events.error&&this.map.isDefine||h.onError!==ca)try{e=k.execCb(c,n,b,e)}catch(d){a=d}else e=k.execCb(c,n,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==
|
||||
this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else e=n;this.exports=e;if(this.map.isDefine&&!this.ignore&&(r[c]=e,h.onResourceLoad))h.onResourceLoad(k,this.map,this.depMaps);y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=
|
||||
!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=l(a.prefix);this.depMaps.push(d);u(d,"defined",v(this,function(e){var n,d;d=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,C=k.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,g,!0)})||""),e=l(a.prefix+"!"+d,this.map.parentMap),u(e,"defined",v(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),
|
||||
d=m(q,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",v(this,function(a){this.emit("error",a)}));d.enable()}}else n=v(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=v(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];H(q,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),n.fromText=v(this,function(e,c){var d=a.name,g=l(d),i=Q;c&&(e=c);i&&(Q=!1);s(g);t(j.config,b)&&(j.config[d]=j.config[b]);try{h.exec(e)}catch(D){return w(B("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+D,D,[b]))}i&&(Q=!0);this.depMaps.push(g);k.completeLoad(d);C([d],n)}),e.load(a.name,C,n,j)}));k.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){W[this.map.id]=this;this.enabling=this.enabled=!0;z(this.depMaps,v(this,function(a,b){var c,e;if("string"===typeof a){a=l(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(P,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;u(a,"defined",v(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&u(a,"error",v(this,this.errback))}c=a.id;e=q[c];!t(P,c)&&(e&&!e.enabled)&&k.enable(a,this)}));H(this.pluginMaps,v(this,function(a){var b=m(q,a.id);b&&!b.enabled&&k.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){z(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};k={config:j,contextName:b,registry:q,defined:r,urlFetched:V,defQueue:I,Module:$,makeModuleMap:l,
|
||||
nextTick:h.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=j.pkgs,c=j.shim,e={paths:!0,config:!0,map:!0};H(a,function(a,b){e[b]?"map"===b?(j.map||(j.map={}),S(j[b],a,!0,!0)):S(j[b],a,!0):j[b]=a});a.shim&&(H(a.shim,function(a,b){K(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=k.makeShimExports(a);c[b]=a}),j.shim=c);a.packages&&(z(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,
|
||||
location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(fa,"")}}),j.pkgs=b);H(q,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=l(b))});if(a.deps||a.callback)k.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,f){function d(e,c,g){var i,j;f.enableBuildCallback&&(c&&J(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(J(c))return w(B("requireargs",
|
||||
"Invalid require call"),g);if(a&&t(P,e))return P[e](q[a.id]);if(h.get)return h.get(k,e,a,d);i=l(e,a,!1,!0);i=i.id;return!t(r,i)?w(B("notloaded",'Module name "'+i+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[i]}M();k.nextTick(function(){M();j=s(l(null,a));j.skipMap=f.skipMap;j.init(e,c,g,{enabled:!0});E()});return d}f=f||{};S(d,{isBrowser:A,toUrl:function(b){var d,f=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==f&&(!("."===g||".."===g)||1<f))d=b.substring(f,b.length),b=
|
||||
b.substring(0,f);return k.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return t(r,l(b,a,!1,!0).id)},specified:function(b){b=l(b,a,!1,!0).id;return t(r,b)||t(q,b)}});a||(d.undef=function(b){x();var c=l(b,a,!0),d=m(q,b);delete r[b];delete V[c.url];delete aa[b];d&&(d.events.defined&&(aa[b]=d.events),y(b))});return d},enable:function(a){m(q,a.id)&&s(a).enable()},completeLoad:function(a){var b,c,e=m(j.shim,a)||{},d=e.exports;for(x();I.length;){c=I.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===
|
||||
a&&(b=!0);F(c)}c=m(q,a);if(!b&&!t(r,a)&&c&&!c.inited){if(j.enforceDefine&&(!d||!da(d)))return p(a)?void 0:w(B("nodefine","No define call for "+a,null,[a]));F([a,e.deps||[],e.exportsFn])}E()},nameToUrl:function(a,b,c){var d,g,l,i,k,p;if(h.jsExtRegExp.test(a))i=a+(b||"");else{d=j.paths;g=j.pkgs;i=a.split("/");for(k=i.length;0<k;k-=1)if(p=i.slice(0,k).join("/"),l=m(g,p),p=m(d,p)){K(p)&&(p=p[0]);i.splice(0,k,p);break}else if(l){a=a===l.name?l.location+"/"+l.main:l.location;i.splice(0,k,a);break}i=i.join("/");
|
||||
i+=b||(/\?/.test(i)||c?"":".js");i=("/"===i.charAt(0)||i.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+i}return j.urlArgs?i+((-1===i.indexOf("?")?"?":"&")+j.urlArgs):i},load:function(a,b){h.load(k,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||la.test((a.currentTarget||a.srcElement).readyState))R=null,a=L(a),k.completeLoad(a.id)},onScriptError:function(a){var b=L(a);if(!p(b.id))return w(B("scripterror","Script error for: "+b.id,a,[b.id]))}};k.require=k.makeRequire();
|
||||
return k}var h,x,y,E,L,F,R,M,s,ga,ma=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,na=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,fa=/\.js$/,ka=/^\.\//;x=Object.prototype;var N=x.toString,ha=x.hasOwnProperty,ja=Array.prototype.splice,A=!!("undefined"!==typeof window&&navigator&&window.document),ea=!A&&"undefined"!==typeof importScripts,la=A&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Z="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),G={},u={},U=[],Q=
|
||||
!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(J(requirejs))return;u=requirejs;requirejs=void 0}"undefined"!==typeof require&&!J(require)&&(u=require,require=void 0);h=requirejs=function(b,c,d,p){var g,l="_";!K(b)&&"string"!==typeof b&&(g=b,K(c)?(b=c,c=d,d=p):b=[]);g&&g.context&&(l=g.context);(p=m(G,l))||(p=G[l]=h.s.newContext(l));g&&p.configure(g);return p.require(b,c,d)};h.config=function(b){return h(b)};h.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,
|
||||
4)}:function(b){b()};require||(require=h);h.version="2.1.6";h.jsExtRegExp=/^\/|:|\?|\.js$/;h.isBrowser=A;x=h.s={contexts:G,newContext:ia};h({});z(["toUrl","undef","defined","specified"],function(b){h[b]=function(){var c=G._;return c.require[b].apply(c,arguments)}});if(A&&(y=x.head=document.getElementsByTagName("head")[0],E=document.getElementsByTagName("base")[0]))y=x.head=E.parentNode;h.onError=ca;h.load=function(b,c,d){var h=b&&b.config||{},g;if(A)return g=h.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||
"html:script"):document.createElement("script"),g.type=h.scriptType||"text/javascript",g.charset="utf-8",g.async=!0,g.setAttribute("data-requirecontext",b.contextName),g.setAttribute("data-requiremodule",c),g.attachEvent&&!(g.attachEvent.toString&&0>g.attachEvent.toString().indexOf("[native code"))&&!Z?(Q=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,M=g,E?y.insertBefore(g,E):y.appendChild(g),
|
||||
M=null,g;if(ea)try{importScripts(d),b.completeLoad(c)}catch(l){b.onError(B("importscripts","importScripts failed for "+c+" at "+d,l,[c]))}};A&&O(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(L=b.getAttribute("data-main"))return s=L,u.baseUrl||(F=s.split("/"),s=F.pop(),ga=F.length?F.join("/")+"/":"./",u.baseUrl=ga),s=s.replace(fa,""),h.jsExtRegExp.test(s)&&(s=L),u.deps=u.deps?u.deps.concat(s):[s],!0});define=function(b,c,d){var h,g;"string"!==typeof b&&(d=c,c=b,b=null);
|
||||
K(c)||(d=c,c=null);!c&&J(d)&&(c=[],d.length&&(d.toString().replace(ma,"").replace(na,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(Q){if(!(h=M))R&&"interactive"===R.readyState||O(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return R=b}),h=R;h&&(b||(b=h.getAttribute("data-requiremodule")),g=G[h.getAttribute("data-requirecontext")])}(g?g.defQueue:U).push([b,c,d])};define.amd={jQuery:!0};h.exec=function(b){return eval(b)};
|
||||
h(u)}})(this);
|
||||
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.7.js
generated
vendored
Normal file
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.7.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function H(b){return"[object Function]"===L.call(b)}function I(b){return"[object Array]"===L.call(b)}function y(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function s(b,c){return ga.call(b,c)}function l(b,c){return s(b,c)&&b[c]}function F(b,c){for(var d in b)if(s(b,d)&&c(b[d],d))break}function Q(b,c,d,h){c&&F(c,function(c,j){if(d||!s(b,j))h&&"string"!==typeof c?(b[j]||(b[j]={}),Q(b[j],
|
||||
c,d,h)):b[j]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function aa(b){throw b;}function ba(b){if(!b)return b;var c=Z;y(b.split("."),function(b){c=c[b]});return c}function A(b,c,d,h){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=h;d&&(c.originalError=d);return c}function ha(b){function c(a,f,b){var e,m,c,g,d,h,j,i=f&&f.split("/");e=i;var n=k.map,p=n&&n["*"];if(a&&"."===a.charAt(0))if(f){e=l(k.pkgs,f)?i=[f]:i.slice(0,i.length-
|
||||
1);f=a=e.concat(a.split("/"));for(e=0;f[e];e+=1)if(m=f[e],"."===m)f.splice(e,1),e-=1;else if(".."===m)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=l(k.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&n&&(i||p)){f=a.split("/");for(e=f.length;0<e;e-=1){c=f.slice(0,e).join("/");if(i)for(m=i.length;0<m;m-=1)if(b=l(n,i.slice(0,m).join("/")))if(b=l(b,c)){g=b;d=e;break}if(g)break;!h&&(p&&l(p,c))&&(h=l(p,c),j=e)}!g&&
|
||||
h&&(g=h,d=j);g&&(f.splice(0,d,g),a=f.join("/"))}return a}function d(a){z&&y(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function h(a){var f=l(k.paths,a);if(f&&I(f)&&1<f.length)return d(a),f.shift(),i.require.undef(a),i.require([a]),!0}function $(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function n(a,
|
||||
f,b,e){var m,B,g=null,d=f?f.name:null,h=a,j=!0,k="";a||(j=!1,a="_@r"+(L+=1));a=$(a);g=a[0];a=a[1];g&&(g=c(g,d,e),B=l(r,g));a&&(g?k=B&&B.normalize?B.normalize(a,function(a){return c(a,d,e)}):c(a,d,e):(k=c(a,d,e),a=$(k),g=a[0],k=a[1],b=!0,m=i.nameToUrl(k)));b=g&&!B&&!b?"_unnormalized"+(M+=1):"";return{prefix:g,name:k,parentMap:f,unnormalized:!!b,url:m,originalName:h,isDefine:j,id:(g?g+"!"+k:k)+b}}function q(a){var f=a.id,b=l(p,f);b||(b=p[f]=new i.Module(a));return b}function t(a,f,b){var e=a.id,m=l(p,
|
||||
e);if(s(r,e)&&(!m||m.defineEmitComplete))"defined"===f&&b(r[e]);else if(m=q(a),m.error&&"error"===f)b(m.error);else m.on(f,b)}function v(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(y(b,function(f){if(f=l(p,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)j.onError(a)}function w(){R.length&&(ia.apply(G,[G.length-1,0].concat(R)),R=[])}function x(a){delete p[a];delete T[a]}function E(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,y(a.depMaps,function(e,c){var g=e.id,
|
||||
d=l(p,g);d&&(!a.depMatched[c]&&!b[g])&&(l(f,g)?(a.defineDep(c,r[g]),a.check()):E(d,f,b))}),b[e]=!0)}function C(){var a,f,b,e,m=(b=1E3*k.waitSeconds)&&i.startTime+b<(new Date).getTime(),c=[],g=[],j=!1,l=!0;if(!U){U=!0;F(T,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&m)h(f)?j=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(j=!0,!a.prefix))return l=!1});if(m&&c.length)return b=A("timeout","Load timeout for modules: "+c,null,c),b.contextName=
|
||||
i.contextName,v(b);l&&y(g,function(a){E(a,{},{})});if((!m||e)&&j)if((z||da)&&!V)V=setTimeout(function(){V=0;C()},50);U=!1}}function D(a){s(r,a[0])||q(n(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!W?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||W)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=
|
||||
G.shift();if(null===a[0])return v(A("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var U,X,i,N,V,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},T={},Y={},G=[],r={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){var b=
|
||||
l(k.pkgs,a.map.id);return(b?l(k.config,a.map.id+"/"+b.main):l(k.config,a.map.id))||{}},exports:r[a.map.id]}}};X=function(a){this.events=l(Y,a.id)||{};this.map=a;this.shim=l(k.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;
|
||||
this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,m=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(H(m)){if(this.events.error&&this.map.isDefine||j.onError!==aa)try{e=i.execCb(c,m,b,e)}catch(d){a=d}else e=i.execCb(c,m,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==
|
||||
this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",v(this.error=a)}else e=m;this.exports=e;if(this.map.isDefine&&!this.ignore&&(r[c]=e,j.onResourceLoad))j.onResourceLoad(i,this.map,this.depMaps);x(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=
|
||||
!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=n(a.prefix);this.depMaps.push(d);t(d,"defined",u(this,function(e){var m,d;d=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,h=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,g,!0)})||""),e=n(a.prefix+"!"+d,this.map.parentMap),t(e,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),
|
||||
d=l(p,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else m=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),m.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];F(p,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&x(a.map.id)});v(a)}),m.fromText=u(this,function(e,c){var d=a.name,g=n(d),B=O;c&&(e=c);B&&(O=!1);q(g);s(k.config,b)&&(k.config[d]=k.config[b]);try{j.exec(e)}catch(ca){return v(A("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+ca,ca,[b]))}B&&(O=!0);this.depMaps.push(g);i.completeLoad(d);h([d],m)}),e.load(a.name,h,m,k)}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){T[this.map.id]=this;this.enabling=this.enabled=!0;y(this.depMaps,u(this,function(a,b){var c,e;if("string"===typeof a){a=n(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=l(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;t(a,"defined",u(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&t(a,"error",u(this,this.errback))}c=a.id;e=p[c];!s(N,c)&&(e&&!e.enabled)&&i.enable(a,this)}));F(this.pluginMaps,u(this,function(a){var b=l(p,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){y(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:p,defined:r,urlFetched:S,defQueue:G,Module:X,makeModuleMap:n,
|
||||
nextTick:j.nextTick,onError:v,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,e={paths:!0,config:!0,map:!0};F(a,function(a,b){e[b]?"map"===b?(k.map||(k.map={}),Q(k[b],a,!0,!0)):Q(k[b],a,!0):k[b]=a});a.shim&&(F(a.shim,function(a,b){I(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),k.shim=c);a.packages&&(y(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,
|
||||
location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ea,"")}}),k.pkgs=b);F(p,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=n(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Z,arguments));return b||a.exports&&ba(a.exports)}},makeRequire:function(a,f){function d(e,c,h){var g,k;f.enableBuildCallback&&(c&&H(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(H(c))return v(A("requireargs",
|
||||
"Invalid require call"),h);if(a&&s(N,e))return N[e](p[a.id]);if(j.get)return j.get(i,e,a,d);g=n(e,a,!1,!0);g=g.id;return!s(r,g)?v(A("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[g]}K();i.nextTick(function(){K();k=q(n(null,a));k.skipMap=f.skipMap;k.init(e,c,h,{enabled:!0});C()});return d}f=f||{};Q(d,{isBrowser:z,toUrl:function(b){var d,f=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==f&&(!("."===g||".."===g)||1<f))d=b.substring(f,b.length),b=
|
||||
b.substring(0,f);return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return s(r,n(b,a,!1,!0).id)},specified:function(b){b=n(b,a,!1,!0).id;return s(r,b)||s(p,b)}});a||(d.undef=function(b){w();var c=n(b,a,!0),f=l(p,b);delete r[b];delete S[c.url];delete Y[b];f&&(f.events.defined&&(Y[b]=f.events),x(b))});return d},enable:function(a){l(p,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,e=l(k.shim,a)||{},d=e.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===
|
||||
a&&(b=!0);D(c)}c=l(p,a);if(!b&&!s(r,a)&&c&&!c.inited){if(k.enforceDefine&&(!d||!ba(d)))return h(a)?void 0:v(A("nodefine","No define call for "+a,null,[a]));D([a,e.deps||[],e.exportsFn])}C()},nameToUrl:function(a,b,c){var e,d,h,g,i,n;if(j.jsExtRegExp.test(a))g=a+(b||"");else{e=k.paths;d=k.pkgs;g=a.split("/");for(i=g.length;0<i;i-=1)if(n=g.slice(0,i).join("/"),h=l(d,n),n=l(e,n)){I(n)&&(n=n[0]);g.splice(0,i,n);break}else if(h){a=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,i,a);break}g=g.join("/");
|
||||
g+=b||(/\?/.test(g)||c?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+k.urlArgs):g},load:function(a,b){j.load(i,a,b)},execCb:function(a,b,c,e){return b.apply(e,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=J(a),i.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!h(b.id))return v(A("scripterror","Script error for: "+b.id,a,[b.id]))}};i.require=i.makeRequire();
|
||||
return i}var j,w,x,C,J,D,P,K,q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=Array.prototype.splice,z=!!("undefined"!==typeof window&&navigator&&window.document),da=!z&&"undefined"!==typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,W="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),E={},t={},R=[],O=
|
||||
!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(H(requirejs))return;t=requirejs;requirejs=void 0}"undefined"!==typeof require&&!H(require)&&(t=require,require=void 0);j=requirejs=function(b,c,d,h){var q,n="_";!I(b)&&"string"!==typeof b&&(q=b,I(c)?(b=c,c=d,d=h):b=[]);q&&q.context&&(n=q.context);(h=l(E,n))||(h=E[n]=j.s.newContext(n));q&&h.configure(q);return h.require(b,c,d)};j.config=function(b){return j(b)};j.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,
|
||||
4)}:function(b){b()};require||(require=j);j.version="2.1.7";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=z;w=j.s={contexts:E,newContext:ha};j({});y(["toUrl","undef","defined","specified"],function(b){j[b]=function(){var c=E._;return c.require[b].apply(c,arguments)}});if(z&&(x=w.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))x=w.head=C.parentNode;j.onError=aa;j.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):
|
||||
document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};j.load=function(b,c,d){var h=b&&b.config||{};if(z)return h=j.createNode(h,c,d),h.setAttribute("data-requirecontext",b.contextName),h.setAttribute("data-requiremodule",c),h.attachEvent&&!(h.attachEvent.toString&&0>h.attachEvent.toString().indexOf("[native code"))&&!W?(O=!0,h.attachEvent("onreadystatechange",b.onScriptLoad)):(h.addEventListener("load",b.onScriptLoad,!1),h.addEventListener("error",
|
||||
b.onScriptError,!1)),h.src=d,K=h,C?x.insertBefore(h,C):x.appendChild(h),K=null,h;if(da)try{importScripts(d),b.completeLoad(c)}catch(l){b.onError(A("importscripts","importScripts failed for "+c+" at "+d,l,[c]))}};z&&M(document.getElementsByTagName("script"),function(b){x||(x=b.parentNode);if(J=b.getAttribute("data-main"))return q=J,t.baseUrl||(D=q.split("/"),q=D.pop(),fa=D.length?D.join("/")+"/":"./",t.baseUrl=fa),q=q.replace(ea,""),j.jsExtRegExp.test(q)&&(q=J),t.deps=t.deps?t.deps.concat(q):[q],!0});
|
||||
define=function(b,c,d){var h,j;"string"!==typeof b&&(d=c,c=b,b=null);I(c)||(d=c,c=null);!c&&H(d)&&(c=[],d.length&&(d.toString().replace(la,"").replace(ma,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(h=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),h=P;h&&(b||(b=h.getAttribute("data-requiremodule")),j=E[h.getAttribute("data-requirecontext")])}(j?j.defQueue:
|
||||
R).push([b,c,d])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(t)}})(this);
|
||||
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.8.js
generated
vendored
Normal file
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.8.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function H(b){return"[object Function]"===L.call(b)}function I(b){return"[object Array]"===L.call(b)}function y(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function M(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function s(b,c){return ga.call(b,c)}function l(b,c){return s(b,c)&&b[c]}function F(b,c){for(var d in b)if(s(b,d)&&c(b[d],d))break}function Q(b,c,d,h){c&&F(c,function(c,j){if(d||!s(b,j))h&&"string"!==typeof c?(b[j]||(b[j]={}),Q(b[j],
|
||||
c,d,h)):b[j]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function aa(b){throw b;}function ba(b){if(!b)return b;var c=Z;y(b.split("."),function(b){c=c[b]});return c}function A(b,c,d,h){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=h;d&&(c.originalError=d);return c}function ha(b){function c(a,f,b){var e,m,c,g,d,h,j,i=f&&f.split("/");e=i;var n=k.map,p=n&&n["*"];if(a&&"."===a.charAt(0))if(f){e=l(k.pkgs,f)?i=[f]:i.slice(0,i.length-
|
||||
1);f=a=e.concat(a.split("/"));for(e=0;f[e];e+=1)if(m=f[e],"."===m)f.splice(e,1),e-=1;else if(".."===m)if(1===e&&(".."===f[2]||".."===f[0]))break;else 0<e&&(f.splice(e-1,2),e-=2);e=l(k.pkgs,f=a[0]);a=a.join("/");e&&a===f+"/"+e.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&n&&(i||p)){f=a.split("/");for(e=f.length;0<e;e-=1){c=f.slice(0,e).join("/");if(i)for(m=i.length;0<m;m-=1)if(b=l(n,i.slice(0,m).join("/")))if(b=l(b,c)){g=b;d=e;break}if(g)break;!h&&(p&&l(p,c))&&(h=l(p,c),j=e)}!g&&
|
||||
h&&(g=h,d=j);g&&(f.splice(0,d,g),a=f.join("/"))}return a}function d(a){z&&y(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function h(a){var f=l(k.paths,a);if(f&&I(f)&&1<f.length)return d(a),f.shift(),i.require.undef(a),i.require([a]),!0}function $(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function n(a,
|
||||
f,b,e){var m,B,g=null,d=f?f.name:null,h=a,j=!0,k="";a||(j=!1,a="_@r"+(L+=1));a=$(a);g=a[0];a=a[1];g&&(g=c(g,d,e),B=l(r,g));a&&(g?k=B&&B.normalize?B.normalize(a,function(a){return c(a,d,e)}):c(a,d,e):(k=c(a,d,e),a=$(k),g=a[0],k=a[1],b=!0,m=i.nameToUrl(k)));b=g&&!B&&!b?"_unnormalized"+(M+=1):"";return{prefix:g,name:k,parentMap:f,unnormalized:!!b,url:m,originalName:h,isDefine:j,id:(g?g+"!"+k:k)+b}}function q(a){var f=a.id,b=l(p,f);b||(b=p[f]=new i.Module(a));return b}function t(a,f,b){var e=a.id,m=l(p,
|
||||
e);if(s(r,e)&&(!m||m.defineEmitComplete))"defined"===f&&b(r[e]);else if(m=q(a),m.error&&"error"===f)b(m.error);else m.on(f,b)}function v(a,f){var b=a.requireModules,e=!1;if(f)f(a);else if(y(b,function(f){if(f=l(p,f))f.error=a,f.events.error&&(e=!0,f.emit("error",a))}),!e)j.onError(a)}function w(){R.length&&(ia.apply(G,[G.length-1,0].concat(R)),R=[])}function x(a){delete p[a];delete T[a]}function E(a,f,b){var e=a.map.id;a.error?a.emit("error",a.error):(f[e]=!0,y(a.depMaps,function(e,c){var g=e.id,
|
||||
d=l(p,g);d&&(!a.depMatched[c]&&!b[g])&&(l(f,g)?(a.defineDep(c,r[g]),a.check()):E(d,f,b))}),b[e]=!0)}function C(){var a,f,b,e,m=(b=1E3*k.waitSeconds)&&i.startTime+b<(new Date).getTime(),c=[],g=[],j=!1,l=!0;if(!U){U=!0;F(T,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&m)h(f)?j=e=!0:(c.push(f),d(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(j=!0,!a.prefix))return l=!1});if(m&&c.length)return b=A("timeout","Load timeout for modules: "+c,null,c),b.contextName=
|
||||
i.contextName,v(b);l&&y(g,function(a){E(a,{},{})});if((!m||e)&&j)if((z||da)&&!V)V=setTimeout(function(){V=0;C()},50);U=!1}}function D(a){s(r,a[0])||q(n(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!W?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||W)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=
|
||||
G.shift();if(null===a[0])return v(A("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var U,X,i,N,V,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},T={},Y={},G=[],r={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){var b=
|
||||
l(k.pkgs,a.map.id);return(b?l(k.config,a.map.id+"/"+b.main):l(k.config,a.map.id))||{}},exports:r[a.map.id]}}};X=function(a){this.events=l(Y,a.id)||{};this.map=a;this.shim=l(k.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,b,c,e){e=e||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;
|
||||
this.ignore=e.ignore;e.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var e=this.exports,m=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(H(m)){if(this.events.error&&this.map.isDefine||j.onError!==aa)try{e=i.execCb(c,m,b,e)}catch(d){a=d}else e=i.execCb(c,m,b,e);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==
|
||||
this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",v(this.error=a)}else e=m;this.exports=e;if(this.map.isDefine&&!this.ignore&&(r[c]=e,j.onResourceLoad))j.onResourceLoad(i,this.map,this.depMaps);x(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=
|
||||
!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=n(a.prefix);this.depMaps.push(d);t(d,"defined",u(this,function(e){var m,d;d=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,h=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,g,!0)})||""),e=n(a.prefix+"!"+d,this.map.parentMap),t(e,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),
|
||||
d=l(p,e.id)){this.depMaps.push(e);if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else m=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),m.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];F(p,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&x(a.map.id)});v(a)}),m.fromText=u(this,function(e,c){var d=a.name,g=n(d),B=O;c&&(e=c);B&&(O=!1);q(g);s(k.config,b)&&(k.config[d]=k.config[b]);try{j.exec(e)}catch(ca){return v(A("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+ca,ca,[b]))}B&&(O=!0);this.depMaps.push(g);i.completeLoad(d);h([d],m)}),e.load(a.name,h,m,k)}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){T[this.map.id]=this;this.enabling=this.enabled=!0;y(this.depMaps,u(this,function(a,b){var c,e;if("string"===typeof a){a=n(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=l(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;t(a,"defined",u(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&t(a,"error",u(this,this.errback))}c=a.id;e=p[c];!s(N,c)&&(e&&!e.enabled)&&i.enable(a,this)}));F(this.pluginMaps,u(this,function(a){var b=l(p,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){y(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:p,defined:r,urlFetched:S,defQueue:G,Module:X,makeModuleMap:n,
|
||||
nextTick:j.nextTick,onError:v,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,e={paths:!0,config:!0,map:!0};F(a,function(a,b){e[b]?"map"===b?(k.map||(k.map={}),Q(k[b],a,!0,!0)):Q(k[b],a,!0):k[b]=a});a.shim&&(F(a.shim,function(a,b){I(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),k.shim=c);a.packages&&(y(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,
|
||||
location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ea,"")}}),k.pkgs=b);F(p,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=n(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Z,arguments));return b||a.exports&&ba(a.exports)}},makeRequire:function(a,f){function d(e,c,h){var g,k;f.enableBuildCallback&&(c&&H(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(H(c))return v(A("requireargs",
|
||||
"Invalid require call"),h);if(a&&s(N,e))return N[e](p[a.id]);if(j.get)return j.get(i,e,a,d);g=n(e,a,!1,!0);g=g.id;return!s(r,g)?v(A("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[g]}K();i.nextTick(function(){K();k=q(n(null,a));k.skipMap=f.skipMap;k.init(e,c,h,{enabled:!0});C()});return d}f=f||{};Q(d,{isBrowser:z,toUrl:function(b){var d,f=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==f&&(!("."===g||".."===g)||1<f))d=b.substring(f,b.length),b=
|
||||
b.substring(0,f);return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return s(r,n(b,a,!1,!0).id)},specified:function(b){b=n(b,a,!1,!0).id;return s(r,b)||s(p,b)}});a||(d.undef=function(b){w();var c=n(b,a,!0),f=l(p,b);delete r[b];delete S[c.url];delete Y[b];f&&(f.events.defined&&(Y[b]=f.events),x(b))});return d},enable:function(a){l(p,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,e=l(k.shim,a)||{},d=e.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===
|
||||
a&&(b=!0);D(c)}c=l(p,a);if(!b&&!s(r,a)&&c&&!c.inited){if(k.enforceDefine&&(!d||!ba(d)))return h(a)?void 0:v(A("nodefine","No define call for "+a,null,[a]));D([a,e.deps||[],e.exportsFn])}C()},nameToUrl:function(a,b,c){var e,d,h,g,i,n;if(j.jsExtRegExp.test(a))g=a+(b||"");else{e=k.paths;d=k.pkgs;g=a.split("/");for(i=g.length;0<i;i-=1)if(n=g.slice(0,i).join("/"),h=l(d,n),n=l(e,n)){I(n)&&(n=n[0]);g.splice(0,i,n);break}else if(h){a=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,i,a);break}g=g.join("/");
|
||||
g+=b||(/\?/.test(g)||c?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+k.urlArgs):g},load:function(a,b){j.load(i,a,b)},execCb:function(a,b,c,e){return b.apply(e,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=J(a),i.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!h(b.id))return v(A("scripterror","Script error for: "+b.id,a,[b.id]))}};i.require=i.makeRequire();
|
||||
return i}var j,w,x,C,J,D,P,K,q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=Array.prototype.splice,z=!!("undefined"!==typeof window&&navigator&&window.document),da=!z&&"undefined"!==typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,W="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),E={},t={},R=[],O=
|
||||
!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(H(requirejs))return;t=requirejs;requirejs=void 0}"undefined"!==typeof require&&!H(require)&&(t=require,require=void 0);j=requirejs=function(b,c,d,h){var q,n="_";!I(b)&&"string"!==typeof b&&(q=b,I(c)?(b=c,c=d,d=h):b=[]);q&&q.context&&(n=q.context);(h=l(E,n))||(h=E[n]=j.s.newContext(n));q&&h.configure(q);return h.require(b,c,d)};j.config=function(b){return j(b)};j.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,
|
||||
4)}:function(b){b()};require||(require=j);j.version="2.1.8";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=z;w=j.s={contexts:E,newContext:ha};j({});y(["toUrl","undef","defined","specified"],function(b){j[b]=function(){var c=E._;return c.require[b].apply(c,arguments)}});if(z&&(x=w.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))x=w.head=C.parentNode;j.onError=aa;j.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):
|
||||
document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};j.load=function(b,c,d){var h=b&&b.config||{};if(z)return h=j.createNode(h,c,d),h.setAttribute("data-requirecontext",b.contextName),h.setAttribute("data-requiremodule",c),h.attachEvent&&!(h.attachEvent.toString&&0>h.attachEvent.toString().indexOf("[native code"))&&!W?(O=!0,h.attachEvent("onreadystatechange",b.onScriptLoad)):(h.addEventListener("load",b.onScriptLoad,!1),h.addEventListener("error",
|
||||
b.onScriptError,!1)),h.src=d,K=h,C?x.insertBefore(h,C):x.appendChild(h),K=null,h;if(da)try{importScripts(d),b.completeLoad(c)}catch(l){b.onError(A("importscripts","importScripts failed for "+c+" at "+d,l,[c]))}};z&&M(document.getElementsByTagName("script"),function(b){x||(x=b.parentNode);if(J=b.getAttribute("data-main"))return q=J,t.baseUrl||(D=q.split("/"),q=D.pop(),fa=D.length?D.join("/")+"/":"./",t.baseUrl=fa),q=q.replace(ea,""),j.jsExtRegExp.test(q)&&(q=J),t.deps=t.deps?t.deps.concat(q):[q],!0});
|
||||
define=function(b,c,d){var h,j;"string"!==typeof b&&(d=c,c=b,b=null);I(c)||(d=c,c=null);!c&&H(d)&&(c=[],d.length&&(d.toString().replace(la,"").replace(ma,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(h=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),h=P;h&&(b||(b=h.getAttribute("data-requiremodule")),j=E[h.getAttribute("data-requirecontext")])}(j?j.defQueue:
|
||||
R).push([b,c,d])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(t)}})(this);
|
||||
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.9.js
generated
vendored
Normal file
36
ExACTRegressionScripts/node_modules/loglevel/vendor/grunt-template-jasmine-requirejs/vendor/require-2.1.9.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
RequireJS 2.1.9 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
|
||||
Available via the MIT or new BSD license.
|
||||
see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
var requirejs,require,define;
|
||||
(function(Z){function H(b){return"[object Function]"===L.call(b)}function I(b){return"[object Array]"===L.call(b)}function y(b,c){if(b){var e;for(e=0;e<b.length&&(!b[e]||!c(b[e],e,b));e+=1);}}function M(b,c){if(b){var e;for(e=b.length-1;-1<e&&(!b[e]||!c(b[e],e,b));e-=1);}}function t(b,c){return ga.call(b,c)}function l(b,c){return t(b,c)&&b[c]}function F(b,c){for(var e in b)if(t(b,e)&&c(b[e],e))break}function Q(b,c,e,h){c&&F(c,function(c,j){if(e||!t(b,j))h&&"string"!==typeof c?(b[j]||(b[j]={}),Q(b[j],
|
||||
c,e,h)):b[j]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function aa(b){throw b;}function ba(b){if(!b)return b;var c=Z;y(b.split("."),function(b){c=c[b]});return c}function A(b,c,e,h){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=h;e&&(c.originalError=e);return c}function ha(b){function c(a,f,b){var d,m,c,g,e,h,j,i=f&&f.split("/");d=i;var n=k.map,p=n&&n["*"];if(a&&"."===a.charAt(0))if(f){d=l(k.pkgs,f)?i=[f]:i.slice(0,i.length-
|
||||
1);f=a=d.concat(a.split("/"));for(d=0;f[d];d+=1)if(m=f[d],"."===m)f.splice(d,1),d-=1;else if(".."===m)if(1===d&&(".."===f[2]||".."===f[0]))break;else 0<d&&(f.splice(d-1,2),d-=2);d=l(k.pkgs,f=a[0]);a=a.join("/");d&&a===f+"/"+d.main&&(a=f)}else 0===a.indexOf("./")&&(a=a.substring(2));if(b&&n&&(i||p)){f=a.split("/");for(d=f.length;0<d;d-=1){c=f.slice(0,d).join("/");if(i)for(m=i.length;0<m;m-=1)if(b=l(n,i.slice(0,m).join("/")))if(b=l(b,c)){g=b;e=d;break}if(g)break;!h&&(p&&l(p,c))&&(h=l(p,c),j=d)}!g&&
|
||||
h&&(g=h,e=j);g&&(f.splice(0,e,g),a=f.join("/"))}return a}function e(a){z&&y(document.getElementsByTagName("script"),function(f){if(f.getAttribute("data-requiremodule")===a&&f.getAttribute("data-requirecontext")===i.contextName)return f.parentNode.removeChild(f),!0})}function h(a){var f=l(k.paths,a);if(f&&I(f)&&1<f.length)return f.shift(),i.require.undef(a),i.require([a]),!0}function $(a){var f,b=a?a.indexOf("!"):-1;-1<b&&(f=a.substring(0,b),a=a.substring(b+1,a.length));return[f,a]}function n(a,f,
|
||||
b,d){var m,B,g=null,e=f?f.name:null,h=a,j=!0,k="";a||(j=!1,a="_@r"+(L+=1));a=$(a);g=a[0];a=a[1];g&&(g=c(g,e,d),B=l(r,g));a&&(g?k=B&&B.normalize?B.normalize(a,function(a){return c(a,e,d)}):c(a,e,d):(k=c(a,e,d),a=$(k),g=a[0],k=a[1],b=!0,m=i.nameToUrl(k)));b=g&&!B&&!b?"_unnormalized"+(M+=1):"";return{prefix:g,name:k,parentMap:f,unnormalized:!!b,url:m,originalName:h,isDefine:j,id:(g?g+"!"+k:k)+b}}function q(a){var f=a.id,b=l(p,f);b||(b=p[f]=new i.Module(a));return b}function s(a,f,b){var d=a.id,m=l(p,
|
||||
d);if(t(r,d)&&(!m||m.defineEmitComplete))"defined"===f&&b(r[d]);else if(m=q(a),m.error&&"error"===f)b(m.error);else m.on(f,b)}function v(a,f){var b=a.requireModules,d=!1;if(f)f(a);else if(y(b,function(f){if(f=l(p,f))f.error=a,f.events.error&&(d=!0,f.emit("error",a))}),!d)j.onError(a)}function w(){R.length&&(ia.apply(G,[G.length-1,0].concat(R)),R=[])}function x(a){delete p[a];delete T[a]}function E(a,f,b){var d=a.map.id;a.error?a.emit("error",a.error):(f[d]=!0,y(a.depMaps,function(d,c){var g=d.id,
|
||||
e=l(p,g);e&&(!a.depMatched[c]&&!b[g])&&(l(f,g)?(a.defineDep(c,r[g]),a.check()):E(e,f,b))}),b[d]=!0)}function C(){var a,f,b,d,m=(b=1E3*k.waitSeconds)&&i.startTime+b<(new Date).getTime(),c=[],g=[],j=!1,l=!0;if(!U){U=!0;F(T,function(b){a=b.map;f=a.id;if(b.enabled&&(a.isDefine||g.push(b),!b.error))if(!b.inited&&m)h(f)?j=d=!0:(c.push(f),e(f));else if(!b.inited&&(b.fetched&&a.isDefine)&&(j=!0,!a.prefix))return l=!1});if(m&&c.length)return b=A("timeout","Load timeout for modules: "+c,null,c),b.contextName=
|
||||
i.contextName,v(b);l&&y(g,function(a){E(a,{},{})});if((!m||d)&&j)if((z||da)&&!V)V=setTimeout(function(){V=0;C()},50);U=!1}}function D(a){t(r,a[0])||q(n(a[0],null,!0)).init(a[1],a[2])}function J(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!W?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||W)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function K(){var a;for(w();G.length;){a=
|
||||
G.shift();if(null===a[0])return v(A("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));D(a)}}var U,X,i,N,V,k={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},p={},T={},Y={},G=[],r={},S={},L=1,M=1;N={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){var b=
|
||||
l(k.pkgs,a.map.id);return(b?l(k.config,a.map.id+"/"+b.main):l(k.config,a.map.id))||{}},exports:r[a.map.id]}}};X=function(a){this.events=l(Y,a.id)||{};this.map=a;this.shim=l(k.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};X.prototype={init:function(a,b,c,d){d=d||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback=c;this.inited=!0;
|
||||
this.ignore=d.ignore;d.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a=
|
||||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var d=this.exports,m=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(H(m)){if(this.events.error&&this.map.isDefine||j.onError!==aa)try{d=i.execCb(c,m,b,d)}catch(e){a=e}else d=i.execCb(c,m,b,d);this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==
|
||||
this.exports?d=b.exports:void 0===d&&this.usingExports&&(d=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",v(this.error=a)}else d=m;this.exports=d;if(this.map.isDefine&&!this.ignore&&(r[c]=d,j.onResourceLoad))j.onResourceLoad(i,this.map,this.depMaps);x(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=
|
||||
!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,e=n(a.prefix);this.depMaps.push(e);s(e,"defined",u(this,function(d){var m,e;e=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,h=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(d.normalize&&(e=d.normalize(e,function(a){return c(a,g,!0)})||""),d=n(a.prefix+"!"+e,this.map.parentMap),s(d,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),
|
||||
e=l(p,d.id)){this.depMaps.push(d);if(this.events.error)e.on("error",u(this,function(a){this.emit("error",a)}));e.enable()}}else m=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),m.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];F(p,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&x(a.map.id)});v(a)}),m.fromText=u(this,function(d,c){var e=a.name,g=n(e),B=O;c&&(d=c);B&&(O=!1);q(g);t(k.config,b)&&(k.config[e]=k.config[b]);try{j.exec(d)}catch(ca){return v(A("fromtexteval",
|
||||
"fromText eval for "+b+" failed: "+ca,ca,[b]))}B&&(O=!0);this.depMaps.push(g);i.completeLoad(e);h([e],m)}),d.load(a.name,h,m,k)}));i.enable(e,this);this.pluginMaps[e.id]=e},enable:function(){T[this.map.id]=this;this.enabling=this.enabled=!0;y(this.depMaps,u(this,function(a,b){var c,d;if("string"===typeof a){a=n(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=l(N,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;s(a,"defined",u(this,function(a){this.defineDep(b,
|
||||
a);this.check()}));this.errback&&s(a,"error",u(this,this.errback))}c=a.id;d=p[c];!t(N,c)&&(d&&!d.enabled)&&i.enable(a,this)}));F(this.pluginMaps,u(this,function(a){var b=l(p,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){y(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:k,contextName:b,registry:p,defined:r,urlFetched:S,defQueue:G,Module:X,makeModuleMap:n,
|
||||
nextTick:j.nextTick,onError:v,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=k.pkgs,c=k.shim,d={paths:!0,config:!0,map:!0};F(a,function(a,b){d[b]?"map"===b?(k.map||(k.map={}),Q(k[b],a,!0,!0)):Q(k[b],a,!0):k[b]=a});a.shim&&(F(a.shim,function(a,b){I(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a);c[b]=a}),k.shim=c);a.packages&&(y(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,
|
||||
location:a.location||a.name,main:(a.main||"main").replace(ja,"").replace(ea,"")}}),k.pkgs=b);F(p,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=n(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(Z,arguments));return b||a.exports&&ba(a.exports)}},makeRequire:function(a,f){function h(d,c,e){var g,k;f.enableBuildCallback&&(c&&H(c))&&(c.__requireJsBuild=!0);if("string"===typeof d){if(H(c))return v(A("requireargs",
|
||||
"Invalid require call"),e);if(a&&t(N,d))return N[d](p[a.id]);if(j.get)return j.get(i,d,a,h);g=n(d,a,!1,!0);g=g.id;return!t(r,g)?v(A("notloaded",'Module name "'+g+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[g]}K();i.nextTick(function(){K();k=q(n(null,a));k.skipMap=f.skipMap;k.init(d,c,e,{enabled:!0});C()});return h}f=f||{};Q(h,{isBrowser:z,toUrl:function(b){var f,e=b.lastIndexOf("."),g=b.split("/")[0];if(-1!==e&&(!("."===g||".."===g)||1<e))f=b.substring(e,b.length),b=
|
||||
b.substring(0,e);return i.nameToUrl(c(b,a&&a.id,!0),f,!0)},defined:function(b){return t(r,n(b,a,!1,!0).id)},specified:function(b){b=n(b,a,!1,!0).id;return t(r,b)||t(p,b)}});a||(h.undef=function(b){w();var c=n(b,a,!0),f=l(p,b);e(b);delete r[b];delete S[c.url];delete Y[b];f&&(f.events.defined&&(Y[b]=f.events),x(b))});return h},enable:function(a){l(p,a.id)&&q(a).enable()},completeLoad:function(a){var b,c,d=l(k.shim,a)||{},e=d.exports;for(w();G.length;){c=G.shift();if(null===c[0]){c[0]=a;if(b)break;b=
|
||||
!0}else c[0]===a&&(b=!0);D(c)}c=l(p,a);if(!b&&!t(r,a)&&c&&!c.inited){if(k.enforceDefine&&(!e||!ba(e)))return h(a)?void 0:v(A("nodefine","No define call for "+a,null,[a]));D([a,d.deps||[],d.exportsFn])}C()},nameToUrl:function(a,b,c){var d,e,h,g,i,n;if(j.jsExtRegExp.test(a))g=a+(b||"");else{d=k.paths;e=k.pkgs;g=a.split("/");for(i=g.length;0<i;i-=1)if(n=g.slice(0,i).join("/"),h=l(e,n),n=l(d,n)){I(n)&&(n=n[0]);g.splice(0,i,n);break}else if(h){a=a===h.name?h.location+"/"+h.main:h.location;g.splice(0,i,
|
||||
a);break}g=g.join("/");g+=b||(/^data\:|\?/.test(g)||c?"":".js");g=("/"===g.charAt(0)||g.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+g}return k.urlArgs?g+((-1===g.indexOf("?")?"?":"&")+k.urlArgs):g},load:function(a,b){j.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ka.test((a.currentTarget||a.srcElement).readyState))P=null,a=J(a),i.completeLoad(a.id)},onScriptError:function(a){var b=J(a);if(!h(b.id))return v(A("scripterror","Script error for: "+b.id,
|
||||
a,[b.id]))}};i.require=i.makeRequire();return i}var j,w,x,C,J,D,P,K,q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),da=!z&&"undefined"!==typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,W="undefined"!==typeof opera&&
|
||||
"[object Opera]"===opera.toString(),E={},s={},R=[],O=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(H(requirejs))return;s=requirejs;requirejs=void 0}"undefined"!==typeof require&&!H(require)&&(s=require,require=void 0);j=requirejs=function(b,c,e,h){var q,n="_";!I(b)&&"string"!==typeof b&&(q=b,I(c)?(b=c,c=e,e=h):b=[]);q&&q.context&&(n=q.context);(h=l(E,n))||(h=E[n]=j.s.newContext(n));q&&h.configure(q);return h.require(b,c,e)};j.config=function(b){return j(b)};j.nextTick="undefined"!==
|
||||
typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=j);j.version="2.1.9";j.jsExtRegExp=/^\/|:|\?|\.js$/;j.isBrowser=z;w=j.s={contexts:E,newContext:ha};j({});y(["toUrl","undef","defined","specified"],function(b){j[b]=function(){var c=E._;return c.require[b].apply(c,arguments)}});if(z&&(x=w.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0]))x=w.head=C.parentNode;j.onError=aa;j.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml",
|
||||
"html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};j.load=function(b,c,e){var h=b&&b.config||{};if(z)return h=j.createNode(h,c,e),h.setAttribute("data-requirecontext",b.contextName),h.setAttribute("data-requiremodule",c),h.attachEvent&&!(h.attachEvent.toString&&0>h.attachEvent.toString().indexOf("[native code"))&&!W?(O=!0,h.attachEvent("onreadystatechange",b.onScriptLoad)):(h.addEventListener("load",b.onScriptLoad,!1),h.addEventListener("error",
|
||||
b.onScriptError,!1)),h.src=e,K=h,C?x.insertBefore(h,C):x.appendChild(h),K=null,h;if(da)try{importScripts(e),b.completeLoad(c)}catch(l){b.onError(A("importscripts","importScripts failed for "+c+" at "+e,l,[c]))}};z&&!s.skipDataMain&&M(document.getElementsByTagName("script"),function(b){x||(x=b.parentNode);if(J=b.getAttribute("data-main"))return q=J,s.baseUrl||(D=q.split("/"),q=D.pop(),fa=D.length?D.join("/")+"/":"./",s.baseUrl=fa),q=q.replace(ea,""),j.jsExtRegExp.test(q)&&(q=J),s.deps=s.deps?s.deps.concat(q):
|
||||
[q],!0});define=function(b,c,e){var h,j;"string"!==typeof b&&(e=c,c=b,b=null);I(c)||(e=c,c=null);!c&&H(e)&&(c=[],e.length&&(e.toString().replace(la,"").replace(ma,function(b,e){c.push(e)}),c=(1===e.length?["require"]:["require","exports","module"]).concat(c)));if(O){if(!(h=K))P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState)return P=b}),h=P;h&&(b||(b=h.getAttribute("data-requiremodule")),j=E[h.getAttribute("data-requirecontext")])}(j?
|
||||
j.defQueue:R).push([b,c,e])};define.amd={jQuery:!0};j.exec=function(b){return eval(b)};j(s)}})(this);
|
||||
Reference in New Issue
Block a user