forked from enviPath/enviPy
Current Dev State
This commit is contained in:
7
static/js/ketcher2/node_modules/deep-diff/LICENSE
generated
vendored
Normal file
7
static/js/ketcher2/node_modules/deep-diff/LICENSE
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
Copyright (c) 2011-2013 Phillip Clark
|
||||
|
||||
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.
|
||||
268
static/js/ketcher2/node_modules/deep-diff/Readme.md
generated
vendored
Normal file
268
static/js/ketcher2/node_modules/deep-diff/Readme.md
generated
vendored
Normal file
@ -0,0 +1,268 @@
|
||||
# deep-diff [](https://travis-ci.org/flitbit/diff)
|
||||
[](https://nodei.co/npm/deep-diff/)
|
||||
|
||||
**deep-diff** is a javascript/node.js module providing utility functions for determining the structural differences between objects and includes some utilities for applying differences across objects.
|
||||
|
||||
## Features
|
||||
|
||||
* Get the structural differences between two objects.
|
||||
* Observe the structural differences between two objects.
|
||||
* When structural differences represent change, apply change from one object to another.
|
||||
* When structural differences represent change, selectively apply change from one object to another.
|
||||
|
||||
## ChangeLog
|
||||
|
||||
`0.3.8` - 2017-05-03
|
||||
* reconciled recently introduced difference between `index.es.js` and `index.js`
|
||||
* improved npm commands for more reliable contributions
|
||||
* added a few notes to README regarding contributing.
|
||||
|
||||
`0.3.7` - 2017-05-01
|
||||
* fixed issue #98 by merging @sberan's pull request #99 — better handling of property with `undefined` value existing on either operand. Unit tests supplied.
|
||||
|
||||
`0.3.6` - 2017-04-25 — Fixed, closed lingering issues:
|
||||
* fixed #74 — comparing objects with longer cycles
|
||||
* fixed #70 — was not properly detecting a deletion when a property on the operand (lhs) had a value of `undefined` and was _undefined_ on the comparand (rhs). :o).
|
||||
* WARNING! [Still broken when importing in Typescript](https://github.com/flitbit/diff/issues/97).
|
||||
|
||||
`0.3.5` - 2017-04-23 — Rolled up recent fixes; patches:
|
||||
* @stevemao — #79, #80: now testing latest version of node4
|
||||
* @mortonfox — #85: referencing mocha's new home
|
||||
* @tdebarochez — #90: fixed error when .toString not a function
|
||||
* @thiamsantos — #92, #93: changed module system for improved es2015 modules. WARNING! [This PR broke importing `deep-diff` in Typescript as reported by @kgentes in #97](https://github.com/flitbit/diff/issues/97)
|
||||
|
||||
`0.3.4` - Typescript users, reference this version until #97 is fixed!
|
||||
|
||||
`0.3.3` - Thanks @SimenB: enabled npm script for release (alternate to the Makefile). Also linting as part of `npm test`. Thanks @joeldenning: Fixed issue #35; diffs of top level arrays now working.
|
||||
|
||||
`0.3.3` - Thanks @SimenB: enabled npm script for release (alternate to the Makefile). Also linting as part of `npm test`. Thanks @joeldenning: Fixed issue #35; diffs of top level arrays now working.
|
||||
|
||||
`0.3.2` - Resolves #46; support more robust filters by including `lhs` and `rhs` in the filter callback. By @Orlando80
|
||||
|
||||
`0.3.1` - Better type checking by @Drinks, UMD wrapper by @SimenB. Now certifies against nodejs 12 and iojs (Thanks @SimenB).
|
||||
|
||||
`0.2.0` - [Fixes Bug #17](https://github.com/flitbit/diff/issues/17), [Fixes Bug #19](https://github.com/flitbit/diff/issues/19), [Enhancement #21](https://github.com/flitbit/diff/issues/21) Applying changes that are properly structured can now be applied as a change (no longer requires typeof Diff) - supports differences being applied after round-trip serialization to JSON format. Prefilter now reports the path of all changes - it was not showing a path for arrays and anything in the structure below (reported by @ravishvt).
|
||||
|
||||
*Breaking Change* – The structure of change records for differences below an array element has changed. Array indexes are now reported as numeric elements in the `path` if the changes is merely edited (an `E` kind). Changes of kind `A` (array) are only reported for changes in the terminal array itself and will have a nested `N` (new) item or a nested `D` (deleted) item.
|
||||
|
||||
`0.1.7` - [Enhancement #11](https://github.com/flitbit/diff/issues/11) Added the ability to filter properties that should not be analyzed while calculating differences. Makes `deep-diff` more usable with frameworks that attach housekeeping properties to existing objects. AngularJS does this, and the new filter ability should ease working with it.
|
||||
|
||||
`0.1.6` - Changed objects within nested arrays can now be applied. They were previously recording the changes appropriately but `applyDiff` would error. Comparison of `NaN` works more sanely - comparison to number shows difference, comparison to another `Nan` does not.
|
||||
|
||||
## Installation
|
||||
```
|
||||
npm install deep-diff
|
||||
```
|
||||
|
||||
For the browser, you can install with [bower](http://bower.io/):
|
||||
|
||||
```
|
||||
bower install deep-diff
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
||||
Tests use [mocha](http://mochajs.org/) and [expect.js](https://github.com/LearnBoost/expect.js/), so if you clone the [github repository](https://github.com/flitbit/json-ptr) you'll need to run:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
... followed by ...
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
... or ...
|
||||
|
||||
```bash
|
||||
mocha -R spec
|
||||
```
|
||||
|
||||
### Importing
|
||||
|
||||
**nodejs**
|
||||
```javascript
|
||||
var deep = require('deep-diff')
|
||||
```
|
||||
|
||||
**browser**
|
||||
```html
|
||||
<script src="deep-diff-0.3.1.min.js"></script>
|
||||
```
|
||||
> Minified, browser release of the current version of the module is under the `releases` folder.
|
||||
> In a browser, `deep-diff` defines a global variable `DeepDiff`. If there is a conflict in the global namespace you can restore the conflicting definition and assign `deep-diff` to another variable like this: `var deep = DeepDiff.noConflict();`.
|
||||
|
||||
## Simple Examples
|
||||
|
||||
In order to describe differences, change revolves around an `origin` object. For consistency, the `origin` object is always the operand on the `left-hand-side` of operations. The `comparand`, which may contain changes, is always on the `right-hand-side` of operations.
|
||||
|
||||
``` javascript
|
||||
var diff = require('deep-diff').diff;
|
||||
|
||||
var lhs = {
|
||||
name: 'my object',
|
||||
description: 'it\'s an object!',
|
||||
details: {
|
||||
it: 'has',
|
||||
an: 'array',
|
||||
with: ['a', 'few', 'elements']
|
||||
}
|
||||
};
|
||||
|
||||
var rhs = {
|
||||
name: 'updated object',
|
||||
description: 'it\'s an object!',
|
||||
details: {
|
||||
it: 'has',
|
||||
an: 'array',
|
||||
with: ['a', 'few', 'more', 'elements', { than: 'before' }]
|
||||
}
|
||||
};
|
||||
|
||||
var differences = diff(lhs, rhs);
|
||||
```
|
||||
*up to v 0.1.7* The code snippet above would result in the following structure describing the differences:
|
||||
``` javascript
|
||||
// Versions < 0.2.0
|
||||
[ { kind: 'E',
|
||||
path: [ 'name' ],
|
||||
lhs: 'my object',
|
||||
rhs: 'updated object' },
|
||||
{ kind: 'A',
|
||||
path: [ 'details', 'with' ],
|
||||
index: 2,
|
||||
item: { kind: 'E', path: [], lhs: 'elements', rhs: 'more' } },
|
||||
{ kind: 'A',
|
||||
path: [ 'details', 'with' ],
|
||||
index: 3,
|
||||
item: { kind: 'N', rhs: 'elements' } },
|
||||
{ kind: 'A',
|
||||
path: [ 'details', 'with' ],
|
||||
index: 4,
|
||||
item: { kind: 'N', rhs: { than: 'before' } } } ]
|
||||
```
|
||||
|
||||
*v 0.2.0 and above* The code snippet above would result in the following structure describing the differences:
|
||||
``` javascript
|
||||
[ { kind: 'E',
|
||||
path: [ 'name' ],
|
||||
lhs: 'my object',
|
||||
rhs: 'updated object' },
|
||||
{ kind: 'E',
|
||||
path: [ 'details', 'with', 2 ],
|
||||
lhs: 'elements',
|
||||
rhs: 'more' },
|
||||
{ kind: 'A',
|
||||
path: [ 'details', 'with' ],
|
||||
index: 3,
|
||||
item: { kind: 'N', rhs: 'elements' } },
|
||||
{ kind: 'A',
|
||||
path: [ 'details', 'with' ],
|
||||
index: 4,
|
||||
item: { kind: 'N', rhs: { than: 'before' } } } ]
|
||||
```
|
||||
|
||||
### Differences
|
||||
|
||||
Differences are reported as one or more change records. Change records have the following structure:
|
||||
|
||||
* `kind` - indicates the kind of change; will be one of the following:
|
||||
* `N` - indicates a newly added property/element
|
||||
* `D` - indicates a property/element was deleted
|
||||
* `E` - indicates a property/element was edited
|
||||
* `A` - indicates a change occurred within an array
|
||||
* `path` - the property path (from the left-hand-side root)
|
||||
* `lhs` - the value on the left-hand-side of the comparison (undefined if kind === 'N')
|
||||
* `rhs` - the value on the right-hand-side of the comparison (undefined if kind === 'D')
|
||||
* `index` - when kind === 'A', indicates the array index where the change occurred
|
||||
* `item` - when kind === 'A', contains a nested change record indicating the change that occurred at the array index
|
||||
|
||||
Change records are generated for all structural differences between `origin` and `comparand`. The methods only consider an object's own properties and array elements; those inherited from an object's prototype chain are not considered.
|
||||
|
||||
Changes to arrays are recorded simplistically. We care most about the shape of the structure; therefore we don't take the time to determine if an object moved from one slot in the array to another. Instead, we only record the structural
|
||||
differences. If the structural differences are applied from the `comparand` to the `origin` then the two objects will compare as "deep equal" using most `isEqual` implementations such as found in [lodash](https://github.com/bestiejs/lodash) or [underscore](http://underscorejs.org/).
|
||||
|
||||
### Changes
|
||||
|
||||
When two objects differ, you can observe the differences as they are calculated and selectively apply those changes to the origin object (left-hand-side).
|
||||
``` javascript
|
||||
var observableDiff = require('deep-diff').observableDiff,
|
||||
applyChange = require('deep-diff').applyChange;
|
||||
|
||||
var lhs = {
|
||||
name: 'my object',
|
||||
description: 'it\'s an object!',
|
||||
details: {
|
||||
it: 'has',
|
||||
an: 'array',
|
||||
with: ['a', 'few', 'elements']
|
||||
}
|
||||
};
|
||||
|
||||
var rhs = {
|
||||
name: 'updated object',
|
||||
description: 'it\'s an object!',
|
||||
details: {
|
||||
it: 'has',
|
||||
an: 'array',
|
||||
with: ['a', 'few', 'more', 'elements', { than: 'before' }]
|
||||
}
|
||||
};
|
||||
|
||||
observableDiff(lhs, rhs, function (d) {
|
||||
// Apply all changes except those to the 'name' property...
|
||||
if (d.path.length !== 1 || d.path.join('.') !== 'name') {
|
||||
applyChange(lhs, rhs, d);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## API Documentation
|
||||
|
||||
A standard import of `var diff = require('deep-diff')` is assumed in all of the code examples. The import results in an object having the following public properties:
|
||||
|
||||
* `diff(lhs, rhs, prefilter, acc)` — calculates the differences between two objects, optionally prefiltering elements for comparison, and optionally using the specified accumulator.
|
||||
* `observableDiff(lhs, rhs, observer, prefilter)` — calculates the differences between two objects and reports each to an observer function, optionally, prefiltering elements for comparison.
|
||||
* `applyDiff(target, source, filter)` — applies any structural differences from a source object to a target object, optionally filtering each difference.
|
||||
* `applyChange(target, source, change)` — applies a single change record to a target object. NOTE: `source` is unused and may be removed.
|
||||
* `revertChange(target, source, change)` reverts a single change record to a target object. NOTE: `source` is unused and may be removed.
|
||||
|
||||
### `diff`
|
||||
|
||||
The `diff` function calculates the difference between two objects.
|
||||
|
||||
**Arguments**
|
||||
|
||||
+ `lhs` - the left-hand operand; the origin object.
|
||||
+ `rhs` - the right-hand operand; the object being compared structurally with the origin object.
|
||||
+ `prefilter` - an optional function that determines whether difference analysis should continue down the object graph.
|
||||
+ `acc` - an optional accumulator/array (requirement is that it have a `push` function). Each difference is pushed to the specified accumulator.
|
||||
|
||||
#### Pre-filtering Object Properties
|
||||
|
||||
The `prefilter`'s signature should be `function(path, key)` and it should return a truthy value for any `path`-`key` combination that should be filtered. If filtered, the difference analysis does no further analysis of on the identified object-property path.
|
||||
|
||||
# Compatibility
|
||||
|
||||
Currently testing on Travis CI against:
|
||||
|
||||
+ nodejs `6`
|
||||
+ nodejs `5`
|
||||
+ nodejs `4`
|
||||
+ nodejs `0.12`
|
||||
+ nodejs `0.11`
|
||||
+ nodejs `0.10`
|
||||
|
||||
# Contributing
|
||||
|
||||
When contributing, keep in mind that it is an objective of `deep-diff` to have no package dependencies. This may change in the future, but for now, no-dependencies.
|
||||
|
||||
As of release 0.3.5, all edits/changes should be made to `index.es.js`. You must run the unit tests before submitting your PR: `npm test`. Hopefully your PR includes additional unit tests to illustrate your change/modification!
|
||||
|
||||
When you run `npm test`, linting will be performed and `index.js` will be built from `index.es.js`. Any linting errors will fail the tests... this includes code formatting.
|
||||
|
||||
This module still uses `jshint` but the plan is to switch to `eslint` very soon as I have done in several of my other modules.
|
||||
|
||||
**Thanks to all those who have contributed so far!**
|
||||
406
static/js/ketcher2/node_modules/deep-diff/index.es.js
generated
vendored
Normal file
406
static/js/ketcher2/node_modules/deep-diff/index.es.js
generated
vendored
Normal file
@ -0,0 +1,406 @@
|
||||
'use strict';
|
||||
var $scope, conflict, conflictResolution = [];
|
||||
if (typeof global === 'object' && global) {
|
||||
$scope = global;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
$scope = window;
|
||||
} else {
|
||||
$scope = {};
|
||||
}
|
||||
conflict = $scope.DeepDiff;
|
||||
if (conflict) {
|
||||
conflictResolution.push(
|
||||
function() {
|
||||
if ('undefined' !== typeof conflict && $scope.DeepDiff === accumulateDiff) {
|
||||
$scope.DeepDiff = conflict;
|
||||
conflict = undefined;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// nodejs compatible on server side and in the browser.
|
||||
function inherits(ctor, superCtor) {
|
||||
ctor.super_ = superCtor;
|
||||
ctor.prototype = Object.create(superCtor.prototype, {
|
||||
constructor: {
|
||||
value: ctor,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function Diff(kind, path) {
|
||||
Object.defineProperty(this, 'kind', {
|
||||
value: kind,
|
||||
enumerable: true
|
||||
});
|
||||
if (path && path.length) {
|
||||
Object.defineProperty(this, 'path', {
|
||||
value: path,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function DiffEdit(path, origin, value) {
|
||||
DiffEdit.super_.call(this, 'E', path);
|
||||
Object.defineProperty(this, 'lhs', {
|
||||
value: origin,
|
||||
enumerable: true
|
||||
});
|
||||
Object.defineProperty(this, 'rhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffEdit, Diff);
|
||||
|
||||
function DiffNew(path, value) {
|
||||
DiffNew.super_.call(this, 'N', path);
|
||||
Object.defineProperty(this, 'rhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffNew, Diff);
|
||||
|
||||
function DiffDeleted(path, value) {
|
||||
DiffDeleted.super_.call(this, 'D', path);
|
||||
Object.defineProperty(this, 'lhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffDeleted, Diff);
|
||||
|
||||
function DiffArray(path, index, item) {
|
||||
DiffArray.super_.call(this, 'A', path);
|
||||
Object.defineProperty(this, 'index', {
|
||||
value: index,
|
||||
enumerable: true
|
||||
});
|
||||
Object.defineProperty(this, 'item', {
|
||||
value: item,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffArray, Diff);
|
||||
|
||||
function arrayRemove(arr, from, to) {
|
||||
var rest = arr.slice((to || from) + 1 || arr.length);
|
||||
arr.length = from < 0 ? arr.length + from : from;
|
||||
arr.push.apply(arr, rest);
|
||||
return arr;
|
||||
}
|
||||
|
||||
function realTypeOf(subject) {
|
||||
var type = typeof subject;
|
||||
if (type !== 'object') {
|
||||
return type;
|
||||
}
|
||||
|
||||
if (subject === Math) {
|
||||
return 'math';
|
||||
} else if (subject === null) {
|
||||
return 'null';
|
||||
} else if (Array.isArray(subject)) {
|
||||
return 'array';
|
||||
} else if (Object.prototype.toString.call(subject) === '[object Date]') {
|
||||
return 'date';
|
||||
} else if (typeof subject.toString === 'function' && /^\/.*\//.test(subject.toString())) {
|
||||
return 'regexp';
|
||||
}
|
||||
return 'object';
|
||||
}
|
||||
|
||||
function deepDiff(lhs, rhs, changes, prefilter, path, key, stack) {
|
||||
path = path || [];
|
||||
stack = stack || [];
|
||||
var currentPath = path.slice(0);
|
||||
if (typeof key !== 'undefined') {
|
||||
if (prefilter) {
|
||||
if (typeof(prefilter) === 'function' && prefilter(currentPath, key)) {
|
||||
return; } else if (typeof(prefilter) === 'object') {
|
||||
if (prefilter.prefilter && prefilter.prefilter(currentPath, key)) {
|
||||
return; }
|
||||
if (prefilter.normalize) {
|
||||
var alt = prefilter.normalize(currentPath, key, lhs, rhs);
|
||||
if (alt) {
|
||||
lhs = alt[0];
|
||||
rhs = alt[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
currentPath.push(key);
|
||||
}
|
||||
|
||||
// Use string comparison for regexes
|
||||
if (realTypeOf(lhs) === 'regexp' && realTypeOf(rhs) === 'regexp') {
|
||||
lhs = lhs.toString();
|
||||
rhs = rhs.toString();
|
||||
}
|
||||
|
||||
var ltype = typeof lhs;
|
||||
var rtype = typeof rhs;
|
||||
|
||||
var ldefined = ltype !== 'undefined' || (stack && stack[stack.length - 1].lhs && stack[stack.length - 1].lhs.hasOwnProperty(key));
|
||||
var rdefined = rtype !== 'undefined' || (stack && stack[stack.length - 1].rhs && stack[stack.length - 1].rhs.hasOwnProperty(key));
|
||||
|
||||
if (!ldefined && rdefined) {
|
||||
changes(new DiffNew(currentPath, rhs));
|
||||
} else if (!rdefined && ldefined) {
|
||||
changes(new DiffDeleted(currentPath, lhs));
|
||||
} else if (realTypeOf(lhs) !== realTypeOf(rhs)) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
} else if (realTypeOf(lhs) === 'date' && (lhs - rhs) !== 0) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
} else if (ltype === 'object' && lhs !== null && rhs !== null) {
|
||||
if (!stack.filter(function(x) {
|
||||
return x.lhs === lhs; }).length) {
|
||||
stack.push({ lhs: lhs, rhs: rhs });
|
||||
if (Array.isArray(lhs)) {
|
||||
var i, len = lhs.length;
|
||||
for (i = 0; i < lhs.length; i++) {
|
||||
if (i >= rhs.length) {
|
||||
changes(new DiffArray(currentPath, i, new DiffDeleted(undefined, lhs[i])));
|
||||
} else {
|
||||
deepDiff(lhs[i], rhs[i], changes, prefilter, currentPath, i, stack);
|
||||
}
|
||||
}
|
||||
while (i < rhs.length) {
|
||||
changes(new DiffArray(currentPath, i, new DiffNew(undefined, rhs[i++])));
|
||||
}
|
||||
} else {
|
||||
var akeys = Object.keys(lhs);
|
||||
var pkeys = Object.keys(rhs);
|
||||
akeys.forEach(function(k, i) {
|
||||
var other = pkeys.indexOf(k);
|
||||
if (other >= 0) {
|
||||
deepDiff(lhs[k], rhs[k], changes, prefilter, currentPath, k, stack);
|
||||
pkeys = arrayRemove(pkeys, other);
|
||||
} else {
|
||||
deepDiff(lhs[k], undefined, changes, prefilter, currentPath, k, stack);
|
||||
}
|
||||
});
|
||||
pkeys.forEach(function(k) {
|
||||
deepDiff(undefined, rhs[k], changes, prefilter, currentPath, k, stack);
|
||||
});
|
||||
}
|
||||
stack.length = stack.length - 1;
|
||||
} else if (lhs !== rhs) {
|
||||
// lhs is contains a cycle at this element and it differs from rhs
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
}
|
||||
} else if (lhs !== rhs) {
|
||||
if (!(ltype === 'number' && isNaN(lhs) && isNaN(rhs))) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function accumulateDiff(lhs, rhs, prefilter, accum) {
|
||||
accum = accum || [];
|
||||
deepDiff(lhs, rhs,
|
||||
function(diff) {
|
||||
if (diff) {
|
||||
accum.push(diff);
|
||||
}
|
||||
},
|
||||
prefilter);
|
||||
return (accum.length) ? accum : undefined;
|
||||
}
|
||||
|
||||
function applyArrayChange(arr, index, change) {
|
||||
if (change.path && change.path.length) {
|
||||
var it = arr[index],
|
||||
i, u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
it[change.path[i]] = change.rhs;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(arr[index], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
arr = arrayRemove(arr, index);
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
arr[index] = change.rhs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
function applyChange(target, source, change) {
|
||||
if (target && source && change && change.kind) {
|
||||
var it = target,
|
||||
i = -1,
|
||||
last = change.path ? change.path.length - 1 : 0;
|
||||
while (++i < last) {
|
||||
if (typeof it[change.path[i]] === 'undefined') {
|
||||
it[change.path[i]] = (typeof change.path[i] === 'number') ? [] : {};
|
||||
}
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(change.path ? it[change.path[i]] : it, change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
it[change.path[i]] = change.rhs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function revertArrayChange(arr, index, change) {
|
||||
if (change.path && change.path.length) {
|
||||
// the structure of the object at the index has changed...
|
||||
var it = arr[index],
|
||||
i, u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
revertArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
// the array item is different...
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
revertArrayChange(arr[index], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
arr[index] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
arr[index] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
arr = arrayRemove(arr, index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
function revertChange(target, source, change) {
|
||||
if (target && source && change && change.kind) {
|
||||
var it = target,
|
||||
i, u;
|
||||
u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
if (typeof it[change.path[i]] === 'undefined') {
|
||||
it[change.path[i]] = {};
|
||||
}
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
// Array was modified...
|
||||
// it will be an array...
|
||||
revertArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
// Item was deleted...
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
// Item was edited...
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
// Item is new...
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyDiff(target, source, filter) {
|
||||
if (target && source) {
|
||||
var onChange = function(change) {
|
||||
if (!filter || filter(target, source, change)) {
|
||||
applyChange(target, source, change);
|
||||
}
|
||||
};
|
||||
deepDiff(target, source, onChange);
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperties(accumulateDiff, {
|
||||
|
||||
diff: {
|
||||
value: accumulateDiff,
|
||||
enumerable: true
|
||||
},
|
||||
observableDiff: {
|
||||
value: deepDiff,
|
||||
enumerable: true
|
||||
},
|
||||
applyDiff: {
|
||||
value: applyDiff,
|
||||
enumerable: true
|
||||
},
|
||||
applyChange: {
|
||||
value: applyChange,
|
||||
enumerable: true
|
||||
},
|
||||
revertChange: {
|
||||
value: revertChange,
|
||||
enumerable: true
|
||||
},
|
||||
isConflict: {
|
||||
value: function() {
|
||||
return 'undefined' !== typeof conflict;
|
||||
},
|
||||
enumerable: true
|
||||
},
|
||||
noConflict: {
|
||||
value: function() {
|
||||
if (conflictResolution) {
|
||||
conflictResolution.forEach(function(it) {
|
||||
it();
|
||||
});
|
||||
conflictResolution = null;
|
||||
}
|
||||
return accumulateDiff;
|
||||
},
|
||||
enumerable: true
|
||||
}
|
||||
});
|
||||
|
||||
export default accumulateDiff;
|
||||
415
static/js/ketcher2/node_modules/deep-diff/index.js
generated
vendored
Normal file
415
static/js/ketcher2/node_modules/deep-diff/index.js
generated
vendored
Normal file
@ -0,0 +1,415 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global.DeepDiff = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
var $scope;
|
||||
var conflict;
|
||||
var conflictResolution = [];
|
||||
if (typeof global === 'object' && global) {
|
||||
$scope = global;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
$scope = window;
|
||||
} else {
|
||||
$scope = {};
|
||||
}
|
||||
conflict = $scope.DeepDiff;
|
||||
if (conflict) {
|
||||
conflictResolution.push(
|
||||
function() {
|
||||
if ('undefined' !== typeof conflict && $scope.DeepDiff === accumulateDiff) {
|
||||
$scope.DeepDiff = conflict;
|
||||
conflict = undefined;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// nodejs compatible on server side and in the browser.
|
||||
function inherits(ctor, superCtor) {
|
||||
ctor.super_ = superCtor;
|
||||
ctor.prototype = Object.create(superCtor.prototype, {
|
||||
constructor: {
|
||||
value: ctor,
|
||||
enumerable: false,
|
||||
writable: true,
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function Diff(kind, path) {
|
||||
Object.defineProperty(this, 'kind', {
|
||||
value: kind,
|
||||
enumerable: true
|
||||
});
|
||||
if (path && path.length) {
|
||||
Object.defineProperty(this, 'path', {
|
||||
value: path,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function DiffEdit(path, origin, value) {
|
||||
DiffEdit.super_.call(this, 'E', path);
|
||||
Object.defineProperty(this, 'lhs', {
|
||||
value: origin,
|
||||
enumerable: true
|
||||
});
|
||||
Object.defineProperty(this, 'rhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffEdit, Diff);
|
||||
|
||||
function DiffNew(path, value) {
|
||||
DiffNew.super_.call(this, 'N', path);
|
||||
Object.defineProperty(this, 'rhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffNew, Diff);
|
||||
|
||||
function DiffDeleted(path, value) {
|
||||
DiffDeleted.super_.call(this, 'D', path);
|
||||
Object.defineProperty(this, 'lhs', {
|
||||
value: value,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffDeleted, Diff);
|
||||
|
||||
function DiffArray(path, index, item) {
|
||||
DiffArray.super_.call(this, 'A', path);
|
||||
Object.defineProperty(this, 'index', {
|
||||
value: index,
|
||||
enumerable: true
|
||||
});
|
||||
Object.defineProperty(this, 'item', {
|
||||
value: item,
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
inherits(DiffArray, Diff);
|
||||
|
||||
function arrayRemove(arr, from, to) {
|
||||
var rest = arr.slice((to || from) + 1 || arr.length);
|
||||
arr.length = from < 0 ? arr.length + from : from;
|
||||
arr.push.apply(arr, rest);
|
||||
return arr;
|
||||
}
|
||||
|
||||
function realTypeOf(subject) {
|
||||
var type = typeof subject;
|
||||
if (type !== 'object') {
|
||||
return type;
|
||||
}
|
||||
|
||||
if (subject === Math) {
|
||||
return 'math';
|
||||
} else if (subject === null) {
|
||||
return 'null';
|
||||
} else if (Array.isArray(subject)) {
|
||||
return 'array';
|
||||
} else if (Object.prototype.toString.call(subject) === '[object Date]') {
|
||||
return 'date';
|
||||
} else if (typeof subject.toString === 'function' && /^\/.*\//.test(subject.toString())) {
|
||||
return 'regexp';
|
||||
}
|
||||
return 'object';
|
||||
}
|
||||
|
||||
function deepDiff(lhs, rhs, changes, prefilter, path, key, stack) {
|
||||
path = path || [];
|
||||
stack = stack || [];
|
||||
var currentPath = path.slice(0);
|
||||
if (typeof key !== 'undefined') {
|
||||
if (prefilter) {
|
||||
if (typeof(prefilter) === 'function' && prefilter(currentPath, key)) {
|
||||
return; } else if (typeof(prefilter) === 'object') {
|
||||
if (prefilter.prefilter && prefilter.prefilter(currentPath, key)) {
|
||||
return; }
|
||||
if (prefilter.normalize) {
|
||||
var alt = prefilter.normalize(currentPath, key, lhs, rhs);
|
||||
if (alt) {
|
||||
lhs = alt[0];
|
||||
rhs = alt[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
currentPath.push(key);
|
||||
}
|
||||
|
||||
// Use string comparison for regexes
|
||||
if (realTypeOf(lhs) === 'regexp' && realTypeOf(rhs) === 'regexp') {
|
||||
lhs = lhs.toString();
|
||||
rhs = rhs.toString();
|
||||
}
|
||||
|
||||
var ltype = typeof lhs;
|
||||
var rtype = typeof rhs;
|
||||
|
||||
var ldefined = ltype !== 'undefined' || (stack && stack[stack.length - 1].lhs && stack[stack.length - 1].lhs.hasOwnProperty(key));
|
||||
var rdefined = rtype !== 'undefined' || (stack && stack[stack.length - 1].rhs && stack[stack.length - 1].rhs.hasOwnProperty(key));
|
||||
|
||||
if (!ldefined && rdefined) {
|
||||
changes(new DiffNew(currentPath, rhs));
|
||||
} else if (!rdefined && ldefined) {
|
||||
changes(new DiffDeleted(currentPath, lhs));
|
||||
} else if (realTypeOf(lhs) !== realTypeOf(rhs)) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
} else if (realTypeOf(lhs) === 'date' && (lhs - rhs) !== 0) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
} else if (ltype === 'object' && lhs !== null && rhs !== null) {
|
||||
if (!stack.filter(function(x) {
|
||||
return x.lhs === lhs; }).length) {
|
||||
stack.push({ lhs: lhs, rhs: rhs });
|
||||
if (Array.isArray(lhs)) {
|
||||
var i, len = lhs.length;
|
||||
for (i = 0; i < lhs.length; i++) {
|
||||
if (i >= rhs.length) {
|
||||
changes(new DiffArray(currentPath, i, new DiffDeleted(undefined, lhs[i])));
|
||||
} else {
|
||||
deepDiff(lhs[i], rhs[i], changes, prefilter, currentPath, i, stack);
|
||||
}
|
||||
}
|
||||
while (i < rhs.length) {
|
||||
changes(new DiffArray(currentPath, i, new DiffNew(undefined, rhs[i++])));
|
||||
}
|
||||
} else {
|
||||
var akeys = Object.keys(lhs);
|
||||
var pkeys = Object.keys(rhs);
|
||||
akeys.forEach(function(k, i) {
|
||||
var other = pkeys.indexOf(k);
|
||||
if (other >= 0) {
|
||||
deepDiff(lhs[k], rhs[k], changes, prefilter, currentPath, k, stack);
|
||||
pkeys = arrayRemove(pkeys, other);
|
||||
} else {
|
||||
deepDiff(lhs[k], undefined, changes, prefilter, currentPath, k, stack);
|
||||
}
|
||||
});
|
||||
pkeys.forEach(function(k) {
|
||||
deepDiff(undefined, rhs[k], changes, prefilter, currentPath, k, stack);
|
||||
});
|
||||
}
|
||||
stack.length = stack.length - 1;
|
||||
} else if (lhs !== rhs) {
|
||||
// lhs is contains a cycle at this element and it differs from rhs
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
}
|
||||
} else if (lhs !== rhs) {
|
||||
if (!(ltype === 'number' && isNaN(lhs) && isNaN(rhs))) {
|
||||
changes(new DiffEdit(currentPath, lhs, rhs));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function accumulateDiff(lhs, rhs, prefilter, accum) {
|
||||
accum = accum || [];
|
||||
deepDiff(lhs, rhs,
|
||||
function(diff) {
|
||||
if (diff) {
|
||||
accum.push(diff);
|
||||
}
|
||||
},
|
||||
prefilter);
|
||||
return (accum.length) ? accum : undefined;
|
||||
}
|
||||
|
||||
function applyArrayChange(arr, index, change) {
|
||||
if (change.path && change.path.length) {
|
||||
var it = arr[index],
|
||||
i, u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
it[change.path[i]] = change.rhs;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(arr[index], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
arr = arrayRemove(arr, index);
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
arr[index] = change.rhs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
function applyChange(target, source, change) {
|
||||
if (target && source && change && change.kind) {
|
||||
var it = target,
|
||||
i = -1,
|
||||
last = change.path ? change.path.length - 1 : 0;
|
||||
while (++i < last) {
|
||||
if (typeof it[change.path[i]] === 'undefined') {
|
||||
it[change.path[i]] = (typeof change.path[i] === 'number') ? [] : {};
|
||||
}
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
applyArrayChange(change.path ? it[change.path[i]] : it, change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
case 'E':
|
||||
case 'N':
|
||||
it[change.path[i]] = change.rhs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function revertArrayChange(arr, index, change) {
|
||||
if (change.path && change.path.length) {
|
||||
// the structure of the object at the index has changed...
|
||||
var it = arr[index],
|
||||
i, u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
revertArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
// the array item is different...
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
revertArrayChange(arr[index], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
arr[index] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
arr[index] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
arr = arrayRemove(arr, index);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}
|
||||
|
||||
function revertChange(target, source, change) {
|
||||
if (target && source && change && change.kind) {
|
||||
var it = target,
|
||||
i, u;
|
||||
u = change.path.length - 1;
|
||||
for (i = 0; i < u; i++) {
|
||||
if (typeof it[change.path[i]] === 'undefined') {
|
||||
it[change.path[i]] = {};
|
||||
}
|
||||
it = it[change.path[i]];
|
||||
}
|
||||
switch (change.kind) {
|
||||
case 'A':
|
||||
// Array was modified...
|
||||
// it will be an array...
|
||||
revertArrayChange(it[change.path[i]], change.index, change.item);
|
||||
break;
|
||||
case 'D':
|
||||
// Item was deleted...
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'E':
|
||||
// Item was edited...
|
||||
it[change.path[i]] = change.lhs;
|
||||
break;
|
||||
case 'N':
|
||||
// Item is new...
|
||||
delete it[change.path[i]];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function applyDiff(target, source, filter) {
|
||||
if (target && source) {
|
||||
var onChange = function(change) {
|
||||
if (!filter || filter(target, source, change)) {
|
||||
applyChange(target, source, change);
|
||||
}
|
||||
};
|
||||
deepDiff(target, source, onChange);
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperties(accumulateDiff, {
|
||||
|
||||
diff: {
|
||||
value: accumulateDiff,
|
||||
enumerable: true
|
||||
},
|
||||
observableDiff: {
|
||||
value: deepDiff,
|
||||
enumerable: true
|
||||
},
|
||||
applyDiff: {
|
||||
value: applyDiff,
|
||||
enumerable: true
|
||||
},
|
||||
applyChange: {
|
||||
value: applyChange,
|
||||
enumerable: true
|
||||
},
|
||||
revertChange: {
|
||||
value: revertChange,
|
||||
enumerable: true
|
||||
},
|
||||
isConflict: {
|
||||
value: function() {
|
||||
return 'undefined' !== typeof conflict;
|
||||
},
|
||||
enumerable: true
|
||||
},
|
||||
noConflict: {
|
||||
value: function() {
|
||||
if (conflictResolution) {
|
||||
conflictResolution.forEach(function(it) {
|
||||
it();
|
||||
});
|
||||
conflictResolution = null;
|
||||
}
|
||||
return accumulateDiff;
|
||||
},
|
||||
enumerable: true
|
||||
}
|
||||
});
|
||||
|
||||
return accumulateDiff;
|
||||
|
||||
})));
|
||||
187
static/js/ketcher2/node_modules/deep-diff/package.json
generated
vendored
Normal file
187
static/js/ketcher2/node_modules/deep-diff/package.json
generated
vendored
Normal file
@ -0,0 +1,187 @@
|
||||
{
|
||||
"_from": "deep-diff@^0.3.5",
|
||||
"_id": "deep-diff@0.3.8",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-wB3mPvsO7JeYgB1Ax+Da4ltYLIQ=",
|
||||
"_location": "/deep-diff",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "deep-diff@^0.3.5",
|
||||
"name": "deep-diff",
|
||||
"escapedName": "deep-diff",
|
||||
"rawSpec": "^0.3.5",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.3.5"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/redux-logger"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.8.tgz",
|
||||
"_shasum": "c01de63efb0eec9798801d40c7e0dae25b582c84",
|
||||
"_spec": "deep-diff@^0.3.5",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/redux-logger",
|
||||
"author": {
|
||||
"name": "Phillip Clark",
|
||||
"email": "phillip@flitbit.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/flitbit/diff/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Simen Bekkhus",
|
||||
"email": "sbekkhus91@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Paul Pflugradt",
|
||||
"email": "paulpflugradt@googlemail.com"
|
||||
},
|
||||
{
|
||||
"name": "wooorm",
|
||||
"email": "tituswormer@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Nicholas Calugar",
|
||||
"email": "njcalugar@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Yandell",
|
||||
"email": "hyandell@amazon.com"
|
||||
},
|
||||
{
|
||||
"name": "Thiago Santos",
|
||||
"email": "thia.mdossantos@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Steve Mao",
|
||||
"email": "maochenyan@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Mats Bryntse",
|
||||
"email": "mats.dev@bryntum.com"
|
||||
},
|
||||
{
|
||||
"name": "Phillip Clark",
|
||||
"email": "pclark@leisurelink.com"
|
||||
},
|
||||
{
|
||||
"name": "ZauberNerd",
|
||||
"email": "zaubernerd@zaubernerd.de"
|
||||
},
|
||||
{
|
||||
"name": "ravishivt",
|
||||
"email": "javishi@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Daniel Spangler",
|
||||
"email": "daniel.spangler@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Sam Beran",
|
||||
"email": "sberan@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Thomas de Barochez",
|
||||
"email": "thomas.barochez+github@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Morton Fox",
|
||||
"email": "github@qslw.com"
|
||||
},
|
||||
{
|
||||
"name": "Amila Welihinda",
|
||||
"email": "amilajack@users.noreply.github.com"
|
||||
},
|
||||
{
|
||||
"name": "Will Biddy",
|
||||
"email": "willbiddy@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "icesoar",
|
||||
"email": "icesoar@hotmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Serkan Serttop",
|
||||
"email": "serkanserttop@yahoo.com"
|
||||
},
|
||||
{
|
||||
"name": "orlando",
|
||||
"email": "operri@opentable.com"
|
||||
},
|
||||
{
|
||||
"name": "Tom MacWright",
|
||||
"email": "tmcw@users.noreply.github.com"
|
||||
},
|
||||
{
|
||||
"name": "Denning",
|
||||
"email": "denningj@amazon.com"
|
||||
},
|
||||
{
|
||||
"name": "Dan Drinkard",
|
||||
"email": "dan.drinkard@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Elad Efrat",
|
||||
"email": "elad@iNNU.ORG"
|
||||
},
|
||||
{
|
||||
"name": "caasi Huang",
|
||||
"email": "caasi.igd@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Tom Ashworth",
|
||||
"email": "tashworth@twitter.com"
|
||||
}
|
||||
],
|
||||
"deprecated": false,
|
||||
"description": "Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.",
|
||||
"devDependencies": {
|
||||
"deep-equal": "~1.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"jscs": "^1.12.0",
|
||||
"jshint": "^2.6.3",
|
||||
"mocha": "^2.2.1",
|
||||
"rollup": "^0.41.6",
|
||||
"uglifyjs": "^2.4.10"
|
||||
},
|
||||
"directories": {
|
||||
"examples": "./examples",
|
||||
"releases": "./releases",
|
||||
"test": "./test"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.es.js",
|
||||
"releases/"
|
||||
],
|
||||
"homepage": "https://github.com/flitbit/diff#readme",
|
||||
"jsnext:main": "/index.es.js",
|
||||
"keywords": [
|
||||
"diff",
|
||||
"difference",
|
||||
"compare",
|
||||
"change-tracking"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./index.js",
|
||||
"module": "./index.es.js",
|
||||
"name": "deep-diff",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/flitbit/diff.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup index.es.js -f umd -o index.js -n DeepDiff",
|
||||
"lint": "jscs index.es.js test/ -e && jshint index.es.js test/",
|
||||
"prebuild": "npm run lint",
|
||||
"prepublish": "npm run build",
|
||||
"prerelease": "npm test",
|
||||
"pretest": "npm run build",
|
||||
"release": "uglifyjs index.js -o releases/deep-diff-$npm_package_version.min.js -r '$,require,exports,module,window,global' -m --comments '/^!/'",
|
||||
"test": "mocha test/"
|
||||
},
|
||||
"version": "0.3.8"
|
||||
}
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.3.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.3.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.1.3.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,r=[];if(typeof global=="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){r.push(function(){if("undefined"!==typeof n&&t.DeepDiff===h){t.DeepDiff=n;n=e}})}function i(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function f(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function u(e,t,n){u.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}i(u,f);function a(e,t){a.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}i(a,f);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}i(l,f);function o(e,t,n){o.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}i(o,f);function s(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function c(t,n,r,i,f,h){i=i||[];var p=i.slice(0);if(f){p.push(f)}var b=typeof t;var d=typeof n;if(b==="undefined"){if(d!=="undefined"){r(new a(p,n))}}else if(d==="undefined"){r(new l(p,t))}else if(b!==d){r(new u(p,t,n))}else if(b==="object"&&t!=null){h=h||[];if(h.indexOf(t)<0){h.push(t);if(Array.isArray(t)){var v,y=t.length,m=function(e){r(new o(p,v,e))};for(v=0;v<t.length;v++){if(v>=n.length){r(new o(p,v,new l(e,t[v])))}else{c(t[v],n[v],m,[],null,h)}}while(v<n.length){r(new o(p,v,new a(e,n[v++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i){var f=w.indexOf(i);if(f>=0){c(t[i],n[i],r,p,i,h);w=s(w,f)}else{c(t[i],e,r,p,i,h)}});w.forEach(function(t){c(e,n[t],r,p,t,h)})}h.length=h.length-1}}else if(t!==n){r(new u(p,t,n))}}function h(t,n,r){r=r||[];c(t,n,function(e){if(e){r.push(e)}});return r.length?r:e}function p(e,t,n){if(n.path&&n.path.length){var r=e[t],i,f=n.path.length-1;for(i=0;i<f;i++){r=r[n.path[i]]}switch(n.kind){case"A":p(r,n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(!(n instanceof f)){throw new TypeError("[Object] change must be instanceof Diff")}if(e&&t&&n){var r=e,i,u;u=n.path.length-1;for(i=0;i<u;i++){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]={}}r=r[n.path[i]]}switch(n.kind){case"A":p(r[n.path[i]],n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}}function d(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){b(e,t,r)}};c(e,t,r)}}Object.defineProperties(h,{diff:{value:h,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:d,enumerable:true},applyChange:{value:b,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(r){r.forEach(function(e){e()});r=null}return h},enumerable:true}});if(typeof module!="undefined"&&module&&typeof exports=="object"&&exports&&module.exports===exports){module.exports=h}else{t.DeepDiff=h}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.4.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.4.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.1.4.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,i=[];if(typeof global=="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){i.push(function(){if("undefined"!==typeof n&&t.DeepDiff===h){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function f(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function a(e,t,n){a.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(a,f);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,f);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,f);function o(e,t,n){o.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(o,f);function s(e,t,n){var i=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,i);return e}function c(t,n,i,r,f,h){r=r||[];var p=r.slice(0);if(f){p.push(f)}var b=typeof t;var d=typeof n;if(b==="undefined"){if(d!=="undefined"){i(new u(p,n))}}else if(d==="undefined"){i(new l(p,t))}else if(b!==d){i(new a(p,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!=0){i(new a(p,t,n))}else if(b==="object"&&t!=null&&n!=null){h=h||[];if(h.indexOf(t)<0){h.push(t);if(Array.isArray(t)){var v,y=t.length,m=function(e){i(new o(p,v,e))};for(v=0;v<t.length;v++){if(v>=n.length){i(new o(p,v,new l(e,t[v])))}else{c(t[v],n[v],m,[],null,h)}}while(v<n.length){i(new o(p,v,new u(e,n[v++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(r){var f=w.indexOf(r);if(f>=0){c(t[r],n[r],i,p,r,h);w=s(w,f)}else{c(t[r],e,i,p,r,h)}});w.forEach(function(t){c(e,n[t],i,p,t,h)})}h.length=h.length-1}}else if(t!==n){i(new a(p,t,n))}}function h(t,n,i){i=i||[];c(t,n,function(e){if(e){i.push(e)}});return i.length?i:e}function p(e,t,n){if(n.path&&n.path.length){var i=e[t],r,f=n.path.length-1;for(r=0;r<f;r++){i=i[n.path[r]]}switch(n.kind){case"A":p(i,n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(!(n instanceof f)){throw new TypeError("[Object] change must be instanceof Diff")}if(e&&t&&n){var i=e,r,a;a=n.path.length-1;for(r=0;r<a;r++){if(typeof i[n.path[r]]==="undefined"){i[n.path[r]]={}}i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(e&&t){var i=function(i){if(!n||n(e,t,i)){b(e,t,i)}};c(e,t,i)}}Object.defineProperties(h,{diff:{value:h,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:d,enumerable:true},applyChange:{value:b,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(i){i.forEach(function(e){e()});i=null}return h},enumerable:true}});if(typeof module!="undefined"&&module&&typeof exports=="object"&&exports&&module.exports===exports){module.exports=h}else{t.DeepDiff=h}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.5.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.5.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.1.5.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,i=[];if(typeof global=="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){i.push(function(){if("undefined"!==typeof n&&t.DeepDiff===h){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function a(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,a);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,a);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,a);function o(e,t,n){o.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(o,a);function s(e,t,n){var i=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,i);return e}function c(t,n,i,r,a,h){r=r||[];var p=r.slice(0);if(a){p.push(a)}var b=typeof t;var d=typeof n;if(b==="undefined"){if(d!=="undefined"){i(new u(p,n))}}else if(d==="undefined"){i(new l(p,t))}else if(b!==d){i(new f(p,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!=0){i(new f(p,t,n))}else if(b==="object"&&t!=null&&n!=null){h=h||[];if(h.indexOf(t)<0){h.push(t);if(Array.isArray(t)){var v,y=t.length,m=function(e){i(new o(p,v,e))};for(v=0;v<t.length;v++){if(v>=n.length){i(new o(p,v,new l(e,t[v])))}else{c(t[v],n[v],m,[],null,h)}}while(v<n.length){i(new o(p,v,new u(e,n[v++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(r){var a=w.indexOf(r);if(a>=0){c(t[r],n[r],i,p,r,h);w=s(w,a)}else{c(t[r],e,i,p,r,h)}});w.forEach(function(t){c(e,n[t],i,p,t,h)})}h.length=h.length-1}}else if(t!==n){if(!(b==="number"&&isNaN(t)&&isNaN(n))){i(new f(p,t,n))}}}function h(t,n,i){i=i||[];c(t,n,function(e){if(e){i.push(e)}});return i.length?i:e}function p(e,t,n){if(n.path&&n.path.length){var i=e[t],r,a=n.path.length-1;for(r=0;r<a;r++){i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(!(n instanceof a)){throw new TypeError("[Object] change must be instanceof Diff")}if(e&&t&&n){var i=e,r,f;f=n.path.length-1;for(r=0;r<f;r++){if(typeof i[n.path[r]]==="undefined"){i[n.path[r]]={}}i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(e&&t){var i=function(i){if(!n||n(e,t,i)){b(e,t,i)}};c(e,t,i)}}Object.defineProperties(h,{diff:{value:h,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:d,enumerable:true},applyChange:{value:b,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(i){i.forEach(function(e){e()});i=null}return h},enumerable:true}});if(typeof module!="undefined"&&module&&typeof exports=="object"&&exports&&module.exports===exports){module.exports=h}else{t.DeepDiff=h}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.6.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.6.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.1.6.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,i=[];if(typeof global=="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){i.push(function(){if("undefined"!==typeof n&&t.DeepDiff===h){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function a(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,a);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,a);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,a);function o(e,t,n){o.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(o,a);function s(e,t,n){var i=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,i);return e}function c(t,n,i,r,a,h){r=r||[];var p=r.slice(0);if(a){p.push(a)}var b=typeof t;var d=typeof n;if(b==="undefined"){if(d!=="undefined"){i(new u(p,n))}}else if(d==="undefined"){i(new l(p,t))}else if(b!==d){i(new f(p,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!=0){i(new f(p,t,n))}else if(b==="object"&&t!=null&&n!=null){h=h||[];if(h.indexOf(t)<0){h.push(t);if(Array.isArray(t)){var v,y=t.length,m=function(e){i(new o(p,v,e))};for(v=0;v<t.length;v++){if(v>=n.length){i(new o(p,v,new l(e,t[v])))}else{c(t[v],n[v],m,[],null,h)}}while(v<n.length){i(new o(p,v,new u(e,n[v++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(r){var a=w.indexOf(r);if(a>=0){c(t[r],n[r],i,p,r,h);w=s(w,a)}else{c(t[r],e,i,p,r,h)}});w.forEach(function(t){c(e,n[t],i,p,t,h)})}h.length=h.length-1}}else if(t!==n){if(!(b==="number"&&isNaN(t)&&isNaN(n))){i(new f(p,t,n))}}}function h(t,n,i){i=i||[];c(t,n,function(e){if(e){i.push(e)}});return i.length?i:e}function p(e,t,n){if(n.path&&n.path.length){var i=e[t],r,a=n.path.length-1;for(r=0;r<a;r++){i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(!(n instanceof a)){throw new TypeError("[Object] change must be instanceof Diff")}if(e&&t&&n){var i=e,r,f;f=n.path.length-1;for(r=0;r<f;r++){if(typeof i[n.path[r]]==="undefined"){i[n.path[r]]={}}i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(e&&t){var i=function(i){if(!n||n(e,t,i)){b(e,t,i)}};c(e,t,i)}}Object.defineProperties(h,{diff:{value:h,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:d,enumerable:true},applyChange:{value:b,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(i){i.forEach(function(e){e()});i=null}return h},enumerable:true}});if(typeof module!="undefined"&&module&&typeof exports=="object"&&exports&&module.exports===exports){module.exports=h}else{t.DeepDiff=h}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.7.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.1.7.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.1.7.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,i=[];if(typeof global=="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){i.push(function(){if("undefined"!==typeof n&&t.DeepDiff===h){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function f(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function a(e,t,n){a.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(a,f);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,f);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,f);function o(e,t,n){o.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(o,f);function s(e,t,n){var i=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,i);return e}function c(t,n,i,r,f,h,p){f=f||[];var b=f.slice(0);if(h){if(r&&r(b,h))return;b.push(h)}var d=typeof t;var v=typeof n;if(d==="undefined"){if(v!=="undefined"){i(new u(b,n))}}else if(v==="undefined"){i(new l(b,t))}else if(d!==v){i(new a(b,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!=0){i(new a(b,t,n))}else if(d==="object"&&t!=null&&n!=null){p=p||[];if(p.indexOf(t)<0){p.push(t);if(Array.isArray(t)){var y,m=t.length,g=function(e){i(new o(b,y,e))};for(y=0;y<t.length;y++){if(y>=n.length){i(new o(b,y,new l(e,t[y])))}else{c(t[y],n[y],g,r,[],null,p)}}while(y<n.length){i(new o(b,y,new u(e,n[y++])))}}else{var w=Object.keys(t);var D=Object.keys(n);w.forEach(function(f){var a=D.indexOf(f);if(a>=0){c(t[f],n[f],i,r,b,f,p);D=s(D,a)}else{c(t[f],e,i,r,b,f,p)}});D.forEach(function(t){c(e,n[t],i,r,b,t,p)})}p.length=p.length-1}}else if(t!==n){if(!(d==="number"&&isNaN(t)&&isNaN(n))){i(new a(b,t,n))}}}function h(t,n,i,r){r=r||[];c(t,n,function(e){if(e){r.push(e)}},i);return r.length?r:e}function p(e,t,n){if(n.path&&n.path.length){var i=e[t],r,f=n.path.length-1;for(r=0;r<f;r++){i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(!(n instanceof f)){throw new TypeError("[Object] change must be instanceof Diff")}if(e&&t&&n){var i=e,r,a;a=n.path.length-1;for(r=0;r<a;r++){if(typeof i[n.path[r]]==="undefined"){i[n.path[r]]={}}i=i[n.path[r]]}switch(n.kind){case"A":p(i[n.path[r]],n.index,n.item);break;case"D":delete i[n.path[r]];break;case"E":case"N":i[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(e&&t){var i=function(i){if(!n||n(e,t,i)){b(e,t,i)}};c(e,t,i)}}Object.defineProperties(h,{diff:{value:h,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:d,enumerable:true},applyChange:{value:b,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(i){i.forEach(function(e){e()});i=null}return h},enumerable:true}});if(typeof module!="undefined"&&module&&typeof exports=="object"&&exports&&module.exports===exports){module.exports=h}else{t.DeepDiff=h}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.2.0.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.2.0.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff-0.2.0.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,a=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){a.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,i);function l(e,t){l.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(l,i);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(u,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(s,i);function h(e,t,n){var a=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,a);return e}function c(t,n,a,r,i,p,o){i=i||[];var b=i.slice(0);if(typeof p!=="undefined"){if(r&&r(b,p)){return}b.push(p)}var d=typeof t;var k=typeof n;if(d==="undefined"){if(k!=="undefined"){a(new l(b,n))}}else if(k==="undefined"){a(new u(b,t))}else if(d!==k){a(new f(b,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){a(new f(b,t,n))}else if(d==="object"&&t!==null&&n!==null){o=o||[];if(o.indexOf(t)<0){o.push(t);if(Array.isArray(t)){var v,y=t.length;for(v=0;v<t.length;v++){if(v>=n.length){a(new s(b,v,new u(e,t[v])))}else{c(t[v],n[v],a,r,b,v,o)}}while(v<n.length){a(new s(b,v,new l(e,n[v++])))}}else{var m=Object.keys(t);var g=Object.keys(n);m.forEach(function(i,f){var l=g.indexOf(i);if(l>=0){c(t[i],n[i],a,r,b,i,o);g=h(g,l)}else{c(t[i],e,a,r,b,i,o)}});g.forEach(function(t){c(e,n[t],a,r,b,t,o)})}o.length=o.length-1}}else if(t!==n){if(!(d==="number"&&isNaN(t)&&isNaN(n))){a(new f(b,t,n))}}}function p(t,n,a,r){r=r||[];c(t,n,function(e){if(e){r.push(e)}},a);return r.length?r:e}function o(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":o(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(e&&t&&n&&n.kind){var a=e,r=-1,i=n.path.length-1;while(++r<i){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]=typeof n.path[r]==="number"?new Array:{}}a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}else{switch(n.kind){case"A":d(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function k(e,t,n){if(e&&t&&n&&n.kind){var a=e,r,i;i=n.path.length-1;for(r=0;r<i;r++){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]={}}a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}}function v(e,t,n){if(e&&t){var a=function(a){if(!n||n(e,t,a)){b(e,t,a)}};c(e,t,a)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:v,enumerable:true},applyChange:{value:b,enumerable:true},revertChange:{value:k,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(a){a.forEach(function(e){e()});a=null}return p},enumerable:true}});if(typeof module!=="undefined"&&module&&typeof exports==="object"&&exports&&module.exports===exports){module.exports=p}else{t.DeepDiff=p}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.0.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.0.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
!function(e){"use strict";var t,n,a=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){a.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,i);function l(e,t){l.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(l,i);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(u,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(s,i);function h(e,t,n){var a=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,a);return e}function c(t,n,a,r,i,p,o){i=i||[];var b=i.slice(0);if(typeof p!=="undefined"){if(r&&r(b,p)){return}b.push(p)}var d=typeof t;var k=typeof n;if(d==="undefined"){if(k!=="undefined"){a(new l(b,n))}}else if(k==="undefined"){a(new u(b,t))}else if(d!==k){a(new f(b,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){a(new f(b,t,n))}else if(d==="object"&&t!==null&&n!==null){o=o||[];if(o.indexOf(t)<0){o.push(t);if(Array.isArray(t)){var v,y=t.length;for(v=0;v<t.length;v++){if(v>=n.length){a(new s(b,v,new u(e,t[v])))}else{c(t[v],n[v],a,r,b,v,o)}}while(v<n.length){a(new s(b,v,new l(e,n[v++])))}}else{var m=Object.keys(t);var g=Object.keys(n);m.forEach(function(i,f){var l=g.indexOf(i);if(l>=0){c(t[i],n[i],a,r,b,i,o);g=h(g,l)}else{c(t[i],e,a,r,b,i,o)}});g.forEach(function(t){c(e,n[t],a,r,b,t,o)})}o.length=o.length-1}}else if(t!==n){if(!(d==="number"&&isNaN(t)&&isNaN(n))){a(new f(b,t,n))}}}function p(t,n,a,r){r=r||[];c(t,n,function(e){if(e){r.push(e)}},a);return r.length?r:e}function o(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":o(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(e&&t&&n&&n.kind){var a=e,r=-1,i=n.path.length-1;while(++r<i){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]=typeof n.path[r]==="number"?new Array:{}}a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}else{switch(n.kind){case"A":d(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function k(e,t,n){if(e&&t&&n&&n.kind){var a=e,r,i;i=n.path.length-1;for(r=0;r<i;r++){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]={}}a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}}function v(e,t,n){if(e&&t){var a=function(a){if(!n||n(e,t,a)){b(e,t,a)}};c(e,t,a)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:v,enumerable:true},applyChange:{value:b,enumerable:true},revertChange:{value:k,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(a){a.forEach(function(e){e()});a=null}return p},enumerable:true}});if(typeof module!=="undefined"&&module&&typeof exports==="object"&&exports&&module.exports===exports){module.exports=p}else{t.DeepDiff=p}}();
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.1.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.1.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],t)}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,a=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){a.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,i);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,i);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(s,i);function h(e,t,n){var a=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,a);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(e instanceof Date){return"date"}else if(/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(t,n,a,r,i,p,b){i=i||[];var d=i.slice(0);if(typeof p!=="undefined"){if(r&&r(d,p)){return}d.push(p)}var v=typeof t;var y=typeof n;if(v==="undefined"){if(y!=="undefined"){a(new u(d,n))}}else if(y==="undefined"){a(new l(d,t))}else if(c(t)!==c(n)){a(new f(d,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){a(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){a(new s(d,k,new l(e,t[k])))}else{o(t[k],n[k],a,r,d,k,b)}}while(k<n.length){a(new s(d,k,new u(e,n[k++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i,f){var u=w.indexOf(i);if(u>=0){o(t[i],n[i],a,r,d,i,b);w=h(w,u)}else{o(t[i],e,a,r,d,i,b)}});w.forEach(function(t){o(e,n[t],a,r,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){a(new f(d,t,n))}}}function p(t,n,a,r){r=r||[];o(t,n,function(e){if(e){r.push(e)}},a);return r.length?r:e}function b(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":b(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var a=e,r=-1,i=n.path.length-1;while(++r<i){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]=typeof n.path[r]==="number"?[]:{}}a=a[n.path[r]]}switch(n.kind){case"A":b(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}}function v(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":v(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}else{switch(n.kind){case"A":v(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var a=e,r,i;i=n.path.length-1;for(r=0;r<i;r++){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]={}}a=a[n.path[r]]}switch(n.kind){case"A":v(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}}function k(e,t,n){if(e&&t){var a=function(a){if(!n||n(e,t,a)){d(e,t,a)}};o(e,t,a)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:k,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(a){a.forEach(function(e){e()});a=null}return p},enumerable:true}});return p});
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.2.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.2.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],t)}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,r=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){r.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function a(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}a(f,i);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}a(u,i);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}a(l,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}a(s,i);function h(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(e instanceof Date){return"date"}else if(/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(t,n,r,a,i,p,b){i=i||[];var d=i.slice(0);if(typeof p!=="undefined"){if(a&&a(d,p,{lhs:t,rhs:n})){return}d.push(p)}var v=typeof t;var y=typeof n;if(v==="undefined"){if(y!=="undefined"){r(new u(d,n))}}else if(y==="undefined"){r(new l(d,t))}else if(c(t)!==c(n)){r(new f(d,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){r(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){r(new s(d,k,new l(e,t[k])))}else{o(t[k],n[k],r,a,d,k,b)}}while(k<n.length){r(new s(d,k,new u(e,n[k++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i,f){var u=w.indexOf(i);if(u>=0){o(t[i],n[i],r,a,d,i,b);w=h(w,u)}else{o(t[i],e,r,a,d,i,b)}});w.forEach(function(t){o(e,n[t],r,a,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){r(new f(d,t,n))}}}function p(t,n,r,a){a=a||[];o(t,n,function(e){if(e){a.push(e)}},r);return a.length?a:e}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,a=-1,i=n.path.length-1;while(++a<i){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]=typeof n.path[a]==="number"?[]:{}}r=r[n.path[a]]}switch(n.kind){case"A":b(r[n.path[a]],n.index,n.item);break;case"D":delete r[n.path[a]];break;case"E":case"N":r[n.path[a]]=n.rhs;break}}}function v(e,t,n){if(n.path&&n.path.length){var r=e[t],a,i=n.path.length-1;for(a=0;a<i;a++){r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}else{switch(n.kind){case"A":v(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r=e,a,i;i=n.path.length-1;for(a=0;a<i;a++){if(typeof r[n.path[a]]==="undefined"){r[n.path[a]]={}}r=r[n.path[a]]}switch(n.kind){case"A":v(r[n.path[a]],n.index,n.item);break;case"D":r[n.path[a]]=n.lhs;break;case"E":r[n.path[a]]=n.lhs;break;case"N":delete r[n.path[a]];break}}}function k(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};o(e,t,r)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:k,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(r){r.forEach(function(e){e()});r=null}return p},enumerable:true}});return p});
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.3.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.3.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],t)}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,a=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){a.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,i);function u(e,t){u.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(u,i);function l(e,t){l.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(l,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(s,i);function h(e,t,n){var a=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,a);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(e instanceof Date){return"date"}else if(/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(t,n,a,r,i,p,b){i=i||[];var d=i.slice(0);if(typeof p!=="undefined"){if(r&&r(d,p,{lhs:t,rhs:n})){return}d.push(p)}var v=typeof t;var y=typeof n;if(v==="undefined"){if(y!=="undefined"){a(new u(d,n))}}else if(y==="undefined"){a(new l(d,t))}else if(c(t)!==c(n)){a(new f(d,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){a(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){a(new s(d,k,new l(e,t[k])))}else{o(t[k],n[k],a,r,d,k,b)}}while(k<n.length){a(new s(d,k,new u(e,n[k++])))}}else{var g=Object.keys(t);var w=Object.keys(n);g.forEach(function(i,f){var u=w.indexOf(i);if(u>=0){o(t[i],n[i],a,r,d,i,b);w=h(w,u)}else{o(t[i],e,a,r,d,i,b)}});w.forEach(function(t){o(e,n[t],a,r,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){a(new f(d,t,n))}}}function p(t,n,a,r){r=r||[];o(t,n,function(e){if(e){r.push(e)}},a);return r.length?r:e}function b(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":b(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var a=e,r=-1,i=n.path?n.path.length-1:0;while(++r<i){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]=typeof n.path[r]==="number"?[]:{}}a=a[n.path[r]]}switch(n.kind){case"A":b(n.path?a[n.path[r]]:a,n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}}function v(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":v(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}else{switch(n.kind){case"A":v(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var a=e,r,i;i=n.path.length-1;for(r=0;r<i;r++){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]={}}a=a[n.path[r]]}switch(n.kind){case"A":v(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}}function k(e,t,n){if(e&&t){var a=function(a){if(!n||n(e,t,a)){d(e,t,a)}};o(e,t,a)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:k,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(a){a.forEach(function(e){e()});a=null}return p},enumerable:true}});return p});
|
||||
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.4.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.4.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
(function(e,t){"use strict";if(typeof define==="function"&&define.amd){define([],function(){return t()})}else if(typeof exports==="object"){module.exports=t()}else{e.DeepDiff=t()}})(this,function(e){"use strict";var t,n,r=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){r.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function i(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function a(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}i(f,a);function l(e,t){l.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}i(l,a);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}i(u,a);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}i(s,a);function o(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function c(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(Object.prototype.toString.call(e)==="[object Date]"){return"date"}else if(typeof e.toString!=="undefined"&&/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function h(t,n,r,i,a,p,b){a=a||[];var d=a.slice(0);if(typeof p!=="undefined"){if(i){if(typeof i==="function"&&i(d,p)){return}else if(typeof i==="object"){if(i.prefilter&&i.prefilter(d,p)){return}if(i.normalize){var y=i.normalize(d,p,t,n);if(y){t=y[0];n=y[1]}}}}d.push(p)}if(c(t)==="regexp"&&c(n)==="regexp"){t=t.toString();n=n.toString()}var v=typeof t;var g=typeof n;if(v==="undefined"){if(g!=="undefined"){r(new l(d,n))}}else if(g==="undefined"){r(new u(d,t))}else if(c(t)!==c(n)){r(new f(d,t,n))}else if(Object.prototype.toString.call(t)==="[object Date]"&&Object.prototype.toString.call(n)==="[object Date]"&&t-n!==0){r(new f(d,t,n))}else if(v==="object"&&t!==null&&n!==null){b=b||[];if(b.indexOf(t)<0){b.push(t);if(Array.isArray(t)){var k,m=t.length;for(k=0;k<t.length;k++){if(k>=n.length){r(new s(d,k,new u(e,t[k])))}else{h(t[k],n[k],r,i,d,k,b)}}while(k<n.length){r(new s(d,k,new l(e,n[k++])))}}else{var j=Object.keys(t);var w=Object.keys(n);j.forEach(function(a,f){var l=w.indexOf(a);if(l>=0){h(t[a],n[a],r,i,d,a,b);w=o(w,l)}else{h(t[a],e,r,i,d,a,b)}});w.forEach(function(t){h(e,n[t],r,i,d,t,b)})}b.length=b.length-1}}else if(t!==n){if(!(v==="number"&&isNaN(t)&&isNaN(n))){r(new f(d,t,n))}}}function p(t,n,r,i){i=i||[];h(t,n,function(e){if(e){i.push(e)}},r);return i.length?i:e}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":b(r[n.path[i]],n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e=o(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,i=-1,a=n.path?n.path.length-1:0;while(++i<a){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]=typeof n.path[i]==="number"?[]:{}}r=r[n.path[i]]}switch(n.kind){case"A":b(n.path?r[n.path[i]]:r,n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}}function y(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":y(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}else{switch(n.kind){case"A":y(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=o(e,t);break}}return e}function v(e,t,n){if(e&&t&&n&&n.kind){var r=e,i,a;a=n.path.length-1;for(i=0;i<a;i++){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]={}}r=r[n.path[i]]}switch(n.kind){case"A":y(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}}function g(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};h(e,t,r)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:h,enumerable:true},applyDiff:{value:g,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:v,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(r){r.forEach(function(e){e()});r=null}return p},enumerable:true}});return p});
|
||||
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.5.min.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.5.min.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
(function(global,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e():typeof define==="function"&&define.amd?define(e):global.DeepDiff=e()})(this,function(){"use strict";var e;var t;var n=[];if(typeof global==="object"&&global){e=global}else if(typeof window!=="undefined"){e=window}else{e={}}t=e.DeepDiff;if(t){n.push(function(){if("undefined"!==typeof t&&e.DeepDiff===c){e.DeepDiff=t;t=undefined}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function a(e,t,n){a.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(a,i);function f(e,t){f.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(f,i);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(u,i);function l(e,t,n){l.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(l,i);function s(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function h(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(Object.prototype.toString.call(e)==="[object Date]"){return"date"}else if(typeof e.toString==="function"&&/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(e,t,n,r,i,c,p){i=i||[];var d=i.slice(0);if(typeof c!=="undefined"){if(r){if(typeof r==="function"&&r(d,c)){return}else if(typeof r==="object"){if(r.prefilter&&r.prefilter(d,c)){return}if(r.normalize){var b=r.normalize(d,c,e,t);if(b){e=b[0];t=b[1]}}}}d.push(c)}if(h(e)==="regexp"&&h(t)==="regexp"){e=e.toString();t=t.toString()}var y=typeof e;var v=typeof t;if(y==="undefined"){if(v!=="undefined"){n(new f(d,t))}}else if(v==="undefined"){n(new u(d,e))}else if(h(e)!==h(t)){n(new a(d,e,t))}else if(h(e)==="date"&&e-t!==0){n(new a(d,e,t))}else if(y==="object"&&e!==null&&t!==null){p=p||[];if(p.indexOf(e)<0){p.push(e);if(Array.isArray(e)){var k,g=e.length;for(k=0;k<e.length;k++){if(k>=t.length){n(new l(d,k,new u(undefined,e[k])))}else{o(e[k],t[k],n,r,d,k,p)}}while(k<t.length){n(new l(d,k,new f(undefined,t[k++])))}}else{var m=Object.keys(e);var w=Object.keys(t);m.forEach(function(i,a){var f=w.indexOf(i);if(f>=0){o(e[i],t[i],n,r,d,i,p);w=s(w,f)}else{o(e[i],undefined,n,r,d,i,p)}});w.forEach(function(e){o(undefined,t[e],n,r,d,e,p)})}p.length=p.length-1}}else if(e!==t){if(!(y==="number"&&isNaN(e)&&isNaN(t))){n(new a(d,e,t))}}}function c(e,t,n,r){r=r||[];o(e,t,function(e){if(e){r.push(e)}},n);return r.length?r:undefined}function p(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":p(r[n.path[i]],n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,i=-1,a=n.path?n.path.length-1:0;while(++i<a){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]=typeof n.path[i]==="number"?[]:{}}r=r[n.path[i]]}switch(n.kind){case"A":p(n.path?r[n.path[i]]:r,n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":b(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=s(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r=e,i,a;a=n.path.length-1;for(i=0;i<a;i++){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]={}}r=r[n.path[i]]}switch(n.kind){case"A":b(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}}function v(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};o(e,t,r)}}Object.defineProperties(c,{diff:{value:c,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:v,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof t},enumerable:true},noConflict:{value:function(){if(n){n.forEach(function(e){e()});n=null}return c},enumerable:true}});return c});
|
||||
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.6.min.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.6.min.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
(function(global,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e():typeof define==="function"&&define.amd?define(e):global.DeepDiff=e()})(this,function(){"use strict";var e;var t;var n=[];if(typeof global==="object"&&global){e=global}else if(typeof window!=="undefined"){e=window}else{e={}}t=e.DeepDiff;if(t){n.push(function(){if("undefined"!==typeof t&&e.DeepDiff===c){e.DeepDiff=t;t=undefined}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function a(e,t,n){a.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(a,i);function f(e,t){f.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(f,i);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(u,i);function l(e,t,n){l.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(l,i);function s(e,t,n){var r=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,r);return e}function h(e){var t=typeof e;if(t!=="object"){return t}if(e===Math){return"math"}else if(e===null){return"null"}else if(Array.isArray(e)){return"array"}else if(Object.prototype.toString.call(e)==="[object Date]"){return"date"}else if(typeof e.toString==="function"&&/^\/.*\//.test(e.toString())){return"regexp"}return"object"}function o(e,t,n,r,i,c,p){i=i||[];var d=i.slice(0);if(typeof c!=="undefined"){if(r){if(typeof r==="function"&&r(d,c)){return}else if(typeof r==="object"){if(r.prefilter&&r.prefilter(d,c)){return}if(r.normalize){var b=r.normalize(d,c,e,t);if(b){e=b[0];t=b[1]}}}}d.push(c)}if(h(e)==="regexp"&&h(t)==="regexp"){e=e.toString();t=t.toString()}var y=typeof e;var v=typeof t;if(y==="undefined"){if(v!=="undefined"){n(new f(d,t))}else{n(new u(d,e))}}else if(v==="undefined"){n(new u(d,e))}else if(h(e)!==h(t)){n(new a(d,e,t))}else if(h(e)==="date"&&e-t!==0){n(new a(d,e,t))}else if(y==="object"&&e!==null&&t!==null){p=p||[];if(p.indexOf(e)<0){p.push(e);if(Array.isArray(e)){var k,g=e.length;for(k=0;k<e.length;k++){if(k>=t.length){n(new l(d,k,new u(undefined,e[k])))}else{o(e[k],t[k],n,r,d,k,p)}}while(k<t.length){n(new l(d,k,new f(undefined,t[k++])))}}else{var m=Object.keys(e);var w=Object.keys(t);m.forEach(function(i,a){var f=w.indexOf(i);if(f>=0){o(e[i],t[i],n,r,d,i,p);w=s(w,f)}else{o(e[i],undefined,n,r,d,i,p)}});w.forEach(function(e){o(undefined,t[e],n,r,d,e,p)})}p.length=p.length-1}else if(e!==t){n(new a(d,e,t))}}else if(e!==t){if(!(y==="number"&&isNaN(e)&&isNaN(t))){n(new a(d,e,t))}}}function c(e,t,n,r){r=r||[];o(e,t,function(e){if(e){r.push(e)}},n);return r.length?r:undefined}function p(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":p(r[n.path[i]],n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}else{switch(n.kind){case"A":p(e[t],n.index,n.item);break;case"D":e=s(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function d(e,t,n){if(e&&t&&n&&n.kind){var r=e,i=-1,a=n.path?n.path.length-1:0;while(++i<a){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]=typeof n.path[i]==="number"?[]:{}}r=r[n.path[i]]}switch(n.kind){case"A":p(n.path?r[n.path[i]]:r,n.index,n.item);break;case"D":delete r[n.path[i]];break;case"E":case"N":r[n.path[i]]=n.rhs;break}}}function b(e,t,n){if(n.path&&n.path.length){var r=e[t],i,a=n.path.length-1;for(i=0;i<a;i++){r=r[n.path[i]]}switch(n.kind){case"A":b(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}else{switch(n.kind){case"A":b(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=s(e,t);break}}return e}function y(e,t,n){if(e&&t&&n&&n.kind){var r=e,i,a;a=n.path.length-1;for(i=0;i<a;i++){if(typeof r[n.path[i]]==="undefined"){r[n.path[i]]={}}r=r[n.path[i]]}switch(n.kind){case"A":b(r[n.path[i]],n.index,n.item);break;case"D":r[n.path[i]]=n.lhs;break;case"E":r[n.path[i]]=n.lhs;break;case"N":delete r[n.path[i]];break}}}function v(e,t,n){if(e&&t){var r=function(r){if(!n||n(e,t,r)){d(e,t,r)}};o(e,t,r)}}Object.defineProperties(c,{diff:{value:c,enumerable:true},observableDiff:{value:o,enumerable:true},applyDiff:{value:v,enumerable:true},applyChange:{value:d,enumerable:true},revertChange:{value:y,enumerable:true},isConflict:{value:function(){return"undefined"!==typeof t},enumerable:true},noConflict:{value:function(){if(n){n.forEach(function(e){e()});n=null}return c},enumerable:true}});return c});
|
||||
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.7.min.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.7.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.8.min.js
generated
vendored
Normal file
1
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-0.3.8.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-debug.min.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/deep-diff/releases/deep-diff-debug.min.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* deep-diff.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
(function(e){"use strict";var t,n,a=[];if(typeof global==="object"&&global){t=global}else if(typeof window!=="undefined"){t=window}else{t={}}n=t.DeepDiff;if(n){a.push(function(){if("undefined"!==typeof n&&t.DeepDiff===p){t.DeepDiff=n;n=e}})}function r(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}function i(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:true});if(t&&t.length){Object.defineProperty(this,"path",{value:t,enumerable:true})}}function f(e,t,n){f.super_.call(this,"E",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true});Object.defineProperty(this,"rhs",{value:n,enumerable:true})}r(f,i);function l(e,t){l.super_.call(this,"N",e);Object.defineProperty(this,"rhs",{value:t,enumerable:true})}r(l,i);function u(e,t){u.super_.call(this,"D",e);Object.defineProperty(this,"lhs",{value:t,enumerable:true})}r(u,i);function s(e,t,n){s.super_.call(this,"A",e);Object.defineProperty(this,"index",{value:t,enumerable:true});Object.defineProperty(this,"item",{value:n,enumerable:true})}r(s,i);function h(e,t,n){var a=e.slice((n||t)+1||e.length);e.length=t<0?e.length+t:t;e.push.apply(e,a);return e}function c(t,n,a,r,i,p,o){i=i||[];var b=i.slice(0);if(typeof p!=="undefined"){if(r&&r(b,p)){return}b.push(p)}var d=typeof t;var k=typeof n;if(d==="undefined"){if(k!=="undefined"){a(new l(b,n))}}else if(k==="undefined"){a(new u(b,t))}else if(d!==k){a(new f(b,t,n))}else if(t instanceof Date&&n instanceof Date&&t-n!==0){a(new f(b,t,n))}else if(d==="object"&&t!==null&&n!==null){o=o||[];if(o.indexOf(t)<0){o.push(t);if(Array.isArray(t)){var v,y=t.length;for(v=0;v<t.length;v++){if(v>=n.length){a(new s(b,v,new u(e,t[v])))}else{c(t[v],n[v],a,r,b,v,o)}}while(v<n.length){a(new s(b,v,new l(e,n[v++])))}}else{var m=Object.keys(t);var g=Object.keys(n);m.forEach(function(i,f){var l=g.indexOf(i);if(l>=0){c(t[i],n[i],a,r,b,i,o);g=h(g,l)}else{c(t[i],e,a,r,b,i,o)}});g.forEach(function(t){c(e,n[t],a,r,b,t,o)})}o.length=o.length-1}}else if(t!==n){if(!(d==="number"&&isNaN(t)&&isNaN(n))){a(new f(b,t,n))}}}function p(t,n,a,r){r=r||[];c(t,n,function(e){if(e){r.push(e)}},a);return r.length?r:e}function o(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}else{switch(n.kind){case"A":o(e[t],n.index,n.item);break;case"D":e=h(e,t);break;case"E":case"N":e[t]=n.rhs;break}}return e}function b(e,t,n){if(e&&t&&n&&n.kind){var a=e,r=-1,i=n.path.length-1;while(++r<i){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]=typeof n.path[r]==="number"?new Array:{}}a=a[n.path[r]]}switch(n.kind){case"A":o(a[n.path[r]],n.index,n.item);break;case"D":delete a[n.path[r]];break;case"E":case"N":a[n.path[r]]=n.rhs;break}}}function d(e,t,n){if(n.path&&n.path.length){var a=e[t],r,i=n.path.length-1;for(r=0;r<i;r++){a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}else{switch(n.kind){case"A":d(e[t],n.index,n.item);break;case"D":e[t]=n.lhs;break;case"E":e[t]=n.lhs;break;case"N":e=h(e,t);break}}return e}function k(e,t,n){if(e&&t&&n&&n.kind){var a=e,r,i;i=n.path.length-1;for(r=0;r<i;r++){if(typeof a[n.path[r]]==="undefined"){a[n.path[r]]={}}a=a[n.path[r]]}switch(n.kind){case"A":d(a[n.path[r]],n.index,n.item);break;case"D":a[n.path[r]]=n.lhs;break;case"E":a[n.path[r]]=n.lhs;break;case"N":delete a[n.path[r]];break}}}function v(e,t,n){if(e&&t){var a=function(a){if(!n||n(e,t,a)){b(e,t,a)}};c(e,t,a)}}Object.defineProperties(p,{diff:{value:p,enumerable:true},observableDiff:{value:c,enumerable:true},applyDiff:{value:v,enumerable:true},applyChange:{value:b,enumerable:true},revertChange:{value:k,enumerable:true},isConflict:{get:function(){return"undefined"!==typeof n},enumerable:true},noConflict:{value:function(){if(a){a.forEach(function(e){e()});a=null}return p},enumerable:true}});if(typeof module!=="undefined"&&module&&typeof exports==="object"&&exports&&module.exports===exports){module.exports=p}else{t.DeepDiff=p}})();
|
||||
Reference in New Issue
Block a user